!function(t){var o=function(o,s){var i,e,n,r,a=!1,c=!1,f=!1,p={},l={to:"top",offset:0,effectsOffset:0,parent:!1,classes:{sticky:"sticky",stickyActive:"sticky-active",stickyEffects:"sticky-effects",spacer:"sticky-spacer"},isRTL:!1,handleScrollbarWidth:!1},d=function(t,o,s){var i={},e=t[0].style;s.forEach((function(t){i[t]=void 0!==e[t]?e[t]:""})),t.data("css-backup-"+o,i)},m=function(t,o){return t.data("css-backup-"+o)};const u=()=>{if(r=b(i,"width"),n=i.offset().left,e.isRTL){const t=e.handleScrollbarWidth?window.innerWidth:document.body.offsetWidth;n=Math.max(t-r-n,0)}};var h=function(){p.$spacer=i.clone().addClass(e.classes.spacer).css({visibility:"hidden",transition:"none",animation:"none"}),i.after(p.$spacer)},y=function(){p.$spacer.remove()},k=function(){d(i,"unsticky",["position","width","margin-top","margin-bottom","top","bottom","inset-inline-start"]);const t={position:"fixed",width:r,marginTop:0,marginBottom:0};t[e.to]=e.offset,t["top"===e.to?"bottom":"top"]="",n&&(t["inset-inline-start"]=n+"px"),i.css(t).addClass(e.classes.stickyActive)},v=function(){i.css(m(i,"unsticky")).removeClass(e.classes.stickyActive)},b=function(t,o,s){var i=getComputedStyle(t[0]),e=parseFloat(i[o]),n="height"===o?["top","bottom"]:["left","right"],r=[];return"border-box"!==i.boxSizing&&r.push("border","padding"),s&&r.push("margin"),r.forEach((function(t){n.forEach((function(o){e+=parseFloat(i[t+"-"+o])}))})),e},w=function(t){var o=p.$window.scrollTop(),s=b(t,"height"),i=innerHeight,e=t.offset().top-o,n=e-i;return{top:{fromTop:e,fromBottom:n},bottom:{fromTop:e+s,fromBottom:n+s}}},g=function(){v(),y(),a=!1,i.trigger("sticky:unstick")},$=function(){var t=w(i),o="top"===e.to;if(c){(o?t.top.fromTop>e.offset:t.bottom.fromBottom<-e.offset)&&(p.$parent.css(m(p.$parent,"childNotFollowing")),i.css(m(i,"notFollowing")),c=!1)}else{var s=w(p.$parent),a=getComputedStyle(p.$parent[0]),f=parseFloat(a[o?"borderBottomWidth":"borderTopWidth"]),l=o?s.bottom.fromTop-f:s.top.fromBottom+f;(o?l<=t.bottom.fromTop:l>=t.top.fromBottom)&&function(){d(p.$parent,"childNotFollowing",["position"]),p.$parent.css("position","relative"),d(i,"notFollowing",["position","inset-inline-start","top","bottom"]);const t={position:"absolute"};if(n=p.$spacer.position().left,e.isRTL){const t=i.parent().outerWidth(),o=p.$spacer.position().left;r=p.$spacer.outerWidth(),n=Math.max(t-r-o,0)}t["inset-inline-start"]=n+"px",t[e.to]="",t["top"===e.to?"bottom":"top"]=0,i.css(t),c=!0}()}},T=function(){var t,o=e.offset;if(a){var s=w(p.$spacer);t="top"===e.to?s.top.fromTop-o:-s.bottom.fromBottom-o,e.parent&&$(),t>0&&g()}else{var n=w(i);(t="top"===e.to?n.top.fromTop-o:-n.bottom.fromBottom-o)<=0&&(u(),h(),k(),a=!0,i.trigger("sticky:stick"),e.parent&&$())}!function(t){f&&-t<e.effectsOffset?(i.removeClass(e.classes.stickyEffects),f=!1):!f&&-t>=e.effectsOffset&&(i.addClass(e.classes.stickyEffects),f=!0)}(t)},B=function(){T()},C=function(){a&&(v(),y(),u(),h(),k(),e.parent&&(c=!1,$()))};this.destroy=function(){a&&g(),p.$window.off("scroll",B).off("resize",C),i.removeClass(e.classes.sticky)},e=jQuery.extend(!0,l,s),i=t(o).addClass(e.classes.sticky),p.$window=t(window),e.parent&&(p.$parent=i.parent(),"parent"!==e.parent&&(p.$parent=p.$parent.closest(e.parent))),p.$window.on({scroll:B,resize:C}),T()};t.fn.sticky=function(s){var i="string"==typeof s;return this.each((function(){var e=t(this);if(i){var n=e.data("sticky");if(!n)throw Error("Trying to perform the `"+s+"` method prior to initialization");if(!n[s])throw ReferenceError("Method `"+s+"` not found in sticky instance");n[s].apply(n,Array.prototype.slice.call(arguments,1)),"destroy"===s&&e.removeData("sticky")}else e.data("sticky",new o(this,s))})),this},window.Sticky=o}(jQuery);
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&"object"==typeof module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){function b(b){var i=".smartmenus_mouse";if(h||b)h&&b&&(a(document).off(i),h=!1);else{var j=!0,k=null,l={mousemove:function(b){var c={x:b.pageX,y:b.pageY,timeStamp:(new Date).getTime()};if(k){var d=Math.abs(k.x-c.x),g=Math.abs(k.y-c.y);if((d>0||g>0)&&d<=4&&g<=4&&c.timeStamp-k.timeStamp<=300&&(f=!0,j)){var h=a(b.target).closest("a");h.is("a")&&a.each(e,function(){if(a.contains(this.$root[0],h[0]))return this.itemEnter({currentTarget:h[0]}),!1}),j=!1}}k=c}};l[g?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut"]=function(a){c(a.originalEvent)&&(f=!1)},a(document).on(d(l,i)),h=!0}}function c(a){return!/^(4|mouse)$/.test(a.pointerType)}function d(a,b){b||(b="");var c={};for(var d in a)c[d.split(" ").join(b+" ")+b]=a[d];return c}var e=[],f=!1,g="ontouchstart"in window,h=!1,i=window.requestAnimationFrame||function(a){return setTimeout(a,1e3/60)},j=window.cancelAnimationFrame||function(a){clearTimeout(a)},k=!!a.fn.animate;return a.SmartMenus=function(b,c){this.$root=a(b),this.opts=c,this.rootId="",this.accessIdPrefix="",this.$subArrow=null,this.activatedItems=[],this.visibleSubMenus=[],this.showTimeout=0,this.hideTimeout=0,this.scrollTimeout=0,this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.idInc=0,this.$firstLink=null,this.$firstSub=null,this.disabled=!1,this.$disableOverlay=null,this.$touchScrollingSub=null,this.cssTransforms3d="perspective"in b.style||"webkitPerspective"in b.style,this.wasCollapsible=!1,this.init()},a.extend(a.SmartMenus,{hideAll:function(){a.each(e,function(){this.menuHideAll()})},destroy:function(){for(;e.length;)e[0].destroy();b(!0)},prototype:{init:function(c){var f=this;if(!c){e.push(this),this.rootId=((new Date).getTime()+Math.random()+"").replace(/\D/g,""),this.accessIdPrefix="sm-"+this.rootId+"-",this.$root.hasClass("sm-rtl")&&(this.opts.rightToLeftSubMenus=!0);var g=".smartmenus";this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).on(d({"mouseover focusin":a.proxy(this.rootOver,this),"mouseout focusout":a.proxy(this.rootOut,this),keydown:a.proxy(this.rootKeyDown,this)},g)).on(d({mouseenter:a.proxy(this.itemEnter,this),mouseleave:a.proxy(this.itemLeave,this),mousedown:a.proxy(this.itemDown,this),focus:a.proxy(this.itemFocus,this),blur:a.proxy(this.itemBlur,this),click:a.proxy(this.itemClick,this)},g),"a"),g+=this.rootId,this.opts.hideOnClick&&a(document).on(d({touchstart:a.proxy(this.docTouchStart,this),touchmove:a.proxy(this.docTouchMove,this),touchend:a.proxy(this.docTouchEnd,this),click:a.proxy(this.docClick,this)},g)),a(window).on(d({"resize orientationchange":a.proxy(this.winResize,this)},g)),this.opts.subIndicators&&(this.$subArrow=a("<span/>").addClass("sub-arrow"),this.opts.subIndicatorsText&&this.$subArrow.html(this.opts.subIndicatorsText)),b()}if(this.$firstSub=this.$root.find("ul").each(function(){f.menuInit(a(this))}).eq(0),this.$firstLink=this.$root.find("a").eq(0),this.opts.markCurrentItem){var h=/(index|default)\.[^#\?\/]*/i,i=/#.*/,j=window.location.href.replace(h,""),k=j.replace(i,"");this.$root.find("a:not(.mega-menu a)").each(function(){var b=this.href.replace(h,""),c=a(this);b!=j&&b!=k||(c.addClass("current"),f.opts.markCurrentTree&&c.parentsUntil("[data-smartmenus-id]","ul").each(function(){a(this).dataSM("parent-a").addClass("current")}))})}this.wasCollapsible=this.isCollapsible()},destroy:function(b){if(!b){var c=".smartmenus";this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").off(c),c+=this.rootId,a(document).off(c),a(window).off(c),this.opts.subIndicators&&(this.$subArrow=null)}this.menuHideAll();var d=this;this.$root.find("ul").each(function(){var b=a(this);b.dataSM("scroll-arrows")&&b.dataSM("scroll-arrows").remove(),b.dataSM("shown-before")&&((d.opts.subMenusMinWidth||d.opts.subMenusMaxWidth)&&b.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),b.dataSM("scroll-arrows")&&b.dataSM("scroll-arrows").remove(),b.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(b.attr("id")||"").indexOf(d.accessIdPrefix)&&b.removeAttr("id")}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded"),this.$root.find("a.has-submenu").each(function(){var b=a(this);0==b.attr("id").indexOf(d.accessIdPrefix)&&b.removeAttr("id")}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub"),this.opts.subIndicators&&this.$root.find("span.sub-arrow").remove(),this.opts.markCurrentItem&&this.$root.find("a.current").removeClass("current"),b||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),e.splice(a.inArray(this,e),1))},disable:function(b){if(!this.disabled){if(this.menuHideAll(),!b&&!this.opts.isPopup&&this.$root.is(":visible")){var c=this.$root.offset();this.$disableOverlay=a('<div class="sm-jquery-disable-overlay"/>').css({position:"absolute",top:c.top,left:c.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(!0),opacity:0}).appendTo(document.body)}this.disabled=!0}},docClick:function(b){return this.$touchScrollingSub?void(this.$touchScrollingSub=null):void((this.visibleSubMenus.length&&!a.contains(this.$root[0],b.target)||a(b.target).closest("a").length)&&this.menuHideAll())},docTouchEnd:function(b){if(this.lastTouch){if(this.visibleSubMenus.length&&(void 0===this.lastTouch.x2||this.lastTouch.x1==this.lastTouch.x2)&&(void 0===this.lastTouch.y2||this.lastTouch.y1==this.lastTouch.y2)&&(!this.lastTouch.target||!a.contains(this.$root[0],this.lastTouch.target))){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var c=this;this.hideTimeout=setTimeout(function(){c.menuHideAll()},350)}this.lastTouch=null}},docTouchMove:function(a){if(this.lastTouch){var b=a.originalEvent.touches[0];this.lastTouch.x2=b.pageX,this.lastTouch.y2=b.pageY}},docTouchStart:function(a){var b=a.originalEvent.touches[0];this.lastTouch={x1:b.pageX,y1:b.pageY,target:b.target}},enable:function(){this.disabled&&(this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),this.disabled=!1)},getClosestMenu:function(b){for(var c=a(b).closest("ul");c.dataSM("in-mega");)c=c.parent().closest("ul");return c[0]||null},getHeight:function(a){return this.getOffset(a,!0)},getOffset:function(a,b){var c;"none"==a.css("display")&&(c={position:a[0].style.position,visibility:a[0].style.visibility},a.css({position:"absolute",visibility:"hidden"}).show());var d=a[0].getBoundingClientRect&&a[0].getBoundingClientRect(),e=d&&(b?d.height||d.bottom-d.top:d.width||d.right-d.left);return e||0===e||(e=b?a[0].offsetHeight:a[0].offsetWidth),c&&a.hide().css(c),e},getStartZIndex:function(a){var b=parseInt(this[a?"$root":"$firstSub"].css("z-index"));return!a&&isNaN(b)&&(b=parseInt(this.$root.css("z-index"))),isNaN(b)?1:b},getTouchPoint:function(a){return a.touches&&a.touches[0]||a.changedTouches&&a.changedTouches[0]||a},getViewport:function(a){var b=a?"Height":"Width",c=document.documentElement["client"+b],d=window["inner"+b];return d&&(c=Math.min(c,d)),c},getViewportHeight:function(){return this.getViewport(!0)},getViewportWidth:function(){return this.getViewport()},getWidth:function(a){return this.getOffset(a)},handleEvents:function(){return!this.disabled&&this.isCSSOn()},handleItemEvents:function(a){return this.handleEvents()&&!this.isLinkInMegaMenu(a)},isCollapsible:function(){return"static"==this.$firstSub.css("position")},isCSSOn:function(){return"inline"!=this.$firstLink.css("display")},isFixed:function(){var b="fixed"==this.$root.css("position");return b||this.$root.parentsUntil("body").each(function(){if("fixed"==a(this).css("position"))return b=!0,!1}),b},isLinkInMegaMenu:function(b){return a(this.getClosestMenu(b[0])).hasClass("mega-menu")},isTouchMode:function(){return!f||this.opts.noMouseOver||this.isCollapsible()},itemActivate:function(b,c){var d=b.closest("ul"),e=d.dataSM("level");if(e>1&&(!this.activatedItems[e-2]||this.activatedItems[e-2][0]!=d.dataSM("parent-a")[0])){var f=this;a(d.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(d).each(function(){f.itemActivate(a(this).dataSM("parent-a"))})}if(this.isCollapsible()&&!c||this.menuHideSubMenus(this.activatedItems[e-1]&&this.activatedItems[e-1][0]==b[0]?e:e-1),this.activatedItems[e-1]=b,this.$root.triggerHandler("activate.smapi",b[0])!==!1){var g=b.dataSM("sub");g&&(this.isTouchMode()||!this.opts.showOnClick||this.clickActivated)&&this.menuShow(g)}},itemBlur:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&this.$root.triggerHandler("blur.smapi",c[0])},itemClick:function(b){var c=a(b.currentTarget);if(this.handleItemEvents(c)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==c.closest("ul")[0])return this.$touchScrollingSub=null,b.stopPropagation(),!1;if(this.$root.triggerHandler("click.smapi",c[0])===!1)return!1;var d=c.dataSM("sub"),e=!!d&&2==d.dataSM("level");if(d){var f=a(b.target).is(".sub-arrow"),g=this.isCollapsible(),h=/toggle$/.test(this.opts.collapsibleBehavior),i=/link$/.test(this.opts.collapsibleBehavior),j=/^accordion/.test(this.opts.collapsibleBehavior);if(d.is(":visible")){if(!g&&this.opts.showOnClick&&e)return this.menuHide(d),this.clickActivated=!1,this.focusActivated=!1,!1;if(g&&(h||f))return this.itemActivate(c,j),this.menuHide(d),!1}else if((!i||!g||f)&&(!g&&this.opts.showOnClick&&e&&(this.clickActivated=!0),this.itemActivate(c,j),d.is(":visible")))return this.focusActivated=!0,!1}return!(!g&&this.opts.showOnClick&&e||c.hasClass("disabled")||this.$root.triggerHandler("select.smapi",c[0])===!1)&&void 0}},itemDown:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&c.dataSM("mousedown",!0)},itemEnter:function(b){var c=a(b.currentTarget);if(this.handleItemEvents(c)){if(!this.isTouchMode()){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);var d=this;this.showTimeout=setTimeout(function(){d.itemActivate(c)},this.opts.showOnClick&&1==c.closest("ul").dataSM("level")?1:this.opts.showTimeout)}this.$root.triggerHandler("mouseenter.smapi",c[0])}},itemFocus:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&(!this.focusActivated||this.isTouchMode()&&c.dataSM("mousedown")||this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0]==c[0]||this.itemActivate(c,!0),this.$root.triggerHandler("focus.smapi",c[0]))},itemLeave:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&(this.isTouchMode()||(c[0].blur(),this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0)),c.removeDataSM("mousedown"),this.$root.triggerHandler("mouseleave.smapi",c[0]))},menuHide:function(b){if(this.$root.triggerHandler("beforehide.smapi",b[0])!==!1&&(k&&b.stop(!0,!0),"none"!=b.css("display"))){var c=function(){b.css("z-index","")};this.isCollapsible()?k&&this.opts.collapsibleHideFunction?this.opts.collapsibleHideFunction.call(this,b,c):b.hide(this.opts.collapsibleHideDuration,c):k&&this.opts.hideFunction?this.opts.hideFunction.call(this,b,c):b.hide(this.opts.hideDuration,c),b.dataSM("scroll")&&(this.menuScrollStop(b),b.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).off(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),b.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false"),b.attr({"aria-expanded":"false","aria-hidden":"true"});var d=b.dataSM("level");this.activatedItems.splice(d-1,1),this.visibleSubMenus.splice(a.inArray(b,this.visibleSubMenus),1),this.$root.triggerHandler("hide.smapi",b[0])}},menuHideAll:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);for(var a=this.opts.isPopup?1:0,b=this.visibleSubMenus.length-1;b>=a;b--)this.menuHide(this.visibleSubMenus[b]);this.opts.isPopup&&(k&&this.$root.stop(!0,!0),this.$root.is(":visible")&&(k&&this.opts.hideFunction?this.opts.hideFunction.call(this,this.$root):this.$root.hide(this.opts.hideDuration))),this.activatedItems=[],this.visibleSubMenus=[],this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.$root.triggerHandler("hideAll.smapi")},menuHideSubMenus:function(a){for(var b=this.activatedItems.length-1;b>=a;b--){var c=this.activatedItems[b].dataSM("sub");c&&this.menuHide(c)}},menuInit:function(a){if(!a.dataSM("in-mega")){a.hasClass("mega-menu")&&a.find("ul").dataSM("in-mega",!0);for(var b=2,c=a[0];(c=c.parentNode.parentNode)!=this.$root[0];)b++;var d=a.prevAll("a").eq(-1);d.length||(d=a.prevAll().find("a").eq(-1)),d.addClass("has-submenu").dataSM("sub",a),a.dataSM("parent-a",d).dataSM("level",b).parent().dataSM("sub",a);var e=d.attr("id")||this.accessIdPrefix+ ++this.idInc,f=a.attr("id")||this.accessIdPrefix+ ++this.idInc;d.attr({id:e,"aria-haspopup":"true","aria-controls":f,"aria-expanded":"false"}),a.attr({id:f,role:"group","aria-hidden":"true","aria-labelledby":e,"aria-expanded":"false"}),this.opts.subIndicators&&d[this.opts.subIndicatorsPos](this.$subArrow.clone())}},menuPosition:function(b){var c,e,f=b.dataSM("parent-a"),h=f.closest("li"),i=h.parent(),j=b.dataSM("level"),k=this.getWidth(b),l=this.getHeight(b),m=f.offset(),n=m.left,o=m.top,p=this.getWidth(f),q=this.getHeight(f),r=a(window),s=r.scrollLeft(),t=r.scrollTop(),u=this.getViewportWidth(),v=this.getViewportHeight(),w=i.parent().is("[data-sm-horizontal-sub]")||2==j&&!i.hasClass("sm-vertical"),x=this.opts.rightToLeftSubMenus&&!h.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&h.is("[data-sm-reverse]"),y=2==j?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,z=2==j?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY;if(w?(c=x?p-k-y:y,e=this.opts.bottomToTopSubMenus?-l-z:q+z):(c=x?y-k:p-y,e=this.opts.bottomToTopSubMenus?q-z-l:z),this.opts.keepInViewport){var A=n+c,B=o+e;if(x&&A<s?c=w?s-A+c:p-y:!x&&A+k>s+u&&(c=w?s+u-k-A+c:y-k),w||(l<v&&B+l>t+v?e+=t+v-l-B:(l>=v||B<t)&&(e+=t-B)),w&&(B+l>t+v+.49||B<t)||!w&&l>v+.49){var C=this;b.dataSM("scroll-arrows")||b.dataSM("scroll-arrows",a([a('<span class="scroll-up"><span class="scroll-up-arrow"></span></span>')[0],a('<span class="scroll-down"><span class="scroll-down-arrow"></span></span>')[0]]).on({mouseenter:function(){b.dataSM("scroll").up=a(this).hasClass("scroll-up"),C.menuScroll(b)},mouseleave:function(a){C.menuScrollStop(b),C.menuScrollOut(b,a)},"mousewheel DOMMouseScroll":function(a){a.preventDefault()}}).insertAfter(b));var D=".smartmenus_scroll";if(b.dataSM("scroll",{y:this.cssTransforms3d?0:e-q,step:1,itemH:q,subH:l,arrowDownH:this.getHeight(b.dataSM("scroll-arrows").eq(1))}).on(d({mouseover:function(a){C.menuScrollOver(b,a)},mouseout:function(a){C.menuScrollOut(b,a)},"mousewheel DOMMouseScroll":function(a){C.menuScrollMousewheel(b,a)}},D)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:c+(parseInt(b.css("border-left-width"))||0),width:k-(parseInt(b.css("border-left-width"))||0)-(parseInt(b.css("border-right-width"))||0),zIndex:b.css("z-index")}).eq(w&&this.opts.bottomToTopSubMenus?0:1).show(),this.isFixed()){var E={};E[g?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp"]=function(a){C.menuScrollTouch(b,a)},b.css({"touch-action":"none","-ms-touch-action":"none"}).on(d(E,D))}}}b.css({top:"auto",left:"0",marginLeft:c,marginTop:e-q})},menuScroll:function(a,b,c){var d,e=a.dataSM("scroll"),g=a.dataSM("scroll-arrows"),h=e.up?e.upEnd:e.downEnd;if(!b&&e.momentum){if(e.momentum*=.92,d=e.momentum,d<.5)return void this.menuScrollStop(a)}else d=c||(b||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(e.step));var j=a.dataSM("level");if(this.activatedItems[j-1]&&this.activatedItems[j-1].dataSM("sub")&&this.activatedItems[j-1].dataSM("sub").is(":visible")&&this.menuHideSubMenus(j-1),e.y=e.up&&h<=e.y||!e.up&&h>=e.y?e.y:Math.abs(h-e.y)>d?e.y+(e.up?d:-d):h,a.css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+e.y+"px, 0)",transform:"translate3d(0, "+e.y+"px, 0)"}:{marginTop:e.y}),f&&(e.up&&e.y>e.downEnd||!e.up&&e.y<e.upEnd)&&g.eq(e.up?1:0).show(),e.y==h)f&&g.eq(e.up?0:1).hide(),this.menuScrollStop(a);else if(!b){this.opts.scrollAccelerate&&e.step<this.opts.scrollStep&&(e.step+=.2);var k=this;this.scrollTimeout=i(function(){k.menuScroll(a)})}},menuScrollMousewheel:function(a,b){if(this.getClosestMenu(b.target)==a[0]){b=b.originalEvent;var c=(b.wheelDelta||-b.detail)>0;a.dataSM("scroll-arrows").eq(c?0:1).is(":visible")&&(a.dataSM("scroll").up=c,this.menuScroll(a,!0))}b.preventDefault()},menuScrollOut:function(b,c){f&&(/^scroll-(up|down)/.test((c.relatedTarget||"").className)||(b[0]==c.relatedTarget||a.contains(b[0],c.relatedTarget))&&this.getClosestMenu(c.relatedTarget)==b[0]||b.dataSM("scroll-arrows").css("visibility","hidden"))},menuScrollOver:function(b,c){if(f&&!/^scroll-(up|down)/.test(c.target.className)&&this.getClosestMenu(c.target)==b[0]){this.menuScrollRefreshData(b);var d=b.dataSM("scroll"),e=a(window).scrollTop()-b.dataSM("parent-a").offset().top-d.itemH;b.dataSM("scroll-arrows").eq(0).css("margin-top",e).end().eq(1).css("margin-top",e+this.getViewportHeight()-d.arrowDownH).end().css("visibility","visible")}},menuScrollRefreshData:function(b){var c=b.dataSM("scroll"),d=a(window).scrollTop()-b.dataSM("parent-a").offset().top-c.itemH;this.cssTransforms3d&&(d=-(parseFloat(b.css("margin-top"))-d)),a.extend(c,{upEnd:d,downEnd:d+this.getViewportHeight()-c.subH})},menuScrollStop:function(a){if(this.scrollTimeout)return j(this.scrollTimeout),this.scrollTimeout=0,a.dataSM("scroll").step=1,!0},menuScrollTouch:function(b,d){if(d=d.originalEvent,c(d)){var e=this.getTouchPoint(d);if(this.getClosestMenu(e.target)==b[0]){var f=b.dataSM("scroll");if(/(start|down)$/i.test(d.type))this.menuScrollStop(b)?(d.preventDefault(),this.$touchScrollingSub=b):this.$touchScrollingSub=null,this.menuScrollRefreshData(b),a.extend(f,{touchStartY:e.pageY,touchStartTime:d.timeStamp});else if(/move$/i.test(d.type)){var g=void 0!==f.touchY?f.touchY:f.touchStartY;if(void 0!==g&&g!=e.pageY){this.$touchScrollingSub=b;var h=g<e.pageY;void 0!==f.up&&f.up!=h&&a.extend(f,{touchStartY:e.pageY,touchStartTime:d.timeStamp}),a.extend(f,{up:h,touchY:e.pageY}),this.menuScroll(b,!0,Math.abs(e.pageY-g))}d.preventDefault()}else void 0!==f.touchY&&((f.momentum=15*Math.pow(Math.abs(e.pageY-f.touchStartY)/(d.timeStamp-f.touchStartTime),2))&&(this.menuScrollStop(b),this.menuScroll(b),d.preventDefault()),delete f.touchY)}}},menuShow:function(a){if((a.dataSM("beforefirstshowfired")||(a.dataSM("beforefirstshowfired",!0),this.$root.triggerHandler("beforefirstshow.smapi",a[0])!==!1))&&this.$root.triggerHandler("beforeshow.smapi",a[0])!==!1&&(a.dataSM("shown-before",!0),k&&a.stop(!0,!0),!a.is(":visible"))){var b=a.dataSM("parent-a"),c=this.isCollapsible();if((this.opts.keepHighlighted||c)&&b.addClass("highlighted"),c)a.removeClass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""});else{if(a.css("z-index",this.zIndexInc=(this.zIndexInc||this.getStartZIndex())+1),(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth)&&(a.css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap"),this.opts.subMenusMinWidth&&a.css("min-width",this.opts.subMenusMinWidth),this.opts.subMenusMaxWidth)){var d=this.getWidth(a);a.css("max-width",this.opts.subMenusMaxWidth),d>this.getWidth(a)&&a.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth)}this.menuPosition(a)}var e=function(){a.css("overflow","")};c?k&&this.opts.collapsibleShowFunction?this.opts.collapsibleShowFunction.call(this,a,e):a.show(this.opts.collapsibleShowDuration,e):k&&this.opts.showFunction?this.opts.showFunction.call(this,a,e):a.show(this.opts.showDuration,e),b.attr("aria-expanded","true"),a.attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(a),this.$root.triggerHandler("show.smapi",a[0])}},popupHide:function(a){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var b=this;this.hideTimeout=setTimeout(function(){b.menuHideAll()},a?1:this.opts.hideTimeout)},popupShow:function(a,b){if(!this.opts.isPopup)return void alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.');if(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.$root.dataSM("shown-before",!0),k&&this.$root.stop(!0,!0),!this.$root.is(":visible")){this.$root.css({left:a,top:b});var c=this,d=function(){c.$root.css("overflow","")};k&&this.opts.showFunction?this.opts.showFunction.call(this,this.$root,d):this.$root.show(this.opts.showDuration,d),this.visibleSubMenus[0]=this.$root}},refresh:function(){this.destroy(!0),this.init(!0)},rootKeyDown:function(b){if(this.handleEvents())switch(b.keyCode){case 27:var c=this.activatedItems[0];if(c){this.menuHideAll(),c[0].focus();var d=c.dataSM("sub");d&&this.menuHide(d)}break;case 32:var e=a(b.target);if(e.is("a")&&this.handleItemEvents(e)){var d=e.dataSM("sub");d&&!d.is(":visible")&&(this.itemClick({currentTarget:b.target}),b.preventDefault())}}},rootOut:function(a){if(this.handleEvents()&&!this.isTouchMode()&&a.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),!this.opts.showOnClick||!this.opts.hideOnClick)){var b=this;this.hideTimeout=setTimeout(function(){b.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(a){this.handleEvents()&&!this.isTouchMode()&&a.target!=this.$root[0]&&this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},winResize:function(a){if(this.handleEvents()){if(!("onorientationchange"in window)||"orientationchange"==a.type){var b=this.isCollapsible();this.wasCollapsible&&b||(this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0].blur(),this.menuHideAll()),this.wasCollapsible=b}}else if(this.$disableOverlay){var c=this.$root.offset();this.$disableOverlay.css({top:c.top,left:c.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()})}}}}),a.fn.dataSM=function(a,b){return b?this.data(a+"_smartmenus",b):this.data(a+"_smartmenus")},a.fn.removeDataSM=function(a){return this.removeData(a+"_smartmenus")},a.fn.smartmenus=function(b){if("string"==typeof b){var c=arguments,d=b;return Array.prototype.shift.call(c),this.each(function(){var b=a(this).data("smartmenus");b&&b[d]&&b[d].apply(b,c)})}return this.each(function(){var c=a(this).data("sm-options")||null;c&&"object"!=typeof c&&(c=null,alert('ERROR\n\nSmartMenus jQuery init:\nThe value of the "data-sm-options" attribute must be valid JSON.')),c&&a.each(["showFunction","hideFunction","collapsibleShowFunction","collapsibleHideFunction"],function(){this in c&&delete c[this]}),new a.SmartMenus(this,a.extend({},a.fn.smartmenus.defaults,b,c))})},a.fn.smartmenus.defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"20em",subIndicators:!0,subIndicatorsPos:"append",subIndicatorsText:"",scrollStep:30,scrollAccelerate:!0,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(a,b){a.fadeOut(200,b)},collapsibleShowDuration:0,collapsibleShowFunction:function(a,b){a.slideDown(200,b)},collapsibleHideDuration:0,collapsibleHideFunction:function(a,b){a.slideUp(200,b)},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,collapsibleBehavior:"default"},a});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../ie","../version","../widget"],e):e(jQuery)}(function(o){"use strict";var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.13.3",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){var t,i,s;if(!n)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),i=1===(this._mouseDownEvent=e).which,s=!("string"!=typeof(t=this).options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length,i&&!s&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0)),!0},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../keycode","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.slider",o.ui.mouse,{version:"1.13.3",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t=this.options,i=this.element.find(".ui-slider-handle"),s=[],a=t.values&&t.values.length||1;for(i.length>a&&(i.slice(a).remove(),i=i.slice(0,a)),e=i.length;e<a;e++)s.push("<span tabindex='0'></span>");this.handles=i.add(o(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){o(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:Array.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=o("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,a,n,t,h,l=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-l.values(e));(t<s||s===t&&(e===l._lastChangedValue||l.values(e)===u.min))&&(s=t,a=o(this),n=e)}),!1!==this._start(e,n))&&(this._mouseSliding=!0,this._handleIndex=n,this._addClass(a,null,"ui-state-active"),a.trigger("focus"),t=a.offset(),h=!o(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=h?{left:0,top:0}:{left:e.pageX-t.left-a.width()/2,top:e.pageY-t.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,n,i),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},t=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,t),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,e="horizontal"===this.orientation?(t=this.elementSize.width,e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),e=e/t;return(e=1<e?1:e)<0&&(e=0),"vertical"===this.orientation&&(e=1-e),t=this._valueMax()-this._valueMin(),e=this._valueMin()+e*t,this._trimAlignValue(e)},_uiHash:function(e,t,i){var s={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==t?t:this.values(e),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var s,a=this.value(),n=this.values();this._hasMultipleValues()&&(s=this.values(t?0:1),a=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(s,i):Math.max(s,i)),n[t]=i),i!==a&&!1!==this._trigger("slide",e,this._uiHash(t,i,n))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0)},values:function(e,t){var i,s,a;if(1<arguments.length)this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),this._change(null,e);else{if(!arguments.length)return this._values();if(!Array.isArray(e))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,s=e,a=0;a<i.length;a+=1)i[a]=this._trimAlignValue(s[a]),this._change(null,a);this._refreshValue()}},_setOption:function(e,t){var i,s=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(s=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,i;if(arguments.length)return e=this.options.values[e],this._trimAlignValue(e);if(this._hasMultipleValues()){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(e){var t,i;return e<=this._valueMin()?this._valueMin():e>=this._valueMax()?this._valueMax():(t=0<this.options.step?this.options.step:1,i=e-(e=(e-this._valueMin())%t),2*Math.abs(e)>=t&&(i+=0<e?t:-t),parseFloat(i.toFixed(5)))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;(e=Math.round((e-t)/i)*i+t)>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return e=null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var e=e.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,e,s,a,n=this.options.range,h=this.options,l=this,u=!this._animateOff&&h.animate,r={};this._hasMultipleValues()?this.handles.each(function(e){i=(l.values(e)-l._valueMin())/(l._valueMax()-l._valueMin())*100,r["horizontal"===l.orientation?"left":"bottom"]=i+"%",o(this).stop(1,1)[u?"animate":"css"](r,h.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===e&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:h.animate})):(0===e&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:h.animate}))),t=i}):(e=this.value(),s=this._valueMin(),a=this._valueMax(),i=a!==s?(e-s)/(a-s)*100:0,r["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](r,h.animate),"min"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},h.animate),"max"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-i+"%"},h.animate),"min"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},h.animate),"max"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-i+"%"},h.animate))},_handleEvents:{keydown:function(e){var t,i,s,a=o(e.target).data("ui-slider-handle-index");switch(e.keyCode){case o.ui.keyCode.HOME:case o.ui.keyCode.END:case o.ui.keyCode.PAGE_UP:case o.ui.keyCode.PAGE_DOWN:case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(e.preventDefault(),this._keySliding||(this._keySliding=!0,this._addClass(o(e.target),null,"ui-state-active"),!1!==this._start(e,a)))break;return}switch(s=this.options.step,t=i=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case o.ui.keyCode.HOME:i=this._valueMin();break;case o.ui.keyCode.END:i=this._valueMax();break;case o.ui.keyCode.PAGE_UP:i=this._trimAlignValue(t+(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(t-(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:if(t===this._valueMax())return;i=this._trimAlignValue(t+s);break;case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(t===this._valueMin())return;i=this._trimAlignValue(t-s)}this._slide(e,a,i)},keyup:function(e){var t=o(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,t),this._change(e,t),this._removeClass(o(e.target),null,"ui-state-active"))}}})});
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(e,t,r){"use strict";var n=e("./init"),a={init:function(e){this.get=n(e),e&&e.callback&&"function"==typeof e.callback&&e.callback(this.get)}};t.exports=a},{"./init":6}],2:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/utils"),i={containers:{current:"sbjs_current",current_extra:"sbjs_current_add",first:"sbjs_first",first_extra:"sbjs_first_add",session:"sbjs_session",udata:"sbjs_udata",promocode:"sbjs_promo"},service:{migrations:"sbjs_migrations"},delimiter:"|||",aliases:{main:{type:"typ",source:"src",medium:"mdm",campaign:"cmp",content:"cnt",term:"trm",id:"id",platform:"plt",format:"fmt",tactic:"tct"},extra:{fire_date:"fd",entrance_point:"ep",referer:"rf"},session:{pages_seen:"pgs",current_page:"cpg"},udata:{visits:"vst",ip:"uip",agent:"uag"},promo:"code"},pack:{main:function(e){return i.aliases.main.type+"="+e.type+i.delimiter+i.aliases.main.source+"="+e.source+i.delimiter+i.aliases.main.medium+"="+e.medium+i.delimiter+i.aliases.main.campaign+"="+e.campaign+i.delimiter+i.aliases.main.content+"="+e.content+i.delimiter+i.aliases.main.term+"="+e.term+i.delimiter+i.aliases.main.id+"="+e.id+i.delimiter+i.aliases.main.platform+"="+e.platform+i.delimiter+i.aliases.main.format+"="+e.format+i.delimiter+i.aliases.main.tactic+"="+e.tactic},extra:function(e){return i.aliases.extra.fire_date+"="+a.setDate(new Date,e)+i.delimiter+i.aliases.extra.entrance_point+"="+document.location.href+i.delimiter+i.aliases.extra.referer+"="+(document.referrer||n.none)},user:function(e,t){return i.aliases.udata.visits+"="+e+i.delimiter+i.aliases.udata.ip+"="+t+i.delimiter+i.aliases.udata.agent+"="+navigator.userAgent},session:function(e){return i.aliases.session.pages_seen+"="+e+i.delimiter+i.aliases.session.current_page+"="+document.location.href},promo:function(e){return i.aliases.promo+"="+a.setLeadingZeroToInt(a.randomInt(e.min,e.max),e.max.toString().length)}}};t.exports=i},{"./helpers/utils":5,"./terms":9}],3:[function(e,t,r){"use strict";var n=e("../data").delimiter;t.exports={useBase64:!1,setBase64Flag:function(e){this.useBase64=e},encodeData:function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\~/g,"%7E").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},decodeData:function(e){try{return decodeURIComponent(e).replace(/\%21/g,"!").replace(/\%7E/g,"~").replace(/\%2A/g,"*").replace(/\%27/g,"'").replace(/\%28/g,"(").replace(/\%29/g,")")}catch(t){try{return unescape(e)}catch(r){return""}}},set:function(e,t,r,n,a){var i,s;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),i="; expires="+o.toGMTString()}else i="";s=n&&!a?";domain=."+n:"";var c=this.encodeData(t);this.useBase64&&(c=btoa(c).replace(/=+$/,"")),document.cookie=this.encodeData(e)+"="+c+i+s+"; path=/"},get:function(e){for(var t=this.encodeData(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t)){var i=a.substring(t.length,a.length);if(/^[A-Za-z0-9+/]+$/.test(i))try{i=atob(i.padEnd(4*Math.ceil(i.length/4),"="))}catch(s){}return this.decodeData(i)}}return null},destroy:function(e,t,r){this.set(e,"",-1,t,r)},parse:function(e){var t=[],r={};if("string"==typeof e)t.push(e);else for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);for(var i=0;i<t.length;i++){var s;r[this.unsbjs(t[i])]={},s=this.get(t[i])?this.get(t[i]).split(n):[];for(var o=0;o<s.length;o++){var c=s[o].split("="),u=c.splice(0,1);u.push(c.join("=")),r[this.unsbjs(t[i])][u[0]]=this.decodeData(u[1])}}return r},unsbjs:function(e){return e.replace("sbjs_","")}}},{"../data":2}],4:[function(e,t,r){"use strict";t.exports={parse:function(e){for(var t=this.parseOptions,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},a=14;a--;)n[t.key[a]]=r[a]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,a){r&&(n[t.q.name][r]=a)}),n},parseOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(e){for(var t={},r=(e||window.location.search.substring(1)).split("&"),n=0;n<r.length;n++){var a=r[n].split("=");if("undefined"==typeof t[a[0]])t[a[0]]=a[1];else if("string"==typeof t[a[0]]){var i=[t[a[0]],a[1]];t[a[0]]=i}else t[a[0]].push(a[1])}return t},getHost:function(e){return this.parse(e).host.replace("www.","")}}},{}],5:[function(e,t,r){"use strict";t.exports={escapeRegexp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},setDate:function(e,t){var r=e.getTimezoneOffset()/60,n=e.getHours(),a=t||0===t?t:-r;return e.setHours(n+r+a),e.getFullYear()+"-"+this.setLeadingZeroToInt(e.getMonth()+1,2)+"-"+this.setLeadingZeroToInt(e.getDate(),2)+" "+this.setLeadingZeroToInt(e.getHours(),2)+":"+this.setLeadingZeroToInt(e.getMinutes(),2)+":"+this.setLeadingZeroToInt(e.getSeconds(),2)},setLeadingZeroToInt:function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},randomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}}},{}],6:[function(e,t,r){"use strict";var n=e("./data"),a=e("./terms"),i=e("./helpers/cookies"),s=e("./helpers/uri"),o=e("./helpers/utils"),c=e("./params"),u=e("./migrations");t.exports=function(e){var t,r,p,f,m,d,l,g,h,y,_,v,b,x=c.fetch(e),k=s.getParam(),w=x.domain.host,q=x.domain.isolate,I=x.lifetime;function j(e){switch(e){case a.traffic.utm:t=a.traffic.utm,r="undefined"!=typeof k.utm_source?k.utm_source:"undefined"!=typeof k.gclid?"google":"undefined"!=typeof k.yclid?"yandex":a.none,p="undefined"!=typeof k.utm_medium?k.utm_medium:"undefined"!=typeof k.gclid?"cpc":"undefined"!=typeof k.yclid?"cpc":a.none,f="undefined"!=typeof k.utm_campaign?k.utm_campaign:"undefined"!=typeof k[x.campaign_param]?k[x.campaign_param]:"undefined"!=typeof k.gclid?"google_cpc":"undefined"!=typeof k.yclid?"yandex_cpc":a.none,m="undefined"!=typeof k.utm_content?k.utm_content:"undefined"!=typeof k[x.content_param]?k[x.content_param]:a.none,l=k.utm_id||a.none,g=k.utm_source_platform||a.none,h=k.utm_creative_format||a.none,y=k.utm_marketing_tactic||a.none,d="undefined"!=typeof k.utm_term?k.utm_term:"undefined"!=typeof k[x.term_param]?k[x.term_param]:function(){var e=document.referrer;if(k.utm_term)return k.utm_term;if(!(e&&s.parse(e).host&&s.parse(e).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)))return!1;try{return s.getParam(s.parse(document.referrer).query).text}catch(t){return!1}}()||a.none;break;case a.traffic.organic:t=a.traffic.organic,r=r||s.getHost(document.referrer),p=a.referer.organic,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.referral:t=a.traffic.referral,r=r||s.getHost(document.referrer),p=p||a.referer.referral,f=a.none,m=s.parse(document.referrer).path,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.typein:t=a.traffic.typein,r=x.typein_attributes.source,p=x.typein_attributes.medium,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;default:t=a.oops,r=a.oops,p=a.oops,f=a.oops,m=a.oops,d=a.oops,l=a.oops,g=a.oops,h=a.oops,y=a.oops}var i={type:t,source:r,medium:p,campaign:f,content:m,term:d,id:l,platform:g,format:h,tactic:y};return n.pack.main(i)}function R(e){var t=document.referrer;switch(e){case a.traffic.organic:return!!t&&H(t)&&function(e){var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp("yandex")+"\\..{2,9}$"),n=new RegExp(".*"+o.escapeRegexp("text")+"=.*"),a=new RegExp("^(?:www\\.)?"+o.escapeRegexp("google")+"\\..{2,9}$");if(s.parse(e).query&&s.parse(e).host.match(t)&&s.parse(e).query.match(n))return r="yandex",!0;if(s.parse(e).host.match(a))return r="google",!0;if(!s.parse(e).query)return!1;for(var i=0;i<x.organics.length;i++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.organics[i].host)+"$","i"))&&s.parse(e).query.match(new RegExp(".*"+o.escapeRegexp(x.organics[i].param)+"=.*","i")))return r=x.organics[i].display||x.organics[i].host,!0;if(i+1===x.organics.length)return!1}}(t);case a.traffic.referral:return!!t&&H(t)&&function(e){if(!(x.referrals.length>0))return r=s.getHost(e),!0;for(var t=0;t<x.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.referrals[t].host)+"$","i")))return r=x.referrals[t].display||x.referrals[t].host,p=x.referrals[t].medium||a.referer.referral,!0;if(t+1===x.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function H(e){if(x.domain){if(q)return s.getHost(e)!==s.getHost(w);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(w)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function D(){i.set(n.containers.current_extra,n.pack.extra(x.timezone_offset),I,w,q),i.get(n.containers.first_extra)||i.set(n.containers.first_extra,n.pack.extra(x.timezone_offset),I,w,q)}return i.setBase64Flag(x.base64),u.go(I,w,q),i.set(n.containers.current,function(){var e;if("undefined"!=typeof k.utm_source||"undefined"!=typeof k.utm_medium||"undefined"!=typeof k.utm_campaign||"undefined"!=typeof k.utm_content||"undefined"!=typeof k.utm_term||"undefined"!=typeof k.utm_id||"undefined"!=typeof k.utm_source_platform||"undefined"!=typeof k.utm_creative_format||"undefined"!=typeof k.utm_marketing_tactic||"undefined"!=typeof k.gclid||"undefined"!=typeof k.yclid||"undefined"!=typeof k[x.campaign_param]||"undefined"!=typeof k[x.term_param]||"undefined"!=typeof k[x.content_param])D(),e=j(a.traffic.utm);else if(R(a.traffic.organic))D(),e=j(a.traffic.organic);else if(!i.get(n.containers.session)&&R(a.traffic.referral))D(),e=j(a.traffic.referral);else{if(i.get(n.containers.first)||i.get(n.containers.current))return i.get(n.containers.current);D(),e=j(a.traffic.typein)}return e}(),I,w,q),i.get(n.containers.first)||i.set(n.containers.first,i.get(n.containers.current),I,w,q),i.get(n.containers.udata)?(_=parseInt(i.parse(n.containers.udata)[i.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,_=i.get(n.containers.session)?_:_+1,v=n.pack.user(_,x.user_ip)):(_=1,v=n.pack.user(_,x.user_ip)),i.set(n.containers.udata,v,I,w,q),i.get(n.containers.session)?(b=parseInt(i.parse(n.containers.session)[i.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,b+=1):b=1,i.set(n.containers.session,n.pack.session(b),x.session_length,w,q),x.promocode&&!i.get(n.containers.promocode)&&i.set(n.containers.promocode,n.pack.promo(x.promocode),I,w,q),i.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),a=e("./helpers/cookies");t.exports={go:function(e,t,r){var i,s=this.migrations,o={l:e,d:t,i:r};if(a.get(n.containers.first)||a.get(n.service.migrations)){if(!a.get(n.service.migrations))for(i=0;i<s.length;i++)s[i].go(s[i].id,o)}else{var c=[];for(i=0;i<s.length;i++)c.push(s[i].id);var u="";for(i=0;i<c.length;i++)u+=c[i]+"=1",i<c.length-1&&(u+=n.delimiter);a.set(n.service.migrations,u,o.l,o.d,o.i)}},migrations:[{id:"1418474375998",version:"1.0.0-beta",go:function(e,t){var r=e+"=1",i=e+"=0",s=function(e,t,r){return t||r?e:n.delimiter};try{var o=[];for(var c in n.containers)n.containers.hasOwnProperty(c)&&o.push(n.containers[c]);for(var u=0;u<o.length;u++)if(a.get(o[u])){var p=a.get(o[u]).replace(/(\|)?\|(\|)?/g,s);a.destroy(o[u],t.d,t.i),a.destroy(o[u],t.d,!t.i),a.set(o[u],p,t.l,t.d,t.i)}a.get(n.containers.session)&&a.set(n.containers.session,n.pack.session(0),t.l,t.d,t.i),a.set(n.service.migrations,r,t.l,t.d,t.i)}catch(f){a.set(n.service.migrations,i,t.l,t.d,t.i)}}}]}},{"./data":2,"./helpers/cookies":3}],8:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/uri");t.exports={fetch:function(e){var t=e||{},r={};if(r.lifetime=this.validate.checkFloat(t.lifetime)||6,r.lifetime=parseInt(30*r.lifetime*24*60),r.session_length=this.validate.checkInt(t.session_length)||30,r.timezone_offset=this.validate.checkInt(t.timezone_offset),r.base64=t.base64||!1,r.campaign_param=t.campaign_param||!1,r.term_param=t.term_param||!1,r.content_param=t.content_param||!1,r.user_ip=t.user_ip||n.none,t.promocode?(r.promocode={},r.promocode.min=parseInt(t.promocode.min)||1e5,r.promocode.max=parseInt(t.promocode.max)||999999):r.promocode=!1,t.typein_attributes&&t.typein_attributes.source&&t.typein_attributes.medium?(r.typein_attributes={},r.typein_attributes.source=t.typein_attributes.source,r.typein_attributes.medium=t.typein_attributes.medium):r.typein_attributes={source:"(direct)",medium:"(none)"},t.domain&&this.validate.isString(t.domain)?r.domain={host:t.domain,isolate:!1}:t.domain&&t.domain.host?r.domain=t.domain:r.domain={host:a.getHost(document.location.hostname),isolate:!1},r.referrals=[],t.referrals&&t.referrals.length>0)for(var i=0;i<t.referrals.length;i++)t.referrals[i].host&&r.referrals.push(t.referrals[i]);if(r.organics=[],t.organics&&t.organics.length>0)for(var s=0;s<t.organics.length;s++)t.organics[s].host&&t.organics[s].param&&r.organics.push(t.organics[s]);return r.organics.push({host:"bing.com",param:"q",display:"bing"}),r.organics.push({host:"yahoo.com",param:"p",display:"yahoo"}),r.organics.push({host:"about.com",param:"q",display:"about"}),r.organics.push({host:"aol.com",param:"q",display:"aol"}),r.organics.push({host:"ask.com",param:"q",display:"ask"}),r.organics.push({host:"globososo.com",param:"q",display:"globo"}),r.organics.push({host:"go.mail.ru",param:"q",display:"go.mail.ru"}),r.organics.push({host:"rambler.ru",param:"query",display:"rambler"}),r.organics.push({host:"tut.by",param:"query",display:"tut.by"}),r.referrals.push({host:"t.co",display:"twitter.com"}),r.referrals.push({host:"plus.url.google.com",display:"plus.google.com"}),r},validate:{checkFloat:function(e){return!(!e||!this.isNumeric(parseFloat(e)))&&parseFloat(e)},checkInt:function(e){return!(!e||!this.isNumeric(parseInt(e)))&&parseInt(e)},isNumeric:function(e){return!isNaN(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)}}}},{"./helpers/uri":4,"./terms":9}],9:[function(e,t,r){"use strict";t.exports={traffic:{utm:"utm",organic:"organic",referral:"referral",typein:"typein"},referer:{referral:"referral",organic:"organic",social:"social"},none:"(none)",oops:"(Houston, we have a problem)"}},{}]},{},[1])(1)});
!function(t){"use strict";const e=t.params,n=(document.querySelector.bind(document),(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){document.querySelectorAll("wc-order-attribution-inputs").forEach((t,e)=>{e>0&&t.remove()});for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}function r(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).setExtensionData("woocommerce/order-attribution",t,!0)}function c(){return"undefined"!=typeof sbjs}function d(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),r(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&c()?n:i,o=c()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!c())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const i=t.getAttributionData();a(i),r(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '<wc-order-attribution-inputs>' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);
yay_swatch_frontend_init=function (yaySwatches, is_ajax=false){
jQuery(".variations_form:not(.yay-swatch-init)").each(function (
index,
element
){
var _form=jQuery(this);
if(is_ajax){
_form.wc_variation_form();
}
_form.addClass("yay-swatch-init");
const yay_product=_form.yay_variation_form();
if("yes"===yaySwatches.is_product_page){
window.yay_product=yay_product;
}
const yay_variant_wrapper=_form.find(".yay-variant-wrapper");
if(yay_variant_wrapper.length){
yay_variant_wrapper.each(function (){
if("yes"===jQuery(this).data("show-tooltip")){
const tooltip_options={
arrow: jQuery(this).data("arrow"),
shadow: jQuery(this).data("shadow"),
animation: jQuery(this).data("animation"),
showImage: jQuery(this).data("show-image")==="yes" ? "yes":"no",
};
const tippySelector =
".yay-swatches-attribute-term[data-type='swatch'], .yay-swatches-attribute-term[data-type='variant_image']";
tippy(tippySelector, {
animation:
"yes"===tooltip_options.animation ? "shift-toward":"fade",
animateFill: false,
duration: 250,
arrowType: "sharp",
arrow: "yes"===tooltip_options.arrow ? true:false,
theme: "yes"===tooltip_options.shadow ? "shadow":"",
allowHTML: tooltip_options.showImage==="yes" ? true:false,
content(reference){
const text=reference.getAttribute("data-tippy-text")||"";
const img=reference.getAttribute("data-tooltip-img");
if(tooltip_options.showImage==="yes"){
if(img){
const wrapper=document.createElement("div");
wrapper.style.textAlign="center";
wrapper.innerHTML=`
<img src="${img}" style="display:block; margin:0 auto 6px; max-width:150px; height:auto;" />
<span>${text}</span>
`;
return wrapper;
}
return text;
}
return text;
},
});
}});
}});
};
yay_swatch_frontend_start=function (yaySwatches){
yay_swatch_frontend_init(yaySwatches);
const observer=new MutationObserver((mutationsList)=> {
mutationsList.forEach((mutation)=> {
if(mutation.type==="childList"){
mutation.addedNodes.forEach((node)=> {
if(node.nodeType===1){
if(jQuery(".variations_form:not(.yay-swatch-init)").length){
yay_swatch_frontend_init(yaySwatches, true);
}}
});
}});
});
observer.observe(document.body, { childList: true, subtree: true });
};
yay_swatch_archive_change_image=function (form, variation){
if(variation &&
variation.image &&
variation.image.src &&
variation.image.thumb_src &&
variation.image.thumb_src.length > 1
){
form._imageWrapper.wc_set_variation_attr("alt", variation.image.alt);
form._imageWrapper.wc_set_variation_attr("sizes",
variation.image.thumb_sizes
);
form._imageWrapper.wc_set_variation_attr("src", variation.image.src);
form._imageWrapper.wc_set_variation_attr("height",
variation.image.thumb_src_h
);
form._imageWrapper.wc_set_variation_attr("width",
variation.image.thumb_src_w
);
form._imageWrapper.wc_set_variation_attr("srcset", variation.image.srcset);
form._imageWrapper.wc_set_variation_attr("title", variation.image.title);
}};
yay_swatch_is_soldout_hide_interact=function (yaySwatches){
const soldOutShowHide=yaySwatches.sold_out.soldOutShowHideOptions;
const hideStyle=yaySwatches.sold_out.soldOutHideStyle;
return "hide"===soldOutShowHide&&"interactive"===hideStyle;
};
yay_swatch_get_field_by_term_selected=function (
form,
dataset,
attribute_fields,
yaySwatches
){
var field=attribute_fields.filter((index, attribute)=> attribute.id===dataset.attribute
);
if(yaySwatches.wc_product_bundles_active){
form.find(".reset_bundled_variations_fixed").show();
field=attribute_fields.filter((index, attribute)=>
jQuery(attribute).data("attribute_name")==="attribute_" + dataset.attribute
);
}
return field;
};
yay_swatch_get_key_by_term_selected=function (event, yaySwatches){
var get_attribute_name=jQuery(event.target).data("attribute_name");
get_attribute_name=get_attribute_name.split("attribute_");
var key_selected =
undefined!=get_attribute_name[1]
? get_attribute_name[1]
: event.target.id;
return key_selected;
};
yay_swatch_get_label_by_term_selected=function (
form,
current_attributes,
getLableName,
yaySwatches
){
for (const [key, value] of Object.entries(current_attributes)){
var form_element=form.find('select[data-attribute_name="attribute_' + key + '"]'
);
if(!form_element){
form_element=form.find("#" + key);
}
const text=form_element.find(`option[value="${value}"]`).text();
getLableName(form_element, { text: text });
}};
yay_swatch_product_change_image_compatibles=function (theme, variation){
if("oxygen"===theme){
var img_selector =
".yay-swatches-product-details-wrapper .st-product-container .st-product-image img";
jQuery(img_selector).attr("src", variation.image.url);
}};
yay_swatch_product_hide_clear_button_compatibles=function (
form,
yaySwatches
){
if(yaySwatches.wc_product_bundles_active){
form.find(".reset_bundled_variations_fixed").hide();
}};
yay_swatch_compatibles=function (){
yay_swatch_wc_composite_products_compatibles();
};
yay_swatch_product_bundle_compatibles=function (yaySwatches){
if(jQuery(".bundle_form .bundle_data").length > 0){
yay_swatch_frontend_init(yaySwatches);
}
jQuery(document.body).on("click",
"input.bundled_product_checkbox",
function (event){
var _input=jQuery(this),
is_checked=_input.is(":checked"),
_content=_input
.closest(".details")
.find(".bundled_item_cart_content.variations_form.yay-swatch-init");
if(is_checked){
_content.addClass("yay-swatch-clicked");
}else{
_content.removeClass("yay-swatch-clicked");
}}
);
};
yay_swatch_wc_composite_products_compatibles=function (){
if(window.yaySwatches.wc_composite_products_active){
jQuery(document.body).on("wc-composite-initializing",
function (event, composite){
if(typeof jQuery.fn.yay_variation_form==="function"){
composite.actions.add_action("component_scripts_initialized",
function (step){
if("variable"===step.get_selected_product_type()){
step.$component_summary_content.yay_variation_form();
}},
10,
this
);
}}
);
}};
jQuery(function ($){
$(".variations_form").each(function (){
const _form=$(this);
const yay_variant_wrapper=_form.find(".yay-variant-wrapper");
if(yay_variant_wrapper.length){
const clearButton=yay_variant_wrapper.data("clear-button");
const resetLink=_form.find(".reset_variations").filter(function (){
return !$(this).closest(".yay-swatch-reset-variations").length;
});
if(clearButton!=="enable"){
resetLink.remove();
}}
});
});
jQuery(function ($){
yay_swatch_get_all_products_attributes=function ($wrapper){
const allAttr={};
$wrapper.find("select[data-attribute_name]").each(function (){
const $select=$(this);
const attrName=$select.data("attribute_name");
const values=[];
$select.find("option").each(function (){
const val=$(this).val();
if(val) values.push(val);
});
allAttr[attrName]=values;
});
return allAttr;
};});
function parseColorToRgb(colorString){
const backgroundOnly=colorString.split(";")[0].trim();
const hexMatches=backgroundOnly.match(/#([0-9a-f]{3,6})/gi);
if(hexMatches&&hexMatches.length){
return hexMatches.map((hex)=> {
hex=hex.replace(/^#/, "");
if(hex.length===3){
hex=hex
.split("")
.map((c)=> c + c)
.join("");
}
const num=parseInt(hex, 16);
return {
r: (num >> 16) & 255,
g: (num >> 8) & 255,
b: num & 255,
};});
}
const rgbMatches=backgroundOnly.match(/rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\s*\)/gi
);
if(rgbMatches&&rgbMatches.length){
return rgbMatches.map((rgb)=> {
const parts=rgb.match(/rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\s*\)/i);
return {
r: parseInt(parts[1], 10),
g: parseInt(parts[2], 10),
b: parseInt(parts[3], 10),
};});
}
return null;
}
function getLuminance({ r, g, b }){
const srgb=[r, g, b].map((v)=> {
v /=255;
return v <=0.03928 ? v / 12.92:Math.pow((v + 0.055) / 1.055, 2.4);
});
return 0.2126 * srgb[0] + 0.7152 * srgb[1] + 0.0722 * srgb[2];
}
function getTickColor(backgroundStyle){
if(backgroundStyle.includes("url(")){
return "#000";
}
if(backgroundStyle.includes("linear-gradient")){
const rgbs=parseColorToRgb(backgroundStyle);
if(rgbs&&rgbs.length >=2){
const avg={
r: Math.round((rgbs[0].r + rgbs[1].r) / 2),
g: Math.round((rgbs[0].g + rgbs[1].g) / 2),
b: Math.round((rgbs[0].b + rgbs[1].b) / 2),
};
const luminance=getLuminance(avg);
return luminance > 0.5 ? "#000":"#fff";
}}
const rgbs=parseColorToRgb(backgroundStyle);
if(rgbs&&rgbs.length){
const luminance=getLuminance(rgbs[0]);
return luminance > 0.5 ? "#000":"#fff";
}
return "#000";
};
(function (e, t){
"object"==typeof exports&&"undefined"!=typeof module
? (module.exports=t())
: "function"==typeof define&&define.amd
? define(t)
: (e.Popper=t());
})(this, function (){
"use strict";
function e(e){
return e&&"[object Function]"==={}.toString.call(e);
}
function t(e, t){
if(1!==e.nodeType) return [];
var o=e.ownerDocument.defaultView,
n=o.getComputedStyle(e, null);
return t ? n[t]:n;
}
function o(e){
return "HTML"===e.nodeName ? e:e.parentNode||e.host;
}
function n(e){
if(!e) return document.body;
switch (e.nodeName){
case "HTML":
case "BODY":
return e.ownerDocument.body;
case "#document":
return e.body;
}
var i=t(e),
r=i.overflow,
p=i.overflowX,
s=i.overflowY;
return /(auto|scroll|overlay)/.test(r + s + p) ? e:n(o(e));
}
function i(e){
return e&&e.referenceNode ? e.referenceNode:e;
}
function r(e){
return 11===e ? re:10===e ? pe:re||pe;
}
function p(e){
if(!e) return document.documentElement;
for (
var o=r(10) ? document.body:null, n=e.offsetParent||null;
n===o&&e.nextElementSibling;
)
n=(e=e.nextElementSibling).offsetParent;
var i=n&&n.nodeName;
return i&&"BODY"!==i&&"HTML"!==i
? -1!==["TH", "TD", "TABLE"].indexOf(n.nodeName) &&
"static"===t(n, "position")
? p(n)
: n
: e
? e.ownerDocument.documentElement
: document.documentElement;
}
function s(e){
var t=e.nodeName;
return "BODY"!==t&&("HTML"===t||p(e.firstElementChild)===e);
}
function d(e){
return null===e.parentNode ? e:d(e.parentNode);
}
function a(e, t){
if(!e||!e.nodeType||!t||!t.nodeType) return document.documentElement;
var o=e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING,
n=o ? e:t,
i=o ? t:e,
r=document.createRange();
r.setStart(n, 0), r.setEnd(i, 0);
var l=r.commonAncestorContainer;
if((e!==l&&t!==l)||n.contains(i)) return s(l) ? l:p(l);
var f=d(e);
return f.host ? a(f.host, t):a(e, d(t).host);
}
function l(e){
var t =
1 < arguments.length&&void 0!==arguments[1] ? arguments[1]:"top",
o="top"===t ? "scrollTop":"scrollLeft",
n=e.nodeName;
if("BODY"===n||"HTML"===n){
var i=e.ownerDocument.documentElement,
r=e.ownerDocument.scrollingElement||i;
return r[o];
}
return e[o];
}
function f(e, t){
var o=2 < arguments.length&&void 0!==arguments[2]&&arguments[2],
n=l(t, "top"),
i=l(t, "left"),
r=o ? -1:1;
return (
(e.top +=n * r),
(e.bottom +=n * r),
(e.left +=i * r),
(e.right +=i * r),
e
);
}
function m(e, t){
var o="x"===t ? "Left":"Top",
n="Left"==o ? "Right":"Bottom";
return (
parseFloat(e["border" + o + "Width"]) +
parseFloat(e["border" + n + "Width"])
);
}
function h(e, t, o, n){
return ee(
t["offset" + e],
t["scroll" + e],
o["client" + e],
o["offset" + e],
o["scroll" + e],
r(10)
? parseInt(o["offset" + e]) +
parseInt(n["margin" + ("Height"===e ? "Top":"Left")]) +
parseInt(n["margin" + ("Height"===e ? "Bottom":"Right")])
: 0
);
}
function c(e){
var t=e.body,
o=e.documentElement,
n=r(10)&&getComputedStyle(o);
return { height: h("Height", t, o, n), width: h("Width", t, o, n) };}
function g(e){
return le({}, e, { right: e.left + e.width, bottom: e.top + e.height });
}
function u(e){
var o={};
try {
if(r(10)){
o=e.getBoundingClientRect();
var n=l(e, "top"),
i=l(e, "left");
(o.top +=n), (o.left +=i), (o.bottom +=n), (o.right +=i);
} else o=e.getBoundingClientRect();
} catch (t){}
var p={
left: o.left,
top: o.top,
width: o.right - o.left,
height: o.bottom - o.top,
},
s="HTML"===e.nodeName ? c(e.ownerDocument):{},
d=s.width||e.clientWidth||p.width,
a=s.height||e.clientHeight||p.height,
f=e.offsetWidth - d,
h=e.offsetHeight - a;
if(f||h){
var u=t(e);
(f -=m(u, "x")), (h -=m(u, "y")), (p.width -=f), (p.height -=h);
}
return g(p);
}
function b(e, o){
var i=2 < arguments.length&&void 0!==arguments[2]&&arguments[2],
p=r(10),
s="HTML"===o.nodeName,
d=u(e),
a=u(o),
l=n(e),
m=t(o),
h=parseFloat(m.borderTopWidth),
c=parseFloat(m.borderLeftWidth);
i&&s && ((a.top=ee(a.top, 0)), (a.left=ee(a.left, 0)));
var b=g({
top: d.top - a.top - h,
left: d.left - a.left - c,
width: d.width,
height: d.height,
});
if(((b.marginTop=0), (b.marginLeft=0), !p&&s)){
var w=parseFloat(m.marginTop),
y=parseFloat(m.marginLeft);
(b.top -=h - w),
(b.bottom -=h - w),
(b.left -=c - y),
(b.right -=c - y),
(b.marginTop=w),
(b.marginLeft=y);
}
return (
(p&&!i ? o.contains(l):o===l&&"BODY"!==l.nodeName) &&
(b=f(b, o)),
b
);
}
function w(e){
var t=1 < arguments.length&&void 0!==arguments[1]&&arguments[1],
o=e.ownerDocument.documentElement,
n=b(e, o),
i=ee(o.clientWidth, window.innerWidth||0),
r=ee(o.clientHeight, window.innerHeight||0),
p=t ? 0:l(o),
s=t ? 0:l(o, "left"),
d={
top: p - n.top + n.marginTop,
left: s - n.left + n.marginLeft,
width: i,
height: r,
};
return g(d);
}
function y(e){
var n=e.nodeName;
if("BODY"===n||"HTML"===n) return !1;
if("fixed"===t(e, "position")) return !0;
var i=o(e);
return !!i&&y(i);
}
function E(e){
if(!e||!e.parentElement||r()) return document.documentElement;
for (var o=e.parentElement; o&&"none"===t(o, "transform");)
o=o.parentElement;
return o||document.documentElement;
}
function v(e, t, r, p){
var s=4 < arguments.length&&void 0!==arguments[4]&&arguments[4],
d={ top: 0, left: 0 },
l=s ? E(e):a(e, i(t));
if("viewport"===p) d=w(l, s);
else {
var f;
"scrollParent"===p
? ((f=n(o(t))),
"BODY"===f.nodeName&&(f=e.ownerDocument.documentElement))
: "window"===p
? (f=e.ownerDocument.documentElement)
: (f=p);
var m=b(f, l, s);
if("HTML"===f.nodeName&&!y(l)){
var h=c(e.ownerDocument),
g=h.height,
u=h.width;
(d.top +=m.top - m.marginTop),
(d.bottom=g + m.top),
(d.left +=m.left - m.marginLeft),
(d.right=u + m.left);
} else d=m;
}
r=r||0;
var v="number"==typeof r;
return (
(d.left +=v ? r:r.left||0),
(d.top +=v ? r:r.top||0),
(d.right -=v ? r:r.right||0),
(d.bottom -=v ? r:r.bottom||0),
d
);
}
function x(e){
var t=e.width,
o=e.height;
return t * o;
}
function O(e, t, o, n, i){
var r=5 < arguments.length&&void 0!==arguments[5] ? arguments[5]:0;
if(-1===e.indexOf("auto")) return e;
var p=v(o, n, r, i),
s={
top: { width: p.width, height: t.top - p.top },
right: { width: p.right - t.right, height: p.height },
bottom: { width: p.width, height: p.bottom - t.bottom },
left: { width: t.left - p.left, height: p.height },
},
d=Object.keys(s)
.map(function (e){
return le({ key: e }, s[e], { area: x(s[e]) });
})
.sort(function (e, t){
return t.area - e.area;
}),
a=d.filter(function (e){
var t=e.width,
n=e.height;
return t >=o.clientWidth&&n >=o.clientHeight;
}),
l=0 < a.length ? a[0].key:d[0].key,
f=e.split("-")[1];
return l + (f ? "-" + f:"");
}
function L(e, t, o){
var n =
3 < arguments.length&&void 0!==arguments[3] ? arguments[3]:null,
r=n ? E(t):a(t, i(o));
return b(o, r, n);
}
function S(e){
var t=e.ownerDocument.defaultView,
o=t.getComputedStyle(e),
n=parseFloat(o.marginTop||0) + parseFloat(o.marginBottom||0),
i=parseFloat(o.marginLeft||0) + parseFloat(o.marginRight||0),
r={ width: e.offsetWidth + i, height: e.offsetHeight + n };
return r;
}
function T(e){
var t={ left: "right", right: "left", bottom: "top", top: "bottom" };
return e.replace(/left|right|bottom|top/g, function (e){
return t[e];
});
}
function C(e, t, o){
o=o.split("-")[0];
var n=S(e),
i={ width: n.width, height: n.height },
r=-1!==["right", "left"].indexOf(o),
p=r ? "top":"left",
s=r ? "left":"top",
d=r ? "height":"width",
a=r ? "width":"height";
return (
(i[p]=t[p] + t[d] / 2 - n[d] / 2),
(i[s]=o===s ? t[s] - n[a]:t[T(s)]),
i
);
}
function D(e, t){
return Array.prototype.find ? e.find(t):e.filter(t)[0];
}
function N(e, t, o){
if(Array.prototype.findIndex)
return e.findIndex(function (e){
return e[t]===o;
});
var n=D(e, function (e){
return e[t]===o;
});
return e.indexOf(n);
}
function P(t, o, n){
var i=void 0===n ? t:t.slice(0, N(t, "name", n));
return (
i.forEach(function (t){
t["function"] &&
console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
var n=t["function"]||t.fn;
t.enabled &&
e(n) &&
((o.offsets.popper=g(o.offsets.popper)),
(o.offsets.reference=g(o.offsets.reference)),
(o=n(o, t)));
}),
o
);
}
function k(){
if(!this.state.isDestroyed){
var e={
instance: this,
styles: {},
arrowStyles: {},
attributes: {},
flipped: !1,
offsets: {},
};
(e.offsets.reference=L(
this.state,
this.popper,
this.reference,
this.options.positionFixed
)),
(e.placement=O(
this.options.placement,
e.offsets.reference,
this.popper,
this.reference,
this.options.modifiers.flip.boundariesElement,
this.options.modifiers.flip.padding
)),
(e.originalPlacement=e.placement),
(e.positionFixed=this.options.positionFixed),
(e.offsets.popper=C(this.popper, e.offsets.reference, e.placement)),
(e.offsets.popper.position=this.options.positionFixed
? "fixed"
: "absolute"),
(e=P(this.modifiers, e)),
this.state.isCreated
? this.options.onUpdate(e)
: ((this.state.isCreated = !0), this.options.onCreate(e));
}}
function W(e, t){
return e.some(function (e){
var o=e.name,
n=e.enabled;
return n&&o===t;
});
}
function B(e){
for (
var t=[!1, "ms", "Webkit", "Moz", "O"],
o=e.charAt(0).toUpperCase() + e.slice(1),
n=0;
n < t.length;
n++
){
var i=t[n],
r=i ? "" + i + o:e;
if("undefined"!=typeof document.body.style[r]) return r;
}
return null;
}
function H(){
return (
(this.state.isDestroyed = !0),
W(this.modifiers, "applyStyle") &&
(this.popper.removeAttribute("x-placement"),
(this.popper.style.position=""),
(this.popper.style.top=""),
(this.popper.style.left=""),
(this.popper.style.right=""),
(this.popper.style.bottom=""),
(this.popper.style.willChange=""),
(this.popper.style[B("transform")]="")),
this.disableEventListeners(),
this.options.removeOnDestroy &&
this.popper.parentNode.removeChild(this.popper),
this
);
}
function A(e){
var t=e.ownerDocument;
return t ? t.defaultView:window;
}
function M(e, t, o, i){
var r="BODY"===e.nodeName,
p=r ? e.ownerDocument.defaultView:e;
p.addEventListener(t, o, { passive: !0 }),
r||M(n(p.parentNode), t, o, i),
i.push(p);
}
function F(e, t, o, i){
(o.updateBound=i),
A(e).addEventListener("resize", o.updateBound, { passive: !0 });
var r=n(e);
return (
M(r, "scroll", o.updateBound, o.scrollParents),
(o.scrollElement=r),
(o.eventsEnabled = !0),
o
);
}
function I(){
this.state.eventsEnabled ||
(this.state=F(
this.reference,
this.options,
this.state,
this.scheduleUpdate
));
}
function R(e, t){
return (
A(e).removeEventListener("resize", t.updateBound),
t.scrollParents.forEach(function (e){
e.removeEventListener("scroll", t.updateBound);
}),
(t.updateBound=null),
(t.scrollParents=[]),
(t.scrollElement=null),
(t.eventsEnabled = !1),
t
);
}
function U(){
this.state.eventsEnabled &&
(cancelAnimationFrame(this.scheduleUpdate),
(this.state=R(this.reference, this.state)));
}
function Y(e){
return ""!==e&&!isNaN(parseFloat(e))&&isFinite(e);
}
function V(e, t){
Object.keys(t).forEach(function (o){
var n="";
-1!==["width", "height", "top", "right", "bottom", "left"].indexOf(o) &&
Y(t[o]) &&
(n="px"),
(e.style[o]=t[o] + n);
});
}
function j(e, t){
Object.keys(t).forEach(function (o){
var n=t[o];
!1===n ? e.removeAttribute(o):e.setAttribute(o, t[o]);
});
}
function q(e, t){
var o=e.offsets,
n=o.popper,
i=o.reference,
r=$,
p=function (e){
return e;
},
s=r(i.width),
d=r(n.width),
a=-1!==["left", "right"].indexOf(e.placement),
l=-1!==e.placement.indexOf("-"),
f=t ? (a||l || s % 2==d % 2 ? r:Z):p,
m=t ? r:p;
return {
left: f(1==s % 2&&1==d % 2&&!l&&t ? n.left - 1:n.left),
top: m(n.top),
bottom: m(n.bottom),
right: f(n.right),
};}
function K(e, t, o){
var n=D(e, function (e){
var o=e.name;
return o===t;
}),
i =
!!n &&
e.some(function (e){
return e.name===o&&e.enabled&&e.order < n.order;
});
if(!i){
var r="`" + t + "`";
console.warn("`" +
o +
"`" +
" modifier is required by " +
r +
" modifier in order to work, be sure to include it before " +
r +
"!"
);
}
return i;
}
function z(e){
return "end"===e ? "start":"start"===e ? "end":e;
}
function G(e){
var t=1 < arguments.length&&void 0!==arguments[1]&&arguments[1],
o=he.indexOf(e),
n=he.slice(o + 1).concat(he.slice(0, o));
return t ? n.reverse():n;
}
function _(e, t, o, n){
var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),
r=+i[1],
p=i[2];
if(!r) return e;
if(0===p.indexOf("%")){
var s;
switch (p){
case "%p":
s=o;
break;
case "%":
case "%r":
default:
s=n;
}
var d=g(s);
return (d[t] / 100) * r;
}
if("vh"===p||"vw"===p){
var a;
return (
(a =
"vh"===p
? ee(document.documentElement.clientHeight, window.innerHeight||0)
: ee(document.documentElement.clientWidth, window.innerWidth||0)),
(a / 100) * r
);
}
return r;
}
function X(e, t, o, n){
var i=[0, 0],
r=-1!==["right", "left"].indexOf(n),
p=e.split(/(\+|\-)/).map(function (e){
return e.trim();
}),
s=p.indexOf(D(p, function (e){
return -1!==e.search(/,|\s/);
})
);
p[s] &&
-1===p[s].indexOf(",") &&
console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."
);
var d=/\s*,\s*|\s+/,
a =
-1===s
? [p]
: [
p.slice(0, s).concat([p[s].split(d)[0]]),
[p[s].split(d)[1]].concat(p.slice(s + 1)),
];
return (
(a=a.map(function (e, n){
var i=(1===n ? !r:r) ? "height":"width",
p = !1;
return e
.reduce(function (e, t){
return ""===e[e.length - 1]&&-1!==["+", "-"].indexOf(t)
? ((e[e.length - 1]=t), (p = !0), e)
: p
? ((e[e.length - 1] +=t), (p = !1), e)
: e.concat(t);
}, [])
.map(function (e){
return _(e, i, t, o);
});
})),
a.forEach(function (e, t){
e.forEach(function (o, n){
Y(o)&&(i[t] +=o * ("-"===e[n - 1] ? -1:1));
});
}),
i
);
}
function J(e, t){
var o,
n=t.offset,
i=e.placement,
r=e.offsets,
p=r.popper,
s=r.reference,
d=i.split("-")[0];
return (
(o=Y(+n) ? [+n, 0]:X(n, p, s, d)),
"left"===d
? ((p.top +=o[0]), (p.left -=o[1]))
: "right"===d
? ((p.top +=o[0]), (p.left +=o[1]))
: "top"===d
? ((p.left +=o[0]), (p.top -=o[1]))
: "bottom"===d&&((p.left +=o[0]), (p.top +=o[1])),
(e.popper=p),
e
);
}
var Q=Math.min,
Z=Math.floor,
$=Math.round,
ee=Math.max,
te =
"undefined"!=typeof window &&
"undefined"!=typeof document &&
"undefined"!=typeof navigator,
oe=(function (){
for (var e=["Edge", "Trident", "Firefox"], t=0; t < e.length; t +=1)
if(te&&0 <=navigator.userAgent.indexOf(e[t])) return 1;
return 0;
})(),
ne=te&&window.Promise,
ie=ne
? function (e){
var t = !1;
return function (){
t ||
((t = !0),
window.Promise.resolve().then(function (){
(t = !1), e();
}));
};}
: function (e){
var t = !1;
return function (){
t ||
((t = !0),
setTimeout(function (){
(t = !1), e();
}, oe));
};},
re=te&&!!(window.MSInputMethodContext&&document.documentMode),
pe=te&&/MSIE 10/.test(navigator.userAgent),
se=function (e, t){
if(!(e instanceof t))
throw new TypeError("Cannot call a class as a function");
},
de=(function (){
function e(e, t){
for (var o, n=0; n < t.length; n++)
(o=t[n]),
(o.enumerable=o.enumerable||!1),
(o.configurable = !0),
"value" in o&&(o.writable = !0),
Object.defineProperty(e, o.key, o);
}
return function (t, o, n){
return o&&e(t.prototype, o), n&&e(t, n), t;
};})(),
ae=function (e, t, o){
return (
t in e
? Object.defineProperty(e, t, {
value: o,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (e[t]=o),
e
);
},
le =
Object.assign ||
function (e){
for (var t, o=1; o < arguments.length; o++)
for (var n in ((t=arguments[o]), t))
Object.prototype.hasOwnProperty.call(t, n)&&(e[n]=t[n]);
return e;
},
fe=te&&/Firefox/i.test(navigator.userAgent),
me=[
"auto-start",
"auto",
"auto-end",
"top-start",
"top",
"top-end",
"right-start",
"right",
"right-end",
"bottom-end",
"bottom",
"bottom-start",
"left-end",
"left",
"left-start",
],
he=me.slice(3),
ce={
FLIP: "flip",
CLOCKWISE: "clockwise",
COUNTERCLOCKWISE: "counterclockwise",
},
ge=(function (){
function t(o, n){
var i=this,
r =
2 < arguments.length&&void 0!==arguments[2] ? arguments[2]:{};
se(this, t),
(this.scheduleUpdate=function (){
return requestAnimationFrame(i.update);
}),
(this.update=ie(this.update.bind(this))),
(this.options=le({}, t.Defaults, r)),
(this.state={ isDestroyed: !1, isCreated: !1, scrollParents: [] }),
(this.reference=o&&o.jquery ? o[0]:o),
(this.popper=n&&n.jquery ? n[0]:n),
(this.options.modifiers={}),
Object.keys(le({}, t.Defaults.modifiers, r.modifiers)).forEach(function (e){
i.options.modifiers[e]=le(
{},
t.Defaults.modifiers[e]||{},
r.modifiers ? r.modifiers[e]:{}
);
}
),
(this.modifiers=Object.keys(this.options.modifiers)
.map(function (e){
return le({ name: e }, i.options.modifiers[e]);
})
.sort(function (e, t){
return e.order - t.order;
})),
this.modifiers.forEach(function (t){
t.enabled &&
e(t.onLoad) &&
t.onLoad(i.reference, i.popper, i.options, t, i.state);
}),
this.update();
var p=this.options.eventsEnabled;
p&&this.enableEventListeners(), (this.state.eventsEnabled=p);
}
return (
de(t, [
{
key: "update",
value: function (){
return k.call(this);
},
},
{
key: "destroy",
value: function (){
return H.call(this);
},
},
{
key: "enableEventListeners",
value: function (){
return I.call(this);
},
},
{
key: "disableEventListeners",
value: function (){
return U.call(this);
},
},
]),
t
);
})();
return (
(ge.Utils=("undefined"==typeof window ? global:window).PopperUtils),
(ge.placements=me),
(ge.Defaults={
placement: "bottom",
positionFixed: !1,
eventsEnabled: !0,
removeOnDestroy: !1,
onCreate: function (){},
onUpdate: function (){},
modifiers: {
shift: {
order: 100,
enabled: !0,
fn: function (e){
var t=e.placement,
o=t.split("-")[0],
n=t.split("-")[1];
if(n){
var i=e.offsets,
r=i.reference,
p=i.popper,
s=-1!==["bottom", "top"].indexOf(o),
d=s ? "left":"top",
a=s ? "width":"height",
l={
start: ae({}, d, r[d]),
end: ae({}, d, r[d] + r[a] - p[a]),
};
e.offsets.popper=le({}, p, l[n]);
}
return e;
},
},
offset: { order: 200, enabled: !0, fn: J, offset: 0 },
preventOverflow: {
order: 300,
enabled: !0,
fn: function (e, t){
var o=t.boundariesElement||p(e.instance.popper);
e.instance.reference===o&&(o=p(o));
var n=B("transform"),
i=e.instance.popper.style,
r=i.top,
s=i.left,
d=i[n];
(i.top=""), (i.left=""), (i[n]="");
var a=v(
e.instance.popper,
e.instance.reference,
t.padding,
o,
e.positionFixed
);
(i.top=r), (i.left=s), (i[n]=d), (t.boundaries=a);
var l=t.priority,
f=e.offsets.popper,
m={
primary: function (e){
var o=f[e];
return (
f[e] < a[e] &&
!t.escapeWithReference &&
(o=ee(f[e], a[e])),
ae({}, e, o)
);
},
secondary: function (e){
var o="right"===e ? "left":"top",
n=f[o];
return (
f[e] > a[e] &&
!t.escapeWithReference &&
(n=Q(
f[o],
a[e] - ("right"===e ? f.width:f.height)
)),
ae({}, o, n)
);
},
};
return (
l.forEach(function (e){
var t =
-1===["left", "top"].indexOf(e) ? "secondary":"primary";
f=le({}, f, m[t](e));
}),
(e.offsets.popper=f),
e
);
},
priority: ["left", "right", "top", "bottom"],
padding: 5,
boundariesElement: "scrollParent",
},
keepTogether: {
order: 400,
enabled: !0,
fn: function (e){
var t=e.offsets,
o=t.popper,
n=t.reference,
i=e.placement.split("-")[0],
r=Z,
p=-1!==["top", "bottom"].indexOf(i),
s=p ? "right":"bottom",
d=p ? "left":"top",
a=p ? "width":"height";
return (
o[s] < r(n[d])&&(e.offsets.popper[d]=r(n[d]) - o[a]),
o[d] > r(n[s])&&(e.offsets.popper[d]=r(n[s])),
e
);
},
},
arrow: {
order: 500,
enabled: !0,
fn: function (e, o){
var n;
if(!K(e.instance.modifiers, "arrow", "keepTogether")) return e;
var i=o.element;
if("string"==typeof i){
if(((i=e.instance.popper.querySelector(i)), !i)) return e;
}else if(!e.instance.popper.contains(i))
return (
console.warn("WARNING: `arrow.element` must be child of its popper element!"
),
e
);
var r=e.placement.split("-")[0],
p=e.offsets,
s=p.popper,
d=p.reference,
a=-1!==["left", "right"].indexOf(r),
l=a ? "height":"width",
f=a ? "Top":"Left",
m=f.toLowerCase(),
h=a ? "left":"top",
c=a ? "bottom":"right",
u=S(i)[l];
d[c] - u < s[m]&&(e.offsets.popper[m] -=s[m] - (d[c] - u)),
d[m] + u > s[c]&&(e.offsets.popper[m] +=d[m] + u - s[c]),
(e.offsets.popper=g(e.offsets.popper));
var b=d[m] + d[l] / 2 - u / 2,
w=t(e.instance.popper),
y=parseFloat(w["margin" + f]),
E=parseFloat(w["border" + f + "Width"]),
v=b - e.offsets.popper[m] - y - E;
return (
(v=ee(Q(s[l] - u, v), 0)),
(e.arrowElement=i),
(e.offsets.arrow=((n={}), ae(n, m, $(v)), ae(n, h, ""), n)),
e
);
},
element: "[x-arrow]",
},
flip: {
order: 600,
enabled: !0,
fn: function (e, t){
if(W(e.instance.modifiers, "inner")) return e;
if(e.flipped&&e.placement===e.originalPlacement) return e;
var o=v(
e.instance.popper,
e.instance.reference,
t.padding,
t.boundariesElement,
e.positionFixed
),
n=e.placement.split("-")[0],
i=T(n),
r=e.placement.split("-")[1]||"",
p=[];
switch (t.behavior){
case ce.FLIP:
p=[n, i];
break;
case ce.CLOCKWISE:
p=G(n);
break;
case ce.COUNTERCLOCKWISE:
p=G(n, !0);
break;
default:
p=t.behavior;
}
return (
p.forEach(function (s, d){
if(n!==s||p.length===d + 1) return e;
(n=e.placement.split("-")[0]), (i=T(n));
var a=e.offsets.popper,
l=e.offsets.reference,
f=Z,
m =
("left"===n&&f(a.right) > f(l.left)) ||
("right"===n&&f(a.left) < f(l.right)) ||
("top"===n&&f(a.bottom) > f(l.top)) ||
("bottom"===n&&f(a.top) < f(l.bottom)),
h=f(a.left) < f(o.left),
c=f(a.right) > f(o.right),
g=f(a.top) < f(o.top),
u=f(a.bottom) > f(o.bottom),
b =
("left"===n&&h) ||
("right"===n&&c) ||
("top"===n&&g) ||
("bottom"===n&&u),
w=-1!==["top", "bottom"].indexOf(n),
y =
!!t.flipVariations &&
((w&&"start"===r&&h) ||
(w&&"end"===r&&c) ||
(!w&&"start"===r&&g) ||
(!w&&"end"===r&&u)),
E =
!!t.flipVariationsByContent &&
((w&&"start"===r&&c) ||
(w&&"end"===r&&h) ||
(!w&&"start"===r&&u) ||
(!w&&"end"===r&&g)),
v=y||E;
(m||b || v) &&
((e.flipped = !0),
(m||b)&&(n=p[d + 1]),
v&&(r=z(r)),
(e.placement=n + (r ? "-" + r:"")),
(e.offsets.popper=le(
{},
e.offsets.popper,
C(e.instance.popper, e.offsets.reference, e.placement)
)),
(e=P(e.instance.modifiers, e, "flip")));
}),
e
);
},
behavior: "flip",
padding: 5,
boundariesElement: "viewport",
flipVariations: !1,
flipVariationsByContent: !1,
},
inner: {
order: 700,
enabled: !1,
fn: function (e){
var t=e.placement,
o=t.split("-")[0],
n=e.offsets,
i=n.popper,
r=n.reference,
p=-1!==["left", "right"].indexOf(o),
s=-1===["top", "left"].indexOf(o);
return (
(i[p ? "left":"top"] =
r[o] - (s ? i[p ? "width":"height"]:0)),
(e.placement=T(t)),
(e.offsets.popper=g(i)),
e
);
},
},
hide: {
order: 800,
enabled: !0,
fn: function (e){
if(!K(e.instance.modifiers, "hide", "preventOverflow")) return e;
var t=e.offsets.reference,
o=D(e.instance.modifiers, function (e){
return "preventOverflow"===e.name;
}).boundaries;
if(t.bottom < o.top ||
t.left > o.right ||
t.top > o.bottom ||
t.right < o.left
){
if(!0===e.hide) return e;
(e.hide = !0), (e.attributes["x-out-of-boundaries"]="");
}else{
if(!1===e.hide) return e;
(e.hide = !1), (e.attributes["x-out-of-boundaries"] = !1);
}
return e;
},
},
computeStyle: {
order: 850,
enabled: !0,
fn: function (e, t){
var o=t.x,
n=t.y,
i=e.offsets.popper,
r=D(e.instance.modifiers, function (e){
return "applyStyle"===e.name;
}).gpuAcceleration;
void 0!==r &&
console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"
);
var s,
d,
a=void 0===r ? t.gpuAcceleration:r,
l=p(e.instance.popper),
f=u(l),
m={ position: i.position },
h=q(e, 2 > window.devicePixelRatio||!fe),
c="bottom"===o ? "top":"bottom",
g="right"===n ? "left":"right",
b=B("transform");
if(((d =
"bottom"==c
? "HTML"===l.nodeName
? -l.clientHeight + h.bottom
: -f.height + h.bottom
: h.top),
(s =
"right"==g
? "HTML"===l.nodeName
? -l.clientWidth + h.right
: -f.width + h.right
: h.left),
a&&b)
)
(m[b]="translate3d(" + s + "px, " + d + "px, 0)"),
(m[c]=0),
(m[g]=0),
(m.willChange="transform");
else {
var w="bottom"==c ? -1:1,
y="right"==g ? -1:1;
(m[c]=d * w), (m[g]=s * y), (m.willChange=c + ", " + g);
}
var E={ "x-placement": e.placement };
return (
(e.attributes=le({}, E, e.attributes)),
(e.styles=le({}, m, e.styles)),
(e.arrowStyles=le({}, e.offsets.arrow, e.arrowStyles)),
e
);
},
gpuAcceleration: !0,
x: "bottom",
y: "right",
},
applyStyle: {
order: 900,
enabled: !0,
fn: function (e){
return (
V(e.instance.popper, e.styles),
j(e.instance.popper, e.attributes),
e.arrowElement &&
Object.keys(e.arrowStyles).length &&
V(e.arrowElement, e.arrowStyles),
e
);
},
onLoad: function (e, t, o, n, i){
var r=L(i, t, e, o.positionFixed),
p=O(
o.placement,
r,
t,
e,
o.modifiers.flip.boundariesElement,
o.modifiers.flip.padding
);
return (
t.setAttribute("x-placement", p),
V(t, { position: o.positionFixed ? "fixed":"absolute" }),
o
);
},
gpuAcceleration: void 0,
},
},
}),
ge
);
});
//Tippy.js version 4
!(function (t, e){
"object"==typeof exports&&"undefined"!=typeof module
? (module.exports=e(require("popper.js")))
: "function"==typeof define&&define.amd
? define(["popper.js"], e)
: ((t=t||self).tippy=e(t.Popper));
})(this, function (t){
"use strict";
t=t&&t.hasOwnProperty("default") ? t.default:t;
function e(){
return (e =
Object.assign ||
function (t){
for (var e=1; e < arguments.length; e++){
var a=arguments[e];
for (var r in a)
Object.prototype.hasOwnProperty.call(a, r)&&(t[r]=a[r]);
}
return t;
}).apply(this, arguments);
}
var a="undefined"!=typeof window&&"undefined"!=typeof document,
r=a ? navigator.userAgent:"",
n=/MSIE |Trident\//.test(r),
i=/UCBrowser\//.test(r),
o=a&&/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,
p={
a11y: !0,
allowHTML: !0,
animateFill: !0,
animation: "shift-away",
appendTo: function (){
return document.body;
},
aria: "describedby",
arrow: !1,
arrowType: "sharp",
boundary: "scrollParent",
content: "",
delay: 0,
distance: 10,
duration: [325, 275],
flip: !0,
flipBehavior: "flip",
flipOnUpdate: !1,
followCursor: !1,
hideOnClick: !0,
ignoreAttributes: !1,
inertia: !1,
interactive: !1,
interactiveBorder: 2,
interactiveDebounce: 0,
lazy: !0,
maxWidth: 350,
multiple: !1,
offset: 0,
onHidden: function (){},
onHide: function (){},
onMount: function (){},
onShow: function (){},
onShown: function (){},
onTrigger: function (){},
placement: "top",
popperOptions: {},
role: "tooltip",
showOnInit: !1,
size: "regular",
sticky: !1,
target: "",
theme: "dark",
touch: !0,
touchHold: !1,
trigger: "mouseenter focus",
triggerTarget: null,
updateDuration: 0,
wait: null,
zIndex: 9999,
},
s=[
"arrow",
"arrowType",
"boundary",
"distance",
"flip",
"flipBehavior",
"flipOnUpdate",
"offset",
"placement",
"popperOptions",
],
c=a ? Element.prototype:{},
l =
c.matches ||
c.matchesSelector ||
c.webkitMatchesSelector ||
c.mozMatchesSelector ||
c.msMatchesSelector;
function d(t){
return [].slice.call(t);
}
function f(t, e){
return m(t, function (t){
return l.call(t, e);
});
}
function m(t, e){
for (; t;){
if(e(t)) return t;
t=t.parentElement;
}
return null;
}
var u={ passive: !0 },
b=4,
y="x-placement",
v="x-out-of-boundaries",
h="tippy-iOS",
x="tippy-active",
g="tippy-popper",
w="tippy-tooltip",
k="tippy-content",
A="tippy-backdrop",
E="tippy-arrow",
C="tippy-roundarrow",
L=".".concat(g),
X=".".concat(w),
Y=".".concat(k),
T=".".concat(A),
I=".".concat(E),
S=".".concat(C),
O = !1;
function z(){
O ||
((O = !0),
o&&document.body.classList.add(h),
window.performance&&document.addEventListener("mousemove", H));
}
var M=0;
function H(){
var t=performance.now();
t - M < 20 &&
((O = !1),
document.removeEventListener("mousemove", H),
o||document.body.classList.remove(h)),
(M=t);
}
function V(){
var t=document.activeElement;
t&&t.blur&&t._tippy&&t.blur();
}
var _=Object.keys(p);
function N(t, e){
return {}.hasOwnProperty.call(t, e);
}
function P(t, e, a){
if(Array.isArray(t)){
var r=t[e];
return null==r ? a:r;
}
return t;
}
function D(t, e){
return 0===e
? t
: function (r){
clearTimeout(a),
(a=setTimeout(function (){
t(r);
}, e));
};
var a;
}
function q(t, e){
return t&&t.modifiers&&t.modifiers[e];
}
function B(t, e){
return t.indexOf(e) > -1;
}
function F(t){
return t instanceof Element;
}
function j(t){
return !(!t||!N(t, "isVirtual"))||F(t);
}
function U(t, e){
return "function"==typeof t ? t.apply(null, e):t;
}
function W(t, e){
t.filter(function (t){
return "flip"===t.name;
})[0].enabled=e;
}
function R(){
return document.createElement("div");
}
function J(t, e){
t.forEach(function (t){
t&&(t.style.transitionDuration="".concat(e, "ms"));
});
}
function G(t, e){
t.forEach(function (t){
t&&t.setAttribute("data-state", e);
});
}
function K(t, a){
var r=e(
{},
a,
{ content: U(a.content, [t]) },
a.ignoreAttributes
? {}
: (function (t){
return _.reduce(function (e, a){
var r=(t.getAttribute("data-tippy-".concat(a))||"").trim();
if(!r) return e;
if("content"===a) e[a]=r;
else
try {
e[a]=JSON.parse(r);
} catch (t){
e[a]=r;
}
return e;
}, {});
})(t)
);
return (r.arrow||i)&&(r.animateFill = !1), r;
}
function Q(t, e){
Object.keys(t).forEach(function (t){
if(!N(e, t))
throw new Error("[tippy]: `".concat(t, "` is not a valid option"));
});
}
function Z(t, e){
t.innerHTML=F(e) ? e.innerHTML:e;
}
function $(t, e){
if(F(e.content)) Z(t, ""), t.appendChild(e.content);
else if("function"!=typeof e.content){
t[e.allowHTML ? "innerHTML":"textContent"]=e.content;
}}
function tt(t){
return {
tooltip: t.querySelector(X),
backdrop: t.querySelector(T),
content: t.querySelector(Y),
arrow: t.querySelector(I)||t.querySelector(S),
};}
function et(t){
t.setAttribute("data-inertia", "");
}
function at(t){
var e=R();
return (
"round"===t
? ((e.className=C),
Z(
e,
'<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>'
))
: (e.className=E),
e
);
}
function rt(){
var t=R();
return (t.className=A), t.setAttribute("data-state", "hidden"), t;
}
function nt(t, e){
t.setAttribute("tabindex", "-1"), e.setAttribute("data-interactive", "");
}
function it(t, e, a){
var r =
i&&void 0!==document.body.style.webkitTransition
? "webkitTransitionEnd"
: "transitionend";
t[e + "EventListener"](r, a);
}
function ot(t){
var e=t.getAttribute(y);
return e ? e.split("-")[0]:"";
}
function pt(t, e, a){
a.split(" ").forEach(function (a){
t.classList[e](a + "-theme");
});
}
function st(t, e){
var a=R();
(a.className=g),
(a.id="tippy-".concat(t)),
(a.style.zIndex="" + e.zIndex),
(a.style.position="absolute"),
(a.style.top="0"),
(a.style.left="0"),
e.role&&a.setAttribute("role", e.role);
var r=R();
(r.className=w),
(r.style.maxWidth =
e.maxWidth + ("number"==typeof e.maxWidth ? "px":"")),
r.setAttribute("data-size", e.size),
r.setAttribute("data-animation", e.animation),
r.setAttribute("data-state", "hidden"),
pt(r, "add", e.theme);
var n=R();
return (
(n.className=k),
n.setAttribute("data-state", "hidden"),
e.interactive&&nt(a, r),
e.arrow&&r.appendChild(at(e.arrowType)),
e.animateFill &&
(r.appendChild(rt()), r.setAttribute("data-animatefill", "")),
e.inertia&&et(r),
$(n, e),
r.appendChild(n),
a.appendChild(r),
a
);
}
function ct(t, e, a){
var r=tt(t),
n=r.tooltip,
i=r.content,
o=r.backdrop,
p=r.arrow;
(t.style.zIndex="" + a.zIndex),
n.setAttribute("data-size", a.size),
n.setAttribute("data-animation", a.animation),
(n.style.maxWidth =
a.maxWidth + ("number"==typeof a.maxWidth ? "px":"")),
a.role ? t.setAttribute("role", a.role):t.removeAttribute("role"),
e.content!==a.content&&$(i, a),
!e.animateFill&&a.animateFill
? (n.appendChild(rt()), n.setAttribute("data-animatefill", ""))
: e.animateFill &&
!a.animateFill &&
(n.removeChild(o), n.removeAttribute("data-animatefill")),
!e.arrow&&a.arrow
? n.appendChild(at(a.arrowType))
: e.arrow&&!a.arrow&&n.removeChild(p),
e.arrow &&
a.arrow &&
e.arrowType!==a.arrowType &&
n.replaceChild(at(a.arrowType), p),
!e.interactive&&a.interactive
? nt(t, n)
: e.interactive &&
!a.interactive &&
(function (t, e){
t.removeAttribute("tabindex"),
e.removeAttribute("data-interactive");
})(t, n),
!e.inertia&&a.inertia
? et(n)
: e.inertia &&
!a.inertia &&
(function (t){
t.removeAttribute("data-inertia");
})(n),
e.theme!==a.theme&&(pt(n, "remove", e.theme), pt(n, "add", a.theme));
}
var lt=1,
dt=[];
function ft(a, r){
var i,
o,
c,
h,
g,
w=K(a, r);
if(!w.multiple&&a._tippy) return null;
var k,
A,
E,
C,
X,
Y = !1,
T = !1,
I = !1,
S = !1,
z=[],
M=D(ht, w.interactiveDebounce),
H=lt++,
V=st(H, w),
_=tt(V),
j={
id: H,
reference: a,
popper: V,
popperChildren: _,
popperInstance: null,
props: w,
state: {
isEnabled: !0,
isVisible: !1,
isDestroyed: !1,
isMounted: !1,
isShown: !1,
},
clearDelayTimeouts: Tt,
set: It,
setContent: function (t){
It({ content: t });
},
show: St,
hide: Ot,
enable: function (){
j.state.isEnabled = !0;
},
disable: function (){
j.state.isEnabled = !1;
},
destroy: function (t){
if(j.state.isDestroyed) return;
(T = !0), j.state.isMounted&&Ot(0);
bt(), delete a._tippy;
var e=j.props.target;
e &&
t &&
F(a) &&
d(a.querySelectorAll(e)).forEach(function (t){
t._tippy&&t._tippy.destroy();
});
j.popperInstance&&j.popperInstance.destroy();
(T = !1), (j.state.isDestroyed = !0);
},
};
return (
(a._tippy=j),
(V._tippy=j),
ut(),
w.lazy||Ct(),
w.showOnInit&&Lt(),
!w.a11y ||
w.target ||
!F((X=$())) ||
(l.call(X,
"a[href],area[href],button,details,input,textarea,select,iframe,[tabindex]"
) &&
!X.hasAttribute("disabled")) ||
$().setAttribute("tabindex", "0"),
V.addEventListener("mouseenter", function (t){
j.props.interactive &&
j.state.isVisible &&
"mouseenter"===i &&
Lt(t, !0);
}),
V.addEventListener("mouseleave", function (){
j.props.interactive &&
"mouseenter"===i &&
document.addEventListener("mousemove", M);
}),
j
);
function R(){
document.removeEventListener("mousemove", yt);
}
function Z(){
document.body.removeEventListener("mouseleave", Xt),
document.removeEventListener("mousemove", M),
(dt=dt.filter(function (t){
return t!==M;
}));
}
function $(){
return j.props.triggerTarget||a;
}
function et(){
document.addEventListener("click", Yt, !0);
}
function at(){
document.removeEventListener("click", Yt, !0);
}
function rt(){
return [
j.popperChildren.tooltip,
j.popperChildren.backdrop,
j.popperChildren.content,
];
}
function nt(){
var t=j.props.followCursor;
return (t&&"focus"!==i)||(O&&"initial"===t);
}
function pt(t, e){
var a=j.popperChildren.tooltip;
function r(t){
t.target===a&&(it(a, "remove", r), e());
}
if(0===t) return e();
it(a, "remove", E), it(a, "add", r), (E=r);
}
function mt(t, e){
var a=arguments.length > 2&&void 0!==arguments[2]&&arguments[2];
$().addEventListener(t, e, a),
z.push({ eventType: t, handler: e, options: a });
}
function ut(){
j.props.touchHold &&
!j.props.target &&
(mt("touchstart", vt, u), mt("touchend", xt, u)),
j.props.trigger
.trim()
.split(" ")
.forEach(function (t){
if("manual"!==t)
if(j.props.target)
switch (t){
case "mouseenter":
mt("mouseover", wt), mt("mouseout", kt);
break;
case "focus":
mt("focusin", wt), mt("focusout", kt);
break;
case "click":
mt(t, wt);
}
else
switch ((mt(t, vt), t)){
case "mouseenter":
mt("mouseleave", xt);
break;
case "focus":
mt(n ? "focusout":"blur", gt);
}});
}
function bt(){
z.forEach(function (t){
var e=t.eventType,
a=t.handler,
r=t.options;
$().removeEventListener(e, a, r);
}),
(z=[]);
}
function yt(t){
var r=(o=t),
n=r.clientX,
i=r.clientY;
if(C){
var p=m(t.target, function (t){
return t===a;
}),
s=a.getBoundingClientRect(),
c=j.props.followCursor,
l="horizontal"===c,
d="vertical"===c,
f=B(["top", "bottom"], ot(V)),
u=V.getAttribute(y),
b = !!u&&!!u.split("-")[1],
v=f ? V.offsetWidth:V.offsetHeight,
h=v / 2,
x=f ? 0:b ? v:h,
g=f ? (b ? v:h):0;
(!p&&j.props.interactive) ||
((j.popperInstance.reference=e({}, j.popperInstance.reference, {
referenceNode: a,
clientWidth: 0,
clientHeight: 0,
getBoundingClientRect: function (){
return {
width: f ? v:0,
height: f ? 0:v,
top: (l ? s.top:i) - x,
bottom: (l ? s.bottom:i) + x,
left: (d ? s.left:n) - g,
right: (d ? s.right:n) + g,
};},
})),
j.popperInstance.update()),
"initial"===c&&j.state.isVisible&&R();
}}
function vt(t){
j.state.isEnabled &&
!At(t) &&
(j.state.isVisible ||
((i=t.type),
t instanceof MouseEvent &&
((o=t),
dt.forEach(function (e){
return e(t);
}))),
"click"===t.type&&!1!==j.props.hideOnClick&&j.state.isVisible
? Xt()
: Lt(t));
}
function ht(t){
var e=f(t.target, L)===V,
r=m(t.target, function (t){
return t===a;
});
e ||
r ||
((function (t, e, a, r){
if(!t) return !0;
var n=a.clientX,
i=a.clientY,
o=r.interactiveBorder,
p=r.distance,
s=e.top - i > ("top"===t ? o + p:o),
c=i - e.bottom > ("bottom"===t ? o + p:o),
l=e.left - n > ("left"===t ? o + p:o),
d=n - e.right > ("right"===t ? o + p:o);
return s||c || l||d;
})(ot(V), V.getBoundingClientRect(), t, j.props) &&
(Z(), Xt()));
}
function xt(t){
if(!At(t))
return j.props.interactive
? (document.body.addEventListener("mouseleave", Xt),
document.addEventListener("mousemove", M),
void dt.push(M))
: void Xt();
}
function gt(t){
t.target===$() &&
((j.props.interactive &&
t.relatedTarget &&
V.contains(t.relatedTarget)) ||
Xt());
}
function wt(t){
f(t.target, j.props.target)&&Lt(t);
}
function kt(t){
f(t.target, j.props.target)&&Xt();
}
function At(t){
var e="ontouchstart" in window,
a=B(t.type, "touch"),
r=j.props.touchHold;
return (e&&O && r&&!a)||(O&&!r&&a);
}
function Et(){
!S &&
A &&
((S = !0),
(function (t){
t.offsetHeight;
})(V),
A());
}
function Ct(){
var r=j.props.popperOptions,
n=j.popperChildren,
i=n.tooltip,
o=n.arrow,
p=q(r, "preventOverflow");
function s(t){
j.props.flip &&
!j.props.flipOnUpdate &&
(t.flipped&&(j.popperInstance.options.placement=t.placement),
W(j.popperInstance.modifiers, !1)),
i.setAttribute(y, t.placement),
!1!==t.attributes[v] ? i.setAttribute(v, ""):i.removeAttribute(v),
k &&
k!==t.placement &&
I &&
((i.style.transition="none"),
requestAnimationFrame(function (){
i.style.transition="";
})),
(k=t.placement),
(I=j.state.isVisible);
var a=ot(V),
r=i.style;
(r.top=r.bottom=r.left=r.right=""),
(r[a]=-(j.props.distance - 10) + "px");
var n=p&&void 0!==p.padding ? p.padding:b,
o="number"==typeof n,
s=e(
{
top: o ? n:n.top,
bottom: o ? n:n.bottom,
left: o ? n:n.left,
right: o ? n:n.right,
},
!o&&n
);
(s[a]=o ? n + j.props.distance:(n[a]||0) + j.props.distance),
(j.popperInstance.modifiers.filter(function (t){
return "preventOverflow"===t.name;
})[0].padding=s),
(C=s);
}
var c=e({ eventsEnabled: !1, placement: j.props.placement }, r, {
modifiers: e({}, r ? r.modifiers:{}, {
preventOverflow: e(
{ boundariesElement: j.props.boundary, padding: b },
p
),
arrow: e({ element: o, enabled: !!o }, q(r, "arrow")),
flip: e(
{
enabled: j.props.flip,
padding: j.props.distance + b,
behavior: j.props.flipBehavior,
},
q(r, "flip")
),
offset: e({ offset: j.props.offset }, q(r, "offset")),
}),
onCreate: function (t){
s(t), Et(), r&&r.onCreate&&r.onCreate(t);
},
onUpdate: function (t){
s(t), Et(), r&&r.onUpdate&&r.onUpdate(t);
},
});
j.popperInstance=new t(a, V, c);
}
function Lt(t, a){
if((Tt(), !j.state.isVisible)){
if(j.props.target)
return (function (t){
if(t){
var a=f(t.target, j.props.target);
a &&
!a._tippy &&
ft(
a,
e({}, j.props, {
content: U(r.content, [a]),
appendTo: r.appendTo,
target: "",
showOnInit: !0,
})
);
}})(t);
if(((Y = !0), t&&!a&&j.props.onTrigger(j, t), j.props.wait))
return j.props.wait(j, t);
nt() &&
!j.state.isMounted &&
(j.popperInstance||Ct(),
document.addEventListener("mousemove", yt)),
et();
var n=P(j.props.delay, 0, p.delay);
n
? (c=setTimeout(function (){
St();
}, n))
: St();
}}
function Xt(){
if((Tt(), !j.state.isVisible)) return R(), void at();
Y = !1;
var t=P(j.props.delay, 1, p.delay);
t
? (h=setTimeout(function (){
j.state.isVisible&&Ot();
}, t))
: (g=requestAnimationFrame(function (){
Ot();
}));
}
function Yt(t){
if(!j.props.interactive||!V.contains(t.target)){
if($().contains(t.target)){
if(O) return;
if(j.state.isVisible&&B(j.props.trigger, "click")) return;
}
!0===j.props.hideOnClick&&(Tt(), Ot());
}}
function Tt(){
clearTimeout(c), clearTimeout(h), cancelAnimationFrame(g);
}
function It(t){
Q((t=t||{}), p), bt();
var r=j.props,
n=K(a, e({}, j.props, {}, t, { ignoreAttributes: !0 }));
(n.ignoreAttributes=N(t, "ignoreAttributes")
? t.ignoreAttributes||!1
: r.ignoreAttributes),
(j.props=n),
ut(),
Z(),
(M=D(ht, n.interactiveDebounce)),
ct(V, r, n),
(j.popperChildren=tt(V)),
j.popperInstance &&
(s.some(function (e){
return N(t, e)&&t[e]!==r[e];
})
? (j.popperInstance.destroy(),
Ct(),
j.state.isVisible&&j.popperInstance.enableEventListeners(),
j.props.followCursor&&o && yt(o))
: j.popperInstance.update());
}
function St(){
var t =
arguments.length > 0&&void 0!==arguments[0]
? arguments[0]
: P(j.props.duration, 0, p.duration[1]);
if(!j.state.isDestroyed &&
j.state.isEnabled &&
(!O||j.props.touch) &&
!$().hasAttribute("disabled") &&
!1!==j.props.onShow(j)
){
et(),
(V.style.visibility="visible"),
(j.state.isVisible = !0),
j.props.interactive&&$().classList.add(x);
var e=rt();
J(e.concat(V), 0),
(A=function (){
if(j.state.isVisible){
var r=nt();
r&&o ? yt(o):r||j.popperInstance.update(),
j.popperChildren.backdrop &&
(j.popperChildren.content.style.transitionDelay =
Math.round(t / 12) + "ms"),
j.props.sticky &&
(function (){
J([V], n ? 0:j.props.updateDuration);
var t=a.getBoundingClientRect();
!(function e(){
var r=a.getBoundingClientRect();
(t.top===r.top &&
t.right===r.right &&
t.bottom===r.bottom &&
t.left===r.left) ||
j.popperInstance.scheduleUpdate(),
(t=r),
j.state.isMounted&&requestAnimationFrame(e);
})();
})(),
J([V], j.props.updateDuration),
J(e, t),
G(e, "visible"),
(function (t, e){
pt(t, e);
})(t, function (){
j.props.aria &&
$().setAttribute("aria-".concat(j.props.aria), V.id),
j.props.onShown(j),
(j.state.isShown = !0);
});
}}),
(function (){
S = !1;
var t=nt();
j.popperInstance
? (W(j.popperInstance.modifiers, j.props.flip),
t ||
((j.popperInstance.reference=a),
j.popperInstance.enableEventListeners()),
j.popperInstance.scheduleUpdate())
: (Ct(), t||j.popperInstance.enableEventListeners());
var e=j.props.appendTo,
r="parent"===e ? a.parentNode:U(e, [a]);
r.contains(V) ||
(r.appendChild(V), j.props.onMount(j), (j.state.isMounted = !0));
})();
}}
function Ot(){
var t =
arguments.length > 0&&void 0!==arguments[0]
? arguments[0]
: P(j.props.duration, 1, p.duration[1]);
if(!j.state.isDestroyed &&
(j.state.isEnabled||T) &&
(!1!==j.props.onHide(j)||T)
){
at(),
(V.style.visibility="hidden"),
(j.state.isVisible = !1),
(j.state.isShown = !1),
(I = !1),
j.props.interactive&&$().classList.remove(x);
var e=rt();
J(e, t),
G(e, "hidden"),
(function (t, e){
pt(t, function (){
!j.state.isVisible &&
V.parentNode &&
V.parentNode.contains(V) &&
e();
});
})(t, function (){
Y||R(),
j.props.aria&&$().removeAttribute("aria-".concat(j.props.aria)),
j.popperInstance.disableEventListeners(),
(j.popperInstance.options.placement=j.props.placement),
V.parentNode.removeChild(V),
j.props.onHidden(j),
(j.state.isMounted = !1);
});
}}
}
var mt = !1;
function ut(t, a){
Q(a||{}, p),
mt ||
(document.addEventListener("touchstart", z, u),
window.addEventListener("blur", V),
(mt = !0));
var r,
n=e({}, p, {}, a);
(r=t),
"[object Object]"!=={}.toString.call(r) ||
r.addEventListener ||
(function (t){
var e={
isVirtual: !0,
attributes: t.attributes||{},
contains: function (){},
setAttribute: function (e, a){
t.attributes[e]=a;
},
getAttribute: function (e){
return t.attributes[e];
},
removeAttribute: function (e){
delete t.attributes[e];
},
hasAttribute: function (e){
return e in t.attributes;
},
addEventListener: function (){},
removeEventListener: function (){},
classList: {
classNames: {},
add: function (e){
t.classList.classNames[e] = !0;
},
remove: function (e){
delete t.classList.classNames[e];
},
contains: function (e){
return e in t.classList.classNames;
},
},
};
for (var a in e) t[a]=e[a];
})(t);
var i=(function (t){
if(j(t)) return [t];
if(t instanceof NodeList) return d(t);
if(Array.isArray(t)) return t;
try {
return d(document.querySelectorAll(t));
} catch (t){
return [];
}})(t).reduce(function (t, e){
var a=e&&ft(e, n);
return a&&t.push(a), t;
}, []);
return j(t) ? i[0]:i;
}
return (
(ut.version="4.3.5"),
(ut.defaults=p),
(ut.setDefaults=function (t){
Object.keys(t).forEach(function (e){
p[e]=t[e];
});
}),
(ut.hideAll=function (){
var t =
arguments.length > 0&&void 0!==arguments[0] ? arguments[0]:{},
e=t.exclude,
a=t.duration;
d(document.querySelectorAll(L)).forEach(function (t){
var r,
n=t._tippy;
if(n){
var i = !1;
e &&
(i =
(r=e)._tippy&&!l.call(r, L)
? n.reference===e
: t===e.popper),
i||n.hide(a);
}});
}),
(ut.group=function (t){
var a =
arguments.length > 1&&void 0!==arguments[1] ? arguments[1]:{},
r=a.delay,
n=void 0===r ? t[0].props.delay:r,
i=a.duration,
o=void 0===i ? 0:i,
p = !1;
function s(t){
(p=t), f();
}
function c(e){
e._originalProps.onShow(e),
t.forEach(function (t){
t.set({ duration: o }), t.state.isVisible&&t.hide();
}),
s(!0);
}
function l(t){
t._originalProps.onHide(t), s(!1);
}
function d(t){
t._originalProps.onShown(t),
t.set({ duration: t._originalProps.duration });
}
function f(){
t.forEach(function (t){
t.set({
onShow: c,
onShown: d,
onHide: l,
delay: p ? [0, Array.isArray(n) ? n[1]:n]:n,
duration: p ? o:t._originalProps.duration,
});
});
}
t.forEach(function (t){
t._originalProps
? t.set(t._originalProps)
: (t._originalProps=e({}, t.props));
}),
f();
}),
a &&
setTimeout(function (){
d(document.querySelectorAll("[data-tippy]")).forEach(function (t){
var e=t.getAttribute("data-tippy");
e&&ut(t, { content: e });
});
}),
(function (t){
if(a){
var e=document.createElement("style");
(e.type="text/css"),
(e.textContent=t),
e.setAttribute("data-tippy-stylesheet", "");
var r=document.head,
n=r.querySelector("style,link");
n ? r.insertBefore(e, n):r.appendChild(e);
}})(
'.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{transition-timing-function:cubic-bezier(.165,.84,.44,1);max-width:calc(100% - 8px);pointer-events:none;outline:0}.tippy-popper[x-placement^=top] .tippy-backdrop{border-radius:40% 40% 0 0}.tippy-popper[x-placement^=top] .tippy-roundarrow{bottom:-7px;bottom:-6.5px;-webkit-transform-origin:50% 0;transform-origin:50% 0;margin:0 3px}.tippy-popper[x-placement^=top] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.tippy-popper[x-placement^=top] .tippy-arrow{border-top:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;bottom:-7px;margin:0 3px;-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=top] .tippy-backdrop{-webkit-transform-origin:0 25%;transform-origin:0 25%}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-55%);transform:scale(1) translate(-50%,-55%)}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-50%,-45%);transform:scale(.2) translate(-50%,-45%);opacity:0}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px)}.tippy-popper[x-placement^=top] [data-animation=perspective]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateY(-10px);transform:perspective(700px) translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) rotateX(60deg);transform:perspective(700px) rotateX(60deg)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-popper[x-placement^=top] [data-animation=scale]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(-10px) scale(.5);transform:translateY(-10px) scale(.5)}.tippy-popper[x-placement^=bottom] .tippy-backdrop{border-radius:0 0 30% 30%}.tippy-popper[x-placement^=bottom] .tippy-roundarrow{top:-7px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;margin:0 3px}.tippy-popper[x-placement^=bottom] .tippy-roundarrow svg{position:absolute;left:0}.tippy-popper[x-placement^=bottom] .tippy-arrow{border-bottom:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;top:-7px;margin:0 3px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.tippy-popper[x-placement^=bottom] .tippy-backdrop{-webkit-transform-origin:0 -50%;transform-origin:0 -50%}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-45%);transform:scale(1) translate(-50%,-45%)}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-50%);transform:scale(.2) translate(-50%);opacity:0}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(20px);transform:translateY(20px)}.tippy-popper[x-placement^=bottom] [data-animation=perspective]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateY(10px);transform:perspective(700px) translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) rotateX(-60deg);transform:perspective(700px) rotateX(-60deg)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-popper[x-placement^=bottom] [data-animation=scale]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(10px) scale(.5);transform:translateY(10px) scale(.5)}.tippy-popper[x-placement^=left] .tippy-backdrop{border-radius:50% 0 0 50%}.tippy-popper[x-placement^=left] .tippy-roundarrow{right:-12px;-webkit-transform-origin:33.33333333% 50%;transform-origin:33.33333333% 50%;margin:3px 0}.tippy-popper[x-placement^=left] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.tippy-popper[x-placement^=left] .tippy-arrow{border-left:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;right:-7px;margin:3px 0;-webkit-transform-origin:0 50%;transform-origin:0 50%}.tippy-popper[x-placement^=left] .tippy-backdrop{-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%)}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-75%,-50%);transform:scale(.2) translate(-75%,-50%);opacity:0}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(-20px);transform:translateX(-20px)}.tippy-popper[x-placement^=left] [data-animation=perspective]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateX(-10px);transform:perspective(700px) translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) rotateY(-60deg);transform:perspective(700px) rotateY(-60deg)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-popper[x-placement^=left] [data-animation=scale]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(-10px) scale(.5);transform:translateX(-10px) scale(.5)}.tippy-popper[x-placement^=right] .tippy-backdrop{border-radius:0 50% 50% 0}.tippy-popper[x-placement^=right] .tippy-roundarrow{left:-12px;-webkit-transform-origin:66.66666666% 50%;transform-origin:66.66666666% 50%;margin:3px 0}.tippy-popper[x-placement^=right] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.tippy-popper[x-placement^=right] .tippy-arrow{border-right:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;left:-7px;margin:3px 0;-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.tippy-popper[x-placement^=right] .tippy-backdrop{-webkit-transform-origin:-50% 0;transform-origin:-50% 0}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%)}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-25%,-50%);transform:scale(.2) translate(-25%,-50%);opacity:0}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(20px);transform:translateX(20px)}.tippy-popper[x-placement^=right] [data-animation=perspective]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateX(10px);transform:perspective(700px) translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) rotateY(60deg);transform:perspective(700px) rotateY(60deg)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-popper[x-placement^=right] [data-animation=scale]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(10px) scale(.5);transform:translateX(10px) scale(.5)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;padding:.3125rem .5625rem;line-height:1.4;text-align:center;background-color:#333}.tippy-tooltip[data-size=small]{padding:.1875rem .375rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.375rem .75rem;font-size:1rem}.tippy-tooltip[data-animatefill]{overflow:hidden;background-color:initial}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] .tippy-roundarrow path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow,.tippy-roundarrow{position:absolute;width:0;height:0}.tippy-roundarrow{width:18px;height:7px;fill:#333;pointer-events:none}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop:after{content:"";float:left;padding-top:100%}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}'
),
ut
);
});
(function name($, window, document){
var yayVariationForm=function ($form){
var self=this;
self.$form=$form;
self.initStock={};
self.variantWrapperClass=".yay-variant-wrapper";
self.termClass=".yay-swatches-attribute-term";
self.swatchActive="yay-swatches-active";
self.swatchActiveClass=".yay-swatches-active";
self.swatchTickSelected="yay-swatches-tick-selected";
self.swatchRadioClass="yay-swatches-swatch-radio";
self.attrPreviewWrapper="span.yay-swatches-attribute-preview-wrapper";
self.unavailableClass="disabled wc-variation-is-unavailable";
self.$swatches=$form.find(self.termClass);
self.$variantions=$form.find(".variations");
self.$swatchWrapper=$form.find(self.variantWrapperClass);
self.$attributeFields=$form.find(".variations select");
self.$singleVariation=$form.find(".single_variation");
self.variationData=$form.data("product_variations");
self.useAjax=false===self.variationData;
self.currentOptions={};
self.globalAvailableOptions=[];
self.termSelected={};
self.inStockVariants={};
self.getAvailableOptions=self.getAvailableOptions.bind(self);
self.resetSwatches=self.resetSwatches.bind(self);
self.getChosenAttributes=self.getChosenAttributes.bind(self);
self.soldOutClass=self.getSoldOutClasessName.bind(self);
self.getLableName=self.getLableName.bind(self);
self.reloadPage=self.reloadPage.bind(self);
self.lockSwatch=self.lockSwatch.bind(self);
self.doSelect=self.doSelect.bind(self);
self.variantAvailableToObj=self.variantAvailableToObj.bind(self);
self.handleSoldOutSwatch=self.handleSoldOutSwatch.bind(self);
self.getAttributesFromVariation =
self.getAttributesFromVariation.bind(self);
self.onChangeSelect=self.onChangeSelect.bind(self);
self.autoResetSwatches=self.autoResetSwatches.bind(self);
$form.on("click", self.termClass, { yayVariationForm: self }, self.onClick);
$form.on("change",
".variations select",
{ yayVariationForm: self },
self.onSelect
);
$form.on("check_variations",
{ yayVariationForm: self },
self.onFindVariation
);
$form.on("found_variation",
{ yayVariationForm: self },
self.onFoundVariation
);
$form.find(".reset_variations").on("click",
{
yayVariationForm: self,
},
self.resetSwatches
);
self.reloadPage(self);
};
yayVariationForm.prototype.doSelect=function (selectKey, value){
const { currentOptions, globalAvailableOptions, inStockVariants }=this;
let stock=inStockVariants;
const varis=globalAvailableOptions;
if(!selectKey||!value){
return;
}
currentOptions[selectKey]=value;
const newStock=JSON.parse(JSON.stringify(this.initStock));
newStock[selectKey]=stock[selectKey];
stock=newStock;
const stockKeys=Object.keys(stock);
varis.forEach((vari)=> {
stockKeys.forEach((checkKey)=> {
if(selectKey===checkKey){
return;
}
for (let index=0; index < stockKeys.length; index++){
const compareKey=stockKeys[index];
if(compareKey===checkKey){
continue;
}
if(currentOptions[compareKey] &&
vari[compareKey]!==currentOptions[compareKey]
){
return;
}}
stock[checkKey][vari[checkKey]]=true;
});
});
this.inStockVariants=stock;
};
yayVariationForm.prototype.reloadPage=function (form){
const { variationData, getAvailableOptions, $form }=form;
if(form.useAjax){
$form.block({
message: null,
overlayCSS: { background: "#fff", opacity: 0.6 },
});
$.ajax({
url: yaySwatches.ajaxurl,
type: "POST",
data: {
action: "get_available_variation",
product_id: $form.data("product_id"),
_wpnonce: yaySwatches.nonce,
},
success: function success(res){
form.handleSoldOutSwatch(res);
},
complete: function complete(){
$form.unblock();
$form.css({ visibility: "visible", height: "auto", opacity: 1 });
},
});
}else{
const availableVariations=getAvailableOptions(variationData);
form.handleSoldOutSwatch(availableVariations);
$form.css({ visibility: "visible", height: "auto", opacity: 1 });
}};
yayVariationForm.prototype.handleSoldOutSwatch=function (args_available){
this.globalAvailableOptions=args_available;
this.variantAvailableToObj(args_available);
const attributes_data=this.getChosenAttributes().data;
const attributes=this.getAttributesFromVariation(attributes_data);
for (const [key, value] of Object.entries(attributes)){
this.doSelect(key, value);
}
if(yay_swatch_is_soldout_hide_interact(yaySwatches, this.$form)){
if(Object.keys(this.currentOptions).length){
this.lockSwatch();
}}else{
this.lockSwatch();
}
this.autoResetSwatches();
};
yayVariationForm.prototype.variantAvailableToObj=function (res){
if(!res.length) return;
let stock={};
Object.keys(res[0]).forEach((k)=> {
stock[k]={};});
this.initStock=JSON.parse(JSON.stringify(stock));
res.forEach((vari)=> {
for (const [attr, val] of Object.entries(vari)){
stock[attr][val]=true;
}});
this.inStockVariants=stock;
};
yayVariationForm.prototype.lockSwatch=function (){
const { $swatchWrapper, soldOutClass, termClass }=this;
const yaySoldOutClass=soldOutClass();
$swatchWrapper.each((index, swatchWrap)=> {
const $swatch=$(swatchWrap).find(termClass);
$swatch.each((idx, swatch)=> {
const swatchAttr=swatch.dataset.attribute;
const swatchValue=swatch.dataset.term;
if(this?.inStockVariants[swatchAttr]?.[swatchValue]){
swatch.classList.remove(...yaySoldOutClass.split(" "));
if(swatch.dataset.type==="radio"){
const $label=$(swatch).closest("label");
$label.removeClass("yay-swatches-non-interactive");
}}else{
swatch.classList.add(...yaySoldOutClass.split(" "));
if(swatch.dataset.type==="radio" &&
yaySwatches?.sold_out?.soldOutShowHideOptions==="show_disable"
){
const $label=$(swatch).closest("label");
$label.addClass("yay-swatches-non-interactive");
}}
});
});
};
yayVariationForm.prototype.onClick=function (event){
const yayVariationForm=event.data.yayVariationForm;
const {
$form,
$attributeFields,
swatchActive,
variantWrapperClass,
swatchActiveClass,
unavailableClass,
getLableName,
swatchTickSelected,
}=yayVariationForm;
let _this=event.target,
no_matching_txt =
wc_add_to_cart_variation_params.i18n_no_matching_variations_text,
dataset=_this.dataset;
if(!dataset.attribute&&$(this)[0]){
_this=$(this)[0];
dataset=_this.dataset;
}
if("radio"!==$(_this).data("type")){
event.stopPropagation();
event.preventDefault();
}
const field=yay_swatch_get_field_by_term_selected(
$form,
dataset,
$attributeFields,
yaySwatches
);
if(field&&field.find(`option[value="${dataset.term}"]`).length){
yayVariationForm.termSelected={
key: dataset.attribute,
value: dataset.term,
};
field.val(dataset.term).change();
}else{
if($attributeFields.length > 1){
alert(no_matching_txt);
return;
}
if(yay_swatch_is_soldout_hide_interact(yaySwatches, $form)){
yayVariationForm.lockSwatch();
}
$form.find(".reset_variations").css("visibility", "visible");
$form
.find(".single_variation")
.show()
.html("<p>" + no_matching_txt + "</p>");
$(".single_add_to_cart_button").addClass(unavailableClass);
}
$(swatchActiveClass, _this.closest(variantWrapperClass)).removeClass(swatchActive
);
_this.classList.add(swatchActive);
const $variantWrapper=_this.closest(variantWrapperClass);
$($variantWrapper)
.find(".yay-swatches-color")
.removeClass(swatchTickSelected);
if($variantWrapper?.dataset.tickSelected==="enable" &&
($variantWrapper?.dataset.type==="variant_image" ||
$variantWrapper?.dataset.type==="custom")
){
const $color=$(_this).find(".yay-swatches-color");
$color.addClass(swatchTickSelected);
const tickColor=getTickColor($color.attr("style")||"");
$color.css("--yay-swatches-tick-color", tickColor);
}
getLableName($(this));
};
yayVariationForm.prototype.resetSwatches=function (event){
const {
$form,
$swatches,
$variantions,
attrPreviewWrapper,
swatchRadioClass,
soldOutClass,
swatchActive,
variantAvailableToObj,
globalAvailableOptions,
swatchTickSelected,
}=this;
const sold_out_class=soldOutClass();
$swatches.removeClass(`${sold_out_class} ${swatchActive}`);
$swatches.find(".yay-swatches-color").removeClass(swatchTickSelected);
yay_swatch_product_hide_clear_button_compatibles($form, yaySwatches);
if($swatches.hasClass(swatchRadioClass)){
$swatches.prop("checked", false);
}
$variantions.find(attrPreviewWrapper).remove();
this.termSelected={ key: "", value: "" };
variantAvailableToObj(globalAvailableOptions);
};
yayVariationForm.prototype.getChosenAttributes=function (){
var data={};
var count=0;
var chosen=0;
this.$attributeFields.each(function (){
var attribute_name =
$(this).data("attribute_name")||$(this).attr("name");
var value=$(this).val()||"";
if(value.length > 0){
chosen++;
}
count++;
data[attribute_name]=value;
});
return {
count: count,
chosenCount: chosen,
data: data,
};};
yayVariationForm.prototype.onSelect=function (event){
const { yayVariationForm }=event.data;
const key_selected=yay_swatch_get_key_by_term_selected(
event,
yaySwatches
);
yayVariationForm.termSelected={
key: key_selected,
value: event.target.value,
};
if(!$(event.target).parent().hasClass("yay-swatch-variant-default-wrapper")
){
if(event.target.value===""){
$(event.target)
.closest("tr")
.find(yayVariationForm.attrPreviewWrapper)
.remove();
yayVariationForm.termSelected={
key: key_selected,
value: "",
};}}
yayVariationForm.onChangeSelect();
};
yayVariationForm.prototype.onChangeSelect=function (){
const {
getAttributesFromVariation,
getChosenAttributes,
termSelected,
doSelect,
lockSwatch,
}=this;
const attributes_data=getChosenAttributes().data;
currentOptions=getAttributesFromVariation(attributes_data);
this.currentOptions=currentOptions;
doSelect(termSelected.key, termSelected.value);
if(yay_swatch_is_soldout_hide_interact(yaySwatches, this.$form)){
if(termSelected.key!=""&&termSelected.value!=""){
lockSwatch();
}}else{
lockSwatch();
}};
yayVariationForm.prototype.autoResetSwatches=function (){
for (const [key, value] of Object.entries(this.currentOptions)){
if(!this?.inStockVariants[key]?.[value]){
setTimeout(()=> {
this.$form.find(".reset_variations").trigger("click");
}, 0);
break;
}}
};
yayVariationForm.prototype.onFindVariation=function (event){
const {
getLableName,
getChosenAttributes,
$form,
getAttributesFromVariation,
}=event.data.yayVariationForm;
const attributes=getChosenAttributes();
const current_attributes=getAttributesFromVariation(attributes.data);
yay_swatch_get_label_by_term_selected(
$form,
current_attributes,
getLableName,
yaySwatches
);
};
yayVariationForm.prototype.onFoundVariation=function (
event,
variation,
purchasable
){
yay_swatch_product_change_image_compatibles(
yaySwatches.is_theme_active,
variation
);
};
yayVariationForm.prototype.getAvailableOptions=function (variationData){
const options=[];
const attrDefaults=yay_swatch_get_all_products_attributes(
this.$form.closest(".product")
);
variationData.forEach((variation)=> {
if(!variation.is_in_stock) return;
const attrs=variation.attributes;
const emptyAttributes=Object.entries(attrs).filter(([key, value])=> value===""
);
if(emptyAttributes.length > 0){
let expanded=[attrs];
emptyAttributes.forEach(([key])=> {
const defaults=attrDefaults[key]||[""];
const newExpanded=[];
expanded.forEach((base)=> {
defaults.forEach((val)=> {
newExpanded.push({
...base,
[key]: val,
});
});
});
expanded=newExpanded;
});
expanded.forEach((exp)=> {
options.push(this.getAttributesFromVariation(exp));
});
}else{
options.push(this.getAttributesFromVariation(attrs));
}});
return options;
};
yayVariationForm.prototype.getSoldOutClasessName=function (){
let classes_name="yay-swatches-disabled";
switch (yaySwatches.sold_out.soldOutShowHideOptions){
case "show":
switch (yaySwatches.sold_out.soldOutShowStyle){
case "no_effect":
classes_name="yay-swatches-no-effect";
break;
default:
break;
}
break;
case "show_disable":
switch (yaySwatches.sold_out.soldOutShowStyle){
case "no_effect":
classes_name =
"yay-swatches-no-effect yay-swatches-non-interactive";
break;
default:
classes_name="yay-swatches-disabled yay-swatches-non-interactive";
break;
}
break;
default:
classes_name="yay-swatches-disabled-hide";
break;
}
return classes_name;
};
yayVariationForm.prototype.getLableName=function (_this, autoSet=false){
const label_html=".label strong.yay-swatches-attribute-preview",
_label_text = !autoSet ? _this.data("label-text"):autoSet.text,
_parent=".variations tr";
if(_this.closest(_parent).find(label_html).html()){
_this.closest(_parent).find(label_html).text(_label_text);
}else{
const html=`<span class="yay-swatches-attribute-preview-wrapper">: <strong class="yay-swatches-attribute-preview">${_label_text}</strong></span>`;
_this.closest(_parent).find(".label label").append(html);
}};
yayVariationForm.prototype.getAttributesFromVariation=function (
attributes
){
const currentOptions={};
const AttributePrefix="attribute_";
for (const [attr, val] of Object.entries(attributes)){
const haveAttributePrefix=attr.indexOf(AttributePrefix);
currentOptions[
haveAttributePrefix!==-1
? attr.substring(AttributePrefix.length)
: attr
]=val;
}
return currentOptions;
};
$.fn.yay_variation_form=function (){
return new yayVariationForm(this);
};
$(function (){
if(typeof wc_add_to_cart_variation_params!=="undefined"){
yay_swatch_frontend_start(yaySwatches);
yay_swatch_compatibles();
}});
})(jQuery, window, document);
jQuery(function(e){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,r=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(f){t=!1}function n(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function o(e){t&&(localStorage.setItem(r,e),sessionStorage.setItem(r,e))}var a={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(r){r&&r.fragments&&(e.each(r.fragments,function(t,r){e(t).replaceWith(r)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(r.fragments)),o(r.cart_hash),r.cart_hash&&n()),e(document.body).trigger("wc_fragments_refreshed"))},error:function(){e(document.body).trigger("wc_fragments_ajax_error")}};function s(){e.ajax(a)}if(t){var i=null;e(document.body).on("wc_fragment_refresh updated_wc_div",function(){s()}),e(document.body).on("added_to_cart removed_from_cart",function(e,t,a){var s=sessionStorage.getItem(r);null!==s&&s!==undefined&&""!==s||n(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),o(a)}),e(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(s,864e5)}),e(window).on("storage onstorage",function(e){r===e.originalEvent.key&&localStorage.getItem(r)!==sessionStorage.getItem(r)&&s()}),e(window).on("pageshow",function(t){t.originalEvent.persisted&&(e(".widget_shopping_cart_content").empty(),e(document.body).trigger("wc_fragment_refresh"))});try{var c=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(r),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=1*m+864e5,w=(new Date).getTime();if(d<w)throw"Fragment expired";i=setTimeout(s,d-w)}if(!c||!c["div.widget_shopping_cart_content"]||_!==g)throw"No fragment";e.each(c,function(t,r){e(t).replaceWith(r)}),e(document.body).trigger("wc_fragments_loaded")}catch(f){s()}}else s();Cookies.get("woocommerce_items_in_cart")>0?e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),e(document.body).on("adding_to_cart",function(){e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){s()})});