!function(t){"object"==typeof exports&&"undefined"!=typeof module?(module.exports=t(),module.exports.introJs=function(){return console.warn('Deprecated: please use require("intro.js") directly, instead of the introJs method of the function'),t().apply(this,arguments)}):"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).introJs=t()}(function(){function t(t){this._targetElement=t,this._introItems=[],this._options={nextLabel:"Next →",prevLabel:"← Back",skipLabel:"Skip",doneLabel:"Done",hidePrev:!1,hideNext:!1,tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.8,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintAnimation:!0,buttonClass:"introjs-button"}}function e(){this.refresh.call(this)}function i(t){var e=null===t.code?t.which:t.code;if(null===e&&(e=null===t.charCode?t.keyCode:t.charCode),"Escape"!==e&&27!==e||!0!==this._options.exitOnEsc){if("ArrowLeft"===e||37===e)s.call(this);else if("ArrowRight"===e||39===e)o.call(this);else if("Enter"===e||13===e){var i=t.target||t.srcElement;i&&i.className.match("introjs-prevbutton")?s.call(this):i&&i.className.match("introjs-skipbutton")?(this._introItems.length-1===this._currentStep&&"function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),l.call(this,this._targetElement)):i&&i.getAttribute("data-stepnumber")?i.click():o.call(this),t.preventDefault?t.preventDefault():t.returnValue=!1}}else l.call(this,this._targetElement)}function n(t){if(null===t||"object"!=typeof t||void 0!==t.nodeType)return t;var e={};for(var i in t)e[i]=void 0!==window.jQuery&&t[i]instanceof window.jQuery?t[i]:n(t[i]);return e}function o(){this._direction="forward",void 0!==this._currentStepNumber&&b(this._introItems,(function(t,e){t.step===this._currentStepNumber&&(this._currentStep=e-1,this._currentStepNumber=void 0)}).bind(this)),void 0===this._currentStep?this._currentStep=0:++this._currentStep;var t=this._introItems[this._currentStep],e=!0;return void 0!==this._introBeforeChangeCallback&&(e=this._introBeforeChangeCallback.call(this,t.element)),!1===e?(--this._currentStep,!1):this._introItems.length<=this._currentStep?("function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),void l.call(this,this._targetElement)):void p.call(this,t)}function s(){if(this._direction="backward",0===this._currentStep)return!1;--this._currentStep;var t=this._introItems[this._currentStep],e=!0;if(void 0!==this._introBeforeChangeCallback&&(e=this._introBeforeChangeCallback.call(this,t.element)),!1===e)return++this._currentStep,!1;p.call(this,t)}function l(t,n){var o=!0;if(void 0!==this._introBeforeExitCallback&&(o=this._introBeforeExitCallback.call(this)),n||!1!==o){var s=t.querySelectorAll(".introjs-overlay");s&&s.length&&b(s,(function(t){t.style.opacity=0,window.setTimeout((function(){this.parentNode&&this.parentNode.removeChild(this)}).bind(t),500)}).bind(this));var l=t.querySelector(".introjs-helperLayer");l&&l.parentNode.removeChild(l);var r=t.querySelector(".introjs-tooltipReferenceLayer");r&&r.parentNode.removeChild(r);var a=t.querySelector(".introjs-disableInteraction");a&&a.parentNode.removeChild(a);var c=document.querySelector(".introjsFloatingElement");c&&c.parentNode.removeChild(c),m(),b(document.querySelectorAll(".introjs-fixParent"),function(t){w(t,/introjs-fixParent/g)}),y.off(window,"keydown",i,this,!0),y.off(window,"resize",e,this,!0),void 0!==this._introExitCallback&&this._introExitCallback.call(this),this._currentStep=void 0}}function r(t,e,i,n,o){var s,l,r,u,d;if(o=o||!1,e.style.top=null,e.style.right=null,e.style.bottom=null,e.style.left=null,e.style.marginLeft=null,e.style.marginTop=null,i.style.display="inherit",void 0!==n&&null!==n&&(n.style.top=null,n.style.left=null),this._introItems[this._currentStep])switch(e.className=("introjs-tooltip "+("string"==typeof(s=this._introItems[this._currentStep]).tooltipClass?s.tooltipClass:this._options.tooltipClass)).replace(/^\s+|\s+$/g,""),e.setAttribute("role","dialog"),"floating"!==(d=this._introItems[this._currentStep].position)&&(d=(function(t,e,i){var n=this._options.positionPrecedence.slice(),o=k(),s=q(e).height+10,l=q(e).width+20,r=t.getBoundingClientRect(),a="floating";r.bottom+s+s>o.height&&h(n,"bottom"),r.top-s<0&&h(n,"top"),r.right+l>o.width&&h(n,"right"),r.left-l<0&&h(n,"left");var c,u,d=-1!==(u=(c=i||"").indexOf("-"))?c.substr(u):"";return i&&(i=i.split("-")[0]),n.length&&(a="auto"!==i&&n.indexOf(i)>-1?i:n[0]),-1!==["top","bottom"].indexOf(a)&&(a+=function(t,e,i,n){var o=e/2,s=Math.min(i.width,window.screen.width),l=["-left-aligned","-middle-aligned","-right-aligned"];return s-tu.height?(i.className="introjs-arrow left-bottom",e.style.top="-"+(l.height-r.height-20)+"px"):i.className="introjs-arrow left";break;case"left":o||!0!==this._options.showStepNumbers||(e.style.top="15px"),r.top+l.height>u.height?(e.style.top="-"+(l.height-r.height-20)+"px",i.className="introjs-arrow right-bottom"):i.className="introjs-arrow right",e.style.right=r.width+20+"px";break;case"floating":i.style.display="none",e.style.left="50%",e.style.top="50%",e.style.marginLeft="-"+l.width/2+"px",e.style.marginTop="-"+l.height/2+"px",void 0!==n&&null!==n&&(n.style.left="-"+(l.width/2+18)+"px",n.style.top="-"+(l.height/2+18)+"px");break;case"bottom-right-aligned":i.className="introjs-arrow top-right",c(r,p=0,l,e),e.style.top=r.height+20+"px";break;case"bottom-middle-aligned":i.className="introjs-arrow top-middle",f=r.width/2-l.width/2,o&&(f+=5),c(r,f,l,e)&&(e.style.right=null,a(r,f,l,u,e)),e.style.top=r.height+20+"px";break;default:i.className="introjs-arrow top",a(r,0,l,u,e),e.style.top=r.height+20+"px"}}function a(t,e,i,n,o){return t.left+e+i.width>n.width?(o.style.left=n.width-i.width-t.left+"px",!1):(o.style.left=e+"px",!0)}function c(t,e,i,n){return t.left+t.width-e-i.width<0?(n.style.left=-t.left+"px",!1):(n.style.right=e+"px",!0)}function h(t,e){t.indexOf(e)>-1&&t.splice(t.indexOf(e),1)}function u(t){if(t){if(!this._introItems[this._currentStep])return;var e=this._introItems[this._currentStep],i=q(e.element),n=this._options.helperElementPadding;j(e.element)?_(t,"introjs-fixedTooltip"):w(t,"introjs-fixedTooltip"),"floating"===e.position&&(n=0),t.style.cssText="width: "+(i.width+n)+"px; height:"+(i.height+n)+"px; top:"+(i.top-n/2)+"px;left: "+(i.left-n/2)+"px;"}}function d(t){t.setAttribute("role","button"),t.tabIndex=0}function p(t){void 0!==this._introChangeCallback&&this._introChangeCallback.call(this,t.element);var e,i,n,a,c=this,h=document.querySelector(".introjs-helperLayer"),p=document.querySelector(".introjs-tooltipReferenceLayer"),g="introjs-helperLayer";if("string"==typeof t.highlightClass&&(g+=" "+t.highlightClass),"string"==typeof this._options.highlightClass&&(g+=" "+this._options.highlightClass),null!==h){var v=p.querySelector(".introjs-helperNumberLayer"),y=p.querySelector(".introjs-tooltiptext"),j=p.querySelector(".introjs-arrow"),k=p.querySelector(".introjs-tooltip");if(n=p.querySelector(".introjs-skipbutton"),i=p.querySelector(".introjs-prevbutton"),e=p.querySelector(".introjs-nextbutton"),h.className=g,k.style.opacity=0,k.style.display="none",null!==v){var x=this._introItems[t.step-2>=0?t.step-2:0];(null!==x&&"forward"===this._direction&&"floating"===x.position||"backward"===this._direction&&"floating"===t.position)&&(v.style.opacity=0)}(a=B(t.element))!==document.body&&H(a,t.element),u.call(c,h),u.call(c,p),b(document.querySelectorAll(".introjs-fixParent"),function(t){w(t,/introjs-fixParent/g)}),m(),c._lastShowElementTimer&&window.clearTimeout(c._lastShowElementTimer),c._lastShowElementTimer=window.setTimeout(function(){null!==v&&(v.innerHTML=t.step),y.innerHTML=t.intro,k.style.display="block",r.call(c,t.element,k,j,v),c._options.showBullets&&(p.querySelector(".introjs-bullets li > a.active").className="",p.querySelector('.introjs-bullets li > a[data-stepnumber="'+t.step+'"]').className="active"),p.querySelector(".introjs-progress .introjs-progressbar").style.cssText="width:"+O.call(c)+"%;",p.querySelector(".introjs-progress .introjs-progressbar").setAttribute("aria-valuenow",O.call(c)),k.style.opacity=1,v&&(v.style.opacity=1),void 0!==n&&null!==n&&/introjs-donebutton/gi.test(n.className)?n.focus():void 0!==e&&null!==e&&e.focus(),f.call(c,t.scrollTo,t,y)},350)}else{var S=document.createElement("div"),E=document.createElement("div"),N=document.createElement("div"),A=document.createElement("div"),L=document.createElement("div"),T=document.createElement("div"),I=document.createElement("div"),P=document.createElement("div");S.className=g,E.className="introjs-tooltipReferenceLayer",(a=B(t.element))!==document.body&&H(a,t.element),u.call(c,S),u.call(c,E),this._targetElement.appendChild(S),this._targetElement.appendChild(E),N.className="introjs-arrow",L.className="introjs-tooltiptext",L.innerHTML=t.intro,T.className="introjs-bullets",!1===this._options.showBullets&&(T.style.display="none");var q=document.createElement("ul");q.setAttribute("role","tablist");var M=function(){c.goToStep(this.getAttribute("data-stepnumber"))};b(this._introItems,function(e,i){var n=document.createElement("li"),o=document.createElement("a");n.setAttribute("role","presentation"),o.setAttribute("role","tab"),o.onclick=M,i===t.step-1&&(o.className="active"),d(o),o.innerHTML=" ",o.setAttribute("data-stepnumber",e.step),n.appendChild(o),q.appendChild(n)}),T.appendChild(q),I.className="introjs-progress",!1===this._options.showProgress&&(I.style.display="none");var R=document.createElement("div");R.className="introjs-progressbar",R.setAttribute("role","progress"),R.setAttribute("aria-valuemin",0),R.setAttribute("aria-valuemax",100),R.setAttribute("aria-valuenow",O.call(this)),R.style.cssText="width:"+O.call(this)+"%;",I.appendChild(R),P.className="introjs-tooltipbuttons",!1===this._options.showButtons&&(P.style.display="none"),A.className="introjs-tooltip",A.appendChild(L),A.appendChild(T),A.appendChild(I);var V=document.createElement("span");!0===this._options.showStepNumbers&&(V.className="introjs-helperNumberLayer",V.innerHTML=t.step,E.appendChild(V)),A.appendChild(N),E.appendChild(A),(e=document.createElement("a")).onclick=function(){c._introItems.length-1!==c._currentStep&&o.call(c)},d(e),e.innerHTML=this._options.nextLabel,(i=document.createElement("a")).onclick=function(){0!==c._currentStep&&s.call(c)},d(i),i.innerHTML=this._options.prevLabel,(n=document.createElement("a")).className=this._options.buttonClass+" introjs-skipbutton ",d(n),n.innerHTML=this._options.skipLabel,n.onclick=function(){c._introItems.length-1===c._currentStep&&"function"==typeof c._introCompleteCallback&&c._introCompleteCallback.call(c),c._introItems.length-1!==c._currentStep&&"function"==typeof c._introExitCallback&&c._introExitCallback.call(c),"function"==typeof c._introSkipCallback&&c._introSkipCallback.call(c),l.call(c,c._targetElement)},P.appendChild(n),this._introItems.length>1&&(P.appendChild(i),P.appendChild(e)),A.appendChild(P),r.call(c,t.element,A,N,V),f.call(this,t.scrollTo,t,A)}var z=c._targetElement.querySelector(".introjs-disableInteraction");z&&z.parentNode.removeChild(z),t.disableInteraction&&(function(){var t=document.querySelector(".introjs-disableInteraction");null===t&&((t=document.createElement("div")).className="introjs-disableInteraction",this._targetElement.appendChild(t)),u.call(this,t)}).call(c),0===this._currentStep&&this._introItems.length>1?(void 0!==n&&null!==n&&(n.className=this._options.buttonClass+" introjs-skipbutton"),void 0!==e&&null!==e&&(e.className=this._options.buttonClass+" introjs-nextbutton"),!0===this._options.hidePrev?(void 0!==i&&null!==i&&(i.className=this._options.buttonClass+" introjs-prevbutton introjs-hidden"),void 0!==e&&null!==e&&_(e,"introjs-fullbutton")):void 0!==i&&null!==i&&(i.className=this._options.buttonClass+" introjs-prevbutton introjs-disabled"),void 0!==n&&null!==n&&(n.innerHTML=this._options.skipLabel)):this._introItems.length-1===this._currentStep||1===this._introItems.length?(void 0!==n&&null!==n&&(n.innerHTML=this._options.doneLabel,_(n,"introjs-donebutton")),void 0!==i&&null!==i&&(i.className=this._options.buttonClass+" introjs-prevbutton"),!0===this._options.hideNext?(void 0!==e&&null!==e&&(e.className=this._options.buttonClass+" introjs-nextbutton introjs-hidden"),void 0!==i&&null!==i&&_(i,"introjs-fullbutton")):void 0!==e&&null!==e&&(e.className=this._options.buttonClass+" introjs-nextbutton introjs-disabled")):(void 0!==n&&null!==n&&(n.className=this._options.buttonClass+" introjs-skipbutton"),void 0!==i&&null!==i&&(i.className=this._options.buttonClass+" introjs-prevbutton"),void 0!==e&&null!==e&&(e.className=this._options.buttonClass+" introjs-nextbutton"),void 0!==n&&null!==n&&(n.innerHTML=this._options.skipLabel)),i.setAttribute("role","button"),e.setAttribute("role","button"),n.setAttribute("role","button"),void 0!==e&&null!==e&&e.focus(),function(t){var e;if(t.element instanceof SVGElement)for(e=t.element.parentNode;null!==t.element.parentNode&&e.tagName&&"body"!==e.tagName.toLowerCase();)"svg"===e.tagName.toLowerCase()&&_(e,"introjs-showElement introjs-relativePosition"),e=e.parentNode;_(t.element,"introjs-showElement");var i=C(t.element,"position");for("absolute"!==i&&"relative"!==i&&"fixed"!==i&&_(t.element,"introjs-relativePosition"),e=t.element.parentNode;null!==e&&e.tagName&&"body"!==e.tagName.toLowerCase();){var n=C(e,"z-index"),o=parseFloat(C(e,"opacity")),s=C(e,"transform")||C(e,"-webkit-transform")||C(e,"-moz-transform")||C(e,"-ms-transform")||C(e,"-o-transform");(/[0-9]+/.test(n)||o<1||"none"!==s&&void 0!==s)&&_(e,"introjs-fixParent"),e=e.parentNode}}(t),void 0!==this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,t.element)}function f(t,e,i){var n;if("off"!==t&&this._options.scrollToElement&&(n="tooltip"===t?i.getBoundingClientRect():e.element.getBoundingClientRect(),!function(t){var i=e.element.getBoundingClientRect();return i.top>=0&&i.left>=0&&i.bottom+80<=window.innerHeight&&i.right<=window.innerWidth}())){var o=k().height;n.bottom-(n.bottom-n.top)<0||e.element.clientHeight>o?window.scrollBy(0,n.top-(o/2-n.height/2)-this._options.scrollPadding):window.scrollBy(0,n.top-(o/2-n.height/2)+this._options.scrollPadding)}}function m(){b(document.querySelectorAll(".introjs-showElement"),function(t){w(t,/introjs-[a-zA-Z]+/g)})}function b(t,e,i){if(t)for(var n=0,o=t.length;n0&&(a[e-1]={element:t,intro:t.getAttribute("data-intro"),step:parseInt(t.getAttribute("data-step"),10),tooltipClass:t.getAttribute("data-tooltipclass"),highlightClass:t.getAttribute("data-highlightclass"),position:t.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:t.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:c})}}).bind(this));var h=0;b(r,(function(t){if((!s||t.getAttribute("data-intro-group")===s)&&null===t.getAttribute("data-step")){for(;void 0!==a[h];)h++;c=void 0!==t.getAttribute("data-disable-interaction")?!!t.getAttribute("data-disable-interaction"):this._options.disableInteraction,a[h]={element:t,intro:t.getAttribute("data-intro"),step:h+1,tooltipClass:t.getAttribute("data-tooltipclass"),highlightClass:t.getAttribute("data-highlightclass"),position:t.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:t.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:c}}}).bind(this))}for(var u=[],d=0;d