1import{r as We,R as dn}from"./index-CByRU1NC.js";var me={exports:{}},At={};/** 2 * @license React 3 * react-jsx-runtime.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var ye;function hn(){if(ye)return At;ye=1;var t=dn,e=Symbol.for("react.element"),o=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(l,c,a){var u,d={},f=null,h=null;a!==void 0&&(f=""+a),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(h=c.ref);for(u in c)n.call(c,u)&&!i.hasOwnProperty(u)&&(d[u]=c[u]);if(l&&l.defaultProps)for(u in c=l.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:e,type:l,key:f,ref:h,props:d,_owner:r.current}}return At.Fragment=o,At.jsx=s,At.jsxs=s,At}var be;function pn(){return be||(be=1,me.exports=hn()),me.exports}var gn=pn();/*! shepherd.js 14.5.0 */function mn(t){return t instanceof Element}function wt(t){return t instanceof HTMLElement}function ot(t){return typeof t=="function"}function It(t){return typeof t=="string"}function R(t){return t===void 0}class ee{on(e,o,n,r=!1){var i;return R(this.bindings)&&(this.bindings={}),R(this.bindings[e])&&(this.bindings[e]=[]),(i=this.bindings[e])==null||i.push({handler:o,ctx:n,once:r}),this}once(e,o,n){return this.on(e,o,n,!0)}off(e,o){if(R(this.bindings)||R(this.bindings[e]))return this;if(R(o))delete this.bindings[e];else{var n;(n=this.bindings[e])==null||n.forEach((r,i)=>{if(r.handler===o){var s;(s=this.bindings[e])==null||s.splice(i,1)}})}return this}trigger(e,...o){if(!R(this.bindings)&&this.bindings[e]){var n;(n=this.bindings[e])==null||n.forEach((r,i)=>{const{ctx:s,handler:l,once:c}=r,a=s||this;if(l.apply(a,o),c){var u;(u=this.bindings[e])==null||u.splice(i,1)}})}return this}}function M(){return M=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)({}).hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},M.apply(null,arguments)}function ne(t,e){if(t==null)return{};var o={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;o[n]=t[n]}return o}const it={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};it.defaultMerge;function yn(t,e){return e}function bn(t,e){return t.filter(o=>o!==void 0)}var ve;(function(t){t[t.NOT=0]="NOT",t[t.RECORD=1]="RECORD",t[t.ARRAY=2]="ARRAY",t[t.SET=3]="SET",t[t.MAP=4]="MAP",t[t.OTHER=5]="OTHER"})(ve||(ve={}));function xe(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:wn(t)?1:t instanceof Set?3:t instanceof Map?4:5}function vn(t){const e=new Set;for(const o of t)for(const n of[...Object.keys(o),...Object.getOwnPropertySymbols(o)])e.add(n);return e}function xn(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function qe(t){return{*[Symbol.iterator](){for(const e of t)for(const o of e)yield o}}}const we=new Set(["[object Object]","[object Module]"]);function wn(t){if(!we.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const o=e.prototype;return!(o===null||typeof o!="object"||!we.has(Object.prototype.toString.call(o))||!o.hasOwnProperty("isPrototypeOf"))}function $n(t,e,o){const n={};for(const r of vn(t)){const i=[];for(const c of t)xn(c,r)&&i.push(c[r]);if(i.length===0)continue;const s=e.metaDataUpdater(o,{key:r,parents:t}),l=Ue(i,e,s);l!==it.skip&&(r==="__proto__"?Object.defineProperty(n,r,{value:l,configurable:!0,enumerable:!0,writable:!0}):n[r]=l)}return n}function En(t){return t.flat()}function On(t){return new Set(qe(t))}function _n(t){return new Map(qe(t))}function Sn(t){return t.at(-1)}const Ct={mergeRecords:$n,mergeArrays:En,mergeSets:On,mergeMaps:_n,mergeOthers:Sn};function oe(...t){return Tn({})(...t)}function Tn(t,e){const o=An(t,n);function n(...r){return Ue(r,o,e)}return n}function An(t,e){var o,n,r;return{defaultMergeFunctions:Ct,mergeFunctions:M({},Ct,Object.fromEntries(Object.entries(t).filter(([i,s])=>Object.hasOwn(Ct,i)).map(([i,s])=>s===!1?[i,Ct.mergeOthers]:[i,s]))),metaDataUpdater:(o=t.metaDataUpdater)!=null?o:yn,deepmerge:e,useImplicitDefaultMerging:(n=t.enableImplicitDefaultMerging)!=null?n:!1,filterValues:t.filterValues===!1?void 0:(r=t.filterValues)!=null?r:bn,actions:it}}function Ue(t,e,o){var n;const r=(n=e.filterValues==null?void 0:e.filterValues(t,o))!=null?n:t;if(r.length===0)return;if(r.length===1)return zt(r,e,o);const i=xe(r[0]);if(i!==0&&i!==5){for(let s=1;s<r.length;s++)if(xe(r[s])!==i)return zt(r,e,o)}switch(i){case 1:return Rn(r,e,o);case 2:return In(r,e,o);case 3:return Ln(r,e,o);case 4:return Pn(r,e,o);default:return zt(r,e,o)}}function Rn(t,e,o){const n=e.mergeFunctions.mergeRecords(t,e,o);return n===it.defaultMerge||e.useImplicitDefaultMerging&&n===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,o):n}function In(t,e,o){const n=e.mergeFunctions.mergeArrays(t,e,o);return n===it.defaultMerge||e.useImplicitDefaultMerging&&n===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):n}function Ln(t,e,o){const n=e.mergeFunctions.mergeSets(t,e,o);return n===it.defaultMerge||e.useImplicitDefaultMerging&&n===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):n}function Pn(t,e,o){const n=e.mergeFunctions.mergeMaps(t,e,o);return n===it.defaultMerge||e.useImplicitDefaultMerging&&n===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):n}function zt(t,e,o){const n=e.mergeFunctions.mergeOthers(t,e,o);return n===it.defaultMerge||e.useImplicitDefaultMerging&&n===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):n}function re(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let o=0;o<e.length;o++){const n=e[o],r=t[n];n!=="constructor"&&typeof r=="function"&&(t[n]=r.bind(t))}return t}function Mn(t,e){return o=>{if(t.isOpen()){const n=t.el&&o.currentTarget===t.el;(!R(e)&&o.currentTarget.matches(e)||n)&&t.tour.next()}}}function kn(t){const{event:e,selector:o}=t.options.advanceOn||{};if(e){const n=Mn(t,o);let r=null;
9if(!R(o)&&(r=document.querySelector(o),!r))return console.error(`No element was found for the selector supplied to advanceOn: ${o}`);r?(r.addEventListener(e,n),t.on("destroy",()=>r.removeEventListener(e,n))):(document.body.addEventListener(e,n,!0),t.on("destroy",()=>document.body.removeEventListener(e,n,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class Cn{constructor(e){}}class Fn{constructor(e,o){}}function Ye(t){return!It(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function Dn(t){const e=t.options.attachTo||{},o=Object.assign({},e);if(ot(o.element)&&(o.element=o.element.call(t)),It(o.element)){try{o.element=document.querySelector(o.element)}catch{}o.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return o}function Hn(t){return t.options.extraHighlights?t.options.extraHighlights.flatMap(e=>Array.from(document.querySelectorAll(e))):[]}function ze(t){return t==null?!0:!t.element||!t.on}function Xe(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const o=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?o:o&3|8).toString(16)})}const jn=["top","right","bottom","left"],$e=["start","end"],Ee=jn.reduce((t,e)=>t.concat(e,e+"-"+$e[0],e+"-"+$e[1]),[]),$t=Math.min,ut=Math.max,Ht=Math.round,Ft=Math.floor,U=t=>({x:t,y:t}),Nn={left:"right",right:"left",bottom:"top",top:"bottom"},Bn={start:"end",end:"start"};function Jt(t,e,o){return ut(t,$t(e,o))}function ht(t,e){return typeof t=="function"?t(e):t}function G(t){return t.split("-")[0]}function Z(t){return t.split("-")[1]}function ie(t){return t==="x"?"y":"x"}function se(t){return t==="y"?"height":"width"}function Et(t){return["top","bottom"].includes(G(t))?"y":"x"}function le(t){return ie(Et(t))}function Ke(t,e,o){o===void 0&&(o=!1);const n=Z(t),r=le(t),i=se(r);let s=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Nt(s)),[s,Nt(s)]}function Vn(t){const e=Nt(t);return[jt(t),e,jt(e)]}function jt(t){return t.replace(/start|end/g,e=>Bn[e])}function Wn(t,e,o){const n=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?r:n:e?n:r;case"left":case"right":return e?i:s;default:return[]}}function qn(t,e,o,n){const r=Z(t);let i=Wn(G(t),o==="start",n);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(jt)))),i}function Nt(t){return t.replace(/left|right|bottom|top/g,e=>Nn[e])}function Un(t){return M({top:0,right:0,bottom:0,left:0},t)}function Je(t){return typeof t!="number"?Un(t):{top:t,right:t,bottom:t,left:t}}function Bt(t){const{x:e,y:o,width:n,height:r}=t;return{width:n,height:r,top:o,left:e,right:e+n,bottom:o+r,x:e,y:o}}const Yn=["crossAxis","alignment","allowedPlacements","autoAlignment"],zn=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Xn=["mainAxis","crossAxis","limiter"];function Oe(t,e,o){let{reference:n,floating:r}=t;const i=Et(e),s=le(e),l=se(s),c=G(e),a=i==="y",u=n.x+n.width/2-r.width/2,d=n.y+n.height/2-r.height/2,f=n[l]/2-r[l]/2;let h;switch(c){case"top":h={x:u,y:n.y-r.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-r.width,y:d};break;default:h={x:n.x,y:n.y}}switch(Z(e)){case"start":h[s]-=f*(o&&a?-1:1);break;case"end":h[s]+=f*(o&&a?-1:1);break}return h}const Kn=async(t,e,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:s}=o,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:d}=Oe(a,n,c),f=n,h={},g=0;for(let y=0;y<l.length;y++){const{name:v,fn:b}=l[y],{x:w,y:x,data:m,reset:p}=await b({x:u,y:d,initialPlacement:n,placement:f,strategy:r,middlewareData:h,rects:a,platform:s,elements:{reference:t,floating:e}});u=w??u,d=x??d,h=M({},h,{[v]:M({},h[v],m)}),p&&g<=50&&(g++,typeof p=="object"&&(p.placement&&(f=p.placement),p.rects&&(a=p.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):p.rects),{x:u,y:d}=Oe(a,f,c)),y=-1)}return{x:u,y:d,placement:f,strategy:r,middlewareData:h}};async function ce(t,e){var o;e===void 0&&(e={});const{x:n,y:r,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=ht(e,t),g=Je(h),y=l[f?d==="floating"?"reference":"floating":d],v=Bt(await i.getClippingRect
9({element:(o=await(i.isElement==null?void 0:i.isElement(y)))==null||o?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:u,strategy:c})),b=d==="floating"?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),x=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},m=Bt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:w,strategy:c}):b);return{top:(v.top-m.top+g.top)/x.y,bottom:(m.bottom-v.bottom+g.bottom)/x.y,left:(v.left-m.left+g.left)/x.x,right:(m.right-v.right+g.right)/x.x}}const Jn=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:n,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:u=0}=ht(t,e)||{};if(a==null)return{};const d=Je(u),f={x:o,y:n},h=le(r),g=se(h),y=await s.getDimensions(a),v=h==="y",b=v?"top":"left",w=v?"bottom":"right",x=v?"clientHeight":"clientWidth",m=i.reference[g]+i.reference[h]-f[h]-i.floating[g],p=f[h]-i.reference[h],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let I=$?$[x]:0;(!I||!await(s.isElement==null?void 0:s.isElement($)))&&(I=l.floating[x]||i.floating[g]);const q=m/2-p/2,L=I/2-y[g]/2-1,_=$t(d[b],L),S=$t(d[w],L),A=_,j=I-y[g]-S,k=I/2-y[g]/2+q,P=Jt(A,k,j),K=!c.arrow&&Z(r)!=null&&k!==P&&i.reference[g]/2-(k<A?_:S)-y[g]/2<0,N=K?k<A?k-A:k-j:0;return{[h]:f[h]+N,data:M({[h]:P,centerOffset:k-P-N},K&&{alignmentOffset:N}),reset:K}}});function Zn(t,e,o){return(t?[...o.filter(n=>Z(n)===t),...o.filter(n=>Z(n)!==t)]:o.filter(n=>G(n)===n)).filter(n=>t?Z(n)===t||(e?jt(n)!==n:!1):!0)}const Gn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,r;const{rects:i,middlewareData:s,placement:l,platform:c,elements:a}=e,u=ht(t,e),{crossAxis:d=!1,alignment:f,allowedPlacements:h=Ee,autoAlignment:g=!0}=u,y=ne(u,Yn),v=f!==void 0||h===Ee?Zn(f||null,g,h):h,b=await ce(e,y),w=((o=s.autoPlacement)==null?void 0:o.index)||0,x=v[w];if(x==null)return{};const m=Ke(x,i,await(c.isRTL==null?void 0:c.isRTL(a.floating)));if(l!==x)return{reset:{placement:v[0]}};const p=[b[G(x)],b[m[0]],b[m[1]]],$=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:x,overflows:p}],I=v[w+1];if(I)return{data:{index:w+1,overflows:$},reset:{placement:I}};const q=$.map(_=>{const S=Z(_.placement);return[_.placement,S&&d?_.overflows.slice(0,2).reduce((A,j)=>A+j,0):_.overflows[0],_.overflows]}).sort((_,S)=>_[1]-S[1]),L=((r=q.filter(_=>_[2].slice(0,Z(_[0])?2:3).every(S=>S<=0))[0])==null?void 0:r[0])||q[0][0];return L!==l?{data:{index:w+1,overflows:$},reset:{placement:L}}:{}}}},Qn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var o,n;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:a}=e,u=ht(t,e),{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0}=u,b=ne(u,zn);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const w=G(r),x=Et(l),m=G(l)===l,p=await(c.isRTL==null?void 0:c.isRTL(a.floating)),$=h||(m||!v?[Nt(l)]:Vn(l)),I=y!=="none";!h&&I&&$.push(...qn(l,v,y,p));const q=[l,...$],L=await ce(e,b),_=[];let S=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&_.push(L[w]),f){const P=Ke(r,s,p);_.push(L[P[0]],L[P[1]])}if(S=[...S,{placement:r,overflows:_}],!_.every(P=>P<=0)){var A,j;const P=(((A=i.flip)==null?void 0:A.index)||0)+1,K=q[P];if(K)return{data:{index:P,overflows:S},reset:{placement:K}};let N=(j=S.filter(J=>J.overflows[0]<=0).sort((J,C)=>J.overflows[1]-C.overflows[1])[0])==null?void 0:j.placement;if(!N)switch(g){case"bestFit":{var k;const J=(k=S.filter(C=>{if(I){const nt=Et(C.placement);return nt===x||nt==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(nt=>nt>0).reduce((nt,fn)=>nt+fn,0)]).sort((C,nt)=>C[1]-nt[1])[0])==null?void 0:k[0];J&&(N=J);break}case"initialPlacement":N=l;break}if(r!==N)return{reset:{placement:N}}}return{}}}},to=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:n,placement:r}=e,i=ht(t,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:b=>{let{x:w,y:x}=b;return{x:w,y:x}}}}=i,a=ne(i,Xn),u={x:o,y:n},d=await ce(e,a),f=Et(G(r)),h=ie(f);let g=u[h],y=u[f];if(s){const b=h==="y"?"top":"left",w=h==="y"?"bottom":"right",x=g+d[b],m=g-d[w];g=Jt(x,g,m)}if(l){const b=f==="y"?"top":"left",w=f==="y"?"bottom":"right",x=y+d[b],m=y-d[w];y=Jt(x,y,m)}const v=c.fn(M({},e,{[h]:g,[f]:y}));return M({},v,{data:{x:v.x-o,y:v.y-n}})}}},eo=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:o,y:n,placement:r,rects:i,middlewareData:s}=e,{offset:l=0,mainAxis:c=!0,crossAxis:a=!0}=ht(t,e),u={x:o,y:n},d=Et(r),f=ie(d);let h=u[f],g=u[d];const y=ht(l,e),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:M({mainAxis:0,crossAxis:0},y);if(c){const x=f==="y"?"height":"width",m=i.reference[f]-i.floating[x]+v.mainAxis,p=i.reference[f]+i.reference[x]-v.mainAxis;h<m?h=m:h>p&&(h=p)}if(a){var b,w;const x=f==="y"?"width":"height",m=["top","left"].includes(G(r)),p=i.reference[d]-i.floating[x]+(m&&((b=s.offset)==null?void 0:b[d])||0)+(m?0:v.crossAxis),$=i.reference[d]+i.reference[x]+(m?0:((w=s.offset)==null?void 0:w[d])||0)-(m?v.crossAxis:0);g<p?g=p:g>$&&(g=$)}return{[f]:h,[d]:g}}}};function Wt(){return typeof window<"u"}function Tt(t){return Ze(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){var e;return(e=(Ze(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ze(t){return Wt()?t instanceof Node||t instanceof F(t).Node:!1}function B(t){return Wt()?t instanceof Element||t instanceof F(t).Element:!1}function Y(t){return Wt()?t instanceof HTMLElement||t instanceof F(t).HTMLElement:!1}function _e(t){return!Wt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof F(t).ShadowRoot}function Mt(t){const{overflow:e,overflowX:o,overflowY:n,display:r}=V(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(r)}function no(t){return["table","td","th"].includes(Tt(t))}function qt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function ae(t){const e=ue(),o=B(t)?V(t):t;return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function oo(t){let e=rt(t);for(;Y(e)&&!Ot(e);){if(ae(e))return e;if(qt(e))return null;e=rt(e)}return null}function ue(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ot(t){return["html","body","#document"].includes(Tt(t))}function V(t){return F(t).getComputedStyle(t)}function Ut(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function rt(t){if(Tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||_e(t)&&t.host||X(t);return _e(e)?e.host:e}function Ge(t){const e=rt(t);return Ot(e)?t.ownerDocument?t.ownerDocument.body:t.body:Y(e)&&Mt(e)?e:Ge(e)}function Lt(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);const r=Ge(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),s=F(r);if(i){const l=Zt(s);
vendor: 4,824 bytes, line 9
9return e.concat(s,s.visualViewport||[],Mt(r)?r:[],l&&o?Lt(l):[])}return e.concat(r,Lt(r,[],o))}function Zt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Qe(t){const e=V(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const r=Y(t),i=r?t.offsetWidth:o,s=r?t.offsetHeight:n,l=Ht(o)!==i||Ht(n)!==s;return l&&(o=i,n=s),{width:o,height:n,$:l}}function fe(t){return B(t)?t:t.contextElement}function vt(t){const e=fe(t);if(!Y(e))return U(1);const o=e.getBoundingClientRect(),{width:n,height:r,$:i}=Qe(e);let s=(i?Ht(o.width):o.width)/n,l=(i?Ht(o.height):o.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const ro=U(0);function tn(t){const e=F(t);return!ue()||!e.visualViewport?ro:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function io(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==F(t)?!1:e}function pt(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);const r=t.getBoundingClientRect(),i=fe(t);let s=U(1);e&&(n?B(n)&&(s=vt(n)):s=vt(t));const l=io(i,o,n)?tn(i):U(0);let c=(r.left+l.x)/s.x,a=(r.top+l.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const f=F(i),h=n&&B(n)?F(n):n;let g=f,y=Zt(g);for(;y&&n&&h!==g;){const v=vt(y),b=y.getBoundingClientRect(),w=V(y),x=b.left+(y.clientLeft+parseFloat(w.paddingLeft))*v.x,m=b.top+(y.clientTop+parseFloat(w.paddingTop))*v.y;c*=v.x,a*=v.y,u*=v.x,d*=v.y,c+=x,a+=m,g=F(y),y=Zt(g)}}return Bt({width:u,height:d,x:c,y:a})}function de(t,e){const o=Ut(t).scrollLeft;return e?e.left+o:pt(X(t)).left+o}function en(t,e,o){o===void 0&&(o=!1);const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-(o?0:de(t,n)),i=n.top+e.scrollTop;return{x:r,y:i}}function so(t){let{elements:e,rect:o,offsetParent:n,strategy:r}=t;const i=r==="fixed",s=X(n),l=e?qt(e.floating):!1;if(n===s||l&&i)return o;let c={scrollLeft:0,scrollTop:0},a=U(1);const u=U(0),d=Y(n);if((d||!d&&!i)&&((Tt(n)!=="body"||Mt(s))&&(c=Ut(n)),Y(n))){const h=pt(n);a=vt(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const f=s&&!d&&!i?en(s,c,!0):U(0);return{width:o.width*a.x,height:o.height*a.y,x:o.x*a.x-c.scrollLeft*a.x+u.x+f.x,y:o.y*a.y-c.scrollTop*a.y+u.y+f.y}}function lo(t){return Array.from(t.getClientRects())}function co(t){const e=X(t),o=Ut(t),n=t.ownerDocument.body,r=ut(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=ut(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+de(t);const l=-o.scrollTop;return V(n).direction==="rtl"&&(s+=ut(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:s,y:l}}function ao(t,e){const o=F(t),n=X(t),r=o.visualViewport;let i=n.clientWidth,s=n.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const a=ue();(!a||a&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function uo(t,e){const o=pt(t,!0,e==="fixed"),n=o.top+t.clientTop,r=o.left+t.clientLeft,i=Y(t)?vt(t):U(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=r*i.x,a=n*i.y;return{width:s,height:l,x:c,y:a}}function Se(t,e,o){let n;if(e==="viewport")n=ao(t,o);else if(e==="document")n=co(X(t));else if(B(e))n=uo(e,o);else{const r=tn(t);n={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return Bt(n)}function nn(t,e){const o=rt(t);return o===e||!B(o)||Ot(o)?!1:V(o).position==="fixed"||nn(o,e)}function fo(t,e){const o=e.get(t);if(o)return o;let n=Lt(t,[],!1).filter(l=>B(l)&&Tt(l)!=="body"),r=null;const i=V(t).position==="fixed";let s=i?rt(t):t;for(;B(s)&&!Ot(s);){const l=V(s),c=ae(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&r&&["absolute","fixed"].includes(r.position)||Mt(s)&&!c&&nn(t,s))?n=n.filter(a=>a!==s):r=l,s=rt(s)}return e.set(t,n),n}function ho(t){let{element:e,boundary:o,rootBoundary:n,strategy:r}=t;const i=[...o==="clippingAncestors"?qt(e)?[]:fo(e,this._c):[].concat(o),n],s=i[0],l=i.reduce((c,a)=>{const u=Se(e,a,r);return c.top=ut(u.top,c.top),c.right=$t(u.right,c.right),c.bottom=$t(u.bottom,c.bottom),c.left=ut(u.left,c.left),c},Se(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function po(t){const{width:e,height:o}=Qe(t);return{width:e,height:o}}function go(t,e,o){const n=Y(e),r=X(e),i=o==="fixed",s=pt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=U(0);if(n||!n&&!i)if((Tt(e)!=="body"||Mt(r))&&(l=Ut(e)),n){const f=pt(e,!0,i,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else r&&(c.x=de(r));const a=r&&!n&&!i?en(r,l):U(0),u=s.left+l.scrollLeft-c.x-a.x,d=s.top+l.scrollTop-c.y-a.y;return{x:u,y:d,width:s.width,height:s.height}}function Xt(t){return V(t).position==="static"}function Te(t,e){if(!Y(t)||V(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return X(t)===o&&(o=o.ownerDocument.body),o}function on(t,e){const o=F(t);if(qt(t))return o;if(!Y(t)){let r=rt(t);for(;r&&!Ot(r);){if(B(r)&&!Xt(r))return r;r=rt(r)}return o}let n=Te(t,e);for(;n&&no(n)&&Xt(n);)n=Te(n,e);
9return n&&Ot(n)&&Xt(n)&&!ae(n)?o:n||oo(t)||o}const mo=async function(t){const e=this.getOffsetParent||on,o=this.getDimensions,n=await o(t.floating);return{reference:go(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function yo(t){return V(t).direction==="rtl"}const bo={convertOffsetParentRelativeRectToViewportRelativeRect:so,getDocumentElement:X,getClippingRect:ho,getOffsetParent:on,getElementRects:mo,getClientRects:lo,getDimensions:po,getScale:vt,isElement:B,isRTL:yo};function vo(t,e){let o=null,n;const r=X(t);function i(){var l;clearTimeout(n),(l=o)==null||l.disconnect(),o=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:a,top:u,width:d,height:f}=t.getBoundingClientRect();if(l||e(),!d||!f)return;const h=Ft(u),g=Ft(r.clientWidth-(a+d)),y=Ft(r.clientHeight-(u+f)),v=Ft(a),b={rootMargin:-h+"px "+-g+"px "+-y+"px "+-v+"px",threshold:ut(0,$t(1,c))||1};let w=!0;function x(m){const p=m[0].intersectionRatio;if(p!==c){if(!w)return s();p?s(!1,p):n=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{o=new IntersectionObserver(x,M({},b,{root:r.ownerDocument}))}catch{o=new IntersectionObserver(x,b)}o.observe(t)}return s(!0),i}function xo(t,e,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,a=fe(t),u=r||i?[...a?Lt(a):[],...Lt(e)]:[];u.forEach(b=>{r&&b.addEventListener("scroll",o,{passive:!0}),i&&b.addEventListener("resize",o)});const d=a&&l?vo(a,o):null;let f=-1,h=null;s&&(h=new ResizeObserver(b=>{let[w]=b;w&&w.target===a&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(e)})),o()}),a&&!c&&h.observe(a),h.observe(e));let g,y=c?pt(t):null;c&&v();function v(){const b=pt(t);y&&(b.x!==y.x||b.y!==y.y||b.width!==y.width||b.height!==y.height)&&o(),y=b,g=requestAnimationFrame(v)}return o(),()=>{var b;u.forEach(w=>{r&&w.removeEventListener("scroll",o),i&&w.removeEventListener("resize",o)}),d==null||d(),(b=h)==null||b.disconnect(),h=null,c&&cancelAnimationFrame(g)}}const wo=Gn,$o=to,Eo=Qn,Oo=Jn,_o=eo,So=(t,e,o)=>{const n=new Map,r=M({platform:bo},o),i=M({},r.platform,{_c:n});return Kn(t,e,M({},r,{platform:i}))};function To(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let o=e.element;const n=Mo(e,t),r=ze(e);return r&&(o=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=xo(o,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}Io(o,t,n,r)}),t.target=e.element,n}function Ao(t,e){return{floatingUIOptions:oe(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function Ro(t){t.cleanup&&t.cleanup(),t.cleanup=null}function Io(t,e,o,n){return So(t,e.el,o).then(Lo(e,n)).then(r=>new Promise(i=>{setTimeout(()=>i(r),300)})).then(r=>{r!=null&&r.el&&r.el.focus({preventScroll:!0})})}function Lo(t,e){return({x:o,y:n,placement:r,middlewareData:i})=>(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:`${n}px`}),t.el.dataset.popperPlacement=r,Po(t.el,i)),t)}function Po(t,e){const o=t.querySelector(".shepherd-arrow");if(wt(o)&&e.arrow){const{x:n,y:r}=e.arrow;Object.assign(o.style,{left:n!=null?`${n}px`:"",top:r!=null?`${r}px`:""})}}function Mo(t,e){var o,n,r;const i={strategy:"absolute"};i.middleware=[];const s=ko(e),l=ze(t),c=(o=t.on)==null?void 0:o.includes("auto"),a=(t==null||(n=t.on)==null?void 0:n.includes("-start"))||(t==null||(r=t.on)==null?void 0:r.includes("-end"));if(!l){if(c){var u;i.middleware.push(wo({crossAxis:!0,alignment:a?t==null||(u=t.on)==null?void 0:u.split("-").pop():null}))}else i.middleware.push(Eo());if(i.middleware.push($o({limiter:_o(),crossAxis:!0})),s){const d=typeof e.options.arrow=="object"?e.options.arrow:{padding:4};i.middleware.push(Oo({element:s,padding:a?d.padding:0}))}c||(i.placement=t.on)}return oe(i,e.options.floatingUIOptions||{})}function ko(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function D(){}
vendor: 1,635 bytes, line 9
9function Co(t,e){for(const o in e)t[o]=e[o];return t}function rn(t){return t()}function Ae(){return Object.create(null)}function kt(t){t.forEach(rn)}function he(t){return typeof t=="function"}function Q(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function Fo(t){return Object.keys(t).length===0}function _t(t,e){t.appendChild(e)}function W(t,e,o){t.insertBefore(e,o||null)}function H(t){t.parentNode&&t.parentNode.removeChild(t)}function Do(t,e){for(let o=0;o<t.length;o+=1)t[o]&&t[o].d(e)}function z(t){return document.createElement(t)}function Re(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function sn(t){return document.createTextNode(t)}function Vt(){return sn(" ")}function Ho(){return sn("")}function Yt(t,e,o,n){return t.addEventListener(e,o,n),()=>t.removeEventListener(e,o,n)}function O(t,e,o){o==null?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o)}const jo=["width","height"];function Ie(t,e){const o=Object.getOwnPropertyDescriptors(t.__proto__);for(const n in e)e[n]==null?t.removeAttribute(n):n==="style"?t.style.cssText=e[n]:n==="__value"?t.value=t[n]=e[n]:o[n]&&o[n].set&&jo.indexOf(n)===-1?t[n]=e[n]:O(t,n,e[n])}function No(t){return Array.from(t.childNodes)}function mt(t,e,o){t.classList.toggle(e,!!o)}let Pt;function Rt(t){Pt=t}function ln(){if(!Pt)throw new Error("Function called outside component initialization");return Pt}function Bo(t){ln().$$.on_mount.push(t)}function pe(t){ln().$$.after_update.push(t)}const bt=[],St=[];let xt=[];const Le=[],Vo=Promise.resolve();let Gt=!1;function Wo(){Gt||(Gt=!0,Vo.then(cn))}function Qt(t){xt.push(t)}
9const Kt=new Set;let yt=0;function cn(){if(yt!==0)return;const t=Pt;do{try{for(;yt<bt.length;){const e=bt[yt];yt++,Rt(e),qo(e.$$)}}catch(e){throw bt.length=0,yt=0,e}for(Rt(null),bt.length=0,yt=0;St.length;)St.pop()();for(let e=0;e<xt.length;e+=1){const o=xt[e];Kt.has(o)||(Kt.add(o),o())}xt.length=0}while(bt.length);for(;Le.length;)Le.pop()();Gt=!1,Kt.clear(),Rt(t)}function qo(t){if(t.fragment!==null){t.update(),kt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Qt)}}function Uo(t){const e=[],o=[];xt.forEach(n=>t.indexOf(n)===-1?e.push(n):o.push(n)),o.forEach(n=>n()),xt=e}const Dt=new Set;let ct;function ft(){ct={r:0,c:[],p:ct}}function dt(){ct.r||kt(ct.c),ct=ct.p}function E(t,e){t&&t.i&&(Dt.delete(t),t.i(e))}function T(t,e,o,n){if(t&&t.o){if(Dt.has(t))return;Dt.add(t),ct.c.push(()=>{Dt.delete(t),n&&(o&&t.d(1),n())}),t.o(e)}else n&&n()}function Pe(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Yo(t,e){const o={},n={},r={$$scope:1};let i=t.length;for(;i--;){const s=t[i],l=e[i];if(l){for(const c in s)c in l||(n[c]=1);for(const c in l)r[c]||(o[c]=l[c],r[c]=1);t[i]=l}else for(const c in s)r[c]=1}for(const s in n)s in o||(o[s]=void 0);return o}function gt(t){t&&t.c()}function st(t,e,o){const{fragment:n,after_update:r}=t.$$;n&&n.m(e,o),Qt(()=>{const i=t.$$.on_mount.map(rn).filter(he);t.$$.on_destroy?t.$$.on_destroy.push(...i):kt(i),t.$$.on_mount=[]}),r.forEach(Qt)}function lt(t,e){const o=t.$$;o.fragment!==null&&(Uo(o.after_update),kt(o.on_destroy),o.fragment&&o.fragment.d(e),o.on_destroy=o.fragment=null,o.ctx=[])}function zo(t,e){t.$$.dirty[0]===-1&&(bt.push(t),Wo(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function tt(t,e,o,n,r,i,s=null,l=[-1]){const c=Pt;Rt(t);const a=t.$$={fragment:null,ctx:[],props:i,update:D,not_equal:r,bound:Ae(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Ae(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};s&&s(a.root);let u=!1;if(a.ctx=o?o(t,e.props||{},(d,f,...h)=>{const g=h.length?h[0]:f;return a.ctx&&r(a.ctx[d],a.ctx[d]=g)&&(!a.skip_bound&&a.bound[d]&&a.bound[d](g),u&&zo(t,d)),f}):[],a.update(),u=!0,kt(a.before_update),a.fragment=n?n(a.ctx):!1,e.target){if(e.hydrate){const d=No(e.target);a.fragment&&a.fragment.l(d),d.forEach(H)}else a.fragment&&a.fragment.c();e.intro&&E(t.$$.fragment),st(t,e.target,e.anchor),cn()}Rt(c)}class et{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){lt(this,1),this.$destroy=D}$on(e,o){if(!he(o))return D;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(o),()=>{const r=n.indexOf(o);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!Fo(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Xo="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Xo);function Ko(t){let e,o,n,r,i;return{c(){e=z("button"),O(e,"aria-label",o=t[3]?t[3]:null),O(e,"class",n=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],O(e,"tabindex","0"),O(e,"type","button")},m(s,l){W(s,e,l),e.innerHTML=t[5],r||(i=Yt(e,"click",function(){he(t[0])&&t[0].apply(this,arguments)}),r=!0)},p(s,[l]){t=s,l&32&&(e.innerHTML=t[5]),l&8&&o!==(o=t[3]?t[3]:null)&&O(e,"aria-label",o),l&18&&n!==(n=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&O(e,"class",n),l&4&&(e.disabled=t[2])},i:D,o:D,d(s){s&&H(e),r=!1,i()}}}function Jo(t,e,o){let{config:n,step:r}=e,i,s,l,c,a,u;function d(f){return ot(f)?f=f.call(r):f}return t.$$set=f=>{"config"in f&&o(6,n=f.config),"step"in f&&o(7,r=f.step)},t.$$.update=()=>{t.$$.dirty&192&&(o(0,i=n.action?n.action.bind(r.tour):null),o(1,s=n.classes),o(2,l=n.disabled?d(n.disabled):!1),o(3,c=n.label?d(n.label):null),o(4,a=n.secondary),o(5,u=n.text?d(n.text):null))},[i,s,l,c,a,u,n,r]}class Zo extends et{constructor(e){super(),tt(this,e,Jo,Ko,Q,{config:6,step:7})}}function Me(t,e,o){const n=t.slice();return n[2]=e[o],n}function ke(t){let e,o,n=Pe(t[1]),r=[];for(let s=0;s<n.length;s+=1)r[s]=Ce(Me(t,n,s));const i=s=>T(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s<r.length;s+=1)r[s].c();e=Ho()},m(s,l){for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(s,l);W(s,e,l),o=!0},p(s,l){if(l&3){n=Pe(s[1]);let c;for(c=0;c<n.length;c+=1){const a=Me(s,n,c);r[c]?(r[c].p(a,l),E(r[c],1)):(r[c]=Ce(a),r[c].c(),E(r[c],1),r[c].m(e.parentNode,e))}for(ft(),c=n.length;c<r.length;c+=1)i(c);dt()}},i(s){if(!o){for(let l=0;l<n.length;l+=1)E(r[l]);o=!0}},o(s){r=r.filter(Boolean);for(let l=0;l<r.length;l+=1)T(r[l]);o=!1},d(s){s&&H(e),Do(r,s)}}}function Ce(t){let e,o;return e=new Zo({props:{config:t[2],step:t[0]}}),{c(){gt(e.$$.fragment)},m(n,r){st(e,n,r),o=!0}
9,p(n,r){const i={};r&2&&(i.config=n[2]),r&1&&(i.step=n[0]),e.$set(i)},i(n){o||(E(e.$$.fragment,n),o=!0)},o(n){T(e.$$.fragment,n),o=!1},d(n){lt(e,n)}}}function Go(t){let e,o,n=t[1]&&ke(t);return{c(){e=z("footer"),n&&n.c(),O(e,"class","shepherd-footer")},m(r,i){W(r,e,i),n&&n.m(e,null),o=!0},p(r,[i]){r[1]?n?(n.p(r,i),i&2&&E(n,1)):(n=ke(r),n.c(),E(n,1),n.m(e,null)):n&&(ft(),T(n,1,1,()=>{n=null}),dt())},i(r){o||(E(n),o=!0)},o(r){T(n),o=!1},d(r){r&&H(e),n&&n.d()}}}function Qo(t,e,o){let n,{step:r}=e;return t.$$set=i=>{"step"in i&&o(0,r=i.step)},t.$$.update=()=>{t.$$.dirty&1&&o(1,n=r.options.buttons)},[r,n]}class tr extends et{constructor(e){super(),tt(this,e,Qo,Go,Q,{step:0})}}function er(t){let e,o,n,r,i;return{c(){e=z("button"),o=z("span"),o.textContent="Ã",O(o,"aria-hidden","true"),O(e,"aria-label",n=t[0].label?t[0].label:"Close Tour"),O(e,"class","shepherd-cancel-icon"),O(e,"type","button")},m(s,l){W(s,e,l),_t(e,o),r||(i=Yt(e,"click",t[1]),r=!0)},p(s,[l]){l&1&&n!==(n=s[0].label?s[0].label:"Close Tour")&&O(e,"aria-label",n)},i:D,o:D,d(s){s&&H(e),r=!1,i()}}}function nr(t,e,o){let{cancelIcon:n,step:r}=e;const i=s=>{s.preventDefault(),r.cancel()};return t.$$set=s=>{"cancelIcon"in s&&o(0,n=s.cancelIcon),"step"in s&&o(2,r=s.step)},[n,i,r]}class or extends et{constructor(e){super(),tt(this,e,nr,er,Q,{cancelIcon:0,step:2})}}function rr(t){let e;return{c(){e=z("h3"),O(e,"id",t[1]),O(e,"class","shepherd-title")},m(o,n){W(o,e,n),t[3](e)},p(o,[n]){n&2&&O(e,"id",o[1])},i:D,o:D,d(o){o&&H(e),t[3](null)}}}function ir(t,e,o){let{labelId:n,element:r,title:i}=e;pe(()=>{ot(i)&&o(2,i=i()),o(0,r.innerHTML=i,r)});function s(l){St[l?"unshift":"push"](()=>{r=l,o(0,r)})}return t.$$set=l=>{"labelId"in l&&o(1,n=l.labelId),"element"in l&&o(0,r=l.element),"title"in l&&o(2,i=l.title)},[r,n,i,s]}class sr extends et{constructor(e){super(),tt(this,e,ir,rr,Q,{labelId:1,element:0,title:2})}}function Fe(t){let e,o;return e=new sr({props:{labelId:t[0],title:t[2]}}),{c(){gt(e.$$.fragment)},m(n,r){st(e,n,r),o=!0},p(n,r){const i={};r&1&&(i.labelId=n[0]),r&4&&(i.title=n[2]),e.$set(i)},i(n){o||(E(e.$$.fragment,n),o=!0)},o(n){T(e.$$.fragment,n),o=!1},d(n){lt(e,n)}}}function De(t){let e,o;return e=new or({props:{cancelIcon:t[3],step:t[1]}}),{c(){gt(e.$$.fragment)},m(n,r){st(e,n,r),o=!0},p(n,r){const i={};r&8&&(i.cancelIcon=n[3]),r&2&&(i.step=n[1]),e.$set(i)},i(n){o||(E(e.$$.fragment,n),o=!0)},o(n){T(e.$$.fragment,n),o=!1},d(n){lt(e,n)}}}function lr(t){let e,o,n,r=t[2]&&Fe(t),i=t[3]&&t[3].enabled&&De(t);return{c(){e=z("header"),r&&r.c(),o=Vt(),i&&i.c(),O(e,"class","shepherd-header")},m(s,l){W(s,e,l),r&&r.m(e,null),_t(e,o),i&&i.m(e,null),n=!0},p(s,[l]){s[2]?r?(r.p(s,l),l&4&&E(r,1)):(r=Fe(s),r.c(),E(r,1),r.m(e,o)):r&&(ft(),T(r,1,1,()=>{r=null}),dt()),s[3]&&s[3].enabled?i?(i.p(s,l),l&8&&E(i,1)):(i=De(s),i.c(),E(i,1),i.m(e,null)):i&&(ft(),T(i,1,1,()=>{i=null}),dt())},i(s){n||(E(r),E(i),n=!0)},o(s){T(r),T(i),n=!1},d(s){s&&H(e),r&&r.d(),i&&i.d()}}}function cr(t,e,o){let{labelId:n,step:r}=e,i,s;return t.$$set=l=>{"labelId"in l&&o(0,n=l.labelId),"step"in l&&o(1,r=l.step)},t.$$.update=()=>{t.$$.dirty&2&&(o(2,i=r.options.title),o(3,s=r.options.cancelIcon))},[n,r,i,s]}class ar extends et{constructor(e){super(),tt(this,e,cr,lr,Q,{labelId:0,step:1})}}function ur(t){let e;return{c(){e=z("div"),O(e,"class","shepherd-text"),O(e,"id",t[1])},m(o,n){W(o,e,n),t[3](e)},p(o,[n]){n&2&&O(e,"id",o[1])},i:D,o:D,d(o){o&&H(e),t[3](null)}}}function fr(t,e,o){let{descriptionId:n,element:r,step:i}=e;pe(()=>{let{text:l}=i.options;ot(l)&&(l=l.call(i)),wt(l)?r.appendChild(l):o(0,r.innerHTML=l,r)});function s(l){St[l?"unshift":"push"](()=>{r=l,o(0,r)})}return t.$$set=l=>{"descriptionId"in l&&o(1,n=l.descriptionId),"element"in l&&o(0,r=l.element),"step"in l&&o(2,i=l.step)},[r,n,i,s]}class dr extends et{constructor(e){super(),tt(this,e,fr,ur,Q,{descriptionId:1,element:0,step:2})}}function He(t){let e,o;return e=new ar({props:{labelId:t[1],step:t[2]}}),{c(){gt(e.$$.fragment)},m(n,r){st(e,n,r),o=!0},p(n,r){const i={};r&2&&(i.labelId=n[1]),r&4&&(i.step=n[2]),e.$set(i)},i(n){o||(E(e.$$.fragment,n),o=!0)},o(n){T(e.$$.fragment,n),o=!1},d(n){lt(e,n)}}}function je(t){let e,o;return e=new dr({props:{descriptionId:t[0],step:t[2]}}),{c(){gt(e.$$.fragment)},m(n,r){st(e,n,r),o=!0}
9,p(n,r){const i={};r&1&&(i.descriptionId=n[0]),r&4&&(i.step=n[2]),e.$set(i)},i(n){o||(E(e.$$.fragment,n),o=!0)},o(n){T(e.$$.fragment,n),o=!1},d(n){lt(e,n)}}}function Ne(t){let e,o;return e=new tr({props:{step:t[2]}}),{c(){gt(e.$$.fragment)},m(n,r){st(e,n,r),o=!0},p(n,r){const i={};r&4&&(i.step=n[2]),e.$set(i)},i(n){o||(E(e.$$.fragment,n),o=!0)},o(n){T(e.$$.fragment,n),o=!1},d(n){lt(e,n)}}}function hr(t){let e,o=!R(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,n,r=!R(t[2].options.text),i,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l,c=o&&He(t),a=r&&je(t),u=s&&Ne(t);return{c(){e=z("div"),c&&c.c(),n=Vt(),a&&a.c(),i=Vt(),u&&u.c(),O(e,"class","shepherd-content")},m(d,f){W(d,e,f),c&&c.m(e,null),_t(e,n),a&&a.m(e,null),_t(e,i),u&&u.m(e,null),l=!0},p(d,[f]){f&4&&(o=!R(d[2].options.title)||d[2].options.cancelIcon&&d[2].options.cancelIcon.enabled),o?c?(c.p(d,f),f&4&&E(c,1)):(c=He(d),c.c(),E(c,1),c.m(e,n)):c&&(ft(),T(c,1,1,()=>{c=null}),dt()),f&4&&(r=!R(d[2].options.text)),r?a?(a.p(d,f),f&4&&E(a,1)):(a=je(d),a.c(),E(a,1),a.m(e,i)):a&&(ft(),T(a,1,1,()=>{a=null}),dt()),f&4&&(s=Array.isArray(d[2].options.buttons)&&d[2].options.buttons.length),s?u?(u.p(d,f),f&4&&E(u,1)):(u=Ne(d),u.c(),E(u,1),u.m(e,null)):u&&(ft(),T(u,1,1,()=>{u=null}),dt())},i(d){l||(E(c),E(a),E(u),l=!0)},o(d){T(c),T(a),T(u),l=!1},d(d){d&&H(e),c&&c.d(),a&&a.d(),u&&u.d()}}}function pr(t,e,o){let{descriptionId:n,labelId:r,step:i}=e;return t.$$set=s=>{"descriptionId"in s&&o(0,n=s.descriptionId),"labelId"in s&&o(1,r=s.labelId),"step"in s&&o(2,i=s.step)},[n,r,i]}class gr extends et{constructor(e){super(),tt(this,e,pr,hr,Q,{descriptionId:0,labelId:1,step:2})}}function Be(t){let e;return{c(){e=z("div"),O(e,"class","shepherd-arrow"),O(e,"data-popper-arrow","")},m(o,n){W(o,e,n)},d(o){o&&H(e)}}}function mr(t){let e,o,n,r,i,s,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&Be();n=new gr({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let u=[{"aria-describedby":r=R(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{open:"true"}],d={};for(let f=0;f<u.length;f+=1)d=Co(d,u[f]);return{c(){e=z("dialog"),a&&a.c(),o=Vt(),gt(n.$$.fragment),Ie(e,d),mt(e,"shepherd-has-cancel-icon",t[5]),mt(e,"shepherd-has-title",t[6]),mt(e,"shepherd-element",!0)},m(f,h){W(f,e,h),a&&a.m(e,null),_t(e,o),st(n,e,null),t[13](e),s=!0,l||(c=Yt(e,"keydown",t[7]),l=!0)},p(f,[h]){f[4].options.arrow&&f[4].options.attachTo&&f[4].options.attachTo.element&&f[4].options.attachTo.on?a||(a=Be(),a.c(),a.m(e,o)):a&&(a.d(1),a=null);const g={};h&4&&(g.descriptionId=f[2]),h&8&&(g.labelId=f[3]),h&16&&(g.step=f[4]),n.$set(g),Ie(e,d=Yo(u,[(!s||h&20&&r!==(r=R(f[4].options.text)?null:f[2]))&&{"aria-describedby":r},(!s||h&24&&i!==(i=f[4].options.title?f[3]:null))&&{"aria-labelledby":i},h&2&&f[1],{open:"true"}])),mt(e,"shepherd-has-cancel-icon",f[5]),mt(e,"shepherd-has-title",f[6]),mt(e,"shepherd-element",!0)},i(f){s||(E(n.$$.fragment,f),s=!0)},o(f){T(n.$$.fragment,f),s=!1},d(f){f&&H(e),a&&a.d(),lt(n),t[13](null),l=!1,c()}}}const yr=9,br=27,vr=37,xr=39;function Ve(t){return t.split(" ").filter(e=>!!e.length)}function wr(t,e,o){let{classPrefix:n,element:r,descriptionId:i,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:u,dataStepId:d}=e,f,h,g;const y=()=>r;Bo(()=>{o(1,d={[`data-${n}shepherd-step-id`]:u.id}),o(9,l=r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),o(8,s=l[0]),o(10,a=l[l.length-1])}),pe(()=>{g!==u.options.classes&&v()});function v(){b(g),g=u.options.classes,w(g)}function b(p){if(It(p)){const $=Ve(p);$.length&&r.classList.remove(...$)}}function w(p){if(It(p)){const $=Ve(p);$.length&&r.classList.add(...$)}}const x=p=>{const{tour:$}=u;switch(p.keyCode){case yr:if(l.length===0){p.preventDefault();break}p.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(p.preventDefault(),a.focus()):document.activeElement===a&&(p.preventDefault(),s.focus());break;case br:$.options.exitOnEsc&&(p.preventDefault(),p.stopPropagation(),u.cancel());break;case vr:$.options.keyboardNavigation&&(p.preventDefault(),p.stopPropagation(),$.back());break;case xr:$.options.keyboardNavigation&&(p.preventDefault(),p.stopPropagation(),$.next());break}};function m(p){St[p?"unshift":"push"](()=>{r=p,o(0,r)})}return t.$$set=p=>{"classPrefix"in p&&o(11,n=p.classPrefix),"element"in p&&o(0,r=p.element),"descriptionId"in p&&o(2,i=p.descriptionId),"firstFocusableElement"in p&&o(8,s=p.firstFocusableElement),"focu
9sableElements"in p&&o(9,l=p.focusableElements),"labelId"in p&&o(3,c=p.labelId),"lastFocusableElement"in p&&o(10,a=p.lastFocusableElement),"step"in p&&o(4,u=p.step),"dataStepId"in p&&o(1,d=p.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(o(5,f=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled),o(6,h=u.options&&u.options.title))},[r,d,i,c,u,f,h,x,s,l,a,n,y,m]}class $r extends et{constructor(e){super(),tt(this,e,wr,mr,Q,{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 te extends ee{constructor(e,o={}){return super(),this._resolvedAttachTo=void 0,this._resolvedExtraHighlightElements=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?Ye(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,re(this),this._setOptions(o),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){Ro(this),wt(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveExtraHiglightElements(){return this._resolvedExtraHighlightElements=Hn(this),this._resolvedExtraHighlightElements}_resolveAttachToOptions(){return this._resolvedAttachTo=Dn(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return ot(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=`${this.id}-description`,o=`${this.id}-label`;return this.shepherdElementComponent=new $r({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:o,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:o}=this._getResolvedAttachToOptions();ot(this.options.scrollToHandler)?this.options.scrollToHandler(o):mn(o)&&typeof o.scrollIntoView=="function"&&o.scrollIntoView(e)}_getClassOptions(e){const o=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=e.classes?e.classes:"",r=o&&o.classes?o.classes:"",i=[...n.split(" "),...r.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(e={}){let o=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;o=oe({},o||{}),this.options=Object.assign({arrow:!0},o,e,Ao(o,e));const{when:n}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${Xe()}`,n&&Object.keys(n).forEach(r=>{this.on(r,n[r],this)})}_setupElements(){R(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&kn(this),To(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._resolveExtraHiglightElements(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const o=this.shepherdElementComponent.getElement(),n=this.target||document.body,r=this._resolvedExtraHighlightElements;n.classList.add(`${this.classPrefix}shepherd-enabled`),n.classList.add(`${this.classPrefix}shepherd-target`),o.classList.add("shepherd-enabled"),r==null||r.forEach(i=>{i.classList.add(`${this.classPrefix}shepherd-enabled`),i.classList.add(`${this.classPrefix}shepherd-target`)}),this.trigger("show")}_styleTargetElementForStep(e){const o=e.target,n=e._resolvedExtraHighlightElements;if(!o)return;const r=e.options.highlightClass;
9r&&(o.classList.add(r),n==null||n.forEach(i=>i.classList.add(r))),o.classList.remove("shepherd-target-click-disabled"),n==null||n.forEach(i=>i.classList.remove("shepherd-target-click-disabled")),e.options.canClickTarget===!1&&(o.classList.add("shepherd-target-click-disabled"),n==null||n.forEach(i=>i.classList.add("shepherd-target-click-disabled")))}_updateStepTargetOnHide(){const e=this.target||document.body,o=this._resolvedExtraHighlightElements,n=this.options.highlightClass;n&&(e.classList.remove(n),o==null||o.forEach(r=>r.classList.remove(n))),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`),o==null||o.forEach(r=>{r.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)})}}function Er(t){if(t){const{steps:e}=t;e.forEach(o=>{o.options&&o.options.canClickTarget===!1&&o.options.attachTo&&(wt(o.target)&&o.target.classList.remove("shepherd-target-click-disabled"),o._resolvedExtraHighlightElements&&o._resolvedExtraHighlightElements.forEach(n=>{wt(n)&&n.classList.remove("shepherd-target-click-disabled")}))})}}function Or(t){let e="";const{innerWidth:o,innerHeight:n}=window;return t.forEach(r=>{const{width:i,height:s,x:l=0,y:c=0,r:a=0}=r,{topLeft:u=0,topRight:d=0,bottomRight:f=0,bottomLeft:h=0}=typeof a=="number"?{topLeft:a,topRight:a,bottomRight:a,bottomLeft:a}:a;e+=`M${l+u},${c} a${u},${u},0,0,0-${u},${u} V${s+c-h} a${h},${h},0,0,0,${h},${h} H${i+l-f} a${f},${f},0,0,0,${f}-${f} V${c+d} a${d},${d},0,0,0-${d}-${d} Z`}),`M${o},${n} H0 V0 H${o} V${n} Z ${e}`.replace(/\s/g,"")}function _r(t){let e,o,n,r,i;return{c(){e=Re("svg"),o=Re("path"),O(o,"d",t[2]),O(e,"class",n=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){W(s,e,l),_t(e,o),t[11](e),r||(i=Yt(e,"touchmove",t[3]),r=!0)},p(s,[l]){l&4&&O(o,"d",s[2]),l&2&&n!==(n=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&O(e,"class",n)},i:D,o:D,d(s){s&&H(e),t[11](null),r=!1,i()}}}function an(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return e!=="hidden"&&e!=="visible"&&t.scrollHeight>=t.clientHeight?t:an(t.parentElement)}function Sr(t){let e={top:0,left:0};if(!t)return e;let o=t.ownerDocument.defaultView;for(;o!==window.top;){var n;const s=(n=o)==null?void 0:n.frameElement;if(s){var r,i;const l=s.getBoundingClientRect();e.top+=l.top+((r=l.scrollTop)!=null?r:0),e.left+=l.left+((i=l.scrollLeft)!=null?i:0)}o=o.parent}return e}function Tr(t,e){const o=t.getBoundingClientRect();let n=o.y||o.top,r=o.bottom||n+o.height;if(e){const s=e.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;n=Math.max(n,l),r=Math.min(r,c)}const i=Math.max(r-n,0);return{y:n,height:i}}function Ar(t,e,o){let{element:n,openingProperties:r}=e,i=!1,s,l;a();const c=()=>n;function a(){o(4,r=[{width:0,height:0,x:0,y:0,r:0}])}function u(){o(1,i=!1),b()}function d(m=0,p=0,$=0,I=0,q,L,_){if(L){const S=[L,..._||[]];o(4,r=[]);for(const A of S){if(!A||S.indexOf(A)!==S.lastIndexOf(A))continue;const{y:j,height:k}=Tr(A,q),{x:P,width:K,left:N}=A.getBoundingClientRect();S.some(J=>{if(J===A)return!1;const C=J.getBoundingClientRect();return P>=C.left&&P+K<=C.right&&j>=C.top&&j+k<=C.bottom})||r.push({width:K+m*2,height:k+m*2,x:(P||N)+$-m,y:j+I-m,r:p})}}else a()}function f(m){b(),m.tour.options.useModalOverlay?(w(m),h()):u()}function h(){o(1,i=!0)}const g=m=>{m.preventDefault()},y=m=>{m.stopPropagation()};function v(){window.addEventListener("touchmove",g,{passive:!1})}function b(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",g,{passive:!1})}function w(m){const{modalOverlayOpeningPadding:p,modalOverlayOpeningRadius:$,modalOverlayOpeningXOffset:I=0,modalOverlayOpeningYOffset:q=0}=m.options,L=Sr(m.target),_=an(m.target),S=()=>{s=void 0,d(p,$,I+L.left,q+L.top,_,m.target,m._resolvedExtraHighlightElements),s=requestAnimationFrame(S)};S(),v()}function x(m){St[m?"unshift":"push"](()=>{n=m,o(0,n)})}return t.$$set=m=>{"element"in m&&o(0,n=m.element),"openingProperties"in m&&o(4,r=m.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&o(2,l=Or(r))},[n,i,l,y,r,c,a,u,d,f,h,x]}class Rr extends et{constructor(e){super(),tt(this,e,Ar,_r,Q,{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]}}class Ir extends ee{constructor(){super(),this.activeTour=void 0,re(this)}}class Lr extends ee{constructor(e={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,re(this);const o={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},o,e),this.classPrefix=Ye(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","
9inactive","show","start"].map(n=>{(r=>{this.on(r,i=>{i=i||{},i.tour=this,at.trigger(r,i)})})(n)}),this._setTourID(e.id),this}addStep(e,o){let n=e;return n instanceof te?n.tour=this:n=new te(this,n),R(o)?this.steps.push(n):this.steps.splice(o,0,n),n}addSteps(e){return Array.isArray(e)&&e.forEach(o=>{this.addStep(o)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let o;ot(this.options.confirmCancel)?o=await this.options.confirmCancel():o=window.confirm(e),o&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(o=>o.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return at.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const o=this.getCurrentStep();this.steps.some((n,r)=>{if(n.id===e)return n.isOpen()&&n.hide(),n.destroy(),this.steps.splice(r,1),!0}),o&&o.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,o=!0){const n=It(e)?this.getById(e):this.steps[e];n&&(this._updateStateBeforeShow(),ot(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,o):(this.currentStep=n,this.trigger("show",{step:n,previous:this.currentStep}),n.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const o=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(n=>n.destroy()),Er(this),this.trigger(e,{index:o}),at.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){const n=document.querySelector(".shepherd-modal-overlay-container");n&&(n.remove(),this.modal=null)}wt(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),at.activeTour=this}setupModal(){this.modal=new Rr({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,o){const n=this.steps.indexOf(e);if(n===this.steps.length-1)this.complete();else{const r=o?n+1:n-1;this.show(r,o)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const o=this.options.tourName||"tour",n=e||Xe();this.id=`${o}--${n}`}}const at=new Ir,un=typeof window>"u";at.Step=un?Cn:te;at.Tour=un?Fn:Lr;const ge=We.createContext(void 0);ge.Consumer;const Mr=()=>{const t=We.useContext(ge);if(!t)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:e}=t;return e},kr=({children:t})=>gn.jsx(ge.Provider,{value:{Shepherd:at},children:t});export{kr as i,Mr as r};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.