react-shepherd 6.1.9 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +53 -20
- package/README.md +20 -8
- package/dist/index.js +1116 -3655
- package/dist/index.umd.cjs +2 -26
- package/package.json +20 -17
package/dist/index.umd.cjs
CHANGED
|
@@ -1,30 +1,6 @@
|
|
|
1
|
-
(function(
|
|
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 Qt;function cr(){if(Qt)return Ke;Qt=1;var e=ve,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(c,a,u){var h,d={},f=null,p=null;u!==void 0&&(f=""+u),a.key!==void 0&&(f=""+a.key),a.ref!==void 0&&(p=a.ref);for(h in a)r.call(a,h)&&!i.hasOwnProperty(h)&&(d[h]=a[h]);if(c&&c.defaultProps)for(h in a=c.defaultProps,a)d[h]===void 0&&(d[h]=a[h]);return{$$typeof:t,type:c,key:f,ref:p,props:d,_owner:o.current}}return Ke.Fragment=n,Ke.jsx=s,Ke.jsxs=s,Ke}var $e={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var en;function ar(){return en||(en=1,process.env.NODE_ENV!=="production"&&function(){var e=ve,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=Symbol.iterator,w="@@iterator";function S(l){if(l===null||typeof l!="object")return null;var g=y&&l[y]||l[w];return typeof g=="function"?g:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(l){{for(var g=arguments.length,b=new Array(g>1?g-1:0),x=1;x<g;x++)b[x-1]=arguments[x];O("error",l,b)}}function O(l,g,b){{var x=_.ReactDebugCurrentFrame,k=x.getStackAddendum();k!==""&&(g+="%s",b=b.concat([k]));var L=b.map(function(C){return String(C)});L.unshift("Warning: "+g),Function.prototype.apply.call(console[l],console,L)}}var v=!1,T=!1,j=!1,D=!1,U=!1,W;W=Symbol.for("react.module.reference");function m(l){return!!(typeof l=="string"||typeof l=="function"||l===r||l===i||U||l===o||l===u||l===h||D||l===p||v||T||j||typeof l=="object"&&l!==null&&(l.$$typeof===f||l.$$typeof===d||l.$$typeof===s||l.$$typeof===c||l.$$typeof===a||l.$$typeof===W||l.getModuleId!==void 0))}function P(l,g,b){var x=l.displayName;if(x)return x;var k=g.displayName||g.name||"";return k!==""?b+"("+k+")":b}function A(l){return l.displayName||"Context"}function M(l){if(l==null)return null;if(typeof l.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case h:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case c:var g=l;return A(g)+".Consumer";case s:var b=l;return A(b._context)+".Provider";case a:return P(l,l.render,"ForwardRef");case d:var x=l.displayName||null;return x!==null?x:M(l.type)||"Memo";case f:{var k=l,L=k._payload,C=k._init;try{return M(C(L))}catch{return null}}}return null}var H=Object.assign,Y=0,te,z,De,se,J,Q,le;function bt(){}bt.__reactDisabledLog=!0;function Ii(){{if(Y===0){te=console.log,z=console.info,De=console.warn,se=console.error,J=console.group,Q=console.groupCollapsed,le=console.groupEnd;var l={configurable:!0,enumerable:!0,value:bt,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}Y++}}function Di(){{if(Y--,Y===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},l,{value:te}),info:H({},l,{value:z}),warn:H({},l,{value:De}),error:H({},l,{value:se}),group:H({},l,{value:J}),groupCollapsed:H({},l,{value:Q}),groupEnd:H({},l,{value:le})})}Y<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qt=_.ReactCurrentDispatcher,zt;function vt(l,g,b){{if(zt===void 0)try{throw Error()}catch(k){var x=k.stack.trim().match(/\n( *(at )?)/);zt=x&&x[1]||""}return`
|
|
18
|
-
`+zt+l}}var Jt=!1,yt;{var Fi=typeof WeakMap=="function"?WeakMap:Map;yt=new Fi}function Jn(l,g){if(!l||Jt)return"";{var b=yt.get(l);if(b!==void 0)return b}var x;Jt=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var L;L=qt.current,qt.current=null,Ii();try{if(g){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(X){x=X}Reflect.construct(l,[],C)}else{try{C.call()}catch(X){x=X}l.call(C.prototype)}}else{try{throw Error()}catch(X){x=X}l()}}catch(X){if(X&&x&&typeof X.stack=="string"){for(var R=X.stack.split(`
|
|
19
|
-
`),K=x.stack.split(`
|
|
20
|
-
`),V=R.length-1,N=K.length-1;V>=1&&N>=0&&R[V]!==K[N];)N--;for(;V>=1&&N>=0;V--,N--)if(R[V]!==K[N]){if(V!==1||N!==1)do if(V--,N--,N<0||R[V]!==K[N]){var ne=`
|
|
21
|
-
`+R[V].replace(" at new "," at ");return l.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",l.displayName)),typeof l=="function"&&yt.set(l,ne),ne}while(V>=1&&N>=0);break}}}finally{Jt=!1,qt.current=L,Di(),Error.prepareStackTrace=k}var Je=l?l.displayName||l.name:"",Fe=Je?vt(Je):"";return typeof l=="function"&&yt.set(l,Fe),Fe}function Mi(l,g,b){return Jn(l,!1)}function Li(l){var g=l.prototype;return!!(g&&g.isReactComponent)}function wt(l,g,b){if(l==null)return"";if(typeof l=="function")return Jn(l,Li(l));if(typeof l=="string")return vt(l);switch(l){case u:return vt("Suspense");case h:return vt("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case a:return Mi(l.render);case d:return wt(l.type,g,b);case f:{var x=l,k=x._payload,L=x._init;try{return wt(L(k),g,b)}catch{}}}return""}var nt=Object.prototype.hasOwnProperty,Kn={},$n=_.ReactDebugCurrentFrame;function _t(l){if(l){var g=l._owner,b=wt(l.type,l._source,g?g.type:null);$n.setExtraStackFrame(b)}else $n.setExtraStackFrame(null)}function ji(l,g,b,x,k){{var L=Function.call.bind(nt);for(var C in l)if(L(l,C)){var R=void 0;try{if(typeof l[C]!="function"){var K=Error((x||"React class")+": "+b+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw K.name="Invariant Violation",K}R=l[C](g,C,x,b,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(V){R=V}R&&!(R instanceof Error)&&(_t(k),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",b,C,typeof R),_t(null)),R instanceof Error&&!(R.message in Kn)&&(Kn[R.message]=!0,_t(k),E("Failed %s type: %s",b,R.message),_t(null))}}}var Hi=Array.isArray;function Kt(l){return Hi(l)}function Bi(l){{var g=typeof Symbol=="function"&&Symbol.toStringTag,b=g&&l[Symbol.toStringTag]||l.constructor.name||"Object";return b}}function Vi(l){try{return Xn(l),!1}catch{return!0}}function Xn(l){return""+l}function Gn(l){if(Vi(l))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Bi(l)),Xn(l)}var Zn=_.ReactCurrentOwner,Ni={key:!0,ref:!0,__self:!0,__source:!0},Qn,er;function Wi(l){if(nt.call(l,"ref")){var g=Object.getOwnPropertyDescriptor(l,"ref").get;if(g&&g.isReactWarning)return!1}return l.ref!==void 0}function Yi(l){if(nt.call(l,"key")){var g=Object.getOwnPropertyDescriptor(l,"key").get;if(g&&g.isReactWarning)return!1}return l.key!==void 0}function Ui(l,g){typeof l.ref=="string"&&Zn.current}function qi(l,g){{var b=function(){Qn||(Qn=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",g))};b.isReactWarning=!0,Object.defineProperty(l,"key",{get:b,configurable:!0})}}function zi(l,g){{var b=function(){er||(er=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",g))};b.isReactWarning=!0,Object.defineProperty(l,"ref",{get:b,configurable:!0})}}var Ji=function(l,g,b,x,k,L,C){var R={$$typeof:t,type:l,key:g,ref:b,props:C,_owner:L};return R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(R,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(R,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R};function Ki(l,g,b,x,k){{var L,C={},R=null,K=null;b!==void 0&&(Gn(b),R=""+b),Yi(g)&&(Gn(g.key),R=""+g.key),Wi(g)&&(K=g.ref,Ui(g,k));for(L in g)nt.call(g,L)&&!Ni.hasOwnProperty(L)&&(C[L]=g[L]);if(l&&l.defaultProps){var V=l.defaultProps;for(L in V)C[L]===void 0&&(C[L]=V[L])}if(R||K){var N=typeof l=="function"?l.displayName||l.name||"Unknown":l;R&&qi(C,N),K&&zi(C,N)}return Ji(l,R,K,k,x,Zn.current,C)}}var $t=_.ReactCurrentOwner,tr=_.ReactDebugCurrentFrame;function ze(l){if(l){var g=l._owner,b=wt(l.type,l._source,g?g.type:null);tr.setExtraStackFrame(b)}else tr.setExtraStackFrame(null)}var Xt;Xt=!1;function Gt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function nr(){{if($t.current){var l=M($t.current.type);if(l)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+l+"`."}return""}}function $i(l){return""}var rr={};function Xi(l){{var g=nr();if(!g){var b=typeof l=="string"?l:l.displayName||l.name;b&&(g=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+b+">.")}return g}}function or(l,g){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var b=Xi(g);if(rr[b])return;rr[b]=!0;var x="";l&&l._owner&&l._owner!==$t.current&&(x=" It was passed a child from "+M(l._owner.type)+"."),ze(l),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',b,x),ze(null)}}function ir(l,g){{if(typeof l!="object")return;if(Kt(l))for(var b=0;b<l.length;b++){var x=l[b];Gt(x)&&or(x,g)}else if(Gt(l))l._store&&(l._store.validated=!0);else if(l){var k=S(l);if(typeof k=="function"&&k!==l.entries)for(var L=k.call(l),C;!(C=L.next()).done;)Gt(C.value)&&or(C.value,g)}}}function Gi(l){{var g=l.type;if(g==null||typeof g=="string")return;var b;if(typeof g=="function")b=g.propTypes;else if(typeof g=="object"&&(g.$$typeof===a||g.$$typeof===d))b=g.propTypes;else return;if(b){var x=M(g);ji(b,l.props,"prop",x,l)}else if(g.PropTypes!==void 0&&!Xt){Xt=!0;var k=M(g);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof g.getDefaultProps=="function"&&!g.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zi(l){{for(var g=Object.keys(l.props),b=0;b<g.length;b++){var x=g[b];if(x!=="children"&&x!=="key"){ze(l),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),ze(null);break}}l.ref!==null&&(ze(l),E("Invalid attribute `ref` supplied to `React.Fragment`."),ze(null))}}var sr={};function lr(l,g,b,x,k,L){{var C=m(l);if(!C){var R="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var K=$i();K?R+=K:R+=nr();var V;l===null?V="null":Kt(l)?V="array":l!==void 0&&l.$$typeof===t?(V="<"+(M(l.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):V=typeof l,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",V,R)}var N=Ki(l,g,b,k,L);if(N==null)return N;if(C){var ne=g.children;if(ne!==void 0)if(x)if(Kt(ne)){for(var Je=0;Je<ne.length;Je++)ir(ne[Je],l);Object.freeze&&Object.freeze(ne)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ir(ne,l)}if(nt.call(g,"key")){var Fe=M(l),X=Object.keys(g).filter(function(os){return os!=="key"}),Zt=X.length>0?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}";if(!sr[Fe+Zt]){var rs=X.length>0?"{"+X.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
|
|
1
|
+
(function(J,re){typeof exports=="object"&&typeof module<"u"?re(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],re):(J=typeof globalThis<"u"?globalThis:J||self,re(J.ReactShepherd={},J.React))})(this,(function(J,re){"use strict";var be={exports:{}},me={};var Ze;function kt(){if(Ze)return me;Ze=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var l=null;if(i!==void 0&&(l=""+i),o.key!==void 0&&(l=""+o.key),"key"in o){i={};for(var s in o)s!=="key"&&(i[s]=o[s])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:i}}return me.Fragment=t,me.jsx=n,me.jsxs=n,me}var ge={};var Qe;function Ct(){return Qe||(Qe=1,process.env.NODE_ENV!=="production"&&(function(){function e(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===_?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case f:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case T:return"Suspense";case k:return"SuspenseList";case w:return"Activity"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case h:return"Portal";case O:return c.displayName||"Context";case x:return(c._context.displayName||"Context")+".Consumer";case P:var R=c.render;return c=c.displayName,c||(c=R.displayName||R.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case A:return R=c.displayName||null,R!==null?R:e(c.type)||"Memo";case E:R=c._payload,c=c._init;try{return e(c(R))}catch{}}return null}function t(c){return""+c}function n(c){try{t(c);var R=!1}catch{R=!0}if(R){R=console;var j=R.error,I=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return j.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",I),t(c)}}function r(c){if(c===f)return"<>";if(typeof c=="object"&&c!==null&&c.$$typeof===E)return"<...>";try{var R=e(c);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function o(){var c=S.A;return c===null?null:c.getOwner()}function i(){return Error("react-stack-top-frame")}function l(c){if(C.call(c,"key")){var R=Object.getOwnPropertyDescriptor(c,"key").get;if(R&&R.isReactWarning)return!1}return c.key!==void 0}function s(c,R){function j(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",R))}j.isReactWarning=!0,Object.defineProperty(c,"key",{get:j,configurable:!0})}function a(){var c=e(this.type);return $[c]||($[c]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),c=this.props.ref,c!==void 0?c:null}function u(c,R,j,I,Le,Xe){var F=j.ref;return c={$$typeof:g,type:c,key:R,props:j,_owner:I},(F!==void 0?F:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:a}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(c,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Le}),Object.defineProperty(c,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Xe}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function p(c,R,j,I,Le,Xe){var F=R.children;if(F!==void 0)if(I)if(M(F)){for(I=0;I<F.length;I++)d(F[I]);Object.freeze&&Object.freeze(F)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(F);if(C.call(R,"key")){F=e(c);var pe=Object.keys(R).filter(function(Tn){return Tn!=="key"});I=0<pe.length?"{key: someKey, "+pe.join(": ..., ")+": ...}":"{key: someKey}",q[F+I]||(pe=0<pe.length?"{"+pe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
26
2
|
let props = %s;
|
|
27
3
|
<%s {...props} />
|
|
28
4
|
React keys must be passed directly to JSX without using spread:
|
|
29
5
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Zt,Fe,rs,Fe),sr[Fe+Zt]=!0}}return l===r?Zi(N):Gi(N),N}}function Qi(l,g,b){return lr(l,g,b,!0)}function es(l,g,b){return lr(l,g,b,!1)}var ts=es,ns=Qi;$e.Fragment=r,$e.jsx=ts,$e.jsxs=ns}()),$e}var tn;function ur(){return tn||(tn=1,process.env.NODE_ENV==="production"?rt.exports=cr():rt.exports=ar()),rt.exports}var fr=ur();/*! shepherd.js 14.5.1 */function dr(e){return e instanceof Element}function Me(e){return e instanceof HTMLElement}function ye(e){return typeof e=="function"}function Xe(e){return typeof e=="string"}function q(e){return e===void 0}class Et{on(t,n,r,o=!1){var i;return q(this.bindings)&&(this.bindings={}),q(this.bindings[t])&&(this.bindings[t]=[]),(i=this.bindings[t])==null||i.push({handler:n,ctx:r,once:o}),this}once(t,n,r){return this.on(t,n,r,!0)}off(t,n){if(q(this.bindings)||q(this.bindings[t]))return this;if(q(n))delete this.bindings[t];else{var r;(r=this.bindings[t])==null||r.forEach((o,i)=>{if(o.handler===n){var s;(s=this.bindings[t])==null||s.splice(i,1)}})}return this}trigger(t,...n){if(!q(this.bindings)&&this.bindings[t]){var r;(r=this.bindings[t])==null||r.forEach((o,i)=>{const{ctx:s,handler:c,once:a}=o,u=s||this;if(c.apply(u,n),a){var h;(h=this.bindings[t])==null||h.splice(i,1)}})}return this}}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(null,arguments)}function xt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const we={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};we.defaultMerge;function hr(e,t){return t}function pr(e,t){return e.filter(n=>n!==void 0)}var nn;(function(e){e[e.NOT=0]="NOT",e[e.RECORD=1]="RECORD",e[e.ARRAY=2]="ARRAY",e[e.SET=3]="SET",e[e.MAP=4]="MAP",e[e.OTHER=5]="OTHER"})(nn||(nn={}));function rn(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:br(e)?1:e instanceof Set?3:e instanceof Map?4:5}function gr(e){const t=new Set;for(const n of e)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(r);return t}function mr(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function on(e){return{*[Symbol.iterator](){for(const t of e)for(const n of t)yield n}}}const sn=new Set(["[object Object]","[object Module]"]);function br(e){if(!sn.has(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const n=t.prototype;return!(n===null||typeof n!="object"||!sn.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function vr(e,t,n){const r={};for(const o of gr(e)){const i=[];for(const a of e)mr(a,o)&&i.push(a[o]);if(i.length===0)continue;const s=t.metaDataUpdater(n,{key:o,parents:e}),c=ln(i,t,s);c!==we.skip&&(o==="__proto__"?Object.defineProperty(r,o,{value:c,configurable:!0,enumerable:!0,writable:!0}):r[o]=c)}return r}function yr(e){return e.flat()}function wr(e){return new Set(on(e))}function _r(e){return new Map(on(e))}function Er(e){return e.at(-1)}const ot={mergeRecords:vr,mergeArrays:yr,mergeSets:wr,mergeMaps:_r,mergeOthers:Er};function St(...e){return xr({})(...e)}function xr(e,t){const n=Sr(e,r);function r(...o){return ln(o,n,t)}return r}function Sr(e,t){var n,r,o;return{defaultMergeFunctions:ot,mergeFunctions:$({},ot,Object.fromEntries(Object.entries(e).filter(([i,s])=>Object.hasOwn(ot,i)).map(([i,s])=>s===!1?[i,ot.mergeOthers]:[i,s]))),metaDataUpdater:(n=e.metaDataUpdater)!=null?n:hr,deepmerge:t,useImplicitDefaultMerging:(r=e.enableImplicitDefaultMerging)!=null?r:!1,filterValues:e.filterValues===!1?void 0:(o=e.filterValues)!=null?o:pr,actions:we}}function ln(e,t,n){var r;const o=(r=t.filterValues==null?void 0:t.filterValues(e,n))!=null?r:e;if(o.length===0)return;if(o.length===1)return Ot(o,t,n);const i=rn(o[0]);if(i!==0&&i!==5){for(let s=1;s<o.length;s++)if(rn(o[s])!==i)return Ot(o,t,n)}switch(i){case 1:return Or(o,t,n);case 2:return Tr(o,t,n);case 3:return Rr(o,t,n);case 4:return Ar(o,t,n);default:return Ot(o,t,n)}}function Or(e,t,n){const r=t.mergeFunctions.mergeRecords(e,t,n);return r===we.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):r}function Tr(e,t,n){const r=t.mergeFunctions.mergeArrays(e,t,n);return r===we.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):r}function Rr(e,t,n){const r=t.mergeFunctions.mergeSets(e,t,n);return r===we.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):r}function Ar(e,t,n){const r=t.mergeFunctions.mergeMaps(e,t,n);return r===we.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):r}function Ot(e,t,n){const r=t.mergeFunctions.mergeOthers(e,t,n);return r===we.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}function Tt(e){const t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){const r=t[n],o=e[r];r!=="constructor"&&typeof o=="function"&&(e[r]=o.bind(e))}return e}function Cr(e,t){return n=>{if(e.isOpen()){const r=e.el&&n.currentTarget===e.el;(!q(t)&&n.currentTarget.matches(t)||r)&&e.tour.next()}}}function Pr(e){const{event:t,selector:n}=e.options.advanceOn||{};if(t){const r=Cr(e,n);let o=null;if(!q(n)&&(o=document.querySelector(n),!o))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);o?(o.addEventListener(t,r),e.on("destroy",()=>o.removeEventListener(t,r))):(document.body.addEventListener(t,r,!0),e.on("destroy",()=>document.body.removeEventListener(t,r,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class kr{constructor(t){}}class Ir{constructor(t,n){}}function cn(e){return!Xe(e)||e===""?"":e.charAt(e.length-1)!=="-"?`${e}-`:e}function Dr(e){const t=e.options.attachTo||{},n=Object.assign({},t);if(ye(n.element)&&(n.element=n.element.call(e)),Xe(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${t.element}`)}return n}function Fr(e){return e.options.extraHighlights?e.options.extraHighlights.flatMap(t=>Array.from(document.querySelectorAll(t))):[]}function an(e){return e==null?!0:!e.element||!e.on}function un(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t=="x"?n:n&3|8).toString(16)})}const Mr=["top","right","bottom","left"],fn=["start","end"],dn=Mr.reduce((e,t)=>e.concat(t,t+"-"+fn[0],t+"-"+fn[1]),[]),Le=Math.min,Se=Math.max,it=Math.round,st=Math.floor,ae=e=>({x:e,y:e}),Lr={left:"right",right:"left",bottom:"top",top:"bottom"},jr={start:"end",end:"start"};function Rt(e,t,n){return Se(e,Le(t,n))}function Oe(e,t){return typeof e=="function"?e(t):e}function he(e){return e.split("-")[0]}function pe(e){return e.split("-")[1]}function At(e){return e==="x"?"y":"x"}function Ct(e){return e==="y"?"height":"width"}function Te(e){return["top","bottom"].includes(he(e))?"y":"x"}function Pt(e){return At(Te(e))}function hn(e,t,n){n===void 0&&(n=!1);const r=pe(e),o=Pt(e),i=Ct(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ct(s)),[s,ct(s)]}function Hr(e){const t=ct(e);return[lt(e),t,lt(t)]}function lt(e){return e.replace(/start|end/g,t=>jr[t])}function Br(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function Vr(e,t,n,r){const o=pe(e);let i=Br(he(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(lt)))),i}function ct(e){return e.replace(/left|right|bottom|top/g,t=>Lr[t])}function Nr(e){return $({top:0,right:0,bottom:0,left:0},e)}function pn(e){return typeof e!="number"?Nr(e):{top:e,right:e,bottom:e,left:e}}function at(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}const Wr=["crossAxis","alignment","allowedPlacements","autoAlignment"],Yr=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Ur=["mainAxis","crossAxis","limiter"];function gn(e,t,n){let{reference:r,floating:o}=e;const i=Te(t),s=Pt(t),c=Ct(s),a=he(t),u=i==="y",h=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[c]/2-o[c]/2;let p;switch(a){case"top":p={x:h,y:r.y-o.height};break;case"bottom":p={x:h,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(pe(t)){case"start":p[s]-=f*(n&&u?-1:1);break;case"end":p[s]+=f*(n&&u?-1:1);break}return p}const qr=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:d}=gn(u,r,a),f=r,p={},y=0;for(let w=0;w<c.length;w++){const{name:S,fn:_}=c[w],{x:E,y:O,data:v,reset:T}=await _({x:h,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});h=E??h,d=O??d,p=$({},p,{[S]:$({},p[S],v)}),T&&y<=50&&(y++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(u=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:h,y:d}=gn(u,f,a)),w=-1)}return{x:h,y:d,placement:f,strategy:o,middlewareData:p}};async function kt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:c,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Oe(t,e),y=pn(p),S=c[f?d==="floating"?"reference":"floating":d],_=at(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:h,strategy:a})),E=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),v=await(i.isElement==null?void 0:i.isElement(O))?await(i.getScale==null?void 0:i.getScale(O))||{x:1,y:1}:{x:1,y:1},T=at(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:O,strategy:a}):E);return{top:(_.top-T.top+y.top)/v.y,bottom:(T.bottom-_.bottom+y.bottom)/v.y,left:(_.left-T.left+y.left)/v.x,right:(T.right-_.right+y.right)/v.x}}const zr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:a}=t,{element:u,padding:h=0}=Oe(e,t)||{};if(u==null)return{};const d=pn(h),f={x:n,y:r},p=Pt(o),y=Ct(p),w=await s.getDimensions(u),S=p==="y",_=S?"top":"left",E=S?"bottom":"right",O=S?"clientHeight":"clientWidth",v=i.reference[y]+i.reference[p]-f[p]-i.floating[y],T=f[p]-i.reference[p],j=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let D=j?j[O]:0;(!D||!await(s.isElement==null?void 0:s.isElement(j)))&&(D=c.floating[O]||i.floating[y]);const U=v/2-T/2,W=D/2-w[y]/2-1,m=Le(d[_],W),P=Le(d[E],W),A=m,M=D-w[y]-P,H=D/2-w[y]/2+U,Y=Rt(A,H,M),te=!a.arrow&&pe(o)!=null&&H!==Y&&i.reference[y]/2-(H<A?m:P)-w[y]/2<0,z=te?H<A?H-A:H-M:0;return{[p]:f[p]+z,data:$({[p]:Y,centerOffset:H-Y-z},te&&{alignmentOffset:z}),reset:te}}});function Jr(e,t,n){return(e?[...n.filter(o=>pe(o)===e),...n.filter(o=>pe(o)!==e)]:n.filter(o=>he(o)===o)).filter(o=>e?pe(o)===e||(t?lt(o)!==o:!1):!0)}const Kr=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(n){var r,o,i;const{rects:s,middlewareData:c,placement:a,platform:u,elements:h}=n,d=Oe(t,n),{crossAxis:f=!1,alignment:p,allowedPlacements:y=dn,autoAlignment:w=!0}=d,S=xt(d,Wr),_=p!==void 0||y===dn?Jr(p||null,w,y):y,E=await kt(n,S),O=((r=c.autoPlacement)==null?void 0:r.index)||0,v=_[O];if(v==null)return{};const T=hn(v,s,await(u.isRTL==null?void 0:u.isRTL(h.floating)));if(a!==v)return{reset:{placement:_[0]}};const j=[E[he(v)],E[T[0]],E[T[1]]],D=[...((o=c.autoPlacement)==null?void 0:o.overflows)||[],{placement:v,overflows:j}],U=_[O+1];if(U)return{data:{index:O+1,overflows:D},reset:{placement:U}};const W=D.map(A=>{const M=pe(A.placement);return[A.placement,M&&f?A.overflows.slice(0,2).reduce((H,Y)=>H+Y,0):A.overflows[0],A.overflows]}).sort((A,M)=>A[1]-M[1]),P=((i=W.filter(A=>A[2].slice(0,pe(A[0])?2:3).every(M=>M<=0))[0])==null?void 0:i[0])||W[0][0];return P!==a?{data:{index:O+1,overflows:D},reset:{placement:P}}:{}}}},$r=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,o;const{placement:i,middlewareData:s,rects:c,initialPlacement:a,platform:u,elements:h}=n,d=Oe(t,n),{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:_=!0}=d,E=xt(d,Yr);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const O=he(i),v=Te(a),T=he(a)===a,j=await(u.isRTL==null?void 0:u.isRTL(h.floating)),D=y||(T||!_?[ct(a)]:Hr(a)),U=S!=="none";!y&&U&&D.push(...Vr(a,_,S,j));const W=[a,...D],m=await kt(n,E),P=[];let A=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&P.push(m[O]),p){const z=hn(i,c,j);P.push(m[z[0]],m[z[1]])}if(A=[...A,{placement:i,overflows:P}],!P.every(z=>z<=0)){var M,H;const z=(((M=s.flip)==null?void 0:M.index)||0)+1,De=W[z];if(De){var Y;const J=p==="alignment"?v!==Te(De):!1,Q=((Y=A[0])==null?void 0:Y.overflows[0])>0;if(!J||Q)return{data:{index:z,overflows:A},reset:{placement:De}}}let se=(H=A.filter(J=>J.overflows[0]<=0).sort((J,Q)=>J.overflows[1]-Q.overflows[1])[0])==null?void 0:H.placement;if(!se)switch(w){case"bestFit":{var te;const J=(te=A.filter(Q=>{if(U){const le=Te(Q.placement);return le===v||le==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(le=>le>0).reduce((le,bt)=>le+bt,0)]).sort((Q,le)=>Q[1]-le[1])[0])==null?void 0:te[0];J&&(se=J);break}case"initialPlacement":se=a;break}if(i!==se)return{reset:{placement:se}}}return{}}}},Xr=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:o,placement:i}=n,s=Oe(t,n),{mainAxis:c=!0,crossAxis:a=!1,limiter:u={fn:E=>{let{x:O,y:v}=E;return{x:O,y:v}}}}=s,h=xt(s,Ur),d={x:r,y:o},f=await kt(n,h),p=Te(he(i)),y=At(p);let w=d[y],S=d[p];if(c){const E=y==="y"?"top":"left",O=y==="y"?"bottom":"right",v=w+f[E],T=w-f[O];w=Rt(v,w,T)}if(a){const E=p==="y"?"top":"left",O=p==="y"?"bottom":"right",v=S+f[E],T=S-f[O];S=Rt(v,S,T)}const _=u.fn($({},n,{[y]:w,[p]:S}));return $({},_,{data:{x:_.x-r,y:_.y-o,enabled:{[y]:c,[p]:a}}})}}},Gr=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:r,y:o,placement:i,rects:s,middlewareData:c}=n,{offset:a=0,mainAxis:u=!0,crossAxis:h=!0}=Oe(t,n),d={x:r,y:o},f=Te(i),p=At(f);let y=d[p],w=d[f];const S=Oe(a,n),_=typeof S=="number"?{mainAxis:S,crossAxis:0}:$({mainAxis:0,crossAxis:0},S);if(u){const v=p==="y"?"height":"width",T=s.reference[p]-s.floating[v]+_.mainAxis,j=s.reference[p]+s.reference[v]-_.mainAxis;y<T?y=T:y>j&&(y=j)}if(h){var E,O;const v=p==="y"?"width":"height",T=["top","left"].includes(he(i)),j=s.reference[f]-s.floating[v]+(T&&((E=c.offset)==null?void 0:E[f])||0)+(T?0:_.crossAxis),D=s.reference[f]+s.reference[v]+(T?0:((O=c.offset)==null?void 0:O[f])||0)-(T?_.crossAxis:0);w<j?w=j:w>D&&(w=D)}return{[p]:y,[f]:w}}}};function ut(){return typeof window<"u"}function je(e){return mn(e)?(e.nodeName||"").toLowerCase():"#document"}function G(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ue(e){var t;return(t=(mn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mn(e){return ut()?e instanceof Node||e instanceof G(e).Node:!1}function re(e){return ut()?e instanceof Element||e instanceof G(e).Element:!1}function fe(e){return ut()?e instanceof HTMLElement||e instanceof G(e).HTMLElement:!1}function bn(e){return!ut()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof G(e).ShadowRoot}function Ge(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Zr(e){return["table","td","th"].includes(je(e))}function ft(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function It(e){const t=Dt(),n=re(e)?oe(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Qr(e){let t=_e(e);for(;fe(t)&&!He(t);){if(It(t))return t;if(ft(t))return null;t=_e(t)}return null}function Dt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function He(e){return["html","body","#document"].includes(je(e))}function oe(e){return G(e).getComputedStyle(e)}function dt(e){return re(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _e(e){if(je(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bn(e)&&e.host||ue(e);return bn(t)?t.host:t}function vn(e){const t=_e(e);return He(t)?e.ownerDocument?e.ownerDocument.body:e.body:fe(t)&&Ge(t)?t:vn(t)}function Ze(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=vn(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=G(o);if(i){const c=Ft(s);return t.concat(s,s.visualViewport||[],Ge(o)?o:[],c&&n?Ze(c):[])}return t.concat(o,Ze(o,[],n))}function Ft(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yn(e){const t=oe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=fe(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=it(n)!==i||it(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function Mt(e){return re(e)?e:e.contextElement}function Be(e){const t=Mt(e);if(!fe(t))return ae(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=yn(t);let s=(i?it(n.width):n.width)/r,c=(i?it(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const eo=ae(0);function wn(e){const t=G(e);return!Dt()||!t.visualViewport?eo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function to(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==G(e)?!1:t}function Re(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Mt(e);let s=ae(1);t&&(r?re(r)&&(s=Be(r)):s=Be(e));const c=to(i,n,r)?wn(i):ae(0);let a=(o.left+c.x)/s.x,u=(o.top+c.y)/s.y,h=o.width/s.x,d=o.height/s.y;if(i){const f=G(i),p=r&&re(r)?G(r):r;let y=f,w=Ft(y);for(;w&&r&&p!==y;){const S=Be(w),_=w.getBoundingClientRect(),E=oe(w),O=_.left+(w.clientLeft+parseFloat(E.paddingLeft))*S.x,v=_.top+(w.clientTop+parseFloat(E.paddingTop))*S.y;a*=S.x,u*=S.y,h*=S.x,d*=S.y,a+=O,u+=v,y=G(w),w=Ft(y)}}return at({width:h,height:d,x:a,y:u})}function Lt(e,t){const n=dt(e).scrollLeft;return t?t.left+n:Re(ue(e)).left+n}function _n(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Lt(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function no(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ue(r),c=t?ft(t.floating):!1;if(r===s||c&&i)return n;let a={scrollLeft:0,scrollTop:0},u=ae(1);const h=ae(0),d=fe(r);if((d||!d&&!i)&&((je(r)!=="body"||Ge(s))&&(a=dt(r)),fe(r))){const p=Re(r);u=Be(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}const f=s&&!d&&!i?_n(s,a,!0):ae(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+h.x+f.x,y:n.y*u.y-a.scrollTop*u.y+h.y+f.y}}function ro(e){return Array.from(e.getClientRects())}function oo(e){const t=ue(e),n=dt(e),r=e.ownerDocument.body,o=Se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Lt(e);const c=-n.scrollTop;return oe(r).direction==="rtl"&&(s+=Se(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:c}}function io(e,t){const n=G(e),r=ue(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,c=0,a=0;if(o){i=o.width,s=o.height;const u=Dt();(!u||u&&t==="fixed")&&(c=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:c,y:a}}function so(e,t){const n=Re(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=fe(e)?Be(e):ae(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:c,x:a,y:u}}function En(e,t,n){let r;if(t==="viewport")r=io(e,n);else if(t==="document")r=oo(ue(e));else if(re(t))r=so(t,n);else{const o=wn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return at(r)}function xn(e,t){const n=_e(e);return n===t||!re(n)||He(n)?!1:oe(n).position==="fixed"||xn(n,t)}function lo(e,t){const n=t.get(e);if(n)return n;let r=Ze(e,[],!1).filter(c=>re(c)&&je(c)!=="body"),o=null;const i=oe(e).position==="fixed";let s=i?_e(e):e;for(;re(s)&&!He(s);){const c=oe(s),a=It(s);!a&&c.position==="fixed"&&(o=null),(i?!a&&!o:!a&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ge(s)&&!a&&xn(e,s))?r=r.filter(h=>h!==s):o=c,s=_e(s)}return t.set(e,r),r}function co(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?ft(t)?[]:lo(t,this._c):[].concat(n),r],c=s[0],a=s.reduce((u,h)=>{const d=En(t,h,o);return u.top=Se(d.top,u.top),u.right=Le(d.right,u.right),u.bottom=Le(d.bottom,u.bottom),u.left=Se(d.left,u.left),u},En(t,c,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function ao(e){const{width:t,height:n}=yn(e);return{width:t,height:n}}function uo(e,t,n){const r=fe(t),o=ue(t),i=n==="fixed",s=Re(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const a=ae(0);function u(){a.x=Lt(o)}if(r||!r&&!i)if((je(t)!=="body"||Ge(o))&&(c=dt(t)),r){const p=Re(t,!0,i,t);a.x=p.x+t.clientLeft,a.y=p.y+t.clientTop}else o&&u();i&&!r&&o&&u();const h=o&&!r&&!i?_n(o,c):ae(0),d=s.left+c.scrollLeft-a.x-h.x,f=s.top+c.scrollTop-a.y-h.y;return{x:d,y:f,width:s.width,height:s.height}}function jt(e){return oe(e).position==="static"}function Sn(e,t){if(!fe(e)||oe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ue(e)===n&&(n=n.ownerDocument.body),n}function On(e,t){const n=G(e);if(ft(e))return n;if(!fe(e)){let o=_e(e);for(;o&&!He(o);){if(re(o)&&!jt(o))return o;o=_e(o)}return n}let r=Sn(e,t);for(;r&&Zr(r)&&jt(r);)r=Sn(r,t);return r&&He(r)&&jt(r)&&!It(r)?n:r||Qr(e)||n}const fo=async function(t){const n=this.getOffsetParent||On,r=this.getDimensions,o=await r(t.floating);return{reference:uo(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ho(e){return oe(e).direction==="rtl"}const po={convertOffsetParentRelativeRectToViewportRelativeRect:no,getDocumentElement:ue,getClippingRect:co,getOffsetParent:On,getElementRects:fo,getClientRects:ro,getDimensions:ao,getScale:Be,isElement:re,isRTL:ho};function Tn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function go(e,t){let n=null,r;const o=ue(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:h,top:d,width:f,height:p}=u;if(c||t(),!f||!p)return;const y=st(d),w=st(o.clientWidth-(h+f)),S=st(o.clientHeight-(d+p)),_=st(h),O={rootMargin:-y+"px "+-w+"px "+-S+"px "+-_+"px",threshold:Se(0,Le(1,a))||1};let v=!0;function T(j){const D=j[0].intersectionRatio;if(D!==a){if(!v)return s();D?s(!1,D):r=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!Tn(u,e.getBoundingClientRect())&&s(),v=!1}try{n=new IntersectionObserver(T,$({},O,{root:o.ownerDocument}))}catch{n=new IntersectionObserver(T,O)}n.observe(e)}return s(!0),i}function mo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Mt(e),h=o||i?[...u?Ze(u):[],...Ze(t)]:[];h.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),i&&_.addEventListener("resize",n)});const d=u&&c?go(u,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(_=>{let[E]=_;E&&E.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var O;(O=p)==null||O.observe(t)})),n()}),u&&!a&&p.observe(u),p.observe(t));let y,w=a?Re(e):null;a&&S();function S(){const _=Re(e);w&&!Tn(w,_)&&n(),w=_,y=requestAnimationFrame(S)}return n(),()=>{var _;h.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),d==null||d(),(_=p)==null||_.disconnect(),p=null,a&&cancelAnimationFrame(y)}}const bo=Kr,vo=Xr,yo=$r,wo=zr,_o=Gr,Eo=(e,t,n)=>{const r=new Map,o=$({platform:po},n),i=$({},o.platform,{_c:r});return qr(e,t,$({},o,{platform:i}))};function xo(e){e.cleanup&&e.cleanup();const t=e._getResolvedAttachToOptions();let n=t.element;const r=Co(t,e),o=an(t);return o&&(n=document.body,e.shepherdElementComponent.getElement().classList.add("shepherd-centered")),e.cleanup=mo(n,e.el,()=>{if(!e.el){e.cleanup==null||e.cleanup();return}To(n,e,r,o)}),e.target=t.element,r}function So(e,t){return{floatingUIOptions:St(e.floatingUIOptions||{},t.floatingUIOptions||{})}}function Oo(e){e.cleanup&&e.cleanup(),e.cleanup=null}function To(e,t,n,r){return Eo(e,t.el,n).then(Ro(t,r)).then(o=>new Promise(i=>{setTimeout(()=>i(o),300)})).then(o=>{o!=null&&o.el&&(o.el.tabIndex=0,o.el.focus({preventScroll:!0}))})}function Ro(e,t){return({x:n,y:r,placement:o,middlewareData:i})=>(e.el&&(t?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:`${n}px`,top:`${r}px`}),e.el.dataset.popperPlacement=o,Ao(e.el,i)),e)}function Ao(e,t){const n=e.querySelector(".shepherd-arrow");if(Me(n)&&t.arrow){const{x:r,y:o}=t.arrow;Object.assign(n.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:""})}}function Co(e,t){var n,r,o;const i={strategy:"absolute"};i.middleware=[];const s=Po(t),c=an(e),a=(n=e.on)==null?void 0:n.includes("auto"),u=(e==null||(r=e.on)==null?void 0:r.includes("-start"))||(e==null||(o=e.on)==null?void 0:o.includes("-end"));if(!c){if(a){var h;i.middleware.push(bo({crossAxis:!0,alignment:u?e==null||(h=e.on)==null?void 0:h.split("-").pop():null}))}else i.middleware.push(yo());if(i.middleware.push(vo({limiter:_o(),crossAxis:!0})),s){const d=typeof t.options.arrow=="object"?t.options.arrow:{padding:4};i.middleware.push(wo({element:s,padding:u?d.padding:0}))}a||(i.placement=e.on)}return St(i,t.options.floatingUIOptions||{})}function Po(e){return e.options.arrow&&e.el?e.el.querySelector(".shepherd-arrow"):!1}function Z(){}function ko(e,t){for(const n in t)e[n]=t[n];return e}function Rn(e){return e()}function An(){return Object.create(null)}function Qe(e){e.forEach(Rn)}function Ht(e){return typeof e=="function"}function ge(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Io(e){return Object.keys(e).length===0}function Ve(e,t){e.appendChild(t)}function ie(e,t,n){e.insertBefore(t,n||null)}function ee(e){e.parentNode&&e.parentNode.removeChild(e)}function Do(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function de(e){return document.createElement(e)}function Cn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Pn(e){return document.createTextNode(e)}function ht(){return Pn(" ")}function Fo(){return Pn("")}function pt(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function F(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const Mo=["width","height"];function kn(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&Mo.indexOf(r)===-1?e[r]=t[r]:F(e,r,t[r])}function Lo(e){return Array.from(e.childNodes)}function Ne(e,t,n){e.classList.toggle(t,!!n)}let et;function tt(e){et=e}function Bt(){if(!et)throw new Error("Function called outside component initialization");return et}function jo(e){Bt().$$.on_mount.push(e)}function Vt(e){Bt().$$.after_update.push(e)}function Ho(e){Bt().$$.on_destroy.push(e)}const We=[],Ye=[];let Ue=[];const In=[],Bo=Promise.resolve();let Nt=!1;function Vo(){Nt||(Nt=!0,Bo.then(Dn))}function Wt(e){Ue.push(e)}const Yt=new Set;let qe=0;function Dn(){if(qe!==0)return;const e=et;do{try{for(;qe<We.length;){const t=We[qe];qe++,tt(t),No(t.$$)}}catch(t){throw We.length=0,qe=0,t}for(tt(null),We.length=0,qe=0;Ye.length;)Ye.pop()();for(let t=0;t<Ue.length;t+=1){const n=Ue[t];Yt.has(n)||(Yt.add(n),n())}Ue.length=0}while(We.length);for(;In.length;)In.pop()();Nt=!1,Yt.clear(),tt(e)}function No(e){if(e.fragment!==null){e.update(),Qe(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Wt)}}function Wo(e){const t=[],n=[];Ue.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ue=t}const gt=new Set;let Ae;function Ce(){Ae={r:0,c:[],p:Ae}}function Pe(){Ae.r||Qe(Ae.c),Ae=Ae.p}function I(e,t){e&&e.i&&(gt.delete(e),e.i(t))}function B(e,t,n,r){if(e&&e.o){if(gt.has(e))return;gt.add(e),Ae.c.push(()=>{gt.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Fn(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Yo(e,t){const n={},r={},o={$$scope:1};let i=e.length;for(;i--;){const s=e[i],c=t[i];if(c){for(const a in s)a in c||(r[a]=1);for(const a in c)o[a]||(n[a]=c[a],o[a]=1);e[i]=c}else for(const a in s)o[a]=1}for(const s in r)s in n||(n[s]=void 0);return n}function ke(e){e&&e.c()}function Ee(e,t,n){const{fragment:r,after_update:o}=e.$$;r&&r.m(t,n),Wt(()=>{const i=e.$$.on_mount.map(Rn).filter(Ht);e.$$.on_destroy?e.$$.on_destroy.push(...i):Qe(i),e.$$.on_mount=[]}),o.forEach(Wt)}function xe(e,t){const n=e.$$;n.fragment!==null&&(Wo(n.after_update),Qe(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Uo(e,t){e.$$.dirty[0]===-1&&(We.push(e),Vo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function me(e,t,n,r,o,i,s=null,c=[-1]){const a=et;tt(e);const u=e.$$={fragment:null,ctx:[],props:i,update:Z,not_equal:o,bound:An(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:An(),dirty:c,skip_bound:!1,root:t.target||a.$$.root};s&&s(u.root);let h=!1;if(u.ctx=n?n(e,t.props||{},(d,f,...p)=>{const y=p.length?p[0]:f;return u.ctx&&o(u.ctx[d],u.ctx[d]=y)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](y),h&&Uo(e,d)),f}):[],u.update(),h=!0,Qe(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const d=Lo(t.target);u.fragment&&u.fragment.l(d),d.forEach(ee)}else u.fragment&&u.fragment.c();t.intro&&I(e.$$.fragment),Ee(e,t.target,t.anchor),Dn()}tt(a)}class be{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){xe(this,1),this.$destroy=Z}$on(t,n){if(!Ht(n))return Z;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(t){this.$$set&&!Io(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const qo="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qo);function zo(e){let t,n,r,o,i;return{c(){t=de("button"),F(t,"aria-label",n=e[3]?e[3]:null),F(t,"class",r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`),t.disabled=e[2],F(t,"tabindex","0"),F(t,"type","button")},m(s,c){ie(s,t,c),t.innerHTML=e[5],o||(i=pt(t,"click",function(){Ht(e[0])&&e[0].apply(this,arguments)}),o=!0)},p(s,[c]){e=s,c&32&&(t.innerHTML=e[5]),c&8&&n!==(n=e[3]?e[3]:null)&&F(t,"aria-label",n),c&18&&r!==(r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`)&&F(t,"class",r),c&4&&(t.disabled=e[2])},i:Z,o:Z,d(s){s&&ee(t),o=!1,i()}}}function Jo(e,t,n){let{config:r,step:o}=t,i,s,c,a,u,h;function d(f){return ye(f)?f=f.call(o):f}return e.$$set=f=>{"config"in f&&n(6,r=f.config),"step"in f&&n(7,o=f.step)},e.$$.update=()=>{e.$$.dirty&192&&(n(0,i=r.action?r.action.bind(o.tour):null),n(1,s=r.classes),n(2,c=r.disabled?d(r.disabled):!1),n(3,a=r.label?d(r.label):null),n(4,u=r.secondary),n(5,h=r.text?d(r.text):null))},[i,s,c,a,u,h,r,o]}class Ko extends be{constructor(t){super(),me(this,t,Jo,zo,ge,{config:6,step:7})}}function Mn(e,t,n){const r=e.slice();return r[2]=t[n],r}function Ln(e){let t,n,r=Fn(e[1]),o=[];for(let s=0;s<r.length;s+=1)o[s]=jn(Mn(e,r,s));const i=s=>B(o[s],1,1,()=>{o[s]=null});return{c(){for(let s=0;s<o.length;s+=1)o[s].c();t=Fo()},m(s,c){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,c);ie(s,t,c),n=!0},p(s,c){if(c&3){r=Fn(s[1]);let a;for(a=0;a<r.length;a+=1){const u=Mn(s,r,a);o[a]?(o[a].p(u,c),I(o[a],1)):(o[a]=jn(u),o[a].c(),I(o[a],1),o[a].m(t.parentNode,t))}for(Ce(),a=r.length;a<o.length;a+=1)i(a);Pe()}},i(s){if(!n){for(let c=0;c<r.length;c+=1)I(o[c]);n=!0}},o(s){o=o.filter(Boolean);for(let c=0;c<o.length;c+=1)B(o[c]);n=!1},d(s){s&&ee(t),Do(o,s)}}}function jn(e){let t,n;return t=new Ko({props:{config:e[2],step:e[0]}}),{c(){ke(t.$$.fragment)},m(r,o){Ee(t,r,o),n=!0},p(r,o){const i={};o&2&&(i.config=r[2]),o&1&&(i.step=r[0]),t.$set(i)},i(r){n||(I(t.$$.fragment,r),n=!0)},o(r){B(t.$$.fragment,r),n=!1},d(r){xe(t,r)}}}function $o(e){let t,n,r=e[1]&&Ln(e);return{c(){t=de("footer"),r&&r.c(),F(t,"class","shepherd-footer")},m(o,i){ie(o,t,i),r&&r.m(t,null),n=!0},p(o,[i]){o[1]?r?(r.p(o,i),i&2&&I(r,1)):(r=Ln(o),r.c(),I(r,1),r.m(t,null)):r&&(Ce(),B(r,1,1,()=>{r=null}),Pe())},i(o){n||(I(r),n=!0)},o(o){B(r),n=!1},d(o){o&&ee(t),r&&r.d()}}}function Xo(e,t,n){let r,{step:o}=t;return e.$$set=i=>{"step"in i&&n(0,o=i.step)},e.$$.update=()=>{e.$$.dirty&1&&n(1,r=o.options.buttons)},[o,r]}class Go extends be{constructor(t){super(),me(this,t,Xo,$o,ge,{step:0})}}function Zo(e){let t,n,r,o,i;return{c(){t=de("button"),n=de("span"),n.textContent="×",F(n,"aria-hidden","true"),F(t,"aria-label",r=e[0].label?e[0].label:"Close Tour"),F(t,"class","shepherd-cancel-icon"),F(t,"type","button")},m(s,c){ie(s,t,c),Ve(t,n),o||(i=pt(t,"click",e[1]),o=!0)},p(s,[c]){c&1&&r!==(r=s[0].label?s[0].label:"Close Tour")&&F(t,"aria-label",r)},i:Z,o:Z,d(s){s&&ee(t),o=!1,i()}}}function Qo(e,t,n){let{cancelIcon:r,step:o}=t;const i=s=>{s.preventDefault(),o.cancel()};return e.$$set=s=>{"cancelIcon"in s&&n(0,r=s.cancelIcon),"step"in s&&n(2,o=s.step)},[r,i,o]}class ei extends be{constructor(t){super(),me(this,t,Qo,Zo,ge,{cancelIcon:0,step:2})}}function ti(e){let t;return{c(){t=de("h3"),F(t,"id",e[1]),F(t,"class","shepherd-title")},m(n,r){ie(n,t,r),e[3](t)},p(n,[r]){r&2&&F(t,"id",n[1])},i:Z,o:Z,d(n){n&&ee(t),e[3](null)}}}function ni(e,t,n){let{labelId:r,element:o,title:i}=t;Vt(()=>{ye(i)&&n(2,i=i()),n(0,o.innerHTML=i,o)});function s(c){Ye[c?"unshift":"push"](()=>{o=c,n(0,o)})}return e.$$set=c=>{"labelId"in c&&n(1,r=c.labelId),"element"in c&&n(0,o=c.element),"title"in c&&n(2,i=c.title)},[o,r,i,s]}class ri extends be{constructor(t){super(),me(this,t,ni,ti,ge,{labelId:1,element:0,title:2})}}function Hn(e){let t,n;return t=new ri({props:{labelId:e[0],title:e[2]}}),{c(){ke(t.$$.fragment)},m(r,o){Ee(t,r,o),n=!0},p(r,o){const i={};o&1&&(i.labelId=r[0]),o&4&&(i.title=r[2]),t.$set(i)},i(r){n||(I(t.$$.fragment,r),n=!0)},o(r){B(t.$$.fragment,r),n=!1},d(r){xe(t,r)}}}function Bn(e){let t,n;return t=new ei({props:{cancelIcon:e[3],step:e[1]}}),{c(){ke(t.$$.fragment)},m(r,o){Ee(t,r,o),n=!0},p(r,o){const i={};o&8&&(i.cancelIcon=r[3]),o&2&&(i.step=r[1]),t.$set(i)},i(r){n||(I(t.$$.fragment,r),n=!0)},o(r){B(t.$$.fragment,r),n=!1},d(r){xe(t,r)}}}function oi(e){let t,n,r,o=e[2]&&Hn(e),i=e[3]&&e[3].enabled&&Bn(e);return{c(){t=de("header"),o&&o.c(),n=ht(),i&&i.c(),F(t,"class","shepherd-header")},m(s,c){ie(s,t,c),o&&o.m(t,null),Ve(t,n),i&&i.m(t,null),r=!0},p(s,[c]){s[2]?o?(o.p(s,c),c&4&&I(o,1)):(o=Hn(s),o.c(),I(o,1),o.m(t,n)):o&&(Ce(),B(o,1,1,()=>{o=null}),Pe()),s[3]&&s[3].enabled?i?(i.p(s,c),c&8&&I(i,1)):(i=Bn(s),i.c(),I(i,1),i.m(t,null)):i&&(Ce(),B(i,1,1,()=>{i=null}),Pe())},i(s){r||(I(o),I(i),r=!0)},o(s){B(o),B(i),r=!1},d(s){s&&ee(t),o&&o.d(),i&&i.d()}}}function ii(e,t,n){let{labelId:r,step:o}=t,i,s;return e.$$set=c=>{"labelId"in c&&n(0,r=c.labelId),"step"in c&&n(1,o=c.step)},e.$$.update=()=>{e.$$.dirty&2&&(n(2,i=o.options.title),n(3,s=o.options.cancelIcon))},[r,o,i,s]}class si extends be{constructor(t){super(),me(this,t,ii,oi,ge,{labelId:0,step:1})}}function li(e){let t;return{c(){t=de("div"),F(t,"class","shepherd-text"),F(t,"id",e[1])},m(n,r){ie(n,t,r),e[3](t)},p(n,[r]){r&2&&F(t,"id",n[1])},i:Z,o:Z,d(n){n&&ee(t),e[3](null)}}}function ci(e,t,n){let{descriptionId:r,element:o,step:i}=t;Vt(()=>{let{text:c}=i.options;ye(c)&&(c=c.call(i)),Me(c)?o.appendChild(c):n(0,o.innerHTML=c,o)});function s(c){Ye[c?"unshift":"push"](()=>{o=c,n(0,o)})}return e.$$set=c=>{"descriptionId"in c&&n(1,r=c.descriptionId),"element"in c&&n(0,o=c.element),"step"in c&&n(2,i=c.step)},[o,r,i,s]}class ai extends be{constructor(t){super(),me(this,t,ci,li,ge,{descriptionId:1,element:0,step:2})}}function Vn(e){let t,n;return t=new si({props:{labelId:e[1],step:e[2]}}),{c(){ke(t.$$.fragment)},m(r,o){Ee(t,r,o),n=!0},p(r,o){const i={};o&2&&(i.labelId=r[1]),o&4&&(i.step=r[2]),t.$set(i)},i(r){n||(I(t.$$.fragment,r),n=!0)},o(r){B(t.$$.fragment,r),n=!1},d(r){xe(t,r)}}}function Nn(e){let t,n;return t=new ai({props:{descriptionId:e[0],step:e[2]}}),{c(){ke(t.$$.fragment)},m(r,o){Ee(t,r,o),n=!0},p(r,o){const i={};o&1&&(i.descriptionId=r[0]),o&4&&(i.step=r[2]),t.$set(i)},i(r){n||(I(t.$$.fragment,r),n=!0)},o(r){B(t.$$.fragment,r),n=!1},d(r){xe(t,r)}}}function Wn(e){let t,n;return t=new Go({props:{step:e[2]}}),{c(){ke(t.$$.fragment)},m(r,o){Ee(t,r,o),n=!0},p(r,o){const i={};o&4&&(i.step=r[2]),t.$set(i)},i(r){n||(I(t.$$.fragment,r),n=!0)},o(r){B(t.$$.fragment,r),n=!1},d(r){xe(t,r)}}}function ui(e){let t,n=!q(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,r,o=!q(e[2].options.text),i,s=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length,c,a=n&&Vn(e),u=o&&Nn(e),h=s&&Wn(e);return{c(){t=de("div"),a&&a.c(),r=ht(),u&&u.c(),i=ht(),h&&h.c(),F(t,"class","shepherd-content")},m(d,f){ie(d,t,f),a&&a.m(t,null),Ve(t,r),u&&u.m(t,null),Ve(t,i),h&&h.m(t,null),c=!0},p(d,[f]){f&4&&(n=!q(d[2].options.title)||d[2].options.cancelIcon&&d[2].options.cancelIcon.enabled),n?a?(a.p(d,f),f&4&&I(a,1)):(a=Vn(d),a.c(),I(a,1),a.m(t,r)):a&&(Ce(),B(a,1,1,()=>{a=null}),Pe()),f&4&&(o=!q(d[2].options.text)),o?u?(u.p(d,f),f&4&&I(u,1)):(u=Nn(d),u.c(),I(u,1),u.m(t,i)):u&&(Ce(),B(u,1,1,()=>{u=null}),Pe()),f&4&&(s=Array.isArray(d[2].options.buttons)&&d[2].options.buttons.length),s?h?(h.p(d,f),f&4&&I(h,1)):(h=Wn(d),h.c(),I(h,1),h.m(t,null)):h&&(Ce(),B(h,1,1,()=>{h=null}),Pe())},i(d){c||(I(a),I(u),I(h),c=!0)},o(d){B(a),B(u),B(h),c=!1},d(d){d&&ee(t),a&&a.d(),u&&u.d(),h&&h.d()}}}function fi(e,t,n){let{descriptionId:r,labelId:o,step:i}=t;return e.$$set=s=>{"descriptionId"in s&&n(0,r=s.descriptionId),"labelId"in s&&n(1,o=s.labelId),"step"in s&&n(2,i=s.step)},[r,o,i]}class di extends be{constructor(t){super(),me(this,t,fi,ui,ge,{descriptionId:0,labelId:1,step:2})}}function Yn(e){let t;return{c(){t=de("div"),F(t,"class","shepherd-arrow"),F(t,"data-popper-arrow","")},m(n,r){ie(n,t,r)},d(n){n&&ee(t)}}}function hi(e){let t,n,r,o,i,s,c,a,u=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on&&Yn();r=new di({props:{descriptionId:e[2],labelId:e[3],step:e[4]}});let h=[{"aria-describedby":o=q(e[4].options.text)?null:e[2]},{"aria-labelledby":i=e[4].options.title?e[3]:null},e[1],{open:"true"}],d={};for(let f=0;f<h.length;f+=1)d=ko(d,h[f]);return{c(){t=de("dialog"),u&&u.c(),n=ht(),ke(r.$$.fragment),kn(t,d),Ne(t,"shepherd-has-cancel-icon",e[5]),Ne(t,"shepherd-has-title",e[6]),Ne(t,"shepherd-element",!0)},m(f,p){ie(f,t,p),u&&u.m(t,null),Ve(t,n),Ee(r,t,null),e[18](t),s=!0,c||(a=pt(t,"keydown",e[7]),c=!0)},p(f,[p]){f[4].options.arrow&&f[4].options.attachTo&&f[4].options.attachTo.element&&f[4].options.attachTo.on?u||(u=Yn(),u.c(),u.m(t,n)):u&&(u.d(1),u=null);const y={};p&4&&(y.descriptionId=f[2]),p&8&&(y.labelId=f[3]),p&16&&(y.step=f[4]),r.$set(y),kn(t,d=Yo(h,[(!s||p&20&&o!==(o=q(f[4].options.text)?null:f[2]))&&{"aria-describedby":o},(!s||p&24&&i!==(i=f[4].options.title?f[3]:null))&&{"aria-labelledby":i},p&2&&f[1],{open:"true"}])),Ne(t,"shepherd-has-cancel-icon",f[5]),Ne(t,"shepherd-has-title",f[6]),Ne(t,"shepherd-element",!0)},i(f){s||(I(r.$$.fragment,f),s=!0)},o(f){B(r.$$.fragment,f),s=!1},d(f){f&&ee(t),u&&u.d(),xe(r),e[18](null),c=!1,a()}}}const pi=9,gi=27,mi=37,bi=39;function Un(e){return e.split(" ").filter(t=>!!t.length)}function vi(e,t,n){let{attachToElement:r,attachTofocusableDialogElements:o,classPrefix:i,element:s,descriptionId:c,focusableAttachToElements:a,firstFocusableAttachToElement:u,lastFocusableAttachToElement:h,firstFocusableDialogElement:d,focusableDialogElements:f,lastFocusableDialogElement:p,labelId:y,step:w,dataStepId:S}=t,_,E,O;const v=()=>s;jo(()=>{n(1,S={[`data-${i}shepherd-step-id`]:w.id}),n(13,f=[...s.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')]),n(12,d=f[0]),n(14,p=f[f.length-1]);const m=w._getResolvedAttachToOptions();m!=null&&m.element&&(n(8,r=m.element),n(8,r.tabIndex=0,r),n(9,a=[r,...r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')]),n(10,u=a[0]),n(11,h=a[a.length-1]),r.addEventListener("keydown",U))}),Ho(()=>{var m;(m=r)==null||m.removeEventListener("keydown",U)}),Vt(()=>{O!==w.options.classes&&T()});function T(){j(O),O=w.options.classes,D(O)}function j(m){if(Xe(m)){const P=Un(m);P.length&&s.classList.remove(...P)}}function D(m){if(Xe(m)){const P=Un(m);P.length&&s.classList.add(...P)}}const U=m=>{const{tour:P}=w;switch(m.keyCode){case pi:if((!a||a.length===0)&&f.length===0){m.preventDefault();break}if(m.shiftKey)if(document.activeElement===d||document.activeElement.classList.contains("shepherd-element")){var A;m.preventDefault(),((A=h)!=null?A:p).focus()}else document.activeElement===u&&(m.preventDefault(),p.focus());else if(document.activeElement===p){var M;m.preventDefault(),((M=u)!=null?M:d).focus()}else document.activeElement===h&&(m.preventDefault(),d.focus());break;case gi:P.options.exitOnEsc&&(m.preventDefault(),m.stopPropagation(),w.cancel());break;case mi:P.options.keyboardNavigation&&(m.preventDefault(),m.stopPropagation(),P.back());break;case bi:P.options.keyboardNavigation&&(m.preventDefault(),m.stopPropagation(),P.next());break}};function W(m){Ye[m?"unshift":"push"](()=>{s=m,n(0,s)})}return e.$$set=m=>{"attachToElement"in m&&n(8,r=m.attachToElement),"attachTofocusableDialogElements"in m&&n(15,o=m.attachTofocusableDialogElements),"classPrefix"in m&&n(16,i=m.classPrefix),"element"in m&&n(0,s=m.element),"descriptionId"in m&&n(2,c=m.descriptionId),"focusableAttachToElements"in m&&n(9,a=m.focusableAttachToElements),"firstFocusableAttachToElement"in m&&n(10,u=m.firstFocusableAttachToElement),"lastFocusableAttachToElement"in m&&n(11,h=m.lastFocusableAttachToElement),"firstFocusableDialogElement"in m&&n(12,d=m.firstFocusableDialogElement),"focusableDialogElements"in m&&n(13,f=m.focusableDialogElements),"lastFocusableDialogElement"in m&&n(14,p=m.lastFocusableDialogElement),"labelId"in m&&n(3,y=m.labelId),"step"in m&&n(4,w=m.step),"dataStepId"in m&&n(1,S=m.dataStepId)},e.$$.update=()=>{e.$$.dirty&16&&(n(5,_=w.options&&w.options.cancelIcon&&w.options.cancelIcon.enabled),n(6,E=w.options&&w.options.title))},[s,S,c,y,w,_,E,U,r,a,u,h,d,f,p,o,i,v,W]}class yi extends be{constructor(t){super(),me(this,t,vi,hi,ge,{attachToElement:8,attachTofocusableDialogElements:15,classPrefix:16,element:0,descriptionId:2,focusableAttachToElements:9,firstFocusableAttachToElement:10,lastFocusableAttachToElement:11,firstFocusableDialogElement:12,focusableDialogElements:13,lastFocusableDialogElement:14,labelId:3,step:4,dataStepId:1,getElement:17})}get getElement(){return this.$$.ctx[17]}}class Ut extends Et{constructor(t,n={}){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=t,this.classPrefix=this.tour.options?cn(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,Tt(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){Oo(this),Me(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var t;(t=this.tour.modal)==null||t.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveExtraHiglightElements(){return this._resolvedExtraHighlightElements=Fr(this),this._resolvedExtraHighlightElements}_resolveAttachToOptions(){return this._resolvedAttachTo=Dr(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return ye(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`,n=`${this.id}-label`;return this.shepherdElementComponent=new yi({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(t){const{element:n}=this._getResolvedAttachToOptions();ye(this.options.scrollToHandler)?this.options.scrollToHandler(n):dr(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(t)}_getClassOptions(t){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,r=t.classes?t.classes:"",o=n&&n.classes?n.classes:"",i=[...r.split(" "),...o.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(t={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=St({},n||{}),this.options=Object.assign({arrow:!0},n,t,So(n,t));const{when:r}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${un()}`,r&&Object.keys(r).forEach(o=>{this.on(o,r[o],this)})}_setupElements(){q(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Pr(this),xo(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),this._resolveExtraHiglightElements(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(t=this.tour.modal)==null||t.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 n=this.shepherdElementComponent.getElement(),r=this.target||document.body,o=this._resolvedExtraHighlightElements;r.classList.add(`${this.classPrefix}shepherd-enabled`),r.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),o==null||o.forEach(i=>{i.classList.add(`${this.classPrefix}shepherd-enabled`),i.classList.add(`${this.classPrefix}shepherd-target`)}),this.trigger("show")}_styleTargetElementForStep(t){const n=t.target,r=t._resolvedExtraHighlightElements;if(!n)return;const o=t.options.highlightClass;o&&(n.classList.add(o),r==null||r.forEach(i=>i.classList.add(o))),n.classList.remove("shepherd-target-click-disabled"),r==null||r.forEach(i=>i.classList.remove("shepherd-target-click-disabled")),t.options.canClickTarget===!1&&(n.classList.add("shepherd-target-click-disabled"),r==null||r.forEach(i=>i.classList.add("shepherd-target-click-disabled")))}_updateStepTargetOnHide(){const t=this.target||document.body,n=this._resolvedExtraHighlightElements,r=this.options.highlightClass;r&&(t.classList.remove(r),n==null||n.forEach(o=>o.classList.remove(r))),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`),n==null||n.forEach(o=>{o.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)})}}function wi(e){if(e){const{steps:t}=e;t.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&(Me(n.target)&&n.target.classList.remove("shepherd-target-click-disabled"),n._resolvedExtraHighlightElements&&n._resolvedExtraHighlightElements.forEach(r=>{Me(r)&&r.classList.remove("shepherd-target-click-disabled")}))})}}function _i(e){let t="";const{innerWidth:n,innerHeight:r}=window;return e.forEach(o=>{const{width:i,height:s,x:c=0,y:a=0,r:u=0}=o,{topLeft:h=0,topRight:d=0,bottomRight:f=0,bottomLeft:p=0}=typeof u=="number"?{topLeft:u,topRight:u,bottomRight:u,bottomLeft:u}:u;t+=`M${c+h},${a} a${h},${h},0,0,0-${h},${h} V${s+a-p} a${p},${p},0,0,0,${p},${p} H${i+c-f} a${f},${f},0,0,0,${f}-${f} V${a+d} a${d},${d},0,0,0-${d}-${d} Z`}),`M${n},${r} H0 V0 H${n} V${r} Z ${t}`.replace(/\s/g,"")}function Ei(e){let t,n,r,o,i;return{c(){t=Cn("svg"),n=Cn("path"),F(n,"d",e[2]),F(t,"class",r=`${e[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,c){ie(s,t,c),Ve(t,n),e[11](t),o||(i=pt(t,"touchmove",e[3]),o=!0)},p(s,[c]){c&4&&F(n,"d",s[2]),c&2&&r!==(r=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&F(t,"class",r)},i:Z,o:Z,d(s){s&&ee(t),e[11](null),o=!1,i()}}}function qn(e){if(!e)return null;const n=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return n!=="hidden"&&n!=="visible"&&e.scrollHeight>=e.clientHeight?e:qn(e.parentElement)}function xi(e){let t={top:0,left:0};if(!e)return t;let n=e.ownerDocument.defaultView;for(;n!==window.top;){var r;const s=(r=n)==null?void 0:r.frameElement;if(s){var o,i;const c=s.getBoundingClientRect();t.top+=c.top+((o=c.scrollTop)!=null?o:0),t.left+=c.left+((i=c.scrollLeft)!=null?i:0)}n=n.parent}return t}function Si(e,t){const n=e.getBoundingClientRect();let r=n.y||n.top,o=n.bottom||r+n.height;if(t){const s=t.getBoundingClientRect(),c=s.y||s.top,a=s.bottom||c+s.height;r=Math.max(r,c),o=Math.min(o,a)}const i=Math.max(o-r,0);return{y:r,height:i}}function Oi(e,t,n){let{element:r,openingProperties:o}=t,i=!1,s,c;u();const a=()=>r;function u(){n(4,o=[{width:0,height:0,x:0,y:0,r:0}])}function h(){n(1,i=!1),_()}function d(v=0,T=0,j=0,D=0,U,W,m){if(W){const P=[W,...m||[]];n(4,o=[]);for(const A of P){if(!A||P.indexOf(A)!==P.lastIndexOf(A))continue;const{y:M,height:H}=Si(A,U),{x:Y,width:te,left:z}=A.getBoundingClientRect();P.some(se=>{if(se===A)return!1;const J=se.getBoundingClientRect();return Y>=J.left&&Y+te<=J.right&&M>=J.top&&M+H<=J.bottom})||o.push({width:te+v*2,height:H+v*2,x:(Y||z)+j-v,y:M+D-v,r:T})}}else u()}function f(v){_(),v.tour.options.useModalOverlay?(E(v),p()):h()}function p(){n(1,i=!0)}const y=v=>{v.preventDefault()},w=v=>{v.stopPropagation()};function S(){window.addEventListener("touchmove",y,{passive:!1})}function _(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",y,{passive:!1})}function E(v){const{modalOverlayOpeningPadding:T,modalOverlayOpeningRadius:j,modalOverlayOpeningXOffset:D=0,modalOverlayOpeningYOffset:U=0}=v.options,W=xi(v.target),m=qn(v.target),P=()=>{s=void 0,d(T,j,D+W.left,U+W.top,m,v.target,v._resolvedExtraHighlightElements),s=requestAnimationFrame(P)};P(),S()}function O(v){Ye[v?"unshift":"push"](()=>{r=v,n(0,r)})}return e.$$set=v=>{"element"in v&&n(0,r=v.element),"openingProperties"in v&&n(4,o=v.openingProperties)},e.$$.update=()=>{e.$$.dirty&16&&n(2,c=_i(o))},[r,i,c,w,o,a,u,h,d,f,p,O]}class Ti extends be{constructor(t){super(),me(this,t,Oi,Ei,ge,{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 Ri extends Et{constructor(){super(),this.activeTour=void 0,Tt(this)}}class Ai extends Et{constructor(t={}){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,Tt(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,t),this.classPrefix=cn(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(i=>{this.on(i,s=>{s=s||{},s.tour=this,Ie.trigger(i,s)})})(o)}),this._setTourID(t.id),this}addStep(t,n){let r=t;return r instanceof Ut?r.tour=this:r=new Ut(this,r),q(n)?this.steps.push(r):this.steps.splice(n,0,r),r}addSteps(t){return Array.isArray(t)&&t.forEach(n=>{this.addStep(n)}),this}back(){const t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}async cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;ye(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(t),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find(n=>n.id===t)}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return Ie.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 n=this.getCurrentStep();this.steps.some((r,o)=>{if(r.id===t)return r.isOpen()&&r.hide(),r.destroy(),this.steps.splice(o,1),!0}),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t=0,n=!0){const r=Xe(t)?this.getById(t):this.steps[t];r&&(this._updateStateBeforeShow(),ye(r.options.showOn)&&!r.options.showOn()?this._skipStep(r,n):(this.currentStep=r,this.trigger("show",{step:r,previous:this.currentStep}),r.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(t){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(r=>r.destroy()),wi(this),this.trigger(t,{index:n}),Ie.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(t==="cancel"||t==="complete")&&this.modal){const r=document.querySelector(".shepherd-modal-overlay-container");r&&(r.remove(),this.modal=null)}Me(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Ie.activeTour=this}setupModal(){this.modal=new Ti({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(t,n){const r=this.steps.indexOf(t);if(r===this.steps.length-1)this.complete();else{const o=n?r+1:r-1;this.show(o,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(t){const n=this.options.tourName||"tour",r=t||un();this.id=`${n}--${r}`}}const Ie=new Ri,zn=typeof window>"u";Ie.Step=zn?kr:Ut,Ie.Tour=zn?Ir:Ai;const mt=ve.createContext(void 0),Ci=mt.Consumer,Pi=()=>{const e=ve.useContext(mt);if(!e)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:t}=e;return t},ki=({children:e})=>fr.jsx(mt.Provider,{value:{Shepherd:Ie},children:e});ce.JourneyMethods=Ci,ce.ShepherdJourneyContext=mt,ce.ShepherdJourneyProvider=ki,ce.useShepherd=Pi,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})});
|
|
6
|
+
<%s key={someKey} {...props} />`,I,F,pe,F),q[F+I]=!0)}if(F=null,j!==void 0&&(n(j),F=""+j),l(R)&&(n(R.key),F=""+R.key),"key"in R){j={};for(var Ge in R)Ge!=="key"&&(j[Ge]=R[Ge])}else j=R;return F&&s(j,typeof c=="function"?c.displayName||c.name||"Unknown":c),u(c,F,j,o(),Le,Xe)}function d(c){v(c)?c._store&&(c._store.validated=1):typeof c=="object"&&c!==null&&c.$$typeof===E&&(c._payload.status==="fulfilled"?v(c._payload.value)&&c._payload.value._store&&(c._payload.value._store.validated=1):c._store&&(c._store.validated=1))}function v(c){return typeof c=="object"&&c!==null&&c.$$typeof===g}var m=re,g=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),O=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),_=Symbol.for("react.client.reference"),S=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=Object.prototype.hasOwnProperty,M=Array.isArray,L=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(c){return c()}};var D,$={},H=m.react_stack_bottom_frame.bind(m,i)(),U=L(r(i)),q={};ge.Fragment=f,ge.jsx=function(c,R,j){var I=1e4>S.recentlyCreatedOwnerStacks++;return p(c,R,j,!1,I?Error("react-stack-top-frame"):H,I?L(r(c)):U)},ge.jsxs=function(c,R,j){var I=1e4>S.recentlyCreatedOwnerStacks++;return p(c,R,j,!0,I?Error("react-stack-top-frame"):H,I?L(r(c)):U)}})()),ge}var Ke;function Lt(){return Ke||(Ke=1,process.env.NODE_ENV==="production"?be.exports=kt():be.exports=Ct()),be.exports}var Mt=Lt();function ce(e){return e instanceof HTMLElement}function ee(e){return typeof e=="function"}function xe(e){return typeof e=="string"}function V(e){return e===void 0}class Me{on(t,n,r,o=!1){var i;return V(this.bindings)&&(this.bindings={}),V(this.bindings[t])&&(this.bindings[t]=[]),(i=this.bindings[t])==null||i.push({handler:n,ctx:r,once:o}),this}once(t,n,r){return this.on(t,n,r,!0)}off(t,n){if(V(this.bindings)||V(this.bindings[t]))return this;var r;return V(n)?delete this.bindings[t]:(r=this.bindings[t])==null||r.forEach((o,i)=>{var l;o.handler===n&&((l=this.bindings[t])==null||l.splice(i,1))}),this}trigger(t,...n){var r;return!V(this.bindings)&&this.bindings[t]&&((r=this.bindings[t])==null||r.forEach((o,i)=>{const{ctx:l,handler:s,once:a}=o,u=l||this;var p;s.apply(u,n),a&&((p=this.bindings[t])==null||p.splice(i,1))})),this}}function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(null,arguments)}function je(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const oe={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};function jt(e,t){return t}function Dt(e,t){return e.filter(n=>n!==void 0)}var et;function tt(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:(function(t){if(!rt.includes(Object.prototype.toString.call(t)))return!1;const{constructor:n}=t;if(n===void 0)return!0;const r=n.prototype;return!(r===null||typeof r!="object"||!rt.includes(Object.prototype.toString.call(r))||!r.hasOwnProperty("isPrototypeOf"))})(e)?1:e instanceof Set?3:e instanceof Map?4:5}function It(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function nt(e){var t;let n=0,r=(t=e[0])==null?void 0:t[Symbol.iterator]();return{[Symbol.iterator]:()=>({next(){for(;;){if(r===void 0)return{done:!0,value:void 0};const i=r.next();if(i.done!==!0)return{done:!1,value:i.value};var o;n+=1,r=(o=e[n])==null?void 0:o[Symbol.iterator]()}}})}}(function(e){e[e.NOT=0]="NOT",e[e.RECORD=1]="RECORD",e[e.ARRAY=2]="ARRAY",e[e.SET=3]="SET",e[e.MAP=4]="MAP",e[e.OTHER=5]="OTHER"})(et||(et={}));const rt=["[object Object]","[object Module]"],we={mergeRecords:function(e,t,n){const r={};for(const o of(function(i){const l=new Set;for(const s of i)for(const a of[...Object.keys(s),...Object.getOwnPropertySymbols(s)])l.add(a);return l})(e)){const i=[];for(const a of e)It(a,o)&&i.push(a[o]);if(i.length===0)continue;const l=t.metaDataUpdater(n,{key:o,parents:e}),s=ot(i,t,l);s!==oe.skip&&(o==="__proto__"?Object.defineProperty(r,o,{value:s,configurable:!0,enumerable:!0,writable:!0}):r[o]=s)}return r},mergeArrays:function(e){return e.flat()},mergeSets:function(e){return new Set(nt(e))},mergeMaps:function(e){return new Map(nt(e))},mergeOthers:function(e){return e.at(-1)}};function De(...e){return(function(t,n){const r=(function(i,l){var s,a,u;return{defaultMergeFunctions:we,mergeFunctions:N({},we,Object.fromEntries(Object.entries(i).filter(([p,d])=>Object.hasOwn(we,p)).map(([p,d])=>d===!1?[p,we.mergeOthers]:[p,d]))),metaDataUpdater:(s=i.metaDataUpdater)!=null?s:jt,deepmerge:l,useImplicitDefaultMerging:(a=i.enableImplicitDefaultMerging)!=null&&a,filterValues:i.filterValues===!1?void 0:(u=i.filterValues)!=null?u:Dt,actions:oe}})(t,o);function o(...i){return ot(i,r,n)}return o})({})(...e)}function ot(e,t,n){var r;const o=(r=t.filterValues==null?void 0:t.filterValues(e,n))!=null?r:e;if(o.length===0)return;if(o.length===1)return Ie(o,t,n);const i=tt(o[0]);if(i!==0&&i!==5){for(let l=1;l<o.length;l++)if(tt(o[l])!==i)return Ie(o,t,n)}switch(i){case 1:return(function(l,s,a){const u=s.mergeFunctions.mergeRecords(l,s,a);return u===oe.defaultMerge||s.useImplicitDefaultMerging&&u===void 0&&s.mergeFunctions.mergeRecords!==s.defaultMergeFunctions.mergeRecords?s.defaultMergeFunctions.mergeRecords(l,s,a):u})(o,t,n);case 2:return(function(l,s,a){const u=s.mergeFunctions.mergeArrays(l,s,a);return u===oe.defaultMerge||s.useImplicitDefaultMerging&&u===void 0&&s.mergeFunctions.mergeArrays!==s.defaultMergeFunctions.mergeArrays?s.defaultMergeFunctions.mergeArrays(l):u})(o,t,n);case 3:return(function(l,s,a){const u=s.mergeFunctions.mergeSets(l,s,a);return u===oe.defaultMerge||s.useImplicitDefaultMerging&&u===void 0&&s.mergeFunctions.mergeSets!==s.defaultMergeFunctions.mergeSets?s.defaultMergeFunctions.mergeSets(l):u})(o,t,n);case 4:return(function(l,s,a){const u=s.mergeFunctions.mergeMaps(l,s,a);return u===oe.defaultMerge||s.useImplicitDefaultMerging&&u===void 0&&s.mergeFunctions.mergeMaps!==s.defaultMergeFunctions.mergeMaps?s.defaultMergeFunctions.mergeMaps(l):u})(o,t,n);default:return Ie(o,t,n)}}function Ie(e,t,n){const r=t.mergeFunctions.mergeOthers(e,t,n);return r===oe.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}function Fe(e){const t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){const r=t[n],o=e[r];r!=="constructor"&&typeof o=="function"&&(e[r]=o.bind(e))}return e}function Ft(e){const{event:t,selector:n}=e.options.advanceOn||{};if(t){const r=(function(i,l){return s=>{if(i.isOpen()){const a=i.el&&s.currentTarget===i.el;(!V(l)&&s.currentTarget.matches(l)||a)&&i.tour.next()}}})(e,n);let o=null;if(!V(n)&&(o=document.querySelector(n),!o))return;o?(o.addEventListener(t,r),e.on("destroy",()=>o.removeEventListener(t,r))):(document.body.addEventListener(t,r,!0),e.on("destroy",()=>document.body.removeEventListener(t,r,!0)))}}function it(e){return xe(e)&&e!==""?e.charAt(e.length-1)!=="-"?`${e}-`:e:""}function st(e){return e==null||!e.element||!e.on}function lt(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),(t=="x"?n:3&n|8).toString(16)})}const at=["start","end"],ct=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-"+at[0],t+"-"+at[1]),[]),ue=Math.min,ie=Math.max,Ee=Math.round,Oe=Math.floor,z=e=>({x:e,y:e}),$t={left:"right",right:"left",bottom:"top",top:"bottom"},Ht={start:"end",end:"start"};function $e(e,t,n){return ie(e,ue(t,n))}function se(e,t){return typeof e=="function"?e(t):e}function Q(e){return e.split("-")[0]}function K(e){return e.split("-")[1]}function He(e){return e==="x"?"y":"x"}function Ne(e){return e==="y"?"height":"width"}const Nt=new Set(["top","bottom"]);function te(e){return Nt.has(Q(e))?"y":"x"}function Ve(e){return He(te(e))}function ut(e,t,n){n===void 0&&(n=!1);const r=K(e),o=Ve(e),i=Ne(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Se(l)),[l,Se(l)]}function Te(e){return e.replace(/start|end/g,t=>Ht[t])}const ft=["left","right"],dt=["right","left"],Vt=["top","bottom"],Bt=["bottom","top"];function Wt(e,t,n,r){const o=K(e);let i=(function(l,s,a){switch(l){case"top":case"bottom":return a?s?dt:ft:s?ft:dt;case"left":case"right":return s?Vt:Bt;default:return[]}})(Q(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Te)))),i}function Se(e){return e.replace(/left|right|bottom|top/g,t=>$t[t])}function ht(e){return typeof e!="number"?(function(t){return N({top:0,right:0,bottom:0,left:0},t)})(e):{top:e,right:e,bottom:e,left:e}}function _e(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}const Yt=["crossAxis","alignment","allowedPlacements","autoAlignment"],Ut=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],qt=["mainAxis","crossAxis","limiter"];function pt(e,t,n){let{reference:r,floating:o}=e;const i=te(t),l=Ve(t),s=Ne(l),a=Q(t),u=i==="y",p=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,v=r[s]/2-o[s]/2;let m;switch(a){case"top":m={x:p,y:r.y-o.height};break;case"bottom":m={x:p,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(K(t)){case"start":m[l]-=v*(n&&u?-1:1);break;case"end":m[l]+=v*(n&&u?-1:1)}return m}async function Jt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:l,elements:s,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:v=!1,padding:m=0}=se(t,e),g=ht(m),h=s[v?d==="floating"?"reference":"floating":d],f=_e(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:p,strategy:a})),y=d==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),x=await(i.isElement==null?void 0:i.isElement(b))&&await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1},O=_e(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:a}):y);return{top:(f.top-O.top+g.top)/x.y,bottom:(O.bottom-f.bottom+g.bottom)/x.y,left:(f.left-O.left+g.left)/x.x,right:(O.right-f.right+g.right)/x.x}}const zt=new Set(["left","top"]);function Re(){return typeof window<"u"}function fe(e){return mt(e)?(e.nodeName||"").toLowerCase():"#document"}function B(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function X(e){var t;return(t=(mt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mt(e){return!!Re()&&(e instanceof Node||e instanceof B(e).Node)}function W(e){return!!Re()&&(e instanceof Element||e instanceof B(e).Element)}function G(e){return!!Re()&&(e instanceof HTMLElement||e instanceof B(e).HTMLElement)}function gt(e){return!(!Re()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof B(e).ShadowRoot)}const Xt=new Set(["inline","contents"]);function ve(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Xt.has(o)}const Gt=new Set(["table","td","th"]);function Zt(e){return Gt.has(fe(e))}const Qt=[":popover-open",":modal"];function Ae(e){return Qt.some(t=>{try{return e.matches(t)}catch{return!1}})}const Kt=["transform","translate","scale","rotate","perspective"],en=["transform","translate","scale","rotate","perspective","filter"],tn=["paint","layout","strict","content"];function Be(e){const t=We(),n=W(e)?Y(e):e;return Kt.some(r=>!!n[r]&&n[r]!=="none")||!!n.containerType&&n.containerType!=="normal"||!t&&!!n.backdropFilter&&n.backdropFilter!=="none"||!t&&!!n.filter&&n.filter!=="none"||en.some(r=>(n.willChange||"").includes(r))||tn.some(r=>(n.contain||"").includes(r))}function We(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const nn=new Set(["html","body","#document"]);function de(e){return nn.has(fe(e))}function Y(e){return B(e).getComputedStyle(e)}function Pe(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ne(e){if(fe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gt(e)&&e.host||X(e);return gt(t)?t.host:t}function vt(e){const t=ne(e);return de(t)?e.ownerDocument?e.ownerDocument.body:e.body:G(t)&&ve(t)?t:vt(t)}function ye(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=vt(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=B(o);if(i){const s=Ye(l);return t.concat(l,l.visualViewport||[],ve(o)?o:[],s&&n?ye(s):[])}return t.concat(o,ye(o,[],n))}function Ye(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yt(e){const t=Y(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=G(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=Ee(n)!==i||Ee(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Ue(e){return W(e)?e:e.contextElement}function he(e){const t=Ue(e);if(!G(t))return z(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=yt(t);let l=(i?Ee(n.width):n.width)/r,s=(i?Ee(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const rn=z(0);function bt(e){const t=B(e);return We()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:rn}function le(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ue(e);let l=z(1);t&&(r?W(r)&&(l=he(r)):l=he(e));const s=(function(v,m,g){return m===void 0&&(m=!1),!(!g||m&&g!==B(v))&&m})(i,n,r)?bt(i):z(0);let a=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,p=o.width/l.x,d=o.height/l.y;if(i){const v=B(i),m=r&&W(r)?B(r):r;let g=v,h=Ye(g);for(;h&&r&&m!==g;){const f=he(h),y=h.getBoundingClientRect(),b=Y(h),x=y.left+(h.clientLeft+parseFloat(b.paddingLeft))*f.x,O=y.top+(h.clientTop+parseFloat(b.paddingTop))*f.y;a*=f.x,u*=f.y,p*=f.x,d*=f.y,a+=x,u+=O,g=B(h),h=Ye(g)}}return _e({width:p,height:d,x:a,y:u})}function ke(e,t){const n=Pe(e).scrollLeft;return t?t.left+n:le(X(e)).left+n}function xt(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ke(e,n),y:n.top+t.scrollTop}}const on=new Set(["absolute","fixed"]);function wt(e,t,n){let r;if(t==="viewport")r=(function(o,i){const l=B(o),s=X(o),a=l.visualViewport;let u=s.clientWidth,p=s.clientHeight,d=0,v=0;if(a){u=a.width,p=a.height;const g=We();(!g||g&&i==="fixed")&&(d=a.offsetLeft,v=a.offsetTop)}const m=ke(s);if(m<=0){const g=s.ownerDocument,h=g.body,f=getComputedStyle(h),y=g.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(s.clientWidth-h.clientWidth-y);b<=25&&(u-=b)}else m<=25&&(u+=m);return{width:u,height:p,x:d,y:v}})(e,n);else if(t==="document")r=(function(o){const i=X(o),l=Pe(o),s=o.ownerDocument.body,a=ie(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),u=ie(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let p=-l.scrollLeft+ke(o);const d=-l.scrollTop;return Y(s).direction==="rtl"&&(p+=ie(i.clientWidth,s.clientWidth)-a),{width:a,height:u,x:p,y:d}})(X(e));else if(W(t))r=(function(o,i){const l=le(o,!0,i==="fixed"),s=l.top+o.clientTop,a=l.left+o.clientLeft,u=G(o)?he(o):z(1);return{width:o.clientWidth*u.x,height:o.clientHeight*u.y,x:a*u.x,y:s*u.y}})(t,n);else{const o=bt(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _e(r)}function Et(e,t){const n=ne(e);return!(n===t||!W(n)||de(n))&&(Y(n).position==="fixed"||Et(n,t))}function sn(e,t,n){const r=G(t),o=X(t),i=n==="fixed",l=le(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=z(0);function u(){a.x=ke(o)}if(r||!r&&!i)if((fe(t)!=="body"||ve(o))&&(s=Pe(t)),r){const d=le(t,!0,i,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else o&&u();i&&!r&&o&&u();const p=!o||r||i?z(0):xt(o,s);return{x:l.left+s.scrollLeft-a.x-p.x,y:l.top+s.scrollTop-a.y-p.y,width:l.width,height:l.height}}function qe(e){return Y(e).position==="static"}function Ot(e,t){if(!G(e)||Y(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return X(e)===n&&(n=n.ownerDocument.body),n}function Tt(e,t){const n=B(e);if(Ae(e))return n;if(!G(e)){let o=ne(e);for(;o&&!de(o);){if(W(o)&&!qe(o))return o;o=ne(o)}return n}let r=Ot(e,t);for(;r&&Zt(r)&&qe(r);)r=Ot(r,t);return r&&de(r)&&qe(r)&&!Be(r)?n:r||(function(o){let i=ne(o);for(;G(i)&&!de(i);){if(Be(i))return i;if(Ae(i))return null;i=ne(i)}return null})(e)||n}const ln={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=X(r),s=!!t&&Ae(t.floating);if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},u=z(1);const p=z(0),d=G(r);if((d||!d&&!i)&&((fe(r)!=="body"||ve(l))&&(a=Pe(r)),G(r))){const m=le(r);u=he(r),p.x=m.x+r.clientLeft,p.y=m.y+r.clientTop}const v=!l||d||i?z(0):xt(l,a);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+p.x+v.x,y:n.y*u.y-a.scrollTop*u.y+p.y+v.y}},getDocumentElement:X,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ae(t)?[]:(function(a,u){const p=u.get(a);if(p)return p;let d=ye(a,[],!1).filter(h=>W(h)&&fe(h)!=="body"),v=null;const m=Y(a).position==="fixed";let g=m?ne(a):a;for(;W(g)&&!de(g);){const h=Y(g),f=Be(g);f||h.position!=="fixed"||(v=null),(m?!f&&!v:!f&&h.position==="static"&&v&&on.has(v.position)||ve(g)&&!f&&Et(a,g))?d=d.filter(y=>y!==g):v=h,g=ne(g)}return u.set(a,d),d})(t,this._c):[].concat(n),r],l=i[0],s=i.reduce((a,u)=>{const p=wt(t,u,o);return a.top=ie(p.top,a.top),a.right=ue(p.right,a.right),a.bottom=ue(p.bottom,a.bottom),a.left=ie(p.left,a.left),a},wt(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Tt,getElementRects:async function(e){const t=this.getOffsetParent||Tt,n=this.getDimensions,r=await n(e.floating);return{reference:sn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=yt(e);return{width:t,height:n}},getScale:he,isElement:W,isRTL:function(e){return Y(e).direction==="rtl"}};function St(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function an(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Ue(e),p=o||i?[...u?ye(u):[],...ye(t)]:[];p.forEach(f=>{o&&f.addEventListener("scroll",n,{passive:!0}),i&&f.addEventListener("resize",n)});const d=u&&s?(function(f,y){let b,x=null;const O=X(f);function P(){var T;clearTimeout(b),(T=x)==null||T.disconnect(),x=null}return(function T(k,A){k===void 0&&(k=!1),A===void 0&&(A=1),P();const E=f.getBoundingClientRect(),{left:w,top:_,width:S,height:C}=E;if(k||y(),!S||!C)return;const M={rootMargin:-Oe(_)+"px "+-Oe(O.clientWidth-(w+S))+"px "+-Oe(O.clientHeight-(_+C))+"px "+-Oe(w)+"px",threshold:ie(0,ue(1,A))||1};let L=!0;function D($){const H=$[0].intersectionRatio;if(H!==A){if(!L)return T();H?T(!1,H):b=setTimeout(()=>{T(!1,1e-7)},1e3)}H!==1||St(E,f.getBoundingClientRect())||T(),L=!1}try{x=new IntersectionObserver(D,N({},M,{root:O.ownerDocument}))}catch{x=new IntersectionObserver(D,M)}x.observe(f)})(!0),P})(u,n):null;let v,m=-1,g=null;l&&(g=new ResizeObserver(f=>{let[y]=f;y&&y.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=g)==null||b.observe(t)})),n()}),u&&!a&&g.observe(u),g.observe(t));let h=a?le(e):null;return a&&(function f(){const y=le(e);h&&!St(h,y)&&n(),h=y,v=requestAnimationFrame(f)})(),n(),()=>{var f;p.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),d?.(),(f=g)==null||f.disconnect(),g=null,a&&cancelAnimationFrame(v)}}const cn=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:i,middlewareData:l,placement:s,platform:a,elements:u}=t,p=se(e,t),{crossAxis:d=!1,alignment:v,allowedPlacements:m=ct,autoAlignment:g=!0}=p,h=je(p,Yt),f=v!==void 0||m===ct?(function(w,_,S){return(w?[...S.filter(C=>K(C)===w),...S.filter(C=>K(C)!==w)]:S.filter(C=>Q(C)===C)).filter(C=>!w||K(C)===w||!!_&&Te(C)!==C)})(v||null,g,m):m,y=await a.detectOverflow(t,h),b=((n=l.autoPlacement)==null?void 0:n.index)||0,x=f[b];if(x==null)return{};const O=ut(x,i,await(a.isRTL==null?void 0:a.isRTL(u.floating)));if(s!==x)return{reset:{placement:f[0]}};const P=[y[Q(x)],y[O[0]],y[O[1]]],T=[...((r=l.autoPlacement)==null?void 0:r.overflows)||[],{placement:x,overflows:P}],k=f[b+1];if(k)return{data:{index:b+1,overflows:T},reset:{placement:k}};const A=T.map(w=>{const _=K(w.placement);return[w.placement,_&&d?w.overflows.slice(0,2).reduce((S,C)=>S+C,0):w.overflows[0],w.overflows]}).sort((w,_)=>w[1]-_[1]),E=((o=A.filter(w=>w[2].slice(0,K(w[0])?2:3).every(_=>_<=0))[0])==null?void 0:o[0])||A[0][0];return E!==s?{data:{index:b+1,overflows:T},reset:{placement:E}}:{}}}},un=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,l=se(e,t),{mainAxis:s=!0,crossAxis:a=!1,limiter:u={fn:b=>{let{x,y:O}=b;return{x,y:O}}}}=l,p=je(l,qt),d={x:n,y:r},v=await i.detectOverflow(t,p),m=te(Q(o)),g=He(m);let h=d[g],f=d[m];if(s){const b=g==="y"?"bottom":"right";h=$e(h+v[g==="y"?"top":"left"],h,h-v[b])}if(a){const b=m==="y"?"bottom":"right";f=$e(f+v[m==="y"?"top":"left"],f,f-v[b])}const y=u.fn(N({},t,{[g]:h,[m]:f}));return N({},y,{data:{x:y.x-n,y:y.y-r,enabled:{[g]:s,[m]:a}}})}}},fn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:s,platform:a,elements:u}=t,p=se(e,t),{mainAxis:d=!0,crossAxis:v=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:f=!0}=p,y=je(p,Ut);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Q(o),x=te(s),O=Q(s)===s,P=await(a.isRTL==null?void 0:a.isRTL(u.floating)),T=m||(O||!f?[Se(s)]:(function(L){const D=Se(L);return[Te(L),D,Te(D)]})(s)),k=h!=="none";!m&&k&&T.push(...Wt(s,f,h,P));const A=[s,...T],E=await a.detectOverflow(t,y),w=[];let _=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&w.push(E[b]),v){const L=ut(o,l,P);w.push(E[L[0]],E[L[1]])}if(_=[..._,{placement:o,overflows:w}],!w.every(L=>L<=0)){var S,C;const L=(((S=i.flip)==null?void 0:S.index)||0)+1,D=A[L];if(D&&(!(v==="alignment"&&x!==te(D))||_.every(H=>te(H.placement)!==x||H.overflows[0]>0)))return{data:{index:L,overflows:_},reset:{placement:D}};let $=(C=_.filter(H=>H.overflows[0]<=0).sort((H,U)=>H.overflows[1]-U.overflows[1])[0])==null?void 0:C.placement;if(!$)switch(g){case"bestFit":{var M;const H=(M=_.filter(U=>{if(k){const q=te(U.placement);return q===x||q==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(q=>q>0).reduce((q,c)=>q+c,0)]).sort((U,q)=>U[1]-q[1])[0])==null?void 0:M[0];H&&($=H);break}case"initialPlacement":$=s}if(o!==$)return{reset:{placement:$}}}return{}}}},dn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:u,padding:p=0}=se(e,t)||{};if(u==null)return{};const d=ht(p),v={x:n,y:r},m=Ve(o),g=Ne(m),h=await l.getDimensions(u),f=m==="y",y=f?"top":"left",b=f?"bottom":"right",x=f?"clientHeight":"clientWidth",O=i.reference[g]+i.reference[m]-v[m]-i.floating[g],P=v[m]-i.reference[m],T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let k=T?T[x]:0;k&&await(l.isElement==null?void 0:l.isElement(T))||(k=s.floating[x]||i.floating[g]);const A=O/2-P/2,E=k/2-h[g]/2-1,w=ue(d[y],E),_=ue(d[b],E),S=w,C=k-h[g]-_,M=k/2-h[g]/2+A,L=$e(S,M,C),D=!a.arrow&&K(o)!=null&&M!==L&&i.reference[g]/2-(M<S?w:_)-h[g]/2<0,$=D?M<S?M-S:M-C:0;return{[m]:v[m]+$,data:N({[m]:L,centerOffset:M-L-$},D&&{alignmentOffset:$}),reset:D}}}),hn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=se(e,t),p={x:n,y:r},d=te(o),v=He(d);let m=p[v],g=p[d];const h=se(s,t),f=typeof h=="number"?{mainAxis:h,crossAxis:0}:N({mainAxis:0,crossAxis:0},h);if(a){const x=v==="y"?"height":"width",O=i.reference[v]-i.floating[x]+f.mainAxis,P=i.reference[v]+i.reference[x]-f.mainAxis;m<O?m=O:m>P&&(m=P)}if(u){var y,b;const x=v==="y"?"width":"height",O=zt.has(Q(o)),P=i.reference[d]-i.floating[x]+(O&&((y=l.offset)==null?void 0:y[d])||0)+(O?0:f.crossAxis),T=i.reference[d]+i.reference[x]+(O?0:((b=l.offset)==null?void 0:b[d])||0)-(O?f.crossAxis:0);g<P?g=P:g>T&&(g=T)}return{[v]:m,[d]:g}}}},pn=(e,t,n)=>{const r=new Map,o=N({platform:ln},n),i=N({},o.platform,{_c:r});return(async(l,s,a)=>{const{placement:u="bottom",strategy:p="absolute",middleware:d=[],platform:v}=a,m=d.filter(Boolean),g=await(v.isRTL==null?void 0:v.isRTL(s));let h=await v.getElementRects({reference:l,floating:s,strategy:p}),{x:f,y}=pt(h,u,g),b=u,x={},O=0;for(let T=0;T<m.length;T++){var P;const{name:k,fn:A}=m[T],{x:E,y:w,data:_,reset:S}=await A({x:f,y,initialPlacement:u,placement:b,strategy:p,middlewareData:x,rects:h,platform:N({},v,{detectOverflow:(P=v.detectOverflow)!=null?P:Jt}),elements:{reference:l,floating:s}});f=E??f,y=w??y,x=N({},x,{[k]:N({},x[k],_)}),S&&O<=50&&(O++,typeof S=="object"&&(S.placement&&(b=S.placement),S.rects&&(h=S.rects===!0?await v.getElementRects({reference:l,floating:s,strategy:p}):S.rects),{x:f,y}=pt(h,b,g)),T=-1)}return{x:f,y,placement:b,strategy:p,middlewareData:x}})(e,t,N({},o,{platform:i}))};function mn(e){e.cleanup&&e.cleanup();const t=e._getResolvedAttachToOptions();let n=t.element;const r=(function(l,s){var a,u,p;const d={strategy:"absolute",middleware:[]},v=(function(y){return y.options.arrow&&y.el?y.el.querySelector(".shepherd-arrow"):!1})(s),m=st(l),g=(a=l.on)==null?void 0:a.includes("auto"),h=(l==null||(u=l.on)==null?void 0:u.includes("-start"))||(l==null||(p=l.on)==null?void 0:p.includes("-end"));if(!m){var f;if(g?d.middleware.push(cn({crossAxis:!0,alignment:h?l==null||(f=l.on)==null?void 0:f.split("-").pop():null})):d.middleware.push(fn()),d.middleware.push(un({limiter:hn(),crossAxis:!0})),v){const y=typeof s.options.arrow=="object"?s.options.arrow:{padding:4};d.middleware.push(dn({element:v,padding:h?y.padding:0}))}g||(d.placement=l.on)}return De(d,s.options.floatingUIOptions||{})})(t,e),o=st(t);if(o){var i;n=document.body;const l=(i=e.shepherdElementComponent)==null?void 0:i.element;l?.classList.add("shepherd-centered")}return e.cleanup=an(n,e.el,()=>{e.el?(function(l,s,a,u){pn(l,s.el,a).then((function(p,d){return({x:v,y:m,placement:g,middlewareData:h})=>(p.el&&(d?Object.assign(p.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(p.el.style,{position:"absolute",left:`${v}px`,top:`${m}px`}),p.el.dataset.popperPlacement=g,(function(f,y){const b=f.querySelector(".shepherd-arrow");if(ce(b)&&y.arrow){const{x,y:O}=y.arrow;Object.assign(b.style,{left:x!=null?`${x}px`:"",top:O!=null?`${O}px`:""})}})(p.el,h)),p)})(s,u)).then(p=>new Promise(d=>{setTimeout(()=>d(p),300)})).then(p=>{p!=null&&p.el&&(p.el.tabIndex=0,p.el.focus({preventScroll:!0}))})})(n,e,r,o):e.cleanup==null||e.cleanup()}),e.target=t.element,r}function Z(e,t,...n){const r=document.createElement(e);return Rt(r,t),At(r,n),r}function _t(e,t,...n){const r=document.createElementNS("http://www.w3.org/2000/svg",e);return Rt(r,t),At(r,n),r}function Rt(e,t){if(t)for(const[n,r]of Object.entries(t))r!=null&&r!==!1&&(n.startsWith("on")&&typeof r=="function"?e.addEventListener(n.slice(2).toLowerCase(),r):n==="disabled"&&r===!0?e.disabled=!0:e.setAttribute(n,String(r)))}function At(e,t){for(const n of t)n!=null&&n!==!1&&e.append(typeof n=="string"?document.createTextNode(n):n)}function Je(e,t){return ee(e)?e.call(t):e}function gn(e,t){const n=e.action?e.action.bind(t.tour):null,r=!!e.disabled&&Je(e.disabled,t),o=e.label?Je(e.label,t):null,i=e.text?Je(e.text,t):null,l=Z("button",{"aria-label":o||null,class:`${e.classes||""} shepherd-button ${e.secondary?"shepherd-button-secondary":""}`,disabled:r||null,onclick:n,tabindex:"0",type:"button"});return i&&(l.innerHTML=i),l}function vn(e,t){const n=Z("header",{class:"shepherd-header"});return t.options.title&&n.append((function(r,o){const i=Z("h3",{id:r,class:"shepherd-title"}),l=ee(o)?o():o;return i.innerHTML=l,i})(e,t.options.title)),t.options.cancelIcon&&t.options.cancelIcon.enabled&&n.append((function(r,o){return Z("button",{"aria-label":r.label?r.label:"Close Tour",class:"shepherd-cancel-icon",onclick:i=>{i.preventDefault(),o.cancel()},type:"button"},Z("span",{"aria-hidden":"true"},"×"))})(t.options.cancelIcon,t)),n}function yn(e,t,n){const r=Z("div",{class:"shepherd-content"});return(!V(n.options.title)||n.options.cancelIcon&&n.options.cancelIcon.enabled)&&r.append(vn(t,n)),V(n.options.text)||r.append((function(o,i){const l=Z("div",{class:"shepherd-text",id:o});let s=i.options.text;return ee(s)&&(s=s.call(i)),ce(s)?l.appendChild(s):l.innerHTML=s,l})(e,n)),Array.isArray(n.options.buttons)&&n.options.buttons.length&&r.append((function(o){const i=Z("footer",{class:"shepherd-footer"});if(o.options.buttons)for(const l of o.options.buttons)i.append(gn(l,o));return i})(n)),r}class ze extends Me{constructor(t,n={}){return super(),this._resolvedAttachTo=void 0,this._resolvedExtraHighlightElements=void 0,this._originalTabIndexes=void 0,this.classPrefix=void 0,this.el=void 0,this.shepherdElementComponent=void 0,this.target=void 0,this.tour=void 0,this.tour=t,this.classPrefix=this.tour.options?it(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,this._originalTabIndexes=new Map,Fe(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){this._teardownElements(),this.trigger("destroy")}_teardownElements(){var t;(t=this).cleanup&&t.cleanup(),t.cleanup=null,this.shepherdElementComponent&&(this.shepherdElementComponent.cleanup(),this.shepherdElementComponent=void 0),ce(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this._originalTabIndexes.clear()}getTour(){return this.tour}hide(){var t;(t=this.tour.modal)==null||t.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveExtraHiglightElements(){var t;return this._resolvedExtraHighlightElements=(t=this).options.extraHighlights?t.options.extraHighlights.flatMap(n=>Array.from(document.querySelectorAll(n))):[],this._resolvedExtraHighlightElements}_resolveAttachToOptions(){return this._resolvedAttachTo=(function(t){const n=t.options.attachTo||{},r=Object.assign({},n);if(ee(r.element)&&(r.element=r.element.call(t)),xe(r.element)){try{r.element=document.querySelector(r.element)}catch{}r.element}return r})(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return ee(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.el&&(this._teardownElements(),this._setupElements())}getElement(){return this.el}getTarget(){return this.target}_storeOriginalTabIndex(t){const n=t.getAttribute("tabindex");n!==null&&this._originalTabIndexes.set(t,n)}_restoreOriginalTabIndexes(){const t=this.target;t&&(this._originalTabIndexes.has(t)?t.setAttribute("tabindex",this._originalTabIndexes.get(t)):t.removeAttribute("tabindex"))}_createTooltipContent(){const t=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=(function(r){var o,i,l,s;const{classPrefix:a,descriptionId:u,labelId:p,step:d}=r;let v,m,g,h,f,y,b;const x=(o=(i=d.options)==null||(i=i.cancelIcon)==null?void 0:i.enabled)!=null&&o,O=(l=(s=d.options)==null?void 0:s.title)!=null&&l,P=E=>{const{tour:w}=d;switch(E.keyCode){case 9:if((!m||m.length===0)&&y&&y.length===0){E.preventDefault();break}var _,S,C;if(E.shiftKey){if(document.activeElement===f||(_=document.activeElement)!=null&&_.classList.contains("shepherd-element"))E.preventDefault(),(S=h??b)==null||S.focus();else if(document.activeElement===g){var M;E.preventDefault(),(M=b)==null||M.focus()}}else if(document.activeElement===b)E.preventDefault(),(C=g??f)==null||C.focus();else if(document.activeElement===h){var L;E.preventDefault(),(L=f)==null||L.focus()}break;case 27:w.options.exitOnEsc&&(E.preventDefault(),E.stopPropagation(),d.cancel());break;case 37:w.options.keyboardNavigation&&(E.preventDefault(),E.stopPropagation(),w.back());break;case 39:w.options.keyboardNavigation&&(E.preventDefault(),E.stopPropagation(),w.next())}},T=Z("dialog",{"aria-describedby":V(d.options.text)?null:u,"aria-labelledby":d.options.title?p:null,class:["shepherd-element",x?"shepherd-has-cancel-icon":"",O?"shepherd-has-title":""].filter(Boolean).join(" "),[`data-${a}shepherd-step-id`]:d.id,onkeydown:P,open:"true"});if(d.options.arrow&&d.options.attachTo&&d.options.attachTo.element&&d.options.attachTo.on&&T.append(Z("div",{class:"shepherd-arrow","data-popper-arrow":""})),T.append(yn(u,p,d)),xe(d.options.classes)){const E=d.options.classes.split(" ").filter(w=>!!w.length);E.length&&T.classList.add(...E)}const k='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]';y=[...T.querySelectorAll(k)],f=y[0],b=y[y.length-1];const A=d._getResolvedAttachToOptions();return A!=null&&A.element&&(v=A.element,d._storeOriginalTabIndex(v),v.tabIndex=0,m=[v,...v.querySelectorAll(k)],g=m[0],h=m[m.length-1],v.addEventListener("keydown",P)),{element:T,cleanup:()=>{var E;(E=v)==null||E.removeEventListener("keydown",P)}}})({classPrefix:this.classPrefix,descriptionId:t,labelId:n,step:this}),(this.tour.options.stepsContainer||document.body).append(this.shepherdElementComponent.element),this.shepherdElementComponent.element}_scrollTo(t){const{element:n}=this._getResolvedAttachToOptions();ee(this.options.scrollToHandler)?this.options.scrollToHandler(n):n instanceof Element&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(t)}_getClassOptions(t){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,r=t.classes?t.classes:"",o=n&&n.classes?n.classes:"",i=[...r.split(" "),...o.split(" ")],l=new Set(i);return Array.from(l).join(" ").trim()}_setOptions(t={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=De({},n||{}),this.options=Object.assign({arrow:!0},n,t,(function(o,i){return{floatingUIOptions:De(o.floatingUIOptions||{},i.floatingUIOptions||{})}})(n,t));const{when:r}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${lt()}`,r&&Object.keys(r).forEach(o=>{this.on(o,r[o],this)})}_setupElements(){V(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Ft(this),mn(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),this._resolveExtraHiglightElements(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(t=this.tour.modal)==null||t.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 n=this.shepherdElementComponent.element,r=this.target||document.body,o=this._resolvedExtraHighlightElements;r.classList.add(`${this.classPrefix}shepherd-enabled`),r.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),o?.forEach(i=>{i.classList.add(`${this.classPrefix}shepherd-enabled`),i.classList.add(`${this.classPrefix}shepherd-target`)}),this.trigger("show")}_styleTargetElementForStep(t){const n=t.target,r=t._resolvedExtraHighlightElements;if(!n)return;const o=t.options.highlightClass;o&&(n.classList.add(o),r?.forEach(i=>i.classList.add(o))),n.classList.remove("shepherd-target-click-disabled"),r?.forEach(i=>i.classList.remove("shepherd-target-click-disabled")),t.options.canClickTarget===!1&&(n.classList.add("shepherd-target-click-disabled"),r?.forEach(i=>i.classList.add("shepherd-target-click-disabled")))}_updateStepTargetOnHide(){const t=this.target||document.body,n=this._resolvedExtraHighlightElements,r=this.options.highlightClass;r&&(t.classList.remove(r),n?.forEach(o=>o.classList.remove(r))),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`),n?.forEach(o=>{o.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}),this._restoreOriginalTabIndexes()}}function bn(e){let t,n=[{width:0,height:0,x:0,y:0,r:0}];const r=_t("path"),o=_t("svg",{class:"shepherd-modal-overlay-container"},r);function i(){r.setAttribute("d",(function(h){let f="";const{innerWidth:y,innerHeight:b}=window;return h.forEach(x=>{const{width:O,height:P,x:T=0,y:k=0,r:A=0}=x,{topLeft:E=0,topRight:w=0,bottomRight:_=0,bottomLeft:S=0}=typeof A=="number"?{topLeft:A,topRight:A,bottomRight:A,bottomLeft:A}:A;f+=`M${T+E},${k}a${E},${E},0,0,0-${E},${E}V`+(P+k-S)+`a${S},${S},0,0,0,${S},${S}H`+(O+T-_)+`a${_},${_},0,0,0,${_}-${_}V${k+w}a${w},${w},0,0,0-${w}-${w}Z`}),`M${y},${b}H0V0H${y}V${b}Z${f}`.replace(/\s/g,"")})(n))}function l(){n=[{width:0,height:0,x:0,y:0,r:0}],i()}function s(){o.classList.remove("shepherd-modal-is-visible"),v()}function a(){o.classList.add("shepherd-modal-is-visible")}function u(h=0,f=0,y=0,b=0,x,O,P){if(O){{const T=[O,...P||[]],k=[];for(const A of T){if(!A||T.indexOf(A)!==T.lastIndexOf(A))continue;const{y:E,height:w}=g(A,x),{x:_,width:S,left:C}=A.getBoundingClientRect();T.some(M=>{if(M===A)return!1;const L=M.getBoundingClientRect(),{y:D,height:$}=g(M,x);return _>=L.left&&_+S<=L.left+L.width&&E>=D&&E+w<=D+$})||k.push({width:S+2*h,height:w+2*h,x:(_||C)+y-h,y:E+b-h,r:f})}n=k}i()}else l()}function p(h){h.stopPropagation()}o.addEventListener("touchmove",p),i(),e.append(o);const d=h=>{h.preventDefault()};function v(){t&&(cancelAnimationFrame(t),t=void 0),window.removeEventListener("touchmove",d,{passive:!1})}function m(h){if(!h)return null;const f=h instanceof HTMLElement&&window.getComputedStyle(h).overflowY;return f!=="hidden"&&f!=="visible"&&h.scrollHeight>=h.clientHeight?h:m(h.parentElement)}function g(h,f){const y=h.getBoundingClientRect();let b=y.y||y.top,x=y.bottom||b+y.height;if(f){const O=f.getBoundingClientRect(),P=O.y||O.top,T=O.bottom||P+O.height;b=Math.max(b,P),x=Math.min(x,T)}return{y:b,height:Math.max(x-b,0)}}return{closeModalOpening:l,destroy:function(){v(),o.removeEventListener("touchmove",p),o.remove()},hide:s,positionModal:u,setupForStep:function(h){v(),h.tour.options.useModalOverlay?((function(f){const{modalOverlayOpeningPadding:y,modalOverlayOpeningRadius:b,modalOverlayOpeningXOffset:x=0,modalOverlayOpeningYOffset:O=0}=f.options,P=(function(A){const E={top:0,left:0};if(!A)return E;let w=A.ownerDocument.defaultView;try{for(;w&&w!==window.top;){var _;const S=(_=w)==null?void 0:_.frameElement;if(S){const C=S.getBoundingClientRect();E.top+=C.top+S.scrollTop,E.left+=C.left+S.scrollLeft}w=w.parent}}catch{}return E})(f.target),T=m(f.target),k=()=>{t=void 0,u(y,b,x+P.left,O+P.top,T,f.target,f._resolvedExtraHighlightElements),t=requestAnimationFrame(k)};k(),window.addEventListener("touchmove",d,{passive:!1})})(h),a()):s()},show:a,getElement:function(){return o}}}class xn extends Me{constructor(){super(),this.activeTour=void 0,Fe(this)}}const ae=new xn,Pt=typeof window>"u";ae.Step=Pt?class{constructor(e){}}:ze,ae.Tour=Pt?class{constructor(e,t){}}:class extends Me{constructor(e={}){return 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,Fe(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},e),this.classPrefix=it(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(t=>{(n=>{this.on(n,r=>{(r=r||{}).tour=this,ae.trigger(n,r)})})(t)}),this._setTourID(e.id),this}addStep(e,t){let n=e;return n instanceof ze?n.tour=this:n=new ze(this,n),V(t)?this.steps.push(n):this.steps.splice(t,0,n),n}addSteps(e){return Array.isArray(e)&&e.forEach(t=>{this.addStep(t)}),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 t;t=ee(this.options.confirmCancel)?await this.options.confirmCancel():window.confirm(e),t&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(t=>t.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return ae.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 t=this.getCurrentStep();this.steps.some((n,r)=>{if(n.id===e)return n.isOpen()&&n.hide(),n.destroy(),this.steps.splice(r,1),!0}),t&&t.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,t=!0){const n=xe(e)?this.getById(e):this.steps[e];n&&(this._updateStateBeforeShow(),ee(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,t):(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 t=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach(n=>n.destroy()),(function(n){if(n){const{steps:r}=n;r.forEach(o=>{o.options&&o.options.canClickTarget===!1&&o.options.attachTo&&(ce(o.target)&&o.target.classList.remove("shepherd-target-click-disabled"),o._resolvedExtraHighlightElements&&o._resolvedExtraHighlightElements.forEach(i=>{ce(i)&&i.classList.remove("shepherd-target-click-disabled")}))})}})(this),this.trigger(e,{index:t}),ae.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),e!=="cancel"&&e!=="complete"||this.modal&&(this.modal.destroy(),this.modal=null),ce(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),ae.activeTour=this}setupModal(){const e=this.options.modalContainer||document.body;this.modal=bn(e)}_skipStep(e,t){const n=this.steps.indexOf(e);if(n===this.steps.length-1)this.complete();else{const r=t?n+1:n-1;this.show(r,t)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const t=this.options.tourName||"tour",n=e||lt();this.id=`${t}--${n}`}};const Ce=re.createContext(void 0),wn=Ce.Consumer,En=()=>{const e=re.useContext(Ce);if(!e)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:t}=e;return t},On=({children:e})=>Mt.jsx(Ce.Provider,{value:{Shepherd:ae},children:e});J.JourneyMethods=wn,J.ShepherdJourneyContext=Ce,J.ShepherdJourneyProvider=On,J.useShepherd=En,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-shepherd",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"private": false,
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "AGPL-3.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/
|
|
8
|
+
"url": "https://github.com/shipshapecode/shepherd.git"
|
|
9
9
|
},
|
|
10
10
|
"main": "./dist/index.umd.cjs",
|
|
11
11
|
"module": "./dist/index.js",
|
|
@@ -21,26 +21,29 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
24
|
-
"src"
|
|
24
|
+
"src",
|
|
25
|
+
"LICENSE.md"
|
|
25
26
|
],
|
|
26
27
|
"dependencies": {
|
|
27
|
-
"shepherd.js": "
|
|
28
|
+
"shepherd.js": "15.1.0"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@testing-library/jest-dom": "^6.
|
|
31
|
-
"@testing-library/react": "^16.
|
|
32
|
-
"@types/react": "^19.
|
|
33
|
-
"@vitejs/plugin-react": "^
|
|
34
|
-
"@vitest/ui": "^
|
|
35
|
-
"happy-dom": "^
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
31
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
32
|
+
"@testing-library/react": "^16.3.2",
|
|
33
|
+
"@types/react": "^19.2.14",
|
|
34
|
+
"@vitejs/plugin-react": "^5.1.4",
|
|
35
|
+
"@vitest/ui": "^4.0.18",
|
|
36
|
+
"happy-dom": "^20.6.1",
|
|
37
|
+
"react": "^19.2.4",
|
|
38
|
+
"react-dom": "^19.2.4",
|
|
39
|
+
"typescript": "^5.9.3",
|
|
40
|
+
"vite": "^7.3.1",
|
|
41
|
+
"vite-plugin-dts": "^4.5.4",
|
|
42
|
+
"vitest": "^4.0.18"
|
|
40
43
|
},
|
|
41
44
|
"peerDependencies": {
|
|
42
|
-
"react": "^18.
|
|
43
|
-
"react-dom": "^18.
|
|
45
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
46
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
44
47
|
"typescript": "^5.0.0"
|
|
45
48
|
},
|
|
46
49
|
"publishConfig": {
|