/*! For license information please see shepherd.js.LICENSE.txt */ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,(function(){return function(){var t={4992:function(t,e,n){var r,o,i;function c(t,e,n){return e=u(e),a(t,s()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function a(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,c,a=[],s=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw o}}return a}}(t,e)||v(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var s=r.call(c,"catchLoc"),u=r.call(c,"finallyLoc");if(s&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function g(t,e,n){return(e=O(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t,e,n,r,o,i,c){try{var a=t[i](c),s=a.value}catch(t){return void n(t)}a.done?e(s):Promise.resolve(s).then(r,o)}function x(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function c(t){b(i,r,o,c,a,"next",t)}function a(t){b(i,r,o,c,a,"throw",t)}c(void 0)}))}}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $(t,e){for(var n=0;n3&&void 0!==arguments[3]&&arguments[3];return b(this.bindings)&&(this.bindings={}),b(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:r}),this}},{key:"once",value:function(t,e,n){return this.on(t,e,n,!0)}},{key:"off",value:function(t,e){var n=this;return b(this.bindings)||b(this.bindings[t])||(b(e)?delete this.bindings[t]:this.bindings[t].forEach((function(r,o){r.handler===e&&n.bindings[t].splice(o,1)}))),this}},{key:"trigger",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o=0||(o[n]=t[n]);return o}var I=Math.min,P=Math.max,j=Math.round,C=Math.floor,R=function(t){return{x:t,y:t}},M={left:"right",right:"left",bottom:"top",top:"bottom"},F={start:"end",end:"start"};function D(t,e,n){return P(t,I(e,n))}function H(t,e){return"function"==typeof t?t(e):t}function N(t){return t.split("-")[0]}function B(t){return t.split("-")[1]}function V(t){return"x"===t?"y":"x"}function W(t){return"y"===t?"height":"width"}function q(t){return["top","bottom"].includes(N(t))?"y":"x"}function G(t){return V(q(t))}function z(t,e,n){void 0===n&&(n=!1);var r=B(t),o=G(t),i=W(o),c="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(c=Z(c)),[c,Z(c)]}function U(t){var e=Z(t);return[Y(t),e,Y(e)]}function Y(t){return t.replace(/start|end/g,(function(t){return F[t]}))}function X(t,e,n,r){var o=B(t),i=function(t,e,n){var r=["left","right"],o=["right","left"];switch(t){case"top":case"bottom":return n?e?o:r:e?r:o;case"left":case"right":return e?["top","bottom"]:["bottom","top"];default:return[]}}(N(t),"start"===n,r);return o&&(i=i.map((function(t){return t+"-"+o})),e&&(i=i.concat(i.map(Y)))),i}function Z(t){return t.replace(/left|right|bottom|top/g,(function(t){return M[t]}))}function K(t){return"number"!=typeof t?function(t){return L({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function J(t){return L({},t,{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}var Q=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],tt=["mainAxis","crossAxis","limiter"];function et(t,e,n){var r,o=t.reference,i=t.floating,c=q(e),a=G(e),s=W(a),u=N(e),l="y"===c,f=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,h=o[s]/2-i[s]/2;switch(u){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:p};break;case"left":r={x:o.x-i.width,y:p};break;default:r={x:o.x,y:o.y}}switch(B(e)){case"start":r[a]-=h*(n&&l?-1:1);break;case"end":r[a]+=h*(n&&l?-1:1)}return r}var nt=function(){var t=x(y().mark((function t(e,n,r){var o,i,c,a,s,u,l,f,p,h,d,v,m,b,x,w,$,k,O,S,T,_,A,I,P,j;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=r.placement,i=void 0===o?"bottom":o,c=r.strategy,a=void 0===c?"absolute":c,s=r.middleware,u=void 0===s?[]:s,l=r.platform,f=u.filter(Boolean),t.next=4,null==l.isRTL?void 0:l.isRTL(n);case 4:return p=t.sent,t.next=7,l.getElementRects({reference:e,floating:n,strategy:a});case 7:h=t.sent,d=et(h,i,p),v=d.x,m=d.y,b=i,x={},w=0,$=0;case 13:if(!($O&&(y=O)}if(h){var E,S,T="y"===m?"width":"height",_=["top","left"].includes(N(o)),A=i.reference[v]-i.floating[T]+(_&&(null==(E=c.offset)?void 0:E[v])||0)+(_?0:w.crossAxis),I=i.reference[v]+i.reference[T]+(_?0:(null==(S=c.offset)?void 0:S[v])||0)-(_?w.crossAxis:0);bI&&(b=I)}return g(g({},m,y),v,b)}}};function ct(t){return ut(t)?(t.nodeName||"").toLowerCase():"#document"}function at(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function st(t){var e;return null==(e=(ut(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ut(t){return t instanceof Node||t instanceof at(t).Node}function lt(t){return t instanceof Element||t instanceof at(t).Element}function ft(t){return t instanceof HTMLElement||t instanceof at(t).HTMLElement}function pt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof at(t).ShadowRoot)}function ht(t){var e=gt(t),n=e.overflow,r=e.overflowX,o=e.overflowY,i=e.display;return/auto|scroll|overlay|hidden|clip/.test(n+o+r)&&!["inline","contents"].includes(i)}function dt(t){return["table","td","th"].includes(ct(t))}function vt(t){var e=mt(),n=gt(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((function(t){return(n.willChange||"").includes(t)}))||["paint","layout","strict","content"].some((function(t){return(n.contain||"").includes(t)}))}function mt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function yt(t){return["html","body","#document"].includes(ct(t))}function gt(t){return at(t).getComputedStyle(t)}function bt(t){return lt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xt(t){if("html"===ct(t))return t;var e=t.assignedSlot||t.parentNode||pt(t)&&t.host||st(t);return pt(e)?e.host:e}function wt(t){var e=xt(t);return yt(e)?t.ownerDocument?t.ownerDocument.body:t.body:ft(e)&&ht(e)?e:wt(e)}function $t(t,e){var n;void 0===e&&(e=[]);var r=wt(t),o=r===(null==(n=t.ownerDocument)?void 0:n.body),i=at(r);return o?e.concat(i,i.visualViewport||[],ht(r)?r:[]):e.concat(r,$t(r))}function kt(t){var e=gt(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,o=ft(t),i=o?t.offsetWidth:n,c=o?t.offsetHeight:r,a=j(n)!==i||j(r)!==c;return a&&(n=i,r=c),{width:n,height:r,$:a}}function Ot(t){return lt(t)?t:t.contextElement}function Et(t){var e=Ot(t);if(!ft(e))return R(1);var n=e.getBoundingClientRect(),r=kt(e),o=r.width,i=r.height,c=r.$,a=(c?j(n.width):n.width)/o,s=(c?j(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}var St=R(0);function Tt(t){var e=at(t);return mt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:St}function _t(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);var o=t.getBoundingClientRect(),i=Ot(t),c=R(1);e&&(r?lt(r)&&(c=Et(r)):c=Et(t));var a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==at(t))&&e}(i,n,r)?Tt(i):R(0),s=(o.left+a.x)/c.x,u=(o.top+a.y)/c.y,l=o.width/c.x,f=o.height/c.y;if(i)for(var p=at(i),h=r&<(r)?at(r):r,d=p.frameElement;d&&r&&h!==p;){var v=Et(d),m=d.getBoundingClientRect(),y=gt(d),g=m.left+(d.clientLeft+parseFloat(y.paddingLeft))*v.x,b=m.top+(d.clientTop+parseFloat(y.paddingTop))*v.y;s*=v.x,u*=v.y,l*=v.x,f*=v.y,s+=g,u+=b,d=at(d).frameElement}return J({width:l,height:f,x:s,y:u})}function Lt(t){return _t(st(t)).left+bt(t).scrollLeft}function At(t,e,n){var r;if("viewport"===e)r=function(t,e){var n=at(t),r=st(t),o=n.visualViewport,i=r.clientWidth,c=r.clientHeight,a=0,s=0;if(o){i=o.width,c=o.height;var u=mt();(!u||u&&"fixed"===e)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:c,x:a,y:s}}(t,n);else if("document"===e)r=function(t){var e=st(t),n=bt(t),r=t.ownerDocument.body,o=P(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=P(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),c=-n.scrollLeft+Lt(t),a=-n.scrollTop;return"rtl"===gt(r).direction&&(c+=P(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:c,y:a}}(st(t));else if(lt(e))r=function(t,e){var n=_t(t,!0,"fixed"===e),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=ft(t)?Et(t):R(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:o*i.x,y:r*i.y}}(e,n);else{var o=Tt(t);r=L({},e,{x:e.x-o.x,y:e.y-o.y})}return J(r)}function It(t,e){var n=xt(t);return!(n===e||!lt(n)||yt(n))&&("fixed"===gt(n).position||It(n,e))}function Pt(t,e,n){var r=ft(e),o=st(e),i="fixed"===n,c=_t(t,!0,i,e),a={scrollLeft:0,scrollTop:0},s=R(0);if(r||!r&&!i)if(("body"!==ct(e)||ht(o))&&(a=bt(e)),r){var u=_t(e,!0,i,e);s.x=u.x+e.clientLeft,s.y=u.y+e.clientTop}else o&&(s.x=Lt(o));return{x:c.left+a.scrollLeft-s.x,y:c.top+a.scrollTop-s.y,width:c.width,height:c.height}}function jt(t,e){return ft(t)&&"fixed"!==gt(t).position?e?e(t):t.offsetParent:null}function Ct(t,e){var n=at(t);if(!ft(t))return n;for(var r=jt(t,e);r&&dt(r)&&"static"===gt(r).position;)r=jt(r,e);return r&&("html"===ct(r)||"body"===ct(r)&&"static"===gt(r).position&&!vt(r))?n:r||function(t){for(var e=xt(t);ft(e)&&!yt(e);){if(vt(e))return e;e=xt(e)}return null}(t)||n}var Rt=function(){var t=x(y().mark((function t(e){var n,r,o,i,c;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.reference,r=e.floating,o=e.strategy,i=this.getOffsetParent||Ct,c=this.getDimensions,t.t0=Pt,t.t1=n,t.next=7,i(r);case 7:return t.t2=t.sent,t.t3=o,t.t4=(0,t.t0)(t.t1,t.t2,t.t3),t.t5=L,t.t6={x:0,y:0},t.next=14,c(r);case 14:return t.t7=t.sent,t.t8=(0,t.t5)(t.t6,t.t7),t.abrupt("return",{reference:t.t4,floating:t.t8});case 17:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),Mt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var e=t.rect,n=t.offsetParent,r=t.strategy,o=ft(n),i=st(n);if(n===i)return e;var c={scrollLeft:0,scrollTop:0},a=R(1),s=R(0);if((o||!o&&"fixed"!==r)&&(("body"!==ct(n)||ht(i))&&(c=bt(n)),ft(n))){var u=_t(n);a=Et(n),s.x=u.x+n.clientLeft,s.y=u.y+n.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-c.scrollLeft*a.x+s.x,y:e.y*a.y-c.scrollTop*a.y+s.y}},getDocumentElement:st,getClippingRect:function(t){var e=t.element,n=t.boundary,r=t.rootBoundary,o=t.strategy,i="clippingAncestors"===n?function(t,e){var n=e.get(t);if(n)return n;for(var r=$t(t).filter((function(t){return lt(t)&&"body"!==ct(t)})),o=null,i="fixed"===gt(t).position,c=i?xt(t):t;lt(c)&&!yt(c);){var a=gt(c),s=vt(c);s||"fixed"!==a.position||(o=null),(i?!s&&!o:!s&&"static"===a.position&&o&&["absolute","fixed"].includes(o.position)||ht(c)&&!s&&It(t,c))?r=r.filter((function(t){return t!==c})):o=a,c=xt(c)}return e.set(t,r),r}(e,this._c):[].concat(n),c=[].concat(d(i),[r]),a=c[0],s=c.reduce((function(t,n){var r=At(e,n,o);return t.top=P(r.top,t.top),t.right=I(r.right,t.right),t.bottom=I(r.bottom,t.bottom),t.left=P(r.left,t.left),t}),At(e,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ct,getElementRects:Rt,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return kt(t)},getScale:Et,isElement:lt,isRTL:function(t){return"rtl"===gt(t).direction}};function Ft(t){t.cleanup&&t.cleanup();var e=t._getResolvedAttachToOptions(),n=e.element,r=function(t,e){var n={strategy:"absolute",middleware:[]},r=function(t){return!(!t.options.arrow||!t.el)&&t.el.querySelector(".shepherd-arrow")}(e);return T(t)||(n.middleware.push(function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(e){return x(y().mark((function n(){var r,o,i,c,a,s,u,l,f,p,h,v,m,g,b,x,w,$,k,O,E,S,T,_,L,I,P,j,C,R,M,F,D,B,V,W;return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=e.placement,i=e.middlewareData,c=e.rects,a=e.initialPlacement,s=e.platform,u=e.elements,l=H(t,e),f=l.mainAxis,p=void 0===f||f,h=l.crossAxis,v=void 0===h||h,m=l.fallbackPlacements,g=l.fallbackStrategy,b=void 0===g?"bestFit":g,x=l.fallbackAxisSideDirection,w=void 0===x?"none":x,$=l.flipAlignment,k=void 0===$||$,O=A(l,Q),E=N(o),S=N(a)===a,n.next=6,null==s.isRTL?void 0:s.isRTL(u.floating);case 6:return T=n.sent,_=m||(S||!k?[Z(a)]:U(a)),m||"none"===w||_.push.apply(_,d(X(a,k,w,T))),L=[a].concat(d(_)),n.next=12,rt(e,O);case 12:if(I=n.sent,P=[],j=(null==(r=i.flip)?void 0:r.overflows)||[],p&&P.push(I[E]),v&&(C=z(o,c,T),P.push(I[C[0]],I[C[1]])),j=[].concat(d(j),[{placement:o,overflows:P}]),P.every((function(t){return t<=0}))){n.next=35;break}if(F=((null==(R=i.flip)?void 0:R.index)||0)+1,!(D=L[F])){n.next=23;break}return n.abrupt("return",{data:{index:F,overflows:j},reset:{placement:D}});case 23:if(B=null==(M=j.filter((function(t){return t.overflows[0]<=0})).sort((function(t,e){return t.overflows[1]-e.overflows[1]}))[0])?void 0:M.placement){n.next=33;break}n.t0=b,n.next="bestFit"===n.t0?28:"initialPlacement"===n.t0?31:33;break;case 28:return W=null==(V=j.map((function(t){return[t.placement,t.overflows.filter((function(t){return t>0})).reduce((function(t,e){return t+e}),0)]})).sort((function(t,e){return t[1]-e[1]}))[0])?void 0:V[0],W&&(B=W),n.abrupt("break",33);case 31:return B=a,n.abrupt("break",33);case 33:if(o===B){n.next=35;break}return n.abrupt("return",{reset:{placement:B}});case 35:return n.abrupt("return",{});case 36:case"end":return n.stop()}}),n)})))()}}}(),function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(e){return x(y().mark((function n(){var r,o,i,c,a,s,u,l,f,p,h,d,v,m,b,x,w,$,k,O,E,S,T,_;return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.x,o=e.y,i=e.placement,c=H(t,e),a=c.mainAxis,s=void 0===a||a,u=c.crossAxis,l=void 0!==u&&u,f=c.limiter,p=void 0===f?{fn:function(t){return{x:t.x,y:t.y}}}:f,h=A(c,tt),d={x:r,y:o},n.next=5,rt(e,h);case 5:return v=n.sent,m=q(N(i)),b=V(m),x=d[b],w=d[m],s&&($="y"===b?"bottom":"right",k=x+v["y"===b?"top":"left"],O=x-v[$],x=D(k,x,O)),l&&(E="y"===m?"bottom":"right",S=w+v["y"===m?"top":"left"],T=w-v[E],w=D(S,w,T)),_=p.fn(L({},e,g(g({},b,x),m,w))),n.abrupt("return",L({},_,{data:{x:_.x-r,y:_.y-o}}));case 14:case"end":return n.stop()}}),n)})))()}}}({limiter:it(),crossAxis:!0})),r&&n.middleware.push(function(t){return{name:"arrow",options:t,fn:function(e){return x(y().mark((function n(){var r,o,i,c,a,s,u,l,f,p,h,d,v,m,b,x,w,$,k,O,E,S,T,_,L,A,P,j,C,R,M,F,N;return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.x,o=e.y,i=e.placement,c=e.rects,a=e.platform,s=e.elements,u=H(t,e)||{},l=u.element,f=u.padding,p=void 0===f?0:f,null!=l){n.next=4;break}return n.abrupt("return",{});case 4:return h=K(p),d={x:r,y:o},v=G(i),m=W(v),n.next=10,a.getDimensions(l);case 10:return b=n.sent,w=(x="y"===v)?"top":"left",$=x?"bottom":"right",k=x?"clientHeight":"clientWidth",O=c.reference[m]+c.reference[v]-d[v]-c.floating[m],E=d[v]-c.reference[v],n.next=19,null==a.getOffsetParent?void 0:a.getOffsetParent(l);case 19:if(S=n.sent,T=S?S[k]:0,n.t0=!T,n.t0){n.next=26;break}return n.next=25,null==a.isElement?void 0:a.isElement(S);case 25:n.t0=!n.sent;case 26:if(!n.t0){n.next=28;break}T=s.floating[k]||c.floating[m];case 28:return _=O/2-E/2,L=T/2-b[m]/2-1,A=I(h[w],L),P=I(h[$],L),j=A,C=T-b[m]-P,R=T/2-b[m]/2+_,M=D(j,R,C),F=null!=B(i)&&R!=M&&c.reference[m]/2-(R7&&void 0!==arguments[7]?arguments[7]:[-1],s=te;oe(t);var u=t.$$={fragment:null,ctx:[],props:i,update:Dt,not_equal:o,bound:Bt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Bt(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};c&&c(u.root);var l=!1;if(u.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),l&&function(t,e){-1===t.$$.dirty[0]&&(ae.push(t),pe||(pe=!0,fe.then(me)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:{};return w(this,e),(n=c(this,e,[t,r])).tour=t,n.classPrefix=n.tour.options?S(n.tour.options.classPrefix):"",n.styles=t.styles,n._resolvedAttachTo=null,O(l(n)),n._setOptions(r),a(n,l(n))}return f(e,t),k(e,[{key:"cancel",value:function(){this.tour.cancel(),this.trigger("cancel")}},{key:"complete",value:function(){this.tour.complete(),this.trigger("complete")}},{key:"destroy",value:function(){this.cleanup&&this.cleanup(),this.cleanup=null,p(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}},{key:"getTour",value:function(){return this.tour}},{key:"hide",value:function(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}},{key:"_resolveAttachToOptions",value:function(){return this._resolvedAttachTo=function(t){var e=t.options.attachTo||{},n=Object.assign({},e);if(v(n.element)&&(n.element=n.element.call(t)),m(n.element)){try{n.element=document.querySelector(n.element)}catch(t){}n.element||console.error("The element for this Shepherd step was not found ".concat(e.element))}return n}(this),this._resolvedAttachTo}},{key:"_getResolvedAttachToOptions",value:function(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}},{key:"isOpen",value:function(){return Boolean(this.el&&!this.el.hidden)}},{key:"show",value:function(){var t=this;return v(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then((function(){return t._show()})):Promise.resolve(this._show())}},{key:"updateStepOptions",value:function(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}},{key:"getElement",value:function(){return this.el}},{key:"getTarget",value:function(){return this.target}},{key:"_createTooltipContent",value:function(){var t="".concat(this.id,"-description"),e="".concat(this.id,"-label");return this.shepherdElementComponent=new un({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:e,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}},{key:"_scrollTo",value:function(t){var e=this._getResolvedAttachToOptions().element;v(this.options.scrollToHandler)?this.options.scrollToHandler(e):e instanceof Element&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(t)}},{key:"_getClassOptions",value:function(t){var e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=t.classes?t.classes:"",r=e&&e.classes?e.classes:"",o=[].concat(d(n.split(" ")),d(r.split(" "))),i=new Set(o);return Array.from(i).join(" ").trim()}},{key:"_setOptions",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=u({},n||{}),this.options=Object.assign({arrow:!0},n,e,function(t,e){return{floatingUIOptions:u(t.floatingUIOptions||{},e.floatingUIOptions||{})}}(n,e));var r=this.options.when;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||"step-".concat(_()),r&&Object.keys(r).forEach((function(e){t.on(e,r[e],t)}))}},{key:"_setupElements",value:function(){b(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&function(t){var e=t.options.advanceOn||{},n=e.event,r=e.selector;if(!n)return console.error("advanceOn was defined, but no event name was passed.");var o,i=function(t,e){return function(n){if(e.isOpen()){var r=e.el&&n.currentTarget===e.el;(!b(t)&&n.currentTarget.matches(t)||r)&&e.tour.next()}}}(r,t);try{o=document.querySelector(r)}catch(t){}if(!b(r)&&!o)return console.error("No element was found for the selector supplied to advanceOn: ".concat(r));o?(o.addEventListener(n,i),t.on("destroy",(function(){return o.removeEventListener(n,i)}))):(document.body.addEventListener(n,i,!0),t.on("destroy",(function(){return document.body.removeEventListener(n,i,!0)})))}(this),Ft(this)}},{key:"_show",value:function(){var t=this;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout((function(){t._scrollTo(t.options.scrollTo)})),this.el.hidden=!1;var e=this.shepherdElementComponent.getElement(),n=this.target||document.body;n.classList.add("".concat(this.classPrefix,"shepherd-enabled")),n.classList.add("".concat(this.classPrefix,"shepherd-target")),e.classList.add("shepherd-enabled"),this.trigger("show")}},{key:"_styleTargetElementForStep",value:function(t){var e=t.target;e&&(t.options.highlightClass&&e.classList.add(t.options.highlightClass),e.classList.remove("shepherd-target-click-disabled"),!1===t.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))}},{key:"_updateStepTargetOnHide",value:function(){var t=this.target||document.body;this.options.highlightClass&&t.classList.remove(this.options.highlightClass),t.classList.remove("shepherd-target-click-disabled","".concat(this.classPrefix,"shepherd-enabled"),"".concat(this.classPrefix,"shepherd-target"))}}]),e}($);function fn(t){var e,n,r,o,i;return{c:function(){e=Xt("svg"),Qt(n=Xt("path"),"d",t[2]),Qt(e,"class",r="".concat(t[1]?"shepherd-modal-is-visible":""," shepherd-modal-overlay-container"))},m:function(r,c){zt(r,e,c),Gt(e,n),t[11](e),o||(i=Jt(e,"touchmove",t[3]),o=!0)},p:function(t,o){var i=h(o,1)[0];4&i&&Qt(n,"d",t[2]),2&i&&r!==(r="".concat(t[1]?"shepherd-modal-is-visible":""," shepherd-modal-overlay-container"))&&Qt(e,"class",r)},i:Dt,o:Dt,d:function(n){n&&Ut(e),t[11](null),o=!1,i()}}}function pn(t){if(!t)return null;var e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:pn(t.parentElement)}function hn(t,e,n){var r=e.element,o=e.openingProperties;_();var i,c=!1,a=void 0;function s(){n(4,o={width:0,height:0,x:0,y:0,r:0})}function u(){n(1,c=!1),h()}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>3?arguments[3]:void 0;if(r){var i=function(t,e){var n=t.getBoundingClientRect(),r=n.y||n.top,o=n.bottom||r+n.height;if(e){var i=e.getBoundingClientRect(),c=i.y||i.top,a=i.bottom||c+i.height;r=Math.max(r,c),o=Math.min(o,a)}return{y:r,height:Math.max(o-r,0)}}(r,arguments.length>2?arguments[2]:void 0),c=i.y,a=i.height,u=r.getBoundingClientRect(),l=u.x,f=u.width,p=u.left;n(4,o={width:f+2*t,height:a+2*t,x:(l||p)-t,y:c-t,r:e})}else s()}function f(){n(1,c=!0)}s();var p=function(t){t.preventDefault()};function h(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",p,{passive:!1})}return t.$$set=function(t){"element"in t&&n(0,r=t.element),"openingProperties"in t&&n(4,o=t.openingProperties)},t.$$.update=function(){var e,r,c,a,s,u,l,f,p,h,d,v,m,y,g,b,x,w,$,k,O;16&t.$$.dirty&&n(2,(r=(e=o).width,c=e.height,s=void 0===(a=e.x)?0:a,l=void 0===(u=e.y)?0:u,p=void 0===(f=e.r)?0:f,d=(h=window).innerWidth,v=h.innerHeight,g=void 0===(y=(m="number"==typeof p?{topLeft:p,topRight:p,bottomRight:p,bottomLeft:p}:p).topLeft)?0:y,x=void 0===(b=m.topRight)?0:b,$=void 0===(w=m.bottomRight)?0:w,O=void 0===(k=m.bottomLeft)?0:k,i="M".concat(d,",").concat(v,"H0V0H").concat(d,"V").concat(v,"ZM").concat(s+g,",").concat(l,"a").concat(g,",").concat(g,",0,0,0-").concat(g,",").concat(g,"V").concat(c+l-O,"a").concat(O,",").concat(O,",0,0,0,").concat(O,",").concat(O,"H").concat(r+s-$,"a").concat($,",").concat($,",0,0,0,").concat($,"-").concat($,"V").concat(l+x,"a").concat(x,",").concat(x,",0,0,0-").concat(x,"-").concat(x,"Z")))},[r,c,i,function(t){t.stopPropagation()},o,function(){return r},s,u,l,function(t){h(),t.tour.options.useModalOverlay?(function(t){var e=t.options,n=e.modalOverlayOpeningPadding,r=e.modalOverlayOpeningRadius,o=pn(t.target);(function e(){a=void 0,l(n,r,o,t.target),a=requestAnimationFrame(e)})(),window.addEventListener("touchmove",p,{passive:!1})}(t),f()):u()},f,function(t){se[t?"unshift":"push"]((function(){n(0,r=t)}))}]}var dn=function(t){function e(t){var n;return w(this,e),Te(l(n=c(this,e)),t,hn,fn,qt,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10}),n}return f(e,t),k(e,[{key:"getElement",get:function(){return this.$$.ctx[5]}},{key:"closeModalOpening",get:function(){return this.$$.ctx[6]}},{key:"hide",get:function(){return this.$$.ctx[7]}},{key:"positionModal",get:function(){return this.$$.ctx[8]}},{key:"setupForStep",get:function(){return this.$$.ctx[9]}},{key:"show",get:function(){return this.$$.ctx[10]}}]),e}(_e),vn=new $,mn=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w(this,e),O(l(t=c(this,e,[n]))),t.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},n),t.classPrefix=S(t.options.classPrefix),t.steps=[],t.addSteps(t.options.steps),["active","cancel","complete","inactive","show","start"].map((function(e){var n;n=e,t.on(n,(function(e){(e=e||{}).tour=l(t),vn.trigger(n,e)}))})),t._setTourID(),a(t,l(t))}var n;return f(e,t),k(e,[{key:"addStep",value:function(t,e){var n=t;return n instanceof ln?n.tour=this:n=new ln(this,n),b(e)?this.steps.push(n):this.steps.splice(e,0,n),n}},{key:"addSteps",value:function(t){var e=this;return Array.isArray(t)&&t.forEach((function(t){e.addStep(t)})),this}},{key:"back",value:function(){var t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}},{key:"cancel",value:(n=x(y().mark((function t(){var e,n;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.confirmCancel){t.next=14;break}if(e="function"==typeof this.options.confirmCancel,n=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?",!e){t.next=9;break}return t.next=6,this.options.confirmCancel();case 6:t.t0=t.sent,t.next=10;break;case 9:t.t0=window.confirm(n);case 10:t.t0&&this._done("cancel"),t.next=15;break;case 14:this._done("cancel");case 15:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"complete",value:function(){this._done("complete")}},{key:"getById",value:function(t){return this.steps.find((function(e){return e.id===t}))}},{key:"getCurrentStep",value:function(){return this.currentStep}},{key:"hide",value:function(){var t=this.getCurrentStep();if(t)return t.hide()}},{key:"isActive",value:function(){return vn.activeTour===this}},{key:"next",value:function(){var t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}},{key:"removeStep",value:function(t){var e=this,n=this.getCurrentStep();this.steps.some((function(n,r){if(n.id===t)return n.isOpen()&&n.hide(),n.destroy(),e.steps.splice(r,1),!0})),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}},{key:"show",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=m(t)?this.getById(t):this.steps[t];n&&(this._updateStateBeforeShow(),v(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,e):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show()))}},{key:"start",value:function(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}},{key:"_done",value:function(t){var e=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach((function(t){return t.destroy()})),this&&this.steps.forEach((function(t){t.options&&!1===t.options.canClickTarget&&t.options.attachTo&&t.target instanceof HTMLElement&&t.target.classList.remove("shepherd-target-click-disabled")})),this.trigger(t,{index:e}),vn.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===t||"complete"===t)&&this.modal){var n=document.querySelector(".shepherd-modal-overlay-container");n&&n.remove()}p(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}},{key:"_setupActiveTour",value:function(){this.trigger("active",{tour:this}),vn.activeTour=this}},{key:"_setupModal",value:function(){this.modal=new dn({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}},{key:"_skipStep",value:function(t,e){var n=this.steps.indexOf(t);if(n===this.steps.length-1)this.complete();else{var r=e?n+1:n-1;this.show(r,e)}}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var t=this.options.tourName||"tour";this.id="".concat(t,"--").concat(_())}}]),e}($),yn="undefined"==typeof window,gn=k((function t(){w(this,t)}));return yn?Object.assign(vn,{Tour:gn,Step:gn}):Object.assign(vn,{Tour:mn,Step:ln}),vn},"object"===E(e)?t.exports=i():void 0===(o="function"==typeof(r=i)?r.call(e,n,e,t):r)||(t.exports=o)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";n.r(r),n.d(r,{Shepherd:function(){return e.a}});var t=n(4992),e=n.n(t);try{window.Shepherd=e()}catch(t){}}(),r}()}));