1import{_ as ns}from"./CRow-tpc69-yw.js";import{_ as Ue}from"./CCard.vue_vue_type_script_setup_true_lang-C8-f2Ieq.js";import{_ as ss}from"./CCol-DNKDk2if.js";import{b as os,h as is,u as vt,l as wn,m as kn,s as Bt,a as ls,n as rs}from"./vendor-primevue-BzAQYiCy.js";import{_ as qe}from"./CButton.vue_vue_type_script_setup_true_lang-B1_10JeJ.js";import{_ as as}from"./BackButton.vue_vue_type_script_setup_true_lang-CtcwZykx.js";import{d as Ae,ad as Xt,ae as cs,r as N,e as st,L as Y,w as xn,a as Sn,f as B,k as v,y as H,A as U,l as Zt,G as _,z as O,p as z,q as k,a3 as x,H as Je,j as I,s as _t,B as ge,x as us,U as ds,Z as fs,o as ms,F as ps,V as hs}from"./vendor-core-n3OX_FjI.js";import{a as We,e as wt,g as ot,E as Cn,h as gs,f as ys,b as bs,d as vs}from"./index-CmOs2780.js";import{l as ae}from"./breakpoints-CYwf5MYQ.js";import{b as _s,_ as ut,R as On,C as Tn,O as dt,a as ft,c as mt,n as ws,d as ks}from"./index.min-Ba0R_BUT.js";import{_ as Ge}from"./Icon.vue_vue_type_script_setup_true_lang-Ch9ozf0P.js";import{_ as xs}from"./CDialog-BQyluxZ3.js";import{_ as Ss}from"./EditorLector-CHh0bMM5.js";import{u as Cs}from"./useTranslator-CemMeUx4.js";import{u as Os}from"./authStore-GXTObOo7.js";import{a as kt}from"./done-DjrJ3DFh.js";import{u as xt}from"./kycStore-UDnN-2iS.js";import{s as $n}from"./index-DnLma1a9.js";import{_ as En}from"./DropZoneValidation.vue_vue_type_script_setup_true_lang-1p6A11x7.js";import{s as An}from"./index-k2knppjO.js";import{r as Xe,b as Ze}from"./useSettings-C_bJFytw.js";import{h as In}from"./index-D2niknED.js";import{z as Me}from"./index-C8zNxcLB.js";import{p as Vn}from"./pending-DnwARxT4.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vendor-charts-B6qqABpO.js";import"./index-DgkPB4NY.js";import"./dynamicBannerStore-BMollP-M.js";import"./index-GXHjSjOS.js";import"./typesFiles-CAiB64zA.js";function Ts(e,t){const{t:n}=We(),s=wt(),o={modalOverlayOpeningPadding:8,modalOverlayOpeningRadius:12,classes:"shepherd-step-content"};function i(){e.addStep({attachTo:{element:t.el.value,on:ae.value?"left":"bottom"},...o,title:n("dashboard.completeKyc"),text:n("sitetour.completeKycToAccessAllFunctions",{name:s.theme.title.name}),buttons:[{text:n("dashboard.skip"),action:()=>{localStorage.setItem("tour:dashboard","skiped"),e.complete()},classes:"shepherd-button-text"},{text:n("global.accept"),action:e.complete,classes:"shepherd-button-primary"}]})}function l(r){var c,a,m,p,f,d,h,y;(a=(c=r.value)==null?void 0:c.security)!=null&&a.isEmailValidated||(e.addStep({attachTo:{element:t.step1.value,on:ae.value?"left":"bottom"},...o,title:n("sitetour.verifyOnEmail"),text:n("sitetour.clickOnEmail"),advanceOn:{selector:"#step-email",event:"click"},buttons:[{text:n("kyc.skip")+">>",action:e.complete,classes:"shepherd-button-text"}]}),e.addStep({attachTo:{element:t.mainContainer.value,on:ae.value?"right":"bottom"},canClickTarget:!1,...o,title:n("sitetour.verifyOnEmail"),text:n("sitetour.fillOutEmail"),buttons:[{text:n("global.next"),action:e.next,classes:"shepherd-button-primary"}]})),(p=(m=r.value)==null?void 0:m.security)!=null&&p.isPhoneValidated||(e.addStep({attachTo:{element:t.step2.value,on:ae.value?"left":"bottom"},...o,title:n("sitetour.verifyPhone"),text:n("sitetour.clickOnPhone"),advanceOn:{selector:"#step-phone",event:"click"},buttons:[{text:n("kyc.skip")+">>",action:e.complete,classes:"shepherd-button-text"}]}),e.addStep({attachTo:{element:t.mainContainer.value,on:ae.value?"right":"bottom"},canClickTarget:!1,...o,title:n("sitetour.verifyPhone"),text:n("sitetour.fillOutPhone"),buttons:[{text:n("global.next"),action:e.next,classes:"shepherd-button-primary"}]})),(d=(f=r.value)==null?void 0:f.security)!=null&&d.isDocumentValidated||(e.addStep({attachTo:{element:t.step3.value,on:ae.value?"left":"bottom"},...o,title:n("kyc.validateId"),text:n("sitetour.clickOnId"),advanceOn:{selector:"#step-id",event:"click"},buttons:[{text:n("kyc.skip")+">>",action:e.complete,classes:"shepherd-button-text"}]}),e.addStep({attachTo:{element:t.mainContainer.value,on:ae.value?"right":"bottom"},canClickTarget:!1,...o,title:n("kyc.validateId"),text:n("sitetour.fillOutId"),buttons:[{text:n("global.next"),action:e.next,classes:"shepherd-button-primary"}]})),(y=(h=r.value)==null?void 0:h.security)!=null&&y.isResidenceValidated||(e.addStep({attachTo:{element:t.step4.value,on:ae.value?"left":"bottom"},...o,title:n("kyc.validateAddress"),text:n("sitetour.clickOnAddress"),advanceOn:{selector:"#step-address",event:"click"},buttons:[{text:n("kyc.skip")+">>",action:e.complete,classes:"shepherd-button-text"}]}),e.addStep({attachTo:{element:t.mainContainer.value,on:ae.value?"right":"bottom"},canClickTarget:!1,...o,title:n("kyc.validateAddress"),text:n("sitetour.fillOutAddress"),buttons:[{text:n("global.finish"),action:e.complete,classes:"shepherd-button-primary"}]}))}return{defineDashboardSteps:i,defineKycSteps:l}}/*! shepherd.js 13.0.3 */function $s(e){return e instanceof Element}function it(e){return e instanceof HTMLElement}function ye(e){return typeof e=="function"}function et(e){return typeof e=="string"}function W(e){return e===void 0}class zt{on(t,n,s,o=!1){var i;return W(this.bindings)&&(this.bindings={}),W(this.bindings[t])&&(this.bindings[t]=[]),(i=this.bindings[t])==null||i.push({handler:n,ctx:s,once:o}),this}once(t,n,s){return this.on(t,n,s,!0)}off(t,n){if(W(this.bindings)||W(this.bindings[t]))return this;if(W(n))delete this.bindings[t];else{var s;
1(s=this.bindings[t])==null||s.forEach((o,i)=>{if(o.handler===n){var l;(l=this.bindings[t])==null||l.splice(i,1)}})}return this}trigger(t,...n){if(!W(this.bindings)&&this.bindings[t]){var s;(s=this.bindings[t])==null||s.forEach((o,i)=>{const{ctx:l,handler:r,once:c}=o,a=l||this;if(r.apply(a,n),c){var m;(m=this.bindings[t])==null||m.splice(i,1)}})}return this}}function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},K.apply(null,arguments)}function Ln(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.includes(s))continue;n[s]=e[s]}return n}const _e={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};_e.defaultMerge;function Es(e,t){return t}function Qt(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:Vs(e)?1:e instanceof Set?3:e instanceof Map?4:5}function As(e){const t=new Set;for(const n of e)for(const s of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(s);return t}function Is(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function Pn(e){return{*[Symbol.iterator](){for(const t of e)for(const n of t)yield n}}}const en=new Set(["[object Object]","[object Module]"]);function Vs(e){if(!en.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"||!en.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function Ls(e,t,n){const s={};for(const o of As(e)){const i=[];for(const c of e)Is(c,o)&&i.push(c[o]);if(i.length===0)continue;const l=t.metaDataUpdater(n,{key:o,parents:e}),r=Rn(i,t,l);r!==_e.skip&&(o==="__proto__"?Object.defineProperty(s,o,{value:r,configurable:!0,enumerable:!0,writable:!0}):s[o]=r)}return s}function Ps(e){return e.flat()}function Ms(e){return new Set(Pn(e))}function Rs(e){return new Map(Pn(e))}function Mn(e){return e.at(-1)}var Et=Object.freeze({__proto__:null,mergeArrays:Ps,mergeMaps:Rs,mergeOthers:Mn,mergeRecords:Ls,mergeSets:Ms});function jt(...e){return Ds({})(...e)}function Ds(e,t){const n=Fs(e,s);function s(...o){return Rn(o,n,t)}return s}function Fs(e,t){var n,s;return{defaultMergeFunctions:Et,mergeFunctions:K({},Et,Object.fromEntries(Object.entries(e).filter(([o,i])=>Object.hasOwn(Et,o)).map(([o,i])=>i===!1?[o,Mn]:[o,i]))),metaDataUpdater:(n=e.metaDataUpdater)!=null?n:Es,deepmerge:t,useImplicitDefaultMerging:(s=e.enableImplicitDefaultMerging)!=null?s:!1,actions:_e}}function Rn(e,t,n){if(e.length===0)return;if(e.length===1)return At(e,t,n);const s=Qt(e[0]);if(s!==0&&s!==5){for(let o=1;o<e.length;o++)if(Qt(e[o])!==s)return At(e,t,n)}switch(s){case 1:return Bs(e,t,n);case 2:return zs(e,t,n);case 3:return js(e,t,n);case 4:return Ns(e,t,n);default:return At(e,t,n)}}function Bs(e,t,n){const s=t.mergeFunctions.mergeRecords(e,t,n);return s===_e.defaultMerge||t.useImplicitDefaultMerging&&s===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):s}function zs(e,t,n){const s=t.mergeFunctions.mergeArrays(e,t,n);return s===_e.defaultMerge||t.useImplicitDefaultMerging&&s===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):s}function js(e,t,n){const s=t.mergeFunctions.mergeSets(e,t,n);return s===_e.defaultMerge||t.useImplicitDefaultMerging&&s===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):s}function Ns(e,t,n){const s=t.mergeFunctions.mergeMaps(e,t,n);return s===_e.defaultMerge||t.useImplicitDefaultMerging&&s===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):s}function At(e,t,n){const s=t.mergeFunctions.mergeOthers(e,t,n);return s===_e.defaultMerge||t.useImplicitDefaultMerging&&s===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):s}function Nt(e){const t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){const s=t[n],o=e[s];s!=="constructor"&&typeof o=="function"&&(e[s]=o.bind(e))}return e}function Hs(e,t){return n=>{if(e.isOpen()){const s=e.el&&n.currentTarget===e.el;(!W(t)&&n.currentTarget.matches(t)||s)&&e.tour.next()}}}function Us(e){const{event:t,selector:n}=e.options.advanceOn||{};if(t){const s=Hs(e,n);let o=null;if(!W(n)&&(o=document.querySelector(n),!o))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);o?(o.addEventListener(t,s),e.on("destroy",()=>o.removeEventListener(t,s))):(document.body.addEventListener(t,s,!0),e.on("destroy",()=>document.body.removeEventListener(t,s,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class qs{constructor(t){}}class Ws{constructor(t,n){}}function Dn(e){return!et(e)||e===""?"":e.charAt(e.length-1)!=="-"?`${e}-`:e}function Gs(e){const t=e.options.attachTo||{},n=Object.assign({},t);if(ye(n.element)&&(n.element=n.element.call(e)),et(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 Fn(e){return e==null?!0:!e.element||!e.on}function Bn(){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)})}
vendor: 6,247 bytes, line 1
1const Fe=Math.min,Ce=Math.max,ht=Math.round,at=Math.floor,be=e=>({x:e,y:e}),Ks={left:"right",right:"left",bottom:"top",top:"bottom"},Ys={start:"end",end:"start"};function Lt(e,t,n){return Ce(e,Fe(t,n))}function Be(e,t){return typeof e=="function"?e(t):e}function $e(e){return e.split("-")[0]}function St(e){return e.split("-")[1]}function Ht(e){return e==="x"?"y":"x"}function Ut(e){return e==="y"?"height":"width"}function ze(e){return["top","bottom"].includes($e(e))?"y":"x"}function qt(e){return Ht(ze(e))}function Js(e,t,n){n===void 0&&(n=!1);const s=St(e),o=qt(e),i=Ut(o);let l=o==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=gt(l)),[l,gt(l)]}function Xs(e){const t=gt(e);return[Pt(e),t,Pt(t)]}function Pt(e){return e.replace(/start|end/g,t=>Ys[t])}function Zs(e,t,n){const s=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:s:t?s:o;case"left":case"right":return t?i:l;default:return[]}}function Qs(e,t,n,s){const o=St(e);let i=Zs($e(e),n==="start",s);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Pt)))),i}function gt(e){return e.replace(/left|right|bottom|top/g,t=>Ks[t])}function eo(e){return K({top:0,right:0,bottom:0,left:0},e)}function zn(e){return typeof e!="number"?eo(e):{top:e,right:e,bottom:e,left:e}}function yt(e){const{x:t,y:n,width:s,height:o}=e;return{width:s,height:o,top:n,left:t,right:t+s,bottom:n+o,x:t,y:n}}const to=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],no=["mainAxis","crossAxis","limiter"];function tn(e,t,n){let{reference:s,floating:o}=e;const i=ze(t),l=qt(t),r=Ut(l),c=$e(t),a=i==="y",m=s.x+s.width/2-o.width/2,p=s.y+s.height/2-o.height/2,f=s[r]/2-o[r]/2;let d;switch(c){case"top":d={x:m,y:s.y-o.height};break;case"bottom":d={x:m,y:s.y+s.height};break;case"right":d={x:s.x+s.width,y:p};break;case"left":d={x:s.x-o.width,y:p};break;default:d={x:s.x,y:s.y}}switch(St(t)){case"start":d[l]-=f*(n&&a?-1:1);break;case"end":d[l]+=f*(n&&a?-1:1);break}return d}const so=async(e,t,n)=>{const{placement:s="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,r=i.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(t));let a=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:p}=tn(a,s,c),f=s,d={},h=0;for(let y=0;y<r.length;y++){const{name:w,fn:C}=r[y],{x:T,y:S,data:b,reset:u}=await C({x:m,y:p,initialPlacement:s,placement:f,strategy:o,middlewareData:d,rects:a,platform:l,elements:{reference:e,floating:t}});m=T??m,p=S??p,d=K({},d,{[w]:K({},d[w],b)}),u&&h<=50&&(h++,typeof u=="object"&&(u.placement&&(f=u.placement),u.rects&&(a=u.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):u.rects),{x:m,y:p}=tn(a,f,c)),y=-1)}return{x:m,y:p,placement:f,strategy:o,middlewareData:d}};async function jn(e,t){var n;t===void 0&&(t={});const{x:s,y:o,platform:i,rects:l,elements:r,strategy:c}=e,{boundary:a="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:f=!1,padding:d=0}=Be(t,e),h=zn(d),w=r[f?p==="floating"?"reference":"floating":p],C=yt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(r.floating)),boundary:a,rootBoundary:m,strategy:c})),T=p==="floating"?{x:s,y:o,width:l.floating.width,height:l.floating.height}:l.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(r.floating)),b=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},u=yt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:T,offsetParent:S,strategy:c}):T);return{top:(C.top-u.top+h.top)/b.y,bottom:(u.bottom-C.bottom+h.bottom)/b.y,left:(C.left-u.left+h.left)/b.x,right:(u.right-C.right+h.right)/b.x}}const oo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:o,rects:i,platform:l,elements:r,middlewareData:c}=t,{element:a,padding:m=0}=Be(e,t)||{};if(a==null)return{};const p=zn(m),f={x:n,y:s},d=qt(o),h=Ut(d),y=await l.getDimensions(a),w=d==="y",C=w?"top":"left",T=w?"bottom":"right",S=w?"clientHeight":"clientWidth",b=i.reference[h]+i.reference[d]-f[d]-i.floating[h],u=f[d]-i.reference[d],g=await(l.getOffsetParent==null?void 0:l.getOffsetParent(a));let L=g?g[S]:0;(!L||!await(l.isElement==null?void 0:l.isElement(g)))&&(L=r.floating[S]||i.floating[h]);const E=b/2-u/2,A=L/2-y[h]/2-1,D=Fe(p[C],A),V=Fe(p[T],A),P=D,G=L-y[h]-V,q=L/2-y[h]/2+E,Q=Lt(P,q,G),$=!c.arrow&&St(o)!=null&&q!==Q&&i.reference[h]/2-(q<P?D:V)-y[h]/2<0,M=$?q<P?q-P:q-G:0;return{[d]:f[d]+M,data:K({[d]:Q,centerOffset:q-Q-M},$&&{alignmentOffset:M}),reset:$}}}),io=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var s,o;const{placement:i,middlewareData:l,rects:r,initialPlacement:c,platform:a,elements:m}=n,p=Be(t,n),{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:C=!0}=p,T=Ln(p,to);if((s=l.arrow)!=null&&s.alignmentOffset)return{};const S=$e(i),b=ze(c),u=$e(c)===c,g=await(a.isRTL==null?void 0:a.isRTL(m.floating)),L=h||(u||!C?[gt(c)]:Xs(c)),E=w!=="none";!h&&E&&L.push(...Qs(c,C,w,g));const A=[c,...L],D=await jn(n,T),V=[];let P=((o=l.flip)==null?void 0:o.overflows)||[];if(f&&V.push(D[S]),d){const $=Js(i,r,g);V.push(D[$[0]],D[$[1]])}if(P=[...P,{placement:i,overflows:V}],!V.every($=>$<=0)){var G,q;const $=(((G=l.flip)==null?void 0:G.index)||0)+1,M=A[$];if(M)return{data:{index:$,overflows:P},reset:{placement:M}};let me=(q=P.filter(re=>re.overflows[0]<=0).sort((re,ee)=>re.overflows[1]-ee.overflows[1])[0])==null?void 0:q.placement;if(!me)switch(y){case"bestFit":{var Q;const re=(Q=P.filter(ee=>{if(E){const te=ze(ee.placement);return te===b||te==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(te=>te>0).reduce((te,Ye)=>te+Ye,0)]).sort((ee,te)=>ee[1]-te[1])[0])==null?void 0:Q[0];re&&(me=re);break}case"initialPlacement":me=c;break}if(i!==me)return{reset:{placement:me}}}return{}}}},lo=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:s,y:o,placement:i}
1=n,l=Be(t,n),{mainAxis:r=!0,crossAxis:c=!1,limiter:a={fn:T=>{let{x:S,y:b}=T;return{x:S,y:b}}}}=l,m=Ln(l,no),p={x:s,y:o},f=await jn(n,m),d=ze($e(i)),h=Ht(d);let y=p[h],w=p[d];if(r){const T=h==="y"?"top":"left",S=h==="y"?"bottom":"right",b=y+f[T],u=y-f[S];y=Lt(b,y,u)}if(c){const T=d==="y"?"top":"left",S=d==="y"?"bottom":"right",b=w+f[T],u=w-f[S];w=Lt(b,w,u)}const C=a.fn(K({},n,{[h]:y,[d]:w}));return K({},C,{data:{x:C.x-s,y:C.y-o}})}}},ro=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:s,y:o,placement:i,rects:l,middlewareData:r}=n,{offset:c=0,mainAxis:a=!0,crossAxis:m=!0}=Be(t,n),p={x:s,y:o},f=ze(i),d=Ht(f);let h=p[d],y=p[f];const w=Be(c,n),C=typeof w=="number"?{mainAxis:w,crossAxis:0}:K({mainAxis:0,crossAxis:0},w);if(a){const b=d==="y"?"height":"width",u=l.reference[d]-l.floating[b]+C.mainAxis,g=l.reference[d]+l.reference[b]-C.mainAxis;h<u?h=u:h>g&&(h=g)}if(m){var T,S;const b=d==="y"?"width":"height",u=["top","left"].includes($e(i)),g=l.reference[f]-l.floating[b]+(u&&((T=r.offset)==null?void 0:T[f])||0)+(u?0:C.crossAxis),L=l.reference[f]+l.reference[b]+(u?0:((S=r.offset)==null?void 0:S[f])||0)-(u?C.crossAxis:0);y<g?y=g:y>L&&(y=L)}return{[d]:h,[f]:y}}}};function Ke(e){return Nn(e)?(e.nodeName||"").toLowerCase():"#document"}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ce(e){var t;return(t=(Nn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Nn(e){return e instanceof Node||e instanceof J(e).Node}function ne(e){return e instanceof Element||e instanceof J(e).Element}function ie(e){return e instanceof HTMLElement||e instanceof J(e).HTMLElement}function nn(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}function lt(e){const{overflow:t,overflowX:n,overflowY:s,display:o}=se(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(o)}function ao(e){return["table","td","th"].includes(Ke(e))}function Ct(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Wt(e){const t=Gt(),n=ne(e)?se(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function co(e){let t=ve(e);for(;ie(t)&&!je(t);){if(Wt(t))return t;if(Ct(t))return null;t=ve(t)}return null}function Gt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function je(e){return["html","body","#document"].includes(Ke(e))}function se(e){return J(e).getComputedStyle(e)}function Ot(e){return ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ve(e){if(Ke(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nn(e)&&e.host||ce(e);return nn(t)?t.host:t}function Hn(e){const t=ve(e);return je(t)?e.ownerDocument?e.ownerDocument.body:e.body:ie(t)&<(t)?t:Hn(t)}function tt(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Hn(e),i=o===((s=e.ownerDocument)==null?void 0:s.body),l=J(o);return i?t.concat(l,l.visualViewport||[],lt(o)?o:[],l.frameElement&&n?tt(l.frameElement):[]):t.concat(o,tt(o,[],n))}function Un(e){const t=se(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const o=ie(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:s,r=ht(n)!==i||ht(s)!==l;return r&&(n=i,s=l),{width:n,height:s,$:r}}function Kt(e){return ne(e)?e:e.contextElement}function Re(e){const t=Kt(e);if(!ie(t))return be(1);const n=t.getBoundingClientRect(),{width:s,height:o,$:i}=Un(t);let l=(i?ht(n.width):n.width)/s,r=(i?ht(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!r||!Number.isFinite(r))&&(r=1),{x:l,y:r}}const uo=be(0);function qn(e){const t=J(e);return!Gt()||!t.visualViewport?uo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==J(e)?!1:t}function Ee(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Kt(e);let l=be(1);t&&(s?ne(s)&&(l=Re(s)):l=Re(e));const r=fo(i,n,s)?qn(i):be(0);let c=(o.left+r.x)/l.x,a=(o.top+r.y)/l.y,m=o.width/l.x,p=o.height/l.y;if(i){const f=J(i),d=s&&ne(s)?J(s):s;let h=f,y=h.frameElement;for(;y&&s&&d!==h;){const w=Re(y),C=y.getBoundingClientRect(),T=se(y),S=C.left+(y.clientLeft+parseFloat(T.paddingLeft))*w.x,b=C.top+(y.clientTop+parseFloat(T.paddingTop))*w.y;c*=w.x,a*=w.y,m*=w.x,p*=w.y,c+=S,a+=b,h=J(y),y=h.frameElement}}return yt({width:m,height:p,x:c,y:a})}function mo(e){let{elements:t,rect:n,offsetParent:s,strategy:o}=e;const i=o==="fixed",l=ce(s),r=t?Ct(t.floating):!1;if(s===l||r&&i)return n;let c={scrollLeft:0,scrollTop:0},a=be(1);const m=be(0),p=ie(s);if((p||!p&&!i)&&((Ke(s)!=="body"||lt(l))&&(c=Ot(s)),ie(s))){const f=Ee(s);a=Re(s),m.x=f.x+s.clientLeft,m.y=f.y+s.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+m.x,y:n.y*a.y-c.scrollTop*a.y+m.y}}function po(e){return Array.from(e.getClientRects())}function Wn(e){return Ee(ce(e)).left+Ot(e).scrollLeft}function ho(e){const t=ce(e),n=Ot(e),s=e.ownerDocument.body,o=Ce(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=Ce(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let l=-n.scrollLeft+Wn(e);const r=-n.scrollTop;return se(s).direction==="rtl"&&(l+=Ce(t.clientWidth,s.clientWidth)-o),{width:o,height:i,x:l,y:r}}
1function go(e,t){const n=J(e),s=ce(e),o=n.visualViewport;let i=s.clientWidth,l=s.clientHeight,r=0,c=0;if(o){i=o.width,l=o.height;const a=Gt();(!a||a&&t==="fixed")&&(r=o.offsetLeft,c=o.offsetTop)}return{width:i,height:l,x:r,y:c}}function yo(e,t){const n=Ee(e,!0,t==="fixed"),s=n.top+e.clientTop,o=n.left+e.clientLeft,i=ie(e)?Re(e):be(1),l=e.clientWidth*i.x,r=e.clientHeight*i.y,c=o*i.x,a=s*i.y;return{width:l,height:r,x:c,y:a}}function sn(e,t,n){let s;if(t==="viewport")s=go(e,n);else if(t==="document")s=ho(ce(e));else if(ne(t))s=yo(t,n);else{const o=qn(e);s=K({},t,{x:t.x-o.x,y:t.y-o.y})}return yt(s)}function Gn(e,t){const n=ve(e);return n===t||!ne(n)||je(n)?!1:se(n).position==="fixed"||Gn(n,t)}function bo(e,t){const n=t.get(e);if(n)return n;let s=tt(e,[],!1).filter(r=>ne(r)&&Ke(r)!=="body"),o=null;const i=se(e).position==="fixed";let l=i?ve(e):e;for(;ne(l)&&!je(l);){const r=se(l),c=Wt(l);!c&&r.position==="fixed"&&(o=null),(i?!c&&!o:!c&&r.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||lt(l)&&!c&&Gn(e,l))?s=s.filter(m=>m!==l):o=r,l=ve(l)}return t.set(e,s),s}function vo(e){let{element:t,boundary:n,rootBoundary:s,strategy:o}=e;const l=[...n==="clippingAncestors"?Ct(t)?[]:bo(t,this._c):[].concat(n),s],r=l[0],c=l.reduce((a,m)=>{const p=sn(t,m,o);return a.top=Ce(p.top,a.top),a.right=Fe(p.right,a.right),a.bottom=Fe(p.bottom,a.bottom),a.left=Ce(p.left,a.left),a},sn(t,r,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function _o(e){const{width:t,height:n}=Un(e);return{width:t,height:n}}function wo(e,t,n){const s=ie(t),o=ce(t),i=n==="fixed",l=Ee(e,!0,i,t);let r={scrollLeft:0,scrollTop:0};const c=be(0);if(s||!s&&!i)if((Ke(t)!=="body"||lt(o))&&(r=Ot(t)),s){const p=Ee(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&(c.x=Wn(o));const a=l.left+r.scrollLeft-c.x,m=l.top+r.scrollTop-c.y;return{x:a,y:m,width:l.width,height:l.height}}function It(e){return se(e).position==="static"}function on(e,t){return!ie(e)||se(e).position==="fixed"?null:t?t(e):e.offsetParent}function Kn(e,t){const n=J(e);if(Ct(e))return n;if(!ie(e)){let o=ve(e);for(;o&&!je(o);){if(ne(o)&&!It(o))return o;o=ve(o)}return n}let s=on(e,t);for(;s&&ao(s)&&It(s);)s=on(s,t);return s&&je(s)&&It(s)&&!Wt(s)?n:s||co(e)||n}const ko=async function(t){const n=this.getOffsetParent||Kn,s=this.getDimensions,o=await s(t.floating);return{reference:wo(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function xo(e){return se(e).direction==="rtl"}const So={convertOffsetParentRelativeRectToViewportRelativeRect:mo,getDocumentElement:ce,getClippingRect:vo,getOffsetParent:Kn,getElementRects:ko,getClientRects:po,getDimensions:_o,getScale:Re,isElement:ne,isRTL:xo};function Co(e,t){let n=null,s;const o=ce(e);function i(){var r;clearTimeout(s),(r=n)==null||r.disconnect(),n=null}function l(r,c){r===void 0&&(r=!1),c===void 0&&(c=1),i();const{left:a,top:m,width:p,height:f}=e.getBoundingClientRect();if(r||t(),!p||!f)return;const d=at(m),h=at(o.clientWidth-(a+p)),y=at(o.clientHeight-(m+f)),w=at(a),T={rootMargin:-d+"px "+-h+"px "+-y+"px "+-w+"px",threshold:Ce(0,Fe(1,c))||1};let S=!0;function b(u){const g=u[0].intersectionRatio;if(g!==c){if(!S)return l();g?l(!1,g):s=setTimeout(()=>{l(!1,1e-7)},1e3)}S=!1}try{n=new IntersectionObserver(b,K({},T,{root:o.ownerDocument}))}catch{n=new IntersectionObserver(b,T)}n.observe(e)}return l(!0),i}function Oo(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,a=Kt(e),m=o||i?[...a?tt(a):[],...tt(t)]:[];m.forEach(C=>{o&&C.addEventListener("scroll",n,{passive:!0}),i&&C.addEventListener("resize",n)});const p=a&&r?Co(a,n):null;let f=-1,d=null;l&&(d=new ResizeObserver(C=>{let[T]=C;T&&T.target===a&&d&&(d.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=d)==null||S.observe(t)})),n()}),a&&!c&&d.observe(a),d.observe(t));let h,y=c?Ee(e):null;c&&w();function w(){const C=Ee(e);y&&(C.x!==y.x||C.y!==y.y||C.width!==y.width||C.height!==y.height)&&n(),y=C,h=requestAnimationFrame(w)}return n(),()=>{var C;m.forEach(T=>{o&&T.removeEventListener("scroll",n),i&&T.removeEventListener("resize",n)}),p==null||p(),(C=d)==null||C.disconnect(),d=null,c&&cancelAnimationFrame(h)}}const To=lo,$o=io,Eo=oo,Ao=ro,Io=(e,t,n)=>{const s=new Map,o=K({platform:So},n),i=K({},o.platform,{_c:s});return so(e,t,K({},o,{platform:i}))};function Vo(e){e.cleanup&&e.cleanup();const t=e._getResolvedAttachToOptions();let n=t.element;const s=Fo(t,e),o=Fn(t);return o&&(n=document.body,e.shepherdElementComponent.getElement().classList.add("shepherd-centered")),e.cleanup=Oo(n,e.el,()=>{if(!e.el){e.cleanup==null||e.cleanup();return}Mo(n,e,s,o)}),e.target=t.element,s}function Lo(e,t){return{floatingUIOptions:jt(e.floatingUIOptions||{},t.floatingUIOptions||{})}}function Po(e){e.cleanup&&e.cleanup(),e.cleanup=null}function Mo(e,t,n,s){return Io(e,t.el,n).then(Ro(t,s)).then(o=>new Promise(i=>{setTimeout(()=>i(o),300)})).then(o=>{o!=null&&o.el&&o.el.focus({preventScroll:!0})})}function Ro(e,t){return({x:n,y:s,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:`${s}px`}),e.el.dataset.popperPlacement=o,Do(e.el,i)),e)}function Do(e,t){const n=e.querySelector(".shepherd-arrow");if(it(n)&&t.arrow){const{x:s,y:o}=t.arrow;Object.assign(n.style,{left:s!=null?`${s}px`:"",top:o!=null?`${o}px`:""})}}function Fo(e,t){const n={strategy:"absolute"};n.middleware=[];const s=Bo(t);if(!Fn(e)){if(n.middleware.push($o(),To({limiter:Ao(),crossAxis:!0})),s){var i,l;const r=(e==null||(i=e.on)==null?void 0:i.includes("-start"))||(e==null||(l=e.on)==null?void 0:l.includes("-end"));n.middleware.push(Eo({element:s,padding:r?4:0}))}n.placement=e.on}return jt(t.options.floatingUIOptions||{},n)}function Bo(e){return e.options.arrow&&e.el?e.el.querySelector(".shepherd-arrow"):!1}function X(){}function zo(e,t){for(const n in t)e[n]=t[n];return e}function Yn(e){return e()}function ln(){return Object.create(null)}function rt(e){e.forEach(Yn)}function Yt(e){return typeof e=="function"}function ue(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function jo(e){return Object.keys(e).length===0}function Ne(e,t){e.appendChild(t)}function oe(e,t,n){e.insertBefore(t,n||null)}function Z(e){e.parentNode&&e.parentNode.removeChild(e)}function No(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function le(e){return document.createElement(e)}function rn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Jn(e){return document.createTextNode(e)}function bt(){return Jn(" ")}function Ho(){return Jn("")}function Tt(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function F(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const Uo=["width","height"];function an(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const s in t)t[s]==null?e.removeAttribute(s):s==="style"?e.style.cssText=t[s]:s==="__value"?e.value=e[s]=t[s]:n[s]&&n[s].set&&Uo.indexOf(s)===-1?e[s]=t[s]:F(e,s,t[s])}function qo(e){return Array.from(e.childNodes)}function Ve(e,t,n){e.classList.toggle(t,!!n)}let nt;function Qe(e){nt=e}function Xn(){if(!nt)throw new Error("Function called outside component initialization");return nt}function Wo(e){Xn().$$.on_mount.push(e)}function Jt(e){Xn().$$.after_update.push(e)}const Pe=[],He=[];let De=[];const cn=[],Go=Promise.resolve();let Mt=!1;function Ko(){Mt||(Mt=!0,Go.then(Zn))}function Rt(e){De.push(e)}const Vt=new Set;let Le=0;function Zn(){if(Le!==0)return;const e=nt;do{try{for(;Le<Pe.length;){const t=Pe[Le];Le++,Qe(t),Yo(t.$$)}}catch(t){throw Pe.length=0,Le=0,t}for(Qe(null),Pe.length=0,Le=0;He.length;)He.pop()();for(let t=0;t<De.length;t+=1){const n=De[t];Vt.has(n)||(Vt.add(n),n())}De.length=0}while(Pe.length);for(;cn.length;)cn.pop()();Mt=!1,Vt.clear(),Qe(e)}
1function Yo(e){if(e.fragment!==null){e.update(),rt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Rt)}}function Jo(e){const t=[],n=[];De.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),De=t}const pt=new Set;let xe;function Oe(){xe={r:0,c:[],p:xe}}function Te(){xe.r||rt(xe.c),xe=xe.p}function R(e,t){e&&e.i&&(pt.delete(e),e.i(t))}function j(e,t,n,s){if(e&&e.o){if(pt.has(e))return;pt.add(e),xe.c.push(()=>{pt.delete(e),s&&(n&&e.d(1),s())}),e.o(t)}else s&&s()}function un(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Xo(e,t){const n={},s={},o={$$scope:1};let i=e.length;for(;i--;){const l=e[i],r=t[i];if(r){for(const c in l)c in r||(s[c]=1);for(const c in r)o[c]||(n[c]=r[c],o[c]=1);e[i]=r}else for(const c in l)o[c]=1}for(const l in s)l in n||(n[l]=void 0);return n}function Ie(e){e&&e.c()}function we(e,t,n){const{fragment:s,after_update:o}=e.$$;s&&s.m(t,n),Rt(()=>{const i=e.$$.on_mount.map(Yn).filter(Yt);e.$$.on_destroy?e.$$.on_destroy.push(...i):rt(i),e.$$.on_mount=[]}),o.forEach(Rt)}function ke(e,t){const n=e.$$;n.fragment!==null&&(Jo(n.after_update),rt(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Zo(e,t){e.$$.dirty[0]===-1&&(Pe.push(e),Ko(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function de(e,t,n,s,o,i,l=null,r=[-1]){const c=nt;Qe(e);const a=e.$$={fragment:null,ctx:[],props:i,update:X,not_equal:o,bound:ln(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:ln(),dirty:r,skip_bound:!1,root:t.target||c.$$.root};l&&l(a.root);let m=!1;if(a.ctx=n?n(e,t.props||{},(p,f,...d)=>{const h=d.length?d[0]:f;return a.ctx&&o(a.ctx[p],a.ctx[p]=h)&&(!a.skip_bound&&a.bound[p]&&a.bound[p](h),m&&Zo(e,p)),f}):[],a.update(),m=!0,rt(a.before_update),a.fragment=s?s(a.ctx):!1,t.target){if(t.hydrate){const p=qo(t.target);a.fragment&&a.fragment.l(p),p.forEach(Z)}else a.fragment&&a.fragment.c();t.intro&&R(e.$$.fragment),we(e,t.target,t.anchor),Zn()}Qe(c)}class fe{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){ke(this,1),this.$destroy=X}$on(t,n){if(!Yt(n))return X;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const o=s.indexOf(n);o!==-1&&s.splice(o,1)}}$set(t){this.$$set&&!jo(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 ei(e){let t,n,s,o,i;return{c(){t=le("button"),F(t,"aria-label",n=e[3]?e[3]:null),F(t,"class",s=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`),t.disabled=e[2],F(t,"tabindex","0"),F(t,"type","button")},m(l,r){oe(l,t,r),t.innerHTML=e[5],o||(i=Tt(t,"click",function(){Yt(e[0])&&e[0].apply(this,arguments)}),o=!0)},p(l,[r]){e=l,r&32&&(t.innerHTML=e[5]),r&8&&n!==(n=e[3]?e[3]:null)&&F(t,"aria-label",n),r&18&&s!==(s=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`)&&F(t,"class",s),r&4&&(t.disabled=e[2])},i:X,o:X,d(l){l&&Z(t),o=!1,i()}}}function ti(e,t,n){let{config:s,step:o}=t,i,l,r,c,a,m;function p(f){return ye(f)?f=f.call(o):f}return e.$$set=f=>{"config"in f&&n(6,s=f.config),"step"in f&&n(7,o=f.step)},e.$$.update=()=>{e.$$.dirty&192&&(n(0,i=s.action?s.action.bind(o.tour):null),n(1,l=s.classes),n(2,r=s.disabled?p(s.disabled):!1),n(3,c=s.label?p(s.label):null),n(4,a=s.secondary),n(5,m=s.text?p(s.text):null))},[i,l,r,c,a,m,s,o]}class ni extends fe{constructor(t){super(),de(this,t,ti,ei,ue,{config:6,step:7})}}function dn(e,t,n){const s=e.slice();return s[2]=t[n],s}function fn(e){let t,n,s=un(e[1]),o=[];for(let l=0;l<s.length;l+=1)o[l]=mn(dn(e,s,l));const i=l=>j(o[l],1,1,()=>{o[l]=null});return{c(){for(let l=0;l<o.length;l+=1)o[l].c();t=Ho()},m(l,r){for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(l,r);oe(l,t,r),n=!0},p(l,r){if(r&3){s=un(l[1]);let c;for(c=0;c<s.length;c+=1){const a=dn(l,s,c);o[c]?(o[c].p(a,r),R(o[c],1)):(o[c]=mn(a),o[c].c(),R(o[c],1),o[c].m(t.parentNode,t))}for(Oe(),c=s.length;c<o.length;c+=1)i(c);Te()}},i(l){if(!n){for(let r=0;r<s.length;r+=1)R(o[r]);n=!0}}
1,o(l){o=o.filter(Boolean);for(let r=0;r<o.length;r+=1)j(o[r]);n=!1},d(l){l&&Z(t),No(o,l)}}}function mn(e){let t,n;return t=new ni({props:{config:e[2],step:e[0]}}),{c(){Ie(t.$$.fragment)},m(s,o){we(t,s,o),n=!0},p(s,o){const i={};o&2&&(i.config=s[2]),o&1&&(i.step=s[0]),t.$set(i)},i(s){n||(R(t.$$.fragment,s),n=!0)},o(s){j(t.$$.fragment,s),n=!1},d(s){ke(t,s)}}}function si(e){let t,n,s=e[1]&&fn(e);return{c(){t=le("footer"),s&&s.c(),F(t,"class","shepherd-footer")},m(o,i){oe(o,t,i),s&&s.m(t,null),n=!0},p(o,[i]){o[1]?s?(s.p(o,i),i&2&&R(s,1)):(s=fn(o),s.c(),R(s,1),s.m(t,null)):s&&(Oe(),j(s,1,1,()=>{s=null}),Te())},i(o){n||(R(s),n=!0)},o(o){j(s),n=!1},d(o){o&&Z(t),s&&s.d()}}}function oi(e,t,n){let s,{step:o}=t;return e.$$set=i=>{"step"in i&&n(0,o=i.step)},e.$$.update=()=>{e.$$.dirty&1&&n(1,s=o.options.buttons)},[o,s]}class ii extends fe{constructor(t){super(),de(this,t,oi,si,ue,{step:0})}}function li(e){let t,n,s,o,i;return{c(){t=le("button"),n=le("span"),n.textContent="Ã",F(n,"aria-hidden","true"),F(t,"aria-label",s=e[0].label?e[0].label:"Close Tour"),F(t,"class","shepherd-cancel-icon"),F(t,"type","button")},m(l,r){oe(l,t,r),Ne(t,n),o||(i=Tt(t,"click",e[1]),o=!0)},p(l,[r]){r&1&&s!==(s=l[0].label?l[0].label:"Close Tour")&&F(t,"aria-label",s)},i:X,o:X,d(l){l&&Z(t),o=!1,i()}}}function ri(e,t,n){let{cancelIcon:s,step:o}=t;const i=l=>{l.preventDefault(),o.cancel()};return e.$$set=l=>{"cancelIcon"in l&&n(0,s=l.cancelIcon),"step"in l&&n(2,o=l.step)},[s,i,o]}class ai extends fe{constructor(t){super(),de(this,t,ri,li,ue,{cancelIcon:0,step:2})}}function ci(e){let t;return{c(){t=le("h3"),F(t,"id",e[1]),F(t,"class","shepherd-title")},m(n,s){oe(n,t,s),e[3](t)},p(n,[s]){s&2&&F(t,"id",n[1])},i:X,o:X,d(n){n&&Z(t),e[3](null)}}}function ui(e,t,n){let{labelId:s,element:o,title:i}=t;Jt(()=>{ye(i)&&n(2,i=i()),n(0,o.innerHTML=i,o)});function l(r){He[r?"unshift":"push"](()=>{o=r,n(0,o)})}return e.$$set=r=>{"labelId"in r&&n(1,s=r.labelId),"element"in r&&n(0,o=r.element),"title"in r&&n(2,i=r.title)},[o,s,i,l]}class di extends fe{constructor(t){super(),de(this,t,ui,ci,ue,{labelId:1,element:0,title:2})}}function pn(e){let t,n;return t=new di({props:{labelId:e[0],title:e[2]}}),{c(){Ie(t.$$.fragment)},m(s,o){we(t,s,o),n=!0},p(s,o){const i={};o&1&&(i.labelId=s[0]),o&4&&(i.title=s[2]),t.$set(i)},i(s){n||(R(t.$$.fragment,s),n=!0)},o(s){j(t.$$.fragment,s),n=!1},d(s){ke(t,s)}}}function hn(e){let t,n;return t=new ai({props:{cancelIcon:e[3],step:e[1]}}),{c(){Ie(t.$$.fragment)},m(s,o){we(t,s,o),n=!0},p(s,o){const i={};o&8&&(i.cancelIcon=s[3]),o&2&&(i.step=s[1]),t.$set(i)},i(s){n||(R(t.$$.fragment,s),n=!0)},o(s){j(t.$$.fragment,s),n=!1},d(s){ke(t,s)}}}function fi(e){let t,n,s,o=e[2]&&pn(e),i=e[3]&&e[3].enabled&&hn(e);return{c(){t=le("header"),o&&o.c(),n=bt(),i&&i.c(),F(t,"class","shepherd-header")},m(l,r){oe(l,t,r),o&&o.m(t,null),Ne(t,n),i&&i.m(t,null),s=!0},p(l,[r]){l[2]?o?(o.p(l,r),r&4&&R(o,1)):(o=pn(l),o.c(),R(o,1),o.m(t,n)):o&&(Oe(),j(o,1,1,()=>{o=null}),Te()),l[3]&&l[3].enabled?i?(i.p(l,r),r&8&&R(i,1)):(i=hn(l),i.c(),R(i,1),i.m(t,null)):i&&(Oe(),j(i,1,1,()=>{i=null}),Te())},i(l){s||(R(o),R(i),s=!0)},o(l){j(o),j(i),s=!1},d(l){l&&Z(t),o&&o.d(),i&&i.d()}}}function mi(e,t,n){let{labelId:s,step:o}=t,i,l;return e.$$set=r=>{"labelId"in r&&n(0,s=r.labelId),"step"in r&&n(1,o=r.step)},e.$$.update=()=>{e.$$.dirty&2&&(n(2,i=o.options.title),n(3,l=o.options.cancelIcon))},[s,o,i,l]}class pi extends fe{constructor(t){super(),de(this,t,mi,fi,ue,{labelId:0,step:1})}}function hi(e){let t;return{c(){t=le("div"),F(t,"class","shepherd-text"),F(t,"id",e[1])},m(n,s){oe(n,t,s),e[3](t)},p(n,[s]){s&2&&F(t,"id",n[1])},i:X,o:X,d(n){n&&Z(t),e[3](null)}}}function gi(e,t,n){let{descriptionId:s,element:o,step:i}=t;Jt(()=>{let{text:r}=i.options;ye(r)&&(r=r.call(i)),it(r)?o.appendChild(r):n(0,o.innerHTML=r,o)});function l(r){He[r?"unshift":"push"](()=>{o=r,n(0,o)})}return e.$$set=r=>{"descriptionId"in r&&n(1,s=r.descriptionId),"element"in r&&n(0,o=r.element),"step"in r&&n(2,i=r.step)},[o,s,i,l]}class yi extends fe{constructor(t){super(),de(this,t,gi,hi,ue,{descriptionId:1,element:0,step:2})}}function gn(e){let t,n;return t=new pi({props:{labelId:e[1],step:e[2]}}),{c(){Ie(t.$$.fragment)},m(s,o){we(t,s,o),n=!0},p(s,o){const i={};o&2&&(i.labelId=s[1]),o&4&&(i.step=s[2]),t.$set(i)},i(s){n||(R(t.$$.fragment,s),n=!0)},o(s){j(t.$$.fragment,s),n=!1},d(s){ke(t,s)}}}function yn(e){let t,n;return t=new yi({props:{descriptionId:e[0],step:e[2]}}),{c(){Ie(t.$$.fragment)},m(s,o){we(t,s,o),n=!0},p(s,o){const i={};o&1&&(i.descriptionId=s[0]),o&4&&(i.step=s[2]),t.$set(i)},i(s){n||(R(t.$$.fragment,s),n=!0)},o(s){j(t.$$.fragment,s),n=!1},d(s){ke(t,s)}}}function bn(e){let t,n;return t=new ii({props:{step:e[2]}}),{c(){Ie(t.$$.fragment)},m(s,o){we(t,s,o),n=!0},p(s,o){const i={};o&4&&(i.step=s[2]),t.$set(i)},i(s){n||(R(t.$$.fragment,s),n=!0)},o(s){j(t.$$.fragment,s),n=!1},d(s){ke(t,s)}}}function bi(e){let t,n=!W(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,s,o=!W(e[2].options.text),i,l=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length,r,c=n&&gn(e),a=o&&yn(e),m=l&&bn(e);return{c(){t=le("div"),c&&c.c(),s=bt(),a&&a.c(),i=bt(),m&&m.c(),F(t,"class","shepherd-content")},m(p,f){oe(p,t,f),c&&c.m(t,null),Ne(t,s),a&&a.m(t,null),Ne(t,i),m&&m.m(t,null),r=!0},p(p,[f]){f&4&&(n=!W(p[2].options.title)||p[2].options.cancelIcon&&p[2].options.cancelIcon.enabled),n?c?(c.p(p,f),f&4&&R(c,1)):(c=gn(p),c.c(),R(c,1),c.m(t,s)):c&&(Oe(),j(c,1,1,()=>{c=null}),Te()),f&4&&(o=!W(p[2].options.text)),o?a?(a.p(p,f),f&4&&R(a,1)):(a=yn(p),a.c(),R(a,1),a.m(t,i)):a&&(Oe(),j(a,1,1,()=>{a=null}),Te()),f&4&&(l=Array.isArray(p[2].options.buttons)&&p[2].options.buttons.length),l?m?(m.p(p,f),f&4&&R(m,1)):(m=bn(p),m.c(),R(m,1),m.m(t,null)):m&&(Oe(),j(m,1,1,()=>{m=null}),Te())},i(p){r||(R(c),R(a),R(m),r=!0)},o(p){j(c),j(a),j(m),r=!1},d(p){p&&Z(t),c&&c.d(),a&&a.d(),m&&m.d()}}}
1function vi(e,t,n){let{descriptionId:s,labelId:o,step:i}=t;return e.$$set=l=>{"descriptionId"in l&&n(0,s=l.descriptionId),"labelId"in l&&n(1,o=l.labelId),"step"in l&&n(2,i=l.step)},[s,o,i]}class _i extends fe{constructor(t){super(),de(this,t,vi,bi,ue,{descriptionId:0,labelId:1,step:2})}}function vn(e){let t;return{c(){t=le("div"),F(t,"class","shepherd-arrow"),F(t,"data-popper-arrow","")},m(n,s){oe(n,t,s)},d(n){n&&Z(t)}}}function wi(e){let t,n,s,o,i,l,r,c,a=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on&&vn();s=new _i({props:{descriptionId:e[2],labelId:e[3],step:e[4]}});let m=[{"aria-describedby":o=W(e[4].options.text)?null:e[2]},{"aria-labelledby":i=e[4].options.title?e[3]:null},e[1],{role:"dialog"},{tabindex:"0"}],p={};for(let f=0;f<m.length;f+=1)p=zo(p,m[f]);return{c(){t=le("div"),a&&a.c(),n=bt(),Ie(s.$$.fragment),an(t,p),Ve(t,"shepherd-has-cancel-icon",e[5]),Ve(t,"shepherd-has-title",e[6]),Ve(t,"shepherd-element",!0)},m(f,d){oe(f,t,d),a&&a.m(t,null),Ne(t,n),we(s,t,null),e[13](t),l=!0,r||(c=Tt(t,"keydown",e[7]),r=!0)},p(f,[d]){f[4].options.arrow&&f[4].options.attachTo&&f[4].options.attachTo.element&&f[4].options.attachTo.on?a||(a=vn(),a.c(),a.m(t,n)):a&&(a.d(1),a=null);const h={};d&4&&(h.descriptionId=f[2]),d&8&&(h.labelId=f[3]),d&16&&(h.step=f[4]),s.$set(h),an(t,p=Xo(m,[(!l||d&20&&o!==(o=W(f[4].options.text)?null:f[2]))&&{"aria-describedby":o},(!l||d&24&&i!==(i=f[4].options.title?f[3]:null))&&{"aria-labelledby":i},d&2&&f[1],{role:"dialog"},{tabindex:"0"}])),Ve(t,"shepherd-has-cancel-icon",f[5]),Ve(t,"shepherd-has-title",f[6]),Ve(t,"shepherd-element",!0)},i(f){l||(R(s.$$.fragment,f),l=!0)},o(f){j(s.$$.fragment,f),l=!1},d(f){f&&Z(t),a&&a.d(),ke(s),e[13](null),r=!1,c()}}}const ki=9,xi=27,Si=37,Ci=39;function _n(e){return e.split(" ").filter(t=>!!t.length)}function Oi(e,t,n){let{classPrefix:s,element:o,descriptionId:i,firstFocusableElement:l,focusableElements:r,labelId:c,lastFocusableElement:a,step:m,dataStepId:p}=t,f,d,h;const y=()=>o;Wo(()=>{n(1,p={[`data-${s}shepherd-step-id`]:m.id}),n(9,r=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,l=r[0]),n(10,a=r[r.length-1])}),Jt(()=>{h!==m.options.classes&&w()});function w(){C(h),h=m.options.classes,T(h)}function C(u){if(et(u)){const g=_n(u);g.length&&o.classList.remove(...g)}}function T(u){if(et(u)){const g=_n(u);g.length&&o.classList.add(...g)}}const S=u=>{const{tour:g}=m;switch(u.keyCode){case ki:if(r.length===0){u.preventDefault();break}u.shiftKey?(document.activeElement===l||document.activeElement.classList.contains("shepherd-element"))&&(u.preventDefault(),a.focus()):document.activeElement===a&&(u.preventDefault(),l.focus());break;case xi:g.options.exitOnEsc&&(u.preventDefault(),u.stopPropagation(),m.cancel());break;case Si:g.options.keyboardNavigation&&(u.preventDefault(),u.stopPropagation(),g.back());break;case Ci:g.options.keyboardNavigation&&(u.preventDefault(),u.stopPropagation(),g.next());break}};function b(u){He[u?"unshift":"push"](()=>{o=u,n(0,o)})}return e.$$set=u=>{"classPrefix"in u&&n(11,s=u.classPrefix),"element"in u&&n(0,o=u.element),"descriptionId"in u&&n(2,i=u.descriptionId),"firstFocusableElement"in u&&n(8,l=u.firstFocusableElement),"focusableElements"in u&&n(9,r=u.focusableElements),"labelId"in u&&n(3,c=u.labelId),"lastFocusableElement"in u&&n(10,a=u.lastFocusableElement),"step"in u&&n(4,m=u.step),"dataStepId"in u&&n(1,p=u.dataStepId)},e.$$.update=()=>{e.$$.dirty&16&&(n(5,f=m.options&&m.options.cancelIcon&&m.options.cancelIcon.enabled),n(6,d=m.options&&m.options.title))},[o,p,i,c,m,f,d,S,l,r,a,s,y,b]}class Ti extends fe{constructor(t){super(),de(this,t,Oi,wi,ue,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class Dt extends zt{constructor(t,n={}){return super(),this._resolvedAttachTo=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?Dn(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,Nt(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){Po(this),it(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")}_resolveAttachToOptions(){return this._resolvedAttachTo=Gs(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}
1show(){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 Ti({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):$s(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(t)}_getClassOptions(t){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,s=t.classes?t.classes:"",o=n&&n.classes?n.classes:"",i=[...s.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=jt({},n||{}),this.options=Object.assign({arrow:!0},n,t,Lo(n,t));const{when:s}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${Bn()}`,s&&Object.keys(s).forEach(o=>{this.on(o,s[o],this)})}_setupElements(){W(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Us(this),Vo(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),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(),s=this.target||document.body;s.classList.add(`${this.classPrefix}shepherd-enabled`),s.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(t){const n=t.target;n&&(t.options.highlightClass&&n.classList.add(t.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),t.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const t=this.target||document.body;this.options.highlightClass&&t.classList.remove(this.options.highlightClass),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function $i(e){if(e){const{steps:t}=e;t.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&it(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function Ei({width:e,height:t,x:n=0,y:s=0,r:o=0}){const{innerWidth:i,innerHeight:l}=window,{topLeft:r=0,topRight:c=0,bottomRight:a=0,bottomLeft:m=0}=typeof o=="number"?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${i},${l}H0V0H${i}V${l}ZM${n+r},${s}a${r},${r},0,0,0-${r},${r}V${t+s-m}a${m},${m},0,0,0,${m},${m}H${e+n-a}a${a},${a},0,0,0,${a}-${a}V${s+c}a${c},${c},0,0,0-${c}-${c}Z`}function Ai(e){let t,n,s,o,i;return{c(){t=rn("svg"),n=rn("path"),F(n,"d",e[2]),F(t,"class",s=`${e[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(l,r){oe(l,t,r),Ne(t,n),e[11](t),o||(i=Tt(t,"touchmove",e[3]),o=!0)},p(l,[r]){r&4&&F(n,"d",l[2]),r&2&&s!==(s=`${l[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&F(t,"class",s)},i:X,o:X,d(l){l&&Z(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 Ii(e){let t={top:0,left:0};if(!e)return t;let n=e.ownerDocument.defaultView;for(;n!==window.top;){var s;const l=(s=n)==null?void 0:s.frameElement;if(l){var o,i;const r=l.getBoundingClientRect();t.top+=r.top+((o=r.scrollTop)!=null?o:0),t.left+=r.left+((i=r.scrollLeft)!=null?i:0)}n=n.parent}return t}function Vi(e,t){const n=e.getBoundingClientRect();let s=n.y||n.top,o=n.bottom||s+n.height;if(t){const l=t.getBoundingClientRect(),r=l.y||l.top,c=l.bottom||r+l.height;s=Math.max(s,r),o=Math.min(o,c)}const i=Math.max(o-s,0);return{y:s,height:i}}function Li(e,t,n){let{element:s,openingProperties:o}=t,i=!1,l,r;a();const c=()=>s;function a(){n(4,o={width:0,height:0,x:0,y:0,r:0})}function m(){n(1,i=!1),C()}function p(b=0,u=0,g=0,L=0,E,A){if(A){const{y:D,height:V}=Vi(A,E),{x:P,width:G,left:q}=A.getBoundingClientRect();n(4,o={width:G+b*2,height:V+b*2,x:(P||q)+g-b,y:D+L-b,r:u})}else a()}function f(b){C(),b.tour.options.useModalOverlay?(T(b),d()):m()}function d(){n(1,i=!0)}const h=b=>{b.preventDefault()},y=b=>{b.stopPropagation()};function w(){window.addEventListener("touchmove",h,{passive:!1})}function C(){l&&(cancelAnimationFrame(l),l=void 0),window.removeEventListener("touchmove",h,{passive:!1})}function T(b){const{modalOverlayOpeningPadding:u,modalOverlayOpeningRadius:g,modalOverlayOpeningXOffset:L=0,modalOverlayOpeningYOffset:E=0}=b.options,A=Ii(b.target),D=Qn(b.target),V=()=>{l=void 0,p(u,g,L+A.left,E+A.top,D,b.target),l=requestAnimationFrame(V)};V(),w()}function S(b){He[b?"unshift":"push"](()=>{s=b,n(0,s)})}return e.$$set=b=>{"element"in b&&n(0,s=b.element),"openingProperties"in b&&n(4,o=b.openingProperties)},e.$$.update=()=>{e.$$.dirty&16&&n(2,r=Ei(o))},[s,i,r,y,o,c,a,m,p,f,d,S]}class Pi extends fe{constructor(t){super(),de(this,t,Li,Ai,ue,{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 Mi extends zt{constructor(){super(),this.activeTour=void 0,Nt(this)}}class Ri extends zt{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,Nt(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,t),this.classPrefix=Dn(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","
1inactive","show","start"].map(o=>{(i=>{this.on(i,l=>{l=l||{},l.tour=this,Se.trigger(i,l)})})(o)}),this._setTourID(t.id),this}addStep(t,n){let s=t;return s instanceof Dt?s.tour=this:s=new Dt(this,s),W(n)?this.steps.push(s):this.steps.splice(n,0,s),s}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 Se.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((s,o)=>
1{if(s.id===t)return s.isOpen()&&s.hide(),s.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 s=et(t)?this.getById(t):this.steps[t];s&&(this._updateStateBeforeShow(),ye(s.options.showOn)&&!s.options.showOn()?this._skipStep(s,n):(this.trigger("show",{step:s,previous:this.currentStep}),this.currentStep=s,s.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(s=>s.destroy()),$i(this),this.trigger(t,{index:n}),Se.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(t==="cancel"||t==="complete")&&this.modal){const s=document.querySelector(".shepherd-modal-overlay-container");s&&(s.remove(),this.modal=null)}it(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Se.activeTour=this}setupModal(){this.modal=new Pi({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(t,n){const s=this.steps.indexOf(t);if(s===this.steps.length-1)this.complete();else{const o=n?s+1:s-1;this.show(o,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(t){const n=this.options.tourName||"tour",s=t||Bn();this.id=`${n}--${s}`}}const Se=new Mi,es=typeof window>"u";Se.Step=es?qs:Dt;Se.Tour=es?Ws:Ri;var Di={};const Fi="$shepherd",ts=(...e)=>new Se.Tour(...e),Ft=function(t){Ft.installed||(Ft.installed=!0,t.config.globalProperties[Fi]=ts)},Bi={install:Ft};if(Di.ES_BUILD==="false"){let e=null;typeof window<"u"?e=window.Vue:typeof global<"u"&&(e=global.Vue),e&&e.use(Bi)}const zi={class:"flex items-center justify-end"},ji={class:"font-bold text-2xl flex gap-2 items-center justify-center"},Ni={class:"font-medium"},Hi=["src"],Ui={class:"flex gap-2 mt-3"},qi={for:"check-confirm-kyc"},Wi={key:0,class:"flex justify-end mt-4"},$t=Ae({__name:"AcceptTerms",props:Xt({isLoading:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:Xt(["acceptTerms"],["update:modelValue"]),setup(e,{emit:t}){const{translate:n}=Cs(),s=wt(),o=Os(),{t:i,locale:l}=We(),r=e,c=t,a=cs(e,"modelValue"),m=N(!1),p=N(!1),f=st({ip:null,location:null,device:null,time:null,check:null,terms:null,language:null,source:"kyc"}),d=Y(()=>s.kycTerms),h=Y(()=>n(d.value.banner)||""),y=()=>{m.value=!0},w=()=>{m.value=!1};xn(p,S=>{S?a.value.meta.time=new Date:a.value.meta.time=null}),Sn(async()=>{C(),T().then(S=>{f.device=S}),f.check=n(d.value.confirm,!1)||i("kyc.acceptTerms.confirmRead"),f.terms=n(d.value.notice,!1)||i("kyc.acceptTerms.notice"),f.language=l.value,a.value.meta=f});const C=async()=>{o.getIp().then(S=>{f.ip=S.ip,f.location=`${S.city}, ${S.country_name}`})},T=async()=>{let S,b;const u=navigator.userAgent;let g;return(b=u.indexOf("OPR"))!=-1?g="Opera":(b=u.indexOf("Edg"))!=-1?g="Microsoft Edge":(b=u.indexOf("MSIE"))!=-1?g="Microsoft Internet Explorer":(b=u.indexOf("Chrome"))!=-1?g="Chrome":(b=u.indexOf("Safari"))!=-1?g="Safari":(b=u.indexOf("Firefox"))!=-1?g="Firefox":(S=u.lastIndexOf(" ")+1)<(b=u.lastIndexOf("/"))&&(g=u.substring(S,b),g.toLowerCase()==g.toUpperCase()&&(g=navigator.appName)),g};return(S,b)=>{const u=qe,g=Ge,L=Ss,E=Ue,A=os,D=is,V=xs;return I(),B("div",null,[v("div",zi,[Zt(S.$slots,"action-button",{show:y,close:w},()=>[_(u,{loading:r.isLoading,onClick:y},{default:O(()=>[z(k(x(i)("global.continue")),1)]),_:1},8,["loading"])])]),m.value?(I(),H(V,{key:0,onClose:b[2]||(b[2]=P=>m.value=!1),title:x(i)("global.confirm"),width:"700px"},{default:O(()=>[v("div",null,[v("p",ji,[_(g,{icon:x(_s),class:"mt-0.5"},null,8,["icon"]),v("span",null,k(x(i)("kyc.acceptTerms.title")),1)]),b[3]||(b[3]=v("br",null,null,-1)),v("p",Ni,k(x(i)("kyc.acceptTerms.subtitle",{company:x(s).theme.title.name})),1),h.value?(I(),B("img",{key:0,src:h.value,alt:"",class:"block w-full max-h-32 object-contain mt-4"},null,8,Hi)):U("",!0),d.value.notice?(I(),H(E,{key:1,class:"bg-secondary mt-4"},{default:O(()=>[_(L,{value:x(n)(d.value.notice,!1)||x(i)("kyc.acceptTerms.notice")},null,8,["value"])]),_:1})):U("",!0),_(A),v("div",Ui,[_(D,{inputId:"check-confirm-kyc",modelValue:p.value,"onUpdate:modelValue":b[0]||(b[0]=P=>p.value=P),binary:"",class:"mt-0.5"},null,8,["modelValue"]),v("label",qi,k(x(n)(d.value.confirm,!1)||x(i)("kyc.acceptTerms.confirmRead"))+". ",1)])]),_(Je,{name:"fade"},{default:O(()=>[p.value?(I(),B("div",Wi,[Zt(S.$slots,"submit-button",{show:y,close:w}
1,()=>[_(u,{loading:r.isLoading,onClick:b[1]||(b[1]=P=>c("acceptTerms"))},{default:O(()=>[z(k(x(i)("global.continue")),1)]),_:1},8,["loading"])])])):U("",!0)]),_:3})]),_:3},8,["title"])):U("",!0)])}}}),Gi={class:"flex items-start gap-2"},Ki={class:"flex flex-col"},Yi={class:"text-xl font-bold"},Ji=["innerHTML"],Xi={class:"text-sm text-secondary"},Zi={key:0},Qi={key:0,class:"flex items-center gap-2 mt-4 justify-center"},el={key:1,class:"mt-4"},tl={class:"text-xl font-bold"},nl=["innerHTML"],sl={key:0,class:"text-xs text-gray-500"},ol=["innerHTML"],il={key:1,class:"mt-4 text-center"},ll={class:"text-2xl font-bold mt-5"},rl=Ae({__name:"ValidateEmail",props:{user:{}},setup(e){const t=ot(),n=xt(),s=vt(),{t:o}=We(),i=st({code:null,sent:!1}),l=N(10),r=N(!1),c=N(!1),a=N(!1),m=()=>{const d=setInterval(()=>{l.value>0?l.value--:(clearInterval(d),c.value=!1)},1e3)},p=()=>{a.value=!0,n.sendEmail().then(d=>{r.value=!0,c.value=!0,l.value=10,m()}).catch(d=>{console.log(d)}).finally(()=>{a.value=!1})},f=()=>{a.value=!0,n.validateEmail({code:i.code,meta:i.meta}).then(d=>{a.value=!1,t.getInfo(),s.add({severity:"success",summary:o("kyc.validateEmailSuccess"),life:3e3})}).catch(d=>{a.value=!1})};return(d,h)=>{const y=Ge,w=qe,C=wn,T=Ue,S=_t("Vue3Lottie");return I(),B("div",null,[_(T,null,{default:O(()=>{var b,u;return[v("div",Gi,[_(y,{icon:x(ut),size:"30"},null,8,["icon"]),v("div",Ki,[v("h1",Yi,k(d.$t("kyc.verifyEmail")),1),v("p",{class:"text-sm text-secondary",innerHTML:d.$t("kyc.validateEmailDescription",{email:d.user.email})},null,8,Ji),v("p",Xi,k(d.$t("kyc.validateEmailDescriptionCheckEmail")),1)])]),(u=(b=d.user)==null?void 0:b.security)!=null&&u.isEmailValidated?(I(),B("div",il,[_(S,{animationData:x(kt),height:150,loop:!1},null,8,["animationData"]),v("h1",ll,k(d.$t("kyc.validateEmailSuccess")),1)])):(I(),B("div",Zi,[r.value?(I(),B("div",el,[_(T,{class:"bg-secondary flex"},{default:O(()=>[v("h2",tl,k(d.$t("kyc.SecurityVerification")),1),v("p",{class:"text-sm text-secondary mt-1 mb-3",innerHTML:d.$t("kyc.enterCodeDescription")},null,8,nl),_(C,{class:"mx-auto",pt:{pcInputText:{root:"dark:bg-surface-900"}},modelValue:i.code,"onUpdate:modelValue":h[2]||(h[2]=g=>i.code=g),length:6},null,8,["modelValue"]),_(w,{class:"mt-4",loading:a.value,onClick:h[3]||(h[3]=g=>f())},{default:O(()=>[_(y,{icon:x(On),size:"18"},null,8,["icon"]),z(" "+k(d.$t("kyc.validateCode")),1)]),_:1},8,["loading"]),_(w,{class:"mt-4 ml-2",text:"",disabled:c.value,loading:a.value,onClick:h[4]||(h[4]=g=>p())},{default:O(()=>[_(y,{icon:x(Tn),size:"18"},null,8,["icon"]),z(" "+k(d.$t("kyc.resendCode"))+" ",1),l.value>0?(I(),B("span",sl,k(l.value),1)):U("",!0)]),_:1},8,["disabled","loading"]),v("p",{class:"mt-4",innerHTML:d.$t("kyc.noReciveCode")},null,8,ol)]),_:1})])):(I(),B("div",Qi,[_($t,{modelValue:i,"onUpdate:modelValue":h[0]||(h[0]=g=>i=g),isLoading:a.value,onAcceptTerms:h[1]||(h[1]=g=>d.$emit("submit"))},{"action-button":O(({show:g})=>[_(w,{size:"small",loading:a.value,onClick:g,type:"button"},{default:O(()=>[_(y,{icon:x(ut),size:"30"},null,8,["icon"]),z(" "+k(d.$t("kyc.validateEmail")),1)]),_:2},1032,["loading","onClick"])]),"submit-button":O(({close:g})=>[_(w,{size:"small",loading:a.value,onClick:L=>(p(),g())},{default:O(()=>[_(y,{icon:x(ut),size:"30"},null,8,["icon"]),z(" "+k(d.$t("kyc.validateEmail")),1)]),_:2},1032,["loading","onClick"])]),_:1},8,["modelValue","isLoading"])]))]))]}),_:1})])}}}),al={class:"flex items-start gap-2"},cl={class:"flex flex-col"},ul={class:"text-xl font-bold"},dl=["innerHTML"],fl={class:"text-sm text-secondary"},ml={key:0},pl={key:0,class:"flex items-center gap-2 mt-4 justify-center"},hl={key:1,class:"mt-4"},gl={class:"text-xl font-bold"},yl=["innerHTML"],bl={key:0,class:"text-xs text-gray-500"},vl=["innerHTML"],_l={key:1,class:"mt-4 text-center"},wl={class:"text-2xl font-bold mt-5"},kl=Ae({__name:"ValidatePhone",props:{user:{}},setup(e){const t=ot(),n=xt(),s=vt(),{t:o}=We(),i=st({code:null,sent:!1}),l=N(10),r=N(!1),c=N(!1),a=N(!1),m=()=>{const d=setInterval(()=>{l.value>0?l.value--:(clearInterval(d),c.value=!1)},1e3)},p=()=>{a.value=!0,n.sendPhone().then(d=>{r.value=!0,c.value=!0,l.value=10,m()}).catch(d=>{console.log(d)}).finally(()=>{a.value=!1})},f=()=>{a.value=!0,n.validatePhone({code:i.code,meta:i.meta}).then(d=>{a.value=!1,t.getInfo(),s.add({severity:"success",summary:o("kyc.validatePhoneSuccess"),life:3e3})}).catch(d=>{a.value=!1})};return(d,h)=>{const y=Ge,w=qe,C=wn,T=Ue,S=_t("Vue3Lottie");return I(),B("div",null,[_(T,null,{default:O(()=>{var b,u;return[v("div",al,[_(y,{icon:x(dt),size:"30"},null,8,["icon"]),v("div",cl,[v("h1",ul,k(d.$t("kyc.validatePhone")),1),v("p",{class:"text-sm text-secondary",innerHTML:d.$t("kyc.weSendCodeToNumber",{phone:d.user.phone})},null,8,dl),v("p",fl,k(d.$t("kyc.pleaseEnterCode")),1)])]),(u=(b=d.user)==null?void 0:b.security)!=null&&u.isPhoneValidated?(I(),B("div",_l,[_(S,{animationData:x(kt),height:150,loop:!1},null,8,["animationData"]),v("h1",wl,k(d.$t("kyc.validatePhoneSuccess")),1)])):(I(),B("div",ml,[r.value?(I(),B("div",hl,[_(T,{class:"bg-secondary flex"},{default:O(()=>[v("h2",gl,k(d.$t("kyc.enterCodeSendBySms")),1),v("p",{class:"text-sm text-secondary mt-1 mb-3",innerHTML:d.$t("kyc.enterCodeDescriptionPhone")},null,8,yl),_(C,{class:"mx-auto",pt:{pcInputText:{root:"dark:bg-surface-900"}},modelValue:i.code,"onUpdate:modelValue":h[2]||(h[2]=g=>i.code=g),length:6},null,8,["modelValue"]),_(w,{class:"mt-4",loading:a.value,onClick:h[3]||(h[3]=g=>f())},{default:O(()=>[_(y,{icon:x(On),size:"18"},null,8,["icon"]),z(" "+k(d.$t("kyc.validateCode")),1)]),_:1},8,["loading"]),_(w,{class:"mt-4 ml-2",text:"",disabled:c.value,loading:a.value,onClick:h[4]||(h[4]=g=>p())},{default:O(()=>[_(y,{icon:x(Tn),size:"18"},null,8,["icon"]),z(" "+k(d.$t("kyc.resendCode"))+" ",1),l.value>0?(I(),B("span",bl,k(l.value),1)):U("",!0)]),_:1},8,["disabled","loading"]),v("p",{class:"mt-4",innerHTML:d.$t("kyc.noReciveC
1ode")},null,8,vl)]),_:1})])):(I(),B("div",pl,[_($t,{modelValue:i,"onUpdate:modelValue":h[0]||(h[0]=g=>i=g),isLoading:a.value,onAcceptTerms:h[1]||(h[1]=g=>d.$emit("submit"))},{"action-button":O(({show:g})=>[_(w,{size:"small",loading:a.value,onClick:g,type:"button"},{default:O(()=>[_(y,{icon:x(dt),size:"30"},null,8,["icon"]),z(" "+k(d.$t("kyc.sendVerificationCode")),1)]),_:2},1032,["loading","onClick"])]),"submit-button":O(({close:g})=>[_(w,{size:"small",loading:a.value,onClick:L=>(p(),g())},{default:O(()=>[_(y,{icon:x(dt),size:"30"},null,8,["icon"]),z(" "+k(d.$t("kyc.sendVerificationCode")),1)]),_:2},1032,["loading","onClick"])]),_:1},8,["modelValue","isLoading"])]))]))]}),_:1})])}}}),xl={class:"flex items-start gap-2"},Sl={class:"flex flex-col"},Cl={class:"text-xl font-bold"},Ol=["innerHTML"],Tl={key:0,class:"mt-4"},$l={class:"text-muted"},El={class:"mt-4"},Al={class:"text-muted"},Il={class:"flex justify-end mt-4"},Vl={class:"mt-4 text-center"},Ll={class:"text-2xl font-bold mt-5"},Pl={class:"text-secondary text-base text-center mt-3"},Ml={class:"text-secondary text-base font-medium mt-2 text-center"},Rl={class:"text-secondary text-base mt-6 text-center"},Dl={class:"text-secondary text-base text-center"},Fl=["href"],Bl={key:1,class:"mt-4 text-center"},zl={class:"text-2xl font-bold mt-5"},jl=Ae({__name:"ValidateId",props:{user:{}},setup(e){const t=ot(),n=xt(),s=vt(),{t:o}=We(),i=wt(),l=e,r=st({file:null,back:null,id:null}),c=N(),a=N(!1),m=({valid:h})=>{h&&(a.value=!0,n.uploadId(r).then(y=>{a.value=!1,t.getInfo(),s.add({severity:"success",summary:o("kyc.validateIdSuccess"),life:3e3})}).catch(()=>{a.value=!1,s.add({severity:"error",summary:o("global.error"),detail:o("global.errorOccurred"),life:3e3})}))},p=h=>{if(r.id&&r.file&&r.back)return h();c.value.click()},f=Y(()=>{var h;return(h=l.user)==null?void 0:h.kyc.find(y=>y.documentType==="isDocumentValidated")}),d=In(Me.object({id:Me.string({message:o("kyc.mustEnterNumberId")}).min(1,{message:o("kyc.mustEnterNumberId")})}));return(h,y)=>{const w=Ge,C=kn,T=Bt,S=An,b=En,u=qe,g=$n,L=_t("Vue3Lottie"),E=Ue;return I(),B("div",null,[_(E,null,{default:O(()=>{var A,D;return[v("div",xl,[_(w,{icon:x(ft),size:"30"},null,8,["icon"]),v("div",Sl,[v("h1",Cl,k(h.$t("kyc.validateId")),1),v("p",{class:"text-sm text-secondary",innerHTML:h.$t("kyc.validateIdDescription")},null,8,Ol)])]),(D=(A=h.user)==null?void 0:A.security)!=null&&D.isDocumentValidated?(I(),B("div",Bl,[_(L,{animationData:x(kt),height:150,loop:!1},null,8,["animationData"]),v("h1",zl,k(h.$t("kyc.validateIdSuccess")),1)])):(I(),B("div",Tl,[f.value?(I(),H(E,{key:1,class:"bg-secondary"},{default:O(()=>[v("div",Vl,[_(L,{animationData:x(Vn),height:100,loop:!1},null,8,["animationData"]),v("h1",Ll,k(h.$t("kyc.validationPending")),1),v("p",Pl,k(h.$t("kyc.weReciveTheFile")),1),v("p",Ml,k(h.$t("kyc.ourTeamIsVerifing")),1),v("p",Rl,k(h.$t("kyc.closeAndBrowsing")),1),v("p",Dl,[z(k(h.$t("kyc.orVisitOurSite"))+" ",1),v("a",{href:x(Cn).landingUrl,target:"_blank",class:"text-primary dark:text-white underline"},k(x(i).theme.title.name),9,Fl)])])]),_:1})):(I(),H(g,{key:0,initialValues:r,resolver:x(d),onSubmit:m},{default:O(()=>[_(S,{name:"id",class:"w-full mb-5"},{default:O(V=>[_(C,{modelValue:r.id,"onUpdate:modelValue":y[0]||(y[0]=P=>r.id=P),class:ge(["w-full",`rounded-${x(Xe)} border-${x(Ze)}`]),placeholder:h.$t("kyc.enterIdNumber")},null,8,["modelValue","class","placeholder"]),V!=null&&V.invalid?(I(),H(T,{key:0,severity:"error",size:"small",variant:"simple"},{default:O(()=>{var P;return[z(k((P=V.error)==null?void 0:P.message),1)]}),_:2},1024)):U("",!0)]),_:1}),v("div",null,[v("label",$l,k(h.$t("kyc.sideFront")),1),_(b,{nameField:"file",formField:"",required:"",types:["image/jpeg","image/png","image/jpg","application/pdf"],typedNames:"PNG, JPG, JPEG, PDF",sizeAllow:5,modelValue:r.file,"onUpdate:modelValue":y[1]||(y[1]=V=>r.file=V)},null,8,["modelValue"])]),v("div",El,[v("label",Al,k(h.$t("kyc.sideBack")),1),_(b,{nameField:"back",formField:"",required:"",types:["image/jpeg","image/png","image/jpg","application/pdf"],typedNames:"PNG, JPG, JPEG, PDF",sizeAllow:5,modelValue:r.back,"onUpdate:modelValue":y[2]||(y[2]=V=>r.back=V)},null,8,["modelValue"])]),v("div",Il,[_($t,{isLoading:a.value,onAcceptTerms:y[3]||(y[3]=V=>h.$emit("submit")),modelValue:r,"onUpdate:modelValue":y[4]||(y[4]=V=>r=V)},{"action-button":O(({show:V})=>[_(u,{loading:a.value,onClick:P=>p(V),type:"button"},{default:O(()=>[_(w,{icon:x(ft),size:"30"},null,8,["icon"]),z(" "+k(h.$t("kyc.uploadAndVerify")),1)]),_:2},1032,["loading","onClick"])]),"submit-button":O(({close:V})=>[_(u,{loading:a.value,type:"button",onClick:P=>(c.value.click(),V())},{default:O(()=>[_(w,{icon:x(ft),size:"30"},null,8,["icon"]),z(" "+k(h.$t("kyc.uploadAndVerify")),1)]),_:2},1032,["loading","onClick"])]),_:1},8,["isLoading","modelValue"]),v("button",{type:"submit",class:"hidden",ref_key:"submitBtn",ref:c},null,512)])]),_:1},8,["initialValues","resolver"]))]))]}),_:1})])}}}),Nl={class:"flex items-start gap-2"},Hl={class:"flex flex-col"},Ul={class:"text-xl font-bold"},ql=["innerHTML"],Wl={key:0,class:"mt-4"},Gl={class:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-5"},Kl={class:"text-muted text-sm"},Yl={class:"text-muted text-sm"},Jl={class:"text-muted text-sm"},Xl={class:"text-muted"},Zl={class:"mt-4"},Ql={class:"text-muted"},er={class:"flex justify-end mt-4"},tr={class:"mt-4 text-center"},nr={class:"text-2xl font-bold mt-5"},sr={class:"text-secondary text-base text-center mt-3"}
1,or={class:"text-secondary text-base font-medium mt-2 text-center"},ir={class:"text-secondary text-base mt-6 text-center"},lr={class:"text-secondary text-base text-center"},rr=["href"],ar={key:1,class:"mt-4 text-center"},cr={class:"text-2xl font-bold mt-5"},ur=Ae({__name:"ValidateAddress",props:{user:{},requireAddressDetails:{type:Boolean}},setup(e){var C,T,S,b;const t=ot(),n=xt(),s=vt(),o=wt(),{t:i}=We(),l=e,r=st({file:null,back:null,address:((C=l.user)==null?void 0:C.address)??null,city:((T=l.user)==null?void 0:T.city)??null,state:((S=l.user)==null?void 0:S.state)??null,zip:((b=l.user)==null?void 0:b.zip)??null}),c=Y(()=>{var u,g,L;return!!((u=l.user)!=null&&u.city&&((g=l.user)!=null&&g.state)&&((L=l.user)!=null&&L.zip))}),a=Y(()=>{var u,g;return!((g=(u=l.user)==null?void 0:u.security)!=null&&g.isResidenceValidated)||!!l.requireAddressDetails&&!c.value}),m=N(),p=N(!1),f=({valid:u})=>{u&&(p.value=!0,n.uploadAddress(r).then(g=>{p.value=!1,t.getInfo(),s.add({severity:"success",summary:i("kyc.validateAddressSuccess"),life:3e3})}).catch(()=>{p.value=!1,s.add({severity:"error",summary:i("global.error"),detail:i("global.errorOccurred"),life:3e3})}))},d=u=>{const g=!l.requireAddressDetails||r.city&&r.state&&r.zip;if(r.address&&r.file&&g)return u();m.value.click()},h=Y(()=>{var u;return(u=l.user)==null?void 0:u.kyc.find(g=>g.documentType==="isResidenceValidated")}),y=(u,g)=>{const L={message:i("kyc.addressFieldTooLong",{max:u})};return l.requireAddressDetails?Me.string({message:i(g)}).trim().min(1,{message:i(g)}).max(u,L):Me.string().trim().max(u,L).optional().nullable()},w=In(Me.object({address:Me.string({message:i("kyc.mustEnterAddress")}).min(1,{message:i("kyc.mustEnterAddress")}),city:y(120,"kyc.mustEnterCity"),state:y(60,"kyc.mustEnterState"),zip:y(20,"kyc.mustEnterZip")}));return(u,g)=>{const L=Ge,E=kn,A=Bt,D=An,V=En,P=qe,G=$n,q=_t("Vue3Lottie"),Q=Ue;return I(),B("div",null,[_(Q,null,{default:O(()=>[v("div",Nl,[_(L,{icon:x(mt),size:"30"},null,8,["icon"]),v("div",Hl,[v("h1",Ul,k(u.$t("kyc.validateAddress")),1),v("p",{class:"text-sm text-secondary",innerHTML:u.$t("kyc.validateAddressDescription")},null,8,ql)])]),a.value?(I(),B("div",Wl,[h.value?(I(),H(Q,{key:1,class:"bg-secondary"},{default:O(()=>[v("div",tr,[_(q,{animationData:x(Vn),height:100,loop:!1},null,8,["animationData"]),v("h1",nr,k(u.$t("kyc.validationPendingResident")),1),v("p",sr,k(u.$t("kyc.weReciveTheFile")),1),v("p",or,k(u.$t("kyc.ourTeamIsVerifing")),1),v("p",ir,k(u.$t("kyc.closeAndBrowsing")),1),v("p",lr,[z(k(u.$t("kyc.orVisitOurSite"))+" ",1),v("a",{href:x(Cn).landingUrl,target:"_blank",class:"text-primary dark:text-white underline"},k(x(o).theme.title.name),9,rr)])])]),_:1})):(I(),H(G,{key:0,initialValues:r,resolver:x(w),onSubmit:f},{default:O(()=>[_(D,{name:"address",class:"w-full mb-5"},{default:O($=>[_(E,{modelValue:r.address,"onUpdate:modelValue":g[0]||(g[0]=M=>r.address=M),class:ge(["w-full",`rounded-${x(Xe)} border-${x(Ze)}`]),placeholder:u.$t("kyc.enterResidentialAddress")},null,8,["modelValue","class","placeholder"]),$!=null&&$.invalid?(I(),H(A,{key:0,severity:"error",size:"small",variant:"simple"},{default:O(()=>{var M;return[z(k((M=$.error)==null?void 0:M.message),1)]}),_:2},1024)):U("",!0)]),_:1}),v("div",Gl,[_(D,{name:"city",class:"w-full"},{default:O($=>[v("label",Kl,k(u.$t("kyc.city")),1),_(E,{modelValue:r.city,"onUpdate:modelValue":g[1]||(g[1]=M=>r.city=M),class:ge(["w-full",`rounded-${x(Xe)} border-${x(Ze)}`]),placeholder:u.$t("kyc.enterCity")},null,8,["modelValue","class","placeholder"]),$!=null&&$.invalid?(I(),H(A,{key:0,severity:"error",size:"small",variant:"simple"},{default:O(()=>{var M;return[z(k((M=$.error)==null?void 0:M.message),1)]}),_:2},1024)):U("",!0)]),_:1}),_(D,{name:"state",class:"w-full"},{default:O($=>[v("label",Yl,k(u.$t("kyc.state")),1),_(E,{modelValue:r.state,"onUpdate:modelValue":g[2]||(g[2]=M=>r.state=M),class:ge(["w-full",`rounded-${x(Xe)} border-${x(Ze)}`]),placeholder:u.$t("kyc.enterState")},null,8,["modelValue","class","placeholder"]),$!=null&&$.invalid?(I(),H(A,{key:0,severity:"error",size:"small",variant:"simple"},{default:O(()=>{var M;return[z(k((M=$.error)==null?void 0:M.message),1)]}),_:2},1024)):U("",!0)]),_:1}),_(D,{name:"zip",class:"w-full"},{default:O($=>[v("label",Jl,k(u.$t("kyc.zip")),1),_(E,{modelValue:r.zip,"onUpdate:modelValue":g[3]||(g[3]=M=>r.zip=M),class:ge(["w-full",`rounded-${x(Xe)} border-${x(Ze)}`]),placeholder:u.$t("kyc.enterZip")},null,8,["modelValue","class","placeholder"]),$!=null&&$.invalid?(I(),H(A,{key:0,severity:"error",size:"small",variant:"simple"},{default:O(()=>{var M;return[z(k((M=$.error)==null?void 0:M.message),1)]}),_:2},1024)):U("",!0)]),_:1})]),v("div",null,[v("label",Xl,k(u.$t("kyc.sideFront")),1),_(V,{nameField:"file",formField:"",required:"",types:["image/jpeg","image/png","image/jpg","application/pdf"],typedNames:"PNG, JPG, JPEG, PDF",sizeAllow:5,modelValue:r.file,"onUpdate:modelValue":g[4]||(g[4]=$=>r.file=$)},null,8,["modelValue"])]),v("div",Zl,[v("label",Ql,k(u.$t("kyc.sideBack"))+" ("+k(u.$t("global.optional"))+") ",1),_(V,{formField:!1,types:["image/jpeg","image/png","image/jpg","application/pdf"],typedNames:"PNG, JPG, JPEG, PDF",sizeAllow:5,modelValue:r.back,"onUpdate:modelValue":g[5]||
1(g[5]=$=>r.back=$)},null,8,["modelValue"])]),v("div",er,[_($t,{modelValue:r,"onUpdate:modelValue":g[6]||(g[6]=$=>r=$),isLoading:p.value,onAcceptTerms:g[7]||(g[7]=$=>u.$emit("submit"))},{"action-button":O(({show:$})=>[_(P,{loading:p.value,onClick:M=>d($),type:"button"},{default:O(()=>[_(L,{icon:x(mt),size:"30"},null,8,["icon"]),z(" "+k(u.$t("kyc.uploadAndValidateAddress")),1)]),_:2},1032,["loading","onClick"])]),"submit-button":O(({close:$})=>[_(P,{size:"small",loading:p.value,type:"button",onClick:M=>(m.value.click(),$())},{default:O(()=>[_(L,{icon:x(mt),size:"30"},null,8,["icon"]),z(" "+k(u.$t("kyc.uploadAndValidateAddress")),1)]),_:2},1032,["loading","onClick"])]),_:1},8,["modelValue","isLoading"]),v("button",{type:"submit",class:"hidden",ref_key:"submitBtn",ref:m},null,512)])]),_:1},8,["initialValues","resolver"]))])):(I(),B("div",ar,[_(q,{animationData:x(kt),height:150,loop:!1},null,8,["animationData"]),v("h1",cr,k(u.$t("kyc.validateAddressSuccess")),1)]))]),_:1})])}}}),dr={class:"flex items-center gap-2"},fr={class:"whitespace-nowrap"},mr={class:"absolute top-[50%] -translate-y-[50%] right-0 group-hover:right-2"},pr={class:"overflow-hidden w-0 group-hover:w-auto transition-all duration-300 opacity-0 group-hover:opacity-100 whitespace-nowrap"},ct=Ae({__name:"StatusItem",props:{activeTab:{type:Boolean},isValidated:{type:Boolean},icon:{},label:{}},setup(e){return(t,n)=>{const s=Ge,o=rs,i=ls;return I(),B("div",{class:ge(["flex justify-between gap-2 rounded-lg p-2 group cursor-pointer relative py-3",{"bg-gray-100 dark:bg-surface-700":t.activeTab}])},[v("div",dr,[us(_(s,{icon:t.icon,size:"24"},null,8,["icon"]),[[i,t.label,void 0,{top:!0}]]),v("span",fr,k(t.label),1)]),v("div",mr,[_(o,{size:"small",text:"",class:"rounded-lg group-hover:bg-primary-50 dark:group-hover:bg-primary-800"},{default:O(()=>[_(s,{icon:t.isValidated?x(ws):x(ks),class:"transition-transform group-hover:-translate-x-1"},null,8,["icon"]),v("span",pr,k(t.isValidated?t.$t("global.completed"):t.$t("global.noComplete")),1)]),_:1})])],2)}}}),hr={class:"flex items-center justify-between gap-4 flex-wrap"},gr={class:"flex flex-col gap-2 mb-2"},yr={id:"step-email"},br={id:"step-phone"},vr={id:"step-id"},_r={id:"step-address"},Xr=Ae({__name:"Index",setup(e){const{getKycTerms:t}=gs(),n=ot(),{hasKYC:s}=ys(),o=Y(()=>n.user),i=Y(()=>{var E,A,D;return!!((E=o.value)!=null&&E.city&&((A=o.value)!=null&&A.state)&&((D=o.value)!=null&&D.zip))}),l=Y(()=>m.query.needs==="address"),r=Y(()=>{var E,A;return!!((A=(E=o.value)==null?void 0:E.security)!=null&&A.isResidenceValidated)&&(!l.value||i.value)}),c=Y(()=>s()&&(!l.value||i.value)),a=hs(),m=ds(),{closeFlow:p}=bs(),f=vs(),d=Y(()=>{const E=m.query.redirect;return typeof E!="string"||!E.startsWith("/")||E.startsWith("//")?null:E}),h=Y(()=>m.query.from==="deposit"?{ready:"kyc.depositReady",pending:"kyc.depositPending",back:"kyc.backToDeposit"}:{ready:"kyc.withdrawalReady",pending:"kyc.withdrawalPending",back:"kyc.backToWithdrawal"}),y=N("email"),w=E=>{y.value=E,a.push({...a.currentRoute.value,query:{...a.currentRoute.value.query,tab:E}})};xn(o,()=>{var E,A,D,V,P,G;if(!((A=(E=o.value)==null?void 0:E.security)!=null&&A.isEmailValidated)){w("email");return}if(!((V=(D=o.value)==null?void 0:D.security)!=null&&V.isPhoneValidated)){w("phone");return}if(!((G=(P=o.value)==null?void 0:P.security)!=null&&G.isDocumentValidated)){w("document");return}if(!r.value){w("residence");return}},{immediate:!0});const C=N(null),T=N(null),S=N(null),b=N(null),u=N(null),g={mainContainer:C,step1:T,step2:S,step3:b,step4:u},L=ts({useModalOverlay:!0,defaultStepOptions:{classes:"shepherd-main-container",scrollTo:!0}});return Ts(L,g),Sn(()=>{}),fs(()=>{L.complete()}),ms(async()=>{await t()}),(E,A)=>{const D=as,V=qe,P=Bt,G=ss,q=Ue,Q=ns;return I(),B(ps,null,[x(f)?U("",!0):(I(),H(D,{key:0,onClick:A[0]||(A[0]=$=>x(p)())})),d.value?(I(),H(P,{key:1,severity:c.value?"success":"info",closable:!1,class:"mb-4"},{default:O(()=>[v("div",hr,[v("span",null,k(c.value?E.$t(h.value.ready):E.$t(h.value.pending)),1),c.value?(I(),H(V,{key:0,size:"small",onClick:A[1]||(A[1]=$=>x(a).push(d.value))},{default:O(()=>[z(k(E.$t(h.value.back)),1)]),_:1})):U("",!0)])]),_:1},8,["severity"])):U("",!0),_(Q,null,{default:O(()=>[_(G,{cols:12,md:"6",lg:"8",class:ge({"pr-4":!x(f)})},{default:O(()=>[v("div",{ref_key:"mainContainer",ref:C},[_(Je,{name:"fade"},{default:O(()=>[y.value==="email"?(I(),H(rl,{key:0,user:o.value},null,8,["user"])):U("",!0)]),_:1}),_(Je,{name:"fade"},{default:O(()=>[y.value==="phone"?(I(),H(kl,{key:0,user:o.value},null,8,["user"])):U("",!0)]),_:1}),_(Je,{name:"fade"},{default:O(()=>[y.value==="document"?(I(),H(jl,{key:0,user:o.value},null,8,["user"])):U("",!0)]),_:1}),_(Je,{name:"fade"},{default:O(()=>
1[y.value==="residence"?(I(),H(ur,{key:0,user:o.value,requireAddressDetails:l.value},null,8,["user","requireAddressDetails"])):U("",!0)]),_:1})],512)]),_:1},8,["class"]),_(G,{cols:12,md:"6",lg:"4",class:ge({"order-first mb-4":x(f)})},{default:O(()=>[_(q,null,{default:O(()=>{var $,M,me,re,ee,te;return[v("div",gr,[v("div",{ref_key:"step1",ref:T},[v("div",yr,[_(ct,{activeTab:y.value==="email",isValidated:(M=($=o.value)==null?void 0:$.security)==null?void 0:M.isEmailValidated,onClick:A[2]||(A[2]=Ye=>{var pe,he;return(he=(pe=o.value)==null?void 0:pe.security)!=null&&he.isEmailValidated?null:w("email")}),icon:x(ut),label:E.$t("kyc.email")},null,8,["activeTab","isValidated","icon","label"])])],512),v("div",{ref_key:"step2",ref:S},[v("div",br,[_(ct,{activeTab:y.value==="phone",isValidated:(re=(me=o.value)==null?void 0:me.security)==null?void 0:re.isPhoneValidated,onClick:A[3]||(A[3]=Ye=>{var pe,he;return(he=(pe=o.value)==null?void 0:pe.security)!=null&&he.isPhoneValidated?null:w("phone")}),icon:x(dt),label:E.$t("kyc.phone")},null,8,["activeTab","isValidated","icon","label"])])],512),v("div",{ref_key:"step3",ref:b},[v("div",vr,[_(ct,{activeTab:y.value==="document",isValidated:(te=(ee=o.value)==null?void 0:ee.security)==null?void 0:te.isDocumentValidated,onClick:A[4]||(A[4]=Ye=>{var pe,he;return(he=(pe=o.value)==null?void 0:pe.security)!=null&&he.isDocumentValidated?null:w("document")}),icon:x(ft),label:E.$t("kyc.id")},null,8,["activeTab","isValidated","icon","label"])])],512),v("div",{ref_key:"step4",ref:u},[v("div",_r,[_(ct,{activeTab:y.value==="residence",isValidated:r.value,onClick:A[5]||(A[5]=Ye=>r.value?null:w("residence")),icon:x(mt),label:E.$t("kyc.address")},null,8,["activeTab","isValidated","icon","label"])])],512)])]}),_:1})]),_:1},8,["class"])]),_:1})],64)}}});export{Xr as default};
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.