!function(){"use strict";function t(){t=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,s=Object.create(o.prototype),a=new A(r||[]);return i(s,"_invoke",{value:_(t,n,a)}),s}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var d="suspendedStart",h="suspendedYield",v="executing",m="completed",g={};function y(){}function b(){}function x(){}var w={};l(w,a,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&o.call(E,a)&&(w=E);var $=x.prototype=y.prototype=Object.create(w);function T(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(r,i,s,a){var c=p(t[r],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):e.resolve(l).then((function(t){u.value=t,s(u)}),(function(t){return n("throw",t,s,a)}))}a(c.arg)}var r;i(this,"_invoke",{value:function(t,o){function i(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(i,i):i()}})}function _(t,n,r){var o=d;return function(i,s){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw s;return{value:e,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var c=I(a,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=p(t,n,r);if("normal"===u.type){if(o=r.done?m:h,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function I(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=p(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var s=i.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return b.prototype=x,i($,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,u,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,u,"GeneratorFunction")),t.prototype=Object.create($),t},n.awrap=function(t){return{__await:t}},T(O.prototype),l(O.prototype,c,(function(){return this})),n.AsyncIterator=O,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var s=new O(f(t,e,r,o),i);return n.isGeneratorFunction(e)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},T($),l($,u,"Generator"),l($,a,(function(){return this})),l($,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=P,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var c=o.call(s,"catchLoc"),u=o.call(s,"finallyLoc");if(c&&u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},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;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}function e(t,e,n,r,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function n(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var s=t.apply(n,r);function a(t){e(s,o,i,a,c,"next",t)}function c(t){e(s,o,i,a,c,"throw",t)}a(void 0)}))}}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=r.key,i=void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"))?i:String(i)),r)}var o,i}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,s(t,e)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var c=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===u}(t)}(t)};var u="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(t,e){return!1!==e.clone&&e.isMergeableObject(t)?v((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function f(t,e,n){return t.concat(e).map((function(t){return l(t,n)}))}function p(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function d(t,e){try{return e in t}catch(t){return!1}}function h(t,e,n){var r={};return n.isMergeableObject(t)&&p(t).forEach((function(e){r[e]=l(t[e],n)})),p(e).forEach((function(o){(function(t,e){return d(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(d(t,o)&&n.isMergeableObject(e[o])?r[o]=function(t,e){if(!e.customMerge)return v;var n=e.customMerge(t);return"function"==typeof n?n:v}(o,n)(t[o],e[o],n):r[o]=l(e[o],n))})),r}function v(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||f,n.isMergeableObject=n.isMergeableObject||c,n.cloneUnlessOtherwiseSpecified=l;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):h(t,e,n):l(e,n)}v.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return v(t,n,e)}),{})};var m=v;function g(t){return t instanceof HTMLElement}function y(t){return"function"==typeof t}function b(t){return"string"==typeof t}function x(t){return void 0===t}var w=function(){function t(){}var e=t.prototype;return e.on=function(t,e,n,r){return void 0===r&&(r=!1),x(this.bindings)&&(this.bindings={}),x(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:r}),this},e.once=function(t,e,n){return this.on(t,e,n,!0)},e.off=function(t,e){var n=this;return x(this.bindings)||x(this.bindings[t])||(x(e)?delete this.bindings[t]:this.bindings[t].forEach((function(r,o){r.handler===e&&n.bindings[t].splice(o,1)}))),this},e.trigger=function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return!x(this.bindings)&&this.bindings[t]&&this.bindings[t].forEach((function(n,o){var i=n.ctx,s=n.handler,a=n.once,c=i||e;s.apply(c,r),a&&e.bindings[t].splice(o,1)})),this},t}();function S(t){for(var e=Object.getOwnPropertyNames(t.constructor.prototype),n=0;n<e.length;n++){var r=e[n],o=t[r];"constructor"!==r&&"function"==typeof o&&(t[r]=o.bind(t))}return t}function E(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;(!x(t)&&n.currentTarget.matches(t)||r)&&e.tour.next()}}}(r,t);try{o=document.querySelector(r)}catch(t){}if(!x(r)&&!o)return console.error("No element was found for the selector supplied to advanceOn: "+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)})))}function $(t){return b(t)&&""!==t?"-"!==t.charAt(t.length-1)?t+"-":t:""}function T(t){return null==t||(!t.element||!t.on)}function O(){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 _(){return _=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_.apply(this,arguments)}function I(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}var L=Math.min,k=Math.max,A=Math.round,P=Math.floor,C=function(t){return{x:t,y:t}},j={left:"right",right:"left",bottom:"top",top:"bottom"},R={start:"end",end:"start"};function M(t,e,n){return k(t,L(e,n))}function D(t,e){return"function"==typeof t?t(e):t}function F(t){return t.split("-")[0]}function N(t){return t.split("-")[1]}function H(t){return"x"===t?"y":"x"}function q(t){return"y"===t?"height":"width"}function U(t){return["top","bottom"].includes(F(t))?"y":"x"}function B(t){return H(U(t))}function G(t,e,n){void 0===n&&(n=!1);var r=N(t),o=B(t),i=q(o),s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Y(s)),[s,Y(s)]}function J(t){var e=Y(t);return[V(t),e,V(e)]}function V(t){return t.replace(/start|end/g,(function(t){return R[t]}))}function W(t,e,n,r){var o=N(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[]}}(F(t),"start"===n,r);return o&&(i=i.map((function(t){return t+"-"+o})),e&&(i=i.concat(i.map(V)))),i}function Y(t){return t.replace(/left|right|bottom|top/g,(function(t){return j[t]}))}function z(t){return"number"!=typeof t?function(t){return _({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function X(t){return _({},t,{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}var K=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Z=["mainAxis","crossAxis","limiter"];function Q(t,e,n){var r,o=t.reference,i=t.floating,s=U(e),a=B(e),c=q(a),u=F(e),l="y"===s,f=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,d=o[c]/2-i[c]/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(N(e)){case"start":r[a]-=d*(n&&l?-1:1);break;case"end":r[a]+=d*(n&&l?-1:1)}return r}var tt=function(){var e=n(t().mark((function e(n,r,o){var i,s,a,c,u,l,f,p,d,h,v,m,g,y,b,x,w,S,E,$,T,O,I,L,k,A,P;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=o.placement,s=void 0===i?"bottom":i,a=o.strategy,c=void 0===a?"absolute":a,u=o.middleware,l=void 0===u?[]:u,f=o.platform,p=l.filter(Boolean),t.next=4,null==f.isRTL?void 0:f.isRTL(r);case 4:return d=t.sent,t.next=7,f.getElementRects({reference:n,floating:r,strategy:c});case 7:h=t.sent,v=Q(h,s,d),m=v.x,g=v.y,y=s,b={},x=0,w=0;case 13:if(!(w<p.length)){t.next=46;break}return E=p[w],$=E.name,T=E.fn,t.next=17,T({x:m,y:g,initialPlacement:s,placement:y,strategy:c,middlewareData:b,rects:h,platform:f,elements:{reference:n,floating:r}});case 17:if(O=t.sent,I=O.x,L=O.y,k=O.data,A=O.reset,m=null!=I?I:m,g=null!=L?L:g,b=_({},b,((S={})[$]=_({},b[$],k),S)),!(A&&x<=50)){t.next=43;break}if(x++,"object"!=typeof A){t.next=41;break}if(A.placement&&(y=A.placement),!A.rects){t.next=38;break}if(!0!==A.rects){t.next=36;break}return t.next=33,f.getElementRects({reference:n,floating:r,strategy:c});case 33:t.t0=t.sent,t.next=37;break;case 36:t.t0=A.rects;case 37:h=t.t0;case 38:P=Q(h,y,d),m=P.x,g=P.y;case 41:return w=-1,t.abrupt("continue",43);case 43:w++,t.next=13;break;case 46:return t.abrupt("return",{x:m,y:g,placement:y,strategy:c,middlewareData:b});case 47:case"end":return t.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();function et(t,e){return nt.apply(this,arguments)}function nt(){return nt=n(t().mark((function e(n,r){var o,i,s,a,c,u,l,f,p,d,h,v,m,g,y,b,x,w,S,E,$,T,O,I,L;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===r&&(r={}),i=n.x,s=n.y,a=n.platform,c=n.rects,u=n.elements,l=n.strategy,f=D(r,n),p=f.boundary,d=void 0===p?"clippingAncestors":p,h=f.rootBoundary,v=void 0===h?"viewport":h,m=f.elementContext,g=void 0===m?"floating":m,y=f.altBoundary,b=void 0!==y&&y,x=f.padding,w=z(void 0===x?0:x),S="floating"===g?"reference":"floating",E=u[b?S:g],t.t0=X,t.t1=a,t.next=10,null==a.isElement?void 0:a.isElement(E);case 10:if(t.t2=o=t.sent,null==t.t2){t.next=15;break}t.t3=o,t.next=16;break;case 15:t.t3=!0;case 16:if(!t.t3){t.next=20;break}t.t4=E,t.next=26;break;case 20:if(t.t5=E.contextElement,t.t5){t.next=25;break}return t.next=24,null==a.getDocumentElement?void 0:a.getDocumentElement(u.floating);case 24:t.t5=t.sent;case 25:t.t4=t.t5;case 26:return t.t6=t.t4,t.t7=d,t.t8=v,t.t9=l,t.t10={element:t.t6,boundary:t.t7,rootBoundary:t.t8,strategy:t.t9},t.next=33,t.t1.getClippingRect.call(t.t1,t.t10);case 33:return t.t11=t.sent,$=(0,t.t0)(t.t11),T="floating"===g?_({},c.floating,{x:i,y:s}):c.reference,t.next=38,null==a.getOffsetParent?void 0:a.getOffsetParent(u.floating);case 38:return O=t.sent,t.next=41,null==a.isElement?void 0:a.isElement(O);case 41:if(!t.sent){t.next=50;break}return t.next=44,null==a.getScale?void 0:a.getScale(O);case 44:if(t.t13=t.sent,t.t13){t.next=47;break}t.t13={x:1,y:1};case 47:t.t12=t.t13,t.next=51;break;case 50:t.t12={x:1,y:1};case 51:if(I=t.t12,t.t14=X,!a.convertOffsetParentRelativeRectToViewportRelativeRect){t.next=59;break}return t.next=56,a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:O,strategy:l});case 56:t.t15=t.sent,t.next=60;break;case 59:t.t15=T;case 60:return t.t16=t.t15,L=(0,t.t14)(t.t16),t.abrupt("return",{top:($.top-L.top+w.top)/I.y,bottom:(L.bottom-$.bottom+w.bottom)/I.y,left:($.left-L.left+w.left)/I.x,right:(L.right-$.right+w.right)/I.x});case 63:case"end":return t.stop()}}),e)}))),nt.apply(this,arguments)}var rt=function(e){return{name:"arrow",options:e,fn:function(r){return n(t().mark((function n(){var o,i,s,a,c,u,l,f,p,d,h,v,m,g,y,b,x,w,S,E,$,T,O,_,I,k,A,P,C,j,R,F,H,U,G;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=r.x,a=r.y,c=r.placement,u=r.rects,l=r.platform,f=r.elements,p=D(e,r)||{},d=p.element,h=p.padding,v=void 0===h?0:h,null!=d){t.next=4;break}return t.abrupt("return",{});case 4:return m=z(v),g={x:s,y:a},y=B(c),b=q(y),t.next=10,l.getDimensions(d);case 10:return x=t.sent,S=(w="y"===y)?"top":"left",E=w?"bottom":"right",$=w?"clientHeight":"clientWidth",T=u.reference[b]+u.reference[y]-g[y]-u.floating[b],O=g[y]-u.reference[y],t.next=19,null==l.getOffsetParent?void 0:l.getOffsetParent(d);case 19:if(_=t.sent,I=_?_[$]:0,t.t0=!I,t.t0){t.next=26;break}return t.next=25,null==l.isElement?void 0:l.isElement(_);case 25:t.t0=!t.sent;case 26:if(!t.t0){t.next=28;break}I=f.floating[$]||u.floating[b];case 28:return k=T/2-O/2,A=I/2-x[b]/2-1,P=L(m[S],A),C=L(m[E],A),j=P,R=I-x[b]-C,F=I/2-x[b]/2+k,H=M(j,F,R),U=null!=N(c)&&F!=H&&u.reference[b]/2-(F<j?P:C)-x[b]/2<0,G=U?F<j?j-F:R-F:0,t.abrupt("return",((i={})[y]=g[y]-G,i.data=((o={})[y]=H,o.centerOffset=F-H+G,o),i));case 39:case"end":return t.stop()}}),n)})))()}}},ot=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:function(r){return n(t().mark((function n(){var o,i,s,a,c,u,l,f,p,d,h,v,m,g,y,b,x,w,S,E,$,T,O,_,L,k,A,P,C,j,R,M,N,H,q,U;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.placement,s=r.middlewareData,a=r.rects,c=r.initialPlacement,u=r.platform,l=r.elements,f=D(e,r),p=f.mainAxis,d=void 0===p||p,h=f.crossAxis,v=void 0===h||h,m=f.fallbackPlacements,g=f.fallbackStrategy,y=void 0===g?"bestFit":g,b=f.fallbackAxisSideDirection,x=void 0===b?"none":b,w=f.flipAlignment,S=void 0===w||w,E=I(f,K),$=F(i),T=F(c)===c,t.next=6,null==u.isRTL?void 0:u.isRTL(l.floating);case 6:return O=t.sent,_=m||(T||!S?[Y(c)]:J(c)),m||"none"===x||_.push.apply(_,W(c,S,x,O)),L=[c].concat(_),t.next=12,et(r,E);case 12:if(k=t.sent,A=[],P=(null==(o=s.flip)?void 0:o.overflows)||[],d&&A.push(k[$]),v&&(C=G(i,a,O),A.push(k[C[0]],k[C[1]])),P=[].concat(P,[{placement:i,overflows:A}]),A.every((function(t){return t<=0}))){t.next=35;break}if(M=((null==(j=s.flip)?void 0:j.index)||0)+1,!(N=L[M])){t.next=23;break}return t.abrupt("return",{data:{index:M,overflows:P},reset:{placement:N}});case 23:if(H=null==(R=P.filter((function(t){return t.overflows[0]<=0})).sort((function(t,e){return t.overflows[1]-e.overflows[1]}))[0])?void 0:R.placement){t.next=33;break}t.t0=y,t.next="bestFit"===t.t0?28:"initialPlacement"===t.t0?31:33;break;case 28:return U=null==(q=P.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:q[0],U&&(H=U),t.abrupt("break",33);case 31:return H=c,t.abrupt("break",33);case 33:if(i===H){t.next=35;break}return t.abrupt("return",{reset:{placement:H}});case 35:return t.abrupt("return",{});case 36:case"end":return t.stop()}}),n)})))()}}},it=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:function(r){return n(t().mark((function n(){var o,i,s,a,c,u,l,f,p,d,h,v,m,g,y,b,x,w,S,E,$,T,O,L,k;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.x,s=r.y,a=r.placement,c=D(e,r),u=c.mainAxis,l=void 0===u||u,f=c.crossAxis,p=void 0!==f&&f,d=c.limiter,h=void 0===d?{fn:function(t){return{x:t.x,y:t.y}}}:d,v=I(c,Z),m={x:i,y:s},t.next=5,et(r,v);case 5:return g=t.sent,y=U(F(a)),b=H(y),x=m[b],w=m[y],l&&(S="y"===b?"bottom":"right",E=x+g["y"===b?"top":"left"],$=x-g[S],x=M(E,x,$)),p&&(T="y"===y?"bottom":"right",O=w+g["y"===y?"top":"left"],L=w-g[T],w=M(O,w,L)),k=h.fn(_({},r,((o={})[b]=x,o[y]=w,o))),t.abrupt("return",_({},k,{data:{x:k.x-i,y:k.y-s}}));case 14:case"end":return t.stop()}}),n)})))()}}},st=function(t){return void 0===t&&(t={}),{options:t,fn:function(e){var n,r=e.x,o=e.y,i=e.placement,s=e.rects,a=e.middlewareData,c=D(t,e),u=c.offset,l=void 0===u?0:u,f=c.mainAxis,p=void 0===f||f,d=c.crossAxis,h=void 0===d||d,v={x:r,y:o},m=U(i),g=H(m),y=v[g],b=v[m],x=D(l,e),w="number"==typeof x?{mainAxis:x,crossAxis:0}:_({mainAxis:0,crossAxis:0},x);if(p){var S="y"===g?"height":"width",E=s.reference[g]-s.floating[S]+w.mainAxis,$=s.reference[g]+s.reference[S]-w.mainAxis;y<E?y=E:y>$&&(y=$)}if(h){var T,O,I="y"===g?"width":"height",L=["top","left"].includes(F(i)),k=s.reference[m]-s.floating[I]+(L&&(null==(T=a.offset)?void 0:T[m])||0)+(L?0:w.crossAxis),A=s.reference[m]+s.reference[I]+(L?0:(null==(O=a.offset)?void 0:O[m])||0)-(L?w.crossAxis:0);b<k?b=k:b>A&&(b=A)}return(n={})[g]=y,n[m]=b,n}}};function at(t){return lt(t)?(t.nodeName||"").toLowerCase():"#document"}function ct(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function ut(t){var e;return null==(e=(lt(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function lt(t){return t instanceof Node||t instanceof ct(t).Node}function ft(t){return t instanceof Element||t instanceof ct(t).Element}function pt(t){return t instanceof HTMLElement||t instanceof ct(t).HTMLElement}function dt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ct(t).ShadowRoot)}function ht(t){var e=bt(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 vt(t){return["table","td","th"].includes(at(t))}function mt(t){var e=gt(),n=bt(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 gt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function yt(t){return["html","body","#document"].includes(at(t))}function bt(t){return ct(t).getComputedStyle(t)}function xt(t){return ft(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wt(t){if("html"===at(t))return t;var e=t.assignedSlot||t.parentNode||dt(t)&&t.host||ut(t);return dt(e)?e.host:e}function St(t){var e=wt(t);return yt(e)?t.ownerDocument?t.ownerDocument.body:t.body:pt(e)&&ht(e)?e:St(e)}function Et(t,e){var n;void 0===e&&(e=[]);var r=St(t),o=r===(null==(n=t.ownerDocument)?void 0:n.body),i=ct(r);return o?e.concat(i,i.visualViewport||[],ht(r)?r:[]):e.concat(r,Et(r))}function $t(t){var e=bt(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,o=pt(t),i=o?t.offsetWidth:n,s=o?t.offsetHeight:r,a=A(n)!==i||A(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Tt(t){return ft(t)?t:t.contextElement}function Ot(t){var e=Tt(t);if(!pt(e))return C(1);var n=e.getBoundingClientRect(),r=$t(e),o=r.width,i=r.height,s=r.$,a=(s?A(n.width):n.width)/o,c=(s?A(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}var _t=C(0);function It(t){var e=ct(t);return gt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:_t}function Lt(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);var o=t.getBoundingClientRect(),i=Tt(t),s=C(1);e&&(r?ft(r)&&(s=Ot(r)):s=Ot(t));var a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==ct(t))&&e}(i,n,r)?It(i):C(0),c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,l=o.width/s.x,f=o.height/s.y;if(i)for(var p=ct(i),d=r&&ft(r)?ct(r):r,h=p.frameElement;h&&r&&d!==p;){var v=Ot(h),m=h.getBoundingClientRect(),g=bt(h),y=m.left+(h.clientLeft+parseFloat(g.paddingLeft))*v.x,b=m.top+(h.clientTop+parseFloat(g.paddingTop))*v.y;c*=v.x,u*=v.y,l*=v.x,f*=v.y,c+=y,u+=b,h=ct(h).frameElement}return X({width:l,height:f,x:c,y:u})}function kt(t){return Lt(ut(t)).left+xt(t).scrollLeft}function At(t,e,n){var r;if("viewport"===e)r=function(t,e){var n=ct(t),r=ut(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var u=gt();(!u||u&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}(t,n);else if("document"===e)r=function(t){var e=ut(t),n=xt(t),r=t.ownerDocument.body,o=k(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=k(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+kt(t),a=-n.scrollTop;return"rtl"===bt(r).direction&&(s+=k(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(ut(t));else if(ft(e))r=function(t,e){var n=Lt(t,!0,"fixed"===e),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=pt(t)?Ot(t):C(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=It(t);r=_({},e,{x:e.x-o.x,y:e.y-o.y})}return X(r)}function Pt(t,e){var n=wt(t);return!(n===e||!ft(n)||yt(n))&&("fixed"===bt(n).position||Pt(n,e))}function Ct(t,e,n){var r=pt(e),o=ut(e),i="fixed"===n,s=Lt(t,!0,i,e),a={scrollLeft:0,scrollTop:0},c=C(0);if(r||!r&&!i)if(("body"!==at(e)||ht(o))&&(a=xt(e)),r){var u=Lt(e,!0,i,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else o&&(c.x=kt(o));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function jt(t,e){return pt(t)&&"fixed"!==bt(t).position?e?e(t):t.offsetParent:null}function Rt(t,e){var n=ct(t);if(!pt(t))return n;for(var r=jt(t,e);r&&vt(r)&&"static"===bt(r).position;)r=jt(r,e);return r&&("html"===at(r)||"body"===at(r)&&"static"===bt(r).position&&!mt(r))?n:r||function(t){for(var e=wt(t);pt(e)&&!yt(e);){if(mt(e))return e;e=wt(e)}return null}(t)||n}var Mt=function(){var e=n(t().mark((function e(n){var r,o,i,s,a;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.reference,o=n.floating,i=n.strategy,s=this.getOffsetParent||Rt,a=this.getDimensions,t.t0=Ct,t.t1=r,t.next=7,s(o);case 7:return t.t2=t.sent,t.t3=i,t.t4=(0,t.t0)(t.t1,t.t2,t.t3),t.t5=_,t.t6={x:0,y:0},t.next=14,a(o);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()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();var Dt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var e=t.rect,n=t.offsetParent,r=t.strategy,o=pt(n),i=ut(n);if(n===i)return e;var s={scrollLeft:0,scrollTop:0},a=C(1),c=C(0);if((o||!o&&"fixed"!==r)&&(("body"!==at(n)||ht(i))&&(s=xt(n)),pt(n))){var u=Lt(n);a=Ot(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+c.x,y:e.y*a.y-s.scrollTop*a.y+c.y}},getDocumentElement:ut,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=Et(t).filter((function(t){return ft(t)&&"body"!==at(t)})),o=null,i="fixed"===bt(t).position,s=i?wt(t):t;ft(s)&&!yt(s);){var a=bt(s),c=mt(s);c||"fixed"!==a.position||(o=null),(i?!c&&!o:!c&&"static"===a.position&&o&&["absolute","fixed"].includes(o.position)||ht(s)&&!c&&Pt(t,s))?r=r.filter((function(t){return t!==s})):o=a,s=wt(s)}return e.set(t,r),r}(e,this._c):[].concat(n),s=[].concat(i,[r]),a=s[0],c=s.reduce((function(t,n){var r=At(e,n,o);return t.top=k(r.top,t.top),t.right=L(r.right,t.right),t.bottom=L(r.bottom,t.bottom),t.left=k(r.left,t.left),t}),At(e,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Rt,getElementRects:Mt,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return $t(t)},getScale:Ot,isElement:ft,isRTL:function(t){return"rtl"===bt(t).direction}};function Ft(t,e,n,r){void 0===r&&(r={});var o=r,i=o.ancestorScroll,s=void 0===i||i,a=o.ancestorResize,c=void 0===a||a,u=o.elementResize,l=void 0===u?"function"==typeof ResizeObserver:u,f=o.layoutShift,p=void 0===f?"function"==typeof IntersectionObserver:f,d=o.animationFrame,h=void 0!==d&&d,v=Tt(t),m=s||c?[].concat(v?Et(v):[],Et(e)):[];m.forEach((function(t){s&&t.addEventListener("scroll",n,{passive:!0}),c&&t.addEventListener("resize",n)}));var g,y=v&&p?function(t,e){var n,r=null,o=ut(t);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();var u=t.getBoundingClientRect(),l=u.left,f=u.top,p=u.width,d=u.height;if(a||e(),p&&d){var h={rootMargin:-P(f)+"px "+-P(o.clientWidth-(l+p))+"px "+-P(o.clientHeight-(f+d))+"px "+-P(l)+"px",threshold:k(0,L(1,c))||1},v=!0;try{r=new IntersectionObserver(m,_({},h,{root:o.ownerDocument}))}catch(t){r=new IntersectionObserver(m,h)}r.observe(t)}function m(t){var e=t[0].intersectionRatio;if(e!==c){if(!v)return s();e?s(!1,e):n=setTimeout((function(){s(!1,1e-7)}),100)}v=!1}}(!0),i}(v,n):null,b=-1,x=null;l&&(x=new ResizeObserver((function(t){var r=t[0];r&&r.target===v&&x&&(x.unobserve(e),cancelAnimationFrame(b),b=requestAnimationFrame((function(){x&&x.observe(e)}))),n()})),v&&!h&&x.observe(v),x.observe(e));var w=h?Lt(t):null;return h&&function e(){var r=Lt(t);!w||r.x===w.x&&r.y===w.y&&r.width===w.width&&r.height===w.height||n();w=r,g=requestAnimationFrame(e)}(),n(),function(){m.forEach((function(t){s&&t.removeEventListener("scroll",n),c&&t.removeEventListener("resize",n)})),y&&y(),x&&x.disconnect(),x=null,h&&cancelAnimationFrame(g)}}var Nt=function(t,e,n){var r=new Map,o=_({platform:Dt},n),i=_({},o.platform,{_c:r});return tt(t,e,_({},o,{platform:i}))};function Ht(t){t.cleanup&&t.cleanup();var e=t._getResolvedAttachToOptions(),n=e.element,r=function(t,e){var n={strategy:"absolute",middleware:[]},r=function(t){if(t.options.arrow&&t.el)return t.el.querySelector(".shepherd-arrow");return!1}(e),o=T(t);o||(n.middleware.push(ot(),it({limiter:st(),crossAxis:!0})),r&&n.middleware.push(rt({element:r})),n.placement=t.on);return m(e.options.floatingUIOptions||{},n)}(e,t),o=T(e);o&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered"));return t.cleanup=Ft(n,t.el,(function(){t.el?function(t,e,n,r){Nt(t,e.el,n).then(function(t,e){return function(n){var r=n.x,o=n.y,i=n.placement,s=n.middlewareData;return t.el?(e?Object.assign(t.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(t.el.style,{position:"absolute",left:r+"px",top:o+"px"}),t.el.dataset.popperPlacement=i,function(t,e){var n=t.querySelector(".shepherd-arrow");if(n&&e.arrow){var r=e.arrow,o=r.x,i=r.y;Object.assign(n.style,{left:null!=o?o+"px":"",top:null!=i?i+"px":""})}}(t.el,s),t):t}}(e,r)).then((function(t){return new Promise((function(e){setTimeout((function(){return e(t)}),300)}))})).then((function(t){t&&t.el&&t.el.focus({preventScroll:!0})}))}(n,t,r,o):t.cleanup()})),t.target=e.element,r}function qt(){}function Ut(t,e){for(var n in e)t[n]=e[n];return t}function Bt(t){return t()}function Gt(){return Object.create(null)}function Jt(t){t.forEach(Bt)}function Vt(t){return"function"==typeof t}function Wt(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function Yt(t,e){t.appendChild(e)}function zt(t,e,n){t.insertBefore(e,n||null)}function Xt(t){t.parentNode&&t.parentNode.removeChild(t)}function Kt(t){return document.createElement(t)}function Zt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Qt(t){return document.createTextNode(t)}function te(){return Qt(" ")}function ee(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function ne(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}var re,oe=["width","height"];function ie(t,e){var n=Object.getOwnPropertyDescriptors(t.__proto__);for(var r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set&&-1===oe.indexOf(r)?t[r]=e[r]:ne(t,r,e[r])}function se(t,e,n){t.classList[n?"add":"remove"](e)}function ae(t){re=t}function ce(){if(!re)throw new Error("Function called outside component initialization");return re}function ue(t){ce().$$.after_update.push(t)}var le=[],fe=[],pe=[],de=[],he=Promise.resolve(),ve=!1;function me(t){pe.push(t)}var ge=new Set,ye=0;function be(){if(0===ye){var t=re;do{try{for(;ye<le.length;){var e=le[ye];ye++,ae(e),xe(e.$$)}}catch(t){throw le.length=0,ye=0,t}for(ae(null),le.length=0,ye=0;fe.length;)fe.pop()();for(var n=0;n<pe.length;n+=1){var r=pe[n];ge.has(r)||(ge.add(r),r())}pe.length=0}while(le.length);for(;de.length;)de.pop()();ve=!1,ge.clear(),ae(t)}}function xe(t){if(null!==t.fragment){t.update(),Jt(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(me)}}var we,Se=new Set;function Ee(){we={r:0,c:[],p:we}}function $e(){we.r||Jt(we.c),we=we.p}function Te(t,e){t&&t.i&&(Se.delete(t),t.i(e))}function Oe(t,e,n,r){if(t&&t.o){if(Se.has(t))return;Se.add(t),we.c.push((function(){Se.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}function _e(t){t&&t.c()}function Ie(t,e,n,r){var o=t.$$,i=o.fragment,s=o.after_update;i&&i.m(e,n),r||me((function(){var e,n=t.$$.on_mount.map(Bt).filter(Vt);t.$$.on_destroy?(e=t.$$.on_destroy).push.apply(e,n):Jt(n);t.$$.on_mount=[]})),s.forEach(me)}function Le(t,e){var n,r,o,i=t.$$;null!==i.fragment&&(n=i.after_update,r=[],o=[],pe.forEach((function(t){return-1===n.indexOf(t)?r.push(t):o.push(t)})),o.forEach((function(t){return t()})),pe=r,Jt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function ke(t,e){-1===t.$$.dirty[0]&&(le.push(t),ve||(ve=!0,he.then(be)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ae(t,e,n,r,o,i,s,a){void 0===a&&(a=[-1]);var c=re;ae(t);var u=t.$$={fragment:null,ctx:[],props:i,update:qt,not_equal:o,bound:Gt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Gt(),dirty:a,skip_bound:!1,root:e.target||c.$$.root};s&&s(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&&ke(t,e)),n})):[],u.update(),l=!0,Jt(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){var f=function(t){return Array.from(t.childNodes)}(e.target);u.fragment&&u.fragment.l(f),f.forEach(Xt)}else u.fragment&&u.fragment.c();e.intro&&Te(t.$$.fragment),Ie(t,e.target,e.anchor,e.customElement),be()}ae(c)}var Pe=function(){function t(){}var e=t.prototype;return e.$destroy=function(){Le(this,1),this.$destroy=qt},e.$on=function(t,e){if(!Vt(e))return qt;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){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)},t}();function Ce(t){var e,n,r,o,i;return{c:function(){ne(e=Kt("button"),"aria-label",n=t[3]?t[3]:null),ne(e,"class",r=(t[1]||"")+" shepherd-button "+(t[4]?"shepherd-button-secondary":"")),e.disabled=t[2],ne(e,"tabindex","0")},m:function(n,r){zt(n,e,r),e.innerHTML=t[5],o||(i=ee(e,"click",(function(){Vt(t[0])&&t[0].apply(this,arguments)})),o=!0)},p:function(o,i){var s=i[0];t=o,32&s&&(e.innerHTML=t[5]),8&s&&n!==(n=t[3]?t[3]:null)&&ne(e,"aria-label",n),18&s&&r!==(r=(t[1]||"")+" shepherd-button "+(t[4]?"shepherd-button-secondary":""))&&ne(e,"class",r),4&s&&(e.disabled=t[2])},i:qt,o:qt,d:function(t){t&&Xt(e),o=!1,i()}}}function je(t,e,n){var r,o,i,s,a,c,u=e.config,l=e.step;function f(t){return y(t)?t.call(l):t}return t.$$set=function(t){"config"in t&&n(6,u=t.config),"step"in t&&n(7,l=t.step)},t.$$.update=function(){192&t.$$.dirty&&(n(0,r=u.action?u.action.bind(l.tour):null),n(1,o=u.classes),n(2,i=!!u.disabled&&f(u.disabled)),n(3,s=u.label?f(u.label):null),n(4,a=u.secondary),n(5,c=u.text?f(u.text):null))},[r,o,i,s,a,c,u,l]}var Re=function(t){function e(e){var n;return Ae(a(n=t.call(this)||this),e,je,Ce,Wt,{config:6,step:7}),n}return i(e,t),e}(Pe);function Me(t,e,n){var r=t.slice();return r[2]=e[n],r}function De(t){for(var e,n,r=t[1],o=[],i=0;i<r.length;i+=1)o[i]=Fe(Me(t,r,i));var s=function(t){return Oe(o[t],1,1,(function(){o[t]=null}))};return{c:function(){for(var t=0;t<o.length;t+=1)o[t].c();e=Qt("")},m:function(t,r){for(var i=0;i<o.length;i+=1)o[i]&&o[i].m(t,r);zt(t,e,r),n=!0},p:function(t,n){if(3&n){var i;for(r=t[1],i=0;i<r.length;i+=1){var a=Me(t,r,i);o[i]?(o[i].p(a,n),Te(o[i],1)):(o[i]=Fe(a),o[i].c(),Te(o[i],1),o[i].m(e.parentNode,e))}for(Ee(),i=r.length;i<o.length;i+=1)s(i);$e()}},i:function(t){if(!n){for(var e=0;e<r.length;e+=1)Te(o[e]);n=!0}},o:function(t){o=o.filter(Boolean);for(var e=0;e<o.length;e+=1)Oe(o[e]);n=!1},d:function(t){!function(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(o,t),t&&Xt(e)}}}function Fe(t){var e,n;return e=new Re({props:{config:t[2],step:t[0]}}),{c:function(){_e(e.$$.fragment)},m:function(t,r){Ie(e,t,r),n=!0},p:function(t,n){var r={};2&n&&(r.config=t[2]),1&n&&(r.step=t[0]),e.$set(r)},i:function(t){n||(Te(e.$$.fragment,t),n=!0)},o:function(t){Oe(e.$$.fragment,t),n=!1},d:function(t){Le(e,t)}}}function Ne(t){var e,n,r=t[1]&&De(t);return{c:function(){e=Kt("footer"),r&&r.c(),ne(e,"class","shepherd-footer")},m:function(t,o){zt(t,e,o),r&&r.m(e,null),n=!0},p:function(t,n){var o=n[0];t[1]?r?(r.p(t,o),2&o&&Te(r,1)):((r=De(t)).c(),Te(r,1),r.m(e,null)):r&&(Ee(),Oe(r,1,1,(function(){r=null})),$e())},i:function(t){n||(Te(r),n=!0)},o:function(t){Oe(r),n=!1},d:function(t){t&&Xt(e),r&&r.d()}}}function He(t,e,n){var r,o=e.step;return t.$$set=function(t){"step"in t&&n(0,o=t.step)},t.$$.update=function(){1&t.$$.dirty&&n(1,r=o.options.buttons)},[o,r]}var qe=function(t){function e(e){var n;return Ae(a(n=t.call(this)||this),e,He,Ne,Wt,{step:0}),n}return i(e,t),e}(Pe);function Ue(t){var e,n,r,o,i;return{c:function(){e=Kt("button"),(n=Kt("span")).textContent="×",ne(n,"aria-hidden","true"),ne(e,"aria-label",r=t[0].label?t[0].label:"Close Tour"),ne(e,"class","shepherd-cancel-icon"),ne(e,"type","button")},m:function(r,s){zt(r,e,s),Yt(e,n),o||(i=ee(e,"click",t[1]),o=!0)},p:function(t,n){1&n[0]&&r!==(r=t[0].label?t[0].label:"Close Tour")&&ne(e,"aria-label",r)},i:qt,o:qt,d:function(t){t&&Xt(e),o=!1,i()}}}function Be(t,e,n){var r=e.cancelIcon,o=e.step;return t.$$set=function(t){"cancelIcon"in t&&n(0,r=t.cancelIcon),"step"in t&&n(2,o=t.step)},[r,function(t){t.preventDefault(),o.cancel()},o]}var Ge=function(t){function e(e){var n;return Ae(a(n=t.call(this)||this),e,Be,Ue,Wt,{cancelIcon:0,step:2}),n}return i(e,t),e}(Pe);function Je(t){var e;return{c:function(){ne(e=Kt("h3"),"id",t[1]),ne(e,"class","shepherd-title")},m:function(n,r){zt(n,e,r),t[3](e)},p:function(t,n){2&n[0]&&ne(e,"id",t[1])},i:qt,o:qt,d:function(n){n&&Xt(e),t[3](null)}}}function Ve(t,e,n){var r=e.labelId,o=e.element,i=e.title;return ue((function(){y(i)&&n(2,i=i()),n(0,o.innerHTML=i,o)})),t.$$set=function(t){"labelId"in t&&n(1,r=t.labelId),"element"in t&&n(0,o=t.element),"title"in t&&n(2,i=t.title)},[o,r,i,function(t){fe[t?"unshift":"push"]((function(){n(0,o=t)}))}]}var We=function(t){function e(e){var n;return Ae(a(n=t.call(this)||this),e,Ve,Je,Wt,{labelId:1,element:0,title:2}),n}return i(e,t),e}(Pe);function Ye(t){var e,n;return e=new We({props:{labelId:t[0],title:t[2]}}),{c:function(){_e(e.$$.fragment)},m:function(t,r){Ie(e,t,r),n=!0},p:function(t,n){var r={};1&n&&(r.labelId=t[0]),4&n&&(r.title=t[2]),e.$set(r)},i:function(t){n||(Te(e.$$.fragment,t),n=!0)},o:function(t){Oe(e.$$.fragment,t),n=!1},d:function(t){Le(e,t)}}}function ze(t){var e,n;return e=new Ge({props:{cancelIcon:t[3],step:t[1]}}),{c:function(){_e(e.$$.fragment)},m:function(t,r){Ie(e,t,r),n=!0},p:function(t,n){var r={};8&n&&(r.cancelIcon=t[3]),2&n&&(r.step=t[1]),e.$set(r)},i:function(t){n||(Te(e.$$.fragment,t),n=!0)},o:function(t){Oe(e.$$.fragment,t),n=!1},d:function(t){Le(e,t)}}}function Xe(t){var e,n,r,o=t[2]&&Ye(t),i=t[3]&&t[3].enabled&&ze(t);return{c:function(){e=Kt("header"),o&&o.c(),n=te(),i&&i.c(),ne(e,"class","shepherd-header")},m:function(t,s){zt(t,e,s),o&&o.m(e,null),Yt(e,n),i&&i.m(e,null),r=!0},p:function(t,r){var s=r[0];t[2]?o?(o.p(t,s),4&s&&Te(o,1)):((o=Ye(t)).c(),Te(o,1),o.m(e,n)):o&&(Ee(),Oe(o,1,1,(function(){o=null})),$e()),t[3]&&t[3].enabled?i?(i.p(t,s),8&s&&Te(i,1)):((i=ze(t)).c(),Te(i,1),i.m(e,null)):i&&(Ee(),Oe(i,1,1,(function(){i=null})),$e())},i:function(t){r||(Te(o),Te(i),r=!0)},o:function(t){Oe(o),Oe(i),r=!1},d:function(t){t&&Xt(e),o&&o.d(),i&&i.d()}}}function Ke(t,e,n){var r,o,i=e.labelId,s=e.step;return t.$$set=function(t){"labelId"in t&&n(0,i=t.labelId),"step"in t&&n(1,s=t.step)},t.$$.update=function(){2&t.$$.dirty&&(n(2,r=s.options.title),n(3,o=s.options.cancelIcon))},[i,s,r,o]}var Ze=function(t){function e(e){var n;return Ae(a(n=t.call(this)||this),e,Ke,Xe,Wt,{labelId:0,step:1}),n}return i(e,t),e}(Pe);function Qe(t){var e;return{c:function(){ne(e=Kt("div"),"class","shepherd-text"),ne(e,"id",t[1])},m:function(n,r){zt(n,e,r),t[3](e)},p:function(t,n){2&n[0]&&ne(e,"id",t[1])},i:qt,o:qt,d:function(n){n&&Xt(e),t[3](null)}}}function tn(t,e,n){var r=e.descriptionId,o=e.element,i=e.step;return ue((function(){var t=i.options.text;y(t)&&(t=t.call(i)),g(t)?o.appendChild(t):n(0,o.innerHTML=t,o)})),t.$$set=function(t){"descriptionId"in t&&n(1,r=t.descriptionId),"element"in t&&n(0,o=t.element),"step"in t&&n(2,i=t.step)},[o,r,i,function(t){fe[t?"unshift":"push"]((function(){n(0,o=t)}))}]}var en=function(t){function e(e){var n;return Ae(a(n=t.call(this)||this),e,tn,Qe,Wt,{descriptionId:1,element:0,step:2}),n}return i(e,t),e}(Pe);function nn(t){var e,n;return e=new Ze({props:{labelId:t[1],step:t[2]}}),{c:function(){_e(e.$$.fragment)},m:function(t,r){Ie(e,t,r),n=!0},p:function(t,n){var r={};2&n&&(r.labelId=t[1]),4&n&&(r.step=t[2]),e.$set(r)},i:function(t){n||(Te(e.$$.fragment,t),n=!0)},o:function(t){Oe(e.$$.fragment,t),n=!1},d:function(t){Le(e,t)}}}function rn(t){var e,n;return e=new en({props:{descriptionId:t[0],step:t[2]}}),{c:function(){_e(e.$$.fragment)},m:function(t,r){Ie(e,t,r),n=!0},p:function(t,n){var r={};1&n&&(r.descriptionId=t[0]),4&n&&(r.step=t[2]),e.$set(r)},i:function(t){n||(Te(e.$$.fragment,t),n=!0)},o:function(t){Oe(e.$$.fragment,t),n=!1},d:function(t){Le(e,t)}}}function on(t){var e,n;return e=new qe({props:{step:t[2]}}),{c:function(){_e(e.$$.fragment)},m:function(t,r){Ie(e,t,r),n=!0},p:function(t,n){var r={};4&n&&(r.step=t[2]),e.$set(r)},i:function(t){n||(Te(e.$$.fragment,t),n=!0)},o:function(t){Oe(e.$$.fragment,t),n=!1},d:function(t){Le(e,t)}}}function sn(t){var e,n,r,o,i=!x(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,s=!x(t[2].options.text),a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,c=i&&nn(t),u=s&&rn(t),l=a&&on(t);return{c:function(){e=Kt("div"),c&&c.c(),n=te(),u&&u.c(),r=te(),l&&l.c(),ne(e,"class","shepherd-content")},m:function(t,i){zt(t,e,i),c&&c.m(e,null),Yt(e,n),u&&u.m(e,null),Yt(e,r),l&&l.m(e,null),o=!0},p:function(t,o){var f=o[0];4&f&&(i=!x(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled),i?c?(c.p(t,f),4&f&&Te(c,1)):((c=nn(t)).c(),Te(c,1),c.m(e,n)):c&&(Ee(),Oe(c,1,1,(function(){c=null})),$e()),4&f&&(s=!x(t[2].options.text)),s?u?(u.p(t,f),4&f&&Te(u,1)):((u=rn(t)).c(),Te(u,1),u.m(e,r)):u&&(Ee(),Oe(u,1,1,(function(){u=null})),$e()),4&f&&(a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length),a?l?(l.p(t,f),4&f&&Te(l,1)):((l=on(t)).c(),Te(l,1),l.m(e,null)):l&&(Ee(),Oe(l,1,1,(function(){l=null})),$e())},i:function(t){o||(Te(c),Te(u),Te(l),o=!0)},o:function(t){Oe(c),Oe(u),Oe(l),o=!1},d:function(t){t&&Xt(e),c&&c.d(),u&&u.d(),l&&l.d()}}}function an(t,e,n){var r=e.descriptionId,o=e.labelId,i=e.step;return t.$$set=function(t){"descriptionId"in t&&n(0,r=t.descriptionId),"labelId"in t&&n(1,o=t.labelId),"step"in t&&n(2,i=t.step)},[r,o,i]}var cn=function(t){function e(e){var n;return Ae(a(n=t.call(this)||this),e,an,sn,Wt,{descriptionId:0,labelId:1,step:2}),n}return i(e,t),e}(Pe);function un(t){var e;return{c:function(){ne(e=Kt("div"),"class","shepherd-arrow"),ne(e,"data-popper-arrow","")},m:function(t,n){zt(t,e,n)},d:function(t){t&&Xt(e)}}}function ln(t){var e,n,r,o,i,s,a,c,u=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&un();r=new cn({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});for(var l=[{"aria-describedby":o=x(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],f={},p=0;p<l.length;p+=1)f=Ut(f,l[p]);return{c:function(){e=Kt("div"),u&&u.c(),n=te(),_e(r.$$.fragment),ie(e,f),se(e,"shepherd-has-cancel-icon",t[5]),se(e,"shepherd-has-title",t[6]),se(e,"shepherd-element",!0)},m:function(o,i){zt(o,e,i),u&&u.m(e,null),Yt(e,n),Ie(r,e,null),t[13](e),s=!0,a||(c=ee(e,"keydown",t[7]),a=!0)},p:function(t,a){var c=a[0];t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on?u||((u=un()).c(),u.m(e,n)):u&&(u.d(1),u=null);var p={};4&c&&(p.descriptionId=t[2]),8&c&&(p.labelId=t[3]),16&c&&(p.step=t[4]),r.$set(p),ie(e,f=function(t,e){for(var n={},r={},o={$$scope:1},i=t.length;i--;){var s=t[i],a=e[i];if(a){for(var c in s)c in a||(r[c]=1);for(var u in a)o[u]||(n[u]=a[u],o[u]=1);t[i]=a}else for(var l in s)o[l]=1}for(var f in r)f in n||(n[f]=void 0);return n}(l,[(!s||20&c&&o!==(o=x(t[4].options.text)?null:t[2]))&&{"aria-describedby":o},(!s||24&c&&i!==(i=t[4].options.title?t[3]:null))&&{"aria-labelledby":i},2&c&&t[1],{role:"dialog"},{tabindex:"0"}])),se(e,"shepherd-has-cancel-icon",t[5]),se(e,"shepherd-has-title",t[6]),se(e,"shepherd-element",!0)},i:function(t){s||(Te(r.$$.fragment,t),s=!0)},o:function(t){Oe(r.$$.fragment,t),s=!1},d:function(n){n&&Xt(e),u&&u.d(),Le(r),t[13](null),a=!1,c()}}}function fn(t){return t.split(" ").filter((function(t){return!!t.length}))}function pn(t,e,n){var r,o,i,s,a=e.classPrefix,c=e.element,u=e.descriptionId,l=e.firstFocusableElement,f=e.focusableElements,p=e.labelId,d=e.lastFocusableElement,h=e.step,v=e.dataStepId;s=function(){var t;n(1,((t={})["data-"+a+"shepherd-step-id"]=h.id,v=t)),n(9,f=c.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,l=f[0]),n(10,d=f[f.length-1])},ce().$$.on_mount.push(s),ue((function(){i!==h.options.classes&&(function(t){if(b(t)){var e,n=fn(t);n.length&&(e=c.classList).remove.apply(e,n)}}(i),function(t){if(b(t)){var e,n=fn(t);n.length&&(e=c.classList).add.apply(e,n)}}(i=h.options.classes))}));return t.$$set=function(t){"classPrefix"in t&&n(11,a=t.classPrefix),"element"in t&&n(0,c=t.element),"descriptionId"in t&&n(2,u=t.descriptionId),"firstFocusableElement"in t&&n(8,l=t.firstFocusableElement),"focusableElements"in t&&n(9,f=t.focusableElements),"labelId"in t&&n(3,p=t.labelId),"lastFocusableElement"in t&&n(10,d=t.lastFocusableElement),"step"in t&&n(4,h=t.step),"dataStepId"in t&&n(1,v=t.dataStepId)},t.$$.update=function(){16&t.$$.dirty&&(n(5,r=h.options&&h.options.cancelIcon&&h.options.cancelIcon.enabled),n(6,o=h.options&&h.options.title))},[c,v,u,p,h,r,o,function(t){var e=h.tour;switch(t.keyCode){case 9:if(0===f.length){t.preventDefault();break}t.shiftKey?(document.activeElement===l||document.activeElement.classList.contains("shepherd-element"))&&(t.preventDefault(),d.focus()):document.activeElement===d&&(t.preventDefault(),l.focus());break;case 27:e.options.exitOnEsc&&(t.stopPropagation(),h.cancel());break;case 37:e.options.keyboardNavigation&&(t.stopPropagation(),e.back());break;case 39:e.options.keyboardNavigation&&(t.stopPropagation(),e.next())}},l,f,d,a,function(){return c},function(t){fe[t?"unshift":"push"]((function(){n(0,c=t)}))}]}var dn=function(t){function e(e){var n;return Ae(a(n=t.call(this)||this),e,pn,ln,Wt,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12}),n}return i(e,t),o(e,[{key:"getElement",get:function(){return this.$$.ctx[12]}}]),e}(Pe),hn=function(t){function e(e,n){var r;return void 0===n&&(n={}),(r=t.call(this,e,n)||this).tour=e,r.classPrefix=r.tour.options?$(r.tour.options.classPrefix):"",r.styles=e.styles,r._resolvedAttachTo=null,S(a(r)),r._setOptions(n),a(r)||a(r)}i(e,t);var n=e.prototype;return n.cancel=function(){this.tour.cancel(),this.trigger("cancel")},n.complete=function(){this.tour.complete(),this.trigger("complete")},n.destroy=function(){var t;(t=this).cleanup&&t.cleanup(),t.cleanup=null,g(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")},n.getTour=function(){return this.tour},n.hide=function(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")},n._resolveAttachToOptions=function(){return this._resolvedAttachTo=function(t){var e=t.options.attachTo||{},n=Object.assign({},e);if(y(n.element)&&(n.element=n.element.call(t)),b(n.element)){try{n.element=document.querySelector(n.element)}catch(t){}n.element||console.error("The element for this Shepherd step was not found "+e.element)}return n}(this),this._resolvedAttachTo},n._getResolvedAttachToOptions=function(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo},n.isOpen=function(){return Boolean(this.el&&!this.el.hidden)},n.show=function(){var t=this;return y(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then((function(){return t._show()})):Promise.resolve(this._show())},n.updateStepOptions=function(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})},n.getElement=function(){return this.el},n.getTarget=function(){return this.target},n._createTooltipContent=function(){var t=this.id+"-description",e=this.id+"-label";return this.shepherdElementComponent=new dn({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:e,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()},n._scrollTo=function(t){var e=this._getResolvedAttachToOptions().element;y(this.options.scrollToHandler)?this.options.scrollToHandler(e):e instanceof Element&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(t)},n._getClassOptions=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(n.split(" "),r.split(" ")),i=new Set(o);return Array.from(i).join(" ").trim()},n._setOptions=function(t){var e=this;void 0===t&&(t={});var n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=m({},n||{}),this.options=Object.assign({arrow:!0},n,t,function(t,e){return{floatingUIOptions:m(t.floatingUIOptions||{},e.floatingUIOptions||{})}}(n,t));var r=this.options.when;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||"step-"+O(),r&&Object.keys(r).forEach((function(t){e.on(t,r[t],e)}))},n._setupElements=function(){x(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&E(this),Ht(this)},n._show=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(this.classPrefix+"shepherd-enabled"),n.classList.add(this.classPrefix+"shepherd-target"),e.classList.add("shepherd-enabled"),this.trigger("show")},n._styleTargetElementForStep=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"))},n._updateStepTargetOnHide=function(){var t=this.target||document.body;this.options.highlightClass&&t.classList.remove(this.options.highlightClass),t.classList.remove("shepherd-target-click-disabled",this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target")},e}(w);function vn(t){var e,n,r,o,i;return{c:function(){e=Zt("svg"),ne(n=Zt("path"),"d",t[2]),ne(e,"class",r=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m:function(r,s){zt(r,e,s),Yt(e,n),t[11](e),o||(i=ee(e,"touchmove",t[3]),o=!0)},p:function(t,o){var i=o[0];4&i&&ne(n,"d",t[2]),2&i&&r!==(r=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&ne(e,"class",r)},i:qt,o:qt,d:function(n){n&&Xt(e),t[11](null),o=!1,i()}}}function mn(t){if(!t)return null;var e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:mn(t.parentElement)}function gn(t,e,n){var r=e.element,o=e.openingProperties;O();var i,s=!1,a=void 0;c();function c(){n(4,o={width:0,height:0,x:0,y:0,r:0})}function u(){n(1,s=!1),d()}function l(t,e,r,i){if(void 0===t&&(t=0),void 0===e&&(e=0),i){var s=function(t,e){var n=t.getBoundingClientRect(),r=n.y||n.top,o=n.bottom||r+n.height;if(e){var i=e.getBoundingClientRect(),s=i.y||i.top,a=i.bottom||s+i.height;r=Math.max(r,s),o=Math.min(o,a)}return{y:r,height:Math.max(o-r,0)}}(i,r),a=s.y,u=s.height,l=i.getBoundingClientRect(),f=l.x,p=l.width,d=l.left;n(4,o={width:p+2*t,height:u+2*t,x:(f||d)-t,y:a-t,r:e})}else c()}function f(){n(1,s=!0)}var p=function(t){t.preventDefault()};function d(){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,s,a,c,u,l,f,p,d,h,v,m,g,y,b,x,w,S,E,$;16&t.$$.dirty&&n(2,(r=(e=o).width,s=e.height,a=e.x,c=void 0===a?0:a,u=e.y,l=void 0===u?0:u,f=e.r,p=void 0===f?0:f,d=window,h=d.innerWidth,v=d.innerHeight,g=(m="number"==typeof p?{topLeft:p,topRight:p,bottomRight:p,bottomLeft:p}:p).topLeft,y=void 0===g?0:g,b=m.topRight,x=void 0===b?0:b,w=m.bottomRight,S=void 0===w?0:w,E=m.bottomLeft,i="M"+h+","+v+"H0V0H"+h+"V"+v+"ZM"+(c+y)+","+l+"a"+y+","+y+",0,0,0-"+y+","+y+"V"+(s+l-($=void 0===E?0:E))+"a"+$+","+$+",0,0,0,"+$+","+$+"H"+(r+c-S)+"a"+S+","+S+",0,0,0,"+S+"-"+S+"V"+(l+x)+"a"+x+","+x+",0,0,0-"+x+"-"+x+"Z"))},[r,s,i,function(t){t.stopPropagation()},o,function(){return r},c,u,l,function(t){d(),t.tour.options.useModalOverlay?(!function(t){var e=t.options,n=e.modalOverlayOpeningPadding,r=e.modalOverlayOpeningRadius,o=mn(t.target),i=function e(){a=void 0,l(n,r,o,t.target),a=requestAnimationFrame(e)};i(),window.addEventListener("touchmove",p,{passive:!1})}(t),f()):u()},f,function(t){fe[t?"unshift":"push"]((function(){n(0,r=t)}))}]}var yn=function(t){function e(e){var n;return Ae(a(n=t.call(this)||this),e,gn,vn,Wt,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10}),n}return i(e,t),o(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}(Pe),bn=new w,xn=function(e){function r(t){var n;void 0===t&&(t={}),S(a(n=e.call(this,t)||this));n.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},t),n.classPrefix=$(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=a(n),bn.trigger(e,t)}))})),n._setTourID(),a(n)||a(n)}i(r,e);var o=r.prototype;return o.addStep=function(t,e){var n=t;return n instanceof hn?n.tour=this:n=new hn(this,n),x(e)?this.steps.push(n):this.steps.splice(e,0,n),n},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(){var e=n(t().mark((function e(){var n,r;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.confirmCancel){t.next=14;break}if(n="function"==typeof this.options.confirmCancel,r=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?",!n){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(r);case 10:t.t0&&this._done("cancel"),t.next=15;break;case 14:this._done("cancel");case 15:case"end":return t.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),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 bn.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,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())},o.show=function(t,e){void 0===t&&(t=0),void 0===e&&(e=!0);var n=b(t)?this.getById(t):this.steps[t];n&&(this._updateStateBeforeShow(),y(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._setupModal(),this._setupActiveTour(),this.next()},o._done=function(t){var e,n=this.steps.indexOf(this.currentStep);if(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.classList.remove("shepherd-target-click-disabled")})),this.trigger(t,{index:n}),bn.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===t||"complete"===t)&&this.modal){var r=document.querySelector(".shepherd-modal-overlay-container");r&&r.remove()}g(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},o._setupActiveTour=function(){this.trigger("active",{tour:this}),bn.activeTour=this},o._setupModal=function(){this.modal=new yn({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})},o._skipStep=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)}},o._updateStateBeforeShow=function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()},o._setTourID=function(){var t=this.options.tourName||"tour";this.id=t+"--"+O()},r}(w),wn=function(){};if("undefined"==typeof window?Object.assign(bn,{Tour:wn,Step:wn}):Object.assign(bn,{Tour:xn,Step:hn}),!Joomla)throw new Error("Joomla API is not properly initialised");function Sn(){sessionStorage.removeItem("currentStepId"),sessionStorage.removeItem("stepCount"),sessionStorage.removeItem("tourId"),sessionStorage.removeItem("tourToken"),sessionStorage.removeItem("previousStepUrl")}function En(t,e,n){var r=t.querySelector(".shepherd-header"),o=document.createElement("div");o.classList.add("shepherd-progress"),o.setAttribute("role","status"),o.setAttribute("aria-label",Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_STEP_NUMBER_OF").replace("{number}",e).replace("{total}",n));var i=document.createElement("span");i.setAttribute("aria-hidden",!0),i.innerText=e+"/"+n,o.appendChild(i),r.insertBefore(o,t.querySelector(".shepherd-cancel-icon"))}function $n(t,e,n){t&&!t.disabled?t.focus():e&&!e.disabled?e.focus():n.focus()}function Tn(t){sessionStorage.setItem("tourId",t.id),sessionStorage.setItem("stepCount",String(t.steps.length));var e=sessionStorage.getItem("currentStepId"),n=null,r=-1;null!=e&&Number(e)>-1&&(r=void 0!==t.steps[e]?Number(e):-1)>0&&(n=t.steps[r-1]);var o=function(){var t=new bn.Tour({defaultStepOptions:{cancelIcon:{enabled:!0,label:Joomla.Text._("JCANCEL")},classes:"shepherd-theme-arrows",scrollTo:{behavior:"smooth",block:"center"}},useModalOverlay:!0,keyboardNavigation:!0});return t.on("cancel",(function(){Sn(),t.steps=[]})),t}();if(r<0){var i=Joomla.getOptions("system.paths").rootFull;if(window.location.href!==i+t.steps[0].url)return void(window.location.href=i+t.steps[0].url);!function(t,e){t.addStep({title:e.title,text:e.description,classes:"shepherd-theme-arrows",buttons:[{classes:"btn btn-primary shepherd-button-primary",action:function(){return this.next()},text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_START")}],id:"tourinfo",when:{show:function(){sessionStorage.setItem("currentStepId","tourinfo"),En(this.getElement(),1,sessionStorage.getItem("stepCount"))}}})}(o,t.steps[0]),r=1}for(var s,a=t.steps.length,c=function(e){if(s=[],(null===n||e>r||"redirect"===t.steps[e].type)&&function(t,e){t.push({text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_BACK"),classes:"btn btn-secondary shepherd-button-secondary",action:function(){if("redirect"===e.type){sessionStorage.setItem("currentStepId",e.id-1);var t=sessionStorage.getItem("previousStepUrl");t&&(sessionStorage.removeItem("previousStepUrl"),window.location.href=t)}return this.back()}})}(s,t.steps[e]),t&&t.steps[e].target&&"interactive"===t.steps[e].type){var i=document.querySelector(t.steps[e].target);if(i&&t&&t.steps&&t.steps[e]&&t.steps[e].interactive_type)switch(t.steps[e].interactive_type){case"submit":i.addEventListener("click",(function(){sessionStorage.getItem("tourId")&&sessionStorage.setItem("currentStepId",t.steps[e].id+1)}));break;case"text":i.step_id=e,i.hasAttribute("required")&&["email","password","search","tel","text","url"].includes(i.type)&&["input","focus"].forEach((function(t){return i.addEventListener(t,(function(t){sessionStorage.getItem("tourId")&&(t.target.value.trim().length?function(t){var e=document.querySelector(".step-next-button-"+t.currentTarget.step_id);e.removeAttribute("disabled"),e.classList.remove("disabled")}(t):function(t){var e=document.querySelector(".step-next-button-"+t.currentTarget.step_id);e.setAttribute("disabled","disabled"),e.classList.add("disabled")}(t))}))}));break;case"button":i.addEventListener("click",(function(){sessionStorage.setItem("currentStepId",t.steps[e].id+1),o.next()}))}}e<a-1?(t&&"interactive"!==t.steps[e].type||t&&"text"===t.steps[e].interactive_type||t&&"other"===t.steps[e].interactive_type)&&function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=""),t.push({text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_NEXT"),classes:"btn btn-primary shepherd-button-primary step-next-button-"+e.id+" "+r,action:function(){return this.next()},disabled:n})}(s,t.steps[e]):function(t){t.push({text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_COMPLETE"),classes:"btn btn-primary shepherd-button-primary",action:function(){return this.cancel()}})}(s),function(t,e,n){var r=new bn.Step(t,{title:e.title,text:e.description,classes:"shepherd-theme-arrows",buttons:n,id:e.id,arrow:!0,beforeShowPromise:function(){return new Promise((function(e){if(t.currentStep.options.attachTo.element){var n=t.currentStep.options.attachTo.element.split(","),r=t.currentStep.options.attachTo.on;t.currentStep.options.attachTo.element="",t.currentStep.options.attachTo.on="center";for(var o=0;o<n.length;o+=1){var i=document.querySelector(n[o]);if(null!=i&&!i.disabled&&!i.readonly&&"none"!==i.style.display){t.currentStep.options.attachTo.element=n[o],t.currentStep.options.attachTo.on=r;break}}}if("redirect"===t.currentStep.options.attachTo.type){var s=Joomla.getOptions("system.paths").rootFull+t.currentStep.options.attachTo.url;window.location.href!==s?(sessionStorage.setItem("currentStepId",t.currentStep.id),sessionStorage.setItem("previousStepUrl",window.location.href),window.location.href=s):e()}else e()})).catch((function(){}))},when:{show:function(){var t=this.getElement(),e=this.getTarget();if(t.setAttribute("aria-live","assertive"),sessionStorage.setItem("currentStepId",this.id),En(t,this.id+1,sessionStorage.getItem("stepCount")),e&&"interactive"===this.options.attachTo.type){var n=t.querySelector(".shepherd-cancel-icon"),r=t.querySelector(".shepherd-button-primary"),o=t.querySelector(".shepherd-button-secondary");"input"===e.tagName.toLowerCase()&&e.hasAttribute("required")&&["email","password","search","tel","text","url"].includes(e.type)&&(e.value.trim().length?(r.removeAttribute("disabled"),r.classList.remove("disabled")):(r.setAttribute("disabled","disabled"),r.classList.add("disabled"))),n.addEventListener("keydown",(function(t){"Tab"===t.key&&("joomla-field-fancy-select"===e.tagName.toLowerCase()?(e.querySelector(".choices").click(),e.querySelector(".choices input").focus()):"joomla-field-fancy-select"===e.parentElement.tagName.toLowerCase()?(e.click(),e.querySelector("input").focus()):(e.focus(),t.preventDefault()))})),"iframe"===e.tagName.toLowerCase()?e.contentWindow.document.body.addEventListener("blur",(function(t){sessionStorage.getItem("tourId")&&(setTimeout((function(){$n(r,o,n)}),1),t.preventDefault())})):"joomla-field-fancy-select"===e.tagName.toLowerCase()?e.querySelector(".choices input").addEventListener("blur",(function(t){sessionStorage.getItem("tourId")&&($n(r,o,n),t.preventDefault())})):"joomla-field-fancy-select"===e.parentElement.tagName.toLowerCase()?e.querySelector("input").addEventListener("blur",(function(t){sessionStorage.getItem("tourId")&&($n(r,o,n),t.preventDefault())})):e.addEventListener("blur",(function(t){sessionStorage.getItem("tourId")&&($n(r,o,n),t.preventDefault())}))}}}});if(e.target?r.updateStepOptions({attachTo:{element:e.target,on:e.position,url:e.url,type:e.type,interactive_type:e.interactive_type}}):r.updateStepOptions({attachTo:{url:e.url,type:e.type,interactive_type:e.interactive_type}}),"next"!==e.type){var o=Joomla.getOptions("system.paths").root+"/"+e.url;sessionStorage.getItem(o)&&sessionStorage.removeItem(o)}t.addStep(r)}(o,t.steps[e],s),n=t.steps[e]},u=r;u<a;u+=1)c(u);o.start()}function On(t){if(t>0){var e=Joomla.getOptions("system.paths").rootFull+"administrator/index.php?option=com_ajax&plugin=guidedtours&group=system&format=json&id="+t;fetch(e).then((function(t){return t.json()})).then((function(t){t.success||(t.messages&&Joomla.renderMessages(t.messages),Sn()),Tn(t.data)})).catch((function(t){Sn();var e={error:[Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_TOUR_ERROR")]};throw Joomla.renderMessages(e),new Error(t)}))}}document.querySelector("body").addEventListener("click",(function(t){t.target&&t.target.classList.contains("button-start-guidedtour")&&(void 0===t.target.getAttribute("data-id")||t.target.getAttribute("data-id")<=0?Joomla.renderMessages({error:[Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_COULD_NOT_LOAD_THE_TOUR")]}):(sessionStorage.setItem("tourToken",String(Joomla.getOptions("com_guidedtours.token"))),On(t.target.getAttribute("data-id"))))}));var _n=sessionStorage.getItem("tourId");_n>0&&sessionStorage.getItem("tourToken")===String(Joomla.getOptions("com_guidedtours.token"))?On(_n):Sn()}();