CoreFiles by mySites.guru
guidedtours.min.js1 lines, 60,623 bytes, from Joomla_4.3.0-beta4-Beta-Full_Package.zip
Raw History Compare with 4.3.0-beta3
md5
450dcb93bef400022443d921291d522d
sha1
ccf7e44c5fa648bac84c0527304826e8963ef8f7
sha256
9e195c3e990ec3005f76132678d512fefba31f20c6d7c55788a371384a9bc834
var isMergeableObject=function(t){return isNonNullObject(t)&&!isSpecial(t)};function isNonNullObject(t){return!!t&&"object"==typeof t}function isSpecial(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||isReactElement(t)}var canUseSymbol="function"==typeof Symbol&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(t){return t.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(t){return Array.isArray(t)?[]:{}}function cloneUnlessOtherwiseSpecified(t,e){return!1!==e.clone&&e.isMergeableObject(t)?deepmerge(emptyTarget(t),t,e):t}function defaultArrayMerge(t,e,n){return t.concat(e).map((function(t){return cloneUnlessOtherwiseSpecified(t,n)}))}function getMergeFunction(t,e){if(!e.customMerge)return deepmerge;var n=e.customMerge(t);return"function"==typeof n?n:deepmerge}function getEnumerableOwnPropertySymbols(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}function getKeys(t){return Object.keys(t).concat(getEnumerableOwnPropertySymbols(t))}function propertyIsOnObject(t,e){try{return e in t}catch(t){return!1}}function propertyIsUnsafe(t,e){return propertyIsOnObject(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function mergeObject(t,e,n){var o={};return n.isMergeableObject(t)&&getKeys(t).forEach((function(e){o[e]=cloneUnlessOtherwiseSpecified(t[e],n)})),getKeys(e).forEach((function(i){propertyIsUnsafe(t,i)||(propertyIsOnObject(t,i)&&n.isMergeableObject(e[i])?o[i]=getMergeFunction(i,n)(t[i],e[i],n):o[i]=cloneUnlessOtherwiseSpecified(e[i],n))})),o}function deepmerge(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||defaultArrayMerge,n.isMergeableObject=n.isMergeableObject||isMergeableObject,n.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var o=Array.isArray(e);return o===Array.isArray(t)?o?n.arrayMerge(t,e,n):mergeObject(t,e,n):cloneUnlessOtherwiseSpecified(e,n)}deepmerge.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return deepmerge(t,n,e)}),{})};var deepmerge_1=deepmerge,cjs=deepmerge_1;function isElement$1(t){return t instanceof Element}function isHTMLElement$1(t){return t instanceof HTMLElement}function isFunction(t){return"function"==typeof t}function isString(t){return"string"==typeof t}function isUndefined(t){return void 0===t}class Evented{on(t,e,n,o){return void 0===o&&(o=!1),isUndefined(this.bindings)&&(this.bindings={}),isUndefined(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:o}),this}once(t,e,n){return this.on(t,e,n,!0)}off(t,e){return isUndefined(this.bindings)||isUndefined(this.bindings[t])||(isUndefined(e)?delete this.bindings[t]:this.bindings[t].forEach(((n,o)=>{n.handler===e&&this.bindings[t].splice(o,1)}))),this}trigger(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return!isUndefined(this.bindings)&&this.bindings[t]&&this.bindings[t].forEach(((e,o)=>{const{ctx:i,handler:s,once:r}=e,l=i||this;s.apply(l,n),r&&this.bindings[t].splice(o,1)})),this}}function autoBind(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],i=t[o];"constructor"!==o&&"function"==typeof i&&(t[o]=i.bind(t))}return t}function _setupAdvanceOnHandler(t,e){return n=>{if(e.isOpen()){const o=e.el&&n.currentTarget===e.el;(!isUndefined(t)&&n.currentTarget.matches(t)||o)&&e.tour.next()}}}function bindAdvance(t){const{event:e,selector:n}=t.options.advanceOn||{};if(!e)return console.error("advanceOn was defined, but no event name was passed.");{const o=_setupAdvanceOnHandler(n,t);let i;try{i=document.querySelector(n)}catch(t){}if(!isUndefined(n)&&!i)return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);i?(i.addEventListener(e,o),t.on("destroy",(()=>i.removeEventListener(e,o)))):(document.body.addEventListener(e,o,!0),t.on("destroy",(()=>document.body.removeEventListener(e,o,!0))))}}function normalizePrefix(t){return isString(t)&&""!==t?"-"!==t.charAt(t.length-1)?`${t}-`:t:""}function parseAttachTo(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(isFunction(n.element)&&(n.element=n.element.call(t)),isString(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}function shouldCenterStep(t){return null==t||(!t.element||!t.on)}function uuid(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)}))}function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var n,o,i={},s=Object.keys(t);for(o=0;o<s.length;o++)n=s[o],e.indexOf(n)>=0||(i[n]=t[n]);return i}const _excluded2=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"],_excluded4=["mainAxis","crossAxis","limiter"];function getSide(t){return t.split("-")[0]}function getAlignment(t){return t.split("-")[1]}function getMainAxisFromPlacement(t){return["top","bottom"].includes(getSide(t))?"x":"y"}function getLengthFromAxis(t){return"y"===t?"height":"width"}function computeCoordsFromPlacement(t,e,n){let{reference:o,floating:i}=t;const s=o.x+o.width/2-i.width/2,r=o.y+o.height/2-i.height/2,l=getMainAxisFromPlacement(e),c=getLengthFromAxis(l),a=o[c]/2-i[c]/2,u="x"===l;let d;switch(getSide(e)){case"top":d={x:s,y:o.y-i.height};break;case"bottom":d={x:s,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:r};break;case"left":d={x:o.x-i.width,y:r};break;default:d={x:o.x,y:o.y}}switch(getAlignment(e)){case"start":d[l]-=a*(n&&u?-1:1);break;case"end":d[l]+=a*(n&&u?-1:1)}return d}const computePosition$1=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,l=s.filter(Boolean),c=await(null==r.isRTL?void 0:r.isRTL(e));let a=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=computeCoordsFromPlacement(a,o,c),p=o,h={},f=0;for(let n=0;n<l.length;n++){const{name:s,fn:m}=l[n],{x:g,y:_,data:b,reset:y}=await m({x:u,y:d,initialPlacement:o,placement:p,strategy:i,middlewareData:h,rects:a,platform:r,elements:{reference:t,floating:e}});u=null!=g?g:u,d=null!=_?_:d,h=_extends({},h,{[s]:_extends({},h[s],b)}),y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(a=!0===y.rects?await r.getElementRects({reference:t,floating:e,strategy:i}):y.rects),({x:u,y:d}=computeCoordsFromPlacement(a,p,c))),n=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}};function expandPaddingObject(t){return _extends({top:0,right:0,bottom:0,left:0},t)}function getSideObjectFromPadding(t){return"number"!=typeof t?expandPaddingObject(t):{top:t,right:t,bottom:t,left:t}}function rectToClientRect(t){return _extends({},t,{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}async function detectOverflow(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:s,rects:r,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=e,f=getSideObjectFromPadding(h),m=l[p?"floating"===d?"reference":"floating":d],g=rectToClientRect(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(m)))||n?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(l.floating)),boundary:a,rootBoundary:u,strategy:c})),_="floating"===d?_extends({},r.floating,{x:o,y:i}):r.reference,b=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l.floating)),y=await(null==s.isElement?void 0:s.isElement(b))&&await(null==s.getScale?void 0:s.getScale(b))||{x:1,y:1},x=rectToClientRect(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_,offsetParent:b,strategy:c}):_);return{top:(g.top-x.top+f.top)/y.y,bottom:(x.bottom-g.bottom+f.bottom)/y.y,left:(g.left-x.left+f.left)/y.x,right:(x.right-g.right+f.right)/y.x}}const min$1=Math.min,max$1=Math.max;function within(t,e,n){return max$1(t,min$1(e,n))}const arrow=t=>({name:"arrow",options:t,async fn(e){const{element:n,padding:o=0}=null!=t?t:{},{x:i,y:s,placement:r,rects:l,platform:c}=e;if(null==n)return{};const a=getSideObjectFromPadding(o),u={x:i,y:s},d=getMainAxisFromPlacement(r),p=getAlignment(r),h=getLengthFromAxis(d),f=await c.getDimensions(n),m="y"===d?"top":"left",g="y"===d?"bottom":"right",_=l.reference[h]+l.reference[d]-u[d]-l.floating[h],b=u[d]-l.reference[d],y=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let x=y?"y"===d?y.clientHeight||0:y.clientWidth||0:0;0===x&&(x=l.floating[h]);const S=_/2-b/2,v=a[m],w=x-f[h]-a[g],$=x/2-f[h]/2+S,E=within(v,$,w),T=("start"===p?a[m]:a[g])>0&&$!==E&&l.reference[h]<=l.floating[h];return{[d]:u[d]-(T?$<v?v-$:w-$:0),data:{[d]:E,centerOffset:$-E}}}}),hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,(t=>hash$1[t]))}function getAlignmentSides(t,e,n){void 0===n&&(n=!1);const o=getAlignment(t),i=getMainAxisFromPlacement(t),s=getLengthFromAxis(i);let r="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=getOppositePlacement(r)),{main:r,cross:getOppositePlacement(r)}}const hash={start:"end",end:"start"};function getOppositeAlignmentPlacement(t){return t.replace(/start|end/g,(t=>hash[t]))}function getExpandedPlacements(t){const e=getOppositePlacement(t);return[getOppositeAlignmentPlacement(t),e,getOppositeAlignmentPlacement(e)]}const flip=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:o,middlewareData:i,rects:s,initialPlacement:r,platform:l,elements:c}=e,{mainAxis:a=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",flipAlignment:h=!0}=t,f=_objectWithoutPropertiesLoose(t,_excluded2),m=getSide(o),g=[r,...d||(m===r||!h?[getOppositePlacement(r)]:getExpandedPlacements(r))],_=await detectOverflow(e,f),b=[];let y=(null==(n=i.flip)?void 0:n.overflows)||[];if(a&&b.push(_[m]),u){const{main:t,cross:e}=getAlignmentSides(o,s,await(null==l.isRTL?void 0:l.isRTL(c.floating)));b.push(_[t],_[e])}if(y=[...y,{placement:o,overflows:b}],!b.every((t=>t<=0))){var x,S;const t=(null!=(x=null==(S=i.flip)?void 0:S.index)?x:0)+1,e=g[t];if(e)return{data:{index:t,overflows:y},reset:{placement:e}};let n="bottom";switch(p){case"bestFit":{var v;const t=null==(v=y.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:v[0].placement;t&&(n=t);break}case"initialPlacement":n=r}if(o!==n)return{reset:{placement:n}}}return{}}}};function getCrossAxis(t){return"x"===t?"y":"x"}const shift=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:r=!1,limiter:l={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}}}=t,c=_objectWithoutPropertiesLoose(t,_excluded4),a={x:n,y:o},u=await detectOverflow(e,c),d=getMainAxisFromPlacement(getSide(i)),p=getCrossAxis(d);let h=a[d],f=a[p];if(s){const t="y"===d?"bottom":"right";h=within(h+u["y"===d?"top":"left"],h,h-u[t])}if(r){const t="y"===p?"bottom":"right";f=within(f+u["y"===p?"top":"left"],f,f-u[t])}const m=l.fn(_extends({},e,{[d]:h,[p]:f}));return _extends({},m,{data:{x:m.x-n,y:m.y-o}})}}},limitShift=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:s,middlewareData:r}=e,{offset:l=0,mainAxis:c=!0,crossAxis:a=!0}=t,u={x:n,y:o},d=getMainAxisFromPlacement(i),p=getCrossAxis(d);let h=u[d],f=u[p];const m="function"==typeof l?l(e):l,g="number"==typeof m?{mainAxis:m,crossAxis:0}:_extends({mainAxis:0,crossAxis:0},m);if(c){const t="y"===d?"height":"width",e=s.reference[d]-s.floating[t]+g.mainAxis,n=s.reference[d]+s.reference[t]-g.mainAxis;h<e?h=e:h>n&&(h=n)}if(a){var _,b,y,x;const t="y"===d?"width":"height",e=["top","left"].includes(getSide(i)),n=s.reference[p]-s.floating[t]+(e&&null!=(_=null==(b=r.offset)?void 0:b[p])?_:0)+(e?0:g.crossAxis),o=s.reference[p]+s.reference[t]+(e?0:null!=(y=null==(x=r.offset)?void 0:x[p])?y:0)-(e?g.crossAxis:0);f<n?f=n:f>o&&(f=o)}return{[d]:h,[p]:f}}}};function getWindow(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function getComputedStyle(t){return getWindow(t).getComputedStyle(t)}function getNodeName(t){return isNode(t)?(t.nodeName||"").toLowerCase():""}let uaString;function getUAString(){if(uaString)return uaString;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(uaString=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),uaString):navigator.userAgent}function isHTMLElement(t){return t instanceof getWindow(t).HTMLElement}function isElement(t){return t instanceof getWindow(t).Element}function isNode(t){return t instanceof getWindow(t).Node}function isShadowRoot(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof getWindow(t).ShadowRoot||t instanceof ShadowRoot}function isOverflowElement(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=getComputedStyle(t);return/auto|scroll|overlay|hidden/.test(e+o+n)&&!["inline","contents"].includes(i)}function isTableElement(t){return["table","td","th"].includes(getNodeName(t))}function isContainingBlock(t){const e=/firefox/i.test(getUAString()),n=getComputedStyle(t),o=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!o&&"none"!==o||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((t=>n.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const e=n.contain;return null!=e&&e.includes(t)}))}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function isLastTraversableNode(t){return["html","body","#document"].includes(getNodeName(t))}const FALLBACK_SCALE={x:1,y:1};function getScale(t){const e=!isElement(t)&&t.contextElement?t.contextElement:isElement(t)?t:null;if(!e)return FALLBACK_SCALE;const n=e.getBoundingClientRect(),o=getComputedStyle(e);let i=n.width/parseFloat(o.width),s=n.height/parseFloat(o.height);return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}function getBoundingClientRect(t,e,n,o){var i,s,r,l;void 0===e&&(e=!1),void 0===n&&(n=!1);const c=t.getBoundingClientRect();let a=FALLBACK_SCALE;e&&(o?isElement(o)&&(a=getScale(o)):a=getScale(t));const u=isElement(t)?getWindow(t):window,d=!isLayoutViewport()&&n,p=(c.left+(d&&null!=(i=null==(s=u.visualViewport)?void 0:s.offsetLeft)?i:0))/a.x,h=(c.top+(d&&null!=(r=null==(l=u.visualViewport)?void 0:l.offsetTop)?r:0))/a.y,f=c.width/a.x,m=c.height/a.y;return{width:f,height:m,top:h,right:p+f,bottom:h+m,left:p,x:p,y:h}}function getDocumentElement(t){return((isNode(t)?t.ownerDocument:t.document)||window.document).documentElement}function getNodeScroll(t){return isElement(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getNodeScroll(t).scrollLeft}function getRectRelativeToOffsetParent(t,e,n){const o=isHTMLElement(e),i=getDocumentElement(e),s=getBoundingClientRect(t,!0,"fixed"===n,e);let r={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==getNodeName(e)||isOverflowElement(i))&&(r=getNodeScroll(e)),isHTMLElement(e)){const t=getBoundingClientRect(e,!0);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&(l.x=getWindowScrollBarX(i));return{x:s.left+r.scrollLeft-l.x,y:s.top+r.scrollTop-l.y,width:s.width,height:s.height}}function getParentNode(t){if("html"===getNodeName(t))return t;const e=t.assignedSlot||t.parentNode||(isShadowRoot(t)?t.host:null)||getDocumentElement(t);return isShadowRoot(e)?e.host:e}function getTrueOffsetParent(t){return isHTMLElement(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function getContainingBlock(t){let e=getParentNode(t);for(;isHTMLElement(e)&&!isLastTraversableNode(e);){if(isContainingBlock(e))return e;e=getParentNode(e)}return null}function getOffsetParent(t){const e=getWindow(t);let n=getTrueOffsetParent(t);for(;n&&isTableElement(n)&&"static"===getComputedStyle(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle(n).position&&!isContainingBlock(n))?e:n||getContainingBlock(t)||e}function getDimensions(t){if(isHTMLElement(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=getBoundingClientRect(t);return{width:e.width,height:e.height}}function convertOffsetParentRelativeRectToViewportRelativeRect(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=isHTMLElement(n),s=getDocumentElement(n);if(n===s)return e;let r={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==getNodeName(n)||isOverflowElement(s))&&(r=getNodeScroll(n)),isHTMLElement(n))){const t=getBoundingClientRect(n);l=getScale(n),c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-r.scrollLeft*l.x+c.x,y:e.y*l.y-r.scrollTop*l.y+c.y}}function getViewportRect(t,e){const n=getWindow(t),o=getDocumentElement(t),i=n.visualViewport;let s=o.clientWidth,r=o.clientHeight,l=0,c=0;if(i){s=i.width,r=i.height;const t=isLayoutViewport();(t||!t&&"fixed"===e)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:r,x:l,y:c}}const min=Math.min,max=Math.max;function getDocumentRect(t){var e;const n=getDocumentElement(t),o=getNodeScroll(t),i=null==(e=t.ownerDocument)?void 0:e.body,s=max(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=max(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let l=-o.scrollLeft+getWindowScrollBarX(t);const c=-o.scrollTop;return"rtl"===getComputedStyle(i||n).direction&&(l+=max(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:r,x:l,y:c}}function getNearestOverflowAncestor(t){const e=getParentNode(t);return isLastTraversableNode(e)?t.ownerDocument.body:isHTMLElement(e)&&isOverflowElement(e)?e:getNearestOverflowAncestor(e)}function getOverflowAncestors(t,e){var n;void 0===e&&(e=[]);const o=getNearestOverflowAncestor(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),s=getWindow(o);return i?e.concat(s,s.visualViewport||[],isOverflowElement(o)?o:[]):e.concat(o,getOverflowAncestors(o))}function getInnerBoundingClientRect(t,e){const n=getBoundingClientRect(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=isHTMLElement(t)?getScale(t):{x:1,y:1},r=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,a=o*s.y;return{top:a,left:c,right:c+r,bottom:a+l,x:c,y:a,width:r,height:l}}function getClientRectFromClippingAncestor(t,e,n){return"viewport"===e?rectToClientRect(getViewportRect(t,n)):isElement(e)?getInnerBoundingClientRect(e,n):rectToClientRect(getDocumentRect(getDocumentElement(t)))}function getClippingElementAncestors(t,e){const n=e.get(t);if(n)return n;let o=getOverflowAncestors(t).filter((t=>isElement(t)&&"body"!==getNodeName(t))),i=null;const s="fixed"===getComputedStyle(t).position;let r=s?getParentNode(t):t;for(;isElement(r)&&!isLastTraversableNode(r);){const t=getComputedStyle(r),e=isContainingBlock(r);(s?!e&&!i:!e&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position))?o=o.filter((t=>t!==r)):i=t,r=getParentNode(r)}return e.set(t,o),o}function getClippingRect(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[..."clippingAncestors"===n?getClippingElementAncestors(e,this._c):[].concat(n),o],r=s[0],l=s.reduce(((t,n)=>{const o=getClientRectFromClippingAncestor(e,n,i);return t.top=max(o.top,t.top),t.right=min(o.right,t.right),t.bottom=min(o.bottom,t.bottom),t.left=max(o.left,t.left),t}),getClientRectFromClippingAncestor(e,r,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}const platform={getClippingRect:getClippingRect,convertOffsetParentRelativeRectToViewportRelativeRect:convertOffsetParentRelativeRectToViewportRelativeRect,isElement:isElement,getDimensions:getDimensions,getOffsetParent:getOffsetParent,getDocumentElement:getDocumentElement,getScale:getScale,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||getOffsetParent,s=this.getDimensions;return{reference:getRectRelativeToOffsetParent(e,await i(n),o),floating:_extends({x:0,y:0},await s(n))}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===getComputedStyle(t).direction};function autoUpdate(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=!0,animationFrame:l=!1}=o,c=i&&!l,a=c||s?[...isElement(t)?getOverflowAncestors(t):t.contextElement?getOverflowAncestors(t.contextElement):[],...getOverflowAncestors(e)]:[];a.forEach((t=>{c&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)}));let u,d=null;if(r){let o=!0;d=new ResizeObserver((()=>{o||n(),o=!1})),isElement(t)&&!l&&d.observe(t),isElement(t)||!t.contextElement||l||d.observe(t.contextElement),d.observe(e)}let p=l?getBoundingClientRect(t):null;return l&&function e(){const o=getBoundingClientRect(t);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n();p=o,u=requestAnimationFrame(e)}(),n(),()=>{var t;a.forEach((t=>{c&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)})),null==(t=d)||t.disconnect(),d=null,l&&cancelAnimationFrame(u)}}const computePosition=(t,e,n)=>{const o=new Map,i=_extends({platform:platform},n),s=_extends({},i.platform,{_c:o});return computePosition$1(t,e,_extends({},i,{platform:s}))};function setupTooltip(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const o=getFloatingUIOptions(e,t),i=shouldCenterStep(e);if(i){n=document.body;t.shepherdElementComponent.getElement().classList.add("shepherd-centered")}return t.cleanup=autoUpdate(n,t.el,(()=>{t.el?setPosition(n,t,o,i):t.cleanup()})),t.target=e.element,o}function mergeTooltipConfig(t,e){return{floatingUIOptions:cjs(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function destroyTooltip(t){t.cleanup&&t.cleanup(),t.cleanup=null}function setPosition(t,e,n,o){return computePosition(t,e.el,n).then(floatingUIposition(e,o)).then((t=>new Promise((e=>{setTimeout((()=>e(t)),300)})))).then((t=>{t&&t.el&&t.el.focus({preventScroll:!0})}))}function floatingUIposition(t,e){return n=>{let{x:o,y:i,placement:s,middlewareData:r}=n;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:`${o}px`,top:`${i}px`}),t.el.dataset.popperPlacement=s,placeArrow(t.el,r),t):t}}function placeArrow(t,e){const n=t.querySelector(".shepherd-arrow");if(n){let t,o,i,s;if(e.arrow){const{x:n,y:i}=e.arrow;t=null!=n?`${n}px`:"",o=null!=i?`${i}px`:""}Object.assign(n.style,{left:t,top:o,right:i,bottom:s})}}function getFloatingUIOptions(t,e){const n={strategy:"absolute",middleware:[]},o=addArrow(e);return shouldCenterStep(t)||(n.middleware.push(flip(),shift({limiter:limitShift(),crossAxis:!0})),o&&n.middleware.push(arrow({element:o})),n.placement=t.on),cjs(e.options.floatingUIOptions||{},n)}function addArrow(t){return!(!t.options.arrow||!t.el)&&t.el.querySelector(".shepherd-arrow")}function noop(){}function assign(t,e){for(const n in e)t[n]=e[n];return t}function run(t){return t()}function blank_object(){return Object.create(null)}function run_all(t){t.forEach(run)}function is_function(t){return"function"==typeof t}function safe_not_equal(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function is_empty(t){return 0===Object.keys(t).length}function append(t,e){t.appendChild(e)}function insert(t,e,n){t.insertBefore(e,n||null)}function detach(t){t.parentNode&&t.parentNode.removeChild(t)}function destroy_each(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function element(t){return document.createElement(t)}function svg_element(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function text(t){return document.createTextNode(t)}function space(){return text(" ")}function empty(){return text("")}function listen(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function attr(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function set_attributes(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)null==e[o]?t.removeAttribute(o):"style"===o?t.style.cssText=e[o]:"__value"===o?t.value=t[o]=e[o]:n[o]&&n[o].set?t[o]=e[o]:attr(t,o,e[o])}function children(t){return Array.from(t.childNodes)}function toggle_class(t,e,n){t.classList[n?"add":"remove"](e)}let current_component;function set_current_component(t){current_component=t}function get_current_component(){if(!current_component)throw new Error("Function called outside component initialization");return current_component}function onMount(t){get_current_component().$$.on_mount.push(t)}function afterUpdate(t){get_current_component().$$.after_update.push(t)}const dirty_components=[],binding_callbacks=[],render_callbacks=[],flush_callbacks=[],resolved_promise=Promise.resolve();let update_scheduled=!1;function schedule_update(){update_scheduled||(update_scheduled=!0,resolved_promise.then(flush))}function add_render_callback(t){render_callbacks.push(t)}const seen_callbacks=new Set;let flushidx=0;function flush(){const t=current_component;do{for(;flushidx<dirty_components.length;){const t=dirty_components[flushidx];flushidx++,set_current_component(t),update(t.$$)}for(set_current_component(null),dirty_components.length=0,flushidx=0;binding_callbacks.length;)binding_callbacks.pop()();for(let t=0;t<render_callbacks.length;t+=1){const e=render_callbacks[t];seen_callbacks.has(e)||(seen_callbacks.add(e),e())}render_callbacks.length=0}while(dirty_components.length);for(;flush_callbacks.length;)flush_callbacks.pop()();update_scheduled=!1,seen_callbacks.clear(),set_current_component(t)}function update(t){if(null!==t.fragment){t.update(),run_all(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(add_render_callback)}}const outroing=new Set;let outros;function group_outros(){outros={r:0,c:[],p:outros}}function check_outros(){outros.r||run_all(outros.c),outros=outros.p}function transition_in(t,e){t&&t.i&&(outroing.delete(t),t.i(e))}function transition_out(t,e,n,o){if(t&&t.o){if(outroing.has(t))return;outroing.add(t),outros.c.push((()=>{outroing.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}function get_spread_update(t,e){const n={},o={},i={$$scope:1};let s=t.length;for(;s--;){const r=t[s],l=e[s];if(l){for(const t in r)t in l||(o[t]=1);for(const t in l)i[t]||(n[t]=l[t],i[t]=1);t[s]=l}else for(const t in r)i[t]=1}for(const t in o)t in n||(n[t]=void 0);return n}function create_component(t){t&&t.c()}function mount_component(t,e,n,o){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,n),o||add_render_callback((()=>{const e=t.$$.on_mount.map(run).filter(is_function);t.$$.on_destroy?t.$$.on_destroy.push(...e):run_all(e),t.$$.on_mount=[]})),s.forEach(add_render_callback)}function destroy_component(t,e){const n=t.$$;null!==n.fragment&&(run_all(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function make_dirty(t,e){-1===t.$$.dirty[0]&&(dirty_components.push(t),schedule_update(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function init(t,e,n,o,i,s,r,l){void 0===l&&(l=[-1]);const c=current_component;set_current_component(t);const a=t.$$={fragment:null,ctx:[],props:s,update:noop,not_equal:i,bound:blank_object(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:blank_object(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};r&&r(a.root);let u=!1;if(a.ctx=n?n(t,e.props||{},(function(e,n){const o=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return a.ctx&&i(a.ctx[e],a.ctx[e]=o)&&(!a.skip_bound&&a.bound[e]&&a.bound[e](o),u&&make_dirty(t,e)),n})):[],a.update(),u=!0,run_all(a.before_update),a.fragment=!!o&&o(a.ctx),e.target){if(e.hydrate){const t=children(e.target);a.fragment&&a.fragment.l(t),t.forEach(detach)}else a.fragment&&a.fragment.c();e.intro&&transition_in(t.$$.fragment),mount_component(t,e.target,e.anchor,e.customElement),flush()}set_current_component(c)}class SvelteComponent{$destroy(){destroy_component(this,1),this.$destroy=noop}$on(t,e){if(!is_function(e))return noop;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!is_empty(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function create_fragment$8(t){let e,n,o,i,s;return{c(){e=element("button"),attr(e,"aria-label",n=t[3]?t[3]:null),attr(e,"class",o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],attr(e,"tabindex","0")},m(n,o){insert(n,e,o),e.innerHTML=t[5],i||(s=listen(e,"click",(function(){is_function(t[0])&&t[0].apply(this,arguments)})),i=!0)},p(i,s){let[r]=s;t=i,32&r&&(e.innerHTML=t[5]),8&r&&n!==(n=t[3]?t[3]:null)&&attr(e,"aria-label",n),18&r&&o!==(o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&attr(e,"class",o),4&r&&(e.disabled=t[2])},i:noop,o:noop,d(t){t&&detach(e),i=!1,s()}}}function instance$8(t,e,n){let o,i,s,r,l,c,{config:a,step:u}=e;function d(t){return isFunction(t)?t.call(u):t}return t.$$set=t=>{"config"in t&&n(6,a=t.config),"step"in t&&n(7,u=t.step)},t.$$.update=()=>{192&t.$$.dirty&&(n(0,o=a.action?a.action.bind(u.tour):null),n(1,i=a.classes),n(2,s=!!a.disabled&&d(a.disabled)),n(3,r=a.label?d(a.label):null),n(4,l=a.secondary),n(5,c=a.text?d(a.text):null))},[o,i,s,r,l,c,a,u]}class Shepherd_button extends SvelteComponent{constructor(t){super(),init(this,t,instance$8,create_fragment$8,safe_not_equal,{config:6,step:7})}}function get_each_context(t,e,n){const o=t.slice();return o[2]=e[n],o}function create_if_block$3(t){let e,n,o=t[1],i=[];for(let e=0;e<o.length;e+=1)i[e]=create_each_block(get_each_context(t,o,e));const s=t=>transition_out(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=empty()},m(t,o){for(let e=0;e<i.length;e+=1)i[e].m(t,o);insert(t,e,o),n=!0},p(t,n){if(3&n){let r;for(o=t[1],r=0;r<o.length;r+=1){const s=get_each_context(t,o,r);i[r]?(i[r].p(s,n),transition_in(i[r],1)):(i[r]=create_each_block(s),i[r].c(),transition_in(i[r],1),i[r].m(e.parentNode,e))}for(group_outros(),r=o.length;r<i.length;r+=1)s(r);check_outros()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)transition_in(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)transition_out(i[t]);n=!1},d(t){destroy_each(i,t),t&&detach(e)}}}function create_each_block(t){let e,n;return e=new Shepherd_button({props:{config:t[2],step:t[0]}}),{c(){create_component(e.$$.fragment)},m(t,o){mount_component(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.config=t[2]),1&n&&(o.step=t[0]),e.$set(o)},i(t){n||(transition_in(e.$$.fragment,t),n=!0)},o(t){transition_out(e.$$.fragment,t),n=!1},d(t){destroy_component(e,t)}}}function create_fragment$7(t){let e,n,o=t[1]&&create_if_block$3(t);return{c(){e=element("footer"),o&&o.c(),attr(e,"class","shepherd-footer")},m(t,i){insert(t,e,i),o&&o.m(e,null),n=!0},p(t,n){let[i]=n;t[1]?o?(o.p(t,i),2&i&&transition_in(o,1)):(o=create_if_block$3(t),o.c(),transition_in(o,1),o.m(e,null)):o&&(group_outros(),transition_out(o,1,1,(()=>{o=null})),check_outros())},i(t){n||(transition_in(o),n=!0)},o(t){transition_out(o),n=!1},d(t){t&&detach(e),o&&o.d()}}}function instance$7(t,e,n){let o,{step:i}=e;return t.$$set=t=>{"step"in t&&n(0,i=t.step)},t.$$.update=()=>{1&t.$$.dirty&&n(1,o=i.options.buttons)},[i,o]}class Shepherd_footer extends SvelteComponent{constructor(t){super(),init(this,t,instance$7,create_fragment$7,safe_not_equal,{step:0})}}function create_fragment$6(t){let e,n,o,i,s;return{c(){e=element("button"),n=element("span"),n.textContent="×",attr(n,"aria-hidden","true"),attr(e,"aria-label",o=t[0].label?t[0].label:"Close Tour"),attr(e,"class","shepherd-cancel-icon"),attr(e,"type","button")},m(o,r){insert(o,e,r),append(e,n),i||(s=listen(e,"click",t[1]),i=!0)},p(t,n){let[i]=n;1&i&&o!==(o=t[0].label?t[0].label:"Close Tour")&&attr(e,"aria-label",o)},i:noop,o:noop,d(t){t&&detach(e),i=!1,s()}}}function instance$6(t,e,n){let{cancelIcon:o,step:i}=e;return t.$$set=t=>{"cancelIcon"in t&&n(0,o=t.cancelIcon),"step"in t&&n(2,i=t.step)},[o,t=>{t.preventDefault(),i.cancel()},i]}class Shepherd_cancel_icon extends SvelteComponent{constructor(t){super(),init(this,t,instance$6,create_fragment$6,safe_not_equal,{cancelIcon:0,step:2})}}function create_fragment$5(t){let e;return{c(){e=element("h3"),attr(e,"id",t[1]),attr(e,"class","shepherd-title")},m(n,o){insert(n,e,o),t[3](e)},p(t,n){let[o]=n;2&o&&attr(e,"id",t[1])},i:noop,o:noop,d(n){n&&detach(e),t[3](null)}}}function instance$5(t,e,n){let{labelId:o,element:i,title:s}=e;return afterUpdate((()=>{isFunction(s)&&n(2,s=s()),n(0,i.innerHTML=s,i)})),t.$$set=t=>{"labelId"in t&&n(1,o=t.labelId),"element"in t&&n(0,i=t.element),"title"in t&&n(2,s=t.title)},[i,o,s,function(t){binding_callbacks[t?"unshift":"push"]((()=>{i=t,n(0,i)}))}]}class Shepherd_title extends SvelteComponent{constructor(t){super(),init(this,t,instance$5,create_fragment$5,safe_not_equal,{labelId:1,element:0,title:2})}}function create_if_block_1$1(t){let e,n;return e=new Shepherd_title({props:{labelId:t[0],title:t[2]}}),{c(){create_component(e.$$.fragment)},m(t,o){mount_component(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.labelId=t[0]),4&n&&(o.title=t[2]),e.$set(o)},i(t){n||(transition_in(e.$$.fragment,t),n=!0)},o(t){transition_out(e.$$.fragment,t),n=!1},d(t){destroy_component(e,t)}}}function create_if_block$2(t){let e,n;return e=new Shepherd_cancel_icon({props:{cancelIcon:t[3],step:t[1]}}),{c(){create_component(e.$$.fragment)},m(t,o){mount_component(e,t,o),n=!0},p(t,n){const o={};8&n&&(o.cancelIcon=t[3]),2&n&&(o.step=t[1]),e.$set(o)},i(t){n||(transition_in(e.$$.fragment,t),n=!0)},o(t){transition_out(e.$$.fragment,t),n=!1},d(t){destroy_component(e,t)}}}function create_fragment$4(t){let e,n,o,i=t[2]&&create_if_block_1$1(t),s=t[3]&&t[3].enabled&&create_if_block$2(t);return{c(){e=element("header"),i&&i.c(),n=space(),s&&s.c(),attr(e,"class","shepherd-header")},m(t,r){insert(t,e,r),i&&i.m(e,null),append(e,n),s&&s.m(e,null),o=!0},p(t,o){let[r]=o;t[2]?i?(i.p(t,r),4&r&&transition_in(i,1)):(i=create_if_block_1$1(t),i.c(),transition_in(i,1),i.m(e,n)):i&&(group_outros(),transition_out(i,1,1,(()=>{i=null})),check_outros()),t[3]&&t[3].enabled?s?(s.p(t,r),8&r&&transition_in(s,1)):(s=create_if_block$2(t),s.c(),transition_in(s,1),s.m(e,null)):s&&(group_outros(),transition_out(s,1,1,(()=>{s=null})),check_outros())},i(t){o||(transition_in(i),transition_in(s),o=!0)},o(t){transition_out(i),transition_out(s),o=!1},d(t){t&&detach(e),i&&i.d(),s&&s.d()}}}function instance$4(t,e,n){let o,i,{labelId:s,step:r}=e;return t.$$set=t=>{"labelId"in t&&n(0,s=t.labelId),"step"in t&&n(1,r=t.step)},t.$$.update=()=>{2&t.$$.dirty&&(n(2,o=r.options.title),n(3,i=r.options.cancelIcon))},[s,r,o,i]}class Shepherd_header extends SvelteComponent{constructor(t){super(),init(this,t,instance$4,create_fragment$4,safe_not_equal,{labelId:0,step:1})}}function create_fragment$3(t){let e;return{c(){e=element("div"),attr(e,"class","shepherd-text"),attr(e,"id",t[1])},m(n,o){insert(n,e,o),t[3](e)},p(t,n){let[o]=n;2&o&&attr(e,"id",t[1])},i:noop,o:noop,d(n){n&&detach(e),t[3](null)}}}function instance$3(t,e,n){let{descriptionId:o,element:i,step:s}=e;return afterUpdate((()=>{let{text:t}=s.options;isFunction(t)&&(t=t.call(s)),isHTMLElement$1(t)?i.appendChild(t):n(0,i.innerHTML=t,i)})),t.$$set=t=>{"descriptionId"in t&&n(1,o=t.descriptionId),"element"in t&&n(0,i=t.element),"step"in t&&n(2,s=t.step)},[i,o,s,function(t){binding_callbacks[t?"unshift":"push"]((()=>{i=t,n(0,i)}))}]}class Shepherd_text extends SvelteComponent{constructor(t){super(),init(this,t,instance$3,create_fragment$3,safe_not_equal,{descriptionId:1,element:0,step:2})}}function create_if_block_2(t){let e,n;return e=new Shepherd_header({props:{labelId:t[1],step:t[2]}}),{c(){create_component(e.$$.fragment)},m(t,o){mount_component(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.labelId=t[1]),4&n&&(o.step=t[2]),e.$set(o)},i(t){n||(transition_in(e.$$.fragment,t),n=!0)},o(t){transition_out(e.$$.fragment,t),n=!1},d(t){destroy_component(e,t)}}}function create_if_block_1(t){let e,n;return e=new Shepherd_text({props:{descriptionId:t[0],step:t[2]}}),{c(){create_component(e.$$.fragment)},m(t,o){mount_component(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.descriptionId=t[0]),4&n&&(o.step=t[2]),e.$set(o)},i(t){n||(transition_in(e.$$.fragment,t),n=!0)},o(t){transition_out(e.$$.fragment,t),n=!1},d(t){destroy_component(e,t)}}}function create_if_block$1(t){let e,n;return e=new Shepherd_footer({props:{step:t[2]}}),{c(){create_component(e.$$.fragment)},m(t,o){mount_component(e,t,o),n=!0},p(t,n){const o={};4&n&&(o.step=t[2]),e.$set(o)},i(t){n||(transition_in(e.$$.fragment,t),n=!0)},o(t){transition_out(e.$$.fragment,t),n=!1},d(t){destroy_component(e,t)}}}function create_fragment$2(t){let e,n,o,i,s=!isUndefined(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,r=!isUndefined(t[2].options.text),l=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,c=s&&create_if_block_2(t),a=r&&create_if_block_1(t),u=l&&create_if_block$1(t);return{c(){e=element("div"),c&&c.c(),n=space(),a&&a.c(),o=space(),u&&u.c(),attr(e,"class","shepherd-content")},m(t,s){insert(t,e,s),c&&c.m(e,null),append(e,n),a&&a.m(e,null),append(e,o),u&&u.m(e,null),i=!0},p(t,i){let[d]=i;4&d&&(s=!isUndefined(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled),s?c?(c.p(t,d),4&d&&transition_in(c,1)):(c=create_if_block_2(t),c.c(),transition_in(c,1),c.m(e,n)):c&&(group_outros(),transition_out(c,1,1,(()=>{c=null})),check_outros()),4&d&&(r=!isUndefined(t[2].options.text)),r?a?(a.p(t,d),4&d&&transition_in(a,1)):(a=create_if_block_1(t),a.c(),transition_in(a,1),a.m(e,o)):a&&(group_outros(),transition_out(a,1,1,(()=>{a=null})),check_outros()),4&d&&(l=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length),l?u?(u.p(t,d),4&d&&transition_in(u,1)):(u=create_if_block$1(t),u.c(),transition_in(u,1),u.m(e,null)):u&&(group_outros(),transition_out(u,1,1,(()=>{u=null})),check_outros())},i(t){i||(transition_in(c),transition_in(a),transition_in(u),i=!0)},o(t){transition_out(c),transition_out(a),transition_out(u),i=!1},d(t){t&&detach(e),c&&c.d(),a&&a.d(),u&&u.d()}}}function instance$2(t,e,n){let{descriptionId:o,labelId:i,step:s}=e;return t.$$set=t=>{"descriptionId"in t&&n(0,o=t.descriptionId),"labelId"in t&&n(1,i=t.labelId),"step"in t&&n(2,s=t.step)},[o,i,s]}class Shepherd_content extends SvelteComponent{constructor(t){super(),init(this,t,instance$2,create_fragment$2,safe_not_equal,{descriptionId:0,labelId:1,step:2})}}function create_if_block(t){let e;return{c(){e=element("div"),attr(e,"class","shepherd-arrow"),attr(e,"data-popper-arrow","")},m(t,n){insert(t,e,n)},d(t){t&&detach(e)}}}function create_fragment$1(t){let e,n,o,i,s,r,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&create_if_block();o=new Shepherd_content({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let u=[{"aria-describedby":i=isUndefined(t[4].options.text)?null:t[2]},{"aria-labelledby":s=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],d={};for(let t=0;t<u.length;t+=1)d=assign(d,u[t]);return{c(){e=element("div"),a&&a.c(),n=space(),create_component(o.$$.fragment),set_attributes(e,d),toggle_class(e,"shepherd-has-cancel-icon",t[5]),toggle_class(e,"shepherd-has-title",t[6]),toggle_class(e,"shepherd-element",!0)},m(i,s){insert(i,e,s),a&&a.m(e,null),append(e,n),mount_component(o,e,null),t[13](e),r=!0,l||(c=listen(e,"keydown",t[7]),l=!0)},p(t,l){let[c]=l;t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on?a||(a=create_if_block(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const p={};4&c&&(p.descriptionId=t[2]),8&c&&(p.labelId=t[3]),16&c&&(p.step=t[4]),o.$set(p),set_attributes(e,d=get_spread_update(u,[(!r||20&c&&i!==(i=isUndefined(t[4].options.text)?null:t[2]))&&{"aria-describedby":i},(!r||24&c&&s!==(s=t[4].options.title?t[3]:null))&&{"aria-labelledby":s},2&c&&t[1],{role:"dialog"},{tabindex:"0"}])),toggle_class(e,"shepherd-has-cancel-icon",t[5]),toggle_class(e,"shepherd-has-title",t[6]),toggle_class(e,"shepherd-element",!0)},i(t){r||(transition_in(o.$$.fragment,t),r=!0)},o(t){transition_out(o.$$.fragment,t),r=!1},d(n){n&&detach(e),a&&a.d(),destroy_component(o),t[13](null),l=!1,c()}}}const KEY_TAB=9,KEY_ESC=27,LEFT_ARROW=37,RIGHT_ARROW=39;function getClassesArray(t){return t.split(" ").filter((t=>!!t.length))}function instance$1(t,e,n){let o,i,s,{classPrefix:r,element:l,descriptionId:c,firstFocusableElement:a,focusableElements:u,labelId:d,lastFocusableElement:p,step:h,dataStepId:f}=e;onMount((()=>{n(1,f={[`data-${r}shepherd-step-id`]:h.id}),n(9,u=l.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,a=u[0]),n(10,p=u[u.length-1])})),afterUpdate((()=>{s!==h.options.classes&&(function(t){if(isString(t)){const e=getClassesArray(t);e.length&&l.classList.remove(...e)}}(s),s=h.options.classes,function(t){if(isString(t)){const e=getClassesArray(t);e.length&&l.classList.add(...e)}}(s))}));return t.$$set=t=>{"classPrefix"in t&&n(11,r=t.classPrefix),"element"in t&&n(0,l=t.element),"descriptionId"in t&&n(2,c=t.descriptionId),"firstFocusableElement"in t&&n(8,a=t.firstFocusableElement),"focusableElements"in t&&n(9,u=t.focusableElements),"labelId"in t&&n(3,d=t.labelId),"lastFocusableElement"in t&&n(10,p=t.lastFocusableElement),"step"in t&&n(4,h=t.step),"dataStepId"in t&&n(1,f=t.dataStepId)},t.$$.update=()=>{16&t.$$.dirty&&(n(5,o=h.options&&h.options.cancelIcon&&h.options.cancelIcon.enabled),n(6,i=h.options&&h.options.title))},[l,f,c,d,h,o,i,t=>{const{tour:e}=h;switch(t.keyCode){case KEY_TAB:if(0===u.length){t.preventDefault();break}t.shiftKey?(document.activeElement===a||document.activeElement.classList.contains("shepherd-element"))&&(t.preventDefault(),p.focus()):document.activeElement===p&&(t.preventDefault(),a.focus());break;case KEY_ESC:e.options.exitOnEsc&&h.cancel();break;case LEFT_ARROW:e.options.keyboardNavigation&&e.back();break;case RIGHT_ARROW:e.options.keyboardNavigation&&e.next()}},a,u,p,r,()=>l,function(t){binding_callbacks[t?"unshift":"push"]((()=>{l=t,n(0,l)}))}]}class Shepherd_element extends SvelteComponent{constructor(t){super(),init(this,t,instance$1,create_fragment$1,safe_not_equal,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class Step extends Evented{constructor(t,e){return void 0===e&&(e={}),super(t,e),this.tour=t,this.classPrefix=this.tour.options?normalizePrefix(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,autoBind(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){destroyTooltip(this),isHTMLElement$1(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=parseAttachTo(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return Boolean(this.el&&!this.el.hidden)}show(){return isFunction(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then((()=>this._show())):Promise.resolve(this._show())}updateStepOptions(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const t=`${this.id}-description`,e=`${this.id}-label`;return this.shepherdElementComponent=new Shepherd_element({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:e,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(t){const{element:e}=this._getResolvedAttachToOptions();isFunction(this.options.scrollToHandler)?this.options.scrollToHandler(e):isElement$1(e)&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(t)}_getClassOptions(t){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=t.classes?t.classes:"",o=e&&e.classes?e.classes:"",i=[...n.split(" "),...o.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(t){void 0===t&&(t={});let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=cjs({},e||{}),this.options=Object.assign({arrow:!0},e,t,mergeTooltipConfig(e,t));const{when:n}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${uuid()}`,n&&Object.keys(n).forEach((t=>{this.on(t,n[t],this)}))}_setupElements(){isUndefined(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&bindAdvance(this),setupTooltip(this)}_show(){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((()=>{this._scrollTo(this.options.scrollTo)})),this.el.hidden=!1;const t=this.shepherdElementComponent.getElement(),e=this.target||document.body;e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`),t.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(t){const 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"))}_updateStepTargetOnHide(){const 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`)}}function cleanupSteps(t){if(t){const{steps:e}=t;e.forEach((t=>{t.options&&!1===t.options.canClickTarget&&t.options.attachTo&&t.target instanceof HTMLElement&&t.target.classList.remove("shepherd-target-click-disabled")}))}}function makeOverlayPath(t){let{width:e,height:n,x:o=0,y:i=0,r:s=0}=t;const{innerWidth:r,innerHeight:l}=window,{topLeft:c=0,topRight:a=0,bottomRight:u=0,bottomLeft:d=0}="number"==typeof s?{topLeft:s,topRight:s,bottomRight:s,bottomLeft:s}:s;return`M${r},${l}H0V0H${r}V${l}ZM${o+c},${i}a${c},${c},0,0,0-${c},${c}V${n+i-d}a${d},${d},0,0,0,${d},${d}H${e+o-u}a${u},${u},0,0,0,${u}-${u}V${i+a}a${a},${a},0,0,0-${a}-${a}Z`}function create_fragment(t){let e,n,o,i,s;return{c(){e=svg_element("svg"),n=svg_element("path"),attr(n,"d",t[2]),attr(e,"class",o=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m(o,r){insert(o,e,r),append(e,n),t[11](e),i||(s=listen(e,"touchmove",t[3]),i=!0)},p(t,i){let[s]=i;4&s&&attr(n,"d",t[2]),2&s&&o!==(o=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&attr(e,"class",o)},i:noop,o:noop,d(n){n&&detach(e),t[11](null),i=!1,s()}}}function _getScrollParent(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:_getScrollParent(t.parentElement)}function _getVisibleHeight(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,i=n.bottom||o+n.height;if(e){const t=e.getBoundingClientRect(),n=t.y||t.top,s=t.bottom||n+t.height;o=Math.max(o,n),i=Math.min(i,s)}return{y:o,height:Math.max(i-o,0)}}function instance(t,e,n){let{element:o,openingProperties:i}=e;uuid();let s,r,l=!1;c();function c(){n(4,i={width:0,height:0,x:0,y:0,r:0})}function a(){n(1,l=!1),h()}function u(t,e,o,s){if(void 0===t&&(t=0),void 0===e&&(e=0),s){const{y:r,height:l}=_getVisibleHeight(s,o),{x:c,width:a,left:u}=s.getBoundingClientRect();n(4,i={width:a+2*t,height:l+2*t,x:(c||u)-t,y:r-t,r:e})}else c()}function d(){n(1,l=!0)}const p=t=>{t.preventDefault()};function h(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",p,{passive:!1})}return t.$$set=t=>{"element"in t&&n(0,o=t.element),"openingProperties"in t&&n(4,i=t.openingProperties)},t.$$.update=()=>{16&t.$$.dirty&&n(2,r=makeOverlayPath(i))},[o,l,r,t=>{t.stopPropagation()},i,()=>o,c,a,u,function(t){h(),t.tour.options.useModalOverlay?(!function(t){const{modalOverlayOpeningPadding:e,modalOverlayOpeningRadius:n}=t.options,o=_getScrollParent(t.target),i=()=>{s=void 0,u(e,n,o,t.target),s=requestAnimationFrame(i)};i(),window.addEventListener("touchmove",p,{passive:!1})}(t),d()):a()},d,function(t){binding_callbacks[t?"unshift":"push"]((()=>{o=t,n(0,o)}))}]}class Shepherd_modal extends SvelteComponent{constructor(t){super(),init(this,t,instance,create_fragment,safe_not_equal,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}const Shepherd=new Evented;class Tour extends Evented{constructor(t){void 0===t&&(t={}),super(t),autoBind(this);this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},t),this.classPrefix=normalizePrefix(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps);return["active","cancel","complete","inactive","show","start"].map((t=>{(t=>{this.on(t,(e=>{(e=e||{}).tour=this,Shepherd.trigger(t,e)}))})(t)})),this._setTourID(),this}addStep(t,e){let n=t;return n instanceof Step?n.tour=this:n=new Step(this,n),isUndefined(e)?this.steps.push(n):this.steps.splice(e,0,n),n}addSteps(t){return Array.isArray(t)&&t.forEach((t=>{this.addStep(t)})),this}back(){const t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(t)&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find((e=>e.id===t))}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return Shepherd.activeTour===this}next(){const t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}removeStep(t){const e=this.getCurrentStep();this.steps.some(((e,n)=>{if(e.id===t)return e.isOpen()&&e.hide(),e.destroy(),this.steps.splice(n,1),!0})),e&&e.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t,e){void 0===t&&(t=0),void 0===e&&(e=!0);const n=isString(t)?this.getById(t):this.steps[t];if(n){this._updateStateBeforeShow();isFunction(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,e):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show())}}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(t){const e=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach((t=>t.destroy())),cleanupSteps(this),this.trigger(t,{index:e}),Shepherd.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===t||"complete"===t)&&this.modal){const t=document.querySelector(".shepherd-modal-overlay-container");t&&t.remove()}isHTMLElement$1(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Shepherd.activeTour=this}_setupModal(){this.modal=new Shepherd_modal({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(t,e){const n=this.steps.indexOf(t);if(n===this.steps.length-1)this.complete();else{const t=e?n+1:n-1;this.show(t,e)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){const t=this.options.tourName||"tour";this.id=`${t}--${uuid()}`}}const isServerSide="undefined"==typeof window;class NoOp{constructor(){}}if(isServerSide?Object.assign(Shepherd,{Tour:NoOp,Step:NoOp}):Object.assign(Shepherd,{Tour:Tour,Step:Step}),!Joomla)throw new Error("Joomla API is not properly initialised");function emptyStorage(){sessionStorage.removeItem("currentStepId"),sessionStorage.removeItem("stepCount"),sessionStorage.removeItem("tourId"),sessionStorage.removeItem("tourToken"),sessionStorage.removeItem("previousStepUrl")}function getTourInstance(){const t=new Shepherd.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",(()=>{emptyStorage(),t.steps=[]})),t}function addProgressIndicator(t,e,n){const o=t.querySelector(".shepherd-header"),i=document.createElement("div");i.classList.add("shepherd-progress"),i.setAttribute("role","status"),i.setAttribute("aria-label",Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_STEP_NUMBER_OF").replace("{number}",e).replace("{total}",n));const s=document.createElement("span");s.setAttribute("aria-hidden",!0),s.innerText=`${e}/${n}`,i.appendChild(s),o.insertBefore(i,t.querySelector(".shepherd-cancel-icon"))}function addStepToTourButton(t,e,n){const o=new Shepherd.Step(t,{title:e.title,text:e.description,classes:"shepherd-theme-arrows",buttons:n,id:e.id,arrow:!0,beforeShowPromise:()=>new Promise((e=>{if(t.currentStep.options.attachTo.element){const e=t.currentStep.options.attachTo.element.split(","),n=t.currentStep.options.attachTo.on;t.currentStep.options.attachTo.element="",t.currentStep.options.attachTo.on="center";for(let o=0;o<e.length;o+=1){const i=document.querySelector(e[o]);if(null!=i){if(null!=i.parentElement.querySelector(".js-tiny-toggler-button")){i.parentElement.querySelector(".js-tiny-toggler-button").click(),t.currentStep.options.attachTo.element=e[o],t.currentStep.options.attachTo.on=n;break}if(!i.disabled&&!i.readonly&&"none"!==i.style.display){t.currentStep.options.attachTo.element=e[o],t.currentStep.options.attachTo.on=n;break}}}}if("redirect"===t.currentStep.options.attachTo.type){const n=Joomla.getOptions("system.paths").rootFull+t.currentStep.options.attachTo.url;window.location.href!==n?(sessionStorage.setItem("currentStepId",t.currentStep.id),sessionStorage.setItem("previousStepUrl",window.location.href),window.location.href=n):e()}else e()})).catch((t=>{console.log(`Exception error - ${t.message} - Bypass Shepherd target`)})),when:{hide(){if(this.getTarget()){const t=this.getTarget().parentElement.querySelector(".js-tiny-toggler-button");null!=t&&t.click()}},show(){this.getElement().setAttribute("aria-live","assertive"),sessionStorage.setItem("currentStepId",this.id),addProgressIndicator(this.getElement(),this.id+1,sessionStorage.getItem("stepCount")),this.getTarget()&&(this.getElement().querySelector(".shepherd-cancel-icon").addEventListener("keydown",(t=>{"Tab"===t.key&&(this.getTarget().focus(),t.preventDefault())})),this.getTarget().addEventListener("blur",(t=>{const e=this.getElement().querySelector(".shepherd-cancel-icon"),n=this.getElement().querySelector(".shepherd-button-primary"),o=this.getElement().querySelector(".shepherd-button-secondary");n&&!n.disabled?n.focus():o&&!o.disabled?o.focus():e.focus(),t.preventDefault()})))}}});if(e.target?o.updateStepOptions({attachTo:{element:e.target,on:e.position,url:e.url,type:e.type,interactive_type:e.interactive_type}}):o.updateStepOptions({attachTo:{url:e.url,type:e.type,interactive_type:e.interactive_type}}),"next"!==e.type){const t=`${Joomla.getOptions("system.paths").root}/${e.url}`;sessionStorage.getItem(t)&&sessionStorage.removeItem(t)}t.addStep(o)}function showTourInfo(t,e){t.addStep({title:e.title,text:e.description,classes:"shepherd-theme-arrows",buttons:[{classes:"btn btn-primary shepherd-button-primary",action(){return this.next()},text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_START")}],id:"tourinfo",when:{show(){sessionStorage.setItem("currentStepId","tourinfo"),addProgressIndicator(this.getElement(),1,sessionStorage.getItem("stepCount"))}}})}function pushCompleteButton(t){t.push({text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_COMPLETE"),classes:"btn btn-primary shepherd-button-primary",action(){return this.cancel()}})}function pushNextButton(t,e,n=!1,o=""){t.push({text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_NEXT"),classes:`btn btn-primary shepherd-button-primary step-next-button-${e.id} ${o}`,action(){return this.next()},disabled:n})}function addBackButton(t,e){t.push({text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_BACK"),classes:"btn btn-secondary shepherd-button-secondary",action(){if("redirect"===e.type){sessionStorage.setItem("currentStepId",e.id-1);const t=sessionStorage.getItem("previousStepUrl");t&&(sessionStorage.removeItem("previousStepUrl"),window.location.href=t)}return this.back()}})}function enableButton(t){const e=document.querySelector(`.step-next-button-${t.currentTarget.step_id}`);e.removeAttribute("disabled"),e.classList.remove("disabled")}function disableButton(t){const e=document.querySelector(`.step-next-button-${t.currentTarget.step_id}`);e.setAttribute("disabled","disabled"),e.classList.add("disabled")}function startTour(t){sessionStorage.setItem("tourId",t.id),sessionStorage.setItem("stepCount",String(t.steps.length));const e=sessionStorage.getItem("currentStepId");let n=null,o=-1;null!=e&&Number(e)>-1&&(o=void 0!==t.steps[e]?Number(e):-1,o>0&&(n=t.steps[o-1]));const i=getTourInstance();if(o<0){const e=Joomla.getOptions("system.paths").rootFull;if(window.location.href!==e+t.steps[0].url)return void(window.location.href=e+t.steps[0].url);showTourInfo(i,t.steps[0]),o=1}const s=t.steps.length;let r;for(let e=o;e<s;e+=1){if(r=[],(null===n||e>o||"redirect"===t.steps[e].type)&&addBackButton(r,t.steps[e]),t&&t.steps[e].target&&"interactive"===t.steps[e].type){const n=document.querySelector(t.steps[e].target);if(n&&t&&t.steps&&t.steps[e]&&t.steps[e].interactive_type)switch(t.steps[e].interactive_type){case"submit":n.addEventListener("click",(()=>{sessionStorage.setItem("currentStepId",t.steps[e].id+1)}));break;case"text":n.step_id=e,n.addEventListener("input",(t=>{t.target.value.trim().length?enableButton(t):disableButton(t)}));break;case"button":i.next()}}if(e<s-1){let n=!1;t&&"text"===t.steps[e].interactive_type&&(n=!0),(t&&"interactive"!==t.steps[e].type||t&&"text"===t.steps[e].interactive_type||t&&"other"===t.steps[e].interactive_type)&&pushNextButton(r,t.steps[e],n,n?"disabled":"")}else pushCompleteButton(r);addStepToTourButton(i,t.steps[e],r),n=t.steps[e]}i.start()}function loadTour(t){if(t>0){const e=`${Joomla.getOptions("system.paths").rootFull}administrator/index.php?option=com_ajax&plugin=guidedtours&group=system&format=json&id=${t}`;fetch(e).then((t=>t.json())).then((t=>{t.success||(t.messages&&Joomla.renderMessages(t.messages),emptyStorage()),startTour(t.data)})).catch((t=>{throw new Error(t)}))}}document.querySelector("body").addEventListener("click",(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([Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_COULD_NOT_LOAD_THE_TOUR")]):(sessionStorage.setItem("tourToken",String(Joomla.getOptions("com_guidedtours.token"))),loadTour(t.target.getAttribute("data-id"))))}));const tourId=sessionStorage.getItem("tourId");tourId>0&&sessionStorage.getItem("tourToken")===String(Joomla.getOptions("com_guidedtours.token"))?loadTour(tourId):emptyStorage();

No other release has this exact content. See every version of this file.