!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var o="1.6.0",i={},l={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},s=function(e){var o=[],i=!1,l=e.dir&&"left"===e.dir?"scrollLeft":"scrollTop";return this.each(function(){var e=t(this);return this!==document&&this!==window?!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(e[l]()>0?o.push(this):(e[l](1),i=e[l]()>0,i&&o.push(this),e[l](0))):(o.push(document.scrollingElement),!1):void 0}),o.length||this.each(function(){"BODY"===this.nodeName&&(o=[this])}),"first"===e.el&&o.length>1&&(o=[o[0]]),o};t.fn.extend({scrollable:function(t){var e=s.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=s.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(o,i){if(o=o||{},"options"===o)return i?this.each(function(){var e=t(this),o=t.extend(e.data("ssOpts")||{},i);t(this).data("ssOpts",o)}):this.first().data("ssOpts");var l=t.extend({},t.fn.smoothScroll.defaults,o),s=function(o){var i=this,s=t(this),n=t.extend({},l,s.data("ssOpts")||{}),c=l.exclude,a=n.excludeWithin,r=0,h=0,u=!0,d={},p=t.smoothScroll.filterPath(location.pathname),f=t.smoothScroll.filterPath(i.pathname),m=location.hostname===i.hostname||!i.hostname,g=n.scrollTarget||f===p,v=e(i.hash);if(n.scrollTarget||m&&g&&v){for(;u&&r1&&"[object Object]"!==String(e)){if(o=jQuery.extend({},o),(null===e||void 0===e)&&(o.expires=-1),"number"==typeof o.expires){var i=o.expires,l=o.expires=new Date;l.setDate(l.getDate()+i)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",o.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}o=e||{};var s,n=o.raw?function(t){return t}:decodeURIComponent;return(s=new RegExp("(?:^|; )"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?n(s[1]):null},jQuery(document).ready(function(t){if("undefined"!=typeof tocplus){if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},1==tocplus.smooth_scroll){var e=hostname=pathname=qs=hash=null;t("body a").click(function(){if(hostname=t(this).prop("hostname"),pathname=t(this).prop("pathname"),qs=t(this).prop("search"),hash=t(this).prop("hash"),pathname.length>0&&"/"!=pathname.charAt(0)&&(pathname="/"+pathname),window.location.hostname==hostname&&window.location.pathname==pathname&&window.location.search==qs&&""!==hash){var o=hash.replace(/([ !"$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,"\\$1");t(o).length>0?e=hash:(anchor=hash,anchor=anchor.replace("#",""),e='a[name="'+anchor+'"]',0==t(e).length&&(e="")),offset="undefined"!=typeof tocplus.smooth_scroll_offset?-1*tocplus.smooth_scroll_offset:t("#wpadminbar").length>0&&t("#wpadminbar").is(":visible")?-30:0,e&&t.smoothScroll({scrollTarget:e,offset:offset})}})}if("undefined"!=typeof tocplus.visibility_show){var o="undefined"!=typeof tocplus.visibility_hide_by_default?!0:!1;if(t.cookie)var i=t.cookie("tocplus_hidetoc")?tocplus.visibility_show:tocplus.visibility_hide;else var i=tocplus.visibility_hide;o&&(i=i==tocplus.visibility_hide?tocplus.visibility_show:tocplus.visibility_hide),t("#toc_container p.toc_title").append(' ['+i+']'),i==tocplus.visibility_show&&(t("ul.toc_list").hide(),t("#toc_container").addClass("contracted").shrinkTOCWidth()),t("span.toc_toggle a").click(function(e){switch(e.preventDefault(),t(this).html()){case t("
").html(tocplus.visibility_hide).text():t(this).html(tocplus.visibility_show),t.cookie&&(o?t.cookie("tocplus_hidetoc",null,{path:"/"}):t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"})),t("ul.toc_list").hide("fast"),t("#toc_container").addClass("contracted").shrinkTOCWidth();break;case t("
").html(tocplus.visibility_show).text():default:t(this).html(tocplus.visibility_hide),t.cookie&&(o?t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"}):t.cookie("tocplus_hidetoc",null,{path:"/"})),t("#toc_container").css("width",tocplus.width).removeClass("contracted"),t("ul.toc_list").show("fast")}})}}});; jQuery(document).ready(function($){var $wrap=$('#wtr-content');if($wrap.length>0){wtrDebug('#wtr-content found');var $touch=$wrap.data('touch');var $non_touch=$wrap.data('non-touch');if((!isTouchDevice()&&$non_touch)||(isTouchDevice()&&$touch)){wtrDebug('touch device check passed');var $fg=$wrap.data('fg'),$bg=$wrap.data('bg'),$placement=$wrap.data('placement'),$placement_offset=$wrap.data('placement-offset'),$content_offset=$wrap.data('content-offset'),$placement_touch=$wrap.data('placement-touch'),$placement_offset_touch=$wrap.data('placement-offset-touch'),$width=$wrap.data('width'),$transparent=$wrap.data('transparent'),$shadow=$wrap.data('shadow'),$comments=$wrap.data('comments'),$comments_bg=$wrap.data('commentsbg'),$enable=$wrap.data('enable'),$mute=$wrap.data('mute'),$fgopacity=$wrap.data('fgopacity'),$mutedopacity=$wrap.data('mutedopacity'),$loc=$wrap.data('location'),$end=$('.wtr-end'),$rtl=$wrap.data('rtl');if($fg===null||$fg==='')$fg='#ef490f';if($bg===null||$bg==='')$bg='#CCCCCC';if($width===null||$width==='')$width=4;if($comments_bg===null||$comments_bg==='')$comments_bg='#999999';if($fgopacity===null||$fgopacity==='')$fgopacity='.6';if($mutedopacity===null||$mutedopacity==='')$mutedopacity='.5';if($transparent){$bg='none';$comments_bg='none'} $placement=isTouchDevice()?$placement_touch:$placement;$placement_offset=isTouchDevice()?$placement_offset_touch:$placement_offset;var $placement_offset_admin=$placement_offset+getTopOffset();var $progress_bg=$('
',{id:'wtr-progress',class:$placement});var $progress_fg=$('
',{id:'wtr-slider'});$progress_bg.addClass('mute');if($rtl)$progress_bg.addClass('wtr-rtl');$progress_bg.css('background',$bg);if($mute)$progress_bg.css('opacity',$mutedopacity);$progress_fg.css('background',$fg);$progress_fg.css('opacity',$fgopacity);var $contentHeight=$wrap.outerHeight(!0)-$content_offset;var $endOffset=$end.length>0?$end.offset().top:0;var $shorter=$endOffset!==0?($contentHeight+$wrap.offset().top-$endOffset):0;if($shorter){wtrDebug('content height is less than window height - progress bar will not be shown on this page')}else{wtrDebug('content height is greater than window height - progress bar will be shown on this page')} if($comments&&!$shorter){wtrDebug('comments check passed');var $progress_comments=$('
',{id:'wtr-progress-comments'}),$commentsEnd=$('#wtr-comments-end'),$progress=$('#wtr-progress'),$wrap=$loc==='home'?$('body'):$('#wtr-content'),winHeight=$(window).height(),totalHeight=$commentsEnd.offset().top-($wrap.offset().top+$content_offset-$shorter),commentsHeight=totalHeight-$contentHeight-(winHeight*.25),orientation='left',percentage=(100-((commentsHeight/totalHeight)*100));if($placement=='left'||$placement=='right')orientation='top';if($rtl&&orientation=='left')orientation='right';$progress_comments.css(orientation,percentage+'%');$progress_comments.css('background',$comments_bg);$progress_bg.append($progress_comments)} $progress_bg.append($progress_fg);if($transparent)$progress_bg.addClass('transparent');if(!$shadow)$progress_bg.addClass('noshadow');$('body').append($progress_bg);wtrDebug('progress bar added to DOM');$hidden_by=$width+6;$hidden_by_admin=-$hidden_by+getTopOffset();$width=$width+'px';$hidden_by='-'+$hidden_by+'px';$hidden_by_admin='-'+$hidden_by_admin+'px';$('#wtr-progress.left').css({'width':$width,'left':$hidden_by});$('#wtr-progress.right').css({'width':$width,'right':$hidden_by});$('#wtr-progress.bottom').css({'height':$width,'bottom':$hidden_by});$('#wtr-progress.top').css({'height':$width,'top':$hidden_by});$('.admin-bar #wtr-progress.top').css({'height':$width,'top':$hidden_by_admin});if($placement_offset){wtrDebug('placement_offset check passed, .shown classes updated');var $showncss='';$($showncss).appendTo('body')}}}else{wtrDebug('#wtr-content not found')} wtrDebug('preparing to call wtrProgress()');wtrProgress()});function wtrDebug(msg){if(jQuery('body').hasClass('wtr-debug-bar')){jQuery('#wtr-debug-bar').append(''+msg+'')}} function isTouchDevice(){return'ontouchstart' in window||window.navigator.msMaxTouchPoints>0} function bottomVisible(obj,offset){var a=obj.offset().top+offset,b=obj.outerHeight(!0),c=jQuery(window).height(),d=jQuery(window).scrollTop();return((c+d)>=(a+b))} function topVisible(obj,offset){var viewportHeight=jQuery(window).height(),documentScrollTop=jQuery(document).scrollTop(),minTop=documentScrollTop+offset,maxTop=documentScrollTop+viewportHeight,objOffset=obj.offset().top;return(objOffset>=minTop&&objOffset<=maxTop)} function getTopOffset(){topOffset=0;var $win=jQuery(window).width();if(jQuery('#wpadminbar').length>0){if($win<601){topOffset+=0}else if($win<783){topOffset+=46}else{topOffset+=32}} return topOffset} function wtrProgress(){var $win=jQuery(window),$wrap=jQuery('#wtr-content'),$progress=jQuery('#wtr-progress'),$progress_comments=jQuery('#wtr-progress-comments'),$slider=jQuery('#wtr-slider'),$end=jQuery('.wtr-end');if($wrap.length>0){var $touch=$wrap.data('touch');var $non_touch=$wrap.data('non-touch');var $mutedfg=$wrap.data('mutedfg');var $endfg=$wrap.data('endfg');var $fg=$wrap.data('fg');var $rtl=$wrap.data('rtl');var $endreached=!1;if((!isTouchDevice()&&$non_touch)||(isTouchDevice()&&$touch)){var $loc=$wrap.data('location'),$contentOffset=$wrap.data('content-offset'),$wrap=$loc==='home'?jQuery('body'):jQuery('#wtr-content'),wrapHeight=$wrap.outerHeight(!0)-$contentOffset,winHeight=$win.height(),$endOffset=$end.length>0?$end.offset().top:0,$shorter=$endOffset!==0?(wrapHeight+$wrap.offset().top-$endOffset):0;wrapHeight-=$shorter;if(wrapHeight>winHeight){var winScroll=$win.scrollTop(),wrapOffset=$wrap.offset().top+$contentOffset,beyond=winScroll-wrapOffset+winHeight*.75,percentage=0,topOffset=getTopOffset(),orientation='left',$rel=$wrap;if($progress.hasClass('left')||$progress.hasClass('right'))orientation='top';if($rtl&&orientation=='left')orientation='right';if($progress_comments.length>0){var $commentsEnd=jQuery('#wtr-comments-end'),totalHeight=$commentsEnd.offset().top-wrapOffset,commentsHeight=totalHeight-$wrap.outerHeight(!0);wrapHeight=totalHeight;$rel=$commentsEnd} if($shorter>0)$rel=$end;if(bottomVisible($rel,winHeight*.25)){$slider.css(orientation,'0');$progress.addClass('mute');$slider.css('background',$endfg);$endreached=!0;wtrDebug('end of content reached')}else if(beyond>0&&winScroll>0){$progress.addClass('shown').removeClass('mute');$slider.css('background',$fg);percentage=-(100-((beyond/wrapHeight)*100));$slider.css(orientation,percentage+'%');wtrDebug('progress bar percentage: '+percentage)}else{$slider.css(orientation,'-100%');$progress.removeClass('shown').removeClass('mute');$slider.css('background',$fg);wtrDebug('content has not been scrolled into yet - hide progress bar')} if(!$endreached){clearTimeout(jQuery.data(this,'scrollTimer'));jQuery.data(this,'scrollTimer',setTimeout(function(){$progress.addClass('mute');$slider.delay(200).queue(function(next){wtrDebug('progress bar muted');jQuery(this).css('background',$mutedfg);next()})},200))}}else{wtrDebug('content height is less than window height - no need to show progress bar')}}}} jQuery(window).scroll(function(){wtrProgress()}); class LiteYTEmbed extends HTMLElement{connectedCallback(){this.videoId=this.getAttribute('videoid');let playBtnEl=this.querySelector('.lty-playbtn');this.playLabel=(playBtnEl&&playBtnEl.textContent.trim())||this.getAttribute('playlabel')||'Play';this.dataset.title=this.getAttribute('title')||"";if(!this.style.backgroundImage){this.style.backgroundImage=`url("https://i.ytimg.com/vi/${this.videoId}/hqdefault.jpg")`;this.upgradePosterImage()} if(!playBtnEl){playBtnEl=document.createElement('button');playBtnEl.type='button';playBtnEl.classList.add('lty-playbtn');this.append(playBtnEl)} if(!playBtnEl.textContent){const playBtnLabelEl=document.createElement('span');playBtnLabelEl.className='lyt-visually-hidden';playBtnLabelEl.textContent=this.playLabel;playBtnEl.append(playBtnLabelEl)} this.addNoscriptIframe();playBtnEl.removeAttribute('href');this.addEventListener('pointerover',LiteYTEmbed.warmConnections,{once:!0});this.addEventListener('click',this.activate);this.needsYTApi=this.hasAttribute("js-api")||navigator.vendor.includes('Apple')||navigator.userAgent.includes('Mobi')} static addPrefetch(kind,url,as){const linkEl=document.createElement('link');linkEl.rel=kind;linkEl.href=url;if(as){linkEl.as=as} document.head.append(linkEl)} static warmConnections(){if(LiteYTEmbed.preconnected)return;LiteYTEmbed.addPrefetch('preconnect','https://www.youtube-nocookie.com');LiteYTEmbed.addPrefetch('preconnect','https://www.google.com');LiteYTEmbed.addPrefetch('preconnect','https://googleads.g.doubleclick.net');LiteYTEmbed.addPrefetch('preconnect','https://static.doubleclick.net');LiteYTEmbed.preconnected=!0} fetchYTPlayerApi(){if(window.YT||(window.YT&&window.YT.Player))return;this.ytApiPromise=new Promise((res,rej)=>{var el=document.createElement('script');el.src='https://www.youtube.com/iframe_api';el.async=!0;el.onload=_=>{YT.ready(res)};el.onerror=rej;this.append(el)})} async getYTPlayer(){if(!this.playerPromise){await this.activate()} return this.playerPromise} async addYTPlayerIframe(){this.fetchYTPlayerApi();await this.ytApiPromise;const videoPlaceholderEl=document.createElement('div') this.append(videoPlaceholderEl);const paramsObj=Object.fromEntries(this.getParams().entries());this.playerPromise=new Promise(resolve=>{let player=new YT.Player(videoPlaceholderEl,{width:'100%',videoId:this.videoId,playerVars:paramsObj,events:{'onReady':event=>{event.target.playVideo();resolve(player)}}})})} addNoscriptIframe(){const iframeEl=this.createBasicIframe();const noscriptEl=document.createElement('noscript');noscriptEl.innerHTML=iframeEl.outerHTML;this.append(noscriptEl)} getParams(){const params=new URLSearchParams(this.getAttribute('params')||[]);params.append('autoplay','1');params.append('playsinline','1');return params} async activate(){if(this.classList.contains('lyt-activated'))return;this.classList.add('lyt-activated');if(this.needsYTApi){return this.addYTPlayerIframe(this.getParams())} const iframeEl=this.createBasicIframe();this.append(iframeEl);iframeEl.focus()} createBasicIframe(){const iframeEl=document.createElement('iframe');iframeEl.width=560;iframeEl.height=315;iframeEl.title=this.playLabel;iframeEl.allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture';iframeEl.allowFullscreen=!0;iframeEl.src=`https://www.youtube-nocookie.com/embed/${encodeURIComponent(this.videoId)}?${this.getParams().toString()}`;return iframeEl} upgradePosterImage(){setTimeout(()=>{const webpUrl=`https://i.ytimg.com/vi_webp/${this.videoId}/sddefault.webp`;const img=new Image();img.fetchPriority='low';img.referrerpolicy='origin';img.src=webpUrl;img.onload=e=>{const noAvailablePoster=e.target.naturalHeight==90&&e.target.naturalWidth==120;if(noAvailablePoster)return;this.style.backgroundImage=`url("${webpUrl}")`}},100)}} customElements.define('lite-youtube',LiteYTEmbed); !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Flowbite",[],e):"object"==typeof exports?exports.Flowbite=e():t.Flowbite=e()}(self,(function(){return function(){"use strict";var t={647:function(t,e,i){i.r(e)},853:function(t,e,i){i.r(e),i.d(e,{afterMain:function(){return w},afterRead:function(){return y},afterWrite:function(){return O},applyStyles:function(){return P},arrow:function(){return Q},auto:function(){return a},basePlacements:function(){return c},beforeMain:function(){return b},beforeRead:function(){return _},beforeWrite:function(){return L},bottom:function(){return o},clippingParents:function(){return u},computeStyles:function(){return it},createPopper:function(){return Pt},createPopperBase:function(){return Ht},createPopperLite:function(){return St},detectOverflow:function(){return mt},end:function(){return l},eventListeners:function(){return ot},flip:function(){return yt},hide:function(){return wt},left:function(){return s},main:function(){return E},modifierPhases:function(){return k},offset:function(){return Lt},placements:function(){return g},popper:function(){return h},popperGenerator:function(){return Tt},popperOffsets:function(){return It},preventOverflow:function(){return Ot},read:function(){return m},reference:function(){return f},right:function(){return r},start:function(){return d},top:function(){return n},variationPlacements:function(){return v},viewport:function(){return p},write:function(){return I}});var n="top",o="bottom",r="right",s="left",a="auto",c=[n,o,r,s],d="start",l="end",u="clippingParents",p="viewport",h="popper",f="reference",v=c.reduce((function(t,e){return t.concat([e+"-"+d,e+"-"+l])}),[]),g=[].concat(c,[a]).reduce((function(t,e){return t.concat([e,e+"-"+d,e+"-"+l])}),[]),_="beforeRead",m="read",y="afterRead",b="beforeMain",E="main",w="afterMain",L="beforeWrite",I="write",O="afterWrite",k=[_,m,y,b,E,w,L,I,O];function x(t){return t?(t.nodeName||"").toLowerCase():null}function A(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function C(t){return t instanceof A(t).Element||t instanceof Element}function T(t){return t instanceof A(t).HTMLElement||t instanceof HTMLElement}function H(t){return"undefined"!=typeof ShadowRoot&&(t instanceof A(t).ShadowRoot||t instanceof ShadowRoot)}var P={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},o=e.elements[t];T(o)&&x(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});T(n)&&x(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function S(t){return t.split("-")[0]}var j=Math.max,D=Math.min,z=Math.round;function M(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function q(){return!/^((?!chrome|android).)*safari/i.test(M())}function V(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=1,r=1;e&&T(t)&&(o=t.offsetWidth>0&&z(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&z(n.height)/t.offsetHeight||1);var s=(C(t)?A(t):window).visualViewport,a=!q()&&i,c=(n.left+(a&&s?s.offsetLeft:0))/o,d=(n.top+(a&&s?s.offsetTop:0))/r,l=n.width/o,u=n.height/r;return{width:l,height:u,top:d,right:c+l,bottom:d+u,left:c,x:c,y:d}}function B(t){var e=V(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function R(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&H(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function W(t){return A(t).getComputedStyle(t)}function F(t){return["table","td","th"].indexOf(x(t))>=0}function K(t){return((C(t)?t.ownerDocument:t.document)||window.document).documentElement}function N(t){return"html"===x(t)?t:t.assignedSlot||t.parentNode||(H(t)?t.host:null)||K(t)}function U(t){return T(t)&&"fixed"!==W(t).position?t.offsetParent:null}function X(t){for(var e=A(t),i=U(t);i&&F(i)&&"static"===W(i).position;)i=U(i);return i&&("html"===x(i)||"body"===x(i)&&"static"===W(i).position)?e:i||function(t){var e=/firefox/i.test(M());if(/Trident/i.test(M())&&T(t)&&"fixed"===W(t).position)return null;var i=N(t);for(H(i)&&(i=i.host);T(i)&&["html","body"].indexOf(x(i))<0;){var n=W(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function Y(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function G(t,e,i){return j(t,D(e,i))}function $(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function J(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}var Q={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,a=t.name,d=t.options,l=i.elements.arrow,u=i.modifiersData.popperOffsets,p=S(i.placement),h=Y(p),f=[s,r].indexOf(p)>=0?"height":"width";if(l&&u){var v=function(t,e){return $("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:J(t,c))}(d.padding,i),g=B(l),_="y"===h?n:s,m="y"===h?o:r,y=i.rects.reference[f]+i.rects.reference[h]-u[h]-i.rects.popper[f],b=u[h]-i.rects.reference[h],E=X(l),w=E?"y"===h?E.clientHeight||0:E.clientWidth||0:0,L=y/2-b/2,I=v[_],O=w-g[f]-v[m],k=w/2-g[f]/2+L,x=G(I,k,O),A=h;i.modifiersData[a]=((e={})[A]=x,e.centerOffset=x-k,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&R(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Z(t){return t.split("-")[1]}var tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function et(t){var e,i=t.popper,a=t.popperRect,c=t.placement,d=t.variation,u=t.offsets,p=t.position,h=t.gpuAcceleration,f=t.adaptive,v=t.roundOffsets,g=t.isFixed,_=u.x,m=void 0===_?0:_,y=u.y,b=void 0===y?0:y,E="function"==typeof v?v({x:m,y:b}):{x:m,y:b};m=E.x,b=E.y;var w=u.hasOwnProperty("x"),L=u.hasOwnProperty("y"),I=s,O=n,k=window;if(f){var x=X(i),C="clientHeight",T="clientWidth";if(x===A(i)&&"static"!==W(x=K(i)).position&&"absolute"===p&&(C="scrollHeight",T="scrollWidth"),c===n||(c===s||c===r)&&d===l)O=o,b-=(g&&x===k&&k.visualViewport?k.visualViewport.height:x[C])-a.height,b*=h?1:-1;if(c===s||(c===n||c===o)&&d===l)I=r,m-=(g&&x===k&&k.visualViewport?k.visualViewport.width:x[T])-a.width,m*=h?1:-1}var H,P=Object.assign({position:p},f&&tt),S=!0===v?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:z(e*n)/n||0,y:z(i*n)/n||0}}({x:m,y:b}):{x:m,y:b};return m=S.x,b=S.y,h?Object.assign({},P,((H={})[O]=L?"0":"",H[I]=w?"0":"",H.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",H)):Object.assign({},P,((e={})[O]=L?b+"px":"",e[I]=w?m+"px":"",e.transform="",e))}var it={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,o=void 0===n||n,r=i.adaptive,s=void 0===r||r,a=i.roundOffsets,c=void 0===a||a,d={placement:S(e.placement),variation:Z(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,et(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,et(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},nt={passive:!0};var ot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,o=n.scroll,r=void 0===o||o,s=n.resize,a=void 0===s||s,c=A(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&d.forEach((function(t){t.addEventListener("scroll",i.update,nt)})),a&&c.addEventListener("resize",i.update,nt),function(){r&&d.forEach((function(t){t.removeEventListener("scroll",i.update,nt)})),a&&c.removeEventListener("resize",i.update,nt)}},data:{}},rt={left:"right",right:"left",bottom:"top",top:"bottom"};function st(t){return t.replace(/left|right|bottom|top/g,(function(t){return rt[t]}))}var at={start:"end",end:"start"};function ct(t){return t.replace(/start|end/g,(function(t){return at[t]}))}function dt(t){var e=A(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(t){return V(K(t)).left+dt(t).scrollLeft}function ut(t){var e=W(t),i=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function pt(t){return["html","body","#document"].indexOf(x(t))>=0?t.ownerDocument.body:T(t)&&ut(t)?t:pt(N(t))}function ht(t,e){var i;void 0===e&&(e=[]);var n=pt(t),o=n===(null==(i=t.ownerDocument)?void 0:i.body),r=A(n),s=o?[r].concat(r.visualViewport||[],ut(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(ht(N(s)))}function ft(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function vt(t,e,i){return e===p?ft(function(t,e){var i=A(t),n=K(t),o=i.visualViewport,r=n.clientWidth,s=n.clientHeight,a=0,c=0;if(o){r=o.width,s=o.height;var d=q();(d||!d&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:r,height:s,x:a+lt(t),y:c}}(t,i)):C(e)?function(t,e){var i=V(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):ft(function(t){var e,i=K(t),n=dt(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=j(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=j(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+lt(t),c=-n.scrollTop;return"rtl"===W(o||i).direction&&(a+=j(i.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:c}}(K(t)))}function gt(t,e,i,n){var o="clippingParents"===e?function(t){var e=ht(N(t)),i=["absolute","fixed"].indexOf(W(t).position)>=0&&T(t)?X(t):t;return C(i)?e.filter((function(t){return C(t)&&R(t,i)&&"body"!==x(t)})):[]}(t):[].concat(e),r=[].concat(o,[i]),s=r[0],a=r.reduce((function(e,i){var o=vt(t,i,n);return e.top=j(o.top,e.top),e.right=D(o.right,e.right),e.bottom=D(o.bottom,e.bottom),e.left=j(o.left,e.left),e}),vt(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function _t(t){var e,i=t.reference,a=t.element,c=t.placement,u=c?S(c):null,p=c?Z(c):null,h=i.x+i.width/2-a.width/2,f=i.y+i.height/2-a.height/2;switch(u){case n:e={x:h,y:i.y-a.height};break;case o:e={x:h,y:i.y+i.height};break;case r:e={x:i.x+i.width,y:f};break;case s:e={x:i.x-a.width,y:f};break;default:e={x:i.x,y:i.y}}var v=u?Y(u):null;if(null!=v){var g="y"===v?"height":"width";switch(p){case d:e[v]=e[v]-(i[g]/2-a[g]/2);break;case l:e[v]=e[v]+(i[g]/2-a[g]/2)}}return e}function mt(t,e){void 0===e&&(e={});var i=e,s=i.placement,a=void 0===s?t.placement:s,d=i.strategy,l=void 0===d?t.strategy:d,v=i.boundary,g=void 0===v?u:v,_=i.rootBoundary,m=void 0===_?p:_,y=i.elementContext,b=void 0===y?h:y,E=i.altBoundary,w=void 0!==E&&E,L=i.padding,I=void 0===L?0:L,O=$("number"!=typeof I?I:J(I,c)),k=b===h?f:h,x=t.rects.popper,A=t.elements[w?k:b],T=gt(C(A)?A:A.contextElement||K(t.elements.popper),g,m,l),H=V(t.elements.reference),P=_t({reference:H,element:x,strategy:"absolute",placement:a}),S=ft(Object.assign({},x,P)),j=b===h?S:H,D={top:T.top-j.top+O.top,bottom:j.bottom-T.bottom+O.bottom,left:T.left-j.left+O.left,right:j.right-T.right+O.right},z=t.modifiersData.offset;if(b===h&&z){var M=z[a];Object.keys(D).forEach((function(t){var e=[r,o].indexOf(t)>=0?1:-1,i=[n,o].indexOf(t)>=0?"y":"x";D[t]+=M[i]*e}))}return D}var yt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,l=t.name;if(!e.modifiersData[l]._skip){for(var u=i.mainAxis,p=void 0===u||u,h=i.altAxis,f=void 0===h||h,_=i.fallbackPlacements,m=i.padding,y=i.boundary,b=i.rootBoundary,E=i.altBoundary,w=i.flipVariations,L=void 0===w||w,I=i.allowedAutoPlacements,O=e.options.placement,k=S(O),x=_||(k===O||!L?[st(O)]:function(t){if(S(t)===a)return[];var e=st(t);return[ct(t),e,ct(e)]}(O)),A=[O].concat(x).reduce((function(t,i){return t.concat(S(i)===a?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,o=i.boundary,r=i.rootBoundary,s=i.padding,a=i.flipVariations,d=i.allowedAutoPlacements,l=void 0===d?g:d,u=Z(n),p=u?a?v:v.filter((function(t){return Z(t)===u})):c,h=p.filter((function(t){return l.indexOf(t)>=0}));0===h.length&&(h=p);var f=h.reduce((function(e,i){return e[i]=mt(t,{placement:i,boundary:o,rootBoundary:r,padding:s})[S(i)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:i,boundary:y,rootBoundary:b,padding:m,flipVariations:L,allowedAutoPlacements:I}):i)}),[]),C=e.rects.reference,T=e.rects.popper,H=new Map,P=!0,j=A[0],D=0;D=0,B=V?"width":"height",R=mt(e,{placement:z,boundary:y,rootBoundary:b,altBoundary:E,padding:m}),W=V?q?r:s:q?o:n;C[B]>T[B]&&(W=st(W));var F=st(W),K=[];if(p&&K.push(R[M]<=0),f&&K.push(R[W]<=0,R[F]<=0),K.every((function(t){return t}))){j=z,P=!1;break}H.set(z,K)}if(P)for(var N=function(t){var e=A.find((function(e){var i=H.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return j=e,"break"},U=L?3:1;U>0;U--){if("break"===N(U))break}e.placement!==j&&(e.modifiersData[l]._skip=!0,e.placement=j,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Et(t){return[n,r,o,s].some((function(e){return t[e]>=0}))}var wt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=mt(e,{elementContext:"reference"}),a=mt(e,{altBoundary:!0}),c=bt(s,n),d=bt(a,o,r),l=Et(c),u=Et(d);e.modifiersData[i]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:l,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":u})}};var Lt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,o=t.name,a=i.offset,c=void 0===a?[0,0]:a,d=g.reduce((function(t,i){return t[i]=function(t,e,i){var o=S(t),a=[s,n].indexOf(o)>=0?-1:1,c="function"==typeof i?i(Object.assign({},e,{placement:t})):i,d=c[0],l=c[1];return d=d||0,l=(l||0)*a,[s,r].indexOf(o)>=0?{x:l,y:d}:{x:d,y:l}}(i,e.rects,c),t}),{}),l=d[e.placement],u=l.x,p=l.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=p),e.modifiersData[o]=d}};var It={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=_t({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var Ot={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,a=t.name,c=i.mainAxis,l=void 0===c||c,u=i.altAxis,p=void 0!==u&&u,h=i.boundary,f=i.rootBoundary,v=i.altBoundary,g=i.padding,_=i.tether,m=void 0===_||_,y=i.tetherOffset,b=void 0===y?0:y,E=mt(e,{boundary:h,rootBoundary:f,padding:g,altBoundary:v}),w=S(e.placement),L=Z(e.placement),I=!L,O=Y(w),k="x"===O?"y":"x",x=e.modifiersData.popperOffsets,A=e.rects.reference,C=e.rects.popper,T="function"==typeof b?b(Object.assign({},e.rects,{placement:e.placement})):b,H="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,z={x:0,y:0};if(x){if(l){var M,q="y"===O?n:s,V="y"===O?o:r,R="y"===O?"height":"width",W=x[O],F=W+E[q],K=W-E[V],N=m?-C[R]/2:0,U=L===d?A[R]:C[R],$=L===d?-C[R]:-A[R],J=e.elements.arrow,Q=m&&J?B(J):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=tt[q],it=tt[V],nt=G(0,A[R],Q[R]),ot=I?A[R]/2-N-nt-et-H.mainAxis:U-nt-et-H.mainAxis,rt=I?-A[R]/2+N+nt+it+H.mainAxis:$+nt+it+H.mainAxis,st=e.elements.arrow&&X(e.elements.arrow),at=st?"y"===O?st.clientTop||0:st.clientLeft||0:0,ct=null!=(M=null==P?void 0:P[O])?M:0,dt=W+rt-ct,lt=G(m?D(F,W+ot-ct-at):F,W,m?j(K,dt):K);x[O]=lt,z[O]=lt-W}if(p){var ut,pt="x"===O?n:s,ht="x"===O?o:r,ft=x[k],vt="y"===k?"height":"width",gt=ft+E[pt],_t=ft-E[ht],yt=-1!==[n,s].indexOf(w),bt=null!=(ut=null==P?void 0:P[k])?ut:0,Et=yt?gt:ft-A[vt]-C[vt]-bt+H.altAxis,wt=yt?ft+A[vt]+C[vt]-bt-H.altAxis:_t,Lt=m&&yt?function(t,e,i){var n=G(t,e,i);return n>i?i:n}(Et,ft,wt):G(m?Et:gt,ft,m?wt:_t);x[k]=Lt,z[k]=Lt-ft}e.modifiersData[a]=z}},requiresIfExists:["offset"]};function kt(t,e,i){void 0===i&&(i=!1);var n,o,r=T(e),s=T(e)&&function(t){var e=t.getBoundingClientRect(),i=z(e.width)/t.offsetWidth||1,n=z(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=K(e),c=V(t,s,i),d={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!i)&&(("body"!==x(e)||ut(a))&&(d=(n=e)!==A(n)&&T(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:dt(n)),T(e)?((l=V(e,!0)).x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=lt(a))),{x:c.left+d.scrollLeft-l.x,y:c.top+d.scrollTop-l.y,width:c.width,height:c.height}}function xt(t){var e=new Map,i=new Set,n=[];function o(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&o(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||o(t)})),n}var At={placement:"bottom",modifiers:[],strategy:"absolute"};function Ct(){for(var t=arguments.length,e=new Array(t),i=0;it._options.maxValue&&(i.value=t._options.maxValue.toString()),null!==t._options.minValue&&parseInt(i.value)=this._options.maxValue||(this._targetEl.value=(this.getCurrentValue()+1).toString(),this._options.onIncrement(this))},t.prototype.decrement=function(){null!==this._options.minValue&&this.getCurrentValue()<=this._options.minValue||(this._targetEl.value=(this.getCurrentValue()-1).toString(),this._options.onDecrement(this))},t.prototype.updateOnIncrement=function(t){this._options.onIncrement=t},t.prototype.updateOnDecrement=function(t){this._options.onDecrement=t},t}();function c(){document.querySelectorAll("[data-input-counter]").forEach((function(t){var e=t.id,i=document.querySelector('[data-input-counter-increment="'+e+'"]'),n=document.querySelector('[data-input-counter-decrement="'+e+'"]'),r=t.getAttribute("data-input-counter-min"),s=t.getAttribute("data-input-counter-max");t?o.default.instanceExists("InputCounter",t.getAttribute("id"))||new a(t,i||null,n||null,{minValue:r?parseInt(r):null,maxValue:s?parseInt(s):null}):console.error('The target element with id "'.concat(e,'" does not exist. Please check the data-input-counter attribute.'))}))}e.initInputCounters=c,"undefined"!=typeof window&&(window.InputCounter=a,window.initInputCounters=c),e.default=a},16:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i=3){$(this).removeClass("border-danger-500");button.prop("disabled",!1)}else{$(this).addClass("border-danger-500");button.prop("disabled",!0)}});$("[data-tsl-favourite-create-button]").on("click",function(event){event.preventDefault();const button=$(this);const container=$(this).parents("[data-tsl-widget]");const explorer_id=container.data("explorer-id");const emptyListMessage=container.find("[data-tsl-favourite-empty-list]");const message=container.find("[data-tsl-favourite-alert]");const form=button.parents("[data-tsl-favourite-form]");const input=form.find("#list_name");const newList=input.val();const list=container.find("[data-tsl-favourites-list]");const widget=$(this).parents("[data-explorer-widget]");const fav=widget.find("[data-fetch-favourite-ticket] > i");fav.removeClass("ph").addClass("ph-fill");if(newList){button.prop("disabled",!0);input.prop("disabled",!0);$.ajax({url:base_url+"/wp-admin/admin-ajax.php",data:{action:"add_favourite_list",new_list:newList,xid:explorer_id,},success:function(res){const data=JSON.parse(res);emptyListMessage.hide();list.append(data.lists);message.removeClass("hidden");message.empty();message.append(data.message);setTimeout(()=>{message.addClass("hidden");message.empty()},5000);form.find("#list_name").val("");button.prop("disabled",!1);input.prop("disabled",!1);checkboxbind()},})}else{input.addClass("border-danger-500");button.prop("disabled",!0);fav.removeClass("ph-fill").addClass("ph")}});const checkboxbind=function(){$("[data-tsl-favourite-item-check]").on("change",function(){const wrapper=$(this).parents("[data-explorer-widget]");const fav=wrapper.find("[data-fetch-favourite-ticket] > i");const container=$(this).parents("[data-tsl-widget]");const explorer_id=container.data("explorer-id");const toggle=$(this).is(":checked")?"favourite":"unfavourite";const list_id=$(this).data("list-id");const message=container.find("[data-tsl-favourite-alert]");var parent=$(this).parents("[data-tsl-favourites-list]");var currentList=parent.find("[data-tsl-favourite-item-check]");var checked=currentList.is(":checked");if(checked){fav.removeClass("ph").addClass("ph-fill")}else{fav.removeClass("ph-fill").addClass("ph")} $.ajax({url:base_url+"/wp-admin/admin-ajax.php",data:{action:"toggle_favourite",explorer_id:explorer_id,list_id:list_id,toggle:toggle,},success:function(res){const data=JSON.parse(res);message.removeClass("hidden");message.empty();message.append(data.message);setTimeout(()=>{message.addClass("hidden");message.empty()},5000)},})})};const openingHourBind=function(){const element=$("[data-tsl-opening-hour]");element.on("click",function(){const table=$(this).children("[data-tsl-opening-hour-table]");const timeStatus=$(this).children("[data-tsl-opening-hour-status]");const timeStatusHidden=$(this).children("[data-tsl-opening-hour-status-hide]");table.toggleClass("hidden flex");timeStatus.toggleClass("hidden flex");timeStatusHidden.toggleClass("hidden flex")})};openingHourBind();const admissionFeeBind=function(){const element=$("[data-tsl-admission-fee]");element.on("click",function(){const lines=$(this).children("[data-tsl-admission-fee-lines]");const showMore=$(this).find("[data-tsl-admission-fee-show-more]");lines.toggleClass("hidden");showMore.toggleClass("hidden")})};admissionFeeBind();$("[data-exp-tabs-toggle]").each(function(){const tabGroup=$(this);const tabButtons=tabGroup.find('[role="tab"]');const tabTargetId=tabGroup.data("exp-tabs-toggle");const tabContent=$(tabTargetId);if(tabButtons.filter('[aria-selected="true"]').length===0){$(tabButtons[0]).attr("aria-selected","true");const firstTabTarget=$(tabButtons[0]).data("exp-tabs-target");$(firstTabTarget).removeClass("hidden").addClass("is-active")} tabButtons.on("click",function(){const button=$(this);const target=button.data("exp-tabs-target");tabButtons.attr("aria-selected","false");button.attr("aria-selected","true");tabContent.find('[role="tabpanel"]').addClass("hidden").removeClass("is-active");$(target).removeClass("hidden").addClass("is-active")})})}); (function($){var isClicked=!1;getDinerDetails=function(dinerID){if(isClicked){return!1} isClicked=!0;$.ajax({type:"post",url:ddir.ajaxurl,data:{action:'directory_get_diner_unit',dinerID:dinerID,},success:function(result,status,xhr){$("#singleDinerUnit").html(result);isClicked=!1},error:function(xhr,status){console.log("error");console.log(status)}})}})(jQuery);jQuery(document).ready(function($){"use strict";console.log("All's Gucci");$('#filterForm').submit(function(){$(this).find('input[name]').filter(function(){return!this.value}).prop('name','');$(this).find('select[name]').filter(function(){return!this.value}).prop('name','')})}); (()=>{var up=Object.create;var fo=Object.defineProperty;var fp=Object.getOwnPropertyDescriptor;var op=Object.getOwnPropertyNames;var lp=Object.getPrototypeOf,sp=Object.prototype.hasOwnProperty;var ap=(o,$)=>()=>($||o(($={exports:{}}).exports,$),$.exports);var cp=(o,$,hn,Z)=>{if($&&typeof $=="object"||typeof $=="function")for(let q of op($))!sp.call(o,q)&&q!==hn&&fo(o,q,{get:()=>$[q],enumerable:!(Z=fp($,q))||Z.enumerable});return o};var oo=(o,$,hn)=>(hn=o!=null?up(lp(o)):{},cp($||!o||!o.__esModule?fo(hn,"default",{value:o,enumerable:!0}):hn,o));var Ii=ap((Mt,ue)=>{(function(){var o,$="4.17.21",hn=200,Z="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",q="Expected a function",it="Invalid `variable` option passed into `_.template`",Cn="__lodash_hash_undefined__",fe=500,oe="__lodash_placeholder__",Zn=1,yi=2,dt=4,vt=1,le=2,gn=1,ut=2,Ei=4,Ln=8,wt=16,On=32,xt=64,Mn=128,Ft=256,er=512,so=30,ao="...",co=800,ho=16,Ti=1,go=2,_o=3,ft=1/0,Yn=9007199254740991,po=17976931348623157e292,se=NaN,Wn=4294967295,vo=Wn-1,wo=Wn>>>1,xo=[["ary",Mn],["bind",gn],["bindKey",ut],["curry",Ln],["curryRight",wt],["flip",er],["partial",On],["partialRight",xt],["rearg",Ft]],At="[object Arguments]",ae="[object Array]",Ao="[object AsyncFunction]",Ut="[object Boolean]",Dt="[object Date]",mo="[object DOMException]",ce="[object Error]",he="[object Function]",Ci="[object GeneratorFunction]",Sn="[object Map]",Nt="[object Number]",So="[object Null]",Fn="[object Object]",Li="[object Promise]",Ro="[object Proxy]",Gt="[object RegExp]",Rn="[object Set]",Ht="[object String]",ge="[object Symbol]",Io="[object Undefined]",$t="[object WeakMap]",yo="[object WeakSet]",qt="[object ArrayBuffer]",mt="[object DataView]",rr="[object Float32Array]",ir="[object Float64Array]",ur="[object Int8Array]",fr="[object Int16Array]",or="[object Int32Array]",lr="[object Uint8Array]",sr="[object Uint8ClampedArray]",ar="[object Uint16Array]",cr="[object Uint32Array]",Eo=/\b__p \+= '';/g,To=/\b(__p \+=) '' \+/g,Co=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Oi=/&(?:amp|lt|gt|quot|#39);/g,Wi=/[&<>"']/g,Lo=RegExp(Oi.source),Oo=RegExp(Wi.source),Wo=/<%-([\s\S]+?)%>/g,bo=/<%([\s\S]+?)%>/g,bi=/<%=([\s\S]+?)%>/g,Po=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bo=/^\w*$/,Mo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,Fo=RegExp(hr.source),gr=/^\s+/,Uo=/\s/,Do=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,No=/\{\n\/\* \[wrapped with (.+)\] \*/,Go=/,? & /,Ho=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$o=/[()=,{}\[\]\/\s]/,qo=/\\(\\)?/g,Ko=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,zo=/^[-+]0x[0-9a-f]+$/i,Zo=/^0b[01]+$/i,Yo=/^\[object .+?Constructor\]$/,Xo=/^0o[0-7]+$/i,Jo=/^(?:0|[1-9]\d*)$/,Qo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,Vo=/['\n\r\u2028\u2029\\]/g,pe="\\ud800-\\udfff",ko="\\u0300-\\u036f",jo="\\ufe20-\\ufe2f",nl="\\u20d0-\\u20ff",Bi=ko+jo+nl,Mi="\\u2700-\\u27bf",Fi="a-z\\xdf-\\xf6\\xf8-\\xff",tl="\\xac\\xb1\\xd7\\xf7",el="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rl="\\u2000-\\u206f",il=" \\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",Ui="A-Z\\xc0-\\xd6\\xd8-\\xde",Di="\\ufe0e\\ufe0f",Ni=tl+el+rl+il,_r="['\u2019]",ul="["+pe+"]",Gi="["+Ni+"]",de="["+Bi+"]",Hi="\\d+",fl="["+Mi+"]",$i="["+Fi+"]",qi="[^"+pe+Ni+Hi+Mi+Fi+Ui+"]",pr="\\ud83c[\\udffb-\\udfff]",ol="(?:"+de+"|"+pr+")",Ki="[^"+pe+"]",dr="(?:\\ud83c[\\udde6-\\uddff]){2}",vr="[\\ud800-\\udbff][\\udc00-\\udfff]",St="["+Ui+"]",zi="\\u200d",Zi="(?:"+$i+"|"+qi+")",ll="(?:"+St+"|"+qi+")",Yi="(?:"+_r+"(?:d|ll|m|re|s|t|ve))?",Xi="(?:"+_r+"(?:D|LL|M|RE|S|T|VE))?",Ji=ol+"?",Qi="["+Di+"]?",sl="(?:"+zi+"(?:"+[Ki,dr,vr].join("|")+")"+Qi+Ji+")*",al="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vi=Qi+Ji+sl,hl="(?:"+[fl,dr,vr].join("|")+")"+Vi,gl="(?:"+[Ki+de+"?",de,dr,vr,ul].join("|")+")",_l=RegExp(_r,"g"),pl=RegExp(de,"g"),wr=RegExp(pr+"(?="+pr+")|"+gl+Vi,"g"),dl=RegExp([St+"?"+$i+"+"+Yi+"(?="+[Gi,St,"$"].join("|")+")",ll+"+"+Xi+"(?="+[Gi,St+Zi,"$"].join("|")+")",St+"?"+Zi+"+"+Yi,St+"+"+Xi,cl,al,Hi,hl].join("|"),"g"),vl=RegExp("["+zi+pe+Bi+Di+"]"),wl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xl=["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"],Al=-1,F={};F[rr]=F[ir]=F[ur]=F[fr]=F[or]=F[lr]=F[sr]=F[ar]=F[cr]=!0,F[At]=F[ae]=F[qt]=F[Ut]=F[mt]=F[Dt]=F[ce]=F[he]=F[Sn]=F[Nt]=F[Fn]=F[Gt]=F[Rn]=F[Ht]=F[$t]=!1;var M={};M[At]=M[ae]=M[qt]=M[mt]=M[Ut]=M[Dt]=M[rr]=M[ir]=M[ur]=M[fr]=M[or]=M[Sn]=M[Nt]=M[Fn]=M[Gt]=M[Rn]=M[Ht]=M[ge]=M[lr]=M[sr]=M[ar]=M[cr]=!0,M[ce]=M[he]=M[$t]=!1;var ml={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Sl={"&":"&","<":"<",">":">",'"':""","'":"'"},Rl={"&":"&","<":"<",">":">",""":'"',"'":"'"},Il={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yl=parseFloat,El=parseInt,ki=typeof global=="object"&&global&&global.Object===Object&&global,Tl=typeof self=="object"&&self&&self.Object===Object&&self,Y=ki||Tl||Function("return this")(),xr=typeof Mt=="object"&&Mt&&!Mt.nodeType&&Mt,ot=xr&&typeof ue=="object"&&ue&&!ue.nodeType&&ue,ji=ot&&ot.exports===xr,Ar=ji&&ki.process,_n=function(){try{var a=ot&&ot.require&&ot.require("util").types;return a||Ar&&Ar.binding&&Ar.binding("util")}catch{}}(),nu=_n&&_n.isArrayBuffer,tu=_n&&_n.isDate,eu=_n&&_n.isMap,ru=_n&&_n.isRegExp,iu=_n&&_n.isSet,uu=_n&&_n.isTypedArray;function fn(a,g,h){switch(h.length){case 0:return a.call(g);case 1:return a.call(g,h[0]);case 2:return a.call(g,h[0],h[1]);case 3:return a.call(g,h[0],h[1],h[2])}return a.apply(g,h)}function Cl(a,g,h,w){for(var R=-1,W=a==null?0:a.length;++R-1}function mr(a,g,h){for(var w=-1,R=a==null?0:a.length;++w-1;);return h}function gu(a,g){for(var h=a.length;h--&&Rt(g,a[h],0)>-1;);return h}function Ul(a,g){for(var h=a.length,w=0;h--;)a[h]===g&&++w;return w}var Dl=yr(ml),Nl=yr(Sl);function Gl(a){return"\\"+Il[a]}function Hl(a,g){return a==null?o:a[g]}function It(a){return vl.test(a)}function $l(a){return wl.test(a)}function ql(a){for(var g,h=[];!(g=a.next()).done;)h.push(g.value);return h}function Lr(a){var g=-1,h=Array(a.size);return a.forEach(function(w,R){h[++g]=[R,w]}),h}function _u(a,g){return function(h){return a(g(h))}}function Qn(a,g){for(var h=-1,w=a.length,R=0,W=[];++h-1}function Os(n,t){var e=this.__data__,r=Be(e,n);return r<0?(++this.size,e.push([n,t])):e[r][1]=t,this}Un.prototype.clear=Es,Un.prototype.delete=Ts,Un.prototype.get=Cs,Un.prototype.has=Ls,Un.prototype.set=Os;function Dn(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t=t?n:t)),n}function wn(n,t,e,r,i,f){var l,s=t&Zn,c=t&yi,_=t&dt;if(e&&(l=i?e(n,r,i,f):e(n)),l!==o)return l;if(!D(n))return n;var p=I(n);if(p){if(l=Ba(n),!s)return tn(n,l)}else{var d=V(n),v=d==he||d==Ci;if(rt(n))return Qu(n,s);if(d==Fn||d==At||v&&!i){if(l=c||v?{}:df(n),!s)return c?Ra(n,Zs(l,n)):Sa(n,Eu(l,n))}else{if(!M[d])return i?n:{};l=Ma(n,d,s)}}f||(f=new yn);var x=f.get(n);if(x)return x;f.set(n,l),zf(n)?n.forEach(function(S){l.add(wn(S,t,e,S,n,f))}):qf(n)&&n.forEach(function(S,C){l.set(C,wn(S,t,e,C,n,f))});var m=_?c?ti:ni:c?rn:X,E=p?o:m(n);return pn(E||n,function(S,C){E&&(C=S,S=n[C]),Qt(l,C,wn(S,t,e,C,n,f))}),l}function Ys(n){var t=X(n);return function(e){return Tu(e,n,t)}}function Tu(n,t,e){var r=e.length;if(n==null)return!r;for(n=B(n);r--;){var i=e[r],f=t[i],l=n[i];if(l===o&&!(i in n)||!f(l))return!1}return!0}function Cu(n,t,e){if(typeof n!="function")throw new dn(q);return re(function(){n.apply(o,e)},t)}function Vt(n,t,e,r){var i=-1,f=ve,l=!0,s=n.length,c=[],_=t.length;if(!s)return c;e&&(t=U(t,on(e))),r?(f=mr,l=!1):t.length>=hn&&(f=Kt,l=!1,t=new at(t));n:for(;++ii?0:i+e),r=r===o||r>i?i:y(r),r<0&&(r+=i),r=e>r?0:Yf(r);e0&&e(s)?t>1?J(s,t-1,e,r,i):Jn(i,s):r||(i[i.length]=s)}return i}var Fr=ef(),Wu=ef(!0);function bn(n,t){return n&&Fr(n,t,X)}function Ur(n,t){return n&&Wu(n,t,X)}function Fe(n,t){return Xn(t,function(e){return qn(n[e])})}function ht(n,t){t=tt(t,n);for(var e=0,r=t.length;n!=null&&et}function Qs(n,t){return n!=null&&P.call(n,t)}function Vs(n,t){return n!=null&&t in B(n)}function ks(n,t,e){return n>=Q(t,e)&&n=120&&p.length>=120)?new at(l&&p):o}p=n[0];var d=-1,v=s[0];n:for(;++d-1;)s!==n&&Te.call(s,c,1),Te.call(n,c,1);return n}function $u(n,t){for(var e=n?t.length:0,r=e-1;e--;){var i=t[e];if(e==r||i!==f){var f=i;$n(i)?Te.call(n,i,1):Yr(n,i)}}return n}function Kr(n,t){return n+Oe(Su()*(t-n+1))}function ca(n,t,e,r){for(var i=-1,f=z(Le((t-n)/(e||1)),0),l=h(f);f--;)l[r?f:++i]=n,n+=e;return l}function zr(n,t){var e="";if(!n||t<1||t>Yn)return e;do t%2&&(e+=n),t=Oe(t/2),t&&(n+=n);while(t);return e}function T(n,t){return li(xf(n,t,un),n+"")}function ha(n){return yu(Bt(n))}function ga(n,t){var e=Bt(n);return Ye(e,ct(t,0,e.length))}function ne(n,t,e,r){if(!D(n))return n;t=tt(t,n);for(var i=-1,f=t.length,l=f-1,s=n;s!=null&&++ii?0:i+t),e=e>i?i:e,e<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var f=h(i);++r>>1,l=n[f];l!==null&&!sn(l)&&(e?l<=t:l=hn){var _=t?null:Ta(n);if(_)return xe(_);l=!1,i=Kt,c=new at}else c=t?[]:s;n:for(;++r=r?n:xn(n,t,e)}var Ju=is||function(n){return Y.clearTimeout(n)};function Qu(n,t){if(t)return n.slice();var e=n.length,r=vu?vu(e):new n.constructor(e);return n.copy(r),r}function Vr(n){var t=new n.constructor(n.byteLength);return new ye(t).set(new ye(n)),t}function wa(n,t){var e=t?Vr(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}function xa(n){var t=new n.constructor(n.source,Pi.exec(n));return t.lastIndex=n.lastIndex,t}function Aa(n){return Jt?B(Jt.call(n)):{}}function Vu(n,t){var e=t?Vr(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}function ku(n,t){if(n!==t){var e=n!==o,r=n===null,i=n===n,f=sn(n),l=t!==o,s=t===null,c=t===t,_=sn(t);if(!s&&!_&&!f&&n>t||f&&l&&c&&!s&&!_||r&&l&&c||!e&&c||!i)return 1;if(!r&&!f&&!_&&n=s)return c;var _=e[r];return c*(_=="desc"?-1:1)}}return n.index-t.index}function ju(n,t,e,r){for(var i=-1,f=n.length,l=e.length,s=-1,c=t.length,_=z(f-l,0),p=h(c+_),d=!r;++s1?e[i-1]:o,l=i>2?e[2]:o;for(f=n.length>3&&typeof f=="function"?(i--,f):o,l&&j(e[0],e[1],l)&&(f=i<3?o:f,i=1),t=B(t);++r-1?i[f?t[l]:l]:o}}function ff(n){return Hn(function(t){var e=t.length,r=e,i=vn.prototype.thru;for(n&&t.reverse();r--;){var f=t[r];if(typeof f!="function")throw new dn(q);if(i&&!l&&ze(f)=="wrapper")var l=new vn([],!0)}for(r=l?r:e;++r1&&O.reverse(),p&&cs))return!1;var _=f.get(n),p=f.get(t);if(_&&p)return _==t&&p==n;var d=-1,v=!0,x=e&le?new at:o;for(f.set(n,t),f.set(t,n);++d1?"& ":"")+t[r],t=t.join(e>2?", ":" "),n.replace(Do,`{ /* [wrapped with `+t+`] */ `)}function Ua(n){return I(n)||pt(n)||!!(Au&&n&&n[Au])}function $n(n,t){var e=typeof n;return t=t??Yn,!!t&&(e=="number"||e!="symbol"&&Jo.test(n))&&n>-1&&n%1==0&&n0){if(++t>=co)return arguments[0]}else t=0;return n.apply(o,arguments)}}function Ye(n,t){var e=-1,r=n.length,i=r-1;for(t=t===o?r:t;++e1?n[t-1]:o;return e=typeof e=="function"?(n.pop(),e):o,Wf(n,e)});function bf(n){var t=u(n);return t.__chain__=!0,t}function Xc(n,t){return t(n),n}function Xe(n,t){return t(n)}var Jc=Hn(function(n){var t=n.length,e=t?n[0]:0,r=this.__wrapped__,i=function(f){return Mr(f,n)};return t>1||this.__actions__.length||!(r instanceof L)||!$n(e)?this.thru(i):(r=r.slice(e,+e+(t?1:0)),r.__actions__.push({func:Xe,args:[i],thisArg:o}),new vn(r,this.__chain__).thru(function(f){return t&&!f.length&&f.push(o),f}))});function Qc(){return bf(this)}function Vc(){return new vn(this.value(),this.__chain__)}function kc(){this.__values__===o&&(this.__values__=Zf(this.value()));var n=this.__index__>=this.__values__.length,t=n?o:this.__values__[this.__index__++];return{done:n,value:t}}function jc(){return this}function nh(n){for(var t,e=this;e instanceof Pe;){var r=yf(e);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;e=e.__wrapped__}return i.__wrapped__=n,t}function th(){var n=this.__wrapped__;if(n instanceof L){var t=n;return this.__actions__.length&&(t=new L(this)),t=t.reverse(),t.__actions__.push({func:Xe,args:[si],thisArg:o}),new vn(t,this.__chain__)}return this.thru(si)}function eh(){return Yu(this.__wrapped__,this.__actions__)}var rh=Ge(function(n,t,e){P.call(n,e)?++n[e]:Nn(n,e,1)});function ih(n,t,e){var r=I(n)?fu:Xs;return e&&j(n,t,e)&&(t=o),r(n,A(t,3))}function uh(n,t){var e=I(n)?Xn:Ou;return e(n,A(t,3))}var fh=uf(Ef),oh=uf(Tf);function lh(n,t){return J(Je(n,t),1)}function sh(n,t){return J(Je(n,t),ft)}function ah(n,t,e){return e=e===o?1:y(e),J(Je(n,t),e)}function Pf(n,t){var e=I(n)?pn:jn;return e(n,A(t,3))}function Bf(n,t){var e=I(n)?Ll:Lu;return e(n,A(t,3))}var ch=Ge(function(n,t,e){P.call(n,e)?n[e].push(t):Nn(n,e,[t])});function hh(n,t,e,r){n=en(n)?n:Bt(n),e=e&&!r?y(e):0;var i=n.length;return e<0&&(e=z(i+e,0)),nr(n)?e<=i&&n.indexOf(t,e)>-1:!!i&&Rt(n,t,e)>-1}var gh=T(function(n,t,e){var r=-1,i=typeof t=="function",f=en(n)?h(n.length):[];return jn(n,function(l){f[++r]=i?fn(t,l,e):kt(l,t,e)}),f}),_h=Ge(function(n,t,e){Nn(n,e,t)});function Je(n,t){var e=I(n)?U:Fu;return e(n,A(t,3))}function ph(n,t,e,r){return n==null?[]:(I(t)||(t=t==null?[]:[t]),e=r?o:e,I(e)||(e=e==null?[]:[e]),Gu(n,t,e))}var dh=Ge(function(n,t,e){n[e?0:1].push(t)},function(){return[[],[]]});function vh(n,t,e){var r=I(n)?Sr:au,i=arguments.length<3;return r(n,A(t,4),e,i,jn)}function wh(n,t,e){var r=I(n)?Ol:au,i=arguments.length<3;return r(n,A(t,4),e,i,Lu)}function xh(n,t){var e=I(n)?Xn:Ou;return e(n,ke(A(t,3)))}function Ah(n){var t=I(n)?yu:ha;return t(n)}function mh(n,t,e){(e?j(n,t,e):t===o)?t=1:t=y(t);var r=I(n)?qs:ga;return r(n,t)}function Sh(n){var t=I(n)?Ks:pa;return t(n)}function Rh(n){if(n==null)return 0;if(en(n))return nr(n)?yt(n):n.length;var t=V(n);return t==Sn||t==Rn?n.size:Hr(n).length}function Ih(n,t,e){var r=I(n)?Rr:da;return e&&j(n,t,e)&&(t=o),r(n,A(t,3))}var yh=T(function(n,t){if(n==null)return[];var e=t.length;return e>1&&j(n,t[0],t[1])?t=[]:e>2&&j(t[0],t[1],t[2])&&(t=[t[0]]),Gu(n,J(t,1),[])}),Qe=us||function(){return Y.Date.now()};function Eh(n,t){if(typeof t!="function")throw new dn(q);return n=y(n),function(){if(--n<1)return t.apply(this,arguments)}}function Mf(n,t,e){return t=e?o:t,t=n&&t==null?n.length:t,Gn(n,Mn,o,o,o,o,t)}function Ff(n,t){var e;if(typeof t!="function")throw new dn(q);return n=y(n),function(){return--n>0&&(e=t.apply(this,arguments)),n<=1&&(t=o),e}}var ci=T(function(n,t,e){var r=gn;if(e.length){var i=Qn(e,bt(ci));r|=On}return Gn(n,r,t,e,i)}),Uf=T(function(n,t,e){var r=gn|ut;if(e.length){var i=Qn(e,bt(Uf));r|=On}return Gn(t,r,n,e,i)});function Df(n,t,e){t=e?o:t;var r=Gn(n,Ln,o,o,o,o,o,t);return r.placeholder=Df.placeholder,r}function Nf(n,t,e){t=e?o:t;var r=Gn(n,wt,o,o,o,o,o,t);return r.placeholder=Nf.placeholder,r}function Gf(n,t,e){var r,i,f,l,s,c,_=0,p=!1,d=!1,v=!0;if(typeof n!="function")throw new dn(q);t=mn(t)||0,D(e)&&(p=!!e.leading,d="maxWait"in e,f=d?z(mn(e.maxWait)||0,t):f,v="trailing"in e?!!e.trailing:v);function x(H){var Tn=r,zn=i;return r=i=o,_=H,l=n.apply(zn,Tn),l}function m(H){return _=H,s=re(C,t),p?x(H):l}function E(H){var Tn=H-c,zn=H-_,uo=t-Tn;return d?Q(uo,f-zn):uo}function S(H){var Tn=H-c,zn=H-_;return c===o||Tn>=t||Tn<0||d&&zn>=f}function C(){var H=Qe();if(S(H))return O(H);s=re(C,E(H))}function O(H){return s=o,v&&r?x(H):(r=i=o,l)}function an(){s!==o&&Ju(s),_=0,r=c=i=s=o}function nn(){return s===o?l:O(Qe())}function cn(){var H=Qe(),Tn=S(H);if(r=arguments,i=this,c=H,Tn){if(s===o)return m(c);if(d)return Ju(s),s=re(C,t),x(c)}return s===o&&(s=re(C,t)),l}return cn.cancel=an,cn.flush=nn,cn}var Th=T(function(n,t){return Cu(n,1,t)}),Ch=T(function(n,t,e){return Cu(n,mn(t)||0,e)});function Lh(n){return Gn(n,er)}function Ve(n,t){if(typeof n!="function"||t!=null&&typeof t!="function")throw new dn(q);var e=function(){var r=arguments,i=t?t.apply(this,r):r[0],f=e.cache;if(f.has(i))return f.get(i);var l=n.apply(this,r);return e.cache=f.set(i,l)||f,l};return e.cache=new(Ve.Cache||Dn),e}Ve.Cache=Dn;function ke(n){if(typeof n!="function")throw new dn(q);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function Oh(n){return Ff(2,n)}var Wh=va(function(n,t){t=t.length==1&&I(t[0])?U(t[0],on(A())):U(J(t,1),on(A()));var e=t.length;return T(function(r){for(var i=-1,f=Q(r.length,e);++i=t}),pt=Pu(function(){return arguments}())?Pu:function(n){return N(n)&&P.call(n,"callee")&&!xu.call(n,"callee")},I=h.isArray,Zh=nu?on(nu):na;function en(n){return n!=null&&je(n.length)&&!qn(n)}function G(n){return N(n)&&en(n)}function Yh(n){return n===!0||n===!1||N(n)&&k(n)==Ut}var rt=os||Ri,Xh=tu?on(tu):ta;function Jh(n){return N(n)&&n.nodeType===1&&!ie(n)}function Qh(n){if(n==null)return!0;if(en(n)&&(I(n)||typeof n=="string"||typeof n.splice=="function"||rt(n)||Pt(n)||pt(n)))return!n.length;var t=V(n);if(t==Sn||t==Rn)return!n.size;if(ee(n))return!Hr(n).length;for(var e in n)if(P.call(n,e))return!1;return!0}function Vh(n,t){return jt(n,t)}function kh(n,t,e){e=typeof e=="function"?e:o;var r=e?e(n,t):o;return r===o?jt(n,t,o,e):!!r}function gi(n){if(!N(n))return!1;var t=k(n);return t==ce||t==mo||typeof n.message=="string"&&typeof n.name=="string"&&!ie(n)}function jh(n){return typeof n=="number"&&mu(n)}function qn(n){if(!D(n))return!1;var t=k(n);return t==he||t==Ci||t==Ao||t==Ro}function $f(n){return typeof n=="number"&&n==y(n)}function je(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Yn}function D(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}function N(n){return n!=null&&typeof n=="object"}var qf=eu?on(eu):ra;function ng(n,t){return n===t||Gr(n,t,ri(t))}function tg(n,t,e){return e=typeof e=="function"?e:o,Gr(n,t,ri(t),e)}function eg(n){return Kf(n)&&n!=+n}function rg(n){if(Ga(n))throw new R(Z);return Bu(n)}function ig(n){return n===null}function ug(n){return n==null}function Kf(n){return typeof n=="number"||N(n)&&k(n)==Nt}function ie(n){if(!N(n)||k(n)!=Fn)return!1;var t=Ee(n);if(t===null)return!0;var e=P.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Se.call(e)==ts}var _i=ru?on(ru):ia;function fg(n){return $f(n)&&n>=-Yn&&n<=Yn}var zf=iu?on(iu):ua;function nr(n){return typeof n=="string"||!I(n)&&N(n)&&k(n)==Ht}function sn(n){return typeof n=="symbol"||N(n)&&k(n)==ge}var Pt=uu?on(uu):fa;function og(n){return n===o}function lg(n){return N(n)&&V(n)==$t}function sg(n){return N(n)&&k(n)==yo}var ag=Ke($r),cg=Ke(function(n,t){return n<=t});function Zf(n){if(!n)return[];if(en(n))return nr(n)?In(n):tn(n);if(zt&&n[zt])return ql(n[zt]());var t=V(n),e=t==Sn?Lr:t==Rn?xe:Bt;return e(n)}function Kn(n){if(!n)return n===0?n:0;if(n=mn(n),n===ft||n===-ft){var t=n<0?-1:1;return t*po}return n===n?n:0}function y(n){var t=Kn(n),e=t%1;return t===t?e?t-e:t:0}function Yf(n){return n?ct(y(n),0,Wn):0}function mn(n){if(typeof n=="number")return n;if(sn(n))return se;if(D(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=D(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=cu(n);var e=Zo.test(n);return e||Xo.test(n)?El(n.slice(2),e?2:8):zo.test(n)?se:+n}function Xf(n){return Pn(n,rn(n))}function hg(n){return n?ct(y(n),-Yn,Yn):n===0?n:0}function b(n){return n==null?"":ln(n)}var gg=Ot(function(n,t){if(ee(t)||en(t)){Pn(t,X(t),n);return}for(var e in t)P.call(t,e)&&Qt(n,e,t[e])}),Jf=Ot(function(n,t){Pn(t,rn(t),n)}),tr=Ot(function(n,t,e,r){Pn(t,rn(t),n,r)}),_g=Ot(function(n,t,e,r){Pn(t,X(t),n,r)}),pg=Hn(Mr);function dg(n,t){var e=Lt(n);return t==null?e:Eu(e,t)}var vg=T(function(n,t){n=B(n);var e=-1,r=t.length,i=r>2?t[2]:o;for(i&&j(t[0],t[1],i)&&(r=1);++e1),f}),Pn(n,ti(n),e),r&&(e=wn(e,Zn|yi|dt,Ca));for(var i=t.length;i--;)Yr(e,t[i]);return e});function Mg(n,t){return Vf(n,ke(A(t)))}var Fg=Hn(function(n,t){return n==null?{}:sa(n,t)});function Vf(n,t){if(n==null)return{};var e=U(ti(n),function(r){return[r]});return t=A(t),Hu(n,e,function(r,i){return t(r,i[0])})}function Ug(n,t,e){t=tt(t,n);var r=-1,i=t.length;for(i||(i=1,n=o);++rt){var r=n;n=t,t=r}if(e||n%1||t%1){var i=Su();return Q(n+i*(t-n+yl("1e-"+((i+"").length-1))),t)}return Kr(n,t)}var Xg=Wt(function(n,t,e){return t=t.toLowerCase(),n+(e?no(t):t)});function no(n){return vi(b(n).toLowerCase())}function to(n){return n=b(n),n&&n.replace(Qo,Dl).replace(pl,"")}function Jg(n,t,e){n=b(n),t=ln(t);var r=n.length;e=e===o?r:ct(y(e),0,r);var i=e;return e-=t.length,e>=0&&n.slice(e,i)==t}function Qg(n){return n=b(n),n&&Oo.test(n)?n.replace(Wi,Nl):n}function Vg(n){return n=b(n),n&&Fo.test(n)?n.replace(hr,"\\$&"):n}var kg=Wt(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),jg=Wt(function(n,t,e){return n+(e?" ":"")+t.toLowerCase()}),n_=rf("toLowerCase");function t_(n,t,e){n=b(n),t=y(t);var r=t?yt(n):0;if(!t||r>=t)return n;var i=(t-r)/2;return qe(Oe(i),e)+n+qe(Le(i),e)}function e_(n,t,e){n=b(n),t=y(t);var r=t?yt(n):0;return t&&r>>0,e?(n=b(n),n&&(typeof t=="string"||t!=null&&!_i(t))&&(t=ln(t),!t&&It(n))?et(In(n),0,e):n.split(t,e)):[]}var s_=Wt(function(n,t,e){return n+(e?" ":"")+vi(t)});function a_(n,t,e){return n=b(n),e=e==null?0:ct(y(e),0,n.length),t=ln(t),n.slice(e,e+t.length)==t}function c_(n,t,e){var r=u.templateSettings;e&&j(n,t,e)&&(t=o),n=b(n),t=tr({},t,r,cf);var i=tr({},t.imports,r.imports,cf),f=X(i),l=Cr(i,f),s,c,_=0,p=t.interpolate||_e,d="__p += '",v=Or((t.escape||_e).source+"|"+p.source+"|"+(p===bi?Ko:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),x="//# sourceURL="+(P.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Al+"]")+` `;n.replace(v,function(S,C,O,an,nn,cn){return O||(O=an),d+=n.slice(_,cn).replace(Vo,Gl),C&&(s=!0,d+=`' + __e(`+C+`) + '`),nn&&(c=!0,d+=`'; `+nn+`; __p += '`),O&&(d+=`' + ((__t = (`+O+`)) == null ? '' : __t) + '`),_=cn+S.length,S}),d+=`'; `;var m=P.call(t,"variable")&&t.variable;if(!m)d=`with (obj) { `+d+` } `;else if($o.test(m))throw new R(it);d=(c?d.replace(Eo,""):d).replace(To,"$1").replace(Co,"$1;"),d="function("+(m||"obj")+`) { `+(m?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+d+`return __p }`;var E=ro(function(){return W(f,x+"return "+d).apply(o,l)});if(E.source=d,gi(E))throw E;return E}function h_(n){return b(n).toLowerCase()}function g_(n){return b(n).toUpperCase()}function __(n,t,e){if(n=b(n),n&&(e||t===o))return cu(n);if(!n||!(t=ln(t)))return n;var r=In(n),i=In(t),f=hu(r,i),l=gu(r,i)+1;return et(r,f,l).join("")}function p_(n,t,e){if(n=b(n),n&&(e||t===o))return n.slice(0,pu(n)+1);if(!n||!(t=ln(t)))return n;var r=In(n),i=gu(r,In(t))+1;return et(r,0,i).join("")}function d_(n,t,e){if(n=b(n),n&&(e||t===o))return n.replace(gr,"");if(!n||!(t=ln(t)))return n;var r=In(n),i=hu(r,In(t));return et(r,i).join("")}function v_(n,t){var e=so,r=ao;if(D(t)){var i="separator"in t?t.separator:i;e="length"in t?y(t.length):e,r="omission"in t?ln(t.omission):r}n=b(n);var f=n.length;if(It(n)){var l=In(n);f=l.length}if(e>=f)return n;var s=e-yt(r);if(s<1)return r;var c=l?et(l,0,s).join(""):n.slice(0,s);if(i===o)return c+r;if(l&&(s+=c.length-s),_i(i)){if(n.slice(s).search(i)){var _,p=c;for(i.global||(i=Or(i.source,b(Pi.exec(i))+"g")),i.lastIndex=0;_=i.exec(p);)var d=_.index;c=c.slice(0,d===o?s:d)}}else if(n.indexOf(ln(i),s)!=s){var v=c.lastIndexOf(i);v>-1&&(c=c.slice(0,v))}return c+r}function w_(n){return n=b(n),n&&Lo.test(n)?n.replace(Oi,Yl):n}var x_=Wt(function(n,t,e){return n+(e?" ":"")+t.toUpperCase()}),vi=rf("toUpperCase");function eo(n,t,e){return n=b(n),t=e?o:t,t===o?$l(n)?Ql(n):Pl(n):n.match(t)||[]}var ro=T(function(n,t){try{return fn(n,o,t)}catch(e){return gi(e)?e:new R(e)}}),A_=Hn(function(n,t){return pn(t,function(e){e=Bn(e),Nn(n,e,ci(n[e],n))}),n});function m_(n){var t=n==null?0:n.length,e=A();return n=t?U(n,function(r){if(typeof r[1]!="function")throw new dn(q);return[e(r[0]),r[1]]}):[],T(function(r){for(var i=-1;++iYn)return[];var e=Wn,r=Q(n,Wn);t=A(t),n-=Wn;for(var i=Tr(r,t);++e0||t<0)?new L(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),t!==o&&(t=y(t),e=t<0?e.dropRight(-t):e.take(t-n)),e)},L.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},L.prototype.toArray=function(){return this.take(Wn)},bn(L.prototype,function(n,t){var e=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=u[r?"take"+(t=="last"?"Right":""):t],f=r||/^find/.test(t);i&&(u.prototype[t]=function(){var l=this.__wrapped__,s=r?[1]:arguments,c=l instanceof L,_=s[0],p=c||I(l),d=function(C){var O=i.apply(u,Jn([C],s));return r&&v?O[0]:O};p&&e&&typeof _=="function"&&_.length!=1&&(c=p=!1);var v=this.__chain__,x=!!this.__actions__.length,m=f&&!v,E=c&&!x;if(!f&&p){l=E?l:new L(this);var S=n.apply(l,s);return S.__actions__.push({func:Xe,args:[d],thisArg:o}),new vn(S,v)}return m&&E?n.apply(this,s):(S=this.thru(d),m?r?S.value()[0]:S.value():S)})}),pn(["pop","push","shift","sort","splice","unshift"],function(n){var t=Ae[n],e=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var f=this.value();return t.apply(I(f)?f:[],i)}return this[e](function(l){return t.apply(I(l)?l:[],i)})}}),bn(L.prototype,function(n,t){var e=u[t];if(e){var r=e.name+"";P.call(Ct,r)||(Ct[r]=[]),Ct[r].push({name:t,func:e})}}),Ct[He(o,ut).name]=[{name:"wrapper",func:o}],L.prototype.clone=ws,L.prototype.reverse=xs,L.prototype.value=As,u.prototype.at=Jc,u.prototype.chain=Qc,u.prototype.commit=Vc,u.prototype.next=kc,u.prototype.plant=nh,u.prototype.reverse=th,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=eh,u.prototype.first=u.prototype.head,zt&&(u.prototype[zt]=jc),u},Vn=Vl();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Y._=Vn,define(function(){return Vn})):ot?((ot.exports=Vn)._=Vn,xr._=Vn):Y._=Vn}).call(Mt)});var Sp=oo(Ii());var lo=oo(Ii()),hp=document.documentElement.clientWidth,gp=window.innerWidth-hp,_p=0,pp=document.getElementById("modal-search"),dp={placement:"top-center",closable:!0,onHide:()=>{document.body.style.paddingRight="0"},onShow:()=>{document.body.style.paddingRight=`${gp+_p}px`;let o=document.getElementById("wp-search-input");o&&(o.focus(),o.value="")},onToggle:()=>{}},vp={id:"modal-search",override:!0},wp=new Modal(pp,dp,vp),xp=document.querySelectorAll('[data-custom-modal="modal-search"]'),Ap=(0,lo.debounce)(()=>{wp.toggle()},100);xp.forEach(o=>{o.addEventListener("click",$=>{$.preventDefault(),Ap()})});(function(o){o(document).ready(function(){var $=o(".featured-slider");$.on("init",function(hn,Z,q){var it=o(Z.$slides[Z.currentSlide]),Cn=it.next(),fe=it.prev();fe.addClass("slick-sprev"),Cn.addClass("slick-snext"),it.removeClass("slick-snext").removeClass("slick-sprev"),Z.$prev=fe,Z.$next=Cn}).on("beforeChange",function(hn,Z,q,it){var Cn=o(Z.$slides[it]);Z.$prev.removeClass("slick-sprev"),Z.$next.removeClass("slick-snext"),Z.$prev=Cn.prev(),Z.$next=Cn.next(),Z.$prev.addClass("slick-sprev"),Z.$next.addClass("slick-snext"),Cn.removeClass("slick-next slick-sprev")}),o(".featured-slider").length&&$.slick({autoplay:!0,autoplaySpeed:15e3,infinite:!0,speed:500,slidesPerRow:1,slidesToShow:1,slidesToScroll:1,centerMode:!0,centerPadding:"0",prevArrow:o("[data-slick-featured-prev]"),nextArrow:o("[data-slick-featured-next]"),variableWidth:!0,dots:!1,swipe:!0,customPaging:function(hn,Z){return""},responsive:[{breakpoint:900,settings:{slidesToShow:1,slidesToScroll:1,centerPadding:"0"}}]})})})(jQuery);})(); /*! Bundled license information: lodash/lodash.js: (** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors *) */ ; /*! * WPMU DEV Hustle UI * Copyright 2019 Incsub (https://incsub.com) * Licensed under GPL v3 (http://www.gnu.org/licenses/gpl-3.0.html) */ /*! * WPMU DEV Hustle UI * Copyright 2019 Incsub (https://incsub.com) * Licensed under GPL v3 (http://www.gnu.org/licenses/gpl-3.0.html) */ 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},_typeof(e)}!function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.checkboxGdpr=function(){e(".hustle-ui .hustle-gdpr input").on("change",(function(t){var n=e(t.target),i=n.parent();n.is(":checked")?i.removeClass("hustle-field-error"):i.addClass("hustle-field-error")}))}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.datepicker=function(t,n,i,s,o,r){var a=e(t);e(".hustle-ui").each((function(){var t=e(this),l=t.find(a);l.datepicker({monthNames:o,monthNamesShort:r,dayNames:n,dayNamesMin:s,dayNamesShort:i,minDate:""!==l.data("min-date")?l.data("min-date"):null,changeMonth:!0===l.data("change-month"),changeYear:!0===l.data("change-year"),yearRange:l.data("year-range"),dateFormat:""!==l.data("format")?l.data("format"):"yy-mm-dd",isRTL:!0===l.data("rtl-support"),showButtonPanel:!1,beforeShow:function(e,n){n.dpDiv.removeClass((function(e,t){return(t.match(/\bhustle-\S+/g)||[]).join(" ")})),n.dpDiv.removeClass((function(e,t){return(t.match(/\bforminator-\S+/g)||[]).join(" ")})),n.dpDiv.addClass("hustle-calendar"),n.dpDiv.addClass("hustle-module-"+t.data("id")),void 0!==t.data("calendar-palette")&&n.dpDiv.addClass("hustle-palette--"+t.data("calendar-palette"))}})}))}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.floatLoad=function(t){var n=e(t),i=n.find(".hustle-float-content");if(n.is(".hustle-float"))return function(){var t,i="";if(hustleSettings.mobile_breakpoint)<[^<]*)*<\/script>/gi,"")}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.inlineClose=function(t,n){var i=e(t);i.find(".hustle-inline-content");if(i.hasClass("hustle-inline"))return void 0!==n&&!1!==n&&setTimeout((function(){i.find("iframe").each((function(t,n){return e(n).attr("src",e(n).attr("src"))})),i.trigger("hustle:module:hidden",this),i.slideUp(800),setTimeout((function(){i.remove()}),800)}),n),this}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.inlineLoad=function(t){var n,i,s=e(t),o=s.find(".hustle-inline-content"),r=e(window).height(),a=s.offset().top;if(s.is(".hustle-inline"))return s.css("opacity",1),s.removeClass("hustle-show"),n=s.data("intro"),i="no_animation",""!==n&&(i=n),"no_animation"!==i&&o.addClass("hustle-animate"),r>a||s.hasClass("hustle-preview")?l(200):"no_animation"===s.data("intro")?l(100):e(window).on("scroll",(function(){e(window).scrollTop()+r>=a&&l(100)})),this;function l(t){s.addClass("hustle-show"),setTimeout((function(){var t,n;t=s.data("intro"),n="no_animation",""!==t&&(n=t),"no_animation"!==n&&o.addClass("hustle-animate-in--"+n),e(document).trigger("hustle:module:displayed",s)}),t)}}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.inlineResize=function(t){var n=e(t),i=n.width();if(n.is(".hustle-inline"))return 783=i&&n.addClass("hustle-size--small")),this}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.inputFilled=function(){e(".hustle-ui .hustle-input").each((function(t,n){var i=e(n);""===i.val()&&n.validity.valid?i.parent().removeClass("hustle-field-filled"):i.parent().addClass("hustle-field-filled")})),e(".hustle-ui .hustle-input").on("keyup blur change",(function(){var t=e(this);""===t.val()&&this.validity.valid?t.parent().removeClass("hustle-field-filled"):t.parent().addClass("hustle-field-filled")}))}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.inputRequired=function(){e(".hustle-ui .hustle-input").blur((function(){var t=e(this),n=t.parent();n.hasClass("hustle-field-required")&&(""===t.val()?n.addClass("hustle-field-error"):n.removeClass("hustle-field-error"))}))}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.nonSharingSimulation=function(t){var n=e(t);if(n.is(".hustle-ui")){var i=n.find(".hustle-optin"),s=n.find(".hustle-button-submit"),o=n.find(".hustle-button-cta"),r=i.find(".hustle-success"),a=i.find(".hustle-layout").find(".hustle-layout-form"),l=a.find(".hustle-error-message");return a.find(".hustle-error-message").not(":first").remove(),r.hide(),l.hide(),o.length&&o.on("click",(function(e){e.preventDefault()})),s.on("click",(function(e){var t;e.preventDefault(),e.stopPropagation(),(t=HUI.optinValidate(n)).length?HUI.optinError(l,t):(HUI.optinSubmit(this,1e3),setTimeout((function(){HUI.optinSuccess(r,r.data("close-delay"))}),1e3))})),this}}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.optinError=function(t,n){var i=e(t),s=i.closest("form");if(i.is(".hustle-error-message"))return function(t){var n=!0;if(!Array.isArray(t)){var o=[];e.each(t,(function(e,t){o.push(t)})),t=o}void 0!==t&&t.length&&e.each(t,(function(t,o){if(void 0===o||!o)return!0;n?(i.append("

"+HUI.escapeJS(o)+"

"),n=!1):e('

'+HUI.escapeJS(o)+"

").appendTo(s)})),(void 0===t||n)&&i.append("

"+HUI.escapeJS(i.data("default-error"))+"

"),i.show()}(n),this}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.optinSubmit=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e(t),s=i.closest(".hustle-ui").find(".hustle-optin");if(i.is(".hustle-button-submit")&&s[0]&&s.length)return function(){if(i.addClass("hustle-button-onload").attr("aria-label",i.attr("data-loading-text")),!1!==n){var e=isNaN(parseInt(n))?"1000":n;setTimeout((function(){i.removeClass("hustle-button-onload").removeAttr("aria-label")}),e)}}(),this}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.optinSuccess=function(t){var n=e(t),i=n.closest(".hustle-ui"),s=i.find(".hustle-layout"),o=n.data("close-delay");if(n.is(".hustle-success"))return r(),this;function r(){if(s.slideUp(800),setTimeout((function(){n.slideDown()}),800),o||0===o){var e=null;i.is(".hustle-slidein")?e=HUI.slideinClose:i.is(".hustle-popup")?e=HUI.popupClose:i.is(".hustle-inline")&&(e=HUI.inlineClose),setTimeout((function(){return e(i,0)}),o)}}}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.optinValidate=function(t){var n,i,s,o=e(t),r=[],a=o.find(".hustle-layout-form");return n=a.find(".hustle-field"),i=a.find(".hustle-checkbox"),s=a.find(".hustle-error-message"),a.find(".hustle-error-message").not(":first").remove(),n.removeClass("hustle-field-error"),i.removeClass("hustle-field-error"),s.html("").hide(),a.find(".hustle-input").parent().each((function(){var t=e(this);t.hasClass("hustle-field-required")&&(""===t.find("input").val()?(t.addClass("hustle-field-error"),r.push(t.find(".hustle-input").data("required-error"))):t.removeClass("hustle-field-error"))})),function(){var e=a.find(".hustle-gdpr"),t=e.find("input");!e.length||t.is(":checked")?e.removeClass("hustle-field-error"):(e.addClass("hustle-field-error"),r.push(t.data("required-error")))}(),r}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.popupClose=function(t,n){var i=e(t),s=i.find(".hustle-button-close"),o=(i.find(".hustle-popup-mask"),i.find(".hustle-popup-content")),r=i.find(".hustle-nsa-link"),a=!1;if(s.length&&i.hasClass("hustle-popup"))return e(document).off("keydown.hustle.escKey",l),e(document).on("keydown.hustle.escKey",l),i.on("click",(function(){a=!0})),void 0!==n&&!1!==n&&setTimeout((function(){a||(i.trigger("hustle:module:hidden",this),c())}),n),s.on("click",(function(e){i.trigger("hustle:module:closed",this),c(),e.preventDefault(),e.stopPropagation()})),r.on("click",(function(e){e.preventDefault(),i.trigger("hustle:module:clicked_never_see",this),c()})),1===i.data("overlay-close")&&(i.on("click",(function(e){i.trigger("hustle:module:click_outside",this),c(),e.preventDefault(),e.stopPropagation()})),o.on("click",(function(e){i.trigger("hustle:module:click_content",e.target),e.stopPropagation()}))),this;function l(e){27===e.keyCode&&(a=!0,i.trigger("hustle:module:esc_key_pressed",this),c())}function c(){var t,n=i.data("outro"),s=1e3,r="no_animation";""!==n&&(r=n),"no_animation"===r&&(s=0),"fadeOut"===r&&(s=305),"newspaperOut"===r&&(s=505),"bounceOut"===r&&(s=755),i.removeClass("hustle-animation-stopped"),i.find("iframe").each((function(t,n){return e(n).attr("src",e(n).attr("src"))})),function(){var e=i.data("outro");o.addClass("hustle-animate-out--"+e)}(),t=i.data("intro"),o.removeClass("hustle-animate-in--"+t),setTimeout((function(){i.removeClass("hustle-show"),o.removeClass("hustle-animate-out--"+r),e(".hustle-show.hustle-scroll-forbidden").length||e("html").removeClass("hustle-no-scroll"),HUI.trapFocus()}),s)}}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.popupLoad=function(t,n){var i,s=e(t),o=s.find(".hustle-popup-content");e("#"+s.attr("id")).find(".hustle-layout");if(s.is(".hustle-popup"))return s.css("opacity",1),s.removeClass("hustle-show"),o.addClass("hustle-animate"),s.addClass("hustle-show"),setTimeout((function(){var t,n;t=s.data("intro"),n=1e3,"no_animation"===t&&(n=0),"bounceIn"!==t&&"bounceInUp"!==t&&"bounceInDown"!==t&&"bounceInLeft"!==t&&"bounceInRight"!==t||(n=755),"fadeIn"===t&&(n=305),"newspaperIn"===t&&(n=505),o.addClass("hustle-animate-in--"+t),setTimeout((function(){s.addClass("hustle-animation-stopped")}),n+50),e(document).trigger("hustle:module:displayed",s),HUI.trapFocus()}),200),i=s.find(".hustle-group-content").outerWidth(),s.find("iframe, object, video").each((function(){var t,n=e(this),s=n.attr("width"),o=n.attr("height");void 0!==_typeof(s)&&void 0!==_typeof(o)&&0
'),p=o.find(".hustle-recaptcha-badge");var f={sitekey:a,theme:c,size:u,badge:d,"expired-callback":function(){return grecaptcha.reset(o.attr("recaptcha-id"))}};"v2_checkbox"===l?(e.find(".hustle-modal-body button").prop("disabled",!0),f.callback=function(t){e.find('input[name="recaptcha-response"]').val(t),e.find(".hustle-layout-body button").prop("disabled",!1)}):f.callback=function(n){e.find('input[name="recaptcha-response"]').val(n),t&&t.doSubmit(o.closest(".hustle-layout-form"))},f["error-callback"]=function(){var e=o.closest(".hustle-layout-form");HUI.optinError(e.find(".hustle-error-message"),["Coud not get recaptcha response. Please, contact the site administrator."]),e.find(".hustle-button-submit").prop("disabled",!0),p.addClass("hustle-recaptcha-preview-has-error")},"undefined"!=typeof grecaptcha&&grecaptcha.ready((function(){var e=grecaptcha.render(p[0],f);o.attr("recaptcha-id",e)}))}}}(),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}((function(e){var t=function(){var t,n;return function(){ /** * @license almond 0.3.3 Copyright jQuery Foundation and other contributors. * Released under MIT license, http://github.com/requirejs/almond/LICENSE */ var e,n,i;t&&t.requirejs||(t?n=t:t={},function(t){var s,o,r,a,l={},c={},u={},d={},p=Object.prototype.hasOwnProperty,h=[].slice,f=/\.js$/;function m(e,t){return p.call(e,t)}function g(e,t){var n,i,s,o,r,a,l,c,d,p,h,m=t&&t.split("/"),g=u.map,v=g&&g["*"]||{};if(e){for(r=(e=e.split("/")).length-1,u.nodeIdCompat&&f.test(e[r])&&(e[r]=e[r].replace(f,"")),"."===e[0].charAt(0)&&m&&(e=m.slice(0,m.length-1).concat(e)),d=0;d0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((m||v)&&g){for(d=(n=e.split("/")).length;d>0;d-=1){if(i=n.slice(0,d).join("/"),m)for(p=m.length;p>0;p-=1)if((s=g[m.slice(0,p).join("/")])&&(s=s[i])){o=s,a=d;break}if(o)break;!l&&v&&v[i]&&(l=v[i],c=d)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function v(e,n){return function(){var i=h.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),o.apply(t,i.concat([e,n]))}}function y(e){return function(t){l[e]=t}}function w(e){if(m(c,e)){var n=c[e];delete c[e],d[e]=!0,s.apply(t,n)}if(!m(l,e)&&!m(d,e))throw new Error("No "+e);return l[e]}function _(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function b(e){return e?_(e):[]}function $(e){return function(){return u&&u.config&&u.config[e]||{}}}r=function(e,t){var n,i,s=_(e),o=s[0],r=t[1];return e=s[1],o&&(n=w(o=g(o,r))),o?e=n&&n.normalize?n.normalize(e,(i=r,function(e){return g(e,i)})):g(e,r):(o=(s=_(e=g(e,r)))[0],e=s[1],o&&(n=w(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},a={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:$(e)}}},s=function(e,n,i,s){var o,u,p,h,f,g,_,$=[],x=_typeof(i);if(g=b(s=s||e),"undefined"===x||"function"===x){for(n=!n.length&&i.length?["require","exports","module"]:n,f=0;f0&&(n.call(arguments,e.prototype.constructor),s=t.prototype.constructor),s.apply(this,arguments)}t.displayName=e.displayName,o.prototype=new function(){this.constructor=o};for(var r=0;r":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.__cache={};var s=0;return t.GetUniqueElementId=function(e){var n=e.getAttribute("data-select2-id");return null!=n||(n=e.id?"select2-data-"+e.id:"select2-data-"+(++s).toString()+"-"+t.generateChars(4),e.setAttribute("data-select2-id",n)),n},t.StoreData=function(e,n,i){var s=t.GetUniqueElementId(e);t.__cache[s]||(t.__cache[s]={}),t.__cache[s][n]=i},t.GetData=function(n,i){var s=t.GetUniqueElementId(n);return i?t.__cache[s]&&null!=t.__cache[s][i]?t.__cache[s][i]:e(n).data(i):t.__cache[s]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t.copyNonInternalCssClasses=function(e,t){var n=e.getAttribute("class").trim().split(/\s+/);n=n.filter((function(e){return 0===e.indexOf("select2-")}));var i=t.getAttribute("class").trim().split(/\s+/);i=i.filter((function(e){return 0!==e.indexOf("select2-")}));var s=n.concat(i);e.setAttribute("class",s.join(" "))},t})),t.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('
    ');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e(''),s=this.options.get("translations").get(t.message);i.append(n(s(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current((function(i){var s=i.map((function(e){return e.id.toString()}));n.$results.find(".select2-results__option--selectable").each((function(){var n=e(this),i=t.GetData(this,"data"),o=""+i.id;null!=i.element&&i.element.selected||null==i.element&&s.indexOf(o)>-1?(this.classList.add("select2-results__option--selected"),n.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),n.attr("aria-selected","false"))}))}))},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.classList.add("select2-results__option"),i.classList.add("select2-results__option--selectable");var s={role:"option"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var r in(null!=n.element&&o.call(n.element,":disabled")||null==n.element&&n.disabled)&&(s["aria-disabled"]="true",i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--disabled")),null==n.id&&i.classList.remove("select2-results__option--selectable"),null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(s.role="group",s["aria-label"]=n.text,i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--group")),s){var a=s[r];i.setAttribute(r,a)}if(n.children){var l=e(i),c=document.createElement("strong");c.className="select2-results__group",this.template(n,c);for(var u=[],d=0;d",{class:"select2-results__options select2-results__options--nested",role:"none"});f.append(u),l.append(c),l.append(f)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var s=this,o=n.id+"-results";this.$results.attr("id",o),n.on("results:all",(function(e){s.clear(),s.append(e.data),n.isOpen()&&(s.setClasses(),s.highlightFirstItem())})),n.on("results:append",(function(e){s.append(e.data),n.isOpen()&&s.setClasses()})),n.on("query",(function(e){s.hideMessages(),s.showLoading(e)})),n.on("select",(function(){n.isOpen()&&(s.setClasses(),s.options.get("scrollAfterSelect")&&s.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(s.setClasses(),s.options.get("scrollAfterSelect")&&s.highlightFirstItem())})),n.on("open",(function(){s.$results.attr("aria-expanded","true"),s.$results.attr("aria-hidden","false"),s.setClasses(),s.ensureHighlightVisible()})),n.on("close",(function(){s.$results.attr("aria-expanded","false"),s.$results.attr("aria-hidden","true"),s.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var e=s.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),n.on("results:select",(function(){var e=s.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?s.trigger("close",{}):s.trigger("select",{data:n})}})),n.on("results:previous",(function(){var e=s.getHighlightedResults(),t=s.$results.find(".select2-results__option--selectable"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var o=t.eq(i);o.trigger("mouseenter");var r=s.$results.offset().top,a=o.offset().top,l=s.$results.scrollTop()+(a-r);0===i?s.$results.scrollTop(0):a-r<0&&s.$results.scrollTop(l)}})),n.on("results:next",(function(){var e=s.getHighlightedResults(),t=s.$results.find(".select2-results__option--selectable"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var o=s.$results.offset().top+s.$results.outerHeight(!1),r=i.offset().top+i.outerHeight(!1),a=s.$results.scrollTop()+r-o;0===n?s.$results.scrollTop(0):r>o&&s.$results.scrollTop(a)}})),n.on("results:focus",(function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")})),n.on("results:message",(function(e){s.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=s.$results.scrollTop(),n=s.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,o=e.deltaY<0&&n<=s.$results.height();i?(s.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(s.$results.scrollTop(s.$results.get(0).scrollHeight-s.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option--selectable",(function(n){var i=e(this),o=t.GetData(this,"data");i.hasClass("select2-results__option--selected")?s.options.get("multiple")?s.trigger("unselect",{originalEvent:n,data:o}):s.trigger("close",{}):s.trigger("select",{originalEvent:n,data:o})})),this.$results.on("mouseenter",".select2-results__option--selectable",(function(n){var i=t.GetData(this,"data");s.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),s.trigger("results:focus",{data:i,element:e(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable").index(e),n=this.$results.offset().top,i=e.offset().top,s=this.$results.scrollTop()+(i-n),o=i-n;s-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(s)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),o=i(t,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=s(o):e(n).append(o)},n})),t.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),t.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},i.prototype.bind=function(e,t){var i=this,s=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){i.trigger("focus",e)})),this.$selection.on("blur",(function(e){i._handleBlur(e)})),this.$selection.on("keydown",(function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){i.update(e.data)})),e.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",s),i._attachCloseHandler(e)})),e.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(e)})),e.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,(function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=i[0]&&t.GetData(this,"element").HUIselect2("close")}))}))},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,i){function s(){s.__super__.constructor.apply(this,arguments)}return n.Extend(s,t),s.prototype.render=function(){var e=s.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html(''),e},s.prototype.bind=function(e,t){var n=this;s.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.attr("aria-controls",i),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.trigger("focus")}))},s.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},s.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},s.prototype.selectionContainer=function(){return e("")},s.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var s=t.title||t.text;s?n.attr("title",s):n.removeAttr("title")}else this.clear()},s})),t.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('
      '),e},i.prototype.bind=function(t,s){var o=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r),this.$selection.on("click",(function(e){o.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!o.isDisabled()){var i=e(this).parent(),s=n.GetData(i[0],"data");o.trigger("unselect",{originalEvent:t,data:s})}})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(e){o.isDisabled()||e.stopPropagation()}))},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('
    • ')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",s=0;s1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e})),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(e,t,n){function i(){}return i.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(e){i._handleClear(e)})),t.on("keypress",(function(e){i._handleKeyboardClear(e,t)}))},i.prototype._handleClear=function(e,t){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var s=n.GetData(i[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var r={data:s};if(this.trigger("clear",r),r.prevented)this.$element.val(o);else{for(var a=0;a0||0===i.length)){var s=this.$selection.find(".select2-selection__rendered").attr("id"),o=this.options.get("translations").get("removeAllItems"),r=e('');r.attr("title",o()),r.attr("aria-label",o()),r.attr("aria-describedby",s),n.StoreData(r[0],"data",i),this.$selection.prepend(r),this.$selection[0].classList.add("select2-selection--clearable")}},i})),t.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=this.options.get("translations").get("search"),i=e('');this.$searchContainer=i,this.$search=i.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n());var s=t.call(this);return this._transferTabIndex(),s.append(this.$searchContainer),s},i.prototype.bind=function(e,i,s){var o=this,r=i.id+"-results",a=i.id+"-container";e.call(this,i,s),o.$search.attr("aria-describedby",a),i.on("open",(function(){o.$search.attr("aria-controls",r),o.$search.trigger("focus")})),i.on("close",(function(){o.$search.val(""),o.resizeSearch(),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")})),i.on("enable",(function(){o.$search.prop("disabled",!1),o._transferTabIndex()})),i.on("disable",(function(){o.$search.prop("disabled",!0)})),i.on("focus",(function(e){o.$search.trigger("focus")})),i.on("results:focus",(function(e){e.data._resultId?o.$search.attr("aria-activedescendant",e.data._resultId):o.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){o.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){o._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===o.$search.val()){var i=o.$selection.find(".select2-selection__choice").last();if(i.length>0){var s=t.GetData(i[0],"data");o.searchRemoveChoice(s),e.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(e){o.$search.val()&&e.stopPropagation()}));var l=document.documentMode,c=l&&l<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){c?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(c&&"input"===e.type)o.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&o.handleSearch(e)}}))},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em");this.$search.css("width",e)},i})),t.define("select2/selection/selectionCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("selectionCssClass")||"";return-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(i),n},t})),t.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,i){var s=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],r=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",(function(t,n){if(-1!==o.indexOf(t)){n=n||{};var i=e.Event("select2:"+t,{params:n});s.$element.trigger(i),-1!==r.indexOf(t)&&(n.prevented=i.isDefaultPrevented())}}))},t})),t.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n})),t.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),t.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t})),t.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(e){return t.item(n(e))})))},i.prototype.select=function(e){var t=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(n){var i=[];(e=[e]).push.apply(e,n);for(var s=0;s=0){var c=i.filter(r(l)),u=this.item(c),d=n.extend(!0,{},l,u),p=this.option(d);c.replaceWith(p)}else{var h=this.option(l);if(l.children){var f=this.convertToOptions(l.children);h.append(f)}o.push(h)}}return o},i})),t.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var s=n.ajax(e);return s.then(t),s.fail(i),s}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var s=n.extend({type:"GET"},this.ajaxOptions);function o(){var n=s.transport(s,(function(n){var s=i.processResults(n,e);i.options.get("debug")&&window.console&&console.error&&(s&&s.results&&Array.isArray(s.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(s)}),(function(){(!("status"in n)||0!==n.status&&"0"!==n.status)&&i.trigger("results:message",{message:"errorLoading"})}));i._request=n}"function"==typeof s.url&&(s.url=s.url.call(this.$element,e)),"function"==typeof s.data&&(s.data=s.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},i})),t.define("select2/data/tags",["jquery"],(function(e){function t(e,t,n){var i=n.get("tags"),s=n.get("createTag");void 0!==s&&(this.createTag=s);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),Array.isArray(i))for(var r=0;r0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(){i._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected((function(){e.call(i,t,n)}))},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current((function(e){var i=null!=e?e.length:0;n.maximumSelectionLength>0&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()}))},e})),t.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),t.define("select2/dropdown/search",["jquery"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("translations").get("search"),s=e('');return this.$searchContainer=s,this.$search=s.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i()),n.prepend(s),n},t.prototype.bind=function(t,n,i){var s=this,o=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",(function(e){s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){s.handleSearch(e)})),n.on("open",(function(){s.$search.attr("tabindex",0),s.$search.attr("aria-controls",o),s.$search.trigger("focus"),window.setTimeout((function(){s.$search.trigger("focus")}),0)})),n.on("close",(function(){s.$search.attr("tabindex",-1),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.val(""),s.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||s.$search.trigger("focus")})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(s.showSearch(e)?s.$searchContainer[0].classList.remove("select2-search--hide"):s.$searchContainer[0].classList.add("select2-search--hide"))})),n.on("results:focus",(function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")}))},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t})),t.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var s=t[i];this.placeholder.id===s.id&&n.splice(i,1)}return n},e})),t.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",(function(e){i.lastParams=e,i.loading=!0})),t.on("query:append",(function(e){i.lastParams=e,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&(this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore())},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('
    • '),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),t.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)})),t.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e(""),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var s=this,o="scroll.select2."+i.id,r="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),l.on(o,(function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)})),e(window).on(o+" "+r+" "+a,(function(e){s._positionDropdown(),s._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,i){var s="scroll.select2."+i.id,o="resize.select2."+i.id,r="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(s),e(window).off(s+" "+o+" "+r)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown[0].classList.contains("select2-dropdown--above"),i=this.$dropdown[0].classList.contains("select2-dropdown--below"),s=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=o.top,r.bottom=o.top+r.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=lo.bottom+a,p={left:o.left,top:r.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var f={top:0,left:0};(e.contains(document.body,h[0])||h[0].isConnected)&&(f=h.offset()),p.top-=f.top,p.left-=f.left,n||i||(s="below"),d||!u||n?!u&&d&&n&&(s="below"):s="above",("above"==s||n&&"below"!==s)&&(p.top=r.top-f.top-a),null!=s&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+s),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+s)),this.$dropdownContainer.css(p)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),t.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(t){for(var n=0,i=0;i0){var i=n.first(),s=e.GetData(i[0],"data").element;if(s&&s.getAttribute&&"true"===s.getAttribute("data-select2-tag"))return void i.trigger("mouseenter")}t.call(this)},t})),t.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}})),t.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],(function(e,t,n,i,s,o,r,a,l,c,u,d,p,h,f,m,g,v,y,w,_,b,$,x,C,I,T,k,H,A,D){function U(){this.reset()}return U.prototype.apply=function(u){if(null==(u=e.extend(!0,{},this.defaults,u)).dataAdapter&&(null!=u.ajax?u.dataAdapter=f:null!=u.data?u.dataAdapter=h:u.dataAdapter=p,u.minimumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,w)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,m)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,g))),null==u.resultsAdapter&&(u.resultsAdapter=t,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,x)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,$)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,T)),u.tags&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,A))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=_;else{var d=c.Decorate(_,b);u.dropdownAdapter=d}0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,I)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,k)),null!=u.dropdownCssClass&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,H)),u.dropdownAdapter=c.Decorate(u.dropdownAdapter,C)}null==u.selectionAdapter&&(u.multiple?u.selectionAdapter=i:u.selectionAdapter=n,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,o)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,r)),null!=u.selectionCssClass&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),u.selectionAdapter=c.Decorate(u.selectionAdapter,l)),u.language=this._resolveLanguage(u.language),u.language.push("en");for(var D=[],U=0;U0){for(var o=e.extend(!0,{},s),r=s.children.length-1;r>=0;r--){null==n(i,s.children[r])&&o.children.splice(r,1)}return o.children.length>0?o:n(i,o)}var a=t(s.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?s:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},U.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,s=t.prop("lang"),o=t.closest("[lang]").prop("lang"),r=Array.prototype.concat.call(this._resolveLanguage(s),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));return e.language=r,e},U.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=Array.isArray(t)?t:[t];for(var i=[],s=0;s0){var o=n[s].split("-")[0];i.push(o)}return i},U.prototype._processTranslations=function(t,n){for(var i=new u,s=0;s-1||(e.isPlainObject(this.options[p])?e.extend(this.options[p],d[p]):this.options[p]=d[p]);return this},i.prototype.get=function(e){return this.options[e]},i.prototype.set=function(e,t){this.options[e]=t},i})),t.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,n,i){var s=function e(i,s){null!=n.GetData(i[0],"select2")&&n.GetData(i[0],"select2").destroy(),this.$element=i,this.id=this._generateId(i),s=s||{},this.options=new t(s,i),e.__super__.constructor.call(this);var o=i.attr("tabindex")||0;n.StoreData(i[0],"old-tabindex",o),i.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(i,this.options);var a=this.render();this._placeContainer(a);var l=this.options.get("selectionAdapter");this.selection=new l(i,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var c=this.options.get("dropdownAdapter");this.dropdown=new c(i,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var u=this.options.get("resultsAdapter");this.results=new u(i,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){d.trigger("selection:update",{data:e})})),i[0].classList.add("select2-hidden-accessible"),i.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(i[0],"select2",this),i.data("select2",this)};return n.Extend(s,n.Observable),s.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},s.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},s.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var s=e.outerWidth(!1);return s<=0?"auto":s+"px"}if("style"==t){var o=e.attr("style");if("string"!=typeof o)return null;for(var r=o.split(";"),a=0,l=r.length;a=1)return c[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},s.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},s.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this._observer=new window.MutationObserver((function(t){e._syncA(),e._syncS(t)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},s.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,n){e.trigger(t,n)}))},s.prototype._registerSelectionEvents=function(){var e=this,t=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(n,i){-1===t.indexOf(n)&&e.trigger(n,i)}))},s.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,n){e.trigger(t,n)}))},s.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,n){e.trigger(t,n)}))},s.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container[0].classList.add("select2-container--open")})),this.on("close",(function(){e.$container[0].classList.remove("select2-container--open")})),this.on("enable",(function(){e.$container[0].classList.remove("select2-container--disabled")})),this.on("disable",(function(){e.$container[0].classList.add("select2-container--disabled")})),this.on("blur",(function(){e.$container[0].classList.remove("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(n){e.trigger("results:all",{data:n,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(n){e.trigger("results:append",{data:n,query:t})}))})),this.on("keypress",(function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.UP&&t.altKey?(e.close(t),t.preventDefault()):n===i.ENTER||n===i.TAB?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())}))},s.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},s.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&e.addedNodes.length>0)for(var n=0;n0)return!0;if(Array.isArray(e))return e.some((function(e){return t._isChangeMutation(e)}))}return!1},s.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),n=this;t&&this.dataAdapter.current((function(e){n.trigger("selection:update",{data:e})}))},s.prototype.trigger=function(e,t){var n=s.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var o=i[e],r={prevented:!1,name:e,args:t};if(n.call(this,o,r),r.prevented)return void(t.prevented=!0)}n.call(this,e,t)},s.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},s.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},s.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},s.prototype.isEnabled=function(){return!this.isDisabled()},s.prototype.isDisabled=function(){return this.options.get("disabled")},s.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},s.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},s.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},s.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},s.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current((function(t){e=t})),e},s.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map((function(e){return e.toString()}))),this.$element.val(t).trigger("input").trigger("change")},s.prototype.destroy=function(){n.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},s.prototype.render=function(){var t=e('');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},s})),t.define("select2/dropdown/attachContainer",[],(function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t[0].classList.add("select2-dropdown--below"),n[0].classList.add("select2-container--below")},e})),t.define("select2/dropdown/stopPropagation",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(e){e.stopPropagation()}))},e})),t.define("select2/selection/stopPropagation",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(e){e.stopPropagation()}))},e})), /*! * jQuery Mousewheel 3.1.13 * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license */ n=function(e){var t,n,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],o=Array.prototype.slice;if(e.event.fixHooks)for(var r=i.length;r;)e.event.fixHooks[i[--r]]=e.event.mouseHooks;var a=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=s.length;t;)this.addEventListener(s[--t],l,!1);else this.onmousewheel=l;e.data(this,"mousewheel-line-height",a.getLineHeight(this)),e.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=s.length;t;)this.removeEventListener(s[--t],l,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),i=n["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(i){var s,r=i||window.event,l=o.call(arguments,1),d=0,p=0,h=0,f=0,m=0;if((i=e.event.fix(r)).type="mousewheel","detail"in r&&(h=-1*r.detail),"wheelDelta"in r&&(h=r.wheelDelta),"wheelDeltaY"in r&&(h=r.wheelDeltaY),"wheelDeltaX"in r&&(p=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(p=-1*h,h=0),d=0===h?p:h,"deltaY"in r&&(d=h=-1*r.deltaY),"deltaX"in r&&(p=r.deltaX,0===h&&(d=-1*p)),0!==h||0!==p){if(1===r.deltaMode){var g=e.data(this,"mousewheel-line-height");d*=g,h*=g,p*=g}else if(2===r.deltaMode){var v=e.data(this,"mousewheel-page-height");d*=v,h*=v,p*=v}if(s=Math.max(Math.abs(h),Math.abs(p)),(!n||s=1?"floor":"ceil"](d/n),p=Math[p>=1?"floor":"ceil"](p/n),h=Math[h>=1?"floor":"ceil"](h/n),a.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=i.clientX-y.left,m=i.clientY-y.top}return i.deltaX=p,i.deltaY=h,i.deltaFactor=n,i.offsetX=f,i.offsetY=m,i.deltaMode=0,l.unshift(i,d,p,h),t&&clearTimeout(t),t=setTimeout(c,200),(e.event.dispatch||e.event.handle).apply(this,l)}}function c(){n=null}function u(e,t){return a.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof t.define&&t.define.amd?t.define("jquery-mousewheel",["jquery"],n):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=n:n(e),t.define("hui.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,n,i,s){if(null==e.fn.HUIselect2){var o=["open","close","destroy"];e.fn.HUIselect2=function(t){if("object"===_typeof(t=t||{}))return this.each((function(){var i=e.extend(!0,{},t);new n(e(this),i)})),this;if("string"==typeof t){var i,r=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The HUISelect2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,r)})),o.indexOf(t)>-1?this:i}throw new Error("Invalid arguments for HUISelect2: "+t)}}return null==e.fn.HUIselect2.defaults&&(e.fn.HUIselect2.defaults=i),n})),{define:t.define,require:t.require}}(),n=t.require("hui.select2");return e.fn.HUIselect2.amd=t,n})),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.select2=function(){e(".hustle-ui").each((function(){var t=e(this),n=t.data("id"),i=t.find(".hustle-select2");i.HUIselect2({dir:!0===i.data("rtl-support")?"rtl":"ltr",language:""!==i.data("language")?i.data("language"):"en",placeholder:""!==i.data("placeholder")?i.data("placeholder"):null,dropdownCssClass:"hustle-module-"+n+" hustle-dropdown",minimumResultsForSearch:1/0})}))}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.sharingSimulation=function(t){var n=e(t);if(n.is(".hustle-ui"))return n.hide(),this}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.slideinClose=function(t,n){var i=e(t),s=i.find(".hustle-button-close"),o=i.find(".hustle-slidein-content"),r=i.find(".hustle-nsa-link"),a=!1;if(s.length&&i.hasClass("hustle-slidein"))return e(document).off("keydown.hustle.escKey",l),e(document).on("keydown.hustle.escKey",l),i.on("click",(function(){a=!0})),void 0!==n&&!1!==n&&setTimeout((function(){a||(i.trigger("hustle:module:hidden",this),c())}),n),s.on("click",(function(e){i.trigger("hustle:module:closed",this),c()})),r.on("click",(function(e){e.preventDefault(),i.trigger("hustle:module:clicked_never_see",this),c()})),this;function l(e){27===e.keyCode&&(a=!0,i.trigger("hustle:module:esc_key_pressed",this),c())}function c(){o.addClass("hustle-animate-out"),o.removeClass("hustle-animate-in"),i.find("iframe").each((function(t,n){return e(n).attr("src",e(n).attr("src"))})),setTimeout((function(){i.removeClass("hustle-show"),o.removeClass("hustle-animate-out"),HUI.trapFocus()}),1e3)}}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.slideinLayouts=function(t){var n=e(t),i=n.find(".hustle-slidein-content"),s=n.find(".hustle-slidein-content > div"),o=n.find(".hustle-main-wrapper"),r=n.find(".hustle-layout-header"),a=n.find(".hustle-layout-footer"),l=n.find(".hustle-button-close");if(n.length&&n.hasClass("hustle-slidein"))return s.hasClass("hustle-info")&&(a=n.find(".hustle-nsa-link")),function(){s.hasClass("hustle-info--stacked")?(n.css({"padding-top":c()+"px"}),o.css({"max-height":"calc(100vh - "+(u()+c())+"px)"}),r.css({top:"-"+c()+"px"})):o.css({"max-height":"calc(100vh - "+(u()+l.outerHeight(!1))+"px)"}),n.css({"padding-bottom":u()+"px"}),a.css({bottom:"-"+u()+"px"});var e="s"===n.attr("data-position"),t="sw"===n.attr("data-position"),d="se"===n.attr("data-position");(e||t||d)&&i.css({bottom:u()+"px"})}(),this;function c(){return r.outerHeight(!0)}function u(){return a.length?a.outerHeight(!0):0}}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.slideinLoad=function(t,n){var i,s,o,r=e(t),a=r.find(".hustle-slidein-content");e("#"+r.attr("id")).find(".hustle-layout");if(r.is(".hustle-slidein"))return r.css("opacity",1),r.removeClass("hustle-show"),i=r.data("position"),s="",o="",-1!==i.charAt(0).indexOf("n")&&(s="north"),-1!==i.charAt(0).indexOf("s")&&(s="south"),-1!==i.charAt(0).indexOf("e")&&(s="east"),-1!==i.charAt(0).indexOf("w")&&(s="west"),-1!==i.charAt(1).indexOf("n")&&(o="north"),-1!==i.charAt(1).indexOf("s")&&(o="south"),-1!==i.charAt(1).indexOf("e")&&(o="east"),-1!==i.charAt(1).indexOf("w")&&(o="west"),1===i.length?r.addClass("hustle-slidein-position--"+s):r.addClass("hustle-slidein-position--"+s+"-"+o),setTimeout((function(){jQuery(window).trigger("resize"),r.addClass("hustle-show")}),800),setTimeout((function(){a.addClass("hustle-animate-in"),e(document).trigger("hustle:module:displayed",r),HUI.trapFocus()}),1e3),HUI.slideinClose(t,n),this}}(jQuery),function(e){"object"===("undefined"==typeof module?"undefined":_typeof(module))&&"object"===_typeof(module.exports)?e(require("jquery"),window,document):"undefined"!=typeof jQuery&&e(jQuery,window,document)}((function(e,t,n,i){!function(){function i(e,t,n){return new Array(n+1-e.length).join(t)+e}function s(){if(1===arguments.length){var t=arguments[0];return"string"==typeof t&&(t=e.fn.HUI_timepicker.parseTime(t)),new Date(0,0,0,t.getHours(),t.getMinutes(),t.getSeconds())}return 3===arguments.length?new Date(0,0,0,arguments[0],arguments[1],arguments[2]):2===arguments.length?new Date(0,0,0,arguments[0],arguments[1],0):new Date(0,0,0)}var o,r;e.HUI_TimePicker=function(){var t=this;t.container=e(".hustle-timepicker"),t.ui=t.container.find(".ui-timepicker"),t.viewport=t.ui.find(".ui-timepicker-viewport"),0===t.container.length&&(t.container=e("
      ").addClass("hustle-timepicker").addClass("ui-timepicker-hidden ui-helper-hidden").appendTo("body").removeClass("hustle-show"),t.ui=e("
      ").addClass("ui-timepicker").addClass("ui-widget ui-widget-content ui-menu").appendTo(t.container),t.viewport=e("
        ").addClass("ui-timepicker-viewport").appendTo(t.ui),e.fn.jquery>="1.4.2"&&t.ui.delegate("a","mouseenter.timepicker",(function(){t.activate(!1,e(this).parent())})).delegate("a","mouseleave.timepicker",(function(){t.deactivate(!1)})).delegate("a","click.timepicker",(function(n){n.preventDefault(),t.select(!1,e(this).parent())})))},e.HUI_TimePicker.count=0,e.HUI_TimePicker.instance=function(){return e.HUI_TimePicker._instance||(e.HUI_TimePicker._instance=new e.HUI_TimePicker),e.HUI_TimePicker._instance},e.HUI_TimePicker.prototype={keyCode:{ALT:18,BLOQ_MAYUS:20,CTRL:17,DOWN:40,END:35,ENTER:13,HOME:36,LEFT:37,NUMPAD_ENTER:108,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SHIFT:16,TAB:9,UP:38},_items:function(t,n){var i,o,r=e("
          "),a=null;for(-1===t.options.timeFormat.indexOf("m")&&t.options.interval%60!=0&&(t.options.interval=60*Math.max(Math.round(t.options.interval/60),1)),i=n?s(n):t.options.startTime?s(t.options.startTime):s(t.options.startHour,t.options.startMinutes),o=new Date(i.getTime()+864e5);i").addClass("ui-menu-item").appendTo(r),e("").text(e.fn.HUI_timepicker.formatTime(t.options.timeFormat,i)).appendTo(a),a.data("time-value",i)),i=new Date(i.getTime()+60*t.options.interval*1e3);return r.children()},_isValidTime:function(e,t){var n=null,i=null;return t=s(t),null!==e.options.minTime?n=s(e.options.minTime):null===e.options.minHour&&null===e.options.minMinutes||(n=s(e.options.minHour,e.options.minMinutes)),null!==e.options.maxTime?i=s(e.options.maxTime):null===e.options.maxHour&&null===e.options.maxMinutes||(i=s(e.options.maxHour,e.options.maxMinutes)),null!==n&&null!==i?t>=n&&t<=i:null!==n?t>=n:null===i||t<=i},_hasScroll:function(){var e=void 0!==this.ui.prop?"prop":"attr";return this.ui.height()=o&&n.ui.scrollTop(s+i-o+t.height())}n.active=t.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-item").end()}},deactivate:function(){var e=this;e.active&&(e.active.children("a").removeClass("ui-state-hover").removeAttr("id"),e.active=null)},next:function(e){return(this.closed()||this.instance===e)&&this._move(e,"next",".ui-menu-item:first"),e.element},previous:function(e){return(this.closed()||this.instance===e)&&this._move(e,"prev",".ui-menu-item:last"),e.element},first:function(e){return this.instance===e&&(this.active&&0===this.active.prevAll(".ui-menu-item").length)},last:function(e){return this.instance===e&&(this.active&&0===this.active.nextAll(".ui-menu-item").length)},selected:function(e){return this.instance===e&&this.active?this.active:null},open:function(i){var s=this,o=i.getTime(),r=i.options.dynamic&&o;if(!i.options.dropdown||i.options.hideDropdown)return i.element;switch(i.element.data("timepicker-event-namespace",Math.random()),s.container.insertAfter(i.element.closest(".hustle-layout")),i.element.closest(".sui-form-field").length?i.element.closest(".sui-form-field").append(s.container):s.container.insertAfter(i.element.closest(".hustle-layout")),e(n).bind("click.timepicker-"+i.element.data("timepicker-event-namespace"),(function(e){i.element.get(0)===e.target?i.element.data("timepicker-user-clicked-outside",!1):s.container.insertAfter(i.element.closest(".hustle-layout"))})),(i.rebuild||!i.items||r)&&(i.items=s._items(i,r?o:null)),(i.rebuild||s.instance!==i||r)&&(e.fn.jquery<"1.4.2"?(s.viewport.children().remove(),s.viewport.append(i.items),s.viewport.find("a").bind("mouseover.timepicker",(function(){s.activate(i,e(this).parent())})).bind("mouseout.timepicker",(function(){s.deactivate(i)})).bind("click.timepicker",(function(t){t.preventDefault(),s.select(i,e(this).parent())}))):(s.viewport.children().detach(),s.viewport.append(i.items))),i.rebuild=!1,s.container.removeClass("ui-timepicker-standard ui-timepicker-corners"),s.container.addClass("hustle-show"),e(n).trigger("hustle:module:displayed",s),i.options.theme){case"standard":s.container.addClass("ui-timepicker-standard");break;case"standard-rounded-corners":s.container.addClass("ui-timepicker-standard ui-timepicker-corners")}s.container.hasClass("ui-timepicker-no-scrollbar")||i.options.scrollbar||(s.container.addClass("ui-timepicker-no-scrollbar"),s.viewport.css({paddingRight:40}));s.container.outerHeight(),s.container.height(),i.options.zindex?i.options.zindex:i.element.offsetParent().css("z-index");var a=i.element.closest(".hustle-field"),l=a.position(),c=Math.max(n.documentElement.clientHeight,t.innerHeight||0);return s.container.css({top:l.top+i.element.outerHeight(),left:l.left}),s.container.addClass("hustle-show"),l=a.position(),s.container.css({width:i.element.outerWidth(),position:"absolute",zIndex:999999,left:l.left}),c-(a.offset().top-e(n).scrollTop())<200&&s.container.css({top:l.top-s.container.outerHeight()}),s.instance=i,o?i.items.each((function(){var t=e(this);return(e.fn.jquery<"1.4.2"?e.fn.HUI_timepicker.parseTime(t.find("a").text()):t.data("time-value")).getTime()!==o.getTime()||(s.activate(i,t),!1)})):s.deactivate(i),i.element},close:function(t){var i=this;return i.instance===t&&(i.container.removeClass("hustle-show"),i.ui.scrollTop(0)),e(n).unbind("click.timepicker-"+t.element.data("timepicker-event-namespace")),t.element},closed:function(){return this.ui.is(":hidden")},destroy:function(e){return this.close(e,!0),e.element.unbind(".timepicker").data("TimePicker",null)},parse:function(t,n){return e.fn.HUI_timepicker.parseTime(n)},format:function(t,n,i){return i=i||t.options.timeFormat,e.fn.HUI_timepicker.formatTime(i,n)},getTime:function(t){var n=e.fn.HUI_timepicker.parseTime(t.element.val());return n instanceof Date&&!this._isValidTime(t,n)?null:n instanceof Date&&t.selectedTime?t.format(n)===t.format(t.selectedTime)?t.selectedTime:n:n instanceof Date?n:null},setTime:function(t,n,i){var o=t.selectedTime;if("string"==typeof n&&(n=t.parse(n)),n&&n.getMinutes&&this._isValidTime(t,n)){if(n=s(n),t.selectedTime=n,t.element.val(t.format(n,t.options.timeFormat)),i)return t}else t.selectedTime=null;return null===o&&null===t.selectedTime||(t.element.trigger("time-change",[n]),e.isFunction(t.options.change)&&t.options.change.apply(t.element,[n])),t.element},option:function(t,n,i){if(void 0===i)return t.options[n];var s,o,r=t.getTime();"string"==typeof n?(s={})[n]=i:s=n,o=["minHour","minMinutes","minTime","maxHour","maxMinutes","maxTime","startHour","startMinutes","startTime","timeFormat","interval","dropdown"],e.each(s,(function(n){t.options[n]=s[n],t.rebuild=t.rebuild||e.inArray(n,o)>-1})),t.rebuild&&t.setTime(r)}},e.HUI_TimePicker.defaults={timeFormat:"hh:mm p",minHour:null,minMinutes:null,minTime:null,maxHour:null,maxMinutes:null,maxTime:null,startHour:null,startMinutes:null,startTime:null,interval:30,dynamic:!0,theme:"standard",zindex:null,dropdown:!0,scrollbar:!1,change:function(){}},e.HUI_TimePicker.methods={chainable:["next","previous","open","close","destroy","setTime"]},e.fn.HUI_timepicker=function(t){if("string"==typeof t){var n,i,s=Array.prototype.slice.call(arguments,1);return i=this[n="option"===t&&arguments.length>2||-1!==e.inArray(t,e.HUI_TimePicker.methods.chainable)?"each":"map"]((function(){var n=e(this).data("TimePicker");if("object"===_typeof(n))return n[t].apply(n,s)})),"map"===n&&1===this.length?e.makeArray(i).shift():"map"===n?e.makeArray(i):i}if(1===this.length&&this.data("TimePicker"))return this.data("TimePicker");var o=e.extend({},e.HUI_TimePicker.defaults,t);return this.each((function(){e.HUI_TimePicker.instance().register(this,o)}))},e.fn.HUI_timepicker.formatTime=function(e,t){var n=t.getHours(),s=n%12,o=t.getMinutes(),r=t.getSeconds(),a={hh:i((0===s?12:s).toString(),"0",2),HH:i(n.toString(),"0",2),mm:i(o.toString(),"0",2),ss:i(r.toString(),"0",2),h:0===s?12:s,H:n,m:o,s:r,p:n>11?"PM":"AM"},l=e,c="";for(c in a)a.hasOwnProperty(c)&&(l=l.replace(new RegExp(c,"g"),a[c]));return l=l.replace(new RegExp("a","g"),n>11?"pm":"am")},e.fn.HUI_timepicker.parseTime=(r=(o=[[/^(\d+)$/,"$1"],[/^:(\d)$/,"$10"],[/^:(\d+)/,"$1"],[/^(\d):([7-9])$/,"0$10$2"],[/^(\d):(\d\d)$/,"$1$2"],[/^(\d):(\d{1,})$/,"0$1$20"],[/^(\d\d):([7-9])$/,"$10$2"],[/^(\d\d):(\d)$/,"$1$20"],[/^(\d\d):(\d*)$/,"$1$2"],[/^(\d{3,}):(\d)$/,"$10$2"],[/^(\d{3,}):(\d{2,})/,"$1$2"],[/^(\d):(\d):(\d)$/,"0$10$20$3"],[/^(\d{1,2}):(\d):(\d\d)/,"$10$2$3"]]).length,function(t){var n,i,a=s(new Date),l=!1,c=!1,u=!1;if(void 0===t||!t.toLowerCase)return null;t=t.toLowerCase(),i=!(n=/a/.test(t))&&/p/.test(t),t=t.replace(/[^0-9:]/g,"").replace(/:+/g,":");for(var d=0;d5)&&(l=t.substr(0,2),c=t.substr(2,2),u=t.substr(4,2)),t.length>0&&t.length<5&&(t.length<3&&(c=0),u=0),!1!==l&&!1!==c&&!1!==u&&(l=parseInt(l,10),c=parseInt(c,10),u=parseInt(u,10),n&&12===l?l=0:i&&l<12&&(l+=12),l>24?t.length>=6?e.fn.HUI_timepicker.parseTime(t.substr(0,5)):e.fn.HUI_timepicker.parseTime(t+"0"+(n?"a":"")+(i?"p":"")):(a.setHours(l,c,u),a))})}()})),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.timepicker=function(t){var n=e(t);e(".hustle-ui").each((function(){var t=e(this),i=(t.data("id"),t.find(n));i.HUI_timepicker({timeFormat:""!==i.data("time-format")?i.data("time-format"):"h:mm p",interval:""!==i.data("time-interval")?i.data("time-interval"):60,minTime:"0",maxTime:"11:59pm",defaultTime:""!==i.data("time-default")?i.data("time-default"):null,startTime:"00:00",dynamic:!1,dropdown:!0===i.data("time-dropdown"),hideDropdown:!0===i.data("hide-dropdown"),scrollbar:!0===i.data("time-dropdown"),change:function(){""===i.val()?i.parent().removeClass("hustle-field-filled"):i.parent().addClass("hustle-field-filled")}})}))}}(jQuery),function(e){"use strict";"object"!==_typeof(window.HUI)&&(window.HUI={}),HUI.trapFocus=function(){var t,n,i=[];e('.hustle-show[role="dialog"]').each((function(){i.push("#"+this.id)})),i.length&&(t=i[i.length-1],(n=e(t).find("a[href], button, textarea, input, select").filter(":visible")).length&&n[0].focus(),e(t).on("keydown",(function(n){var i,s,o;(i=e(t).find("a[href], button, textarea, input, select").filter(":visible")).length&&(s=i[0],o=i[i.length-1],("Tab"===n.key||9===n.keyCode)&&(n.shiftKey?document.activeElement===s&&(o.focus(),n.preventDefault()):document.activeElement===o&&(s.focus(),n.preventDefault())))})))}}(jQuery);;