").parent().html()},a.prototype._reflexEvent=function(t){return"[object Boolean]"==={}.toString.call(t)?"click":t},a.prototype._reposition=function(o,n){var i,r,s,a,l,p,h;if(a=o[0].offsetWidth,r=o[0].offsetHeight,l=(h=o.offset()).left,p=h.top,(i=t(e).height()-h.top-o.outerHeight())<0&&(h.top=h.top+i),(s=t("html").outerWidth()-h.left-o.outerWidth())<0&&(h.left=h.left+s),h.top<0&&(h.top=0),h.left<0&&(h.left=0),o.offset(h),"bottom"===n.placement||"top"===n.placement){if(l!==h.left)return this._replaceArrow(o,2*(h.left-l),a,"left")}else if(p!==h.top)return this._replaceArrow(o,2*(h.top-p),r,"top")},a.prototype._replaceArrow=function(t,e,o,n){return t.find(".arrow").css(n,e?50*(1-e/o)+"%":"")},a.prototype._scrollIntoView=function(e){var o,n,i,r,s,a,l,p,h;if(l=this.getStep(e),o=t(l.element),this._isOrphan(l))return this._showPopoverAndOverlay(e);if(!o.length)return this._showPopoverAndOverlay(e);switch(n=t(window),s=o.offset().top,r=o.outerHeight(),p=n.height(),a=0,l.placement){case"top":a=Math.max(0,s-p/2);break;case"left":case"right":a=Math.max(0,s+r/2-p/2);break;case"bottom":a=Math.max(0,s+r-p/2)}return this._debug("Scroll into view. ScrollTop: "+a+". Element offset: "+s+". Window height: "+p+"."),i=0,t("body, html").stop(!0,!0).animate({scrollTop:Math.ceil(a)},(h=this,function(){if(2==++i)return h._showPopoverAndOverlay(e),h._debug("Scroll into view.\nAnimation end element offset: "+o.offset().top+".\nWindow height: "+n.height()+".")}))},a.prototype._initMouseNavigation=function(){var o;return o=this,t(e).off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='prev']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='next']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='end']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='pause-resume']").on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='next']",function(t){return function(e){return e.preventDefault(),t.next()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='prev']",function(t){return function(e){if(e.preventDefault(),t._current>0)return t.prev()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='end']",function(t){return function(e){return e.preventDefault(),t.end()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='pause-resume']",(function(e){var n;return e.preventDefault(),(n=t(this)).text(o._paused?n.data("pause-text"):n.data("resume-text")),o._paused?o.resume():o.pause()}))},a.prototype._initKeyboardNavigation=function(){var o;if(this._options.keyboard)return t(e).on("keyup.tour-"+this._options.name,(o=this,function(e){if(e.which)switch(e.which){case 39:if(0==t(".tour-step-element-reflexOnly").length)return e.preventDefault(),o._isLast()?o.end():o.next();break;case 37:if(0==t(".tour-step-element-reflexOnly").length&&(e.preventDefault(),o._current>0))return o.prev();break;case 27:return e.preventDefault(),o.end()}}))},a.prototype._makePromise=function(e){return e&&t.isFunction(e.then)?e:null},a.prototype._callOnPromiseDone=function(t,e,o){return t?t.then((n=this,function(t){return e.call(n,o)})):e.call(this,o);var n},a.prototype._fixBootstrapSelectPickerZindex=function(o){var n;this._isOrphan(o)||0==t(e).find(".popover.tour-"+this._options.name+".tour-"+this._options.name+"-"+this.getCurrentStepIndex()).length&&(n="select"==t(o.element)[0].tagName.toLowerCase()?t(o.element):t(o.element).find("select:first")).length>0&&n.parent().hasClass("bootstrap-select")&&(this._debug("Fixing Bootstrap SelectPicker"),n.parent().css("z-index","1111"),this._setStepFlag(this.getCurrentStepIndex(),"elementBootstrapSelectpicker",n))},a.prototype._unfixBootstrapSelectPickerZindex=function(t){var e=this._getStepFlag(this.getCurrentStepIndex(),"elementBootstrapSelectpicker");e&&(this._debug("Unfixing Bootstrap SelectPicker"),e.parent().css("z-index","auto"))},a.prototype._createOverlayElements=function(){var e=t('
'),n=t('
');0===t(o).length&&t(this._options.backdropContainer).append(e),0===t(i).length&&t(this._options.backdropContainer).append(n)},a.prototype._destroyOverlayElements=function(e){t(o).remove(),t(i).remove(),t(s).remove(),t(".tour-highlight-element").removeClass("tour-highlight-element")},a.prototype._hideBackdrop=function(e){var s=e||null;s?(this._hideHighlightOverlay(s),"function"==typeof s.backdropOptions.animation.backdropHide?s.backdropOptions.animation.backdropHide(t(o)):(t(o).addClass(s.backdropOptions.animation.backdropHide),t(o).hide(0,(function(){t(this).removeClass(s.backdropOptions.animation.backdropHide)})))):(t(o).hide(0),t(i).hide(0),t(n).remove(),t(r).remove())},a.prototype._showBackdrop=function(e){var n=e||null;t(o).removeClass().addClass("tour-backdrop").hide(0),n?("function"==typeof n.backdropOptions.animation.backdropShow?n.backdropOptions.animation.backdropShow(t(o)):(t(o).addClass(n.backdropOptions.animation.backdropShow),t(o).show(0,(function(){t(this).removeClass(n.backdropOptions.animation.backdropShow)}))),this._isOrphan(n)?t(i).is(":visible")&&this._hideHighlightOverlay(n):t(i).is(":visible")?this._positionHighlightOverlay(n):this._showHighlightOverlay(n)):(t(o).show(0),t(i).show(0))},a.prototype._createStepSubset=function(e){var o=this,n=t(e.element);return{element:n,container:e.container,autoscroll:e.autoscroll,backdrop:e.backdrop,preventInteraction:e.preventInteraction,isOrphan:this._isOrphan(e),orphan:e.orphan,duration:e.duration,delay:e.delay,fnPositionHighlight:function(){o._debug("Positioning highlight (fnPositionHighlight) over step element "+n[0].id+":\nWidth = "+n.outerWidth()+", height = "+n.outerHeight()+"\nTop: "+n.offset().top+", left: "+n.offset().left),t(i).width(n.outerWidth()).height(n.outerHeight()).offset(n.offset())}}},a.prototype._showHighlightOverlay=function(e){var o=t(".tour-highlight-element");o.length>0&&o.removeClass("tour-highlight-element");var n=t(e.element).parents(".modal:first");n.length?n.addClass("tour-highlight-element"):t(e.element).addClass("tour-highlight-element"),t(i).removeClass().addClass("tour-highlight").hide(0),"function"==typeof e.backdropOptions.animation.highlightShow?e.backdropOptions.animation.highlightShow(t(i),this._createStepSubset(e)):(t(i).css({opacity:e.backdropOptions.highlightOpacity,"background-color":e.backdropOptions.highlightColor}),t(i).width(0).height(0).offset({top:0,left:0}),t(i).show(0),t(i).addClass(e.backdropOptions.animation.highlightShow),t(i).width(t(e.element).outerWidth()).height(t(e.element).outerHeight()).offset(t(e.element).offset()),t(i).one("webkitAnimationEnd oanimationend msAnimationEnd animationend",(function(){t(i).removeClass(e.backdropOptions.animation.highlightShow)})))},a.prototype._positionHighlightOverlay=function(e){var o=t(".tour-highlight-element");o.length>0&&o.removeClass("tour-highlight-element");var n=t(e.element).parents(".modal:first");n.length?n.addClass("tour-highlight-element"):t(e.element).addClass("tour-highlight-element"),"function"==typeof e.backdropOptions.animation.highlightTransition?e.backdropOptions.animation.highlightTransition(t(i),this._createStepSubset(e)):(t(i).removeClass().addClass("tour-highlight"),t(i).css({opacity:e.backdropOptions.highlightOpacity,"background-color":e.backdropOptions.highlightColor}),t(i).addClass(e.backdropOptions.animation.highlightTransition),t(i).width(t(e.element).outerWidth()).height(t(e.element).outerHeight()).offset(t(e.element).offset()),t(i).one("webkitAnimationEnd oanimationend msAnimationEnd animationend",(function(){t(i).removeClass(e.backdropOptions.animation.highlightTransition)})))},a.prototype._hideHighlightOverlay=function(e){t(".tour-highlight-element").removeClass("tour-highlight-element"),"function"==typeof e.backdropOptions.animation.highlightHide?e.backdropOptions.animation.highlightHide(t(i),this._createStepSubset(e)):(t(i).addClass(e.backdropOptions.animation.highlightHide),t(i).one("webkitAnimationEnd oanimationend msAnimationEnd animationend",(function(){t(i).removeClass().addClass("tour-highlight"),t(i).hide(0)})))},a.prototype._updateBackdropElements=function(e){e.backdrop!=t(o).is(":visible")?e.backdrop?this._showBackdrop(e):this._hideBackdrop(e):e.backdrop?this._isOrphan(e)?t(i).is(":visible")&&this._hideHighlightOverlay(e):t(i).is(":visible")?this._positionHighlightOverlay(e):this._showHighlightOverlay(e):t(i).is(":visible")&&this._hideHighlightOverlay(e),t(n).remove(),t(r).remove(),1==e.backdropOptions.backdropSibling?(t(i).addClass("tour-behind"),t(o).addClass("tour-zindexFix"),t(i).clone().prop("id",r.substring(1)).removeClass("tour-behind").insertAfter(".tour-highlight-element"),t(o).clone().prop("id",n.substring(1)).removeClass("tour-zindexFix").insertAfter(".tour-highlight-element")):(t(i).removeClass("tour-behind"),t(o).removeClass("tour-zindexFix"))},a.prototype._updateOverlayElements=function(e){e.preventInteraction?(this._debug("preventInteraction == true, adding overlay"),0===t(s).length&&t('
').insertAfter(i),t(s).width(t(e.element).outerWidth()).height(t(e.element).outerHeight()).offset(t(e.element).offset())):t(s).remove()},a.prototype._clearTimer=function(){return window.clearTimeout(this._timer),this._timer=null,this._duration=null,this._duration},a.prototype._getProtocol=function(t){return(t=t.split("://")).length>1?t[0]:"http"},a.prototype._getHost=function(t){return(t=(t=t.split("//")).length>1?t[1]:t[0]).split("/")[0]},a.prototype._getPath=function(t){return t.replace(/\/?$/,"").split("?")[0].split("#")[0]},a.prototype._getQuery=function(t){return this._getParams(t,"?")},a.prototype._getHash=function(t){return this._getParams(t,"#")},a.prototype._getParams=function(t,e){var o,n,i,r,s;if(1===(r=t.split(e)).length)return{};for(s={},o=0,n=(r=r[1].split("&")).length;o