1import{r as e,t}from"./chunk-QTnfLwEv.js";import{A as n,C as r,E as i,M as a,X as o,_ as s,b as c,c as l,d as u,et as d,i as f,n as p,nt as m,rt as h,tt as g,x as _,y as v}from"./dist-Dwy9VqNa.js";import{c as y,i as b,o as x,r as S,t as C,u as w}from"./react-dom-HmaMECB0.js";import{Ft as T,It as E,K as D,P as ee,Rt as O,X as k,b as A,bn as te,cn as j,d as M,dn as N,en as P,ln as ne,mn as re,on as ie,ot as ae,pn as oe,sn as se,tn as ce,vn as le,wt as ue,xn as de,y as fe}from"./dist-ANAaXWpR.js";import{a as pe,b as me,d as he,f as ge,o as _e,p as ve,u as ye}from"./svg-DtNqJVFy.js";import{a as be,f as xe,l as Se,n as Ce,o as we,r as Te}from"./theme-ej_kzrAb.js";import{a as Ee,c as De,d as F,i as Oe,l as ke,o as Ae,r as je}from"./notifications-B3GOfRFO.js";import{a as Me,n as Ne,t as Pe}from"./objectWithoutPropertiesLoose-Cck-yhK0.js";import{t as Fe}from"./AnimatedHeight-DHchK51g.js";var I=e(h(),1),L=m(),Ie=o(),Le=e(C(),1);function Re(e,t){return Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Re(e,t)}var ze=20,Be=20,Ve=4,He={right:`linear-gradient(to left, rgb(0, 0, 0, 0) 0%, rgb(0, 0, 0) min(30%, 100px), rgba(0, 0, 0) 100%)`,left:`linear-gradient(to right, rgb(0, 0, 0, 0) 0%, rgb(0, 0, 0) min(30%, 100px), rgba(0, 0, 0) 100%)`,top:`linear-gradient(to bottom, rgb(0, 0, 0, 0) 0%, rgb(0, 0, 0) min(30%, 100px), rgba(0, 0, 0) 100%)`,bottom:`linear-gradient(to top, rgb(0, 0, 0, 0) 0%, rgb(0, 0, 0) min(30%, 100px), rgba(0, 0, 0) 100%)`,horizontal:`linear-gradient(to left, rgb(0, 0, 0, 0) 0%, rgb(0, 0, 0) min(30%, 100px), rgb(0, 0, 0) max(70%, calc(100% - 100px)), rgba(0, 0, 0, 0) 100%)`,vertical:`linear-gradient(to top, rgb(0, 0, 0, 0) 0%, rgb(0, 0, 0) min(30%, 100px), rgb(0, 0, 0) max(70%, calc(100% - 100px)), rgba(0, 0, 0, 0) 100%)`},Ue=g.div` 2 &.hidden-scroll-bars::-webkit-scrollbar, &.scroll-arrows ::-webkit-scrollbar {
3 width: 0; 4 height: 0; 5 } 6 7 &.scroll-arrows { 8 position: relative; 9 10 > .content { 11 width: 100%; 12 } 13 } 14 15 .scroll-to-left, .scroll-to-right, .scroll-to-top, .scroll-to-bottom { 16 position: absolute; 17 top: 0; 18 bottom: 0; 19 left: 0; 20 right: 0; 21 width: 30px; 22 height: 30px; 23 display: flex; 24 align-items: center; 25 justify-content: center; 26 opacity: 0; 27 pointer-events: none; 28 transition: opacity 0.3s; 29 30 ${r} { 31 background-color: ${u.color.light[300]}; 32 border-radius: 50%; 33 width: 16px; 34 height: 16px; 35 display: flex; 36 align-items: center; 37 justify-content: center; 38 } 39 40 &.visible { 41 opacity: 0.6; 42 pointer-events: auto; 43 44 &:hover { 45 opacity: 1; 46 } 47 } 48 } 49 50 .scroll-to-left { 51 right: unset; 52 height: unset; 53 } 54 55 .scroll-to-right { 56 left: unset; 57 height: unset; 58 } 59 60 .scroll-to-top { 61 bottom: unset; 62 width: unset; 63 } 64 65 .scroll-to-bottom { 66 top: unset; 67 width: unset; 68 } 69`,We=({children:e,scroll:t=`none`,sides:n,enableHorizontalScrollWithVerticalWheel:i,className:a,...o})=>{let s=(0,I.useRef)(null),c=(0,I.useRef)();return(0,I.useEffect)(()=>{if(!s.current)return;let e=s.current,r=!n||n.includes(`top`),i=!n||n.includes(`right`),a=!n||n.includes(`bottom`),o=!n||n.includes(`left`),l=t===`none`?`clip`:`auto`;e.style.overflowX=o||i?l:``,e.style.overflowY=r||a?l:``,(t===`arrows`||t===`wheel`)&&e.classList.add(`hidden-scroll-bars`);function u(){clearInterval(c.current)}function d(){let n=e.clientWidth<e.scrollWidth&&e.scrollLeft<e.scrollWidth-e.clientWidth,s=e.scrollLeft>0,l=e.clientHeight<e.scrollHeight&&e.scrollTop<e.scrollHeight-e.clientHeight-2,d=e.scrollTop>0,f=[];if(s&&o&&n&&i?f.push(He.horizontal):(n&&i&&f.push(He.right),s&&o&&f.push(He.left)),d&&r&&l&&a?f.push(He.vertical):(d&&r&&f.push(He.top),l&&a&&f.push(He.bottom)),e.style.maskImage=f.join(`, `),t!==`arrows`)return;function p(t){u();let n=t===`bottom`||t===`top`?`scrollTop`:`scrollLeft`,r=t===`bottom`||t===`right`?1:-1;c.current=window.setInterval(()=>{e[n]+=Ve*r},Be)}let m={left:()=>p(`left`),right:()=>p(`right`),top:()=>p(`top`),bottom:()=>p(`bottom`)},h={left:()=>e.scrollLeft=0,right:()=>e.scrollLeft=e.scrollWidth-e.clientWidth,top:()=>e.scrollTop=0,bottom:()=>e.scrollTop=e.scrollHeight-e.clientHeight};function g(t){let n=e.parentNode?.querySelector(`.scroll-to-${t}`);n?.classList.contains(`visible`)||(n?.classList.add(`visible`),n?.addEventListener(`mouseenter`,m[t]),n?.addEventListener(`mouseleave`,u),n?.addEventListener(`click`,h[t]))}function _(t){let n=e.parentNode?.querySelector(`.scroll-to-${t}`);n?.classList.contains(`visible`)&&(n?.classList.remove(`visible`),u(),n?.removeEventListener(`mouseenter`,m[t]),n?.removeEventListener(`mouseleave`,u),n?.removeEventListener(`click`,h[t]))}n&&i?g(`right`):_(`right`),s&&o?g(`left`):_(`left`),d&&r?g(`top`):_(`top`),l&&a?g(`bottom`):_(`bottom`)}let f=(0,Ie.debounce)(d,ze),p=new MutationObserver(f);p.observe(e,{childList:!0,subtree:!0,characterData:!0});let m=new ResizeObserver(f);m.observe(e);let h=s.current.querySelectorAll(`[role="menuitem"]`),g=[];return h.forEach(e=>{let t=new ResizeObserver(()=>{f()});t.observe(e),g.push(t)}),e.addEventListener(`scroll`,f),f(),()=>{u(),p.disconnect(),m.disconnect(),g.forEach(e=>e.disconnect()),e.removeEventListener(`scroll`,f)}},[n,t]),(0,I.useEffect)(()=>{if(!i||!s.current)return;let e=s.current;function t(t){t.deltaY&&(e.scrollLeft+=t.deltaY,t.preventDefault(),t.stopPropagation())}return e.addEventListener(`wheel`,t),()=>e.removeEventListener(`wheel`,t)},[s.current,i]),t===`arrows`?(0,L.jsxs)(Ue,{...o,className:p([`scroll-arrows`,a]),children:[(0,L.jsx)(`div`,{className:`content`,ref:s,children:e}),(0,L.jsx)(`div`,{className:`scroll-to-left`,"aria-hidden":!0,children:(0,L.jsx)(r,{size:`xs`,children:(0,L.jsx)(ne,{})})}),(0,L.jsx)(`div`,{className:`scroll-to-right`,"aria-hidden":!0,children:(0,L.jsx)(r,{size:`xs`,children:(0,L.jsx)(j,{})})}),(0,L.jsx)(`div`,{className:`scroll-to-top`,"aria-hidden":!0,children:(0,L.jsx)(r,{size:`xs`,children:(0,L.jsx)(se,{})})}),(0,L.jsx)(`div`,{className:`scroll-to-bottom`,"aria-hidden":!0,
69children:(0,L.jsx)(r,{size:`xs`,children:(0,L.jsx)(N,{})})})]}):(0,L.jsx)(Ue,{...o,className:a,ref:s,children:e})},Ge=300,Ke=`max-height ease-in ${Ge/1e3}s`,qe=g.div` 70 max-height: 0; 71 overflow-y: ${({$scroll:e})=>e?`auto`:`hidden`}; 72 overflow-x: hidden; 73 transition: ${Ke}, visibility 0s ${Ge/1e3}s; 74 z-index: 1; 75 box-shadow: 4px 4px 48px #000; 76 border-radius: 0.5rem; 77 visibility: hidden; 78 79 .selection-list-content { 80 display: flex; 81 flex-direction: column; 82 border-radius: 0.5rem; 83 background-color: ${u.color.light[300]}; 84 padding-inline: ${({$showListAsCard:e})=>e?`8px`:`0`}; 85 } 86 87 .section-title, li > a { 88 height: 40px; 89 padding: 0 8px; 90 display: flex; 91 flex-direction: row; 92 align-items: center; 93 } 94 95 li > a { 96 gap: 4px; 97 transition: background-color 0.2s; 98 &:hover, &:focus { 99 background: ${u.color.light[400]}; 100 } 101 .label { 102 flex: 1; 103 white-space: nowrap; 104 overflow: hidden; 105 text-overflow: ellipsis; 106 } 107 } 108 109 li.action { 110 background-color: ${({$showListAsCard:e})=>e?u.color.light[400]:``}; 111 border: ${({$showListAsCard:e})=>`1px solid`+e?u.color.light[500]:`transparent`}; 112 border-radius: ${({$showListAsCard:e})=>e?`4px`:`0`}; 113 margin-bottom: ${({$showListAsCard:e})=>e?`8px`:`0`}; 114 } 115 116 li.section { 117 border-bottom: 2px solid; 118 border-bottom-color: ${({$showListAsCard:e})=>e?`transparent`:u.color.light[600]}; 119 &:last-child { 120 border-bottom: none; 121 } 122 } 123 124 &.visible { 125 max-height: ${({$maxHeight:e})=>e}; 126 visibility: visible; 127 transition: ${Ke}; 128 } 129`;function Je({label:e,href:t,onClick:n,icon:i,iconRight:a,active:o,target:s,iconActive:l=(0,L.jsx)(re,{}),className:u=``,lang:d,hrefLang:f,title:p,role:m=`link`},{onClose:h,Link:g}){function _(e){n?.(e),h?.()}let v=typeof e==`string`;return(0,L.jsx)(`li`,{className:`action`,title:p,children:(0,L.jsxs)(g,{href:t,onClick:_,target:s,tabIndex:0,"aria-current":o&&`page`,className:u,lang:d,hrefLang:f,role:m,children:[i&&(0,L.jsx)(r,{children:i}),v?(0,L.jsx)(c,{appearance:`body2`,className:`label`,children:e}):e.element,a&&(0,L.jsx)(r,{children:a}),o&&(0,L.jsx)(r,{children:l})]})},v?e:e.id)}function Ye({label:e,icon:t,iconRight:n,className:i=``,children:a},{setCurrent:o,controllerId:s,Link:l}){function u(t){t.target?.setAttribute?.(`aria-expanded`,`true`),o({items:a,label:e})}return(0,L.jsx)(`li`,{className:`collapsible`,children:(0,L.jsxs)(l,{onClick:u,tabIndex:0,className:i,"aria-expanded":!1,"aria-controls":s,children:[t&&(0,L.jsx)(r,{children:t}),(0,L.jsx)(c,{appearance:`body2`,className:`label`,children:e}),n&&(0,L.jsx)(r,{children:n}),(0,L.jsx)(r,{children:(0,L.jsx)(j,{})})]})},e)}function Xe({label:e,className:t=``,children:n},r){return(0,L.jsxs)(`li`,{className:`${t} section`,children:[e&&(0,L.jsx)(c,{appearance:`overheader2`,colorScheme:`light.700`,className:`section-title`,children:e}),(0,L.jsx)(`ul`,{children:n.map(e=>Ze(e,r))})]},e??n.map(e=>e.label).join(`-`))}function Ze(e,t){return`children`in e?e.type===`section`?Xe(e,t):Ye(e,t):Je(e,t)}var Qe=({id:e,items:t,className:n,style:r,visible:a=!0,maxHeight:o=`300px`,onHide:s,before:l,after:u,scroll:d,showListAsCard:f})=>{let m=F(),h=w($e),[g,_]=(0,I.useState)({items:t}),{keyboardControlledElement:v,attachKeyboardListeners:y,detachKeyboardListeners:b}=we({onPressEscape:s,querySelectors:`li.action a, li.collapsible a, button`}),x=(0,I.useMemo)(()=>g.items.map(t=>Ze(t,{setCurrent:e=>_({...e,parent:g}),onClose:s,controllerId:e,Link:m})),[g]);(0,I.useEffect)(()=>{let e=v.current;if(!e)return;let t=()=>{e.style.overflow=`auto`};return e.addEventListener(`transitionend`,t),()=>{e.removeEventListener(`transitionend`,t)}},[]);let S=()=>{let e=v.current;e&&(e.style.overflow=`hidden`)},C=(0,I.useCallback)(e=>{let t=e.target,n=!t?.isConnected||v.current?.contains(t),r=t?.classList?.contains(`action`)||!!t?.closest(`.action`);!t?.closest(`#___reactour`)&&(!n||r)&&s?.()},[]);return(0,I.useEffect)(()=>{S();function e(){b(),document.removeEventListener(`click`,C)}return a?(_({items:t}),y(),s&&setTimeout(()=>document.addEventListener(`click`,C),50)):e(),()=>e()},[a,t]),(0,L.jsx)(qe,{id:e,ref:v,$maxHeight:o,style:r,className:p([`selection-list`,a?`visible`:void 0,n]),$scroll:d,"aria-hidden":!a,$showListAsCard:f,children:(0,L.jsxs)(`div`,{className:`selection-list-content`,children:[l,g.parent?(0,L.jsxs)(i,{mt:5,mb:1,alignItems:`center`,children:[(0,L.jsx)(A,{onClick:e=>{e.target?.setAttribute?.(`aria-expanded`,`false`),_(g.parent??{items:t})},sx:{mr:3},title:h.back,"aria-controls":e,"aria-expanded":!0,children:(0,L.jsx)(de,{})}),(0,L.jsx)(c,{appearance:`microtext1`,children:g.label})]}):void 0,(0,L.jsxs)(`ul`,{children:[x,u&&(0,L.jsx)(`li`,{className:`action`,children:u})]})]})})},$e={en:{back:`Go back`},pt:{back:`Voltar`}},R={layout:`layout`,backdrop:`backdrop`,modal:`modal`,rightPanel:`rightPanel`,bottomDialog:`bottomDialog`,page:`page`,content:`content`,header:`header`,menu:`menu`,menuContent:`menuContent`,menuInnerContent:`menuInnerContent`,menuSections:`menuSections`,accessibilityAnnouncer:`accessibilityAnnouncer`};function et(){return Object.keys(R).reduce((e,t)=>
129({...e,[t]:document.getElementById(t)}),{})}var tt={en:{close:`Close`,validationLabel:`Please, confirm the action by typing "$0" below:`,dismiss:`Dismiss`,confirm:`OK`,cancel:`Cancel`,goBack:`Return`},pt:{close:`Fechar`,validationLabel:`Por favor, confirme a ação digitando "$0" no campo abaixo:`,dismiss:`Dispensar`,confirm:`OK`,cancel:`Cancelar`,goBack:`Voltar`}},nt=()=>w(tt);function rt(){return tt[S(x)]}var it=`close-overlay`,at=g.section` 130 display: flex; 131 flex-direction: column; 132 border-radius: 1rem; 133 background-color: ${u.color.light[400]}; 134 &.modal { 135 padding: 32px; 136 } 137 &.panel { 138 padding: 20px; 139 display: flex; 140 flex-direction: column; 141 flex: 1; 142 } 143 > header { 144 display: flex; 145 flex-direction: row; 146 margin-bottom: 1.25rem; 147 } 148`,ot=({children:e,title:t,subtitle:n,className:r,style:a,onClose:o,onGoBack:s,type:l,closeButtonAriaLabel:u})=>{let d=nt();return(0,L.jsxs)(at,{style:a,className:p([r,l]),children:[(0,L.jsxs)(`header`,{children:[(0,L.jsxs)(i,{flexDirection:`column`,flex:1,children:[(0,L.jsxs)(i,{style:{gap:`6px`},children:[s&&(0,L.jsx)(A,{appearance:`circle`,onClick:s,title:d.goBack,"aria-label":d.goBack,children:(0,L.jsx)(de,{})}),(0,L.jsx)(c,{as:`h1`,appearance:l===`modal`?`h3`:`h4`,children:t})]}),n&&(0,L.jsx)(c,{appearance:`body2`,colorScheme:`light.700`,children:n})]}),(0,L.jsx)(A,{appearance:`circle`,onClick:o,title:d.close,"aria-label":u||d.close,id:it,children:(0,L.jsx)(D,{})})]}),e]})},st={center:`center`,left:`start`,right:`end`,corners:`space-between`},ct=({children:e,title:t,subtitle:r,cancel:a,confirm:o,validation:s,onGoBack:c,onConfirm:l,onCancel:u,type:d=`modal`,buttonPlacement:f=d===`panel`?`left`:`right`,buttonColor:p=`primary`})=>{let m=nt(),[h,g]=(0,I.useState)(!s);function y(){if(!s)return null;let e=typeof s==`string`?s:s.value,t=typeof s==`object`&&s.label?s.label:b(m.validationLabel,e),n=typeof s==`object`?s.placeholder:void 0;return(0,L.jsxs)(`div`,{style:{margin:`24px 0 16px`},children:[(0,L.jsx)(v,{htmlFor:`input-validation`,children:t}),(0,L.jsx)(_,{id:`input-validation`,placeholder:n,onChange:t=>g(t.target.value===e),style:{marginTop:`10px`}})]})}return(0,L.jsxs)(ot,{title:t,subtitle:r,onClose:u,type:d,onGoBack:c,children:[(0,L.jsxs)(i,{flexDirection:`column`,flex:1,children:[e,y()]}),(a||o)&&(0,L.jsxs)(i,{gap:!0,justifyContent:st[f],alignItems:`center`,sx:{mt:6},children:[a&&(0,L.jsx)(n,{appearance:`outlined`,colorScheme:`inverse`,onClick:u,children:a}),o&&(0,L.jsx)(n,{colorScheme:p,onClick:l,disabled:!h,children:o})]})]})},lt=class extends Error{constructor(e){super(`Layout error: ${e}`)}},ut=class extends lt{constructor(e,t){super(`unable to create ${e} because no element with id "${t}" was found in the view.`)}};function dt(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=dt(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function z(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=dt(e))&&(r&&(r+=` `),r+=t);return r}var ft=e=>typeof e==`number`&&!isNaN(e),B=e=>typeof e==`string`,V=e=>typeof e==`function`,pt=e=>B(e)||V(e)?e:null,mt=e=>(0,I.isValidElement)(e)||B(e)||V(e)||ft(e);function ht(e,t,n){n===void 0&&(n=300);let{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight=`initial`,i.height=r+`px`,i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height=`0`,i.padding=`0`,i.margin=`0`,setTimeout(t,n)})})}function gt(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(e){let{children:o,position:s,preventExitTransition:c,done:l,nodeRef:u,isIn:d,playToast:f}=e,p=r?`${t}--${s}`:t,m=r?`${n}--${s}`:n,h=(0,I.useRef)(0);return(0,I.useLayoutEffect)(()=>{let e=u.current,t=p.split(` `),n=r=>{r.target===u.current&&(f(),e.removeEventListener(`animationend`,n),e.removeEventListener(`animationcancel`,n),h.current===0&&r.type!==`animationcancel`&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener(`animationend`,n),e.addEventListener(`animationcancel`,n)},[]),(0,I.useEffect)(()=>{let e=u.current,t=()=>{e.removeEventListener(`animationend`,t),i?ht(e,l,a):l()};d||(c?t():(h.current=1,e.className+=` ${m}`,e.addEventListener(`animationend`,t)))},[d]),I.createElement(I.Fragment,null,o)}}function _t(e,t){return e==null?{}:{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}var H=new Map,vt=[],yt=new Set,bt=e=>yt.forEach(t=>t(e)),xt=()=>H.size>0;function St(e,t){var n;if(t)return!((n=H.get(t))==null||!n.isToastActive(e));let r=!1;return H.forEach(t=>{t.isToastActive(e)&&(r=!0)}),r}function Ct(e,t){mt(e)&&(xt()||vt.push({content:e,options:t}),H.forEach(n=>
148{n.buildToast(e,t)}))}function wt(e,t){H.forEach(n=>{t!=null&&t!=null&&t.containerId?t?.containerId===n.id&&n.toggle(e,t?.id):n.toggle(e,t?.id)})}function Tt(e){let{subscribe:t,getSnapshot:n,setProps:r}=(0,I.useRef)(function(e){let t=e.containerId||1;return{subscribe(n){let r=function(e,t,n){let r=1,i=0,a=[],o=[],s=[],c=t,l=new Map,u=new Set,d=()=>{s=Array.from(l.values()),u.forEach(e=>e())},f=e=>{o=e==null?[]:o.filter(t=>t!==e),d()},p=e=>{let{toastId:t,onOpen:r,updateId:i,children:a}=e.props,s=i==null;e.staleId&&l.delete(e.staleId),l.set(t,e),o=[...o,e.props.toastId].filter(t=>t!==e.staleId),d(),n(_t(e,s?`added`:`updated`)),s&&V(r)&&r((0,I.isValidElement)(a)&&a.props)};return{id:e,props:c,observe:e=>(u.add(e),()=>u.delete(e)),toggle:(e,t)=>{l.forEach(n=>{t!=null&&t!==n.props.toastId||V(n.toggle)&&n.toggle(e)})},removeToast:f,toasts:l,clearQueue:()=>{i-=a.length,a=[]},buildToast:(t,o)=>{if((t=>{let{containerId:n,toastId:r,updateId:i}=t,a=n?n!==e:e!==1,o=l.has(r)&&i==null;return a||o})(o))return;let{toastId:s,updateId:u,data:m,staleId:h,delay:g}=o,_=()=>{f(s)},v=u==null;v&&i++;let y={...c,style:c.toastStyle,key:r++,...Object.fromEntries(Object.entries(o).filter(e=>{let[t,n]=e;return n!=null})),toastId:s,updateId:u,data:m,closeToast:_,isIn:!1,className:pt(o.className||c.toastClassName),bodyClassName:pt(o.bodyClassName||c.bodyClassName),progressClassName:pt(o.progressClassName||c.progressClassName),autoClose:!o.isLoading&&(b=o.autoClose,x=c.autoClose,!1===b||ft(b)&&b>0?b:x),deleteToast(){let e=l.get(s),{onClose:t,children:r}=e.props;V(t)&&t((0,I.isValidElement)(r)&&r.props),n(_t(e,`removed`)),l.delete(s),i--,i<0&&(i=0),a.length>0?p(a.shift()):d()}};var b,x;y.closeButton=c.closeButton,!1===o.closeButton||mt(o.closeButton)?y.closeButton=o.closeButton:!0===o.closeButton&&(y.closeButton=!mt(c.closeButton)||c.closeButton);let S=t;(0,I.isValidElement)(t)&&!B(t.type)?S=(0,I.cloneElement)(t,{closeToast:_,toastProps:y,data:m}):V(t)&&(S=t({closeToast:_,toastProps:y,data:m}));let C={content:S,props:y,staleId:h};c.limit&&c.limit>0&&i>c.limit&&v?a.push(C):ft(g)?setTimeout(()=>{p(C)},g):p(C)},setProps(e){c=e},setToggle:(e,t)=>{l.get(e).toggle=t},isToastActive:e=>o.some(t=>t===e),getSnapshot:()=>s}}(t,e,bt);H.set(t,r);let i=r.observe(n);return vt.forEach(e=>Ct(e.content,e.options)),vt=[],()=>{i(),H.delete(t)}},setProps(e){var n;(n=H.get(t))==null||n.setProps(e)},getSnapshot(){return H.get(t)?.getSnapshot()}}}(e)).current;r(e);let i=(0,I.useSyncExternalStore)(t,n,n);return{getToastToRender:function(t){if(!i)return[];let n=new Map;
148return e.newestOnTop&&i.reverse(),i.forEach(e=>{let{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},isToastActive:St,count:i?.length}}function Et(e){let[t,n]=(0,I.useState)(!1),[r,i]=(0,I.useState)(!1),a=(0,I.useRef)(null),o=(0,I.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:c,closeToast:l,onClick:u,closeOnClick:d}=e;var f,p;function m(){n(!0)}function h(){n(!1)}function g(n){let r=a.current;o.canDrag&&r&&(o.didMove=!0,t&&h(),o.delta=e.draggableDirection===`x`?n.clientX-o.start:n.clientY-o.start,o.start!==n.clientX&&(o.canCloseOnClick=!1),r.style.transform=`translate3d(${e.draggableDirection===`x`?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,r.style.opacity=``+(1-Math.abs(o.delta/o.removalDistance)))}function _(){document.removeEventListener(`pointermove`,g),document.removeEventListener(`pointerup`,_);let t=a.current;if(o.canDrag&&o.didMove&&t){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();t.style.transition=`transform 0.2s, opacity 0.2s`,t.style.removeProperty(`transform`),t.style.removeProperty(`opacity`)}}(p=H.get((f={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||p.setToggle(f.id,f.fn),(0,I.useEffect)(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||h(),window.addEventListener(`focus`,m),window.addEventListener(`blur`,h),()=>{window.removeEventListener(`focus`,m),window.removeEventListener(`blur`,h)}},[e.pauseOnFocusLoss]);let v={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){o.didMove=!1,document.addEventListener(`pointermove`,g),document.addEventListener(`pointerup`,_);let n=a.current;o.canCloseOnClick=!0,o.canDrag=!0,n.style.transition=`none`,e.draggableDirection===`x`?(o.start=t.clientX,o.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(o.start=t.clientY,o.removalDistance=n.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:n,bottom:r,left:i,right:o}=a.current.getBoundingClientRect();t.nativeEvent.type!==`touchend`&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=o&&t.clientY>=n&&t.clientY<=r?h():m()}};return s&&c&&(v.onMouseEnter=h,e.stacked||(v.onMouseLeave=m)),d&&(v.onClick=e=>{u&&u(e),o.canCloseOnClick&&l()}),{playToast:m,pauseToast:h,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:v}}function Dt(e){let{delay:t,isRunning:n,closeToast:r,type:i=`default`,hide:a,className:o,style:s,controlledProgress:c,progress:l,rtl:u,isIn:d,theme:f}=e,p=a||c&&l===0,m={...s,animationDuration:`${t}ms`,animationPlayState:n?`running`:`paused`};c&&(m.transform=`scaleX(${l})`);let h=z(`Toastify__progress-bar`,c?`Toastify__progress-bar--controlled`:`Toastify__progress-bar--animated`,`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":u}),g=V(o)?o({rtl:u,type:i,defaultClassName:h}):z(h,o),_={[c&&l>=1?`onTransitionEnd`:`onAnimationEnd`]:c&&l<1?null:()=>{d&&r()}};return I.createElement(`div`,{className:`Toastify__progress-bar--wrp`,"data-hidden":p},I.createElement(`div`,{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${i}`}),I.createElement(`div`,{role:`progressbar`,"aria-hidden":p?`true`:`false`,"aria-label":`notification timer`,className:g,style:m,..._}))}var Ot=1,kt=()=>``+ Ot++;function At(e){return e&&(B(e.toastId)||ft(e.toastId))?e.toastId:kt()}function jt(e,t){return Ct(e,t),t.toastId}function Mt(e,t){return{...t,type:t&&t.type||e,toastId:At(t)}}function Nt(e){return(t,n)=>jt(t,Mt(e,n))}function U(e,t){return jt(e,Mt(`default`,t))}U.loading=(e,t)=>
148jt(e,Mt(`default`,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),U.promise=function(e,t,n){let r,{pending:i,error:a,success:o}=t;i&&(r=B(i)?U.loading(i,n):U.loading(i.render,{...n,...i}));let s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,i)=>{if(t==null)return void U.dismiss(r);let a={type:e,...s,...n,data:i},o=B(t)?{render:t}:t;return r?U.update(r,{...a,...o}):U(o.render,{...a,...o}),i},l=V(e)?e():e;return l.then(e=>c(`success`,o,e)).catch(e=>c(`error`,a,e)),l},U.success=Nt(`success`),U.info=Nt(`info`),U.error=Nt(`error`),U.warning=Nt(`warning`),U.warn=U.warning,U.dark=(e,t)=>jt(e,Mt(`default`,{theme:`dark`,...t})),U.dismiss=function(e){(function(e){var t;if(xt()){if(e==null||B(t=e)||ft(t))H.forEach(t=>{t.removeToast(e)});else if(e&&(`containerId`in e||`id`in e)){let t=H.get(e.containerId);t?t.removeToast(e.id):H.forEach(t=>{t.removeToast(e.id)})}}else vt=vt.filter(t=>e!=null&&t.options.toastId!==e)})(e)},U.clearWaitingQueue=function(e){e===void 0&&(e={}),H.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},U.isActive=St,U.update=function(e,t){t===void 0&&(t={});let n=((e,t)=>{let{containerId:n}=t;return H.get(n||1)?.toasts.get(e)})(e,t);if(n){let{props:r,content:i}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:kt()};a.toastId!==e&&(a.staleId=e);let o=a.render||i;delete a.render,jt(o,a)}},U.done=e=>{U.update(e,{progress:1})},U.onChange=function(e){return yt.add(e),()=>{yt.delete(e)}},U.play=e=>wt(!0,e),U.pause=e=>wt(!1,e);var Pt=typeof window<`u`?I.useLayoutEffect:I.useEffect,Ft=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return I.createElement(`svg`,{viewBox:`0 0 24 24`,width:`100%`,height:`100%`,fill:t===`colored`?`currentColor`:`var(--toastify-icon-color-${n})`,...i})},It={info:function(e){return I.createElement(Ft,{...e},I.createElement(`path`,{d:`M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z`}))},warning:function(e){return I.createElement(Ft,{...e},I.createElement(`path`,{d:`M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z`}))},success:function(e){return I.createElement(Ft,{...e},I.createElement(`path`,{d:`M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z`}))},error:function(e){return I.createElement(Ft,{...e},I.createElement(`path`,{d:`M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z`}))},spinner:function(){return I.createElement(`div`,{className:`Toastify__spinner`})}},Lt=e=>{let{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:a}=Et(e),{closeButton:o,children:s,autoClose:c,onClick:l,type:u,hideProgressBar:d,closeToast:f,transition:p,position:m,className:h,style:g,bodyClassName:_,bodyStyle:v,progressClassName:y,progressStyle:b,updateId:x,role:S,progress:C,rtl:w,toastId:T,deleteToast:E,isIn:D,isLoading:ee,closeOnClick:O,theme:k}=e,A=z(`Toastify__toast`,`Toastify__toast-theme--${k}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":w},{"Toastify__toast--close-on-click":O}),te=V(h)?h({rtl:w,position:m,type:u,defaultClassName:A}):z(A,h),j=function(e){let{theme:t,type:n,isLoading:r,icon:i}=e,a=null,o={theme:t,type:n};return!1===i||(V(i)?a=i({...o,isLoading:r}):(0,I.isValidElement)(i)?a=(0,I.cloneElement)(i,o):r?a=It.spinner():(e=>e in It)(n)&&(a=It[n](o))),a}(e),M=!!C||!c,N={closeToast:f,type:u,theme:k},P=null;return!1===o||(P=V(o)?o(N):(0,I.isValidElement)(o)?(0,I.cloneElement)(o,N):function(e){let{closeToast:t,theme:n,ariaLabel:r=`close`}=e;return I.createElement(`button`,{className:`Toastify__close-button Toastify__close-button--${n}`,type:`button`,onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},I.createElement(`svg`,{"aria-hidden":`true`,viewBox:`0 0 14 16`},I.createElement(`path`,{fillRule:`evenodd`,d:`M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z`})))}(N)),I.createElement(p,{isIn:D,done:E,position:m,preventExitTransition:n,nodeRef:r,playToast:a},I.createElement(`div`,{id:T,onClick:l,"data-in":D,className:te,...i,style:g,ref:r},I.createElement(`div`,{...D&&{role:S},className:V(_)?_({type:u}):z(`Toastify__toast-body`,_),style:v},j!=null&&I.createElement(`div`,{className:z(`Toastify__toast-icon`,{"Toastify--animate-icon Toastify__zoom-enter"
148:!ee})},j),I.createElement(`div`,null,s)),P,I.createElement(Dt,{...x&&!M?{key:`pb-${x}`}:{},rtl:w,theme:k,delay:c,isRunning:t,isIn:D,closeToast:f,hide:d,type:u,style:b,className:y,controlledProgress:M,progress:C||0})))},Rt=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},zt=gt(Rt(`bounce`,!0));gt(Rt(`slide`,!0)),gt(Rt(`zoom`)),gt(Rt(`flip`));var Bt={position:`top-right`,transition:zt,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:`touch`,draggablePercent:80,draggableDirection:`x`,role:`alert`,theme:`light`};function Vt(e){let t={...Bt,...e},n=e.stacked,[r,i]=(0,I.useState)(!0),a=(0,I.useRef)(null),{getToastToRender:o,isToastActive:s,count:c}=Tt(t),{className:l,style:u,rtl:d,containerId:f}=t;function p(e){let t=z(`Toastify__toast-container`,`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return V(l)?l({position:e,rtl:d,defaultClassName:t}):z(t,pt(l))}function m(){n&&(i(!0),U.play())}return Pt(()=>{if(n){let e=a.current.querySelectorAll(`[data-in="true"]`),n=t.position?.includes(`top`),i=0,o=0;Array.from(e).reverse().forEach((e,t)=>{let a=e;a.classList.add(`Toastify__toast--stacked`),t>0&&(a.dataset.collapsed=`${r}`),a.dataset.pos||(a.dataset.pos=n?`top`:`bot`);let s=i*(r?.2:1)+(r?0:12*t);a.style.setProperty(`--y`,`${n?s:-1*s}px`),a.style.setProperty(`--g`,`12`),a.style.setProperty(`--s`,``+(1-(r?o:0))),i+=a.offsetHeight,o+=.025})}},[r,c,n]),I.createElement(`div`,{ref:a,className:`Toastify`,id:f,onMouseEnter:()=>{n&&(i(!1),U.pause())},onMouseLeave:m},o((e,t)=>{let r=t.length?{...u}:{...u,pointerEvents:`none`};return I.createElement(`div`,{className:p(e),style:r,key:`container-${e}`},t.map(e=>{let{content:t,props:r}=e;return I.createElement(Lt,{...r,stacked:n,collapseAll:m,isIn:s(r.toastId,r.containerId),style:r.style,key:`toast-${r.key}`},t)}))}))}var Ht=`btn-close`,Ut=({closeToast:e})=>(0,L.jsx)(A,{appearance:`circle`,color:`light`,size:`xs`,className:Ht,onClick:e,title:nt().dismiss,children:(0,L.jsx)(D,{})}),Wt=()=>(0,L.jsx)(Vt,{closeButton:Ut,className:`container-toaster`}),Gt={background:`transparent`,border:`none`,padding:0,color:`inherit`,font:`inherit`,fontWeight:500,cursor:`pointer`},Kt=({id:e,message:t,actions:n,onClick:r,title:a})=>{let o=F(),s=(0,I.useMemo)(()=>n?.map(({label:t,href:n,onClick:r,closeOnClick:i=!0})=>(0,L.jsx)(c,{as:n?o:`button`,href:n,style:Gt,onClick:t=>{r?.(t),i&&U.dismiss(e)},children:t},t)),[n]);return(0,L.jsxs)(`div`,{onClick:r,children:[(0,L.jsx)(`h2`,{children:a}),typeof t==`string`?(0,L.jsx)(`p`,{children:t}):t,s?.length?(0,L.jsx)(i,{style:{gap:`12px`,marginTop:`12px`},children:s}):null]})},qt={error:{element:(0,L.jsx)(O,{}),color:`danger`,duration:10},success:{element:(0,L.jsx)(oe,{}),color:`success`,duration:3},warning:{element:(0,L.jsx)(E,{}),color:`warning`,duration:10},info:{element:(0,L.jsx)(ue,{}),color:`inverse`,duration:10}};function Jt(e){let{type:t=`info`,autoClose:n,...i}=e&&typeof e==`object`&&`message`in e?e:{message:e},a=qt[t],o=i.id??Math.random(),s=n||a.duration,c=`var(--${a.color}-500)`,l=`var(--${a.color}-600)`,u=`var(--${a.color}-contrastText)`;return U(i.custom?i.message:(0,L.jsx)(Kt,{...i,id:o,title:i.title??y(Xt)[t]}),{toastId:o,type:t,autoClose:n===!1?!1:s*1e3,className:`main-toaster`,style:{backgroundColor:c,color:u},progressStyle:{background:l},bodyClassName:`toast-body`,icon:i.custom?!1:()=>(0,L.jsx)(r,{colorIcon:`${a.color}.contrastText`,size:`xs`,children:a.element}),closeOnClick:i.closeOnClick??!1,closeButton:i.custom?i.closeButton??!1:void 0}),o}function Yt(e){U.dismiss(e)}var Xt={en:{success:`Success`,error:`Error`,info:`Info`,warning:`Warning`},pt:{success:`Sucesso`,error:`Erro`,info:`Info`,warning:`Atenção`}};function Zt(e){let t=document.getElementById(`layout`);return t?f(e,t):``}function Qt(e){let{accessibilityAnnouncer:t}=et();t&&(t.textContent=e,setTimeout(()=>t.textContent=``,1e3))}function $t(e,t){return` 149 Attempted to show a modal or rightPanel while a ${e} was still being closed. Closing a ${e} takes only ${t}ms, so this action 150 is unlikely to have been triggered by the user and may point to errors in your code. Please check.\nTip: showModal and showRightPanel 151 are sideEffects and should never be called during the render of a component. Try to use "useEffect" or link it to an event, like 152 "onClick". 153 `.replace(/\s*\n\s+/g,` `)}var en=new class{constructor(){Object.defineProperty(this,"setContent",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"elements",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lastActiveElement",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"modals",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"closeToaster",{enumerable:!0,configurable:!0,writable:!0,value:Yt})}
153closeCustomBackdrops(e){e.forEach(e=>e.querySelector(`[data-custom-backdrop-close]`)?.click?.())}onClickBackdrop(e){if(this.isModalOpen())!this.elements?.modal?.contains?.(e.target)&&this.closeModal();else if(this.isRightPanelOpen())!this.elements?.rightPanel?.contains?.(e.target)&&this.closeRightPanel();else{let t=this.getAllVisibleCustomBackdrops();if(t.length){let n=!1;t.forEach(t=>{t.contains(e.target)&&(n=!0)}),n||this.closeCustomBackdrops(t)}else this.setMainContentInteractivity(!0)}}onPressKeyInBackdrop(e){if(e.key===`Escape`){if(this.isModalOpen()&&this.closeModal(),this.isRightPanelOpen())this.closeRightPanel();else{let e=this.getAllVisibleCustomBackdrops();e.length?this.closeCustomBackdrops(e):this.setMainContentInteractivity(!0)}e.preventDefault()}}setupElements(){this.elements=et(),this.elements.backdrop?.addEventListener(`mousedown`,e=>this.onClickBackdrop(e)),this.elements.backdrop?.addEventListener(`keydown`,e=>this.onPressKeyInBackdrop(e)),this.setInteractivity(this.elements?.modal,!1),this.setInteractivity(this.elements?.rightPanel,!1),this.setInteractivity(this.elements?.bottomDialog,!1)}getAllVisibleCustomBackdrops(){return document.querySelectorAll(`[data-custom-backdrop-visibility=true]`)}useOverlays(){(0,I.useLayoutEffect)(()=>{this.elements||this.setupElements()},[]);let[e,t]=(0,I.useState)([]),[n,r]=(0,I.useState)([]),[i,a]=(0,I.useState)();return this.setContent.modal=e=>{this.modals=e,t(e)},this.setContent.rightPanel=e=>{this.panels=e,r(e)},this.setContent.bottomDialog=a,{modal:e,rightPanel:n,bottomDialog:i}}setInteractivity(e,t){t?(e?.removeAttribute(`inert`),e?.removeAttribute(`aria-hidden`)):(e?.setAttribute(`aria-hidden`,``),e?.setAttribute(`inert`,``))}setMainContentInteractivity(e){this.setInteractivity(this.elements?.page,e),this.setInteractivity(this.elements?.header,e),this.setInteractivity(this.elements?.menu,e),this.elements?.backdrop?.setAttribute(`class`,e?``:`visible`)}showOverlay(e,t=[],n=!0,r=!0,i=!0){this.lastActiveElement=document.activeElement,r&&e?.classList.add(`visible`,...t),this.setInteractivity(e,!0),n&&this.setMainContentInteractivity(!1),setTimeout(()=>Te(e,{priority:[[`input`,`textarea`,`select`,`other`,`button`]],...i?{ignore:`#${it}`}:{}}),50)}hideOverlay(e,t=!0){t&&e?.setAttribute(`class`,``),this.setInteractivity(e,!1),this.setMainContentInteractivity(!0)}showBackdrop(e,t=!0){this.showOverlay(e,[],!0,!1,t)}closeBackdrop(e){this.hideOverlay(e,!1),this.lastActiveElement?.focus?.()}isModalOpen(){return this.elements?.modal?.classList.contains(`visible`)??!1}getNumberOfOpenModals(){return this.modals.length}getNumberOfOpenRightPanels(){return this.panels.length}isRightPanelOpen(){return this.elements?.rightPanel?.classList.contains(`visible`)??!1}isBottomDialogOpen(){return this.elements?.bottomDialog?.classList.contains(`visible`)??!1}showCustomModal(e,{size:t=`medium`,onClose:n,ignoreFirstFocusOnCloseButton:r=!0,stack:i=!1,id:a}={}){if(!this.elements?.modal)throw new ut(`modal`,R.modal);if(!this.setContent.modal)throw new lt(`unable to show modal, because it has not been setup yet.`);let o={element:e,onClose:n,size:t,stack:i,id:a},s=(0,Ie.last)(this.modals)?.size;this.setContent.modal(i?[...this.modals,o]:[o]),s&&this.elements.modal.classList.remove(s),this.showOverlay(this.elements.modal,[t],!0,!0,r)}showModal({size:e,ignoreFirstFocusOnCloseButton:t,stack:n,onGoBack:r,id:i,...a}){let o=r??(n&&this.modals.length>=1?()=>this.popModal():void 0);this.showCustomModal((0,L.jsx)(ot,{...a,onGoBack:o,onClose:()=>this.closeModal(),type:`modal`}),{size:e,onClose:a.onClose,ignoreFirstFocusOnCloseButton:t,stack:n,id:i})}showDialog({ignoreFirstFocusOnCloseButton:e=!1,options:t,size:n=`small`}){let r=!1;return new Promise((i,a)=>{try{t.type===`panel`?this.showCustomRightPanel((0,L.jsx)(ct,{...t,onCancel:()=>this.closeModal(),onConfirm:()=>{r=!0,this.closeModal()}}),{size:n,onClose:()=>i(r)}):this.showCustomModal((0,L.jsx)(ct,{...t,onCancel:()=>this.closeModal(),onConfirm:()=>{r=!0,this.closeModal()}}),{size:n,onClose:()=>i(r),ignoreFirstFocusOnCloseButton:e})}catch(e){a(e)}})}confirm({confirm:e,cancel:t,size:n,...r}){let i=rt();return this.showDialog({ignoreFirstFocusOnCloseButton:!!r.validation,size:n,options:{...r,confirm:e||i.confirm,cancel:t||i.cancel}})}async alert({confirm:e,showButton:t=!0,...n}){let r=rt();await this.showDialog({ignoreFirstFocusOnCloseButton:!!n.validation,options:{...n,confirm:t?e||r.confirm:void 0}})}showBottomDialog({children:e,cancel:t,confirm:r}){if(!this.elements?.bottomDialog)throw new ut(`bottom dialog`,R.bottomDialog);
153if(!this.setContent.bottomDialog)throw new lt(`unable to show bottom dialog, because it has not been setup yet.`);return new Promise(i=>{this.setContent.bottomDialog?.((0,L.jsxs)(L.Fragment,{children:[e,(0,L.jsxs)(`div`,{className:`btn-group`,children:[t&&(0,L.jsx)(n,{onClick:()=>i(!1),colorScheme:`light`,appearance:`outlined`,children:t}),r&&(0,L.jsx)(n,{onClick:()=>i(!0),colorScheme:`light`,children:r})]})]})),this.showOverlay(this.elements?.bottomDialog,void 0,!1,!0,!0)})}showCustomRightPanel(e,{size:t=`medium`,onClose:n,ignoreFirstFocusOnCloseButton:r=!0,stack:i=!1,id:a}={}){if(!this.elements?.rightPanel)throw new ut(`right panel overlay`,R.rightPanel);if(!this.setContent.rightPanel)throw new lt(`unable to show right panel overlay, because it has not been setup yet.`);let o={element:e,onClose:n,size:t,stack:i,id:a},s=(0,Ie.last)(this.modals)?.size;this.setContent.rightPanel(i?[...this.panels,o]:[o]),s&&this.elements.rightPanel.classList.remove(s),setTimeout(()=>{this.showOverlay(this.elements?.rightPanel,[t],!0,!0,r)})}showRightPanel({size:e,ignoreFirstFocusOnCloseButton:t,stack:n,onGoBack:r,id:i,...a}){let o=r??(n&&this.panels.length>=1?()=>this.popRightPanel():void 0);this.showCustomRightPanel((0,L.jsx)(ot,{...a,onGoBack:o,onClose:()=>this.closeRightPanel(),type:`panel`}),{size:e,onClose:a.onClose,ignoreFirstFocusOnCloseButton:t,stack:n,id:i})}focusLastActiveElement(){Ce(this.lastActiveElement),this.lastActiveElement=null}closeModal(e=!0){this.elements?.modal?.classList.remove(`visible`);let t=this.panels.length===0;t&&this.elements?.backdrop?.setAttribute(`class`,``),e&&this.modals.forEach(e=>{let t=e.onClose;e.onClose=void 0,t?.()});let n=parseFloat(Zt(`--modal-animation-duration`))*1e3;setTimeout(()=>{t&&this.elements?.backdrop?.classList.contains(`visible`)&&(console.warn($t(`modal`,n)),this.elements?.modal?.classList.remove(`visible`)),this.setContent.modal&&this.setContent.modal([]),t&&this.hideOverlay(this.elements?.modal),this.focusLastActiveElement()},n)}popModal(e=1,t=!0){if(e<=0)return;if(this.modals.length<=e)return this.closeModal(t);for(let n=0;n<e;n++){let e=this.modals.pop();t&&e.onClose?.(),this.elements?.modal?.classList.remove(e.size)}let n=(0,Ie.last)(this.modals);this.elements?.modal?.classList.add(n.size),this.setContent.modal?.([...this.modals])}popModalTo(e,t=!1){let n=this.modals.findIndex(t=>t.id===e);n>=0&&this.popModal(this.modals.length-n-+!t)}closeRightPanel(e=!0){this.elements?.rightPanel?.classList.remove(`visible`);let t=this.modals.length===0;t&&this.elements?.backdrop?.setAttribute(`class`,``),e&&this.panels.forEach(e=>{let t=e.onClose;e.onClose=void 0,t?.()});let n=parseFloat(Zt(`--right-panel-animation-duration`))*1e3;setTimeout(()=>{t&&this.elements?.backdrop?.classList.contains(`visible`)&&(console.warn($t(`rightPanel`,n)),this.elements?.rightPanel?.classList.remove(`visible`)),this.setContent.rightPanel&&this.setContent.rightPanel([]),t&&this.hideOverlay(this.elements?.rightPanel),this.focusLastActiveElement()},n)}popRightPanel(e=1,t=!0){if(e<=0)return;if(this.panels.length<=e)return this.closeRightPanel(t);for(let n=0;n<e;n++){let e=this.panels.pop();t&&e.onClose?.(),this.elements?.rightPanel?.classList.remove(e.size)}let n=(0,Ie.last)(this.panels);this.elements?.rightPanel?.classList.add(n.size),this.setContent.rightPanel?.([...this.panels])}popRightPanelTo(e,t=!1){let n=this.panels.findIndex(t=>t.id===e);n>=0&&this.popRightPanel(this.panels.length-n-+!t)}closeBottomDialog(){this.hideOverlay(this.elements?.bottomDialog)}isInsideModal(e){return!!this.elements?.modal?.contains(e)}isInsideRightPanel(e){return!!this.elements?.rightPanel?.contains(e)}showToaster(e){return Jt(e)}},tn=({children:e,visible:t=!1,onClose:n,className:r,actAs:i,persistent:a,animationMS:o=0,style:s,ignoreFirstFocusOnCloseButton:c=!0})=>{let l=(0,I.useRef)(null),[u,d]=(0,I.useState)(!!a),f=(0,I.useMemo)(()=>Math.max(parseFloat(Zt(`--modal-animation-duration`)),o)*1e3,[]),m=typeof i==`string`?i:i?.type,h=typeof i==`string`?`medium`:i?.size,g=p([r,m===`modal`&&`modal-box`,m===`right-panel`&&`right-panel-box`,h]);(0,I.useEffect)(()=>{(async()=>{t?(d(!0),await ve(10),en.showBackdrop(l.current,c)):(en.closeBackdrop(l.current),await ve(f),d(!1))})()},[t]);let _=(0,L.jsxs)(`div`,{ref:l,"data-custom-backdrop-visibility":t,className:g,style:s,children:[e,(0,L.jsx)(`button`,{"data-custom-backdrop-close":!0,onClick:n,style:{display:`none`},children:`Close`})]}),v=et().backdrop;return v&&t&&(u||a)?(0,Le.createPortal)(_,v):null},nn={en:{notifications:`Notifications`,"ALL.ariaLabel":`Show all notifications`,"UNREAD.ariaLabel":`Show unread notifications`,"HIGH.ariaLabel":`Show critical notifications`,"MEDIUM.ariaLabel":`Show notifications with medium criticality`,"LOW.ariaLabel":`Show notifications with low criticality`,"ALL.label":`All`,"UNREAD.label":`Unread`,"HIGH.label":`High`,"MEDIUM.label":`Medium`,"LOW.label":`Low`,viewAll:`View all notifications`,openNotifications:`View notifications`,hasUnread:`Has Unread notifications`,close:`Close`,loadingNotifications:`Loading notifications. You'll be able to click this button and see them in a few seconds.`,tour:`Now we have Notifications, this will help you stay informed of the latest updates about your Workspaces, Studios, and the Stackspot platform.`},pt:{notifications:`Notificações`,"ALL.ariaLabel":`Mostrar todas as notificações`,"UNREAD.ariaLabel":`Mostrar notificações não lidas`,"HIGH.ariaLabel":`Mostrar notificações crÃticas`,"MEDIUM.ariaLabel":`Mostrar notificações com criticidade média`,"LOW.ariaLabel":`Mostrar notificações com criticidade baixa`,"ALL.label":`Todas`,"UNREAD.label":`Não lidas`,"HIGH.label":`Alto`,"MEDIUM.label":`Médio`,"LOW.label":`Baixo`,viewAll:`Ver todas as notificações`,openNotifications:`Visualizar notificações`,hasUnread:`Existem notificações não lidas`,close:`Fechar`,loadingNotifications:`Carregando notificações. Você poderá clicar neste botão e vê-las em alguns segundos.`,tour:`Agora temos Notificações, isso irá ajudá-lo a se manter informado sobre as últimas atualizações sobre seus Workspaces, estúdios e a plataforma Stackspot.`}},rn=()=>
153w(nn),an=({current:e,onChangeFilter:t,value:r})=>{let a=rn(),o=e===r;return(0,L.jsx)(n,{appearance:`text`,role:`button`,"aria-label":a[`${r}.ariaLabel`],"aria-pressed":o,onClick:()=>t(r),className:`filter-btn`,children:(0,L.jsx)(i,{flexDirection:`row`,style:{gap:`8px`},alignItems:`center`,children:(0,L.jsx)(c,{colorScheme:`inverse`,appearance:`microtext1`,children:a[`${r}.label`]})})})},on=({filter:e,onChangeFilter:t,onClose:n})=>{let a=rn();return(0,L.jsxs)(i,{flexDirection:`column`,children:[(0,L.jsxs)(i,{justifyContent:`space-between`,children:[(0,L.jsx)(c,{appearance:`h4`,as:`h2`,children:a.notifications}),(0,L.jsx)(A,{id:it,"aria-label":a.close,onClick:n,sx:{borderRadius:`50%`},children:(0,L.jsx)(r,{size:`xs`,children:(0,L.jsx)(D,{})})})]}),(0,L.jsxs)(`ul`,{className:`filter-list`,children:[(0,L.jsx)(`li`,{children:(0,L.jsx)(an,{current:e,onChangeFilter:t,value:`ALL`})}),(0,L.jsx)(`li`,{children:(0,L.jsx)(an,{current:e,onChangeFilter:t,value:`UNREAD`})}),(0,L.jsx)(`li`,{children:(0,L.jsx)(an,{current:e,onChangeFilter:t,value:`HIGH`})}),(0,L.jsx)(`li`,{children:(0,L.jsx)(an,{current:e,onChangeFilter:t,value:`MEDIUM`})}),(0,L.jsx)(`li`,{children:(0,L.jsx)(an,{current:e,onChangeFilter:t,value:`LOW`})})]})]})},sn=({onClose:e})=>{let t=rn(),r=De();return(0,L.jsx)(n,{as:F(),onClick:e,size:`sm`,colorScheme:`inverse`,appearance:`text`,className:`see-all`,href:r.config.notificationsPath,children:(0,L.jsx)(c,{appearance:`microtext1`,children:t.viewAll})})},cn=g.div` 154 .notification-button { 155 border: none; 156 background: transparent; 157 margin: 0 40px; 158 position: relative; 159 160 &.loading { 161 cursor: progress; 162 opacity: 0.5; 163 } 164 165 &:before { 166 content: ''; 167 position: absolute; 168 right: 9px; 169 top: 9px; 170 width: 12px; 171 height: 12px; 172 border-radius: 50%; 173 background-color: ${u.color.danger[500]}; 174 transform: scale(0); 175 transition: transform ease-in 0.3s; 176 } 177 178 &.unread:before { 179 transform: scale(1); 180 } 181 } 182`,ln=g(tn)` 183 position: absolute; 184 top: calc(var(--header-height) + 10px); 185 right: 60px; 186 box-shadow: 4px 4px 48px ${u.color.danger.contrastText}; 187 188 .notification-panel { 189 width: 400px; 190 padding: 16px; 191 border-radius: 4px; 192 background-color: ${u.color.light[300]}; 193 border: 1px solid ${u.color.light[400]}; 194 } 195 196 .filter-list { 197 list-style: none; 198 margin: 16px 0; 199 padding: 0; 200 display: flex; 201 flex-direction: row; 202 justify-content: space-between; 203 .filter-btn { 204 &:focus { 205 border-color: transparent; 206 } 207 &[aria-pressed="true"] { 208 border-color: ${u.color.primary[500]}; 209 } 210 } 211 } 212 213 .see-all { 214 margin-top: 8px; 215 width: 100%; 216 } 217 218 .error-feedback { 219 flex-direction: column; 220 } 221`,un=({filter:e,onFilter:t,loading:n,error:r,visible:i,onClose:a,...o})=>{let s=De();return(0,L.jsx)(ln,{visible:i,onClose:a,persistent:!0,ignoreFirstFocusOnCloseButton:!1,children:(0,L.jsx)(Fe,{className:`notification-panel`,visible:i,header:(0,L.jsx)(on,{filter:e,onChangeFilter:t,onClose:a}),footer:(0,L.jsx)(sn,{onClose:a}),children:(0,L.jsx)(ke,{direction:`vertical`,style:{maxHeight:`calc(100vh - 300px)`}
221,children:r?(0,L.jsx)(je,{code:r.code,direction:`column`}):(0,L.jsx)(Oe,{...o,compact:!0,loading:n,onCommit:e=>s.markAsCommitted(e),onUncommit:e=>s.markAsUncommitted(e),onClickViewNotification:()=>{a(),s.config.onClickViewNotification?.()},onClickAction:e=>{a(),s.config.onClickAction?.(e)}})})})})},dn={committed:void 0,context:void 0,criticality:void 0,search:void 0};function fn(e){switch(e){case`ALL`:return dn;case`HIGH`:return{...dn,criticality:`HIGH`};case`LOW`:return{...dn,criticality:`LOW`};case`MEDIUM`:return{...dn,criticality:`MEDIUM`};case`UNREAD`:return{...dn,committed:!1}}}function pn(e){return e.committed===!1?`UNREAD`:e.criticality?e.criticality:`ALL`}var mn=10,hn=()=>{let[e,t]=(0,I.useState)(!1),n=rn(),{applyFilters:i,filters:a,items:o,status:s,error:c}=Ee({size:mn}),l=Ae(),u=De();return me(()=>{u.checkUnread()}),(0,I.useEffect)(()=>{e&&(l||pn(a)!==`ALL`)&&i(fn(`ALL`))},[e]),(0,L.jsxs)(cn,{children:[(0,L.jsx)(A,{"aria-label":s===`startup`?n.loadingNotifications:n.openNotifications,onClick:s===`startup`?void 0:()=>t(!0),className:p([`notification-button`,s===`startup`&&`loading`,s!==`startup`&&l&&`unread`]),children:(0,L.jsx)(r,{size:`md`,className:`notificationsTour`,children:(0,L.jsx)(le,{})})}),(0,L.jsx)(un,{filter:pn(a),loading:s===`loading`,error:c,items:o,visible:e,onClose:()=>t(!1),onFilter:e=>i({...fn(e),size:mn})})]})},gn={AI:(0,L.jsx)(ge,{}),EDP:(0,L.jsx)(ye,{}),HUB:(0,L.jsx)(_e,{}),CS:(0,L.jsx)(he,{}),ACCOUNT:(0,L.jsx)(pe,{})},_n=g(i)` 222 flex-direction: column; 223 align-items: start; 224 z-index: 10; 225 226 .current-portal { 227 padding: 8px; 228 border-radius: 4px; 229 cursor: pointer; 230 &:hover { 231 background-color: ${u.color.light[500]}; 232 } 233 } 234 235 .selection-list { 236 max-width: 360px; 237 box-shadow: 4px 4px 48px 0px #000000; 238 position: absolute; 239 top: 50px; 240 241 .selection-list-content { 242 padding: 8px; 243 border-width: 1px; 244 border-style: solid; 245 border-color: ${u.color.light[500]}; 246 247 &> ul { 248 display: flex; 249 flex-direction: column; 250 gap: 8px; 251 } 252 253 .action { 254 background-color: ${u.color.light[400]}; 255 border-width: 1px; 256 border-style: solid; 257 border-color: ${u.color.light[500]}; 258 border-radius: 4px; 259 260 &:hover, &:hover a { 261 background-color: ${u.color.light[500]}; 262 } 263 264 a { 265 padding: 16px; 266 height: auto; 267 transition: unset; 268 align-items: flex-start; 269 } 270 } 271 } 272 } 273 274`,vn=`PortalSwitcher`,yn=({portals:e=[]})=>{let[t,a]=(0,I.useState)(!1),o=e?.find(e=>location.href.startsWith(e.url));return(0,L.jsxs)(_n,{children:[o?(0,L.jsx)(n,{className:`current-portal`,appearance:`text`,colorScheme:`light`,"aria-controls":vn,"aria-expanded":t,onClick:()=>{a(!t)},children:(0,L.jsxs)(i,{alignItems:`center`,className:`portal-switcher`,children:[gn[o.acronym],(0,L.jsx)(r,{size:`xs`,ml:3,children:(0,L.jsx)(ae,{})})]})}):(0,L.jsx)(pe,{}),(0,L.jsx)(Qe,{id:vn,items:e?.filter(e=>e.showOnList!==!1).map(e=>({label:{id:e.acronym,element:(0,L.jsx)(i,{w:`250px`,children:gn[e.acronym]})},target:`_self`,href:e.url,active:o?.acronym==e.acronym,iconActive:(0,L.jsx)(oe,{}),iconRight:e.acronym===o?.acronym?void 0:(0,L.jsx)(te,{})})),visible:t,maxHeight:`21rem`,onHide:()=>a(!1)})]})},bn=new class{constructor(){Object.defineProperty(this,"visible",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"observers",{enumerable:!0,configurable:!0,writable:!0,value:[]})}changeVisible(e){this.visible=e,this.notify()}isOpen(){return this.visible}subscribe(e){return this.observers.push(e),this.notify(),()=>this.pullListener(e)}pullListener(e){this.observers=this.observers.filter(t=>t!==e)}notify(){this.observers.forEach(e=>e(this.visible))}},xn=`userMenu`,Sn=g.div` 275 .user-menu-header { 276 display: flex; 277 flex-direction: column; 278 justify-content: center; 279 align-items: center; 280 padding: 12px; 281 border-bottom: 2px solid ${u.color.light[600]}; 282 } 283 284 .selection-list { 285 position: absolute; 286 top: var(--header-height); 287 right: 20px; 288 width: 266px; 289 290 .selection-list-content { 291 border: none; 292 padding: 16px 16px 8px; 293 background-color: ${u.color.light[400]}; 294 } 295 296 li { 297 margin: 8px 0; 298 & > a { 299 border-radius: 6px; 300 &:hover, &:focus { 301 background: ${u.color.light[500]}; 302 } 303 } 304 } 305 } 306 307 .username { 308 margin: 5px 0 2px 0; 309 } 310 311 .chevron {
312 transition: transform ease-out 0.3s; 313 } 314`,Cn=({userName:e,email:t,userImage:n})=>(0,L.jsxs)(`div`,{className:`user-menu-header`,children:[(0,L.jsx)(ee,{size:`xs`,children:n?(0,L.jsx)(`img`,{src:n}):e}),(0,L.jsx)(c,{appearance:`body1`,className:`username`,children:e}),t&&(0,L.jsx)(c,{appearance:`microtext1`,className:`email`,colorScheme:`light.700`,children:t})]}),wn=({userName:e,email:t,options:n,userImage:a})=>{let o=w(Tn),[c,l]=(0,I.useState)(!1);return(0,I.useEffect)(()=>bn.subscribe(l),[]),(0,L.jsxs)(Sn,{children:[(0,L.jsx)(s,{as:`button`,onClick:()=>l(e=>!e),"aria-controls":xn,"aria-expanded":c,"aria-label":b(o.accountMenu,[e]),children:(0,L.jsxs)(i,{alignItems:`center`,children:[(0,L.jsx)(ee,{size:`xs`,"aria-label":b(o.accountMenu,[e]),children:a?(0,L.jsx)(`img`,{src:a}):e}),(0,L.jsx)(r,{colorIcon:`inverse.500`,className:`chevron`,style:c?{transform:`rotate(180deg)`}:void 0,children:(0,L.jsx)(N,{})})]})}),n?.length?(0,L.jsx)(Qe,{id:xn,visible:c,before:(0,L.jsx)(Cn,{userName:e,email:t,userImage:a}),items:n,onHide:()=>l(!1),maxHeight:`calc(100vh - 70px)`}):null]})},Tn={en:{accountMenu:`Profile menu of $0`},pt:{accountMenu:`Menu do perfil $0`}},En=({logo:e,logoHref:t,center:n,right:r,userName:a,email:o,options:s,portalSwitch:c,showNotificationCenter:l,userImage:u})=>{let d=F();return(0,L.jsxs)(L.Fragment,{children:[c?(0,L.jsx)(yn,{portals:c}):(0,L.jsx)(d,{href:t,title:`Home`,children:e??(0,L.jsx)(pe,{style:{width:130}})}),(0,L.jsx)(i,{flex:1,children:n}),r,l&&(0,L.jsx)(hn,{}),a&&(0,L.jsx)(wn,{userName:a,email:o,options:s,userImage:u})]})},Dn=({className:e,id:t,style:n})=>(0,L.jsxs)(`svg`,{viewBox:`0 0 512 512`,className:e,id:t,style:n,width:`16`,height:`16`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,L.jsx)(`defs`,{children:(0,L.jsxs)(`linearGradient`,{id:`gradient`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`100%`,children:[(0,L.jsx)(`stop`,{offset:`0%`,style:{stopColor:`#FF9900`,stopOpacity:1}}),(0,L.jsx)(`stop`,{offset:`100%`,style:{stopColor:`#FF6633`,stopOpacity:1}})]})}),(0,L.jsx)(`path`,{d:`M226.885 21.9523C231.432 9.88404 242.98 1.91992 255.85 1.91992C268.719 1.91992 280.268 9.88408 284.814 21.9523C284.863 22.0812 284.91 22.2105 284.956 22.3403L335.667 165.876L478.048 165.876H478.049C490.986 165.876 502.581 173.922 507.079 186.08C511.579 198.245 508.006 211.912 498.152 220.324C498.075 220.39 497.997 220.456 497.918 220.521L377.676 320.039L428.087 471.216L428.091 471.226C432.349 484.019 427.824 498.078 416.935 505.998C406.055 513.912 391.305 513.892 380.445 505.949L380.435 505.941L255.825 414.67L131.151 505.944L131.075 506C131.045 506.021 131.016 506.042 130.987 506.063C120.124 513.848 105.488 513.783 94.6943 505.902C83.8927 498.015 79.374 484.073 83.5272 471.34C83.5408 471.299 83.5545 471.257 83.5683 471.216L133.979 320.041L13.7166 220.522C13.6378 220.457 13.5595 220.391 13.4817 220.324C3.62771 211.912 0.054518 198.245 4.55486 186.08C9.05287 173.922 20.6475 165.876 33.5842 165.876H33.5857L175.992 165.876L226.745 22.3356C226.791 22.2074 226.837 22.0796 226.885 21.9523Z`})]});function On(e,t){let n=e.getTime(),r=t.getTime();return Math.abs(r-n)/(1e3*60*60*24)<30}var kn=e=>{let t=e.getDay();return t!==0&&t!==6},An=()=>{let e=new Date,t=e.getDate(),n=localStorage.getItem(`RATED_US_IN`);if(n){let t=new Date(parseInt(n,10));if(t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear())return!1}let r=0,i=25;for(;r<3;){if(kn(new Date(e.getFullYear(),e.getMonth(),i))&&r++,t===i)return!0;i++}return!1},jn=g.ul` 315 padding: 0 0 0 16px; 316 display: flex; 317 flex-direction: column; 318 visibility: hidden; 319 transition: visibility 0s 0.3s; 320 321 &.no-indentation { 322 padding: 0; 323 } 324 325 .item-row { 326 display: flex; 327 flex-direction: row; 328 gap: 8px; 329 align-items: center; 330 331 &.root { 332 padding: 0 16px; 333 margin-top: 16px; 334 border-radius: 0; 335 } 336 337 .label { 338 flex: 1; 339 &.hidden, &.ellipsis { 340 white-space: nowrap; 341 overflow: hidden; 342 } 343 &.ellipsis { 344 text-overflow: ellipsis; 345 } 346 } 347 } 348 349 li a { 350 position: relative; 351 height: 0; 352 overflow: hidden; 353 transition: height 0.3s, background-color 0.2s; 354 355 &:hover { 356 background-color: ${u.color.light[500]}; 357 } 358 359 &.action { 360 &:before { 361 content: ''; 362 position: absolute; 363 left: 2px; 364 width: 2px; 365 height: 0; 366 background: inherit; 367 transition: height 0.2s; 368 } 369 370 &.active { 371 372 &:hover { 373 background-color: transparent; 374 } 375 376 &:before { 377 background: ${u.color.primary[500]}; 378 height: 24px; 379 } 380 } 381 382 &:not(.active):hover:before { 383 background: ${u.color.light.contrastText}; 384 height: 24px; 385 } 386 } 387 388 .chevron { 389 transition: transform 0.5s; 390 &:not(.open) { 391 transform: rotate(180deg); 392 } 393 } 394 395 .item-row-title { 396 opacity: 0.7; 397 } 398 } 399 400 &.open { 401 visibility: visible; 402 transition: unset; 403 & > li > a { 404 height: 56px; 405 } 406 } 407 408 &:not(.open) &.open > li > a { 409 height: 0; 410 } 411 412 &.root { 413 /* margin-bottom: ${20}px; */ 414 415 & > li { 416 .group-title { 417 margin-left: ${20}px; 418 margin-bottom: 5px; 419 margin-top: 40px; 420 display: block; 421 } 422 423 &:first-child { 424 .group-title { 425 margin-top: 0; 426 } 427 } 428 } 429 } 430`,Mn=`menuContentOverlay`,Nn;function Pn(){return document.getElementById(R.menuSections)?.querySelector(`button[aria-expanded="true"]`)}function Fn(){Nn?.();let e=document.getElementById(Mn);e?.setAttribute(`inert`,``),e?.setAttribute(`aria-hidden`,``),e?.classList.remove(`visible`),Pn()?.setAttribute(`aria-expanded`,`false`)}var In=({icon:e,label:t,href:n,target:o,onClick:s,active:l,content:u,customContent:d,setCurrentOverlay:f,id:p,badge:m})=>{let h=F();typeof u==`function`&&u();function g(){s&&s(),Fn();let e=document.getElementById(R.layout)?.classList;e&&e.remove(`menu-manual`)}let _=typeof t==`string`?t:t.id;return(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(h,{href:n,target:o,onClick:g,"aria-label":_,onKeyDown:s?e=>e.key===`Enter`&&s():void 0,...l?{"aria-current":`page`}:void 0,...n?void 0:{tabIndex:0},children:(0,L.jsx)(M,{text:_,position:`right`,tabIndex:-1,target:document.getElementById(R.layout),disableTooltip:()=>!document.getElementById(R.layout),sx:{width:`inherit`},children:(0,L.jsxs)(i,{alignItems:`center`,justifyContent:`center`,flexWrap:`nowrap`,px:3,w:`100%`,children:[(0,L.jsx)(r,{className:m?`section-icon-with-badge`:`section-icon`,children:e}),(0,L.jsxs)(i,{alignItems:`center`,justifyContent:`space-between`,w:`100%`,className:`section-text`,children:[typeof t==`string`?(0,L.jsx)(c,{appearance:`microtext1`,className:`section-label`,ml:3,children:t}):t.element,m&&(0,L.jsx)(a,{className:`section-badge`,children:m})]})]})})})})},Ln=({sections:e=[],...t})=>{let n=F(),[o,s]=(0,I.useState)(!0),l=w(Bn),[u,d]=(0,I.useState)(0),f=(0,I.useCallback)(()=>{let e=document.getElementById(`layout`);e&&(e.classList.contains(`menu-compact`)?(e.classList.remove(`menu-compact`),s(!0)):(e.classList.add(`menu-compact`),s(!1)),e.classList.add(`menu-manual`),d(e=>e+1))},[]),[m,h]=(0,I.useState)(),g=(0,I.useMemo)(()=>e.filter(e=>!e.type),[e]),_=(0,I.useMemo)(()=>g.flatMap(e=>`children`in e?e.children?.map(e=>e):e),[g]),v=(0,I.useMemo)(()=>e.reduce((e,n,s)=>n.label===l.contactUs&&!o?e:n.type?n.hidden?e:[...e,(0,L.jsxs)(a,{className:n.className||``,children:[(0,L.jsx)(i,{alignItems:`center`,justifyContent:`center`,flexWrap:`nowrap`,px:3,w:`100%`,children:(0,L.jsx)(r,{className:`custom-element-icon section-icon`,children:n.icon})}),(0,L.jsx)(a,{className:`custom-element`,children:n.children})]},`custom-element-${s}`)]:n.hidden?e:[...e,(0,L.jsx)(`li`,{role:`menuitem`,className:p([`section-submenu`,`no-indentation`,n.className||void 0,n.active?`active`:void 0]),children:`children`in n?(0,L.jsx)(zn,{listItems:_,...n,setCurrentOverlay:h}):(0,L.jsx)(In,{id:_.findIndex(e=>e?.label===n.label),...n,setCurrentOverlay:h,hasContent:!!t.content||!!t.customContent},s)},n.label)],[]),[e,o]);
430function y(){Pn()?.focus(),Fn()}let{keyboardControlledElement:b,attachKeyboardListeners:x,detachKeyboardListeners:S}=we({onPressEscape:y,querySelectors:`li a.action, #custom-selectable-item button, #custom-selectable-item input`});return Nn=S,(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(jn,{className:`open root no-indentation`,children:v}),(0,L.jsxs)(i,{alignItems:`center`,children:[(0,L.jsx)(Rn,{...t,showSupport:o}),(0,L.jsx)(M,{text:l.toggle,position:`right`,tabIndex:-1,disableTooltip:()=>!document.getElementById(R.layout),target:document.getElementById(R.layout),sx:{width:`inherit`},children:(0,L.jsxs)(`button`,{"aria-label":l.toggle,role:`menuitem`,className:`toggle sections-footer`,onClick:f,tabIndex:-1,children:[(0,L.jsxs)(r,{children:[(0,L.jsx)(T,{className:`expand`}),(0,L.jsx)(P,{className:`collapse`})]}),(0,L.jsx)(c,{appearance:`microtext1`,ml:8,className:`collapse`,colorScheme:`light.contrastText`,children:l.hide})]})}),t.settings?.show&&(0,L.jsx)(n,{href:t.settings?.href,onClick:t.settings?.onClick,className:`sections-footer toggle`,"aria-label":l.settings,...t.settings.active?{"aria-current":`page`}:void 0,children:(0,L.jsxs)(M,{text:l.settings,position:`right`,tabIndex:-1,disableTooltip:()=>!document.getElementById(R.layout),target:document.getElementById(R.layout),sx:{width:`inherit`},children:[(0,L.jsx)(r,{"aria-label":l.settingsIcon,children:(0,L.jsx)(ce,{})}),(0,L.jsx)(c,{appearance:`microtext1`,ml:8,className:`collapse`,children:l.settings})]})})]})]})},Rn=({showSupport:e,...t})=>{let n=w(Bn),i=localStorage.getItem(`RATED_US_IN`),a=i?On(new Date(+i),new Date(Date.now())):!1,o=F();return(0,I.useEffect)(()=>{localStorage.removeItem(`CONTACT_POPOVER`),localStorage.removeItem(`RATE_POPOVER`),localStorage.removeItem(`viewNpsItem`)},[]),(0,L.jsxs)(L.Fragment,{children:[t.rateUs?.show&&!a&&(0,L.jsxs)(`button`,{role:`menuitem`,className:`toggle sections-footer`,onClick:t.rateUs?.onClick,...t.rateUs.active?{"aria-current":`page`}:void 0,children:[(0,L.jsx)(r,{"aria-label":n.rateUsIcon,sx:{paddingTop:`2px`},children:(0,L.jsx)(Dn,{id:`svg-icon`,className:`gradient-svg rotate-icon`})}),(0,L.jsx)(c,{appearance:`microtext1`,ml:8,sx:{marginTop:`3px`},className:`collapse gradient grow-shrink`,colorScheme:`light.contrastText`,children:n.rateUs})]}),t.contactUs?.show&&e&&(0,L.jsxs)(o,{href:t.contactUs?.href,className:`toggle sections-footer`,onClick:t.contactUs?.onClick,...t.contactUs.active?{"aria-current":`page`}:void 0,target:t.contactUs?.target,children:[(0,L.jsx)(r,{"aria-label":n.contactIcon,children:(0,L.jsx)(k,{})}),(0,L.jsx)(c,{appearance:`microtext1`,ml:8,sx:{marginTop:`3px`},className:`collapse`,colorScheme:`light.contrastText`,children:n.contactUs})]})]})},zn=({label:e,open:t,children:n,icon:a,setCurrentOverlay:o,listItems:s,replaceWithChildrenWhenCollapsed:l=!0})=>{let[u,d]=(0,I.useState)(t||!1),f=`menuGroup${e}`,m=(0,I.useMemo)(()=>n?.filter(e=>!e.hidden).map(e=>(0,L.jsx)(`li`,{role:`menuitem`,title:e.label,className:`section-submenu ${e.className} ${e.active?`active`:``}`,children:(0,L.jsx)(In,{id:s?.findIndex(t=>t?.label===e.label),...e,hasContent:!1,setCurrentOverlay:o},e.label)},e.label)),[n]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(`a`,{onClick:()=>d(!u),onKeyDown:e=>e.key===`Enter`&&d(!u),className:p([`item-row`,l&&`hidden-when-collapsed`]),tabIndex:0,"aria-controls":f,"aria-expanded":u,children:(0,L.jsx)(M,{text:e,position:`right`,tabIndex:-1,target:document.getElementById(R.layout),sx:{width:`inherit`},children:(0,L.jsxs)(i,{alignItems:`center`,px:3,style:{width:`100%`},children:[(0,L.jsx)(r,{className:`section-icon`,children:a}),(0,L.jsx)(c,{appearance:`microtext1`,className:`section-label`,ml:3,colorScheme:`light.contrastText`,children:e}),(0,L.jsx)(r,{style:{marginLeft:`auto`},className:`chevron-icon-box`,children:(0,L.jsx)(ie,{className:p([`chevron`,u?`open`:``])})})]})})}),(0,L.jsx)(jn,{id:f,className:`${u?`open`:``} root no-indentation`,"aria-hidden":!u,children:m})]})},Bn={en:{toggle:`Collapse or expand the menu`,menuOptions:`View $0 menu options`,settings:`Settings`,settingsIcon:`Settings icon`,hide:`Hide`,contactUs:`Support`,contactIcon:`Contact icon`,rateUs:`Rate us`,rateUsIcon:`Rate us icon`},pt:{toggle:`Contrair ou expandir o menu`,menuOptions:`Visualizar opções do menu $0`,settings:`Configurações`,settingsIcon:`Ãcone de configurações`,hide:`Esconder`,contactUs:`Suporte`,contactIcon:`Ãcone de contato`,rateUs:`Avalie-nos`,rateUsIcon:`Avalie-nos icon`}};g.div` 431 position: relative; 432 margin: ${20}px; 433 margin-bottom: 28px; 434 435 > button { 436 display: flex; 437 gap: 8px; 438 align-items: center; 439 border-radius: 0.25rem; 440 background-color: transparent; 441 border: 1px solid ${u.color.light[500]}; 442 padding: 8px; 443 transition: background-color 0.2s; 444 color: ${u.color.light.contrastText}; 445 width: 100%; 446 text-align: left; 447 448 &:hover { 449 background-color: ${u.color.light[500]}; 450 cursor: pointer; 451 } 452 453 .label { 454 flex: 1; 455 white-space: nowrap; 456 overflow: hidden; 457 text-overflow: ellipsis; 458 } 459 } 460 461 .selection-list { 462 position: absolute; 463 left: 0; 464 right: 0; 465 box-shadow: none; 466 border-radius: 0.25rem; 467 468 .selection-list-content { 469 padding: 8px; 470 border-radius: 0.25rem; 471 border: none; 472 ul { 473 display: flex; 474 flex-direction: column; 475 gap: 8px; 476 } 477 } 478 479 li > a { 480 border: 1px solid ${u.color.light[500]}; 481 background-color: ${u.color.light[400]}; 482 483 &:hover { 484 background-color: ${u.color.light[500]}; 485 } 486 } 487 488 .view-all { 489 background: ${u.color.light[500]}; 490 border-radius: 0.25rem; 491 height: 40px; 492 display: flex; 493 align-items: center; 494 justify-content: center; 495 margin-top: 8px; 496 } 497 } 498`;var Vn=g.ul` 499 padding: 0 0 0 16px; 500 display: flex; 501 flex-direction: column; 502 visibility: hidden; 503 transition: visibility 0s 0.3s; 504 505 &.no-indentation { 506 padding: 0; 507 } 508 509 .item-row { 510 display: flex; 511 flex-direction: row; 512 gap: 8px; 513 align-items: center; 514 515 &.root { 516 padding: 0 16px; 517 margin-top: 16px; 518 border-radius: 0; 519 } 520 521 .label { 522 flex: 1; 523 &.hidden, &.ellipsis { 524 white-space: nowrap; 525 overflow: hidden; 526 } 527 &.ellipsis { 528 text-overflow: ellipsis; 529 } 530 } 531 } 532 533 li { 534 .item-row-title { 535 opacity: 0.7; 536 } 537 538 .item-as-title { 539 position: relative; 540 overflow: hidden; 541 margin-left: ${4}px; 542 } 543 544 a { 545 position: relative; 546 height: 0; 547 overflow: hidden; 548 transition: height 0.3s, background-color 0.2s; 549 margin-left: ${4}px; 550 padding-left: ${16}px; 551 552 &:hover { 553 background-color: ${u.color.light[500]}; 554 } 555 556 &.action { 557 &:before { 558 content: ''; 559 position: absolute; 560 left: 2px; 561 width: 2px; 562 height: 0; 563 background: inherit; 564 transition: height 0.2s; 565 } 566 567 &.active { 568 569 &:hover { 570 background-color: transparent; 571 } 572 573 &:before { 574 background: ${u.color.primary[500]}; 575 height: 24px; 576 } 577 } 578 579 &:not(.active):hover:before { 580 background: ${u.color.light.contrastText}; 581 height: 24px; 582 } 583 } 584 585 .chevron { 586 transition: transform 0.3s; 587 &:not(.open) { 588 transform: rotate(-90deg); 589 } 590 } 591 } 592 } 593 594 &.open { 595 visibility: visible; 596 transition: unset; 597 & > li > a, & > li > .item-as-title { 598 height: 40px; 599 } 600 } 601 602 &:not(.open) &.open > li > a, &:not(.open) &.open > li > .item-as-title { 603 height: 0; 604 } 605 606 &.root { 607 margin-bottom: ${20}px; 608 609 & > li { 610 .group-title { 611 margin-left: ${20}px; 612 margin-bottom: 5px; 613 margin-top: 40px; 614 display: block; 615 } 616 617 &:first-child { 618 .group-title { 619 margin-top: 0; 620 } 621 } 622 } 623 } 624`,Hn=g.header` 625 display: flex; 626 flex-direction: column; 627 margin: ${20}px 0 24px ${20}px; 628`,Un=({label:e,onClick:t,href:n,active:r,icon:i,badge:a,target:o,overflow:s=`wrap`})=>{let l=F(),{ref:u,overflow:d}=be(),f=typeof e==`string`;return(0,L.jsxs)(l,{href:n,onClick:()=>{r||(t&&t(),Fn())},target:o,className:p([`action`,`item-row`,r?`active`:void 0]),...r?{"aria-current":`page`}:void 0,...n?void 0:{tabIndex:0},children:[i,f?(0,L.jsx)(c,{ref:u,appearance:`body2`,className:`label ${s}`,title:d?e:``,children:e}):e.element,a]})};function Wn(){localStorage.setItem(`RATED_US_IN`,Date.now().toString()),en.closeModal(),document.getElementById(`feedback-modal-close-icon`)?.click()}window.onNpsSubmit=Wn;
628var Gn=({tfLive:e,userId:t,orgId:n,portal:r})=>{let[o,s]=(0,I.useState)(!0);return(0,I.useEffect)(()=>{window.tf?.load(),setTimeout(()=>{s(!1)},2e3)},[]),(0,L.jsxs)(a,{sx:{minWidth:`650px`,minHeight:`500px`},children:[o&&(0,L.jsx)(i,{alignItems:`center`,justifyContent:`center`,w:`12`,sx:{height:`100%`},children:(0,L.jsx)(fe,{})}),(0,L.jsx)(a,{sx:{opacity:o?`0`:1},children:(0,L.jsx)(`div`,{"data-tf-live":e,"data-tf-hidden":`user_id=${t},org_id=${n},portal_name=${r}`,"data-tf-open":`time`,"data-tf-open-value":`100`,"data-tf-on-submit":`onNpsSubmit`})})]})},Kn=(e,t,n)=>{e.key===`RATED_US_IN`&&((n?n():An())||t(!1))},qn={box:{width:`438px`,bg:`light.500`,position:`absolute`,top:0,right:0,p:5,zIndex:1,borderRadius:`16px`,boxShadow:`4px 4px 48px 0px ${u.color.light[300]}`}},Jn=({onClick:e,portal:t,customShouldShowNpsModal:o})=>{let s=w(Yn),[l,u]=(0,I.useState)(o?o():An()),d=()=>{localStorage.setItem(`RATED_US_IN`,Date.now().toString()),u(!1)},f=(0,I.useCallback)(e=>Kn(e,u,o),[]);return(0,I.useEffect)(()=>(Kn({key:`RATED_US_IN`},u,o),window.addEventListener(`storage`,f),()=>{window.removeEventListener(`storage`,f)}),[]),l?(0,L.jsxs)(a,{sx:qn.box,id:`feedback-modal`,children:[(0,L.jsxs)(i,{justifyContent:`space-between`,flexWrap:`nowrap`,children:[(0,L.jsxs)(c,{appearance:`h5`,mb:6,children:[s.title,t,`?`]}),(0,L.jsx)(A,{onClick:d,id:`feedback-modal-close-icon`,children:(0,L.jsx)(D,{})})]}),(0,L.jsx)(c,{sx:{lineHeight:`24px`},children:s.description}),(0,L.jsx)(i,{flexDirection:`row-reverse`,mt:7,mb:4,children:(0,L.jsxs)(n,{onClick:e,size:`md`,children:[s.buttonText,(0,L.jsx)(r,{colorIcon:`inverse.contrastText`,ml:2,children:(0,L.jsx)(te,{})})]})})]}):null},Yn={en:{title:`Howâs your experience with StackSpot `,description:`Your feedback helps us make the platform more useful and intuitive for you. It only takes a few minutes.`,buttonText:`Share your feedback`},pt:{title:`Como está sua experiência com StackSpot `,description:`Seu feedback nos ajuda a tornar a plataforma mais útil e intuitiva para você. Leva apenas alguns minutos.`,buttonText:`Compartilhe seu feedback`}},Xn=({onClick:e,portal:t,customShouldShowNpsModal:n})=>(0,L.jsx)(Jn,{onClick:e,portal:t,customShouldShowNpsModal:n}),Zn=({title:e,...t})=>{let{formIdentifier:n,sub:r,tenant:i,portal:a}=t;en.showModal({title:e,children:(0,L.jsx)(Gn,{tfLive:n,userId:r,orgId:i,portal:a}),size:`large`})},Qn=`focus-outline-hidden`;function $n(){var e=this;document.addEventListener(`keydown`,function(t){e.focusByKeyboard=!0},!0),document.addEventListener(`mousedown`,function(t){e.focusByKeyboard=!1},!0),document.addEventListener(`focus`,function(t){e.updateVisibility()},!0),document.addEventListener(`focusout`,function(t){window.setTimeout(function(){document.hasFocus()||(e.focusByKeyboard=!0,e.updateVisibility())},0)}),this.updateVisibility()}$n.prototype={focusByKeyboard:!0,updateVisibility:function(){this.hidden=!this.focusByKeyboard},set hidden(e){document.documentElement.classList.toggle(Qn,e)},get hidden(){return document.documentElement.classList.contains(Qn)}},new $n;var er=t(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var t=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var a=typeof i;if(a===`string`||a===`number`)t.push(i);else if(Array.isArray(i)){if(i.length){var o=n.apply(null,i);o&&t.push(o)}}else if(a===`object`)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&t.push(s);else t.push(i.toString())}}return t.join(` `)}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),tr=t((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=e.easeFunctions={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},n=e.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};e.setPosition=function(e,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:`easeInOutCubic`;return r>i?n:e+(n-e)*t[a](r/i)},e.calcEndPoint=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n(e))return parseInt(e)+r;var i=t===window||t===document.documentElement?window.pageYOffset:t.scrollTop-t.getBoundingClientRect().top;return(e.nodeName.toLowerCase()===`html`?-i:e.getBoundingClientRect().top+i)+r}})),nr=t(((e,t)=>
628{Object.defineProperty(e,"__esModule",{value:!0});var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=tr();e.default=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.duration,a=i===void 0?500:i,o=t.context,s=o===void 0?window:o,c=t.offset,l=c===void 0?0:c,u=t.ease,d=u===void 0?`easeInOutCubic`:u,f=t.callback;if((typeof window>`u`?`undefined`:n(window))===`object`){var p=s.scrollTop!==null&&s.scrollTop!==void 0?s.scrollTop:window.pageYOffset,m=(0,r.calcEndPoint)(e,s,l),h=performance.now(),g=window.requestAnimationFrame;(function t(){var n=performance.now()-h,i=(0,r.setPosition)(p,m,n,a,d);s===window?window.scroll(0,i):s.scrollTop=i,n>a?typeof f==`function`&&f(e):g(t)})()}},t.exports=e.default})),rr=t(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=i(nr());function i(e){return e&&e.__esModule?e:{default:e}}e.default=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.query,i=t===void 0?`[href^="#"]:not([href="#"]`:t,a=e.match,o=a===void 0?function(e){return document.getElementById(e.hash.substring(1))}:a,s=e.hashChange,c=s===void 0?!0:s,l=e.scrollSmoothConfig,u=document.querySelectorAll(i),d=function(e){e.preventDefault();var t=o(e.target);t&&(c&&history.replaceState(null,null,`#`+t.id),(0,r.default)(t,n({},l)))};Array.from(u).map(function(e){e.addEventListener(`click`,d,!1)})},t.exports=e.default})),ir=t(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}e.default=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.activeClass,r=t===void 0?`active`:t,i=e.query,a=i===void 0?`[href^="#"]:not([href="#"]):not([href="#0"])`:i,o=e.threshold,s=o===void 0?[.25,.5,.75]:o,c=e.detectType,l=c===void 0?`max`:c,u={threshold:s},d=function(e){return e.classList.remove(r)},f=function(e){return e.classList.add(r)},p=function(){document.querySelectorAll(`.`+r).forEach(d)},m=function(e){p(),f(document.querySelector(`a[href="#`+e.id+`"]`))},h=function(e){e.forEach(function(e){e.intersectionRatio>=Math[l].apply(Math,n(s))&&m(e.target)})},g=document.querySelectorAll(a),_=new IntersectionObserver(h,u);g.forEach(function(e){var t=document.querySelector(`#`+e.hash.slice(1));_.observe(t)})},t.exports=e.default})),ar=t(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=o(nr()),r=tr(),i=o(rr()),a=o(ir());function o(e){return e&&e.__esModule?e:{default:e}}e.default={to:n.default,calcEndPoint:r.calcEndPoint,anchorScroll:i.default,observe:a.default},t.exports=e.default})),or=t(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([],n):typeof t==`object`&&t.exports?t.exports=n():e.Scrollparent=n()})(e,function(){var e=/(auto|scroll)/,t=function(e,n){return e.parentNode===null?n:t(e.parentNode,n.concat([e]))},n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(e){return n(e,`overflow`)+n(e,`overflow-y`)+n(e,`overflow-x`)},i=function(t){return e.test(r(t))};return function(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var n=t(e.parentNode,[]),r=0;r<n.length;r+=1)if(i(n[r]))return n[r];return document.scrollingElement||document.documentElement}}})})),sr=t(((e,t)=>{var n=`Expected a function`,r=NaN,i=`[object Symbol]`,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=Object.prototype.toString,m=Math.max,h=Math.min,g=function(){return f.Date.now()};function _(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(n);t=x(t)||0,v(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?m(x(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function _(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function y(e){return u=e,c=setTimeout(C,t),d?_(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?h(i,o-r):i}function S(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=g();if(S(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,p&&i?_(e):(i=a=void 0,s)}function T(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function E(){return c===void 0?s:w(g())}function D(){var e=g(),n=S(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return y(l);if(f)return c=setTimeout(C,t),_(l)}return c===void 0&&(c=setTimeout(C,t)),s}return D.cancel=T,D.flush=E,D}function v(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function y(e){return!!e&&typeof e==`object`}function b(e){return typeof e==`symbol`||y(e)&&p.call(e)==i}function x(e){if(typeof e==`number`)return e;if(b(e))return r;if(v(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=v(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(a,``);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}t.exports=_})),cr=t(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),lr=t(((e,t)=>{var n=cr();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}
628var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),ur=t(((e,t)=>{t.exports=lr()()})),dr=`data-focus-lock`,fr=`data-focus-lock-disabled`,pr=`data-no-focus-lock`,mr=`data-autofocus-inside`,hr=`data-no-autofocus`;function gr(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function _r(e,t){var n=(0,I.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var vr=typeof window<`u`?I.useLayoutEffect:I.useEffect,yr=new WeakMap;function br(e,t){var n=_r(t||null,function(t){return e.forEach(function(e){return gr(e,t)})});return vr(function(){var t=yr.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||gr(e,null)}),i.forEach(function(e){r.has(e)||gr(e,a)})}yr.set(n,e)},[e]),n}var xr=e(er()),Sr=e(ar()),Cr=e(or()),wr=e(sr()),W=e(ur()),Tr={width:`1px`,height:`0px`,padding:0,overflow:`hidden`,position:`fixed`,top:`1px`,left:`1px`},Er=function(e){var t=e.children,n=t===void 0?null:t;return I.createElement(I.Fragment,null,I.createElement(`div`,{key:`guard-first`,"data-focus-guard":!0,"data-focus-auto-guard":!0,style:Tr}),n,n&&I.createElement(`div`,{key:`guard-last`,"data-focus-guard":!0,"data-focus-auto-guard":!0,style:Tr}))};Er.propTypes={};var Dr=function(){return Dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Dr.apply(this,arguments)};function Or(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function kr(e){return e}function Ar(e,t){t===void 0&&(t=kr);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function jr(e,t){return t===void 0&&(t=kr),Ar(e,t)}function Mr(e){e===void 0&&(e={});var t=Ar(null);return t.options=Dr({async:!0,ssr:!1},e),t}var Nr=jr({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),Pr=jr(),Fr=jr(),Ir=Mr({async:!0,ssr:typeof document<`u`}),Lr=(0,I.createContext)(void 0),Rr=[],zr=I.forwardRef(function(e,t){var n,r=I.useState(),i=r[0],a=r[1],o=I.useRef(),s=I.useRef(!1),c=I.useRef(null),l=I.useState({})[1],u=e.children,d=e.disabled,f=d===void 0?!1:d,p=e.noFocusGuards,m=p===void 0?!1:p,h=e.persistentFocus,g=h===void 0?!1:h,_=e.crossFrame,v=_===void 0?!0:_,y=e.autoFocus,b=y===void 0?!0:y;e.allowTextSelection;var x=e.group,S=e.className,C=e.whiteList,w=e.hasPositiveIndices,T=e.shards,E=T===void 0?Rr:T,D=e.as,ee=D===void 0?`div`:D,O=e.lockProps,k=O===void 0?{}:O,A=e.sideCar,te=e.returnFocus,j=te===void 0?!1:te,M=e.focusOptions,N=e.onActivation,P=e.onDeactivation,ne=I.useState({})[0],re=I.useCallback(function(e){var t=e.captureFocusRestore;if(!c.current){var n=document?.activeElement;c.current=n,n!==document.body&&(c.current=t(n))}o.current&&N&&N(o.current),s.current=!0,l()},[N]),ie=I.useCallback(function(){s.current=!1,P&&P(o.current),l()},[P]),ae=I.useCallback(function(e){var t=c.current;if(t){var n=(typeof t==`function`?t():t)||document.body,r=typeof j==`function`?j(n):j;if(r){var i=typeof r==`object`?r:void 0;c.current=null,e?Promise.resolve().then(function(){return n.focus(i)}):n.focus(i)}}},[j]),oe=I.useCallback(function(e){s.current&&Nr.useMedium(e)},[]),se=Pr.useMedium,ce=I.useCallback(function(e){o.current!==e&&(o.current=e,a(e))},[]),le=Me((n={},n[fr]=f&&`disabled`,n[dr]=x,n),k),ue=m!==!0,de=ue&&m!==`tail`,fe=br([t,ce]),pe
628=I.useMemo(function(){return{observed:o,shards:E,enabled:!f,active:s.current}},[f,s.current,E,i]);return I.createElement(I.Fragment,null,ue&&[I.createElement(`div`,{key:`guard-first`,"data-focus-guard":!0,tabIndex:f?-1:0,style:Tr}),w?I.createElement(`div`,{key:`guard-nearest`,"data-focus-guard":!0,tabIndex:f?-1:1,style:Tr}):null],!f&&I.createElement(A,{id:ne,sideCar:Ir,observed:i,disabled:f,persistentFocus:g,crossFrame:v,autoFocus:b,whiteList:C,shards:E,onActivation:re,onDeactivation:ie,returnFocus:ae,focusOptions:M,noFocusGuards:m}),I.createElement(ee,Me({ref:fe},le,{className:S,onBlur:se,onFocus:oe}),I.createElement(Lr.Provider,{value:pe},u)),de&&I.createElement(`div`,{"data-focus-guard":!0,tabIndex:f?-1:0,style:Tr}))});zr.propTypes={};function Br(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Re(e,t)}function Vr(e,t){function n(e){return e.displayName||e.name||`Component`}return function(r){var i=[],a;function o(){a=e(i.map(function(e){return e.props})),t(a)}var s=function(e){Br(t,e);function t(){return e.apply(this,arguments)||this}t.peek=function(){return a};var n=t.prototype;return n.componentDidMount=function(){i.push(this),o()},n.componentDidUpdate=function(){o()},n.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),o()},n.render=function(){return I.createElement(r,this.props)},t}(I.PureComponent);return Ne(s,`displayName`,`SideEffect(`+n(r)+`)`),s}}var G=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},K=function(e){return Array.isArray(e)?e:[e]},Hr=function(e){return Array.isArray(e)?e[0]:e},Ur=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue(`display`)===`none`||t.getPropertyValue(`visibility`)===`hidden`},Wr=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Gr=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Kr=function(e){return e.hasAttribute(`inert`)},qr=function(e,t){return!e||Gr(e)||!Ur(e)&&!Kr(e)&&t(Wr(e))},Jr=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=qr(t,Jr.bind(void 0,e));return e.set(t,r),r},Yr=function(e,t){return e&&!Gr(e)?ni(e)?t(Wr(e)):!1:!0},Xr=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=Yr(t,Xr.bind(void 0,e));return e.set(t,r),r},Zr=function(e){return e.dataset},Qr=function(e){return e.tagName===`BUTTON`},$r=function(e){return e.tagName===`INPUT`},ei=function(e){return $r(e)&&e.type===`radio`},ti=function(e){return!(($r(e)||Qr(e))&&(e.type===`hidden`||e.disabled))},ni=function(e){var t=e.getAttribute(hr);return![!0,`true`,``].includes(t)},ri=function(e){return!!(e&&Zr(e)?.focusGuard)},ii=function(e){return!ri(e)},ai=function(e){return!!e},oi=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),i=n-r,a=e.index-t.index;if(i){if(!n)return 1;if(!r)return-1}return i||a},si=function(e){return e.tabIndex<0&&!e.hasAttribute(`tabindex`)?0:e.tabIndex},ci=function(e,t,n){return G(e).map(function(e,t){var r=si(e);return{node:e,index:t,tabIndex:n&&r===-1?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!t||e.tabIndex>=0}).sort(oi)},li=[`button:enabled`,`select:enabled`,`textarea:enabled`,`input:enabled`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[tabindex]`,`[contenteditable]`,`[autofocus]`].join(`,`),ui=`${li}, [data-focus-guard]`,di=function(e,t){return G((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?ui:li)?[n]:[],di(n))},[])},fi=function(e,t){return e instanceof HTMLIFrameElement&&e.contentDocument?.body?q([e.contentDocument.body],t):[e]},q=function(e,t){return e.reduce(function(e,n){var r,i=di(n,t),a=(r=[]).concat.apply(r,i.map(function(e){return fi(e,t)}));return e.concat(a,n.parentNode?G(n.parentNode.querySelectorAll(li)).filter(function(e){return e===n}):[])},[])},pi=function(e){return G(e.querySelectorAll(`[${mr}]`)).map(function(e){return q([e])}).reduce(function(e,t){return e.concat(t)},[])},mi=function(e,t){return G(e).filter(function(e){return Jr(t,e)}).filter(function(e){return ti(e)})},hi=function(e,t){return t===void 0&&(t=new Map),G(e).filter(function(e){return Xr(t,e)})},gi=function(e,t,n){return ci(mi(q(e,n),t),!0,n)},_i=function(e,t){return ci(mi(q(e),t),!1)},vi=function(e,t){return mi(pi(e),t)},J=function(e,t){return e.shadowRoot?J(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:G(e.children).some(function(e){if(e instanceof HTMLIFrameElement){var n=e.contentDocument?.body;return n?J(n,t):!1}return J(e,t)})},yi=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var a=e[r].compareDocumentPosition(e[i]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})},bi=function(e){return e.parentNode?bi(e.parentNode):e}
628,xi=function(e){return K(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(dr);return e.push.apply(e,n?yi(G(bi(t).querySelectorAll(`[${dr}="${n}"]:not([${fr}="disabled"])`))):[t]),e},[])},Si=function(e){try{return e()}catch{return}},Ci=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Ci(t.shadowRoot):t instanceof HTMLIFrameElement&&Si(function(){return t.contentWindow.document})?Ci(t.contentWindow.document):t}},wi=function(e,t){return e===t},Ti=function(e,t){return!!G(e.querySelectorAll(`iframe`)).some(function(e){return wi(e,t)})},Ei=function(e,t){return t===void 0&&(t=Ci(Hr(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:xi(e).some(function(e){return J(e,t)||Ti(e,t)})},Di=function(e){e===void 0&&(e=document);var t=Ci(e);return t?G(e.querySelectorAll(`[${pr}]`)).some(function(e){return J(e,t)}):!1},Oi=function(e,t){return t.filter(ei).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},ki=function(e,t){return ei(e)&&e.name?Oi(e,t):e},Ai=function(e){var t=new Set;return e.forEach(function(n){return t.add(ki(n,e))}),e.filter(function(e){return t.has(e)})},ji=function(e){return e[0]&&e.length>1?ki(e[0],e):e[0]},Mi=function(e,t){return e.indexOf(ki(t,e))},Ni=`NEW_FOCUS`,Pi=function(e,t,n,r,i){var a=e.length,o=e[0],s=e[a-1],c=ri(r);if(!(r&&e.indexOf(r)>=0)){var l=r===void 0?-1:n.indexOf(r),u=i?n.indexOf(i):l,d=i?e.indexOf(i):-1;if(l===-1)return d===-1?Ni:d;if(d===-1)return Ni;var f=l-u,p=n.indexOf(o),m=n.indexOf(s),h=Ai(n),g=(r===void 0?-1:h.indexOf(r))-(i?h.indexOf(i):l);if(!f&&d>=0||t.length===0)return d;var _=Mi(e,t[0]),v=Mi(e,t[t.length-1]);if(l<=p&&c&&Math.abs(f)>1)return v;if(l>=m&&c&&Math.abs(f)>1)return _;if(f&&Math.abs(g)>1)return d;if(l<=p)return v;if(l>m)return _;if(f)return Math.abs(f)>1?d:(a+d+f)%a}},Fi=function(e){return function(t){var n=Zr(t)?.autofocus;
628return t.autofocus||n!==void 0&&n!==`false`||e.indexOf(t)>=0}},Ii=function(e,t,n){var r=hi(e.map(function(e){return e.node}).filter(Fi(n)));return r&&r.length?ji(r):ji(hi(t))},Li=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Li(e.parentNode.host||e.parentNode,t),t},Ri=function(e,t){for(var n=Li(e),r=Li(t),i=0;i<n.length;i+=1){var a=n[i];if(r.indexOf(a)>=0)return a}return!1},zi=function(e,t,n){var r=K(e),i=K(t),a=r[0],o=!1;return i.filter(Boolean).forEach(function(e){o=Ri(o||e,e)||o,n.filter(Boolean).forEach(function(e){var t=Ri(a,e);t&&(o=!o||J(t,o)?t:Ri(t,o))})}),o},Bi=function(e,t){return e.reduce(function(e,n){return e.concat(vi(n,t))},[])},Vi=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter(ai)},Hi=function(e,t){var n=Ci(K(e).length>0?document:Hr(e).ownerDocument),r=xi(e).filter(ii),i=zi(n||e,e,r),a=new Map,o=_i(r,a),s=o.filter(function(e){var t=e.node;return ii(t)});if(s[0]){var c=_i([i],a).map(function(e){return e.node}),l=Vi(c,s),u=l.map(function(e){return e.node}),d=l.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),f=Pi(u,d,c,n,t);if(f===`NEW_FOCUS`){var p=Ii(o,d,Bi(r,a))||Ii(o,u,Bi(r,a));if(p)return{node:p};console.warn(`focus-lock: cannot find any node to move focus into`);return}return f===void 0?f:l[f]}},Ui=function(e){var t=xi(e).filter(ii),n=ci(q([zi(e,e,t)],!0),!0,!0),r=q(t,!1);return n.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:r.indexOf(t)>=0,guard:ri(t)}})},Wi=function(e,t){e&&(`focus`in e&&e.focus(t),`contentWindow`in e&&e.contentWindow&&e.contentWindow.focus())},Gi=0,Ki=!1,qi=function(e,t,n){n===void 0&&(n={});var r=Hi(e,t);if(!Ki&&r){if(Gi>2){console.error(`FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting`),Ki=!0,setTimeout(function(){Ki=!1},1);return}Gi++,Wi(r.node,n.focusOptions),Gi--}};function Ji(e){if(!e)return null;if(typeof WeakRef>`u`)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return t?.deref()||null}}var Yi=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Ji(n),parent:Ji(n.parentElement),left:Ji(n.previousElementSibling),right:Ji(n.nextElementSibling)}),n=n.parentElement;return{element:Ji(e),stack:t,ownerDocument:e.ownerDocument}},Xi=function(e){if(e)for(var t=e.stack,n=e.ownerDocument,r=new Map,i=0,a=t;i<a.length;i++){var o=a[i],s=o.parent?.call(o);if(s&&n.contains(s)){for(var c=o.left?.call(o),l=o.current(),u=s.contains(l)?l:void 0,d=o.right?.call(o),f=gi([s],r),p=u??c?.nextElementSibling??d??c;p;){for(var m=0,h=f;m<h.length;m++){var g=h[m];if(p?.contains(g.node))return g.node}p=p.nextElementSibling}if(f.length)return f[0].node}}},Zi=function(e){var t=Yi(e);return function(){return Xi(t)}},Qi=function(e,t,n){if(!e||!t)return console.error(`no element or scope given`),{};var r=K(t);if(r.every(function(t){return!J(t,e)}))return console.error(`Active element is not contained in the scope`),{};var i=n?gi(r,new Map):_i(r,new Map),a=i.findIndex(function(t){return t.node===e});if(a!==-1)return{prev:i[a-1],next:i[a+1],first:i[0],last:i[i.length-1]}},$i=function(e,t){var n=t?gi(K(e),new Map):_i(K(e),new Map);return{first:n[0],last:n[n.length-1]}},ea=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},ta=function(e,t,n){t===void 0&&(t={});var r=ea(t),i=Qi(e,r.scope,r.onlyTabbable);if(i){var a=n(i,r.cycle);a&&Wi(a.node,r.focusOptions)}},na=function(e,t){t===void 0&&(t={}),ta(e,t,function(e,t){var n=e.next,r=e.first;return n||t&&r})},ra=function(e,t){t===void 0&&(t={}),ta(e,t,function(e,t){var n=e.prev,r=e.last;return n||t&&r})},ia=function(e,t,n){var r=$i(e,t.onlyTabbable??!0)[n];r&&Wi(r.node,t.focusOptions)},aa=function(e,t){t===void 0&&(t={}),ia(e,t,`first`)},oa=function(e,t){t===void 0&&(t={}),ia(e,t,`last`)};function sa(e){setTimeout(e,1)}var ca=function(e){return e&&`current`in e?e.current:e},la=function(){return document&&document.activeElement===document.body},ua=function(){return la()||Di()},da=null,Y=null,fa=function(){return null},pa=null,ma=!1,ha=!1,ga=function(){return!0},_a=function(e){return(da.whiteList||ga)(e)},va=function(e,t){pa={observerNode:e,portaledElement:t}},ya=function(e){return pa&&pa.portaledElement===e};function ba(e,t,n,r){var i=null,a=e;do{var o=r[a];if(o.guard)o.node.dataset.focusAutoGuard&&(i=o);else if(o.lockItem){if(a!==e)return;i=null}else break}while((a+=n)!==t);i&&(i.node.tabIndex=0)}var xa=function(e){return e?!!ma:ma===`meanwhile`},Sa=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},Ca=function(e,t){return t.some(function(t){return Sa(e,t,t)})},wa=function(e){return _i(e,new Map)},Ta=function(e){return!wa([e.parentNode]).some(function(t){return t.node===e})},Ea=function(){var e=!1;
628if(da){var t=da,n=t.observed,r=t.persistentFocus,i=t.autoFocus,a=t.shards,o=t.crossFrame,s=t.focusOptions,c=t.noFocusGuards,l=n||pa&&pa.portaledElement;if(la()&&Y&&(!document.body.contains(Y)||Ta(Y))){Y=null;var u=fa();u&&u.focus()}var d=document&&document.activeElement;if(l){var f=[l].concat(a.map(ca).filter(Boolean));if((!d||_a(d))&&(r||function(){if(!xa(o)||!c||!Y||ha)return!1;var e=wa(f),t=e.findIndex(function(e){return e.node===Y});return t===0||t===e.length-1}()||!ua()||!Y&&i)&&(l&&!(Ei(f)||d&&Ca(d,f)||ya(d,l))&&(document&&!Y&&d&&!i?(d.blur&&d.blur(),document.body.focus()):(e=qi(f,Y,{focusOptions:s}),pa={})),ma=!1,Y=document&&document.activeElement,fa=Zi(Y)),document&&d!==document.activeElement&&document.querySelector(`[data-focus-auto-guard]`)){var p=document&&document.activeElement,m=Ui(f),h=m.map(function(e){return e.node}).indexOf(p);h>-1&&(m.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute(`tabIndex`)}),ba(h,m.length,1,m),ba(h,-1,-1,m))}}}return e},Da=function(e){Ea()&&e&&(e.stopPropagation(),e.preventDefault())},Oa=function(){return sa(Ea)},ka=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||va(n,t)},Aa=function(){return null},ja=function(e){var t=e.children;return I.createElement(`div`,{onBlur:Oa,onFocus:ka},t)};ja.propTypes={};var Ma=function(){ha=!0},Na=function(){ha=!1,ma=`just`,sa(function(){ma=`meanwhile`})},Pa=function(){document.addEventListener(`focusin`,Da),document.addEventListener(`focusout`,Oa),window.addEventListener(`focus`,Ma),window.addEventListener(`blur`,Na)},Fa=function(){document.removeEventListener(`focusin`,Da),document.removeEventListener(`focusout`,Oa),window.removeEventListener(`focus`,Ma),window.removeEventListener(`blur`,Na)};function Ia(e){return e.filter(function(e){return!e.disabled})}var La={moveFocusInside:qi,focusInside:Ei,focusNextElement:na,focusPrevElement:ra,focusFirstElement:aa,focusLastElement:oa,captureFocusRestore:Zi};function Ra(e){var t=e.slice(-1)[0];t&&!da&&Pa();var n=da,r=n&&t&&t.id===n.id;da=t,n&&!r&&(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(Y=null,(!r||n.observed!==t.observed)&&t.onActivation(La),Ea(!0),sa(Ea)):(Fa(),Y=null)}Nr.assignSyncMedium(ka),Pr.assignMedium(Oa),Fr.assignMedium(function(e){return e(La)});var za=Vr(Ia,Ra)(Aa),Ba=I.forwardRef(function(e,t){return I.createElement(zr,Me({sideCar:za,ref:t},e))}),Va=zr.propTypes||{};Va.sideCar,Pe(Va,[`sideCar`]),Ba.propTypes={};var Ha=Ba;function Ua(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wa(e){if(Array.isArray(e))return e}function Ga(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Ka(e,t,n){return t=Za(t),io(e,$a()?Reflect.construct(t,n||[],Za(e).constructor):t.apply(e,n))}function qa(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Ja(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,co(r.key),r)}}function Ya(e,t,n){return t&&Ja(e.prototype,t),n&&Ja(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xa(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=lo(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 629In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function X(e,t,n){return(t=co(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Za(e)}function Qa(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ao(e,t)}function $a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($a=function(){return!!e})()}function eo(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}
629finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function to(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 630In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?no(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function io(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Ga(e)}function ao(e,t){return ao=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ao(e,t)}function oo(e,t){return Wa(e)||eo(e,t)||lo(e,t)||to()}function Z(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function so(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function co(e){var t=so(e,`string`);return typeof t==`symbol`?t:t+``}function lo(e,t){if(e){if(typeof e==`string`)return Ua(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ua(e,t):void 0}}var uo,fo=d(uo||=Z([` 631 .focus-outline-hidden :focus { 632 outline: none; 633 } 634`])),po,mo=g.button(po||=Z([` 635 display: block; 636 padding: 0; 637 border: 0; 638 background: none; 639 font-size: 0; 640 cursor: `,`; 641`]),function(e){return e.disabled?`not-allowed`:`pointer`}),ho,go,_o=g.span(ho||=Z([` 642 font-size: 12px; 643 line-height: 1; 644`]));function vo(e){var t=e.className,n=e.onClick,r=e.inverted,i=e.label,a=e.disabled;return I.createElement(mo,{className:t,onClick:n,"data-tour-elem":`${r?`right`:`left`}-arrow`,disabled:a},i?I.createElement(_o,null,i):I.createElement(`svg`,{viewBox:`0 0 18.4 14.4`},I.createElement(`path`,{d:r?`M17 7.2H1M10.8 1L17 7.2l-6.2 6.2`:`M1.4 7.2h16M7.6 1L1.4 7.2l6.2 6.2`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeMiterlimit:`10`})))}vo.propTypes={className:W.default.string.isRequired,onClick:W.default.func.isRequired,inverted:W.default.bool,label:W.default.node,disabled:W.default.bool};var yo=g(vo)(go||=Z([` 645 color: `,`; 646 647 `,`; 648 `,`; 649 650 &:hover { 651 color: `,`; 652 } 653`]),function(e){return e.disabled?`#caccce`:`#646464`},function(e){return e.inverted?`margin-left: 24px;`:`margin-right: 24px;`},function(e){return!e.label&&` 654 width: 16px; 655 height: 12px; 656 flex: 0 0 16px; 657 `},function(e){return e.disabled?`#caccce`:`#000`}),bo;function xo(e){var t=e.className,n=e.onClick,r=e.ariaLabel;return I.createElement(mo,{className:t,onClick:n,"aria-label":r},I.createElement(`svg`,{viewBox:`0 0 9.1 9.1`,"aria-hidden":!0,role:`presentation`},I.createElement(`path`,{fill:`currentColor`,d:`M5.9 4.5l2.8-2.8c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L4.5 3.1 1.7.3C1.3-.1.7-.1.3.3c-.4.4-.4 1 0 1.4l2.8 2.8L.3 7.4c-.4.4-.4 1 0 1.4.2.2.4.3.7.3s.5-.1.7-.3L4.5 6l2.8 2.8c.3.2.5.3.8.3s.5-.1.7-.3c.4-.4.4-1 0-1.4L5.9 4.5z`})))}xo.propTypes={className:W.default.string.isRequired,onClick:W.default.func.isRequired,ariaLabel:W.default.string};var So=g(xo)(bo||=Z([` 658 position: absolute; 659 top: 22px; 660 right: 22px; 661 width: 9px; 662 height: 9px; 663 color: #5e5e5e; 664 &:hover { 665 color: #000; 666 } 667`]));function Co(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function wo(e,t){if(!t.highlightedSelectors)return Co(e);var n=Co(e),r=Xa(t.highlightedSelectors),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o=document.querySelector(a);if(!(!o||o.style.display===`none`||o.style.visibility===`hidden`)){var s=Co(o);s.top<n.top&&(n.top=s.top),s.right>n.right&&(n.right=s.right),s.bottom>
667n.bottom&&(n.bottom=s.bottom),s.left<n.left&&(n.left=s.left)}}}catch(e){r.e(e)}finally{r.f()}return n.width=n.right-n.left,n.height=n.bottom-n.top,n}function To(e){var t=e.top,n=e.right,r=e.bottom,i=e.left,a=e.w,o=e.h,s=e.threshold,c=s===void 0?0:s;return t>=0+c&&i>=0+c&&r<=o-c&&n<=a-c}function Eo(e){return e===document.querySelector(`body`)||e===document.querySelector(`html`)}var Do=function(e){return/(left|right)/.test(e)},Oo=function(e,t){return e>t},ko=function(e,t){return e>t},Q=function(e){return e<0?0:e};function Ao(e){return Object.keys(e).map(function(t){return{position:t,value:e[t]}}).sort(function(e,t){return t.value-e.value}).map(function(e){return e.position})}var jo,Mo=g.div(jo||=Z([` 668 --reactour-accent: `,`; 669 `,` 670 position: fixed; 671 transition: transform 0.3s; 672 top: 0; 673 left: 0; 674 z-index: 1000000; 675 676 transform: `,`; 677`]),function(e){return e.accentColor},function(e){return e.defaultStyles?` 678 max-width: 331px; 679 min-width: 150px; 680 padding-right: 40px; 681 border-radius: ${e.rounded}px; 682 background-color: #fff; 683 padding: 24px 30px; 684 box-shadow: 0 0.5em 3em rgba(0, 0, 0, 0.3); 685 color: inherit; 686 `:``},function(e){var t=e.targetTop,n=e.targetRight,r=e.targetBottom,i=e.targetLeft,a=e.windowWidth,o=e.windowHeight,s=e.helperWidth,c=e.helperHeight,l=e.helperPosition,u=e.padding,d={left:i,right:a-n,top:t,bottom:o-r},f=function(e){return d[e]>(Do(e)?s+u*2:c+u*2)},p=function(e){for(var t=Ao(d),n=0;n<t.length;n++)if(f(t[n]))return e[t[n]];return e.center},m=function(e){if(Array.isArray(e)){var l=Oo(e[0],a),d=ko(e[1],o),m=function(e,t){console.warn(`${e}:${t} is outside window, falling back to center`)};return l&&m(`x`,e[0]),d&&m(`y`,e[1]),[l?a/2-s/2:e[0],d?o/2-c/2:e[1]]}var h=Oo(i+s,a)?Oo(n+u,a)?n-s:n-s+u:i-u,g=h>u?h:u,_=ko(t+c,o)?ko(r+u,o)?r-c:r-c+u:t-u,v=_>u?_:u,y={top:[g,t-c-u*2],right:[n+u*2,v],bottom:[g,r+u*2],left:[i-s-u*2,v],center:[a/2-s/2,o/2-c/2]};return e===`center`||f(e)?y[e]:p(y)}(l);return`translate(${Math.round(m[0])}px, ${Math.round(m[1])}px)`}),No,Po=g.span(No||=Z([` 687 position: absolute; 688 font-family: monospace; 689 background: var(--reactour-accent); 690 background: `,`; 691 height: 1.875em; 692 line-height: 2; 693 padding-left: 0.8125em; 694 padding-right: 0.8125em; 695 font-size: 1em; 696 border-radius: 1.625em; 697 color: white; 698 text-align: center; 699 box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.3); 700 top: -0.8125em; 701 left: -0.8125em; 702`]),function(e){return e.accentColor}),Fo,Io=g.div(Fo||=Z([` 703 display: flex; 704 margin-top: 24px; 705 align-items: center; 706 justify-content: center; 707`])),Lo,Ro=g.nav(Lo||=Z([` 708 counter-reset: dot; 709 display: flex; 710 justify-content: center; 711 align-items: center; 712 flex-wrap: wrap; 713`])),zo,Bo=g.button(zo||=Z([` 714 counter-increment: dot; 715 width: 8px; 716 height: 8px; 717 border: `,`; 718 719 border-radius: 100%; 720 padding: 0; 721 display: block; 722 margin: 4px; 723 transition: opacity 0.3s, transform 0.3s; 724 cursor: `,`; 725 transform: scale(`,`); 726 727 color: `,`; 728 background: `,`; 729 730 color: `,`; 731 background: `,`; 732 733 &:before { 734 content: counter(dot); 735 position: absolute; 736 bottom: calc(100% + 0.25em); 737 left: 50%; 738 opacity: 0; 739 transform: translate(-50%, 1em); 740 transition: 0.3s; 741 display: `,`; 742 } 743 744 &:hover { 745 background-color: currentColor; 746 747 &:before { 748 opacity: 0.5; 749 transform: translate(-50%, -2px); 750 } 751 } 752`]),function(e){return e.current===e.index?`0`:`1px solid #caccce`},function(e){return e.disabled?`not-allowed`:`pointer`},function(e){return e.current===e.index?1.25:1},function(e){return e.current===e.index?`var(--reactour-accent)`:`#caccce`},function(e){return e.current===e.index?`var(--reactour-accent)`:`none`},function(e){return e.current===e.index?e.accentColor:`#caccce`},function(e){return e.current===e.index?e.accentColor:`none`},function(e){return e.showNumber?`block`:`none`}),Vo,Ho=g.div(Vo||=Z([` 753 opacity: `,`; 754 color: `,`; 755 width: 100%; 756 left: 0; 757 top: 0; 758 height: 100%; 759 position: fixed; 760 z-index: 99999; 761 pointer-events: none; 762`]),function(e){return!e.maskClassName&&.7},function(e){return!e.maskClassName&&`#000`});function Uo(e){var t=e.windowWidth,n=e.windowHeight,r=e.targetWidth,i=e.targetHeight,a=e.targetTop,o=e.targetLeft,s=e.padding,c=e.rounded,l=e.roundedStep,u=e.disableInteraction,d=e.disableInteractionClassName,f=e.className,p=e.onClick,m=e.highlightedBorder,h=Q(r+s*2),g=Q(i+s*2),_=Q(a-s),v=Q(o-s),y=l?Math.min(h/2,g/2):c;return I.createElement(Ho,{onClick:p,maskClassName:f},I.createElement(`svg`,{width:t,height:n,xmlns:`http://www.w3.org/2000/svg`,className:f},I.createElement(`defs`,null,I.createElement(`mask`,{id:`mask-main`},I.createElement(`rect`,{x:0,y:0,width:t,height:n,fill:`white`}),I.createElement(`rect`,{x:v,y:_,width:h,height:g,fill:`black`}),I.createElement(`rect`,{x:v-1,y:_-1,width:y,height:y,fill:`white`}),I.createElement(`circle`,{cx:v+y,cy:_+y,r:y,fill:`black`}),I.createElement(`rect`,{x:v+h-y+1,y:_-1,width:y,height:y,fill:`white`}),I.createElement(`circle`,{cx:v+h-y,cy:_+y,r:y,fill:`black`}),I.createElement(`rect`,{x:v-1,y:_+g-y+1,width:y,height:y,fill:`white`}),I.createElement(`circle`,{cx:v+y,cy:_+g-y,r:y,fill:`black`}),I.createElement(`rect`,{x:v+h-y+1,y:_+g-y+1,width:y,height:y,fill:`white`}),I.createElement(`circle`,{cx:v+h-y,cy:_+g-y,r:y,fill:`black `})),I.createElement(`clipPath`,{id:`clip-path`},I.createElement(`rect`,{x:0,y:0,width:t,height:_}),I.createElement(`rect`,{x:0,y:_,width:v,height:g}),I.createElement(`rect`,{x:o+r+s,y:_,width:Q(t-r-v),height:g}),I.createElement(`rect`,{x:0,y:a+i+s,width:t,height:Q(n-i-_)}))),I.createElement(`rect`,{x:0,y:0,width:t,height:n,fill:`currentColor`,mask:`url(#mask-main)`}),I.createElement(`rect`,{x:0,y:0,width:t,height:n,fill:`currentColor`,clipPath:`url(#clip-path)`,pointerEvents:`auto`}),I.createElement(`rect`,{x:v,y:_,width:h,height:g,pointerEvents:`auto`,fill:`transparent`,display:u?`block`:`none`,className:d}),m&&I.createElement(`rect`,{x:Q(v+m.width/2),y:Q(_+m.width/2),width:Q(h-m.width),height:Q(g-m.width),pointerEvents:`auto`,fill:`none`,strokeWidth:m.width,stroke:m.color,rx:y-2})))}Uo.propTypes={windowWidth:W.default.number.isRequired,windowHeight:W.default.number.isRequired,targetWidth:W.default.number.isRequired,targetHeight:W.default.number.isRequired,targetTop:W.default.number.isRequired,targetLeft:W.default.number.isRequired,padding:W.default.number.isRequired,rounded:W.default.number.isRequired,roundedStep:W.default.bool,disableInteraction:W.default.bool.isRequired,disableInteractionClassName:W.default.string.isRequired,highlightedBorder:W.default.shape({color:W.default.string.isRequired,width:W.default.number.isRequired})};var Wo=(function(e){var t=e.step,n=e.refresh,r=oo((0,I.useState)(0),2),i=r[0],a=r[1];return(0,I.useEffect)(function(){if(t.resizeObservables){var e=function(e){var n=Xa(e),r;try{var o=function(){var e=r.value;if(!e.attributes)return 1;t.resizeObservables.find(function(t){return e.matches(t)||e.querySelector(t)!=null})&&a(i+1)};for(n.s();!(r=n.n()).done;)if(o())continue}catch(e){n.e(e)}finally{n.f()}},n=new MutationObserver(function(t){var n=Xa(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;i.addedNodes.length!==0&&e(i.addedNodes),i.removedNodes.length!==0&&e(i.removedNodes
762)}}catch(e){n.e(e)}finally{n.f()}}),r=document.documentElement||document.body;return n.observe(r,{childList:!0,subtree:!0}),function(){n.disconnect()}}},[t,i]),(0,I.useEffect)(function(){if(t.resizeObservables){var e=new ResizeObserver(function(e){n()}),r=Xa(t.resizeObservables),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o=document.querySelector(a);o&&e.observe(o)}}catch(e){r.e(e)}finally{r.f()}return function(){e.disconnect()}}},[t,i]),null}),Go=(function(e){var t=e.step,n=e.refresh;return(0,I.useEffect)(function(){if(t.mutationObservables){var e=function(e){var r=Xa(e),i;try{var a=function(){var e=i.value;if(!e.attributes)return 1;t.mutationObservables.find(function(t){return e.matches(t)||e.querySelector(t)!=null})&&n()};for(r.s();!(i=r.n()).done;)if(a())continue}catch(e){r.e(e)}finally{r.f()}},r=new MutationObserver(function(t){var n=Xa(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;i.addedNodes.length!==0&&e(i.addedNodes),i.removedNodes.length!==0&&e(i.removedNodes)}}catch(e){n.e(e)}finally{n.f()}}),i=document.documentElement||document.body;return r.observe(i,{childList:!0,subtree:!0}),function(){r.disconnect()}}},[t]),null});function Ko(e){var t=e.children,n=(0,I.useRef)(null);return n.current===null&&(n.current=document.createElement(`div`),n.current.setAttribute(`id`,`___reactour`)),(0,I.useEffect)(function(){return document.body.appendChild(n.current),function(){document.body.removeChild(n.current)}},[n]),(0,Le.createPortal)(t,n.current)}var qo={disableFocusLock:W.default.bool,badgeContent:W.default.func,highlightedMaskClassName:W.default.string,children:W.default.oneOfType([W.default.node,W.default.element]),className:W.default.string,closeButtonAriaLabel:W.default.string,closeWithMask:W.default.bool,inViewThreshold:W.default.number,isOpen:W.default.bool.isRequired,lastStepNextButton:W.default.node,maskClassName:W.default.string,maskSpace:W.default.number,nextButton:W.default.node,onAfterOpen:W.default.func,onBeforeClose:W.default.func,onRequestClose:W.default.func,prevButton:W.default.node,scrollDuration:W.default.number,scrollOffset:W.default.number,showButtons:W.default.bool,showCloseButton:W.default.bool,showNavigation:W.default.bool,showNavigationNumber:W.default.bool,showNumber:W.default.bool,startAt:W.default.number,goToStep:W.default.number,getCurrentStep:W.default.func,nextStep:W.default.func,prevStep:W.default.func,steps:W.default.arrayOf(W.default.shape({selector:W.default.string,content:W.default.oneOfType([W.default.node,W.default.element,W.default.func]).isRequired,position:W.default.oneOfType([W.default.arrayOf(W.default.number),W.default.oneOf([`top`,`right`,`bottom`,`left`,`center`])]),action:W.default.func,style:W.default.object,stepInteraction:W.default.bool,navDotAriaLabel:W.default.string,roundedStep:W.default.bool})),update:W.default.string,updateDelay:W.default.number,disableInteraction:W.default.bool,disableDotsNavigation:W.default.bool,disableKeyboardNavigation:W.default.oneOfType([W.default.arrayOf(W.default.oneOf([`esc`,`right`,`left`])),W.default.bool]),rounded:W.default.number,accentColor:W.default.string,highlightedBorder:W.default.shape({color:W.default.string.isRequired,width:W.default.number.isRequired})},Jo={disableFocusLock:!1,showNavigation:!0,showNavigationNumber:!0,showButtons:!0,showCloseButton:!0,closeButtonAriaLabel:`Close`,showNumber:!0,scrollDuration:1,maskSpace:10,updateDelay:1,disableInteraction:!1,rounded:0,accentColor:`#007aff`,closeWithMask:!0},Yo={mask:{base:`reactour__mask`,isOpen:`reactour__mask--is-open`,disableInteraction:`reactour__mask--disable-interaction`},helper:{base:`reactour__helper`,isOpen:`reactour__helper--is-open`},dot:{base:`reactour__dot`,active:`reactour__dot--is-active`}},Xo=function(e){function t(){var e;return qa(this,t),e=Ka(this,t),X(e,`unlockFocus`,function(t){e.setState({focusUnlocked:!0},t())}),X(e,`showStep`,function(){if(!(!e.helper||!e.helper.current)){var t=e.props.steps,n=e.state,r=n.current;n.focusUnlocked&&e.setState({focusUnlocked:!1});var i=t[r],a=i.selector?document.querySelector(i.selector):null,o=function(t){i.action&&typeof i.action==`function`&&e.unlockFocus(function(){return i.action(t)})};if(i.observe){var s=document.querySelector(i.observe),c={attributes:!0,childList:!0,characterData:!0}
762;e.setState(function(t){return t.observer&&setTimeout(function(){t.observer.disconnect()},0),{observer:new MutationObserver(function(t){t.forEach(function(t){if(t.type===`childList`&&t.addedNodes.length>0){var n=function(){return o(t.addedNodes[0])};setTimeout(function(){return e.calculateNode(t.addedNodes[0],i,n)},100)}else t.type===`childList`&&t.removedNodes.length>0&&e.calculateNode(a,i,function(){return o(a)})})})}},function(){return e.state.observer.observe(s,c)})}else e.state.observer&&(e.state.observer.disconnect(),e.setState({observer:null}));a?e.calculateNode(a,i,function(){return o(a)}):(e.setState(Zo(null,i,e.helper.current),o),i.selector&&console.warn(`Doesn't find a DOM node '${i.selector}'. Please check the 'steps' Tour prop Array at position ${r}.`))}}),X(e,`calculateNode`,function(t,n,r){var i=e.props,a=i.scrollDuration,o=i.inViewThreshold,s=i.scrollOffset,c=wo(t,n),l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(To(ro(ro({},c),{},{w:l,h:u,threshold:o})))e.setState(Zo(t,n,e.helper.current),r);else{var d=(0,Cr.default)(t),f=s||(c.height>u?-25:-(u/2)+c.height/2);Sr.default.to(t,{context:Eo(d)?window:d,duration:a,offset:f,callback:function(t){e.setState(Zo(t,n,e.helper.current),r)}})}}),X(e,`recalculateNode`,function(t){var n=document.querySelector(t.selector),r=function(n){t.action&&typeof t.action==`function`&&e.unlockFocus(function(){return t.action(n)})};e.calculateNode(n,t,function(){return r(n)})}),X(e,`maskClickHandler`,function(t){var n=e.props,r=n.closeWithMask,i=n.onRequestClose;r&&!t.target.classList.contains(Yo.mask.disableInteraction)&&i(t)}),X(e,`nextStep`,function(){var t=e.props,n=t.steps,r=t.getCurrentStep;e.setState(function(e){var t=e.current<n.length-1?e.current+1:e.current;return typeof r==`function`&&r(t),{current:t}},e.showStep)}),X(e,`prevStep`,function(){var t=e.props.getCurrentStep;e.setState(function(e){var n=e.current>0?e.current-1:e.current;return typeof t==`function`&&t(n),{current:n}},e.showStep)}),X(e,`gotoStep`,function(t){var n=e.props,r=n.steps,i=n.getCurrentStep;e.setState(function(e){var n=r[t]?t:e.current;return typeof i==`function`&&i(n),{current:n}},e.showStep)}),X(e,`keyDownHandler`,function(t){var n=e.props,r=n.onRequestClose,i=n.nextStep,a=n.prevStep,o=n.disableKeyboardNavigation;if(t.stopPropagation(),o!==!0){var s,c,l;o&&(s=o.includes(`esc`),c=o.includes(`right`),l=o.includes(`left`)),t.keyCode===27&&!s&&(t.preventDefault(),r()),t.keyCode===39&&!c&&(t.preventDefault(),typeof i==`function`?i():e.nextStep()),t.keyCode===37&&!l&&(t.preventDefault(),typeof a==`function`?a():e.prevStep())}}),e.state={isOpen:!1,current:0,top:0,right:0,bottom:0,left:0,width:0,height:0,w:0,h:0,inDOM:!1,observer:null,focusUnlocked:!1},e.helper=(0,I.createRef)(),e.helperElement=null,e.debouncedShowStep=(0,wr.default)(e.showStep,70),e}return Qa(t,e),Ya(t,[{key:`componentDidMount`,value:function(){var e=this.props,t=e.isOpen,n=e.startAt;t&&this.open(n)}},{key:`UNSAFE_componentWillReceiveProps`,value:function(e){var t=this.props,n=t.isOpen,r=t.update,i=t.updateDelay;!n&&e.isOpen?this.open(e.startAt):n&&!e.isOpen&&this.close(),n&&r!==e.update&&(e.steps[this.state.current]?setTimeout(this.showStep,i):this.props.onRequestClose()),n&&e.isOpen&&this.state.current!==e.goToStep&&this.gotoStep(e.goToStep)}},{key:`componentWillUnmount`,value:function(){this.props.isOpen&&this.close(),this.state.observer&&this.state.observer.disconnect()}},{key:`open`,value:function(e){var t=this,n=this.props.onAfterOpen;this.setState(function(t){return{isOpen:!0,current:e===void 0?t.current:e}},function(){setTimeout(t.showStep,1),t.helperElement=t.helper.current,t.props.disableFocusLock||t.helper.current.focus(),n&&n(t.helperElement)}),window.addEventListener(`resize`,this.debouncedShowStep,!1),window.addEventListener(`keydown`,this.keyDownHandler,!1)}},{key:`close`,value:function(){this.setState(function(e){return e.observer&&e.observer.disconnect(),{isOpen:!1,observer:null}},this.onBeforeClose),window.removeEventListener(`resize`,this.debouncedShowStep),window.removeEventListener(`ke
762ydown`,this.keyDownHandler)}},{key:`onBeforeClose`,value:function(){var e=this.props.onBeforeClose;e&&e(this.helperElement)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.className,r=t.steps,i=t.maskClassName,a=t.showButtons,o=t.showCloseButton,s=t.closeButtonAriaLabel,c=t.showNavigation,l=t.showNavigationNumber,u=t.showNumber,d=t.onRequestClose,f=t.maskSpace,p=t.lastStepNextButton,m=t.nextButton,h=t.prevButton,g=t.badgeContent,_=t.highlightedMaskClassName,v=t.disableInteraction,y=t.disableDotsNavigation,b=t.nextStep,x=t.prevStep,S=t.rounded,C=t.accentColor,w=t.CustomHelper,T=t.disableFocusLock,E=t.highlightedBorder,D=this.state,ee=D.isOpen,O=D.current,k=D.inDOM,A=D.top,te=D.right,j=D.bottom,M=D.left,N=D.width,P=D.height,ne=D.w,re=D.h,ie=D.helperWidth,ae=D.helperHeight,oe=D.helperPosition;return ee?I.createElement(Ko,null,I.createElement(fo,null),I.createElement(Wo,{step:r[O],refresh:function(){return e.recalculateNode(r[O])}}),I.createElement(Go,{step:r[O],refresh:function(){return e.recalculateNode(r[O])}}),I.createElement(Uo,{onClick:this.maskClickHandler,forwardRef:function(t){return e.mask=t},windowWidth:ne,windowHeight:re,targetWidth:N,targetHeight:P,targetTop:A,targetLeft:M,padding:f,rounded:S,roundedStep:r[O].roundedStep,className:i,disableInteraction:r[O].stepInteraction===!1||v?!r[O].stepInteraction:v,disableInteractionClassName:`${Yo.mask.disableInteraction} ${_}`,highlightedBorder:E}),I.createElement(Ha,{disabled:T,autoFocus:!1},I.createElement(Mo,{ref:this.helper,targetHeight:P,targetWidth:N,targetTop:A,targetRight:te,targetBottom:j,targetLeft:M,windowWidth:ne,windowHeight:re,helperWidth:ie,helperHeight:ae,helperPosition:oe,padding:f,tabIndex:-1,current:O,style:r[O].style?r[O].style:{},rounded:S,className:(0,xr.default)(Yo.helper.base,n,X({},Yo.helper.isOpen,ee)),accentColor:C,defaultStyles:!w,role:`dialog`},w?I.createElement(w,{current:O,totalSteps:r.length,gotoStep:this.gotoStep,close:d,content:r[O]&&(typeof r[O].content==`function`?r[O].content({close:d,goTo:this.gotoStep,inDOM:k,step:O+1}):r[O].content)},this.props.children):I.createElement(I.Fragment,null,this.props.children,r[O]&&(typeof r[O].content==`function`?r[O].content({close:d,goTo:this.gotoStep,inDOM:k,step:O+1}):r[O].content),u&&I.createElement(Po,{"data-tour-elem":`badge`,accentColor:C},typeof g==`function`?g(O+1,r.length):O+1),(a||c)&&I.createElement(Io,{"data-tour-elem":`controls`},a&&I.createElement(yo,{onClick:typeof x==`function`?x:this.prevStep,disabled:O===0,label:h||null}),c&&I.createElement(Ro,{"data-tour-elem":`navigation`},r.map(function(t,n){return I.createElement(Bo,{key:`${t.selector?t.selector:`undef`}_${n}`,onClick:function(){return e.gotoStep(n)},current:O,index:n,accentColor:C,disabled:O===n||y,showNumber:l,"data-tour-elem":`dot`,className:(0,xr.default)(Yo.dot.base,X({},Yo.dot.active,O===n)),"aria-label":t.navDotAriaLabel})})),a&&I.createElement(yo,{onClick:O===r.length-1?p?d:function(){}:typeof b==`function`?b:this.nextStep,disabled:!p&&O===r.length-1,inverted:!0,label:p&&O===r.length-1?p:m||null})),o&&I.createElement(So,{onClick:d,className:`reactour__close`,ariaLabel:s}))))):null}}])}(I.Component),Zo=function(e,t,n){if(n){var r=Math.max(document.documentElement.clientWidth,window.innerWidth||0),i=Math.max(document.documentElement.clientHeight,window.innerHeight||0),a=Co(n),o=a.width,s=a.height,c={top:i+10,right:r/2+9,bottom:i/2+9,left:r/2-o/2,width:0,height:0,w:r,h:i,helperPosition:`center`};return e&&(c=wo(e,t)),function(){return ro(ro({w:r,h:i,helperWidth:o,helperHeight:s,helperPosition:t.position},c),{},{inDOM:!!e})}}};Xo.propTypes=qo,Xo.defaultProps=Jo;var Qo=({stepKey:e,nextButton:t,prevButton:r})=>{let{currentStep:a,steps:o,prevStep:s,finishStep:l}=fs(),u=w($o);return(0,L.jsxs)(i,{w:12,px:5,py:2,mt:`-1px`,bg:`inverse.500`,justifyContent:`space-between`,alignItems:`center`,children:[o.length>1&&(0,L.jsxs)(c,{appearance:`microtext1`,colorScheme:`inverse.contrastText`,children:[a+1,` `,u.of,` `,o.length]}),(0,L.jsxs)(i,{sx:{gap:`8px`},children:[a>=1&&(0,L.jsx)(n,{sx:{paddingInline:`20px`},onClick:()=>{s?.(),r?.onClick?.()}
762,size:`sm`,appearance:`text`,colorScheme:`light`,children:r?.text||u.back}),(0,L.jsx)(n,{sx:{paddingInline:`20px`},onClick:()=>{t?.onClick?.(),l(e)},size:`sm`,colorScheme:`light`,children:t?.text||(a<o.length-1?u.next:u.done)})]})]})},$o={en:{of:`of`,back:`Back`,next:`Next`,done:`Done`},pt:{of:`de`,back:`Voltar`,next:`Próximo`,done:`Finalizado`}},es=({title:e,onClose:t})=>(0,L.jsxs)(i,{w:12,px:5,py:3,flexWrap:`nowrap`,justifyContent:`space-between`,alignItems:`center`,children:[(0,L.jsxs)(c,{appearance:`body2`,colorScheme:`inverse.contrastText`,weight:`medium`,children:[` `,e,` `]}),(0,L.jsx)(A,{onClick:t,sx:{r:`full`,p:0},children:(0,L.jsx)(r,{size:`xs`,colorIcon:`inverse.contrastText`,children:(0,L.jsx)(D,{})})})]}),ts=({title:e,stepKey:t,customNavigation:n,position:r=`bottom`,top:i,right:a,children:o})=>{let{closeTour:s}=fs();return(0,L.jsxs)(ns,{$position:r,$top:i,$right:a,children:[(0,L.jsx)(es,{title:e,onClose:()=>s()}),o,(0,L.jsx)(Qo,{stepKey:t,...n||{}})]})},ns=g.div` 763 position: relative; 764 width: 100%; 765 background-color: ${u.color.inverse[500]}; 766 &::after { 767 content: ''; 768 position: absolute; 769 border-width: 10px; 770 border-style: solid; 771 border-color: transparent; 772 border-right-color: ${u.color.inverse[500]}; 773 ${({$position:e,$top:t})=>e===`right`?` 774 top: ${t||`16px`}; 775 right: 100%; 776 `:``} 777 ${({$position:e,$right:t})=>e===`top`?` 778 top: 100%; 779 right: ${t||`16px`}; 780 transform: rotate(-90deg); 781 `:``} 782 ${({$position:e,$top:t})=>e===`left`?` 783 top: ${t||`16px`}; 784 left: 100%; 785 transform: rotate(180deg); 786 `:``} 787 ${({$position:e,$right:t})=>e===`bottom`?` 788 bottom: 100%; 789 right: ${t||`16px`}; 790 transform: rotate(90deg); 791 `:``} 792 } 793`,rs=`guided-tour-global`,is=new Date;is.setFullYear(new Date().getFullYear()+1);var as=()=>{let e=Se(rs);return e?e.split(`,`):[]},os=e=>{let t=as();t.includes(e)||t.push(e),xe(rs,t.toString(),{expires:is.toUTCString()})},ss=e=>!cs(`${e.selector}`),cs=e=>{let t=as();return t.includes(e)||t[0]===`disabled`},ls=({selector:e,position:t,title:n,content:r,style:i,right:a,top:o,customNavigation:s,...c})=>({selector:e,content:(0,L.jsx)(ts,{stepKey:e,position:t,right:a,top:o,title:n,customNavigation:s,children:r}),position:t,style:{backgroundColor:u.color.inverse[500],width:`256px`,padding:0,top:[`right`,`left`].includes(t)?`-3px`:`0`,...i||{}},...c||{}}),us=Object.freeze({steps:[],isOpen:!0,onRequestClose:()=>``,showButtons:!1,showNavigation:!1,showNavigationNumber:!1,showNumber:!1,showCloseButton:!1,disableFocusLock:!0}),ds=new class{constructor(){Object.defineProperty(this,"_steps",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_currentStep",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"observers",{enumerable:!0,configurable:!0,writable:!0,value:[]})}get config(){return{...us,goToStep:this._currentStep,update:`${this._currentStep}`,steps:this._steps,isOpen:!!this._steps.length&&this._currentStep<this._steps.length,currentStep:this._currentStep,nextStep:()=>this.nextStep(),prevStep:()=>this.prevStep(),finishStep:e=>this.finishStep(e),addStep:e=>this.addStep(e),closeTour:()=>this.closeTour()}}get currentStep(){return this._currentStep}get steps(){return this._steps}addStep(e){this.addRawStep(ls(e))}addRawStep(e){!this._steps.some(t=>t.selector==e.selector)&&ss(e)&&(this._steps=[...this._steps,e],this.notify())}nextStep(){this._currentStep+=1,this.notify()}prevStep(){--this._currentStep,this.notify()}finishStep(e){os(e),this.nextStep()}closeTour(){this.steps.forEach(e=>e.selector&&os(e.selector)),this._currentStep=this.steps.length,this.notify()}subscribe(e){return this.observers.push(e),this.notify(),()=>this.pullListener(e)}pullListener(e){this.observers=this.observers.filter(t=>t!==e)}notify(){this.observers.forEach(e=>e(this.config))}},fs=()=>{let[e,t]=(0,I.useState)(ds.config);return(0,I.useEffect)(()=>ds.subscribe(e=>{t(e)}),[]),e},ps=()=>new Promise((e,t)=>{let n=document.createElement(`script`);n.setAttribute(`src`,`//embed.typeform.com/next/embed.js`),n.setAttribute(`async`,`true`),n.onload=()=>e(),n.onerror=e=>t(e),document.body.appendChild(n)});function ms(){let e=async()=>{await ps()};me(()=>{e()})}var hs=()=>{let{currentStep:e,addStep:t,finishStep:n,...r}=fs();return(0,L.jsx)(Xo,{...r})},$=class{static setDescriptionFunction(e){this.descriptionFunction=e}static setErrorHandler(e){this.errorHandler=e}static describe(e){return this.descriptionFunction(e)}static runErrorHandler(e){this.errorHandler?.(e)}};Object.defineProperty($,"descriptionFunction",{enumerable:!0,configurable:!0,writable:!0,value:e=>({message:e.message||`${e}`})});var gs=class extends I.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,...$.describe(e)}}componentDidCatch(e,t){console.error(e,t),$.runErrorHandler(e)}componentDidUpdate(e){this.props.children!==e.children&&this.setState({hasError:!1})}
793render(){return this.state.hasError?(0,L.jsx)(je,{code:this.state.code,message:this.state.message,debug:this.state.debug}):this.props.children}},_s=class extends I.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,...$.describe(e)}}componentDidCatch(e,t){console.error(e,t),$.runErrorHandler(e)}componentDidUpdate(e){this.props.children!==e.children&&this.setState({hasError:!1})}render(){return this.state.hasError?(0,L.jsx)(`div`,{title:this.state.message?`Error: ${this.state.message}`:void 0,style:{width:`16px`,height:`16px`,margin:`16px`,background:u.color.danger[500],color:u.color.danger.contrastText,display:this.state.debug?`flex`:`none`,justifyContent:`center`,alignItems:`center`,fontWeight:`bold`,fontSize:`10px`,borderRadius:`50%`},children:`!`}):this.props.children}},vs=({menuSections:e,menuContent:t,menuInnerContent:n,header:r,children:i,extra:a,errorDescriptor:o,onError:s,className:c,style:u})=>{let{bottomDialog:d,modal:f,rightPanel:m}=en.useOverlays();return(0,I.useEffect)(()=>{o&&$.setDescriptionFunction(o),s&&$.setErrorHandler(s)},[]),(0,I.useEffect)(()=>{let r=document.getElementById(R.layout)?.classList;if(!r)return;let i=!!t&&!!document.getElementById(R.menuContent)?.children.length,a=!!n&&!!document.getElementById(R.menuInnerContent)?.children.length;i?(r.add(`menu-content-visible`),r.contains(`menu-manual`)||r.add(`menu-compact`)):r.remove(`menu-content-visible`),a?r.add(`menu-inner-content-visible`):r.remove(`menu-inner-content-visible`),r[e?`remove`:`add`](`no-menu-sections`),c&&r.add(...c.split(/\s+/))},[t,n,e,c]),(0,L.jsxs)(l,{children:[(0,L.jsx)(hs,{}),(0,L.jsxs)(`div`,{id:R.layout,style:u,className:`menu-manual menu-compact`,children:[r&&(0,L.jsx)(`header`,{id:R.header,children:(0,L.jsx)(_s,{children:r})}),a&&(0,L.jsx)(_s,{children:a}),(0,L.jsxs)(`aside`,{id:R.menu,children:[n&&(0,L.jsx)(`nav`,{role:`menubar`,id:R.menuInnerContent,children:(0,L.jsx)(_s,{children:n})}),(0,L.jsx)(`nav`,{role:`menubar`,id:R.menuContent,children:(0,L.jsx)(_s,{children:t})}),e&&(0,L.jsx)(We,{sides:[`top`,`bottom`],scroll:`arrows`,children:(0,L.jsx)(`nav`,{role:`menubar`,id:R.menuSections,children:(0,L.jsx)(_s,{children:e})})})]}),i&&(0,L.jsx)(`div`,{id:R.page,children:(0,L.jsx)(`article`,{id:R.content,children:(0,L.jsx)(gs,{children:i})})}),(0,L.jsx)(`div`,{id:R.bottomDialog,role:`dialog`,children:(0,L.jsx)(gs,{children:d})}),(0,L.jsxs)(`div`,{id:R.backdrop,children:[(0,L.jsx)(`div`,{id:R.rightPanel,"aria-modal":!0,role:`dialog`,children:(0,L.jsx)(gs,{children:m.length===1&&!m[0].stack?m[0].element:m.map((e,t)=>(0,L.jsx)(`div`,{className:p([`right-panel-instance`,t===m.length-1&&`active`,f.length>0&&`disabled`]),...f.length>0?{inert:!0}:{},children:e.element},t))})}),(0,L.jsx)(`div`,{id:R.modal,"aria-modal":!0,role:`dialog`,children:(0,L.jsx)(gs,{children:f.length===1&&!f[0].stack?f[0].element:f.map((e,t)=>(0,L.jsx)(`div`,{className:p([`modal-instance`,t===f.length-1&&`active`]),children:e.element},t))})})]}),(0,L.jsx)(Wt,{}),(0,L.jsx)(`div`,{id:R.accessibilityAnnouncer,"aria-atomic":!0,"aria-live":`assertive`})]})]})};export{Re as S,ct as _,Br as a,Qe as b,Zn as c,Hn as d,Ln as f,z as g,Qt as h,as as i,Un as l,en as m,ms as n,Or as o,En as p,fs as r,Xn as s,vs as t,Vn as u,ot as v,We as x,et as y};
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.