1import{r as u,g as me,ab as R,bF as ut,o as ft,bG as Le,bH as dt,bI as pt,bJ as ke,bK as Fe,bL as gt,bM as mt}from"./index-BJ_cpA-m.js";function Ve(e){return t=>typeof t===e}var yt=Ve("function"),ht=e=>e===null,De=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",Be=e=>!Et(e)&&!ht(e)&&(yt(e)||typeof e=="object"),Et=Ve("undefined");function bt(e,t,n){return Ct(n,e,t)?!0:(xt(n,e,t),e.constructor!==t.constructor?!1:Array.isArray(e)&&Array.isArray(t)?Ot(e,t,n):e instanceof Map&&t instanceof Map?Rt(e,t,n):e instanceof Set&&t instanceof Set?Pt(e,t):e instanceof WeakMap||e instanceof WeakSet?!1:ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)?Tt(e,t):De(e)&&De(t)?e.source===t.source&&e.flags===t.flags:e instanceof Error&&t instanceof Error?St(e,t,n):e.valueOf!==Object.prototype.valueOf?e.valueOf()===t.valueOf():e.toString!==Object.prototype.toString?e.toString()===t.toString():wt(e,t,n))}function ce(e,t,n){return e===t||Number.isNaN(e)&&Number.isNaN(t)?!0:!e||!Be(e)||!t||!Be(t)?!1:bt(e,t,n)}function Ot(e,t,n){const{length:r}=e;if(r!==t.length)return!1;for(let o=r;o--!==0;)if(!ce(e[o],t[o],n))return!1;return!0}function Tt(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let o=e.byteLength;for(;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}function St(e,t,n){return e.message===t.message&&e.name===t.name&&ce(e.cause,t.cause,n)}function Rt(e,t,n){if(e.size!==t.size)return!1;for(const r of e.entries())if(!t.has(r[0]))return!1;for(const r of e.entries())if(!ce(r[1],t.get(r[0]),n))return!1;return!0}function wt(e,t,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let o=r.length;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[o]))return!1;for(let o=r.length;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!ce(e[i],t[i],n))return!1}return!0}function Pt(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function Ct(e,t,n){return e.get(t)?.has(n)??!1}function xt(e,t,n){let r=e.get(t);r||(r=new WeakSet,e.set(t,r)),r.add(n)}function Pe(e,t){return ce(e,t,new WeakMap)}function he(){return!!(typeof window<"u"&&window?.document?.createElement)}function vt(e,...t){e&&e.removeEventListener&&e.removeEventListener(...t)}function It(e,...t){e&&e.addEventListener&&e.addEventListener(...t)}function Nt(){const e=u.useRef(!0);return e.current?(e.current=!1,!0):e.current}function At(e,t){const n=Nt();u.useEffect(()=>{if(!n)return e()},t)}function qe(e){const t=u.useRef(void 0);return u.useEffect(()=>{t.current=e}),t.current}function Lt(e,t){const n=u.useRef(t);return Pe(t,n.current)||(n.current=t),u.useMemo(e,n.current)}function kt(e){u.useEffect(()=>{e()},[])}function Ft(e=0){const[t,n]=u.useState({height:he()?window.innerHeight:0,width:he()?window.innerWidth:0}),r=u.useRef(0),o=u.useRef(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(()=>{n({width:window.innerWidth,height:window.innerHeight})},e)});return u.useEffect(()=>{if(!he())return()=>{};const i=o.current;return n({height:window.innerHeight,width:window.innerWidth}),It(window,"resize",i),()=>{vt(window,"resize",i)}},[]),t}var Dt=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","URL","WeakMap","WeakSet"],Bt=["bigint","boolean","null","number","string","symbol","undefined"];function ae(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(_t(t))return t}function q(e){return t=>ae(t)===e}function _t(e){return Dt.includes(e)}function ne(e){return t=>typeof t===e}function Mt(e){return Bt.includes(e)}var jt=["innerHTML","ownerDocument","style","attributes","nodeValue"],le=e=>Array.isArray(e),$t=e=>ae(e)==="AsyncGeneratorFunction",Ut=q("AsyncFunction"),Ht=ne("bigint"),zt=e=>e===!0||e===!1,Wt=q("Date"),Gt=q("Error"),Q=ne("function"),Kt=q("GeneratorFunction"),Yt=e=>typeof e=="number"&&Number.isInteger(e),Se=q("Map"),Je=e=>Number.isNaN(e),Ce=e=>e===null,Xe=q("Function"),Vt=q("Promise"),qt=q("RegExp"),Re=q("Set"),ue=ne("string"),Jt=ne("symbol"),xe=ne("undefined"),Xt=q("WeakMap"),Zt=q("WeakSet"),ve=e=>Ce(e)||xe(e),Ze=e=>!xe(e),Qt=e=>ne("number")(e)&&!Je(e),en=e=>ue(e)&&e.trim().length>0,tn=e=>{if(!ue(e)||e.length===0)return!1;const t=e.trim();return t.length>0&&Number.isFinite(Number(t))},ye=e=>!ve(e)&&(Q(e)||typeof e=="object"),Qe=e=>{if(ae(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})},nn=e=>Ce(e)||Mt(typeof e),rn=e=>ae(e)==="URL",et=e=>!ve(e)&&Q(e[Symbol.iterator]),on=e=>et(e)&&Q(e.next)&&Q(e.throw),sn=e=>Q(e)&&/^class\s/.test(e.toString()),cn=(e,t)=>!le(e)||!Q(t)?!1:e.every(n=>t(n)),an=e=>ye(e)&&!Qe(e)&&e.nodeType===1&&ue(e.nodeName)&&jt.every(t=>t in e),ln=e=>ue(e)&&e.length===0||le(e)&&e.length===0||ye(e)&&!Se(e)&&!Re(e)&&Object.keys(e).length===0||Re(e)&&e.size===0||Se(e)&&e.size===0,un=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype,fn=(e,t)=>le(e)?e.indexOf(t)>-1:!1,dn=(e,t,n)=>{if(!ye(e)||!t)return!1;const r=e[t];return Q(n)?n(r):Ze(r)};function I(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(le(e))return"Array";if(Xe(e))return"Function";const t=ae(e);return t||"Object"}I.array=le;I.arrayOf=cn;I.asyncGeneratorFunction=$t;I.asyncFunction=Ut;I.bigint=Ht;I.boolean=zt;I.class=sn;I.date=Wt;I.defined=Ze;I.domElement=an;I.empty=ln;I.error=Gt;I.function=Q;I.generator=on;I.generatorFunction=Kt;I.instanceOf=un;I.integer=Yt;I.iterable=et;I.map=Se;I.nan=Je;I.null=Ce;I.nullOrUndefined=ve;I.nonEmptyString=en;I.number=Qt;I.numericString=tn;I.object=ye;I.oneOf=fn;I.plainFunction=Xe;I.plainObject=Qe;I.primitive=nn;I.promise=Vt;I.propertyOf=dn;I.regexp=qt;I.set=Re;I.string=ue;I.symbol=Jt;I.undefined=xe;I.url=rn;I.weakMap=Xt;I.weakSet=Zt;var G=I;var Ee,_e;function pn(){if(_e)return Ee;_e=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,o){return r+n(o)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,Ee=n,Ee}var gn=pn();const be=me(gn);var Oe={exports:{}},Me;function mn(){return Me||(Me=1,(function(e){const t=Object.getPrototypeOf({});function n(){return function(i){return typeof i=="object"&&i!==null&&!(i instanceof RegExp)&&!(i instanceof Date)}}function r(o){function i(m){return m!=="constructor"&&m!=="prototype"&&m!=="__proto__"}function l(m){let T=0;const w=m.length,P=new Array(w);for(T;T<w;++T)P[T]=a(m[T]);return P}function f(m){const T={};if(c&&Object.getPrototypeOf(m)!==t)return c(m);const w=d(m);let P,_,F;for(P=0,_=w.length;P<_;++P)i(F=w[P])&&(T[F]=a(m[F]));return T}function s(m,T){const w=m.length,P=T.length;let _=0;const F=new Array(w+P);for(_;_<w;++_)F[_]=a(m[_]);for(_=0;_<P;++_)F[_+w]=a(T[_]);return F}const p=Object.prototype.propertyIsEnumerable;function y(m){const T=Object.keys(m),w=Object.getOwnPropertySymbols(m);for(let P=0,_=w.length;P<_;++P)p.call(m,w[P])&&T.push(w[P]);return T}const d=o?.symbols?y:Object.keys,c=typeof o?.cloneProtoObject=="function"?o.cloneProtoObject:void 0,h=typeof o?.isMergeableObject=="function"?o.isMergeableObject:n(),S=o?.onlyDefinedProperties===!0;function v(m){return typeof m!="object"||m===null}const B=o&&typeof o.mergeArray=="function"?o.mergeArray({clone:a,deepmerge:O,getKeys:d,isMergeableObject:h}):s;function a(m){return h(m)?Array.isArray(m)?l(m):f(m):m}function E(m,T){const w={},P=d(m),_=d(T);let F,C,b;for(F=0,C=P.length;F<C;++F)i(b=P[F])&&_.indexOf(b)===-1&&(w[b]=a(m[b]));for(F=0,C=_.length;F<C;++F)if(i(b=_[F]))if(b in m)P.indexOf(b)!==-1&&(c&&h(T[b])&&Object.getPrototypeOf(T[b])!==t?w[b]=c(T[b]):w[b]=O(m[b],T[b]));else{if(S&&typeof T[b]>"u")continue;w[b]=a(T[b])}return w}function O(m,T){if(S&&typeof T>"u")return a(m);const w=Array.isArray(T),P=Array.isArray(m);return v(T)?T:h(m)?w&&P?B(m,T):w!==P?a(T):E(m,T):a(T)}function k(){switch(arguments.length){case 0:return{};case 1:return a(arguments[0]);case 2:return O(arguments[0],arguments[1])}let m;
1for(let T=0,w=arguments.length;T<w;++T)m=O(m,arguments[T]);return m}return o?.all?k:O}e.exports=r,e.exports.default=r,e.exports.deepmerge=r,Object.defineProperty(e.exports,"isMergeableObject",{get:n})})(Oe)),Oe.exports}var yn=mn();const hn=me(yn);var Te,je;function En(){if(je)return Te;je=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;Te={left:o("scrollLeft"),top:o("scrollTop")};function o(f){return function(p,y,d,c){d=d||{},typeof d=="function"&&(c=d,d={}),typeof c!="function"&&(c=l);var h=r(),S=p[f],v=d.ease||i,B=isNaN(d.duration)?350:+d.duration,a=!1;return S===y?c(e,p[f]):requestAnimationFrame(O),E;function E(){a=!0}function O(k){if(a)return c(t,p[f]);var m=r(),T=n(1,(m-h)/B),w=v(T);p[f]=w*(y-S)+S,T<1?requestAnimationFrame(O):requestAnimationFrame(function(){c(null,p[f])})}}}function i(f){return .5*(1-Math.cos(Math.PI*f))}function l(){}return Te}var bn=En();const On=me(bn);var pe={exports:{}},Tn=pe.exports,$e;function Sn(){return $e||($e=1,(function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(Tn,function(){function t(r){var o=getComputedStyle(r,null).getPropertyValue("overflow");return o.indexOf("scroll")>-1||o.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var o=r.parentNode;o.parentNode;){if(t(o))return o;o=o.parentNode}return document.scrollingElement||document.documentElement}}return n})})(pe)),pe.exports}var Rn=Sn();const tt=me(Rn),wn={arrowBase:32,arrowColor:"#ffffff",arrowSize:16,arrowSpacing:12,backgroundColor:"#ffffff",beaconSize:36,beaconTrigger:"click",beforeTimeout:5e3,blockTargetInteraction:!1,buttons:["back","close","primary"],closeButtonAction:"close",disableFocusTrap:!1,dismissKeyAction:"close",hideOverlay:!1,loaderDelay:300,offset:10,overlayClickAction:"close",overlayColor:"#00000080",primaryColor:"#000000",scrollDuration:300,scrollOffset:20,showProgress:!1,skipBeacon:!1,skipScroll:!1,spotlightPadding:10,spotlightRadius:4,targetWaitTimeout:1e3,textColor:"#000000",width:380,zIndex:100},Pn={beaconOptions:{offset:-18}},nt={back:"Back",close:"Close",last:"Last",next:"Next",nextWithProgress:"Next ({current} of {total})",open:"Open the dialog",skip:"Skip"},Cn={isFixed:!1,locale:nt,placement:"bottom"},xn={continuous:!1,debug:!1,run:!1,scrollToFirstStep:!1,steps:[]},N={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",REPLAY:"replay",UPDATE:"update",COMPLETE:"complete"},z={TOUR_START:"tour:start",STEP_BEFORE_HOOK:"step:before_hook",STEP_BEFORE:"step:before",SCROLL_START:"scroll:start",SCROLL_END:"scroll:end",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",STEP_AFTER_HOOK:"step:after_hook",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},g={INIT:"init",READY:"ready",BEACON_BEFORE:"beacon_before",BEACON:"beacon",TOOLTIP_BEFORE:"tooltip_before",TOOLTIP:"tooltip",COMPLETE:"complete"},Y={BUTTON_BACK:"button_back",BUTTON_CLOSE:"button_close",BUTTON_PRIMARY:"button_primary",BUTTON_SKIP:"button_skip",KEYBOARD:"keyboard",OVERLAY:"overlay"},L={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"},vn="react-joyride-portal";function In(e){const t={};for(const n in e)e[n]!==void 0&&(t[n]=e[n]);return t}function te(...e){return hn({all:!0,isMergeableObject:t=>!(!G.plainObject(t)||u.isValidElement(t))})(...e)}function rt(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function J(e,t={}){const{defaultValue:n,step:r,steps:o}=t;let i=be(e);if(i)(i.includes("{current}")||i.includes("{total}"))&&r&&o&&(i=i.replace("{current}",r.toString()).replace("{total}",o.toString()));else if(u.isValidElement(e)&&!Object.values(e.props).length&&rt(e.type)==="function")try{i=J(e.type({}),t)}catch{i=be(n)}else i=be(n);return i}function W(e,t,n,...r){if(!e)return;const o=new Date,i=`${String(o.getHours()).padStart(2,"0")}:${String(o.getMinutes()).padStart(2,"0")}:${String(o.getSeconds()).padStart(2,"0")}.${String(o.getMilliseconds()).padStart(3,"0")}`;console.log(`${t} %c${n}%c ${i}`,"font-weight: bold","color: gray; font-weight: normal",...r)}function Nn(e,t){const n=In(t);return{...e,...n}}function se(){}function An(e){return Object.keys(e)}function ge(e,...t){if(!G.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&!t.includes(r)&&(n[r]=e[r]);return n}function Ue(e,...t){if(!G.plainObject(e))throw new TypeError("Expected an object");
1if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function we(e,t,n){const r=i=>i.replace("{current}",String(t)).replace("{total}",String(n));if(rt(e)==="string")return r(e);if(!u.isValidElement(e))return e;const{children:o}=e.props;if(G.string(o)&&o.includes("{current}"))return u.cloneElement(e,{children:r(o)});if(Array.isArray(o))return u.cloneElement(e,{children:o.map(i=>typeof i=="string"?r(i):we(i,t,n))});if(G.function(e.type)&&!Object.values(e.props).length)try{return we(e.type({}),t,n)}catch{return e}return e}function He(e){return An(e).sort().reduce((t,n)=>(t[n]=e[n],t),{})}function Ie(){return!!(typeof window<"u"&&window.document?.createElement)}function ze(e){let t=0,n=0,r=e;for(;r;)t+=r.offsetTop,n+=r.offsetLeft,r=r.offsetParent;return{left:n,top:t}}function Ne(e){return e?e.getBoundingClientRect():null}function Ln(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((i,l)=>i-l),o=Math.floor(r.length/2);return r.length%2===0?(r[o-1]+r[o])/2:r[o]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function V(e){if(!e)return null;if(typeof e=="function")try{return e()}catch{return null}if(typeof e=="object"&&"current"in e)return e.current;if(typeof e=="string")try{return document.querySelector(e)}catch{return null}return e}function kn(e,t,n){const r=Ne(e),o=re(e),i=o?!o.isSameNode(K()):!1,l=n??oe(e);let f=0,s=r?.top??0;return i&&l?s=r?.top??0:o instanceof HTMLElement&&(f=o.scrollTop,!i&&!l&&(s+=f),o.isSameNode(K())||(s+=K().scrollTop)),Math.floor(s-t)}function re(e,t){if(!e)return K();const n=tt(e);if(n){if(n.isSameNode(K()))return t?document:K();if(!(n.scrollHeight>n.offsetHeight))return K()}return n}function Fn(e){const t=e.getBoundingClientRect(),n=K(),r=t.top+t.height/2,o=window.innerHeight/2;return Math.max(0,n.scrollTop+r-o)}function Dn(e,t){if(!e)return 0;const n=tt(e)??K(),r=parseFloat(getComputedStyle(e).scrollMarginTop)||0,o=Ne(n),i=n.scrollTop??0,{offsetTop:l=0,scrollTop:f=0}=n;let s=e.getBoundingClientRect().top+f;if(l&&(ot(e)||Bn(e))){const y=e.getBoundingClientRect(),d=y.top-(o?.top??0),c=d+y.height,h=n.clientHeight,S=h*.2;d>=S&&c<=h-S?s=i:s=d+i}const p=Math.floor(s-t-r);return p<0?0:p}function Bn(e){return e.offsetParent!==document.body}function ot(e){if(!e)return!1;const t=re(e);return t?!t.isSameNode(K()):!1}function oe(e,t="fixed"){if(!e||!(e instanceof Element))return!1;const{nodeName:n}=e;return n==="BODY"||n==="HTML"?!1:getComputedStyle(e).position===t?!0:e.parentNode?oe(e.parentNode,t):!1}function fe(e){if(!e)return!1;let t=e;for(;t&&t!==document.body;){if(t instanceof HTMLElement){const{display:n,visibility:r}=getComputedStyle(t);if(n==="none"||r==="hidden")return!1}t=t.parentElement??null}return!0}function We(e){const{isFirstStep:t,scrollToFirstStep:n,step:r,target:o,targetLifecycle:i}=e;if(r.skipScroll||t&&!n&&i!==g.TOOLTIP||r.placement==="center")return!1;const l=o?.isConnected?re(o):K(),f=l?!l.isSameNode(K()):!1;return(r.isFixed||oe(o))&&!f?!1:l.scrollHeight>l.clientHeight}function K(){return document.scrollingElement??document.documentElement}function Ge(e,t){const{duration:n,element:r}=t;let o=()=>{};const i=new Promise(l=>{const{scrollTop:f}=r,s=e>f?e-f:f-e;o=On.top(r,e,{duration:s<100?50:n},()=>{l()})});return{cancel:o,promise:i}}function _n(e){const t=e.replace(/^#?([\da-f])([\da-f])([\da-f])$/i,(r,o,i,l)=>o+o+i+i+l+l),n=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}const it={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555555",cursor:"pointer",fontSize:16,lineHeight:1,padding:0,WebkitAppearance:"none"},de={...it,borderRadius:4,padding:8};function Mn(e,t){const{styles:n}=e,r=te(n??{},t.styles??{});let{width:o}=t;Ie()&&(o=typeof o=="number"&&window.innerWidth<o?window.innerWidth-30:o);const i={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex};return te({arrow:{alignItems:"center",color:t.arrowColor,display:"inline-flex",justifyContent:"center",position:"absolute"},beaconWrapper:{...it,display:"inline-flex",borderRadius:"50%",position:"relative"},beacon:{height:t.beaconSize,width:t.beaconSize},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${_n(t.primaryColor).join(",")}, 0.2)`,border:`2px solid ${t.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},buttonBack:{...de,color:t.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...de,color:t.textColor,height:12,padding:8,position:"absolute",right:0,top:0,width:12},buttonPrimary:{...de,backgroundColor:t.primaryColor,color:t.backgroundColor},buttonSkip:{...de,color:t.textColor,fontSize:14},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:"100%",transition:"opacity 0.3s"},loader:{alignItems:"center",display:"flex",height:48,inset:0,justifyContent:"center",pointerEvents:"none",position:"fixed",width:48,zIndex:t.zIndex+1},overlay:{...i,backgroundColor:t.overlayColor},spotlight:{},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:12,position:"relative",width:o},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{paddingBottom:12,paddingTop:12},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end"},tooltipFooterSpacer:{flex:1}},r)}const jn=["after","arrowBase","arrowColor","arrowSize","arrowSpacing","backgroundColor","beaconSize","beaconTrigger","before","beforeTimeout","buttons","closeButtonAction","skipBeacon","dismissKeyAction","disableFocusTrap","hideOverlay","skipScroll","blockTargetInteraction","loaderDelay","offset","overlayClickAction","overlayColor","primaryColor","scrollDuration","scrollOffset","showProgress","spotlightPadding","spotlightRadius","targetWaitTimeout","textColor","width","zIndex"];function Ae(e,t){if(!t)return null;const n=te(Cn,Ue(e,"arrowComponent","beaconComponent","floatingOptions","loaderComponent","locale","styles","tooltipComponent"),t),r=te(wn,e.options??{},Ue(t,...jn)),o=Mn(e,{...n,...r}),i=te(Pn,e.floatingOptions??{},n.floatingOptions??{});return{...n,...r,locale:te(nt,e.locale??{},n.locale||{}),floatingOptions:i,spotlightPadding:$n(r.spotlightPadding),styles:o}}function $n(e){return typeof e=="number"?{top:e,right:e,bottom:e,left:e}:{top:e?.top??0,right:e?.right??0,bottom:e?.bottom??0,left:e?.left??0}}function Un(e,t,n){const{action:r}=t,o=n&&[N.PREV,N.NEXT].includes(r);return e.skipBeacon||e.placement==="center"||o}function st(e,t=!1){return G.plainObject(e)?e.target?!0:(W(t,"tour","target is missing from the step"),!1):(W(t,"tour","step must be an object"),!1)}
1function ct(e,t=!1){return G.array(e)?e.every(n=>st(n,t)):(W(t,"tour","steps must be an array"),!1)}var Hn=class{beaconPosition=null;debug;eventListeners=new Map;listeners=new Set;props;snapshot;state;steps;tooltipPosition=null;constructor(e){const{initialStepIndex:t,stepIndex:n,steps:r=[]}=e??{},o=G.number(n);let i=0;this.debug=e?.debug??!1,o?(i=n,G.number(t)&&W(this.debug,"tour","initialStepIndex is ignored in controlled mode")):G.number(t)&&(t>=0&&t<r.length?i=t:r.length>0&&W(this.debug,"tour","initialStepIndex is out of bounds")),this.props=e??{steps:[]},this.steps=r,this.state={action:N.INIT,controlled:o,index:i,lifecycle:g.INIT,origin:null,positioned:!1,scrolling:!1,size:r.length,status:r.length?L.READY:L.IDLE,waiting:!1},this.snapshot=Object.freeze({...this.state})}applyTransitions(e){return e.status===L.WAITING&&e.size>0?{...e,status:L.RUNNING}:e}getStep(e){return Ae(this.props,this.steps[e??this.state.index])}cleanupPositionData=()=>{this.beaconPosition=null,this.tooltipPosition=null};getPositionData=e=>e==="beacon"?this.beaconPosition:this.tooltipPosition;getServerSnapshot=()=>this.snapshot;getSnapshot=()=>this.snapshot;getEventState=()=>ge(this.snapshot,"positioned");getState=()=>ge(this.snapshot,"positioned");setPositionData=(e,t)=>{(e==="beacon"?this.beaconPosition:this.tooltipPosition)?.placement!==t.placement&&W(this.debug,`step:${this.state.index}`,"positioned",`${e} ${t.placement}`),e==="beacon"?this.beaconPosition=t:this.tooltipPosition=t,(this.state.lifecycle===g.BEACON_BEFORE||this.state.lifecycle===g.TOOLTIP_BEFORE)&&!this.state.positioned&&this.updateState({positioned:!0});const n=this.getStep()?.floatingOptions?.onPosition;n&&n(t)};setSteps=e=>{this.steps=e,this.updateState({size:e.length})};dispatch=(e,t)=>{const n=this.eventListeners.get(e.type);if(n)for(const r of n)try{r(e,t)}catch{}};on=(e,t)=>{let n=this.eventListeners.get(e);return n||(n=new Set,this.eventListeners.set(e,n)),n.add(t),()=>{n.delete(t)}};subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});updateState=(e,t=!1)=>{const{controlled:n,index:r}=this.state,o=this.snapshot,i=n&&!t&&e.index!==void 0?r:e.index??r,l={action:e.action??this.state.action,controlled:n,index:i,lifecycle:e.lifecycle??this.state.lifecycle,origin:e.origin??null,positioned:e.positioned??this.state.positioned,scrolling:e.scrolling??this.state.scrolling,size:e.size??this.state.size,status:e.status??this.state.status,waiting:e.waiting??this.state.waiting},f=this.applyTransitions(l);if(this.state=f,!Pe(o,f)){this.snapshot=Object.freeze({...f});for(const s of this.listeners)s(this.snapshot)}}};function zn(e){return new Hn(e)}function Ke(e,t){return Math.min(Math.max(e,0),t)}function Wn(e,t,n){const r=u.useRef(t),o=u.useRef(n);return r.current=t,o.current=n,u.useMemo(()=>{const i=()=>e.current.getSnapshot();return{close:(a=null)=>{const{index:E,status:O}=i();O===L.RUNNING&&e.current.updateState({action:N.CLOSE,index:E+1,origin:a,lifecycle:g.COMPLETE,positioned:!1,scrolling:!1,waiting:!1})},go:a=>{const{controlled:E,size:O,status:k}=i();if(E){W(r.current,"tour","go() is not supported in controlled mode");return}k===L.RUNNING&&e.current.updateState({action:N.GO,index:a,lifecycle:g.COMPLETE,positioned:!1,scrolling:!1,status:a<O?k:L.FINISHED,waiting:!1})},info:()=>ge(e.current.getSnapshot(),"positioned"),next:a=>{const{index:E,size:O,status:k}=i();k===L.RUNNING&&e.current.updateState({action:N.NEXT,index:Ke(E+1,O),lifecycle:g.COMPLETE,origin:a,positioned:!1,scrolling:!1,waiting:!1})},open:()=>{const{status:a}=i();a===L.RUNNING&&e.current.updateState({action:N.UPDATE,lifecycle:g.TOOLTIP_BEFORE,positioned:!1,scrolling:!1,waiting:!1})},prev:a=>{const{index:E,size:O,status:k}=i();k===L.RUNNING&&e.current.updateState({action:N.PREV,index:Ke(E-1,O),lifecycle:g.COMPLETE,origin:a,positioned:!1,scrolling:!1,waiting:!1})},replay:a=>{const{lifecycle:E,status:O}=i();O!==L.RUNNING||E!==g.TOOLTIP||e.current.updateState({action:N.REPLAY,lifecycle:g.COMPLETE,origin:a,positioned:!1,scrolling:!1,waiting:!1})},reset:(a=!1)=>{const{controlled:E}=i();if(E){W(r.current,"tour","reset() is not supported in controlled mode");return}o.current(),e.current.updateState({action:N.RESET,index:0,lifecycle:g.INIT,positioned:!1,scrolling:!1,status:a?L.RUNNING:L.READY,waiting:!1})},skip:a=>{const{status:E}=i();E===L.RUNNING&&e.current.updateState({action:N.SKIP,lifecycle:g.COMPLETE,origin:a,positioned:!1,scrolling:!1,status:L.SKIPPED,waiting:!1})},start:a=>{const{index:E,size:O}=i();o.current(),e.current.updateState({action:N.START,index:G.number(a)?a:E,lifecycle:g.INIT,positioned:!1,scrolling:!1,status:O?L.RUNNING:L.WAITING,waiting:!1},!0)},stop:(a=!1)=>{const{index:E,status:O}=i();[L.FINISHED,L.SKIPPED].includes(O)||e.current.updateState({action:N.STOP,index:E+(a?1:0),lifecycle:g.COMPLETE,positioned:!1,scrolling:!1,status:L.PAUSED,waiting:!1})}}},[e])}const Gn=new Set(["origin","positioned"]);function Kn(e,t){const n=u.useRef(null);u.useEffect(()=>{if(!t)return;const r=e.current.getSnapshot();return W(!0,"tour","init",r),n.current=r,e.current.subscribe(o=>{const i=n.current;if(n.current=o,!i)return;const l={};let f=!1;for(const s of Object.keys(o))o[s]!==i[s]&&!Gn.has(s)&&(l[s]={from:i[s],to:o[s]},(s==="status"||s==="size")&&(f=!0));Object.keys(l).length&&(!f&&o.index>=o.size||W(!0,f?"tour":`step:${o.index}`,"state",l))})},[t,e])}
1function Yn(e,t,n){const r=u.useRef(e),o=u.useRef(t);return r.current=e,o.current=t,u.useCallback((i,l,f)=>{const s={...n.current.getEventState(),error:null,scroll:null,step:l,type:i,...f};r.current?.(s,o.current),n.current.dispatch(s,o.current)},[n])}function Z(e,t){return{hasChanged(n){return e[n]!==t[n]},hasChangedTo(n,r){const o=e[n],i=t[n];return Array.isArray(r)?r.includes(o)&&!r.includes(i):o===r&&i!==r},previous:t}}function Vn(e){const{addFailure:t,controls:n,emitEvent:r,previousState:o,props:i,state:l,step:f,store:s}=e,{action:p,index:y,lifecycle:d,positioned:c,scrolling:h,size:S,status:v}=l,B=qe(f)??null,a=u.useRef(null),E=u.useRef(i),O=u.useRef(l),k=u.useRef(o),m=u.useRef(f),T=u.useRef(B),w=u.useRef(n),P=u.useRef(null),_=u.useRef(null),F=u.useRef(null);E.current=i,O.current=l,k.current=o,m.current=f,T.current=B,w.current=n;const C=()=>{P.current&&(clearInterval(P.current),P.current=null),_.current=null,F.current&&(F.current.cancel(),F.current=null)};u.useEffect(()=>{if(!k.current)return;const{hasChangedTo:b}=Z(O.current,k.current),x=b("action",[N.NEXT,N.PREV,N.SKIP,N.CLOSE,N.REPLAY]),A=p===N.START&&(a.current===N.CLOSE||a.current===N.REPLAY);(x||A)&&(a.current=p)},[p]),u.useEffect(()=>{if(!k.current)return()=>{C()};const{hasChanged:b}=Z(O.current,k.current),x=m.current;if(b("index")&&C(),v!==L.RUNNING||!x||d!==g.INIT)return()=>{C()};const{hasChangedTo:A}=Z(O.current,k.current);A("status",L.RUNNING)&&[L.IDLE,L.READY,L.PAUSED].includes(k.current.status)&&r(z.TOUR_START,x),s.current.cleanupPositionData();const{debug:M}=E.current;if(x.before&&!F.current){W(M,`step:${y}`,"before()",x),F.current={cancel:()=>{}},s.current.updateState({waiting:!0}),r(z.STEP_BEFORE_HOOK,x,{action:a.current??O.current.action});const U=()=>{F.current=null,s.current.updateState({action:a.current??O.current.action,waiting:!1,lifecycle:g.READY})},D=new AbortController,$=x.beforeTimeout;F.current={cancel:()=>D.abort()};const j=$?setTimeout(()=>{D.signal.aborted||(W(M,`step:${y}`,"before()","timed out",`${$}ms`),D.abort(),t(x,"before_hook"),r(z.ERROR,x,{error:new Error("Step before hook timed out")}),U())},$):null;x.before({...s.current.getState(),action:a.current??s.current.getState().action,step:x}).then(()=>{D.signal.aborted||(j&&clearTimeout(j),U())}).catch(H=>{D.signal.aborted||(j&&clearTimeout(j),t(x,"before_hook"),r(z.ERROR,x,{error:H instanceof Error?H:new Error(String(H))}),U())})}else if(!F.current){P.current&&_.current!==x.target&&C();const U=V(x.target);if(U&&fe(U))C(),s.current.updateState({action:a.current??N.UPDATE,lifecycle:g.READY,waiting:!1});else if(x.targetWaitTimeout===0)s.current.updateState({action:a.current??N.UPDATE,lifecycle:g.READY,waiting:!1});else if(!P.current){const{targetWaitTimeout:D}=x,$=Date.now();_.current=x.target,W(M,`step:${y}`,"polling","started",`${D}ms`),s.current.updateState({waiting:!0}),P.current=setInterval(()=>{const j=V(x.target),H=Date.now()-$,ee=H>=D;(j&&fe(j)||ee)&&(W(M,`step:${y}`,"polling",j&&fe(j)?"found":"timed out",`${H}ms`),C(),s.current.updateState({action:a.current??N.UPDATE,lifecycle:g.READY,waiting:!1}))},100)}}return()=>{C()}},[t,r,y,d,v,s]),u.useEffect(()=>{if(!k.current)return;const{hasChanged:b,hasChangedTo:x,previous:A}=Z(O.current,k.current),M=m.current;if(!M)return;const U=V(M.target),D=!!U;if(D&&fe(U)){if(x("lifecycle",g.READY)&&A.lifecycle===g.INIT&&r(z.STEP_BEFORE,M,{action:a.current??O.current.action}),x("lifecycle",g.READY)){const $=O.current,j=Un(M,$,E.current.continuous)?g.TOOLTIP:g.BEACON,H=V(M.scrollTarget??M.spotlightTarget??M.target),ee=We({isFirstStep:$.index===0,scrollToFirstStep:E.current.scrollToFirstStep,step:M,target:H,targetLifecycle:j}),lt=j===g.TOOLTIP?g.TOOLTIP_BEFORE:g.BEACON_BEFORE;W(E.current.debug,`step:${y}`,"scroll",ee?"needed":"skipped"),s.current.updateState({action:N.UPDATE,lifecycle:lt,scrolling:ee})}}else if(O.current.status===L.RUNNING&&d!==g.INIT&&d!==g.COMPLETE&&b("lifecycle")){W(E.current.debug,`step:${y}`,D?"Target not visible":"Target not mounted",M),t(M,"target_not_found"),r(z.TARGET_NOT_FOUND,M);const $=O.current;$.controlled||s.current.updateState({action:N.UPDATE,index:$.index+($.action===N.PREV?-1:1),lifecycle:g.INIT})}},[t,r,y,d,s]),u.useEffect(()=>{if(!k.current)return;const{hasChangedTo:b,previous:x}=Z(O.current,k.current),A=m.current,M=T.current;if(A&&b("lifecycle",g.TOOLTIP_BEFORE)&&x.lifecycle===g.BEACON){const $=V(A.scrollTarget??A.spotlightTarget??A.target);if(We({isFirstStep:O.current.index===0,scrollToFirstStep:E.current.scrollToFirstStep,step:A,target:$,targetLifecycle:g.TOOLTIP})){s.current.updateState({scrolling:!0,positioned:!1});return}}const U=d===g.BEACON_BEFORE||d===g.TOOLTIP_BEFORE;if(A&&U&&!h){const $=d===g.TOOLTIP_BEFORE?g.TOOLTIP:g.BEACON;s.current.updateState({action:N.UPDATE,lifecycle:$})}A&&b("lifecycle",g.BEACON)&&r(z.BEACON,A),A&&b("lifecycle",g.TOOLTIP)&&r(z.TOOLTIP,A);const D=O.current;if((D.status===L.RUNNING||D.controlled&&D.status===L.PAUSED&&A)&&M&&b("lifecycle",g.COMPLETE)&&x.lifecycle===g.TOOLTIP&&(r(z.STEP_AFTER,M,{action:a.current??N.UPDATE,index:x.index??D.index,lifecycle:D.lifecycle}),M.after)){r(z.STEP_AFTER_HOOK,M,{action:a.current??N.UPDATE,index:x.index??D.index,lifecycle:D.lifecycle});try{M.after({...s.current.getState(),action:a.current??N.UPDATE,index:x.index??D.index,lifecycle:D.lifecycle,step:M})}catch{}}},[r,d,c,h,s]),u.useEffect(()=>{if(!k.current)return;const{hasChangedTo:b,previous:x}=Z(O.current,k.current),A=m.current,M=T.current;
1if(b("action",N.REPLAY)&&b("lifecycle",g.COMPLETE)){s.current.updateState({lifecycle:g.INIT});return}S&&!A&&d===g.INIT&&s.current.updateState({action:N.UPDATE,lifecycle:g.COMPLETE,status:L.FINISHED}),!O.current.controlled&&v===L.RUNNING&&b("lifecycle",g.COMPLETE)&&y<S&&s.current.updateState({action:N.UPDATE,lifecycle:g.INIT}),b("lifecycle",g.COMPLETE)&&y>=S&&s.current.updateState({action:N.UPDATE,lifecycle:g.COMPLETE,status:L.FINISHED});const U=A??M??Ae(E.current,E.current.steps[y-1]);if(U&&b("status",[L.FINISHED,L.SKIPPED])){let D;A?D=y:M?D=x.index??y:D=y-1,r(z.TOUR_END,U,{index:D}),O.current.controlled||w.current.reset(),a.current=null}A&&b("action",N.STOP)&&(a.current=null,r(z.TOUR_STATUS,A)),A&&b("action",N.RESET)&&(r(z.TOUR_STATUS,A),a.current=null)},[p,r,y,d,S,v,s])}function qn({controls:e,emitEvent:t,props:n,state:r,store:o}){const{debug:i,initialStepIndex:l,run:f,stepIndex:s,steps:p}=n,y=u.useRef(void 0),d=u.useRef(r),c=u.useRef(e);d.current=r,c.current=e,u.useEffect(()=>{const h=y.current;if(y.current=n,!h||n===h)return;const{hasChanged:S}=Z(n,h);if(Pe(h.steps,p)||(ct(p,i)?o.current.setSteps(p):(W(i,"tour","Steps are not valid",p),t(z.ERROR,p[0]??{target:"",content:""},{error:new Error("Steps are not valid")}))),S("run"))f?o.current.getState().size&&c.current.start(s??l):c.current.stop();else if(G.number(s)&&S("stepIndex")){const v=G.number(h.stepIndex)&&h.stepIndex<s?N.NEXT:N.PREV;[L.FINISHED,L.SKIPPED].includes(d.current.status)||o.current.updateState({action:v,index:s,lifecycle:g.INIT,positioned:!1},!0)}},[i,t,l,n,f,s,p,o])}function Jn(e,t){const{beaconPosition:n,lifecycle:r,scrollOffset:o,step:i}=t;if(i.scrollTarget||i.spotlightTarget)return Math.max(0,e);let l=e-i.spotlightPadding.top;if(r===g.BEACON_BEFORE&&n?.placement){const f=Xn(n);["bottom"].includes(n.placement)||(l+=Math.floor(f-o))}else if(r===g.TOOLTIP_BEFORE){const{placement:f}=i;if(f==="top"){const s=document.querySelector(".react-joyride__floater")?.getBoundingClientRect().height??0,p=i.floatingOptions?.hideArrow?0:i.arrowSize,y=i.offset+i.spotlightPadding.top+p;l-=s+y}else if(f==="left"||f==="right"){const s=document.querySelector(".react-joyride__floater")?.getBoundingClientRect().height??0,p=V(i.target)?.getBoundingClientRect().height??0,y=o+i.spotlightPadding.top+p/2-s/2;y<o&&(l-=o-y)}}return Math.max(0,l)}function Xn(e){const t=e.middlewareData?.offset;return t?["left","right"].some(n=>e.placement.startsWith(n))?t.x:t.y:0}function Zn({emitEvent:e,previousState:t,props:n,state:r,step:o,store:i}){const{index:l,lifecycle:f,positioned:s,scrolling:p,status:y}=r,d=u.useRef(null),c=u.useRef(r),h=u.useRef(t),S=u.useRef(n),v=u.useRef(o);c.current=r,h.current=t,S.current=n,v.current=o,u.useEffect(()=>()=>{d.current?.()},[]),u.useEffect(()=>{if(!h.current||!v.current)return;const{hasChangedTo:B}=Z(c.current,h.current),a=v.current,{debug:E}=S.current,{scrollDuration:O}=a,k=f===g.BEACON_BEFORE||f===g.TOOLTIP_BEFORE;if(y===L.RUNNING&&k&&p&&B("positioned",!0)){const m=V(a.scrollTarget??a.spotlightTarget??a.target),T=i.current.getPositionData("beacon"),w=re(m),P=w?!w.isSameNode(K()):!1;d.current?.(),(async()=>{if(P&&!oe(w)){const U=K(),D=Fn(w),$={initial:U.scrollTop,target:D,element:U,duration:O};e(z.SCROLL_START,a,{scroll:$});const{cancel:j,promise:H}=Ge(D,{element:U,duration:O});d.current=j,await H,e(z.SCROLL_END,a,{scroll:$})}const F=Math.floor(Dn(m,a.scrollOffset))||0,C=P?F:Jn(F,{beaconPosition:T,lifecycle:f,scrollOffset:a.scrollOffset,step:a});W(E,`step:${l}`,"scroll",P?"custom":"document",`${F} â ${C}`);const b=w,x={initial:b.scrollTop,target:C,element:b,duration:O};e(z.SCROLL_START,a,{scroll:x});const{cancel:A,promise:M}=Ge(C,{element:b,duration:O});d.current=A,await M,e(z.SCROLL_END,a,{scroll:x}),i.current.updateState({scrolling:!1})})().catch(()=>{i.current.updateState({scrolling:!1})})}},[e,l,f,s,p,y,i])}function Qn(e){const t=Lt(()=>Nn(xn,e),[e]),{debug:n,initialStepIndex:r,onEvent:o,run:i,stepIndex:l,steps:f}=t,s=u.useRef(zn(t)),p=ut.useSyncExternalStore(s.current.subscribe,s.current.getSnapshot,s.current.getServerSnapshot),[y,d]=u.useState([]),c=u.useCallback((m,T)=>{d(w=>[...w,{reason:T,step:m}])},[]),h=u.useCallback(()=>{d([])},[]);Kn(s,n);const S=Wn(s,n,h),v=Yn(o,S,s),{index:B,size:a,status:E}=p,O=qe(p),k=u.useMemo(()=>Ae(t,f[B]),[B,t,f]);return kt(()=>{i&&a&&ct(f,n)&&S.start(l??r)}),At(()=>{i&&a&&E===L.IDLE&&s.current.updateState({status:L.READY})},[i,a,E]),qn({controls:S,emitEvent:v,props:t,state:p,store:s}),Vn({addFailure:c,controls:S,emitEvent:v,previousState:O,props:t,state:p,step:k,store:s}),Zn({emitEvent:v,previousState:O,props:t,state:p,step:k,store:s}),{controls:S,failures:y,mergedProps:t,state:p,step:k,store:s}}function er(e){const[t,n]=u.useState(null);return u.useEffect(()=>{let r=null,o=!1;if(e)if(G.domElement(e))r=e,o=!0;else{const i=document.querySelector(e);
1i&&(r=i)}else{const i=document.createElement("div");i.id=vn,document.body.appendChild(i),r=i}return n(r),()=>{!r||o||r.parentNode===document.body&&document.body.removeChild(r)}},[e]),t}const tr={animation:"joyride-loader-spin 1s linear infinite",border:"5px solid rgba(0, 0, 0, 0.1)",borderRadius:"50%",borderTopColor:"#555"};function nr({nonce:e,step:t}){const{loaderComponent:n}=t,r=!!n;if(u.useEffect(()=>{if(r||document.getElementById("joyride-loader-animation"))return se;const s=document.createElement("style");return s.id="joyride-loader-animation",e&&s.setAttribute("nonce",e),s.appendChild(document.createTextNode(` 2 @keyframes joyride-loader-spin { 3 to { transform: rotate(360deg); } 4 } 5 `)),document.head.appendChild(s),()=>{const p=document.getElementById("joyride-loader-animation");p?.parentNode&&p.parentNode.removeChild(p)}},[r,e]),n===null)return null;const{height:o,width:i,...l}=t.styles.loader;let f;if(n){const s=n;f=R.createElement(s,{step:t})}else f=R.createElement("div",{style:{...tr,height:o,width:i,borderTopColor:t.primaryColor}});return R.createElement("div",{className:"react-joyride__loader","data-testid":"loader",style:l},f)}const rr={height:0,isFixed:!1,left:0,top:0,width:0};function ie(e,t){const n=V(e);if(!n)return rr;const r=Ne(n),o=oe(n),i=kn(n,t.top,o);return{height:Math.round((r?.height??0)+t.top+t.bottom),isFixed:o,left:Math.round((r?.left??0)-t.left),top:i,width:Math.round((r?.width??0)+t.left+t.right)}}function or(e,t,n){const[r,o]=u.useState(()=>ie(e,t)),i=u.useRef(void 0),l=u.useRef(null),f=u.useRef(n),s=u.useRef(null),p=u.useCallback(()=>{clearTimeout(i.current),i.current=window.setTimeout(()=>{o(d=>{const c=ie(e,t);return d.top===c.top&&d.left===c.left&&d.width===c.width&&d.height===c.height&&d.isFixed===c.isFixed?d:c})},100)},[e,t]);u.useEffect(()=>{let d=null;const c=S=>{l.current=re(S,!0),l.current&&l.current.addEventListener("scroll",p,{passive:!0}),window.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",p),typeof ResizeObserver<"u"&&(s.current=new ResizeObserver(p),s.current.observe(S)),o(ie(e,t))},h=V(e);return h?c(h):(d=new MutationObserver(()=>{const S=V(e);S&&(d?.disconnect(),d=null,c(S))}),d.observe(document.body,{childList:!0,subtree:!0})),()=>{d?.disconnect(),l.current&&l.current.removeEventListener("scroll",p),window.removeEventListener("scroll",p),window.removeEventListener("resize",p),s.current?.disconnect(),clearTimeout(i.current)}},[e,t,p]),u.useEffect(()=>{f.current&&!n&&o(ie(e,t)),f.current=n},[n,e,t]);let y=r;return f.current&&!n&&(y=ie(e,t)),y}function ir(e,t,n){let r=`M0 0H${e}V${t}H0Z`;return n&&(r+=` ${n}`),r}function Ye(e,t,n,r,o){if(n<=0||r<=0)return"";const i=Math.max(0,Math.min(o,n/2,r/2));let l=`M${e+i} ${t}`;return l+=`H${e+n-i}`,l+=`A${i} ${i} 0 0 1 ${e+n} ${t+i}`,l+=`V${t+r-i}`,l+=`A${i} ${i} 0 0 1 ${e+n-i} ${t+r}`,l+=`H${e+i}`,l+=`A${i} ${i} 0 0 1 ${e} ${t+r-i}`,l+=`V${t+i}`,l+=`A${i} ${i} 0 0 1 ${e+i} ${t}Z`,l}const sr=[g.BEACON_BEFORE,g.BEACON];function cr(e){const{blockTargetInteraction:t,continuous:n,hideOverlay:r,lifecycle:o,onClickOverlay:i,overlayClickAction:l,placement:f,portalElement:s,scrolling:p,spotlightPadding:y,spotlightRadius:d,spotlightTarget:c,styles:h,target:S,waiting:v}=e,B=Ft(),a=or(c??S,y,p||v),E=u.useRef(null),O=(o===g.TOOLTIP||o===g.TOOLTIP_BEFORE)&&f!=="center",[k,m]=u.useState(!1),T=s?E.current?.offsetParent:null,w=T?.clientWidth??B.width,P=T?.clientHeight??Ln()??B.height,_=h.overlay?.backgroundColor??"rgba(0, 0, 0, 0.5)",F=u.useMemo(()=>{const{backgroundColor:U,mixBlendMode:D,...$}=h.overlay;return{height:P,pointerEvents:"none",...$}},[P,h.overlay]),C=O&&!p&&!v;u.useEffect(()=>{C?requestAnimationFrame(()=>m(!0)):m(!1)},[C]);const b=n&&sr.includes(o),x=!n&&o!==g.TOOLTIP;if(r||!v&&(b||x))return null;let A="";if(C)if(s&&T){const U=V(c??S);if(U){const D=ze(U),$=ze(T);A=Ye(D.left-$.left-y.left,D.top-$.top-y.top,U.offsetWidth+y.left+y.right,U.offsetHeight+y.top+y.bottom,d)}}else A=Ye(a.left,a.top,a.width,a.height,d);const M=ir(w,P,A);return R.createElement("div",{ref:E,"aria-hidden":"true",className:"react-joyride__overlay","data-testid":"overlay",style:F},R.createElement("svg",{className:"react-joyride__spotlight","data-testid":"spotlight",style:{height:P,left:0,position:a.isFixed?"fixed":"absolute",top:0,width:w}},R.createElement("path",{d:M,fill:_,fillRule:"evenodd",onClick:i,style:{cursor:l?"pointer":"default",pointerEvents:"auto"}}),A&&R.createElement("path",{d:A,fill:_,style:{opacity:k?0:1,pointerEvents:t?"auto":"none",transition:"opacity 0.2s"}}),A&&Object.keys(h.spotlight).length>0&&R.createElement("path",{d:A,fill:"none",style:{pointerEvents:"none"},...h.spotlight})))}function at(e){const{children:t,element:n}=e;return n?ft.createPortal(t,n):null}const ar='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), area[href], [tabindex]:not
5([tabindex="-1"]), [contenteditable]';function lr(e,t){const n=u.useRef(null);u.useEffect(()=>{if(!e)return se;n.current=document.activeElement;const r=i=>{if(i.key!=="Tab")return;const l=[...e.querySelectorAll(ar)],{shiftKey:f}=i;if(!l.length)return;i.preventDefault();let s=document.activeElement?l.indexOf(document.activeElement):0;s===-1||!f&&s+1===l.length?s=0:f&&s===0?s=l.length-1:s+=f?-1:1,l[s].focus()};e.addEventListener("keydown",r,!1);let o;{const i=e.querySelector(t);i&&(o=setTimeout(()=>{i.focus({preventScroll:!0})},100))}return()=>{e.removeEventListener("keydown",r),o!==void 0&&clearTimeout(o),n.current?.focus({preventScroll:!0})}},[e,t])}function X(e,t,n){const[r]=e.split("-");switch(r){case"top":case"bottom":return{width:t,height:n};case"left":case"right":return{width:n,height:t};default:return null}}function ur(e,t,n){const[r]=e.split("-");switch(r){case"top":return{points:`0,0 ${t/2},${n} ${t},0`,...X(e,t,n)};case"bottom":return{points:`${t},${n} ${t/2},0 0,${n}`,...X(e,t,n)};case"left":return{points:`0,0 ${n},${t/2} 0,${t}`,...X(e,t,n)};case"right":return{points:`${n},${t} ${n},0 0,${t/2}`,...X(e,t,n)};default:return null}}function fr(e,t,n,r){if(!t)return{};const[o]=e.split("-");switch(o){case"top":return{bottom:-n,left:t.x??0,...X(e,r,n)};case"bottom":return{top:-n,left:t.x??0,...X(e,r,n)};case"left":return{right:-n,top:t.y??0,...X(e,r,n)};case"right":return{left:-n,top:t.y??0,...X(e,r,n)};default:return{}}}function dr({arrowComponent:e,arrowRef:t,base:n,placement:r,position:o,size:i,styles:l}){const f=e;let s=null;if(f){if(!X(r,n,i))return null;s=R.createElement("span",{style:{flexShrink:0}},R.createElement(f,{base:n,placement:r,size:i}))}else{const p=ur(r,n,i);if(!p)return null;s=R.createElement("svg",{height:p.height,width:p.width,xmlns:"http://www.w3.org/2000/svg"},R.createElement("polygon",{fill:"currentColor",points:p.points}))}return R.createElement("span",{ref:t,className:"react-joyride__arrow","data-testid":"arrow",style:{...l,...fr(r,o,i,n),...o?{}:{visibility:"hidden"}}},s)}function pr(e){const{beaconComponent:t,continuous:n,index:r,isLastStep:o,locale:i,nonce:l,onInteract:f,shouldFocus:s,size:p,step:y,styles:d}=e,c=u.useRef(null),h=!!t;u.useEffect(()=>{if(h||document.getElementById("joyride-beacon-animation"))return se;const B=document.createElement("style");B.id="joyride-beacon-animation",l&&B.setAttribute("nonce",l),B.appendChild(document.createTextNode(` 6 @keyframes joyride-beacon-inner { 7 20% { 8 opacity: 0.9; 9 } 10 11 90% { 12 opacity: 0.7; 13 } 14 } 15 16 @keyframes joyride-beacon-outer { 17 0% { 18 transform: scale(1); 19 } 20 21 45% { 22 opacity: 0.7; 23 transform: scale(0.75); 24 } 25 26 100% { 27 opacity: 0.9; 28 transform: scale(1); 29 } 30 } 31 `)),document.head.appendChild(B);const a=setTimeout(()=>{G.domElement(c.current)&&s&&c.current.focus()},0);return()=>{clearTimeout(a);const E=document.getElementById("joyride-beacon-animation");E?.parentNode&&E.parentNode.removeChild(E)}},[h,l,s]);const S=J(i.open);let v;if(t){const B=t;v=R.createElement(B,{continuous:n,index:r,isLastStep:o,size:p,step:y})}else v=R.createElement("span",{style:d.beacon},R.createElement("span",{style:d.beaconOuter}),R.createElement("span",{style:d.beaconInner}));return R.createElement("button",{ref:c,"aria-label":S,className:"react-joyride__beacon","data-testid":"button-beacon",onClick:f,onMouseEnter:f,style:d.beaconWrapper,title:S,type:"button"},v)}function gr({styles:e,...t}){const{color:n,height:r,width:o,...i}=e;return R.createElement("button",{style:i,type:"button",...t},R.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof o=="number"?`${o}px`:o,xmlns:"http://www.w3.org/2000/svg"},R.createElement("g",null,R.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}function mr(e){const{backProps:t,closeProps:n,index:r,isLastStep:o,primaryProps:i,skipProps:l,step:f,tooltipProps:s}=e,{buttons:p,content:y,styles:d,title:c}=f,h={};p.includes("primary")&&(h.primary=R.createElement("button",{"data-testid":"button-primary",style:d.buttonPrimary,type:"button",...i})),p.includes("skip")&&!o&&(h.skip=R.createElement("button",{"aria-live":"off","data-testid":"button-skip",style:d.buttonSkip,type:"button",...l})),p.includes("back")&&r>0&&(h.back=R.createElement("button",{"data-testid":"button-back",style:d.buttonBack,type:"button",...t})),h.close=p.includes("close")&&R.createElement(gr,{"data-testid":"button-close",styles:d.buttonClose,...n});const S=c?{"aria-labelledby":"joyride-tooltip-title","aria-describedby":"joyride-tooltip-content"}:{"aria-label":J(y),"aria-describedby":"joyride-tooltip-content"};return R.createElement("div",{key:"JoyrideTooltip",className:"react-joyride__tooltip","data-joyride-step":r,...f.id&&{"data-joyride-id":f.id},style:d.tooltip,...s,...S},R.createElement("div",{style:d.tooltipContainer},c&&R.createElement("h4",{id:"joyride-tooltip-title",style:d.tooltipTitle},c),R.createElement("div",{id:"joyride-tooltip-content",style:d.tooltipContent},y)),p.some(v=>v==="back"||v==="primary"||v==="skip")&&R.createElement("div",{style:d.tooltipFooter},R.createElement("div",{style:d.tooltipFooterSpacer},h.skip),h.back,h.primary),h.close)}function yr(e){const{continuous:t,controls:n,index:r,isLastStep:o,size:i,step:l}=e,f=a=>{a.preventDefault(),n.prev(Y.BUTTON_BACK)},s=a=>{a.preventDefault(),l.closeButtonAction==="skip"?n.skip(Y.BUTTON_CLOSE):l.closeButtonAction==="replay"?n.replay(Y.BUTTON_CLOSE):n.close(Y.BUTTON_CLOSE)},p=a=>{if(a.preventDefault(),!t){n.close(Y.BUTTON_PRIMARY);return}n.next(Y.BUTTON_PRIMARY)},y=a=>{a.preventDefault(),n.skip(Y.BUTTON_SKIP)},d=()=>{const{back:a,close:E,last:O,next:k,nextWithProgress:m,skip:T}=l.locale,w=J(a),P=J(E),_=J(O),F=J(k),C=J(T);let b=E,x=P;if(t){if(b=k,x=F,l.showProgress&&!o){const A=J(m,{step:r+1,steps:i});b=we(m,r+1,i),x=A}o&&(b=O,x=_)}return{backProps:{"aria-label":w,children:a,"data-action":"back",onClick:f,role:"button",title:w},closeProps:{"aria-label":P,children:E,"data-action":"close",onClick:s,role:"button",title:P},primaryProps:{"aria-label":x,children:b,"data-action":"primary",onClick:p,role:"button",title:x},skipProps:{"aria-label":C,children:T,"data-action":"skip",onClick:y,role:"button",title:C},tooltipProps:{"aria-modal":!0,role:"alertdialog"}}},{arrowComponent:c,beaconComponent:h,tooltipComponent:S,...v}=l;let B;if(S){const a=S;B=R.createElement(a,{...d(),continuous:t,controls:n,index:r,isLastStep:o,size:i,step:v})}else B=R.createElement(mr,{...d(),continuous:t,controls:n,index:r,isLastStep:o,size:i,step:v});return B}function hr(e){if(e.startsWith("left"))return["top","bottom"];if(e.startsWith("right"))return["bottom","top"]}function Er(e,t,n){return e?[gt()]:t.floatingOptions?.flipOptions===!1?[]:[mt({crossAxis:!1,fallbackPlacements:hr(n),padding:20,...t.floatingOptions?.flipOptions})]}function br(e){const{continuous:t,controls:n,index:r,lifecycle:o,nonce:i,open:l,portalElement:f,setPositionData:s,setTooltipRef:p,shouldScroll:y,size:d,step:c,target:h,updateState:S}=e,v=u.useRef(null),B=u.useRef({}),a=u.useRef({}),E=c.placement==="center",O=c.placement==="auto",k=u.useMemo(()=>({getBoundingClientRect:()=>({x:window.innerWidth/2,y:window.innerHeight/2,top:window.innerHeight/2,left:window.innerWidth/2,bottom:window.innerHeight/2,right:window.innerWidth/2,width:0,height:0})}),[]),m=u.useMemo(()=>
31ot(h)?re(h):void 0,[h]),T=u.useMemo(()=>oe(h),[h]),w=u.useMemo(()=>m?{boundary:m,rootBoundary:"viewport"}:{},[m]),P=E||O?"bottom":c.placement,_=E?"fixed":c.floatingOptions?.strategy??(c.isFixed||T?"fixed":"absolute"),F=u.useMemo(()=>E?[{name:"center",fn:({rects:j})=>({x:(window.innerWidth-j.floating.width)/2,y:(window.innerHeight-j.floating.height)/2})}]:[Le(({placement:j})=>{let H="right";j.startsWith("top")?H="top":j.startsWith("bottom")?H="bottom":j.startsWith("left")&&(H="left");const ee=c.spotlightTarget?0:c.spotlightPadding[H];return c.offset+ee+(c.floatingOptions?.hideArrow?0:c.arrowSize)},[c.offset,c.spotlightPadding,c.spotlightTarget,c.arrowSize,c.floatingOptions?.hideArrow]),...Er(O,c,P),dt({padding:10,...w,...c.floatingOptions?.shiftOptions}),...c.floatingOptions?.hideArrow?[]:[pt({element:v,padding:c.arrowSpacing},[c.arrowSpacing,c.arrowBase])],...c.floatingOptions?.middleware??[]],[E,c,O,P,w]),C=ke({...E?{elements:{reference:k}}:{},placement:P,strategy:_,middleware:F}),b=ke({strategy:_,placement:c.beaconPlacement??(O||E?"bottom":c.placement),middleware:u.useMemo(()=>[Le(c.floatingOptions?.beaconOptions?.offset??-18)],[c.floatingOptions?.beaconOptions?.offset]),whileElementsMounted:Fe});a.current=C.middlewareData,B.current=b.middlewareData,u.useEffect(()=>{const{floating:j,reference:H}=C.elements;if(!(!H||!j||o!==g.TOOLTIP))return Fe(H,j,C.update,c.floatingOptions?.autoUpdate)},[o,C.update,c.floatingOptions?.autoUpdate,c.target,C.elements]),u.useEffect(()=>{!E&&h&&C.refs.setReference(h),h&&b.refs.setReference(h)},[b.refs,E,h,C.refs]),u.useEffect(()=>{C.isPositioned&&s("tooltip",{placement:C.placement,x:C.x??0,y:C.y??0,middlewareData:a.current})},[s,C.isPositioned,C.placement,C.x,C.y]),u.useEffect(()=>{b.isPositioned&&s("beacon",{placement:b.placement,x:b.x??0,y:b.y??0,middlewareData:B.current})},[s,b.isPositioned,b.placement,b.x,b.y]);const x=c.zIndex+1,A=u.useCallback(j=>{j.type==="mouseenter"&&c.beaconTrigger!=="hover"||S({lifecycle:g.TOOLTIP_BEFORE,positioned:!1})},[c.beaconTrigger,S]),M=u.useCallback(j=>{j&&(C.refs.setFloating(j),p(j))},[C.refs,p]),{arrow:U,floater:D}=c.styles;let $=null;if(o===g.TOOLTIP||o===g.TOOLTIP_BEFORE){const j=He({...D,...C.floatingStyles,zIndex:x,opacity:l&&C.isPositioned?1:0,...!l&&{transition:"none"}});$=R.createElement("div",{ref:M,className:"react-joyride__floater","data-testid":"floater",id:`react-joyride-step-${r}`,style:j},R.createElement(yr,{continuous:t,controls:n,index:r,isLastStep:r+1===d,size:d,step:c}),!E&&!c.floatingOptions?.hideArrow&&R.createElement(dr,{arrowComponent:c.arrowComponent,arrowRef:v,base:c.arrowBase,placement:C.placement,position:C.middlewareData.arrow,size:c.arrowSize,styles:U}))}else(o===g.BEACON||o===g.BEACON_BEFORE)&&($=R.createElement("div",{ref:b.refs.setFloating,className:"react-joyride__floater","data-testid":"floater-beacon",id:`react-joyride-step-${r}-beacon`,style:He({...b.floatingStyles,zIndex:x})},R.createElement(pr,{beaconComponent:c.beaconComponent,continuous:t,index:r,isLastStep:r+1===d,locale:c.locale,nonce:i,onInteract:A,shouldFocus:y,size:d,step:c,styles:c.styles})));return R.createElement(at,{element:f},$)}function Or(e){const{continuous:t,controls:n,index:r,lifecycle:o,nonce:i,portalElement:l,setPositionData:f,shouldScroll:s,size:p,step:y,updateState:d}=e,[c,h]=u.useState(null);lr(y.disableFocusTrap?null:c,"[data-action=primary]");const S=V(y.target),v=o===g.TOOLTIP;return!st(y)||!G.domElement(S)?null:R.createElement(br,{key:`JoyrideStep-${r}`,continuous:t,controls:n,index:r,lifecycle:o,nonce:i,open:v,portalElement:l,setPositionData:f,setTooltipRef:h,shouldScroll:s,size:p,step:y,target:S,updateState:d})}function Tr({controls:e,mergedProps:t,state:n,step:r,store:o}){const{continuous:i,debug:l,nonce:f,portalElement:s,scrollToFirstStep:p}=t,y=er(s),{index:d,lifecycle:c,status:h}=n,S=h===L.RUNNING,[v,B]=u.useState(!1),a=u.useRef(null),E=r?.loaderDelay??0;u.useEffect(()=>(n.waiting?E===0?B(!0):a.current=setTimeout(()=>{B(!0)},E):B(!1),()=>{a.current&&(clearTimeout(a.current),a.current=null)}),[E,n.waiting]),u.useEffect(()=>{if(!S)return;const m=T=>{!r||c!==g.TOOLTIP||T.key==="Escape"&&r.dismissKeyAction&&(r.dismissKeyAction==="next"?e.next(Y.KEYBOARD):r.dismissKeyAction==="replay"?e.replay(Y.KEYBOARD):e.close(Y.KEYBOARD))};return document.body.addEventListener("keydown",m,{passive:!0}),()=>{document.body.removeEventListener("keydown",m)}},[e,S,c,r]);const O=u.useCallback(()=>
31{switch(r?.overlayClickAction){case"close":e.close(Y.OVERLAY);break;case"next":e.next(Y.OVERLAY);break;case"replay":e.replay(Y.OVERLAY);break}},[e,r?.overlayClickAction]);if(!r||!S)return null;const k=n.action===N.START&&!r.skipBeacon&&r.placement!=="center";return R.createElement(R.Fragment,null,c!==g.INIT&&R.createElement(Or,{...n,continuous:i,controls:e,debug:l,nonce:f,portalElement:y,setPositionData:o.current.setPositionData,shouldScroll:!r.skipScroll&&(d!==0||p),step:r,updateState:o.current.updateState}),R.createElement(at,{element:y},R.createElement(R.Fragment,null,v&&R.createElement(nr,{nonce:f,step:r}),!k&&R.createElement(cr,{...r,continuous:i,lifecycle:c,onClickOverlay:O,portalElement:s?y:null,scrolling:n.scrolling,waiting:n.waiting}))))}function Sr(e){const{controls:t,failures:n,mergedProps:r,state:o,step:i,store:l}=Qn(e);return{controls:t,failures:n,on:u.useCallback((f,s)=>l.current.on(f,s),[l]),state:u.useMemo(()=>ge(o,"positioned"),[o]),step:i,Tour:Ie()?R.createElement(Tr,{controls:t,mergedProps:r,state:o,step:i,store:l}):null}}function Rr(e){const{Tour:t}=Sr(e);return t}function Pr(e){return Ie()?R.createElement(Rr,e):null}export{N as ACTIONS,z as EVENTS,Pr as Joyride,g as LIFECYCLE,Y as ORIGIN,vn as PORTAL_ELEMENT_ID,L as STATUS,nt as defaultLocale,wn as defaultOptions,Sr as useJoyride};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.