Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
public
/
app-assets
/
vendors
/
shepherd-js
/
Filename :
shepherd.min.js
back
Copy
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Shepherd=e()}(this,function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function e(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function r(t,e,n){return(r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var r=new(Function.bind.apply(t,o));return n&&i(r,n.prototype),r}).apply(null,arguments)}function s(t){var e="function"==typeof Map?new Map:void 0;return(s=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,s)}function s(){return r(t,arguments,o(this).constructor)}return s.prototype=Object.create(t.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),i(s,t)})(t)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){return void 0===t}var c=function(){function t(){}var e=t.prototype;return e.on=function(t,e,n,o){return void 0===o&&(o=!1),a(this.bindings)&&(this.bindings={}),a(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:o}),this},e.once=function(t,e,n){return this.on(t,e,n,!0)},e.off=function(t,e){if(a(this.bindings)||a(this.bindings[t]))return this;if(a(e))delete this.bindings[t];else for(var n=0;n<this.bindings[t].length;)this.bindings[t][n].handler===e?this.bindings[t].splice(n,1):++n;return this},e.trigger=function(t){if(!a(this.bindings)&&this.bindings[t]){for(var e=0,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],s=r.handler,l=r.ctx,c=r.once,h=l;a(h)&&(h=this),s.apply(h,o),c?this.bindings[t].splice(e,1):++e}}return this},t}();function h(t){for(var e=Object.getOwnPropertyNames(t.constructor.prototype),n=0;n<e.length;n++){var o=e[n],i=t[o];"constructor"!==o&&"function"==typeof i&&(t[o]=i.bind(t))}return t}function f(t){return t instanceof HTMLElement}function p(t){return"function"==typeof t}function u(t){return"string"==typeof t}function d(t){return void 0===t}function g(t){var e=t.options.advanceOn||{},n=e.event,o=e.selector;if(!n)return console.error("advanceOn was defined, but no event name was passed.");var i,r=function(t,e){return function(n){if(e.isOpen()){var o=e.el&&n.currentTarget===e.el;(!d(t)&&n.currentTarget.matches(t)||o)&&e.tour.next()}}}(o,t);try{i=document.querySelector(o)}catch(t){}if(!d(o)&&!i)return console.error("No element was found for the selector supplied to advanceOn: "+o);i?(i.addEventListener(n,r),t.on("destroy",function(){return i.removeEventListener(n,r)})):(document.body.addEventListener(n,r,!0),t.on("destroy",function(){return document.body.removeEventListener(n,r,!0)}))}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,e){e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)})}function b(t,e){e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)})}function y(t,e,n){n.forEach(function(n){-1===e.indexOf(n)&&t.classList.contains(n)&&b(t,n)}),e.forEach(function(e){t.classList.contains(e)||v(t,e)})}var w=[];function x(t){w.push(t)}function E(){for(var t;t=w.pop();)t()}var O=null;function I(t){void 0===t&&(t={});var e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t}function C(){if(O)return O;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");I(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var o=t.offsetWidth;n===o&&(o=e.clientWidth),document.body.removeChild(e);var i=n-o;return O={width:i,height:i}}var $,_=($=0,function(){return++$});function T(t){return"string"==typeof t}function S(t){return void 0===t}var P={},M=null;function A(t){var e;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var n=e.documentElement,o=L(t),i=function(){var t=M;t&&document.body.contains(t)||((t=document.createElement("div")).setAttribute("data-tether-id",_()),I(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),M=t);var e=t.getAttribute("data-tether-id");S(P[e])&&(P[e]=L(t),x(function(){delete P[e]}));return P[e]}();return o.top-=i.top,o.left-=i.left,S(o.width)&&(o.width=document.body.scrollWidth-o.left-o.right),S(o.height)&&(o.height=document.body.scrollHeight-o.top-o.bottom),o.top=o.top-n.clientTop,o.left=o.left-n.clientLeft,o.right=e.body.clientWidth-o.width-o.left,o.bottom=e.body.clientHeight-o.height-o.top,o}function L(t){var e=t.getBoundingClientRect(),n={};for(var o in e)n[o]=e[o];try{if(t.ownerDocument!==document){var i=t.ownerDocument.defaultView.frameElement;if(i){var r=L(i);n.top+=r.top,n.bottom+=r.top,n.left+=r.left,n.right+=r.left}}}catch(t){}return n}var F={position:function(t){var e=this,n=t.top,o=t.left,i=this.cache("element-bounds",function(){return A(e.element)}),r=i.height,s=i.width,l=this.getTargetBounds(),a=n+r,c=o+s,h=[];n<=l.bottom&&a>=l.top&&["left","right"].forEach(function(t){var e=l[t];e!==o&&e!==c||h.push(t)}),o<=l.right&&c>=l.left&&["top","bottom"].forEach(function(t){var e=l[t];e!==n&&e!==a||h.push(t)});return this.all.push(this.getClass("abutted")),["left","top","right","bottom"].forEach(function(t){e.all.push(e.getClass("abutted")+"-"+t)}),h.length&&this.add.push(this.getClass("abutted")),h.forEach(function(t){e.add.push(e.getClass("abutted")+"-"+t)}),x(function(){!1!==e.options.addTargetClasses&&y(e.target,e.add,e.all),y(e.element,e.add,e.all)}),!0}},k=["left","top","right","bottom"];var H={position:function(t){var e=this,n=t.top,o=t.left,i=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache("element-bounds",function(){return A(e.element)}),s=r.height,l=r.width;if(0===l&&0===s&&!S(this.lastSize)){var a=this.lastSize;l=a.width,s=a.height}var c=this.cache("target-bounds",function(){return e.getTargetBounds()}),h=c.height,f=c.width,p=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,n=t.pinnedClass;e&&p.push(e),n&&p.push(n)}),p.forEach(function(t){["left","top","right","bottom"].forEach(function(e){p.push(t+"-"+e)})});var u=[],d=I({},i),g=I({},this.attachment);return this.options.constraints.forEach(function(t){var r,a,c=t.to,p=t.attachment,m=t.pin;if(S(p)&&(p=""),p.indexOf(" ")>=0){var v=p.split(" ");a=v[0],r=v[1]}else r=a=p;var b=function(t,e){if("scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),!S(e.nodeType)){var n=e,o=A(e),i=o,r=getComputedStyle(e);if(e=[i.left,i.top,o.width+i.left,o.height+i.top],n.ownerDocument!==document){var s=n.ownerDocument.defaultView;e[0]+=s.pageXOffset,e[1]+=s.pageYOffset,e[2]+=s.pageXOffset,e[3]+=s.pageYOffset}k.forEach(function(t,n){"Top"===(t=t[0].toUpperCase()+t.substr(1))||"Left"===t?e[n]+=parseFloat(r["border"+t+"Width"]):e[n]-=parseFloat(r["border"+t+"Width"])})}return e}(e,c);"target"!==a&&"both"!==a||(n<b[1]&&"top"===d.top&&(n+=h,d.top="bottom"),n+s>b[3]&&"bottom"===d.top&&(n-=h,d.top="top")),"together"===a&&("top"===d.top&&("bottom"===g.top&&n<b[1]?(n+=h,d.top="bottom",n+=s,g.top="top"):"top"===g.top&&n+s>b[3]&&n-(s-h)>=b[1]&&(n-=s-h,d.top="bottom",g.top="bottom")),"bottom"===d.top&&("top"===g.top&&n+s>b[3]?(n-=h,d.top="top",n-=s,g.top="bottom"):"bottom"===g.top&&n<b[1]&&n+(2*s-h)<=b[3]&&(n+=s-h,d.top="top",g.top="top")),"middle"===d.top&&(n+s>b[3]&&"top"===g.top?(n-=s,g.top="bottom"):n<b[1]&&"bottom"===g.top&&(n+=s,g.top="top"))),"target"!==r&&"both"!==r||(o<b[0]&&"left"===d.left&&(o+=f,d.left="right"),o+l>b[2]&&"right"===d.left&&(o-=f,d.left="left")),"together"===r&&(o<b[0]&&"left"===d.left?"right"===g.left?(o+=f,d.left="right",o+=l,g.left="left"):"left"===g.left&&(o+=f,d.left="right",o-=l,g.left="right"):o+l>b[2]&&"right"===d.left?"left"===g.left?(o-=f,d.left="left",o-=l,g.left="right"):"right"===g.left&&(o-=f,d.left="left",o+=l,g.left="left"):"center"===d.left&&(o+l>b[2]&&"left"===g.left?(o-=l,g.left="right"):o<b[0]&&"right"===g.left&&(o+=l,g.left="left"))),"element"!==a&&"both"!==a||(n<b[1]&&"bottom"===g.top&&(n+=s,g.top="top"),n+s>b[3]&&"top"===g.top&&(n-=s,g.top="bottom")),"element"!==r&&"both"!==r||(o<b[0]&&("right"===g.left?(o+=l,g.left="left"):"center"===g.left&&(o+=l/2,g.left="left")),o+l>b[2]&&("left"===g.left?(o-=l,g.left="right"):"center"===g.left&&(o-=l/2,g.left="right"))),T(m)?m=m.split(",").map(function(t){return t.trim()}):!0===m&&(m=["top","left","right","bottom"]),m=m||[];var y,w,x=[],E=[];(n<b[1]&&(m.indexOf("top")>=0?(n=b[1],x.push("top")):E.push("top")),n+s>b[3]&&(m.indexOf("bottom")>=0?(n=b[3]-s,x.push("bottom")):E.push("bottom")),o<b[0]&&(m.indexOf("left")>=0?(o=b[0],x.push("left")):E.push("left")),o+l>b[2]&&(m.indexOf("right")>=0?(o=b[2]-l,x.push("right")):E.push("right")),x.length)&&(y=S(e.options.pinnedClass)?e.getClass("pinned"):e.options.pinnedClass,u.push(y),x.forEach(function(t){u.push(y+"-"+t)}));E.length&&(w=S(e.options.outOfBoundsClass)?e.getClass("out-of-bounds"):e.options.outOfBoundsClass,u.push(w),E.forEach(function(t){u.push(w+"-"+t)}));(x.indexOf("left")>=0||x.indexOf("right")>=0)&&(g.left=d.left=!1),(x.indexOf("top")>=0||x.indexOf("bottom")>=0)&&(g.top=d.top=!1),d.top===i.top&&d.left===i.left&&g.top===e.attachment.top&&g.left===e.attachment.left||(e.updateAttachClasses(g,d),e.trigger("update",{attachment:g,targetAttachment:d}))}),x(function(){!1!==e.options.addTargetClasses&&y(e.target,u,p),y(e.element,u,p)}),{top:n,left:o}}},B={position:function(t){var e=t.top,n=t.left;if(this.options.shift){var o,i,r=this.options.shift;if("function"==typeof r&&(r=r.call(this,{top:e,left:n})),T(r)){(r=r.split(" "))[1]=r[1]||r[0];var s=r;o=s[0],i=s[1],o=parseFloat(o,10),i=parseFloat(i,10)}else{var l=[r.top,r.left];o=l[0],i=l[1]}return{top:e+=o,left:n+=i}}}},Y=function(){function t(){}var e=t.prototype;return e.on=function(t,e,n,o){return void 0===o&&(o=!1),S(this.bindings)&&(this.bindings={}),S(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:o}),this},e.once=function(t,e,n){return this.on(t,e,n,!0)},e.off=function(t,e){if(S(this.bindings)||S(this.bindings[t]))return this;if(S(e))delete this.bindings[t];else for(var n=0;n<this.bindings[t].length;)this.bindings[t][n].handler===e?this.bindings[t].splice(n,1):++n;return this},e.trigger=function(t){if(!S(this.bindings)&&this.bindings[t]){for(var e=0,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],s=r.handler,l=r.ctx,a=r.once,c=l;S(c)&&(c=this),s.apply(c,o),a?this.bindings[t].splice(e,1):++e}}return this},t}(),W={center:"center",left:"right",right:"left"},X={middle:"middle",top:"bottom",bottom:"top"},j={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"};function D(){for(var t={top:0,left:0},e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return n.forEach(function(e){var n=e.top,o=e.left;T(n)&&(n=parseFloat(n)),T(o)&&(o=parseFloat(o)),t.top+=n,t.left+=o}),t}function N(t){var e=t.left,n=t.top;return S(j[t.left])||(e=j[t.left]),S(j[t.top])||(n=j[t.top]),{left:e,top:n}}function R(t,e){return T(t.left)&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left)/100*e.width),T(t.top)&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top)/100*e.height),t}function z(t){var e=t.split(" ");return{top:e[0],left:e[1]}}function V(t){return t.offsetParent||document.documentElement}var q={modules:[H,F,B]};var Z,K,U,G,J=function(){if(S(document))return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<e.length;++n){var o=e[n];if(void 0!==t.style[o])return o}}(),Q=[],tt=function(){Q.forEach(function(t){t.position(!1)}),E()};function et(){return performance.now()}Z=null,K=null,U=null,G=function t(){if(!S(K)&&K>16)return K=Math.min(K-16,250),void(U=setTimeout(t,250));!S(Z)&&et()-Z<10||(null!=U&&(clearTimeout(U),U=null),Z=et(),tt(),K=et()-Z)},S(window)||S(window.addEventListener)||["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,G)});var nt=function(t){var e,n;function o(e){var n;return(n=t.call(this)||this).position=n.position.bind(m(n)),Q.push(m(n)),n.history=[],n.setOptions(e,!1),q.modules.forEach(function(t){S(t.initialize)||t.initialize.call(m(n))}),n.position(),n}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=o.prototype;return i.getClass=function(t){void 0===t&&(t="");var e=this.options.classes;return S(e)||S(e[t])?this.options.classPrefix?this.options.classPrefix+"-"+t:t:!1===e[t]?"":this.options.classes[t]},i.setOptions=function(t,e){var n=this;void 0===e&&(e=!0);this.options=I({offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},t);var o=this.options,i=o.element,r=o.target,s=o.targetModifier;if(this.element=i,this.target=r,this.targetModifier=s,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if(S(n[t]))throw new Error("Tether Error: Both element and target must be defined");S(n[t].jquery)?T(n[t])&&(n[t]=document.querySelector(n[t])):n[t]=n[t][0]}),this._addClasses(),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=z(this.options.targetAttachment),this.attachment=z(this.options.attachment),this.offset=z(this.options.offset),this.targetOffset=z(this.options.targetOffset),S(this.scrollParents)||this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=function(t){var e=(getComputedStyle(t)||{}).position,n=[];if("fixed"===e)return[t];for(var o=t;(o=o.parentNode)&&o&&1===o.nodeType;){var i=void 0;try{i=getComputedStyle(o)}catch(t){}if(S(i)||null===i)return n.push(o),n;var r=i,s=r.overflow,l=r.overflowX,a=r.overflowY;/(auto|scroll|overlay)/.test(s+a+l)&&("absolute"!==e||["relative","absolute","fixed"].indexOf(i.position)>=0)&&n.push(o)}return n.push(t.ownerDocument.body),t.ownerDocument!==document&&n.push(t.ownerDocument.defaultView),n}(this.target),!1!==this.options.enabled&&this.enable(e)},i.getTargetBounds=function(){if(S(this.targetModifier))return A(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=A(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var n,o=this.target;o===document.body?(o=document.documentElement,n={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):n=A(o);var i=getComputedStyle(o),r=0;(o.scrollWidth>o.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(r=15);var s=n.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-r,l={width:15,height:.975*s*(s/o.scrollHeight),left:n.left+n.width-parseFloat(i.borderLeftWidth)-15},a=0;s<408&&this.target===document.body&&(a=-11e-5*Math.pow(s,2)-.00727*s+22.58),this.target!==document.body&&(l.height=Math.max(l.height,24));var c=this.target.scrollTop/(o.scrollHeight-s);return l.top=c*(s-l.height-a)+n.top+parseFloat(i.borderTopWidth),this.target===document.body&&(l.height=Math.max(l.height,24)),l}},i.clearCache=function(){this._cache={}},i.cache=function(t,e){return S(this._cache)&&(this._cache={}),S(this._cache[t])&&(this._cache[t]=e.call(this)),this._cache[t]},i.enable=function(t){var e=this;void 0===t&&(t=!0),!1!==this.options.addTargetClasses&&v(this.target,this.getClass("enabled")),v(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)}),t&&this.position()},i.disable=function(){var t=this;b(this.target,this.getClass("enabled")),b(this.element,this.getClass("enabled")),this.enabled=!1,S(this.scrollParents)||this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})},i.destroy=function(){var t=this;this.disable(),this._removeClasses(),Q.forEach(function(e,n){e===t&&Q.splice(n,1)}),0===Q.length&&(M&&document.body.removeChild(M),M=null)},i.updateAttachClasses=function(t,e){var n=this;t=t||this.attachment,e=e||this.targetAttachment;!S(this._addAttachClasses)&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),S(this._addAttachClasses)&&(this._addAttachClasses=[]),this.add=this._addAttachClasses,t.top&&this.add.push(this.getClass("element-attached")+"-"+t.top),t.left&&this.add.push(this.getClass("element-attached")+"-"+t.left),e.top&&this.add.push(this.getClass("target-attached")+"-"+e.top),e.left&&this.add.push(this.getClass("target-attached")+"-"+e.left),this.all=[],["left","top","bottom","right","middle","center"].forEach(function(t){n.all.push(n.getClass("element-attached")+"-"+t),n.all.push(n.getClass("target-attached")+"-"+t)}),x(function(){S(n._addAttachClasses)||(y(n.element,n._addAttachClasses,n.all),!1!==n.options.addTargetClasses&&y(n.target,n._addAttachClasses,n.all),delete n._addAttachClasses)})},i.position=function(t){var e=this;if(void 0===t&&(t=!0),this.enabled){this.clearCache();var n=function(t,e){var n=t.left,o=t.top;return"auto"===n&&(n=W[e.left]),"auto"===o&&(o=X[e.top]),{left:n,top:o}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var o=this.cache("element-bounds",function(){return A(e.element)}),i=o.width,r=o.height;if(0!==i||0!==r||S(this.lastSize))this.lastSize={width:i,height:r};else{var s=this.lastSize;i=s.width,r=s.height}var l=this.cache("target-bounds",function(){return e.getTargetBounds()}),a=l,c=R(N(this.attachment),{width:i,height:r}),h=R(N(n),a),f=R(this.offset,{width:i,height:r}),p=R(this.targetOffset,a);c=D(c,f),h=D(h,p);for(var u=l.left+h.left-c.left,d=l.top+h.top-c.top,g=0;g<q.modules.length;++g){var m=q.modules[g].position.call(this,{left:u,top:d,targetAttachment:n,targetPos:l,elementPos:o,offset:c,targetOffset:h,manualOffset:f,manualTargetOffset:p,scrollbarSize:v,attachment:this.attachment});if(!1===m)return!1;S(m)||"object"!=typeof m||(d=m.top,u=m.left)}var v,b={page:{top:d,left:u},viewport:{top:d-pageYOffset,bottom:pageYOffset-d-r+innerHeight,left:u-pageXOffset,right:pageXOffset-u-i+innerWidth}},y=this.target.ownerDocument,w=y.defaultView;if(w.innerHeight>y.documentElement.clientHeight&&(v=this.cache("scrollbar-size",C),b.viewport.bottom-=v.height),w.innerWidth>y.documentElement.clientWidth&&(v=this.cache("scrollbar-size",C),b.viewport.right-=v.width),-1!==["","static"].indexOf(y.body.style.position)&&-1!==["","static"].indexOf(y.body.parentElement.style.position)||(b.page.bottom=y.body.scrollHeight-d-r,b.page.right=y.body.scrollWidth-u-i),!S(this.options.optimizations)&&!1!==this.options.optimizations.moveElement&&S(this.targetModifier)){var x=this.cache("target-offsetparent",function(){return V(e.target)}),O=this.cache("target-offsetparent-bounds",function(){return A(x)}),I=getComputedStyle(x),$=O,_={};if(["Top","Left","Bottom","Right"].forEach(function(t){_[t.toLowerCase()]=parseFloat(I["border"+t+"Width"])}),O.right=y.body.scrollWidth-O.left-$.width+_.right,O.bottom=y.body.scrollHeight-O.top-$.height+_.bottom,b.page.top>=O.top+_.top&&b.page.bottom>=O.bottom&&b.page.left>=O.left+_.left&&b.page.right>=O.right){var T=x.scrollLeft,P=x.scrollTop;b.offset={top:b.page.top-O.top+P-_.top,left:b.page.left-O.left+T-_.left}}}return this.move(b),this.history.unshift(b),this.history.length>3&&this.history.pop(),t&&E(),!0}},i.move=function(t){var e=this;if(!S(this.element.parentNode)){var n,o,i,r={};for(var s in t)for(var l in r[s]={},t[s]){for(var a=!1,c=0;c<this.history.length;++c){var h=this.history[c];if(!(S(h[s])||(n=h[s][l],o=t[s][l],i=void 0,void 0===i&&(i=1),n+i>=o&&o>=n-i))){a=!0;break}}a||(r[s][l]=!0)}var f={top:"",left:"",right:"",bottom:""},p=function(t,n){var o,i;!1!==(!S(e.options.optimizations)?e.options.optimizations.gpu:null)?(t.top?(f.top=0,o=n.top):(f.bottom=0,o=-n.bottom),t.left?(f.left=0,i=n.left):(f.right=0,i=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(i=Math.round(i*devicePixelRatio)/devicePixelRatio,o=Math.round(o*devicePixelRatio)/devicePixelRatio),f[J]="translateX("+i+"px) translateY("+o+"px)","msTransform"!==J&&(f[J]+=" translateZ(0)")):(t.top?f.top=n.top+"px":f.bottom=n.bottom+"px",t.left?f.left=n.left+"px":f.right=n.right+"px")},u=!0;!S(this.options.optimizations)&&!1===this.options.optimizations.allowPositionFixed&&(u=!1);var d,g,m=!1;if((r.page.top||r.page.bottom)&&(r.page.left||r.page.right))f.position="absolute",p(r.page,t.page);else if(u&&(r.viewport.top||r.viewport.bottom)&&(r.viewport.left||r.viewport.right))f.position="fixed",p(r.viewport,t.viewport);else if(!S(r.offset)&&r.offset.top&&r.offset.left){f.position="absolute";var v=this.cache("target-offsetparent",function(){return V(e.target)});V(this.element)!==v&&x(function(){e.element.parentNode.removeChild(e.element),v.appendChild(e.element)}),p(r.offset,t.offset),m=!0}else f.position="absolute",p({top:!0,left:!0},t.page);if(!m)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var b=!0,y=this.element.parentNode;y&&1===y.nodeType&&"BODY"!==y.tagName&&(g=void 0,((g=(d=y).ownerDocument).fullscreenElement||g.webkitFullscreenElement||g.mozFullScreenElement||g.msFullscreenElement)!==d);){if("static"!==getComputedStyle(y).position){b=!1;break}y=y.parentNode}b||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var w={},E=!1;for(var O in f){var C=f[O];this.element.style[O]!==C&&(E=!0,w[O]=C)}E&&x(function(){I(e.element.style,w),e.trigger("repositioned")})}},i._addClasses=function(){v(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&v(this.target,this.getClass("target"))},i._removeClasses=function(){var t=this;b(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&b(this.target,this.getClass("target")),this.all.forEach(function(e){t.element.classList.remove(e),t.target.classList.remove(e)})},o}(Y);nt.modules=[],q.position=tt;var ot=I(nt,q);ot.modules.push({initialize:function(){var t=this;this.markers={},["target","element"].forEach(function(e){var n=document.createElement("div");n.className=t.getClass(e+"-marker");var o=document.createElement("div");o.className=t.getClass("marker-dot"),n.appendChild(o),t[e].appendChild(n),t.markers[e]={dot:o,el:n}})},position:function(t){var e={element:t.manualOffset,target:t.manualTargetOffset};for(var n in e){var o=e[n];for(var i in o){var r=o[i];(!T(r)||-1===r.indexOf("%")&&-1===r.indexOf("px"))&&(r+="px"),this.markers[n].dot.style[i]!==r&&(this.markers[n].dot.style[i]=r)}}return!0}});var it,rt={bottom:"top center","bottom center":"top center","bottom left":"top right","bottom right":"top left",center:"middle center",left:"middle right",middle:"middle center","middle center":"middle center","middle left":"middle right","middle right":"middle left",right:"middle left",top:"bottom center","top center":"bottom center","top left":"bottom right","top right":"bottom left"};function st(t){return u(t)&&""!==t?"-"!==t.charAt(t.length-1)?t+"-":t:""}function lt(t){var e=t.options.attachTo||{},n=Object.assign({},e);if(u(e.element)){try{n.element=document.querySelector(e.element)}catch(t){}n.element||console.error("The element for this Shepherd step was not found "+e.element)}return n}function at(t){t.tooltip&&t.tooltip.destroy();var e=lt(t);t.tooltip=function(t,e){var n={classPrefix:"shepherd",constraints:[{to:"scrollParent",attachment:"together",pin:["left","right","top"]},{to:"window",attachment:"together"}]},o=document.body;t.element&&t.on?(n.attachment=rt[t.on]||rt.right,o=t.element):(n.attachment="middle center",n.targetModifier="visible");return n.element=e.el,n.target=o,new ot(n)}(e,t),t.target=e.element}function ct(){var t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)})}function ht(){}function ft(t,e){for(var n in e)t[n]=e[n];return t}function pt(t){return t()}function ut(){return Object.create(null)}function dt(t){t.forEach(pt)}function gt(t){return"function"==typeof t}function mt(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function vt(t,e){t.appendChild(e)}function bt(t,e,n){t.insertBefore(e,n||null)}function yt(t){t.parentNode.removeChild(t)}function wt(t){return document.createElement(t)}function xt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Et(t){return document.createTextNode(t)}function Ot(){return Et(" ")}function It(t,e,n,o){return t.addEventListener(e,n,o),function(){return t.removeEventListener(e,n,o)}}function Ct(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function $t(t,e){for(var n in e)"style"===n?t.style.cssText=e[n]:n in t?t[n]=e[n]:Ct(t,n,e[n])}function _t(t){it=t}function Tt(){if(!it)throw new Error("Function called outside component initialization");return it}function St(t){Tt().$$.after_update.push(t)}var Pt=[],Mt=[],At=[],Lt=[],Ft=Promise.resolve(),kt=!1;function Ht(t){At.push(t)}function Bt(){var t=new Set;do{for(;Pt.length;){var e=Pt.shift();_t(e),Yt(e.$$)}for(;Mt.length;)Mt.pop()();for(var n=0;n<At.length;n+=1){var o=At[n];t.has(o)||(o(),t.add(o))}At.length=0}while(Pt.length);for(;Lt.length;)Lt.pop()();kt=!1}function Yt(t){t.fragment&&(t.update(t.dirty),dt(t.before_update),t.fragment.p(t.dirty,t.ctx),t.dirty=null,t.after_update.forEach(Ht))}var Wt,Xt=new Set;function jt(){Wt={r:0,c:[],p:Wt}}function Dt(){Wt.r||dt(Wt.c),Wt=Wt.p}function Nt(t,e){t&&t.i&&(Xt.delete(t),t.i(e))}function Rt(t,e,n,o){if(t&&t.o){if(Xt.has(t))return;Xt.add(t),Wt.c.push(function(){Xt.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}}function zt(t,e,n){var o=t.$$,i=o.fragment,r=o.on_mount,s=o.on_destroy,l=o.after_update;i.m(e,n),Ht(function(){var e=r.map(pt).filter(gt);s?s.push.apply(s,e):dt(e),t.$$.on_mount=[]}),l.forEach(Ht)}function Vt(t,e){t.$$.fragment&&(dt(t.$$.on_destroy),t.$$.fragment.d(e),t.$$.on_destroy=t.$$.fragment=null,t.$$.ctx={})}function qt(t,e){t.$$.dirty||(Pt.push(t),kt||(kt=!0,Ft.then(Bt)),t.$$.dirty=ut()),t.$$.dirty[e]=!0}function Zt(t,e,n,o,i,r){var s=it;_t(t);var l,a=e.props||{},c=t.$$={fragment:null,ctx:null,props:r,update:ht,not_equal:i,bound:ut(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(s?s.$$.context:[]),callbacks:ut(),dirty:null},h=!1;c.ctx=n?n(t,a,function(e,n,o){return void 0===o&&(o=n),c.ctx&&i(c.ctx[e],c.ctx[e]=o)&&(c.bound[e]&&c.bound[e](o),h&&qt(t,e)),n}):a,c.update(),h=!0,dt(c.before_update),c.fragment=o(c.ctx),e.target&&(e.hydrate?c.fragment.l((l=e.target,Array.from(l.childNodes))):c.fragment.c(),e.intro&&Nt(t.$$.fragment),zt(t,e.target,e.anchor),Bt()),_t(s)}"undefined"!=typeof HTMLElement&&s(HTMLElement);var Kt=function(){function t(){}var e=t.prototype;return e.$destroy=function(){Vt(this,1),this.$destroy=ht},e.$on=function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}},e.$set=function(){},t}();function Ut(t){var e,n,o;return{c:function(){e=wt("button"),n=Et(t.text),Ct(e,"aria-label",t.label?t.label:null),Ct(e,"class",(t.classes||"")+" shepherd-button "+(t.secondary?"shepherd-button-secondary":"")),e.disabled=t.disabled,Ct(e,"tabindex","0"),o=It(e,"click",t.action?t.action.bind(t.step.tour):null)},m:function(t,o){bt(t,e,o),vt(e,n)},p:function(t,n){t.disabled&&(e.disabled=n.disabled)},i:ht,o:ht,d:function(t){t&&yt(e),o()}}}function Gt(t,e,n){var o=e.config,i=e.step,r=o,s=r.action,l=r.classes,a=r.secondary,c=r.text,h=r.label,f=!1;return St(function(){o.disabled&&(n("disabled",f=o.disabled),p(f)&&n("disabled",f=f.call(i)))}),t.$set=function(t){"config"in t&&n("config",o=t.config),"step"in t&&n("step",i=t.step)},{config:o,step:i,action:s,classes:l,secondary:a,text:c,label:h,disabled:f}}var Jt=function(t){function e(e){var n;return Zt(l(n=t.call(this)||this),e,Gt,Ut,mt,["config","step"]),n}return n(e,t),e}(Kt);function Qt(t,e,n){var o=Object.create(t);return o.config=e[n],o}function te(t){for(var e,n,o=t.buttons,i=[],r=0;r<o.length;r+=1)i[r]=ee(Qt(t,o,r));var s=function(t){return Rt(i[t],1,1,function(){i[t]=null})};return{c:function(){for(var t=0;t<i.length;t+=1)i[t].c();e=Et("")},m:function(t,o){for(var r=0;r<i.length;r+=1)i[r].m(t,o);bt(t,e,o),n=!0},p:function(t,n){if(t.buttons||t.step){var r;for(o=n.buttons,r=0;r<o.length;r+=1){var l=Qt(n,o,r);i[r]?(i[r].p(t,l),Nt(i[r],1)):(i[r]=ee(l),i[r].c(),Nt(i[r],1),i[r].m(e.parentNode,e))}for(jt(),r=o.length;r<i.length;r+=1)s(r);Dt()}},i:function(t){if(!n){for(var e=0;e<o.length;e+=1)Nt(i[e]);n=!0}},o:function(t){i=i.filter(Boolean);for(var e=0;e<i.length;e+=1)Rt(i[e]);n=!1},d:function(t){!function(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(i,t),t&&yt(e)}}}function ee(t){var e,n=new Jt({props:{config:t.config,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){zt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){Vt(n,t)}}}function ne(t){var e,n,o=t.buttons&&te(t);return{c:function(){e=wt("footer"),o&&o.c(),Ct(e,"class","shepherd-footer")},m:function(t,i){bt(t,e,i),o&&o.m(e,null),n=!0},p:function(t,e){e.buttons&&o.p(t,e)},i:function(t){n||(Nt(o),n=!0)},o:function(t){Rt(o),n=!1},d:function(t){t&&yt(e),o&&o.d()}}}function oe(t,e,n){var o=e.step,i=o.options.buttons;return t.$set=function(t){"step"in t&&n("step",o=t.step)},{step:o,buttons:i}}var ie=function(t){function e(e){var n;return Zt(l(n=t.call(this)||this),e,oe,ne,mt,["step"]),n}return n(e,t),e}(Kt);function re(t){var e,n,o,i;return{c:function(){e=wt("button"),(n=wt("span")).textContent="×",Ct(n,"aria-hidden","true"),Ct(e,"aria-label",o=t.cancelIcon.label?t.cancelIcon.label:"Close Tour"),Ct(e,"class","shepherd-cancel-icon"),Ct(e,"type","button"),i=It(e,"click",t.handleCancelClick)},m:function(t,o){bt(t,e,o),vt(e,n)},p:function(t,n){t.cancelIcon&&o!==(o=n.cancelIcon.label?n.cancelIcon.label:"Close Tour")&&Ct(e,"aria-label",o)},i:ht,o:ht,d:function(t){t&&yt(e),i()}}}function se(t,e,n){var o=e.cancelIcon,i=e.step;return t.$set=function(t){"cancelIcon"in t&&n("cancelIcon",o=t.cancelIcon),"step"in t&&n("step",i=t.step)},{cancelIcon:o,step:i,handleCancelClick:function(t){t.preventDefault(),i.cancel()}}}var le=function(t){function e(e){var n;return Zt(l(n=t.call(this)||this),e,se,re,mt,["cancelIcon","step"]),n}return n(e,t),e}(Kt);function ae(t){var e;return{c:function(){Ct(e=wt("h3"),"id",t.labelId),Ct(e,"class","shepherd-title")},m:function(n,o){bt(n,e,o),t.h3_binding(e)},p:function(t,n){t.labelId&&Ct(e,"id",n.labelId)},i:ht,o:ht,d:function(n){n&&yt(e),t.h3_binding(null)}}}function ce(t,e,n){var o=e.labelId,i=e.element,r=e.title;return St(function(){p(r)&&n("title",r=r()),n("element",i.innerHTML=r,i)}),t.$set=function(t){"labelId"in t&&n("labelId",o=t.labelId),"element"in t&&n("element",i=t.element),"title"in t&&n("title",r=t.title)},{labelId:o,element:i,title:r,h3_binding:function(t){Mt[t?"unshift":"push"](function(){n("element",i=t)})}}}var he=function(t){function e(e){var n;return Zt(l(n=t.call(this)||this),e,ce,ae,mt,["labelId","element","title"]),n}return n(e,t),e}(Kt);function fe(t){var e,n,o,i=t.title&&function(t){var e,n=new he({props:{labelId:t.labelId,title:t.title}});return{c:function(){n.$$.fragment.c()},m:function(t,o){zt(n,t,o),e=!0},p:function(t,e){var o={};t.labelId&&(o.labelId=e.labelId),n.$set(o)},i:function(t){e||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){Vt(n,t)}}}(t),r=t.cancelIcon&&t.cancelIcon.enabled&&function(t){var e,n=new le({props:{cancelIcon:t.cancelIcon,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){zt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){Vt(n,t)}}}(t);return{c:function(){e=wt("header"),i&&i.c(),n=Ot(),r&&r.c(),Ct(e,"class","shepherd-header")},m:function(t,s){bt(t,e,s),i&&i.m(e,null),vt(e,n),r&&r.m(e,null),o=!0},p:function(t,e){e.title&&i.p(t,e),e.cancelIcon&&e.cancelIcon.enabled&&r.p(t,e)},i:function(t){o||(Nt(i),Nt(r),o=!0)},o:function(t){Rt(i),Rt(r),o=!1},d:function(t){t&&yt(e),i&&i.d(),r&&r.d()}}}function pe(t,e,n){var o=e.labelId,i=e.step,r=i.options,s=r.cancelIcon,l=r.title;return t.$set=function(t){"labelId"in t&&n("labelId",o=t.labelId),"step"in t&&n("step",i=t.step)},{labelId:o,step:i,cancelIcon:s,title:l}}var ue=function(t){function e(e){var n;return Zt(l(n=t.call(this)||this),e,pe,fe,mt,["labelId","step"]),n}return n(e,t),e}(Kt);function de(t){var e;return{c:function(){Ct(e=wt("div"),"class","shepherd-text"),Ct(e,"id",t.descriptionId)},m:function(n,o){bt(n,e,o),t.div_binding(e)},p:function(t,n){t.descriptionId&&Ct(e,"id",n.descriptionId)},i:ht,o:ht,d:function(n){n&&yt(e),t.div_binding(null)}}}function ge(t,e,n){var o=e.descriptionId,i=e.element,r=e.step;return St(function(){var t=r.options.text;p(t)&&(t=t.call(r)),f(t)?i.appendChild(t):n("element",i.innerHTML=t,i)}),t.$set=function(t){"descriptionId"in t&&n("descriptionId",o=t.descriptionId),"element"in t&&n("element",i=t.element),"step"in t&&n("step",r=t.step)},{descriptionId:o,element:i,step:r,div_binding:function(t){Mt[t?"unshift":"push"](function(){n("element",i=t)})}}}var me=function(t){function e(e){var n;return Zt(l(n=t.call(this)||this),e,ge,de,mt,["descriptionId","element","step"]),n}return n(e,t),e}(Kt);function ve(t){var e,n=new me({props:{descriptionId:t.descriptionId,step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){zt(n,t,o),e=!0},p:function(t,e){var o={};t.descriptionId&&(o.descriptionId=e.descriptionId),t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){Vt(n,t)}}}function be(t){var e,n=new ie({props:{step:t.step}});return{c:function(){n.$$.fragment.c()},m:function(t,o){zt(n,t,o),e=!0},p:function(t,e){var o={};t.step&&(o.step=e.step),n.$set(o)},i:function(t){e||(Nt(n.$$.fragment,t),e=!0)},o:function(t){Rt(n.$$.fragment,t),e=!1},d:function(t){Vt(n,t)}}}function ye(t){var e,n,o,i,r=!d(t.step.options.text),s=Array.isArray(t.step.options.buttons)&&t.step.options.buttons.length,l=new ue({props:{labelId:t.labelId,step:t.step}}),a=r&&ve(t),c=s&&be(t);return{c:function(){e=wt("div"),l.$$.fragment.c(),n=Ot(),a&&a.c(),o=Ot(),c&&c.c(),Ct(e,"class","shepherd-content")},m:function(t,r){bt(t,e,r),zt(l,e,null),vt(e,n),a&&a.m(e,null),vt(e,o),c&&c.m(e,null),i=!0},p:function(t,n){var i={};t.labelId&&(i.labelId=n.labelId),t.step&&(i.step=n.step),l.$set(i),t.step&&(r=!d(n.step.options.text)),r?a?(a.p(t,n),Nt(a,1)):((a=ve(n)).c(),Nt(a,1),a.m(e,o)):a&&(jt(),Rt(a,1,1,function(){a=null}),Dt()),t.step&&(s=Array.isArray(n.step.options.buttons)&&n.step.options.buttons.length),s?c?(c.p(t,n),Nt(c,1)):((c=be(n)).c(),Nt(c,1),c.m(e,null)):c&&(jt(),Rt(c,1,1,function(){c=null}),Dt())},i:function(t){i||(Nt(l.$$.fragment,t),Nt(a),Nt(c),i=!0)},o:function(t){Rt(l.$$.fragment,t),Rt(a),Rt(c),i=!1},d:function(t){t&&yt(e),Vt(l),a&&a.d(),c&&c.d()}}}function we(t,e,n){var o=e.descriptionId,i=e.labelId,r=e.step;return t.$set=function(t){"descriptionId"in t&&n("descriptionId",o=t.descriptionId),"labelId"in t&&n("labelId",i=t.labelId),"step"in t&&n("step",r=t.step)},{descriptionId:o,labelId:i,step:r}}var xe=function(t){function e(e){var n;return Zt(l(n=t.call(this)||this),e,we,ye,mt,["descriptionId","labelId","step"]),n}return n(e,t),e}(Kt);function Ee(t){var e;return{c:function(){Ct(e=wt("div"),"class","shepherd-arrow")},m:function(t,n){bt(t,e,n)},d:function(t){t&&yt(e)}}}function Oe(t){for(var e,n,o,i,r=t.step.options.arrow&&t.step.options.attachTo&&t.step.options.attachTo.element&&Ee(),s=new xe({props:{descriptionId:t.descriptionId,labelId:t.labelId,step:t.step}}),l=[{"aria-describedby":d(t.step.options.text)?null:t.descriptionId},{"aria-labelledby":t.step.options.title?t.labelId:null},{class:t.classes+" shepherd-element "+(t.hasCancelIcon?"shepherd-has-cancel-icon":"")+" "+(t.hasTitle?"shepherd-has-title":"")},t.dataStepId,{role:"dialog"},{tabindex:"0"}],a={},c=0;c<l.length;c+=1)a=ft(a,l[c]);return{c:function(){e=wt("div"),r&&r.c(),n=Ot(),s.$$.fragment.c(),$t(e,a),i=It(e,"keydown",t.handleKeyDown)},m:function(i,l){bt(i,e,l),r&&r.m(e,null),vt(e,n),zt(s,e,null),t.div_binding(e),o=!0},p:function(t,o){o.step.options.arrow&&o.step.options.attachTo&&o.step.options.attachTo.element?r||((r=Ee()).c(),r.m(e,n)):r&&(r.d(1),r=null);var i={};t.descriptionId&&(i.descriptionId=o.descriptionId),t.labelId&&(i.labelId=o.labelId),t.step&&(i.step=o.step),s.$set(i),$t(e,function(t,e){for(var n={},o={},i={$$scope:1},r=t.length;r--;){var s=t[r],l=e[r];if(l){for(var a in s)a in l||(o[a]=1);for(var c in l)i[c]||(n[c]=l[c],i[c]=1);t[r]=l}else for(var h in s)i[h]=1}for(var f in o)f in n||(n[f]=void 0);return n}(l,[(t.isUndefined||t.step||t.descriptionId)&&{"aria-describedby":d(o.step.options.text)?null:o.descriptionId},(t.step||t.labelId)&&{"aria-labelledby":o.step.options.title?o.labelId:null},(t.classes||t.hasCancelIcon||t.hasTitle)&&{class:o.classes+" shepherd-element "+(o.hasCancelIcon?"shepherd-has-cancel-icon":"")+" "+(o.hasTitle?"shepherd-has-title":"")},t.dataStepId&&o.dataStepId,{role:"dialog"},{tabindex:"0"}]))},i:function(t){o||(Nt(s.$$.fragment,t),o=!0)},o:function(t){Rt(s.$$.fragment,t),o=!1},d:function(n){n&&yt(e),r&&r.d(),Vt(s),t.div_binding(null),i()}}}var Ie=9,Ce=27,$e=37,_e=39;function Te(t,e,n){var o,i,r=e.classes,s=e.classPrefix,l=e.element,a=e.descriptionId,c=e.firstFocusableElement,h=e.focusableElements,f=e.labelId,p=e.lastFocusableElement,u=e.step,d=((o={})["data-"+s+"shepherd-step-id"]=u.id,o),g=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled,m=u.options&&u.options.title;i=function(){n("focusableElements",h=l.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n("firstFocusableElement",c=h[0]),n("lastFocusableElement",p=h[h.length-1])},Tt().$$.on_mount.push(i);return t.$set=function(t){"classes"in t&&n("classes",r=t.classes),"classPrefix"in t&&n("classPrefix",s=t.classPrefix),"element"in t&&n("element",l=t.element),"descriptionId"in t&&n("descriptionId",a=t.descriptionId),"firstFocusableElement"in t&&n("firstFocusableElement",c=t.firstFocusableElement),"focusableElements"in t&&n("focusableElements",h=t.focusableElements),"labelId"in t&&n("labelId",f=t.labelId),"lastFocusableElement"in t&&n("lastFocusableElement",p=t.lastFocusableElement),"step"in t&&n("step",u=t.step)},{classes:r,classPrefix:s,element:l,descriptionId:a,firstFocusableElement:c,focusableElements:h,labelId:f,lastFocusableElement:p,step:u,dataStepId:d,hasCancelIcon:g,hasTitle:m,getElement:function(){return l},handleKeyDown:function(t){var e=u.tour;switch(t.keyCode){case Ie:if(0===h.length){t.preventDefault();break}t.shiftKey?document.activeElement===c&&(t.preventDefault(),p.focus()):document.activeElement===p&&(t.preventDefault(),c.focus());break;case Ce:e.options.exitOnEsc&&u.cancel();break;case $e:e.options.keyboardNavigation&&e.back();break;case _e:e.options.keyboardNavigation&&e.next()}},div_binding:function(t){Mt[t?"unshift":"push"](function(){n("element",l=t)})}}}var Se=function(t){function o(e){var n;return Zt(l(n=t.call(this)||this),e,Te,Oe,mt,["classes","classPrefix","element","descriptionId","firstFocusableElement","focusableElements","labelId","lastFocusableElement","step","getElement"]),n}return n(o,t),e(o,[{key:"getElement",get:function(){return this.$$.ctx.getElement}}]),o}(Kt);var Pe,Me=(function(t,e){!function(){t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style&&!0!==t.__forceSmoothScrollPolyfill__)){var n,o=t.HTMLElement||t.Element,i=468,r={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:o.prototype.scroll||a,scrollIntoView:o.prototype.scrollIntoView},s=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,l=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?d.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):r.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?r.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):d.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},o.prototype.scroll=o.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var t=arguments[0].left,e=arguments[0].top;d.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},o.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},o.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var n=function(t){for(;t!==e.body&&!1===p(t);)t=t.parentNode||t.host;return t}(this),o=n.getBoundingClientRect(),i=this.getBoundingClientRect();n!==e.body?(d.call(this,n,n.scrollLeft+i.left-o.left,n.scrollTop+i.top-o.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):t.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}else r.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function a(t,e){this.scrollLeft=t,this.scrollTop=e}function c(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function h(t,e){return"Y"===e?t.clientHeight+l<t.scrollHeight:"X"===e?t.clientWidth+l<t.scrollWidth:void 0}function f(e,n){var o=t.getComputedStyle(e,null)["overflow"+n];return"auto"===o||"scroll"===o}function p(t){var e=h(t,"Y")&&f(t,"Y"),n=h(t,"X")&&f(t,"X");return e||n}function u(e){var n,o,r,l,a=(s()-e.startTime)/i;l=a=a>1?1:a,n=.5*(1-Math.cos(Math.PI*l)),o=e.startX+(e.x-e.startX)*n,r=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,o,r),o===e.x&&r===e.y||t.requestAnimationFrame(u.bind(t,e))}function d(n,o,i){var l,c,h,f,p=s();n===e.body?(l=t,c=t.scrollX||t.pageXOffset,h=t.scrollY||t.pageYOffset,f=r.scroll):(l=n,c=n.scrollLeft,h=n.scrollTop,f=a),u({scrollable:l,method:f,startTime:p,startX:c,startY:h,x:o,y:i})}}}}()}(Pe={exports:{}},Pe.exports),Pe.exports);Me.polyfill;Me.polyfill();var Ae=function(t){function e(e,n){var o;return void 0===n&&(n={}),(o=t.call(this,e,n)||this).tour=e,o.classPrefix=o.tour.options?st(o.tour.options.classPrefix):"",o.styles=e.styles,h(l(o)),o._setOptions(n),l(o)||l(o)}n(e,t);var o=e.prototype;return o.cancel=function(){this.tour.cancel(),this.trigger("cancel")},o.complete=function(){this.tour.complete(),this.trigger("complete")},o.destroy=function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),f(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this.target&&this._updateStepTargetOnHide(),this.trigger("destroy")},o.getTour=function(){return this.tour},o.hide=function(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this.target&&this._updateStepTargetOnHide(),this.trigger("hide")},o.isOpen=function(){return Boolean(this.el&&!this.el.hidden)},o.show=function(){var t=this;if(p(this.options.beforeShowPromise)){var e=this.options.beforeShowPromise();if(!d(e))return e.then(function(){return t._show()})}this._show()},o.updateStepOptions=function(t){this.options=Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})},o._createTooltipContent=function(){var t=this.options.classes||"",e=this.id+"-description",n=this.id+"-label";return this.shepherdElementComponent=new Se({target:document.body,props:{classPrefix:this.classPrefix,classes:t,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()},o._scrollTo=function(t){var e=lt(this).element;p(this.options.scrollToHandler)?this.options.scrollToHandler(e):f(e)&&e.scrollIntoView(t)},o._getClassOptions=function(t){var e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=t.classes?t.classes:"",o=e&&e.classes?e.classes:"",i=[].concat(n.split(" "),o.split(" ")),r=new Set(i);return Array.from(r).join(" ").trim()},o._setOptions=function(t){var e=this;void 0===t&&(t={});var n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;this.options=Object.assign({arrow:!0},n,t);var o=this.options.when;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||"step-"+ct(),o&&Object.keys(o).forEach(function(t){e.on(t,o[t],e)})},o._setupElements=function(){d(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&g(this),at(this)},o._show=function(){var t=this;this.trigger("before-show"),this._setupElements(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.tooltip.position(),(this.target||document.body).classList.add(this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target"),this.options.scrollTo&&setTimeout(function(){t._scrollTo(t.options.scrollTo)}),this.trigger("show"),this.el.focus()},o._styleTargetElementForStep=function(t){var e=t.target;e&&(t.options.highlightClass&&e.classList.add(t.options.highlightClass),!1===t.options.canClickTarget&&(e.style.pointerEvents="none"))},o._updateStepTargetOnHide=function(){this.options.highlightClass&&this.target.classList.remove(this.options.highlightClass),this.target.classList.remove(this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target")},e}(c);function Le(t){var e,n,o,i,r;return{c:function(){e=xt("svg"),Ct(n=xt("path"),"d",o="M "+t.openingProperties.x+" "+t.openingProperties.y+" H "+(t.openingProperties.width+t.openingProperties.x)+" V "+(t.openingProperties.height+t.openingProperties.y)+" H "+t.openingProperties.x+" L "+t.openingProperties.x+" 0 Z M 0 0 H "+t.window.innerWidth+" V "+t.window.innerHeight+" H 0 L 0 0 Z"),Ct(e,"class",i=(t.modalIsVisible?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container"),r=It(e,"touchmove",t._preventModalOverlayTouch)},m:function(o,i){bt(o,e,i),vt(e,n),t.svg_binding(e)},p:function(t,r){t.openingProperties&&o!==(o="M "+r.openingProperties.x+" "+r.openingProperties.y+" H "+(r.openingProperties.width+r.openingProperties.x)+" V "+(r.openingProperties.height+r.openingProperties.y)+" H "+r.openingProperties.x+" L "+r.openingProperties.x+" 0 Z M 0 0 H "+r.window.innerWidth+" V "+r.window.innerHeight+" H 0 L 0 0 Z")&&Ct(n,"d",o),t.modalIsVisible&&i!==(i=(r.modalIsVisible?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&Ct(e,"class",i)},i:ht,o:ht,d:function(n){n&&yt(e),t.svg_binding(null),r()}}}function Fe(t,e,n){var o=e.element,i=e.openingProperties,r=(ct(),!1),s=void 0;l();function l(){n("openingProperties",i={height:0,x:0,y:0,width:0})}function a(){n("modalIsVisible",r=!1),p()}function c(t,e,o){if(void 0===o&&(o=0),t.getBoundingClientRect){var r=function(t,e){var n=t.getBoundingClientRect(),o=n.y||n.top,i=n.bottom||o+n.height;if(e){var r=e.getBoundingClientRect(),s=r.y||r.top,l=r.bottom||s+r.height;o=Math.max(o,s),i=Math.min(i,l)}return{y:o,height:Math.max(i-o,0)}}(t,e),s=r.y,l=r.height,a=t.getBoundingClientRect(),c=a.x,h=a.width,f=a.left;n("openingProperties",i={x:(c||f)-o,y:s-o,width:h+2*o,height:l+2*o})}}function h(){n("modalIsVisible",r=!0)}var f=function(t){t.preventDefault()};function p(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",f,{passive:!1})}return t.$set=function(t){"element"in t&&n("element",o=t.element),"openingProperties"in t&&n("openingProperties",i=t.openingProperties)},{element:o,openingProperties:i,modalIsVisible:r,getElement:function(){return o},closeModalOpening:l,hide:a,positionModalOpening:c,setupForStep:function(t){p(),t.tour.options.useModalOverlay?(function(t){var e=t.options.modalOverlayOpeningPadding;if(t.target){var n=function t(e){if(!e)return null;var n=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return"hidden"!==n&&"visible"!==n&&e.scrollHeight>=e.clientHeight?e:t(e.parentElement)}(t.target);!function o(){s=void 0,c(t.target,n,e),s=requestAnimationFrame(o)}(),window.addEventListener("touchmove",f,{passive:!1})}else l()}(t),h()):a()},show:h,_preventModalOverlayTouch:function(t){t.stopPropagation()},window:window,svg_binding:function(t){Mt[t?"unshift":"push"](function(){n("element",o=t)})}}}var ke=function(t){function o(e){var n;return Zt(l(n=t.call(this)||this),e,Fe,Le,mt,["element","openingProperties","getElement","closeModalOpening","hide","positionModalOpening","setupForStep","show"]),n}return n(o,t),e(o,[{key:"getElement",get:function(){return this.$$.ctx.getElement}},{key:"closeModalOpening",get:function(){return this.$$.ctx.closeModalOpening}},{key:"hide",get:function(){return this.$$.ctx.hide}},{key:"positionModalOpening",get:function(){return this.$$.ctx.positionModalOpening}},{key:"setupForStep",get:function(){return this.$$.ctx.setupForStep}},{key:"show",get:function(){return this.$$.ctx.show}}]),o}(Kt),He=new c,Be=function(t){function e(e){var n;void 0===e&&(e={}),h(l(n=t.call(this,e)||this));n.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},e),n.classPrefix=st(n.options.classPrefix),n.steps=[],n.addSteps(n.options.steps);return["active","cancel","complete","inactive","show","start"].map(function(t){var e;e=t,n.on(e,function(t){(t=t||{}).tour=l(n),He.trigger(e,t)})}),n.modal=new ke({target:e.modalContainer||document.body,props:{classPrefix:n.classPrefix,styles:n.styles}}),n._setTourID(),l(n)||l(n)}n(e,t);var o=e.prototype;return o.addStep=function(t){var e=t;return e instanceof Ae?e.tour=this:e=new Ae(this,e),this.steps.push(e),e},o.addSteps=function(t){var e=this;return Array.isArray(t)&&t.forEach(function(t){e.addStep(t)}),this},o.back=function(){var t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)},o.cancel=function(){if(this.options.confirmCancel){var t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(t)&&this._done("cancel")}else this._done("cancel")},o.complete=function(){this._done("complete")},o.getById=function(t){return this.steps.find(function(e){return e.id===t})},o.getCurrentStep=function(){return this.currentStep},o.hide=function(){var t=this.getCurrentStep();if(t)return t.hide()},o.isActive=function(){return He.activeTour===this},o.next=function(){var t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)},o.removeStep=function(t){var e=this,n=this.getCurrentStep();this.steps.some(function(n,o){if(n.id===t)return n.isOpen()&&n.hide(),n.destroy(),e.steps.splice(o,1),!0}),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())},o.show=function(t,e){void 0===t&&(t=0),void 0===e&&(e=!0);var n=u(t)?this.getById(t):this.steps[t];n&&(this._updateStateBeforeShow(),p(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,e):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show()))},o.start=function(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupActiveTour(),this.next()},o._done=function(t){var e,n=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach(function(t){return t.destroy()}),(e=this)&&e.steps.forEach(function(t){t.options&&!1===t.options.canClickTarget&&t.options.attachTo&&t.target instanceof HTMLElement&&(t.target.style.pointerEvents="")}),this.trigger(t,{index:n}),He.activeTour=null,this.trigger("inactive",{tour:this}),this.modal.hide(),f(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},o._setupActiveTour=function(){this.trigger("active",{tour:this}),He.activeTour=this},o._skipStep=function(t,e){var n=this.steps.indexOf(t),o=e?n+1:n-1;this.show(o,e)},o._updateStateBeforeShow=function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()},o._setTourID=function(){var t=this.options.tourName||"tour";this.id=t+"--"+ct()},e}(c);return Object.assign(He,{Tour:Be,Step:Ae}),He});