(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{setup:()=>s,speak:()=>d});const n=window.wp.domReady;var o=e.n(n);function i(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}const a=window.wp.i18n;let r="";function d(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),r===e&&(e+=" "),r=e,e}(e);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===t?o.textContent=e:i&&(i.textContent=e),n&&n.removeAttribute("hidden")}function s(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=(0,a.__)("Notifications"),e.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;"),e.setAttribute("hidden","");const{body:t}=document;t&&t.appendChild(e)}(),null===t&&i("assertive"),null===n&&i("polite")}o()(s),(window.wp=window.wp||{}).a11y=t})();
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../keycode","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.slider",o.ui.mouse,{version:"1.13.3",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t=this.options,i=this.element.find(".ui-slider-handle"),s=[],a=t.values&&t.values.length||1;for(i.length>a&&(i.slice(a).remove(),i=i.slice(0,a)),e=i.length;e<a;e++)s.push("<span tabindex='0'></span>");this.handles=i.add(o(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){o(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:Array.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=o("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,a,n,t,h,l=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-l.values(e));(t<s||s===t&&(e===l._lastChangedValue||l.values(e)===u.min))&&(s=t,a=o(this),n=e)}),!1!==this._start(e,n))&&(this._mouseSliding=!0,this._handleIndex=n,this._addClass(a,null,"ui-state-active"),a.trigger("focus"),t=a.offset(),h=!o(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=h?{left:0,top:0}:{left:e.pageX-t.left-a.width()/2,top:e.pageY-t.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,n,i),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},t=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,t),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,e="horizontal"===this.orientation?(t=this.elementSize.width,e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),e=e/t;return(e=1<e?1:e)<0&&(e=0),"vertical"===this.orientation&&(e=1-e),t=this._valueMax()-this._valueMin(),e=this._valueMin()+e*t,this._trimAlignValue(e)},_uiHash:function(e,t,i){var s={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==t?t:this.values(e),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var s,a=this.value(),n=this.values();this._hasMultipleValues()&&(s=this.values(t?0:1),a=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(s,i):Math.max(s,i)),n[t]=i),i!==a&&!1!==this._trigger("slide",e,this._uiHash(t,i,n))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0)},values:function(e,t){var i,s,a;if(1<arguments.length)this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),this._change(null,e);else{if(!arguments.length)return this._values();if(!Array.isArray(e))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,s=e,a=0;a<i.length;a+=1)i[a]=this._trimAlignValue(s[a]),this._change(null,a);this._refreshValue()}},_setOption:function(e,t){var i,s=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(s=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,i;if(arguments.length)return e=this.options.values[e],this._trimAlignValue(e);if(this._hasMultipleValues()){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(e){var t,i;return e<=this._valueMin()?this._valueMin():e>=this._valueMax()?this._valueMax():(t=0<this.options.step?this.options.step:1,i=e-(e=(e-this._valueMin())%t),2*Math.abs(e)>=t&&(i+=0<e?t:-t),parseFloat(i.toFixed(5)))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;(e=Math.round((e-t)/i)*i+t)>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return e=null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var e=e.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,e,s,a,n=this.options.range,h=this.options,l=this,u=!this._animateOff&&h.animate,r={};this._hasMultipleValues()?this.handles.each(function(e){i=(l.values(e)-l._valueMin())/(l._valueMax()-l._valueMin())*100,r["horizontal"===l.orientation?"left":"bottom"]=i+"%",o(this).stop(1,1)[u?"animate":"css"](r,h.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===e&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:h.animate})):(0===e&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:h.animate}))),t=i}):(e=this.value(),s=this._valueMin(),a=this._valueMax(),i=a!==s?(e-s)/(a-s)*100:0,r["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](r,h.animate),"min"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},h.animate),"max"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-i+"%"},h.animate),"min"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},h.animate),"max"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-i+"%"},h.animate))},_handleEvents:{keydown:function(e){var t,i,s,a=o(e.target).data("ui-slider-handle-index");switch(e.keyCode){case o.ui.keyCode.HOME:case o.ui.keyCode.END:case o.ui.keyCode.PAGE_UP:case o.ui.keyCode.PAGE_DOWN:case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(e.preventDefault(),this._keySliding||(this._keySliding=!0,this._addClass(o(e.target),null,"ui-state-active"),!1!==this._start(e,a)))break;return}switch(s=this.options.step,t=i=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case o.ui.keyCode.HOME:i=this._valueMin();break;case o.ui.keyCode.END:i=this._valueMax();break;case o.ui.keyCode.PAGE_UP:i=this._trimAlignValue(t+(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(t-(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:if(t===this._valueMax())return;i=this._trimAlignValue(t+s);break;case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(t===this._valueMin())return;i=this._trimAlignValue(t-s)}this._slide(e,a,i)},keyup:function(e){var t=o(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,t),this._change(e,t),this._removeClass(o(e.target),null,"ui-state-active"))}}})});
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../ie","../scroll-parent","../version","../widget"],t):t(jQuery)}(function(u){"use strict";return u.widget("ui.sortable",u.ui.mouse,{version:"1.13.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),u.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,s=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),u(t.target).parents().each(function(){if(u.data(this,o.widgetName+"-item")===o)return i=u(this),!1}),!(i=u.data(t.target,o.widgetName+"-item")===o?u(t.target):i))||(this.options.handle&&!e&&(u(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s)||(this.currentItem=i,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,e,i){var s,o,r=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=u("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},u.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),u.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=u("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return u.ui.ddmanager&&(u.ui.ddmanager.current=this),u.ui.ddmanager&&!r.dropBehaviour&&u.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(t){var e,i,s,o,r=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),u.ui.ddmanager)&&!r.dropBehaviour&&u.ui.ddmanager.prepareOffsets(this,t),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},e=this.items.length-1;0<=e;e--)if(s=(i=this.items[e]).item[0],(o=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===s||u.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&u.contains(this.element[0],s))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),u.ui.ddmanager&&u.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,s,o,r;if(t)return u.ui.ddmanager&&!this.options.dropBehaviour&&u.ui.ddmanager.drop(this,t),this.options.revert?(s=(i=this).placeholder.offset(),r={},(o=this.options.axis)&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,u(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new u.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),u.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?u(this.domPosition.prev).after(this.currentItem):u(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},u(t).each(function(){var t=(u(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(u(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,o=s+this.helperProportions.height,r=t.left,n=r+t.width,h=t.top,a=h+t.height,l=this.offset.click.top,c=this.offset.click.left,l="x"===this.options.axis||h<s+l&&s+l<a,c="y"===this.options.axis||r<e+c&&e+c<n;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?l&&c:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<n&&h<s+this.helperProportions.height/2&&o-this.helperProportions.height/2<a},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this.dragDirection.vertical,t=this.dragDirection.horizontal,this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),t=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&t||"left"===s&&!t:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,i,s,o,r=[],n=[],h=this._connectWith();if(h&&t)for(e=h.length-1;0<=e;e--)for(i=(s=u(h[e],this.document[0])).length-1;0<=i;i--)(o=u.data(s[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&n.push(["function"==typeof o.options.items?o.options.items.call(o.element):u(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function a(){r.push(this)}for(n.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):u(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=n.length-1;0<=e;e--)n[e][0].each(a);return u(r)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=u.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,s,o,r,n,h,a,l=this.items,c=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):u(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(e=p.length-1;0<=e;e--)for(i=(s=u(p[e],this.document[0])).length-1;0<=i;i--)(o=u.data(s[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&(c.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],t,{item:this.currentItem}):u(o.options.items,o.element),o]),this.containers.push(o));for(e=c.length-1;0<=e;e--)for(r=c[e][1],a=(n=c[e][i=0]).length;i<a;i++)(h=u(n[i])).data(this.widgetName+"-item",r),l.push({item:h,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var e,i,s=this.items.length-1;0<=s;s--)e=this.items[s],this.currentContainer&&e.instance!==this.currentContainer&&e.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?u(this.options.toleranceElement,e.item):e.item,t||(e.width=i.outerWidth(),e.height=i.outerHeight()),i=i.offset(),e.left=i.left,e.top=i.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var s,o,r=(i=i||this).options;r.placeholder&&r.placeholder.constructor!==String||(s=r.placeholder,o=i.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var t=u("<"+o+">",i.document[0]);return i._addClass(t,"ui-sortable-placeholder",s||i.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===o?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),u("<tr>",i.document[0]).appendTo(t)):"tr"===o?i._createTrPlaceholder(i.currentItem,t):"img"===o&&t.attr("src",i.currentItem.attr("src")),s||t.css("visibility","hidden"),t},update:function(t,e){s&&!r.forcePlaceholderSize||(e.height()&&(!r.forcePlaceholderSize||"tbody"!==o&&"tr"!==o)||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width())||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10))}}),i.placeholder=u(r.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),r.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){u("<td>&#160;</td>",i.document[0]).attr("colspan",u(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,s,o,r,n,h,a,l,c=null,p=null,f=this.containers.length-1;0<=f;f--)u.contains(this.currentItem[0],this.containers[f].element[0])||(this._intersectsWith(this.containers[f].containerCache)?c&&u.contains(this.containers[f].element[0],c.element[0])||(c=this.containers[f],p=f):this.containers[f].containerCache.over&&(this.containers[f]._trigger("out",t,this._uiHash(this)),this.containers[f].containerCache.over=0));if(c)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(i=1e4,s=null,o=(a=c.floating||this._isFloating(this.currentItem))?"left":"top",r=a?"width":"height",l=a?"pageX":"pageY",e=this.items.length-1;0<=e;e--)u.contains(this.containers[p].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(n=this.items[e].item.offset()[o],h=!1,t[l]-n>this.items[e][r]/2&&(h=!0),Math.abs(t[l]-n)<i)&&(i=Math.abs(t[l]-n),s=this.items[e],this.direction=h?"up":"down");(s||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[p]?this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1):(s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1))}},_createHelper:function(t){var e=this.options,t="function"==typeof e.helper?u(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||this.appendTo[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&u.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t;return"relative"===this.cssPosition?{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=u(i.containment)[0],i=u(i.containment).offset(),e="hidden"!==u(t).css("overflow"),this.containment=[i.left+(parseInt(u(t).css("borderLeftWidth"),10)||0)+(parseInt(u(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(u(t).css("borderTopWidth"),10)||0)+(parseInt(u(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(e?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(u(t).css("borderLeftWidth"),10)||0)-(parseInt(u(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(e?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(u(t).css("borderTopWidth"),10)||0)-(parseInt(u(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(i[0].tagName);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:i.scrollTop())*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:i.scrollLeft())*t}},_generatePosition:function(t){var e=this.options,i=t.pageX,s=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(s=this.containment[3]+this.offset.click.top),e.grid)&&(t=this.originalPageY+Math.round((s-this.originalPageY)/e.grid[1])*e.grid[1],s=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[0])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0]),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function o(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),i=this.containers.length-1;0<=i;i--)e||s.push(o("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(o("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<s.length;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===u.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||u([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}})});
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery-var-for-color","./vendor/jquery-color/jquery.color","./version"],t):t(jQuery)}(function(u){"use strict";var s,o,r,a,c,e,n,i,f,l,d="ui-effects-",h="ui-effects-style",p="ui-effects-animated";function m(t){var e,n,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(n=i.length;n--;)"string"==typeof i[e=i[n]]&&(o[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=i[e]);else for(e in i)"string"==typeof i[e]&&(o[e]=i[e]);return o}function g(t,e,n,i){return t={effect:t=u.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(i=e,n=null,e={}),"number"!=typeof e&&!u.fx.speeds[e]||(i=n,n=e,e={}),"function"==typeof n&&(i=n,n=null),e&&u.extend(t,e),n=n||e.duration,t.duration=u.fx.off?0:"number"==typeof n?n:n in u.fx.speeds?u.fx.speeds[n]:u.fx.speeds._default,t.complete=i||e.complete,t}function v(t){return!t||"number"==typeof t||u.fx.speeds[t]||"string"==typeof t&&!u.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function y(t,e){var n=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?n:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}return u.effects={effect:{}},a=["add","remove","toggle"],c={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},u.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){u.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,e,t.end),t.setAttr=!0)}}),u.fn.addBack||(u.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),u.effects.animateClass=function(o,t,e,n){var s=u.speed(t,e,n);return this.queue(function(){var n=u(this),t=n.attr("class")||"",e=(e=s.children?n.find("*").addBack():n).map(function(){return{el:u(this),start:m(this)}}),i=function(){u.each(a,function(t,e){o[e]&&n[e+"Class"](o[e])})};i(),e=e.map(function(){return this.end=m(this.el[0]),this.diff=function(t,e){var n,i,o={};for(n in e)i=e[n],t[n]===i||c[n]||!u.fx.step[n]&&isNaN(parseFloat(i))||(o[n]=i);return o}(this.start,this.end),this}),n.attr("class",t),e=e.map(function(){var t=this,e=u.Deferred(),n=u.extend({},s,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,n),e.promise()}),u.when.apply(u,e.get()).done(function(){i(),u.each(arguments,function(){var e=this.el;u.each(this.diff,function(t){e.css(t,"")})}),s.complete.call(n[0])})})},u.fn.extend({addClass:(r=u.fn.addClass,function(t,e,n,i){return e?u.effects.animateClass.call(this,{add:t},e,n,i):r.apply(this,arguments)}),removeClass:(o=u.fn.removeClass,function(t,e,n,i){return 1<arguments.length?u.effects.animateClass.call(this,{remove:t},e,n,i):o.apply(this,arguments)}),toggleClass:(s=u.fn.toggleClass,function(t,e,n,i,o){return"boolean"==typeof e||void 0===e?n?u.effects.animateClass.call(this,e?{add:t}:{remove:t},n,i,o):s.apply(this,arguments):u.effects.animateClass.call(this,{toggle:t},e,n,i)}),switchClass:function(t,e,n,i,o){return u.effects.animateClass.call(this,{add:e,remove:t},n,i,o)}}),u.expr&&u.expr.pseudos&&u.expr.pseudos.animated&&(u.expr.pseudos.animated=(e=u.expr.pseudos.animated,function(t){return!!u(t).data(p)||e(t)})),!1!==u.uiBackCompat&&u.extend(u.effects,{save:function(t,e){for(var n=0,i=e.length;n<i;n++)null!==e[n]&&t.data(d+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n,i=0,o=e.length;i<o;i++)null!==e[i]&&(n=t.data(d+e[i]),t.css(e[i],n))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var i={width:n.outerWidth(!0),height:n.outerHeight(!0),float:n.css("float")},t=u("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return n.wrap(t),n[0]!==o&&!u.contains(n[0],o)||u(o).trigger("focus"),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(u.extend(i,{position:n.css("position"),zIndex:n.css("z-index")}),u.each(["top","left","bottom","right"],function(t,e){i[e]=n.css(e),isNaN(parseInt(i[e],10))&&(i[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(i).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!u.contains(t[0],e)||u(e).trigger("focus")),t}}),u.extend(u.effects,{version:"1.13.3",define:function(t,e,n){return n||(n=e,e="effect"),u.effects.effect[t]=n,u.effects.effect[t].mode=e,n},scaledDimensions:function(t,e,n){var i;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(i="horizontal"!==n?(e||100)/100:1,n="vertical"!==n?(e||100)/100:1,{height:t.height()*n,width:t.width()*i,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*i})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var i=t.queue();1<e&&i.splice.apply(i,[1,0].concat(i.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data(h,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(h)||"",t.removeData(h)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),e=(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var n,i;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=t[1]/e.width}return{x:i,y:n}},createPlaceholder:function(t){var e,n=t.css("position"),i=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",e=u("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(d+"placeholder",e)),t.css({position:n,left:i.left,top:i.top}),e},removePlaceholder:function(t){var e=d+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(t){u.effects.restoreStyle(t),u.effects.removePlaceholder(t)},setTransition:function(i,t,o,s){return s=s||{},u.each(t,function(t,e){var n=i.cssUnit(e);0<n[0]&&(s[e]=n[0]*o+n[1])}),s}}),u.fn.extend({effect:function(){function t(t){var e=u(this),n=u.effects.mode(e,a)||s;e.data(p,!0),c.push(n),s&&("show"===n||n===s&&"hide"===n)&&e.show(),s&&"none"===n||u.effects.saveStyle(e),"function"==typeof t&&t()}var i=g.apply(this,arguments),o=u.effects.effect[i.effect],s=o.mode,e=i.queue,n=e||"fx",r=i.complete,a=i.mode,c=[];return u.fx.off||!o?a?this[a](i.duration,r):this.each(function(){r&&r.call(this)}):!1===e?this.each(t).each(f):this.queue(n,t).queue(n,f);function f(t){var e=u(this);function n(){"function"==typeof r&&r.call(e[0]),"function"==typeof t&&t()}i.mode=c.shift(),!1===u.uiBackCompat||s?"none"===i.mode?(e[a](),n()):o.call(e[0],i,function(){e.removeData(p),u.effects.cleanUp(e),"hide"===i.mode&&e.hide(),n()}):(e.is(":hidden")?"hide"===a:"show"===a)?(e[a](),n()):o.call(e[0],i,n)}},show:(f=u.fn.show,function(t){return v(t)?f.apply(this,arguments):((t=g.apply(this,arguments)).mode="show",this.effect.call(this,t))}),hide:(i=u.fn.hide,function(t){return v(t)?i.apply(this,arguments):((t=g.apply(this,arguments)).mode="hide",this.effect.call(this,t))}),toggle:(n=u.fn.toggle,function(t){return v(t)||"boolean"==typeof t?n.apply(this,arguments):((t=g.apply(this,arguments)).mode="toggle",this.effect.call(this,t))}),cssUnit:function(t){var n=this.css(t),i=[];return u.each(["em","px","%","pt"],function(t,e){0<n.indexOf(e)&&(i=[parseFloat(n),e])}),i},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):y(this.css("clip"),this)},transfer:function(t,e){var n=u(this),i=u(t.to),o="fixed"===i.css("position"),s=u("body"),r=o?s.scrollTop():0,s=o?s.scrollLeft():0,a=i.offset(),a={top:a.top-r,left:a.left-s,height:i.innerHeight(),width:i.innerWidth()},i=n.offset(),c=u("<div class='ui-effects-transfer'></div>");c.appendTo("body").addClass(t.className).css({top:i.top-r,left:i.left-s,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){c.remove(),"function"==typeof e&&e()})}}),u.fx.step.clip=function(t){t.clipInit||(t.start=u(t.elem).cssClip(),"string"==typeof t.end&&(t.end=y(t.end,t.elem)),t.clipInit=!0),u(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},l={},u.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){l[t]=function(t){return Math.pow(t,e+2)}}),u.extend(l,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),u.each(l,function(t,e){u.easing["easeIn"+t]=e,u.easing["easeOut"+t]=function(t){return 1-e(1-t)},u.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),u.effects});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(s){"use strict";return s.effects.define("blind","hide",function(e,t){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},o=s(this),n=e.direction||"up",c=o.cssClip(),f={clip:s.extend({},c)},r=s.effects.createPlaceholder(o);f.clip[i[n][0]]=f.clip[i[n][1]],"show"===e.mode&&(o.cssClip(f.clip),r&&r.css(s.effects.clipToBox(f)),f.clip=c),r&&r.animate(s.effects.clipToBox(f),e.duration,e.easing),o.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(l){"use strict";return l.effects.define("bounce",function(e,t){var i,n,o=l(this),c=e.mode,f="hide"===c,c="show"===c,u=e.direction||"up",s=e.distance,a=e.times||5,r=2*a+(c||f?1:0),d=e.duration/r,p=e.easing,h="up"===u||"down"===u?"top":"left",m="up"===u||"left"===u,y=0,e=o.queue().length;for(l.effects.createPlaceholder(o),u=o.css(h),s=s||o["top"==h?"outerHeight":"outerWidth"]()/3,c&&((n={opacity:1})[h]=u,o.css("opacity",0).css(h,m?2*-s:2*s).animate(n,d,p)),f&&(s/=Math.pow(2,a-1)),(n={})[h]=u;y<a;y++)(i={})[h]=(m?"-=":"+=")+s,o.animate(i,d,p).animate(n,d,p),s=f?2*s:s/2;f&&((i={opacity:0})[h]=(m?"-=":"+=")+s,o.animate(i,d,p)),o.queue(t),l.effects.unshift(o,e,1+r)})});
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],t):t(jQuery)}(function(f){"use strict";return f.effects.define("clip","hide",function(t,e){var i={},o=f(this),c=t.direction||"vertical",n="both"===c,r=n||"horizontal"===c,n=n||"vertical"===c,c=o.cssClip();i.clip={top:n?(c.bottom-c.top)/2:c.top,right:r?(c.right-c.left)/2:c.right,bottom:n?(c.bottom-c.top)/2:c.bottom,left:r?(c.right-c.left)/2:c.left},f.effects.createPlaceholder(o),"show"===t.mode&&(o.cssClip(i.clip),i.clip=c),o.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(d){"use strict";return d.effects.define("drop","hide",function(e,t){var i,n=d(this),o="show"===e.mode,f=e.direction||"left",c="up"===f||"down"===f?"top":"left",f="up"===f||"left"===f?"-=":"+=",u="+="==f?"-=":"+=",r={opacity:0};d.effects.createPlaceholder(n),i=e.distance||n["top"==c?"outerHeight":"outerWidth"](!0)/2,r[c]=f+i,o&&(n.css(r),r[c]=u+i,r.opacity=1),n.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(b){"use strict";return b.effects.define("explode","hide",function(e,i){var t,o,s,n,f,d,c=e.pieces?Math.round(Math.sqrt(e.pieces)):3,a=c,l=b(this),r="show"===e.mode,h=l.show().css("visibility","hidden").offset(),p=Math.ceil(l.outerWidth()/a),u=Math.ceil(l.outerHeight()/c),v=[];function y(){v.push(this),v.length===c*a&&(l.css({visibility:"visible"}),b(v).remove(),i())}for(t=0;t<c;t++)for(n=h.top+t*u,d=t-(c-1)/2,o=0;o<a;o++)s=h.left+o*p,f=o-(a-1)/2,l.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*p,top:-t*u}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:u,left:s+(r?f*p:0),top:n+(r?d*u:0),opacity:r?0:1}).animate({left:s+(r?0:f*p),top:n+(r?0:d*u),opacity:r?1:0},e.duration||500,e.easing,y)})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(n){"use strict";return n.effects.define("fade","toggle",function(e,t){var i="show"===e.mode;n(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:t})})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(m){"use strict";return m.effects.define("fold","hide",function(i,e){var t=m(this),c=i.mode,n="show"===c,c="hide"===c,s=i.size||15,f=/([0-9]+)%/.exec(s),o=!!i.horizFirst?["right","bottom"]:["bottom","right"],a=i.duration/2,u=m.effects.createPlaceholder(t),l=t.cssClip(),r={clip:m.extend({},l)},p={clip:m.extend({},l)},d=[l[o[0]],l[o[1]]],h=t.queue().length;f&&(s=parseInt(f[1],10)/100*d[c?0:1]),r.clip[o[0]]=s,p.clip[o[0]]=s,p.clip[o[1]]=0,n&&(t.cssClip(p.clip),u&&u.css(m.effects.clipToBox(p)),p.clip=l),t.queue(function(e){u&&u.animate(m.effects.clipToBox(r),a,i.easing).animate(m.effects.clipToBox(p),a,i.easing),e()}).animate(r,a,i.easing).animate(p,a,i.easing).queue(e),m.effects.unshift(t,h,4)})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(t){"use strict";return t.effects.define("highlight","show",function(e,n){var o=t(this),i={backgroundColor:o.css("backgroundColor")};"hide"===e.mode&&(i.opacity=0),t.effects.saveStyle(o),o.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(i,{queue:!1,duration:e.duration,easing:e.easing,complete:n})})});
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],t):t(jQuery)}(function(l){"use strict";return l.effects.define("size",function(o,e){var f,i=l(this),t=["fontSize"],s=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],r=o.mode,h="effect"!==r,c=o.scale||"both",d=o.origin||["middle","center"],a=i.css("position"),g=i.position(),u=l.effects.scaledDimensions(i),m=o.from||u,y=o.to||l.effects.scaledDimensions(i,0);l.effects.createPlaceholder(i),"show"===r&&(r=m,m=y,y=r),f={from:{y:m.height/u.height,x:m.width/u.width},to:{y:y.height/u.height,x:y.width/u.width}},"box"!==c&&"both"!==c||(f.from.y!==f.to.y&&(m=l.effects.setTransition(i,s,f.from.y,m),y=l.effects.setTransition(i,s,f.to.y,y)),f.from.x!==f.to.x&&(m=l.effects.setTransition(i,n,f.from.x,m),y=l.effects.setTransition(i,n,f.to.x,y))),"content"!==c&&"both"!==c||f.from.y!==f.to.y&&(m=l.effects.setTransition(i,t,f.from.y,m),y=l.effects.setTransition(i,t,f.to.y,y)),d&&(r=l.effects.getBaseline(d,u),m.top=(u.outerHeight-m.outerHeight)*r.y+g.top,m.left=(u.outerWidth-m.outerWidth)*r.x+g.left,y.top=(u.outerHeight-y.outerHeight)*r.y+g.top,y.left=(u.outerWidth-y.outerWidth)*r.x+g.left),delete m.outerHeight,delete m.outerWidth,i.css(m),"content"!==c&&"both"!==c||(s=s.concat(["marginTop","marginBottom"]).concat(t),n=n.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=l(this),e=l.effects.scaledDimensions(t),i={height:e.height*f.from.y,width:e.width*f.from.x,outerHeight:e.outerHeight*f.from.y,outerWidth:e.outerWidth*f.from.x},e={height:e.height*f.to.y,width:e.width*f.to.x,outerHeight:e.height*f.to.y,outerWidth:e.width*f.to.x};f.from.y!==f.to.y&&(i=l.effects.setTransition(t,s,f.from.y,i),e=l.effects.setTransition(t,s,f.to.y,e)),f.from.x!==f.to.x&&(i=l.effects.setTransition(t,n,f.from.x,i),e=l.effects.setTransition(t,n,f.to.x,e)),h&&l.effects.saveStyle(t),t.css(i),t.animate(e,o.duration,o.easing,function(){h&&l.effects.restoreStyle(t)})})),i.animate(y,{queue:!1,duration:o.duration,easing:o.easing,complete:function(){var t=i.offset();0===y.opacity&&i.css("opacity",m.opacity),h||(i.css("position","static"===a?"relative":a).offset(t),l.effects.saveStyle(i)),e()}})})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect","./effect-size"],e):e(jQuery)}(function(n){"use strict";return n.effects.define("scale",function(e,t){var f=n(this),i=e.mode,i=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"effect"!==i?0:100),f=n.extend(!0,{from:n.effects.scaledDimensions(f),to:n.effects.scaledDimensions(f,i,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(f.from.opacity=1,f.to.opacity=0),n.effects.effect.size.call(this,f,t)})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect","./effect-scale"],e):e(jQuery)}(function(t){"use strict";return t.effects.define("puff","hide",function(e,f){e=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,e,f)})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(c){"use strict";return c.effects.define("pulsate","show",function(e,i){var t=c(this),n=e.mode,s="show"===n,f=2*(e.times||5)+(s||"hide"===n?1:0),u=e.duration/f,o=0,a=1,n=t.queue().length;for(!s&&t.is(":visible")||(t.css("opacity",0).show(),o=1);a<f;a++)t.animate({opacity:o},u,e.easing),o=1-o;t.animate({opacity:o},u,e.easing),t.queue(i),c.effects.unshift(t,n,1+f)})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(h){"use strict";return h.effects.define("shake",function(e,t){var n=1,i=h(this),a=e.direction||"left",f=e.distance||20,s=e.times||3,u=2*s+1,c=Math.round(e.duration/u),r="up"===a||"down"===a?"top":"left",a="up"===a||"left"===a,o={},d={},m={},g=i.queue().length;for(h.effects.createPlaceholder(i),o[r]=(a?"-=":"+=")+f,d[r]=(a?"+=":"-=")+2*f,m[r]=(a?"-=":"+=")+2*f,i.animate(o,c,e.easing);n<s;n++)i.animate(d,c,e.easing).animate(m,c,e.easing);i.animate(d,c,e.easing).animate(o,c/2,e.easing).queue(t),h.effects.unshift(i,g,1+u)})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(d){"use strict";return d.effects.define("slide","show",function(e,t){var i,o,n=d(this),c={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=e.mode,f=e.direction||"left",l="up"===f||"down"===f?"top":"left",p="up"===f||"left"===f,r=e.distance||n["top"==l?"outerHeight":"outerWidth"](!0),u={};d.effects.createPlaceholder(n),i=n.cssClip(),o=n.position()[l],u[l]=(p?-1:1)*r+o,u.clip=n.cssClip(),u.clip[c[f][1]]=u.clip[c[f][0]],"show"===s&&(n.cssClip(u.clip),n.css(l,u[l]),u.clip=i,u[l]=o),n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(t){"use strict";var e;return e=!1!==t.uiBackCompat?t.effects.define("transfer",function(e,n){t(this).transfer(e,n)}):e});
!function(p,h,v,b){p.site=p.fn.site=function(e){var s,l,i=(new Date).getTime(),o=[],t=e,n="string"==typeof t,c=[].slice.call(arguments,1),u=p.isPlainObject(e)?p.extend(!0,{},p.site.settings,e):p.extend({},p.site.settings),a=u.namespace,d=u.error,r="module-"+a,f=p(v),m=this,g=f.data(r);return s={initialize:function(){s.instantiate()},instantiate:function(){s.verbose("Storing instance of site",s),g=s,f.data(r,s)},normalize:function(){s.fix.console(),s.fix.requestAnimationFrame()},fix:{console:function(){s.debug("Normalizing window.console"),console!==b&&console.log!==b||(s.verbose("Console not available, normalizing events"),s.disable.console()),void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(s.verbose("Console group not available, normalizing events"),h.console.group=function(){},h.console.groupEnd=function(){},h.console.groupCollapsed=function(){}),void 0===console.markTimeline&&(s.verbose("Mark timeline not available, normalizing events"),h.console.markTimeline=function(){})},consoleClear:function(){s.debug("Disabling programmatic console clearing"),h.console.clear=function(){}},requestAnimationFrame:function(){s.debug("Normalizing requestAnimationFrame"),h.requestAnimationFrame===b&&(s.debug("RequestAnimationFrame not available, normalizing event"),h.requestAnimationFrame=h.requestAnimationFrame||h.mozRequestAnimationFrame||h.webkitRequestAnimationFrame||h.msRequestAnimationFrame||function(e){setTimeout(e,0)})}},moduleExists:function(e){return p.fn[e]!==b&&p.fn[e].settings!==b},enabled:{modules:function(e){var n=[];return e=e||u.modules,p.each(e,function(e,t){s.moduleExists(t)&&n.push(t)}),n}},disabled:{modules:function(e){var n=[];return e=e||u.modules,p.each(e,function(e,t){s.moduleExists(t)||n.push(t)}),n}},change:{setting:function(o,a,e,r){e="string"==typeof e?"all"===e?u.modules:[e]:e||u.modules,r=r===b||r,p.each(e,function(e,t){var n,i=!s.moduleExists(t)||(p.fn[t].settings.namespace||!1);s.moduleExists(t)&&(s.verbose("Changing default setting",o,a,t),p.fn[t].settings[o]=a,r&&i&&0<(n=p(":data(module-"+i+")")).length&&(s.verbose("Modifying existing settings",n),n[t]("setting",o,a)))})},settings:function(i,e,o){e="string"==typeof e?[e]:e||u.modules,o=o===b||o,p.each(e,function(e,t){var n;s.moduleExists(t)&&(s.verbose("Changing default setting",i,t),p.extend(!0,p.fn[t].settings,i),o&&a&&0<(n=p(":data(module-"+a+")")).length&&(s.verbose("Modifying existing settings",n),n[t]("setting",i)))})}},enable:{console:function(){s.console(!0)},debug:function(e,t){e=e||u.modules,s.debug("Enabling debug for modules",e),s.change.setting("debug",!0,e,t)},verbose:function(e,t){e=e||u.modules,s.debug("Enabling verbose debug for modules",e),s.change.setting("verbose",!0,e,t)}},disable:{console:function(){s.console(!1)},debug:function(e,t){e=e||u.modules,s.debug("Disabling debug for modules",e),s.change.setting("debug",!1,e,t)},verbose:function(e,t){e=e||u.modules,s.debug("Disabling verbose debug for modules",e),s.change.setting("verbose",!1,e,t)}},console:function(e){if(e){if(g.cache.console===b)return void s.error(d.console);s.debug("Restoring console function"),h.console=g.cache.console}else s.debug("Disabling console function"),g.cache.console=h.console,h.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}}},destroy:function(){s.verbose("Destroying previous site for",f),f.removeData(r)},cache:{},setting:function(e,t){if(p.isPlainObject(e))p.extend(!0,u,e);else{if(t===b)return u[e];u[e]=t}},internal:function(e,t){if(p.isPlainObject(e))p.extend(!0,s,e);else{if(t===b)return s[e];s[e]=t}},debug:function(){u.debug&&(u.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,u.name+":"),s.debug.apply(console,arguments)))},verbose:function(){u.verbose&&u.debug&&(u.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,u.name+":"),s.verbose.apply(console,arguments)))},error:function(){s.error=Function.prototype.bind.call(console.error,console,u.name+":"),s.error.apply(console,arguments)},performance:{log:function(e){var t,n;u.performance&&(n=(t=(new Date).getTime())-(i||t),i=t,o.push({Element:m,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":n})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=u.name+":",n=0;i=!1,clearTimeout(s.performance.timer),p.each(o,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",(console.group!==b||console.table!==b)&&0<o.length&&(console.groupCollapsed(e),console.table?console.table(o):p.each(o,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),o=[]}},invoke:function(i,e,t){var o,a,n,r=g;return e=e||c,t=m||t,"string"==typeof i&&r!==b&&(i=i.split(/[\. ]/),o=i.length-1,p.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(p.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==b)return a=r[n],!1;if(!p.isPlainObject(r[t])||e==o)return r[t]!==b?a=r[t]:s.error(d.method,i),!1;r=r[t]}})),p.isFunction(a)?n=a.apply(t,e):a!==b&&(n=a),p.isArray(l)?l.push(n):l!==b?l=[l,n]:n!==b&&(l=n),a}},n?(g===b&&s.initialize(),s.invoke(t)):(g!==b&&s.destroy(),s.initialize()),l!==b?l:this},p.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:{}}},p.extend(p.expr[":"],{data:p.expr.createPseudo?p.expr.createPseudo(function(t){return function(e){return!!p.data(e,t)}}):function(e,t,n){return!!p.data(e,n[3])}})}(jQuery,window,document),function(F,e,O,D){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),F.fn.form=function(x){var C,w=F(this),S=w.selector||"",k=(new Date).getTime(),T=[],A=x,R=arguments[1],P="string"==typeof A,E=[].slice.call(arguments,1);return w.each(function(){var n,l,t,e,d,c,u,f,m,i,s,o,a,g,p,h,r=F(this),v=this,b=[],y=!1;(h={initialize:function(){h.get.settings(),P?(p===D&&h.instantiate(),h.invoke(A)):(p!==D&&p.invoke("destroy"),h.verbose("Initializing form validation",r,d),h.bindEvents(),h.set.defaults(),h.instantiate())},instantiate:function(){h.verbose("Storing instance of module",h),p=h,r.data(a,h)},destroy:function(){h.verbose("Destroying previous module",p),h.removeEvents(),r.removeData(a)},refresh:function(){h.verbose("Refreshing selector cache"),n=r.find(f.field),l=r.find(f.group),t=r.find(f.message),r.find(f.prompt),e=r.find(f.submit),r.find(f.clear),r.find(f.reset)},submit:function(){h.verbose("Submitting form",r),r.submit()},attachEvents:function(e,t){t=t||"submit",F(e).on("click"+g,function(e){h[t](),e.preventDefault()})},bindEvents:function(){h.verbose("Attaching form events"),r.on("submit"+g,h.validate.form).on("blur"+g,f.field,h.event.field.blur).on("click"+g,f.submit,h.submit).on("click"+g,f.reset,h.reset).on("click"+g,f.clear,h.clear),d.keyboardShortcuts&&r.on("keydown"+g,f.field,h.event.field.keydown),n.each(function(){var e=F(this),t=e.prop("type"),n=h.get.changeEvent(t,e);F(this).on(n+g,h.event.field.change)})},clear:function(){n.each(function(){var e=F(this),t=e.parent(),n=e.closest(l),i=n.find(f.prompt),o=e.data(u.defaultValue)||"",a=t.is(f.uiCheckbox),r=t.is(f.uiDropdown);n.hasClass(m.error)&&(h.verbose("Resetting error on field",n),n.removeClass(m.error),i.remove()),r?(h.verbose("Resetting dropdown value",t,o),t.dropdown("clear")):a?e.prop("checked",!1):(h.verbose("Resetting field value",e,o),e.val(""))})},reset:function(){n.each(function(){var e=F(this),t=e.parent(),n=e.closest(l),i=n.find(f.prompt),o=e.data(u.defaultValue),a=t.is(f.uiCheckbox),r=t.is(f.uiDropdown),s=n.hasClass(m.error);o!==D&&(s&&(h.verbose("Resetting error on field",n),n.removeClass(m.error),i.remove()),r?(h.verbose("Resetting dropdown value",t,o),t.dropdown("restore defaults")):a?(h.verbose("Resetting checkbox value",t,o),e.prop("checked",o)):(h.verbose("Resetting field value",e,o),e.val(o)))})},determine:{isValid:function(){var n=!0;return F.each(c,function(e,t){h.validate.field(t,e,!0)||(n=!1)}),n}},is:{bracketedRule:function(e){return e.type&&e.type.match(d.regExp.bracket)},shorthandFields:function(e){var t=e[Object.keys(e)[0]];return h.is.shorthandRules(t)},shorthandRules:function(e){return"string"==typeof e||F.isArray(e)},empty:function(e){return!e||0===e.length||(e.is('input[type="checkbox"]')?!e.is(":checked"):h.is.blank(e))},blank:function(e){return""===F.trim(e.val())},valid:function(e){var n=!0;return e?(h.verbose("Checking if field is valid",e),h.validate.field(c[e],e,!1)):(h.verbose("Checking if form is valid"),F.each(c,function(e,t){h.is.valid(e)||(n=!1)}),n)}},removeEvents:function(){r.off(g),n.off(g),e.off(g),n.off(g)},event:{field:{keydown:function(e){var t=F(this),n=e.which,i=t.is(f.input),o=t.is(f.checkbox),a=0<t.closest(f.uiDropdown).length,r=13;n==27&&(h.verbose("Escape key pressed blurring field"),t.blur()),e.ctrlKey||n!=r||!i||a||o||(y||(t.one("keyup"+g,h.event.field.keyup),h.submit(),h.debug("Enter pressed on input submitting form")),y=!0)},keyup:function(){y=!1},blur:function(e){var t=F(this),n=t.closest(l),i=h.get.validation(t);n.hasClass(m.error)?(h.debug("Revalidating field",t,i),i&&h.validate.field(i)):"blur"==d.on&&i&&h.validate.field(i)},change:function(e){var t=F(this),n=t.closest(l),i=h.get.validation(t);i&&("change"==d.on||n.hasClass(m.error)&&d.revalidate)&&(clearTimeout(h.timer),h.timer=setTimeout(function(){h.debug("Revalidating field",t,h.get.validation(t)),h.validate.field(i)},d.delay))}}},get:{ancillaryValue:function(e){return!(!e.type||!e.value&&!h.is.bracketedRule(e))&&(e.value!==D?e.value:e.type.match(d.regExp.bracket)[1]+"")},ruleName:function(e){return h.is.bracketedRule(e)?e.type.replace(e.type.match(d.regExp.bracket)[0],""):e.type},changeEvent:function(e,t){return"checkbox"==e||"radio"==e||"hidden"==e||t.is("select")?"change":h.get.inputEvent()},inputEvent:function(){return O.createElement("input").oninput!==D?"input":O.createElement("input").onpropertychange!==D?"propertychange":"keyup"},fieldsFromShorthand:function(e){var i={};return F.each(e,function(n,e){"string"==typeof e&&(e=[e]),i[n]={rules:[]},F.each(e,function(e,t){i[n].rules.push({type:t})})}),i},prompt:function(e,t){var n,i,o=h.get.ruleName(e),a=h.get.ancillaryValue(e),r=h.get.field(t.identifier),s=r.val(),l=F.isFunction(e.prompt)?e.prompt(s):e.prompt||d.prompt[o]||d.text.unspecifiedRule,c=-1!==l.search("{value}"),u=-1!==l.search("{name}");return c&&(l=l.replace("{value}",r.val())),u&&(i=1==(n=r.closest(f.group).find("label").eq(0)).length?n.text():r.prop("placeholder")||d.text.unspecifiedField,l=l.replace("{name}",i)),l=(l=l.replace("{identifier}",t.identifier)).replace("{ruleValue}",a),e.prompt||h.verbose("Using default validation prompt for type",l,o),l},settings:function(){if(F.isPlainObject(x)){var e=Object.keys(x);0<e.length&&(x[e[0]].identifier!==D&&x[e[0]].rules!==D)?(d=F.extend(!0,{},F.fn.form.settings,R),c=F.extend({},F.fn.form.settings.defaults,x),h.error(d.error.oldSyntax,v),h.verbose("Extending settings from legacy parameters",c,d)):(x.fields&&h.is.shorthandFields(x.fields)&&(x.fields=h.get.fieldsFromShorthand (x.fields)),d=F.extend(!0,{},F.fn.form.settings,x),c=F.extend({},F.fn.form.settings.defaults,d.fields),h.verbose("Extending settings",c,d))}else d=F.fn.form.settings,c=F.fn.form.settings.defaults,h.verbose("Using default form validation",c,d);o=d.namespace,u=d.metadata,f=d.selector,m=d.className,i=d.regExp,s=d.error,a="module-"+o,g="."+o,p=r.data(a),h.refresh()},field:function(e){return h.verbose("Finding field with identifier",e),e=h.escape.string(e),0<n.filter("#"+e).length?n.filter("#"+e):0<n.filter('[name="'+e+'"]').length?n.filter('[name="'+e+'"]'):0<n.filter('[name="'+e+'[]"]').length?n.filter('[name="'+e+'[]"]'):0<n.filter("[data-"+u.validate+'="'+e+'"]').length?n.filter("[data-"+u.validate+'="'+e+'"]'):F("<input/>")},fields:function(e){var n=F();return F.each(e,function(e,t){n=n.add(h.get.field(t))}),n},validation:function(n){var i,o;return!!c&&(F.each(c,function(e,t){o=t.identifier||e,h.get.field(o)[0]==n[0]&&(t.identifier=o,i=t)}),i||!1)},value:function(e){var t=[];return t.push(e),h.get.values.call(v,t)[e]},values:function(e){var t=F.isArray(e)?h.get.fields(e):n,c={};return t.each(function(e,t){var n=F(t),i=(n.prop("type"),n.prop("name")),o=n.val(),a=n.is(f.checkbox),r=n.is(f.radio),s=-1!==i.indexOf("[]"),l=!!a&&n.is(":checked");i&&(s?(i=i.replace("[]",""),c[i]||(c[i]=[]),a?l?c[i].push(o||!0):c[i].push(!1):c[i].push(o)):r?c[i]!==D&&0!=c[i]||(c[i]=!!l&&(o||!0)):c[i]=a?!!l&&(o||!0):o)}),c}},has:{field:function(e){return h.verbose("Checking for existence of a field with identifier",e),"string"!=typeof(e=h.escape.string(e))&&h.error(s.identifier,e),0<n.filter("#"+e).length||(0<n.filter('[name="'+e+'"]').length||0<n.filter("[data-"+u.validate+'="'+e+'"]').length)}},escape:{string:function(e){return(e=String(e)).replace(i.escape,"\\$&")}},add:{rule:function(e,t){h.add.field(e,t)},field:function(n,e){var i={};h.is.shorthandRules(e)?(e=F.isArray(e)?e:[e],i[n]={rules:[]},F.each(e,function(e,t){i[n].rules.push({type:t})})):i[n]=e,c=F.extend({},c,i),h.debug("Adding rules",i,c)},fields:function(e){var t;t=e&&h.is.shorthandFields(e)?h.get.fieldsFromShorthand (e):e,c=F.extend({},c,t)},prompt:function(e,t){var n=h.get.field(e).closest(l),i=n.children(f.prompt),o=0!==i.length;t="string"==typeof t?[t]:t,h.verbose("Adding field error state",e),n.addClass(m.error),d.inline&&(o||(i=d.templates.prompt(t)).appendTo(n),i.html(t[0]),o?h.verbose("Inline errors are disabled, no inline error added",e):d.transition&&F.fn.transition!==D&&r.transition("is supported")?(h.verbose("Displaying error with css transition",d.transition),i.transition(d.transition+" in",d.duration)):(h.verbose("Displaying error with fallback javascript animation"),i.fadeIn(d.duration)))},errors:function(e){h.debug("Adding form error messages",e),h.set.error(),t.html(d.templates.error(e))}},remove:{rule:function(n,e){var i=F.isArray(e)?e:[e];if(e==D)return h.debug("Removed all rules"),void(c[n].rules=[]);c[n]!=D&&F.isArray(c[n].rules)&&F.each(c[n].rules,function(e,t){-1!==i.indexOf(t.type)&&(h.debug("Removed rule",t.type),c[n].rules.splice(e,1))})},field:function(e){var t=F.isArray(e)?e:[e];F.each(t,function(e,t){h.remove.rule(t)})},rules:function(e,n){F.isArray(e)?F.each(fields,function(e,t){h.remove.rule(t,n)}):h.remove.rule(e,n)},fields:function(e){h.remove.field(e)},prompt:function(e){var t=h.get.field(e).closest(l),n=t.children(f.prompt);t.removeClass(m.error),d.inline&&n.is(":visible")&&(h.verbose("Removing prompt for field",e),d.transition&&F.fn.transition!==D&&r.transition("is supported")?n.transition(d.transition+" out",d.duration,function(){n.remove()}):n.fadeOut(d.duration,function(){n.remove()}))}},set:{success:function(){r.removeClass(m.error).addClass(m.success)},defaults:function(){n.each(function(){var e=F(this),t=0<e.filter(f.checkbox).length?e.is(":checked"):e.val();e.data(u.defaultValue,t)})},error:function(){r.removeClass(m.success).addClass(m.error)},value:function(e,t){var n={};return n[e]=t,h.set.values.call(v,n)},values:function(e){F.isEmptyObject(e)||F.each(e,function(e,t){var n,i=h.get.field(e),o=i.parent(),a=F.isArray(t),r=o.is(f.uiCheckbox),s=o.is(f.uiDropdown),l=i.is(f.radio)&&r;0<i.length&&(a&&r?(h.verbose("Selecting multiple",t,i),o.checkbox("uncheck"),F.each(t,function(e,t){n=i.filter('[value="'+t+'"]'),o=n.parent(),0<n.length&&o.checkbox("check")})):l?(h.verbose("Selecting radio value",t,i),i.filter('[value="'+t+'"]').parent(f.uiCheckbox).checkbox("check")):r?(h.verbose("Setting checkbox value",t,o),!0===t?o.checkbox("check"):o.checkbox("uncheck")):s?(h.verbose("Setting dropdown value",t,o),o.dropdown("set selected",t)):(h.verbose("Setting field value",t,i),i.val(t)))})}},validate:{form:function(e,t){var n=h.get.values();if(y)return!1;if(b=[],h.determine.isValid()){if(h.debug("Form has no validation errors, submitting"),h.set.success(),!0!==t)return d.onSuccess.call(v,e,n)}else if(h.debug("Form has errors"),h.set.error(),d.inline||h.add.errors(b),r.data("moduleApi")!==D&&e.stopImmediatePropagation(),!0!==t)return d.onFailure.call(v,b,n)},field:function(n,e,t){t=t===D||t,"string"==typeof n&&(h.verbose("Validating field",n),n=c[e=n]);var i=n.identifier||e,o=h.get.field(i),a=!!n.depends&&h.get.field(n.depends),r=!0,s=[];return n.identifier||(h.debug("Using field name as identifier",i),n.identifier=i),o.prop("disabled")?(h.debug("Field is disabled. Skipping",i),r=!0):n.optional&&h.is.blank(o)?(h.debug("Field is optional and blank. Skipping",i),r=!0):n.depends&&h.is.empty(a)?(h.debug("Field depends on another value that is not present or empty. Skipping",a),r=!0):n.rules!==D&&F.each(n.rules,function(e,t){h.has.field(i)&&!h.validate.rule(n,t)&&(h.debug("Field is invalid",i,t.type),s.push(h.get.prompt(t,n)),r=!1)}),r?(t&&(h.remove.prompt(i,s),d.onValid.call(o)),!0):(t&&(b=b.concat(s),h.add.prompt(i,s),d.onInvalid.call(o,s)),!1)},rule:function(e,t){var n=h.get.field(e.identifier),i=(t.type,n.val()),o=h.get.ancillaryValue(t),a=h.get.ruleName(t),r=d.rules[a];if(F.isFunction(r))return i=i===D||""===i||null===i?"":F.trim(i+""),r.call(n,i,o);h.error(s.noRule,a)}},setting:function(e,t){if(F.isPlainObject(e))F.extend(!0,d,e);else{if(t===D)return d[e];d[e]=t}},internal:function(e,t){if(F.isPlainObject(e))F.extend(!0,h,e);else{if(t===D)return h[e];h[e]=t}},debug:function(){!d.silent&&d.debug&&(d.performance?h.performance.log(arguments):(h.debug=Function.prototype.bind.call(console.info,console,d.name+":"),h.debug.apply(console,arguments)))},verbose:function(){!d.silent&&d.verbose&&d.debug&&(d.performance?h.performance.log(arguments):(h.verbose=Function.prototype.bind.call(console.info,console,d.name+":"),h.verbose.apply(console,arguments)))},error:function(){d.silent||(h.error=Function.prototype.bind.call(console.error,console,d.name+":"),h.error.apply(console,arguments))},performance:{log:function(e){var t,n;d.performance&&(n=(t=(new Date).getTime())-(k||t),k=t,T.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:v,"Execution Time":n})),clearTimeout(h.performance.timer),h.performance.timer=setTimeout(h.performance.display,500)},display:function(){var e=d.name+":",n=0;k=!1,clearTimeout(h.performance.timer),F.each(T,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",S&&(e+=" '"+S+"'"),1<w.length&&(e+=" ("+w.length+")"),(console.group!==D||console.table!==D)&&0<T.length&&(console.groupCollapsed(e),console.table?console.table(T):F.each(T,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),T=[]}},invoke:function(i,e,t){var o,a,n,r=p;return e=e||E,t=v||t,"string"==typeof i&&r!==D&&(i=i.split(/[\. ]/),o=i.length-1,F.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(F.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==D)return a=r[n],!1;if(!F.isPlainObject(r[t])||e==o)return r[t]!==D&&(a=r[t]),!1;r=r[t]}})),F.isFunction(a)?n=a.apply(t,e):a!==D&&(n=a),F.isArray(C)?C.push(n):C!==D?C=[C,n]:n!==D&&(C=n),a}}).initialize()}),C!==D?C:this},F.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} must contain "{ruleValue}"',containExactly:'{name} must contain exactly "{ruleValue}"',doesntContain:'{name} cannot contain  "{ruleValue}"',doesntContainExactly:'{name} cannot 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(e){var n='<ul class="list">';return F.each(e,function(e,t){n+="<li>"+t+"</li>"}),F(n+="</ul>")},prompt:function(e){return F("<div/>").addClass("ui basic red pointing prompt label").html(e[0])}},rules:{empty:function(e){return!(e===D||""===e||F.isArray(e)&&0===e.length)},checked:function(){return 0<F(this).filter(":checked").length},email:function(e){return F.fn.form.settings.regExp.email.test(e)},url:function(e){return F.fn.form.settings.regExp.url.test(e)},regExp:function(e,t){if(t instanceof RegExp)return e.match(t);var n,i=t.match(F.fn.form.settings.regExp.flags);return i&&(t=2<=i.length?i[1]:t,n=3<=i.length?i[2]:""),e.match(new RegExp(t,n))},integer:function(e,t){var n,i,o,a=F.fn.form.settings.regExp.integer;return t&&-1===["",".."].indexOf(t)&&(-1==t.indexOf("..")?a.test(t)&&(n=i=t-0):(o=t.split("..",2),a.test(o[0])&&(n=o[0]-0),a.test(o[1])&&(i=o[1]-0))),a.test(e)&&(n===D||n<=e)&&(i===D||e<=i)},decimal:function(e){return F.fn.form.settings.regExp.decimal.test(e)},number:function(e){return F.fn.form.settings.regExp.number.test(e)},is:function(e,t){return t="string"==typeof t?t.toLowerCase():t,(e="string"==typeof e?e.toLowerCase():e)==t},isExactly:function(e,t){return e==t},not:function(e,t){return(e="string"==typeof e?e.toLowerCase():e)!=(t="string"==typeof t?t.toLowerCase():t)},notExactly:function(e,t){return e!=t},contains:function(e,t){return t=t.replace(F.fn.form.settings.regExp.escape,"\\$&"),-1!==e.search(new RegExp(t,"i"))},containsExactly:function(e,t){return t=t.replace(F.fn.form.settings.regExp.escape,"\\$&"),-1!==e.search(new RegExp(t))},doesntContain:function(e,t){return t=t.replace(F.fn.form.settings.regExp.escape,"\\$&"),-1===e.search(new RegExp(t,"i"))},doesntContainExactly:function(e,t){return t=t.replace(F.fn.form.settings.regExp.escape,"\\$&"),-1===e.search(new RegExp(t))},minLength:function(e,t){return e!==D&&e.length>=t},length:function(e,t){return e!==D&&e.length>=t},exactLength:function(e,t){return e!==D&&e.length==t},maxLength:function(e,t){return e!==D&&e.length<=t},match:function(e,t){var n;F(this);return 0<F('[data-validate="'+t+'"]').length?n=F('[data-validate="'+t+'"]').val():0<F("#"+t).length?n=F("#"+t).val():0<F('[name="'+t+'"]').length?n=F('[name="'+t+'"]').val():0<F('[name="'+t+'[]"]').length&&(n=F('[name="'+t+'[]"]')),n!==D&&e.toString()==n.toString()},different:function(e,t){var n;F(this);return 0<F('[data-validate="'+t+'"]').length?n=F('[data-validate="'+t+'"]').val():0<F("#"+t).length?n=F("#"+t).val():0<F('[name="'+t+'"]').length?n=F('[name="'+t+'"]').val():0<F('[name="'+t+'[]"]').length&&(n=F('[name="'+t+'[]"]')),n!==D&&e.toString()!==n.toString()},creditCard:function(n,e){var t,i,o={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]}},a={},r=!1,s="string"==typeof e&&e.split(",");if("string"==typeof n&&0!==n.length){if(n=n.replace(/[\-]/g,""),s&&(F.each(s,function(e,t){(i=o[t])&&(a={length:-1!==F.inArray(n.length,i.length),pattern:-1!==n.search(i.pattern)}).length&&a.pattern&&(r=!0)}),!r))return!1;if((t={number:-1!==F.inArray(n.length,o.unionPay.length),pattern:-1!==n.search(o.unionPay.pattern)}).number&&t.pattern)return!0;for(var l=n.length,c=0,u=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],d=0;l--;)d+=u[c][parseInt(n.charAt(l),10)],c^=1;return d%10==0&&0<d}},minCount:function(e,t){return 0==t||(1==t?""!==e:e.split(",").length>=t)},exactCount:function(e,t){return 0==t?""===e:1==t?""!==e&&-1===e.search(","):e.split(",").length==t},maxCount:function(e,t){return 0!=t&&(1==t?-1===e.search(","):e.split(",").length<=t)}}}}(jQuery,window,document),function(S,k,e,T){"use strict";k=void 0!==k&&k.Math==Math?k:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),S.fn.accordion=function(a){var v,r=S(this),b=(new Date).getTime(),y=[],x=a,C="string"==typeof x,w=[].slice.call(arguments,1);k.requestAnimationFrame||k.mozRequestAnimationFrame||k.webkitRequestAnimationFrame||k.msRequestAnimationFrame;return r.each(function(){var e,c,u=S.isPlainObject(a)?S.extend(!0,{},S.fn.accordion.settings,a):S.extend({},S.fn.accordion.settings),d=u.className,t=u.namespace,f=u.selector,s=u.error,n="."+t,i="module-"+t,o=r.selector||"",m=S(this),g=m.find(f.title),p=m.find(f.content),l=this,h=m.data(i);c={initialize:function(){c.debug("Initializing",m),c.bind.events(),u.observeChanges&&c.observeChanges(),c.instantiate()},instantiate:function(){h=c,m.data(i,c)},destroy:function(){c.debug("Destroying previous instance",m),m.off(n).removeData(i)},refresh:function(){g=m.find(f.title),p=m.find(f.content)},observeChanges:function(){"MutationObserver"in k&&((e=new MutationObserver(function(e){c.debug("DOM tree modified, updating selector cache"),c.refresh()})).observe(l,{childList:!0,subtree:!0}),c.debug("Setting up mutation observer",e))},bind:{events:function(){c.debug("Binding delegated events"),m.on(u.on+n,f.trigger,c.event.click)}},event:{click:function(){c.toggle.call(this)}},toggle:function(e){var t=e!==T?"number"==typeof e?g.eq(e):S(e).closest(f.title):S(this).closest(f.title),n=t.next(p),i=n.hasClass(d.animating),o=n.hasClass(d.active),a=o&&!i,r=!o&&i;c.debug("Toggling visibility of content",t),a||r?u.collapsible?c.close.call(t):c.debug("Cannot close accordion content collapsing is disabled"):c.open.call(t)},open:function(e){var t=e!==T?"number"==typeof e?g.eq(e):S(e).closest(f.title):S(this).closest(f.title),n=t.next(p),i=n.hasClass(d.animating);n.hasClass(d.active)||i?c.debug("Accordion already open, skipping",n):(c.debug("Opening accordion content",t),u.onOpening.call(n),u.onChanging.call(n),u.exclusive&&c.closeOthers.call(t),t.addClass(d.active),n.stop(!0,!0).addClass(d.animating),u.animateChildren&&(S.fn.transition!==T&&m.transition("is supported")?n.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:u.debug,verbose:u.verbose,duration:u.duration}):n.children().stop(!0,!0).animate({opacity:1},u.duration,c.resetOpacity)),n.slideDown(u.duration,u.easing,function(){n.removeClass(d.animating).addClass(d.active),c.reset.display.call(this),u.onOpen.call(this),u.onChange.call(this)}))},close:function(e){var t=e!==T?"number"==typeof e?g.eq(e):S(e).closest(f.title):S(this).closest(f.title),n=t.next(p),i=n.hasClass(d.animating),o=n.hasClass(d.active);!o&&!(!o&&i)||o&&i||(c.debug("Closing accordion content",n),u.onClosing.call(n),u.onChanging.call(n),t.removeClass(d.active),n.stop(!0,!0).addClass(d.animating),u.animateChildren&&(S.fn.transition!==T&&m.transition("is supported")?n.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:u.debug,verbose:u.verbose,duration:u.duration}):n.children().stop(!0,!0).animate({opacity:0},u.duration,c.resetOpacity)),n.slideUp(u.duration,u.easing,function(){n.removeClass(d.animating).removeClass(d.active),c.reset.display.call(this),u.onClose.call(this),u.onChange.call(this)}))},closeOthers:function(e){var t,n,i,o=e!==T?g.eq(e):S(this).closest(f.title),a=o.parents(f.content).prev(f.title),r=o.closest(f.accordion),s=f.title+"."+d.active+":visible",l=f.content+"."+d.active+":visible";i=u.closeNested?(t=r.find(s).not(a)).next(p):(t=r.find(s).not(a),n=r.find(l).find(s).not(a),(t=t.not(n)).next(p)),0<t.length&&(c.debug("Exclusive enabled, closing other content",t),t.removeClass(d.active),i.removeClass(d.animating).stop(!0,!0),u.animateChildren&&(S.fn.transition!==T&&m.transition("is supported")?i.children().transition({animation:"fade out",useFailSafe:!0,debug:u.debug,verbose:u.verbose,duration:u.duration}):i.children().stop(!0,!0).animate({opacity:0},u.duration,c.resetOpacity)),i.slideUp(u.duration,u.easing,function(){S(this).removeClass(d.active),c.reset.display.call(this)}))},reset:{display:function(){c.verbose("Removing inline display from element",this),S(this).css("display",""),""===S(this).attr("style")&&S(this).attr("style","").removeAttr("style")},opacity:function(){c.verbose("Removing inline opacity from element",this),S(this).css("opacity",""),""===S(this).attr("style")&&S(this).attr("style","").removeAttr("style")}},setting:function(e,t){if(c.debug("Changing setting",e,t),S.isPlainObject(e))S.extend(!0,u,e);else{if(t===T)return u[e];S.isPlainObject(u[e])?S.extend(!0,u[e],t):u[e]=t}},internal:function(e,t){if(c.debug("Changing internal",e,t),t===T)return c[e];S.isPlainObject(e)?S.extend(!0,c,e):c[e]=t},debug:function(){!u.silent&&u.debug&&(u.performance?c.performance.log(arguments):(c.debug=Function.prototype.bind.call(console.info,console,u.name+":"),c.debug.apply(console,arguments)))},verbose:function(){!u.silent&&u.verbose&&u.debug&&(u.performance?c.performance.log(arguments):(c.verbose=Function.prototype.bind.call(console.info,console,u.name+":"),c.verbose.apply(console,arguments)))},error:function(){u.silent||(c.error=Function.prototype.bind.call(console.error,console,u.name+":"),c.error.apply(console,arguments))},performance:{log:function(e){var t,n;u.performance&&(n=(t=(new Date).getTime())-(b||t),b=t,y.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:l,"Execution Time":n})),clearTimeout(c.performance.timer),c.performance.timer=setTimeout(c.performance.display,500)},display:function(){var e=u.name+":",n=0;b=!1,clearTimeout(c.performance.timer),S.each(y,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",o&&(e+=" '"+o+"'"),(console.group!==T||console.table!==T)&&0<y.length&&(console.groupCollapsed(e),console.table?console.table(y):S.each(y,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),y=[]}},invoke:function(i,e,t){var o,a,n,r=h;return e=e||w,t=l||t,"string"==typeof i&&r!==T&&(i=i.split(/[\. ]/),o=i.length-1,S.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(S.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==T)return a=r[n],!1;if(!S.isPlainObject(r[t])||e==o)return r[t]!==T?a=r[t]:c.error(s.method,i),!1;r=r[t]}})),S.isFunction(a)?n=a.apply(t,e):a!==T&&(n=a),S.isArray(v)?v.push(n):v!==T?v=[v,n]:n!==T&&(v=n),a}},C?(h===T&&c.initialize(),c.invoke(x)):(h!==T&&h.invoke("destroy"),c.initialize())}),v!==T?v:this},S.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(){},onClosing:function(){},onChanging:function(){},onOpen: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"}},S.extend(S.easing,{easeOutQuad:function(e,t,n,i,o){return-i*(t/=o)*(t-2)+n}})}(jQuery,window,document),function(T,A,R,P){"use strict";A=void 0!==A&&A.Math==Math?A:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),T.fn.checkbox=function(v){var b,e=T(this),y=e.selector||"",x=(new Date).getTime(),C=[],w=v,S="string"==typeof w,k=[].slice.call(arguments,1);return e.each(function(){var e,s,i=T.extend(!0,{},T.fn.checkbox.settings,v),t=i.className,n=i.namespace,o=i.selector,l=i.error,a="."+n,r="module-"+n,c=T(this),u=T(this).children(o.label),d=T(this).children(o.input),f=d[0],m=!1,g=!1,p=c.data(r),h=this;s={initialize:function(){s.verbose("Initializing checkbox",i),s.create.label(),s.bind.events(),s.set.tabbable(),s.hide.input(),s.observeChanges(),s.instantiate(),s.setup()},instantiate:function(){s.verbose("Storing instance of module",s),p=s,c.data(r,s)},destroy:function(){s.verbose("Destroying module"),s.unbind.events(),s.show.input(),c.removeData(r)},fix:{reference:function(){c.is(o.input)&&(s.debug("Behavior called on <input> adjusting invoked element"),c=c.closest(o.checkbox),s.refresh())}},setup:function(){s.set.initialLoad(),s.is.indeterminate()?(s.debug("Initial value is indeterminate"),s.indeterminate()):s.is.checked()?(s.debug("Initial value is checked"),s.check()):(s.debug("Initial value is unchecked"),s.uncheck()),s.remove.initialLoad()},refresh:function(){u=c.children(o.label),d=c.children(o.input),f=d[0]},hide:{input:function(){s.verbose("Modifying <input> z-index to be unselectable"),d.addClass(t.hidden)}},show:{input:function(){s.verbose("Modifying <input> z-index to be selectable"),d.removeClass(t.hidden)}},observeChanges:function(){"MutationObserver"in A&&((e=new MutationObserver(function(e){s.debug("DOM tree modified, updating selector cache"),s.refresh()})).observe(h,{childList:!0,subtree:!0}),s.debug("Setting up mutation observer",e))},attachEvents:function(e,t){var n=T(e);t=T.isFunction(s[t])?s[t]:s.toggle,0<n.length?(s.debug("Attaching checkbox events to element",e,t),n.on("click"+a,t)):s.error(l.notFound)},event:{click:function(e){var t=T(e.target);t.is(o.input)?s.verbose("Using default check action on initialized checkbox"):t.is(o.link)?s.debug("Clicking link inside checkbox, skipping toggle"):(s.toggle(),d.focus(),e.preventDefault())},keydown:function(e){var t=e.which,n=13,i=32;g=t==27?(s.verbose("Escape key pressed blurring field"),d.blur(),!0):!(e.ctrlKey||t!=i&&t!=n)&&(s.verbose("Enter/space key pressed, toggling checkbox"),s.toggle(),!0)},keyup:function(e){g&&e.preventDefault()}},check:function(){s.should.allowCheck()&&(s.debug("Checking checkbox",d),s.set.checked(),s.should.ignoreCallbacks()||(i.onChecked.call(f),i.onChange.call(f)))},uncheck:function(){s.should.allowUncheck()&&(s.debug("Unchecking checkbox"),s.set.unchecked(),s.should.ignoreCallbacks()||(i.onUnchecked.call(f),i.onChange.call(f)))},indeterminate:function(){s.should.allowIndeterminate()?s.debug("Checkbox is already indeterminate"):(s.debug("Making checkbox indeterminate"),s.set.indeterminate(),s.should.ignoreCallbacks()||(i.onIndeterminate.call(f),i.onChange.call(f)))},determinate:function(){s.should.allowDeterminate()?s.debug("Checkbox is already determinate"):(s.debug("Making checkbox determinate"),s.set.determinate(),s.should.ignoreCallbacks()||(i.onDeterminate.call(f),i.onChange.call(f)))},enable:function(){s.is.enabled()?s.debug("Checkbox is already enabled"):(s.debug("Enabling checkbox"),s.set.enabled(),i.onEnable.call(f),i.onEnabled.call(f))},disable:function(){s.is.disabled()?s.debug("Checkbox is already disabled"):(s.debug("Disabling checkbox"),s.set.disabled(),i.onDisable.call(f),i.onDisabled.call(f))},get:{radios:function(){var e=s.get.name();return T('input[name="'+e+'"]').closest(o.checkbox)},otherRadios:function(){return s.get.radios().not(c)},name:function(){return d.attr("name")}},is:{initialLoad:function(){return m},radio:function(){return d.hasClass(t.radio)||"radio"==d.attr("type")},indeterminate:function(){return d.prop("indeterminate")!==P&&d.prop("indeterminate")},checked:function(){return d.prop("checked")!==P&&d.prop("checked")},disabled:function(){return d.prop("disabled")!==P&&d.prop("disabled")},enabled:function(){return!s.is.disabled()},determinate:function(){return!s.is.indeterminate()},unchecked:function(){return!s.is.checked()}},should:{allowCheck:function(){return s.is.determinate()&&s.is.checked()&&!s.should.forceCallbacks()?(s.debug("Should not allow check, checkbox is already checked"),!1):!1!==i.beforeChecked.apply(f)||(s.debug("Should not allow check, beforeChecked cancelled"),!1)},allowUncheck:function(){return s.is.determinate()&&s.is.unchecked()&&!s.should.forceCallbacks()?(s.debug("Should not allow uncheck, checkbox is already unchecked"),!1):!1!==i.beforeUnchecked.apply(f)||(s.debug("Should not allow uncheck, beforeUnchecked cancelled"),!1)},allowIndeterminate:function(){return s.is.indeterminate()&&!s.should.forceCallbacks()?(s.debug("Should not allow indeterminate, checkbox is already indeterminate"),!1):!1!==i.beforeIndeterminate.apply(f)||(s.debug("Should not allow indeterminate, beforeIndeterminate cancelled"),!1)},allowDeterminate:function(){return s.is.determinate()&&!s.should.forceCallbacks()?(s.debug("Should not allow determinate, checkbox is already determinate"),!1):!1!==i.beforeDeterminate.apply(f)||(s.debug("Should not allow determinate, beforeDeterminate cancelled"),!1)},forceCallbacks:function(){return s.is.initialLoad()&&i.fireOnInit},ignoreCallbacks:function(){return m&&!i.fireOnInit}},can:{change:function(){return!(c.hasClass(t.disabled)||c.hasClass(t.readOnly)||d.prop("disabled")||d.prop("readonly"))},uncheck:function(){return"boolean"==typeof i.uncheckable?i.uncheckable:!s.is.radio()}},set:{initialLoad:function(){m=!0},checked:function(){s.verbose("Setting class to checked"),c.removeClass(t.indeterminate).addClass(t.checked),s.is.radio()&&s.uncheckOthers(),s.is.indeterminate()||!s.is.checked()?(s.verbose("Setting state to checked",f),d.prop("indeterminate",!1).prop("checked",!0),s.trigger.change()):s.debug("Input is already checked, skipping input property change")},unchecked:function(){s.verbose("Removing checked class"),c.removeClass(t.indeterminate).removeClass(t.checked),s.is.indeterminate()||!s.is.unchecked()?(s.debug("Setting state to unchecked"),d.prop("indeterminate",!1).prop("checked",!1),s.trigger.change()):s.debug("Input is already unchecked")},indeterminate:function(){s.verbose("Setting class to indeterminate"),c.addClass(t.indeterminate),s.is.indeterminate()?s.debug("Input is already indeterminate, skipping input property change"):(s.debug("Setting state to indeterminate"),d.prop("indeterminate",!0),s.trigger.change())},determinate:function(){s.verbose("Removing indeterminate class"),c.removeClass(t.indeterminate),s.is.determinate()?s.debug("Input is already determinate, skipping input property change"):(s.debug("Setting state to determinate"),d.prop("indeterminate",!1))},disabled:function(){s.verbose("Setting class to disabled"),c.addClass(t.disabled),s.is.disabled()?s.debug("Input is already disabled, skipping input property change"):(s.debug("Setting state to disabled"),d.prop("disabled","disabled"),s.trigger.change())},enabled:function(){s.verbose("Removing disabled class"),c.removeClass(t.disabled),s.is.enabled()?s.debug("Input is already enabled, skipping input property change"):(s.debug("Setting state to enabled"),d.prop("disabled",!1),s.trigger.change())},tabbable:function(){s.verbose("Adding tabindex to checkbox"),d.attr("tabindex")===P&&d.attr("tabindex",0)}},remove:{initialLoad:function(){m=!1}},trigger:{change:function(){var e=R.createEvent("HTMLEvents"),t=d[0];t&&(s.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e))}},create:{label:function(){0<d.prevAll(o.label).length?(d.prev(o.label).detach().insertAfter(d),s.debug("Moving existing label",u)):s.has.label()||(u=T("<label>").insertAfter(d),s.debug("Creating label",u))}},has:{label:function(){return 0<u.length}},bind:{events:function(){s.verbose("Attaching checkbox events"),c.on("click"+a,s.event.click).on("keydown"+a,o.input,s.event.keydown).on("keyup"+a,o.input,s.event.keyup)}},unbind:{events:function(){s.debug("Removing events"),c.off(a)}},uncheckOthers:function(){var e=s.get.otherRadios();s.debug("Unchecking other radios",e),e.removeClass(t.checked)},toggle:function(){s.can.change()?s.is.indeterminate()||s.is.unchecked()?(s.debug("Currently unchecked"),s.check()):s.is.checked()&&s.can.uncheck()&&(s.debug("Currently checked"),s.uncheck()):s.is.radio()||s.debug("Checkbox is read-only or disabled, ignoring toggle")},setting:function(e,t){if(s.debug("Changing setting",e,t),T.isPlainObject(e))T.extend(!0,i,e);else{if(t===P)return i[e];T.isPlainObject(i[e])?T.extend(!0,i[e],t):i[e]=t}},internal:function(e,t){if(T.isPlainObject(e))T.extend(!0,s,e);else{if(t===P)return s[e];s[e]=t}},debug:function(){!i.silent&&i.debug&&(i.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,i.name+":"),s.debug.apply(console,arguments)))},verbose:function(){!i.silent&&i.verbose&&i.debug&&(i.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,i.name+":"),s.verbose.apply(console,arguments)))},error:function(){i.silent||(s.error=Function.prototype.bind.call(console.error,console,i.name+":"),s.error.apply(console,arguments))},performance:{log:function(e){var t,n;i.performance&&(n=(t=(new Date).getTime())-(x||t),x=t,C.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:h,"Execution Time":n})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=i.name+":",n=0;x=!1,clearTimeout(s.performance.timer),T.each(C,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",y&&(e+=" '"+y+"'"),(console.group!==P||console.table!==P)&&0<C.length&&(console.groupCollapsed(e),console.table?console.table(C):T.each(C,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),C=[]}},invoke:function(i,e,t){var o,a,n,r=p;return e=e||k,t=h||t,"string"==typeof i&&r!==P&&(i=i.split(/[\. ]/),o=i.length-1,T.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(T.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==P)return a=r[n],!1;if(!T.isPlainObject(r[t])||e==o)return r[t]!==P?a=r[t]:s.error(l.method,i),!1;r=r[t]}})),T.isFunction(a)?n=a.apply(t,e):a!==P&&(n=a),T.isArray(b)?b.push(n):b!==P?b=[b,n]:n!==P&&(b=n),a}},S?(p===P&&s.initialize(),s.invoke(w)):(p!==P&&p.invoke("destroy"),s.initialize())}),b!==P?b:this},T.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(S,e,k,T){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),S.fn.dimmer=function(p){var h,v=S(this),b=(new Date).getTime(),y=[],x=p,C="string"==typeof x,w=[].slice.call(arguments,1);return v.each(function(){var a,t,s,r=S.isPlainObject(p)?S.extend(!0,{},S.fn.dimmer.settings,p):S.extend({},S.fn.dimmer.settings),n=r.selector,e=r.namespace,i=r.className,l=r.error,o="."+e,c="module-"+e,u=v.selector||"",d="ontouchstart"in k.documentElement?"touchstart":"click",f=S(this),m=this,g=f.data(c);(s={preinitialize:function(){a=s.is.dimmer()?(t=f.parent(),f):(t=f,s.has.dimmer()?r.dimmerName?t.find(n.dimmer).filter("."+r.dimmerName):t.find(n.dimmer):s.create())},initialize:function(){s.debug("Initializing dimmer",r),s.bind.events(),s.set.dimmable(),s.instantiate()},instantiate:function(){s.verbose("Storing instance of module",s),g=s,f.data(c,g)},destroy:function(){s.verbose("Destroying previous module",a),s.unbind.events(),s.remove.variation(),t.off(o)},bind:{events:function(){"hover"==r.on?t.on("mouseenter"+o,s.show).on("mouseleave"+o,s.hide):"click"==r.on&&t.on(d+o,s.toggle),s.is.page()&&(s.debug("Setting as a page dimmer",t),s.set.pageDimmer()),s.is.closable()&&(s.verbose("Adding dimmer close event",a),t.on(d+o,n.dimmer,s.event.click))}},unbind:{events:function(){f.removeData(c),t.off(o)}},event:{click:function(e){s.verbose("Determining if event occured on dimmer",e),0!==a.find(e.target).length&&!S(e.target).is(n.content)||(s.hide(),e.stopImmediatePropagation())}},addContent:function(e){var t=S(e);s.debug("Add content to dimmer",t),t.parent()[0]!==a[0]&&t.detach().appendTo(a)},create:function(){var e=S(r.template.dimmer());return r.dimmerName&&(s.debug("Creating named dimmer",r.dimmerName),e.addClass(r.dimmerName)),e.appendTo(t),e},show:function(e){e=S.isFunction(e)?e:function(){},s.debug("Showing dimmer",a,r),s.set.variation(),s.is.dimmed()&&!s.is.animating()||!s.is.enabled()?s.debug("Dimmer is already shown or disabled"):(s.animate.show(e),r.onShow.call(m),r.onChange.call(m))},hide:function(e){e=S.isFunction(e)?e:function(){},s.is.dimmed()||s.is.animating()?(s.debug("Hiding dimmer",a),s.animate.hide(e),r.onHide.call(m),r.onChange.call(m)):s.debug("Dimmer is not visible")},toggle:function(){s.verbose("Toggling dimmer visibility",a),s.is.dimmed()?s.hide():s.show()},animate:{show:function(e){e=S.isFunction(e)?e:function(){},r.useCSS&&S.fn.transition!==T&&a.transition("is supported")?(r.useFlex?(s.debug("Using flex dimmer"),s.remove.legacy()):(s.debug("Using legacy non-flex dimmer"),s.set.legacy()),"auto"!==r.opacity&&s.set.opacity(),a.transition({displayType:r.useFlex?"flex":"block",animation:r.transition+" in",queue:!1,duration:s.get.duration(),useFailSafe:!0,onStart:function(){s.set.dimmed()},onComplete:function(){s.set.active(),e()}})):(s.verbose("Showing dimmer animation with javascript"),s.set.dimmed(),"auto"==r.opacity&&(r.opacity=.8),a.stop().css({opacity:0,width:"100%",height:"100%"}).fadeTo(s.get.duration(),r.opacity,function(){a.removeAttr("style"),s.set.active(),e()}))},hide:function(e){e=S.isFunction(e)?e:function(){},r.useCSS&&S.fn.transition!==T&&a.transition("is supported")?(s.verbose("Hiding dimmer with css"),a.transition({displayType:r.useFlex?"flex":"block",animation:r.transition+" out",queue:!1,duration:s.get.duration(),useFailSafe:!0,onStart:function(){s.remove.dimmed()},onComplete:function(){s.remove.variation(),s.remove.active(),e()}})):(s.verbose("Hiding dimmer with javascript"),s.remove.dimmed(),a.stop().fadeOut(s.get.duration(),function(){s.remove.active(),a.removeAttr("style"),e()}))}},get:{dimmer:function(){return a},duration:function(){return"object"==typeof r.duration?s.is.active()?r.duration.hide:r.duration.show:r.duration}},has:{dimmer:function(){return r.dimmerName?0<f.find(n.dimmer).filter("."+r.dimmerName).length:0<f.find(n.dimmer).length}},is:{active:function(){return a.hasClass(i.active)},animating:function(){return a.is(":animated")||a.hasClass(i.animating)},closable:function(){return"auto"==r.closable?"hover"!=r.on:r.closable},dimmer:function(){return f.hasClass(i.dimmer)},dimmable:function(){return f.hasClass(i.dimmable)},dimmed:function(){return t.hasClass(i.dimmed)},disabled:function(){return t.hasClass(i.disabled)},enabled:function(){return!s.is.disabled()},page:function(){return t.is("body")},pageDimmer:function(){return a.hasClass(i.pageDimmer)}},can:{show:function(){return!a.hasClass(i.disabled)}},set:{opacity:function(e){var t=a.css("background-color"),n=t.split(","),i=n&&3==n.length,o=n&&4==n.length;e=0===r.opacity?0:r.opacity||e,t=i||o?(n[3]=e+")",n.join(",")):"rgba(0, 0, 0, "+e+")",s.debug("Setting opacity to",e),a.css("background-color",t)},legacy:function(){a.addClass(i.legacy)},active:function(){a.addClass(i.active)},dimmable:function(){t.addClass(i.dimmable)},dimmed:function(){t.addClass(i.dimmed)},pageDimmer:function(){a.addClass(i.pageDimmer)},disabled:function(){a.addClass(i.disabled)},variation:function(e){(e=e||r.variation)&&a.addClass(e)}},remove:{active:function(){a.removeClass(i.active)},legacy:function(){a.removeClass(i.legacy)},dimmed:function(){t.removeClass(i.dimmed)},disabled:function(){a.removeClass(i.disabled)},variation:function(e){(e=e||r.variation)&&a.removeClass(e)}},setting:function(e,t){if(s.debug("Changing setting",e,t),S.isPlainObject(e))S.extend(!0,r,e);else{if(t===T)return r[e];S.isPlainObject(r[e])?S.extend(!0,r[e],t):r[e]=t}},internal:function(e,t){if(S.isPlainObject(e))S.extend(!0,s,e);else{if(t===T)return s[e];s[e]=t}},debug:function(){!r.silent&&r.debug&&(r.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,r.name+":"),s.debug.apply(console,arguments)))},verbose:function(){!r.silent&&r.verbose&&r.debug&&(r.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),s.verbose.apply(console,arguments)))},error:function(){r.silent||(s.error=Function.prototype.bind.call(console.error,console,r.name+":"),s.error.apply(console,arguments))},performance:{log:function(e){var t,n;r.performance&&(n=(t=(new Date).getTime())-(b||t),b=t,y.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:m,"Execution Time":n})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=r.name+":",n=0;b=!1,clearTimeout(s.performance.timer),S.each(y,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",u&&(e+=" '"+u+"'"),1<v.length&&(e+=" ("+v.length+")"),(console.group!==T||console.table!==T)&&0<y.length&&(console.groupCollapsed(e),console.table?console.table(y):S.each(y,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),y=[]}},invoke:function(i,e,t){var o,a,n,r=g;return e=e||w,t=m||t,"string"==typeof i&&r!==T&&(i=i.split(/[\. ]/),o=i.length-1,S.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(S.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==T)return a=r[n],!1;if(!S.isPlainObject(r[t])||e==o)return r[t]!==T?a=r[t]:s.error(l.method,i),!1;r=r[t]}})),S.isFunction(a)?n=a.apply(t,e):a!==T&&(n=a),S.isArray(h)?h.push(n):h!==T?h=[h,n]:n!==T&&(h=n),a}}).preinitialize(),C?(g===T&&s.initialize(),s.invoke(x)):(g!==T&&g.invoke("destroy"),s.initialize())}),h!==T?h:this},S.fn.dimmer.settings={name:"Dimmer",namespace:"dimmer",silent:!1,debug:!1,verbose:!1,performance:!0,useFlex:!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",legacy:"legacy",pageDimmer:"page",show:"show"},selector:{dimmer:"> .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(){return S("<div />").attr("class","ui dimmer")}}}}(jQuery,window,document),function(Y,Z,K,J){"use strict";Z=void 0!==Z&&Z.Math==Math?Z:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Y.fn.dropdown=function(M){var L,V=Y(this),N=Y(K),H=V.selector||"",U="ontouchstart"in K.documentElement,W=(new Date).getTime(),B=[],Q=M,X="string"==typeof Q,$=[].slice.call(arguments,1);return V.each(function(n){var e,t,i,o,a,r,s,g,p=Y.isPlainObject(M)?Y.extend(!0,{},Y.fn.dropdown.settings,M):Y.extend({},Y.fn.dropdown.settings),h=p.className,c=p.message,l=p.fields,v=p.keys,b=p.metadata,u=p.namespace,d=p.regExp,y=p.selector,f=p.error,m=p.templates,x="."+u,C="module-"+u,w=Y(this),S=Y(p.context),k=w.find(y.text),T=w.find(y.search),A=w.find(y.sizer),R=w.find(y.input),P=w.find(y.icon),E=0<w.prev().find(y.text).length?w.prev().find(y.text):w.prev(),F=w.children(y.menu),O=F.find(y.item),D=!1,q=!1,j=!1,z=this,I=w.data(C);g={initialize:function(){g.debug("Initializing dropdown",p),g.is.alreadySetup()?g.setup.reference():(g.setup.layout(),p.values&&g.change.values(p.values),g.refreshData(),g.save.defaults(),g.restore.selected(),g.create.id(),g.bind.events(),g.observeChanges(),g.instantiate())},instantiate:function(){g.verbose("Storing instance of dropdown",g),I=g,w.data(C,g)},destroy:function(){g.verbose("Destroying previous dropdown",w),g.remove.tabbable(),w.off(x).removeData(C),F.off(x),N.off(o),g.disconnect.menuObserver(),g.disconnect.selectObserver()},observeChanges:function(){"MutationObserver"in Z&&(r=new MutationObserver(g.event.select.mutation),s=new MutationObserver(g.event.menu.mutation),g.debug("Setting up mutation observer",r,s),g.observe.select(),g.observe.menu())},disconnect:{menuObserver:function(){s&&s.disconnect()},selectObserver:function(){r&&r.disconnect()}},observe:{select:function(){g.has.input()&&r.observe(w[0],{childList:!0,subtree:!0})},menu:function(){g.has.menu()&&s.observe(F[0],{childList:!0,subtree:!0})}},create:{id:function(){a=(Math.random().toString(16)+"000000000").substr(2,8),o="."+a,g.verbose("Creating unique id for element",a)},userChoice:function(e){var n,i,o;return!!(e=e||g.get.userValues())&&(e=Y.isArray(e)?e:[e],Y.each(e,function(e,t){!1===g.get.item(t)&&(o=p.templates.addition(g.add.variables(c.addResult,t)),i=Y("<div />").html(o).attr("data-"+b.value,t).attr("data-"+b.text,t).addClass(h.addition).addClass(h.item),p.hideAdditions&&i.addClass(h.hidden),n=n===J?i:n.add(i),g.verbose("Creating user choices for value",t,i))}),n)},userLabels:function(e){var t=g.get.userValues();t&&(g.debug("Adding user labels",t),Y.each(t,function(e,t){g.verbose("Adding custom user value"),g.add.label(t,t)}))},menu:function(){F=Y("<div />").addClass(h.menu).appendTo(w)},sizer:function(){A=Y("<span />").addClass(h.sizer).insertAfter(T)}},search:function(e){e=e!==J?e:g.get.query(),g.verbose("Searching for query",e),g.has.minCharacters(e)?g.filter(e):g.hide()},select:{firstUnfiltered:function(){g.verbose("Selecting first non-filtered element"),g.remove.selectedItem(),O.not(y.unselectable).not(y.addition+y.hidden).eq(0).addClass(h.selected)},nextAvailable:function(e){var t=(e=e.eq(0)).nextAll(y.item).not(y.unselectable).eq(0),n=e.prevAll(y.item).not(y.unselectable).eq(0);0<t.length?(g.verbose("Moving selection to",t),t.addClass(h.selected)):(g.verbose("Moving selection to",n),n.addClass(h.selected))}},setup:{api:function(){var e={debug:p.debug,urlData:{value:g.get.value(),query:g.get.query()},on:!1};g.verbose("First request, initializing API"),w.api(e)},layout:function(){w.is("select")&&(g.setup.select(),g.setup.returnedObject()),g.has.menu()||g.create.menu(),g.is.search()&&!g.has.search()&&(g.verbose("Adding search input"),T=Y("<input />").addClass(h.search).prop("autocomplete","off").insertBefore(k)),g.is.multiple()&&g.is.searchSelection()&&!g.has.sizer()&&g.create.sizer(),p.allowTab&&g.set.tabbable()},select:function(){var e=g.get.selectValues();g.debug("Dropdown initialized on a select",e),w.is("select")&&(R=w),0<R.parent(y.dropdown).length?(g.debug("UI dropdown already exists. Creating dropdown menu only"),w=R.closest(y.dropdown),g.has.menu()||g.create.menu(),F=w.children(y.menu),g.setup.menu(e)):(g.debug("Creating entire dropdown from select"),w=Y("<div />").attr("class",R.attr("class")).addClass(h.selection).addClass(h.dropdown).html(m.dropdown(e)).insertBefore(R),R.hasClass(h.multiple)&&!1===R.prop("multiple")&&(g.error(f.missingMultiple),R.prop("multiple",!0)),R.is("[multiple]")&&g.set.multiple(),R.prop("disabled")&&(g.debug("Disabling dropdown"),w.addClass(h.disabled)),R.removeAttr("class").detach().prependTo(w)),g.refresh()},menu:function(e){F.html(m.menu(e,l)),O=F.find(y.item)},reference:function(){g.debug("Dropdown behavior was called on select, replacing with closest dropdown"),w=w.parent(y.dropdown),I=w.data(C),z=w.get(0),g.refresh(),g.setup.returnedObject()},returnedObject:function(){var e=V.slice(0,n),t=V.slice(n+1);V=e.add(w).add(t)}},refresh:function(){g.refreshSelectors(),g.refreshData()},refreshItems:function(){O=F.find(y.item)},refreshSelectors:function(){g.verbose("Refreshing selector cache"),k=w.find(y.text),T=w.find(y.search),R=w.find(y.input),P=w.find(y.icon),E=0<w.prev().find(y.text).length?w.prev().find(y.text):w.prev(),F=w.children(y.menu),O=F.find(y.item)},refreshData:function(){g.verbose("Refreshing cached metadata"),O.removeData(b.text).removeData(b.value)},clearData:function(){g.verbose("Clearing metadata"),O.removeData(b.text).removeData(b.value),w.removeData(b.defaultText).removeData(b.defaultValue).removeData(b.placeholderText)},toggle:function(){g.verbose("Toggling menu visibility"),g.is.active()?g.hide():g.show()},show:function(e){if(e=Y.isFunction(e)?e:function(){},!g.can.show()&&g.is.remote()&&(g.debug("No API results retrieved, searching before show"),g.queryRemote(g.get.query(),g.show)),g.can.show()&&!g.is.active()){if(g.debug("Showing dropdown"),!g.has.message()||g.has.maxSelections()||g.has.allResultsFiltered()||g.remove.message(),g.is.allFiltered())return!0;!1!==p.onShow.call(z)&&g.animate.show(function(){g.can.click()&&g.bind.intent(),g.has.menuSearch()&&g.focusSearch(),g.set.visible(),e.call(z)})}},hide:function(e){e=Y.isFunction(e)?e:function(){},g.is.active()&&!g.is.animatingOutward()&&(g.debug("Hiding dropdown"),!1!==p.onHide.call(z)&&g.animate.hide(function(){g.remove.visible(),e.call(z)}))},hideOthers:function(){g.verbose("Finding other dropdowns to hide"),V.not(w).has(y.menu+"."+h.visible).dropdown("hide")},hideMenu:function(){g.verbose("Hiding menu  instantaneously"),g.remove.active(),g.remove.visible(),F.transition("hide")},hideSubMenus:function(){var e=F.children(y.item).find(y.menu);g.verbose("Hiding sub menus",e),e.transition("hide")},bind:{events:function(){U&&g.bind.touchEvents(),g.bind.keyboardEvents(),g.bind.inputEvents(),g.bind.mouseEvents()},touchEvents:function(){g.debug("Touch device detected binding additional touch events"),g.is.searchSelection()||g.is.single()&&w.on("touchstart"+x,g.event.test.toggle),F.on("touchstart"+x,y.item,g.event.item.mouseenter)},keyboardEvents:function(){g.verbose("Binding keyboard events"),w.on("keydown"+x,g.event.keydown),g.has.search()&&w.on(g.get.inputEvent()+x,y.search,g.event.input),g.is.multiple()&&N.on("keydown"+o,g.event.document.keydown)},inputEvents:function(){g.verbose("Binding input change events"),w.on("change"+x,y.input,g.event.change)},mouseEvents:function(){g.verbose("Binding mouse events"),g.is.multiple()&&w.on("click"+x,y.label,g.event.label.click).on("click"+x,y.remove,g.event.remove.click),g.is.searchSelection()?(w.on("mousedown"+x,g.event.mousedown).on("mouseup"+x,g.event.mouseup).on("mousedown"+x,y.menu,g.event.menu.mousedown).on("mouseup"+x,y.menu,g.event.menu.mouseup).on("click"+x,y.icon,g.event.icon.click).on("focus"+x,y.search,g.event.search.focus).on("click"+x,y.search,g.event.search.focus).on("blur"+x,y.search,g.event.search.blur).on("click"+x,y.text,g.event.text.focus),g.is.multiple()&&w.on("click"+x,g.event.click)):("click"==p.on?w.on("click"+x,g.event.test.toggle):"hover"==p.on?w.on("mouseenter"+x,g.delay.show).on("mouseleave"+x,g.delay.hide):w.on(p.on+x,g.toggle),w.on("click"+x,y.icon,g.event.icon.click).on("mousedown"+x,g.event.mousedown).on("mouseup"+x,g.event.mouseup).on("focus"+x,g.event.focus),g.has.menuSearch()?w.on("blur"+x,y.search,g.event.search.blur):w.on("blur"+x,g.event.blur)),F.on("mouseenter"+x,y.item,g.event.item.mouseenter).on("mouseleave"+x,y.item,g.event.item.mouseleave).on("click"+x,y.item,g.event.item.click)},intent:function(){g.verbose("Binding hide intent event to document"),U&&N.on("touchstart"+o,g.event.test.touch).on("touchmove"+o,g.event.test.touch),N.on("click"+o,g.event.test.hide)}},unbind:{intent:function(){g.verbose("Removing hide intent event from document"),U&&N.off("touchstart"+o).off("touchmove"+o),N.off("click"+o)}},filter:function(e){function t(){g.is.multiple()&&g.filterActive(),(e||!e&&0==g.get.activeItem().length)&&g.select.firstUnfiltered(),g.has.allResultsFiltered()?p.onNoResults.call(z,n)?p.allowAdditions?p.hideAdditions&&(g.verbose("User addition with no menu, setting empty style"),g.set.empty(),g.hideMenu()):(g.verbose("All items filtered, showing message",n),g.add.message(c.noResults)):(g.verbose("All items filtered, hiding dropdown",n),g.hideMenu()):(g.remove.empty(),g.remove.message()),p.allowAdditions&&g.add.userSuggestion(e),g.is.searchSelection()&&g.can.show()&&g.is.focusedOnSearch()&&g.show()}var n=e!==J?e:g.get.query();p.useLabels&&g.has.maxSelections()||(p.apiSettings?g.can.useAPI()?g.queryRemote(n,function(){p.filterRemoteData&&g.filterItems(n),t()}):g.error(f.noAPI):(g.filterItems(n),t()))},queryRemote:function(e,n){var t={errorDuration:!1,cache:"local",throttle:p.throttle,urlData:{query:e},onError:function(){g.add.message(c.serverError),n()},onFailure:function(){g.add.message(c.serverError),n()},onSuccess:function(e){var t=e[l.remoteValues];Y.isArray(t)&&0<t.length?(g.remove.message(),g.setup.menu({values:e[l.remoteValues]})):g.add.message(c.noResults),n()}};w.api("get request")||g.setup.api(),t=Y.extend(!0,{},t,p.apiSettings),w.api("setting",t).api("query")},filterItems:function(e){var i=e!==J?e:g.get.query(),o=null,t=g.escape.string(i),a=new RegExp("^"+t,"igm");g.has.query()&&(o=[],g.verbose("Searching for matching values",i),O.each(function(){var e,t,n=Y(this);if("both"==p.match||"text"==p.match){if(-1!==(e=String(g.get.choiceText(n,!1))).search(a))return o.push(this),!0;if("exact"===p.fullTextSearch&&g.exactSearch(i,e))return o.push(this),!0;if(!0===p.fullTextSearch&&g.fuzzySearch(i,e))return o.push(this),!0}if("both"==p.match||"value"==p.match){if(-1!==(t=String(g.get.choiceValue(n,e))).search(a))return o.push(this),!0;if("exact"===p.fullTextSearch&&g.exactSearch(i,t))return o.push(this),!0;if(!0===p.fullTextSearch&&g.fuzzySearch(i,t))return o.push(this),!0}})),g.debug("Showing only matched items",i),g.remove.filteredItem(),o&&O.not(o).addClass(h.filtered)},fuzzySearch:function(e,t){var n=t.length,i=e.length;if(e=e.toLowerCase(),t=t.toLowerCase(),n<i)return!1;if(i===n)return e===t;e:for(var o=0,a=0;o<i;o++){for(var r=e.charCodeAt(o);a<n;)if(t.charCodeAt(a++)===r)continue e;return!1}return!0},exactSearch:function(e,t){return e=e.toLowerCase(),-1<(t=t.toLowerCase()).indexOf(e)},filterActive:function(){p.useLabels&&O.filter("."+h.active).addClass(h.filtered)},focusSearch:function(e){g.has.search()&&!g.is.focusedOnSearch()&&(e?(w.off("focus"+x,y.search),T.focus(),w.on("focus"+x,y.search,g.event.search.focus)):T.focus())},forceSelection:function(){var e=O.not(h.filtered).filter("."+h.selected).eq(0),t=O.not(h.filtered).filter("."+h.active).eq(0),n=0<e.length?e:t;if(0<n.length&&!g.is.multiple())return g.debug("Forcing partial selection to selected item",n),void g.event.item.click.call(n,{},!0);p.allowAdditions&&g.set.selected(g.get.query()),g.remove.searchTerm()},change:{values:function(e){p.allowAdditions||g.clear(),g.debug("Creating dropdown with specified values",e),g.setup.menu({values:e}),Y.each(e,function(e,t){if(1==t.selected)return g.debug("Setting initial selection to",t.value),g.set.selected(t.value),!0})}},event:{change:function(){j||(g.debug("Input changed, updating selection"),g.set.selected())},focus:function(){p.showOnFocus&&!D&&g.is.hidden()&&!t&&g.show()},blur:function(e){t=K.activeElement===this,D||t||(g.remove.activeLabel(),g.hide())},mousedown:function(){g.is.searchSelection()?i=!0:D=!0},mouseup:function(){g.is.searchSelection()?i=!1:D=!1},click:function(e){Y(e.target).is(w)&&(g.is.focusedOnSearch()?g.show():g.focusSearch())},search:{focus:function(){D=!0,g.is.multiple()&&g.remove.activeLabel(),p.showOnFocus&&g.search()},blur:function(e){t=K.activeElement===this,g.is.searchSelection()&&!i&&(q||t||(p.forceSelection&&g.forceSelection(),g.hide())),i=!1}},icon:{click:function(e){P.hasClass(h.clear)?g.clear():g.can.click()&&g.toggle()}},text:{focus:function(e){D=!0,g.focusSearch()}},input:function(e){(g.is.multiple()||g.is.searchSelection())&&g.set.filtered(),clearTimeout(g.timer),g.timer=setTimeout(g.search,p.delay.search)},label:{click:function(e){var t=Y(this),n=w.find(y.label),i=n.filter("."+h.active),o=t.nextAll("."+h.active),a=t.prevAll("."+h.active),r=0<o.length?t.nextUntil(o).add(i).add(t):t.prevUntil(a).add(i).add(t);e.shiftKey?(i.removeClass(h.active),r.addClass(h.active)):e.ctrlKey?t.toggleClass(h.active):(i.removeClass(h.active),t.addClass(h.active)),p.onLabelSelect.apply(this,n.filter("."+h.active))}},remove:{click:function(){var e=Y(this).parent();e.hasClass(h.active)?g.remove.activeLabels():g.remove.activeLabels(e)}},test:{toggle:function(e){var t=g.is.multiple()?g.show:g.toggle;g.is.bubbledLabelClick(e)||g.is.bubbledIconClick(e)||g.determine.eventOnElement(e,t)&&e.preventDefault()},touch:function(e){g.determine.eventOnElement(e,function(){"touchstart"==e.type?g.timer=setTimeout(function(){g.hide()},p.delay.touch):"touchmove"==e.type&&clearTimeout(g.timer)}),e.stopPropagation()},hide:function(e){g.determine.eventInModule(e,g.hide)}},select:{mutation:function(e){g.debug("<select> modified, recreating menu");var n=!1;Y.each(e,function(e,t){if(Y(t.target).is("select")||Y(t.addedNodes).is("select"))return n=!0}),n&&(g.disconnect.selectObserver(),g.refresh(),g.setup.select(),g.set.selected(),g.observe.select())}},menu:{mutation:function(e){var t=e[0],n=t.addedNodes?Y(t.addedNodes[0]):Y(!1),i=t.removedNodes?Y(t.removedNodes[0]):Y(!1),o=n.add(i),a=o.is(y.addition)||0<o.closest(y.addition).length,r=o.is(y.message)||0<o.closest(y.message).length;a||r?(g.debug("Updating item selector cache"),g.refreshItems()):(g.debug("Menu modified, updating selector cache"),g.refresh())},mousedown:function(){q=!0},mouseup:function(){q=!1}},item:{mouseenter:function(e){var t=Y(e.target),n=Y(this),i=n.children(y.menu),o=n.siblings(y.item).children(y.menu),a=0<i.length;0<i.find(t).length||!a||(clearTimeout(g.itemTimer),g.itemTimer=setTimeout(function(){g.verbose("Showing sub-menu",i),Y.each(o,function(){g.animate.hide(!1,Y(this))}),g.animate.show(!1,i)},p.delay.show),e.preventDefault())},mouseleave:function(e){var t=Y(this).children(y.menu);0<t.length&&(clearTimeout(g.itemTimer),g.itemTimer=setTimeout(function(){g.verbose("Hiding sub-menu",t),g.animate.hide(!1,t)},p.delay.hide))},click:function(e,t){var n=Y(this),i=Y(e?e.target:""),o=n.find(y.menu),a=g.get.choiceText(n),r=g.get.choiceValue(n,a),s=0<o.length,l=0<o.find(i).length;g.has.menuSearch()&&Y(K.activeElement).blur(),l||s&&!p.allowCategorySelection||(g.is.searchSelection()&&(p.allowAdditions&&g.remove.userAddition(),g.remove.searchTerm(),g.is.focusedOnSearch()||1==t||g.focusSearch(!0)),p.useLabels||(g.remove.filteredItem(),g.set.scrollPosition(n)),g.determine.selectAction.call(this,a,r))}},document:{keydown:function(e){var t=e.which;if(g.is.inObject(t,v)){var n=w.find(y.label),i=n.filter("."+h.active),o=(i.data(b.value),n.index(i)),a=n.length,r=0<i.length,s=1<i.length,l=0===o,c=o+1==a,u=g.is.searchSelection(),d=g.is.focusedOnSearch(),f=g.is.focused(),m=d&&0===g.get.caretPosition();if(u&&!r&&!d)return;t==v.leftArrow?!f&&!m||r?r&&(e.shiftKey?g.verbose("Adding previous label to selection"):(g.verbose("Selecting previous label"),n.removeClass(h.active)),l&&!s?i.addClass(h.active):i.prev(y.siblingLabel).addClass(h.active).end(),e.preventDefault()):(g.verbose("Selecting previous label"),n.last().addClass(h.active)):t==v.rightArrow?(f&&!r&&n.first().addClass(h.active),r&&(e.shiftKey?g.verbose("Adding next label to selection"):(g.verbose("Selecting next label"),n.removeClass(h.active)),c?u?d?n.removeClass(h.active):g.focusSearch():s?i.next(y.siblingLabel).addClass(h.active):i.addClass(h.active):i.next(y.siblingLabel).addClass(h.active),e.preventDefault())):t==v.deleteKey||t==v.backspace?r?(g.verbose("Removing active labels"),c&&u&&!d&&g.focusSearch(),i.last().next(y.siblingLabel).addClass(h.active),g.remove.activeLabels(i),e.preventDefault()):m&&!r&&t==v.backspace&&(g.verbose("Removing last label on input backspace"),i=n.last().addClass(h.active),g.remove.activeLabels(i)):i.removeClass(h.active)}}},keydown:function(e){var t=e.which;if(g.is.inObject(t,v)){var n,i=O.not(y.unselectable).filter("."+h.selected).eq(0),o=F.children("."+h.active).eq(0),a=0<i.length?i:o,r=0<a.length?a.siblings(":not(."+h.filtered+")").addBack():F.children(":not(."+h.filtered+")"),s=a.children(y.menu),l=a.closest(y.menu),c=l.hasClass(h.visible)||l.hasClass(h.animating)||0<l.parent(y.menu).length,u=0<s.length,d=0<a.length,f=0<a.not(y.unselectable).length,m=t==v.delimiter&&p.allowAdditions&&g.is.multiple();if(p.allowAdditions&&p.hideAdditions&&(t==v.enter||m)&&f&&(g.verbose("Selecting item from keyboard shortcut",a),g.event.item.click.call(a,e),g.is.searchSelection()&&g.remove.searchTerm()),g.is.visible()){if(t!=v.enter&&!m||(t==v.enter&&d&&u&&!p.allowCategorySelection?(g.verbose("Pressed enter on unselectable category, opening sub menu"),t=v.rightArrow):f&&(g.verbose("Selecting item from keyboard shortcut",a),g.event.item.click.call(a,e),g.is.searchSelection()&&g.remove.searchTerm()),e.preventDefault()),d&&(t==v.leftArrow&&l[0]!==F[0]&&(g.verbose("Left key pressed, closing sub-menu"),g.animate.hide(!1,l),a.removeClass(h.selected),l.closest(y.item).addClass(h.selected),e.preventDefault()),t==v.rightArrow&&u&&(g.verbose("Right key pressed, opening sub-menu"),g.animate.show(!1,s),a.removeClass(h.selected),s.find(y.item).eq(0).addClass(h.selected),e.preventDefault())),t==v.upArrow){if(n=d&&c?a.prevAll(y.item+":not("+y.unselectable+")").eq(0):O.eq(0),r.index(n)<0)return g.verbose("Up key pressed but reached top of current menu"),void e.preventDefault();g.verbose("Up key pressed, changing active item"),a.removeClass(h.selected),n.addClass(h.selected),g.set.scrollPosition(n),p.selectOnKeydown&&g.is.single()&&g.set.selectedItem(n),e.preventDefault()}if(t==v.downArrow){if(0===(n=d&&c?n=a.nextAll(y.item+":not("+y.unselectable+")").eq(0):O.eq(0)).length)return g.verbose("Down key pressed but reached bottom of current menu"),void e.preventDefault();g.verbose("Down key pressed, changing active item"),O.removeClass(h.selected),n.addClass(h.selected),g.set.scrollPosition(n),p.selectOnKeydown&&g.is.single()&&g.set.selectedItem(n),e.preventDefault()}t==v.pageUp&&(g.scrollPage("up"),e.preventDefault()),t==v.pageDown&&(g.scrollPage("down"),e.preventDefault()),t==v.escape&&(g.verbose("Escape key pressed, closing dropdown"),g.hide())}else m&&e.preventDefault(),t!=v.downArrow||g.is.visible()||(g.verbose("Down key pressed, showing dropdown"),g.show(),e.preventDefault())}else g.has.search()||g.set.selectedLetter(String.fromCharCode(t))}},trigger:{change:function(){var e=K.createEvent("HTMLEvents"),t=R[0];t&&(g.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e))}},determine:{selectAction:function(e,t){g.verbose("Determining action",p.action),Y.isFunction(g.action[p.action])?(g.verbose("Triggering preset action",p.action,e,t),g.action[p.action].call(z,e,t,this)):Y.isFunction(p.action)?(g.verbose("Triggering user action",p.action,e,t),p.action.call(z,e,t,this)):g.error(f.action,p.action)},eventInModule:function(e,t){var n=Y(e.target),i=0<n.closest(K.documentElement).length,o=0<n.closest(w).length;return t=Y.isFunction(t)?t:function(){},i&&!o?(g.verbose("Triggering event",t),t(),!0):(g.verbose("Event occurred in dropdown, canceling callback"),!1)},eventOnElement:function(e,t){var n=Y(e.target),i=n.closest(y.siblingLabel),o=K.body.contains(e.target),a=0===w.find(i).length,r=0===n.closest(F).length;return t=Y.isFunction(t)?t:function(){},o&&a&&r?(g.verbose("Triggering event",t),t(),!0):(g.verbose("Event occurred in dropdown menu, canceling callback"),!1)}},action:{nothing:function(){},activate:function(e,t,n){if(t=t!==J?t:e,g.can.activate(Y(n))){if(g.set.selected(t,Y(n)),g.is.multiple()&&!g.is.allFiltered())return;g.hideAndClear()}},select:function(e,t,n){if(t=t!==J?t:e,g.can.activate(Y(n))){if(g.set.value(t,e,Y(n)),g.is.multiple()&&!g.is.allFiltered())return;g.hideAndClear()}},combo:function(e,t,n){t=t!==J?t:e,g.set.selected(t,Y(n)),g.hideAndClear()},hide:function(e,t,n){g.set.value(t,e,Y(n)),g.hideAndClear()}},get:{id:function(){return a},defaultText:function(){return w.data(b.defaultText)},defaultValue:function(){return w.data(b.defaultValue)},placeholderText:function(){return"auto"!=p.placeholder&&"string"==typeof p.placeholder?p.placeholder:w.data(b.placeholderText)||""},text:function(){return k.text()},query:function(){return Y.trim(T.val())},searchWidth:function(e){return e=e!==J?e:T.val(),A.text(e),Math.ceil(A.width()+1)},selectionCount:function(){var e=g.get.values();return g.is.multiple()?Y.isArray(e)?e.length:0:""!==g.get.value()?1:0},transition:function(e){return"auto"==p.transition?g.is.upward(e)?"slide up":"slide down":p.transition},userValues:function(){var e=g.get.values();return!!e&&(e=Y.isArray(e)?e:[e],Y.grep(e,function(e){return!1===g.get.item(e)}))},uniqueArray:function(n){return Y.grep(n,function(e,t){return Y.inArray(e,n)===t})},caretPosition:function(){var e,t,n=T.get(0);return"selectionStart"in n?n.selectionStart:K.selection?(n.focus(),t=(e=K.selection.createRange()).text.length,e.moveStart("character",-n.value.length),e.text.length-t):void 0},value:function(){var e=0<R.length?R.val():w.data(b.value),t=Y.isArray(e)&&1===e.length&&""===e[0];return e===J||t?"":e},values:function(){var e=g.get.value();return""===e?"":!g.has.selectInput()&&g.is.multiple()?"string"==typeof e?e.split(p.delimiter):"":e},remoteValues:function(){var e=g.get.values(),i=!1;return e&&("string"==typeof e&&(e=[e]),Y.each(e,function(e,t){var n=g.read.remoteData(t);g.verbose("Restoring value from session data",n,t),n&&(i||(i={}),i[t]=n)})),i},choiceText:function(e,t){if(t=t!==J?t:p.preserveHTML,e)return 0<e.find(y.menu).length&&(g.verbose("Retrieving text of element with sub-menu"),(e=e.clone()).find(y.menu).remove(),e.find(y.menuIcon).remove()),e.data(b.text)!==J?e.data(b.text):t?Y.trim(e.html()):Y.trim(e.text())},choiceValue:function(e,t){return t=t||g.get.choiceText(e),!!e&&(e.data(b.value)!==J?String(e.data(b.value)):"string"==typeof t?Y.trim(t.toLowerCase()):String(t))},inputEvent:function(){var e=T[0];return!!e&&(e.oninput!==J?"input":e.onpropertychange!==J?"propertychange":"keyup")},selectValues:function(){var o={values:[]};return w.find("option").each(function(){var e=Y(this),t=e.html(),n=e.attr("disabled"),i=e.attr("value")!==J?e.attr("value"):t;"auto"===p.placeholder&&""===i?o.placeholder=t:o.values.push({name:t,value:i,disabled:n})}),p.placeholder&&"auto"!==p.placeholder&&(g.debug("Setting placeholder value to",p.placeholder),o.placeholder=p.placeholder),p.sortSelect?(o.values.sort(function(e,t){return e.name>t.name?1:-1}),g.debug("Retrieved and sorted values from select",o)):g.debug("Retrieved values from select",o),o},activeItem:function(){return O.filter("."+h.active)},selectedItem:function(){var e=O.not(y.unselectable).filter("."+h.selected);return 0<e.length?e:O.eq(0)},itemWithAdditions:function(e){var t=g.get.item(e),n=g.create.userChoice(e);return n&&0<n.length&&(t=0<t.length?t.add(n):n),t},item:function(i,o){var e,a,r=!1;return i=i!==J?i:g.get.values()!==J?g.get.values():g.get.text(),e=a?0<i.length:i!==J&&null!==i,a=g.is.multiple()&&Y.isArray(i),o=""===i||0===i||(o||!1),e&&O.each(function(){var e=Y(this),t=g.get.choiceText(e),n=g.get.choiceValue(e,t);if(null!==n&&n!==J)if(a)-1===Y.inArray(String(n),i)&&-1===Y.inArray(t,i)||(r=r?r.add(e):e);else if(o){if(g.verbose("Ambiguous dropdown value using strict type check",e,i),n===i||t===i)return r=e,!0}else if(String(n)==String(i)||t==i)return g.verbose("Found select item by value",n,i),r=e,!0}),r}},check:{maxSelections:function(e){return!p.maxSelections||((e=e!==J?e:g.get.selectionCount())>=p.maxSelections?(g.debug("Maximum selection count reached"),p.useLabels&&(O.addClass(h.filtered),g.add.message(c.maxSelections)),!0):(g.verbose("No longer at maximum selection count"),g.remove.message(),g.remove.filteredItem(),g.is.searchSelection()&&g.filterItems(),!1))}},restore:{defaults:function(){g.clear(),g.restore.defaultText(),g.restore.defaultValue()},defaultText:function(){var e=g.get.defaultText();e===g.get.placeholderText?(g.debug("Restoring default placeholder text",e),g.set.placeholderText(e)):(g.debug("Restoring default text",e),g.set.text(e))},placeholderText:function(){g.set.placeholderText()},defaultValue:function(){var e=g.get.defaultValue();e!==J&&(g.debug("Restoring default value",e),""!==e?(g.set.value(e),g.set.selected()):(g.remove.activeItem(),g.remove.selectedItem()))},labels:function(){p.allowAdditions&&(p.useLabels||(g.error(f.labels),p.useLabels=!0),g.debug("Restoring selected values"),g.create.userLabels()),g.check.maxSelections()},selected:function(){g.restore.values(),g.is.multiple()?(g.debug("Restoring previously selected values and labels"),g.restore.labels()):g.debug("Restoring previously selected values")},values:function(){g.set.initialLoad(),p.apiSettings&&p.saveRemoteData&&g.get.remoteValues()?g.restore.remoteValues():g.set.selected(),g.remove.initialLoad()},remoteValues:function(){var e=g.get.remoteValues();g.debug("Recreating selected from session data",e),e&&(g.is.single()?Y.each(e,function(e,t){g.set.text(t)}):Y.each(e,function(e,t){g.add.label(e,t)}))}},read:{remoteData:function(e){var t;if(Z.Storage!==J)return(t=sessionStorage.getItem(e))!==J&&t;g.error(f.noStorage)}},save:{defaults:function(){g.save.defaultText(),g.save.placeholderText(),g.save.defaultValue()},defaultValue:function(){var e=g.get.value();g.verbose("Saving default value as",e),w.data(b.defaultValue,e)},defaultText:function(){var e=g.get.text();g.verbose("Saving default text as",e),w.data(b.defaultText,e)},placeholderText:function(){var e;!1!==p.placeholder&&k.hasClass(h.placeholder)&&(e=g.get.text(),g.verbose("Saving placeholder text as",e),w.data(b.placeholderText,e))},remoteData:function(e,t){Z.Storage!==J?(g.verbose("Saving remote data to session storage",t,e),sessionStorage.setItem(t,e)):g.error(f.noStorage)}},clear:function(){g.is.multiple()&&p.useLabels?g.remove.labels():(g.remove.activeItem(),g.remove.selectedItem()),g.set.placeholderText(),g.clearValue()},clearValue:function(){g.set.value("")},scrollPage:function(e,t){var n,i,o=t||g.get.selectedItem(),a=o.closest(y.menu),r=a.outerHeight(),s=a.scrollTop(),l=O.eq(0).outerHeight(),c=Math.floor(r/l),u=(a.prop("scrollHeight"),"up"==e?s-l*c:s+l*c),d=O.not(y.unselectable);i="up"==e?d.index(o)-c:d.index(o)+c,0<(n=("up"==e?0<=i:i<d.length)?d.eq(i):"up"==e?d.first():d.last()).length&&(g.debug("Scrolling page",e,n),o.removeClass(h.selected),n.addClass(h.selected),p.selectOnKeydown&&g.is.single()&&g.set.selectedItem(n),a.scrollTop(u))},set:{filtered:function(){var e=g.is.multiple(),t=g.is.searchSelection(),n=e&&t,i=t?g.get.query():"",o="string"==typeof i&&0<i.length,a=g.get.searchWidth(),r=""!==i;e&&o&&(g.verbose("Adjusting input width",a,p.glyphWidth),T.css("width",a)),o||n&&r?(g.verbose("Hiding placeholder text"),k.addClass(h.filtered)):e&&(!n||r)||(g.verbose("Showing placeholder text"),k.removeClass(h.filtered))},empty:function(){w.addClass(h.empty)},loading:function(){w.addClass(h.loading)},placeholderText:function(e){e=e||g.get.placeholderText(),g.debug("Setting placeholder text",e),g.set.text(e),k.addClass(h.placeholder)},tabbable:function(){g.is.searchSelection()?(g.debug("Added tabindex to searchable dropdown"),T.val("").attr("tabindex",0),F.attr("tabindex",-1)):(g.debug("Added tabindex to dropdown"),w.attr("tabindex")===J&&(w.attr("tabindex",0),F.attr("tabindex",-1)))},initialLoad:function(){g.verbose("Setting initial load"),e=!0},activeItem:function(e){p.allowAdditions&&0<e.filter(y.addition).length?e.addClass(h.filtered):e.addClass(h.active)},partialSearch:function(e){var t=g.get.query().length;T.val(e.substr(0,t))},scrollPosition:function(e,t){var n,i,o,a,r,s;n=(e=e||g.get.selectedItem()).closest(y.menu),i=e&&0<e.length,t=t!==J&&t,e&&0<n.length&&i&&(e.position().top,n.addClass(h.loading),o=(a=n.scrollTop())-n.offset().top+e.offset().top,t||(s=a+n.height()<o+5,r=o-5<a),g.debug("Scrolling to active item",o),(t||r||s)&&n.scrollTop(o),n.removeClass(h.loading))},text:function(e){"select"!==p.action&&("combo"==p.action?(g.debug("Changing combo button text",e,E),p.preserveHTML?E.html(e):E.text(e)):(e!==g.get.placeholderText()&&k.removeClass(h.placeholder),g.debug("Changing text",e,k),k.removeClass(h.filtered),p.preserveHTML?k.html(e):k.text(e)))},selectedItem:function(e){var t=g.get.choiceValue(e),n=g.get.choiceText(e,!1),i=g.get.choiceText(e,!0);g.debug("Setting user selection to item",e),g.remove.activeItem(),g.set.partialSearch(n),g.set.activeItem(e),g.set.selected(t,e),g.set.text(i)},selectedLetter:function(e){var t,n=O.filter("."+h.selected),i=0<n.length&&g.has.firstLetter(n,e),o=!1;i&&(t=n.nextAll(O).eq(0),g.has.firstLetter(t,e)&&(o=t)),o||O.each(function(){if(g.has.firstLetter(Y(this),e))return o=Y(this),!1}),o&&(g.verbose("Scrolling to next value with letter",e),g.set.scrollPosition(o),n.removeClass(h.selected),o.addClass(h.selected),p.selectOnKeydown&&g.is.single()&&g.set.selectedItem(o))},direction:function(e){"auto"==p.direction?(g.remove.upward(),g.can.openDownward(e)?g.remove.upward(e):g.set.upward(e),g.is.leftward(e)||g.can.openRightward(e)||g.set.leftward(e)):"upward"==p.direction&&g.set.upward(e)},upward:function(e){(e||w).addClass(h.upward)},leftward:function(e){(e||F).addClass(h.leftward)},value:function(e,t,n){var i=g.escape.value(e),o=0<R.length,a=g.get.values(),r=e!==J?String(e):e;if(o){if(!p.allowReselection&&r==a&&(g.verbose("Skipping value update already same value",e,a),!g.is.initialLoad()))return;g.is.single()&&g.has.selectInput()&&g.can.extendSelect()&&(g.debug("Adding user option",e),g.add.optionValue(e)),g.debug("Updating input value",i,a),j=!0,R.val(i),!1===p.fireOnInit&&g.is.initialLoad()?g.debug("Input native change event ignored on initial load"):g.trigger.change(),j=!1}else g.verbose("Storing value in metadata",i,R),i!==a&&w.data(b.value,r);g.is.single()&&p.clearable&&(i?g.set.clearable():g.remove.clearable()),!1===p.fireOnInit&&g.is.initialLoad()?g.verbose("No callback on initial load",p.onChange):p.onChange.call(z,e,t,n)},active:function(){w.addClass(h.active)},multiple:function(){w.addClass(h.multiple)},visible:function(){w.addClass(h.visible)},exactly:function(e,t){g.debug("Setting selected to exact values"),g.clear(),g.set.selected(e,t)},selected:function(e,s){var l=g.is.multiple();(s=p.allowAdditions?s||g.get.itemWithAdditions(e):s||g.get.item(e))&&(g.debug("Setting selected menu item to",s),g.is.multiple()&&g.remove.searchWidth(),g.is.single()?(g.remove.activeItem(),g.remove.selectedItem()):p.useLabels&&g.remove.selectedItem(),s.each(function(){var e=Y(this),t=g.get.choiceText(e),n=g.get.choiceValue(e,t),i=e.hasClass(h.filtered),o=e.hasClass(h.active),a=e.hasClass(h.addition),r=l&&1==s.length;l?!o||a?(p.apiSettings&&p.saveRemoteData&&g.save.remoteData(t,n),p.useLabels?(g.add.label(n,t,r),g.add.value(n,t,e),g.set.activeItem(e),g.filterActive(),g.select.nextAvailable(s)):(g.add.value(n,t,e),g.set.text(g.add.variables(c.count)),g.set.activeItem(e))):i||(g.debug("Selected active value, removing label"),g.remove.selected(n)):(p.apiSettings&&p.saveRemoteData&&g.save.remoteData(t,n),g.set.text(t),g.set.value(n,t,e),e.addClass(h.active).addClass(h.selected))}))},clearable:function(){P.addClass(h.clear)}},add:{label:function(e,t,n){var i,o=g.is.searchSelection()?T:k,a=g.escape.value(e);p.ignoreCase&&(a=a.toLowerCase()),i=Y("<a />").addClass(h.label).attr("data-"+b.value,a).html(m.label(a,t)),i=p.onLabelCreate.call(i,a,t),g.has.label(e)?g.debug("User selection already exists, skipping",a):(p.label.variation&&i.addClass(p.label.variation),!0===n?(g.debug("Animating in label",i),i.addClass(h.hidden).insertBefore(o).transition(p.label.transition,p.label.duration)):(g.debug("Adding selection label",i),i.insertBefore(o)))},message:function(e){var t=F.children(y.message),n=p.templates.message(g.add.variables(e));0<t.length?t.html(n):t=Y("<div/>").html(n).addClass(h.message).appendTo(F)},optionValue:function(e){var t=g.escape.value(e);0<R.find('option[value="'+g.escape.string(t)+'"]').length||(g.disconnect.selectObserver(),g.is.single()&&(g.verbose("Removing previous user addition"),R.find("option."+h.addition).remove()),Y("<option/>").prop("value",t).addClass(h.addition).html(e).appendTo(R),g.verbose("Adding user addition as an <option>",e),g.observe.select())},userSuggestion:function(e){var t,n=F.children(y.addition),i=g.get.item(e),o=i&&i.not(y.addition).length,a=0<n.length;p.useLabels&&g.has.maxSelections()||(""===e||o?n.remove():(a?(n.data(b.value,e).data(b.text,e).attr("data-"+b.value,e).attr("data-"+b.text,e).removeClass(h.filtered),p.hideAdditions||(t=p.templates.addition(g.add.variables(c.addResult,e)),n.html(t)),g.verbose("Replacing user suggestion with new value",n)):((n=g.create.userChoice(e)).prependTo(F),g.verbose("Adding item choice to menu corresponding with user choice addition",n)),p.hideAdditions&&!g.is.allFiltered()||n.addClass(h.selected).siblings().removeClass(h.selected),g.refreshItems()))},variables:function(e,t){var n,i,o=-1!==e.search("{count}"),a=-1!==e.search("{maxCount}"),r=-1!==e.search("{term}");return g.verbose("Adding templated variables to message",e),o&&(n=g.get.selectionCount(),e=e.replace("{count}",n)),a&&(n=g.get.selectionCount(),e=e.replace("{maxCount}",p.maxSelections)),r&&(i=t||g.get.query(),e=e.replace("{term}",i)),e},value:function(e,t,n){var i,o=g.get.values();g.has.value(e)?g.debug("Value already selected"):""!==e?(i=Y.isArray(o)?(i=o.concat([e]),g.get.uniqueArray(i)):[e],g.has.selectInput()?g.can.extendSelect()&&(g.debug("Adding value to select",e,i,R),g.add.optionValue(e)):(i=i.join(p.delimiter),g.debug("Setting hidden input to delimited value",i,R)),!1===p.fireOnInit&&g.is.initialLoad()?g.verbose("Skipping onadd callback on initial load",p.onAdd):p.onAdd.call(z,e,t,n),g.set.value(i,e,t,n),g.check.maxSelections()):g.debug("Cannot select blank values from multiselect")}},remove:{active:function(){w.removeClass(h.active)},activeLabel:function(){w.find(y.label).removeClass(h.active)},empty:function(){w.removeClass(h.empty)},loading:function(){w.removeClass(h.loading)},initialLoad:function(){e=!1},upward:function(e){(e||w).removeClass(h.upward)},leftward:function(e){(e||F).removeClass(h.leftward)},visible:function(){w.removeClass(h.visible)},activeItem:function(){O.removeClass(h.active)},filteredItem:function(){p.useLabels&&g.has.maxSelections()||(p.useLabels&&g.is.multiple()?O.not("."+h.active).removeClass(h.filtered):O.removeClass(h.filtered),g.remove.empty())},optionValue:function(e){var t=g.escape.value(e),n=R.find('option[value="'+g.escape.string(t)+'"]');0<n.length&&n.hasClass(h.addition)&&(r&&(r.disconnect(),g.verbose("Temporarily disconnecting mutation observer")),n.remove(),g.verbose("Removing user addition as an <option>",t),r&&r.observe(R[0],{childList:!0,subtree:!0}))},message:function(){F.children(y.message).remove()},searchWidth:function(){T.css("width","")},searchTerm:function(){g.verbose("Cleared search term"),T.val(""),g.set.filtered()},userAddition:function(){O.filter(y.addition).remove()},selected:function(e,t){if(!(t=p.allowAdditions?t||g.get.itemWithAdditions(e):t||g.get.item(e)))return!1;t.each(function(){var e=Y(this),t=g.get.choiceText(e),n=g.get.choiceValue(e,t);g.is.multiple()?p.useLabels?(g.remove.value(n,t,e),g.remove.label(n)):(g.remove.value(n,t,e),0===g.get.selectionCount()?g.set.placeholderText():g.set.text(g.add.variables(c.count))):g.remove.value(n,t,e),e.removeClass(h.filtered).removeClass(h.active),p.useLabels&&e.removeClass(h.selected)})},selectedItem:function(){O.removeClass(h.selected)},value:function(e,t,n){var i,o=g.get.values();g.has.selectInput()?(g.verbose("Input is <select> removing selected option",e),i=g.remove.arrayValue(e,o),g.remove.optionValue(e)):(g.verbose("Removing from delimited values",e),i=(i=g.remove.arrayValue(e,o)).join(p.delimiter)),!1===p.fireOnInit&&g.is.initialLoad()?g.verbose("No callback on initial load",p.onRemove):p.onRemove.call(z,e,t,n),g.set.value(i,t,n),g.check.maxSelections()},arrayValue:function(t,e){return Y.isArray(e)||(e=[e]),e=Y.grep(e,function(e){return t!=e}),g.verbose("Removed value from delimited string",t,e),e},label:function(e,t){var n=w.find(y.label).filter("[data-"+b.value+'="'+g.escape.string(e)+'"]');g.verbose("Removing label",n),n.remove()},activeLabels:function(e){e=e||w.find(y.label).filter("."+h.active),g.verbose("Removing active label selections",e),g.remove.labels(e)},labels:function(e){e=e||w.find(y.label),g.verbose("Removing labels",e),e.each(function(){var e=Y(this),t=e.data(b.value),n=t!==J?String(t):t,i=g.is.userValue(n);!1!==p.onLabelRemove.call(e,t)?(g.remove.message(),i?(g.remove.value(n),g.remove.label(n)):g.remove.selected(n)):g.debug("Label remove callback cancelled removal")})},tabbable:function(){g.is.searchSelection()?(g.debug("Searchable dropdown initialized"),T.removeAttr("tabindex")):(g.debug("Simple selection dropdown initialized"),w.removeAttr("tabindex")),F.removeAttr("tabindex")},clearable:function(){P.removeClass(h.clear)}},has:{menuSearch:function(){return g.has.search()&&0<T.closest(F).length},search:function(){return 0<T.length},sizer:function(){return 0<A.length},selectInput:function(){return R.is("select")},minCharacters:function(e){return!p.minCharacters||(e=e!==J?String(e):String(g.get.query())).length>=p.minCharacters},firstLetter:function(e,t){var n;return!(!e||0===e.length||"string"!=typeof t)&&(n=g.get.choiceText(e,!1),(t=t.toLowerCase())==String(n).charAt(0).toLowerCase())},input:function(){return 0<R.length},items:function(){return 0<O.length},menu:function(){return 0<F.length},message:function(){return 0!==F.children(y.message).length},label:function(e){var t=g.escape.value(e),n=w.find(y.label);return p.ignoreCase&&(t=t.toLowerCase()),0<n.filter("[data-"+b.value+'="'+g.escape.string(t)+'"]').length},maxSelections:function(){return p.maxSelections&&g.get.selectionCount()>=p.maxSelections},allResultsFiltered:function(){var e=O.not(y.addition);return e.filter(y.unselectable).length===e.length},userSuggestion:function(){return 0<F.children(y.addition).length},query:function(){return""!==g.get.query()},value:function(e){return p.ignoreCase?g.has.valueIgnoringCase(e):g.has.valueMatchingCase(e)},valueMatchingCase:function(e){var t=g.get.values();return!!(Y.isArray(t)?t&&-1!==Y.inArray(e,t):t==e)},valueIgnoringCase:function(n){var e=g.get.values(),i=!1;return Y.isArray(e)||(e=[e]),Y.each(e,function(e,t){if(String(n).toLowerCase()==String(t).toLowerCase())return!(i=!0)}),i}},is:{active:function(){return w.hasClass(h.active)},animatingInward:function(){return F.transition("is inward")},animatingOutward:function(){return F.transition("is outward")},bubbledLabelClick:function(e){return Y(e.target).is("select, input")&&0<w.closest("label").length},bubbledIconClick:function(e){return 0<Y(e.target).closest(P).length},alreadySetup:function(){return w.is("select")&&w.parent(y.dropdown).data(C)!==J&&0===w.prev().length},animating:function(e){return e?e.transition&&e.transition("is animating"):F.transition&&F.transition("is animating")},leftward:function(e){return(e||F).hasClass(h.leftward)},disabled:function(){return w.hasClass(h.disabled)},focused:function(){return K.activeElement===w[0]},focusedOnSearch:function(){return K.activeElement===T[0]},allFiltered:function(){return(g.is.multiple()||g.has.search())&&!(0==p.hideAdditions&&g.has.userSuggestion())&&!g.has.message()&&g.has.allResultsFiltered()},hidden:function(e){return!g.is.visible(e)},initialLoad:function(){return e},inObject:function(n,e){var i=!1;return Y.each(e,function(e,t){if(t==n)return i=!0}),i},multiple:function(){return w.hasClass(h.multiple)},remote:function(){return p.apiSettings&&g.can.useAPI()},single:function(){return!g.is.multiple()},selectMutation:function(e){var n=!1;return Y.each(e,function(e,t){if(t.target&&Y(t.target).is("select"))return n=!0}),n},search:function(){return w.hasClass(h.search)},searchSelection:function(){return g.has.search()&&1===T.parent(y.dropdown).length},selection:function(){return w.hasClass(h.selection)},userValue:function(e){return-1!==Y.inArray(e,g.get.userValues())},upward:function(e){return(e||w).hasClass(h.upward)},visible:function(e){return e?e.hasClass(h.visible):F.hasClass(h.visible)},verticallyScrollableContext:function(){var e=S.get(0)!==Z&&S.css("overflow-y");return"auto"==e||"scroll"==e},horizontallyScrollableContext:function(){var e=S.get(0)!==Z&&S.css("overflow-X");return"auto"==e||"scroll"==e}},can:{activate:function(e){return!!p.useLabels||(!g.has.maxSelections()||!(!g.has.maxSelections()||!e.hasClass(h.active)))},openDownward:function(e){var t,n,i=e||F,o=!0;return i.addClass(h.loading),n={context:{offset:S.get(0)===Z?{top:0,left:0}:S.offset(),scrollTop:S.scrollTop(),height:S.outerHeight()},menu:{offset:i.offset(),height:i.outerHeight()}},g.is.verticallyScrollableContext()&&(n.menu.offset.top+=n.context.scrollTop),o=(t={above:n.context.scrollTop<=n.menu.offset.top-n.context.offset.top-n.menu.height,below:n.context.scrollTop+n.context.height>=n.menu.offset.top-n.context.offset.top+n.menu.height}).below?(g.verbose("Dropdown can fit in context downward",t),!0):t.below||t.above?(g.verbose("Dropdown cannot fit below, opening upward",t),!1):(g.verbose("Dropdown cannot fit in either direction, favoring downward",t),!0),i.removeClass(h.loading),o},openRightward:function(e){var t,n,i=e||F,o=!0;return i.addClass(h.loading),n={context:{offset:S.get(0)===Z?{top:0,left:0}:S.offset(),scrollLeft:S.scrollLeft(),width:S.outerWidth()},menu:{offset:i.offset(),width:i.outerWidth()}},g.is.horizontallyScrollableContext()&&(n.menu.offset.left+=n.context.scrollLeft),(t=n.menu.offset.left-n.context.offset.left+n.menu.width>=n.context.scrollLeft+n.context.width)&&(g.verbose("Dropdown cannot fit in context rightward",t),o=!1),i.removeClass(h.loading),o},click:function(){return U||"click"==p.on},extendSelect:function(){return p.allowAdditions||p.apiSettings},show:function(){return!g.is.disabled()&&(g.has.items()||g.has.message())},useAPI:function(){return Y.fn.api!==J}},animate:{show:function(e,t){var n,i=t||F,o=t?function(){}:function(){g.hideSubMenus(),g.hideOthers(),g.set.active()};e=Y.isFunction(e)?e:function(){},g.verbose("Doing menu show animation",i),g.set.direction(t),n=g.get.transition(t),g.is.selection()&&g.set.scrollPosition(g.get.selectedItem(),!0),(g.is.hidden(i)||g.is.animating(i))&&("none"==n?(o(),i.transition("show"),e.call(z)):Y.fn.transition!==J&&w.transition("is supported")?i.transition({animation:n+" in",debug:p.debug,verbose:p.verbose,duration:p.duration,queue:!0,onStart:o,onComplete:function(){e.call(z)}}):g.error(f.noTransition,n))},hide:function(e,t){var n=t||F,i=(t?p.duration:p.duration,t?function(){}:function(){g.can.click()&&g.unbind.intent(),g.remove.active()}),o=g.get.transition(t);e=Y.isFunction(e)?e:function(){},(g.is.visible(n)||g.is.animating(n))&&(g.verbose("Doing menu hide animation",n),"none"==o?(i(),n.transition("hide"),e.call(z)):Y.fn.transition!==J&&w.transition("is supported")?n.transition({animation:o+" out",duration:p.duration,debug:p.debug,verbose:p.verbose,queue:!1,onStart:i,onComplete:function(){e.call(z)}}):g.error(f.transition))}},hideAndClear:function(){g.remove.searchTerm(),g.has.maxSelections()||(g.has.search()?g.hide(function(){g.remove.filteredItem()}):g.hide())},delay:{show:function(){g.verbose("Delaying show event to ensure user intent"),clearTimeout(g.timer),g.timer=setTimeout(g.show,p.delay.show)},hide:function(){g.verbose("Delaying hide event to ensure user intent"),clearTimeout(g.timer),g.timer=setTimeout(g.hide,p.delay.hide)}},escape:{value:function(e){var t=Y.isArray(e),n="string"==typeof e,i=!n&&!t,o=n&&-1!==e.search(d.quote),a=[];return i||!o?e:(g.debug("Encoding quote values for use in select",e),t?(Y.each(e,function(e,t){a.push(t.replace(d.quote,"&quot;"))}),a):e.replace(d.quote,"&quot;"))},string:function(e){return(e=String(e)).replace(d.escape,"\\$&")}},setting:function(e,t){if(g.debug("Changing setting",e,t),Y.isPlainObject(e))Y.extend(!0,p,e);else{if(t===J)return p[e];Y.isPlainObject(p[e])?Y.extend(!0,p[e],t):p[e]=t}},internal:function(e,t){if(Y.isPlainObject(e))Y.extend(!0,g,e);else{if(t===J)return g[e];g[e]=t}},debug:function(){!p.silent&&p.debug&&(p.performance?g.performance.log(arguments):(g.debug=Function.prototype.bind.call(console.info,console,p.name+":"),g.debug.apply(console,arguments)))},verbose:function(){!p.silent&&p.verbose&&p.debug&&(p.performance?g.performance.log(arguments):(g.verbose=Function.prototype.bind.call(console.info,console,p.name+":"),g.verbose.apply(console,arguments)))},error:function(){p.silent||(g.error=Function.prototype.bind.call(console.error,console,p.name+":"),g.error.apply(console,arguments))},performance:{log:function(e){var t,n;p.performance&&(n=(t=(new Date).getTime())-(W||t),W=t,B.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:z,"Execution Time":n})),clearTimeout(g.performance.timer),g.performance.timer=setTimeout(g.performance.display,500)},display:function(){var e=p.name+":",n=0;W=!1,clearTimeout(g.performance.timer),Y.each(B,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",H&&(e+=" '"+H+"'"),(console.group!==J||console.table!==J)&&0<B.length&&(console.groupCollapsed(e),console.table?console.table(B):Y.each(B,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),B=[]}},invoke:function(i,e,t){var o,a,n,r=I;return e=e||$,t=z||t,"string"==typeof i&&r!==J&&(i=i.split(/[\. ]/),o=i.length-1,Y.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(Y.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==J)return a=r[n],!1;if(!Y.isPlainObject(r[t])||e==o)return r[t]!==J?a=r[t]:g.error(f.method,i),!1;r=r[t]}})),Y.isFunction(a)?n=a.apply(t,e):a!==J&&(n=a),Y.isArray(L)?L.push(n):L!==J?L=[L,n]:n!==J&&(L=n),a}},X?(I===J&&g.initialize(),g.invoke(Q)):(I!==J&&I.invoke("destroy"),g.initialize())}),L!==J?L:V},Y.fn.dropdown.settings={silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",action:"activate",values:!1,clearable:!1,apiSettings:!1,selectOnKeydown:!0,minCharacters:0,filterRemoteData:!1,saveRemoteData:!0,throttle:200,context:Z,direction:"auto",keepOnScreen:!0,match:"both",fullTextSearch:!1,placeholder:"auto",preserveHTML:!0,sortSelect:!1,forceSelection:!0,allowAdditions:!1,ignoreCase:!1,hideAdditions:!0,maxSelections:!1,useLabels:!0,delimiter:",",showOnFocus:!0,allowReselection:!1,allowTab:!0,allowCategorySelection:!1,fireOnInit:!1,transition:"auto",duration:200,glyphWidth:1.037,label:{transition:"scale",duration:200,variation:!1},delay:{hide:300,show:200,search:20,touch:50},onChange:function(e,t,n){},onAdd:function(e,t,n){},onRemove:function(e,t,n){},onLabelSelect:function(e){},onLabelCreate:function(e,t){return Y(this)},onLabelRemove:function(e){return!0},onNoResults:function(e){return!0},onShow:function(){},onHide:function(){},name:"Dropdown",namespace:"dropdown",message:{addResult:"Add <b>{term}</b>",count:"{count} selected",maxSelections:"Max {maxCount} selections",noResults:"No results found.",serverError:"There was an error contacting the server"},error:{action:"You called a dropdown action that was not defined",alreadySetup:"Once a select has been initialized behaviors must be called on the created ui dropdown",labels:"Allowing user additions currently requires the use of labels.",missingMultiple:"<select> requires multiple property to be set to correctly preserve multiple values",method:"The method you called is not defined.",noAPI:"The API module is required to load resources remotely",noStorage:"Saving remote data requires session storage",noTransition:"This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>"},regExp:{escape:/[-[\]{}()*+?.,\\^$|#\s]/g,quote:/"/g},metadata:{defaultText:"defaultText",defaultValue:"defaultValue",placeholderText:"placeholder",text:"text",value:"value"},fields:{remoteValues:"results",values:"values",disabled:"disabled",name:"name",value:"value",text:"text"},keys:{backspace:8,delimiter:188,deleteKey:46,enter:13,escape:27,pageUp:33,pageDown:34,leftArrow:37,upArrow:38,rightArrow:39,downArrow:40},selector:{addition:".addition",dropdown:".ui.dropdown",hidden:".hidden",icon:"> .dropdown.icon",input:'> input[type="hidden"], > select',item:".item",label:"> .label",remove:"> .label > .delete.icon",siblingLabel:".label",menu:".menu",message:".message",menuIcon:".dropdown.icon",search:"input.search, .menu > .search > input, .menu input.search",sizer:"> input.sizer",text:"> .text:not(.icon)",unselectable:".disabled, .filtered"},className:{active:"active",addition:"addition",animating:"animating",clear:"clear",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",leftward:"left",visible:"visible"}},Y.fn.dropdown.settings.templates={dropdown:function(e){var t=e.placeholder||!1,n=(e.values,"");return n+='<i class="dropdown icon"></i>',e.placeholder?n+='<div class="default text">'+t+"</div>":n+='<div class="text"></div>',n+='<div class="menu">',Y.each(e.values,function(e,t){n+=t.disabled?'<div class="disabled item" data-value="'+t.value+'">'+t.name+"</div>":'<div class="item" data-value="'+t.value+'">'+t.name+"</div>"}),n+="</div>"},menu:function(e,o){var t=e[o.values]||{},a="";return Y.each(t,function(e,t){var n=t[o.text]?'data-text="'+t[o.text]+'"':"",i=t[o.disabled]?"disabled ":"";a+='<div class="'+i+'item" data-value="'+t[o.value]+'"'+n+">",a+=t[o.name],a+="</div>"}),a},label:function(e,t){return t+'<i class="delete icon"></i>'},message:function(e){return e},addition:function(e){return e}}}(jQuery,window,document),function(k,T,e,A){"use strict";T=void 0!==T&&T.Math==Math?T:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),k.fn.embed=function(p){var h,v=k(this),b=v.selector||"",y=(new Date).getTime(),x=[],C=p,w="string"==typeof C,S=[].slice.call(arguments,1);return v.each(function(){var s,i=k.isPlainObject(p)?k.extend(!0,{},k.fn.embed.settings,p):k.extend({},k.fn.embed.settings),e=i.selector,t=i.className,o=i.sources,l=i.error,a=i.metadata,n=i.namespace,r=i.templates,c="."+n,u="module-"+n,d=(k(T),k(this)),f=(d.find(e.placeholder),d.find(e.icon),d.find(e.embed)),m=this,g=d.data(u);s={initialize:function(){s.debug("Initializing embed"),s.determine.autoplay(),s.create(),s.bind.events(),s.instantiate()},instantiate:function(){s.verbose("Storing instance of module",s),g=s,d.data(u,s)},destroy:function(){s.verbose("Destroying previous instance of embed"),s.reset(),d.removeData(u).off(c)},refresh:function(){s.verbose("Refreshing selector cache"),d.find(e.placeholder),d.find(e.icon),f=d.find(e.embed)},bind:{events:function(){s.has.placeholder()&&(s.debug("Adding placeholder events"),d.on("click"+c,e.placeholder,s.createAndShow).on("click"+c,e.icon,s.createAndShow))}},create:function(){s.get.placeholder()?s.createPlaceholder():s.createAndShow()},createPlaceholder:function(e){var t=s.get.icon(),n=s.get.url();s.generate.embed(n);e=e||s.get.placeholder(),d.html(r.placeholder(e,t)),s.debug("Creating placeholder for embed",e,t)},createEmbed:function(e){s.refresh(),e=e||s.get.url(),f=k("<div/>").addClass(t.embed).html(s.generate.embed(e)).appendTo(d),i.onCreate.call(m,e),s.debug("Creating embed object",f)},changeEmbed:function(e){f.html(s.generate.embed(e))},createAndShow:function(){s.createEmbed(),s.show()},change:function(e,t,n){s.debug("Changing video to ",e,t,n),d.data(a.source,e).data(a.id,t),n?d.data(a.url,n):d.removeData(a.url),s.has.embed()?s.changeEmbed():s.create()},reset:function(){s.debug("Clearing embed and showing placeholder"),s.remove.data(),s.remove.active(),s.remove.embed(),s.showPlaceholder(),i.onReset.call(m)},show:function(){s.debug("Showing embed"),s.set.active(),i.onDisplay.call(m)},hide:function(){s.debug("Hiding embed"),s.showPlaceholder()},showPlaceholder:function(){s.debug("Showing placeholder image"),s.remove.active(),i.onPlaceholderDisplay.call(m)},get:{id:function(){return i.id||d.data(a.id)},placeholder:function(){return i.placeholder||d.data(a.placeholder)},icon:function(){return i.icon?i.icon:d.data(a.icon)!==A?d.data(a.icon):s.determine.icon()},source:function(e){return i.source?i.source:d.data(a.source)!==A?d.data(a.source):s.determine.source()},type:function(){var e=s.get.source();return o[e]!==A&&o[e].type},url:function(){return i.url?i.url:d.data(a.url)!==A?d.data(a.url):s.determine.url()}},determine:{autoplay:function(){s.should.autoplay()&&(i.autoplay=!0)},source:function(n){var i=!1;return(n=n||s.get.url())&&k.each(o,function(e,t){if(-1!==n.search(t.domain))return i=e,!1}),i},icon:function(){var e=s.get.source();return o[e]!==A&&o[e].icon},url:function(){var e,t=i.id||d.data(a.id),n=i.source||d.data(a.source);return(e=o[n]!==A&&o[n].url.replace("{id}",t))&&d.data(a.url,e),e}},set:{active:function(){d.addClass(t.active)}},remove:{data:function(){d.removeData(a.id).removeData(a.icon).removeData(a.placeholder).removeData(a.source).removeData(a.url)},active:function(){d.removeClass(t.active)},embed:function(){f.empty()}},encode:{parameters:function(e){var t,n=[];for(t in e)n.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]));return n.join("&amp;")}},generate:{embed:function(e){s.debug("Generating embed html");var t,n,i=s.get.source();return(e=s.get.url(e))?(n=s.generate.parameters(i),t=r.iframe(e,n)):s.error(l.noURL,d),t},parameters:function(e,t){var n=o[e]&&o[e].parameters!==A?o[e].parameters(i):{};return(t=t||i.parameters)&&(n=k.extend({},n,t)),n=i.onEmbed(n),s.encode.parameters(n)}},has:{embed:function(){return 0<f.length},placeholder:function(){return i.placeholder||d.data(a.placeholder)}},should:{autoplay:function(){return"auto"===i.autoplay?i.placeholder||d.data(a.placeholder)!==A:i.autoplay}},is:{video:function(){return"video"==s.get.type()}},setting:function(e,t){if(s.debug("Changing setting",e,t),k.isPlainObject(e))k.extend(!0,i,e);else{if(t===A)return i[e];k.isPlainObject(i[e])?k.extend(!0,i[e],t):i[e]=t}},internal:function(e,t){if(k.isPlainObject(e))k.extend(!0,s,e);else{if(t===A)return s[e];s[e]=t}},debug:function(){!i.silent&&i.debug&&(i.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,i.name+":"),s.debug.apply(console,arguments)))},verbose:function(){!i.silent&&i.verbose&&i.debug&&(i.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,i.name+":"),s.verbose.apply(console,arguments)))},error:function(){i.silent||(s.error=Function.prototype.bind.call(console.error,console,i.name+":"),s.error.apply(console,arguments))},performance:{log:function(e){var t,n;i.performance&&(n=(t=(new Date).getTime())-(y||t),y=t,x.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:m,"Execution Time":n})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=i.name+":",n=0;y=!1,clearTimeout(s.performance.timer),k.each(x,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",b&&(e+=" '"+b+"'"),1<v.length&&(e+=" ("+v.length+")"),(console.group!==A||console.table!==A)&&0<x.length&&(console.groupCollapsed(e),console.table?console.table(x):k.each(x,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),x=[]}},invoke:function(i,e,t){var o,a,n,r=g;return e=e||S,t=m||t,"string"==typeof i&&r!==A&&(i=i.split(/[\. ]/),o=i.length-1,k.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(k.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==A)return a=r[n],!1;if(!k.isPlainObject(r[t])||e==o)return r[t]!==A?a=r[t]:s.error(l.method,i),!1;r=r[t]}})),k.isFunction(a)?n=a.apply(t,e):a!==A&&(n=a),k.isArray(h)?h.push(n):h!==A?h=[h,n]:n!==A&&(h=n),a}},w?(g===A&&s.initialize(),s.invoke(C)):(g!==A&&g.invoke("destroy"),s.initialize())}),h!==A?h:this},k.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(e){},onEmbed:function(e){return e},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(e){return{autohide:!e.brandedUI,autoplay:e.autoplay,color:e.color||A,hq:e.hd,jsapi:e.api,modestbranding:!e.brandedUI}}},vimeo:{name:"vimeo",type:"video",icon:"video play",domain:"vimeo.com",url:"//player.vimeo.com/video/{id}",parameters:function(e){return{api:e.api,autoplay:e.autoplay,byline:e.brandedUI,color:e.color||A,portrait:e.brandedUI,title:e.brandedUI}}}},templates:{iframe:function(e,t){var n=e;return t&&(n+="?"+t),'<iframe src="'+n+'" width="100%" height="100%" frameborder="0" scrolling="no" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'},placeholder:function(e,t){var n="";return t&&(n+='<i class="'+t+' icon"></i>'),e&&(n+='<img class="placeholder" src="'+e+'">'),n}},api:!1,onPause:function(){},onPlay:function(){},onStop:function(){}}}(jQuery,window,document),function(j,z,I,M){"use strict";z=void 0!==z&&z.Math==Math?z:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),j.fn.modal=function(w){var S,e=j(this),k=j(z),T=j(I),A=j("body"),R=e.selector||"",P=(new Date).getTime(),E=[],F=w,O="string"==typeof F,D=[].slice.call(arguments,1),q=z.requestAnimationFrame||z.mozRequestAnimationFrame||z.webkitRequestAnimationFrame||z.msRequestAnimationFrame||function(e){setTimeout(e,0)};return e.each(function(){var n,i,e,o,a,t,r,s,l,c=j.isPlainObject(w)?j.extend(!0,{},j.fn.modal.settings,w):j.extend({},j.fn.modal.settings),u=c.selector,d=c.className,f=c.namespace,m=c.error,g="."+f,p="module-"+f,h=j(this),v=j(c.context),b=h.find(u.close),y=this,x=h.data(p),C=!1;l={initialize:function(){l.verbose("Initializing dimmer",v),l.create.id(),l.create.dimmer(),l.refreshModals(),l.bind.events(),c.observeChanges&&l.observeChanges(),l.instantiate()},instantiate:function(){l.verbose("Storing instance of modal"),x=l,h.data(p,x)},create:{dimmer:function(){var e={debug:c.debug,variation:!c.centered&&"top aligned",dimmerName:"modals"},t=j.extend(!0,e,c.dimmerSettings);j.fn.dimmer!==M?(l.debug("Creating dimmer"),o=v.dimmer(t),c.detachable?(l.verbose("Modal is detachable, moving content into dimmer"),o.dimmer("add content",h)):l.set.undetached(),a=o.dimmer("get dimmer")):l.error(m.dimmer)},id:function(){r=(Math.random().toString(16)+"000000000").substr(2,8),t="."+r,l.verbose("Creating unique id for element",r)}},destroy:function(){l.verbose("Destroying previous modal"),h.removeData(p).off(g),k.off(t),a.off(t),b.off(g),v.dimmer("destroy")},observeChanges:function(){"MutationObserver"in z&&((s=new MutationObserver(function(e){l.debug("DOM tree modified, refreshing"),l.refresh()})).observe(y,{childList:!0,subtree:!0}),l.debug("Setting up mutation observer",s))},refresh:function(){l.remove.scrolling(),l.cacheSizes(),l.can.useFlex()||l.set.modalOffset(),l.set.screenHeight(),l.set.type()},refreshModals:function(){i=h.siblings(u.modal),n=i.add(h)},attachEvents:function(e,t){var n=j(e);t=j.isFunction(l[t])?l[t]:l.toggle,0<n.length?(l.debug("Attaching modal events to element",e,t),n.off(g).on("click"+g,t)):l.error(m.notFound,e)},bind:{events:function(){l.verbose("Attaching events"),h.on("click"+g,u.close,l.event.close).on("click"+g,u.approve,l.event.approve).on("click"+g,u.deny,l.event.deny),k.on("resize"+t,l.event.resize)},scrollLock:function(){o.get(0).addEventListener("touchmove",l.event.preventScroll,{passive:!1})}},unbind:{scrollLock:function(){o.get(0).removeEventListener("touchmove",l.event.preventScroll,{passive:!1})}},get:{id:function(){return(Math.random().toString(16)+"000000000").substr(2,8)}},event:{approve:function(){C||!1===c.onApprove.call(y,j(this))?l.verbose("Approve callback returned false cancelling hide"):(C=!0,l.hide(function(){C=!1}))},preventScroll:function(e){e.preventDefault()},deny:function(){C||!1===c.onDeny.call(y,j(this))?l.verbose("Deny callback returned false cancelling hide"):(C=!0,l.hide(function(){C=!1}))},close:function(){l.hide()},click:function(e){if(c.closable){var t=0<j(e.target).closest(u.modal).length,n=j.contains(I.documentElement,e.target);!t&&n&&l.is.active()&&(l.debug("Dimmer clicked, hiding all modals"),l.remove.clickaway(),c.allowMultiple?l.hide():l.hideAll())}else l.verbose("Dimmer clicked but closable setting is disabled")},debounce:function(e,t){clearTimeout(l.timer),l.timer=setTimeout(e,t)},keyboard:function(e){27==e.which&&(c.closable?(l.debug("Escape key pressed hiding modal"),l.hide()):l.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){o.dimmer("is active")&&(l.is.animating()||l.is.active())&&q(l.refresh)}},toggle:function(){l.is.active()||l.is.animating()?l.hide():l.show()},show:function(e){e=j.isFunction(e)?e:function(){},l.refreshModals(),l.set.dimmerSettings(),l.set.dimmerStyles(),l.showModal(e)},hide:function(e){e=j.isFunction(e)?e:function(){},l.refreshModals(),l.hideModal(e)},showModal:function(e){e=j.isFunction(e)?e:function(){},l.is.animating()||!l.is.active()?(l.showDimmer(),l.cacheSizes(),l.can.useFlex()?l.remove.legacy():(l.set.legacy(),l.set.modalOffset(),l.debug("Using non-flex legacy modal positioning.")),l.set.screenHeight(),l.set.type(),l.set.clickaway(),!c.allowMultiple&&l.others.active()?l.hideOthers(l.showModal):(c.allowMultiple&&c.detachable&&h.detach().appendTo(a),c.onShow.call(y),c.transition&&j.fn.transition!==M&&h.transition("is supported")?(l.debug("Showing modal with css animations"),h.transition({debug:c.debug,animation:c.transition+" in",queue:c.queue,duration:c.duration,useFailSafe:!0,onComplete:function(){c.onVisible.apply(y),c.keyboardShortcuts&&l.add.keyboardShortcuts(),l.save.focus(),l.set.active(),c.autofocus&&l.set.autofocus(),e()}})):l.error(m.noTransition))):l.debug("Modal is already visible")},hideModal:function(e,t){e=j.isFunction(e)?e:function(){},l.debug("Hiding modal"),!1!==c.onHide.call(y,j(this))?(l.is.animating()||l.is.active())&&(c.transition&&j.fn.transition!==M&&h.transition("is supported")?(l.remove.active(),h.transition({debug:c.debug,animation:c.transition+" out",queue:c.queue,duration:c.duration,useFailSafe:!0,onStart:function(){l.others.active()||t||l.hideDimmer(),c.keyboardShortcuts&&l.remove.keyboardShortcuts()},onComplete:function(){c.onHidden.call(y),l.remove.dimmerStyles(),l.restore.focus(),e()}})):l.error(m.noTransition)):l.verbose("Hide callback returned false cancelling hide")},showDimmer:function(){o.dimmer("is animating")||!o.dimmer("is active")?(l.debug("Showing dimmer"),o.dimmer("show")):l.debug("Dimmer already visible")},hideDimmer:function(){o.dimmer("is animating")||o.dimmer("is active")?(l.unbind.scrollLock(),o.dimmer("hide",function(){l.remove.clickaway(),l.remove.screenHeight()})):l.debug("Dimmer is not visible cannot hide")},hideAll:function(e){var t=n.filter("."+d.active+", ."+d.animating);e=j.isFunction(e)?e:function(){},0<t.length&&(l.debug("Hiding all visible modals"),l.hideDimmer(),t.modal("hide modal",e))},hideOthers:function(e){var t=i.filter("."+d.active+", ."+d.animating);e=j.isFunction(e)?e:function(){},0<t.length&&(l.debug("Hiding other modals",i),t.modal("hide modal",e,!0))},others:{active:function(){return 0<i.filter("."+d.active).length},animating:function(){return 0<i.filter("."+d.animating).length}},add:{keyboardShortcuts:function(){l.verbose("Adding keyboard shortcuts"),T.on("keyup"+g,l.event.keyboard)}},save:{focus:function(){0<j(I.activeElement).closest(h).length||(e=j(I.activeElement).blur())}},restore:{focus:function(){e&&0<e.length&&e.focus()}},remove:{active:function(){h.removeClass(d.active)},legacy:function(){h.removeClass(d.legacy)},clickaway:function(){a.off("click"+t)},dimmerStyles:function(){a.removeClass(d.inverted),o.removeClass(d.blurring)},bodyStyle:function(){""===A.attr("style")&&(l.verbose("Removing style attribute"),A.removeAttr("style"))},screenHeight:function(){l.debug("Removing page height"),A.css("height","")},keyboardShortcuts:function(){l.verbose("Removing keyboard shortcuts"),T.off("keyup"+g)},scrolling:function(){o.removeClass(d.scrolling),h.removeClass(d.scrolling)}},cacheSizes:function(){h.addClass(d.loading);var e=h.prop("scrollHeight"),t=h.outerWidth(),n=h.outerHeight();l.cache!==M&&0===n||(l.cache={pageHeight:j(I).outerHeight(),width:t,height:n+c.offset,scrollHeight:e+c.offset,contextHeight:"body"==c.context?j(z).height():o.height()},l.cache.topOffset=-l.cache.height/2),h.removeClass(d.loading),l.debug("Caching modal and container sizes",l.cache)},can:{useFlex:function(){return"auto"==c.useFlex?c.detachable&&!l.is.ie():c.useFlex},fit:function(){var e=l.cache.contextHeight,t=l.cache.contextHeight/2,n=l.cache.topOffset,i=l.cache.scrollHeight,o=l.cache.height,a=c.padding;return o<i?t+n+i+a<e:o+2*a<e}},is:{active:function(){return h.hasClass(d.active)},ie:function(){return!z.ActiveXObject&&"ActiveXObject"in z||"ActiveXObject"in z},animating:function(){return h.transition("is supported")?h.transition("is animating"):h.is(":visible")},scrolling:function(){return o.hasClass(d.scrolling)},modernBrowser:function(){return!(z.ActiveXObject||"ActiveXObject"in z)}},set:{autofocus:function(){var e=h.find("[tabindex], :input").filter(":visible"),t=e.filter("[autofocus]"),n=0<t.length?t.first():e.first();0<n.length&&n.focus()},clickaway:function(){a.on("click"+t,l.event.click)},dimmerSettings:function(){if(j.fn.dimmer!==M){var e={debug:c.debug,dimmerName:"modals",closable:"auto",useFlex:l.can.useFlex(),variation:!c.centered&&"top aligned",duration:{show:c.duration,hide:c.duration}},t=j.extend(!0,e,c.dimmerSettings);c.inverted&&(t.variation=t.variation!==M?t.variation+" inverted":"inverted"),v.dimmer("setting",t)}else l.error(m.dimmer)},dimmerStyles:function(){c.inverted?a.addClass(d.inverted):a.removeClass(d.inverted),c.blurring?o.addClass(d.blurring):o.removeClass(d.blurring)},modalOffset:function(){var e=l.cache.width,t=l.cache.height;h.css({marginTop:c.centered&&l.can.fit()?-t/2:0,marginLeft:-e/2}),l.verbose("Setting modal offset for legacy mode")},screenHeight:function(){l.can.fit()?A.css("height",""):(l.debug("Modal is taller than page content, resizing page height"),A.css("height",l.cache.height+2*c.padding))},active:function(){h.addClass(d.active)},scrolling:function(){o.addClass(d.scrolling),h.addClass(d.scrolling),l.unbind.scrollLock()},legacy:function(){h.addClass(d.legacy)},type:function(){l.can.fit()?(l.verbose("Modal fits on screen"),l.others.active()||l.others.animating()||(l.remove.scrolling(),l.bind.scrollLock())):(l.verbose("Modal cannot fit on screen setting to scrolling"),l.set.scrolling())},undetached:function(){o.addClass(d.undetached)}},setting:function(e,t){if(l.debug("Changing setting",e,t),j.isPlainObject(e))j.extend(!0,c,e);else{if(t===M)return c[e];j.isPlainObject(c[e])?j.extend(!0,c[e],t):c[e]=t}},internal:function(e,t){if(j.isPlainObject(e))j.extend(!0,l,e);else{if(t===M)return l[e];l[e]=t}},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(e){var t,n;c.performance&&(n=(t=(new Date).getTime())-(P||t),P=t,E.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:y,"Execution Time":n})),clearTimeout(l.performance.timer),l.performance.timer=setTimeout(l.performance.display,500)},display:function(){var e=c.name+":",n=0;P=!1,clearTimeout(l.performance.timer),j.each(E,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",R&&(e+=" '"+R+"'"),(console.group!==M||console.table!==M)&&0<E.length&&(console.groupCollapsed(e),console.table?console.table(E):j.each(E,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),E=[]}},invoke:function(i,e,t){var o,a,n,r=x;return e=e||D,t=y||t,"string"==typeof i&&r!==M&&(i=i.split(/[\. ]/),o=i.length-1,j.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(j.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==M)return a=r[n],!1;if(!j.isPlainObject(r[t])||e==o)return r[t]!==M&&(a=r[t]),!1;r=r[t]}})),j.isFunction(a)?n=a.apply(t,e):a!==M&&(n=a),j.isArray(S)?S.push(n):S!==M?S=[S,n]:n!==M&&(S=n),a}},O?(x===M&&l.initialize(),l.invoke(F)):(x!==M&&x.invoke("destroy"),l.initialize())}),S!==M?S:this},j.fn.modal.settings={name:"Modal",namespace:"modal",useFlex:"auto",offset:0,silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,inverted:!1,blurring:!1,centered:!0,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,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",inverted:"inverted",legacy:"legacy",loading:"loading",scrolling:"scrolling",undetached:"undetached"}}}(jQuery,window,document),function(y,x,e,C){"use strict";x=void 0!==x&&x.Math==Math?x:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),y.fn.nag=function(d){var f,e=y(this),m=e.selector||"",g=(new Date).getTime(),p=[],h=d,v="string"==typeof h,b=[].slice.call(arguments,1);return e.each(function(){var s,i=y.isPlainObject(d)?y.extend(!0,{},y.fn.nag.settings,d):y.extend({},y.fn.nag.settings),e=(i.className,i.selector),l=i.error,t=i.namespace,n="."+t,o=t+"-module",a=y(this),r=(a.find(e.close),i.context?y(i.context):y("body")),c=this,u=a.data(o);x.requestAnimationFrame||x.mozRequestAnimationFrame||x.webkitRequestAnimationFrame||x.msRequestAnimationFrame;s={initialize:function(){s.verbose("Initializing element"),a.on("click"+n,e.close,s.dismiss).data(o,s),i.detachable&&a.parent()[0]!==r[0]&&a.detach().prependTo(r),0<i.displayTime&&setTimeout(s.hide,i.displayTime),s.show()},destroy:function(){s.verbose("Destroying instance"),a.removeData(o).off(n)},show:function(){s.should.show()&&!a.is(":visible")&&(s.debug("Showing nag",i.animation.show),"fade"==i.animation.show?a.fadeIn(i.duration,i.easing):a.slideDown(i.duration,i.easing))},hide:function(){s.debug("Showing nag",i.animation.hide),"fade"==i.animation.show?a.fadeIn(i.duration,i.easing):a.slideUp(i.duration,i.easing)},onHide:function(){s.debug("Removing nag",i.animation.hide),a.remove(),i.onHide&&i.onHide()},dismiss:function(e){i.storageMethod&&s.storage.set(i.key,i.value),s.hide(),e.stopImmediatePropagation(),e.preventDefault()},should:{show:function(){return i.persist?(s.debug("Persistent nag is set, can show nag"),!0):s.storage.get(i.key)!=i.value.toString()?(s.debug("Stored value is not set, can show nag",s.storage.get(i.key)),!0):(s.debug("Stored value is set, cannot show nag",s.storage.get(i.key)),!1)}},get:{storageOptions:function(){var e={};return i.expires&&(e.expires=i.expires),i.domain&&(e.domain=i.domain),i.path&&(e.path=i.path),e}},clear:function(){s.storage.remove(i.key)},storage:{set:function(e,t){var n=s.get.storageOptions();if("localstorage"==i.storageMethod&&x.localStorage!==C)x.localStorage.setItem(e,t),s.debug("Value stored using local storage",e,t);else if("sessionstorage"==i.storageMethod&&x.sessionStorage!==C)x.sessionStorage.setItem(e,t),s.debug("Value stored using session storage",e,t);else{if(y.cookie===C)return void s.error(l.noCookieStorage);y.cookie(e,t,n),s.debug("Value stored using cookie",e,t,n)}},get:function(e,t){var n;return"localstorage"==i.storageMethod&&x.localStorage!==C?n=x.localStorage.getItem(e):"sessionstorage"==i.storageMethod&&x.sessionStorage!==C?n=x.sessionStorage.getItem(e):y.cookie!==C?n=y.cookie(e):s.error(l.noCookieStorage),"undefined"!=n&&"null"!=n&&n!==C&&null!==n||(n=C),n},remove:function(e){var t=s.get.storageOptions();"localstorage"==i.storageMethod&&x.localStorage!==C?x.localStorage.removeItem(e):"sessionstorage"==i.storageMethod&&x.sessionStorage!==C?x.sessionStorage.removeItem(e):y.cookie!==C?y.removeCookie(e,t):s.error(l.noStorage)}},setting:function(e,t){if(s.debug("Changing setting",e,t),y.isPlainObject(e))y.extend(!0,i,e);else{if(t===C)return i[e];y.isPlainObject(i[e])?y.extend(!0,i[e],t):i[e]=t}},internal:function(e,t){if(y.isPlainObject(e))y.extend(!0,s,e);else{if(t===C)return s[e];s[e]=t}},debug:function(){!i.silent&&i.debug&&(i.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,i.name+":"),s.debug.apply(console,arguments)))},verbose:function(){!i.silent&&i.verbose&&i.debug&&(i.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,i.name+":"),s.verbose.apply(console,arguments)))},error:function(){i.silent||(s.error=Function.prototype.bind.call(console.error,console,i.name+":"),s.error.apply(console,arguments))},performance:{log:function(e){var t,n;i.performance&&(n=(t=(new Date).getTime())-(g||t),g=t,p.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:c,"Execution Time":n})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=i.name+":",n=0;g=!1,clearTimeout(s.performance.timer),y.each(p,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",m&&(e+=" '"+m+"'"),(console.group!==C||console.table!==C)&&0<p.length&&(console.groupCollapsed(e),console.table?console.table(p):y.each(p,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),p=[]}},invoke:function(i,e,t){var o,a,n,r=u;return e=e||b,t=c||t,"string"==typeof i&&r!==C&&(i=i.split(/[\. ]/),o=i.length-1,y.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(y.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==C)return a=r[n],!1;if(!y.isPlainObject(r[t])||e==o)return r[t]!==C?a=r[t]:s.error(l.method,i),!1;r=r[t]}})),y.isFunction(a)?n=a.apply(t,e):a!==C&&(n=a),y.isArray(f)?f.push(n):f!==C?f=[f,n]:n!==C&&(f=n),a}},v?(u===C&&s.initialize(),s.invoke(h)):(u!==C&&u.invoke("destroy"),s.initialize())}),f!==C?f:this},y.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(){}},y.extend(y.easing,{easeOutQuad:function(e,t,n,i,o){return-i*(t/=o)*(t-2)+n}})}(jQuery,window,document),function(z,I,M,L){"use strict";I=void 0!==I&&I.Math==Math?I:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),z.fn.popup=function(k){var T,e=z(this),A=z(M),R=z(I),P=z("body"),E=e.selector||"",F=(new Date).getTime(),O=[],D=k,q="string"==typeof D,j=[].slice.call(arguments,1);return e.each(function(){var u,c,e,t,n,d,f=z.isPlainObject(k)?z.extend(!0,{},z.fn.popup.settings,k):z.extend({},z.fn.popup.settings),o=f.selector,m=f.className,g=f.error,p=f.metadata,i=f.namespace,a="."+f.namespace,r="module-"+i,h=z(this),s=z(f.context),l=z(f.scrollContext),v=z(f.boundary),b=f.target?z(f.target):h,y=0,x=!1,C=!1,w=this,S=h.data(r);d={initialize:function(){d.debug("Initializing",h),d.createID(),d.bind.events(),!d.exists()&&f.preserve&&d.create(),f.observeChanges&&d.observeChanges(),d.instantiate()},instantiate:function(){d.verbose("Storing instance",d),S=d,h.data(r,S)},observeChanges:function(){"MutationObserver"in I&&((e=new MutationObserver(d.event.documentChanged)).observe(M,{childList:!0,subtree:!0}),d.debug("Setting up mutation observer",e))},refresh:function(){f.popup?u=z(f.popup).eq(0):f.inline&&(u=b.nextAll(o.popup).eq(0),f.popup=u),f.popup?(u.addClass(m.loading),c=d.get.offsetParent(),u.removeClass(m.loading),f.movePopup&&d.has.popup()&&d.get.offsetParent(u)[0]!==c[0]&&(d.debug("Moving popup to the same offset parent as target"),u.detach().appendTo(c))):c=f.inline?d.get.offsetParent(b):d.has.popup()?d.get.offsetParent(u):P,c.is("html")&&c[0]!==P[0]&&(d.debug("Setting page as offset parent"),c=P),d.get.variation()&&d.set.variation()},reposition:function(){d.refresh(),d.set.position()},destroy:function(){d.debug("Destroying previous module"),e&&e.disconnect(),u&&!f.preserve&&d.removePopup(),clearTimeout(d.hideTimer),clearTimeout(d.showTimer),d.unbind.close(),d.unbind.events(),h.removeData(r)},event:{start:function(e){var t=z.isPlainObject(f.delay)?f.delay.show:f.delay;clearTimeout(d.hideTimer),C||(d.showTimer=setTimeout(d.show,t))},end:function(){var e=z.isPlainObject(f.delay)?f.delay.hide:f.delay;clearTimeout(d.showTimer),d.hideTimer=setTimeout(d.hide,e)},touchstart:function(e){C=!0,d.show()},resize:function(){d.is.visible()&&d.set.position()},documentChanged:function(e){[].forEach.call(e,function(e){e.removedNodes&&[].forEach.call(e.removedNodes,function(e){(e==w||0<z(e).find(w).length)&&(d.debug("Element removed from DOM, tearing down events"),d.destroy())})})},hideGracefully:function(e){var t=z(e.target),n=z.contains(M.documentElement,e.target),i=0<t.closest(o.popup).length;e&&!i&&n?(d.debug("Click occurred outside popup hiding popup"),d.hide()):d.debug("Click was inside popup, keeping popup open")}},create:function(){var e=d.get.html(),t=d.get.title(),n=d.get.content();e||n||t?(d.debug("Creating pop-up html"),e||(e=f.templates.popup({title:t,content:n})),u=z("<div/>").addClass(m.popup).data(p.activator,h).html(e),f.inline?(d.verbose("Inserting popup element inline",u),u.insertAfter(h)):(d.verbose("Appending popup element to body",u),u.appendTo(s)),d.refresh(),d.set.variation(),f.hoverable&&d.bind.popup(),f.onCreate.call(u,w)):0!==b.next(o.popup).length?(d.verbose("Pre-existing popup found"),f.inline=!0,f.popup=b.next(o.popup).data(p.activator,h),d.refresh(),f.hoverable&&d.bind.popup()):f.popup?(z(f.popup).data(p.activator,h),d.verbose("Used popup specified in settings"),d.refresh(),f.hoverable&&d.bind.popup()):d.debug("No content specified skipping display",w)},createID:function(){n=(Math.random().toString(16)+"000000000").substr(2,8),t="."+n,d.verbose("Creating unique id for element",n)},toggle:function(){d.debug("Toggling pop-up"),d.is.hidden()?(d.debug("Popup is hidden, showing pop-up"),d.unbind.close(),d.show()):(d.debug("Popup is visible, hiding pop-up"),d.hide())},show:function(e){if(e=e||function(){},d.debug("Showing pop-up",f.transition),d.is.hidden()&&(!d.is.active()||!d.is.dropdown())){if(d.exists()||d.create(),!1===f.onShow.call(u,w))return void d.debug("onShow callback returned false, cancelling popup animation");f.preserve||f.popup||d.refresh(),u&&d.set.position()&&(d.save.conditions(),f.exclusive&&d.hideAll(),d.animate.show(e))}},hide:function(e){if(e=e||function(){},d.is.visible()||d.is.animating()){if(!1===f.onHide.call(u,w))return void d.debug("onHide callback returned false, cancelling popup animation");d.remove.visible(),d.unbind.close(),d.restore.conditions(),d.animate.hide(e)}},hideAll:function(){z(o.popup).filter("."+m.popupVisible).each(function(){z(this).data(p.activator).popup("hide")})},exists:function(){return!!u&&(f.inline||f.popup?d.has.popup():1<=u.closest(s).length)},removePopup:function(){d.has.popup()&&!f.popup&&(d.debug("Removing popup",u),u.remove(),u=L,f.onRemove.call(u,w))},save:{conditions:function(){d.cache={title:h.attr("title")},d.cache.title&&h.removeAttr("title"),d.verbose("Saving original attributes",d.cache.title)}},restore:{conditions:function(){return d.cache&&d.cache.title&&(h.attr("title",d.cache.title),d.verbose("Restoring original attributes",d.cache.title)),!0}},supports:{svg:function(){return"undefined"==typeof SVGGraphicsElement}},animate:{show:function(e){e=z.isFunction(e)?e:function(){},f.transition&&z.fn.transition!==L&&h.transition("is supported")?(d.set.visible(),u.transition({animation:f.transition+" in",queue:!1,debug:f.debug,verbose:f.verbose,duration:f.duration,onComplete:function(){d.bind.close(),e.call(u,w),f.onVisible.call(u,w)}})):d.error(g.noTransition)},hide:function(e){e=z.isFunction(e)?e:function(){},d.debug("Hiding pop-up"),!1!==f.onHide.call(u,w)?f.transition&&z.fn.transition!==L&&h.transition("is supported")?u.transition({animation:f.transition+" out",queue:!1,duration:f.duration,debug:f.debug,verbose:f.verbose,onComplete:function(){d.reset(),e.call(u,w),f.onHidden.call(u,w)}}):d.error(g.noTransition):d.debug("onHide callback returned false, cancelling popup animation")}},change:{content:function(e){u.html(e)}},get:{html:function(){return h.removeData(p.html),h.data(p.html)||f.html},title:function(){return h.removeData(p.title),h.data(p.title)||f.title},content:function(){return h.removeData(p.content),h.data(p.content)||f.content||h.attr("title")},variation:function(){return h.removeData(p.variation),h.data(p.variation)||f.variation},popup:function(){return u},popupOffset:function(){return u.offset()},calculations:function(){var e,t=d.get.offsetParent(u),n=b[0],i=v[0]==I,o=f.inline||f.popup&&f.movePopup?b.position():b.offset(),a=i?{top:0,left:0}:v.offset(),r={},s=i?{top:R.scrollTop(),left:R.scrollLeft()}:{top:0,left:0};if(r={target:{element:b[0],width:b.outerWidth(),height:b.outerHeight(),top:o.top,left:o.left,margin:{}},popup:{width:u.outerWidth(),height:u.outerHeight()},parent:{width:c.outerWidth(),height:c.outerHeight()},screen:{top:a.top,left:a.left,scroll:{top:s.top,left:s.left},width:v.width(),height:v.height()}},t.get(0)!==c.get(0)){var l=t.offset();r.target.top-=l.top,r.target.left-=l.left,r.parent.width=t.outerWidth(),r.parent.height=t.outerHeight()}return f.setFluidWidth&&d.is.fluid()&&(r.container={width:u.parent().outerWidth()},r.popup.width=r.container.width),r.target.margin.top=f.inline?parseInt(I.getComputedStyle(n).getPropertyValue("margin-top"),10):0,r.target.margin.left=f.inline?d.is.rtl()?parseInt(I.getComputedStyle(n).getPropertyValue("margin-right"),10):parseInt(I.getComputedStyle(n).getPropertyValue("margin-left"),10):0,e=r.screen,r.boundary={top:e.top+e.scroll.top,bottom:e.top+e.scroll.top+e.height,left:e.left+e.scroll.left,right:e.left+e.scroll.left+e.width},r},id:function(){return n},startEvent:function(){return"hover"==f.on?"mouseenter":"focus"==f.on&&"focus"},scrollEvent:function(){return"scroll"},endEvent:function(){return"hover"==f.on?"mouseleave":"focus"==f.on&&"blur"},distanceFromBoundary:function(e,t){var n,i,o={};return n=(t=t||d.get.calculations()).popup,i=t.boundary,e&&(o={top:e.top-i.top,left:e.left-i.left,right:i.right-(e.left+n.width),bottom:i.bottom-(e.top+n.height)},d.verbose("Distance from boundaries determined",e,o)),o},offsetParent:function(e){var t=(e!==L?e[0]:b[0]).parentNode,n=z(t);if(t)for(var i="none"===n.css("transform"),o="static"===n.css("position"),a=n.is("body");t&&!a&&o&&i;)t=t.parentNode,i="none"===(n=z(t)).css("transform"),o="static"===n.css("position"),a=n.is("body");return n&&0<n.length?n:z()},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(e){var t=e.split(" "),n=t[0],i=t[1],o="top"==n||"bottom"==n,a=!1,r=!1,s=!1;return x||(d.verbose("All available positions available"),x=d.get.positions()),d.debug("Recording last position tried",e),x[e]=!0,"opposite"===f.prefer&&(s=(s=[{top:"bottom",bottom:"top",left:"right",right:"left"}[n],i]).join(" "),a=!0===x[s],d.debug("Trying opposite strategy",s)),"adjacent"===f.prefer&&o&&(s=(s=[n,{left:"center",center:"right",right:"left"}[i]]).join(" "),r=!0===x[s],d.debug("Trying adjacent strategy",s)),(r||a)&&(d.debug("Using backup position",s),s={"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"}[e]),s}},set:{position:function(e,t){if(0!==b.length&&0!==u.length){var n,i,o,a,r,s,l,c;if(t=t||d.get.calculations(),e=e||h.data(p.position)||f.position,n=h.data(p.offset)||f.offset,i=f.distanceAway,o=t.target,a=t.popup,r=t.parent,d.should.centerArrow(t)&&(d.verbose("Adjusting offset to center arrow on small target element"),"top left"!=e&&"bottom left"!=e||(n+=o.width/2,n-=f.arrowPixelsFromEdge),"top right"!=e&&"bottom right"!=e||(n-=o.width/2,n+=f.arrowPixelsFromEdge)),0===o.width&&0===o.height&&!d.is.svg(o.element))return d.debug("Popup target is hidden, no action taken"),!1;switch(f.inline&&(d.debug("Adding margin to calculation",o.margin),"left center"==e||"right center"==e?(n+=o.margin.top,i+=-o.margin.left):"top left"==e||"top center"==e||"top right"==e?(n+=o.margin.left,i-=o.margin.top):(n+=o.margin.left,i+=o.margin.top)),d.debug("Determining popup position from calculations",e,t),d.is.rtl()&&(e=e.replace(/left|right/g,function(e){return"left"==e?"right":"left"}),d.debug("RTL: Popup position updated",e)),y==f.maxSearchDepth&&"string"==typeof f.lastResort&&(e=f.lastResort),e){case"top left":s={top:"auto",bottom:r.height-o.top+i,left:o.left+n,right:"auto"};break;case"top center":s={bottom:r.height-o.top+i,left:o.left+o.width/2-a.width/2+n,top:"auto",right:"auto"};break;case"top right":s={bottom:r.height-o.top+i,right:r.width-o.left-o.width-n,top:"auto",left:"auto"};break;case"left center":s={top:o.top+o.height/2-a.height/2+n,right:r.width-o.left+i,left:"auto",bottom:"auto"};break;case"right center":s={top:o.top+o.height/2-a.height/2+n,left:o.left+o.width+i,bottom:"auto",right:"auto"};break;case"bottom left":s={top:o.top+o.height+i,left:o.left+n,bottom:"auto",right:"auto"};break;case"bottom center":s={top:o.top+o.height+i,left:o.left+o.width/2-a.width/2+n,bottom:"auto",right:"auto"};break;case"bottom right":s={top:o.top+o.height+i,right:r.width-o.left-o.width-n,left:"auto",bottom:"auto"}}if(s===L&&d.error(g.invalidPosition,e),d.debug("Calculated popup positioning values",s),u.css(s).removeClass(m.position).addClass(e).addClass(m.loading),l=d.get.popupOffset(),c=d.get.distanceFromBoundary(l,t),d.is.offstage(c,e)){if(d.debug("Position is outside viewport",e),y<f.maxSearchDepth)return y++,e=d.get.nextPosition(e),d.debug("Trying new position",e),!!u&&d.set.position(e,t);if(!f.lastResort)return d.debug("Popup could not find a position to display",u),d.error(g.cannotPlace,w),d.remove.attempts(),d.remove.loading(),d.reset(),f.onUnplaceable.call(u,w),!1;d.debug("No position found, showing with last position")}return d.debug("Position is on stage",e),d.remove.attempts(),d.remove.loading(),f.setFluidWidth&&d.is.fluid()&&d.set.fluidWidth(t),!0}d.error(g.notFound)},fluidWidth:function(e){e=e||d.get.calculations(),d.debug("Automatically setting element width to parent width",e.parent.width),u.css("width",e.container.width)},variation:function(e){(e=e||d.get.variation())&&d.has.popup()&&(d.verbose("Adding variation to popup",e),u.addClass(e))},visible:function(){h.addClass(m.visible)}},remove:{loading:function(){u.removeClass(m.loading)},variation:function(e){(e=e||d.get.variation())&&(d.verbose("Removing variation",e),u.removeClass(e))},visible:function(){h.removeClass(m.visible)},attempts:function(){d.verbose("Resetting all searched positions"),y=0,x=!1}},bind:{events:function(){d.debug("Binding popup events to module"),"click"==f.on&&h.on("click"+a,d.toggle),"hover"==f.on&&h.on("touchstart"+a,d.event.touchstart),d.get.startEvent()&&h.on(d.get.startEvent()+a,d.event.start).on(d.get.endEvent()+a,d.event.end),f.target&&d.debug("Target set to element",b),R.on("resize"+t,d.event.resize)},popup:function(){d.verbose("Allowing hover events on popup to prevent closing"),u&&d.has.popup()&&u.on("mouseenter"+a,d.event.start).on("mouseleave"+a,d.event.end)},close:function(){(!0===f.hideOnScroll||"auto"==f.hideOnScroll&&"click"!=f.on)&&d.bind.closeOnScroll(),d.is.closable()?d.bind.clickaway():"hover"==f.on&&C&&d.bind.touchClose()},closeOnScroll:function(){d.verbose("Binding scroll close event to document"),l.one(d.get.scrollEvent()+t,d.event.hideGracefully)},touchClose:function(){d.verbose("Binding popup touchclose event to document"),A.on("touchstart"+t,function(e){d.verbose("Touched away from popup"),d.event.hideGracefully.call(w,e)})},clickaway:function(){d.verbose("Binding popup close event to document"),A.on("click"+t,function(e){d.verbose("Clicked away from popup"),d.event.hideGracefully.call(w,e)})}},unbind:{events:function(){R.off(t),h.off(a)},close:function(){A.off(t),l.off(t)}},has:{popup:function(){return u&&0<u.length}},should:{centerArrow:function(e){return!d.is.basic()&&e.target.width<=2*f.arrowPixelsFromEdge}},is:{closable:function(){return"auto"==f.closable?"hover"!=f.on:f.closable},offstage:function(e,n){var i=[];return z.each(e,function(e,t){t<-f.jitter&&(d.debug("Position exceeds allowable distance from edge",e,t,n),i.push(e))}),0<i.length},svg:function(e){return d.supports.svg()&&e instanceof SVGGraphicsElement},basic:function(){return h.hasClass(m.basic)},active:function(){return h.hasClass(m.active)},animating:function(){return u!==L&&u.hasClass(m.animating)},fluid:function(){return u!==L&&u.hasClass(m.fluid)},visible:function(){return u!==L&&u.hasClass(m.popupVisible)},dropdown:function(){return h.hasClass(m.dropdown)},hidden:function(){return!d.is.visible()},rtl:function(){return"rtl"==h.css("direction")}},reset:function(){d.remove.visible(),f.preserve?z.fn.transition!==L&&u.transition("remove transition"):d.removePopup()},setting:function(e,t){if(z.isPlainObject(e))z.extend(!0,f,e);else{if(t===L)return f[e];f[e]=t}},internal:function(e,t){if(z.isPlainObject(e))z.extend(!0,d,e);else{if(t===L)return d[e];d[e]=t}},debug:function(){!f.silent&&f.debug&&(f.performance?d.performance.log(arguments):(d.debug=Function.prototype.bind.call(console.info,console,f.name+":"),d.debug.apply(console,arguments)))},verbose:function(){!f.silent&&f.verbose&&f.debug&&(f.performance?d.performance.log(arguments):(d.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),d.verbose.apply(console,arguments)))},error:function(){f.silent||(d.error=Function.prototype.bind.call(console.error,console,f.name+":"),d.error.apply(console,arguments))},performance:{log:function(e){var t,n;f.performance&&(n=(t=(new Date).getTime())-(F||t),F=t,O.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:w,"Execution Time":n})),clearTimeout(d.performance.timer),d.performance.timer=setTimeout(d.performance.display,500)},display:function(){var e=f.name+":",n=0;F=!1,clearTimeout(d.performance.timer),z.each(O,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",E&&(e+=" '"+E+"'"),(console.group!==L||console.table!==L)&&0<O.length&&(console.groupCollapsed(e),console.table?console.table(O):z.each(O,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),O=[]}},invoke:function(i,e,t){var o,a,n,r=S;return e=e||j,t=w||t,"string"==typeof i&&r!==L&&(i=i.split(/[\. ]/),o=i.length-1,z.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(z.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==L)return a=r[n],!1;if(!z.isPlainObject(r[t])||e==o)return r[t]!==L&&(a=r[t]),!1;r=r[t]}})),z.isFunction(a)?n=a.apply(t,e):a!==L&&(n=a),z.isArray(T)?T.push(n):T!==L?T=[T,n]:n!==L&&(T=n),a}},q?(S===L&&d.initialize(),d.invoke(D)):(S!==L&&S.invoke("destroy"),d.initialize())}),T!==L?T:this},z.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:I,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:I,prefer:"opposite",lastResort:!1,arrowPixelsFromEdge:20,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",basic:"basic",animating:"animating",dropdown:"dropdown",fluid:"fluid",loading:"loading",popup:"ui popup",position:"top left center bottom right",visible:"visible",popupVisible:"visible"},selector:{popup:".ui.popup"},templates:{escape:function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};return/[&<>"'`]/.test(e)?e.replace(/[&<>"'`]/g,function(e){return t[e]}):e},popup:function(e){var t="",n=z.fn.popup.settings.templates.escape;return typeof e!==L&&(typeof e.title!==L&&e.title&&(e.title=n(e.title),t+='<div class="header">'+e.title+"</div>"),typeof e.content!==L&&e.content&&(e.content=n(e.content),t+='<div class="content">'+e.content+"</div>")),t}}}}(jQuery,window,document),function(k,e,T,A){"use strict";void 0!==(e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")())&&e.Math==Math||("undefined"!=typeof self&&self.Math==Math?self:Function("return this")());k.fn.progress=function(h){var v,e=k(this),b=e.selector||"",y=(new Date).getTime(),x=[],C=h,w="string"==typeof C,S=[].slice.call(arguments,1);return e.each(function(){var s,i=k.isPlainObject(h)?k.extend(!0,{},k.fn.progress.settings,h):k.extend({},k.fn.progress.settings),t=i.className,n=i.metadata,e=i.namespace,o=i.selector,l=i.error,a="."+e,r="module-"+e,c=k(this),u=k(this).find(o.bar),d=k(this).find(o.progress),f=k(this).find(o.label),m=this,g=c.data(r),p=!1;s={initialize:function(){s.debug("Initializing progress bar",i),s.set.duration(),s.set.transitionEvent(),s.read.metadata(),s.read.settings(),s.instantiate()},instantiate:function(){s.verbose("Storing instance of progress",s),g=s,c.data(r,s)},destroy:function(){s.verbose("Destroying previous progress for",c),clearInterval(g.interval),s.remove.state(),c.removeData(r),g=A},reset:function(){s.remove.nextValue(),s.update.progress(0)},complete:function(){(s.percent===A||s.percent<100)&&(s.remove.progressPoll(),s.set.percent(100))},read:{metadata:function(){var e={percent:c.data(n.percent),total:c.data(n.total),value:c.data(n.value)};e.percent&&(s.debug("Current percent value set from metadata",e.percent),s.set.percent(e.percent)),e.total&&(s.debug("Total value set from metadata",e.total),s.set.total(e.total)),e.value&&(s.debug("Current value set from metadata",e.value),s.set.value(e.value),s.set.progress(e.value))},settings:function(){!1!==i.total&&(s.debug("Current total set in settings",i.total),s.set.total(i.total)),!1!==i.value&&(s.debug("Current value set in settings",i.value),s.set.value(i.value),s.set.progress(s.value)),!1!==i.percent&&(s.debug("Current percent set in settings",i.percent),s.set.percent(i.percent))}},bind:{transitionEnd:function(t){var e=s.get.transitionEnd();u.one(e+a,function(e){clearTimeout(s.failSafeTimer),t.call(this,e)}),s.failSafeTimer=setTimeout(function(){u.triggerHandler(e)},i.duration+i.failSafeDelay),s.verbose("Adding fail safe timer",s.timer)}},increment:function(e){var t,n;s.has.total()?n=(t=s.get.value())+(e=e||1):(n=(t=s.get.percent())+(e=e||s.get.randomValue()),s.debug("Incrementing percentage by",t,n)),n=s.get.normalizedValue(n),s.set.progress(n)},decrement:function(e){var t,n;s.get.total()?(n=(t=s.get.value())-(e=e||1),s.debug("Decrementing value by",e,t)):(n=(t=s.get.percent())-(e=e||s.get.randomValue()),s.debug("Decrementing percentage by",e,t)),n=s.get.normalizedValue(n),s.set.progress(n)},has:{progressPoll:function(){return s.progressPoll},total:function(){return!1!==s.get.total()}},get:{text:function(e){var t=s.value||0,n=s.total||0,i=p?s.get.displayPercent():s.percent||0,o=0<s.total?n-t:100-i;return e=(e=e||"").replace("{value}",t).replace("{total}",n).replace("{left}",o).replace("{percent}",i),s.verbose("Adding variables to progress bar text",e),e},normalizedValue:function(e){if(e<0)return s.debug("Value cannot decrement below 0"),0;if(s.has.total()){if(e>s.total)return s.debug("Value cannot increment above total",s.total),s.total}else if(100<e)return s.debug("Value cannot increment above 100 percent"),100;return e},updateInterval:function(){return"auto"==i.updateInterval?i.duration:i.updateInterval},randomValue:function(){return s.debug("Generating random increment percentage"),Math.floor(Math.random()*i.random.max+i.random.min)},numericValue:function(e){return"string"==typeof e?""!==e.replace(/[^\d.]/g,"")&&+e.replace(/[^\d.]/g,""):e},transitionEnd:function(){var e,t=T.createElement("element"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(t.style[e]!==A)return n[e]},displayPercent:function(){var e=u.width(),t=c.width(),n=parseInt(u.css("min-width"),10)<e?e/t*100:s.percent;return 0<i.precision?Math.round(n*(10*i.precision))/(10*i.precision):Math.round(n)},percent:function(){return s.percent||0},value:function(){return s.nextValue||s.value||0},total:function(){return s.total||!1}},create:{progressPoll:function(){s.progressPoll=setTimeout(function(){s.update.toNextValue(),s.remove.progressPoll()},s.get.updateInterval())}},is:{complete:function(){return s.is.success()||s.is.warning()||s.is.error()},success:function(){return c.hasClass(t.success)},warning:function(){return c.hasClass(t.warning)},error:function(){return c.hasClass(t.error)},active:function(){return c.hasClass(t.active)},visible:function(){return c.is(":visible")}},remove:{progressPoll:function(){s.verbose("Removing progress poll timer"),s.progressPoll&&(clearTimeout(s.progressPoll),delete s.progressPoll)},nextValue:function(){s.verbose("Removing progress value stored for next update"),delete s.nextValue},state:function(){s.verbose("Removing stored state"),delete s.total,delete s.percent,delete s.value},active:function(){s.verbose("Removing active state"),c.removeClass(t.active)},success:function(){s.verbose("Removing success state"),c.removeClass(t.success)},warning:function(){s.verbose("Removing warning state"),c.removeClass(t.warning)},error:function(){s.verbose("Removing error state"),c.removeClass(t.error)}},set:{barWidth:function(e){100<e?s.error(l.tooHigh,e):e<0?s.error(l.tooLow,e):(u.css("width",e+"%"),c.attr("data-percent",parseInt(e,10)))},duration:function(e){e="number"==typeof(e=e||i.duration)?e+"ms":e,s.verbose("Setting progress bar transition duration",e),u.css({"transition-duration":e})},percent:function(e){e="string"==typeof e?+e.replace("%",""):e,e=0<i.precision?Math.round(e*(10*i.precision))/(10*i.precision):Math.round(e),s.percent=e,s.has.total()||(s.value=0<i.precision?Math.round(e/100*s.total*(10*i.precision))/(10*i.precision):Math.round(e/100*s.total*10)/10,i.limitValues&&(s.value=100<s.value?100:s.value<0?0:s.value)),s.set.barWidth(e),s.set.labelInterval(),s.set.labels(),i.onChange.call(m,e,s.value,s.total)},labelInterval:function(){clearInterval(s.interval),s.bind.transitionEnd(function(){s.verbose("Bar finished animating, removing continuous label updates"),clearInterval(s.interval),p=!1,s.set.labels()}),p=!0,s.interval=setInterval(function(){k.contains(T.documentElement,m)||(clearInterval(s.interval),p=!1),s.set.labels()},i.framerate)},labels:function(){s.verbose("Setting both bar progress and outer label text"),s.set.barLabel(),s.set.state()},label:function(e){(e=e||"")&&(e=s.get.text(e),s.verbose("Setting label to text",e),f.text(e))},state:function(e){100===(e=e!==A?e:s.percent)?i.autoSuccess&&!(s.is.warning()||s.is.error()||s.is.success())?(s.set.success(),s.debug("Automatically triggering success at 100%")):(s.verbose("Reached 100% removing active state"),s.remove.active(),s.remove.progressPoll()):0<e?(s.verbose("Adjusting active progress bar label",e),s.set.active()):(s.remove.active(),s.set.label(i.text.active))},barLabel:function(e){e!==A?d.text(s.get.text(e)):"ratio"==i.label&&s.total?(s.verbose("Adding ratio to bar label"),d.text(s.get.text(i.text.ratio))):"percent"==i.label&&(s.verbose("Adding percentage to bar label"),d.text(s.get.text(i.text.percent)))},active:function(e){e=e||i.text.active,s.debug("Setting active state"),i.showActivity&&!s.is.active()&&c.addClass(t.active),s.remove.warning(),s.remove.error(),s.remove.success(),(e=i.onLabelUpdate("active",e,s.value,s.total))&&s.set.label(e),s.bind.transitionEnd(function(){i.onActive.call(m,s.value,s.total)})},success:function(e){e=e||i.text.success||i.text.active,s.debug("Setting success state"),c.addClass(t.success),s.remove.active(),s.remove.warning(),s.remove.error(),s.complete(),e=i.text.success?i.onLabelUpdate("success",e,s.value,s.total):i.onLabelUpdate("active",e,s.value,s.total),s.set.label(e),s.bind.transitionEnd(function(){i.onSuccess.call(m,s.total)})},warning:function(e){e=e||i.text.warning,s.debug("Setting warning state"),c.addClass(t.warning),s.remove.active(),s.remove.success(),s.remove.error(),s.complete(),(e=i.onLabelUpdate("warning",e,s.value,s.total))&&s.set.label(e),s.bind.transitionEnd(function(){i.onWarning.call(m,s.value,s.total)})},error:function(e){e=e||i.text.error,s.debug("Setting error state"),c.addClass(t.error),s.remove.active(),s.remove.success(),s.remove.warning(),s.complete(),(e=i.onLabelUpdate("error",e,s.value,s.total))&&s.set.label(e),s.bind.transitionEnd(function(){i.onError.call(m,s.value,s.total)})},transitionEvent:function(){s.get.transitionEnd()},total:function(e){s.total=e},value:function(e){s.value=e},progress:function(e){s.has.progressPoll()?(s.debug("Updated within interval, setting next update to use new value",e),s.set.nextValue(e)):(s.debug("First update in progress update interval, immediately updating",e),s.update.progress(e),s.create.progressPoll())},nextValue:function(e){s.nextValue=e}},update:{toNextValue:function(){var e=s.nextValue;e&&(s.debug("Update interval complete using last updated value",e),s.update.progress(e),s.remove.nextValue())},progress:function(e){var t;!1===(e=s.get.numericValue(e))&&s.error(l.nonNumeric,e),e=s.get.normalizedValue(e),s.has.total()?(s.set.value(e),t=e/s.total*100,s.debug("Calculating percent complete from total",t)):(t=e,s.debug("Setting value to exact percentage value",t)),s.set.percent(t)}},setting:function(e,t){if(s.debug("Changing setting",e,t),k.isPlainObject(e))k.extend(!0,i,e);else{if(t===A)return i[e];k.isPlainObject(i[e])?k.extend(!0,i[e],t):i[e]=t}},internal:function(e,t){if(k.isPlainObject(e))k.extend(!0,s,e);else{if(t===A)return s[e];s[e]=t}},debug:function(){!i.silent&&i.debug&&(i.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,i.name+":"),s.debug.apply(console,arguments)))},verbose:function(){!i.silent&&i.verbose&&i.debug&&(i.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,i.name+":"),s.verbose.apply(console,arguments)))},error:function(){i.silent||(s.error=Function.prototype.bind.call(console.error,console,i.name+":"),s.error.apply(console,arguments))},performance:{log:function(e){var t,n;i.performance&&(n=(t=(new Date).getTime())-(y||t),y=t,x.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:m,"Execution Time":n})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=i.name+":",n=0;y=!1,clearTimeout(s.performance.timer),k.each(x,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",b&&(e+=" '"+b+"'"),(console.group!==A||console.table!==A)&&0<x.length&&(console.groupCollapsed(e),console.table?console.table(x):k.each(x,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),x=[]}},invoke:function(i,e,t){var o,a,n,r=g;return e=e||S,t=m||t,"string"==typeof i&&r!==A&&(i=i.split(/[\. ]/),o=i.length-1,k.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(k.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==A)return a=r[n],!1;if(!k.isPlainObject(r[t])||e==o)return r[t]!==A?a=r[t]:s.error(l.method,i),!1;r=r[t]}})),k.isFunction(a)?n=a.apply(t,e):a!==A&&(n=a),k.isArray(v)?v.push(n):v!==A?v=[v,n]:n!==A&&(v=n),a}},w?(g===A&&s.initialize(),s.invoke(C)):(g!==A&&g.invoke("destroy"),s.initialize())}),v!==A?v:this},k.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(e,t,n,i){return t},onChange:function(e,t,n){},onSuccess:function(e){},onActive:function(e,t){},onError:function(e,t){},onWarning:function(e,t){},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(w,e,t,S){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),w.fn.rating=function(m){var g,p=w(this),h=p.selector||"",v=(new Date).getTime(),b=[],y=m,x="string"==typeof y,C=[].slice.call(arguments,1);return p.each(function(){var e,i,o=w.isPlainObject(m)?w.extend(!0,{},w.fn.rating.settings,m):w.extend({},w.fn.rating.settings),t=o.namespace,a=o.className,n=o.metadata,r=o.selector,s=(o.error,"."+t),l="module-"+t,c=this,u=w(this).data(l),d=w(this),f=d.find(r.icon);i={initialize:function(){i.verbose("Initializing rating module",o),0===f.length&&i.setup.layout(),o.interactive?i.enable():i.disable(),i.set.initialLoad(),i.set.rating(i.get.initialRating()),i.remove.initialLoad(),i.instantiate()},instantiate:function(){i.verbose("Instantiating module",o),u=i,d.data(l,i)},destroy:function(){i.verbose("Destroying previous instance",u),i.remove.events(),d.removeData(l)},refresh:function(){f=d.find(r.icon)},setup:{layout:function(){var e=i.get.maxRating(),t=w.fn.rating.settings.templates.icon(e);i.debug("Generating icon html dynamically"),d.html(t),i.refresh()}},event:{mouseenter:function(){var e=w(this);e.nextAll().removeClass(a.selected),d.addClass(a.selected),e.addClass(a.selected).prevAll().addClass(a.selected)},mouseleave:function(){d.removeClass(a.selected),f.removeClass(a.selected)},click:function(){var e=w(this),t=i.get.rating(),n=f.index(e)+1;("auto"==o.clearable?1===f.length:o.clearable)&&t==n?i.clearRating():i.set.rating(n)}},clearRating:function(){i.debug("Clearing current rating"),i.set.rating(0)},bind:{events:function(){i.verbose("Binding events"),d.on("mouseenter"+s,r.icon,i.event.mouseenter).on("mouseleave"+s,r.icon,i.event.mouseleave).on("click"+s,r.icon,i.event.click)}},remove:{events:function(){i.verbose("Removing events"),d.off(s)},initialLoad:function(){e=!1}},enable:function(){i.debug("Setting rating to interactive mode"),i.bind.events(),d.removeClass(a.disabled)},disable:function(){i.debug("Setting rating to read-only mode"),i.remove.events(),d.addClass(a.disabled)},is:{initialLoad:function(){return e}},get:{initialRating:function(){return d.data(n.rating)!==S?(d.removeData(n.rating),d.data(n.rating)):o.initialRating},maxRating:function(){return d.data(n.maxRating)!==S?(d.removeData(n.maxRating),d.data(n.maxRating)):o.maxRating},rating:function(){var e=f.filter("."+a.active).length;return i.verbose("Current rating retrieved",e),e}},set:{rating:function(e){var t=0<=e-1?e-1:0,n=f.eq(t);d.removeClass(a.selected),f.removeClass(a.selected).removeClass(a.active),0<e&&(i.verbose("Setting current rating to",e),n.prevAll().addBack().addClass(a.active)),i.is.initialLoad()||o.onRate.call(c,e)},initialLoad:function(){e=!0}},setting:function(e,t){if(i.debug("Changing setting",e,t),w.isPlainObject(e))w.extend(!0,o,e);else{if(t===S)return o[e];w.isPlainObject(o[e])?w.extend(!0,o[e],t):o[e]=t}},internal:function(e,t){if(w.isPlainObject(e))w.extend(!0,i,e);else{if(t===S)return i[e];i[e]=t}},debug:function(){!o.silent&&o.debug&&(o.performance?i.performance.log(arguments):(i.debug=Function.prototype.bind.call(console.info,console,o.name+":"),i.debug.apply(console,arguments)))},verbose:function(){!o.silent&&o.verbose&&o.debug&&(o.performance?i.performance.log(arguments):(i.verbose=Function.prototype.bind.call(console.info,console,o.name+":"),i.verbose.apply(console,arguments)))},error:function(){o.silent||(i.error=Function.prototype.bind.call(console.error,console,o.name+":"),i.error.apply(console,arguments))},performance:{log:function(e){var t,n;o.performance&&(n=(t=(new Date).getTime())-(v||t),v=t,b.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:c,"Execution Time":n})),clearTimeout(i.performance.timer),i.performance.timer=setTimeout(i.performance.display,500)},display:function(){var e=o.name+":",n=0;v=!1,clearTimeout(i.performance.timer),w.each(b,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",h&&(e+=" '"+h+"'"),1<p.length&&(e+=" ("+p.length+")"),(console.group!==S||console.table!==S)&&0<b.length&&(console.groupCollapsed(e),console.table?console.table(b):w.each(b,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),b=[]}},invoke:function(i,e,t){var o,a,n,r=u;return e=e||C,t=c||t,"string"==typeof i&&r!==S&&(i=i.split(/[\. ]/),o=i.length-1,w.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(w.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==S)return a=r[n],!1;if(!w.isPlainObject(r[t])||e==o)return r[t]!==S&&(a=r[t]),!1;r=r[t]}})),w.isFunction(a)?n=a.apply(t,e):a!==S&&(n=a),w.isArray(g)?g.push(n):g!==S?g=[g,n]:n!==S&&(g=n),a}},x?(u===S&&i.initialize(),i.invoke(y)):(u!==S&&u.invoke("destroy"),i.initialize())}),g!==S?g:this},w.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(e){},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(e){for(var t=1,n="";t<=e;)n+='<i class="icon"></i>',t++;return n}}}}(jQuery,window,document),function(E,F,O,D){"use strict";F=void 0!==F&&F.Math==Math?F:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),E.fn.search=function(l){var C,w=E(this),S=w.selector||"",k=(new Date).getTime(),T=[],A=l,R="string"==typeof A,P=[].slice.call(arguments,1);return E(this).each(function(){var f,c=E.isPlainObject(l)?E.extend(!0,{},E.fn.search.settings,l):E.extend({},E.fn.search.settings),m=c.className,u=c.metadata,d=c.regExp,a=c.fields,g=c.selector,p=c.error,e=c.namespace,i="."+e,t=e+"-module",h=E(this),v=h.find(g.prompt),n=h.find(g.searchButton),o=h.find(g.results),r=h.find(g.result),b=(h.find(g.category),this),s=h.data(t),y=!1,x=!1;f={initialize:function(){f.verbose("Initializing module"),f.get.settings(),f.determine.searchFields(),f.bind.events(),f.set.type(),f.create.results(),f.instantiate()},instantiate:function(){f.verbose("Storing instance of module",f),s=f,h.data(t,f)},destroy:function(){f.verbose("Destroying instance"),h.off(i).removeData(t)},refresh:function(){f.debug("Refreshing selector cache"),v=h.find(g.prompt),n=h.find(g.searchButton),h.find(g.category),o=h.find(g.results),r=h.find(g.result)},refreshResults:function(){o=h.find(g.results),r=h.find(g.result)},bind:{events:function(){f.verbose("Binding events to search"),c.automatic&&(h.on(f.get.inputEvent()+i,g.prompt,f.event.input),v.attr("autocomplete","off")),h.on("focus"+i,g.prompt,f.event.focus).on("blur"+i,g.prompt,f.event.blur).on("keydown"+i,g.prompt,f.handleKeyboard).on("click"+i,g.searchButton,f.query).on("mousedown"+i,g.results,f.event.result.mousedown).on("mouseup"+i,g.results,f.event.result.mouseup).on("click"+i,g.result,f.event.result.click)}},determine:{searchFields:function(){l&&l.searchFields!==D&&(c.searchFields=l.searchFields)}},event:{input:function(){c.searchDelay?(clearTimeout(f.timer),f.timer=setTimeout(function(){f.is.focused()&&f.query()},c.searchDelay)):f.query()},focus:function(){f.set.focus(),c.searchOnFocus&&f.has.minimumCharacters()&&f.query(function(){f.can.show()&&f.showResults()})},blur:function(e){function t(){f.cancel.query(),f.remove.focus(),f.timer=setTimeout(f.hideResults,c.hideDelay)}var n=O.activeElement===this;n||(x=!1,f.resultsClicked?(f.debug("Determining if user action caused search to close"),h.one("click.close"+i,g.results,function(e){f.is.inMessage(e)||y?v.focus():(y=!1,f.is.animating()||f.is.hidden()||t())})):(f.debug("Input blurred without user action, closing results"),t()))},result:{mousedown:function(){f.resultsClicked=!0},mouseup:function(){f.resultsClicked=!1},click:function(e){f.debug("Search result selected");var t=E(this),n=t.find(g.title).eq(0),i=t.is("a[href]")?t:t.find("a[href]").eq(0),o=i.attr("href")||!1,a=i.attr("target")||!1,r=(n.html(),0<n.length&&n.text()),s=f.get.results(),l=t.data(u.result)||f.get.result(r,s);if(E.isFunction(c.onSelect)&&!1===c.onSelect.call(b,l,s))return f.debug("Custom onSelect callback cancelled default select action"),void(y=!0);f.hideResults(),r&&f.set.value(r),o&&(f.verbose("Opening search link found in result",i),"_blank"==a||e.ctrlKey?F.open(o):F.location.href=o)}}},handleKeyboard:function(e){var t,n=h.find(g.result),i=h.find(g.category),o=n.filter("."+m.active),a=n.index(o),r=n.length,s=0<o.length,l=e.which,c=13,u=38,d=40;if(l==27&&(f.verbose("Escape key pressed, blurring search field"),f.hideResults(),x=!0),f.is.visible())if(l==c){if(f.verbose("Enter key pressed, selecting active result"),0<n.filter("."+m.active).length)return f.event.result.click.call(n.filter("."+m.active),e),e.preventDefault(),!1}else l==u&&s?(f.verbose("Up key pressed, changing active result"),t=a-1<0?a:a-1,i.removeClass(m.active),n.removeClass(m.active).eq(t).addClass(m.active).closest(i).addClass(m.active),e.preventDefault()):l==d&&(f.verbose("Down key pressed, changing active result"),t=r<=a+1?a:a+1,i.removeClass(m.active),n.removeClass(m.active).eq(t).addClass(m.active).closest(i).addClass(m.active),e.preventDefault());else l==c&&(f.verbose("Enter key pressed, executing query"),f.query(),f.set.buttonPressed(),v.one("keyup",f.remove.buttonFocus))},setup:{api:function(t,n){var e={debug:c.debug,on:!1,cache:c.cache,action:"search",urlData:{query:t},onSuccess:function(e){f.parse.response.call(b,e,t),n()},onFailure:function(){f.displayMessage(p.serverError),n()},onAbort:function(e){},onError:f.error};E.extend(!0,e,c.apiSettings),f.verbose("Setting up API request",e),h.api(e)}},can:{useAPI:function(){return E.fn.api!==D},show:function(){return f.is.focused()&&!f.is.visible()&&!f.is.empty()},transition:function(){return c.transition&&E.fn.transition!==D&&h.transition("is supported")}},is:{animating:function(){return o.hasClass(m.animating)},hidden:function(){return o.hasClass(m.hidden)},inMessage:function(e){if(e.target){var t=E(e.target);return E.contains(O.documentElement,e.target)&&0<t.closest(g.message).length}},empty:function(){return""===o.html()},visible:function(){return 0<o.filter(":visible").length},focused:function(){return 0<v.filter(":focus").length}},get:{settings:function(){E.isPlainObject(l)&&l.searchFullText&&(c.fullTextSearch=l.searchFullText,f.error(c.error.oldSearchSyntax,b))},inputEvent:function(){var e=v[0];return e!==D&&e.oninput!==D?"input":e!==D&&e.onpropertychange!==D?"propertychange":"keyup"},value:function(){return v.val()},results:function(){return h.data(u.results)},result:function(n,e){var i=["title","id"],o=!1;return n=n!==D?n:f.get.value(),e=e!==D?e:f.get.results(),"category"===c.type?(f.debug("Finding result that matches",n),E.each(e,function(e,t){if(E.isArray(t.results)&&(o=f.search.object(n,t.results,i)[0]))return!1})):(f.debug("Finding result in results object",n),o=f.search.object(n,e,i)[0]),o||!1}},select:{firstResult:function(){f.verbose("Selecting first result"),r.first().addClass(m.active)}},set:{focus:function(){h.addClass(m.focus)},loading:function(){h.addClass(m.loading)},value:function(e){f.verbose("Setting search input value",e),v.val(e)},type:function(e){e=e||c.type,"category"==c.type&&h.addClass(c.type)},buttonPressed:function(){n.addClass(m.pressed)}},remove:{loading:function(){h.removeClass(m.loading)},focus:function(){h.removeClass(m.focus)},buttonPressed:function(){n.removeClass(m.pressed)}},query:function(e){e=E.isFunction(e)?e:function(){};var t=f.get.value(),n=f.read.cache(t);e=e||function(){},f.has.minimumCharacters()?(n?(f.debug("Reading result from cache",t),f.save.results(n.results),f.addResults(n.html),f.inject.id(n.results),e()):(f.debug("Querying for",t),E.isPlainObject(c.source)||E.isArray(c.source)?(f.search.local(t),e()):f.can.useAPI()?f.search.remote(t,e):(f.error(p.source),e())),c.onSearchQuery.call(b,t)):f.hideResults()},search:{local:function(e){var t,n=f.search.object(e,c.content);f.set.loading(),f.save.results(n),f.debug("Returned full local search results",n),0<c.maxResults&&(f.debug("Using specified max results",n),n=n.slice(0,c.maxResults)),"category"==c.type&&(n=f.create.categoryResults(n)),t=f.generateResults({results:n}),f.remove.loading(),f.addResults(t),f.inject.id(n),f.write.cache(e,{html:t,results:n})},remote:function(e,t){t=E.isFunction(t)?t:function(){},h.api("is loading")&&h.api("abort"),f.setup.api(e,t),h.api("query")},object:function(i,t,e){function o(e,t){var n=-1==E.inArray(t,a),i=-1==E.inArray(t,s),o=-1==E.inArray(t,r);n&&i&&o&&e.push(t)}var a=[],r=[],s=[],n=i.toString().replace(d.escape,"\\$&"),l=new RegExp(d.beginsWith+n,"i");return t=t||c.source,e=e!==D?e:c.searchFields,E.isArray(e)||(e=[e]),t===D||!1===t?(f.error(p.source),[]):(E.each(e,function(e,n){E.each(t,function(e,t){"string"==typeof t[n]&&(-1!==t[n].search(l)?o(a,t):"exact"===c.fullTextSearch&&f.exactSearch(i,t[n])?o(r,t):1==c.fullTextSearch&&f.fuzzySearch(i,t[n])&&o(s,t))})}),E.merge(r,s),E.merge(a,r),a)}},exactSearch:function(e,t){return e=e.toLowerCase(),-1<(t=t.toLowerCase()).indexOf(e)},fuzzySearch:function(e,t){var n=t.length,i=e.length;if("string"!=typeof e)return!1;if(e=e.toLowerCase(),t=t.toLowerCase(),n<i)return!1;if(i===n)return e===t;e:for(var o=0,a=0;o<i;o++){for(var r=e.charCodeAt(o);a<n;)if(t.charCodeAt(a++)===r)continue e;return!1}return!0},parse:{response:function(e,t){var n=f.generateResults(e);f.verbose("Parsing server response",e),e!==D&&t!==D&&e[a.results]!==D&&(f.addResults(n),f.inject.id(e[a.results]),f.write.cache(t,{html:n,results:e[a.results]}),f.save.results(e[a.results]))}},cancel:{query:function(){f.can.useAPI()&&h.api("abort")}},has:{minimumCharacters:function(){return f.get.value().length>=c.minCharacters},results:function(){return 0!==o.length&&""!=o.html()}},clear:{cache:function(e){var t=h.data(u.cache);e?e&&t&&t[e]&&(f.debug("Removing value from cache",e),delete t[e],h.data(u.cache,t)):(f.debug("Clearing cache",e),h.removeData(u.cache))}},read:{cache:function(e){var t=h.data(u.cache);return!!c.cache&&(f.verbose("Checking cache for generated html for query",e),"object"==typeof t&&t[e]!==D&&t[e])}},create:{categoryResults:function(e){var n={};return E.each(e,function(e,t){t.category&&(n[t.category]===D?(f.verbose("Creating new category of results",t.category),n[t.category]={name:t.category,results:[t]}):n[t.category].results.push(t))}),n},id:function(e,t){var n,i=e+1;return t!==D?(n=String.fromCharCode(97+t)+i,f.verbose("Creating category result id",n)):(n=i,f.verbose("Creating result id",n)),n},results:function(){0===o.length&&(o=E("<div />").addClass(m.results).appendTo(h))}},inject:{result:function(e,t,n){f.verbose("Injecting result into results");var i=n!==D?o.children().eq(n).children(g.results).first().children(g.result).eq(t):o.children(g.result).eq(t);f.verbose("Injecting results metadata",i),i.data(u.result,e)},id:function(i){f.debug("Injecting unique ids into results");var o=0,a=0;return"category"===c.type?E.each(i,function(e,i){a=0,E.each(i.results,function(e,t){var n=i.results[e];n.id===D&&(n.id=f.create.id(a,o)),f.inject.result(n,a,o),a++}),o++}):E.each(i,function(e,t){var n=i[e];n.id===D&&(n.id=f.create.id(a)),f.inject.result(n,a),a++}),i}},save:{results:function(e){f.verbose("Saving current search results to metadata",e),h.data(u.results,e)}},write:{cache:function(e,t){var n=h.data(u.cache)!==D?h.data(u.cache):{};c.cache&&(f.verbose("Writing generated html to cache",e,t),n[e]=t,h.data(u.cache,n))}},addResults:function(e){if(E.isFunction(c.onResultsAdd)&&!1===c.onResultsAdd.call(o,e))return f.debug("onResultsAdd callback cancelled default action"),!1;e?(o.html(e),f.refreshResults(),c.selectFirstResult&&f.select.firstResult(),f.showResults()):f.hideResults(function(){o.empty()})},showResults:function(e){e=E.isFunction(e)?e:function(){},x||!f.is.visible()&&f.has.results()&&(f.can.transition()?(f.debug("Showing results with css animations"),o.transition({animation:c.transition+" in",debug:c.debug,verbose:c.verbose,duration:c.duration,onComplete:function(){e()},queue:!0})):(f.debug("Showing results with javascript"),o.stop().fadeIn(c.duration,c.easing)),c.onResultsOpen.call(o))},hideResults:function(e){e=E.isFunction(e)?e:function(){},f.is.visible()&&(f.can.transition()?(f.debug("Hiding results with css animations"),o.transition({animation:c.transition+" out",debug:c.debug,verbose:c.verbose,duration:c.duration,onComplete:function(){e()},queue:!0})):(f.debug("Hiding results with javascript"),o.stop().fadeOut(c.duration,c.easing)),c.onResultsClose.call(o))},generateResults:function(e){f.debug("Generating html from response",e);var t=c.templates[c.type],n=E.isPlainObject(e[a.results])&&!E.isEmptyObject(e[a.results]),i=E.isArray(e[a.results])&&0<e[a.results].length,o="";return n||i?(0<c.maxResults&&(n?"standard"==c.type&&f.error(p.maxResults):e[a.results]=e[a.results].slice(0,c.maxResults)),E.isFunction(t)?o=t(e,a):f.error(p.noTemplate,!1)):c.showNoResults&&(o=f.displayMessage(p.noResults,"empty")),c.onResults.call(b,e),o},displayMessage:function(e,t){return t=t||"standard",f.debug("Displaying message",e,t),f.addResults(c.templates.message(e,t)),c.templates.message(e,t)},setting:function(e,t){if(E.isPlainObject(e))E.extend(!0,c,e);else{if(t===D)return c[e];c[e]=t}},internal:function(e,t){if(E.isPlainObject(e))E.extend(!0,f,e);else{if(t===D)return f[e];f[e]=t}},debug:function(){!c.silent&&c.debug&&(c.performance?f.performance.log(arguments):(f.debug=Function.prototype.bind.call(console.info,console,c.name+":"),f.debug.apply(console,arguments)))},verbose:function(){!c.silent&&c.verbose&&c.debug&&(c.performance?f.performance.log(arguments):(f.verbose=Function.prototype.bind.call(console.info,console,c.name+":"),f.verbose.apply(console,arguments)))},error:function(){c.silent||(f.error=Function.prototype.bind.call(console.error,console,c.name+":"),f.error.apply(console,arguments))},performance:{log:function(e){var t,n;c.performance&&(n=(t=(new Date).getTime())-(k||t),k=t,T.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:b,"Execution Time":n})),clearTimeout(f.performance.timer),f.performance.timer=setTimeout(f.performance.display,500)},display:function(){var e=c.name+":",n=0;k=!1,clearTimeout(f.performance.timer),E.each(T,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",S&&(e+=" '"+S+"'"),1<w.length&&(e+=" ("+w.length+")"),(console.group!==D||console.table!==D)&&0<T.length&&(console.groupCollapsed(e),console.table?console.table(T):E.each(T,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),T=[]}},invoke:function(i,e,t){var o,a,n,r=s;return e=e||P,t=b||t,"string"==typeof i&&r!==D&&(i=i.split(/[\. ]/),o=i.length-1,E.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(E.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==D)return a=r[n],!1;if(!E.isPlainObject(r[t])||e==o)return r[t]!==D&&(a=r[t]),!1;r=r[t]}})),E.isFunction(a)?n=a.apply(t,e):a!==D&&(n=a),E.isArray(C)?C.push(n):C!==D?C=[C,n]:n!==D&&(C=n),a}},R?(s===D&&f.initialize(),f.invoke(A)):(s!==D&&s.invoke("destroy"),f.initialize())}),C!==D?C:this},E.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:"",fullTextSearch:"exact",automatic:!0,hideDelay:0,searchDelay:200,maxResults:7,cache:!0,showNoResults:!0,transition:"scale",duration:200,easing:"easeOutExpo",onSelect:!1,onResultsAdd:!1,onSearchQuery:function(e){},onResults:function(e){},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.",oldSearchSyntax:"searchFullText setting has been renamed fullTextSearch for consistency, please adjust your settings.",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(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};return/[&<>"'`]/.test(e)?e.replace(/[&<>"'`]/g,function(e){return t[e]}):e},message:function(e,t){var n="";return e!==D&&t!==D&&(n+='<div class="message '+t+'">',n+="empty"==t?'<div class="header">No Results</div class="header"><div class="description">'+e+'</div class="description">':' <div class="description">'+e+"</div>",n+="</div>"),n},category:function(e,n){var i="";E.fn.search.settings.templates.escape;return e[n.categoryResults]!==D&&(E.each(e[n.categoryResults],function(e,t){t[n.results]!==D&&0<t.results.length&&(i+='<div class="category">',t[n.categoryName]!==D&&(i+='<div class="name">'+t[n.categoryName]+"</div>"),i+='<div class="results">',E.each(t.results,function(e,t){t[n.url]?i+='<a class="result" href="'+t[n.url]+'">':i+='<a class="result">',t[n.image]!==D&&(i+='<div class="image"> <img src="'+t[n.image]+'"></div>'),i+='<div class="content">',t[n.price]!==D&&(i+='<div class="price">'+t[n.price]+"</div>"),t[n.title]!==D&&(i+='<div class="title">'+t[n.title]+"</div>"),t[n.description]!==D&&(i+='<div class="description">'+t[n.description]+"</div>"),i+="</div>",i+="</a>"}),i+="</div>",i+="</div>")}),e[n.action]&&(i+='<a href="'+e[n.action][n.actionURL]+'" class="action">'+e[n.action][n.actionText]+"</a>"),i)},standard:function(e,n){var i="";return e[n.results]!==D&&(E.each(e[n.results],function(e,t){t[n.url]?i+='<a class="result" href="'+t[n.url]+'">':i+='<a class="result">',t[n.image]!==D&&(i+='<div class="image"> <img src="'+t[n.image]+'"></div>'),i+='<div class="content">',t[n.price]!==D&&(i+='<div class="price">'+t[n.price]+"</div>"),t[n.title]!==D&&(i+='<div class="title">'+t[n.title]+"</div>"),t[n.description]!==D&&(i+='<div class="description">'+t[n.description]+"</div>"),i+="</div>",i+="</a>"}),e[n.action]&&(i+='<a href="'+e[n.action][n.actionURL]+'" class="action">'+e[n.action][n.actionText]+"</a>"),i)}}}}(jQuery,window,document),function(A,e,R,P){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),A.fn.shape=function(v){var b,y=A(this),x=(A("body"),(new Date).getTime()),C=[],w=v,S="string"==typeof w,k=[].slice.call(arguments,1),T=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame||function(e){setTimeout(e,0)};return y.each(function(){var i,o,a,t=y.selector||"",r=A.isPlainObject(v)?A.extend(!0,{},A.fn.shape.settings,v):A.extend({},A.fn.shape.settings),e=r.namespace,s=r.selector,n=r.error,l=r.className,c="."+e,u="module-"+e,d=A(this),f=d.find(s.sides),m=d.find(s.side),g=!1,p=this,h=d.data(u);a={initialize:function(){a.verbose("Initializing module for",p),a.set.defaultSide(),a.instantiate()},instantiate:function(){a.verbose("Storing instance of module",a),h=a,d.data(u,h)},destroy:function(){a.verbose("Destroying previous module for",p),d.removeData(u).off(c)},refresh:function(){a.verbose("Refreshing selector cache for",p),d=A(p),f=A(this).find(s.shape),m=A(this).find(s.side)},repaint:function(){a.verbose("Forcing repaint event");(f[0]||R.createElement("div")).offsetWidth},animate:function(e,t){a.verbose("Animating box with properties",e),t=t||function(e){a.verbose("Executing animation callback"),e!==P&&e.stopPropagation(),a.reset(),a.set.active()},r.beforeChange.call(o[0]),a.get.transitionEvent()?(a.verbose("Starting CSS animation"),d.addClass(l.animating),f.css(e).one(a.get.transitionEvent(),t),a.set.duration(r.duration),T(function(){d.addClass(l.animating),i.addClass(l.hidden)})):t()},queue:function(e){a.debug("Queueing animation of",e),f.one(a.get.transitionEvent(),function(){a.debug("Executing queued animation"),setTimeout(function(){d.shape(e)},0)})},reset:function(){a.verbose("Animating states reset"),d.removeClass(l.animating).attr("style","").removeAttr("style"),f.attr("style","").removeAttr("style"),m.attr("style","").removeAttr("style").removeClass(l.hidden),o.removeClass(l.animating).attr("style","").removeAttr("style")},is:{complete:function(){return m.filter("."+l.active)[0]==o[0]},animating:function(){return d.hasClass(l.animating)}},set:{defaultSide:function(){i=d.find("."+r.className.active),o=0<i.next(s.side).length?i.next(s.side):d.find(s.side).first(),g=!1,a.verbose("Active side set to",i),a.verbose("Next side set to",o)},duration:function(e){e="number"==typeof(e=e||r.duration)?e+"ms":e,a.verbose("Setting animation duration",e),!r.duration&&0!==r.duration||f.add(m).css({"-webkit-transition-duration":e,"-moz-transition-duration":e,"-ms-transition-duration":e,"-o-transition-duration":e,"transition-duration":e})},currentStageSize:function(){var e=d.find("."+r.className.active),t=e.outerWidth(!0),n=e.outerHeight(!0);d.css({width:t,height:n})},stageSize:function(){var e=d.clone().addClass(l.loading),t=e.find("."+r.className.active),n=g?e.find(s.side).eq(g):0<t.next(s.side).length?t.next(s.side):e.find(s.side).first(),i="next"==r.width?n.outerWidth(!0):"initial"==r.width?d.width():r.width,o="next"==r.height?n.outerHeight(!0):"initial"==r.height?d.height():r.height;t.removeClass(l.active),n.addClass(l.active),e.insertAfter(d),e.remove(),"auto"!=r.width&&(d.css("width",i+r.jitter),a.verbose("Specifying width during animation",i)),"auto"!=r.height&&(d.css("height",o+r.jitter),a.verbose("Specifying height during animation",o))},nextSide:function(e){g=e,o=m.filter(e),g=m.index(o),0===o.length&&(a.set.defaultSide(),a.error(n.side)),a.verbose("Next side manually set to",o)},active:function(){a.verbose("Setting new side to active",o),m.removeClass(l.active),o.addClass(l.active),r.onChange.call(o[0]),a.set.defaultSide()}},flip:{up:function(){if(!a.is.complete()||a.is.animating()||r.allowRepeats)if(a.is.animating())a.queue("flip up");else{a.debug("Flipping up",o);var e=a.get.transform.up();a.set.stageSize(),a.stage.above(),a.animate(e)}else a.debug("Side already visible",o)},down:function(){if(!a.is.complete()||a.is.animating()||r.allowRepeats)if(a.is.animating())a.queue("flip down");else{a.debug("Flipping down",o);var e=a.get.transform.down();a.set.stageSize(),a.stage.below(),a.animate(e)}else a.debug("Side already visible",o)},left:function(){if(!a.is.complete()||a.is.animating()||r.allowRepeats)if(a.is.animating())a.queue("flip left");else{a.debug("Flipping left",o);var e=a.get.transform.left();a.set.stageSize(),a.stage.left(),a.animate(e)}else a.debug("Side already visible",o)},right:function(){if(!a.is.complete()||a.is.animating()||r.allowRepeats)if(a.is.animating())a.queue("flip right");else{a.debug("Flipping right",o);var e=a.get.transform.right();a.set.stageSize(),a.stage.right(),a.animate(e)}else a.debug("Side already visible",o)},over:function(){!a.is.complete()||a.is.animating()||r.allowRepeats?a.is.animating()?a.queue("flip over"):(a.debug("Flipping over",o),a.set.stageSize(),a.stage.behind(),a.animate(a.get.transform.over())):a.debug("Side already visible",o)},back:function(){!a.is.complete()||a.is.animating()||r.allowRepeats?a.is.animating()?a.queue("flip back"):(a.debug("Flipping back",o),a.set.stageSize(),a.stage.behind(),a.animate(a.get.transform.back())):a.debug("Side already visible",o)}},get:{transform:{up:function(){return{transform:"translateY("+-(i.outerHeight(!0)-o.outerHeight(!0))/2+"px) translateZ("+-i.outerHeight(!0)/2+"px) rotateX(-90deg)"}},down:function(){return{transform:"translateY("+-(i.outerHeight(!0)-o.outerHeight(!0))/2+"px) translateZ("+-i.outerHeight(!0)/2+"px) rotateX(90deg)"}},left:function(){return{transform:"translateX("+-(i.outerWidth(!0)-o.outerWidth(!0))/2+"px) translateZ("+-i.outerWidth(!0)/2+"px) rotateY(90deg)"}},right:function(){return{transform:"translateX("+-(i.outerWidth(!0)-o.outerWidth(!0))/2+"px) translateZ("+-i.outerWidth(!0)/2+"px) rotateY(-90deg)"}},over:function(){return{transform:"translateX("+-(i.outerWidth(!0)-o.outerWidth(!0))/2+"px) rotateY(180deg)"}},back:function(){return{transform:"translateX("+-(i.outerWidth(!0)-o.outerWidth(!0))/2+"px) rotateY(-180deg)"}}},transitionEvent:function(){var e,t=R.createElement("element"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(t.style[e]!==P)return n[e]},nextSide:function(){return 0<i.next(s.side).length?i.next(s.side):d.find(s.side).first()}},stage:{above:function(){var e={origin:(i.outerHeight(!0)-o.outerHeight(!0))/2,depth:{active:o.outerHeight(!0)/2,next:i.outerHeight(!0)/2}};a.verbose("Setting the initial animation position as above",o,e),f.css({transform:"translateZ(-"+e.depth.active+"px)"}),i.css({transform:"rotateY(0deg) translateZ("+e.depth.active+"px)"}),o.addClass(l.animating).css({top:e.origin+"px",transform:"rotateX(90deg) translateZ("+e.depth.next+"px)"})},below:function(){var e={origin:(i.outerHeight(!0)-o.outerHeight(!0))/2,depth:{active:o.outerHeight(!0)/2,next:i.outerHeight(!0)/2}};a.verbose("Setting the initial animation position as below",o,e),f.css({transform:"translateZ(-"+e.depth.active+"px)"}),i.css({transform:"rotateY(0deg) translateZ("+e.depth.active+"px)"}),o.addClass(l.animating).css({top:e.origin+"px",transform:"rotateX(-90deg) translateZ("+e.depth.next+"px)"})},left:function(){var e=i.outerWidth(!0),t=o.outerWidth(!0),n={origin:(e-t)/2,depth:{active:t/2,next:e/2}};a.verbose("Setting the initial animation position as left",o,n),f.css({transform:"translateZ(-"+n.depth.active+"px)"}),i.css({transform:"rotateY(0deg) translateZ("+n.depth.active+"px)"}),o.addClass(l.animating).css({left:n.origin+"px",transform:"rotateY(-90deg) translateZ("+n.depth.next+"px)"})},right:function(){var e=i.outerWidth(!0),t=o.outerWidth(!0),n={origin:(e-t)/2,depth:{active:t/2,next:e/2}};a.verbose("Setting the initial animation position as left",o,n),f.css({transform:"translateZ(-"+n.depth.active+"px)"}),i.css({transform:"rotateY(0deg) translateZ("+n.depth.active+"px)"}),o.addClass(l.animating).css({left:n.origin+"px",transform:"rotateY(90deg) translateZ("+n.depth.next+"px)"})},behind:function(){var e=i.outerWidth(!0),t=o.outerWidth(!0),n={origin:(e-t)/2,depth:{active:t/2,next:e/2}};a.verbose("Setting the initial animation position as behind",o,n),i.css({transform:"rotateY(0deg)"}),o.addClass(l.animating).css({left:n.origin+"px",transform:"rotateY(-180deg)"})}},setting:function(e,t){if(a.debug("Changing setting",e,t),A.isPlainObject(e))A.extend(!0,r,e);else{if(t===P)return r[e];A.isPlainObject(r[e])?A.extend(!0,r[e],t):r[e]=t}},internal:function(e,t){if(A.isPlainObject(e))A.extend(!0,a,e);else{if(t===P)return a[e];a[e]=t}},debug:function(){!r.silent&&r.debug&&(r.performance?a.performance.log(arguments):(a.debug=Function.prototype.bind.call(console.info,console,r.name+":"),a.debug.apply(console,arguments)))},verbose:function(){!r.silent&&r.verbose&&r.debug&&(r.performance?a.performance.log(arguments):(a.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),a.verbose.apply(console,arguments)))},error:function(){r.silent||(a.error=Function.prototype.bind.call(console.error,console,r.name+":"),a.error.apply(console,arguments))},performance:{log:function(e){var t,n;r.performance&&(n=(t=(new Date).getTime())-(x||t),x=t,C.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:p,"Execution Time":n})),clearTimeout(a.performance.timer),a.performance.timer=setTimeout(a.performance.display,500)},display:function(){var e=r.name+":",n=0;x=!1,clearTimeout(a.performance.timer),A.each(C,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",t&&(e+=" '"+t+"'"),1<y.length&&(e+=" ("+y.length+")"),(console.group!==P||console.table!==P)&&0<C.length&&(console.groupCollapsed(e),console.table?console.table(C):A.each(C,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),C=[]}},invoke:function(i,e,t){var o,a,n,r=h;return e=e||k,t=p||t,"string"==typeof i&&r!==P&&(i=i.split(/[\. ]/),o=i.length-1,A.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(A.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==P)return a=r[n],!1;if(!A.isPlainObject(r[t])||e==o)return r[t]!==P&&(a=r[t]),!1;r=r[t]}})),A.isFunction(a)?n=a.apply(t,e):a!==P&&(n=a),A.isArray(b)?b.push(n):b!==P?b=[b,n]:n!==P&&(b=n),a}},S?(h===P&&a.initialize(),a.invoke(w)):(h!==P&&h.invoke("destroy"),a.initialize())}),b!==P?b:this},A.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(q,j,z,I){"use strict";j=void 0!==j&&j.Math==Math?j:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),q.fn.sidebar=function(x){var C,e=q(this),w=q(j),S=q(z),k=q("html"),T=q("head"),A=e.selector||"",R=(new Date).getTime(),P=[],E=x,F="string"==typeof E,O=[].slice.call(arguments,1),D=j.requestAnimationFrame||j.mozRequestAnimationFrame||j.webkitRequestAnimationFrame||j.msRequestAnimationFrame||function(e){setTimeout(e,0)};return e.each(function(){var r,s,e,t,l,c,u=q.isPlainObject(x)?q.extend(!0,{},q.fn.sidebar.settings,x):q.extend({},q.fn.sidebar.settings),n=u.selector,a=u.className,i=u.namespace,o=u.regExp,d=u.error,f="."+i,m="module-"+i,g=q(this),p=q(u.context),h=g.children(n.sidebar),v=(p.children(n.fixed),p.children(n.pusher)),b=this,y=g.data(m);c={initialize:function(){c.debug("Initializing sidebar",x),c.create.id(),l=c.get.transitionEvent(),u.delaySetup?D(c.setup.layout):c.setup.layout(),D(function(){c.setup.cache()}),c.instantiate()},instantiate:function(){c.verbose("Storing instance of module",c),y=c,g.data(m,c)},create:{id:function(){e=(Math.random().toString(16)+"000000000").substr(2,8),s="."+e,c.verbose("Creating unique id for element",e)}},destroy:function(){c.verbose("Destroying previous module for",g),g.off(f).removeData(m),c.is.ios()&&c.remove.ios(),p.off(s),w.off(s),S.off(s)},event:{clickaway:function(e){var t=0<v.find(e.target).length||v.is(e.target),n=p.is(e.target);t&&(c.verbose("User clicked on dimmed page"),c.hide()),n&&(c.verbose("User clicked on dimmable context (scaled out page)"),c.hide())},touch:function(e){},containScroll:function(e){b.scrollTop<=0&&(b.scrollTop=1),b.scrollTop+b.offsetHeight>=b.scrollHeight&&(b.scrollTop=b.scrollHeight-b.offsetHeight-1)},scroll:function(e){0===q(e.target).closest(n.sidebar).length&&e.preventDefault()}},bind:{clickaway:function(){c.verbose("Adding clickaway events to context",p),u.closable&&p.on("click"+s,c.event.clickaway).on("touchend"+s,c.event.clickaway)},scrollLock:function(){u.scrollLock&&(c.debug("Disabling page scroll"),w.on("DOMMouseScroll"+s,c.event.scroll)),c.verbose("Adding events to contain sidebar scroll"),S.on("touchmove"+s,c.event.touch),g.on("scroll"+f,c.event.containScroll)}},unbind:{clickaway:function(){c.verbose("Removing clickaway events from context",p),p.off(s)},scrollLock:function(){c.verbose("Removing scroll lock from page"),S.off(s),w.off(s),g.off("scroll"+f)}},add:{inlineCSS:function(){var e,t=c.cache.width||g.outerWidth(),n=c.cache.height||g.outerHeight(),i=c.is.rtl(),o=c.get.direction(),a={left:t,right:-t,top:n,bottom:-n};i&&(c.verbose("RTL detected, flipping widths"),a.left=-t,a.right=t),e="<style>","left"===o||"right"===o?(c.debug("Adding CSS rules for animation distance",t),e+=" .ui.visible."+o+".sidebar ~ .fixed, .ui.visible."+o+".sidebar ~ .pusher {   -webkit-transform: translate3d("+a[o]+"px, 0, 0);           transform: translate3d("+a[o]+"px, 0, 0); }"):"top"!==o&&"bottom"!=o||(e+=" .ui.visible."+o+".sidebar ~ .fixed, .ui.visible."+o+".sidebar ~ .pusher {   -webkit-transform: translate3d(0, "+a[o]+"px, 0);           transform: translate3d(0, "+a[o]+"px, 0); }"),c.is.ie()&&("left"===o||"right"===o?(c.debug("Adding CSS rules for animation distance",t),e+=" body.pushable > .ui.visible."+o+".sidebar ~ .pusher:after {   -webkit-transform: translate3d("+a[o]+"px, 0, 0);           transform: translate3d("+a[o]+"px, 0, 0); }"):"top"!==o&&"bottom"!=o||(e+=" body.pushable > .ui.visible."+o+".sidebar ~ .pusher:after {   -webkit-transform: translate3d(0, "+a[o]+"px, 0);           transform: translate3d(0, "+a[o]+"px, 0); }"),e+=" 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=q(e+="</style>").appendTo(T),c.debug("Adding sizing css to head",r)}},refresh:function(){c.verbose("Refreshing selector cache"),p=q(u.context),h=p.children(n.sidebar),v=p.children(n.pusher),p.children(n.fixed),c.clear.cache()},refreshSidebars:function(){c.verbose("Refreshing other sidebars"),h=p.children(n.sidebar)},repaint:function(){c.verbose("Forcing repaint event"),b.style.display="none";b.offsetHeight;b.scrollTop=b.scrollTop,b.style.display=""},setup:{cache:function(){c.cache={width:g.outerWidth(),height:g.outerHeight(),rtl:"rtl"==g.css("direction")}},layout:function(){0===p.children(n.pusher).length&&(c.debug("Adding wrapper element for sidebar"),c.error(d.pusher),v=q('<div class="pusher" />'),p.children().not(n.omitted).not(h).wrapAll(v),c.refresh()),0!==g.nextAll(n.pusher).length&&g.nextAll(n.pusher)[0]===v[0]||(c.debug("Moved sidebar to correct parent element"),c.error(d.movedSidebar,b),g.detach().prependTo(p),c.refresh()),c.clear.cache(),c.set.pushable(),c.set.direction()}},attachEvents:function(e,t){var n=q(e);t=q.isFunction(c[t])?c[t]:c.toggle,0<n.length?(c.debug("Attaching sidebar events to element",e,t),n.on("click"+f,t)):c.error(d.notFound,e)},show:function(e){if(e=q.isFunction(e)?e:function(){},c.is.hidden()){if(c.refreshSidebars(),u.overlay&&(c.error(d.overlay),u.transition="overlay"),c.refresh(),c.othersActive())if(c.debug("Other sidebars currently visible"),u.exclusive){if("overlay"!=u.transition)return void c.hideOthers(c.show);c.hideOthers()}else u.transition="overlay";c.pushPage(function(){e.call(b),u.onShow.call(b)}),u.onChange.call(b),u.onVisible.call(b)}else c.debug("Sidebar is already visible")},hide:function(e){e=q.isFunction(e)?e:function(){},(c.is.visible()||c.is.animating())&&(c.debug("Hiding sidebar",e),c.refreshSidebars(),c.pullPage(function(){e.call(b),u.onHidden.call(b)}),u.onChange.call(b),u.onHide.call(b))},othersAnimating:function(){return 0<h.not(g).filter("."+a.animating).length},othersVisible:function(){return 0<h.not(g).filter("."+a.visible).length},othersActive:function(){return c.othersVisible()||c.othersAnimating()},hideOthers:function(e){var t=h.not(g).filter("."+a.visible),n=t.length,i=0;e=e||function(){},t.sidebar("hide",function(){++i==n&&e()})},toggle:function(){c.verbose("Determining toggled direction"),c.is.hidden()?c.show():c.hide()},pushPage:function(t){var e,n,i,o=c.get.transition(),a="overlay"===o||c.othersActive()?g:v;t=q.isFunction(t)?t:function(){},"scale down"==u.transition&&c.scrollToTop(),c.set.transition(o),c.repaint(),e=function(){c.bind.clickaway(),c.add.inlineCSS(),c.set.animating(),c.set.visible()},n=function(){c.set.dimmed()},i=function(e){e.target==a[0]&&(a.off(l+s,i),c.remove.animating(),c.bind.scrollLock(),t.call(b))},a.off(l+s),a.on(l+s,i),D(e),u.dimPage&&!c.othersVisible()&&D(n)},pullPage:function(t){var e,n,i=c.get.transition(),o="overlay"==i||c.othersActive()?g:v;t=q.isFunction(t)?t:function(){},c.verbose("Removing context push state",c.get.direction()),c.unbind.clickaway(),c.unbind.scrollLock(),e=function(){c.set.transition(i),c.set.animating(),c.remove.visible(),u.dimPage&&!c.othersVisible()&&v.removeClass(a.dimmed)},n=function(e){e.target==o[0]&&(o.off(l+s,n),c.remove.animating(),c.remove.transition(),c.remove.inlineCSS(),("scale down"==i||u.returnScroll&&c.is.mobile())&&c.scrollBack(),t.call(b))},o.off(l+s),o.on(l+s,n),D(e)},scrollToTop:function(){c.verbose("Scrolling to top of page to avoid animation issues"),t=q(j).scrollTop(),g.scrollTop(0),j.scrollTo(0,0)},scrollBack:function(){c.verbose("Scrolling back to original page position"),j.scrollTo(0,t)},clear:{cache:function(){c.verbose("Clearing cached dimensions"),c.cache={}}},set:{ios:function(){k.addClass(a.ios)},pushed:function(){p.addClass(a.pushed)},pushable:function(){p.addClass(a.pushable)},dimmed:function(){v.addClass(a.dimmed)},active:function(){g.addClass(a.active)},animating:function(){g.addClass(a.animating)},transition:function(e){e=e||c.get.transition(),g.addClass(e)},direction:function(e){e=e||c.get.direction(),g.addClass(a[e])},visible:function(){g.addClass(a.visible)},overlay:function(){g.addClass(a.overlay)}},remove:{inlineCSS:function(){c.debug("Removing inline css styles",r),r&&0<r.length&&r.remove()},ios:function(){k.removeClass(a.ios)},pushed:function(){p.removeClass(a.pushed)},pushable:function(){p.removeClass(a.pushable)},active:function(){g.removeClass(a.active)},animating:function(){g.removeClass(a.animating)},transition:function(e){e=e||c.get.transition(),g.removeClass(e)},direction:function(e){e=e||c.get.direction(),g.removeClass(a[e])},visible:function(){g.removeClass(a.visible)},overlay:function(){g.removeClass(a.overlay)}},get:{direction:function(){return g.hasClass(a.top)?a.top:g.hasClass(a.right)?a.right:g.hasClass(a.bottom)?a.bottom:a.left},transition:function(){var e,t=c.get.direction();return e=c.is.mobile()?"auto"==u.mobileTransition?u.defaultTransition.mobile[t]:u.mobileTransition:"auto"==u.transition?u.defaultTransition.computer[t]:u.transition,c.verbose("Determined transition",e),e},transitionEvent:function(){var e,t=z.createElement("element"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(t.style[e]!==I)return n[e]}},is:{ie:function(){return!j.ActiveXObject&&"ActiveXObject"in j||"ActiveXObject"in j},ios:function(){var e=navigator.userAgent,t=e.match(o.ios),n=e.match(o.mobileChrome);return!(!t||n)&&(c.verbose("Browser was found to be iOS",e),!0)},mobile:function(){var e=navigator.userAgent;return e.match(o.mobile)?(c.verbose("Browser was found to be mobile",e),!0):(c.verbose("Browser is not mobile, using regular transition",e),!1)},hidden:function(){return!c.is.visible()},visible:function(){return g.hasClass(a.visible)},open:function(){return c.is.visible()},closed:function(){return c.is.hidden()},vertical:function(){return g.hasClass(a.top)},animating:function(){return p.hasClass(a.animating)},rtl:function(){return c.cache.rtl===I&&(c.cache.rtl="rtl"==g.css("direction")),c.cache.rtl}},setting:function(e,t){if(c.debug("Changing setting",e,t),q.isPlainObject(e))q.extend(!0,u,e);else{if(t===I)return u[e];q.isPlainObject(u[e])?q.extend(!0,u[e],t):u[e]=t}},internal:function(e,t){if(q.isPlainObject(e))q.extend(!0,c,e);else{if(t===I)return c[e];c[e]=t}},debug:function(){!u.silent&&u.debug&&(u.performance?c.performance.log(arguments):(c.debug=Function.prototype.bind.call(console.info,console,u.name+":"),c.debug.apply(console,arguments)))},verbose:function(){!u.silent&&u.verbose&&u.debug&&(u.performance?c.performance.log(arguments):(c.verbose=Function.prototype.bind.call(console.info,console,u.name+":"),c.verbose.apply(console,arguments)))},error:function(){u.silent||(c.error=Function.prototype.bind.call(console.error,console,u.name+":"),c.error.apply(console,arguments))},performance:{log:function(e){var t,n;u.performance&&(n=(t=(new Date).getTime())-(R||t),R=t,P.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:b,"Execution Time":n})),clearTimeout(c.performance.timer),c.performance.timer=setTimeout(c.performance.display,500)},display:function(){var e=u.name+":",n=0;R=!1,clearTimeout(c.performance.timer),q.each(P,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",A&&(e+=" '"+A+"'"),(console.group!==I||console.table!==I)&&0<P.length&&(console.groupCollapsed(e),console.table?console.table(P):q.each(P,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),P=[]}},invoke:function(i,e,t){var o,a,n,r=y;return e=e||O,t=b||t,"string"==typeof i&&r!==I&&(i=i.split(/[\. ]/),o=i.length-1,q.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(q.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==I)return a=r[n],!1;if(!q.isPlainObject(r[t])||e==o)return r[t]!==I?a=r[t]:c.error(d.method,i),!1;r=r[t]}})),q.isFunction(a)?n=a.apply(t,e):a!==I&&(n=a),q.isArray(C)?C.push(n):C!==I?C=[C,n]:n!==I&&(C=n),a}},F?(y===I&&c.initialize(),c.invoke(E)):(y!==I&&c.invoke("destroy"),c.initialize())}),C!==I?C:this},q.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(T,A,R,P){"use strict";A=void 0!==A&&A.Math==Math?A:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),T.fn.sticky=function(v){var b,e=T(this),y=e.selector||"",x=(new Date).getTime(),C=[],w=v,S="string"==typeof w,k=[].slice.call(arguments,1);return e.each(function(){var i,o,e,t,d,f=T.isPlainObject(v)?T.extend(!0,{},T.fn.sticky.settings,v):T.extend({},T.fn.sticky.settings),n=f.className,a=f.namespace,r=f.error,s="."+a,l="module-"+a,c=T(this),u=T(A),m=T(f.scrollContext),g=(c.selector,c.data(l)),p=A.requestAnimationFrame||A.mozRequestAnimationFrame||A.webkitRequestAnimationFrame||A.msRequestAnimationFrame||function(e){setTimeout(e,0)},h=this;d={initialize:function(){d.determineContainer(),d.determineContext(),d.verbose("Initializing sticky",f,i),d.save.positions(),d.checkErrors(),d.bind.events(),f.observeChanges&&d.observeChanges(),d.instantiate()},instantiate:function(){d.verbose("Storing instance of module",d),g=d,c.data(l,d)},destroy:function(){d.verbose("Destroying previous instance"),d.reset(),e&&e.disconnect(),t&&t.disconnect(),u.off("load"+s,d.event.load).off("resize"+s,d.event.resize),m.off("scrollchange"+s,d.event.scrollchange),c.removeData(l)},observeChanges:function(){"MutationObserver"in A&&(e=new MutationObserver(d.event.documentChanged),t=new MutationObserver(d.event.changed),e.observe(R,{childList:!0,subtree:!0}),t.observe(h,{childList:!0,subtree:!0}),t.observe(o[0],{childList:!0,subtree:!0}),d.debug("Setting up mutation observer",t))},determineContainer:function(){i=f.container?T(f.container):c.offsetParent()},determineContext:function(){0!==(o=f.context?T(f.context):i).length||d.error(r.invalidContext,f.context,c)},checkErrors:function(){if(d.is.hidden()&&d.error(r.visible,c),d.cache.element.height>d.cache.context.height)return d.reset(),void d.error(r.elementSize,c)},bind:{events:function(){u.on("load"+s,d.event.load).on("resize"+s,d.event.resize),m.off("scroll"+s).on("scroll"+s,d.event.scroll).on("scrollchange"+s,d.event.scrollchange)}},event:{changed:function(e){clearTimeout(d.timer),d.timer=setTimeout(function(){d.verbose("DOM tree modified, updating sticky menu",e),d.refresh()},100)},documentChanged:function(e){[].forEach.call(e,function(e){e.removedNodes&&[].forEach.call(e.removedNodes,function(e){(e==h||0<T(e).find(h).length)&&(d.debug("Element removed from DOM, tearing down events"),d.destroy())})})},load:function(){d.verbose("Page contents finished loading"),p(d.refresh)},resize:function(){d.verbose("Window resized"),p(d.refresh)},scroll:function(){p(function(){m.triggerHandler("scrollchange"+s,m.scrollTop())})},scrollchange:function(e,t){d.stick(t),f.onScroll.call(h)}},refresh:function(e){d.reset(),f.context||d.determineContext(),e&&d.determineContainer(),d.save.positions(),d.stick(),f.onReposition.call(h)},supports:{sticky:function(){var e=T("<div/>");e[0];return e.addClass(n.supported),e.css("position").match("sticky")}},save:{lastScroll:function(e){d.lastScroll=e},elementScroll:function(e){d.elementScroll=e},positions:function(){var e={height:m.height()},t={margin:{top:parseInt(c.css("margin-top"),10),bottom:parseInt(c.css("margin-bottom"),10)},offset:c.offset(),width:c.outerWidth(),height:c.outerHeight()},n={offset:o.offset(),height:o.outerHeight()};i.outerHeight();d.is.standardScroll()||(d.debug("Non-standard scroll. Removing scroll offset from element offset"),e.top=m.scrollTop(),e.left=m.scrollLeft(),t.offset.top+=e.top,n.offset.top+=e.top,t.offset.left+=e.left,n.offset.left+=e.left),d.cache={fits:t.height+f.offset<=e.height,sameHeight:t.height==n.height,scrollContext:{height:e.height},element:{margin:t.margin,top:t.offset.top-t.margin.top,left:t.offset.left,width:t.width,height:t.height,bottom:t.offset.top+t.height},context:{top:n.offset.top,height:n.height,bottom:n.offset.top+n.height}},d.set.containerSize(),d.stick(),d.debug("Caching element positions",d.cache)}},get:{direction:function(e){var t="down";return e=e||m.scrollTop(),d.lastScroll!==P&&(d.lastScroll<e?t="down":d.lastScroll>e&&(t="up")),t},scrollChange:function(e){return e=e||m.scrollTop(),d.lastScroll?e-d.lastScroll:0},currentElementScroll:function(){return d.elementScroll?d.elementScroll:d.is.top()?Math.abs(parseInt(c.css("top"),10))||0:Math.abs(parseInt(c.css("bottom"),10))||0},elementScroll:function(e){e=e||m.scrollTop();var t=d.cache.element,n=d.cache.scrollContext,i=d.get.scrollChange(e),o=t.height-n.height+f.offset,a=d.get.currentElementScroll(),r=a+i;return a=d.cache.fits||r<0?0:o<r?o:r}},remove:{lastScroll:function(){delete d.lastScroll},elementScroll:function(e){delete d.elementScroll},minimumSize:function(){i.css("min-height","")},offset:function(){c.css("margin-top","")}},set:{offset:function(){d.verbose("Setting offset on element",f.offset),c.css("margin-top",f.offset)},containerSize:function(){var e=i.get(0).tagName;"HTML"===e||"body"==e?d.determineContainer():Math.abs(i.outerHeight()-d.cache.context.height)>f.jitter&&(d.debug("Context has padding, specifying exact height for container",d.cache.context.height),i.css({height:d.cache.context.height}))},minimumSize:function(){var e=d.cache.element;i.css("min-height",e.height)},scroll:function(e){d.debug("Setting scroll on element",e),d.elementScroll!=e&&(d.is.top()&&c.css("bottom","").css("top",-e),d.is.bottom()&&c.css("top","").css("bottom",e))},size:function(){0!==d.cache.element.height&&0!==d.cache.element.width&&(h.style.setProperty("width",d.cache.element.width+"px","important"),h.style.setProperty("height",d.cache.element.height+"px","important"))}},is:{standardScroll:function(){return m[0]==A},top:function(){return c.hasClass(n.top)},bottom:function(){return c.hasClass(n.bottom)},initialPosition:function(){return!d.is.fixed()&&!d.is.bound()},hidden:function(){return!c.is(":visible")},bound:function(){return c.hasClass(n.bound)},fixed:function(){return c.hasClass(n.fixed)}},stick:function(e){var t=e||m.scrollTop(),n=d.cache,i=n.fits,o=n.sameHeight,a=n.element,r=n.scrollContext,s=n.context,l=d.is.bottom()&&f.pushing?f.bottomOffset:f.offset,c=(e={top:t+l,bottom:t+l+r.height},d.get.direction(e.top),i?0:d.get.elementScroll(e.top)),u=!i;0===a.height||o||(d.is.initialPosition()?e.top>=s.bottom?(d.debug("Initial element position is bottom of container"),d.bindBottom()):e.top>a.top&&(a.height+e.top-c>=s.bottom?(d.debug("Initial element position is bottom of container"),d.bindBottom()):(d.debug("Initial element position is fixed"),d.fixTop())):d.is.fixed()?d.is.top()?e.top<=a.top?(d.debug("Fixed element reached top of container"),d.setInitialPosition()):a.height+e.top-c>=s.bottom?(d.debug("Fixed element reached bottom of container"),d.bindBottom()):u&&(d.set.scroll(c),d.save.lastScroll(e.top),d.save.elementScroll(c)):d.is.bottom()&&(e.bottom-a.height<=a.top?(d.debug("Bottom fixed rail has reached top of container"),d.setInitialPosition()):e.bottom>=s.bottom?(d.debug("Bottom fixed rail has reached bottom of container"),d.bindBottom()):u&&(d.set.scroll(c),d.save.lastScroll(e.top),d.save.elementScroll(c))):d.is.bottom()&&(e.top<=a.top?(d.debug("Jumped from bottom fixed to top fixed, most likely used home/end button"),d.setInitialPosition()):f.pushing?d.is.bound()&&e.bottom<=s.bottom&&(d.debug("Fixing bottom attached element to bottom of browser."),d.fixBottom()):d.is.bound()&&e.top<=s.bottom-a.height&&(d.debug("Fixing bottom attached element to top of browser."),d.fixTop())))},bindTop:function(){d.debug("Binding element to top of parent container"),d.remove.offset(),c.css({left:"",top:"",marginBottom:""}).removeClass(n.fixed).removeClass(n.bottom).addClass(n.bound).addClass(n.top),f.onTop.call(h),f.onUnstick.call(h)},bindBottom:function(){d.debug("Binding element to bottom of parent container"),d.remove.offset(),c.css({left:"",top:""}).removeClass(n.fixed).removeClass(n.top).addClass(n.bound).addClass(n.bottom),f.onBottom.call(h),f.onUnstick.call(h)},setInitialPosition:function(){d.debug("Returning to initial position"),d.unfix(),d.unbind()},fixTop:function(){d.debug("Fixing element to top of page"),f.setSize&&d.set.size(),d.set.minimumSize(),d.set.offset(),c.css({left:d.cache.element.left,bottom:"",marginBottom:""}).removeClass(n.bound).removeClass(n.bottom).addClass(n.fixed).addClass(n.top),f.onStick.call(h)},fixBottom:function(){d.debug("Sticking element to bottom of page"),f.setSize&&d.set.size(),d.set.minimumSize(),d.set.offset(),c.css({left:d.cache.element.left,bottom:"",marginBottom:""}).removeClass(n.bound).removeClass(n.top).addClass(n.fixed).addClass(n.bottom),f.onStick.call(h)},unbind:function(){d.is.bound()&&(d.debug("Removing container bound position on element"),d.remove.offset(),c.removeClass(n.bound).removeClass(n.top).removeClass(n.bottom))},unfix:function(){d.is.fixed()&&(d.debug("Removing fixed position on element"),d.remove.minimumSize(),d.remove.offset(),c.removeClass(n.fixed).removeClass(n.top).removeClass(n.bottom),f.onUnstick.call(h))},reset:function(){d.debug("Resetting elements position"),d.unbind(),d.unfix(),d.resetCSS(),d.remove.offset(),d.remove.lastScroll()},resetCSS:function(){c.css({width:"",height:""}),i.css({height:""})},setting:function(e,t){if(T.isPlainObject(e))T.extend(!0,f,e);else{if(t===P)return f[e];f[e]=t}},internal:function(e,t){if(T.isPlainObject(e))T.extend(!0,d,e);else{if(t===P)return d[e];d[e]=t}},debug:function(){!f.silent&&f.debug&&(f.performance?d.performance.log(arguments):(d.debug=Function.prototype.bind.call(console.info,console,f.name+":"),d.debug.apply(console,arguments)))},verbose:function(){!f.silent&&f.verbose&&f.debug&&(f.performance?d.performance.log(arguments):(d.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),d.verbose.apply(console,arguments)))},error:function(){f.silent||(d.error=Function.prototype.bind.call(console.error,console,f.name+":"),d.error.apply(console,arguments))},performance:{log:function(e){var t,n;f.performance&&(n=(t=(new Date).getTime())-(x||t),x=t,C.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:h,"Execution Time":n})),clearTimeout(d.performance.timer),d.performance.timer=setTimeout(d.performance.display,0)},display:function(){var e=f.name+":",n=0;x=!1,clearTimeout(d.performance.timer),T.each(C,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",y&&(e+=" '"+y+"'"),(console.group!==P||console.table!==P)&&0<C.length&&(console.groupCollapsed(e),console.table?console.table(C):T.each(C,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),C=[]}},invoke:function(i,e,t){var o,a,n,r=g;return e=e||k,t=h||t,"string"==typeof i&&r!==P&&(i=i.split(/[\. ]/),o=i.length-1,T.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(T.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==P)return a=r[n],!1;if(!T.isPlainObject(r[t])||e==o)return r[t]!==P&&(a=r[t]),!1;r=r[t]}})),T.isFunction(a)?n=a.apply(t,e):a!==P&&(n=a),T.isArray(b)?b.push(n):b!==P?b=[b,n]:n!==P&&(b=n),a}},S?(g===P&&d.initialize(),d.invoke(w)):(g!==P&&g.invoke("destroy"),d.initialize())}),b!==P?b:this},T.fn.sticky.settings={name:"Sticky",namespace:"sticky",silent:!1,debug:!1,verbose:!0,performance:!0,pushing:!1,context:!1,container:!1,scrollContext:A,offset:0,bottomOffset:0,jitter:5,setSize:!0,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(E,F,O,D){"use strict";F=void 0!==F&&F.Math==Math?F:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),E.fn.tab=function(r){var c,u=E.isFunction(this)?E(F):E(this),d=u.selector||"",f=(new Date).getTime(),m=[],g=r,A="string"==typeof g,R=[].slice.call(arguments,1),P=!1;return u.each(function(){var p,a,h,v,b,y,x=E.isPlainObject(r)?E.extend(!0,{},E.fn.tab.settings,r):E.extend({},E.fn.tab.settings),C=x.className,w=x.metadata,t=x.selector,S=x.error,e="."+x.namespace,n="module-"+x.namespace,k=E(this),i={},T=!0,o=0,s=this,l=k.data(n);b={initialize:function(){b.debug("Initializing tab menu item",k),b.fix.callbacks(),b.determineTabs(),b.debug("Determining tabs",x.context,a),x.auto&&b.set.auto(),b.bind.events(),x.history&&!P&&(b.initializeHistory(),P=!0),b.instantiate()},instantiate:function(){b.verbose("Storing instance of module",b),l=b,k.data(n,b)},destroy:function(){b.debug("Destroying tabs",k),k.removeData(n).off(e)},bind:{events:function(){E.isWindow(s)||(b.debug("Attaching tab activation events to element",k),k.on("click"+e,b.event.click))}},determineTabs:function(){var e;"parent"===x.context?(0<k.closest(t.ui).length?(e=k.closest(t.ui),b.verbose("Using closest UI element as parent",e)):e=k,p=e.parent(),b.verbose("Determined parent element for creating context",p)):x.context?(p=E(x.context),b.verbose("Using selector for tab context",x.context,p)):p=E("body"),x.childrenOnly?(a=p.children(t.tabs),b.debug("Searching tab context children for tabs",p,a)):(a=p.find(t.tabs),b.debug("Searching tab context for tabs",p,a))},fix:{callbacks:function(){E.isPlainObject(r)&&(r.onTabLoad||r.onTabInit)&&(r.onTabLoad&&(r.onLoad=r.onTabLoad,delete r.onTabLoad,b.error(S.legacyLoad,r.onLoad)),r.onTabInit&&(r.onFirstLoad=r.onTabInit,delete r.onTabInit,b.error(S.legacyInit,r.onFirstLoad)),x=E.extend(!0,{},E.fn.tab.settings,r))}},initializeHistory:function(){if(b.debug("Initializing page state"),E.address===D)return b.error(S.state),!1;if("state"==x.historyType){if(b.debug("Using HTML5 to manage state"),!1===x.path)return b.error(S.path),!1;E.address.history(!0).state(x.path)}E.address.bind("change",b.event.history.change)},event:{click:function(e){var t=E(this).data(w.tab);t!==D?(x.history?(b.verbose("Updating page state",e),E.address.value(t)):(b.verbose("Changing tab",e),b.changeTab(t)),e.preventDefault()):b.debug("No tab specified")},history:{change:function(e){var t=e.pathNames.join("/")||b.get.initialPath(),n=x.templates.determineTitle(t)||!1;b.performance.display(),b.debug("History change event",t,e),y=e,t!==D&&b.changeTab(t),n&&E.address.title(n)}}},refresh:function(){h&&(b.debug("Refreshing tab",h),b.changeTab(h))},cache:{read:function(e){return e!==D&&i[e]},add:function(e,t){e=e||h,b.debug("Adding cached content for",e),i[e]=t},remove:function(e){e=e||h,b.debug("Removing cached content for",e),delete i[e]}},set:{auto:function(){var e="string"==typeof x.path?x.path.replace(/\/$/,"")+"/{$tab}":"/{$tab}";b.verbose("Setting up automatic tab retrieval from server",e),E.isPlainObject(x.apiSettings)?x.apiSettings.url=e:x.apiSettings={url:e}},loading:function(e){var t=b.get.tabElement(e);t.hasClass(C.loading)||(b.verbose("Setting loading state for",t),t.addClass(C.loading).siblings(a).removeClass(C.active+" "+C.loading),0<t.length&&x.onRequest.call(t[0],e))},state:function(e){E.address.value(e)}},changeTab:function(d){var f=F.history&&F.history.pushState&&x.ignoreFirstLoad&&T,m=x.auto||E.isPlainObject(x.apiSettings),g=m&&!f?b.utilities.pathToArray(d):b.get.defaultPathArray(d);d=b.utilities.arrayToPath(g),E.each(g,function(e,t){var n,i,o,a,r=g.slice(0,e+1),s=b.utilities.arrayToPath(r),l=b.is.tab(s),c=e+1==g.length,u=b.get.tabElement(s);if(b.verbose("Looking for tab",t),l){if(b.verbose("Tab was found",t),h=s,v=b.utilities.filterArray(g,r),c?a=!0:(i=g.slice(0,e+2),o=b.utilities.arrayToPath(i),(a=!b.is.tab(o))&&b.verbose("Tab parameters found",i)),a&&m)return f?(b.debug("Ignoring remote content on first tab load",s),T=!1,b.cache.add(d,u.html()),b.activate.all(s),x.onFirstLoad.call(u[0],s,v,y),x.onLoad.call(u[0],s,v,y)):(b.activate.navigation(s),b.fetch.content(s,d)),!1;b.debug("Opened local tab",s),b.activate.all(s),b.cache.read(s)||(b.cache.add(s,!0),b.debug("First time tab loaded calling tab init"),x.onFirstLoad.call(u[0],s,v,y)),x.onLoad.call(u[0],s,v,y)}else{if(-1!=d.search("/")||""===d)return b.error(S.missingTab,k,p,s),!1;if(s=(n=E("#"+d+', a[name="'+d+'"]')).closest("[data-tab]").data(w.tab),u=b.get.tabElement(s),n&&0<n.length&&s)return b.debug("Anchor link used, opening parent tab",u,n),u.hasClass(C.active)||setTimeout(function(){b.scrollTo(n)},0),b.activate.all(s),b.cache.read(s)||(b.cache.add(s,!0),b.debug("First time tab loaded calling tab init"),x.onFirstLoad.call(u[0],s,v,y)),x.onLoad.call(u[0],s,v,y),!1}})},scrollTo:function(e){var t=!!(e&&0<e.length)&&e.offset().top;!1!==t&&(b.debug("Forcing scroll to an in-page link in a hidden tab",t,e),E(O).scrollTop(t))},update:{content:function(e,t,n){var i=b.get.tabElement(e),o=i[0];n=n!==D?n:x.evaluateScripts,"string"==typeof x.cacheType&&"dom"==x.cacheType.toLowerCase()&&"string"!=typeof t?i.empty().append(E(t).clone(!0)):n?(b.debug("Updating HTML and evaluating inline scripts",e,t),i.html(t)):(b.debug("Updating HTML",e,t),o.innerHTML=t)}},fetch:{content:function(t,n){var e,i,o=b.get.tabElement(t),a={dataType:"html",encodeParameters:!1,on:"now",cache:x.alwaysRefresh,headers:{"X-Remote":!0},onSuccess:function(e){"response"==x.cacheType&&b.cache.add(n,e),b.update.content(t,e),t==h?(b.debug("Content loaded",t),b.activate.tab(t)):b.debug("Content loaded in background",t),x.onFirstLoad.call(o[0],t,v,y),x.onLoad.call(o[0],t,v,y),x.loadOnce?b.cache.add(n,!0):"string"==typeof x.cacheType&&"dom"==x.cacheType.toLowerCase()&&0<o.children().length?setTimeout(function(){var e=o.children().clone(!0);e=e.not("script"),b.cache.add(n,e)},0):b.cache.add(n,o.html())},urlData:{tab:n}},r=o.api("get request")||!1,s=r&&"pending"===r.state();n=n||t,i=b.cache.read(n),x.cache&&i?(b.activate.tab(t),b.debug("Adding cached content",n),x.loadOnce||("once"==x.evaluateScripts?b.update.content(t,i,!1):b.update.content(t,i)),x.onLoad.call(o[0],t,v,y)):s?(b.set.loading(t),b.debug("Content is already loading",n)):E.api!==D?(e=E.extend(!0,{},x.apiSettings,a),b.debug("Retrieving remote content",n,e),b.set.loading(t),o.api(e)):b.error(S.api)}},activate:{all:function(e){b.activate.tab(e),b.activate.navigation(e)},tab:function(e){var t=b.get.tabElement(e),n="siblings"==x.deactivate?t.siblings(a):a.not(t),i=t.hasClass(C.active);b.verbose("Showing tab content for",t),i||(t.addClass(C.active),n.removeClass(C.active+" "+C.loading),0<t.length&&x.onVisible.call(t[0],e))},navigation:function(e){var t=b.get.navElement(e),n="siblings"==x.deactivate?t.siblings(u):u.not(t),i=t.hasClass(C.active);b.verbose("Activating tab navigation for",t,e),i||(t.addClass(C.active),n.removeClass(C.active+" "+C.loading))}},deactivate:{all:function(){b.deactivate.navigation(),b.deactivate.tabs()},navigation:function(){u.removeClass(C.active)},tabs:function(){a.removeClass(C.active+" "+C.loading)}},is:{tab:function(e){return e!==D&&0<b.get.tabElement(e).length}},get:{initialPath:function(){return u.eq(0).data(w.tab)||a.eq(0).data(w.tab)},path:function(){return E.address.value()},defaultPathArray:function(e){return b.utilities.pathToArray(b.get.defaultPath(e))},defaultPath:function(e){var t=u.filter("[data-"+w.tab+'^="'+e+'/"]').eq(0).data(w.tab)||!1;if(t){if(b.debug("Found default tab",t),o<x.maxDepth)return o++,b.get.defaultPath(t);b.error(S.recursion)}else b.debug("No default tabs found for",e,a);return o=0,e},navElement:function(e){return e=e||h,u.filter("[data-"+w.tab+'="'+e+'"]')},tabElement:function(e){var t,n,i,o;return e=e||h,i=b.utilities.pathToArray(e),o=b.utilities.last(i),t=a.filter("[data-"+w.tab+'="'+e+'"]'),n=a.filter("[data-"+w.tab+'="'+o+'"]'),0<t.length?t:n},tab:function(){return h}},utilities:{filterArray:function(e,t){return E.grep(e,function(e){return-1==E.inArray(e,t)})},last:function(e){return!!E.isArray(e)&&e[e.length-1]},pathToArray:function(e){return e===D&&(e=h),"string"==typeof e?e.split("/"):[e]},arrayToPath:function(e){return!!E.isArray(e)&&e.join("/")}},setting:function(e,t){if(b.debug("Changing setting",e,t),E.isPlainObject(e))E.extend(!0,x,e);else{if(t===D)return x[e];E.isPlainObject(x[e])?E.extend(!0,x[e],t):x[e]=t}},internal:function(e,t){if(E.isPlainObject(e))E.extend(!0,b,e);else{if(t===D)return b[e];b[e]=t}},debug:function(){!x.silent&&x.debug&&(x.performance?b.performance.log(arguments):(b.debug=Function.prototype.bind.call(console.info,console,x.name+":"),b.debug.apply(console,arguments)))},verbose:function(){!x.silent&&x.verbose&&x.debug&&(x.performance?b.performance.log(arguments):(b.verbose=Function.prototype.bind.call(console.info,console,x.name+":"),b.verbose.apply(console,arguments)))},error:function(){x.silent||(b.error=Function.prototype.bind.call(console.error,console,x.name+":"),b.error.apply(console,arguments))},performance:{log:function(e){var t,n;x.performance&&(n=(t=(new Date).getTime())-(f||t),f=t,m.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:s,"Execution Time":n})),clearTimeout(b.performance.timer),b.performance.timer=setTimeout(b.performance.display,500)},display:function(){var e=x.name+":",n=0;f=!1,clearTimeout(b.performance.timer),E.each(m,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",d&&(e+=" '"+d+"'"),(console.group!==D||console.table!==D)&&0<m.length&&(console.groupCollapsed(e),console.table?console.table(m):E.each(m,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),m=[]}},invoke:function(i,e,t){var o,a,n,r=l;return e=e||R,t=s||t,"string"==typeof i&&r!==D&&(i=i.split(/[\. ]/),o=i.length-1,E.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(E.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==D)return a=r[n],!1;if(!E.isPlainObject(r[t])||e==o)return r[t]!==D?a=r[t]:b.error(S.method,i),!1;r=r[t]}})),E.isFunction(a)?n=a.apply(t,e):a!==D&&(n=a),E.isArray(c)?c.push(n):c!==D?c=[c,n]:n!==D&&(c=n),a}},A?(l===D&&b.initialize(),b.invoke(g)):(l!==D&&l.invoke("destroy"),b.initialize())}),c!==D?c:this},E.tab=function(){E(F).tab.apply(this,arguments)},E.fn.tab.settings={name:"Tab",namespace:"tab",silent:!1,debug:!1,verbose:!1,performance:!0,auto:!1,history:!1,historyType:"hash",path:!1,context:!1,childrenOnly:!1,maxDepth:25,deactivate:"siblings",alwaysRefresh:!1,cache:!0,loadOnce:!1,cacheType:"response",ignoreFirstLoad:!1,apiSettings:!1,evaluateScripts:"once",onFirstLoad:function(e,t,n){},onLoad:function(e,t,n){},onVisible:function(e,t,n){},onRequest:function(e,t,n){},templates:{determineTitle:function(e){}},error:{api:"You attempted to load content without API module",method:"The method you called is not defined",missingTab:"Activated tab cannot be found. Tabs are case-sensitive.",noContent:"The tab you specified is missing a content url.",path:"History enabled, but no path was specified",recursion:"Max recursive depth reached",legacyInit:"onTabInit has been renamed to onFirstLoad in 2.0, please adjust your code.",legacyLoad:"onTabLoad has been renamed to onLoad in 2.0. Please adjust your code",state:"History requires Asual's Address library <https://github.com/asual/jquery-address>"},metadata:{tab:"tab",loaded:"loaded",promise:"promise"},className:{loading:"loading",active:"active"},selector:{tabs:".ui.tab",ui:".ui"}}}(jQuery,window,document),function(C,e,w,S){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),C.fn.transition=function(){var c,r=C(this),g=r.selector||"",p=(new Date).getTime(),h=[],v=arguments,b=v[0],y=[].slice.call(arguments,1),x="string"==typeof b;e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame;return r.each(function(i){var u,s,t,d,n,o,e,a,f,m=C(this),l=this;(f={initialize:function(){u=f.get.settings.apply(l,v),d=u.className,t=u.error,n=u.metadata,a="."+u.namespace,e="module-"+u.namespace,s=m.data(e)||f,o=f.get.animationEndEvent(),x&&(x=f.invoke(b)),!1===x&&(f.verbose("Converted arguments into settings object",u),u.interval?f.delay(u.animate):f.animate(),f.instantiate())},instantiate:function(){f.verbose("Storing instance of module",f),s=f,m.data(e,s)},destroy:function(){f.verbose("Destroying previous module for",l),m.removeData(e)},refresh:function(){f.verbose("Refreshing display type on next animation"),delete f.displayType},forceRepaint:function(){f.verbose("Forcing element repaint");var e=m.parent(),t=m.next();0===t.length?m.detach().appendTo(e):m.detach().insertBefore(t)},repaint:function(){f.verbose("Repainting element");l.offsetWidth},delay:function(e){var t,n=f.get.animationDirection();n||(n=f.can.transition()?f.get.direction():"static"),e=e!==S?e:u.interval,t="auto"==u.reverse&&n==d.outward||1==u.reverse?(r.length-i)*u.interval:i*u.interval,f.debug("Delaying animation by",t),setTimeout(f.animate,t)},animate:function(e){if(u=e||u,!f.is.supported())return f.error(t.support),!1;if(f.debug("Preparing animation",u.animation),f.is.animating()){if(u.queue)return!u.allowRepeats&&f.has.direction()&&f.is.occurring()&&!0!==f.queuing?f.debug("Animation is currently occurring, preventing queueing same animation",u.animation):f.queue(u.animation),!1;if(!u.allowRepeats&&f.is.occurring())return f.debug("Animation is already occurring, will not execute repeated animation",u.animation),!1;f.debug("New animation started, completing previous early",u.animation),s.complete()}f.can.animate()?f.set.animating(u.animation):f.error(t.noAnimation,u.animation,l)},reset:function(){f.debug("Resetting animation to beginning conditions"),f.remove.animationCallbacks(),f.restore.conditions(),f.remove.animating()},queue:function(e){f.debug("Queueing animation of",e),f.queuing=!0,m.one(o+".queue"+a,function(){f.queuing=!1,f.repaint(),f.animate.apply(this,u)})},complete:function(e){f.debug("Animation complete",u.animation),f.remove.completeCallback(),f.remove.failSafe(),f.is.looping()||(f.is.outward()?(f.verbose("Animation is outward, hiding element"),f.restore.conditions(),f.hide()):f.is.inward()?(f.verbose("Animation is outward, showing element"),f.restore.conditions(),f.show()):(f.verbose("Static animation completed"),f.restore.conditions(),u.onComplete.call(l)))},force:{visible:function(){var e=m.attr("style"),t=f.get.userStyle(),n=f.get.displayType(),i=t+"display: "+n+" !important;",o=m.css("display"),a=e===S||""===e;o!==n?(f.verbose("Overriding default display to show element",n),m.attr("style",i)):a&&m.removeAttr("style")},hidden:function(){var e=m.attr("style"),t=m.css("display"),n=e===S||""===e;"none"===t||f.is.hidden()?n&&m.removeAttr("style"):(f.verbose("Overriding default display to hide element"),m.css("display","none"))}},has:{direction:function(e){var n=!1;return"string"==typeof(e=e||u.animation)&&(e=e.split(" "),C.each(e,function(e,t){t!==d.inward&&t!==d.outward||(n=!0)})),n},inlineDisplay:function(){var e=m.attr("style")||"";return C.isArray(e.match(/display.*?;/,""))}},set:{animating:function(e){var t;f.remove.completeCallback(),e=e||u.animation,t=f.get.animationClass(e),f.save.animation(t),f.force.visible(),f.remove.hidden(),f.remove.direction(),f.start.animation(t)},duration:function(e,t){!(t="number"==typeof(t=t||u.duration)?t+"ms":t)&&0!==t||(f.verbose("Setting animation duration",t),m.css({"animation-duration":t}))},direction:function(e){(e=e||f.get.direction())==d.inward?f.set.inward():f.set.outward()},looping:function(){f.debug("Transition set to loop"),m.addClass(d.looping)},hidden:function(){m.addClass(d.transition).addClass(d.hidden)},inward:function(){f.debug("Setting direction to inward"),m.removeClass(d.outward).addClass(d.inward)},outward:function(){f.debug("Setting direction to outward"),m.removeClass(d.inward).addClass(d.outward)},visible:function(){m.addClass(d.transition).addClass(d.visible)}},start:{animation:function(e){e=e||f.get.animationClass(),f.debug("Starting tween",e),m.addClass(e).one(o+".complete"+a,f.complete),u.useFailSafe&&f.add.failSafe(),f.set.duration(u.duration),u.onStart.call(l)}},save:{animation:function(e){f.cache||(f.cache={}),f.cache.animation=e},displayType:function(e){"none"!==e&&m.data(n.displayType,e)},transitionExists:function(e,t){C.fn.transition.exists[e]=t,f.verbose("Saving existence of transition",e,t)}},restore:{conditions:function(){var e=f.get.currentAnimation();e&&(m.removeClass(e),f.verbose("Removing animation class",f.cache)),f.remove.duration()}},add:{failSafe:function(){var e=f.get.duration();f.timer=setTimeout(function(){m.triggerHandler(o)},e+u.failSafeDelay),f.verbose("Adding fail safe timer",f.timer)}},remove:{animating:function(){m.removeClass(d.animating)},animationCallbacks:function(){f.remove.queueCallback(),f.remove.completeCallback()},queueCallback:function(){m.off(".queue"+a)},completeCallback:function(){m.off(".complete"+a)},display:function(){m.css("display","")},direction:function(){m.removeClass(d.inward).removeClass(d.outward)},duration:function(){m.css("animation-duration","")},failSafe:function(){f.verbose("Removing fail safe timer",f.timer),f.timer&&clearTimeout(f.timer)},hidden:function(){m.removeClass(d.hidden)},visible:function(){m.removeClass(d.visible)},looping:function(){f.debug("Transitions are no longer looping"),f.is.looping()&&(f.reset(),m.removeClass(d.looping))},transition:function(){m.removeClass(d.visible).removeClass(d.hidden)}},get:{settings:function(e,t,n){return"object"==typeof e?C.extend(!0,{},C.fn.transition.settings,e):"function"==typeof n?C.extend({},C.fn.transition.settings,{animation:e,onComplete:n,duration:t}):"string"==typeof t||"number"==typeof t?C.extend({},C.fn.transition.settings,{animation:e,duration:t}):"object"==typeof t?C.extend({},C.fn.transition.settings,t,{animation:e}):"function"==typeof t?C.extend({},C.fn.transition.settings,{animation:e,onComplete:t}):C.extend({},C.fn.transition.settings,{animation:e})},animationClass:function(e){var t=e||u.animation,n=f.can.transition()&&!f.has.direction()?f.get.direction()+" ":"";return d.animating+" "+d.transition+" "+n+t},currentAnimation:function(){return!(!f.cache||f.cache.animation===S)&&f.cache.animation},currentDirection:function(){return f.is.inward()?d.inward:d.outward},direction:function(){return f.is.hidden()||!f.is.visible()?d.inward:d.outward},animationDirection:function(e){var n;return"string"==typeof(e=e||u.animation)&&(e=e.split(" "),C.each(e,function(e,t){t===d.inward?n=d.inward:t===d.outward&&(n=d.outward)})),n||!1},duration:function(e){return!1===(e=e||u.duration)&&(e=m.css("animation-duration")||0),"string"==typeof e?-1<e.indexOf("ms")?parseFloat(e):1e3*parseFloat(e):e},displayType:function(e){return e=e===S||e,u.displayType?u.displayType:(e&&m.data(n.displayType)===S&&f.can.transition(!0),m.data(n.displayType))},userStyle:function(e){return(e=e||m.attr("style")||"").replace(/display.*?;/,"")},transitionExists:function(e){return C.fn.transition.exists[e]},animationStartEvent:function(){var e,t=w.createElement("div"),n={animation:"animationstart",OAnimation:"oAnimationStart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"};for(e in n)if(t.style[e]!==S)return n[e];return!1},animationEndEvent:function(){var e,t=w.createElement("div"),n={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(e in n)if(t.style[e]!==S)return n[e];return!1}},can:{transition:function(e){var t,n,i,o,a,r,s=u.animation,l=f.get.transitionExists(s),c=f.get.displayType(!1);if(l===S||e){if(f.verbose("Determining whether animation exists"),t=m.attr("class"),n=m.prop("tagName"),o=(i=C("<"+n+" />").addClass(t).insertAfter(m)).addClass(s).removeClass(d.inward).removeClass(d.outward).addClass(d.animating).addClass(d.transition).css("animationName"),a=i.addClass(d.inward).css("animationName"),c||(c=i.attr("class",t).removeAttr("style").removeClass(d.hidden).removeClass(d.visible).show().css("display"),f.verbose("Determining final display state",c),f.save.displayType(c)),i.remove(),o!=a)f.debug("Direction exists for animation",s),r=!0;else{if("none"==o||!o)return void f.debug("No animation defined in css",s);f.debug("Static animation found",s,c),r=!1}f.save.transitionExists(s,r)}return l!==S?l:r},animate:function(){return f.can.transition()!==S}},is:{animating:function(){return m.hasClass(d.animating)},inward:function(){return m.hasClass(d.inward)},outward:function(){return m.hasClass(d.outward)},looping:function(){return m.hasClass(d.looping)},occurring:function(e){return e="."+(e=e||u.animation).replace(" ","."),0<m.filter(e).length},visible:function(){return m.is(":visible")},hidden:function(){return"hidden"===m.css("visibility")},supported:function(){return!1!==o}},hide:function(){f.verbose("Hiding element"),f.is.animating()&&f.reset(),l.blur(),f.remove.display(),f.remove.visible(),f.set.hidden(),f.force.hidden(),u.onHide.call(l),u.onComplete.call(l)},show:function(e){f.verbose("Showing element",e),f.remove.hidden(),f.set.visible(),f.force.visible(),u.onShow.call(l),u.onComplete.call(l)},toggle:function(){f.is.visible()?f.hide():f.show()},stop:function(){f.debug("Stopping current animation"),m.triggerHandler(o)},stopAll:function(){f.debug("Stopping all animation"),f.remove.queueCallback(),m.triggerHandler(o)},clear:{queue:function(){f.debug("Clearing animation queue"),f.remove.queueCallback()}},enable:function(){f.verbose("Starting animation"),m.removeClass(d.disabled)},disable:function(){f.debug("Stopping animation"),m.addClass(d.disabled)},setting:function(e,t){if(f.debug("Changing setting",e,t),C.isPlainObject(e))C.extend(!0,u,e);else{if(t===S)return u[e];C.isPlainObject(u[e])?C.extend(!0,u[e],t):u[e]=t}},internal:function(e,t){if(C.isPlainObject(e))C.extend(!0,f,e);else{if(t===S)return f[e];f[e]=t}},debug:function(){!u.silent&&u.debug&&(u.performance?f.performance.log(arguments):(f.debug=Function.prototype.bind.call(console.info,console,u.name+":"),f.debug.apply(console,arguments)))},verbose:function(){!u.silent&&u.verbose&&u.debug&&(u.performance?f.performance.log(arguments):(f.verbose=Function.prototype.bind.call(console.info,console,u.name+":"),f.verbose.apply(console,arguments)))},error:function(){u.silent||(f.error=Function.prototype.bind.call(console.error,console,u.name+":"),f.error.apply(console,arguments))},performance:{log:function(e){var t,n;u.performance&&(n=(t=(new Date).getTime())-(p||t),p=t,h.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:l,"Execution Time":n})),clearTimeout(f.performance.timer),f.performance.timer=setTimeout(f.performance.display,500)},display:function(){var e=u.name+":",n=0;p=!1,clearTimeout(f.performance.timer),C.each(h,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",g&&(e+=" '"+g+"'"),1<r.length&&(e+=" ("+r.length+")"),(console.group!==S||console.table!==S)&&0<h.length&&(console.groupCollapsed(e),console.table?console.table(h):C.each(h,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),h=[]}},invoke:function(i,e,t){var o,a,n,r=s;return e=e||y,t=l||t,"string"==typeof i&&r!==S&&(i=i.split(/[\. ]/),o=i.length-1,C.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(C.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==S)return a=r[n],!1;if(!C.isPlainObject(r[t])||e==o)return r[t]!==S&&(a=r[t]),!1;r=r[t]}})),C.isFunction(a)?n=a.apply(t,e):a!==S&&(n=a),C.isArray(c)?c.push(n):c!==S?c=[c,n]:n!==S&&(c=n),a!==S&&a}}).initialize()}),c!==S?c:this},C.fn.transition.exists={},C.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(P,E,e,F){"use strict";E=void 0!==E&&E.Math==Math?E:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();P.api=P.fn.api=function(x){var C,e=P.isFunction(this)?P(E):P(this),w=e.selector||"",S=(new Date).getTime(),k=[],T=x,A="string"==typeof T,R=[].slice.call(arguments,1);return e.each(function(){var a,r,n,e,s,l,c=P.isPlainObject(x)?P.extend(!0,{},P.fn.api.settings,x):P.extend({},P.fn.api.settings),t=c.namespace,i=c.metadata,o=c.selector,u=c.error,d=c.className,f="."+t,m="module-"+t,g=P(this),p=g.closest(o.form),h=c.stateContext?P(c.stateContext):g,v=this,b=h[0],y=g.data(m);l={initialize:function(){A||l.bind.events(),l.instantiate()},instantiate:function(){l.verbose("Storing instance of module",l),y=l,g.data(m,y)},destroy:function(){l.verbose("Destroying previous module for",v),g.removeData(m).off(f)},bind:{events:function(){var e=l.get.event();e?(l.verbose("Attaching API events to element",e),g.on(e+f,l.event.trigger)):"now"==c.on&&(l.debug("Querying API endpoint immediately"),l.query())}},decode:{json:function(e){if(e!==F&&"string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}},read:{cachedResponse:function(e){var t;if(E.Storage!==F)return t=sessionStorage.getItem(e),l.debug("Using cached response",e,t),t=l.decode.json(t);l.error(u.noStorage)}},write:{cachedResponse:function(e,t){t&&""===t?l.debug("Response empty, not caching",t):E.Storage!==F?(P.isPlainObject(t)&&(t=JSON.stringify(t)),sessionStorage.setItem(e,t),l.verbose("Storing cached response for url",e,t)):l.error(u.noStorage)}},query:function(){if(l.is.disabled())l.debug("Element is disabled API request aborted");else{if(l.is.loading()){if(!c.interruptRequests)return void l.debug("Cancelling request, previous request is still pending");l.debug("Interrupting previous request"),l.abort()}if(c.defaultData&&P.extend(!0,c.urlData,l.get.defaultData()),c.serializeForm&&(c.data=l.add.formData(c.data)),!1===(r=l.get.settings()))return l.cancelled=!0,void l.error(u.beforeSend);if(l.cancelled=!1,(n=l.get.templatedURL())||l.is.mocked()){if((n=l.add.urlData(n))||l.is.mocked()){if(r.url=c.base+n,a=P.extend(!0,{},c,{type:c.method||c.type,data:e,url:c.base+n,beforeSend:c.beforeXHR,success:function(){},failure:function(){},complete:function(){}}),l.debug("Querying URL",a.url),l.verbose("Using AJAX settings",a),"local"===c.cache&&l.read.cachedResponse(n))return l.debug("Response returned from local cache"),l.request=l.create.request(),void l.request.resolveWith(b,[l.read.cachedResponse(n)]);c.throttle?c.throttleFirstRequest||l.timer?(l.debug("Throttling request",c.throttle),clearTimeout(l.timer),l.timer=setTimeout(function(){l.timer&&delete l.timer,l.debug("Sending throttled request",e,a.method),l.send.request()},c.throttle)):(l.debug("Sending request",e,a.method),l.send.request(),l.timer=setTimeout(function(){},c.throttle)):(l.debug("Sending request",e,a.method),l.send.request())}}else l.error(u.missingURL)}},should:{removeError:function(){return!0===c.hideError||"auto"===c.hideError&&!l.is.form()}},is:{disabled:function(){return 0<g.filter(o.disabled).length},expectingJSON:function(){return"json"===c.dataType||"jsonp"===c.dataType},form:function(){return g.is("form")||h.is("form")},mocked:function(){return c.mockResponse||c.mockResponseAsync||c.response||c.responseAsync},input:function(){return g.is("input")},loading:function(){return!!l.request&&"pending"==l.request.state()},abortedRequest:function(e){return e&&e.readyState!==F&&0===e.readyState?(l.verbose("XHR request determined to be aborted"),!0):(l.verbose("XHR request was not aborted"),!1)},validResponse:function(e){return l.is.expectingJSON()&&P.isFunction(c.successTest)?(l.debug("Checking JSON returned success",c.successTest,e),c.successTest(e)?(l.debug("Response passed success test",e),!0):(l.debug("Response failed success test",e),!1)):(l.verbose("Response is not JSON, skipping validation",c.successTest,e),!0)}},was:{cancelled:function(){return l.cancelled||!1},succesful:function(){return l.request&&"resolved"==l.request.state()},failure:function(){return l.request&&"rejected"==l.request.state()},complete:function(){return l.request&&("resolved"==l.request.state()||"rejected"==l.request.state())}},add:{urlData:function(o,a){var e,t;return o&&(e=o.match(c.regExp.required),t=o.match(c.regExp.optional),a=a||c.urlData,e&&(l.debug("Looking for required URL variables",e),P.each(e,function(e,t){var n=-1!==t.indexOf("$")?t.substr(2,t.length-3):t.substr(1,t.length-2),i=P.isPlainObject(a)&&a[n]!==F?a[n]:g.data(n)!==F?g.data(n):h.data(n)!==F?h.data(n):a[n];if(i===F)return l.error(u.requiredParameter,n,o),o=!1;l.verbose("Found required variable",n,i),i=c.encodeParameters?l.get.urlEncodedValue(i):i,o=o.replace(t,i)})),t&&(l.debug("Looking for optional URL variables",e),P.each(t,function(e,t){var n=-1!==t.indexOf("$")?t.substr(3,t.length-4):t.substr(2,t.length-3),i=P.isPlainObject(a)&&a[n]!==F?a[n]:g.data(n)!==F?g.data(n):h.data(n)!==F?h.data(n):a[n];o=i!==F?(l.verbose("Optional variable Found",n,i),o.replace(t,i)):(l.verbose("Optional variable not found",n),-1!==o.indexOf("/"+t)?o.replace("/"+t,""):o.replace(t,""))}))),o},formData:function(e){var t=P.fn.serializeObject!==F,n=t?p.serializeObject():p.serialize();return e=e||c.data,e=P.isPlainObject(e)?t?(l.debug("Extending existing data with form data",e,n),P.extend(!0,{},e,n)):(l.error(u.missingSerialize),l.debug("Cant extend data. Replacing data with form data",e,n),n):(l.debug("Adding form data",n),n)}},send:{request:function(){l.set.loading(),l.request=l.create.request(),l.is.mocked()?l.mockedXHR=l.create.mockedXHR():l.xhr=l.create.xhr(),c.onRequest.call(b,l.request,l.xhr)}},event:{trigger:function(e){l.query(),"submit"!=e.type&&"click"!=e.type||e.preventDefault()},xhr:{always:function(){},done:function(e,t,n){var i=this,o=(new Date).getTime()-s,a=c.loadingDuration-o,r=!!P.isFunction(c.onResponse)&&(l.is.expectingJSON()?c.onResponse.call(i,P.extend(!0,{},e)):c.onResponse.call(i,e));a=0<a?a:0,r&&(l.debug("Modified API response in onResponse callback",c.onResponse,r,e),e=r),0<a&&l.debug("Response completed early delaying state change by",a),setTimeout(function(){l.is.validResponse(e)?l.request.resolveWith(i,[e,n]):l.request.rejectWith(i,[n,"invalid"])},a)},fail:function(e,t,n){var i=this,o=(new Date).getTime()-s,a=c.loadingDuration-o;0<(a=0<a?a:0)&&l.debug("Response completed early delaying state change by",a),setTimeout(function(){l.is.abortedRequest(e)?l.request.rejectWith(i,[e,"aborted",n]):l.request.rejectWith(i,[e,"error",t,n])},a)}},request:{done:function(e,t){l.debug("Successful API Response",e),"local"===c.cache&&n&&(l.write.cachedResponse(n,e),l.debug("Saving server response locally",l.cache)),c.onSuccess.call(b,e,g,t)},complete:function(e,t){var n,i;l.was.succesful()?(i=e,n=t):(n=e,i=l.get.responseFromXHR(n)),l.remove.loading(),c.onComplete.call(b,i,g,n)},fail:function(e,t,n){var i=l.get.responseFromXHR(e),o=l.get.errorFromRequest(i,t,n);if("aborted"==t)return l.debug("XHR Aborted (Most likely caused by page navigation or CORS Policy)",t,n),c.onAbort.call(b,t,g,e),!0;"invalid"==t?l.debug("JSON did not pass success test. A server-side error has most likely occurred",i):"error"==t&&e!==F&&(l.debug("XHR produced a server error",t,n),200!=e.status&&n!==F&&""!==n&&l.error(u.statusMessage+n,a.url),c.onError.call(b,o,g,e)),c.errorDuration&&"aborted"!==t&&(l.debug("Adding error state"),l.set.error(),l.should.removeError()&&setTimeout(l.remove.error,c.errorDuration)),l.debug("API Request failed",o,e),c.onFailure.call(b,i,g,e)}}},create:{request:function(){return P.Deferred().always(l.event.request.complete).done(l.event.request.done).fail(l.event.request.fail)},mockedXHR:function(){var e,t,n,i=c.mockResponse||c.response,o=c.mockResponseAsync||c.responseAsync;return n=P.Deferred().always(l.event.xhr.complete).done(l.event.xhr.done).fail(l.event.xhr.fail),i?(t=P.isFunction(i)?(l.debug("Using specified synchronous callback",i),i.call(b,r)):(l.debug("Using settings specified response",i),i),n.resolveWith(b,[t,!1,{responseText:t}])):P.isFunction(o)&&(e=function(e){l.debug("Async callback returned response",e),e?n.resolveWith(b,[e,!1,{responseText:e}]):n.rejectWith(b,[{responseText:e},!1,!1])},l.debug("Using specified async response callback",o),o.call(b,r,e)),n},xhr:function(){var e;return e=P.ajax(a).always(l.event.xhr.always).done(l.event.xhr.done).fail(l.event.xhr.fail),l.verbose("Created server request",e,a),e}},set:{error:function(){l.verbose("Adding error state to element",h),h.addClass(d.error)},loading:function(){l.verbose("Adding loading state to element",h),h.addClass(d.loading),s=(new Date).getTime()}},remove:{error:function(){l.verbose("Removing error state from element",h),h.removeClass(d.error)},loading:function(){l.verbose("Removing loading state from element",h),h.removeClass(d.loading)}},get:{responseFromXHR:function(e){return!!P.isPlainObject(e)&&(l.is.expectingJSON()?l.decode.json(e.responseText):e.responseText)},errorFromRequest:function(e,t,n){return P.isPlainObject(e)&&e.error!==F?e.error:c.error[t]!==F?c.error[t]:n},request:function(){return l.request||!1},xhr:function(){return l.xhr||!1},settings:function(){var e;return(e=c.beforeSend.call(b,c))&&(e.success!==F&&(l.debug("Legacy success callback detected",e),l.error(u.legacyParameters,e.success),e.onSuccess=e.success),e.failure!==F&&(l.debug("Legacy failure callback detected",e),l.error(u.legacyParameters,e.failure),e.onFailure=e.failure),e.complete!==F&&(l.debug("Legacy complete callback detected",e),l.error(u.legacyParameters,e.complete),e.onComplete=e.complete)),e===F&&l.error(u.noReturnedValue),!1===e?e:e!==F?P.extend(!0,{},e):P.extend(!0,{},c)},urlEncodedValue:function(e){var t=E.decodeURIComponent(e),n=E.encodeURIComponent(e);return t!==e?(l.debug("URL value is already encoded, avoiding double encoding",e),e):(l.verbose("Encoding value using encodeURIComponent",e,n),n)},defaultData:function(){var e={};return P.isWindow(v)||(l.is.input()?e.value=g.val():l.is.form()||(e.text=g.text())),e},event:function(){return P.isWindow(v)||"now"==c.on?(l.debug("API called without element, no events attached"),!1):"auto"==c.on?g.is("input")?v.oninput!==F?"input":v.onpropertychange!==F?"propertychange":"keyup":g.is("form")?"submit":"click":c.on},templatedURL:function(e){if(e=e||g.data(i.action)||c.action||!1,n=g.data(i.url)||c.url||!1)return l.debug("Using specified url",n),n;if(e){if(l.debug("Looking up url for action",e,c.api),c.api[e]===F&&!l.is.mocked())return void l.error(u.missingAction,c.action,c.api);n=c.api[e]}else l.is.form()&&(n=g.attr("action")||h.attr("action")||!1,l.debug("No url or action specified, defaulting to form action",n));return n}},abort:function(){var e=l.get.xhr();e&&"resolved"!==e.state()&&(l.debug("Cancelling API request"),e.abort())},reset:function(){l.remove.error(),l.remove.loading()},setting:function(e,t){if(l.debug("Changing setting",e,t),P.isPlainObject(e))P.extend(!0,c,e);else{if(t===F)return c[e];P.isPlainObject(c[e])?P.extend(!0,c[e],t):c[e]=t}},internal:function(e,t){if(P.isPlainObject(e))P.extend(!0,l,e);else{if(t===F)return l[e];l[e]=t}},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(e){var t,n;c.performance&&(n=(t=(new Date).getTime())-(S||t),S=t,k.push({Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":n})),clearTimeout(l.performance.timer),l.performance.timer=setTimeout(l.performance.display,500)},display:function(){var e=c.name+":",n=0;S=!1,clearTimeout(l.performance.timer),P.each(k,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",w&&(e+=" '"+w+"'"),(console.group!==F||console.table!==F)&&0<k.length&&(console.groupCollapsed(e),console.table?console.table(k):P.each(k,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),k=[]}},invoke:function(i,e,t){var o,a,n,r=y;return e=e||R,t=v||t,"string"==typeof i&&r!==F&&(i=i.split(/[\. ]/),o=i.length-1,P.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(P.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==F)return a=r[n],!1;if(!P.isPlainObject(r[t])||e==o)return r[t]!==F?a=r[t]:l.error(u.method,i),!1;r=r[t]}})),P.isFunction(a)?n=a.apply(t,e):a!==F&&(n=a),P.isArray(C)?C.push(n):C!==F?C=[C,n]:n!==F&&(C=n),a}},A?(y===F&&l.initialize(),l.invoke(T)):(y!==F&&y.invoke("destroy"),l.initialize())}),C!==F?C:this},P.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(e){return e},beforeXHR:function(e){},onRequest:function(e,t){},onResponse:!1,onSuccess:function(e,t){},onComplete:function(e,t){},onFailure:function(e,t){},onError:function(e,t){},onAbort:function(e,t){},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(P,E,F,O){"use strict";E=void 0!==E&&E.Math==Math?E:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),P.fn.visibility=function(b){var y,e=P(this),x=e.selector||"",C=(new Date).getTime(),w=[],S=b,k="string"==typeof S,T=[].slice.call(arguments,1),A=e.length,R=0;return e.each(function(){var e,t,n,s,o=P.isPlainObject(b)?P.extend(!0,{},P.fn.visibility.settings,b):P.extend({},P.fn.visibility.settings),i=o.className,a=o.namespace,l=o.error,r=o.metadata,c="."+a,u="module-"+a,d=P(E),f=P(this),m=P(o.context),g=(f.selector,f.data(u)),p=E.requestAnimationFrame||E.mozRequestAnimationFrame||E.webkitRequestAnimationFrame||E.msRequestAnimationFrame||function(e){setTimeout(e,0)},h=this,v=!1;s={initialize:function(){s.debug("Initializing",o),s.setup.cache(),s.should.trackChanges()&&("image"==o.type&&s.setup.image(),"fixed"==o.type&&s.setup.fixed(),o.observeChanges&&s.observeChanges(),s.bind.events()),s.save.position(),s.is.visible()||s.error(l.visible,f),o.initialCheck&&s.checkVisibility(),s.instantiate()},instantiate:function(){s.debug("Storing instance",s),f.data(u,s),g=s},destroy:function(){s.verbose("Destroying previous module"),n&&n.disconnect(),t&&t.disconnect(),d.off("load"+c,s.event.load).off("resize"+c,s.event.resize),m.off("scroll"+c,s.event.scroll).off("scrollchange"+c,s.event.scrollchange),"fixed"==o.type&&(s.resetFixed(),s.remove.placeholder()),f.off(c).removeData(u)},observeChanges:function(){"MutationObserver"in E&&(t=new MutationObserver(s.event.contextChanged),n=new MutationObserver(s.event.changed),t.observe(F,{childList:!0,subtree:!0}),n.observe(h,{childList:!0,subtree:!0}),s.debug("Setting up mutation observer",n))},bind:{events:function(){s.verbose("Binding visibility events to scroll and resize"),o.refreshOnLoad&&d.on("load"+c,s.event.load),d.on("resize"+c,s.event.resize),m.off("scroll"+c).on("scroll"+c,s.event.scroll).on("scrollchange"+c,s.event.scrollchange)}},event:{changed:function(e){s.verbose("DOM tree modified, updating visibility calculations"),s.timer=setTimeout(function(){s.verbose("DOM tree modified, updating sticky menu"),s.refresh()},100)},contextChanged:function(e){[].forEach.call(e,function(e){e.removedNodes&&[].forEach.call(e.removedNodes,function(e){(e==h||0<P(e).find(h).length)&&(s.debug("Element removed from DOM, tearing down events"),s.destroy())})})},resize:function(){s.debug("Window resized"),o.refreshOnResize&&p(s.refresh)},load:function(){s.debug("Page finished loading"),p(s.refresh)},scroll:function(){o.throttle?(clearTimeout(s.timer),s.timer=setTimeout(function(){m.triggerHandler("scrollchange"+c,[m.scrollTop()])},o.throttle)):p(function(){m.triggerHandler("scrollchange"+c,[m.scrollTop()])})},scrollchange:function(e,t){s.checkVisibility(t)}},precache:function(e,t){e instanceof Array||(e=[e]);for(var n=e.length,i=0,o=[],a=F.createElement("img"),r=function(){++i>=e.length&&P.isFunction(t)&&t()};n--;)(a=F.createElement("img")).onload=r,a.onerror=r,a.src=e[n],o.push(a)},enableCallbacks:function(){s.debug("Allowing callbacks to occur"),v=!1},disableCallbacks:function(){s.debug("Disabling all callbacks temporarily"),v=!0},should:{trackChanges:function(){return k?(s.debug("One time query, no need to bind events"),!1):(s.debug("Callbacks being attached"),!0)}},setup:{cache:function(){s.cache={occurred:{},screen:{},element:{}}},image:function(){var e=f.data(r.src);e&&(s.verbose("Lazy loading image",e),o.once=!0,o.observeChanges=!1,o.onOnScreen=function(){s.debug("Image on screen",h),s.precache(e,function(){s.set.image(e,function(){++R==A&&o.onAllLoaded.call(this),o.onLoad.call(this)})})})},fixed:function(){s.debug("Setting up fixed"),o.once=!1,o.observeChanges=!1,o.initialCheck=!0,o.refreshOnLoad=!0,b.transition||(o.transition=!1),s.create.placeholder(),s.debug("Added placeholder",e),o.onTopPassed=function(){s.debug("Element passed, adding fixed position",f),s.show.placeholder(),s.set.fixed(),o.transition&&P.fn.transition!==O&&f.transition(o.transition,o.duration)},o.onTopPassedReverse=function(){s.debug("Element returned to position, removing fixed",f),s.hide.placeholder(),s.remove.fixed()}}},create:{placeholder:function(){s.verbose("Creating fixed position placeholder"),e=f.clone(!1).css("display","none").addClass(i.placeholder).insertAfter(f)}},show:{placeholder:function(){s.verbose("Showing placeholder"),e.css("display","block").css("visibility","hidden")}},hide:{placeholder:function(){s.verbose("Hiding placeholder"),e.css("display","none").css("visibility","")}},set:{fixed:function(){s.verbose("Setting element to fixed position"),f.addClass(i.fixed).css({position:"fixed",top:o.offset+"px",left:"auto",zIndex:o.zIndex}),o.onFixed.call(h)},image:function(e,t){if(f.attr("src",e),o.transition)if(P.fn.transition!==O){if(f.hasClass(i.visible))return void s.debug("Transition already occurred on this image, skipping animation");f.transition(o.transition,o.duration,t)}else f.fadeIn(o.duration,t);else f.show()}},is:{onScreen:function(){return s.get.elementCalculations().onScreen},offScreen:function(){return s.get.elementCalculations().offScreen},visible:function(){return!(!s.cache||!s.cache.element)&&!(0===s.cache.element.width&&0===s.cache.element.offset.top)},verticallyScrollableContext:function(){var e=m.get(0)!==E&&m.css("overflow-y");return"auto"==e||"scroll"==e},horizontallyScrollableContext:function(){var e=m.get(0)!==E&&m.css("overflow-x");return"auto"==e||"scroll"==e}},refresh:function(){s.debug("Refreshing constants (width/height)"),"fixed"==o.type&&s.resetFixed(),s.reset(),s.save.position(),o.checkOnRefresh&&s.checkVisibility(),o.onRefresh.call(h)},resetFixed:function(){s.remove.fixed(),s.remove.occurred()},reset:function(){s.verbose("Resetting all cached values"),P.isPlainObject(s.cache)&&(s.cache.screen={},s.cache.element={})},checkVisibility:function(e){s.verbose("Checking visibility of element",s.cache.element),!v&&s.is.visible()&&(s.save.scroll(e),s.save.calculations(),s.passed(),s.passingReverse(),s.topVisibleReverse(),s.bottomVisibleReverse(),s.topPassedReverse(),s.bottomPassedReverse(),s.onScreen(),s.offScreen(),s.passing(),s.topVisible(),s.bottomVisible(),s.topPassed(),s.bottomPassed(),o.onUpdate&&o.onUpdate.call(h,s.get.elementCalculations()))},passed:function(e,t){var n=s.get.elementCalculations();if(e&&t)o.onPassed[e]=t;else{if(e!==O)return s.get.pixelsPassed(e)>n.pixelsPassed;n.passing&&P.each(o.onPassed,function(e,t){n.bottomVisible||n.pixelsPassed>s.get.pixelsPassed(e)?s.execute(t,e):o.once||s.remove.occurred(t)})}},onScreen:function(e){var t=s.get.elementCalculations(),n=e||o.onOnScreen,i="onScreen";if(e&&(s.debug("Adding callback for onScreen",e),o.onOnScreen=e),t.onScreen?s.execute(n,i):o.once||s.remove.occurred(i),e!==O)return t.onOnScreen},offScreen:function(e){var t=s.get.elementCalculations(),n=e||o.onOffScreen,i="offScreen";if(e&&(s.debug("Adding callback for offScreen",e),o.onOffScreen=e),t.offScreen?s.execute(n,i):o.once||s.remove.occurred(i),e!==O)return t.onOffScreen},passing:function(e){var t=s.get.elementCalculations(),n=e||o.onPassing,i="passing";if(e&&(s.debug("Adding callback for passing",e),o.onPassing=e),t.passing?s.execute(n,i):o.once||s.remove.occurred(i),e!==O)return t.passing},topVisible:function(e){var t=s.get.elementCalculations(),n=e||o.onTopVisible,i="topVisible";if(e&&(s.debug("Adding callback for top visible",e),o.onTopVisible=e),t.topVisible?s.execute(n,i):o.once||s.remove.occurred(i),e===O)return t.topVisible},bottomVisible:function(e){var t=s.get.elementCalculations(),n=e||o.onBottomVisible,i="bottomVisible";if(e&&(s.debug("Adding callback for bottom visible",e),o.onBottomVisible=e),t.bottomVisible?s.execute(n,i):o.once||s.remove.occurred(i),e===O)return t.bottomVisible},topPassed:function(e){var t=s.get.elementCalculations(),n=e||o.onTopPassed,i="topPassed";if(e&&(s.debug("Adding callback for top passed",e),o.onTopPassed=e),t.topPassed?s.execute(n,i):o.once||s.remove.occurred(i),e===O)return t.topPassed},bottomPassed:function(e){var t=s.get.elementCalculations(),n=e||o.onBottomPassed,i="bottomPassed";if(e&&(s.debug("Adding callback for bottom passed",e),o.onBottomPassed=e),t.bottomPassed?s.execute(n,i):o.once||s.remove.occurred(i),e===O)return t.bottomPassed},passingReverse:function(e){var t=s.get.elementCalculations(),n=e||o.onPassingReverse,i="passingReverse";if(e&&(s.debug("Adding callback for passing reverse",e),o.onPassingReverse=e),t.passing?o.once||s.remove.occurred(i):s.get.occurred("passing")&&s.execute(n,i),e!==O)return!t.passing},topVisibleReverse:function(e){var t=s.get.elementCalculations(),n=e||o.onTopVisibleReverse,i="topVisibleReverse";if(e&&(s.debug("Adding callback for top visible reverse",e),o.onTopVisibleReverse=e),t.topVisible?o.once||s.remove.occurred(i):s.get.occurred("topVisible")&&s.execute(n,i),e===O)return!t.topVisible},bottomVisibleReverse:function(e){var t=s.get.elementCalculations(),n=e||o.onBottomVisibleReverse,i="bottomVisibleReverse";if(e&&(s.debug("Adding callback for bottom visible reverse",e),o.onBottomVisibleReverse=e),t.bottomVisible?o.once||s.remove.occurred(i):s.get.occurred("bottomVisible")&&s.execute(n,i),e===O)return!t.bottomVisible},topPassedReverse:function(e){var t=s.get.elementCalculations(),n=e||o.onTopPassedReverse,i="topPassedReverse";if(e&&(s.debug("Adding callback for top passed reverse",e),o.onTopPassedReverse=e),t.topPassed?o.once||s.remove.occurred(i):s.get.occurred("topPassed")&&s.execute(n,i),e===O)return!t.onTopPassed},bottomPassedReverse:function(e){var t=s.get.elementCalculations(),n=e||o.onBottomPassedReverse,i="bottomPassedReverse";if(e&&(s.debug("Adding callback for bottom passed reverse",e),o.onBottomPassedReverse=e),t.bottomPassed?o.once||s.remove.occurred(i):s.get.occurred("bottomPassed")&&s.execute(n,i),e===O)return!t.bottomPassed},execute:function(e,t){var n=s.get.elementCalculations(),i=s.get.screenCalculations();(e=e||!1)&&(o.continuous?(s.debug("Callback being called continuously",t,n),e.call(h,n,i)):s.get.occurred(t)||(s.debug("Conditions met",t,n),e.call(h,n,i))),s.save.occurred(t)},remove:{fixed:function(){s.debug("Removing fixed position"),f.removeClass(i.fixed).css({position:"",top:"",left:"",zIndex:""}),o.onUnfixed.call(h)},placeholder:function(){s.debug("Removing placeholder content"),e&&e.remove()},occurred:function(e){if(e){var t=s.cache.occurred;t[e]!==O&&!0===t[e]&&(s.debug("Callback can now be called again",e),s.cache.occurred[e]=!1)}else s.cache.occurred={}}},save:{calculations:function(){s.verbose("Saving all calculations necessary to determine positioning"),s.save.direction(),s.save.screenCalculations(),s.save.elementCalculations()},occurred:function(e){e&&(s.cache.occurred[e]!==O&&!0===s.cache.occurred[e]||(s.verbose("Saving callback occurred",e),s.cache.occurred[e]=!0))},scroll:function(e){e=e+o.offset||m.scrollTop()+o.offset,s.cache.scroll=e},direction:function(){var e,t=s.get.scroll(),n=s.get.lastScroll();return e=n<t&&n?"down":t<n&&n?"up":"static",s.cache.direction=e,s.cache.direction},elementPosition:function(){var e=s.cache.element,t=s.get.screenSize();return s.verbose("Saving element position"),e.fits=e.height<t.height,e.offset=f.offset(),e.width=f.outerWidth(),e.height=f.outerHeight(),s.is.verticallyScrollableContext()&&(e.offset.top+=m.scrollTop()-m.offset().top),s.is.horizontallyScrollableContext()&&(e.offset.left+=m.scrollLeft-m.offset().left),s.cache.element=e},elementCalculations:function(){var e=s.get.screenCalculations(),t=s.get.elementPosition();return o.includeMargin?(t.margin={},t.margin.top=parseInt(f.css("margin-top"),10),t.margin.bottom=parseInt(f.css("margin-bottom"),10),t.top=t.offset.top-t.margin.top,t.bottom=t.offset.top+t.height+t.margin.bottom):(t.top=t.offset.top,t.bottom=t.offset.top+t.height),t.topPassed=e.top>=t.top,t.bottomPassed=e.top>=t.bottom,t.topVisible=e.bottom>=t.top&&!t.topPassed,t.bottomVisible=e.bottom>=t.bottom&&!t.bottomPassed,t.pixelsPassed=0,t.percentagePassed=0,t.onScreen=(t.topVisible||t.passing)&&!t.bottomPassed,t.passing=t.topPassed&&!t.bottomPassed,t.offScreen=!t.onScreen,t.passing&&(t.pixelsPassed=e.top-t.top,t.percentagePassed=(e.top-t.top)/t.height),s.cache.element=t,s.verbose("Updated element calculations",t),t},screenCalculations:function(){var e=s.get.scroll();return s.save.direction(),s.cache.screen.top=e,s.cache.screen.bottom=e+s.cache.screen.height,s.cache.screen},screenSize:function(){s.verbose("Saving window position"),s.cache.screen={height:m.height()}},position:function(){s.save.screenSize(),s.save.elementPosition()}},get:{pixelsPassed:function(e){var t=s.get.elementCalculations();return-1<e.search("%")?t.height*(parseInt(e,10)/100):parseInt(e,10)},occurred:function(e){return s.cache.occurred!==O&&s.cache.occurred[e]||!1},direction:function(){return s.cache.direction===O&&s.save.direction(),s.cache.direction},elementPosition:function(){return s.cache.element===O&&s.save.elementPosition(),s.cache.element},elementCalculations:function(){return s.cache.element===O&&s.save.elementCalculations(),s.cache.element},screenCalculations:function(){return s.cache.screen===O&&s.save.screenCalculations(),s.cache.screen},screenSize:function(){return s.cache.screen===O&&s.save.screenSize(),s.cache.screen},scroll:function(){return s.cache.scroll===O&&s.save.scroll(),s.cache.scroll},lastScroll:function(){return s.cache.screen===O?(s.debug("First scroll event, no last scroll could be found"),!1):s.cache.screen.top}},setting:function(e,t){if(P.isPlainObject(e))P.extend(!0,o,e);else{if(t===O)return o[e];o[e]=t}},internal:function(e,t){if(P.isPlainObject(e))P.extend(!0,s,e);else{if(t===O)return s[e];s[e]=t}},debug:function(){!o.silent&&o.debug&&(o.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,o.name+":"),s.debug.apply(console,arguments)))},verbose:function(){!o.silent&&o.verbose&&o.debug&&(o.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,o.name+":"),s.verbose.apply(console,arguments)))},error:function(){o.silent||(s.error=Function.prototype.bind.call(console.error,console,o.name+":"),s.error.apply(console,arguments))},performance:{log:function(e){var t,n;o.performance&&(n=(t=(new Date).getTime())-(C||t),C=t,w.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:h,"Execution Time":n})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=o.name+":",n=0;C=!1,clearTimeout(s.performance.timer),P.each(w,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",x&&(e+=" '"+x+"'"),(console.group!==O||console.table!==O)&&0<w.length&&(console.groupCollapsed(e),console.table?console.table(w):P.each(w,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),w=[]}},invoke:function(i,e,t){var o,a,n,r=g;return e=e||T,t=h||t,"string"==typeof i&&r!==O&&(i=i.split(/[\. ]/),o=i.length-1,P.each(i,function(e,t){var n=e!=o?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(P.isPlainObject(r[n])&&e!=o)r=r[n];else{if(r[n]!==O)return a=r[n],!1;if(!P.isPlainObject(r[t])||e==o)return r[t]!==O?a=r[t]:s.error(l.method,i),!1;r=r[t]}})),P.isFunction(a)?n=a.apply(t,e):a!==O&&(n=a),P.isArray(y)?y.push(n):y!==O?y=[y,n]:n!==O&&(y=n),a}},k?(g===O&&s.initialize(),g.save.scroll(),g.save.calculations(),s.invoke(S)):(g!==O&&g.invoke("destroy"),s.initialize())}),y!==O?y:this},P.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:E,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);
var Hooks=Hooks||{};function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}Hooks.actions=Hooks.actions||{},Hooks.filters=Hooks.filters||{},Hooks.add_action=function(e,t,n){void 0===n&&(n=10),Hooks.actions[e]=Hooks.actions[e]||[],Hooks.actions[e].push({priority:n,callback:t})},Hooks.add_filter=function(e,t,n){void 0===n&&(n=10),Hooks.filters[e]=Hooks.filters[e]||[],Hooks.filters[e].push({priority:n,callback:t})},Hooks.remove_action=function(n,i){Hooks.actions[n]=Hooks.actions[n]||[],Hooks.actions[n].forEach(function(e,t){e.callback===i&&Hooks.actions[n].splice(t,1)})},Hooks.remove_filter=function(n,i){Hooks.filters[n]=Hooks.filters[n]||[],Hooks.filters[n].forEach(function(e,t){e.callback===i&&Hooks.filters[n].splice(t,1)})},Hooks.do_action=function(e,t){var n=[];void 0!==Hooks.actions[e]&&0<Hooks.actions[e].length&&(Hooks.actions[e].forEach(function(e){n[e.priority]=n[e.priority]||[],n[e.priority].push(e.callback)}),n.forEach(function(e){e.forEach(function(e){e(t)})}))},Hooks.apply_filters=function(e,t,n){var i=[];return void 0!==Hooks.filters[e]&&0<Hooks.filters[e].length&&(Hooks.filters[e].forEach(function(e){i[e.priority]=i[e.priority]||[],i[e.priority].push(e.callback)}),i.forEach(function(e){e.forEach(function(e){t=e(t,n)})})),t},function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e;function d(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(p(e,t))return;return 1}function r(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function a(e,t){for(var n=[],i=0;i<e.length;++i)n.push(t(e[i],i));return n}function u(e,t){for(var n in t)p(t,n)&&(e[n]=t[n]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,i){return Qt(e,t,n,i,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=f(e),n=g.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function _(e){var t=h(NaN);return null!=e?u(f(t),e):f(t).userInvalidated=!0,t}var g=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1},y=d.momentProperties=[],t=!1;function v(e,t){var n,i,a;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=f(t)),r(t._locale)||(e._locale=t._locale),0<y.length)for(n=0;n<y.length;n++)r(a=t[i=y[n]])||(e[i]=a);return e}function w(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,d.updateOffset(this),t=!1)}function b(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function j(e){!1===d.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(a,r){var o=!0;return u(function(){if(null!=d.deprecationHandler&&d.deprecationHandler(null,a),o){for(var e,t,n=[],i=0;i<arguments.length;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])p(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}j(a+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),o=!1}return r.apply(this,arguments)},r)}var k={};function x(e,t){null!=d.deprecationHandler&&d.deprecationHandler(e,t),k[e]||(j(t),k[e]=!0)}function C(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e,t){var n,i=u({},e);for(n in t)p(t,n)&&(s(e[n])&&s(t[n])?(i[n]={},u(i[n],e[n]),u(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)p(e,n)&&!p(t,n)&&s(e[n])&&(i[n]=u({},i[n]));return i}function T(e){null!=e&&this.set(e)}d.suppressDeprecationWarnings=!1,d.deprecationHandler=null;var E=Object.keys||function(e){var t,n=[];for(t in e)p(e,t)&&n.push(t);return n};function Q(e,t,n){var i=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},I={};function R(e,t,n,i){var a="string"==typeof i?function(){return this[i]()}:i;e&&(I[e]=a),t&&(I[t[0]]=function(){return Q(a.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function M(e,t){return e.isValid()?(t=P(t,e.localeData()),A[t]=A[t]||function(i){for(var e,a=i.match(D),t=0,r=a.length;t<r;t++)I[a[t]]?a[t]=I[a[t]]:a[t]=(e=a[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<r;n++)t+=C(a[n])?a[n].call(e,i):a[n];return t}}(t),A[t](e)):e.localeData().invalidDate()}function P(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;0<=n&&N.test(e);)e=e.replace(N,i),N.lastIndex=0,--n;return e}var O={};function L(e,t){var n=e.toLowerCase();O[n]=O[n+"s"]=O[t]=e}function q(e){return"string"==typeof e?O[e]||O[e.toLowerCase()]:void 0}function z(e){var t,n,i={};for(n in e)p(e,n)&&(t=q(n))&&(i[t]=e[n]);return i}var F={};function U(e,t){F[e]=t}function H(e){return e%4==0&&e%100!=0||e%400==0}function B(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var t=+e,e=0;return e=0!=t&&isFinite(t)?B(t):e}function Y(t,n){return function(e){return null!=e?($(this,t,e),d.updateOffset(this,n),this):V(this,t)}}function V(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function $(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&H(e.year())&&1===e.month()&&29===e.date()?(n=W(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ee(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var G=/\d/,K=/\d\d/,X=/\d{3}/,J=/\d{4}/,Z=/[+-]?\d{6}/,ee=/\d\d?/,te=/\d\d\d\d?/,ne=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,ae=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,se=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,ce=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function de(e,n,i){fe[e]=C(n)?n:function(e,t){return e&&i?i:n}}function pe(e,t){return p(fe,e)?fe[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,a){return t||n||i||a})))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={},me={};function _e(e,n){var t,i=n;for("string"==typeof e&&(e=[e]),c(n)&&(i=function(e,t){t[n]=W(e)}),t=0;t<e.length;t++)me[e[t]]=i}function ge(e,a){_e(e,function(e,t,n,i){n._w=n._w||{},a(e,n._w,n,i)})}var ye,ve=0,we=1,be=2,je=3,ke=4,xe=5,Ce=6,Se=7,Te=8;function Ee(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?H(e)?29:28:31-n%7%2}ye=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},R("M",["MM",2],"Mo",function(){return this.month()+1}),R("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),R("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),U("month",8),de("M",ee),de("MM",ee,K),de("MMM",function(e,t){return t.monthsShortRegex(e)}),de("MMMM",function(e,t){return t.monthsRegex(e)}),_e(["M","MM"],function(e,t){t[we]=W(e)-1}),_e(["MMM","MMMM"],function(e,t,n,i){i=n._locale.monthsParse(e,i,n._strict);null!=i?t[we]=i:f(n).invalidMonth=e});var Qe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ne=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ae=ue,Ie=ue;function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=W(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ee(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Me(e){return null!=e?(Re(this,e),d.updateOffset(this,!0),this):V(this,"Month")}function Pe(){function e(e,t){return t.length-e.length}for(var t,n=[],i=[],a=[],r=0;r<12;r++)t=h([2e3,r]),n.push(this.monthsShort(t,"")),i.push(this.months(t,"")),a.push(this.months(t,"")),a.push(this.monthsShort(t,""));for(n.sort(e),i.sort(e),a.sort(e),r=0;r<12;r++)n[r]=he(n[r]),i[r]=he(i[r]);for(r=0;r<24;r++)a[r]=he(a[r]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Oe(e){return H(e)?366:365}R("Y",0,0,function(){var e=this.year();return e<=9999?Q(e,4):"+"+e}),R(0,["YY",2],0,function(){return this.year()%100}),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),L("year","y"),U("year",1),de("Y",se),de("YY",ee,K),de("YYYY",ae,J),de("YYYYY",re,Z),de("YYYYYY",re,Z),_e(["YYYYY","YYYYYY"],ve),_e("YYYY",function(e,t){t[ve]=2===e.length?d.parseTwoDigitYear(e):W(e)}),_e("YY",function(e,t){t[ve]=d.parseTwoDigitYear(e)}),_e("Y",function(e,t){t[ve]=parseInt(e,10)}),d.parseTwoDigitYear=function(e){return W(e)+(68<W(e)?1900:2e3)};var Le=Y("FullYear",!0);function qe(e,t,n,i,a,r,o){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,i,a,r,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,a,r,o),s}function ze(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,n){n=7+t-n;return n-(7+ze(e,0,n).getUTCDay()-t)%7-1}function Ue(e,t,n,i,a){var r,a=1+7*(t-1)+(7+n-i)%7+Fe(e,i,a),a=a<=0?Oe(r=e-1)+a:a>Oe(e)?(r=e+1,a-Oe(e)):(r=e,a);return{year:r,dayOfYear:a}}function He(e,t,n){var i,a,r=Fe(e.year(),t,n),r=Math.floor((e.dayOfYear()-r-1)/7)+1;return r<1?i=r+Be(a=e.year()-1,t,n):r>Be(e.year(),t,n)?(i=r-Be(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function Be(e,t,n){var i=Fe(e,t,n),n=Fe(e+1,t,n);return(Oe(e)-i+n)/7}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),U("week",5),U("isoWeek",5),de("w",ee),de("ww",ee,K),de("W",ee),de("WW",ee,K),ge(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=W(e)});function We(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("d",0,"do","day"),R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),de("d",ee),de("e",ee),de("E",ee),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,i){i=n._locale.weekdaysParse(e,i,n._strict);null!=i?t.d=i:f(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,i){t[i]=W(e)});var Ye="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ge=ue,Ke=ue,Xe=ue;function Je(){function e(e,t){return t.length-e.length}for(var t,n,i,a=[],r=[],o=[],s=[],l=0;l<7;l++)i=h([2e3,1]).day(l),t=he(this.weekdaysMin(i,"")),n=he(this.weekdaysShort(i,"")),i=he(this.weekdays(i,"")),a.push(t),r.push(n),o.push(i),s.push(t),s.push(n),s.push(i);a.sort(e),r.sort(e),o.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ze(){return this.hours()%12||12}function et(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Ze),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+Ze.apply(this)+Q(this.minutes(),2)}),R("hmmss",0,0,function(){return""+Ze.apply(this)+Q(this.minutes(),2)+Q(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+Q(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+Q(this.minutes(),2)+Q(this.seconds(),2)}),et("a",!0),et("A",!1),L("hour","h"),U("hour",13),de("a",tt),de("A",tt),de("H",ee),de("h",ee),de("k",ee),de("HH",ee,K),de("hh",ee,K),de("kk",ee,K),de("hmm",te),de("hmmss",ne),de("Hmm",te),de("Hmmss",ne),_e(["H","HH"],je),_e(["k","kk"],function(e,t,n){e=W(e);t[je]=24===e?0:e}),_e(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_e(["h","hh"],function(e,t,n){t[je]=W(e),f(n).bigHour=!0}),_e("hmm",function(e,t,n){var i=e.length-2;t[je]=W(e.substr(0,i)),t[ke]=W(e.substr(i)),f(n).bigHour=!0}),_e("hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[je]=W(e.substr(0,i)),t[ke]=W(e.substr(i,2)),t[xe]=W(e.substr(a)),f(n).bigHour=!0}),_e("Hmm",function(e,t,n){var i=e.length-2;t[je]=W(e.substr(0,i)),t[ke]=W(e.substr(i))}),_e("Hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[je]=W(e.substr(0,i)),t[ke]=W(e.substr(i,2)),t[xe]=W(e.substr(a))});var nt=Y("Hours",!0);var it,at={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Qe,monthsShort:De,week:{dow:0,doy:6},weekdays:Ye,weekdaysMin:$e,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},rt={},ot={};function st(e){return e&&e.toLowerCase().replace("_","-")}function lt(e){for(var t,n,i,a,r=0;r<e.length;){for(t=(a=st(e[r]).split("-")).length,n=(n=st(e[r+1]))?n.split("-"):null;0<t;){if(i=ct(a.slice(0,t).join("-")))return i;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i+=1)if(e[i]!==t[i])return i;return n}(a,n)>=t-1)break;t--}r++}return it}function ct(t){var e;if(void 0===rt[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=it._abbr,require("./locale/"+t),ut(e)}catch(e){rt[t]=null}return rt[t]}function ut(e,t){return e&&((t=r(t)?pt(e):dt(e,t))?it=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),it._abbr}function dt(e,t){if(null===t)return delete rt[e],null;var n,i=at;if(t.abbr=e,null!=rt[e])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])i=rt[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return ot[t.parentLocale]||(ot[t.parentLocale]=[]),ot[t.parentLocale].push({name:e,config:t}),null;i=n._config}return rt[e]=new T(S(i,t)),ot[e]&&ot[e].forEach(function(e){dt(e.name,e.config)}),ut(e),rt[e]}function pt(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return it;if(!o(e)){if(t=ct(e))return t;e=[e]}return lt(e)}function ht(e){var t=e._a;return t&&-2===f(e).overflow&&(t=t[we]<0||11<t[we]?we:t[be]<1||t[be]>Ee(t[ve],t[we])?be:t[je]<0||24<t[je]||24===t[je]&&(0!==t[ke]||0!==t[xe]||0!==t[Ce])?je:t[ke]<0||59<t[ke]?ke:t[xe]<0||59<t[xe]?xe:t[Ce]<0||999<t[Ce]?Ce:-1,f(e)._overflowDayOfYear&&(t<ve||be<t)&&(t=be),f(e)._overflowWeeks&&-1===t&&(t=Se),f(e)._overflowWeekday&&-1===t&&(t=Te),f(e).overflow=t),e}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T|)(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T|)(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],yt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vt=/^\/?Date\((-?\d+)/i,wt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function jt(e){var t,n,i,a,r,o,s=e._i,l=ft.exec(s)||mt.exec(s);if(l){for(f(e).iso=!0,t=0,n=gt.length;t<n;t++)if(gt[t][1].exec(l[1])){a=gt[t][0],i=!1!==gt[t][2];break}if(null!=a){if(l[3]){for(t=0,n=yt.length;t<n;t++)if(yt[t][1].exec(l[3])){r=(l[2]||" ")+yt[t][0];break}if(null==r)return void(e._isValid=!1)}if(i||null==r){if(l[4]){if(!_t.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=a+(r||"")+(o||""),Tt(e)}else e._isValid=!1}else e._isValid=!1}else e._isValid=!1}function kt(e,t,n,i,a,r){a=[function(e){e=parseInt(e,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(e),De.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return r&&a.push(parseInt(r,10)),a}function xt(e){var t,n,i,a,r=wt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));r?(t=kt(r[4],r[3],r[2],r[5],r[6],r[7]),n=r[1],i=t,a=e,n&&Ve.indexOf(n)!==new Date(i[0],i[1],i[2]).getDay()?(f(a).weekdayMismatch=!0,a._isValid=!1):(e._a=t,e._tzm=(a=r[8],t=r[9],r=r[10],a?bt[a]:t?0:60*(((t=parseInt(r,10))-(r=t%100))/100)+r),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0)):e._isValid=!1}function Ct(e,t,n){return null!=e?e:null!=t?t:n}function St(e){var t,n,i,a,r,o=[];if(!e._d){for(a=e,r=new Date(d.now()),n=a._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],e._w&&null==e._a[be]&&null==e._a[we]&&function(e){var t,n,i,a,r,o,s,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,o=4,n=Ct(t.GG,e._a[ve],He(Dt(),1,4).year),i=Ct(t.W,1),((a=Ct(t.E,1))<1||7<a)&&(s=!0)):(r=e._locale._week.dow,o=e._locale._week.doy,l=He(Dt(),r,o),n=Ct(t.gg,e._a[ve],l.year),i=Ct(t.w,l.week),null!=t.d?((a=t.d)<0||6<a)&&(s=!0):null!=t.e?(a=t.e+r,(t.e<0||6<t.e)&&(s=!0)):a=r);i<1||i>Be(n,r,o)?f(e)._overflowWeeks=!0:null!=s?f(e)._overflowWeekday=!0:(o=Ue(n,i,a,r,o),e._a[ve]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(i=Ct(e._a[ve],n[ve]),(e._dayOfYear>Oe(i)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),i=ze(i,0,e._dayOfYear),e._a[we]=i.getUTCMonth(),e._a[be]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=n[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[je]&&0===e._a[ke]&&0===e._a[xe]&&0===e._a[Ce]&&(e._nextDay=!0,e._a[je]=0),e._d=(e._useUTC?ze:qe).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[je]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(f(e).weekdayMismatch=!0)}}function Tt(e){if(e._f!==d.ISO_8601)if(e._f!==d.RFC_2822){e._a=[],f(e).empty=!0;for(var t,n,i,a,r,o=""+e._i,s=o.length,l=0,c=P(e._f,e._locale).match(D)||[],u=0;u<c.length;u++)n=c[u],(t=(o.match(pe(n,e))||[])[0])&&(0<(a=o.substr(0,o.indexOf(t))).length&&f(e).unusedInput.push(a),o=o.slice(o.indexOf(t)+t.length),l+=t.length),I[n]?(t?f(e).empty=!1:f(e).unusedTokens.push(n),i=n,r=e,null!=(a=t)&&p(me,i)&&me[i](a,r._a,r,i)):e._strict&&!t&&f(e).unusedTokens.push(n);f(e).charsLeftOver=s-l,0<o.length&&f(e).unusedInput.push(o),e._a[je]<=12&&!0===f(e).bigHour&&0<e._a[je]&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[je]=function(e,t,n){if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((n=e.isPM(n))&&t<12&&(t+=12),t=n||12!==t?t:0):t}(e._locale,e._a[je],e._meridiem),null!==(s=f(e).era)&&(e._a[ve]=e._locale.erasConvertYear(s,e._a[ve])),St(e),ht(e)}else xt(e);else jt(e)}function Et(e){var t=e._i,n=e._f;return e._locale=e._locale||pt(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new w(ht(t)):(i(t)?e._d=t:o(n)?function(e){var t,n,i,a,r,o,s=!1;if(0===e._f.length)return f(e).invalidFormat=!0,e._d=new Date(NaN);for(a=0;a<e._f.length;a++)r=0,o=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Tt(t),m(t)&&(o=!0),r+=f(t).charsLeftOver,r+=10*f(t).unusedTokens.length,f(t).score=r,s?r<i&&(i=r,n=t):(null==i||r<i||o)&&(i=r,n=t,o&&(s=!0));u(e,n||t)}(e):n?Tt(e):r(n=(t=e)._i)?t._d=new Date(d.now()):i(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(e){var t=vt.exec(e._i);null===t?(jt(e),!1===e._isValid&&(delete e._isValid,xt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:d.createFromInputFallback(e)))):e._d=new Date(+t[1])}(t):o(n)?(t._a=a(n.slice(0),function(e){return parseInt(e,10)}),St(t)):s(n)?function(e){var t,n;e._d||(n=void 0===(t=z(e._i)).day?t.date:t.day,e._a=a([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),St(e))}(t):c(n)?t._d=new Date(n):d.createFromInputFallback(t),m(e)||(e._d=null),e))}function Qt(e,t,n,i,a){var r={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(s(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=e,r._f=t,r._strict=i,(r=new w(ht(Et(r=r))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function Dt(e,t,n,i){return Qt(e,t,n,i,!1)}d.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),d.ISO_8601=function(){},d.RFC_2822=function(){};var Nt=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()}),At=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:_()});function It(e,t){var n,i;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return Dt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Rt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Mt(e){var t=z(e),n=t.year||0,i=t.quarter||0,a=t.month||0,r=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,e=t.millisecond||0;this._isValid=function(e){var t,n,i=!1;for(t in e)if(p(e,t)&&(-1===ye.call(Rt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Rt.length;++n)if(e[Rt[n]]){if(i)return!1;parseFloat(e[Rt[n]])!==W(e[Rt[n]])&&(i=!0)}return!0}(t),this._milliseconds=+e+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*r,this._months=+a+3*i+12*n,this._data={},this._locale=pt(),this._bubble()}function Pt(e){return e instanceof Mt}function Ot(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,n){R(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+Q(~~(e/60),2)+n+Q(~~e%60,2)})}Lt("Z",":"),Lt("ZZ",""),de("Z",ce),de("ZZ",ce),_e(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=zt(ce,e)});var qt=/([\+\-]|\d\d)/gi;function zt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(qt)||["-",0,0])[1]+W(e[2]))?0:"+"===e[0]?t:-t}function Ft(e,t){var n;return t._isUTC?(n=t.clone(),t=(b(e)||i(e)?e:Dt(e)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+t),d.updateOffset(n,!1),n):Dt(e).local()}function Ut(e){return-Math.round(e._d.getTimezoneOffset())}function Ht(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}d.updateOffset=function(){};var Bt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Yt(e,t){var n,i=e,a=null;return Pt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(a=Bt.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:W(a[be])*n,h:W(a[je])*n,m:W(a[ke])*n,s:W(a[xe])*n,ms:W(Ot(1e3*a[Ce]))*n}):(a=Wt.exec(e))?(n="-"===a[1]?-1:1,i={y:Vt(a[2],n),M:Vt(a[3],n),w:Vt(a[4],n),d:Vt(a[5],n),h:Vt(a[6],n),m:Vt(a[7],n),s:Vt(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(n=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Ft(t,e),e.isBefore(t)?n=$t(e,t):((n=$t(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Dt(i.from),Dt(i.to)),(i={}).ms=n.milliseconds,i.M=n.months),i=new Mt(i),Pt(e)&&p(e,"_locale")&&(i._locale=e._locale),Pt(e)&&p(e,"_isValid")&&(i._isValid=e._isValid),i}function Vt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function $t(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(i,a){return function(e,t){var n;return null===t||isNaN(+t)||(x(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Kt(this,Yt(e,t),i),this}}function Kt(e,t,n,i){var a=t._milliseconds,r=Ot(t._days),t=Ot(t._months);e.isValid()&&(i=null==i||i,t&&Re(e,V(e,"Month")+t*n),r&&$(e,"Date",V(e,"Date")+r*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&d.updateOffset(e,r||t))}Yt.fn=Mt.prototype,Yt.invalid=function(){return Yt(NaN)};var Xt=Gt(1,"add"),ue=Gt(-1,"subtract");function Jt(e){return"string"==typeof e||e instanceof String}function Zt(e){return b(e)||i(e)||Jt(e)||c(e)||function(t){var e=o(t),n=!1;e&&(n=0===t.filter(function(e){return!c(e)&&Jt(t)}).length);return e&&n}(e)||function(e){var t,n,i=s(e)&&!l(e),a=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<r.length;t+=1)n=r[t],a=a||p(e,n);return i&&a}(e)||null==e}function en(e,t){if(e.date()<t.date())return-en(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months"),i=t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(1+n,"months")-i);return-(n+i)||0}function tn(e){return void 0===e?this._locale._abbr:(null!=(e=pt(e))&&(this._locale=e),this)}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";te=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function nn(){return this._locale}var an=126227808e5;function rn(e,t){return(e%t+t)%t}function on(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-an:new Date(e,t,n).valueOf()}function sn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-an:Date.UTC(e,t,n)}function ln(e,t){return t.erasAbbrRegex(e)}function cn(){for(var e=[],t=[],n=[],i=[],a=this.eras(),r=0,o=a.length;r<o;++r)t.push(he(a[r].name)),e.push(he(a[r].abbr)),n.push(he(a[r].narrow)),i.push(he(a[r].name)),i.push(he(a[r].abbr)),i.push(he(a[r].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function un(e,t){R(0,[e,e.length],0,t)}function dn(e,t,n,i,a){var r;return null==e?He(this,i,a).year:(r=Be(e,i,a),function(e,t,n,i,a){a=Ue(e,t,n,i,a),a=ze(a.year,0,a.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t=r<t?r:t,n,i,a))}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),de("N",ln),de("NN",ln),de("NNN",ln),de("NNNN",function(e,t){return t.erasNameRegex(e)}),de("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),_e(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){i=n._locale.erasParse(e,i,n._strict);i?f(n).era=i:f(n).invalidEra=e}),de("y",oe),de("yy",oe),de("yyy",oe),de("yyyy",oe),de("yo",function(e,t){return t._eraYearOrdinalRegex||oe}),_e(["y","yy","yyy","yyyy"],ve),_e(["yo"],function(e,t,n,i){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ve]=n._locale.eraYearOrdinalParse(e,a):t[ve]=parseInt(e,10)}),R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),un("gggg","weekYear"),un("ggggg","weekYear"),un("GGGG","isoWeekYear"),un("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),de("G",se),de("g",se),de("GG",ee,K),de("gg",ee,K),de("GGGG",ae,J),de("gggg",ae,J),de("GGGGG",re,Z),de("ggggg",re,Z),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=W(e)}),ge(["gg","GG"],function(e,t,n,i){t[i]=d.parseTwoDigitYear(e)}),R("Q",0,"Qo","quarter"),L("quarter","Q"),U("quarter",7),de("Q",G),_e("Q",function(e,t){t[we]=3*(W(e)-1)}),R("D",["DD",2],"Do","date"),L("date","D"),U("date",9),de("D",ee),de("DD",ee,K),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),_e(["D","DD"],be),_e("Do",function(e,t){t[be]=W(e.match(ee)[0])});ne=Y("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),U("dayOfYear",4),de("DDD",ie),de("DDDD",X),_e(["DDD","DDDD"],function(e,t,n){n._dayOfYear=W(e)}),R("m",["mm",2],0,"minute"),L("minute","m"),U("minute",14),de("m",ee),de("mm",ee,K),_e(["m","mm"],ke);Qe=Y("Minutes",!1);R("s",["ss",2],0,"second"),L("second","s"),U("second",15),de("s",ee),de("ss",ee,K),_e(["s","ss"],xe);var pn,Ye=Y("Seconds",!1);for(R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),U("millisecond",16),de("S",ie,G),de("SS",ie,K),de("SSS",ie,X),pn="SSSS";pn.length<=9;pn+="S")de(pn,oe);function hn(e,t){t[Ce]=W(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")_e(pn,hn);$e=Y("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");ae=w.prototype;function fn(e){return e}ae.add=Xt,ae.calendar=function(e,t){1===arguments.length&&(Zt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=s(e)&&!l(e),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a=0;a<i.length;a+=1)n=n||p(e,i[a]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0));var n=e||Dt(),e=Ft(n,this).startOf("day"),e=d.calendarFormat(this,e)||"sameElse",t=t&&(C(t[e])?t[e].call(this,n):t[e]);return this.format(t||this.localeData().calendar(e,this,Dt(n)))},ae.clone=function(){return new w(this)},ae.diff=function(e,t,n){var i,a,r;if(!this.isValid())return NaN;if(!(i=Ft(e,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),t=q(t)){case"year":r=en(this,i)/12;break;case"month":r=en(this,i);break;case"quarter":r=en(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-a)/864e5;break;case"week":r=(this-i-a)/6048e5;break;default:r=this-i}return n?r:B(r)},ae.endOf=function(e){var t,n;if(void 0===(e=q(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?sn:on,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-rn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-rn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-rn(t,1e3)-1}return this._d.setTime(t),d.updateOffset(this,!0),this},ae.format=function(e){return e=e||(this.isUtc()?d.defaultFormatUtc:d.defaultFormat),e=M(this,e),this.localeData().postformat(e)},ae.from=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Dt(e).isValid())?Yt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ae.fromNow=function(e){return this.from(Dt(),e)},ae.to=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Dt(e).isValid())?Yt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ae.toNow=function(e){return this.to(Dt(),e)},ae.get=function(e){return C(this[e=q(e)])?this[e]():this},ae.invalidAt=function(){return f(this).overflow},ae.isAfter=function(e,t){return e=b(e)?e:Dt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=q(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},ae.isBefore=function(e,t){return e=b(e)?e:Dt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=q(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},ae.isBetween=function(e,t,n,i){return e=b(e)?e:Dt(e),t=b(t)?t:Dt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&(("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n)))},ae.isSame=function(e,t){var e=b(e)?e:Dt(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=q(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},ae.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},ae.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},ae.isValid=function(){return m(this)},ae.lang=te,ae.locale=tn,ae.localeData=nn,ae.max=At,ae.min=Nt,ae.parsingFlags=function(){return u({},f(this))},ae.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)p(e,t)&&n.push({unit:t,priority:F[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=z(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(C(this[e=q(e)]))return this[e](t);return this},ae.startOf=function(e){var t,n;if(void 0===(e=q(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?sn:on,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=rn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=rn(t,6e4);break;case"second":t=this._d.valueOf(),t-=rn(t,1e3)}return this._d.setTime(t),d.updateOffset(this,!0),this},ae.subtract=ue,ae.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},ae.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},ae.toDate=function(){return new Date(this.valueOf())},ae.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e;return(e=t?this.clone().utc():this).year()<0||9999<e.year()?M(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",M(e,"Z")):M(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ae.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",n="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+t+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(ae[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ae.toJSON=function(){return this.isValid()?this.toISOString():null},ae.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ae.unix=function(){return Math.floor(this.valueOf()/1e3)},ae.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ae.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ae.eraName=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},ae.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},ae.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},ae.eraYear=function(){for(var e,t,n=this.localeData().eras(),i=0,a=n.length;i<a;++i)if(e=n[i].since<=n[i].until?1:-1,t=this.startOf("day").valueOf(),n[i].since<=t&&t<=n[i].until||n[i].until<=t&&t<=n[i].since)return(this.year()-d(n[i].since).year())*e+n[i].offset;return this.year()},ae.year=Le,ae.isLeapYear=function(){return H(this.year())},ae.weekYear=function(e){return dn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ae.isoWeekYear=function(e){return dn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ae.quarter=ae.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ae.month=Me,ae.daysInMonth=function(){return Ee(this.year(),this.month())},ae.week=ae.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ae.isoWeek=ae.isoWeeks=function(e){var t=He(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ae.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},ae.weeksInWeekYear=function(){var e=this.localeData()._week;return Be(this.weekYear(),e.dow,e.doy)},ae.isoWeeksInYear=function(){return Be(this.year(),1,4)},ae.isoWeeksInISOWeekYear=function(){return Be(this.isoWeekYear(),1,4)},ae.date=ne,ae.day=ae.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-i,"d")):i},ae.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ae.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t=(t=e,e=this.localeData(),"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?t:t-7)},ae.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ae.hour=ae.hours=nt,ae.minute=ae.minutes=Qe,ae.second=ae.seconds=Ye,ae.millisecond=ae.milliseconds=$e,ae.utcOffset=function(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?a:Ut(this);if("string"==typeof e){if(null===(e=zt(ce,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Ut(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Kt(this,Yt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this},ae.utc=function(e){return this.utcOffset(0,e)},ae.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ut(this),"m")),this},ae.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=zt(le,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},ae.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ae.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ae.isLocal=function(){return!!this.isValid()&&!this._isUTC},ae.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ae.isUtc=Ht,ae.isUTC=Ht,ae.zoneAbbr=function(){return this._isUTC?"UTC":""},ae.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ae.dates=n("dates accessor is deprecated. Use date instead.",ne),ae.months=n("months accessor is deprecated. Use month instead",Me),ae.years=n("years accessor is deprecated. Use year instead",Le),ae.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),ae.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=Et(t))._a?(e=(t._isUTC?h:Dt)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0,o=0;o<i;o++)(n&&e[o]!==t[o]||!n&&W(e[o])!==W(t[o]))&&r++;return r+a}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});J=T.prototype;function mn(e,t,n,i){var a=pt(),t=h().set(i,t);return a[n](t,e)}function _n(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");for(var i=[],a=0;a<12;a++)i[a]=mn(e,a,n,"month");return i}function gn(e,t,n,i){t=("boolean"==typeof e?c(t)&&(n=t,t=void 0):(t=e,e=!1,c(n=t)&&(n=t,t=void 0)),t||"");var a,r=pt(),o=e?r._week.dow:0,s=[];if(null!=n)return mn(t,(n+o)%7,i,"day");for(a=0;a<7;a++)s[a]=mn(t,(a+o)%7,i,"day");return s}J.calendar=function(e,t,n){return C(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},J.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},J.invalidDate=function(){return this._invalidDate},J.ordinal=function(e){return this._ordinal.replace("%d",e)},J.preparse=fn,J.postformat=fn,J.relativeTime=function(e,t,n,i){var a=this._relativeTime[n];return C(a)?a(e,t,n,i):a.replace(/%d/i,e)},J.pastFuture=function(e,t){return C(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},J.set=function(e){var t,n;for(n in e)p(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},J.eras=function(e,t){for(var n,i=this._eras||pt("en")._eras,a=0,r=i.length;a<r;++a)switch("string"==typeof i[a].since&&(n=d(i[a].since).startOf("day"),i[a].since=n.valueOf()),typeof i[a].until){case"undefined":i[a].until=1/0;break;case"string":n=d(i[a].until).startOf("day").valueOf(),i[a].until=n.valueOf()}return i},J.erasParse=function(e,t,n){var i,a,r,o,s,l=this.eras();for(e=e.toUpperCase(),i=0,a=l.length;i<a;++i)if(r=l[i].name.toUpperCase(),o=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[i];break;case"NNNN":if(r===e)return l[i];break;case"NNNNN":if(s===e)return l[i]}else if(0<=[r,o,s].indexOf(e))return l[i]},J.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?d(e.since).year():d(e.since).year()+(t-e.offset)*n},J.erasAbbrRegex=function(e){return p(this,"_erasAbbrRegex")||cn.call(this),e?this._erasAbbrRegex:this._erasRegex},J.erasNameRegex=function(e){return p(this,"_erasNameRegex")||cn.call(this),e?this._erasNameRegex:this._erasRegex},J.erasNarrowRegex=function(e){return p(this,"_erasNarrowRegex")||cn.call(this),e?this._erasNarrowRegex:this._erasRegex},J.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Ne).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},J.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Ne.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},J.monthsParse=function(e,t,n){var i,a;if(this._monthsParseExact)return function(e,t,n){var i,a,r,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=h([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=ye.call(this._shortMonthsParse,e))?a:null:-1!==(a=ye.call(this._longMonthsParse,e))?a:null:"MMM"===t?-1!==(a=ye.call(this._shortMonthsParse,e))||-1!==(a=ye.call(this._longMonthsParse,e))?a:null:-1!==(a=ye.call(this._longMonthsParse,e))||-1!==(a=ye.call(this._shortMonthsParse,e))?a:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=h([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},J.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=Ie),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},J.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Ae),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},J.week=function(e){return He(e,this._week.dow,this._week.doy).week},J.firstDayOfYear=function(){return this._week.doy},J.firstDayOfWeek=function(){return this._week.dow},J.weekdays=function(e,t){return t=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?We(t,this._week.dow):e?t[e.day()]:t},J.weekdaysMin=function(e){return!0===e?We(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},J.weekdaysShort=function(e){return!0===e?We(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},J.weekdaysParse=function(e,t,n){var i,a;if(this._weekdaysParseExact)return function(e,t,n){var i,a,r,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=ye.call(this._weekdaysParse,e))?a:null:"ddd"===t?-1!==(a=ye.call(this._shortWeekdaysParse,e))?a:null:-1!==(a=ye.call(this._minWeekdaysParse,e))?a:null:"dddd"===t?-1!==(a=ye.call(this._weekdaysParse,e))||-1!==(a=ye.call(this._shortWeekdaysParse,e))||-1!==(a=ye.call(this._minWeekdaysParse,e))?a:null:"ddd"===t?-1!==(a=ye.call(this._shortWeekdaysParse,e))||-1!==(a=ye.call(this._weekdaysParse,e))||-1!==(a=ye.call(this._minWeekdaysParse,e))?a:null:-1!==(a=ye.call(this._minWeekdaysParse,e))||-1!==(a=ye.call(this._weekdaysParse,e))||-1!==(a=ye.call(this._shortWeekdaysParse,e))?a:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},J.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=Ge),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},J.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ke),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},J.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},J.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},J.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ut("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===W(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),d.lang=n("moment.lang is deprecated. Use moment.locale instead.",ut),d.langData=n("moment.langData is deprecated. Use moment.localeData instead.",pt);var yn=Math.abs;function vn(e,t,n,i){n=Yt(t,n);return e._milliseconds+=i*n._milliseconds,e._days+=i*n._days,e._months+=i*n._months,e._bubble()}function wn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function jn(e){return 146097*e/4800}function kn(e){return function(){return this.as(e)}}re=kn("ms"),Z=kn("s"),G=kn("m"),K=kn("h"),ie=kn("d"),X=kn("w"),Xt=kn("M"),At=kn("Q"),Nt=kn("y");function xn(e){return function(){return this.isValid()?this._data[e]:NaN}}ue=xn("milliseconds"),nt=xn("seconds"),Qe=xn("minutes"),Ye=xn("hours"),$e=xn("days"),ne=xn("months"),Le=xn("years");var Cn=Math.round,Sn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tn(e,t,n,i){var a=Yt(e).abs(),r=Cn(a.as("s")),o=Cn(a.as("m")),s=Cn(a.as("h")),l=Cn(a.as("d")),c=Cn(a.as("M")),u=Cn(a.as("w")),a=Cn(a.as("y")),l=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return(l=(l=null!=n.w?l||u<=1&&["w"]||u<n.w&&["ww",u]:l)||c<=1&&["M"]||c<n.M&&["MM",c]||a<=1&&["y"]||["yy",a])[2]=t,l[3]=0<+e,l[4]=i,function(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}.apply(null,l)}var En=Math.abs;function Qn(e){return(0<e)-(e<0)||+e}function Dn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,a,r,o,s=En(this._milliseconds)/1e3,l=En(this._days),c=En(this._months),u=this.asSeconds();return u?(e=B(s/60),t=B(e/60),s%=60,e%=60,n=B(c/12),c%=12,i=s?s.toFixed(3).replace(/\.?0+$/,""):"",a=Qn(this._months)!==Qn(u)?"-":"",r=Qn(this._days)!==Qn(u)?"-":"",o=Qn(this._milliseconds)!==Qn(u)?"-":"",(u<0?"-":"")+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(l?r+l+"D":"")+(t||e||s?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(s?o+i+"S":"")):"P0D"}J=Mt.prototype;return J.isValid=function(){return this._isValid},J.abs=function(){var e=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),e.milliseconds=yn(e.milliseconds),e.seconds=yn(e.seconds),e.minutes=yn(e.minutes),e.hours=yn(e.hours),e.months=yn(e.months),e.years=yn(e.years),this},J.add=function(e,t){return vn(this,e,t,1)},J.subtract=function(e,t){return vn(this,e,t,-1)},J.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=q(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(jn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},J.asMilliseconds=re,J.asSeconds=Z,J.asMinutes=G,J.asHours=K,J.asDays=ie,J.asWeeks=X,J.asMonths=Xt,J.asQuarters=At,J.asYears=Nt,J.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},J._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,i=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*wn(jn(n)+t),n=t=0),i.milliseconds=e%1e3,e=B(e/1e3),i.seconds=e%60,e=B(e/60),i.minutes=e%60,e=B(e/60),i.hours=e%24,t+=B(e/24),n+=e=B(bn(t)),t-=wn(jn(e)),e=B(n/12),n%=12,i.days=t,i.months=n,i.years=e,this},J.clone=function(){return Yt(this)},J.get=function(e){return e=q(e),this.isValid()?this[e+"s"]():NaN},J.milliseconds=ue,J.seconds=nt,J.minutes=Qe,J.hours=Ye,J.days=$e,J.weeks=function(){return B(this.days()/7)},J.months=ne,J.years=Le,J.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,i=Sn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(i=Object.assign({},Sn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),t=this.localeData(),i=Tn(this,!n,i,t),n&&(i=t.pastFuture(+this,i)),t.postformat(i)},J.toISOString=Dn,J.toString=Dn,J.toJSON=Dn,J.locale=tn,J.localeData=nn,J.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dn),J.lang=te,R("X",0,0,"unix"),R("x",0,0,"valueOf"),de("x",se),de("X",/[+-]?\d+(\.\d{1,3})?/),_e("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),_e("x",function(e,t,n){n._d=new Date(W(e))}),d.version="2.26.0",e=Dt,d.fn=ae,d.min=function(){return It("isBefore",[].slice.call(arguments,0))},d.max=function(){return It("isAfter",[].slice.call(arguments,0))},d.now=function(){return Date.now?Date.now():+new Date},d.utc=h,d.unix=function(e){return Dt(1e3*e)},d.months=function(e,t){return _n(e,t,"months")},d.isDate=i,d.locale=ut,d.invalid=_,d.duration=Yt,d.isMoment=b,d.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},d.parseZone=function(){return Dt.apply(null,arguments).parseZone()},d.localeData=pt,d.isDuration=Pt,d.monthsShort=function(e,t){return _n(e,t,"monthsShort")},d.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},d.defineLocale=dt,d.updateLocale=function(e,t){var n,i;return null!=t?(i=at,null!=rt[e]&&null!=rt[e].parentLocale?rt[e].set(S(rt[e]._config,t)):(t=S(i=null!=(n=ct(e))?n._config:i,t),null==n&&(t.abbr=e),(t=new T(t)).parentLocale=rt[e],rt[e]=t),ut(e)):null!=rt[e]&&(null!=rt[e].parentLocale?(rt[e]=rt[e].parentLocale,e===ut()&&ut(e)):null!=rt[e]&&delete rt[e]),rt[e]},d.locales=function(){return E(rt)},d.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},d.normalizeUnits=q,d.relativeTimeRounding=function(e){return void 0===e?Cn:"function"==typeof e&&(Cn=e,!0)},d.relativeTimeThreshold=function(e,t){return void 0!==Sn[e]&&(void 0===t?Sn[e]:(Sn[e]=t,"s"===e&&(Sn.ss=t-1),!0))},d.calendarFormat=function(e,t){return(t=e.diff(t,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},d.prototype=ae,d.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},d});var Emitter=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,i=new Array(1<n?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var r=!0,o=!1,s=void 0;try{for(var l,c=t[Symbol.iterator]();!(r=(l=c.next()).done);r=!0)l.value.apply(this,i)}catch(e){o=!0,s=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw s}}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var i=0;i<n.length;i++)if(n[i]===t){n.splice(i,1);break}return this}}]),e}(),Dropzone=function(){function j(e,t){var n;if(_classCallCheck(this,j),(n=_possibleConstructorReturn(this,_getPrototypeOf(j).call(this))).element=e,n.version=j.version,n.defaultOptions.previewTemplate=n.defaultOptions.previewTemplate.replace(/\n*/g,""),n.clickableElements=[],n.listeners=[],n.files=[],"string"==typeof n.element&&(n.element=document.querySelector(n.element)),!n.element||null==n.element.nodeType)throw new Error("Invalid dropzone element.");if(n.element.dropzone)return n.element.dropzone;j.instances.push(_assertThisInitialized(n)),n.element.dropzone=_assertThisInitialized(n);e=null!=(e=j.optionsForElement(n.element))?e:{};if(n.options=j.extend({},n.defaultOptions,e,null!=t?t:{}),n.options.forceFallback||!j.isBrowserSupported())return _possibleConstructorReturn(n,n.options.fallback.call(_assertThisInitialized(n)));if(null==n.options.url&&(n.options.url=n.element.getAttribute("action")),!n.options.url)throw new Error("No URL provided.");if(n.options.acceptedFiles&&n.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(n.options.uploadMultiple&&n.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return n.options.acceptedMimeTypes&&(n.options.acceptedFiles=n.options.acceptedMimeTypes,delete n.options.acceptedMimeTypes),null!=n.options.renameFilename&&(n.options.renameFile=function(e){return n.options.renameFilename.call(_assertThisInitialized(n),e.name,e)}),n.options.method=n.options.method.toUpperCase(),(t=n.getExistingFallback())&&t.parentNode&&t.parentNode.removeChild(t),!1!==n.options.previewsContainer&&(n.options.previewsContainer?n.previewsContainer=j.getElement(n.options.previewsContainer,"previewsContainer"):n.previewsContainer=n.element),n.options.clickable&&(!0===n.options.clickable?n.clickableElements=[n.element]:n.clickableElements=j.getElements(n.options.clickable,"clickable")),n.init(),n}return _inherits(j,Emitter),_createClass(j,null,[{key:"initClass",value:function(){this.prototype.Emitter=Emitter,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e;this.element.className="".concat(this.element.className," dz-browser-not-supported");var t=!0,n=!1,i=void 0;try{for(var a,r=this.element.getElementsByTagName("div")[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){var o=a.value;if(/(^|)dz-message($|)/.test(o.className)){(e=o).className="dz-message";break}}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}e||(e=j.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));i=e.getElementsByTagName("span")[0];return i&&(null!=i.textContent?i.textContent=this.options.dictFallbackMessage:null!=i.innerText&&(i.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,i){var a={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},r=e.width/e.height;null==t&&null==n?(t=a.srcWidth,n=a.srcHeight):null==t?t=n*r:null==n&&(n=t/r);var o=(t=Math.min(t,a.srcWidth))/(n=Math.min(n,a.srcHeight));if(a.srcWidth>t||a.srcHeight>n)if("crop"===i)o<r?(a.srcHeight=e.height,a.srcWidth=a.srcHeight*o):(a.srcWidth=e.width,a.srcHeight=a.srcWidth/o);else{if("contain"!==i)throw new Error("Unknown resizeMethod '".concat(i,"'"));o<r?n=t/r:t=n*r}return a.srcX=(e.width-a.srcWidth)/2,a.srcY=(e.height-a.srcHeight)/2,a.trgWidth=t,a.trgHeight=n,a},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /></div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size></span></div>\n    <div class="dz-filename"><span data-dz-name></span></div>\n  </div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n  <div class="dz-error-message"><span data-dz-errormessage></span></div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n      <title>Check</title>\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path>\n      </g>\n    </svg>\n  </div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n      <title>Error</title>\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n        <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path>\n        </g>\n      </g>\n    </svg>\n  </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var n=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){t.previewElement=j.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);var e=!0,i=!1,a=void 0;try{for(var r,o=t.previewElement.querySelectorAll("[data-dz-name]")[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var s=r.value;s.textContent=t.name}}catch(e){i=!0,a=e}finally{try{e||null==o.return||o.return()}finally{if(i)throw a}}var l=!0,i=!1,a=void 0;try{for(var c,u=t.previewElement.querySelectorAll("[data-dz-size]")[Symbol.iterator]();!(l=(c=u.next()).done);l=!0)(s=c.value).innerHTML=this.filesize(t.size)}catch(e){i=!0,a=e}finally{try{l||null==u.return||u.return()}finally{if(i)throw a}}this.options.addRemoveLinks&&(t._removeLink=j.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),t.previewElement.appendChild(t._removeLink));function d(e){return e.preventDefault(),e.stopPropagation(),t.status===j.UPLOADING?j.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(t)}):n.options.dictRemoveFileConfirmation?j.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(t)}):n.removeFile(t)}var p=!0,i=!1,a=void 0;try{for(var h,f=t.previewElement.querySelectorAll("[data-dz-remove]")[Symbol.iterator]();!(p=(h=f.next()).done);p=!0)h.value.addEventListener("click",d)}catch(e){i=!0,a=e}finally{try{p||null==f.return||f.return()}finally{if(i)throw a}}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");var n=!0,i=!1,a=void 0;try{for(var r,o=e.previewElement.querySelectorAll("[data-dz-thumbnail]")[Symbol.iterator]();!(n=(r=o.next()).done);n=!0){var s=r.value;s.alt=e.name,s.src=t}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return setTimeout(function(){return e.previewElement.classList.add("dz-image-preview")},1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);var n=!0,i=!1,a=void 0;try{for(var r,o=e.previewElement.querySelectorAll("[data-dz-errormessage]")[Symbol.iterator]();!(n=(r=o.next()).done);n=!0)r.value.textContent=t}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement){var i=!0,a=!1,r=void 0;try{for(var o,s=e.previewElement.querySelectorAll("[data-dz-uploadprogress]")[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var l=o.value;"PROGRESS"===l.nodeName?l.value=t:l.style.width="".concat(t,"%")}}catch(e){a=!0,r=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var a=0,r=n;a<r.length;a++){var o,s=r[a];for(o in s){var l=s[o];e[o]=l}}return e}}]),_createClass(j,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(e){return e.accepted}).map(function(e){return e})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(e){return!e.accepted}).map(function(e){return e})}},{key:"getFilesWithStatus",value:function(t){return this.files.filter(function(e){return e.status===t}).map(function(e){return e})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(j.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(j.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(j.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(e){return e.status===j.UPLOADING||e.status===j.QUEUED}).map(function(e){return e})}},{key:"init",value:function(){var l=this;"form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(j.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'+wpj_vars.dictdragDropBrowse+"".concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length&&function s(){return l.hiddenFileInput&&l.hiddenFileInput.parentNode.removeChild(l.hiddenFileInput),l.hiddenFileInput=document.createElement("input"),l.hiddenFileInput.setAttribute("type","file"),(null===l.options.maxFiles||1<l.options.maxFiles)&&l.hiddenFileInput.setAttribute("multiple","multiple"),l.hiddenFileInput.className="dz-hidden-input",null!==l.options.acceptedFiles&&l.hiddenFileInput.setAttribute("accept",l.options.acceptedFiles),null!==l.options.capture&&l.hiddenFileInput.setAttribute("capture",l.options.capture),l.hiddenFileInput.style.visibility="hidden",l.hiddenFileInput.style.position="absolute",l.hiddenFileInput.style.top="0",l.hiddenFileInput.style.left="0",l.hiddenFileInput.style.height="0",l.hiddenFileInput.style.width="0",j.getElement(l.options.hiddenInputContainer,"hiddenInputContainer").appendChild(l.hiddenFileInput),l.hiddenFileInput.addEventListener("change",function(){var e=l.hiddenFileInput.files;if(e.length){var t=!0,n=!1,i=void 0;try{for(var a,r=e[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){var o=a.value;l.addFile(o)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}}return l.emit("addedfiles",e),s()})}(),this.URL=null!==window.URL?window.URL:window.webkitURL;var e=!0,t=!1,n=void 0;try{for(var i,a=this.events[Symbol.iterator]();!(e=(i=a.next()).done);e=!0){var r=i.value;this.on(r,this.options[r])}}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}this.on("uploadprogress",function(){return l.updateTotalUploadProgress()}),this.on("removedfile",function(){return l.updateTotalUploadProgress()}),this.on("canceled",function(e){return l.emit("complete",e)}),this.on("complete",function(e){if(0===l.getAddedFiles().length&&0===l.getUploadingFiles().length&&0===l.getQueuedFiles().length)return setTimeout(function(){return l.emit("queuecomplete")},0)});function o(e){return s(e)&&(e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1)}var s=function(e){return e.dataTransfer.types&&e.dataTransfer.types.some(function(e){return"Files"==e})};return this.listeners=[{element:this.element,events:{dragstart:function(e){return l.emit("dragstart",e)},dragenter:function(e){return o(e),l.emit("dragenter",e)},dragover:function(e){var t;try{t=e.dataTransfer.effectAllowed}catch(e){}return e.dataTransfer.dropEffect="move"===t||"linkMove"===t?"move":"copy",o(e),l.emit("dragover",e)},dragleave:function(e){return l.emit("dragleave",e)},drop:function(e){return o(e),l.drop(e)},dragend:function(e){return l.emit("dragend",e)}}}],this.clickableElements.forEach(function(t){return l.listeners.push({element:t,events:{click:function(e){return t===l.element&&e.target!==l.element&&!j.elementInside(e.target,l.element.querySelector(".dz-message"))||l.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),null!=this.hiddenFileInput&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,j.instances.splice(j.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=0,t=0;if(this.getActiveFiles().length){var n=!0,i=!1,a=void 0;try{for(var r,o=this.getActiveFiles()[Symbol.iterator]();!(n=(r=o.next()).done);n=!0){var s=r.value;e+=s.upload.bytesSent,t+=s.upload.total}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}a=100*e/t}else a=100;return this.emit("totaluploadprogress",a,t,e)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(e,"]"):"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e;if(t=this.getExistingFallback())return t;var t='<div class="dz-fallback">';this.options.dictFallbackText&&(t+="<p>".concat(this.options.dictFallbackText,"</p>")),t+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');t=j.createElement(t);return"FORM"!==this.element.tagName?(e=j.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>'))).appendChild(t):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=e?e:t}},{key:"getExistingFallback",value:function(){for(var e,t=0,n=["div","form"];t<n.length;t++)if(e=function(e){var t=!0,n=!1,i=void 0;try{for(var a,r=e[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){var o=a.value;if(/(^|)fallback($|)/.test(o.className))return o}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}}(this.element.getElementsByTagName(n[t])))return e}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(i){return function(){var e,t=[];for(e in i.events){var n=i.events[e];t.push(i.element.addEventListener(e,n,!1))}return t}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(i){return function(){var e,t=[];for(e in i.events){var n=i.events[e];t.push(i.element.removeEventListener(e,n,!1))}return t}()})}},{key:"disable",value:function(){var t=this;return this.clickableElements.forEach(function(e){return e.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(e){return t.cancelUpload(e)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(e){return e.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(0<e){for(var i=["tb","gb","mb","kb","b"],a=0;a<i.length;a++){var r=i[a];if(Math.pow(this.options.filesizeBase,4-a)/10<=e){t=e/Math.pow(this.options.filesizeBase,4-a),n=r;break}}t=Math.round(10*t)/10}return"<strong>".concat(t,"</strong> ").concat(this.options.dictFileSizeUnits[n])}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t,n=[],i=0;i<e.dataTransfer.files.length;i++)n[i]=e.dataTransfer.files[i];n.length&&((t=e.dataTransfer.items)&&t.length&&null!=t[0].webkitGetAsEntry?this._addFilesFromItems(t):this.handleFiles(n)),this.emit("addedfiles",n)}}},{key:"paste",value:function(e){if(null!=__guard__(null!=e?e.clipboardData:void 0,function(e){return e.items})){this.emit("paste",e);e=e.clipboardData.items;return e.length?this._addFilesFromItems(e):void 0}}},{key:"handleFiles",value:function(e){var t=!0,n=!1,i=void 0;try{for(var a,r=e[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){var o=a.value;this.addFile(o)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}}},{key:"_addFilesFromItems",value:function(l){var c=this;return function(){var e=[],t=!0,n=!1,i=void 0;try{for(var a,r=l[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){var o,s=a.value;null!=s.webkitGetAsEntry&&(o=s.webkitGetAsEntry())?o.isFile?e.push(c.addFile(s.getAsFile())):o.isDirectory?e.push(c._addFilesFromDirectory(o,o.name)):e.push(void 0):null!=s.getAsFile&&(null==s.kind||"file"===s.kind)?e.push(c.addFile(s.getAsFile())):e.push(void 0)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return e}()}},{key:"_addFilesFromDirectory",value:function(e,l){var c=this,t=e.createReader(),n=function(t){return __guardMethod__(console,"log",function(e){return e.log(t)})};return function s(){return t.readEntries(function(e){if(0<e.length){var t=!0,n=!1,i=void 0;try{for(var a,r=e[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){var o=a.value;o.isFile?o.file(function(e){if(!c.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath="".concat(l,"/").concat(e.name),c.addFile(e)}):o.isDirectory&&c._addFilesFromDirectory(o,"".concat(l,"/").concat(o.name))}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}s()}return null},n)}()}},{key:"accept",value:function(e,t){this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):j.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var n=this;t.upload={uuid:j.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t)},this.files.push(t),t.status=j.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,function(e){e?(t.accepted=!1,n._errorProcessing([t],e)):(t.accepted=!0,n.options.autoQueue&&n.enqueueFile(t)),n._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(e){var t=!0,n=!1,i=void 0;try{for(var a,r=e[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){var o=a.value;this.enqueueFile(o)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==j.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=j.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return t.processQueue()},0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout(function(){return t._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var n=this._thumbnailQueue.shift();return this.createThumbnail(n,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(e){return t.emit("thumbnail",n,e),t._processingThumbnail=!1,t._processThumbnailQueue()})}}},{key:"removeFile",value:function(e){if(e.status===j.UPLOADING&&this.cancelUpload(e),this.files=without(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);var t=!0,n=!1,i=void 0;try{for(var a,r=this.files.slice()[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){var o=a.value;o.status===j.UPLOADING&&!e||this.removeFile(o)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return null}},{key:"resizeImage",value:function(i,e,t,n,a){var r=this;return this.createThumbnail(i,e,t,n,!0,function(e,t){if(null==t)return a(i);var n=r.options.resizeMimeType;null==n&&(n=i.type);t=t.toDataURL(n,r.options.resizeQuality);return"image/jpeg"!==n&&"image/jpg"!==n||(t=ExifRestore.restore(i.dataURL,t)),a(j.dataURItoBlob(t))})}},{key:"createThumbnail",value:function(e,t,n,i,a,r){var o=this,s=new FileReader;s.onload=function(){e.dataURL=s.result,"image/svg+xml"!==e.type?o.createThumbnailFromUrl(e,t,n,i,a,r):null!=r&&r(s.result)},s.readAsDataURL(e)}},{key:"displayExistingFile",value:function(t,e,n,i){var a=this,r=!(4<arguments.length&&void 0!==arguments[4])||arguments[4];this.emit("addedfile",t),this.emit("complete",t),r?(t.dataURL=e,this.createThumbnailFromUrl(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.resizeMethod,this.options.fixOrientation,function(e){a.emit("thumbnail",t,e),n&&n()},i)):(this.emit("thumbnail",t,e),n&&n())}},{key:"createThumbnailFromUrl",value:function(a,r,o,s,t,l,e){var c=this,u=document.createElement("img");return e&&(u.crossOrigin=e),u.onload=function(){var e=function(e){return e(1)};return(e="undefined"!=typeof EXIF&&null!==EXIF&&t?function(e){return EXIF.getData(u,function(){return e(EXIF.getTag(this,"Orientation"))})}:e)(function(e){a.width=u.width,a.height=u.height;var t=c.options.resize.call(c,a,r,o,s),n=document.createElement("canvas"),i=n.getContext("2d");switch(n.width=t.trgWidth,n.height=t.trgHeight,4<e&&(n.width=t.trgHeight,n.height=t.trgWidth),e){case 2:i.translate(n.width,0),i.scale(-1,1);break;case 3:i.translate(n.width,n.height),i.rotate(Math.PI);break;case 4:i.translate(0,n.height),i.scale(1,-1);break;case 5:i.rotate(.5*Math.PI),i.scale(1,-1);break;case 6:i.rotate(.5*Math.PI),i.translate(0,-n.width);break;case 7:i.rotate(.5*Math.PI),i.translate(n.height,-n.width),i.scale(-1,1);break;case 8:i.rotate(-.5*Math.PI),i.translate(-n.height,0)}drawImageIOSFix(i,u,null!=t.srcX?t.srcX:0,null!=t.srcY?t.srcY:0,t.srcWidth,t.srcHeight,null!=t.trgX?t.trgX:0,null!=t.trgY?t.trgY:0,t.trgWidth,t.trgHeight);t=n.toDataURL("image/png");if(null!=l)return l(t,n)})},null!=l&&(u.onerror=l),u.src=a.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(e<=t)){var i=this.getQueuedFiles();if(0<i.length){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,e-t));for(;n<e;){if(!i.length)return;this.processFile(i.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){var t=!0,n=!1,i=void 0;try{for(var a,r=e[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){var o=a.value;o.processing=!0,o.status=j.UPLOADING,this.emit("processing",o)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(t){return this.files.filter(function(e){return e.xhr===t}).map(function(e){return e})}},{key:"cancelUpload",value:function(e){if(e.status===j.UPLOADING){var t=this._getFilesWithXhr(e.xhr),n=!0,i=!1,a=void 0;try{for(var r,o=t[Symbol.iterator]();!(n=(r=o.next()).done);n=!0)r.value.status=j.CANCELED}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}void 0!==e.xhr&&e.xhr.abort();var s=!0,i=!1,a=void 0;try{for(var l,c=t[Symbol.iterator]();!(s=(l=c.next()).done);s=!0){var u=l.value;this.emit("canceled",u)}}catch(e){i=!0,a=e}finally{try{s||null==c.return||c.return()}finally{if(i)throw a}}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==j.ADDED&&e.status!==j.QUEUED||(e.status=j.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"!=typeof e)return e;for(var t=arguments.length,n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.apply(this,n)}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(l){var c=this;this._transformFiles(l,function(e){var t;if(c.options.chunking&&(t=e[0],l[0].upload.chunked=c.options.chunking&&(c.options.forceChunking||t.size>c.options.chunkSize),l[0].upload.totalChunkCount=Math.ceil(t.size/c.options.chunkSize)),l[0].upload.chunked){var i=l[0],a=e[0];i.upload.chunks=[];function r(){for(var e,t,n=0;void 0!==i.upload.chunks[n];)n++;n>=i.upload.totalChunkCount||(e=n*c.options.chunkSize,t=Math.min(e+c.options.chunkSize,i.size),t={name:c._getParamName(0),data:a.webkitSlice?a.webkitSlice(e,t):a.slice(e,t),filename:i.upload.filename,chunkIndex:n},i.upload.chunks[n]={file:i,index:n,dataBlock:t,status:j.UPLOADING,progress:0,retries:0},c._uploadData(l,[t]))}if(i.upload.finishedChunkUpload=function(e){var t=!0;e.status=j.SUCCESS,e.dataBlock=null,e.xhr=null;for(var n=0;n<i.upload.totalChunkCount;n++){if(void 0===i.upload.chunks[n])return r();i.upload.chunks[n].status!==j.SUCCESS&&(t=!1)}t&&c.options.chunksUploaded(i,function(){c._finished(l,"",null)})},c.options.parallelChunkUploads)for(var n=0;n<i.upload.totalChunkCount;n++)r();else r()}else{for(var o=[],s=0;s<l.length;s++)o[s]={name:c._getParamName(s),data:e[s],filename:l[s].upload.filename};c._uploadData(l,o)}})}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(t,e){var n=this,i=new XMLHttpRequest,a=!0,r=!1,o=void 0;try{for(var s,l=t[Symbol.iterator]();!(a=(s=l.next()).done);a=!0)s.value.xhr=i}catch(e){r=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}t[0].upload.chunked&&(t[0].upload.chunks[e[0].chunkIndex].xhr=i);r=this.resolveOption(this.options.method,t),o=this.resolveOption(this.options.url,t);i.open(r,o,!0),i.timeout=this.resolveOption(this.options.timeout,t),i.withCredentials=!!this.options.withCredentials,i.onload=function(e){n._finishedUploading(t,i,e)},i.ontimeout=function(){n._handleUploadError(t,i,"Request timedout after ".concat(n.options.timeout," seconds"))},i.onerror=function(){n._handleUploadError(t,i)},(null!=i.upload?i.upload:i).onprogress=function(e){return n._updateFilesUploadProgress(t,i,e)};var c,u={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(c in this.options.headers&&j.extend(u,this.options.headers),u){var d=u[c];d&&i.setRequestHeader(c,d)}var p=new FormData;if(this.options.params){var h,f=this.options.params;for(h in f="function"==typeof f?f.call(this,t,i,t[0].upload.chunked?this._getChunk(t[0],i):null):f){var m=f[h];p.append(h,m)}}var _=!0,r=!1,o=void 0;try{for(var g,y=t[Symbol.iterator]();!(_=(g=y.next()).done);_=!0){var v=g.value;this.emit("sending",v,i,p)}}catch(e){r=!0,o=e}finally{try{_||null==y.return||y.return()}finally{if(r)throw o}}this.options.uploadMultiple&&this.emit("sendingmultiple",t,i,p),this._addFormElementData(p);for(var w=0;w<e.length;w++){var b=e[w];p.append(b.name,b.data,b.filename)}this.submitRequest(i,p,t)}},{key:"_transformFiles",value:function(n,i){for(var e=this,a=[],r=0,t=0;t<n.length;t++)!function(t){e.options.transformFile.call(e,n[t],function(e){a[t]=e,++r===n.length&&i(a)})}(t)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName){var t=!0,n=!1,i=void 0;try{for(var a,r=this.element.querySelectorAll("input, textarea, select, button")[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){var o=a.value,s=o.getAttribute("name"),l=(l=o.getAttribute("type"))&&l.toLowerCase();if(null!=s)if("SELECT"===o.tagName&&o.hasAttribute("multiple")){var c=!0,u=!1,d=void 0;try{for(var p,h=o.options[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var f=p.value;f.selected&&e.append(s,f.value)}}catch(e){u=!0,d=e}finally{try{c||null==h.return||h.return()}finally{if(u)throw d}}}else(!l||"checkbox"!==l&&"radio"!==l||o.checked)&&e.append(s,o.value)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){if(void 0!==n){if(_=100*n.loaded/n.total,e[0].upload.chunked){var i=e[0],t=this._getChunk(i,t);t.progress=_,t.total=n.total,t.bytesSent=n.loaded;i.upload.progress=0,i.upload.total=0;for(var a=i.upload.bytesSent=0;a<i.upload.totalChunkCount;a++)void 0!==i.upload.chunks[a]&&void 0!==i.upload.chunks[a].progress&&(i.upload.progress+=i.upload.chunks[a].progress,i.upload.total+=i.upload.chunks[a].total,i.upload.bytesSent+=i.upload.chunks[a].bytesSent);i.upload.progress=i.upload.progress/i.upload.totalChunkCount}else{var r=!0,o=!1,s=void 0;try{for(var l,c=e[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;u.upload.progress=_,u.upload.total=n.total,u.upload.bytesSent=n.loaded}}catch(e){o=!0,s=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw s}}}var d=!0,o=!1,s=void 0;try{for(var p,h=e[Symbol.iterator]();!(d=(p=h.next()).done);d=!0){var f=p.value;this.emit("uploadprogress",f,f.upload.progress,f.upload.bytesSent)}}catch(e){o=!0,s=e}finally{try{d||null==h.return||h.return()}finally{if(o)throw s}}}else{var m=!0,_=100,g=!0,o=!1,s=void 0;try{for(var y,v=e[Symbol.iterator]();!(g=(y=v.next()).done);g=!0){var w=y.value;100===w.upload.progress&&w.upload.bytesSent===w.upload.total||(m=!1),w.upload.progress=_,w.upload.bytesSent=w.upload.total}}catch(e){o=!0,s=e}finally{try{g||null==v.return||v.return()}finally{if(o)throw s}}if(!m){var b=!0,o=!1,s=void 0;try{for(var j,k=e[Symbol.iterator]();!(b=(j=k.next()).done);b=!0){var x=j.value;this.emit("uploadprogress",x,_,x.upload.bytesSent)}}catch(e){o=!0,s=e}finally{try{b||null==k.return||k.return()}finally{if(o)throw s}}}}}},{key:"_finishedUploading",value:function(e,t,n){var i;if(e[0].status!==j.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(i=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{i=JSON.parse(i)}catch(e){n=e,i="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,i,n):this._handleUploadError(e,t,i)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==j.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var i=this._getChunk(e[0],t);if(i.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[i.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,t,n){var i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var l=o.value;l.status=j.SUCCESS,this.emit("success",l,t,n),this.emit("complete",l)}}catch(e){a=!0,r=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){var i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var l=o.value;l.status=j.ERROR,this.emit("error",l,t,n),this.emit("complete",l)}}catch(e){a=!0,r=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}]),j}();Dropzone.initClass(),Dropzone.version="5.7.0",Dropzone.options={},Dropzone.optionsForElement=function(e){if(e.getAttribute("id"))return Dropzone.options[camelize(e.getAttribute("id"))]},Dropzone.instances=[],Dropzone.forElement=function(e){if(null==(null!=(e="string"==typeof e?document.querySelector(e):e)?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},Dropzone.autoDiscover=!0,Dropzone.discover=function(){var l,e;return document.querySelectorAll?l=document.querySelectorAll(".dropzone"):(l=[],(e=function(s){return function(){var e=[],t=!0,n=!1,i=void 0;try{for(var a,r=s[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){var o=a.value;/(^|)dropzone($|)/.test(o.className)?e.push(l.push(o)):e.push(void 0)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return e}()})(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))),function(){var e=[],t=!0,n=!1,i=void 0;try{for(var a,r=l[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){var o=a.value;!1!==Dropzone.optionsForElement(o)?e.push(new Dropzone(o)):e.push(void 0)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return e}()},Dropzone.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],Dropzone.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a")){var t=!0,n=!1,i=void 0;try{for(var a,r=Dropzone.blacklistedBrowsers[Symbol.iterator]();!(t=(a=r.next()).done);t=!0)a.value.test(navigator.userAgent)&&(e=!1)}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}}else e=!1;else e=!1;return e},Dropzone.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],e=new ArrayBuffer(t.length),i=new Uint8Array(e),a=0,r=t.length,o=0<=r;o?a<=r:r<=a;o?a++:a--)i[a]=t.charCodeAt(a);return new Blob([e],{type:n})};var without=function(e,t){return e.filter(function(e){return e!==t}).map(function(e){return e})},camelize=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})};Dropzone.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},Dropzone.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},Dropzone.getElement=function(e,t){var n;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `".concat(t,"` option provided. Please provide a CSS selector or a plain HTML element."));return n},Dropzone.getElements=function(e,t){var n;if(e instanceof Array){l=[];try{var i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)n=o.value,l.push(this.getElement(n,t))}catch(e){a=!0,r=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}}catch(e){l=null}}else if("string"==typeof e){var l=[],c=!0,a=!1,r=void 0;try{for(var u,d=document.querySelectorAll(e)[Symbol.iterator]();!(c=(u=d.next()).done);c=!0)n=u.value,l.push(n)}catch(e){a=!0,r=e}finally{try{c||null==d.return||d.return()}finally{if(a)throw r}}}else null!=e.nodeType&&(l=[e]);if(null==l||!l.length)throw new Error("Invalid `".concat(t,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return l},Dropzone.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},Dropzone.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");var n=e.type,i=n.replace(/\/.*$/,""),a=!0,r=!1,o=void 0;try{for(var s,l=t[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;if("."===(c=c.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(c.toLowerCase(),e.name.length-c.length))return!0}else if(/\/\*$/.test(c)){if(i===c.replace(/\/.*$/,""))return!0}else if(n===c)return!0}}catch(e){r=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each(function(){return new Dropzone(this,e)})}),"undefined"!=typeof module&&null!==module?module.exports=Dropzone:window.Dropzone=Dropzone,Dropzone.ADDED="added",Dropzone.QUEUED="queued",Dropzone.ACCEPTED=Dropzone.QUEUED,Dropzone.UPLOADING="uploading",Dropzone.PROCESSING=Dropzone.UPLOADING,Dropzone.CANCELED="canceled",Dropzone.ERROR="error",Dropzone.SUCCESS="success";var detectVerticalSquash=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;n=n.getContext("2d");n.drawImage(e,0,0);for(var i=n.getImageData(1,0,1,t).data,a=0,r=t,o=t;a<o;)0===i[4*(o-1)+3]?r=o:a=o,o=r+a>>1;t=o/t;return 0==t?1:t},drawImageIOSFix=function(e,t,n,i,a,r,o,s,l,c){var u=detectVerticalSquash(t);return e.drawImage(t,n,i,a,r,o,s,l,c/u)},ExifRestore=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t,n,i,a="",r="",o=void 0,s="",l=0;;)if(n=(i=e[l++])>>2,i=(3&i)<<4|(t=e[l++])>>4,o=(15&t)<<2|(r=e[l++])>>6,s=63&r,isNaN(t)?o=s=64:isNaN(r)&&(s=64),a=a+this.KEY_STR.charAt(n)+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(s),o=s=r="",!(l<e.length))break;return a}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;e=this.decode64(e.replace("data:image/jpeg;base64,","")),e=this.slice2Segments(e),e=this.exifManipulation(t,e);return"data:image/jpeg;base64,".concat(this.encode64(e))}},{key:"exifManipulation",value:function(e,t){t=this.getExifArray(t),t=this.insertExif(e,t);return new Uint8Array(t)}},{key:"getExifArray",value:function(e){for(var t,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),i=this.decode64(n),e=i.indexOf(255,3),n=i.slice(0,e),e=i.slice(e);return n.concat(t).concat(e)}},{key:"slice2Segments",value:function(e){for(var t,n,i=0,a=[];;){if(255===e[i]&218===e[i+1])break;if(255===e[i]&216===e[i+1]?i+=2:(t=i+(256*e[i+2]+e[i+3])+2,n=e.slice(i,t),a.push(n),i=t),i>e.length)break}return a}},{key:"decode64",value:function(e){var t,n,i,a,r=void 0,o="",s=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");;)if(t=this.KEY_STR.indexOf(e.charAt(s++)),r=(15&(n=this.KEY_STR.indexOf(e.charAt(s++))))<<4|(i=this.KEY_STR.indexOf(e.charAt(s++)))>>2,o=(3&i)<<6|(a=this.KEY_STR.indexOf(e.charAt(s++))),l.push(t<<2|n>>4),64!==i&&l.push(r),64!==a&&l.push(o),r=o="",!(s<e.length))break;return l}}]),e}();ExifRestore.initClass();var contentLoaded=function(t,n){function i(e){if("readystatechange"!==e.type||"complete"===o.readyState)return("load"===e.type?t:o)[c](u+e.type,i,!1),!r&&(r=!0)?n.call(t,e.type||e):void 0}function a(){try{s.doScroll("left")}catch(e){return void setTimeout(a,50)}return i("poll")}var r=!1,e=!0,o=t.document,s=o.documentElement,l=o.addEventListener?"addEventListener":"attachEvent",c=o.addEventListener?"removeEventListener":"detachEvent",u=o.addEventListener?"":"on";if("complete"!==o.readyState){if(o.createEventObject&&s.doScroll){try{e=!t.frameElement}catch(e){}e&&a()}return o[l](u+"DOMContentLoaded",i,!1),o[l](u+"readystatechange",i,!1),t[l](u+"load",i,!1)}};function __guard__(e,t){return null!=e?t(e):void 0}function __guardMethod__(e,t,n){if(null!=e&&"function"==typeof e[t])return n(e,t)}function empty(e){for(var t,n=[void 0,null,!1,0,"","0"],i=0,a=n.length;i<a;i++)if(e===n[i])return!0;if("object"!=typeof e)return!1;for(t in e)return!1;return!0}function randString(e){e=e||8;for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*n.length));return t}Dropzone._autoDiscoverFunction=function(){if(Dropzone.autoDiscover)return Dropzone.discover()},contentLoaded(window,Dropzone._autoDiscoverFunction),function(s,j){"use strict";j.html5fileupload=function(e,t){this.element=j(t),this.options=j.extend(!0,{},j.html5fileupload.defaults,e,j(this.element).data()),this.input=j(this.element).find("input[type=file]");j(s);this.button={},this.button.edit='<div class="btn btn-info edit"><i class="glyphicon glyphicon-pencil"></i></div>',this.button.start='<div class="btn btn-success start"><i class="glyphicon glyphicon-play"></i></div>',this.button.restart='<div class="btn btn-success restart"><i class="glyphicon glyphicon-repeat"></i></div>',this.button.cancel='<div class="btn btn-danger cancel"><i class="glyphicon glyphicon-ban-circle"></i></div>',this.button.reset='<div class="btn btn-warning reset"><i class="glyphicon glyphicon-refresh"></i></div>',this.button.remove='<div class="btn btn-danger remove"><i class="glyphicon glyphicon-remove"></i></div>',this.button.done='<div class="btn btn-success done"><i class="glyphicon glyphicon-ok"></i></div>',this.button.del='<div class="btn btn-danger del"><i class="glyphicon glyphicon-trash"></i></div>',this.button.download='<a class="btn btn-warning download"><i class="glyphicon glyphicon-download"></i></a>',this.button.allstart='<div class="btn btn-success allstart"><i class="glyphicon glyphicon-play-circle"></i> '+(this.options.labelAllStart||"")+"</div>",this.button.allstop='<div class="btn btn-warning allstop"><i class="glyphicon glyphicon-record"></i> '+(this.options.labelAllStop||"")+"</div>",this.button.alldone='<div class="btn btn-info alldone"><i class="glyphicon glyphicon-ok-circle"></i> '+(this.options.labelAllDone||"")+"</div>",this.button.allremove='<div class="btn btn-danger allremove"><i class="glyphicon glyphicon-remove-circle"></i> '+(this.options.labelAllRemove||"")+"</div>",this.progressbar='<div class="progress"><div class="progress-bar progress-bar-success progress-bar-striped"></div></div>',this.files=[],this.xhrPool=[],this._init()},j.html5fileupload.defaults={showErrors:!1,url:null,downloadUrl:null,removeUrl:null,removeDone:!1,removeDoneDelay:1200,file:null,edit:!0,randomName:!1,randomNameLength:8,form:!1,data:{},ajax:!0,ajaxType:"POST",ajaxDataType:"json",ajaxHeaders:{},multiple:!1,validExtensions:null,validMime:null,labelInvalid:null,autostart:!1,minFilesize:0,maxFilesize:2048e3,labelMinFilesize:null,labelMaxFilesize:null,regexp:/^[^\\/:\*\?"<>\|]+$/},j.html5fileupload.prototype={_init:function(){var e,t,n,i,a,r=this,o=r.options,s=r.element,l=r.input;r.options.validExtensions=empty(o.validExtensions)?null:o.validExtensions.split(","),0!=o.multiple&&0==o.ajax&&alert("This option is not valid! NOT TO BE IMPLEMENTED ERROR"),0!=o.multiple&&(l.attr("multiple","multiple").wrap('<div class="add"></div>'),s.addClass("empty"),e=j("<div></div>").addClass("multiple").hide(),t=j(r.button.allstart).unbind("click").hide().click(function(){r.startAll()}),n=j(r.button.allstop).unbind("click").hide().click(function(){r.stopAll()}),i=j(r.button.alldone).unbind("click").hide().click(function(){r.removeDone()}),a=j(r.button.allremove).unbind("click").click(function(){r.removeAll()}),e.append(t).append(i).append(n).append(a),s.append(e)),empty(o.file)||(j.each(o.file.split(","),function(e,t){var n=t.split("/"),i={};i.name=n[n.length-1],i.size=0,i.type=null,i.original=t;i=r.addFile(i,!0);j(i).data("server-file",t)}),0==o.multiple&&j(l).hide()),o.form&&j(s).closest("form").keypress(function(e){if(13==e.keyCode&&1==j(e.target).data("rename"))return!1}),r._bind()},_bind:function(){var t=this,n=t.element,e=t.input;t.options.form?j(n).find("input[type=file]").change(function(e){t.handleFile(e,j(this))}):(j(n).unbind("dragover").unbind("drop").unbind("mouseout").on({dragover:function(e){t.handleDrag(e)},drop:function(e){t.handleFile(e,j(this))},mouseout:function(){}}),j(e).unbind("change").change(function(e){t.drag=!1,t.handleFile(e,j(n))}))},handleFile:function(e,t){e.stopPropagation(),e.preventDefault();var n=this,i=n.options,a=n.input,r=(0==n.drag?e.originalEvent.target:i.form?j(t)[0]:e.originalEvent.dataTransfer).files;n.drag=!1;for(var o,s=0;(o=r[s])&&(n.addFile(o),1==i.multiple);s++);1!=i.form&&n._resetInput(),0==i.multiple&&j(a).hide()},handleDrag:function(e){this.drag=!0,e.stopPropagation(),e.preventDefault(),e.originalEvent.dataTransfer.dropEffect="copy"},addFile:function(e,t){var n,i=this,a=i.element,r=i.options,o=i.input,s=i.calcSize(e.size),l=j("<div></div>").addClass("file"),c=e.name.split(".").pop(),u=e.name.substr(0,e.name.length-c.length-1);if(empty(r.validExtensions)||-1!=j.inArray(c,r.validExtensions))if(empty(r.validMime)||e.type.match(r.validMime))if(null!=r.minFilesize&&0<r.minFilesize&&e.size<r.minFilesize){var d=i.calcSize(r.minFilesize);l.append(j("<div></div>").html(e.name).addClass("name")),l.append(j("<div></div>").html(r.labelMinFilesize||"File is smaller then the minimum filesize ("+d.size+" "+d.label+")").addClass("notvalid")),l.append(j(i.progressbar).hide());b=j(i.button.remove).addClass("remove").unbind("click").click(function(){i.remove(j(this).closest(".file"))});l.prepend(j("<div></div>").addClass("pull-right tools").append(b)),i.element.append(l)}else if(null!=r.maxFilesize&&0<r.maxFilesize&&e.size>r.maxFilesize){var p=i.calcSize(r.maxFilesize);l.append(j("<div></div>").html(e.name).addClass("name")),l.append(j("<div></div>").html(r.labelMaxFilesize||"File is bigger then maximum filesize ("+p.size+" "+p.label+")").addClass("notvalid")),l.append(j(i.progressbar).hide());b=j(i.button.remove).addClass("remove").unbind("click").click(function(){i.remove(j(this).closest(".file"))});l.prepend(j("<div></div>").addClass("pull-right tools").append(b)),i.element.append(l)}else{j(a).find(".multiple").show();var h=!1;if(0!=r.multiple&&0<i.files.length)for(var f,m=0;f=i.files[m];m++)if(e.name==f.name&&e.size==f.size&&e.type==f.type){h=m;break}if(!1!==h)return j(j(a).find(".file").get(h)).addClass("double").delay(500).queue(function(){j(this).removeClass("double").clearQueue()}),this;var _,g,y,v=j("<div></div>").addClass("inner"),w=null,d=0;!empty(e.type)&&e.type.match("image.*")&&(w=j("<div></div>").addClass("preview"),l.prepend(w),(p=new FileReader).onload=(n=e,function(e){w.css("background-image","url("+e.target.result+")").attr("title",n.name)}),p.readAsDataURL(e),d-=j(w).outerWidth()+10),1==r.randomName&&!0!==t&&(u=randString(r.randomNameLength)),v.append(j("<div></div>").html(u+"."+c).addClass("name")),v.append(j("<div></div>").html(s.size+" "+s.label).addClass("size")),l.append(v),l.append(j("<div></div>").addClass("clearfix")),i.element.append(l),!0===t?(l.data("done",!0),g=j("<div></div>").addClass("pull-right tools"),_=j(i.button.del).unbind("click").click(function(){i.removeFile(j(this).closest(".file"))}),0!=r.buttonDel&&g.append(_),l.prepend(g),d-=j(g).outerWidth(),-1!==j.inArray(c,["jpg","jpeg","png","gif","bmp"])&&((w=j("<div></div>").addClass("preview")).css("background-image","url("+e.original+")"),l.prepend(w),d-=j(w).outerWidth()+10)):(1==r.edit?(_=j("<input />").attr({type:"text",name:j(o).attr("name")+"_name"}).data("rename",!0).val(u).addClass("form-control").keyup(function(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),j(this).parent().removeClass("has-error"),13==e.keyCode?i.editDone(j(this).closest(".file")):27==e.keyCode&&i.editCancel(j(this).closest(".file"))}),y=j("<div></div>").html("."+c).addClass("extension").css({marginTop:-Math.round(_.height()/2)}),v.append(j("<div></div>").append(_).append(y).addClass("input").hide())):0==r.edit&&1==r.form&&v.append(j("<input />").attr({type:"text",name:j(o).attr("name")+"_name"}).val(u).hide()),v.append(j(i.progressbar).hide()),o=j(i.button.start).unbind("click").click(function(){i.start(j(this).closest(".file"))}),b=j(i.button.remove).unbind("click").click(function(){i.remove(j(this).closest(".file"))}),y=j(i.button.edit).unbind("click").click(function(){i.edit(j(this).closest(".file"))}),g=j("<div></div>").addClass("pull-right tools"),0==r.buttonStart||r.form||g.append(o),0!=r.buttonEdit&&1==r.edit&&g.append(y),0!=r.buttonRemove&&g.append(b),l.prepend(g),d-=j(g).outerWidth(),r.autostart&&g.children().hide(),j(a).find(".multiple .allstart").show(),y=i.files.push(e)-1),w&&(d-=j(w).outerWidth()),d+=j(l).outerWidth(),j(v).css({width:d}),l.data({originalFilename:u,filename:u,extension:c,file:e.name,index:y}),r.autostart&&!0!==t&&i.start(j(l))}else{l.append(j("<div></div>").html(e.name).addClass("name")),l.append(j("<div></div>").html(r.labelInvalid||"File is not valid").addClass("notvalid")),l.append(j(i.progressbar).hide());var b=j(i.button.remove).addClass("remove").unbind("click").click(function(){i.remove(j(this).closest(".file"))});l.prepend(j("<div></div>").addClass("pull-right tools").append(b)),i.element.append(l)}else{l.append(j("<div></div>").html(e.name).addClass("name")),l.append(j("<div></div>").html(r.labelInvalid||"File is not valid").addClass("notvalid")),l.append(j(i.progressbar).hide());var b=j(i.button.remove).addClass("remove").unbind("click").click(function(){i.remove(j(this).closest(".file"))});l.prepend(j("<div></div>").addClass("pull-right tools").append(b)),i.element.append(l)}return l},removeFile:function(t){var n=this,i=n.options;t.find(".tools").hide(),j.ajax({url:i.removeUrl,type:i.ajaxType||"POST",dataType:i.ajaxDataType||"json",data:{file:t.data("file")},headers:i.ajaxHeaders}).done(function(e){1==e.result?n.remove(t):(1==i.showErrors&&(t.find(".error").remove(),t.find(".inner").append(j('<div class="error text-danger"></div>').html("<strong>Error</strong>: "+ +e.status+" "+e.statusText))),t.find(".tools").show())}).fail(function(e){1==i.showErrors&&(t.find(".e rror").remove(),t.find(".inner").append(j('<div class="error text-danger"></div>').html("<strong>Error</strong>: "+ +e.status+" "+e.statusText))),t.find(".tools").show()})},calcSize:function(e){if(0==e)return{size:"",label:""};for(var t=0,n=e/1024;1e3<n;n/=1e3,t++);return{size:n.toFixed(2),label:["Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"][t]}},startAll:function(){var e=this,t=(e.options,e.input,e.element),n=(e.files,t.find(".file")),i=j(t).find(".multiple");j(i).find(".allstart").hide(),j(i).find(".allstop").show();for(var a,r=0;a=n[r];r++)e.start(j(a));var o=setInterval(function(){empty(e.xhrPool)&&(j(i).find(".allstart").show(),j(i).find(".allstop").hide(),clearInterval(o))},1e3)},stopAll:function(){var e=this.element;j(this.xhrPool).each(function(e,t){t.abort()}),this.xhrPool.length=0;e=j(e).find(".multiple");j(e).find(".allstart").show(),j(e).find(".allstop").hide()},removeDone:function(){var n=this,e=n.element;j.each(e.find(".file"),function(e,t){!0===j(t).data("done")&&n.remove(j(this))})},start:function(n,e){var i=this,a=i.options,r=(i.input,i.element);if(e=i.files[n.data("index")],!0===n.data("done"))return this;var o=n.find(".progress").show();j(o).find(".progress-bar").removeClass("progress-bar-info progress-bar-danger").addClass("active progress-bar-success").css("width","0%"),n.find(".tools").children().hide();var t=new FileReader;t.onloadend=function(e){var t=j.ajax({url:a.url,dataType:a.ajaxDataType||"json",type:a.ajaxType||"POST",cache:!1,data:{name:n.data("filename"),filename:n.data("file"),file:e.target.result,data:a.data},headers:a.ajaxHeaders,xhr:function(){var e=new s.XMLHttpRequest;return e.upload.addEventListener("progress",function(e){e.lengthComputable&&j(o).find(".progress-bar").css("width",Math.round(e.loaded/e.total*100)+"%")},!1),e},beforeSend:function(e){i.xhrPool.push(e),n.find(".tools").append(j(i.button.cancel).click(function(e){t.abort()}))}}).done(function(e){1==e.result?(j(o).find(".progress-bar").removeClass("active progress-bar-success").addClass("progress-bar-info").css("width","100%"),n.find(".tools").empty(),n.data("done",!0),1==a.removeDone?setTimeout(function(){i.remove(n)},a.removeDoneDelay):(j(r).find(".multiple .alldone").show(),0!=a.buttonDownload&&n.find(".tools").append(j(i.button.download).attr({download:(a.downloadUrl||a.url)+"?"+n.data("file"),href:(a.downloadUrl||a.url)+"?"+n.data("file")})),0!=a.buttonDone&&n.find(".tools").append(j(i.button.done).click(function(e){i.remove(n)}))),i.options.onAfterStartSuccess&&i.options.onAfterStartSuccess.call(i,e)):(1==a.showErrors&&(n.find(".error").remove(),n.find(".inner").append(j('<div class="error text-danger"></div>').html("<strong>Error</strong>: "+ +e.status+" "+e.statusText))),j(o).find(".progress-bar").removeClass("active progress-bar-success").addClass("progress-bar-danger").css("width","100%"),n.find(".tools").empty().append(j(i.button.restart).click(function(e){i.start(n)})).append(j(i.button.remove).click(function(){i.remove(n)})),i.options.onAfterStartFail&&i.options.onAfterStartFail.call(i,e))}).fail(function(e){1==a.showErrors&&(n.find(".error").remove(),n.find(".inner").append(j('<div class="error text-danger"></div>').html("<strong>Error</strong>: "+ +e.status+" "+e.statusText))),j(o).find(".progress-bar").removeClass("active progress-bar-success").addClass("progress-bar-danger").css("width","100%"),n.find(".tools").empty().append(j(i.button.restart).click(function(e){i.start(n)})).append(j(i.button.remove).click(function(){i.remove(n)})),i.options.onAfterStartFail&&i.options.onAfterStartFail.call(i,e)}).complete(function(e){e=i.xhrPool.indexOf(e);-1<e&&i.xhrPool.splice(e,1),i.options.onAfterStartAlways&&i.options.onAfterStartAlways.call(i,response)})},t.readAsDataURL(e)},edit:function(e){var t=this,n=(t.options,t.button);e.find(".inner").children().hide(),e.find(".input").show(),e.find(".input input").val(e.data("filename")).focus(),e.find(".tools").children().toggle();var i=j(n.done).unbind("click").click(function(){t.editDone(e)}),a=j(n.cancel).unbind("click").click(function(){t.editCancel(e)}),n=j(n.reset).unbind("click").click(function(){t.editReset(e)});return e.find(".tools").append(i).append(a).append(n),t},editDone:function(e){var t=this.options,n=e.find(".input input").val();return!t.regexp.test(n)||/^\./.test(n)?e.find(".input").addClass("has-error"):(e.find(".tools").children(":visible").remove(),e.find(".tools").children().toggle(),e.find(".input").hide(),e.find(".name").show().html(e.find(".input input").val()+"."+e.data("extension")),e.find(".size").show(),e.data("filename",e.find(".input input").val())),this},editCancel:function(e){e.find(".tools").children(":visible").remove(),e.find(".tools").children().toggle(),e.find(".input").hide(),e.find(".name").show(),e.find(".size").show()},editReset:function(e){e.find(".tools").children(":visible").remove(),e.find(".tools").children().toggle(),e.find(".input").hide(),e.find(".name").show().html(e.data("originalFilename")+"."+e.data("extension")),e.find(".size").show(),e.data("filename",e.data("originalFilename"))},remove:function(e){var t=this.element;this.input;e.remove(),0==j(t).find(".file").length&&this.reset()},removeAll:function(){var n=this,e=n.element;j.each(j(e).find(".file"),function(e,t){!0===j(t).data("done")?n.removeFile(j(t)):n.remove(j(t))})},reset:function(){var e=this,t=e.element,n=e.input;e.files=[],e._resetInput(),e.stopAll(),j(t).children().not(n).not(".add").not(".multiple").remove();t=j(t).find(".multiple").hide();j(t).find(".allstart").hide(),j(t).find(".allstop").show()},_resetInput:function(){this.input}},j.fn.html5fileupload=function(e){if(!j.data(this,"html5fileupload"))return j(this).each(function(){new j.html5fileupload(e,this),j.data(this,"html5fileupload")})}}(window,jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(d){var n=/\+/g;function p(e){return f.raw?e:encodeURIComponent(e)}function h(e,t){e=f.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(n," ")),f.json?JSON.parse(e):e}catch(e){}}(e);return d.isFunction(t)?t(e):e}var f=d.cookie=function(e,t,n){var i,a;if(void 0!==t&&!d.isFunction(t))return"number"==typeof(n=d.extend({},f.defaults,n)).expires&&(a=n.expires,(i=n.expires=new Date).setTime(+i+864e5*a)),document.cookie=[p(e),"=",(a=t,p(f.json?JSON.stringify(a):String(a))),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("");for(var r=e?void 0:{},o=document.cookie?document.cookie.split("; "):[],s=0,l=o.length;s<l;s++){var c=o[s].split("="),u=(u=c.shift(),f.raw?u:decodeURIComponent(u)),c=c.join("=");if(e&&e===u){r=h(c,t);break}e||void 0===(c=h(c))||(r[u]=c)}return r};f.defaults={},d.removeCookie=function(e,t){return void 0!==d.cookie(e)&&(d.cookie(e,"",d.extend({},t,{expires:-1})),!d.cookie(e))}}),function(c){var r={init:function(t){return this.each(function(){var o=c(this);o.data("uploadifive",{inputs:{},inputCount:0,fileID:0,queue:{count:0,selected:0,replaced:0,errors:0,queued:0,cancelled:0},uploads:{current:0,attempts:0,successful:0,errors:0,count:0}});var e,s=o.data("uploadifive"),l=s.settings=c.extend({auto:!0,buttonClass:!1,buttonText:"Select Files",checkScript:!1,dnd:!0,dropTarget:!1,fileObjName:"Filedata",fileSizeLimit:0,fileType:!1,formData:{},height:30,itemTemplate:!1,method:"post",multi:!0,overrideEvents:[],queueID:!1,queueSizeLimit:0,removeCompleted:!1,simUploadLimit:0,truncateLength:0,uploadLimit:0,uploadScript:"uploadifive.php",width:100},t);if(isNaN(l.fileSizeLimit)?(e=1.024*parseInt(l.fileSizeLimit),-1<l.fileSizeLimit.indexOf("KB")?l.fileSizeLimit=1e3*e:-1<l.fileSizeLimit.indexOf("MB")?l.fileSizeLimit=1e6*e:-1<l.fileSizeLimit.indexOf("GB")&&(l.fileSizeLimit=1e9*e)):l.fileSizeLimit=l.fileSizeLimit,s.inputTemplate=c('<input type="file">').css({"font-size":l.height+"px",opacity:0,position:"absolute",right:"-3px",top:"-3px","z-index":999}),s.createInput=function(){var e=s.inputTemplate.clone(),n=e.name="input"+s.inputCount++;l.multi&&e.attr("multiple",!0),l.fileType&&e.attr("accept",l.fileType),e.bind("change",function(){s.queue.selected=0,s.queue.replaced=0,s.queue.errors=0,s.queue.queued=0;var e=this.files.length;if(s.queue.selected=e,s.queue.count+e>l.queueSizeLimit&&0!==l.queueSizeLimit)c.inArray("onError",l.overrideEvents)<0&&alert("The maximum number of queue items has been reached ("+l.queueSizeLimit+").  Please select fewer files."),"function"==typeof l.onError&&l.onError.call(o,"QUEUE_LIMIT_EXCEEDED");else{for(var t=0;t<e;t++)file=this.files[t],s.addQueueItem(file);s.inputs[n]=this,s.createInput()}l.auto&&r.upload.call(o),"function"==typeof l.onSelect&&l.onSelect.call(o,s.queue)}),s.currentInput&&s.currentInput.hide(),s.button.append(e),s.currentInput=e},s.destroyInput=function(e){c(s.inputs[e]).remove(),delete s.inputs[e],s.inputCount--},s.drop=function(e){s.queue.selected=0,s.queue.replaced=0,s.queue.errors=0,s.queue.queued=0;var t=e.dataTransfer,n=t.name="input"+s.inputCount++,i=t.files.length;if(s.queue.selected=i,s.queue.count+i>l.queueSizeLimit&&0!==l.queueSizeLimit)c.inArray("onError",l.overrideEvents)<0&&alert("The maximum number of queue items has been reached ("+l.queueSizeLimit+").  Please select fewer files."),"function"==typeof l.onError&&l.onError.call(o,"QUEUE_LIMIT_EXCEEDED");else{for(var a=0;a<i;a++)file=t.files[a],s.addQueueItem(file);s.inputs[n]=t}l.auto&&r.upload.call(o),"function"==typeof l.onDrop&&l.onDrop.call(o,t.files,t.files.length),e.preventDefault(),e.stopPropagation()},s.fileExistsInQueue=function(e){for(var t in s.inputs){input=s.inputs[t],limit=input.files.length;for(var n=0;n<limit;n++)if(existingFile=input.files[n],existingFile.name==e.name&&!existingFile.complete)return!0}return!1},s.removeExistingFile=function(e){for(var t in s.inputs){input=s.inputs[t],limit=input.files.length;for(var n=0;n<limit;n++)existingFile=input.files[n],existingFile.name!=e.name||existingFile.complete||(s.queue.replaced++,r.cancel.call(o,existingFile,!0))}},0==l.itemTemplate?s.queueItem=c('<div class="uploadifive-queue-item">                        <a class="close" href="#">X</a>                        <div><span class="filename"></span><span class="fileinfo"></span></div>                        <div class="progress">                            <div class="progress-bar"></div>                        </div>                    </div>'):s.queueItem=c(l.itemTemplate),s.addQueueItem=function(e){c.inArray("onAddQueueItem",l.overrideEvents)<0&&(s.removeExistingFile(e),e.queueItem=s.queueItem.clone(),e.queueItem.attr("id",l.id+"-file-"+s.fileID++),e.queueItem.find(".close").bind("click",function(){return r.cancel.call(o,e),!1}),(n=e.name).length>l.truncateLength&&0!=l.truncateLength&&(n=n.substring(0,l.truncateLength)+"..."),e.queueItem.find(".filename").html(n),e.queueItem.data("file",e),s.queueEl.append(e.queueItem)),"function"==typeof l.onAddQueueItem&&l.onAddQueueItem.call(o,e);var t=JSON.parse(wpj_vars.allowed_mime_types),n=(n=/(?:\.([^.]+))?$/.exec(n)[1]).toLowerCase();c.inArray(n,t)<0?s.error("FORBIDDEN_FILE_TYPE",e):e.size>l.fileSizeLimit&&0!=l.fileSizeLimit?s.error("FILE_SIZE_LIMIT_EXCEEDED",e):(s.queue.queued++,s.queue.count++)},s.removeQueueItem=function(e,t,n){n=n||0;t=t?0:500;e.queueItem&&(e.queueItem.find(".fileinfo").html()!=" - "+wpj_vars.finished&&e.queueItem.find(".fileinfo").html(" - "+wpj_vars.cancelled),e.queueItem.find(".progress-bar").width(0),e.queueItem.delay(n).fadeOut(t,function(){c(this).remove()}),delete e.queueItem,s.queue.count--)},s.filesToUpload=function(){var e,t=0;for(e in s.inputs){input=s.inputs[e],limit=input.files.length;for(var n=0;n<limit;n++)file=input.files[n],file.skip||file.complete||t++}return t},s.checkExists=function(t){if(c.inArray("onCheck",l.overrideEvents)<0){c.ajaxSetup({async:!1});var e=c.extend(l.formData,{filename:t.name});if(c.post(l.checkScript,e,function(e){t.exists=parseInt(e)}),t.exists&&!confirm("A file named "+t.name+" already exists in the upload folder.\nWould you like to replace it?"))return r.cancel.call(o,t),!0}return"function"==typeof l.onCheck&&l.onCheck.call(o,t,t.exists),!1},s.uploadFile=function(a,r){if(!a.skip&&!a.complete&&!a.uploading)if(a.uploading=!0,s.uploads.current++,s.uploads.attempted++,xhr=a.xhr=new XMLHttpRequest,"function"==typeof FormData||"object"==typeof FormData){var e=new FormData;for(i in e.append(l.fileObjName,a),l.formData)e.append(i,l.formData[i]);xhr.open(l.method,l.uploadScript,!0),xhr.upload.addEventListener("progress",function(e){e.lengthComputable&&s.progress(e,a)},!1),xhr.addEventListener("load",function(e){4==this.readyState&&(a.uploading=!1,200==this.status?a.xhr.responseText!==wpj_vars.invalid_file_type?s.uploadComplete(e,a,r):s.error(a.xhr.responseText,a,r):404==this.status?s.error("404_FILE_NOT_FOUND",a,r):403==this.status?s.error("403_FORBIDDEN",a,r):s.error(wpj_vars.unknown_error,a,r))}),xhr.send(e)}else{var t=new FileReader;t.onload=function(e){var t="-------------------------"+(new Date).getTime(),n="\r\n",i="";for(key in i+="--"+t+n,i+='Content-Disposition: form-data; name="'+l.fileObjName+'"',a.name&&(i+='; filename="'+a.name+'"'),i+=n,i+="Content-Type: application/octet-stream"+n+n,i+=e.target.result+n,l.formData)i+="--"+t+n,i+='Content-Disposition: form-data; name="'+key+'"'+n+n,i+=l.formData[key]+n;i+="--"+t+"--"+n,xhr.upload.addEventListener("progress",function(e){s.progress(e,a)},!1),xhr.addEventListener("load",function(e){a.uploading=!1,404==this.status?s.error("404_FILE_NOT_FOUND",a,r):a.xhr.responseText!=wpj_vars.invalid_file_type?s.uploadComplete(e,a,r):s.error(a.xhr.responseText,a,r)},!1);l.uploadScript;"get"==l.method&&c(l.formData).param(),xhr.open(l.method,l.uploadScript,!0),xhr.setRequestHeader("Content-Type","multipart/form-data; boundary="+t),"function"==typeof l.onUploadFile&&l.onUploadFile.call(o,a),xhr.sendAsBinary(i)},t.readAsBinaryString(a)}},s.progress=function(e,t){var n;c.inArray("onProgress",l.overrideEvents)<0&&(e.lengthComputable&&(n=Math.round(e.loaded/e.total*100)),t.queueItem.find(".fileinfo").html(" - "+n+"%"),t.queueItem.find(".progress-bar").css("width",n+"%")),"function"==typeof l.onProgress&&l.onProgress.call(o,t,e)},s.error=function(e,t,n){if(c.inArray("onError",l.overrideEvents)<0){switch(e){case"404_FILE_NOT_FOUND":errorMsg=wpj_vars.error_404;break;case"403_FORBIDDEN":errorMsg=wpj_vars.error_403;break;case"FORBIDDEN_FILE_TYPE":errorMsg=wpj_vars.forbidden_file_type;break;case"FILE_SIZE_LIMIT_EXCEEDED":errorMsg=wpj_vars.maximum_file_size_exceeded;break;default:errorMsg=wpj_vars.unknown_error}t.queueItem.addClass("error").find(".fileinfo").html(" - "+errorMsg),t.queueItem.find(".progress").remove()}"function"==typeof l.onError&&l.onError.call(o,e,t),t.skip=!0,"404_FILE_NOT_FOUND"==e?s.uploads.errors++:s.queue.errors++,n&&r.upload.call(o,null,!0)},s.uploadComplete=function(e,t,n){c.inArray("onUploadComplete",l.overrideEvents)<0&&(t.queueItem.find(".progress-bar").css("width","100%"),t.queueItem.find(".fileinfo").html(" - "+wpj_vars.finished),t.queueItem.find(".progress").slideUp(250),t.queueItem.addClass("complete")),"function"==typeof l.onUploadComplete&&l.onUploadComplete.call(o,t,t.xhr.responseText),l.removeCompleted&&setTimeout(function(){r.cancel.call(o,t)},3e3),t.complete=!0,s.uploads.successful++,s.uploads.count++,s.uploads.current--,delete t.xhr,n&&r.upload.call(o,null,!0)},s.queueComplete=function(){"function"==typeof l.onQueueComplete&&l.onQueueComplete.call(o,s.uploads)},!(window.File&&window.FileList&&window.Blob&&(window.FileReader||window.FormData)))return"function"==typeof l.onFallback&&l.onFallback.call(o),!1;l.id="uploadifive-"+o.attr("id"),o.hasClass("show-only-icon-attachment")?o.attr("data-icon")&&1!=o.attr("data-icon")?s.button=c('<div id="'+l.id+'"><i class="'+o.attr("data-icon")+' icon"></i></div>'):s.button=c('<div id="'+l.id+'"><i class="attach icon"></i></div>'):s.button=c('<div id="'+l.id+'" class="ui left labeled icon button uploadifive-button"><i class="attach icon"></i>'+l.buttonText+"</div>"),l.buttonClass&&s.button.addClass(l.buttonClass),s.button.css({height:l.height,"line-height":l.height+"px",overflow:"hidden",position:"relative","text-align":"center",width:l.width}),o.before(s.button).appendTo(s.button).hide(),s.createInput.call(o),l.queueID?s.queueEl=c("#"+l.queueID):(l.queueID=l.id+"-queue",s.queueEl=c('<div id="'+l.queueID+'" class="uploadifive-queue" />'),s.button.after(s.queueEl)),l.dnd&&((e=l.dropTarget?c(l.dropTarget):s.queueEl.get(0)).addEventListener("dragleave",function(e){e.preventDefault(),e.stopPropagation()},!1),e.addEventListener("dragenter",function(e){e.preventDefault(),e.stopPropagation()},!1),e.addEventListener("dragover",function(e){e.preventDefault(),e.stopPropagation()},!1),e.addEventListener("drop",s.drop,!1)),XMLHttpRequest.prototype.sendAsBinary||(XMLHttpRequest.prototype.sendAsBinary=function(e){e=Array.prototype.map.call(e,function(e){return 255&e.charCodeAt(0)}),e=new Uint8Array(e);this.send(e.buffer)}),"function"==typeof l.onInit&&l.onInit.call(o)})},debug:function(){return this.each(function(){console.log(c(this).data("uploadifive"))})},clearQueue:function(){this.each(function(){var e,t=c(this),n=t.data("uploadifive"),a=n.settings;for(e in n.inputs)for(input=n.inputs[e],limit=input.files.length,i=0;i<limit;i++)file=input.files[i],r.cancel.call(t,file);"function"==typeof a.onClearQueue&&a.onClearQueue.call(t,c("#"+n.settings.queueID))})},cancel:function(i,a){this.each(function(){var e=c(this),t=e.data("uploadifive"),n=t.settings;"string"==typeof i&&(isNaN(i)||(fileID="uploadifive-"+c(this).attr("id")+"-file-"+i),i=c("#"+fileID).data("file")),i.skip=!0,t.filesCancelled++,i.uploading&&(t.uploads.current--,i.uploading=!1,i.xhr.abort(),delete i.xhr,r.upload.call(e)),c.inArray("onCancel",n.overrideEvents)<0&&t.removeQueueItem(i,a),"function"==typeof n.onCancel&&n.onCancel.call(e,i)})},upload:function(a,r){this.each(function(){var e,t=c(this),n=t.data("uploadifive"),i=n.settings;a?n.uploadFile.call(t,a):n.uploads.count+n.uploads.current<i.uploadLimit||0==i.uploadLimit?(r||(n.uploads.attempted=0,n.uploads.successsful=0,n.uploads.errors=0,e=n.filesToUpload(),"function"==typeof i.onUpload&&i.onUpload.call(t,e)),c("#"+i.queueID).find(".uploadifive-queue-item").not(".error, .complete").each(function(){return _file=c(this).data("file"),!(n.uploads.current>=i.simUploadLimit&&0!==i.simUploadLimit||n.uploads.current>=i.uploadLimit&&0!==i.uploadLimit||n.uploads.count>=i.uploadLimit&&0!==i.uploadLimit)&&void(i.checkScript?(_file.checking=!0,skipFile=n.checkExists(_file),_file.checking=!1,skipFile||n.uploadFile(_file,!0)):n.uploadFile(_file,!0))}),0==c("#"+i.queueID).find(".uploadifive-queue-item").not(".error, .complete").length&&n.queueComplete()):0==n.uploads.current&&(c.inArray("onError",i.overrideEvents)<0&&0<n.filesToUpload()&&0!=i.uploadLimit&&alert(wpj_vars.maximum_number_of_files_exceeded),"function"==typeof i.onError&&i.onError.call(t,"UPLOAD_LIMIT_EXCEEDED",n.filesToUpload()))})},destroy:function(){this.each(function(){var e=c(this),t=e.data("uploadifive"),n=t.settings;r.clearQueue.call(e),n.queueID||c("#"+n.queueID).remove(),e.siblings("input").remove(),e.show().insertBefore(t.button),t.button.remove(),"function"==typeof n.onDestroy&&n.onDestroy.call(e)})}};c.fn.uploadifive=function(e){return r[e]?r[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void c.error("The method "+e+" does not exist in $.uploadify"):r.init.apply(this,arguments)}}(jQuery),function(){"use strict";function a(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var l="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var r=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);function e(e,t){if(t)e:{var n=r;e=e.split(".");for(var i=0;i<e.length-1;i++){var a=e[i];if(!(a in n))break e;n=n[a]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&l(n,e,{configurable:!0,writable:!0,value:t})}}function s(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function c(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:a(e)}}function i(e){if(!(e instanceof Array)){e=c(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}e("Symbol",function(e){function n(e,t){this.g=e,l(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;n.prototype.toString=function(){return this.g};var i="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",a=0;return function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new n(i+(t||"")+"_"+a++,t)}}),e("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var i=r[t[n]];"function"==typeof i&&"function"!=typeof i.prototype[e]&&l(i.prototype,e,{configurable:!0,writable:!0,value:function(){return s(a(this))}})}return e}),e("Symbol.asyncIterator",function(e){return e||Symbol("Symbol.asyncIterator")});var t,n,o="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t},u=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(Reflect.construct(e,[],function(){}),new e instanceof e)return Reflect.construct;var i=Reflect.construct;return function(e,t,n){return e=i(e,t),n&&Reflect.setPrototypeOf(e,n.prototype),e}}function e(){}return function(e,t,n){return n=o((n=void 0===n?e:n).prototype||Object.prototype),Function.prototype.apply.call(e,n,t)||n}}();if("function"==typeof Object.setPrototypeOf)t=Object.setPrototypeOf;else{e:{var d={};try{d.__proto__={a:!0},n=d.a;break e}catch(e){}n=!1}t=n?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var p=t;function h(e,t){if(e.prototype=o(t.prototype),e.prototype.constructor=e,p)p(e,t);else for(var n in t){var i;"prototype"!=n&&(Object.defineProperties?(i=Object.getOwnPropertyDescriptor(t,n))&&Object.defineProperty(e,n,i):e[n]=t[n])}e.ma=t.prototype}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function m(e,t,n){if(null==e)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""}function _(e,t,n){for(var i=(e=e instanceof String?String(e):e).length,a=0;a<i;a++){var r=e[a];if(t.call(n,r,a,e))return{S:a,X:r}}return{S:-1,X:void 0}}function g(t,n){t instanceof String&&(t+="");var i=0,a=!1,e={next:function(){if(!a&&i<t.length){var e=i++;return{value:n(e,t[e]),done:!1}}return{done:a=!0,value:void 0}}};return e[Symbol.iterator]=function(){return e},e}e("Reflect",function(e){return e||{}}),e("Reflect.construct",function(){return u}),e("Reflect.setPrototypeOf",function(e){return e||(p?function(e,t){try{return p(e,t),!0}catch(e){return!1}}:null)}),e("WeakMap",function(i){function e(e){if(this.g=(s+=Math.random()+1).toString(),e){e=c(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}}function n(){}function a(e){var t=typeof e;return"object"==t&&null!==e||"function"==t}function r(e){var t;f(e,o)||(t=new n,l(e,o,{value:t}))}function t(e){var t=Object[e];t&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&r(e),t(e))})}if(function(){if(i&&Object.seal)try{var e=Object.seal({}),t=Object.seal({}),n=new i([[e,2],[t,3]]);return 2!=n.get(e)||3!=n.get(t)?void 0:(n.delete(e),n.set(t,4),!n.has(e)&&4==n.get(t))}catch(e){return}}())return i;var o="$jscomp_hidden_"+Math.random();t("freeze"),t("preventExtensions"),t("seal");var s=0;return e.prototype.set=function(e,t){if(!a(e))throw Error("Invalid WeakMap key");if(r(e),!f(e,o))throw Error("WeakMap key fail: "+e);return e[o][this.g]=t,this},e.prototype.get=function(e){return a(e)&&f(e,o)?e[o][this.g]:void 0},e.prototype.has=function(e){return a(e)&&f(e,o)&&f(e[o],this.g)},e.prototype.delete=function(e){return!!(a(e)&&f(e,o)&&f(e[o],this.g))&&delete e[o][this.g]},e}),e("Map",function(a){function n(){var e={};return e.A=e.next=e.head=e}function e(e,t){var n=e.g;return s(function(){if(n){for(;n.head!=e.g;)n=n.A;if(n.next!=n.head)return n=n.next,{done:!1,value:t(n)};n=null}return{done:!0,value:void 0}})}function i(e,t){var n=t&&typeof t;"object"==n||"function"==n?r.has(t)?n=r.get(t):(n=""+ ++o,r.set(t,n)):n="p_"+t;var i=e.h[n];if(i&&f(e.h,n))for(e=0;e<i.length;e++){var a=i[e];if(t!=t&&a.key!=a.key||t===a.key)return{id:n,list:i,index:e,u:a}}return{id:n,list:i,index:-1,u:void 0}}function t(e){if(this.h={},this.g=n(),this.size=0,e){e=c(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}}if(function(){if(a&&"function"==typeof a&&a.prototype.entries&&"function"==typeof Object.seal)try{var e=Object.seal({x:4}),t=new a(c([[e,"s"]]));if("s"!=t.get(e)||1!=t.size||t.get({x:4})||t.set({x:4},"t")!=t||2!=t.size)return;var n=t.entries(),i=n.next();return i.done||i.value[0]!=e||"s"!=i.value[1]?void 0:!((i=n.next()).done||4!=i.value[0].x||"t"!=i.value[1]||!n.next().done)}catch(e){return}}())return a;var r=new WeakMap;t.prototype.set=function(e,t){var n=i(this,e=0===e?0:e);return n.list||(n.list=this.h[n.id]=[]),n.u?n.u.value=t:(n.u={next:this.g,A:this.g.A,head:this.g,key:e,value:t},n.list.push(n.u),this.g.A.next=n.u,this.g.A=n.u,this.size++),this},t.prototype.delete=function(e){return!(!(e=i(this,e)).u||!e.list)&&(e.list.splice(e.index,1),e.list.length||delete this.h[e.id],e.u.A.next=e.u.next,e.u.next.A=e.u.A,e.u.head=null,this.size--,!0)},t.prototype.clear=function(){this.h={},this.g=this.g.A=n(),this.size=0},t.prototype.has=function(e){return!!i(this,e).u},t.prototype.get=function(e){return(e=i(this,e).u)&&e.value},t.prototype.entries=function(){return e(this,function(e){return[e.key,e.value]})},t.prototype.keys=function(){return e(this,function(e){return e.key})},t.prototype.values=function(){return e(this,function(e){return e.value})},t.prototype.forEach=function(e,t){for(var n,i=this.entries();!(n=i.next()).done;)n=n.value,e.call(t,n[1],n[0],this)},t.prototype[Symbol.iterator]=t.prototype.entries;var o=0;return t}),e("String.prototype.endsWith",function(e){return e||function(e,t){var n=m(this,e,"endsWith");void 0===t&&(t=n.length),t=Math.max(0,Math.min(0|t,n.length));for(var i=e.length;0<i&&0<t;)if(n[--t]!=e[--i])return!1;return i<=0}}),e("Array.prototype.find",function(e){return e||function(e,t){return _(this,e,t).X}}),e("String.prototype.startsWith",function(e){return e||function(e,t){var n=m(this,e,"startsWith"),i=n.length,a=e.length;t=Math.max(0,Math.min(0|t,n.length));for(var r=0;r<a&&t<i;)if(n[t++]!=e[r++])return!1;return a<=r}}),e("String.prototype.repeat",function(e){return e||function(e){var t=m(this,null,"repeat");if(e<0||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var n="";e;)1&e&&(n+=t),(e>>>=1)&&(t+=t);return n}}),e("Array.prototype.keys",function(e){return e||function(){return g(this,function(e){return e})}}),e("Array.from",function(e){return e||function(e,t,n){t=null!=t?t:function(e){return e};var i=[],a="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof a){e=a.call(e);for(var r=0;!(a=e.next()).done;)i.push(t.call(n,a.value,r++))}else for(a=e.length,r=0;r<a;r++)i.push(t.call(n,e[r],r));return i}}),e("Array.prototype.values",function(e){return e||function(){return g(this,function(e,t){return t})}}),e("String.prototype.trimLeft",function(e){return e||function(){return this.replace(/^[\s\xa0]+/,"")}}),e("String.prototype.trimStart",function(e){return e||String.prototype.trimLeft}),e("Object.setPrototypeOf",function(e){return e||p});var y="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var a in i)f(i,a)&&(e[a]=i[a])}return e};function v(e,t){for(;e;){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n)return n;e=Reflect.getPrototypeOf(e)}}function w(e,t){return e=void 0!==e?String(e):" ",0<t&&e?e.repeat(Math.ceil(t/e.length)).substring(0,t):""}function b(e){return e||Array.prototype.copyWithin}function j(e){return e||Array.prototype.fill}e("Object.assign",function(e){return e||y}),e("Promise",function(e){function o(e){this.g=0,this.i=void 0,this.h=[],this.s=!1;var t=this.j();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function t(){this.g=null}function s(t){return t instanceof o?t:new o(function(e){e(t)})}if(e)return e;t.prototype.h=function(e){var t;null==this.g&&(this.g=[],(t=this).i(function(){t.l()})),this.g.push(e)};var n=r.setTimeout;t.prototype.i=function(e){n(e,0)},t.prototype.l=function(){for(;this.g&&this.g.length;){var e=this.g;this.g=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.j(e)}}}this.g=null},t.prototype.j=function(e){this.i(function(){throw e})},o.prototype.j=function(){function e(t){return function(e){i||(i=!0,t.call(n,e))}}var n=this,i=!1;return{resolve:e(this.J),reject:e(this.l)}},o.prototype.J=function(e){if(e===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof o)this.Y(e);else{switch(typeof e){case"object":var t=null!=e;break;case"function":t=!0;break;default:t=!1}t?this.I(e):this.o(e)}},o.prototype.I=function(e){var t=void 0;try{t=e.then}catch(e){return void this.l(e)}"function"==typeof t?this.Z(t,e):this.o(e)},o.prototype.l=function(e){this.v(2,e)},o.prototype.o=function(e){this.v(1,e)},o.prototype.v=function(e,t){if(0!=this.g)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.g);this.g=e,this.i=t,2===this.g&&this.L(),this.C()},o.prototype.L=function(){var t=this;n(function(){var e;!t.D()||void 0!==(e=r.console)&&e.error(t.i)},1)},o.prototype.D=function(){if(this.s)return!1;var e=r.CustomEvent,t=r.Event,n=r.dispatchEvent;return void 0===n||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=r.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.i,n(e))},o.prototype.C=function(){if(null!=this.h){for(var e=0;e<this.h.length;++e)a.h(this.h[e]);this.h=null}};var a=new t;return o.prototype.Y=function(e){var t=this.j();e.K(t.resolve,t.reject)},o.prototype.Z=function(e,t){var n=this.j();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},o.prototype.then=function(e,t){function n(t,e){return"function"==typeof t?function(e){try{i(t(e))}catch(e){a(e)}}:e}var i,a,r=new o(function(e,t){i=e,a=t});return this.K(n(e,i),n(t,a)),r},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.K=function(e,t){function n(){switch(i.g){case 1:e(i.i);break;case 2:t(i.i);break;default:throw Error("Unexpected state: "+i.g)}}var i=this;null==this.h?a.h(n):this.h.push(n),this.s=!0},o.resolve=s,o.reject=function(n){return new o(function(e,t){t(n)})},o.race=function(a){return new o(function(e,t){for(var n=c(a),i=n.next();!i.done;i=n.next())s(i.value).K(e,t)})},o.all=function(e){var t=c(e),r=t.next();return r.done?s([]):new o(function(n,e){for(var i=[],a=0;i.push(void 0),a++,s(r.value).K(function(t){return function(e){i[t]=e,0==--a&&n(i)}}(i.length-1),e),!(r=t.next()).done;);})},o}),e("Object.is",function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}}),e("Array.prototype.includes",function(e){return e||function(e,t){var n=this,i=(n=n instanceof String?String(n):n).length;for((t=t||0)<0&&(t=Math.max(t+i,0));t<i;t++){var a=n[t];if(a===e||Object.is(a,e))return!0}return!1}}),e("String.prototype.includes",function(e){return e||function(e,t){return-1!==m(this,e,"includes").indexOf(e,t||0)}}),e("Array.prototype.copyWithin",function(e){function a(e){return 1/0===(e=Number(e))||-1/0===e?e:0|e}return e||function(e,t,n){var i=this.length;if(e=a(e),t=a(t),n=void 0===n?i:a(n),e=e<0?Math.max(i+e,0):Math.min(e,i),t=t<0?Math.max(i+t,0):Math.min(t,i),n=n<0?Math.max(i+n,0):Math.min(n,i),e<t)for(;t<n;)t in this?this[e++]=this[t++]:(delete this[e++],t++);else for(e+=(n=Math.min(n,i+t-e))-t;t<n;)--n in this?this[--e]=this[n]:delete this[--e];return this}}),e("Array.prototype.entries",function(e){return e||function(){return g(this,function(e,t){return[e,t]})}}),e("Array.prototype.fill",function(e){return e||function(e,t,n){var i=this.length||0;for(t<0&&(t=Math.max(0,i+t)),(null==n||i<n)&&(n=i),(n=Number(n))<0&&(n=Math.max(0,i+n)),t=Number(t||0);t<n;t++)this[t]=e;return this}}),e("Array.prototype.findIndex",function(e){return e||function(e,t){return _(this,e,t).S}}),e("Array.prototype.flat",function(e){return e||function(e){e=void 0===e?1:e;for(var t=[],n=0;n<this.length;n++){var i=this[n];Array.isArray(i)&&0<e?(i=Array.prototype.flat.call(i,e-1),t.push.apply(t,i)):t.push(i)}return t}}),e("Array.prototype.flatMap",function(e){return e||function(e,t){for(var n=[],i=0;i<this.length;i++){var a=e.call(t,this[i],i,this);Array.isArray(a)?n.push.apply(n,a):n.push(a)}return n}}),e("Array.of",function(e){return e||function(e){return Array.from(arguments)}}),e("globalThis",function(e){return e||r}),e("Math.acosh",function(e){return e||function(e){return e=Number(e),Math.log(e+Math.sqrt(e*e-1))}}),e("Math.asinh",function(e){return e||function(e){if(0===(e=Number(e)))return e;var t=Math.log(Math.abs(e)+Math.sqrt(e*e+1));return e<0?-t:t}}),e("Math.log1p",function(e){return e||function(e){if((e=Number(e))<.25&&-.25<e){for(var t=e,n=1,i=e,a=0,r=1;a!=i;)i=(a=i)+(r*=-1)*(t*=e)/++n;return i}return Math.log(1+e)}}),e("Math.atanh",function(e){if(e)return e;var t=Math.log1p;return function(e){return e=Number(e),(t(e)-t(-e))/2}}),e("Math.cbrt",function(e){return e||function(e){if(0===e)return e;e=Number(e);var t=Math.pow(Math.abs(e),1/3);return e<0?-t:t}}),e("Math.clz32",function(e){return e||function(e){if(0===(e=Number(e)>>>0))return 32;var t=0;return 0==(4294901760&e)&&(e<<=16,t+=16),0==(4278190080&e)&&(e<<=8,t+=8),0==(4026531840&e)&&(e<<=4,t+=4),0==(3221225472&e)&&(e<<=2,t+=2),0==(2147483648&e)&&t++,t}}),e("Math.cosh",function(e){if(e)return e;var t=Math.exp;return function(e){return e=Number(e),(t(e)+t(-e))/2}}),e("Math.expm1",function(e){return e||function(e){if((e=Number(e))<.25&&-.25<e){for(var t=e,n=1,i=e,a=0;a!=i;)i=(a=i)+(t*=e/++n);return i}return Math.exp(e)-1}}),e("Math.fround",function(e){if(e)return e;if("function"!=typeof Float32Array)return function(e){return e};var t=new Float32Array(1);return function(e){return t[0]=e,t[0]}}),e("Math.hypot",function(e){return e||function(e){if(arguments.length<2)return arguments.length?Math.abs(e):0;for(var t,n,i=n=0;i<arguments.length;i++)n=Math.max(n,Math.abs(arguments[i]));if(1e100<n||n<1e-100){if(!n)return n;for(i=t=0;i<arguments.length;i++){var a=Number(arguments[i])/n;t+=a*a}return Math.sqrt(t)*n}for(i=t=0;i<arguments.length;i++)t+=(a=Number(arguments[i]))*a;return Math.sqrt(t)}}),e("Math.imul",function(e){return e||function(e,t){var n=65535&(e=Number(e)),i=65535&(t=Number(t));return n*i+((e>>>16&65535)*i+n*(t>>>16&65535)<<16>>>0)|0}}),e("Math.log10",function(e){return e||function(e){return Math.log(e)/Math.LN10}}),e("Math.log2",function(e){return e||function(e){return Math.log(e)/Math.LN2}}),e("Math.sign",function(e){return e||function(e){return 0===(e=Number(e))||isNaN(e)?e:0<e?1:-1}}),e("Math.sinh",function(e){if(e)return e;var t=Math.exp;return function(e){return 0===(e=Number(e))?e:(t(e)-t(-e))/2}}),e("Math.tanh",function(e){return e||function(e){if(0===(e=Number(e)))return e;var t=(1-(t=Math.exp(-2*Math.abs(e))))/(1+t);return e<0?-t:t}}),e("Math.trunc",function(e){return e||function(e){if(e=Number(e),isNaN(e)||1/0===e||-1/0===e||0===e)return e;var t=Math.floor(Math.abs(e));return e<0?-t:t}}),e("Number.EPSILON",function(){return Math.pow(2,-52)}),e("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}),e("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}),e("Number.isFinite",function(e){return e||function(e){return"number"==typeof e&&(!isNaN(e)&&1/0!==e&&-1/0!==e)}}),e("Number.isInteger",function(e){return e||function(e){return!!Number.isFinite(e)&&e===Math.floor(e)}}),e("Number.isNaN",function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}}),e("Number.isSafeInteger",function(e){return e||function(e){return Number.isInteger(e)&&Math.abs(e)<=Number.MAX_SAFE_INTEGER}}),e("Number.parseFloat",function(e){return e||parseFloat}),e("Number.parseInt",function(e){return e||parseInt}),e("Object.entries",function(e){return e||function(e){var t,n=[];for(t in e)f(e,t)&&n.push([t,e[t]]);return n}}),e("Object.fromEntries",function(e){return e||function(e){var t={};if(!(Symbol.iterator in e))throw new TypeError(e+" is not iterable");for(var n=(e=e[Symbol.iterator].call(e)).next();!n.done;n=e.next()){if(n=n.value,Object(n)!==n)throw new TypeError("iterable for fromEntries should yield objects");t[n[0]]=n[1]}return t}}),e("Object.getOwnPropertySymbols",function(e){return e||function(){return[]}}),e("Reflect.ownKeys",function(e){return e||function(e){var t=[],n=Object.getOwnPropertyNames(e);e=Object.getOwnPropertySymbols(e);for(var i=0;i<n.length;i++)("jscomp_symbol_"==n[i].substring(0,14)?e:t).push(n[i]);return t.concat(e)}}),e("Object.getOwnPropertyDescriptors",function(e){return e||function(e){for(var t={},n=Reflect.ownKeys(e),i=0;i<n.length;i++)t[n[i]]=Object.getOwnPropertyDescriptor(e,n[i]);return t}}),e("Object.values",function(e){return e||function(e){var t,n=[];for(t in e)f(e,t)&&n.push(e[t]);return n}}),e("Promise.allSettled",function(e){function n(e){return{status:"fulfilled",value:e}}function i(e){return{status:"rejected",reason:e}}return e||function(e){var t=this;return e=Array.from(e,function(e){return t.resolve(e).then(n,i)}),t.all(e)}}),e("Promise.prototype.finally",function(e){return e||function(t){return this.then(function(e){return Promise.resolve(t()).then(function(){return e})},function(e){return Promise.resolve(t()).then(function(){throw e})})}}),e("AggregateError",function(e){function t(e,t){"stack"in(t=Error(t))&&(this.stack=t.stack),this.errors=e,this.message=t.message}return e||(h(t,Error),t.prototype.name="AggregateError",t)}),e("Promise.any",function(e){return e||function(e){return e=e instanceof Array?e:Array.from(e),Promise.all(e.map(function(e){return Promise.resolve(e).then(function(e){throw e},function(e){return e})})).then(function(e){throw new AggregateError(e,"All promises were rejected")},function(e){return e})}}),e("Reflect.apply",function(e){if(e)return e;var i=Function.prototype.apply;return function(e,t,n){return i.call(e,t,n)}}),e("Reflect.defineProperty",function(e){return e||function(e,t,n){try{Object.defineProperty(e,t,n);var i=Object.getOwnPropertyDescriptor(e,t);return!!i&&(i.configurable===(n.configurable||!1)&&i.enumerable===(n.enumerable||!1)&&("value"in i?i.value===n.value&&i.writable===(n.writable||!1):i.get===n.get&&i.set===n.set))}catch(e){return!1}}}),e("Reflect.deleteProperty",function(e){return e||function(e,t){if(!f(e,t))return!0;try{return delete e[t]}catch(e){return!1}}}),e("Reflect.getOwnPropertyDescriptor",function(e){return e||Object.getOwnPropertyDescriptor}),e("Reflect.getPrototypeOf",function(e){return e||Object.getPrototypeOf}),e("Reflect.get",function(e){return e||function(e,t,n){if(arguments.length<=2)return e[t];t=v(e,t);return t?t.get?t.get.call(n):t.value:void 0}}),e("Reflect.has",function(e){return e||function(e,t){return t in e}}),e("Reflect.isExtensible",function(e){return e||("function"==typeof Object.isExtensible?Object.isExtensible:function(){return!0})}),e("Reflect.preventExtensions",function(e){return e||("function"!=typeof Object.preventExtensions?function(){return!1}:function(e){return Object.preventExtensions(e),!Object.isExtensible(e)})}),e("Reflect.set",function(e){return e||function(e,t,n,i){var a=v(e,t);return a?a.set?(a.set.call(3<arguments.length?i:e,n),!0):!(!a.writable||Object.isFrozen(e))&&(e[t]=n,!0):!!Reflect.isExtensible(e)&&(e[t]=n,!0)}}),e("Set",function(a){function e(e){if(this.g=new Map,e){e=c(e);for(var t;!(t=e.next()).done;)this.add(t.value)}this.size=this.g.size}return function(){if(a&&"function"==typeof a&&a.prototype.entries&&"function"==typeof Object.seal)try{var e=Object.seal({x:4}),t=new a(c([e]));if(!t.has(e)||1!=t.size||t.add(e)!=t||1!=t.size||t.add({x:4})!=t||2!=t.size)return;var n=t.entries(),i=n.next();return i.done||i.value[0]!=e||i.value[1]!=e?void 0:!(i=n.next()).done&&i.value[0]!=e&&4==i.value[0].x&&i.value[1]==i.value[0]&&n.next().done}catch(e){return}}()?a:(e.prototype.add=function(e){return this.g.set(e=0===e?0:e,e),this.size=this.g.size,this},e.prototype.delete=function(e){return e=this.g.delete(e),this.size=this.g.size,e},e.prototype.clear=function(){this.g.clear(),this.size=0},e.prototype.has=function(e){return this.g.has(e)},e.prototype.entries=function(){return this.g.entries()},e.prototype.keys=e.prototype.values=function(){return this.g.values()},e.prototype[Symbol.iterator]=e.prototype.values,e.prototype.forEach=function(t,n){var i=this;this.g.forEach(function(e){return t.call(n,e,e,i)})},e)}),e("String.prototype.codePointAt",function(e){return e||function(e){var t=m(this,null,"codePointAt"),n=t.length;if(0<=(e=Number(e)||0)&&e<n){var i=t.charCodeAt(e|=0);return i<55296||56319<i||e+1===n?i:(e=t.charCodeAt(e+1))<56320||57343<e?i:1024*(i-55296)+e+9216}}}),e("String.fromCodePoint",function(e){return e||function(e){for(var t="",n=0;n<arguments.length;n++){var i=Number(arguments[n]);if(i<0||1114111<i||i!==Math.floor(i))throw new RangeError("invalid_code_point "+i);i<=65535?t+=String.fromCharCode(i):(i-=65536,t+=String.fromCharCode(i>>>10&1023|55296),t+=String.fromCharCode(1023&i|56320))}return t}}),e("String.prototype.matchAll",function(e){return e||function(e){if(e instanceof RegExp&&!e.global)throw new TypeError("RegExp passed into String.prototype.matchAll() must have global tag.");var t=new RegExp(e,e instanceof RegExp?void 0:"g"),n=this,i=!1,a={next:function(){if(i)return{value:void 0,done:!0};var e=t.exec(n);return e?(""===e[0]&&(t.lastIndex+=1),{value:e,done:!1}):{value:void 0,done:i=!0}}};return a[Symbol.iterator]=function(){return a},a}}),e("String.prototype.padEnd",function(e){return e||function(e,t){var n=m(this,null,"padStart");return n+w(t,e-n.length)}}),e("String.prototype.padStart",function(e){return e||function(e,t){var n=m(this,null,"padStart");return w(t,e-n.length)+n}}),e("String.prototype.replaceAll",function(e){return e||function(e,t){if(e instanceof RegExp&&!e.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return e instanceof RegExp?this.replace(e,t):this.replace(new RegExp(String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),t)}}),e("String.prototype.trimRight",function(e){return e||function(){return this.replace(/[\s\xa0]+$/,"")}}),e("String.prototype.trimEnd",function(e){return e||String.prototype.trimRight}),e("Int8Array.prototype.copyWithin",b),e("Uint8Array.prototype.copyWithin",b),e("Uint8ClampedArray.prototype.copyWithin",b),e("Int16Array.prototype.copyWithin",b),e("Uint16Array.prototype.copyWithin",b),e("Int32Array.prototype.copyWithin",b),e("Uint32Array.prototype.copyWithin",b),e("Float32Array.prototype.copyWithin",b),e("Float64Array.prototype.copyWithin",b),e("Int8Array.prototype.fill",j),e("Uint8Array.prototype.fill",j),e("Uint8ClampedArray.prototype.fill",j),e("Int16Array.prototype.fill",j),e("Uint16Array.prototype.fill",j),e("Int32Array.prototype.fill",j),e("Uint32Array.prototype.fill",j),e("Float32Array.prototype.fill",j),e("Float64Array.prototype.fill",j),e("WeakSet",function(i){function e(e){if(this.g=new WeakMap,e){e=c(e);for(var t;!(t=e.next()).done;)this.add(t.value)}}return function(){if(i&&Object.seal)try{var e=Object.seal({}),t=Object.seal({}),n=new i([e]);return!n.has(e)||n.has(t)?void 0:(n.delete(e),n.add(t),!n.has(e)&&n.has(t))}catch(e){return}}()?i:(e.prototype.add=function(e){return this.g.set(e,!0),this},e.prototype.has=function(e){return this.g.has(e)},e.prototype.delete=function(e){return this.g.delete(e)},e)});var k=this||self;function x(e){e=e.split(".");for(var t=k,n=0;n<e.length;n++)if(null==(t=t[e[n]]))return null;return t}function C(){}function S(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function T(e,t,n){return e.call.apply(e.bind,arguments)}function E(t,n,e){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(e,i),t.apply(n,e)}}return function(){return t.apply(n,arguments)}}function Q(e,t,n){return(Q=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?T:E).apply(null,arguments)}function D(e,t){e=e.split(".");var n,i=k;e[0]in i||void 0===i.execScript||i.execScript("var "+e[0]);for(;e.length&&(n=e.shift());)e.length||void 0===t?i=i[n]&&i[n]!==Object.prototype[n]?i[n]:i[n]={}:i[n]=t}function N(e,r){function t(){}t.prototype=r.prototype,e.ma=r.prototype,e.prototype=new t,(e.prototype.constructor=e).na=function(e,t,n){for(var i=Array(arguments.length-2),a=2;a<arguments.length;a++)i[a-2]=arguments[a];return r.prototype[t].apply(e,i)}}function A(e){return e}function I(e){var t;Error.captureStackTrace?Error.captureStackTrace(this,I):(t=Error().stack)&&(this.stack=t),e&&(this.message=String(e))}function R(e,t){this.g=e===q&&t||"",this.h=L}function M(e){return e instanceof R&&e.constructor===R&&e.h===L?e.g:"type_error:Const"}function P(e){return new R(q,e)}N(I,Error),I.prototype.name="CustomError",R.prototype.T=!0,R.prototype.R=function(){return this.g};var O,L={},q={},z={m:{}};function F(e,t){this.g=t===V?e:""}function U(e){return e instanceof F&&e.constructor===F?e.g:"type_error:TrustedResourceUrl"}z.m.N={ia:{"gstatic.com":{loader:P("https://www.gstatic.com/charts/%{version}/loader.js"),debug:P("https://www.gstatic.com/charts/debug/%{version}/js/jsapi_debug_%{package}_module.js"),debug_i18n:P("https://www.gstatic.com/charts/debug/%{version}/i18n/jsapi_debug_i18n_%{package}_module__%{language}.js"),compiled:P("https://www.gstatic.com/charts/%{version}/js/jsapi_compiled_%{package}_module.js"),compiled_i18n:P("https://www.gstatic.com/charts/%{version}/i18n/jsapi_compiled_i18n_%{package}_module__%{language}.js"),css:P("https://www.gstatic.com/charts/%{version}/css/%{subdir}/%{filename}"),css2:P("https://www.gstatic.com/charts/%{version}/css/%{subdir1}/%{subdir2}/%{filename}"),third_party:P("https://www.gstatic.com/charts/%{version}/third_party/%{subdir}/%{filename}"),third_party2:P("https://www.gstatic.com/charts/%{version}/third_party/%{subdir1}/%{subdir2}/%{filename}"),third_party_gen:P("https://www.gstatic.com/charts/%{version}/third_party/%{subdir}/%{filename}")},"gstatic.cn":{loader:P("https://www.gstatic.cn/charts/%{version}/loader.js"),debug:P("https://www.gstatic.cn/charts/debug/%{version}/js/jsapi_debug_%{package}_module.js"),debug_i18n:P("https://www.gstatic.cn/charts/debug/%{version}/i18n/jsapi_debug_i18n_%{package}_module__%{language}.js"),compiled:P("https://www.gstatic.cn/charts/%{version}/js/jsapi_compiled_%{package}_module.js"),compiled_i18n:P("https://www.gstatic.cn/charts/%{version}/i18n/jsapi_compiled_i18n_%{package}_module__%{language}.js"),css:P("https://www.gstatic.cn/charts/%{version}/css/%{subdir}/%{filename}"),css2:P("https://www.gstatic.cn/charts/%{version}/css/%{subdir1}/%{subdir2}/%{filename}"),third_party:P("https://www.gstatic.cn/charts/%{version}/third_party/%{subdir}/%{filename}"),third_party2:P("https://www.gstatic.cn/charts/%{version}/third_party/%{subdir1}/%{subdir2}/%{filename}"),third_party_gen:P("https://www.gstatic.cn/charts/%{version}/third_party/%{subdir}/%{filename}")}},ea:["default"],qa:{default:[],graphics:["default"],ui:["graphics"],ui_base:["graphics"],flashui:["ui"],fw:["ui"],geo:["ui"],annotatedtimeline:["annotationchart"],annotationchart:["ui","controls","corechart","table"],areachart:"browserchart",bar:["fw","dygraph","webfontloader"],barchart:"browserchart",browserchart:["ui"],bubbles:["fw","d3"],calendar:["fw"],charteditor:"ui corechart imagechart annotatedtimeline gauge geochart motionchart orgchart table".split(" "),charteditor_base:"ui_base corechart imagechart annotatedtimeline gauge geochart motionchart orgchart table_base".split(" "),circles:["fw","d3"],clusterchart:["corechart","d3"],columnchart:"browserchart",controls:["ui"],controls_base:["ui_base"],corechart:["ui"],gantt:["fw","dygraph"],gauge:["ui"],geochart:["geo"],geomap:["flashui","geo"],geomap_base:["ui_base"],helloworld:["fw"],imagechart:["ui"],imageareachart:"imagechart",imagebarchart:"imagechart",imagelinechart:"imagechart",imagepiechart:"imagechart",imagesparkline:"imagechart",line:["fw","dygraph","webfontloader"],linechart:"browserchart",map:["geo"],matrix:["vegachart"],motionchart:["flashui"],orgchart:["ui"],overtimecharts:["ui","corechart"],piechart:"browserchart",sankey:["fw","d3","d3.sankey"],scatter:["fw","dygraph","webfontloader"],scatterchart:"browserchart",sunburst:["fw","d3"],streamgraph:["fw","d3"],table:["ui"],table_base:["ui_base"],timeline:["fw","ui","dygraph"],treemap:["ui"],vegachart:["graphics"],wordtree:["ui"]},Ba:{d3:{subdir1:"d3",subdir2:"v5",filename:"d3.js"},"d3.sankey":{subdir1:"d3_sankey",subdir2:"v4",filename:"d3.sankey.js"},webfontloader:{subdir:"webfontloader",filename:"webfont.js"}},Aa:{dygraph:{subdir:"dygraphs",filename:"dygraph-tickers-combined.js"}},pa:{default:[{subdir:"core",filename:"tooltip.css"}],annotationchart:[{subdir:"annotationchart",filename:"annotationchart.css"}],charteditor:[{subdir:"charteditor",filename:"charteditor.css"}],charteditor_base:[{subdir:"charteditor_base",filename:"charteditor_base.css"}],controls:[{subdir:"controls",filename:"controls.css"}],imagesparkline:[{subdir:"imagechart",filename:"imagesparkline.css"}],orgchart:[{subdir:"orgchart",filename:"orgchart.css"}],table:[{subdir:"table",filename:"table.css"},{subdir:"util",filename:"format.css"}],table_base:[{subdir:"util",filename:"format.css"},{subdir:"table",filename:"table_base.css"}],ui:[{subdir:"util",filename:"util.css"}],ui_base:[{subdir:"util",filename:"util_base.css"}]}},z.m.$={ga:{"chrome-frame":{versions:{"1.0.0":{uncompressed:"CFInstall.js",compressed:"CFInstall.min.js"},"1.0.1":{uncompressed:"CFInstall.js",compressed:"CFInstall.min.js"},"1.0.2":{uncompressed:"CFInstall.js",compressed:"CFInstall.min.js"}},aliases:{1:"1.0.2","1.0":"1.0.2"}},swfobject:{versions:{2.1:{uncompressed:"swfobject_src.js",compressed:"swfobject.js"},2.2:{uncompressed:"swfobject_src.js",compressed:"swfobject.js"}},aliases:{2:"2.2"}},"ext-core":{versions:{"3.1.0":{uncompressed:"ext-core-debug.js",compressed:"ext-core.js"},"3.0.0":{uncompressed:"ext-core-debug.js",compressed:"ext-core.js"}},aliases:{3:"3.1.0","3.0":"3.0.0",3.1:"3.1.0"}},scriptaculous:{versions:{"1.8.3":{uncompressed:"scriptaculous.js",compressed:"scriptaculous.js"},"1.9.0":{uncompressed:"scriptaculous.js",compressed:"scriptaculous.js"},"1.8.1":{uncompressed:"scriptaculous.js",compressed:"scriptaculous.js"},"1.8.2":{uncompressed:"scriptaculous.js",compressed:"scriptaculous.js"}},aliases:{1:"1.9.0",1.8:"1.8.3",1.9:"1.9.0"}},webfont:{versions:{"1.0.12":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.13":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.14":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.15":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.10":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.11":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.27":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.28":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.29":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.23":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.24":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.25":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.26":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.21":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.22":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.3":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.4":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.5":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.6":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.9":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.16":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.17":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.0":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.18":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.1":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.19":{uncompressed:"webfont_debug.js",compressed:"webfont.js"},"1.0.2":{uncompressed:"webfont_debug.js",compressed:"webfont.js"}},aliases:{1:"1.0.29","1.0":"1.0.29"}},jqueryui:{versions:{"1.8.17":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.16":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.15":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.14":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.4":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.13":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.5":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.12":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.6":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.11":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.7":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.10":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.8":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.9":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.6.0":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.7.0":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.5.2":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.0":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.7.1":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.5.3":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.1":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.7.2":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.8.2":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"},"1.7.3":{uncompressed:"jquery-ui.js",compressed:"jquery-ui.min.js"}},aliases:{1:"1.8.17",1.5:"1.5.3",1.6:"1.6.0",1.7:"1.7.3",1.8:"1.8.17","1.8.3":"1.8.4"}},mootools:{versions:{"1.3.0":{uncompressed:"mootools.js",compressed:"mootools-yui-compressed.js"},"1.2.1":{uncompressed:"mootools.js",compressed:"mootools-yui-compressed.js"},"1.1.2":{uncompressed:"mootools.js",compressed:"mootools-yui-compressed.js"},"1.4.0":{uncompressed:"mootools.js",compressed:"mootools-yui-compressed.js"},"1.3.1":{uncompressed:"mootools.js",compressed:"mootools-yui-compressed.js"},"1.2.2":{uncompressed:"mootools.js",compressed:"mootools-yui-compressed.js"},"1.4.1":{uncompressed:"mootools.js",compressed:"mootools-yui-compressed.js"},"1.3.2":{uncompressed:"mootools.js",compressed:"mootools-yui-compressed.js"},"1.2.3":{uncompressed:"mootools.js",compressed:"mootools-yui-compressed.js"},"1.4.2":{uncompressed:"mootools.js",compressed:"mootools-yui-compressed.js"},"1.2.4":{uncompressed:"mootools.js",compressed:"mootools-yui-compressed.js"},"1.2.5":{uncompressed:"mootools.js",compressed:"mootools-yui-compressed.js"},"1.1.1":{uncompressed:"mootools.js",compressed:"mootools-yui-compressed.js"}},aliases:{1:"1.1.2",1.1:"1.1.2",1.2:"1.2.5",1.3:"1.3.2",1.4:"1.4.2",1.11:"1.1.1"}},yui:{versions:{"2.8.0r4":{uncompressed:"build/yuiloader/yuiloader.js",compressed:"build/yuiloader/yuiloader-min.js"},"2.9.0":{uncompressed:"build/yuiloader/yuiloader.js",compressed:"build/yuiloader/yuiloader-min.js"},"2.8.1":{uncompressed:"build/yuiloader/yuiloader.js",compressed:"build/yuiloader/yuiloader-min.js"},"2.6.0":{uncompressed:"build/yuiloader/yuiloader.js",compressed:"build/yuiloader/yuiloader-min.js"},"2.7.0":{uncompressed:"build/yuiloader/yuiloader.js",compressed:"build/yuiloader/yuiloader-min.js"},"3.3.0":{uncompressed:"build/yui/yui.js",compressed:"build/yui/yui-min.js"},"2.8.2r1":{uncompressed:"build/yuiloader/yuiloader.js",compressed:"build/yuiloader/yuiloader-min.js"}},aliases:{2:"2.9.0",2.6:"2.6.0",2.7:"2.7.0",2.8:"2.8.2r1","2.8.0":"2.8.0r4","2.8.2":"2.8.2r1",2.9:"2.9.0",3:"3.3.0",3.3:"3.3.0"}},prototype:{versions:{"1.6.1.0":{uncompressed:"prototype.js",compressed:"prototype.js"},"1.6.0.2":{uncompressed:"prototype.js",compressed:"prototype.js"},"1.7.0.0":{uncompressed:"prototype.js",compressed:"prototype.js"},"1.6.0.3":{uncompressed:"prototype.js",compressed:"prototype.js"}},aliases:{1:"1.7.0.0",1.6:"1.6.1.0","1.6.0":"1.6.0.3","1.6.1":"1.6.1.0",1.7:"1.7.0.0","1.7.0":"1.7.0.0"}},jquery:{versions:{"1.2.3":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.2.6":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.3.0":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.3.1":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.3.2":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.4.0":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.4.1":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.4.2":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.4.3":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.4.4":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.5.0":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.5.1":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.5.2":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.6.0":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.6.1":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.6.2":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.6.3":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.6.4":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.7.0":{uncompressed:"jquery.js",compressed:"jquery.min.js"},"1.7.1":{uncompressed:"jquery.js",compressed:"jquery.min.js"}},aliases:{1:"1.7.1",1.2:"1.2.6",1.3:"1.3.2",1.4:"1.4.4",1.5:"1.5.2",1.6:"1.6.4",1.7:"1.7.1"}},dojo:{versions:{"1.3.0":{uncompressed:"dojo/dojo.xd.js.uncompressed.js",compressed:"dojo/dojo.xd.js"},"1.4.0":{uncompressed:"dojo/dojo.xd.js.uncompressed.js",compressed:"dojo/dojo.xd.js"},"1.3.1":{uncompressed:"dojo/dojo.xd.js.uncompressed.js",compressed:"dojo/dojo.xd.js"},"1.5.0":{uncompressed:"dojo/dojo.xd.js.uncompressed.js",compressed:"dojo/dojo.xd.js"},"1.4.1":{uncompressed:"dojo/dojo.xd.js.uncompressed.js",compressed:"dojo/dojo.xd.js"},"1.3.2":{uncompressed:"dojo/dojo.xd.js.uncompressed.js",compressed:"dojo/dojo.xd.js"},"1.2.3":{uncompressed:"dojo/dojo.xd.js.uncompressed.js",compressed:"dojo/dojo.xd.js"},"1.6.0":{uncompressed:"dojo/dojo.xd.js.uncompressed.js",compressed:"dojo/dojo.xd.js"},"1.5.1":{uncompressed:"dojo/dojo.xd.js.uncompressed.js",compressed:"dojo/dojo.xd.js"},"1.7.0":{uncompressed:"dojo/dojo.js.uncompressed.js",compressed:"dojo/dojo.js"},"1.6.1":{uncompressed:"dojo/dojo.xd.js.uncompressed.js",compressed:"dojo/dojo.xd.js"},"1.4.3":{uncompressed:"dojo/dojo.xd.js.uncompressed.js",compressed:"dojo/dojo.xd.js"},"1.7.1":{uncompressed:"dojo/dojo.js.uncompressed.js",compressed:"dojo/dojo.js"},"1.7.2":{uncompressed:"dojo/dojo.js.uncompressed.js",compressed:"dojo/dojo.js"},"1.2.0":{uncompressed:"dojo/dojo.xd.js.uncompressed.js",compressed:"dojo/dojo.xd.js"},"1.1.1":{uncompressed:"dojo/dojo.xd.js.uncompressed.js",compressed:"dojo/dojo.xd.js"}},aliases:{1:"1.6.1",1.1:"1.1.1",1.2:"1.2.3",1.3:"1.3.2",1.4:"1.4.3",1.5:"1.5.1",1.6:"1.6.1",1.7:"1.7.2"}}}},z.m.aa={af:!0,am:!0,az:!0,ar:!0,arb:"ar",bg:!0,bn:!0,ca:!0,cs:!0,cmn:"zh",da:!0,de:!0,el:!0,en:!0,en_gb:!0,es:!0,es_419:!0,et:!0,eu:!0,fa:!0,fi:!0,fil:!0,fr:!0,fr_ca:!0,gl:!0,ka:!0,gu:!0,he:"iw",hi:!0,hr:!0,hu:!0,hy:!0,id:!0,in:"id",is:!0,it:!0,iw:!0,ja:!0,ji:"yi",jv:!1,jw:"jv",km:!0,kn:!0,ko:!0,lo:!0,lt:!0,lv:!0,ml:!0,mn:!0,mo:"ro",mr:!0,ms:!0,nb:"no",ne:!0,nl:!0,no:!0,pl:!0,pt:"pt_br",pt_br:!0,pt_pt:!0,ro:!0,ru:!0,si:!0,sk:!0,sl:!0,sr:!0,sv:!0,sw:!0,swh:"sw",ta:!0,te:!0,th:!0,tl:"fil",tr:!0,uk:!0,ur:!0,vi:!0,yi:!1,zh:"zh_cn",zh_cn:!0,zh_hk:!0,zh_tw:!0,zsm:"ms",zu:!0},z.m.M={},z.m.M.O={1:"1.0","1.0":"current",1.1:"upcoming",1.2:"testing",41:"pre-45",42:"pre-45",43:"pre-45",44:"pre-45",46:"46.1",46.1:"46.2",48:"48.1",current:"51",upcoming:"51"},F.prototype.T=!0,F.prototype.R=function(){return this.g.toString()},F.prototype.toString=function(){return this.g+""};var H=/%{(\w+)}/g,B=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,W=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/;function Y(e,t,n){return e=function(e,n){var i=M(e);if(!B.test(i))throw Error("Invalid TrustedResourceUrl format: "+i);return $(e=i.replace(H,function(e,t){if(!Object.prototype.hasOwnProperty.call(n,t))throw Error('Found marker, "'+t+'", in format string, "'+i+'", but no valid label mapping found in args: '+JSON.stringify(n));return(e=n[t])instanceof R?M(e):encodeURIComponent(String(e))}))}(e,t),t=(e=W.exec(U(e).toString()))[3]||"",$(e[1]+G("?",e[2]||"",n)+G("#",t,void 0))}var V={};function $(e){if(void 0===O){var t=null,n=k.trustedTypes;if(n&&n.createPolicy){try{t=n.createPolicy("goog#html",{createHTML:A,createScript:A,createScriptURL:A})}catch(e){k.console&&k.console.error(e.message)}O=t}else O=t}return new F(e=(t=O)?t.createScriptURL(e):e,V)}function G(e,t,n){if(null==n)return t;if("string"==typeof n)return n?e+encodeURIComponent(n):"";for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i))for(var a=n[i],a=Array.isArray(a)?a:[a],r=0;r<a.length;r++){var o=a[r];null!=o&&(t=t||e,t+=(t.length>e.length?"&":"")+encodeURIComponent(i)+"="+encodeURIComponent(String(o)))}return t}var K=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(e,t){for(var n=e.length,i="string"==typeof e?e.split(""):e,a=0;a<n;a++)if(a in i&&t.call(void 0,i[a],a,e))return!0;return!1};var X,J="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");e:{var Z=k.navigator;if(Z){Z=Z.userAgent;if(Z){X=Z;break e}}X=""}var ee=/^[\w+/_-]+[=]{0,2}$/;function te(e,t){this.g=e[k.Symbol.iterator](),this.h=t,this.i=0}te.prototype[Symbol.iterator]=function(){return this},te.prototype.next=function(){var e=this.g.next();return{value:e.done?void 0:this.h.call(void 0,e.value,this.i++),done:e.done}};var ne="StopIteration"in k?k.StopIteration:{message:"StopIteration",stack:""};function ie(){}function ae(e){if(e instanceof oe||e instanceof se||e instanceof le)return e;if("function"==typeof e.next)return new oe(function(){return re(e)});if("function"==typeof e[Symbol.iterator])return new oe(function(){return e[Symbol.iterator]()});if("function"==typeof e.F)return new oe(function(){return re(e.F())});throw Error("Not an iterator or iterable.")}function re(t){if(!(t instanceof ie))return t;var n=!1;return{next:function(){for(var e;!n;)try{e=t.next();break}catch(e){if(e!==ne)throw e;n=!0}return{value:e,done:n}}}}function oe(e){this.g=e}function se(e){this.h=e}function le(e){oe.call(this,function(){return e}),this.h=e}function ce(e,t){this.h={},this.g=[],this.i=this.size=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(e)if(e instanceof ce)for(n=e.G(),i=0;i<n.length;i++)this.set(n[i],e.get(n[i]));else for(i in e)this.set(i,e[i])}function ue(e){if(e.size!=e.g.length){for(var t=0,n=0;t<e.g.length;){var i=e.g[t];de(e.h,i)&&(e.g[n++]=i),t++}e.g.length=n}if(e.size!=e.g.length){for(var a={},n=t=0;t<e.g.length;)de(a,i=e.g[t])||(a[e.g[n++]=i]=1),t++;e.g.length=n}}function de(e,t){return Object.prototype.hasOwnProperty.call(e,t)}ie.prototype.next=function(){return ie.prototype.g.call(this)},ie.prototype.g=function(){throw ne},ie.prototype.F=function(){return this},oe.prototype.F=function(){return new se(this.g())},oe.prototype[Symbol.iterator]=function(){return new le(this.g())},oe.prototype.i=function(){return new le(this.g())},h(se,ie),se.prototype.g=function(){var e=this.h.next();if(e.done)throw ne;return e.value},se.prototype.next=function(){return se.prototype.g.call(this)},se.prototype[Symbol.iterator]=function(){return new le(this.h)},se.prototype.i=function(){return new le(this.h)},h(le,oe),le.prototype.next=function(){return this.h.next()},(t=ce.prototype).H=function(){ue(this);for(var e=[],t=0;t<this.g.length;t++)e.push(this.h[this.g[t]]);return e},t.G=function(){return ue(this),this.g.concat()},t.has=function(e){return de(this.h,e)},t.get=function(e,t){return de(this.h,e)?this.h[e]:t},t.set=function(e,t){de(this.h,e)||(this.size+=1,this.g.push(e),this.i++),this.h[e]=t},t.forEach=function(e,t){for(var n=this.G(),i=0;i<n.length;i++){var a=n[i],r=this.get(a);e.call(t,r,a,this)}},t.keys=function(){return ae(this.F(!0)).i()},t.values=function(){return ae(this.F(!1)).i()},t.entries=function(){var t=this;return new te(this.keys(),function(e){return[e,t.get(e)]})},t.F=function(t){ue(this);var n=0,i=this.i,a=this,e=new ie;return e.g=function(){if(i!=a.i)throw Error("The map has changed since the iterator was created");if(n>=a.g.length)throw ne;var e=a.g[n++];return t?e:a.h[e]},e.next=e.g.bind(e),e};var pe=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function he(e){var t;this.g=this.s=this.j="",this.v=null,this.o=this.h="",this.l=!1,e instanceof he?(this.l=e.l,fe(this,e.j),this.s=e.s,this.g=e.g,me(this,e.v),this.h=e.h,_e(this,Qe(e.i)),this.o=e.o):e&&(t=String(e).match(pe))?(this.l=!1,fe(this,t[1]||"",!0),this.s=ge(t[2]||""),this.g=ge(t[3]||"",!0),me(this,t[4]),this.h=ge(t[5]||"",!0),_e(this,t[6]||"",!0),this.o=ge(t[7]||"")):(this.l=!1,this.i=new Ce(null,this.l))}function fe(e,t,n){e.j=n?ge(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function me(e,t){if(t){if(t=Number(t),isNaN(t)||t<0)throw Error("Bad port number "+t);e.v=t}else e.v=null}function _e(e,t,n){var i,a;t instanceof Ce?(e.i=t,i=e.i,(a=e.l)&&!i.j&&(Se(i),i.i=null,i.g.forEach(function(e,t){var n=t.toLowerCase();if(t!=n&&(Te(this,t),Te(this,n),0<e.length)){this.i=null;var i=(t=this.g).set,n=De(this,n),a=e.length;if(0<a){for(var r=Array(a),o=0;o<a;o++)r[o]=e[o];a=r}else a=[];i.call(t,n,a),this.h+=e.length}},i)),i.j=a):(n||(t=ye(t,ke)),e.i=new Ce(t,e.l))}function ge(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function ye(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,ve),e=n?e.replace(/%25([0-9a-fA-F]{2})/g,"%$1"):e):null}function ve(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}he.prototype.toString=function(){var e=[],t=this.j;t&&e.push(ye(t,we,!0),":");var n=this.g;return!n&&"file"!=t||(e.push("//"),(t=this.s)&&e.push(ye(t,we,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.v)&&e.push(":",String(n))),(n=this.h)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(ye(n,"/"==n.charAt(0)?je:be,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.o)&&e.push("#",ye(n,xe)),e.join("")},he.prototype.resolve=function(e){var t=new he(this),n=!!e.j;n?fe(t,e.j):n=!!e.s,n?t.s=e.s:n=!!e.g,n?t.g=e.g:n=null!=e.v;var i=e.h;if(n)me(t,e.v);else if(n=!!e.h)if("/"!=i.charAt(0)&&(this.g&&!this.h?i="/"+i:-1!=(a=t.h.lastIndexOf("/"))&&(i=t.h.substr(0,a+1)+i)),".."==(a=i)||"."==a)i="";else if(-1!=a.indexOf("./")||-1!=a.indexOf("/.")){for(var i=0==a.lastIndexOf("/",0),a=a.split("/"),r=[],o=0;o<a.length;){var s=a[o++];"."==s?i&&o==a.length&&r.push(""):".."==s?((1<r.length||1==r.length&&""!=r[0])&&r.pop(),i&&o==a.length&&r.push("")):(r.push(s),i=!0)}i=r.join("/")}else i=a;return n?t.h=i:n=""!==e.i.toString(),n?_e(t,Qe(e.i)):n=!!e.o,n&&(t.o=e.o),t};var we=/[#\/\?@]/g,be=/[#\?:]/g,je=/[#\?]/g,ke=/[#\?@]/g,xe=/#/g;function Ce(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function Se(n){n.g||(n.g=new ce,n.h=0,n.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var i,a=e[n].indexOf("="),r=null;0<=a?(i=e[n].substring(0,a),r=e[n].substring(a+1)):i=e[n],t(i,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(n.i,function(e,t){n.add(decodeURIComponent(e.replace(/\+/g," ")),t)}))}function Te(e,t){Se(e),t=De(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,de((e=e.g).h,t)&&(delete e.h[t],--e.size,e.i++,e.g.length>2*e.size&&ue(e)))}function Ee(e,t){return Se(e),t=De(e,t),e.g.has(t)}function Qe(e){var t=new Ce;return t.i=e.i,e.g&&(t.g=new ce(e.g),t.h=e.h),t}function De(e,t){return t=String(t),t=e.j?t.toLowerCase():t}function Ne(n,e){!function(e,t){for(var n in e)t.call(void 0,e[n],n,e)}(e,function(e,t){e&&"object"==typeof e&&e.T&&(e=e.R()),"style"==t?n.style.cssText=e:"class"==t?n.className=e:"for"==t?n.htmlFor=e:Ie.hasOwnProperty(t)?n.setAttribute(Ie[t],e):0==t.lastIndexOf("aria-",0)||0==t.lastIndexOf("data-",0)?n.setAttribute(t,e):n[t]=e})}(t=Ce.prototype).add=function(e,t){Se(this),this.i=null,e=De(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},t.forEach=function(n,i){Se(this),this.g.forEach(function(e,t){e.forEach(function(e){n.call(i,e,t,this)},this)},this)},t.G=function(){Se(this);for(var e=this.g.H(),t=this.g.G(),n=[],i=0;i<t.length;i++)for(var a=e[i],r=0;r<a.length;r++)n.push(t[i]);return n},t.H=function(e){Se(this);var t=[];if("string"==typeof e)Ee(this,e)&&(t=t.concat(this.g.get(De(this,e))));else{e=this.g.H();for(var n=0;n<e.length;n++)t=t.concat(e[n])}return t},t.set=function(e,t){return Se(this),this.i=null,Ee(this,e=De(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},t.get=function(e,t){return e&&0<(e=this.H(e)).length?String(e[0]):t},t.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var e=[],t=this.g.G(),n=0;n<t.length;n++)for(var i=t[n],a=encodeURIComponent(String(i)),i=this.H(i),r=0;r<i.length;r++){var o=a;""!==i[r]&&(o+="="+encodeURIComponent(String(i[r]))),e.push(o)}return this.i=e.join("&")};var Ae,Ie={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function Re(e,t){return t=String(t),"application/xhtml+xml"===e.contentType&&(t=t.toLowerCase()),e.createElement(t)}function Me(e){this.g=e||k.document||document}function Pe(e,t){this.i=e,this.j=t,this.h=0,this.g=null}function Oe(e,t){e.j(t),e.h<100&&(e.h++,t.next=e.g,e.g=t)}function Le(e){k.setTimeout(function(){throw e},0)}function qe(){this.h=this.g=null}Pe.prototype.get=function(){var e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e},qe.prototype.add=function(e,t){var n=Fe.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n};var ze,Fe=new Pe(function(){return new Ue},function(e){return e.reset()});function Ue(){this.next=this.g=this.h=null}function He(e,t){ze||function(){{var e;ze=k.Promise&&k.Promise.resolve?(e=k.Promise.resolve(void 0),function(){e.then(Ye)}):function(){var e=Ye;"function"!=typeof k.setImmediate||k.Window&&k.Window.prototype&&-1==X.indexOf("Edge")&&k.Window.prototype.setImmediate==k.setImmediate?(Ae=Ae||function(){var e=k.MessageChannel;if(void 0===(e=void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&-1==X.indexOf("Presto")?function(){var e=Re(document,"IFRAME");e.style.display="none",document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.close();var n="callImmediate"+Math.random(),i="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=Q(function(e){"*"!=i&&e.origin!=i||e.data!=n||this.port1.onmessage()},this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,i)}}}:e)||-1!=X.indexOf("Trident")||-1!=X.indexOf("MSIE"))return function(e){k.setTimeout(e,0)};var t=new e,n={},i=n;return t.port1.onmessage=function(){var e;void 0!==n.next&&(e=(n=n.next).P,n.P=null,e())},function(e){i.next={P:e},i=i.next,t.port2.postMessage(0)}}())(e):k.setImmediate(e)}}}(),Be||(ze(),Be=!0),We.add(e,t)}Ue.prototype.set=function(e,t){this.h=e,this.g=t,this.next=null};var Be=!(Ue.prototype.reset=function(){this.next=this.g=this.h=null}),We=new qe;function Ye(){for(var e,t;t=e=void 0,t=null,(e=We).g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t=t;){try{t.h.call(t.g)}catch(e){Le(e)}Oe(Fe,t)}Be=!1}function Ve(e){if(e)try{return e.$goog_Thenable}catch(e){return}}function $e(e){if(this.g=0,this.s=void 0,this.j=this.h=this.i=null,this.l=this.o=!1,e!=C)try{var t=this;e.call(void 0,function(e){Ze(t,2,e)},function(e){Ze(t,3,e)})}catch(e){Ze(this,3,e)}}function Ge(){this.next=this.i=this.h=this.j=this.g=null,this.l=!1}Ge.prototype.reset=function(){this.i=this.h=this.j=this.g=null,this.l=!1};var Ke=new Pe(function(){return new Ge},function(e){e.reset()});function Xe(e,t,n){var i=Ke.get();return i.j=e,i.h=t,i.i=n,i}function Je(e,t){e.h||2!=e.g&&3!=e.g||et(e),e.j?e.j.next=t:e.h=t,e.j=t}function Ze(t,e,n){if(0==t.g){t===n&&(e=3,n=new TypeError("Promise cannot resolve to itself")),t.g=1;e:{var i=n,a=t.C,r=t.D;if(i instanceof $e){Je(i,Xe(a||C,r||null,t));var o=!0}else if(Ve(i))i.then(a,r,t),o=!0;else{if(S(i))try{var s=i.then;if("function"==typeof s){!function(e,t,n,i,a){function r(e){o||(o=!0,i.call(a,e))}var o=!1;try{t.call(e,function(e){o||(o=!0,n.call(a,e))},r)}catch(e){r(e)}}(i,s,a,r,t),o=!0;break e}}catch(e){r.call(t,e),o=!0;break e}o=!1}}o||(t.s=n,t.g=e,t.i=null,et(t),3!=e||n instanceof rt||(c=n,(l=t).l=!0,He(function(){l.l&&at.call(null,c)})))}var l,c}function et(e){e.o||(e.o=!0,He(e.v,e))}function tt(e){var t=null;return e.h&&(t=e.h,e.h=t.next,t.next=null),e.h||(e.j=null),t}function nt(e,t,n,i){if(3==n&&t.h&&!t.l)for(;e&&e.l;e=e.i)e.l=!1;if(t.g)t.g.i=null,it(t,n,i);else try{t.l?t.j.call(t.i):it(t,n,i)}catch(e){at.call(null,e)}Oe(Ke,t)}function it(e,t,n){2==t?e.j.call(e.i,n):e.h&&e.h.call(e.i,n)}$e.prototype.then=function(e,t,n){return i=this,a="function"==typeof e?e:null,r="function"==typeof t?t:null,o=n,(s=Xe(null,null,null)).g=new $e(function(n,i){s.j=a?function(e){try{var t=a.call(o,e);n(t)}catch(e){i(e)}}:n,s.h=r?function(e){try{var t=r.call(o,e);void 0===t&&e instanceof rt?i(e):n(t)}catch(e){i(e)}}:i}),Je(s.g.i=i,s),s.g;var i,a,r,o,s},$e.prototype.$goog_Thenable=!0,$e.prototype.cancel=function(e){var t;0==this.g&&(t=new rt(e),He(function(){!function e(t,n){if(0==t.g)if(t.i){var i=t.i;if(i.h){for(var a=0,r=null,o=null,s=i.h;s&&(s.l||(a++,!((r=s.g==t?s:r)&&1<a)));s=s.next)r||(o=s);r&&(0==i.g&&1==a?e(i,n):(o?((a=o).next==i.j&&(i.j=a),a.next=a.next.next):tt(i),nt(i,r,3,n)))}t.i=null}else Ze(t,3,n)}(this,t)},this))},$e.prototype.C=function(e){this.g=0,Ze(this,2,e)},$e.prototype.D=function(e){this.g=0,Ze(this,3,e)},$e.prototype.v=function(){for(var e;e=tt(this);)nt(this,e,this.g,this.s);this.o=!1};var at=Le;function rt(e){I.call(this,e)}function ot(e){var t=_t;this.l=[],this.J=t,this.I=e||null,this.j=this.i=!1,this.h=void 0,this.C=this.L=this.s=!1,this.o=0,this.g=null,this.v=0}function st(e,t,n){e.i=!0,e.h=n,e.j=!t,dt(e)}function lt(e){if(e.i){if(!e.C)throw new pt;e.C=!1}}function ct(e,t,n,i){e.l.push([t,n,i]),e.i&&dt(e)}function ut(e){return K(e.l,function(e){return"function"==typeof e[1]})}function dt(t){var n;t.o&&t.i&&ut(t)&&(i=t.o,(n=mt[i])&&(k.clearTimeout(n.g),delete mt[i]),t.o=0),t.g&&(t.g.v--,delete t.g);for(var i=t.h,e=n=!1;t.l.length&&!t.s;){var a=(o=t.l.shift())[0],r=o[1],o=o[2];if(a=t.j?r:a)try{var s=a.call(o||t.I,i);void 0!==s&&(t.j=t.j&&(s==i||s instanceof Error),t.h=i=s),(Ve(i)||"function"==typeof k.Promise&&i instanceof k.Promise)&&(e=!0,t.s=!0)}catch(e){i=e,t.j=!0,ut(t)||(n=!0)}}t.h=i,e&&(s=Q(t.D,t,!0),e=Q(t.D,t,!1),i instanceof ot?(ct(i,s,e),i.L=!0):i.then(s,e)),n&&(i=new ft(i),mt[i.g]=i,t.o=i.g)}function pt(){I.call(this)}function ht(){I.call(this)}function ft(e){this.g=k.setTimeout(Q(this.i,this),0),this.h=e}N(rt,I),rt.prototype.name="cancel",ot.prototype.cancel=function(e){var t;this.i?this.h instanceof ot&&this.h.cancel():(this.g&&(t=this.g,delete this.g,e?t.cancel(e):(t.v--,t.v<=0&&t.cancel())),this.J?this.J.call(this.I,this):this.C=!0,this.i||(e=new ht,lt(this),st(this,!1,e)))},ot.prototype.D=function(e,t){this.s=!1,st(this,e,t)},ot.prototype.then=function(e,t,n){var i,a,r=new $e(function(e,t){a=e,i=t});return ct(this,a,function(e){e instanceof ht?r.cancel():i(e)}),r.then(e,t,n)},ot.prototype.$goog_Thenable=!0,N(pt,I),pt.prototype.message="Deferred has already fired",pt.prototype.name="AlreadyCalledError",N(ht,I),ht.prototype.message="Deferred was canceled",ht.prototype.name="CanceledError",ft.prototype.i=function(){throw delete mt[this.g],this.h};var mt={};function _t(){var e;this&&this.U&&((e=this.U)&&"SCRIPT"==e.tagName&&gt(e,!0,this.W))}function gt(e,t,n){null!=n&&k.clearTimeout(n),e.onload=C,e.onerror=C,e.onreadystatechange=C,t&&window.setTimeout(function(){e&&e.parentNode&&e.parentNode.removeChild(e)},0)}function yt(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),I.call(this,n),this.code=e}function vt(e){var t={timeout:3e4,attributes:{async:!1,defer:!1}},n=t.document||document,i=U(e).toString(),a=Re(new Me(n).g,"SCRIPT"),r={U:a,W:void 0},o=new ot(r),s=null,l=null!=t.timeout?t.timeout:5e3;return 0<l&&(s=window.setTimeout(function(){gt(a,!0);var e=new yt(1,"Timeout reached for loading script "+i);lt(o),st(o,!1,e)},l),r.W=s),a.onload=a.onreadystatechange=function(){a.readyState&&"loaded"!=a.readyState&&"complete"!=a.readyState||(gt(a,t.oa||!1,s),lt(o),st(o,!0,null))},a.onerror=function(){gt(a,!0,s);var e=new yt(0,"Error while loading script "+i);lt(o),st(o,!1,e)},function(e){for(var t,n,i=1;i<arguments.length;i++){for(t in n=arguments[i])e[t]=n[t];for(var a=0;a<J.length;a++)t=J[a],Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}}(r=t.attributes||{},{type:"text/javascript",charset:"UTF-8"}),Ne(a,r),a.src=U(e),(e=!((e=((r=a).ownerDocument&&r.ownerDocument.defaultView||k).document).querySelector&&(e=e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&ee.test(e))?"":e)&&r.setAttribute("nonce",e),((n=((e=n)||document).getElementsByTagName("HEAD"))&&0!==n.length?n[0]:e.documentElement).appendChild(a),o}function wt(e,t,n){var i=vt(e=Y(e,t,n=n||{}));return new Promise(function(e){ct(i,e,null,void 0)})}N(yt,I),z.m.B={};var bt,jt,kt,xt="",Ct="",St=null;function Tt(){Ct=xt="",St=jt=bt=null,x("google.load")||(D("google.load",Ft),D("google.setOnLoadCallback",z.V));var e=document.getElementsByTagName("script"),t=(e=new he(e=(document.currentScript||e[e.length-1]).getAttribute("src"))).g;kt=t=t.match(/^www\.gstatic\.cn/)?"gstatic.cn":"gstatic.com",Et(e)}function Et(e){var t=(e=new Ce(e.i.toString())).get("callback");if("string"==typeof t&&(t=zt(t),new Promise(function(t){"undefined"==typeof window||"complete"===document.readyState?t():window.addEventListener?(document.addEventListener("DOMContentLoaded",t,!0),window.addEventListener("load",t,!0)):window.attachEvent?window.attachEvent("onload",t):"function"!=typeof window.onload?window.onload=t:window.onload=function(e){window.onload&&window.onload(e),t()}}).then(t)),"string"==typeof(e=e.get("autoload")))try{if(""!==e){var n=JSON.parse(e).modules;for(e=0;e<n.length;e++){var i=n[e];Ft(i.name,i.version,i)}}}catch(e){throw Error("Autoload failed with: "+e)}}function Qt(e){var t,n=e,i=e.match(/^testing-/);e=n=i?n.replace(/^testing-/,""):n;do{if(n===z.m.M.O[n])throw Error("Infinite loop in version mapping: "+n)}while((t=z.m.M.O[n])&&(n=t),t);return t=(i?"testing-":"")+n,{version:"pre-45"==n?e:t,ha:t}}function Dt(e){"string"==typeof e&&(e=[e]),Array.isArray(e)&&0!==e.length||(e=z.m.N.ea);var t=[];return e.forEach(function(e){e=e.toLowerCase(),t=t.concat(e.split(/[\s,]+\s*/))}),t}function Nt(e){for(var t=(e=e||"").replace(/-/g,"_").toLowerCase();"string"==typeof t;)e=t,(t=z.m.aa[t])===e&&(t=!1);return e=!t?e.match(/_[^_]+$/)?Nt(e=e.replace(/_[^_]+$/,"")):"en":e}function At(e){return e=e||"",""!==xt&&xt!==e&&(console.warn(" Attempting to load version '"+e+"' of Google Charts, but the previously loaded '"+xt+"' will be used instead."),e=xt),xt=e||""}function It(e){return e=e||"",""!==Ct&&Ct!==e&&(console.warn(" Attempting to load Google Charts for language '"+e+"', but the previously loaded '"+Ct+"' will be used instead."),e=Ct),Ct=(e="en"===e?"":e)||""}function Rt(e,t){(t=function(e){var t,n={};for(t in e)n[t]=e[t];return n}(t)).domain=kt,t.callback=zt(t.callback),e=At(e);var i,a,n=It(Nt(n=t.language));if(t.language=n,!bt){if(t.enableUrlSettings&&window.URLSearchParams)try{e=new URLSearchParams(top.location.search).get("charts-version")||e}catch(e){console.info("Failed to get charts-version from top URL",e)}i=e,e=z.m.N.ia[kt].loader,a=Qt(i),bt=wt(e,{version:a.ha}).then(function(){var n=x("google.charts.loader.VersionSpecific.load")||x("google.charts.loader.publicLoad")||x("google.charts.versionSpecific.load");if(!n)throw Error("Bad version: "+i);St=function(e){var t;return null!=(e=n(a.version,e))&&null!=e.then||(t=x("google.charts.loader.publicSetOnLoadCallback")||x("google.charts.versionSpecific.setOnLoadCallback"),(e=new Promise(function(e){t(e)})).then=t),e}})}return t.packages=Dt(t.packages),jt=bt.then(function(){return St(t)})}z.la=function(e){return z.load(Object.assign({},e,{safeMode:!0}))},D("google.charts.safeLoad",z.la),z.load=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];"visualization"===t[n=0]&&n++;var i="current";"string"!=typeof t[n]&&"number"!=typeof t[n]||(i=String(t[n]),n++);var a={};return Rt(i,a=S(t[n])?t[n]:a)},D("google.charts.load",z.load),z.V=function(e){if(!jt)throw Error("Must call google.charts.load before google.charts.setOnLoadCallback");return e?jt.then(e):jt},D("google.charts.setOnLoadCallback",z.V);var Mt=P("https://maps.googleapis.com/maps/api/js?jsapiRedirect=true"),Pt=P("https://maps-api-ssl.google.com/maps?jsapiRedirect=true&file=googleapi");var Ot=P("https://www.gstatic.com/inputtools/js/ita/inputtools_3.js");var Lt=P("https://ajax.googleapis.com/ajax/libs/%{module}/%{version}/%{file}");function qt(e,t,n){var i=z.m.$.ga[e];if(i){if(t=function(e,t){var n;do{if(e===t[e])throw Error("Infinite loop in version mapping for version "+e)}while((n=t[e])&&(e=n),n);return e}(t,i.aliases),!(i=i.versions[t]))throw Error("Unknown version, "+t+", of "+e+".");var a={module:e,version:t||"",file:i.compressed};t=U(Y((i={format:Lt,ba:a}).format,i.ba,i.ya||{})).toString(),console.warn("Loading modules with the jsapi loader is deprecated.\nPlease load "+e+" directly from "+t+"."),jt=new Promise(function(e){var t=zt(n&&n.callback);wt(Lt,a).then(t).then(e)})}else setTimeout(function(){throw Error('Module "'+e+'" is not supported.')},0)}function zt(t){return function(){if("function"==typeof t)t();else if("string"==typeof t&&""!==t)try{var e=x(t);if("function"!=typeof e)throw Error("Type of '"+t+"' is "+typeof e+".");e()}catch(e){throw Error("Callback of "+t+" failed with: "+e)}}}function Ft(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];switch(t[0]){case"maps":!function(e,t,n){console.warn("Loading Maps API with the jsapi loader is deprecated."),e=(n=n||{}).key||n.client;var i=n.libraries,a=function(e){for(var t={},n=0;n<e.length;n++){var i=e[n];t[i[0]]=i[1]}return t}(n.other_params?n.other_params.split("&").map(function(e){return e.split("=")}):[]),r=Object.assign({},{key:e,ua:i},a),o="2"===t?Pt:Mt;jt=new Promise(function(e){var t=zt(n&&n.callback);wt(o,{},r).then(t).then(e)})}.apply(null,i(t));break;case"elements":!function(e,t,n){S(n)&&n.packages?(Array.isArray(n.packages)?n.packages:[n.packages]).includes("inputtools")?(console.warn('Loading "elements" with the jsapi loader is deprecated.\nPlease load '+Ot+" directly."),jt=new Promise(function(e){var t=zt(n&&n.callback);wt(Ot,{},{}).then(t).then(e)})):console.error('Loading "elements" other than "inputtools" is unsupported.'):console.error("google.load of elements was invoked without specifying packages")}.apply(null,i(t));break;case"visualization":z.load.apply(z,i(t));break;default:qt.apply(null,i(t))}}D("google.loader.LoadFailure",!1),kt?console.warn("Google Charts loader.js should only be loaded once."):Tt(),z.m.B.sa=Tt,z.m.B.va=Qt,z.m.B.wa=Nt,z.m.B.xa=Dt,z.m.B.Da=At,z.m.B.Ca=It,z.m.B.za=Et,z.m.B.ra=function(){return St}}.call(this),window.Modernizr=function(i,u,o){var e,a,r,t,s={},d=u.documentElement,p="modernizr",l=u.createElement(p).style,c=u.createElement("input"),h=":)",n={}.toString,f=" -webkit- -moz- -o- -ms- ".split(" "),m="Webkit Moz O ms",_=m.split(" "),g=m.toLowerCase().split(" "),y="http://www.w3.org/2000/svg",v={},w={},b={},j=[],k=j.slice,x=function(e,t,n,i){var a,r,o,s=u.createElement("div"),l=u.body,c=l||u.createElement("body");if(parseInt(n,10))for(;n--;)(r=u.createElement("div")).id=i?i[n]:p+(n+1),s.appendChild(r);return a=["&#173;",'<style id="s',p,'">',e,"</style>"].join(""),s.id=p,(l?s:c).innerHTML+=a,c.appendChild(s),l||(c.style.background="",c.style.overflow="hidden",o=d.style.overflow,d.style.overflow="hidden",d.appendChild(c)),e=t(s,e),l?s.parentNode.removeChild(s):(c.parentNode.removeChild(c),d.style.overflow=o),!!e},C=(r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e,t){t=t||u.createElement(r[e]||"div");var n=(e="on"+e)in t;return n||(t=!t.setAttribute?u.createElement("div"):t).setAttribute&&t.removeAttribute&&(t.setAttribute(e,""),n=E(t[e],"function"),void 0!==t[e]&&(t[e]=o),t.removeAttribute(e)),t=null,n}),S={}.hasOwnProperty;function T(e){l.cssText=e}function E(e,t){return typeof e===t}function Q(e,t){return!!~(""+e).indexOf(t)}function D(e,t){for(var n in e){n=e[n];if(!Q(n,"-")&&l[n]!==o)return"pfx"!=t||n}return!1}function N(e,t,n){var i=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+_.join(i+" ")+i).split(" ");return E(t,"string")||void 0===t?D(a,t):function(e,t,n){for(var i in e){var a=t[e[i]];if(a!==o)return!1===n?e[i]:E(a,"function")?a.bind(n||t):a}return!1}(a=(e+" "+g.join(i+" ")+i).split(" "),t,n)}for(t in a=void 0!==S&&void 0!==S.call?function(e,t){return S.call(e,t)}:function(e,t){return t in e&&void 0===e.constructor.prototype[t]},Function.prototype.bind||(Function.prototype.bind=function(i){var a=this;if("function"!=typeof a)throw new TypeError;var r=k.call(arguments,1),o=function(){if(this instanceof o){function e(){}e.prototype=a.prototype;var t=new e,n=a.apply(t,r.concat(k.call(arguments)));return Object(n)===n?n:t}return a.apply(i,r.concat(k.call(arguments)))};return o}),v.flexbox=function(){return N("flexWrap")},v.flexboxlegacy=function(){return N("boxDirection")},v.canvas=function(){var e=u.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},v.canvastext=function(){return!(!s.canvas||!E(u.createElement("canvas").getContext("2d").fillText,"function"))},v.webgl=function(){return!!i.WebGLRenderingContext},v.touch=function(){var t;return"ontouchstart"in i||i.DocumentTouch&&u instanceof DocumentTouch?t=!0:x(["@media (",f.join("touch-enabled),("),p,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){t=9===e.offsetTop}),t},v.geolocation=function(){return"geolocation"in navigator},v.postmessage=function(){return!!i.postMessage},v.websqldatabase=function(){return!!i.openDatabase},v.indexedDB=function(){return!!N("indexedDB",i)},v.hashchange=function(){return C("hashchange",i)&&(u.documentMode===o||7<u.documentMode)},v.history=function(){return!(!i.history||!history.pushState)},v.draganddrop=function(){var e=u.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},v.websockets=function(){return"WebSocket"in i||"MozWebSocket"in i},v.rgba=function(){return T("background-color:rgba(150,255,150,.5)"),Q(l.backgroundColor,"rgba")},v.hsla=function(){return T("background-color:hsla(120,40%,100%,.5)"),Q(l.backgroundColor,"rgba")||Q(l.backgroundColor,"hsla")},v.multiplebgs=function(){return T("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(l.background)},v.backgroundsize=function(){return N("backgroundSize")},v.borderimage=function(){return N("borderImage")},v.borderradius=function(){return N("borderRadius")},v.boxshadow=function(){return N("boxShadow")},v.textshadow=function(){return""===u.createElement("div").style.textShadow},v.opacity=function(){return T(f.join("opacity:.55;")+""),/^0.55$/.test(l.opacity)},v.cssanimations=function(){return N("animationName")},v.csscolumns=function(){return N("columnCount")},v.cssgradients=function(){var e="background-image:";return T((e+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+e)+f.join("linear-gradient(left top,#9f9, white);"+e)).slice(0,-e.length)),Q(l.backgroundImage,"gradient")},v.cssreflections=function(){return N("boxReflect")},v.csstransforms=function(){return!!N("transform")},v.csstransforms3d=function(){var n=!!N("perspective");return n&&"webkitPerspective"in d.style&&x("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(e,t){n=9===e.offsetLeft&&3===e.offsetHeight}),n},v.csstransitions=function(){return N("transition")},v.fontface=function(){var i;return x('@font-face {font-family:"font";src:url("https://")}',function(e,t){var n=u.getElementById("smodernizr"),n=n.sheet||n.styleSheet,n=n?n.cssRules&&n.cssRules[0]?n.cssRules[0].cssText:n.cssText||"":"";i=/src/i.test(n)&&0===n.indexOf(t.split(" ")[0])}),i},v.generatedcontent=function(){var t;return x(["#",p,"{font:0/0 a}#",p,':after{content:"',h,'";visibility:hidden;font:3px/1 a}'].join(""),function(e){t=3<=e.offsetHeight}),t},v.video=function(){var e=u.createElement("video"),t=!1;try{(t=!!e.canPlayType)&&((t=Boolean(t)).ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),t.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(e){}return t},v.audio=function(){var e=u.createElement("audio"),t=!1;try{(t=!!e.canPlayType)&&((t=Boolean(t)).ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),t.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),t.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(e){}return t},v.localstorage=function(){try{return localStorage.setItem(p,p),localStorage.removeItem(p),!0}catch(e){return!1}},v.sessionstorage=function(){try{return sessionStorage.setItem(p,p),sessionStorage.removeItem(p),!0}catch(e){return!1}},v.webworkers=function(){return!!i.Worker},v.applicationcache=function(){return!!i.applicationCache},v.svg=function(){return!!u.createElementNS&&!!u.createElementNS(y,"svg").createSVGRect},v.inlinesvg=function(){var e=u.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==y},v.smil=function(){return!!u.createElementNS&&/SVGAnimate/.test(n.call(u.createElementNS(y,"animate")))},v.svgclippaths=function(){return!!u.createElementNS&&/SVGClipPath/.test(n.call(u.createElementNS(y,"clipPath")))},v)a(v,t)&&(e=t.toLowerCase(),s[e]=v[t](),j.push((s[e]?"":"no-")+e));return s.input||(s.input=function(e){for(var t=0,n=e.length;t<n;t++)b[e[t]]=!!(e[t]in c);return b.list&&(b.list=!(!u.createElement("datalist")||!i.HTMLDataListElement)),b}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),s.inputtypes=function(e){for(var t,n,i,a=0,r=e.length;a<r;a++)c.setAttribute("type",n=e[a]),(t="text"!==c.type)&&(c.value=h,c.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(n)&&c.style.WebkitAppearance!==o?(d.appendChild(c),t=(i=u.defaultView).getComputedStyle&&"textfield"!==i.getComputedStyle(c,null).WebkitAppearance&&0!==c.offsetHeight,d.removeChild(c)):/^(search|tel)$/.test(n)||(t=/^(url|email)$/.test(n)?c.checkValidity&&!1===c.checkValidity():c.value!=h)),w[e[a]]=!!t;return w}("search tel url email datetime date month week time datetime-local number range color".split(" "))),s.addTest=function(e,t){if("object"==typeof e)for(var n in e)a(e,n)&&s.addTest(n,e[n]);else{if(e=e.toLowerCase(),s[e]!==o)return s;t="function"==typeof t?t():t,d.className+=" "+(t?"":"no-")+e,s[e]=t}return s},T(""),c=null,function(e,s){var l,c,t=e.html5||{},i=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,a=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,n="_html5shiv",r=0,o={};function u(){var e=f.elements;return"string"==typeof e?e.split(" "):e}function d(e){var t=o[e[n]];return t||(t={},r++,e[n]=r,o[r]=t),t}function p(e,t,n){return t=t||s,c?t.createElement(e):!(t=(n=n||d(t)).cache[e]?n.cache[e].cloneNode():a.test(e)?(n.cache[e]=n.createElem(e)).cloneNode():n.createElem(e)).canHaveChildren||i.test(e)||t.tagUrn?t:n.frag.appendChild(t)}function h(e){var t,n,i,a,r,o=d(e=e||s);return!f.shivCSS||l||o.hasCSS||(o.hasCSS=(n="article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}",i=(t=e).createElement("p"),t=t.getElementsByTagName("head")[0]||t.documentElement,i.innerHTML="x<style>"+n+"</style>",!!t.insertBefore(i.lastChild,t.firstChild))),c||(a=e,(r=o).cache||(r.cache={},r.createElem=a.createElement,r.createFrag=a.createDocumentFragment,r.frag=r.createFrag()),a.createElement=function(e){return f.shivMethods?p(e,a,r):r.createElem(e)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+u().join().replace(/[\w\-]+/g,function(e){return r.createElem(e),r.frag.createElement(e),'c("'+e+'")'})+");return n}")(f,r.frag)),e}!function(){try{var e=s.createElement("a");e.innerHTML="<xyz></xyz>",l="hidden"in e,c=1==e.childNodes.length||function(){s.createElement("a");var e=s.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){c=l=!0}}();var f={elements:t.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==t.shivCSS,supportsUnknownElements:c,shivMethods:!1!==t.shivMethods,type:"default",shivDocument:h,createElement:p,createDocumentFragment:function(e,t){if(e=e||s,c)return e.createDocumentFragment();for(var n=(t=t||d(e)).frag.cloneNode(),i=0,a=u(),r=a.length;i<r;i++)n.createElement(a[i]);return n}};e.html5=f,h(s)}(this,u),s._version="2.8.3",s._prefixes=f,s._domPrefixes=g,s._cssomPrefixes=_,s.mq=function(e){var t,n=i.matchMedia||i.msMatchMedia;return n?n(e)&&n(e).matches||!1:(x("@media "+e+" { #"+p+" { position: absolute; }}",function(e){t="absolute"==(i.getComputedStyle?getComputedStyle(e,null):e.currentStyle).position}),t)},s.hasEvent=C,s.testProp=function(e){return D([e])},s.testAllProps=N,s.testStyles=x,s.prefixed=function(e,t,n){return t?N(e,t,n):N(e,"pfx")},d.className=d.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(" js "+j.join(" ")),s}(this,this.document),function(u){"use strict";var i,a,r,n,o,s;function l(e,t){if(!(this instanceof l)){var n=new l(e,t);return n.open(),n}this.id=l.id++,this.setup(e,t),this.chainCallbacks(l._callbackChain)}void 0!==u?(i=[],a=function(t){return i=u.grep(i,function(e){return e!==t&&0<e.$instance.closest("body").length})},r={allowfullscreen:1,frameborder:1,height:1,longdesc:1,marginheight:1,marginwidth:1,name:1,referrerpolicy:1,scrolling:1,sandbox:1,src:1,srcdoc:1,width:1},n={keyup:"onKeyUp",resize:"onResize"},l.prototype={constructor:l,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!(s=function(e){var t;e!==l._globalHandlerInstalled&&(l._globalHandlerInstalled=e,t=u.map(n,function(e,t){return t+"."+l.prototype.namespace}).join(" "),u(window)[e?"on":"off"](t,o))}),background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"&#10005;",loading:"",persist:!(o=function(e){u.each(l.opened().reverse(),function(){if(!e.isDefaultPrevented()&&!1===this[n[e.type]](e))return e.preventDefault(),e.stopPropagation(),!1})}),otherClose:null,beforeOpen:u.noop,beforeContent:u.noop,beforeClose:u.noop,afterOpen:u.noop,afterContent:u.noop,afterClose:u.noop,onKeyUp:u.noop,onResize:u.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(e,t){"object"!=typeof e||e instanceof u!=!1||t||(t=e,e=void 0);var n=u.extend(this,t,{target:e}),e=n.resetCss?n.namespace+"-reset":n.namespace,e=u(n.background||['<div class="'+e+"-loading "+e+'">','<div class="'+e+'-content">','<button class="'+e+"-close-icon "+n.namespace+'-close" aria-label="Close">',n.closeIcon,"</button>",'<div class="'+n.namespace+'-inner">'+n.loading+"</div>","</div>","</div>"].join("")),i="."+n.namespace+"-close"+(n.otherClose?","+n.otherClose:"");return n.$instance=e.clone().addClass(n.variant),n.$instance.on(n.closeTrigger+"."+n.namespace,function(e){var t=u(e.target);("background"===n.closeOnClick&&t.is("."+n.namespace)||"anywhere"===n.closeOnClick||t.closest(i).length)&&(n.close(e),e.preventDefault())}),this},getContent:function(){if(!1!==this.persist&&this.$content)return this.$content;function e(e){return t.$currentTarget&&t.$currentTarget.attr(e)}var t=this,n=this.constructor.contentFilters,i=e(t.targetAttr),a=t.target||i||"",r=n[t.type];if(!r&&a in n&&(r=n[a],a=t.target&&i),a=a||e("href")||"",!r)for(var o in n)t[o]&&(r=n[o],a=t[o]);if(!r){var s=a,a=null;if(u.each(t.contentFilters,function(){return r=n[this],!(a=!(a=r.test?r.test(s):a)&&r.regex&&s.match&&s.match(r.regex)?s:a)}),!a)return"console"in window&&window.console.error("Featherlight: no content filter found "+(s?' for "'+s+'"':" (no target specified)")),!1}return r.process.call(t,a)},setContent:function(e){var t=this;return e.is("iframe")&&t.$instance.addClass(t.namespace+"-iframe"),t.$instance.removeClass(t.namespace+"-loading"),t.$instance.find("."+t.namespace+"-inner").not(e).slice(1).remove().end().replaceWith(u.contains(t.$instance[0],e[0])?"":e),t.$content=e.addClass(t.namespace+"-inner"),t},open:function(t){var n=this;if(n.$instance.hide().appendTo(n.root),!(t&&t.isDefaultPrevented()||!1===n.beforeOpen(t))){t&&t.preventDefault();var e=n.getContent();if(e)return i.push(n),s(!0),n.$instance.fadeIn(n.openSpeed),n.beforeContent(t),u.when(e).always(function(e){n.setContent(e),n.afterContent(t)}).then(n.$instance.promise()).done(function(){n.afterOpen(t)})}return n.$instance.detach(),u.Deferred().reject().promise()},close:function(e){var t=this,n=u.Deferred();return!1===t.beforeClose(e)?n.reject():(0===a(t).length&&s(!1),t.$instance.fadeOut(t.closeSpeed,function(){t.$instance.detach(),t.afterClose(e),n.resolve()})),n.promise()},resize:function(e,t){var n;e&&t&&(this.$content.css("width","").css("height",""),1<(n=Math.max(e/(parseInt(this.$content.parent().css("width"),10)-1),t/(parseInt(this.$content.parent().css("height"),10)-1)))&&(n=t/Math.floor(t/n),this.$content.css("width",e/n+"px").css("height",t/n+"px")))},chainCallbacks:function(e){for(var t in e)this[t]=u.proxy(e[t],this,u.proxy(this[t],this))}},u.extend(l,{id:0,autoBind:"[data-featherlight]",defaults:l.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(e){return e instanceof u&&e},process:function(e){return!1!==this.persist?u(e):u(e).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff|bmp|svg)(\?\S*)?$/i,process:function(e){var t=u.Deferred(),n=new Image,i=u('<img src="'+e+'" alt="" class="'+this.namespace+'-image" />');return n.onload=function(){i.naturalWidth=n.width,i.naturalHeight=n.height,t.resolve(i)},n.onerror=function(){t.reject(i)},n.src=e,t.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(e){return u(e)}},ajax:{regex:/./,process:function(e){var n=u.Deferred(),i=u("<div></div>").load(e,function(e,t){"error"!==t&&n.resolve(i.contents()),n.fail()});return n.promise()}},iframe:{process:function(e){var t=new u.Deferred,n=u("<iframe/>"),i=function(e,t){var n,i={},a=new RegExp("^"+t+"([A-Z])(.*)");for(n in e){var r=n.match(a);r&&(i[(r[1]+r[2].replace(/([A-Z])/g,"-$1")).toLowerCase()]=e[n])}return i}(this,"iframe"),a=function(e,t){var n,i={};for(n in e)n in t&&(i[n]=e[n],delete e[n]);return i}(i,r);return n.hide().attr("src",e).attr(a).css(i).on("load",function(){t.resolve(n.show())}).appendTo(this.$instance.find("."+this.namespace+"-content")),t.promise()}},text:{process:function(e){return u("<div>",{text:e})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(e,t){var n=this,i=new RegExp("^data-"+t+"-(.*)"),a={};return e&&e.attributes&&u.each(e.attributes,function(){var e=this.name.match(i);if(e){var t=this.value,e=u.camelCase(e[1]);if(0<=u.inArray(e,n.functionAttributes))t=new Function(t);else try{t=JSON.parse(t)}catch(e){}a[e]=t}}),a},extend:function(e,t){function n(){this.constructor=e}return n.prototype=this.prototype,e.prototype=new n,e.__super__=this.prototype,u.extend(e,this,t),e.defaults=e.prototype,e},attach:function(a,r,o){var s=this;"object"!=typeof r||r instanceof u!=!1||o||(o=r,r=void 0);function e(e){var t=u(e.currentTarget),n=u.extend({$source:a,$currentTarget:t},s.readElementConfig(a[0],c.namespace),s.readElementConfig(e.currentTarget,c.namespace),o),i=l||t.data("featherlight-persisted")||new s(r,n);"shared"===i.persist?l=i:!1!==i.persist&&t.data("featherlight-persisted",i),n.$currentTarget.blur&&n.$currentTarget.blur(),i.open(e)}var l,t=(o=u.extend({},o)).namespace||s.defaults.namespace,c=u.extend({},s.defaults,s.readElementConfig(a[0],t),o);return a.on(c.openTrigger+"."+c.namespace,c.filter,e),e},current:function(){var e=this.opened();return e[e.length-1]||null},opened:function(){var t=this;return a(),u.grep(i,function(e){return e instanceof t})},close:function(e){var t=this.current();if(t)return t.close(e)},_onReady:function(){var t=this;t.autoBind&&(u(t.autoBind).each(function(){t.attach(u(this))}),u(document).on("click",t.autoBind,function(e){e.isDefaultPrevented()||t.attach(u(e.currentTarget))(e)}))},_callbackChain:{onKeyUp:function(e,t){return 27===t.keyCode?(this.closeOnEsc&&u.featherlight.close(t),!1):e(t)},beforeOpen:function(e,t){return this._previouslyActive=document.activeElement,this._$previouslyTabbable=u("a, input, select, textarea, iframe, button, iframe, [contentEditable=true]").not("[tabindex]").not(this.$instance.find("button")),this._$previouslyWithTabIndex=u("[tabindex]").not('[tabindex="-1"]'),this._previousWithTabIndices=this._$previouslyWithTabIndex.map(function(e,t){return u(t).attr("tabindex")}),this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr("tabindex",-1),document.activeElement.blur&&document.activeElement.blur(),e(t)},afterClose:function(e,t){var t=e(t),n=this;return this._$previouslyTabbable.removeAttr("tabindex"),this._$previouslyWithTabIndex.each(function(e,t){u(t).attr("tabindex",n._previousWithTabIndices[e])}),this._previouslyActive.focus(),t},onResize:function(e,t){return this.resize(this.$content.naturalWidth,this.$content.naturalHeight),e(t)},afterContent:function(e,t){e=e(t);return this.$instance.find("[autofocus]:not([disabled])").focus(),this.onResize(t),e}}}),u.featherlight=l,u.fn.featherlight=function(e,t){return l.attach(this,e,t),this},u(document).ready(function(){l._onReady()})):"console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery.")}(jQuery),function(J,e,j,k){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),J.fn.calendar=function(f){var m,e=J(this),_=e.selector||"",g=(new Date).getTime(),y=[],v=f,w="string"==typeof v,b=[].slice.call(arguments,1);return e.each(function(){var d,Y=J.isPlainObject(f)?J.extend(!0,{},J.fn.calendar.settings,f):J.extend({},J.fn.calendar.settings),V=Y.className,e=Y.namespace,t=Y.selector,$=Y.formatter,n=Y.parser,G=Y.metadata,s=Y.error,i="."+e,a="module-"+e,r=J(this),o=r.find(t.input),K=r.find(t.popup),l=r.find(t.activator),c=this,u=r.data(a),p=!1,h=!1,X={initialize:function(){X.debug("Initializing calendar for",c),d=X.get.isTouch(),X.setup.popup(),X.setup.inline(),X.setup.input(),X.setup.date(),X.create.calendar(),X.bind.events(),X.instantiate()},instantiate:function(){X.verbose("Storing instance of calendar"),u=X,r.data(a,u)},destroy:function(){X.verbose("Destroying previous calendar for",c),r.removeData(a),X.unbind.events()},setup:{popup:function(){var e,t,n;Y.inline||(l.length||(l=r.children().first()).length)&&(J.fn.popup!==k?((K=!K.length?J("<div/>").addClass(V.popup).prependTo(l.parent()):K).addClass(V.calendar),e=Y.onVisible,n=Y.onHidden,o.length||(K.attr("tabindex","0"),e=function(){return X.focus(),Y.onVisible.apply(K,arguments)},n=function(){return X.blur(),Y.onHidden.apply(K,arguments)}),t=Y.on||(o.length?"focus":"click"),n=J.extend({},Y.popupOptions,{popup:K,on:t,hoverable:"hover"===t,onShow:function(){return X.set.focusDate(X.get.date()),X.set.mode(Y.startMode),Y.onShow.apply(K,arguments)},onVisible:e,onHide:Y.onHide,onHidden:n}),X.popup(n)):X.error(s.popup))},inline:function(){l.length&&!Y.inline||(K=J("<div/>").addClass(V.calendar).appendTo(r),o.length||K.attr("tabindex","0"))},input:function(){Y.touchReadonly&&o.length&&d&&o.prop("readonly",!0)},date:function(){var e;o.length&&(e=o.val(),e=n.date(e,Y),X.set.date(e,Y.formatInput,!1))}},create:{calendar:function(){var e,t,n,i=X.get.mode(),a=new Date,r=X.get.date(),o=X.get.focusDate(),s=o||r||Y.initialDate||a,s=X.helper.dateInRange(s);o||(o=s,X.set.focusDate(o,!1,!1));var l="year"===i,c="month"===i,u="day"===i,d="hour"===i,p="minute"===i,h="time"===Y.type,f=Math.max(Y.multiMonth,1),m=u?X.get.monthOffset():0,_=s.getMinutes(),g=s.getHours(),y=s.getDate(),v=s.getMonth()+m,w=s.getFullYear(),b=u?7:d?4:3,j=7==b?"seven":4==b?"four":"three",k=u||d?6:4,x=u?f:1,C=K;for(C.empty(),1<x&&(n=J("<div/>").addClass(V.grid).appendTo(C)),t=0;t<x;t++){1<x&&(C=J("<div/>").addClass(V.column).appendTo(n));var S=v+t,T=(new Date(w,S,1).getDay()-Y.firstDayOfWeek%7+7)%7;!Y.constantHeight&&u&&(M=new Date(w,S+1,0).getDate()+T,k=Math.ceil(M/7));var E=l?10:c?1:0,Q=u?1:0,D=d||p?1:0,N=d||p?y:1,A=new Date(w-E,S-Q,N-D,g),I=new Date(w+E,S+Q,N+D,g),R=l?new Date(10*Math.ceil(w/10)-9,0,0):c?new Date(w,0,0):u?new Date(w,S,0):new Date(w,S,y,-1),M=l?new Date(10*Math.ceil(w/10)+1,0,1):c?new Date(w+1,0,1):u?new Date(w,S+1,1):new Date(w,S,y+1),E=J("<table/>").addClass(V.table).addClass(j+" column").addClass(i).appendTo(C);if(!h){var Q=J("<thead/>").appendTo(E),P=J("<tr/>").appendTo(Q),O=J("<th/>").attr("colspan",""+b).appendTo(P),N=l||c?new Date(w,0,1):u?new Date(w,S,1):new Date(w,S,y,g,_),D=J("<span/>").addClass(V.link).appendTo(O);D.text($.header(N,i,Y));var L,N=c?Y.disableYear?"day":"year":u?Y.disableMonth?"year":"month":"day";if(D.data(G.mode,N),0===t&&((L=J("<span/>").addClass(V.prev).appendTo(O)).data(G.focusDate,A),L.toggleClass(V.disabledCell,!X.helper.isDateInRange(R,i)),J("<i/>").addClass(V.prevIcon).appendTo(L)),t===x-1&&((L=J("<span/>").addClass(V.next).appendTo(O)).data(G.focusDate,I),L.toggleClass(V.disabledCell,!X.helper.isDateInRange(M,i)),J("<i/>").addClass(V.nextIcon).appendTo(L)),u)for(P=J("<tr/>").appendTo(Q),z=0;z<b;z++)(O=J("<th/>").appendTo(P)).text($.dayColumnHeader((z+Y.firstDayOfWeek)%7,Y))}for(var q=J("<tbody/>").appendTo(E),z=l?10*Math.ceil(w/10)-9:u?1-T:0,F=0;F<k;F++)for(P=J("<tr/>").appendTo(q),e=0;e<b;e++,z++){var U=l?new Date(z,S,1,g,_):c?new Date(w,z,1,g,_):u?new Date(w,S,z,g,_):d?new Date(w,S,y,z):new Date(w,S,y,g,5*z),H=l?z:c?Y.text.monthsShort[z]:u?U.getDate():$.time(U,Y,!0);(O=J("<td/>").addClass(V.cell).appendTo(P)).text(H),O.data(G.date,U);var B=u&&U.getMonth()!==(S+12)%12,W=B||!X.helper.isDateInRange(U,i)||Y.isDisabled(U,i),H=X.helper.dateEqual(U,r,i);O.toggleClass(V.adjacentCell,B),O.toggleClass(V.disabledCell,W),O.toggleClass(V.activeCell,H&&!B),d||p||O.toggleClass(V.todayCell,!B&&X.helper.dateEqual(U,a,i)),X.helper.dateEqual(U,o,i)&&X.set.focusDate(U,!1,!1)}Y.today&&(T=J("<tr/>").appendTo(q),(T=J("<td/>").attr("colspan",""+b).addClass(V.today).appendTo(T)).text($.today(Y)),T.data(G.date,a)),X.update.focus(!1,E)}}},update:{focus:function(e,t){t=t||K;var o=X.get.mode(),n=X.get.date(),s=X.get.focusDate(),l=X.get.startDate(),c=X.get.endDate(),u=(e?s:null)||n||(d?null:s);t.find("td").each(function(){var e,t,n,i,a=J(this),r=a.data(G.date);r&&(e=a.hasClass(V.disabledCell),t=a.hasClass(V.activeCell),n=a.hasClass(V.adjacentCell),i=X.helper.dateEqual(r,s,o),r=!!u&&(!!l&&X.helper.isDateInRange(r,o,l,u)||!!c&&X.helper.isDateInRange(r,o,u,c)),a.toggleClass(V.focusCell,i&&(!d||p)&&!n),a.toggleClass(V.rangeCell,r&&!t&&!e))})}},refresh:function(){X.create.calendar()},bind:{events:function(){K.on("mousedown"+i,X.event.mousedown),K.on("touchstart"+i,X.event.mousedown),K.on("mouseup"+i,X.event.mouseup),K.on("touchend"+i,X.event.mouseup),K.on("mouseover"+i,X.event.mouseover),o.length?(o.on("input"+i,X.event.inputChange),o.on("focus"+i,X.event.inputFocus),o.on("blur"+i,X.event.inputBlur),o.on("click"+i,X.event.inputClick),o.on("keydown"+i,X.event.keydown)):K.on("keydown"+i,X.event.keydown)}},unbind:{events:function(){K.off(i),o.length&&o.off(i)}},event:{mouseover:function(e){var t=J(e.target).data(G.date),e=1===e.buttons;t&&X.set.focusDate(t,!1,!0,e)},mousedown:function(e){o.length&&e.preventDefault(),p=0<=e.type.indexOf("touch");e=J(e.target).data(G.date);e&&X.set.focusDate(e,!1,!0,!0)},mouseup:function(e){X.focus(),e.preventDefault(),e.stopPropagation(),p=!1;var t=J(e.target),n=t.parent(),i=(t=n.data(G.date)||n.data(G.focusDate)||n.data(G.mode)?n:t).data(G.date),e=t.data(G.focusDate),n=t.data(G.mode);i?(t=t.hasClass(V.today),X.selectDate(i,t)):e?X.set.focusDate(e):n&&X.set.mode(n)},keydown:function(e){var t,n,i,a,r,o,s;27!==e.keyCode&&9!==e.keyCode||X.popup("hide"),X.popup("is visible")&&(37===e.keyCode||38===e.keyCode||39===e.keyCode||40===e.keyCode?(r="day"===(o=X.get.mode())?7:"hour"===o?4:3,s=37===e.keyCode?-1:38===e.keyCode?-r:39==e.keyCode?1:r,s*="minute"===o?5:1,n=(t=X.get.focusDate()||X.get.date()||new Date).getFullYear()+("year"===o?s:0),i=t.getMonth()+("month"===o?s:0),a=t.getDate()+("day"===o?s:0),r=t.getHours()+("hour"===o?s:0),s=t.getMinutes()+("minute"===o?s:0),s=new Date(n,i,a,r,s),"time"===Y.type&&(s=X.helper.mergeDateTime(t,s)),X.helper.isDateInRange(s,o)&&X.set.focusDate(s)):13===e.keyCode&&(o=X.get.mode(),(s=X.get.focusDate())&&!Y.isDisabled(s,o)&&X.selectDate(s),e.preventDefault(),e.stopPropagation())),38!==e.keyCode&&40!==e.keyCode||(e.preventDefault(),X.popup("show"))},inputChange:function(){var e=o.val(),e=n.date(e,Y);X.set.date(e,!1)},inputFocus:function(){K.addClass(V.active)},inputBlur:function(){var e;K.removeClass(V.active),Y.formatInput&&(e=X.get.date(),e=$.datetime(e,Y),o.val(e))},inputClick:function(){X.popup("show")}},get:{date:function(){return r.data(G.date)||null},focusDate:function(){return r.data(G.focusDate)||null},startDate:function(){var e=X.get.calendarModule(Y.startCalendar);return(e?e.get.date():r.data(G.startDate))||null},endDate:function(){var e=X.get.calendarModule(Y.endCalendar);return(e?e.get.date():r.data(G.endDate))||null},monthOffset:function(){return r.data(G.monthOffset)||0},mode:function(){var e=r.data(G.mode)||Y.startMode,t=X.get.validModes();return 0<=J.inArray(e,t)?e:"time"===Y.type?"hour":"month"===Y.type?"month":"year"===Y.type?"year":"day"},validModes:function(){var e=[];return"time"!==Y.type&&(Y.disableYear&&"year"!==Y.type||e.push("year"),(Y.disableMonth||"year"===Y.type)&&"month"!==Y.type||e.push("month"),0<=Y.type.indexOf("date")&&e.push("day")),0<=Y.type.indexOf("time")&&(e.push("hour"),Y.disableMinute||e.push("minute")),e},isTouch:function(){try{return j.createEvent("TouchEvent"),!0}catch(e){return!1}},calendarModule:function(e){return e?(e=!(e instanceof J)?r.parent().children(e).first():e).data(a):null}},set:{date:function(e,t,n){t=!1!==t,n=!1!==n,e=X.helper.sanitiseDate(e),e=X.helper.dateInRange(e);var i=X.get.mode(),a=$.datetime(e,Y);if(n&&!1===Y.onChange.call(c,e,a,i))return!1;if(X.set.focusDate(e),Y.isDisabled(e,i))return!1;i=X.get.endDate();i&&e&&i<e&&X.set.endDate(k),X.set.dataKeyValue(G.date,e),t&&o.length&&o.val(a)},startDate:function(e,t){e=X.helper.sanitiseDate(e);var n=X.get.calendarModule(Y.startCalendar);n&&n.set.date(e),X.set.dataKeyValue(G.startDate,e,t)},endDate:function(e,t){e=X.helper.sanitiseDate(e);var n=X.get.calendarModule(Y.endCalendar);n&&n.set.date(e),X.set.dataKeyValue(G.endDate,e,t)},focusDate:function(e,t,n,i){e=X.helper.sanitiseDate(e),e=X.helper.dateInRange(e);var a="day"===X.get.mode(),r=X.get.focusDate();a&&e&&r&&((r=12*(e.getFullYear()-r.getFullYear())+e.getMonth()-r.getMonth())&&(r=X.get.monthOffset()-r,X.set.monthOffset(r,!1)));e=X.set.dataKeyValue(G.focusDate,e,t);n=!1!==n&&e&&!1===t||h!=i,h=i,n&&X.update.focus(i)},monthOffset:function(e,t){var n=Math.max(Y.multiMonth,1);e=Math.max(1-n,Math.min(0,e)),X.set.dataKeyValue(G.monthOffset,e,t)},mode:function(e,t){X.set.dataKeyValue(G.mode,e,t)},dataKeyValue:function(e,t,n){var i=r.data(e),i=i===t||i<=t&&t<=i;return t?r.data(e,t):r.removeData(e),(n=!1!==n&&!i)&&X.create.calendar(),!i}},selectDate:function(e,t){var n,i=X.get.mode();t||"minute"===i||Y.disableMinute&&"hour"===i||"date"===Y.type&&"day"===i||"month"===Y.type&&"month"===i||"year"===Y.type&&"year"===i?!1!==X.set.date(e)&&Y.closable&&(X.popup("hide"),(n=X.get.calendarModule(Y.endCalendar))&&(n.popup("show"),n.focus())):(n="year"===i?Y.disableMonth?"day":"month":"month"===i?"day":"day"===i?"hour":"minute",X.set.mode(n),"hour"===i||"day"===i&&X.get.date()?X.set.date(e):X.set.focusDate(e))},changeDate:function(e){X.set.date(e)},clear:function(){X.set.date(k)},popup:function(){return l.popup.apply(l,arguments)},focus:function(){(o.length?o:K).focus()},blur:function(){(o.length?o:K).blur()},helper:{sanitiseDate:function(e){return e?(e instanceof Date||(e=n.date(""+e,Y)),isNaN(e.getTime())?k:e):k},dateDiff:function(e,t,n){var i="time"===Y.type,a="year"===(n=n||"day"),r=a||"month"===n,o="minute"===n,n=o||"hour"===n;return e=new Date(i?2e3:e.getFullYear(),i||a?0:e.getMonth(),i||r?1:e.getDate(),n?e.getHours():0,o?5*Math.floor(e.getMinutes()/5):0),(t=new Date(i?2e3:t.getFullYear(),i||a?0:t.getMonth(),i||r?1:t.getDate(),n?t.getHours():0,o?5*Math.floor(t.getMinutes()/5):0)).getTime()-e.getTime()},dateEqual:function(e,t,n){return!!e&&!!t&&0===X.helper.dateDiff(e,t,n)},isDateInRange:function(e,t,n,i){var a;return n||i||(n=(a=X.get.startDate())&&Y.minDate?new Date(Math.max(a,Y.minDate)):a||Y.minDate,i=Y.maxDate),n=n&&new Date(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),5*Math.ceil(n.getMinutes()/5)),!(!e||n&&0<X.helper.dateDiff(e,n,t)||i&&0<X.helper.dateDiff(i,e,t))},dateInRange:function(e,t,n){t||n||(t=(i=X.get.startDate())&&Y.minDate?new Date(Math.max(i,Y.minDate)):i||Y.minDate,n=Y.maxDate),t=t&&new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),5*Math.ceil(t.getMinutes()/5));var i="time"===Y.type;return e&&(t&&0<X.helper.dateDiff(e,t,"minute")?i?X.helper.mergeDateTime(e,t):t:n&&0<X.helper.dateDiff(n,e,"minute")?i?X.helper.mergeDateTime(e,n):n:e)},mergeDateTime:function(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes()):t}},setting:function(e,t){if(X.debug("Changing setting",e,t),J.isPlainObject(e))J.extend(!0,Y,e);else{if(t===k)return Y[e];J.isPlainObject(Y[e])?J.extend(!0,Y[e],t):Y[e]=t}},internal:function(e,t){if(X.debug("Changing internal",e,t),t===k)return X[e];J.isPlainObject(e)?J.extend(!0,X,e):X[e]=t},debug:function(){!Y.silent&&Y.debug&&(Y.performance?X.performance.log(arguments):(X.debug=Function.prototype.bind.call(console.info,console,Y.name+":"),X.debug.apply(console,arguments)))},verbose:function(){!Y.silent&&Y.verbose&&Y.debug&&(Y.performance?X.performance.log(arguments):(X.verbose=Function.prototype.bind.call(console.info,console,Y.name+":"),X.verbose.apply(console,arguments)))},error:function(){Y.silent||(X.error=Function.prototype.bind.call(console.error,console,Y.name+":"),X.error.apply(console,arguments))},performance:{log:function(e){var t,n;Y.performance&&(n=(t=(new Date).getTime())-(g||t),g=t,y.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:c,"Execution Time":n})),clearTimeout(X.performance.timer),X.performance.timer=setTimeout(X.performance.display,500)},display:function(){var e=Y.name+":",n=0;g=!1,clearTimeout(X.performance.timer),J.each(y,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",_&&(e+=" '"+_+"'"),(console.group!==k||console.table!==k)&&0<y.length&&(console.groupCollapsed(e),console.table?console.table(y):J.each(y,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),y=[]}},invoke:function(i,e,t){var a,r,n,o=u;return e=e||b,t=c||t,"string"==typeof i&&o!==k&&(i=i.split(/[\. ]/),a=i.length-1,J.each(i,function(e,t){var n=e!=a?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(J.isPlainObject(o[n])&&e!=a)o=o[n];else{if(o[n]!==k)return r=o[n],!1;{if(!J.isPlainObject(o[t])||e==a)return o[t]!==k?r=o[t]:X.error(s.method,i),!1;o=o[t]}}})),J.isFunction(r)?n=r.apply(t,e):r!==k&&(n=r),J.isArray(m)?m.push(n):m!==k?m=[m,n]:n!==k&&(m=n),r}};w?(u===k&&X.initialize(),X.invoke(v)):(u!==k&&u.invoke("destroy"),X.initialize())}),m!==k?m:this},J.fn.calendar.settings={name:"Calendar",namespace:"calendar",silent:!1,debug:!1,verbose:!1,performance:!1,type:"datetime",firstDayOfWeek:0,constantHeight:!0,today:!1,closable:!0,monthFirst:!0,touchReadonly:!0,inline:!1,on:null,initialDate:null,startMode:!1,minDate:null,maxDate:null,ampm:!0,disableYear:!1,disableMonth:!1,disableMinute:!1,formatInput:!0,startCalendar:null,endCalendar:null,multiMonth:1,popupOptions:{position:"bottom left",lastResort:"bottom left",prefer:"opposite",hideOnScroll:!1},text:{days:["S","M","T","W","T","F","S"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",now:"Now",am:"AM",pm:"PM"},formatter:{header:function(e,t,n){return"year"===t?n.formatter.yearHeader(e,n):"month"===t?n.formatter.monthHeader(e,n):"day"===t?n.formatter.dayHeader(e,n):"hour"===t?n.formatter.hourHeader(e,n):n.formatter.minuteHeader(e,n)},yearHeader:function(e,t){e=10*Math.ceil(e.getFullYear()/10);return e-9+" - "+(2+e)},monthHeader:function(e,t){return e.getFullYear()},dayHeader:function(e,t){return t.text.months[e.getMonth()]+" "+e.getFullYear()},hourHeader:function(e,t){return t.formatter.date(e,t)},minuteHeader:function(e,t){return t.formatter.date(e,t)},dayColumnHeader:function(e,t){return t.text.days[e]},datetime:function(e,t){if(!e)return"";var n="time"===t.type?"":t.formatter.date(e,t),e=t.type.indexOf("time")<0?"":t.formatter.time(e,t,!1);return n+("datetime"===t.type?" ":"")+e},date:function(e,t){if(!e)return"";var n=e.getDate(),i=t.text.months[e.getMonth()],e=e.getFullYear();return"year"===t.type?e:"month"===t.type?i+" "+e:(t.monthFirst?i+" "+n:n+" "+i)+", "+e},time:function(e,t,n){if(!e)return"";var i=e.getHours(),a=e.getMinutes(),e="";return t.ampm&&(e=" "+(i<12?t.text.am:t.text.pm),i=0===i?12:12<i?i-12:i),i+":"+(a<10?"0":"")+a+e},today:function(e){return"date"===e.type?e.text.today:e.text.now}},parser:{date:function(e,t){if(!e)return null;if(0===(e=(""+e).trim().toLowerCase()).length)return null;var n,i,a=-1,r=-1,o=-1,s=-1,l=-1,c=k,u="time"===t.type,d=t.type.indexOf("time")<0,p=e.split(t.regExp.dateWords),h=e.split(t.regExp.dateNumbers);if(!d)for(c=0<=J.inArray(t.text.am.toLowerCase(),p)||!(0<=J.inArray(t.text.pm.toLowerCase(),p))&&k,n=0;n<h.length;n++){var f=h[n];if(0<=f.indexOf(":")){if(r<0||a<0)for(var m=f.split(":"),_=0;_<Math.min(2,m.length);_++)i=parseInt(m[_]),isNaN(i)&&(i=0),0===_?r=i%24:a=i%60;h.splice(n,1)}}if(!u){for(n=0;n<p.length;n++){var g=p[n];if(!(g.length<=0)){for(g=g.substring(0,Math.min(g.length,3)),i=0;i<t.text.months.length;i++){var y=t.text.months[i];if((y=y.substring(0,Math.min(g.length,Math.min(y.length,3))).toLowerCase())===g){s=i+1;break}}if(0<=s)break}}for(n=0;n<h.length;n++)if(i=parseInt(h[n]),!isNaN(i)&&59<i){l=i,h.splice(n,1);break}if(s<0)for(n=0;n<h.length;n++)if(_=1<n||t.monthFirst?n:1===n?0:1,i=parseInt(h[_]),!isNaN(i)&&1<=i&&i<=12){s=i,h.splice(_,1);break}for(n=0;n<h.length;n++)if(i=parseInt(h[n]),!isNaN(i)&&1<=i&&i<=31){o=i,h.splice(n,1);break}if(l<0)for(n=h.length-1;0<=n;n--)if(i=parseInt(h[n]),!isNaN(i)){i<99&&(i+=2e3),l=i,h.splice(n,1);break}}if(!d){if(r<0)for(n=0;n<h.length;n++)if(i=parseInt(h[n]),!isNaN(i)&&0<=i&&i<=23){r=i,h.splice(n,1);break}if(a<0)for(n=0;n<h.length;n++)if(i=parseInt(h[n]),!isNaN(i)&&0<=i&&i<=59){a=i,h.splice(n,1);break}}if(a<0&&r<0&&o<0&&s<0&&l<0)return null;a<0&&(a=0),r<0&&(r=0),o<0&&(o=1),s<0&&(s=1),l<0&&(l=(new Date).getFullYear()),c!==k&&(c?12===r&&(r=0):r<12&&(r+=12));c=new Date(l,s-1,o,r,a);return c.getMonth()===s-1&&c.getFullYear()===l||(c=new Date(l,s,0,r,a)),isNaN(c.getTime())?null:c}},onChange:function(e,t,n){return!0},onShow:function(){},onVisible:function(){},onHide:function(){},onHidden:function(){},isDisabled:function(e,t){return!1},selector:{popup:".ui.popup",input:"input",activator:"input"},regExp:{dateWords:/[^A-Za-z\u00C0-\u024F]+/g,dateNumbers:/[^\d:]+/g},error:{popup:"UI Popup, a required component is not included in this page",method:"The method you called is not defined."},className:{calendar:"calendar",active:"active",popup:"ui popup",grid:"ui equal width grid",column:"column",table:"ui celled center aligned unstackable table",prev:"prev link",next:"next link",prevIcon:"chevron left icon",nextIcon:"chevron right icon",link:"link",cell:"link",disabledCell:"disabled",adjacentCell:"adjacent",activeCell:"active",rangeCell:"range",focusCell:"focus",todayCell:"today",today:"today link"},metadata:{date:"date",focusDate:"focusDate",startDate:"startDate",endDate:"endDate",mode:"mode",monthOffset:"monthOffset"}}}(jQuery,window,document),function(e,t){"function"==typeof define&&define.amd?define(function(){return t(e)}):"object"==typeof exports?module.exports=t:e.echo=t(e)}(this,function(o){"use strict";function a(){!l&&e||(clearTimeout(e),e=setTimeout(function(){u.render(),e=null},r))}var s,e,r,l,c,u={},d=function(){};return u.init=function(e){function t(e,t){return parseInt(e||t,10)}var n=(e=e||{}).offset||0,i=e.offsetVertical||n,n=e.offsetHorizontal||n;s={t:t(e.offsetTop,i),b:t(e.offsetBottom,i),l:t(e.offsetLeft,n),r:t(e.offsetRight,n)},r=t(e.throttle,250),l=!1!==e.debounce,c=!!e.unload,d=e.callback||d,u.render(),document.addEventListener?(o.addEventListener("scroll",a,!1),o.addEventListener("load",a,!1)):(o.attachEvent("onscroll",a),o.attachEvent("onload",a))},u.render=function(){for(var e,t,n=document.querySelectorAll("img[data-echo], [data-echo-background]"),i=n.length,a={l:0-s.l,t:0-s.t,b:(o.innerHeight||document.documentElement.clientHeight)+s.b,r:(o.innerWidth||document.documentElement.clientWidth)+s.r},r=0;r<i;r++)(function(e,t){if(null===e.offsetParent)return!1;e=e.getBoundingClientRect();return e.right>=t.l&&e.bottom>=t.t&&e.left<=t.r&&e.top<=t.b})(t=n[r],a)?(c&&t.setAttribute("data-echo-placeholder",t.src),null!==t.getAttribute("data-echo-background")?t.style.backgroundImage="url("+t.getAttribute("data-echo-background")+")":t.src=t.getAttribute("data-echo"),c||(t.removeAttribute("data-echo"),t.removeAttribute("data-echo-background")),d(t,"load")):c&&(e=t.getAttribute("data-echo-placeholder"))&&(null!==t.getAttribute("data-echo-background")?t.style.backgroundImage="url("+e+")":t.src=e,t.removeAttribute("data-echo-placeholder"),d(t,"unload"));i||u.detach()},u.detach=function(){document.removeEventListener?o.removeEventListener("scroll",a):o.detachEvent("onscroll",a),clearTimeout(e)},u}),window="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},document=window.document||{},function(e,t){"function"==typeof require&&"object"==typeof exports&&"object"==typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuery)}(function(b){"use strict";var i=0,o={},s={},j=window.emojione,a=[];function r(e){j?e():a.push(e)}var k,x,l,C="data:image/gif;base64,R0lGODlhAQABAJH/AP///wAAAMDAwAAAACH5BAEAAAIALAAAAAABAAEAAAICVAEAOw==",c=[].slice,S="emojionearea",T=0,E="&#8203;";function Q(n,e,i){var a=!0,t=1;if(e){e=e.toLowerCase();do{var r=1==t?"@"+e:e;o[n.id][r]&&o[n.id][r].length&&b.each(o[n.id][r],function(e,t){return a=!1!==t.apply(n,i||[])})}while(a&&t--)}return a}function D(n,i,a,r){r=r||function(e,t){return b(t.currentTarget)},b.each(a,function(e,t){e=b.isArray(a)?t:e,(s[n.id][t]||(s[n.id][t]=[])).push([i,e,r])})}function u(e,t,n){var i=j.imageType,a="svg"==i?j.imagePathSVG:j.imagePathPNG,r="";n&&(r=n.substr(1,n.length-2).replace(/_/g," ").replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}));var o="";return t.uc_base&&4<T?(o=t.uc_base,t=t.uc_output.toUpperCase()):o=t,e=e.replace("{name}",n||"").replace("{friendlyName}",r).replace("{img}",a+(T<2?o.toUpperCase():o)+"."+i).replace("{uni}",t),e=n?e.replace("{alt}",j.shortnameToUnicode(n)):e.replace("{alt}",j.convert(t))}function N(e,n,i){return e.replace(/:?\+?[\w_\-]+:?/g,function(e){e=":"+e.replace(/:$/,"").replace(/^:/,"")+":";var t=j.emojioneList[e];return t?4<T?u(n,t,e):(3<T&&(t=t.unicode),u(n,t[t.length-1],e)):i?"":e})}function A(e){var t,n;if(window.getSelection){if((t=window.getSelection()).getRangeAt&&t.rangeCount){(n=t.getRangeAt(0)).deleteContents();var i=document.createElement("div");i.innerHTML=e;for(var a,r,o=document.createDocumentFragment();a=i.firstChild;)r=o.appendChild(a);n.insertNode(o),r&&((n=n.cloneRange()).setStartAfter(r),n.collapse(!0),t.removeAllRanges(),t.addRange(n))}}else document.selection&&"Control"!=document.selection.type&&document.selection.createRange().pasteHTML(e)}function d(){return window.emojioneVersion||"3.1.2"}function I(e){return"object"==typeof e}function p(e){var t;return e.cacheBustParam?(t=e.cacheBustParam,I(e.jsEscapeMap)?"?v=1.2.4"===t?"2.0.0":"?v=2.0.1"===t?"2.1.0":"?v=2.1.1"===t?"2.1.1":"?v=2.1.2"===t?"2.1.2":"?v=2.1.3"===t?"2.1.3":"?v=2.1.4"===t?"2.1.4":"2.2.7":"1.5.2"):e.emojiVersion}function h(e){switch(e){case"1.5.2":return 0;case"2.0.0":return 1;case"2.1.0":case"2.1.1":return 2;case"2.1.2":return 3;case"2.1.3":case"2.1.4":case"2.2.7":return 4;case"3.0.1":case"3.0.2":case"3.0.3":case"3.0":return 5;default:return 6}}function n(){if(b.fn.emojioneArea&&b.fn.emojioneArea.defaults)return b.fn.emojioneArea.defaults;var e={attributes:{dir:"ltr",spellcheck:!1,autocomplete:"off",autocorrect:"off",autocapitalize:"off"},search:!0,placeholder:null,emojiPlaceholder:":smiley:",searchPlaceholder:"SEARCH",container:null,hideSource:!0,shortnames:!0,sprite:!0,pickerPosition:"top",filtersPosition:"top",searchPosition:"top",hidePickerOnBlur:!0,buttonTitle:"Use the TAB key to insert emoji faster",tones:!0,tonesStyle:"bullet",inline:null,saveEmojisAs:"unicode",shortcuts:!0,autocomplete:!0,autocompleteTones:!1,standalone:!1,useInternalCDN:!0,imageType:"png",recentEmojis:!0,textcomplete:{maxCount:15,placement:null}},t=h(j?p(j):d());return e.filters=4<t?{tones:{title:"Diversity",emoji:"open_hands raised_hands palms_up_together clap pray thumbsup thumbsdown punch fist left_facing_fist right_facing_fist fingers_crossed v metal love_you_gesture ok_hand point_left point_right point_up_2 point_down point_up raised_hand raised_back_of_hand hand_splayed vulcan wave call_me muscle middle_finger writing_hand selfie nail_care ear nose baby boy girl man woman blond-haired_woman blond-haired_man older_man older_woman man_with_chinese_cap woman_wearing_turban man_wearing_turban woman_police_officer man_police_officer woman_construction_worker man_construction_worker woman_guard man_guard woman_detective man_detective woman_health_worker man_health_worker woman_farmer man_farmer woman_cook man_cook woman_student man_student woman_singer man_singer woman_teacher man_teacher woman_factory_worker man_factory_worker woman_technologist man_technologist woman_office_worker man_office_worker woman_mechanic man_mechanic woman_scientist man_scientist woman_artist man_artist woman_firefighter man_firefighter woman_pilot man_pilot woman_astronaut man_astronaut woman_judge man_judge mrs_claus santa princess prince bride_with_veil man_in_tuxedo angel pregnant_woman breast_feeding woman_bowing man_bowing man_tipping_hand woman_tipping_hand man_gesturing_no woman_gesturing_no man_gesturing_ok woman_gesturing_ok man_raising_hand woman_raising_hand woman_facepalming man_facepalming woman_shrugging man_shrugging man_pouting woman_pouting man_frowning woman_frowning man_getting_haircut woman_getting_haircut man_getting_face_massage woman_getting_face_massage man_in_business_suit_levitating dancer man_dancing woman_walking man_walking woman_running man_running adult child older_adult bearded_person woman_with_headscarf woman_mage man_mage woman_fairy man_fairy woman_vampire man_vampire mermaid merman woman_elf man_elf snowboarder woman_lifting_weights man_lifting_weights woman_cartwheeling man_cartwheeling woman_bouncing_ball man_bouncing_ball woman_playing_handball man_playing_handball woman_golfing man_golfing woman_surfing man_surfing woman_swimming man_swimming woman_playing_water_polo man_playing_water_polo woman_rowing_boat man_rowing_boat horse_racing woman_biking man_biking woman_mountain_biking man_mountain_biking woman_juggling man_juggling woman_in_steamy_room man_in_steamy_room woman_climbing man_climbing woman_in_lotus_position man_in_lotus_position bath person_in_bed"},recent:{icon:"clock3",title:"Recent",emoji:""},smileys_people:{icon:"yum",title:"Smileys & People",emoji:"grinning smiley smile grin laughing sweat_smile joy rofl relaxed blush innocent slight_smile upside_down wink relieved crazy_face star_struck heart_eyes kissing_heart kissing kissing_smiling_eyes kissing_closed_eyes yum stuck_out_tongue_winking_eye stuck_out_tongue_closed_eyes stuck_out_tongue money_mouth hugging nerd sunglasses cowboy smirk unamused disappointed pensive worried face_with_raised_eyebrow face_with_monocle confused slight_frown frowning2 persevere confounded tired_face weary triumph angry rage face_with_symbols_over_mouth no_mouth neutral_face expressionless hushed frowning anguished open_mouth astonished dizzy_face exploding_head flushed scream fearful cold_sweat cry disappointed_relieved drooling_face sob sweat sleepy sleeping rolling_eyes thinking shushing_face face_with_hand_over_mouth lying_face grimacing zipper_mouth face_vomiting nauseated_face sneezing_face mask thermometer_face head_bandage smiling_imp imp japanese_ogre japanese_goblin poop ghost skull skull_crossbones alien space_invader robot jack_o_lantern clown smiley_cat smile_cat joy_cat heart_eyes_cat smirk_cat kissing_cat scream_cat crying_cat_face pouting_cat open_hands raised_hands palms_up_together clap pray handshake thumbsup thumbsdown punch fist left_facing_fist right_facing_fist fingers_crossed v metal love_you_gesture ok_hand point_left point_right point_up_2 point_down point_up raised_hand raised_back_of_hand hand_splayed vulcan wave call_me muscle middle_finger writing_hand selfie nail_care ring lipstick kiss lips tongue ear nose footprints eye eyes speaking_head bust_in_silhouette busts_in_silhouette baby boy girl man woman blond-haired_woman blond_haired_man older_man older_woman man_with_chinese_cap woman_wearing_turban man_wearing_turban woman_police_officer police_officer woman_construction_worker construction_worker woman_guard guard woman_detective detective woman_health_worker man_health_worker woman_farmer man_farmer woman_cook man_cook woman_student man_student woman_singer man_singer woman_teacher man_teacher woman_factory_worker man_factory_worker woman_technologist man_technologist woman_office_worker man_office_worker woman_mechanic man_mechanic woman_scientist man_scientist woman_artist man_artist woman_firefighter man_firefighter woman_pilot man_pilot woman_astronaut man_astronaut woman_judge man_judge mrs_claus santa princess prince bride_with_veil man_in_tuxedo angel pregnant_woman breast_feeding woman_bowing man_bowing woman_tipping_hand man_tipping_hand woman_gesturing_no man_gesturing_no woman_gesturing_ok man_gesturing_ok woman_raising_hand man_raising_hand woman_facepalming man_facepalming woman_shrugging man_shrugging woman_pouting man_pouting woman_frowning man_frowning woman_getting_haircut man_getting_haircut woman_getting_face_massage man_getting_face_massage man_in_business_suit_levitating dancer man_dancing women_with_bunny_ears_partying men_with_bunny_ears_partying woman_walking man_walking woman_running man_running couple two_women_holding_hands two_men_holding_hands couple_with_heart couple_ww couple_mm couplekiss kiss_ww kiss_mm family family_mwg family_mwgb family_mwbb family_mwgg family_wwb family_wwg family_wwgb family_wwbb family_wwgg family_mmb family_mmg family_mmgb family_mmbb family_mmgg family_woman_boy family_woman_girl family_woman_girl_boy family_woman_boy_boy family_woman_girl_girl family_man_boy family_man_girl family_man_girl_boy family_man_boy_boy family_man_girl_girl bearded_person woman_with_headscarf woman_mage man_mage woman_fairy man_fairy woman_vampire man_vampire mermaid merman woman_elf man_elf woman_genie man_genie woman_zombie man_zombie womans_clothes shirt jeans necktie dress bikini kimono high_heel sandal boot mans_shoe athletic_shoe womans_hat tophat mortar_board crown helmet_with_cross school_satchel pouch purse handbag briefcase eyeglasses dark_sunglasses closed_umbrella umbrella2 brain billed_cap scarf gloves coat socks "},animals_nature:{icon:"hamster",title:"Animals & Nature",emoji:"dog cat mouse hamster rabbit fox bear panda_face koala tiger lion_face cow pig pig_nose frog monkey_face see_no_evil hear_no_evil speak_no_evil monkey chicken penguin bird baby_chick hatching_chick hatched_chick duck eagle owl bat wolf boar horse unicorn bee bug butterfly snail shell beetle ant spider spider_web turtle snake lizard scorpion crab squid octopus shrimp tropical_fish fish blowfish dolphin shark whale whale2 crocodile leopard tiger2 water_buffalo ox cow2 deer dromedary_camel camel elephant rhino gorilla racehorse pig2 goat ram sheep dog2 poodle cat2 rooster turkey dove rabbit2 mouse2 rat chipmunk dragon giraffe zebra hedgehog sauropod t_rex cricket dragon_face feet cactus christmas_tree evergreen_tree deciduous_tree palm_tree seedling herb shamrock four_leaf_clover bamboo tanabata_tree leaves fallen_leaf maple_leaf mushroom ear_of_rice bouquet tulip rose wilted_rose sunflower blossom cherry_blossom hibiscus earth_americas earth_africa earth_asia full_moon waning_gibbous_moon last_quarter_moon waning_crescent_moon new_moon waxing_crescent_moon first_quarter_moon waxing_gibbous_moon new_moon_with_face full_moon_with_face sun_with_face first_quarter_moon_with_face last_quarter_moon_with_face crescent_moon dizzy star star2 sparkles zap fire boom comet sunny white_sun_small_cloud partly_sunny white_sun_cloud white_sun_rain_cloud rainbow cloud cloud_rain thunder_cloud_rain cloud_lightning cloud_snow snowman2 snowman snowflake wind_blowing_face dash cloud_tornado fog ocean droplet sweat_drops umbrella "},food_drink:{icon:"pizza",title:"Food & Drink",emoji:"green_apple apple pear tangerine lemon banana watermelon grapes strawberry melon cherries peach pineapple kiwi avocado tomato eggplant cucumber carrot corn hot_pepper potato sweet_potato chestnut peanuts honey_pot croissant bread french_bread cheese egg cooking bacon pancakes fried_shrimp poultry_leg meat_on_bone pizza hotdog hamburger fries stuffed_flatbread taco burrito salad shallow_pan_of_food spaghetti ramen stew fish_cake sushi bento curry rice_ball rice rice_cracker oden dango shaved_ice ice_cream icecream cake birthday custard lollipop candy chocolate_bar popcorn doughnut cookie milk baby_bottle coffee tea sake beer beers champagne_glass wine_glass tumbler_glass cocktail tropical_drink champagne spoon fork_and_knife fork_knife_plate dumpling fortune_cookie takeout_box chopsticks bowl_with_spoon cup_with_straw coconut broccoli pie pretzel cut_of_meat sandwich canned_food"},activity:{icon:"basketball",title:"Activity",emoji:"soccer basketball football baseball tennis volleyball rugby_football 8ball ping_pong badminton goal hockey field_hockey cricket_game golf bow_and_arrow fishing_pole_and_fish boxing_glove martial_arts_uniform ice_skate ski skier snowboarder woman_lifting_weights man_lifting_weights person_fencing women_wrestling men_wrestling woman_cartwheeling man_cartwheeling woman_bouncing_ball man_bouncing_ball woman_playing_handball man_playing_handball woman_golfing man_golfing woman_surfing man_surfing woman_swimming man_swimming woman_playing_water_polo man_playing_water_polo woman_rowing_boat man_rowing_boat horse_racing woman_biking man_biking woman_mountain_biking man_mountain_biking woman_in_steamy_room man_in_steamy_room woman_climbing man_climbing woman_in_lotus_position man_in_lotus_position running_shirt_with_sash medal military_medal first_place second_place third_place trophy rosette reminder_ribbon ticket tickets circus_tent woman_juggling man_juggling performing_arts art clapper microphone headphones musical_score musical_keyboard drum saxophone trumpet guitar violin game_die dart bowling video_game slot_machine sled curling_stone "},travel_places:{icon:"rocket",title:"Travel & Places",emoji:"red_car taxi blue_car bus trolleybus race_car police_car ambulance fire_engine minibus truck articulated_lorry tractor scooter bike motor_scooter motorcycle rotating_light oncoming_police_car oncoming_bus oncoming_automobile oncoming_taxi aerial_tramway mountain_cableway suspension_railway railway_car train mountain_railway monorail bullettrain_side bullettrain_front light_rail steam_locomotive train2 metro tram station helicopter airplane_small airplane airplane_departure airplane_arriving rocket satellite_orbital seat canoe sailboat motorboat speedboat cruise_ship ferry ship anchor construction fuelpump busstop vertical_traffic_light traffic_light map moyai statue_of_liberty fountain tokyo_tower european_castle japanese_castle stadium ferris_wheel roller_coaster carousel_horse beach_umbrella beach island mountain mountain_snow mount_fuji volcano desert camping tent railway_track motorway construction_site factory house house_with_garden homes house_abandoned office department_store post_office european_post_office hospital bank hotel convenience_store school love_hotel wedding classical_building church mosque synagogue kaaba shinto_shrine japan rice_scene park sunrise sunrise_over_mountains stars sparkler fireworks city_sunset city_dusk cityscape night_with_stars milky_way bridge_at_night foggy flying_saucer"},objects:{icon:"bulb",title:"Objects",emoji:"watch iphone calling computer keyboard desktop printer mouse_three_button trackball joystick compression minidisc floppy_disk cd dvd vhs camera camera_with_flash video_camera movie_camera projector film_frames telephone_receiver telephone pager fax tv radio microphone2 level_slider control_knobs stopwatch timer alarm_clock clock hourglass hourglass_flowing_sand satellite battery electric_plug bulb flashlight candle wastebasket oil money_with_wings dollar yen euro pound moneybag credit_card gem scales wrench hammer hammer_pick tools pick nut_and_bolt gear chains gun bomb knife dagger crossed_swords shield smoking coffin urn amphora crystal_ball prayer_beads barber alembic telescope microscope hole pill syringe thermometer toilet potable_water shower bathtub bath bellhop key key2 door couch bed sleeping_accommodation frame_photo shopping_bags shopping_cart gift balloon flags ribbon confetti_ball tada dolls izakaya_lantern wind_chime envelope envelope_with_arrow incoming_envelope e-mail love_letter inbox_tray outbox_tray package label mailbox_closed mailbox mailbox_with_mail mailbox_with_no_mail postbox postal_horn scroll page_with_curl page_facing_up bookmark_tabs bar_chart chart_with_upwards_trend chart_with_downwards_trend notepad_spiral calendar_spiral calendar date card_index card_box ballot_box file_cabinet clipboard file_folder open_file_folder dividers newspaper2 newspaper notebook notebook_with_decorative_cover ledger closed_book green_book blue_book orange_book books book bookmark link paperclip paperclips triangular_ruler straight_ruler pushpin round_pushpin scissors pen_ballpoint pen_fountain black_nib paintbrush crayon pencil pencil2 mag mag_right lock_with_ink_pen closed_lock_with_key lock unlock"},symbols:{icon:"heartpulse",title:"Symbols",emoji:"heart orange_heart yellow_heart green_heart blue_heart purple_heart black_heart broken_heart heart_exclamation two_hearts revolving_hearts heartbeat heartpulse sparkling_heart cupid gift_heart heart_decoration peace cross star_and_crescent om_symbol wheel_of_dharma star_of_david six_pointed_star menorah yin_yang orthodox_cross place_of_worship ophiuchus aries taurus gemini cancer leo virgo libra scorpius sagittarius capricorn aquarius pisces id atom accept radioactive biohazard mobile_phone_off vibration_mode u6709 u7121 u7533 u55b6 u6708 eight_pointed_black_star vs white_flower ideograph_advantage secret congratulations u5408 u6e80 u5272 u7981 a b ab cl o2 sos x o octagonal_sign no_entry name_badge no_entry_sign 100 anger hotsprings no_pedestrians do_not_litter no_bicycles non-potable_water underage no_mobile_phones no_smoking exclamation grey_exclamation question grey_question bangbang interrobang low_brightness high_brightness part_alternation_mark warning children_crossing trident fleur-de-lis beginner recycle white_check_mark u6307 chart sparkle eight_spoked_asterisk negative_squared_cross_mark globe_with_meridians diamond_shape_with_a_dot_inside m cyclone zzz atm wc wheelchair parking u7a7a sa passport_control customs baggage_claim left_luggage mens womens baby_symbol restroom put_litter_in_its_place cinema signal_strength koko symbols information_source abc abcd capital_abcd ng ok up cool new free zero one two three four five six seven eight nine keycap_ten 1234 hash asterisk arrow_forward pause_button play_pause stop_button record_button eject track_next track_previous fast_forward rewind arrow_double_up arrow_double_down arrow_backward arrow_up_small arrow_down_small arrow_right arrow_left arrow_up arrow_down arrow_upper_right arrow_lower_right arrow_lower_left arrow_upper_left arrow_up_down left_right_arrow arrow_right_hook leftwards_arrow_with_hook arrow_heading_up arrow_heading_down twisted_rightwards_arrows repeat repeat_one arrows_counterclockwise arrows_clockwise musical_note notes heavy_plus_sign heavy_minus_sign heavy_division_sign heavy_multiplication_x heavy_dollar_sign currency_exchange tm copyright registered wavy_dash curly_loop loop end back on top soon heavy_check_mark ballot_box_with_check radio_button white_circle black_circle red_circle blue_circle small_red_triangle small_red_triangle_down small_orange_diamond small_blue_diamond large_orange_diamond large_blue_diamond white_square_button black_square_button black_small_square white_small_square black_medium_small_square white_medium_small_square black_medium_square white_medium_square black_large_square white_large_square speaker mute sound loud_sound bell no_bell mega loudspeaker speech_left eye_in_speech_bubble speech_balloon thought_balloon anger_right spades clubs hearts diamonds black_joker flower_playing_cards mahjong clock1 clock2 clock3 clock4 clock5 clock6 clock7 clock8 clock9 clock10 clock11 clock12 clock130 clock230 clock330 clock430 clock530 clock630 clock730 clock830 clock930 clock1030 clock1130 clock1230"},flags:{icon:"flag_gb",title:"Flags",emoji:"flag_white flag_black checkered_flag triangular_flag_on_post rainbow_flag flag_af flag_ax flag_al flag_dz flag_as flag_ad flag_ao flag_ai flag_aq flag_ag flag_ar flag_am flag_aw flag_au flag_at flag_az flag_bs flag_bh flag_bd flag_bb flag_by flag_be flag_bz flag_bj flag_bm flag_bt flag_bo flag_ba flag_bw flag_br flag_io flag_vg flag_bn flag_bg flag_bf flag_bi flag_kh flag_cm flag_ca flag_ic flag_cv flag_bq flag_ky flag_cf flag_td flag_cl flag_cn flag_cx flag_cc flag_co flag_km flag_cg flag_cd flag_ck flag_cr flag_ci flag_hr flag_cu flag_cw flag_cy flag_cz flag_dk flag_dj flag_dm flag_do flag_ec flag_eg flag_sv flag_gq flag_er flag_ee flag_et flag_eu flag_fk flag_fo flag_fj flag_fi flag_fr flag_gf flag_pf flag_tf flag_ga flag_gm flag_ge flag_de flag_gh flag_gi flag_gr flag_gl flag_gd flag_gp flag_gu flag_gt flag_gg flag_gn flag_gw flag_gy flag_ht flag_hn flag_hk flag_hu flag_is flag_in flag_id flag_ir flag_iq flag_ie flag_im flag_il flag_it flag_jm flag_jp crossed_flags flag_je flag_jo flag_kz flag_ke flag_ki flag_xk flag_kw flag_kg flag_la flag_lv flag_lb flag_ls flag_lr flag_ly flag_li flag_lt flag_lu flag_mo flag_mk flag_mg flag_mw flag_my flag_mv flag_ml flag_mt flag_mh flag_mq flag_mr flag_mu flag_yt flag_mx flag_fm flag_md flag_mc flag_mn flag_me flag_ms flag_ma flag_mz flag_mm flag_na flag_nr flag_np flag_nl flag_nc flag_nz flag_ni flag_ne flag_ng flag_nu flag_nf flag_kp flag_mp flag_no flag_om flag_pk flag_pw flag_ps flag_pa flag_pg flag_py flag_pe flag_ph flag_pn flag_pl flag_pt flag_pr flag_qa flag_re flag_ro flag_ru flag_rw flag_ws flag_sm flag_st flag_sa flag_sn flag_rs flag_sc flag_sl flag_sg flag_sx flag_sk flag_si flag_gs flag_sb flag_so flag_za flag_kr flag_ss flag_es flag_lk flag_bl flag_sh flag_kn flag_lc flag_pm flag_vc flag_sd flag_sr flag_sz flag_se flag_ch flag_sy flag_tw flag_tj flag_tz flag_th flag_tl flag_tg flag_tk flag_to flag_tt flag_tn flag_tr flag_tm flag_tc flag_tv flag_vi flag_ug flag_ua flag_ae flag_gb flag_us flag_uy flag_uz flag_vu flag_va flag_ve flag_vn flag_wf flag_eh flag_ye flag_zm flag_zw flag_ac flag_ta flag_bv flag_hm flag_sj flag_um flag_ea flag_cp flag_dg flag_mf united_nations england scotland wales"}}:{tones:{title:"Diversity",emoji:"santa runner surfer swimmer lifter ear nose point_up_2 point_down point_left point_right punch wave ok_hand thumbsup thumbsdown clap open_hands boy girl man woman cop bride_with_veil person_with_blond_hair man_with_gua_pi_mao man_with_turban older_man grandma baby construction_worker princess angel information_desk_person guardsman dancer nail_care massage haircut muscle spy hand_splayed middle_finger vulcan no_good ok_woman bow raising_hand raised_hands person_frowning person_with_pouting_face pray rowboat bicyclist mountain_bicyclist walking bath metal point_up basketball_player fist raised_hand v writing_hand"},recent:{icon:"clock3",title:"Recent",emoji:""},smileys_people:{icon:"yum",title:"Smileys & People",emoji:"grinning grimacing grin joy smiley smile sweat_smile laughing innocent wink blush slight_smile upside_down relaxed yum relieved heart_eyes kissing_heart kissing kissing_smiling_eyes kissing_closed_eyes stuck_out_tongue_winking_eye stuck_out_tongue_closed_eyes stuck_out_tongue money_mouth nerd sunglasses hugging smirk no_mouth neutral_face expressionless unamused rolling_eyes thinking flushed disappointed worried angry rage pensive confused slight_frown frowning2 persevere confounded tired_face weary triumph open_mouth scream fearful cold_sweat hushed frowning anguished cry disappointed_relieved sleepy sweat sob dizzy_face astonished zipper_mouth mask thermometer_face head_bandage sleeping zzz poop smiling_imp imp japanese_ogre japanese_goblin skull ghost alien robot smiley_cat smile_cat joy_cat heart_eyes_cat smirk_cat kissing_cat scream_cat crying_cat_face pouting_cat raised_hands clap wave thumbsup thumbsdown punch fist v ok_hand raised_hand open_hands muscle pray point_up point_up_2 point_down point_left point_right middle_finger hand_splayed metal vulcan writing_hand nail_care lips tongue ear nose eye eyes bust_in_silhouette busts_in_silhouette speaking_head baby boy girl man woman person_with_blond_hair older_man older_woman man_with_gua_pi_mao man_with_turban cop construction_worker guardsman spy santa angel princess bride_with_veil walking runner dancer dancers couple two_men_holding_hands two_women_holding_hands bow information_desk_person no_good ok_woman raising_hand person_with_pouting_face person_frowning haircut massage couple_with_heart couple_ww couple_mm couplekiss kiss_ww kiss_mm family family_mwg family_mwgb family_mwbb family_mwgg family_wwb family_wwg family_wwgb family_wwbb family_wwgg family_mmb family_mmg family_mmgb family_mmbb family_mmgg womans_clothes shirt jeans necktie dress bikini kimono lipstick kiss footprints high_heel sandal boot mans_shoe athletic_shoe womans_hat tophat helmet_with_cross mortar_board crown school_satchel pouch purse handbag briefcase eyeglasses dark_sunglasses ring closed_umbrella"},animals_nature:{icon:"hamster",title:"Animals & Nature",emoji:"dog cat mouse hamster rabbit bear panda_face koala tiger lion_face cow pig pig_nose frog octopus monkey_face see_no_evil hear_no_evil speak_no_evil monkey chicken penguin bird baby_chick hatching_chick hatched_chick wolf boar horse unicorn bee bug snail beetle ant spider scorpion crab snake turtle tropical_fish fish blowfish dolphin whale whale2 crocodile leopard tiger2 water_buffalo ox cow2 dromedary_camel camel elephant goat ram sheep racehorse pig2 rat mouse2 rooster turkey dove dog2 poodle cat2 rabbit2 chipmunk feet dragon dragon_face cactus christmas_tree evergreen_tree deciduous_tree palm_tree seedling herb shamrock four_leaf_clover bamboo tanabata_tree leaves fallen_leaf maple_leaf ear_of_rice hibiscus sunflower rose tulip blossom cherry_blossom bouquet mushroom chestnut jack_o_lantern shell spider_web earth_americas earth_africa earth_asia full_moon waning_gibbous_moon last_quarter_moon waning_crescent_moon new_moon waxing_crescent_moon first_quarter_moon waxing_gibbous_moon new_moon_with_face full_moon_with_face first_quarter_moon_with_face last_quarter_moon_with_face sun_with_face crescent_moon star star2 dizzy sparkles comet sunny white_sun_small_cloud partly_sunny white_sun_cloud white_sun_rain_cloud cloud cloud_rain thunder_cloud_rain cloud_lightning zap fire boom snowflake cloud_snow snowman2 snowman wind_blowing_face dash cloud_tornado fog umbrella2 umbrella droplet sweat_drops ocean"},food_drink:{icon:"pizza",title:"Food & Drink",emoji:"green_apple apple pear tangerine lemon banana watermelon grapes strawberry melon cherries peach pineapple tomato eggplant hot_pepper corn sweet_potato honey_pot bread cheese poultry_leg meat_on_bone fried_shrimp egg hamburger fries hotdog pizza spaghetti taco burrito ramen stew fish_cake sushi bento curry rice_ball rice rice_cracker oden dango shaved_ice ice_cream icecream cake birthday custard candy lollipop chocolate_bar popcorn doughnut cookie beer beers wine_glass cocktail tropical_drink champagne sake tea coffee baby_bottle fork_and_knife fork_knife_plate"},activity:{icon:"basketball",title:"Activity",emoji:"soccer basketball football baseball tennis volleyball rugby_football 8ball golf golfer ping_pong badminton hockey field_hockey cricket ski skier snowboarder ice_skate bow_and_arrow fishing_pole_and_fish rowboat swimmer surfer bath basketball_player lifter bicyclist mountain_bicyclist horse_racing levitate trophy running_shirt_with_sash medal military_medal reminder_ribbon rosette ticket tickets performing_arts art circus_tent microphone headphones musical_score musical_keyboard saxophone trumpet guitar violin clapper video_game space_invader dart game_die slot_machine bowling"},travel_places:{icon:"rocket",title:"Travel & Places",emoji:"red_car taxi blue_car bus trolleybus race_car police_car ambulance fire_engine minibus truck articulated_lorry tractor motorcycle bike rotating_light oncoming_police_car oncoming_bus oncoming_automobile oncoming_taxi aerial_tramway mountain_cableway suspension_railway railway_car train monorail bullettrain_side bullettrain_front light_rail mountain_railway steam_locomotive train2 metro tram station helicopter airplane_small airplane airplane_departure airplane_arriving sailboat motorboat speedboat ferry cruise_ship rocket satellite_orbital seat anchor construction fuelpump busstop vertical_traffic_light traffic_light checkered_flag ship ferris_wheel roller_coaster carousel_horse construction_site foggy tokyo_tower factory fountain rice_scene mountain mountain_snow mount_fuji volcano japan camping tent park motorway railway_track sunrise sunrise_over_mountains desert beach island city_sunset city_dusk cityscape night_with_stars bridge_at_night milky_way stars sparkler fireworks rainbow homes european_castle japanese_castle stadium statue_of_liberty house house_with_garden house_abandoned office department_store post_office european_post_office hospital bank hotel convenience_store school love_hotel wedding classical_building church mosque synagogue kaaba shinto_shrine"},objects:{icon:"bulb",title:"Objects",emoji:"watch iphone calling computer keyboard desktop printer mouse_three_button trackball joystick compression minidisc floppy_disk cd dvd vhs camera camera_with_flash video_camera movie_camera projector film_frames telephone_receiver telephone pager fax tv radio microphone2 level_slider control_knobs stopwatch timer alarm_clock clock hourglass_flowing_sand hourglass satellite battery electric_plug bulb flashlight candle wastebasket oil money_with_wings dollar yen euro pound moneybag credit_card gem scales wrench hammer hammer_pick tools pick nut_and_bolt gear chains gun bomb knife dagger crossed_swords shield smoking skull_crossbones coffin urn amphora crystal_ball prayer_beads barber alembic telescope microscope hole pill syringe thermometer label bookmark toilet shower bathtub key key2 couch sleeping_accommodation bed door bellhop frame_photo map beach_umbrella moyai shopping_bags balloon flags ribbon gift confetti_ball tada dolls wind_chime crossed_flags izakaya_lantern envelope envelope_with_arrow incoming_envelope e-mail love_letter postbox mailbox_closed mailbox mailbox_with_mail mailbox_with_no_mail package postal_horn inbox_tray outbox_tray scroll page_with_curl bookmark_tabs bar_chart chart_with_upwards_trend chart_with_downwards_trend page_facing_up date calendar calendar_spiral card_index card_box ballot_box file_cabinet clipboard notepad_spiral file_folder open_file_folder dividers newspaper2 newspaper notebook closed_book green_book blue_book orange_book notebook_with_decorative_cover ledger books book link paperclip paperclips scissors triangular_ruler straight_ruler pushpin round_pushpin triangular_flag_on_post flag_white flag_black closed_lock_with_key lock unlock lock_with_ink_pen pen_ballpoint pen_fountain black_nib pencil pencil2 crayon paintbrush mag mag_right"},symbols:{icon:"heartpulse",title:"Symbols",emoji:"heart yellow_heart green_heart blue_heart purple_heart broken_heart heart_exclamation two_hearts revolving_hearts heartbeat heartpulse sparkling_heart cupid gift_heart heart_decoration peace cross star_and_crescent om_symbol wheel_of_dharma star_of_david six_pointed_star menorah yin_yang orthodox_cross place_of_worship ophiuchus aries taurus gemini cancer leo virgo libra scorpius sagittarius capricorn aquarius pisces id atom u7a7a u5272 radioactive biohazard mobile_phone_off vibration_mode u6709 u7121 u7533 u55b6 u6708 eight_pointed_black_star vs accept white_flower ideograph_advantage secret congratulations u5408 u6e80 u7981 a b ab cl o2 sos no_entry name_badge no_entry_sign x o anger hotsprings no_pedestrians do_not_litter no_bicycles non-potable_water underage no_mobile_phones exclamation grey_exclamation question grey_question bangbang interrobang 100 low_brightness high_brightness trident fleur-de-lis part_alternation_mark warning children_crossing beginner recycle u6307 chart sparkle eight_spoked_asterisk negative_squared_cross_mark white_check_mark diamond_shape_with_a_dot_inside cyclone loop globe_with_meridians m atm sa passport_control customs baggage_claim left_luggage wheelchair no_smoking wc parking potable_water mens womens baby_symbol restroom put_litter_in_its_place cinema signal_strength koko ng ok up cool new free zero one two three four five six seven eight nine ten 1234 arrow_forward pause_button play_pause stop_button record_button track_next track_previous fast_forward rewind twisted_rightwards_arrows repeat repeat_one arrow_backward arrow_up_small arrow_down_small arrow_double_up arrow_double_down arrow_right arrow_left arrow_up arrow_down arrow_upper_right arrow_lower_right arrow_lower_left arrow_upper_left arrow_up_down left_right_arrow arrows_counterclockwise arrow_right_hook leftwards_arrow_with_hook arrow_heading_up arrow_heading_down hash asterisk information_source abc abcd capital_abcd symbols musical_note notes wavy_dash curly_loop heavy_check_mark arrows_clockwise heavy_plus_sign heavy_minus_sign heavy_division_sign heavy_multiplication_x heavy_dollar_sign currency_exchange copyright registered tm end back on top soon ballot_box_with_check radio_button white_circle black_circle red_circle large_blue_circle small_orange_diamond small_blue_diamond large_orange_diamond large_blue_diamond small_red_triangle black_small_square white_small_square black_large_square white_large_square small_red_triangle_down black_medium_square white_medium_square black_medium_small_square white_medium_small_square black_square_button white_square_button speaker sound loud_sound mute mega loudspeaker bell no_bell black_joker mahjong spades clubs hearts diamonds flower_playing_cards thought_balloon anger_right speech_balloon clock1 clock2 clock3 clock4 clock5 clock6 clock7 clock8 clock9 clock10 clock11 clock12 clock130 clock230 clock330 clock430 clock530 clock630 clock730 clock830 clock930 clock1030 clock1130 clock1230 eye_in_speech_bubble"},flags:{icon:"flag_gb",title:"Flags",emoji:"ac af al dz ad ao ai ag ar am aw au at az bs bh bd bb by be bz bj bm bt bo ba bw br bn bg bf bi cv kh cm ca ky cf td flag_cl cn co km cg flag_cd cr hr cu cy cz dk dj dm do ec eg sv gq er ee et fk fo fj fi fr pf ga gm ge de gh gi gr gl gd gu gt gn gw gy ht hn hk hu is in flag_id ir iq ie il it ci jm jp je jo kz ke ki xk kw kg la lv lb ls lr ly li lt lu mo mk mg mw my mv ml mt mh mr mu mx fm md mc mn me ms ma mz mm na nr np nl nc nz ni ne flag_ng nu kp no om pk pw ps pa pg py pe ph pl pt pr qa ro ru rw sh kn lc vc ws sm st flag_sa sn rs sc sl sg sk si sb so za kr es lk sd sr sz se ch sy tw tj tz th tl tg to tt tn tr flag_tm flag_tm ug ua ae gb us vi uy uz vu va ve vn wf eh ye zm zw re ax ta io bq cx cc gg im yt nf pn bl pm gs tk bv hm sj um ic ea cp dg as aq vg ck cw eu gf tf gp mq mp sx ss tc "}},e}function R(e){var i,t=n();return e&&e.filters&&(i=t.filters,b.each(e.filters,function(n,e){I(e)&&!b.isEmptyObject(e)?b.each(e,function(e,t){i[n][e]=t}):delete i[n]}),e.filters=i),b.extend({},t,e)}function f(e,n){return e.replace(l,function(e){var t=j[0===T?"jsecapeMap":"jsEscapeMap"];return void 0!==e&&e in t?u(n,t[e],j.toShort(e)):e})}function M(e,t){return e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/`/g,"&#x60;").replace(/(?:\r\n|\r|\n)/g,"\n").replace(/(\n+)/g,"<div>$1</div>").replace(/\n/g,"<br/>").replace(/<br\/><\/div>/g,"</div>"),f(e=t.shortnames?j.shortnameToUnicode(e):e,t.emojiTemplate).replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/  /g,"&nbsp;&nbsp;")}function P(e,t){switch(e=e.replace(/&#10;/g,"\n").replace(/&#09;/g,"\t").replace(/<img[^>]*alt="([^"]+)"[^>]*>/gi,"$1").replace(/\n|\r/g,"").replace(/<br[^>]*>/gi,"\n").replace(/(?:<(?:div|p|ol|ul|li|pre|code|object)[^>]*>)+/gi,"<div>").replace(/(?:<\/(?:div|p|ol|ul|li|pre|code|object)>)+/gi,"</div>").replace(/\n<div><\/div>/gi,"\n").replace(/<div><\/div>\n/gi,"\n").replace(/(?:<div>)+<\/div>/gi,"\n").replace(/([^\n])<\/div><div>/gi,"$1\n").replace(/(?:<\/div>)+/gi,"</div>").replace(/([^\n])<\/div>([^\n])/gi,"$1\n$2").replace(/<\/div>/gi,"").replace(/([^\n])<div>/gi,"$1\n").replace(/\n<div>/gi,"\n").replace(/<div>\n/gi,"\n\n").replace(/<(?:[^>]+)?>/g,"").replace(new RegExp(E,"g"),"").replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&#x60;/g,"`").replace(/&#60;/g,"<").replace(/&#62;/g,">").replace(/&amp;/g,"&"),t.saveEmojisAs){case"image":e=f(e,t.emojiTemplate);break;case"shortname":e=j.toShort(e)}return e}function O(){var e=this.editor[0].offsetWidth-this.editor[0].clientWidth,t=parseInt(this.button.css("marginRight"));t!==e&&(this.button.css({marginRight:e}),this.floatingPicker&&this.picker.css({right:parseInt(this.picker.css("right"))-t+e}))}function L(){var n,i;!this.sprite&&this.lasyEmoji[0]&&this.lasyEmoji.eq(0).is(".lazy-emoji")&&(n=this.picker.offset().top,i=n+this.picker.height()+20,this.lasyEmoji.each(function(){var e=b(this),t=e.offset().top;if(n<t&&t<i&&e.attr("src",e.data("src")).removeClass("lazy-emoji"),i<t)return!1}),this.lasyEmoji=this.lasyEmoji.filter(".lazy-emoji"))}function q(e,t){return(t?"":".")+S+(e?"-"+e:"")}function z(e){var n=b("<div/>",I(e)?e:{class:q(e,!0)});return b.each(c.call(arguments).slice(1),function(e,t){(t=b.isFunction(t)?t.call(n):t)&&b(t).appendTo(n)}),n}function F(){return localStorage.getItem("recent_emojis")||""}function U(e,t){var n,i,a,r=F();e.recent&&e.recent===r&&!t||(r.length?((a=e.scrollArea.is(".skinnable"))||(n=e.scrollArea.scrollTop(),t&&e.recentCategory.show(),i=e.recentCategory.is(":visible")?e.recentCategory.height():0),t=N(r,e.emojiBtnTemplate,!0).split("|").join(""),e.recentCategory.children(".emojibtn").remove(),b(t).insertAfter(e.recentCategory.children(".emojionearea-category-title")),e.recentCategory.children(".emojibtn").on("click",function(){e.trigger("emojibtn.click",b(this))}),e.recentFilter.show(),a||(e.recentCategory.show(),i!==(a=e.recentCategory.height())&&e.scrollArea.scrollTop(n+a-i))):(e.recentFilter.hasClass("active")&&e.recentFilter.removeClass("active").next().addClass("active"),e.recentCategory.hide(),e.recentFilter.hide()),e.recent=r)}function m(s,t,r){s.options=r=R(r),s.sprite=r.sprite&&T<3,s.inline=null===r.inline?t.is("INPUT"):r.inline,s.shortnames=r.shortnames,s.saveEmojisAs=r.saveEmojisAs,s.standalone=r.standalone,s.emojiTemplate='<img alt="{alt}" class="emojione'+(s.sprite?'-{uni}" src="'+C+'"/>':'emoji" src="{img}"/>'),s.emojiTemplateAlt=s.sprite?'<i class="emojione-{uni}"/>':'<img class="emojioneemoji" src="{img}"/>',s.emojiBtnTemplate='<i class="emojibtn" role="button" data-name="{name}" title="{friendlyName}">'+s.emojiTemplateAlt+"</i>",s.recentEmojis=r.recentEmojis&&function(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(e){return!1}}();var e=r.pickerPosition;s.floatingPicker="top"===e||"bottom"===e,((s.source=t).is(":disabled")||t.is(".disabled"))&&s.disable();var a,n,o,l,c,i,u,d,p,h,f=t.is("TEXTAREA")||t.is("INPUT")?"val":"text",m=z("tones",r.tones?function(){this.addClass(q("tones-"+r.tonesStyle,!0));for(var e=0;e<=5;e++)this.append(b("<i/>",{class:"btn-tone btn-tone-"+e+(e?"":" active"),"data-skin":e,role:"button"}))}:null),_=z({class:S+(s.standalone?" "+S+"-standalone ":" ")+(t.attr("class")||""),role:"application"},a=s.editor=z("editor").attr({contenteditable:!s.standalone,placeholder:r.placeholder||t.data("placeholder")||t.attr("placeholder")||"",tabindex:0}),n=s.button=z("button",z("button-open"),z("button-close")).attr("title",r.buttonTitle),o=s.picker=z("picker",z("wrapper",l=z("filters"),r.search?i=z("search-panel",z("search",r.search?function(){s.search=b("<input/>",{placeholder:r.searchPlaceholder||"",type:"text",class:"search"}),this.append(s.search)}:null),m):null,h=z("scroll-area",r.tones&&!r.search?z("tones-panel",m):null,u=z("emojis-list")))).addClass(q("picker-position-"+r.pickerPosition,!0)).addClass(q("filters-position-"+r.filtersPosition,!0)).addClass(q("search-position-"+r.searchPosition,!0)).addClass("hidden"));r.search&&i.addClass(q("with-search",!0)),s.searchSel=null,a.data(t.data()),b.each(r.attributes,function(e,t){a.attr(e,t)});var g=z("category-block").attr({"data-tone":0}).prependTo(u);b.each(r.filters,function(e,t){var n=0;if("recent"!==e||s.recentEmojis){if("tones"!==e)b("<i/>",{class:q("filter",!0)+" "+q("filter-"+e,!0),"data-filter":e,title:t.title}).wrapInner(N(t.icon,s.emojiTemplateAlt)).appendTo(l);else{if(!r.tones)return;n=5}do{var i=t.emoji.replace(/[\s,;]+/g,"|"),a=0===n?z("category").attr({name:e,"data-tone":n}).appendTo(g):z("category-block").attr({name:e,"data-tone":n}).appendTo(u)}while(0<n&&(a.hide(),i=i.split("|").join("_tone"+n+"|")+"_tone"+n),i=N(i="recent"===e?F():i,s.sprite?'<i class="emojibtn" role="button" data-name="{name}" title="{friendlyName}"><i class="emojione-{uni}"></i></i>':'<i class="emojibtn" role="button" data-name="{name}" title="{friendlyName}"><img class="emojioneemoji lazy-emoji" data-src="{img}"/></i>',!0).split("|").join(""),a.html(i),b('<div class="emojionearea-category-title"/>').text(t.title).prependTo(a),0<--n)}}),r.filters=null,s.sprite||(s.lasyEmoji=u.find(".lazy-emoji")),(c=l.find(q("filter"))).eq(0).addClass("active"),p=u.find(q("category-block")),d=u.find(q("category")),s.recentFilter=c.filter('[data-filter="recent"]'),s.recentCategory=d.filter("[name=recent]"),s.scrollArea=h,r.container?b(r.container).wrapInner(_):_.insertAfter(t),r.hideSource&&t.hide(),s.setText(t[f]()),t[f](s.getText()),O.apply(s),s.standalone&&!s.getText().length&&(v=b(t).data("emoji-placeholder")||r.emojiPlaceholder,s.setText(v),a.addClass("has-placeholder")),D(s,u.find(".emojibtn"),{click:"emojibtn.click"}),D(s,window,{resize:"!resize"}),D(s,m.children(),{click:"tone.click"}),D(s,[o,n],{mousedown:"!mousedown"},a),D(s,n,{click:"button.click"}),D(s,a,{paste:"!paste"},a),D(s,a,["focus","blur"],function(){return!s.stayFocused&&a}),D(s,o,{mousedown:"picker.mousedown",mouseup:"picker.mouseup",click:"picker.click",keyup:"picker.keyup",keydown:"picker.keydown",keypress:"picker.keypress"}),D(s,a,["mousedown","mouseup","click","keyup","keydown","keypress"]),D(s,o.find(".emojionearea-filter"),{click:"filter.click"}),D(s,t,{change:"source.change"}),r.search&&D(s,s.search,{keyup:"search.keypress",focus:"search.focus",blur:"search.blur"});var y,v,w=!1;h.on("scroll",function(){var n,i,e;w||(L.call(s),h.is(":not(.skinnable)")&&(n=d.eq(0),i=h.offset().top,d.each(function(e,t){return!(10<=b(t).offset().top-i)&&void(n=b(t))}),(e=c.filter('[data-filter="'+n.attr("name")+'"]'))[0]&&!e.is(".active")&&(c.removeClass("active"),e.addClass("active"))))}),s.on("@filter.click",function(e){var t=e.is(".active");if(h.is(".skinnable")){if(t)return;m.children().eq(0).click()}w=!0,t||(c.filter(".active").removeClass("active"),e.addClass("active"));var n=d.filter('[name="'+e.data("filter")+'"]').offset().top,t=h.scrollTop(),e=h.offset().top;h.stop().animate({scrollTop:n+t-e-2},200,"swing",function(){L.call(s),w=!1})}).on("@picker.show",function(){s.recentEmojis&&U(s),L.call(s)}).on("@tone.click",function(e){m.children().removeClass("active");e=e.addClass("active").data("skin");e?(h.addClass("skinnable"),p.hide().filter("[data-tone="+e+"]").show(),c.removeClass("active")):(h.removeClass("skinnable"),p.hide().filter("[data-tone=0]").show(),c.eq(0).click()),L.call(s),r.search&&s.trigger("search.keypress")}).on("@button.click",function(e){e.is(".active")?s.hidePicker():(s.showPicker(),s.searchSel=null)}).on("@!paste",function(r,e){function t(e){var t="caret-"+(new Date).getTime(),n=M(e,s);A(n),A('<i id="'+t+'"></i>'),r.scrollTop(o);var i=b("#"+t),a=i.offset().top-r.offset().top;((t=r.height())<=o+a||a<o)&&r.scrollTop(o+a-2*t/3),i.remove(),s.stayFocused=!1,O.apply(s),Q(s,"paste",[r,e,n])}if(e.originalEvent.clipboardData){var n=e.originalEvent.clipboardData.getData("text/plain");return t(n),e.preventDefault?e.preventDefault():e.stop(),e.returnValue=!1,e.stopPropagation(),!1}s.stayFocused=!0,A("<span>"+E+"</span>");var i=k(r[0]),o=r.scrollTop(),a=b("<div/>",{contenteditable:!0}).css({position:"fixed",left:"-999px",width:"1px",height:"1px",top:"20px",overflow:"hidden"}).appendTo(b("BODY")).focus();window.setTimeout(function(){r.focus(),x(r[0],i);var e=P(a.html().replace(/\r\n|\n|\r/g,"<br>"),s);a.remove(),t(e)},200)}).on("@emojibtn.click",function(e){var t,n,i;a.removeClass("has-placeholder"),null!==s.searchSel&&(a.focus(),x(a[0],s.searchSel),s.searchSel=null),s.standalone?(a.html(N(e.data("name"),s.emojiTemplate)),s.trigger("blur")):(k(a[0]),A(N(e.data("name"),s.emojiTemplate))),s.recentEmojis&&(t=s,n=e.data("name"),i=F().split("|"),-1!==(e=i.indexOf(n))&&i.splice(e,1),i.unshift(n),9<i.length&&i.pop(),localStorage.setItem("recent_emojis",i.join("|")),U(t)),s.trigger("search.keypress")}).on("@!resize @keyup @emojibtn.click",O).on("@!mousedown",function(e,t){return b(t.target).hasClass("search")?(s.stayFocused=!0,null===s.searchSel&&(s.searchSel=k(e[0]))):(_.is(".focused")||e.trigger("focus"),t.preventDefault()),!1}).on("@change",function(){var e=s.editor.html().replace(/<\/?(?:div|span|p)[^>]*>/gi,"");e.length&&!/^<br[^>]*>$/i.test(e)||s.editor.html(s.content=""),t[f](s.getText())}).on("@source.change",function(){s.setText(t[f]()),Q("change")}).on("@focus",function(){_.addClass("focused")}).on("@blur",function(){_.removeClass("focused"),r.hidePickerOnBlur&&s.hidePicker();var e=s.editor.html();s.content!==e?(s.content=e,Q(s,"change",[s.editor]),t.trigger("blur").trigger("change")):t.trigger("blur"),r.search&&(s.search.val(""),s.trigger("search.keypress",!0))}),r.search&&s.on("@search.focus",function(){s.stayFocused=!0,s.search.addClass("focused")}).on("@search.keypress",function(e){var i=o.find(".emojionearea-filter"),n=r.tones?m.find("i.active").data("skin"):0,a=s.search.val().replace(/ /g,"_").replace(/"/g,'\\"');a&&a.length?(s.recentFilter.hasClass("active")&&s.recentFilter.removeClass("active").next().addClass("active"),s.recentCategory.hide(),s.recentFilter.hide(),p.each(function(){function e(e,t){var n=e.find('.emojibtn[data-name*="'+a+'"]');0===n.length?(e.data("tone")===t&&e.hide(),i.filter('[data-filter="'+e.attr("name")+'"]').hide()):(e.find('.emojibtn:not([data-name*="'+a+'"])').hide(),n.show(),e.data("tone")===t&&e.show(),i.filter('[data-filter="'+e.attr("name")+'"]').show())}var t=b(this);0===t.data("tone")?d.filter(':not([name="recent"])').each(function(){e(b(this),0)}):e(t,n)}),w?L.call(s):h.trigger("scroll")):(U(s,!0),p.filter('[data-tone="'+m.find("i.active").data("skin")+'"]:not([name="recent"])').show(),b(".emojibtn",p).show(),i.show(),L.call(s))}).on("@search.blur",function(){s.stayFocused=!1,s.search.removeClass("focused"),s.trigger("blur")}),r.shortcuts&&s.on("@keydown",function(e,t){t.ctrlKey||(9==t.which?(t.preventDefault(),n.click()):27==t.which&&(t.preventDefault(),n.is(".active")&&s.hidePicker()))}),I(r.events)&&!b.isEmptyObject(r.events)&&b.each(r.events,function(e,t){s.on(e.replace(/_/g,"."),t)}),r.autocomplete&&(y=function(){var e={maxCount:r.textcomplete.maxCount,placement:r.textcomplete.placement};r.shortcuts&&(e.onKeydown=function(e,t){if(!e.ctrlKey&&13==e.which)return t.KEY_ENTER});var n=b.map(j.emojioneList,function(e,t){return!r.autocompleteTones&&/_tone[12345]/.test(t)?null:t});n.sort(),a.textcomplete([{id:S,match:/\B(:[\-+\w]*)$/,search:function(t,e){e(b.map(n,function(e){return 0===e.indexOf(t)?e:null}))},template:function(e){return N(e,s.emojiTemplate)+" "+e.replace(/:/g,"")},replace:function(e){return N(e,s.emojiTemplate)},cache:!0,index:1}],e),r.textcomplete.placement&&"static"==b(a.data("textComplete").option.appendTo).css("position")&&b(a.data("textComplete").option.appendTo).css("position","relative")},v=function(){var e;s.disabled?s.on("enabled",e=function(){s.off("enabled",e),y()}):y()},b.fn.textcomplete?v():b.ajax({url:"https://cdn.rawgit.com/yuku-t/jquery-textcomplete/v1.3.4/dist/jquery.textcomplete.js",dataType:"script",cache:!0,success:v})),s.inline&&(_.addClass(q("inline",!0)),s.on("@keydown",function(e,t){13==t.which&&t.preventDefault()})),/firefox/i.test(navigator.userAgent)&&document.execCommand ("enableObjectResizing",!1,!1),s.isReady=!0,s.trigger("onLoad",a),s.trigger("ready",a)}window.getSelection&&document.createRange?(k=function(e){var t=window.getSelection&&window.getSelection();if(t&&0<t.rangeCount)return t.getRangeAt(0)},x=function(e,t){var n=document.createRange();n.setStart(t.startContainer,t.startOffset),n.setEnd(t.endContainer,t.endOffset),(t=window.getSelection()).removeAllRanges(),t.addRange(n)}):document.selection&&document.body.createTextRange&&(k=function(e){return document.selection.createRange()},x=function(e,t){var n=document.body.createTextRange();n.moveToElementText(e),n.setStart(t.startContanier,t.startOffset),n.setEnd(t.endContainer,t.endOffset),n.select()});var _={defaultBase:"https://cdnjs.cloudflare.com/ajax/libs/emojione/",defaultBase3:"https://cdn.jsdelivr.net/",base:null,isLoading:!1};function g(t){var e,n=d();t=R(t),_.isLoading||(!j||h(p(j))<2?(_.isLoading=!0,e=5<h(n)?_.defaultBase3+"npm/emojione@"+n:4<h(n)?_.defaultBase3+"emojione/"+n:_.defaultBase+"/"+n,b.ajax({url:e+"/lib/js/emojione.min.js",dataType:"script",cache:!0,success:function(){var e;for(j=window.emojione,n=p(j),e=4<(T=h(n))?(_.base=_.defaultBase3+"emojione/assets/"+n,_.base+"/sprites/emojione-sprite-"+j.emojiSize+".css"):(_.base=_.defaultBase+n+"/assets",_.base+"/sprites/emojione.sprites.css"),t.sprite&&(document.createStyleSheet?document.createStyleSheet(e):b("<link/>",{rel:"stylesheet",href:e}).appendTo("head"));a.length;)a.shift().call();_.isLoading=!1}})):(n=p(j),T=h(n),_.base=4<T?_.defaultBase3+"emojione/assets/"+n:_.defaultBase+n+"/assets")),r(function(){var e="";t.useInternalCDN&&(4<T&&(e=j.emojiSize+"/"),j.imagePathPNG=_.base+"/png/"+e,j.imagePathSVG=_.base+"/svg/"+e,j.imagePathSVGSprites=_.base+"/sprites/emojione.sprites.svg",j.imageType=t.imageType),4<h(n)?(l=j.regUnicode,j.imageType=t.imageType||"png"):l=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|("+j.unicodeRegexp+")","gi")})}function t(e,t){var n=this;g(t),o[n.id=++i]={},s[n.id]={},r(function(){m(n,e,t)})}t.prototype.on=function(e,n){var i;return e&&b.isFunction(n)&&(i=this,b.each(e.toLowerCase().split(" "),function(e,t){!function(i,a){a=a.replace(/^@/,"");var e=i.id;s[e][a]&&(b.each(s[e][a],function(e,n){b.each(b.isArray(n[0])?n[0]:[n[0]],function(e,t){b(t).on(n[1],function(){var e=c.call(arguments),t=b.isFunction(n[2])?n[2].apply(i,[a].concat(e)):n[2];t&&Q(i,a,[t].concat(e))})})}),s[e][a]=null)}(i,t),(o[i.id][t]||(o[i.id][t]=[])).push(n)})),this},t.prototype.off=function(e,i){var a;return e&&(a=this.id,b.each(e.toLowerCase().replace(/_/g,".").split(" "),function(e,n){o[a][n]&&!/^@/.test(n)&&(i?b.each(o[a][n],function(e,t){t===i&&o[a][n].splice(e,1)}):o[a][n]=[])})),this},t.prototype.trigger=function(){var e=c.call(arguments),t=[this].concat(e.slice(0,1));return t.push(e.slice(1)),Q.apply(this,t)},t.prototype.setFocus=function(){var e=this;return r(function(){e.editor.focus()}),e},t.prototype.setText=function(e){var t=this;return r(function(){t.editor.html(M(e,t)),t.content=t.editor.html(),Q(t,"change",[t.editor]),O.apply(t)}),t},t.prototype.getText=function(){return P(this.editor.html(),this)},t.prototype.showPicker=function(){var e=this;return e._sh_timer&&window.clearTimeout(e._sh_timer),e.picker.removeClass("hidden"),e._sh_timer=window.setTimeout(function(){e.button.addClass("active")},50),Q(e,"picker.show",[e.picker]),e},t.prototype.hidePicker=function(){var e=this;return e._sh_timer&&window.clearTimeout(e._sh_timer),e.button.removeClass("active"),e._sh_timer=window.setTimeout(function(){e.picker.addClass("hidden")},500),Q(e,"picker.hide",[e.picker]),e},t.prototype.enable=function(){function e(){t.disabled=!1,t.editor.prop("contenteditable",!0),t.button.show();var e=t[t.standalone?"button":"editor"];e.parent().removeClass("emojionearea-disable"),Q(t,"enabled",[e])}var t=this;return t.isReady?e():t.on("ready",e),t},t.prototype.disable=function(){var t=this;t.disabled=!0;function e(){t.editor.prop("contenteditable",!1),t.hidePicker(),t.button.hide();var e=t[t.standalone?"button":"editor"];e.parent().addClass("emojionearea-disable"),Q(t,"disabled",[e])}return t.isReady?e():t.on("ready",e),t},b.fn.emojioneArea=function(e){return this.each(function(){return this.emojioneArea||(b.data(this,"emojioneArea",this.emojioneArea=new t(b(this),e)),this.emojioneArea)})},b.fn.emojioneArea.defaults=n(),b.fn.emojioneAreaText=function(e){e=R(e);var t=this,n={shortnames:!e||void 0===e.shortnames||e.shortnames,emojiTemplate:'<img alt="{alt}" class="emojione'+(e&&e.sprite&&T<3?'-{uni}" src="'+C:'emoji" src="{img}')+'"/>'};return g(e),r(function(){t.each(function(){var e=b(this);return e.hasClass("emojionearea-text")||e.addClass("emojionearea-text").html(M(e.is("TEXTAREA")||e.is("INPUT")?e.val():e.text(),n)),e})}),this}},window),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(r){"use strict";function e(e){window.console&&window.console.warn&&window.console.warn("FeatherlightGallery: "+e)}if(void 0===r)return e("Too much lightness, Featherlight needs jQuery.");if(!r.featherlight)return e("Load the featherlight plugin before the gallery plugin");var t="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,n=r.event&&r.event.special.swipeleft&&r,i=window.Hammer&&function(e){e=new window.Hammer.Manager(e[0]);return e.add(new window.Hammer.Swipe),e},a=t&&(n||i);t&&!a&&e("No compatible swipe library detected; one must be included before featherlightGallery for swipe motions to navigate the galleries.");var o={afterClose:function(e,t){return this.$instance.off("next."+this.namespace+" previous."+this.namespace),this._swiper&&(this._swiper.off("swipeleft",this._swipeleft).off("swiperight",this._swiperight),this._swiper=null),e(t)},beforeOpen:function(e,t){var n=this;return n.$instance.on("next."+n.namespace+" previous."+n.namespace,function(e){e="next"===e.type?1:-1;n.navigateTo(n.currentNavigation()+e)}),a&&(n._swiper=a(n.$instance).on("swipeleft",n._swipeleft=function(){n.$instance.trigger("next")}).on("swiperight",n._swiperight=function(){n.$instance.trigger("previous")}),n.$instance.addClass(this.namespace+"-swipe-aware",a)),n.$instance.find("."+n.namespace+"-content").append(n.createNavigation("previous")).append(n.createNavigation("next")),e(t)},beforeContent:function(e,t){var n=this.currentNavigation(),i=this.slides().length;return this.$instance.toggleClass(this.namespace+"-first-slide",0===n).toggleClass(this.namespace+"-last-slide",n===i-1),e(t)},onKeyUp:function(e,t){var n={37:"previous",39:"next"}[t.keyCode];return n?(this.$instance.trigger(n),!1):e(t)}};function s(e,t){if(!(this instanceof s)){t=new s(r.extend({$source:e,$currentTarget:e.first()},t));return t.open(),t}r.featherlight.apply(this,arguments),this.chainCallbacks(o)}r.featherlight.extend(s,{autoBind:"[data-featherlight-gallery]"}),r.extend(s.prototype,{previousIcon:"&#9664;",nextIcon:"&#9654;",galleryFadeIn:100,galleryFadeOut:300,slides:function(){return this.filter?this.$source.find(this.filter):this.$source},images:function(){return e("images is deprecated, please use slides instead"),this.slides()},currentNavigation:function(){return this.slides().index(this.$currentTarget)},navigateTo:function(e){var t=this,n=t.slides(),i=n.length,a=t.$instance.find("."+t.namespace+"-inner");return e=(e%i+i)%i,this.$instance.addClass(this.namespace+"-loading"),t.$currentTarget=n.eq(e),t.beforeContent(),r.when(t.getContent(),a.fadeTo(t.galleryFadeOut,.2)).always(function(e){t.setContent(e),t.afterContent(),e.fadeTo(t.galleryFadeIn,1)})},createNavigation:function(t){var n=this;return r('<span title="'+t+'" class="'+this.namespace+"-"+t+'"><span>'+this[t+"Icon"]+"</span></span>").click(function(e){r(this).trigger(t+"."+n.namespace),e.preventDefault()})}}),r.featherlightGallery=s,r.fn.featherlightGallery=function(e){return s.attach(this,e),this},r(document).ready(function(){s._onReady()})}),function(t){"function"==typeof define&&define.amd?define(["jquery"],function(e){t(e,window,document)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window,document):t(jQuery,window,document)}(function(s,r,e,o){"use strict";var l="intlTelInput",n=1,i={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customPlaceholder:null,dropdownContainer:"",excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},c=38,u=40,d=13,p=27,t=43,h=65,f=90,m=32,a=9,_=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"];function g(e,t){this.telInput=s(e),this.options=s.extend({},i,t),this.ns="."+l+n++,this.isGoodBrowser=Boolean(e.setSelectionRange),this.hadInitialPlaceholder=Boolean(s(e).attr("placeholder"))}s(r).on("load",function(){s.fn[l].windowLoaded=!0}),g.prototype={_init:function(){return this.options.nationalMode&&(this.options.autoHideDialCode=!1),this.options.separateDialCode&&(this.options.autoHideDialCode=this.options.nationalMode=!1),this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.isMobile&&(s("body").addClass("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer="body")),this.autoCountryDeferred=new s.Deferred,this.utilsScriptDeferred=new s.Deferred,this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests(),[this.autoCountryDeferred,this.utilsScriptDeferred]},_processCountryData:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries()},_addCountryCode:function(e,t,n){t in this.countryCodes||(this.countryCodes[t]=[]),this.countryCodes[t][n||0]=e},_filterCountries:function(e,t){for(var n=0;n<e.length;n++)e[n]=e[n].toLowerCase();for(this.countries=[],n=0;n<y.length;n++)t(s.inArray(y[n].iso2,e))&&this.countries.push(y[n])},_processAllCountries:function(){this.options.onlyCountries.length?this._filterCountries(this.options.onlyCountries,function(e){return-1<e}):this.options.excludeCountries.length?this._filterCountries(this.options.excludeCountries,function(e){return-1==e}):this.countries=y},_processCountryCodes:function(){this.countryCodes={};for(var e=0;e<this.countries.length;e++){var t=this.countries[e];if(this._addCountryCode(t.iso2,t.dialCode,t.priority),t.areaCodes)for(var n=0;n<t.areaCodes.length;n++)this._addCountryCode(t.iso2,t.dialCode+t.areaCodes[n])}},_processPreferredCountries:function(){this.preferredCountries=[];for(var e=0;e<this.options.preferredCountries.length;e++){var t=this.options.preferredCountries[e].toLowerCase(),t=this._getCountryData(t,!1,!0);t&&this.preferredCountries.push(t)}},_generateMarkup:function(){this.telInput.attr("autocomplete","off");var e="intl-tel-input";this.options.allowDropdown&&(e+=" allow-dropdown"),this.options.separateDialCode&&(e+=" separate-dial-code"),this.telInput.wrap(s("<div>",{class:e})),this.flagsContainer=s("<div>",{class:"flag-container"}).insertBefore(this.telInput);e=s("<div>",{class:"selected-flag"});e.appendTo(this.flagsContainer),this.selectedFlagInner=s("<div>",{class:"iti-flag"}).appendTo(e),this.options.separateDialCode&&(this.selectedDialCode=s("<div>",{class:"selected-dial-code"}).appendTo(e)),this.options.allowDropdown?(e.attr("tabindex","0"),s("<div>",{class:"iti-arrow"}).appendTo(e),this.countryList=s("<ul>",{class:"country-list hide"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"preferred"),s("<li>",{class:"divider"}).appendTo(this.countryList)),this._appendListItems(this.countries,""),this.countryListItems=this.countryList.children(".country"),this.options.dropdownContainer?this.dropdown=s("<div>",{class:"intl-tel-input iti-container"}).append(this.countryList):this.countryList.appendTo(this.flagsContainer)):this.countryListItems=s()},_appendListItems:function(e,t){for(var n="",i=0;i<e.length;i++){var a=e[i];n+="<li class='country "+t+"' data-dial-code='"+a.dialCode+"' data-country-code='"+a.iso2+"'>",n+="<div class='flag-box'><div class='iti-flag "+a.iso2+"'></div></div>",n+="<span class='country-name'>"+a.name+"</span>",n+="<span class='dial-code'>+"+a.dialCode+"</span>",n+="</li>"}this.countryList.append(n)},_setInitialState:function(){var e=this.telInput.val();this._getDialCode(e)&&!this._isRegionlessNanp(e)?this._updateFlagFromNumber(e):"auto"!==this.options.initialCountry&&(this.options.initialCountry?this._setFlag(this.options.initialCountry.toLowerCase()):(this.defaultCountry=(this.preferredCountries.length?this.preferredCountries:this.countries)[0].iso2,e||this._setFlag(this.defaultCountry)),e||this.options.nationalMode||this.options.autoHideDialCode||this.options.separateDialCode||this.telInput.val("+"+this.selectedCountryData.dialCode)),e&&this._updateValFromNumber(e)},_initListeners:function(){this._initKeyListeners(),this.options.autoHideDialCode&&this._initFocusListeners(),this.options.allowDropdown&&this._initDropdownListeners()},_initDropdownListeners:function(){var t=this,e=this.telInput.closest("label");e.length&&e.on("click"+this.ns,function(e){t.countryList.hasClass("hide")?t.telInput.focus():e.preventDefault()}),this.selectedFlagInner.parent().on("click"+this.ns,function(e){!t.countryList.hasClass("hide")||t.telInput.prop("disabled")||t.telInput.prop("readonly")||t._showDropdown()}),this.flagsContainer.on("keydown"+t.ns,function(e){!t.countryList.hasClass("hide")||e.which!=c&&e.which!=u&&e.which!=m&&e.which!=d||(e.preventDefault(),e.stopPropagation(),t._showDropdown()),e.which==a&&t._closeDropdown()})},_initRequests:function(){var e=this;this.options.utilsScript?s.fn[l].windowLoaded?s.fn[l].loadUtils(this.options.utilsScript,this.utilsScriptDeferred):s(r).on("load",function(){s.fn[l].loadUtils(e.options.utilsScript,e.utilsScriptDeferred)}):this.utilsScriptDeferred.resolve(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.autoCountryDeferred.resolve()},_loadAutoCountry:function(){s.fn[l].autoCountry?this.handleAutoCountry():s.fn[l].startedLoadingAutoCountry||(s.fn[l].startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup(function(e){s.fn[l].autoCountry=e.toLowerCase(),setTimeout(function(){s(".intl-tel-input input").intlTelInput("handleAutoCountry")})}))},_initKeyListeners:function(){var e=this;this.telInput.on("keyup"+this.ns,function(){e._updateFlagFromNumber(e.telInput.val())&&e._triggerCountryChange()}),this.telInput.on("cut"+this.ns+" paste"+this.ns,function(){setTimeout(function(){e._updateFlagFromNumber(e.telInput.val())&&e._triggerCountryChange()})})},_cap:function(e){var t=this.telInput.attr("maxlength");return t&&e.length>t?e.substr(0,t):e},_initFocusListeners:function(){var n=this;this.telInput.on("mousedown"+this.ns,function(e){n.telInput.is(":focus")||n.telInput.val()||(e.preventDefault(),n.telInput.focus())}),this.telInput.on("focus"+this.ns,function(e){n.telInput.val()||n.telInput.prop("readonly")||!n.selectedCountryData.dialCode||(n.telInput.val("+"+n.selectedCountryData.dialCode),n.telInput.one("keypress.plus"+n.ns,function(e){e.which==t&&n.telInput.val("")}),setTimeout(function(){var e,t=n.telInput[0];n.isGoodBrowser&&(e=n.telInput.val().length,t.setSelectionRange(e,e))}))});var e=this.telInput.prop("form");e&&s(e).on("submit"+this.ns,function(){n._removeEmptyDialCode()}),this.telInput.on("blur"+this.ns,function(){n._removeEmptyDialCode()})},_removeEmptyDialCode:function(){var e=this.telInput.val();"+"==e.charAt(0)&&((e=this._getNumeric(e))&&this.selectedCountryData.dialCode!=e||this.telInput.val("")),this.telInput.off("keypress.plus"+this.ns)},_getNumeric:function(e){return e.replace(/\D/g,"")},_showDropdown:function(){this._setDropdownPosition();var e=this.countryList.children(".active");e.length&&(this._highlightListItem(e),this._scrollTo(e)),this._bindDropdownListeners(),this.selectedFlagInner.children(".iti-arrow").addClass("up")},_setDropdownPosition:function(){var e,t,n,i,a=this;this.options.dropdownContainer&&this.dropdown.appendTo(this.options.dropdownContainer),this.dropdownHeight=this.countryList.removeClass("hide").outerHeight(),this.isMobile||(t=(e=this.telInput.offset()).top,i=s(r).scrollTop(),n=t+this.telInput.outerHeight()+this.dropdownHeight<i+s(r).height(),i=t-this.dropdownHeight>i,this.countryList.toggleClass("dropup",!n&&i),this.options.dropdownContainer&&(i=!n&&i?0:this.telInput.innerHeight(),this.dropdown.css({top:t+i,left:e.left}),s(r).on("scroll"+this.ns,function(){a._closeDropdown()})))},_bindDropdownListeners:function(){var t=this;this.countryList.on("mouseover"+this.ns,".country",function(e){t._highlightListItem(s(this))}),this.countryList.on("click"+this.ns,".country",function(e){t._selectListItem(s(this))});var n=!0;s("html").on("click"+this.ns,function(e){n||t._closeDropdown(),n=!1});var i="",a=null;s(e).on("keydown"+this.ns,function(e){e.preventDefault(),e.which==c||e.which==u?t._handleUpDownKey(e.which):e.which==d?t._handleEnterKey():e.which==p?t._closeDropdown():(e.which>=h&&e.which<=f||e.which==m)&&(a&&clearTimeout(a),i+=String.fromCharCode(e.which),t._searchForCountry(i),a=setTimeout(function(){i=""},1e3))})},_handleUpDownKey:function(e){var t=this.countryList.children(".highlight").first(),t=e==c?t.prev():t.next();t.length&&(t.hasClass("divider")&&(t=e==c?t.prev():t.next()),this._highlightListItem(t),this._scrollTo(t))},_handleEnterKey:function(){var e=this.countryList.children(".highlight").first();e.length&&this._selectListItem(e)},_searchForCountry:function(e){for(var t=0;t<this.countries.length;t++)if(this._startsWith(this.countries[t].name,e)){var n=this.countryList.children("[data-country-code="+this.countries[t].iso2+"]").not(".preferred");this._highlightListItem(n),this._scrollTo(n,!0);break}},_startsWith:function(e,t){return e.substr(0,t.length).toUpperCase()==t},_updateValFromNumber:function(e){var t;this.options.formatOnDisplay&&r.intlTelInputUtils&&this.selectedCountryData&&(t=this.options.separateDialCode||!this.options.nationalMode&&"+"==e.charAt(0)?intlTelInputUtils.numberFormat.INTERNATIONAL:intlTelInputUtils.numberFormat.NATIONAL,e=intlTelInputUtils.formatNumber(e,this.selectedCountryData.iso2,t)),e=this._beforeSetNumber(e),this.telInput.val(e)},_updateFlagFromNumber:function(e){e&&this.options.nationalMode&&this.selectedCountryData&&"1"==this.selectedCountryData.dialCode&&"+"!=e.charAt(0)&&(e="+"+(e="1"!=e.charAt(0)?"1"+e:e));var t=this._getDialCode(e),n=null,i=this._getNumeric(e);if(t){var a=this.countryCodes[this._getNumeric(t)],r=this.selectedCountryData&&-1<s.inArray(this.selectedCountryData.iso2,a),t="+1"==t&&4<=i.length;if(!(this.selectedCountryData&&"1"==this.selectedCountryData.dialCode&&this._isRegionlessNanp(i)||r&&!t))for(var o=0;o<a.length;o++)if(a[o]){n=a[o];break}}else"+"==e.charAt(0)&&i.length?n="":e&&"+"!=e||(n=this.defaultCountry);return null!==n&&this._setFlag(n)},_isRegionlessNanp:function(e){e=this._getNumeric(e);if("1"!=e.charAt(0))return!1;e=e.substr(1,3);return-1<s.inArray(e,_)},_highlightListItem:function(e){this.countryListItems.removeClass("highlight"),e.addClass("highlight")},_getCountryData:function(e,t,n){for(var i=t?y:this.countries,a=0;a<i.length;a++)if(i[a].iso2==e)return i[a];if(n)return null;throw new Error("No country data for '"+e+"'")},_setFlag:function(e){var t=this.selectedCountryData&&this.selectedCountryData.iso2?this.selectedCountryData:{};this.selectedCountryData=e?this._getCountryData(e,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner.attr("class","iti-flag "+e);var n,i=e?this.selectedCountryData.name+": +"+this.selectedCountryData.dialCode:"Unknown";return this.selectedFlagInner.parent().attr("title",i),this.options.separateDialCode&&(n=this.selectedCountryData.dialCode?"+"+this.selectedCountryData.dialCode:"",i=this.telInput.parent(),t.dialCode&&i.removeClass("iti-sdc-"+(t.dialCode.length+1)),n&&i.addClass("iti-sdc-"+n.length),this.selectedDialCode.text(n)),this._updatePlaceholder(),this.countryListItems.removeClass("active"),e&&this.countryListItems.find(".iti-flag."+e).first().closest(".country").addClass("active"),t.iso2!==e},_updatePlaceholder:function(){var e="aggressive"===this.options.autoPlaceholder||!this.hadInitialPlaceholder&&(!0===this.options.autoPlaceholder||"polite"===this.options.autoPlaceholder);r.intlTelInputUtils&&e&&this.selectedCountryData&&(e=intlTelInputUtils.numberType[this.options.placeholderNumberType],e=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,e):"",e=this._beforeSetNumber(e),"function"==typeof this.options.customPlaceholder&&(e=this.options.customPlaceholder(e,this.selectedCountryData)),this.telInput.attr("placeholder",e))},_selectListItem:function(e){var t=this._setFlag(e.attr("data-country-code"));this._closeDropdown(),this._updateDialCode(e.attr("data-dial-code"),!0),this.telInput.focus(),this.isGoodBrowser&&(e=this.telInput.val().length,this.telInput[0].setSelectionRange(e,e)),t&&this._triggerCountryChange()},_closeDropdown:function(){this.countryList.addClass("hide"),this.selectedFlagInner.children(".iti-arrow").removeClass("up"),s(e).off(this.ns),s("html").off(this.ns),this.countryList.off(this.ns),this.options.dropdownContainer&&(this.isMobile||s(r).off("scroll"+this.ns),this.dropdown.detach())},_scrollTo:function(e,t){var n=this.countryList,i=n.height(),a=n.offset().top,r=a+i,o=e.outerHeight(),s=e.offset().top,l=s+o,c=s-a+n.scrollTop(),e=i/2-o/2;s<a?(t&&(c-=e),n.scrollTop(c)):r<l&&(t&&(c+=e),n.scrollTop(c-(i-o)))},_updateDialCode:function(e,t){var n=this.telInput.val();if(e="+"+e,"+"==n.charAt(0))var i=this._getDialCode(n),i=i?n.replace(i,e):e;else{if(this.options.nationalMode||this.options.separateDialCode)return;if(n)i=e+n;else{if(!t&&this.options.autoHideDialCode)return;i=e}}this.telInput.val(i)},_getDialCode:function(e){var t="";if("+"==e.charAt(0))for(var n="",i=0;i<e.length;i++){var a=e.charAt(i);if(s.isNumeric(a)&&(n+=a,this.countryCodes[n]&&(t=e.substr(0,i+1)),4==n.length))break}return t},_getFullNumber:function(){var e=s.trim(this.telInput.val()),t=this.selectedCountryData.dialCode,n=this._getNumeric(e),n="1"==n.charAt(0)?n:"1"+n,t=this.options.separateDialCode?"+"+t:"+"!=e.charAt(0)&&"1"!=e.charAt(0)&&t&&"1"==t.charAt(0)&&4==t.length&&t!=n.substr(0,4)?t.substr(1):"";return t+e},_beforeSetNumber:function(e){var t;return!this.options.separateDialCode||(t=this._getDialCode(e))&&(t=" "===e[(t=null!==this.selectedCountryData.areaCodes?"+"+this.selectedCountryData.dialCode:t).length]||"-"===e[t.length]?t.length+1:t.length,e=e.substr(t)),this._cap(e)},_triggerCountryChange:function(){this.telInput.trigger("countrychange",this.selectedCountryData)},handleAutoCountry:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=s.fn[l].autoCountry,this.telInput.val()||this.setCountry(this.defaultCountry),this.autoCountryDeferred.resolve())},handleUtils:function(){r.intlTelInputUtils&&(this.telInput.val()&&this._updateValFromNumber(this.telInput.val()),this._updatePlaceholder()),this.utilsScriptDeferred.resolve()},destroy:function(){var e;this.allowDropdown&&(this._closeDropdown(),this.selectedFlagInner.parent().off(this.ns),this.telInput.closest("label").off(this.ns)),!this.options.autoHideDialCode||(e=this.telInput.prop("form"))&&s(e).off(this.ns),this.telInput.off(this.ns),this.telInput.parent().before(this.telInput).remove()},getExtension:function(){return r.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""},getNumber:function(e){return r.intlTelInputUtils?intlTelInputUtils.formatNumber(this._getFullNumber(),this.selectedCountryData.iso2,e):""},getNumberType:function(){return r.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99},getSelectedCountryData:function(){return this.selectedCountryData||{}},getValidationError:function(){return r.intlTelInputUtils?intlTelInputUtils.getValidationError(this._getFullNumber(),this.selectedCountryData.iso2):-99},isValidNumber:function(){var e=s.trim(this._getFullNumber()),t=this.options.nationalMode?this.selectedCountryData.iso2:"";return r.intlTelInputUtils?intlTelInputUtils.isValidNumber(e,t):null},setCountry:function(e){e=e.toLowerCase(),this.selectedFlagInner.hasClass(e)||(this._setFlag(e),this._updateDialCode(this.selectedCountryData.dialCode,!1),this._triggerCountryChange())},setNumber:function(e){var t=this._updateFlagFromNumber(e);this._updateValFromNumber(e),t&&this._triggerCountryChange()}},s.fn[l]=function(n){var t,i=arguments;if(n===o||"object"==typeof n){var a=[];return this.each(function(){var e,t;s.data(this,"plugin_"+l)||(t=(e=new g(this,n))._init(),a.push(t[0]),a.push(t[1]),s.data(this,"plugin_"+l,e))}),s.when.apply(null,a)}if("string"==typeof n&&"_"!==n[0])return this.each(function(){var e=s.data(this,"plugin_"+l);e instanceof g&&"function"==typeof e[n]&&(t=e[n].apply(e,Array.prototype.slice.call(i,1))),"destroy"===n&&s.data(this,"plugin_"+l,null)}),t!==o?t:this},s.fn[l].getCountryData=function(){return y},s.fn[l].loadUtils=function(e,t){s.fn[l].loadedUtilsScript?t&&t.resolve():(s.fn[l].loadedUtilsScript=!0,s.ajax({type:"GET",url:e,complete:function(){s(".intl-tel-input input").intlTelInput("handleUtils")},dataType:"script",cache:!0}))},s.fn[l].version="11.0.0",s.fn[l].defaults=i;for(var y=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1242"],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1246"],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1441"],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1],["Cayman Islands","ky","1345"],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590",0],["Guam","gu","1671"],["Guatemala","gt","502"],["Guernsey","gg","44",1],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1876"],["Japan (日本)","jp","81"],["Jersey","je","44",3],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1664"],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy (Saint-Barthélemy)","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1721"],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1]],v=0;v<y.length;v++){var w=y[v];y[v]={name:w[0],iso2:w[1],dialCode:w[2],priority:w[3]||0,areaCodes:w[4]||null}}}),function(c){"use strict";function n(e){var t,n,i,a,r=Date.now(),o=document.getElementsByTagName("script"),s=o[o.length-1].src,l=null,c=!1;function u(){return this?u:u.toString()}function d(e,t){this.value=e,this.precision=t}function p(e){String(e);l&&Math.abs(e-l),l=e,e=Math.abs(l-a),u.amortizationThreshold<e&&(a=l)}function h(){var n,i,a,r=1;function o(){var e=new XMLHttpRequest,t=-1<s.indexOf("?")?"&":"?";e.open("HEAD",s+t+"noCache="+Date.now()+parseInt(1e6*Math.random())),e.onreadystatechange=function(){this.readyState==this.HEADERS_RECEIVED&&200==this.status&&(i=Date.now())},e.onload=function(){if(200==this.status)try{!function(e){var t=(i-n)/2,e=new d(e+t-i,t);String(e),(1==r||t<=a.precision)&&(a=e);r<10?(r++,o()):(p(a),c=!1)}(new Date(this.getResponseHeader("Date")).getTime())}catch(e){}},n=Date.now(),e.send()}c||(c=!0,setTimeout(function(){c=!1},1e4),o())}return u.parse=Date.parse,u.UTC=Date.UTC,u.now=function(){return Date.now()+a},["toString","toDateString","toTimeString","toLocaleString","toLocaleDateString","toLocaleTimeString","valueOf","getTime","getFullYear","getUTCFullYear","getMonth","getUTCMonth","getDate","getUTCDate","getDay","getUTCDay","getHours","getUTCHours","getMinutes","getUTCMinutes","getSeconds","getUTCSeconds","getMilliseconds","getUTCMilliseconds","getTimezoneOffset","toUTCString","toISOString","toJSON"].forEach(function(e){u[e]=function(){return new Date(u.now())[e]()}}),u.getPrecision=function(){if(void 0!==l.precision)return l.precision+Math.abs(l-a)},u.amortizationRate=25,u.amortizationThreshold=2e3,Object.defineProperty(u,"synchronizationIntervalDelay",{get:function(){return t},set:function(e){t=e,clearInterval(n),n=setInterval(h,u.synchronizationIntervalDelay)}}),u.synchronizationIntervalDelay=6e5,d.prototype.valueOf=function(){return this.value},d.prototype.toString=function(){return this.value+(void 0!==this.precision?" +/- "+this.precision:"")+" ms"},a=e-r,"undefined"!=typeof performance&&(i=(r-performance.timing.domLoading)/2,a+=i),p(new d(a,i)),setInterval(function(){var e=Math.max(-u.amortizationRate,Math.min(u.amortizationRate,l-a));a+=e,e&&l.value},1e3),u}Date.now||(Date.now=function(){return(new Date).getTime()});function i(e,t){this.element=e,this.element.hasClass("flipTimer")||this.element.addClass("flipTimer"),this.userOptions=t,this.defaultOptions=i.defaults,this.options=c.extend({},this.defaultOptions,this.userOptions),0<this.element.find(".seconds").length&&(this.options.seconds=this.element.find(".seconds")[0]),0<this.element.find(".minutes").length&&(this.options.minutes=this.element.find(".minutes")[0]),0<this.element.find(".hours").length&&(this.options.hours=this.element.find(".hours")[0]),0<this.element.find(".days").length&&(this.options.days=this.element.find(".days")[0]),this.initDate=n(Date.now()),this.options.date=new Date(this.options.date),this.calculateDate()}i.defaults={seconds:!1,minutes:!1,hours:!1,days:!1,date:n(Date.now()).toDateString(),direction:"up",callback:null,digitTemplate:'<div class="digit">    <div class="digit-top">        <span class="digit-wrap"></span>    </div>    <div class="shadow-top"></div>    <div class="digit-bottom">        <span class="digit-wrap"></span>    </div>    <div class="shadow-bottom"></div></div>'},i.prototype={calculateDate:function(){var e;"down"==this.options.direction?e=this.options.date-this.initDate:"up"==this.options.direction&&(e=this.initDate-this.options.date),this.seconds=Math.floor(e/1e3)%60,this.minutes=Math.floor(e/1e3/60)%60,this.hours=Math.floor(e/1e3/3600)%24,this.days=Math.floor(e/1e3/60/60/24),this.render()},render:function(){this.options.seconds&&this.renderDigits(this.options.seconds,this.seconds),this.options.minutes&&this.renderDigits(this.options.minutes,this.minutes),this.options.hours&&this.renderDigits(this.options.hours,this.hours),this.options.days&&this.renderDigits(this.options.days,this.days),this.startTimer()},renderDigits:function(e,t){var n,i,a,r,o,s,l=this;0==c(e).find(".digit").length&&(s=l.days<0&&l.hours<0&&l.minutes<0&&l.seconds<0||99<l.days?[0,0]:String((t/10).toFixed(1)).split("."),r=e==l.options.seconds||e==l.options.minutes?5:e==l.options.hours?2:9,c(e).append('<div class="digit-set"></div><div class="digit-set"></div>'),c(e).find(".digit-set").each(function(e){for(a=0==e?r:9,n=0;n<=a;n++)c(this).append(l.options.digitTemplate),i="down"==l.options.direction?a-n:n,o=c(this).find(".digit")[n],c(o).find(".digit-wrap").append(i),i==s[e]?c(o).addClass("active"):(0!=s[e]&&i+1==s[e]||0==s[e]&&i==a)&&c(o).addClass("previous")}))},startTimer:function(){var e=this;clearInterval(this.timer),this.timer=setInterval(function(){return e.days<=0&&e.hours<=0&&e.minutes<=0&&e.seconds<=0?(e.options.callback&&e.options.callback(),void clearInterval(e.timer)):void(99<e.days||99==e.days&&23==e.hours&&59==e.minutes&&59==e.seconds?clearInterval(e.timer):("down"==e.options.direction?e.seconds--:e.seconds++,e.options.seconds&&e.increaseDigit(e.options.seconds),60!=e.seconds&&-1!=e.seconds||("down"==e.options.direction?(e.seconds=59,e.minutes--):(e.seconds=0,e.minutes++),e.options.minutes&&e.increaseDigit(e.options.minutes)),60!=e.minutes&&-1!=e.minutes||("down"==e.options.direction?(e.minutes=59,e.hours--):(e.minutes=0,e.hours++),e.options.hours&&e.increaseDigit(e.options.hours)),24!=e.hours&&-1!=e.hours||("down"==e.options.direction?(e.hours=23,e.days--):(e.hours=0,e.days++),e.options.days&&e.increaseDigit(e.options.days))))},1e3)},increaseDigit:function(r){var o=new Array,s=this;c(r).find(".digit-set").each(function(){o.push(this)}),function e(t){var n=c(t).find(".active"),i=c(t).find(".previous"),a=c.inArray(t,o);i.removeClass("previous");n.removeClass("active").addClass("previous");0==n.next().length?(("down"!=s.options.direction||r!=s.options.hours||-1!=s.hours&&23!=s.hours||10!=c(t).find(".digit").length?c(t).find(".digit:first-child"):c(c(t).find(".digit")[6])).addClass("active"),0!=a&&e(o[a-1])):"up"==s.options.direction&&r==s.options.hours&&24==s.hours?(c(t).find(".digit:first-child").addClass("active"),e(o[a-1])):n.next().addClass("active")}(o[o.length-1])}},c.fn.flipTimer=function(e){if(c(".page-id-"+wpj_vars.order_page_id)[0])return this.each(function(){c(this).data("flipTimer")||c(this).data("flipTimer",new i(c(this),e))})}}(jQuery),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):e.jQuery?t(e.jQuery):t(e.Zepto)}(this,function(l,c){l.fn.jPlayer=function(n){var i="jPlayer",e="string"==typeof n,a=Array.prototype.slice.call(arguments,1),r=this;return n=!e&&a.length?l.extend.apply(null,[!0,n].concat(a)):n,e&&"_"===n.charAt(0)||(e?this.each(function(){var e=l(this).data(i),t=e&&l.isFunction(e[n])?e[n].apply(e,a):e;if(t!==e&&t!==c)return r=t,!1}):this.each(function(){var e=l(this).data(i);e?e.option(n||{}):l(this).data(i,new l.jPlayer(n,this))})),r},l.jPlayer=function(e,t){var n;arguments.length&&(this.element=l(t),this.options=l.extend(!0,{},this.options,e),(n=this).element.bind("remove.jPlayer",function(){n.destroy()}),this._init())},"function"!=typeof l.fn.stop&&(l.fn.stop=function(){}),l.jPlayer.emulateMethods="load play pause",l.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate",l.jPlayer.emulateOptions="muted volume",l.jPlayer.reservedEvent="ready flashreset resize repeat error warning",l.jPlayer.event={},l.each(["ready","setmedia","flashreset","resize","repeat","click","error","warning","loadstart","progress","suspend","abort","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","timeupdate","ended","ratechange","durationchange","volumechange"],function(){l.jPlayer.event[this]="jPlayer_"+this}),l.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","canplay","canplaythrough"],l.jPlayer.pause=function(){l.jPlayer.prototype.destroyRemoved(),l.each(l.jPlayer.prototype.instances,function(e,t){t.data("jPlayer").status.srcSet&&t.jPlayer("pause")})},l.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};function e(){this.init()}e.prototype={init:function(){this.options={timeFormat:l.jPlayer.timeFormat}},time:function(e){e=e&&"number"==typeof e?e:0;var t=new Date(1e3*e),n=t.getUTCHours(),i=this.options.timeFormat.showHour?t.getUTCMinutes():t.getUTCMinutes()+60*n,e=this.options.timeFormat.showMin?t.getUTCSeconds():t.getUTCSeconds()+60*i,t=this.options.timeFormat.padHour&&n<10?"0"+n:n,n=this.options.timeFormat.padMin&&i<10?"0"+i:i,i=this.options.timeFormat.padSec&&e<10?"0"+e:e,e="";return e+=this.options.timeFormat.showHour?t+this.options.timeFormat.sepHour:"",e+=this.options.timeFormat.showMin?n+this.options.timeFormat.sepMin:"",e+=this.options.timeFormat.showSec?i+this.options.timeFormat.sepSec:""}};var t=new e;l.jPlayer.convertTime=function(e){return t.time(e)},l.jPlayer.uaBrowser=function(e){e=e.toLowerCase(),e=/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(e)||[];return{browser:e[1]||"",version:e[2]||"0"}},l.jPlayer.uaPlatform=function(e){var t=e.toLowerCase(),e=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(t)||[],t=/(ipad|playbook)/.exec(t)||!/(mobile)/.exec(t)&&/(android)/.exec(t)||[];return e[1]&&(e[1]=e[1].replace(/\s/g,"_")),{platform:e[1]||"",tablet:t[1]||""}},l.jPlayer.browser={},l.jPlayer.platform={};var n=l.jPlayer.uaBrowser(navigator.userAgent);n.browser&&(l.jPlayer.browser[n.browser]=!0,l.jPlayer.browser.version=n.version);n=l.jPlayer.uaPlatform(navigator.userAgent);n.platform&&(l.jPlayer.platform[n.platform]=!0,l.jPlayer.platform.mobile=!n.tablet,l.jPlayer.platform.tablet=!!n.tablet),l.jPlayer.getDocMode=function(){var e;return l.jPlayer.browser.msie&&(document.documentMode?e=document.documentMode:(e=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(e=7))),e},l.jPlayer.browser.documentMode=l.jPlayer.getDocMode(),l.jPlayer.nativeFeatures={init:function(){var e,t,n,i,a=document,r=a.createElement("video"),o={w3c:["fullscreenEnabled","fullscreenElement","requestFullscreen","exitFullscreen","fullscreenchange","fullscreenerror"],moz:["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror"],webkit:["","webkitCurrentFullScreenElement","webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange",""],webkitVideo:["webkitSupportsFullscreen","webkitDisplayingFullscreen","webkitEnterFullscreen","webkitExitFullscreen","",""],ms:["","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError"]},s=["w3c","moz","webkit","webkitVideo","ms"];for(this.fullscreen=e={support:{w3c:!!a[o.w3c[0]],moz:!!a[o.moz[0]],webkit:"function"==typeof a[o.webkit[3]],webkitVideo:"function"==typeof r[o.webkitVideo[2]],ms:"function"==typeof r[o.ms[2]]},used:{}},t=0,n=s.length;t<n;t++){var l=s[t];if(e.support[l]){e.spec=l,e.used[l]=!0;break}}e.spec?(i=o[e.spec],e.api={fullscreenEnabled:!0,fullscreenElement:function(e){return(e=e||a)[i[1]]},requestFullscreen:function(e){return e[i[2]]()},exitFullscreen:function(e){return(e=e||a)[i[3]]()}},e.event={fullscreenchange:i[4],fullscreenerror:i[5]}):(e.api={fullscreenEnabled:!1,fullscreenElement:function(){return null},requestFullscreen:function(){},exitFullscreen:function(){}},e.event={})}},l.jPlayer.nativeFeatures.init(),l.jPlayer.focus=null,l.jPlayer.keyIgnoreElementNames="A INPUT TEXTAREA SELECT BUTTON";function i(n){var i,a=l.jPlayer.focus;a&&(l.each(l.jPlayer.keyIgnoreElementNames.split(/\s+/g),function(e,t){if(n.target.nodeName.toUpperCase()===t.toUpperCase())return!(i=!0)}),i||l.each(a.options.keyBindings,function(e,t){if(t&&l.isFunction(t.fn)&&("number"==typeof t.key&&n.which===t.key||"string"==typeof t.key&&n.key===t.key))return n.preventDefault(),t.fn(a),!1}))}l.jPlayer.keys=function(e){var t="keydown.jPlayer";l(document.documentElement).unbind(t),e&&l(document.documentElement).bind(t,i)},l.jPlayer.keys(!0),l.jPlayer.prototype={count:0,version:{script:"2.9.1",needFlash:"2.9.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",auroraFormats:"wav",preload:"metadata",volume:.8,muted:!1,remainingDuration:!1,toggleDuration:!1,captureDuration:!0,playbackRate:1,defaultPlaybackRate:1,minPlaybackRate:.5,maxPlaybackRate:4,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",playbackRateBar:".jp-playback-rate-bar",playbackRateBarValue:".jp-playback-rate-bar-value",currentTime:".jp-current-time",duration:".jp-duration",title:".jp-title",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},stateClass:{playing:"jp-state-playing",seeking:"jp-state-seeking",muted:"jp-state-muted",looped:"jp-state-looped",fullScreen:"jp-state-full-screen",noVolume:"jp-state-no-volume"},useStateClassSkin:!1,autoBlur:!0,smoothPlayBar:!1,fullScreen:!1,fullWindow:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1e3},loop:!1,repeat:function(e){e.jPlayer.options.loop?l(this).unbind(".jPlayerRepeat").bind(l.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){l(this).jPlayer("play")}):l(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullWindow:{msie:/msie [0-6]\./,ipad:/ipad.*?os [0-4]\./,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3]\.(?!.*?mobile)/,android_phone:/(?=.*android)(?!.*chrome)(?=.*mobile)/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/,playbook:/playbook/},timeFormat:{},keyEnabled:!1,audioFullScreen:!1,keyBindings:{play:{key:80,fn:function(e){e.status.paused?e.play():e.pause()}},fullScreen:{key:70,fn:function(e){(e.status.video||e.options.audioFullScreen)&&e._setOption("fullScreen",!e.options.fullScreen)}},muted:{key:77,fn:function(e){e._muted(!e.options.muted)}},volumeUp:{key:190,fn:function(e){e.volume(e.options.volume+.1)}},volumeDown:{key:188,fn:function(e){e.volume(e.options.volume-.1)}},loop:{key:76,fn:function(e){e._loop(!e.options.loop)}}},verticalVolume:!1,verticalPlaybackRate:!1,globalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,consoleAlerts:!0,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,remaining:0,videoWidth:0,videoHeight:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,aurora:!0,flash:!0},format:{mp3:{codec:"audio/mpeg",flashCanPlay:!0,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},m3u8a:{codec:'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',flashCanPlay:!1,media:"audio"},m3ua:{codec:"audio/mpegurl",flashCanPlay:!1,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis, opus"',flashCanPlay:!1,media:"audio"},flac:{codec:"audio/x-flac",flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},m3u8v:{codec:'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!1,media:"video"},m3uv:{codec:"audio/mpegurl",flashCanPlay:!1,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var a=this;if(this.element.empty(),this.status=l.extend({},this.status),this.internal=l.extend({},this.internal),this.options.timeFormat=l.extend({},l.jPlayer.timeFormat,this.options.timeFormat),this.internal.cmdsIgnored=l.jPlayer.platform.ipad||l.jPlayer.platform.iphone||l.jPlayer.platform.ipod,this.internal.domNode=this.element.get(0),this.options.keyEnabled&&!l.jPlayer.focus&&(l.jPlayer.focus=this),this.androidFix={setMedia:!1,play:!1,pause:!1,time:NaN},l.jPlayer.platform.android&&(this.options.preload="auto"!==this.options.preload?"metadata":"auto"),this.formats=[],this.solutions=[],this.require={},this.htmlElement={},this.html={},this.html.audio={},this.html.video={},this.aurora={},this.aurora.formats=[],this.aurora.properties=[],this.flash={},this.css={},this.css.cs={},this.css.jq={},this.ancestorJq=[],this.options.volume=this._limitValue(this.options.volume,0,1),l.each(this.options.supplied.toLowerCase().split(","),function(e,t){var n,i=t.replace(/^\s+|\s+$/g,"");a.format[i]&&(n=!1,l.each(a.formats,function(e,t){if(i===t)return!(n=!0)}),n||a.formats.push(i))}),l.each(this.options.solution.toLowerCase().split(","),function(e,t){var n,i=t.replace(/^\s+|\s+$/g,"");a.solution[i]&&(n=!1,l.each(a.solutions,function(e,t){if(i===t)return!(n=!0)}),n||a.solutions.push(i))}),l.each(this.options.auroraFormats.toLowerCase().split(","),function(e,t){var n,i=t.replace(/^\s+|\s+$/g,"");a.format[i]&&(n=!1,l.each(a.aurora.formats,function(e,t){if(i===t)return!(n=!0)}),n||a.aurora.formats.push(i))}),this.internal.instance="jp_"+this.count,this.instances[this.internal.instance]=this.element,this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count),this.internal.self=l.extend({},{id:this.element.attr("id"),jq:this.element}),this.internal.audio=l.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:c}),this.internal.video=l.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:c}),this.internal.flash=l.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:c,swf:this.options.swfPath+(".swf"!==this.options.swfPath.toLowerCase().slice(-4)?(this.options.swfPath&&"/"!==this.options.swfPath.slice(-1)?"/":"")+"jquery.jplayer.swf":"")}),this.internal.poster=l.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:c}),l.each(l.jPlayer.event,function(e,t){a.options[e]!==c&&(a.element.bind(t+".jPlayer",a.options[e]),a.options[e]=c)}),this.require.audio=!1,this.require.video=!1,l.each(this.formats,function(e,t){a.require[a.format[t].media]=!0}),this.require.video?this.options=l.extend(!0,{},this.optionsVideo,this.options):this.options=l.extend(!0,{},this.optionsAudio,this.options),this._setSize(),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this.status.noVolume=this._uaBlocklist(this.options.noVolume),l.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled&&this._fullscreenAddEventListeners(),this._restrictNativeVideoControls(),this.htmlElement.poster=document.createElement("img"),this.htmlElement.poster.id=this.internal.poster.id,this.htmlElement.poster.onload=function(){a.status.video&&!a.status.waitForPlay||a.internal.poster.jq.show()},this.element.append(this.htmlElement.poster),this.internal.poster.jq=l("#"+this.internal.poster.id),this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),this.internal.poster.jq.hide(),this.internal.poster.jq.bind("click.jPlayer",function(){a._trigger(l.jPlayer.event.click)}),this.html.audio.available=!1,this.require.audio&&(this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)),this.html.video.available=!1,this.require.video&&(this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)),this.flash.available=this._checkForFlash(10.1),this.html.canPlay={},this.aurora.canPlay={},this.flash.canPlay={},l.each(this.formats,function(e,t){a.html.canPlay[t]=a.html[a.format[t].media].available&&""!==a.htmlElement[a.format[t].media].canPlayType(a.format[t].codec),a.aurora.canPlay[t]=-1<l.inArray(t,a.aurora.formats),a.flash.canPlay[t]=a.format[t].flashCanPlay&&a.flash.available}),this.html.desired=!1,this.aurora.desired=!1,this.flash.desired=!1,l.each(this.solutions,function(e,t){var n,i;0===e?a[t].desired=!0:(i=n=!1,l.each(a.formats,function(e,t){a[a.solutions[0]].canPlay[t]&&("video"===a.format[t].media?i=!0:n=!0)}),a[t].desired=a.require.audio&&!n||a.require.video&&!i)}),this.html.support={},this.aurora.support={},this.flash.support={},l.each(this.formats,function(e,t){a.html.support[t]=a.html.canPlay[t]&&a.html.desired,a.aurora.support[t]=a.aurora.canPlay[t]&&a.aurora.desired,a.flash.support[t]=a.flash.canPlay[t]&&a.flash.desired}),this.html.used=!1,this.aurora.used=!1,this.flash.used=!1,l.each(this.solutions,function(e,n){l.each(a.formats,function(e,t){if(a[n].support[t])return!(a[n].used=!0)})}),this._resetActive(),this._resetGate(),this._cssSelectorAncestor(this.options.cssSelectorAncestor),this.html.used||this.aurora.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:l.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:l.jPlayer.errorMsg.NO_SOLUTION,hint:l.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()),this.flash.used){var e="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(l.jPlayer.browser.msie&&(Number(l.jPlayer.browser.version)<9||l.jPlayer.browser.documentMode<9))for(var t='<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>',n=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+e+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'],i=document.createElement(t),r=0;r<n.length;r++)i.appendChild(document.createElement(n[r]));else{function o(e,t,n){var i=document.createElement("param");i.setAttribute("name",t),i.setAttribute("value",n),e.appendChild(i)}(i=document.createElement("object")).setAttribute("id",this.internal.flash.id),i.setAttribute("name",this.internal.flash.id),i.setAttribute("data",this.internal.flash.swf),i.setAttribute("type","application/x-shockwave-flash"),i.setAttribute("width","1"),i.setAttribute("height","1"),i.setAttribute("tabindex","-1"),o(i,"flashvars",e),o(i,"allowscriptaccess","always"),o(i,"bgcolor",this.options.backgroundColor),o(i,"wmode",this.options.wmode)}this.element.append(i),this.internal.flash.jq=l(i)}this.html.used&&!this.flash.used?this.status.playbackRateEnabled=this._testPlaybackRate("audio"):this.status.playbackRateEnabled=!1,this._updatePlaybackRate(),this.html.used&&(this.html.audio.available&&(this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio),this.element.append(this.htmlElement.audio),this.internal.audio.jq=l("#"+this.internal.audio.id)),this.html.video.available&&(this._addHtmlEventListeners(this.htmlElement.video,this.html.video),this.element.append(this.htmlElement.video),this.internal.video.jq=l("#"+this.internal.video.id),this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):this.internal.video.jq.css({width:"0px",height:"0px"}),this.internal.video.jq.bind("click.jPlayer",function(){a._trigger(l.jPlayer.event.click)}))),this.aurora.used,this.options.emulateHtml&&this._emulateHtmlBridge(),!this.html.used&&!this.aurora.used||this.flash.used||setTimeout(function(){a.internal.ready=!0,a.version.flash="n/a",a._trigger(l.jPlayer.event.repeat),a._trigger(l.jPlayer.event.ready)},100),this._updateNativeVideoControls(),this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),l.jPlayer.prototype.count++},destroy:function(){this.clearMedia(),this._removeUiClass(),this.css.jq.currentTime.length&&this.css.jq.currentTime.text(""),this.css.jq.duration.length&&this.css.jq.duration.text(""),l.each(this.css.jq,function(e,t){t.length&&t.unbind(".jPlayer")}),this.internal.poster.jq.unbind(".jPlayer"),this.internal.video.jq&&this.internal.video.jq.unbind(".jPlayer"),this._fullscreenRemoveEventListeners(),this===l.jPlayer.focus&&(l.jPlayer.focus=null),this.options.emulateHtml&&this._destroyHtmlBridge(),this.element.removeData("jPlayer"),this.element.unbind(".jPlayer"),this.element.empty(),delete this.instances[this.internal.instance]},destroyRemoved:function(){var n=this;l.each(this.instances,function(e,t){n.element!==t&&(t.data("jPlayer")||(t.jPlayer("destroy"),delete n.instances[e]))})},enable:function(){},disable:function(){},_testCanPlayType:function(e){try{return e.canPlayType(this.format.mp3.codec),!0}catch(e){return!1}},_testPlaybackRate:function(e){e="string"==typeof e?e:"audio",e=document.createElement(e);try{return"playbackRate"in e&&(e.playbackRate=.5)===e.playbackRate}catch(e){return!1}},_uaBlocklist:function(e){var n=navigator.userAgent.toLowerCase(),i=!1;return l.each(e,function(e,t){if(t&&t.test(n))return!(i=!0)}),i},_restrictNativeVideoControls:function(){this.require.audio&&this.status.nativeVideoControls&&(this.status.nativeVideoControls=!1,this.status.noFullWindow=!0)},_updateNativeVideoControls:function(){this.html.video.available&&this.html.used&&(this.htmlElement.video.controls=this.status.nativeVideoControls,this._updateAutohide(),this.status.nativeVideoControls&&this.require.video?(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})):this.status.waitForPlay&&this.status.video&&(this.internal.poster.jq.show(),this.internal.video.jq.css({width:"0px",height:"0px"})))},_addHtmlEventListeners:function(n,i){var a=this;n.preload=this.options.preload,n.muted=this.options.muted,n.volume=this.options.volume,this.status.playbackRateEnabled&&(n.defaultPlaybackRate=this.options.defaultPlaybackRate,n.playbackRate=this.options.playbackRate),n.addEventListener("progress",function(){i.gate&&(a.internal.cmdsIgnored&&0<this.readyState&&(a.internal.cmdsIgnored=!1),a._getHtmlStatus(n),a._updateInterface(),a._trigger(l.jPlayer.event.progress))},!1),n.addEventListener("loadeddata",function(){i.gate&&(a.androidFix.setMedia=!1,a.androidFix.play&&(a.androidFix.play=!1,a.play(a.androidFix.time)),a.androidFix.pause&&(a.androidFix.pause=!1,a.pause(a.androidFix.time)),a._trigger(l.jPlayer.event.loadeddata))},!1),n.addEventListener("timeupdate",function(){i.gate&&(a._getHtmlStatus(n),a._updateInterface(),a._trigger(l.jPlayer.event.timeupdate))},!1),n.addEventListener("durationchange",function(){i.gate&&(a._getHtmlStatus(n),a._updateInterface(),a._trigger(l.jPlayer.event.durationchange))},!1),n.addEventListener("play",function(){i.gate&&(a._updateButtons(!0),a._html_checkWaitForPlay(),a._trigger(l.jPlayer.event.play))},!1),n.addEventListener("playing",function(){i.gate&&(a._updateButtons(!0),a._seeked(),a._trigger(l.jPlayer.event.playing))},!1),n.addEventListener("pause",function(){i.gate&&(a._updateButtons(!1),a._trigger(l.jPlayer.event.pause))},!1),n.addEventListener("waiting",function(){i.gate&&(a._seeking(),a._trigger(l.jPlayer.event.waiting))},!1),n.addEventListener("seeking",function(){i.gate&&(a._seeking(),a._trigger(l.jPlayer.event.seeking))},!1),n.addEventListener("seeked",function(){i.gate&&(a._seeked(),a._trigger(l.jPlayer.event.seeked))},!1),n.addEventListener("volumechange",function(){i.gate&&(a.options.volume=n.volume,a.options.muted=n.muted,a._updateMute(),a._updateVolume(),a._trigger(l.jPlayer.event.volumechange))},!1),n.addEventListener("ratechange",function(){i.gate&&(a.options.defaultPlaybackRate=n.defaultPlaybackRate,a.options.playbackRate=n.playbackRate,a._updatePlaybackRate(),a._trigger(l.jPlayer.event.ratechange))},!1),n.addEventListener("suspend",function(){i.gate&&(a._seeked(),a._trigger(l.jPlayer.event.suspend))},!1),n.addEventListener("ended",function(){i.gate&&(l.jPlayer.browser.webkit||(a.htmlElement.media.currentTime=0),a.htmlElement.media.pause(),a._updateButtons(!1),a._getHtmlStatus(n,!0),a._updateInterface(),a._trigger(l.jPlayer.event.ended))},!1),n.addEventListener("error",function(){i.gate&&(a._updateButtons(!1),a._seeked(),a.status.srcSet&&(clearTimeout(a.internal.htmlDlyCmdId),a.status.waitForLoad=!0,a.status.waitForPlay=!0,a.status.video&&!a.status.nativeVideoControls&&a.internal.video.jq.css({width:"0px",height:"0px"}),a._validString(a.status.media.poster)&&!a.status.nativeVideoControls&&a.internal.poster.jq.show(),a.css.jq.videoPlay.length&&a.css.jq.videoPlay.show(),a._error({type:l.jPlayer.error.URL,context:a.status.src,message:l.jPlayer.errorMsg.URL,hint:l.jPlayer.errorHint.URL})))},!1),l.each(l.jPlayer.htmlEvent,function(e,t){n.addEventListener(this,function(){i.gate&&a._trigger(l.jPlayer.event[t])},!1)})},_addAuroraEventListeners:function(e,t){var n=this;e.volume=100*this.options.volume,e.on("progress",function(){t.gate&&(n.internal.cmdsIgnored&&0<this.readyState&&(n.internal.cmdsIgnored=!1),n._getAuroraStatus(e),n._updateInterface(),n._trigger(l.jPlayer.event.progress),0<e.duration&&n._trigger(l.jPlayer.event.timeupdate))},!1),e.on("ready",function(){t.gate&&n._trigger(l.jPlayer.event.loadeddata)},!1),e.on("duration",function(){t.gate&&(n._getAuroraStatus(e),n._updateInterface(),n._trigger(l.jPlayer.event.durationchange))},!1),e.on("end",function(){t.gate&&(n._updateButtons(!1),n._getAuroraStatus(e,!0),n._updateInterface(),n._trigger(l.jPlayer.event.ended))},!1),e.on("error",function(){t.gate&&(n._updateButtons(!1),n._seeked(),n.status.srcSet&&(n.status.waitForLoad=!0,n.status.waitForPlay=!0,n.status.video&&!n.status.nativeVideoControls&&n.internal.video.jq.css({width:"0px",height:"0px"}),n._validString(n.status.media.poster)&&!n.status.nativeVideoControls&&n.internal.poster.jq.show(),n.css.jq.videoPlay.length&&n.css.jq.videoPlay.show(),n._error({type:l.jPlayer.error.URL,context:n.status.src,message:l.jPlayer.errorMsg.URL,hint:l.jPlayer.errorHint.URL})))},!1)},_getHtmlStatus:function(e,t){var n=0,i=0,a=0,r=0;isFinite(e.duration)&&(this.status.duration=e.duration),n=e.currentTime,i=0<this.status.duration?100*n/this.status.duration:0,r="object"==typeof e.seekable&&0<e.seekable.length?(a=0<this.status.duration?100*e.seekable.end(e.seekable.length-1)/this.status.duration:100,0<this.status.duration?100*e.currentTime/e.seekable.end(e.seekable.length-1):0):(a=100,i),t&&(i=r=n=0),this.status.seekPercent=a,this.status.currentPercentRelative=r,this.status.currentPercentAbsolute=i,this.status.currentTime=n,this.status.remaining=this.status.duration-this.status.currentTime,this.status.videoWidth=e.videoWidth,this.status.videoHeight=e.videoHeight,this.status.readyState=e.readyState,this.status.networkState=e.networkState,this.status.playbackRate=e.playbackRate,this.status.ended=e.ended},_getAuroraStatus:function(e,t){var n=0,i=0,a=0,r=0;this.status.duration=e.duration/1e3,n=e.currentTime/1e3,i=0<this.status.duration?100*n/this.status.duration:0,r=0<e.buffered?(a=0<this.status.duration?e.buffered*this.status.duration/this.status.duration:100,0<this.status.duration?n/(e.buffered*this.status.duration):0):(a=100,i),t&&(i=r=n=0),this.status.seekPercent=a,this.status.currentPercentRelative=r,this.status.currentPercentAbsolute=i,this.status.currentTime=n,this.status.remaining=this.status.duration-this.status.currentTime,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_resetStatus:function(){this.status=l.extend({},this.status,l.jPlayer.prototype.status)},_trigger:function(e,t,n){e=l.Event(e);e.jPlayer={},e.jPlayer.version=l.extend({},this.version),e.jPlayer.options=l.extend(!0,{},this.options),e.jPlayer.status=l.extend(!0,{},this.status),e.jPlayer.html=l.extend(!0,{},this.html),e.jPlayer.aurora=l.extend(!0,{},this.aurora),e.jPlayer.flash=l.extend(!0,{},this.flash),t&&(e.jPlayer.error=l.extend({},t)),n&&(e.jPlayer.warning=l.extend({},n)),this.element.trigger(e)},jPlayerFlashEvent:function(e,t){var n,i;if(e===l.jPlayer.event.ready&&(this.internal.ready?this.flash.gate&&(this.status.srcSet&&(n=this.status.currentTime,i=this.status.paused,this.setMedia(this.status.media),this.volumeWorker(this.options.volume),0<n&&(i?this.pause(n):this.play(n))),this._trigger(l.jPlayer.event.flashreset)):(this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=t.version,this.version.needFlash!==this.version.flash&&this._error({type:l.jPlayer.error.VERSION,context:this.version.flash,message:l.jPlayer.errorMsg.VERSION+this.version.flash,hint:l.jPlayer.errorHint.VERSION}),this._trigger(l.jPlayer.event.repeat),this._trigger(e))),this.flash.gate)switch(e){case l.jPlayer.event.progress:case l.jPlayer.event.timeupdate:this._getFlashStatus(t),this._updateInterface(),this._trigger(e);break;case l.jPlayer.event.play:this._seeked(),this._updateButtons(!0),this._trigger(e);break;case l.jPlayer.event.pause:case l.jPlayer.event.ended:this._updateButtons(!1),this._trigger(e);break;case l.jPlayer.event.click:this._trigger(e);break;case l.jPlayer.event.error:this.status.waitForLoad=!0,this.status.waitForPlay=!0,this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"}),this._validString(this.status.media.poster)&&this.internal.poster.jq.show(),this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show(),this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media),this._updateButtons(!1),this._error({type:l.jPlayer.error.URL,context:t.src,message:l.jPlayer.errorMsg.URL,hint:l.jPlayer.errorHint.URL});break;case l.jPlayer.event.seeking:this._seeking(),this._trigger(e);break;case l.jPlayer.event.seeked:this._seeked(),this._trigger(e);break;case l.jPlayer.event.ready:break;default:this._trigger(e)}return!1},_getFlashStatus:function(e){this.status.seekPercent=e.seekPercent,this.status.currentPercentRelative=e.currentPercentRelative,this.status.currentPercentAbsolute=e.currentPercentAbsolute,this.status.currentTime=e.currentTime,this.status.duration=e.duration,this.status.remaining=e.duration-e.currentTime,this.status.videoWidth=e.videoWidth,this.status.videoHeight=e.videoHeight,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_updateButtons:function(e){e===c?e=!this.status.paused:this.status.paused=!e,e?this.addStateClass("playing"):this.removeStateClass("playing"),!this.status.noFullWindow&&this.options.fullWindow?this.addStateClass("fullScreen"):this.removeStateClass("fullScreen"),this.options.loop?this.addStateClass("looped"):this.removeStateClass("looped"),this.css.jq.play.length&&this.css.jq.pause.length&&(e?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide())),this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide())),this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%"),this.css.jq.playBar.length&&(this.options.smoothPlayBar?this.css.jq.playBar.stop().animate({width:this.status.currentPercentAbsolute+"%"},250,"linear"):this.css.jq.playBar.width(this.status.currentPercentRelative+"%"));this.css.jq.currentTime.length&&this._convertTime(this.status.currentTime)!==this.css.jq.currentTime.text()&&this.css.jq.currentTime.text(this._convertTime(this.status.currentTime));var e="",t=this.status.duration,n=this.status.remaining;this.css.jq.duration.length&&(e="string"==typeof this.status.media.duration?this.status.media.duration:("number"==typeof this.status.media.duration&&(n=(t=this.status.media.duration)-this.status.currentTime),this.options.remainingDuration?(0<n?"-":"")+this._convertTime(n):this._convertTime(t)))!==this.css.jq.duration.text()&&this.css.jq.duration.text(e)},_convertTime:e.prototype.time,_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg"),this.addStateClass("seeking")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg"),this.removeStateClass("seeking")},_resetGate:function(){this.html.audio.gate=!1,this.html.video.gate=!1,this.aurora.gate=!1,this.flash.gate=!1},_resetActive:function(){this.html.active=!1,this.aurora.active=!1,this.flash.active=!1},_escapeHtml:function(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")},_qualifyURL:function(e){var t=document.createElement("div");return t.innerHTML='<a href="'+this._escapeHtml(e)+'">x</a>',t.firstChild.href},_absoluteMediaUrls:function(n){var i=this;return l.each(n,function(e,t){t&&i.format[e]&&"data:"!==t.substr(0,5)&&(n[e]=i._qualifyURL(t))}),n},addStateClass:function(e){this.ancestorJq.length&&this.ancestorJq.addClass(this.options.stateClass[e])},removeStateClass:function(e){this.ancestorJq.length&&this.ancestorJq.removeClass(this.options.stateClass[e])},setMedia:function(r){var o=this,s=!1,e=this.status.media.poster!==r.poster;this._resetMedia(),this._resetGate(),this._resetActive(),this.androidFix.setMedia=!1,this.androidFix.play=!1,this.androidFix.pause=!1,r=this._absoluteMediaUrls(r),l.each(this.formats,function(e,i){var a="video"===o.format[i].media;if(l.each(o.solutions,function(e,t){if(o[t].support[i]&&o._validString(r[i])){var n="html"===t,t="aurora"===t;return a?(n?(o.html.video.gate=!0,o._html_setVideo(r),o.html.active=!0):(o.flash.gate=!0,o._flash_setVideo(r),o.flash.active=!0),o.css.jq.videoPlay.length&&o.css.jq.videoPlay.show(),o.status.video=!0):(n?(o.html.audio.gate=!0,o._html_setAudio(r),o.html.active=!0,l.jPlayer.platform.android&&(o.androidFix.setMedia=!0)):t?(o.aurora.gate=!0,o._aurora_setAudio(r),o.aurora.active=!0):(o.flash.gate=!0,o._flash_setAudio(r),o.flash.active=!0),o.css.jq.videoPlay.length&&o.css.jq.videoPlay.hide(),o.status.video=!1),!(s=!0)}}),s)return!1}),s?(this.status.nativeVideoControls&&this.html.video.gate||this._validString(r.poster)&&(e?this.htmlElement.poster.src=r.poster:this.internal.poster.jq.show()),"string"==typeof r.title&&(this.css.jq.title.length&&this.css.jq.title.html(r.title),this.htmlElement.audio&&this.htmlElement.audio.setAttribute("title",r.title),this.htmlElement.video&&this.htmlElement.video.setAttribute("title",r.title)),this.status.srcSet=!0,this.status.media=l.extend({},r),this._updateButtons(!1),this._updateInterface(),this._trigger(l.jPlayer.event.setmedia)):this._error({type:l.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:l.jPlayer.errorMsg.NO_SUPPORT,hint:l.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus(),this._updateButtons(!1),this._updateInterface(),this._seeked(),this.internal.poster.jq.hide(),clearTimeout(this.internal.htmlDlyCmdId),this.html.active?this._html_resetMedia():this.aurora.active?this._aurora_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia(),this.html.active?this._html_clearMedia():this.aurora.active?this._aurora_clearMedia():this.flash.active&&this._flash_clearMedia(),this._resetGate(),this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.aurora.active?this._aurora_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},focus:function(){this.options.keyEnabled&&(l.jPlayer.focus=this)},play:function(e){"object"==typeof e&&this.options.useStateClassSkin&&!this.status.paused?this.pause(e):(e="number"==typeof e?e:NaN,this.status.srcSet?(this.focus(),this.html.active?this._html_play(e):this.aurora.active?this._aurora_play(e):this.flash.active&&this._flash_play(e)):this._urlNotSetError("play"))},videoPlay:function(){this.play()},pause:function(e){e="number"==typeof e?e:NaN,this.status.srcSet?this.html.active?this._html_pause(e):this.aurora.active?this._aurora_pause(e):this.flash.active&&this._flash_pause(e):this._urlNotSetError("pause")},tellOthers:function(e,t){var n=this,i="function"==typeof t,a=Array.prototype.slice.call(arguments);"string"==typeof e&&(i&&a.splice(1,1),l.jPlayer.prototype.destroyRemoved(),l.each(this.instances,function(){n.element!==this&&(i&&!t.call(this.data("jPlayer"),n)||this.jPlayer.apply(this,a))}))},pauseOthers:function(e){this.tellOthers("pause",function(){return this.status.srcSet},e)},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.aurora.active?this._aurora_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(e){e=this._limitValue(e,0,100),this.status.srcSet?this.html.active?this._html_playHead(e):this.aurora.active?this._aurora_playHead(e):this.flash.active&&this._flash_playHead(e):this._urlNotSetError("playHead")},_muted:function(e){this.mutedWorker(e),this.options.globalVolume&&this.tellOthers("mutedWorker",function(){return this.options.globalVolume},e)},mutedWorker:function(e){this.options.muted=e,this.html.used&&this._html_setProperty("muted",e),this.aurora.used&&this._aurora_mute(e),this.flash.used&&this._flash_mute(e),this.html.video.gate||this.html.audio.gate||(this._updateMute(e),this._updateVolume(this.options.volume),this._trigger(l.jPlayer.event.volumechange))},mute:function(e){"object"==typeof e&&this.options.useStateClassSkin&&this.options.muted?this._muted(!1):this._muted(e=e===c||!!e)},unmute:function(e){this._muted(!(e=e===c||!!e))},_updateMute:function(e){(e=e===c?this.options.muted:e)?this.addStateClass("muted"):this.removeStateClass("muted"),this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):e?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(e){this.volumeWorker(e),this.options.globalVolume&&this.tellOthers("volumeWorker",function(){return this.options.globalVolume},e)},volumeWorker:function(e){e=this._limitValue(e,0,1),this.options.volume=e,this.html.used&&this._html_setProperty("volume",e),this.aurora.used&&this._aurora_volume(e),this.flash.used&&this._flash_volume(e),this.html.video.gate||this.html.audio.gate||(this._updateVolume(e),this._trigger(l.jPlayer.event.volumechange))},volumeBar:function(e){var t,n,i,a;this.css.jq.volumeBar.length&&(i=(a=l(e.currentTarget)).offset(),t=e.pageX-i.left,n=a.width(),i=a.height()-e.pageY+i.top,a=a.height(),this.options.verticalVolume?this.volume(i/a):this.volume(t/n)),this.options.muted&&this._muted(!1)},_updateVolume:function(e){e===c&&(e=this.options.volume),e=this.options.muted?0:e,this.status.noVolume?(this.addStateClass("noVolume"),this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.removeStateClass("noVolume"),this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*e+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1),this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(e){var n=this;this.options.cssSelectorAncestor=e,this._removeUiClass(),this.ancestorJq=e?l(e):[],e&&1!==this.ancestorJq.length&&this._warning({type:l.jPlayer.warning.CSS_SELECTOR_COUNT,context:e,message:l.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:l.jPlayer.warningHint.CSS_SELECTOR_COUNT}),this._addUiClass(),l.each(this.options.cssSelector,function(e,t){n._cssSelector(e,t)}),this._updateInterface(),this._updateButtons(),this._updateAutohide(),this._updateVolume(),this._updateMute()},_cssSelector:function(t,e){var n=this;"string"==typeof e?l.jPlayer.prototype.options.cssSelector[t]?(this.css.jq[t]&&this.css.jq[t].length&&this.css.jq[t].unbind(".jPlayer"),this.options.cssSelector[t]=e,this.css.cs[t]=this.options.cssSelectorAncestor+" "+e,this.css.jq[t]=e?l(this.css.cs[t]):[],this.css.jq[t].length&&this[t]&&this.css.jq[t].bind("click.jPlayer",function(e){e.preventDefault(),n[t](e),n.options.autoBlur?l(this).blur():l(this).focus()}),e&&1!==this.css.jq[t].length&&this._warning({type:l.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[t],message:l.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[t].length+" found for "+t+" method.",hint:l.jPlayer.warningHint.CSS_SELECTOR_COUNT})):this._warning({type:l.jPlayer.warning.CSS_SELECTOR_METHOD,context:t,message:l.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:l.jPlayer.warningHint.CSS_SELECTOR_METHOD}):this._warning({type:l.jPlayer.warning.CSS_SELECTOR_STRING,context:e,message:l.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:l.jPlayer.warningHint.CSS_SELECTOR_STRING})},duration:function(e){this.options.toggleDuration&&(this.options.captureDuration&&e.stopPropagation(),this._setOption("remainingDuration",!this.options.remainingDuration))},seekBar:function(e){var t,n;this.css.jq.seekBar.length&&(t=(n=l(e.currentTarget)).offset(),t=e.pageX-t.left,n=n.width(),this.playHead(100*t/n))},playbackRate:function(e){this._setOption("playbackRate",e)},playbackRateBar:function(e){var t,n,i,a;this.css.jq.playbackRateBar.length&&(n=(i=l(e.currentTarget)).offset(),t=e.pageX-n.left,a=i.width(),n=i.height()-e.pageY+n.top,i=i.height(),a=(this.options.verticalPlaybackRate?n/i:t/a)*(this.options.maxPlaybackRate-this.options.minPlaybackRate)+this.options.minPlaybackRate,this.playbackRate(a))},_updatePlaybackRate:function(){var e=(this.options.playbackRate-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);this.status.playbackRateEnabled?(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.show(),this.css.jq.playbackRateBarValue.length&&(this.css.jq.playbackRateBarValue.show(),this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"](100*e+"%"))):(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.hide(),this.css.jq.playbackRateBarValue.length&&this.css.jq.playbackRateBarValue.hide())},repeat:function(e){"object"==typeof e&&this.options.useStateClassSkin&&this.options.loop?this._loop(!1):this._loop(!0)},repeatOff:function(){this._loop(!1)},_loop:function(e){this.options.loop!==e&&(this.options.loop=e,this._updateButtons(),this._trigger(l.jPlayer.event.repeat))},option:function(e,t){var n=e;if(0===arguments.length)return l.extend(!0,{},this.options);if("string"==typeof e){var i=e.split(".");if(t===c){for(var a=l.extend(!0,{},this.options),r=0;r<i.length;r++){if(a[i[r]]===c)return this._warning({type:l.jPlayer.warning.OPTION_KEY,context:e,message:l.jPlayer.warningMsg.OPTION_KEY,hint:l.jPlayer.warningHint.OPTION_KEY}),c;a=a[i[r]]}return a}for(var o=n={},s=0;s<i.length;s++)s<i.length-1?(o[i[s]]={},o=o[i[s]]):o[i[s]]=t}return this._setOptions(n),this},_setOptions:function(e){var n=this;return l.each(e,function(e,t){n._setOption(e,t)}),this},_setOption:function(e,t){var n,i=this;switch(e){case"volume":this.volume(t);break;case"muted":this._muted(t);break;case"globalVolume":this.options[e]=t;break;case"cssSelectorAncestor":this._cssSelectorAncestor(t);break;case"cssSelector":l.each(t,function(e,t){i._cssSelector(e,t)});break;case"playbackRate":this.options[e]=t=this._limitValue(t,this.options.minPlaybackRate,this.options.maxPlaybackRate),this.html.used&&this._html_setProperty("playbackRate",t),this._updatePlaybackRate();break;case"defaultPlaybackRate":this.options[e]=t=this._limitValue(t,this.options.minPlaybackRate,this.options.maxPlaybackRate),this.html.used&&this._html_setProperty("defaultPlaybackRate",t),this._updatePlaybackRate();break;case"minPlaybackRate":this.options[e]=t=this._limitValue(t,.1,this.options.maxPlaybackRate-.1),this._updatePlaybackRate();break;case"maxPlaybackRate":this.options[e]=t=this._limitValue(t,this.options.minPlaybackRate+.1,16),this._updatePlaybackRate();break;case"fullScreen":this.options[e]!==t&&((n=l.jPlayer.nativeFeatures.fullscreen.used.webkitVideo)&&this.status.waitForPlay||(n||(this.options[e]=t),t?this._requestFullscreen():this._exitFullscreen(),n||this._setOption("fullWindow",t)));break;case"fullWindow":this.options[e]!==t&&(this._removeUiClass(),this.options[e]=t,this._refreshSize());break;case"size":this.options.fullWindow||this.options[e].cssClass===t.cssClass||this._removeUiClass(),this.options[e]=l.extend({},this.options[e],t),this._refreshSize();break;case"sizeFull":this.options.fullWindow&&this.options[e].cssClass!==t.cssClass&&this._removeUiClass(),this.options[e]=l.extend({},this.options[e],t),this._refreshSize();break;case"autohide":this.options[e]=l.extend({},this.options[e],t),this._updateAutohide();break;case"loop":this._loop(t);break;case"remainingDuration":this.options[e]=t,this._updateInterface();break;case"toggleDuration":this.options[e]=t;break;case"nativeVideoControls":this.options[e]=l.extend({},this.options[e],t),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this._restrictNativeVideoControls(),this._updateNativeVideoControls();break;case"noFullWindow":this.options[e]=l.extend({},this.options[e],t),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this._restrictNativeVideoControls(),this._updateButtons();break;case"noVolume":this.options[e]=l.extend({},this.options[e],t),this.status.noVolume=this._uaBlocklist(this.options.noVolume),this._updateVolume(),this._updateMute();break;case"emulateHtml":this.options[e]!==t&&((this.options[e]=t)?this._emulateHtmlBridge():this._destroyHtmlBridge());break;case"timeFormat":this.options[e]=l.extend({},this.options[e],t);break;case"keyEnabled":(this.options[e]=t)||this!==l.jPlayer.focus||(l.jPlayer.focus=null);break;case"keyBindings":this.options[e]=l.extend(!0,{},this.options[e],t);break;case"audioFullScreen":case"autoBlur":this.options[e]=t}return this},_refreshSize:function(){this._setSize(),this._addUiClass(),this._updateSize(),this._updateButtons(),this._updateAutohide(),this._trigger(l.jPlayer.event.resize)},_setSize:function(){this.options.fullWindow?(this.status.width=this.options.sizeFull.width,this.status.height=this.options.sizeFull.height,this.status.cssClass=this.options.sizeFull.cssClass):(this.status.width=this.options.size.width,this.status.height=this.options.size.height,this.status.cssClass=this.options.size.cssClass),this.element.css({width:this.status.width,height:this.status.height})},_addUiClass:function(){this.ancestorJq.length&&this.ancestorJq.addClass(this.status.cssClass)},_removeUiClass:function(){this.ancestorJq.length&&this.ancestorJq.removeClass(this.status.cssClass)},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):!this.status.waitForPlay&&this.flash.active&&this.status.video&&this.internal.flash.jq.css({width:this.status.width,height:this.status.height})},_updateAutohide:function(){function e(e){var t,n,i=!1,i=void 0===a.internal.mouse||(t=a.internal.mouse.x-e.pageX,n=a.internal.mouse.y-e.pageY,0<Math.floor(t)||0<Math.floor(n));a.internal.mouse={x:e.pageX,y:e.pageY},i&&a.css.jq.gui.fadeIn(a.options.autohide.fadeIn,function(){clearTimeout(a.internal.autohideId),a.internal.autohideId=setTimeout(function(){a.css.jq.gui.fadeOut(a.options.autohide.fadeOut)},a.options.autohide.hold)})}var a=this,t=".jPlayerAutohide",n="mousemove.jPlayer"+t;this.css.jq.gui.length&&(this.css.jq.gui.stop(!0,!0),clearTimeout(this.internal.autohideId),delete this.internal.mouse,this.element.unbind(t),this.css.jq.gui.unbind(t),this.status.nativeVideoControls?this.css.jq.gui.hide():this.options.fullWindow&&this.options.autohide.full||!this.options.fullWindow&&this.options.autohide.restored?(this.element.bind(n,e),this.css.jq.gui.bind(n,e),this.css.jq.gui.hide()):this.css.jq.gui.show())},fullScreen:function(e){"object"==typeof e&&this.options.useStateClassSkin&&this.options.fullScreen?this._setOption("fullScreen",!1):this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",!1)},_fullscreenAddEventListeners:function(){var e=this,t=l.jPlayer.nativeFeatures.fullscreen;t.api.fullscreenEnabled&&t.event.fullscreenchange&&("function"!=typeof this.internal.fullscreenchangeHandler&&(this.internal.fullscreenchangeHandler=function(){e._fullscreenchange()}),document.addEventListener(t.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1))},_fullscreenRemoveEventListeners:function(){var e=l.jPlayer.nativeFeatures.fullscreen;this.internal.fullscreenchangeHandler&&document.removeEventListener(e.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1)},_fullscreenchange:function(){this.options.fullScreen&&!l.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()&&this._setOption("fullScreen",!1)},_requestFullscreen:function(){var e=(this.ancestorJq.length?this.ancestorJq:this.element)[0],t=l.jPlayer.nativeFeatures.fullscreen;t.used.webkitVideo&&(e=this.htmlElement.video),t.api.fullscreenEnabled&&t.api.requestFullscreen(e)},_exitFullscreen:function(){var e,t=l.jPlayer.nativeFeatures.fullscreen;t.used.webkitVideo&&(e=this.htmlElement.video),t.api.fullscreenEnabled&&t.api.exitFullscreen(e)},_html_initMedia:function(e){var i=l(this.htmlElement.media).empty();l.each(e.track||[],function(e,t){var n=document.createElement("track");n.setAttribute("kind",t.kind||""),n.setAttribute("src",t.src||""),n.setAttribute("srclang",t.srclang||""),n.setAttribute("label",t.label||""),t.def&&n.setAttribute("default",t.def),i.append(n)}),this.htmlElement.media.src=this.status.src,"none"!==this.options.preload&&this._html_load(),this._trigger(l.jPlayer.event.timeupdate)},_html_setFormat:function(n){var i=this;l.each(this.formats,function(e,t){if(i.html.support[t]&&n[t])return i.status.src=n[t],i.status.format[t]=!0,i.status.formatType=t,!1})},_html_setAudio:function(e){this._html_setFormat(e),this.htmlElement.media=this.htmlElement.audio,this._html_initMedia(e)},_html_setVideo:function(e){this._html_setFormat(e),this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._validString(e.poster)?e.poster:""),this.htmlElement.media=this.htmlElement.video,this._html_initMedia(e)},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id!==this.internal.video.id||this.status.nativeVideoControls||this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause())},_html_clearMedia:function(){this.htmlElement.media&&(this.htmlElement.media.src="about:blank",this.htmlElement.media.load())},_html_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.htmlElement.media.load()),clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(t){var n=this,e=this.htmlElement.media;if(this.androidFix.pause=!1,this._html_load(),this.androidFix.setMedia)this.androidFix.play=!0,this.androidFix.time=t;else if(isNaN(t))e.play();else{this.internal.cmdsIgnored&&e.play();try{if(e.seekable&&!("object"==typeof e.seekable&&0<e.seekable.length))throw 1;e.currentTime=t,e.play()}catch(e){return void(this.internal.htmlDlyCmdId=setTimeout(function(){n.play(t)},250))}}this._html_checkWaitForPlay()},_html_pause:function(t){var n=this,e=this.htmlElement.media;if(this.androidFix.play=!1,0<t?this._html_load():clearTimeout(this.internal.htmlDlyCmdId),e.pause(),this.androidFix.setMedia)this.androidFix.pause=!0,this.androidFix.time=t;else if(!isNaN(t))try{if(e.seekable&&!("object"==typeof e.seekable&&0<e.seekable.length))throw 1;e.currentTime=t}catch(e){return void(this.internal.htmlDlyCmdId=setTimeout(function(){n.pause(t)},250))}0<t&&this._html_checkWaitForPlay()},_html_playHead:function(t){var n=this,e=this.htmlElement.media;this._html_load();try{if("object"==typeof e.seekable&&0<e.seekable.length)e.currentTime=t*e.seekable.end(e.seekable.length-1)/100;else{if(!(0<e.duration)||isNaN(e.duration))throw"e";e.currentTime=t*e.duration/100}}catch(e){return void(this.internal.htmlDlyCmdId=setTimeout(function(){n.playHead(t)},250))}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})))},_html_setProperty:function(e,t){this.html.audio.available&&(this.htmlElement.audio[e]=t),this.html.video.available&&(this.htmlElement.video[e]=t)},_aurora_setAudio:function(n){var i=this;l.each(this.formats,function(e,t){if(i.aurora.support[t]&&n[t])return i.status.src=n[t],i.status.format[t]=!0,i.status.formatType=t,!1}),this.aurora.player=new AV.Player.fromURL(this.status.src),this._addAuroraEventListeners(this.aurora.player,this.aurora),"auto"===this.options.preload&&(this._aurora_load(),this.status.waitForLoad=!1)},_aurora_resetMedia:function(){this.aurora.player&&this.aurora.player.stop()},_aurora_clearMedia:function(){},_aurora_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.aurora.player.preload())},_aurora_play:function(e){this.status.waitForLoad||isNaN(e)||this.aurora.player.seek(e),this.aurora.player.playing||this.aurora.player.play(),this.status.waitForLoad=!1,this._aurora_checkWaitForPlay(),this._updateButtons(!0),this._trigger(l.jPlayer.event.play)},_aurora_pause:function(e){isNaN(e)||this.aurora.player.seek(1e3*e),this.aurora.player.pause(),0<e&&this._aurora_checkWaitForPlay(),this._updateButtons(!1),this._trigger(l.jPlayer.event.pause)},_aurora_playHead:function(e){0<this.aurora.player.duration&&this.aurora.player.seek(e*this.aurora.player.duration/100),this.status.waitForLoad||this._aurora_checkWaitForPlay()},_aurora_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1)},_aurora_volume:function(e){this.aurora.player.volume=100*e},_aurora_mute:function(e){e?(this.aurora.properties.lastvolume=this.aurora.player.volume,this.aurora.player.volume=0):this.aurora.player.volume=this.aurora.properties.lastvolume,this.aurora.properties.muted=e},_flash_setAudio:function(n){var i=this;try{l.each(this.formats,function(e,t){if(i.flash.support[t]&&n[t]){switch(t){case"m4a":case"fla":i._getMovie().fl_setAudio_m4a(n[t]);break;case"mp3":i._getMovie().fl_setAudio_mp3(n[t]);break;case"rtmpa":i._getMovie().fl_setAudio_rtmp(n[t])}return i.status.src=n[t],i.status.format[t]=!0,i.status.formatType=t,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(e){this._flashError(e)}},_flash_setVideo:function(n){var i=this;try{l.each(this.formats,function(e,t){if(i.flash.support[t]&&n[t]){switch(t){case"m4v":case"flv":i._getMovie().fl_setVideo_m4v(n[t]);break;case"rtmpv":i._getMovie().fl_setVideo_rtmp(n[t])}return i.status.src=n[t],i.status.format[t]=!0,i.status.formatType=t,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(e){this._flashError(e)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"}),this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(e){this._flashError(e)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(e){this._flashError(e)}this.status.waitForLoad=!1},_flash_play:function(e){try{this._getMovie().fl_play(e)}catch(e){this._flashError(e)}this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_pause:function(e){try{this._getMovie().fl_pause(e)}catch(e){this._flashError(e)}0<e&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(e){try{this._getMovie().fl_play_head(e)}catch(e){this._flashError(e)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height})))},_flash_volume:function(e){try{this._getMovie().fl_volume(e)}catch(e){this._flashError(e)}},_flash_mute:function(e){try{this._getMovie().fl_mute(e)}catch(e){this._flashError(e)}},_getMovie:function(){return document[this.internal.flash.id]},_getFlashPluginVersion:function(){var e,t,n=0;if(window.ActiveXObject)try{!(t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))||(e=t.GetVariable("$version"))&&(e=e.split(" ")[1].split(","),n=parseInt(e[0],10)+"."+parseInt(e[1],10))}catch(e){}else navigator.plugins&&0<navigator.mimeTypes.length&&(t=navigator.plugins["Shockwave Flash"])&&(n=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1"));return+n},_checkForFlash:function(e){var t=!1;return t=this._getFlashPluginVersion()>=e?!0:t},_validString:function(e){return e&&"string"==typeof e},_limitValue:function(e,t,n){return e<t?t:n<e?n:e},_urlNotSetError:function(e){this._error({type:l.jPlayer.error.URL_NOT_SET,context:e,message:l.jPlayer.errorMsg.URL_NOT_SET,hint:l.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(e){var t=this.internal.ready?"FLASH_DISABLED":"FLASH";this._error({type:l.jPlayer.error[t],context:this.internal.flash.swf,message:l.jPlayer.errorMsg[t]+e.message,hint:l.jPlayer.errorHint[t]}),this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(e){this._trigger(l.jPlayer.event.error,e),this.options.errorAlerts&&this._alert("Error!"+(e.message?"\n"+e.message:"")+(e.hint?"\n"+e.hint:"")+"\nContext: "+e.context)},_warning:function(e){this._trigger(l.jPlayer.event.warning,c,e),this.options.warningAlerts&&this._alert("Warning!"+(e.message?"\n"+e.message:"")+(e.hint?"\n"+e.hint:"")+"\nContext: "+e.context)},_alert:function(e){e="jPlayer "+this.version.script+":id='"+this.internal.self.id+"':"+e;this.options.consoleAlerts?window.console&&window.console.log&&window.console.log(e):alert(e)},_emulateHtmlBridge:function(){var a=this;l.each(l.jPlayer.emulateMethods.split(/\s+/g),function(e,t){a.internal.domNode[t]=function(e){a[t](e)}}),l.each(l.jPlayer.event,function(n,e){var i=!0;l.each(l.jPlayer.reservedEvent.split(/\s+/g),function(e,t){if(t===n)return i=!1}),i&&a.element.bind(e+".jPlayer.jPlayerHtml",function(){a._emulateHtmlUpdate();var e=document.createEvent("Event");e.initEvent(n,!1,!0),a.internal.domNode.dispatchEvent(e)})})},_emulateHtmlUpdate:function(){var n=this;l.each(l.jPlayer.emulateStatus.split(/\s+/g),function(e,t){n.internal.domNode[t]=n.status[t]}),l.each(l.jPlayer.emulateOptions.split(/\s+/g),function(e,t){n.internal.domNode[t]=n.options[t]})},_destroyHtmlBridge:function(){var n=this;this.element.unbind(".jPlayerHtml");var e=l.jPlayer.emulateMethods+" "+l.jPlayer.emulateStatus+" "+l.jPlayer.emulateOptions;l.each(e.split(/\s+/g),function(e,t){delete n.internal.domNode[t]})}},l.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"},l.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+l.jPlayer.prototype.version.script+" needs Jplayer.swf version "+l.jPlayer.prototype.version.needFlash+" but found "},l.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."},l.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"},l.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."},l.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(I){var l,R,i,a,s,r,m,M,P,_,p,c,u,d,h,f,g,y,v,w,b,j,x,k,C,S,T,E,O,o,Q,D,N,A,L,q,z,F,U,H,B,W,Y,V,$,G,K,X,J,Z,t,ee,te,ne,ie,ae,re,e,n,oe;e="function"==typeof define&&define.amd,n="undefined"!=typeof module&&module.exports,oe="http:"==document.location.protocol?"http:":"https:",e||(n?require("jquery-mousewheel")(I):I.event.special.mousewheel||I("head").append(decodeURI("%3Cscript src="+oe+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),l="mCustomScrollbar",R="mCS",i=".mCustomScrollbar",a={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},s=0,r={},m=window.attachEvent&&!window.addEventListener?1:0,M=!1,_=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],p={init:function(o){var o=I.extend(!0,{},a,o),e=c.call(this);if(o.live){var t=o.liveSelector||this.selector||i,n=I(t);if("off"===o.live)return void d(t);r[t]=setTimeout(function(){n.mCustomScrollbar(o),"once"===o.live&&n.length&&d(t)},500)}else d(t);return o.setWidth=o.set_width||o.setWidth,o.setHeight=o.set_height||o.setHeight,o.axis=o.horizontalScroll?"x":h(o.axis),o.scrollInertia=0<o.scrollInertia&&o.scrollInertia<17?17:o.scrollInertia,"object"!=typeof o.mouseWheel&&1==o.mouseWheel&&(o.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),o.mouseWheel.scrollAmount=o.mouseWheelPixels||o.mouseWheel.scrollAmount,o.mouseWheel.normalizeDelta=o.advanced.normalizeMouseWheelDelta||o.mouseWheel.normalizeDelta,o.scrollButtons.scrollType=f(o.scrollButtons.scrollType),u(o),I(e).each(function(){var e,t,n,i,a,r=I(this);r.data(R)||(r.data(R,{idx:++s,opt:o,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:r.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}}),t=(e=r.data(R)).opt,n=r.data("mcs-axis"),i=r.data("mcs-scrollbar-position"),a=r.data("mcs-theme"),n&&(t.axis=n),i&&(t.scrollbarPosition=i),a&&(t.theme=a,u(t)),g.call(this),e&&t.callbacks.onCreate&&"function"==typeof t.callbacks.onCreate&&t.callbacks.onCreate.call(this),I("#mCSB_"+e.idx+"_container img:not(."+_[2]+")").addClass(_[2]),p.update.call(null,r))})},update:function(e,o){e=e||c.call(this);return I(e).each(function(){var e,t,n,i,a,r=I(this);r.data(R)&&(t=(e=r.data(R)).opt,a=I("#mCSB_"+e.idx+"_container"),n=I("#mCSB_"+e.idx),i=[I("#mCSB_"+e.idx+"_dragger_vertical"),I("#mCSB_"+e.idx+"_dragger_horizontal")],a.length&&(e.tweenRunning&&K(r),o&&e&&t.callbacks.onBeforeUpdate&&"function"==typeof t.callbacks.onBeforeUpdate&&t.callbacks.onBeforeUpdate.call(this),r.hasClass(_[3])&&r.removeClass(_[3]),r.hasClass(_[4])&&r.removeClass(_[4]),n.css("max-height","none"),n.height()!==r.height()&&n.css("max-height",r.height()),v.call(this),"y"===t.axis||t.advanced.autoExpandHorizontalScroll||a.css("width",y(a)),e.overflowed=k.call(this),E.call(this),t.autoDraggerLength&&b.call(this),j.call(this),S.call(this),a=[Math.abs(a[0].offsetTop),Math.abs(a[0].offsetLeft)],"x"!==t.axis&&(e.overflowed[0]?i[0].height()>i[0].parent().height()?C.call(this):(X(r,a[0].toString(),{dir:"y",dur:0,overwrite:"none"}),e.contentReset.y=null):(C.call(this),"y"===t.axis?T.call(this):"yx"===t.axis&&e.overflowed[1]&&X(r,a[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==t.axis&&(e.overflowed[1]?i[1].width()>i[1].parent().width()?C.call(this):(X(r,a[1].toString(),{dir:"x",dur:0,overwrite:"none"}),e.contentReset.x=null):(C.call(this),"x"===t.axis?T.call(this):"yx"===t.axis&&e.overflowed[0]&&X(r,a[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&e&&(2===o&&t.callbacks.onImageLoad&&"function"==typeof t.callbacks.onImageLoad?t.callbacks.onImageLoad.call(this):3===o&&t.callbacks.onSelectorChange&&"function"==typeof t.callbacks.onSelectorChange?t.callbacks.onSelectorChange.call(this):t.callbacks.onUpdate&&"function"==typeof t.callbacks.onUpdate&&t.callbacks.onUpdate.call(this)),G.call(this)))})},scrollTo:function(o,s){if(void 0!==o&&null!=o){var e=c.call(this);return I(e).each(function(){var e,t,n,i,a,r=I(this);r.data(R)&&(e=r.data(R),a={trigger:"external",scrollInertia:(t=e.opt).scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=I.extend(!0,{},a,s),i=V.call(this,o),a=0<n.scrollInertia&&n.scrollInertia<17?17:n.scrollInertia,i[0]=$.call(this,i[0],"y"),i[1]=$.call(this,i[1],"x"),n.moveDragger&&(i[0]*=e.scrollRatio.y,i[1]*=e.scrollRatio.x),n.dur=re()?0:a,setTimeout(function(){null!==i[0]&&void 0!==i[0]&&"x"!==t.axis&&e.overflowed[0]&&(n.dir="y",n.overwrite="all",X(r,i[0].toString(),n)),null!==i[1]&&void 0!==i[1]&&"y"!==t.axis&&e.overflowed[1]&&(n.dir="x",n.overwrite="none",X(r,i[1].toString(),n))},n.timeout))})}},stop:function(){var e=c.call(this);return I(e).each(function(){var e=I(this);e.data(R)&&K(e)})},disable:function(t){var e=c.call(this);return I(e).each(function(){var e=I(this);e.data(R)&&(e.data(R),G.call(this,"remove"),T.call(this),t&&C.call(this),E.call(this,!0),e.addClass(_[3]))})},destroy:function(){var o=c.call(this);return I(o).each(function(){var e,t,n,i,a,r=I(this);r.data(R)&&(t=(e=r.data(R)).opt,n=I("#mCSB_"+e.idx),i=I("#mCSB_"+e.idx+"_container"),a=I(".mCSB_"+e.idx+"_scrollbar"),t.live&&d(t.liveSelector||I(o).selector),G.call(this,"remove"),T.call(this),C.call(this),r.removeData(R),ee(this,"mcs"),a.remove(),i.find("img."+_[2]).removeClass(_[2]),n.replaceWith(i.contents()),r.removeClass(l+" _"+R+"_"+e.idx+" "+_[6]+" "+_[7]+" "+_[5]+" "+_[3]).addClass(_[4]))})}},c=function(){return"object"!=typeof I(this)||I(this).length<1?i:this},u=function(e){e.autoDraggerLength=!(-1<I.inArray(e.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"]))&&e.autoDraggerLength,e.autoExpandScrollbar=!(-1<I.inArray(e.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"]))&&e.autoExpandScrollbar,e.scrollButtons.enable=!(-1<I.inArray(e.theme,["minimal","minimal-dark"]))&&e.scrollButtons.enable,e.autoHideScrollbar=-1<I.inArray(e.theme,["minimal","minimal-dark"])||e.autoHideScrollbar,e.scrollbarPosition=-1<I.inArray(e.theme,["minimal","minimal-dark"])?"outside":e.scrollbarPosition},d=function(e){r[e]&&(clearTimeout(r[e]),ee(r,e))},h=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},f=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},g=function(){var e=I(this),t=e.data(R),n=t.opt,i=n.autoExpandScrollbar?" "+_[1]+"_expand":"",a=["<div id='mCSB_"+t.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_vertical"+i+"'><div class='"+_[12]+"'><div id='mCSB_"+t.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+t.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_horizontal"+i+"'><div class='"+_[12]+"'><div id='mCSB_"+t.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],r="yx"===n.axis?"mCSB_vertical_horizontal":"x"===n.axis?"mCSB_horizontal":"mCSB_vertical",o="yx"===n.axis?a[0]+a[1]:"x"===n.axis?a[1]:a[0],s="yx"===n.axis?"<div id='mCSB_"+t.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",i=n.autoHideScrollbar?" "+_[6]:"",a="x"!==n.axis&&"rtl"===t.langDir?" "+_[7]:"";n.setWidth&&e.css("width",n.setWidth),n.setHeight&&e.css("height",n.setHeight),n.setLeft="y"!==n.axis&&"rtl"===t.langDir?"989999px":n.setLeft,e.addClass(l+" _"+R+"_"+t.idx+i+a).wrapInner("<div id='mCSB_"+t.idx+"' class='mCustomScrollBox mCS-"+n.theme+" "+r+"'><div id='mCSB_"+t.idx+"_container' class='mCSB_container' style='position:relative; top:"+n.setTop+"; left:"+n.setLeft+";' dir='"+t.langDir+"' /></div>");a=I("#mCSB_"+t.idx),r=I("#mCSB_"+t.idx+"_container");"y"===n.axis||n.advanced.autoExpandHorizontalScroll||r.css("width",y(r)),"outside"===n.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),a.addClass("mCSB_outside").after(o)):(a.addClass("mCSB_inside").append(o),r.wrap(s)),w.call(this);t=[I("#mCSB_"+t.idx+"_dragger_vertical"),I("#mCSB_"+t.idx+"_dragger_horizontal")];t[0].css("min-height",t[0].height()),t[1].css("min-width",t[1].width())},y=function(e){var t=[e[0].scrollWidth,Math.max.apply(Math,e.children().map(function(){return I(this).outerWidth(!0)}).get())],e=e.parent().width();return e<t[0]?t[0]:e<t[1]?t[1]:"100%"},v=function(){var e=I(this).data(R),t=e.opt,n=I("#mCSB_"+e.idx+"_container");t.advanced.autoExpandHorizontalScroll&&"y"!==t.axis&&(n.css({width:"auto","min-width":0,"overflow-x":"scroll"}),e=Math.ceil(n[0].scrollWidth),3===t.advanced.autoExpandHorizontalScroll||2!==t.advanced.autoExpandHorizontalScroll&&e>n.parent().width()?n.css({width:e,"min-width":"100%","overflow-x":"inherit"}):n.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(n[0].getBoundingClientRect().right+.4)-Math.floor(n[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap())},w=function(){var e=I(this).data(R),t=e.opt,n=I(".mCSB_"+e.idx+"_scrollbar:first"),e=ie(t.scrollButtons.tabindex)?"tabindex='"+t.scrollButtons.tabindex+"'":"",e=["<a href='#' class='"+_[13]+"' "+e+" />","<a href='#' class='"+_[14]+"' "+e+" />","<a href='#' class='"+_[15]+"' "+e+" />","<a href='#' class='"+_[16]+"' "+e+" />"],e=["x"===t.axis?e[2]:e[0],"x"===t.axis?e[3]:e[1],e[2],e[3]];t.scrollButtons.enable&&n.prepend(e[0]).append(e[1]).next(".mCSB_scrollTools").prepend(e[2]).append(e[3])},b=function(){var e=I(this).data(R),t=I("#mCSB_"+e.idx),n=I("#mCSB_"+e.idx+"_container"),e=[I("#mCSB_"+e.idx+"_dragger_vertical"),I("#mCSB_"+e.idx+"_dragger_horizontal")],t=[t.height()/n.outerHeight(!1),t.width()/n.outerWidth(!1)],n=[parseInt(e[0].css("min-height")),Math.round(t[0]*e[0].parent().height()),parseInt(e[1].css("min-width")),Math.round(t[1]*e[1].parent().width())],t=m&&n[3]<n[2]?n[2]:n[3];e[0].css({height:m&&n[1]<n[0]?n[0]:n[1],"max-height":e[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":n[0]+"px"}),e[1].css({width:t,"max-width":e[1].parent().width()-10})},j=function(){var e=I(this).data(R),t=I("#mCSB_"+e.idx),n=I("#mCSB_"+e.idx+"_container"),i=[I("#mCSB_"+e.idx+"_dragger_vertical"),I("#mCSB_"+e.idx+"_dragger_horizontal")],t=[n.outerHeight(!1)-t.height(),n.outerWidth(!1)-t.width()],i=[t[0]/(i[0].parent().height()-i[0].height()),t[1]/(i[1].parent().width()-i[1].width())];e.scrollRatio={y:i[0],x:i[1]}},x=function(e,t,n){var i=n?_[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(_[0]+" "+i),n.toggleClass(_[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(_[0]),n.removeClass(_[1])):(e.addClass(_[0]),n.addClass(_[1])))},k=function(){var e=I(this).data(R),t=I("#mCSB_"+e.idx),n=I("#mCSB_"+e.idx+"_container"),i=null==e.overflowed?n.height():n.outerHeight(!1),a=null==e.overflowed?n.width():n.outerWidth(!1),e=n[0].scrollHeight,n=n[0].scrollWidth;return a<n&&(a=n),[(i=i<e?e:i)>t.height(),a>t.width()]},C=function(){var e=I(this),t=e.data(R),n=t.opt,i=I("#mCSB_"+t.idx),a=I("#mCSB_"+t.idx+"_container"),r=[I("#mCSB_"+t.idx+"_dragger_vertical"),I("#mCSB_"+t.idx+"_dragger_horizontal")];K(e),("x"!==n.axis&&!t.overflowed[0]||"y"===n.axis&&t.overflowed[0])&&(r[0].add(a).css("top",0),X(e,"_resetY")),("y"!==n.axis&&!t.overflowed[1]||"x"===n.axis&&t.overflowed[1])&&(n=dx=0,"rtl"===t.langDir&&(n=i.width()-a.outerWidth(!1),dx=Math.abs(n/t.scrollRatio.x)),a.css("left",n),r[1].css("left",dx),X(e,"_resetX"))},S=function(){var t,n=I(this),e=n.data(R),i=e.opt;e.bindEvents||(o.call(this),i.contentTouchScroll&&Q.call(this),D.call(this),i.mouseWheel.enable&&function e(){t=setTimeout(function(){I.event.special.mousewheel?(clearTimeout(t),N.call(n[0])):e()},100)}(),F.call(this),H.call(this),i.advanced.autoScrollOnFocus&&U.call(this),i.scrollButtons.enable&&B.call(this),i.keyboard.enable&&W.call(this),e.bindEvents=!0)},T=function(){var e=I(this),t=e.data(R),n=t.opt,i="mCS_"+t.idx,a=".mCSB_"+t.idx+"_scrollbar",r=I("#mCSB_"+t.idx+",#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,"+a+" ."+_[12]+",#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal,"+a+">a"),a=I("#mCSB_"+t.idx+"_container");n.advanced.releaseDraggableSelectors&&r.add(I(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&r.add(I(n.advanced.extraDraggableSelectors)),t.bindEvents&&(I(document).add(I(!L()||top.document)).unbind("."+i),r.each(function(){I(this).unbind("."+i)}),clearTimeout(e[0]._focusTimeout),ee(e[0],"_focusTimeout"),clearTimeout(t.sequential.step),ee(t.sequential,"step"),clearTimeout(a[0].onCompleteTimeout),ee(a[0],"onCompleteTimeout"),t.bindEvents=!1)},E=function(e){var t=I(this),n=t.data(R),i=n.opt,a=I("#mCSB_"+n.idx+"_container_wrapper"),r=a.length?a:I("#mCSB_"+n.idx+"_container"),o=[I("#mCSB_"+n.idx+"_scrollbar_vertical"),I("#mCSB_"+n.idx+"_scrollbar_horizontal")],a=[o[0].find(".mCSB_dragger"),o[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!e?(o[0].add(a[0]).add(o[0].children("a")).css("display","block"),r.removeClass(_[8]+" "+_[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&a[0].css("display","none"),r.removeClass(_[10])):(o[0].css("display","none"),r.addClass(_[10])),r.addClass(_[8]))),"y"!==i.axis&&(n.overflowed[1]&&!e?(o[1].add(a[1]).add(o[1].children("a")).css("display","block"),r.removeClass(_[9]+" "+_[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&a[1].css("display","none"),r.removeClass(_[11])):(o[1].css("display","none"),r.addClass(_[11])),r.addClass(_[9]))),n.overflowed[0]||n.overflowed[1]?t.removeClass(_[5]):t.addClass(_[5])},O=function(e){var t=e.type,n=e.target.ownerDocument!==document&&null!==frameElement?[I(frameElement).offset().top,I(frameElement).offset().left]:null,i=L()&&e.target.ownerDocument!==top.document&&null!==frameElement?[I(e.view.frameElement).offset().top,I(e.view.frameElement).offset().left]:[0,0];switch(t){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return n?[e.originalEvent.pageY-n[0]+i[0],e.originalEvent.pageX-n[1]+i[1],!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var a=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],r=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[a.screenY,a.screenX,1<r]:[a.pageY,a.pageX,1<r];default:return n?[e.pageY-n[0]+i[0],e.pageX-n[1]+i[1],!1]:[e.pageY,e.pageX,!1]}},o=function(){var r,a,o,s=I(this),l=s.data(R),c=l.opt,e="mCS_"+l.idx,u=["mCSB_"+l.idx+"_dragger_vertical","mCSB_"+l.idx+"_dragger_horizontal"],d=I("#mCSB_"+l.idx+"_container"),t=I("#"+u[0]+",#"+u[1]),n=c.advanced.releaseDraggableSelectors?t.add(I(c.advanced.releaseDraggableSelectors)):t,i=c.advanced.extraDraggableSelectors?I(!L()||top.document).add(I(c.advanced.extraDraggableSelectors)):I(!L()||top.document);function p(e,t,n,i){var a;d[0].idleTimer=c.scrollInertia<233?250:0,n=r.attr("id")===u[1]?(a="x",(r[0].offsetLeft-t+i)*l.scrollRatio.x):(a="y",(r[0].offsetTop-e+n)*l.scrollRatio.y),X(s,n.toString(),{dir:a,drag:!0})}t.bind("contextmenu."+e,function(e){e.preventDefault()}).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){var t,n,i;e.stopImmediatePropagation(),e.preventDefault(),te(e)&&(M=!0,m&&(document.onselectstart=function(){return!1}),q.call(d,!1),K(s),i=(r=I(this)).offset(),t=O(e)[0]-i.top,n=O(e)[1]-i.left,e=r.height()+i.top,i=r.width()+i.left,t<e&&0<t&&n<i&&0<n&&(a=t,o=n),x(r,"active",c.autoExpandScrollbar))}).bind("touchmove."+e,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=r.offset(),n=O(e)[0]-t.top,t=O(e)[1]-t.left;p(a,o,n,t)}),I(document).add(i).bind("mousemove."+e+" pointermove."+e+" MSPointerMove."+e,function(e){var t,n;r&&(n=r.offset(),t=O(e)[0]-n.top,n=O(e)[1]-n.left,a===t&&o===n||p(a,o,t,n))}).add(n).bind("mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(e){r&&(x(r,"active",c.autoExpandScrollbar),r=null),M=!1,m&&(document.onselectstart=null),q.call(d,!0)})},Q=function(){var o,s,l,r,c,u,d,p,h,f,m,_,g=I(this),y=g.data(R),v=y.opt,e="mCS_"+y.idx,w=I("#mCSB_"+y.idx),b=I("#mCSB_"+y.idx+"_container"),j=[I("#mCSB_"+y.idx+"_dragger_vertical"),I("#mCSB_"+y.idx+"_dragger_horizontal")],k=[],x=[],C=0,S="yx"===v.axis?"none":"all",T=[],t=b.find("iframe"),n=["touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,"touchmove."+e+" pointermove."+e+" MSPointerMove."+e,"touchend."+e+" pointerup."+e+" MSPointerUp."+e],E=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;function i(e){var t;!ne(e)||M||O(e)[2]?P=0:(_=m=0,o=P=1,g.removeClass("mCS_touch_action"),t=b.offset(),s=O(e)[0]-t.top,l=O(e)[1]-t.left,T=[O(e)[0],O(e)[1]])}function a(e){var t,n,i,a,r;!ne(e)||M||O(e)[2]||(v.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),_&&!m||o&&(d=Z(),i=w.offset(),t=O(e)[0]-i.top,n=O(e)[1]-i.left,i="mcsLinearOut",k.push(t),x.push(n),T[2]=Math.abs(O(e)[0]-T[0]),T[3]=Math.abs(O(e)[1]-T[1]),y.overflowed[0]&&(a=j[0].parent().height()-j[0].height(),a=0<s-t&&t-s>-(a*y.scrollRatio.y)&&(2*T[3]<T[2]||"yx"===v.axis)),y.overflowed[1]&&(r=j[1].parent().width()-j[1].width(),r=0<l-n&&n-l>-(r*y.scrollRatio.x)&&(2*T[2]<T[3]||"yx"===v.axis)),a||r?(E||e.preventDefault(),m=1):(_=1,g.addClass("mCS_touch_action")),E&&e.preventDefault(),h="yx"===v.axis?[s-t,l-n]:"x"===v.axis?[null,l-n]:[s-t,null],b[0].idleTimer=250,y.overflowed[0]&&A(h[0],C,i,"y","all",!0),y.overflowed[1]&&A(h[1],C,i,"x",S,!0)))}function Q(e){var t;!ne(e)||M||O(e)[2]?P=0:(P=1,e.stopImmediatePropagation(),K(g),u=Z(),t=w.offset(),r=O(e)[0]-t.top,c=O(e)[1]-t.left,k=[],x=[])}function D(e){var t,n,i,a;!ne(e)||M||O(e)[2]||(o=0,e.stopImmediatePropagation(),_=m=0,p=Z(),i=w.offset(),t=O(e)[0]-i.top,a=O(e)[1]-i.left,30<p-d||(n="mcsEaseOut",i=(e=(f=1e3/(p-u))<2.5)?[k[k.length-2],x[x.length-2]]:[0,0],p=e?[t-i[0],a-i[1]]:[t-r,a-c],a=[Math.abs(p[0]),Math.abs(p[1])],f=e?[Math.abs(p[0]/4),Math.abs(p[1]/4)]:[f,f],e=[Math.abs(b[0].offsetTop)-p[0]*N(a[0]/f[0],f[0]),Math.abs(b[0].offsetLeft)-p[1]*N(a[1]/f[1],f[1])],h="yx"===v.axis?[e[0],e[1]]:"x"===v.axis?[null,e[1]]:[e[0],null],f=[4*a[0]+v.scrollInertia,4*a[1]+v.scrollInertia],e=parseInt(v.contentTouchScroll)||0,h[0]=e<a[0]?h[0]:0,h[1]=e<a[1]?h[1]:0,y.overflowed[0]&&A(h[0],f[0],n,"y",S,!1),y.overflowed[1]&&A(h[1],f[1],n,"x",S,!1)))}function N(e,t){var n=[1.5*t,2*t,t/1.5,t/2];return 90<e?4<t?n[0]:n[3]:60<e?3<t?n[3]:n[2]:30<e?8<t?n[1]:6<t?n[0]:4<t?t:n[2]:8<t?t:n[3]}function A(e,t,n,i,a,r){e&&X(g,e.toString(),{dur:t,scrollEasing:n,dir:i,overwrite:a,drag:r})}b.bind(n[0],function(e){i(e)}).bind(n[1],function(e){a(e)}),w.bind(n[0],function(e){Q(e)}).bind(n[2],function(e){D(e)}),t.length&&t.each(function(){I(this).bind("load",function(){L(this)&&I(this.contentDocument||this.contentWindow.document).bind(n[0],function(e){i(e),Q(e)}).bind(n[1],function(e){a(e)}).bind(n[2],function(e){D(e)})})})},D=function(){var i,a=I(this),r=a.data(R),o=r.opt,s=r.sequential,e="mCS_"+r.idx,l=I("#mCSB_"+r.idx+"_container"),c=l.parent();function u(e,t,n){s.type=n&&i?"stepped":"stepless",s.scrollAmount=10,Y(a,e,t,"mcsLinearOut",n?60:null)}l.bind("mousedown."+e,function(e){P||i||(i=1,M=!0)}).add(document).bind("mousemove."+e,function(e){var t,n;!P&&i&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&document.selection.createRange().text)&&(n=l.offset(),t=O(e)[0]-n.top+l[0].offsetTop,n=O(e)[1]-n.left+l[0].offsetLeft,0<t&&t<c.height()&&0<n&&n<c.width()?s.step&&u("off",null,"stepped"):("x"!==o.axis&&r.overflowed[0]&&(t<0?u("on",38):t>c.height()&&u("on",40)),"y"!==o.axis&&r.overflowed[1]&&(n<0?u("on",37):n>c.width()&&u("on",39))))}).bind("mouseup."+e+" dragend."+e,function(e){P||(i&&(i=0,u("off",null)),M=!1)})},N=function(){var u,d,p,e,h,f,t;function n(e,t){var n,i,a,r,o,s,l,c;K(u),z(u,e.target)||(n="auto"!==p.mouseWheel.deltaFactor?parseInt(p.mouseWheel.deltaFactor):!(m&&e.deltaFactor<100)&&e.deltaFactor||100,i=p.scrollInertia,t="x"===p.axis||"x"===p.mouseWheel.axis?(a="x",r=[Math.round(n*d.scrollRatio.x),parseInt(p.mouseWheel.scrollAmount)],o="auto"!==p.mouseWheel.scrollAmount?r[1]:r[0]>=h.width()?.9*h.width():r[0],s=Math.abs(I("#mCSB_"+d.idx+"_container")[0].offsetLeft),l=f[1][0].offsetLeft,c=f[1].parent().width()-f[1].width(),"y"===p.mouseWheel.axis?e.deltaY||t:e.deltaX):(a="y",r=[Math.round(n*d.scrollRatio.y),parseInt(p.mouseWheel.scrollAmount)],o="auto"!==p.mouseWheel.scrollAmount?r[1]:r[0]>=h.height()?.9*h.height():r[0],s=Math.abs(I("#mCSB_"+d.idx+"_container")[0].offsetTop),l=f[0][0].offsetTop,c=f[0].parent().height()-f[0].height(),e.deltaY||t),"y"===a&&!d.overflowed[0]||"x"===a&&!d.overflowed[1]||((p.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(t=-t),(0<(t=p.mouseWheel.normalizeDelta?t<0?-1:1:t)&&0!==l||t<0&&l!==c||p.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),e.deltaFactor<5&&!p.mouseWheel.normalizeDelta&&(o=e.deltaFactor,i=17),X(u,(s-t*o).toString(),{dir:a,dur:i})))}I(this).data(R)&&(u=I(this),d=u.data(R),p=d.opt,e="mCS_"+d.idx,h=I("#mCSB_"+d.idx),f=[I("#mCSB_"+d.idx+"_dragger_vertical"),I("#mCSB_"+d.idx+"_dragger_horizontal")],(t=I("#mCSB_"+d.idx+"_container").find("iframe")).length&&t.each(function(){I(this).bind("load",function(){L(this)&&I(this.contentDocument||this.contentWindow.document).bind("mousewheel."+e,function(e,t){n(e,t)})})}),h.bind("mousewheel."+e,function(e,t){n(e,t)}))},A={},L=function(e){var t=!1,n=!1,i=null;if(void 0===e?n="#empty":void 0!==I(e).attr("id")&&(n=I(e).attr("id")),!1!==n&&void 0!==A[n])return A[n];if(e){try{i=(e.contentDocument||e.contentWindow.document).body.innerHTML}catch(e){}t=null!==i}else{try{i=top.document.body.innerHTML}catch(e){}t=null!==i}return!1!==n&&(A[n]=t),t},q=function(e){var t=this.find("iframe");t.length&&t.css("pointer-events",e?"auto":"none")},z=function(e,t){var n=t.nodeName.toLowerCase(),e=e.data(R).opt.mouseWheel.disableOver;return-1<I.inArray(n,e)&&!(-1<I.inArray(n,["select","textarea"])&&!I(t).is(":focus"))},F=function(){var o,s=I(this),l=s.data(R),e="mCS_"+l.idx,c=I("#mCSB_"+l.idx+"_container"),u=c.parent();I(".mCSB_"+l.idx+"_scrollbar ."+_[12]).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){M=!0,I(e.target).hasClass("mCSB_dragger")||(o=1)}).bind("touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(e){M=!1}).bind("click."+e,function(e){if(o&&(o=0,I(e.target).hasClass(_[12])||I(e.target).hasClass("mCSB_draggerRail"))){K(s);var t=I(this),n=t.find(".mCSB_dragger");if(0<t.parent(".mCSB_scrollTools_horizontal").length){if(!l.overflowed[1])return;var i="x",a=e.pageX>n.offset().left?-1:1,r=Math.abs(c[0].offsetLeft)-a*(.9*u.width())}else{if(!l.overflowed[0])return;i="y",a=e.pageY>n.offset().top?-1:1,r=Math.abs(c[0].offsetTop)-a*(.9*u.height())}X(s,r.toString(),{dir:i,scrollEasing:"mcsEaseInOut"})}})},U=function(){var a=I(this),e=a.data(R),r=e.opt,t="mCS_"+e.idx,o=I("#mCSB_"+e.idx+"_container"),s=o.parent();o.bind("focusin."+t,function(e){var i=I(document.activeElement),t=o.find(".mCustomScrollBox").length;i.is(r.advanced.autoScrollOnFocus)&&(K(a),clearTimeout(a[0]._focusTimeout),a[0]._focusTimer=t?17*t:0,a[0]._focusTimeout=setTimeout(function(){var e=[ae(i)[0],ae(i)[1]],t=[o[0].offsetTop,o[0].offsetLeft],n=[0<=t[0]+e[0]&&t[0]+e[0]<s.height()-i.outerHeight(!1),0<=t[1]+e[1]&&t[0]+e[1]<s.width()-i.outerWidth(!1)],t="yx"!==r.axis||n[0]||n[1]?"all":"none";"x"===r.axis||n[0]||X(a,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:t,dur:0}),"y"===r.axis||n[1]||X(a,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:t,dur:0})},a[0]._focusTimer))})},H=function(){var t=I(this).data(R),e="mCS_"+t.idx,n=I("#mCSB_"+t.idx+"_container").parent();n.bind("scroll."+e,function(e){0===n.scrollTop()&&0===n.scrollLeft()||I(".mCSB_"+t.idx+"_scrollbar").css("visibility","hidden")})},B=function(){var i=I(this),a=i.data(R),r=a.opt,o=a.sequential,e="mCS_"+a.idx,t=".mCSB_"+a.idx+"_scrollbar";I(t+">a").bind("contextmenu."+e,function(e){e.preventDefault()}).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e+" mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e+" mouseout."+e+" pointerout."+e+" MSPointerOut."+e+" click."+e,function(e){if(e.preventDefault(),te(e)){var t=I(this).attr("class");switch(o.type=r.scrollButtons.scrollType,e.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===o.type)return;M=!0,a.tweenRunning=!1,n("on",t);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===o.type)return;M=!1,o.dir&&n("off",t);break;case"click":if("stepped"!==o.type||a.tweenRunning)return;n("on",t)}}function n(e,t){o.scrollAmount=r.scrollButtons.scrollAmount,Y(i,e,t)}})},W=function(){var o=I(this),s=o.data(R),l=s.opt,c=s.sequential,e="mCS_"+s.idx,t=I("#mCSB_"+s.idx),u=I("#mCSB_"+s.idx+"_container"),d=u.parent(),p="input,textarea,select,datalist,keygen,[contenteditable='true']",n=u.find("iframe"),i=["blur."+e+" keydown."+e+" keyup."+e];function a(e){switch(e.type){case"blur":s.tweenRunning&&c.dir&&r("off",null);break;case"keydown":case"keyup":var t,n,i=e.keyCode||e.which,a="on";if("x"!==l.axis&&(38===i||40===i)||"y"!==l.axis&&(37===i||39===i)){if((38===i||40===i)&&!s.overflowed[0]||(37===i||39===i)&&!s.overflowed[1])return;"keyup"===e.type&&(a="off"),I(document.activeElement).is(p)||(e.preventDefault(),e.stopImmediatePropagation(),r(a,i))}else 33===i||34===i?((s.overflowed[0]||s.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type&&(K(o),n=34===i?-1:1,n="x"===l.axis||"yx"===l.axis&&s.overflowed[1]&&!s.overflowed[0]?(t="x",Math.abs(u[0].offsetLeft)-n*(.9*d.width())):(t="y",Math.abs(u[0].offsetTop)-n*(.9*d.height())),X(o,n.toString(),{dir:t,scrollEasing:"mcsEaseInOut"}))):35!==i&&36!==i||I(document.activeElement).is(p)||((s.overflowed[0]||s.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type&&(n="x"===l.axis||"yx"===l.axis&&s.overflowed[1]&&!s.overflowed[0]?(t="x",35===i?Math.abs(d.width()-u.outerWidth(!1)):0):(t="y",35===i?Math.abs(d.height()-u.outerHeight(!1)):0),X(o,n.toString(),{dir:t,scrollEasing:"mcsEaseInOut"})))}function r(e,t){c.type=l.keyboard.scrollType,c.scrollAmount=l.keyboard.scrollAmount,"stepped"===c.type&&s.tweenRunning||Y(o,e,t)}}n.length&&n.each(function(){I(this).bind("load",function(){L(this)&&I(this.contentDocument||this.contentWindow.document).bind(i[0],function(e){a(e)})})}),t.attr("tabindex","0").bind(i[0],function(e){a(e)})},Y=function(o,e,t,s,l){var c=o.data(R),u=c.opt,d=c.sequential,p=I("#mCSB_"+c.idx+"_container"),n="stepped"===d.type,h=u.scrollInertia<26?26:u.scrollInertia,f=u.scrollInertia<1?17:u.scrollInertia;switch(e){case"on":if(d.dir=[t===_[16]||t===_[15]||39===t||37===t?"x":"y",t===_[13]||t===_[15]||38===t||37===t?-1:1],K(o),ie(t)&&"stepped"===d.type)return;m(n);break;case"off":clearTimeout(d.step),ee(d,"step"),K(o),(n||c.tweenRunning&&d.dir)&&m(!0)}function m(e){u.snapAmount&&(d.scrollAmount=u.snapAmount instanceof Array?"x"===d.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var t="stepped"!==d.type,n=l||(e?t?h/1.5:f:1e3/60),i=e?t?7.5:40:2.5,a=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],r=[10<c.scrollRatio.y?10:c.scrollRatio.y,10<c.scrollRatio.x?10:c.scrollRatio.x],r="x"===d.dir[0]?a[1]+d.dir[1]*(r[1]*i):a[0]+d.dir[1]*(r[0]*i),i="x"===d.dir[0]?a[1]+d.dir[1]*parseInt(d.scrollAmount):a[0]+d.dir[1]*parseInt(d.scrollAmount),i="auto"!==d.scrollAmount?i:r,r=s||(e?t?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),t=!!e;e&&n<17&&(i="x"===d.dir[0]?a[1]:a[0]),X(o,i.toString(),{dir:d.dir[0],scrollEasing:r,dur:n,onComplete:t}),e?d.dir=!1:(clearTimeout(d.step),d.step=setTimeout(function(){m()},n))}},V=function(e){var t=I(this).data(R).opt,n=[];return(e="function"==typeof e?e():e)instanceof Array?n=1<e.length?[e[0],e[1]]:"x"===t.axis?[null,e[0]]:[e[0],null]:(n[0]=e.y||(e.x||"x"===t.axis?null:e),n[1]=e.x||(e.y||"y"===t.axis?null:e)),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},$=function(e,t){if(null!=e&&void 0!==e){var n=I(this),i=n.data(R),a=i.opt,r=I("#mCSB_"+i.idx+"_container"),o=r.parent(),i=typeof e,s="x"===(t=t||("x"===a.axis?"x":"y"))?r.outerWidth(!1)-o.width():r.outerHeight(!1)-o.height(),l="x"===t?r[0].offsetLeft:r[0].offsetTop,c="x"===t?"left":"top";switch(i){case"function":return e();case"object":return(d=e.jquery?e:I(e)).length?"x"===t?ae(d)[1]:ae(d)[0]:void 0;case"string":case"number":if(ie(e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(s*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(l-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var u=l+parseInt(e.split("+=")[1]);return 0<=u?0:Math.abs(u)}if(-1!==e.indexOf("px")&&ie(e.split("px")[0]))return Math.abs(e.split("px")[0]);if("top"===e||"left"===e)return 0;if("bottom"===e)return Math.abs(o.height()-r.outerHeight(!1));if("right"===e)return Math.abs(o.width()-r.outerWidth(!1));if("first"!==e&&"last"!==e)return I(e).length?"x"===t?ae(I(e))[1]:ae(I(e))[0]:(r.css(c,e),void p.update.call(null,n[0]));var d=r.find(":"+e);return"x"===t?ae(d)[1]:ae(d)[0]}}},G=function(e){var t=I(this),n=t.data(R),i=n.opt,a=I("#mCSB_"+n.idx+"_container");if(e)return clearTimeout(a[0].autoUpdate),void ee(a[0],"autoUpdate");function r(e){var t,n,i;I(e).hasClass(_[2])?s():((t=new Image).onload=(n=t,i=function(){this.onload=null,I(e).addClass(_[2]),s(2)},function(){return i.apply(n,arguments)}),t.src=e.src)}function o(){!0===i.advanced.updateOnSelectorChange&&(i.advanced.updateOnSelectorChange="*");var e=0,t=a.find(i.advanced.updateOnSelectorChange);return i.advanced.updateOnSelectorChange&&0<t.length&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function s(e){clearTimeout(a[0].autoUpdate),p.update.call(null,t[0],e)}!function e(){clearTimeout(a[0].autoUpdate);if(0===t.parents("html").length)return void(t=null);a[0].autoUpdate=setTimeout(function(){return i.advanced.updateOnSelectorChange&&(n.poll.change.n=o(),n.poll.change.n!==n.poll.change.o)?(n.poll.change.o=n.poll.change.n,void s(3)):i.advanced.updateOnContentResize&&(n.poll.size.n=t[0].scrollHeight+t[0].scrollWidth+a[0].offsetHeight+t[0].offsetHeight+t[0].offsetWidth,n.poll.size.n!==n.poll.size.o)?(n.poll.size.o=n.poll.size.n,void s(1)):!i.advanced.updateOnImageLoad||"auto"===i.advanced.updateOnImageLoad&&"y"===i.axis||(n.poll.img.n=a.find("img").length,n.poll.img.n===n.poll.img.o)?void((i.advanced.updateOnSelectorChange||i.advanced.updateOnContentResize||i.advanced.updateOnImageLoad)&&e()):(n.poll.img.o=n.poll.img.n,void a.find("img").each(function(){r(this)}))},i.advanced.autoUpdateTimeout)}()},K=function(e){e=e.data(R);I("#mCSB_"+e.idx+"_container,#mCSB_"+e.idx+"_container_wrapper,#mCSB_"+e.idx+"_dragger_vertical,#mCSB_"+e.idx+"_dragger_horizontal").each(function(){t.call(this)})},X=function(a,e,r){var t,n=a.data(R),i=n.opt,o={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:i.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=[(r=I.extend(o,r)).dur,r.drag?0:r.dur],l=I("#mCSB_"+n.idx),c=I("#mCSB_"+n.idx+"_container"),u=c.parent(),d=i.callbacks.onTotalScrollOffset?V.call(a,i.callbacks.onTotalScrollOffset):[0,0],p=i.callbacks.onTotalScrollBackOffset?V.call(a,i.callbacks.onTotalScrollBackOffset):[0,0];if(n.trigger=r.trigger,0===u.scrollTop()&&0===u.scrollLeft()||(I(".mCSB_"+n.idx+"_scrollbar").css("visibility","visible"),u.scrollTop(0).scrollLeft(0)),"_resetY"!==e||n.contentReset.y||(j("onOverflowYNone")&&i.callbacks.onOverflowYNone.call(a[0]),n.contentReset.y=1),"_resetX"!==e||n.contentReset.x||(j("onOverflowXNone")&&i.callbacks.onOverflowXNone.call(a[0]),n.contentReset.x=1),"_resetY"!==e&&"_resetX"!==e){switch(!n.contentReset.y&&a[0].mcs||!n.overflowed[0]||(j("onOverflowY")&&i.callbacks.onOverflowY.call(a[0]),n.contentReset.x=null),!n.contentReset.x&&a[0].mcs||!n.overflowed[1]||(j("onOverflowX")&&i.callbacks.onOverflowX.call(a[0]),n.contentReset.x=null),i.snapAmount&&(t=i.snapAmount instanceof Array?"x"===r.dir?i.snapAmount[1]:i.snapAmount[0]:i.snapAmount,o=e,u=t,t=i.snapOffset,e=Math.round(o/u)*u-t),r.dir){case"x":var h=I("#mCSB_"+n.idx+"_dragger_horizontal"),f="left",m=c[0].offsetLeft,_=[l.width()-c.outerWidth(!1),h.parent().width()-h.width()],g=[e,0===e?0:e/n.scrollRatio.x],y=d[1],v=p[1],w=0<y?y/n.scrollRatio.x:0,b=0<v?v/n.scrollRatio.x:0;break;case"y":h=I("#mCSB_"+n.idx+"_dragger_vertical"),f="top",m=c[0].offsetTop,_=[l.height()-c.outerHeight(!1),h.parent().height()-h.height()],g=[e,0===e?0:e/n.scrollRatio.y],y=d[0],v=p[0],w=0<y?y/n.scrollRatio.y:0,b=0<v?v/n.scrollRatio.y:0}g[1]<0||0===g[0]&&0===g[1]?g=[0,0]:g[1]>=_[1]?g=[_[0],_[1]]:g[0]=-g[0],a[0].mcs||(k(),j("onInit")&&i.callbacks.onInit.call(a[0])),clearTimeout(c[0].onCompleteTimeout),J(h[0],f,Math.round(g[1]),s[1],r.scrollEasing),!n.tweenRunning&&(0===m&&0<=g[0]||m===_[0]&&g[0]<=_[0])||J(c[0],f,Math.round(g[0]),s[0],r.scrollEasing,r.overwrite,{onStart:function(){r.callbacks&&r.onStart&&!n.tweenRunning&&(j("onScrollStart")&&(k(),i.callbacks.onScrollStart.call(a[0])),n.tweenRunning=!0,x(h),n.cbOffsets=[i.callbacks.alwaysTriggerOffsets||m>=_[0]+y,i.callbacks.alwaysTriggerOffsets||m<=-v])},onUpdate:function(){r.callbacks&&r.onUpdate&&j("whileScrolling")&&(k(),i.callbacks.whileScrolling.call(a[0]))},onComplete:function(){var e;r.callbacks&&r.onComplete&&("yx"===i.axis&&clearTimeout(c[0].onCompleteTimeout),e=c[0].idleTimer||0,c[0].onCompleteTimeout=setTimeout(function(){j("onScroll")&&(k(),i.callbacks.onScroll.call(a[0])),j("onTotalScroll")&&g[1]>=_[1]-w&&n.cbOffsets[0]&&(k(),i.callbacks.onTotalScroll.call(a[0])),j("onTotalScrollBack")&&g[1]<=b&&n.cbOffsets[1]&&(k(),i.callbacks.onTotalScrollBack.call(a[0])),n.tweenRunning=!1,c[0].idleTimer=0,x(h,"hide")},e))}})}function j(e){return n&&i.callbacks[e]&&"function"==typeof i.callbacks[e]}function k(){var e=[c[0].offsetTop,c[0].offsetLeft],t=[h[0].offsetTop,h[0].offsetLeft],n=[c.outerHeight(!1),c.outerWidth(!1)],i=[l.height(),l.width()];a[0].mcs={content:c,top:e[0],left:e[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(n[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(n[1])-i[1])),direction:r.dir}}},J=function(e,t,n,i,a,r,o){e._mTween||(e._mTween={top:{},left:{}});var s,l,c=(o=o||{}).onStart||function(){},u=o.onUpdate||function(){},d=o.onComplete||function(){},p=Z(),h=0,f=e.offsetTop,m=e.style,_=e._mTween[t];"left"===t&&(f=e.offsetLeft);var g=n-f;function y(){_.stop||(h||c.call(),h=Z()-p,v(),h>=_.time&&(_.time=h>_.time?h+s-(h-_.time):h+s-1,_.time<h+1&&(_.time=h+1)),_.time<i?_.id=l(y):d.call())}function v(){0<i?(_.currVal=function(e,t,n,i,a){switch(a){case"linear":case"mcsLinear":return n*e/i+t;case"mcsLinearOut":return e/=i,e--,n*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return(e/=i/2)<1?n/2*Math.pow(2,10*(e-1))+t:(e--,n/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return(e/=i/2)<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=i,-n*(--e*e*e*e-1)+t;case"easeOutStrong":return n*(1-Math.pow(2,-10*e/i))+t;default:var r=(e/=i)*e,o=r*e;return t+n*(.499999999999997*o*r+-2.5*r*r+5.5*o+-6.5*r+4*e)}}(_.time,f,g,i,a),m[t]=Math.round(_.currVal)+"px"):m[t]=n+"px",u.call()}_.stop=0,"none"!==r&&null!=_.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(_.id):clearTimeout(_.id),_.id=null),s=1e3/60,_.time=h+s,l=window.requestAnimationFrame||function(e){return v(),setTimeout(e,.01)},_.id=l(y)},Z=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},t=function(){this._mTween||(this._mTween={top:{},left:{}});for(var e=["top","left"],t=0;t<e.length;t++){var n=e[t];this._mTween[n].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(this._mTween[n].id):clearTimeout(this._mTween[n].id),this._mTween[n].id=null,this._mTween[n].stop=1)}},ee=function(t,n){try{delete t[n]}catch(e){t[n]=null}},te=function(e){return!(e.which&&1!==e.which)},ne=function(e){e=e.originalEvent.pointerType;return!(e&&"touch"!==e&&2!==e)},ie=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},re=function(){var e=function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}();return!!e&&document[e]},I.fn[l]=function(e){return p[e]?p[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void I.error("Method "+e+" does not exist"):p.init.apply(this,arguments)},I[l]=function(e){return p[e]?p[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void I.error("Method "+e+" does not exist"):p.init.apply(this,arguments)},I[l].defaults=a,window[l]=!0,I(window).bind("load",function(){I(i)[l](),I.extend(I.expr[":"],{mcsInView:I.expr[":"].mcsInView||function(e){var t=I(e),n=t.parents(".mCSB_container");if(n.length)return e=n.parent(),0<=(n=[n[0].offsetTop,n[0].offsetLeft])[0]+ae(t)[0]&&n[0]+ae(t)[0]<e.height()-t.outerHeight(!1)&&0<=n[1]+ae(t)[1]&&n[1]+ae(t)[1]<e.width()-t.outerWidth(!1)},mcsInSight:I.expr[":"].mcsInSight||function(e,t,n){var i=I(e),a=i.parents(".mCSB_container"),e="exact"===n[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(a.length)return n=[i.outerHeight(!1),i.outerWidth(!1)],i=[a[0].offsetTop+ae(i)[0],a[0].offsetLeft+ae(i)[1]],a=[a.parent()[0].offsetHeight,a.parent()[0].offsetWidth],i[0]-a[0]*(e=[n[0]<a[0]?e[0]:e[1],n[1]<a[1]?e[0]:e[1]])[0][0]<0&&0<=i[0]+n[0]-a[0]*e[0][1]&&i[1]-a[1]*e[1][0]<0&&0<=i[1]+n[1]-a[1]*e[1][1]},mcsOverflow:I.expr[":"].mcsOverflow||function(e){e=I(e).data(R);if(e)return e.overflowed[0]||e.overflowed[1]}})})}),function(o){var r=[],s=[];o.fn.doAutosize=function(e){var t=o(this).data("minwidth"),n=o(this).data("maxwidth"),i="",a=o(this),r=o("#"+o(this).data("tester_id"));""!==(i=a.val())&&(i=i.replace(/&/g,"&amp;").replace(/\s/g," ").replace(/</g,"&lt;").replace(/>/g,"&gt;"),r.html(i),((e=(r=r.width())+e.comfortZone>=t?r+e.comfortZone:t)<a.width()&&t<=e||t<e&&e<n)&&a.width(e))},o.fn.resetAutosize=function(e){var t=o(this).data("minwidth")||e.minInputWidth||o(this).width(),n=o(this).data("maxwidth")||e.maxInputWidth||o(this).closest(".tagsinput").width()-e.inputPadding,i=o(this),a=o("<tester/>").css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:i.css("fontSize"),fontFamily:i.css("fontFamily"),fontWeight:i.css("fontWeight"),letterSpacing:i.css("letterSpacing"),whiteSpace:"nowrap"}),e=o(this).attr("id")+"_autosize_tester";0<!o("#"+e).length&&(a.attr("id",e),a.appendTo("body")),i.data("minwidth",t),i.data("maxwidth",n),i.data("tester_id",e),i.css("width",t)},o.fn.addTag=function(i,a){return a=jQuery.extend({focus:!1,callback:!0},a),this.each(function(){var e,t=o(this).attr("id"),n=o(this).val().split(r[t]);""==n[0]&&(n=[]),i=jQuery.trim(i),a.unique?1==(e=o(this).tagExist(i))&&o("#"+t+"_tag").addClass("not_valid"):e=!1,""!=i&&1!=e&&(o("<span>").addClass("tag").append(o("<span>").text(i).append("&nbsp;&nbsp;"),o("<a>",{href:"#",text:"x"}).click(function(){return o("#"+t).removeTag(escape(i))})).insertBefore("#"+t+"_addTag"),n.push(i),o("#"+t+"_tag").val(""),a.focus?o("#"+t+"_tag").focus():o("#"+t+"_tag").blur(),o.fn.tagsInput.updateTagsField(this,n),a.callback&&s[t]&&s[t].onAddTag&&s[t].onAddTag.call(this,i),s[t]&&s[t].onChange&&(e=n.length,s[t].onChange.call(this,o(this),n[e-1])))}),!1},o.fn.removeTag=function(n){return n=unescape(n),this.each(function(){var e=o(this).attr("id"),t=o(this).val().split(r[e]);for(o("#"+e+"_tagsinput .tag").remove(),str="",i=0;i<t.length;i++)t[i]!=n&&(str=str+r[e]+t[i]);o.fn.tagsInput.importTags(this,str),s[e]&&s[e].onRemoveTag&&s[e].onRemoveTag.call(this,n)}),!1},o.fn.tagExist=function(e){var t=o(this).attr("id"),t=o(this).val().split(r[t]);return 0<=jQuery.inArray(e,t)},o.fn.importTags=function(e){var t=o(this).attr("id");o("#"+t+"_tagsinput .tag").remove(),o.fn.tagsInput.importTags(this,e)},o.fn.tagsInput=function(e){var a=jQuery.extend({interactive:!0,defaultText:"add a tag",minChars:0,width:"300px",height:"100px",autocomplete:{selectFirst:!1},hide:!0,delimiter:",",unique:!0,removeWithBackspace:!0,placeholderColor:"#666666",autosize:!0,comfortZone:20,inputPadding:12},e),n=0;return this.each(function(){if(void 0===o(this).attr("data-tagsinput-init")){o(this).attr("data-tagsinput-init",!0),a.hide&&o(this).hide();var i=o(this).attr("id");i&&!r[o(this).attr("id")]||(i=o(this).attr("id","tags"+(new Date).getTime()+n++).attr("id"));var e=jQuery.extend({pid:i,real_input:"#"+i,holder:"#"+i+"_tagsinput",input_wrapper:"#"+i+"_addTag",fake_input:"#"+i+"_tag"},a);r[i]=e.delimiter,(a.onAddTag||a.onRemoveTag||a.onChange)&&(s[i]=[],s[i].onAddTag=a.onAddTag,s[i].onRemoveTag=a.onRemoveTag,s[i].onChange=a.onChange);var t='<div id="'+i+'_tagsinput" class="tagsinput"><div id="'+i+'_addTag">';if(a.interactive&&(t=t+'<input id="'+i+'_tag" value="" data-default="'+a.defaultText+'" />'),o(t+='</div><div class="tags_clear"></div></div>').insertAfter(this),o(e.holder).css("width",a.width),o(e.holder).css("min-height",a.height),o(e.holder).css("height",a.height),""!=o(e.real_input).val()&&o.fn.tagsInput.importTags(o(e.real_input),o(e.real_input).val()),a.interactive){if(o(e.fake_input).val(o(e.fake_input).attr("data-default")),o(e.fake_input).css("color",a.placeholderColor),o(e.fake_input).resetAutosize(a),o(e.holder).bind("click",e,function(e){o(e.data.fake_input).focus()}),o(e.fake_input).bind("focus",e,function(e){o(e.data.fake_input).val()==o(e.data.fake_input).attr("data-default")&&o(e.data.fake_input).val(""),o(e.data.fake_input).css("color","#000000")}),null!=a.autocomplete_url){for(attrname in autocomplete_options={source:a.autocomplete_url},a.autocomplete)autocomplete_options[attrname]=a.autocomplete[attrname];void 0!==jQuery.Autocompleter?(o(e.fake_input).autocomplete(a.autocomplete_url,a.autocomplete),o(e.fake_input).bind("result",e,function(e,t,n){t&&o("#"+i).addTag(t[0]+"",{focus:!0,unique:a.unique})})):void 0!==jQuery.ui.autocomplete&&(o(e.fake_input).autocomplete(autocomplete_options),o(e.fake_input).bind("autocompleteselect",e,function(e,t){return o(e.data.real_input).addTag(t.item.value,{focus:!0,unique:a.unique}),!1}))}else o(e.fake_input).bind("blur",e,function(e){var t=o(this).attr("data-default");return""!=o(e.data.fake_input).val()&&o(e.data.fake_input).val()!=t?e.data.minChars<=o(e.data.fake_input).val().length&&(!e.data.maxChars||e.data.maxChars>=o(e.data.fake_input).val().length)&&o(e.data.real_input).addTag(o(e.data.fake_input).val(),{focus:!0,unique:a.unique}):(o(e.data.fake_input).val(o(e.data.fake_input).attr("data-default")),o(e.data.fake_input).css("color",a.placeholderColor)),!1});o(e.fake_input).bind("keypress",e,function(e){return l(e)?(e.preventDefault(),e.data.minChars<=o(e.data.fake_input).val().length&&(!e.data.maxChars||e.data.maxChars>=o(e.data.fake_input).val().length)&&o(e.data.real_input).addTag(o(e.data.fake_input).val(),{focus:!0,unique:a.unique}),o(e.data.fake_input).resetAutosize(a),!1):void(e.data.autosize&&o(e.data.fake_input).doAutosize(a))}),e.removeWithBackspace&&o(e.fake_input).bind("keydown",function(e){var t;8==e.keyCode&&""==o(this).val()&&(e.preventDefault(),t=o(this).closest(".tagsinput").find(".tag:last").text(),e=o(this).attr("id").replace(/_tag$/,""),t=t.replace(/[\s]+x$/,""),o("#"+e).removeTag(escape(t)),o(this).trigger("focus"))}),o(e.fake_input).blur(),e.unique&&o(e.fake_input).keydown(function(e){8!=e.keyCode&&!String.fromCharCode(e.which).match(/\w+|[áéíóúÁÉÍÓÚñÑ,/]+/)||o(this).removeClass("not_valid")})}}}),this},o.fn.tagsInput.updateTagsField=function(e,t){var n=o(e).attr("id");o(e).val(t.join(r[n]))},o.fn.tagsInput.importTags=function(e,t){o(e).val("");var n=o(e).attr("id"),a=t.split(r[n]);for(i=0;i<a.length;i++)o(e).addTag(a[i],{focus:!1,callback:!1});s[n]&&s[n].onChange&&s[n].onChange.call(e,e,a[i])};var l=function(n){var i=!1;return 13==n.which||("string"==typeof n.data.delimiter?n.which==n.data.delimiter.charCodeAt(0)&&(i=!0):o.each(n.data.delimiter,function(e,t){n.which==t.charCodeAt(0)&&(i=!0)}),i)}}(jQuery),function(){var zr,Fr="Expected a function",Ur="__lodash_hash_undefined__",Hr="__lodash_placeholder__",Br=9007199254740991,Wr=NaN,Yr=4294967295,Vr=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],$r="[object Arguments]",Gr="[object Array]",Kr="[object Boolean]",Xr="[object Date]",Jr="[object Error]",Zr="[object Function]",eo="[object GeneratorFunction]",to="[object Map]",no="[object Number]",io="[object Object]",ao="[object Promise]",ro="[object RegExp]",oo="[object Set]",so="[object String]",lo="[object Symbol]",co="[object WeakMap]",uo="[object ArrayBuffer]",po="[object DataView]",ho="[object Float32Array]",fo="[object Float64Array]",mo="[object Int8Array]",_o="[object Int16Array]",go="[object Int32Array]",yo="[object Uint8Array]",vo="[object Uint8ClampedArray]",wo="[object Uint16Array]",bo="[object Uint32Array]",jo=/\b__p \+='';/g,ko=/\b(__p \+=) '' \+/g,xo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Co=/&(?:amp|lt|gt|quot|#39);/g,So=/[&<>"']/g,To=RegExp(Co.source),Eo=RegExp(So.source),Qo=/<%-([\s\S]+?)%>/g,Do=/<%([\s\S]+?)%>/g,No=/<%=([\s\S]+?)%>/g,Ao=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Io=/^\w*$/,Ro=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mo=/[\\^$.*+?()[\]{}|]/g,Po=RegExp(Mo.source),Oo=/^\s+|\s+$/g,Lo=/^\s+/,qo=/\s+$/,zo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fo=/\{\n\/\* \[wrapped with (.+)\] \*/,Uo=/,? & /,Ho=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bo=/\\(\\)?/g,Wo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yo=/\w*$/,Vo=/^[-+]0x[0-9a-f]+$/i,$o=/^0b[01]+$/i,Go=/^\[object .+?Constructor\]$/,Ko=/^0o[0-7]+$/i,Xo=/^(?:0|[1-9]\d*)$/,Jo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zo=/($^)/,es=/['\n\r\u2028\u2029\\]/g,e="\\ud800-\\udfff",t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",n="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",a="A-Z\\xc0-\\xd6\\xd8-\\xde",r="\\ufe0e\\ufe0f",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="["+e+"]",l="["+o+"]",c="["+t+"]",u="["+n+"]",d="["+i+"]",p="[^"+e+o+"\\d+"+n+i+a+"]",h="\\ud83c[\\udffb-\\udfff]",f="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",g="["+a+"]",y="(?:"+d+"|"+p+")",o="(?:"+g+"|"+p+")",n="(?:['’](?:d|ll|m|re|s|t|ve))?",i="(?:['’](?:D|LL|M|RE|S|T|VE))?",a="(?:"+c+"|"+h+")"+"?",p="["+r+"]?",a=p+a+("(?:\\u200d(?:"+[f,m,_].join("|")+")"+p+a+")*"),u="(?:"+[u,m,_].join("|")+")"+a,s="(?:"+[f+c+"?",c,m,_,s].join("|")+")",ts=RegExp("['’]","g"),ns=RegExp(c,"g"),v=RegExp(h+"(?="+h+")|"+s+a,"g"),is=RegExp([g+"?"+d+"+"+n+"(?="+[l,g,"$"].join("|")+")",o+"+"+i+"(?="+[l,g+y,"$"].join("|")+")",g+"?"+y+"+"+n,g+"+"+i,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",u].join("|"),"g"),w=RegExp("[\\u200d"+e+t+r+"]"),as=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],os=-1,ss={};ss[ho]=ss[fo]=ss[mo]=ss[_o]=ss[go]=ss[yo]=ss[vo]=ss[wo]=ss[bo]=!0,ss[$r]=ss[Gr]=ss[uo]=ss[Kr]=ss[po]=ss[Xr]=ss[Jr]=ss[Zr]=ss[to]=ss[no]=ss[io]=ss[ro]=ss[oo]=ss[so]=ss[co]=!1;var ls={};ls[$r]=ls[Gr]=ls[uo]=ls[po]=ls[Kr]=ls[Xr]=ls[ho]=ls[fo]=ls[mo]=ls[_o]=ls[go]=ls[to]=ls[no]=ls[io]=ls[ro]=ls[oo]=ls[so]=ls[lo]=ls[yo]=ls[vo]=ls[wo]=ls[bo]=!0,ls[Jr]=ls[Zr]=ls[co]=!1;var b={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},cs=parseFloat,us=parseInt,t="object"==typeof global&&global&&global.Object===Object&&global,r="object"==typeof self&&self&&self.Object===Object&&self,ds=t||r||Function("return this")(),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,j=r&&"object"==typeof module&&module&&!module.nodeType&&module,ps=j&&j.exports===r,k=ps&&t.process,t=function(){try{var e=j&&j.require&&j.require("util").types;return e?e:k&&k.binding&&k.binding("util")}catch(e){}}(),hs=t&&t.isArrayBuffer,fs=t&&t.isDate,ms=t&&t.isMap,_s=t&&t.isRegExp,gs=t&&t.isSet,ys=t&&t.isTypedArray;function vs(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ws(e,t,n,i){for(var a=-1,r=null==e?0:e.length;++a<r;){var o=e[a];t(i,o,n(o),e)}return i}function bs(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function js(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ks(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function xs(e,t){for(var n=-1,i=null==e?0:e.length,a=0,r=[];++n<i;){var o=e[n];t(o,n,e)&&(r[a++]=o)}return r}function Cs(e,t){return!!(null==e?0:e.length)&&-1<Rs(e,t,0)}function Ss(e,t,n){for(var i=-1,a=null==e?0:e.length;++i<a;)if(n(t,e[i]))return!0;return!1}function Ts(e,t){for(var n=-1,i=null==e?0:e.length,a=Array(i);++n<i;)a[n]=t(e[n],n,e);return a}function Es(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e}function Qs(e,t,n,i){var a=-1,r=null==e?0:e.length;for(i&&r&&(n=e[++a]);++a<r;)n=t(n,e[a],a,e);return n}function Ds(e,t,n,i){var a=null==e?0:e.length;for(i&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function Ns(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var x=Ls("length");function As(e,i,t){var a;return t(e,function(e,t,n){if(i(e,t,n))return a=t,!1}),a}function Is(e,t,n,i){for(var a=e.length,r=n+(i?1:-1);i?r--:++r<a;)if(t(e[r],r,e))return r;return-1}function Rs(e,t,n){return t==t?function(e,t,n){var i=n-1,a=e.length;for(;++i<a;)if(e[i]===t)return i;return-1}(e,t,n):Is(e,Ps,n)}function Ms(e,t,n,i){for(var a=n-1,r=e.length;++a<r;)if(i(e[a],t))return a;return-1}function Ps(e){return e!=e}function Os(e,t){var n=null==e?0:e.length;return n?zs(e,t)/n:Wr}function Ls(t){return function(e){return null==e?zr:e[t]}}function C(t){return function(e){return null==t?zr:t[e]}}function qs(e,i,a,r,t){return t(e,function(e,t,n){a=r?(r=!1,e):i(a,e,t,n)}),a}function zs(e,t){for(var n,i=-1,a=e.length;++i<a;){var r=t(e[i]);r!==zr&&(n=n===zr?r:n+r)}return n}function Fs(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Us(t){return function(e){return t(e)}}function Hs(t,e){return Ts(e,function(e){return t[e]})}function Bs(e,t){return e.has(t)}function Ws(e,t){for(var n=-1,i=e.length;++n<i&&-1<Rs(t,e[n],0););return n}function Ys(e,t){for(var n=e.length;n--&&-1<Rs(t,e[n],0););return n}var Vs=C({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),$s=C({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Gs(e){return"\\"+b[e]}function Ks(e){return w.test(e)}function Xs(e){var n=-1,i=Array(e.size);return e.forEach(function(e,t){i[++n]=[t,e]}),i}function Js(t,n){return function(e){return t(n(e))}}function Zs(e,t){for(var n=-1,i=e.length,a=0,r=[];++n<i;){var o=e[n];o!==t&&o!==Hr||(e[n]=Hr,r[a++]=n)}return r}function el(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function tl(e){return(Ks(e)?function(e){var t=v.lastIndex=0;for(;v.test(e);)++t;return t}:x)(e)}function nl(e){return Ks(e)?e.match(v)||[]:e.split("")}var il=C({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var al=function e(t){var k=(t=null==t?ds:al.defaults(ds.Object(),t,al.pick(ds,rs))).Array,n=t.Date,i=t.Error,d=t.Function,a=t.Math,m=t.Object,p=t.RegExp,u=t.String,y=t.TypeError,r=k.prototype,o=d.prototype,h=m.prototype,s=t["__core-js_shared__"],l=o.toString,v=h.hasOwnProperty,c=0,f=(Qr=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+Qr:"",_=h.toString,g=l.call(m),w=ds._,b=p("^"+l.call(v).replace(Mo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=ps?t.Buffer:zr,x=t.Symbol,C=t.Uint8Array,S=j?j.allocUnsafe:zr,T=Js(m.getPrototypeOf,m),E=m.create,Q=h.propertyIsEnumerable,D=r.splice,N=x?x.isConcatSpreadable:zr,A=x?x.iterator:zr,I=x?x.toStringTag:zr,R=function(){try{var e=Un(m,"defineProperty");return e({},"",{}),e}catch(e){}}(),M=t.clearTimeout!==ds.clearTimeout&&t.clearTimeout,P=n&&n.now!==ds.Date.now&&n.now,O=t.setTimeout!==ds.setTimeout&&t.setTimeout,L=a.ceil,q=a.floor,z=m.getOwnPropertySymbols,F=j?j.isBuffer:zr,U=t.isFinite,H=r.join,B=Js(m.keys,m),W=a.max,Y=a.min,V=n.now,$=t.parseInt,G=a.random,K=r.reverse,X=Un(t,"DataView"),J=Un(t,"Map"),Z=Un(t,"Promise"),ee=Un(t,"Set"),te=Un(t,"WeakMap"),ne=Un(m,"create"),ie=te&&new te,ae={},re=mi(X),oe=mi(J),se=mi(Z),le=mi(ee),ce=mi(te),ue=x?x.prototype:zr,de=ue?ue.valueOf:zr,pe=ue?ue.toString:zr;function he(e){if(Aa(e)&&!ba(e)&&!(e instanceof ye)){if(e instanceof ge)return e;if(v.call(e,"__wrapped__"))return _i(e)}return new ge(e)}var fe=function(e){if(!Na(e))return{};if(E)return E(e);me.prototype=e;e=new me;return me.prototype=zr,e};function me(){}function _e(){}function ge(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=zr}function ye(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Yr,this.__views__=[]}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function we(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function je(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new be;++t<n;)this.add(e[t])}function ke(e){e=this.__data__=new we(e);this.size=e.size}function xe(e,t){var n,i=ba(e),a=!i&&wa(e),r=!i&&!a&&Ca(e),o=!i&&!a&&!r&&za(e),s=i||a||r||o,l=s?Fs(e.length,u):[],c=l.length;for(n in e)!t&&!v.call(e,n)||s&&("length"==n||r&&("offset"==n||"parent"==n)||o&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||Gn(n,c))||l.push(n);return l}function Ce(e){var t=e.length;return t?e[jt(0,t-1)]:zr}function Se(e,t){return di(an(e),Me(t,0,e.length))}function Te(e){return di(an(e))}function Ee(e,t,n){(n===zr||ga(e[t],n))&&(n!==zr||t in e)||Ie(e,t,n)}function Qe(e,t,n){var i=e[t];v.call(e,t)&&ga(i,n)&&(n!==zr||t in e)||Ie(e,t,n)}function De(e,t){for(var n=e.length;n--;)if(ga(e[n][0],t))return n;return-1}function Ne(e,i,a,r){return ze(e,function(e,t,n){i(r,e,a(e),n)}),r}function Ae(e,t){return e&&rn(t,lr(t),e)}function Ie(e,t,n){"__proto__"==t&&R?R(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Re(e,t){for(var n=-1,i=t.length,a=k(i),r=null==e;++n<i;)a[n]=r?zr:ir(e,t[n]);return a}function Me(e,t,n){return e==e&&(n!==zr&&(e=e<=n?e:n),t!==zr&&(e=t<=e?e:t)),e}function Pe(n,i,a,e,t,r){var o,s=1&i,l=2&i,c=4&i;if((o=a?t?a(n,e,t,r):a(n):o)!==zr)return o;if(!Na(n))return n;var u,d,p=ba(n);if(p){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&v.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(n),!s)return an(n,o)}else{var h=Wn(n),e=h==Zr||h==eo;if(Ca(n))return Xt(n,s);if(h==io||h==$r||e&&!t){if(o=l||e?{}:Vn(n),!s)return l?(e=u=n,d=(d=o)&&rn(e,cr(e),d),rn(u,Bn(u),d)):(d=Ae(o,u=n),rn(u,Hn(u),d))}else{if(!ls[h])return t?n:{};o=function(e,t,n){var i=e.constructor;switch(t){case uo:return Jt(e);case Kr:case Xr:return new i(+e);case po:return function(e,t){t=t?Jt(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}(e,n);case ho:case fo:case mo:case _o:case go:case yo:case vo:case wo:case bo:return Zt(e,n);case to:return new i;case no:case so:return new i(e);case ro:return function(e){var t=new e.constructor(e.source,Yo.exec(e));return t.lastIndex=e.lastIndex,t}(e);case oo:return new i;case lo:return function(e){return de?m(de.call(e)):{}}(e)}}(n,h,s)}}s=(r=r||new ke).get(n);if(s)return s;r.set(n,o),Oa(n)?n.forEach(function(e){o.add(Pe(e,i,a,e,n,r))}):Ia(n)&&n.forEach(function(e,t){o.set(t,Pe(e,i,a,t,n,r))});var f=p?zr:(c?l?Mn:Rn:l?cr:lr)(n);return bs(f||n,function(e,t){f&&(e=n[t=e]),Qe(o,t,Pe(e,i,a,t,n,r))}),o}function Oe(e,t,n){var i=n.length;if(null==e)return!i;for(e=m(e);i--;){var a=n[i],r=t[a],o=e[a];if(o===zr&&!(a in e)||!r(o))return!1}return!0}function Le(e,t,n){if("function"!=typeof e)throw new y(Fr);return si(function(){e.apply(zr,n)},t)}function qe(e,t,n,i){var a=-1,r=Cs,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Ts(t,Us(n))),i?(r=Ss,o=!1):200<=t.length&&(r=Bs,o=!1,t=new je(t));e:for(;++a<s;){var u=e[a],d=null==n?u:n(u),u=i||0!==u?u:0;if(o&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else r(t,d,i)||l.push(u)}return l}he.templateSettings={escape:Qo,evaluate:Do,interpolate:No,variable:"",imports:{_:he}},(he.prototype=_e.prototype).constructor=he,(ge.prototype=fe(_e.prototype)).constructor=ge,(ye.prototype=fe(_e.prototype)).constructor=ye,ve.prototype.clear=function(){this.__data__=ne?ne(null):{},this.size=0},ve.prototype.delete=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e},ve.prototype.get=function(e){var t=this.__data__;if(ne){var n=t[e];return n===Ur?zr:n}return v.call(t,e)?t[e]:zr},ve.prototype.has=function(e){var t=this.__data__;return ne?t[e]!==zr:v.call(t,e)},ve.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ne&&t===zr?Ur:t,this},we.prototype.clear=function(){this.__data__=[],this.size=0},we.prototype.delete=function(e){var t=this.__data__;return!((e=De(t,e))<0)&&(e==t.length-1?t.pop():D.call(t,e,1),--this.size,!0)},we.prototype.get=function(e){var t=this.__data__;return(e=De(t,e))<0?zr:t[e][1]},we.prototype.has=function(e){return-1<De(this.__data__,e)},we.prototype.set=function(e,t){var n=this.__data__,i=De(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new ve,map:new(J||we),string:new ve}},be.prototype.delete=function(e){return e=zn(this,e).delete(e),this.size-=e?1:0,e},be.prototype.get=function(e){return zn(this,e).get(e)},be.prototype.has=function(e){return zn(this,e).has(e)},be.prototype.set=function(e,t){var n=zn(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},je.prototype.add=je.prototype.push=function(e){return this.__data__.set(e,Ur),this},je.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.clear=function(){this.__data__=new we,this.size=0},ke.prototype.delete=function(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var n=this.__data__;if(n instanceof we){var i=n.__data__;if(!J||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new be(i)}return n.set(e,t),this.size=n.size,this};var ze=ln($e),Fe=ln(Ge,!0);function Ue(e,i){var a=!0;return ze(e,function(e,t,n){return a=!!i(e,t,n)}),a}function He(e,t,n){for(var i=-1,a=e.length;++i<a;){var r,o,s=e[i],l=t(s);null!=l&&(r===zr?l==l&&!qa(l):n(l,r))&&(r=l,o=s)}return o}function Be(e,i){var a=[];return ze(e,function(e,t,n){i(e,t,n)&&a.push(e)}),a}function We(e,t,n,i,a){var r=-1,o=e.length;for(n=n||$n,a=a||[];++r<o;){var s=e[r];0<t&&n(s)?1<t?We(s,t-1,n,i,a):Es(a,s):i||(a[a.length]=s)}return a}var Ye=cn(),Ve=cn(!0);function $e(e,t){return e&&Ye(e,t,lr)}function Ge(e,t){return e&&Ve(e,t,lr)}function Ke(t,e){return xs(e,function(e){return Ea(t[e])})}function Xe(e,t){for(var n=0,i=(t=Vt(t,e)).length;null!=e&&n<i;)e=e[fi(t[n++])];return n&&n==i?e:zr}function Je(e,t,n){t=t(e);return ba(e)?t:Es(t,n(e))}function Ze(e){return null==e?e===zr?"[object Undefined]":"[object Null]":I&&I in m(e)?function(e){var t=v.call(e,I),n=e[I];try{e[I]=zr;var i=!0}catch(e){}var a=_.call(e);i&&(t?e[I]=n:delete e[I]);return a}(e):_.call(e)}function et(e,t){return t<e}function tt(e,t){return null!=e&&v.call(e,t)}function nt(e,t){return null!=e&&t in m(e)}function it(e,t,n){for(var i=n?Ss:Cs,a=e[0].length,r=e.length,o=r,s=k(r),l=1/0,c=[];o--;){var u=e[o];o&&t&&(u=Ts(u,Us(t))),l=Y(u.length,l),s[o]=!n&&(t||120<=a&&120<=u.length)?new je(o&&u):zr}var u=e[0],d=-1,p=s[0];e:for(;++d<a&&c.length<l;){var h=u[d],f=t?t(h):h,h=n||0!==h?h:0;if(!(p?Bs(p,f):i(c,f,n))){for(o=r;--o;){var m=s[o];if(!(m?Bs(m,f):i(e[o],f,n)))continue e}p&&p.push(f),c.push(h)}}return c}function at(e,t,n){t=null==(e=ai(e,t=Vt(t,e)))?e:e[fi(Ti(t))];return null==t?zr:vs(t,e,n)}function rt(e){return Aa(e)&&Ze(e)==$r}function ot(e,t,n,i,a){return e===t||(null==e||null==t||!Aa(e)&&!Aa(t)?e!=e&&t!=t:function(e,t,n,i,a,r){var o=ba(e),s=ba(t),l=o?Gr:Wn(e),c=s?Gr:Wn(t),u=(l=l==$r?io:l)==io,s=(c=c==$r?io:c)==io,c=l==c;if(c&&Ca(e)){if(!Ca(t))return!1;u=!(o=!0)}if(c&&!u)return r=r||new ke,o||za(e)?An(e,t,n,i,a,r):function(e,t,n,i,a,r,o){switch(n){case po:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case uo:return e.byteLength==t.byteLength&&r(new C(e),new C(t))?!0:!1;case Kr:case Xr:case no:return ga(+e,+t);case Jr:return e.name==t.name&&e.message==t.message;case ro:case so:return e==t+"";case to:var s=Xs;case oo:var l=1&i;if(s=s||el,e.size!=t.size&&!l)return!1;l=o.get(e);if(l)return l==t;i|=2,o.set(e,t);s=An(s(e),s(t),i,a,r,o);return o.delete(e),s;case lo:if(de)return de.call(e)==de.call(t)}return!1}(e,t,l,n,i,a,r);if(!(1&n)){u=u&&v.call(e,"__wrapped__"),s=s&&v.call(t,"__wrapped__");if(u||s){u=u?e.value():e,s=s?t.value():t;return r=r||new ke,a(u,s,n,i,r)}}return c&&(r=r||new ke,function(e,t,n,i,a,r){var o=1&n,s=Rn(e),l=s.length,c=Rn(t).length;if(l!=c&&!o)return!1;var u=l;for(;u--;){var d=s[u];if(!(o?d in t:v.call(t,d)))return!1}var p=r.get(e);if(p&&r.get(t))return p==t;var h=!0;r.set(e,t),r.set(t,e);var f=o;for(;++u<l;){d=s[u];var m,_=e[d],g=t[d];if(!((m=i?o?i(g,_,d,t,e,r):i(_,g,d,e,t,r):m)===zr?_===g||a(_,g,n,i,r):m)){h=!1;break}f=f||"constructor"==d}h&&!f&&(c=e.constructor,p=t.constructor,c!=p&&"constructor"in e&&"constructor"in t&&!("function"==typeof c&&c instanceof c&&"function"==typeof p&&p instanceof p)&&(h=!1));return r.delete(e),r.delete(t),h}(e,t,n,i,a,r))}(e,t,n,i,ot,a))}function st(e,t,n,i){var a=n.length,r=a,o=!i;if(null==e)return!r;for(e=m(e);a--;){var s=n[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<r;){var l=(s=n[a])[0],c=e[l],u=s[1];if(o&&s[2]){if(c===zr&&!(l in e))return!1}else{var d,p=new ke;if(!((d=i?i(c,u,l,e,t,p):d)===zr?ot(u,c,3,i,p):d))return!1}}return!0}function lt(e){return!(!Na(e)||(t=e,f&&f in t))&&(Ea(e)?b:Go).test(mi(e));var t}function ct(e){return"function"==typeof e?e:null==e?Nr:"object"==typeof e?ba(e)?mt(e[0],e[1]):ft(e):Mr(e)}function ut(e){if(!ei(e))return B(e);var t,n=[];for(t in m(e))v.call(e,t)&&"constructor"!=t&&n.push(t);return n}function dt(e){if(!Na(e))return function(e){var t=[];if(null!=e)for(var n in m(e))t.push(n);return t}(e);var t,n=ei(e),i=[];for(t in e)("constructor"!=t||!n&&v.call(e,t))&&i.push(t);return i}function pt(e,t){return e<t}function ht(e,i){var a=-1,r=ka(e)?k(e.length):[];return ze(e,function(e,t,n){r[++a]=i(e,t,n)}),r}function ft(t){var n=Fn(t);return 1==n.length&&n[0][2]?ni(n[0][0],n[0][1]):function(e){return e===t||st(e,t,n)}}function mt(n,i){return Xn(n)&&ti(i)?ni(fi(n),i):function(e){var t=ir(e,n);return t===zr&&t===i?ar(e,n):ot(i,t,3)}}function _t(m,_,g,y,v){m!==_&&Ye(_,function(e,t){var n,i,a,r,o,s,l,c,u,d,p,h,f;v=v||new ke,Na(e)?(i=_,r=g,o=_t,s=y,l=v,p=ri(n=m,a=t),h=ri(i,a),(f=l.get(h))?Ee(n,a,f):(c=s?s(p,h,a+"",n,i,l):zr,(u=c===zr)&&(d=ba(h),f=!d&&Ca(h),i=!d&&!f&&za(h),c=h,d||f||i?c=ba(p)?p:xa(p)?an(p):f?Xt(h,!(u=!1)):i?Zt(h,!(u=!1)):[]:Ma(h)||wa(h)?wa(c=p)?c=$a(p):Na(p)&&!Ea(p)||(c=Vn(h)):u=!1),u&&(l.set(h,c),o(c,h,r,s,l),l.delete(h)),Ee(n,a,c))):(c=y?y(ri(m,t),e,t+"",m,_,v):zr,Ee(m,t,c=c===zr?e:c))},cr)}function gt(e,t){var n=e.length;if(n)return Gn(t+=t<0?n:0,n)?e[t]:zr}function yt(e,i,n){var a=-1;return i=Ts(i.length?i:[Nr],Us(qn())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(ht(e,function(t,e,n){return{criteria:Ts(i,function(e){return e(t)}),index:++a,value:t}}),function(e,t){return function(e,t,n){var i=-1,a=e.criteria,r=t.criteria,o=a.length,s=n.length;for(;++i<o;){var l=en(a[i],r[i]);if(l){if(s<=i)return l;var c=n[i];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function vt(e,t,n){for(var i=-1,a=t.length,r={};++i<a;){var o=t[i],s=Xe(e,o);n(s,o)&&Tt(r,Vt(o,e),s)}return r}function wt(e,t,n,i){var a=i?Ms:Rs,r=-1,o=t.length,s=e;for(e===t&&(t=an(t)),n&&(s=Ts(e,Us(n)));++r<o;)for(var l=0,c=t[r],u=n?n(c):c;-1<(l=a(s,u,l,i));)s!==e&&D.call(s,l,1),D.call(e,l,1);return e}function bt(e,t){for(var n=e?t.length:0,i=n-1;n--;){var a,r=t[n];n!=i&&r===a||(Gn(a=r)?D.call(e,r,1):qt(e,r))}return e}function jt(e,t){return e+q(G()*(t-e+1))}function kt(e,t){var n="";if(!e||t<1||Br<t)return n;for(;t%2&&(n+=e),(t=q(t/2))&&(e+=e),t;);return n}function xt(e,t){return li(ii(e,t,Nr),e+"")}function Ct(e){return Ce(gr(e))}function St(e,t){e=gr(e);return di(e,Me(t,0,e.length))}function Tt(e,t,n,i){if(!Na(e))return e;for(var a=-1,r=(t=Vt(t,e)).length,o=r-1,s=e;null!=s&&++a<r;){var l,c=fi(t[a]),u=n;a!=o&&(l=s[c],(u=i?i(l,c,s):zr)===zr&&(u=Na(l)?l:Gn(t[a+1])?[]:{})),Qe(s,c,u),s=s[c]}return e}var Et=ie?function(e,t){return ie.set(e,t),e}:Nr,Qt=R?function(e,t){return R(e,"toString",{configurable:!0,enumerable:!1,value:Dr(t),writable:!0})}:Nr;function Dt(e){return di(gr(e))}function Nt(e,t,n){var i=-1,a=e.length;(n=a<n?a:n)<0&&(n+=a),a=n<(t=t<0?a<-t?0:a+t:t)?0:n-t>>>0,t>>>=0;for(var r=k(a);++i<a;)r[i]=e[i+t];return r}function At(e,i){var a;return ze(e,function(e,t,n){return!(a=i(e,t,n))}),!!a}function It(e,t,n){var i=0,a=null==e?i:e.length;if("number"==typeof t&&t==t&&a<=2147483647){for(;i<a;){var r=i+a>>>1,o=e[r];null!==o&&!qa(o)&&(n?o<=t:o<t)?i=1+r:a=r}return a}return Rt(e,t,Nr,n)}function Rt(e,t,n,i){t=n(t);for(var a=0,r=null==e?0:e.length,o=t!=t,s=null===t,l=qa(t),c=t===zr;a<r;){var u=q((a+r)/2),d=n(e[u]),p=d!==zr,h=null===d,f=d==d,m=qa(d),d=o?i||f:c?f&&(i||p):s?f&&p&&(i||!h):l?f&&p&&!h&&(i||!m):!h&&!m&&(i?d<=t:d<t);d?a=u+1:r=u}return Y(r,4294967294)}function Mt(e,t){for(var n=-1,i=e.length,a=0,r=[];++n<i;){var o,s=e[n],l=t?t(s):s;n&&ga(l,o)||(o=l,r[a++]=0===s?0:s)}return r}function Pt(e){return"number"==typeof e?e:qa(e)?Wr:+e}function Ot(e){if("string"==typeof e)return e;if(ba(e))return Ts(e,Ot)+"";if(qa(e))return pe?pe.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Lt(e,t,n){var i=-1,a=Cs,r=e.length,o=!0,s=[],l=s;if(n)o=!1,a=Ss;else if(200<=r){var c=t?null:Sn(e);if(c)return el(c);o=!1,a=Bs,l=new je}else l=t?[]:s;e:for(;++i<r;){var u=e[i],d=t?t(u):u,u=n||0!==u?u:0;if(o&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else a(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function qt(e,t){return null==(e=ai(e,t=Vt(t,e)))||delete e[fi(Ti(t))]}function zt(e,t,n,i){return Tt(e,t,n(Xe(e,t)),i)}function Ft(e,t,n,i){for(var a=e.length,r=i?a:-1;(i?r--:++r<a)&&t(e[r],r,e););return n?Nt(e,i?0:r,i?r+1:a):Nt(e,i?r+1:0,i?a:r)}function Ut(e,t){var n=e;return Qs(t,function(e,t){return t.func.apply(t.thisArg,Es([e],t.args))},n=e instanceof ye?e.value():n)}function Ht(e,t,n){var i=e.length;if(i<2)return i?Lt(e[0]):[];for(var a=-1,r=k(i);++a<i;)for(var o=e[a],s=-1;++s<i;)s!=a&&(r[a]=qe(r[a]||o,e[s],t,n));return Lt(We(r,1),t,n)}function Bt(e,t,n){for(var i=-1,a=e.length,r=t.length,o={};++i<a;){var s=i<r?t[i]:zr;n(o,e[i],s)}return o}function Wt(e){return xa(e)?e:[]}function Yt(e){return"function"==typeof e?e:Nr}function Vt(e,t){return ba(e)?e:Xn(e,t)?[e]:hi(Ga(e))}var $t=xt;function Gt(e,t,n){var i=e.length;return n=n===zr?i:n,!t&&i<=n?e:Nt(e,t,n)}var Kt=M||function(e){return ds.clearTimeout(e)};function Xt(e,t){if(t)return e.slice();t=e.length,t=S?S(t):new e.constructor(t);return e.copy(t),t}function Jt(e){var t=new e.constructor(e.byteLength);return new C(t).set(new C(e)),t}function Zt(e,t){t=t?Jt(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function en(e,t){if(e!==t){var n=e!==zr,i=null===e,a=e==e,r=qa(e),o=t!==zr,s=null===t,l=t==t,c=qa(t);if(!s&&!c&&!r&&t<e||r&&o&&l&&!s&&!c||i&&o&&l||!n&&l||!a)return 1;if(!i&&!r&&!c&&e<t||c&&n&&a&&!i&&!r||s&&n&&a||!o&&a||!l)return-1}return 0}function tn(e,t,n,i){for(var a=-1,r=e.length,o=n.length,s=-1,l=t.length,c=W(r-o,0),u=k(l+c),d=!i;++s<l;)u[s]=t[s];for(;++a<o;)(d||a<r)&&(u[n[a]]=e[a]);for(;c--;)u[s++]=e[a++];return u}function nn(e,t,n,i){for(var a=-1,r=e.length,o=-1,s=n.length,l=-1,c=t.length,u=W(r-s,0),d=k(u+c),p=!i;++a<u;)d[a]=e[a];for(var h=a;++l<c;)d[h+l]=t[l];for(;++o<s;)(p||a<r)&&(d[h+n[o]]=e[a++]);return d}function an(e,t){var n=-1,i=e.length;for(t=t||k(i);++n<i;)t[n]=e[n];return t}function rn(e,t,n,i){var a=!n;n=n||{};for(var r=-1,o=t.length;++r<o;){var s=t[r],l=i?i(n[s],e[s],s,n,e):zr;(a?Ie:Qe)(n,s,l=l===zr?e[s]:l)}return n}function on(a,r){return function(e,t){var n=ba(e)?ws:Ne,i=r?r():{};return n(e,a,qn(t,2),i)}}function sn(s){return xt(function(e,t){var n=-1,i=t.length,a=1<i?t[i-1]:zr,r=2<i?t[2]:zr,a=3<s.length&&"function"==typeof a?(i--,a):zr;for(r&&Kn(t[0],t[1],r)&&(a=i<3?zr:a,i=1),e=m(e);++n<i;){var o=t[n];o&&s(e,o,n,a)}return e})}function ln(r,o){return function(e,t){if(null==e)return e;if(!ka(e))return r(e,t);for(var n=e.length,i=o?n:-1,a=m(e);(o?i--:++i<n)&&!1!==t(a[i],i,a););return e}}function cn(l){return function(e,t,n){for(var i=-1,a=m(e),r=n(e),o=r.length;o--;){var s=r[l?o:++i];if(!1===t(a[s],s,a))break}return e}}function un(i){return function(e){var t=Ks(e=Ga(e))?nl(e):zr,n=t?t[0]:e.charAt(0),e=t?Gt(t,1).join(""):e.slice(1);return n[i]()+e}}function dn(t){return function(e){return Qs(Tr(wr(e).replace(ts,"")),t,"")}}function pn(i){return function(){var e=arguments;switch(e.length){case 0:return new i;case 1:return new i(e[0]);case 2:return new i(e[0],e[1]);case 3:return new i(e[0],e[1],e[2]);case 4:return new i(e[0],e[1],e[2],e[3]);case 5:return new i(e[0],e[1],e[2],e[3],e[4]);case 6:return new i(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new i(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=fe(i.prototype),n=i.apply(t,e);return Na(n)?n:t}}function hn(r,o,s){var l=pn(r);return function e(){for(var t=arguments.length,n=k(t),i=t,a=Ln(e);i--;)n[i]=arguments[i];a=t<3&&n[0]!==a&&n[t-1]!==a?[]:Zs(n,a);return(t-=a.length)<s?xn(r,o,_n,e.placeholder,zr,n,a,zr,zr,s-t):vs(this&&this!==ds&&this instanceof e?l:r,this,n)}}function fn(r){return function(e,t,n){var i,a=m(e);ka(e)||(i=qn(t,3),e=lr(e),t=function(e){return i(a[e],e,a)});n=r(e,t,n);return-1<n?a[i?e[n]:n]:zr}}function mn(l){return In(function(a){var r=a.length,e=r,t=ge.prototype.thru;for(l&&a.reverse();e--;){var n=a[e];if("function"!=typeof n)throw new y(Fr);t&&!s&&"wrapper"==On(n)&&(s=new ge([],!0))}for(e=s?e:r;++e<r;)var i=On(n=a[e]),o="wrapper"==i?Pn(n):zr,s=o&&Jn(o[0])&&424==o[1]&&!o[4].length&&1==o[9]?s[On(o[0])].apply(s,o[3]):1==n.length&&Jn(n)?s[i]():s.thru(n);return function(){var e=arguments,t=e[0];if(s&&1==e.length&&ba(t))return s.plant(t).value();for(var n=0,i=r?a[n].apply(this,e):t;++n<r;)i=a[n].call(this,i);return i}})}function _n(s,l,c,u,d,p,h,f,m,_){var g=128&l,y=1&l,v=2&l,w=24&l,b=512&l,j=v?zr:pn(s);return function e(){for(var t,n=k(o=arguments.length),i=o;i--;)n[i]=arguments[i];if(w&&(t=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(n,r=Ln(e))),u&&(n=tn(n,u,d,w)),p&&(n=nn(n,p,h,w)),o-=t,w&&o<_){var a=Zs(n,r);return xn(s,l,_n,e.placeholder,c,n,a,f,m,_-o)}var r=y?c:this,a=v?r[s]:s,o=n.length;return f?n=function(e,t){for(var n=e.length,i=Y(t.length,n),a=an(e);i--;){var r=t[i];e[i]=Gn(r,n)?a[r]:zr}return e}(n,f):b&&1<o&&n.reverse(),g&&m<o&&(n.length=m),(a=this&&this!==ds&&this instanceof e?j||pn(a):a).apply(r,n)}}function gn(n,o){return function(e,t){return e=e,i=n,a=o(t),r={},$e(e,function(e,t,n){i(r,a(e),t,n)}),r;var i,a,r}}function yn(i,a){return function(e,t){var n;if(e===zr&&t===zr)return a;if(e!==zr&&(n=e),t!==zr){if(n===zr)return t;t="string"==typeof e||"string"==typeof t?(e=Ot(e),Ot(t)):(e=Pt(e),Pt(t)),n=i(e,t)}return n}}function vn(i){return In(function(e){return e=Ts(e,Us(qn())),xt(function(t){var n=this;return i(e,function(e){return vs(e,n,t)})})})}function wn(e,t){var n=(t=t===zr?" ":Ot(t)).length;if(n<2)return n?kt(t,e):t;n=kt(t,L(e/tl(t)));return Ks(t)?Gt(nl(n),0,e).join(""):n.slice(0,e)}function bn(s,e,l,c){var u=1&e,d=pn(s);return function e(){for(var t=-1,n=arguments.length,i=-1,a=c.length,r=k(a+n),o=this&&this!==ds&&this instanceof e?d:s;++i<a;)r[i]=c[i];for(;n--;)r[i++]=arguments[++t];return vs(o,u?l:this,r)}}function jn(i){return function(e,t,n){return n&&"number"!=typeof n&&Kn(e,t,n)&&(t=n=zr),e=Ba(e),t===zr?(t=e,e=0):t=Ba(t),function(e,t,n,i){for(var a=-1,r=W(L((t-e)/(n||1)),0),o=k(r);r--;)o[i?r:++a]=e,e+=n;return o}(e,t,n=n===zr?e<t?1:-1:Ba(n),i)}}function kn(n){return function(e,t){return"string"==typeof e&&"string"==typeof t||(e=Va(e),t=Va(t)),n(e,t)}}function xn(e,t,n,i,a,r,o,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);c=[e,t,a,u?r:zr,u?o:zr,u?zr:r,u?zr:o,s,l,c],n=n.apply(zr,c);return Jn(e)&&oi(n,c),n.placeholder=i,ci(n,e,t)}function Cn(e){var i=a[e];return function(e,t){if(e=Va(e),(t=null==t?0:Y(Wa(t),292))&&U(e)){var n=(Ga(e)+"e").split("e");return+((n=(Ga(i(n[0]+"e"+(+n[1]+t)))+"e").split("e"))[0]+"e"+(+n[1]-t))}return i(e)}}var Sn=ee&&1/el(new ee([,-0]))[1]==1/0?function(e){return new ee(e)}:Rr;function Tn(r){return function(e){var t,n,i,a=Wn(e);return a==to?Xs(e):a==oo?(a=e,t=-1,n=Array(a.size),a.forEach(function(e){n[++t]=[e,e]}),n):Ts(r(i=e),function(e){return[e,i[e]]})}}function En(e,t,n,i,a,r,o,s){var l=2&t;if(!l&&"function"!=typeof e)throw new y(Fr);var c,u,d=i?i.length:0;d||(t&=-97,i=a=zr),o=o===zr?o:W(Wa(o),0),s=s===zr?s:Wa(s),d-=a?a.length:0,64&t&&(c=i,u=a,i=a=zr);var p,h,f,m,_=l?zr:Pn(e),o=[e,t,n,i,a,c,u,r,o,s];_&&function(e,t){var n=e[1],i=t[1],a=n|i,r=a<131,o=128==i&&8==n||128==i&&256==n&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!r&&!o)return;1&i&&(e[2]=t[2],a|=1&n?0:4);n=t[3];{var s;n&&(s=e[3],e[3]=s?tn(s,n,t[4]):n,e[4]=s?Zs(e[3],Hr):t[4])}(n=t[5])&&(s=e[5],e[5]=s?nn(s,n,t[6]):n,e[6]=s?Zs(e[5],Hr):t[6]);(n=t[7])&&(e[7]=n);128&i&&(e[8]=null==e[8]?t[8]:Y(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=a}(o,_),e=o[0],t=o[1],n=o[2],i=o[3],a=o[4],!(s=o[9]=o[9]===zr?l?0:e.length:W(o[9]-d,0))&&24&t&&(t&=-25);n=t&&1!=t?8==t||16==t?hn(e,t,s):32!=t&&33!=t||a.length?_n.apply(zr,o):bn(e,t,n,i):(h=n,f=1&t,m=pn(p=e),function e(){return(this&&this!==ds&&this instanceof e?m:p).apply(f?h:this,arguments)});return ci((_?Et:oi)(n,o),e,t)}function Qn(e,t,n,i){return e===zr||ga(e,h[n])&&!v.call(i,n)?t:e}function Dn(e,t,n,i,a,r){return Na(e)&&Na(t)&&(r.set(t,e),_t(e,t,zr,Dn,r),r.delete(t)),e}function Nn(e){return Ma(e)?zr:e}function An(e,t,n,i,a,r){var o=1&n,s=e.length,l=t.length;if(s!=l&&!(o&&s<l))return!1;l=r.get(e);if(l&&r.get(t))return l==t;var c=-1,u=!0,d=2&n?new je:zr;for(r.set(e,t),r.set(t,e);++c<s;){var p,h=e[c],f=t[c];if((p=i?o?i(f,h,c,t,e,r):i(h,f,c,e,t,r):p)!==zr){if(p)continue;u=!1;break}if(d){if(!Ns(t,function(e,t){return!Bs(d,t)&&(h===e||a(h,e,n,i,r))&&d.push(t)})){u=!1;break}}else if(h!==f&&!a(h,f,n,i,r)){u=!1;break}}return r.delete(e),r.delete(t),u}function In(e){return li(ii(e,zr,ji),e+"")}function Rn(e){return Je(e,lr,Hn)}function Mn(e){return Je(e,cr,Bn)}var Pn=ie?function(e){return ie.get(e)}:Rr;function On(e){for(var t=e.name+"",n=ae[t],i=v.call(ae,t)?n.length:0;i--;){var a=n[i],r=a.func;if(null==r||r==e)return a.name}return t}function Ln(e){return(v.call(he,"placeholder")?he:e).placeholder}function qn(){var e=(e=he.iteratee||Ar)===Ar?ct:e;return arguments.length?e(arguments[0],arguments[1]):e}function zn(e,t){var n,i=e.__data__;return("string"==(e=typeof(n=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Fn(e){for(var t=lr(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,ti(a)]}return t}function Un(e,t){t=t,t=null==(e=e)?zr:e[t];return lt(t)?t:zr}var Hn=z?function(t){return null==t?[]:(t=m(t),xs(z(t),function(e){return Q.call(t,e)}))}:Pr,Bn=z?function(e){for(var t=[];e;)Es(t,Hn(e)),e=T(e);return t}:Pr,Wn=Ze;function Yn(e,t,n){for(var i=-1,a=(t=Vt(t,e)).length,r=!1;++i<a;){var o=fi(t[i]);if(!(r=null!=e&&n(e,o)))break;e=e[o]}return r||++i!=a?r:!!(a=null==e?0:e.length)&&Da(a)&&Gn(o,a)&&(ba(e)||wa(e))}function Vn(e){return"function"!=typeof e.constructor||ei(e)?{}:fe(T(e))}function $n(e){return ba(e)||wa(e)||!!(N&&e&&e[N])}function Gn(e,t){var n=typeof e;return!!(t=null==t?Br:t)&&("number"==n||"symbol"!=n&&Xo.test(e))&&-1<e&&e%1==0&&e<t}function Kn(e,t,n){if(Na(n)){var i=typeof t;return("number"==i?ka(n)&&Gn(t,n.length):"string"==i&&t in n)&&ga(n[t],e)}}function Xn(e,t){if(!ba(e)){var n=typeof e;return"number"==n||"symbol"==n||"boolean"==n||null==e||qa(e)||(Io.test(e)||!Ao.test(e)||null!=t&&e in m(t))}}function Jn(e){var t=On(e),n=he[t];if("function"==typeof n&&t in ye.prototype){if(e===n)return 1;n=Pn(n);return n&&e===n[0]}}(X&&Wn(new X(new ArrayBuffer(1)))!=po||J&&Wn(new J)!=to||Z&&Wn(Z.resolve())!=ao||ee&&Wn(new ee)!=oo||te&&Wn(new te)!=co)&&(Wn=function(e){var t=Ze(e),e=t==io?e.constructor:zr,e=e?mi(e):"";if(e)switch(e){case re:return po;case oe:return to;case se:return ao;case le:return oo;case ce:return co}return t});var Zn=s?Ea:Or;function ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||h)}function ti(e){return e==e&&!Na(e)}function ni(t,n){return function(e){return null!=e&&(e[t]===n&&(n!==zr||t in m(e)))}}function ii(r,o,s){return o=W(o===zr?r.length-1:o,0),function(){for(var e=arguments,t=-1,n=W(e.length-o,0),i=k(n);++t<n;)i[t]=e[o+t];for(var t=-1,a=k(o+1);++t<o;)a[t]=e[t];return a[o]=s(i),vs(r,this,a)}}function ai(e,t){return t.length<2?e:Xe(e,Nt(t,0,-1))}function ri(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var oi=ui(Et),si=O||function(e,t){return ds.setTimeout(e,t)},li=ui(Qt);function ci(e,t,n){var i,a,t=t+"";return li(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(1<n?"& ":"")+t[i],t=t.join(2<n?", ":" "),e.replace(zo,"{\n/* [wrapped with "+t+"] */\n")}(t,(i=(t=(t=t).match(Fo))?t[1].split(Uo):[],a=n,bs(Vr,function(e){var t="_."+e[0];a&e[1]&&!Cs(i,t)&&i.push(t)}),i.sort())))}function ui(n){var i=0,a=0;return function(){var e=V(),t=16-(e-a);if(a=e,0<t){if(800<=++i)return arguments[0]}else i=0;return n.apply(zr,arguments)}}function di(e,t){var n=-1,i=e.length,a=i-1;for(t=t===zr?i:t;++n<t;){var r=jt(n,a),o=e[r];e[r]=e[n],e[n]=o}return e.length=t,e}var pi,hi=(pi=(Lr=da(Lr=function(e){var a=[];return 46===e.charCodeAt(0)&&a.push(""),e.replace(Ro,function(e,t,n,i){a.push(n?i.replace(Bo,"$1"):t||e)}),a},function(e){return 500===pi.size&&pi.clear(),e})).cache,Lr);function fi(e){if("string"==typeof e||qa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function mi(e){if(null!=e){try{return l.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function _i(e){if(e instanceof ye)return e.clone();var t=new ge(e.__wrapped__,e.__chain__);return t.__actions__=an(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var gi=xt(function(e,t){return xa(e)?qe(e,We(t,1,xa,!0)):[]}),yi=xt(function(e,t){var n=Ti(t);return xa(n)&&(n=zr),xa(e)?qe(e,We(t,1,xa,!0),qn(n,2)):[]}),vi=xt(function(e,t){var n=Ti(t);return xa(n)&&(n=zr),xa(e)?qe(e,We(t,1,xa,!0),zr,n):[]});function wi(e,t,n){var i=null==e?0:e.length;if(!i)return-1;n=null==n?0:Wa(n);return n<0&&(n=W(i+n,0)),Is(e,qn(t,3),n)}function bi(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i-1;return n!==zr&&(a=Wa(n),a=n<0?W(i+a,0):Y(a,i-1)),Is(e,qn(t,3),a,!0)}function ji(e){return(null==e?0:e.length)?We(e,1):[]}function ki(e){return e&&e.length?e[0]:zr}var xi=xt(function(e){var t=Ts(e,Wt);return t.length&&t[0]===e[0]?it(t):[]}),Ci=xt(function(e){var t=Ti(e),n=Ts(e,Wt);return t===Ti(n)?t=zr:n.pop(),n.length&&n[0]===e[0]?it(n,qn(t,2)):[]}),Si=xt(function(e){var t=Ti(e),n=Ts(e,Wt);return(t="function"==typeof t?t:zr)&&n.pop(),n.length&&n[0]===e[0]?it(n,zr,t):[]});function Ti(e){var t=null==e?0:e.length;return t?e[t-1]:zr}var Ei=xt(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?wt(e,t):e}var Di=In(function(e,t){var n=null==e?0:e.length,i=Re(e,t);return bt(e,Ts(t,function(e){return Gn(e,n)?+e:e}).sort(en)),i});function Ni(e){return null==e?e:K.call(e)}var Ai=xt(function(e){return Lt(We(e,1,xa,!0))}),Ii=xt(function(e){var t=Ti(e);return xa(t)&&(t=zr),Lt(We(e,1,xa,!0),qn(t,2))}),Ri=xt(function(e){var t="function"==typeof(t=Ti(e))?t:zr;return Lt(We(e,1,xa,!0),zr,t)});function Mi(t){if(!t||!t.length)return[];var n=0;return t=xs(t,function(e){return xa(e)&&(n=W(e.length,n),1)}),Fs(n,function(e){return Ts(t,Ls(e))})}function Pi(e,t){if(!e||!e.length)return[];e=Mi(e);return null==t?e:Ts(e,function(e){return vs(t,zr,e)})}var Oi=xt(function(e,t){return xa(e)?qe(e,t):[]}),Li=xt(function(e){return Ht(xs(e,xa))}),qi=xt(function(e){var t=Ti(e);return xa(t)&&(t=zr),Ht(xs(e,xa),qn(t,2))}),zi=xt(function(e){var t="function"==typeof(t=Ti(e))?t:zr;return Ht(xs(e,xa),zr,t)}),Fi=xt(Mi);var Ui=xt(function(e){var t=e.length,t="function"==typeof(t=1<t?e[t-1]:zr)?(e.pop(),t):zr;return Pi(e,t)});function Hi(e){e=he(e);return e.__chain__=!0,e}function Bi(e,t){return t(e)}var Wi=In(function(t){function e(e){return Re(e,t)}var n=t.length,i=n?t[0]:0,a=this.__wrapped__;return!(1<n||this.__actions__.length)&&a instanceof ye&&Gn(i)?((a=a.slice(i,+i+(n?1:0))).__actions__.push({func:Bi,args:[e],thisArg:zr}),new ge(a,this.__chain__).thru(function(e){return n&&!e.length&&e.push(zr),e})):this.thru(e)});var Yi=on(function(e,t,n){v.call(e,n)?++e[n]:Ie(e,n,1)});var Vi=fn(wi),$i=fn(bi);function Gi(e,t){return(ba(e)?bs:ze)(e,qn(t,3))}function Ki(e,t){return(ba(e)?js:Fe)(e,qn(t,3))}var Xi=on(function(e,t,n){v.call(e,n)?e[n].push(t):Ie(e,n,[t])});var Ji=xt(function(e,t,n){var i=-1,a="function"==typeof t,r=ka(e)?k(e.length):[];return ze(e,function(e){r[++i]=a?vs(t,e,n):at(e,t,n)}),r}),Zi=on(function(e,t,n){Ie(e,n,t)});function ea(e,t){return(ba(e)?Ts:ht)(e,qn(t,3))}var ta=on(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var na=xt(function(e,t){if(null==e)return[];var n=t.length;return 1<n&&Kn(e,t[0],t[1])?t=[]:2<n&&Kn(t[0],t[1],t[2])&&(t=[t[0]]),yt(e,We(t,1),[])}),ia=P||function(){return ds.Date.now()};function aa(e,t,n){return t=n?zr:t,t=e&&null==t?e.length:t,En(e,128,zr,zr,zr,zr,t)}function ra(e,t){var n;if("function"!=typeof t)throw new y(Fr);return e=Wa(e),function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=zr),n}}var oa=xt(function(e,t,n){var i,a=1;return n.length&&(i=Zs(n,Ln(oa)),a|=32),En(e,a,t,n,i)}),sa=xt(function(e,t,n){var i,a=3;return n.length&&(i=Zs(n,Ln(sa)),a|=32),En(t,a,e,n,i)});function la(i,n,e){var a,r,o,s,l,c,u=0,d=!1,p=!1,t=!0;if("function"!=typeof i)throw new y(Fr);function h(e){var t=a,n=r;return a=r=zr,u=e,s=i.apply(n,t)}function f(e){var t=e-c;return c===zr||n<=t||t<0||p&&o<=e-u}function m(){var e,t=ia();if(f(t))return _(t);l=si(m,(t=n-((e=t)-c),p?Y(t,o-(e-u)):t))}function _(e){return l=zr,t&&a?h(e):(a=r=zr,s)}function g(){var e=ia(),t=f(e);if(a=arguments,r=this,c=e,t){if(l===zr)return u=t=c,l=si(m,n),d?h(t):s;if(p)return Kt(l),l=si(m,n),h(c)}return l===zr&&(l=si(m,n)),s}return n=Va(n)||0,Na(e)&&(d=!!e.leading,p="maxWait"in e,o=p?W(Va(e.maxWait)||0,n):o,t="trailing"in e?!!e.trailing:t),g.cancel=function(){l!==zr&&Kt(l),u=0,a=c=r=l=zr},g.flush=function(){return l===zr?s:_(ia())},g}var ca=xt(function(e,t){return Le(e,1,t)}),ua=xt(function(e,t,n){return Le(e,Va(t)||0,n)});function da(i,a){if("function"!=typeof i||null!=a&&"function"!=typeof a)throw new y(Fr);function r(){var e=arguments,t=a?a.apply(this,e):e[0],n=r.cache;return n.has(t)?n.get(t):(e=i.apply(this,e),r.cache=n.set(t,e)||n,e)}return r.cache=new(da.Cache||be),r}function pa(t){if("function"!=typeof t)throw new y(Fr);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}da.Cache=be;var ha=$t(function(i,a){var r=(a=1==a.length&&ba(a[0])?Ts(a[0],Us(qn())):Ts(We(a,1),Us(qn()))).length;return xt(function(e){for(var t=-1,n=Y(e.length,r);++t<n;)e[t]=a[t].call(this,e[t]);return vs(i,this,e)})}),fa=xt(function(e,t){var n=Zs(t,Ln(fa));return En(e,32,zr,t,n)}),ma=xt(function(e,t){var n=Zs(t,Ln(ma));return En(e,64,zr,t,n)}),_a=In(function(e,t){return En(e,256,zr,zr,zr,t)});function ga(e,t){return e===t||e!=e&&t!=t}var ya=kn(et),va=kn(function(e,t){return t<=e}),wa=rt(function(){return arguments}())?rt:function(e){return Aa(e)&&v.call(e,"callee")&&!Q.call(e,"callee")},ba=k.isArray,ja=hs?Us(hs):function(e){return Aa(e)&&Ze(e)==uo};function ka(e){return null!=e&&Da(e.length)&&!Ea(e)}function xa(e){return Aa(e)&&ka(e)}var Ca=F||Or,Sa=fs?Us(fs):function(e){return Aa(e)&&Ze(e)==Xr};function Ta(e){if(!Aa(e))return!1;var t=Ze(e);return t==Jr||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ma(e)}function Ea(e){if(!Na(e))return!1;e=Ze(e);return e==Zr||e==eo||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Qa(e){return"number"==typeof e&&e==Wa(e)}function Da(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=Br}function Na(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Aa(e){return null!=e&&"object"==typeof e}var Ia=ms?Us(ms):function(e){return Aa(e)&&Wn(e)==to};function Ra(e){return"number"==typeof e||Aa(e)&&Ze(e)==no}function Ma(e){if(!Aa(e)||Ze(e)!=io)return!1;e=T(e);if(null===e)return!0;e=v.call(e,"constructor")&&e.constructor;return"function"==typeof e&&e instanceof e&&l.call(e)==g}var Pa=_s?Us(_s):function(e){return Aa(e)&&Ze(e)==ro};var Oa=gs?Us(gs):function(e){return Aa(e)&&Wn(e)==oo};function La(e){return"string"==typeof e||!ba(e)&&Aa(e)&&Ze(e)==so}function qa(e){return"symbol"==typeof e||Aa(e)&&Ze(e)==lo}var za=ys?Us(ys):function(e){return Aa(e)&&Da(e.length)&&!!ss[Ze(e)]};var Fa=kn(pt),Ua=kn(function(e,t){return e<=t});function Ha(e){if(!e)return[];if(ka(e))return(La(e)?nl:an)(e);if(A&&e[A])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[A]());var t=Wn(e);return(t==to?Xs:t==oo?el:gr)(e)}function Ba(e){return e?(e=Va(e))!==1/0&&e!==-1/0?e==e?e:0:17976931348623157e292*(e<0?-1:1):0===e?e:0}function Wa(e){var t=Ba(e),e=t%1;return t==t?e?t-e:t:0}function Ya(e){return e?Me(Wa(e),0,Yr):0}function Va(e){if("number"==typeof e)return e;if(qa(e))return Wr;if("string"!=typeof(e=Na(e)?Na(t="function"==typeof e.valueOf?e.valueOf():e)?t+"":t:e))return 0===e?e:+e;e=e.replace(Oo,"");var t=$o.test(e);return t||Ko.test(e)?us(e.slice(2),t?2:8):Vo.test(e)?Wr:+e}function $a(e){return rn(e,cr(e))}function Ga(e){return null==e?"":Ot(e)}var Ka=sn(function(e,t){if(ei(t)||ka(t))rn(t,lr(t),e);else for(var n in t)v.call(t,n)&&Qe(e,n,t[n])}),Xa=sn(function(e,t){rn(t,cr(t),e)}),Ja=sn(function(e,t,n,i){rn(t,cr(t),e,i)}),Za=sn(function(e,t,n,i){rn(t,lr(t),e,i)}),er=In(Re);var tr=xt(function(e,t){e=m(e);var n=-1,i=t.length,a=2<i?t[2]:zr;for(a&&Kn(t[0],t[1],a)&&(i=1);++n<i;)for(var r=t[n],o=cr(r),s=-1,l=o.length;++s<l;){var c=o[s],u=e[c];(u===zr||ga(u,h[c])&&!v.call(e,c))&&(e[c]=r[c])}return e}),nr=xt(function(e){return e.push(zr,Dn),vs(dr,zr,e)});function ir(e,t,n){t=null==e?zr:Xe(e,t);return t===zr?n:t}function ar(e,t){return null!=e&&Yn(e,t,nt)}var rr=gn(function(e,t,n){e[t=null!=t&&"function"!=typeof t.toString?_.call(t):t]=n},Dr(Nr)),or=gn(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=_.call(t)),v.call(e,t)?e[t].push(n):e[t]=[n]},qn),sr=xt(at);function lr(e){return(ka(e)?xe:ut)(e)}function cr(e){return ka(e)?xe(e,!0):dt(e)}var ur=sn(function(e,t,n){_t(e,t,n)}),dr=sn(function(e,t,n,i){_t(e,t,n,i)}),pr=In(function(t,e){var n={};if(null==t)return n;var i=!1;e=Ts(e,function(e){return e=Vt(e,t),i=i||1<e.length,e}),rn(t,Mn(t),n),i&&(n=Pe(n,7,Nn));for(var a=e.length;a--;)qt(n,e[a]);return n});var hr=In(function(e,t){return null==e?{}:vt(n=e,t,function(e,t){return ar(n,t)});var n});function fr(e,n){if(null==e)return{};var t=Ts(Mn(e),function(e){return[e]});return n=qn(n),vt(e,t,function(e,t){return n(e,t[0])})}var mr=Tn(lr),_r=Tn(cr);function gr(e){return null==e?[]:Hs(e,lr(e))}var yr=dn(function(e,t,n){return t=t.toLowerCase(),e+(n?vr(t):t)});function vr(e){return Sr(Ga(e).toLowerCase())}function wr(e){return(e=Ga(e))&&e.replace(Jo,Vs).replace(ns,"")}var br=dn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),jr=dn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),kr=un("toLowerCase");var xr=dn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Cr=dn(function(e,t,n){return e+(n?" ":"")+Sr(t)});var o=dn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Sr=un("toUpperCase");function Tr(e,t,n){return e=Ga(e),(t=n?zr:t)===zr?(n=e,as.test(n)?e.match(is)||[]:e.match(Ho)||[]):e.match(t)||[]}var Er=xt(function(e,t){try{return vs(e,zr,t)}catch(e){return Ta(e)?e:new i(e)}}),Qr=In(function(t,e){return bs(e,function(e){e=fi(e),Ie(t,e,oa(t[e],t))}),t});function Dr(e){return function(){return e}}j=mn(),n=mn(!0);function Nr(e){return e}function Ar(e){return ct("function"==typeof e?e:Pe(e,1))}t=xt(function(t,n){return function(e){return at(e,t,n)}}),x=xt(function(t,n){return function(e){return at(t,e,n)}});function Ir(i,t,e){var n=lr(t),a=Ke(t,n);null!=e||Na(t)&&(a.length||!n.length)||(e=t,t=i,i=this,a=Ke(t,lr(t)));var r=!(Na(e)&&"chain"in e&&!e.chain),o=Ea(i);return bs(a,function(e){var n=t[e];i[e]=n,o&&(i.prototype[e]=function(){var e=this.__chain__;if(r||e){var t=i(this.__wrapped__);return(t.__actions__=an(this.__actions__)).push({func:n,args:arguments,thisArg:i}),t.__chain__=e,t}return n.apply(i,Es([this.value()],arguments))})}),i}function Rr(){}ue=vn(Ts),M=vn(ks),X=vn(Ns);function Mr(e){return Xn(e)?Ls(fi(e)):(t=e,function(e){return Xe(e,t)});var t}Z=jn(),te=jn(!0);function Pr(){return[]}function Or(){return!1}var s=yn(function(e,t){return e+t},0),O=Cn("ceil"),Qt=yn(function(e,t){return e/t},1),Lr=Cn("floor");var qr,P=yn(function(e,t){return e*t},1),$t=Cn("round"),F=yn(function(e,t){return e-t},0);return he.after=function(e,t){if("function"!=typeof t)throw new y(Fr);return e=Wa(e),function(){if(--e<1)return t.apply(this,arguments)}},he.ary=aa,he.assign=Ka,he.assignIn=Xa,he.assignInWith=Ja,he.assignWith=Za,he.at=er,he.before=ra,he.bind=oa,he.bindAll=Qr,he.bindKey=sa,he.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ba(e)?e:[e]},he.chain=Hi,he.chunk=function(e,t,n){t=(n?Kn(e,t,n):t===zr)?1:W(Wa(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,r=0,o=k(L(i/t));a<i;)o[r++]=Nt(e,a,a+=t);return o},he.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,a=[];++t<n;){var r=e[t];r&&(a[i++]=r)}return a},he.concat=function(){var e=arguments.length;if(!e)return[];for(var t=k(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Es(ba(n)?an(n):[n],We(t,1))},he.cond=function(i){var a=null==i?0:i.length,t=qn();return i=a?Ts(i,function(e){if("function"!=typeof e[1])throw new y(Fr);return[t(e[0]),e[1]]}):[],xt(function(e){for(var t=-1;++t<a;){var n=i[t];if(vs(n[0],this,e))return vs(n[1],this,e)}})},he.conforms=function(e){return t=Pe(e,1),n=lr(t),function(e){return Oe(e,t,n)};var t,n},he.constant=Dr,he.countBy=Yi,he.create=function(e,t){return e=fe(e),null==t?e:Ae(e,t)},he.curry=function e(t,n,i){n=En(t,8,zr,zr,zr,zr,zr,n=i?zr:n);return n.placeholder=e.placeholder,n},he.curryRight=function e(t,n,i){n=En(t,16,zr,zr,zr,zr,zr,n=i?zr:n);return n.placeholder=e.placeholder,n},he.debounce=la,he.defaults=tr,he.defaultsDeep=nr,he.defer=ca,he.delay=ua,he.difference=gi,he.differenceBy=yi,he.differenceWith=vi,he.drop=function(e,t,n){var i=null==e?0:e.length;return i?Nt(e,(t=n||t===zr?1:Wa(t))<0?0:t,i):[]},he.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?Nt(e,0,(t=i-(t=n||t===zr?1:Wa(t)))<0?0:t):[]},he.dropRightWhile=function(e,t){return e&&e.length?Ft(e,qn(t,3),!0,!0):[]},he.dropWhile=function(e,t){return e&&e.length?Ft(e,qn(t,3),!0):[]},he.fill=function(e,t,n,i){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&Kn(e,t,n)&&(n=0,i=a),function(e,t,n,i){var a=e.length;for((n=Wa(n))<0&&(n=a<-n?0:a+n),(i=i===zr||a<i?a:Wa(i))<0&&(i+=a),i=i<n?0:Ya(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},he.filter=function(e,t){return(ba(e)?xs:Be)(e,qn(t,3))},he.flatMap=function(e,t){return We(ea(e,t),1)},he.flatMapDeep=function(e,t){return We(ea(e,t),1/0)},he.flatMapDepth=function(e,t,n){return n=n===zr?1:Wa(n),We(ea(e,t),n)},he.flatten=ji,he.flattenDeep=function(e){return(null==e?0:e.length)?We(e,1/0):[]},he.flattenDepth=function(e,t){return(null==e?0:e.length)?We(e,t=t===zr?1:Wa(t)):[]},he.flip=function(e){return En(e,512)},he.flow=j,he.flowRight=n,he.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var a=e[t];i[a[0]]=a[1]}return i},he.functions=function(e){return null==e?[]:Ke(e,lr(e))},he.functionsIn=function(e){return null==e?[]:Ke(e,cr(e))},he.groupBy=Xi,he.initial=function(e){return(null==e?0:e.length)?Nt(e,0,-1):[]},he.intersection=xi,he.intersectionBy=Ci,he.intersectionWith=Si,he.invert=rr,he.invertBy=or,he.invokeMap=Ji,he.iteratee=Ar,he.keyBy=Zi,he.keys=lr,he.keysIn=cr,he.map=ea,he.mapKeys=function(e,i){var a={};return i=qn(i,3),$e(e,function(e,t,n){Ie(a,i(e,t,n),e)}),a},he.mapValues=function(e,i){var a={};return i=qn(i,3),$e(e,function(e,t,n){Ie(a,t,i(e,t,n))}),a},he.matches=function(e){return ft(Pe(e,1))},he.matchesProperty=function(e,t){return mt(e,Pe(t,1))},he.memoize=da,he.merge=ur,he.mergeWith=dr,he.method=t,he.methodOf=x,he.mixin=Ir,he.negate=pa,he.nthArg=function(t){return t=Wa(t),xt(function(e){return gt(e,t)})},he.omit=pr,he.omitBy=function(e,t){return fr(e,pa(qn(t)))},he.once=function(e){return ra(2,e)},he.orderBy=function(e,t,n,i){return null==e?[]:yt(e,t=!ba(t)?null==t?[]:[t]:t,n=!ba(n=i?zr:n)?null==n?[]:[n]:n)},he.over=ue,he.overArgs=ha,he.overEvery=M,he.overSome=X,he.partial=fa,he.partialRight=ma,he.partition=ta,he.pick=hr,he.pickBy=fr,he.property=Mr,he.propertyOf=function(t){return function(e){return null==t?zr:Xe(t,e)}},he.pull=Ei,he.pullAll=Qi,he.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?wt(e,t,qn(n,2)):e},he.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?wt(e,t,zr,n):e},he.pullAt=Di,he.range=Z,he.rangeRight=te,he.rearg=_a,he.reject=function(e,t){return(ba(e)?xs:Be)(e,pa(qn(t,3)))},he.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,a=[],r=e.length;for(t=qn(t,3);++i<r;){var o=e[i];t(o,i,e)&&(n.push(o),a.push(i))}return bt(e,a),n},he.rest=function(e,t){if("function"!=typeof e)throw new y(Fr);return xt(e,t=t===zr?t:Wa(t))},he.reverse=Ni,he.sampleSize=function(e,t,n){return t=(n?Kn(e,t,n):t===zr)?1:Wa(t),(ba(e)?Se:St)(e,t)},he.set=function(e,t,n){return null==e?e:Tt(e,t,n)},he.setWith=function(e,t,n,i){return i="function"==typeof i?i:zr,null==e?e:Tt(e,t,n,i)},he.shuffle=function(e){return(ba(e)?Te:Dt)(e)},he.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n=n&&"number"!=typeof n&&Kn(e,t,n)?(t=0,i):(t=null==t?0:Wa(t),n===zr?i:Wa(n)),Nt(e,t,n)):[]},he.sortBy=na,he.sortedUniq=function(e){return e&&e.length?Mt(e):[]},he.sortedUniqBy=function(e,t){return e&&e.length?Mt(e,qn(t,2)):[]},he.split=function(e,t,n){return n&&"number"!=typeof n&&Kn(e,t,n)&&(t=n=zr),(n=n===zr?Yr:n>>>0)?(e=Ga(e))&&("string"==typeof t||null!=t&&!Pa(t))&&!(t=Ot(t))&&Ks(e)?Gt(nl(e),0,n):e.split(t,n):[]},he.spread=function(n,i){if("function"!=typeof n)throw new y(Fr);return i=null==i?0:W(Wa(i),0),xt(function(e){var t=e[i],e=Gt(e,0,i);return t&&Es(e,t),vs(n,this,e)})},he.tail=function(e){var t=null==e?0:e.length;return t?Nt(e,1,t):[]},he.take=function(e,t,n){return e&&e.length?Nt(e,0,(t=n||t===zr?1:Wa(t))<0?0:t):[]},he.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?Nt(e,(t=i-(t=n||t===zr?1:Wa(t)))<0?0:t,i):[]},he.takeRightWhile=function(e,t){return e&&e.length?Ft(e,qn(t,3),!1,!0):[]},he.takeWhile=function(e,t){return e&&e.length?Ft(e,qn(t,3)):[]},he.tap=function(e,t){return t(e),e},he.throttle=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new y(Fr);return Na(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),la(e,t,{leading:i,maxWait:t,trailing:a})},he.thru=Bi,he.toArray=Ha,he.toPairs=mr,he.toPairsIn=_r,he.toPath=function(e){return ba(e)?Ts(e,fi):qa(e)?[e]:an(hi(Ga(e)))},he.toPlainObject=$a,he.transform=function(e,i,a){var t,n=ba(e),r=n||Ca(e)||za(e);return i=qn(i,4),null==a&&(t=e&&e.constructor,a=r?n?new t:[]:Na(e)&&Ea(t)?fe(T(e)):{}),(r?bs:$e)(e,function(e,t,n){return i(a,e,t,n)}),a},he.unary=function(e){return aa(e,1)},he.union=Ai,he.unionBy=Ii,he.unionWith=Ri,he.uniq=function(e){return e&&e.length?Lt(e):[]},he.uniqBy=function(e,t){return e&&e.length?Lt(e,qn(t,2)):[]},he.uniqWith=function(e,t){return t="function"==typeof t?t:zr,e&&e.length?Lt(e,zr,t):[]},he.unset=function(e,t){return null==e||qt(e,t)},he.unzip=Mi,he.unzipWith=Pi,he.update=function(e,t,n){return null==e?e:zt(e,t,Yt(n))},he.updateWith=function(e,t,n,i){return i="function"==typeof i?i:zr,null==e?e:zt(e,t,Yt(n),i)},he.values=gr,he.valuesIn=function(e){return null==e?[]:Hs(e,cr(e))},he.without=Oi,he.words=Tr,he.wrap=function(e,t){return fa(Yt(t),e)},he.xor=Li,he.xorBy=qi,he.xorWith=zi,he.zip=Fi,he.zipObject=function(e,t){return Bt(e||[],t||[],Qe)},he.zipObjectDeep=function(e,t){return Bt(e||[],t||[],Tt)},he.zipWith=Ui,he.entries=mr,he.entriesIn=_r,he.extend=Xa,he.extendWith=Ja,Ir(he,he),he.add=s,he.attempt=Er,he.camelCase=yr,he.capitalize=vr,he.ceil=O,he.clamp=function(e,t,n){return n===zr&&(n=t,t=zr),n!==zr&&(n=(n=Va(n))==n?n:0),t!==zr&&(t=(t=Va(t))==t?t:0),Me(Va(e),t,n)},he.clone=function(e){return Pe(e,4)},he.cloneDeep=function(e){return Pe(e,5)},he.cloneDeepWith=function(e,t){return Pe(e,5,t="function"==typeof t?t:zr)},he.cloneWith=function(e,t){return Pe(e,4,t="function"==typeof t?t:zr)},he.conformsTo=function(e,t){return null==t||Oe(e,t,lr(t))},he.deburr=wr,he.defaultTo=function(e,t){return null==e||e!=e?t:e},he.divide=Qt,he.endsWith=function(e,t,n){e=Ga(e),t=Ot(t);var i=e.length,i=n=n===zr?i:Me(Wa(n),0,i);return 0<=(n-=t.length)&&e.slice(n,i)==t},he.eq=ga,he.escape=function(e){return(e=Ga(e))&&Eo.test(e)?e.replace(So,$s):e},he.escapeRegExp=function(e){return(e=Ga(e))&&Po.test(e)?e.replace(Mo,"\\$&"):e},he.every=function(e,t,n){return(ba(e)?ks:Ue)(e,qn(t=n&&Kn(e,t,n)?zr:t,3))},he.find=Vi,he.findIndex=wi,he.findKey=function(e,t){return As(e,qn(t,3),$e)},he.findLast=$i,he.findLastIndex=bi,he.findLastKey=function(e,t){return As(e,qn(t,3),Ge)},he.floor=Lr,he.forEach=Gi,he.forEachRight=Ki,he.forIn=function(e,t){return null==e?e:Ye(e,qn(t,3),cr)},he.forInRight=function(e,t){return null==e?e:Ve(e,qn(t,3),cr)},he.forOwn=function(e,t){return e&&$e(e,qn(t,3))},he.forOwnRight=function(e,t){return e&&Ge(e,qn(t,3))},he.get=ir,he.gt=ya,he.gte=va,he.has=function(e,t){return null!=e&&Yn(e,t,tt)},he.hasIn=ar,he.head=ki,he.identity=Nr,he.includes=function(e,t,n,i){return e=ka(e)?e:gr(e),n=n&&!i?Wa(n):0,i=e.length,n<0&&(n=W(i+n,0)),La(e)?n<=i&&-1<e.indexOf(t,n):!!i&&-1<Rs(e,t,n)},he.indexOf=function(e,t,n){var i=null==e?0:e.length;return i?(n=null==n?0:Wa(n),Rs(e,t,n=n<0?W(i+n,0):n)):-1},he.inRange=function(e,t,n){return t=Ba(t),n===zr?(n=t,t=0):n=Ba(n),(e=e=Va(e))>=Y(t=t,n=n)&&e<W(t,n)},he.invoke=sr,he.isArguments=wa,he.isArray=ba,he.isArrayBuffer=ja,he.isArrayLike=ka,he.isArrayLikeObject=xa,he.isBoolean=function(e){return!0===e||!1===e||Aa(e)&&Ze(e)==Kr},he.isBuffer=Ca,he.isDate=Sa,he.isElement=function(e){return Aa(e)&&1===e.nodeType&&!Ma(e)},he.isEmpty=function(e){if(null==e)return!0;if(ka(e)&&(ba(e)||"string"==typeof e||"function"==typeof e.splice||Ca(e)||za(e)||wa(e)))return!e.length;var t,n=Wn(e);if(n==to||n==oo)return!e.size;if(ei(e))return!ut(e).length;for(t in e)if(v.call(e,t))return!1;return!0},he.isEqual=function(e,t){return ot(e,t)},he.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:zr)?n(e,t):zr;return i===zr?ot(e,t,zr,n):!!i},he.isError=Ta,he.isFinite=function(e){return"number"==typeof e&&U(e)},he.isFunction=Ea,he.isInteger=Qa,he.isLength=Da,he.isMap=Ia,he.isMatch=function(e,t){return e===t||st(e,t,Fn(t))},he.isMatchWith=function(e,t,n){return n="function"==typeof n?n:zr,st(e,t,Fn(t),n)},he.isNaN=function(e){return Ra(e)&&e!=+e},he.isNative=function(e){if(Zn(e))throw new i("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return lt(e)},he.isNil=function(e){return null==e},he.isNull=function(e){return null===e},he.isNumber=Ra,he.isObject=Na,he.isObjectLike=Aa,he.isPlainObject=Ma,he.isRegExp=Pa,he.isSafeInteger=function(e){return Qa(e)&&-Br<=e&&e<=Br},he.isSet=Oa,he.isString=La,he.isSymbol=qa,he.isTypedArray=za,he.isUndefined=function(e){return e===zr},he.isWeakMap=function(e){return Aa(e)&&Wn(e)==co},he.isWeakSet=function(e){return Aa(e)&&"[object WeakSet]"==Ze(e)},he.join=function(e,t){return null==e?"":H.call(e,t)},he.kebabCase=br,he.last=Ti,he.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i;return n!==zr&&(a=(a=Wa(n))<0?W(i+a,0):Y(a,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,a):Is(e,Ps,a,!0)},he.lowerCase=jr,he.lowerFirst=kr,he.lt=Fa,he.lte=Ua,he.max=function(e){return e&&e.length?He(e,Nr,et):zr},he.maxBy=function(e,t){return e&&e.length?He(e,qn(t,2),et):zr},he.mean=function(e){return Os(e,Nr)},he.meanBy=function(e,t){return Os(e,qn(t,2))},he.min=function(e){return e&&e.length?He(e,Nr,pt):zr},he.minBy=function(e,t){return e&&e.length?He(e,qn(t,2),pt):zr},he.stubArray=Pr,he.stubFalse=Or,he.stubObject=function(){return{}},he.stubString=function(){return""},he.stubTrue=function(){return!0},he.multiply=P,he.nth=function(e,t){return e&&e.length?gt(e,Wa(t)):zr},he.noConflict=function(){return ds._===this&&(ds._=w),this},he.noop=Rr,he.now=ia,he.pad=function(e,t,n){e=Ga(e);var i=(t=Wa(t))?tl(e):0;return!t||t<=i?e:wn(q(i=(t-i)/2),n)+e+wn(L(i),n)},he.padEnd=function(e,t,n){e=Ga(e);var i=(t=Wa(t))?tl(e):0;return t&&i<t?e+wn(t-i,n):e},he.padStart=function(e,t,n){e=Ga(e);var i=(t=Wa(t))?tl(e):0;return t&&i<t?wn(t-i,n)+e:e},he.parseInt=function(e,t,n){return t=n||null==t?0:t&&+t,$(Ga(e).replace(Lo,""),t||0)},he.random=function(e,t,n){var i;if(n&&"boolean"!=typeof n&&Kn(e,t,n)&&(t=n=zr),n===zr&&("boolean"==typeof t?(n=t,t=zr):"boolean"==typeof e&&(n=e,e=zr)),e===zr&&t===zr?(e=0,t=1):(e=Ba(e),t===zr?(t=e,e=0):t=Ba(t)),t<e&&(i=e,e=t,t=i),n||e%1||t%1){n=G();return Y(e+n*(t-e+cs("1e-"+((n+"").length-1))),t)}return jt(e,t)},he.reduce=function(e,t,n){var i=ba(e)?Qs:qs,a=arguments.length<3;return i(e,qn(t,4),n,a,ze)},he.reduceRight=function(e,t,n){var i=ba(e)?Ds:qs,a=arguments.length<3;return i(e,qn(t,4),n,a,Fe)},he.repeat=function(e,t,n){return t=(n?Kn(e,t,n):t===zr)?1:Wa(t),kt(Ga(e),t)},he.replace=function(){var e=arguments,t=Ga(e[0]);return e.length<3?t:t.replace(e[1],e[2])},he.result=function(e,t,n){var i=-1,a=(t=Vt(t,e)).length;for(a||(a=1,e=zr);++i<a;){var r=null==e?zr:e[fi(t[i])];r===zr&&(i=a,r=n),e=Ea(r)?r.call(e):r}return e},he.round=$t,he.runInContext=e,he.sample=function(e){return(ba(e)?Ce:Ct)(e)},he.size=function(e){if(null==e)return 0;if(ka(e))return La(e)?tl(e):e.length;var t=Wn(e);return t==to||t==oo?e.size:ut(e).length},he.snakeCase=xr,he.some=function(e,t,n){return(ba(e)?Ns:At)(e,qn(t=n&&Kn(e,t,n)?zr:t,3))},he.sortedIndex=function(e,t){return It(e,t)},he.sortedIndexBy=function(e,t,n){return Rt(e,t,qn(n,2))},he.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=It(e,t);if(i<n&&ga(e[i],t))return i}return-1},he.sortedLastIndex=function(e,t){return It(e,t,!0)},he.sortedLastIndexBy=function(e,t,n){return Rt(e,t,qn(n,2),!0)},he.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=It(e,t,!0)-1;if(ga(e[n],t))return n}return-1},he.startCase=Cr,he.startsWith=function(e,t,n){return e=Ga(e),n=null==n?0:Me(Wa(n),0,e.length),t=Ot(t),e.slice(n,n+t.length)==t},he.subtract=F,he.sum=function(e){return e&&e.length?zs(e,Nr):0},he.sumBy=function(e,t){return e&&e.length?zs(e,qn(t,2)):0},he.template=function(o,e,t){var n=he.templateSettings;t&&Kn(o,e,t)&&(e=zr),o=Ga(o),e=Ja({},e,n,Qn);var s,l,i=lr(n=Ja({},e.imports,n.imports,Qn)),a=Hs(n,i),c=0,n=e.interpolate||Zo,u="__p +='",n=p((e.escape||Zo).source+"|"+n.source+"|"+(n===No?Wo:Zo).source+"|"+(e.evaluate||Zo).source+"|$","g"),r="//# sourceURL="+(v.call(e,"sourceURL")?(e.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++os+"]")+"\n";if(o.replace(n,function(e,t,n,i,a,r){return n=n||i,u+=o.slice(c,r).replace(es,Gs),t&&(s=!0,u+="' +\n__e("+t+") +\n'"),a&&(l=!0,u+="';\n"+a+";\n__p +='"),n&&(u+="' +\n((__t=("+n+"))==null ? '':__t) +\n'"),c=r+e.length,e}),u+="';\n",(e=v.call(e,"variable")&&e.variable)||(u="with (obj){\n"+u+"\n}\n"),u=(l?u.replace(jo,""):u).replace(ko,"$1").replace(xo,"$1;"),u="function("+(e||"obj")+"){\n"+(e?"":"obj||(obj={});\n")+"var __t, __p=''"+(s?", __e=_.escape":"")+(l?", __j=Array.prototype.join;\nfunction print(){ __p +=__j.call(arguments, '') }\n":";\n")+u+"return __p\n}",(e=Er(function(){return d(i,r+"return "+u).apply(zr,a)})).source=u,Ta(e))throw e;return e},he.times=function(e,t){if((e=Wa(e))<1||Br<e)return[];var n=Yr,i=Y(e,Yr);for(t=qn(t),e-=Yr,i=Fs(i,t);++n<e;)t(n);return i},he.toFinite=Ba,he.toInteger=Wa,he.toLength=Ya,he.toLower=function(e){return Ga(e).toLowerCase()},he.toNumber=Va,he.toSafeInteger=function(e){return e?Me(Wa(e),-Br,Br):0===e?e:0},he.toString=Ga,he.toUpper=function(e){return Ga(e).toUpperCase()},he.trim=function(e,t,n){return(e=Ga(e))&&(n||t===zr)?e.replace(Oo,""):e&&(t=Ot(t))?(e=nl(e),t=nl(t),Gt(e,Ws(e,t),Ys(e,t)+1).join("")):e},he.trimEnd=function(e,t,n){return(e=Ga(e))&&(n||t===zr)?e.replace(qo,""):e&&(t=Ot(t))?Gt(e=nl(e),0,Ys(e,nl(t))+1).join(""):e},he.trimStart=function(e,t,n){return(e=Ga(e))&&(n||t===zr)?e.replace(Lo,""):e&&(t=Ot(t))?Gt(e=nl(e),Ws(e,nl(t))).join(""):e},he.truncate=function(e,t){var n,i=30,a="...";Na(t)&&(n="separator"in t?t.separator:n,i="length"in t?Wa(t.length):i,a="omission"in t?Ot(t.omission):a);var r,t=(e=Ga(e)).length;if((t=Ks(e)?(r=nl(e)).length:t)<=i)return e;if((t=i-tl(a))<1)return a;if(i=r?Gt(r,0,t).join(""):e.slice(0,t),n===zr)return i+a;if(r&&(t+=i.length-t),Pa(n)){if(e.slice(t).search(n)){var o,s=i;for((n=!n.global?p(n.source,Ga(Yo.exec(n))+"g"):n).lastIndex=0;o=n.exec(s);)var l=o.index;i=i.slice(0,l===zr?t:l)}}else e.indexOf(Ot(n),t)==t||-1<(t=i.lastIndexOf(n))&&(i=i.slice(0,t));return i+a},he.unescape=function(e){return(e=Ga(e))&&To.test(e)?e.replace(Co,il):e},he.uniqueId=function(e){var t=++c;return Ga(e)+t},he.upperCase=o,he.upperFirst=Sr,he.each=Gi,he.eachRight=Ki,he.first=ki,Ir(he,(qr={},$e(he,function(e,t){v.call(he.prototype,t)||(qr[t]=e)}),qr),{chain:!1}),he.VERSION="4.17.15",bs(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){he[e].placeholder=he}),bs(["drop","take"],function(n,i){ye.prototype[n]=function(e){e=e===zr?1:W(Wa(e),0);var t=this.__filtered__&&!i?new ye(this):this.clone();return t.__filtered__?t.__takeCount__=Y(e,t.__takeCount__):t.__views__.push({size:Y(e,Yr),type:n+(t.__dir__<0?"Right":"")}),t},ye.prototype[n+"Right"]=function(e){return this.reverse()[n](e).reverse()}}),bs(["filter","map","takeWhile"],function(e,t){var n=t+1,i=1==n||3==n;ye.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:qn(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),bs(["head","last"],function(e,t){var n="take"+(t?"Right":"");ye.prototype[e]=function(){return this[n](1).value()[0]}}),bs(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ye.prototype[e]=function(){return this.__filtered__?new ye(this):this[n](1)}}),ye.prototype.compact=function(){return this.filter(Nr)},ye.prototype.find=function(e){return this.filter(e).head()},ye.prototype.findLast=function(e){return this.reverse().find(e)},ye.prototype.invokeMap=xt(function(t,n){return"function"==typeof t?new ye(this):this.map(function(e){return at(e,t,n)})}),ye.prototype.reject=function(e){return this.filter(pa(qn(e)))},ye.prototype.slice=function(e,t){e=Wa(e);var n=this;return n.__filtered__&&(0<e||t<0)?new ye(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==zr?(t=Wa(t))<0?n.dropRight(-t):n.take(t-e):n)},ye.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ye.prototype.toArray=function(){return this.take(Yr)},$e(ye.prototype,function(c,e){var u=/^(?:filter|find|map|reject)|While$/.test(e),d=/^(?:head|last)$/.test(e),p=he[d?"take"+("last"==e?"Right":""):e],h=d||/^find/.test(e);p&&(he.prototype[e]=function(){function e(e){return e=p.apply(he,Es([e],n)),d&&o?e[0]:e}var t=this.__wrapped__,n=d?[1]:arguments,i=t instanceof ye,a=n[0],r=i||ba(t);r&&u&&"function"==typeof a&&1!=a.length&&(i=r=!1);var o=this.__chain__,s=!!this.__actions__.length,a=h&&!o,s=i&&!s;if(h||!r)return a&&s?c.apply(this,n):(l=this.thru(e),a?d?l.value()[0]:l.value():l);var t=s?t:new ye(this),l=c.apply(t,n);return l.__actions__.push({func:Bi,args:[e],thisArg:zr}),new ge(l,o)})}),bs(["pop","push","shift","sort","splice","unshift"],function(e){var n=r[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);he.prototype[e]=function(){var t=arguments;if(!a||this.__chain__)return this[i](function(e){return n.apply(ba(e)?e:[],t)});var e=this.value();return n.apply(ba(e)?e:[],t)}}),$e(ye.prototype,function(e,t){var n,i=he[t];i&&(n=i.name+"",v.call(ae,n)||(ae[n]=[]),ae[n].push({name:t,func:i}))}),ae[_n(zr,2).name]=[{name:"wrapper",func:zr}],ye.prototype.clone=function(){var e=new ye(this.__wrapped__);return e.__actions__=an(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=an(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=an(this.__views__),e},ye.prototype.reverse=function(){var e;return this.__filtered__?((e=new ye(this)).__dir__=-1,e.__filtered__=!0):(e=this.clone()).__dir__*=-1,e},ye.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ba(e),i=t<0,a=n?e.length:0,r=function(e,t,n){var i=-1,a=n.length;for(;++i<a;){var r=n[i],o=r.size;switch(r.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=Y(t,e+o);break;case"takeRight":e=W(e,t-o)}}return{start:e,end:t}}(0,a,this.__views__),o=r.start,s=(r=r.end)-o,l=i?r:o-1,c=this.__iteratees__,u=c.length,d=0,p=Y(s,this.__takeCount__);if(!n||!i&&a==s&&p==s)return Ut(e,this.__actions__);var h=[];e:for(;s--&&d<p;){for(var f=-1,m=e[l+=t];++f<u;){var _=c[f],g=_.iteratee,_=_.type,g=g(m);if(2==_)m=g;else if(!g){if(1==_)continue e;break e}}h[d++]=m}return h},he.prototype.at=Wi,he.prototype.chain=function(){return Hi(this)},he.prototype.commit=function(){return new ge(this.value(),this.__chain__)},he.prototype.next=function(){this.__values__===zr&&(this.__values__=Ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?zr:this.__values__[this.__index__++]}},he.prototype.plant=function(e){for(var t,n=this;n instanceof _e;){var i=_i(n);i.__index__=0,i.__values__=zr,t?a.__wrapped__=i:t=i;var a=i,n=n.__wrapped__}return a.__wrapped__=e,t},he.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ye){e=e;return(e=(e=this.__actions__.length?new ye(this):e).reverse()).__actions__.push({func:Bi,args:[Ni],thisArg:zr}),new ge(e,this.__chain__)}return this.thru(Ni)},he.prototype.toJSON=he.prototype.valueOf=he.prototype.value=function(){return Ut(this.__wrapped__,this.__actions__)},he.prototype.first=he.prototype.head,A&&(he.prototype[A]=function(){return this}),he}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(ds._=al,define(function(){return al})):j?((j.exports=al)._=al,r._=al):ds._=al}.call(this),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(C){function e(e,n){if(!e)throw"Missing Style name";if(!n)throw"Missing Style definition";if(!n.html)throw"Missing Style HTML";var t=d[e];t&&t.cssElem&&(window.console&&console.warn(l+": overwriting style '"+e+"'"),d[e].cssElem.remove()),n.name=e,d[e]=n;var a="";n.classes&&C.each(n.classes,function(e,t){return a+="."+c+"-"+n.name+"-"+e+" {\n",C.each(t,function(n,i){return h[n]&&C.each(h[n],function(e,t){return a+="\t"+t+n+": "+i+";\n"}),a+="\t"+n+": "+i+";\n"}),a+="}\n"}),n.css&&(a+="/* styles for "+n.name+" */\n"+n.css),a&&(n.cssElem=i(a),n.cssElem.attr("id","notify-"+n.name)),t={},e=C(n.html),r("html",e,t),r("text",e,t),n.fields=t}function i(t){var n=a("style");n.attr("type","text/css"),C("head").append(n);try{n.html(t)}catch(e){n[0].styleSheet.cssText=t}return n}function r(t,e,n){var i;return f(e,"["+(i="data-notify-"+(t="html"!==t?"text":t))+"]").each(function(){var e=C(this).attr(i);n[e=e||u]=t})}function o(n){return n=n.is("[type=radio]")?n.parents("form:first").find("[type=radio]").filter(function(e,t){return C(t).attr("name")===n.attr("name")}).first():n}function S(e,t,n){var i;if("string"==typeof n)n=parseInt(n,10);else if("number"!=typeof n)return;return!isNaN(n)&&(i=Q[I[t.charAt(0)]],void 0!==e[i]&&(t=Q[i.charAt(0)],n=-n),void 0===e[t]?e[t]=n:e[t]+=n,0)}function T(e,t,n){if("l"===e||"t"===e)return 0;if("c"===e||"m"===e)return n/2-t/2;if("r"===e||"b"===e)return n-t;throw"Invalid alignment"}function s(e){return(s.e=s.e||a("div")).text(e).html()}var E=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},l="notify",c=l+"js",u=l+"!blank",Q={t:"top",m:"middle",b:"bottom",l:"left",c:"center",r:"right"},D=["l","c","r"],N=["t","m","b"],A=["t","b","l","r"],I={t:"b",m:null,b:"t",l:"r",c:null,r:"l"},d={},p={name:"core",html:'<div class="'+c+'-wrapper">\n\t<div class="'+c+'-arrow"></div>\n\t<div class="'+c+'-container"></div>\n</div>',css:"."+c+"-corner {\n\tposition: fixed;\n\tmargin: 5px;\n\tz-index: 1050;\n}\n\n."+c+"-corner ."+c+"-wrapper,\n."+c+"-corner ."+c+"-container {\n\tposition: relative;\n\tdisplay: block;\n\theight: inherit;\n\twidth: inherit;\n\tmargin: 3px;\n}\n\n."+c+"-wrapper {\n\tz-index: 1;\n\tposition: absolute;\n\tdisplay: inline-block;\n\theight: 0;\n\twidth: 0;\n}\n\n."+c+"-container {\n\tdisplay: none;\n\tz-index: 1;\n\tposition: absolute;\n}\n\n."+c+"-hidable {\n\tcursor: pointer;\n}\n\n[data-notify-text],[data-notify-html] {\n\tposition: relative;\n}\n\n."+c+"-arrow {\n\tposition: absolute;\n\tz-index: 2;\n\twidth: 0;\n\theight: 0;\n}"},h={"border-radius":["-webkit-","-moz-"]},f=function(e,t){return e.is(t)?e:e.find(t)},m={clickToHide:!0,autoHide:!0,autoHideDelay:5e3,arrowShow:!0,arrowSize:5,breakNewLines:!0,elementPosition:"bottom",globalPosition:"top right",style:"bootstrap",className:"error",showAnimation:"slideDown",showDuration:400,hideAnimation:"slideUp",hideDuration:200,gap:5},a=function(e){return C("<"+e+"></"+e+">")},_={};function g(e,t,n){var i,a;this.options=(i=m,a=C.isPlainObject(n="string"==typeof n?{className:n}:n)?n:{},(n=function(){}).prototype=i,C.extend(!0,new n,a)),this.loadHTML(),this.wrapper=C(p.html),this.options.clickToHide&&this.wrapper.addClass(c+"-hidable"),this.wrapper.data(c,this),this.arrow=this.wrapper.find("."+c+"-arrow"),this.container=this.wrapper.find("."+c+"-container"),this.container.append(this.userContainer),e&&e.length&&(this.elementType=e.attr("type"),this.originalElement=e,this.elem=o(e),this.elem.data(c,this),this.elem.before(this.wrapper)),this.container.hide(),this.run(t)}g.prototype.loadHTML=function(){var e=this.getStyle();this.userContainer=C(e.html),this.userFields=e.fields},g.prototype.show=function(e,t){var n,i,a=function(){if(e||i.elem||i.destroy(),t)return t()},r=0<(i=this).container.parent().parents(":hidden").length,o=this.container.add(this.arrow),s=[];if(r&&e)n="show";else if(r&&!e)n="hide";else if(!r&&e)n=this.options.showAnimation,s.push(this.options.showDuration);else{if(r||e)return a();n=this.options.hideAnimation,s.push(this.options.hideDuration)}return s.push(a),o[n].apply(o,s)},g.prototype.setGlobalPosition=function(){var e=this.getPosition(),t=e[0],n=e[1],i=Q[t],e=Q[n],t=t+"|"+n,n=_[t];return n&&document.body.contains(n[0])||(n=_[t]=a("div"),(t={})[i]=0,"middle"===e?t.top="45%":"center"===e?t.left="45%":t[e]=0,n.css(t).addClass(c+"-corner"),C("body").append(n)),n.prepend(this.wrapper)},g.prototype.setElementPosition=function(){var e,t,n,i,a,r,o,s,l,c,u,d=this.getPosition(),p=d[0],h=d[1],f=(d[2],this.elem.position()),m=this.elem.outerHeight(),_=this.elem.outerWidth(),g=this.elem.innerHeight(),y=this.elem.innerWidth(),v=this.wrapper.position(),w=this.container.height(),b=this.container.width(),j=Q[p],k=I[p],d=Q[k],x={};for(x[d]="b"===p?m:"r"===p?_:0,S(x,"top",f.top-v.top),S(x,"left",f.left-v.left),i=0,r=(u=["top","left"]).length;i<r;i++)l=u[i],(s=parseInt(this.elem.css("margin-"+l),10))&&S(x,l,s);if(v=Math.max(0,this.options.gap-(this.options.arrowShow?n:0)),S(x,d,v),this.options.arrowShow){for(n=this.options.arrowSize,t=C.extend({},x),e=this.userContainer.css("border-color")||this.userContainer.css("border-top-color")||this.userContainer.css("background-color")||"white",a=0,o=A.length;a<o;a++)c=Q[l=A[a]],l!==k&&(t["border-"+c]=n+"px solid "+(c===j?e:"transparent"));S(x,Q[k],n),0<=E.call(A,h)&&S(t,Q[h],2*n)}else this.arrow.hide();if(0<=E.call(N,p)?(S(x,"left",T(h,b,_)),t&&S(t,"left",T(h,n,y))):0<=E.call(D,p)&&(S(x,"top",T(h,w,m)),t&&S(t,"top",T(h,n,g))),this.container.is(":visible")&&(x.display="block"),this.container.removeAttr("style").css(x),t)return this.arrow.removeAttr("style").css(t)},g.prototype.getPosition=function(){var e,t,n,i,a=this.options.position||(this.elem?this.options.elementPosition:this.options.globalPosition);if(i=[],C.each(a.split(/\W+/),function(e,t){t=t.toLowerCase().charAt(0);if(Q[t])return i.push(t)}),0===(e=i).length&&(e[0]="b"),a=e[0],E.call(A,a)<0)throw"Must be one of ["+A+"]";return(1===e.length||(a=e[0],0<=E.call(N,a)&&(t=e[1],E.call(D,t)<0))||(t=e[0],0<=E.call(D,t)&&(n=e[1],E.call(N,n)<0)))&&(e[1]=(n=e[0],0<=E.call(D,n)?"m":"l")),2===e.length&&(e[2]=e[1]),e},g.prototype.getStyle=function(e){var t;if(e=e||this.options.style,!(t=d[e=e||"default"]))throw"Missing style: "+e;return t},g.prototype.updateClasses=function(){var t,e=["base"];return C.isArray(this.options.className)?e=e.concat(this.options.className):this.options.className&&e.push(this.options.className),t=this.getStyle(),e=C.map(e,function(e){return c+"-"+t.name+"-"+e}).join(" "),this.userContainer.attr("class",e)},g.prototype.run=function(e,t){var n,i,a,r;if(C.isPlainObject(t)?C.extend(this.options,t):"string"===C.type(t)&&(this.options.className=t),!this.container||e){if(this.container||e){for(a in i={},C.isPlainObject(e)?i=e:i[u]=e,i)n=i[a],(r=this.userFields[a])&&("text"===r&&(n=s(n),this.options.breakNewLines&&(n=n.replace(/\n/g,"<br/>"))),f(this.userContainer,"[data-notify-"+r+(a===u?"":"="+a)+"]").html(n));this.updateClasses(),this.elem?this.setElementPosition():this.setGlobalPosition(),this.show(!0),this.options.autoHide&&(clearTimeout(this.autohideTimer),this.autohideTimer=setTimeout(this.show.bind(this,!1),this.options.autoHideDelay))}}else this.show(!1)},g.prototype.destroy=function(){this.wrapper.data(c,null),this.wrapper.remove()},C[l]=function(e,t,n){return e&&e.nodeName||e.jquery?C(e)[l](t,n):(n=t,new g(null,t=e,n)),e},C.fn[l]=function(t,n){return C(this).each(function(){var e=o(C(this)).data(c);e&&e.destroy();new g(C(this),t,n)}),this},C.extend(C[l],{defaults:function(e){return C.extend(m,e)},addStyle:e,removeStyle:function(e){if(!e)throw"Missing Style name";d[e]&&delete d[e]},pluginOptions:m,getStyle:function(e){return d[e]},insertCSS:i}),e("bootstrap",{html:"<div>\n<span data-notify-text></span>\n</div>",classes:{base:{"font-weight":"bold",padding:"8px 15px 8px 14px","text-shadow":"0 1px 0 rgba(255, 255, 255, 0.5)","background-color":"#fcf8e3",border:"1px solid #fbeed5","border-radius":"4px","white-space":"nowrap","padding-left":"25px","background-repeat":"no-repeat","background-position":"3px 7px"},error:{color:"#B94A48","background-color":"#F2DEDE","border-color":"#EED3D7","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAtRJREFUeNqkVc1u00AQHq+dOD+0poIQfkIjalW0SEGqRMuRnHos3DjwAH0ArlyQeANOOSMeAA5VjyBxKBQhgSpVUKKQNGloFdw4cWw2jtfMOna6JOUArDTazXi/b3dm55socPqQhFka++aHBsI8GsopRJERNFlY88FCEk9Yiwf8RhgRyaHFQpPHCDmZG5oX2ui2yilkcTT1AcDsbYC1NMAyOi7zTX2Agx7A9luAl88BauiiQ/cJaZQfIpAlngDcvZZMrl8vFPK5+XktrWlx3/ehZ5r9+t6e+WVnp1pxnNIjgBe4/6dAysQc8dsmHwPcW9C0h3fW1hans1ltwJhy0GxK7XZbUlMp5Ww2eyan6+ft/f2FAqXGK4CvQk5HueFz7D6GOZtIrK+srupdx1GRBBqNBtzc2AiMr7nPplRdKhb1q6q6zjFhrklEFOUutoQ50xcX86ZlqaZpQrfbBdu2R6/G19zX6XSgh6RX5ubyHCM8nqSID6ICrGiZjGYYxojEsiw4PDwMSL5VKsC8Yf4VRYFzMzMaxwjlJSlCyAQ9l0CW44PBADzXhe7xMdi9HtTrdYjFYkDQL0cn4Xdq2/EAE+InCnvADTf2eah4Sx9vExQjkqXT6aAERICMewd/UAp/IeYANM2joxt+q5VI+ieq2i0Wg3l6DNzHwTERPgo1ko7XBXj3vdlsT2F+UuhIhYkp7u7CarkcrFOCtR3H5JiwbAIeImjT/YQKKBtGjRFCU5IUgFRe7fF4cCNVIPMYo3VKqxwjyNAXNepuopyqnld602qVsfRpEkkz+GFL1wPj6ySXBpJtWVa5xlhpcyhBNwpZHmtX8AGgfIExo0ZpzkWVTBGiXCSEaHh62/PoR0p/vHaczxXGnj4bSo+G78lELU80h1uogBwWLf5YlsPmgDEd4M236xjm+8nm4IuE/9u+/PH2JXZfbwz4zw1WbO+SQPpXfwG/BBgAhCNZiSb/pOQAAAAASUVORK5CYII=)"},success:{color:"#468847","background-color":"#DFF0D8","border-color":"#D6E9C6","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAutJREFUeNq0lctPE0Ecx38zu/RFS1EryqtgJFA08YCiMZIAQQ4eRG8eDGdPJiYeTIwHTfwPiAcvXIwXLwoXPaDxkWgQ6islKlJLSQWLUraPLTv7Gme32zoF9KSTfLO7v53vZ3d/M7/fIth+IO6INt2jjoA7bjHCJoAlzCRw59YwHYjBnfMPqAKWQYKjGkfCJqAF0xwZjipQtA3MxeSG87VhOOYegVrUCy7UZM9S6TLIdAamySTclZdYhFhRHloGYg7mgZv1Zzztvgud7V1tbQ2twYA34LJmF4p5dXF1KTufnE+SxeJtuCZNsLDCQU0+RyKTF27Unw101l8e6hns3u0PBalORVVVkcaEKBJDgV3+cGM4tKKmI+ohlIGnygKX00rSBfszz/n2uXv81wd6+rt1orsZCHRdr1Imk2F2Kob3hutSxW8thsd8AXNaln9D7CTfA6O+0UgkMuwVvEFFUbbAcrkcTA8+AtOk8E6KiQiDmMFSDqZItAzEVQviRkdDdaFgPp8HSZKAEAL5Qh7Sq2lIJBJwv2scUqkUnKoZgNhcDKhKg5aH+1IkcouCAdFGAQsuWZYhOjwFHQ96oagWgRoUov1T9kRBEODAwxM2QtEUl+Wp+Ln9VRo6BcMw4ErHRYjH4/B26AlQoQQTRdHWwcd9AH57+UAXddvDD37DmrBBV34WfqiXPl61g+vr6xA9zsGeM9gOdsNXkgpEtTwVvwOklXLKm6+/p5ezwk4B+j6droBs2CsGa/gNs6RIxazl4Tc25mpTgw/apPR1LYlNRFAzgsOxkyXYLIM1V8NMwyAkJSctD1eGVKiq5wWjSPdjmeTkiKvVW4f2YPHWl3GAVq6ymcyCTgovM3FzyRiDe2TaKcEKsLpJvNHjZgPNqEtyi6mZIm4SRFyLMUsONSSdkPeFtY1n0mczoY3BHTLhwPRy9/lzcziCw9ACI+yql0VLzcGAZbYSM5CCSZg1/9oc/nn7+i8N9p/8An4JMADxhH+xHfuiKwAAAABJRU5ErkJggg==)"},info:{color:"#3A87AD","background-color":"#D9EDF7","border-color":"#BCE8F1","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QYFAhkSsdes/QAAA8dJREFUOMvVlGtMW2UYx//POaWHXg6lLaW0ypAtw1UCgbniNOLcVOLmAjHZolOYlxmTGXVZdAnRfXQm+7SoU4mXaOaiZsEpC9FkiQs6Z6bdCnNYruM6KNBw6YWewzl9z+sHImEWv+vz7XmT95f/+3/+7wP814v+efDOV3/SoX3lHAA+6ODeUFfMfjOWMADgdk+eEKz0pF7aQdMAcOKLLjrcVMVX3xdWN29/GhYP7SvnP0cWfS8caSkfHZsPE9Fgnt02JNutQ0QYHB2dDz9/pKX8QjjuO9xUxd/66HdxTeCHZ3rojQObGQBcuNjfplkD3b19Y/6MrimSaKgSMmpGU5WevmE/swa6Oy73tQHA0Rdr2Mmv/6A1n9w9suQ7097Z9lM4FlTgTDrzZTu4StXVfpiI48rVcUDM5cmEksrFnHxfpTtU/3BFQzCQF/2bYVoNbH7zmItbSoMj40JSzmMyX5qDvriA7QdrIIpA+3cdsMpu0nXI8cV0MtKXCPZev+gCEM1S2NHPvWfP/hL+7FSr3+0p5RBEyhEN5JCKYr8XnASMT0xBNyzQGQeI8fjsGD39RMPk7se2bd5ZtTyoFYXftF6y37gx7NeUtJJOTFlAHDZLDuILU3j3+H5oOrD3yWbIztugaAzgnBKJuBLpGfQrS8wO4FZgV+c1IxaLgWVU0tMLEETCos4xMzEIv9cJXQcyagIwigDGwJgOAtHAwAhisQUjy0ORGERiELgG4iakkzo4MYAxcM5hAMi1WWG1yYCJIcMUaBkVRLdGeSU2995TLWzcUAzONJ7J6FBVBYIggMzmFbvdBV44Corg8vjhzC+EJEl8U1kJtgYrhCzgc/vvTwXKSib1paRFVRVORDAJAsw5FuTaJEhWM2SHB3mOAlhkNxwuLzeJsGwqWzf5TFNdKgtY5qHp6ZFf67Y/sAVadCaVY5YACDDb3Oi4NIjLnWMw2QthCBIsVhsUTU9tvXsjeq9+X1d75/KEs4LNOfcdf/+HthMnvwxOD0wmHaXr7ZItn2wuH2SnBzbZAbPJwpPx+VQuzcm7dgRCB57a1uBzUDRL4bfnI0RE0eaXd9W89mpjqHZnUI5Hh2l2dkZZUhOqpi2qSmpOmZ64Tuu9qlz/SEXo6MEHa3wOip46F1n7633eekV8ds8Wxjn37Wl63VVa+ej5oeEZ/82ZBETJjpJ1Rbij2D3Z/1trXUvLsblCK0XfOx0SX2kMsn9dX+d+7Kf6h8o4AIykuffjT8L20LU+w4AZd5VvEPY+XpWqLV327HR7DzXuDnD8r+ovkBehJ8i+y8YAAAAASUVORK5CYII=)"},warn:{color:"#C09853","background-color":"#FCF8E3","border-color":"#FBEED5","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABJlBMVEXr6eb/2oD/wi7/xjr/0mP/ykf/tQD/vBj/3o7/uQ//vyL/twebhgD/4pzX1K3z8e349vK6tHCilCWbiQymn0jGworr6dXQza3HxcKkn1vWvV/5uRfk4dXZ1bD18+/52YebiAmyr5S9mhCzrWq5t6ufjRH54aLs0oS+qD751XqPhAybhwXsujG3sm+Zk0PTwG6Shg+PhhObhwOPgQL4zV2nlyrf27uLfgCPhRHu7OmLgAafkyiWkD3l49ibiAfTs0C+lgCniwD4sgDJxqOilzDWowWFfAH08uebig6qpFHBvH/aw26FfQTQzsvy8OyEfz20r3jAvaKbhgG9q0nc2LbZxXanoUu/u5WSggCtp1anpJKdmFz/zlX/1nGJiYmuq5Dx7+sAAADoPUZSAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfdBgUBGhh4aah5AAAAlklEQVQY02NgoBIIE8EUcwn1FkIXM1Tj5dDUQhPU502Mi7XXQxGz5uVIjGOJUUUW81HnYEyMi2HVcUOICQZzMMYmxrEyMylJwgUt5BljWRLjmJm4pI1hYp5SQLGYxDgmLnZOVxuooClIDKgXKMbN5ggV1ACLJcaBxNgcoiGCBiZwdWxOETBDrTyEFey0jYJ4eHjMGWgEAIpRFRCUt08qAAAAAElFTkSuQmCC)"}}}),C(function(){i(p.css).attr("id","core-notify"),C(document).on("click","."+c+"-hidable",function(e){C(this).trigger("notify-hide")}),C(document).on("notify-hide","."+c+"-wrapper",function(e){var t=C(this).data(c);t&&t.show(!1)})})}),function(l,n,i,s){function c(e,t){this.settings=null,this.options=l.extend({},c.Defaults,t),this.$element=l(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},l.each(["onResize","onThrottledResize"],l.proxy(function(e,t){this._handlers[t]=l.proxy(this[t],this)},this)),l.each(c.Plugins,l.proxy(function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)},this)),l.each(c.Workers,l.proxy(function(e,t){this._pipe.push({filter:t.filter,run:l.proxy(t.run,this)})},this)),this.setup(),this.initialize()}c.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:n,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},c.Width={Default:"default",Inner:"inner",Outer:"outer"},c.Type={Event:"event",State:"state"},c.Plugins={},c.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",n=!this.settings.autoWidth,i=this.settings.rtl,t={width:"auto","margin-left":i?t:"","margin-right":i?"":t};n||this.$stage.children().css(t),e.css=t}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,n=null,i=this._items.length,a=!this.settings.autoWidth,r=[];for(e.items={merge:!1,width:t};i--;)n=this._mergers[i],n=this.settings.mergeFit&&Math.min(n,this.settings.items)||n,e.items.merge=1<n||e.items.merge,r[i]=a?t*n:this._items[i].width();this._widths=r}},{filter:["items","settings"],run:function(){var e=[],t=this._items,n=this.settings,i=Math.max(2*n.items,4),a=2*Math.ceil(t.length/2),r=n.loop&&t.length?n.rewind?i:Math.max(i,a):0,o="",s="";for(r/=2;0<r;)e.push(this.normalize(e.length/2,!0)),o+=t[e[e.length-1]][0].outerHTML,e.push(this.normalize(t.length-1-(e.length-1)/2,!0)),s=t[e[e.length-1]][0].outerHTML+s,--r;this._clones=e,l(o).addClass("cloned").appendTo(this.$stage),l(s).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e,t,n=this.settings.rtl?1:-1,i=this._clones.length+this._items.length,a=-1,r=[];++a<i;)e=r[a-1]||0,t=this._widths[this.relative(a)]+this.settings.margin,r.push(e+t*n);this._coordinates=r}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,e={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(e)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,n=!this.settings.autoWidth,i=this.$stage.children();if(n&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],i.eq(t).css(e.css);else n&&(e.css.width=e.items.width,i.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){for(var e,t,n=this.settings.rtl?1:-1,i=2*this.settings.stagePadding,a=this.coordinates(this.current())+i,r=a+this.width()*n,o=[],s=0,l=this._coordinates.length;s<l;s++)e=this._coordinates[s-1]||0,t=Math.abs(this._coordinates[s])+i*n,(this.op(e,"<=",a)&&this.op(e,">",r)||this.op(t,"<",a)&&this.op(t,">",r))&&o.push(s);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+o.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],c.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=l("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(l("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},c.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map(function(e){return l(e)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},c.prototype.initialize=function(){var e,t;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:s,t=this.$element.children(t).width(),e.length&&t<=0&&this.preloadAutoWidthImages(e)),this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},c.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},c.prototype.setup=function(){var t=this.viewport(),e=this.options.responsive,n=-1,i=null;e?(l.each(e,function(e){e<=t&&n<e&&(n=Number(e))}),"function"==typeof(i=l.extend({},this.options,e[n])).stagePadding&&(i.stagePadding=i.stagePadding()),delete i.responsive,i.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):i=l.extend({},this.options),this.trigger("change",{property:{name:"settings",value:i}}),this._breakpoint=n,this.settings=i,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},c.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},c.prototype.prepare=function(e){var t=this.trigger("prepare",{content:e});return t.data||(t.data=l("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:t.data}),t.data},c.prototype.update=function(){for(var e=0,t=this._pipe.length,n=l.proxy(function(e){return this[e]},this._invalidated),i={};e<t;)(this._invalidated.all||0<l.grep(this._pipe[e].filter,n).length)&&this._pipe[e].run(i),e++;this._invalidated={},this.is("valid")||this.enter("valid")},c.prototype.width=function(e){switch(e=e||c.Width.Default){case c.Width.Inner:case c.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},c.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},c.prototype.onThrottledResize=function(){n.clearTimeout(this.resizeTimer),this.resizeTimer=n.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},c.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},c.prototype.registerEventHandlers=function(){l.support.transition&&this.$stage.on(l.support.transition.end+".owl.core",l.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(n,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",l.proxy(this.onDragEnd,this)))},c.prototype.onDragStart=function(e){var t=null;3!==e.which&&(t=l.support.transform?{x:(t=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===t.length?12:4],y:t[16===t.length?13:5]}:(t=this.$stage.position(),{x:this.settings.rtl?t.left+this.$stage.width()-this.width()+this.settings.margin:t.left,y:t.top}),this.is("animating")&&(l.support.transform?this.animate(t.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=l(e.target),this._drag.stage.start=t,this._drag.stage.current=t,this._drag.pointer=this.pointer(e),l(i).on("mouseup.owl.core touchend.owl.core",l.proxy(this.onDragEnd,this)),l(i).one("mousemove.owl.core touchmove.owl.core",l.proxy(function(e){var t=this.difference(this._drag.pointer,this.pointer(e));l(i).on("mousemove.owl.core touchmove.owl.core",l.proxy(this.onDragMove,this)),Math.abs(t.x)<Math.abs(t.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},c.prototype.onDragMove=function(e){var t=null,n=null,i=this.difference(this._drag.pointer,this.pointer(e)),a=this.difference(this._drag.stage.start,i);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),n=this.coordinates(this.maximum()+1)-t,a.x=((a.x-t)%n+n)%n+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),n=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),i=this.settings.pullDrag?-1*i.x/5:0,a.x=Math.max(Math.min(a.x,t+i),n+i)),this._drag.stage.current=a,this.animate(a.x))},c.prototype.onDragEnd=function(e){var t=this.difference(this._drag.pointer,this.pointer(e)),n=this._drag.stage.current,e=0<t.x^this.settings.rtl?"left":"right";l(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==t.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(n.x,0!==t.x?e:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=e,(3<Math.abs(t.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},c.prototype.closest=function(n,i){var a=-1,r=this.width(),o=this.coordinates();return this.settings.freeDrag||l.each(o,l.proxy(function(e,t){return"left"===i&&t-30<n&&n<t+30?a=e:"right"===i&&t-r-30<n&&n<t-r+30?a=e+1:this.op(n,"<",t)&&this.op(n,">",o[e+1]!==s?o[e+1]:t-r)&&(a="left"===i?e+1:e),-1===a},this)),this.settings.loop||(this.op(n,">",o[this.minimum()])?a=n=this.minimum():this.op(n,"<",o[this.maximum()])&&(a=n=this.maximum())),a},c.prototype.animate=function(e){var t=0<this.speed();this.is("animating")&&this.onTransitionEnd(),t&&(this.enter("animating"),this.trigger("translate")),l.support.transform3d&&l.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):t?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,l.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},c.prototype.is=function(e){return this._states.current[e]&&0<this._states.current[e]},c.prototype.current=function(e){return e===s?this._current:0===this._items.length?s:(e=this.normalize(e),this._current!==e&&((t=this.trigger("change",{property:{name:"position",value:e}})).data!==s&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})),this._current);var t},c.prototype.invalidate=function(e){return"string"===l.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),l.map(this._invalidated,function(e,t){return t})},c.prototype.reset=function(e){(e=this.normalize(e))!==s&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},c.prototype.normalize=function(e,t){var n=this._items.length,t=t?0:this._clones.length;return!this.isNumeric(e)||n<1?e=s:(e<0||n+t<=e)&&(e=((e-t/2)%n+n)%n+t/2),e},c.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},c.prototype.maximum=function(e){var t,n,i,a=this.settings,r=this._coordinates.length;if(a.loop)r=this._clones.length/2+this._items.length-1;else if(a.autoWidth||a.merge){if(t=this._items.length)for(n=this._items[--t].width(),i=this.$element.width();t--&&!(i<(n+=this._items[t].width()+this.settings.margin)););r=t+1}else r=a.center?this._items.length-1:this._items.length-a.items;return e&&(r-=this._clones.length/2),Math.max(r,0)},c.prototype.minimum=function(e){return e?0:this._clones.length/2},c.prototype.items=function(e){return e===s?this._items.slice():(e=this.normalize(e,!0),this._items[e])},c.prototype.mergers=function(e){return e===s?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},c.prototype.clones=function(n){function i(e){return e%2==0?a+e/2:t-(e+1)/2}var t=this._clones.length/2,a=t+this._items.length;return n===s?l.map(this._clones,function(e,t){return i(t)}):l.map(this._clones,function(e,t){return e===n?i(t):null})},c.prototype.speed=function(e){return e!==s&&(this._speed=e),this._speed},c.prototype.coordinates=function(e){var t,n=1,i=e-1;return e===s?l.map(this._coordinates,l.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(n=-1,i=e+1),t=this._coordinates[e],t+=(this.width()-t+(this._coordinates[i]||0))/2*n):t=this._coordinates[i]||0,t=Math.ceil(t))},c.prototype.duration=function(e,t,n){return 0===n?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(n||this.settings.smartSpeed)},c.prototype.to=function(e,t){var n=this.current(),i=e-this.relative(n),a=(0<i)-(i<0),r=this._items.length,o=this.minimum(),s=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(i)>r/2&&(i+=-1*a*r),(r=(((e=n+i)-o)%r+r)%r+o)!==e&&r-i<=s&&0<r-i&&this.reset(n=(e=r)-i)):e=this.settings.rewind?(e%(s+=1)+s)%s:Math.max(o,Math.min(s,e)),this.speed(this.duration(n,e,t)),this.current(e),this.isVisible()&&this.update()},c.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},c.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},c.prototype.onTransitionEnd=function(e){if(e!==s&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},c.prototype.viewport=function(){var e;return this.options.responsiveBaseElement!==n?e=l(this.options.responsiveBaseElement).width():n.innerWidth?e=n.innerWidth:i.documentElement&&i.documentElement.clientWidth?e=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),e},c.prototype.replace=function(e){this.$stage.empty(),this._items=[],e=e&&(e instanceof jQuery?e:l(e)),(e=this.settings.nestedItemSelector?e.find("."+this.settings.nestedItemSelector):e).filter(function(){return 1===this.nodeType}).each(l.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(+t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},c.prototype.add=function(e,t){var n=this.relative(this._current);t=t===s?this._items.length:this.normalize(t,!0),e=e instanceof jQuery?e:l(e),this.trigger("add",{content:e,position:t}),e=this.prepare(e),0===this._items.length||t===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[t-1].after(e),this._items.push(e),this._mergers.push(+e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[t].before(e),this._items.splice(t,0,e),this._mergers.splice(t,0,+e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:e,position:t})},c.prototype.remove=function(e){(e=this.normalize(e,!0))!==s&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},c.prototype.preloadAutoWidthImages=function(e){e.each(l.proxy(function(e,t){this.enter("pre-loading"),t=l(t),l(new Image).one("load",l.proxy(function(e){t.attr("src",e.target.src),t.css("opacity",1),this.leave("pre-loading"),this.is("pre-loading")||this.is("initializing")||this.refresh()},this)).attr("src",t.attr("src")||t.attr("data-src")||t.attr("data-src-retina"))},this))},c.prototype.destroy=function(){for(var e in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),l(i).off(".owl.core"),!1!==this.settings.responsive&&(n.clearTimeout(this.resizeTimer),this.off(n,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[e].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},c.prototype.op=function(e,t,n){var i=this.settings.rtl;switch(t){case"<":return i?n<e:e<n;case">":return i?e<n:n<e;case">=":return i?e<=n:n<=e;case"<=":return i?n<=e:e<=n}},c.prototype.on=function(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on"+t,n)},c.prototype.off=function(e,t,n,i){e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent&&e.detachEvent("on"+t,n)},c.prototype.trigger=function(e,t,n,i,a){var r={item:{count:this._items.length,index:this.current()}},o=l.camelCase(l.grep(["on",e,n],function(e){return e}).join("-").toLowerCase()),s=l.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},r,t));return this._supress[e]||(l.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(s)}),this.register({type:c.Type.Event,name:e}),this.$element.trigger(s),this.settings&&"function"==typeof this.settings[o]&&this.settings[o].call(this,s)),s},c.prototype.enter=function(e){l.each([e].concat(this._states.tags[e]||[]),l.proxy(function(e,t){this._states.current[t]===s&&(this._states.current[t]=0),this._states.current[t]++},this))},c.prototype.leave=function(e){l.each([e].concat(this._states.tags[e]||[]),l.proxy(function(e,t){this._states.current[t]--},this))},c.prototype.register=function(n){var t;n.type===c.Type.Event?(l.event.special[n.name]||(l.event.special[n.name]={}),l.event.special[n.name].owl||(t=l.event.special[n.name]._default,l.event.special[n.name]._default=function(e){return!t||!t.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&-1<e.namespace.indexOf("owl"):t.apply(this,arguments)},l.event.special[n.name].owl=!0)):n.type===c.Type.State&&(this._states.tags[n.name]?this._states.tags[n.name]=this._states.tags[n.name].concat(n.tags):this._states.tags[n.name]=n.tags,this._states.tags[n.name]=l.grep(this._states.tags[n.name],l.proxy(function(e,t){return l.inArray(e,this._states.tags[n.name])===t},this)))},c.prototype.suppress=function(e){l.each(e,l.proxy(function(e,t){this._supress[t]=!0},this))},c.prototype.release=function(e){l.each(e,l.proxy(function(e,t){delete this._supress[t]},this))},c.prototype.pointer=function(e){var t={x:null,y:null};return(e=(e=e.originalEvent||e||n.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?(t.x=e.pageX,t.y=e.pageY):(t.x=e.clientX,t.y=e.clientY),t},c.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},c.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},l.fn.owlCarousel=function(t){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=l(this),n=e.data("owl.carousel");n||(n=new c(this,"object"==typeof t&&t),e.data("owl.carousel",n),l.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(e,t){n.register({type:c.Type.Event,name:t}),n.$element.on(t+".owl.carousel.core",l.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([t]),n[t].apply(this,[].slice.call(arguments,1)),this.release([t]))},n))})),"string"==typeof t&&"_"!==t.charAt(0)&&n[t].apply(n,i)})},l.fn.owlCarousel.Constructor=c}(window.Zepto||window.jQuery,window,document),function(t,n){function i(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)}i.Defaults={autoRefresh:!0,autoRefreshInterval:500},i.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=n.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},i.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},i.prototype.destroy=function(){var e,t;for(e in n.clearInterval(this._interval),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=i}(window.Zepto||window.jQuery,window,document),function(s,a){function t(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":s.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var t=this._core.settings,n=t.center&&Math.ceil(t.items/2)||t.items,i=t.center&&-1*n||0,a=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+i,r=this._core.clones().length,o=s.proxy(function(e,t){this.load(t)},this);for(0<t.lazyLoadEager&&(n+=t.lazyLoadEager,t.loop&&(a-=t.lazyLoadEager,n++));i++<n;)this.load(r/2+this._core.relative(a)),r&&s.each(this._core.clones(this._core.relative(a)),o),a++}},this)},this._core.options=s.extend({},t.Defaults,this._core.options),this._core.$element.on(this._handlers)}t.Defaults={lazyLoad:!1,lazyLoadEager:0},t.prototype.load=function(e){var t=this._core.$stage.children().eq(e),e=t&&t.find(".owl-lazy");!e||-1<s.inArray(t.get(0),this._loaded)||(e.each(s.proxy(function(e,t){var n=s(t),i=1<a.devicePixelRatio&&n.attr("data-src-retina")||n.attr("data-src")||n.attr("data-srcset");this._core.trigger("load",{element:n,url:i},"lazy"),n.is("img")?n.one("load.owl.lazy",s.proxy(function(){n.css("opacity",1),this._core.trigger("loaded",{element:n,url:i},"lazy")},this)).attr("src",i):n.is("source")?n.one("load.owl.lazy",s.proxy(function(){this._core.trigger("loaded",{element:n,url:i},"lazy")},this)).attr("srcset",i):((t=new Image).onload=s.proxy(function(){n.css({"background-image":'url("'+i+'")',opacity:"1"}),this._core.trigger("loaded",{element:n,url:i},"lazy")},this),void 0!==i&&(t.src=i))},this)),this._loaded.push(t.get(0)))},t.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},s.fn.owlCarousel.Constructor.Plugins.Lazy=t}(window.Zepto||window.jQuery,window,document),function(a,n){function i(e){this._core=e,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&"position"===e.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var t=this;a(n).on("load",function(){t._core.settings.autoHeight&&t.update()}),a(n).resize(function(){t._core.settings.autoHeight&&(null!=t._intervalId&&clearTimeout(t._intervalId),t._intervalId=setTimeout(function(){t.update()},250))})}i.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},i.prototype.update=function(){var e=this._core._current,t=e+this._core.settings.items,n=this._core.settings.lazyLoad,e=this._core.$stage.children().toArray().slice(e,t),i=[],t=0;a.each(e,function(e,t){i.push(a(t).height())}),(t=Math.max.apply(null,i))<=1&&n&&this._previousHeight&&(t=this._previousHeight),this._previousHeight=t,this._core.$stage.parent().height(t).addClass(this._core.settings.autoHeightClass)},i.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=i}(window.Zepto||window.jQuery,window,document),function(u,t){function n(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":u.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":u.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":u.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":u.proxy(function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":u.proxy(function(e){var t;!e.namespace||(t=u(e.content).find(".owl-video")).length&&(t.css("display","none"),this.fetch(t,u(e.content)))},this)},this._core.options=u.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",u.proxy(function(e){this.play(e)},this))}n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(e,t){var n=e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube",i=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),a=e.attr("data-width")||this._core.settings.videoWidth,r=e.attr("data-height")||this._core.settings.videoHeight,o=e.attr("href");if(!o)throw new Error("Missing video URL.");if(-1<(i=o.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))n="youtube";else if(-1<i[3].indexOf("vimeo"))n="vimeo";else{if(!(-1<i[3].indexOf("vzaar")))throw new Error("Video URL not supported.");n="vzaar"}i=i[6],this._videos[o]={type:n,id:i,width:a,height:r},t.attr("data-video",o),this.thumbnail(e,this._videos[o])},n.prototype.thumbnail=function(t,e){function n(e){i=c.lazyLoad?u("<div/>",{class:"owl-video-tn "+l,srcType:e}):u("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+e+")"}),t.after(i),t.after('<div class="owl-video-play-icon"></div>')}var i,a,r=e.width&&e.height?"width:"+e.width+"px;height:"+e.height+"px;":"",o=t.find("img"),s="src",l="",c=this._core.settings;if(t.wrap(u("<div/>",{class:"owl-video-wrapper",style:r})),this._core.settings.lazyLoad&&(s="data-src",l="owl-lazy"),o.length)return n(o.attr(s)),o.remove(),!1;"youtube"===e.type?(a="//img.youtube.com/vi/"+e.id+"/hqdefault.jpg",n(a)):"vimeo"===e.type?u.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+e.id+".json",jsonp:"callback",success:function(e){a=e[0].thumbnail_large,n(a)}}):"vzaar"===e.type&&u.ajax({type:"GET",url:"//vzaar.com/api/videos/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){a=e.framegrab_url,n(a)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(e){var t=u(e.target).closest("."+this._core.settings.itemClass),n=this._videos[t.attr("data-video")],i=n.width||"100%",a=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),t=this._core.items(this._core.relative(t.index())),this._core.reset(t.index()),(e=u('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",a),e.attr("width",i),"youtube"===n.type?e.attr("src","//www.youtube.com/embed/"+n.id+"?autoplay=1&rel=0&v="+n.id):"vimeo"===n.type?e.attr("src","//player.vimeo.com/video/"+n.id+"?autoplay=1"):"vzaar"===n.type&&e.attr("src","//view.vzaar.com/"+n.id+"/player?autoplay=true"),u(e).wrap('<div class="owl-video-frame" />').insertAfter(t.find(".owl-video")),this._playing=t.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var e=t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement;return e&&u(e).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},u.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,(window,document)),function(o){function t(e){this.core=e,this.core.options=o.extend({},t.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":o.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":o.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":o.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)}t.Defaults={animateOut:!1,animateIn:!1},t.prototype.swap=function(){var e,t,n,i,a,r;1===this.core.settings.items&&o.support.animation&&o.support.transition&&(this.core.speed(0),t=o.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),i=this.core.$stage.children().eq(this.next),a=this.core.settings.animateIn,r=this.core.settings.animateOut,this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(o.support.animation.end,t).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),a&&i.one(o.support.animation.end,t).addClass("animated owl-animated-in").addClass(a)))},t.prototype.clear=function(e){o(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},t.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},o.fn.owlCarousel.Constructor.Plugins.Animate=t}(window.Zepto||window.jQuery,(window,document)),function(i,a,t){function n(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":i.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":i.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":i.proxy(function(e,t,n){e.namespace&&this.play(t,n)},this),"stop.owl.autoplay":i.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":i.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=i.extend({},n.Defaults,this._core.options)}n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype._next=function(e){this._call=a.setTimeout(i.proxy(this._next,this,e),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||t.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},n.prototype.read=function(){return(new Date).getTime()-this._time},n.prototype.play=function(e,t){var n;this._core.is("rotating")||this._core.enter("rotating"),e=e||this._core.settings.autoplayTimeout,n=Math.min(this._time%(this._timeout||e),e),this._paused?(this._time=this.read(),this._paused=!1):a.clearTimeout(this._call),this._time+=this.read()%e-n,this._timeout=e,this._call=a.setTimeout(i.proxy(this._next,this,t),e-n)},n.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,a.clearTimeout(this._call),this._core.leave("rotating"))},n.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,a.clearTimeout(this._call))},n.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},i.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(a){"use strict";function t(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":a.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers)}t.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},t.prototype.initialize=function(){var e,n=this._core.settings;for(e in this._controls.$relative=(n.navContainer?a(n.navContainer):a("<div>").addClass(n.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+n.navElement+">").addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(e){this.prev(n.navSpeed)},this)),this._controls.$next=a("<"+n.navElement+">").addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(e){this.next(n.navSpeed)},this)),n.dotsData||(this._templates=[a('<button role="button">').addClass(n.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(n.dotsContainer?a(n.dotsContainer):a("<div>").addClass(n.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",a.proxy(function(e){var t=(a(e.target).parent().is(this._controls.$absolute)?a(e.target):a(e.target).parent()).index();e.preventDefault(),this.to(t,n.dotsSpeed)},this)),this._overrides)this._core[e]=a.proxy(this[e],this)},t.prototype.destroy=function(){var e,t,n,i,a=this._core.settings;for(e in this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)"$relative"===t&&a.navContainer?this._controls[t].html(""):this._controls[t].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.prototype.update=function(){var e,t,n=this._core.clones().length/2,i=n+this._core.items().length,a=this._core.maximum(!0),r=this._core.settings,o=r.center||r.autoWidth||r.dotsData?1:r.dotsEach||r.items;if("page"!==r.slideBy&&(r.slideBy=Math.min(r.slideBy,r.items)),r.dots||"page"==r.slideBy)for(this._pages=[],e=n,t=0;e<i;e++){if(o<=t||0===t){if(this._pages.push({start:Math.min(a,e-n),end:e-n+o-1}),Math.min(a,e-n)===a)break;t=0,0}t+=this._core.mergers(this._core.relative(e))}},t.prototype.draw=function(){var e=this._core.settings,t=this._core.items().length<=e.items,n=this._core.relative(this._core.current()),i=e.loop||e.rewind;this._controls.$relative.toggleClass("disabled",!e.nav||t),e.nav&&(this._controls.$previous.toggleClass("disabled",!i&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!i&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!e.dots||t),e.dots&&(t=this._pages.length-this._controls.$absolute.children().length,e.dotsData&&0!=t?this._controls.$absolute.html(this._templates.join("")):0<t?this._controls.$absolute.append(new Array(1+t).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},t.prototype.onTrigger=function(e){var t=this._core.settings;e.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:t&&(t.center||t.autoWidth||t.dotsData?1:t.dotsEach||t.items)}},t.prototype.current=function(){var n=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(e,t){return e.start<=n&&e.end>=n},this)).pop()},t.prototype.getPosition=function(e){var t,n,i=this._core.settings;return"page"==i.slideBy?(t=a.inArray(this.current(),this._pages),n=this._pages.length,e?++t:--t,t=this._pages[(t%n+n)%n].start):(t=this._core.relative(this._core.current()),n=this._core.items().length,e?t+=i.slideBy:t-=i.slideBy),t},t.prototype.next=function(e){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},t.prototype.prev=function(e){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},t.prototype.to=function(e,t,n){!n&&this._pages.length?(n=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,t)):a.proxy(this._overrides.to,this._core)(e,t)},a.fn.owlCarousel.Constructor.Plugins.Navigation=t}(window.Zepto||window.jQuery,(window,document)),function(i,a){"use strict";function t(e){this._core=e,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":i.proxy(function(e){e.namespace&&"URLHash"===this._core.settings.startPosition&&i(a).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":i.proxy(function(e){var t;!e.namespace||(t=i(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash"))&&(this._hashes[t]=e.content)},this),"changed.owl.carousel":i.proxy(function(e){var n;e.namespace&&"position"===e.property.name&&(n=this._core.items(this._core.relative(this._core.current())),(e=i.map(this._hashes,function(e,t){return e===n?t:null}).join())&&a.location.hash.slice(1)!==e&&(a.location.hash=e))},this)},this._core.options=i.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers),i(a).on("hashchange.owl.navigation",i.proxy(function(e){var t=a.location.hash.substring(1),n=this._core.$stage.children(),t=this._hashes[t]&&n.index(this._hashes[t]);void 0!==t&&t!==this._core.current()&&this._core.to(this._core.relative(t),!1,!0)},this))}t.Defaults={URLhashListener:!1},t.prototype.destroy=function(){var e,t;for(e in i(a).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},i.fn.owlCarousel.Constructor.Plugins.Hash=t}(window.Zepto||window.jQuery,window,document),function(a){var r=a("<support>").get(0).style,o="Webkit Moz O ms".split(" "),e={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},t=function(){return!!s("transform")},n=function(){return!!s("perspective")},i=function(){return!!s("animation")};function s(e,n){var i=!1,t=e.charAt(0).toUpperCase()+e.slice(1);return a.each((e+" "+o.join(t+" ")+t).split(" "),function(e,t){if(void 0!==r[t])return i=!n||t,!1}),i}function l(e){return s(e,!0)}!function(){return!!s("transition")}()||(a.support.transition=new String(l("transition")),a.support.transition.end=e.transition.end[a.support.transition]),i()&&(a.support.animation=new String(l("animation")),a.support.animation.end=e.animation.end[a.support.animation]),t()&&(a.support.transform=new String(l("transform")),a.support.transform3d=n())}(window.Zepto||window.jQuery,(window,document)),function(){function e(e,t){for(var n in t)K.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e}function r(e,t){return function(){return e.apply(t,arguments)}}var l,c,o,t,a,n,_,i,u,g,s,d,p,h,f,y,v,m,w,b,j,k,x,C,S,T,E,Q,D,N,A,I,R,M,P,O,L,q,z,F,U,H,B,W,Y,V,$,G=[].slice,K={}.hasOwnProperty,X=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};function J(){}for(w={className:"",catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:!0,restartOnPushState:!0,restartOnRequestAfter:500,target:"body",elements:{checkInterval:100,selectors:["body"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:["GET"],trackWebSockets:!0,ignoreURLs:[]}},E=function(){var e;return null!=(e="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?e:+new Date},D=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,m=window.cancelAnimationFrame||window.mozCancelAnimationFrame,p=function(e,t,n){if("function"==typeof e.addEventListener)return e.addEventListener(t,n,!1);var i;"function"!=typeof e["on"+t]||"object"!=typeof e["on"+t].eventListeners?(i=new a,"function"==typeof e["on"+t]&&i.on(t,e["on"+t]),e["on"+t]=function(e){return i.trigger(t,e)},e["on"+t].eventListeners=i):i=e["on"+t].eventListeners,i.on(t,n)},null==D&&(D=function(e){return setTimeout(e,50)},m=function(e){return clearTimeout(e)}),A=function(t){var n=E(),i=function(){var e=E()-n;return 33<=e?(n=E(),t(e,function(){return D(i)})):setTimeout(i,33-e)};return i()},N=function(){var e=arguments[0],t=arguments[1],n=3<=arguments.length?G.call(arguments,2):[];return"function"==typeof e[t]?e[t].apply(e,n):e[t]},b=function(){for(var e,t,n,i=arguments[0],a=2<=arguments.length?G.call(arguments,1):[],r=0,o=a.length;r<o;r++)if(t=a[r])for(e in t)K.call(t,e)&&(n=t[e],null!=i[e]&&"object"==typeof i[e]&&null!=n&&"object"==typeof n?b(i[e],n):i[e]=n);return i},f=function(e){for(var t,n,i=t=0,a=0,r=e.length;a<r;a++)n=e[a],i+=Math.abs(n),t++;return i/t},k=function(e,t){var n;if(null==e&&(e="options"),null==t&&(t=!0),n=document.querySelector("[data-pace-"+e+"]")){if(e=n.getAttribute("data-pace-"+e),!t)return e;try{return JSON.parse(e)}catch(e){return"undefined"!=typeof console&&null!==console?console.error("Error parsing inline pace options",e):void 0}}},J.prototype.on=function(e,t,n,i){var a;return null==i&&(i=!1),null==this.bindings&&(this.bindings={}),null==(a=this.bindings)[e]&&(a[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:i})},J.prototype.once=function(e,t,n){return this.on(e,t,n,!0)},J.prototype.off=function(e,t){var n,i,a;if(null!=(null!=(i=this.bindings)?i[e]:void 0)){if(null==t)return delete this.bindings[e];for(n=0,a=[];n<this.bindings[e].length;)this.bindings[e][n].handler===t?a.push(this.bindings[e].splice(n,1)):a.push(n++);return a}},J.prototype.trigger=function(){var e,t,n,i,a,r,o=arguments[0],s=2<=arguments.length?G.call(arguments,1):[];if(null!=(i=this.bindings)&&i[o]){for(n=0,r=[];n<this.bindings[o].length;)t=(a=this.bindings[o][n]).handler,e=a.ctx,a=a.once,t.apply(null!=e?e:this,s),a?r.push(this.bindings[o].splice(n,1)):r.push(n++);return r}},t=J,_=window.Pace||{},window.Pace=_,b(_,t.prototype),Q=_.options=b({},w,window.paceOptions,k()),U=0,B=(Y=["ajax","document","eventLag","elements"]).length;U<B;U++)!0===Q[P=Y[U]]&&(Q[P]=w[P]);function Z(){return Z.__super__.constructor.apply(this,arguments)}function ee(){this.progress=0}function te(){this.bindings={}}function ne(){var t,r=this;ne.__super__.constructor.apply(this,arguments),t=function(i){var a=i.open;return i.open=function(e,t,n){return M(e)&&r.trigger("request",{type:e,url:t,request:i}),a.apply(i,arguments)}},window.XMLHttpRequest=function(e){e=new F(e);return t(e),e};try{j(window.XMLHttpRequest,F)}catch(e){}if(null!=z){window.XDomainRequest=function(){var e=new z;return t(e),e};try{j(window.XDomainRequest,z)}catch(e){}}if(null!=q&&Q.ajax.trackWebSockets){window.WebSocket=function(e,t){var n=null!=t?new q(e,t):new q(e);return M("socket")&&r.trigger("request",{type:"socket",url:e,protocols:t,request:n}),n};try{j(window.WebSocket,q)}catch(e){}}}function ie(){this.complete=r(this.complete,this);var e=this;this.elements=[],x().on("request",function(){return e.watch.apply(e,arguments)})}function ae(e){var t,n,i,a;for(null==e&&(e={}),this.complete=r(this.complete,this),this.elements=[],null==e.selectors&&(e.selectors=[]),n=0,i=(a=e.selectors).length;n<i;n++)t=a[n],this.elements.push(new o(t,this.complete))}function re(e,t){this.selector=e,this.completeCallback=t,this.progress=0,this.check()}function oe(){var e,t,n=this;this.progress=null!=(t=this.states[document.readyState])?t:100,e=document.onreadystatechange,document.onreadystatechange=function(){return null!=n.states[document.readyState]&&(n.progress=n.states[document.readyState]),"function"==typeof e?e.apply(null,arguments):void 0}}function se(e){this.source=e,this.last=this.sinceLastUpdate=0,this.rate=Q.initialRate,this.catchup=0,this.progress=this.lastProgress=0,null!=this.source&&(this.progress=N(this.source,"progress"))}$=Error,e(Z,$),n=Z,ee.prototype.getElement=function(){var e;if(null==this.el){if(!(e=document.querySelector(Q.target)))throw new n;this.el=document.createElement("div"),this.el.className="pace pace-active",document.body.className=document.body.className.replace(/(pace-done)|/,"pace-running ");var t=""!==Q.className?" "+Q.className:"";this.el.innerHTML='<div class="pace-progress'+t+'">\n  <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>',null!=e.firstChild?e.insertBefore(this.el,e.firstChild):e.appendChild(this.el)}return this.el},ee.prototype.finish=function(){var e=this.getElement();return e.className=e.className.replace("pace-active","pace-inactive"),document.body.className=document.body.className.replace("pace-running ","pace-done ")},ee.prototype.update=function(e){return this.progress=e,_.trigger("progress",e),this.render()},ee.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(e){n=e}return this.el=void 0},ee.prototype.render=function(){var e,t,n,i,a,r;if(null==document.querySelector(Q.target))return!1;for(e=this.getElement(),n="translate3d("+this.progress+"%, 0, 0)",i=0,a=(r=["webkitTransform","msTransform","transform"]).length;i<a;i++)e.children[0].style[r[i]]=n;return(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0)&&(e.children[0].setAttribute("data-progress-text",(0|this.progress)+"%"),100<=this.progress?t="99":(t=this.progress<10?"0":"",t+=0|this.progress),e.children[0].setAttribute("data-progress",""+t)),_.trigger("change",this.progress),this.lastRenderedProgress=this.progress},ee.prototype.done=function(){return 100<=this.progress},c=ee,te.prototype.trigger=function(e,t){var n,i,a,r,o;if(null!=this.bindings[e]){for(o=[],i=0,a=(r=this.bindings[e]).length;i<a;i++)n=r[i],o.push(n.call(this,t));return o}},te.prototype.on=function(e,t){var n;return null==(n=this.bindings)[e]&&(n[e]=[]),this.bindings[e].push(t)},a=te,F=window.XMLHttpRequest,z=window.XDomainRequest,q=window.WebSocket,j=function(e,t){var n,i=[];for(n in t.prototype)try{null==e[n]&&"function"!=typeof t[n]?"function"==typeof Object.defineProperty?i.push(Object.defineProperty(e,n,{get:function(e){return function(){return t.prototype[e]}}(n),configurable:!0,enumerable:!0})):i.push(e[n]=t.prototype[n]):i.push(void 0)}catch(e){0}return i},S=[],_.ignore=function(){var e=arguments[0],t=2<=arguments.length?G.call(arguments,1):[];return S.unshift("ignore"),t=e.apply(null,t),S.shift(),t},_.track=function(){var e=arguments[0],t=2<=arguments.length?G.call(arguments,1):[];return S.unshift("track"),t=e.apply(null,t),S.shift(),t},M=function(e){if(null==e&&(e="GET"),"track"===S[0])return"force";if(!S.length&&Q.ajax){if("socket"===e&&Q.ajax.trackWebSockets)return!0;if(e=e.toUpperCase(),0<=X.call(Q.ajax.trackMethods,e))return!0}return!1},e(ne,a),i=ne,H=null,R=function(e){for(var t,n=Q.ajax.ignoreURLs,i=0,a=n.length;i<a;i++)if("string"==typeof(t=n[i])){if(-1!==e.indexOf(t))return!0}else if(t.test(e))return!0;return!1},(x=function(){return H=null==H?new i:H})().on("request",function(e){var r,o=e.type,s=e.request,t=e.url;if(!R(t))return _.running||!1===Q.restartOnRequestAfter&&"force"!==M(o)?void 0:(r=arguments,"boolean"==typeof(t=Q.restartOnRequestAfter||0)&&(t=0),setTimeout(function(){var e,t,n,i,a="socket"===o?s.readyState<1:0<(a=s.readyState)&&a<4;if(a){for(_.restart(),i=[],e=0,t=(n=_.sources).length;e<t;e++){if((P=n[e])instanceof l){P.watch.apply(P,r);break}i.push(void 0)}return i}},t))}),ie.prototype.watch=function(e){var t=e.type,n=e.request,e=e.url;if(!R(e))return n=new("socket"===t?s:d)(n,this.complete),this.elements.push(n)},ie.prototype.complete=function(t){return this.elements=this.elements.filter(function(e){return e!==t})},l=ie,d=function(t,n){var e,i,a,r,o=this;if(this.progress=0,null!=window.ProgressEvent)for(p(t,"progress",function(e){return e.lengthComputable?o.progress=100*e.loaded/e.total:o.progress=o.progress+(100-o.progress)/2}),e=0,i=(r=["load","abort","timeout","error"]).length;e<i;e++)p(t,r[e],function(){return n(o),o.progress=100});else a=t.onreadystatechange,t.onreadystatechange=function(){var e;return 0===(e=t.readyState)||4===e?(n(o),o.progress=100):3===t.readyState&&(o.progress=50),"function"==typeof a?a.apply(null,arguments):void 0}},s=function(e,t){for(var n,i=this,a=this.progress=0,r=(n=["error","open"]).length;a<r;a++)p(e,n[a],function(){return t(i),i.progress=100})},ae.prototype.complete=function(t){return this.elements=this.elements.filter(function(e){return e!==t})},t=ae,re.prototype.check=function(){var e=this;return document.querySelector(this.selector)?this.done():setTimeout(function(){return e.check()},Q.elements.checkInterval)},re.prototype.done=function(){return this.completeCallback(this),this.completeCallback=null,this.progress=100},o=re,oe.prototype.states={loading:0,interactive:50,complete:100},k=oe,$=function(){var t,n,i,a,r,o=this;this.progress=0,r=[],a=0,i=E(),n=setInterval(function(){var e=E()-i-50;return i=E(),r.push(e),r.length>Q.eventLag.sampleCount&&r.shift(),t=f(r),++a>=Q.eventLag.minSamples&&t<Q.eventLag.lagThreshold?(o.progress=100,clearInterval(n)):o.progress=3/(t+3)*100},50)},se.prototype.tick=function(e,t){return 100<=(t=null==t?N(this.source,"progress"):t)&&(this.done=!0),t===this.last?this.sinceLastUpdate+=e:(this.sinceLastUpdate&&(this.rate=(t-this.last)/this.sinceLastUpdate),this.catchup=(t-this.progress)/Q.catchupTime,this.sinceLastUpdate=0,this.last=t),t>this.progress&&(this.progress+=this.catchup*e),t=1-Math.pow(this.progress/100,Q.easeFactor),this.progress+=t*this.rate*e,this.progress=Math.min(this.lastProgress+Q.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},g=se,v=h=L=y=I=O=null,_.running=!1,C=function(){if(Q.restartOnPushState)return _.restart()},null!=window.history.pushState&&(W=window.history.pushState,window.history.pushState=function(){return C(),W.apply(window.history,arguments)}),null!=window.history.replaceState&&(V=window.history.replaceState,window.history.replaceState=function(){return C(),V.apply(window.history,arguments)}),u={ajax:l,elements:t,document:k,eventLag:$},(T=function(){var e,t,n,i,a,r,o,s;for(_.sources=O=[],t=0,i=(r=["ajax","elements","document","eventLag"]).length;t<i;t++)!1!==Q[e=r[t]]&&O.push(new u[e](Q[e]));for(n=0,a=(s=null!=(o=Q.extraSources)?o:[]).length;n<a;n++)P=s[n],O.push(new P(Q));return _.bar=y=new c,I=[],L=new g})(),_.stop=function(){return _.trigger("stop"),_.running=!1,y.destroy(),v=!0,null!=h&&("function"==typeof m&&m(h),h=null),T()},_.restart=function(){return _.trigger("restart"),_.stop(),_.start()},_.go=function(){var m;return _.running=!0,y.render(),m=E(),v=!1,h=A(function(e,t){y.progress;for(var n,i,a,r,o,s,l,c,u,d=o=0,p=!0,h=s=0,f=O.length;s<f;h=++s)for(P=O[h],r=null!=I[h]?I[h]:I[h]=[],i=l=0,c=(n=null!=(u=P.elements)?u:[P]).length;l<c;i=++l)a=n[i],p&=(a=null!=r[i]?r[i]:r[i]=new g(a)).done,a.done||(d++,o+=a.tick(e));return y.update(L.tick(e,o/d)),y.done()||p||v?(y.update(100),_.trigger("done"),setTimeout(function(){return y.finish(),_.running=!1,_.trigger("hide")},Math.max(Q.ghostTime,Math.max(Q.minTime-(E()-m),0)))):t()})},_.start=function(e){b(Q,e),_.running=!0;try{y.render()}catch(e){n=e}return document.querySelector(".pace")?(_.trigger("start"),_.go()):setTimeout(_.start,50)},"function"==typeof define&&define.amd?define(function(){return _}):"object"==typeof exports?module.exports=_:Q.startOnPageLoad&&_.start()}.call(this);var wysihtml5={version:"0.4.0pre",commands:{},dom:{},quirks:{},toolbar:{},lang:{},selection:{},views:{},INVISIBLE_SPACE:"\ufeff",EMPTY_FUNCTION:function(){},ELEMENT_NODE:1,TEXT_NODE:3,BACKSPACE_KEY:8,ENTER_KEY:13,ESCAPE_KEY:27,SPACE_KEY:32,DELETE_KEY:46};window.rangy=function(){var n="undefined",s=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer","START_TO_START","START_TO_END","END_TO_START","END_TO_END"],l=["setStart","setStartBefore","setStartAfter","setEnd","setEndBefore","setEndAfter","collapse","selectNode","selectNodeContents","compareBoundaryPoints","deleteContents","extractContents","cloneContents","insertNode","surroundContents","cloneRange","toString","detach"],t=["boundingHeight","boundingLeft","boundingTop","boundingWidth","htmlText","text"],i=["collapse","compareEndPoints","duplicate","getBookmark","moveToBookmark","moveToElementText","parentElement","pasteHTML","select","setEndPoint","getBoundingClientRect"];function c(e,t){var n=typeof e[t];return"function"==n||!("object"!=n||!e[t])||"unknown"==n}function u(e,t){return!("object"!=typeof e[t]||!e[t])}function e(e,t){return typeof e[t]!=n}function a(i){return function(e,t){for(var n=t.length;n--;)if(!i(e,t[n]))return!1;return!0}}var d=a(c),r=a(u),p=a(e);function h(e){return e&&d(e,i)&&p(e,t)}var f={version:"1.2.2",initialized:!1,supported:!0,util:{isHostMethod:c,isHostObject:u,isHostProperty:e,areHostMethods:d,areHostObjects:r,areHostProperties:p,isTextRange:h},features:{},modules:{},config:{alertOnWarn:!1,preferTextRange:!1}};function m(e){window.alert("Rangy not supported in your browser. Reason: "+e),f.initialized=!0,f.supported=!1}f.fail=m,f.warn=function(e){e="Rangy warning: "+e,f.config.alertOnWarn?window.alert(e):typeof window.console!=n&&typeof window.console.log!=n&&window.console.log(e)},!{}.hasOwnProperty?m("hasOwnProperty not supported"):f.util.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};var _=[],g=[];function o(){if(!f.initialized){var e,t=!1,n=!1;c(document,"createRange")&&(e=document.createRange(),d(e,l)&&p(e,s)&&(t=!0),e.detach());var i=u(document,"body")?document.body:document.getElementsByTagName("body")[0];i&&c(i,"createTextRange")&&h(e=i.createTextRange())&&(n=!0),t||n||m("Neither Range nor TextRange are implemented"),f.initialized=!0,f.features={implementsDomRange:t,implementsTextRange:n};for(var a=g.concat(_),r=0,o=a.length;r<o;++r)try{a[r](f)}catch(e){u(window,"console")&&c(window.console,"log")&&window.console.log("Init listener threw an exception. Continuing.",e)}}}f.init=o,f.addInitListener=function(e){f.initialized?e(f):_.push(e)};var y=[];function v(e){this.name=e,this.initialized=!1,this.supported=!1}f.addCreateMissingNativeApiListener=function(e){y.push(e)},f.createMissingNativeApi=function(e){e=e||window,o();for(var t=0,n=y.length;t<n;++t)y[t](e)},v.prototype.fail=function(e){throw this.initialized=!0,this.supported=!1,new Error("Module '"+this.name+"' failed to load: "+e)},v.prototype.warn=function(e){f.warn("Module "+this.name+": "+e)},v.prototype.createError=function(e){return new Error("Error in Rangy "+this.name+" module: "+e)},f.createModule=function(e,t){var n=new v(e);f.modules[e]=n,g.push(function(e){t(e,n),n.initialized=!0,n.supported=!0})};function w(e){b||(b=!0,f.initialized||o())}var b=!(f.requireModules=function(e){for(var t,n,i=0,a=e.length;i<a;++i){if(n=e[i],!((t=f.modules[n])&&t instanceof v))throw new Error("Module '"+n+"' not found");if(!t.supported)throw new Error("Module '"+n+"' not supported")}});if(typeof window!=n){if(typeof document!=n)return c(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",w,!1),c(window,"addEventListener")?window.addEventListener("load",w,!1):c(window,"attachEvent")?window.attachEvent("onload",w):m("Window does not have required addEventListener or attachEvent method"),f;m("No document found")}else m("No window found")}(),rangy.createModule("DomUtil",function(e,t){var n="undefined",i=e.util;i.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method"),i.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");var a=document.createElement("div");i.areHostMethods(a,["insertBefore","appendChild","cloneNode"])||t.fail("Incomplete Element implementation"),i.isHostProperty(a,"innerHTML")||t.fail("Element is missing innerHTML property");a=document.createTextNode("test");i.areHostMethods(a,["splitText","deleteData","insertData","appendData","cloneNode"])||t.fail("Incomplete Text Node implementation");function r(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1}function l(e){for(var t=0;e=e.previousSibling;)t++;return t}function c(e,t){for(var n=[],i=e;i;i=i.parentNode)n.push(i);for(i=t;i;i=i.parentNode)if(r(n,i))return i;return null}function u(e,t,n){for(var i,a=n?e:e.parentNode;a;){if((i=a.parentNode)===t)return a;a=i}return null}function o(e){e=e.nodeType;return 3==e||4==e||8==e}function s(e,t){var n=t.nextSibling,t=t.parentNode;return n?t.insertBefore(e,n):t.appendChild(e),e}function d(e){if(9==e.nodeType)return e;if(typeof e.ownerDocument!=n)return e.ownerDocument;if(typeof e.document!=n)return e.document;if(e.parentNode)return d(e.parentNode);throw new Error("getDocument: no document found for node")}function p(e){if(!e)return"[No node]";if(o(e))return'"'+e.data+'"';if(1!=e.nodeType)return e.nodeName;var t=e.id?' id="'+e.id+'"':"";return"<"+e.nodeName+t+">["+e.childNodes.length+"]"}function h(e){this.root=e,this._next=e}function f(e,t){this.node=e,this.offset=t}function m(e){this.code=this[e],this.codeName=e,this.message="DOMException: "+this.codeName}h.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var e,t,n=this._current=this._next;if(this._current)if(e=n.firstChild)this._next=e;else{for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}},f.prototype={equals:function(e){return this.node===e.node&this.offset==e.offset},inspect:function(){return"[DomPosition("+p(this.node)+":"+this.offset+")]"}},(m.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11}).toString=function(){return this.message},e.dom={arrayContains:r,isHtmlNamespace:function(e){var t;return typeof e.namespaceURI==n||null===(t=e.namespaceURI)||"http://www.w3.org/1999/xhtml"==t},parentElement:function(e){return 1==(e=e.parentNode).nodeType?e:null},getNodeIndex:l,getNodeLength:function(e){return o(e)?e.length:(e=e.childNodes)?e.length:0},getCommonAncestor:c,isAncestorOf:function(e,t,n){for(var i=n?t:t.parentNode;i;){if(i===e)return!0;i=i.parentNode}return!1},getClosestAncestorIn:u,isCharacterDataNode:o,insertAfter:s,splitDataNode:function(e,t){var n=e.cloneNode(!1);return n.deleteData(0,t),e.deleteData(t,e.length-t),s(n,e),n},getDocument:d,getWindow:function(e){if(typeof(e=d(e)).defaultView!=n)return e.defaultView;if(typeof e.parentWindow!=n)return e.parentWindow;throw new Error("Cannot get a window object for node")},getIframeWindow:function(e){if(typeof e.contentWindow!=n)return e.contentWindow;if(typeof e.contentDocument!=n)return e.contentDocument.defaultView;throw new Error("getIframeWindow: No Window object found for iframe element")},getIframeDocument:function(e){if(typeof e.contentDocument!=n)return e.contentDocument;if(typeof e.contentWindow!=n)return e.contentWindow.document;throw new Error("getIframeWindow: No Document object found for iframe element")},getBody:function(e){return i.isHostObject(e,"body")?e.body:e.getElementsByTagName("body")[0]},getRootContainer:function(e){for(var t;t=e.parentNode;)e=t;return e},comparePoints:function(e,t,n,i){var a,r,o,s;if(e==n)return t===i?0:t<i?-1:1;if(a=u(n,e,!0))return t<=l(a)?-1:1;if(a=u(e,n,!0))return l(a)<i?-1:1;if((r=e===(i=c(e,n))?i:u(e,i,!0))===(o=n===i?i:u(n,i,!0)))throw new Error("comparePoints got to case 4 and childA and childB are the same!");for(s=i.firstChild;s;){if(s===r)return-1;if(s===o)return 1;s=s.nextSibling}throw new Error("Should not be here!")},inspectNode:p,fragmentFromNodeChildren:function(e){for(var t,n=d(e).createDocumentFragment();t=e.firstChild;)n.appendChild(t);return n},createIterator:function(e){return new h(e)},DomPosition:f},e.DOMException=m}),rangy.createModule("DomRange",function(r,e){r.requireModules(["DomUtil"]);var c=r.dom,t=c.DomPosition,o=r.DOMException;function s(e,t){return 3!=e.nodeType&&(c.isAncestorOf(e,t.startContainer,!0)||c.isAncestorOf(e,t.endContainer,!0))}function l(e){return c.getDocument(e.startContainer)}function u(e,t,n){var i=e._listeners[t];if(i)for(var a=0,r=i.length;a<r;++a)i[a].call(e,{target:e,args:n})}function d(e){return new t(e.parentNode,c.getNodeIndex(e))}function p(e){return new t(e.parentNode,c.getNodeIndex(e)+1)}function n(e,t,n){var i=11==e.nodeType?e.firstChild:e;return c.isCharacterDataNode(t)?n==t.length?c.insertAfter(e,t):t.parentNode.insertBefore(e,0==n?t:c.splitDataNode(t,n)):n>=t.childNodes.length?t.appendChild(e):t.insertBefore(e,t.childNodes[n]),i}function h(e,t,n){var i,a,r,o;for(n=n||{stop:!1};r=e.next();)if(e.isPartiallySelectedSubtree()){if(!1===t(r))return void(n.stop=!0);if(h(o=e.getSubtreeIterator(),t,n),o.detach(!0),n.stop)return}else for(i=c.createIterator(r);a=i.next();)if(!1===t(a))return void(n.stop=!0)}function f(e){for(var t;e.next();)e.isPartiallySelectedSubtree()?(f(t=e.getSubtreeIterator()),t.detach(!0)):e.remove()}function m(e){for(var t,n,i=l(e.range).createDocumentFragment();t=e.next();){if(e.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),n=e.getSubtreeIterator(),t.appendChild(m(n)),n.detach(!0)):e.remove(),10==t.nodeType)throw new o("HIERARCHY_REQUEST_ERR");i.appendChild(t)}return i}function i(e,t,n){var i,a=!(!t||!t.length),r=!!n;a&&(i=new RegExp("^("+t.join("|")+")$"));var o=[];return h(new _(e,!1),function(e){a&&!i.test(e.nodeType)||r&&!n(e)||o.push(e)}),o}function a(e){return"["+(void 0===e.getName?"Range":e.getName())+"("+c.inspectNode(e.startContainer)+":"+e.startOffset+", "+c.inspectNode(e.endContainer)+":"+e.endOffset+")]"}function _(e,t){this.range=e,this.clonePartiallySelectedTextNodes=t,e.collapsed||(this.sc=e.startContainer,this.so=e.startOffset,this.ec=e.endContainer,this.eo=e.endOffset,e=e.commonAncestorContainer,this.sc===this.ec&&c.isCharacterDataNode(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==e||c.isCharacterDataNode(this.sc)?c.getClosestAncestorIn(this.sc,e,!0):this.sc.childNodes[this.so],this._last=this.ec!==e||c.isCharacterDataNode(this.ec)?c.getClosestAncestorIn(this.ec,e,!0):this.ec.childNodes[this.eo-1]))}function g(e){this.code=this[e],this.codeName=e,this.message="RangeException: "+this.codeName}function y(e,t,n){this.nodes=i(e,t,n),this._next=this.nodes[0],this._position=0}_.prototype={_current:null,_next:null,_first:null,_last:null,isSingleCharacterDataNode:!1,reset:function(){this._current=null,this._next=this._first},hasNext:function(){return!!this._next},next:function(){var e=this._current=this._next;return e&&(this._next=e!==this._last?e.nextSibling:null,c.isCharacterDataNode(e)&&this.clonePartiallySelectedTextNodes&&(e===this.ec&&(e=e.cloneNode(!0)).deleteData(this.eo,e.length-this.eo),this._current===this.sc&&(e=e.cloneNode(!0)).deleteData(0,this.so))),e},remove:function(){var e,t,n=this._current;!c.isCharacterDataNode(n)||n!==this.sc&&n!==this.ec?n.parentNode&&n.parentNode.removeChild(n):(e=n===this.sc?this.so:0)!=(t=n===this.ec?this.eo:n.length)&&n.deleteData(e,t-e)},isPartiallySelectedSubtree:function(){return s(this._current,this.range)},getSubtreeIterator:function(){var e,t,n,i,a,r;return this.isSingleCharacterDataNode?(e=this.range.cloneRange()).collapse():(e=new ne(l(this.range)),t=this._current,i=0,r=c.getNodeLength(a=n=t),c.isAncestorOf(t,this.sc,!0)&&(n=this.sc,i=this.so),c.isAncestorOf(t,this.ec,!0)&&(a=this.ec,r=this.eo),te(e,n,i,a,r)),new _(e,this.clonePartiallySelectedTextNodes)},detach:function(e){e&&this.range.detach(),this.range=this._current=this._next=this._first=this._last=this.sc=this.so=this.ec=this.eo=null}},(g.prototype={BAD_BOUNDARYPOINTS_ERR:1,INVALID_NODE_TYPE_ERR:2}).toString=function(){return this.message},y.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){return this._current=this._next,this._next=this.nodes[++this._position],this._current},detach:function(){this._current=this._next=this.nodes=null}};var v=[1,3,4,5,7,8,10],w=[2,9,11],b=[1,3,4,5,7,8,10,11],j=[1,3,4,5,7,8];function k(a){return function(e,t){for(var n,i=t?e:e.parentNode;i;){if(n=i.nodeType,c.arrayContains(a,n))return i;i=i.parentNode}return null}}var x=c.getRootContainer,C=k([9,11]),S=k([5,6,10,12]),T=k([6,10,12]);function E(e,t){if(T(e,t))throw new g("INVALID_NODE_TYPE_ERR")}function Q(e){if(!e.startContainer)throw new o("INVALID_STATE_ERR")}function D(e,t){if(!c.arrayContains(t,e.nodeType))throw new g("INVALID_NODE_TYPE_ERR")}function N(e,t){if(t<0||t>(c.isCharacterDataNode(e)?e:e.childNodes).length)throw new o("INDEX_SIZE_ERR")}function A(e,t){if(C(e,!0)!==C(t,!0))throw new o("WRONG_DOCUMENT_ERR")}function I(e){if(S(e,!0))throw new o("NO_MODIFICATION_ALLOWED_ERR")}function R(e,t){if(!e)throw new o(t)}function M(e){return!c.arrayContains(w,e.nodeType)&&!C(e,!0)}function P(e,t){return t<=(c.isCharacterDataNode(e)?e:e.childNodes).length}function O(e){if(Q(e),M(e.startContainer)||M(e.endContainer)||!P(e.startContainer,e.startOffset)||!P(e.endContainer,e.endOffset))throw new Error("Range error: Range is no longer valid after DOM mutation ("+e.inspect()+")")}var L=document.createElement("style"),q=!1;try{L.innerHTML="<b>x</b>",q=3==L.firstChild.nodeType}catch(e){}r.features.htmlParsingConforms=q;var z=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],F=0,U=1,H=2,B=3,W=0,Y=1,V=2,$=3;function G(){}function K(e){e.START_TO_START=F,e.START_TO_END=U,e.END_TO_END=H,e.END_TO_START=B,e.NODE_BEFORE=W,e.NODE_AFTER=Y,e.NODE_BEFORE_AND_AFTER=V,e.NODE_INSIDE=$}function X(e){K(e),K(e.prototype)}function J(r,o){return function(){O(this);var e=this.startContainer,t=this.startOffset,n=this.commonAncestorContainer,i=new _(this,!0);e!==n&&(e=(a=p(c.getClosestAncestorIn(e,n,!0))).node,t=a.offset),h(i,I),i.reset();var a=r(i);return i.detach(),o(this,e,t,e,t),a}}function Z(e,l,t){function n(t,n){return function(e){Q(this),D(e,v),D(x(e),w);e=(t?d:p)(e);(n?i:a)(this,e.node,e.offset)}}function i(e,t,n){var i=e.endContainer,a=e.endOffset;t===e.startContainer&&n===e.startOffset||(x(t)==x(i)&&1!=c.comparePoints(t,n,i,a)||(i=t,a=n),l(e,t,n,i,a))}function a(e,t,n){var i=e.startContainer,a=e.startOffset;t===e.endContainer&&n===e.endOffset||(x(t)==x(i)&&-1!=c.comparePoints(t,n,i,a)||(i=t,a=n),l(e,i,a,t,n))}e.prototype=new G,r.util.extend(e.prototype,{setStart:function(e,t){Q(this),E(e,!0),N(e,t),i(this,e,t)},setEnd:function(e,t){Q(this),E(e,!0),N(e,t),a(this,e,t)},setStartBefore:n(!0,!0),setStartAfter:n(!1,!0),setEndBefore:n(!0,!1),setEndAfter:n(!1,!1),collapse:function(e){O(this),e?l(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):l(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(e){Q(this),E(e,!0),l(this,e,0,e,c.getNodeLength(e))},selectNode:function(e){Q(this),E(e,!1),D(e,v);var t=d(e),e=p(e);l(this,t.node,t.offset,e.node,e.offset)},extractContents:J(m,l),deleteContents:J(f,l),canSurroundContents:function(){O(this),I(this.startContainer),I(this.endContainer);var e=new _(this,!0),t=e._first&&s(e._first,this)||e._last&&s(e._last,this);return e.detach(),!t},detach:function(){t(this)},splitBoundaries:function(){O(this);var e=this.startContainer,t=this.startOffset,n=this.endContainer,i=this.endOffset,a=e===n;c.isCharacterDataNode(n)&&0<i&&i<n.length&&c.splitDataNode(n,i),c.isCharacterDataNode(e)&&0<t&&t<e.length&&(e=c.splitDataNode(e,t),a?(i-=t,n=e):n==e.parentNode&&i>=c.getNodeIndex(e)&&i++,t=0),l(this,e,t,n,i)},normalizeBoundaries:function(){O(this);function e(e){var t=e.nextSibling;t&&t.nodeType==e.nodeType&&(o=(r=e).length,e.appendData(t.data),t.parentNode.removeChild(t))}function t(e){var t,n=e.previousSibling;n&&n.nodeType==e.nodeType&&(t=(i=e).length,a=n.length,e.insertData(0,n.data),n.parentNode.removeChild(n),i==r?(o+=a,r=i):r==e.parentNode&&(n=c.getNodeIndex(e),o==n?(r=e,o=t):n<o&&o--))}var n,i=this.startContainer,a=this.startOffset,r=this.endContainer,o=this.endOffset,s=!0;c.isCharacterDataNode(r)?r.length==o&&e(r):(0<o&&((n=r.childNodes[o-1])&&c.isCharacterDataNode(n)&&e(n)),s=!this.collapsed),s?c.isCharacterDataNode(i)?0==a&&t(i):a<i.childNodes.length&&((s=i.childNodes[a])&&c.isCharacterDataNode(s)&&t(s)):(i=r,a=o),l(this,i,a,r,o)},collapseToPoint:function(e,t){var n;Q(this),E(e,!0),N(e,t),n=t,(t=e)===(e=this).startContainer&&n===e.startOffset&&t===e.endContainer&&n===e.endOffset||l(e,t,n,t,n)}}),X(e)}function ee(e){e.collapsed=e.startContainer===e.endContainer&&e.startOffset===e.endOffset,e.commonAncestorContainer=e.collapsed?e.startContainer:c.getCommonAncestor(e.startContainer,e.endContainer)}function te(e,t,n,i,a){var r=e.startContainer!==t||e.startOffset!==n,o=e.endContainer!==i||e.endOffset!==a;e.startContainer=t,e.startOffset=n,e.endContainer=i,e.endOffset=a,ee(e),u(e,"boundarychange",{startMoved:r,endMoved:o})}function ne(e){this.startContainer=e,this.startOffset=0,this.endContainer=e,this.endOffset=0,this._listeners={boundarychange:[],detach:[]},ee(this)}G.prototype={attachListener:function(e,t){this._listeners[e].push(t)},compareBoundaryPoints:function(e,t){O(this),A(this.startContainer,t.startContainer);var n=e==B||e==F?"start":"end",i=e==U||e==F?"start":"end",a=this[n+"Container"],e=this[n+"Offset"],n=t[i+"Container"],i=t[i+"Offset"];return c.comparePoints(a,e,n,i)},insertNode:function(e){if(O(this),D(e,b),I(this.startContainer),c.isAncestorOf(e,this.startContainer,!0))throw new o("HIERARCHY_REQUEST_ERR");e=n(e,this.startContainer,this.startOffset);this.setStartBefore(e)},cloneContents:function(){if(O(this),this.collapsed)return l(this).createDocumentFragment();if(this.startContainer===this.endContainer&&c.isCharacterDataNode(this.startContainer))return(t=this.startContainer.cloneNode(!0)).data=t.data.slice(this.startOffset,this.endOffset),(e=l(this).createDocumentFragment()).appendChild(t),e;var e=new _(this,!0),t=function e(t){for(var n,i,a=l(t.range).createDocumentFragment();n=t.next();){if(i=t.isPartiallySelectedSubtree(),n=n.cloneNode(!i),i&&(i=t.getSubtreeIterator(),n.appendChild(e(i)),i.detach(!0)),10==n.nodeType)throw new o("HIERARCHY_REQUEST_ERR");a.appendChild(n)}return a}(e);return e.detach(),t},canSurroundContents:function(){O(this),I(this.startContainer),I(this.endContainer);var e=new _(this,!0),t=e._first&&s(e._first,this)||e._last&&s(e._last,this);return e.detach(),!t},surroundContents:function(e){if(D(e,j),!this.canSurroundContents())throw new g("BAD_BOUNDARYPOINTS_ERR");var t=this.extractContents();if(e.hasChildNodes())for(;e.lastChild;)e.removeChild(e.lastChild);n(e,this.startContainer,this.startOffset),e.appendChild(t),this.selectNode(e)},cloneRange:function(){O(this);for(var e,t=new ne(l(this)),n=z.length;n--;)t[e=z[n]]=this[e];return t},toString:function(){O(this);var e=this.startContainer;if(e===this.endContainer&&c.isCharacterDataNode(e))return 3==e.nodeType||4==e.nodeType?e.data.slice(this.startOffset,this.endOffset):"";var t=[],e=new _(this,!0);return h(e,function(e){3!=e.nodeType&&4!=e.nodeType||t.push(e.data)}),e.detach(),t.join("")},compareNode:function(e){O(this);var t=e.parentNode,n=c.getNodeIndex(e);if(!t)throw new o("NOT_FOUND_ERR");e=this.comparePoint(t,n),n=this.comparePoint(t,n+1);return e<0?0<n?V:W:0<n?Y:$},comparePoint:function(e,t){return O(this),R(e,"HIERARCHY_REQUEST_ERR"),A(e,this.startContainer),c.comparePoints(e,t,this.startContainer,this.startOffset)<0?-1:0<c.comparePoints(e,t,this.endContainer,this.endOffset)?1:0},createContextualFragment:q?function(e){var t=this.startContainer,n=c.getDocument(t);if(!t)throw new o("INVALID_STATE_ERR");var i=null;return 1==t.nodeType?i=t:c.isCharacterDataNode(t)&&(i=c.parentElement(t)),(i=null===i||"HTML"==i.nodeName&&c.isHtmlNamespace(c.getDocument(i).documentElement)&&c.isHtmlNamespace(i)?n.createElement("body"):i.cloneNode(!1)).innerHTML=e,c.fragmentFromNodeChildren(i)}:function(e){Q(this);var t=l(this).createElement("body");return t.innerHTML=e,c.fragmentFromNodeChildren(t)},toHtml:function(){O(this);var e=l(this).createElement("div");return e.appendChild(this.cloneContents()),e.innerHTML},intersectsNode:function(e,t){if(O(this),R(e,"NOT_FOUND_ERR"),c.getDocument(e)!==l(this))return!1;var n=e.parentNode,i=c.getNodeIndex(e);R(n,"NOT_FOUND_ERR");e=c.comparePoints(n,i,this.endContainer,this.endOffset),i=c.comparePoints(n,i+1,this.startContainer,this.startOffset);return t?e<=0&&0<=i:e<0&&0<i},isPointInRange:function(e,t){return O(this),R(e,"HIERARCHY_REQUEST_ERR"),A(e,this.startContainer),0<=c.comparePoints(e,t,this.startContainer,this.startOffset)&&c.comparePoints(e,t,this.endContainer,this.endOffset)<=0},intersectsRange:function(e,t){if(O(this),l(e)!=l(this))throw new o("WRONG_DOCUMENT_ERR");var n=c.comparePoints(this.startContainer,this.startOffset,e.endContainer,e.endOffset),e=c.comparePoints(this.endContainer,this.endOffset,e.startContainer,e.startOffset);return t?n<=0&&0<=e:n<0&&0<e},intersection:function(e){if(this.intersectsRange(e)){var t=c.comparePoints(this.startContainer,this.startOffset,e.startContainer,e.startOffset),n=c.comparePoints(this.endContainer,this.endOffset,e.endContainer,e.endOffset),i=this.cloneRange();return-1==t&&i.setStart(e.startContainer,e.startOffset),1==n&&i.setEnd(e.endContainer,e.endOffset),i}return null},union:function(e){if(this.intersectsRange(e,!0)){var t=this.cloneRange();return-1==c.comparePoints(e.startContainer,e.startOffset,this.startContainer,this.startOffset)&&t.setStart(e.startContainer,e.startOffset),1==c.comparePoints(e.endContainer,e.endOffset,this.endContainer,this.endOffset)&&t.setEnd(e.endContainer,e.endOffset),t}throw new g("Ranges do not intersect")},containsNode:function(e,t){return t?this.intersectsNode(e,!1):this.compareNode(e)==$},containsNodeContents:function(e){return 0<=this.comparePoint(e,0)&&this.comparePoint(e,c.getNodeLength(e))<=0},containsRange:function(e){return this.intersection(e).equals(e)},containsNodeText:function(e){var t=this.cloneRange();t.selectNode(e);var n=t.getNodes([3]);if(0<n.length){t.setStart(n[0],0);n=n.pop();t.setEnd(n,n.length);n=this.containsRange(t);return t.detach(),n}return this.containsNodeContents(e)},createNodeIterator:function(e,t){return O(this),new y(this,e,t)},getNodes:function(e,t){return O(this),i(this,e,t)},getDocument:function(){return l(this)},collapseBefore:function(e){Q(this),this.setEndBefore(e),this.collapse(!1)},collapseAfter:function(e){Q(this),this.setStartAfter(e),this.collapse(!0)},getName:function(){return"DomRange"},equals:function(e){return ne.rangesEqual(this,e)},inspect:function(){return a(this)}},Z(ne,te,function(e){Q(e),e.startContainer=e.startOffset=e.endContainer=e.endOffset=null,e.collapsed=e.commonAncestorContainer=null,u(e,"detach",null),e._listeners=null}),r.rangePrototype=G.prototype,ne.rangeProperties=z,ne.RangeIterator=_,ne.copyComparisonConstants=X,ne.createPrototypeRange=Z,ne.inspect=a,ne.getRangeDocument=l,ne.rangesEqual=function(e,t){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},r.DomRange=ne,r.RangeException=g}),rangy.createModule("WrappedRange",function(o,e){var s;o.requireModules(["DomUtil","DomRange"]);var t,p=o.dom,h=p.DomPosition,l=o.DomRange;function i(e,t,n,i){var a=e.duplicate();a.collapse(n);var r=a.parentElement();if(!(r=!p.isAncestorOf(t,r,!0)?t:r).canHaveHTML)return new h(r.parentNode,p.getNodeIndex(r));for(var o,s=p.getDocument(r).createElement("span"),l=n?"StartToStart":"StartToEnd";r.insertBefore(s,s.previousSibling),a.moveToElementText(s),0<(o=a.compareEndPoints(l,e))&&s.previousSibling;);if(t=s.nextSibling,-1==o&&t&&p.isCharacterDataNode(t)){if(a.setEndPoint(n?"EndToStart":"EndToEnd",e),/[\r\n]/.test(t.data))for(var c=a.duplicate(),u=c.text.replace(/\r\n/g,"\r").length,d=c.moveStart("character",u);-1==(o=c.compareEndPoints("StartToEnd",c));)d++,c.moveStart("character",1);else d=a.text.length;u=new h(t,d)}else t=(i||!n)&&s.previousSibling,u=(n=(i||n)&&s.nextSibling)&&p.isCharacterDataNode(n)?new h(n,0):t&&p.isCharacterDataNode(t)?new h(t,t.length):new h(r,p.getNodeIndex(s));return s.parentNode.removeChild(s),u}function a(e,t){var n,i,a=e.offset,r=p.getDocument(e.node),o=r.body.createTextRange(),s=p.isCharacterDataNode(e.node),e=s?(n=e.node).parentNode:(n=a<(i=e.node.childNodes).length?i[a]:null,e.node),r=r.createElement("span");return r.innerHTML="&#feff;",n?e.insertBefore(r,n):e.appendChild(r),o.moveToElementText(r),o.collapse(!t),e.removeChild(r),s&&o[t?"moveStart":"moveEnd"]("character",a),o}!o.features.implementsDomRange||o.features.implementsTextRange&&o.config.preferTextRange?o.features.implementsTextRange&&((s=function(e){this.textRange=e,this.refresh()}).prototype=new l(document),s.prototype.refresh=function(){var e,t,n=function(e){var t=e.parentElement(),n=e.duplicate();n.collapse(!0);var i=n.parentElement();return(n=e.duplicate()).collapse(!1),n=n.parentElement(),(n=i==n?i:p.getCommonAncestor(i,n))==t?n:p.getCommonAncestor(t,n)}(this.textRange),n=0==(t=this.textRange).compareEndPoints("StartToEnd",t)?e=i(this.textRange,n,!0,!0):(e=i(this.textRange,n,!0,!1),i(this.textRange,n,!1,!1));this.setStart(e.node,e.offset),this.setEnd(n.node,n.offset)},l.copyComparisonConstants(s),void 0===(t=function(){return this}()).Range&&(t.Range=s),o.createNativeRange=function(e){return(e=e||document).body.createTextRange()}):(function(){var t,i=l.rangeProperties;function a(e){for(var t,n=i.length;n--;)e[t=i[n]]=e.nativeRange[t]}s=function(e){if(!e)throw new Error("Range must be specified");this.nativeRange=e,a(this)},l.createPrototypeRange(s,function(e,t,n,i,a){var r=e.startContainer!==t||e.startOffset!=n,o=e.endContainer!==i||e.endOffset!=a;(r||o)&&(e.setEnd(i,a),e.setStart(t,n))},function(e){e.nativeRange.detach(),e.detached=!0;for(var t=i.length;t--;)e[i[t]]=null}),(t=s.prototype).selectNode=function(e){this.nativeRange.selectNode(e),a(this)},t.deleteContents=function(){this.nativeRange.deleteContents(),a(this)},t.extractContents=function(){var e=this.nativeRange.extractContents();return a(this),e},t.cloneContents=function(){return this.nativeRange.cloneContents()},t.surroundContents=function(e){this.nativeRange.surroundContents(e),a(this)},t.collapse=function(e){this.nativeRange.collapse(e),a(this)},t.cloneRange=function(){return new s(this.nativeRange.cloneRange())},t.refresh=function(){a(this)},t.toString=function(){return this.nativeRange.toString()};var e=document.createTextNode("test");p.getBody(document).appendChild(e);var n=document.createRange();n.setStart(e,0),n.setEnd(e,0);try{n.setStart(e,1),t.setStart=function(e,t){this.nativeRange.setStart(e,t),a(this)},t.setEnd=function(e,t){this.nativeRange.setEnd(e,t),a(this)},r=function(t){return function(e){this.nativeRange[t](e),a(this)}}}catch(e){t.setStart=function(t,n){try{this.nativeRange.setStart(t,n)}catch(e){this.nativeRange.setEnd(t,n),this.nativeRange.setStart(t,n)}a(this)},t.setEnd=function(t,n){try{this.nativeRange.setEnd(t,n)}catch(e){this.nativeRange.setStart(t,n),this.nativeRange.setEnd(t,n)}a(this)},r=function(n,i){return function(t){try{this.nativeRange[n](t)}catch(e){this.nativeRange[i](t),this.nativeRange[n](t)}a(this)}}}t.setStartBefore=r("setStartBefore","setEndBefore"),t.setStartAfter=r("setStartAfter","setEndAfter"),t.setEndBefore=r("setEndBefore","setStartBefore"),t.setEndAfter=r("setEndAfter","setStartAfter"),n.selectNodeContents(e),n.startContainer==e&&n.endContainer==e&&0==n.startOffset&&n.endOffset==e.length?t.selectNodeContents=function(e){this.nativeRange.selectNodeContents(e),a(this)}:t.selectNodeContents=function(e){this.setStart(e,0),this.setEnd(e,l.getEndOffset(e))},n.selectNodeContents(e),n.setEnd(e,3);var r=document.createRange();r.selectNodeContents(e),r.setEnd(e,4),r.setStart(e,2),-1==n.compareBoundaryPoints(n.START_TO_END,r)&1==n.compareBoundaryPoints(n.END_TO_START,r)?t.compareBoundaryPoints=function(e,t){return e==(t=t.nativeRange||t).START_TO_END?e=t.END_TO_START:e==t.END_TO_START&&(e=t.START_TO_END),this.nativeRange.compareBoundaryPoints(e,t)}:t.compareBoundaryPoints=function(e,t){return this.nativeRange.compareBoundaryPoints(e,t.nativeRange||t)},o.util.isHostMethod(n,"createContextualFragment")&&(t.createContextualFragment=function(e){return this.nativeRange.createContextualFragment(e)}),p.getBody(document).removeChild(e),n.detach(),r.detach()}(),o.createNativeRange=function(e){return(e=e||document).createRange()}),o.features.implementsTextRange&&(s.rangeToTextRange=function(e){if(e.collapsed)return a(new h(e.startContainer,e.startOffset),!0);var t=a(new h(e.startContainer,e.startOffset),!0),n=a(new h(e.endContainer,e.endOffset),!1),e=p.getDocument(e.startContainer).body.createTextRange();return e.setEndPoint("StartToStart",t),e.setEndPoint("EndToEnd",n),e}),s.prototype.getName=function(){return"WrappedRange"},o.WrappedRange=s,o.createRange=function(e){return e=e||document,new s(o.createNativeRange(e))},o.createRangyRange=function(e){return e=e||document,new l(e)},o.createIframeRange=function(e){return o.createRange(p.getIframeDocument(e))},o.createIframeRangyRange=function(e){return o.createRangyRange(p.getIframeDocument(e))},o.addCreateMissingNativeApiListener(function(e){e=e.document;void 0===e.createRange&&(e.createRange=function(){return o.createRange(this)})})}),rangy.createModule("WrappedSelection",function(r,e){r.requireModules(["DomUtil","DomRange","WrappedRange"]),r.config.checkSelectionRanges=!0;var a,i,o="_rangySelection",l=r.dom,t=r.util,s=r.DomRange,n=r.WrappedRange,c=r.DOMException,u=l.DomPosition,d="Control";function p(e){return(e||window).document.selection}var h=r.util.isHostMethod(window,"getSelection"),f=r.util.isHostObject(document,"selection"),m=f&&(!h||r.config.preferTextRange);m?(a=p,r.isSelectionValid=function(e){var t=(e||window).document,e=t.selection;return"None"!=e.type||l.getDocument(e.createRange().parentElement())==t}):h?(a=function(e){return(e||window).getSelection()},r.isSelectionValid=function(){return!0}):e.fail("Neither document.selection or window.getSelection() detected.");var _=(r.getNativeSelection=a)(),g=r.createNativeRange(document),y=l.getBody(document),v=t.areHostObjects(_,t.areHostProperties(_,["anchorOffset","focusOffset"]));r.features.selectionHasAnchorAndFocus=v;var w=t.isHostMethod(_,"extend");r.features.selectionHasExtend=w;h="number"==typeof _.rangeCount;r.features.selectionHasRangeCount=h;var b=!1,j=!0;t.areHostMethods(_,["addRange","getRangeAt","removeAllRanges"])&&"number"==typeof _.rangeCount&&r.features.implementsDomRange&&function(){var e=document.createElement("iframe");y.appendChild(e);var t=l.getIframeDocument(e);t.open(),t.write("<html><head></head><body>12</body></html>"),t.close();var n=window.getSelection(),i=t.documentElement.lastChild.firstChild,a=t.createRange();a.setStart(i,1),a.collapse(!0),n.addRange(a),j=1==n.rangeCount,n.removeAllRanges();t=a.cloneRange();a.setStart(i,0),t.setEnd(i,2),n.removeAllRanges(),n.addRange(a),n.addRange(t),b=2==n.rangeCount,a.detach(),t.detach(),y.removeChild(e)}(),r.features.selectionSupportsMultipleRanges=b,r.features.collapsedNonEditableSelectionsSupported=j;var k,x=!1;function C(e,t,n){var i=n?"end":"start",n=n?"start":"end";e.anchorNode=t[i+"Container"],e.anchorOffset=t[i+"Offset"],e.focusNode=t[n+"Container"],e.focusOffset=t[n+"Offset"]}function S(e){e.anchorNode=e.focusNode=null,e.anchorOffset=e.focusOffset=0,e.rangeCount=0,e.isCollapsed=!0,e._ranges.length=0}function T(e){var t;return e instanceof s?(t=e._selectionNativeRange)||((t=r.createNativeRange(l.getDocument(e.startContainer))).setEnd(e.endContainer,e.endOffset),t.setStart(e.startContainer,e.startOffset),e._selectionNativeRange=t,e.attachListener("detach",function(){this._selectionNativeRange=null})):e instanceof n?t=e.nativeRange:r.features.implementsDomRange&&e instanceof l.getWindow(e.startContainer).Range&&(t=e),t}function E(e){var t=e.getNodes();if(!function(e){if(e.length&&1==e[0].nodeType){for(var t=1,n=e.length;t<n;++t)if(!l.isAncestorOf(e[0],e[t]))return;return 1}}(t))throw new Error("getSingleElementFromRange: range "+e.inspect()+" did not consist of a single element");return t[0]}function Q(e){return e&&void 0!==e.text}function D(e,t){t=new n(t);e._ranges=[t],C(e,t,!1),e.rangeCount=1,e.isCollapsed=t.collapsed}function N(e){if(e._ranges.length=0,"None"==e.docSelection.type)S(e);else{var t=e.docSelection.createRange();if(Q(t))D(e,t);else{e.rangeCount=t.length;for(var n,i=l.getDocument(t.item(0)),a=0;a<e.rangeCount;++a)(n=r.createRange(i)).selectNode(t.item(a)),e._ranges.push(n);e.isCollapsed=1==e.rangeCount&&e._ranges[0].collapsed,C(e,e._ranges[e.rangeCount-1],!1)}}}function A(e,t){for(var n=e.docSelection.createRange(),i=E(t),t=l.getDocument(n.item(0)),a=l.getBody(t).createControlRange(),r=0,o=n.length;r<o;++r)a.add(n.item(r));try{a.add(i)}catch(e){throw new Error("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)")}a.select(),N(e)}function I(e,t,n){this.nativeSelection=e,this.docSelection=t,this._ranges=[],this.win=n,this.refresh()}y&&t.isHostMethod(y,"createControlRange")&&(M=y.createControlRange(),t.areHostProperties(M,["item","add"])&&(x=!0)),r.features.implementsControlRange=x,i=v?function(e){return e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset}:function(e){return!!e.rangeCount&&e.getRangeAt(e.rangeCount-1).collapsed},t.isHostMethod(_,"getRangeAt")?k=function(e,t){try{return e.getRangeAt(t)}catch(e){return null}}:v&&(k=function(e){var t=l.getDocument(e.anchorNode),t=r.createRange(t);return t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset),t.collapsed!==this.isCollapsed&&(t.setStart(e.focusNode,e.focusOffset),t.setEnd(e.anchorNode,e.anchorOffset)),t}),r.getSelection=function(e){var t=(e=e||window)[o],n=a(e),i=f?p(e):null;return t?(t.nativeSelection=n,t.docSelection=i,t.refresh(e)):(t=new I(n,i,e),e[o]=t),t},r.getIframeSelection=function(e){return r.getSelection(l.getIframeWindow(e))};var R,M=I.prototype;function P(e,t){for(var n,i=l.getDocument(t[0].startContainer),a=l.getBody(i).createControlRange(),r=0;r<rangeCount;++r){n=E(t[r]);try{a.add(n)}catch(e){throw new Error("setRanges(): Element within the one of the specified Ranges could not be added to control selection (does it have layout?)")}}a.select(),N(e)}if(!m&&v&&t.areHostMethods(_,["removeAllRanges","addRange"])){M.removeAllRanges=function(){this.nativeSelection.removeAllRanges(),S(this)};function O(e,t){var n=s.getRangeDocument(t),n=r.createRange(n);n.collapseToPoint(t.endContainer,t.endOffset),e.nativeSelection.addRange(T(n)),e.nativeSelection.extend(t.startContainer,t.startOffset),e.refresh()}M.addRange=h?function(e,t){x&&f&&this.docSelection.type==d?A(this,e):t&&w?O(this,e):(t=b?this.rangeCount:(this.removeAllRanges(),0),this.nativeSelection.addRange(T(e)),this.rangeCount=this.nativeSelection.rangeCount,this.rangeCount==t+1?(!r.config.checkSelectionRanges||(t=k(this.nativeSelection,this.rangeCount-1))&&!s.rangesEqual(t,e)&&(e=new n(t)),this._ranges[this.rangeCount-1]=e,C(this,e,q(this.nativeSelection)),this.isCollapsed=i(this)):this.refresh())}:function(e,t){t&&w?O(this,e):(this.nativeSelection.addRange(T(e)),this.refresh())},M.setRanges=function(e){if(x&&1<e.length)P(this,e);else{this.removeAllRanges();for(var t=0,n=e.length;t<n;++t)this.addRange(e[t])}}}else{if(!(t.isHostMethod(_,"empty")&&t.isHostMethod(g,"select")&&x&&m))return e.fail("No means of selecting a Range or TextRange was found"),!1;M.removeAllRanges=function(){try{var e,t;this.docSelection.empty(),"None"!=this.docSelection.type&&(this.anchorNode?e=l.getDocument(this.anchorNode):this.docSelection.type!=d||(t=this.docSelection.createRange()).length&&(e=l.getDocument(t.item(0)).body.createTextRange()),e&&(e.body.createTextRange().select(),this.docSelection.empty()))}catch(e){}S(this)},M.addRange=function(e){this.docSelection.type==d?A(this,e):(n.rangeToTextRange(e).select(),this._ranges[0]=e,this.rangeCount=1,this.isCollapsed=this._ranges[0].collapsed,C(this,e,!1))},M.setRanges=function(e){this.removeAllRanges();var t=e.length;1<t?P(this,e):t&&this.addRange(e[0])}}if(M.getRangeAt=function(e){if(e<0||e>=this.rangeCount)throw new c("INDEX_SIZE_ERR");return this._ranges[e]},m)R=function(e){var t;r.isSelectionValid(e.win)?t=e.docSelection.createRange():(t=l.getBody(e.win.document).createTextRange()).collapse(!0),e.docSelection.type==d?N(e):Q(t)?D(e,t):S(e)};else if(t.isHostMethod(_,"getRangeAt")&&"number"==typeof _.rangeCount)R=function(e){if(x&&f&&e.docSelection.type==d)N(e);else if(e._ranges.length=e.rangeCount=e.nativeSelection?e.nativeSelection.rangeCount:0,e.rangeCount){for(var t=0,n=e.rangeCount;t<n;++t)e._ranges[t]=new r.WrappedRange(e.nativeSelection.getRangeAt(t));C(e,e._ranges[e.rangeCount-1],q(e.nativeSelection)),e.isCollapsed=i(e)}else S(e)};else{if(!v||"boolean"!=typeof _.isCollapsed||"boolean"!=typeof g.collapsed||!r.features.implementsDomRange)return e.fail("No means of obtaining a Range or TextRange from the user's selection was found"),!1;R=function(e){var t,n=e.nativeSelection;n.anchorNode?(t=k(n,0),e._ranges=[t],e.rangeCount=1,t=(n=e).nativeSelection,n.anchorNode=t.anchorNode,n.anchorOffset=t.anchorOffset,n.focusNode=t.focusNode,n.focusOffset=t.focusOffset,e.isCollapsed=i(e)):S(e)}}M.refresh=function(e){var t=e?this._ranges.slice(0):null;if(R(this),e){var n=t.length;if(n!=this._ranges.length)return!1;for(;n--;)if(!s.rangesEqual(t[n],this._ranges[n]))return!1;return!0}};function L(e,t){var n=e.getAllRanges(),i=!1;e.removeAllRanges();for(var a=0,r=n.length;a<r;++a)i||t!==n[a]?e.addRange(n[a]):i=!0;e.rangeCount||S(e)}var q;function z(e,t){if(e.anchorNode&&l.getDocument(e.anchorNode)!==l.getDocument(t))throw new c("WRONG_DOCUMENT_ERR")}function F(e){var t=[],n=new u(e.anchorNode,e.anchorOffset),i=new u(e.focusNode,e.focusOffset),a="function"==typeof e.getName?e.getName():"Selection";if(void 0!==e.rangeCount)for(var r=0,o=e.rangeCount;r<o;++r)t[r]=s.inspect(e.getRangeAt(r));return"["+a+"(Ranges: "+t.join(", ")+")(anchor: "+n.inspect()+", focus: "+i.inspect()+"]"}M.removeRange=x?function(e){if(this.docSelection.type==d){for(var t=this.docSelection.createRange(),n=E(e),i=l.getDocument(t.item(0)),a=l.getBody(i).createControlRange(),r=!1,o=0,s=t.length;o<s;++o)t.item(o)!==n||r?a.add(t.item(o)):r=!0;a.select(),N(this)}else L(this,e)}:function(e){L(this,e)},!m&&v&&r.features.implementsDomRange?(q=function(e){var t=!1;return t=e.anchorNode?1==l.comparePoints(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset):t},M.isBackwards=function(){return q(this)}):q=M.isBackwards=function(){return!1},M.toString=function(){for(var e=[],t=0,n=this.rangeCount;t<n;++t)e[t]=""+this._ranges[t];return e.join("")},M.collapse=function(e,t){z(this,e);var n=r.createRange(l.getDocument(e));n.collapseToPoint(e,t),this.removeAllRanges(),this.addRange(n),this.isCollapsed=!0},M.collapseToStart=function(){if(!this.rangeCount)throw new c("INVALID_STATE_ERR");var e=this._ranges[0];this.collapse(e.startContainer,e.startOffset)},M.collapseToEnd=function(){if(!this.rangeCount)throw new c("INVALID_STATE_ERR");var e=this._ranges[this.rangeCount-1];this.collapse(e.endContainer,e.endOffset)},M.selectAllChildren=function(e){z(this,e);var t=r.createRange(l.getDocument(e));t.selectNodeContents(e),this.removeAllRanges(),this.addRange(t)},M.deleteFromDocument=function(){if(x&&f&&this.docSelection.type==d){for(var e,t=this.docSelection.createRange();t.length;)e=t.item(0),t.remove(e),e.parentNode.removeChild(e);this.refresh()}else if(this.rangeCount){var n=this.getAllRanges();this.removeAllRanges();for(var i=0,a=n.length;i<a;++i)n[i].deleteContents();this.addRange(n[a-1])}},M.getAllRanges=function(){return this._ranges.slice(0)},M.setSingleRange=function(e){this.setRanges([e])},M.containsNode=function(e,t){for(var n=0,i=this._ranges.length;n<i;++n)if(this._ranges[n].containsNode(e,t))return!0;return!1},M.toHtml=function(){var e="";if(this.rangeCount){for(var t=s.getRangeDocument(this._ranges[0]).createElement("div"),n=0,i=this._ranges.length;n<i;++n)t.appendChild(this._ranges[n].cloneContents());e=t.innerHTML}return e},M.getName=function(){return"WrappedSelection"},M.inspect=function(){return F(this)},M.detach=function(){this.win[o]=null,this.win=this.anchorNode=this.focusNode=null},I.inspect=F,r.Selection=I,r.selectionPrototype=M,r.addCreateMissingNativeApiListener(function(e){void 0===e.getSelection&&(e.getSelection=function(){return r.getSelection(this)})})});var Base=function(){},ilnTimeoutHandle;function isNumeric(e){return!isNaN(e)&&!/^0x/i.test(e)&&isFinite(e)}function isInt(e){return!isNaN(e)&&(0|(e=parseFloat(e)))===e}function clickAndDisable(e){e.onclick=function(e){e.preventDefault(),jQuery(this).addClass("disabled")}}function is_valid_url(e){try{return new URL(e),!0}catch{return!1}}function linkify(e){if(!e)return e;return e.replace(/(https?:\/\/[^\s]+)/g,'<a href="$1" target="_blank">$1</a>')}function getUrlParameter(e){for(var t,n=decodeURIComponent(window.location.search.substring(1)).split("&"),i=0;i<n.length;i++)if((t=n[i].split("="))[0]===e)return void 0===t[1]||t[1]}function getParameterFromGivenURL(e,t){return(RegExp(t+"=(.+?)(&|$)").exec(e)||[,null])[1]}function getUrlVars(){var e,t="",n=window.location.href.split("#")[0].slice(window.location.href.indexOf("?")+1).split("&");if(void 0!==n){for(var i=0;i<n.length;i++)"site_currency"==(e=n[i].split("="))[0]&&(t="site_currency="+e[1]);n=n.join("&")}else n="";return loc=n.replace(t,""),loc=loc.replace(wpj_vars.site_URL,""),loc+="&",loc=loc.replace("&&","&"),loc}function getSafeDateFormat(e,t){var n=(e=new Date(e)).getFullYear(),i=e.getMonth()<10?"0".concat(parseInt(e.getMonth())+parseInt(1)):parseInt(e.getMonth())+parseInt(1),i=n+"-"+(e.getDate()<10?"0".concat(e.getDate()):e.getDate())+"-"+i;return"datetime"==t?i=i+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds():"time"==t&&(i=e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()),i}function inIframe(){try{return window.self!==window.top}catch(e){return!0}}function isMobile(){var e=!1;return e=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))?!0:e}function getIOSversion(){if(/iP(hone|od|ad)/.test(navigator.platform)){var e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||0,10)]}return!1}function getExchangeValue(e,n,i){n=n.toUpperCase(),i=i.toUpperCase();n=n.trim(),i=i.trim();var a,r,t=null;return jQuery.ajax({async:!1,url:wpj_vars.ajaxurl,data:{action:"exchange_rates_action"},dataType:"json",success:function(e){t=e}}),!!t&&(jQuery.each(t.rates,function(e,t){e==n&&(a=t),e==i&&(r=t)}),!a||!r||n==i?e:(e="USD"!=n?e/a:e,ret="USD"!=i?Math.round(r*e,2):Math.round(e,2),ret))}function playSound(e,t,n){var i;"Audio"in window&&((i=new Audio).canPlayType&&i.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/,"")?i.src=e:(!i.canPlayType||!i.canPlayType("audio/mpeg;").replace(/no/,""))&&i.canPlayType&&i.canPlayType('audio/mp4; codecs="mp4a.40.2"').replace(/no/,"")?i.src=n:i.src=t,i.autoplay=!0)}function validateInputContent(e){return e&&e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function sanitizeTitle(e){return!!e&&encodeURIComponent(e)}function generateNumber(e){e=void 0===e?[]:e;var t=Math.floor(10*Math.random());return-1===jQuery.inArray(t,e)?t:generateNumber()}function addLoader(e){jQuery(e).prepend('<div class="ui active inverted dimmer"><div class="ui loader"></div></div>')}function refreshContent(i,a){wpj_vars.live_notify?jQuery(i).load(" "+i+" > *",function(e,t,n){jQuery(".ui.active.inverted.dimmer").remove(),"function"==typeof jQuery.fn.wpjSemanticInit&&jQuery.fn.wpjSemanticInit(),"function"==typeof wpj_display_load_more_button&&wpj_display_load_more_button(),".profile-main-content.user-portfolio-wrapper"==i&&(jQuery.fn.wpjDropzoneUploaderInit(),wpj_initialize_portfolio_carousel()),".info-widget.user-certification-wrapper"==i&&wpj_hide_up_certification_not_expire(),".user-skills-wrapper"!=i&&".info-widget.user-education-wrapper"!=i||jQuery.fn.wpjUploadifiveUploaderInit(),".order-timer-wrapper"==i&&(jQuery("#wpj-front-scripts-js-extra")[0]&&jQuery(e).find("#wpj-front-scripts-js-extra")[0]&&jQuery("#wpj-front-scripts-js-extra").replaceWith(jQuery(e).find("#wpj-front-scripts-js-extra")[0].outerHTML),jQuery.fn.wpjFlipTimerInit()),"#order-feedback-form-wrapper"==i&&jQuery(".wpj-review-work-sample")&&wpj_initialize_wpj_carousel(!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl)),".thread-list-wrapper"!=i&&".pm-list"!=i||wpj_init_attachments_gallery(),".kt-tabs-content-wrap"==i&&wpj_reinit_kadence_tabs(),".header-wrapper.header-pc"==i&&wpj_init_search_autocomplete_elements(),"function"==typeof initLiveNotifications&&initLiveNotifications(),"function"==typeof a?a():"function"==typeof window[a]&&window[a]()}):location.reload()}function removeCommaString(e,t){e=e.split(","),t=e.indexOf(t);return e.splice(t,1),e.join(",")}function copyString(e){var t=jQuery("<input>");jQuery("body").append(t),t.val(jQuery(e).text()).select(),document.execCommand ("copy"),t.remove()}function wpj_validate_cf_fields(n,e){return(jQuery(".page-id-"+wpj_vars.new_request_page_id)[0]||jQuery(".page-id-"+wpj_vars.new_job_page_id)[0])&&jQuery(".cf-required").each(function(){var e=jQuery(this).attr("name"),t="checkbox"==jQuery(this).attr("type")||"radio"==jQuery(this).attr("type")?"checked":"empty";n[[e]]={identifier:e,rules:[{type:t,prompt:jQuery(this).attr("data-validation-message")}]}}),n}function wpj_init_dropzone_images_uploader(e,t,i){var a,n;jQuery("#"+i)[0]&&(a=jQuery("#"+i).attr("data-media-type"),jQuery("#"+i).attr("data-maxnrofpictures")[0]&&jQuery("#"+i+" .dz-preview.dz-image-preview.dz-complete").length>=jQuery("#"+i).attr("data-maxnrofpictures")&&jQuery("#"+i).addClass("max-nr-of-pictures"),n=1==wpj_vars.allow_video_portfolio?"image/*, video/*":"image/*",new Dropzone("#"+i,{url:wpj_vars.theme_path+"/lib/uploaders/dropzone.php",maxFiles:e,maxFilesize:t,acceptedFiles:n,addRemoveLinks:!1,thumbnailWidth:"cover"==a?980:150,thumbnailHeight:"cover"==a?180:150,clickable:Hooks.apply_filters("wpj_dropzone_clickable_classes_filter",["#"+i]),dictDefaultMessage:"",dictFallbackMessage:wpj_vars.dictFallbackMessage,dictFallbackText:wpj_vars.dictFallbackText,dictFileTooBig:wpj_vars.dictFileTooBig,dictInvalidFileType:wpj_vars.dictInvalidFileType,dictResponseError:wpj_vars.dictResponseError,dictCancelUpload:wpj_vars.dictCancelUpload,dictCancelUploadConfirmation:wpj_vars.dictCancelUploadConfirmation,dictRemoveFile:wpj_vars.dictRemoveFile,dictRemoveFileConfirmation:null,dictMaxFilesExceeded:wpj_vars.dictMaxFilesExceeded,accept:function(e,t){t()},init:function(){this.on("addedfile",function(){"cover"==a&&null!=this.files[1]&&this.removeFile(this.files[0])}),this.on("sending",function(e,t,n){n.append("pid",jQuery("#"+i).attr("data-pid")),n.append("uploader_purpose",a),jQuery("#"+i).attr("data-maxnrofpictures")[0]&&jQuery("#"+i+" .dz-preview.dz-image-preview.dz-complete").length>=jQuery("#"+i).attr("data-maxnrofpictures")&&jQuery("#"+i).addClass("max-nr-of-pictures")}),this.on("success",function(e,t){!1!==(t=jQuery.parseJSON(t)).error?(jQuery(e.previewElement).removeClass("dz-success"),jQuery(e.previewElement).addClass("dz-error"),jQuery(e.previewElement).find(".dz-error-message > span").append(t.error)):(jQuery(e.previewElement).attr("data-id",t.id),jQuery(e.previewElement).attr("id",t.id),jQuery(e.previewElement).attr("data-url",t.full_url),jQuery(e.previewElement).attr("data-url-thumb",t.thumb_url)),jQuery(e.previewElement).addClass("file-wrapper"),0!==t.id?jQuery(e.previewElement).append('<a data-attachment-id="'+t.id+'" data-media-type="'+a+'" class="js-delete-file delete-file delete-image cursor-pointer"><i class="x icon"></i></a>'):jQuery(e.previewElement).append('<a href="javascript: void(0);" onclick="jQuery(this).parents(\'.dz-image-wrapper\').remove();" class="js-delete-file delete-file delete-image cursor-pointer"><i class="x icon"></i></a>'),jQuery(e.previewElement).wrap('<div class="dz-image-wrapper"></div>')}),this.on("error",function(e,t,n){jQuery(e.previewElement).append('<a data-media-type="'+a+'" class="js-delete-file delete-file delete-image cursor-pointer"><i class="x icon"></i></a>'),jQuery(e.previewElement).addClass("file-wrapper")}),this.on("complete",function(e,t,n){jQuery("#"+i).attr("data-maxnrofpictures")[0]&&(jQuery("#"+i+" .dz-preview.dz-image-preview.dz-complete").length>=jQuery("#"+i).attr("data-maxnrofpictures")?jQuery("#"+i).addClass("max-nr-of-pictures"):jQuery("#"+i).removeClass("max-nr-of-pictures"))})}}))}function wpj_display_dropzone_upload_box(e,t){(t=("cover"==t?jQuery(".images-uploader-wrapper"):jQuery(".cover-uploader-wrapper")).attr("id"))&&jQuery("#"+t).attr("data-maxnrofpictures")[0]&&jQuery("#"+t+" .dz-preview.dz-image-preview.dz-complete").length<=jQuery("#"+t).attr("data-maxnrofpictures")&&jQuery("#"+t).removeClass("max-nr-of-pictures")}function wpj_init_html5_images_uploader(t){jQuery("."+t)[0]&&(jQuery.html5fileupload.defaults={showErrors:!0,url:null,downloadUrl:null,removeUrl:null,removeDone:!1,removeDoneDelay:1200,file:null,edit:!0,randomName:!1,randomNameLength:8,form:!1,data:{ID:jQuery("."+t).attr("data-pid"),author:jQuery("."+t).attr("data-uid"),source:t},ajax:!0,ajaxType:"POST",ajaxDataType:"json",ajaxHeaders:{},multiple:"cover"!=t,validExtensions:null,validMime:null,labelInvalid:null,autostart:!1,minFilesize:0,maxFilesize:2048e3,labelMinFilesize:null,labelMaxFilesize:null,regexp:/^[^\\/:\*\?"<>\|]+$/},jQuery(".html5fileupload."+t).html5fileupload({onAfterStartSuccess:function(e){e.error?(jQuery("."+t).notify(e.error,{position:"top",className:"error"}),jQuery("."+t).find('input[type="file"]').show()):(jQuery("."+t).parents(".html5fileupload-wrapper").find(".html5fileupload-images-wrapper")[0]||jQuery("."+t).parents(".html5fileupload-wrapper."+t+"-uploader-wrapper").prepend('<div class="html5fileupload-images-wrapper cf"></div>'),e='\t\t\t\t\t\t<div class="file-wrapper pr">\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img class="no-border" src="'+e.go+'" />\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a data-attachment-id="'+e.attach_id+'" data-media-type="'+t+'" class="js-delete-file delete-file delete-image cursor-pointer"><i class="x icon"></i></a>\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t',jQuery("."+t).parents(".html5fileupload-wrapper").find(".html5fileupload-images-wrapper").append(e))}}))}function wpj_sort_image_files(){jQuery(".images-wrapper")[0]&&(jQuery(".images-wrapper").sortable({connectWith:".images-wrapper",start:function(e,t){},change:function(e,t){},update:function(e,t){var n=jQuery(".images-wrapper").sortable("toArray",{attribute:"data-id"});jQuery("#images_order").val(n),jQuery.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"sort_attachment_action",images_order:n,pid:jQuery(".images-wrapper").attr("data-pid")},success:function(e){}})}}),jQuery(".images-wrapper div").disableSelection())}function wpj_init_upload_form(e,t,i,n,a){jQuery("#uploadifive-"+t)[0]||jQuery("#"+t).uploadifive({auto:!0,multi:!0,height:"auto",width:"auto",uploadScript:wpj_vars.theme_path+"/lib/uploaders/uploadifive.php",formData:{author:wpj_vars.uid,secure:1,unique_name:n,source:n},uploadLimit:10,fileSizeLimit:wpj_vars.attachment_filesize_max,buttonText:void 0!==a?a:wpj_vars.select_file,onProgress:function(){jQuery("input[type=submit]").prop("disabled",!0),jQuery(".files-attachments-wrapper")[0]&&!jQuery(".files-attachments-wrapper").hasClass("mb20")&&jQuery(".files-attachments-wrapper").addClass("mb20")},onError:function(e){"FILE_SIZE_LIMIT_EXCEEDED"==e?jQuery("#uploadifive-"+t).notify(wpj_vars.attachments_max_size_err,{position:"top center",className:"error"}):jQuery("#uploadifive-"+t).notify(e,{position:"top center",className:"error"}),jQuery("input[type=submit]").prop("disabled",!1)},onUploadComplete:function(e,n,t){n=jQuery.parseJSON(n);jQuery(".filename:contains("+e.name+")").parent().parent().attr("data-id",n.id),jQuery("input[name="+i+"]").val(function(e,t){return t+(t?",":"")+n.id}),jQuery("input[type=submit]").prop("disabled",!1),jQuery("button").removeClass("div-disabled"),jQuery(".files-attachments-wrapper")[0]&&!jQuery(".files-attachments-wrapper").hasClass("mb20")&&jQuery(".files-attachments-wrapper").addClass("mb20")},onCancel:function(e){e=jQuery(".filename:contains("+e.name+")").parent().parent().attr("data-id");jQuery("input[name="+i+"]").val(removeCommaString(jQuery("input[name="+i+"]").val(),e)),jQuery(".files-attachments-wrapper")[0]&&jQuery(".files-attachments-wrapper").hasClass("mb20")&&jQuery(".files-attachments-wrapper").removeClass("mb20")}})}function wpj_init_media_upload_form(i){var e="banner"==i?1170:150,t="banner"==i?215:150,n="audio"==i?"*.mp3;*.wav;":"*.jpg;*.jpeg;*.gif;*.png",a="audio"==i?"audio/mp3,audio/wav":"image/*",r=new URL(window.location.toLocaleString()).searchParams.get("jobid");null===r&&(r=decodeURIComponent(getParameterFromGivenURL(wpj_vars.url_params,"jobid"))),jQuery("#file_upload_"+i).uploadifive({auto:!0,multi:!1,uploadScript:wpj_vars.theme_path+"/lib/uploaders/uploadifive.php",fileTypeExts:n,formData:{pid:r,author:wpj_vars.uid,width:e,height:t,source:i,secure:1},fileType:a,fileSizeLimit:wpj_vars[i+"_filesize_max"],onProgress:function(){jQuery("."+i+"-uploader-wrapper").find(".js-new-file-wrapper").addClass("loading uploading")},onError:function(e){"FILE_SIZE_LIMIT_EXCEEDED"==e?jQuery("."+i+"-uploader-wrapper").parent().notify(wpj_vars[i+"_filesize_msg"],{position:"top center",className:"error"}):"FORBIDDEN_FILE_TYPE"==e?jQuery("."+i+"-uploader-wrapper").parent().notify(wpj_vars.user_filetype_msg,{position:"top center",className:"error"}):jQuery("."+i+"-uploader-wrapper").parent().notify(e,{position:"top center",className:"error"}),jQuery("."+i+"-uploader-wrapper").find(".js-new-file-wrapper").removeClass("loading uploading")},onUploadComplete:function(e,t,n){"ok"==(t=jQuery.parseJSON(t)).status?("banner"==i&&(jQuery(".user-profile-cover-row-wrapper").hasClass("js-user-has-cover")||jQuery(".user-profile-cover-row-wrapper").addClass("user-has-cover js-user-has-cover"),jQuery("#banner").addClass("ub-cover-photo").css({"background-image":"url("+t.file_url+")"}),jQuery(".js-add-user-cover-button").hide(),jQuery(".js-delete-user-cover-button").attr("data-attachment-id",t.id).show()),"avatar"==i&&(jQuery(".avatar-image-wrapper").find("img").attr("src",t.file_url),jQuery(".user-info-menu").find(".ui.avatar.image").attr("src",t.file_url)),"audio"==i&&(jQuery(".audio-wrapper").append('\t\t\t\t\t\t<div class="file-wrapper audio-file-wrapper" id="'+t.id+'" data-audio-id="'+t.id+'">\t\t\t\t\t\t\t<p>'+t.file_name+'</p>\t\t\t\t\t\t\t<a data-attachment-id="'+t.id+'" data-media-type="audio" class="js-delete-file delete-file delete-audio cursor-pointer"><i class="x icon"></i></a>\t\t\t\t\t\t</div>\t\t\t\t\t'),jQuery(".audio-file-wrapper").length>=jQuery(".audio-uploader-wrapper").attr("data-maxnrofpictures")&&jQuery(".audio-new-file-wrapper").hide()),"skill"==i&&(jQuery(".skill-image-wrapper").find(".icon").remove(),jQuery(".skill-image-wrapper").css("background-image","url("+t.file_url+")").attr("data-id",t.id))):"size"==t.status?jQuery("."+i+"-uploader-wrapper").parent().notify(wpj_vars.user_filesize_min_msg,{position:"top center",className:"error"}):"extension"==t.status?jQuery("."+i+"-uploader-wrapper").parent().notify(wpj_vars.user_filetype_msg,{position:"top center",className:"error"}):jQuery("."+i+"-uploader-wrapper").parent().notify(wpj_vars.err,{position:"top center",className:"error"}),jQuery("."+i+"-uploader-wrapper").find(".js-new-file-wrapper").removeClass("loading uploading")}})}function wpj_display_uploadifive_audio_upload_box(e,t){jQuery(".audio-file-wrapper").length>=jQuery(".audio-uploader-wrapper").attr("data-maxnrofpictures")?jQuery(".audio-new-file-wrapper").hide():jQuery(".audio-new-file-wrapper").show()}function wpj_initialize_theme_scripts(){"function"==typeof jQuery.fn.wpjSemanticInit&&jQuery.fn.wpjSemanticInit(),"function"==typeof jQuery.fn.wpjCalendarInit&&jQuery.fn.wpjCalendarInit(),"function"==typeof jQuery.fn.wpjTagsInit&&jQuery.fn.wpjTagsInit(),"function"==typeof jQuery.fn.pageLoadToolTipInit&&jQuery.fn.pageLoadToolTipInit(),"function"==typeof jQuery.fn.wpjTabsToDropdownInit&&jQuery.fn.wpjTabsToDropdownInit(),"function"==typeof jQuery.fn.wpjPBTabsToDropdownInit&&jQuery.fn.wpjPBTabsToDropdownInit(),"function"==typeof jQuery.fn.wpjToggleArrowInit&&jQuery.fn.wpjToggleArrowInit(),"function"==typeof jQuery.fn.wpjNumberFormatInit&&jQuery.fn.wpjNumberFormatInit(),"function"==typeof jQuery.fn.wpjRangeSliderInit&&jQuery.fn.wpjRangeSliderInit(),"function"==typeof jQuery.fn.wpjNoHrefInit&&jQuery.fn.wpjNoHrefInit(),"function"==typeof jQuery.fn.wpjFlipTimerInit&&jQuery.fn.wpjFlipTimerInit(),"function"==typeof jQuery.fn.wpjAudioFileInit&&jQuery.fn.wpjAudioFileInit(),"function"==typeof jQuery.fn.wpjPhoneNumberInit&&jQuery.fn.wpjPhoneNumberInit(),"function"==typeof jQuery.fn.wpjJobMapDisplayInit&&jQuery.fn.wpjJobMapDisplayInit(),"function"==typeof jQuery.fn.wpjJobMapOverviewDisplayInit&&jQuery.fn.wpjJobMapOverviewDisplayInit(),"function"==typeof jQuery.fn.wpjWYSIWYGInit&&jQuery.fn.wpjWYSIWYGInit(),"function"==typeof jQuery.fn.wpjDropzoneUploaderInit&&jQuery.fn.wpjDropzoneUploaderInit(),"function"==typeof jQuery.fn.wpjHTML5UploaderInit&&jQuery.fn.wpjHTML5UploaderInit(),"function"==typeof jQuery.fn.wpjUploadifiveUploaderInit&&jQuery.fn.wpjUploadifiveUploaderInit(),wpj_set_site_viewport(),wpj_init_change_triggers(),wpj_init_inputs_counter(),wpj_add_margin_bottom_to_legend(),"function"==typeof jQuery.fn.wpjLazyLoadImagesInit&&jQuery.fn.wpjLazyLoadImagesInit(),wpj_change_first_menu_item_alignment(),wpj_change_main_menu_alignment_by_height(),wpj_display_header_user_info(),wpj_init_attachments_gallery(),wpj_init_emojis(),wpj_init_charts(),wpj_init_carousels(),wpj_init_work_sample(),wpj_sort_image_files(),wpj_display_fully_visible_subcategoires(),wpj_init_post_new_steps(),wpj_load_job_extras(),wpj_update_purchase_price(),wpj_show_sellers_projects_carousel(),wpj_init_social_share_vertical_panel(),wpj_load_package_custom_fields(),wpj_hide_disabled_post_new_fields(),wpj_hide_disabled_page_builder_post_new_fields(),wpj_init_user_profile_tooltips(),wpj_hide_up_certification_not_expire(),wpj_add_user_cover_class(),wpj_change_authentication_page_data(),wpj_add_password_visibility_icon_to_login_form(),wpj_hide_admin_bar_on_pm_page(),wpj_focus_pm_input(),wpj_send_message_with_enter(),wpj_move_conversation_top_by_url(),wpj_disable_deleted_user_sections(),wpj_set_pm_page_height(),wpj_display_chat_sidebar(),wpj_init_send_custom_offer_page_builder_modal(),wpj_vars.live_notify&&wpj_vars.is_user_logged_in&&initLiveNotifications(),wpj_check_notifications("all-email-notify","email_notifications"),wpj_check_notifications("all-sms-notify","sms_notifications"),jQuery(".js-resend-sms-code")[0]&&jQuery(".js-resend-sms-code").trigger("click"),1==wpj_vars.html5_geolocation&&(wpj_geolocation_autofill(),wpj_geolocation_get()),"tomtom"==wpj_vars.locations_api&&jQuery.fn.wpjTomTomMapsInit(),wpj_init_order_click_actions(),wpj_scroll_to_last_order_box(),wpj_add_form_element(),wpj_show_contact_or_feature_button(),wpj_display_load_more_button(),wpj_init_load_more_automatically(),wpj_init_load_more_messages(),setTimeout(function(){wpj_init_after_page_load()},1e3),setTimeout(function(){wpj_init_tinymce_textarea_character_count()},3e3),wpj_init_on_resize(),wpj_init_on_scroll(),Hooks.do_action("wpj_after_page_load_without_refresh")}function wpj_init_after_page_load(){wpj_init_tinymce_textarea_character_count(),wpj_display_video_poster(),wpj_change_kadence_active_tab(),wpj_init_quick_responses(),wpj_vars.locations_api_key&&"google"==wpj_vars.locations_api&&"undefined"!=typeof google&&jQuery.fn.wpjGoogleMapsInit()}function wpj_init_change_triggers(){jQuery(".js-lets-meet-trigger")[0]&&jQuery(".js-lets-meet-trigger").trigger("change"),jQuery(".page-id-"+wpj_vars.new_job_page_id)[0]&&(jQuery("#max_days")[0]&&jQuery("#max_days").trigger("change"),jQuery('select[name="price_type"]')[0]&&jQuery('select[name="price_type"]').trigger("change"),jQuery('select[name="job_cat"]')[0]&&jQuery('select[name="job_cat"]').trigger("change"))}function wpj_audio_js_player_init(e,t,n){jQuery("#jquery_jplayer_"+e)[0]&&jQuery("#jquery_jplayer_"+e).jPlayer({ready:function(){jQuery(this).jPlayer("setMedia",{title:n,mp3:t,wav:t})},play:function(){jQuery(this).jPlayer("pauseOthers")},swfPath:"../../js",supplied:"mp3, wav",cssSelectorAncestor:"#jp_container_"+e,wmode:"window",globalVolume:!0,useStateClassSkin:!0,autoBlur:!1,smoothPlayBar:!0,keyEnabled:!0})}function wpj_init_calendar_input(a,e,t,n){var i=new Date;t=t||"date",n=n||"false";var r=a.find("input").val(),o=getSafeDateFormat(1e3*r,t);r&&a.find("input").val(o);o=a.find("input").attr("name");o.includes("-old")||(a.find("input").attr("name",o+"-old"),(s=jQuery('<input type="hidden" name="'+o+'" value="'+r+'" />')).insertAfter(a));var s,i="vacation"==e?new Date(i.getFullYear(),i.getMonth(),i.getDate()):null;return a.calendar({type:t,ampm:"true"==n,firstDayOfWeek:parseInt(wpj_vars.starting_day),minDate:i,popupOptions:{position:isMobile()?"bottom left":"top left",lastResort:"bottom left"},text:{days:[wpj_vars.days.sun,wpj_vars.days.mon,wpj_vars.days.tue,wpj_vars.days.wed,wpj_vars.days.thu,wpj_vars.days.fri,wpj_vars.days.sat],months:[wpj_vars.months.jan,wpj_vars.months.feb,wpj_vars.months.mar,wpj_vars.months.apr,wpj_vars.months.may,wpj_vars.months.jun,wpj_vars.months.jul,wpj_vars.months.aug,wpj_vars.months.sep,wpj_vars.months.oct,wpj_vars.months.nov,wpj_vars.months.dec],monthsShort:[wpj_vars.monthsShort.jan,wpj_vars.monthsShort.feb,wpj_vars.monthsShort.mar,wpj_vars.monthsShort.apr,wpj_vars.monthsShort.may,wpj_vars.monthsShort.jun,wpj_vars.monthsShort.jul,wpj_vars.monthsShort.aug,wpj_vars.monthsShort.sep,wpj_vars.monthsShort.oct,wpj_vars.monthsShort.nov,wpj_vars.monthsShort.dec],today:wpj_vars.today,now:wpj_vars.now,am:wpj_vars.am,pm:wpj_vars.pm},monthFirst:!1,onChange:function(e,t,n){var i="";e&&(i=Math.floor(e.getTime()/1e3)),a.find("input").attr("data-timestamp",i),a.next("input[type=hidden]").attr("data-timestamp",i),a.next("input[type=hidden]").val(i)}}),(s=void 0===s?jQuery('input[name="'+o+'"]'):s).attr("data-timestamp",r),r&&s.val(r),this}function wpj_init_inputs_counter(){jQuery(".charlimit-request-title")[0]&&jQuery(".charlimit-request-title").counted({count:wpj_vars.characters_request_title_max}),jQuery(".charlimit-request-description")[0]&&jQuery(".charlimit-request-description").counted({count:wpj_vars.characters_request_desc_max}),jQuery(".charlimit-message")[0]&&jQuery(".charlimit-message").counted({count:wpj_vars.characters_pm_max}),jQuery(".charlimit-jobtitle")[0]&&jQuery(".charlimit-jobtitle").counted({count:wpj_vars.characters_job_title_max}),jQuery(".charlimit-jobdescription")[0]&&jQuery(".charlimit-jobdescription").counted({count:wpj_vars.characters_job_desc_max}),jQuery(".charlimit-jobinstruction")[0]&&jQuery(".charlimit-jobinstruction").counted({count:wpj_vars.characters_job_instr_max}),wpj_vars.enable_extra&&jQuery(".charlimit-extradescription-1")[0]&&jQuery(".charlimit-extradescription-1").counted({count:wpj_vars.characters_extradesc_max})}function wpj_init_carousels(){var e=!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl);wpj_initialize_news_carousel(e),wpj_initialize_jobs_slider_carousel(e),wpj_initialize_wpj_carousel(e),wpj_initialize_portfolio_carousel(e),wpj_initialize_home_carousel(e),wpj_initialize_photo_categories_carousel(e),wpj_initialize_jobs_images_carousel(e),wpj_initialize_category_icons_carousel(e),wpj_initialize_news_hero_slider(e),wpj_initialize_user_reviews_carousel(e)}function wpj_init_emojis(){wpj_pm_emoji_init(),wpj_chat_emoji_init(),wpj_transaction_emoji_init()}function wpj_init_charts(){jQuery(".js-user-chart-wrapper")[0]&&("undefined"!=typeof google&&void 0!==google.visualization||google.charts.load("current",{packages:["corechart"]}),google.charts.setOnLoadCallback(wpj_get_user_account_graph))}function wpj_init_wysiwyg_textarea(n,e,t,r,o){o=o||"job_description";var s,i,a;i=void 0!==r&&r?(s="package_description_"+r)+"_toolbar":(s=o)+"_toolbar",a=jQuery("body").hasClass("rtl")?[wpj_vars.theme_path+"/assets/css/front-rtl/wysiwyg-rtl.css"]:[wpj_vars.theme_path+"/assets/css/vendor/front/wysiwyg.css"];var l=new wysihtml5.Editor(s,{toolbar:i,autoLink:!1,parserRules:{classes:"any",classes_blacklist:{"Apple-interchange-newline":1,MsoNormal:1,MsoPlainText:1},tags:{strong:{rename_tag:"b"},b:{},i:{},em:{rename_tag:"i"},u:{},br:{},p:{},span:1,div:1,ul:{},ol:{},li:{},comment:{remove:1},style:{remove:1}}},stylesheets:a});l.on("load",function(){var i,a,e,t;void 0!==r&&r||(i=jQuery(this.composer.iframe),t=(a=jQuery(this.composer.element)).parent(),a.css({"min-height":"100px",height:"auto"}),t.css({height:"auto"}),e=a[0].scrollHeight,t=a.height(),t=Math.min(e,t),i.height(t),a.bind("keypress keyup keydown paste change focus blur",function(e){var t=a[0].scrollHeight,n=a.height(),n=Math.min(t,n);i.height(n)})),add_input_length_listener(l,jQuery("#"+s).siblings(".char-count"),n,"html"),jQuery("#"+o).parents("#job_description_field").removeClass("error"),jQuery("body").hasClass("wpj-is-ios")&&(0==jQuery("#"+s+"_iosblurfix").length&&jQuery("#"+s).after('<input id="'+s+'_iosblurfix" type="text" disabled="disabled" style="width: 0; height: 0; padding: 1px; border: 0; position: absolute; opacity: 0;">'),jQuery(document).mouseup(function(e){jQuery("#"+s).is(e.target)||0!==jQuery("#"+s).has(e.target).length||"INPUT"===e.target.tagName.toUpperCase()||"TEXTAREA"===e.target.tagName.toUpperCase()||jQuery("#"+s+"_iosblurfix").removeAttr("disabled").focus().blur().attr("disabled","disabled")}))}).on("focus",function(){jQuery("#"+o).parents(".job-description-wysiwyg").eq(0).addClass("has-focus"),jQuery("#"+o).parents(".input-block").eq(0).find("iframe").addClass("focus"),jQuery("#"+o).parents("#job_description_field").removeClass("error")}).on("blur",function(){jQuery("#"+o).parents(".job-description-wysiwyg").eq(0).removeClass("has-focus"),jQuery("#"+o).parents(".input-block").eq(0).find("iframe").removeClass("focus")}),l.observe("load",function(){})}function wpj_init_tinyMCE_textarea(e){jQuery(".tinyMCE-textarea-wrapper")[0]&&jQuery(e).find(".tinyMCE-textarea-wrapper")[0]&&(jQuery(".tinyMCE-textarea-wrapper").replaceWith(jQuery(e).find(".tinyMCE-textarea-wrapper")[0].outerHTML),jQuery(e).find(".wp-footer-scripts").find("script").each(function(){(jQuery(this).attr("src")||jQuery(this).attr("id"))&&"wp-tinymce-root-js"!=jQuery(this).attr("id")&&"wp-tinymce-js"!=jQuery(this).attr("id")&&"utils-js"!=jQuery(this).attr("id")||jQuery(jQuery(this)[0].outerHTML).appendTo(".wp-footer-scripts")}),setTimeout(function(){wpj_init_tinymce_textarea_character_count()},5e3))}function wpj_init_tinymce_textarea_character_count(){var t;jQuery("#job_description_ifr")[0]&&(t=get_input_length(jQuery("#job_description_ifr").contents().find("body"),"html"),jQuery("#chars_counter").text(t),jQuery("#job_description_ifr").contents().find("body").on("keyup input change paste",function(e){t=get_input_length(jQuery("#job_description_ifr").contents().find("body"),"html"),jQuery('textarea[name="job_description"]').val(tinyMCE.activeEditor.getContent()),jQuery("#chars_counter").text(t)}),jQuery('textarea[name="job_description"]').hasClass("rejected-input")&&jQuery("#job_description_ifr").parents("#wp-job_description-wrap").addClass("rejected-input"))}function wpj_change_authentication_page_data(){getUrlParameter("redirect_to")&&jQuery('input[name="redirect_to"]')[0]&&wpj_vars.blog_url+"/"!=getUrlParameter("redirect_to")&&jQuery('input[name="redirect_to"]').val(decodeURIComponent(getParameterFromGivenURL(wpj_vars.url_params,"redirect_to"))),jQuery("body").hasClass("rtl")&&jQuery(".cell_number")[0]&&jQuery(".cell_number").parent().addClass("iti-rtl"),jQuery('form[name="loginform"], .aiosc-window form[name="loginform"]').prepend('<h2 class="authentication-title">'+wpj_vars.login+"</h2>"),jQuery('form[name="registerform"]').prepend('<h2 class="authentication-title">'+wpj_vars.register+"</h2>"),jQuery('form[name="lostpasswordform"]').prepend('<h2 class="authentication-title">'+wpj_vars.forgot+"</h2>"),jQuery('form[name="resetpassform"]').prepend('<h2 class="authentication-title">'+wpj_vars.reset+"</h2>"),jQuery("#loginform").addClass("ui form js-login-form"),jQuery("#registerform").addClass("ui form js-register-form"),jQuery("#lostpasswordform").addClass("ui form js-lostpassword-form"),jQuery('#loginform input[type="submit"]').addClass("ui fluid primary-button"),jQuery('#registerform input[type="submit"]').addClass("ui fluid primary-button"),jQuery('#lostpasswordform input[type="submit"]').addClass("ui fluid primary-button"),jQuery('#loginform input[type="submit"]').attr("value",wpj_vars.continue),jQuery('#registerform input[type="submit"]').attr("value",wpj_vars.continue),jQuery('#lostpasswordform input[type="submit"]').attr("value",wpj_vars.continue),jQuery('#loginform input[name="log"]').attr("placeholder",wpj_vars.user_email),jQuery('#loginform input[name="user_login"]').attr("placeholder",wpj_vars.user_email),jQuery('#registerform input[name="user_login"]').attr("placeholder",wpj_vars.user_name),jQuery('#lostpasswordform input[name="user_login"]').attr("placeholder",wpj_vars.user_email),jQuery('#loginform input[name="user_email"]').attr("placeholder",wpj_vars.email),jQuery('#registerform input[name="user_email"]').attr("placeholder",wpj_vars.email),jQuery('#loginform input[name="pwd"]').attr("placeholder",wpj_vars.password),jQuery('#loginform input[name="user_confirm_password"]').attr("placeholder",wpj_vars.confirm_password),jQuery('#resetpassform input[name="pass1"]').attr("placeholder",wpj_vars.new_password),jQuery('#loginform input[name="cell_number"]').attr("placeholder",wpj_vars.phone_number),jQuery('#loginform input[name="user_company"]').attr("placeholder",wpj_vars.company),jQuery(".login-outer-wrapper").detach().appendTo(".js-login-form"),jQuery(".register-outer-wrapper").detach().appendTo(".js-register-form"),jQuery(".pw-weak > *").wrapAll('<div class="ui checkbox"></div>'),jQuery(".clear").remove()}function wpj_add_password_visibility_icon_to_login_form(){jQuery(".login-password").find(".js-toggle-password-visibility")[0]||jQuery(".login-password").addClass("pr").find('input[name="pwd"]').after('<i class="eye icon password-visibility js-toggle-password-visibility"></i>')}function wpj_display_header_user_info(){wpj_vars.is_user_logged_in&&jQuery.ajax({url:wpj_vars.ajaxurl,data:{action:"load_user_info_account_menu_action"},success:function(e){jQuery(".js-user-info-menu").each(function(){jQuery(this).replaceWith(e)})}})}function wpj_display_chat_sidebar(){wpj_vars.chat_enabled&&wpj_vars.is_user_logged_in&&jQuery.ajax({url:wpj_vars.ajaxurl,data:{action:"load_chat_system_action"},success:function(e){jQuery(".js-chat-sidebar").each(function(){jQuery(this).replaceWith(e),wpj_chat_set_sidebar_height(),wpj_chat_open_boxes_on_load(),wpj_chat_hide_sidebar_elements_minimalist(),wpj_init_chat_tooltips()})}})}function wpj_initialize_wpj_carousel(e){void 0===e&&(e=!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl)),jQuery(".wpj-carousel")[0]&&jQuery(".wpj-carousel").owlCarousel({rtl:e,loop:!1,margin:14,nav:!0,dots:!1,navText:['<i class="icon angle left">','<i class="icon angle right">'],lazyLoad:!0,video:!0,URLhashListener:!0,startPosition:"URLHash",responsive:{0:{items:1}},onTranslated:function(e){var t=e.item.index;jQuery(e.target).find(".owl-item").eq(t).find(".owl-video-wrapper").find("iframe").siblings(".owl-video-play-icon").remove(),jQuery(".image-gallery-slider-pager")[0]&&(jQuery(".image-gallery-slider-pager").find("a").removeClass("active"),jQuery(".image-gallery-slider-pager").find("a[href=#slide"+(t+1)+"]").addClass("active"))},onInitialized:function(e){jQuery(".image-gallery-slider-pager")[0]&&(e=e.relatedTarget.current(),jQuery(".image-gallery-slider-pager").find("a").removeClass("active"),jQuery(".image-gallery-slider-pager").find("a[href=#slide"+(e+1)+"]").addClass("active")),jQuery(".wpj-card-style-3").find(".card-image-clipper").siblings(".wpj-carousel")[0]&&jQuery(".wpj-card-style-3").find(".card-image-clipper").remove(),jQuery(".wpj-card-style-4").find(".card-image-clipper").siblings(".wpj-carousel")[0]&&jQuery(".wpj-card-style-4").find(".card-image-clipper").remove()}})}function wpj_initialize_news_carousel(e){void 0===e&&(e=!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl)),jQuery(".js-news-carousel")[0]&&jQuery(".js-news-carousel").owlCarousel({rtl:e,loop:!1,margin:10,nav:!0,dots:!1,navText:['<i class="icon angle left">','<i class="icon angle right">'],lazyLoad:!0,responsive:{0:{margin:10,items:Hooks.apply_filters("wpj_news_items_mobile_filter",1)},600:{items:Hooks.apply_filters("wpj_news_items_tablet_filter",2)},1200:{margin:40,items:Hooks.apply_filters("wpj_news_items_desktop_filter",3)}}})}function wpj_initialize_jobs_slider_carousel(e){void 0===e&&(e=!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl)),jQuery(".js-jobs-carousel")[0]&&jQuery(".js-jobs-carousel").owlCarousel({rtl:e,loop:!1,margin:16,nav:!0,lazyLoad:!0,dots:!1,navText:['<i class="icon angle left">','<i class="icon angle right">'],navClass:["nav-prev","nav-next"],responsive:{0:{items:Hooks.apply_filters("wpj_job_slider_items_mobile_filter",1)},480:{items:Hooks.apply_filters("wpj_job_slider_items_480_filter",2)},1200:{items:Hooks.apply_filters("wpj_job_slider_items_1024_filter",4)}}})}function wpj_initialize_portfolio_carousel(e){var t;void 0===e&&(e=!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl)),jQuery(".js-image-attachments-carousel")[0]&&((t=jQuery(".js-image-attachments-carousel")).owlCarousel({rtl:e,loop:!1,margin:30,nav:!0,dots:!1,lazyLoad:!0,navText:['<i class="icon angle left">','<i class="icon angle right">'],navClass:["nav-prev","nav-next"],video:!0,responsive:{0:{items:1},767:{items:3},1200:{items:3}},onInitialized:function(e){jQuery(".js-image-attachments-carousel").find("video")[0]&&jQuery(".js-image-attachments-carousel").find("video").height(jQuery(".js-image-attachments-carousel").find("img").first().height())}}),t.on("resized.owl.carousel",function(){jQuery(".js-image-attachments-carousel").find("video")[0]&&jQuery(".js-image-attachments-carousel").find("video").height(jQuery(".js-image-attachments-carousel").find("img").first().height())}))}function wpj_initialize_home_carousel(e){void 0===e&&(e=!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl)),jQuery(".js-wpj-home-hero-slider")[0]&&jQuery(".js-wpj-home-hero-slider").owlCarousel({rtl:e,loop:!0,margin:0,nav:!0,navText:['<i class="icon angle left">','<i class="icon angle right">'],dots:!1,video:!0,items:1,responsive:{0:{nav:!1},767:{nav:!0}},onTranslated:function(e){},onInitialized:function(e){}})}function wpj_initialize_photo_categories_carousel(e){void 0===e&&(e=!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl)),jQuery(".js-wpj-photo-categories-carousel")[0]&&jQuery(".js-wpj-photo-categories-carousel").owlCarousel({rtl:e,loop:!0,margin:25,nav:!0,dots:!1,lazyLoad:!0,navText:['<i class="icon angle left">','<i class="icon angle right">'],navClass:["nav-prev","nav-next"],responsive:{0:{items:1},767:{items:3},1280:{items:4},1400:{items:5}}})}function wpj_initialize_jobs_images_carousel(e){void 0===e&&(e=!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl)),jQuery(".js-wpj-jobs-images-carousel")[0]&&jQuery(".js-wpj-jobs-images-carousel").owlCarousel({rtl:e,loop:!1,margin:10,nav:!0,dots:!1,lazyLoad:!0,navText:['<i class="icon angle left">','<i class="icon angle right">'],navClass:["nav-prev","nav-next"],responsive:{0:{items:1,margin:10},767:{items:3},1400:{items:4,margin:30}}})}function wpj_initialize_category_icons_carousel(e){void 0===e&&(e=!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl)),jQuery(".js-carousel-content")[0]&&jQuery(".js-carousel-content").owlCarousel({rtl:e,loop:!0,margin:25,nav:!0,dots:!1,lazyLoad:!0,navText:['<i class="icon angle left">','<i class="icon angle right">'],navClass:["nav-prev","nav-next"],responsive:{0:{items:1},500:{items:2},768:{items:1},1024:{items:2},1300:{items:3}}})}function wpj_initialize_news_hero_slider(e){void 0===e&&(e=!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl)),jQuery(".js-news-hero-slider")[0]&&jQuery(".js-news-hero-slider").owlCarousel({rtl:e,loop:!0,margin:0,nav:!0,dots:!1,navText:['<i class="icon angle left">','<i class="icon angle right">'],lazyLoad:!0,items:1})}function wpj_initialize_user_reviews_carousel(e){void 0===e&&(e=!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl)),jQuery(".js-user-reviews-carousel")[0]&&jQuery(".js-user-reviews-carousel").owlCarousel({rtl:e,loop:!0,margin:0,nav:!0,dots:!1,navText:['<i class="icon angle left">','<i class="icon angle right">'],lazyLoad:!0,autoHeight:!0,items:1})}function wpj_display_fully_visible_subcategoires(){if(jQuery('.subcategory-listing[data-slider="1"]')[0]){let e=jQuery(".subcategory-listing ul"),t=e.children("li"),n=e.width(),i=0;t.each(function(){i+=jQuery(this).width(),i<=n?jQuery(this).css("display","block"):jQuery(this).css("display","none")}),i+10>=n?(jQuery('.subcategory-listing[data-slider="1"]').addClass("subcategory-listing-slider"),jQuery('.subcategory-listing[data-slider="1"]').find(".arrows-wrapper").show()):(jQuery('.subcategory-listing[data-slider="1"]').removeClass("subcategory-listing-slider"),jQuery('.subcategory-listing[data-slider="1"]').find(".arrows-wrapper").hide())}}function wpj_chat_calculate_popup_no(){var e=window.innerWidth;return total_popups=e<540?0:(e-=200,parseInt(e/300)),total_popups}function wpj_chat_display_boxes(e,t){for(var n,i=wpj_chat_calculate_popup_no(),a=(a=parseInt(jQuery(".chat-sidebar-container").outerWidth())+parseInt(jQuery(".chat-sidebar-container").css(wpj_vars.is_rtl?"left":"right"))+15)||(jQuery(".is-sidebar-minimalist")[0]?65:220),r=e.slice(-i),o=0;o<i;o++)null!=r[o]&&((n=jQuery('[rel="'+r[o]+'"]').prev(".message-box-container").find(".message-box-wrapper").width())&&0<o&&(a+=n+15),jQuery('[rel="'+r[o]+'"]').find(".message-box-wrapper").css(wpj_vars.is_rtl?"left":"right",a),jQuery('[rel="'+r[o]+'"]').show(),jQuery('[rel="'+r[o]+'"]').find(".message-box-input-content").focus());if(e.length>i)for(var s=e.slice(0,-i),l=0;l<s.length;l++)jQuery('[rel="'+s[l]+'"]').hide()}function wpj_chat_change_boxes_margin(e,n,i){e.parents(".message-box-container").nextAll(".message-box-container").each(function(){var e=jQuery(this).attr("rel"),t=jQuery('[rel="'+e+'"]').find(".message-box-wrapper").css(wpj_vars.is_rtl?"left":"right").replace(/[^-\d\.]/g,""),t="extend"==n?parseInt(t)+parseInt(i):parseInt(t)-parseInt(i);jQuery('[rel="'+e+'"]').find(".message-box-wrapper").css(wpj_vars.is_rtl?"left":"right",t)})}function wpj_chat_open_box(e,t){return!(1==wpj_vars.chat_enabled&&!isMobile()&&wpj_vars.is_user_logged_in&&768<=jQuery(window).width()&&!jQuery(".is-page-without-chat")[0]&&jQuery('.chat-sidebar-user-box[data-box-id="'+e+'"]')[0])||(jQuery(".messages-icon-dropdown").hide(),jQuery(".messages-icon").find(".unread-label").hide(),jQuery('.chat-sidebar-user-box[data-box-id="'+e+'"]').trigger("click"),!1)}function wpj_chat_search_user_sidebar(e){var t=validateInputContent(jQuery(e).val().toLowerCase());jQuery(".chat-sidebar-users-list > .chat-sidebar-user-box").each(function(){-1<jQuery(this).find(".user-name").text().toLowerCase().search(t)?jQuery(this).show():jQuery(this).hide()}),0==jQuery(".chat-sidebar-users-list > .chat-sidebar-user-box").children(":visible").length?jQuery(".chat-sidebar-notifications").show():jQuery(".chat-sidebar-notifications").hide(),"function"==typeof jQuery.fn.wpjLazyLoadRender&&jQuery.fn.wpjLazyLoadRender()}function wpj_chat_get_stored_active_boxes(e){return!!localStorage.getItem(e)&&JSON.parse(localStorage.getItem(e))}function wpj_chat_store_active_boxes(e,t){"minimized"==t||"removed"==t?(current_items=wpj_chat_get_stored_active_boxes("minimized_popups"),current_items?-1!=jQuery.inArray(e,current_items)&&current_items.splice(jQuery.inArray(e,current_items),1):current_items=[],"minimized"==t&&current_items.push(e),localStorage.setItem("minimized_popups",JSON.stringify(current_items))):(localStorage.removeItem("active_popups"),localStorage.setItem("active_popups",JSON.stringify(e)))}function wpj_chat_set_box_status_cookie(e){return e.is(":hidden")?(jQuery.cookie("sidebar","maximized",{expires:7,path:"/"}),"maximized"):(jQuery.cookie("sidebar","minimized",{expires:7,path:"/"}),"minimized")}function wpj_chat_animate_element(e){var t=!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl);jQuery(".is-sidebar-minimalist")[0]||("show"==e?1==t?(jQuery(".chat-sidebar-anchor-icon").animate({left:"206px"},300),jQuery("#main-wrapper").animate({"padding-left":"200px"},300)):(jQuery(".chat-sidebar-anchor-icon").animate({right:"206px"},300),jQuery("#main-wrapper").animate({"padding-right":"200px"},300)):"hide"==e&&(1==t?(jQuery(".chat-sidebar-anchor-icon").animate({left:"0"},300),jQuery("#main-wrapper").animate({"padding-left":"0"},300)):(jQuery(".chat-sidebar-anchor-icon").animate({right:"0"},300),jQuery("#main-wrapper").animate({"padding-right":"0"},300))))}function wpj_chat_set_sidebar_height(){jQuery("#wpadminbar")[0]&&jQuery(".chat-sidebar-users-list")[0]&&jQuery(".chat-sidebar-users-list").css("height","calc(100% - 30px)"),jQuery(".is-page-without-chat")[0]&&jQuery("#main-wrapper").removeAttr("style")}function wpj_chat_open_boxes_on_load(){var e;jQuery(".is-page-without-chat")[0]||(e=wpj_chat_get_stored_active_boxes("active_popups"))&&e.forEach(function(e){jQuery('.chat-sidebar-user-box[data-box-id="'+e+'"]').trigger("click")})}function wpj_init_chat_tooltips(){jQuery(".option-wrapper")[0]&&jQuery(".option-wrapper").popup({position:"top center",on:"hover",variation:"inverted"})}function wpj_chat_hide_sidebar_responsive(){jQuery(".is-sidebar-minimalist")[0]||(jQuery(this).width()<1258?jQuery("#main-wrapper").css("padding-"+(wpj_vars.is_rtl?"left":"right"),"0"):jQuery("#main-wrapper").removeAttr("style"))}function wpj_chat_hide_sidebar_elements_minimalist(){jQuery(".is-sidebar-minimalist")[0]&&jQuery(".chat-sidebar-user-box").each(function(){jQuery(this).isOnScreen()||(jQuery(this).hide(),jQuery("#wpadminbar")[0]&&jQuery(this).prev().hide())})}function wpj_chat_insert_message_to_box(e,t,n){var i=new Date,a=12<=i.getHours()?wpj_vars.pm:wpj_vars.am;t.includes("pwd="+e+wpj_vars.uid)||(t=wpj_filter_message(t));var r="",o=jQuery('input[name="hidden_files_chat_attachments_'+e+'"]').val();if(o){var s=o.split(",");if(s){for(var r='<div class="attachments-wrapper">',l=0;l<s.length;l++)r=r+'\t\t\t\t\t\t<div class="attachment-item-wrapper file-wrapper" id="'+s[l]+'">\t\t\t\t\t\t\t<div class="attachment-item-content">\t\t\t\t\t\t\t\t<a class="attachment-item-link" target="_blank" href="'+wpj_vars.site_URL+"/?secure_download="+s[l]+'" download="">'+jQuery(".uploadifive-queue-item[data-id="+s[l]+"]").find(".filename").text()+"</a>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>\t\t\t\t\t";r+="</div>"}}var c="";if(n){var u=n.split(",");if(u){for(c='<div class="attachments-wrapper">',l=0;l<u.length;l++)c=c+'\t\t\t\t\t\t<a href="'+jQuery('[rel="'+e+'"]').find('.dz-success.dz-complete[data-id="'+u[l]+'"]').attr("data-url")+'" class="js-pm-image-attachments-gallery">\t\t\t\t\t\t\t<img src="'+jQuery('[rel="'+e+'"]').find('.dz-success.dz-complete[data-id="'+u[l]+'"]').attr("data-url-thumb")+'">\t\t\t\t\t\t</a>\t\t\t\t\t';c+="</div>"}}t=jQuery('\t\t<div class="multiple-messages-wrapper">\t\t\t<div class="message-wrapper '+(t||r?"":"only-images")+' sent">\t\t\t\t<div class="message-text-content" data-inverted="" data-tooltip="'+i.getHours()+":"+i.getMinutes()+" "+a.toLowerCase()+'" data-position="top right">\t\t\t\t\t<div class="message-send">'+linkify(t)+r+c+"</div>\t\t\t\t</div>\t\t\t</div>\t\t</div>\t");jQuery('[rel="'+e+'"]').find(".message-box-content").find(".pm-list").find(".row").append(t)}function wpj_chat_insert_custom_offer_to_box(e,t){var n;e.custom_offer&&(jQuery('[rel="'+e.user+'"]').find(".no-results").text(""),n=jQuery('\t\t\t<div class="multiple-messages-wrapper">\t\t\t\t<div class="message-wrapper sent" data-pm-id="'+e.pm_id+'">\t\t\t\t\t<div class="message-text-content custom-offer" data-inverted="" data-tooltip="'+e.message_date+'" data-position="top right">\t\t\t\t\t\t<div class="message-send">\t\t\t\t\t\t\t<div class="message-custom-offer">\t\t\t\t\t\t\t\t<div class="message-custom-offer-icon">\t\t\t\t\t\t\t\t\t<img src="'+wpj_vars.theme_path+'/assets/images/misc/custom-offer.svg" alt="Custom Offer" class="icon" width="30" height="30">\t\t\t\t\t\t\t\t</div>'+e.custom_offer+"\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t</div>\t\t\t</div>\t\t"),jQuery('[rel="'+e.user+'"]').find(".message-box-content").find(".pm-list").find(".row").append(n),jQuery('[rel="'+e.user+'"]').find(".message-box-footer-options").is(":visible")&&jQuery('[rel="'+e.user+'"]').find(".js-message-options-btn").trigger("click"))}function wpj_update_purchase_price(b){void 0===b&&(b=jQuery(".page-id-"+wpj_vars.my_payments_page_id)[0]?"topup":jQuery(".page-id-"+wpj_vars.badge_page_id)[0]?"badge":jQuery(".page-id-"+wpj_vars.subscription_page_id)[0]?"subscription":jQuery(".page-id-"+wpj_vars.featured_page_id)[0]?"featured":jQuery(".page-id-"+wpj_vars.checkout_page_id)[0]?jQuery('input[name="custom_extra"]')[0]?"custom_extra":jQuery('input[name="tips"]')[0]?"tips":"job_purchase":"job_purchase"),jQuery(".total")[0]&&(jQuery(".total").each(function(){var t,n,i=0,e=jQuery(this);"job_purchase"==b||"custom_extra"==b||"tips"==b?i=Number(e.data("price")):"featured"==b?(n=t=0,jQuery('.featured_chk[type="checkbox"]').each(function(){var e=jQuery("#"+this.id);jQuery(this).parents(".ui.checkbox")[0]&&jQuery(this).parents(".ui.checkbox").checkbox("is checked")?(t=Number(e.data("price")),n+=t,e.parents(".ui.checkbox").checkbox("set checked")):e.parents(".ui.checkbox").checkbox("set unchecked")}),i=n):"badge"==b?(n=t=0,jQuery('.badge_chk[type="radio"]').each(function(){var e=jQuery("#"+this.id);jQuery(this).parents(".ui.checkbox")[0]&&jQuery(this).parents(".ui.checkbox").checkbox("is checked")?(t=Number(e.data("price")),n+=t,e.parents(".ui.checkbox").checkbox("set checked")):e.parents(".ui.checkbox").checkbox("set unchecked")}),i=n):"subscription"==b?(n=t=0,jQuery('input[name="sub_id"]').each(function(){jQuery(this).parents(".ui.checkbox")[0]&&jQuery(this).parents(".ui.checkbox").checkbox("is checked")&&(t=jQuery(this).siblings('input[name="sub_amt"]').val(),n+=parseFloat(t))}),i=n):"topup"==b&&(n=t=0,jQuery('.topup_chk[type="radio"]').each(function(){var e=jQuery("#"+this.id);jQuery(this).parents(".ui.checkbox")[0]&&jQuery(this).parents(".ui.checkbox").checkbox("is checked")?(t=Number(e.data("price")),n+=t,e.parents(".ui.checkbox").checkbox("set checked")):e.parents(".ui.checkbox").checkbox("set unchecked")}),i=n);var a=e.data("shipping")||0,r=e.data("cur"),o=e.data("symbol")||r,s=e.data("position")||"",l=e.data("space")||"yes",c=e.data("decimal")||".",u=e.data("thousands")||",",d=e.data("decimaldisplay")||"default",p=e.data("processingfeesenable")||"disabled",h=Number(e.data("processingfeesfixed"))||0,f=e.data("processingfeespercent")||0,m=e.data("taxover")||"",_=e.data("tax")||0,g=e.data("zerowithfree")||"",y=e.data("freestr")||"Free",v="yes"==l?" ":"";"job_purchase"==b&&(Number(jQuery("[name=myFormPurchase] .main_value_inp").val())&&(i*=Number(jQuery("[name=myFormPurchase] .main_value_inp").val())),jQuery("[name=myFormPurchase]:first").find(".extra-item").each(function(){var e;jQuery(this).find(".ui.checkbox")[0]&&jQuery(this).find(".ui.checkbox").checkbox("is checked")&&(e=Number(jQuery(this).find(".ui.checkbox").children(".uzextracheck").attr("data-price"))*Number(jQuery(this).attr("data-extraamount")),i+=e)})),e.attr("data-price-with-extras",i);r=i=(i=Hooks.apply_filters("wpj_checkout_total_price_filter",i,e))<0?0:i,a="job_purchase"==b?Number(a):0,r=i+a;"job_purchase"!=b&&"custom_extra"!=b&&"tips"!=b&&"featured"!=b||(l=0,"disabled"!=p&&("percent"==p&&(l=0<f?(i+a)*f/100:0),"fixed"==p&&(l=h),w=String(l.formatMoney(2,c,u)),"ifneeded"==d?w=isInt(l)?String(l.formatMoney(0,c,u)):String(l.formatMoney(2,c,u)):"never"==d&&(w=String(l.formatMoney(0,c,u))),"front"==s?jQuery(".processingfee-amount").html(o+v+w):jQuery(".processingfee-amount").html(w+v+o)),0<r&&(r+=Number(l)),w=0,"0"!=_&&(w=("processing_fee"==m?l:"job_and_pf"==m?i+l+a:i+a)*_/100,_=String(w.formatMoney(2,c,u)),_="ifneeded"==d?isInt(w)?String(w.formatMoney(0,c,u)):String(w.formatMoney(2,c,u)):"never"==d?String(w.formatMoney(0,c,u)):String(w.formatMoney(2,c,u)),"front"==s?jQuery(".tax-amount").html(o+v+_):jQuery(".tax-amount").html(_+v+o)),0<r&&(r+=w)),e.attr("data-total",r);var w="",w="ifneeded"==d?isInt(r)?String(r.formatMoney(0,c,u)):String(r.formatMoney(2,c,u)):"never"==d?String(r.formatMoney(0,c,u)):String(r.formatMoney(2,c,u));"front"==s?!(0<i)&&"yes"===g?e.html(y):e.html(o+v+w):!(0<r)&&"yes"===g?e.html(y):e.html(w+v+o),r<=0||isNaN(r)?(jQuery(".js-credits").text(wpj_vars.get_for_free),jQuery(".payment-buttons").hide(),("job_purchase"==b||"custom_extra"==b||"badge"==b&&jQuery('input:checked[name="badges"]')[0])&&(jQuery(".payment-buttons").css({display:"flex"}),jQuery(".js-credits").siblings().hide())):(jQuery(".js-credits").text(wpj_vars.account_balance),jQuery(".payment-buttons").css({display:"flex"}),("job_purchase"==b||"custom_extra"==b||"badge"==b&&jQuery('input:checked[name="badges"]')[0])&&jQuery(".js-credits").siblings().show())}),parseFloat(jQuery("#showtotal").attr("data-total"))>parseFloat(wpj_vars.user_credits)?(jQuery(".js-credits").attr("onclick",""),jQuery(".js-credits").attr("data-tooltip",wpj_vars.not_enough_credits),jQuery(".js-credits").attr("data-position","right center"),jQuery(".js-credits").attr("data-inverted","")):(jQuery(".js-credits").attr("onclick",'take_to_gateway("credits", "'+b+'");'),jQuery(".js-credits").removeAttr("data-tooltip"),jQuery(".js-credits").removeAttr("data-position"),jQuery(".js-credits").removeAttr("data-inverted")))}function get_input_length(e,t){if("html"!=(t=void 0!==t?t:"input"))return jQuery("<div/>").html(e.val()).text().length;var n=jQuery("<div/>").html(e.html()),t=jQuery(n).html().match(/(<((br)|(\/br)|(\/ br))>)/gi),t=t?t.length:0;if(0<=jQuery(e).attr("class").indexOf("wysiwyg-description-textarea")){e=jQuery(".wysiwyg-description-textarea").attr("placeholder");return jQuery(n).text()==e?jQuery(n).val().length+t:jQuery(n).text().length+t}return jQuery(n).text().length+t}function get_input_length_emoji(e){for(var t,n=0,i=0,a=0;a<e.length;){for(t=e.codePointAt(a),n=0;t;)n+=1,t>>=8;a+=Math.round(n/2),i+=1}var r=e.match(/(<((br)|(\/br)|(\/ br))>)/gi);return i+(r?r.length:0)}function the_input_length(e,t,n,i){i=void 0!==i?i:"input";var a=t.find("em").eq(0);0==a.length&&(a=jQuery("<em/>").prependTo(t));i=get_input_length(e,i);a.html(i),n<i?t.addClass("char-limit-exceeded"):t.removeClass("char-limit-exceeded")}function add_input_length_listener(t,n,i,a){var e;"html"==(a=void 0!==a?a:"input")?(e=t,the_input_length(t=jQuery(e.composer.element),n,i,a),e.composer.element.addEventListener("keyup",function(){the_input_length(t,n,i,a)})):(the_input_length(t,n,i,a),t.keyup(function(e){the_input_length(t,n,i,a)}))}function wpj_pm_emoji_init(e){return e=void 0!==e?e:"#message-pm-user",1==wpj_vars.pm_emoji_enabled&&void 0===jQuery(e).data("emojioneArea")&&jQuery(e)[0]&&jQuery(e).emojioneArea({pickerPosition:"top",filtersPosition:"top",searchPosition:"top",tonesStyle:"bullet",events:{keyup:function(e,t){e.hasScrollbar()?jQuery(".thread-input").addClass("has-scroll"):jQuery(".thread-input").removeClass("has-scroll"),wpj_vars.is_rtl&&(e.hasScrollbar()?jQuery(".emojionearea-button").animate({"margin-left":"10px"},100):jQuery(".emojionearea-button").animate({"margin-left":"0"},100))}}}),!1}function wpj_chat_emoji_init(e){return e=void 0!==e?e:".message-box-input-content",1==wpj_vars.chat_emoji_enabled&&void 0===jQuery(e).data("emojioneArea")&&jQuery(e)[0]&&jQuery(e).emojioneArea({pickerPosition:"top",filtersPosition:"top",searchPosition:"top",tonesStyle:"bullet",placeholder:wpj_vars.write_message,events:{ready:function(){jQuery(".message-box-container").addClass("emoji-enabled"),jQuery(".message-box-placeholder-container").hide()}}}),!1}function wpj_transaction_emoji_init(e){return e=void 0!==e?e:".order-message-form-textarea",1==wpj_vars.transaction_emoji_enabled&&void 0===jQuery(e).data("emojioneArea")&&jQuery(e)[0]&&jQuery(e).emojioneArea({pickerPosition:"top",filtersPosition:"top",searchPosition:"top",tonesStyle:"bullet",events:{keyup:function(e,t){var n=get_input_length_emoji(jQuery(".cmi-listen.message-field").data("emojioneArea").getText()),n=wpj_vars.characters_pm_max-n;n<=0&&(n=0),jQuery(".charscounter").first().html(n),e.hasScrollbar()?wpj_vars.is_rtl?jQuery(".quick-response-wrapper").animate({left:"54px"},100):jQuery(".quick-response-wrapper").animate({right:"54px"},100):wpj_vars.is_rtl?jQuery(".quick-response-wrapper").animate({left:"44px"},100):jQuery(".quick-response-wrapper").animate({right:"44px"},100)}}}),!1}function wpj_collapse_footer_menus(){jQuery(".js-toggle-arrow").each(function(){var e=jQuery(this).find(".js-toggle-angle-icon");isMobile()&&e.hasClass("toggle-angle-icon-up")?(e.removeClass("toggle-angle-icon-up").addClass("toggle-angle-icon-down"),e.parents(".js-toggle-wrapper").siblings("div").slideUp("slow"),e.parents(".js-toggle-wrapper").addClass("collapsed")):!isMobile()&&e.hasClass("toggle-angle-icon-down")&&(e.removeClass("toggle-angle-icon-down").addClass("toggle-angle-icon-up"),e.parents(".js-toggle-wrapper").siblings("div").slideDown("slow"),e.parents(".js-toggle-wrapper").removeClass("collapsed"))})}function wpj_toggle_scroll_to_top_button(){100<jQuery(this).scrollTop()?jQuery(".scrollToTop").fadeIn():jQuery(".scrollToTop").fadeOut()}function wpj_add_responsive_classes_to_footer_elements(){jQuery(this).width()<=767?(jQuery(".footer-row-social-media").hasClass("doubling")||jQuery(".footer-row-social-media").addClass("doubling"),jQuery(".footer-row-social-media").hasClass("stackable")||jQuery(".footer-row-social-media").addClass("stackable")):jQuery(".footer-row-social-media").removeClass("doubling").removeClass("stackable")}function take_to_gateway(e,t){"job_purchase"==t?take_to_gateway_job(e):"featured"==t?take_to_gateway_feature(e):"custom_extra"==t?take_to_gateway_custom_extra(e):"tips"==t?take_to_gateway_tips(e):"topup"==t?take_to_gateway_topup(e):"badge"==t?take_to_gateway_badge(e):"subscription"==t&&take_to_gateway_subscription(e)}function take_to_gateway_job(e){var t,n=(n=jQuery(".main_value_inp").val())||1,i="",a="";jQuery(".chk_extrafast").parents(".ui.checkbox")[0]&&jQuery(".chk_extrafast").parents(".ui.checkbox").checkbox("is checked")&&(t=jQuery(".hid_extrafast").val(),i+="f|",a+=(t=t||1)+"|"),jQuery(".chk_extrarevision").parents(".ui.checkbox")[0]&&jQuery(".chk_extrarevision").parents(".ui.checkbox").checkbox("is checked")&&(t=jQuery(".hid_extrarevision").val(),i+="r|",a+=(t=t||1)+"|");for(var r,o=1;o<=10;o++)jQuery(".chk_extra"+o).parents(".ui.checkbox")[0]&&jQuery(".chk_extra"+o).parents(".ui.checkbox").checkbox("is checked")&&(r=jQuery(".hid_extra"+o).val(),i+=o+"|",a+=(r=r||1)+"|");wpj_vars.extra_prch_page||wpj_vars.force_allow||(n=(n=jQuery(".payment-main-item").attr("data-mainamount"))||1,jQuery(".extra-item").each(function(){var e=jQuery(this).attr("data-extranr"),t=(t=jQuery(this).attr("data-extraamount"))||1;"fast"==e?(i+="f|",a+=t+"|"):"revision"==e?(i+="r|",a+=t+"|"):1<=e&&e<=10&&(i+=e+"|",a+=t+"|")}));jQuery(".total").attr("data-total");var s=(s=wpj_vars.site_URL)+"/?pay_for_item="+e;s=(s=(s=(s=(s+="&payment_type=job_purchase")+"&jobid="+jQuery('input[name="jobid"]').val())+"&amount="+n)+"&extras="+i)+"&extras_amounts="+a,jQuery('input[name="package_no"]').val()&&(s=s+"&package_no="+jQuery('input[name="package_no"]').val()),jQuery('input[name="package_price"]').val()&&(s=s+"&package_price="+jQuery('input[name="package_price"]').val()),jQuery('input[name="package_delivery_days"]').val()&&(s=s+"&package_delivery_days="+jQuery('input[name="package_delivery_days"]').val());var l={};jQuery.map(jQuery("[name=myFormPurchase]").serializeArray(),function(e,t){l[e.name]=e.value}),l&&jQuery.each(l,function(e,t){s=s+"&"+e+"="+t}),take_to_gateway_window_message(s,e),"undefined"!=typeof wpj_vars&&wpj_vars.is_in_app||(window.location=s)}function take_to_gateway_job_purchase_process(e,t,n){"process"==e?(base_url=wpj_vars.site_URL+"/?pay_for_item="+n+"&payment_type=job_purchase&oid="+t+"&process_pending=1",take_to_gateway_window_message(base_url,n),"undefined"!=typeof wpj_vars&&wpj_vars.is_in_app||(window.location=base_url)):(jQuery(".ui.message").remove(),jQuery(".page-id-"+wpj_vars.order_page_id)[0]?addLoader(".js-pending-order-wrapper .wp-block-kadence-rowlayout:nth-child(2) .kt-inside-inner-col:first"):addLoader(".wpj-grid-table"),jQuery.ajax({type:"POST",url:wpj_vars.ajaxurl,data:"action=cancel_job_pending_order_action&process="+e+"&order_id="+t,success:function(e){jQuery(".page-id-"+wpj_vars.order_page_id)[0]?refreshContent("#main-content"):jQuery(".user-shopping-wrapper")[0]?refreshContent(".user-shopping-wrapper"):wpj_refresh_kadence_tab_content()}}))}function take_to_gateway_custom_extra(e){var t=jQuery('input[name="oid"]').val(),n=jQuery('input[name="custom_extra"]').val(),i=(i=wpj_vars.site_URL)+"/?pay_for_item="+e;i=(i+="&payment_type=custom_extra")+"&oid="+t,take_to_gateway_window_message(i=(i+="&amount=1")+"&custom_extra="+n,e),"undefined"!=typeof wpj_vars&&wpj_vars.is_in_app||(window.location=i)}function take_to_gateway_tips(e){var t=jQuery('input[name="oid"]').val(),n=jQuery('input[name="tips"]').val(),i=(i=wpj_vars.site_URL)+"/?pay_for_item="+e;i=(i+="&payment_type=tips")+"&oid="+t,take_to_gateway_window_message(i=(i+="&amount=1")+"&tips="+n,e),"undefined"!=typeof wpj_vars&&wpj_vars.is_in_app||(window.location=i)}function take_to_gateway_feature(e){var t,n=jQuery(document).find("[data-pid]").first().attr("data-pid"),i=jQuery('input[name="h_date_start"]').val(),a=jQuery('input[name="c_date_start"]').val(),r=jQuery('input[name="s_date_start"]').val(),o="";jQuery('input:checked[name="feature_pages[]"]').each(function(){"homepage"==jQuery(this).val()?o+="h":"category"==jQuery(this).val()?o+="c":"subcategory"==jQuery(this).val()&&(o+="s")}),o?"credits"==e&&parseFloat(jQuery("#showtotal").attr("data-total"))>parseFloat(wpj_vars.user_credits)?(jQuery("#"+e).notify(wpj_vars.not_enough_credits,{position:"right",className:"error"}),setTimeout(function(){jQuery(".ui.active.inverted.dimmer").remove()},500)):wpj_vars.h_date_start!=i&&jQuery("#homepage_featured_chk").is(":checked")||wpj_vars.c_date_start!=a&&jQuery("#category_featured_chk").is(":checked")||wpj_vars.s_date_start!=r&&jQuery("#subcategory_featured_chk").is(":checked")?(jQuery("#"+e).notify(wpj_vars.featured_interval,{position:"right",className:"error"}),setTimeout(function(){jQuery(".ui.active.inverted.dimmer").remove()},500)):(t=(t=wpj_vars.site_URL)+"/?pay_for_item="+e,take_to_gateway_window_message(t=(t=(t=(t=(t=(t+="&payment_type=feature")+"&jobid="+n)+"&h_date_start="+i)+"&c_date_start="+a)+"&s_date_start="+r)+"&feature_pages="+o,e),"undefined"!=typeof wpj_vars&&wpj_vars.is_in_app||(window.location=t)):(jQuery("#"+e).notify(wpj_vars.featured_empty,{position:"right",className:"error"}),setTimeout(function(){jQuery(".ui.active.inverted.dimmer").remove()},500))}function take_to_gateway_feature_process(e,t,n){"process"==e?(base_url=wpj_vars.site_URL+"/?pay_for_item="+n+"&payment_type=feature&oid="+t+"&process_pending=1",take_to_gateway_window_message(base_url,n),"undefined"!=typeof wpj_vars&&wpj_vars.is_in_app||(window.location=base_url)):(jQuery(".ui.message").remove(),addLoader(".js-feature-content"),jQuery.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"cancel_featured_order_action",order_id:t,payment_gateway:n},success:function(e){refreshContent(".js-feature-content")}}))}function take_to_gateway_topup(e){var t=jQuery("input[name=topup]:checked").val();"0"<=t?(base_url=wpj_vars.site_URL+"/?pay_for_item="+e+"&payment_type=topup&package_id="+t,take_to_gateway_window_message(base_url,e),"undefined"!=typeof wpj_vars&&wpj_vars.is_in_app||(window.location.href=base_url)):(jQuery("#"+e).notify(wpj_vars.topup_package_empty,{position:"right",className:"error"}),setTimeout(function(){jQuery(".ui.active.inverted.dimmer").remove()},500))}function take_to_gateway_topup_process(e,t,n,i){"process"==e?(base_url=wpj_vars.site_URL+"/?pay_for_item="+n+"&payment_type=topup&oid="+t+"&package_id="+i+"&process_pending=1",take_to_gateway_window_message(base_url,n),"undefined"!=typeof wpj_vars&&wpj_vars.is_in_app||(window.location=base_url)):(jQuery(".page-id-"+wpj_vars.topup_order_page_id)[0]?addLoader(".js-pending-order-wrapper"):addLoader(".wpj-grid-table"),jQuery.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"cancel_topup_pending_order_action",order_id:t,payment_gateway:n},success:function(e){jQuery(".page-id-"+wpj_vars.topup_order_page_id)[0]?refreshContent("#main-content"):refreshContent(".wpj-dashboard-topup-pending-table")}}))}function take_to_gateway_badge(e){"credits"==e&&parseFloat(jQuery("#showtotal").attr("data-total"))>parseFloat(wpj_vars.user_credits)?(jQuery("#"+e).notify(wpj_vars.not_enough_credits,{position:"right",className:"error"}),setTimeout(function(){jQuery(".ui.active.inverted.dimmer").remove()},500)):jQuery('input:checked[name="badges"]').val()?(base_url=wpj_vars.site_URL,base_url=base_url+"/?pay_for_item="+e,base_url+="&payment_type=badge",base_url=base_url+"&user_id="+wpj_vars.uid,base_url=base_url+"&badge_nr="+jQuery('input:checked[name="badges"]').val(),base_url=base_url+"&price="+jQuery('input:checked[name="badges"]').attr("data-price"),take_to_gateway_window_message(base_url,e),"undefined"!=typeof wpj_vars&&wpj_vars.is_in_app||(window.location=base_url)):(jQuery("#"+e).notify(wpj_vars.badge_empty,{position:"right",className:"error"}),setTimeout(function(){jQuery(".ui.active.inverted.dimmer").remove()},500))}function take_to_gateway_subscription(e){var t,n,i,a=jQuery('input:checked[name="sub_id"]').val();a?(t=(i=a.split("-"))[0],n=i[1],a=jQuery('input:checked[name="sub_id"]').siblings('input[name="sub_amt"]').val(),i=jQuery('input:checked[name="sub_id"]').parents(".subscription-wrapper").find('input[name="schedule_only"]').val(),"credits"==e&&parseFloat(a)>parseFloat(wpj_vars.user_credits)?(jQuery(".js-"+e).notify(wpj_vars.not_enough_credits,{position:"right",className:"error"}),setTimeout(function(){jQuery(".ui.active.inverted.dimmer").remove()},500)):(base_url=wpj_vars.site_URL,base_url=base_url+"/?pay_for_item="+e,base_url+="&payment_type=subscription",base_url=base_url+"&user_id="+wpj_vars.uid,base_url=base_url+"&sub_amount="+a,base_url=base_url+"&sub_type="+t,base_url=base_url+"&sub_level="+n,base_url=base_url+"&schedule_only="+i,take_to_gateway_window_message(base_url,e),"undefined"!=typeof wpj_vars&&wpj_vars.is_in_app||(window.location=base_url))):(jQuery(".js-"+e).notify(wpj_vars.subscription_empty,{position:"right",className:"error"}),setTimeout(function(){jQuery(".ui.active.inverted.dimmer").remove()},500))}function take_to_gateway_subscription_process(e,t,n){"process"==e?(base_url=wpj_vars.site_URL+"/?pay_for_item="+n+"&payment_type=subscription&oid="+t+"&process_pending=1",take_to_gateway_window_message(base_url,n),"undefined"!=typeof wpj_vars&&wpj_vars.is_in_app||(window.location=base_url)):(jQuery(".ui.message").remove(),jQuery(".text-button.text-button-negative").addClass("ui loading button"),jQuery(".ui.mini.buttons").find(".negative").addClass("loading"),jQuery.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"cancel_subscription_action",order_id:t,payment_gateway:n},success:function(e){refreshContent("#main-content")}}))}function take_to_gateway_window_message(e,t){t&&"credits"!=t&&"cod"!=t&&"banktransfer"!=t?window.parent.postMessage({data:{isExternal:!0,isTargetBlank:!1,currentUrl:window.location.href,externalUrl:e}},"*"):(window.parent.postMessage({data:{isExternal:!1,isTargetBlank:!1,currentUrl:window.location.href,nextUrl:e}},"*"),window.location=e)}function wpj_get_user_account_graph(){var graph_type=jQuery(".page-id-"+wpj_vars.my_account_page_id)[0]||jQuery(".page-id-"+wpj_vars.my_sales_page_id)[0]?"sales":"shopping",ret;jQuery(".js-user-chart-wrapper")[0]&&(ret="",disp_type=jQuery("#disp_type").val(),select_year=jQuery('#select_year select[name="select_year"]').val(),select_month=jQuery('#select_month select[name="select_month"]').val(),jQuery.ajax({url:wpj_vars.ajaxurl,data:{uid:wpj_vars.uid,action:"user_account_graph_action",disp_type:disp_type,select_year:select_year,select_month:select_month,graph_type:graph_type},success:function(json_data){chart_data=JSON.parse(json_data),data=google.visualization.arrayToDataTable(eval(chart_data.data_table)),wpj_draw_user_account_chart(data)},error:function(e){}}))}function wpj_draw_user_account_chart(e){var t,n=jQuery(".page-id-"+wpj_vars.my_account_page_id)[0]||jQuery(".page-id-"+wpj_vars.my_sales_page_id)[0]?"sales":"shopping";jQuery(".js-user-chart-wrapper")[0]&&(t=wpj_vars.is_rtl?{minValue:0,reverseAxis:!0,legend:{position:"top"}}:{minValue:0},t="sales"==n?{hAxis:{titleTextStyle:{color:"#333"}},vAxis:t,colors:["#BEEC78","#119EE2","#FFBE00","#65BEE9","#20c497"]}:"shopping"==n?{hAxis:{titleTextStyle:{color:"#333"}},vAxis:t,colors:["#BEEC78","#FFBE00","#119EE2","#20c497","#20c497"]}:{hAxis:{titleTextStyle:{color:"#333"}},vAxis:t,colors:["#20c497","#83C0D8","#03C0D8","#f3CaD8","#8fCbD8"]},new google.visualization.AreaChart(document.getElementById("chart_div")).draw(e,t))}function wpj_change_user_account_table_responsive(){767<jQuery(this).width()?jQuery(".ui.list.user-graph-table-wrapper").removeClass("relaxed").addClass("horizontal"):jQuery(".ui.list.user-graph-table-wrapper").addClass("relaxed").removeClass("horizontal")}function wpj_check_job_delivery_time(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"yes",i=jQuery("#max_days").val();jQuery(".max_days_fast.ui.dropdown .menu .item").each(function(e,t){parseInt(i)&&parseInt(jQuery(t).data("value"))>=parseInt(i)&&"yes"==n?jQuery(t).addClass("disabled"):jQuery(t).removeClass("disabled")});var e=jQuery('select[name="price_type"]').val(),n=Hooks.apply_filters("wpj_execute_validation_filter",n,e);"instant"==i&&"yes"==n&&"package"!=e?(jQuery("#max_days_fast").val("instant"),jQuery("#enable_extra_fast").prop("checked",!1),jQuery("#enable_extra_fast").parent().addClass("disabled"),jQuery("#extra_fast_price").parent().addClass("disabled"),jQuery("#max_days_fast").parent().addClass("disabled")):(jQuery("#enable_extra_fast").parents().removeClass("disabled"),jQuery("#extra_fast_price").parents().removeClass("disabled"),jQuery("#max_days_fast").parents().removeClass("disabled"))}function wpj_load_job_extras(){jQuery(".page-id-"+wpj_vars.new_job_page_id)[0]&&wpj_vars.extra_enable&&(jQuery(".fields").has(".extra-item").wrapAll('<div id="extra_1" class="extra-wrapper js-extra-wrapper" data-validate="extra_wrapper">'),jQuery.each(JSON.parse(wpj_vars.extra_enable),function(e,t){0!=e&&"yes"==t&&jQuery(".js-add-extra").trigger("click")}),jQuery.fn.wpjSemanticInit())}function wpj_validate_new_job_form(){var e;jQuery.fn.form.settings.rules.maxLengthDesc=function(e,t){return e=(jQuery(".char-count").length?jQuery("#job_description_field .char-count").children("em"):jQuery("#chars_counter").length?jQuery("#job_description_field #chars_counter"):jQuery("#job_description_field .charscounter")).html(),parseFloat(e)<=parseFloat(t)},jQuery.fn.form.settings.rules.greaterThan=function(e,t){return parseFloat(e)>=parseFloat(t)},jQuery.fn.form.settings.rules.lessThan=function(e,t){return parseFloat(e)<=parseFloat(t)},jQuery.fn.form.settings.rules.noValidation=function(){return!0},jQuery.fn.form.settings.rules.instant_file_upload=function(){var e=!0;return jQuery("#uploadifive-file_upload_instant_job_attachments").siblings(".attachments-wrapper")[0]?e=!(jQuery.trim(jQuery("#uploadifive-file_upload_instant_job_attachments").siblings(".attachments-wrapper").text()).length<=0)||!(jQuery("#uploadifive-file_upload_instant_job_attachments-queue").html().length<=0):jQuery("#uploadifive-file_upload_instant_job_attachments-queue")[0]&&(e=!(jQuery("#uploadifive-file_upload_instant_job_attachments-queue").html().length<=0)),!!e},jQuery.fn.form.settings.rules.audio_file_upload=function(){return!!jQuery(".audio-file-wrapper").length},jQuery.fn.form.settings.rules.image_file_upload=function(){return!!(jQuery("#job_images")[0]&&jQuery("#job_images").find(".dz-complete").length||!jQuery("#job_images")[0]&&jQuery.trim(jQuery(".images-wrapper").html()).length)},jQuery.fn.form.settings.rules.image_file_upload_error=function(){return!jQuery("#job_images").find(".dz-error").length},jQuery.fn.form.settings.rules.video_validation=function(){var e=!0;return jQuery(".video-link").each(function(){""!=jQuery(this).val()&&!1===wpj_validate_video_url(jQuery(this).val())&&(e=!1)}),e},jQuery.fn.form.settings.rules.faq_validation=function(){var e=!0;return jQuery(".faq-question").each(function(){jQuery(this).val()||(e=!1)}),jQuery(".faq-answer").each(function(){jQuery(this).val()||(e=!1)}),e},e="no"==localStorage.getItem("validate_subcat")?{type:"noValidation"}:wpj_aoe_empty("job_subcategory_blank");var t={};t.title={identifier:"job_title",rules:[wpj_aoe_empty("job_title_blank"),wpj_aoe_min_length("job_title_min",wpj_vars.characters_job_title_min),wpj_aoe_max_length("job_title_max",wpj_vars.characters_job_title_max)]},t.category={identifier:"job_cat",rules:[wpj_aoe_empty("job_category_blank")]},t.subcategory={identifier:"subcat",rules:[e]},t.description={identifier:"job_description",rules:[wpj_aoe_empty("job_description_blank"),wpj_aoe_min_length("job_description_min",wpj_vars.characters_job_desc_min),wpj_aoe_max_length("job_description_max",wpj_vars.characters_job_desc_max,null,"job_description")]},1==jQuery('textarea[name="instruction_box"]').attr("data-required")&&(t.buyer_instruction={identifier:"instruction_box",rules:[wpj_aoe_empty("job_instructions_blank"),wpj_aoe_min_length("job_instructions_min",wpj_vars.characters_job_instr_min),wpj_aoe_max_length("job_instructions_max",wpj_vars.characters_job_instr_max)]}),1==jQuery(".faq-question").attr("data-required")&&(t.faq={identifier:"faq_question[]",rules:[wpj_aoe_faq()]}),1==wpj_vars.op_enable_shipping&&(t.shipping={identifier:"job_shipping",rules:[wpj_aoe_number("job_shipping_numeric")]}),wpj_aoe_packages_validation(jQuery('select[name="price_type"]'),t),jQuery(document).on("change",'select[name="price_type"]',function(){wpj_aoe_packages_validation(jQuery(this),t)}),1==wpj_vars.op_mandatory_job_image&&(t.image={identifier:"images_order",rules:[wpj_aoe_image_file_upload(),wpj_aoe_image_file_upload_error()]}),t.video={identifier:"video_link[]",rules:[wpj_aoe_video()]},1==wpj_vars.op_mandatory_job_audio&&1==wpj_vars.op_enable_audio&&(t.audio={identifier:"file_upload_audio",rules:[wpj_aoe_audio_file_upload()]}),wpj_aoe_efd_validation(jQuery("#enable_extra_fast"),t),jQuery(document).on("change","#enable_extra_fast, #max_days_fast, #max_days",function(e){wpj_aoe_efd_validation(jQuery("#enable_extra_fast"),t)}),wpj_aoe_ar_validation(jQuery("#enable_extra_revision"),t),jQuery(document).on("change","#enable_extra_revision",function(e){wpj_aoe_ar_validation(jQuery(this),t)}),jQuery(document).on("change",".extra_enable",function(){$id_arr=jQuery(this).find("input:checkbox").attr("id").split("_"),wpj_aoe_extra_validation(jQuery(this),t,parseInt($id_arr[2]),jQuery(this).find("input:checkbox").prop("checked"))});for(var n=1;n<=10;n++)wpj_aoe_extra_validation(jQuery("#enable_extra_"+n),t,n,jQuery("#enable_extra_"+n).prop("checked"));"disabled"!=wpj_vars.op_enable_tos&&(t.terms={identifier:"i_agree",rules:[wpj_aoe_i_agree()]}),Hooks.do_action("wpj_before_execute_job_form_validation",t),t=Hooks.apply_filters("wpj_fields_validation_filter",t,"job"),jQuery("#add-edit-job-form").form({on:"blur",keyboardShortcuts:!1,fields:t,onFailure:function(e){return 100<jQuery(window).scrollTop()&&jQuery("html, body").animate({scrollTop:0},800),!1}}),jQuery("#add-edit-job-form").form("validate form")}function wpj_aoe_empty(e){return{type:"empty",prompt:wpj_vars[e+(1<arguments.length&&arguments[1]?arguments[1]:"")]}}function wpj_aoe_min_length(e){return{type:"minLength["+(1<arguments.length&&arguments[1]?arguments[1]:0)+"]",prompt:wpj_vars[e+(2<arguments.length&&arguments[2]?arguments[2]:"")]}}function wpj_aoe_max_length(e){var t=1<arguments.length&&arguments[1]?arguments[1]:0,n=2<arguments.length&&arguments[2]?arguments[2]:"";return{type:"job_description"==(3<arguments.length&&arguments[3]?arguments[3]:null)?"maxLengthDesc["+t+"]":"maxLength["+t+"]",prompt:wpj_vars[e+n]}}function wpj_aoe_number(e){return{type:"number",prompt:wpj_vars[e+(1<arguments.length&&arguments[1]?arguments[1]:"")]}}function wpj_aoe_greater_than_or_equal(e){return{type:"greaterThan["+(1<arguments.length&&arguments[1]?arguments[1]:0)+"]",prompt:wpj_vars[e+(2<arguments.length&&arguments[2]?arguments[2]:"")]}}function wpj_aoe_less_than_or_equal(e){return{type:"lessThan["+(1<arguments.length&&arguments[1]?arguments[1]:0)+"]",prompt:wpj_vars[e+(2<arguments.length&&arguments[2]?arguments[2]:"")]}}function wpj_aoe_instant_file_upload(){return{type:"instant_file_upload",prompt:wpj_vars.job_instant_file_blank}}function wpj_aoe_audio_file_upload(){return{type:"audio_file_upload",prompt:wpj_vars.job_audio_blank}}function wpj_aoe_image_file_upload(){return{type:"image_file_upload",prompt:wpj_vars.job_image_blank}}function wpj_aoe_image_file_upload_error(){return{type:"image_file_upload_error",prompt:wpj_vars.job_image_error}}function wpj_aoe_faq(){return{type:"faq_validation",prompt:wpj_vars.job_faq_blank}}function wpj_aoe_video(){return{type:"video_validation",prompt:wpj_vars.job_video_invalid}}function wpj_aoe_i_agree(){return{type:"checked",prompt:wpj_vars.job_tos_uncheck}}function wpj_aoe_max_days_validation(e,t){"instant"==e.val()&&"package"!=jQuery('select[name="price_type"]').val()?t.instant_delivery={identifier:"hidden_files_instant_job_attachments",rules:[wpj_aoe_instant_file_upload()]}:delete t.instant_delivery}function wpj_aoe_efd_validation(e,t){var n,i,a;e.prop("checked")&&wpj_vars.max_days_enabled?(n=wpj_vars.amount_jobextra_price_min,i=(i=wpj_vars.amount_jobextra_price_max)?wpj_aoe_less_than_or_equal("job_efd_price_max",i):{type:"noValidation"},a="package"==jQuery('select[name="price_type"]').val()?(a=jQuery("select[name='package_max_days[]']").map(function(){return jQuery(this).val()}).get(),Math.max.apply(Math,a)):jQuery("#max_days").val(),a=Hooks.apply_filters("wpj_efd_max_days_validation_filter",a),a="instant"!=jQuery("#max_days_fast").val()?wpj_aoe_less_than_or_equal("job_efd_max_days_max",a):{type:"noValidation"},t.efd_price={identifier:"extra_fast_price",rules:[wpj_aoe_empty("job_efd_price_blank"),wpj_aoe_number("job_efd_price_numeric"),wpj_aoe_greater_than_or_equal("job_efd_price_min",n),i]},t.efd_max_days={identifier:"max_days_fast",rules:[wpj_aoe_empty("job_efd_max_days_blank"),a]}):(delete t.efd_price,delete t.efd_max_days,e.parents(".field").siblings(".two.fields").children(".field").removeClass("error"))}function wpj_aoe_ar_validation(e,t){var n,i;e.prop("checked")?(n=wpj_vars.amount_jobextra_price_min,i=(i=wpj_vars.amount_jobextra_price_max)?wpj_aoe_less_than_or_equal("job_ar_price_max",i):{type:"noValidation"},t.ar_price={identifier:"extra_revision_price",rules:[wpj_aoe_empty("job_ar_price_blank"),wpj_aoe_number("job_ar_price_numeric"),wpj_aoe_greater_than_or_equal("job_ar_price_min",n),i]},t.ar_max_days={identifier:"max_days_revision",rules:[wpj_aoe_empty("job_ar_max_days_blank")]}):(delete t.ar_price,delete t.ar_max_days,e.parents(".field").siblings(".three.fields").children(".field").removeClass("error"))}function wpj_aoe_extra_validation(e,t,n,i){var a,r=wpj_vars.amount_jobextra_price_min,o=wpj_vars.amount_jobextra_price_max;a=o?wpj_aoe_less_than_or_equal("job_extra_price_max"+n,o):{type:"noValidation"};var s=wpj_vars.characters_extradesc_min,o=wpj_vars.characters_extradesc_max;i?(t["job_extra_description"+n]={identifier:"extra"+n+"_content",rules:[wpj_aoe_empty("job_extra_desc_blank"+n,n),wpj_aoe_min_length("job_extra_desc_min"+n,s),wpj_aoe_max_length("job_extra_desc_max"+n,o)]},t["job_extra_price"+n]={identifier:"extra"+n+"_price",rules:[wpj_aoe_empty("job_extra_price_blank"+n,n),wpj_aoe_number("job_extra_price_numeric"+n),wpj_aoe_greater_than_or_equal("job_extra_price_min"+n,r),a]},t["job_extra_max_days"+n]={identifier:"max_days_"+n,rules:[wpj_aoe_empty("job_extra_max_days_blank"+n,n)]}):(delete t["job_extra_description"+n],delete t["job_extra_price"+n],delete t["job_extra_max_days"+n],e.siblings(".three.fields").children(".field").removeClass("error"),e.siblings(".extra_description").removeClass("error"))}function wpj_aoe_packages_validation(e,t){if("package"==e.val()){delete t.price,delete t.max_days;for(var n=0;n<3;n++){var i=wpj_vars.characters_job_package_title_min,a=wpj_vars.characters_job_package_title_max;t["package_name"+n]={identifier:"package_name"+n,rules:[wpj_aoe_empty("job_pck_name_blank",n+1),wpj_aoe_min_length("job_pck_name_min",i,n+1),wpj_aoe_max_length("job_pck_name_max",a,n+1)]};i=wpj_vars.characters_job_package_description_min,a=wpj_vars.characters_job_package_description_max;t["package_description"+n]={identifier:"package_description"+n,rules:[wpj_aoe_empty("job_pck_description_blank",n+1),wpj_aoe_min_length("job_pck_description_min",i,n+1),wpj_aoe_max_length("job_pck_description_max",a,n+1)]};i=wpj_vars.amount_job_package_price_min,a=wpj_vars.amount_job_package_price_max;max_pck_price_rule=a?wpj_aoe_less_than_or_equal("job_pck_price_max",a,n+1):{type:"noValidation"},t["package_price"+n]={identifier:"package_price"+n,rules:[wpj_aoe_empty("job_pck_price_blank",n+1),wpj_aoe_number("job_pck_price_numeric",n+1),wpj_aoe_greater_than_or_equal("job_pck_price_min",i,n+1),max_pck_price_rule]}}wpj_aoe_max_days_validation(jQuery('select[name="price_type"]'),t)}else{for(n=0;n<3;n++)delete t["package_name"+n],delete t["package_description"+n],delete t["package_price"+n];var r=wpj_vars.amount_jobprice_min,e=wpj_vars.amount_jobprice_max;e=e?wpj_aoe_less_than_or_equal("job_price_max",e):{type:"noValidation"},t.price={identifier:"job_cost",rules:[wpj_aoe_empty("job_price_blank"),wpj_aoe_number("job_price_numeric"),wpj_aoe_greater_than_or_equal("job_price_min",r),e]},t.max_days={identifier:"max_days",rules:[wpj_aoe_empty("job_max_days_blank")]},wpj_aoe_max_days_validation(jQuery("#max_days"),t),jQuery(document).on("change","#max_days",function(e){wpj_aoe_max_days_validation(jQuery(this),t)})}}function wpj_display_video_poster(){1<=jQuery(".owl-video-tn").length&&jQuery(".owl-video-tn").each(function(){var e=jQuery(this).attr("srctype"),t=jQuery(this).parents(".owl-video-wrapper");t.css("opacity",1),t.css("background-image","url("+e+")"),t.css("background-repeat","no-repeat"),t.css("background-position","center"),t.css("background-size","cover")})}function wpj_add_responsive_classes_to_homepage_elements(){jQuery(this).width()<=479?jQuery(".icon-categories-wrapper").removeClass("four three two one column").addClass("one column"):479<jQuery(this).width()&&jQuery(this).width()<=767?jQuery(".icon-categories-wrapper").removeClass("four three two one column").addClass("two column"):767<jQuery(this).width()&&jQuery(this).width()<=991?jQuery(".icon-categories-wrapper").removeClass("four three two one column").addClass("three column"):jQuery(".icon-categories-wrapper").removeClass("four three two one column").addClass("four column")}function wpj_init_social_share_vertical_panel(){var n,i,a,r;jQuery(".job-social-icons-wrapper")[0]&&767<jQuery(this).width()&&(n=jQuery(".job-social-icons-wrapper"),i=n.offset().top,a=n.height(),r=parseFloat(n.css("top")),jQuery(window).scroll(function(){var e=jQuery(".footer-wrapper").offset().top-a-54,t=jQuery(window).scrollTop();i+a<t&&n.css({top:r}),e-a<t&&n.css({top:e-t})}))}function wpj_init_social_share_modal(){getUrlParameter("published-job")&&jQuery(".ui.modal.share-job-modal-wrapper").modal("setting","transition","fly down").modal("show")}function initLiveNotifications(n){clearTimeout(ilnTimeoutHandle);n=void 0!==n?n:[];jQuery.ajax({type:"POST",url:0==wpj_vars.ligh_ajax_enabled?wpj_vars.ajaxurl:wpj_vars.light_ajax_url,data:{action:"check_live_site_changes_action",uid:wpj_vars.uid},success:function(e){var t;addNotify("new",e.notifications,"notifications-icon"),addNotify("new",e.messages,"messages-icon"),window.parent.postMessage({data:e},"*"),isNumeric(e.messages)&&0<e.messages&&e.notification_info&&("new_message"!=(t=JSON.parse(e.notification_info)).notify_type&&"custom_offer_paid_new"!=t.notify_type&&"decline_custom_offer"!=t.notify_type&&"widthdraw_custom_offer"!=t.notify_type||(jQuery(".page-id-"+wpj_vars.proposal_page_id)[0]&&(jQuery(".user-proposals-wrapper")[0]?refreshContent(".user-proposals-wrapper"):wpj_refresh_kadence_tab_content()),jQuery(".is-page-pm")[0]&&refreshContent(".thread-list-wrapper"),jQuery(".is-page-pm.is-page-pm-single")[0]&&jQuery('[data-interlocutor-id="'+t.user2+'"]')[0]&&refreshContent(".js-messages-list .kt-inside-inner-col:first"),wpj_vars.chat_enabled&&!jQuery(".is-page-pm")[0]&&addMessage(t))),isNumeric(e.notifications)&&0<e.notifications&&e.notification_info&&(t=JSON.parse(e.notification_info)).notify_type&&"new_message"!=t.notify_type&&"custom_offer_paid_new"!=t.notify_type&&"decline_custom_offer"!=t.notify_type&&"widthdraw_custom_offer"!=t.notify_type&&(jQuery(".js-notifications-list")[0]&&refreshContent(".js-notifications-list"),jQuery(".page-id-"+wpj_vars.order_page_id)[0]&&jQuery('[data-order-id="'+t.order_id+'"]')[0]&&(refreshContent(".order-header-action-buttons-wrapper"),refreshContent("#order-notification-messages-wrapper"),refreshContent(".order-message-form-buttons"),"order_accepted"!=t.notify_type&&"order_delivered"!=t.notify_type&&"order_complete"!=t.notify_type&&"extend_delivery_accept"!=t.notify_type||(refreshContent(".order-timer-wrapper"),"order_accepted"==t.notify_type&&refreshContent("#"+jQuery(".order-buyer-instructions-row-wrapper").siblings(".wp-block-kadence-rowlayout").children(".kt-row-layout-inner").attr("id")),"order_delivered"!=t.notify_type&&"order_complete"!=t.notify_type||(refreshContent("#order-message-form-wrapper"),refreshContent("#order-feedback-form-wrapper"))),"custom_extra_paid_new"==t.notify_type&&(refreshContent(".order-custom-extras-row-wrapper"),refreshContent(".order-processing-fees-row-wrapper"),refreshContent(".order-tax-row-wrapper"),refreshContent(".order-total-price-row-wrapper")),"tips_paid_new"==t.notify_type&&(refreshContent(".order-tips-row-wrapper"),refreshContent(".order-processing-fees-row-wrapper"),refreshContent(".order-tax-row-wrapper"),refreshContent(".order-total-price-row-wrapper")),"order_rejected"!=t.notify_type&&"mutual_cancellation_answer"!=t.notify_type||(refreshContent(".order-timer-wrapper"),refreshContent(".js-cancelled-order-wrapper"),refreshContent(".js-order-notices-wrapper"),refreshContent("#order-message-form-wrapper")),"new_feedback"==t.notify_type&&(refreshContent("#order-message-form-wrapper"),refreshContent("#order-feedback-form-wrapper")))),"1"==e.enabled&&(t=e.timeout,n.timeout>e.timeout&&(t=n.timeout<=e.max_timeout?n.timeout:e.max_timeout),e.notifications==n.notifications&&e.messages==n.messages?e.timeout+=t:t=e.timeout,clearTimeout(ilnTimeoutHandle),ilnTimeoutHandle=setTimeout(function(){initLiveNotifications(e)},t))},error:function(e,t,n){clearTimeout(ilnTimeoutHandle),ilnTimeoutHandle=setTimeout(function(){initLiveNotifications()},32e3)}})}function addNotify(e,t,n){var i="";isNumeric(t)&&0<t&&(i='<div class="unread-label digits"><span class="messages_count">'+(t=99<t?99:t)+"</span></div>"),jQuery("."+n+" .user-notification-icon-link").each(function(){jQuery(this).html(i)}),jQuery("."+n+".label").each(function(){0<t?jQuery(this).show():jQuery(this).hide(),jQuery(this).html(t)})}function addMessage(a){jQuery.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"receive_live_messages_action"},success:function(e){var t,n,i=jQuery('[rel="'+a.user2+'"]');i[0]?(i.find(".message-box-wrapper").hasClass("has-focus")||i.find(".message-box-wrapper").addClass("unread"),i.find(".pm-list").find(".no-results")[0]&&i.find(".pm-list").find(".no-results").text(""),i.find(".pm-list").find(".row")[0]&&("widthdraw_custom_offer"==a.notify_type||"decline_custom_offer"==a.notify_type||"custom_offer_paid_new"==a.notify_type?(t=i.find('.message-wrapper[data-pm-id="'+a.notify_id+'"]'))[0]&&(t.find(".custom-offer-response")[0]||("widthdraw_custom_offer"==a.notify_type&&(n=wpj_vars.withdrawn),"decline_custom_offer"==a.notify_type&&(n=wpj_vars.declined),"custom_offer_paid_new"==a.notify_type&&(n=wpj_vars.accepted),t.find(".message-custom-offer").append('<span class="ui mini right label custom-offer-response '+a.notify_type+'">'+n+"</span>"))):(i.find(".pm-list").find(".row").append('<div class="multiple-messages-wrapper">'+e+"</div>"),wpj_init_attachments_gallery())),i.find(".message-box-content")[0]&&i.find(".message-box-content").scrollTop(i.find(".message-box-content")[0].scrollHeight)):(wpj_chat_open_box(a.user2),playSound(wpj_vars.theme_path+"/assets/audio/new_message.ogg",wpj_vars.theme_path+"/assets/audio/new_message.mp3",wpj_vars.theme_path+"/assets/audio/new_message.m4a"))}})}function wpj_display_load_more_button(){".js-load-more-button"[0]&&(jQuery(".js-load-more-button").parent().parent().is("#main-wrapper")||jQuery(".js-load-more-button").parent().siblings().hasClass("grid-switch-absolute")&&jQuery(".js-load-more-button").parent().parent().addClass("mb75"),jQuery(".js-load-more-button.wpj-load-more").parent().addClass("pr"),jQuery(".js-load-more-button.wpj-load-more").show())}function wpj_init_load_more_automatically(){jQuery.fn.isOnScreen=function(){var e=jQuery(window),t={top:e.scrollTop(),left:e.scrollLeft()};t.right=t.left+e.width(),t.bottom=t.top+e.height();e=this.offset();return e.right=e.left+this.outerWidth(),e.bottom=e.top+this.outerHeight(),!(t.right<e.left||t.left>e.right||t.bottom<e.top||t.top>e.bottom)},jQuery(".auto-load")[0]&&jQuery(window).on("scroll",function(){!0===jQuery(".auto-load").isOnScreen()&&("none"==jQuery(".auto-load").css("display")||jQuery(".auto-load").hasClass("loading")||jQuery(".auto-load").trigger("click"))})}function wpj_init_load_more_messages(){jQuery(".js-messages-list")[0]&&jQuery(".pusher").on("mousewheel DOMMouseScroll scroll",".js-messages-list",function(){jQuery(this).scrollTop()-1<=jQuery(this).innerHeight()-jQuery(this)[0].scrollHeight&&jQuery(this).find(".js-load-more-icon").show().trigger("click"),0<=jQuery(this).scrollTop()&&jQuery(this).find(".js-load-more-icon-down").show().trigger("click")}),jQuery("#user_messages")[0]&&jQuery(".pusher").on("mousewheel DOMMouseScroll scroll",".pm-conversations-row-wrapper",function(){jQuery(this).scrollTop()+jQuery(this).innerHeight()+200>=jQuery(this)[0].scrollHeight&&(jQuery(this).find(".js-search-conversation-results")[0]||jQuery(this).find(".js-load-more-icon-down").show().trigger("click"))})}function wpj_geolocation_get(){navigator.geolocation&&navigator.geolocation.getCurrentPosition(wpj_geolocation_success)}function wpj_geolocation_success(e){var a,r,o,s,t,l=e.coords.latitude,c=e.coords.longitude;!jQuery(".js-location-autocomplete").length&&null!=jQuery.cookie("wpj_location")&&null!=jQuery.cookie("wpj_lat")&&null!=jQuery.cookie("wpj_lng")||(s=o=r=a="",wpj_vars.locations_api_key&&"google"===wpj_vars.locations_api&&"undefined"!=typeof google?(t=new google.maps.Geocoder,e=new google.maps.LatLng(l,c),t.geocode({latLng:e},function(e,t){if(t==google.maps.GeocoderStatus.OK&&e[1]){e:for(var n=0;n<e[0].address_components.length;n++)for(var i=0;i<e[0].address_components[n].types.length;i++)if(""!=a||"locality"!=e[0].address_components[n].types[i]&&"administrative_area_level_2"!=e[0].address_components[n].types[i]||(a=e[0].address_components[n].long_name),""==r&&"administrative_area_level_1"==e[0].address_components[n].types[i]&&(r=e[0].address_components[n].long_name),""==o&&"country"==e[0].address_components[n].types[i]&&(o=e[0].address_components[n].long_name),""!=a&&""!=r&&""!=o)break e;s=a,s+=""!=r?", "+r:"",wpj_geolocation_autofill(s+=""!=o?", "+o:"",l,c)}})):"tomtom"===wpj_vars.locations_api&&jQuery.ajax({type:"GET",url:"https://api.tomtom.com/search/2/reverseGeocode/"+l+","+c+".json?key="+wpj_vars.tomtom_api_key,dataType:"json",success:function(e){e.addresses[0]&&wpj_geolocation_autofill(s=e.addresses[0].address.freeformAddress,l,c)},error:function(e){console.log("Error: "+e)}}))}function wpj_geolocation_autofill(t,n,i){void 0!==t&&void 0!==n&&void 0!==i?(jQuery.cookie("wpj_location",t,{expires:7,path:"/"}),jQuery.cookie("wpj_lat",n,{expires:7,path:"/"}),jQuery.cookie("wpj_lng",i,{expires:7,path:"/"})):(t=jQuery.cookie("wpj_location"),n=jQuery.cookie("wpj_lat"),i=jQuery.cookie("wpj_lng")),""!=t&&""!=n&&""!=i&&jQuery(".js-location-autocomplete").length&&jQuery(".js-location-autocomplete").each(function(){var e=jQuery(this);e.is("input")||(e=e.find("input")),void 0!==getUrlParameter("location")||void 0!==getUrlParameter("latitude")||void 0!==getUrlParameter("longitude")||""!=e.val()&&!e.attr("data-autofilled")||e.is(":focus")||(e.attr("data-autofilled","true"),e.val(t).trigger("change"),e.next("input").val(n).trigger("change"),e.next("input").next("input").val(i).trigger("change")),e.focus(function(){e.removeAttr("data-autofilled")})})}function wpj_init_attachments_gallery(){jQuery(".js-pm-image-attachments-gallery")[0]&&jQuery(".js-pm-image-attachments-gallery").featherlightGallery({nextIcon:"&#9656;",previousIcon:"&#9666;",variant:"wpj-pm-image-attachments",openSpeed:100,closeSpeed:100,galleryFadeIn:100,galleryFadeOut:100})}function wpj_validate_video_url(e){return!!(e.match(/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/watch\?(?=.*v=((\w|-){11}))(?:\S+)?$/)||e.match(/^(?:https?:\/\/)?(?:www\.)?youtu\.be\/(((\w|-){11}))(?:\S+)?$/)||e.match(/^(?:https?:\/\/)?(?:www\.)?vimeo\.com\//))&&RegExp.$1}function wpj_add_fixed_menu_on_scroll(){"fixed"==wpj_vars.header_style&&(0<jQuery(window).scrollTop()?(jQuery(".header-wrapper").addClass("fixed sticky"),jQuery("html").addClass("fixed-header"),jQuery(".home.without-header:not(.logged-in)").find(".header-wrapper").find(".header-wrapper-top").addClass("fixed sticky")):(jQuery(".header-wrapper").removeClass("fixed sticky"),jQuery("html").removeClass("fixed-header"),jQuery(".home.without-header:not(.logged-in)").find(".header-wrapper").find(".header-wrapper-top").removeClass("fixed sticky"))),"fixed_top"==wpj_vars.header_style&&(0<jQuery(window).scrollTop()?(jQuery(".header-wrapper-top").addClass("fixed"),jQuery("html").addClass("fixed-top-header"),jQuery(".home.without-header:not(.logged-in)").find(".header-wrapper").find(".header-wrapper-top").addClass("fixed")):(jQuery(".header-wrapper-top").removeClass("fixed"),jQuery("html").removeClass("fixed-top-header"),jQuery(".home.without-header:not(.logged-in)").find(".header-wrapper").find(".header-wrapper-top").removeClass("fixed"))),"fixed_bottom"==wpj_vars.header_style&&(jQuery(window).scrollTop()>jQuery(".header-wrapper-top").height()?(jQuery(".header-wrapper-menu").addClass("fixed"),jQuery("html").addClass("fixed-bottom-header")):(jQuery(".header-wrapper-menu").removeClass("fixed"),jQuery("html").removeClass("fixed-bottom-header")),jQuery(".home.without-header:not(.logged-in)").find(".header-wrapper").css("position","absolute")),wpj_vars.header_style&&"regular"!=wpj_vars.header_style||jQuery(".home.without-header:not(.logged-in)").find(".header-wrapper").css("position","absolute")}function wpj_change_first_menu_item_alignment(){var e=!1;jQuery("ul.menu-list-with-children").children("li").each(function(){e&&e.offset().top!=jQuery(this).offset().top&&jQuery(this).find("ul").hasClass("right0")&&jQuery(this).find("ul").removeClass("right0").removeClass("mr10").addClass("left0"),e=jQuery(this)})}function wpj_change_main_menu_alignment_by_height(){jQuery(".categories-menu-list.menu")[0]&&1<=jQuery(".categories-menu-list.menu li").length&&jQuery(".categories-menu-list.menu").children("li").first().offset().top!=jQuery(".categories-menu-list.menu").children("li").last().offset().top&&jQuery(".categories-menu-list.menu").css("justify-content","unset")}function wpj_change_long_main_menu_alignment(){"1"==wpj_vars.long_menu_arrows&&(jQuery(".categories-menu-list").prop("scrollWidth")>jQuery("ul.categories-menu-list").prop("clientWidth")?(jQuery(".main-menu-wrapper").find(".arrows-wrapper").addClass("visible"),jQuery(".categories-menu-list").css("overflow","hidden"),jQuery(".main-menu-container.slider").find("ul").css("white-space","nowrap")):(jQuery(".main-menu-wrapper").find(".arrows-wrapper").removeClass("visible"),jQuery(".main-menu-container.slider").find("ul").css("overflow","visible"),jQuery(".main-menu-container.slider").find("ul").css("white-space","initial")))}function wpj_get_mobile_os(){var e=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(e)?"winphone":/android/i.test(e)?"android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"ios":""}function wpj_check_notifications(e,t){jQuery("."+t+":checked").length==jQuery("."+t).length?jQuery("#"+e).prop("checked",!0):jQuery("#"+e).prop("checked",!1)}function wpj_sms_countdown(e){var t,n;jQuery(".js-sms-countdown")[0]&&(t=(t=parseInt(wpj_vars.resend_sms_time))||0,t*=1e3,!localStorage.endTime&&e&&(localStorage.endTime=+new Date+t),n=setInterval(function(){var e=localStorage.endTime-new Date;0<=e?jQuery(".js-sms-countdown").text("("+Math.floor(e/1e3)+")"):(clearInterval(n),localStorage.endTime="",jQuery(".sms-countdown-wrapper").hide(),jQuery(".js-resend-sms-code").addClass("primary").addClass("cursor-pointer"))},100))}function wpj_init_order_click_actions(){var e=new Map;e.set("js-accept-order",{action:"accept_order_action"}),e.set("js-deny-order",{action:"deny_order_action"}),e.set("js-mark-order-delivered",{action:"mark_order_delivered_action"}),e.set("js-mark-order-completed",{action:"mark_order_completed_action"}),e.set("js-request-arbitration",{action:"request_arbitration_action"}),e.set("js-abort-arbitration-request",{action:"abort_arbitration_action"}),e.set("js-request-modification",{action:"request_modification_action"}),e.set("js-request-cancellation",{action:"request_cancellation_action"}),e.set("js-abort-cancellation-request",{action:"abort_cancellation_action"}),e.set("js-accept-cancellation-request",{action:"accept_cancellation_action"}),e.set("js-deny-cancellation-request",{action:"deny_cancellation_action"}),e.set("js-cancel-expired-order",{action:"cancel_expired_order_action"}),e.set("js-accept-custom-extra",{action:"accept_custom_extra_action"}),e.set("js-decline-custom-extra",{action:"decline_custom_extra_action"}),e.set("js-cancel-custom-extra",{action:"cancel_custom_extra_action"}),e.set("js-decline-custom-offer",{action:"decline_custom_offer_action"}),e.set("js-withdraw-custom-offer",{action:"withdraw_custom_offer_action"}),e.set("js-cancel-tip",{action:"cancel_tip_action"}),e.set("js-request-extended-delivery-time",{action:"request_extended_delivery_time_action"}),e.set("js-abort-extended-delivery-time-request",{action:"abort_extended_delivery_time_action"}),e.set("js-accept-extended-delivery-time-request",{action:"accept_extended_delivery_time_action"}),e.set("js-deny-extended-delivery-time-request",{action:"deny_extended_delivery_time_action"}),e.forEach((t,i)=>{jQuery(document).on("click","."+i,function(){var n=jQuery(this),e={action:t.action,oid:jQuery('input[name="oid"]').val()};"request_arbitration_action"==t.action?e.message_to_admin=jQuery("#message_to_admin").val():"request_modification_action"==t.action?e.message_request_modification=jQuery("#message_to_seller").val():"request_cancellation_action"==t.action?(e.message_to_buyer=jQuery("#message_to_buyer").val(),e.process_action=jQuery("#process_action").val()):"accept_cancellation_action"==t.action?e.accept="yes":"deny_cancellation_action"==t.action?e.accept="no":"accept_custom_extra_action"==t.action||"decline_custom_extra_action"==t.action||"cancel_custom_extra_action"==t.action?e.custom_extra=jQuery(this).attr("data-custom-extra"):"decline_custom_offer_action"==t.action||"withdraw_custom_offer_action"==t.action?(e.custom_offer=jQuery(this).attr("data-custom-offer"),e.pm_id=jQuery(this).attr("data-id")):"cancel_tip_action"==t.action?e.tips=jQuery(this).attr("data-tip"):"request_extended_delivery_time_action"==t.action&&(e.extended_days_message=jQuery("#extended_days_message").val(),e.extended_days_selector=jQuery("#extended_days_selector").val()),jQuery.ajax({type:"POST",url:wpj_vars.ajaxurl,data:e,beforeSend:function(){n.addClass("ui basic button loading dislabed"),"js-accept-order"!=i&&"js-deny-order"!=i&&"js-accept-cancellation-request"!=i&&"js-deny-cancellation-request"!=i&&"js-accept-extended-delivery-time-request"!=i&&"js-deny-extended-delivery-time-request"!=i||jQuery("."+i).parent().addClass("div-disabled"),n.parents(".ui.modal").find(".ui.message").removeClass("negative visible").addClass("hidden").html("")},success:function(e){var t;!e||"js-request-arbitration"!=i||1===(t=JSON.parse(e)).err&&n.parents(".ui.modal").find(".ui.message").removeClass("hidden").addClass("negative visible").html(t.msg),e&&(0==e||1===t.err)||(jQuery("#message_to_admin")[0]&&jQuery("#message_to_admin").val(""),jQuery("#message_to_seller")[0]&&jQuery("#message_to_seller").val(""),jQuery("#message_to_buyer")[0]&&jQuery("#message_to_buyer").val(""),jQuery("#extended_days_message")[0]&&jQuery("#extended_days_message").val(""),jQuery("#extended_days_selector")[0]&&jQuery("#extended_days_selector").dropdown("set selected",1),jQuery(".actions").find(".ui.button.disabled").removeClass("disabled"),n.parents(".ui.modal")[0]&&n.parents(".ui.modal").modal("hide"),jQuery(".page-id-"+wpj_vars.order_page_id)[0]&&(refreshContent(".order-header-action-buttons-wrapper"),refreshContent("#order-notification-messages-wrapper"),refreshContent(".order-message-form-buttons"),"js-accept-order"!=i&&"js-mark-order-delivered"!=i&&"js-mark-order-completed"!=i&&"js-accept-extended-delivery-time-request"!=i&&"js-decline-custom-extra"!=i||(refreshContent(".order-timer-wrapper"),"js-decline-custom-extra"!=i&&"js-mark-order-completed"!=i||(refreshContent("#order-message-form-wrapper"),refreshContent("#order-feedback-form-wrapper"))),"js-deny-order"!=i&&"js-accept-cancellation-request"!=i||(refreshContent(".order-timer-wrapper"),refreshContent(".js-cancelled-order-wrapper"),refreshContent(".js-order-notices-wrapper"),refreshContent("#order-message-form-wrapper"))),"js-decline-custom-offer"!=i&&"js-withdraw-custom-offer"!=i||(jQuery(".is-page-pm")[0]&&refreshContent(".thread-list-wrapper"),jQuery(".is-page-pm.is-page-pm-single")[0]&&refreshContent(".js-messages-list .kt-inside-inner-col:first"),jQuery(".page-id-"+wpj_vars.proposal_page_id)[0]&&(jQuery(".user-proposals-wrapper")[0]?refreshContent(".user-proposals-wrapper"):wpj_refresh_kadence_tab_content())))}})})})}function wpj_scroll_to_last_order_box(){jQuery(".order-box-wrapper ")[0]&&jQuery("html, body").animate({scrollTop:jQuery(".order-box-wrapper ").last().offset().top-150},2e3)}function wpj_change_pc_package_table_column_color(e){jQuery(".pc-packages .active").removeClass("active");var t=e.parents("tbody").siblings("thead").children("tr").children("th:nth("+e.index()+")").index();e.find(".ui.checkbox").checkbox("set checked"),e.parents("tbody").siblings("thead").children("tr").children("th:nth("+e.index()+")").addClass("active"),jQuery("td").filter(":nth-child("+(t+1)+")").addClass("active")}function wpj_load_package_custom_fields(){jQuery(".page-id-"+wpj_vars.new_job_page_id)[0]&&wpj_vars.pck_cf_name&&jQuery.each(JSON.parse(wpj_vars.pck_cf_name),function(e,t){0!=e&&""!=t&&jQuery("#add_pck_custom_field").trigger("click")})}function wpj_pck_disable_efd_delivery_days(){var n;"package"==jQuery('select[name="price_type"]').val()&&(n=0,jQuery('select[name="package_max_days[]"]').each(function(){jQuery(this).val()>n&&(n=parseInt(jQuery(this).val()))}),jQuery(".max_days_fast.ui.dropdown .menu .item").each(function(e,t){parseInt(n)&&parseInt(jQuery(t).data("value"))>=parseInt(n)?jQuery(t).addClass("disabled"):jQuery(t).removeClass("disabled")}))}function wpj_add_form_element(){1!=wpj_vars.is_user_logged_in&&(jQuery(".page-id-"+wpj_vars.register_page_id)[0]||jQuery(".js-user-register-modal")[0])&&jQuery(".kt-inside-inner-col")[0]&&(jQuery(".register-wrapper-row .wp-block-kadence-column.ui.form").find(".kt-inside-inner-col:first > *").wrapAll('<form action="'+wpj_vars.site_URL+'/wp-login.php?action=register" class="ui form js-register-form" method="post"></form>'),jQuery(".register-wrapper-row .wp-block-kadence-column.ui.form").removeClass("ui form")),1!=wpj_vars.is_user_logged_in&&(jQuery(".page-id-"+wpj_vars.lost_password_page_id)[0]||jQuery(".js-user-lost-password-modal")[0])&&jQuery(".kt-inside-inner-col")[0]&&(jQuery(".lost-password-wrapper-row .wp-block-kadence-column.ui.form").find(".kt-inside-inner-col:first > *").wrapAll('<form action="'+wpj_vars.site_URL+'/wp-login.php?action=lostpassword" class="ui form js-user-lost-password-modal" method="post"></form>'),jQuery(".lost-password-wrapper-row .wp-block-kadence-column.ui.form").removeClass("ui form")),jQuery(".page-id-"+wpj_vars.user_settings_page_id)[0]&&jQuery(".kt-tab-inner-content")[0]&&jQuery(".kt-tab-inner-content").each(function(){jQuery(this).find(".kt-tab-inner-content-inner:first > *").wrapAll('<form class="ui form" method="post" enctype="multipart/form-data"></form>')}),jQuery(".page-id-"+wpj_vars.new_request_page_id)[0]&&jQuery(".kt-inside-inner-col")[0]&&(jQuery(".post-new-wrapper").wrapAll('<form id="add-edit-request-form" class="ui form" method="post" enctype="multipart/form-data"></form>'),jQuery(".post-new-wrapper").find(".wp-block-kadence-column.ui.form").removeClass("ui form"),jQuery.fn.wpjTooltipInit(),jQuery.fn.wpjCalendarInit()),jQuery(".page-id-"+wpj_vars.new_job_page_id)[0]&&jQuery(".wp-block-kadence-tabs")[0]&&(jQuery(".post-new-wrapper").wrapAll('<form id="add-edit-job-form" class="ui form" method="post" enctype="multipart/form-data"></form>'),jQuery(".post-new-wrapper").find(".wp-block-kadence-column.ui.form").removeClass("ui form"),jQuery.fn.wpjTooltipInit()),Hooks.do_action("wpj_after_form_added_to_page_builder")}function wpj_reinit_kadence_tabs(){var e;jQuery('.wp-footer-scripts script[src*="kadence-blocks/includes/assets/js/kt-tabs.min.js"]')[0]&&(e=jQuery('.wp-footer-scripts script[src*="kadence-blocks/includes/assets/js/kt-tabs.min.js"]')[0].outerHTML,jQuery('.wp-footer-scripts script[src*="kadence-blocks/includes/assets/js/kt-tabs.min.js"]').remove(),jQuery(e).appendTo(".wp-footer-scripts"))}function wpj_change_kadence_active_tab(e){if(jQuery(".kt-tabs-title-list")[0]&&!jQuery(".page-id-"+wpj_vars.new_job_page_id)[0]&&!jQuery(".page-id-"+wpj_vars.new_request_page_id)[0]){if(void 0!==e||void 0!==(n=window.location.pathname.split(wpj_vars.page_name))[1]&&(e=n[1].split("/")[1]),jQuery("#"+e)[0]||(e=jQuery(".kt-tabs-title-list").find("li:first").attr("id")),jQuery("#"+e)[0]){var t=window.document.querySelector("#"+e),n=t.querySelector("a").getAttribute("data-tab"),t=t.closest(".kt-tabs-wrap");const i=t.querySelector(":scope > .kt-tabs-title-list > li.kt-tab-title-active a");i.parentElement.classList.replace("kt-tab-title-active","kt-tab-title-inactive"),i.setAttribute("tabindex","-1"),i.setAttribute("aria-selected","false"),t.className=t.className.replace(/\bkt-active-tab-\S+/g,"kt-active-tab-"+n);const a=t.querySelector(":scope > .kt-tabs-title-list > li.kt-title-item-"+n+" a");a.parentElement.classList.replace("kt-tab-title-inactive","kt-tab-title-active"),a.setAttribute("tabindex","0"),a.setAttribute("aria-selected","true"),t.querySelectorAll(":scope > .kt-tabs-content-wrap > .kt-tab-inner-content").forEach(e=>{e.style.display="none"}),t.querySelector(":scope > .kt-tabs-content-wrap > .kt-inner-tab-"+n).style.display="block",jQuery(".kt-tabs-title-list").siblings(".ui.dropdown").dropdown("set selected",e)}"function"==typeof jQuery.fn.wpjLazyLoadRender&&jQuery.fn.wpjLazyLoadRender()}}function wpj_refresh_kadence_tab_content(){jQuery(".kt-tabs-title-list")[0]&&jQuery(".kt-tabs-title-list li").each(function(){refreshContent("."+jQuery.trim(jQuery(this).find("a").attr("class")).split(/\s+/).join("."))}),jQuery(".kt-tabs-content-wrap")[0]&&refreshContent(".kt-tabs-content-wrap")}function wpj_hide_disabled_page_builder_post_new_fields(){jQuery(".post-new-optional-fields-row-wrapper")[0]&&jQuery(".post-new-optional-fields-row-wrapper").show(),!jQuery(".subcategory-field-wrapper")[0]||""==jQuery.trim(jQuery(".subcategory-field-wrapper").find("#request_subcategories").text())&&""==jQuery.trim(jQuery(".subcategory-field-wrapper").find("#job_subcategories").text())||jQuery(".subcategory-field-wrapper").find(".kt-inside-inner-col").show(),jQuery(".js-disabled-field")[0]&&jQuery(".js-disabled-field").each(function(){jQuery(this).parents(".kt-inside-inner-col").eq(0).hide(),jQuery(this).parents(".wp-block-kadence-column:first").siblings(".wp-block-kadence-column").find(".kt-inside-inner-col").text().length<=0&&jQuery(this).parents(".wp-block-kadence-rowlayout").eq(1).hide(),0<jQuery(this).parents(".wp-block-kadence-column:first").siblings(".wp-block-kadence-column").find(".js-disabled-field").length&&jQuery(this).parents(".wp-block-kadence-rowlayout").eq(1).hide(),jQuery(this).parents(".wp-block-kadence-column:first").siblings(".wp-block-kadence-column").find(".kt-inside-inner-col").find(".js-tooltip-handler").length<=0&&jQuery(this).parents(".wp-block-kadence-rowlayout").eq(0).hide(),0==jQuery(this).parents(".wp-block-kadence-rowlayout:first").siblings(".wp-block-kadence-rowlayout:visible").length&&jQuery(this).parents(".wp-block-kadence-rowlayout:first").siblings(".wp-block-kadence-spacer")[0]&&jQuery(this).parents(".wp-block-kadence-rowlayout").eq(1).hide()})}function wpj_add_user_cover_class(){jQuery(".user-profile-cover-row-wrapper")[0]&&(jQuery(".ub-cover-photo")[0]?jQuery(".user-profile-cover-row-wrapper").addClass("user-has-cover js-user-has-cover"):jQuery(".user-profile-cover-row-wrapper").removeClass("user-has-cover js-user-has-cover"))}function wpj_show_sellers_projects_carousel(){jQuery(".seller-projects-carousel-wrapper")[0]&&setTimeout(function(){jQuery(".seller-projects-carousel-wrapper").find(".kt-post-slider-item")[0]&&(jQuery(".seller-projects-carousel-wrapper").show(),jQuery(".jobs-images-carousel").hide())},100)}function wpj_init_send_custom_offer_page_builder_modal(){jQuery(".js-message-custom-offer-action-btn").attr("data-unique-id",jQuery(".pm-list").attr("data-uid"))}function wpj_show_contact_or_feature_button(){jQuery("body").is(".single.single-job.logged-in")?1==wpj_vars.featured_enable&&wpj_vars.uid==jQuery(".js-buy-job-button").attr("data-author")?jQuery(".wp-block-kadence-advancedbtn .kt-button.button.feature-button-link").css("display","flex"):wpj_vars.uid!=jQuery(".js-buy-job-button").attr("data-author")&&jQuery(".wp-block-kadence-advancedbtn .kt-button.button.contact-button-link").css("display","flex"):jQuery(".wp-block-kadence-advancedbtn .kt-button.button.contact-button-link").addClass("login-link").css("display","flex")}function wpj_focus_pm_input(){var e;jQuery(".is-page-pm-single")[0]&&(e=window.location.pathname.split("/").filter(Boolean).pop(),isNaN(e)&&(1==wpj_vars.pm_emoji_enabled?setTimeout(function(){jQuery(".emojionearea-editor").focus()},300):jQuery("#message-pm-user").focus()))}function wpj_send_message_with_enter(){jQuery(".ui.checkbox.send-message-enter-key")[0]&&jQuery(".ui.checkbox.send-message-enter-key").checkbox({onChange:function(){jQuery.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"save_pm_enter_key_action",value:!!jQuery("#pm-enter-key").is(":checked")},success:function(e){}})}})}function wpj_hide_admin_bar_on_pm_page(){jQuery(".is-page-pm")[0]?jQuery("html").attr("style","margin-top: 0 !important"):jQuery("html").removeAttr("style")}function wpj_search_conversation_user(e){var t=validateInputContent(jQuery(e).val().toLowerCase());jQuery("#user_messages .js-tpm-holder").each(function(){-1<jQuery(this).find(".pm-user").text().toLowerCase().search(t)?jQuery(this).show():jQuery(this).hide()}),"function"==typeof jQuery.fn.wpjLazyLoadRender&&jQuery.fn.wpjLazyLoadRender();e='<div class="p10 text-center">';0==jQuery("#user_messages .js-tpm-holder").children(":visible").length&&(e+="<p>"+wpj_vars.no_user_current_screen+"</p>"),e+="<p>"+wpj_vars.looking_recent_conversations+"</p>",e+='<a class="js-search-database-conversations cursor-pointer">',e+='<i class="search blue icon"></i>'+wpj_vars.search_older_conversations,e+="</a>",e+="</div>",jQuery("#no_messages").show().html(e)}function wpj_filter_message(e){return ret="",jQuery.ajax({url:wpj_vars.ajaxurl,type:"post",async:!1,data:{action:"filter_message_action",message:e},success:function(e){ret=e}}),ret}function wpj_move_conversation_top_by_url(){var e;jQuery(".is-page-pm.is-page-pm-single")[0]&&(e=window.location.pathname.split("/").filter(Boolean).pop(),jQuery("#user_messages .js-tpm-holder").each(function(){-1<jQuery(this).find(".pm-user").text().toLowerCase().search(e)&&(jQuery(".wpj-load-more-target")[0]?jQuery(this).detach().prependTo("#user_messages .wpj-load-more-target"):jQuery(this).detach().prependTo("#user_messages"))}))}function wpj_disable_deleted_user_sections(){jQuery(".is-page-pm.is-page-pm-single")[0]&&isNumeric(window.location.pathname.split("/").filter(Boolean).pop())&&(jQuery(".thread-input").addClass("div-disabled"),jQuery(".js-message-custom-offer-action-btn").addClass("div-disabled"))}function wpj_set_pm_page_height(){var e,t,n,i;jQuery(".is-page-pm")[0]&&(e=jQuery(window).height(),t=jQuery(".header-wrapper:visible").outerHeight(),n=jQuery(".header-wrapper:visible")[0].offsetHeight,i=jQuery(window).width()<=767?40:jQuery(window).width()<=1024?30:20,jQuery(".is-page-pm")[0]&&jQuery(".is-page-pm-single")[0]?jQuery(".pm-messages-row-wrapper").css("height",e-t-n-i):jQuery(".is-page-pm")[0]&&!jQuery(".is-page-pm-single")[0]&&jQuery(".pm-conversations-row-wrapper").css("height",e-t-n-i+10))}function wpj_init_quick_responses(){jQuery(".quick-response-dropdown").length&&jQuery(".ui.dropdown.quick-response-dropdown").dropdown({fullTextSearch:!0,message:{noResults:wpj_vars.nothing_found},onChange:function(e,t,n){wpj_insert_quick_response_to_textarea(n,jQuery(this))}})}function wpj_insert_quick_response_to_textarea(e,t){var n;e&&(n=jQuery(e).data("id"),e=JSON.parse(localStorage.getItem("last_quick_response")),n&&(e=(e=wpj_vars.quick_responses.hasOwnProperty(n)&&(!e||e[0]!=n||wpj_vars.quick_responses[n].content==e[2])?wpj_vars.quick_responses[n].content:e[2]).replace("{username}",t.attr("data-username")).replace(/\n/g,"<br />"),(t=wpj_get_editor_element(t)).html(e),t.focus(),document.execCommand ("selectAll",!1,null),document.getSelection().collapseToEnd()))}function wpj_get_editor_element(e){return e.parents(".emoji-enabled")[0]?e.parents(".emoji-enabled").find(".emojionearea-editor"):e.parents(".message-box-wrapper")[0]?e.parents(".message-box-wrapper").find(".message-field"):e.parents(".thread-input")[0]?e.parents(".thread-input").find(".message-field"):e.parents(".quick-response-wrapper").siblings(".message-field")}function wpj_validate_new_request_form(){jQuery.fn.form.settings.rules.request_budget=function(e){return!jQuery("#request_budget_to").val()||parseFloat(e)<parseFloat(jQuery("#request_budget_to").val())},jQuery.fn.form.settings.rules.request_date=function(e){return!jQuery("#request_end_date").val()||parseInt(jQuery('input[name="request_start_date"]').val())<=parseInt(jQuery('input[name="request_end_date"]').val())},jQuery.fn.form.settings.rules.request_deadline=function(e){return!jQuery("#request_deadline").val()||parseInt(jQuery('input[name="request_deadline"]').val())>=Math.floor(Date.now()/1e3)};var e={title:{identifier:"request_title",rules:[{type:"empty",prompt:wpj_vars.lbl_request_title_empty},{type:"minLength["+wpj_vars.characters_request_title_min+"]",prompt:wpj_vars.lbl_request_title_min},{type:"maxLength["+wpj_vars.characters_request_title_max+"]",prompt:wpj_vars.lbl_request_title_max}]},description:{identifier:"request_description",rules:[{type:"empty",prompt:wpj_vars.lbl_request_description_empty},{type:"minLength["+wpj_vars.characters_request_desc_min+"]",prompt:wpj_vars.lbl_request_description_min},{type:"maxLength["+wpj_vars.characters_request_desc_max+"]",prompt:wpj_vars.lbl_request_description_max}]},category:{identifier:"request_category",rules:[{type:"empty",prompt:wpj_vars.lbl_request_category}]},budget:{identifier:"request_budget_from",rules:[{type:"request_budget",prompt:wpj_vars.lbl_request_budget}]},date:{identifier:"request_start_date-old",rules:[{type:"request_date",prompt:wpj_vars.lbl_request_date}]},deadline:{identifier:"request_deadline-old",rules:[{type:"request_deadline",prompt:wpj_vars.lbl_request_deadline}]}},e=Hooks.apply_filters("wpj_fields_validation_filter",e,"request");jQuery("#add-edit-request-form").form({on:"blur",keyboardShortcuts:!1,fields:e,onSuccess:function(e){},onFailure:function(e){return 100<jQuery(window).scrollTop()&&jQuery("html, body").animate({scrollTop:0},800),!1}}),jQuery("#add-edit-request-form").form("validate form")}function wpj_init_on_resize(){wpj_change_long_main_menu_alignment(),wpj_chat_hide_sidebar_responsive(),wpj_add_responsive_classes_to_footer_elements(),wpj_change_user_account_table_responsive(),"function"==typeof jQuery.fn.wpjResizeReCaptchaInit&&jQuery.fn.wpjResizeReCaptchaInit(),wpj_collapse_footer_menus(),wpj_add_responsive_classes_to_homepage_elements(),"function"==typeof jQuery.fn.wpjLazyLoadRender&&jQuery.fn.wpjLazyLoadRender(),wpj_display_fully_visible_subcategoires()}function wpj_set_site_viewport(){var e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",e+"px"),jQuery(window).on("load resize",_.debounce(function(){var e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",e+"px")},200))}function wpj_init_on_scroll(){wpj_add_fixed_menu_on_scroll(),wpj_toggle_scroll_to_top_button()}function wpj_init_search_autocomplete_elements(){jQuery(".js-autocomplete-search").each(function(){var e,t=jQuery(this),n=t.find('input[type="text"]');n.on("keyup keydown keypress",function(){t.addClass("loading"),clearTimeout(e),e=setTimeout(function(){wpj_search_when_done_typing(t,n)},250)}),t.append('<div class="autocomplete-list-container"></div>');var i=t.find(".autocomplete-list-container");jQuery(document).on("click","html",function(e){i.slideUp(150)}),t.click(function(e){i.slideDown(150),e.stopPropagation()})})}function wpj_search_when_done_typing(a,e){function r(e,t,n){var i="",a="";""!=t&&(i='<div class="autocomplete-text">',a="</div>");var r="",o="",s="";return"autocomplete-search-jobs"==(n=""==n?"autocomplete":n)&&(r='<a href="'+wpj_vars.search_jobs_url+"?term="+t+'" class="js-internal">',o="</a>",s='<i class="search icon"></i>'),"autocomplete-search-requests"==n&&(r='<a href="'+wpj_vars.search_requests_url+"?term="+t+'" class="js-internal">',o="</a>",s='<i class="search icon"></i>'),"autocomplete-search-users"==n&&(r='<a href="'+wpj_vars.search_users_url+"?user="+t+'" class="js-internal">',o="</a>",s='<i class="search icon"></i>'),"autocomplete-user"==n&&(r='<a href="'+wpj_vars.user_profile_url+t+'" class="js-internal">',o="</a>",s='<i class="user icon"></i>'),'<div class="autocomplete-item">'+r+'<div class="'+n+'" data-input="'+t+'">'+i+s+e+a+"</div>"+o+"</div>"}var o=validateInputContent(e.val());jQuery.post(wpj_vars.ajaxurl,{action:"search_autocomplete_action",input:o},function(e){var t=JSON.parse(e),n="";if(""!=o&&" "!=o){if(n+='<div class="autocomplete-list">',wpj_vars.allow_job)if(n+=r(wpj_vars.jobs_label,"","autocomplete-title"),t.jobs.length)for(var i=0;i<t.jobs.length;i++)n+=r(t.jobs[i],t.jobs[i],"autocomplete-search-jobs");else n+=r(o,o,"autocomplete-search-jobs");if(wpj_vars.allow_request)if(n+=r(wpj_vars.requests_label,"","autocomplete-title"),t.requests.length)for(i=0;i<t.requests.length;i++)n+=r(t.requests[i],t.requests[i],"autocomplete-search-requests");else n+=r(o,o,"autocomplete-search-requests");if(wpj_vars.allow_users&&(n+=r(wpj_vars.users_label,"","autocomplete-title"),n+=r('<span class="no-highlight">'+wpj_vars.search_users_label+"</span> "+o,o,"autocomplete-search-users"),t.users.length))for(i=0;i<t.users.length;i++)t.companies.length?n+=r(t.users[i]+t.companies[i],t.users[i],"autocomplete-user"):n+=r(t.users[i],t.users[i],"autocomplete-user");n+="</div>"}a.find(".autocomplete-list-container").html(n),a.find(".autocomplete-list-container .autocomplete-item").each(function(){jQuery(this).find(".autocomplete-text").highlight(o)}),a.removeClass("loading"),jQuery("a.js-internal").off("click.js-internal").on("click.js-internal",function(){var e={isExternal:!1,isTargetBlank:!!jQuery(this).attr("target")&&"_blank"===jQuery(this).attr("target"),currentUrl:window.location.href,nextUrl:jQuery(this).attr("href")};window.parent.postMessage({data:e},"*")})})}function wpj_add_hash(e){history.pushState?history.pushState(null,null,e):location.hash=e}function wpj_init_post_new_steps(){var e=window.location.hash.replace("#step","#tab");e&&(jQuery(".js-tabs-wrapper .step.active").removeClass("active"),jQuery(e).addClass("active"),jQuery(".js-tabs-wrapper .js-tab-wrapper .tab.active").removeClass("active"),jQuery(jQuery(".js-tabs-wrapper .js-tab-wrapper .tab").get(jQuery(e).index())).addClass("active"),jQuery.fn.pageLoadToolTipInit())}function wpj_hide_disabled_post_new_fields(){jQuery(".js-displayed-field")[0]&&jQuery(".js-displayed-field").each(function(){jQuery(this).parents(".field").removeClass("hidden"),jQuery(this).parents(".fields").removeClass("hidden")})}function wpj_add_margin_bottom_to_legend(){jQuery(".js-legend-link").parents(".wpj-dashboard-table-wrapper").addClass("mb32")}function wpj_get_html_for_inputs(e,t,n){var i="";"languages"==t?i='\t\t\t<div class="new_item">\t\t\t\t<div class="ui input new-item-content w100">\t\t\t\t\t<input placeholder="'+wpj_vars.language_lbl+'" class="di up_language w50" type="text" name="language" />\t\t\t\t\t&nbsp;\t\t\t\t\t<select class="ui dropdown w50 up_proficiency" name="proficiency">\t\t\t\t\t\t<option value="elementary">'+wpj_vars.lbl_elementary+'</option>\t\t\t\t\t\t<option value="limited">'+wpj_vars.lbl_limited+'</option>\t\t\t\t\t\t<option value="professional">'+wpj_vars.lbl_professional+'</option>\t\t\t\t\t\t<option value="native">'+wpj_vars.lbl_native+"</option>\t\t\t\t\t</select>\t\t\t\t</div>\t\t\t</div>\t\t":"tagline"==t?i='\t\t\t<div class="tagline-temp">\t\t\t\t<div class="ui input"><input type="text" id="tmp_tagline" class="tmp_tagline" value="'+n+'" /></div>\t\t\t\t<a data-type="tagline" class="save-info">'+wpj_vars.save_lbl+"</a>\t\t\t</div>\t\t":"description"==t&&(null!=n&&!1!==n||(n=""),i=wpj_vars.wysiwyg_enabled?'<textarea class="tmp_description" id="tmp_description">'+n+'</textarea>\t\t\t\t\t\t\t\t<div id="tmp_description_toolbar" class="tmp_description-wysiwyg-toolbar">\t\t\t\t\t<a data-wysihtml5-command="bold"><i class="bordered bold icon"></i></a>\t\t\t\t\t<a data-wysihtml5-command="italic"><i class="bordered italic icon"></i></a>\t\t\t\t\t<a data-wysihtml5-command="underline"><i class="bordered underline icon"></i></a>\t\t\t\t\t<a data-wysihtml5-command="insertUnorderedList"><i class="bordered unordered list icon"></i></a>\t\t\t\t\t<a data-wysihtml5-command="insertOrderedList"><i class="bordered ordered list icon"></i></a>\t\t\t\t</div>\t\t\t':'<textarea class="tmp_description" id="tmp_description">'+n+"</textarea>"),jQuery(e).parents(".user-"+t+"-wrapper").find("."+t+"-content").append(i),jQuery(".ui.dropdown.up_proficiency").dropdown({message:{noResults:wpj_vars.nothing_found}})}function wpj_initialize_and_remove_textarea(e){if("initialize"==e)wpj_vars.wysiwyg_enabled?wpj_init_wysiwyg_textarea(1e3,"","","","tmp_description"):(jQuery("#tmp_description").height(jQuery("#tmp_description")[0].scrollHeight),jQuery("#tmp_description").focus());else{if("remove"!=e)return!1;wpj_vars.wysiwyg_enabled?(jQuery("#tmp_description").remove(),jQuery(".wysihtml5-sandbox").remove(),jQuery("#tmp_description_toolbar").remove()):jQuery("#tmp_description").remove()}}function wpj_get_ajax_data(e,t){"languages_new"==e?action="save_user_language_content":"languages_remove"==e?action="remove_user_language_content":"skills_new"==e?action="save_user_skill_content":"skills_remove"==e?action="remove_user_skill_content":"description_edit"==e?action="save_user_description_content":"tagline_edit"==e?action="save_user_tagline_content":"education_remove"==e?action="remove_user_education_content":"certification_remove"==e&&(action="remove_user_certification_content");return"languages_new"==e?{action:action,language:validateInputContent(jQuery(".up_language").val()),proficiency:validateInputContent(jQuery(".up_proficiency").dropdown("get value")),uid:jQuery(".content-wrapper").attr("data-uid")}:"skills_new"==e?{action:action,item:t,item_logo:jQuery(".skill-image-wrapper").attr("data-id"),uid:jQuery(".content-wrapper").attr("data-uid")}:{action:action,item:t,uid:jQuery(".content-wrapper").attr("data-uid")}}function wpj_send_via_ajax(e,t){jQuery.ajax({type:"POST",url:wpj_vars.ajaxurl,data:e,beforeSend:function(){void 0!==t&&addLoader(t)},success:function(){void 0!==t&&refreshContent(t)}})}function wpj_up_open_modal(t,n,e){return n=n||"new",jQuery(".up-"+t+"-modal-wrapper."+e.attr("data-indx")).modal({onShow:function(){var e="new"==n?wpj_vars.add_lbl:wpj_vars.edit_lbl;jQuery(".add-or-edit-title").html(e),"new"==n&&jQuery(".save-item").addClass("disabled"),jQuery(".user_from_year").val()&&jQuery(".user_to_year").find("option").each(function(){parseInt(jQuery(".user_from_year").val())&&parseInt(jQuery(this).val())>=parseInt(jQuery(".user_from_year").val())?jQuery(this).attr("disabled",!1):jQuery(this).attr("disabled",!0)}),jQuery(".user_to_year").val()&&jQuery(".user_from_year").find("option").each(function(){parseInt(jQuery(".user_to_year").val())&&parseInt(jQuery(this).val())<=parseInt(jQuery(".user_to_year").val())?jQuery(this).attr("disabled",!1):jQuery(this).attr("disabled",!0)}),"education"==t&&jQuery.fn.wpjUploadifiveUploaderInit()}}).modal("setting","transition","fly down").modal("show").modal("refresh"),!1}function wpj_hide_up_certification_not_expire(){jQuery(".certification-not-expire")[0]&&jQuery(".certification-not-expire").checkbox({onChecked:function(){jQuery(".user_to_year").dropdown("clear"),jQuery(".user_to_month").dropdown("clear"),jQuery(".to_year").addClass("disabled"),jQuery(".to_month").addClass("disabled")},onUnchecked:function(){jQuery(".to_year").removeClass("disabled"),jQuery(".to_month").removeClass("disabled")}})}function wpj_init_user_profile_tooltips(){jQuery(".content-wrapper")[0]&&jQuery(".content-wrapper").popup({on:"hover"})}function wpj_init_work_sample(){jQuery(".js-review-form").each(function(){var e=jQuery(this).find(".js-select-work-sample").first(),t=jQuery(this).find(".submit-user-rating");e.addClass("selected"),t.attr("data-sample",e.attr("data-id"))})}function loadContent(r,o,e){void 0===o&&(o="#main-wrapper");o=jQuery(o);void 0===e&&(e="#main-content");var s={};"blind"==wpj_vars.page_transition_effect||"drop"==wpj_vars.page_transition_effect||"shake"==wpj_vars.page_transition_effect||"slide"==wpj_vars.page_transition_effect?s={direction:wpj_vars.page_transition_direction}:"highlight"==wpj_vars.page_transition_effect?s={color:wpj_vars.page_transition_colour}:"scale"==wpj_vars.page_transition_effect?s={percent:50}:"size"==wpj_vars.page_transition_effect&&(s={to:{width:150,height:150}}),o.load(r+" "+e,function(e,t,n){wpj_vars.is_user_logged_in||(isMobile()?refreshContent(".header-wrapper.header-mobile .logo-holder"):refreshContent(".header-wrapper.header-pc"));const i=(new DOMParser).parseFromString(e,"text/html");var a;document.title=jQuery(e).filter("title").text(),jQuery("body").attr("class",i.body.getAttribute("class")),jQuery("#page-wrap").attr("class",jQuery(e).filter("#page-wrap").attr("class")),jQuery("meta").remove(),jQuery(e).filter("meta").each(function(){(jQuery(this).attr("name")?jQuery('<meta name="'+jQuery(this).attr("name")+'" content="'+jQuery(this).attr("content")+'">'):jQuery('<meta property="'+jQuery(this).attr("property")+'" content="'+jQuery(this).attr("content")+'">')).insertAfter("title")}),jQuery(".analytics-wrapper")[0]&&jQuery(e).find(".analytics-wrapper")[0]&&jQuery(".analytics-wrapper").replaceWith(jQuery(e).find(".analytics-wrapper")[0].outerHTML),jQuery(".categories-menu-list")[0]&&jQuery(e).find(".categories-menu-list")[0]&&jQuery(".categories-menu-list").replaceWith(jQuery(e).find(".categories-menu-list")[0].outerHTML),jQuery(i.head).find('link[href*="fonts.googleapis.com/css?family"]').each(function(){jQuery('head link[href="'+jQuery(this).attr("href")+'"]').length<=0&&jQuery('<link href="'+jQuery(this).attr("href")+'" rel="stylesheet">').appendTo("head")}),jQuery(e).find(".wp-footer-scripts").find("link").each(function(){jQuery(jQuery(this)[0].outerHTML).appendTo(".wp-footer-scripts")}),jQuery("#wpadminbar")[0]&&jQuery(e).find("#wpadminbar")[0]&&jQuery("#wpadminbar").replaceWith(jQuery(e).find("#wpadminbar")[0].outerHTML),jQuery("#wpj-front-scripts-js-extra")[0]&&jQuery(e).find("#wpj-front-scripts-js-extra")[0]&&jQuery("#wpj-front-scripts-js-extra").replaceWith(jQuery(e).find("#wpj-front-scripts-js-extra")[0].outerHTML),jQuery(".nh-submenu.preview-dropdown").hide(),(jQuery(".wp-block-kadence-rowlayout")[0]||jQuery(".wp-block-kadence-advancedheading")[0])&&(jQuery(i.head).find('link[href*="kadence-blocks"]').not('noscript link[href*="kadence-blocks"]').each(function(){jQuery('head link[href="'+jQuery(this).attr("href")+'"]').length<=0&&jQuery('\t\t\t\t\t\t<link rel="preload" href="'+jQuery(this).attr("href")+'" as="style" onload="this.onload=null;this.rel=\'stylesheet\'" />\t\t\t\t\t\t<noscript><link rel="stylesheet" href="'+jQuery(this).attr("href")+'"></noscript>\t\t\t\t\t').appendTo("head")}),jQuery(i.head).find('style[id^="kadence-blocks"]')[0]&&(jQuery("head").find('style[id^="kadence-blocks"]').remove(),jQuery(i.head).find('style[id^="kadence-blocks"]').each(function(){jQuery(jQuery(this)[0].outerHTML).appendTo("head")})),jQuery(i.head).find('style[id^="kadence_blocks"]')[0]&&(jQuery("head").find('style[id^="kadence_blocks"]').remove(),jQuery(i.head).find('style[id^="kadence_blocks"]').each(function(){jQuery(jQuery(this)[0].outerHTML).appendTo("head")})),jQuery(i.head).find('style[id^="kt-blocks_"]')[0]&&(jQuery("head").find('style[id^="kt-blocks_"]').remove(),jQuery(i.head).find('style[id^="kt-blocks_"]').each(function(){jQuery(jQuery(this)[0].outerHTML).appendTo("head")})),jQuery('.wp-footer-scripts script[src*="kadence-blocks"]').remove(),jQuery(e).find(".wp-footer-scripts").find('script[src*="kadence-blocks"]').each(function(){("kadence-blocks-advancedheading-js"!=jQuery(this).attr("id")||"kadence-blocks-advancedheading-js"==jQuery(this).attr("id")&&"undefined"==typeof kbAdvHeadingTypedListener)&&jQuery('<script src="'+jQuery(this).attr("src")+'" defer="defer" id="'+jQuery(this).attr("id")+'"><\/script>').appendTo(".wp-footer-scripts")}),jQuery(".js-user-account-search")[0]&&(jQuery(".wp-block-kadence-tabs").find(".js-user-account-search")[0]&&!jQuery(".page-id-"+wpj_vars.my_payments_page_id)[0]?jQuery(".wp-block-kadence-tabs").replaceWith(jQuery(e).find(".wp-block-kadence-tabs")[0].outerHTML):jQuery(".page-id-"+wpj_vars.my_payments_page_id)[0]?jQuery(".js-user-account-search").each(function(){jQuery(this).replaceWith(jQuery(e).find('.js-user-account-search[data-tab-name="'+jQuery(this).attr("data-tab-name")+'"]')[0].outerHTML)}):jQuery(".js-wpj-table-wrapper").replaceWith(jQuery(e).find(".js-wpj-table-wrapper")[0].outerHTML))),(jQuery(".aiosc-window")[0]||jQuery(".aiosc-ticket-list")[0])&&(jQuery('.wp-footer-scripts script[src*="di-aiosc"]').remove(),jQuery(e).find(".wp-footer-scripts").find('script[src*="di-aiosc"]').each(function(){jQuery('<script src="'+jQuery(this).attr("src")+'" defer="defer" id="'+jQuery(this).attr("id")+'"><\/script>').appendTo(".wp-footer-scripts")}),jQuery(".aiosc-window")[0]&&jQuery(e).find(".wp-footer-scripts").find("script").each(function(){(jQuery(this).attr("src")||jQuery(this).attr("id"))&&"wp-tinymce-root-js"!=jQuery(this).attr("id")&&"wp-tinymce-js"!=jQuery(this).attr("id")&&"utils-js"!=jQuery(this).attr("id")||jQuery(jQuery(this)[0].outerHTML).appendTo(".wp-footer-scripts")}),jQuery(".aiosc-ticket-preview")[0]&&(a="\t\t\t\t\t<script>\t\t\t\t\t\tjQuery(document).ready(function($){\t\t\t\t\t\t\taioscupload=new aioscUploader({\t\t\t\t\t\t\t\tul:'ul.aiosc-uploader-files',\t\t\t\t\t\t\t\tinputName:'attachments[]',\t\t\t\t\t\t\t\tmaxFileNameLen: 20,\t\t\t\t\t\t\t\tmaxFiles:"+wpj_vars.max_files_per_reply+"\t\t\t\t\t\t\t});\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery('#aiosc-premade-responses').appendTo(jQuery(' #wp-aiosc-content-wrap .wp-editor-tools') );\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(document).on('click', '#aiosc-premade-responses button', function(e){\t\t\t\t\t\t\t\te.preventDefault();\t\t\t\t\t\t\t\tvar sel=jQuery(this).parent().find('select');\t\t\t\t\t\t\t\tif(sel.val() > 0){\t\t\t\t\t\t\t\t\taiosc_insert_premade_response(sel, jQuery(this) );\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t})\t\t\t\t\t\t});\t\t\t\t\t<\/script>\t\t\t\t",jQuery(a).appendTo(".wp-footer-scripts"))),wpj_initialize_theme_scripts(),o.hide().show(wpj_vars.page_transition_effect,s,500),jQuery(e).find(".owl-carousel")[0]&&((a=document.createEvent("HTMLEvents")).initEvent("resize",!0,!1),document.dispatchEvent(a)),jQuery(".page-id-"+wpj_vars.new_job_page_id)[0]&&!getUrlParameter("jobid")?history.pushState(null,null,r+"?jobid="+jQuery('input[name="_wp_http_referer"]').val().split("=").pop()):jQuery(".page-id-"+wpj_vars.new_request_page_id)[0]&&!getUrlParameter("requestid")&&history.pushState(null,null,r+"?requestid="+jQuery('input[name="_wp_http_referer"]').val().split("=").pop()),jQuery(".tinyMCE-textarea-wrapper")[0]&&jQuery(e).find(".tinyMCE-textarea-wrapper")[0]&&addLoader(jQuery(".tinyMCE-textarea-wrapper").find("#wp-job_description-wrap")),jQuery(document).trigger("_load_ready"),setTimeout(function(){wpj_init_after_page_load(),wpj_init_tinyMCE_textarea(e)},100)})}function changeURL(e){"animation"==wpj_vars.page_transition&&"undefined"!=typeof Modernizr&&Modernizr.history?(history.pushState(null,null,e),loadContent(e)):window.location.href=e}function wpj_as_add_form_to_seller_account_verification_page(){jQuery(".js-as-account-verification-wrapper")[0]&&jQuery(".kt-inside-inner-col")[0]&&jQuery(".js-as-account-verification-wrapper").find(".kt-inside-inner-col:first > *").wrapAll('<form method="POST"></form>')}function wpj_aff_remove_ref_from_URL(){var e;getUrlParameter("ref")&&(e=document.location.href,window.history.pushState({},"",e.split("?")[0]))}function wpj_dsct_init_scripts(){var e=[];jQuery(".js-all-applied-codes")[0]&&jQuery(".js-all-applied-codes").val()&&(e=e.concat(jQuery(".js-all-applied-codes").val().split(","))),jQuery(".js-total-discounts-value")[0]&&jQuery(".total").each(function(){jQuery(this).attr("data-discount",jQuery(".js-total-discounts-value").val())}),!jQuery(".page-id-"+wpj_vars.checkout_page_id)[0]||jQuery('input[name="custom_extra"]')[0]||jQuery('input[name="tips"]')[0]||"function"==typeof wpj_update_purchase_price&&wpj_update_purchase_price("job_purchase"),jQuery(".js-discount-type")[0]&&jQuery(".js-discount-type").dropdown({onChange:function(e){"fixed"==e?(jQuery(".js-percent").hide(),jQuery(".js-fixed").show()):(jQuery(".js-percent").show(),jQuery(".js-fixed").hide())}}),getUrlParameter("discount")&&"edit"==getUrlParameter("action")&&(jQuery(".delete-coupon-button").css("display","flex"),jQuery(".js-delete-coupon").attr("data-code",getUrlParameter("discount")),jQuery(".js-create-new-coupon-label").text(wpj_vars.lbl_edit_coupon_details))}function wpj_dsct_update_price_after_discount(e,t){var n=0;return e-=n=t.attr("data-discount")?t.attr("data-discount")||0:n}function wpj_dsct_calculate_fee(e){var t=0,n=0;return"yes"==wpj_vars.subscription_enabled&&"yes"==wpj_vars.subscription_fees_enabled?t=(n=wpj_vars.subscription_fee&&isNumeric(wpj_vars.subscription_fee)?wpj_vars.subscription_fee:0)*e/100:"percent"==wpj_vars.enable_site_fee?(isNumeric(wpj_vars.percent_fee_taken)||(wpj_vars.percent_fee_taken=0),t=wpj_vars.percent_fee_taken*e/100):"fixed"==wpj_vars.enable_site_fee?t=isNumeric(wpj_vars.solid_fee_taken)?wpj_vars.solid_fee_taken:0:"flexible"==wpj_vars.enable_site_fee&&(0!=wpj_vars.uid?jQuery.ajax({type:"POST",async:!1,url:wpj_vars.ajaxurl,data:{action:"calculate_site_fee_action",price:e,pid:jQuery(document).find("[data-pid]").first().attr("data-pid")},success:function(e){e&&(n=e)}}):n=0,t=n*e/100),Math.round(100*t)/100}function wpj_dsct_number_to_price(e,t){var n=e.data("decimal")||".",i=e.data("thousands")||",",a=e.data("decimaldisplay")||"default",e=String(t.formatMoney(2,n,i));return"ifneeded"==a?e=isInt(t)?String(t.formatMoney(0,n,i)):String(t.formatMoney(2,n,i)):"never"==a&&(e=String(t.formatMoney(0,n,i))),e}function wpj_dsct_get_discount_by_price(e){return price_total="yes"!=wpj_vars.admin_discounts_to_seller_earnings&&1!=e.results.creator?wpj_dsct_calculate_fee(parseFloat(jQuery(".total").attr("data-price-with-extras"))):parseFloat(jQuery(".total").attr("data-price-with-extras")),discount="fixed"==e.results.type?(price=e.price,parseFloat(price)):(price=e.results.price,discount=price*price_total/100,parseFloat(discount)),discount}function wpj_dsct_add_form_to_discounts_page(){jQuery(".js-new-coupon-wrapper")[0]&&!jQuery("#post-new-coupon")[0]&&(jQuery(".js-new-coupon-wrapper").wrapAll('<form id="post-new-coupon" class="ui form" method="POST"></form>'),jQuery(".js-new-coupon-wrapper").find(".wp-block-kadence-column.ui.form").removeClass("ui form"),jQuery.fn.wpjCalendarInit())}function wpj_display_wise_connect_button(){refreshContent(".connection-status-wrapper")}function wpj_invoices_init_scripts(){var e;jQuery(".js-topup-order-invoice-button")[0]&&(e=window.location.href.replace(/\/+$/,"").split("/").pop(),jQuery(".js-topup-order-invoice-button").attr("href",wpj_vars.site_URL+"/invoice/topup/"+e))}function wpj_mlst_disable_efd_delivery_days(){var n=0;jQuery('select[name="delivery_days[]"]')[0]&&"milestone"==jQuery('select[name="price_type"]').val()&&(jQuery('select[name="delivery_days[]"]').each(function(){n+=parseInt(jQuery(this).val())}),jQuery(".max_days_fast.ui.dropdown .menu .item").each(function(e,t){parseInt(n)&&parseInt(jQuery(t).data("value"))>=parseInt(n)?jQuery(t).addClass("disabled"):jQuery(t).removeClass("disabled")}))}function wpj_mlst_init_scripts(){"milestone"==wpj_vars.is_milestone_type&&jQuery(".js-job-quantity-wrapper").hide(),jQuery(".deposit-amount:first").val(jQuery(".post-new-price").val()),void 0!==wpj_vars.job_milestones&&"[]"!==wpj_vars.job_milestones&&'""'!=wpj_vars.job_milestones&&(jQuery.each(JSON.parse(wpj_vars.job_milestones),function(e,t){var n;t&&((n=jQuery(".repeater-row:first").clone()).find("textarea").val(t.description),n.find(".ui.dropdown").dropdown("set selected",t.days),n.find(".deposit-amount").val(t.amount),n.appendTo(".milestone-table tbody"))}),jQuery(".ui.dropdown.delivery-days").dropdown(),jQuery.fn.wpjTooltipInit(),jQuery(".repeater-row:first").remove()),wpj_mlst_disable_efd_delivery_days()}function wpj_mlst_changes_on_price_type_changed(e){var t;t=jQuery('[data-handler-id="job_price"]').siblings("label")[0]?jQuery('[data-handler-id="job_price"]').siblings("label"):jQuery('[data-handler-id="job_price"]').siblings(".wp-block-kadence-advancedheading"),"milestone"==e?(t.attr("data-label",t.text()).append("&nbsp;"+wpj_vars.first_milestone),jQuery(".milestones-wrapper")[0]&&(jQuery(".fields")[0]&&(jQuery(".milestones-wrapper").parents(".field").removeClass("hidden"),jQuery(".milestones-wrapper").parents(".fields").removeClass("hidden")),jQuery(".milestones-wrapper").show()),wpj_mlst_disable_efd_delivery_days()):(t.attr("data-label")&&t.html(t.attr("data-label")),jQuery(".milestones-wrapper")[0]&&(jQuery(".fields")[0]&&(jQuery(".milestones-wrapper").parents(".field").addClass("hidden"),jQuery(".milestones-wrapper").parents(".fields").addClass("hidden")),jQuery(".milestones-wrapper").hide()))}function wpj_mlst_skip_instant_validation(e,t){"milestone"==e.val()&&(delete t.max_days,wpj_aoe_max_days_validation(e,t))}function wpj_mlst_skip_instant_validation_action(e){wpj_mlst_skip_instant_validation(jQuery('select[name="price_type"]'),e),jQuery(document).on("change",'select[name="price_type"]',function(){wpj_mlst_skip_instant_validation(jQuery(this),e)})}function wpj_mlst_change_max_days_value(e){var t;return"milestone"==jQuery('select[name="price_type"]').val()&&(t=0,jQuery('select[name="delivery_days[]"]').each(function(){t+=parseInt(jQuery(this).val())}),e=t),e}function wpj_mlst_validate_milestone_field(e,t){return"milestone"==jQuery('select[name="price_type"]').val()?(e.milestone_description={identifier:"milestone_description[]",rules:[{type:"empty",prompt:wpj_vars.empty_description}]},e.delivery_days={identifier:"delivery_days[]",rules:[{type:"empty",prompt:wpj_vars.empty_days}]},e.deposit_amount={identifier:"deposit_amount[]",rules:[{type:"empty",prompt:wpj_vars.empty_amount}]}):(delete e.milestone_description,delete e.delivery_days,delete e.deposit_amount),e}function wpj_sn_add_form_to_requests_notifications_page(){jQuery(".js-requests-notifications-wrapper")[0]&&jQuery(".kt-inside-inner-col")[0]&&jQuery(".js-requests-notifications-wrapper").find(".kt-inside-inner-col:first > *").wrapAll('<form method="POST" class="ui form"></form>')}function wpj_sn_init_scripts(){jQuery(".js-sn-enable-location")[0]&&jQuery(".js-sn-enable-location").parent().checkbox({onChecked:function(){jQuery(".js-location-wrapper input").prop("disabled",!1)},onUnchecked:function(){jQuery(".js-location-wrapper input").prop("disabled",!0)},fireOnInit:!0}),jQuery(".js-sn-enable-all-categories")[0]&&jQuery(".js-sn-enable-all-categories").parent().checkbox({onChecked(){var e=jQuery(".js-sn-categories option").toArray().map(e=>e.value);jQuery(".js-sn-categories").dropdown("set selected",e)},onUnchecked(){jQuery(".js-categories-wrapper .menu .item").each(function(){jQuery(this).removeClass("selected").removeClass("active").removeClass("filtered")}),jQuery(".js-categories-wrapper .ui.label").each(function(){jQuery(this).remove()}),jQuery(".js-sn-categories").dropdown("clear")}})}Base.extend=function(e,t){var n=Base.prototype.extend;Base._prototyping=!0;var i=new this;n.call(i,e),i.base=function(){},delete Base._prototyping;var a=i.constructor,r=i.constructor=function(){if(!Base._prototyping)if(this._constructing||this.constructor==r)this._constructing=!0,a.apply(this,arguments),delete this._constructing;else if(null!=arguments[0])return(arguments[0].extend||n).call(arguments[0],i)};return r.ancestor=this,r.extend=this.extend,r.forEach=this.forEach,r.implement=this.implement,r.prototype=i,r.toString=this.toString,r.valueOf=function(e){return"object"==e?r:a.valueOf()},n.call(r,t),"function"==typeof r.init&&r.init(),r},Base.prototype={extend:function(e,t){if(1<arguments.length){var n,i=this[e];!i||"function"!=typeof t||i.valueOf&&i.valueOf()==t.valueOf()||!/\bbase\b/.test(t)||(n=t.valueOf(),(t=function(){var e=this.base||Base.prototype.base;this.base=i;var t=n.apply(this,arguments);return this.base=e,t}).valueOf=function(e){return"object"==e?t:n},t.toString=Base.toString),this[e]=t}else if(e){var a=Base.prototype.extend;Base._prototyping||"function"==typeof this||(a=this.extend||a);for(var r,o={toSource:null},s=["constructor","toString","valueOf"],l=Base._prototyping?0:1;r=s[l++];)e[r]!=o[r]&&a.call(this,r,e[r]);for(r in e)o[r]||a.call(this,r,e[r])}return this}},Base=Base.extend({constructor:function(){this.extend(arguments[0])}},{ancestor:Object,version:"1.1",forEach:function(e,t,n){for(var i in e)void 0===this.prototype[i]&&t.call(n,e[i],i,e)},implement:function(){for(var e=0;e<arguments.length;e++)"function"==typeof arguments[e]?arguments[e](this.prototype):this.prototype.extend(arguments[e]);return this},toString:function(){return String(this.valueOf())}}),wysihtml5.browser=function(){var n,i,t=navigator.userAgent,r=document.createElement("div"),a=-1!==t.indexOf("MSIE")&&-1===t.indexOf("Opera"),e=-1!==t.indexOf("Gecko")&&-1===t.indexOf("KHTML"),o=-1!==t.indexOf("AppleWebKit/"),s=-1!==t.indexOf("Chrome/"),l=-1!==t.indexOf("Opera/");return{USER_AGENT:t,supported:function(){var e,t=this.USER_AGENT.toLowerCase(),n="contentEditable"in r,i=document.execCommand&&document.queryCommandSupported&&document.queryCommandState,a=document.querySelector&&document.querySelectorAll,t=this.isIos()&&+(/ipad|iphone|ipod/.test(e=t)&&e.match(/ os (\d+).+? like mac os x/)||[,0])[1]<5||this.isAndroid()&&+(t.match(/android (\d+)/)||[,0])[1]<4||-1!==t.indexOf("opera mobi")||-1!==t.indexOf("hpwos/");return n&&i&&a&&!t},isTouchDevice:function(){return this.supportsEvent("touchmove")},isIos:function(){return/ipad|iphone|ipod/i.test(this.USER_AGENT)},isAndroid:function(){return-1!==this.USER_AGENT.indexOf("Android")},supportsSandboxedIframes:function(){return a},throwsMixedContentWarningWhenIframeSrcIsEmpty:function(){return!("querySelector"in document)},displaysCaretInEmptyContentEditableCorrectly:function(){return a},hasCurrentStyleProperty:function(){return"currentStyle"in r},hasHistoryIssue:function(){return e},insertsLineBreaksOnReturn:function(){return e},supportsPlaceholderAttributeOn:function(e){return"placeholder"in e},supportsEvent:function(e){return"on"+e in r||(r.setAttribute("on"+e,"return;"),"function"==typeof r["on"+e])},supportsEventsInIframeCorrectly:function(){return!l},supportsHTML5Tags:function(e){var t=e.createElement("div"),e="<article>foo</article>";return t.innerHTML=e,t.innerHTML.toLowerCase()===e},supportsCommand:(n={formatBlock:a,insertUnorderedList:a||o,insertOrderedList:a||o},i={insertHTML:e},function(e,t){if(!n[t]){try{return e.queryCommandSupported(t)}catch(e){}try{return e.queryCommandEnabled(t)}catch(e){return!!i[t]}}return!1}),doesAutoLinkingInContentEditable:function(){return a},canDisableAutoLinking:function(){return this.supportsCommand (document,"AutoUrlDetect")},clearsContentEditableCorrectly:function(){return e||l||o},supportsGetAttributeCorrectly:function(){return"1"!=document.createElement("td").getAttribute("rowspan")},canSelectImagesInContentEditable:function(){return e||a||l},autoScrollsToCaret:function(){return!o},autoClosesUnclosedTags:function(){var e,t=r.cloneNode(!1);return t.innerHTML="<p><div></div>",t=t.innerHTML.toLowerCase(),e="<p></p><div></div>"===t||"<p><div></div></p>"===t,this.autoClosesUnclosedTags=function(){return e},e},supportsNativeGetElementsByClassName:function(){return-1!==String(document.getElementsByClassName).indexOf("[native code]")},supportsSelectionModify:function(){return"getSelection"in window&&"modify"in window.getSelection()},needsSpaceAfterLineBreak:function(){return l},supportsSpeechApiOn:function(e){return 11<=(t.match(/Chrome\/(\d+)/)||[,0])[1]&&("onwebkitspeechchange"in e||"speech"in e)},crashesWhenDefineProperty:function(e){return a&&("XMLHttpRequest"===e||"XDomainRequest"===e)},doesAsyncFocus:function(){return a},hasProblemsSettingCaretAfterImg:function(){return a},hasUndoInContextMenu:function(){return e||s||l},hasInsertNodeIssue:function(){return l},hasIframeFocusIssue:function(){return a}}}(),wysihtml5.lang.array=function(a){return{contains:function(e){if(a.indexOf)return-1!==a.indexOf(e);for(var t=0,n=a.length;t<n;t++)if(a[t]===e)return!0;return!1},without:function(e){e=wysihtml5.lang.array(e);for(var t=[],n=0,i=a.length;n<i;n++)e.contains(a[n])||t.push(a[n]);return t},get:function(){for(var e=0,t=a.length,n=[];e<t;e++)n.push(a[e]);return n}}},wysihtml5.lang.Dispatcher=Base.extend({on:function(e,t){return this.events=this.events||{},this.events[e]=this.events[e]||[],this.events[e].push(t),this},off:function(e,t){this.events=this.events||{};var n,i,a=0;if(e){for(n=this.events[e]||[],i=[];a<n.length;a++)n[a]!==t&&t&&i.push(n[a]);this.events[e]=i}else this.events={};return this},fire:function(e,t){this.events=this.events||{};for(var n=this.events[e]||[],i=0;i<n.length;i++)n[i].call(this,t);return this},observe:function(){return this.on.apply(this,arguments)},stopObserving:function(){return this.off.apply(this,arguments)}}),wysihtml5.lang.object=function(n){return{merge:function(e){for(var t in e)n[t]=e[t];return this},get:function(){return n},clone:function(){var e,t={};for(e in n)t[e]=n[e];return t},isArray:function(){return"[object Array]"===Object.prototype.toString.call(n)}}},function(){var e=/^\s+/,t=/\s+$/;wysihtml5.lang.string=function(n){return n=String(n),{trim:function(){return n.replace(e,"").replace(t,"")},interpolate:function(e){for(var t in e)n=this.replace("#{"+t+"}").by(e[t]);return n},replace:function(t){return{by:function(e){return n.split(t).join(e)}}}}}}(),function(r){var o=r.lang.array(["CODE","PRE","A","SCRIPT","HEAD","TITLE","STYLE"]),s=/((https?:\/\/|www\.)[^\s<]{3,})/gi,l=/([^\w\/\-](,?))$/i,c={")":"(","]":"[","}":"{"};function u(e){var t,n=e.parentNode,i=(t=n.ownerDocument)._wysihtml5_tempElement||(t._wysihtml5_tempElement=t.createElement("div"));for(i.innerHTML="<span></span>"+e.data.replace(s,function(e,t){var n=(t.match(l)||[])[1]||"",i=c[n];(t=t.replace(l,"")).split(i).length>t.split(n).length&&(t+=n,n="");var a=t,i=t;return 100<t.length&&(i=i.substr(0,100)+"..."),'<a href="'+(a="www."===a.substr(0,4)?"http://"+a:a)+'">'+i+"</a>"+n}),i.removeChild(i.firstChild);i.firstChild;)n.insertBefore(i.firstChild,e);n.removeChild(e)}r.dom.autoLink=function(e){return function(e){var t;for(;e.parentNode;){if(e=e.parentNode,t=e.nodeName,o.contains(t))return!0;if("body"===t)return!1}return!1}(e)?e:function e(t){if(o.contains(t.nodeName))return;if(t.nodeType===r.TEXT_NODE&&t.data.match(s))return void u(t);var n=r.lang.array(t.childNodes).get(),i=n.length,a=0;for(;a<i;a++)e(n[a]);return t}(e=e===e.ownerDocument.documentElement?e.ownerDocument.body:e)},r.dom.autoLink.URL_REG_EXP=s}(wysihtml5),function(){var i=wysihtml5.dom;i.addClass=function(e,t){var n=e.classList;if(n)return n.add(t);i.hasClass(e,t)||(e.className+=" "+t)},i.removeClass=function(e,t){var n=e.classList;if(n)return n.remove(t);e.className=e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ")},i.hasClass=function(e,t){var n=e.classList;if(n)return n.contains(t);e=e.className;return 0<e.length&&(e==t||new RegExp("(^|\\s)"+t+"(\\s|$)").test(e))}}(),wysihtml5.dom.contains=function(){var e=document.documentElement;return e.contains?function(e,t){return e!==(t=t.nodeType!==wysihtml5.ELEMENT_NODE?t.parentNode:t)&&e.contains(t)}:e.compareDocumentPosition?function(e,t){return!!(16&e.compareDocumentPosition(t))}:void 0}(),wysihtml5.dom.convertToList=function(){function m(e,t){e=e.createElement("li");return t.appendChild(e),e}return function(e,t){if("UL"===e.nodeName||"OL"===e.nodeName||"MENU"===e.nodeName)return e;for(var n,i,a,r,o,s,l,c,u=e.ownerDocument,d=u.createElement(t),p=e.querySelectorAll("br"),h=p.length,f=0;f<h;f++)for(r=p[f];(o=r.parentNode)&&o!==e&&o.lastChild===r;){if("block"===wysihtml5.dom.getStyle("display").from(o)){o.removeChild(r);break}wysihtml5.dom.insert(r).after(r.parentNode)}for(i=(n=wysihtml5.lang.array(e.childNodes).get()).length,f=0;f<i;f++)c=c||m(u,d),a=n[f],s="block"===wysihtml5.dom.getStyle("display").from(a),l="BR"===a.nodeName,s?((c=c.firstChild?m(u,d):c).appendChild(a),c=null):l?c=c.firstChild?null:c:c.appendChild(a);return 0===n.length&&m(u,d),e.parentNode.replaceChild(d,e),d}}(),wysihtml5.dom.copyAttributes=function(r){return{from:function(a){return{to:function(e){for(var t,n=0,i=r.length;n<i;n++)t=r[n],void 0!==a[t]&&""!==a[t]&&(e[t]=a[t]);return{andTo:arguments.callee}}}}}},function(o){function s(e){return!!function(e){for(var t=0,n=l.length;t<n;t++)if(o.getStyle(l[t]).from(e)==="border-box")return l[t]}(e)&&parseInt(o.getStyle("width").from(e),10)<e.offsetWidth}var l=["-webkit-box-sizing","-moz-box-sizing","-ms-box-sizing","box-sizing"];o.copyStyles=function(r){return{from:function(e){s(e)&&(r=wysihtml5.lang.array(r).without(l));for(var t,n="",i=r.length,a=0;a<i;a++)t=r[a],n+=t+":"+o.getStyle(t).from(e)+";";return{to:function(e){return o.setStyles(n).on(e),{andTo:arguments.callee}}}}}}}(wysihtml5.dom),function(o){o.dom.delegate=function(i,a,e,r){return o.dom.observe(i,e,function(e){for(var t=e.target,n=o.lang.array(i.querySelectorAll(a));t&&t!==i;){if(n.contains(t)){r.call(t,e);break}t=t.parentNode}})}}(wysihtml5),wysihtml5.dom.getAsDom=function(){var i=["abbr","article","aside","audio","bdi","canvas","command","datalist","details","figcaption","figure","footer","header","hgroup","keygen","mark","meter","nav","output","progress","rp","rt","ruby","svg","section","source","summary","time","track","video","wbr"];return function(e,t){var n;return t=t||document,"object"==typeof e&&e.nodeType?(n=t.createElement("div")).appendChild(e):wysihtml5.browser.supportsHTML5Tags(t)?(n=t.createElement("div")).innerHTML=e:(function(e){if(!e._wysihtml5_supportsHTML5Tags){for(var t=0,n=i.length;t<n;t++)e.createElement(i[t]);e._wysihtml5_supportsHTML5Tags=!0}}(t),n=function(e,t){var n=t.createElement("div");n.style.display="none",t.body.appendChild(n);try{n.innerHTML=e}catch(e){}return t.body.removeChild(n),n}(e,t)),n}}(),wysihtml5.dom.getParentElement=function(){function s(e,t){return!t||!t.length||("string"==typeof t?e===t:wysihtml5.lang.array(t).contains(e))}function i(e,t,n,i,a){for(;a--&&e&&"BODY"!==e.nodeName;){if(e.nodeType===wysihtml5.ELEMENT_NODE&&s(e.nodeName,t)&&(r=n,o=i,o=(e.className||"").match(o)||[],r?o[o.length-1]===r:o.length))return e;e=e.parentNode}var r,o;return null}return function(e,t,n){return n=n||50,t.className||t.classRegExp?i(e,t.nodeName,t.className,t.classRegExp,n):function(e,t,n){for(;n--&&e&&"BODY"!==e.nodeName;){if(s(e.nodeName,t))return e;e=e.parentNode}return null}(e,t.nodeName,n)}}(),wysihtml5.dom.getStyle=function(){var l={float:"styleFloat"in document.createElement("div").style?"styleFloat":"cssFloat"},c=/\-[a-z]/g;return function(s){return{from:function(e){if(e.nodeType===wysihtml5.ELEMENT_NODE){var t=e.ownerDocument,n=l[s]||s.replace(c,function(e){return e.charAt(1).toUpperCase()}),i=e.style,a=e.currentStyle,r=i[n];if(r)return r;if(a)try{return a[n]}catch(e){}var o,n=t.defaultView||t.parentWindow,t=("height"===s||"width"===s)&&"TEXTAREA"===e.nodeName;return n.getComputedStyle?(t&&(o=i.overflow,i.overflow="hidden"),e=n.getComputedStyle(e,null).getPropertyValue(s),t&&(i.overflow=o||""),e):void 0}}}}}(),wysihtml5.dom.hasElementWithTagName=function(){var i={},a=1;return function(e,t){var n=((n=e)._wysihtml5_identifier||(n._wysihtml5_identifier=a++))+":"+t;return 0<(i[n]||(i[n]=e.getElementsByTagName(t))).length}}(),function(i){var a={},r=1;i.dom.hasElementWithClassName=function(e,t){if(!i.browser.supportsNativeGetElementsByClassName())return!!e.querySelector("."+t);var n=((n=e)._wysihtml5_identifier||(n._wysihtml5_identifier=r++))+":"+t;return 0<(a[n]||(a[n]=e.getElementsByClassName(t))).length}}(wysihtml5),wysihtml5.dom.insert=function(t){return{after:function(e){e.parentNode.insertBefore(t,e.nextSibling)},before:function(e){e.parentNode.insertBefore(t,e)},into:function(e){e.appendChild(t)}}},wysihtml5.dom.insertCSS=function(i){return i=i.join("\n"),{into:function(e){var t=e.createElement("style");t.type="text/css",t.styleSheet?t.styleSheet.cssText=i:t.appendChild(e.createTextNode(i));var n=e.querySelector("head link");n?n.parentNode.insertBefore(t,n):(e=e.querySelector("head"))&&e.appendChild(t)}}},wysihtml5.dom.observe=function(i,a,r){for(var o,e,t=0,n=(a="string"==typeof a?[a]:a).length;t<n;t++)e=a[t],i.addEventListener?i.addEventListener(e,r,!1):(o=function(e){"target"in e||(e.target=e.srcElement),e.preventDefault=e.preventDefault||function(){this.returnValue=!1},e.stopPropagation=e.stopPropagation||function(){this.cancelBubble=!0},r.call(i,e)},i.attachEvent("on"+e,o));return{stop:function(){for(var e,t=0,n=a.length;t<n;t++)e=a[t],i.removeEventListener?i.removeEventListener(e,r,!1):i.detachEvent("on"+e,o)}}},wysihtml5.dom.parse=function(){var c={1:function(e){var t,n=b.tags,i=e.nodeName.toLowerCase(),a=e.scopeName;if(e._wysihtml5)return null;if(e._wysihtml5=1,"wysihtml5-temp"===e.className)return null;a&&"HTML"!=a&&(i=a+":"+i);"outerHTML"in e&&(wysihtml5.browser.autoClosesUnclosedTags()||"P"!==e.nodeName||"</p>"===e.outerHTML.slice(-4).toLowerCase()||(i="div"));if(i in n){if(!(t=n[i])||t.remove)return null;t="string"==typeof t?{rename_tag:t}:t}else{if(!e.firstChild)return null;t={rename_tag:u}}return i=e.ownerDocument.createElement(t.rename_tag||i),function(e,t,n){var i,a,r,o,s,l,c,u={},d=n.set_class,p=n.add_class,h=n.set_attributes,f=n.check_attributes,m=b.classes,_=0,g=[],y=[],v=[],n=[];h&&(u=wysihtml5.lang.object(h).clone());if(f)for(s in f)(c=k[f[s]])&&"string"==typeof(l=c(j(e,s)))&&(u[s]=l);d&&g.push(d);if(p)for(s in p)(c=x[p[s]])&&"string"==typeof(o=c(j(e,s)))&&g.push(o);m["_wysihtml5-temp-placeholder"]=1,(n=e.getAttribute("class"))&&(g=g.concat(n.split(w)));for(i=g.length;_<i;_++)r=g[_],m[r]&&y.push(r);a=y.length;for(;a--;)r=y[a],wysihtml5.lang.array(v).contains(r)||v.unshift(r);v.length&&(u.class=v.join(" "));for(s in u)try{t.setAttribute(s,u[s])}catch(e){}u.src&&(void 0!==u.width&&t.setAttribute("width",u.width),void 0!==u.height&&t.setAttribute("height",u.height))}(e,i,t),e=null,i},3:function(e){return e.ownerDocument.createTextNode(e.data)}},u="span",w=/\s+/,s={tags:{},classes:{}},b={};var n=!wysihtml5.browser.supportsGetAttributeCorrectly();function j(e,t){return t=t.toLowerCase(),"IMG"==e.nodeName&&"src"==t&&!0===function(t){try{return t.complete&&!t.mozMatchesSelector(":-moz-broken")}catch(e){if(t.complete&&"complete"===t.readyState)return!0}}(e)?e.src:!(n&&"outerHTML"in e)||-1!=e.outerHTML.toLowerCase().indexOf(" "+t+"=")?e.getAttribute(t):null}var t,i,a,r,o,l,d,p,h,k={url:(o=/^https?:\/\//i,function(e){return e&&e.match(o)?e.replace(o,function(e){return e.toLowerCase()}):null}),src:(r=/^(\/|https?:\/\/)/i,function(e){return e&&e.match(r)?e.replace(r,function(e){return e.toLowerCase()}):null}),href:(a=/^(\/|https?:\/\/|mailto:)/i,function(e){return e&&e.match(a)?e.replace(a,function(e){return e.toLowerCase()}):null}),alt:(i=/[^ a-z0-9_\-]/gi,function(e){return e?e.replace(i,""):""}),numbers:(t=/\D/g,function(e){return(e=(e||"").replace(t,""))||null})},x={align_img:(h={left:"wysiwyg-float-left",right:"wysiwyg-float-right"},function(e){return h[String(e).toLowerCase()]}),align_text:(p={left:"wysiwyg-text-align-left",right:"wysiwyg-text-align-right",center:"wysiwyg-text-align-center",justify:"wysiwyg-text-align-justify"},function(e){return p[String(e).toLowerCase()]}),clear_br:(d={left:"wysiwyg-clear-left",right:"wysiwyg-clear-right",both:"wysiwyg-clear-both",all:"wysiwyg-clear-both"},function(e){return d[String(e).toLowerCase()]}),size_font:(l={1:"wysiwyg-font-size-xx-small",2:"wysiwyg-font-size-small",3:"wysiwyg-font-size-medium",4:"wysiwyg-font-size-large",5:"wysiwyg-font-size-x-large",6:"wysiwyg-font-size-xx-large",7:"wysiwyg-font-size-xx-large","-":"wysiwyg-font-size-smaller","+":"wysiwyg-font-size-larger"},function(e){return l[String(e).charAt(0)]})};return function(e,t,n,i){wysihtml5.lang.object(b).merge(s).merge(t).get();for(var a,r=(n=n||e.ownerDocument||document).createDocumentFragment(),o=(t="string"==typeof e)?wysihtml5.dom.getAsDom(e,n):e;o.firstChild;)a=o.firstChild,o.removeChild(a),(a=function e(t,n){var i,a,r=t.nodeType,o=t.childNodes,s=o.length,r=c[r],l=0;i=r&&r(t);if(!i)return null;for(l=0;l<s;l++)(a=e(o[l],n))&&i.appendChild(a);if(n&&i.childNodes.length<=1&&i.nodeName.toLowerCase()===u&&!i.attributes.length)return i.firstChild;return i}(a,i))&&r.appendChild(a);return o.innerHTML="",o.appendChild(r),t?wysihtml5.quirks.getCorrectInnerHTML(o):o}}(),wysihtml5.dom.removeEmptyTextNodes=function(e){for(var t,n=wysihtml5.lang.array(e.childNodes).get(),i=n.length,a=0;a<i;a++)(t=n[a]).nodeType===wysihtml5.TEXT_NODE&&""===t.data&&t.parentNode.removeChild(t)},wysihtml5.dom.renameElement=function(e,t){for(var n,i=e.ownerDocument.createElement(t);n=e.firstChild;)i.appendChild(n);return wysihtml5.dom.copyAttributes(["align","className"]).from(e).to(i),e.parentNode.replaceChild(i,e),i},wysihtml5.dom.replaceWithChildNodes=function(e){if(e.parentNode)if(e.firstChild){for(var t=e.ownerDocument.createDocumentFragment();e.firstChild;)t.appendChild(e.firstChild);e.parentNode.replaceChild(t,e)}else e.parentNode.removeChild(e)},function(t){function u(e){return"block"===t.getStyle("display").from(e)}function d(e){var t=e.ownerDocument.createElement("br");e.appendChild(t)}t.resolveList=function(e,t){if(e.nodeName.match(/^(MENU|UL|OL)$/)){var n,i,a,r,o,s=e.ownerDocument,l=s.createDocumentFragment(),c=e.previousElementSibling||e.previousSibling;if(t)for(c&&!u(c)&&d(l);o=e.firstElementChild||e.firstChild;){for(i=o.lastChild;n=o.firstChild;)a=n===i&&!u(n)&&!("BR"===n.nodeName),l.appendChild(n),a&&d(l);o.parentNode.removeChild(o)}else for(;o=e.firstElementChild||e.firstChild;){if(o.querySelector&&o.querySelector("div, p, ul, ol, menu, blockquote, h1, h2, h3, h4, h5, h6"))for(;n=o.firstChild;)l.appendChild(n);else{for(r=s.createElement("p");n=o.firstChild;)r.appendChild(n);l.appendChild(r)}o.parentNode.removeChild(o)}e.parentNode.replaceChild(l,e)}}}(wysihtml5.dom),function(s){var l=document,c=["parent","top","opener","frameElement","frames","localStorage","globalStorage","sessionStorage","indexedDB"],u=["open","close","openDialog","showModalDialog","alert","confirm","prompt","openDatabase","postMessage","XMLHttpRequest","XDomainRequest"],d=["referrer","write","open","close"];s.dom.Sandbox=Base.extend({constructor:function(e,t){this.callback=e||s.EMPTY_FUNCTION,this.config=s.lang.object({}).merge(t).get(),this.iframe=this._createIframe()},insertInto:function(e){(e="string"==typeof e?l.getElementById(e):e).appendChild(this.iframe)},getIframe:function(){return this.iframe},getWindow:function(){this._readyError()},getDocument:function(){this._readyError()},destroy:function(){var e=this.getIframe();e.parentNode.removeChild(e)},_readyError:function(){throw new Error("wysihtml5.Sandbox: Sandbox iframe isn't loaded yet")},_createIframe:function(){var e=this,t=l.createElement("iframe");return t.className="wysihtml5-sandbox",s.dom.setAttributes({security:"restricted",allowtransparency:"true",frameborder:0,width:0,height:0,marginwidth:0,marginheight:0}).on(t),s.browser.throwsMixedContentWarningWhenIframeSrcIsEmpty()&&(t.src="javascript:'<html></html>'"),t.onload=function(){t.onreadystatechange=t.onload=null,e._onLoadIframe(t)},t.onreadystatechange=function(){/loaded|complete/.test(t.readyState)&&(t.onreadystatechange=t.onload=null,e._onLoadIframe(t))},t},_onLoadIframe:function(e){if(s.dom.contains(l.documentElement,e)){var t=this,n=e.contentWindow,i=e.contentWindow.document,a=l.characterSet||l.charset||"utf-8",a=this._getHtml({charset:a,stylesheets:this.config.stylesheets});if(i.open("text/html","replace"),i.write(a),i.close(),this.getWindow=function(){return e.contentWindow},this.getDocument=function(){return e.contentWindow.document},n.onerror=function(e,t,n){throw new Error("wysihtml5.Sandbox: "+e,t,n)},!s.browser.supportsSandboxedIframes()){for(var r=0,o=c.length;r<o;r++)this._unset(n,c[r]);for(r=0,o=u.length;r<o;r++)this._unset(n,u[r],s.EMPTY_FUNCTION);for(r=0,o=d.length;r<o;r++)this._unset(i,d[r]);this._unset(i,"cookie","",!0)}this.loaded=!0,setTimeout(function(){t.callback(t)},0)}},_getHtml:function(e){var t,n=e.stylesheets,i="",a=0;if(n="string"==typeof n?[n]:n)for(t=n.length;a<t;a++)i+='<link rel="stylesheet" href="'+n[a]+'">';return e.stylesheets=i,s.lang.string('<!DOCTYPE html><html><head><meta charset="#{charset}">#{stylesheets}</head><body></body></html>').interpolate(e)},_unset:function(e,t,n,i){try{e[t]=n}catch(e){}try{e.__defineGetter__(t,function(){return n})}catch(e){}if(i)try{e.__defineSetter__(t,function(){})}catch(e){}if(!s.browser.crashesWhenDefineProperty(t))try{var a={get:function(){return n}};i&&(a.set=function(){}),Object.defineProperty(e,t,a)}catch(e){}}})}(wysihtml5),function(){var i={className:"class"};wysihtml5.dom.setAttributes=function(n){return{on:function(e){for(var t in n)e.setAttribute(i[t]||t,n[t])}}}}(),wysihtml5.dom.setStyles=function(i){return{on:function(e){var t=e.style;if("string"!=typeof i)for(var n in i)"float"===n?(t.cssFloat=i[n],t.styleFloat=i[n]):t[n]=i[n];else t.cssText+=";"+i}}},function(o){o.simulatePlaceholder=function(e,t,n){function i(){t.hasPlaceholderSet()&&t.clear(),t.placeholderSet=!1,o.removeClass(t.element,r)}function a(){t.isEmpty()&&(t.placeholderSet=!0,t.setValue(n),o.addClass(t.element,r))}var r="placeholder";e.on("set_placeholder",a).on("unset_placeholder",i).on("focus:composer",i).on("paste:composer",i).on("blur:composer",a),a()}}(wysihtml5.dom),function(e){var t=document.documentElement;"textContent"in t?(e.setTextContent=function(e,t){e.textContent=t},e.getTextContent=function(e){return e.textContent}):"innerText"in t?(e.setTextContent=function(e,t){e.innerText=t},e.getTextContent=function(e){return e.innerText}):(e.setTextContent=function(e,t){e.nodeValue=t},e.getTextContent=function(e){return e.nodeValue})}(wysihtml5.dom),wysihtml5.quirks.cleanPastedHTML=function(){var u={"a u":wysihtml5.dom.replaceWithChildNodes};return function(e,t,n){t=t||u,n=n||e.ownerDocument||document;var i,a,r,o,s="string"==typeof e,l=0,c=s?wysihtml5.dom.getAsDom(e,n):e;for(o in t)for(a=c.querySelectorAll(o),i=t[o],r=a.length;l<r;l++)i(a[l]);return a=e=t=null,s?c.innerHTML:c}}(),wysihtml5.quirks.ensureProperClearing=function(){function t(){var t=this;setTimeout(function(){var e=t.innerHTML.toLowerCase();"<p>&nbsp;</p>"!=e&&"<p>&nbsp;</p><p>&nbsp;</p>"!=e||(t.innerHTML="")},0)}return function(e){wysihtml5.dom.observe(e.element,["cut","keydown"],t)}}(),function(s){s.quirks.getCorrectInnerHTML=function(e){var t=e.innerHTML;if(-1===t.indexOf("%7E"))return t;for(var n,i,a=e.querySelectorAll("[href*='~'], [src*='~']"),r=0,o=a.length;r<o;r++)n=a[r].href||a[r].src,i=s.lang.string(n).replace("~").by("%7E"),t=s.lang.string(t).replace(i).by(n);return t}}(wysihtml5),function(n){var i="wysihtml5-quirks-redraw";n.quirks.redraw=function(e){n.dom.addClass(e,i),n.dom.removeClass(e,i);try{var t=e.ownerDocument;t.execCommand ("italic",!1,null),t.execCommand ("italic",!1,null)}catch(e){}}}(wysihtml5),function(c){var u=c.dom;c.Selection=Base.extend({constructor:function(e){window.rangy.init(),this.editor=e,this.composer=e.composer,this.doc=this.composer.doc},getBookmark:function(){var e=this.getRange();return e&&e.cloneRange()},setBookmark:function(e){e&&this.setSelection(e)},setBefore:function(e){var t=rangy.createRange(this.doc);return t.setStartBefore(e),t.setEndBefore(e),this.setSelection(t)},setAfter:function(e){var t=rangy.createRange(this.doc);return t.setStartAfter(e),t.setEndAfter(e),this.setSelection(t)},selectNode:function(e,t){var n=rangy.createRange(this.doc),i=e.nodeType===c.ELEMENT_NODE,a="canHaveHTML"in e?e.canHaveHTML:"IMG"!==e.nodeName,r=i?e.innerHTML:e.data,o=""===r||r===c.INVISIBLE_SPACE,r=u.getStyle("display").from(e),r="block"===r||"list-item"===r;if(o&&i&&a&&!t)try{e.innerHTML=c.INVISIBLE_SPACE}catch(e){}a?n.selectNodeContents(e):n.selectNode(e),a&&o&&i?n.collapse(r):a&&o&&(n.setStartAfter(e),n.setEndAfter(e)),this.setSelection(n)},getSelectedNode:function(e){var t;return e&&this.doc.selection&&"Control"===this.doc.selection.type&&(t=this.doc.selection.createRange())&&t.length?t.item(0):(e=this.getSelection(this.doc)).focusNode===e.anchorNode?e.focusNode:(t=this.getRange(this.doc))?t.commonAncestorContainer:this.doc.body},executeAndRestore:function(e,t){var n,i=this.doc.body,a=t&&i.scrollTop,r=t&&i.scrollLeft,o="_wysihtml5-temp-placeholder",s='<span class="'+o+'">'+c.INVISIBLE_SPACE+"</span>",l=this.getRange(this.doc);if(l){c.browser.hasInsertNodeIssue()?this.doc.execCommand ("insertHTML",!1,s):(n=l.createContextualFragment(s),l.insertNode(n));try{e(l.startContainer,l.endContainer)}catch(e){setTimeout(function(){throw e},0)}(n=this.doc.querySelector("."+o))?(l=rangy.createRange(this.doc),o=n.nextSibling,c.browser.hasInsertNodeIssue()&&o&&"BR"===o.nodeName?(o=this.doc.createTextNode(c.INVISIBLE_SPACE),u.insert(o).after(n),l.setStartBefore(o),l.setEndBefore(o)):(l.selectNode(n),l.deleteContents()),this.setSelection(l)):i.focus(),t&&(i.scrollTop=a,i.scrollLeft=r);try{n.parentNode.removeChild(n)}catch(e){}}else e(i,i)},executeAndRestoreSimple:function(e){var t,n,i=this.getRange(),a=this.doc.body;if(i){t=(n=i.getNodes([3]))[0]||i.startContainer,n=n[n.length-1]||i.endContainer,n={collapsed:i.collapsed,startContainer:t,startOffset:t===i.startContainer?i.startOffset:0,endContainer:n,endOffset:n===i.endContainer?i.endOffset:n.length};try{e(i.startContainer,i.endContainer)}catch(e){setTimeout(function(){throw e},0)}i=rangy.createRange(this.doc);try{i.setStart(n.startContainer,n.startOffset)}catch(e){}try{i.setEnd(n.endContainer,n.endOffset)}catch(e){}try{this.setSelection(i)}catch(e){}}else e(a,a)},set:function(e,t){var n=rangy.createRange(this.doc);n.setStart(e,t||0),this.setSelection(n)},insertHTML:function(e){var t=rangy.createRange(this.doc).createContextualFragment(e),e=t.lastChild;this.insertNode(t),e&&this.setAfter(e)},insertNode:function(e){var t=this.getRange();t&&t.insertNode(e)},surround:function(t){var n=this.getRange();if(n)try{n.surroundContents(t),this.selectNode(t)}catch(e){t.appendChild(n.extractContents()),n.insertNode(t)}},scrollIntoView:function(){var e=this.doc,t=e.documentElement.scrollHeight>e.documentElement.offsetHeight,n=e._wysihtml5ScrollIntoViewElement=e._wysihtml5ScrollIntoViewElement||((n=e.createElement("span")).innerHTML=c.INVISIBLE_SPACE,n);t&&(this.insertNode(n),t=function(e){var t=0;if(e.parentNode)for(;t+=e.offsetTop||0,e=e.offsetParent;);return t}(n),n.parentNode.removeChild(n),t>=e.body.scrollTop+e.documentElement.offsetHeight-5&&(e.body.scrollTop=t))},selectLine:function(){c.browser.supportsSelectionModify()?this._selectLine_W3C():this.doc.selection&&this._selectLine_MSIE()},_selectLine_W3C:function(){var e=this.doc.defaultView.getSelection();e.modify("extend","left","lineboundary"),e.modify("extend","right","lineboundary")},_selectLine_MSIE:function(){var e,t,n,i,a,r=this.doc.selection.createRange(),o=r.boundingTop,s=this.doc.body.scrollWidth;if(r.moveToPoint){for(0===o&&(n=this.doc.createElement("span"),this.insertNode(n),o=n.offsetTop,n.parentNode.removeChild(n)),o+=1,i=-10;i<s;i+=2)try{r.moveToPoint(i,o);break}catch(e){}for(e=o,t=this.doc.selection.createRange(),a=s;0<=a;a--)try{t.moveToPoint(a,e);break}catch(e){}r.setEndPoint("EndToEnd",t),r.select()}},getText:function(){var e=this.getSelection();return e?e.toString():""},getNodes:function(e,t){var n=this.getRange();return n?n.getNodes([e],t):[]},getRange:function(){var e=this.getSelection();return e&&e.rangeCount&&e.getRangeAt(0)},getSelection:function(){return rangy.getSelection(this.doc.defaultView||this.doc.parentWindow)},setSelection:function(e){var t=this.doc.defaultView||this.doc.parentWindow;return rangy.getSelection(t).setSingleRange(e)}})}(wysihtml5),function(s,r){var i=/\s+/g;function a(e,t){e.className&&(e.className=e.className.replace(t,""))}function o(e,t){return r.dom.isCharacterDataNode(e)?0==t?e.previousSibling:t!=e.length||e.nextSibling:0<t&&t<e.childNodes.length}function l(e,t,n){var i,a;if(r.dom.isCharacterDataNode(t)&&(0==n?(n=r.dom.getNodeIndex(t),t=t.parentNode):n==t.length?(n=r.dom.getNodeIndex(t)+1,t=t.parentNode):a=r.dom.splitDataNode(t,n)),!a){for((a=t.cloneNode(!1)).id&&a.removeAttribute("id");i=t.childNodes[n];)a.appendChild(i);r.dom.insertAfter(a,t)}return t==e?a:l(e,a.parentNode,r.dom.getNodeIndex(a))}function m(e){this.isElementMerge=e.nodeType==s.ELEMENT_NODE,this.firstTextNode=this.isElementMerge?e.lastChild:e,this.textNodes=[this.firstTextNode]}function e(e,t,n,i){this.tagNames=e||["span"],this.cssClass=t||"",this.similarClassRegExp=n,this.normalize=i,this.applyToAnyTagName=!1}m.prototype={doMerge:function(){for(var e,t,n,i=[],a=0,r=this.textNodes.length;a<r;++a)t=(e=this.textNodes[a]).parentNode,i[a]=e.data,a&&(t.removeChild(e),t.hasChildNodes()||t.parentNode.removeChild(t));return this.firstTextNode.data=n=i.join(""),n},getLength:function(){for(var e=this.textNodes.length,t=0;e--;)t+=this.textNodes[e].length;return t},toString:function(){for(var e=[],t=0,n=this.textNodes.length;t<n;++t)e[t]="'"+this.textNodes[t].data+"'";return"[Merge("+e.join(",")+")]"}},e.prototype={getAncestorWithClass:function(e){for(var t,n,i;e;){if(n=!this.cssClass||(t=e,n=this.cssClass,i=this.similarClassRegExp,!!t.className&&(i=t.className.match(i)||[])[i.length-1]===n),e.nodeType==s.ELEMENT_NODE&&r.dom.arrayContains(this.tagNames,e.tagName.toLowerCase())&&n)return e;e=e.parentNode}return!1},postApply:function(e,t){for(var n,i,a,r=e[0],o=e[e.length-1],s=[],l=r,c=o,u=0,d=o.length,p=0,h=e.length;p<h;++p)i=e[p],(a=this.getAdjacentMergeableTextNode(i.parentNode,!1))?(n||(n=new m(a),s.push(n)),n.textNodes.push(i),i===r&&(u=(l=n.firstTextNode).length),i===o&&(c=n.firstTextNode,d=n.getLength())):n=null;var f=this.getAdjacentMergeableTextNode(o.parentNode,!0);if(f&&(n||(n=new m(o),s.push(n)),n.textNodes.push(f)),s.length){for(p=0,h=s.length;p<h;++p)s[p].doMerge();t.setStart(l,u),t.setEnd(c,d)}},getAdjacentMergeableTextNode:function(e,t){var n,i=e.nodeType==s.TEXT_NODE,a=i?e.parentNode:e,r=t?"nextSibling":"previousSibling";if(i){if((n=e[r])&&n.nodeType==s.TEXT_NODE)return n}else if((n=a[r])&&this.areElementsMergeable(e,n))return n[t?"firstChild":"lastChild"];return null},areElementsMergeable:function(e,t){return r.dom.arrayContains(this.tagNames,(e.tagName||"").toLowerCase())&&r.dom.arrayContains(this.tagNames,(t.tagName||"").toLowerCase())&&(n=t,e.className.replace(i," ")==n.className.replace(i," "))&&function(e,t){if(e.attributes.length!=t.attributes.length)return!1;for(var n,i,a=0,r=e.attributes.length;a<r;++a)if("class"!=(i=(n=e.attributes[a]).name)){if(i=t.attributes.getNamedItem(i),n.specified!=i.specified)return!1;if(n.specified&&n.nodeValue!==i.nodeValue)return!1}return!0}(e,t);var n},createContainer:function(e){e=e.createElement(this.tagNames[0]);return this.cssClass&&(e.className=this.cssClass),e},applyToTextNode:function(e){var t,n,i=e.parentNode;1==i.childNodes.length&&r.dom.arrayContains(this.tagNames,i.tagName.toLowerCase())?this.cssClass&&(t=i,n=this.cssClass,i=this.similarClassRegExp,t.className?(a(t,i),t.className+=" "+n):t.className=n):(n=this.createContainer(r.dom.getDocument(e)),e.parentNode.insertBefore(n,e),n.appendChild(e))},isRemovable:function(e){return r.dom.arrayContains(this.tagNames,e.tagName.toLowerCase())&&s.lang.string(e.className).trim()==this.cssClass},undoToTextNode:function(e,t,n){var i;t.containsNode(n)||((i=t.cloneRange()).selectNode(n),i.isPointInRange(t.endContainer,t.endOffset)&&o(t.endContainer,t.endOffset)&&(l(n,t.endContainer,t.endOffset),t.setEndAfter(n)),i.isPointInRange(t.startContainer,t.startOffset)&&o(t.startContainer,t.startOffset)&&(n=l(n,t.startContainer,t.startOffset))),this.similarClassRegExp&&a(n,this.similarClassRegExp),this.isRemovable(n)&&function(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}(n)},applyToRange:function(e){var t;if(!(t=e.getNodes([s.TEXT_NODE])).length)try{var n=this.createContainer(e.endContainer.ownerDocument);return e.surroundContents(n),void this.selectNode(e,n)}catch(e){}if(e.splitBoundaries(),(t=e.getNodes([s.TEXT_NODE])).length){for(var i,a=0,r=t.length;a<r;++a)i=t[a],this.getAncestorWithClass(i)||this.applyToTextNode(i);e.setStart(t[0],0),i=t[t.length-1],e.setEnd(i,i.length),this.normalize&&this.postApply(t,e)}},undoToRange:function(e){for(var t,n,i,a=e.getNodes([s.TEXT_NODE]),r=0,o=(a=a.length?(e.splitBoundaries(),e.getNodes([s.TEXT_NODE])):(i=e.endContainer.ownerDocument.createTextNode(s.INVISIBLE_SPACE),e.insertNode(i),e.selectNode(i),[i])).length;r<o;++r)t=a[r],(n=this.getAncestorWithClass(t))&&this.undoToTextNode(t,e,n);1==o?this.selectNode(e,a[0]):(e.setStart(a[0],0),t=a[a.length-1],e.setEnd(t,t.length),this.normalize&&this.postApply(a,e))},selectNode:function(e,t){var n=t.nodeType===s.ELEMENT_NODE,i=!("canHaveHTML"in t)||t.canHaveHTML,a=n?t.innerHTML:t.data,a=""===a||a===s.INVISIBLE_SPACE;if(a&&n&&i)try{t.innerHTML=s.INVISIBLE_SPACE}catch(e){}e.selectNodeContents(t),a&&n?e.collapse(!1):a&&(e.setStartAfter(t),e.setEndAfter(t))},getTextSelectedByRange:function(e,t){var n=t.cloneRange();n.selectNodeContents(e);t=n.intersection(t),t=t?t.toString():"";return n.detach(),t},isAppliedToRange:function(e){var t,n=[],i=e.getNodes([s.TEXT_NODE]);if(!i.length)return!!(t=this.getAncestorWithClass(e.startContainer))&&[t];for(var a,r=0,o=i.length;r<o;++r){if(a=this.getTextSelectedByRange(i[r],e),t=this.getAncestorWithClass(i[r]),""!=a&&!t)return!1;n.push(t)}return n},toggleRange:function(e){this.isAppliedToRange(e)?this.undoToRange(e):this.applyToRange(e)}},s.selection.HTMLApplier=e}(wysihtml5,rangy),wysihtml5.Commands=Base.extend({constructor:function(e){this.editor=e,this.composer=e.composer,this.doc=this.composer.doc},support:function(e){return wysihtml5.browser.supportsCommand (this.doc,e)},exec:function(e,t){var n=wysihtml5.commands[e],i=wysihtml5.lang.array(arguments).get(),a=n&&n.exec,r=null;if(this.editor.fire("beforecommand:composer"),a)i.unshift(this.composer),r=a.apply(n,i);else try{r=this.doc.execCommand (e,!1,t)}catch(e){}return this.editor.fire("aftercommand:composer"),r},state:function(e,t){var n=wysihtml5.commands[e],i=wysihtml5.lang.array(arguments).get(),a=n&&n.state;if(a)return i.unshift(this.composer),a.apply(n,i);try{return this.doc.queryCommandState(e)}catch(e){return!1}}}),wysihtml5.commands.bold={exec:function(e,t){return wysihtml5.commands.formatInline.exec(e,t,"b")},state:function(e,t){return wysihtml5.commands.formatInline.state(e,t,"b")}},function(d){var p=d.dom;d.commands.createLink={exec:function(e,t,n){var i=this.state(e,t);i?e.selection.executeAndRestore(function(){!function(e){for(var t,n,i=e.length,a=0;a<i;a++)t=e[a],n=p.getParentElement(t,{nodeName:"code"}),p.getTextContent(t).match(p.autoLink.URL_REG_EXP)&&!n?n=p.renameElement(t,"code"):p.replaceWithChildNodes(t)}(i)}):function(e,t){var n,i,a,r,o,s,l=e.doc,c="_wysihtml5-temp-"+ +new Date,u=0;for(d.commands.formatInline.exec(e,void 0,"A",c,/non-matching-class/g),n=(i=l.querySelectorAll("A."+c)).length;u<n;u++)for(s in(a=i[u]).removeAttribute("class"),t)a.setAttribute(s,t[s]);r=a,1===n&&(o=p.getTextContent(a),c=!!a.querySelector("*"),o=""===o||o===d.INVISIBLE_SPACE,!c&&o&&(p.setTextContent(a,t.text||a.href),l=l.createTextNode(" "),e.selection.setAfter(a),p.insert(l).after(a),r=l)),e.selection.setAfter(r)}(e,n="object"==typeof n?n:{href:n})},state:function(e,t){return d.commands.formatInline.state(e,t,"A")}}}(wysihtml5),function(i){var a=/wysiwyg-font-size-[0-9a-z\-]+/g;i.commands.fontSize={exec:function(e,t,n){return i.commands.formatInline.exec(e,t,"span","wysiwyg-font-size-"+n,a)},state:function(e,t,n){return i.commands.formatInline.state(e,t,"span","wysiwyg-font-size-"+n,a)},value:function(){}}}(wysihtml5),function(i){var a=/wysiwyg-color-[0-9a-z]+/g;i.commands.foreColor={exec:function(e,t,n){return i.commands.formatInline.exec(e,t,"span","wysiwyg-color-"+n,a)},state:function(e,t,n){return i.commands.formatInline.state(e,t,"span","wysiwyg-color-"+n,a)}}}(wysihtml5),function(h){var f=h.dom,m=["H1","H2","H3","H4","H5","H6","P","BLOCKQUOTE","DIV"];function _(e,t){e.className=e.className.replace(t,"")}function n(e){return e.nodeType===h.TEXT_NODE&&!h.lang.string(e.data).trim()}function g(e){for(var t=e.previousSibling;t&&n(t);)t=t.previousSibling;return t}function y(e){for(var t=e.nextSibling;t&&n(t);)t=t.nextSibling;return t}function a(e){return"BR"===e.nodeName}function v(e){return a(e)||"block"===f.getStyle("display").from(e)}function w(e,t){var n,i;e.selection.selectLine(),e.selection.surround(t),n=y(i=t),i=g(i),n&&a(n)&&n.parentNode.removeChild(n),i&&a(i)&&i.parentNode.removeChild(i),(i=(i=t).lastChild)&&a(i)&&i.parentNode.removeChild(i),e.selection.selectNode(t,h.browser.displaysCaretInEmptyContentEditableCorrectly())}h.commands.formatBlock={exec:function(e,t,a,i,r){var n=e.doc,o=this.state(e,t,a,i,r),s=e.config.useLineBreaks,l=s?"DIV":"P";if(a="string"==typeof a?a.toUpperCase():a,o)e.selection.executeAndRestoreSimple(function(){var e,t,n,i;r&&_(o,r),(i=o,!!h.lang.string(i.className).trim())||!s&&"P"!==a?f.renameElement(o,"P"===a?"DIV":l):(t=(e=o).ownerDocument,n=y(e),i=g(e),n&&!v(n)&&e.parentNode.insertBefore(t.createElement("br"),n),i&&!v(i)&&e.parentNode.insertBefore(t.createElement("br"),e),f.replaceWithChildNodes(o))});else if((null===a||h.lang.array(m).contains(a))&&(u=e.selection.getSelectedNode(),o=f.getParentElement(u,{nodeName:m})))e.selection.executeAndRestore(function(){var e,t,n;a&&(o=f.renameElement(o,a)),i&&(t=i,n=r,(e=o).className?(_(e,n),e.className+=" "+t):e.className=t)});else{if(e.commands.support(t))return c=n,u=t,t=a||l,(d=i)&&(p=f.observe(c,"DOMNodeInserted",function(e){e=e.target;e.nodeType===h.ELEMENT_NODE&&"inline"!==f.getStyle("display").from(e).substr(0,6)&&(e.className+=" "+d)})),c.execCommand (u,!1,t),void(p&&p.stop());var c,u,d,p,o=n.createElement(a||l);i&&(o.className=i),w(e,o)}},state:function(e,t,n,i,a){n="string"==typeof n?n.toUpperCase():n;e=e.selection.getSelectedNode();return f.getParentElement(e,{nodeName:n,className:i,classRegExp:a})}}}(wysihtml5),function(s){var l={strong:"b",em:"i",b:"strong",i:"em"},r={};function c(e,t,n){var i,a=e+":"+t;return r[a]||(r[a]=new s.selection.HTMLApplier((e=l[i=e])?[i.toLowerCase(),e.toLowerCase()]:[i.toLowerCase()],t,n,!0)),r[a]}s.commands.formatInline={exec:function(e,t,n,i,a){var r=e.selection.getRange();if(!r)return!1;c(n,i,a).toggleRange(r),e.selection.setSelection(r)},state:function(e,t,n,i,a){var r=e.doc,o=l[n]||n;return!(!s.dom.hasElementWithTagName(r,n)&&!s.dom.hasElementWithTagName(r,o))&&(!(i&&!s.dom.hasElementWithClassName(r,i))&&(!!(e=e.selection.getRange())&&c(n,i,a).isAppliedToRange(e)))}}}(wysihtml5),wysihtml5.commands.insertHTML={exec:function(e,t,n){e.commands.support(t)?e.doc.execCommand (t,!1,n):e.selection.insertHTML(n)},state:function(){return!1}},function(s){s.commands.insertImage={exec:function(e,t,n){n="object"==typeof n?n:{src:n};var i,a,r=e.doc,o=this.state(e);if(o)return e.selection.setBefore(o),(a=o.parentNode).removeChild(o),s.dom.removeEmptyTextNodes(a),"A"!==a.nodeName||a.firstChild||(e.selection.setAfter(a),a.parentNode.removeChild(a)),void s.quirks.redraw(e.element);for(i in o=r.createElement("IMG"),n)"className"===i&&(i="class"),o.setAttribute(i,n[i]);e.selection.insertNode(o),s.browser.hasProblemsSettingCaretAfterImg()?(r=r.createTextNode(s.INVISIBLE_SPACE),e.selection.insertNode(r),e.selection.setAfter(r)):e.selection.setAfter(o)},state:function(e){var t=e.doc;return!!s.dom.hasElementWithTagName(t,"IMG")&&(!!(t=e.selection.getSelectedNode())&&("IMG"===t.nodeName?t:t.nodeType===s.ELEMENT_NODE&&(t=e.selection.getText(),!s.lang.string(t).trim()&&(1===(e=e.selection.getNodes(s.ELEMENT_NODE,function(e){return"IMG"===e.nodeName})).length&&e[0]))))}}}(wysihtml5),function(n){var i="<br>"+(n.browser.needsSpaceAfterLineBreak()?" ":"");n.commands.insertLineBreak={exec:function(e,t){e.commands.support(t)?(e.doc.execCommand (t,!1,null),n.browser.autoScrollsToCaret()||e.selection.scrollIntoView()):e.commands.exec("insertHTML",i)},state:function(){return!1}}}(wysihtml5),wysihtml5.commands.insertOrderedList={exec:function(e,t){var n,i=e.doc,a=e.selection.getSelectedNode(),r=wysihtml5.dom.getParentElement(a,{nodeName:"OL"}),o=wysihtml5.dom.getParentElement(a,{nodeName:"UL"}),a="_wysihtml5-temp-"+(new Date).getTime();r||o||!e.commands.support(t)?r?e.selection.executeAndRestore(function(){wysihtml5.dom.resolveList(r,e.config.useLineBreaks)}):o?e.selection.executeAndRestore(function(){wysihtml5.dom.renameElement(o,"ol")}):(e.commands.exec("formatBlock","div",a),a=""===(n=i.querySelector("."+a)).innerHTML||n.innerHTML===wysihtml5.INVISIBLE_SPACE||"<br>"===n.innerHTML,e.selection.executeAndRestore(function(){r=wysihtml5.dom.convertToList(n,"ol")}),a&&e.selection.selectNode(r.querySelector("li"),!0)):i.execCommand (t,!1,null)},state:function(e){e=e.selection.getSelectedNode();return wysihtml5.dom.getParentElement(e,{nodeName:"OL"})}},wysihtml5.commands.insertUnorderedList={exec:function(e,t){var n,i=e.doc,a=e.selection.getSelectedNode(),r=wysihtml5.dom.getParentElement(a,{nodeName:"UL"}),o=wysihtml5.dom.getParentElement(a,{nodeName:"OL"}),a="_wysihtml5-temp-"+(new Date).getTime();r||o||!e.commands.support(t)?r?e.selection.executeAndRestore(function(){wysihtml5.dom.resolveList(r,e.config.useLineBreaks)}):o?e.selection.executeAndRestore(function(){wysihtml5.dom.renameElement(o,"ul")}):(e.commands.exec("formatBlock","div",a),a=""===(n=i.querySelector("."+a)).innerHTML||n.innerHTML===wysihtml5.INVISIBLE_SPACE||"<br>"===n.innerHTML,e.selection.executeAndRestore(function(){r=wysihtml5.dom.convertToList(n,"ul")}),a&&e.selection.selectNode(r.querySelector("li"),!0)):i.execCommand (t,!1,null)},state:function(e){e=e.selection.getSelectedNode();return wysihtml5.dom.getParentElement(e,{nodeName:"UL"})}},wysihtml5.commands.italic={exec:function(e,t){return wysihtml5.commands.formatInline.exec(e,t,"i")},state:function(e,t){return wysihtml5.commands.formatInline.state(e,t,"i")}},function(n){var i="wysiwyg-text-align-center",a=/wysiwyg-text-align-[0-9a-z]+/g;n.commands.justifyCenter={exec:function(e,t){return n.commands.formatBlock.exec(e,"formatBlock",null,i,a)},state:function(e,t){return n.commands.formatBlock.state(e,"formatBlock",null,i,a)}}}(wysihtml5),function(n){var i="wysiwyg-text-align-left",a=/wysiwyg-text-align-[0-9a-z]+/g;n.commands.justifyLeft={exec:function(e,t){return n.commands.formatBlock.exec(e,"formatBlock",null,i,a)},state:function(e,t){return n.commands.formatBlock.state(e,"formatBlock",null,i,a)}}}(wysihtml5),function(n){var i="wysiwyg-text-align-right",a=/wysiwyg-text-align-[0-9a-z]+/g;n.commands.justifyRight={exec:function(e,t){return n.commands.formatBlock.exec(e,"formatBlock",null,i,a)},state:function(e,t){return n.commands.formatBlock.state(e,"formatBlock",null,i,a)}}}(wysihtml5),function(n){var i="wysiwyg-text-align-justify",a=/wysiwyg-text-align-[0-9a-z]+/g;n.commands.justifyFull={exec:function(e,t){return n.commands.formatBlock.exec(e,"formatBlock",null,i,a)},state:function(e,t){return n.commands.formatBlock.state(e,"formatBlock",null,i,a)}}}(wysihtml5),wysihtml5.commands.redo={exec:function(e){return e.undoManager.redo()},state:function(e){return!1}},wysihtml5.commands.underline={exec:function(e,t){return wysihtml5.commands.formatInline.exec(e,t,"u")},state:function(e,t){return wysihtml5.commands.formatInline.state(e,t,"u")}},wysihtml5.commands.undo={exec:function(e){return e.undoManager.undo()},state:function(e){return!1}},function(o){var s="data-wysihtml5-selection-node",l="data-wysihtml5-selection-offset",c='<span id="_wysihtml5-undo" class="_wysihtml5-temp">'+o.INVISIBLE_SPACE+"</span>",u='<span id="_wysihtml5-redo" class="_wysihtml5-temp">'+o.INVISIBLE_SPACE+"</span>",d=o.dom;o.UndoManager=o.lang.Dispatcher.extend({constructor:function(e){this.editor=e,this.composer=e.composer,this.element=this.composer.element,this.position=0,this.historyStr=[],this.historyDom=[],this.transact(),this._observe()},_observe:function(){var t,e,n,i,a=this,r=this.composer.sandbox.getDocument();d.observe(this.element,"keydown",function(e){var t,n;e.altKey||!e.ctrlKey&&!e.metaKey||(t=90===(n=e.keyCode)&&!e.shiftKey,n=90===n&&e.shiftKey||89===n,t?(a.undo(),e.preventDefault()):n&&(a.redo(),e.preventDefault()))}),d.observe(this.element,"keydown",function(e){e=e.keyCode;e!==t&&(8!==(t=e)&&46!==e||a.transact())}),o.browser.hasUndoInContextMenu()&&(i=function(){!function(e){for(var t;t=e.querySelector("._wysihtml5-temp");)t.parentNode.removeChild(t)}(r),clearInterval(e)},d.observe(this.element,"contextmenu",function(){i(),a.composer.selection.executeAndRestoreSimple(function(){a.element.lastChild&&a.composer.selection.setAfter(a.element.lastChild),r.execCommand ("insertHTML",!1,c),r.execCommand ("insertHTML",!1,u),r.execCommand ("undo",!1,null)}),e=setInterval(function(){r.getElementById("_wysihtml5-redo")?(i(),a.redo()):r.getElementById("_wysihtml5-undo")||(i(),a.undo())},400),n||(n=!0,d.observe(document,"mousedown",i),d.observe(r,["mousedown","paste","cut","copy"],i))})),this.editor.on("newword:composer",function(){a.transact()}).on("beforecommand:composer",function(){a.transact()})},transact:function(){var e,t,n,i=this.historyStr[this.position-1],a=this.composer.getValue();a!==i&&(25<(this.historyStr.length=this.historyDom.length=this.position)&&(this.historyStr.shift(),this.historyDom.shift(),this.position--),this.position++,i=(e=this.composer.selection.getRange()).startContainer||this.element,e=e.startOffset||0,i.nodeType===o.ELEMENT_NODE?t=i:(t=i.parentNode,n=this.getChildNodeIndex(t,i)),t.setAttribute(l,e),void 0!==n&&t.setAttribute(s,n),n=this.element.cloneNode(!!a),this.historyDom.push(n),this.historyStr.push(a),t.removeAttribute(l),t.removeAttribute(s))},undo:function(){this.transact(),this.undoPossible()&&(this.set(this.historyDom[--this.position-1]),this.editor.fire("undo:composer"))},redo:function(){this.redoPossible()&&(this.set(this.historyDom[++this.position-1]),this.editor.fire("redo:composer"))},undoPossible:function(){return 1<this.position},redoPossible:function(){return this.position<this.historyStr.length},set:function(e){this.element.innerHTML="";for(var t,n,i,a=0,r=e.childNodes,o=e.childNodes.length;a<o;a++)this.element.appendChild(r[a].cloneNode(!0));e.hasAttribute(l)?(t=e.getAttribute(l),i=e.getAttribute(s),n=this.element):(t=(n=this.element.querySelector("["+l+"]")||this.element).getAttribute(l),i=n.getAttribute(s),n.removeAttribute(l),n.removeAttribute(s)),null!==i&&(n=this.getChildNodeByIndex(n,+i)),this.composer.selection.set(n,t)},getChildNodeIndex:function(e,t){for(var n=0,i=e.childNodes,a=i.length;n<a;n++)if(i[n]===t)return n},getChildNodeByIndex:function(e,t){return e.childNodes[t]}})}(wysihtml5),wysihtml5.views.View=Base.extend({constructor:function(e,t,n){this.parent=e,this.element=t,this.config=n,this._observeViewChange()},_observeViewChange:function(){var t=this;this.parent.on("beforeload",function(){t.parent.on("change_view",function(e){e===t.name?((t.parent.currentView=t).show(),setTimeout(function(){t.focus()},0)):t.hide()})})},focus:function(){if(this.element.ownerDocument.querySelector(":focus")!==this.element)try{this.element.focus()}catch(e){}},hide:function(){this.element.style.display="none"},show:function(){this.element.style.display=""},disable:function(){this.element.setAttribute("disabled","disabled")},enable:function(){this.element.removeAttribute("disabled")}}),function(l){var c=l.dom,n=l.browser;l.views.Composer=l.views.View.extend({name:"composer",CARET_HACK:"<br>",constructor:function(e,t,n){this.base(e,t,n),this.textarea=this.parent.textarea,this._initSandbox()},clear:function(){this.element.innerHTML=n.displaysCaretInEmptyContentEditableCorrectly()?"":this.CARET_HACK},getValue:function(e){var t=this.isEmpty()?"":l.quirks.getCorrectInnerHTML(this.element);return e&&(t=this.parent.parse(t)),t=l.lang.string(t).replace(l.INVISIBLE_SPACE).by("")},setValue:function(t,e){e&&(t=this.parent.parse(t));try{this.element.innerHTML=t}catch(e){this.element.innerText=t}},show:function(){this.iframe.style.display=this._displayStyle||"",this.textarea.element.disabled||(this.disable(),this.enable())},hide:function(){this._displayStyle=c.getStyle("display").from(this.iframe),"none"===this._displayStyle&&(this._displayStyle=null),this.iframe.style.display="none"},disable:function(){this.parent.fire("disable:composer"),this.element.removeAttribute("contentEditable")},enable:function(){this.parent.fire("enable:composer"),this.element.setAttribute("contentEditable","true")},focus:function(e){l.browser.doesAsyncFocus()&&this.hasPlaceholderSet()&&this.clear(),this.base();var t=this.element.lastChild;e&&t&&("BR"===t.nodeName?this.selection.setBefore(this.element.lastChild):this.selection.setAfter(this.element.lastChild))},getTextContent:function(){return c.getTextContent(this.element)},hasPlaceholderSet:function(){return this.getTextContent()==this.textarea.element.getAttribute("placeholder")&&this.placeholderSet},isEmpty:function(){var e=this.element.innerHTML.toLowerCase();return""===e||"<br>"===e||"<p></p>"===e||"<p><br></p>"===e||this.hasPlaceholderSet()},_initSandbox:function(){var e=this;this.sandbox=new c.Sandbox(function(){e._create()},{stylesheets:this.config.stylesheets}),this.iframe=this.sandbox.getIframe();var t,n=this.textarea.element;c.insert(this.iframe).after(n),n.form&&((t=document.createElement("input")).type="hidden",t.name="_wysihtml5_mode",t.value=1,c.insert(t).after(n))},_create:function(){var e=this;this.doc=this.sandbox.getDocument(),this.element=this.doc.body,this.textarea=this.parent.textarea,this.element.innerHTML=this.textarea.getValue(!0),this.selection=new l.Selection(this.parent),this.commands=new l.Commands(this.parent),c.copyAttributes(["className","spellcheck","title","lang","dir","accessKey"]).from(this.textarea.element).to(this.element),c.addClass(this.element,this.config.composerClassName),this.config.style&&this.style(),this.observe();var t=this.config.name;t&&(c.addClass(this.element,t),c.addClass(this.iframe,t)),this.enable(),this.textarea.element.disabled&&this.disable();t="string"==typeof this.config.placeholder?this.config.placeholder:this.textarea.element.getAttribute("placeholder");t&&c.simulatePlaceholder(this.parent,this,t),this.commands.exec("styleWithCSS",!1),this._initAutoLinking(),this._initObjectResizing(),this._initUndoManager(),this._initLineBreaking(),!this.textarea.element.hasAttribute("autofocus")&&document.querySelector(":focus")!=this.textarea.element||n.isIos()||setTimeout(function(){e.focus(!0)},100),n.clearsContentEditableCorrectly()||l.quirks.ensureProperClearing(this),this.initSync&&this.config.sync&&this.initSync(),this.textarea.hide(),this.parent.fire("beforeload").fire("load")},_initAutoLinking:function(){var i,a,r,o=this,e=n.canDisableAutoLinking(),t=n.doesAutoLinkingInContentEditable();e&&this.commands.exec("autoUrlDetect",!1),this.config.autoLink&&(t&&!e||(this.parent.on("newword:composer",function(){c.getTextContent(o.element).match(c.autoLink.URL_REG_EXP)&&o.selection.executeAndRestore(function(e,t){c.autoLink(t.parentNode)})}),c.observe(this.element,"blur",function(){c.autoLink(o.element)})),i=this.sandbox.getDocument().getElementsByTagName("a"),a=c.autoLink.URL_REG_EXP,r=function(e){e=l.lang.string(c.getTextContent(e)).trim();return e="www."===e.substr(0,4)?"http://"+e:e},c.observe(this.element,"keydown",function(e){var t,n;i.length&&(e=o.selection.getSelectedNode(e.target.ownerDocument),(t=c.getParentElement(e,{nodeName:"A"},4))&&(n=r(t),setTimeout(function(){var e=r(t);e!==n&&e.match(a)&&t.setAttribute("href",e)},0)))}))},_initObjectResizing:function(){var r,o,s;this.commands.exec("enableObjectResizing",!0),n.supportsEvent("resizeend")&&(o=(r=["width","height"]).length,s=this.element,c.observe(s,"resizeend",function(e){var t,n=e.target||e.srcElement,i=n.style,a=0;if("IMG"===n.nodeName){for(;a<o;a++)i[t=r[a]]&&(n.setAttribute(t,parseInt(i[t],10)),i[t]="");l.quirks.redraw(s)}}))},_initUndoManager:function(){this.undoManager=new l.UndoManager(this.parent)},_initLineBreaking:function(){var i=this,a=["LI","P","H1","H2","H3","H4","H5","H6"],r=["UL","OL","MENU"];function o(e){var t=c.getParentElement(e,{nodeName:["P","DIV"]},2);t&&i.selection.executeAndRestore(function(){i.config.useLineBreaks?c.replaceWithChildNodes(t):"P"!==t.nodeName&&c.renameElement(t,"p")})}this.config.useLineBreaks||c.observe(this.element,["focus","keydown"],function(){var e;i.isEmpty()&&(e=i.doc.createElement("P"),i.element.innerHTML="",i.element.appendChild(e),n.displaysCaretInEmptyContentEditableCorrectly()?i.selection.selectNode(e,!0):(e.innerHTML="<br>",i.selection.setBefore(e.firstChild)))}),c.observe(this.doc,"keydown",function(e){var t,n=e.keyCode;e.shiftKey||n!==l.ENTER_KEY&&n!==l.BACKSPACE_KEY||((t=c.getParentElement(i.selection.getSelectedNode(),{nodeName:a},4))?setTimeout(function(){var e=i.selection.getSelectedNode();if("LI"===t.nodeName){if(!e)return;c.getParentElement(e,{nodeName:r},2)||o(e)}n===l.ENTER_KEY&&t.nodeName.match(/^H[1-6]$/)&&o(e)},0):i.config.useLineBreaks&&n===l.ENTER_KEY&&!l.browser.insertsLineBreaksOnReturn()&&(i.commands.exec("insertLineBreak"),e.preventDefault()))})}})}(wysihtml5),function(c){var u=c.dom,d=document,p=window,h=d.createElement("div"),f=["background-color","color","cursor","font-family","font-size","font-style","font-variant","font-weight","line-height","letter-spacing","text-align","text-decoration","text-indent","text-rendering","word-break","word-wrap","word-spacing"],m=["background-color","border-collapse","border-bottom-color","border-bottom-style","border-bottom-width","border-left-color","border-left-style","border-left-width","border-right-color","border-right-style","border-right-width","border-top-color","border-top-style","border-top-width","clear","display","float","margin-bottom","margin-left","margin-right","margin-top","outline-color","outline-offset","outline-width","outline-style","padding-left","padding-right","padding-top","padding-bottom","position","top","left","right","bottom","z-index","vertical-align","text-align","-webkit-box-sizing","-moz-box-sizing","-ms-box-sizing","box-sizing","-webkit-box-shadow","-moz-box-shadow","-ms-box-shadow","box-shadow","-webkit-border-top-right-radius","-moz-border-radius-topright","border-top-right-radius","-webkit-border-bottom-right-radius","-moz-border-radius-bottomright","border-bottom-right-radius","-webkit-border-bottom-left-radius","-moz-border-radius-bottomleft","border-bottom-left-radius","-webkit-border-top-left-radius","-moz-border-radius-topleft","border-top-left-radius","width","height"],_=["html                 { height: 100%; }","body                 { height: 100%; padding: 1px 0 0 0; margin: -1px 0 0 0; }","body > p:first-child { margin-top: 0; }","._wysihtml5-temp     { display: none; }",c.browser.isGecko?"body.placeholder { color: graytext !important; }":"body.placeholder { color: #898eb4 !important; font-size: 15px !important; }","img:-moz-broken      { -moz-force-broken-image-icon: 1; height: 24px; width: 24px; }"];c.views.Composer.prototype.style=function(){var e,t=this,n=d.querySelector(":focus"),i=this.textarea.element,a=i.hasAttribute("placeholder"),r=a&&i.getAttribute("placeholder"),o=i.style.display,s=i.disabled;this.focusStylesHost=h.cloneNode(!1),this.blurStylesHost=h.cloneNode(!1),this.disabledStylesHost=h.cloneNode(!1),a&&i.removeAttribute("placeholder"),i===n&&i.blur(),i.disabled=!1,i.style.display=e="none",(i.getAttribute("rows")&&"auto"===u.getStyle("height").from(i)||i.getAttribute("cols")&&"auto"===u.getStyle("width").from(i))&&(i.style.display=e=o),u.copyStyles(m).from(i).to(this.iframe).andTo(this.blurStylesHost),u.copyStyles(f).from(i).to(this.element).andTo(this.blurStylesHost),u.insertCSS(_).into(this.element.ownerDocument),i.disabled=!0,u.copyStyles(m).from(i).to(this.disabledStylesHost),u.copyStyles(f).from(i).to(this.disabledStylesHost),i.disabled=s,i.style.display=o,function(e){if(e.setActive)try{e.setActive()}catch(e){}else{var t=e.style,n=d.documentElement.scrollTop||d.body.scrollTop,i=d.documentElement.scrollLeft||d.body.scrollLeft,t={position:t.position,top:t.top,left:t.left,WebkitUserSelect:t.WebkitUserSelect};u.setStyles({position:"absolute",top:"-99999px",left:"-99999px",WebkitUserSelect:"none"}).on(e),e.focus(),u.setStyles(t).on(e),p.scrollTo&&p.scrollTo(i,n)}}(i),i.style.display=e,u.copyStyles(m).from(i).to(this.focusStylesHost),u.copyStyles(f).from(i).to(this.focusStylesHost),i.style.display=o,u.copyStyles(["display"]).from(i).to(this.iframe);var l=c.lang.array(m).without(["display"]);return n?n.focus():i.blur(),a&&i.setAttribute("placeholder",r),this.parent.on("focus:composer",function(){u.copyStyles(l).from(t.focusStylesHost).to(t.iframe),u.copyStyles(f).from(t.focusStylesHost).to(t.element)}),this.parent.on("blur:composer",function(){u.copyStyles(l).from(t.blurStylesHost).to(t.iframe),u.copyStyles(f).from(t.blurStylesHost).to(t.element)}),this.parent.observe("disable:composer",function(){u.copyStyles(l).from(t.disabledStylesHost).to(t.iframe),u.copyStyles(f).from(t.disabledStylesHost).to(t.element)}),this.parent.observe("enable:composer",function(){u.copyStyles(l).from(t.blurStylesHost).to(t.iframe),u.copyStyles(f).from(t.blurStylesHost).to(t.element)}),this}}(wysihtml5),function(s){var l=s.dom,c=s.browser,u={66:"bold",73:"italic",85:"underline"};s.views.Composer.prototype.observe=function(){var i=this,e=this.getValue(),t=this.sandbox.getIframe(),a=this.element,n=c.supportsEventsInIframeCorrectly()?a:this.sandbox.getWindow();l.observe(t,"DOMNodeRemoved",function(){clearInterval(r),i.parent.fire("destroy:composer")});var r=setInterval(function(){l.contains(document.documentElement,t)||(clearInterval(r),i.parent.fire("destroy:composer"))},250);l.observe(n,"focus",function(){i.parent.fire("focus").fire("focus:composer"),setTimeout(function(){e=i.getValue()},0)}),l.observe(n,"blur",function(){e!==i.getValue()&&i.parent.fire("change").fire("change:composer"),i.parent.fire("blur").fire("blur:composer")}),l.observe(a,"dragenter",function(){i.parent.fire("unset_placeholder")}),l.observe(a,["drop","paste"],function(){setTimeout(function(){i.parent.fire("paste").fire("paste:composer")},0)}),l.observe(a,"keyup",function(e){e=e.keyCode;e!==s.SPACE_KEY&&e!==s.ENTER_KEY||i.parent.fire("newword:composer")}),this.parent.on("paste:composer",function(){setTimeout(function(){i.parent.fire("newword:composer")},0)}),c.canSelectImagesInContentEditable()||l.observe(a,"mousedown",function(e){var t=e.target;"IMG"===t.nodeName&&(i.selection.selectNode(t),e.preventDefault())}),c.hasHistoryIssue()&&c.supportsSelectionModify()&&l.observe(a,"keydown",function(e){var t,n;(e.metaKey||e.ctrlKey)&&(t=e.keyCode,n=a.ownerDocument.defaultView.getSelection(),37!==t&&39!==t||(37===t&&(n.modify("extend","left","lineboundary"),e.shiftKey||n.collapseToStart()),39===t&&(n.modify("extend","right","lineboundary"),e.shiftKey||n.collapseToEnd()),e.preventDefault()))}),l.observe(a,"keydown",function(e){var t=e.keyCode,t=u[t];(e.ctrlKey||e.metaKey)&&!e.altKey&&t&&(i.commands.exec(t),e.preventDefault())}),l.observe(a,"keydown",function(e){var t=i.selection.getSelectedNode(!0),n=e.keyCode;!t||"IMG"!==t.nodeName||n!==s.BACKSPACE_KEY&&n!==s.DELETE_KEY||((n=t.parentNode).removeChild(t),"A"!==n.nodeName||n.firstChild||n.parentNode.removeChild(n),setTimeout(function(){s.quirks.redraw(a)},0),e.preventDefault())}),c.hasIframeFocusIssue()&&(l.observe(this.iframe,"focus",function(){setTimeout(function(){i.doc.querySelector(":focus")!==i.element&&i.focus()},0)}),l.observe(this.element,"blur",function(){setTimeout(function(){i.selection.getSelection().removeAllRanges()},0)}));var o={IMG:"Image: ",A:"Link: "};l.observe(a,"mouseover",function(e){var t=e.target,e=t.nodeName;"A"!==e&&"IMG"!==e||t.hasAttribute("title")||(e=o[e]+(t.getAttribute("href")||t.getAttribute("src")),t.setAttribute("title",e))})}}(wysihtml5),function(r){r.views.Synchronizer=Base.extend({constructor:function(e,t,n){this.editor=e,this.textarea=t,this.composer=n,this._observe()},fromComposerToTextarea:function(e){this.textarea.setValue(r.lang.string(this.composer.getValue()).trim(),e)},fromTextareaToComposer:function(e){var t=this.textarea.getValue();t?this.composer.setValue(t,e):(this.composer.clear(),this.editor.fire("set_placeholder"))},sync:function(e){"textarea"===this.editor.currentView.name?this.fromTextareaToComposer(e):this.fromComposerToTextarea(e)},_observe:function(){function t(){i=setInterval(function(){a.fromComposerToTextarea()},400)}function n(){clearInterval(i),i=null}var i,a=this,e=this.textarea.element.form;t(),e&&(r.dom.observe(e,"submit",function(){a.sync(!0)}),r.dom.observe(e,"reset",function(){setTimeout(function(){a.fromTextareaToComposer()},0)})),this.editor.on("change_view",function(e){"composer"!==e||i?"textarea"===e&&(a.fromComposerToTextarea(!0),n()):(a.fromTextareaToComposer(!0),t())}),this.editor.on("destroy:composer",n)}})}(wysihtml5),wysihtml5.views.Textarea=wysihtml5.views.View.extend({name:"textarea",constructor:function(e,t,n){this.base(e,t,n),this._observe()},clear:function(){this.element.value=""},getValue:function(e){var t=this.isEmpty()?"":this.element.value;return t=e?this.parent.parse(t):t},setValue:function(e,t){t&&(e=this.parent.parse(e)),this.element.value=e},hasPlaceholderSet:function(){var e=wysihtml5.browser.supportsPlaceholderAttributeOn(this.element),t=this.element.getAttribute("placeholder")||null,n=this.element.value;return e&&!n||n===t},isEmpty:function(){return!wysihtml5.lang.string(this.element.value).trim()||this.hasPlaceholderSet()},_observe:function(){var e=this.element,t=this.parent,n={focusin:"focus",focusout:"blur"},i=wysihtml5.browser.supportsEvent("focusin")?["focusin","focusout","change"]:["focus","blur","change"];t.on("beforeload",function(){wysihtml5.dom.observe(e,i,function(e){e=n[e.type]||e.type;t.fire(e).fire(e+":textarea")}),wysihtml5.dom.observe(e,["paste","drop"],function(){setTimeout(function(){t.fire("paste").fire("paste:textarea")},0)})})}}),function(o){var s=o.dom,l="wysihtml5-command-dialog-opened",c="input, select, textarea",u="[data-wysihtml5-dialog-field]",d="data-wysihtml5-dialog-field";o.toolbar.Dialog=o.lang.Dispatcher.extend({constructor:function(e,t){this.link=e,this.container=t},_observe:function(){if(!this._observed){function n(e){var t=i._serialize();t==i.elementToChange?i.fire("edit",t):i.fire("save",t),i.hide(),e.preventDefault(),e.stopPropagation()}var i=this;s.observe(i.link,"click",function(){s.hasClass(i.link,l)&&setTimeout(function(){i.hide()},0)}),s.observe(this.container,"keydown",function(e){var t=e.keyCode;t===o.ENTER_KEY&&n(e),t===o.ESCAPE_KEY&&i.hide()}),s.delegate(this.container,"[data-wysihtml5-dialog-action=save]","click",n),s.delegate(this.container,"[data-wysihtml5-dialog-action=cancel]","click",function(e){i.fire("cancel"),i.hide(),e.preventDefault(),e.stopPropagation()});function e(){clearInterval(i.interval)}for(var t=this.container.querySelectorAll(c),a=0,r=t.length;a<r;a++)s.observe(t[a],"change",e);this._observed=!0}},_serialize:function(){for(var e=this.elementToChange||{},t=this.container.querySelectorAll(u),n=t.length,i=0;i<n;i++)e[t[i].getAttribute(d)]=t[i].value;return e},_interpolate:function(e){for(var t,n,i=document.querySelector(":focus"),a=this.container.querySelectorAll(u),r=a.length,o=0;o<r;o++)(t=a[o])!==i&&(e&&"hidden"===t.type||(n=t.getAttribute(d),n=this.elementToChange?this.elementToChange[n]||"":t.defaultValue,t.value=n))},show:function(e){if(!s.hasClass(this.link,l)){var t=this,n=this.container.querySelector(c);if(this.elementToChange=e,this._observe(),this._interpolate(),e&&(this.interval=setInterval(function(){t._interpolate(!0)},500)),s.addClass(this.link,l),this.container.style.display="",this.fire("show"),n&&!e)try{n.focus()}catch(e){}}},hide:function(){clearInterval(this.interval),this.elementToChange=null,s.removeClass(this.link,l),this.container.style.display="none",this.fire("hide")}})}(wysihtml5),function(a){var r=a.dom,o={position:"relative"},s={left:0,margin:0,opacity:0,overflow:"hidden",padding:0,position:"absolute",top:0,zIndex:1},l={cursor:"inherit",fontSize:"50px",height:"50px",marginTop:"-25px",outline:0,padding:0,position:"absolute",right:"-4px",top:"50%"},c={"x-webkit-speech":"",speech:""};a.toolbar.Speech=function(e,t){var n,i=document.createElement("input");a.browser.supportsSpeechApiOn(i)?((n=e.editor.textarea.element.getAttribute("lang"))&&(c.lang=n),n=document.createElement("div"),a.lang.object(s).merge({width:t.offsetWidth+"px",height:t.offsetHeight+"px"}),r.insert(i).into(n),r.insert(n).into(t),r.setStyles(l).on(i),r.setAttributes(c).on(i),r.setStyles(s).on(n),r.setStyles(o).on(t),n="onwebkitspeechchange"in i?"webkitspeechchange":"speechchange",r.observe(i,n,function(){e.execCommand ("insertText",i.value),i.value=""}),r.observe(i,"click",function(e){r.hasClass(t,"wysihtml5-command-disabled")&&e.preventDefault(),e.stopPropagation()})):t.style.display="none"}}(wysihtml5),function(u){var o="wysihtml5-command-disabled",s="wysihtml5-commands-disabled",l="wysihtml5-command-active",c="wysihtml5-action-active",d=u.dom;u.toolbar.Toolbar=Base.extend({constructor:function(e,t){this.editor=e,this.container="string"==typeof t?document.getElementById(t):t,this.composer=e.composer,this._getLinks("command"),this._getLinks("action"),this._observe(),this.show();for(var n=this.container.querySelectorAll("[data-wysihtml5-command=insertSpeech]"),i=n.length,a=0;a<i;a++)new u.toolbar.Speech(this,n[a])},_getLinks:function(e){for(var t,n,i,a,r,o=this[e+"Links"]=u.lang.array(this.container.querySelectorAll("[data-wysihtml5-"+e+"]")).get(),s=o.length,l=0,c=this[e+"Mapping"]={};l<s;l++)i=(t=o[l]).getAttribute("data-wysihtml5-"+e),a=t.getAttribute("data-wysihtml5-"+e+"-value"),n=this.container.querySelector("[data-wysihtml5-"+e+"-group='"+i+"']"),r=this._getDialog(t,i),c[i+":"+a]={link:t,group:n,name:i,value:a,dialog:r,state:!1}},_getDialog:function(t,n){var e,i,a=this,r=this.container.querySelector("[data-wysihtml5-dialog='"+n+"']");return r&&((e=new u.toolbar.Dialog(t,r)).on("show",function(){i=a.composer.selection.getBookmark(),a.editor.fire("show:dialog",{command:n,dialogContainer:r,commandLink:t})}),e.on("save",function(e){i&&a.composer.selection.setBookmark(i),a._execCommand (n,e),a.editor.fire("save:dialog",{command:n,dialogContainer:r,commandLink:t})}),e.on("cancel",function(){a.editor.focus(!1),a.editor.fire("cancel:dialog",{command:n,dialogContainer:r,commandLink:t})})),e},execCommand:function(e,t){var n;this.commandsDisabled||((n=this.commandMapping[e+":"+t])&&n.dialog&&!n.state?n.dialog.show():this._execCommand (e,t))},_execCommand:function(e,t){this.editor.focus(!1),this.composer.commands.exec(e,t),this._updateLinkStates()},execAction:function(e){var t=this.editor;"change_view"===e&&(t.currentView===t.textarea?t.fire("change_view","composer"):t.fire("change_view","textarea"))},_observe:function(){for(var i=this,e=this.editor,t=this.container,n=this.commandLinks.concat(this.actionLinks),a=n.length,r=0;r<a;r++)d.setAttributes({href:"javascript:;",unselectable:"on"}).on(n[r]);d.delegate(t,"[data-wysihtml5-command], [data-wysihtml5-action]","mousedown",function(e){e.preventDefault()}),d.delegate(t,"[data-wysihtml5-command]","click",function(e){var t=this.getAttribute("data-wysihtml5-command"),n=this.getAttribute("data-wysihtml5-command-value");i.execCommand (t,n),e.preventDefault()}),d.delegate(t,"[data-wysihtml5-action]","click",function(e){var t=this.getAttribute("data-wysihtml5-action");i.execAction(t),e.preventDefault()}),e.on("focus:composer",function(){i.bookmark=null,clearInterval(i.interval),i.interval=setInterval(function(){i._updateLinkStates()},500)}),e.on("blur:composer",function(){clearInterval(i.interval)}),e.on("destroy:composer",function(){clearInterval(i.interval)}),e.on("change_view",function(e){setTimeout(function(){i.commandsDisabled="composer"!==e,i._updateLinkStates(),i.commandsDisabled?d.addClass(t,s):d.removeClass(t,s)},0)})},_updateLinkStates:function(){var e,t,n,i,a=this.commandMapping,r=this.actionMapping;for(e in a)i=a[e],this.commandsDisabled?(t=!1,d.removeClass(i.link,l),i.group&&d.removeClass(i.group,l),i.dialog&&i.dialog.hide()):(t=this.composer.commands.state(i.name,i.value),u.lang.object(t).isArray()&&(t=1!==t.length||t[0]),d.removeClass(i.link,o),i.group&&d.removeClass(i.group,o)),i.state!==t&&((i.state=t)?(d.addClass(i.link,l),i.group&&d.addClass(i.group,l),i.dialog&&("object"==typeof t?i.dialog.show(t):i.dialog.hide())):(d.removeClass(i.link,l),i.group&&d.removeClass(i.group,l),i.dialog&&i.dialog.hide()));for(e in r)"change_view"===(n=r[e]).name&&(n.state=this.editor.currentView===this.editor.textarea,n.state?d.addClass(n.link,c):d.removeClass(n.link,c))},show:function(){this.container.style.display=""},hide:function(){this.container.style.display="none"}})}(wysihtml5),function(i){var a={name:void 0,style:!0,toolbar:void 0,autoLink:!0,parserRules:{tags:{br:{},span:{},div:{},p:{}},classes:{}},parser:i.dom.parse,composerClassName:"wysihtml5-editor",bodyClassName:"wysihtml5-supported",useLineBreaks:!0,stylesheets:[],placeholderText:void 0,supportTouchDevices:!0};i.Editor=i.lang.Dispatcher.extend({constructor:function(e,t){var n;this.textareaElement="string"==typeof e?document.getElementById(e):e,this.config=i.lang.object({}).merge(a).merge(t).get(),this.textarea=new i.views.Textarea(this,this.textareaElement,this.config),this.currentView=this.textarea,this._isCompatible=i.browser.supported(),!this._isCompatible||!this.config.supportTouchDevices&&i.browser.isTouchDevice()?(n=this,setTimeout(function(){n.fire("beforeload").fire("load")},0)):(i.dom.addClass(document.body,this.config.bodyClassName),this.composer=new i.views.Composer(this,this.textareaElement,this.config),this.currentView=this.composer,"function"==typeof this.config.parser&&this._initParser(),this.on("beforeload",function(){this.synchronizer=new i.views.Synchronizer(this,this.textarea,this.composer),this.config.toolbar&&(this.toolbar=new i.toolbar.Toolbar(this,this.config.toolbar))}))},isCompatible:function(){return this._isCompatible},clear:function(){return this.currentView.clear(),this},getValue:function(e){return this.currentView.getValue(e)},setValue:function(e,t){return this.fire("unset_placeholder"),e?(this.currentView.setValue(e,t),this):this.clear()},focus:function(e){return this.currentView.focus(e),this},disable:function(){return this.currentView.disable(),this},enable:function(){return this.currentView.enable(),this},isEmpty:function(){return this.currentView.isEmpty()},hasPlaceholderSet:function(){return this.currentView.hasPlaceholderSet()},parse:function(e){var t=this.config.parser(e,this.config.parserRules,this.composer.sandbox.getDocument(),!0);return"object"==typeof e&&i.quirks.redraw(e),t},_initParser:function(){this.on("paste:composer",function(){var e=this;e.composer.selection.executeAndRestore(function(){i.quirks.cleanPastedHTML(e.composer.element),e.parse(e.composer.element)},!0)})}})}(wysihtml5),function(l){l.fn.hasScrollbar=function(){var e=this.get(0);if(e.scrollHeight>e.clientHeight)return!0},l.fn.hasID=function(e){return this.attr("id")==e},l.fn.extend({animateStep:function(t){return this.each(function(){var e=l.extend({},t,{step:t.step.bind(l(this))});l({x:t.from}).animate({x:t.to},e)})},rotate:function(e){return this.css("transform","rotate("+e+"deg)")}}),l.fn.isOnScreen=function(e){var t=l(this).first()[0].getBoundingClientRect(),n=l(window).height(),i=l(window).width(),a=0<=t.top&&t.top<=n,r=0<=t.bottom&&t.bottom<=n,o=0<=t.left&&t.left<=i,s=0<=t.right&&t.right<=i,i=t.left<=0&&t.right>=i,t=t.top<=0&&t.bottom>=n,n=a&&(o||s||i),i=r&&(o||s||i),o=o&&(a||r||t),t=s&&(a||r||t);return e?n||i||o||t:n&&i&&o&&t},l.fn.wordHighlight=function(e,t){var n=new RegExp("\\b"+e+"\\b","gi");return this.each(function(){this.innerHTML=this.innerHTML.replace(n,function(e){return'<span class="'+t+'">'+e+"</span>"})})}}(jQuery),jQuery(document).ready(function(i){i(document).on("change",".slider_field",function(){var e=i(this).is(":checked")?"on":"off";i(this).siblings("input[type='hidden']").val(e)}),i(document).on("click change",'div[data-name="label"] input[type=text], div[data-name="slug"] input[type=text]',function(e){var t,n=i(this).parents(".acf-field").attr("data-name");"label"==n?(t=i(this).val().toLowerCase().replace(/ /g,"_").replace(/[^\w_]/g,""),i(this).parents(".acf-fields").eq(0).find('div[data-name="slug"]').find("input[type=text]").val()||i(this).parents(".acf-fields").eq(0).find('div[data-name="slug"]').find("input[type=text]").val(t)):"slug"==n&&(t=i(this).parents(".acf-fields").eq(0).find('div[data-name="label"]').find("input[type=text]").val().toLowerCase().replace(/ /g,"_").replace(/[^\w_]/g,""),i(this).val()||i(this).val(t))})}),Hooks.add_filter("wpj_fields_validation_filter",wpj_validate_cf_fields,1),jQuery(window).on("load",function(){var e;(e=0<jQuery('div[data-layout="request_custom_field"]').length?"request_custom_field":0<jQuery('div[data-layout="job_custom_field"]').length?"job_custom_field":0<jQuery('div[data-layout="up_custom_field"]').length?"up_custom_field":"")&&jQuery('div[data-layout="'+e+'"]').each(function(){jQuery(this).find('div[data-name="label"]').find('input[type="text"]').trigger("click")})}),"function"==typeof Dropzone&&(Dropzone.autoDiscover=!1),function(e){e.fn.wpjDropzoneUploaderInit=function(){e(".dropzone")[0]&&e(".dropzone").each(function(){wpj_init_dropzone_images_uploader(e(this).attr("data-maxnrofpictures"),e(this).attr("data-maxsize"),e(this).attr("id"))})}}(jQuery),Hooks.add_action("wpj_before_file_removal",wpj_display_dropzone_upload_box,2),function(e){e.fn.wpjHTML5UploaderInit=function(){e(".html5fileupload-wrapper")[0]&&e(".html5fileupload-wrapper").each(function(){wpj_init_html5_images_uploader(e(this).attr("data-media-type"))})}}(jQuery),jQuery(document).ready(function(i){i(document).on("click","a[href*='secure_download']",function(e){var t=i(this).attr("href"),n=getParameterFromGivenURL(t,"auth_token"),t=getParameterFromGivenURL(t,"secure_download");t&&i.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"save_auth_token_transient_action",secure_download:t,auth_token:n},success:function(e){}})}),wpj_vars.is_user_logged_in&&(i(document).on("click",".js-delete-file",function(e){e.preventDefault(),e.stopPropagation();var t=i(this).attr("data-attachment-id"),n=i(this).attr("data-media-type"),e=i(this).attr("data-pid");Hooks.do_action("wpj_before_file_removal",t,n),"banner"==n?(i(".user-profile-cover-row-wrapper").removeClass("user-has-cover js-user-has-cover"),i(this).parents("#banner").removeClass("ub-cover-photo"),i(this).parents("#banner").css("background-image","unset"),i(this).parents("#banner").find(".js-add-user-cover-button").show(),i(this).hide()):(i(this).parents(".file-wrapper").parent(".dz-image-wrapper")[0]?i(this).parents(".dz-image-wrapper"):i(this).parents(".file-wrapper")).remove(),i.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"delete_attachment_action",attachment_id:t,media_type:n,pid:e},success:function(e){}}),Hooks.do_action("wpj_after_file_removal",t,n)}),wpj_sort_image_files())}),jQuery(document).ready(function(t){t(document).on("click",".file-content-wrapper",function(){var e;t(this).hasClass("uploading")||(e=t(this).parents(".uploadifive-uploader-wrapper").attr("data-media-type"),t(this).parents(".uploadifive-uploader-wrapper").find("#uploadifive-file_upload_"+e+" input:last").click())})}),function(t){t.fn.wpjUploadifiveUploaderInit=function(){t(".uploadifive-uploader")[0]&&t(".uploadifive-uploader").each(function(){wpj_init_upload_form(1,t(this).attr("data-input-id"),t(this).attr("data-input-name"),t(this).attr("data-media-name"),t(this).attr("data-button-label"))});["banner","avatar","audio","skill"].forEach(function(e){t("#file_upload_"+e)[0]&&wpj_init_media_upload_form(e)})}}(jQuery),Hooks.add_action("wpj_after_file_removal",wpj_display_uploadifive_audio_upload_box,2),function(s){s.fn.wpjSemanticInit=function(){!jQuery(".page-id-"+wpj_vars.user_profile_page_id)[0]&&wpj_vars.is_user_logged_in||s(".ui.dimmer.modals")[0]&&s(".ui.dimmer.modals").find(".ui.modal").each(function(){1<s(this).attr("class").length&&s(this.remove())}),s(".ui.progress")[0]&&s(".ui.progress").progress(),s(".ui.dropdown")[0]&&s(".ui.dropdown").dropdown({message:{noResults:wpj_vars.nothing_found}}),s(".ui.dropdown.full-text-search")[0]&&s(".ui.dropdown.full-text-search").dropdown({fullTextSearch:!0,message:{noResults:wpj_vars.nothing_found}}),window.onload=function(){s(".ui.dropdown.upward")[0]&&s(".ui.dropdown.upward").each(function(){s(this).dropdown({direction:"upward",fullTextSearch:!0,message:{noResults:wpj_vars.nothing_found}})})},s(".ui.dropdown.clearable")[0]&&s(".ui.dropdown.clearable").each(function(){s(this).dropdown("get value")?s(this).find(".dropdown.icon").removeClass("dropdown").addClass("x").addClass("clear-dropdown"):s(this).removeClass("clear-dropdown").removeClass("x").addClass("dropdown"),s(this).on("change",function(){s(this).find(".dropdown.icon").removeClass("dropdown").addClass("x").addClass("clear-dropdown")}),s(document).on("click",".clear-dropdown",function(){s(this).parents(".clearable").dropdown("clear"),s(this).removeClass("clear-dropdown").removeClass("x").addClass("dropdown")})}),s(".ui.input.clearable")[0]&&s(".ui.input.clearable").each(function(){var e=s(this);e.addClass("icon"),e.prepend('<i class="icon clear link hidden"></i>');var t=e.find("input"),n=e.find("i.clear.icon");t.val()?n.removeClass("hidden"):n.addClass("hidden"),t.on("change paste keyup",function(){t.val()?n.removeClass("hidden"):n.addClass("hidden")}),n.click(function(e){t.val(""),n.addClass("hidden"),e.stopPropagation()})}),s(".ui.menu").find(".item")[0]&&s(".ui.menu .item").tab(),s(".ui.accordion")[0]&&s(".ui.accordion").accordion(),s(".ui.checkbox")[0]&&s(".ui.checkbox").checkbox(),s(".ui.sticky")[0]&&s(".ui.sticky").sticky(),s.fn.wpjTooltipInit()},s.fn.wpjCalendarInit=function(){s(".js-calendar")[0]&&jQuery(".js-calendar").each(function(){var e=s(this),t=s(this).attr("data-datetype"),n=s(this).attr("data-page"),i=s(this).attr("data-timeformat");void 0!==t&&!1!==t?wpj_init_calendar_input(e,n,t,i):wpj_init_calendar_input(e)})},s.fn.wpjTagsInit=function(){s(".js-tags")[0]&&jQuery(".js-tags").each(function(){s(this).tagsInput({defaultText:"",height:"auto",width:"100%"})})},s.fn.wpjGoogleMapsInit=function(){wpj_vars.locations_api_key&&"undefined"!=typeof google&&jQuery(".js-location-autocomplete")[0]&&jQuery(".js-location-autocomplete").each(function(){var t=jQuery(this);t.is("input")||(t=t.find("input"));var e=wpj_vars.locations_types[0]||"(cities)",e={componentRestrictions:{country:wpj_vars.locations_country},types:[e],language:[wpj_vars.language_code]};wpj_vars.location_fields&&(e.fields=JSON.parse(wpj_vars.location_fields));var n=new google.maps.places.Autocomplete(t[0],e);google.maps.event.addListener(n,"place_changed",function(){var e=n.getPlace();e.geometry&&(t.next("input").val(e.geometry.location.lat()),t.next("input").next("input").val(e.geometry.location.lng()))})})},s.fn.wpjTomTomMapsInit=function(){jQuery(".js-location-autocomplete")[0]&&jQuery(".js-location-autocomplete").each(function(){var n=jQuery(this),e=wpj_vars.locations_country?encodeURI(wpj_vars.locations_country.join()):"";n.search({apiSettings:{onResponse:function(e){var n={results:[]};return s.each(e.results,function(e,t){n.results.push({title:t.address.freeformAddress,lat:t.position.lat,lng:t.position.lon})}),n},url:"https://api.tomtom.com/search/2/search/{query}.json?countrySet="+e+"&key="+wpj_vars.tomtom_api_key},fields:{results:"results",title:"title",description:!1,url:!1},minCharacters:2,showNoResults:!1,onSelect:function(e,t){jQuery(n.find("input")[1]).val(e.lat),jQuery(n.find("input")[2]).val(e.lng)}})})},s.fn.wpjJobMapDisplayInit=function(){s("#job_map")[0]&&s("#job_map").each(function(){var e;s(this).attr("data-address")[0]&&(e='<iframe class="job_google_map" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+("https://maps.google.com/maps?&amp;q="+encodeURIComponent(s(this).attr("data-address"))+"&amp;output=embed")+'"></iframe>',s("#job_map").html(e))})},s.fn.wpjJobMapOverviewDisplayInit=function(){if(wpj_vars.locations_api_key&&"undefined"!=typeof google&&s("#job_map_overview")[0]){var a=s("#job_map_overview"),r=JSON.parse(a.attr("data-locations"));window.map=new google.maps.Map(document.getElementById("job_map_overview"),{mapTypeId:google.maps.MapTypeId.ROADMAP});var o=new google.maps.InfoWindow,e=new google.maps.LatLngBounds;for(i=0;i<r.length;i++)marker=new google.maps.Marker({position:new google.maps.LatLng(r[i].latitude,r[i].longitude),map:map}),e.extend(marker.position),google.maps.event.addListener(marker,"click",function(t,n){return function(){var e="";e+="<div>",1==a.attr("data-show-title")&&(e+='<h4><a target="_blank" href="'+r[n].url+'">'+r[n].title+"</a></h4>"),1==a.attr("data-show-excerpt")&&(e+="<p>"+r[n].excerpt+"</p>"),1==a.attr("data-show-description")&&(e+="<p>"+r[n].description+"</p>"),1==a.attr("data-show-price")&&(e+="<p>"+r[n].price+"</p>"),1==a.attr("data-show-location")&&(e+="<p>"+r[n].location+"</p>"),1==a.attr("data-show-author")&&(e+='<p><b><a target="_blank" href="'+r[n].author_url+'">'+r[n].author_name+"</a></b></p>"),o.setContent(e+="</div>"),o.open(map,t)}}(marker,i));map.fitBounds(e);var t=google.maps.event.addListener(map,"idle",function(){map.setZoom(5),google.maps.event.removeListener(t)})}},s.fn.wpjResizeReCaptchaInit=function(){var t;s(".g-recaptcha-class")[0]&&s(".g-recaptcha-class").each(function(){var e;(t=t||s(this).parent().width())&&(e=t/302,s(this).css("transform","scale("+e+")"),s(this).css("-webkit-transform","scale("+e+")"),wpj_vars.is_rtl?(s(this).css("transform-origin","100% 0"),s(this).css("-webkit-transform-origin","100% 0")):(s(this).css("transform-origin","0 0"),s(this).css("-webkit-transform-origin","0 0")))})},s.fn.wpjTooltipInit=function(){s(".js-tooltip-handler")[0]&&(s(".page-id-"+wpj_vars.new_job_page_id)[0]&&(isMobile()&&1==wpj_vars.op_enable_job_instructions_responsive||!isMobile())||s(".page-id-"+wpj_vars.new_request_page_id)[0]&&(isMobile()&&1==wpj_vars.op_enable_request_instructions_responsive||!isMobile()))&&s(".js-tooltip-handler").each(function(){var e=s(this).attr("data-handler-id"),t=s(this),n=s('.js-tooltip-handler:not([data-handler-id="'+e+'"])'),e=s('[data-tooltip-id="'+e+'"]');0<e.text().length?(t.popup({target:t,on:isMobile()?"click":"manual",popup:e,position:"right center",lastResort:"right center",transition:"fade down",distanceAway:0,offset:0,hoverable:!1,exclusive:!1,inline:!0,preserve:!0}),isMobile()||t.hover(function(){n.popup("hide"),t.popup("show")})):(t.removeClass("js-tooltip-handler"),e.removeClass("ui popup"),e.hide())})},s.fn.pageLoadToolTipInit=function(){var e;!s(".post-new-wrapper")[0]||(e=s(".post-new-wrapper").find(".js-tooltip-handler:first").attr("data-handler-id"))&&-1===e.indexOf("cfield")&&1024<s(window).width()&&s('[data-handler-id="'+e+'"]').mouseenter().mouseleave()},s.fn.wpjTabsToDropdownInit=function(){s(".js-tab-to-dropdown")[0]&&s(".js-tab-to-dropdown").each(function(){var t=s(this),n=!1;s("<select />").appendTo(t),t.find("div.item.js-tab-item").each(function(){var e=s(this);1==e.hasClass("active")&&(n=e.index()),s("<option />",{value:e.attr("data-tab"),text:e.text().replace(/[0-9]/g,"")}).appendTo(t.find("select"))}),n&&t.find("select").find("option").eq(n-1).prop("selected",!0),t.find("select").change(function(){var e=s(".item.js-tab-item.active").attr("data-tab");s('div[data-tab="'+e+'"]').removeClass("active"),s('div[data-tab="'+s(this).find("option:selected").val()+'"]').addClass("active")}),t.find("select").addClass("fluid"),t.find("select").dropdown({message:{noResults:wpj_vars.nothing_found}})})},s.fn.wpjAutoHideKeyboardInit=function(){s(".autohide-keyboard")[0]&&s(".autohide-keyboard").form({on:"blur",keyboardShortcuts:!1})},s.fn.wpjToggleArrowInit=function(){s(".js-toggle-arrow")[0]&&s(".js-toggle-arrow").each(function(){var e=s(this);e.find(".dynamically-title")[0]||(e.css("cursor","pointer"),e.addClass("js-toggle-wrapper"),e.find(":header").wrap('<div class="dynamically dynamically-title flex-master"></div>'),e.append('<div class="dynamically dynamically-icon"><i class="js-toggle-angle-icon toggle-angle-icon toggle-angle-icon-up icon"></i></div>'))})},s.fn.wpjNumberFormatInit=function(){Number.prototype.formatMoney=function(e,t,n){var i=Math.round(100*this)/100,e=isNaN(e=Math.abs(e))?2:e,t=null==t?".":t,n=null==n?",":n,a=i<0?"-":"",r=parseInt(i=Math.abs(+i||0).toFixed(e))+"",o=3<(o=r.length)?o%3:0;return a+(o?r.substr(0,o)+n:"")+r.substr(o).replace(/(\d{3})(?=\d)/g,"$1"+n)+(e?t+Math.abs(i-r).toFixed(e).slice(2):"")},s("form").on("blur","input[type=number]",function(e){s(this).off("mousewheel.disableScroll")}),s('input[type="number"]').on("keypress",function(e){if(-1===s.inArray(e.keyCode,[8,9,37,39,48,49,50,51,52,53,54,55,56,57,46,110,190])&&17!=e.keyCode&&86!=e.keyCode)e.preventDefault();else{if(!(-1<s.trim(s(this).val()).indexOf(".")&&-1!=s.inArray(e.keyCode,[110,190])))return!0;e.preventDefault()}}).on("paste",function(e){var t=e.originalEvent.clipboardData.getData("Text").replace(/[^0-9.]/g,"");s.isNumeric(t)&&(e.originalEvent.target.value=t),e.preventDefault()})},s.fn.wpjLazyLoadInit=function(){1==wpj_vars.lazy_loading_enabled&&jQuery.isFunction(echo.init)&&echo.init({offset:100,throttle:250,unload:!1,callback:function(e,t){jQuery(e).addClass("echo-lazy-loaded")}})},s.fn.wpjLazyLoadRender=function(){1==wpj_vars.lazy_loading_enabled&&jQuery.isFunction(echo.render)&&echo.render({offset:100,throttle:250,unload:!1,callback:function(e,t){setTimeout(function(){jQuery(e).addClass("echo-lazy-loaded")},1e3)}})},s.fn.wpjLazyLoadImagesInit=function(){s("img")[0]&&1==wpj_vars.lazy_loading_enabled&&(s("img").each(function(){s(this).hasClass("brz-img")||s(this).hasClass("portfolio-image")||s(this).hasClass("rs-pzimg")||s(this).hasClass("rev-slidebg")||s(this).parents(".message-box-logo-container")[0]||s(this).parents(".header-wrapper")[0]||s(this).parents(".footer-wrapper")[0]||s(this).parents(".home-hero-slider-wrapper")[0]||s(this).parents(".ui.modal")[0]||s(this).parents(".pm-messages-row-wrapper")[0]||s(this).parents(".trp-language-switcher-container")[0]||s(this).parents(".trp_language_switcher_shortcode")[0]||s(this).parents(".wpj-carousel")[0]||s(this).parents(".pm-conversations-row-wrapper")[0]||(s(this).attr("data-echo",s(this).attr("src")),s(this).addClass("echo-lazy-load"),s(this).attr("src",wpj_vars.theme_path+"/assets/images/media/blank.gif"))}),s.fn.wpjLazyLoadInit())},s.fn.wpjRangeSliderInit=function(){var e;s("#slider-range-min")[0]&&(e=s("#slider-range-min").data("value"),s("#slider-range-min").slider({range:"min",value:e,min:1,max:e,slide:function(e,t){s("#amount").val(t.value),jQuery.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"day_translation_action",value:t.value},success:function(e){s("#amount-label").html(e)}})}}),s("#amount").val(s("#slider-range-min").slider("value")))},s.fn.wpjNoHrefInit=function(){s(".js-no-href")[0]&&(s(".js-no-href").removeAttr("href"),s(document).on("click",".js-no-href",function(e){e.preventDefault()}))},s.fn.wpjFlipTimerInit=function(){s(".flipTimer")[0]&&s(".flipTimer").flipTimer({direction:"down",date:wpj_vars.order_expected_delivery})},s.fn.wpjAudioFileInit=function(){"function"==typeof wpj_audio_js_player_init&&jQuery(".audios-wrapper")[0]&&(jQuery(".audios-wrapper").removeClass("div-disabled"),s.each(JSON.parse(jQuery(".audios-wrapper").attr("data-audio-details")),function(e,t){wpj_audio_js_player_init(t.attachment_id,t.url,t.filename)}))},s.fn.wpjWYSIWYGInit=function(){jQuery(".wysiwyg-description-textarea")[0]&&jQuery(".wysiwyg-description-textarea").each(function(){var e=jQuery(this).attr("data-type"),t=jQuery(this).attr("maxlength"),n=jQuery(this).attr("data-post-status"),i=jQuery(this).attr("data-rejected"),a=jQuery(this).attr("data-indx"),r=jQuery(this).attr("id");"job_edit"==e?wpj_init_wysiwyg_textarea(t,n,i):"packages"==e?wpj_init_wysiwyg_textarea(t,"","",a):wpj_init_wysiwyg_textarea(t,"","","",r)})},s.fn.wpjPhoneNumberInit=function(){var e,t,n;s(".cell_number")[0]&&(e=(e=s(".cell_number").attr("data-country"))?e.toLowerCase():"us",t=(t=s(".cell_number").attr("data-default-country"))?t.toLowerCase():"us",(n=s(".cell_number").attr("data-only-countries"))?(n=n.toLowerCase().split(","),-1===s.inArray(e,n)&&(e=""),-1===s.inArray(t,n)&&(t="")):n=[],s(".cell_number").intlTelInput({nationalMode:!1,initialCountry:t,preferredCountries:[e],onlyCountries:n}))},s(document).on("click","a",function(e){"#copy"==s(this).prop("hash")&&(e.preventDefault(),copyString(s(this)),s(this).notify(wpj_vars.copied,{position:"top center",className:"success"}))})}(jQuery),jQuery(document).ready(function(r){wpj_vars.is_user_logged_in&&(getUrlParameter("brizy-edit")||getUrlParameter("brizy-edit-iframe"))&&(r(document).off("click",".login-link"),r(document).off("click",".register-link")),r(document).on("click",".login-link",function(e){var t;r("body").hasClass("wpj-is-jobsterapp")?e.preventDefault():r(".page-id-"+wpj_vars.login_page_id)[0]||1==wpj_vars.is_login_page||(e.preventDefault(),t=r(this),r(".ui.modal.js-user-login-modal").modal({onVisible:function(){try{var e=grecaptcha.render("default_login",{sitekey:wpj_vars.reCaptcha_api_key,callback:"var_default_login_callback",hl:wpj_vars.language_code});r("#default_login").attr("data-widget-id",e)}catch(e){}"function"==typeof r.fn.wpjResizeReCaptchaInit&&r.fn.wpjResizeReCaptchaInit();e=window.location.href;void 0!==t.attr("href")&&t.attr("href").includes("redirect_to")&&decodeURIComponent(getParameterFromGivenURL(t.attr("href"),"redirect_to"))!=wpj_vars.auth_login_url&&decodeURIComponent(getParameterFromGivenURL(t.attr("href"),"redirect_to"))!=wpj_vars.auth_register_url&&decodeURIComponent(getParameterFromGivenURL(t.attr("href"),"redirect_to"))!=wpj_vars.auth_lostpassword_url?e=decodeURIComponent(getParameterFromGivenURL(t.attr("href"),"redirect_to")):void 0===t.attr("href")||t.attr("href").includes("redirect_to")||t.attr("href")==wpj_vars.auth_login_url||t.attr("href")==wpj_vars.auth_register_url||t.attr("href")==wpj_vars.auth_lostpassword_url||(e=t.attr("href")),e&&wpj_vars.blog_url+"/"!=e&&(r(".js-user-login-modal form").find('input[name="redirect_to"]')[0]?r('input[name="redirect_to"]').val(e):r('<input type="hidden" name="redirect_to" value="'+e+'" />').appendTo(".js-user-login-modal form"))}}).modal("setting","transition","fly down").modal("show").modal("refresh"))}),r(document).on("click",".register-link",function(e){var t;r("body").hasClass("wpj-is-jobsterapp")?e.preventDefault():r(".page-id-"+wpj_vars.register_page_id)[0]||1==wpj_vars.is_register_page||(e.preventDefault(),t=r(this),r(".ui.modal.js-user-register-modal").modal({onVisible:function(){try{var e=grecaptcha.render("default_register",{sitekey:wpj_vars.reCaptcha_api_key,callback:"var_default_register_callback",hl:wpj_vars.language_code});r("#default_register").attr("data-widget-id",e)}catch(e){}"function"==typeof r.fn.wpjResizeReCaptchaInit&&r.fn.wpjResizeReCaptchaInit();e=window.location.href;void 0!==t.attr("href")&&t.attr("href").includes("redirect_to")&&decodeURIComponent(getParameterFromGivenURL(t.attr("href"),"redirect_to"))!=wpj_vars.auth_login_url&&decodeURIComponent(getParameterFromGivenURL(t.attr("href"),"redirect_to"))!=wpj_vars.auth_register_url&&decodeURIComponent(getParameterFromGivenURL(t.attr("href"),"redirect_to"))!=wpj_vars.auth_lostpassword_url?e=decodeURIComponent(getParameterFromGivenURL(t.attr("href"),"redirect_to")):void 0===t.attr("href")||t.attr("href").includes("redirect_to")||t.attr("href")==wpj_vars.auth_login_url||t.attr("href")==wpj_vars.auth_register_url||t.attr("href")==wpj_vars.auth_lostpassword_url||(e=t.attr("href")),e&&wpj_vars.blog_url+"/"!=e&&(r(".js-user-register-modal form").find('input[name="redirect_to"]')[0]?r('input[name="redirect_to"]').val(e):r('<input type="hidden" name="redirect_to" value="'+e+'" />').appendTo(".js-user-register-modal form"))}}).modal("setting","transition","fly down").modal("show").modal("refresh"))}),r(document).on("click",".lostpassword-link",function(e){r("body").hasClass("wpj-is-jobsterapp")?e.preventDefault():r(".page-id-"+wpj_vars.lost_password_page_id)[0]||1==wpj_vars.is_lost_password_page||(e.preventDefault(),r(".ui.modal.js-user-lost-password-modal").modal("setting","transition","fly down").modal("show").modal("refresh"))}),r(document).on("click",".js-auth",function(e){r("body").hasClass("wpj-is-jobsterapp")&&e.preventDefault()}),r(document).on("click",".log-out",function(){localStorage.clear()}),r(document).on("click",".js-toggle-password-visibility",function(e){r(this).hasClass("slash")?(r('input[name="pwd"]').attr("type","password"),r(this).removeClass("slash")):(r('input[name="pwd"]').attr("type","text"),r(this).addClass("slash"))}),r(document).on("click",".js-authentication-button, #wp-submit",function(e){e.preventDefault();var t,n=r(this),i=0,a=n.parents("form");r(".ui.error.message").remove(),a.find('input[name="log"]')[0]&&!a.find('input[name="log"]').val()?(a.find('input[name="log"]').attr("placeholder",wpj_vars.empty_user_name).addClass("error"),i=1):a.find('input[name="log"]').removeClass("error"),a.find('input[name="user_login"]')[0]&&!a.find('input[name="user_login"]').val()?(a.find('input[name="user_login"]').attr("placeholder",wpj_vars.empty_user_name).addClass("input error"),i=1):a.find('input[name="user_login"]').removeClass("error"),a.find('input[name="user_email"]')[0]&&!a.find('input[name="user_email"]').val()?(a.find('input[name="user_email"]').attr("placeholder",wpj_vars.empty_email).addClass("input error"),i=1):a.find('input[name="user_email"]').removeClass("error"),a.find('input[name="pwd"]')[0]&&!a.find('input[name="pwd"]').val()?(a.find('input[name="pwd"]').attr("placeholder",wpj_vars.empty_password).addClass("error"),i=1):a.find('input[name="pwd"]').removeClass("error"),a.find('input[name="user_password"]')[0]&&!a.find('input[name="user_password"]').val()?(a.find('input[name="user_password"]').attr("placeholder",wpj_vars.empty_password).addClass("input error"),i=1):a.find('input[name="user_password"]').removeClass("error"),a.find('input[name="user_confirm_password"]')[0]&&!a.find('input[name="user_confirm_password"]').val()?(a.find('input[name="user_confirm_password"]').attr("placeholder",wpj_vars.empty_password).addClass("input error"),i=1):a.find('input[name="user_confirm_password"]').removeClass("error"),a.find('input[name="user_password"]')[0]&&a.find('input[name="user_confirm_password"]')[0]&&a.find('input[name="user_password"]').val()&&a.find('input[name="user_confirm_password"]').val()&&(a.find('input[name="user_password"]').val()!=a.find('input[name="user_confirm_password"]').val()?(a.find('input[name="user_password"]').addClass("error"),a.find('input[name="user_confirm_password"]').addClass("error"),r('<div class="ui visible error message js-passwords-not-match-error mt0">'+wpj_vars.pwd_not_match+"</div>").insertBefore(a.find(".pass_extra_field:first")),i=1):(a.find('input[name="user_password"]').removeClass("error"),a.find('input[name="user_confirm_password"]').removeClass("error"))),wpj_vars.phone_number_mandatory&&(a.find('input[name="cell_number"]')[0]&&!a.find('input[name="cell_number"]').val()?(a.find('input[name="cell_number"]').attr("placeholder",wpj_vars.empty_phone_number).addClass("input error"),i=1):a.find('input[name="cell_number"]').removeClass("error")),a.find('input[name="2fa_code"]')[0]&&!a.find('input[name="2fa_code"]').val()?(a.find('input[name="2fa_code"]').attr("placeholder",wpj_vars.empty_two_fa).addClass("input error"),i=1):a.find('input[name="2fa_code"]').removeClass("error"),a.find(".g-recaptcha-class")[0]&&grecaptcha&&0===grecaptcha.getResponse(a.find(".g-recaptcha-class").attr("data-widget-id")).length?(a.find(".g-recaptcha-class > div").addClass("input error"),r('<div class="ui visible error message js-recaptcha-error">'+wpj_vars.empty_recaptcha+"</div>").insertBefore(a.find(".recaptcha_extra_field")),i=1):a.find(".g-recaptcha-class > div").removeClass("input error"),a.find('input[name="wpj_agree_tos_privacy"]')[0]&&!a.find(".tos-checkbox").checkbox("is checked")&&(r('<div class="ui visible error message js-tos-not-checked-error">'+wpj_vars.tos_not_checked+"</div>").insertBefore(a.find(".tos_extra_field")),i=1),1==(i=Hooks.apply_filters("wpj_validate_register_fields_filter",i,a))?(e.preventDefault(),r("html, body, .ui.dimmer").animate({scrollTop:0},500),n.parents(".ui.modal").modal("refresh")):(t="",n.parents("form").attr("class")&&(n.parents("form").attr("class").includes("js-register-form")&&(t="validate_register_form"),n.parents("form").attr("class").includes("js-lostpassword-form")&&(t="validate_lostpassword_form"),n.parents("form").attr("class").includes("js-login-form")&&(t="validate_login_form")),n.val(wpj_vars.please_wait),n.addClass("disabled"),t?setTimeout(function(){r.ajax({type:"POST",url:wpj_vars.ajaxurl,data:"action="+t+"&"+n.parents("form").serialize(),async:!1,success:function(e){e.message?(r("html, body, .ui.dimmer").animate({scrollTop:0},500),a.find(".g-recaptcha-class")[0]&&void 0!==grecaptcha&&grecaptcha.reset(a.find(".g-recaptcha-class").attr("data-widget-id")),a.siblings(".authentication-title")[0]?r('<div class="ui visible error message">'+e.message+"</div>").insertAfter(a.siblings(".authentication-title")):a.find(".authentication-title")[0]&&r('<div class="ui visible error message">'+e.message+"</div>").insertAfter(a.find(".authentication-title")),r("html, body, .ui.dimmer").animate({scrollTop:0},500),n.parents(".ui.modal").modal("refresh"),n.val(wpj_vars.continue),n.removeClass("disabled")):(n.val(wpj_vars.loggingin),a.submit())},error:function(e){r("html, body, .ui.dimmer").animate({scrollTop:0},500),n.parents(".ui.modal").modal("refresh"),n.val(wpj_vars.continue),n.removeClass("disabled")}})}):a.submit())}),r(document).on("click",'input[name="log"]',function(e){r(this).removeClass("error"),r(this).attr("placeholder",wpj_vars.user_email)}),r(document).on("click",'input[name="user_login"]',function(e){r(this).removeClass("error"),r(this).attr("placeholder",wpj_vars.user_name)}),r(document).on("click",'input[name="user_email"]',function(e){r(this).removeClass("error"),r(this).attr("placeholder",wpj_vars.email)}),r(document).on("click",'input[name="pwd"]',function(e){r(this).removeClass("error"),r(this).attr("placeholder",wpj_vars.password)}),r(document).on("click",'input[name="user_password"]',function(e){r(this).removeClass("error"),r(this).attr("placeholder",wpj_vars.password),r(this).parents("form").find(".ui.error.message.js-passwords-not-match-error").remove()}),r(document).on("click",'input[name="user_confirm_password"]',function(e){r(this).removeClass("error"),r(this).attr("placeholder",wpj_vars.confirm_password),r(this).parents("form").find(".ui.error.message.js-passwords-not-match-error").remove()}),r(document).on("click",'input[name="cell_number"]',function(e){r(this).removeClass("error"),r(this).attr("placeholder",wpj_vars.phone_number)}),r(document).on("click",'input[name="2fa_code"]',function(e){r(this).removeClass("error"),r(this).attr("placeholder",wpj_vars.two_fa)}),r(document).on("change",'input[name="wpj_agree_tos_privacy"]',function(e){r(this).parents("form").find(".ui.error.message.js-tos-not-checked-error").remove()})}),jQuery(document).ready(function(t){t(document).on("click",".nav-next, .nav-prev, .slick-next, .slick-prev, .owl-next, .owl-prev",function(e){"function"==typeof t.fn.wpjLazyLoadRender&&t.fn.wpjLazyLoadRender()}),t(document).on("click",".owl-video-wrapper",function(e){if(0<t(this).parents(".wpj-card-style-3").length||0<t(this).parents(".wpj-card-style-4").length){if(e.target!==e.currentTarget)return!1;e=t(this).parents(".image").siblings(".job-area").find(".list-header").attr("href");e&&(window.location.href=e)}})}),jQuery(document).ready(function(i){i(document).on("click",".category-direction-left",function(){let e=i(".subcategory-listing.subcategory-listing-slider ul"),t=e.find("li:visible:first").prev(),n=e.find("li:visible:last");1<=t.length&&(t.show(),n.hide(),i(".category-direction-right").removeClass("div-disabled")),t.prev().length<1&&i(this).addClass("div-disabled")}),i(document).on("click",".category-direction-right",function(){let e=i(".subcategory-listing.subcategory-listing-slider ul"),t=e.find("li:visible:last").next(),n=e.find("li:visible:first");1<=t.length&&(n.hide(),t.show(),i(".category-direction-left").removeClass("div-disabled")),t.next().length<1&&i(this).addClass("div-disabled")})}),jQuery(document).ready(function(c){var r;wpj_vars.chat_enabled&&wpj_vars.is_user_logged_in&&(r=[],c(document).on("click",".chat-sidebar-anchor",function(){var e=c(this).parents(".chat-sidebar-container").find(".chat-sidebar-wrapper");"minimized"==wpj_chat_set_box_status_cookie(e)?("chat-sidebar-anchor-icon"==c(this).find("div:visible").attr("class")?(e.hide("slide",{direction:wpj_vars.is_rtl?"left":"right"},300),wpj_chat_animate_element("hide")):"chat-sidebar-anchor-text"==c(this).find("div:visible").attr("class")&&(e.slideToggle(300),c(".chat-sidebar-anchor-icon").removeAttr("style")),c(".is-chat-active").addClass("is-chat-minimized"),c(".is-chat-active").removeClass("is-chat-maximized")):("chat-sidebar-anchor-icon"==c(this).find("div:visible").attr("class")?(e.show("slide",{direction:wpj_vars.is_rtl?"left":"right"},300),wpj_chat_animate_element("show")):"chat-sidebar-anchor-text"==c(this).find("div:visible").attr("class")&&(e.slideToggle(300),c(".chat-sidebar-anchor-icon").removeAttr("style")),c(".is-chat-active").addClass("is-chat-maximized"),c(".is-chat-active").removeClass("is-chat-minimized"),"function"==typeof c.fn.wpjLazyLoadRender&&c.fn.wpjLazyLoadRender())}),c(document).on("click",".archive-conversation",function(e){e.preventDefault();e=c(this).parents(".chat-sidebar-user-box").attr("data-box-id");c('[rel="'+e+'"]').find(".message-box-close").trigger("click");var t=c(this).parents(".chat-sidebar-user-box");c.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"archive_conversation_action",interlocutor:e},success:function(e){c(t).hide(400)}})}),c(document).on("click",".chat-sidebar-user-box",function(e){if(c(e.target).hasClass("archive-conversation")||c(e.target).parent().hasClass("archive-conversation"))return!1;var t=c(this).attr("data-box-id"),n=c('[rel="'+t+'"]');c('.chat-sidebar-user-box[data-box-id="'+t+'"]').is(":hidden")&&(c('.chat-sidebar-user-box[data-box-id="'+t+'"]').show(),c.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"unarchive_conversation_action",interlocutor:t},success:function(e){"function"==typeof c.fn.wpjLazyLoadRender&&c.fn.wpjLazyLoadRender()}}));var i=wpj_chat_calculate_popup_no(),a=r.slice(-i);c(this).find(".msg-unread-count").remove(),-1!=c.inArray(t,a)?n.find(".message-box-wrapper").hasClass("minimized")?n.find(".message-box-head").trigger("click"):(n.find(".message-box-wrapper").addClass("has-focus"),n.find(".message-box-input-content").focus()):(-1!=c.inArray(t,r)&&(r.splice(c.inArray(t,r),1),n.remove()),r.push(t),box_status="maximized",void 0===e.originalEvent&&(e=wpj_chat_get_stored_active_boxes("minimized_popups"),-1!=c.inArray(t,e)&&(box_status="minimized")),c.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"display_box_content_action",user_id:t,box_status:box_status},success:function(e){c(".pusher").append(e),c.fn.wpjSemanticInit(),wpj_init_chat_tooltips(),1==wpj_vars.chat_emoji_enabled&&wpj_chat_emoji_init('[rel="'+t+'"] .message-box-input-content.'+t),wpj_init_quick_responses(),wpj_init_upload_form(1,"file_upload_chat_attachments_"+t,"hidden_files_chat_attachments_"+t,"chat_messages_"+t),wpj_init_dropzone_images_uploader(wpj_vars.message_pics_nr_max,wpj_vars.message_filesize_max,"chat_images_"+t),wpj_init_attachments_gallery(),wpj_init_load_more_messages(),wpj_chat_display_boxes(r,"open_popup")}})),wpj_chat_store_active_boxes(r.slice(-i),"active_popups")}),c(document).on("click",".message-box-head",function(){var e=c(this);return c(this).parents(".message-box-wrapper").hasClass("minimized")?(c(this).parents(".message-box-wrapper").removeClass("minimized").addClass("has-focus"),c(this).parents(".message-box-wrapper").find(".message-box-body").slideToggle(300),c(this).parents(".message-box-wrapper").animate({width:"+=80px"},300),c(this).parents(".message-box-wrapper").find(".message-box-input-content").focus(),wpj_chat_change_boxes_margin(e,"extend",80),wpj_chat_store_active_boxes(c(this).parents(".message-box-container").attr("rel"),"removed")):(c(this).parents(".message-box-wrapper").find(".message-box-body").slideToggle(300,function(){c(this).parents(".message-box-wrapper").addClass("minimized").removeClass("has-focus")}),c(this).parents(".message-box-wrapper").animate({width:"-=80px"},300),wpj_chat_change_boxes_margin(e,"reduce",80),wpj_chat_store_active_boxes(c(this).parents(".message-box-container").attr("rel"),"minimized")),c(this).parents(".message-box-wrapper").removeClass("unread"),!1}),c(document).on("click",".message-box-close",function(e){e.preventDefault(),e.stopPropagation();var t=c(this).parents(".message-box-container").attr("rel");r.splice(c.inArray(t,r),1),c(this).parents(".message-box-container").remove(),wpj_chat_display_boxes(r,"close_popup");e=wpj_chat_calculate_popup_no();wpj_chat_store_active_boxes(r.slice(-e),"active"),wpj_chat_store_active_boxes(t,"removed")}),c(document).on("click",".js-message-box-footer-send-button",function(e){c(".message-box-container #message_box_input_content, .message-box-container .emojionearea").blur()}),c(document).on("blur keypress keyup paste input",".message-box-container #message_box_input_content, .message-box-container .emojionearea",function(e){var t,n,i=!0;if(c(this).parents(".message-box-footer").find(".uploadifive-queue-item")[0]&&c(this).parents(".message-box-footer").find(".uploadifive-queue-item").each(function(){i=!!c(this).hasClass("complete")}),!(13!=e.keyCode&&void 0!==e.originalEvent||e.shiftKey)&&i){if(1==wpj_vars.chat_emoji_enabled&&c(this).is("#message_box_input_content"))return!1;n=1==wpj_vars.chat_emoji_enabled?(t=validateInputContent(c(this).siblings("#message_box_input_content").data("emojioneArea").getText())).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br/>"):(t=validateInputContent(c(this).text()),c(this).text().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br/>"));var a,r,o=c(this).parents(".message-box-container").attr("rel"),s=c('input[name="hidden_files_chat_attachments_'+o+'"]').val(),l="";return c(this).parents(".message-box-footer").find(".dz-success.dz-complete")[0]&&(a=[],c(this).parents(".message-box-footer").find(".dz-success.dz-complete").each(function(){a.push(c(this).attr("data-id"))}),l=a.join(",")),r=1==wpj_vars.chat_emoji_enabled?get_input_length_emoji(n):get_input_length(c(this),"html"),(s||l||0!=n.trim().length&&r>=parseInt(wpj_vars.characters_pm_min)&&r<=parseInt(wpj_vars.characters_pm_max))&&(wpj_chat_insert_message_to_box(o,n,l),c.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"send_message_action",otheruid:o,message:t,upload:s,img_upload:l,request_id:"",job_id:""},success:function(e){wpj_init_attachments_gallery()}}),c("#uploadifive-file_upload_chat_attachments_"+o+"-queue").empty(),(c(this).parents(".message-box-footer").find(".message-box-footer-options").is(":visible")||c(this).parents(".message-box-footer").find(".messages-image-uploader-wrapper").is(":visible"))&&c(this).parents(".message-box-footer").find(".js-message-options-btn").trigger("click"),c(this).parents(".message-box-footer").find(".dz-image-wrapper").remove(),c("input[name=hidden_files_chat_attachments_"+o+"]").val("")),1==!wpj_vars.chat_emoji_enabled&&c(this).parents(".message-box-footer").find(".message-box-placeholder-container").show(),1==wpj_vars.chat_emoji_enabled?c(this).siblings("#message_box_input_content").data("emojioneArea").setText(""):c(this).text(""),c(this).parents(".message-box-wrapper").find(".no-results").text(""),!1}if(""!==c(this).text()?c(this).parents(".message-box-footer").find(".message-box-placeholder-container").hide():1==!wpj_vars.chat_emoji_enabled&&c(this).parents(".message-box-footer").find(".message-box-placeholder-container").show(),13==e.keyCode&&!e.shiftKey)return!1;"Escape"===e.key&&c('[rel="'+o+'"]').find(".message-box-close").trigger("click")}),c(document).on("click",".message-box-maximize, .message-box-logo-area, .message-box-user-info-title-container",function(e){c(this).parents(".message-box-wrapper").hasClass("minimized")||(e.preventDefault(),e.stopPropagation(),window.location.href=c(this).find("a").attr("href"))}),c(document).on("click",".js-message-options-btn",function(e){c(this).parents(".message-box-footer").find(".message-box-footer-options").is(":hidden")?c(this).parents(".message-box-footer").find(".messages-image-uploader-wrapper").is(":visible")?(c(this).parents(".message-box-footer").find(".messages-image-uploader-wrapper").hide("slide",{direction:"down"},300),c(this).animateStep({from:45,to:0,step:c.fn.rotate})):(c(this).parents(".message-box-footer").find(".message-box-footer-options").slideDown({start:function(){c(this).css({display:"flex"})}}),c(this).animateStep({from:0,to:45,step:c.fn.rotate})):(c(this).parents(".message-box-footer").find(".message-box-footer-options").slideUp(),c(this).animateStep({from:45,to:0,step:c.fn.rotate}))}),c(document).on("click",".js-chat-img-attach-btn",function(e){c(this).parents(".message-box-footer").find(".message-box-footer-options").slideUp("fast",function(){c(this).parents(".message-box-footer").find(".messages-image-uploader-wrapper").show("slide",{direction:"down"},300)}),c(this).parents(".message-box-footer").find(".dz-default.dz-message").trigger("click")}),c(window).on("load resize",function(){wpj_chat_display_boxes(r,"resize_window")}),c(document).on("click blur",".message-box-container",function(e){0===window.getSelection().toString().length&&("click"==e.type?c(this).find(".message-box-wrapper").hasClass("has-focus")||(c(this).find(".message-box-placeholder-container").hide(),c(this).find(".message-box-wrapper").addClass("has-focus"),c(this).find(".message-box-input-content").focus(),c(this).find(".message-box-wrapper").removeClass("unread")):"focusout"==e.type&&c(this).find(".message-box-wrapper").removeClass("has-focus"))}),c(document).on("click",".chat-sidebar-user-search-icon",function(e){c(this).siblings(".chat-sidebar-user-search-input").is(":hidden")?(c(this).removeClass("search").addClass("times"),c(this).siblings(".chat-sidebar-user-search-input").show("slide",{direction:"right"},300)):(c(this).removeClass("times").addClass("search"),c(this).siblings(".chat-sidebar-user-search-input").hide("slide",{direction:"right"},300))}))}),Hooks.add_action("wpj_after_custom_offer_saved",wpj_chat_insert_custom_offer_to_box,2),jQuery(window).ready(function(i){i(document).on("click",".amount_add, .amount_rmv",function(e){e.preventDefault(),i(this).parents(".item").find(".ui.checkbox").checkbox("set checked");var t=i(this).siblings(".current_amount").val();t&&!isNaN(t)||(t=1),(t=i(this).hasClass("amount_add")?parseInt(t)+1:parseInt(t)-1)<1&&(t=1);e=i(this).siblings(".current_amount").attr("data-max");e<t&&(t=e);e=i(this).siblings(".current_amount").attr("name");i('input[name="'+e+'"]').val(t),i(this).parents(".item").find("[type=checkbox]").val(t);e=i(this).parents(".item").attr("data-extranr");i(".item[data-extranr="+e+"]").attr("data-extraamount",t),0!=i("#getforfree").length&&i("#getforfree").attr("href",i("#getforfree").attr("href").replace(/amount=[^&]+/,"amount="+t)),i(this).parents(".amount_section").find(".current_amount").hasClass("main_value_inp")&&i(".chk_extrafast").parents(".ui.checkbox")[0]&&i(".chk_extrafast").parents(".ui.checkbox").checkbox("is checked")&&t<parseInt(i(".hid_extrafast").data("max"))&&(i(".chk_extrafast").val(t),i(".hid_extrafast").val(t)),wpj_update_purchase_price("job_purchase")}),i(document).on("click keyup keypress blur change",".current_amount",function(e){i(this).parents(".item").find(".ui.checkbox").checkbox("set checked");var t=i(this).attr("data-max"),n=i(this).val();parseInt(i(this).val())>t&&(n=t);t=i(this).attr("name");i('input[name="'+t+'"]').val(n),i(this).parents(".item").find("[type=checkbox]").val(n);t=i(this).parents(".item").attr("data-extranr");i(".item[data-extranr="+t+"]").attr("data-extraamount",n),i(this).parents(".amount_section").find(".current_amount").hasClass("main_value_inp")&&0!=i("#getforfree").length&&i("#getforfree").attr("href",i("#getforfree").attr("href").replace(/amount=[^&]+/,"amount="+n)),wpj_update_purchase_price("job_purchase")}),i(document).on("change",".chk_extrafast",function(e){var t=parseInt(i(".js-job-quantity-wrapper .main_value_inp").val());t&&!isNaN(t)||(t=1),i(".chk_extrafast").parents(".ui.checkbox")[0]&&i(".chk_extrafast").parents(".ui.checkbox").checkbox("is checked")&&(t<parseInt(i(".hid_extrafast").data("max"))?(i(".chk_extrafast").val(t),i(".hid_extrafast").val(t)):(i(".chk_extrafast").val(parseInt(i(".hid_extrafast").data("max"))),i(".hid_extrafast").val(parseInt(i(".hid_extrafast").data("max")))))}),i(document).on("change",".uzextracheck[type=checkbox]",function(e){var t=i("[name="+i(this).attr("name")+"]");i(this).parents(".ui.checkbox")[0]&&i(this).parents(".ui.checkbox").checkbox("is checked")?t.parents(".ui.checkbox").checkbox("set checked"):t.parents(".ui.checkbox").checkbox("set unchecked"),wpj_update_purchase_price("job_purchase")}),i(document).on("change",'.featured_chk[type="checkbox"], .badge_chk[type="radio"], .topup_chk[type="radio"], input[name="sub_id"]',function(e){var t,n;return i(".ui.message").hasClass("hidden")||i(".ui.message").addClass("hidden"),"sub_id"==i(this).attr("name")?t="subscription":"feature_pages[]"==i(this).attr("name")?t="featured":"badges"==i(this).attr("name")?t="badge":"topup"==i(this).attr("name")&&(t="topup"),"undefined"!==t&&(wpj_update_purchase_price(t),"subscription"==t&&((n=i(this).val().split("-"))[0],t=n[1],n=(n=i(this).siblings(".checkbox-wrapper").children(".level-amount").html())&&i.trim(n),i(".level0, .level1, .level2, .level3").removeClass("active"),i("."+t).addClass("active").html(n))),!1})}),function(e){e.fn.counted=function(a){return a=e.extend({count:300},a||{}),this.each(function(){var t=e(this),n=e('<span class="charscounter" />').html(a.count).insertAfter(t);function i(e){var t=a.count-e.val().length;0<=t?n.html(t):(e.val(e.val().substr(0,a.count)),n.html(0))}t.on("ready change paste keyup blur",function(e){i(t)}),t.ready(function(){i(t)})})}}(jQuery),jQuery(document).ready(function(t){t(document).on("change","#purchase_job_currency",function(e){t('form[name="myFormPurchase"]').attr("action",wpj_vars.page_url+"?site_currency="+t('select[id="purchase_job_currency"]').val()),t('form[name="myFormPurchase"]').submit()}),t(document).on("click",".js-dropdown-menu.currency .item, .currency-list-mobile li",function(e){window.location=wpj_vars.page_url+"?site_currency="+t(this).data("currencyval")})}),jQuery(document).ready(function(i){i(document).on("click",".open-custom-offer-modal",function(e){e.preventDefault();e=i(this).attr("data-unique-id");i(".ui.modal.custom-offer-container."+e).modal({onApprove:function(){return!1},onDeny:function(){return!1},onShow:function(){jQuery.fn.wpjUploadifiveUploaderInit()}}).modal("setting","transition","fly down").modal("show").modal("refresh")}),i(document).on("submit",".request_form",function(e){e.preventDefault(),i(".request_form .actions .button").addClass("loading disabled");var n=i(this).parents(".custom-offer-wrapper").attr("data-unique-id");i.ajax({data:"action=request_custom_offer_action&"+i(this).serialize(),dataType:"json",type:"POST",url:wpj_vars.ajaxurl,success:function(e){var t;i(".request_form .actions .button").removeClass("loading disabled"),i(".custom-offer-btn").notify(e.message.description,{position:"top center",className:e.message.code}),"success"==e.message.code&&((t=i(".ui.modal.custom-offer-container."+n)).modal("hide"),t.find(".request_message").val(""),t.find(".uploadifive-queue").empty(),t.find(".uploadifive-queue + input").val(""),Hooks.do_action("wpj_after_custom_offer_saved",e,{action:"request"}))}})}),i(document).on("submit",".offer_form",function(e){e.preventDefault(),i(".offer_form .actions .button").addClass("loading disabled");var n=i(this).parents(".custom-offer-wrapper").attr("data-unique-id");i.ajax({data:"action=send_custom_offer_action&"+i(this).serialize(),dataType:"json",type:"POST",url:wpj_vars.ajaxurl,success:function(e){var t;i(".offer_form .actions .button").removeClass("loading disabled"),i(".custom-offer-btn").notify(e.message.description,{position:"top center",className:e.message.code}),"success"==e.message.code&&((t=i(".ui.modal.custom-offer-container."+n)).modal("hide"),t.find(".offer_description").val(""),t.find('input[name="price"]').val(""),t.find('input[name="delivery"]').val(""),Hooks.do_action("wpj_after_custom_offer_saved",e,{action:"send"}),jQuery(".is-page-pm")[0]&&refreshContent(".thread-list-wrapper"),jQuery(".is-page-pm.is-page-pm-single")[0]&&refreshContent(".js-messages-list .kt-inside-inner-col:first"),i("#order-notification-messages-wrapper")[0]&&refreshContent("#order-notification-messages-wrapper"))}})})}),jQuery(document).ready(function(t){t(document).on("click",".scrollToTop",function(e){return t("html, body").animate({scrollTop:0},800),!1}),t(document).on("click",".js-toggle-arrow",function(){var e;t(this).find(".dynamically-icon").is(":visible")&&((e=t(this).find(".js-toggle-angle-icon")).hasClass("toggle-angle-icon-up")?(e.removeClass("toggle-angle-icon-up").addClass("toggle-angle-icon-down"),e.parents(".js-toggle-wrapper").siblings("div").slideUp("slow"),e.parents(".js-toggle-wrapper").addClass("collapsed")):(e.removeClass("toggle-angle-icon-down").addClass("toggle-angle-icon-up"),e.parents(".js-toggle-wrapper").siblings("div").slideDown("slow"),e.parents(".js-toggle-wrapper").removeClass("collapsed")))})}),jQuery(document).ready(function(t){var n=!1;t(document).one("click",".payment-buttons .text-button",function(e){!n&&t(this).attr("onclick").includes("take_to_gateway")&&(n=!0,addLoader(t(this).parents(".wp-block-kadence-column:first")),setTimeout(function(){n=!1},5e3))}),t(document).on("click",".js-topup-order-cancel-button",function(e){e.preventDefault(),take_to_gateway_topup_process("cancel",window.location.pathname.split("/").filter(Boolean).pop(),t(".js-payment-method").attr("data-method"),t(".js-package-id").attr("data-package-id"))}),t(document).on("click",".js-topup-order-process-button",function(e){e.preventDefault(),take_to_gateway_topup_process("process",window.location.pathname.split("/").filter(Boolean).pop(),t(".js-payment-method").attr("data-method"),t(".js-package-id").attr("data-package-id"))})}),jQuery(document).ready(function(t){t(document).on("click",".graph-button",function(e){t("#disp_type").val(t("input[name=disp_type]:checked").val()),"lastweek"==t("#disp_type").val()||"all"==t("#disp_type").val()?(t("#form_graph").removeClass("hidden"),t("#form_graph").addClass("hidden"),t("#select_month").removeClass("hidden"),t("#select_month").addClass("hidden"),wpj_get_user_account_graph()):"month"==t("#disp_type").val()?(t("#form_graph").removeClass("hidden"),t("#select_month").removeClass("hidden")):"year"==t("#disp_type").val()&&(t("#form_graph").removeClass("hidden"),t("#select_month").removeClass("hidden"),t("#select_month").addClass("hidden"))}),t(document).on("click",".graph-link",function(e){t(this).hasClass("open")?(t(this).removeClass("open"),t("#chart-div-container").slideUp(400),t("#chart_div").slideUp(400)):(t(this).addClass("open"),t("#chart-div-container").slideDown(400),t("#chart_div").slideDown(400),wpj_get_user_account_graph())})}),jQuery(document).ready(function(t){t(document).on("click",".js-activate-job-link",function(){t(".js-activate-job-action").attr("data-id",t(this).attr("data-id")),t(".job-title-modal").html(validateInputContent(t(this).attr("data-title"))),t(".ui.modal.js-activate-job-modal").modal("setting","transition","fly down").modal("show")}),t(document).on("click",".js-activate-job-action",function(e){t.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"activate_job_action",post_id:t(this).attr("data-id")},beforeSend:function(){t(".js-activate-job-action").addClass("loading"),addLoader(".wpj-grid-table")},success:function(e){"1"==e?(t(".order-additional-wrapper")[0]?changeURL(wpj_vars.page_url):t(".js-user-account-wrapper")[0]?refreshContent(".js-user-account-wrapper"):wpj_refresh_kadence_tab_content(),t(".ui.modal.js-activate-job-modal").modal("hide")):"active_jobs_exceeded"==e?t(".content.activate-job").text(wpj_vars.active_jobs_exceeded):"not_your_post"==e?t(".content.activate-job").text(wpj_vars.not_your_post):"no_credits"==e?t(".content.activate-job").text(wpj_vars.no_credits):"not_logged_in"==e&&t(".content.activate-job").text(wpj_vars.not_logged_in)},complete:function(){t(".js-activate-job-action").removeClass("loading"),t(".ui.active.inverted.dimmer").remove()}})}),t(document).on("click","#js-activate-all-jobs-link",function(e){t(".ui.modal.js-activate-all-jobs-modal").modal("setting","transition","fly down").modal("show")}),t(document).on("click",".js-activate-all-jobs-action",function(e){t.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"activate_all_jobs_action",reason:"by_user"},beforeSend:function(){t(".js-activate-all-jobs-action").addClass("loading"),addLoader(".wpj-grid-table")},success:function(e){t(".js-user-account-wrapper")[0]?refreshContent(".js-user-account-wrapper"):wpj_refresh_kadence_tab_content()},complete:function(){t(".js-activate-all-jobs-action").removeClass("loading"),t(".ui.modal.js-activate-all-jobs-modal").modal("hide")}})}),t(document).on("click",".js-deactivate-job-link",function(){t(".js-deactivate-job-action").attr("data-id",t(this).attr("data-id")),t(".job-title-modal").html(validateInputContent(t(this).attr("data-title"))),t(".ui.modal.js-deactivate-job-modal").modal("setting","transition","fly down").modal("show")}),t(document).on("click",".js-deactivate-job-action",function(e){t.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"deactivate_job_action",post_id:t(this).attr("data-id")},beforeSend:function(){t(".js-deactivate-job-action").addClass("loading"),addLoader(".wpj-grid-table")},success:function(e){"1"==e?(t(".order-additional-wrapper")[0]?changeURL(wpj_vars.page_url):t(".js-user-account-wrapper")[0]?refreshContent(".js-user-account-wrapper"):wpj_refresh_kadence_tab_content(),t(".ui.modal.js-deactivate-job-modal").modal("hide")):"not_your_post"==e?t(".content.deactivate-job").text(wpj_vars.not_your_post):"not_logged_in"==e&&t(".content.deactivate-job").text(wpj_vars.not_logged_in)},complete:function(){t(".js-deactivate-job-action").removeClass("loading"),t(".ui.active.inverted.dimmer").remove()}})}),t(document).on("click","#js-deactivate-all-jobs-link",function(e){t(".ui.modal.js-deactivate-all-jobs-modal").modal("setting","transition","fly down").modal("show")}),t(document).on("click",".js-deactivate-all-jobs-action",function(e){t.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"deactivate_all_jobs_action",reason:"by_user"},beforeSend:function(){t(".js-deactivate-all-jobs-action").addClass("loading"),addLoader(".wpj-grid-table")},success:function(e){t(".js-user-account-wrapper")[0]?refreshContent(".js-user-account-wrapper"):wpj_refresh_kadence_tab_content()},complete:function(){t(".js-deactivate-all-jobs-action").removeClass("loading"),t(".ui.modal.js-deactivate-all-jobs-modal").modal("hide")}})}),t(document).on("click",".js-delete-job-link",function(){t(".js-delete-job-action").attr("data-id",t(this).attr("data-id")),t(".job-title-modal").html(validateInputContent(t(this).attr("data-title-delete"))),t(".ui.modal.js-delete-job-modal").modal("setting","transition","fly down").modal("show")}),t(document).on("click",".js-delete-job-action",function(e){t.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"delete_job_action",post_id:t(this).attr("data-id")},beforeSend:function(){t(".js-delete-job-action").addClass("loading"),addLoader(".wpj-grid-table")},success:function(e){"1"==e?(t(".order-additional-wrapper")[0]?changeURL(wpj_vars.my_account_url):t(".js-user-account-wrapper")[0]?refreshContent(".js-user-account-wrapper"):wpj_refresh_kadence_tab_content(),t(".ui.modal.js-delete-job-modal").modal("hide")):"not_your_post"==e?t(".content.delete-job").text(wpj_vars.not_your_post):"not_logged_in"==e&&t(".content.delete-job").text(wpj_vars.not_logged_in)},complete:function(){t(".js-delete-job-action").removeClass("loading")}})}),t(document).on("click","#js-delete-all-jobs-link",function(e){t(".ui.modal.js-delete-all-jobs-modal").modal("setting","transition","fly down").modal("show")}),t(document).on("click",".js-delete-all-jobs-action",function(e){t.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"delete_all_jobs_action"},beforeSend:function(){t(".js-delete-all-jobs-action").addClass("loading"),addLoader(".wpj-grid-table")},success:function(e){t(".js-user-account-wrapper")[0]?refreshContent(".js-user-account-wrapper"):wpj_refresh_kadence_tab_content()},complete:function(){t(".js-delete-all-jobs-action").removeClass("loading"),t(".ui.modal.js-delete-all-jobs-modal").modal("hide")}})})}),jQuery(document).ready(function(r){r(document).on("click","#add-edit-job-form",function(e){var t=getUrlParameter("action")?getUrlParameter("action"):"new-job",n=getUrlParameter("jobid");!1===r(e.target).parent().hasClass("post-new-job-btn")&&!1===r(e.target).hasClass("js-delete-extra")&&r.ajax({type:"post",url:wpj_vars.ajaxurl,data:r(this).serialize()+"&status=autodraft&action=save_job_post_action&aoe_form_submitted=1&action_type="+t+"&jobid="+n,success:function(e){}})}),r(document).on("click",".post-new-job-btn",function(e){var t;wpj_validate_new_job_form(),r("#add-edit-job-form").form("is valid")&&(e.preventDefault(),t=getUrlParameter("action")?getUrlParameter("action"):"new-job",e=getUrlParameter("jobid"),r(this).addClass("ui loading disabled button"),r.ajax({type:"post",url:wpj_vars.ajaxurl,data:r("#add-edit-job-form").serialize()+"&status=publish&action=save_job_post_action&aoe_form_submitted=1&action_type="+t+"&jobid="+e,success:function(e){if(!e.includes("http://")&&!e.includes("https://"))return r(".post-new-job-btn").removeClass("ui loading disabled button"),r(".ui.error.message").html(e).removeClass("hidden").show(),!1;changeURL(e)}}))}),r(document).on("change","#job_cat",function(t){0!==r(this).val().length?r.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"load_subcategories_by_categories_action",taxonomy_name:"job_cat",term_type:"id",include_empty_option:wpj_vars.select_subcategory,select_name:"subcat",select_id:"subcat",select_category_value:r(this).val()},beforeSend:function(){"change"==t.type&&void 0!==t.originalEvent&&r("#job_subcategories").html('<center><img src="'+wpj_vars.theme_path+'/assets/images/loader/loader-green.svg"></center>')},success:function(e){e&&2<e.match(/option/g).length?("change"==t.type&&void 0!==t.originalEvent&&r("#job_subcategories").html(e),r(".ui.dropdown").dropdown({message:{noResults:wpj_vars.nothing_found}}),localStorage.setItem("validate_subcat","yes")):("change"==t.type&&r("#job_subcategories").html(""),localStorage.setItem("validate_subcat","no")),1!=r("#job_subcategories").attr("data-required")&&localStorage.setItem("validate_subcat","no")}}):("change"==t.type&&r("#job_subcategories").html(""),localStorage.setItem("validate_subcat","no"))}),r(document).on("change","#max_days",function(e){"instant"==r("#max_days").val()?(r(".fields")[0]&&r('[data-handler-id="job_instant_delivery"]').css({display:"flex"}),r(".instant-delivery-field-wrapper")[0]&&r(".instant-delivery-field-wrapper").find(".kt-inside-inner-col").show()):(r(".fields")[0]&&r('[data-handler-id="job_instant_delivery"]').hide(),r(".instant-delivery-field-wrapper")[0]&&r(".instant-delivery-field-wrapper").find(".kt-inside-inner-col").hide()),wpj_check_job_delivery_time("yes")}),r(document).on("change",'select[name="price_type"]',function(e){var t=r(this).val();-1!=r.inArray(t,JSON.parse(wpj_vars.no_days_price_types))?(r(".fields")[0]&&r('[data-handler-id="job_delivery"]').parents(".fields").hide(),r(".wp-block-kadence-rowlayout")[0]&&r('[data-handler-id="job_delivery"]').parents(".wp-block-kadence-rowlayout").eq(1).hide(),r(".fields")[0]&&jQuery('[data-handler-id="job_instant_delivery"]').hide(),r(".instant-delivery-field-wrapper")[0]&&r(".instant-delivery-field-wrapper").find(".kt-inside-inner-col").hide(),wpj_check_job_delivery_time("no"),"package"==t?(r(".fields")[0]&&(r(".packages").parents(".field").removeClass("hidden"),r(".packages").parents(".fields").removeClass("hidden")),r(".package-field-wrapper")[0]&&r(".package-field-wrapper").show()):(r(".fields")[0]&&(r(".packages").parents(".field").addClass("hidden"),r(".packages").parents(".fields").addClass("hidden")),r(".package-field-wrapper")[0]&&r(".package-field-wrapper").hide()),"package"==t?(r('input[name="job_cost"]').prop("disabled",!0),r('input[name="job_cost"]').attr("placeholder",r('input[name="job_cost"]').attr("data-packages"))):"custom"==t?(r('input[name="job_cost"]').prop("disabled",!0),r('input[name="job_cost"]').attr("placeholder",r('input[name="job_cost"]').attr("data-customplaceholder"))):(r('input[name="job_cost"]').prop("disabled",!1),r('input[name="job_cost"]').attr("placeholder",r('input[name="job_cost"]').attr("data-placeholder")))):(r(".fields")[0]&&r('[data-handler-id="job_delivery"]').parents(".fields").css({display:"flex"}),r(".wp-block-kadence-rowlayout")[0]&&r('[data-handler-id="job_delivery"]').parents(".wp-block-kadence-rowlayout").eq(1).show(),"instant"==r("#max_days").val()&&(jQuery(".fields")[0]&&jQuery('[data-handler-id="job_instant_delivery"]').css({display:"flex"}),jQuery(".instant-delivery-field-wrapper")[0]&&jQuery(".instant-delivery-field-wrapper").find(".kt-inside-inner-col").show()),wpj_check_job_delivery_time("yes"),r(".fields")[0]&&(r(".packages").parents(".field").addClass("hidden"),r(".packages").parents(".fields").addClass("hidden")),r(".package-field-wrapper")[0]&&r(".package-field-wrapper").hide(),"custom"==t?(r('input[name="job_cost"]').prop("disabled",!0),r('input[name="job_cost"]').attr("placeholder",r('input[name="job_cost"]').attr("data-customplaceholder"))):(r('input[name="job_cost"]').prop("disabled",!1),r('input[name="job_cost"]').attr("placeholder",r('input[name="job_cost"]').attr("data-placeholder")))),wpj_pck_disable_efd_delivery_days(),Hooks.do_action("wpj_after_job_price_type_changed",t)}),r(document).on("click","#job_tags_tagsinput",function(e){"0px"==r(this).find("#job_tags_tag")[0].style.width&&r(this).find("#job_tags_tag").removeAttr("style")}),r(document).on("click",".js-add-video",function(e){r(".video-wrapper").last().clone().find("input:text").val("").end().insertAfter(".video-wrapper:last"),r(".video-wrapper").length>=wpj_vars.video_multiples&&r(".js-add-video").hide()}),r(document).on("click",".js-delete-video",function(e){1<r(".js-delete-video").length?r(this).parents(".video-wrapper").remove():r(".video-link").val(""),r(".video-wrapper").length<wpj_vars.video_multiples?r(".js-add-video").show():r(".js-add-video").hide()}),r(document).on("click",".js-add-faq",function(e){var t=r(".faq-wrapper").last().clone();t.find(".title").html(wpj_vars.insert_faq+'<i class="angle down icon"></i>'),t.find("input, textarea").val(""),t.insertAfter(".faq-wrapper:last"),r(".ui.accordion").accordion()}),r(document).on("click",".js-delete-faq",function(e){1<r(".js-delete-faq").length?r(this).parents(".faq-wrapper").remove():(r(this).siblings(".faq-item").find(".title").html('<i class="dropdown icon"></i>'+wpj_vars.insert_faq),r(this).siblings(".faq-item").find("input, textarea").val(""))}),r(document).on("click",".js-add-extra",function(a){$new_extra=r(".js-extra-wrapper").last().clone(),$id=$new_extra.attr("id").split("_"),$id=parseInt($id[1]),$id+1<=wpj_vars.extra_multiples&&($sep=r('<div id="field_separator" class="field_separator"><div class="ui section divider"></div></div>').insertAfter(r(".js-extra-wrapper").last()),$next_id=$id+1,$new_extra.attr("id","extra_"+$next_id),$new_extra.find("textarea").each(function(){r(this).removeClass("charlimit-extradescription-"+$id),r(this).addClass("charlimit-extradescription-"+$next_id)}),$new_extra.find(".charscounter").eq(0).remove(),$new_extra.find(":input").each(function(){var n,e,t,i;this.name=this.name.replace($id,$next_id),this.id=this.id.replace($id,$next_id),void 0!==a.originalEvent?("number"!=this.type&&"textarea"!=this.type||r(this).val(""),r(this).parents(".field").removeClass("error"),r(this).parent().checkbox("uncheck"),r(this).parent().children(".text").addClass("default").html(wpj_vars.lbl_please_select),r(this).parent().children(".menu").children(".item.active.selected").removeClass("active").removeClass("selected")):(n=[],r.each(JSON.parse(wpj_vars.extra_enable),function(e,t){0!=e&&"yes"==t&&n.push(e)}),e=parseInt($id)-1,t=JSON.parse(wpj_vars.extra_enable),this.name=="enable_extra_"+$next_id&&("yes"==t[n[e]]?r(this).attr("checked","checked"):r(this).removeAttr("checked")),t=JSON.parse(wpj_vars.extra_description),this.name=="extra"+$next_id+"_content"&&(r(this).val(t[n[e]]),""!=(i=JSON.parse(wpj_vars.rej_comment.replace(/\n/g,"").replace(/\r/g,"").replace(/\t/g,"")))[n[e]]&&(r(this).addClass("rejected-input"),r(this).parent().siblings(".ui.popup").html(i[n[e]]),r(this).parent().siblings(".ui.popup").addClass("rejected-input"))),i=JSON.parse(wpj_vars.extra_price),this.name=="extra"+$next_id+"_price"&&r(this).val(i[n[e]]),i=JSON.parse(wpj_vars.extra_max_days),this.name=="max_days_"+$next_id&&r(this).dropdown("set selected",i[n[e]]),i=JSON.parse(wpj_vars.extra_multiple),this.name=="enable_multiples_"+$next_id&&("yes"==i[n[e]]?r(this).attr("checked","checked"):r(this).removeAttr("checked")))}),$new_extra.insertAfter($sep),r.fn.wpjSemanticInit(),r(".charlimit-extradescription-"+$next_id).counted({count:wpj_vars.characters_extradesc_max})),$id+1>=wpj_vars.extra_multiples&&r(".js-add-extra").hide()}),r(document).on("click",".js-delete-extra",function(e){var t;1<r(".js-delete-extra").length?(r(this).parents(".js-extra-wrapper").next(".fields").remove(),r(this).parents(".js-extra-wrapper").remove(),t=1,r(".js-extra-wrapper").each(function(){$id=r(this).attr("id").split("_"),$id=parseInt($id[1]),r(this).attr("id","extra_"+t),r(this).find(":input").each(function(){this.name=this.name.replace($id,t),this.id=this.id.replace($id,t)}),t++})):(r(this).parents(".js-extra-wrapper").find(".price-input").val(""),r(this).parents(".js-extra-wrapper").find(".charlimit-extradescription").val(""),r(this).parents(".js-extra-wrapper").find(".ui.checkbox").each(function(){r(this).checkbox("uncheck")}),r(this).parents(".js-extra-wrapper").find(".max-day-deliver").children(".text").addClass("default").html(wpj_vars.lbl_please_select),r(this).parents(".js-extra-wrapper").find(".max-day-deliver").children(".menu").children(".item.active.selected").removeClass("active").removeClass("selected"),r(this).parents(".js-extra-wrapper").find(".max-day-deliver").prop("selectedIndex",0)),r(".js-add-extra").show()}),r(document).on("click",".post-new-job-btn",function(e){r(function(e){e(".js-extra-wrapper").each(function(){$id=e(this).attr("id").split("_"),$id=parseInt($id[1]),e(this).find("#enable_extra_"+$id).is(":checked")||e(this).find(".js-delete-extra").trigger("click")})})})}),jQuery(document).ready(function(n){n(document).on("click",".read-more-desc",function(e){e.preventDefault(),n(this).parents(".post-job-description").find(".job-excerpt").is(":visible")?(n(this).text(wpj_vars.read_less),n(this).parents(".post-job-description").find(".job-excerpt").hide(),n(this).parents(".post-job-description").find(".job-post").show()):(n(this).text(wpj_vars.read_more),n(this).parents(".post-job-description").find(".job-post").hide(),n(this).parents(".post-job-description").find(".job-excerpt").show())}),n(document).on("click","[data-submit]",function(e){var t=n(this).parents("form");return(t=n(this).data("submit")?n(n(this).data("submit")):t).submit(),!1}),n(document).on("click",".layout_jobs",function(e){var t=document.createEvent("HTMLEvents");t.initEvent("resize",!0,!1),document.dispatchEvent(t);t=n(this).data("value");"grid"==t&&(n(".wpj-load-more-target").removeClass("list-grid"),n(this).parent().removeClass("list-grid")),"list"==t&&(n(".wpj-load-more-target").addClass("list-grid"),n(this).parent().addClass("list-grid")),n(".owl-video-wrapper").each(function(){var e=n(this).height();n(this).find("iframe").attr("height",e)}),"list"!=n.cookie("cards-layout")?n.cookie("cards-layout","list",{expires:7,path:"/"}):n.cookie("cards-layout","grid",{expires:7,path:"/"})}),n(document).on("submit",".js-job-filter-form",function(e){return e.preventDefault(),n(this).find('input[type="submit"]').addClass("disabled"),addLoader(".wpj-load-more-target"),n.ajax({url:n(this).attr("action"),type:n(this).attr("method"),data:n(this).serialize(),success:function(e){changeURL(this.url)}}),!1})}),Hooks.add_action("wpj_after_page_load_without_refresh",wpj_init_social_share_modal),jQuery(document).ready(function(m){m(document).on("click",".wpj-load-more",function(e){var t=this;m(t).hasClass("js-load-more-button")&&m(t).addClass("ui primary button loading");var n=Number(m(t).attr("data-pid")),i=Number(m(t).attr("data-uid")),a=m(t).attr("data-querytype"),r=m(t).attr("data-querystatus"),o=(o=m(t).attr("data-queryparams"))&&JSON.parse(o),s=m(t).attr("data-functionname"),l=(l=m(t).attr("data-functionparams"))&&JSON.parse(l),c=(c=m(t).attr("data-postsperpage"))||wpj_vars.posts_per_page,u=m(t).attr("data-rowextraclasses"),d=m(t).attr("data-loadtype"),p=isNaN(Number(m(t).attr("data-page-nr")))?2:Number(m(t).attr("data-page-nr"));m(t).attr("data-page-nr",p+1);var h=(h=m(t).attr("data-class-args"))&&JSON.parse(h),h={action:m(t).attr("data-action"),page_nr:p,pid:n,uid:i,query_type:a,query_status:r,query_params:o,function_name:s,function_params:l,posts_per_page:c,row_extra_classes:u,load_type:d,args_encoded:h},f=Number(m(t).attr("data-click-nr"));m(t).attr("data-click-nr",f+1),m.post(wpj_vars.ajaxurl+(wpj_vars.url_params?"?"+wpj_vars.url_params:""),h,function(e){m(t).hasClass("js-load-more-button")&&m(t).removeClass("ui primary button loading"),m(t).hasClass("js-load-more-icon")?(m(t).siblings(".wpj-load-more-target").prepend(e).slideDown(400),m(".js-load-more-icon").hide()):m(t).hasClass("js-load-more-icon-down")?(m(t).parent().siblings(".wpj-load-more-target").append(e).slideDown(400),m(".js-load-more-icon-down").hide()):m(e).hide().appendTo(m(t).parent().siblings(".wpj-load-more-target")).slideDown(400),wpj_initialize_wpj_carousel(!("undefined"==typeof wpj_vars||!wpj_vars.is_rtl)),wpj_display_video_poster(),(""===e||("wpjobster-query-load-more-icon"==m(t).attr("id")||"wpjobster-query-load-more-icon-down"==m(t).attr("id")||"wpjobster-query-load-more-button"==m(t).attr("id"))&&f==Number(m(t).attr("data-clicks"))||"wpjobster-post-load-more-button"==m(t).attr("id")&&p>=Number(m(t).attr("data-max")))&&(m(t).slideUp(400),m(t).parents(".mb75").removeClass("mb75")),"function"==typeof m.fn.wpjLazyLoadRender&&m.fn.wpjLazyLoadRender()})}),m(document).on("click",".page-numbers",function(e){m(this).parents(".js-pagination-wrapper")[0]&&"pagination"==wpj_vars.load_more_type&&"animation"==wpj_vars.page_transition&&"undefined"!=typeof Modernizr&&Modernizr.history&&(e.preventDefault(),e=m(this).attr("href"),history.pushState?history.pushState(null,null,e):location.hash=e,m(this).addClass("ui loading button"),m(this).siblings(".page-numbers").addClass("div-disabled"),100<m(window).scrollTop()&&m("html, body").animate({scrollTop:0},800),refreshContent("."+m.trim(m(this).parents(".js-pagination-wrapper").siblings(".wpj-load-more-target").attr("class")).split(/\s+/).join(".")),refreshContent("."+m.trim(m(this).parents(".js-pagination-wrapper").attr("class")).split(/\s+/).join(".")))}),m(document).on("click","form .filter-box",function(e){m(".filter-container .js-group-filters").toggleClass("collapse-filters")})}),jQuery(document).ready(function(t){t(document).on("change",".js-lets-meet-trigger",function(e){this.checked?(t(".js-lets-meet-item").parents(".field").css({display:"flex"}),t(".js-lets-meet-item").parents(".fields").css({display:"flex"})):t(".js-lets-meet-item").each(function(){t(this).parents(".field").hide(),t(this).parents(".field").siblings(".field").is(":hidden")&&t(this).parents(".fields").hide()})})}),jQuery(document).ready(function(t){t(document).on("click",".menu-direction-right",function(e){e.preventDefault(),t(".main-menu-container.slider").find(".categories-menu-list").animate({scrollLeft:"+=200"},500)}),t(document).on("click",".menu-direction-left",function(e){e.preventDefault(),t(".main-menu-container.slider").find(".categories-menu-list").animate({scrollLeft:"-=200"},500)}),t(document).on("click",".nh-accordion-handler",function(e){e.preventDefault(),"block"==t(this).parent().children(" .nh-accordion").css("display")?(t(this).parent().children(".nh-accordion").slideUp(150),t(this).removeClass("nh-accordion-selected")):(t(this).parent().children(".nh-accordion").slideDown(150),t(this).addClass("nh-accordion-selected")),e.stopPropagation()}),t(document).on("click",".js-dropdown-menu-trigger",function(e){t(this).parent().toggleClass("dropdown-menu-open")}),t(document).click(function(e){t(".js-dropdown-menu").each(function(){0===t(this).has(e.target).length&&t(this).removeClass("dropdown-menu-open")})}),t(document).on("click",".js-mobile-menu-toggle",function(e){-1!=t(this).attr("class").indexOf("menu-left")&&(t(".left.menu").hasClass("visible")||t(".ui.sidebar.left").sidebar({onChange:function(){t("html[dir=rtl]").css("overflow-x","hidden")},onHidden:function(){t("html[dir=rtl]").css("overflow-x","")}}).sidebar("toggle")),-1!=t(this).attr("class").indexOf("menu-right")&&(t(".right.menu").hasClass("visible")||t(".ui.sidebar.right").sidebar({onChange:function(){t("html[dir=rtl]").css("overflow-x","hidden")},onHidden:function(){t("html[dir=rtl]").css("overflow-x","")}}).sidebar("toggle"))})}),jQuery(document).ready(function(e){11<=getIOSversion()[0]&&e("body").addClass("ios11"),inIframe()?(e("body").addClass("wpj-is-iframe"),e("body").removeClass("wpj-maybe-iframe"),e.cookie("wpj_is_iframe","true",{expires:7,path:"/"})):(e("body").removeClass("wpj-is-iframe"),e("body").removeClass("wpj-maybe-iframe"),e.cookie("wpj_is_iframe","false",{expires:7,path:"/"}))}),jQuery(document).ready(function(a){a(document).on("click",".js-mark-all-notifications-as-read",function(e){e.preventDefault(),addLoader(".all-notifications-list-wrapper"),a.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"mark_all_notifications_as_read_action",all_notifications_read:!0},success:function(e){refreshContent(".all-notifications-list-wrapper")}})}),a(document).on("click",".js-mark-notification-as-read",function(){a(this).removeClass("x").removeClass("icon").addClass("ui active inline loader"),a.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"mark_notification_as_read_action",notification_id:a(this).attr("data-value")},success:function(e){refreshContent(".all-notifications-list-wrapper")}})}),a(document).on("click",".js-save-user-checked-notifications",function(e){e.preventDefault();var t=a(this),n=[];a('input:checked[name="email_notifications[]"]').each(function(){n.push(a(this).val())});var i=[];a('input:checked[name="sms_notifications[]"]').each(function(){i.push(a(this).val())}),a.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"save_user_selected_notifications_action",email_notifications:n,sms_notifications:i},beforeSend:function(){t.addClass("ui button loading disabled")},success:function(e){a(".js-save-user-checked-notifications").notify(wpj_vars.success_saved,{position:"right",className:"success"})},complete:function(){t.removeClass("ui button loading disabled")}})}),a(document).on("change","#all-email-notify",function(e){var t=a(this).closest(".mail_notification").find(":checkbox");a(this).is(":checked")?(t.prop("checked",!0),a("#all-mail").find("label").text(wpj_vars.uncheck_all_email)):(t.prop("checked",!1),a("#all-mail").find("label").text(wpj_vars.check_all_email))}),a(document).on("change",".mail_notification",function(e){wpj_check_notifications("all-email-notify","email_notifications")}),a(document).on("change","#all-sms-notify",function(e){var t=a(this).closest(".sms_notification").find(":checkbox");a(this).is(":checked")?(t.prop("checked",!0),a("#all-sms").find("label").text(wpj_vars.uncheck_all_sms)):(t.prop("checked",!1),a("#all-sms").find("label").text(wpj_vars.check_all_sms))}),a(document).on("change",".sms_notification",function(e){wpj_check_notifications("all-sms-notify","sms_notifications")}),a(document).on("click",".js-resend-sms-code",function(e){!a(".sms-countdown-wrapper").is(":hidden")&&void 0!==e.originalEvent||((!localStorage.endTime||localStorage.endTime<Date.now())&&a.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"resend_sms_verification_code_action",resend:!0},success:function(e){}}),wpj_sms_countdown(!0),a(".sms-countdown-wrapper").show(),jQuery(".js-resend-sms-code").removeClass("primary").removeClass("cursor-pointer"))})}),jQuery(document).ready(function(s){function t(e){s(".ui.modal."+e).modal({onVisible:function(){s(".ui.button.loading").removeClass("basic").removeClass("loading").removeClass("dislabed")}}).modal("setting","transition","fly down").modal("show").modal("refresh")}s(document).on("click",".open-modal-resolution-center",function(e){e.preventDefault(),t("resolution-center")}),s(document).on("click",".open-modal-request-modifications",function(e){e.preventDefault(),t("request-modification")}),s(document).on("click",".open-modal-tips-chatbox",function(e){e.preventDefault(),t("add-tips")}),s(document).on("click",".js-resolution-center-option",function(e){e.preventDefault();e=s('input[name="resolution_center_option"]:checked').val()||"cancellation";s(".ui.modal.resolution-center").modal("hide"),"cancellation"==e?t("request-mutual-cancellation"):"arbitration"==e?t("request-arbitration"):"extended_delivery_time"==e&&t("request-extended-delivery-time")}),s(document).on("click",".ui.cancel.button",function(){s(this).parents(".ui.modal").modal("hide")}),1==!wpj_vars.transaction_emoji_enabled&&s(document).on("input propertychange change blur",".order-message-form-textarea",function(e){s(this).hasScrollbar()?wpj_vars.is_rtl?s(".order-message-form-content").find(" .quick-response-wrapper").animate({left:"28px"},100):s(".order-message-form-content").find(" .quick-response-wrapper").animate({right:"28px"},100):wpj_vars.is_rtl?s(".order-message-form-content").find(" .quick-response-wrapper").animate({left:"18px"},100):s(".order-message-form-content").find(" .quick-response-wrapper").animate({right:"18px"},100)}),s(document).on("submit",".tips_form",function(e){e.preventDefault(),s(".tips_form .button").addClass("loading"),s(".tips_form .button").addClass("disabled");e=s(this);s.ajax({data:"action=new_tip_action&"+e.serialize(),dataType:"json",type:"POST",url:wpj_vars.ajaxurl,success:function(e){var t;s(".tips_form .button").removeClass("loading"),s(".tips_form .button").removeClass("disabled"),s(".js-create-tip-payment").notify(e.description,{position:"top center",className:e.code}),"success"==e.code&&(s(".ui.modal.add-tips").modal("hide"),window.location.replace(wpj_vars.checkout_url),t='\t\t\t\t\t\t<form id="accept_tips" method="post" name="purchase_tips'+e.tips_id+'" action="'+wpj_vars.checkout_url+'" style="display: none;">\t\t\t\t\t\t\t<input type="hidden" name="oid" value="'+e.oid+'" />\t\t\t\t\t\t\t<input type="hidden" name="tips" value="'+e.tips_id+'" />\t\t\t\t\t\t\t<input type="hidden" name="purchaseformvalidation" value="ok" />\t\t\t\t\t\t</form>\t\t\t\t\t',s(t).insertAfter(s("#order-notification-messages-wrapper")),s("form[name='purchase_tips"+e.tips_id+"']").submit())}})}),s(document).on("click",".send-message",function(e){var t;if(e.preventDefault(),t=1==wpj_vars.transaction_emoji_enabled?validateInputContent(s(".cmi-listen.message-field").data("emojioneArea").getText()):validateInputContent(s(".cmi-listen.message-field").val()),e=1==wpj_vars.transaction_emoji_enabled?get_input_length_emoji(s(".cmi-listen.message-field").data("emojioneArea").getText()):get_input_length(s(".cmi-listen.message-field")),""==t)s(this).notify(wpj_vars.msg_err,{position:"top right",className:"error"});else if(e<parseInt(wpj_vars.characters_pm_min))s(this).notify(wpj_vars.pm_min_content,{position:"top right",className:"error"});else if(e>parseInt(wpj_vars.characters_pm_max))s(this).notify(wpj_vars.pm_max_content,{position:"top right",className:"error"});else{e=s("#order-message-form").serialize();if(1==wpj_vars.transaction_emoji_enabled){var n=e.split("&"),a="";for(i=0;i<n.length;i++){var r=n[i].split("="),o=r[0],r=r[1];a+="message"===o?o+"="+encodeURIComponent(t)+"&":o+"="+r+"&"}e=a.slice(0,-1)}s(this).attr("disabled","disabled"),s.ajax({type:"POST",url:wpj_vars.ajaxurl,data:e,success:function(e){s(".order-message-form-textarea").val(""),1==wpj_vars.transaction_emoji_enabled&&(s(".emojionearea-editor").text(""),s(".emojionearea-editor").focus()),s("#uploadifive-file_upload_chat_box_attachments-queue").empty(),s('input[name="hidden_files_chat_box_attachments"]').val(""),refreshContent("#order-notification-messages-wrapper"),setTimeout('jQuery(".send-message").removeAttr("disabled")',500)}})}}),s(document).on("click",".submit-user-rating",function(e){var t,n=s(this),i=n.attr("rel");return!s("#reason-"+i).val()&&s("#reason-"+i).val().length<wpj_vars.characters_feedback_min?n.notify(wpj_vars.feedback_min_desc,{position:"top center",className:"error"}):s("#reason-"+i).val()&&s("#reason-"+i).val().length>wpj_vars.characters_feedback_max?n.notify(wpj_vars.feedback_max_desc,{position:"top center",className:"error"}):s("input[name=stars]:checked","#rating-"+i).val()?(t=[],n.parents(".js-review-form").find(".cb-skills-wrapper").find('.ui.label[data-active="1"]').each(function(){t.push(s.trim(s(this).attr("data-slug")))}),s.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"save_user_review_action",oid:n.attr("data-order-id"),rid:i,stars:s("input[name=stars]:checked","#rating-"+i).val(),reason:encodeURIComponent(validateInputContent(s("#reason-"+i).val())),sample:n.attr("data-sample"),skills:t,user_type:n.attr("data-user")},beforeSend:function(){n.addClass("ui loading button")},success:function(e){s("#order-message-form-wrapper").hide("slow"),s("#post-"+i).hide("slow")},complete:function(){refreshContent("#order-feedback-form-wrapper"),refreshContent("#order-notification-messages-wrapper")}})):n.notify(wpj_vars.feedback_stars,{position:"top center",className:"error"}),!1}),s(document).on("click",".js-endorse-skill",function(){s(this).parents(".label").hasClass("basic")?(s(this).parents(".label").removeClass("basic").css("background-color","#FBBD08"),s(this).parents(".label").css("color","#FFFFFF"),s(this).find("i").removeClass("plus").addClass("minus"),s(this).parents(".label").attr("data-active",1)):(s(this).parents(".label").addClass("basic").css("background-color","#FFFFFF"),s(this).parents(".label").css("color","#000000"),s(this).find("i").removeClass("minus").addClass("plus"),s(this).parents(".label").removeAttr("data-active"))}),s(document).on("click",".js-order-cancel-button",function(e){e.preventDefault(),take_to_gateway_job_purchase_process("cancel",window.location.pathname.split("/").filter(Boolean).pop(),s(".js-payment-method").attr("data-method"))}),s(document).on("click",".js-order-process-button",function(e){e.preventDefault(),take_to_gateway_job_purchase_process("process",window.location.pathname.split("/").filter(Boolean).pop(),s(".js-payment-method").attr("data-method"))}),s(document).on("click",".save-job-payment-proof",function(e){e.preventDefault();var t=s(this),e=s("#job-order-bank-payment-proof").serialize(),n=s(this).siblings('input[name="order_id"]').val();t.addClass("ui loading disabled button"),s.ajax({type:"POST",url:wpj_vars.ajaxurl,data:e,success:function(e){refreshContent("#job-payment-proof-attachments"),setTimeout(function(){t.removeClass("ui loading disabled button"),s("#uploadifive-file_upload_bank_transfer_job_proof_attachments_"+n+"-queue").empty(),s('input[name="hidden_files_bank_transfer_job_proof_attachments_'+n+'"]').val(""),t.addClass("div-disabled")},1e3)}})})}),jQuery(document).ready(function(i){i(document).on("click",".pck-icon-rem",function(e){1<i(".pck-icon-rem").length?i(this).parents(".pck-repeater").remove():(i(".pck-repeater .ui.checkbox").each(function(){i(this).checkbox("uncheck")}),i(".pck-inp-custom-name").val(""))}),i(document).on("click","#add_custom_field_to_package",function(e){var t=i(".pck-repeater:first").clone();t.find("input:text").val(""),t.find("input:checkbox").removeAttr("checked"),t.find(".pck-icon-rem").show(),t.appendTo(".packages tbody"),i(".ui.checkbox").checkbox()});var a=1,r=1,o=1,s=1;i(document).on("click","#add_pck_custom_field",function(t){var n=i(".pck-repeater:first").clone();a>JSON.parse(wpj_vars.pck_cf_name).length-1&&(a=1),r>JSON.parse(wpj_vars.pck_cf_name).length-1&&(r=1),o>JSON.parse(wpj_vars.pck_cf_name).length-1&&(o=1),s>JSON.parse(wpj_vars.pck_cf_name).length-1&&(s=1),n.find(":input").each(function(){var e;i(this).is(":checked")||i(this).val("off"),void 0!==t.originalEvent?(n.find("input:text").val(""),n.find("input:checkbox").removeAttr("checked"),n.find(".pck-icon-rem").show(),e=i(this).parent().data("handler-id")+Math.floor(1000001*Math.random()),i(this).parent().attr("data-handler-id",e),i(this).parent().siblings(".ui.popup").attr("data-tooltip-id",e)):(e=JSON.parse(wpj_vars.pck_cf_name),"pck-inp-custom-name[]"==this.name&&(i(this).val(e[a]),a++),e=JSON.parse(wpj_vars.pck_cf_basic),"pck-chk-value[basic][]"==this.name&&("on"==e[r]?(i(this).parent().checkbox("check"),i(this).val("on")):(i(this).parent().checkbox("uncheck"),i(this).val("off")),r++),e=JSON.parse(wpj_vars.pck_cf_standard),"pck-chk-value[standard][]"==this.name&&("on"==e[o]?(i(this).parent().checkbox("check"),i(this).val("on")):(i(this).parent().checkbox("uncheck"),i(this).val("off")),o++),e=JSON.parse(wpj_vars.pck_cf_premium),"pck-chk-value[premium][]"==this.name&&("on"==e[s]?(i(this).parent().checkbox("check"),i(this).val("on")):(i(this).parent().checkbox("uncheck"),i(this).val("off")),s++))}),n.appendTo(".packages tbody"),i(".ui.checkbox").checkbox(),jQuery.fn.wpjTooltipInit()}),i(document).on("change","input.pck_cf_chk",function(){var e=i(this).is(":checked")?"on":"off";i(this).siblings("input[type='hidden']").val(e)}),i(document).on("change",'select[name="package_max_days[]"]',function(){wpj_pck_disable_efd_delivery_days()}),i(document).on("click",".pck-sidebar-select-package, .pck-pc-select-package, .pck-mobile-select-package, .pck-sidebar-dropdown-select-package",function(e){var t=i(this),n=parseFloat(i(this).attr("class").match(/[+-]?\d+(\.\d+)?/g));wpj_change_pc_package_table_column_color(t),t.hasClass("pck-pc-select-package")?(i(".ui.menu.top").find(".item."+n).tab("change tab",i(".pck-sidebar-select-package."+n).attr("data-tab")),i(".ui.packages-tabs.menu").find(".item."+n).tab("change tab",i(".pck-mobile-select-package."+n).attr("data-tab")),i(".ui.accordion.packages-sidebar").accordion("open",n),i(".sidebar-top-info").find(".type").html(i(this).parents(".packages-table").find("thead").find(".active").text())):t.hasClass("pck-sidebar-select-package")?(i(".pck-pc-select-package."+n).find("button").trigger("click"),i(".ui.packages-tabs.menu").find(".item."+n).tab("change tab",i(".pck-mobile-select-package."+n).attr("data-tab")),i(".ui.accordion.packages-sidebar").accordion("open",n),i(".sidebar-top-info").find(".type").html(i(this).text())):t.hasClass("pck-mobile-select-package")?(i(".pck-pc-select-package."+n).find("button").trigger("click"),i(".ui.menu.top").find(".item."+n).tab("change tab",i(".pck-sidebar-select-package."+n).attr("data-tab")),i(".ui.accordion.packages-sidebar").accordion("open",n),i(".sidebar-top-info").find(".type").html(i(this).text())):t.hasClass("pck-sidebar-dropdown-select-package")&&(i(".ui.menu.top").find(".item."+n).tab("change tab",i(".pck-sidebar-select-package."+n).attr("data-tab")),i(".pck-pc-select-package."+n).find("button").trigger("click"),i(".ui.packages-tabs.menu").find(".item."+n).tab("change tab",i(".pck-mobile-select-package."+n).attr("data-tab")),i(".packages-sidebar .pck-sidebar-dropdown-select-package").removeClass("right").removeClass("labeled").find("i").hide(),t.addClass("right").addClass("labeled").find("i").show()),i(".package_no").val(n),i(".package_price").val(t.attr("data-price")),i(".total").data("price",t.attr("data-price")).attr("data-price",t.attr("data-price")),i(".js-job-quantity-wrapper .extra-price-inside").html(t.attr("data-price-formatted")),i(".sidebar-top-info").find(".price").html(t.attr("data-price-formatted")),i(".package_delivery_days").val(t.attr("data-delivery")),wpj_update_purchase_price("job_purchase")})}),jQuery(document).ready(function(n){n(document).on("click",".kt-tab-title-active, .kt-tab-title-inactive",function(e){n(this).parents(".wp-block-kadence-tabs").hasClass("without-responsive-dropdown")||window.location.pathname.split("/").filter(Boolean).pop()!=n(this).attr("id")&&(jQuery(".page-id-"+wpj_vars.page_on_front_page_id)[0]?history.pushState(null,null,wpj_vars.home_loggedin_url+"/"+n(this).attr("id")):history.pushState(null,null,wpj_vars.parent_url+n(this).attr("id")),n(this).parents(".kt-tabs-wrap").find(".ui.dropdown").dropdown("set selected",n(".kt-tab-title-active").attr("id")))}),n(window).on("popstate",function(e){var t=window.location.pathname.match(/([^\/]*)\/*$/)[1];n(".kt-tabs-wrap").find(".ui.dropdown").dropdown("set selected",t)}),n(document).on("change",".js-lets-meet-trigger",function(e){n(".wp-block-kadence-rowlayout")[0]&&(this.checked?n(".js-lets-meet-item").each(function(){n(this).parents(".kt-inside-inner-col:first").show(),n(this).parents(".wp-block-kadence-rowlayout").eq(1).show()}):n(".js-lets-meet-item").each(function(){n(this).parents(".kt-inside-inner-col:first").hide(),0==n(this).parents(".wp-block-kadence-rowlayout:first").find(".wp-block-kadence-column").find(".kt-inside-inner-col:visible").length&&n(this).parents(".wp-block-kadence-rowlayout").eq(1).hide()}))}),n(document).on("click",".js-job-bulk-action-btn",function(e){e.preventDefault(),n(".js-job-bulk-action-button").trigger("click")}),n(document).on("click",".js-request-bulk-action-btn",function(e){e.preventDefault(),n(".js-request-bulk-action-button").trigger("click")}),n(document).on("click",".js-message-settings-action-btn",function(e){e.preventDefault(),n(".js-message-settings-action-button").trigger("click")})}),function(n){n.fn.wpjPBTabsToDropdownInit=function(){n(".wp-block-kadence-tabs")[0]&&n(".wp-block-kadence-tabs").not(".without-responsive-dropdown").each(function(){var t=n(this).find(".kt-tabs-wrap");n("<select />").insertAfter(t.find(".kt-tabs-title-list").first()),t.find(".kt-tabs-title-list").first().find(".kt-title-item").each(function(){var e=n(this);n("<option />",{value:e.attr("id"),text:e.text()}).appendTo(t.find("select").first())}),t.find("select").change(function(){jQuery(".page-id-"+wpj_vars.page_on_front_page_id)[0]?history.pushState(null,null,wpj_vars.home_loggedin_url+"/"+n(this).val()):history.pushState(null,null,wpj_vars.parent_url+n(this).val()),wpj_change_kadence_active_tab(n(this).val())}),t.find("select").addClass("fluid"),t.find("select").dropdown({message:{noResults:wpj_vars.nothing_found}})})}}(jQuery),jQuery(window).ready(function(i){i(document).on("click",".notifications-icon .user-notification-icon-link",function(e){e.preventDefault(),"block"!=i(".notifications-icon-dropdown").css("display")||isMobile()?(isMobile()?i(".messages-icon").attr("data-position","right center"):i(".messages-icon").attr("data-position","left center"),i(".notifications-icon").attr("data-position","right center"),i(".notifications-icon-dropdown").css("display","block")):(i(".messages-icon").attr("data-position","bottom center"),i(".notifications-icon").attr("data-position","bottom center"),i(".notifications-icon-dropdown").css("display","none")),e.stopPropagation(),i.ajax({url:wpj_vars.ajaxurl,data:{action:"load_preview_notification_list_action"},beforeSend:function(){i(".notifications-icon-dropdown").each(function(){i(this).html('<center><img src="'+wpj_vars.theme_path+'/assets/images/loader/loader-green.svg"></center>')})},success:function(e){i(".notifications-icon-dropdown").each(function(){i(this).html(e),i(".antiscroll-inner").mCustomScrollbar({theme:"minimal-dark"})})}})}),i(document).mouseup(function(e){var t=i(".notifications-icon-dropdown"),n=i(".notifications-icon");t.is(e.target)||0!==t.has(e.target).length||n.is(e.target)||0!==n.has(e.target).length||(isMobile()||(i(".messages-icon").attr("data-position","bottom center"),i(".notifications-icon").attr("data-position","bottom center")),t.css("display","none"))}),i(document).on("click",".messages-icon .user-notification-icon-link",function(e){e.preventDefault(),"block"!=i(".messages-icon-dropdown").css("display")||isMobile()?(isMobile()?i(".messages-icon").attr("data-position","right center"):i(".messages-icon").attr("data-position","left center"),i(".notifications-icon").attr("data-position","right center"),i(".messages-icon-dropdown").css("display","block")):(i(".messages-icon").attr("data-position","bottom center"),i(".notifications-icon").attr("data-position","bottom center"),i(".messages-icon-dropdown").css("display","none")),e.stopPropagation(),i.ajax({url:wpj_vars.ajaxurl,data:{action:"load_preview_pm_list_action"},beforeSend:function(){i(".messages-icon-dropdown").each(function(){i(this).html('<center><img src="'+wpj_vars.theme_path+'/assets/images/loader/loader-green.svg"></center>')})},success:function(e){i(".messages-icon-dropdown").each(function(){i(this).html(e),i(".antiscroll-inner").mCustomScrollbar({theme:"minimal-dark"})})}})}),i(document).mouseup(function(e){var t=i(".messages-icon-dropdown"),n=i(".messages-icon-dropdown");t.is(e.target)||0!==t.has(e.target).length||n.is(e.target)||0!==n.has(e.target).length||(isMobile()||(i(".messages-icon").attr("data-position","bottom center"),i(".notifications-icon").attr("data-position","bottom center")),t.css("display","none"))})}),jQuery(document).ready(function(l){l(document).on("click",".js-pm-img-attach-btn",function(e){l(".messages-image-uploader-wrapper").show(),l(this).parents(".thread-input-padding").find(".dz-default.dz-message").trigger("click")}),l(document).on("click",".js-pm-file-attach-btn",function(e){l(".file_upload_pm_attachments").siblings('input[type="file"]').trigger("click")}),l(document).on("click",".js-search-users-btn",function(e){l(".thread-list-user-search").is(":hidden")?(l(this).find("i").removeClass("search").addClass("times"),l(".thread-list-user-search").slideDown("fast"),l(".js-search-users-btn-open").hide(),l(".js-search-users-btn-close").css({display:"flex"})):(l(this).find("i").removeClass("times").addClass("search"),l(".thread-list-user-search").slideUp("fast"),l(".js-search-users-btn-open").css({display:"flex"}),l(".js-search-users-btn-close").hide(),l(".js-search-conversation-input").val(""),wpj_search_conversation_user(".js-search-conversation-input"),l(".js-search-conversation-results").remove(),l(".wpj-load-more-target").show(),l("#no_messages").hide())}),l(document).on("click",".js-search-database-conversations",function(e){addLoader("#no_messages"),jQuery.ajax({url:wpj_vars.ajaxurl,type:"post",data:{action:"search_conversation_action",username:validateInputContent(jQuery(".js-search-conversation-input").val().toLowerCase())},success:function(e){e?(l("#no_messages").hide(),l(".js-search-conversation-results")[0]?l(".js-search-conversation-results").html(e):l('<div class="js-search-conversation-results">'+e+"</div>").insertAfter("#no_messages"),l(".wpj-load-more-target").hide()):(l(".ui.active.inverted.dimmer").remove(),l("#no_messages").html(wpj_vars.no_user_found))}})}),l(document).on("click",".js-search-message-btn",function(e){var t;l(".js-search-message-form").is(":hidden")?(l(".js-search-message-form").slideDown({start:function(){l(this).css({display:"flex"})}}),l(this).find("i").removeClass("search").addClass("times"),l(".js-search-message-btn-open").hide(),l(".js-search-message-btn-close").css({display:"flex"})):(l(".js-search-message-form").slideUp("fast"),l(".js-search-message-form").removeClass("error").removeClass("loading"),l(".js-message-search-input").val(""),l(this).find("i").removeClass("times").addClass("search"),l(".js-search-message-btn-open").css({display:"flex"}),l(".js-search-message-btn-close").hide(),isInt(window.location.href.replace(/\/+$/,"").split("/").pop())&&(t=(t=wpj_vars.page_url).slice(0,t.lastIndexOf("/")),history.pushState(null,null,t)),refreshContent(".js-messages-list .kt-inside-inner-col:first"))}),l(document).on("click",".js-message-search-action",function(e){l(".js-message-search-input").val()?(l(".js-search-message-form").removeClass("error"),l(".js-search-message-form").addClass("loading"),l.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"search_message_action",keyword:l(".js-message-search-input").val(),interlocutor_id:l(".pm-list").attr("data-uid")},success:function(e){l(".js-search-message-form").removeClass("loading"),e?(l(".js-search-messages-result")[0]?l(".js-search-messages-result").replaceWith('<div class="pm-list">'+e+"</div>"):l(".pm-list").html(e),"function"==typeof l.fn.wpjSemanticInit&&l.fn.wpjSemanticInit(),l(".pm-list").wordHighlight(l(".js-message-search-input").val(),"highlighted")):l(".js-search-message-form").notify(wpj_vars.nothing_found,{position:"top left",className:"error"})}})):l(".js-search-message-form").addClass("error")}),l(document).on("click",".js-search-message-result-wrapper",function(e){var n=l(this).attr("data-id");addLoader(".js-messages-list"),l.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"search_message_result_action",message_id:n,interlocutor_id:l(".pm-list").attr("data-uid")},success:function(e){l(".ui.active.inverted.dimmer").remove();var t=wpj_vars.page_url;isInt(window.location.href.replace(/\/+$/,"").split("/").pop())&&(t=t.slice(0,t.lastIndexOf("/"))),history.pushState(null,null,t+"/"+n),e&&(l(".pm-list").replaceWith(e),"function"==typeof l.fn.wpjSemanticInit&&l.fn.wpjSemanticInit())}})}),l(document).on("keypress",".js-message-search-input",function(e){13!=e.keyCode||e.shiftKey||(e.preventDefault(),l(".js-message-search-action").trigger("click"))}),l(document).on("click",".js-pm-action-archive, .js-pm-action-unarchive, .js-pm-action-delete, .js-pm-delete",function(e){e.preventDefault();var t="";l(this).attr("class").includes("js-pm-action-archive")?t="archive_conversation_action":l(this).attr("class").includes("js-pm-action-unarchive")?t="unarchive_conversation_action":l(this).attr("class").includes("js-pm-action-delete")?t="delete_conversation_action":l(this).attr("class").includes("js-pm-delete")&&(t="delete_message_action"),l.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:t,interlocutor:l(this).attr("data-uid"),message_id:l(this).attr("data-pm-id")},success:function(e){"delete_message_action"==t?(refreshContent(".js-messages-list .kt-inside-inner-col:first"),refreshContent(".thread-list-wrapper")):changeURL(wpj_vars.pm_url)}})}),l(document).on("click",".submit-private-message",function(e){e.preventDefault();var t,n=l("#pm_interlocutor_id").val();t=1==wpj_vars.pm_emoji_enabled?validateInputContent(l(".cmi-listen.message-field").data("emojioneArea").getText()):validateInputContent(l(".cmi-listen.message-field").val());var i,a=l('input[name="hidden_files_pm_attachments"]').val(),r="";l(".dz-success.dz-complete")[0]&&(i=[],l(".dz-success.dz-complete").each(function(){i.push(l(this).attr("data-id"))}),r=i.join(","));var o=l("#pm_request_id").val(),s=l("#pm_job_id").val();e=1==wpj_vars.pm_emoji_enabled?get_input_length_emoji(l(".cmi-listen.message-field").data("emojioneArea").getText()):get_input_length(l(".cmi-listen.message-field")),""!=t||a||r?e<parseInt(wpj_vars.characters_pm_min)&&!a&&!r?l(".wrapper-pm-to-user").notify(wpj_vars.pm_min_content,{position:"top",className:"error"}):e>parseInt(wpj_vars.characters_pm_max)&&!a&&!r?l(".wrapper-pm-to-user").notify(wpj_vars.pm_max_content,{position:"top",className:"error"}):jQuery.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"send_message_action",otheruid:n,message:t,upload:a,img_upload:r,request_id:o,job_id:s},beforeSend:function(){addLoader(".thread-input")},success:function(e){refreshContent(".js-messages-list .kt-inside-inner-col:first"),refreshContent(".thread-list-wrapper"),l(".error-no-messages").remove(),l("#message-pm-user").val(""),l("#message-pm-user").css("height","auto"),1==wpj_vars.pm_emoji_enabled&&l(".emojionearea-editor").text(""),l("#uploadifive-file_upload_pm_attachments-queue").empty(),l('input[name="hidden_files_pm_attachments"]').val(""),l(".messages-image-uploader-wrapper").hide(),l(".dz-image-wrapper").remove(),jQuery(".thread-input").removeClass("has-scroll"),jQuery(".files-attachments-wrapper").removeClass("mb20")},error:function(e){console.log(e)},complete:function(){setTimeout(function(){l(".ui.active.inverted.dimmer").remove()},2e3),wpj_focus_pm_input()}}):wpj_focus_pm_input()}),l(document).on("keypress",".cmi-listen.message-field",function(e){l("#pm-enter-key").is(":checked")&&13==e.keyCode&&!e.shiftKey&&(e.preventDefault(),l(this).parents(".wrapper-pm-to-user")[0]&&l(".submit-private-message").trigger("click"),l(this).parents("#order-message-form")[0]&&l(".send-message").trigger("click"))}),jQuery(".is-page-pm-single")[0]&&(l(".cmi-listen.message-field").each(function(){}).on("input propertychange change blur",function(){this.style.height="auto",this.style.height=this.scrollHeight+"px",1==!wpj_vars.pm_emoji_enabled&&(207<=this.scrollHeight?l(".thread-input").addClass("has-scroll"):l(".thread-input").removeClass("has-scroll"))}),MutationObserver=window.MutationObserver||window.WebKitMutationObserver,new MutationObserver(function(e,t){jQuery(".thread-wrapper").css("margin-bottom",jQuery(".thread-input").height())}).observe(document,{subtree:!0,attributes:!0,childList:!0})),l(".is-page-pm")[0]&&(l(".js-messages-list").on("scroll",_.debounce(function(){"function"==typeof l.fn.wpjLazyLoadRender&&l.fn.wpjLazyLoadRender()},200)),l(".thread-list-viewport").on("scroll",_.debounce(function(){"function"==typeof l.fn.wpjLazyLoadRender&&l.fn.wpjLazyLoadRender()},200))),l(".js-messages-list")[0]&&0!=wpj_vars.enable_scroll_down_button&&l(".pusher").on("mousewheel DOMMouseScroll scroll",".js-messages-list",function(){l(this).scrollTop()<-100?l(".js-scroll-down").show():0<=l(this).scrollTop()&&l(".js-scroll-down").hide()}),l(document).on("click",".js-scroll-down",function(e){var t=l(".pm-messages-row-wrapper.js-messages-list");t.animate({scrollTop:t[0].scrollHeight},2e3),l(this).hide()})}),jQuery(document).ready(function(l){l(document).on("click","#new-quick-response",function(e){var t=l(this).attr("data-uid");l("#new-quick-response-modal-"+t).find(".header").first().html(wpj_vars.add_quick_response),l("#new-quick-response-modal-"+t).modal({onVisible:function(){l("#new-quick-response-modal-"+t).find(".quick-response-name-input").val(""),l("#new-quick-response-modal-"+t).find(".quick-response-content-textarea").val(""),l("#new-quick-response-modal-"+t).find(".edit-action").val("")}}).modal("setting","transition","fly down").modal("show").modal("refresh")}),l(document).on("click","#edit-quick-response",function(e){e.preventDefault(),wpj_get_editor_element(l(this)).html("");var t=l(this).attr("data-id"),n=l(this).attr("data-uid");l("#new-quick-response-modal-"+n).find(".header").first().html(wpj_vars.edit_quick_response);var i,a,e=JSON.parse(localStorage.getItem("last_quick_response"));a=wpj_vars.quick_responses.hasOwnProperty(t)?(i=wpj_vars.quick_responses[t].name,wpj_vars.quick_responses[t].content):(i=e[1],e[2]),l("#new-quick-response-modal-"+n).modal({onVisible:function(){l(this).find(".quick-response-name-input").val(i),l(this).find(".quick-response-content-textarea").val(a),l(this).find(".edit-action").val(t)}}).modal("setting","transition","fly down").modal("show").modal("refresh")}),l(document).on("click","#save-quick-response",function(e){var t,n,i=l(this).attr("data-uid"),a=l(this).parents("#new-quick-response-modal-"+i),r=l(".quick-response-dropdown"),o=a.find(".quick-response-name-input").val(),s=a.find(".quick-response-content-textarea").val();o&&s?(l("#quick-response-error").html("").addClass("hidden").removeClass("visible"),a.modal("hide"),t=[0],r.find(".menu").find(".item")[0]&&r.find(".menu").find(".item").each(function(){t.push(l(this).attr("data-id"))}),n=a.find(".edit-action").val()?a.find(".edit-action").val():generateNumber(t),localStorage.setItem("last_quick_response",JSON.stringify([n,o,s])),a.find(".edit-action").val()?r.find(".menu").find('.item[data-id="'+a.find(".edit-action").val()+'"]').find("span").text(o):(l(".quick-response-dropdown").find("#delete-all-quick-responses-wrapper").show(),l(".quick-response-dropdown").find("#no-quick-responses").remove(),i='\t\t\t\t\t<div class="item" data-id="'+n+'">\t\t\t\t\t\t\t\t\t\t\t\t<span>'+o.substring(0,25)+'</span>\t\t\t\t\t\t\t\t\t\t\t\t<div class="action-buttons float-right">\t\t\t\t\t\t\t\t<i data-uid="'+i+'" data-id="'+n+'" id="edit-quick-response" class="edit icon"></i>\t\t\t\t\t\t\t\t<i data-uid="'+i+'" data-id="'+n+'" id="remove-quick-response" class="close red icon"></i>\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t',l(i).insertAfter(r.find(".menu").find(".header:nth-child(3)"))),l(".quick-response-name-input").val(""),l(".quick-response-content-textarea").val(""),l.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"save_quick_response_action",id:n,name:o,content:s},success:function(e){}})):l("#quick-response-error").html(wpj_vars.empty_quick_response).removeClass("hidden").addClass("visible")}),l(document).on("click","#remove-quick-response",function(e){e.preventDefault();var t=l(this).attr("data-id");l(this).attr("data-uid");wpj_get_editor_element(l(this)).html("");var n=l(".quick-response-dropdown");l('.item[data-id="'+t+'"]').remove(),n.find(".menu").find(".item")[0]||(e='<div class="item" id="no-quick-responses">'+wpj_vars.no_quick_responses+"</div>",l(e).insertAfter(n.find(".menu").find(".header:nth-child(3)")),l(".quick-response-dropdown").find("#delete-all-quick-responses-wrapper").hide()),l.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"delete_quick_response_action",id:t},success:function(e){}})}),l(document).on("click","#delete-all-quick-responses",function(e){var t=l(this).attr("data-uid");l("#delete-all-quick-responses-modal-"+t).modal("setting","transition","fly down").modal("show").modal("refresh")}),l(document).on("click","#delete-all-quick-responses-action",function(e){var t=l(this).attr("data-uid"),n=l(".quick-response-dropdown");wpj_get_editor_element(l(this)).html(""),l(".quick-response-dropdown").find("#delete-all-quick-responses-wrapper").hide(),l(this).parents("#delete-all-quick-responses-modal-"+t).modal("hide"),n.find(".menu").find(".item").each(function(){l(this).remove()});t='<div class="item" id="no-quick-responses">'+wpj_vars.no_quick_responses+"</div>";l(t).insertAfter(n.find(".menu").find(".header:nth-child(3)")),l.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"delete_quick_responses_action"},success:function(e){}})})}),jQuery(function(n){n(document).on("click",".report-link",function(e){e.preventDefault();e=n(this).attr("data-id");n(".ui.modal.report-modal."+e).modal("setting","transition","fly down").modal("show").modal("refresh"),n(".report-error-wrapper").html("")}),n(document).on("click",".report-submit",function(e){e.preventDefault();var t=n(this);t.addClass("loading"),n.ajax({data:n(this).parents("form").serialize(),type:"POST",dataType:"json",url:wpj_vars.ajaxurl,success:function(e){t.removeClass("loading"),"1"==e.err?n(".report-error-wrapper").html('<div class="ui negative visible message">'+e.msg+'</div><div class="ui hidden divider"></div>'):(n(".report-error-wrapper").html('<div class="ui positive visible message">'+e.msg+'</div><div class="ui hidden divider"></div>'),setTimeout(function(){t.parents(".ui.modal").modal("hide"),t.parents("form").form("clear")},1e3))}})})}),jQuery(document).ready(function(t){t(document).on("click",".js-activate-request-link",function(){t(".js-activate-request-action").attr("data-id",t(this).attr("data-id")),t(".request-title-modal").html(validateInputContent(t(this).attr("data-title"))),t(".ui.modal.js-activate-request-modal").modal("setting","transition","fly down").modal("show")}),t(document).on("click",".js-activate-request-action",function(e){t.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"activate_request_action",post_id:t(this).attr("data-id")},beforeSend:function(){t(".js-activate-request-action").addClass("loading"),addLoader(".wpj-grid-table")},success:function(e){"1"==e?t(".single-request")[0]?changeURL(wpj_vars.page_url):t(".js-user-requests-wrapper")[0]?refreshContent(".js-user-requests-wrapper"):wpj_refresh_kadence_tab_content():"not_your_post"==e?t(".content.activate-request").text(wpj_vars.not_your_post):"no_credits"==e?t(".content.activate-request").text(wpj_vars.no_credits):"not_logged_in"==e&&t(".content.activate-request").text(wpj_vars.not_logged_in)},complete:function(){t(".js-activate-request-action").removeClass("loading"),t(".ui.modal.js-activate-request-modal").modal("hide")}})}),t(document).on("click","#js-activate-all-requests-link",function(e){t(".ui.modal.js-activate-all-requests-modal").modal("setting","transition","fly down").modal("show")}),t(document).on("click",".js-activate-all-requests-action",function(e){t.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"activate_all_requests_action",reason:"by_user"},beforeSend:function(){t(".js-activate-all-requests-action").addClass("loading"),addLoader(".wpj-grid-table")},success:function(e){t(".js-user-requests-wrapper")[0]?refreshContent(".js-user-requests-wrapper"):wpj_refresh_kadence_tab_content()},complete:function(){t(".js-activate-all-requests-action").removeClass("loading"),t(".ui.modal.js-activate-all-requests-modal").modal("hide")}})}),t(document).on("click",".js-deactivate-request-link",function(){t(".js-deactivate-request-action").attr("data-id",t(this).attr("data-id")),t(".request-title-modal").html(validateInputContent(t(this).attr("data-title"))),t(".ui.modal.js-deactivate-request-modal").modal("setting","transition","fly down").modal("show")}),t(document).on("click",".js-deactivate-request-action",function(e){t.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"deactivate_request_action",post_id:t(this).attr("data-id")},beforeSend:function(){t(".js-deactivate-request-action").addClass("loading"),addLoader(".wpj-grid-table")},success:function(e){"1"==e?t(".single-request")[0]?changeURL(wpj_vars.page_url):t(".js-user-requests-wrapper")[0]?refreshContent(".js-user-requests-wrapper"):wpj_refresh_kadence_tab_content():"not_your_post"==e?t(".content.deactivate-request").text(wpj_vars.not_your_post):"not_logged_in"==e&&t(".content.deactivate-request").text(wpj_vars.not_logged_in)},complete:function(){t(".js-deactivate-request-action").removeClass("loading"),t(".ui.modal.js-deactivate-request-modal").modal("hide")}})}),t(document).on("click","#js-deactivate-all-requests-link",function(e){t(".ui.modal.js-deactivate-all-requests-modal").modal("setting","transition","fly down").modal("show")}),t(document).on("click",".js-deactivate-all-requests-action",function(e){t.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"deactivate_all_requests_action",reason:"by_user"},beforeSend:function(){t(".js-deactivate-all-requests-action").addClass("loading"),addLoader(".wpj-grid-table")},success:function(e){t(".js-user-requests-wrapper")[0]?refreshContent(".js-user-requests-wrapper"):wpj_refresh_kadence_tab_content()},complete:function(){t(".js-deactivate-all-requests-action").removeClass("loading"),t(".ui.modal.js-deactivate-all-requests-modal").modal("hide")}})}),t(document).on("click",".js-delete-request-link",function(){t(".js-delete-request-action").attr("data-id",t(this).attr("data-id")),t(".request-title-modal").html(t(this).attr("data-title-request")),t(".ui.modal.js-delete-request-modal").modal("setting","transition","fly down").modal("show")}),t(document).on("click",".js-delete-request-action",function(e){t.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"delete_request_action",post_id:t(this).attr("data-id")},beforeSend:function(){t(".js-delete-request-action").addClass("loading"),addLoader(".wpj-grid-table")},success:function(e){"1"==e?t(".single-request")[0]?changeURL(wpj_vars.my_requests_url):t(".js-user-requests-wrapper")[0]?refreshContent(".js-user-requests-wrapper"):wpj_refresh_kadence_tab_content():"not_your_post"==e?t(".content.delete-request").text(wpj_vars.not_your_post):"not_logged_in"==e&&t(".content.delete-request").text(wpj_vars.not_logged_in)},complete:function(){t(".js-delete-request-action").removeClass("loading"),t(".ui.modal.js-delete-request-modal").modal("hide")}})}),t(document).on("click",".js-delete-request-button",function(e){"inline-block"==t(this).siblings(".js-delete-request-warning").css("display")?t(this).siblings(".js-delete-request-warning").slideUp(400):t(this).siblings(".js-delete-request-warning").slideDown(400),e.stopPropagation()}),t(document).on("click","#js-delete-all-requests-link",function(e){t(".ui.modal.js-delete-all-requests-modal").modal("setting","transition","fly down").modal("show")}),t(document).on("click",".js-delete-all-requests-action",function(e){t.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"delete_all_requests_action"},beforeSend:function(){t(".js-delete-all-requests-action").addClass("loading"),addLoader(".wpj-grid-table")},success:function(e){t(".js-user-requests-wrapper")[0]?refreshContent(".js-user-requests-wrapper"):wpj_refresh_kadence_tab_content()},complete:function(){t(".js-delete-all-requests-action").removeClass("loading"),t(".ui.modal.js-delete-all-requests-modal").modal("hide")}})})}),jQuery(document).ready(function(i){i(document).on("click","#add-edit-request-form",function(e){var t=getUrlParameter("action")?getUrlParameter("action"):"new-request",n=getUrlParameter("requestid");!1===i(e.target).parent().hasClass("post-new-request-btn")&&i.ajax({type:"post",url:wpj_vars.ajaxurl,data:i(this).serialize()+"&status=autodraft&action=save_request_post_action&aoer_form_submitted=1&action_type="+t+"&requestid="+n,success:function(e){}})}),i(document).on("click",".post-new-request-btn",function(e){var t;wpj_validate_new_request_form(),i("#add-edit-request-form").form("is valid")&&(e.preventDefault(),wpj_vars.is_user_logged_in?(t=getUrlParameter("action")?getUrlParameter("action"):"new-request",e=getUrlParameter("requestid"),i(this).addClass("ui loading disabled button"),i.ajax({type:"post",url:wpj_vars.ajaxurl,data:i("#add-edit-request-form").serialize()+"&status=publish&action=save_request_post_action&aoer_form_submitted=1&action_type="+t+"&requestid="+e,success:function(e){if(i("post-new-request-btn").removeClass("ui loading disabled button"),!e.includes("http://")&&!e.includes("https://"))return i(".ui.error.message").html(e).removeClass("hidden").show(),!1;changeURL(e)}})):jQuery(".register-link").trigger("click"))}),i(document).on("change","#request_category",function(t){var e;0!==i(this).val().length?(e=i(this).val()instanceof Array?i(this).val().join(","):i(this).val(),i.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"load_subcategories_by_categories_action",taxonomy_name:"job_cat",term_type:"slug",include_empty_option:wpj_vars.select_subcategory,select_name:"subcat",select_id:"subcat",select_category_value:e,select_multiple:wpj_vars.request_multiple},beforeSend:function(){"change"==t.type&&i("#request_subcategories").html('<center><img src="'+wpj_vars.theme_path+'/assets/images/loader/loader-green.svg"></center>')},success:function(e){e&&2<e.match(/option/g).length?("change"==t.type&&i("#request_subcategories").html(e),i(".ui.dropdown").dropdown({message:{noResults:wpj_vars.nothing_found}})):"change"==t.type&&i("#request_subcategories").html("")}})):"change"==t.type&&i("#request_subcategories").html("")})}),jQuery(document).ready(function(e){e(window).on("load resize",function(){wpj_init_on_resize()})}),jQuery(document).ready(function(e){e(window).scroll(function(){wpj_init_on_scroll()})}),jQuery(document).ready(function(e){wpj_init_search_autocomplete_elements(),jQuery.extend({highlight:function(e,t,n,i){if(3===e.nodeType){var a=e.data.match(t);if(a){var r=document.createElement(n||"span");r.className=i||"highlight";var o=e.splitText(a.index);o.splitText(a[0].length);a=o.cloneNode(!0);return r.appendChild(a),o.parentNode.replaceChild(r,o),1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&(e.tagName!==n.toUpperCase()||e.className!==i))for(var s=0;s<e.childNodes.length;s++)s+=jQuery.highlight(e.childNodes[s],t,n,i);return 0}}),jQuery.fn.unhighlight=function(e){var t={className:"highlight",element:"span"};return jQuery.extend(t,e),this.find(t.element+"."+t.className).each(function(){var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()}).end()},jQuery.fn.highlight=function(e,t){var n={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(jQuery.extend(n,t),e.constructor===String&&(e=[e]),e=jQuery.grep(e,function(e,t){return""!=e}),0==(e=jQuery.map(e,function(e,t){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")})).length)return this;t=n.caseSensitive?"":"i",e="("+e.join("|")+")";n.wordsOnly&&(e="\\b"+e+"\\b");var i=new RegExp(e,t);return this.each(function(){jQuery.highlight(this,i,n.element,n.className)})},e(document).on("click",".js-search-icon-wrapper",function(e){e.preventDefault(),jQuery(this).parents("form").trigger("submit")})}),jQuery(document).ready(function(n){n(document).on("click",".js-tabs-wrapper .step",function(e){n(".js-tabs-wrapper .step.active").removeClass("active"),n(this).addClass("active"),n(".js-tabs-wrapper .js-tab-wrapper .tab.active").removeClass("active"),n(n(".js-tabs-wrapper .js-tab-wrapper .tab").get(n(this).index())).addClass("active"),wpj_add_hash(n(this).attr("id").replace("tab","#step"))}),n(document).on("click",".post-new-wrapper .tab-controls a.right",function(e){e.preventDefault(),n(".js-tabs-wrapper .js-tab-wrapper .tab.active").removeClass("active");e=n(this).parents(".tab").index();n(n(".js-tabs-wrapper .js-tab-wrapper .tab").get(e+1)).addClass("active"),n(".js-tabs-wrapper .step.active").removeClass("active");e=n(n(".js-tabs-wrapper .step").get(e+1));e.addClass("active"),wpj_add_hash(e.attr("id").replace("tab","#step")),n("html, body").animate({scrollTop:n(".post-new-wrapper").offset().top-108},1e3)}),n(document).on("click",".post-new-wrapper .tab-controls a.left",function(e){e.preventDefault(),n(".js-tabs-wrapper .js-tab-wrapper .tab.active").removeClass("active");e=n(this).parents(".tab").index();n(n(".js-tabs-wrapper .js-tab-wrapper .tab").get(e-1)).addClass("active"),n(".js-tabs-wrapper .step.active").removeClass("active");e=n(n(".js-tabs-wrapper .step").get(e-1));e.addClass("active"),wpj_add_hash(e.attr("id").replace("tab","#step")),n("html, body").animate({scrollTop:n(".post-new-wrapper").offset().top-108},1e3)}),n(document).on("click",".item.js-tab-item",function(){var e=wpj_vars.parent_url+n(this).attr("data-tab");history.pushState(null,null,e),n(this).parents(".js-tab-to-dropdown").find(".ui.dropdown").dropdown("set selected",n(".item.js-tab-item.active").attr("data-tab")),"function"==typeof jQuery.fn.wpjLazyLoadRender&&jQuery.fn.wpjLazyLoadRender()}),n(window).on("popstate",function(e){var t=window.location.pathname.match(/([^\/]*)\/*$/)[1];n(".ui.secondary.menu").find(".item").tab("change tab",t),n(".js-tab-to-dropdown").find(".ui.dropdown").dropdown("set selected",t),"function"==typeof jQuery.fn.wpjLazyLoadRender&&jQuery.fn.wpjLazyLoadRender()})}),jQuery(document).ready(function(i){i(document).on("click","#status-messages-legend-link",function(e){i(".ui.modal.legend."+i(this).attr("data-page")+"."+i(this).attr("data-tab")).modal("setting","transition","fly down").modal("show")}),i(document).on("click",".js-export-user-transactions-link",function(){i(".ui.modal.js-export-user-transactions-modal").modal({onVisible:function(){i.fn.wpjCalendarInit(),i(".js-no-transaction-export-message").remove()},autofocus:!1,transition:"fly down",observeChanges:!0}).modal("show").modal("refresh")}),i(document).on("click",".js-export-user-transactions-action",function(e){i.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"export_transactions_action",user_id:i(".js-user-id").val(),user_name:i(".js-user-name").val(),start_date:i(".js-transactions-start-date").attr("data-timestamp"),end_date:i(".js-transactions-end-date").attr("data-timestamp")},beforeSend:function(){i(".js-export-user-transactions-action").addClass("loading"),i(".js-no-transaction-export-message").remove()},success:function(e){var t,n;e?(n=new Date,t=document.createElement("a"),e=new Blob(["\ufeff"+e],{type:"text/csv;charset=utf-8;"}),e=URL.createObjectURL(e),t.href=e,n=i(".js-user-name").val()+"-transactions-"+n.getFullYear()+"-"+(n.getMonth()+1)+"-"+n.getDate(),t.download=Hooks.apply_filters("wpj_export_user_transactions_filename_filter",n,i(".js-user-name").val()),document.body.appendChild(t),t.click(),document.body.removeChild(t),i(".js-export-user-transactions-action").removeClass("loading"),i(".ui.modal.js-export-user-transactions-modal").modal("hide")):(i(".js-export-user-transactions-action").removeClass("loading"),i('<div class="ui visible error message js-no-transaction-export-message">For the selected range, there are no transactions</div>').insertBefore(".js-transacations-export-intervals"))}})}),i(document).on("click",".js-transacations-export-intervals .label",function(e){i(".js-no-transaction-export-message").remove(),i(".js-transactions-start-date-input").calendar("set date",i(this).attr("data-start-date")),i(".js-transactions-end-date-input").calendar("set date",i(this).attr("data-end-date"))}),i(document).on("change",".filter-results-by",function(){var e=i(this).dropdown("get value");e&&changeURL(wpj_vars.page_url+"?switch_filter="+e)})}),jQuery(document).ready(function(a){var i=!1;a(document).on("click",".user-new-item",function(e){e.preventDefault();var t=a(this),n=a(this).data("type");"education"==n||"certification"==n?wpj_up_open_modal(n,"new",t):i?(e=i=!1,"languages"==n?validateInputContent(a(".up_language").val())&&validateInputContent(a(".up_proficiency").dropdown("get value"))&&(e=!0):"skills"==n&&validateInputContent(a(".up_skills").val())&&(e=!0),e&&!a("span").hasClass(sanitizeTitle(validateInputContent(a(".up_"+n).val())))&&(wpj_send_via_ajax(wpj_get_ajax_data(n+"_new",validateInputContent(a(".up_"+n).val())),".user-"+n+"-wrapper"),a("."+n+"-content").children(".no_item").remove()),a(this).html('<i class="plus icon"></i>'),a(".new_item").not(".new-skill-wrapper").remove()):(i=!0,a(this).text(wpj_vars.save_lbl),"skills"==n?a(this).siblings(".content-wrapper").find(".new_item").show():wpj_get_html_for_inputs(t,n))});var r=0,o=!1;a(document).on("click",".user-edit-item",function(e,t){r++,e.preventDefault();var n,i=a(this);void 0!==e.originalEvent?t=a(this).data("type"):o=!0,"education"==t||"certification"==t?wpj_up_open_modal(t,"edit",i):o?(o=!1,"description"==t&&a(this).html('<i data-type="languages" class="user-edit-language pencil alternate icon"></i>'),("description"==t?""==a(".tmp_"+t).val().replace(/<(.|\n)*?>/g,"")?a(".user-description-wrapper").find(".description-content").find("."+t).html('<p class="no_item">'+wpj_vars.no_description+"</p>"):a(".user-description-wrapper").find(".description-content").find("."+t).html(a(".tmp_"+t).val()):a("."+t).html(validateInputContent(a(".tmp_"+t).val()))).show(),a("#tmp_"+t).blur(),wpj_send_via_ajax(wpj_get_ajax_data(t+"_edit",a("#tmp_"+t).val())),"description"==t&&wpj_initialize_and_remove_textarea("remove")):("tagline"!=t&&(o=!0),"description"==t&&a(this).text(wpj_vars.save_lbl),("tagline"==t?a(this):a(this).siblings("."+t+"-content").find("."+t)).hide(),"description"==t?(n=wpj_vars.desc_content,1<r&&(n=wpj_vars.wysiwyg_enabled?a(".description-content").html():a(".description-content").text()).includes("no_item")&&(n="")):"tagline"==t&&(n=a(this).attr("class").includes("no_item")?"":a(this).text()),wpj_get_html_for_inputs(i,t,n),a("#tmp_"+t).focus(),"description"==t&&wpj_initialize_and_remove_textarea("initialize"))}),a(document).on("click",".user-remove-item",function(e){e.preventDefault();var t=a(this).data("type");a(this).parents("span").remove(),0==a("."+t+"-content > span").length&&(e="","languages"==t?e=wpj_vars.no_languages:"skills"==t?e=wpj_vars.no_skills:"education"==t?e=wpj_vars.no_educations:"certification"==t&&(e=wpj_vars.no_certifications),a("."+t+"-content").append('<p class="no_item">'+e+"</p>")),wpj_send_via_ajax(wpj_get_ajax_data(t+"_remove",validateInputContent("skills"==t?a(this).parents("span").attr("data-slug"):a(this).parents("span").attr("class"))))}),a(document).on("click",".save-info",function(e){e.preventDefault();e=validateInputContent(a(".tmp_tagline").val());e?a(this).parents(".user-tagline-wrapper").find(".tagline").removeClass("no_item"):(e=wpj_vars.no_tagline,a(this).parents(".user-tagline-wrapper").find(".tagline").addClass("no_item")),a(".tagline").html(e).show(),wpj_send_via_ajax(wpj_get_ajax_data("tagline_edit",validateInputContent(a("#tmp_tagline").val()))),a(".tagline-temp").remove()});var n=!1;a(document).on("click",".user-edit-language",function(e){e.preventDefault();var t;a(this).data("type");n?(n=!1,(t=a(this).parents("span")).find(".inp_language, .inp_proficiency").addClass("not_editable"),t.find(".inp_language").attr("readonly",!0),t.find(".user-edit-language").removeClass("save").addClass("edit"),t.find(".user-edit-language").parent().attr("data-tooltip",wpj_vars.edit_lbl),wpj_send_via_ajax({action:"change_user_language_content",old_language:t.find(".old_language").html(),language:validateInputContent(t.find(".inp_language").val()),old_proficiency:t.find(".old_proficiency").html(),proficiency:validateInputContent(t.find(".inp_proficiency").dropdown("get value")),uid:jQuery(".content-wrapper").attr("data-uid")})):(n=!0,t=a(this).parents("span"),a(".old_language, .old_proficiency").remove(),t.find(".inp_language, .inp_proficiency").removeClass("not_editable"),t.find(".inp_language").attr("readonly",!1),t.find(".user-edit-language").removeClass("edit").addClass("save"),t.find(".user-edit-language").parent().attr("data-tooltip",wpj_vars.save_lbl),e='\t\t\t\t<div class="old_language" style="display:none">'+t.find(".inp_language").val()+'</div>\t\t\t\t<div class="old_proficiency" style="display:none">'+t.find(".inp_proficiency").dropdown("get value")+"</div>\t\t\t",a(e).insertAfter(t.find(".inp_proficiency")))});["user_from_year","user_to_year"].forEach(function(t){a(document).on("change","."+t,function(){var e=a(this).dropdown("get value");t.includes("to")?a(".user_from_year").find(".item").each(function(){parseInt(e)&&parseInt(a(this).attr("data-value"))<=parseInt(e)?a(this).removeClass("disabled"):a(this).addClass("disabled")}):a(".user_to_year").find(".item").each(function(){parseInt(e)&&parseInt(a(this).attr("data-value"))>=parseInt(e)?a(this).removeClass("disabled"):a(this).addClass("disabled")})})}),a(document).on("input paste blur change",'input[name="user_school"], input[name="user_certification_name"]',function(e){0!==a(this).val().length?a(".save-item").removeClass("disabled"):a(".save-item").addClass("disabled")}),a(document).on("submit",".modal_form",function(e){e.preventDefault();var t=a(this).data("type");a(".modal_form .actions .button").addClass("loading"),jQuery.ajax({type:"POST",url:wpj_vars.ajaxurl,data:"action=save_user_"+t+"_content&"+a(this).serialize(),success:function(e){a(".modal_form .actions .button").removeClass("loading"),a(".ui.modal.up-"+t+"-modal-wrapper").modal("hide"),"education"==t?(addLoader(".info-widget.user-education-wrapper"),refreshContent(".info-widget.user-education-wrapper")):(addLoader(".info-widget.user-certification-wrapper"),refreshContent(".info-widget.user-certification-wrapper"))}})}),a(document).on("click",".js-toggle-portfolio-handler",function(e){e.preventDefault(),a(this).parent().children(".js-image-attachments-carousel").hide(),a(this).hide(),a(this).parent().children(".js-profile-portfolio-uploader").show(),a(this).parent().children(".js-refresh-portfolio-handler").show(),"function"==typeof a.fn.wpjLazyLoadRender&&a.fn.wpjLazyLoadRender()}),a(document).on("click",".js-refresh-portfolio-handler",function(e){e.preventDefault(),addLoader(".profile-main-content.user-portfolio-wrapper"),refreshContent(".profile-main-content.user-portfolio-wrapper")})}),jQuery(document).ready(function(c){var n,i,a;c(document).on("keyup paste change","#user_term, #user_location, #user_radius, #user_skills, #user_level",(n=function(e){var t="",n="",i="",a="",r="",o="",s="",l="";c("#user_term").val()&&(l=l+"&term="+(t=(t=validateInputContent(c("#user_term").val())).replace(/\s+/g,"-").toLowerCase())),c("#user_location").val()&&(l=(l=(l=l+"&location="+(n=(n=validateInputContent(c("#user_location").val())).replace(/\s+/g,"-").toLowerCase()))+"&longitude="+(a=validateInputContent(c("#user_longitude").val())))+"&latitude="+(r=validateInputContent(c("#user_latitude").val()))),c("#user_radius").val()&&(l=l+"&radius="+(i=(i=validateInputContent(c("#user_radius").val())).replace(/\s+/g,"-").toLowerCase())),c("#user_skills").val()&&(l=l+"&skills="+(o=(o=validateInputContent(o=(o=c("#user_skills").val()).join("|"))).replace(/\s+/g,"-").toLowerCase())),""!=(l=c("#user_level").val()?l+"&level="+(s=c("#user_level").val()):l)&&(l="?"+l.substring(1)),addLoader(".user-info-wrapper"),history.pushState(null,"page 2",wpj_vars.page_url+l),jQuery.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"search_users_action",term:t,location:n,radius:i,latitude:r,longitude:a,skills:o,level:s},success:function(e){c(".js-user-info-wrapper").replaceWith(e),wpj_display_load_more_button()}})},i=500,a=0,function(){var e=this,t=arguments;clearTimeout(a),a=setTimeout(function(){n.apply(e,t)},i||0)}))}),jQuery(function(l){function c(e,t,n){return'<div class="ui '+e+' message"><i class="close icon"></i><div class="header">'+t+"</div><p>"+n+"</p></div>"}l(document).on("click","#vacation_mode_toggle_ui, #js-vacation-mode-link",function(){l("#vacation_mode_modal_ui").modal({onVisible:function(){l.fn.wpjCalendarInit()},onHide:function(){l("#vacation_mode_toggle_ui").checkbox("toggle")},autofocus:!1,transition:"fly down",observeChanges:!0}).modal("show").modal("refresh")}),l(document).on("click",".message .close",function(e){l(this).closest(".message").transition("fade")}),l(document).on("click","#vacation_mode_yes",function(e){e.preventDefault();var t=l(this),n=l("#vacation_mode_modal_ui"),i=l("#vacation_mode_modal_ui .content .messages"),a=validateInputContent(l("#wpjobster_vacation_away_reason").val()),r=l("#wpjobster_vacation_duration_start").val(),o=l("#wpjobster_vacation_duration_start").attr("data-timestamp"),s=l("#wpjobster_vacation_duration_end").val(),e=l("#wpjobster_vacation_duration_end").attr("data-timestamp");return jQuery.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"activate_vacation_mode_action",away_reason:a,start_date:r,start_date_timestamp:o,end_date:s,end_date_timestamp:e},beforeSend:function(){t.addClass("loading")},success:function(e){"success"==e?(i.html(c("success",wpj_vars.success,wpj_vars.success_saved)),n.modal({transition:"fly down"}).delay(1e3).queue(function(){l(this).modal("hide").dequeue()})):"err_already_in_vacation"==e?i.html(c("error",wpj_vars.err,wpj_vars.err_already_in_vacation)):"err_empty_start_date"==e?i.html(c("error",wpj_vars.err,wpj_vars.err_empty_start_date)):"err_small_start_date"==e?i.html(c("error",wpj_vars.err,wpj_vars.err_small_start_date)):"err_empty_end_date"==e?i.html(c("error",wpj_vars.err,wpj_vars.err_empty_end_date)):"err_small_end_date"==e?i.html(c("error",wpj_vars.err,wpj_vars.err_small_end_date)):i.html(c("error",wpj_vars.err_unknown,wpj_vars.err_try_again_later))},error:function(e){i.html(c("error",wpj_vars.err_unknown,wpj_vars.err_try_again_later))},complete:function(){t.removeClass("loading")}}),!1}),l(document).on("click","#vacation_mode_no",function(e){e.preventDefault();var t=l(this),n=l("#vacation_mode_modal_ui"),i=l("#vacation_mode_modal_ui .content .messages");return jQuery.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"deactivate_vacation_mode_action"},beforeSend:function(){t.addClass("loading")},success:function(e){"success"==e?(i.html(c("success",wpj_vars.success,wpj_vars.success_saved)),n.modal({transition:"fly down"}).delay(1e3).queue(function(){l(this).modal("hide").dequeue()})):i.html(c("error",wpj_vars.err_unknown,wpj_vars.err_try_again_later))},error:function(e){i.html(c("error",wpj_vars.err_unknown,wpj_vars.err_try_again_later))},complete:function(){t.removeClass("loading")}}),!1})}),jQuery(document).ready(function(n){n(document).on("click",".js-save-user-settings",function(e){e.preventDefault();var t=n(this),e=n(this).parents(".ui.form");jQuery.ajax({type:"POST",url:wpj_vars.ajaxurl,data:"action=save_user_settings_action&"+e.serialize(),beforeSend:function(){t.addClass("ui button loading disabled")},success:function(e){obj=JSON.parse(e),"error"==obj.status?n(".js-save-user-settings").notify(obj.error,{position:"top",className:"error"}):n(".js-save-user-settings").notify(wpj_vars.success_saved,{position:"top",className:"success"}),Hooks.do_action("wpj_after_user_settings_saved")},complete:function(){t.removeClass("ui button loading disabled")}})}),n(document).on("click",".js-delete-user-account",function(e){e.preventDefault(),jQuery(".ui.modal.delete-account-modal-wrapper").modal("setting","transition","fly down").modal("show")}),n(document).on("click",".js-delete-user-account-action",function(e){e.preventDefault();var t=n(this);jQuery.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"delete_user_account_action",uid:wpj_vars.uid},beforeSend:function(){t.addClass("loading disabled")},success:function(e){"not_allowed"==e?(t.removeClass("loading disabled"),t.notify(wpj_vars.not_allowed_delete_account,{position:"top",className:"error"})):(t.remove(),window.location.replace(wpj_vars.site_URL))}})})}),jQuery(document).ready(function(i){i(document).on("click",".js-request-withdrawal",function(e){var t=i(this),n=i(this).parents(".ui.form");i.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"request_withdrawal_action",method:t.parents(".item-content").find('input[name$="_withdraw"]').attr("name"),details:t.parents(".item-content").find('input[name="details"]').last().val(),email:t.parents(".item-content").find('input[name="email"]').val(),amount:t.parents(".item-content").find('input[name="amount"]').val()},beforeSend:function(){n.addClass("loading")},success:function(e){obj=JSON.parse(e),t.parents(".item-content").find('input[name="amount"]').val(""),"error"==obj.status?t.notify(obj.error,{position:"top center",className:"error"}):(t.parents(".kt-row-layout-inner")[0]&&t.parents(".kt-row-layout-inner").css("overflow","visible"),t.notify(wpj_vars.withdrawal_request,{position:"top center",className:"success"}),refreshContent(".js-pending-withdrawals-list"),history.pushState(null,null,wpj_vars.parent_url+"payments"),wpj_change_kadence_active_tab("payments"),i(".ui.secondary.menu")[0]&&i(".ui.secondary.menu").find(".item").tab("change tab","payments"),i(".js-tab-to-dropdown").find(".ui.dropdown").dropdown("set selected","payments"))},error:function(e){t.notify("Error: "+e,{position:"top center",className:"error"})},complete:function(){n.removeClass("loading")}})}),i(document).on("click","#resend_withdrawal_email",function(e){e.preventDefault();var t=i(this);i.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"resend_withdrawal_confirmation_email_action",uid:i(".js-withdrawal-uid").html(),key:i(".js-withdrawal-key").html()},success:function(e){"success"==e?t.notify(wpj_vars.email_send_lbl,{position:"right",className:"success"}):t.notify(wpj_vars.err_something_wrong,{position:"right",className:"error"})}})})}),jQuery(document).ready(function(n){n(document).on("click",".js-select-work-sample",function(){var e=n(this).closest(".js-review-form").find(".js-select-work-sample"),t=n(this).closest(".js-review-form").find(".submit-user-rating");n(this).hasClass("selected")?(e.removeClass("selected"),t.attr("data-sample","")):(e.removeClass("selected"),n(this).addClass("selected"),t.attr("data-sample",n(this).attr("data-id")))})}),jQuery(document).ready(function(i){var e;"undefined"!=typeof Modernizr&&(Modernizr.touch?i("body").addClass("touch"):i("body").addClass("no-touch")),wpj_initialize_theme_scripts(),"animation"==wpj_vars.page_transition&&"undefined"!=typeof Modernizr&&Modernizr.history&&(i("#page-wrap").delegate("a","click",function(e){var t=i(this).attr("href"),n=new RegExp(location.host);if(void 0!==t&&!1!==t&&n.test(t)&&!i(this).hasID("#wp-submit")&&!i(this).hasClass(".js-authentication-button")&&!i(this).hasClass("user-notification-icon-link")&&!i(this).hasClass("attachment-item-link")&&!i(this).hasClass("js-pm-image-attachments-gallery")&&!i(this).hasClass("js-search-users-btn")&&!i(this).hasClass("js-invoice-link")&&!i(this).hasClass("register_button")&&!i(this).hasClass("register-link")&&!i(this).hasClass("login_button")&&!i(this).hasClass("login-link")&&!i(this).hasClass("log-out")&&!i(this).hasClass("forgot_button")&&!i(this).hasClass("lostpassword-link")&&!i(this).hasClass("already-registered-handle")&&!i(this).hasClass("not-a-member-handle")&&!i(this).hasClass("owl-prev")&&!i(this).hasClass("owl-next")&&!i(this).hasClass("page-numbers")&&!i(this).hasClass("js-mobile-menu-toggle")&&!i(this).attr("data-featherlight")&&!i(this).parents("#wpadminbar")[0]&&!i(this).parents(".wpj-language-switcher")[0]&&!i(this).parents(".trp-language-switcher-container")[0]&&!i(this).parents(".trp_language_switcher_shortcode")[0]&&"_blank"!=i(this).attr("target")&&!e.ctrlKey&&!e.metaKey&&!(wpj_vars.chat_enabled&&i(this).attr("onclick")&&i(this).attr("onclick").includes("wpj_chat_open_box")||i(this).hasClass("link-to-pm")&&(i(e.target).hasClass("icon")||i(e.target).hasClass("item"))))return(i(this).parents(".wpj-view-all-cnt")[0]||i(this).parents(".message-box-maximize")[0])&&jQuery(".message-box-close").trigger("click"),i(this).parents(".wpj-view-all-cnt")[0]&&isMobile()&&refreshContent(".header-wrapper.header-mobile .user-notification-icons"),100<i(window).scrollTop()&&i("html, body").animate({scrollTop:0},800),history.pushState(null,null,t),loadContent(t),!1}),e=window.location.hash,i(window).bind("popstate",function(){window.location.hash!=e&&!location.hash.includes("step")||loadContent(location.pathname.replace(/^.*[\\\/]/,"")),e=window.location.hash}))}),jQuery(document).ready(function(n){n(document).on("click",".js-job-deactivated",function(e){n.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"as_remove_deactivation_reason_action"},success:function(e){}})}),n(document).on("click",".js-as-become-a-seller-button",function(e){n(".ui.message").fadeOut("slow"),"no"==wpj_vars.enable_cv_verification&&n(".cv-row-wrapper").remove(),"no"==wpj_vars.enable_utility_bill_verification&&n(".utility-bill-row-wrapper").remove(),"no"!=wpj_vars.enable_national_id_verification&&wpj_vars.display_national_id||n(".national-id-row-wrapper").remove(),"no"!=wpj_vars.enable_company_reg_verification&&wpj_vars.display_company_reg||n(".company-row-wrapper").remove(),"no"==wpj_vars.enable_linkedin_verification&&n(".linkedin-row-wrapper").remove(),n(".uploadifive-button")[0]||n(".linkedin-row-wrapper")[0]||n(".as_ac_linkedin_wrapper")[0]?n(".js-as-become-a-seller-wrapper").fadeOut("slow",function(){n(".js-as-account-verification-wrapper").fadeIn("slow")}):n.ajax({type:"POST",url:wpj_vars.ajaxurl,data:"action=as_save_account_verification_info_action&",success:function(e){changeURL(wpj_vars.site_URL)}})}),n(document).on("click",".js-save-account-verification-info",function(e){var t=n(this);n.ajax({type:"POST",url:wpj_vars.ajaxurl,data:"action=as_save_account_verification_info_action&"+n(this).parents("form").serialize(),success:function(e){e?changeURL(wpj_vars.site_URL):t.notify(wpj_vars.media_blank,{position:"top center",className:"error"})}})})}),Hooks.add_action("wpj_after_form_added_to_page_builder",wpj_as_add_form_to_seller_account_verification_page),jQuery(document).ready(function(t){t(document).on("click",".js-referral-url-copy",function(e){e.preventDefault(),copyString(".js-referral-generated-url"),t(".js-referral-url-copy").notify(wpj_vars.copied,{position:"top center",className:"success"})}),t(document).on("click",".js-generate-referral-url-btn",function(e){e.preventDefault();e='\t\t\t<div class="ui compact menu">\t\t\t\t<a class="item w100">\t\t\t\t\t<span class="js-referral-generated-url">'+(t(".js-referral-input-url").val()?t(".js-referral-input-url").val()+"?ref="+t(this).attr("aria-label"):wpj_vars.site_URL+"?ref="+t(this).attr("aria-label"))+'</span>\t\t\t\t\t<div class="floating ui primary label js-referral-url-copy">\t\t\t\t\t\t<i class="ui copy icon mr0"></i>\t\t\t\t\t</div>\t\t\t\t</a>\t\t\t</div>\t\t';t(".js-referral-generated-url-link").show().html(e)})}),Hooks.add_action("wpj_after_page_load_without_refresh",wpj_aff_remove_ref_from_URL),Hooks.add_action("wpj_after_page_load_without_refresh",wpj_dsct_init_scripts),jQuery(document).ready(function(c){var i=[];c(".js-all-applied-codes")[0]&&c(".js-all-applied-codes").val()&&(i=i.concat(c(".js-all-applied-codes").val().split(","))),c(document).on("keyup change paste",".discount-code",function(e){c(".discount-code").val(c(this).val())}),c(document).on("click","#apply_discount",function(e){e.preventDefault();var o=c(this).siblings(".discount-code").val().trim();if(1==i.includes(o))return c(".discount_status").addClass("negative").removeClass("success"),c(".discount_status").html('<i class="exclamation circle icon"></i>'+wpj_vars.lbl_coupon_already_applied).show(),!1;o&&i.push(o),c(".ui.input.discount-inp").addClass("left icon loading disabled"),c(".ui.input.discount-inp").append('<i class="search icon"></i>'),c.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"apply_discount_code_action",discount_code:o,pid:c(".js-dsct-pid").val(),pck_value:c(".package_price").val()},success:function(e){var t;if(c(".ui.input.discount-inp").removeClass("left icon loading disabled"),c(".ui.input.discount-inp").find("i").remove(),obj=JSON.parse(e),1==obj.messages.ok?(c(".discount_status").addClass("success"),c(".discount_status").removeClass("negative"),t='<i class="check circle icon"></i>'):(c(".discount_status").addClass("negative"),c(".discount_status").removeClass("success"),t='<i class="exclamation circle icon"></i>',-1<(n=i.indexOf(o))&&i.splice(n,1)),c(".discount_status").each(function(){c(this).html(t+obj.messages.content).show()}),1==obj.messages.ok){if(price_total="yes"!=wpj_vars.admin_discounts_to_seller_earnings&&1!=obj.results.creator?wpj_dsct_calculate_fee(parseFloat(c(".total").attr("data-price-with-extras"))):parseFloat(c(".total").attr("data-price-with-extras")),r=wpj_dsct_get_discount_by_price(obj),price_total<parseFloat(r)+parseFloat(c(".total").attr("data-discount")))return c(".discount_status").addClass("negative").removeClass("success"),c(".discount_status").html('<i class="exclamation circle icon"></i>'+wpj_vars.lbl_total_discount_greater_than_amount).show(),i=c.grep(i,function(e){return e!=o}),!1;var r=0;c(".total").each(function(){var e=c(this),t=e.data("symbol")||e.data("cur"),n=e.data("position")||"",i="yes"==(e.data("space")||"yes")?" ":"",a=wpj_dsct_number_to_price(e,r=wpj_dsct_get_discount_by_price(obj));c(".coupon-"+o).length||(e=(e=(e=(e=c(".js-shipping")[0]?".js-shipping":"")||(c(".js-processingfees")[0]?".js-processingfees":""))||(c(".js-processingtax")[0]?".js-processingtax":""))||".apply-dicounts-wrapper",t='\t\t\t\t\t\t\t\t\t<div\t\t\t\t\t\t\t\t\t\tdata-creator="'+obj.results.creator+'"\t\t\t\t\t\t\t\t\t\tdata-discount="'+r+'"\t\t\t\t\t\t\t\t\t\tdata-type="'+obj.results.type+'"\t\t\t\t\t\t\t\t\t\tdata-value="'+obj.results.price+'"\t\t\t\t\t\t\t\t\t\tdata-min-amount="'+obj.results.minimum_amount+'"\t\t\t\t\t\t\t\t\t\tclass="item coupon-'+o+'"\t\t\t\t\t\t\t\t\t>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="price-label"><i class="remove-discount close icon"></i>'+wpj_vars.lbl_coupon+": "+o+'</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="price-value">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="coupon-amount extra-price-inside">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'+("front"==n?t+i+"-"+a:"-"+a+i+t)+'\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input class="discount-value" type="hidden" name="discount_value[]" value="'+o+"/"+r+'" />\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t',c('<div class="ui divider"></div><div class="js-discount">'+t).insertBefore(c(e).prev(".ui.divider")),c('<div class="js-discount single-job-sidebar-price-content">'+t).insertBefore(c(".order-additional-sidebar-wrapper").find(e)),c('input[name="discount"]')[0]?c('input[name="discount"]').val(parseFloat(c('input[name="discount"]').val())+parseFloat(r)):c('<input name="discount" type="hidden" value="'+r+'" />').insertAfter('input[name="purchaseformvalidation"]'),c('input[name="coupons"]')[0]?c('input[name="coupons"]').val(c('input[name="coupons"]').val()+"_"+o):c('<input name="coupons" type="hidden" value="'+o+'" />').insertAfter('input[name="purchaseformvalidation"]'))}),c(".discount-code").val("");var n=(n=parseFloat(c(".total").attr("data-discount")))||0;c(".total").attr("data-discount",n+r),"function"==typeof wpj_update_purchase_price&&wpj_update_purchase_price("job_purchase")}c('<input type="hidden" class="job-total-price" value="'+parseFloat(obj.job_price)+'" />').insertAfter(".apply-dicounts-wrapper")}})}),c(document).on("click",".remove-discount",function(e){e.preventDefault();var e=c(this).parents(".js-discount").find(".discount-value").val().split("/"),t=e[0].trim(),e=e[1].trim();(e=c(".total").attr("data-discount")&&0<e?parseFloat(c(".total").attr("data-discount"))-e:e)<=0&&(e=0),c(".total").attr("data-discount",e),"function"==typeof wpj_update_purchase_price&&wpj_update_purchase_price("job_purchase"),i=c.grep(i,function(e){return e!=t});e=c('input[name="coupons"]').val();e.includes(t+"_")?c('input[name="coupons"]').val(e.replace(t+"_","")):e.includes("_"+t)?c('input[name="coupons"]').val(e.replace("_"+t,"")):c('input[name="coupons"]').remove(),c(".discount_status").html("").hide(),c(".coupon-"+t).parent(".js-discount").prev(".ui.divider").remove(),c(".coupon-"+t).parent(".js-discount").remove()}),c(document).on("click",".extra-item, .pck-order, .amount_add, .amount_rmv",function(e){var l;i&&(l=0,i.forEach(function(e){var t,n,i,a,r,o,s;c(".coupon-"+e).length&&(t=c(".coupon-"+e).attr("data-type"),n=c(".coupon-"+e).attr("data-value"),o=c(".coupon-"+e).attr("data-creator"),i=(s=c(".total")).data("symbol")||s.data("cur"),a=s.data("position")||"",r="yes"==(s.data("space")||"yes")?" ":"",obj={price:n,results:{type:t,price:n,creator:o}},o=wpj_dsct_get_discount_by_price(obj),l+=o,s=wpj_dsct_number_to_price(s,o),"front"==a?c(".coupon-"+e).find(".coupon-amount").html(i+r+"-"+s):c(".coupon-"+e).find(".coupon-amount").html("-"+s+r+i),c(".coupon-"+e).next(".discount-value").val(e+"/"+o),price_total="yes"!=wpj_vars.admin_discounts_to_seller_earnings&&1!=obj.results.creator?wpj_dsct_calculate_fee(parseFloat(c(".total").attr("data-price-with-extras"))):parseFloat(c(".total").attr("data-price-with-extras")),price_total<parseFloat(c(".total").attr("data-discount"))&&c(".coupon-"+e).find(".remove-discount").trigger("click"))}),c(".total").attr("data-discount",l),"function"==typeof wpj_update_purchase_price&&wpj_update_purchase_price("job_purchase"))}),c(document).on("click",".pck-order",function(e){i&&(i.forEach(function(e){var t,n;c(".coupon-"+e).length&&(t=c(".coupon-"+e).attr("data-min-amount"),(n=parseFloat(c(".job-total-price").val())+parseFloat(c(".package_price").val()))&&0!=t&&n<t&&c(".coupon-"+e).find(".remove-discount").trigger("click"))}),"function"==typeof wpj_update_purchase_price&&wpj_update_purchase_price("job_purchase"))}),c(document).on("click",".js-save-coupon",function(e){e.preventDefault();var t=c(this),n=c(this).parents(".ui.form");c.ajax({type:"POST",url:wpj_vars.ajaxurl,data:"action=save_coupon_action&"+n.serialize()+"&action_type="+getUrlParameter("action")+"&discount="+getUrlParameter("discount"),beforeSend:function(){t.addClass("ui button loading")},success:function(e){e?c(".js-save-coupon").notify(e,{position:"top",className:"error"}):(c(".js-save-coupon").notify(wpj_vars.lvl_saved_lbl,{position:"top",className:"success"}),n.form("clear"),c(".discounts-wrapper")[0]?refreshContent(".discounts-wrapper"):c(".kt-tabs-content-wrap")[0]&&refreshContent(".kt-tabs-content-wrap"),history.pushState(null,null,wpj_vars.parent_url+"active-coupons"),wpj_change_kadence_active_tab("active-coupons"),c(".ui.secondary.menu")[0]&&c(".ui.secondary.menu").find(".item").tab("change tab","active-coupons"),c(".js-tab-to-dropdown").find(".ui.dropdown").dropdown("set selected","active-coupons"),jQuery.fn.wpjSemanticInit())},complete:function(){t.removeClass("ui button loading")}})}),c(document).on("click",".js-delete-coupon",function(e){e.preventDefault();var t=c(this);c.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"delete_coupon_action",discount:c(this).attr("data-code")},beforeSend:function(){t.addClass("ui button loading")},success:function(e){t.notify(e,{position:"right",className:"success"}),c(".discounts-wrapper")[0]?refreshContent(".discounts-wrapper"):c(".kt-tabs-content-wrap")[0]&&refreshContent(".kt-tabs-content-wrap")},complete:function(){t.removeClass("ui button loading")}})}),c(document).on("click",'a[aria-controls="new-coupon"]',function(e){void 0!==e.originalEvent&&(wpj_dsct_add_form_to_discounts_page(),c("#post-new-coupon").form("clear"),c(".delete-coupon-button").css("display","none"),c(".js-create-new-coupon-label").text(wpj_vars.lbl_create_new_coupon),c(".js-discount-type")[0]&&c(".js-discount-type").dropdown({onChange:function(e){"fixed"==e?(c(".js-percent").hide(),c(".js-fixed").show()):(c(".js-percent").show(),c(".js-fixed").hide())}}),history.pushState(null,null,wpj_vars.page_url))})}),Hooks.add_filter("wpj_checkout_total_price_filter",wpj_dsct_update_price_after_discount,2),Hooks.add_action("wpj_after_form_added_to_page_builder",wpj_dsct_add_form_to_discounts_page),jQuery(document).ready(function(t){t(document).on("click",".js-connect-wise-user",function(e){e.preventDefault(),t(this).addClass("disabled"),t.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"generate_recipient_id_action"},success:function(e){t(".js-connect-wise-user").removeClass("disabled"),e?t(".js-wise-connection-status").html(e):refreshContent(".connection-status-wrapper")}})}),t(document).on("click",".js-connect-payoneer-user",function(e){e.preventDefault(),t(this).addClass("disabled"),t.ajax({type:"POST",url:wpj_vars.ajaxurl,data:{action:"connect_user_to_payoneer_action",action_type:t(this).attr("name")},success:function(e){t(".js-connect-payoneer-user").removeClass("disabled"),e?t(".js-payoneer-connection-status").html(e):refreshContent(".connection-status-wrapper")}})})}),Hooks.add_action("wpj_after_user_settings_saved",wpj_display_wise_connect_button),Hooks.add_action("wpj_after_page_load_without_refresh",wpj_invoices_init_scripts),jQuery(document).ready(function(n){n(document).on("click","#add_milestone",function(e){var t=n(".repeater-row:first").clone();t.find("textarea").val(""),t.find("input").val(""),t.find(".ui.dropdown.delivery-days").dropdown("set selected",1),t.appendTo(".milestone-table tbody"),n(".ui.dropdown.delivery-days").dropdown(),n.fn.wpjTooltipInit(),wpj_mlst_disable_efd_delivery_days()}),n(document).on("click",".remove-milestone",function(e){1<n(".remove-milestone").length?n(this).parents("tr").remove():(n(this).parents("tr").find("input, textarea").val(""),n(this).parents("tr").find(".ui.dropdown").dropdown("set selected",1)),wpj_mlst_disable_efd_delivery_days()}),n(document).on("input",".post-new-price",function(){"milestone"==n('select[name="price_type"]').val()&&n(".deposit-amount:first").val(n(this).val())}),n(document).on("input",".deposit-amount:first",function(){"milestone"==n('select[name="price_type"]').val()&&n(".post-new-price").val(n(this).val())}),n(document).on("click",".mark_milestone_delivered",function(e){e.preventDefault();var t=n(this);t.addClass("loading").addClass("disabled"),n.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"mark_milestone_delivered",oid:t.attr("data-oid"),ceid:t.attr("data-ceid")},success:function(e){t.parents(".custom_extra_chatbox_buttons").remove(),refreshContent("#order-notification-messages-wrapper")}})}),n(document).on("click",".mark_milestone_completed",function(e){e.preventDefault();var t=n(this);t.addClass("loading").addClass("disabled"),jQuery.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"mark_milestone_completed",oid:t.attr("data-oid"),ceid:t.attr("data-ceid")},success:function(e){t.parents(".custom_extra_chatbox_buttons").remove(),refreshContent("#order-notification-messages-wrapper"),refreshContent("#order-message-form-wrapper"),refreshContent("#order-feedback-form-wrapper")}})}),n(document).on("change",'select[name="delivery_days[]"]',function(){wpj_mlst_disable_efd_delivery_days()})}),Hooks.add_action("wpj_after_page_load_without_refresh",wpj_mlst_init_scripts),Hooks.add_action("wpj_after_job_price_type_changed",wpj_mlst_changes_on_price_type_changed,1),Hooks.add_action("wpj_before_execute_job_form_validation",wpj_mlst_skip_instant_validation_action,1),Hooks.add_filter("wpj_efd_max_days_validation_filter",wpj_mlst_change_max_days_value),Hooks.add_filter("wpj_fields_validation_filter",wpj_mlst_validate_milestone_field,1),jQuery(document).ready(function(t){t(document).on("click","body.wpj-is-iframe.wpj-is-handheld .post-new-job-wrapper .tab-controls a.right",function(e){e.preventDefault();e=t(".post-new-job-wrapper").offset().top-t("#content-full-ov").offset().top;t(".pusher").animate({scrollTop:e},1e3)}),t(document).on("click","body.wpj-is-iframe.wpj-is-handheld .post-new-job-wrapper .tab-controls a.left",function(e){e.preventDefault();e=t(".post-new-job-wrapper").offset().top-t("#content-full-ov").offset().top;t(".pusher").animate({scrollTop:e},1e3)}),t(".pusher").animate({scrollTop:t(".pm-list").prop("scrollHeight")},1e3),t(".pusher").animate({scrollTop:t("#order-notification-messages-wrapper").prop("scrollHeight")},1e3),t("body").hasClass("wpj-is-iframe")&&t("body").hasClass("wpj-is-handheld")&&jQuery(".pusher").scroll(function(){"function"==typeof jQuery.fn.echoLazyLoadRender&&jQuery.fn.echoLazyLoadRender()})}),jQuery(document).ready(function(n){n(document).on("click",".js-save-requests-notifications",function(e){e.preventDefault();var t=n(this).parents(".ui.form");jQuery.ajax({type:"POST",url:wpj_vars.ajaxurl,data:"action=save_requests_notifications_action&"+t.serialize(),beforeSend:function(){t.addClass("loading")},success:function(e){n(".js-save-requests-notifications").notify(wpj_vars.success_saved,{position:"right",className:"success"})},complete:function(){t.removeClass("loading")}})})}),Hooks.add_action("wpj_after_form_added_to_page_builder",wpj_sn_add_form_to_requests_notifications_page),Hooks.add_action("wpj_after_page_load_without_refresh",wpj_sn_init_scripts),jQuery(document).ready(function(a){a(document).on("click",".js-order-video-call-icon",function(e){e.preventDefault();e=a(this).parent();addLoader(".messages-form-container"),jQuery.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"generate_video_call_link_action",order_id:e.attr("data-order-id"),buyer_id:e.attr("data-buyer-id"),seller_id:e.attr("data-seller-id")},success:function(e){window.open(e),refreshContent("#order-notification-messages-wrapper")}})}),a(document).on("click",".js-pm-video-call-icon",function(e){e.preventDefault(),a(".js-pm-video-call-icon").attr("style","display:none !important"),a(".js-pm-video-call-loading-icon").css({display:"inline-flex"}),jQuery.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"generate_video_call_link_action",buyer_id:a("#pm_interlocutor_id").val(),seller_id:wpj_vars.uid},success:function(e){window.open(e),refreshContent(".js-messages-list .kt-inside-inner-col:first"),refreshContent(".thread-list-wrapper"),a(".error-no-messages").remove(),a(".js-pm-video-call-loading-icon").hide(),a(".js-pm-video-call-icon").css({display:"inline-flex"})}})}),a(document).on("click",".js-chat-video-call-icon",function(e){e.preventDefault();var t=a(this),n=t.parent(),i=t.parents(".message-box-container").attr("rel");n.addClass("ui button loading"),t.removeClass("video"),jQuery.ajax({type:"post",url:wpj_vars.ajaxurl,data:{action:"generate_video_call_link_action",buyer_id:i,seller_id:wpj_vars.uid},success:function(e){window.open(e),wpj_chat_insert_message_to_box(i,"Zoom meeting link: "+e),n.removeClass("ui button loading"),t.addClass("video"),a(this).parents(".message-box-wrapper").find(".no-results").text("")}})})});
!function(e){"use strict";window.essb_ajax_subscribe=function s(t,i){i.preventDefault();var o=e(".essb-subscribe-form-"+t+" #essb-subscribe-from-content-form-mailchimp"),r=e(".essb-subscribe-form-"+t+" .essb-subscribe-form-content"),n=e(r).attr("data-position")||"",c=e(r).attr("data-design")||"";if(o.length){if(e(o).find(".essb-subscribe-confirm").length&&!e(o).find(".essb-subscribe-confirm").is(":checked")){i.preventDefault(),essb_settings.subscribe_terms_error?alert(essb_settings.subscribe_terms_error):alert("You need to confirm that you agree with our terms");return}if(e(o).find(".essb-subscribe-form-content-name-field").length&&essb_settings.subscribe_validate_name&&""==e(o).find(".essb-subscribe-form-content-name-field").val()){essb_settings.subscribe_validate_name_error?alert(essb_settings.subscribe_validate_name_error):alert("You need to fill name field too");return}var a=e(o).find(".essb-subscribe-form-content-email-field").val(),b=e(o).find(".essb-subscribe-form-content-name-field").length?e(o).find(".essb-subscribe-form-content-name-field").val():"";e(o).find(".submit").prop("disabled",!0),e(o).hide(),e(".essb-subscribe-form-"+t).find(".essb-subscribe-loader").show();for(var l=o.attr("action")+"&mailchimp_email="+a+"&mailchimp_name="+b+"&position="+n+"&design="+c+"&title="+encodeURIComponent(document.title),f=document.querySelectorAll(".essb-subscribe-form-"+t+" #essb-subscribe-from-content-form-mailchimp .essb-subscribe-custom"),u=!1,d=0;d<f.length;d++){if(""==f[d].value&&f[d].classList.contains("essb-subscribe-required")){u=!0,alert("You need to fill "+(f[d].getAttribute("placeholder")||""));break}var m=f[d].getAttribute("data-field")||"";""!=m&&(l+="&mailchimp_"+m+"="+f[d].value)}if(u)return;if(window.location.href.indexOf("https://")>-1&&-1==l.indexOf("https://")&&(l=l.replace("http://","https://")),e(".essb-subscribe-captcha").length){var h=e("#g-recaptcha-response").val();e('input[name="cf-turnstile-response"]').length&&(h=e('input[name="cf-turnstile-response"]').val()),l+="&validate_recaptcha=true&recaptcha="+h}e.post(l,{mailchimp_email1:a,mailchimp_name1:b},function(s){if(s){if(console.log(s),"1"==s.code)e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-success").show(),e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").hide(),e(o).hide(),"undefined"!=typeof essb_subscribe_tracking&&essb_subscribe_tracking(n),"undefined"!=typeof essbSubscribeProLog&&essbSubscribeProLog("subscribe_conversion_success",n,c),s.redirect&&setTimeout(function(){s.redirect_new?window.open(s.redirect,"_blank").focus():window.location.href=s.redirect},200),window.pendingUnlockOnSubscribe&&essb_optin_locker_unlock(),essb.trigger("subscribe_success",{design:c,position:n,email:a,name:b});else{"undefined"!=typeof essbSubscribeProLog&&essbSubscribeProLog("subscribe_conversion_fail",n,c);var i=e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").attr("data-message")||"";""==i&&e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").attr("data-message",e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").text()),90==s.code?e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").text(s.message):e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").text(i),e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").show(),e(".essb-subscribe-form-"+t).find(".essb-subscribe-from-content-form").show(),e(o).find(".submit").prop("disabled",!1)}e(".essb-subscribe-form-"+t).find(".essb-subscribe-loader").hide()}},"json")}},e(document).ready(function(){var s=!1,t=0,i=0,o=window.essb_manualform_show=function(){r("manual"),s=!1},r=function(t){if(!s){var i=".essb-optinbooster-"+t,o=".essb-optinbooster-overlay-"+t;if(e(i).length){var r=e(i).attr("data-single")||"",n=e(i).attr("data-single-days")||"";if("1"==r){var c="essbOptinBooster";if("yes"==l(c))return;n=""!=n&&Number(n)?Number(n):14,b(c,"yes",n)}jQuery.fn.extend({center:function(){return this.each(function(){var e=(jQuery(window).height()-jQuery(this).outerHeight())/2,s=(jQuery(window).width()-jQuery(this).outerWidth())/2;jQuery(this).css({position:"fixed",margin:0,top:(e>0?e:0)+"px",left:(s>0?s:0)+"px"})})}});var a=jQuery(window).width();jQuery("document").height();var f=700;if(a<f&&(f=a-60),e(i).css({width:f+"px"}),e(i).center(),e(i).fadeIn(400),e(o).fadeIn(200),e(i).addClass("active-booster"),e(o).addClass("active-booster-overlay"),s=!0,"undefined"!=typeof essbSubscribeProLog){var u=e(i+" .essb-subscribe-form-content").data("position")||"",d=e(i+" .essb-subscribe-form-content").data("design")||"";essbSubscribeProLog("subscribe_conversion_loaded",u,d)}}}},n=function(){e(".active-booster").fadeOut(200),e(".active-booster").removeClass("active-booster"),e(".active-booster-overlay").fadeOut(400),e(".active-booster-overlay").removeClass("active-booster-overlay")};e(".essb-optinbooster-exit")&&jQuery(document).on("mouseleave",function(e){e.clientY<0&&r("exit")});var c=function(){if(!s){var e=jQuery(window).scrollTop(),i=jQuery(document).height()-jQuery(window).height();e/i*100>t&&t>0&&r("scroll")}};if(e(".essb-optinbooster-scroll")&&(t=parseFloat(t=e(".essb-optinbooster-scroll").attr("data-scroll")||""),e(window).on("scroll",c)),e(".essb-optinbooster-time")&&(i=parseFloat(i=e(".essb-optinbooster-time").attr("data-delay")||""),setTimeout(function(){r("time")},i*=1e3)),e(".essb-optinbooster-manual").length){var a=e(".essb-optinbooster-manual").data("manual-selector")||"";""!=a&&e(a).length&&e(a).on("click",function(e){e.preventDefault(),o()})}function b(e,s,t){var i=new Date;i.setTime(i.getTime()+864e5*t);var o="expires="+i.toGMTString();document.cookie=e+"="+s+"; "+o+"; path=/"}function l(e){for(var s=e+"=",t=document.cookie.split(";"),i=0;i<t.length;i++){var o=t[i].trim();if(0==o.indexOf(s))return o.substring(s.length,o.length)}return""}e(".essb-optinbooster-overlay").each(function(){e(this).on("click",function(e){e.preventDefault(),n()})}),e(".essb-optinbooster-close").each(function(){e(this).on("click",function(e){e.preventDefault(),n()})});var f=!1,u=0,d=0,m=function(s){if(!f){var t=".essb-optinflyout-"+s;if(e(t).length){if("1"==(e(t).attr("data-single")||"")){var i="essbOptinFlyout";if("yes"==l(i))return;b(i,"yes",14)}jQuery.fn.extend({center:function(){return this.each(function(){var e=(jQuery(window).height()-jQuery(this).outerHeight())/2,s=(jQuery(window).width()-jQuery(this).outerWidth())/2;jQuery(this).css({position:"fixed",margin:0,top:(e>0?e:0)+"px",left:(s>0?s:0)+"px"})})}});var o=jQuery(window).width();jQuery("document").height();var r=500;if(o<r&&(r=o-60),e(t).css({width:r+"px"}),e(t).slideDown(400),e(t).addClass("active-flyout"),f=!0,"undefined"!=typeof essbSubscribeProLog){var n=e(t+" .essb-subscribe-form-content").data("position")||"",c=e(t+" .essb-subscribe-form-content").data("design")||"";essbSubscribeProLog("subscribe_conversion_loaded",n,c)}}}},h=function(){e(".active-flyout").fadeOut(200),e(".active-flyout").removeClass("active-flyout")},p=function(){var e=window.event;if(e){var s=e.relatedTarget||e.toElement;s&&"HTML"!==s.nodeName||m("exit")}};e(".essb-optinflyout-exit")&&e(document).mouseout(p);var v=function(){if(!f){var e=jQuery(window).scrollTop(),s=jQuery(document).height()-jQuery(window).height();e/s*100>u&&u>0&&m("scroll")}};e(".essb-optinflyout-scroll")&&(u=parseFloat(u=e(".essb-optinflyout-scroll").attr("data-scroll")||""),e(window).on("scroll",v)),e(".essb-optinflyout-time")&&(d=parseFloat(d=e(".essb-optinflyout-time").attr("data-delay")||""),setTimeout(function(){m("time")},d*=1e3)),e(".essb-optinflyout-overlay").each(function(){e(this).on("click",function(e){e.preventDefault(),h()})}),e(".essb-optinflyout-close").each(function(){e(this).on("click",function(e){e.preventDefault(),h()})});var $=!1,g=0,y=0,k="essb_optin_locker_unlocked";window.pendingUnlockOnSubscribe=!1,window.essb_optin_locker_unlock=function(){_();var s=e(".essb-optinlocker").data("unlock")||"";Number(s)||(s=90),b(k,"yes",s)};var x=function(s){if(!$){var t=".essb-optinlocker-"+s,i=".essb-optinlocker-overlay-"+s;if(e(t).length&&"yes"!=l(k)){jQuery.fn.extend({center:function(){return this.each(function(){var e=(jQuery(window).height()-jQuery(this).outerHeight())/2,s=(jQuery(window).width()-jQuery(this).outerWidth())/2;jQuery(this).css({position:"fixed",margin:0,top:(e>0?e:0)+"px",left:(s>0?s:0)+"px"})})}});var o=jQuery(window).width();jQuery("document").height();var r=700;if(o<r&&(r=o-60),e(t).css({width:r+"px"}),e(t).center(),e(t).fadeIn(400),e(i).fadeIn(200),e(t).addClass("active-locker"),e(i).addClass("active-locker-overlay"),e("body").addClass("removeScroll"),$=!0,window.pendingUnlockOnSubscribe=!0,"undefined"!=typeof essbSubscribeProLog){var n=e(t+" .essb-subscribe-form-content").data("position")||"",c=e(t+" .essb-subscribe-form-content").data("design")||"";essbSubscribeProLog("subscribe_conversion_loaded",n,c)}}}},_=function(){e(".active-locker").fadeOut(200),e(".active-locker").removeClass("active-locker"),e(".active-locker-overlay").fadeOut(400),e(".active-locker-overlay").removeClass("active-locker-overlay"),e("body").removeClass("removeScroll")},w=function(){if(!$){var e=jQuery(window).scrollTop(),s=jQuery(document).height()-jQuery(window).height();e/s*100>g&&g>0&&x("scroll")}};e(".essb-optinlocker-scroll")&&(g=parseFloat(g=e(".essb-optinlocker-scroll").attr("data-scroll")||""),e(window).on("scroll",w)),e(".essb-optinlocker-time")&&(y=parseFloat(y=e(".essb-optinlocker-time").attr("data-delay")||""),setTimeout(function(){x("time")},y=1e3*i)),e(".essb-optinlocker-close").each(function(){e(this).on("click",function(e){e.preventDefault(),_()})}),e(".essb-subscribe-captcha").length&&e(".essb-subscribe-captcha").each(function(){var s=e(this).attr("id")||"";""!=s&&"undefined"!=typeof essb_subscribe_recaptcha&&essb_subscribe_recaptcha&&essb_subscribe_recaptcha.recaptchaSitekey&&setTimeout(function(){grecaptcha.render(essb_subscribe_recaptcha.turnstile?"#"+s:s,{sitekey:essb_subscribe_recaptcha.recaptchaSitekey})},500)})})}(jQuery);
jQuery(document).ready(function(s){"use strict";jQuery.fn.essb_toggle_more=function(){return this.each(function(){s(this).removeClass("essb_after_more"),s(this).addClass("essb_before_less")})},jQuery.fn.essb_toggle_less=function(){return this.each(function(){s(this).addClass("essb_after_more"),s(this).removeClass("essb_before_less")})},jQuery.fn.extend({center:function(){return this.each(function(){var s=(jQuery(window).height()-jQuery(this).outerHeight())/2,e=(jQuery(window).width()-jQuery(this).outerWidth())/2;jQuery(this).css({position:"fixed",margin:0,top:(s>0?s:0)+"px",left:(e>0?e:0)+"px"})})}})}),function(s){s.fn.countTo=function(e){return e=e||{},s(this).each(function(){var t=s.extend({},s.fn.countTo.defaults,{from:s(this).data("from"),to:s(this).data("to"),speed:s(this).data("speed"),refreshInterval:s(this).data("refresh-interval"),decimals:s(this).data("decimals")},e),o=Math.ceil(t.speed/t.refreshInterval),a=(t.to-t.from)/o,i=this,n=s(this),r=0,l=t.from,d=n.data("countTo")||{};function b(s){var e=t.formatter.call(i,s,t);n.text(e)}n.data("countTo",d),d.interval&&clearInterval(d.interval),d.interval=setInterval(function s(){l+=a,r++,b(l),"function"==typeof t.onUpdate&&t.onUpdate.call(i,l),r>=o&&(n.removeData("countTo"),clearInterval(d.interval),l=t.to,"function"==typeof t.onComplete&&t.onComplete.call(i,l))},t.refreshInterval),b(l)})},s.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:function s(e,t){return e.toFixed(t.decimals)},onUpdate:null,onComplete:null}}(jQuery),function(s){"use strict";var e=window.essb={},t=function(s,e){var t,o,a,i;return function(){a=this,o=[].slice.call(arguments,0),i=new Date;var n=function(){var r=new Date-i;r<e?t=setTimeout(n,e-r):(t=null,s.apply(a,o))};t||(t=setTimeout(n,e))}},o=function(s){"function"==typeof jQuery&&s instanceof jQuery&&(s=s[0]);var e=s.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},a=function(e){var t=s(e).offset().top,o=s(e).offset().top+s(e).outerHeight(),a=s(window).scrollTop()+s(window).innerHeight(),i=s(window).scrollTop();return!!(a>t)&&!!(i<o)};e.add_event=function(s,t){e.events||(e.events={}),e.events[s]=t},e.trigger=function(s,t){e.events&&e.events[s]&&e.events[s](t)},e.window=function(t,o,a,i){var d,b=s(".essb_"+a),f=s(b).attr("data-essb-postid")||"",p=s(b).attr("data-essb-position")||"",c="essb_share_window"+(1024>=s(window).width())+"-"+Date.now().toString(),h=screen.width/2-Number("twitter"==o?"500":"800")/2,m=screen.height/2-Number("twitter"==o?"300":"500")/2;if("undefined"!=typeof essbShareWindowURLFilter&&(t=essbShareWindowURLFilter(o,t,f,p)),i||(d=window.open(t,c,"height=500,width="+("twitter"==o?"500":"800")+",resizable=1,scrollbars=yes,top="+m+",left="+h)),"undefined"!=typeof essb_settings&&(essb_settings.essb3_stats&&e.handleInternalStats(o,f,a),essb_settings.essb3_ga&&l(o,t,p),essb_settings.essb3_ga_ntg&&"undefined"!=typeof gtag&&gtag("event","social share",{event_category:"NTG social",event_label:o,non_interaction:!1})),"undefined"!=typeof essb_settings&&void 0===essb_settings.stop_postcount&&n(o,f),"undefined"!=typeof essb_abtesting_logger&&essb_abtesting_logger(o,f,a),"undefined"!=typeof essb_conversion_tracking&&essb_conversion_tracking(o,f,a),("pinpro"==o||"pinterest"==o)&&document.querySelector(".essb-pinterest-follow-box-container")){var u=document.querySelector(".essb-pinterest-follow-box-container").getAttribute("data-trigger")||"",$=!0;"pinpro"==u&&"pinpro"!=o&&($=!1),"content"==u&&"pinterest"!=o&&($=!1),$&&void 0!==window.essbDisplayPinterestFollowBox&&window.essbDisplayPinterestFollowBox()}if(!i)var v=window.setInterval(function(){!1!==d.closed&&(window.clearInterval(v),r(o,f),"booster"==p&&"undefined"!=typeof essb_booster_close_from_action&&essb_booster_close_from_action())},200)},e.share_window=function(s,t,o){var a=screen.width/2-Number("800")/2,i=screen.height/2-Number("500")/2;wnd=window.open(s,"essb_share_window","height=500,width=800,resizable=1,scrollbars=yes,top="+i+",left="+a),"undefined"!=typeof essb_settings&&(essb_settings.essb3_stats&&e.handleLogInternalStats(o,essb_settings.post_id||"",t),essb_settings.essb3_ga&&l(o,s,t),essb_settings.essb3_ga_ntg&&gtag&&gtag("event","social share",{event_category:"NTG social",event_label:o,non_interaction:!1}))},e.fbmessenger=function(t,o,a){var i=1024>=s(window).width(),n="";return n=i?"fb-messenger://share/?link="+o:"https://www.facebook.com/dialog/send?app_id="+t+"&link="+o+"&redirect_uri=https://facebook.com",i?(window.open(n,"_self"),e.tracking_only("","messenger",a,!0)):e.window(n,"messenger",a),!1},e.whatsapp=function(t,o){var a=1024>=s(window).width(),i="";return i=a?"whatsapp://send?text="+t:"https://web.whatsapp.com/send?text="+t,a?(window.open(i,"_self"),e.tracking_only("","whatsapp",o,!0)):e.window(i,"whatsapp",o),!1},e.sms=function(s,t){var o=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;return window.open("sms:"+(o?"&":"?")+"body="+s,"_self"),e.tracking_only("","sms",t,!0),!1},e.tracking_only=function(t,o,a,i){""==t&&(t=document.URL),e.window(t,o,a,!0);var n=s(".essb_"+a),l=s(n).attr("data-essb-position")||"";i&&setTimeout(function(){var e=s(".essb_"+a).attr("data-essb-postid")||"";r(o,e),"booster"==l&&"undefined"!=typeof essb_booster_close_from_action&&essb_booster_close_from_action()},1500)},e.pinterest_picker=function(s){e.tracking_only("","pinterest",s);var t=document.createElement("script");t.setAttribute("type","text/javascript"),t.setAttribute("charset","UTF-8"),t.setAttribute("src","//assets.pinterest.com/js/pinmarklet.js?r="+99999999*Math.random()),document.body.appendChild(t)},e.print=function(s){e.tracking_only("","print",s),window.print()},e.setCookie=function(s,e,t){var o=new Date;o.setTime(o.getTime()+864e5*t);var a="expires="+o.toGMTString();document.cookie=s+"="+e+"; "+a+"; path=/"},e.getCookie=function(s){for(var e=s+"=",t=document.cookie.split(";"),o=0;o<t.length;o++){var a=t[o].trim();if(0==a.indexOf(e))return a.substring(e.length,a.length)}return""},e.loveThis=function(t){if(console.log(window.essb_love_you_message_thanks),void 0===o)var o="";if(void 0===a)var a="";if(void 0!==window.essb_love_you_message_thanks&&(a=window.essb_love_you_message_thanks),void 0!==window.essb_love_you_message_loved&&(o=window.essb_love_you_message_loved),e.clickedLoveThis){e.loveDisableLoved||alert(o||"You already love this today");return}var i=s(".essb_"+t);if(i.length){var n=s(i).attr("data-essb-postid")||"";if(e.getCookie("essb_love_"+n)){e.loveDisableLoved||alert(o||"You already love this today");return}"undefined"!=typeof essb_settings&&s.post(essb_settings.ajax_url,{action:"essb_love_action",post_id:n,service:"love",nonce:essb_settings.essb3_nonce},function(s){s&&!e.loveDisableThanks&&alert(a||"Thank you for loving this")},"json"),e.tracking_only("","love",t,!0)}},e.toggle_more=function(t){if(e.is_morebutton_clicked){e.toggle_less(t);return}s(".essb_"+t+" .essb_after_more").essb_toggle_more();var o=s(".essb_"+t).find(".essb_link_more");void 0!==o&&(o.hide(),o.addClass("essb_hide_more_sidebar")),void 0!==(o=s(".essb_"+t).find(".essb_link_more_dots"))&&(o.hide(),o.addClass("essb_hide_more_sidebar")),e.is_morebutton_clicked=!0},e.toggle_less=function(t){e.is_morebutton_clicked=!1,s(".essb_"+t+" .essb_before_less").essb_toggle_less();var o=s(".essb_"+t).find(".essb_link_more");void 0!==o&&(o.show(),o.removeClass("essb_hide_more_sidebar")),void 0!==(o=s(".essb_"+t).find(".essb_link_more_dots"))&&(o.show(),o.removeClass("essb_hide_more_sidebar"))},e.toggle_more_popup=function(s){"undefined"!=typeof essb_open_morepopup_window&&essb_open_morepopup_window(s)},e.toggle_less_popup=function(s){"undefined"!=typeof essb_close_morepopup_window&&essb_close_morepopup_window(s)},e.subscribe_popup_close=function(e){s(".essb-subscribe-form-"+e).fadeOut(400),s(".essb-subscribe-form-overlay-"+e).fadeOut(400)},e.sharebutton=function(e){if(s(".essb-windowcs-"+e).length){var t=s(window).width(),o=s(window).height(),a=s(".essb-windowcs-"+e).data("width"),i=s(".essb-windowcs-"+e).data("height"),n=!1;(Number(a||0)>0||Number(i||0)>0)&&(Number(a)>Number(t)&&(a=t),Number(i)>Number(o)&&(i=o),Number(a)>0&&s(".essb-windowcs-"+e).css({width:a+"px"}),Number(i)>0&&s(".essb-windowcs-"+e).css({height:i+"px"}),s(".essb-windowcs-"+e).center(),n=!0),s(".essb-windowcs-"+e).fadeIn(200),n?s(".essb-windowcs-"+e+" .inner-content").css({position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:"90%"}):s(".essb-windowcs-"+e+" .inner-content").center()}},e.sharebutton_close=function(e){s(".essb-windowcs-"+e).length&&s(".essb-windowcs-"+e).fadeOut(200)},e.toggle_subscribe=function(t){if(s(".essb-subscribe-form-"+t).length){if(e.essb_subscribe_opened||(e.essb_subscribe_opened={}),"1"!=(s(".essb-subscribe-form-"+t).attr("data-popup")||""))s(".essb-subscribe-form-"+t).hasClass("essb-subscribe-opened")?(s(".essb-subscribe-form-"+t).slideUp("fast"),s(".essb-subscribe-form-"+t).removeClass("essb-subscribe-opened")):(s(".essb-subscribe-form-"+t).slideDown("fast"),s(".essb-subscribe-form-"+t).addClass("essb-subscribe-opened"),e.essb_subscribe_opened[t]||(e.essb_subscribe_opened[t]=t,e.tracking_only("","subscribe",t,!0)));else{var o=s(window).width();s("document").height();var a=600;o<a&&(a=o-40),s(".essb-subscribe-form-"+t).css({width:a+"px"}),s(".essb-subscribe-form-"+t).center(),s(".essb-subscribe-form-"+t).fadeIn(400),s(".essb-subscribe-form-overlay-"+t).fadeIn(200)}}},e.is_after_comment=function(){return window.location.href.indexOf("#comment")>-1},e.flyin_close=function(){s(".essb-flyin").fadeOut(200)},e.popup_close=function(){s(".essb-popup").fadeOut(200),s(".essb-popup-shadow").fadeOut(400)},e.copy_link_direct=function(s){essb_copy_link_direct(s)},e.copy_link=function(s,t){if(essb_settings&&essb_settings.copybutton_direct){let o=window.location.href;if(s&&document.querySelector(".essb_"+s)){let a=document.querySelector(".essb_"+s).getAttribute("data-essb-url")||"";""!=a&&(o=a)}t&&""!=t&&(o=t),e.copy_link_direct(o);return}essb_open_copy_link_window(s,t)},e.mobile_sharebar_open=function(){var t=s(".essb-mobile-sharebar-window");if(t.length){var o=s(".essb-mobile-sharebar");if(o.length||(o=s(".essb-mobile-sharepoint")),o.length){if(e.is_displayed_sharebar){e.mobile_sharebar_close();return}var a=s(o).outerHeight(),i=s(window).height(),n=s(window).width();i-=a,s("#wpadminbar").length&&s("#wpadminbar").hide();var r=s(".essb-mobile-sharebar-window-content");r.length&&r.css({height:i-60+"px"}),s(t).css({width:n+"px",height:i+"px"}),s(t).fadeIn(400),e.is_displayed_sharebar=!0}}},e.mobile_sharebar_close=function(){var t=s(".essb-mobile-sharebar-window");t.length&&(s(t).fadeOut(400),e.is_displayed_sharebar=!1)},e.responsiveEventsCanRun=function(e){var t=s(e).hasClass("essb_mobile_hidden"),o=s(e).hasClass("essb_desktop_hidden"),a=s(e).hasClass("essb_tablet_hidden"),i=s(window).width(),n=!0;return i<=768&&t&&(n=!1),i>768&&i<=1100&&a&&(n=!1),i>1100&&o&&(n=!1),s(e).length||(n=!1),n},e.handleInternalStats=function(s,t,o){let a=document.querySelector(".essb_"+o);if(a){let i=a.getAttribute("data-essb-position")||"",n=a.getAttribute("data-essb-template")||"",r=a.getAttribute("data-essb-button-style")||"",l=a.classList.contains("essb_counters");if(a.classList.contains("essb_nostats"))return;e.logInternalStats(s,t,i,n,r,l)}},e.handleLogInternalStats=function(s,t,o){e.logInternalStats(s,t,o,o,o,!1)},e.logInternalStats=function(s,e,t,o,a,i){let n=!1;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(n=!0),"undefined"!=typeof essb_settings?fetch(essb_settings.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"*/*"},body:new URLSearchParams({action:"essb_stat_log",post_id:e,service:s,template:o,mobile:n,position:t,button:a,counter:i,nonce:essb_settings.essb3_nonce})}).then(s=>s.text()).then(s=>console.log(s)):console.log("[error] essb.logInternalStats: Missing configuration data")},window.essb=e;var i=function(s){return s=parseInt(s),(isNaN(s)||!isFinite(s))&&(s=0),s},n=function(e,t){"undefined"!=typeof essb_settings&&(t=String(t),s.post(essb_settings.ajax_url,{action:"essb_self_postcount",post_id:t,service:e,nonce:essb_settings.essb3_nonce},function(s){},"json"))},r=function(t,o){if(essb_settings&&essb_settings.aftershare_networks){if(-1==(""!=essb_settings.aftershare_networks?essb_settings.aftershare_networks.split(","):[]).indexOf(t))return}else if("subscribe"==t||"comments"==t||"email"==t||"mail"==t)return;if("subscribe"!=t&&"comments"!=t&&"email"!=t&&"mail"!=t&&("function"==typeof b&&b(),"function"==typeof essb_acs_code&&essb_acs_code(t,o),s(".essb-aftershare-subscribe-form").length)){var a=s(".essb-aftershare-subscribe-form").data("salt")||"";""!=a&&e.toggle_subscribe(a)}},l=function(s,e,t){var o=essb_settings.essb3_ga_mode;"ga"in window&&void 0!==window.ga&&"function"==typeof window.ga&&("extended"==o?ga("send","event","social",s+" "+t,e):ga("send","event","social",s,e)),"layers"==o&&"undefined"!=typeof dataLayer&&dataLayer.push({service:s,position:t,url:e,event:"social"})};window.essb_open_mailform=function(t){if(e.essb_mailform_opened){d(t);return}var o=s(".essb_"+t);if(o.length){var a=s(o).attr("data-essb-postid")||"";s("#essb_mail_instance").val(t),s("#essb_mail_post").val(a);var i=s(window).width(),n=s(window).height(),r=400;i<r&&(r=i-30);var l=".essb_mailform";s(l).css({width:r+"px"}),s(l).outerHeight()>n-30&&s(l).css({height:n-20+"px"}),s("#essb_mailform_from").val(""),s("#essb_mailform_to").val(""),s("#essb_mailform_from_name").val(""),s("#essb_mailform_c").length&&s("#essb_mailform_c").val(""),"undefined"!=typeof essb_recaptcha&&essb_recaptcha&&essb_recaptcha.recaptchaSitekey&&grecaptcha.render("essb-modal-recaptcha",{sitekey:essb_recaptcha.recaptchaSitekey}),s(l).center(),s(l).slideDown(200),s(".essb_mailform_shadow").fadeIn(200),s("#essb_mailform_status_message").html(""),e.essb_mailform_opened=!0,e.tracking_only("","mail",t)}};var d=window.essb_close_mailform=function(){s(".essb_mailform").fadeOut(200),s(".essb_mailform_shadow").fadeOut(200),s("#essb_mailform_status_message").html(""),e.essb_mailform_opened=!1};window.essb_mailform_send=function(){var e=function(e){s(e).css("background-color","#ffd8d8"),setTimeout(function(){s(e).css("background-color","#fff")},5e3)};s("#essb_mailform_status_message").html(""),s(".essb_mailform_content_buttons").css("visibility","visible");var t=s("#essb_mailform_from").val(),o=s("#essb_mailform_from_name").val(),a=s("#essb_mailform_to").val(),i=!!s("#essb_mailform_c").length,n=s(".essb_mailform").attr("data-error")||"",r=s(".essb_mailform").attr("data-sending")||"",l=i?s("#essb_mailform_c").val():"",b=s("#g-recaptcha-response").val(),f=s("#essb_mail_affiliate_id").length?s("#essb_mail_affiliate_id").val():"";if(""==o||""==t||""==a||""==l&&i){""==o&&e("#essb_mailform_from_name"),""==t&&e("#essb_mailform_from"),""==a&&e("#essb_mailform_to"),s("#essb_mailform_status_message").html('<span style="color: #d80001;">'+n+"</span>");return}var p=s("#essb_mail_salt").val(),c=s("#essb_mail_post").val();"undefined"!=typeof essb_settings&&(s(".essb_mailform_content_buttons").css("visibility","hidden"),s("#essb_mailform_status_message").html(r+" "+a),s.post(essb_settings.ajax_url,{action:"essb_mail_action",post_id:c,from:t,from_name:o,to:a,c:l,cu:"",salt:p,affid:f,recapcha:b,nonce:essb_settings.essb3_nonce},function(t){t&&(s(".essb_mailform_content_buttons").css("visibility","visible"),t.message&&s("#essb_mailform_status_message").html('<span style="color: #d80001;">'+t.message+"</span>"),"1"==t.code&&(d(),alert(t.message)),t.code&&("101"==t.code&&s("#essb_mailform_c").length&&e("#essb_mailform_c"),"102"==t.code&&s("#essb_mailform_to").length&&e("#essb_mailform_to"),"104"==t.code&&s("#essb_mailform_from").length&&e("#essb_mailform_from")))},"json"))};var b=window.essbasc_popup_show=function(){if(s(".essbasc-popup").length&&!e.getCookie("essb_aftershare")){var t="undefined"!=typeof essbasc_cookie_live?essbasc_cookie_live:7;0==parseInt(t)&&(t=7);var o=s(window).width(),a=800,i=s(".essbasc-popup").attr("data-popup-width")||"",n=s(".essbasc-popup").attr("data-single")||"";Number(i)&&Number(i)>0&&(a=i),o<a&&(a=o-60),s(".essbasc-popup").css({width:a+"px"}),s(".essbasc-popup").center(),s(".essbasc-popup").fadeIn(300),s(".essbasc-popup-shadow").fadeIn(100),"true"==n&&e.setCookie("essb_aftershare","yes",t)}};window.essbasc_popup_close=function(){s(".essbasc-popup").fadeOut(200),s(".essbasc-popup-shadow").fadeOut(100)},s(document).ready(function(){var n=!1,r=90,l=!1,d=0,b=!1,f=function(){var e=s(window).scrollTop(),t=s(document).height()-s(window).height(),o=e/t*100,a=!0;l&&!n&&o<d&&(a=!1),n&&!l&&o>r&&(a=!1),l&&n&&(o>r||o<d)&&(a=!1),a?(s(".essb-mobile-sharebottom").hasClass("essb-mobile-break")&&(s(".essb-mobile-sharebottom").removeClass("essb-mobile-break"),s(".essb-mobile-sharebottom").fadeIn(400)),s(".essb-adholder-bottom").length&&b&&s(".essb-adholder-bottom").hasClass("essb-mobile-break")&&(s(".essb-adholder-bottom").removeClass("essb-mobile-break"),s(".essb-adholder-bottom").fadeIn(400))):(s(".essb-mobile-sharebottom").hasClass("essb-mobile-break")||(s(".essb-mobile-sharebottom").addClass("essb-mobile-break"),s(".essb-mobile-sharebottom").fadeOut(400)),s(".essb-adholder-bottom").length&&b&&!s(".essb-adholder-bottom").hasClass("essb-mobile-break")&&(s(".essb-adholder-bottom").addClass("essb-mobile-break"),s(".essb-adholder-bottom").fadeOut(400)))};if(s(".essb-mobile-sharebottom").length){var p=s(".essb-mobile-sharebottom").attr("data-hideend"),c=s(".essb-mobile-sharebottom").attr("data-hideend-percent"),h=s(".essb-mobile-sharebottom").attr("data-show-percent")||"",m=s(".essb-mobile-sharebottom").attr("data-responsive")||"";Number(h)&&(l=!0,d=Number(h)),"true"==p&&(n=!0);var u=!1;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(u=!0),s(".essb-adholder-bottom").length&&"true"==($adbar_connected=s(".essb-adholder-bottom").attr("data-connected")||"")&&(b=!0),(n||l)&&(parseInt(c)>0&&(r=parseInt(c)),(""==m||"true"==m&&u)&&s(window).on("scroll",t(f,1)))}if(s(".essb_displayed_float").length){var $=s(".essb_displayed_float").offset().top-parseFloat(s(".essb_displayed_float").css("marginTop").replace(/auto/,0)),v="",g=s(".essb_displayed_float").data("float-hide")||"",y=s(".essb_displayed_float").data("float-top")||"",w=!1;""!=g&&Number(g)>0&&(g=parseInt(g),w=!0);var C=!1;""!=y&&Number(y)>0&&(y=parseInt(y),C=!0),e.responsiveEventsCanRun(s(".essb_displayed_float"))&&s(window).on("scroll",t(function e(){var t=s(window).scrollTop();C&&(t-=y);var o=s(document).height()-s(window).height(),a=t/o*100;if(t>=$){if(""==v){var i=s(".essb_displayed_float").width();v=i,s(".essb_displayed_float").width(i)}s(".essb_displayed_float").addClass("essb_fixed")}else s(".essb_displayed_float").removeClass("essb_fixed"),""!=v&&s(".essb_displayed_float").width(v);if(w){if(a>=g&&!s(".essb_displayed_float").hasClass("hidden-float")){s(".essb_displayed_float").addClass("hidden-float"),s(".essb_displayed_float").fadeOut(100);return}if(a<g&&s(".essb_displayed_float").hasClass("hidden-float")){s(".essb_displayed_float").removeClass("hidden-float"),s(".essb_displayed_float").fadeIn(100);return}}},1))}if(s(".essb_sidebar_transition").length&&s(".essb_sidebar_transition").each(function(){e.responsiveEventsCanRun(s(this))&&(s(this).hasClass("essb_sidebar_transition_slide")&&s(this).toggleClass("essb_sidebar_transition_slide"),s(this).hasClass("essb_sidebar_transition_fade")&&s(this).toggleClass("essb_sidebar_transition_fade"))}),s(".essb_sidebar_location_middle").length){var _=function(){var e=s(".essb_sidebar_location_middle").outerHeight(),t=s(window).height(),o=0;o=e>t?0:Math.round((t-e)/2),s(".essb_sidebar_location_middle").css({top:o+"px",opacity:"1"})};_(),s(window).on("resize",t(_,1))}s(".essb_link_sidebar-close a").each(function(){s(this).on("click",function(e){e.preventDefault();var t=s(this).parent().parent().get(0);s(t).length&&s(t).find(".essb_item").each(function(){s(this).hasClass("essb_link_sidebar-close")?s(this).toggleClass("essb-sidebar-closed-clicked"):s(this).toggleClass("essb-sidebar-closed-item")})})});var k=function(){var e,t=s(window).scrollTop(),o=s(document).height()-s(window).height(),n=t/o*100;if(s(".essb_displayed_sidebar").length&&(e=s(".essb_displayed_sidebar")),s(".essb_displayed_sidebar_right").length&&(e=s(".essb_displayed_sidebar_right")),e&&void 0!==e){var r=i(s(e).data("sidebar-disappear-pos")||""),l=i(s(e).data("sidebar-appear-pos")||""),d=s(e).data("sidebar-appear-unit")||"",b=s(e).data("sidebar-contenthidden")||"";"px"==d&&(n=t);var f=!0;if((l>0||r>0)&&(f=!1,l&&n>=l&&(f=!0),r&&n<=r&&(f=!0)),"yes"==b&&(s(".essb_displayed_top").length||s(".essb_displayed_bottom").length)&&(s(".essb_displayed_top").length&&a(s(".essb_displayed_top"))||s(".essb_displayed_bottom").length&&a(s(".essb_displayed_bottom"))?e.fadeOut(100):f&&e.fadeIn(100)),l>0&&0==r){if(n>=l&&!e.hasClass("active-sidebar")){e.fadeIn(100),e.addClass("active-sidebar");return}if(n<l&&e.hasClass("active-sidebar")){e.fadeOut(100),e.removeClass("active-sidebar");return}}if(r>0&&0==l){if(n>=r&&!e.hasClass("hidden-sidebar")){e.fadeOut(100),e.addClass("hidden-sidebar");return}if(n<r&&e.hasClass("hidden-sidebar")){e.fadeIn(100),e.removeClass("hidden-sidebar");return}}if(l>0&&r>0){if(n>=l&&n<r&&!e.hasClass("active-sidebar")){e.fadeIn(100),e.addClass("active-sidebar");return}if((n<l||n>=r)&&e.hasClass("active-sidebar")){e.fadeOut(100),e.removeClass("active-sidebar");return}}}};if(e.responsiveEventsCanRun(s(".essb_displayed_sidebar"))){var x=s(".essb_displayed_sidebar").data("sidebar-contenthidden")||"",T=s(".essb_displayed_sidebar").data("sidebar-appear-pos")||"",I=s(".essb_displayed_sidebar").data("sidebar-disappear-pos")||"";(""!=T||""!=I||"yes"==x)&&s(window).width()>800&&(s(window).on("scroll",t(k,1)),k())}if(s(".essb_displayed_postfloat").length){var O=s(".essb_displayed_postfloat").offset().top-parseFloat(s(".essb_displayed_postfloat").css("marginTop").replace(/auto/,0)),S="true"==(s(".essb_displayed_postfloat").data("postfloat-stay")||"").toString(),A="true"==(s(".essb_displayed_postfloat").data("postfloat-fixbottom")||"").toString(),E=s(".essb_displayed_postfloat").data("postfloat-top")||"",P=s(".essb_displayed_postfloat").data("postfloat-selectors")||"",j=[],D=s(".essb_displayed_postfloat").data("postfloat-percent")||"";if(Number(D)&&0!=Number(D)||(D="",s(".essb_displayed_postfloat").attr("data-postfloat-percent","")),""!=P){j=P.split(",");for(var R=0;R<j.length;R++)s(j[R]).length&&s(j[R]).addClass("essb-postfloat-monitor")}setTimeout(function(){s(".essb_displayed_postfloat").css({transition:"all 0.3s linear"}),""==D&&s(".essb_displayed_postfloat").css({opacity:"1"})},100),""!=E&&Number(E)&&!isNaN(E)&&(O-=parseInt(E)),e.responsiveEventsCanRun(s(".essb_displayed_postfloat"))&&s(window).on("scroll",t(function e(){var t=s(this).scrollTop(),o=0,i=s(".essb_displayed_postfloat").data("postfloat-percent")||"",n=s(".essb_displayed_postfloat").data("postfloat-percent-m")||"";if(s(".essb_break_scroll").length){o=s(".essb_break_scroll").position().top;var r=s(".essb_displayed_postfloat").data("postfloat-bottom")||"";r&&""!=r&&0!=Number(r)&&(o=Number(o)-Number(r))}if(""!=i){var l=s(document).height()-s(window).height();("px"==n?t>=Number(i):t/l*100>=Number(i))?(s(".essb_displayed_postfloat").css({opacity:"1"}),s(".essb_displayed_postfloat").css({transform:"translateY(0)"})):(s(".essb_displayed_postfloat").css({opacity:"0"}),s(".essb_displayed_postfloat").css({transform:"translateY(50px)"}))}if(t>=O){s(".essb_displayed_postfloat").addClass("essb_postfloat_fixed");var d=s(".essb_displayed_postfloat").offset(),b=s(".essb_displayed_postfloat").outerHeight(),f=parseInt(d.top)+parseInt(b);if(S){var p=!1;s(".essb-postfloat-monitor").each(function(){a(s(this))&&(p=!0)}),p?s(".essb_displayed_postfloat").hasClass("essb_postfloat_breakscroll")||s(".essb_displayed_postfloat").addClass("essb_postfloat_breakscroll"):(s(".essb_displayed_postfloat").hasClass("essb_postfloat_breakscroll")&&s(".essb_displayed_postfloat").removeClass("essb_postfloat_breakscroll"),A&&(f>o?s(".essb_displayed_postfloat").hasClass("essb_postfloat_absolute")||(s(".essb_displayed_postfloat").removeClass("essb_postfloat_fixed"),s(".essb_displayed_postfloat").attr("data-unfixed",f),s(".essb_displayed_postfloat").addClass("essb_postfloat_absolute"),s(".essb_displayed_postfloat").css({position:"absolute",top:s(".essb_break_scroll").position().top-b-100+"px"})):s(".essb_displayed_postfloat").hasClass("essb_postfloat_absolute")&&(s(".essb_displayed_postfloat").removeClass("essb_postfloat_absolute"),s(".essb_displayed_postfloat").removeAttr("data-unfixed"),s(".essb_displayed_postfloat").css({position:"",top:""}),s(".essb_displayed_postfloat").addClass("essb_postfloat_fixed"))))}else f>o?s(".essb_displayed_postfloat").hasClass("essb_postfloat_breakscroll")||s(".essb_displayed_postfloat").addClass("essb_postfloat_breakscroll"):s(".essb_displayed_postfloat").hasClass("essb_postfloat_breakscroll")&&s(".essb_displayed_postfloat").removeClass("essb_postfloat_breakscroll")}else s(".essb_displayed_postfloat").removeClass("essb_postfloat_fixed")},1))}if(e.responsiveEventsCanRun(s(".essb_displayed_postfloat"))&&""!=(essb_settings.postfloat_percent||"")&&s(".essb_displayed_postfloat").length&&s(window).on("scroll",t(function e(){var t,o=s(window).scrollTop(),a=s(document).height()-s(window).height(),n=o/a*100;if(s(".essb_displayed_postfloat").length&&(t=s(".essb_displayed_postfloat")),t&&void 0!==t){var r=i(s(t).data("postfloat-percent")||"");if(r>0){if(n>=r&&!t.hasClass("essb_active_postfloat")){t.addClass("essb_active_postfloat");return}if(n<r&&t.hasClass("essb_active_postfloat")){t.removeClass("essb_active_postfloat");return}}}},1)),s(".essb_counters .essb_animated").each(function(){var e=s(this).attr("data-cnt")||"",t=s(this).attr("data-cnt-short")||"";s(this).hasClass("essb_counter_hidden")||s(this).countTo({from:1,to:e,speed:500,onComplete:function(e){s(this).html(t)}})}),s(".essb-followme").length){s(".essb-followme .essb_links").length&&s(".essb-followme .essb_links").removeClass("essb_displayed_followme");var H=s(".essb-followme").attr("data-position")||"",L=s(".essb-followme").attr("data-top")||"",B=s(".essb-followme").attr("data-background")||"",M=s(".essb-followme").attr("data-full")||"",U=s(".essb-followme").attr("data-avoid-left")||"",q=s(".essb-followme").attr("data-hide")||"";if("top"==H&&""!=L&&s(".essb-followme").css({top:L+"px"}),""!=B&&s(".essb-followme").css({"background-color":B}),"1"!=M&&"left"!=H){var F=s(".essb_displayed_followme").width(),Y=s(".essb_displayed_followme").position().left;"true"!=U?s(".essb-followme .essb_links").attr("style","width:"+F+"px; margin-left:"+Y+"px !important;"):s(".essb-followme .essb_links").attr("style","width:"+F+"px;")}function z(){var e=!1,t=s(".essb-followme").attr("data-showafter")||"";""==t||Number(t)||(t=""),s(".essb_displayed_followme").each(function(){o(s(this))&&(e=!0)});var a=s(window).scrollTop(),i=s(document).height()-s(window).height();Number(t)>0&&Number(t)>a&&(e=!0),e?s(".essb-followme").hasClass("active")&&s(".essb-followme").removeClass("active"):s(".essb-followme").hasClass("active")||s(".essb-followme").addClass("active"),""!=q&&(a/i*100>95?s(".essb-followme").hasClass("essb-followme-hiddenend")||(s(".essb-followme").addClass("essb-followme-hiddenend"),s(".essb-followme").slideUp(100)):s(".essb-followme").hasClass("essb-followme-hiddenend")&&(s(".essb-followme").removeClass("essb-followme-hiddenend"),s(".essb-followme").slideDown(100)))}s(window).on("scroll",t(z,1)),z()}if(s(".essb-point").length){var G=!1,W="",N=function(){var e=s(window).scrollTop()+s(window).height()-200,t=s(".essb_break_scroll").offset().top-parseFloat(s(".essb_break_scroll").css("marginTop").replace(/auto/,0));"end"==W&&e>=t&&!G&&!s(".essb-point-share-buttons").hasClass("essb-point-share-buttons-active")&&(s(".essb-point-share-buttons").addClass("essb-point-share-buttons-active"),"simple"!=K&&s(".essb-point").toggleClass("essb-point-open"),G=!0,Q>0&&setTimeout(function(){s(".essb-point-share-buttons").removeClass("essb-point-share-buttons-active"),"simple"!=K&&s(".essb-point").removeClass("essb-point-open")},1e3*Q)),"middle"==W&&100*e/t>49&&!G&&!s(".essb-point-share-buttons").hasClass("essb-point-share-buttons-active")&&(s(".essb-point-share-buttons").addClass("essb-point-share-buttons-active"),"simple"!=K&&s(".essb-point").toggleClass("essb-point-open"),G=!0,Q>0&&setTimeout(function(){s(".essb-point-share-buttons").removeClass("essb-point-share-buttons-active"),"simple"!=K&&s(".essb-point").removeClass("essb-point-open")},1e3*Q))},J=s(".essb-point").attr("data-trigger-scroll")||"",K=s(".essb-point").attr("data-point-type")||"simple",Q=Number(s(".essb-point").attr("data-autoclose")||0)||0;e.responsiveEventsCanRun(s(".essb-point"))&&("end"==J||"middle"==J)&&(W=J,s(window).on("scroll",N)),s(".essb-point").on("click",function(){s(".essb-point-share-buttons").toggleClass("essb-point-share-buttons-active"),"simple"!=K&&s(".essb-point").toggleClass("essb-point-open"),Q>0&&setTimeout(function(){s(".essb-point-share-buttons").removeClass("essb-point-share-buttons-active"),"simple"!=K&&s(".essb-point").removeClass("essb-point-open")},1e3*Q)})}if(s(".essb-cornerbar").length){s(".essb-cornerbar .essb_links").length&&s(".essb-cornerbar .essb_links").removeClass("essb_displayed_cornerbar");var V=s(".essb-cornerbar").attr("data-show")||"",X=s(".essb-cornerbar").attr("data-hide")||"";function Z(){var e=s(window).scrollTop(),t=s(document).height()-s(window).height(),a=e/t*100;if(("onscroll"==V||"onscroll50"==V)&&(a>("onscroll"==V?5:45)?s(".essb-cornerbar").hasClass("essb-cornerbar-hidden")&&s(".essb-cornerbar").removeClass("essb-cornerbar-hidden"):s(".essb-cornerbar").hasClass("essb-cornerbar-hidden")||s(".essb-cornerbar").addClass("essb-cornerbar-hidden")),"content"==V){var i=!1;s(".essb_displayed_top").each(function(){o(s(this))&&(i=!0)}),s(".essb_displayed_bottom").each(function(){o(s(this))&&(i=!0)}),i?s(".essb-cornerbar").hasClass("essb-cornerbar-hidden")||s(".essb-cornerbar").addClass("essb-cornerbar-hidden"):s(".essb-cornerbar").hasClass("essb-cornerbar-hidden")&&s(".essb-cornerbar").removeClass("essb-cornerbar-hidden")}""!=X&&(a>90?s(".essb-cornerbar").hasClass("essb-cornerbar-hiddenend")||s(".essb-cornerbar").addClass("essb-cornerbar-hiddenend"):s(".essb-cornerbar").hasClass("essb-cornerbar-hiddenend")&&s(".essb-cornerbar").removeClass("essb-cornerbar-hiddenend"))}e.responsiveEventsCanRun(s(".essb-cornerbar"))&&((""!=X||""!=V)&&s(window).on("scroll",t(Z,1)),"content"==V&&Z())}s(".essbfc-container-sidebar").length&&s(".essbfc-container-sidebar").each(function(){s(this).hasClass("essbfc-container-sidebar-transition")&&s(this).removeClass("essbfc-container-sidebar-transition")})})}(jQuery);
(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.KadenceAccordion=b()})(this,function(){"use strict";function a(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function b(a,b){for(let c=0;c<b.length;c++){const d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}function c(a,c,d){return c&&b(a.prototype,c),d&&b(a,d),a}function d(){return d=Object.assign||function(a){for(let b=1;b<arguments.length;b++){const c=arguments[b];for(const b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])}return a},d.apply(this,arguments)}function e(a){return f(a)||g(a)||h()}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function g(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance")}Array.from||(Array.from=function(){const a=Object.prototype.toString,b=function(b){return"function"==typeof b||"[object Function]"===a.call(b)},c=function(a){const b=+a;return isNaN(b)?0:0!=b&&isFinite(b)?(0<b?1:-1)*Math.floor(Math.abs(b)):b},d=Math.pow(2,53)-1,e=function(a){const b=c(a);return Math.min(Math.max(b,0),d)};return function(a){const c=this,d=Object(a);if(null==a)throw new TypeError("Array.from requires an array-like object - not null or undefined");const f=1<arguments.length?arguments[1]:void 0;let g;if("undefined"!=typeof f){if(!b(f))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(g=arguments[2])}const h=e(d.length),i=b(c)?Object(new c(h)):Array(h);let j,l=0;for(;l<h;)j=d[l],i[l]=f?"undefined"==typeof g?f(j,l):f.call(g,j,l):j,l+=1;return i.length=h,i}}()),function(a){const b=a.body||a.documentElement,c=b.style;let d="",e="";""==c.WebkitAnimation&&(d="-webkit-"),""==c.MozAnimation&&(d="-moz-"),""==c.OAnimation&&(d="-o-"),""==c.WebkitTransition&&(e="-webkit-"),""==c.MozTransition&&(e="-moz-"),""==c.OTransition&&(e="-o-"),Object.defineProperty(Object.prototype,"onCSSAnimationEnd",{value:function(a){const b=function c(b){a(),b.target.removeEventListener(b.type,c)};return this.addEventListener("webkitAnimationEnd",b),this.addEventListener("mozAnimationEnd",b),this.addEventListener("oAnimationEnd",b),this.addEventListener("oanimationend",b),this.addEventListener("animationend",b),(""!=d||"animation"in c)&&"0s"!=getComputedStyle(this)[d+"animation-duration"]||a(),this},enumerable:!1,writable:!0}),Object.defineProperty(Object.prototype,"onCSSTransitionEnd",{value:function(a){const b=function c(b){a(),b.target.removeEventListener(b.type,c)};return this.addEventListener("webkitTransitionEnd",b),this.addEventListener("mozTransitionEnd",b),this.addEventListener("oTransitionEnd",b),this.addEventListener("transitionend",b),this.addEventListener("transitionend",b),(""!=e||"transition"in c)&&"0s"!=getComputedStyle(this)[e+"transition-duration"]||a(),this},enumerable:!1,writable:!0})}(document,window,0);const i=function(){function b(c,f){const g=this;a(this,b);const h="string"==typeof c?document.querySelector(c):c;if(null==h)return;this.settings=d({},{headerClass:".kt-blocks-accordion-header",panelClass:".kt-accordion-panel",panelInnerClass:".kt-accordion-panel-inner",hiddenClass:"kt-accordion-panel-hidden",activeClass:"kt-accordion-panel-active",get hidenClass(){return this.hiddenClass},initializedClass:"kt-accordion-initialized",get initalisedClass(){return this.initializedClass},headerDataAttr:"data-kt-accordion-header-id",openMultiplePanels:!1,openHeadersOnLoad:[],headerOpenLabel:"",headerCloseLabel:"",roles:!0},f),this.container=h;const i=Array.from(this.container.children),j=[];Array.from(i).forEach(function(a){Array.from(a.children).forEach(function(a){j.push(a)})});const k=j.filter(function(a){return!a.classList.contains(g.settings.panelClass.substr(1))});this.headers=k.reduce(function(b,c){let d,f=Array.from(c.children).filter(function(a){return a.classList.contains(g.settings.headerClass.substr(1))});return!f.length&&c.children[0]&&c.children[0].children&&c.children[0].children.length&&(f=Array.from(c.children[0].children).filter(function(a){return a.classList.contains(g.settings.headerClass.substr(1))})),b=(d=[]).concat.apply(d,e(b).concat([f])),b},[]),this.panels=j.filter(function(a){return a.classList.contains(g.settings.panelClass.substr(1))}),this.toggleEl=void 0===this.settings.toggleEl?this.headers:Array.from(this.container.querySelectorAll(this.settings.toggleEl)),this.states=[].map.call(this.headers,function(){return{state:"closed"}}),this.ids=[].map.call(this.headers,function(){return{id:Math.floor(1e6*Math.random()+1)}}),this.toggling=!1,this.container?this.init():console.log("Something is wrong with you markup...")}return c(b,[{key:"init",value:function(){this._setupAttributes(),this._initalState(),this.calculateAllPanelsHeight(),this._insertDataAttrs(),this._addListeners(),this._finishInitialization()}},{key:"_setRole",value:function(a,b){("boolean"==typeof this.settings.roles&&this.settings.roles||void 0!==this.settings.roles[a]&&!1!==this.settings.roles[a])&&b.setAttribute("role",a)}},{key:"_initalState",value:function(){const a=this.settings.openHeadersOnLoad;this.headers.forEach(function(a){a.setAttribute("aria-expanded",!1)}),a.length&&(this.toggling=!0,this._openHeadersOnLoad(a)),this._renderDom()}},{key:"_insertDataAttrs",value:function(){const a=this;this.headers.forEach(function(b,c){b.setAttribute(a.settings.headerDataAttr,c)})}},{key:"_finishInitialization",value:function(){this.container.classList.add(this.settings.initializedClass),this._setRole("presentation",this.container),this.container.dispatchEvent(new Event("initialized"))}},{key:"_addListeners",value:function(){const a=this;this.headers.forEach(function(b,c){b.addEventListener("click",function(){a.handleClick(b,c)}),b.addEventListener("keydown",function(b){const d=b.which.toString(),e=b.ctrlKey&&d.match(/33|34/);if(d.match(/38|40/)||e){const e=d.match(/34|40/)?1:-1,f=a.headers.length;a.headers[(c+f+e)%f].focus(),b.preventDefault()}else d.match(/35|36/)&&("36"===d?a.headers[0].focus():"35"===d?a.headers[a.headers.length-1].focus():void 0,b.preventDefault())}),b.addEventListener("startOpen",function(){a.handleClick(b,c,!0)})})}},{key:"handleClick",value:function(a,b,c){c||(c=!1);const d=this,e=this.settings.headerClass.substr(1);if(a.classList.contains(e)&&!1===this.toggling)this.toggling=!0,this.setState(b),this._renderDom();else if(c)var f=setInterval(function(){!1===d.toggling&&(d.toggling=!0,d.setState(b),d._renderDom(),clearInterval(f))},50)}},{key:"setState",value:function(a){const b=this,c=this.getState();this.settings.openMultiplePanels||c.filter(function(b,c){c!=a&&(b.state="closed")}),c.filter(function(c,d){if(d==a){const a=b.toggleState(c.state);return c.state=a}})}},{key:"_renderDom",value:function(){const a=this;this.states.filter(function(b,c){"open"===b.state&&a.open(c,!1)}),this.states.filter(function(b,c){"closed"===b.state&&a.close(c,!1)})}},{key:"open",value:function(a){const b=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];b&&this.setState(a),this.togglePanel("open",a)}},{key:"close",value:function(a){const b=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];b&&this.setState(a),this.togglePanel("closed",a)}},{key:"openAll",value:function(){const a=this;this.headers.forEach(function(b,c){a.togglePanel("open",c)})}},{key:"closeAll",value:function(){const a=this;this.headers.forEach(function(b,c){a.togglePanel("closed",c)})}},{key:"togglePanel",value:function(a,b){const c=this;if(void 0!==a&&void 0!==b)if("closed"===a){const a=this.headers[b],d=this.panels[b];if(!d.classList.contains(this.settings.hiddenClass)){d.setAttribute("data-panel-height",d.scrollHeight+"px"),d.style.height=d.scrollHeight+"px",d.offsetHeight,d.style.height="",d.classList.add("kt-panel-is-collapsing"),d.classList.remove(this.settings.activeClass),a.classList.remove(this.settings.activeClass),a.setAttribute("aria-expanded",!1);const b=1e3*parseFloat(getComputedStyle(d).transitionDuration);setTimeout(function(){return d.classList.add(c.settings.hiddenClass),d.classList.remove("kt-panel-is-collapsing"),window.AOS&&"function"==typeof AOS.refresh&&AOS.refresh(),c.toggling=!1},b)}}else if("open"===a){const a=this.headers[b],d=this.panels[b];if(!d.classList.contains(this.settings.activeClass)){d.classList.remove(this.settings.hiddenClass),d.style.height=0,d.offsetHeight,d.classList.add("kt-panel-is-expanding"),d.style.height=d.scrollHeight<parseInt(d.getAttribute("data-panel-height"))?parseInt(d.getAttribute("data-panel-height"))+"px":d.scrollHeight+"px",d.offsetHeight,a.classList.add(this.settings.activeClass),a.setAttribute("aria-expanded",!0),window.dispatchEvent(new Event("resize"));const b=1e3*parseFloat(getComputedStyle(d).transitionDuration);setTimeout(function(){return d.classList.add(c.settings.activeClass),d.style.height="",d.classList.remove("kt-panel-is-expanding"),window.AOS&&"function"==typeof AOS.refresh&&AOS.refresh(),c.toggling=!1},b)}}}},{key:"getState",value:function(){const a=this,b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];if(b.length&&Array.isArray(b)){const c=b.map(function(b){return a.states[b]});return c}return this.states}},{key:"toggleState",value:function(a){if(void 0!==a)return"closed"===a?"open":"closed"}},{key:"_openHeadersOnLoad",value:function(){const a=this,b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];if(b.length&&Array.isArray(b)){const c=b.filter(function(a){return null!=a});c.forEach(function(b){a.setState(b)})}}},{key:"_setupAttributes",value:function(){this._setupHeaders(),this._setupPanels(),this._insertDataAttrs()}},{key:"_setPanelHeight",value:function(){this.calculateAllPanelsHeight()}},{key:"calculatePanelHeight",value:function(a){const b=a.querySelector(this.settings.panelInnerClass),c=b.getBoundingClientRect();return a.setAttribute("data-panel-height","".concat(c.height,"px"))}},{key:"calculateAllPanelsHeight",value:function(){const a=this;this.panels.forEach(function(b){a.calculatePanelHeight(b)})}},{key:"_setupHeaders",value:function(){const a=this;this.headers.forEach(function(b,c){b.setAttribute("id","kt-accordion-header-".concat(a.ids[c].id)),b.setAttribute("aria-controls","kt-accordion-panel-".concat(a.ids[c].id))})}},{key:"_setupPanels",value:function(){const a=this;this.panels.forEach(function(b,c){b.setAttribute("id","kt-accordion-panel-".concat(a.ids[c].id)),b.setAttribute("aria-labelledby","kt-accordion-header-".concat(a.ids[c].id)),(!0===a.settings.roles||!1!==a.settings.roles.region)&&a._setRole("region",b)})}}]),b}();return i}),function(){"use strict";let a=!1;window.KadenceBlocksAccordion={scrollToElement(a){window.scrollBy({top:Math.floor(a.getBoundingClientRect().top),left:0,behavior:"smooth"})},anchor(b){if(""!=window.location.hash){const c=location.hash.substring(1);if(!/^[A-z0-9_-]+$/.test(c))return;if(b.type&&"initialized"===b.type&&a)return;a=!0;const d=document.getElementById(c);if(d&&d.classList.contains("wp-block-kadence-pane")){const a=document.querySelectorAll("[id=\""+c+"\"] .kt-blocks-accordion-header")[0];a.classList.contains("kt-accordion-panel-active")||(b.type&&"initialized"===b.type?window.setTimeout(function(){a.dispatchEvent(new Event("startOpen"))},50):(a.dispatchEvent(new Event("startOpen")),setTimeout(()=>{window.KadenceBlocksAccordion.scrollToElement(d)},600)))}}},init(){const a=document.querySelectorAll(".kt-accordion-inner-wrap"),c=Array.from(a);for(let a=0,b=c.length;a<b;a++){const b=c[a].getAttribute("data-allow-multiple-open"),d=c[a].getAttribute("data-start-open");let e;if("none"!==d){e=0;for(let f=0,b=c[a].children.length;f<b;f++)if(c[a].children[f].classList.contains("kt-accordion-pane-"+parseInt(1+parseInt(d)))){e=f;break}}c[a].addEventListener("initialized",window.KadenceBlocksAccordion.anchor,!1),new KadenceAccordion(c[a],{openHeadersOnLoad:e||0===parseInt(e)?[parseInt(e)]:[],headerClass:".kt-blocks-accordion-header",panelClass:".kt-accordion-panel",panelInnerClass:".kt-accordion-panel-inner",hiddenClass:"kt-accordion-panel-hidden",activeClass:"kt-accordion-panel-active",initializedClass:"kt-accordion-initialized",headerDataAttr:"data-kt-accordion-header-id",openMultiplePanels:!("true"!==b),roles:{presentation:!1,region:!0}})}}},window.addEventListener("hashchange",window.KadenceBlocksAccordion.anchor,!1),window.addEventListener("kb-query-loaded",()=>{window.KadenceBlocksAccordion.init()}),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",window.KadenceBlocksAccordion.init):window.KadenceBlocksAccordion.init()}();
var Fg=Object.defineProperty,Lg=Object.defineProperties;var Rg=Object.getOwnPropertyDescriptors;var Pn=Object.getOwnPropertySymbols;var Jc=Object.prototype.hasOwnProperty,es=Object.prototype.propertyIsEnumerable;var Qc=(ie,I,me)=>I in ie?Fg(ie,I,{enumerable:!0,configurable:!0,writable:!0,value:me}):ie[I]=me,y=(ie,I)=>{for(var me in I||(I={}))Jc.call(I,me)&&Qc(ie,me,I[me]);if(Pn)for(var me of Pn(I))es.call(I,me)&&Qc(ie,me,I[me]);return ie},z=(ie,I)=>Lg(ie,Rg(I));var ha=ie=>typeof ie=="symbol"?ie:ie+"",N=(ie,I)=>{var me={};for(var ke in ie)Jc.call(ie,ke)&&I.indexOf(ke)<0&&(me[ke]=ie[ke]);if(ie!=null&&Pn)for(var ke of Pn(ie))I.indexOf(ke)<0&&es.call(ie,ke)&&(me[ke]=ie[ke]);return me};var Ce=(ie,I,me)=>new Promise((ke,cr)=>{var Rr=Re=>{try{Mt(me.next(Re))}catch(xt){cr(xt)}},Ar=Re=>{try{Mt(me.throw(Re))}catch(xt){cr(xt)}},Mt=Re=>Re.done?ke(Re.value):Promise.resolve(Re.value).then(Rr,Ar);Mt((me=me.apply(ie,I)).next())});(function(){"use strict";var ie,I,me,ke,cr,Rr,Ar,Mt,Re,xt,Nn,ga,sr={},ba=[],ts=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,dr=Array.isArray;function Be(e,t){for(var r in t)e[r]=t[r];return e}function Fn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ee(e,t,r){var n,o,a,i={};for(a in t)a=="key"?n=t[a]:a=="ref"?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?ie.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]==null&&(i[a]=e.defaultProps[a]);return ur(e,i,n,o,null)}function ur(e,t,r,n,o){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o==null?++me:o,__i:-1,__u:0};return o==null&&I.vnode!=null&&I.vnode(a),a}function Ln(){return{current:null}}function Q(e){return e.children}function Ae(e,t){this.props=e,this.context=t}function Ht(e,t){if(t==null)return e.__?Ht(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Ht(e):null}function va(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return va(e)}}function Rn(e){(!e.__d&&(e.__d=!0)&&ke.push(e)&&!Ir.__r++||cr!=I.debounceRendering)&&((cr=I.debounceRendering)||Rr)(Ir)}function Ir(){for(var e,t,r,n,o,a,i,l=1;ke.length;)ke.length>l&&ke.sort(Ar),e=ke.shift(),l=ke.length,e.__d&&(r=void 0,o=(n=(t=e).__v).__e,a=[],i=[],t.__P&&((r=Be({},n)).__v=n.__v+1,I.vnode&&I.vnode(r),An(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,a,o==null?Ht(n):o,!!(32&n.__u),i),r.__v=n.__v,r.__.__k[r.__i]=r,_a(a,r,i),r.__e!=o&&va(r)));Ir.__r=0}function ma(e,t,r,n,o,a,i,l,c,s,u){var d,h,f,g,m,w,x=n&&n.__k||ba,E=t.length;for(c=rs(r,t,x,c,E),d=0;d<E;d++)(f=r.__k[d])!=null&&(h=f.__i==-1?sr:x[f.__i]||sr,f.__i=d,w=An(e,f,h,o,a,i,l,c,s,u),g=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&In(h.ref,null,f),u.push(f.ref,f.__c||g,f)),m==null&&g!=null&&(m=g),4&f.__u||h.__k===f.__k?c=wa(f,c,e):typeof f.type=="function"&&w!==void 0?c=w:g&&(c=g.nextSibling),f.__u&=-7);return r.__e=m,c}function rs(e,t,r,n,o){var a,i,l,c,s,u=r.length,d=u,h=0;for(e.__k=new Array(o),a=0;a<o;a++)(i=t[a])!=null&&typeof i!="boolean"&&typeof i!="function"?(c=a+h,(i=e.__k[a]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?ur(null,i,null,null,null):dr(i)?ur(Q,{children:i},null,null,null):i.constructor==null&&i.__b>0?ur(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,l=null,(s=i.__i=ns(i,r,c,d))!=-1&&(d--,(l=r[s])&&(l.__u|=2)),l==null||l.__v==null?(s==-1&&(o>u?h--:o<u&&h++),typeof i.type!="function"&&(i.__u|=4)):s!=c&&(s==c-1?h--:s==c+1?h++:(s>c?h--:h++,i.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(l=r[a])!=null&&(2&l.__u)==0&&(l.__e==n&&(n=Ht(l)),Ea(l,l));return n}function wa(e,t,r){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=wa(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Ht(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Xe(e,t){return t=t||[],e==null||typeof e=="boolean"||(dr(e)?e.some(function(r){Xe(r,t)}):t.push(e)),t}function ns(e,t,r,n){var o,a,i=e.key,l=e.type,c=t[r];if(c===null&&e.key==null||c&&i==c.key&&l==c.type&&(2&c.__u)==0)return r;if(n>(c!=null&&(2&c.__u)==0?1:0))for(o=r-1,a=r+1;o>=0||a<t.length;){if(o>=0){if((c=t[o])&&(2&c.__u)==0&&i==c.key&&l==c.type)return o;o--}if(a<t.length){if((c=t[a])&&(2&c.__u)==0&&i==c.key&&l==c.type)return a;a++}}return-1}function xa(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||ts.test(t)?r:r+"px"}function Dr(e,t,r,n,o){var a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||xa(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||xa(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")a=t!=(t=t.replace(Mt,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?n?r.u=n.u:(r.u=Re,e.addEventListener(t,a?Nn:xt,a)):e.removeEventListener(t,a?Nn:xt,a);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch(i){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function ya(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=Re++;else if(t.t<r.u)return;return r(I.event?I.event(t):t)}}}function An(e,t,r,n,o,a,i,l,c,s){var u,d,h,f,g,m,w,x,E,$,k,T,C,O,W,j,U,M=t.type;if(t.constructor!=null)return null;128&r.__u&&(c=!!(32&r.__u),a=[l=t.__e=r.__e]),(u=I.__b)&&u(t);e:if(typeof M=="function")try{if(x=t.props,E="prototype"in M&&M.prototype.render,$=(u=M.contextType)&&n[u.__c],k=u?$?$.props.value:u.__:n,r.__c?w=(d=t.__c=r.__c).__=d.__E:(E?t.__c=d=new M(x,k):(t.__c=d=new Ae(x,k),d.constructor=M,d.render=as),$&&$.sub(d),d.props=x,d.state||(d.state={}),d.context=k,d.__n=n,h=d.__d=!0,d.__h=[],d._sb=[]),E&&d.__s==null&&(d.__s=d.state),E&&M.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Be({},d.__s)),Be(d.__s,M.getDerivedStateFromProps(x,d.__s))),f=d.props,g=d.state,d.__v=t,h)E&&M.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),E&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(E&&M.getDerivedStateFromProps==null&&x!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(x,k),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(x,d.__s,k)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(d.props=x,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(R){R&&(R.__=t)}),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[],d.__h.length&&i.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(x,d.__s,k),E&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,g,m)})}if(d.context=k,d.props=x,d.__P=e,d.__e=!1,C=I.__r,O=0,E){for(d.state=d.__s,d.__d=!1,C&&C(t),u=d.render(d.props,d.state,d.context),W=0;W<d._sb.length;W++)d.__h.push(d._sb[W]);d._sb=[]}else do d.__d=!1,C&&C(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++O<25);d.state=d.__s,d.getChildContext!=null&&(n=Be(Be({},n),d.getChildContext())),E&&!h&&d.getSnapshotBeforeUpdate!=null&&(m=d.getSnapshotBeforeUpdate(f,g)),j=u,u!=null&&u.type===Q&&u.key==null&&(j=ka(u.props.children)),l=ma(e,dr(j)?j:[j],t,r,n,o,a,i,l,c,s),d.base=t.__e,t.__u&=-161,d.__h.length&&i.push(d),w&&(d.__E=d.__=null)}catch(R){if(t.__v=null,c||a!=null)if(R.then){for(t.__u|=c?160:128;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;a[a.indexOf(l)]=null,t.__e=l}else for(U=a.length;U--;)Fn(a[U]);else t.__e=r.__e,t.__k=r.__k;I.__e(R,t,r)}else a==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):l=t.__e=os(r.__e,t,r,n,o,a,i,c,s);return(u=I.diffed)&&u(t),128&t.__u?void 0:l}function _a(e,t,r){for(var n=0;n<r.length;n++)In(r[n],r[++n],r[++n]);I.__c&&I.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(a){a.call(o)})}catch(a){I.__e(a,o.__v)}})}function ka(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:dr(e)?e.map(ka):Be({},e)}function os(e,t,r,n,o,a,i,l,c){var s,u,d,h,f,g,m,w=r.props,x=t.props,E=t.type;if(E=="svg"?o="http://www.w3.org/2000/svg":E=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),a!=null){for(s=0;s<a.length;s++)if((f=a[s])&&"setAttribute"in f==!!E&&(E?f.localName==E:f.nodeType==3)){e=f,a[s]=null;break}}if(e==null){if(E==null)return document.createTextNode(x);e=document.createElementNS(o,E,x.is&&x),l&&(I.__m&&I.__m(t,a),l=!1),a=null}if(E==null)w===x||l&&e.data==x||(e.data=x);else{if(a=a&&ie.call(e.childNodes),w=r.props||sr,!l&&a!=null)for(w={},s=0;s<e.attributes.length;s++)w[(f=e.attributes[s]).name]=f.value;for(s in w)if(f=w[s],s!="children"){if(s=="dangerouslySetInnerHTML")d=f;else if(!(s in x)){if(s=="value"&&"defaultValue"in x||s=="checked"&&"defaultChecked"in x)continue;Dr(e,s,null,f,o)}}for(s in x)f=x[s],s=="children"?h=f:s=="dangerouslySetInnerHTML"?u=f:s=="value"?g=f:s=="checked"?m=f:l&&typeof f!="function"||w[s]===f||Dr(e,s,f,w[s],o);if(u)l||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),ma(t.type=="template"?e.content:e,dr(h)?h:[h],t,r,n,E=="foreignObject"?"http://www.w3.org/1999/xhtml":o,a,i,a?a[0]:r.__k&&Ht(r,0),l,c),a!=null)for(s=a.length;s--;)Fn(a[s]);l||(s="value",E=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[s]||E=="progress"&&!g||E=="option"&&g!=w[s])&&Dr(e,s,g,w[s],o),s="checked",m!=null&&m!=e[s]&&Dr(e,s,m,w[s],o))}return e}function In(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){I.__e(o,r)}}function Ea(e,t,r){var n,o;if(I.unmount&&I.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||In(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){I.__e(a,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Ea(n[o],t,r||typeof e.type!="function");r||Fn(e.__e),e.__c=e.__=e.__e=void 0}function as(e,t,r){return this.constructor(e,r)}function at(e,t,r){var n,o,a,i;t==document&&(t=document.documentElement),I.__&&I.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,a=[],i=[],An(t,e=(!n&&r||t).__k=ee(Q,null,[e]),o||sr,sr,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?ie.call(t.childNodes):null,a,!n&&r?r:o?o.__e:t.firstChild,n,i),_a(a,e,i)}function Dn(e,t){at(e,t,Dn)}function Mn(e,t,r){var n,o,a,i,l=Be({},e.props);for(a in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)a=="key"?n=t[a]:a=="ref"?o=t[a]:l[a]=t[a]==null&&i!=null?i[a]:t[a];return arguments.length>2&&(l.children=arguments.length>3?ie.call(arguments,2):r),ur(e.type,l,n||e.key,o||e.ref,null)}function ge(e){function t(r){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(a){this.props.value!=a.value&&n.forEach(function(i){i.__e=!0,Rn(i)})},this.sub=function(a){n.add(a);var i=a.componentWillUnmount;a.componentWillUnmount=function(){n&&n.delete(a),i&&i.call(a)}}),r.children}return t.__c="__cC"+ga++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}ie=ba.slice,I={__e:function(e,t,r,n){for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&a.getDerivedStateFromError!=null&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),i=o.__d),i)return o.__E=o}catch(l){e=l}throw e}},me=0,Ae.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Be({},this.state),typeof e=="function"&&(e=e(Be({},r),this.props)),e&&Be(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Rn(this))},Ae.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Rn(this))},Ae.prototype.render=Q,ke=[],Rr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ar=function(e,t){return e.__v.__b-t.__v.__b},Ir.__r=0,Mt=/(PointerCapture)$|Capture$/i,Re=0,xt=ya(!1),Nn=ya(!0),ga=0;var is=0;function b(e,t,r,n,o,a){t||(t={});var i,l,c=t;if("ref"in c)for(l in c={},t)l=="ref"?i=t[l]:c[l]=t[l];var s={type:e,props:c,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--is,__i:-1,__u:0,__source:o,__self:a};if(typeof e=="function"&&(i=e.defaultProps))for(l in i)c[l]===void 0&&(c[l]=i[l]);return I.vnode&&I.vnode(s),s}function Hn(){return(Hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var ls=["context","children"];function cs(e){this.getChildContext=function(){return e.context};var t=e.children,r=function(n,o){if(n==null)return{};var a,i,l={},c=Object.keys(n);for(i=0;i<c.length;i++)o.indexOf(a=c[i])>=0||(l[a]=n[a]);return l}(e,ls);return Mn(t,r)}function ss(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=ee(cs,Hn({},this._props,{context:e.detail.context}),function t(r,n){if(r.nodeType===3)return r.data;if(r.nodeType!==1)return null;var o=[],a={},i=0,l=r.attributes,c=r.childNodes;for(i=l.length;i--;)l[i].name!=="slot"&&(a[l[i].name]=l[i].value,a[$a(l[i].name)]=l[i].value);for(i=c.length;i--;){var s=t(c[i],null),u=c[i].slot;u?a[u]=ee(Ta,{name:u},s):o[i]=s}var d=n?ee(Ta,null,o):o;return ee(n||r.nodeName.toLowerCase(),a,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Dn:at)(this._vdom,this._root)}function $a(e){return e.replace(/-(\w)/g,function(t,r){return r?r.toUpperCase():""})}function ds(e,t,r){if(this._vdom){var n={};n[e]=r=r==null?void 0:r,n[$a(e)]=r,this._vdom=Mn(this._vdom,n),at(this._vdom,this._root)}}function us(){at(this._vdom=null,this._root)}function Ta(e,t){var r=this;return ee("slot",Hn({},e,{ref:function(n){n?(r.ref=n,r._listener||(r._listener=function(o){o.stopPropagation(),o.detail.context=t},n.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function fs(e,t,r,n){function o(){var a=Reflect.construct(HTMLElement,[],o);return a._vdomComponent=e,a._root=n&&n.shadow?a.attachShadow({mode:n.mode||"open"}):a,a}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=ss,o.prototype.attributeChangedCallback=ds,o.prototype.disconnectedCallback=us,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=r,r.forEach(function(a){Object.defineProperty(o.prototype,a,{get:function(){return this._vdom.props[a]},set:function(i){this._vdom?this.attributeChangedCallback(a,null,i):(this._props||(this._props={}),this._props[a]=i,this.connectedCallback());var l=typeof i;i!=null&&l!=="string"&&l!=="boolean"&&l!=="number"||this.setAttribute(a,i)}})}),customElements.define(t,o)}var Se=(e=>(e.HIGH="high",e.OPEN="open",e.LOW="low",e))(Se||{}),Ie=(e=>(e.FROM="from",e.TO="to",e))(Ie||{}),jt=(e=>(e.AUTO="auto",e.DARK="dark",e.LIGHT="light",e.MY="my",e))(jt||{}),it=(e=>(e.UP="UP",e.DOWN="DOWN",e.UNCHANGED="UNCHANGED",e))(it||{}),Mr=(e=>(e.UP="text-green-500",e.DOWN="text-red-500",e.UNCHANGED="",e))(Mr||{});if(typeof window!="undefined"&&window.EventTarget){const e=window.EventTarget.prototype.addEventListener,t=new Set(["wheel","mousewheel","touchstart","touchmove","touchenter","touchend","touchcancel"]);window.EventTarget.prototype.addEventListener=function(r,n,o){let a=o;return t.has(r)&&(a===void 0?a={passive:!0}:typeof a=="boolean"?a={capture:a,passive:!0}:a=z(y({},a),{passive:!0})),e.call(this,r,n,a)}}function za(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=za(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function V(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=za(e))&&(n&&(n+=" "),n+=t);return n}var Ze,se,jn,Ca,Ut=0,Sa=[],be=I,Oa=be.__b,Pa=be.__r,Na=be.diffed,Fa=be.__c,La=be.unmount,Ra=be.__;function yt(e,t){be.__h&&be.__h(se,e,Ut||t),Ut=0;var r=se.__H||(se.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function F(e){return Ut=1,Bt(Ia,e)}function Bt(e,t,r){var n=yt(Ze++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ia(void 0,t),function(l){var c=n.__N?n.__N[0]:n.__[0],s=n.t(c,l);c!==s&&(n.__N=[s,n.__[1]],n.__c.setState({}))}],n.__c=se,!se.__f)){var o=function(l,c,s){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(h){return!!h.__c});if(u.every(function(h){return!h.__N}))return!a||a.call(this,l,c,s);var d=n.__c.props!==l;return u.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(d=!0)}}),a&&a.call(this,l,c,s)||d};se.__f=!0;var a=se.shouldComponentUpdate,i=se.componentWillUpdate;se.componentWillUpdate=function(l,c,s){if(this.__e){var u=a;a=void 0,o(l,c,s),a=u}i&&i.call(this,l,c,s)},se.shouldComponentUpdate=o}return n.__N||n.__}function Y(e,t){var r=yt(Ze++,3);!be.__s&&Vn(r.__H,t)&&(r.__=e,r.u=t,se.__H.__h.push(r))}function We(e,t){var r=yt(Ze++,4);!be.__s&&Vn(r.__H,t)&&(r.__=e,r.u=t,se.__h.push(r))}function L(e){return Ut=5,D(function(){return{current:e}},[])}function Un(e,t,r){Ut=6,We(function(){if(typeof e=="function"){var n=e(t());return function(){e(null),n&&typeof n=="function"&&n()}}if(e)return e.current=t(),function(){return e.current=null}},r==null?r:r.concat(e))}function D(e,t){var r=yt(Ze++,7);return Vn(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function q(e,t){return Ut=8,D(function(){return e},t)}function X(e){var t=se.context[e.__c],r=yt(Ze++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(se)),t.props.value):e.__}function Bn(e,t){be.useDebugValue&&be.useDebugValue(t?t(e):e)}function ps(e){var t=yt(Ze++,10),r=F();return t.__=e,se.componentDidCatch||(se.componentDidCatch=function(n,o){t.__&&t.__(n,o),r[1](n)}),[r[0],function(){r[1](void 0)}]}function Ee(){var e=yt(Ze++,11);if(!e.__){for(var t=se.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function hs(){for(var e;e=Sa.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Hr),e.__H.__h.forEach(Wn),e.__H.__h=[]}catch(t){e.__H.__h=[],be.__e(t,e.__v)}}be.__b=function(e){se=null,Oa&&Oa(e)},be.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ra&&Ra(e,t)},be.__r=function(e){Pa&&Pa(e),Ze=0;var t=(se=e.__c).__H;t&&(jn===se?(t.__h=[],se.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Hr),t.__h.forEach(Wn),t.__h=[],Ze=0)),jn=se},be.diffed=function(e){Na&&Na(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Sa.push(t)!==1&&Ca===be.requestAnimationFrame||((Ca=be.requestAnimationFrame)||gs)(hs)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),jn=se=null},be.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Hr),r.__h=r.__h.filter(function(n){return!n.__||Wn(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],be.__e(n,r.__v)}}),Fa&&Fa(e,t)},be.unmount=function(e){La&&La(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Hr(n)}catch(o){t=o}}),r.__H=void 0,t&&be.__e(t,r.__v))};var Aa=typeof requestAnimationFrame=="function";function gs(e){var t,r=function(){clearTimeout(n),Aa&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Aa&&(t=requestAnimationFrame(r))}function Hr(e){var t=se,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),se=t}function Wn(e){var t=se;e.__c=e.__(),se=t}function Vn(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ia(e,t){return typeof t=="function"?t(e):t}function Da(e,t){for(var r in t)e[r]=t[r];return e}function Gn(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function jr(e,t){var r=t(),n=F({t:{__:r,u:t}}),o=n[0].t,a=n[1];return We(function(){o.__=r,o.u=t,Yn(o)&&a({t:o})},[e,r,t]),Y(function(){return Yn(o)&&a({t:o}),e(function(){Yn(o)&&a({t:o})})},[e]),r}function Yn(e){var t,r,n=e.u,o=e.__;try{var a=n();return!((t=o)===(r=a)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch(i){return!0}}function Kn(e){e()}function qn(e){return e}function Xn(){return[!1,Kn]}var Zn=We;function Ur(e,t){this.props=e,this.context=t}function Ma(e,t){function r(o){var a=this.props.ref,i=a==o.ref;return!i&&a&&(a.call?a(null):a.current=null),t?!t(this.props,o)||!i:Gn(this.props,o)}function n(o){return this.shouldComponentUpdate=r,ee(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(Ur.prototype=new Ae).isPureReactComponent=!0,Ur.prototype.shouldComponentUpdate=function(e,t){return Gn(this.props,e)||Gn(this.state,t)};var Ha=I.__b;I.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ha&&Ha(e)};var bs=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ne(e){function t(r){var n=Da({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=bs,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ja=function(e,t){return e==null?null:Xe(Xe(e).map(t))},Ua={map:ja,forEach:ja,count:function(e){return e?Xe(e).length:0},only:function(e){var t=Xe(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Xe},vs=I.__e;I.__e=function(e,t,r,n){if(e.then){for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}vs(e,t,r,n)};var Ba=I.unmount;function Wa(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Da({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Wa(n,t,r)})),e}function Va(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Va(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function fr(){this.__u=0,this.o=null,this.__b=null}function Ga(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ya(e){var t,r,n;function o(a){if(t||(t=e()).then(function(i){r=i.default||i},function(i){n=i}),n)throw n;if(!r)throw t;return ee(r,a)}return o.displayName="Lazy",o.__f=!0,o}function Wt(){this.i=null,this.l=null}I.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ba&&Ba(e)},(fr.prototype=new Ae).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Ga(n.__v),a=!1,i=function(){a||(a=!0,r.__R=null,o?o(l):l())};r.__R=i;var l=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Va(c,c.__c.__P,c.__c.__O)}var s;for(n.setState({__a:n.__b=null});s=n.o.pop();)s.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},fr.prototype.componentWillUnmount=function(){this.o=[]},fr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Wa(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&ee(Q,null,e.fallback);return o&&(o.__u&=-33),[ee(Q,null,t.__a?null:e.children),o]};var Ka=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function ms(e){return this.getChildContext=function(){return e.context},e.children}function ws(e){var t=this,r=e.h;t.componentWillUnmount=function(){at(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),t.v||(t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(n){this.childNodes.push(n),t.h.appendChild(n)},insertBefore:function(n,o){this.childNodes.push(n),t.h.insertBefore(n,o)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.h.removeChild(n)}}),at(ee(ms,{context:t.context},e.__v),t.v)}function Br(e,t){var r=ee(ws,{__v:e,h:t});return r.containerInfo=t,r}(Wt.prototype=new Ae).__a=function(e){var t=this,r=Ga(t.__v),n=t.l.get(e);return n[0]++,function(o){var a=function(){t.props.revealOrder?(n.push(o),Ka(t,e,n)):o()};r?r(a):a()}},Wt.prototype.render=function(e){this.i=null,this.l=new Map;var t=Xe(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Wt.prototype.componentDidUpdate=Wt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Ka(e,r,t)})};var qa=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,xs=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ys=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,_s=/[A-Z0-9]/g,ks=typeof document!="undefined",Es=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Xa(e,t,r){return t.__k==null&&(t.textContent=""),at(e,t),typeof r=="function"&&r(),e?e.__c:null}function Za(e,t,r){return Dn(e,t),typeof r=="function"&&r(),e?e.__c:null}Ae.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ae.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Qa=I.event;function $s(){}function Ts(){return this.cancelBubble}function zs(){return this.defaultPrevented}I.event=function(e){return Qa&&(e=Qa(e)),e.persist=$s,e.isPropagationStopped=Ts,e.isDefaultPrevented=zs,e.nativeEvent=e};var Qn,Cs={enumerable:!1,configurable:!0,get:function(){return this.class}},Ja=I.vnode;I.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},a=n.indexOf("-")===-1;for(var i in r){var l=r[i];if(!(i==="value"&&"defaultValue"in r&&l==null||ks&&i==="children"&&n==="noscript"||i==="class"||i==="className")){var c=i.toLowerCase();i==="defaultValue"&&"value"in r&&r.value==null?i="value":i==="download"&&l===!0?l="":c==="translate"&&l==="no"?l=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?i="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||Es(r.type)?c==="onfocus"?i="onfocusin":c==="onblur"?i="onfocusout":ys.test(i)&&(i=c):c=i="oninput":a&&xs.test(i)?i=i.replace(_s,"-$&").toLowerCase():l===null&&(l=void 0),c==="oninput"&&o[i=c]&&(i="oninputCapture"),o[i]=l}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Xe(r.children).forEach(function(s){s.props.selected=o.value.indexOf(s.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Xe(r.children).forEach(function(s){s.props.selected=o.multiple?o.defaultValue.indexOf(s.props.value)!=-1:o.defaultValue==s.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",Cs)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=qa,Ja&&Ja(e)};var ei=I.__r;I.__r=function(e){ei&&ei(e),Qn=e.__c};var ti=I.diffed;I.diffed=function(e){ti&&ti(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),Qn=null};var ri={ReactCurrentDispatcher:{current:{readContext:function(e){return Qn.__n[e.__c].props.value},useCallback:q,useContext:X,useDebugValue:Bn,useDeferredValue:qn,useEffect:Y,useId:Ee,useImperativeHandle:Un,useInsertionEffect:Zn,useLayoutEffect:We,useMemo:D,useReducer:Bt,useRef:L,useState:F,useSyncExternalStore:jr,useTransition:Xn}}},Ss="18.3.1";function ni(e){return ee.bind(null,e)}function Vt(e){return!!e&&e.$$typeof===qa}function oi(e){return Vt(e)&&e.type===Q}function ai(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Jn(e){return Vt(e)?Mn.apply(null,arguments):e}function ii(e){return!!e.__k&&(at(null,e),!0)}function li(e){return e&&(e.base||e.nodeType===1&&e)||null}var ci=function(e,t){return e(t)},Qe=function(e,t){return e(t)},si=Q,di=Vt,S={useState:F,useId:Ee,useReducer:Bt,useEffect:Y,useLayoutEffect:We,useInsertionEffect:Zn,useTransition:Xn,useDeferredValue:qn,useSyncExternalStore:jr,startTransition:Kn,useRef:L,useImperativeHandle:Un,useMemo:D,useCallback:q,useContext:X,useDebugValue:Bn,version:"18.3.1",Children:Ua,render:Xa,hydrate:Za,unmountComponentAtNode:ii,createPortal:Br,createElement:ee,createContext:ge,createFactory:ni,cloneElement:Jn,createRef:Ln,Fragment:Q,isValidElement:Vt,isElement:di,isFragment:oi,isMemo:ai,findDOMNode:li,Component:Ae,PureComponent:Ur,memo:Ma,forwardRef:Ne,flushSync:Qe,unstable_batchedUpdates:ci,StrictMode:si,Suspense:fr,SuspenseList:Wt,lazy:Ya,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ri};const Wr=Object.freeze(Object.defineProperty({__proto__:null,Children:Ua,Component:Ae,Fragment:Q,PureComponent:Ur,StrictMode:si,Suspense:fr,SuspenseList:Wt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ri,cloneElement:Jn,createContext:ge,createElement:ee,createFactory:ni,createPortal:Br,createRef:Ln,default:S,findDOMNode:li,flushSync:Qe,forwardRef:Ne,hydrate:Za,isElement:di,isFragment:oi,isMemo:ai,isValidElement:Vt,lazy:Ya,memo:Ma,render:Xa,startTransition:Kn,unmountComponentAtNode:ii,unstable_batchedUpdates:ci,useCallback:q,useContext:X,useDebugValue:Bn,useDeferredValue:qn,useEffect:Y,useErrorBoundary:ps,useId:Ee,useImperativeHandle:Un,useInsertionEffect:Zn,useLayoutEffect:We,useMemo:D,useReducer:Bt,useRef:L,useState:F,useSyncExternalStore:jr,useTransition:Xn,version:Ss},Symbol.toStringTag,{value:"Module"}));function Os(o,n){var a=o,{title:e,titleId:t}=a,r=N(a,["title","titleId"]);return ee("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?ee("title",{id:t},e):null,ee("path",{d:"M9.58 1.077a.75.75 0 0 1 .405.82L9.165 6h4.085a.75.75 0 0 1 .567 1.241l-1.904 2.197L6.385 3.91 8.683 1.26a.75.75 0 0 1 .897-.182ZM4.087 6.562l5.528 5.528-2.298 2.651a.75.75 0 0 1-1.302-.638L6.835 10H2.75a.75.75 0 0 1-.567-1.241l1.904-2.197ZM2.22 2.22a.75.75 0 0 1 1.06 0l10.5 10.5a.75.75 0 1 1-1.06 1.06L2.22 3.28a.75.75 0 0 1 0-1.06Z"}))}const Ps=Ne(Os);function Ns(o,n){var a=o,{title:e,titleId:t}=a,r=N(a,["title","titleId"]);return ee("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?ee("title",{id:t},e):null,ee("path",{fillRule:"evenodd",d:"M9.58 1.077a.75.75 0 0 1 .405.82L9.165 6h4.085a.75.75 0 0 1 .567 1.241l-6.5 7.5a.75.75 0 0 1-1.302-.638L6.835 10H2.75a.75.75 0 0 1-.567-1.241l6.5-7.5a.75.75 0 0 1 .897-.182Z",clipRule:"evenodd"}))}const Fs=Ne(Ns);function Ls(o,n){var a=o,{title:e,titleId:t}=a,r=N(a,["title","titleId"]);return ee("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?ee("title",{id:t},e):null,ee("path",{d:"M12 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1h-1ZM6.5 6a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V6ZM2 9a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V9Z"}))}const Rs=Ne(Ls);function As(o,n){var a=o,{title:e,titleId:t}=a,r=N(a,["title","titleId"]);return ee("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?ee("title",{id:t},e):null,ee("path",{fillRule:"evenodd",d:"M12.78 7.595a.75.75 0 0 1 0 1.06l-3.25 3.25a.75.75 0 0 1-1.06-1.06l2.72-2.72-2.72-2.72a.75.75 0 0 1 1.06-1.06l3.25 3.25Zm-8.25-3.25 3.25 3.25a.75.75 0 0 1 0 1.06l-3.25 3.25a.75.75 0 0 1-1.06-1.06l2.72-2.72-2.72-2.72a.75.75 0 0 1 1.06-1.06Z",clipRule:"evenodd"}))}const Is=Ne(As);function Ds(o,n){var a=o,{title:e,titleId:t}=a,r=N(a,["title","titleId"]);return ee("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?ee("title",{id:t},e):null,ee("path",{fillRule:"evenodd",d:"M6.455 1.45A.5.5 0 0 1 6.952 1h2.096a.5.5 0 0 1 .497.45l.186 1.858a4.996 4.996 0 0 1 1.466.848l1.703-.769a.5.5 0 0 1 .639.206l1.047 1.814a.5.5 0 0 1-.14.656l-1.517 1.09a5.026 5.026 0 0 1 0 1.694l1.516 1.09a.5.5 0 0 1 .141.656l-1.047 1.814a.5.5 0 0 1-.639.206l-1.703-.768c-.433.36-.928.649-1.466.847l-.186 1.858a.5.5 0 0 1-.497.45H6.952a.5.5 0 0 1-.497-.45l-.186-1.858a4.993 4.993 0 0 1-1.466-.848l-1.703.769a.5.5 0 0 1-.639-.206l-1.047-1.814a.5.5 0 0 1 .14-.656l1.517-1.09a5.033 5.033 0 0 1 0-1.694l-1.516-1.09a.5.5 0 0 1-.141-.656L2.46 3.593a.5.5 0 0 1 .639-.206l1.703.769c.433-.36.928-.65 1.466-.848l.186-1.858Zm-.177 7.567-.022-.037a2 2 0 0 1 3.466-1.997l.022.037a2 2 0 0 1-3.466 1.997Z",clipRule:"evenodd"}))}const Ms=Ne(Ds),Hs="Crypto Converter ⚡ Widget",eo="co-w.io_ccw_",to={auto:"Auto","en-US":"English (US)","en-GB":"English (UK)","en-CA":"English (Canada)","en-AU":"English (Australia)","fr-FR":"Français (France)","de-DE":"Deutsch (Deutschland)","es-ES":"Español (España)","it-IT":"Italiano (Italia)","ja-JP":"日本語 (日本)","zh-CN":"简体中文 (中国)","pl-PL":"Polski (Polska)","uk-UA":"Українська (Україна)","ru-RU":"Русский (Россия)","pt-BR":"Português (Brasil)","he-IL":"עברית (ישראל)","fa-IR":"فارسی (ایران)","ar-SA":"العربية (السعودية)","ar-EG":"العربية (مصر)","hi-IN":"हिन्दी (भारत)","ko-KR":"한국어 (대한민국)","nl-NL":"Nederlands (Nederland)","sv-SE":"Svenska (Sverige)","da-DK":"Dansk (Danmark)","fi-FI":"Suomi (Suomi)","ro-RO":"Română (România)","bg-BG":"Български (България)","th-TH":"ไทย (ประเทศไทย)","cs-CZ":"čeština (Česká republika)","tr-TR":"Türkçe (Türkiye)","es-MX":"Español (México)"},ui="https://cdn.jsdelivr.net/gh/dejurin/crypto-converter-widget@latest/assets/{SYMBOL}.png",js="https://cdn.jsdelivr.net/gh/dejurin/crypto-converter-widget@latest/public/assets.json?v={v}",Us="https://www.okx.com/api/v5/market/ticker?instId={fsym}-{tsyms}",Bs="https://api.coinbase.com/v2/prices/{fsym}-{tsyms}/spot",Ws="https://min-api.cryptocompare.com/data/price?fsym={fsym}&tsyms={tsyms}",Vs="https://data-api.coindesk.com/index/cc/v1/latest/tick?market=ccix&instruments={fsym}-{tsyms}&apply_mapping=false&groups=ID,VALUE,LAST_UPDATE,CURRENT_HOUR,CURRENT_DAY",fi={headers:{accept:"application/json"}},Gs="no-cache",Ys="default",pi=10*1e3,hi=5e3,ro={},Ks={};var Vr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function qs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xs(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var pr={exports:{}};pr.exports;var gi;function Zs(){return gi||(gi=1,function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,a=16,i=9007199254740991,l="[object Arguments]",c="[object Array]",s="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",g="[object GeneratorFunction]",m="[object Map]",w="[object Number]",x="[object Null]",E="[object Object]",$="[object Proxy]",k="[object RegExp]",T="[object Set]",C="[object String]",O="[object Undefined]",W="[object WeakMap]",j="[object ArrayBuffer]",U="[object DataView]",M="[object Float32Array]",R="[object Float64Array]",G="[object Int8Array]",te="[object Int16Array]",ve="[object Int32Array]",oe="[object Uint8Array]",ye="[object Uint8ClampedArray]",Z="[object Uint16Array]",K="[object Uint32Array]",P=/[\\^$.*+?()[\]{}|]/g,ce=/^\[object .+?Constructor\]$/,ae=/^(?:0|[1-9]\d*)$/,B={};B[M]=B[R]=B[G]=B[te]=B[ve]=B[oe]=B[ye]=B[Z]=B[K]=!0,B[l]=B[c]=B[j]=B[u]=B[U]=B[d]=B[h]=B[f]=B[m]=B[w]=B[E]=B[k]=B[T]=B[C]=B[W]=!1;var vt=typeof Vr=="object"&&Vr&&Vr.Object===Object&&Vr,tt=typeof self=="object"&&self&&self.Object===Object&&self,rt=vt||tt||Function("return this")(),mt=t&&!t.nodeType&&t,_e=mt&&!0&&e&&!e.nodeType&&e,Rt=_e&&_e.exports===mt,nt=Rt&&vt.process,Nc=function(){try{var p=_e&&_e.require&&_e.require("util").types;return p||nt&&nt.binding&&nt.binding("util")}catch(v){}}(),Fc=Nc&&Nc.isTypedArray;function x0(p,v,_){switch(_.length){case 0:return p.call(v);case 1:return p.call(v,_[0]);case 2:return p.call(v,_[0],_[1]);case 3:return p.call(v,_[0],_[1],_[2])}return p.apply(v,_)}function y0(p,v){for(var _=-1,A=Array(p);++_<p;)A[_]=v(_);return A}function _0(p){return function(v){return p(v)}}function k0(p,v){return p==null?void 0:p[v]}function E0(p,v){return function(_){return p(v(_))}}var $0=Array.prototype,T0=Function.prototype,kn=Object.prototype,na=rt["__core-js_shared__"],En=T0.toString,wt=kn.hasOwnProperty,Lc=function(){var p=/[^.]+$/.exec(na&&na.keys&&na.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),Rc=kn.toString,z0=En.call(Object),C0=RegExp("^"+En.call(wt).replace(P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$n=Rt?rt.Buffer:void 0,Ac=rt.Symbol,Ic=rt.Uint8Array;$n&&$n.allocUnsafe;var Dc=E0(Object.getPrototypeOf,Object),Mc=Object.create,S0=kn.propertyIsEnumerable,O0=$0.splice,At=Ac?Ac.toStringTag:void 0,Tn=function(){try{var p=ia(Object,"defineProperty");return p({},"",{}),p}catch(v){}}(),P0=$n?$n.isBuffer:void 0,Hc=Math.max,N0=Date.now,jc=ia(rt,"Map"),Nr=ia(Object,"create"),F0=function(){function p(){}return function(v){if(!Dt(v))return{};if(Mc)return Mc(v);p.prototype=v;var _=new p;return p.prototype=void 0,_}}();function It(p){var v=-1,_=p==null?0:p.length;for(this.clear();++v<_;){var A=p[v];this.set(A[0],A[1])}}function L0(){this.__data__=Nr?Nr(null):{},this.size=0}function R0(p){var v=this.has(p)&&delete this.__data__[p];return this.size-=v?1:0,v}function A0(p){var v=this.__data__;if(Nr){var _=v[p];return _===n?void 0:_}return wt.call(v,p)?v[p]:void 0}function I0(p){var v=this.__data__;return Nr?v[p]!==void 0:wt.call(v,p)}function D0(p,v){var _=this.__data__;return this.size+=this.has(p)?0:1,_[p]=Nr&&v===void 0?n:v,this}It.prototype.clear=L0,It.prototype.delete=R0,It.prototype.get=A0,It.prototype.has=I0,It.prototype.set=D0;function ot(p){var v=-1,_=p==null?0:p.length;for(this.clear();++v<_;){var A=p[v];this.set(A[0],A[1])}}function M0(){this.__data__=[],this.size=0}function H0(p){var v=this.__data__,_=zn(v,p);if(_<0)return!1;var A=v.length-1;return _==A?v.pop():O0.call(v,_,1),--this.size,!0}function j0(p){var v=this.__data__,_=zn(v,p);return _<0?void 0:v[_][1]}function U0(p){return zn(this.__data__,p)>-1}function B0(p,v){var _=this.__data__,A=zn(_,p);return A<0?(++this.size,_.push([p,v])):_[A][1]=v,this}ot.prototype.clear=M0,ot.prototype.delete=H0,ot.prototype.get=j0,ot.prototype.has=U0,ot.prototype.set=B0;function ir(p){var v=-1,_=p==null?0:p.length;for(this.clear();++v<_;){var A=p[v];this.set(A[0],A[1])}}function W0(){this.size=0,this.__data__={hash:new It,map:new(jc||ot),string:new It}}function V0(p){var v=Sn(this,p).delete(p);return this.size-=v?1:0,v}function G0(p){return Sn(this,p).get(p)}function Y0(p){return Sn(this,p).has(p)}function K0(p,v){var _=Sn(this,p),A=_.size;return _.set(p,v),this.size+=_.size==A?0:1,this}ir.prototype.clear=W0,ir.prototype.delete=V0,ir.prototype.get=G0,ir.prototype.has=Y0,ir.prototype.set=K0;function lr(p){var v=this.__data__=new ot(p);this.size=v.size}function q0(){this.__data__=new ot,this.size=0}function X0(p){var v=this.__data__,_=v.delete(p);return this.size=v.size,_}function Z0(p){return this.__data__.get(p)}function Q0(p){return this.__data__.has(p)}function J0(p,v){var _=this.__data__;if(_ instanceof ot){var A=_.__data__;if(!jc||A.length<r-1)return A.push([p,v]),this.size=++_.size,this;_=this.__data__=new ir(A)}return _.set(p,v),this.size=_.size,this}lr.prototype.clear=q0,lr.prototype.delete=X0,lr.prototype.get=Z0,lr.prototype.has=Q0,lr.prototype.set=J0;function eg(p,v){var _=sa(p),A=!_&&ca(p),J=!_&&!A&&Gc(p),fe=!_&&!A&&!J&&Kc(p),pe=_||A||J||fe,re=pe?y0(p.length,String):[],he=re.length;for(var Ue in p)pe&&(Ue=="length"||J&&(Ue=="offset"||Ue=="parent")||fe&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||Wc(Ue,he))||re.push(Ue);return re}function oa(p,v,_){(_!==void 0&&!On(p[v],_)||_===void 0&&!(v in p))&&aa(p,v,_)}function tg(p,v,_){var A=p[v];(!(wt.call(p,v)&&On(A,_))||_===void 0&&!(v in p))&&aa(p,v,_)}function zn(p,v){for(var _=p.length;_--;)if(On(p[_][0],v))return _;return-1}function aa(p,v,_){v=="__proto__"&&Tn?Tn(p,v,{configurable:!0,enumerable:!0,value:_,writable:!0}):p[v]=_}var rg=gg();function Cn(p){return p==null?p===void 0?O:x:At&&At in Object(p)?bg(p):_g(p)}function Uc(p){return Fr(p)&&Cn(p)==l}function ng(p){if(!Dt(p)||xg(p))return!1;var v=ua(p)?C0:ce;return v.test(Tg(p))}function og(p){return Fr(p)&&Yc(p.length)&&!!B[Cn(p)]}function ag(p){if(!Dt(p))return yg(p);var v=Vc(p),_=[];for(var A in p)A=="constructor"&&(v||!wt.call(p,A))||_.push(A);return _}function Bc(p,v,_,A,J){p!==v&&rg(v,function(fe,pe){if(J||(J=new lr),Dt(fe))ig(p,v,pe,_,Bc,A,J);else{var re=A?A(la(p,pe),fe,pe+"",p,v,J):void 0;re===void 0&&(re=fe),oa(p,pe,re)}},qc)}function ig(p,v,_,A,J,fe,pe){var re=la(p,_),he=la(v,_),Ue=pe.get(he);if(Ue){oa(p,_,Ue);return}var Le=fe?fe(re,he,_+"",p,v,pe):void 0,Lr=Le===void 0;if(Lr){var fa=sa(he),pa=!fa&&Gc(he),Zc=!fa&&!pa&&Kc(he);Le=he,fa||pa||Zc?sa(re)?Le=re:zg(re)?Le=fg(re):pa?(Lr=!1,Le=sg(he)):Zc?(Lr=!1,Le=ug(he)):Le=[]:Cg(he)||ca(he)?(Le=re,ca(re)?Le=Sg(re):(!Dt(re)||ua(re))&&(Le=vg(he))):Lr=!1}Lr&&(pe.set(he,Le),J(Le,he,A,fe,pe),pe.delete(he)),oa(p,_,Le)}function lg(p,v){return Eg(kg(p,v,Xc),p+"")}var cg=Tn?function(p,v){return Tn(p,"toString",{configurable:!0,enumerable:!1,value:Pg(v),writable:!0})}:Xc;function sg(p,v){return p.slice()}function dg(p){var v=new p.constructor(p.byteLength);return new Ic(v).set(new Ic(p)),v}function ug(p,v){var _=dg(p.buffer);return new p.constructor(_,p.byteOffset,p.length)}function fg(p,v){var _=-1,A=p.length;for(v||(v=Array(A));++_<A;)v[_]=p[_];return v}function pg(p,v,_,A){var J=!_;_||(_={});for(var fe=-1,pe=v.length;++fe<pe;){var re=v[fe],he=void 0;he===void 0&&(he=p[re]),J?aa(_,re,he):tg(_,re,he)}return _}function hg(p){return lg(function(v,_){var A=-1,J=_.length,fe=J>1?_[J-1]:void 0,pe=J>2?_[2]:void 0;for(fe=p.length>3&&typeof fe=="function"?(J--,fe):void 0,pe&&mg(_[0],_[1],pe)&&(fe=J<3?void 0:fe,J=1),v=Object(v);++A<J;){var re=_[A];re&&p(v,re,A,fe)}return v})}function gg(p){return function(v,_,A){for(var J=-1,fe=Object(v),pe=A(v),re=pe.length;re--;){var he=pe[++J];if(_(fe[he],he,fe)===!1)break}return v}}function Sn(p,v){var _=p.__data__;return wg(v)?_[typeof v=="string"?"string":"hash"]:_.map}function ia(p,v){var _=k0(p,v);return ng(_)?_:void 0}function bg(p){var v=wt.call(p,At),_=p[At];try{p[At]=void 0;var A=!0}catch(fe){}var J=Rc.call(p);return A&&(v?p[At]=_:delete p[At]),J}function vg(p){return typeof p.constructor=="function"&&!Vc(p)?F0(Dc(p)):{}}function Wc(p,v){var _=typeof p;return v=v==null?i:v,!!v&&(_=="number"||_!="symbol"&&ae.test(p))&&p>-1&&p%1==0&&p<v}function mg(p,v,_){if(!Dt(_))return!1;var A=typeof v;return(A=="number"?da(_)&&Wc(v,_.length):A=="string"&&v in _)?On(_[v],p):!1}function wg(p){var v=typeof p;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?p!=="__proto__":p===null}function xg(p){return!!Lc&&Lc in p}function Vc(p){var v=p&&p.constructor,_=typeof v=="function"&&v.prototype||kn;return p===_}function yg(p){var v=[];if(p!=null)for(var _ in Object(p))v.push(_);return v}function _g(p){return Rc.call(p)}function kg(p,v,_){return v=Hc(v===void 0?p.length-1:v,0),function(){for(var A=arguments,J=-1,fe=Hc(A.length-v,0),pe=Array(fe);++J<fe;)pe[J]=A[v+J];J=-1;for(var re=Array(v+1);++J<v;)re[J]=A[J];return re[v]=_(pe),x0(p,this,re)}}function la(p,v){if(!(v==="constructor"&&typeof p[v]=="function")&&v!="__proto__")return p[v]}var Eg=$g(cg);function $g(p){var v=0,_=0;return function(){var A=N0(),J=a-(A-_);if(_=A,J>0){if(++v>=o)return arguments[0]}else v=0;return p.apply(void 0,arguments)}}function Tg(p){if(p!=null){try{return En.call(p)}catch(v){}try{return p+""}catch(v){}}return""}function On(p,v){return p===v||p!==p&&v!==v}var ca=Uc(function(){return arguments}())?Uc:function(p){return Fr(p)&&wt.call(p,"callee")&&!S0.call(p,"callee")},sa=Array.isArray;function da(p){return p!=null&&Yc(p.length)&&!ua(p)}function zg(p){return Fr(p)&&da(p)}var Gc=P0||Ng;function ua(p){if(!Dt(p))return!1;var v=Cn(p);return v==f||v==g||v==s||v==$}function Yc(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=i}function Dt(p){var v=typeof p;return p!=null&&(v=="object"||v=="function")}function Fr(p){return p!=null&&typeof p=="object"}function Cg(p){if(!Fr(p)||Cn(p)!=E)return!1;var v=Dc(p);if(v===null)return!0;var _=wt.call(v,"constructor")&&v.constructor;return typeof _=="function"&&_ instanceof _&&En.call(_)==z0}var Kc=Fc?_0(Fc):og;function Sg(p){return pg(p,qc(p))}function qc(p){return da(p)?eg(p):ag(p)}var Og=hg(function(p,v,_,A){Bc(p,v,_,A)});function Pg(p){return function(){return p}}function Xc(p){return p}function Ng(){return!1}e.exports=Og}(pr,pr.exports)),pr.exports}var Qs=Zs();const Js=qs(Qs);function ed(e,t){const[r,n]=F(()=>{if(typeof window=="undefined")return t;try{const a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch(a){return t}});return Y(()=>{if(typeof window!="undefined")try{window.localStorage.setItem(e,JSON.stringify(r))}catch(a){}},[e,r]),[r,a=>{n(i=>a instanceof Function?a(i):a)}]}function td(e){const t=e==="auto"&&typeof navigator!="undefined"?navigator.language:e;if(t!=="auto"&&Object.prototype.hasOwnProperty.call(to,t))return t;const r=t.split("-")[0];return Object.keys(to).find(o=>o!=="auto"&&o.startsWith(r+"-"))||"en-US"}function rd(e,t){if(typeof t=="number"&&Number.isNaN(t)||t===void 0)return e}const bi={indicator:Se.HIGH,locale:"auto",symbol:!1,decimal:4,stat:!1,tax:0,base:"BTC",quote:"USD",amount:1,rounded:!0,border:!0,shadow:!1,theme:jt.AUTO,name:Hs,apiKey:void 0,backgroundColor:void 0,background:void 0},lt=ge({settings:bi,setSettings:e=>e,forcedSettings:{}}),nd=({children:e,forcedSettings:t={}})=>{const[r,n]=ed(eo+"settings",bi),o=D(()=>{const a=Js({},r,t,rd),i=td(a.locale);return z(y({},a),{locale:i})},[r,t]);return b(lt.Provider,{value:{settings:o,setSettings:n,forcedSettings:t},children:e})},vi=typeof document!="undefined"?S.useLayoutEffect:()=>{};function od(e){const t=L(null);return vi(()=>{t.current=e},[e]),q((...r)=>{const n=t.current;return n==null?void 0:n(...r)},[])}const ct=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},_t=e=>e&&"window"in e&&e.window===e?e:ct(e).defaultView||window;function ad(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function id(e){return ad(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let ld=!1;function no(){return ld}function mi(e,t){if(!no())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:id(r)?r=r.host:r=r.parentNode}return!1}const oo=(e=document)=>{var t;if(!no())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function wi(e){return no()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function cd(e){var t;return typeof window=="undefined"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function sd(e){var t;return typeof window!="undefined"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xi(e){let t=null;return()=>(t==null&&(t=e()),t)}const dd=xi(function(){return sd(/^Mac/i)}),ud=xi(function(){return cd(/Android/i)});function yi(){let e=L(new Map),t=q((o,a,i,l)=>{let c=l!=null&&l.once?(...s)=>{e.current.delete(i),i(...s)}:i;e.current.set(i,{type:a,eventTarget:o,fn:c,options:l}),o.addEventListener(a,c,l)},[]),r=q((o,a,i,l)=>{var c;let s=((c=e.current.get(i))===null||c===void 0?void 0:c.fn)||i;o.removeEventListener(a,s,l),e.current.delete(i)},[]),n=q(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return Y(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function fd(e){return e.mozInputSource===0&&e.isTrusted?!0:ud()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function _i(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function pd(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function ki(e){let t=L({isFocused:!1,observer:null});vi(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=od(n=>{e==null||e(n)});return q(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,a=i=>{if(t.current.isFocused=!1,o.disabled){let l=_i(i);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let hd=!1,hr=null,ao=new Set,gr=new Map,kt=!1,io=!1;const gd={Tab:!0,Escape:!0};function lo(e,t){for(let r of ao)r(e,t)}function bd(e){return!(e.metaKey||!dd()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Gr(e){kt=!0,bd(e)&&(hr="keyboard",lo("keyboard",e))}function Gt(e){hr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(kt=!0,lo("pointer",e))}function Ei(e){fd(e)&&(kt=!0,hr="virtual")}function $i(e){e.target===window||e.target===document||hd||!e.isTrusted||(!kt&&!io&&(hr="virtual",lo("virtual",e)),kt=!1,io=!1)}function Ti(){kt=!1,io=!0}function co(e){if(typeof window=="undefined"||gr.get(_t(e)))return;const t=_t(e),r=ct(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){kt=!0,n.apply(this,arguments)},r.addEventListener("keydown",Gr,!0),r.addEventListener("keyup",Gr,!0),r.addEventListener("click",Ei,!0),t.addEventListener("focus",$i,!0),t.addEventListener("blur",Ti,!1),typeof PointerEvent!="undefined"&&(r.addEventListener("pointerdown",Gt,!0),r.addEventListener("pointermove",Gt,!0),r.addEventListener("pointerup",Gt,!0)),t.addEventListener("beforeunload",()=>{zi(e)},{once:!0}),gr.set(t,{focus:n})}const zi=(e,t)=>{const r=_t(e),n=ct(e);t&&n.removeEventListener("DOMContentLoaded",t),gr.has(r)&&(r.HTMLElement.prototype.focus=gr.get(r).focus,n.removeEventListener("keydown",Gr,!0),n.removeEventListener("keyup",Gr,!0),n.removeEventListener("click",Ei,!0),r.removeEventListener("focus",$i,!0),r.removeEventListener("blur",Ti,!1),typeof PointerEvent!="undefined"&&(n.removeEventListener("pointerdown",Gt,!0),n.removeEventListener("pointermove",Gt,!0),n.removeEventListener("pointerup",Gt,!0)),gr.delete(r))};function vd(e){const t=ct(e);let r;return t.readyState!=="loading"?co(e):(r=()=>{co(e)},t.addEventListener("DOMContentLoaded",r)),()=>zi(e,r)}typeof document!="undefined"&&vd();function Ci(){return hr!=="pointer"}const md=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function wd(e,t,r){let n=ct(r==null?void 0:r.target);const o=typeof window!="undefined"?_t(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,a=typeof window!="undefined"?_t(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window!="undefined"?_t(r==null?void 0:r.target).HTMLElement:HTMLElement,l=typeof window!="undefined"?_t(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!md.has(n.activeElement.type)||n.activeElement instanceof a||n.activeElement instanceof i&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof l&&!gd[r.key])}function xd(e,t,r){co(),Y(()=>{let n=(o,a)=>{wd(!!(r!=null&&r.isTextInput),o,a)&&e(Ci())};return ao.add(n),()=>{ao.delete(n)}},t)}function yd(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const a=q(c=>{if(c.target===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),i=ki(a),l=q(c=>{const s=ct(c.target),u=s?oo(s):oo();c.target===c.currentTarget&&u===wi(c.nativeEvent)&&(r&&r(c),o&&o(!0),i(c))},[o,r,i]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?a:void 0}}}function _d(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=L({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=yi(),c=q(d=>{d.currentTarget.contains(d.target)&&a.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(a.current.isFocusWithin=!1,l(),r&&r(d),o&&o(!1))},[r,o,a,l]),s=ki(c),u=q(d=>{if(!d.currentTarget.contains(d.target))return;const h=ct(d.target),f=oo(h);if(!a.current.isFocusWithin&&f===wi(d.nativeEvent)){n&&n(d),o&&o(!0),a.current.isFocusWithin=!0,s(d);let g=d.currentTarget;i(h,"focus",m=>{if(a.current.isFocusWithin&&!mi(g,m.target)){let w=new h.defaultView.FocusEvent("blur",{relatedTarget:m.target});pd(w,g);let x=_i(w);c(x)}},{capture:!0})}},[n,o,s,i,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:c}}}let so=!1,uo=0;function kd(){so=!0,setTimeout(()=>{so=!1},50)}function Si(e){e.pointerType==="touch"&&kd()}function Ed(){if(typeof document!="undefined")return typeof PointerEvent!="undefined"&&document.addEventListener("pointerup",Si),uo++,()=>{uo--,!(uo>0)&&typeof PointerEvent!="undefined"&&document.removeEventListener("pointerup",Si)}}function Yt(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[a,i]=F(!1),l=L({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Y(Ed,[]);let{addGlobalListener:c,removeAllGlobalListeners:s}=yi(),{hoverProps:u,triggerHoverEnd:d}=D(()=>{let h=(m,w)=>{if(l.pointerType=w,o||w==="touch"||l.isHovered||!m.currentTarget.contains(m.target))return;l.isHovered=!0;let x=m.currentTarget;l.target=x,c(ct(m.target),"pointerover",E=>{l.isHovered&&l.target&&!mi(l.target,E.target)&&f(E,E.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:x,pointerType:w}),r&&r(!0),i(!0)},f=(m,w)=>{let x=l.target;l.pointerType="",l.target=null,!(w==="touch"||!l.isHovered||!x)&&(l.isHovered=!1,s(),n&&n({type:"hoverend",target:x,pointerType:w}),r&&r(!1),i(!1))},g={};return typeof PointerEvent!="undefined"&&(g.onPointerEnter=m=>{so&&m.pointerType==="mouse"||h(m,m.pointerType)},g.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&f(m,m.pointerType)}),{hoverProps:g,triggerHoverEnd:f}},[t,r,n,o,l,c,s]);return Y(()=>{o&&d({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:u,isHovered:a}}function Kt(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=L({isFocused:!1,isFocusVisible:t||Ci()}),[a,i]=F(!1),[l,c]=F(()=>o.current.isFocused&&o.current.isFocusVisible),s=q(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),u=q(f=>{o.current.isFocused=f,i(f),s()},[s]);xd(f=>{o.current.isFocusVisible=f,s()},[],{isTextInput:r});let{focusProps:d}=yd({isDisabled:n,onFocusChange:u}),{focusWithinProps:h}=_d({isDisabled:!n,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:l,focusProps:n?h:d}}var $d=Object.defineProperty,Td=(e,t,r)=>t in e?$d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fo=(e,t,r)=>(Td(e,typeof t!="symbol"?t+"":t,r),r);let zd=class{constructor(){fo(this,"current",this.detect()),fo(this,"handoffState","pending"),fo(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window=="undefined"||typeof document=="undefined"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Et=new zd;function $t(e){var t,r;return Et.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?(r=(t=e.current)==null?void 0:t.ownerDocument)!=null?r:document:null:document}function Yr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function De(){let e=[],t={addEventListener(r,n,o,a){return r.addEventListener(n,o,a),t.add(()=>r.removeEventListener(n,o,a))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return Yr(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let a=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:a})})},group(r){let n=De();return r(n),this.add(()=>n.dispose())},add(r){return e.includes(r)||e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function st(){let[e]=F(De);return Y(()=>()=>e.dispose(),[e]),e}let de=(e,t)=>{Et.isServer?Y(e,t):We(e,t)};function Tt(e){let t=L(e);return de(()=>{t.current=e},[e]),t}let H=function(e){let t=Tt(e);return S.useCallback((...r)=>t.current(...r),[t])};function Cd(e){let t=e.width/2,r=e.height/2;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function Sd(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function br({disabled:e=!1}={}){let t=L(null),[r,n]=F(!1),o=st(),a=H(()=>{t.current=null,n(!1),o.dispose()}),i=H(l=>{if(o.dispose(),t.current===null){t.current=l.currentTarget,n(!0);{let c=$t(l.currentTarget);o.addEventListener(c,"pointerup",a,!1),o.addEventListener(c,"pointermove",s=>{if(t.current){let u=Cd(s);n(Sd(u,t.current.getBoundingClientRect()))}},!1),o.addEventListener(c,"pointercancel",a,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:i,onPointerUp:a,onClick:a}}}let Oi=ge(void 0);function dt(){return X(Oi)}function Pi({value:e,children:t}){return S.createElement(Oi.Provider,{value:e},t)}function po(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Ve(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ve),n}var qt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(qt||{}),ut=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ut||{});function le(){let e=Pd();return q(t=>Od(y({mergeRefs:e},t)),[e])}function Od({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:a=!0,name:i,mergeRefs:l}){l=l!=null?l:Nd;let c=Ni(t,e);if(a)return Kr(c,r,n,i,l);let s=o!=null?o:0;if(s&2){let u=c,{static:h=!1}=u,f=N(u,["static"]);if(h)return Kr(f,r,n,i,l)}if(s&1){let d=c,{unmount:h=!0}=d,f=N(d,["unmount"]);return Ve(h?0:1,{0(){return null},1(){return Kr(z(y({},f),{hidden:!0,style:{display:"none"}}),r,n,i,l)}})}return Kr(c,r,n,i,l)}function Kr(e,t={},r,n,o){let h=ho(e,["unmount","static"]),{as:a=r,children:i,refName:l="ref"}=h,c=N(h,["as","children","refName"]),s=e.ref!==void 0?{[l]:e.ref}:{},u=typeof i=="function"?i(t):i;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let d={};if(t){let f=!1,g=[];for(let[m,w]of Object.entries(t))typeof w=="boolean"&&(f=!0),w===!0&&g.push(m.replace(/([A-Z])/g,x=>`-${x.toLowerCase()}`));if(f){d["data-headlessui-state"]=g.join(" ");for(let m of g)d[`data-${m}`]=""}}if(a===Q&&(Object.keys(ft(c)).length>0||Object.keys(ft(d)).length>0))if(!Vt(u)||Array.isArray(u)&&u.length>1){if(Object.keys(ft(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ft(c)).concat(Object.keys(ft(d))).map(f=>`  - ${f}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(f=>`  - ${f}`).join(`
`)].join(`
`))}else{let f=u.props,g=f==null?void 0:f.className,m=typeof g=="function"?(...E)=>po(g(...E),c.className):po(g,c.className),w=m?{className:m}:{},x=Ni(u.props,ft(ho(c,["ref"])));for(let E in d)E in x&&delete d[E];return Jn(u,Object.assign({},x,d,s,{ref:o(Fd(u),s.ref)},w))}return ee(a,Object.assign({},ho(c,["ref"]),a!==Q&&s,a!==Q&&d),u)}function Pd(){let e=L([]),t=q(r=>{for(let n of e.current)n!=null&&(typeof n=="function"?n(r):n.current=r)},[]);return(...r)=>{if(!r.every(n=>n==null))return e.current=r,t}}function Nd(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function Ni(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];if(t.disabled||t["aria-disabled"])for(let n in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(n)&&(r[n]=[o=>{var a;return(a=o==null?void 0:o.preventDefault)==null?void 0:a.call(o)}]);for(let n in r)Object.assign(t,{[n](o,...a){let i=r[n];for(let l of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;l(o,...a)}}});return t}function zt(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];for(let n in r)Object.assign(t,{[n](...o){let a=r[n];for(let i of a)i==null||i(...o)}});return t}function ne(e){var t;return Object.assign(Ne(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ft(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function ho(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function Fd(e){return S.version.split(".")[0]>="19"?e.props.ref:e.ref}let Ld="button";function Rd(e,t){var r;let n=dt(),m=e,{disabled:o=n||!1,autoFocus:a=!1}=m,i=N(m,["disabled","autoFocus"]),{isFocusVisible:l,focusProps:c}=Kt({autoFocus:a}),{isHovered:s,hoverProps:u}=Yt({isDisabled:o}),{pressed:d,pressProps:h}=br({disabled:o}),f=zt({ref:t,type:(r=i.type)!=null?r:"button",disabled:o||void 0,autoFocus:a},c,u,h),g=D(()=>({disabled:o,hover:s,focus:l,active:d,autofocus:a}),[o,s,l,d,a]);return le()({ourProps:f,theirProps:i,slot:g,defaultTag:Ld,name:"Button"})}let Fi=ne(Rd);function Ad(e,t,r){let[n,o]=F(r),a=e!==void 0,i=L(a),l=L(!1),c=L(!1);return a&&!i.current&&!l.current?(l.current=!0,i.current=a):!a&&i.current&&!c.current&&(c.current=!0,i.current=a),[a?e:n,H(s=>(a||o(s),t==null?void 0:t(s)))]}function Id(e){let[t]=F(e);return t}function Li(e={},t=null,r=[]){for(let[n,o]of Object.entries(e))Ai(r,Ri(t,n),o);return r}function Ri(e,t){return e?e+"["+t+"]":t}function Ai(e,t,r){if(Array.isArray(r))for(let[n,o]of r.entries())Ai(e,Ri(t,n.toString()),o);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=="boolean"?e.push([t,r?"1":"0"]):typeof r=="string"?e.push([t,r]):typeof r=="number"?e.push([t,`${r}`]):r==null?e.push([t,""]):Li(r,t,e)}function Dd(e){var t,r;let n=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(n){for(let o of n.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(r=n.requestSubmit)==null||r.call(n)}}let Md="span";var Ct=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ct||{});function Hd(e,t){var r;let i=e,{features:n=1}=i,o=N(i,["features"]),a={ref:t,"aria-hidden":(n&2)===2?!0:(r=o["aria-hidden"])!=null?r:void 0,hidden:(n&4)===4?!0:void 0,style:y({position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},(n&4)===4&&(n&2)!==2&&{display:"none"})};return le()({ourProps:a,theirProps:o,slot:{},defaultTag:Md,name:"Hidden"})}let Xt=ne(Hd),Ii=ge(null);function jd(e){let[t,r]=F(null);return S.createElement(Ii.Provider,{value:{target:t}},e.children,S.createElement(Xt,{features:Ct.Hidden,ref:r}))}function Ud({children:e}){let t=X(Ii);if(!t)return S.createElement(S.Fragment,null,e);let{target:r}=t;return r?Br(S.createElement(S.Fragment,null,e),r):null}function Bd({data:e,form:t,disabled:r,onReset:n,overrides:o}){let[a,i]=F(null),l=st();return Y(()=>{if(n&&a)return l.addEventListener(a,"reset",n)},[a,t,n]),S.createElement(Ud,null,S.createElement(Wd,{setForm:i,formId:t}),Li(e).map(([c,s])=>S.createElement(Xt,y({features:Ct.Hidden},ft(y({key:c,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:r,name:c,value:s},o))))))}function Wd({setForm:e,formId:t}){return Y(()=>{if(t){let r=document.getElementById(t);r&&e(r)}},[e,t]),t?null:S.createElement(Xt,{features:Ct.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:r=>{if(!r)return;let n=r.closest("form");n&&e(n)}})}let Di=ge(void 0);function qr(){return X(Di)}function Vd({id:e,children:t}){return S.createElement(Di.Provider,{value:e},t)}function Mi(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&Gd(r)?!1:n}function Gd(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let Hi=Symbol();function Yd(e,t=!0){return Object.assign(e,{[Hi]:t})}function $e(...e){let t=L(e);Y(()=>{t.current=e},[e]);let r=H(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[Hi]))?void 0:r}let Xr=ge(null);Xr.displayName="DescriptionContext";function ji(){let e=X(Xr);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,ji),t}return e}function go(){var e,t;return(t=(e=X(Xr))==null?void 0:e.value)!=null?t:void 0}function Zr(){let[e,t]=F([]);return[e.length>0?e.join(" "):void 0,D(()=>function(r){let n=H(a=>(t(i=>[...i,a]),()=>t(i=>{let l=i.slice(),c=l.indexOf(a);return c!==-1&&l.splice(c,1),l}))),o=D(()=>({register:n,slot:r.slot,name:r.name,props:r.props,value:r.value}),[n,r.slot,r.name,r.props,r.value]);return S.createElement(Xr.Provider,{value:o},r.children)},[t])]}let Kd="p";function qd(e,t){let r=Ee(),n=dt(),d=e,{id:o=`headlessui-description-${r}`}=d,a=N(d,["id"]),i=ji(),l=$e(t);de(()=>i.register(o),[o,i.register]);let c=n||!1,s=D(()=>z(y({},i.slot),{disabled:c}),[i.slot,c]),u=z(y({ref:l},i.props),{id:o});return le()({ourProps:u,theirProps:a,slot:s,defaultTag:Kd,name:i.name||"Description"})}let Xd=ne(qd),Qr=Object.assign(Xd,{});var xe=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(xe||{});let Jr=ge(null);Jr.displayName="LabelContext";function bo(){let e=X(Jr);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,bo),t}return e}function en(e){var t,r,n;let o=(r=(t=X(Jr))==null?void 0:t.value)!=null?r:void 0;return((n=void 0)!=null?n:0)>0?[o,...e].filter(Boolean).join(" "):o}function vr({inherit:e=!1}={}){let t=en(),[r,n]=F([]),o=e?[t,...r].filter(Boolean):r;return[o.length>0?o.join(" "):void 0,D(()=>function(a){let i=H(c=>(n(s=>[...s,c]),()=>n(s=>{let u=s.slice(),d=u.indexOf(c);return d!==-1&&u.splice(d,1),u}))),l=D(()=>({register:i,slot:a.slot,name:a.name,props:a.props,value:a.value}),[i,a.slot,a.name,a.props,a.value]);return S.createElement(Jr.Provider,{value:l},a.children)},[n])]}let Zd="label";function Qd(e,t){var r;let n=Ee(),o=bo(),a=qr(),i=dt(),w=e,{id:l=`headlessui-label-${n}`,htmlFor:c=a!=null?a:(r=o.props)==null?void 0:r.htmlFor,passive:s=!1}=w,u=N(w,["id","htmlFor","passive"]),d=$e(t);de(()=>o.register(l),[l,o.register]);let h=H(x=>{let E=x.currentTarget;if(E instanceof HTMLLabelElement&&x.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(x),E instanceof HTMLLabelElement){let $=document.getElementById(E.htmlFor);if($){let k=$.getAttribute("disabled");if(k==="true"||k==="")return;let T=$.getAttribute("aria-disabled");if(T==="true"||T==="")return;($ instanceof HTMLInputElement&&($.type==="radio"||$.type==="checkbox")||$.role==="radio"||$.role==="checkbox"||$.role==="switch")&&$.click(),$.focus({preventScroll:!0})}}}),f=i||!1,g=D(()=>z(y({},o.slot),{disabled:f}),[o.slot,f]),m=z(y({ref:d},o.props),{id:l,htmlFor:c,onClick:h});return s&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in u&&delete u.onClick),le()({ourProps:m,theirProps:u,slot:g,defaultTag:c?Zd:"div",name:o.name||"Label"})}let Jd=ne(Qd),vo=Object.assign(Jd,{}),eu=ge(()=>{});function tu({value:e,children:t}){return S.createElement(eu.Provider,{value:e},t)}function ru(e){if(e===null)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}function nu(e,t=!1){let[r,n]=Bt(()=>({}),{}),o=D(()=>ru(e),[e,r]);return de(()=>{if(!e)return;let a=new ResizeObserver(n);return a.observe(e),()=>{a.disconnect()}},[e]),t?{width:`${o.width}px`,height:`${o.height}px`}:o}let Ui=class extends Map{constructor(t){super(),this.factory=t}get(t){let r=super.get(t);return r===void 0&&(r=this.factory(t),this.set(t,r)),r}};function Bi(e,t){let r=e(),n=new Set;return{getSnapshot(){return r},subscribe(o){return n.add(o),()=>n.delete(o)},dispatch(o,...a){let i=t[o].call(r,...a);i&&(r=i,n.forEach(l=>l()))}}}function Wi(e){return jr(e.subscribe,e.getSnapshot,e.getSnapshot)}let ou=new Ui(()=>Bi(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let r=this.slice();return r.splice(t,1),r}}));function Zt(e,t){let r=ou.get(t),n=Ee(),o=Wi(r);if(de(()=>{if(e)return r.dispatch("ADD",n),()=>r.dispatch("REMOVE",n)},[r,e]),!e)return!1;let a=o.indexOf(n),i=o.length;return a===-1&&(a=i,i+=1),a===i-1}let mo=new Map,mr=new Map;function Vi(e){var t;let r=(t=mr.get(e))!=null?t:0;return mr.set(e,r+1),r!==0?()=>Gi(e):(mo.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Gi(e))}function Gi(e){var t;let r=(t=mr.get(e))!=null?t:1;if(r===1?mr.delete(e):mr.set(e,r-1),r!==1)return;let n=mo.get(e);n&&(n["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,mo.delete(e))}function Yi(e,{allowed:t,disallowed:r}={}){let n=Zt(e,"inert-others");de(()=>{var o,a;if(!n)return;let i=De();for(let c of(o=r==null?void 0:r())!=null?o:[])c&&i.add(Vi(c));let l=(a=t==null?void 0:t())!=null?a:[];for(let c of l){if(!c)continue;let s=$t(c);if(!s)continue;let u=c.parentElement;for(;u&&u!==s.body;){for(let d of u.children)l.some(h=>d.contains(h))||i.add(Vi(d));u=u.parentElement}}return i.dispose},[n,t,r])}function Ki(e,t,r){let n=Tt(o=>{let a=o.getBoundingClientRect();a.x===0&&a.y===0&&a.width===0&&a.height===0&&r()});Y(()=>{if(!e)return;let o=t===null?null:t instanceof HTMLElement?t:t.current;if(!o)return;let a=De();if(typeof ResizeObserver!="undefined"){let i=new ResizeObserver(()=>n.current(o));i.observe(o),a.add(()=>i.disconnect())}if(typeof IntersectionObserver!="undefined"){let i=new IntersectionObserver(()=>n.current(o));i.observe(o),a.add(()=>i.disconnect())}return()=>a.dispose()},[t,n,e])}let tn=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),au=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Me=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(Me||{}),wo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(wo||{}),iu=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(iu||{});function qi(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(tn)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}function lu(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(au)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var xo=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(xo||{});function yo(e,t=0){var r;return e===((r=$t(e))==null?void 0:r.body)?!1:Ve(t,{0(){return e.matches(tn)},1(){let n=e;for(;n!==null;){if(n.matches(tn))return!0;n=n.parentElement}return!1}})}function Xi(e){let t=$t(e);De().nextFrame(()=>{t&&!yo(t.activeElement,0)&&Ge(e)})}var cu=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(cu||{});typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Ge(e){e==null||e.focus({preventScroll:!0})}let su=["textarea","input"].join(",");function du(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,su))!=null?r:!1}function Zi(e,t=r=>r){return e.slice().sort((r,n)=>{let o=t(r),a=t(n);if(o===null||a===null)return 0;let i=o.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function uu(e,t){return Qt(qi(),t,{relativeTo:e})}function Qt(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:o=[]}={}){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?r?Zi(e):e:t&64?lu(e):qi(e);o.length>0&&i.length>1&&(i=i.filter(f=>!o.some(g=>g!=null&&"current"in g?(g==null?void 0:g.current)===f:g===f))),n=n!=null?n:a.activeElement;let l=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(n))-1;if(t&4)return Math.max(0,i.indexOf(n))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=t&32?{preventScroll:!0}:{},u=0,d=i.length,h;do{if(u>=d||u+d<=0)return 0;let f=c+u;if(t&16)f=(f+d)%d;else{if(f<0)return 3;if(f>=d)return 1}h=i[f],h==null||h.focus(s),u+=l}while(h!==a.activeElement);return t&6&&du(h)&&h.select(),2}function Qi(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function fu(){return/Android/gi.test(window.navigator.userAgent)}function pu(){return Qi()||fu()}function wr(e,t,r,n){let o=Tt(r);Y(()=>{if(!e)return;function a(i){o.current(i)}return document.addEventListener(t,a,n),()=>document.removeEventListener(t,a,n)},[e,t,n])}function Ji(e,t,r,n){let o=Tt(r);Y(()=>{if(!e)return;function a(i){o.current(i)}return window.addEventListener(t,a,n),()=>window.removeEventListener(t,a,n)},[e,t,n])}const el=30;function tl(e,t,r){let n=Zt(e,"outside-click"),o=Tt(r),a=q(function(c,s){if(c.defaultPrevented)return;let u=s(c);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let d=function h(f){return typeof f=="function"?h(f()):Array.isArray(f)||f instanceof Set?f:[f]}(t);for(let h of d)if(h!==null&&(h.contains(u)||c.composed&&c.composedPath().includes(h)))return;return!yo(u,xo.Loose)&&u.tabIndex!==-1&&c.preventDefault(),o.current(c,u)},[o,t]),i=L(null);wr(n,"pointerdown",c=>{var s,u;i.current=((u=(s=c.composedPath)==null?void 0:s.call(c))==null?void 0:u[0])||c.target},!0),wr(n,"mousedown",c=>{var s,u;i.current=((u=(s=c.composedPath)==null?void 0:s.call(c))==null?void 0:u[0])||c.target},!0),wr(n,"click",c=>{pu()||i.current&&(a(c,()=>i.current),i.current=null)},!0);let l=L({x:0,y:0});wr(n,"touchstart",c=>{l.current.x=c.touches[0].clientX,l.current.y=c.touches[0].clientY},!0),wr(n,"touchend",c=>{let s={x:c.changedTouches[0].clientX,y:c.changedTouches[0].clientY};if(!(Math.abs(s.x-l.current.x)>=el||Math.abs(s.y-l.current.y)>=el))return a(c,()=>c.target instanceof HTMLElement?c.target:null)},!0),Ji(n,"blur",c=>a(c,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Jt(...e){return D(()=>$t(...e),[...e])}function rl(e,t,r,n){let o=Tt(r);Y(()=>{e=e!=null?e:window;function a(i){o.current(i)}return e.addEventListener(t,a,n),()=>e.removeEventListener(t,a,n)},[e,t,n])}function nl(e,t){return D(()=>{var r;if(e.type)return e.type;let n=(r=e.as)!=null?r:"button";if(typeof n=="string"&&n.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function hu(){let e;return{before({doc:t}){var r;let n=t.documentElement,o=(r=t.defaultView)!=null?r:window;e=Math.max(0,o.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,o=Math.max(0,n.clientWidth-n.offsetWidth),a=Math.max(0,e-o);r.style(n,"paddingRight",`${a}px`)}}}function gu(){return Qi()?{before({doc:e,d:t,meta:r}){function n(o){return r.containers.flatMap(a=>a()).some(a=>a.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=De();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let a=(o=window.scrollY)!=null?o:window.pageYOffset,i=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let c=l.target.closest("a");if(!c)return;let{hash:s}=new URL(c.href),u=e.querySelector(s);u&&!n(u)&&(i=u)}catch(c){}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(n(l.target)){let c=l.target;for(;c.parentElement&&n(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(n(l.target)){let c=l.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let c=(l=window.scrollY)!=null?l:window.pageYOffset;a!==c&&window.scrollTo(0,a),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function bu(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function vu(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let St=Bi(()=>new Map,{PUSH(e,t){var r;let n=(r=this.get(e))!=null?r:{doc:e,count:0,d:De(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:vu(r)},o=[gu(),hu(),bu()];o.forEach(({before:a})=>a==null?void 0:a(n)),o.forEach(({after:a})=>a==null?void 0:a(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});St.subscribe(()=>{let e=St.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let n=t.get(r.doc)==="hidden",o=r.count!==0;(o&&!n||!o&&n)&&St.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),r.count===0&&St.dispatch("TEARDOWN",r)}});function mu(e,t,r=()=>({containers:[]})){let n=Wi(St),o=t?n.get(t):void 0,a=o?o.count>0:!1;return de(()=>{if(!(!t||!e))return St.dispatch("PUSH",t,r),()=>St.dispatch("POP",t,r)},[e,t]),a}function ol(e,t,r=()=>[document.body]){let n=Zt(e,"scroll-lock");mu(n,t,o=>{var a;return{containers:[...(a=o.containers)!=null?a:[],r]}})}function al(e){return[e.screenX,e.screenY]}function wu(){let e=L([-1,-1]);return{wasMoved(t){let r=al(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=al(t)}}}function xu(e=0){let[t,r]=F(e),n=q(c=>r(c),[t]),o=q(c=>r(s=>s|c),[t]),a=q(c=>(t&c)===c,[t]),i=q(c=>r(s=>s&~c),[r]),l=q(c=>r(s=>s^c),[r]);return{flags:t,setFlag:n,addFlag:o,hasFlag:a,removeFlag:i,toggleFlag:l}}var yu={},il,ll;typeof process!="undefined"&&typeof globalThis!="undefined"&&typeof Element!="undefined"&&((il=process==null?void 0:yu)==null?void 0:il.NODE_ENV)==="test"&&typeof((ll=Element==null?void 0:Element.prototype)==null?void 0:ll.getAnimations)=="undefined"&&(Element.prototype.getAnimations=function(){return[]});var _u=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(_u||{});function cl(e){let t={};for(let r in e)e[r]===!0&&(t[`data-${r}`]="");return t}function sl(e,t,r,n){let[o,a]=F(r),{hasFlag:i,addFlag:l,removeFlag:c}=xu(e&&o?3:0),s=L(!1),u=L(!1),d=st();return de(()=>{var h;if(e){if(r&&a(!0),!t){r&&l(3);return}return(h=n==null?void 0:n.start)==null||h.call(n,r),ku(t,{inFlight:s,prepare(){u.current?u.current=!1:u.current=s.current,s.current=!0,!u.current&&(r?(l(3),c(4)):(l(4),c(2)))},run(){u.current?r?(c(3),l(4)):(c(4),l(3)):r?c(1):l(1)},done(){var f;u.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(s.current=!1,c(7),r||a(!1),(f=n==null?void 0:n.end)==null||f.call(n,r))}})}},[e,r,t,d]),e?[o,{closed:i(1),enter:i(2),leave:i(4),transition:i(2)||i(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function ku(e,{prepare:t,run:r,done:n,inFlight:o}){let a=De();return $u(e,{prepare:t,inFlight:o}),a.nextFrame(()=>{r(),a.requestAnimationFrame(()=>{a.add(Eu(e,n))})}),a.dispose}function Eu(e,t){var r,n;let o=De();if(!e)return o.dispose;let a=!1;o.add(()=>{a=!0});let i=(n=(r=e.getAnimations)==null?void 0:r.call(e).filter(l=>l instanceof CSSTransition))!=null?n:[];return i.length===0?(t(),o.dispose):(Promise.allSettled(i.map(l=>l.finished)).then(()=>{a||t()}),o.dispose)}function $u(e,{inFlight:t,prepare:r}){if(t!=null&&t.current){r();return}let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}function Tu(e,{container:t,accept:r,walk:n}){let o=L(r),a=L(n);Y(()=>{o.current=r,a.current=n},[r,n]),de(()=>{if(!t||!e)return;let i=$t(t);if(!i)return;let l=o.current,c=a.current,s=Object.assign(d=>l(d),{acceptNode:l}),u=i.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;u.nextNode();)c(u.currentNode)},[t,e,o,a])}function _o(e,t){let r=L([]),n=H(e);Y(()=>{let o=[...r.current];for(let[a,i]of t.entries())if(r.current[a]!==i){let l=n(t,o);return r.current=t,l}},[n,...t])}function rn(){return typeof window!="undefined"}function er(e){return dl(e)?(e.nodeName||"").toLowerCase():"#document"}function Fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ye(e){var t;return(t=(dl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dl(e){return rn()?e instanceof Node||e instanceof Fe(e).Node:!1}function Oe(e){return rn()?e instanceof Element||e instanceof Fe(e).Element:!1}function Ke(e){return rn()?e instanceof HTMLElement||e instanceof Fe(e).HTMLElement:!1}function ul(e){return!rn()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Fe(e).ShadowRoot}function xr(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=He(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function zu(e){return["table","td","th"].includes(er(e))}function nn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(r){return!1}})}function ko(e){const t=Eo(),r=Oe(e)?He(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Cu(e){let t=pt(e);for(;Ke(t)&&!tr(t);){if(ko(t))return t;if(nn(t))return null;t=pt(t)}return null}function Eo(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function tr(e){return["html","body","#document"].includes(er(e))}function He(e){return Fe(e).getComputedStyle(e)}function on(e){return Oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(er(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ul(e)&&e.host||Ye(e);return ul(t)?t.host:t}function fl(e){const t=pt(e);return tr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ke(t)&&xr(t)?t:fl(t)}function yr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=fl(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=Fe(o);if(a){const l=$o(i);return t.concat(i,i.visualViewport||[],xr(o)?o:[],l&&r?yr(l):[])}return t.concat(o,yr(o,[],r))}function $o(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Su(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}const Ot=Math.min,ze=Math.max,_r=Math.round,an=Math.floor,qe=e=>({x:e,y:e}),Ou={left:"right",right:"left",bottom:"top",top:"bottom"},Pu={start:"end",end:"start"};function pl(e,t,r){return ze(e,Ot(t,r))}function rr(e,t){return typeof e=="function"?e(t):e}function ht(e){return e.split("-")[0]}function kr(e){return e.split("-")[1]}function hl(e){return e==="x"?"y":"x"}function gl(e){return e==="y"?"height":"width"}function Pt(e){return["top","bottom"].includes(ht(e))?"y":"x"}function bl(e){return hl(Pt(e))}function Nu(e,t,r){r===void 0&&(r=!1);const n=kr(e),o=bl(e),a=gl(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=ln(i)),[i,ln(i)]}function Fu(e){const t=ln(e);return[To(e),t,To(t)]}function To(e){return e.replace(/start|end/g,t=>Pu[t])}function Lu(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:i;default:return[]}}function Ru(e,t,r,n){const o=kr(e);let a=Lu(ht(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(To)))),a}function ln(e){return e.replace(/left|right|bottom|top/g,t=>Ou[t])}function Au(e){return y({top:0,right:0,bottom:0,left:0},e)}function Iu(e){return typeof e!="number"?Au(e):{top:e,right:e,bottom:e,left:e}}function cn(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function vl(e,t,r){let{reference:n,floating:o}=e;const a=Pt(t),i=bl(t),l=gl(i),c=ht(t),s=a==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,h=n[l]/2-o[l]/2;let f;switch(c){case"top":f={x:u,y:n.y-o.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-o.width,y:d};break;default:f={x:n.x,y:n.y}}switch(kr(t)){case"start":f[i]-=h*(r&&s?-1:1);break;case"end":f[i]+=h*(r&&s?-1:1);break}return f}const Du=(e,t,r)=>Ce(this,null,function*(){const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,l=a.filter(Boolean),c=yield i.isRTL==null?void 0:i.isRTL(t);let s=yield i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=vl(s,n,c),h=n,f={},g=0;for(let m=0;m<l.length;m++){const{name:w,fn:x}=l[m],{x:E,y:$,data:k,reset:T}=yield x({x:u,y:d,initialPlacement:n,placement:h,strategy:o,middlewareData:f,rects:s,platform:i,elements:{reference:e,floating:t}});u=E!=null?E:u,d=$!=null?$:d,f=z(y({},f),{[w]:y(y({},f[w]),k)}),T&&g<=50&&(g++,typeof T=="object"&&(T.placement&&(h=T.placement),T.rects&&(s=T.rects===!0?yield i.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:u,y:d}=vl(s,h,c)),m=-1)}return{x:u,y:d,placement:h,strategy:o,middlewareData:f}});function sn(e,t){return Ce(this,null,function*(){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:l,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=rr(t,e),g=Iu(f),w=l[h?d==="floating"?"reference":"floating":d],x=cn(yield a.getClippingRect({element:(r=yield a.isElement==null?void 0:a.isElement(w))==null||r?w:w.contextElement||(yield a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:s,rootBoundary:u,strategy:c})),E=d==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,$=yield a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating),k=(yield a.isElement==null?void 0:a.isElement($))?(yield a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},T=cn(a.convertOffsetParentRelativeRectToViewportRelativeRect?yield a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:E,offsetParent:$,strategy:c}):E);return{top:(x.top-T.top+g.top)/k.y,bottom:(T.bottom-x.bottom+g.bottom)/k.y,left:(x.left-T.left+g.left)/k.x,right:(T.right-x.right+g.right)/k.x}})}const Mu=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(r){return Ce(this,null,function*(){var n,o;const{placement:a,middlewareData:i,rects:l,initialPlacement:c,platform:s,elements:u}=r,ve=rr(e,r),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:w=!0}=ve,x=N(ve,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const E=ht(a),$=Pt(c),k=ht(c)===c,T=yield s.isRTL==null?void 0:s.isRTL(u.floating),C=f||(k||!w?[ln(c)]:Fu(c)),O=m!=="none";!f&&O&&C.push(...Ru(c,w,m,T));const W=[c,...C],j=yield sn(r,x),U=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&U.push(j[E]),h){const oe=Nu(a,l,T);U.push(j[oe[0]],j[oe[1]])}if(M=[...M,{placement:a,overflows:U}],!U.every(oe=>oe<=0)){var R,G;const oe=(((R=i.flip)==null?void 0:R.index)||0)+1,ye=W[oe];if(ye)return{data:{index:oe,overflows:M},reset:{placement:ye}};let Z=(G=M.filter(K=>K.overflows[0]<=0).sort((K,P)=>K.overflows[1]-P.overflows[1])[0])==null?void 0:G.placement;if(!Z)switch(g){case"bestFit":{var te;const K=(te=M.filter(P=>{if(O){const ce=Pt(P.placement);return ce===$||ce==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(ce=>ce>0).reduce((ce,ae)=>ce+ae,0)]).sort((P,ce)=>P[1]-ce[1])[0])==null?void 0:te[0];K&&(Z=K);break}case"initialPlacement":Z=c;break}if(a!==Z)return{reset:{placement:Z}}}return{}})}}};function Hu(e,t){return Ce(this,null,function*(){const{placement:r,platform:n,elements:o}=e,a=yield n.isRTL==null?void 0:n.isRTL(o.floating),i=ht(r),l=kr(r),c=Pt(r)==="y",s=["left","top"].includes(i)?-1:1,u=a&&c?-1:1,d=rr(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof g=="number"&&(f=l==="end"?g*-1:g),c?{x:f*u,y:h*s}:{x:h*s,y:f*u}})}const ju=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(r){return Ce(this,null,function*(){var n,o;const{x:a,y:i,placement:l,middlewareData:c}=r,s=yield Hu(r,e);return l===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:a+s.x,y:i+s.y,data:z(y({},s),{placement:l})}})}}},Uu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(r){return Ce(this,null,function*(){const{x:n,y:o,placement:a}=r,x=rr(e,r),{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:E=>{let{x:$,y:k}=E;return{x:$,y:k}}}}=x,s=N(x,["mainAxis","crossAxis","limiter"]),u={x:n,y:o},d=yield sn(r,s),h=Pt(ht(a)),f=hl(h);let g=u[f],m=u[h];if(i){const E=f==="y"?"top":"left",$=f==="y"?"bottom":"right",k=g+d[E],T=g-d[$];g=pl(k,g,T)}if(l){const E=h==="y"?"top":"left",$=h==="y"?"bottom":"right",k=m+d[E],T=m-d[$];m=pl(k,m,T)}const w=c.fn(z(y({},r),{[f]:g,[h]:m}));return z(y({},w),{data:{x:w.x-n,y:w.y-o,enabled:{[f]:i,[h]:l}}})})}}},Bu=function(e){return e===void 0&&(e={}),{name:"size",options:e,fn(r){return Ce(this,null,function*(){var n,o;const{placement:a,rects:i,platform:l,elements:c}=r,M=rr(e,r),{apply:s=()=>{}}=M,u=N(M,["apply"]),d=yield sn(r,u),h=ht(a),f=kr(a),g=Pt(a)==="y",{width:m,height:w}=i.floating;let x,E;h==="top"||h==="bottom"?(x=h,E=f===((yield l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(E=h,x=f==="end"?"top":"bottom");const $=w-d.top-d.bottom,k=m-d.left-d.right,T=Ot(w-d[x],$),C=Ot(m-d[E],k),O=!r.middlewareData.shift;let W=T,j=C;if((n=r.middlewareData.shift)!=null&&n.enabled.x&&(j=k),(o=r.middlewareData.shift)!=null&&o.enabled.y&&(W=$),O&&!f){const R=ze(d.left,0),G=ze(d.right,0),te=ze(d.top,0),ve=ze(d.bottom,0);g?j=m-2*(R!==0||G!==0?R+G:ze(d.left,d.right)):W=w-2*(te!==0||ve!==0?te+ve:ze(d.top,d.bottom))}yield s(z(y({},r),{availableWidth:j,availableHeight:W}));const U=yield l.getDimensions(c.floating);return m!==U.width||w!==U.height?{reset:{rects:!0}}:{}})}}};function ml(e){const t=He(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ke(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,l=_r(r)!==a||_r(n)!==i;return l&&(r=a,n=i),{width:r,height:n,$:l}}function zo(e){return Oe(e)?e:e.contextElement}function nr(e){const t=zo(e);if(!Ke(t))return qe(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=ml(t);let i=(a?_r(r.width):r.width)/n,l=(a?_r(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Wu=qe(0);function wl(e){const t=Fe(e);return!Eo()||!t.visualViewport?Wu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vu(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Fe(e)?!1:t}function Nt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=zo(e);let i=qe(1);t&&(n?Oe(n)&&(i=nr(n)):i=nr(e));const l=Vu(a,r,n)?wl(a):qe(0);let c=(o.left+l.x)/i.x,s=(o.top+l.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const h=Fe(a),f=n&&Oe(n)?Fe(n):n;let g=h,m=$o(g);for(;m&&n&&f!==g;){const w=nr(m),x=m.getBoundingClientRect(),E=He(m),$=x.left+(m.clientLeft+parseFloat(E.paddingLeft))*w.x,k=x.top+(m.clientTop+parseFloat(E.paddingTop))*w.y;c*=w.x,s*=w.y,u*=w.x,d*=w.y,c+=$,s+=k,g=Fe(m),m=$o(g)}}return cn({width:u,height:d,x:c,y:s})}function Co(e,t){const r=on(e).scrollLeft;return t?t.left+r:Nt(Ye(e)).left+r}function xl(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:Co(e,n)),a=n.top+t.scrollTop;return{x:o,y:a}}function Gu(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=Ye(n),l=t?nn(t.floating):!1;if(n===i||l&&a)return r;let c={scrollLeft:0,scrollTop:0},s=qe(1);const u=qe(0),d=Ke(n);if((d||!d&&!a)&&((er(n)!=="body"||xr(i))&&(c=on(n)),Ke(n))){const f=Nt(n);s=nr(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}const h=i&&!d&&!a?xl(i,c,!0):qe(0);return{width:r.width*s.x,height:r.height*s.y,x:r.x*s.x-c.scrollLeft*s.x+u.x+h.x,y:r.y*s.y-c.scrollTop*s.y+u.y+h.y}}function Yu(e){return Array.from(e.getClientRects())}function Ku(e){const t=Ye(e),r=on(e),n=e.ownerDocument.body,o=ze(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ze(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Co(e);const l=-r.scrollTop;return He(n).direction==="rtl"&&(i+=ze(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:l}}function qu(e,t){const r=Fe(e),n=Ye(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,l=0,c=0;if(o){a=o.width,i=o.height;const s=Eo();(!s||s&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:l,y:c}}function Xu(e,t){const r=Nt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ke(e)?nr(e):qe(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,c=o*a.x,s=n*a.y;return{width:i,height:l,x:c,y:s}}function yl(e,t,r){let n;if(t==="viewport")n=qu(e,r);else if(t==="document")n=Ku(Ye(e));else if(Oe(t))n=Xu(t,r);else{const o=wl(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return cn(n)}function _l(e,t){const r=pt(e);return r===t||!Oe(r)||tr(r)?!1:He(r).position==="fixed"||_l(r,t)}function Zu(e,t){const r=t.get(e);if(r)return r;let n=yr(e,[],!1).filter(l=>Oe(l)&&er(l)!=="body"),o=null;const a=He(e).position==="fixed";let i=a?pt(e):e;for(;Oe(i)&&!tr(i);){const l=He(i),c=ko(i);!c&&l.position==="fixed"&&(o=null),(a?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xr(i)&&!c&&_l(e,i))?n=n.filter(u=>u!==i):o=l,i=pt(i)}return t.set(e,n),n}function Qu(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?nn(t)?[]:Zu(t,this._c):[].concat(r),n],l=i[0],c=i.reduce((s,u)=>{const d=yl(t,u,o);return s.top=ze(d.top,s.top),s.right=Ot(d.right,s.right),s.bottom=Ot(d.bottom,s.bottom),s.left=ze(d.left,s.left),s},yl(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ju(e){const{width:t,height:r}=ml(e);return{width:t,height:r}}function ef(e,t,r){const n=Ke(t),o=Ye(t),a=r==="fixed",i=Nt(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=qe(0);if(n||!n&&!a)if((er(t)!=="body"||xr(o))&&(l=on(t)),n){const h=Nt(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&(c.x=Co(o));const s=o&&!n&&!a?xl(o,l):qe(0),u=i.left+l.scrollLeft-c.x-s.x,d=i.top+l.scrollTop-c.y-s.y;return{x:u,y:d,width:i.width,height:i.height}}function So(e){return He(e).position==="static"}function kl(e,t){if(!Ke(e)||He(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ye(e)===r&&(r=r.ownerDocument.body),r}function El(e,t){const r=Fe(e);if(nn(e))return r;if(!Ke(e)){let o=pt(e);for(;o&&!tr(o);){if(Oe(o)&&!So(o))return o;o=pt(o)}return r}let n=kl(e,t);for(;n&&zu(n)&&So(n);)n=kl(n,t);return n&&tr(n)&&So(n)&&!ko(n)?r:n||Cu(e)||r}const tf=function(e){return Ce(this,null,function*(){const t=this.getOffsetParent||El,r=this.getDimensions,n=yield r(e.floating);return{reference:ef(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}})};function rf(e){return He(e).direction==="rtl"}const nf={convertOffsetParentRelativeRectToViewportRelativeRect:Gu,getDocumentElement:Ye,getClippingRect:Qu,getOffsetParent:El,getElementRects:tf,getClientRects:Yu,getDimensions:Ju,getScale:nr,isElement:Oe,isRTL:rf};function $l(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function of(e,t){let r=null,n;const o=Ye(e);function a(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const s=e.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=s;if(l||t(),!h||!f)return;const g=an(d),m=an(o.clientWidth-(u+h)),w=an(o.clientHeight-(d+f)),x=an(u),$={rootMargin:-g+"px "+-m+"px "+-w+"px "+-x+"px",threshold:ze(0,Ot(1,c))||1};let k=!0;function T(C){const O=C[0].intersectionRatio;if(O!==c){if(!k)return i();O?i(!1,O):n=setTimeout(()=>{i(!1,1e-7)},1e3)}O===1&&!$l(s,e.getBoundingClientRect())&&i(),k=!1}try{r=new IntersectionObserver(T,z(y({},$),{root:o.ownerDocument}))}catch(C){r=new IntersectionObserver(T,$)}r.observe(e)}return i(!0),a}function af(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,s=zo(e),u=o||a?[...s?yr(s):[],...yr(t)]:[];u.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const d=s&&l?of(s,r):null;let h=-1,f=null;i&&(f=new ResizeObserver(x=>{let[E]=x;E&&E.target===s&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var $;($=f)==null||$.observe(t)})),r()}),s&&!c&&f.observe(s),f.observe(t));let g,m=c?Nt(e):null;c&&w();function w(){const x=Nt(e);m&&!$l(m,x)&&r(),m=x,g=requestAnimationFrame(w)}return r(),()=>{var x;u.forEach(E=>{o&&E.removeEventListener("scroll",r),a&&E.removeEventListener("resize",r)}),d==null||d(),(x=f)==null||x.disconnect(),f=null,c&&cancelAnimationFrame(g)}}const Oo=sn,lf=ju,cf=Uu,sf=Mu,df=Bu,uf=(e,t,r)=>{const n=new Map,o=y({platform:nf},r),a=z(y({},o.platform),{_c:n});return Du(e,t,z(y({},o),{platform:a}))};var dn=typeof document!="undefined"?We:Y;function un(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!un(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!un(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Tl(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zl(e,t){const r=Tl(e);return Math.round(t*r)/r}function Po(e){const t=L(e);return dn(()=>{t.current=e}),t}function ff(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:c,open:s}=e,[u,d]=F({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=F(n);un(h,n)||f(n);const[g,m]=F(null),[w,x]=F(null),E=q(Z=>{Z!==C.current&&(C.current=Z,m(Z))},[]),$=q(Z=>{Z!==O.current&&(O.current=Z,x(Z))},[]),k=a||g,T=i||w,C=L(null),O=L(null),W=L(u),j=c!=null,U=Po(c),M=Po(o),R=Po(s),G=q(()=>{if(!C.current||!O.current)return;const Z={placement:t,strategy:r,middleware:h};M.current&&(Z.platform=M.current),uf(C.current,O.current,Z).then(K=>{const P=z(y({},K),{isPositioned:R.current!==!1});te.current&&!un(W.current,P)&&(W.current=P,Qe(()=>{d(P)}))})},[h,t,r,M,R]);dn(()=>{s===!1&&W.current.isPositioned&&(W.current.isPositioned=!1,d(Z=>z(y({},Z),{isPositioned:!1})))},[s]);const te=L(!1);dn(()=>(te.current=!0,()=>{te.current=!1}),[]),dn(()=>{if(k&&(C.current=k),T&&(O.current=T),k&&T){if(U.current)return U.current(k,T,G);G()}},[k,T,G,U,j]);const ve=D(()=>({reference:C,floating:O,setReference:E,setFloating:$}),[E,$]),oe=D(()=>({reference:k,floating:T}),[k,T]),ye=D(()=>{const Z={position:r,left:0,top:0};if(!oe.floating)return Z;const K=zl(oe.floating,u.x),P=zl(oe.floating,u.y);return l?y(z(y({},Z),{transform:"translate("+K+"px, "+P+"px)"}),Tl(oe.floating)>=1.5&&{willChange:"transform"}):{position:r,left:K,top:P}},[r,l,oe.floating,u.x,u.y]);return D(()=>z(y({},u),{update:G,refs:ve,elements:oe,floatingStyles:ye}),[u,G,ve,oe,ye])}const Cl=(e,t)=>z(y({},lf(e)),{options:[e,t]}),pf=(e,t)=>z(y({},cf(e)),{options:[e,t]}),hf=(e,t)=>z(y({},sf(e)),{options:[e,t]}),gf=(e,t)=>z(y({},df(e)),{options:[e,t]}),Sl=y({},Wr),bf=Sl.useInsertionEffect||(e=>e());function Ol(e){const t=L(()=>{});return bf(()=>{t.current=e}),q(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current==null?void 0:t.current(...n)},[])}var No=typeof document!="undefined"?We:Y;let Pl=!1,vf=0;const Nl=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+vf++;function mf(){const[e,t]=F(()=>Pl?Nl():void 0);return No(()=>{e==null&&t(Nl())},[]),Y(()=>{Pl=!0},[]),e}const wf=Sl.useId||mf;function xf(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,((n=e.get(t))==null?void 0:n.filter(o=>o!==r))||[])}}}const yf=ge(null),_f=ge(null),kf=()=>{var e;return((e=X(yf))==null?void 0:e.id)||null},Ef=()=>X(_f),$f="data-floating-ui-focusable";function Tf(e){const{open:t=!1,onOpenChange:r,elements:n}=e,o=wf(),a=L({}),[i]=F(()=>xf()),l=kf()!=null,[c,s]=F(n.reference),u=Ol((f,g,m)=>{a.current.openEvent=f?g:void 0,i.emit("openchange",{open:f,event:g,reason:m,nested:l}),r==null||r(f,g,m)}),d=D(()=>({setPositionReference:s}),[]),h=D(()=>({reference:c||n.reference||null,floating:n.floating||null,domReference:n.reference}),[c,n.reference,n.floating]);return D(()=>({dataRef:a,open:t,onOpenChange:u,elements:h,events:i,floatingId:o,refs:d}),[t,u,h,i,o,d])}function zf(e){e===void 0&&(e={});const{nodeId:t}=e,r=Tf(z(y({},e),{elements:y({reference:null,floating:null},e.elements)})),n=e.rootContext||r,o=n.elements,[a,i]=F(null),[l,c]=F(null),u=(o==null?void 0:o.domReference)||a,d=L(null),h=Ef();No(()=>{u&&(d.current=u)},[u]);const f=ff(z(y({},e),{elements:y(y({},o),l&&{reference:l})})),g=q($=>{const k=Oe($)?{getBoundingClientRect:()=>$.getBoundingClientRect(),contextElement:$}:$;c(k),f.refs.setReference(k)},[f.refs]),m=q($=>{(Oe($)||$===null)&&(d.current=$,i($)),(Oe(f.refs.reference.current)||f.refs.reference.current===null||$!==null&&!Oe($))&&f.refs.setReference($)},[f.refs]),w=D(()=>z(y({},f.refs),{setReference:m,setPositionReference:g,domReference:d}),[f.refs,m,g]),x=D(()=>z(y({},f.elements),{domReference:u}),[f.elements,u]),E=D(()=>z(y(y({},f),n),{refs:w,elements:x,nodeId:t}),[f,w,x,t,n]);return No(()=>{n.dataRef.current.floatingContext=E;const $=h==null?void 0:h.nodesRef.current.find(k=>k.id===t);$&&($.context=E)}),D(()=>z(y({},f),{context:E,refs:w,elements:x}),[f,w,x,E])}const Fo="active",Lo="selected";function Ro(e,t,r){const n=new Map,o=r==="item";let a=e;if(o&&e){const i=e,{[Fo]:l,[Lo]:c}=i;a=N(i,[ha(Fo),ha(Lo)])}return y(y(y({},r==="floating"&&{tabIndex:-1,[$f]:""}),a),t.map(l=>{const c=l?l[r]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((l,c)=>(c&&Object.entries(c).forEach(s=>{let[u,d]=s;if(!(o&&[Fo,Lo].includes(u)))if(u.indexOf("on")===0){if(n.has(u)||n.set(u,[]),typeof d=="function"){var h;(h=n.get(u))==null||h.push(d),l[u]=function(){for(var f,g=arguments.length,m=new Array(g),w=0;w<g;w++)m[w]=arguments[w];return(f=n.get(u))==null?void 0:f.map(x=>x(...m)).find(x=>x!==void 0)}}}else l[u]=d}),l),{}))}function Cf(e){e===void 0&&(e=[]);const t=e.map(l=>l==null?void 0:l.reference),r=e.map(l=>l==null?void 0:l.floating),n=e.map(l=>l==null?void 0:l.item),o=q(l=>Ro(l,e,"reference"),t),a=q(l=>Ro(l,e,"floating"),r),i=q(l=>Ro(l,e,"item"),n);return D(()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i}),[o,a,i])}function Fl(e,t){return z(y({},e),{rects:z(y({},e.rects),{floating:z(y({},e.rects.floating),{height:t})})})}const Sf=e=>({name:"inner",options:e,fn(r){return Ce(this,null,function*(){const R=rr(e,r),{listRef:n,overflowRef:o,onFallbackChange:a,offset:i=0,index:l=0,minItemsVisible:c=4,referenceOverflowThreshold:s=0,scrollRef:u}=R,d=N(R,["listRef","overflowRef","onFallbackChange","offset","index","minItemsVisible","referenceOverflowThreshold","scrollRef"]),{rects:h,elements:{floating:f}}=r,g=n.current[l],m=(u==null?void 0:u.current)||f,w=f.clientTop||m.clientTop,x=f.clientTop!==0,E=m.clientTop!==0,$=f===m;if(!g)return{};const k=y(y({},r),yield Cl(-g.offsetTop-f.clientTop-h.reference.height/2-g.offsetHeight/2-i).fn(r)),T=yield Oo(Fl(k,m.scrollHeight+w+f.clientTop),d),C=yield Oo(k,z(y({},d),{elementContext:"reference"})),O=ze(0,T.top),W=k.y+O,M=(m.scrollHeight>m.clientHeight?G=>G:_r)(ze(0,m.scrollHeight+(x&&$||E?w*2:0)-O-ze(0,T.bottom)));if(m.style.maxHeight=M+"px",m.scrollTop=O,a){const G=m.offsetHeight<g.offsetHeight*Ot(c,n.current.length)-1||C.top>=-s||C.bottom>=-s;Qe(()=>a(G))}return o&&(o.current=yield Oo(Fl(z(y({},k),{y:W}),m.offsetHeight+w+f.clientTop),d)),{y:W}})}});function Of(e,t){const{open:r,elements:n}=e,{enabled:o=!0,overflowRef:a,scrollRef:i,onChange:l}=t,c=Ol(l),s=L(!1),u=L(null),d=L(null);Y(()=>{if(!o)return;function f(m){if(m.ctrlKey||!g||a.current==null)return;const w=m.deltaY,x=a.current.top>=-.5,E=a.current.bottom>=-.5,$=g.scrollHeight-g.clientHeight,k=w<0?-1:1,T=w<0?"max":"min";g.scrollHeight<=g.clientHeight||(!x&&w>0||!E&&w<0?(m.preventDefault(),Qe(()=>{c(C=>C+Math[T](w,$*k))})):/firefox/i.test(Su())&&(g.scrollTop+=w))}const g=(i==null?void 0:i.current)||n.floating;if(r&&g)return g.addEventListener("wheel",f),requestAnimationFrame(()=>{u.current=g.scrollTop,a.current!=null&&(d.current=y({},a.current))}),()=>{u.current=null,d.current=null,g.removeEventListener("wheel",f)}},[o,r,n.floating,a,i,c]);const h=D(()=>({onKeyDown(){s.current=!0},onWheel(){s.current=!1},onPointerMove(){s.current=!1},onScroll(){const f=(i==null?void 0:i.current)||n.floating;if(!(!a.current||!f||!s.current)){if(u.current!==null){const g=f.scrollTop-u.current;(a.current.bottom<-.5&&g<-1||a.current.top<-.5&&g>1)&&Qe(()=>c(m=>m+g))}requestAnimationFrame(()=>{u.current=f.scrollTop})}}}),[n.floating,c,a,i]);return D(()=>o?{floating:h}:{},[o,h])}let or=ge({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});or.displayName="FloatingContext";let Ao=ge(null);Ao.displayName="PlacementContext";function Pf(e){return D(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function Nf(){return X(or).setReference}function Ff(){return X(or).getReferenceProps}function Lf(){let{getFloatingProps:e,slot:t}=X(or);return q((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor}),[e,t])}function Rf(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=X(Ao),r=D(()=>e,[JSON.stringify(e,(o,a)=>{var i;return(i=a==null?void 0:a.outerHTML)!=null?i:a})]);de(()=>{t==null||t(r!=null?r:null)},[t,r]);let n=X(or);return D(()=>[n.setFloating,e?n.styles:{}],[n.setFloating,e,n.styles])}let Ll=4;function Af({children:e,enabled:t=!0}){let[r,n]=F(null),[o,a]=F(0),i=L(null),[l,c]=F(null);If(l);let s=t&&r!==null&&l!==null,{to:u="bottom",gap:d=0,offset:h=0,padding:f=0,inner:g}=Df(r,l),[m,w="center"]=u.split(" ");de(()=>{s&&a(0)},[s]);let{refs:x,floatingStyles:E,context:$}=zf({open:s,placement:m==="selection"?w==="center"?"bottom":`bottom-${w}`:w==="center"?`${m}`:`${m}-${w}`,strategy:"absolute",transform:!1,middleware:[Cl({mainAxis:m==="selection"?0:d,crossAxis:h}),pf({padding:f}),m!=="selection"&&hf({padding:f}),m==="selection"&&g?Sf(z(y({},g),{padding:f,overflowRef:i,offset:o,minItemsVisible:Ll,referenceOverflowThreshold:f,onFallbackChange(M){var R,G;if(!M)return;let te=$.elements.floating;if(!te)return;let ve=parseFloat(getComputedStyle(te).scrollPaddingBottom)||0,oe=Math.min(Ll,te.childElementCount),ye=0,Z=0;for(let K of(G=(R=$.elements.floating)==null?void 0:R.childNodes)!=null?G:[])if(K instanceof HTMLElement){let P=K.offsetTop,ce=P+K.clientHeight+ve,ae=te.scrollTop,B=ae+te.clientHeight;if(P>=ae&&ce<=B)oe--;else{Z=Math.max(0,Math.min(ce,B)-Math.max(P,ae)),ye=K.clientHeight;break}}oe>=1&&a(K=>{let P=ye*oe-Z+ve;return K>=P?K:P})}})):null,gf({padding:f,apply({availableWidth:M,availableHeight:R,elements:G}){Object.assign(G.floating.style,{overflow:"auto",maxWidth:`${M}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${R}px)`})}})].filter(Boolean),whileElementsMounted:af}),[k=m,T=w]=$.placement.split("-");m==="selection"&&(k="selection");let C=D(()=>({anchor:[k,T].filter(Boolean).join(" ")}),[k,T]),O=Of($,{overflowRef:i,onChange:a}),{getReferenceProps:W,getFloatingProps:j}=Cf([O]),U=H(M=>{c(M),x.setFloating(M)});return ee(Ao.Provider,{value:n},ee(or.Provider,{value:{setFloating:U,setReference:x.setReference,styles:E,getReferenceProps:W,getFloatingProps:j,slot:C}},e))}function If(e){de(()=>{if(!e)return;let t=new MutationObserver(()=>{let r=window.getComputedStyle(e).maxHeight,n=parseFloat(r);if(isNaN(n))return;let o=parseInt(r);isNaN(o)||n!==o&&(e.style.maxHeight=`${Math.ceil(n)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function Df(e,t){var r,n,o;let a=Io((r=e==null?void 0:e.gap)!=null?r:"var(--anchor-gap, 0)",t),i=Io((n=e==null?void 0:e.offset)!=null?n:"var(--anchor-offset, 0)",t),l=Io((o=e==null?void 0:e.padding)!=null?o:"var(--anchor-padding, 0)",t);return z(y({},e),{gap:a,offset:i,padding:l})}function Io(e,t,r=void 0){let n=st(),o=H((c,s)=>{if(c==null)return[r,null];if(typeof c=="number")return[c,null];if(typeof c=="string"){if(!s)return[r,null];let u=Al(c,s);return[u,d=>{let h=Rl(c);{let f=h.map(g=>window.getComputedStyle(s).getPropertyValue(g));n.requestAnimationFrame(function g(){n.nextFrame(g);let m=!1;for(let[x,E]of h.entries()){let $=window.getComputedStyle(s).getPropertyValue(E);if(f[x]!==$){f[x]=$,m=!0;break}}if(!m)return;let w=Al(c,s);u!==w&&(d(w),u=w)})}return n.dispose}]}return[r,null]}),a=D(()=>o(e,t)[0],[e,t]),[i=a,l]=F();return de(()=>{let[c,s]=o(e,t);if(l(c),!!s)return s(l)},[e,t]),i}function Rl(e){let t=/var\((.*)\)/.exec(e);if(t){let r=t[1].indexOf(",");if(r===-1)return[t[1]];let n=t[1].slice(0,r).trim(),o=t[1].slice(r+1).trim();return o?[n,...Rl(o)]:[n]}return[]}function Al(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}let fn=ge(null);fn.displayName="OpenClosedContext";var Pe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pe||{});function Er(){return X(fn)}function Il({value:e,children:t}){return S.createElement(fn.Provider,{value:e},t)}function Mf({children:e}){return S.createElement(fn.Provider,{value:null},e)}var Do={exports:{}},Mo={};const Hf=Xs(Wr);var Dl;function jf(){if(Dl)return Mo;Dl=1;var e=Hf;function t(c,s){return c===s&&(c!==0||1/c===1/s)||c!==c&&s!==s}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,a=e.useEffect,i=e.useMemo,l=e.useDebugValue;return Mo.useSyncExternalStoreWithSelector=function(c,s,u,d,h){var f=o(null);if(f.current===null){var g={hasValue:!1,value:null};f.current=g}else g=f.current;f=i(function(){function w(T){if(!x){if(x=!0,E=T,T=d(T),h!==void 0&&g.hasValue){var C=g.value;if(h(C,T))return $=C}return $=T}if(C=$,r(E,T))return C;var O=d(T);return h!==void 0&&h(C,O)?(E=T,C):(E=T,$=O)}var x=!1,E,$,k=u===void 0?null:u;return[function(){return w(s())},k===null?void 0:function(){return w(k())}]},[s,u,d,h]);var m=n(c,f[0],f[1]);return a(function(){g.hasValue=!0,g.value=m},[m]),l(m),m},Mo}var Ml;function Uf(){return Ml||(Ml=1,Do.exports=jf()),Do.exports}var Bf=Uf(),Hl=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},je=(e,t,r)=>(Hl(e,t,"read from private field"),r?r.call(e):t.get(e)),Ho=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},jl=(e,t,r,n)=>(Hl(e,t,"write to private field"),t.set(e,r),r),Je,$r,Tr;class Wf{constructor(t){Ho(this,Je,{}),Ho(this,$r,new Ui(()=>new Set)),Ho(this,Tr,new Set),jl(this,Je,t)}get state(){return je(this,Je)}subscribe(t,r){let n={selector:t,callback:r,current:t(je(this,Je))};return je(this,Tr).add(n),()=>{je(this,Tr).delete(n)}}on(t,r){return je(this,$r).get(t).add(r),()=>{je(this,$r).get(t).delete(r)}}send(t){jl(this,Je,this.reduce(je(this,Je),t));for(let r of je(this,Tr)){let n=r.selector(je(this,Je));Ul(r.current,n)||(r.current=n,r.callback(n))}for(let r of je(this,$r).get(t.type))r(je(this,Je),t)}}Je=new WeakMap,$r=new WeakMap,Tr=new WeakMap;function Ul(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:jo(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:jo(e.entries(),t.entries()):Bl(e)&&Bl(t)?jo(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function jo(e,t){do{let r=e.next(),n=t.next();if(r.done&&n.done)return!0;if(r.done||n.done||!Object.is(r.value,n.value))return!1}while(!0)}function Bl(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Wl(e){let[t,r]=e(),n=De();return(...o)=>{t(...o),n.dispose(),n.microTask(r)}}function gt(e,t,r=Ul){return Bf.useSyncExternalStoreWithSelector(H(n=>e.subscribe(Vf,n)),H(()=>e.state),H(()=>e.state),H(t),r)}function Vf(e){return e}function Gf(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("DOMContentLoaded",t),t())}let bt=[];Gf(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||bt[0]===t.target)return;let r=t.target;r=r.closest(tn),bt.unshift(r!=null?r:t.target),bt=bt.filter(n=>n!=null&&n.isConnected),bt.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Yf(e){throw new Error("Unexpected object: "+e)}var we=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(we||{});function pn(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=n!=null?n:-1;switch(e.focus){case 0:{for(let a=0;a<r.length;++a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 1:{o===-1&&(o=r.length);for(let a=o-1;a>=0;--a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 2:{for(let a=o+1;a<r.length;++a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 3:{for(let a=r.length-1;a>=0;--a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 4:{for(let a=0;a<r.length;++a)if(t.resolveId(r[a],a,r)===e.id)return a;return n}case 5:return null;default:Yf(e)}}function Vl(e){let t=H(e),r=L(!1);Y(()=>(r.current=!1,()=>{r.current=!0,Yr(()=>{r.current&&t()})}),[t])}function Kf(){let e=typeof document=="undefined";return"useSyncExternalStore"in Wr?(t=>t.useSyncExternalStore)(Wr)(()=>()=>{},()=>!1,()=>!e):!1}function zr(){let e=Kf(),[t,r]=F(Et.isHandoffComplete);return t&&Et.isHandoffComplete===!1&&r(!1),Y(()=>{t!==!0&&r(!0)},[t]),Y(()=>Et.handoff(),[]),e?!1:t}let Gl=ge(!1);function qf(){return X(Gl)}function Yl(e){return S.createElement(Gl.Provider,{value:e.force},e.children)}function Xf(e){let t=qf(),r=X(ql),[n,o]=F(()=>{var a;if(!t&&r!==null)return(a=r.current)!=null?a:null;if(Et.isServer)return null;let i=e==null?void 0:e.getElementById("headlessui-portal-root");if(i)return i;if(e===null)return null;let l=e.createElement("div");return l.setAttribute("id","headlessui-portal-root"),e.body.appendChild(l)});return Y(()=>{n!==null&&(e!=null&&e.body.contains(n)||e==null||e.body.appendChild(n))},[n,e]),Y(()=>{t||r!==null&&o(r.current)},[r,o,t]),n}let Kl=Q,Zf=ne(function(e,t){let f=e,{ownerDocument:r=null}=f,n=N(f,["ownerDocument"]),o=L(null),a=$e(Yd(g=>{o.current=g}),t),i=Jt(o),l=r!=null?r:i,c=Xf(l),[s]=F(()=>{var g;return Et.isServer?null:(g=l==null?void 0:l.createElement("div"))!=null?g:null}),u=X(Uo),d=zr();de(()=>{!c||!s||c.contains(s)||(s.setAttribute("data-headlessui-portal",""),c.appendChild(s))},[c,s]),de(()=>{if(s&&u)return u.register(s)},[u,s]),Vl(()=>{var g;!c||!s||(s instanceof Node&&c.contains(s)&&c.removeChild(s),c.childNodes.length<=0&&((g=c.parentElement)==null||g.removeChild(c)))});let h=le();return d?!c||!s?null:Br(h({ourProps:{ref:a},theirProps:n,slot:{},defaultTag:Kl,name:"Portal"}),s):null});function Qf(e,t){let r=$e(t),l=e,{enabled:n=!0,ownerDocument:o}=l,a=N(l,["enabled","ownerDocument"]),i=le();return n?S.createElement(Zf,z(y({},a),{ownerDocument:o,ref:r})):i({ourProps:{ref:r},theirProps:a,slot:{},defaultTag:Kl,name:"Portal"})}let Jf=Q,ql=ge(null);function ep(e,t){let i=e,{target:r}=i,n=N(i,["target"]),o={ref:$e(t)},a=le();return S.createElement(ql.Provider,{value:r},a({ourProps:o,theirProps:n,defaultTag:Jf,name:"Popover.Group"}))}let Uo=ge(null);function tp(){let e=X(Uo),t=L([]),r=H(a=>(t.current.push(a),e&&e.register(a),()=>n(a))),n=H(a=>{let i=t.current.indexOf(a);i!==-1&&t.current.splice(i,1),e&&e.unregister(a)}),o=D(()=>({register:r,unregister:n,portals:t}),[r,n,t]);return[t,D(()=>function({children:a}){return S.createElement(Uo.Provider,{value:o},a)},[o])]}let rp=ne(Qf),Xl=ne(ep),Zl=Object.assign(rp,{Group:Xl}),np=Q;function op(e,t){let r=N(e,[]),n=!1,{isFocusVisible:o,focusProps:a}=Kt(),{isHovered:i,hoverProps:l}=Yt({isDisabled:n}),{pressed:c,pressProps:s}=br({disabled:n}),u=zt({ref:t},a,l,s),d=D(()=>({hover:i,focus:o,active:c}),[i,o,c]);return le()({ourProps:u,theirProps:r,slot:d,defaultTag:np,name:"DataInteractive"})}let ap=ne(op);function ip(e,t=typeof document!="undefined"?document.defaultView:null,r){let n=Zt(e,"escape");rl(t,"keydown",o=>{n&&(o.defaultPrevented||o.key===xe.Escape&&r(o))})}function lp(){var e;let[t]=F(()=>typeof window!="undefined"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[r,n]=F((e=t==null?void 0:t.matches)!=null?e:!1);return de(()=>{if(!t)return;function o(a){n(a.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),r}function cp({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let n=Jt(r),o=H(()=>{var a,i;let l=[];for(let c of e)c!==null&&(c instanceof HTMLElement?l.push(c):"current"in c&&c.current instanceof HTMLElement&&l.push(c.current));if(t!=null&&t.current)for(let c of t.current)l.push(c);for(let c of(a=n==null?void 0:n.querySelectorAll("html > *, body > *"))!=null?a:[])c!==document.body&&c!==document.head&&c instanceof HTMLElement&&c.id!=="headlessui-portal-root"&&(r&&(c.contains(r)||c.contains((i=r==null?void 0:r.getRootNode())==null?void 0:i.host))||l.some(s=>c.contains(s))||l.push(c));return l});return{resolveContainers:o,contains:H(a=>o().some(i=>i.contains(a)))}}let Ql=ge(null);function Jl({children:e,node:t}){let[r,n]=F(null),o=ec(t!=null?t:r);return S.createElement(Ql.Provider,{value:o},e,o===null&&S.createElement(Xt,{features:Ct.Hidden,ref:a=>{var i,l;if(a){for(let c of(l=(i=$t(a))==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?l:[])if(c!==document.body&&c!==document.head&&c instanceof HTMLElement&&c!=null&&c.contains(a)){n(c);break}}}}))}function ec(e=null){var t;return(t=X(Ql))!=null?t:e}function Bo(){let e=L(!1);return de(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Cr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Cr||{});function sp(){let e=L(0);return Ji(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function tc(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}let dp="div";var Ft=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(Ft||{});function up(e,t){let r=L(null),n=$e(r,t),E=e,{initialFocus:o,initialFocusFallback:a,containers:i,features:l=15}=E,c=N(E,["initialFocus","initialFocusFallback","containers","features"]);zr()||(l=0);let s=Jt(r);gp(l,{ownerDocument:s});let u=bp(l,{ownerDocument:s,container:r,initialFocus:o,initialFocusFallback:a});vp(l,{ownerDocument:s,container:r,containers:i,previousActiveElement:u});let d=sp(),h=H($=>{let k=r.current;k&&(T=>T())(()=>{Ve(d.current,{[Cr.Forwards]:()=>{Qt(k,Me.First,{skipElements:[$.relatedTarget,a]})},[Cr.Backwards]:()=>{Qt(k,Me.Last,{skipElements:[$.relatedTarget,a]})}})})}),f=Zt(!!(l&2),"focus-trap#tab-lock"),g=st(),m=L(!1),w={ref:n,onKeyDown($){$.key=="Tab"&&(m.current=!0,g.requestAnimationFrame(()=>{m.current=!1}))},onBlur($){if(!(l&4))return;let k=tc(i);r.current instanceof HTMLElement&&k.add(r.current);let T=$.relatedTarget;T instanceof HTMLElement&&T.dataset.headlessuiFocusGuard!=="true"&&(rc(k,T)||(m.current?Qt(r.current,Ve(d.current,{[Cr.Forwards]:()=>Me.Next,[Cr.Backwards]:()=>Me.Previous})|Me.WrapAround,{relativeTo:$.target}):$.target instanceof HTMLElement&&Ge($.target)))}},x=le();return S.createElement(S.Fragment,null,f&&S.createElement(Xt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:Ct.Focusable}),x({ourProps:w,theirProps:c,defaultTag:dp,name:"FocusTrap"}),f&&S.createElement(Xt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:Ct.Focusable}))}let fp=ne(up),pp=Object.assign(fp,{features:Ft});function hp(e=!0){let t=L(bt.slice());return _o(([r],[n])=>{n===!0&&r===!1&&Yr(()=>{t.current.splice(0)}),n===!1&&r===!0&&(t.current=bt.slice())},[e,bt,t]),H(()=>{var r;return(r=t.current.find(n=>n!=null&&n.isConnected))!=null?r:null})}function gp(e,{ownerDocument:t}){let r=!!(e&8),n=hp(r);_o(()=>{r||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&Ge(n())},[r]),Vl(()=>{r&&Ge(n())})}function bp(e,{ownerDocument:t,container:r,initialFocus:n,initialFocusFallback:o}){let a=L(null),i=Zt(!!(e&1),"focus-trap#initial-focus"),l=Bo();return _o(()=>{if(e===0)return;if(!i){o!=null&&o.current&&Ge(o.current);return}let c=r.current;c&&Yr(()=>{if(!l.current)return;let s=t==null?void 0:t.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===s){a.current=s;return}}else if(c.contains(s)){a.current=s;return}if(n!=null&&n.current)Ge(n.current);else{if(e&16){if(Qt(c,Me.First|Me.AutoFocus)!==wo.Error)return}else if(Qt(c,Me.First)!==wo.Error)return;if(o!=null&&o.current&&(Ge(o.current),(t==null?void 0:t.activeElement)===o.current))return}a.current=t==null?void 0:t.activeElement})},[o,i,e]),a}function vp(e,{ownerDocument:t,container:r,containers:n,previousActiveElement:o}){let a=Bo(),i=!!(e&4);rl(t==null?void 0:t.defaultView,"focus",l=>{if(!i||!a.current)return;let c=tc(n);r.current instanceof HTMLElement&&c.add(r.current);let s=o.current;if(!s)return;let u=l.target;u&&u instanceof HTMLElement?rc(c,u)?(o.current=u,Ge(u)):(l.preventDefault(),l.stopPropagation(),Ge(s)):Ge(o.current)},!0)}function rc(e,t){for(let r of e)if(r.contains(t))return!0;return!1}function nc(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:ac)!==Q||S.Children.count(e.children)===1}let hn=ge(null);hn.displayName="TransitionContext";var mp=(e=>(e.Visible="visible",e.Hidden="hidden",e))(mp||{});function wp(){let e=X(hn);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function xp(){let e=X(gn);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let gn=ge(null);gn.displayName="NestingContext";function bn(e){return"children"in e?bn(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function oc(e,t){let r=Tt(e),n=L([]),o=Bo(),a=st(),i=H((f,g=ut.Hidden)=>{let m=n.current.findIndex(({el:w})=>w===f);m!==-1&&(Ve(g,{[ut.Unmount](){n.current.splice(m,1)},[ut.Hidden](){n.current[m].state="hidden"}}),a.microTask(()=>{var w;!bn(n)&&o.current&&((w=r.current)==null||w.call(r))}))}),l=H(f=>{let g=n.current.find(({el:m})=>m===f);return g?g.state!=="visible"&&(g.state="visible"):n.current.push({el:f,state:"visible"}),()=>i(f,ut.Unmount)}),c=L([]),s=L(Promise.resolve()),u=L({enter:[],leave:[]}),d=H((f,g,m)=>{c.current.splice(0),t&&(t.chains.current[g]=t.chains.current[g].filter(([w])=>w!==f)),t==null||t.chains.current[g].push([f,new Promise(w=>{c.current.push(w)})]),t==null||t.chains.current[g].push([f,new Promise(w=>{Promise.all(u.current[g].map(([x,E])=>E)).then(()=>w())})]),g==="enter"?s.current=s.current.then(()=>t==null?void 0:t.wait.current).then(()=>m(g)):m(g)}),h=H((f,g,m)=>{Promise.all(u.current[g].splice(0).map(([w,x])=>x)).then(()=>{var w;(w=c.current.shift())==null||w()}).then(()=>m(g))});return D(()=>({children:n,register:l,unregister:i,onStart:d,onStop:h,wait:s,chains:u}),[l,i,n,d,h,u,s])}let ac=Q,ic=qt.RenderStrategy;function yp(e,t){var r,n;let mt=e,{transition:o=!0,beforeEnter:a,afterEnter:i,beforeLeave:l,afterLeave:c,enter:s,enterFrom:u,enterTo:d,entered:h,leave:f,leaveFrom:g,leaveTo:m}=mt,w=N(mt,["transition","beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),[x,E]=F(null),$=L(null),k=nc(e),T=$e(...k?[$,t,E]:t===null?[]:[t]),C=(r=w.unmount)==null||r?ut.Unmount:ut.Hidden,{show:O,appear:W,initial:j}=wp(),[U,M]=F(O?"visible":"hidden"),R=xp(),{register:G,unregister:te}=R;de(()=>G($),[G,$]),de(()=>{if(C===ut.Hidden&&$.current){if(O&&U!=="visible"){M("visible");return}return Ve(U,{hidden:()=>te($),visible:()=>G($)})}},[U,$,G,te,O,C]);let ve=zr();de(()=>{if(k&&ve&&U==="visible"&&$.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[$,U,ve,k]);let oe=j&&!W,ye=W&&O&&j,Z=L(!1),K=oc(()=>{Z.current||(M("hidden"),te($))},R),P=H(_e=>{Z.current=!0;let Rt=_e?"enter":"leave";K.onStart($,Rt,nt=>{nt==="enter"?a==null||a():nt==="leave"&&(l==null||l())})}),ce=H(_e=>{let Rt=_e?"enter":"leave";Z.current=!1,K.onStop($,Rt,nt=>{nt==="enter"?i==null||i():nt==="leave"&&(c==null||c())}),Rt==="leave"&&!bn(K)&&(M("hidden"),te($))});Y(()=>{k&&o||(P(O),ce(O))},[O,k,o]);let ae=!(!o||!k||!ve||oe),[,B]=sl(ae,x,O,{start:P,end:ce}),vt=ft(y({ref:T,className:((n=po(w.className,ye&&s,ye&&u,B.enter&&s,B.enter&&B.closed&&u,B.enter&&!B.closed&&d,B.leave&&f,B.leave&&!B.closed&&g,B.leave&&B.closed&&m,!B.transition&&O&&h))==null?void 0:n.trim())||void 0},cl(B))),tt=0;U==="visible"&&(tt|=Pe.Open),U==="hidden"&&(tt|=Pe.Closed),O&&U==="hidden"&&(tt|=Pe.Opening),!O&&U==="visible"&&(tt|=Pe.Closing);let rt=le();return S.createElement(gn.Provider,{value:K},S.createElement(Il,{value:tt},rt({ourProps:vt,theirProps:w,defaultTag:ac,features:ic,visible:U==="visible",name:"Transition.Child"})))}function _p(e,t){let T=e,{show:r,appear:n=!1,unmount:o=!0}=T,a=N(T,["show","appear","unmount"]),i=L(null),l=nc(e),c=$e(...l?[i,t]:t===null?[]:[t]);zr();let s=Er();if(r===void 0&&s!==null&&(r=(s&Pe.Open)===Pe.Open),r===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=F(r?"visible":"hidden"),h=oc(()=>{r||d("hidden")}),[f,g]=F(!0),m=L([r]);de(()=>{f!==!1&&m.current[m.current.length-1]!==r&&(m.current.push(r),g(!1))},[m,r]);let w=D(()=>({show:r,appear:n,initial:f}),[r,n,f]);de(()=>{r?d("visible"):!bn(h)&&i.current!==null&&d("hidden")},[r,h]);let x={unmount:o},E=H(()=>{var C;f&&g(!1),(C=e.beforeEnter)==null||C.call(e)}),$=H(()=>{var C;f&&g(!1),(C=e.beforeLeave)==null||C.call(e)}),k=le();return S.createElement(gn.Provider,{value:h},S.createElement(hn.Provider,{value:w},k({ourProps:z(y({},x),{as:Q,children:S.createElement(lc,z(y(y({ref:c},x),a),{beforeEnter:E,beforeLeave:$}))}),theirProps:{},defaultTag:Q,features:ic,visible:u==="visible",name:"Transition"})))}function kp(e,t){let r=X(hn)!==null,n=Er()!==null;return S.createElement(S.Fragment,null,!r&&n?S.createElement(Wo,y({ref:t},e)):S.createElement(lc,y({ref:t},e)))}let Wo=ne(_p),lc=ne(yp),Vo=ne(kp),Ep=Object.assign(Wo,{Child:Vo,Root:Wo});var $p=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))($p||{}),Tp=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Tp||{});let zp={0(e,t){return e.titleId===t.id?e:z(y({},e),{titleId:t.id})}},Go=ge(null);Go.displayName="DialogContext";function vn(e){let t=X(Go);if(t===null){let r=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,vn),r}return t}function Cp(e,t){return Ve(t.type,zp,e,t)}let cc=ne(function(e,t){let r=Ee(),ce=e,{id:n=`headlessui-dialog-${r}`,open:o,onClose:a,initialFocus:i,role:l="dialog",autoFocus:c=!0,__demoMode:s=!1,unmount:u=!1}=ce,d=N(ce,["id","open","onClose","initialFocus","role","autoFocus","__demoMode","unmount"]),h=L(!1);l=function(){return l==="dialog"||l==="alertdialog"?l:(h.current||(h.current=!0),"dialog")}();let f=Er();o===void 0&&f!==null&&(o=(f&Pe.Open)===Pe.Open);let g=L(null),m=$e(g,t),w=Jt(g),x=o?0:1,[E,$]=Bt(Cp,{titleId:null,descriptionId:null,panelRef:Ln()}),k=H(()=>a(!1)),T=H(ae=>$({type:0,id:ae})),C=zr()?x===0:!1,[O,W]=tp(),j={get current(){var ae;return(ae=E.panelRef.current)!=null?ae:g.current}},U=ec(),{resolveContainers:M}=cp({mainTreeNode:U,portals:O,defaultContainers:[j]}),R=f!==null?(f&Pe.Closing)===Pe.Closing:!1;Yi(s||R?!1:C,{allowed:H(()=>{var ae,B;return[(B=(ae=g.current)==null?void 0:ae.closest("[data-headlessui-portal]"))!=null?B:null]}),disallowed:H(()=>{var ae;return[(ae=U==null?void 0:U.closest("body > *:not(#headlessui-portal-root)"))!=null?ae:null]})}),tl(C,M,ae=>{ae.preventDefault(),k()}),ip(C,w==null?void 0:w.defaultView,ae=>{ae.preventDefault(),ae.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),k()}),ol(s||R?!1:C,w,M),Ki(C,g,k);let[G,te]=Zr(),ve=D(()=>[{dialogState:x,close:k,setTitleId:T,unmount:u},E],[x,E,k,T,u]),oe=D(()=>({open:x===0}),[x]),ye={ref:m,id:n,role:l,tabIndex:-1,"aria-modal":s?void 0:x===0?!0:void 0,"aria-labelledby":E.titleId,"aria-describedby":G,unmount:u},Z=!lp(),K=Ft.None;C&&!s&&(K|=Ft.RestoreFocus,K|=Ft.TabLock,c&&(K|=Ft.AutoFocus),Z&&(K|=Ft.InitialFocus));let P=le();return S.createElement(Mf,null,S.createElement(Yl,{force:!0},S.createElement(Zl,null,S.createElement(Go.Provider,{value:ve},S.createElement(Xl,{target:g},S.createElement(Yl,{force:!1},S.createElement(te,{slot:oe},S.createElement(W,null,S.createElement(pp,{initialFocus:i,initialFocusFallback:g,containers:M,features:K},S.createElement(tu,{value:k},P({ourProps:ye,theirProps:d,slot:oe,defaultTag:Sp,features:Op,visible:x===0,name:"Dialog"})))))))))))}),Sp="div",Op=qt.RenderStrategy|qt.Static;function Pp(e,t){let c=e,{transition:r=!1,open:n}=c,o=N(c,["transition","open"]),a=Er(),i=e.hasOwnProperty("open")||a!==null,l=e.hasOwnProperty("onClose");if(!i&&!l)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!i)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!a&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(n!==void 0||r)&&!o.static?S.createElement(Jl,null,S.createElement(Ep,{show:n,transition:r,unmount:o.unmount},S.createElement(cc,y({ref:t},o)))):S.createElement(Jl,null,S.createElement(cc,y({ref:t,open:n},o)))}let Np="div";function Fp(e,t){let r=Ee(),w=e,{id:n=`headlessui-dialog-panel-${r}`,transition:o=!1}=w,a=N(w,["id","transition"]),[{dialogState:i,unmount:l},c]=vn("Dialog.Panel"),s=$e(t,c.panelRef),u=D(()=>({open:i===0}),[i]),d=H(x=>{x.stopPropagation()}),h={ref:s,id:n,onClick:d},f=o?Vo:Q,g=o?{unmount:l}:{},m=le();return S.createElement(f,y({},g),m({ourProps:h,theirProps:a,slot:u,defaultTag:Np,name:"Dialog.Panel"}))}let Lp="div";function Rp(e,t){let d=e,{transition:r=!1}=d,n=N(d,["transition"]),[{dialogState:o,unmount:a}]=vn("Dialog.Backdrop"),i=D(()=>({open:o===0}),[o]),l={ref:t,"aria-hidden":!0},c=r?Vo:Q,s=r?{unmount:a}:{},u=le();return S.createElement(c,y({},s),u({ourProps:l,theirProps:n,slot:i,defaultTag:Lp,name:"Dialog.Backdrop"}))}let Ap="h2";function Ip(e,t){let r=Ee(),u=e,{id:n=`headlessui-dialog-title-${r}`}=u,o=N(u,["id"]),[{dialogState:a,setTitleId:i}]=vn("Dialog.Title"),l=$e(t);Y(()=>(i(n),()=>i(null)),[n,i]);let c=D(()=>({open:a===0}),[a]),s={ref:l,id:n};return le()({ourProps:s,theirProps:o,slot:c,defaultTag:Ap,name:"Dialog.Title"})}let Dp=ne(Pp),sc=ne(Fp),Mp=ne(Rp),dc=ne(Ip),Hp=Object.assign(Dp,{Panel:sc,Title:dc,Description:Qr}),jp="div";function Up(e,t){let r=`headlessui-control-${Ee()}`,[n,o]=vr(),[a,i]=Zr(),l=dt(),f=e,{disabled:c=l||!1}=f,s=N(f,["disabled"]),u=D(()=>({disabled:c}),[c]),d={ref:t,disabled:c||void 0,"aria-disabled":c||void 0},h=le();return S.createElement(Pi,{value:c},S.createElement(o,{value:n},S.createElement(i,{value:a},S.createElement(Vd,{id:r},h({ourProps:d,theirProps:z(y({},s),{children:S.createElement(jd,null,typeof s.children=="function"?s.children(u):s.children)}),slot:u,defaultTag:jp,name:"Field"})))))}let uc=ne(Up);function Bp(e){let t=typeof e=="string"?e:void 0,[r,n]=F(t);return[t!=null?t:r,q(o=>{t||o instanceof HTMLElement&&n(o.tagName.toLowerCase())},[t])]}let fc="fieldset";function Wp(e,t){var r;let n=dt(),g=e,{disabled:o=n||!1}=g,a=N(g,["disabled"]),[i,l]=Bp((r=e.as)!=null?r:fc),c=$e(t,l),[s,u]=vr(),d=D(()=>({disabled:o}),[o]),h=i==="fieldset"?{ref:c,"aria-labelledby":s,disabled:o||void 0}:{ref:c,role:"group","aria-labelledby":s,"aria-disabled":o||void 0},f=le();return S.createElement(Pi,{value:o},S.createElement(u,null,f({ourProps:h,theirProps:a,slot:d,defaultTag:fc,name:"Fieldset"})))}let Vp=ne(Wp),Gp="input";function Yp(e,t){let r=Ee(),n=qr(),o=dt(),E=e,{id:a=n||`headlessui-input-${r}`,disabled:i=o||!1,autoFocus:l=!1,invalid:c=!1}=E,s=N(E,["id","disabled","autoFocus","invalid"]),u=en(),d=go(),{isFocused:h,focusProps:f}=Kt({autoFocus:l}),{isHovered:g,hoverProps:m}=Yt({isDisabled:i}),w=zt({ref:t,id:a,"aria-labelledby":u,"aria-describedby":d,"aria-invalid":c?"true":void 0,disabled:i||void 0,autoFocus:l},f,m),x=D(()=>({disabled:i,invalid:c,hover:g,focus:h,autofocus:l}),[i,c,g,h,l]);return le()({ourProps:w,theirProps:s,slot:x,defaultTag:Gp,name:"Input"})}let Kp=ne(Yp);function qp(e,t){return S.createElement(vo,y({as:"div",ref:t},e))}let Xp=ne(qp);function Zp(e,t){let r=L({left:0,top:0});if(de(()=>{if(!t)return;let o=t.getBoundingClientRect();o&&(r.current=o)},[e,t]),t==null||!e||t===document.activeElement)return!1;let n=t.getBoundingClientRect();return n.top!==r.current.top||n.left!==r.current.left}let pc=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function hc(e){var t,r;let n=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return n;let a=!1;for(let l of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),a=!0;let i=a?(r=o.innerText)!=null?r:"":n;return pc.test(i)&&(i=i.replace(pc,"")),i}function Qp(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(o=>{let a=document.getElementById(o);if(a){let i=a.getAttribute("aria-label");return typeof i=="string"?i.trim():hc(a).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return hc(e).trim()}function Jp(e){let t=L(""),r=L("");return H(()=>{let n=e.current;if(!n)return"";let o=n.innerText;if(t.current===o)return r.current;let a=Qp(n).trim().toLowerCase();return t.current=o,r.current=a,a})}var eh=Object.defineProperty,th=(e,t,r)=>t in e?eh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gc=(e,t,r)=>(th(e,typeof t!="symbol"?t+"":t,r),r),Te=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Te||{}),mn=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(mn||{}),ue=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItems=5]="RegisterItems",e[e.UnregisterItems=6]="UnregisterItems",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e[e.SortItems=9]="SortItems",e))(ue||{});function bc(e,t=r=>r){let r=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,n=Zi(t(e.items.slice()),a=>a.dataRef.current.domRef.current),o=r?n.indexOf(r):null;return o===-1&&(o=null),{items:n,activeItemIndex:o}}let rh={1(e){return e.menuState===1?e:z(y({},e),{activeItemIndex:null,pendingFocus:{focus:we.Nothing},menuState:1})},0(e,t){return e.menuState===0?e:z(y({},e),{__demoMode:!1,pendingFocus:t.focus,menuState:0})},2:(e,t)=>{var r,n,o,a,i;if(e.menuState===1)return e;let l=z(y({},e),{searchQuery:"",activationTrigger:(r=t.trigger)!=null?r:1,__demoMode:!1});if(t.focus===we.Nothing)return z(y({},l),{activeItemIndex:null});if(t.focus===we.Specific)return z(y({},l),{activeItemIndex:e.items.findIndex(u=>u.id===t.id)});if(t.focus===we.Previous){let u=e.activeItemIndex;if(u!==null){let d=e.items[u].dataRef.current.domRef,h=pn(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:f=>f.id,resolveDisabled:f=>f.dataRef.current.disabled});if(h!==null){let f=e.items[h].dataRef.current.domRef;if(((n=d.current)==null?void 0:n.previousElementSibling)===f.current||((o=f.current)==null?void 0:o.previousElementSibling)===null)return z(y({},l),{activeItemIndex:h})}}}else if(t.focus===we.Next){let u=e.activeItemIndex;if(u!==null){let d=e.items[u].dataRef.current.domRef,h=pn(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:f=>f.id,resolveDisabled:f=>f.dataRef.current.disabled});if(h!==null){let f=e.items[h].dataRef.current.domRef;if(((a=d.current)==null?void 0:a.nextElementSibling)===f.current||((i=f.current)==null?void 0:i.nextElementSibling)===null)return z(y({},l),{activeItemIndex:h})}}}let c=bc(e),s=pn(t,{resolveItems:()=>c.items,resolveActiveIndex:()=>c.activeItemIndex,resolveId:u=>u.id,resolveDisabled:u=>u.dataRef.current.disabled});return z(y(y({},l),c),{activeItemIndex:s})},3:(e,t)=>{let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),o=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(i=>{var l;return((l=i.dataRef.current.textValue)==null?void 0:l.startsWith(n))&&!i.dataRef.current.disabled}),a=o?e.items.indexOf(o):-1;return a===-1||a===e.activeItemIndex?z(y({},e),{searchQuery:n}):z(y({},e),{searchQuery:n,activeItemIndex:a,activationTrigger:1})},4(e){return e.searchQuery===""?e:z(y({},e),{searchQuery:"",searchActiveItemIndex:null})},5:(e,t)=>{let r=e.items.concat(t.items.map(o=>o)),n=e.activeItemIndex;return e.pendingFocus.focus!==we.Nothing&&(n=pn(e.pendingFocus,{resolveItems:()=>r,resolveActiveIndex:()=>e.activeItemIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled})),z(y({},e),{items:r,activeItemIndex:n,pendingFocus:{focus:we.Nothing},pendingShouldSort:!0})},6:(e,t)=>{let r=e.items,n=[],o=new Set(t.items);for(let[a,i]of r.entries())if(o.has(i.id)&&(n.push(a),o.delete(i.id),o.size===0))break;if(n.length>0){r=r.slice();for(let a of n.reverse())r.splice(a,1)}return z(y({},e),{items:r,activationTrigger:1})},7:(e,t)=>e.buttonElement===t.element?e:z(y({},e),{buttonElement:t.element}),8:(e,t)=>e.itemsElement===t.element?e:z(y({},e),{itemsElement:t.element}),9:e=>e.pendingShouldSort?z(y(y({},e),bc(e)),{pendingShouldSort:!1}):e};class Yo extends Wf{constructor(t){super(t),gc(this,"actions",{registerItem:Wl(()=>{let r=[],n=new Set;return[(o,a)=>{n.has(a)||(n.add(a),r.push({id:o,dataRef:a}))},()=>(n.clear(),this.send({type:5,items:r.splice(0)}))]}),unregisterItem:Wl(()=>{let r=[];return[n=>r.push(n),()=>this.send({type:6,items:r.splice(0)})]})}),gc(this,"selectors",{activeDescendantId(r){var n;let o=r.activeItemIndex,a=r.items;return o===null||(n=a[o])==null?void 0:n.id},isActive(r,n){var o;let a=r.activeItemIndex,i=r.items;return a!==null?((o=i[a])==null?void 0:o.id)===n:!1},shouldScrollIntoView(r,n){return r.__demoMode||r.menuState!==0||r.activationTrigger===0?!1:this.isActive(r,n)}}),this.on(5,()=>{requestAnimationFrame(()=>{this.send({type:9})})})}static new({__demoMode:t=!1}={}){return new Yo({__demoMode:t,menuState:t?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:we.Nothing}})}reduce(t,r){return Ve(r.type,rh,t,r)}}const vc=ge(null);function Ko(e){let t=X(vc);if(t===null){let r=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,mc),r}return t}function mc({__demoMode:e=!1}={}){return D(()=>Yo.new({__demoMode:e}),[])}let nh=Q;function oh(e,t){let g=e,{__demoMode:r=!1}=g,n=N(g,["__demoMode"]),o=mc({__demoMode:r}),[a,i,l]=gt(o,m=>[m.menuState,m.itemsElement,m.buttonElement]),c=$e(t),s=a===Te.Open;tl(s,[l,i],(m,w)=>{var x;o.send({type:ue.CloseMenu}),yo(w,xo.Loose)||(m.preventDefault(),(x=o.state.buttonElement)==null||x.focus())});let u=H(()=>{o.send({type:ue.CloseMenu})}),d=D(()=>({open:a===Te.Open,close:u}),[a,u]),h={ref:c},f=le();return S.createElement(Af,null,S.createElement(vc.Provider,{value:o},S.createElement(Il,{value:Ve(a,{[Te.Open]:Pe.Open,[Te.Closed]:Pe.Closed})},f({ourProps:h,theirProps:n,slot:d,defaultTag:nh,name:"Menu"}))))}let ah="button";function ih(e,t){let r=Ko("Menu.Button"),n=Ee(),W=e,{id:o=`headlessui-menu-button-${n}`,disabled:a=!1,autoFocus:i=!1}=W,l=N(W,["id","disabled","autoFocus"]),c=L(null),s=Ff(),u=$e(t,c,Nf(),H(j=>r.send({type:ue.SetButtonElement,element:j}))),d=H(j=>{switch(j.key){case xe.Space:case xe.Enter:case xe.ArrowDown:j.preventDefault(),j.stopPropagation(),r.send({type:ue.OpenMenu,focus:{focus:we.First}});break;case xe.ArrowUp:j.preventDefault(),j.stopPropagation(),r.send({type:ue.OpenMenu,focus:{focus:we.Last}});break}}),h=H(j=>{switch(j.key){case xe.Space:j.preventDefault();break}}),[f,g]=gt(r,j=>[j.menuState,j.itemsElement]),m=H(j=>{var U;if(j.button===0){if(Mi(j.currentTarget))return j.preventDefault();a||(f===Te.Open?(Qe(()=>r.send({type:ue.CloseMenu})),(U=c.current)==null||U.focus({preventScroll:!0})):(j.preventDefault(),r.send({type:ue.OpenMenu,focus:{focus:we.Nothing},trigger:mn.Pointer})))}}),{isFocusVisible:w,focusProps:x}=Kt({autoFocus:i}),{isHovered:E,hoverProps:$}=Yt({isDisabled:a}),{pressed:k,pressProps:T}=br({disabled:a}),C=D(()=>({open:f===Te.Open,active:k||f===Te.Open,disabled:a,hover:E,focus:w,autofocus:i}),[f,E,w,k,a,i]),O=zt(s(),{ref:u,id:o,type:nl(e,c.current),"aria-haspopup":"menu","aria-controls":g==null?void 0:g.id,"aria-expanded":f===Te.Open,disabled:a||void 0,autoFocus:i,onKeyDown:d,onKeyUp:h,onMouseDown:m},x,$,T);return le()({ourProps:O,theirProps:l,slot:C,defaultTag:ah,name:"Menu.Button"})}let lh="div",ch=qt.RenderStrategy|qt.Static;function sh(e,t){let r=Ee(),K=e,{id:n=`headlessui-menu-items-${r}`,anchor:o,portal:a=!1,modal:i=!0,transition:l=!1}=K,c=N(K,["id","anchor","portal","modal","transition"]),s=Pf(o),u=Ko("Menu.Items"),[d,h]=Rf(s),f=Lf(),[g,m]=F(null),w=$e(t,s?d:null,H(P=>u.send({type:ue.SetItemsElement,element:P})),m),[x,E]=gt(u,P=>[P.menuState,P.buttonElement]),$=Jt(E),k=Jt(g);s&&(a=!0);let T=Er(),[C,O]=sl(l,g,T!==null?(T&Pe.Open)===Pe.Open:x===Te.Open);Ki(C,E,()=>{u.send({type:ue.CloseMenu})});let W=gt(u,P=>P.__demoMode),j=W?!1:i&&x===Te.Open;ol(j,k);let U=W?!1:i&&x===Te.Open;Yi(U,{allowed:q(()=>[E,g],[E,g])});let M=x!==Te.Open,R=Zp(M,E)?!1:C;Y(()=>{let P=g;P&&x===Te.Open&&P!==(k==null?void 0:k.activeElement)&&P.focus({preventScroll:!0})},[x,g,k]),Tu(x===Te.Open,{container:g,accept(P){return P.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:P.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(P){P.setAttribute("role","none")}});let G=st(),te=H(P=>{var ce,ae,B;switch(G.dispose(),P.key){case xe.Space:if(u.state.searchQuery!=="")return P.preventDefault(),P.stopPropagation(),u.send({type:ue.Search,value:P.key});case xe.Enter:if(P.preventDefault(),P.stopPropagation(),u.state.activeItemIndex!==null){let{dataRef:vt}=u.state.items[u.state.activeItemIndex];(ae=(ce=vt.current)==null?void 0:ce.domRef.current)==null||ae.click()}u.send({type:ue.CloseMenu}),Xi(u.state.buttonElement);break;case xe.ArrowDown:return P.preventDefault(),P.stopPropagation(),u.send({type:ue.GoToItem,focus:we.Next});case xe.ArrowUp:return P.preventDefault(),P.stopPropagation(),u.send({type:ue.GoToItem,focus:we.Previous});case xe.Home:case xe.PageUp:return P.preventDefault(),P.stopPropagation(),u.send({type:ue.GoToItem,focus:we.First});case xe.End:case xe.PageDown:return P.preventDefault(),P.stopPropagation(),u.send({type:ue.GoToItem,focus:we.Last});case xe.Escape:P.preventDefault(),P.stopPropagation(),Qe(()=>u.send({type:ue.CloseMenu})),(B=u.state.buttonElement)==null||B.focus({preventScroll:!0});break;case xe.Tab:P.preventDefault(),P.stopPropagation(),Qe(()=>u.send({type:ue.CloseMenu})),uu(u.state.buttonElement,P.shiftKey?Me.Previous:Me.Next);break;default:P.key.length===1&&(u.send({type:ue.Search,value:P.key}),G.setTimeout(()=>u.send({type:ue.ClearSearch}),350));break}}),ve=H(P=>{switch(P.key){case xe.Space:P.preventDefault();break}}),oe=D(()=>({open:x===Te.Open}),[x]),ye=zt(s?f():{},y({"aria-activedescendant":gt(u,u.selectors.activeDescendantId),"aria-labelledby":gt(u,P=>{var ce;return(ce=P.buttonElement)==null?void 0:ce.id}),id:n,onKeyDown:te,onKeyUp:ve,role:"menu",tabIndex:x===Te.Open?0:void 0,ref:w,style:z(y(y({},c.style),h),{"--button-width":nu(E,!0).width})},cl(O))),Z=le();return S.createElement(Zl,{enabled:a?e.static||C:!1,ownerDocument:$},Z({ourProps:ye,theirProps:c,slot:oe,defaultTag:lh,features:ch,visible:R,name:"Menu.Items"}))}let dh=Q;function uh(e,t){let r=Ee(),M=e,{id:n=`headlessui-menu-item-${r}`,disabled:o=!1}=M,a=N(M,["id","disabled"]),i=Ko("Menu.Item"),l=gt(i,R=>i.selectors.isActive(R,n)),c=L(null),s=$e(t,c),u=gt(i,R=>i.selectors.shouldScrollIntoView(R,n));de(()=>{if(u)return De().requestAnimationFrame(()=>{var R,G;(G=(R=c.current)==null?void 0:R.scrollIntoView)==null||G.call(R,{block:"nearest"})})},[u,c]);let d=Jp(c),h=L({disabled:o,domRef:c,get textValue(){return d()}});de(()=>{h.current.disabled=o},[h,o]),de(()=>(i.actions.registerItem(n,h),()=>i.actions.unregisterItem(n)),[h,n]);let f=H(()=>{i.send({type:ue.CloseMenu})}),g=H(R=>{if(o)return R.preventDefault();i.send({type:ue.CloseMenu}),Xi(i.state.buttonElement)}),m=H(()=>{if(o)return i.send({type:ue.GoToItem,focus:we.Nothing});i.send({type:ue.GoToItem,focus:we.Specific,id:n})}),w=wu(),x=H(R=>{w.update(R),!o&&(l||i.send({type:ue.GoToItem,focus:we.Specific,id:n,trigger:mn.Pointer}))}),E=H(R=>{w.wasMoved(R)&&(o||l||i.send({type:ue.GoToItem,focus:we.Specific,id:n,trigger:mn.Pointer}))}),$=H(R=>{w.wasMoved(R)&&(o||l&&i.send({type:ue.GoToItem,focus:we.Nothing}))}),[k,T]=vr(),[C,O]=Zr(),W=D(()=>({active:l,focus:l,disabled:o,close:f}),[l,o,f]),j={id:n,ref:s,role:"menuitem",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-labelledby":k,"aria-describedby":C,disabled:void 0,onClick:g,onFocus:m,onPointerEnter:x,onMouseEnter:x,onPointerMove:E,onMouseMove:E,onPointerLeave:$,onMouseLeave:$},U=le();return S.createElement(T,null,S.createElement(O,null,U({ourProps:j,theirProps:a,slot:W,defaultTag:dh,name:"Menu.Item"})))}let fh="div";function ph(e,t){let[r,n]=vr(),o=e,a={ref:t,"aria-labelledby":r,role:"group"},i=le();return S.createElement(n,null,i({ourProps:a,theirProps:o,slot:{},defaultTag:fh,name:"Menu.Section"}))}let hh="header";function gh(e,t){let r=Ee(),l=e,{id:n=`headlessui-menu-heading-${r}`}=l,o=N(l,["id"]),a=bo();de(()=>a.register(n),[n,a.register]);let i=y({id:n,ref:t,role:"presentation"},a.props);return le()({ourProps:i,theirProps:o,slot:{},defaultTag:hh,name:"Menu.Heading"})}let bh="div";function vh(e,t){let r=e,n={ref:t,role:"separator"};return le()({ourProps:n,theirProps:r,slot:{},defaultTag:bh,name:"Menu.Separator"})}let mh=ne(oh),wc=ne(ih),xc=ne(sh),qo=ne(uh),yc=ne(ph),wh=ne(gh),xh=ne(vh),yh=Object.assign(mh,{Button:wc,Items:xc,Item:qo,Section:yc,Heading:wh,Separator:xh}),_h="select";function kh(e,t){let r=Ee(),n=qr(),o=dt(),k=e,{id:a=n||`headlessui-select-${r}`,disabled:i=o||!1,invalid:l=!1,autoFocus:c=!1}=k,s=N(k,["id","disabled","invalid","autoFocus"]),u=en(),d=go(),{isFocusVisible:h,focusProps:f}=Kt({autoFocus:c}),{isHovered:g,hoverProps:m}=Yt({isDisabled:i}),{pressed:w,pressProps:x}=br({disabled:i}),E=zt({ref:t,id:a,"aria-labelledby":u,"aria-describedby":d,"aria-invalid":l?"true":void 0,disabled:i||void 0,autoFocus:c},f,m,x),$=D(()=>({disabled:i,invalid:l,hover:g,focus:h,active:w,autofocus:c}),[i,l,g,h,w,c]);return le()({ourProps:E,theirProps:s,slot:$,defaultTag:_h,name:"Select"})}let Eh=ne(kh),Xo=ge(null);Xo.displayName="GroupContext";let $h=Q;function Th(e){var t;let[r,n]=F(null),[o,a]=vr(),[i,l]=Zr(),c=D(()=>({switch:r,setSwitch:n}),[r,n]),s={},u=e,d=le();return S.createElement(l,{name:"Switch.Description",value:i},S.createElement(a,{name:"Switch.Label",value:o,props:{htmlFor:(t=c.switch)==null?void 0:t.id,onClick(h){r&&(h.currentTarget instanceof HTMLLabelElement&&h.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},S.createElement(Xo.Provider,{value:c},d({ourProps:s,theirProps:u,slot:{},defaultTag:$h,name:"Switch.Group"}))))}let zh="button";function Ch(e,t){var r;let n=Ee(),o=qr(),a=dt(),mt=e,{id:i=o||`headlessui-switch-${n}`,disabled:l=a||!1,checked:c,defaultChecked:s,onChange:u,name:d,value:h,form:f,autoFocus:g=!1}=mt,m=N(mt,["id","disabled","checked","defaultChecked","onChange","name","value","form","autoFocus"]),w=X(Xo),[x,E]=F(null),$=L(null),k=$e($,t,w===null?null:w.setSwitch,E),T=Id(s),[C,O]=Ad(c,u,T!=null?T:!1),W=st(),[j,U]=F(!1),M=H(()=>{U(!0),O==null||O(!C),W.nextFrame(()=>{U(!1)})}),R=H(_e=>{if(Mi(_e.currentTarget))return _e.preventDefault();_e.preventDefault(),M()}),G=H(_e=>{_e.key===xe.Space?(_e.preventDefault(),M()):_e.key===xe.Enter&&Dd(_e.currentTarget)}),te=H(_e=>_e.preventDefault()),ve=en(),oe=go(),{isFocusVisible:ye,focusProps:Z}=Kt({autoFocus:g}),{isHovered:K,hoverProps:P}=Yt({isDisabled:l}),{pressed:ce,pressProps:ae}=br({disabled:l}),B=D(()=>({checked:C,disabled:l,hover:K,focus:ye,active:ce,autofocus:g,changing:j}),[C,K,ye,ce,l,j,g]),vt=zt({id:i,ref:k,role:"switch",type:nl(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":C,"aria-labelledby":ve,"aria-describedby":oe,disabled:l||void 0,autoFocus:g,onClick:R,onKeyUp:G,onKeyPress:te},Z,P,ae),tt=q(()=>{if(T!==void 0)return O==null?void 0:O(T)},[O,T]),rt=le();return S.createElement(S.Fragment,null,d!=null&&S.createElement(Bd,{disabled:l,data:{[d]:h||"on"},overrides:{type:"checkbox",checked:C},form:f,onReset:tt}),rt({ourProps:vt,theirProps:m,slot:B,defaultTag:zh,name:"Switch"}))}let Sh=ne(Ch),Oh=Th,Ph=vo,Nh=Qr,Fh=Object.assign(Sh,{Group:Oh,Label:Ph,Description:Nh});const wn=Ne(function(t,r){return b(ap,{children:b("a",z(y({},t),{ref:r}))})}),Sr={base:["relative isolate items-baseline justify-center gap-x-2 rounded-lg border text-base/6 font-semibold","px-[calc(--spacing(3.5)-1px)] py-[calc(--spacing(2.5)-1px)] sm:px-[calc(--spacing(3)-1px)] sm:py-[calc(--spacing(1.5)-1px)] sm:text-sm/6","focus:outline-hidden data-focus:outline data-focus:outline-2 data-focus:outline-offset-2 data-focus:outline-blue-500","data-disabled:opacity-50","*:data-[slot=icon]:-mx-0.5 *:data-[slot=icon]:my-0.5 *:data-[slot=icon]:size-5 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:self-center *:data-[slot=icon]:text-(--btn-icon) sm:*:data-[slot=icon]:my-1 sm:*:data-[slot=icon]:size-4 forced-colors:[--btn-icon:ButtonText] forced-colors:data-hover:[--btn-icon:ButtonText]"],solid:["border-transparent bg-(--btn-border)","dark:bg-(--btn-bg)","before:absolute before:inset-0 before:-z-10 before:rounded-[calc(var(--radius-lg)-1px)] before:bg-(--btn-bg)","before:shadow-sm","dark:before:hidden","dark:border-white/5","after:absolute after:inset-0 after:-z-10 after:rounded-[calc(var(--radius-lg)-1px)]","after:shadow-[shadow:inset_0_1px_--theme(--color-white/15%)]","data-active:after:bg-(--btn-hover-overlay) data-hover:after:bg-(--btn-hover-overlay)","dark:after:-inset-px dark:after:rounded-lg","data-disabled:before:shadow-none data-disabled:after:shadow-none"],outline:["border-zinc-950/10 text-zinc-950 data-active:bg-zinc-950/[2.5%] data-hover:bg-zinc-950/[2.5%]","dark:border-white/15 dark:text-white dark:[--btn-bg:transparent] dark:data-active:bg-white/5 dark:data-hover:bg-white/5","[--btn-icon:var(--color-zinc-500)] data-active:[--btn-icon:var(--color-zinc-700)] data-hover:[--btn-icon:var(--color-zinc-700)] dark:data-active:[--btn-icon:var(--color-zinc-400)] dark:data-hover:[--btn-icon:var(--color-zinc-400)]"],plain:["border-transparent text-zinc-950 data-active:bg-zinc-950/5 data-hover:bg-zinc-950/5","dark:text-white dark:data-active:bg-white/10 dark:data-hover:bg-white/10","[--btn-icon:var(--color-zinc-500)] data-active:[--btn-icon:var(--color-zinc-700)] data-hover:[--btn-icon:var(--color-zinc-700)] dark:[--btn-icon:var(--color-zinc-500)] dark:data-active:[--btn-icon:var(--color-zinc-400)] dark:data-hover:[--btn-icon:var(--color-zinc-400)]"],colors:{"dark/zinc":["text-white [--btn-bg:var(--color-zinc-900)] [--btn-border:var(--color-zinc-950)]/90 [--btn-hover-overlay:var(--color-white)]/10","dark:text-white dark:[--btn-bg:var(--color-zinc-600)] dark:[--btn-hover-overlay:var(--color-white)]/5","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-300)] data-hover:[--btn-icon:var(--color-zinc-300)]"],light:["text-zinc-950 [--btn-bg:white] [--btn-border:var(--color-zinc-950)]/10 [--btn-hover-overlay:var(--color-zinc-950)]/[2.5%] data-active:[--btn-border:var(--color-zinc-950)]/15 data-hover:[--btn-border:var(--color-zinc-950)]/15","dark:text-white dark:[--btn-hover-overlay:var(--color-white)]/5 dark:[--btn-bg:var(--color-zinc-800)]","[--btn-icon:var(--color-zinc-500)] data-active:[--btn-icon:var(--color-zinc-700)] data-hover:[--btn-icon:var(--color-zinc-700)] dark:[--btn-icon:var(--color-zinc-500)] dark:data-active:[--btn-icon:var(--color-zinc-400)] dark:data-hover:[--btn-icon:var(--color-zinc-400)]"],"dark/white":["text-white [--btn-bg:var(--color-zinc-900)] [--btn-border:var(--color-zinc-950)]/90 [--btn-hover-overlay:var(--color-white)]/10","dark:text-zinc-950 dark:[--btn-bg:white] dark:[--btn-hover-overlay:var(--color-zinc-950)]/5","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-300)] data-hover:[--btn-icon:var(--color-zinc-300)] dark:[--btn-icon:var(--color-zinc-500)] dark:data-active:[--btn-icon:var(--color-zinc-400)] dark:data-hover:[--btn-icon:var(--color-zinc-400)]"],dark:["text-white [--btn-bg:var(--color-zinc-900)] [--btn-border:var(--color-zinc-950)]/90 [--btn-hover-overlay:var(--color-white)]/10","dark:[--btn-hover-overlay:var(--color-white)]/5 dark:[--btn-bg:var(--color-zinc-800)]","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-300)] data-hover:[--btn-icon:var(--color-zinc-300)]"],white:["text-zinc-950 [--btn-bg:white] [--btn-border:var(--color-zinc-950)]/10 [--btn-hover-overlay:var(--color-zinc-950)]/[2.5%] data-active:[--btn-border:var(--color-zinc-950)]/15 data-hover:[--btn-border:var(--color-zinc-950)]/15","dark:[--btn-hover-overlay:var(--color-zinc-950)]/5","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-500)] data-hover:[--btn-icon:var(--color-zinc-500)]"],zinc:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-zinc-600)] [--btn-border:var(--color-zinc-700)]/90","dark:[--btn-hover-overlay:var(--color-white)]/5","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-300)] data-hover:[--btn-icon:var(--color-zinc-300)]"],indigo:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-indigo-500)] [--btn-border:var(--color-indigo-600)]/90","[--btn-icon:var(--color-indigo-300)] data-active:[--btn-icon:var(--color-indigo-200)] data-hover:[--btn-icon:var(--color-indigo-200)]"],amber:["text-amber-950 [--btn-hover-overlay:var(--color-white)]/25 [--btn-bg:var(--color-amber-400)] [--btn-border:var(--color-amber-500)]/80","[--btn-icon:var(--color-amber-600)]"],green:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-green-600)] [--btn-border:var(--color-green-700)]/90","[--btn-icon:var(--color-white)]/60 data-active:[--btn-icon:var(--color-white)]/80 data-hover:[--btn-icon:var(--color-white)]/80"],blue:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-blue-600)] [--btn-border:var(--color-blue-700)]/90","[--btn-icon:var(--color-blue-400)] data-active:[--btn-icon:var(--color-blue-300)] data-hover:[--btn-icon:var(--color-blue-300)]"]}},Zo=Ne(function(c,l){var s=c,{color:t,outline:r,plain:n,className:o,children:a}=s,i=N(s,["color","outline","plain","className","children"]);const u=V(o,Sr.base,r?Sr.outline:n?Sr.plain:V(Sr.solid,Sr.colors[t!=null?t:"dark/zinc"]));return"href"in i?b(wn,z(y({},i),{className:u,ref:l,children:b(xn,{children:a})})):b(Fi,z(y({},i),{className:V(u,"cursor-default"),ref:l,children:b(xn,{children:a})}))});function xn({children:e}){return b(Q,{children:[b("span",{className:"absolute top-1/2 left-1/2 size-[max(100%,2.75rem)] -translate-x-1/2 -translate-y-1/2 [@media(pointer:fine)]:hidden","aria-hidden":"true"}),e]})}function Lh(e){return b(yh,y({},e))}function Rh(r){var n=r,{as:e=Zo}=n,t=N(n,["as"]);return b(wc,y({as:e},t))}function Ah(n){var o=n,{anchor:e="bottom",className:t}=o,r=N(o,["anchor","className"]);return b(xc,z(y({},r),{transition:!0,anchor:e,className:V(t,"[--anchor-gap:--spacing(2)] [--anchor-padding:--spacing(1)] data-[anchor~=end]:[--anchor-offset:6px] data-[anchor~=start]:[--anchor-offset:-6px] sm:data-[anchor~=end]:[--anchor-offset:4px] sm:data-[anchor~=start]:[--anchor-offset:-4px]","isolate w-max rounded-xl p-1","outline outline-transparent focus:outline-hidden","overflow-y-auto","bg-white/75 backdrop-blur-xl dark:bg-zinc-800/75","shadow-lg ring-1 ring-zinc-950/10 dark:ring-white/10 dark:ring-inset","supports-[grid-template-columns:subgrid]:grid supports-[grid-template-columns:subgrid]:grid-cols-[auto_1fr_1.5rem_0.5rem_auto]","transition data-leave:duration-100 data-leave:ease-in data-closed:data-leave:opacity-0")}))}function _c(r){var n=r,{className:e}=n,t=N(n,["className"]);const o=V(e,"group cursor-default rounded-lg px-3.5 py-2.5 focus:outline-hidden sm:px-3 sm:py-1.5","text-left text-base/6 text-zinc-950 sm:text-sm/6 dark:text-white forced-colors:text-[CanvasText]","data-focus:bg-blue-500 data-focus:text-white","data-disabled:opacity-50","forced-color-adjust-none forced-colors:data-focus:bg-[Highlight] forced-colors:data-focus:text-[HighlightText] forced-colors:data-focus:*:data-[slot=icon]:text-[HighlightText]","col-span-full grid grid-cols-[auto_1fr_1.5rem_0.5rem_auto] items-center supports-[grid-template-columns:subgrid]:grid-cols-subgrid","*:data-[slot=icon]:col-start-1 *:data-[slot=icon]:row-start-1 *:data-[slot=icon]:mr-2.5 *:data-[slot=icon]:-ml-0.5 *:data-[slot=icon]:size-5 sm:*:data-[slot=icon]:mr-2 sm:*:data-[slot=icon]:size-4","*:data-[slot=icon]:text-zinc-500 data-focus:*:data-[slot=icon]:text-white dark:*:data-[slot=icon]:text-zinc-400 dark:data-focus:*:data-[slot=icon]:text-white","*:data-[slot=avatar]:mr-2.5 *:data-[slot=avatar]:-ml-1 *:data-[slot=avatar]:size-6 sm:*:data-[slot=avatar]:mr-2 sm:*:data-[slot=avatar]:size-5");return"href"in t?b(qo,z(y({as:wn},t),{className:o})):b(qo,z(y({as:"button",type:"button"},t),{className:o}))}function Ih(r){var n=r,{className:e}=n,t=N(n,["className"]);return b(yc,z(y({},t),{className:V(e,"col-span-full supports-[grid-template-columns:subgrid]:grid supports-[grid-template-columns:subgrid]:grid-cols-[auto_1fr_1.5rem_0.5rem_auto]")}))}function yn(e,{locale:t="en-US",currency:r="USD",symbol:n=!0,decimal:o=2}={}){const a={minimumFractionDigits:0,maximumFractionDigits:o};if(n)try{return new Intl.NumberFormat(t,y({style:"currency",currency:r},a)).format(e)}catch(i){return`${new Intl.NumberFormat(t,y({style:"decimal"},a)).format(e)}`}else return new Intl.NumberFormat(t,y({style:"decimal"},a)).format(e)}const Dh={red:"bg-red-500/25 text-red-800 group-data-hover:bg-red-500/25 dark:bg-red-500/25 dark:text-red-300 dark:group-data-hover:bg-red-500/20",amber:"bg-amber-400/20 text-amber-700 group-data-hover:bg-amber-400/30 dark:bg-amber-400/10 dark:text-amber-400 dark:group-data-hover:bg-amber-400/15",green:"bg-green-500/25 text-green-800 group-data-hover:bg-green-500/25 dark:bg-green-500/25 dark:text-green-300 dark:group-data-hover:bg-green-500/20",blue:"bg-blue-500/15 text-blue-700 group-data-hover:bg-blue-500/25 dark:text-blue-400 dark:group-data-hover:bg-blue-500/25",indigo:"bg-indigo-500/15 text-indigo-700 group-data-hover:bg-indigo-500/25 dark:text-indigo-400 dark:group-data-hover:bg-indigo-500/20",zinc:"bg-zinc-600/10 text-zinc-800 group-data-hover:bg-zinc-500/20 dark:bg-white/5 dark:text-zinc-300 dark:group-data-hover:bg-white/10"};function et(n){var o=n,{color:e="zinc",className:t}=o,r=N(o,["color","className"]);return b("span",z(y({},r),{className:V("inline-flex items-center gap-x-1.5 rounded-md px-1.5 py-0.5 font-medium forced-colors:outline",t,Dh[e])}))}Ne(function(i,a){var l=i,{color:t="zinc",className:r,children:n}=l,o=N(l,["color","className","children"]);const c=V(r,"group relative inline-flex rounded-md focus:outline-hidden data-focus:outline-2 data-focus:outline-offset-2 data-focus:outline-blue-500");return"href"in o?b(wn,z(y({},o),{className:c,ref:a,children:b(xn,{children:b(et,{color:t,children:n})})})):b(Fi,z(y({},o),{className:c,ref:a,children:b(xn,{children:b(et,{color:t,children:n})})}))});function Mh(e){return e&&Object.values(it).includes(e)?e:it.UNCHANGED}function Hh({value:e,children:t}){const{settings:r}=X(lt),n=Mh(e);return r.backgroundColor||r.background?b(et,{color:e===it.UP?"green":e===it.DOWN?"red":"zinc",className:"text-base/5 @md:text-lg/6",children:t}):b("span",{className:V("ccw-amount",n===it.DOWN&&Mr.DOWN,n===it.UP&&Mr.UP,n===it.UNCHANGED&&Mr.UNCHANGED),children:t})}const jh=({value:e,onChange:t})=>{const r=L(null);return Y(()=>{r.current&&r.current.focus()},[r.current]),b("div",{className:"flex h-8 items-center",onClick:n=>n.stopPropagation(),children:b("input",{"aria-label":"Search",ref:r,type:"search",className:"w-full outline-none",value:e,onInput:n=>t(n.target.value),onClick:n=>n.stopPropagation()})})};function Uh({width:e="w-16",height:t="h-5"}){const r=e.split("-").pop(),n=t.split("-").pop(),o=r===n;return b("div",{role:"status",className:V("bg-skeleton animate-pulse",{"rounded-full":o,rounded:!o},t,e),"aria-hidden":"true"})}const kc=({name:e,asset:t,value:r,direction:n,valueFlag:o,selected:a,assets:i,loading:l,togglePause:c,onSelect:s,setValue:u,setDirection:d})=>{const[h,f]=F(""),[g,m]=F(!1),{settings:w}=X(lt),x=L(null);We(()=>{var T;g&&((T=x.current)==null||T.focus())},[g]);const E=()=>{c(),m(!0)},$=()=>{m(!1),c()},k=T=>{T.key==="Enter"&&T.currentTarget.blur()};return b("div",{id:`ccw-${e}`,className:"flex flex-col justify-center gap-4 leading-6",children:[b(Lh,{children:({open:T})=>b(Q,{children:[b(Rh,{as:"div",className:V("ccw-currency-button",{"rounded-lg":w.rounded}),"aria-label":"Select Asset",children:t?T?b(jh,{value:h,onChange:f}):b("div",{className:"flex h-8 items-center justify-between gap-0 px-0",children:[b("div",{className:"flex flex-1 items-center gap-1",children:[b("img",{src:ui.replace("{SYMBOL}",(t==null?void 0:t.SYMBOL)||""),alt:t==null?void 0:t.SYMBOL,className:"ccw-border size-7 rounded-full border-1 bg-white p-0.25 dark:bg-white/5",loading:"lazy"}),b("span",{className:"w-24 truncate",children:t==null?void 0:t.SYMBOL})]}),b("div",{className:"w-4 flex-0",children:b("svg",{"data-slot":"icon","aria-hidden":"true",fill:"none","stroke-width":"1.5",className:"size-4",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:b("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})})})]}):b("div",{role:"status",className:"mx-auto flex h-8 animate-pulse items-center","aria-hidden":"true",children:b("div",{className:"flex items-center justify-center gap-1 overflow-hidden",children:[b("div",{className:"bg-skeleton flex h-7 w-7 flex-none items-center justify-center rounded-full"}),b("div",{className:"bg-skeleton h-6 w-90 flex-1 rounded-lg"})]})})}),T&&b(Ah,{children:b(Ih,{"aria-label":"Select Asset",children:(()=>{const C=i.filter(O=>O.SYMBOL.toLowerCase().includes(h.trim().toLowerCase())).slice(0,25);return C.length===0?b(_c,{disabled:!0,children:"No results"},"no-results"):C.map(O=>b(_c,{onClick:()=>{s(O),f("")},className:"flex items-center gap-1.5",children:[b("img",{src:ui.replace("{SYMBOL}",((O==null?void 0:O.SYMBOL)||"").replace(/\$/,"%24")),alt:O.SYMBOL,className:"size-5",loading:"lazy"}),b("span",{className:V("w-24 truncate",{"font-black":(a==null?void 0:a.SYMBOL)===O.SYMBOL}),children:O.SYMBOL})]}))})()})})]})}),b("div",{className:"ccw-amount-field",children:l?b(Uh,{width:"w-20",height:"h-5"}):b(Q,{children:g?b("input",{ref:x,"aria-label":"Enter amount",type:"text",pattern:"[0-9]*[.,]?[0-9]*",onBlur:$,onKeyDown:k,onInput:T=>{const C=T.currentTarget.value.replace(",","."),O=Number(C);C&&isNaN(O)||(u(O),d(e))},className:"mx-1 w-full rounded px-1 text-base/6 outline-2 outline-offset-2 outline-blue-500",value:r}):b("button",{title:"Click to Edit","aria-label":"Click to Edit",onClick:E,className:V("w-full cursor-pointer text-center",n!==e&&"font-semibold"),children:b(Hh,{value:o,children:yn(r||0,z(y({},w),{currency:(t==null?void 0:t.SYMBOL)||"USD"}))})})})})]})};function Lt(r){var n=r,{className:e}=n,t=N(n,["className"]);return b("p",z(y({"data-slot":"text"},t),{className:V(e,"text-base/6 text-zinc-500 sm:text-sm/6 dark:text-zinc-400")}))}function Qo(r){var n=r,{className:e}=n,t=N(n,["className"]);return b(wn,z(y({},t),{className:V(e,"text-zinc-950 underline decoration-zinc-950/50 data-hover:decoration-zinc-950 dark:text-white dark:decoration-white/50 dark:data-hover:decoration-white")}))}function Or(r){var n=r,{className:e}=n,t=N(n,["className"]);return b("strong",z(y({},t),{className:V(e,"font-medium text-zinc-950 dark:text-white")}))}const Bh={xs:"sm:max-w-xs",sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl","3xl":"sm:max-w-3xl","4xl":"sm:max-w-4xl","5xl":"sm:max-w-5xl"};function Wh(o){var a=o,{size:e="lg",className:t,children:r}=a,n=N(a,["size","className","children"]);return b(Hp,z(y({},n),{children:[b(Mp,{transition:!0,className:"fixed inset-0 flex w-screen justify-center overflow-y-auto bg-zinc-950/25 px-2 py-2 transition duration-100 focus:outline-0 data-closed:opacity-0 data-enter:ease-out data-leave:ease-in sm:px-6 sm:py-8 lg:px-8 lg:py-16 dark:bg-zinc-950/50"}),b("div",{className:"fixed inset-0 w-screen overflow-y-auto pt-6 sm:pt-0",children:b("div",{className:"grid min-h-full grid-rows-[1fr_auto] justify-items-center sm:grid-rows-[1fr_auto_3fr] sm:p-4",children:b(sc,{transition:!0,className:V(t,Bh[e],"row-start-2 w-full min-w-0 rounded-t-3xl bg-white p-(--gutter) shadow-lg ring-1 ring-zinc-950/10 [--gutter:--spacing(8)] sm:mb-auto sm:rounded-2xl dark:bg-zinc-900 dark:ring-white/10 forced-colors:outline","transition duration-100 will-change-transform data-closed:translate-y-12 data-closed:opacity-0 data-enter:ease-out data-leave:ease-in sm:data-closed:translate-y-0 sm:data-closed:data-enter:scale-95"),children:r})})})]}))}function Vh(r){var n=r,{className:e}=n,t=N(n,["className"]);return b(dc,z(y({},t),{className:V(e,"text-lg/6 font-semibold text-balance text-zinc-950 sm:text-base/6 dark:text-white")}))}function Gh(r){var n=r,{className:e}=n,t=N(n,["className"]);return b(Qr,z(y({as:Lt},t),{className:V(e,"mt-2 text-pretty")}))}function Yh(r){var n=r,{className:e}=n,t=N(n,["className"]);return b("div",z(y({},t),{className:V(e,"mt-6")}))}function Kh(r){var n=r,{className:e}=n,t=N(n,["className"]);return b("div",z(y({},t),{className:V(e,"mt-8 flex flex-col-reverse items-center justify-end gap-3 *:w-full sm:flex-row sm:*:w-auto")}))}function Jo({children:e,open:t,title:r,description:n,onClose:o}){const a=L(null);return b(Wh,{open:t,onClose:o,initialFocus:a,children:[r&&b(Vh,{children:r}),n&&b(Gh,{children:n}),e&&b(Yh,{children:[e," "]}),b(Kh,{children:b(Zo,{onClick:o,tabIndex:0,ref:a,children:"Close"})})]})}function Ec(e,t,r){Y(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[e,t])}function qh(){const[e,t]=F(!0);return Y(()=>{t(navigator.onLine)},[]),Ec("online",()=>t(!0)),Ec("offline",()=>t(!1)),e}function Xh({bolt:e}){const[t,r]=F(!1),n=qh();return b(Q,{children:[" ",b("button",{className:"ccw-btn-icon relative",onClick:()=>r(!0),"aria-label":"About",title:"About",children:[b("div",{className:"absolute inline-flex size-4 -translate-x-1/2 translate-y-0.5","aria-hidden":"true",children:b("span",{className:V("h-full w-full",e&&"animate-ping rounded-full bg-amber-400 opacity-75")})}),n?b(Fs,{className:V("size-5","fill-amber-300")}):b(Ps,{className:V("size-5","fill-zinc-500")})]}),b(Jo,{open:t,onClose:()=>r(!1),title:"About",children:[b(Lt,{children:[b(Or,{children:["Crypto Converter Widget (","3.1.1",")"]})," is ~170 fiat currencies and ~3304 cryptocurrencies in real-time."]}),b(Lt,{className:"mt-4",children:[b(Or,{children:"Thank you"})," for using on product. Our goal is"," ",b(Or,{children:"plug and play financial widgets"}),"."]}),b(Lt,{className:"mt-4",children:["You can"," ",b(Qo,{href:"https://co-w.io",target:"_blank",rel:"noopener noreferrer nofollow",children:b(Or,{children:"embed"})})," ","the widget on any site using the installation wizard or install as a"," ",b(Qo,{href:"https://wordpress.org/plugins/crypto-converter-widget/",target:"_blank",rel:"noopener noreferrer nofollow",children:b(Or,{children:"plugin"})})," ","on your WordPress site."]}),b(Lt,{className:"mt-4",children:["Please read our terms and conditions"," ",b(Qo,{href:"https://co-w.io/about/license/",target:"_blank",rel:"noopener noreferrer nofollow",children:"license"}),"."]})]})]})}function $c(r){var n=r,{className:e}=n,t=N(n,["className"]);return b(Vp,z(y({},t),{className:V(e,"*:data-[slot=text]:mt-1 [&>*+[data-slot=control]]:mt-6")}))}function Zh(r){var n=r,{className:e}=n,t=N(n,["className"]);return b(Xp,z(y({"data-slot":"legend"},t),{className:V(e,"text-base/6 font-semibold text-zinc-950 data-disabled:opacity-50 sm:text-sm/6 dark:text-white")}))}function _n(r){var n=r,{className:e}=n,t=N(n,["className"]);return b(uc,z(y({},t),{className:V(e,"[&>[data-slot=label]+[data-slot=control]]:mt-3","[&>[data-slot=label]+[data-slot=description]]:mt-1","[&>[data-slot=description]+[data-slot=control]]:mt-3","[&>[data-slot=control]+[data-slot=description]]:mt-3","[&>[data-slot=control]+[data-slot=error]]:mt-3","*:data-[slot=label]:font-medium")}))}function ar(r){var n=r,{className:e}=n,t=N(n,["className"]);return b(vo,z(y({"data-slot":"label"},t),{className:V(e,"text-base/6 text-zinc-950 select-none data-disabled:opacity-50 sm:text-sm/6 dark:text-white")}))}function ea(r){var n=r,{className:e}=n,t=N(n,["className"]);return b(Qr,z(y({"data-slot":"description"},t),{className:V(e,"text-base/6 text-zinc-500 data-disabled:opacity-50 sm:text-sm/6 dark:text-zinc-400")}))}const Qh=["date","datetime-local","month","time","week"],Tc=Ne(function(o,n){var a=o,{className:t}=a,r=N(a,["className"]);return b("span",{"data-slot":"control",className:V([t,"relative block w-full","before:absolute before:inset-px before:rounded-[calc(var(--radius-lg)-1px)] before:bg-white before:shadow-sm","dark:before:hidden","after:pointer-events-none after:absolute after:inset-0 after:rounded-lg after:ring-transparent after:ring-inset sm:focus-within:after:ring-2 sm:focus-within:after:ring-blue-500","has-data-disabled:opacity-50 has-data-disabled:before:bg-zinc-950/5 has-data-disabled:before:shadow-none","has-data-invalid:before:shadow-red-500/10"]),children:b(Kp,z(y({ref:n},r),{className:V([r.type&&Qh.includes(r.type)&&["[&::-webkit-datetime-edit-fields-wrapper]:p-0","[&::-webkit-date-and-time-value]:min-h-[1.5em]","[&::-webkit-datetime-edit]:inline-flex","[&::-webkit-datetime-edit]:p-0","[&::-webkit-datetime-edit-year-field]:p-0","[&::-webkit-datetime-edit-month-field]:p-0","[&::-webkit-datetime-edit-day-field]:p-0","[&::-webkit-datetime-edit-hour-field]:p-0","[&::-webkit-datetime-edit-minute-field]:p-0","[&::-webkit-datetime-edit-second-field]:p-0","[&::-webkit-datetime-edit-millisecond-field]:p-0","[&::-webkit-datetime-edit-meridiem-field]:p-0"],"relative block w-full appearance-none rounded-lg px-[calc(--spacing(3.5)-1px)] py-[calc(--spacing(2.5)-1px)] sm:px-[calc(--spacing(3)-1px)] sm:py-[calc(--spacing(1.5)-1px)]","text-base/6 text-zinc-950 placeholder:text-zinc-500 sm:text-sm/6 dark:text-white","border border-zinc-950/10 data-hover:border-zinc-950/20 dark:border-white/10 dark:data-hover:border-white/20","bg-transparent dark:bg-white/5","focus:outline-hidden","data-invalid:border-red-500 data-invalid:data-hover:border-red-500 dark:data-invalid:border-red-500 dark:data-invalid:data-hover:border-red-500","data-disabled:border-zinc-950/20 dark:data-disabled:border-white/15 dark:data-disabled:bg-white/[2.5%] dark:data-hover:data-disabled:border-white/15","dark:[color-scheme:dark]"])}))})}),zc=Ne(function(a,o){var i=a,{className:t,multiple:r}=i,n=N(i,["className","multiple"]);return b("span",{"data-slot":"control",className:V([t,"group relative block w-full","before:absolute before:inset-px before:rounded-[calc(var(--radius-lg)-1px)] before:bg-white before:shadow-sm","dark:before:hidden","after:pointer-events-none after:absolute after:inset-0 after:rounded-lg after:ring-transparent after:ring-inset has-data-focus:after:ring-2 has-data-focus:after:ring-blue-500","has-data-disabled:opacity-50 has-data-disabled:before:bg-zinc-950/5 has-data-disabled:before:shadow-none"]),children:[b(Eh,z(y({ref:o,multiple:r},n),{className:V(["relative block w-full appearance-none rounded-lg py-[calc(--spacing(2.5)-1px)] sm:py-[calc(--spacing(1.5)-1px)]",r?"px-[calc(--spacing(3.5)-1px)] sm:px-[calc(--spacing(3)-1px)]":"pr-[calc(--spacing(10)-1px)] pl-[calc(--spacing(3.5)-1px)] sm:pr-[calc(--spacing(9)-1px)] sm:pl-[calc(--spacing(3)-1px)]","[&_optgroup]:font-semibold","text-base/6 text-zinc-950 placeholder:text-zinc-500 sm:text-sm/6 dark:text-white dark:*:text-white","border border-zinc-950/10 data-hover:border-zinc-950/20 dark:border-white/10 dark:data-hover:border-white/20","bg-transparent dark:bg-white/5 dark:*:bg-zinc-800","focus:outline-hidden","data-invalid:border-red-500 data-invalid:data-hover:border-red-500 dark:data-invalid:border-red-600 dark:data-invalid:data-hover:border-red-600","data-disabled:border-zinc-950/20 data-disabled:opacity-100 dark:data-disabled:border-white/15 dark:data-disabled:bg-white/[2.5%] dark:data-hover:data-disabled:border-white/15"])})),!r&&b("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:b("svg",{className:"size-5 stroke-zinc-500 group-has-data-disabled:stroke-zinc-600 sm:size-4 dark:stroke-zinc-400 forced-colors:stroke-[CanvasText]",viewBox:"0 0 16 16","aria-hidden":"true",fill:"none",children:[b("path",{d:"M5.75 10.75L8 13L10.25 10.75",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),b("path",{d:"M10.25 5.25L8 3L5.75 5.25",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]})})]})});function Cc(r){var n=r,{className:e}=n,t=N(n,["className"]);return b(uc,z(y({"data-slot":"field"},t),{className:V(e,"grid grid-cols-[1fr_auto] gap-x-8 gap-y-1 sm:grid-cols-[1fr_auto]","*:data-[slot=control]:col-start-2 *:data-[slot=control]:self-start sm:*:data-[slot=control]:mt-0.5","*:data-[slot=label]:col-start-1 *:data-[slot=label]:row-start-1","*:data-[slot=description]:col-start-1 *:data-[slot=description]:row-start-2","has-data-[slot=description]:**:data-[slot=label]:font-medium")}))}const Jh={"dark/zinc":["[--switch-bg-ring:var(--color-zinc-950)]/90 [--switch-bg:var(--color-zinc-900)] dark:[--switch-bg-ring:transparent] dark:[--switch-bg:var(--color-white)]/25","[--switch-ring:var(--color-zinc-950)]/90 [--switch-shadow:var(--color-black)]/10 [--switch:white] dark:[--switch-ring:var(--color-zinc-700)]/90"],"dark/white":["[--switch-bg-ring:var(--color-zinc-950)]/90 [--switch-bg:var(--color-zinc-900)] dark:[--switch-bg-ring:transparent] dark:[--switch-bg:var(--color-white)]","[--switch-ring:var(--color-zinc-950)]/90 [--switch-shadow:var(--color-black)]/10 [--switch:white] dark:[--switch-ring:transparent] dark:[--switch:var(--color-zinc-900)]"],dark:["[--switch-bg-ring:var(--color-zinc-950)]/90 [--switch-bg:var(--color-zinc-900)] dark:[--switch-bg-ring:var(--color-white)]/15","[--switch-ring:var(--color-zinc-950)]/90 [--switch-shadow:var(--color-black)]/10 [--switch:white]"],zinc:["[--switch-bg-ring:var(--color-zinc-700)]/90 [--switch-bg:var(--color-zinc-600)] dark:[--switch-bg-ring:transparent]","[--switch-shadow:var(--color-black)]/10 [--switch:white] [--switch-ring:var(--color-zinc-700)]/90"],white:["[--switch-bg-ring:var(--color-black)]/15 [--switch-bg:white] dark:[--switch-bg-ring:transparent]","[--switch-shadow:var(--color-black)]/10 [--switch-ring:transparent] [--switch:var(--color-zinc-950)]"],red:["[--switch-bg-ring:var(--color-red-700)]/90 [--switch-bg:var(--color-red-600)] dark:[--switch-bg-ring:transparent]","[--switch:white] [--switch-ring:var(--color-red-700)]/90 [--switch-shadow:var(--color-red-900)]/20"],amber:["[--switch-bg-ring:var(--color-amber-500)]/80 [--switch-bg:var(--color-amber-400)] dark:[--switch-bg-ring:transparent]","[--switch-ring:transparent] [--switch-shadow:transparent] [--switch:var(--color-amber-950)]"],green:["[--switch-bg-ring:var(--color-green-700)]/90 [--switch-bg:var(--color-green-600)] dark:[--switch-bg-ring:transparent]","[--switch:white] [--switch-ring:var(--color-green-700)]/90 [--switch-shadow:var(--color-green-900)]/20"],indigo:["[--switch-bg-ring:var(--color-indigo-600)]/90 [--switch-bg:var(--color-indigo-500)] dark:[--switch-bg-ring:transparent]","[--switch:white] [--switch-ring:var(--color-indigo-600)]/90 [--switch-shadow:var(--color-indigo-900)]/20"]};function Sc(n){var o=n,{color:e="dark/zinc",className:t}=o,r=N(o,["color","className"]);return b(Fh,z(y({"data-slot":"control"},r),{className:V(t,"group relative isolate inline-flex h-6 w-10 cursor-default rounded-full p-[3px] sm:h-5 sm:w-8","transition duration-0 ease-in-out data-changing:duration-200","forced-colors:outline forced-colors:[--switch-bg:Highlight] dark:forced-colors:[--switch-bg:Highlight]","bg-zinc-200 ring-1 ring-black/5 ring-inset dark:bg-white/5 dark:ring-white/15","data-checked:bg-(--switch-bg) data-checked:ring-(--switch-bg-ring) dark:data-checked:bg-(--switch-bg) dark:data-checked:ring-(--switch-bg-ring)","focus:outline-hidden data-focus:outline-2 data-focus:outline-offset-2 data-focus:outline-blue-500","data-hover:ring-black/15 data-hover:data-checked:ring-(--switch-bg-ring)","dark:data-hover:ring-white/25 dark:data-hover:data-checked:ring-(--switch-bg-ring)","data-disabled:bg-zinc-200 data-disabled:opacity-50 data-disabled:data-checked:bg-zinc-200 data-disabled:data-checked:ring-black/5","dark:data-disabled:bg-white/15 dark:data-disabled:data-checked:bg-white/15 dark:data-disabled:data-checked:ring-white/15",Jh[e]),children:b("span",{"aria-hidden":"true",className:V("pointer-events-none relative inline-block size-[1.125rem] rounded-full sm:size-3.5","translate-x-0 transition duration-200 ease-in-out","border border-transparent","bg-white shadow-sm ring-1 ring-black/5","group-data-checked:bg-(--switch) group-data-checked:shadow-(--switch-shadow) group-data-checked:ring-(--switch-ring)","group-data-checked:translate-x-4 sm:group-data-checked:translate-x-3","group-data-checked:group-data-disabled:bg-white group-data-checked:group-data-disabled:shadow-sm group-data-checked:group-data-disabled:ring-black/5")})}))}function e0({fullPrice:e}){const{settings:t,setSettings:r,forcedSettings:n}=X(lt),[o,a]=F(!1);return b(Q,{children:[b("button",{className:"ccw-btn-icon",onClick:()=>a(!0),"aria-label":"Settings",title:"Settings",children:b(Ms,{className:"svg-fill size-5"})}),b(Jo,{open:o,onClose:()=>a(!1),title:"Settings",children:b($c,{children:[b(_n,{disabled:n.locale!==void 0,children:[b(ar,{children:["Locales ",b(et,{color:"amber",children:t.locale})]}),b(ea,{children:"Displaying formatted numbers"}),b(zc,{name:"locale",value:t.locale,onChange:i=>{const l=i.target;r(z(y({},t),{locale:l.value}))},children:Object.entries(to).map(([i,l])=>b("option",{value:i,children:l},i))})]}),b(_n,{className:"mt-4",disabled:!isNaN(n.decimal),children:[b(ar,{children:["Decimal ",b(et,{color:"amber",children:t.decimal})]}),b(ea,{children:"Number of decimal places"}),b(Tc,{type:"range",name:"decimal",min:"0",max:"8",value:t.decimal,onChange:i=>{const l=i.target;r(z(y({},t),{decimal:Number(l.value)}))}})]}),b(_n,{className:"mt-4",disabled:!isNaN(n.tax),children:[b(ar,{children:"Tax/Fee"}),b(ea,{children:"Adding to the price"}),b(Tc,{type:"number",name:"tax",min:"0",value:t.tax,onChange:i=>{const l=i.target;r(z(y({},t),{tax:Number(l.value)}))}})]}),b(_n,{className:"mt-4",disabled:n.indicator!==void 0,children:[b(ar,{children:"Front Indicator"}),b(zc,{name:"front_indicator",value:t.indicator,onChange:i=>{const l=i.target;r(z(y({},t),{indicator:l.value}))},children:Object.entries(Se).map(([i,l])=>b("option",{value:l,children:l.toLowerCase()},i))})]}),b(Cc,{className:"mt-4",disabled:n.symbol!==void 0,children:[b(ar,{children:"Symbols"}),b(Sc,{name:"show_symbol",checked:t.symbol,onChange:i=>r(z(y({},t),{symbol:i}))})]}),b(Cc,{className:"mt-4",disabled:e===null||n.stat!==void 0,children:[b(ar,{children:"Crypto Stat"}),b(Sc,{name:"show_stats",checked:t.stat,onChange:i=>r(z(y({},t),{stat:i}))})]})]})})]})}function t0({bolt:e,fullPrice:t}){return b("div",{className:"flex h-10 items-center justify-between p-3",children:[b("a",{className:"svg-fill cursor-pointer hover:fill-red-500",href:"https://currencyrate.today/",target:"_blank",rel:"noopener noreferrer","aria-label":"Go to CurrencyRate.Today",title:"Source: CurrencyRate.Today",children:b("svg",{viewBox:"0 0 402 303",className:"size-6",xmlns:"http://www.w3.org/2000/svg",children:b("path",{d:"m103.05192 2.43935c-11.687 2.784-15.876 9.966-17.26 29.595-1.347 19.099-.438 17.172-9.09 19.266-43.783 10.598-70.818 45.059-74.856 95.419-3.956 49.332 20.336 89.918 61.604 102.927l4.8 1.513-.559 7.225c-2.474 32.002-.901 37.776 11.285 41.427 18.277 5.476 27.873-4.522 29.968-31.228l1.03-13.128 4.238-.664c39.89-6.243 60.593-19.138 60.593-37.74 0-18.141-11.461-23.332-29.747-13.474-57.852 31.189-103.928-7.258-87.193-72.756 10.474-40.995 50.778-54.449 94.816-31.651 16.233 8.403 25.601 5.951 30.066-7.871 6.573-20.355-10.285-34.869-48.654-41.889l-7.456-1.364.336-2.659c1.102-8.736 2.016-25.189 1.538-27.688-2.226-11.645-13.149-18.192-25.459-15.26m125.193 29.103c-4.056 1.294-9.705 7.059-11.375 11.609-1.013 2.758-2.396 16.6-4.999 50l-3.599 46.187-13.979.424c-19.66.595-25.42 4.317-25.42 16.421 0 12.612 5.93 16.629 24.549 16.629 11.765 0 11.891.021 11.898 1.907.004 1.049-1.367 19.323-3.046 40.609-2.882 36.535-2.979 38.958-1.726 43.267 5.75 19.781 38.145 16.721 42.364-4.003.285-1.398 1.662-17.987 3.06-36.864s2.779-36.554 3.069-39.281l.526-4.958 20.458.382c35.762.669 34.019-.839 60.843 52.64 9.851 19.639 18.808 36.886 19.903 38.326 8.994 11.817 31.025 9.255 37.623-4.375 3.908-8.072 3.098-10.658-13.115-41.887-19.263-37.101-22.074-41.207-31.54-46.059-4.514-2.314-4.611-2.215 4.308-4.335 35.107-8.342 52.323-31.128 52.525-69.521.201-38.196-18.296-60.376-55.806-66.918-9.317-1.624-111.504-1.8-116.521-.2m105.686 34.921c14.99 3.534 22.6 11.78 24.853 26.928 2.511 16.882-4.328 33.019-16.891 39.857-10.08 5.486-13.852 5.929-53.811 6.31l-36.298.346.504-4.521c.277-2.486 1.448-17.295 2.602-32.91 1.154-15.614 2.32-30.391 2.593-32.839l.495-4.449 35.32.013c28.168.01 36.396.266 40.633 1.265","fill-rule":"evenodd"})})}),b(Xh,{bolt:e}),b(e0,{fullPrice:t})]})}function Oc({change:e,children:t}){return e?b(et,{color:e>0?"green":e<0?"red":"zinc",className:"h-5",children:t}):null}function r0(r){var n=r,{className:e}=n,t=N(n,["className"]);return b("dl",z(y({},t),{className:V(e,"grid grid-cols-1 text-base/6 sm:grid-cols-[min(50%,--spacing(80))_auto] sm:text-sm/6")}))}function n0(r){var n=r,{className:e}=n,t=N(n,["className"]);return b("dt",z(y({},t),{className:V(e,"col-start-1 border-t border-zinc-950/5 pt-3 text-zinc-500 first:border-none sm:border-t sm:border-zinc-950/5 sm:py-3 dark:border-white/5 dark:text-zinc-400 sm:dark:border-white/5")}))}function o0(r){var n=r,{className:e}=n,t=N(n,["className"]);return b("dd",z(y({},t),{className:V(e,"pt-1 pb-3 text-zinc-950 sm:border-t sm:border-zinc-950/5 sm:py-3 sm:nth-2:border-none dark:text-white dark:sm:border-white/5")}))}function Pc(n){var o=n,{soft:e=!1,className:t}=o,r=N(o,["soft","className"]);return b("hr",z(y({role:"presentation"},r),{className:V(t,"w-full border-t",e&&"border-zinc-950/5 dark:border-white/5",!e&&"border-zinc-950/10 dark:border-white/10")}))}const a0={[Se.HIGH]:"High",[Se.OPEN]:"Open",[Se.LOW]:"Low"},i0={[Se.HIGH]:"CURRENT_DAY_HIGH",[Se.OPEN]:"CURRENT_DAY_OPEN",[Se.LOW]:"CURRENT_DAY_LOW"},l0={[Se.HIGH]:"green",[Se.OPEN]:"zinc",[Se.LOW]:"red"},ta={Latest:[{label:"Value",key:"VALUE",isChange:!0,changeKey:"CURRENT_HOUR_CHANGE_PERCENTAGE",appendPercentage:!1,badgeColor:"zinc"}],Hour:[{label:"Change",key:"CURRENT_HOUR_CHANGE",isChange:!0,changeKey:"CURRENT_HOUR_CHANGE_PERCENTAGE",appendPercentage:!0,badgeColor:"zinc"},{label:"High",key:"CURRENT_HOUR_HIGH",isChange:!1,badgeColor:"green"},{label:"Low",key:"CURRENT_HOUR_LOW",isChange:!1,badgeColor:"red"},{label:"Open",key:"CURRENT_HOUR_OPEN",isChange:!1,badgeColor:"zinc"}],"24h":[{label:"Change",key:"CURRENT_DAY_CHANGE",isChange:!0,changeKey:"CURRENT_DAY_CHANGE_PERCENTAGE",appendPercentage:!0,badgeColor:"zinc"},{label:"High",key:"CURRENT_DAY_HIGH",isChange:!1,badgeColor:"green"},{label:"Low",key:"CURRENT_DAY_LOW",isChange:!1,badgeColor:"red"},{label:"Open",key:"CURRENT_DAY_OPEN",isChange:!1,badgeColor:"zinc"}]};function c0({label:e,value:t,change:r,appendPercentage:n,badgeColor:o,currencyOpts:a}){return b(Q,{children:[b(n0,{className:"text-xs/6",children:b(et,{color:o||"zinc",children:e})}),b(o0,{className:"text-xs/6",children:r!==void 0?b(Oc,{change:r,children:[yn(t,a),n?` (${r.toFixed(2)}%)`:null]}):b(et,{color:"zinc",className:"h-5",children:yn(t,a)})})]})}function ra({title:e,stats:t,data:r,currencyOpts:n}){return b($c,{className:e!=="Latest"?"mt-4":"",children:[b(Zh,{children:e}),b(r0,{children:t.map((o,a)=>b(c0,{label:o.label,value:r[o.key],change:o.isChange&&o.changeKey?r[o.changeKey]:void 0,appendPercentage:o.appendPercentage,badgeColor:o.badgeColor,currencyOpts:n},a))})]})}function s0({data:e,symbol:t}){const[r,n]=F(!1),{settings:o}=X(lt);if(!o.stat)return null;const a=z(y({},o),{currency:t||"USD"});return b(Q,{children:[e&&b(Jo,{open:r,onClose:()=>n(!1),title:"General Statistics",children:[b(ra,{title:"Latest",stats:ta.Latest,data:e,currencyOpts:a}),b(ra,{title:"Hour",stats:ta.Hour,data:e,currencyOpts:a}),b(ra,{title:"24h",stats:ta["24h"],data:e,currencyOpts:a})]}),b(Pc,{}),b("div",{className:"flex h-10 items-center justify-between px-4 text-xs/6",children:[b("div",{className:"flex w-1/2 items-center gap-1 text-left",children:[b("b",{children:"Change:"})," ",e?b(Oc,{change:e.CURRENT_HOUR_CHANGE_PERCENTAGE,children:[e.CURRENT_HOUR_CHANGE_PERCENTAGE.toFixed(2),"%"]}):b(Q,{children:"..."})]}),b("button",{className:"ccw-btn-icon",onClick:()=>n(!0),"aria-label":"Statistics",disabled:!e,children:b(Rs,{className:"svg-fill size-5"})}),b("div",{className:"flex w-1/2 items-center justify-end gap-1 text-right",children:[b("b",{children:[a0[o.indicator],":"]})," ",e?b(et,{color:l0[o.indicator],className:"h-5",children:yn(e[i0[o.indicator]],a)}):b(Q,{children:"..."})]})]})]})}function d0(e=eo+"assets"){const[t,r]=F([]),[n,o]=F(!1),[a,i]=F(void 0),l=q(()=>Ce(this,null,function*(){o(!0),i(void 0);const c=localStorage.getItem(e);if(c)try{const s=JSON.parse(c);if(Date.now()-s.timestamp<pi){r(s.data),o(!1);return}else localStorage.removeItem(e)}catch(s){localStorage.removeItem(e)}try{const s=new Date().toISOString().match(/\d+-\d+-\d+/);if(!s){i("Invalid date format.");return}const u=s[0],d=yield fetch(js.replace("{v}",u),z(y({},fi),{cache:Ys}));if(!d.ok){i("Error fetching assets.");return}const h=yield d.json();if(h.length===0){i("No assets found.");return}const f={timestamp:Date.now(),data:h};localStorage.setItem(e,JSON.stringify(f)),r(h)}catch(s){i(s instanceof Error?s.message:"Unknown error")}finally{o(!1)}}),[e]);return Y(()=>{l()},[l]),{assets:t,loading:n,error:a,refetch:l}}function u0(e,t,r){const[n,o]=F(void 0),[a,i]=F(null),[l,c]=F(!0),[s,u]=F(void 0),[d,h]=F(!1),[f,g]=F(!1),m=`${e}-${t}`,w=D(()=>({cache:Gs,headers:y(y({},fi.headers),r?{Authorization:`Apikey ${r}`}:{})}),[r]),x=[{name:"Coindesk",getUrl:(k,T)=>Vs.replace("{fsym}",k).replace("{tsyms}",T),cache:Ks,parse:(k,T)=>Ce(this,null,function*(){const C=yield k.json();if(!C.Data||!C.Data[T])throw new Error(`Missing Data.${T}`);return C.Data[T]}),isFull:!0},{name:"Cryptocompare",getUrl:(k,T)=>Ws.replace("{fsym}",k).replace("{tsyms}",T),cache:ro,parse:k=>Ce(this,null,function*(){const C=(yield k.json())[t];if(typeof C!="number")throw new Error(`Field '${t}' is not a number`);return C}),isFull:!1},{name:"Coinbase",getUrl:(k,T)=>Bs.replace("{fsym}",k).replace("{tsyms}",T),cache:ro,parse:k=>Ce(this,null,function*(){const T=yield k.json();if(!T.data||typeof T.data.amount!="string")throw new Error("Missing or invalid json.data.amount");const C=parseFloat(T.data.amount);if(isNaN(C))throw new Error("Invalid 'amount' value");return C}),isFull:!1},{name:"OKX",getUrl:(k,T)=>Us.replace("{fsym}",k).replace("{tsyms}",T),cache:ro,parse:k=>Ce(this,null,function*(){const T=yield k.json();if(!T.data||!Array.isArray(T.data)||T.data.length===0)throw new Error("Missing or empty data array");const C=T.data[0].last,O=parseFloat(C);if(isNaN(O))throw new Error("Invalid 'last' value");return O}),isFull:!1}],E=()=>g(k=>!k),$=q(()=>Ce(this,null,function*(){if(!f){if(e===t){o(1),i(null),c(!1);return}c(!0),u(void 0),o(void 0),i(null);for(const k of x){const T=k.cache[m];if(T&&Date.now()-T.timestamp<pi){if(k.isFull){const C=T.price;i(C),o(C.VALUE)}else o(T.price);c(!1);return}try{const C=yield fetch(k.getUrl(e,t),w);if(!C.ok||k.isFull&&C.status>208)continue;const O=yield k.parse(C,m);if(k.cache[m]={price:O,timestamp:Date.now()},k.isFull){const W=O;i(W),o(W.VALUE)}else o(O);h(!0),setTimeout(()=>h(!1),500),c(!1);return}catch(C){continue}}c(!1)}}),[e,t,m,w,f]);return Y(()=>{if(!e||!t)return;$();const k=setInterval($,hi);return()=>clearInterval(k)},[e,t,$,hi]),{bolt:d,price:n,loading:l,error:s,fullPrice:a,togglePause:E,setLoading:c,refresh:$}}function f0(){var O;const{settings:e,forcedSettings:t}=X(lt),[r,n]=F(),[o,a]=F(),[i,l]=F((O=e.amount)!=null?O:1),[c,s]=F(1),[u,d]=F(Ie.FROM),{assets:h}=d0(eo+"assets"),{price:f,fullPrice:g,error:m,loading:w,setLoading:x,togglePause:E,refresh:$,bolt:k}=u0((r==null?void 0:r.SYMBOL)||e.base,(o==null?void 0:o.SYMBOL)||e.quote,e.apiKey);Y(()=>{if(!h.length)return;const W=h.find(R=>R.SYMBOL===e.base),j=h.find(R=>R.SYMBOL===e.quote),U=t.base?h.find(R=>R.SYMBOL===t.base):void 0,M=t.quote?h.find(R=>R.SYMBOL===t.quote):void 0;n(R=>{var G;return(G=U!=null?U:h.find(te=>te.SYMBOL===(R==null?void 0:R.SYMBOL)))!=null?G:W}),a(R=>{var G;return(G=M!=null?M:h.find(te=>te.SYMBOL===(R==null?void 0:R.SYMBOL)))!=null?G:j})},[h,t.base,t.quote]),Y(()=>{e.amount&&l(e.amount)},[e.amount]);const{safePrice:T,taxMultiplier:C}=D(()=>{var W;return{safePrice:f!=null?f:1,taxMultiplier:1+((W=e.tax)!=null?W:0)/100}},[f,e.tax]);return Y(()=>{u===Ie.FROM?s(i*T*C):l(c/(T*C))},[i,c,f,u,e.tax]),b("div",{id:"ccw-layout",className:V("ccw-layout",{"rounded-xl":e.rounded}),style:{backgroundColor:e.backgroundColor,backgroundImage:e.background},children:[m?b("div",{className:"flex h-34 flex-col items-center justify-center text-center",children:[b(Lt,{className:"font-semibold",children:m}),b(Lt,{children:"Please, try again later."}),b(Zo,{type:"button","aria-label":"Refresh",title:"Refresh",className:"mt-4 w-24",color:"green",onClick:()=>$(),children:"Refresh"})]}):b("div",{id:"ccw-calc",className:"relative grid h-34 grid-cols-2 justify-between gap-4 p-4",children:[b(kc,{togglePause:E,name:Ie.FROM,asset:r,value:i,direction:u,assets:h,selected:r,setDirection:d,setValue:l,onSelect:n,loading:w,setLoading:x,valueFlag:u===Ie.TO?g==null?void 0:g.VALUE_FLAG:void 0}),b("button",{type:"button","aria-label":"Swap",title:"Swap",className:"ccw-btn-icon absolute top-1/2 left-1/2 -translate-x-1/2 translate-y-3.5",onClick:()=>{d(u===Ie.FROM?Ie.TO:Ie.FROM)},children:b(Is,{className:V("size-6",u===Ie.TO&&"rotate-180")})}),b(kc,{togglePause:E,name:Ie.TO,asset:o,value:c,direction:u,assets:h,selected:o,setValue:s,setDirection:d,onSelect:a,loading:w,setLoading:x,valueFlag:u===Ie.FROM?g==null?void 0:g.VALUE_FLAG:void 0})]}),e.stat&&b(s0,{data:g,symbol:o==null?void 0:o.SYMBOL}),b(Pc,{}),b(t0,{bolt:k,fullPrice:g})]})}function p0(e){e.startsWith("#")&&(e=e.slice(1)),e.length===3&&(e=e.split("").map(a=>a+a).join(""));const t=parseInt(e.substring(0,2),16),r=parseInt(e.substring(2,4),16),n=parseInt(e.substring(4,6),16);return(t*299+r*587+n*114)/1e3<128}function h0(e){return e==="auto"?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"":e}function g0({theme:e,name:t,children:r}){const{settings:n}=X(lt),o=n.backgroundColor&&p0(n.backgroundColor);return b("div",{"aria-label":t,className:n.backgroundColor?o?"dark":"light":h0(e),children:r})}const b0=()=>{const{settings:e}=X(lt),t=L(null);return Y(()=>{if(!t.current)return;const r=new MutationObserver(n=>{var a;const o=n.filter(i=>i.target.id==="headlessui-portal-root").pop();o&&((a=t.current)==null||a.append(o.target),t.current&&(t.current.removeAttribute("inert"),t.current.removeAttribute("aria-hidden"),t.current.inert=!1))});return r.observe(document,{childList:!0,subtree:!0}),()=>{r.disconnect()}},[]),b(Q,{children:b(g0,{name:e.name,theme:e.theme||jt.AUTO,children:[b("div",{id:"ccw-app",className:V("ccw-app",{"@container":!0,"ccw-app-border":e.border,"shadow-xl":e.shadow,"rounded-xl":e.rounded}),children:b(f0,{})}),b("div",{className:"relative z-50",ref:t})]})})},v0='@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-300:oklch(80.8% .114 19.571);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-950:oklch(27.9% .077 45.635);--color-green-300:oklch(87.1% .15 154.449);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-900:oklch(35.9% .144 278.697);--color-gray-400:oklch(70.7% .022 261.325);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-zinc-950:oklch(14.1% .005 285.823);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--text-xs:.75rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-lg:1.125rem;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-black:900;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-ping:ping 1s cubic-bezier(0,0,.2,1)infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-xl:24px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.right-0{right:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.isolate{isolation:isolate}.z-50{z-index:50}.col-span-2{grid-column:span 2/span 2}.col-span-5{grid-column:span 5/span 5}.col-span-full{grid-column:1/-1}.col-start-1{grid-column-start:1}.col-start-2{grid-column-start:2}.col-start-5{grid-column-start:5}.row-start-1{grid-row-start:1}.row-start-2{grid-row-start:2}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-3\\.5{margin-inline:calc(var(--spacing)*3.5)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-16{margin-top:calc(var(--spacing)*16)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.size-\\[1\\.125rem\\]{width:1.125rem;height:1.125rem}.size-\\[max\\(100\\%\\,2\\.75rem\\)\\]{width:max(100%,2.75rem);height:max(100%,2.75rem)}.size-full{width:100%;height:100%}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-34{height:calc(var(--spacing)*34)}.h-full{height:100%}.h-px{height:1px}.min-h-full{min-height:100%}.w-1\\/2{width:50%}.w-4{width:calc(var(--spacing)*4)}.w-7{width:calc(var(--spacing)*7)}.w-10{width:calc(var(--spacing)*10)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-90{width:calc(var(--spacing)*90)}.w-full{width:100%}.w-max{width:max-content}.w-screen{width:100vw}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\\[2ch\\]{min-width:2ch}.flex-0{flex:0}.flex-1{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0\\.5{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-3\\.5{--tw-translate-y:calc(var(--spacing)*3.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-180{rotate:180deg}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\\[1fr_auto\\]{grid-template-columns:1fr auto}.grid-cols-\\[auto_1fr_1\\.5rem_0\\.5rem_auto\\]{grid-template-columns:auto 1fr 1.5rem .5rem auto}.grid-rows-\\[1fr_auto\\]{grid-template-rows:1fr auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-baseline{align-items:baseline}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-items-center{justify-items:center}.gap-0{gap:calc(var(--spacing)*0)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1\\.5{column-gap:calc(var(--spacing)*1.5)}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-8{column-gap:calc(var(--spacing)*8)}.gap-x-12{column-gap:calc(var(--spacing)*12)}.gap-y-1{row-gap:calc(var(--spacing)*1)}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\(--avatar-radius\\){border-radius:var(--avatar-radius)}.rounded-\\[20\\%\\]{border-radius:20%}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-3xl{border-top-left-radius:var(--radius-3xl);border-top-right-radius:var(--radius-3xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-1{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.ccw-border{border-color:var(--color-zinc-300)}.ccw-border:is(.dark *){border-color:var(--color-zinc-700)}.border-transparent{border-color:#0000}.border-zinc-950\\/5{border-color:#09090b0d}@supports (color:color-mix(in lab,red,red)){.border-zinc-950\\/5{border-color:color-mix(in oklab,var(--color-zinc-950)5%,transparent)}}.border-zinc-950\\/10{border-color:#09090b1a}@supports (color:color-mix(in lab,red,red)){.border-zinc-950\\/10{border-color:color-mix(in oklab,var(--color-zinc-950)10%,transparent)}}.ccw-app-border{padding:calc(var(--spacing)*.25);background-color:#18181b33}@supports (color:color-mix(in lab,red,red)){.ccw-app-border{background-color:color-mix(in oklab,var(--color-zinc-900)20%,transparent)}}.ccw-app-border:is(.dark *){background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.ccw-app-border:is(.dark *){background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-skeleton{background-color:#99a1af80}@supports (color:color-mix(in lab,red,red)){.bg-skeleton{background-color:color-mix(in oklab,var(--color-gray-400)50%,transparent)}}.bg-skeleton:is(.dark *){background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-skeleton:is(.dark *){background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.bg-\\(--btn-border\\){background-color:var(--btn-border)}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-400\\/20{background-color:#fcbb0033}@supports (color:color-mix(in lab,red,red)){.bg-amber-400\\/20{background-color:color-mix(in oklab,var(--color-amber-400)20%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\\/15{background-color:#3080ff26}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\\/15{background-color:color-mix(in oklab,var(--color-blue-500)15%,transparent)}}.bg-green-500{background-color:var(--color-green-500)}.bg-green-500\\/25{background-color:#00c75840}@supports (color:color-mix(in lab,red,red)){.bg-green-500\\/25{background-color:color-mix(in oklab,var(--color-green-500)25%,transparent)}}.bg-indigo-500\\/15{background-color:#625fff26}@supports (color:color-mix(in lab,red,red)){.bg-indigo-500\\/15{background-color:color-mix(in oklab,var(--color-indigo-500)15%,transparent)}}.bg-red-500\\/25{background-color:#fb2c3640}@supports (color:color-mix(in lab,red,red)){.bg-red-500\\/25{background-color:color-mix(in oklab,var(--color-red-500)25%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/75{background-color:#ffffffbf}@supports (color:color-mix(in lab,red,red)){.bg-white\\/75{background-color:color-mix(in oklab,var(--color-white)75%,transparent)}}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-200{background-color:var(--color-zinc-200)}.bg-zinc-600\\/10{background-color:#52525c1a}@supports (color:color-mix(in lab,red,red)){.bg-zinc-600\\/10{background-color:color-mix(in oklab,var(--color-zinc-600)10%,transparent)}}.bg-zinc-950\\/5{background-color:#09090b0d}@supports (color:color-mix(in lab,red,red)){.bg-zinc-950\\/5{background-color:color-mix(in oklab,var(--color-zinc-950)5%,transparent)}}.bg-zinc-950\\/25{background-color:#09090b40}@supports (color:color-mix(in lab,red,red)){.bg-zinc-950\\/25{background-color:color-mix(in oklab,var(--color-zinc-950)25%,transparent)}}.bg-zinc-950\\/\\[2\\.5\\%\\]{background-color:#09090b06}@supports (color:color-mix(in lab,red,red)){.bg-zinc-950\\/\\[2\\.5\\%\\]{background-color:color-mix(in oklab,var(--color-zinc-950)2.5%,transparent)}}.svg-fill{fill:var(--color-zinc-700)}.svg-fill:is(.dark *){fill:var(--color-zinc-300)}.fill-amber-300{fill:var(--color-amber-300)}.fill-current{fill:currentColor}.fill-zinc-500{fill:var(--color-zinc-500)}.stroke-zinc-500{stroke:var(--color-zinc-500)}.p-\\(--gutter\\){padding:var(--gutter)}.p-0\\.25{padding:calc(var(--spacing)*.25)}.p-1{padding:calc(var(--spacing)*1)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-\\[3px\\]{padding:3px}.p-\\[5\\%\\]{padding:5%}.px-0{padding-inline:calc(var(--spacing)*0)}.px-0\\.5{padding-inline:calc(var(--spacing)*.5)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3\\.5{padding-inline:calc(var(--spacing)*3.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-\\[calc\\(--spacing\\(3\\.5\\)-1px\\)\\]{padding-inline:calc(calc(var(--spacing)*3.5) - 1px)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-\\[calc\\(--spacing\\(2\\.5\\)-1px\\)\\]{padding-block:calc(calc(var(--spacing)*2.5) - 1px)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-2\\.5{padding-top:calc(var(--spacing)*2.5)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-6{padding-top:calc(var(--spacing)*6)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-\\[calc\\(--spacing\\(10\\)-1px\\)\\]{padding-right:calc(calc(var(--spacing)*10) - 1px)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-\\[calc\\(--spacing\\(3\\.5\\)-1px\\)\\]{padding-left:calc(calc(var(--spacing)*3.5) - 1px)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-sans{font-family:var(--font-sans)}.text-base\\/5{font-size:var(--text-base);line-height:calc(var(--spacing)*5)}.text-base\\/6{font-size:var(--text-base);line-height:calc(var(--spacing)*6)}.text-lg\\/6{font-size:var(--text-lg);line-height:calc(var(--spacing)*6)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\\/5{font-size:var(--text-sm);line-height:calc(var(--spacing)*5)}.text-xs\\/6{font-size:var(--text-xs);line-height:calc(var(--spacing)*6)}.text-\\[48px\\]{font-size:48px}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-balance{text-wrap:balance}.text-pretty{text-wrap:pretty}.text-amber-700{color:var(--color-amber-700)}.text-amber-950{color:var(--color-amber-950)}.text-blue-700{color:var(--color-blue-700)}.text-green-500{color:var(--color-green-500)}.text-green-800{color:var(--color-green-800)}.text-indigo-700{color:var(--color-indigo-700)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-white{color:var(--color-white)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-800{color:var(--color-zinc-800)}.text-zinc-950{color:var(--color-zinc-950)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.decoration-zinc-950\\/50{text-decoration-color:#09090b80}@supports (color:color-mix(in lab,red,red)){.decoration-zinc-950\\/50{-webkit-text-decoration-color:color-mix(in oklab,var(--color-zinc-950)50%,transparent);text-decoration-color:color-mix(in oklab,var(--color-zinc-950)50%,transparent)}}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-black\\/5{--tw-ring-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.ring-black\\/5{--tw-ring-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.ring-zinc-950\\/10{--tw-ring-color:#09090b1a}@supports (color:color-mix(in lab,red,red)){.ring-zinc-950\\/10{--tw-ring-color:color-mix(in oklab,var(--color-zinc-950)10%,transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.-outline-offset-1{outline-offset:-1px}.outline-offset-2{outline-offset:2px}.outline-black\\/10{outline-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.outline-black\\/10{outline-color:color-mix(in oklab,var(--color-black)10%,transparent)}}.outline-blue-500{outline-color:var(--color-blue-500)}.outline-transparent{outline-color:#0000}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-0{--tw-duration:0s;transition-duration:0s}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.will-change-transform{will-change:transform}.forced-color-adjust-none{forced-color-adjust:none}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[--anchor-gap\\:--spacing\\(2\\)\\]{--anchor-gap:calc(var(--spacing)*2)}.\\[--anchor-padding\\:--spacing\\(1\\)\\]{--anchor-padding:calc(var(--spacing)*1)}.\\[--avatar-radius\\:20\\%\\]{--avatar-radius:20%}.\\[--btn-bg\\:var\\(--color-amber-400\\)\\]{--btn-bg:var(--color-amber-400)}.\\[--btn-bg\\:var\\(--color-blue-600\\)\\]{--btn-bg:var(--color-blue-600)}.\\[--btn-bg\\:var\\(--color-green-600\\)\\]{--btn-bg:var(--color-green-600)}.\\[--btn-bg\\:var\\(--color-indigo-500\\)\\]{--btn-bg:var(--color-indigo-500)}.\\[--btn-bg\\:var\\(--color-zinc-600\\)\\]{--btn-bg:var(--color-zinc-600)}.\\[--btn-bg\\:var\\(--color-zinc-900\\)\\]{--btn-bg:var(--color-zinc-900)}.\\[--btn-bg\\:white\\]{--btn-bg:white}.\\[--btn-border\\:var\\(--color-amber-500\\)\\]\\/80{--btn-border:#f99c00cc}@supports (color:color-mix(in lab,red,red)){.\\[--btn-border\\:var\\(--color-amber-500\\)\\]\\/80{--btn-border:color-mix(in oklab,var(--color-amber-500)80%,transparent)}}.\\[--btn-border\\:var\\(--color-blue-700\\)\\]\\/90{--btn-border:#1447e6e6}@supports (color:color-mix(in lab,red,red)){.\\[--btn-border\\:var\\(--color-blue-700\\)\\]\\/90{--btn-border:color-mix(in oklab,var(--color-blue-700)90%,transparent)}}.\\[--btn-border\\:var\\(--color-green-700\\)\\]\\/90{--btn-border:#008138e6}@supports (color:color-mix(in lab,red,red)){.\\[--btn-border\\:var\\(--color-green-700\\)\\]\\/90{--btn-border:color-mix(in oklab,var(--color-green-700)90%,transparent)}}.\\[--btn-border\\:var\\(--color-indigo-600\\)\\]\\/90{--btn-border:#4f39f6e6}@supports (color:color-mix(in lab,red,red)){.\\[--btn-border\\:var\\(--color-indigo-600\\)\\]\\/90{--btn-border:color-mix(in oklab,var(--color-indigo-600)90%,transparent)}}.\\[--btn-border\\:var\\(--color-zinc-700\\)\\]\\/90{--btn-border:#3f3f46e6}@supports (color:color-mix(in lab,red,red)){.\\[--btn-border\\:var\\(--color-zinc-700\\)\\]\\/90{--btn-border:color-mix(in oklab,var(--color-zinc-700)90%,transparent)}}.\\[--btn-border\\:var\\(--color-zinc-950\\)\\]\\/10{--btn-border:#09090b1a}@supports (color:color-mix(in lab,red,red)){.\\[--btn-border\\:var\\(--color-zinc-950\\)\\]\\/10{--btn-border:color-mix(in oklab,var(--color-zinc-950)10%,transparent)}}.\\[--btn-border\\:var\\(--color-zinc-950\\)\\]\\/90{--btn-border:#09090be6}@supports (color:color-mix(in lab,red,red)){.\\[--btn-border\\:var\\(--color-zinc-950\\)\\]\\/90{--btn-border:color-mix(in oklab,var(--color-zinc-950)90%,transparent)}}.\\[--btn-hover-overlay\\:var\\(--color-white\\)\\]\\/10{--btn-hover-overlay:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.\\[--btn-hover-overlay\\:var\\(--color-white\\)\\]\\/10{--btn-hover-overlay:color-mix(in oklab,var(--color-white)10%,transparent)}}.\\[--btn-hover-overlay\\:var\\(--color-white\\)\\]\\/25{--btn-hover-overlay:#ffffff40}@supports (color:color-mix(in lab,red,red)){.\\[--btn-hover-overlay\\:var\\(--color-white\\)\\]\\/25{--btn-hover-overlay:color-mix(in oklab,var(--color-white)25%,transparent)}}.\\[--btn-hover-overlay\\:var\\(--color-zinc-950\\)\\]\\/\\[2\\.5\\%\\]{--btn-hover-overlay:#09090b06}@supports (color:color-mix(in lab,red,red)){.\\[--btn-hover-overlay\\:var\\(--color-zinc-950\\)\\]\\/\\[2\\.5\\%\\]{--btn-hover-overlay:color-mix(in oklab,var(--color-zinc-950)2.5%,transparent)}}.\\[--btn-icon\\:var\\(--color-amber-600\\)\\]{--btn-icon:var(--color-amber-600)}.\\[--btn-icon\\:var\\(--color-blue-400\\)\\]{--btn-icon:var(--color-blue-400)}.\\[--btn-icon\\:var\\(--color-indigo-300\\)\\]{--btn-icon:var(--color-indigo-300)}.\\[--btn-icon\\:var\\(--color-white\\)\\]\\/60{--btn-icon:#fff9}@supports (color:color-mix(in lab,red,red)){.\\[--btn-icon\\:var\\(--color-white\\)\\]\\/60{--btn-icon:color-mix(in oklab,var(--color-white)60%,transparent)}}.\\[--btn-icon\\:var\\(--color-zinc-400\\)\\]{--btn-icon:var(--color-zinc-400)}.\\[--btn-icon\\:var\\(--color-zinc-500\\)\\]{--btn-icon:var(--color-zinc-500)}.\\[--gutter\\:--spacing\\(8\\)\\]{--gutter:calc(var(--spacing)*8)}.\\[--switch-bg-ring\\:var\\(--color-amber-500\\)\\]\\/80{--switch-bg-ring:#f99c00cc}@supports (color:color-mix(in lab,red,red)){.\\[--switch-bg-ring\\:var\\(--color-amber-500\\)\\]\\/80{--switch-bg-ring:color-mix(in oklab,var(--color-amber-500)80%,transparent)}}.\\[--switch-bg-ring\\:var\\(--color-black\\)\\]\\/15{--switch-bg-ring:#00000026}@supports (color:color-mix(in lab,red,red)){.\\[--switch-bg-ring\\:var\\(--color-black\\)\\]\\/15{--switch-bg-ring:color-mix(in oklab,var(--color-black)15%,transparent)}}.\\[--switch-bg-ring\\:var\\(--color-green-700\\)\\]\\/90{--switch-bg-ring:#008138e6}@supports (color:color-mix(in lab,red,red)){.\\[--switch-bg-ring\\:var\\(--color-green-700\\)\\]\\/90{--switch-bg-ring:color-mix(in oklab,var(--color-green-700)90%,transparent)}}.\\[--switch-bg-ring\\:var\\(--color-indigo-600\\)\\]\\/90{--switch-bg-ring:#4f39f6e6}@supports (color:color-mix(in lab,red,red)){.\\[--switch-bg-ring\\:var\\(--color-indigo-600\\)\\]\\/90{--switch-bg-ring:color-mix(in oklab,var(--color-indigo-600)90%,transparent)}}.\\[--switch-bg-ring\\:var\\(--color-red-700\\)\\]\\/90{--switch-bg-ring:#bf000fe6}@supports (color:color-mix(in lab,red,red)){.\\[--switch-bg-ring\\:var\\(--color-red-700\\)\\]\\/90{--switch-bg-ring:color-mix(in oklab,var(--color-red-700)90%,transparent)}}.\\[--switch-bg-ring\\:var\\(--color-zinc-700\\)\\]\\/90{--switch-bg-ring:#3f3f46e6}@supports (color:color-mix(in lab,red,red)){.\\[--switch-bg-ring\\:var\\(--color-zinc-700\\)\\]\\/90{--switch-bg-ring:color-mix(in oklab,var(--color-zinc-700)90%,transparent)}}.\\[--switch-bg-ring\\:var\\(--color-zinc-950\\)\\]\\/90{--switch-bg-ring:#09090be6}@supports (color:color-mix(in lab,red,red)){.\\[--switch-bg-ring\\:var\\(--color-zinc-950\\)\\]\\/90{--switch-bg-ring:color-mix(in oklab,var(--color-zinc-950)90%,transparent)}}.\\[--switch-bg\\:var\\(--color-amber-400\\)\\]{--switch-bg:var(--color-amber-400)}.\\[--switch-bg\\:var\\(--color-green-600\\)\\]{--switch-bg:var(--color-green-600)}.\\[--switch-bg\\:var\\(--color-indigo-500\\)\\]{--switch-bg:var(--color-indigo-500)}.\\[--switch-bg\\:var\\(--color-red-600\\)\\]{--switch-bg:var(--color-red-600)}.\\[--switch-bg\\:var\\(--color-zinc-600\\)\\]{--switch-bg:var(--color-zinc-600)}.\\[--switch-bg\\:var\\(--color-zinc-900\\)\\]{--switch-bg:var(--color-zinc-900)}.\\[--switch-bg\\:white\\]{--switch-bg:white}.\\[--switch-ring\\:transparent\\]{--switch-ring:transparent}.\\[--switch-ring\\:var\\(--color-green-700\\)\\]\\/90{--switch-ring:#008138e6}@supports (color:color-mix(in lab,red,red)){.\\[--switch-ring\\:var\\(--color-green-700\\)\\]\\/90{--switch-ring:color-mix(in oklab,var(--color-green-700)90%,transparent)}}.\\[--switch-ring\\:var\\(--color-indigo-600\\)\\]\\/90{--switch-ring:#4f39f6e6}@supports (color:color-mix(in lab,red,red)){.\\[--switch-ring\\:var\\(--color-indigo-600\\)\\]\\/90{--switch-ring:color-mix(in oklab,var(--color-indigo-600)90%,transparent)}}.\\[--switch-ring\\:var\\(--color-red-700\\)\\]\\/90{--switch-ring:#bf000fe6}@supports (color:color-mix(in lab,red,red)){.\\[--switch-ring\\:var\\(--color-red-700\\)\\]\\/90{--switch-ring:color-mix(in oklab,var(--color-red-700)90%,transparent)}}.\\[--switch-ring\\:var\\(--color-zinc-700\\)\\]\\/90{--switch-ring:#3f3f46e6}@supports (color:color-mix(in lab,red,red)){.\\[--switch-ring\\:var\\(--color-zinc-700\\)\\]\\/90{--switch-ring:color-mix(in oklab,var(--color-zinc-700)90%,transparent)}}.\\[--switch-ring\\:var\\(--color-zinc-950\\)\\]\\/90{--switch-ring:#09090be6}@supports (color:color-mix(in lab,red,red)){.\\[--switch-ring\\:var\\(--color-zinc-950\\)\\]\\/90{--switch-ring:color-mix(in oklab,var(--color-zinc-950)90%,transparent)}}.\\[--switch-shadow\\:transparent\\]{--switch-shadow:transparent}.\\[--switch-shadow\\:var\\(--color-black\\)\\]\\/10{--switch-shadow:#0000001a}@supports (color:color-mix(in lab,red,red)){.\\[--switch-shadow\\:var\\(--color-black\\)\\]\\/10{--switch-shadow:color-mix(in oklab,var(--color-black)10%,transparent)}}.\\[--switch-shadow\\:var\\(--color-green-900\\)\\]\\/20{--switch-shadow:#0d542b33}@supports (color:color-mix(in lab,red,red)){.\\[--switch-shadow\\:var\\(--color-green-900\\)\\]\\/20{--switch-shadow:color-mix(in oklab,var(--color-green-900)20%,transparent)}}.\\[--switch-shadow\\:var\\(--color-indigo-900\\)\\]\\/20{--switch-shadow:#312c8533}@supports (color:color-mix(in lab,red,red)){.\\[--switch-shadow\\:var\\(--color-indigo-900\\)\\]\\/20{--switch-shadow:color-mix(in oklab,var(--color-indigo-900)20%,transparent)}}.\\[--switch-shadow\\:var\\(--color-red-900\\)\\]\\/20{--switch-shadow:#82181a33}@supports (color:color-mix(in lab,red,red)){.\\[--switch-shadow\\:var\\(--color-red-900\\)\\]\\/20{--switch-shadow:color-mix(in oklab,var(--color-red-900)20%,transparent)}}.\\[--switch\\:var\\(--color-amber-950\\)\\]{--switch:var(--color-amber-950)}.\\[--switch\\:var\\(--color-zinc-950\\)\\]{--switch:var(--color-zinc-950)}.\\[--switch\\:white\\]{--switch:white}.ring-inset{--tw-ring-inset:inset}:is(.\\*\\:col-start-1>*){grid-column-start:1}:is(.\\*\\:row-start-1>*){grid-row-start:1}:is(.\\*\\:w-full>*){width:100%}:is(.\\*\\:rounded-\\(--avatar-radius\\)>*){border-radius:var(--avatar-radius)}:is(.\\*\\:rounded-full>*){border-radius:3.40282e38px}.group-has-data-disabled\\:stroke-zinc-600:is(:where(.group):has([data-disabled]) *){stroke:var(--color-zinc-600)}.group-data-checked\\:translate-x-4:is(:where(.group)[data-checked] *){--tw-translate-x:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-data-checked\\:bg-\\(--switch\\):is(:where(.group)[data-checked] *){background-color:var(--switch)}.group-data-checked\\:shadow-\\(--switch-shadow\\):is(:where(.group)[data-checked] *){--tw-shadow:var(--switch-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-checked\\:ring-\\(--switch-ring\\):is(:where(.group)[data-checked] *){--tw-ring-color:var(--switch-ring)}.group-data-checked\\:group-data-disabled\\:bg-white:is(:where(.group)[data-checked] *):is(:where(.group)[data-disabled] *){background-color:var(--color-white)}.group-data-checked\\:group-data-disabled\\:shadow-sm:is(:where(.group)[data-checked] *):is(:where(.group)[data-disabled] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-checked\\:group-data-disabled\\:ring-black\\/5:is(:where(.group)[data-checked] *):is(:where(.group)[data-disabled] *){--tw-ring-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.group-data-checked\\:group-data-disabled\\:ring-black\\/5:is(:where(.group)[data-checked] *):is(:where(.group)[data-disabled] *){--tw-ring-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.group-data-focus\\:text-white:is(:where(.group)[data-focus] *){color:var(--color-white)}.group-data-hover\\:bg-amber-400\\/30:is(:where(.group)[data-hover] *){background-color:#fcbb004d}@supports (color:color-mix(in lab,red,red)){.group-data-hover\\:bg-amber-400\\/30:is(:where(.group)[data-hover] *){background-color:color-mix(in oklab,var(--color-amber-400)30%,transparent)}}.group-data-hover\\:bg-blue-500\\/25:is(:where(.group)[data-hover] *){background-color:#3080ff40}@supports (color:color-mix(in lab,red,red)){.group-data-hover\\:bg-blue-500\\/25:is(:where(.group)[data-hover] *){background-color:color-mix(in oklab,var(--color-blue-500)25%,transparent)}}.group-data-hover\\:bg-green-500\\/25:is(:where(.group)[data-hover] *){background-color:#00c75840}@supports (color:color-mix(in lab,red,red)){.group-data-hover\\:bg-green-500\\/25:is(:where(.group)[data-hover] *){background-color:color-mix(in oklab,var(--color-green-500)25%,transparent)}}.group-data-hover\\:bg-indigo-500\\/25:is(:where(.group)[data-hover] *){background-color:#625fff40}@supports (color:color-mix(in lab,red,red)){.group-data-hover\\:bg-indigo-500\\/25:is(:where(.group)[data-hover] *){background-color:color-mix(in oklab,var(--color-indigo-500)25%,transparent)}}.group-data-hover\\:bg-red-500\\/25:is(:where(.group)[data-hover] *){background-color:#fb2c3640}@supports (color:color-mix(in lab,red,red)){.group-data-hover\\:bg-red-500\\/25:is(:where(.group)[data-hover] *){background-color:color-mix(in oklab,var(--color-red-500)25%,transparent)}}.group-data-hover\\:bg-zinc-500\\/20:is(:where(.group)[data-hover] *){background-color:#71717b33}@supports (color:color-mix(in lab,red,red)){.group-data-hover\\:bg-zinc-500\\/20:is(:where(.group)[data-hover] *){background-color:color-mix(in oklab,var(--color-zinc-500)20%,transparent)}}.placeholder\\:text-zinc-500::placeholder{color:var(--color-zinc-500)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-0:before{content:var(--tw-content);inset:calc(var(--spacing)*0)}.before\\:inset-px:before{content:var(--tw-content);inset:1px}.before\\:-z-10:before{content:var(--tw-content);z-index:-10}.before\\:rounded-\\[calc\\(var\\(--radius-lg\\)-1px\\)\\]:before{content:var(--tw-content);border-radius:calc(var(--radius-lg) - 1px)}.before\\:bg-\\(--btn-bg\\):before{content:var(--tw-content);background-color:var(--btn-bg)}.before\\:bg-white:before{content:var(--tw-content);background-color:var(--color-white)}.before\\:shadow-sm:before{content:var(--tw-content);--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.after\\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:calc(var(--spacing)*0)}.after\\:-z-10:after{content:var(--tw-content);z-index:-10}.after\\:rounded-\\[calc\\(var\\(--radius-lg\\)-1px\\)\\]:after{content:var(--tw-content);border-radius:calc(var(--radius-lg) - 1px)}.after\\:rounded-lg:after{content:var(--tw-content);border-radius:var(--radius-lg)}.after\\:shadow-\\[shadow\\:inset_0_1px_--theme\\(--color-white\\/15\\%\\)\\]:after{content:var(--tw-content);--tw-shadow:inset 0 1px var(--tw-shadow-color,#ffffff26);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@supports (color:color-mix(in lab,red,red)){.after\\:shadow-\\[shadow\\:inset_0_1px_--theme\\(--color-white\\/15\\%\\)\\]:after{--tw-shadow:inset 0 1px var(--tw-shadow-color,color-mix(in oklab,var(--color-white)15%,transparent))}}.after\\:ring-transparent:after{content:var(--tw-content);--tw-ring-color:transparent}.after\\:ring-inset:after{content:var(--tw-content);--tw-ring-inset:inset}.first\\:border-none:first-child{--tw-border-style:none;border-style:none}@media (hover:hover){.hover\\:fill-red-500:hover{fill:var(--color-red-500)}}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\\:outline-0:focus{outline-style:var(--tw-outline-style);outline-width:0}.has-data-disabled\\:opacity-50:has([data-disabled]){opacity:.5}.has-data-disabled\\:before\\:bg-zinc-950\\/5:has([data-disabled]):before{content:var(--tw-content);background-color:#09090b0d}@supports (color:color-mix(in lab,red,red)){.has-data-disabled\\:before\\:bg-zinc-950\\/5:has([data-disabled]):before{background-color:color-mix(in oklab,var(--color-zinc-950)5%,transparent)}}.has-data-disabled\\:before\\:shadow-none:has([data-disabled]):before{content:var(--tw-content);--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-data-focus\\:after\\:ring-2:has([data-focus]):after{content:var(--tw-content);--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-data-focus\\:after\\:ring-blue-500:has([data-focus]):after{content:var(--tw-content);--tw-ring-color:var(--color-blue-500)}.has-data-invalid\\:before\\:shadow-red-500\\/10:has([data-invalid]):before{content:var(--tw-content);--tw-shadow-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.has-data-invalid\\:before\\:shadow-red-500\\/10:has([data-invalid]):before{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-red-500)10%,transparent)var(--tw-shadow-alpha),transparent)}}:where(.has-data-\\[slot\\=description\\]\\:space-y-6:has([data-slot=description])>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.data-active\\:bg-zinc-950\\/5[data-active]{background-color:#09090b0d}@supports (color:color-mix(in lab,red,red)){.data-active\\:bg-zinc-950\\/5[data-active]{background-color:color-mix(in oklab,var(--color-zinc-950)5%,transparent)}}.data-active\\:bg-zinc-950\\/\\[2\\.5\\%\\][data-active]{background-color:#09090b06}@supports (color:color-mix(in lab,red,red)){.data-active\\:bg-zinc-950\\/\\[2\\.5\\%\\][data-active]{background-color:color-mix(in oklab,var(--color-zinc-950)2.5%,transparent)}}.data-active\\:\\[--btn-border\\:var\\(--color-zinc-950\\)\\]\\/15[data-active]{--btn-border:#09090b26}@supports (color:color-mix(in lab,red,red)){.data-active\\:\\[--btn-border\\:var\\(--color-zinc-950\\)\\]\\/15[data-active]{--btn-border:color-mix(in oklab,var(--color-zinc-950)15%,transparent)}}.data-active\\:\\[--btn-icon\\:var\\(--color-blue-300\\)\\][data-active]{--btn-icon:var(--color-blue-300)}.data-active\\:\\[--btn-icon\\:var\\(--color-indigo-200\\)\\][data-active]{--btn-icon:var(--color-indigo-200)}.data-active\\:\\[--btn-icon\\:var\\(--color-white\\)\\]\\/80[data-active]{--btn-icon:#fffc}@supports (color:color-mix(in lab,red,red)){.data-active\\:\\[--btn-icon\\:var\\(--color-white\\)\\]\\/80[data-active]{--btn-icon:color-mix(in oklab,var(--color-white)80%,transparent)}}.data-active\\:\\[--btn-icon\\:var\\(--color-zinc-300\\)\\][data-active]{--btn-icon:var(--color-zinc-300)}.data-active\\:\\[--btn-icon\\:var\\(--color-zinc-500\\)\\][data-active]{--btn-icon:var(--color-zinc-500)}.data-active\\:\\[--btn-icon\\:var\\(--color-zinc-700\\)\\][data-active]{--btn-icon:var(--color-zinc-700)}.data-active\\:after\\:bg-\\(--btn-hover-overlay\\)[data-active]:after{content:var(--tw-content);background-color:var(--btn-hover-overlay)}.data-changing\\:duration-200[data-changing]{--tw-duration:.2s;transition-duration:.2s}.data-checked\\:bg-\\(--switch-bg\\)[data-checked]{background-color:var(--switch-bg)}.data-checked\\:ring-\\(--switch-bg-ring\\)[data-checked]{--tw-ring-color:var(--switch-bg-ring)}.data-closed\\:translate-y-12[data-closed]{--tw-translate-y:calc(var(--spacing)*12);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-closed\\:opacity-0[data-closed]{opacity:0}.data-disabled\\:border-zinc-950\\/20[data-disabled]{border-color:#09090b33}@supports (color:color-mix(in lab,red,red)){.data-disabled\\:border-zinc-950\\/20[data-disabled]{border-color:color-mix(in oklab,var(--color-zinc-950)20%,transparent)}}.data-disabled\\:bg-zinc-200[data-disabled]{background-color:var(--color-zinc-200)}.data-disabled\\:opacity-50[data-disabled]{opacity:.5}.data-disabled\\:opacity-100[data-disabled]{opacity:1}.data-disabled\\:before\\:shadow-none[data-disabled]:before,.data-disabled\\:after\\:shadow-none[data-disabled]:after{content:var(--tw-content);--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-disabled\\:data-checked\\:bg-zinc-200[data-disabled][data-checked]{background-color:var(--color-zinc-200)}.data-disabled\\:data-checked\\:ring-black\\/5[data-disabled][data-checked]{--tw-ring-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.data-disabled\\:data-checked\\:ring-black\\/5[data-disabled][data-checked]{--tw-ring-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.data-enter\\:ease-out[data-enter]{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.data-focus\\:bg-blue-500[data-focus]{background-color:var(--color-blue-500)}.data-focus\\:text-white[data-focus]{color:var(--color-white)}.data-focus\\:outline[data-focus]{outline-style:var(--tw-outline-style);outline-width:1px}.data-focus\\:outline-2[data-focus]{outline-style:var(--tw-outline-style);outline-width:2px}.data-focus\\:outline-offset-2[data-focus]{outline-offset:2px}.data-focus\\:outline-blue-500[data-focus]{outline-color:var(--color-blue-500)}.data-hover\\:border-zinc-950\\/20[data-hover]{border-color:#09090b33}@supports (color:color-mix(in lab,red,red)){.data-hover\\:border-zinc-950\\/20[data-hover]{border-color:color-mix(in oklab,var(--color-zinc-950)20%,transparent)}}.data-hover\\:bg-zinc-950\\/5[data-hover]{background-color:#09090b0d}@supports (color:color-mix(in lab,red,red)){.data-hover\\:bg-zinc-950\\/5[data-hover]{background-color:color-mix(in oklab,var(--color-zinc-950)5%,transparent)}}.data-hover\\:bg-zinc-950\\/\\[2\\.5\\%\\][data-hover]{background-color:#09090b06}@supports (color:color-mix(in lab,red,red)){.data-hover\\:bg-zinc-950\\/\\[2\\.5\\%\\][data-hover]{background-color:color-mix(in oklab,var(--color-zinc-950)2.5%,transparent)}}.data-hover\\:decoration-zinc-950[data-hover]{-webkit-text-decoration-color:var(--color-zinc-950);text-decoration-color:var(--color-zinc-950)}.data-hover\\:ring-black\\/15[data-hover]{--tw-ring-color:#00000026}@supports (color:color-mix(in lab,red,red)){.data-hover\\:ring-black\\/15[data-hover]{--tw-ring-color:color-mix(in oklab,var(--color-black)15%,transparent)}}.data-hover\\:\\[--btn-border\\:var\\(--color-zinc-950\\)\\]\\/15[data-hover]{--btn-border:#09090b26}@supports (color:color-mix(in lab,red,red)){.data-hover\\:\\[--btn-border\\:var\\(--color-zinc-950\\)\\]\\/15[data-hover]{--btn-border:color-mix(in oklab,var(--color-zinc-950)15%,transparent)}}.data-hover\\:\\[--btn-icon\\:var\\(--color-blue-300\\)\\][data-hover]{--btn-icon:var(--color-blue-300)}.data-hover\\:\\[--btn-icon\\:var\\(--color-indigo-200\\)\\][data-hover]{--btn-icon:var(--color-indigo-200)}.data-hover\\:\\[--btn-icon\\:var\\(--color-white\\)\\]\\/80[data-hover]{--btn-icon:#fffc}@supports (color:color-mix(in lab,red,red)){.data-hover\\:\\[--btn-icon\\:var\\(--color-white\\)\\]\\/80[data-hover]{--btn-icon:color-mix(in oklab,var(--color-white)80%,transparent)}}.data-hover\\:\\[--btn-icon\\:var\\(--color-zinc-300\\)\\][data-hover]{--btn-icon:var(--color-zinc-300)}.data-hover\\:\\[--btn-icon\\:var\\(--color-zinc-500\\)\\][data-hover]{--btn-icon:var(--color-zinc-500)}.data-hover\\:\\[--btn-icon\\:var\\(--color-zinc-700\\)\\][data-hover]{--btn-icon:var(--color-zinc-700)}.data-hover\\:after\\:bg-\\(--btn-hover-overlay\\)[data-hover]:after{content:var(--tw-content);background-color:var(--btn-hover-overlay)}.data-hover\\:data-checked\\:ring-\\(--switch-bg-ring\\)[data-hover][data-checked]{--tw-ring-color:var(--switch-bg-ring)}.data-invalid\\:border-red-500[data-invalid],.data-invalid\\:data-hover\\:border-red-500[data-invalid][data-hover]{border-color:var(--color-red-500)}.data-leave\\:duration-100[data-leave]{--tw-duration:.1s;transition-duration:.1s}.data-leave\\:ease-in[data-leave]{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.data-closed\\:data-leave\\:opacity-0[data-closed][data-leave]{opacity:0}.data-\\[anchor\\~\\=end\\]\\:\\[--anchor-offset\\:6px\\][data-anchor~=end]{--anchor-offset:6px}.data-\\[anchor\\~\\=start\\]\\:\\[--anchor-offset\\:-6px\\][data-anchor~=start]{--anchor-offset:-6px}:is(.\\*\\:data-\\[slot\\=avatar\\]\\:mr-2\\.5>*)[data-slot=avatar]{margin-right:calc(var(--spacing)*2.5)}:is(.\\*\\:data-\\[slot\\=avatar\\]\\:-ml-1>*)[data-slot=avatar]{margin-left:calc(var(--spacing)*-1)}:is(.\\*\\:data-\\[slot\\=avatar\\]\\:size-6>*)[data-slot=avatar]{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}:is(.\\*\\:data-\\[slot\\=control\\]\\:col-start-2>*)[data-slot=control]{grid-column-start:2}:is(.\\*\\:data-\\[slot\\=control\\]\\:self-start>*)[data-slot=control]{align-self:flex-start}:is(.\\*\\:data-\\[slot\\=description\\]\\:col-start-1>*)[data-slot=description]{grid-column-start:1}:is(.\\*\\:data-\\[slot\\=description\\]\\:row-start-2>*)[data-slot=description]{grid-row-start:2}:is(.\\*\\:data-\\[slot\\=icon\\]\\:pointer-events-none>*)[data-slot=icon]{pointer-events:none}:is(.\\*\\:data-\\[slot\\=icon\\]\\:absolute>*)[data-slot=icon]{position:absolute}:is(.\\*\\:data-\\[slot\\=icon\\]\\:top-3>*)[data-slot=icon]{top:calc(var(--spacing)*3)}:is(.\\*\\:data-\\[slot\\=icon\\]\\:z-10>*)[data-slot=icon]{z-index:10}:is(.\\*\\:data-\\[slot\\=icon\\]\\:col-start-1>*)[data-slot=icon]{grid-column-start:1}:is(.\\*\\:data-\\[slot\\=icon\\]\\:row-start-1>*)[data-slot=icon]{grid-row-start:1}:is(.\\*\\:data-\\[slot\\=icon\\]\\:-mx-0\\.5>*)[data-slot=icon]{margin-inline:calc(var(--spacing)*-.5)}:is(.\\*\\:data-\\[slot\\=icon\\]\\:my-0\\.5>*)[data-slot=icon]{margin-block:calc(var(--spacing)*.5)}:is(.\\*\\:data-\\[slot\\=icon\\]\\:mr-2\\.5>*)[data-slot=icon]{margin-right:calc(var(--spacing)*2.5)}:is(.\\*\\:data-\\[slot\\=icon\\]\\:-ml-0\\.5>*)[data-slot=icon]{margin-left:calc(var(--spacing)*-.5)}:is(.\\*\\:data-\\[slot\\=icon\\]\\:size-5>*)[data-slot=icon]{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}:is(.\\*\\:data-\\[slot\\=icon\\]\\:shrink-0>*)[data-slot=icon]{flex-shrink:0}:is(.\\*\\:data-\\[slot\\=icon\\]\\:self-center>*)[data-slot=icon]{align-self:center}:is(.\\*\\:data-\\[slot\\=icon\\]\\:text-\\(--btn-icon\\)>*)[data-slot=icon]{color:var(--btn-icon)}:is(.\\*\\:data-\\[slot\\=icon\\]\\:text-zinc-500>*)[data-slot=icon]{color:var(--color-zinc-500)}:is(.data-focus\\:\\*\\:data-\\[slot\\=icon\\]\\:text-white[data-focus]>*)[data-slot=icon]{color:var(--color-white)}:is(.\\*\\:data-\\[slot\\=label\\]\\:col-start-1>*)[data-slot=label]{grid-column-start:1}:is(.\\*\\:data-\\[slot\\=label\\]\\:row-start-1>*)[data-slot=label]{grid-row-start:1}:is(.\\*\\:data-\\[slot\\=label\\]\\:font-medium>*)[data-slot=label]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}:is(.\\*\\*\\:data-\\[slot\\=label\\]\\:font-normal *)[data-slot=label]{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}:is(.has-data-\\[slot\\=description\\]\\:\\*\\*\\:data-\\[slot\\=label\\]\\:font-medium:has([data-slot=description]) *)[data-slot=label]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}:is(.\\*\\:data-\\[slot\\=text\\]\\:mt-1>*)[data-slot=text]{margin-top:calc(var(--spacing)*1)}@supports (grid-template-columns:subgrid){.supports-\\[grid-template-columns\\:subgrid\\]\\:grid{display:grid}.supports-\\[grid-template-columns\\:subgrid\\]\\:grid-cols-\\[auto_1fr_1\\.5rem_0\\.5rem_auto\\]{grid-template-columns:auto 1fr 1.5rem .5rem auto}.supports-\\[grid-template-columns\\:subgrid\\]\\:grid-cols-subgrid{grid-template-columns:subgrid}}@media (min-width:40rem){.sm\\:mx-3{margin-inline:calc(var(--spacing)*3)}.sm\\:mb-auto{margin-bottom:auto}.sm\\:size-3\\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.sm\\:size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.sm\\:h-5{height:calc(var(--spacing)*5)}.sm\\:w-8{width:calc(var(--spacing)*8)}.sm\\:max-w-2xl{max-width:var(--container-2xl)}.sm\\:max-w-3xl{max-width:var(--container-3xl)}.sm\\:max-w-4xl{max-width:var(--container-4xl)}.sm\\:max-w-5xl{max-width:var(--container-5xl)}.sm\\:max-w-lg{max-width:var(--container-lg)}.sm\\:max-w-md{max-width:var(--container-md)}.sm\\:max-w-sm{max-width:var(--container-sm)}.sm\\:max-w-xl{max-width:var(--container-xl)}.sm\\:max-w-xs{max-width:var(--container-xs)}.sm\\:grid-cols-\\[1fr_auto\\]{grid-template-columns:1fr auto}.sm\\:grid-cols-\\[min\\(50\\%\\,--spacing\\(80\\)\\)_auto\\]{grid-template-columns:min(50%,calc(var(--spacing)*80))auto}.sm\\:grid-rows-\\[1fr_auto_3fr\\]{grid-template-rows:1fr auto 3fr}.sm\\:flex-row{flex-direction:row}.sm\\:rounded-2xl{border-radius:var(--radius-2xl)}.sm\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.sm\\:border-zinc-950\\/5{border-color:#09090b0d}@supports (color:color-mix(in lab,red,red)){.sm\\:border-zinc-950\\/5{border-color:color-mix(in oklab,var(--color-zinc-950)5%,transparent)}}.sm\\:p-4{padding:calc(var(--spacing)*4)}.sm\\:px-3{padding-inline:calc(var(--spacing)*3)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}.sm\\:px-\\[calc\\(--spacing\\(3\\)-1px\\)\\]{padding-inline:calc(calc(var(--spacing)*3) - 1px)}.sm\\:py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.sm\\:py-3{padding-block:calc(var(--spacing)*3)}.sm\\:py-8{padding-block:calc(var(--spacing)*8)}.sm\\:py-\\[calc\\(--spacing\\(1\\.5\\)-1px\\)\\]{padding-block:calc(calc(var(--spacing)*1.5) - 1px)}.sm\\:pt-0{padding-top:calc(var(--spacing)*0)}.sm\\:pr-\\[calc\\(--spacing\\(9\\)-1px\\)\\]{padding-right:calc(calc(var(--spacing)*9) - 1px)}.sm\\:pl-\\[calc\\(--spacing\\(3\\)-1px\\)\\]{padding-left:calc(calc(var(--spacing)*3) - 1px)}.sm\\:text-base\\/6{font-size:var(--text-base);line-height:calc(var(--spacing)*6)}.sm\\:text-sm\\/6{font-size:var(--text-sm);line-height:calc(var(--spacing)*6)}.sm\\:text-xs\\/5{font-size:var(--text-xs);line-height:calc(var(--spacing)*5)}.sm\\:text-\\[0\\.8125rem\\]{font-size:.8125rem}:is(.sm\\:\\*\\:w-auto>*){width:auto}.sm\\:group-data-checked\\:translate-x-3:is(:where(.group)[data-checked] *){--tw-translate-x:calc(var(--spacing)*3);translate:var(--tw-translate-x)var(--tw-translate-y)}.sm\\:focus-within\\:after\\:ring-2:focus-within:after{content:var(--tw-content);--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.sm\\:focus-within\\:after\\:ring-blue-500:focus-within:after{content:var(--tw-content);--tw-ring-color:var(--color-blue-500)}.sm\\:data-closed\\:translate-y-0[data-closed]{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.sm\\:data-closed\\:data-enter\\:scale-95[data-closed][data-enter]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sm\\:data-\\[anchor\\~\\=end\\]\\:\\[--anchor-offset\\:4px\\][data-anchor~=end]{--anchor-offset:4px}.sm\\:data-\\[anchor\\~\\=start\\]\\:\\[--anchor-offset\\:-4px\\][data-anchor~=start]{--anchor-offset:-4px}:is(.sm\\:\\*\\:data-\\[slot\\=avatar\\]\\:mr-2>*)[data-slot=avatar]{margin-right:calc(var(--spacing)*2)}:is(.sm\\:\\*\\:data-\\[slot\\=avatar\\]\\:size-5>*)[data-slot=avatar]{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}:is(.sm\\:\\*\\:data-\\[slot\\=control\\]\\:mt-0\\.5>*)[data-slot=control]{margin-top:calc(var(--spacing)*.5)}:is(.sm\\:\\*\\:data-\\[slot\\=icon\\]\\:top-2\\.5>*)[data-slot=icon]{top:calc(var(--spacing)*2.5)}:is(.sm\\:\\*\\:data-\\[slot\\=icon\\]\\:my-1>*)[data-slot=icon]{margin-block:calc(var(--spacing)*1)}:is(.sm\\:\\*\\:data-\\[slot\\=icon\\]\\:mr-2>*)[data-slot=icon]{margin-right:calc(var(--spacing)*2)}:is(.sm\\:\\*\\:data-\\[slot\\=icon\\]\\:size-4>*)[data-slot=icon]{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.sm\\:nth-2\\:border-none:nth-child(2){--tw-border-style:none;border-style:none}}@media (min-width:64rem){.lg\\:px-8{padding-inline:calc(var(--spacing)*8)}.lg\\:py-16{padding-block:calc(var(--spacing)*16)}}@container (min-width:28rem){.\\@md\\:text-lg\\/6{font-size:var(--text-lg);line-height:calc(var(--spacing)*6)}}.dark\\:border-white\\/5:is(.dark *){border-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.dark\\:border-white\\/5:is(.dark *){border-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\\:border-white\\/10:is(.dark *){border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:border-white\\/10:is(.dark *){border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\\:border-white\\/15:is(.dark *){border-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.dark\\:border-white\\/15:is(.dark *){border-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.dark\\:border-white\\/20:is(.dark *){border-color:#fff3}@supports (color:color-mix(in lab,red,red)){.dark\\:border-white\\/20:is(.dark *){border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.dark\\:bg-\\(--btn-bg\\):is(.dark *){background-color:var(--btn-bg)}.dark\\:bg-amber-400\\/10:is(.dark *){background-color:#fcbb001a}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-amber-400\\/10:is(.dark *){background-color:color-mix(in oklab,var(--color-amber-400)10%,transparent)}}.dark\\:bg-green-500\\/25:is(.dark *){background-color:#00c75840}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-green-500\\/25:is(.dark *){background-color:color-mix(in oklab,var(--color-green-500)25%,transparent)}}.dark\\:bg-red-500\\/25:is(.dark *){background-color:#fb2c3640}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-red-500\\/25:is(.dark *){background-color:color-mix(in oklab,var(--color-red-500)25%,transparent)}}.dark\\:bg-white\\/5:is(.dark *){background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-white\\/5:is(.dark *){background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\\:bg-white\\/10:is(.dark *){background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-white\\/10:is(.dark *){background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\\:bg-zinc-800\\/75:is(.dark *){background-color:#27272abf}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-zinc-800\\/75:is(.dark *){background-color:color-mix(in oklab,var(--color-zinc-800)75%,transparent)}}.dark\\:bg-zinc-900:is(.dark *){background-color:var(--color-zinc-900)}.dark\\:bg-zinc-950\\/50:is(.dark *){background-color:#09090b80}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-zinc-950\\/50:is(.dark *){background-color:color-mix(in oklab,var(--color-zinc-950)50%,transparent)}}.dark\\:stroke-zinc-400:is(.dark *){stroke:var(--color-zinc-400)}.dark\\:text-amber-400:is(.dark *){color:var(--color-amber-400)}.dark\\:text-blue-400:is(.dark *){color:var(--color-blue-400)}.dark\\:text-green-300:is(.dark *){color:var(--color-green-300)}.dark\\:text-indigo-400:is(.dark *){color:var(--color-indigo-400)}.dark\\:text-red-300:is(.dark *){color:var(--color-red-300)}.dark\\:text-red-500:is(.dark *){color:var(--color-red-500)}.dark\\:text-white:is(.dark *){color:var(--color-white)}.dark\\:text-zinc-300:is(.dark *){color:var(--color-zinc-300)}.dark\\:text-zinc-400:is(.dark *){color:var(--color-zinc-400)}.dark\\:text-zinc-950:is(.dark *){color:var(--color-zinc-950)}.dark\\:decoration-white\\/50:is(.dark *){text-decoration-color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.dark\\:decoration-white\\/50:is(.dark *){-webkit-text-decoration-color:color-mix(in oklab,var(--color-white)50%,transparent);text-decoration-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.dark\\:\\[color-scheme\\:dark\\]:is(.dark *){color-scheme:dark}.dark\\:ring-white\\/10:is(.dark *){--tw-ring-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:ring-white\\/10:is(.dark *){--tw-ring-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\\:ring-white\\/15:is(.dark *){--tw-ring-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.dark\\:ring-white\\/15:is(.dark *){--tw-ring-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.dark\\:outline-white\\/10:is(.dark *){outline-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:outline-white\\/10:is(.dark *){outline-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\\:\\[--btn-bg\\:transparent\\]:is(.dark *){--btn-bg:transparent}.dark\\:\\[--btn-bg\\:var\\(--color-zinc-600\\)\\]:is(.dark *){--btn-bg:var(--color-zinc-600)}.dark\\:\\[--btn-bg\\:var\\(--color-zinc-800\\)\\]:is(.dark *){--btn-bg:var(--color-zinc-800)}.dark\\:\\[--btn-bg\\:white\\]:is(.dark *){--btn-bg:white}.dark\\:\\[--btn-hover-overlay\\:var\\(--color-white\\)\\]\\/5:is(.dark *){--btn-hover-overlay:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.dark\\:\\[--btn-hover-overlay\\:var\\(--color-white\\)\\]\\/5:is(.dark *){--btn-hover-overlay:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\\:\\[--btn-hover-overlay\\:var\\(--color-zinc-950\\)\\]\\/5:is(.dark *){--btn-hover-overlay:#09090b0d}@supports (color:color-mix(in lab,red,red)){.dark\\:\\[--btn-hover-overlay\\:var\\(--color-zinc-950\\)\\]\\/5:is(.dark *){--btn-hover-overlay:color-mix(in oklab,var(--color-zinc-950)5%,transparent)}}.dark\\:\\[--btn-icon\\:var\\(--color-zinc-500\\)\\]:is(.dark *){--btn-icon:var(--color-zinc-500)}.dark\\:\\[--switch-bg-ring\\:transparent\\]:is(.dark *){--switch-bg-ring:transparent}.dark\\:\\[--switch-bg-ring\\:var\\(--color-white\\)\\]\\/15:is(.dark *){--switch-bg-ring:#ffffff26}@supports (color:color-mix(in lab,red,red)){.dark\\:\\[--switch-bg-ring\\:var\\(--color-white\\)\\]\\/15:is(.dark *){--switch-bg-ring:color-mix(in oklab,var(--color-white)15%,transparent)}}.dark\\:\\[--switch-bg\\:var\\(--color-white\\)\\]:is(.dark *){--switch-bg:var(--color-white)}.dark\\:\\[--switch-bg\\:var\\(--color-white\\)\\]\\/25:is(.dark *){--switch-bg:#ffffff40}@supports (color:color-mix(in lab,red,red)){.dark\\:\\[--switch-bg\\:var\\(--color-white\\)\\]\\/25:is(.dark *){--switch-bg:color-mix(in oklab,var(--color-white)25%,transparent)}}.dark\\:\\[--switch-ring\\:transparent\\]:is(.dark *){--switch-ring:transparent}.dark\\:\\[--switch-ring\\:var\\(--color-zinc-700\\)\\]\\/90:is(.dark *){--switch-ring:#3f3f46e6}@supports (color:color-mix(in lab,red,red)){.dark\\:\\[--switch-ring\\:var\\(--color-zinc-700\\)\\]\\/90:is(.dark *){--switch-ring:color-mix(in oklab,var(--color-zinc-700)90%,transparent)}}.dark\\:\\[--switch\\:var\\(--color-zinc-900\\)\\]:is(.dark *){--switch:var(--color-zinc-900)}.dark\\:ring-inset:is(.dark *){--tw-ring-inset:inset}:is(.dark\\:\\*\\:bg-zinc-800:is(.dark *)>*){background-color:var(--color-zinc-800)}:is(.dark\\:\\*\\:text-white:is(.dark *)>*){color:var(--color-white)}.dark\\:group-data-hover\\:bg-amber-400\\/15:is(.dark *):is(:where(.group)[data-hover] *){background-color:#fcbb0026}@supports (color:color-mix(in lab,red,red)){.dark\\:group-data-hover\\:bg-amber-400\\/15:is(.dark *):is(:where(.group)[data-hover] *){background-color:color-mix(in oklab,var(--color-amber-400)15%,transparent)}}.dark\\:group-data-hover\\:bg-blue-500\\/25:is(.dark *):is(:where(.group)[data-hover] *){background-color:#3080ff40}@supports (color:color-mix(in lab,red,red)){.dark\\:group-data-hover\\:bg-blue-500\\/25:is(.dark *):is(:where(.group)[data-hover] *){background-color:color-mix(in oklab,var(--color-blue-500)25%,transparent)}}.dark\\:group-data-hover\\:bg-green-500\\/20:is(.dark *):is(:where(.group)[data-hover] *){background-color:#00c75833}@supports (color:color-mix(in lab,red,red)){.dark\\:group-data-hover\\:bg-green-500\\/20:is(.dark *):is(:where(.group)[data-hover] *){background-color:color-mix(in oklab,var(--color-green-500)20%,transparent)}}.dark\\:group-data-hover\\:bg-indigo-500\\/20:is(.dark *):is(:where(.group)[data-hover] *){background-color:#625fff33}@supports (color:color-mix(in lab,red,red)){.dark\\:group-data-hover\\:bg-indigo-500\\/20:is(.dark *):is(:where(.group)[data-hover] *){background-color:color-mix(in oklab,var(--color-indigo-500)20%,transparent)}}.dark\\:group-data-hover\\:bg-red-500\\/20:is(.dark *):is(:where(.group)[data-hover] *){background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.dark\\:group-data-hover\\:bg-red-500\\/20:is(.dark *):is(:where(.group)[data-hover] *){background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)}}.dark\\:group-data-hover\\:bg-white\\/10:is(.dark *):is(:where(.group)[data-hover] *){background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:group-data-hover\\:bg-white\\/10:is(.dark *):is(:where(.group)[data-hover] *){background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\\:before\\:hidden:is(.dark *):before{content:var(--tw-content);display:none}.dark\\:after\\:-inset-px:is(.dark *):after{content:var(--tw-content);inset:-1px}.dark\\:after\\:rounded-lg:is(.dark *):after{content:var(--tw-content);border-radius:var(--radius-lg)}.dark\\:data-active\\:bg-white\\/5:is(.dark *)[data-active]{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.dark\\:data-active\\:bg-white\\/5:is(.dark *)[data-active]{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\\:data-active\\:bg-white\\/10:is(.dark *)[data-active]{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:data-active\\:bg-white\\/10:is(.dark *)[data-active]{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\\:data-active\\:\\[--btn-icon\\:var\\(--color-zinc-400\\)\\]:is(.dark *)[data-active]{--btn-icon:var(--color-zinc-400)}.dark\\:data-checked\\:bg-\\(--switch-bg\\):is(.dark *)[data-checked]{background-color:var(--switch-bg)}.dark\\:data-checked\\:ring-\\(--switch-bg-ring\\):is(.dark *)[data-checked]{--tw-ring-color:var(--switch-bg-ring)}.dark\\:data-disabled\\:border-white\\/15:is(.dark *)[data-disabled]{border-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.dark\\:data-disabled\\:border-white\\/15:is(.dark *)[data-disabled]{border-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.dark\\:data-disabled\\:bg-white\\/15:is(.dark *)[data-disabled]{background-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.dark\\:data-disabled\\:bg-white\\/15:is(.dark *)[data-disabled]{background-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.dark\\:data-disabled\\:bg-white\\/\\[2\\.5\\%\\]:is(.dark *)[data-disabled]{background-color:#ffffff06}@supports (color:color-mix(in lab,red,red)){.dark\\:data-disabled\\:bg-white\\/\\[2\\.5\\%\\]:is(.dark *)[data-disabled]{background-color:color-mix(in oklab,var(--color-white)2.5%,transparent)}}.dark\\:data-disabled\\:data-checked\\:bg-white\\/15:is(.dark *)[data-disabled][data-checked]{background-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.dark\\:data-disabled\\:data-checked\\:bg-white\\/15:is(.dark *)[data-disabled][data-checked]{background-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.dark\\:data-disabled\\:data-checked\\:ring-white\\/15:is(.dark *)[data-disabled][data-checked]{--tw-ring-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.dark\\:data-disabled\\:data-checked\\:ring-white\\/15:is(.dark *)[data-disabled][data-checked]{--tw-ring-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.dark\\:data-hover\\:border-white\\/20:is(.dark *)[data-hover]{border-color:#fff3}@supports (color:color-mix(in lab,red,red)){.dark\\:data-hover\\:border-white\\/20:is(.dark *)[data-hover]{border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.dark\\:data-hover\\:bg-white\\/5:is(.dark *)[data-hover]{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.dark\\:data-hover\\:bg-white\\/5:is(.dark *)[data-hover]{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\\:data-hover\\:bg-white\\/10:is(.dark *)[data-hover]{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:data-hover\\:bg-white\\/10:is(.dark *)[data-hover]{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\\:data-hover\\:decoration-white:is(.dark *)[data-hover]{-webkit-text-decoration-color:var(--color-white);text-decoration-color:var(--color-white)}.dark\\:data-hover\\:ring-white\\/25:is(.dark *)[data-hover]{--tw-ring-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.dark\\:data-hover\\:ring-white\\/25:is(.dark *)[data-hover]{--tw-ring-color:color-mix(in oklab,var(--color-white)25%,transparent)}}.dark\\:data-hover\\:\\[--btn-icon\\:var\\(--color-zinc-400\\)\\]:is(.dark *)[data-hover]{--btn-icon:var(--color-zinc-400)}.dark\\:data-hover\\:data-checked\\:ring-\\(--switch-bg-ring\\):is(.dark *)[data-hover][data-checked]{--tw-ring-color:var(--switch-bg-ring)}.dark\\:data-hover\\:data-disabled\\:border-white\\/15:is(.dark *)[data-hover][data-disabled]{border-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.dark\\:data-hover\\:data-disabled\\:border-white\\/15:is(.dark *)[data-hover][data-disabled]{border-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.dark\\:data-invalid\\:border-red-500:is(.dark *)[data-invalid]{border-color:var(--color-red-500)}.dark\\:data-invalid\\:border-red-600:is(.dark *)[data-invalid]{border-color:var(--color-red-600)}.dark\\:data-invalid\\:data-hover\\:border-red-500:is(.dark *)[data-invalid][data-hover]{border-color:var(--color-red-500)}.dark\\:data-invalid\\:data-hover\\:border-red-600:is(.dark *)[data-invalid][data-hover]{border-color:var(--color-red-600)}:is(.dark\\:\\*\\:data-\\[slot\\=icon\\]\\:text-zinc-400:is(.dark *)>*)[data-slot=icon]{color:var(--color-zinc-400)}:is(.dark\\:data-focus\\:\\*\\:data-\\[slot\\=icon\\]\\:text-white:is(.dark *)[data-focus]>*)[data-slot=icon]{color:var(--color-white)}@media (min-width:40rem){.dark\\:sm\\:border-white\\/5:is(.dark *){border-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.dark\\:sm\\:border-white\\/5:is(.dark *){border-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.sm\\:dark\\:border-white\\/5:is(.dark *){border-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.sm\\:dark\\:border-white\\/5:is(.dark *){border-color:color-mix(in oklab,var(--color-white)5%,transparent)}}}@media (forced-colors:active){.forced-colors\\:bg-\\[CanvasText\\]{background-color:canvastext}.forced-colors\\:stroke-\\[CanvasText\\]{stroke:canvastext}.forced-colors\\:text-\\[CanvasText\\]{color:canvastext}.forced-colors\\:outline{outline-style:var(--tw-outline-style);outline-width:1px}.forced-colors\\:\\[--btn-icon\\:ButtonText\\]{--btn-icon:ButtonText}.forced-colors\\:\\[--switch-bg\\:Highlight\\]{--switch-bg:Highlight}.forced-colors\\:group-data-focus\\:text-\\[HighlightText\\]:is(:where(.group)[data-focus] *){color:highlighttext}.forced-colors\\:data-focus\\:bg-\\[Highlight\\][data-focus]{background-color:highlight}.forced-colors\\:data-focus\\:text-\\[HighlightText\\][data-focus]{color:highlighttext}.forced-colors\\:data-hover\\:\\[--btn-icon\\:ButtonText\\][data-hover]{--btn-icon:ButtonText}:is(.forced-colors\\:data-focus\\:\\*\\:data-\\[slot\\=icon\\]\\:text-\\[HighlightText\\][data-focus]>*)[data-slot=icon]{color:highlighttext}.dark\\:forced-colors\\:\\[--switch-bg\\:Highlight\\]:is(.dark *){--switch-bg:Highlight}}.has-\\[\\[data-slot\\=icon\\]\\:first-child\\]\\:\\[\\&_input\\]\\:pl-10:has([data-slot=icon]:first-child) input{padding-left:calc(var(--spacing)*10)}.has-\\[\\[data-slot\\=icon\\]\\:last-child\\]\\:\\[\\&_input\\]\\:pr-10:has([data-slot=icon]:last-child) input{padding-right:calc(var(--spacing)*10)}@media (min-width:40rem){.sm\\:has-\\[\\[data-slot\\=icon\\]\\:first-child\\]\\:\\[\\&_input\\]\\:pl-8:has([data-slot=icon]:first-child) input{padding-left:calc(var(--spacing)*8)}.sm\\:has-\\[\\[data-slot\\=icon\\]\\:last-child\\]\\:\\[\\&_input\\]\\:pr-8:has([data-slot=icon]:last-child) input{padding-right:calc(var(--spacing)*8)}}.\\[\\&_optgroup\\]\\:font-semibold optgroup{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.\\[\\&\\:\\:-webkit-date-and-time-value\\]\\:min-h-\\[1\\.5em\\]::-webkit-date-and-time-value{min-height:1.5em}.\\[\\&\\:\\:-webkit-datetime-edit\\]\\:inline-flex::-webkit-datetime-edit{display:inline-flex}.\\[\\&\\:\\:-webkit-datetime-edit\\]\\:p-0::-webkit-datetime-edit{padding:calc(var(--spacing)*0)}.\\[\\&\\:\\:-webkit-datetime-edit-day-field\\]\\:p-0::-webkit-datetime-edit-day-field{padding:calc(var(--spacing)*0)}.\\[\\&\\:\\:-webkit-datetime-edit-fields-wrapper\\]\\:p-0::-webkit-datetime-edit-fields-wrapper{padding:calc(var(--spacing)*0)}.\\[\\&\\:\\:-webkit-datetime-edit-hour-field\\]\\:p-0::-webkit-datetime-edit-hour-field{padding:calc(var(--spacing)*0)}.\\[\\&\\:\\:-webkit-datetime-edit-meridiem-field\\]\\:p-0::-webkit-datetime-edit-meridiem-field{padding:calc(var(--spacing)*0)}.\\[\\&\\:\\:-webkit-datetime-edit-millisecond-field\\]\\:p-0::-webkit-datetime-edit-millisecond-field{padding:calc(var(--spacing)*0)}.\\[\\&\\:\\:-webkit-datetime-edit-minute-field\\]\\:p-0::-webkit-datetime-edit-minute-field{padding:calc(var(--spacing)*0)}.\\[\\&\\:\\:-webkit-datetime-edit-month-field\\]\\:p-0::-webkit-datetime-edit-month-field{padding:calc(var(--spacing)*0)}.\\[\\&\\:\\:-webkit-datetime-edit-second-field\\]\\:p-0::-webkit-datetime-edit-second-field{padding:calc(var(--spacing)*0)}.\\[\\&\\:\\:-webkit-datetime-edit-year-field\\]\\:p-0::-webkit-datetime-edit-year-field{padding:calc(var(--spacing)*0)}.\\[\\&\\>\\*\\+\\[data-slot\\=control\\]\\]\\:mt-6>*+[data-slot=control]{margin-top:calc(var(--spacing)*6)}.\\[\\&\\>\\[data-slot\\=control\\]\\+\\[data-slot\\=description\\]\\]\\:mt-3>[data-slot=control]+[data-slot=description],.\\[\\&\\>\\[data-slot\\=control\\]\\+\\[data-slot\\=error\\]\\]\\:mt-3>[data-slot=control]+[data-slot=error],.\\[\\&\\>\\[data-slot\\=description\\]\\+\\[data-slot\\=control\\]\\]\\:mt-3>[data-slot=description]+[data-slot=control]{margin-top:calc(var(--spacing)*3)}.\\[\\&\\>\\[data-slot\\=icon\\]\\:first-child\\]\\:left-3>[data-slot=icon]:first-child{left:calc(var(--spacing)*3)}@media (min-width:40rem){.sm\\:\\[\\&\\>\\[data-slot\\=icon\\]\\:first-child\\]\\:left-2\\.5>[data-slot=icon]:first-child{left:calc(var(--spacing)*2.5)}}.\\[\\&\\>\\[data-slot\\=icon\\]\\:last-child\\]\\:right-3>[data-slot=icon]:last-child{right:calc(var(--spacing)*3)}@media (min-width:40rem){.sm\\:\\[\\&\\>\\[data-slot\\=icon\\]\\:last-child\\]\\:right-2\\.5>[data-slot=icon]:last-child{right:calc(var(--spacing)*2.5)}}.\\[\\&\\>\\[data-slot\\=label\\]\\+\\[data-slot\\=control\\]\\]\\:mt-3>[data-slot=label]+[data-slot=control]{margin-top:calc(var(--spacing)*3)}.\\[\\&\\>\\[data-slot\\=label\\]\\+\\[data-slot\\=description\\]\\]\\:mt-1>[data-slot=label]+[data-slot=description]{margin-top:calc(var(--spacing)*1)}@media (pointer:fine){.\\[\\@media\\(pointer\\:fine\\)\\]\\:hidden{display:none}}}button{cursor:pointer}.ccw-btn-icon{padding:calc(var(--spacing)*1);border-radius:3.40282e38px}@media (hover:hover){.ccw-btn-icon:hover{background-color:var(--color-zinc-200)}}.ccw-btn-icon:active{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-color:var(--color-blue-500)}@media (hover:hover){.ccw-btn-icon:is(.dark *):hover{background-color:#09090b80}@supports (color:color-mix(in lab,red,red)){.ccw-btn-icon:is(.dark *):hover{background-color:color-mix(in oklab,var(--color-zinc-950)50%,transparent)}}}.ccw-btn-icon:disabled{transition-property:none;transform:none}.ccw-btn-icon:disabled:hover{background-color:#0000}.ccw-amount-field{-ms-overflow-style:none;scrollbar-width:none;height:calc(var(--spacing)*8);font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height));text-wrap:balance;justify-content:center;align-items:center;display:flex;overflow:scroll}.ccw-amount-field::-webkit-scrollbar{display:none}.ccw-app{position:relative}.ccw-layout{border-color:var(--color-zinc-200);background-color:var(--color-white);color:var(--color-zinc-900);flex-direction:column;justify-content:center;display:flex}.ccw-layout:is(.dark *){background-color:var(--color-zinc-800);color:var(--color-zinc-200)}.ccw-currency-button{cursor:pointer;border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-zinc-200);padding-inline:calc(var(--spacing)*1.5);padding-block:calc(var(--spacing)*1.5);font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height));--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);background-color:#f4f4f580}@supports (color:color-mix(in lab,red,red)){.ccw-currency-button{background-color:color-mix(in oklab,var(--color-zinc-100)50%,transparent)}}.ccw-currency-button:focus-within{outline-style:var(--tw-outline-style);outline-width:2px;outline-color:var(--color-blue-500)}.ccw-currency-button:active{background-color:#9f9fa933;border-color:#0000}@supports (color:color-mix(in lab,red,red)){.ccw-currency-button:active{background-color:color-mix(in oklab,var(--color-zinc-400)20%,transparent)}}.ccw-currency-button:active{outline-style:var(--tw-outline-style);outline-width:2px;outline-color:var(--color-blue-500)}.ccw-currency-button:is(.dark *){border-color:#fff3}@supports (color:color-mix(in lab,red,red)){.ccw-currency-button:is(.dark *){border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.ccw-currency-button:is(.dark *){background-color:#18181b4d}@supports (color:color-mix(in lab,red,red)){.ccw-currency-button:is(.dark *){background-color:color-mix(in oklab,var(--color-zinc-900)30%,transparent)}}.ccw-amount{font-size:var(--text-base);line-height:calc(var(--spacing)*5);--tw-numeric-figure:lining-nums;--tw-slashed-zero:slashed-zero;--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}@container (min-width:28rem){.ccw-amount{font-size:var(--text-lg);line-height:calc(var(--spacing)*6)}}:disabled{cursor:not-allowed;opacity:.5}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}',m0=':host{--tw-translate-x: 0;--tw-translate-y: 0;--tw-translate-z: 0;--tw-rotate-x: rotateX(0);--tw-rotate-y: rotateY(0);--tw-rotate-z: rotateZ(0);--tw-skew-x: skewX(0);--tw-skew-y: skewY(0);--tw-space-y-reverse: 0;--tw-border-style: solid;--tw-leading: initial;--tw-font-weight: initial;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-outline-style: solid;--tw-backdrop-blur: initial;--tw-backdrop-brightness: initial;--tw-backdrop-contrast: initial;--tw-backdrop-grayscale: initial;--tw-backdrop-hue-rotate: initial;--tw-backdrop-invert: initial;--tw-backdrop-opacity: initial;--tw-backdrop-saturate: initial;--tw-backdrop-sepia: initial;--tw-duration: initial;--tw-ease: initial;--tw-content: "";--tw-scale-x: 1;--tw-scale-y: 1;--tw-scale-z: 1;--tw-gradient-position: initial;--tw-gradient-from: #0000;--tw-gradient-via: #0000;--tw-gradient-to: #0000;--tw-gradient-stops: initial;--tw-gradient-via-stops: initial;--tw-gradient-from-position: 0%;--tw-gradient-via-position: 50%;--tw-gradient-to-position: 100%}';function Pr(e){if(e==="false")return!1;if(e==="true"||e==="")return!0}const w0=e=>{var n,o,a,i,l,c,s;const t=(n=e.decimal)!=null?n:e.decimalPlaces,r={indicator:[Se.HIGH,Se.OPEN,Se.LOW].includes((o=e.indicator)==null?void 0:o.toLowerCase())?(a=e.indicator)==null?void 0:a.toLowerCase():void 0,amount:Number(e.amount),decimal:Number(t),tax:Number(e.tax),rounded:Pr(e.rounded),border:Pr(e.border),symbol:Pr(e.symbol),stat:Pr(e.stat),shadow:Pr(e.shadow),locale:e.locale,theme:[jt.AUTO,jt.DARK,jt.LIGHT].includes((i=e.theme)==null?void 0:i.toLowerCase())?(l=e.theme)==null?void 0:l.toLowerCase():void 0,base:(c=e.base)==null?void 0:c.toUpperCase(),quote:(s=e.quote)==null?void 0:s.toUpperCase(),name:e.name,apiKey:e.apiKey,background:e.background,backgroundColor:e.backgroundColor};return b(nd,{forcedSettings:r,children:[b("style",{children:m0}),b("style",{children:v0}),b(b0,y({},e))]})};customElements.get("crypto-converter-widget")||fs(w0,"crypto-converter-widget",["tax","name","stat","base","theme","quote","border","amount","symbol","shadow","locale","decimal","rounded","indicator","background","background-color","decimal-places"],{shadow:!0})})();