@seeqdev/qomponents 0.0.245-beta.f05669edec.20260908 → 0.0.246-beta.970c2728b5.20261002

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/index.esm.js +46 -46
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +69 -69
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/Accordion/Accordion.d.ts +2 -2
  6. package/dist/src/Alert/Alert.d.ts +2 -2
  7. package/dist/src/Badge/Badge.d.ts +7 -2
  8. package/dist/src/Badge/Badge.types.d.ts +5 -0
  9. package/dist/src/Button/Button.d.ts +2 -2
  10. package/dist/src/ButtonGroup/ButtonGroup.d.ts +2 -2
  11. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.d.ts +3 -3
  12. package/dist/src/ButtonWithPopover/ButtonWithPopover.d.ts +2 -2
  13. package/dist/src/Carousel/Carousel.d.ts +2 -2
  14. package/dist/src/Checkbox/Checkbox.d.ts +2 -2
  15. package/dist/src/Collapse/Collapse.d.ts +2 -2
  16. package/dist/src/ColorPickerControl/ColorPickerControl.d.ts +2 -2
  17. package/dist/src/EditorPanel/EditorPanel.d.ts +2 -2
  18. package/dist/src/ExternalLink/ExternalLink.d.ts +2 -2
  19. package/dist/src/InputGroup/InputGroup.d.ts +2 -2
  20. package/dist/src/LoadingIndicator/LoadingIndicator.d.ts +2 -2
  21. package/dist/src/Modal/Modal.d.ts +3 -2
  22. package/dist/src/Modal/Modal.types.d.ts +2 -0
  23. package/dist/src/Pill/Pill.d.ts +2 -2
  24. package/dist/src/ProgressBar/ProgressBar.d.ts +2 -2
  25. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.d.ts +2 -2
  26. package/dist/src/SeeqActionDropdown/variants.d.ts +4 -4
  27. package/dist/src/SegmentedControl/SegmentedControl.d.ts +2 -2
  28. package/dist/src/Select/Select.d.ts +2 -2
  29. package/dist/src/Slider/Slider.d.ts +2 -2
  30. package/dist/src/SvgIcon/SvgIcon.d.ts +2 -2
  31. package/dist/src/Tabs/Tabs.d.ts +2 -2
  32. package/dist/src/TextField/TextField.d.ts +3 -3
  33. package/dist/src/ToolbarButton/ToolbarButton.d.ts +2 -2
  34. package/dist/src/Tooltip/Qtip.d.ts +2 -2
  35. package/dist/src/Tooltip/Tooltip.d.ts +2 -2
  36. package/dist/src/TriggerWithDropdown/TriggerWithDropdown.d.ts +5 -2
  37. package/dist/src/TriggerWithDropdown/TriggerWithDropdown.types.d.ts +19 -17
  38. package/dist/styles.css +47 -0
  39. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -1083,12 +1083,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1083
1083
  }`;function Ma(){var e=Li,t=Ri,n=K.cssPrefix,r=K.replacementClass,i=ja;if(n!==e||r!==t){var a=RegExp(`\\.${e}\\-`,`g`),o=RegExp(`\\--${e}\\-`,`g`),s=RegExp(`\\.${t}`,`g`);i=i.replace(a,`.${n}-`).replace(o,`--${n}-`).replace(s,`.${r}`)}return i}var Na=!1;function Pa(){K.autoAddCss&&!Na&&(ba(Ma()),Na=!0)}var Fa={mixout:function(){return{dom:{css:Ma,insertCss:Pa}}},hooks:function(){return{beforeDOMElementCreation:function(){Pa()},beforeI2svg:function(){Pa()}}}},Ia=tn||{};Ia[Fi]||(Ia[Fi]={}),Ia[Fi].styles||(Ia[Fi].styles={}),Ia[Fi].hooks||(Ia[Fi].hooks={}),Ia[Fi].shims||(Ia[Fi].shims=[]);var La=Ia[Fi],Ra=[],za=function(){G.removeEventListener(`DOMContentLoaded`,za),Ba=1,Ra.map(function(e){return e()})},Ba=!1;an&&(Ba=(G.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(G.readyState),Ba||G.addEventListener(`DOMContentLoaded`,za));function Va(e){an&&(Ba?setTimeout(e,0):Ra.push(e))}function Ha(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,a=i===void 0?[]:i;return typeof e==`string`?Ta(e):`<${t} ${Ea(r)}>${a.map(Ha).join(``)}</${t}>`}function Ua(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Wa=function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}},Ga=function(e,t,n,r){var i=Object.keys(e),a=i.length,o=r===void 0?t:Wa(t,r),s,c,l;for(n===void 0?(s=1,l=e[i[0]]):(s=0,l=n);s<a;s++)c=i[s],l=o(l,e[c],c,e);return l};function Ka(e){return Ht(e).length===1?e.codePointAt(0).toString(16):null}function qa(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function Ja(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,a=qa(t);typeof La.hooks.addPack==`function`&&!i?La.hooks.addPack(e,qa(t)):La.styles[e]=W(W({},La.styles[e]||{}),a),e===`fas`&&Ja(`fa`,t)}var Ya=La.styles,Xa=La.shims,Za=Object.keys(ta),Qa=Za.reduce(function(e,t){return e[t]=Object.keys(ta[t]),e},{}),$a=null,eo={},to={},no={},ro={},io={};function ao(e){return~la.indexOf(e)}function oo(e,t){var n=t.split(`-`),r=n[0],i=n.slice(1).join(`-`);return r===e&&i!==``&&!ao(i)?i:null}var so=function(){var e=function(e){return Ga(Ya,function(t,n,r){return t[r]=Ga(n,e,{}),t},{})};eo=e(function(e,t,n){if(t[3]&&(e[t[3]]=n),t[2]){var r=t[2].filter(function(e){return typeof e==`number`});r.forEach(function(t){e[t.toString(16)]=n})}return e}),to=e(function(e,t,n){if(e[n]=n,t[2]){var r=t[2].filter(function(e){return typeof e==`string`});r.forEach(function(t){e[t]=n})}return e}),io=e(function(e,t,n){var r=t[2];return e[n]=n,r.forEach(function(t){e[t]=n}),e});var t=`far`in Ya||K.autoFetchSvg,n=Ga(Xa,function(e,n){var r=n[0],i=n[1],a=n[2];return i===`far`&&!t&&(i=`fas`),typeof r==`string`&&(e.names[r]={prefix:i,iconName:a}),typeof r==`number`&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e},{names:{},unicodes:{}});no=n.names,ro=n.unicodes,$a=_o(K.styleDefault,{family:K.familyDefault})};_a(function(e){$a=_o(e.styleDefault,{family:K.familyDefault})}),so();function co(e,t){return(eo[e]||{})[t]}function lo(e,t){return(to[e]||{})[t]}function uo(e,t){return(io[e]||{})[t]}function fo(e){return no[e]||{prefix:null,iconName:null}}function po(e){var t=ro[e],n=co(`fas`,e);return t||(n?{prefix:`fas`,iconName:n}:null)||{prefix:null,iconName:null}}function mo(){return $a}var ho=function(){return{prefix:null,iconName:null,rest:[]}};function go(e){var t=pn,n=Za.reduce(function(e,t){return e[t]=`${K.cssPrefix}-${t}`,e},{});return sr.forEach(function(r){(e.includes(n[r])||e.some(function(e){return Qa[r].includes(e)}))&&(t=r)}),t}function _o(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?pn:n,i=Zi[r][e];if(r===mn&&!e)return`fad`;var a=$i[r][e]||$i[r][i],o=e in La.styles?e:null,s=a||o||null;return s}function vo(e){var t=[],n=null;return e.forEach(function(e){var r=oo(K.cssPrefix,e);r?n=r:e&&t.push(e)}),{iconName:n,rest:t}}function yo(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var bo=Oi.concat(fr);function xo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,a=yo(e.filter(function(e){return bo.includes(e)})),o=yo(e.filter(function(e){return!bo.includes(e)})),s=a.filter(function(e){return i=e,!fn.includes(e)}),c=Vt(s,1),l=c[0],u=l===void 0?null:l,d=go(a),f=W(W({},vo(o)),{},{prefix:_o(u,{family:d})});return W(W(W({},f),To({values:e,family:d,styles:Ya,config:K,canonical:f,givenPrefix:i})),So(r,i,f))}function So(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var a=t===`fa`?fo(i):{},o=uo(r,i);return i=a.iconName||o||i,r=a.prefix||r,r===`far`&&!Ya.far&&Ya.fas&&!K.autoFetchSvg&&(r=`fas`),{prefix:r,iconName:i}}var Co=sr.filter(function(e){return e!==pn||e!==mn}),wo=Object.keys(Ei).filter(function(e){return e!==pn}).map(function(e){return Object.keys(Ei[e])}).flat();function To(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,a=i===void 0?``:i,o=e.styles,s=o===void 0?{}:o,c=e.config,l=c===void 0?{}:c,u=n===mn,d=t.includes(`fa-duotone`)||t.includes(`fad`),f=l.familyDefault===`duotone`,p=r.prefix===`fad`||r.prefix===`fa-duotone`;if(!u&&(d||f||p)&&(r.prefix=`fad`),(t.includes(`fa-brands`)||t.includes(`fab`))&&(r.prefix=`fab`),!r.prefix&&Co.includes(n)){var m=Object.keys(s).find(function(e){return wo.includes(e)});if(m||l.autoFetchSvg){var h=ur.get(n).defaultShortPrefixId;r.prefix=h,r.iconName=uo(r.prefix,r.iconName)||r.iconName}}return(r.prefix===`fa`||a===`fa`)&&(r.prefix=mo()||`fas`),r}var Eo=function(){function e(){Mt(this,e),this.definitions={}}return Pt(e,[{key:`add`,value:function(){var e=this,t=[...arguments],n=t.reduce(this._pullDefinitions,{});Object.keys(n).forEach(function(t){e.definitions[t]=W(W({},e.definitions[t]||{}),n[t]),Ja(t,n[t]);var r=ta[pn][t];r&&Ja(r,n[t]),so()})}},{key:`reset`,value:function(){this.definitions={}}},{key:`_pullDefinitions`,value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var r=n[t],i=r.prefix,a=r.iconName,o=r.icon,s=o[2];e[i]||(e[i]={}),s.length>0&&s.forEach(function(t){typeof t==`string`&&(e[i][t]=o)}),e[i][a]=o}),e}}])}(),Do=[],Oo={},ko={},Ao=Object.keys(ko);function jo(e,t){var n=t.mixoutsTo;return Do=e,Oo={},Object.keys(ko).forEach(function(e){Ao.indexOf(e)===-1&&delete ko[e]}),Do.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){typeof t[e]==`function`&&(n[e]=t[e]),Gt(t[e])===`object`&&Object.keys(t[e]).forEach(function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]})}),e.hooks){var r=e.hooks();Object.keys(r).forEach(function(e){Oo[e]||(Oo[e]=[]),Oo[e].push(r[e])})}e.provides&&e.provides(ko)}),n}function Mo(e,t){var n=[...arguments].slice(2),r=Oo[e]||[];return r.forEach(function(e){t=e.apply(null,[t].concat(n))}),t}function No(e){var t=[...arguments].slice(1),n=Oo[e]||[];n.forEach(function(e){e.apply(null,t)})}function Po(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ko[e]?ko[e].apply(null,t):void 0}function Fo(e){e.prefix===`fa`&&(e.prefix=`fas`);var t=e.iconName,n=e.prefix||mo();if(t)return t=uo(n,t)||t,Ua(Io.definitions,n,t)||Ua(La.styles,n,t)}var Io=new Eo,Lo=function(){K.autoReplaceSvg=!1,K.observeMutations=!1,No(`noAuto`)},Ro={i2svg:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return an?(No(`beforeI2svg`,e),Po(`pseudoElements2svg`,e),Po(`i2svg`,e)):Promise.reject(Error(`Operation requires a DOM of some kind.`))},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot;K.autoReplaceSvg===!1&&(K.autoReplaceSvg=!0),K.observeMutations=!0,Va(function(){Vo({autoReplaceSvgRoot:t}),No(`watch`,e)})}},zo={icon:function(e){if(e===null)return null;if(Gt(e)===`object`&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:uo(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){var t=e[1].indexOf(`fa-`)===0?e[1].slice(3):e[1],n=_o(e[0]);return{prefix:n,iconName:uo(n,t)||t}}if(typeof e==`string`&&(e.indexOf(`${K.cssPrefix}-`)>-1||e.match(ra))){var r=xo(e.split(` `),{skipLookups:!0});return{prefix:r.prefix||mo(),iconName:uo(r.prefix,r.iconName)||r.iconName}}if(typeof e==`string`){var i=mo();return{prefix:i,iconName:uo(i,e)||e}}}},Bo={noAuto:Lo,config:K,dom:Ro,parse:zo,library:Io,findIconDefinition:Fo,toHtml:Ha},Vo=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot,n=t===void 0?G:t;(Object.keys(La.styles).length>0||K.autoFetchSvg)&&an&&K.autoReplaceSvg&&Bo.dom.i2svg({node:n})};function Ho(e,t){return Object.defineProperty(e,`abstract`,{get:t}),Object.defineProperty(e,`html`,{get:function(){return e.abstract.map(function(e){return Ha(e)})}}),Object.defineProperty(e,`node`,{get:function(){if(an){var t=G.createElement(`div`);return t.innerHTML=e.html,t.children}}}),e}function Uo(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(Oa(o)&&n.found&&!r.found){var s=n.width,c=n.height,l={x:s/c/2,y:.5};i.style=Da(W(W({},a),{},{"transform-origin":`${l.x+o.x/16}em ${l.y+o.y/16}em`}))}return[{tag:`svg`,attributes:i,children:t}]}function Wo(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=a===!0?`${t}-${K.cssPrefix}-${n}`:a;return[{tag:`svg`,attributes:{style:`display: none;`},children:[{tag:`symbol`,attributes:W(W({},i),{},{id:o}),children:r}]}]}function Go(e){var t=[`aria-label`,`aria-labelledby`,`title`,`role`];return t.some(function(t){return t in e})}function Ko(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,c=e.maskId,l=e.extra,u=e.watchable,d=u===void 0?!1:u,f=r.found?r:n,p=f.width,m=f.height,h=[K.replacementClass,a?`${K.cssPrefix}-${a}`:``].filter(function(e){return l.classes.indexOf(e)===-1}).filter(function(e){return e!==``||!!e}).concat(l.classes).join(` `),g={children:[],attributes:W(W({},l.attributes),{},{"data-prefix":i,"data-icon":a,class:h,role:l.attributes.role||`img`,viewBox:`0 0 ${p} ${m}`})};!Go(l.attributes)&&!l.attributes[`aria-hidden`]&&(g.attributes[`aria-hidden`]=`true`),d&&(g.attributes[zi]=``);var _=W(W({},g),{},{prefix:i,iconName:a,main:n,mask:r,maskId:c,transform:o,symbol:s,styles:W({},l.styles)}),v=r.found&&n.found?Po(`generateAbstractMask`,_)||{children:[],attributes:{}}:Po(`generateAbstractIcon`,_)||{children:[],attributes:{}},y=v.children,b=v.attributes;return _.children=y,_.attributes=b,s?Wo(_):Uo(_)}function qo(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.extra,o=e.watchable,s=o===void 0?!1:o,c=W(W({},a.attributes),{},{class:a.classes.join(` `)});s&&(c[zi]=``);var l=W({},a.styles);Oa(i)&&(l.transform=Aa({transform:i,startCentered:!0,width:n,height:r}),l[`-webkit-transform`]=l.transform);var u=Da(l);u.length>0&&(c.style=u);var d=[];return d.push({tag:`span`,attributes:c,children:[t]}),d}function Jo(e){var t=e.content,n=e.extra,r=W(W({},n.attributes),{},{class:n.classes.join(` `)}),i=Da(n.styles);i.length>0&&(r.style=i);var a=[];return a.push({tag:`span`,attributes:r,children:[t]}),a}var Yo=La.styles;function Xo(e){var t=e[0],n=e[1],r=e.slice(4),i=Vt(r,1),a=i[0],o=null;return o=Array.isArray(a)?{tag:`g`,attributes:{class:`${K.cssPrefix}-${ca.GROUP}`},children:[{tag:`path`,attributes:{class:`${K.cssPrefix}-${ca.SECONDARY}`,fill:`currentColor`,d:a[0]}},{tag:`path`,attributes:{class:`${K.cssPrefix}-${ca.PRIMARY}`,fill:`currentColor`,d:a[1]}}]}:{tag:`path`,attributes:{fill:`currentColor`,d:a}},{found:!0,width:t,height:n,icon:o}}var Zo={found:!1,width:512,height:512};function Qo(e,t){!Ji&&!K.showMissingIcons&&e&&console.error(`Icon with name "${e}" and prefix "${t}" is missing.`)}function $o(e,t){var n=t;return t===`fa`&&K.styleDefault!==null&&(t=mo()),new Promise(function(r,i){if(n===`fa`){var a=fo(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Yo[t]&&Yo[t][e]){var o=Yo[t][e];return r(Xo(o))}Qo(e,t),r(W(W({},Zo),{},{icon:K.showMissingIcons&&e&&Po(`missingIconAbstract`)||{}}))})}var es=function(){},ts=K.measurePerformance&&rn&&rn.mark&&rn.measure?rn:{mark:es,measure:es},ns=`FA "7.3.1"`,rs=function(e){return ts.mark(`${ns} ${e} begins`),function(){return os(e)}},os=function(e){ts.mark(`${ns} ${e} ends`),ts.measure(`${ns} ${e}`,`${ns} ${e} begins`,`${ns} ${e} ends`)},ss={begin:rs,end:os},cs=function(){};function ls(e){var t=e.getAttribute?e.getAttribute(zi):null;return typeof t==`string`}function us(e){var t=e.getAttribute?e.getAttribute(Hi):null,n=e.getAttribute?e.getAttribute(Ui):null;return t&&n}function ds(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(K.replacementClass)}function fs(){if(K.autoReplaceSvg===!0)return _s.replace;var e=_s[K.autoReplaceSvg];return e||_s.replace}function ps(e){return G.createElementNS(`http://www.w3.org/2000/svg`,e)}function ms(e){return G.createElement(e)}function hs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag===`svg`?ps:ms:n;if(typeof e==`string`)return G.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(t){i.setAttribute(t,e.attributes[t])});var a=e.children||[];return a.forEach(function(e){i.appendChild(hs(e,{ceFn:r}))}),i}function gs(e){var t=` ${e.outerHTML} `;return t=`${t}Font Awesome fontawesome.com `,t}var _s={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(hs(e),t)}),t.getAttribute(zi)===null&&K.keepOriginalSource){var n=G.createComment(gs(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~wa(t).indexOf(K.replacementClass))return _s.replace(e);var r=RegExp(`${K.cssPrefix}-.*`);if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(` `).reduce(function(e,t){return t===K.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(` `),i.toNode.length===0?t.removeAttribute(`class`):t.setAttribute(`class`,i.toNode.join(` `))}var a=n.map(function(e){return Ha(e)}).join(`
1084
1084
  `);t.setAttribute(zi,``),t.innerHTML=a}};function vs(e){e()}function ys(e,t){var n=typeof t==`function`?t:cs;if(e.length===0)n();else{var r=vs;K.mutateApproach===Gi&&(r=tn.requestAnimationFrame||vs),r(function(){var t=fs(),r=ss.begin(`mutate`);e.map(t),r(),n()})}}var bs=!1;function xs(){bs=!0}function Ss(){bs=!1}var Cs=null;function ws(e){if(nn&&K.observeMutations){var t=e.treeCallback,n=t===void 0?cs:t,r=e.nodeCallback,i=r===void 0?cs:r,a=e.pseudoElementsCallback,o=a===void 0?cs:a,s=e.observeMutationsRoot,c=s===void 0?G:s;Cs=new nn(function(e){if(!bs){var t=mo();Ca(e).forEach(function(e){if(e.type===`childList`&&e.addedNodes.length>0&&!ls(e.addedNodes[0])&&(K.searchPseudoElements&&o(e.target),n(e.target)),e.type===`attributes`&&e.target.parentNode&&K.searchPseudoElements&&o([e.target],!0),e.type===`attributes`&&ls(e.target)&&~sa.indexOf(e.attributeName))if(e.attributeName===`class`&&us(e.target)){var r=xo(wa(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(Hi,a||t),s&&e.target.setAttribute(Ui,s)}else ds(e.target)&&i(e.target)})}}),an&&Cs.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Ts(){Cs&&Cs.disconnect()}function Es(e){var t=e.getAttribute(`style`),n=[];return t&&(n=t.split(`;`).reduce(function(e,t){var n=t.split(`:`),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(`:`).trim()),e},{})),n}function Ds(e){var t=e.getAttribute(`data-prefix`),n=e.getAttribute(`data-icon`),r=e.innerText===void 0?``:e.innerText.trim(),i=xo(wa(e));return i.prefix||=mo(),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix?i:(i.prefix&&r.length>0&&(i.iconName=lo(i.prefix,e.innerText)||co(i.prefix,Ka(e.innerText))),!i.iconName&&K.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data),i)}function Os(e){var t=Ca(e.attributes).reduce(function(e,t){return e.name!==`class`&&e.name!==`style`&&(e[t.name]=t.value),e},{});return t}function ks(){return{iconName:null,prefix:null,transform:ya,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function As(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Ds(e),r=n.iconName,i=n.prefix,a=n.rest,o=Os(e),s=Mo(`parseNodeAttributes`,{},e),c=t.styleParser?Es(e):[];return W({iconName:r,prefix:i,transform:ya,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:c,attributes:o}},s)}var js=La.styles;function Ms(e){var t=K.autoReplaceSvg===`nest`?As(e,{styleParser:!1}):As(e);return~t.extra.classes.indexOf(ia)?Po(`generateLayersText`,e,t):Po(`generateSvgReplacementMutation`,e,t)}function Ns(){return[].concat(Ht(fr),Ht(Oi))}function Ps(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!an)return Promise.resolve();var n=G.documentElement.classList,r=function(e){return n.add(`${Wi}-${e}`)},i=function(e){return n.remove(`${Wi}-${e}`)},a=K.autoFetchSvg?Ns():fn.concat(Object.keys(js));a.includes(`fa`)||a.push(`fa`);var o=[`.${ia}:not([${zi}])`].concat(a.map(function(e){return`.${e}:not([${zi}])`})).join(`, `);if(o.length===0)return Promise.resolve();var s=[];try{s=Ca(e.querySelectorAll(o))}catch{}if(s.length>0)r(`pending`),i(`complete`);else return Promise.resolve();var c=ss.begin(`onTree`),l=s.reduce(function(e,t){try{var n=Ms(t);n&&e.push(n)}catch(e){Ji||e.name===`MissingIcon`&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(l).then(function(n){ys(n,function(){r(`active`),r(`complete`),i(`pending`),typeof t==`function`&&t(),c(),e()})}).catch(function(e){c(),n(e)})})}function Fs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ms(e).then(function(e){e&&ys([e],t)})}function Is(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Fo(t||{}),i=n.mask;return i&&=(i||{}).icon?i:Fo(i||{}),e(r,W(W({},n),{},{mask:i}))}}var Ls=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?ya:n,i=t.symbol,a=i===void 0?!1:i,o=t.mask,s=o===void 0?null:o,c=t.maskId,l=c===void 0?null:c,u=t.classes,d=u===void 0?[]:u,f=t.attributes,p=f===void 0?{}:f,m=t.styles,h=m===void 0?{}:m;if(e){var g=e.prefix,_=e.iconName,v=e.icon;return Ho(W({type:`icon`},e),function(){return No(`beforeDOMElementCreation`,{iconDefinition:e,params:t}),Ko({icons:{main:Xo(v),mask:s?Xo(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:_,transform:W(W({},ya),r),symbol:a,maskId:l,extra:{attributes:p,styles:h,classes:d}})})}},Rs={mixout:function(){return{icon:Is(Ls)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Ps,e.nodeCallback=Fs,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=t===void 0?G:t,r=e.callback,i=r===void 0?function(){}:r;return Ps(n,i)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.prefix,i=t.transform,a=t.symbol,o=t.mask,s=t.maskId,c=t.extra;return new Promise(function(t,l){Promise.all([$o(n,r),o.iconName?$o(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(o){var l=Vt(o,2),u=l[0],d=l[1];t([e,Ko({icons:{main:u,mask:d},prefix:r,iconName:n,transform:i,symbol:a,maskId:s,extra:c,watchable:!0})])}).catch(l)})},e.generateAbstractIcon=function(e){var t=e.children,n=e.attributes,r=e.main,i=e.transform,a=e.styles,o=Da(a);o.length>0&&(n.style=o);var s;return Oa(i)&&(s=Po(`generateAbstractTransformGrouping`,{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},zs={mixout:function(){return{layer:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.classes,r=n===void 0?[]:n;return Ho({type:`layer`},function(){No(`beforeDOMElementCreation`,{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:`span`,attributes:{class:[`${K.cssPrefix}-layers`].concat(Ht(r)).join(` `)},children:n}]})}}}},Bs={mixout:function(){return{counter:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.title,r=n===void 0?null:n,i=t.classes,a=i===void 0?[]:i,o=t.attributes,s=o===void 0?{}:o,c=t.styles,l=c===void 0?{}:c;return Ho({type:`counter`,content:e},function(){return No(`beforeDOMElementCreation`,{content:e,params:t}),Jo({content:e.toString(),title:r,extra:{attributes:s,styles:l,classes:[`${K.cssPrefix}-layers-counter`].concat(Ht(a))}})})}}}},Vs={mixout:function(){return{text:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?ya:n,i=t.classes,a=i===void 0?[]:i,o=t.attributes,s=o===void 0?{}:o,c=t.styles,l=c===void 0?{}:c;return Ho({type:`text`,content:e},function(){return No(`beforeDOMElementCreation`,{content:e,params:t}),qo({content:e,transform:W(W({},ya),r),extra:{attributes:s,styles:l,classes:[`${K.cssPrefix}-layers-text`].concat(Ht(a))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,r=t.extra,i=null,a=null;if(on){var o=parseInt(getComputedStyle(e).fontSize,10),s=e.getBoundingClientRect();i=s.width/o,a=s.height/o}return Promise.resolve([e,qo({content:e.innerHTML,width:i,height:a,transform:n,extra:r,watchable:!0})])}}},Hs=RegExp(`"`,`ug`),Us=[1105920,1112319],Ws=W(W(W(W({},{FontAwesome:{normal:`fas`,400:`fas`}}),lr),Pi),br),Gs=Object.keys(Ws).reduce(function(e,t){return e[t.toLowerCase()]=Ws[t],e},{}),Ks=Object.keys(Gs).reduce(function(e,t){var n=Gs[t];return e[t]=n[900]||Ht(Object.entries(n))[0][1],e},{});function qs(e){var t=e.replace(Hs,``);return Ka(Ht(t)[0]||``)}function Js(e){var t=e.getPropertyValue(`font-feature-settings`).includes(`ss01`),n=e.getPropertyValue(`content`),r=n.replace(Hs,``),i=r.codePointAt(0),a=i>=Us[0]&&i<=Us[1],o=r.length===2?r[0]===r[1]:!1;return a||o||t}function Ys(e,t){var n=e.replace(/^['"]|['"]$/g,``).toLowerCase(),r=parseInt(t),i=isNaN(r)?`normal`:r;return(Gs[n]||{})[i]||Ks[n]}function Xs(e,t){var n=`${Vi}${t.replace(`:`,`-`)}`;return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var a=Ca(e.children),o=a.filter(function(e){return e.getAttribute(Bi)===t})[0],s=tn.getComputedStyle(e,t),c=s.getPropertyValue(`font-family`),l=c.match(aa),u=s.getPropertyValue(`font-weight`),d=s.getPropertyValue(`content`);if(o&&!l)return e.removeChild(o),r();if(l&&d!==`none`&&d!==``){var f=s.getPropertyValue(`content`),p=Ys(c,u),m=qs(f),h=l[0].startsWith(`FontAwesome`),g=Js(s),_=co(p,m),v=_;if(h){var y=po(m);y.iconName&&y.prefix&&(_=y.iconName,p=y.prefix)}if(_&&!g&&(!o||o.getAttribute(Hi)!==p||o.getAttribute(Ui)!==v)){e.setAttribute(n,v),o&&e.removeChild(o);var b=ks(),x=b.extra;x.attributes[Bi]=t,$o(_,p).then(function(i){var a=Ko(W(W({},b),{},{icons:{main:i,mask:ho()},prefix:p,iconName:v,extra:x,watchable:!0})),o=G.createElementNS(`http://www.w3.org/2000/svg`,`svg`);t===`::before`?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=a.map(function(e){return Ha(e)}).join(`
1085
1085
  `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function Zs(e){return Promise.all([Xs(e,`::before`),Xs(e,`::after`)])}function Qs(e){return e.parentNode!==document.head&&!~Ki.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Bi)&&(!e.parentNode||e.parentNode.tagName!==`svg`)}var $s=function(e){return!!e&&qi.some(function(t){return e.includes(t)})},ec=function(e){if(!e)return[];var t=new Set,n=e.split(/,(?![^()]*\))/).map(function(e){return e.trim()});n=n.flatMap(function(e){return e.includes(`(`)?e:e.split(`,`).map(function(e){return e.trim()})});var r=Ft(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if($s(a)){var o=qi.reduce(function(e,t){return e.replace(t,``)},a);o!==``&&o!==`*`&&t.add(o)}}}catch(e){r.e(e)}finally{r.f()}return t};function tc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(an){var n;if(t)n=e;else if(K.searchPseudoElementsFullScan)n=e.querySelectorAll(`*`);else{var r=new Set,i=Ft(document.styleSheets),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;try{var s=Ft(o.cssRules),c;try{for(s.s();!(c=s.n()).done;){var l=c.value,u=ec(l.selectorText),d=Ft(u),f;try{for(d.s();!(f=d.n()).done;){var p=f.value;r.add(p)}}catch(e){d.e(e)}finally{d.f()}}}catch(e){s.e(e)}finally{s.f()}}catch(e){K.searchPseudoElementsWarnings&&console.warn(`Font Awesome: cannot parse stylesheet: ${o.href} (${e.message})
1086
- If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`)}}}catch(e){i.e(e)}finally{i.f()}if(!r.size)return;var m=Array.from(r).join(`, `);try{n=e.querySelectorAll(m)}catch{}}return new Promise(function(e,t){var r=Ca(n).filter(Qs).map(Zs),i=ss.begin(`searchPseudoElements`);xs(),Promise.all(r).then(function(){i(),Ss(),e()}).catch(function(){i(),Ss(),t()})})}}var nc={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=tc,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=t===void 0?G:t;K.searchPseudoElements&&tc(n)}}},rc=!1,ic={mixout:function(){return{dom:{unwatch:function(){xs(),rc=!0}}}},hooks:function(){return{bootstrap:function(){ws(Mo(`mutationObserverCallbacks`,{}))},noAuto:function(){Ts()},watch:function(e){var t=e.observeMutationsRoot;rc?Ss():ws(Mo(`mutationObserverCallbacks`,{observeMutationsRoot:t}))}}}},ac=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(` `).reduce(function(e,t){var n=t.toLowerCase().split(`-`),r=n[0],i=n.slice(1).join(`-`);if(r&&i===`h`)return e.flipX=!0,e;if(r&&i===`v`)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case`grow`:e.size+=i;break;case`shrink`:e.size-=i;break;case`left`:e.x-=i;break;case`right`:e.x+=i;break;case`up`:e.y-=i;break;case`down`:e.y+=i;break;case`rotate`:e.rotate+=i;break}return e},t)},oc={mixout:function(){return{parse:{transform:function(e){return ac(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-transform`);return n&&(e.transform=ac(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={transform:`translate(${r/2} 256)`},o=`translate(${n.x*32}, ${n.y*32}) `,s=`scale(${n.size/16*(n.flipX?-1:1)}, ${n.size/16*(n.flipY?-1:1)}) `,c=`rotate(${n.rotate} 0 0)`,l={transform:`${o} ${s} ${c}`},u={transform:`translate(${i/2*-1} -256)`},d={outer:a,inner:l,path:u};return{tag:`g`,attributes:W({},d.outer),children:[{tag:`g`,attributes:W({},d.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:W(W({},t.icon.attributes),d.path)}]}]}}}},sc={x:0,y:0,width:`100%`,height:`100%`};function cc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill=`black`),e}function lc(e){return e.tag===`g`?e.children:[e]}var uc={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-mask`),r=n?xo(n.split(` `).map(function(e){return e.trim()})):ho();return r.prefix||=mo(),e.mask=r,e.maskId=t.getAttribute(`data-fa-mask-id`),e}}},provides:function(e){e.generateAbstractMask=function(e){var t=e.children,n=e.attributes,r=e.main,i=e.mask,a=e.maskId,o=e.transform,s=r.width,c=r.icon,l=i.width,u=i.icon,d=ka({transform:o,containerWidth:l,iconWidth:s}),f={tag:`rect`,attributes:W(W({},sc),{},{fill:`white`})},p=c.children?{children:c.children.map(cc)}:{},m={tag:`g`,attributes:W({},d.inner),children:[cc(W({tag:c.tag,attributes:W(W({},c.attributes),d.path)},p))]},h={tag:`g`,attributes:W({},d.outer),children:[m]},g=`mask-${a||Sa()}`,_=`clip-${a||Sa()}`,v={tag:`mask`,attributes:W(W({},sc),{},{id:g,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[f,h]},y={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:_},children:lc(u)},v]};return t.push(y,{tag:`rect`,attributes:W({fill:`currentColor`,"clip-path":`url(#${_})`,mask:`url(#${g})`},sc)}),{children:t,attributes:n}}}},dc={provides:function(e){var t=!1;tn.matchMedia&&(t=tn.matchMedia(`(prefers-reduced-motion: reduce)`).matches),e.missingIconAbstract=function(){var e=[],n={fill:`currentColor`},r={attributeType:`XML`,repeatCount:`indefinite`,dur:`2s`};e.push({tag:`path`,attributes:W(W({},n),{},{d:`M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z`})});var i=W(W({},r),{},{attributeName:`opacity`}),a={tag:`circle`,attributes:W(W({},n),{},{cx:`256`,cy:`364`,r:`28`}),children:[]};return t||a.children.push({tag:`animate`,attributes:W(W({},r),{},{attributeName:`r`,values:`28;14;28;28;14;28;`})},{tag:`animate`,attributes:W(W({},i),{},{values:`1;0;1;1;0;1;`})}),e.push(a),e.push({tag:`path`,attributes:W(W({},n),{},{opacity:`1`,d:`M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z`}),children:t?[]:[{tag:`animate`,attributes:W(W({},i),{},{values:`1;0;0;0;0;1;`})}]}),t||e.push({tag:`path`,attributes:W(W({},n),{},{opacity:`0`,d:`M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z`}),children:[{tag:`animate`,attributes:W(W({},i),{},{values:`0;0;1;1;0;0;`})}]}),{tag:`g`,attributes:{class:`missing`},children:e}}}},fc={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-symbol`),r=n===null?!1:n===``?!0:n;return e.symbol=r,e}}}},pc=[Fa,Rs,zs,Bs,Vs,nc,ic,oc,uc,dc,fc];jo(pc,{mixoutsTo:Bo}),Bo.noAuto;var mc=Bo.config;Bo.library,Bo.dom;var hc=Bo.parse;Bo.findIconDefinition,Bo.toHtml;var gc=Bo.icon;Bo.layer,Bo.text,Bo.counter;function _c(e){return e-=0,e===e}function vc(e){return _c(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():``),e.charAt(0).toLowerCase()+e.slice(1))}var yc=(e,n)=>t.createElement(`stop`,{key:`${n}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function bc(e){return e.charAt(0).toUpperCase()+e.slice(1)}var xc=new Map,Sc=1e3;function Cc(e){if(xc.has(e))return xc.get(e);let t={},n=0,r=e.length;for(;n<r;){let i=e.indexOf(`;`,n),a=i===-1?r:i,o=e.slice(n,a).trim();if(o){let e=o.indexOf(`:`);if(e>0){let n=o.slice(0,e).trim(),r=o.slice(e+1).trim();if(n&&r){let e=vc(n);t[e.startsWith(`webkit`)?bc(e):e]=r}}}n=a+1}if(xc.size===Sc){let e=xc.keys().next().value;e&&xc.delete(e)}return xc.set(e,t),t}function wc(e,t,n={}){if(typeof t==`string`)return t;let r=(t.children||[]).map(t=>{let r=t;return(`fill`in n||n.gradientFill)&&t.tag===`path`&&`fill`in t.attributes&&(r={...t,attributes:{...t.attributes,fill:void 0}}),wc(e,r)}),i=t.attributes||{},a={};for(let[e,t]of Object.entries(i))switch(!0){case e===`class`:a.className=t;break;case e===`style`:a.style=Cc(String(t));break;case e.startsWith(`aria-`):case e.startsWith(`data-`):a[e.toLowerCase()]=t;break;default:a[vc(e)]=t}let{style:o,role:s,"aria-label":c,gradientFill:l,...u}=n;if(o&&(a.style=a.style?{...a.style,...o}:o),s&&(a.role=s),c&&(a[`aria-label`]=c,a[`aria-hidden`]=`false`),l){a.fill=`url(#${l.id})`;let{type:t,stops:n=[],...i}=l;r.unshift(e(t===`linear`?`linearGradient`:`radialGradient`,{...i,id:l.id},n.map(yc)))}return e(t.tag,{...a,...u},...r)}var Tc=wc.bind(null,t.createElement),Ec=(e,t)=>{let n=p();return e||(t?n:void 0)},Dc=class{constructor(e=`react-fontawesome`){this.enabled=!1;let t=!1;try{t=typeof process<`u`&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}};typeof process<`u`&&process.env?.FA_VERSION;var Oc=`searchPseudoElementsFullScan`in mc&&typeof mc.searchPseudoElementsFullScan==`boolean`?`7.0.0`:`6.0.0`,kc=Number.parseInt(Oc)>=7,Ac=()=>kc,jc=`fa`,Mc={beat:`fa-beat`,fade:`fa-fade`,beatFade:`fa-beat-fade`,bounce:`fa-bounce`,shake:`fa-shake`,spin:`fa-spin`,spinPulse:`fa-spin-pulse`,spinReverse:`fa-spin-reverse`,pulse:`fa-pulse`,flip360:`fa-flip-360`,buzz:`fa-buzz`,float:`fa-float`,jello:`fa-jello`,spinSnap:`fa-spin-snap`,spinSnap4:`fa-spin-snap-4`,spinSnap8:`fa-spin-snap-8`,swing:`fa-swing`,wag:`fa-wag`},Nc={left:`fa-pull-left`,right:`fa-pull-right`},Pc={90:`fa-rotate-90`,180:`fa-rotate-180`,270:`fa-rotate-270`},Fc={"2xs":`fa-2xs`,xs:`fa-xs`,sm:`fa-sm`,lg:`fa-lg`,xl:`fa-xl`,"2xl":`fa-2xl`,"1x":`fa-1x`,"2x":`fa-2x`,"3x":`fa-3x`,"4x":`fa-4x`,"5x":`fa-5x`,"6x":`fa-6x`,"7x":`fa-7x`,"8x":`fa-8x`,"9x":`fa-9x`,"10x":`fa-10x`},Ic={border:`fa-border`,fixedWidth:`fa-fw`,flip:`fa-flip`,flipHorizontal:`fa-flip-horizontal`,flipVertical:`fa-flip-vertical`,inverse:`fa-inverse`,rotateBy:`fa-rotate-by`,swapOpacity:`fa-swap-opacity`,widthAuto:`fa-width-auto`,canvasSquare:`fa-canvas-square`,canvasRoomy:`fa-canvas-roomy`},Lc={default:`fa-layers`};function Rc(e){let t=mc.cssPrefix||mc.familyPrefix||jc;return t===jc?e:e.replace(new RegExp(String.raw`(?<=^|\s)${jc}-`,`g`),`${t}-`)}function zc(e){let{beat:t,fade:n,beatFade:r,bounce:i,shake:a,spin:o,spinPulse:s,spinReverse:c,pulse:l,fixedWidth:u,inverse:d,border:f,flip:p,size:m,rotation:h,pull:g,swapOpacity:_,rotateBy:v,widthAuto:y,canvasSquare:b,canvasRoomy:x,flip360:S,buzz:C,float:w,jello:T,spinSnap:E,spinSnap4:D,spinSnap8:O,swing:k,wag:A,className:j}=e,M=[];if(j&&M.push(...j.split(` `)),t&&M.push(Mc.beat),n&&M.push(Mc.fade),r&&M.push(Mc.beatFade),i&&M.push(Mc.bounce),a&&M.push(Mc.shake),o&&M.push(Mc.spin),c&&M.push(Mc.spinReverse),s&&M.push(Mc.spinPulse),l&&M.push(Mc.pulse),u&&M.push(Ic.fixedWidth),d&&M.push(Ic.inverse),f&&M.push(Ic.border),p===!0&&M.push(Ic.flip),(p===`horizontal`||p===`both`)&&M.push(Ic.flipHorizontal),(p===`vertical`||p===`both`)&&M.push(Ic.flipVertical),m!=null&&M.push(Fc[m]),h!=null&&h!==0&&M.push(Pc[h]),g!=null&&M.push(Nc[g]),_&&M.push(Ic.swapOpacity),!Ac())return M;v&&M.push(Ic.rotateBy),y&&M.push(Ic.widthAuto),b&&M.push(Ic.canvasSquare),x&&M.push(Ic.canvasRoomy),S&&M.push(Mc.flip360),C&&M.push(Mc.buzz),w&&M.push(Mc.float),T&&M.push(Mc.jello),E&&M.push(Mc.spinSnap),D&&M.push(Mc.spinSnap4),O&&M.push(Mc.spinSnap8),k&&M.push(Mc.swing),A&&M.push(Mc.wag);let N=mc.cssPrefix||mc.familyPrefix||jc;return N===jc?M:M.map(Rc)}var Bc=e=>typeof e==`object`&&`icon`in e&&!!e.icon;function Vc(e){if(e)return Bc(e)?e:hc.icon(e)}function Hc(e){return Object.keys(e)}var Uc=new Dc(`FontAwesomeIcon`),Wc={border:!1,className:``,mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:``,titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1,canvasSquare:!1,canvasRoomy:!1,flip360:!1,buzz:!1,float:!1,jello:!1,spinSnap:!1,spinSnap4:!1,spinSnap8:!1,swing:!1,wag:!1},Gc=new Set(Object.keys(Wc)),Kc=t.forwardRef((e,t)=>{let n={...Wc,...e},{icon:r,mask:i,symbol:a,title:o,titleId:s,maskId:c,transform:l}=n,u=Ec(c,!!i),d=Ec(s,!!o),f=Vc(r);if(!f)return Uc.error(`Icon lookup is undefined`,r),null;let p=zc(n),m=typeof l==`string`?hc.transform(l):l,h=Vc(i),g=gc(f,{...p.length>0&&{classes:p},...m&&{transform:m},...h&&{mask:h},symbol:a,title:o,titleId:d,maskId:u});if(!g)return Uc.error(`Could not find icon`,f),null;let{abstract:_}=g,v={ref:t};for(let e of Hc(n)){if(Gc.has(e))continue;v[e]=n[e]}return Tc(_[0],v)});Kc.displayName=`FontAwesomeIcon`,`${Lc.default}${Ic.fixedWidth}`;const qc=({tooltip:e,tooltipPlacement:t,isHtmlTooltip:n,tooltipTestId:r,tooltipDelay:i=500})=>e?{"data-qtip-text":e,"data-qtip-placement":t,"data-qtip-is-html":n,"data-qtip-testid":r,"data-qtip-delay":i}:void 0,Jc={theme:`tw:text-sq-theme-dark`,white:`tw:text-sq-white`,"dark-gray":`tw:text-sq-fairly-dark-gray`,warning:`tw:text-sq-warning`,"darkish-gray":`tw:text-sq-darkish-gray`,gray:`tw:text-sq-disabled-gray`,color:``,info:`tw:text-sq-theme-link`,text:`tw:text-sq-text-color`,inherit:``,danger:`tw:text-sq-danger`,"theme-light":`tw:text-sq-theme-light`,success:`tw:text-sq-success`},Yc={theme:`tw:dark:text-sq-theme-dark`,white:``,"dark-gray":`tw:text-sq-fairly-dark-gray`,warning:``,"darkish-gray":`tw:text-sq-darkish-gray`,gray:`tw:dark:text-sq-fairly-dark-gray`,color:``,info:`tw:dark:text-sq-theme-link`,text:`tw:dark:text-sq-dark-text`,inherit:``,danger:`tw:text-sq-danger`,"theme-light":`tw:text-sq-theme-light`,success:`tw:text-sq-success`};function Xc({onClick:e,icon:t,iconPrefix:n,type:r=`theme`,extraClassNames:i,id:a,large:o,small:s,size:c,color:l,testId:u,customId:d,number:f,...p}){if(r===`color`&&(l===void 0||l===``)||l&&r!==`color`){let e=l===void 0||l===``?`Icon with type="color" must have prop color specified.`:`Icon with prop color must have type="color".`;return b(`div`,{className:`tw:text-sq-danger`,children:e})}let m=r===`color`&&l?{color:l}:{},h=c??(s?`sm`:o?`lg`:void 0),g=`${Jc[r]} ${Yc[r]} ${e?`tw:cursor-pointer`:``} ${i} tw:outline-none tw:focus:outline-none tw:focus-visible:outline-none`,_=qc(p);if(typeof t!=`string`)return b(Kc,{icon:t,size:h,widthAuto:!0,className:g,style:m,onClick:e,"data-testid":u,"data-customid":d,id:a,"data-number":f,..._});let v=n||`fa-sharp fa-regular`,y=t.startsWith(`fc`)?`fc`:v,x=h?`fa-${h}`:``,S=`${y} ${t} ${x} ${g}`;return b(`i`,{className:S,style:m,onClick:e,"data-testid":u,"aria-label":e?p?.tooltip:void 0,"data-customid":d,id:a,"data-number":f,..._})}var Zc=Xc;const Qc=({children:e,dismissible:t=!0,onClose:n,show:r=!0,variant:i,testId:a=`alert-id`,id:o,extraClassNames:s,...c})=>{let l={theme:`tw:text-sq-text-color tw:bg-sq-theme-highlight/10 tw:dark:bg-sq-theme-hover-dark tw:dark:text-sq-text-color-dark`,formulaError:`tw:text-red-800 tw:bg-red-200 tw:rounded-[0.25rem]!`,danger:`tw:text-sq-text-color tw:bg-sq-danger`,warning:`tw:bg-sq-bg-warning tw:text-sq-text-color tw:dark:text-sq-multi-gray-dark`,gray:`tw:bg-sq-hover-gray tw:text-sq-text-color tw:dark:bg-sq-tools-background-dark tw:dark:text-sq-text-color-dark`},u={theme:`tw:border-sq-theme-dark`,danger:`tw:border-sq-danger`,warning:`tw:border-0`,gray:`tw:border-sq-darkish-gray`,formulaError:`tw:border-red-100`},d=`tw:mx-auto tw:leading-normal tw:outline-none tw:py-2 tw:px-3 tw:rounded-[10px] tw:w-full tw:relative tw:border-solid tw:border tw:text-sm tw:flex tw:flex-col tw:justify-center tw:items-center ${l[i]} ${s} ${u[i]}`;return r?x(`div`,{"data-testid":a,id:o,className:d,children:[e,t&&b(Zc,{icon:Ot,type:i.match(/danger|warning|formulaError/)?`color`:`theme`,color:i.match(/danger|warning|formulaError/)?`inherit`:void 0,extraClassNames:`tw:self-end tw:text-size-11 tw:cursor-pointer tw:absolute tw:right-2.5 tw:top-2.5 ${i.match(/danger|warning|gray|formulaError/)?`tw:text-sq-text-color tw:dark:text-sq-dark-text`:``}`,testId:`${a}-close-btn`,onClick:n,...c})]}):b(`div`,{})},$c=`tw:bg-sq-badge-preview-bg tw:dark:bg-sq-bg-default-preview-dark tw:text-sq-text-interactive tw:dark:text-sq-text-interactive-dark`,el={new:`tw:bg-sq-warning-bg-color tw:dark:bg-sq-text-dark-warning-color tw:text-sq-text-dark-warning-color tw:dark:text-sq-warning-bg-color`,preview:$c,success:$c,neutral:`tw:bg-sq-badge-neutral-bg tw:dark:bg-sq-badge-neutral-bg-dark/40 tw:border tw:border-transparent tw:text-sq-gray-text`,error:`tw:bg-sq-badge-error-bg tw:dark:bg-sq-badge-error-bg-dark tw:text-sq-danger`},tl=({children:e,variant:t=`new`,testId:n,extraClassNames:r=``})=>{let i=`tw:inline-flex tw:items-center tw:rounded-[3px] tw:px-[5px] tw:py-[2px] tw:text-[0.8rem] tw:whitespace-nowrap tw:italic ${el[t]} ${r}`.trim();return b(`span`,{"data-testid":n,className:i,children:e})};var nl=tl;const rl={xs:12,sm:16,md:24,lg:40,xl:64},il={xs:2,sm:3,md:4,lg:7,xl:10},al=e=>typeof e==`number`?`${e}px`:e?`${rl[e]}px`:void 0,ol=e=>typeof e==`number`?Math.max(2,Math.round(e/6)):e?il[e]:void 0,sl=({id:e,customId:t,testId:n,size:r,thickness:i,color:a,extraClassNames:o,style:s,ariaLabel:c,ariaHidden:l,role:u,onClick:d,title:f})=>{let p=!c&&!u&&!d,m={...s,...r?{"--spinner-size":al(r)}:{},...i||r?{"--thickness":`${i??ol(r)}px`}:{},...a?{"--spinner-color":a}:{}};return b(`div`,{id:e,"data-customid":t,"data-testid":n,"aria-hidden":l??(p?!0:void 0),"aria-label":c,role:u,title:f,className:V(`loading-spinner`,o),style:m,onClick:d})};var cl=sl;const ll=(function(){let e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],`IE ${e[1]||``}`):n[1]===`Chrome`&&(e=t.match(/\b(OPR|Edge?)\/(\d+)/),e!==null)?e.slice(1).join(` `).replace(`OPR`,`Opera`).replace(`Edg `,`Edge `):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,`-?`],(e=t.match(/version\/(\d+)/i))!==null&&n.splice(1,1,e[1]),n.join(` `))})(),ul=ll&&ll.split(` `,2)[0];ll&&parseInt(ll.split(` `,2)[1],10);const dl=ll&&ul===`Firefox`,fl=({onClick:e,label:t,variant:n=`outline`,type:r=`button`,size:i=`sm`,disabled:a,inProgress:o=!1,extraClassNames:s,id:c,testId:l,stopPropagation:u=!0,tooltip:d,tooltipOptions:f,iconStyle:p=`text`,icon:m,iconColor:h,iconPosition:g=`left`,iconPrefix:_,preventBlur:v=!1,isHtmlTooltip:y=!1,tooltipTestId:S,"aria-label":C,ref:w,...T})=>{let E={outline:`tw:disabled:opacity-50 tw:aria-disabled:opacity-50 tw:border-solid tw:border`,theme:`tw:disabled:opacity-50 tw:aria-disabled:opacity-50 tw:border-solid tw:border`,danger:`tw:bg-sq-danger tw:disabled:opacity-50 tw:aria-disabled:opacity-50 tw:border-solid tw:border tw:border-sq-danger`,"theme-light":`tw:disabled:opacity-50 tw:aria-disabled:opacity-50 tw:border-solid tw:border`,"no-border":`tw:disabled:opacity-50 tw:aria-disabled:opacity-50`,navigation:`tw:disabled:opacity-50 tw:aria-disabled:opacity-50`,"navigation-selected":`tw:disabled:opacity-50 tw:aria-disabled:opacity-50`,warning:`tw:bg-sq-warning tw:border-solid tw:border tw:border-sq-warning tw:disabled:opacity-50 tw:aria-disabled:opacity-50`},D={outline:`tw:text-sq-text-color`,theme:`tw:text-sq-white`,"theme-light":`tw:text-sq-white`,danger:`tw:text-sq-white`,"no-border":`tw:text-sq-text-color`,navigation:`tw:text-sq-text-color`,"navigation-selected":`tw:text-sq-theme-link`,warning:`tw:text-sq-white`},O={outline:`tw:dark:text-sq-dark-text`,theme:`tw:dark:text-sq-white`,"theme-light":`tw:dark:text-sq-white`,danger:`tw:dark:text-sq-white`,"no-border":`tw:dark:text-sq-dark-text`,navigation:`tw:dark:text-sq-dark-text`,"navigation-selected":`tw:dark:text-sq-dark-text`,warning:`tw:dark:text-sq-white`},k={outline:`tw:bg-white tw:border-sq-disabled-gray`,theme:`tw:bg-sq-theme-dark tw:border-sq-theme-dark`,danger:``,"theme-light":`tw:bg-sq-theme-icon tw:border-sq-theme-icon`,"no-border":``,navigation:`tw:bg-transparent`,"navigation-selected":`tw:bg-sq-surface!`,warning:``},A={outline:`tw:dark:bg-sq-dark-background tw:dark:border-sq-dark-disabled-gray`,theme:`tw:dark:bg-sq-theme-dark tw:dark:border-sq-theme-dark`,danger:``,"theme-light":`tw:dark:bg-sq-theme-icon tw:dark:border-sq-theme-icon`,"no-border":``,navigation:`tw:dark:bg-transparent`,"navigation-selected":`tw:dark:bg-sq-dark-background!`,warning:``},j={outline:`tw:hover:bg-sq-light-gray tw:focus:bg-sq-dark-gray tw:active:bg-sq-dark-gray tw:focus:border-sq-theme-dark tw:active:border-sq-theme-dark`,theme:`tw:hover:bg-sq-theme-highlight tw:hover:border-sq-theme-highlight tw:focus:bg-sq-theme-darker tw:focus:border-sq-theme-darker tw:active:bg-sq-theme-darker tw:active:border-sq-theme-darker`,danger:`tw:hover:bg-sq-danger-hover tw:hover:border-sq-danger-hover tw:focus:bg-sq-danger-hover tw:focus:border-sq-danger-hover tw:active:bg-sq-danger tw:active:border-sq-danger`,"theme-light":`tw:hover:bg-sq-theme-link tw:hover:border-sq-theme-link tw:focus:bg-sq-theme-darker tw:focus:border-sq-theme-darker tw:active:bg-sq-theme-darker tw:active:border-sq-theme-darker`,"no-border":`tw:hover:bg-sq-light-gray tw:focus:bg-sq-light-gray tw:active:bg-sq-light-gray`,navigation:`tw:hover:bg-sq-surface! tw:focus:bg-sq-surface! tw:active:bg-sq-surface!`,"navigation-selected":`tw:hover:bg-sq-surface! tw:focus:bg-sq-surface! tw:active:bg-sq-surface!`,warning:`tw:hover:bg-sq-warning-hover tw:hover:border-sq-warning-hover tw:focus:bg-sq-warning-hover tw:focus:border-sq-warning-hover tw:active:bg-sq-warning tw:active:border-sq-warning`},M={outline:`tw:dark:hover:bg-sq-highlight-color-dark tw:dark:focus:bg-sq-multi-gray-dark tw:dark:active:bg-sq-multi-gray-dark tw:dark:focus:border-sq-theme-dark tw:dark:active:border-sq-theme-dark`,theme:`tw:dark:hover:bg-sq-theme-highlight tw:dark:hover:border-sq-theme-highlight tw:dark:focus:bg-sq-theme-darker tw:dark:focus:border-sq-theme-darker tw:dark:active:bg-sq-theme-darker tw:dark:active:border-sq-theme-darker`,danger:`tw:dark:hover:bg-sq-danger-hover tw:dark:hover:border-sq-danger-hover tw:dark:focus:bg-sq-danger-hover tw:dark:focus:border-sq-danger-hover tw:dark:active:bg-sq-danger tw:dark:active:border-sq-danger`,"theme-light":`tw:dark:hover:bg-sq-theme-link tw:dark:hover:border-sq-theme-link tw:dark:focus:bg-sq-theme-darker tw:dark:focus:border-sq-theme-darker tw:dark:active:bg-sq-theme-darker tw:dark:active:border-sq-theme-darker`,"no-border":`tw:dark:hover:bg-sq-highlight-color-dark tw:dark:focus:bg-sq-highlight-color-dark tw:dark:active:bg-sq-highlight-color-dark`,navigation:`tw:dark:hover:bg-sq-dark-background! tw:dark:focus:bg-sq-dark-background! tw:dark:active:bg-sq-dark-background!`,"navigation-selected":`tw:dark:hover:bg-sq-dark-background! tw:dark:focus:bg-sq-dark-background! tw:dark:active:bg-sq-dark-background!`,warning:`tw:dark:hover:bg-sq-warning-hover tw:dark:hover:border-sq-warning-hover tw:dark:focus:bg-sq-warning-hover tw:dark:focus:border-sq-warning-hover tw:dark:active:bg-sq-warning tw:dark:active:border-sq-warning`},N={xs:`tw:text-xs tw:py-0.5`,sm:`tw:text-sm tw:py-1`,lg:`tw:text-xl tw:py-1`},ee={xs:`xs`,sm:`sm`,lg:`md`},te,P=`tw:px-2.5 tw:rounded-md tw:focus:ring-0 tw:focus-visible:outline-none tw:hover:cursor-pointer tw:aria-disabled:cursor-not-allowed tw:disabled:pointer-events-none ${E[n]} ${N[i]} ${k[n]} ${A[n]} ${D[n]} ${O[n]} ${s}`;a||(P+=` ${j[n]} ${M[n]}`),d&&(te={"data-qtip-text":d,"data-qtip-placement":f?.position,"data-qtip-is-html":y,"data-qtip-testid":S,"data-qtip-delay":f?.delay??500});let ne=C??(!t&&m?d:void 0),F=g===`left`?`tw:mr-1`:`tw:ml-1`,re=t?`${F} ${D[n]} ${O[n]}`:``,ie=c?`${c}_spinner`:void 0,ae=ie??(l?`${l}_spinner`:void 0),I=o?b(cl,{size:ee[i],color:p===`color`&&h?h:`currentColor`,extraClassNames:re,testId:ae}):m&&b(Zc,{icon:m,iconPrefix:_,type:p,color:h,extraClassNames:re,testId:ie});return x(`button`,{...T,ref:w,id:c,...te,disabled:a&&!d,"aria-disabled":a,"aria-label":ne,"data-testid":l,tabIndex:a?-1:void 0,type:r===`link`||r===`submit`&&dl?`button`:r,onClick:t=>{u&&t.stopPropagation(),a||e?.(t)},onMouseDown:e=>{v&&e.preventDefault()},className:P,children:[g===`left`&&I,t,g===`right`&&I]})};var pl=fl;const ml={outline:`tw:bg-sq-disabled-gray tw:border-sq-theme-dark`,theme:`tw:bg-sq-theme-highlight`,danger:``,"theme-light":``,"no-border":`tw:bg-sq-disabled-gray!`,navigation:`tw:bg-sq-surface! tw:text-sq-theme-link`,"navigation-selected":`tw:bg-sq-surface! tw:text-sq-theme-link`,warning:``},hl={outline:`tw:dark:bg-sq-multi-gray-dark tw:dark:border-sq-theme-dark`,theme:`tw:dark:bg-sq-theme-highlight`,danger:``,"theme-light":``,"no-border":`tw:dark:bg-sq-multi-gray-dark!`,navigation:`tw:dark:bg-sq-dark-background! tw:dark:text-sq-theme-link`,"navigation-selected":`tw:dark:bg-sq-dark-background! tw:dark:text-sq-theme-link`,warning:``},gl=e=>{let{id:t,extraClassNames:n=``,testId:r,onChange:i,buttons:a,...o}=e,s=qc(o),c=`tw:flex tw:outline-none tw:w-full tw:relative tw:flex-wrap ${n}`;return b(`div`,{id:t?`button-group-${t}`:void 0,"data-testid":r,className:c,...s,children:a.filter(Boolean).map((e,t)=>{if(e?.variant===`button`){let{isActive:n,...r}=e.buttonProps;return b(pl,{...r,extraClassNames:`tw:-ml-sq-1 tw:focus:z-40 tw:outline-none tw:focus:border tw:rounded-none tw:first:rounded-l-md tw:last:rounded-r-md ${n?`${ml[e.buttonProps.variant??`outline`]} ${hl[e.buttonProps.variant??`outline`]} `:``} ${e.buttonProps.extraClassNames}`,onClick:()=>i&&i(e.buttonProps.value)},t)}return e?.element})})};function _l(t){let n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}function vl(t,n=globalThis?.document){let r=_l(t);e.useEffect(()=>{let e=e=>{e.key===`Escape`&&r(e)};return n.addEventListener(`keydown`,e,{capture:!0}),()=>n.removeEventListener(`keydown`,e,{capture:!0})},[r,n])}var yl=`DismissableLayer`,bl=`dismissableLayer.update`,xl=`dismissableLayer.pointerDownOutside`,Sl=`dismissableLayer.focusOutside`,Cl,wl=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tl=e.forwardRef((t,n)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=t,u=e.useContext(wl),[d,f]=e.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=e.useState({}),h=I(n,e=>f(e)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(_),y=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=v,C=Ol(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));!S||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},p),w=kl(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));n||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p);return vl(e=>{let t=y===u.layers.size-1;t&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),e.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Cl=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Al(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Cl)}},[d,p,r,u]),e.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Al())},[d,u]),e.useEffect(()=>{let e=()=>m({});return document.addEventListener(bl,e),()=>document.removeEventListener(bl,e)},[]),b(B.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...t.style},onFocusCapture:z(t.onFocusCapture,w.onFocusCapture),onBlurCapture:z(t.onBlurCapture,w.onBlurCapture),onPointerDownCapture:z(t.onPointerDownCapture,C.onPointerDownCapture)})});Tl.displayName=yl;var El=`DismissableLayerBranch`,Dl=e.forwardRef((t,n)=>{let r=e.useContext(wl),i=e.useRef(null),a=I(n,i);return e.useEffect(()=>{let e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),b(B.div,{...t,ref:a})});Dl.displayName=El;function Ol(t,n=globalThis?.document){let r=_l(t),i=e.useRef(!1),a=e.useRef(()=>{});return e.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){jl(xl,r,i,{discrete:!0})},i={originalEvent:e};e.pointerType===`touch`?(n.removeEventListener(`click`,a.current),a.current=t,n.addEventListener(`click`,a.current,{once:!0})):t()}else n.removeEventListener(`click`,a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(t),n.removeEventListener(`pointerdown`,e),n.removeEventListener(`click`,a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function kl(t,n=globalThis?.document){let r=_l(t),i=e.useRef(!1);return e.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t={originalEvent:e};jl(Sl,r,t,{discrete:!1})}};return n.addEventListener(`focusin`,e),()=>n.removeEventListener(`focusin`,e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Al(){let e=new CustomEvent(bl);document.dispatchEvent(e)}function jl(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?_e(i,a):i.dispatchEvent(a)}var Ml=0;function Nl(){e.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Pl()),document.body.insertAdjacentElement(`beforeend`,e[1]??Pl()),Ml++,()=>{Ml===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Ml--}},[])}function Pl(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Fl=`focusScope.autoFocusOnMount`,Il=`focusScope.autoFocusOnUnmount`,Ll={bubbles:!1,cancelable:!0},Rl=`FocusScope`,zl=e.forwardRef((t,n)=>{let{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=t,[c,l]=e.useState(null),u=_l(a),d=_l(o),f=e.useRef(null),p=I(n,e=>l(e)),m=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(i){let e=function(e){if(m.paused||!c)return;let t=e.target;c.contains(t)?f.current=t:Kl(f.current,{select:!0})},t=function(e){if(m.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||Kl(f.current,{select:!0}))},n=function(e){let t=document.activeElement;if(t===document.body)for(let t of e)t.removedNodes.length>0&&Kl(c)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[i,c,m.paused]),e.useEffect(()=>{if(c){ql.add(m);let e=document.activeElement,t=c.contains(e);if(!t){let t=new CustomEvent(Fl,Ll);c.addEventListener(Fl,u),c.dispatchEvent(t),t.defaultPrevented||(Bl(Xl(Hl(c)),{select:!0}),document.activeElement===e&&Kl(c))}return()=>{c.removeEventListener(Fl,u),setTimeout(()=>{let t=new CustomEvent(Il,Ll);c.addEventListener(Il,d),c.dispatchEvent(t),t.defaultPrevented||Kl(e??document.body,{select:!0}),c.removeEventListener(Il,d),ql.remove(m)},0)}}},[c,u,d,m]);let h=e.useCallback(e=>{if(!r&&!i||m.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,a]=Vl(t),o=i&&a;o?!e.shiftKey&&n===a?(e.preventDefault(),r&&Kl(i,{select:!0})):e.shiftKey&&n===i&&(e.preventDefault(),r&&Kl(a,{select:!0})):n===t&&e.preventDefault()}},[r,i,m.paused]);return b(B.div,{tabIndex:-1,...s,ref:p,onKeyDown:h})});zl.displayName=Rl;function Bl(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Kl(r,{select:t}),document.activeElement!==n)return}function Vl(e){let t=Hl(e),n=Ul(t,e),r=Ul(t.reverse(),e);return[n,r]}function Hl(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ul(e,t){for(let n of e)if(!Wl(n,{upTo:t}))return n}function Wl(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Gl(e){return e instanceof HTMLInputElement&&`select`in e}function Kl(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Gl(e)&&t&&e.select()}}var ql=Jl();function Jl(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Yl(e,t),e.unshift(t)},remove(t){e=Yl(e,t),e[0]?.resume()}}}function Yl(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Xl(e){return e.filter(e=>e.tagName!==`A`)}const Zl=[`top`,`right`,`bottom`,`left`],Ql=Math.min,$l=Math.max,eu=Math.round,tu=Math.floor,nu=e=>({x:e,y:e}),ru={left:`right`,right:`left`,bottom:`top`,top:`bottom`},iu={start:`end`,end:`start`};function au(e,t,n){return $l(e,Ql(t,n))}function ou(e,t){return typeof e==`function`?e(t):e}function su(e){return e.split(`-`)[0]}function cu(e){return e.split(`-`)[1]}function lu(e){return e===`x`?`y`:`x`}function uu(e){return e===`y`?`height`:`width`}const du=new Set([`top`,`bottom`]);function fu(e){return du.has(su(e))?`y`:`x`}function pu(e){return lu(fu(e))}function mu(e,t,n){n===void 0&&(n=!1);let r=cu(e),i=pu(e),a=uu(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Cu(o)),[o,Cu(o)]}function hu(e){let t=Cu(e);return[gu(e),t,gu(t)]}function gu(e){return e.replace(/start|end/g,e=>iu[e])}const _u=[`left`,`right`],vu=[`right`,`left`],yu=[`top`,`bottom`],bu=[`bottom`,`top`];function xu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?vu:_u:t?_u:vu;case`left`:case`right`:return t?yu:bu;default:return[]}}function Su(e,t,n,r){let i=cu(e),a=xu(su(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(gu)))),a}function Cu(e){return e.replace(/left|right|bottom|top/g,e=>ru[e])}function wu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tu(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:wu(e)}function Eu(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Du(e,t,n){let{reference:r,floating:i}=e,a=fu(t),o=pu(t),s=uu(o),c=su(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(cu(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}const Ou=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Du(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=Du(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function ku(e,t){var n;t===void 0&&(t={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:c}=e,{boundary:l=`clippingAncestors`,rootBoundary:u=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=ou(t,e),m=Tu(p),h=d===`floating`?`reference`:`floating`,g=s[f?h:d],_=Eu(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(g)))??!0?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),v=d===`floating`?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),b=await(a.isElement==null?void 0:a.isElement(y))&&await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1},x=Eu(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:c}):v);return{top:(_.top-x.top+m.top)/b.y,bottom:(x.bottom-_.bottom+m.bottom)/b.y,left:(_.left-x.left+m.left)/b.x,right:(x.right-_.right+m.right)/b.x}}const Au=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ou(e,t)||{};if(l==null)return{};let d=Tu(u),f={x:n,y:r},p=pu(i),m=uu(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Ql(d[_],T),D=Ql(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=au(O,A,k),M=!c.arrow&&cu(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),ju=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n,r;let{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p=`bestFit`,fallbackAxisSideDirection:m=`none`,flipAlignment:h=!0,...g}=ou(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};let _=su(i),v=fu(s),y=su(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),x=f||(y||!h?[Cu(s)]:hu(s)),S=m!==`none`;!f&&S&&x.push(...Su(s,h,m,b));let C=[s,...x],w=await ku(t,g),T=[],E=(r=a.flip)?.overflows||[];if(u&&T.push(w[_]),d){let e=mu(i,o,b);T.push(w[e[0]],w[e[1]])}if(E=[...E,{placement:i,overflows:T}],!T.every(e=>e<=0)){var D,O;let e=((D=a.flip)?.index||0)+1,t=C[e];if(t){let n=d===`alignment`?v!==fu(t):!1;if(!n||E.every(e=>fu(e.placement)===v?e.overflows[0]>0:!0))return{data:{index:e,overflows:E},reset:{placement:t}}}let n=(O=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?.placement;if(!n)switch(p){case`bestFit`:{var k;let e=(k=E.filter(e=>{if(S){let t=fu(e.placement);return t===v||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?.[0];e&&(n=e);break}case`initialPlacement`:n=s;break}if(i!==n)return{reset:{placement:n}}}return{}}}};function Mu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Nu(e){return Zl.some(t=>e[t]>=0)}const Pu=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n}=t,{strategy:r=`referenceHidden`,...i}=ou(e,t);switch(r){case`referenceHidden`:{let e=await ku(t,{...i,elementContext:`reference`}),r=Mu(e,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Nu(r)}}}case`escaped`:{let e=await ku(t,{...i,altBoundary:!0}),r=Mu(e,n.floating);return{data:{escapedOffsets:r,escaped:Nu(r)}}}default:return{}}}}},Fu=new Set([`left`,`top`]);async function Iu(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=su(n),s=cu(n),c=fu(n)===`y`,l=Fu.has(o)?-1:1,u=a&&c?-1:1,d=ou(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}const Lu=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n,r;let{x:i,y:a,placement:o,middlewareData:s}=t,c=await Iu(t,e);return o===(n=s.offset)?.placement&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},Ru=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=ou(e,t),l={x:n,y:r},u=await ku(t,c),d=fu(su(i)),f=lu(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=au(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=au(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},zu=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ou(e,t),u={x:n,y:r},d=fu(i),f=lu(d),p=u[f],m=u[d],h=ou(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var _,v;let e=f===`y`?`width`:`height`,t=Fu.has(su(i)),n=a.reference[d]-a.floating[e]+(t&&(_=o.offset)?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(v=o.offset)?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Bu=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=ou(e,t),u=await ku(t,l),d=su(i),f=cu(i),p=fu(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Ql(h-u[g],v),x=Ql(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=$l(u.left,0),t=$l(u.right,0),n=$l(u.top,0),r=$l(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:$l(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:$l(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Vu(){return typeof window<`u`}function Hu(e){return Gu(e)?(e.nodeName||``).toLowerCase():`#document`}function Uu(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wu(e){var t;return(t=(Gu(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Gu(e){return Vu()?e instanceof Node||e instanceof Uu(e).Node:!1}function Ku(e){return Vu()?e instanceof Element||e instanceof Uu(e).Element:!1}function qu(e){return Vu()?e instanceof HTMLElement||e instanceof Uu(e).HTMLElement:!1}function Ju(e){return!Vu()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Uu(e).ShadowRoot}const Yu=new Set([`inline`,`contents`]);function Xu(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ld(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Yu.has(i)}const Zu=new Set([`table`,`td`,`th`]);function Qu(e){return Zu.has(Hu(e))}const $u=[`:popover-open`,`:modal`];function ed(e){return $u.some(t=>{try{return e.matches(t)}catch{return!1}})}const td=[`transform`,`translate`,`scale`,`rotate`,`perspective`],nd=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],rd=[`paint`,`layout`,`strict`,`content`];function id(e){let t=od(),n=Ku(e)?ld(e):e;return td.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||nd.some(e=>(n.willChange||``).includes(e))||rd.some(e=>(n.contain||``).includes(e))}function ad(e){let t=dd(e);for(;qu(t)&&!cd(t);){if(id(t))return t;if(ed(t))return null;t=dd(t)}return null}function od(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}const sd=new Set([`html`,`body`,`#document`]);function cd(e){return sd.has(Hu(e))}function ld(e){return Uu(e).getComputedStyle(e)}function ud(e){return Ku(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dd(e){if(Hu(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ju(e)&&e.host||Wu(e);return Ju(t)?t.host:t}function fd(e){let t=dd(e);return cd(t)?e.ownerDocument?e.ownerDocument.body:e.body:qu(t)&&Xu(t)?t:fd(t)}function pd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let i=fd(e),a=i===(r=e.ownerDocument)?.body,o=Uu(i);if(a){let e=md(o);return t.concat(o,o.visualViewport||[],Xu(i)?i:[],e&&n?pd(e):[])}return t.concat(i,pd(i,[],n))}function md(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hd(e){let t=ld(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=qu(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=eu(n)!==a||eu(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function gd(e){return Ku(e)?e:e.contextElement}function _d(e){let t=gd(e);if(!qu(t))return nu(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=hd(t),o=(a?eu(n.width):n.width)/r,s=(a?eu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const vd=nu(0);function yd(e){let t=Uu(e);return!od()||!t.visualViewport?vd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Uu(e)?!1:t}function xd(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=gd(e),o=nu(1);t&&(r?Ku(r)&&(o=_d(r)):o=_d(e));let s=bd(a,n,r)?yd(a):nu(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Uu(a),t=r&&Ku(r)?Uu(r):r,n=e,i=md(n);for(;i&&r&&t!==n;){let e=_d(i),t=i.getBoundingClientRect(),r=ld(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Uu(i),i=md(n)}}return Eu({width:u,height:d,x:c,y:l})}function Sd(e,t){let n=ud(e).scrollLeft;return t?t.left+n:xd(Wu(e)).left+n}function Cd(e,t){let n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Sd(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function wd(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Wu(r),s=t?ed(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=nu(1),u=nu(0),d=qu(r);if((d||!d&&!a)&&((Hu(r)!==`body`||Xu(o))&&(c=ud(r)),qu(r))){let e=xd(r);l=_d(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Cd(o,c):nu(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Td(e){return Array.from(e.getClientRects())}function Ed(e){let t=Wu(e),n=ud(e),r=e.ownerDocument.body,i=$l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=$l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Sd(e),s=-n.scrollTop;return ld(r).direction===`rtl`&&(o+=$l(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function Dd(e,t){let n=Uu(e),r=Wu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=od();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Sd(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=25&&(a-=o)}else l<=25&&(a+=l);return{width:a,height:o,x:s,y:c}}const Od=new Set([`absolute`,`fixed`]);function kd(e,t){let n=xd(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=qu(e)?_d(e):nu(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,l=r*a.y;return{width:o,height:s,x:c,y:l}}function Ad(e,t,n){let r;if(t===`viewport`)r=Dd(e,n);else if(t===`document`)r=Ed(Wu(e));else if(Ku(t))r=kd(t,n);else{let n=yd(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Eu(r)}function jd(e,t){let n=dd(e);return n===t||!Ku(n)||cd(n)?!1:ld(n).position===`fixed`||jd(n,t)}function Md(e,t){let n=t.get(e);if(n)return n;let r=pd(e,[],!1).filter(e=>Ku(e)&&Hu(e)!==`body`),i=null,a=ld(e).position===`fixed`,o=a?dd(e):e;for(;Ku(o)&&!cd(o);){let t=ld(o),n=id(o);!n&&t.position===`fixed`&&(i=null);let s=a?!n&&!i:!n&&t.position===`static`&&!!i&&Od.has(i.position)||Xu(o)&&!n&&jd(e,o);s?r=r.filter(e=>e!==o):i=t,o=dd(o)}return t.set(e,r),r}function Nd(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=n===`clippingAncestors`?ed(t)?[]:Md(t,this._c):[].concat(n),o=[...a,r],s=o[0],c=o.reduce((e,n)=>{let r=Ad(t,n,i);return e.top=$l(r.top,e.top),e.right=Ql(r.right,e.right),e.bottom=Ql(r.bottom,e.bottom),e.left=$l(r.left,e.left),e},Ad(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Pd(e){let{width:t,height:n}=hd(e);return{width:t,height:n}}function Fd(e,t,n){let r=qu(t),i=Wu(t),a=n===`fixed`,o=xd(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=nu(0);function l(){c.x=Sd(i)}if(r||!r&&!a)if((Hu(t)!==`body`||Xu(i))&&(s=ud(t)),r){let e=xd(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Cd(i,s):nu(0),d=o.left+s.scrollLeft-c.x-u.x,f=o.top+s.scrollTop-c.y-u.y;return{x:d,y:f,width:o.width,height:o.height}}function Id(e){return ld(e).position===`static`}function Ld(e,t){if(!qu(e)||ld(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Wu(e)===n&&(n=n.ownerDocument.body),n}function Rd(e,t){let n=Uu(e);if(ed(e))return n;if(!qu(e)){let t=dd(e);for(;t&&!cd(t);){if(Ku(t)&&!Id(t))return t;t=dd(t)}return n}let r=Ld(e,t);for(;r&&Qu(r)&&Id(r);)r=Ld(r,t);return r&&cd(r)&&Id(r)&&!id(r)?n:r||ad(e)||n}const zd=async function(e){let t=this.getOffsetParent||Rd,n=this.getDimensions,r=await n(e.floating);return{reference:Fd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Bd(e){return ld(e).direction===`rtl`}const Vd={convertOffsetParentRelativeRectToViewportRelativeRect:wd,getDocumentElement:Wu,getClippingRect:Nd,getOffsetParent:Rd,getElementRects:zd,getClientRects:Td,getDimensions:Pd,getScale:_d,isElement:Ku,isRTL:Bd};function Hd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ud(e,t){let n=null,r,i=Wu(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=tu(d),h=tu(i.clientWidth-(u+f)),g=tu(i.clientHeight-(d+p)),_=tu(u),v=-m+`px `+-h+`px `+-g+`px `+-_+`px`,y={rootMargin:v,threshold:$l(0,Ql(1,c))||1},b=!0;function x(t){let n=t[0].intersectionRatio;if(n!==c){if(!b)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Hd(l,e.getBoundingClientRect())&&o(),b=!1}try{n=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,y)}n.observe(e)}return o(!0),a}function Wd(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=gd(e),u=i||a?[...l?pd(l):[],...pd(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ud(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?xd(e):null;c&&g();function g(){let t=xd(e);h&&!Hd(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const Gd=Lu,Kd=Ru,qd=ju,Jd=Bu,Yd=Pu,Xd=Au,Zd=zu,Qd=(e,t,n)=>{let r=new Map,i={platform:Vd,...n},a={...i.platform,_c:r};return Ou(e,t,{...i,platform:a})};var $d=typeof document<`u`,ef=function(){},tf=$d?h:ef;function nf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!nf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!nf(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function rf(e){if(typeof window>`u`)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function af(e,t){let n=rf(e);return Math.round(t*n)/n}function sf(t){let n=e.useRef(t);return tf(()=>{n.current=t}),n}function cf(t){t===void 0&&(t={});let{placement:n=`bottom`,strategy:r=`absolute`,middleware:i=[],platform:a,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=t,[d,f]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,m]=e.useState(i);nf(p,i)||m(i);let[h,g]=e.useState(null),[_,v]=e.useState(null),y=e.useCallback(e=>{e!==w.current&&(w.current=e,g(e))},[]),b=e.useCallback(e=>{e!==T.current&&(T.current=e,v(e))},[]),x=o||h,C=s||_,w=e.useRef(null),T=e.useRef(null),E=e.useRef(d),D=l!=null,O=sf(l),k=sf(a),A=sf(u),j=e.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:n,strategy:r,middleware:p};k.current&&(e.platform=k.current),Qd(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!nf(E.current,t)&&(E.current=t,S.flushSync(()=>{f(t)}))})},[p,n,r,k,A]);tf(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let M=e.useRef(!1);tf(()=>(M.current=!0,()=>{M.current=!1}),[]),tf(()=>{if(x&&(w.current=x),C&&(T.current=C),x&&C){if(O.current)return O.current(x,C,j);j()}},[x,C,j,O,D]);let N=e.useMemo(()=>({reference:w,floating:T,setReference:y,setFloating:b}),[y,b]),ee=e.useMemo(()=>({reference:x,floating:C}),[x,C]),te=e.useMemo(()=>{let e={position:r,left:0,top:0};if(!ee.floating)return e;let t=af(ee.floating,d.x),n=af(ee.floating,d.y);return c?{...e,transform:`translate(`+t+`px, `+n+`px)`,...rf(ee.floating)>=1.5&&{willChange:`transform`}}:{position:r,left:t,top:n}},[r,c,ee.floating,d.x,d.y]);return e.useMemo(()=>({...d,update:j,refs:N,elements:ee,floatingStyles:te}),[d,j,N,ee,te])}const lf=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Xd({element:r.current,padding:i}).fn(n):r?Xd({element:r,padding:i}).fn(n):{}}}},uf=(e,t)=>({...Gd(e),options:[e,t]}),df=(e,t)=>({...Kd(e),options:[e,t]}),ff=(e,t)=>({...Zd(e),options:[e,t]}),pf=(e,t)=>({...qd(e),options:[e,t]}),mf=(e,t)=>({...Jd(e),options:[e,t]}),hf=(e,t)=>({...Yd(e),options:[e,t]}),gf=(e,t)=>({...lf(e),options:[e,t]});var _f=`Arrow`,vf=e.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return b(B.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:b(`polygon`,{points:`0,0 30,0 15,10`})})});vf.displayName=_f;var yf=vf;function bf(t){let[n,r]=e.useState(void 0);return de(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let n=e[0],i,a;if(`borderBoxSize`in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=t.offsetWidth,a=t.offsetHeight;r({width:i,height:a})});return e.observe(t,{box:`border-box`}),()=>e.unobserve(t)}else r(void 0)},[t]),n}var xf=`Popper`,[Sf,Cf]=F(xf),[wf,Tf]=Sf(xf),Ef=t=>{let{__scopePopper:n,children:r}=t,[i,a]=e.useState(null);return b(wf,{scope:n,anchor:i,onAnchorChange:a,children:r})};Ef.displayName=xf;var Df=`PopperAnchor`,Of=e.forwardRef((t,n)=>{let{__scopePopper:r,virtualRef:i,...a}=t,o=Tf(Df,r),s=e.useRef(null),c=I(n,s),l=e.useRef(null);return e.useEffect(()=>{let e=l.current;l.current=i?.current||s.current,e!==l.current&&o.onAnchorChange(l.current)}),i?null:b(B.div,{...a,ref:c})});Of.displayName=Df;var kf=`PopperContent`,[Af,jf]=Sf(kf),Mf=e.forwardRef((t,n)=>{let{__scopePopper:r,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=`partial`,hideWhenDetached:p=!1,updatePositionStrategy:m=`optimized`,onPlaced:h,...g}=t,_=Tf(kf,r),[v,y]=e.useState(null),x=I(n,e=>y(e)),[S,C]=e.useState(null),w=bf(S),T=w?.width??0,E=w?.height??0,D=i+(o===`center`?``:`-`+o),O=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},k=Array.isArray(u)?u:[u],A=k.length>0,j={padding:O,boundary:k.filter(If),altBoundary:A},{refs:M,floatingStyles:N,placement:ee,isPositioned:te,middlewareData:P}=cf({strategy:`fixed`,placement:D,whileElementsMounted:(...e)=>{let t=Wd(...e,{animationFrame:m===`always`});return t},elements:{reference:_.anchor},middleware:[uf({mainAxis:a+E,alignmentAxis:s}),l&&df({mainAxis:!0,crossAxis:!1,limiter:f===`partial`?ff():void 0,...j}),l&&pf({...j}),mf({...j,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),S&&gf({element:S,padding:c}),Lf({arrowWidth:T,arrowHeight:E}),p&&hf({strategy:`referenceHidden`,...j})]}),[ne,F]=Rf(ee),re=_l(h);de(()=>{te&&re?.()},[te,re]);let ie=P.arrow?.x,ae=P.arrow?.y,oe=P.arrow?.centerOffset!==0,[se,ce]=e.useState();return de(()=>{v&&ce(window.getComputedStyle(v).zIndex)},[v]),b(`div`,{ref:M.setFloating,"data-radix-popper-content-wrapper":``,style:{...N,transform:te?N.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(` `),...P.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:t.dir,children:b(Af,{scope:r,placedSide:ne,onArrowChange:C,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:b(B.div,{"data-side":ne,"data-align":F,...g,ref:x,style:{...g.style,animation:te?void 0:`none`}})})})});Mf.displayName=kf;var Nf=`PopperArrow`,Pf={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Ff=e.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=jf(Nf,n),a=Pf[i.placedSide];return b(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:b(yf,{...r,ref:t,style:{...r.style,display:`block`}})})});Ff.displayName=Nf;function If(e){return e!==null}var Lf=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a,s=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=Rf(n),d={start:`0%`,center:`50%`,end:`100%`}[u],f=(i.arrow?.x??0)+s/2,p=(i.arrow?.y??0)+c/2,m=``,h=``;return l===`bottom`?(m=o?d:`${f}px`,h=`${-c}px`):l===`top`?(m=o?d:`${f}px`,h=`${r.floating.height+c}px`):l===`right`?(m=`${-c}px`,h=o?d:`${p}px`):l===`left`&&(m=`${r.floating.width+c}px`,h=o?d:`${p}px`),{data:{x:m,y:h}}}});function Rf(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var zf=Ef,Bf=Of,Vf=Mf,Hf=Ff,Uf=`Portal`,Wf=e.forwardRef((t,n)=>{let{container:r,...i}=t,[a,o]=e.useState(!1);de(()=>o(!0),[]);let s=r||a&&globalThis?.document?.body;return s?C.createPortal(b(B.div,{...i,ref:n}),s):null});Wf.displayName=Uf;var Gf=`rovingFocusGroup.onEntryFocus`,Kf={bubbles:!1,cancelable:!0},qf=`RovingFocusGroup`,[Jf,Yf,Xf]=ue(qf),[Zf,Qf]=F(qf,[Xf]),[$f,ep]=Zf(qf),tp=e.forwardRef((e,t)=>b(Jf.Provider,{scope:e.__scopeRovingFocusGroup,children:b(Jf.Slot,{scope:e.__scopeRovingFocusGroup,children:b(np,{...e,ref:t})})}));tp.displayName=qf;var np=e.forwardRef((t,n)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=t,p=e.useRef(null),m=I(n,p),h=He(o),[g,_]=pe({prop:s,defaultProp:c??null,onChange:l,caller:qf}),[v,y]=e.useState(!1),x=_l(u),S=Yf(r),C=e.useRef(!1),[w,T]=e.useState(0);return e.useEffect(()=>{let e=p.current;if(e)return e.addEventListener(Gf,x),()=>e.removeEventListener(Gf,x)},[x]),b($f,{scope:r,orientation:i,dir:h,loop:a,currentTabStopId:g,onItemFocus:e.useCallback(e=>_(e),[_]),onItemShiftTab:e.useCallback(()=>y(!0),[]),onFocusableItemAdd:e.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:e.useCallback(()=>T(e=>e-1),[]),children:b(B.div,{tabIndex:v||w===0?-1:0,"data-orientation":i,...f,ref:m,style:{outline:`none`,...t.style},onMouseDown:z(t.onMouseDown,()=>{C.current=!0}),onFocus:z(t.onFocus,e=>{let t=!C.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(Gf,Kf);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=S().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===g),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);cp(i,d)}}C.current=!1}),onBlur:z(t.onBlur,()=>y(!1))})})}),rp=`RovingFocusGroupItem`,ip=e.forwardRef((t,n)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:o,children:s,...c}=t,l=Te(),u=o||l,d=ep(rp,r),f=d.currentTabStopId===u,p=Yf(r),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:g}=d;return e.useEffect(()=>{if(i)return m(),()=>h()},[i,m,h]),b(Jf.ItemSlot,{scope:r,id:u,focusable:i,active:a,children:b(B.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:n,onMouseDown:z(t.onMouseDown,e=>{i?d.onItemFocus(u):e.preventDefault()}),onFocus:z(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:z(t.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){d.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=sp(e,d.orientation,d.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=p().filter(e=>e.focusable),r=n.map(e=>e.ref.current);if(t===`last`)r.reverse();else if(t===`prev`||t===`next`){t===`prev`&&r.reverse();let n=r.indexOf(e.currentTarget);r=d.loop?lp(r,n+1):r.slice(n+1)}setTimeout(()=>cp(r))}}),children:typeof s==`function`?s({isCurrentTabStop:f,hasTabStop:g!=null}):s})})});ip.displayName=rp;var ap={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function op(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function sp(e,t,n){let r=op(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return ap[r]}function cp(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function lp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var up=tp,dp=ip,fp=function(e){if(typeof document>`u`)return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pp=new WeakMap,mp=new WeakMap,hp={},gp=0,_p=function(e){return e&&(e.host||_p(e.parentNode))},vp=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=_p(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},yp=function(e,t,n,r){var i=vp(t,Array.isArray(e)?e:[e]);hp[n]||(hp[n]=new WeakMap);var a=hp[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(pp.get(e)||0)+1,l=(a.get(e)||0)+1;pp.set(e,c),a.set(e,l),o.push(e),c===1&&i&&mp.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),gp++,function(){o.forEach(function(e){var t=pp.get(e)-1,i=a.get(e)-1;pp.set(e,t),a.set(e,i),t||(mp.has(e)||e.removeAttribute(r),mp.delete(e)),i||e.removeAttribute(n)}),gp--,gp||(pp=new WeakMap,pp=new WeakMap,mp=new WeakMap,hp={})}},bp=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||fp(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),yp(r,i,n,`aria-hidden`)):function(){return null}},xp=function(){return xp=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},xp.apply(this,arguments)};function Sp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Cp(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))}var wp=`right-scroll-bar-position`,Tp=`width-before-scroll-bar`,Ep=`with-scroll-bars-hidden`,Dp=`--removed-body-scroll-bar-size`;function Op(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function kp(e,t){var n=v(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 Ap=typeof window<`u`?e.useLayoutEffect:e.useEffect,jp=new WeakMap;function Mp(e,t){var n=kp(t||null,function(t){return e.forEach(function(e){return Op(e,t)})});return Ap(function(){var t=jp.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Op(e,null)}),i.forEach(function(e){r.has(e)||Op(e,a)})}jp.set(n,e)},[e]),n}function Np(e){return e}function Pp(e,t){t===void 0&&(t=Np);var n=[],r=!1,i={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}}}};return i}function Fp(e){e===void 0&&(e={});var t=Pp(null);return t.options=xp({async:!0,ssr:!1},e),t}var Ip=function(t){var n=t.sideCar,r=Sp(t,[`sideCar`]);if(!n)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw Error(`Sidecar medium not found`);return e.createElement(i,xp({},r))};Ip.isSideCarExport=!0;function Lp(e,t){return e.useMedium(t),Ip}var Rp=Fp(),zp=function(){},Bp=e.forwardRef(function(t,n){var r=e.useRef(null),i=e.useState({onScrollCapture:zp,onWheelCapture:zp,onTouchMoveCapture:zp}),a=i[0],o=i[1],s=t.forwardProps,c=t.children,l=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noRelative,h=t.noIsolation,g=t.inert,_=t.allowPinchZoom,v=t.as,y=v===void 0?`div`:v,b=t.gapMode,x=Sp(t,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=Mp([r,n]),w=xp(xp({},x),a);return e.createElement(e.Fragment,null,d&&e.createElement(S,{sideCar:Rp,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:o,allowPinchZoom:!!_,lockRef:r,gapMode:b}),s?e.cloneElement(e.Children.only(c),xp(xp({},w),{ref:C})):e.createElement(y,xp({},w,{className:l,ref:C}),c))});Bp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Bp.classNames={fullWidth:Tp,zeroRight:wp};var Vp,Hp=function(){if(Vp)return Vp;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Up(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Hp();return t&&e.setAttribute(`nonce`,t),e}function Wp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Gp(e){var t=document.head||document.getElementsByTagName(`head`)[0];t.appendChild(e)}var Kp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Up())&&(Wp(t,n),Gp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qp=function(){var t=Kp();return function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])}},Jp=function(){var e=qp(),t=function(t){var n=t.styles,r=t.dynamic;return e(n,r),null};return t},Yp={left:0,top:0,right:0,gap:0},Xp=function(e){return parseInt(e||``,10)||0},Zp=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Xp(n),Xp(r),Xp(i)]},Qp=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Yp;var t=Zp(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},$p=Jp(),em=`data-scroll-locked`,tm=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
1087
- .${Ep} {
1086
+ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`)}}}catch(e){i.e(e)}finally{i.f()}if(!r.size)return;var m=Array.from(r).join(`, `);try{n=e.querySelectorAll(m)}catch{}}return new Promise(function(e,t){var r=Ca(n).filter(Qs).map(Zs),i=ss.begin(`searchPseudoElements`);xs(),Promise.all(r).then(function(){i(),Ss(),e()}).catch(function(){i(),Ss(),t()})})}}var nc={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=tc,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=t===void 0?G:t;K.searchPseudoElements&&tc(n)}}},rc=!1,ic={mixout:function(){return{dom:{unwatch:function(){xs(),rc=!0}}}},hooks:function(){return{bootstrap:function(){ws(Mo(`mutationObserverCallbacks`,{}))},noAuto:function(){Ts()},watch:function(e){var t=e.observeMutationsRoot;rc?Ss():ws(Mo(`mutationObserverCallbacks`,{observeMutationsRoot:t}))}}}},ac=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(` `).reduce(function(e,t){var n=t.toLowerCase().split(`-`),r=n[0],i=n.slice(1).join(`-`);if(r&&i===`h`)return e.flipX=!0,e;if(r&&i===`v`)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case`grow`:e.size+=i;break;case`shrink`:e.size-=i;break;case`left`:e.x-=i;break;case`right`:e.x+=i;break;case`up`:e.y-=i;break;case`down`:e.y+=i;break;case`rotate`:e.rotate+=i;break}return e},t)},oc={mixout:function(){return{parse:{transform:function(e){return ac(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-transform`);return n&&(e.transform=ac(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={transform:`translate(${r/2} 256)`},o=`translate(${n.x*32}, ${n.y*32}) `,s=`scale(${n.size/16*(n.flipX?-1:1)}, ${n.size/16*(n.flipY?-1:1)}) `,c=`rotate(${n.rotate} 0 0)`,l={transform:`${o} ${s} ${c}`},u={transform:`translate(${i/2*-1} -256)`},d={outer:a,inner:l,path:u};return{tag:`g`,attributes:W({},d.outer),children:[{tag:`g`,attributes:W({},d.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:W(W({},t.icon.attributes),d.path)}]}]}}}},sc={x:0,y:0,width:`100%`,height:`100%`};function cc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill=`black`),e}function lc(e){return e.tag===`g`?e.children:[e]}var uc={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-mask`),r=n?xo(n.split(` `).map(function(e){return e.trim()})):ho();return r.prefix||=mo(),e.mask=r,e.maskId=t.getAttribute(`data-fa-mask-id`),e}}},provides:function(e){e.generateAbstractMask=function(e){var t=e.children,n=e.attributes,r=e.main,i=e.mask,a=e.maskId,o=e.transform,s=r.width,c=r.icon,l=i.width,u=i.icon,d=ka({transform:o,containerWidth:l,iconWidth:s}),f={tag:`rect`,attributes:W(W({},sc),{},{fill:`white`})},p=c.children?{children:c.children.map(cc)}:{},m={tag:`g`,attributes:W({},d.inner),children:[cc(W({tag:c.tag,attributes:W(W({},c.attributes),d.path)},p))]},h={tag:`g`,attributes:W({},d.outer),children:[m]},g=`mask-${a||Sa()}`,_=`clip-${a||Sa()}`,v={tag:`mask`,attributes:W(W({},sc),{},{id:g,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[f,h]},y={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:_},children:lc(u)},v]};return t.push(y,{tag:`rect`,attributes:W({fill:`currentColor`,"clip-path":`url(#${_})`,mask:`url(#${g})`},sc)}),{children:t,attributes:n}}}},dc={provides:function(e){var t=!1;tn.matchMedia&&(t=tn.matchMedia(`(prefers-reduced-motion: reduce)`).matches),e.missingIconAbstract=function(){var e=[],n={fill:`currentColor`},r={attributeType:`XML`,repeatCount:`indefinite`,dur:`2s`};e.push({tag:`path`,attributes:W(W({},n),{},{d:`M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z`})});var i=W(W({},r),{},{attributeName:`opacity`}),a={tag:`circle`,attributes:W(W({},n),{},{cx:`256`,cy:`364`,r:`28`}),children:[]};return t||a.children.push({tag:`animate`,attributes:W(W({},r),{},{attributeName:`r`,values:`28;14;28;28;14;28;`})},{tag:`animate`,attributes:W(W({},i),{},{values:`1;0;1;1;0;1;`})}),e.push(a),e.push({tag:`path`,attributes:W(W({},n),{},{opacity:`1`,d:`M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z`}),children:t?[]:[{tag:`animate`,attributes:W(W({},i),{},{values:`1;0;0;0;0;1;`})}]}),t||e.push({tag:`path`,attributes:W(W({},n),{},{opacity:`0`,d:`M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z`}),children:[{tag:`animate`,attributes:W(W({},i),{},{values:`0;0;1;1;0;0;`})}]}),{tag:`g`,attributes:{class:`missing`},children:e}}}},fc={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-symbol`),r=n===null?!1:n===``?!0:n;return e.symbol=r,e}}}},pc=[Fa,Rs,zs,Bs,Vs,nc,ic,oc,uc,dc,fc];jo(pc,{mixoutsTo:Bo}),Bo.noAuto;var mc=Bo.config;Bo.library,Bo.dom;var hc=Bo.parse;Bo.findIconDefinition,Bo.toHtml;var gc=Bo.icon;Bo.layer,Bo.text,Bo.counter;function _c(e){return e-=0,e===e}function vc(e){return _c(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():``),e.charAt(0).toLowerCase()+e.slice(1))}var yc=(e,n)=>t.createElement(`stop`,{key:`${n}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function bc(e){return e.charAt(0).toUpperCase()+e.slice(1)}var xc=new Map,Sc=1e3;function Cc(e){if(xc.has(e))return xc.get(e);let t={},n=0,r=e.length;for(;n<r;){let i=e.indexOf(`;`,n),a=i===-1?r:i,o=e.slice(n,a).trim();if(o){let e=o.indexOf(`:`);if(e>0){let n=o.slice(0,e).trim(),r=o.slice(e+1).trim();if(n&&r){let e=vc(n);t[e.startsWith(`webkit`)?bc(e):e]=r}}}n=a+1}if(xc.size===Sc){let e=xc.keys().next().value;e&&xc.delete(e)}return xc.set(e,t),t}function wc(e,t,n={}){if(typeof t==`string`)return t;let r=(t.children||[]).map(t=>{let r=t;return(`fill`in n||n.gradientFill)&&t.tag===`path`&&`fill`in t.attributes&&(r={...t,attributes:{...t.attributes,fill:void 0}}),wc(e,r)}),i=t.attributes||{},a={};for(let[e,t]of Object.entries(i))switch(!0){case e===`class`:a.className=t;break;case e===`style`:a.style=Cc(String(t));break;case e.startsWith(`aria-`):case e.startsWith(`data-`):a[e.toLowerCase()]=t;break;default:a[vc(e)]=t}let{style:o,role:s,"aria-label":c,gradientFill:l,...u}=n;if(o&&(a.style=a.style?{...a.style,...o}:o),s&&(a.role=s),c&&(a[`aria-label`]=c,a[`aria-hidden`]=`false`),l){a.fill=`url(#${l.id})`;let{type:t,stops:n=[],...i}=l;r.unshift(e(t===`linear`?`linearGradient`:`radialGradient`,{...i,id:l.id},n.map(yc)))}return e(t.tag,{...a,...u},...r)}var Tc=wc.bind(null,t.createElement),Ec=(e,t)=>{let n=p();return e||(t?n:void 0)},Dc=class{constructor(e=`react-fontawesome`){this.enabled=!1;let t=!1;try{t=typeof process<`u`&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}};typeof process<`u`&&process.env?.FA_VERSION;var Oc=`searchPseudoElementsFullScan`in mc&&typeof mc.searchPseudoElementsFullScan==`boolean`?`7.0.0`:`6.0.0`,kc=Number.parseInt(Oc)>=7,Ac=()=>kc,jc=`fa`,Mc={beat:`fa-beat`,fade:`fa-fade`,beatFade:`fa-beat-fade`,bounce:`fa-bounce`,shake:`fa-shake`,spin:`fa-spin`,spinPulse:`fa-spin-pulse`,spinReverse:`fa-spin-reverse`,pulse:`fa-pulse`,flip360:`fa-flip-360`,buzz:`fa-buzz`,float:`fa-float`,jello:`fa-jello`,spinSnap:`fa-spin-snap`,spinSnap4:`fa-spin-snap-4`,spinSnap8:`fa-spin-snap-8`,swing:`fa-swing`,wag:`fa-wag`},Nc={left:`fa-pull-left`,right:`fa-pull-right`},Pc={90:`fa-rotate-90`,180:`fa-rotate-180`,270:`fa-rotate-270`},Fc={"2xs":`fa-2xs`,xs:`fa-xs`,sm:`fa-sm`,lg:`fa-lg`,xl:`fa-xl`,"2xl":`fa-2xl`,"1x":`fa-1x`,"2x":`fa-2x`,"3x":`fa-3x`,"4x":`fa-4x`,"5x":`fa-5x`,"6x":`fa-6x`,"7x":`fa-7x`,"8x":`fa-8x`,"9x":`fa-9x`,"10x":`fa-10x`},Ic={border:`fa-border`,fixedWidth:`fa-fw`,flip:`fa-flip`,flipHorizontal:`fa-flip-horizontal`,flipVertical:`fa-flip-vertical`,inverse:`fa-inverse`,rotateBy:`fa-rotate-by`,swapOpacity:`fa-swap-opacity`,widthAuto:`fa-width-auto`,canvasSquare:`fa-canvas-square`,canvasRoomy:`fa-canvas-roomy`},Lc={default:`fa-layers`};function Rc(e){let t=mc.cssPrefix||mc.familyPrefix||jc;return t===jc?e:e.replace(new RegExp(String.raw`(?<=^|\s)${jc}-`,`g`),`${t}-`)}function zc(e){let{beat:t,fade:n,beatFade:r,bounce:i,shake:a,spin:o,spinPulse:s,spinReverse:c,pulse:l,fixedWidth:u,inverse:d,border:f,flip:p,size:m,rotation:h,pull:g,swapOpacity:_,rotateBy:v,widthAuto:y,canvasSquare:b,canvasRoomy:x,flip360:S,buzz:C,float:w,jello:T,spinSnap:E,spinSnap4:D,spinSnap8:O,swing:k,wag:A,className:j}=e,M=[];if(j&&M.push(...j.split(` `)),t&&M.push(Mc.beat),n&&M.push(Mc.fade),r&&M.push(Mc.beatFade),i&&M.push(Mc.bounce),a&&M.push(Mc.shake),o&&M.push(Mc.spin),c&&M.push(Mc.spinReverse),s&&M.push(Mc.spinPulse),l&&M.push(Mc.pulse),u&&M.push(Ic.fixedWidth),d&&M.push(Ic.inverse),f&&M.push(Ic.border),p===!0&&M.push(Ic.flip),(p===`horizontal`||p===`both`)&&M.push(Ic.flipHorizontal),(p===`vertical`||p===`both`)&&M.push(Ic.flipVertical),m!=null&&M.push(Fc[m]),h!=null&&h!==0&&M.push(Pc[h]),g!=null&&M.push(Nc[g]),_&&M.push(Ic.swapOpacity),!Ac())return M;v&&M.push(Ic.rotateBy),y&&M.push(Ic.widthAuto),b&&M.push(Ic.canvasSquare),x&&M.push(Ic.canvasRoomy),S&&M.push(Mc.flip360),C&&M.push(Mc.buzz),w&&M.push(Mc.float),T&&M.push(Mc.jello),E&&M.push(Mc.spinSnap),D&&M.push(Mc.spinSnap4),O&&M.push(Mc.spinSnap8),k&&M.push(Mc.swing),A&&M.push(Mc.wag);let N=mc.cssPrefix||mc.familyPrefix||jc;return N===jc?M:M.map(Rc)}var Bc=e=>typeof e==`object`&&`icon`in e&&!!e.icon;function Vc(e){if(e)return Bc(e)?e:hc.icon(e)}function Hc(e){return Object.keys(e)}var Uc=new Dc(`FontAwesomeIcon`),Wc={border:!1,className:``,mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:``,titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1,canvasSquare:!1,canvasRoomy:!1,flip360:!1,buzz:!1,float:!1,jello:!1,spinSnap:!1,spinSnap4:!1,spinSnap8:!1,swing:!1,wag:!1},Gc=new Set(Object.keys(Wc)),Kc=t.forwardRef((e,t)=>{let n={...Wc,...e},{icon:r,mask:i,symbol:a,title:o,titleId:s,maskId:c,transform:l}=n,u=Ec(c,!!i),d=Ec(s,!!o),f=Vc(r);if(!f)return Uc.error(`Icon lookup is undefined`,r),null;let p=zc(n),m=typeof l==`string`?hc.transform(l):l,h=Vc(i),g=gc(f,{...p.length>0&&{classes:p},...m&&{transform:m},...h&&{mask:h},symbol:a,title:o,titleId:d,maskId:u});if(!g)return Uc.error(`Could not find icon`,f),null;let{abstract:_}=g,v={ref:t};for(let e of Hc(n)){if(Gc.has(e))continue;v[e]=n[e]}return Tc(_[0],v)});Kc.displayName=`FontAwesomeIcon`,`${Lc.default}${Ic.fixedWidth}`;const qc=({tooltip:e,tooltipPlacement:t,isHtmlTooltip:n,tooltipTestId:r,tooltipDelay:i=500})=>e?{"data-qtip-text":e,"data-qtip-placement":t,"data-qtip-is-html":n,"data-qtip-testid":r,"data-qtip-delay":i}:void 0,Jc={theme:`tw:text-sq-theme-dark`,white:`tw:text-sq-white`,"dark-gray":`tw:text-sq-fairly-dark-gray`,warning:`tw:text-sq-warning`,"darkish-gray":`tw:text-sq-darkish-gray`,gray:`tw:text-sq-disabled-gray`,color:``,info:`tw:text-sq-theme-link`,text:`tw:text-sq-text-color`,inherit:``,danger:`tw:text-sq-danger`,"theme-light":`tw:text-sq-theme-light`,success:`tw:text-sq-success`},Yc={theme:`tw:dark:text-sq-theme-dark`,white:``,"dark-gray":`tw:text-sq-fairly-dark-gray`,warning:``,"darkish-gray":`tw:text-sq-darkish-gray`,gray:`tw:dark:text-sq-fairly-dark-gray`,color:``,info:`tw:dark:text-sq-theme-link`,text:`tw:dark:text-sq-dark-text`,inherit:``,danger:`tw:text-sq-danger`,"theme-light":`tw:text-sq-theme-light`,success:`tw:text-sq-success`};function Xc({onClick:e,icon:t,iconPrefix:n,type:r=`theme`,extraClassNames:i,id:a,large:o,small:s,size:c,color:l,testId:u,customId:d,number:f,...p}){if(r===`color`&&(l===void 0||l===``)||l&&r!==`color`){let e=l===void 0||l===``?`Icon with type="color" must have prop color specified.`:`Icon with prop color must have type="color".`;return b(`div`,{className:`tw:text-sq-danger`,children:e})}let m=r===`color`&&l?{color:l}:{},h=c??(s?`sm`:o?`lg`:void 0),g=`${Jc[r]} ${Yc[r]} ${e?`tw:cursor-pointer`:``} ${i} tw:outline-none tw:focus:outline-none tw:focus-visible:outline-none`,_=qc(p);if(typeof t!=`string`)return b(Kc,{icon:t,size:h,widthAuto:!0,className:g,style:m,onClick:e,"aria-label":e?p?.tooltip:void 0,"data-testid":u,"data-customid":d,id:a,"data-number":f,..._});let v=n||`fa-sharp fa-regular`,y=t.startsWith(`fc`)?`fc`:v,x=h?`fa-${h}`:``,S=`${y} ${t} ${x} ${g}`;return b(`i`,{className:S,style:m,onClick:e,"data-testid":u,"aria-label":e?p?.tooltip:void 0,"data-customid":d,id:a,"data-number":f,..._})}var Zc=Xc;const Qc=({children:e,dismissible:t=!0,onClose:n,show:r=!0,variant:i,testId:a=`alert-id`,id:o,extraClassNames:s,...c})=>{let l={theme:`tw:text-sq-text-color tw:bg-sq-theme-highlight/10 tw:dark:bg-sq-theme-hover-dark tw:dark:text-sq-text-color-dark`,formulaError:`tw:text-red-800 tw:bg-red-200 tw:rounded-[0.25rem]!`,danger:`tw:text-sq-text-color tw:bg-sq-danger`,warning:`tw:bg-sq-bg-warning tw:text-sq-text-color tw:dark:text-sq-multi-gray-dark`,gray:`tw:bg-sq-hover-gray tw:text-sq-text-color tw:dark:bg-sq-tools-background-dark tw:dark:text-sq-text-color-dark`},u={theme:`tw:border-sq-theme-dark`,danger:`tw:border-sq-danger`,warning:`tw:border-0`,gray:`tw:border-sq-darkish-gray`,formulaError:`tw:border-red-100`},d=`tw:mx-auto tw:leading-normal tw:outline-none tw:py-2 tw:px-3 tw:rounded-[10px] tw:w-full tw:relative tw:border-solid tw:border tw:text-sm tw:flex tw:flex-col tw:justify-center tw:items-center ${l[i]} ${s} ${u[i]}`;return r?x(`div`,{"data-testid":a,id:o,className:d,children:[e,t&&b(Zc,{icon:Ot,type:i.match(/danger|warning|formulaError/)?`color`:`theme`,color:i.match(/danger|warning|formulaError/)?`inherit`:void 0,extraClassNames:`tw:self-end tw:text-size-11 tw:cursor-pointer tw:absolute tw:right-2.5 tw:top-2.5 ${i.match(/danger|warning|gray|formulaError/)?`tw:text-sq-text-color tw:dark:text-sq-dark-text`:``}`,testId:`${a}-close-btn`,onClick:n,...c})]}):b(`div`,{})},$c=`tw:inline-flex tw:items-center tw:rounded-[3px] tw:px-[5px] tw:py-[2px] tw:text-[0.8rem] tw:whitespace-nowrap tw:italic`,el=`tw:bg-sq-badge-preview-bg tw:dark:bg-sq-bg-default-preview-dark tw:text-sq-text-interactive tw:dark:text-sq-text-interactive-dark`,tl={new:`tw:bg-sq-warning-bg-color tw:dark:bg-sq-text-dark-warning-color tw:text-sq-text-dark-warning-color tw:dark:text-sq-warning-bg-color`,preview:el,success:el,neutral:`tw:bg-sq-badge-neutral-bg tw:dark:bg-sq-badge-neutral-bg-dark/40 tw:border tw:border-transparent tw:text-sq-gray-text`,error:`tw:bg-sq-badge-error-bg tw:dark:bg-sq-badge-error-bg-dark tw:text-sq-danger`},nl={new:`tw:bg-sq-warning tw:text-sq-black`,preview:`tw:bg-sq-text-interactive tw:text-sq-white tw:dark:bg-sq-text-interactive-dark tw:dark:text-sq-black`,success:`tw:bg-sq-text-interactive tw:text-sq-white tw:dark:bg-sq-text-interactive-dark tw:dark:text-sq-black`,neutral:`tw:bg-sq-muted tw:text-sq-white`,error:`tw:bg-sq-danger tw:text-sq-white`},rl={new:`tw:border-sq-warning/40`,preview:`tw:border-sq-text-interactive/40`,success:`tw:border-sq-text-interactive/40`,neutral:`tw:border-sq-muted/40`,error:`tw:border-sq-danger/40`},il=({children:e,variant:t=`new`,label:n,testId:r,extraClassNames:i=``})=>{let a=`${$c} ${tl[t]} ${i}`.trim();return n==null?b(`span`,{"data-testid":r,className:a,children:e}):x(`span`,{"data-testid":r,className:`tw:inline-flex tw:items-stretch tw:overflow-hidden tw:rounded-sm tw:border ${rl[t]}`,children:[b(`span`,{className:`${$c} tw:font-bold tw:not-italic ${nl[t]}`,children:n}),b(`span`,{className:`${a} tw:rounded-l-none`,children:e})]})};var al=il;const ol={xs:12,sm:16,md:24,lg:40,xl:64},sl={xs:2,sm:3,md:4,lg:7,xl:10},cl=e=>typeof e==`number`?`${e}px`:e?`${ol[e]}px`:void 0,ll=e=>typeof e==`number`?Math.max(2,Math.round(e/6)):e?sl[e]:void 0,ul=({id:e,customId:t,testId:n,size:r,thickness:i,color:a,extraClassNames:o,style:s,ariaLabel:c,ariaHidden:l,role:u,onClick:d,title:f})=>{let p=!c&&!u&&!d,m={...s,...r?{"--spinner-size":cl(r)}:{},...i||r?{"--thickness":`${i??ll(r)}px`}:{},...a?{"--spinner-color":a}:{}};return b(`div`,{id:e,"data-customid":t,"data-testid":n,"aria-hidden":l??(p?!0:void 0),"aria-label":c,role:u,title:f,className:V(`loading-spinner`,o),style:m,onClick:d})};var dl=ul;const fl=(function(){let e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],`IE ${e[1]||``}`):n[1]===`Chrome`&&(e=t.match(/\b(OPR|Edge?)\/(\d+)/),e!==null)?e.slice(1).join(` `).replace(`OPR`,`Opera`).replace(`Edg `,`Edge `):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,`-?`],(e=t.match(/version\/(\d+)/i))!==null&&n.splice(1,1,e[1]),n.join(` `))})(),pl=fl&&fl.split(` `,2)[0];fl&&parseInt(fl.split(` `,2)[1],10);const ml=fl&&pl===`Firefox`,hl=({onClick:e,label:t,variant:n=`outline`,type:r=`button`,size:i=`sm`,disabled:a,inProgress:o=!1,extraClassNames:s,id:c,testId:l,stopPropagation:u=!0,tooltip:d,tooltipOptions:f,iconStyle:p=`text`,icon:m,iconColor:h,iconPosition:g=`left`,iconPrefix:_,preventBlur:v=!1,isHtmlTooltip:y=!1,tooltipTestId:S,"aria-label":C,ref:w,...T})=>{let E={outline:`tw:disabled:opacity-50 tw:aria-disabled:opacity-50 tw:border-solid tw:border`,theme:`tw:disabled:opacity-50 tw:aria-disabled:opacity-50 tw:border-solid tw:border`,danger:`tw:bg-sq-danger tw:disabled:opacity-50 tw:aria-disabled:opacity-50 tw:border-solid tw:border tw:border-sq-danger`,"theme-light":`tw:disabled:opacity-50 tw:aria-disabled:opacity-50 tw:border-solid tw:border`,"no-border":`tw:disabled:opacity-50 tw:aria-disabled:opacity-50`,navigation:`tw:disabled:opacity-50 tw:aria-disabled:opacity-50`,"navigation-selected":`tw:disabled:opacity-50 tw:aria-disabled:opacity-50`,warning:`tw:bg-sq-warning tw:border-solid tw:border tw:border-sq-warning tw:disabled:opacity-50 tw:aria-disabled:opacity-50`},D={outline:`tw:text-sq-text-color`,theme:`tw:text-sq-white`,"theme-light":`tw:text-sq-white`,danger:`tw:text-sq-white`,"no-border":`tw:text-sq-text-color`,navigation:`tw:text-sq-text-color`,"navigation-selected":`tw:text-sq-theme-link`,warning:`tw:text-sq-white`},O={outline:`tw:dark:text-sq-dark-text`,theme:`tw:dark:text-sq-white`,"theme-light":`tw:dark:text-sq-white`,danger:`tw:dark:text-sq-white`,"no-border":`tw:dark:text-sq-dark-text`,navigation:`tw:dark:text-sq-dark-text`,"navigation-selected":`tw:dark:text-sq-dark-text`,warning:`tw:dark:text-sq-white`},k={outline:`tw:bg-white tw:border-sq-disabled-gray`,theme:`tw:bg-sq-theme-dark tw:border-sq-theme-dark`,danger:``,"theme-light":`tw:bg-sq-theme-icon tw:border-sq-theme-icon`,"no-border":``,navigation:`tw:bg-transparent`,"navigation-selected":`tw:bg-sq-surface!`,warning:``},A={outline:`tw:dark:bg-sq-dark-background tw:dark:border-sq-dark-disabled-gray`,theme:`tw:dark:bg-sq-theme-dark tw:dark:border-sq-theme-dark`,danger:``,"theme-light":`tw:dark:bg-sq-theme-icon tw:dark:border-sq-theme-icon`,"no-border":``,navigation:`tw:dark:bg-transparent`,"navigation-selected":`tw:dark:bg-sq-dark-background!`,warning:``},j={outline:`tw:hover:bg-sq-light-gray tw:focus:bg-sq-dark-gray tw:active:bg-sq-dark-gray tw:focus:border-sq-theme-dark tw:active:border-sq-theme-dark`,theme:`tw:hover:bg-sq-theme-highlight tw:hover:border-sq-theme-highlight tw:focus:bg-sq-theme-darker tw:focus:border-sq-theme-darker tw:active:bg-sq-theme-darker tw:active:border-sq-theme-darker`,danger:`tw:hover:bg-sq-danger-hover tw:hover:border-sq-danger-hover tw:focus:bg-sq-danger-hover tw:focus:border-sq-danger-hover tw:active:bg-sq-danger tw:active:border-sq-danger`,"theme-light":`tw:hover:bg-sq-theme-link tw:hover:border-sq-theme-link tw:focus:bg-sq-theme-darker tw:focus:border-sq-theme-darker tw:active:bg-sq-theme-darker tw:active:border-sq-theme-darker`,"no-border":`tw:hover:bg-sq-light-gray tw:focus:bg-sq-light-gray tw:active:bg-sq-light-gray`,navigation:`tw:hover:bg-sq-surface! tw:focus:bg-sq-surface! tw:active:bg-sq-surface!`,"navigation-selected":`tw:hover:bg-sq-surface! tw:focus:bg-sq-surface! tw:active:bg-sq-surface!`,warning:`tw:hover:bg-sq-warning-hover tw:hover:border-sq-warning-hover tw:focus:bg-sq-warning-hover tw:focus:border-sq-warning-hover tw:active:bg-sq-warning tw:active:border-sq-warning`},M={outline:`tw:dark:hover:bg-sq-highlight-color-dark tw:dark:focus:bg-sq-multi-gray-dark tw:dark:active:bg-sq-multi-gray-dark tw:dark:focus:border-sq-theme-dark tw:dark:active:border-sq-theme-dark`,theme:`tw:dark:hover:bg-sq-theme-highlight tw:dark:hover:border-sq-theme-highlight tw:dark:focus:bg-sq-theme-darker tw:dark:focus:border-sq-theme-darker tw:dark:active:bg-sq-theme-darker tw:dark:active:border-sq-theme-darker`,danger:`tw:dark:hover:bg-sq-danger-hover tw:dark:hover:border-sq-danger-hover tw:dark:focus:bg-sq-danger-hover tw:dark:focus:border-sq-danger-hover tw:dark:active:bg-sq-danger tw:dark:active:border-sq-danger`,"theme-light":`tw:dark:hover:bg-sq-theme-link tw:dark:hover:border-sq-theme-link tw:dark:focus:bg-sq-theme-darker tw:dark:focus:border-sq-theme-darker tw:dark:active:bg-sq-theme-darker tw:dark:active:border-sq-theme-darker`,"no-border":`tw:dark:hover:bg-sq-highlight-color-dark tw:dark:focus:bg-sq-highlight-color-dark tw:dark:active:bg-sq-highlight-color-dark`,navigation:`tw:dark:hover:bg-sq-dark-background! tw:dark:focus:bg-sq-dark-background! tw:dark:active:bg-sq-dark-background!`,"navigation-selected":`tw:dark:hover:bg-sq-dark-background! tw:dark:focus:bg-sq-dark-background! tw:dark:active:bg-sq-dark-background!`,warning:`tw:dark:hover:bg-sq-warning-hover tw:dark:hover:border-sq-warning-hover tw:dark:focus:bg-sq-warning-hover tw:dark:focus:border-sq-warning-hover tw:dark:active:bg-sq-warning tw:dark:active:border-sq-warning`},N={xs:`tw:text-xs tw:py-0.5`,sm:`tw:text-sm tw:py-1`,lg:`tw:text-xl tw:py-1`},ee={xs:`xs`,sm:`sm`,lg:`md`},te,P=`tw:px-2.5 tw:rounded-md tw:focus:ring-0 tw:focus-visible:outline-none tw:hover:cursor-pointer tw:aria-disabled:cursor-not-allowed tw:disabled:pointer-events-none ${E[n]} ${N[i]} ${k[n]} ${A[n]} ${D[n]} ${O[n]} ${s}`;a||(P+=` ${j[n]} ${M[n]}`),d&&(te={"data-qtip-text":d,"data-qtip-placement":f?.position,"data-qtip-is-html":y,"data-qtip-testid":S,"data-qtip-delay":f?.delay??500});let ne=C??(!t&&m?d:void 0),F=g===`left`?`tw:mr-1`:`tw:ml-1`,re=t?`${F} ${D[n]} ${O[n]}`:``,ie=c?`${c}_spinner`:void 0,ae=ie??(l?`${l}_spinner`:void 0),I=o?b(dl,{size:ee[i],color:p===`color`&&h?h:`currentColor`,extraClassNames:re,testId:ae}):m&&b(Zc,{icon:m,iconPrefix:_,type:p,color:h,extraClassNames:re,testId:ie});return x(`button`,{...T,ref:w,id:c,...te,disabled:a&&!d,"aria-disabled":a,"aria-label":ne,"data-testid":l,tabIndex:a?-1:void 0,type:r===`link`||r===`submit`&&ml?`button`:r,onClick:t=>{u&&t.stopPropagation(),a||e?.(t)},onMouseDown:e=>{v&&e.preventDefault()},className:P,children:[g===`left`&&I,t,g===`right`&&I]})};var gl=hl;const _l={outline:`tw:bg-sq-disabled-gray tw:border-sq-theme-dark`,theme:`tw:bg-sq-theme-highlight`,danger:``,"theme-light":``,"no-border":`tw:bg-sq-disabled-gray!`,navigation:`tw:bg-sq-surface! tw:text-sq-theme-link`,"navigation-selected":`tw:bg-sq-surface! tw:text-sq-theme-link`,warning:``},vl={outline:`tw:dark:bg-sq-multi-gray-dark tw:dark:border-sq-theme-dark`,theme:`tw:dark:bg-sq-theme-highlight`,danger:``,"theme-light":``,"no-border":`tw:dark:bg-sq-multi-gray-dark!`,navigation:`tw:dark:bg-sq-dark-background! tw:dark:text-sq-theme-link`,"navigation-selected":`tw:dark:bg-sq-dark-background! tw:dark:text-sq-theme-link`,warning:``},yl=e=>{let{id:t,extraClassNames:n=``,testId:r,onChange:i,buttons:a,...o}=e,s=qc(o),c=`tw:flex tw:outline-none tw:w-full tw:relative tw:flex-wrap ${n}`;return b(`div`,{id:t?`button-group-${t}`:void 0,"data-testid":r,className:c,...s,children:a.filter(Boolean).map((e,t)=>{if(e?.variant===`button`){let{isActive:n,...r}=e.buttonProps;return b(gl,{...r,extraClassNames:`tw:-ml-sq-1 tw:focus:z-40 tw:outline-none tw:focus:border tw:rounded-none tw:first:rounded-l-md tw:last:rounded-r-md ${n?`${_l[e.buttonProps.variant??`outline`]} ${vl[e.buttonProps.variant??`outline`]} `:``} ${e.buttonProps.extraClassNames}`,onClick:()=>i&&i(e.buttonProps.value)},t)}return e?.element})})};function bl(t){let n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}function xl(t,n=globalThis?.document){let r=bl(t);e.useEffect(()=>{let e=e=>{e.key===`Escape`&&r(e)};return n.addEventListener(`keydown`,e,{capture:!0}),()=>n.removeEventListener(`keydown`,e,{capture:!0})},[r,n])}var Sl=`DismissableLayer`,Cl=`dismissableLayer.update`,wl=`dismissableLayer.pointerDownOutside`,Tl=`dismissableLayer.focusOutside`,El,Dl=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ol=e.forwardRef((t,n)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=t,u=e.useContext(Dl),[d,f]=e.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=e.useState({}),h=I(n,e=>f(e)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(_),y=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=v,C=jl(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));!S||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},p),w=Ml(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));n||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p);return xl(e=>{let t=y===u.layers.size-1;t&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),e.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(El=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Nl(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=El)}},[d,p,r,u]),e.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Nl())},[d,u]),e.useEffect(()=>{let e=()=>m({});return document.addEventListener(Cl,e),()=>document.removeEventListener(Cl,e)},[]),b(B.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...t.style},onFocusCapture:z(t.onFocusCapture,w.onFocusCapture),onBlurCapture:z(t.onBlurCapture,w.onBlurCapture),onPointerDownCapture:z(t.onPointerDownCapture,C.onPointerDownCapture)})});Ol.displayName=Sl;var kl=`DismissableLayerBranch`,Al=e.forwardRef((t,n)=>{let r=e.useContext(Dl),i=e.useRef(null),a=I(n,i);return e.useEffect(()=>{let e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),b(B.div,{...t,ref:a})});Al.displayName=kl;function jl(t,n=globalThis?.document){let r=bl(t),i=e.useRef(!1),a=e.useRef(()=>{});return e.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){Pl(wl,r,i,{discrete:!0})},i={originalEvent:e};e.pointerType===`touch`?(n.removeEventListener(`click`,a.current),a.current=t,n.addEventListener(`click`,a.current,{once:!0})):t()}else n.removeEventListener(`click`,a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(t),n.removeEventListener(`pointerdown`,e),n.removeEventListener(`click`,a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function Ml(t,n=globalThis?.document){let r=bl(t),i=e.useRef(!1);return e.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t={originalEvent:e};Pl(Tl,r,t,{discrete:!1})}};return n.addEventListener(`focusin`,e),()=>n.removeEventListener(`focusin`,e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Nl(){let e=new CustomEvent(Cl);document.dispatchEvent(e)}function Pl(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?_e(i,a):i.dispatchEvent(a)}var Fl=0;function Il(){e.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Ll()),document.body.insertAdjacentElement(`beforeend`,e[1]??Ll()),Fl++,()=>{Fl===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Fl--}},[])}function Ll(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Rl=`focusScope.autoFocusOnMount`,zl=`focusScope.autoFocusOnUnmount`,Bl={bubbles:!1,cancelable:!0},Vl=`FocusScope`,Hl=e.forwardRef((t,n)=>{let{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=t,[c,l]=e.useState(null),u=bl(a),d=bl(o),f=e.useRef(null),p=I(n,e=>l(e)),m=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(i){let e=function(e){if(m.paused||!c)return;let t=e.target;c.contains(t)?f.current=t:Yl(f.current,{select:!0})},t=function(e){if(m.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||Yl(f.current,{select:!0}))},n=function(e){let t=document.activeElement;if(t===document.body)for(let t of e)t.removedNodes.length>0&&Yl(c)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[i,c,m.paused]),e.useEffect(()=>{if(c){Xl.add(m);let e=document.activeElement,t=c.contains(e);if(!t){let t=new CustomEvent(Rl,Bl);c.addEventListener(Rl,u),c.dispatchEvent(t),t.defaultPrevented||(Ul($l(Gl(c)),{select:!0}),document.activeElement===e&&Yl(c))}return()=>{c.removeEventListener(Rl,u),setTimeout(()=>{let t=new CustomEvent(zl,Bl);c.addEventListener(zl,d),c.dispatchEvent(t),t.defaultPrevented||Yl(e??document.body,{select:!0}),c.removeEventListener(zl,d),Xl.remove(m)},0)}}},[c,u,d,m]);let h=e.useCallback(e=>{if(!r&&!i||m.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,a]=Wl(t),o=i&&a;o?!e.shiftKey&&n===a?(e.preventDefault(),r&&Yl(i,{select:!0})):e.shiftKey&&n===i&&(e.preventDefault(),r&&Yl(a,{select:!0})):n===t&&e.preventDefault()}},[r,i,m.paused]);return b(B.div,{tabIndex:-1,...s,ref:p,onKeyDown:h})});Hl.displayName=Vl;function Ul(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Yl(r,{select:t}),document.activeElement!==n)return}function Wl(e){let t=Gl(e),n=Kl(t,e),r=Kl(t.reverse(),e);return[n,r]}function Gl(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kl(e,t){for(let n of e)if(!ql(n,{upTo:t}))return n}function ql(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Jl(e){return e instanceof HTMLInputElement&&`select`in e}function Yl(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Jl(e)&&t&&e.select()}}var Xl=Zl();function Zl(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ql(e,t),e.unshift(t)},remove(t){e=Ql(e,t),e[0]?.resume()}}}function Ql(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $l(e){return e.filter(e=>e.tagName!==`A`)}const eu=[`top`,`right`,`bottom`,`left`],tu=Math.min,nu=Math.max,ru=Math.round,iu=Math.floor,au=e=>({x:e,y:e}),ou={left:`right`,right:`left`,bottom:`top`,top:`bottom`},su={start:`end`,end:`start`};function cu(e,t,n){return nu(e,tu(t,n))}function lu(e,t){return typeof e==`function`?e(t):e}function uu(e){return e.split(`-`)[0]}function du(e){return e.split(`-`)[1]}function fu(e){return e===`x`?`y`:`x`}function pu(e){return e===`y`?`height`:`width`}const mu=new Set([`top`,`bottom`]);function hu(e){return mu.has(uu(e))?`y`:`x`}function gu(e){return fu(hu(e))}function _u(e,t,n){n===void 0&&(n=!1);let r=du(e),i=gu(e),a=pu(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Eu(o)),[o,Eu(o)]}function vu(e){let t=Eu(e);return[yu(e),t,yu(t)]}function yu(e){return e.replace(/start|end/g,e=>su[e])}const bu=[`left`,`right`],xu=[`right`,`left`],Su=[`top`,`bottom`],Cu=[`bottom`,`top`];function wu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?xu:bu:t?bu:xu;case`left`:case`right`:return t?Su:Cu;default:return[]}}function Tu(e,t,n,r){let i=du(e),a=wu(uu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(yu)))),a}function Eu(e){return e.replace(/left|right|bottom|top/g,e=>ou[e])}function Du(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ou(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Du(e)}function ku(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Au(e,t,n){let{reference:r,floating:i}=e,a=hu(t),o=gu(t),s=pu(o),c=uu(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(du(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}const ju=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Au(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=Au(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function Mu(e,t){var n;t===void 0&&(t={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:c}=e,{boundary:l=`clippingAncestors`,rootBoundary:u=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=lu(t,e),m=Ou(p),h=d===`floating`?`reference`:`floating`,g=s[f?h:d],_=ku(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(g)))??!0?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),v=d===`floating`?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),b=await(a.isElement==null?void 0:a.isElement(y))&&await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1},x=ku(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:c}):v);return{top:(_.top-x.top+m.top)/b.y,bottom:(x.bottom-_.bottom+m.bottom)/b.y,left:(_.left-x.left+m.left)/b.x,right:(x.right-_.right+m.right)/b.x}}const Nu=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=lu(e,t)||{};if(l==null)return{};let d=Ou(u),f={x:n,y:r},p=gu(i),m=pu(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=tu(d[_],T),D=tu(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=cu(O,A,k),M=!c.arrow&&du(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),Pu=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n,r;let{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p=`bestFit`,fallbackAxisSideDirection:m=`none`,flipAlignment:h=!0,...g}=lu(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};let _=uu(i),v=hu(s),y=uu(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),x=f||(y||!h?[Eu(s)]:vu(s)),S=m!==`none`;!f&&S&&x.push(...Tu(s,h,m,b));let C=[s,...x],w=await Mu(t,g),T=[],E=(r=a.flip)?.overflows||[];if(u&&T.push(w[_]),d){let e=_u(i,o,b);T.push(w[e[0]],w[e[1]])}if(E=[...E,{placement:i,overflows:T}],!T.every(e=>e<=0)){var D,O;let e=((D=a.flip)?.index||0)+1,t=C[e];if(t){let n=d===`alignment`?v!==hu(t):!1;if(!n||E.every(e=>hu(e.placement)===v?e.overflows[0]>0:!0))return{data:{index:e,overflows:E},reset:{placement:t}}}let n=(O=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?.placement;if(!n)switch(p){case`bestFit`:{var k;let e=(k=E.filter(e=>{if(S){let t=hu(e.placement);return t===v||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?.[0];e&&(n=e);break}case`initialPlacement`:n=s;break}if(i!==n)return{reset:{placement:n}}}return{}}}};function Fu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Iu(e){return eu.some(t=>e[t]>=0)}const Lu=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n}=t,{strategy:r=`referenceHidden`,...i}=lu(e,t);switch(r){case`referenceHidden`:{let e=await Mu(t,{...i,elementContext:`reference`}),r=Fu(e,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Iu(r)}}}case`escaped`:{let e=await Mu(t,{...i,altBoundary:!0}),r=Fu(e,n.floating);return{data:{escapedOffsets:r,escaped:Iu(r)}}}default:return{}}}}},Ru=new Set([`left`,`top`]);async function zu(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=uu(n),s=du(n),c=hu(n)===`y`,l=Ru.has(o)?-1:1,u=a&&c?-1:1,d=lu(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}const Bu=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n,r;let{x:i,y:a,placement:o,middlewareData:s}=t,c=await zu(t,e);return o===(n=s.offset)?.placement&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},Vu=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=lu(e,t),l={x:n,y:r},u=await Mu(t,c),d=hu(uu(i)),f=fu(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=cu(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=cu(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},Hu=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=lu(e,t),u={x:n,y:r},d=hu(i),f=fu(d),p=u[f],m=u[d],h=lu(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var _,v;let e=f===`y`?`width`:`height`,t=Ru.has(uu(i)),n=a.reference[d]-a.floating[e]+(t&&(_=o.offset)?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(v=o.offset)?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Uu=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=lu(e,t),u=await Mu(t,l),d=uu(i),f=du(i),p=hu(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=tu(h-u[g],v),x=tu(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=nu(u.left,0),t=nu(u.right,0),n=nu(u.top,0),r=nu(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:nu(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:nu(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Wu(){return typeof window<`u`}function Gu(e){return Ju(e)?(e.nodeName||``).toLowerCase():`#document`}function Ku(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qu(e){var t;return(t=(Ju(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ju(e){return Wu()?e instanceof Node||e instanceof Ku(e).Node:!1}function Yu(e){return Wu()?e instanceof Element||e instanceof Ku(e).Element:!1}function Xu(e){return Wu()?e instanceof HTMLElement||e instanceof Ku(e).HTMLElement:!1}function Zu(e){return!Wu()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ku(e).ShadowRoot}const Qu=new Set([`inline`,`contents`]);function $u(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=fd(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Qu.has(i)}const ed=new Set([`table`,`td`,`th`]);function td(e){return ed.has(Gu(e))}const nd=[`:popover-open`,`:modal`];function rd(e){return nd.some(t=>{try{return e.matches(t)}catch{return!1}})}const id=[`transform`,`translate`,`scale`,`rotate`,`perspective`],ad=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],od=[`paint`,`layout`,`strict`,`content`];function sd(e){let t=ld(),n=Yu(e)?fd(e):e;return id.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||ad.some(e=>(n.willChange||``).includes(e))||od.some(e=>(n.contain||``).includes(e))}function cd(e){let t=md(e);for(;Xu(t)&&!dd(t);){if(sd(t))return t;if(rd(t))return null;t=md(t)}return null}function ld(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}const ud=new Set([`html`,`body`,`#document`]);function dd(e){return ud.has(Gu(e))}function fd(e){return Ku(e).getComputedStyle(e)}function pd(e){return Yu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function md(e){if(Gu(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Zu(e)&&e.host||qu(e);return Zu(t)?t.host:t}function hd(e){let t=md(e);return dd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xu(t)&&$u(t)?t:hd(t)}function gd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let i=hd(e),a=i===(r=e.ownerDocument)?.body,o=Ku(i);if(a){let e=_d(o);return t.concat(o,o.visualViewport||[],$u(i)?i:[],e&&n?gd(e):[])}return t.concat(i,gd(i,[],n))}function _d(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vd(e){let t=fd(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Xu(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ru(n)!==a||ru(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function yd(e){return Yu(e)?e:e.contextElement}function bd(e){let t=yd(e);if(!Xu(t))return au(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=vd(t),o=(a?ru(n.width):n.width)/r,s=(a?ru(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const xd=au(0);function Sd(e){let t=Ku(e);return!ld()||!t.visualViewport?xd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ku(e)?!1:t}function wd(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=yd(e),o=au(1);t&&(r?Yu(r)&&(o=bd(r)):o=bd(e));let s=Cd(a,n,r)?Sd(a):au(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Ku(a),t=r&&Yu(r)?Ku(r):r,n=e,i=_d(n);for(;i&&r&&t!==n;){let e=bd(i),t=i.getBoundingClientRect(),r=fd(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ku(i),i=_d(n)}}return ku({width:u,height:d,x:c,y:l})}function Td(e,t){let n=pd(e).scrollLeft;return t?t.left+n:wd(qu(e)).left+n}function Ed(e,t){let n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Td(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Dd(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=qu(r),s=t?rd(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=au(1),u=au(0),d=Xu(r);if((d||!d&&!a)&&((Gu(r)!==`body`||$u(o))&&(c=pd(r)),Xu(r))){let e=wd(r);l=bd(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ed(o,c):au(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Od(e){return Array.from(e.getClientRects())}function kd(e){let t=qu(e),n=pd(e),r=e.ownerDocument.body,i=nu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=nu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Td(e),s=-n.scrollTop;return fd(r).direction===`rtl`&&(o+=nu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function Ad(e,t){let n=Ku(e),r=qu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=ld();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Td(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=25&&(a-=o)}else l<=25&&(a+=l);return{width:a,height:o,x:s,y:c}}const jd=new Set([`absolute`,`fixed`]);function Md(e,t){let n=wd(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Xu(e)?bd(e):au(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,l=r*a.y;return{width:o,height:s,x:c,y:l}}function Nd(e,t,n){let r;if(t===`viewport`)r=Ad(e,n);else if(t===`document`)r=kd(qu(e));else if(Yu(t))r=Md(t,n);else{let n=Sd(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ku(r)}function Pd(e,t){let n=md(e);return n===t||!Yu(n)||dd(n)?!1:fd(n).position===`fixed`||Pd(n,t)}function Fd(e,t){let n=t.get(e);if(n)return n;let r=gd(e,[],!1).filter(e=>Yu(e)&&Gu(e)!==`body`),i=null,a=fd(e).position===`fixed`,o=a?md(e):e;for(;Yu(o)&&!dd(o);){let t=fd(o),n=sd(o);!n&&t.position===`fixed`&&(i=null);let s=a?!n&&!i:!n&&t.position===`static`&&!!i&&jd.has(i.position)||$u(o)&&!n&&Pd(e,o);s?r=r.filter(e=>e!==o):i=t,o=md(o)}return t.set(e,r),r}function Id(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=n===`clippingAncestors`?rd(t)?[]:Fd(t,this._c):[].concat(n),o=[...a,r],s=o[0],c=o.reduce((e,n)=>{let r=Nd(t,n,i);return e.top=nu(r.top,e.top),e.right=tu(r.right,e.right),e.bottom=tu(r.bottom,e.bottom),e.left=nu(r.left,e.left),e},Nd(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ld(e){let{width:t,height:n}=vd(e);return{width:t,height:n}}function Rd(e,t,n){let r=Xu(t),i=qu(t),a=n===`fixed`,o=wd(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=au(0);function l(){c.x=Td(i)}if(r||!r&&!a)if((Gu(t)!==`body`||$u(i))&&(s=pd(t)),r){let e=wd(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Ed(i,s):au(0),d=o.left+s.scrollLeft-c.x-u.x,f=o.top+s.scrollTop-c.y-u.y;return{x:d,y:f,width:o.width,height:o.height}}function zd(e){return fd(e).position===`static`}function Bd(e,t){if(!Xu(e)||fd(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return qu(e)===n&&(n=n.ownerDocument.body),n}function Vd(e,t){let n=Ku(e);if(rd(e))return n;if(!Xu(e)){let t=md(e);for(;t&&!dd(t);){if(Yu(t)&&!zd(t))return t;t=md(t)}return n}let r=Bd(e,t);for(;r&&td(r)&&zd(r);)r=Bd(r,t);return r&&dd(r)&&zd(r)&&!sd(r)?n:r||cd(e)||n}const Hd=async function(e){let t=this.getOffsetParent||Vd,n=this.getDimensions,r=await n(e.floating);return{reference:Rd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ud(e){return fd(e).direction===`rtl`}const Wd={convertOffsetParentRelativeRectToViewportRelativeRect:Dd,getDocumentElement:qu,getClippingRect:Id,getOffsetParent:Vd,getElementRects:Hd,getClientRects:Od,getDimensions:Ld,getScale:bd,isElement:Yu,isRTL:Ud};function Gd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Kd(e,t){let n=null,r,i=qu(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=iu(d),h=iu(i.clientWidth-(u+f)),g=iu(i.clientHeight-(d+p)),_=iu(u),v=-m+`px `+-h+`px `+-g+`px `+-_+`px`,y={rootMargin:v,threshold:nu(0,tu(1,c))||1},b=!0;function x(t){let n=t[0].intersectionRatio;if(n!==c){if(!b)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Gd(l,e.getBoundingClientRect())&&o(),b=!1}try{n=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,y)}n.observe(e)}return o(!0),a}function qd(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=yd(e),u=i||a?[...l?gd(l):[],...gd(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Kd(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?wd(e):null;c&&g();function g(){let t=wd(e);h&&!Gd(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const Jd=Bu,Yd=Vu,Xd=Pu,Zd=Uu,Qd=Lu,$d=Nu,ef=Hu,tf=(e,t,n)=>{let r=new Map,i={platform:Wd,...n},a={...i.platform,_c:r};return ju(e,t,{...i,platform:a})};var nf=typeof document<`u`,rf=function(){},af=nf?h:rf;function sf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!sf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!sf(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function cf(e){if(typeof window>`u`)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function lf(e,t){let n=cf(e);return Math.round(t*n)/n}function uf(t){let n=e.useRef(t);return af(()=>{n.current=t}),n}function df(t){t===void 0&&(t={});let{placement:n=`bottom`,strategy:r=`absolute`,middleware:i=[],platform:a,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=t,[d,f]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,m]=e.useState(i);sf(p,i)||m(i);let[h,g]=e.useState(null),[_,v]=e.useState(null),y=e.useCallback(e=>{e!==w.current&&(w.current=e,g(e))},[]),b=e.useCallback(e=>{e!==T.current&&(T.current=e,v(e))},[]),x=o||h,C=s||_,w=e.useRef(null),T=e.useRef(null),E=e.useRef(d),D=l!=null,O=uf(l),k=uf(a),A=uf(u),j=e.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:n,strategy:r,middleware:p};k.current&&(e.platform=k.current),tf(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!sf(E.current,t)&&(E.current=t,S.flushSync(()=>{f(t)}))})},[p,n,r,k,A]);af(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let M=e.useRef(!1);af(()=>(M.current=!0,()=>{M.current=!1}),[]),af(()=>{if(x&&(w.current=x),C&&(T.current=C),x&&C){if(O.current)return O.current(x,C,j);j()}},[x,C,j,O,D]);let N=e.useMemo(()=>({reference:w,floating:T,setReference:y,setFloating:b}),[y,b]),ee=e.useMemo(()=>({reference:x,floating:C}),[x,C]),te=e.useMemo(()=>{let e={position:r,left:0,top:0};if(!ee.floating)return e;let t=lf(ee.floating,d.x),n=lf(ee.floating,d.y);return c?{...e,transform:`translate(`+t+`px, `+n+`px)`,...cf(ee.floating)>=1.5&&{willChange:`transform`}}:{position:r,left:t,top:n}},[r,c,ee.floating,d.x,d.y]);return e.useMemo(()=>({...d,update:j,refs:N,elements:ee,floatingStyles:te}),[d,j,N,ee,te])}const ff=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:$d({element:r.current,padding:i}).fn(n):r?$d({element:r,padding:i}).fn(n):{}}}},pf=(e,t)=>({...Jd(e),options:[e,t]}),mf=(e,t)=>({...Yd(e),options:[e,t]}),hf=(e,t)=>({...ef(e),options:[e,t]}),gf=(e,t)=>({...Xd(e),options:[e,t]}),_f=(e,t)=>({...Zd(e),options:[e,t]}),vf=(e,t)=>({...Qd(e),options:[e,t]}),yf=(e,t)=>({...ff(e),options:[e,t]});var bf=`Arrow`,xf=e.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return b(B.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:b(`polygon`,{points:`0,0 30,0 15,10`})})});xf.displayName=bf;var Sf=xf;function Cf(t){let[n,r]=e.useState(void 0);return de(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let n=e[0],i,a;if(`borderBoxSize`in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=t.offsetWidth,a=t.offsetHeight;r({width:i,height:a})});return e.observe(t,{box:`border-box`}),()=>e.unobserve(t)}else r(void 0)},[t]),n}var wf=`Popper`,[Tf,Ef]=F(wf),[Df,Of]=Tf(wf),kf=t=>{let{__scopePopper:n,children:r}=t,[i,a]=e.useState(null);return b(Df,{scope:n,anchor:i,onAnchorChange:a,children:r})};kf.displayName=wf;var Af=`PopperAnchor`,jf=e.forwardRef((t,n)=>{let{__scopePopper:r,virtualRef:i,...a}=t,o=Of(Af,r),s=e.useRef(null),c=I(n,s),l=e.useRef(null);return e.useEffect(()=>{let e=l.current;l.current=i?.current||s.current,e!==l.current&&o.onAnchorChange(l.current)}),i?null:b(B.div,{...a,ref:c})});jf.displayName=Af;var Mf=`PopperContent`,[Nf,Pf]=Tf(Mf),Ff=e.forwardRef((t,n)=>{let{__scopePopper:r,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=`partial`,hideWhenDetached:p=!1,updatePositionStrategy:m=`optimized`,onPlaced:h,...g}=t,_=Of(Mf,r),[v,y]=e.useState(null),x=I(n,e=>y(e)),[S,C]=e.useState(null),w=Cf(S),T=w?.width??0,E=w?.height??0,D=i+(o===`center`?``:`-`+o),O=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},k=Array.isArray(u)?u:[u],A=k.length>0,j={padding:O,boundary:k.filter(zf),altBoundary:A},{refs:M,floatingStyles:N,placement:ee,isPositioned:te,middlewareData:P}=df({strategy:`fixed`,placement:D,whileElementsMounted:(...e)=>{let t=qd(...e,{animationFrame:m===`always`});return t},elements:{reference:_.anchor},middleware:[pf({mainAxis:a+E,alignmentAxis:s}),l&&mf({mainAxis:!0,crossAxis:!1,limiter:f===`partial`?hf():void 0,...j}),l&&gf({...j}),_f({...j,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),S&&yf({element:S,padding:c}),Bf({arrowWidth:T,arrowHeight:E}),p&&vf({strategy:`referenceHidden`,...j})]}),[ne,F]=Vf(ee),re=bl(h);de(()=>{te&&re?.()},[te,re]);let ie=P.arrow?.x,ae=P.arrow?.y,oe=P.arrow?.centerOffset!==0,[se,ce]=e.useState();return de(()=>{v&&ce(window.getComputedStyle(v).zIndex)},[v]),b(`div`,{ref:M.setFloating,"data-radix-popper-content-wrapper":``,style:{...N,transform:te?N.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(` `),...P.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:t.dir,children:b(Nf,{scope:r,placedSide:ne,onArrowChange:C,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:b(B.div,{"data-side":ne,"data-align":F,...g,ref:x,style:{...g.style,animation:te?void 0:`none`}})})})});Ff.displayName=Mf;var If=`PopperArrow`,Lf={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Rf=e.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Pf(If,n),a=Lf[i.placedSide];return b(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:b(Sf,{...r,ref:t,style:{...r.style,display:`block`}})})});Rf.displayName=If;function zf(e){return e!==null}var Bf=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a,s=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=Vf(n),d={start:`0%`,center:`50%`,end:`100%`}[u],f=(i.arrow?.x??0)+s/2,p=(i.arrow?.y??0)+c/2,m=``,h=``;return l===`bottom`?(m=o?d:`${f}px`,h=`${-c}px`):l===`top`?(m=o?d:`${f}px`,h=`${r.floating.height+c}px`):l===`right`?(m=`${-c}px`,h=o?d:`${p}px`):l===`left`&&(m=`${r.floating.width+c}px`,h=o?d:`${p}px`),{data:{x:m,y:h}}}});function Vf(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Hf=kf,Uf=jf,Wf=Ff,Gf=Rf,Kf=`Portal`,qf=e.forwardRef((t,n)=>{let{container:r,...i}=t,[a,o]=e.useState(!1);de(()=>o(!0),[]);let s=r||a&&globalThis?.document?.body;return s?C.createPortal(b(B.div,{...i,ref:n}),s):null});qf.displayName=Kf;var Jf=`rovingFocusGroup.onEntryFocus`,Yf={bubbles:!1,cancelable:!0},Xf=`RovingFocusGroup`,[Zf,Qf,$f]=ue(Xf),[ep,tp]=F(Xf,[$f]),[np,rp]=ep(Xf),ip=e.forwardRef((e,t)=>b(Zf.Provider,{scope:e.__scopeRovingFocusGroup,children:b(Zf.Slot,{scope:e.__scopeRovingFocusGroup,children:b(ap,{...e,ref:t})})}));ip.displayName=Xf;var ap=e.forwardRef((t,n)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=t,p=e.useRef(null),m=I(n,p),h=He(o),[g,_]=pe({prop:s,defaultProp:c??null,onChange:l,caller:Xf}),[v,y]=e.useState(!1),x=bl(u),S=Qf(r),C=e.useRef(!1),[w,T]=e.useState(0);return e.useEffect(()=>{let e=p.current;if(e)return e.addEventListener(Jf,x),()=>e.removeEventListener(Jf,x)},[x]),b(np,{scope:r,orientation:i,dir:h,loop:a,currentTabStopId:g,onItemFocus:e.useCallback(e=>_(e),[_]),onItemShiftTab:e.useCallback(()=>y(!0),[]),onFocusableItemAdd:e.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:e.useCallback(()=>T(e=>e-1),[]),children:b(B.div,{tabIndex:v||w===0?-1:0,"data-orientation":i,...f,ref:m,style:{outline:`none`,...t.style},onMouseDown:z(t.onMouseDown,()=>{C.current=!0}),onFocus:z(t.onFocus,e=>{let t=!C.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(Jf,Yf);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=S().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===g),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);dp(i,d)}}C.current=!1}),onBlur:z(t.onBlur,()=>y(!1))})})}),op=`RovingFocusGroupItem`,sp=e.forwardRef((t,n)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:o,children:s,...c}=t,l=Te(),u=o||l,d=rp(op,r),f=d.currentTabStopId===u,p=Qf(r),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:g}=d;return e.useEffect(()=>{if(i)return m(),()=>h()},[i,m,h]),b(Zf.ItemSlot,{scope:r,id:u,focusable:i,active:a,children:b(B.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:n,onMouseDown:z(t.onMouseDown,e=>{i?d.onItemFocus(u):e.preventDefault()}),onFocus:z(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:z(t.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){d.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=up(e,d.orientation,d.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=p().filter(e=>e.focusable),r=n.map(e=>e.ref.current);if(t===`last`)r.reverse();else if(t===`prev`||t===`next`){t===`prev`&&r.reverse();let n=r.indexOf(e.currentTarget);r=d.loop?fp(r,n+1):r.slice(n+1)}setTimeout(()=>dp(r))}}),children:typeof s==`function`?s({isCurrentTabStop:f,hasTabStop:g!=null}):s})})});sp.displayName=op;var cp={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function lp(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function up(e,t,n){let r=lp(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return cp[r]}function dp(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function fp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var pp=ip,mp=sp,hp=function(e){if(typeof document>`u`)return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},gp=new WeakMap,_p=new WeakMap,vp={},yp=0,bp=function(e){return e&&(e.host||bp(e.parentNode))},xp=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=bp(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Sp=function(e,t,n,r){var i=xp(t,Array.isArray(e)?e:[e]);vp[n]||(vp[n]=new WeakMap);var a=vp[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(gp.get(e)||0)+1,l=(a.get(e)||0)+1;gp.set(e,c),a.set(e,l),o.push(e),c===1&&i&&_p.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),yp++,function(){o.forEach(function(e){var t=gp.get(e)-1,i=a.get(e)-1;gp.set(e,t),a.set(e,i),t||(_p.has(e)||e.removeAttribute(r),_p.delete(e)),i||e.removeAttribute(n)}),yp--,yp||(gp=new WeakMap,gp=new WeakMap,_p=new WeakMap,vp={})}},Cp=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||hp(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Sp(r,i,n,`aria-hidden`)):function(){return null}},wp=function(){return wp=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},wp.apply(this,arguments)};function Tp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ep(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))}var Dp=`right-scroll-bar-position`,Op=`width-before-scroll-bar`,kp=`with-scroll-bars-hidden`,Ap=`--removed-body-scroll-bar-size`;function jp(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Mp(e,t){var n=v(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 Np=typeof window<`u`?e.useLayoutEffect:e.useEffect,Pp=new WeakMap;function Fp(e,t){var n=Mp(t||null,function(t){return e.forEach(function(e){return jp(e,t)})});return Np(function(){var t=Pp.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||jp(e,null)}),i.forEach(function(e){r.has(e)||jp(e,a)})}Pp.set(n,e)},[e]),n}function Ip(e){return e}function Lp(e,t){t===void 0&&(t=Ip);var n=[],r=!1,i={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}}}};return i}function Rp(e){e===void 0&&(e={});var t=Lp(null);return t.options=wp({async:!0,ssr:!1},e),t}var zp=function(t){var n=t.sideCar,r=Tp(t,[`sideCar`]);if(!n)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw Error(`Sidecar medium not found`);return e.createElement(i,wp({},r))};zp.isSideCarExport=!0;function Bp(e,t){return e.useMedium(t),zp}var Vp=Rp(),Hp=function(){},Up=e.forwardRef(function(t,n){var r=e.useRef(null),i=e.useState({onScrollCapture:Hp,onWheelCapture:Hp,onTouchMoveCapture:Hp}),a=i[0],o=i[1],s=t.forwardProps,c=t.children,l=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noRelative,h=t.noIsolation,g=t.inert,_=t.allowPinchZoom,v=t.as,y=v===void 0?`div`:v,b=t.gapMode,x=Tp(t,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=Fp([r,n]),w=wp(wp({},x),a);return e.createElement(e.Fragment,null,d&&e.createElement(S,{sideCar:Vp,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:o,allowPinchZoom:!!_,lockRef:r,gapMode:b}),s?e.cloneElement(e.Children.only(c),wp(wp({},w),{ref:C})):e.createElement(y,wp({},w,{className:l,ref:C}),c))});Up.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Up.classNames={fullWidth:Op,zeroRight:Dp};var Wp,Gp=function(){if(Wp)return Wp;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Kp(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Gp();return t&&e.setAttribute(`nonce`,t),e}function qp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Jp(e){var t=document.head||document.getElementsByTagName(`head`)[0];t.appendChild(e)}var Yp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Kp())&&(qp(t,n),Jp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xp=function(){var t=Yp();return function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])}},Zp=function(){var e=Xp(),t=function(t){var n=t.styles,r=t.dynamic;return e(n,r),null};return t},Qp={left:0,top:0,right:0,gap:0},$p=function(e){return parseInt(e||``,10)||0},em=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[$p(n),$p(r),$p(i)]},tm=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Qp;var t=em(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},nm=Zp(),rm=`data-scroll-locked`,im=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
1087
+ .${kp} {
1088
1088
  overflow: hidden ${r};
1089
1089
  padding-right: ${s}px ${r};
1090
1090
  }
1091
- body[${em}] {
1091
+ body[${rm}] {
1092
1092
  overflow: hidden ${r};
1093
1093
  overscroll-behavior: contain;
1094
1094
  ${[t&&`position: relative ${r};`,n===`margin`&&`
@@ -1101,39 +1101,39 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
1101
1101
  `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
1102
1102
  }
1103
1103
 
1104
- .${wp} {
1104
+ .${Dp} {
1105
1105
  right: ${s}px ${r};
1106
1106
  }
1107
1107
 
1108
- .${Tp} {
1108
+ .${Op} {
1109
1109
  margin-right: ${s}px ${r};
1110
1110
  }
1111
1111
 
1112
- .${wp} .${wp} {
1112
+ .${Dp} .${Dp} {
1113
1113
  right: 0 ${r};
1114
1114
  }
1115
1115
 
1116
- .${Tp} .${Tp} {
1116
+ .${Op} .${Op} {
1117
1117
  margin-right: 0 ${r};
1118
1118
  }
1119
1119
 
1120
- body[${em}] {
1121
- ${Dp}: ${s}px;
1120
+ body[${rm}] {
1121
+ ${Ap}: ${s}px;
1122
1122
  }
1123
- `},nm=function(){var e=parseInt(document.body.getAttribute(em)||`0`,10);return isFinite(e)?e:0},rm=function(){e.useEffect(function(){return document.body.setAttribute(em,(nm()+1).toString()),function(){var e=nm()-1;e<=0?document.body.removeAttribute(em):document.body.setAttribute(em,e.toString())}},[])},im=function(t){var n=t.noRelative,r=t.noImportant,i=t.gapMode,a=i===void 0?`margin`:i;rm();var o=e.useMemo(function(){return Qp(a)},[a]);return e.createElement($p,{styles:tm(o,!n,a,r?``:`!important`)})},am=!1;if(typeof window<`u`)try{var om=Object.defineProperty({},`passive`,{get:function(){return am=!0,!0}});window.addEventListener(`test`,om,om),window.removeEventListener(`test`,om,om)}catch{am=!1}var sm=am?{passive:!1}:!1,cm=function(e){return e.tagName===`TEXTAREA`},lm=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!cm(e)&&n[t]===`visible`)},um=function(e){return lm(e,`overflowY`)},dm=function(e){return lm(e,`overflowX`)},fm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host);var i=hm(e,r);if(i){var a=gm(e,r),o=a[1],s=a[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},mm=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},hm=function(e,t){return e===`v`?um(t):dm(t)},gm=function(e,t){return e===`v`?pm(t):mm(t)},_m=function(e,t){return e===`h`&&t===`rtl`?-1:1},vm=function(e,t,n,r,i){var a=_m(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=gm(e,s),m=p[0],h=p[1],g=p[2],_=h-g-a*m;(m||_)&&hm(e,s)&&(d+=_,f+=m);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},ym=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bm=function(e){return[e.deltaX,e.deltaY]},xm=function(e){return e&&`current`in e?e.current:e},Sm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Cm=function(e){return`
1123
+ `},am=function(){var e=parseInt(document.body.getAttribute(rm)||`0`,10);return isFinite(e)?e:0},om=function(){e.useEffect(function(){return document.body.setAttribute(rm,(am()+1).toString()),function(){var e=am()-1;e<=0?document.body.removeAttribute(rm):document.body.setAttribute(rm,e.toString())}},[])},sm=function(t){var n=t.noRelative,r=t.noImportant,i=t.gapMode,a=i===void 0?`margin`:i;om();var o=e.useMemo(function(){return tm(a)},[a]);return e.createElement(nm,{styles:im(o,!n,a,r?``:`!important`)})},cm=!1;if(typeof window<`u`)try{var lm=Object.defineProperty({},`passive`,{get:function(){return cm=!0,!0}});window.addEventListener(`test`,lm,lm),window.removeEventListener(`test`,lm,lm)}catch{cm=!1}var um=cm?{passive:!1}:!1,dm=function(e){return e.tagName===`TEXTAREA`},fm=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!dm(e)&&n[t]===`visible`)},pm=function(e){return fm(e,`overflowY`)},mm=function(e){return fm(e,`overflowX`)},hm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host);var i=vm(e,r);if(i){var a=ym(e,r),o=a[1],s=a[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},_m=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},vm=function(e,t){return e===`v`?pm(t):mm(t)},ym=function(e,t){return e===`v`?gm(t):_m(t)},bm=function(e,t){return e===`h`&&t===`rtl`?-1:1},xm=function(e,t,n,r,i){var a=bm(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=ym(e,s),m=p[0],h=p[1],g=p[2],_=h-g-a*m;(m||_)&&vm(e,s)&&(d+=_,f+=m);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Sm=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cm=function(e){return[e.deltaX,e.deltaY]},wm=function(e){return e&&`current`in e?e.current:e},Tm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Em=function(e){return`
1124
1124
  .block-interactivity-${e} {pointer-events: none;}
1125
1125
  .allow-interactivity-${e} {pointer-events: all;}
1126
- `},wm=0,Tm=[];function Em(t){var n=e.useRef([]),r=e.useRef([0,0]),i=e.useRef(),a=e.useState(wm++)[0],o=e.useState(Jp)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add(`block-interactivity-${a}`);var e=Cp([t.lockRef.current],(t.shards||[]).map(xm),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),e.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var n=ym(e),a=r.current,o=`deltaX`in e?e.deltaX:a[0]-n[0],c=`deltaY`in e?e.deltaY:a[1]-n[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode,m=p?p===u||p.contains(u):!1;if(m)return!1;var h=fm(d,u);if(!h)return!0;if(h?l=d:(l=d===`v`?`h`:`v`,h=fm(d,u)),!h)return!1;if(!i.current&&`changedTouches`in e&&(o||c)&&(i.current=l),!l)return!0;var g=i.current||l;return vm(g,t,e,g===`h`?o:c,!0)},[]),l=e.useCallback(function(e){var t=e;if(!(!Tm.length||Tm[Tm.length-1]!==o)){var r=`deltaY`in t?bm(t):ym(t),i=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&Sm(e.delta,r)})[0];if(i&&i.should){t.cancelable&&t.preventDefault();return}if(!i){var a=(s.current.shards||[]).map(xm).filter(Boolean).filter(function(e){return e.contains(t.target)}),l=a.length>0?c(t,a[0]):!s.current.noIsolation;l&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,r,i){var a={name:e,delta:t,target:r,should:i,shadowParent:Dm(r)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),d=e.useCallback(function(e){r.current=ym(e),i.current=void 0},[]),f=e.useCallback(function(e){u(e.type,bm(e),e.target,c(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,ym(e),e.target,c(e,t.lockRef.current))},[]);e.useEffect(function(){return Tm.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,sm),document.addEventListener(`touchmove`,l,sm),document.addEventListener(`touchstart`,d,sm),function(){Tm=Tm.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,sm),document.removeEventListener(`touchmove`,l,sm),document.removeEventListener(`touchstart`,d,sm)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(o,{styles:Cm(a)}):null,m?e.createElement(im,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Dm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Om=Lp(Rp,Em),km=e.forwardRef(function(t,n){return e.createElement(Bp,xp({},t,{ref:n,sideCar:Om}))});km.classNames=Bp.classNames;var Am=km,jm=[`Enter`,` `],Mm=[`ArrowDown`,`PageUp`,`Home`],Nm=[`ArrowUp`,`PageDown`,`End`],Pm=[...Mm,...Nm],Fm={ltr:[...jm,`ArrowRight`],rtl:[...jm,`ArrowLeft`]},Im={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},Lm=`Menu`,[Rm,zm,Bm]=ue(Lm),[Vm,Hm]=F(Lm,[Bm,Cf,Qf]),Um=Cf(),Wm=Qf(),[Gm,Km]=Vm(Lm),[qm,Jm]=Vm(Lm),Ym=t=>{let{__scopeMenu:n,open:r=!1,children:i,dir:a,onOpenChange:o,modal:s=!0}=t,c=Um(n),[l,u]=e.useState(null),d=e.useRef(!1),f=_l(o),p=He(a);return e.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),b(zf,{...c,children:b(Gm,{scope:n,open:r,onOpenChange:f,content:l,onContentChange:u,children:b(qm,{scope:n,onClose:e.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:i})})})};Ym.displayName=Lm;var Xm=`MenuAnchor`,Zm=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Um(n);return b(Bf,{...i,...r,ref:t})});Zm.displayName=Xm;var Qm=`MenuPortal`,[$m,eh]=Vm(Qm,{forceMount:void 0}),th=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Km(Qm,t);return b($m,{scope:t,forceMount:n,children:b(ye,{present:n||a.open,children:b(Wf,{asChild:!0,container:i,children:r})})})};th.displayName=Qm;var nh=`MenuContent`,[rh,ih]=Vm(nh),ah=e.forwardRef((e,t)=>{let n=eh(nh,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Km(nh,e.__scopeMenu),o=Jm(nh,e.__scopeMenu);return b(Rm.Provider,{scope:e.__scopeMenu,children:b(ye,{present:r||a.open,children:b(Rm.Slot,{scope:e.__scopeMenu,children:o.modal?b(oh,{...i,ref:t}):b(sh,{...i,ref:t})})})})}),oh=e.forwardRef((t,n)=>{let r=Km(nh,t.__scopeMenu),i=e.useRef(null),a=I(n,i);return e.useEffect(()=>{let e=i.current;if(e)return bp(e)},[]),b(lh,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:z(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),sh=e.forwardRef((e,t)=>{let n=Km(nh,e.__scopeMenu);return b(lh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ch=oe(`MenuContent.ScrollLock`),lh=e.forwardRef((t,n)=>{let{__scopeMenu:r,loop:i=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,disableOutsideScroll:h,...g}=t,_=Km(nh,r),v=Jm(nh,r),y=Um(r),x=Wm(r),S=zm(r),[C,w]=e.useState(null),T=e.useRef(null),E=I(n,T,_.onContentChange),D=e.useRef(0),O=e.useRef(``),k=e.useRef(0),A=e.useRef(null),j=e.useRef(`right`),M=e.useRef(0),N=h?Am:e.Fragment,ee=h?{as:ch,allowPinchZoom:!0}:void 0,te=e=>{let t=O.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=n.map(e=>e.textValue),o=qh(a,t,i),s=n.find(e=>e.textValue===o)?.ref.current;(function e(t){O.current=t,window.clearTimeout(D.current),t!==``&&(D.current=window.setTimeout(()=>e(``),1e3))})(t),s&&setTimeout(()=>s.focus())};e.useEffect(()=>()=>window.clearTimeout(D.current),[]),Nl();let P=e.useCallback(e=>{let t=j.current===A.current?.side;return t&&Yh(e,A.current?.area)},[]);return b(rh,{scope:r,searchRef:O,onItemEnter:e.useCallback(e=>{P(e)&&e.preventDefault()},[P]),onItemLeave:e.useCallback(e=>{P(e)||(T.current?.focus(),w(null))},[P]),onTriggerLeave:e.useCallback(e=>{P(e)&&e.preventDefault()},[P]),pointerGraceTimerRef:k,onPointerGraceIntentChange:e.useCallback(e=>{A.current=e},[]),children:b(N,{...ee,children:b(zl,{asChild:!0,trapped:a,onMountAutoFocus:z(o,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:b(Tl,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,children:b(up,{asChild:!0,...x,dir:v.dir,orientation:`vertical`,loop:i,currentTabStopId:C,onCurrentTabStopIdChange:w,onEntryFocus:z(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:b(Vf,{role:`menu`,"aria-orientation":`vertical`,"data-state":Hh(_.open),"data-radix-menu-content":``,dir:v.dir,...y,...g,ref:E,style:{outline:`none`,...g.style},onKeyDown:z(g.onKeyDown,e=>{let t=e.target,n=t.closest(`[data-radix-menu-content]`)===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=e.key.length===1;n&&(e.key===`Tab`&&e.preventDefault(),!r&&i&&te(e.key));let a=T.current;if(e.target!==a||!Pm.includes(e.key))return;e.preventDefault();let o=S().filter(e=>!e.disabled),s=o.map(e=>e.ref.current);Nm.includes(e.key)&&s.reverse(),Gh(s)}),onBlur:z(t.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),O.current=``)}),onPointerMove:z(t.onPointerMove,Xh(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?`right`:`left`;j.current=t,M.current=e.clientX}}))})})})})})})});ah.displayName=nh;var uh=`MenuGroup`,dh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return b(B.div,{role:`group`,...r,ref:t})});dh.displayName=uh;var fh=`MenuLabel`,ph=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return b(B.div,{...r,ref:t})});ph.displayName=fh;var mh=`MenuItem`,hh=`menu.itemSelect`,gh=e.forwardRef((t,n)=>{let{disabled:r=!1,onSelect:i,...a}=t,o=e.useRef(null),s=Jm(mh,t.__scopeMenu),c=ih(mh,t.__scopeMenu),l=I(n,o),u=e.useRef(!1),d=()=>{let e=o.current;if(!r&&e){let t=new CustomEvent(hh,{bubbles:!0,cancelable:!0});e.addEventListener(hh,e=>i?.(e),{once:!0}),_e(e,t),t.defaultPrevented?u.current=!1:s.onClose()}};return b(_h,{...a,ref:l,disabled:r,onClick:z(t.onClick,d),onPointerDown:e=>{t.onPointerDown?.(e),u.current=!0},onPointerUp:z(t.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:z(t.onKeyDown,e=>{let t=c.searchRef.current!==``;r||t&&e.key===` `||jm.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});gh.displayName=mh;var _h=e.forwardRef((t,n)=>{let{__scopeMenu:r,disabled:i=!1,textValue:a,...o}=t,s=ih(mh,r),c=Wm(r),l=e.useRef(null),u=I(n,l),[d,f]=e.useState(!1),[p,m]=e.useState(``);return e.useEffect(()=>{let e=l.current;e&&m((e.textContent??``).trim())},[o.children]),b(Rm.ItemSlot,{scope:r,disabled:i,textValue:a??p,children:b(dp,{asChild:!0,...c,focusable:!i,children:b(B.div,{role:`menuitem`,"data-highlighted":d?``:void 0,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,...o,ref:u,onPointerMove:z(t.onPointerMove,Xh(e=>{if(i)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus({preventScroll:!0})}})),onPointerLeave:z(t.onPointerLeave,Xh(e=>s.onItemLeave(e))),onFocus:z(t.onFocus,()=>f(!0)),onBlur:z(t.onBlur,()=>f(!1))})})})}),vh=`MenuCheckboxItem`,yh=e.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return b(Dh,{scope:e.__scopeMenu,checked:n,children:b(gh,{role:`menuitemcheckbox`,"aria-checked":Uh(n)?`mixed`:n,...i,ref:t,"data-state":Wh(n),onSelect:z(i.onSelect,()=>r?.(Uh(n)?!0:!n),{checkForDefaultPrevented:!1})})})});yh.displayName=vh;var bh=`MenuRadioGroup`,[xh,Sh]=Vm(bh,{value:void 0,onValueChange:()=>{}}),Ch=e.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=_l(r);return b(xh,{scope:e.__scopeMenu,value:n,onValueChange:a,children:b(dh,{...i,ref:t})})});Ch.displayName=bh;var wh=`MenuRadioItem`,Th=e.forwardRef((e,t)=>{let{value:n,...r}=e,i=Sh(wh,e.__scopeMenu),a=n===i.value;return b(Dh,{scope:e.__scopeMenu,checked:a,children:b(gh,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Wh(a),onSelect:z(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Th.displayName=wh;var Eh=`MenuItemIndicator`,[Dh,Oh]=Vm(Eh,{checked:!1}),kh=e.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=Oh(Eh,n);return b(ye,{present:r||Uh(a.checked)||a.checked===!0,children:b(B.span,{...i,ref:t,"data-state":Wh(a.checked)})})});kh.displayName=Eh;var Ah=`MenuSeparator`,jh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return b(B.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});jh.displayName=Ah;var Mh=`MenuArrow`,Nh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Um(n);return b(Hf,{...i,...r,ref:t})});Nh.displayName=Mh;var Ph=`MenuSub`,[Fh,Ih]=Vm(Ph),Lh=t=>{let{__scopeMenu:n,children:r,open:i=!1,onOpenChange:a}=t,o=Km(Ph,n),s=Um(n),[c,l]=e.useState(null),[u,d]=e.useState(null),f=_l(a);return e.useEffect(()=>(o.open===!1&&f(!1),()=>f(!1)),[o.open,f]),b(zf,{...s,children:b(Gm,{scope:n,open:i,onOpenChange:f,content:u,onContentChange:d,children:b(Fh,{scope:n,contentId:Te(),triggerId:Te(),trigger:c,onTriggerChange:l,children:r})})})};Lh.displayName=Ph;var Rh=`MenuSubTrigger`,zh=e.forwardRef((t,n)=>{let r=Km(Rh,t.__scopeMenu),i=Jm(Rh,t.__scopeMenu),a=Ih(Rh,t.__scopeMenu),o=ih(Rh,t.__scopeMenu),s=e.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=o,u={__scopeMenu:t.__scopeMenu},d=e.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return e.useEffect(()=>d,[d]),e.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),l(null)}},[c,l]),b(Zm,{asChild:!0,...u,children:b(_h,{id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":r.open,"aria-controls":a.contentId,"data-state":Hh(r.open),...t,ref:ae(n,a.onTriggerChange),onClick:e=>{t.onClick?.(e),!(t.disabled||e.defaultPrevented)&&(e.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:z(t.onPointerMove,Xh(e=>{o.onItemEnter(e),!e.defaultPrevented&&!t.disabled&&!r.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:z(t.onPointerLeave,Xh(e=>{d();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,i=n===`right`,a=i?-5:5,s=t[i?`left`:`right`],l=t[i?`right`:`left`];o.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:s,y:t.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:z(t.onKeyDown,e=>{let n=o.searchRef.current!==``;t.disabled||n&&e.key===` `||Fm[i.dir].includes(e.key)&&(r.onOpenChange(!0),r.content?.focus(),e.preventDefault())})})})});zh.displayName=Rh;var Bh=`MenuSubContent`,Vh=e.forwardRef((t,n)=>{let r=eh(nh,t.__scopeMenu),{forceMount:i=r.forceMount,...a}=t,o=Km(nh,t.__scopeMenu),s=Jm(nh,t.__scopeMenu),c=Ih(Bh,t.__scopeMenu),l=e.useRef(null),u=I(n,l);return b(Rm.Provider,{scope:t.__scopeMenu,children:b(ye,{present:i||o.open,children:b(Rm.Slot,{scope:t.__scopeMenu,children:b(lh,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:`start`,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:z(t.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:z(t.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:z(t.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Im[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});Vh.displayName=Bh;function Hh(e){return e?`open`:`closed`}function Uh(e){return e===`indeterminate`}function Wh(e){return Uh(e)?`indeterminate`:e?`checked`:`unchecked`}function Gh(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Kh(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function qh(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0]),i=r?t[0]:t,a=n?e.indexOf(n):-1,o=Kh(e,Math.max(a,0)),s=i.length===1;s&&(o=o.filter(e=>e!==n));let c=o.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return c===n?void 0:c}function Jh(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y,f=l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c;f&&(i=!i)}return i}function Yh(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return Jh(n,t)}function Xh(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Zh=Ym,Qh=Zm,$h=th,eg=ah,tg=dh,ng=ph,rg=gh,ig=yh,ag=Ch,og=Th,sg=kh,cg=jh,lg=Nh,ug=Lh,dg=zh,fg=Vh,pg=`DropdownMenu`,[mg,hg]=F(pg,[Hm]),gg=Hm(),[_g,vg]=mg(pg),yg=t=>{let{__scopeDropdownMenu:n,children:r,dir:i,open:a,defaultOpen:o,onOpenChange:s,modal:c=!0}=t,l=gg(n),u=e.useRef(null),[d,f]=pe({prop:a,defaultProp:o??!1,onChange:s,caller:pg});return b(_g,{scope:n,triggerId:Te(),triggerRef:u,contentId:Te(),open:d,onOpenChange:f,onOpenToggle:e.useCallback(()=>f(e=>!e),[f]),modal:c,children:b(Zh,{...l,open:d,onOpenChange:f,dir:i,modal:c,children:r})})};yg.displayName=pg;var bg=`DropdownMenuTrigger`,xg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=vg(bg,n),o=gg(n);return b(Qh,{asChild:!0,...o,children:b(B.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:ae(t,a.triggerRef),onPointerDown:z(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:z(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});xg.displayName=bg;var Sg=`DropdownMenuPortal`,Cg=e=>{let{__scopeDropdownMenu:t,...n}=e,r=gg(t);return b($h,{...r,...n})};Cg.displayName=Sg;var wg=`DropdownMenuContent`,Tg=e.forwardRef((t,n)=>{let{__scopeDropdownMenu:r,...i}=t,a=vg(wg,r),o=gg(r),s=e.useRef(!1);return b(eg,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...i,ref:n,onCloseAutoFocus:z(t.onCloseAutoFocus,e=>{s.current||a.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:z(t.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!a.modal||r)&&(s.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Tg.displayName=wg;var Eg=`DropdownMenuGroup`,Dg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=gg(n);return b(tg,{...i,...r,ref:t})});Dg.displayName=Eg;var Og=`DropdownMenuLabel`,kg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=gg(n);return b(ng,{...i,...r,ref:t})});kg.displayName=Og;var Ag=`DropdownMenuItem`,jg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=gg(n);return b(rg,{...i,...r,ref:t})});jg.displayName=Ag;var Mg=`DropdownMenuCheckboxItem`,Ng=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=gg(n);return b(ig,{...i,...r,ref:t})});Ng.displayName=Mg;var Pg=`DropdownMenuRadioGroup`,Fg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=gg(n);return b(ag,{...i,...r,ref:t})});Fg.displayName=Pg;var Ig=`DropdownMenuRadioItem`,Lg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=gg(n);return b(og,{...i,...r,ref:t})});Lg.displayName=Ig;var Rg=`DropdownMenuItemIndicator`,zg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=gg(n);return b(sg,{...i,...r,ref:t})});zg.displayName=Rg;var Bg=`DropdownMenuSeparator`,Vg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=gg(n);return b(cg,{...i,...r,ref:t})});Vg.displayName=Bg;var Hg=`DropdownMenuArrow`,Ug=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=gg(n);return b(lg,{...i,...r,ref:t})});Ug.displayName=Hg;var Wg=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=gg(t),[s,c]=pe({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return b(ug,{...o,open:s,onOpenChange:c,children:n})},Gg=`DropdownMenuSubTrigger`,Kg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=gg(n);return b(dg,{...i,...r,ref:t})});Kg.displayName=Gg;var qg=`DropdownMenuSubContent`,Jg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=gg(n);return b(fg,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Jg.displayName=qg;var Yg=yg,Xg=xg,Zg=Cg,Qg=Tg,$g=kg,e_=jg,t_=Vg,n_=Ug,r_=Wg,i_=Kg,a_=Jg;const o_=`
1126
+ `},Dm=0,Om=[];function km(t){var n=e.useRef([]),r=e.useRef([0,0]),i=e.useRef(),a=e.useState(Dm++)[0],o=e.useState(Zp)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add(`block-interactivity-${a}`);var e=Ep([t.lockRef.current],(t.shards||[]).map(wm),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),e.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var n=Sm(e),a=r.current,o=`deltaX`in e?e.deltaX:a[0]-n[0],c=`deltaY`in e?e.deltaY:a[1]-n[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode,m=p?p===u||p.contains(u):!1;if(m)return!1;var h=hm(d,u);if(!h)return!0;if(h?l=d:(l=d===`v`?`h`:`v`,h=hm(d,u)),!h)return!1;if(!i.current&&`changedTouches`in e&&(o||c)&&(i.current=l),!l)return!0;var g=i.current||l;return xm(g,t,e,g===`h`?o:c,!0)},[]),l=e.useCallback(function(e){var t=e;if(!(!Om.length||Om[Om.length-1]!==o)){var r=`deltaY`in t?Cm(t):Sm(t),i=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&Tm(e.delta,r)})[0];if(i&&i.should){t.cancelable&&t.preventDefault();return}if(!i){var a=(s.current.shards||[]).map(wm).filter(Boolean).filter(function(e){return e.contains(t.target)}),l=a.length>0?c(t,a[0]):!s.current.noIsolation;l&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,r,i){var a={name:e,delta:t,target:r,should:i,shadowParent:Am(r)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),d=e.useCallback(function(e){r.current=Sm(e),i.current=void 0},[]),f=e.useCallback(function(e){u(e.type,Cm(e),e.target,c(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,Sm(e),e.target,c(e,t.lockRef.current))},[]);e.useEffect(function(){return Om.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,um),document.addEventListener(`touchmove`,l,um),document.addEventListener(`touchstart`,d,um),function(){Om=Om.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,um),document.removeEventListener(`touchmove`,l,um),document.removeEventListener(`touchstart`,d,um)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(o,{styles:Em(a)}):null,m?e.createElement(sm,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Am(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var jm=Bp(Vp,km),Mm=e.forwardRef(function(t,n){return e.createElement(Up,wp({},t,{ref:n,sideCar:jm}))});Mm.classNames=Up.classNames;var Nm=Mm,Pm=[`Enter`,` `],Fm=[`ArrowDown`,`PageUp`,`Home`],Im=[`ArrowUp`,`PageDown`,`End`],Lm=[...Fm,...Im],Rm={ltr:[...Pm,`ArrowRight`],rtl:[...Pm,`ArrowLeft`]},zm={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},Bm=`Menu`,[Vm,Hm,Um]=ue(Bm),[Wm,Gm]=F(Bm,[Um,Ef,tp]),Km=Ef(),qm=tp(),[Jm,Ym]=Wm(Bm),[Xm,Zm]=Wm(Bm),Qm=t=>{let{__scopeMenu:n,open:r=!1,children:i,dir:a,onOpenChange:o,modal:s=!0}=t,c=Km(n),[l,u]=e.useState(null),d=e.useRef(!1),f=bl(o),p=He(a);return e.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),b(Hf,{...c,children:b(Jm,{scope:n,open:r,onOpenChange:f,content:l,onContentChange:u,children:b(Xm,{scope:n,onClose:e.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:i})})})};Qm.displayName=Bm;var $m=`MenuAnchor`,eh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Km(n);return b(Uf,{...i,...r,ref:t})});eh.displayName=$m;var th=`MenuPortal`,[nh,rh]=Wm(th,{forceMount:void 0}),ih=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Ym(th,t);return b(nh,{scope:t,forceMount:n,children:b(ye,{present:n||a.open,children:b(qf,{asChild:!0,container:i,children:r})})})};ih.displayName=th;var ah=`MenuContent`,[oh,sh]=Wm(ah),ch=e.forwardRef((e,t)=>{let n=rh(ah,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Ym(ah,e.__scopeMenu),o=Zm(ah,e.__scopeMenu);return b(Vm.Provider,{scope:e.__scopeMenu,children:b(ye,{present:r||a.open,children:b(Vm.Slot,{scope:e.__scopeMenu,children:o.modal?b(lh,{...i,ref:t}):b(uh,{...i,ref:t})})})})}),lh=e.forwardRef((t,n)=>{let r=Ym(ah,t.__scopeMenu),i=e.useRef(null),a=I(n,i);return e.useEffect(()=>{let e=i.current;if(e)return Cp(e)},[]),b(fh,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:z(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),uh=e.forwardRef((e,t)=>{let n=Ym(ah,e.__scopeMenu);return b(fh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),dh=oe(`MenuContent.ScrollLock`),fh=e.forwardRef((t,n)=>{let{__scopeMenu:r,loop:i=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,disableOutsideScroll:h,...g}=t,_=Ym(ah,r),v=Zm(ah,r),y=Km(r),x=qm(r),S=Hm(r),[C,w]=e.useState(null),T=e.useRef(null),E=I(n,T,_.onContentChange),D=e.useRef(0),O=e.useRef(``),k=e.useRef(0),A=e.useRef(null),j=e.useRef(`right`),M=e.useRef(0),N=h?Nm:e.Fragment,ee=h?{as:dh,allowPinchZoom:!0}:void 0,te=e=>{let t=O.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=n.map(e=>e.textValue),o=Xh(a,t,i),s=n.find(e=>e.textValue===o)?.ref.current;(function e(t){O.current=t,window.clearTimeout(D.current),t!==``&&(D.current=window.setTimeout(()=>e(``),1e3))})(t),s&&setTimeout(()=>s.focus())};e.useEffect(()=>()=>window.clearTimeout(D.current),[]),Il();let P=e.useCallback(e=>{let t=j.current===A.current?.side;return t&&Qh(e,A.current?.area)},[]);return b(oh,{scope:r,searchRef:O,onItemEnter:e.useCallback(e=>{P(e)&&e.preventDefault()},[P]),onItemLeave:e.useCallback(e=>{P(e)||(T.current?.focus(),w(null))},[P]),onTriggerLeave:e.useCallback(e=>{P(e)&&e.preventDefault()},[P]),pointerGraceTimerRef:k,onPointerGraceIntentChange:e.useCallback(e=>{A.current=e},[]),children:b(N,{...ee,children:b(Hl,{asChild:!0,trapped:a,onMountAutoFocus:z(o,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:b(Ol,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,children:b(pp,{asChild:!0,...x,dir:v.dir,orientation:`vertical`,loop:i,currentTabStopId:C,onCurrentTabStopIdChange:w,onEntryFocus:z(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:b(Wf,{role:`menu`,"aria-orientation":`vertical`,"data-state":Gh(_.open),"data-radix-menu-content":``,dir:v.dir,...y,...g,ref:E,style:{outline:`none`,...g.style},onKeyDown:z(g.onKeyDown,e=>{let t=e.target,n=t.closest(`[data-radix-menu-content]`)===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=e.key.length===1;n&&(e.key===`Tab`&&e.preventDefault(),!r&&i&&te(e.key));let a=T.current;if(e.target!==a||!Lm.includes(e.key))return;e.preventDefault();let o=S().filter(e=>!e.disabled),s=o.map(e=>e.ref.current);Im.includes(e.key)&&s.reverse(),Jh(s)}),onBlur:z(t.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),O.current=``)}),onPointerMove:z(t.onPointerMove,$h(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?`right`:`left`;j.current=t,M.current=e.clientX}}))})})})})})})});ch.displayName=ah;var ph=`MenuGroup`,mh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return b(B.div,{role:`group`,...r,ref:t})});mh.displayName=ph;var hh=`MenuLabel`,gh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return b(B.div,{...r,ref:t})});gh.displayName=hh;var _h=`MenuItem`,vh=`menu.itemSelect`,yh=e.forwardRef((t,n)=>{let{disabled:r=!1,onSelect:i,...a}=t,o=e.useRef(null),s=Zm(_h,t.__scopeMenu),c=sh(_h,t.__scopeMenu),l=I(n,o),u=e.useRef(!1),d=()=>{let e=o.current;if(!r&&e){let t=new CustomEvent(vh,{bubbles:!0,cancelable:!0});e.addEventListener(vh,e=>i?.(e),{once:!0}),_e(e,t),t.defaultPrevented?u.current=!1:s.onClose()}};return b(bh,{...a,ref:l,disabled:r,onClick:z(t.onClick,d),onPointerDown:e=>{t.onPointerDown?.(e),u.current=!0},onPointerUp:z(t.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:z(t.onKeyDown,e=>{let t=c.searchRef.current!==``;r||t&&e.key===` `||Pm.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});yh.displayName=_h;var bh=e.forwardRef((t,n)=>{let{__scopeMenu:r,disabled:i=!1,textValue:a,...o}=t,s=sh(_h,r),c=qm(r),l=e.useRef(null),u=I(n,l),[d,f]=e.useState(!1),[p,m]=e.useState(``);return e.useEffect(()=>{let e=l.current;e&&m((e.textContent??``).trim())},[o.children]),b(Vm.ItemSlot,{scope:r,disabled:i,textValue:a??p,children:b(mp,{asChild:!0,...c,focusable:!i,children:b(B.div,{role:`menuitem`,"data-highlighted":d?``:void 0,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,...o,ref:u,onPointerMove:z(t.onPointerMove,$h(e=>{if(i)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus({preventScroll:!0})}})),onPointerLeave:z(t.onPointerLeave,$h(e=>s.onItemLeave(e))),onFocus:z(t.onFocus,()=>f(!0)),onBlur:z(t.onBlur,()=>f(!1))})})})}),xh=`MenuCheckboxItem`,Sh=e.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return b(Ah,{scope:e.__scopeMenu,checked:n,children:b(yh,{role:`menuitemcheckbox`,"aria-checked":Kh(n)?`mixed`:n,...i,ref:t,"data-state":qh(n),onSelect:z(i.onSelect,()=>r?.(Kh(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Sh.displayName=xh;var Ch=`MenuRadioGroup`,[wh,Th]=Wm(Ch,{value:void 0,onValueChange:()=>{}}),Eh=e.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=bl(r);return b(wh,{scope:e.__scopeMenu,value:n,onValueChange:a,children:b(mh,{...i,ref:t})})});Eh.displayName=Ch;var Dh=`MenuRadioItem`,Oh=e.forwardRef((e,t)=>{let{value:n,...r}=e,i=Th(Dh,e.__scopeMenu),a=n===i.value;return b(Ah,{scope:e.__scopeMenu,checked:a,children:b(yh,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":qh(a),onSelect:z(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Oh.displayName=Dh;var kh=`MenuItemIndicator`,[Ah,jh]=Wm(kh,{checked:!1}),Mh=e.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=jh(kh,n);return b(ye,{present:r||Kh(a.checked)||a.checked===!0,children:b(B.span,{...i,ref:t,"data-state":qh(a.checked)})})});Mh.displayName=kh;var Nh=`MenuSeparator`,Ph=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return b(B.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});Ph.displayName=Nh;var Fh=`MenuArrow`,Ih=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Km(n);return b(Gf,{...i,...r,ref:t})});Ih.displayName=Fh;var Lh=`MenuSub`,[Rh,zh]=Wm(Lh),Bh=t=>{let{__scopeMenu:n,children:r,open:i=!1,onOpenChange:a}=t,o=Ym(Lh,n),s=Km(n),[c,l]=e.useState(null),[u,d]=e.useState(null),f=bl(a);return e.useEffect(()=>(o.open===!1&&f(!1),()=>f(!1)),[o.open,f]),b(Hf,{...s,children:b(Jm,{scope:n,open:i,onOpenChange:f,content:u,onContentChange:d,children:b(Rh,{scope:n,contentId:Te(),triggerId:Te(),trigger:c,onTriggerChange:l,children:r})})})};Bh.displayName=Lh;var Vh=`MenuSubTrigger`,Hh=e.forwardRef((t,n)=>{let r=Ym(Vh,t.__scopeMenu),i=Zm(Vh,t.__scopeMenu),a=zh(Vh,t.__scopeMenu),o=sh(Vh,t.__scopeMenu),s=e.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=o,u={__scopeMenu:t.__scopeMenu},d=e.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return e.useEffect(()=>d,[d]),e.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),l(null)}},[c,l]),b(eh,{asChild:!0,...u,children:b(bh,{id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":r.open,"aria-controls":a.contentId,"data-state":Gh(r.open),...t,ref:ae(n,a.onTriggerChange),onClick:e=>{t.onClick?.(e),!(t.disabled||e.defaultPrevented)&&(e.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:z(t.onPointerMove,$h(e=>{o.onItemEnter(e),!e.defaultPrevented&&!t.disabled&&!r.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:z(t.onPointerLeave,$h(e=>{d();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,i=n===`right`,a=i?-5:5,s=t[i?`left`:`right`],l=t[i?`right`:`left`];o.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:s,y:t.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:z(t.onKeyDown,e=>{let n=o.searchRef.current!==``;t.disabled||n&&e.key===` `||Rm[i.dir].includes(e.key)&&(r.onOpenChange(!0),r.content?.focus(),e.preventDefault())})})})});Hh.displayName=Vh;var Uh=`MenuSubContent`,Wh=e.forwardRef((t,n)=>{let r=rh(ah,t.__scopeMenu),{forceMount:i=r.forceMount,...a}=t,o=Ym(ah,t.__scopeMenu),s=Zm(ah,t.__scopeMenu),c=zh(Uh,t.__scopeMenu),l=e.useRef(null),u=I(n,l);return b(Vm.Provider,{scope:t.__scopeMenu,children:b(ye,{present:i||o.open,children:b(Vm.Slot,{scope:t.__scopeMenu,children:b(fh,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:`start`,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:z(t.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:z(t.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:z(t.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=zm[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});Wh.displayName=Uh;function Gh(e){return e?`open`:`closed`}function Kh(e){return e===`indeterminate`}function qh(e){return Kh(e)?`indeterminate`:e?`checked`:`unchecked`}function Jh(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Yh(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Xh(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0]),i=r?t[0]:t,a=n?e.indexOf(n):-1,o=Yh(e,Math.max(a,0)),s=i.length===1;s&&(o=o.filter(e=>e!==n));let c=o.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return c===n?void 0:c}function Zh(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y,f=l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c;f&&(i=!i)}return i}function Qh(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return Zh(n,t)}function $h(e){return t=>t.pointerType===`mouse`?e(t):void 0}var eg=Qm,tg=eh,ng=ih,rg=ch,ig=mh,ag=gh,og=yh,sg=Sh,cg=Eh,lg=Oh,ug=Mh,dg=Ph,fg=Ih,pg=Bh,mg=Hh,hg=Wh,gg=`DropdownMenu`,[_g,vg]=F(gg,[Gm]),yg=Gm(),[bg,xg]=_g(gg),Sg=t=>{let{__scopeDropdownMenu:n,children:r,dir:i,open:a,defaultOpen:o,onOpenChange:s,modal:c=!0}=t,l=yg(n),u=e.useRef(null),[d,f]=pe({prop:a,defaultProp:o??!1,onChange:s,caller:gg});return b(bg,{scope:n,triggerId:Te(),triggerRef:u,contentId:Te(),open:d,onOpenChange:f,onOpenToggle:e.useCallback(()=>f(e=>!e),[f]),modal:c,children:b(eg,{...l,open:d,onOpenChange:f,dir:i,modal:c,children:r})})};Sg.displayName=gg;var Cg=`DropdownMenuTrigger`,wg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=xg(Cg,n),o=yg(n);return b(tg,{asChild:!0,...o,children:b(B.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:ae(t,a.triggerRef),onPointerDown:z(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:z(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});wg.displayName=Cg;var Tg=`DropdownMenuPortal`,Eg=e=>{let{__scopeDropdownMenu:t,...n}=e,r=yg(t);return b(ng,{...r,...n})};Eg.displayName=Tg;var Dg=`DropdownMenuContent`,Og=e.forwardRef((t,n)=>{let{__scopeDropdownMenu:r,...i}=t,a=xg(Dg,r),o=yg(r),s=e.useRef(!1);return b(rg,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...i,ref:n,onCloseAutoFocus:z(t.onCloseAutoFocus,e=>{s.current||a.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:z(t.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!a.modal||r)&&(s.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Og.displayName=Dg;var kg=`DropdownMenuGroup`,Ag=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=yg(n);return b(ig,{...i,...r,ref:t})});Ag.displayName=kg;var jg=`DropdownMenuLabel`,Mg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=yg(n);return b(ag,{...i,...r,ref:t})});Mg.displayName=jg;var Ng=`DropdownMenuItem`,Pg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=yg(n);return b(og,{...i,...r,ref:t})});Pg.displayName=Ng;var Fg=`DropdownMenuCheckboxItem`,Ig=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=yg(n);return b(sg,{...i,...r,ref:t})});Ig.displayName=Fg;var Lg=`DropdownMenuRadioGroup`,Rg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=yg(n);return b(cg,{...i,...r,ref:t})});Rg.displayName=Lg;var zg=`DropdownMenuRadioItem`,Bg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=yg(n);return b(lg,{...i,...r,ref:t})});Bg.displayName=zg;var Vg=`DropdownMenuItemIndicator`,Hg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=yg(n);return b(ug,{...i,...r,ref:t})});Hg.displayName=Vg;var Ug=`DropdownMenuSeparator`,Wg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=yg(n);return b(dg,{...i,...r,ref:t})});Wg.displayName=Ug;var Gg=`DropdownMenuArrow`,Kg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=yg(n);return b(fg,{...i,...r,ref:t})});Kg.displayName=Gg;var qg=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=yg(t),[s,c]=pe({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return b(pg,{...o,open:s,onOpenChange:c,children:n})},Jg=`DropdownMenuSubTrigger`,Yg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=yg(n);return b(mg,{...i,...r,ref:t})});Yg.displayName=Jg;var Xg=`DropdownMenuSubContent`,Zg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=yg(n);return b(hg,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Zg.displayName=Xg;var Qg=Sg,$g=wg,e_=Eg,t_=Og,n_=Mg,r_=Pg,i_=Wg,a_=Kg,o_=qg,s_=Yg,c_=Zg;const l_=`
1127
1127
  tw:rounded-[0.5rem]
1128
1128
  tw:border
1129
1129
  tw:border-solid
1130
1130
  tw:border-sq-disabled-gray
1131
1131
  tw:dark:border-gray-500
1132
- `,s_=`tw:bg-sq-white tw:dark:bg-sq-dark-background`,c_=({item:e,iconExtraClassNames:t,spinnerExtraClassNames:n=t,iconType:r=`text`})=>e.inProgress?b(cl,{size:16,color:`currentColor`,testId:e.iconTestId,customId:e.iconCustomId,extraClassNames:n}):e.icon?b(Zc,{icon:e.icon,testId:e.iconTestId,type:r,color:e.iconColor,customId:e.iconCustomId,extraClassNames:t}):null,l_=e=>{let{label:t,variant:n=`outline`,size:r=`sm`,icon:i,iconStyle:a=`text`,iconColor:o,iconPosition:s=`left`,iconPrefix:c,extraClassNames:l=``,testId:u,id:d,disabled:f=!1,inProgress:p=!1,"aria-label":m,...h}=e;return b(u_,{...e,children:b(Xg,{asChild:!0,id:d,disabled:f,children:b(pl,{label:t,variant:n,size:r,icon:i,iconStyle:a,iconColor:o,iconPosition:s,iconPrefix:c,extraClassNames:l,testId:u,disabled:f,inProgress:p,"aria-label":m,tooltip:h.tooltip,tooltipOptions:{delay:h.tooltipDelay,position:h.tooltipPlacement}})})})},u_=({dropdownItems:e,id:t,children:n,contentExtraClassNames:r=``,containerTestId:i,align:a=`end`,placement:o=`bottom`,placementOffset:s=5,alignOffset:c=-35,hasArrow:l=!1,onOpenChange:u,isOpen:d,setFocusOnTriggerOnClose:f=!0,keepFocusInsideDropdown:p=!0,onContainerClick:m})=>x(Yg,{defaultOpen:!1,open:d,onOpenChange:u,modal:p,children:[n,b(Zg,{children:b(Qg,{onClick:m,sideOffset:s,side:o,align:a,alignOffset:c,asChild:!0,onCloseAutoFocus:e=>!f&&e.preventDefault(),className:`tw:outline-none tw:focus-visible:outline-none`,children:x(`div`,{"data-testid":i,className:H(s_,`tw:relative tw:z-1200 tw:min-w-6 tw:py-2 tw:outline-none tw:focus-visible:outline-none
1132
+ `,u_=`tw:bg-sq-white tw:dark:bg-sq-dark-background`,d_=({item:e,iconExtraClassNames:t,spinnerExtraClassNames:n=t,iconType:r=`text`})=>e.inProgress?b(dl,{size:16,color:`currentColor`,testId:e.iconTestId,customId:e.iconCustomId,extraClassNames:n}):e.icon?b(Zc,{icon:e.icon,testId:e.iconTestId,type:r,color:e.iconColor,customId:e.iconCustomId,extraClassNames:t}):null,f_=e=>{let{label:t,variant:n=`outline`,size:r=`sm`,icon:i,iconStyle:a=`text`,iconColor:o,iconPosition:s=`left`,iconPrefix:c,extraClassNames:l=``,testId:u,id:d,disabled:f=!1,inProgress:p=!1,"aria-label":m,...h}=e;return b(p_,{...e,children:b($g,{asChild:!0,id:d,disabled:f,children:b(gl,{label:t,variant:n,size:r,icon:i,iconStyle:a,iconColor:o,iconPosition:s,iconPrefix:c,extraClassNames:l,testId:u,disabled:f,inProgress:p,"aria-label":m,tooltip:h.tooltip,tooltipOptions:{delay:h.tooltipDelay,position:h.tooltipPlacement}})})})},p_=({dropdownItems:e,id:t,children:n,contentExtraClassNames:r=``,containerTestId:i,align:a=`end`,placement:o=`bottom`,placementOffset:s=5,alignOffset:c=-35,hasArrow:l=!1,onOpenChange:u,isOpen:d,setFocusOnTriggerOnClose:f=!0,keepFocusInsideDropdown:p=!0,onContainerClick:m})=>x(Qg,{defaultOpen:!1,open:d,onOpenChange:u,modal:p,children:[n,b(e_,{children:b(t_,{onClick:m,sideOffset:s,side:o,align:a,alignOffset:c,asChild:!0,onCloseAutoFocus:e=>!f&&e.preventDefault(),className:`tw:outline-none tw:focus-visible:outline-none`,children:x(`div`,{"data-testid":i,className:H(u_,`tw:relative tw:z-1200 tw:min-w-6 tw:py-2 tw:outline-none tw:focus-visible:outline-none
1133
1133
  tw:data-[side=bottom]:animate-slideUpAndFade
1134
1134
  tw:data-[side=left]:animate-slideRightAndFade
1135
1135
  tw:data-[side=right]:animate-slideLeftAndFade
1136
- tw:data-[side=top]:animate-slideDownAndFade`,o_,r),children:[l&&b(n_,{asChild:!0,children:b(`div`,{className:`tw:-mt-sq-7 tw:h-sq-15 tw:w-sq-15 tw:rotate-45 tw:border-r tw:border-b tw:border-sq-disabled-gray tw:bg-sq-white tw:fill-transparent tw:dark:border-gray-500 tw:dark:bg-sq-dark-background`})}),e.map((e,n)=>{let r=qc(e);return e.isLabel?x($g,{className:e.itemExtraClassNames,...r,children:[(e.icon||e.inProgress)&&c_({item:e,iconExtraClassNames:`tw:text-sq-text-color tw:dark:text-sq-white tw:w-4.5`,spinnerExtraClassNames:`tw:text-sq-text-color tw:dark:text-sq-white`}),b(`div`,{"data-testid":e.labelTestId,className:`tw:ml-1 tw:text-sq-13 ${e.disabled?`tw:text-sq-disabled-gray`:`tw:text-sq-text-color tw:dark:text-sq-white`} tw:font-normal tw:not-italic ${e.labelClasses}`,children:e.label})]},(e.id||``)+n):Array.isArray(e.subMenuItems)&&e.subMenuItems.length>0?x(r_,{children:[x(i_,{id:t,className:`tw:relative tw:flex tw:h-sq-27 tw:cursor-pointer tw:items-center tw:justify-between tw:pl-sq-19 tw:leading-none tw:outline-none tw:select-none tw:hover:bg-sq-gray-highlight tw:data-disabled:pointer-events-none tw:dark:text-sq-white tw:dark:hover:bg-sq-gray-highlight-dark ${e.itemExtraClassNames||``}`,"data-testid":e.testId,disabled:e.disabled,...r,children:[x(`div`,{className:`tw:flex`,children:[(e.icon||e.inProgress)&&b(`div`,{className:`tw:min-w-5`,children:c_({item:e,iconExtraClassNames:`tw:w-4.5 ${e.disabled?`tw:text-sq-disabled-gray!`:`tw:text-sq-text-color tw:dark:text-sq-white`} ${e.iconExtraClassNames||``}`,spinnerExtraClassNames:`${e.disabled?`tw:text-sq-disabled-gray!`:`tw:text-sq-text-color tw:dark:text-sq-white`} ${e.iconExtraClassNames||``}`})}),b(`div`,{"data-testid":e.labelTestId,"data-customid":e.labelCustomId,className:`tw:ml-1 tw:text-sq-13 ${e.disabled&&`tw:opacity-30!`} tw:font-semibold tw:not-italic ${e.labelClasses}`,children:e.label})]}),b(`div`,{className:`tw:flex tw:items-center tw:justify-center`,children:b(Zc,{size:`sm`,icon:Tt,extraClassNames:`${e.disabled?`tw:text-sq-disabled-gray`:`tw:text-sq-text-color tw:dark:text-sq-white`} tw:ml-4 tw:mr-2 tw:text-2 tw:rotate-270`})})]}),b(Zg,{children:b(a_,{className:`tw:outline-none tw:focus-visible:outline-none`,children:b(`div`,{"data-testid":i,className:H(s_,`tw:relative tw:z-1000 tw:min-w-6 tw:py-2 tw:outline-none tw:focus-visible:outline-none`,`tw:data-[side=bottom]:animate-slideUpAndFade`,`tw:data-[side=left]:animate-slideRightAndFade`,`tw:data-[side=right]:animate-slideLeftAndFade`,`tw:data-[side=top]:animate-slideDownAndFade`,o_),children:e.subMenuItems.map((t,n)=>x(e_,{onSelect:t.onClick,"data-qtip-text":t.tooltip,className:`tw:relative tw:flex tw:h-sq-27 tw:cursor-pointer tw:items-center tw:px-sq-19 tw:leading-none tw:outline-none tw:select-none tw:hover:bg-sq-gray-highlight tw:data-disabled:pointer-events-none tw:dark:text-sq-white tw:dark:hover:bg-sq-gray-highlight-dark`,disabled:t.disabled,children:[t.iconClass&&b(Zc,{icon:t.iconClass,type:`text`,extraClassNames:`tw:w-4.5 ${e.disabled&&`tw:opacity-30!`}`}),b(`div`,{className:`tw:ml-1 tw:text-sq-13 ${t.disabled?`tw:text-sq-disabled-gray`:`tw:text-sq-text-color tw:dark:text-sq-white`} tw:font-normal tw:not-italic ${e.labelClasses}`,children:t.label})]},t.label+n))})})})]},(e.id||(typeof e.icon==`string`?e.icon:e.icon?.iconName)||``)+n):x(`div`,{...r,children:[x(e_,{"data-customid":e.itemCustomId,onSelect:t=>{e.onClick(t)},className:`tw:relative tw:flex tw:min-h-sq-27 tw:cursor-pointer tw:items-center tw:px-sq-19 tw:leading-none tw:outline-none tw:select-none tw:hover:bg-sq-gray-highlight tw:data-disabled:pointer-events-none tw:dark:text-sq-white tw:dark:hover:bg-sq-gray-highlight-dark ${e.itemExtraClassNames||``}`,"data-testid":e.testId,disabled:e.disabled,children:[(e.icon||e.inProgress)&&b(`div`,{className:`tw:min-w-5`,children:c_({item:e,iconType:e.iconType||`text`,iconExtraClassNames:`tw:w-sq-4.5 ${e.disabled&&`tw:opacity-30!`} ${e.iconExtraClassNames||``}`,spinnerExtraClassNames:`${e.disabled&&`tw:opacity-30!`} ${e.iconExtraClassNames||``}`})}),b(`div`,{"data-testid":e.labelTestId,"data-customid":e.labelCustomId,className:`tw:ml-1 tw:text-sq-13 ${e.disabled?`tw:text-sq-disabled-gray`:`tw:text-sq-text-color tw:dark:text-sq-white`} tw:font-normal tw:not-italic ${e.labelClasses||``}`,children:e.label})]},(e.id||(typeof e.icon==`string`?e.icon:e.icon?.iconName)||``)+n),e.hasDivider&&b(t_,{"data-testid":`dropdown-divider-${n}`,className:`tw:my-2 tw:h-px tw:bg-sq-disabled-gray tw:dark:bg-gray-500`})]},(e.id||``)+n)})]})})})]});var d_=l_,f_=`Popover`,[p_,m_]=F(f_,[Cf]),h_=Cf(),[g_,__]=p_(f_),v_=t=>{let{__scopePopover:n,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!1}=t,c=h_(n),l=e.useRef(null),[u,d]=e.useState(!1),[f,p]=pe({prop:i,defaultProp:a??!1,onChange:o,caller:f_});return b(zf,{...c,children:b(g_,{scope:n,contentId:Te(),triggerRef:l,open:f,onOpenChange:p,onOpenToggle:e.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:e.useCallback(()=>d(!0),[]),onCustomAnchorRemove:e.useCallback(()=>d(!1),[]),modal:s,children:r})})};v_.displayName=f_;var y_=`PopoverAnchor`,b_=e.forwardRef((t,n)=>{let{__scopePopover:r,...i}=t,a=__(y_,r),o=h_(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=a;return e.useEffect(()=>(s(),()=>c()),[s,c]),b(Bf,{...o,...i,ref:n})});b_.displayName=y_;var x_=`PopoverTrigger`,S_=e.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=__(x_,n),a=h_(n),o=I(t,i.triggerRef),s=b(B.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":L_(i.open),...r,ref:o,onClick:z(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:b(Bf,{asChild:!0,...a,children:s})});S_.displayName=x_;var C_=`PopoverPortal`,[w_,T_]=p_(C_,{forceMount:void 0}),E_=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=__(C_,t);return b(w_,{scope:t,forceMount:n,children:b(ye,{present:n||a.open,children:b(Wf,{asChild:!0,container:i,children:r})})})};E_.displayName=C_;var D_=`PopoverContent`,O_=e.forwardRef((e,t)=>{let n=T_(D_,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=__(D_,e.__scopePopover);return b(ye,{present:r||a.open,children:a.modal?b(A_,{...i,ref:t}):b(j_,{...i,ref:t})})});O_.displayName=D_;var k_=oe(`PopoverContent.RemoveScroll`),A_=e.forwardRef((t,n)=>{let r=__(D_,t.__scopePopover),i=e.useRef(null),a=I(n,i),o=e.useRef(!1);return e.useEffect(()=>{let e=i.current;if(e)return bp(e)},[]),b(Am,{as:k_,allowPinchZoom:!0,children:b(M_,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(t.onCloseAutoFocus,e=>{e.preventDefault(),o.current||r.triggerRef.current?.focus()}),onPointerDownOutside:z(t.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:z(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),j_=e.forwardRef((t,n)=>{let r=__(D_,t.__scopePopover),i=e.useRef(!1),a=e.useRef(!1);return b(M_,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(i.current||r.triggerRef.current?.focus(),e.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(i.current=!0,e.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=e.target,o=r.triggerRef.current?.contains(n);o&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&a.current&&e.preventDefault()}})}),M_=e.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=__(D_,n),p=h_(n);return Nl(),b(zl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:b(Tl,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:b(Vf,{"data-state":L_(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),N_=`PopoverClose`,P_=e.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=__(N_,n);return b(B.button,{type:`button`,...r,ref:t,onClick:z(e.onClick,()=>i.onOpenChange(!1))})});P_.displayName=N_;var F_=`PopoverArrow`,I_=e.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=h_(n);return b(Hf,{...i,...r,ref:t})});I_.displayName=F_;function L_(e){return e?`open`:`closed`}var R_=v_,z_=S_,B_=E_,V_=O_,H_=I_;const U_=({children:e,trigger:t,id:n,hasArrow:r,extraTriggerClassNames:i,extraPopoverClassNames:a,containerTestId:o,onInteractOutside:s,onPointerDownOutside:c,isTriggerAsChild:l=!1,shouldTriggerFullWidth:u=!1,disabled:d=!1,align:p=`end`,alignOffset:m=-35,placement:h=`bottom`,placementOffset:g=2,isHoverEnabled:y=!1,hoverOpenDelay:S=300,onOpenChange:C,isOpen:w,isCloseOnContentClick:T=!1,isPortal:E=!1,hideWhenDetached:D=!1,...O})=>{let k=qc(O),A=_(null),[j,M]=v(!1),N=()=>{A.current&&=(clearTimeout(A.current),null)},ee=()=>{y&&(N(),A.current=setTimeout(()=>{M(!0),C&&C(!0)},S))},te=()=>{y&&(N(),A.current=setTimeout(()=>{M(!1),C&&C(!1)},200))};f(()=>N,[]);let P=()=>b(V_,{sideOffset:g,align:p,side:h,onInteractOutside:s,onPointerDownOutside:c,alignOffset:y?-10:m,hideWhenDetached:D,asChild:!0,onClick:()=>T&&C&&C(!1),className:`tw:h-full tw:w-full tw:outline-none tw:focus-visible:outline-none`,children:x(`div`,{"data-testid":o,className:H(`tw:relative
1136
+ tw:data-[side=top]:animate-slideDownAndFade`,l_,r),children:[l&&b(a_,{asChild:!0,children:b(`div`,{className:`tw:-mt-sq-7 tw:h-sq-15 tw:w-sq-15 tw:rotate-45 tw:border-r tw:border-b tw:border-sq-disabled-gray tw:bg-sq-white tw:fill-transparent tw:dark:border-gray-500 tw:dark:bg-sq-dark-background`})}),e.map((e,n)=>{let r=qc(e);return e.isLabel?x(n_,{className:e.itemExtraClassNames,...r,children:[(e.icon||e.inProgress)&&d_({item:e,iconExtraClassNames:`tw:text-sq-text-color tw:dark:text-sq-white tw:w-4.5`,spinnerExtraClassNames:`tw:text-sq-text-color tw:dark:text-sq-white`}),b(`div`,{"data-testid":e.labelTestId,className:`tw:ml-1 tw:text-sq-13 ${e.disabled?`tw:text-sq-disabled-gray`:`tw:text-sq-text-color tw:dark:text-sq-white`} tw:font-normal tw:not-italic ${e.labelClasses}`,children:e.label})]},(e.id||``)+n):Array.isArray(e.subMenuItems)&&e.subMenuItems.length>0?x(o_,{children:[x(s_,{id:t,className:`tw:relative tw:flex tw:h-sq-27 tw:cursor-pointer tw:items-center tw:justify-between tw:pl-sq-19 tw:leading-none tw:outline-none tw:select-none tw:hover:bg-sq-gray-highlight tw:data-disabled:pointer-events-none tw:dark:text-sq-white tw:dark:hover:bg-sq-gray-highlight-dark ${e.itemExtraClassNames||``}`,"data-testid":e.testId,disabled:e.disabled,...r,children:[x(`div`,{className:`tw:flex`,children:[(e.icon||e.inProgress)&&b(`div`,{className:`tw:min-w-5`,children:d_({item:e,iconExtraClassNames:`tw:w-4.5 ${e.disabled?`tw:text-sq-disabled-gray!`:`tw:text-sq-text-color tw:dark:text-sq-white`} ${e.iconExtraClassNames||``}`,spinnerExtraClassNames:`${e.disabled?`tw:text-sq-disabled-gray!`:`tw:text-sq-text-color tw:dark:text-sq-white`} ${e.iconExtraClassNames||``}`})}),b(`div`,{"data-testid":e.labelTestId,"data-customid":e.labelCustomId,className:`tw:ml-1 tw:text-sq-13 ${e.disabled&&`tw:opacity-30!`} tw:font-semibold tw:not-italic ${e.labelClasses}`,children:e.label})]}),b(`div`,{className:`tw:flex tw:items-center tw:justify-center`,children:b(Zc,{size:`sm`,icon:Tt,extraClassNames:`${e.disabled?`tw:text-sq-disabled-gray`:`tw:text-sq-text-color tw:dark:text-sq-white`} tw:ml-4 tw:mr-2 tw:text-2 tw:rotate-270`})})]}),b(e_,{children:b(c_,{className:`tw:outline-none tw:focus-visible:outline-none`,children:b(`div`,{"data-testid":i,className:H(u_,`tw:relative tw:z-1000 tw:min-w-6 tw:py-2 tw:outline-none tw:focus-visible:outline-none`,`tw:data-[side=bottom]:animate-slideUpAndFade`,`tw:data-[side=left]:animate-slideRightAndFade`,`tw:data-[side=right]:animate-slideLeftAndFade`,`tw:data-[side=top]:animate-slideDownAndFade`,l_),children:e.subMenuItems.map((t,n)=>x(r_,{onSelect:t.onClick,"data-qtip-text":t.tooltip,className:`tw:relative tw:flex tw:h-sq-27 tw:cursor-pointer tw:items-center tw:px-sq-19 tw:leading-none tw:outline-none tw:select-none tw:hover:bg-sq-gray-highlight tw:data-disabled:pointer-events-none tw:dark:text-sq-white tw:dark:hover:bg-sq-gray-highlight-dark`,disabled:t.disabled,children:[t.iconClass&&b(Zc,{icon:t.iconClass,type:`text`,extraClassNames:`tw:w-4.5 ${e.disabled&&`tw:opacity-30!`}`}),b(`div`,{className:`tw:ml-1 tw:text-sq-13 ${t.disabled?`tw:text-sq-disabled-gray`:`tw:text-sq-text-color tw:dark:text-sq-white`} tw:font-normal tw:not-italic ${e.labelClasses}`,children:t.label})]},t.label+n))})})})]},(e.id||(typeof e.icon==`string`?e.icon:e.icon?.iconName)||``)+n):x(`div`,{...r,children:[x(r_,{"data-customid":e.itemCustomId,onSelect:t=>{e.onClick(t)},className:`tw:relative tw:flex tw:min-h-sq-27 tw:cursor-pointer tw:items-center tw:px-sq-19 tw:leading-none tw:outline-none tw:select-none tw:hover:bg-sq-gray-highlight tw:data-disabled:pointer-events-none tw:dark:text-sq-white tw:dark:hover:bg-sq-gray-highlight-dark ${e.itemExtraClassNames||``}`,"data-testid":e.testId,disabled:e.disabled,children:[(e.icon||e.inProgress)&&b(`div`,{className:`tw:min-w-5`,children:d_({item:e,iconType:e.iconType||`text`,iconExtraClassNames:`tw:w-sq-4.5 ${e.disabled&&`tw:opacity-30!`} ${e.iconExtraClassNames||``}`,spinnerExtraClassNames:`${e.disabled&&`tw:opacity-30!`} ${e.iconExtraClassNames||``}`})}),b(`div`,{"data-testid":e.labelTestId,"data-customid":e.labelCustomId,className:`tw:ml-1 tw:text-sq-13 ${e.disabled?`tw:text-sq-disabled-gray`:`tw:text-sq-text-color tw:dark:text-sq-white`} tw:font-normal tw:not-italic ${e.labelClasses||``}`,children:e.label})]},(e.id||(typeof e.icon==`string`?e.icon:e.icon?.iconName)||``)+n),e.hasDivider&&b(i_,{"data-testid":`dropdown-divider-${n}`,className:`tw:my-2 tw:h-px tw:bg-sq-disabled-gray tw:dark:bg-gray-500`})]},(e.id||``)+n)})]})})})]});var m_=f_,h_=`Popover`,[g_,__]=F(h_,[Ef]),v_=Ef(),[y_,b_]=g_(h_),x_=t=>{let{__scopePopover:n,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!1}=t,c=v_(n),l=e.useRef(null),[u,d]=e.useState(!1),[f,p]=pe({prop:i,defaultProp:a??!1,onChange:o,caller:h_});return b(Hf,{...c,children:b(y_,{scope:n,contentId:Te(),triggerRef:l,open:f,onOpenChange:p,onOpenToggle:e.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:e.useCallback(()=>d(!0),[]),onCustomAnchorRemove:e.useCallback(()=>d(!1),[]),modal:s,children:r})})};x_.displayName=h_;var S_=`PopoverAnchor`,C_=e.forwardRef((t,n)=>{let{__scopePopover:r,...i}=t,a=b_(S_,r),o=v_(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=a;return e.useEffect(()=>(s(),()=>c()),[s,c]),b(Uf,{...o,...i,ref:n})});C_.displayName=S_;var w_=`PopoverTrigger`,T_=e.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=b_(w_,n),a=v_(n),o=I(t,i.triggerRef),s=b(B.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":B_(i.open),...r,ref:o,onClick:z(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:b(Uf,{asChild:!0,...a,children:s})});T_.displayName=w_;var E_=`PopoverPortal`,[D_,O_]=g_(E_,{forceMount:void 0}),k_=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=b_(E_,t);return b(D_,{scope:t,forceMount:n,children:b(ye,{present:n||a.open,children:b(qf,{asChild:!0,container:i,children:r})})})};k_.displayName=E_;var A_=`PopoverContent`,j_=e.forwardRef((e,t)=>{let n=O_(A_,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=b_(A_,e.__scopePopover);return b(ye,{present:r||a.open,children:a.modal?b(N_,{...i,ref:t}):b(P_,{...i,ref:t})})});j_.displayName=A_;var M_=oe(`PopoverContent.RemoveScroll`),N_=e.forwardRef((t,n)=>{let r=b_(A_,t.__scopePopover),i=e.useRef(null),a=I(n,i),o=e.useRef(!1);return e.useEffect(()=>{let e=i.current;if(e)return Cp(e)},[]),b(Nm,{as:M_,allowPinchZoom:!0,children:b(F_,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(t.onCloseAutoFocus,e=>{e.preventDefault(),o.current||r.triggerRef.current?.focus()}),onPointerDownOutside:z(t.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:z(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),P_=e.forwardRef((t,n)=>{let r=b_(A_,t.__scopePopover),i=e.useRef(!1),a=e.useRef(!1);return b(F_,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(i.current||r.triggerRef.current?.focus(),e.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(i.current=!0,e.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=e.target,o=r.triggerRef.current?.contains(n);o&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&a.current&&e.preventDefault()}})}),F_=e.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=b_(A_,n),p=v_(n);return Il(),b(Hl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:b(Ol,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:b(Wf,{"data-state":B_(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),I_=`PopoverClose`,L_=e.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=b_(I_,n);return b(B.button,{type:`button`,...r,ref:t,onClick:z(e.onClick,()=>i.onOpenChange(!1))})});L_.displayName=I_;var R_=`PopoverArrow`,z_=e.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=v_(n);return b(Gf,{...i,...r,ref:t})});z_.displayName=R_;function B_(e){return e?`open`:`closed`}var V_=x_,H_=T_,U_=k_,W_=j_,G_=z_;const K_=({children:e,trigger:t,id:n,hasArrow:r,extraTriggerClassNames:i,extraPopoverClassNames:a,containerTestId:o,onInteractOutside:s,onPointerDownOutside:c,isTriggerAsChild:l=!1,shouldTriggerFullWidth:u=!1,disabled:d=!1,align:p=`end`,alignOffset:m=-35,placement:h=`bottom`,placementOffset:g=2,isHoverEnabled:y=!1,hoverOpenDelay:S=300,onOpenChange:C,isOpen:w,isCloseOnContentClick:T=!1,isPortal:E=!1,hideWhenDetached:D=!1,...O})=>{let k=qc(O),A=_(null),[j,M]=v(!1),N=()=>{A.current&&=(clearTimeout(A.current),null)},ee=()=>{y&&(N(),A.current=setTimeout(()=>{M(!0),C&&C(!0)},S))},te=()=>{y&&(N(),A.current=setTimeout(()=>{M(!1),C&&C(!1)},200))};f(()=>N,[]);let P=()=>b(W_,{sideOffset:g,align:p,side:h,onInteractOutside:s,onPointerDownOutside:c,alignOffset:y?-10:m,hideWhenDetached:D,asChild:!0,onClick:()=>T&&C&&C(!1),className:`tw:h-full tw:w-full tw:outline-none tw:focus-visible:outline-none`,children:x(`div`,{"data-testid":o,className:H(`tw:relative
1137
1137
  tw:z-1200
1138
1138
  tw:min-w-6
1139
1139
  tw:rounded-[0.5rem]
@@ -1146,18 +1146,18 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
1146
1146
  tw:data-[side=right]:animate-slideLeftAndFade
1147
1147
  tw:data-[side=top]:animate-slideDownAndFade
1148
1148
  tw:dark:border-gray-500
1149
- tw:dark:bg-sq-dark-background`,a),children:[r&&b(H_,{asChild:!0,children:b(`div`,{className:`
1149
+ tw:dark:bg-sq-dark-background`,a),children:[r&&b(G_,{asChild:!0,children:b(`div`,{className:`
1150
1150
  tw:-mt-sq-7 tw:h-sq-15 tw:w-sq-15 tw:rotate-45 tw:border-r
1151
1151
  tw:border-b tw:border-sq-disabled-gray tw:bg-sq-white
1152
1152
  tw:fill-transparent
1153
1153
  tw:dark:border-gray-500 tw:dark:bg-sq-dark-background
1154
- `})}),e]})}),ne=e=>x(R_,{open:e,defaultOpen:!1,onOpenChange:C,children:[t?b(z_,{id:n,asChild:l,className:`
1154
+ `})}),e]})}),ne=e=>x(V_,{open:e,defaultOpen:!1,onOpenChange:C,children:[t?b(H_,{id:n,asChild:l,className:`
1155
1155
  tw:bg-transparent tw:outline-none
1156
1156
  tw:focus-visible:outline-none
1157
1157
  ${u?`tw:h-full tw:w-full`:``}
1158
1158
  `,disabled:d,children:b(`div`,{...k,onMouseOver:ee,onMouseOut:te,className:H(`tw:outline-none
1159
1159
  tw:focus-visible:outline-none
1160
- tw:dark:text-sq-white`,{"tw:cursor-not-allowed tw:opacity-50":d,"tw:flex tw:flex-col tw:items-center tw:justify-center":u,"tw:inline":!u},i),children:t})}):b(z_,{asChild:!0,children:b(`div`,{})}),E?b(B_,{children:P()}):P()]});return ne(y?j:w)};var W_=U_;const G_=o({});function K_(e){let t=_(null);return t.current===null&&(t.current=e()),t.current}const q_=typeof window<`u`,J_=q_?h:f,Y_=o(null);function X_(e,t){e.indexOf(t)===-1&&e.push(t)}function Z_(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}const Q_=(e,t,n)=>n>t?t:n<e?e:n,$_={},ev=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function tv(e){return typeof e==`object`&&!!e}const nv=e=>/^0[^.\s]+$/u.test(e);function rv(e){let t;return()=>(t===void 0&&(t=e()),t)}const iv=e=>e,av=(e,t)=>n=>t(e(n)),ov=(...e)=>e.reduce(av),sv=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r};var cv=class{constructor(){this.subscriptions=[]}add(e){return X_(this.subscriptions,e),()=>Z_(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const lv=e=>e*1e3,uv=e=>e/1e3;function dv(e,t){return t?e*(1e3/t):0}const fv=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function pv(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=fv(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>1e-7&&++s<12);return o}function mv(e,t,n,r){if(e===t&&n===r)return iv;let i=t=>pv(t,0,1,e,n);return e=>e===0||e===1?e:fv(i(e),t,r)}const hv=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gv=e=>t=>1-e(1-t),_v=mv(.33,1.53,.69,.99),vv=gv(_v),yv=hv(vv),bv=e=>(e*=2)<1?.5*vv(e):.5*(2-2**(-10*(e-1))),xv=e=>1-Math.sin(Math.acos(e)),Sv=gv(xv),Cv=hv(xv),wv=mv(.42,0,1,1),Tv=mv(0,0,.58,1),Ev=mv(.42,0,.58,1),Dv=e=>Array.isArray(e)&&typeof e[0]!=`number`,Ov=e=>Array.isArray(e)&&typeof e[0]==`number`,kv={linear:iv,easeIn:wv,easeInOut:Ev,easeOut:Tv,circIn:xv,circInOut:Cv,circOut:Sv,backIn:vv,backInOut:yv,backOut:_v,anticipate:bv},Av=e=>typeof e==`string`,jv=e=>{if(Ov(e)){e.length;let[t,n,r,i]=e;return mv(t,n,r,i)}else if(Av(e))return kv[e],`${e}`,kv[e];return e},Mv=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Nv={value:null,addProjectionMetrics:null};function Pv(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i,c=s?n:r;return t&&o.add(e),c.has(e)||c.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&Nv.value&&Nv.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}function Fv(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Mv.reduce((e,n)=>(e[n]=Pv(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=$_.useManualTiming?i.timestamp:performance.now();n=!1,$_.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,40),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)},_=Mv.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),v=e=>{for(let t=0;t<Mv.length;t++)o[Mv[t]].cancel(e)};return{schedule:_,cancel:v,state:i,steps:o}}const{schedule:Iv,cancel:Lv,state:Rv,steps:zv}=Fv(typeof requestAnimationFrame<`u`?requestAnimationFrame:iv,!0);let Bv;function Vv(){Bv=void 0}const Hv={now:()=>(Bv===void 0&&Hv.set(Rv.isProcessing||$_.useManualTiming?Rv.timestamp:performance.now()),Bv),set:e=>{Bv=e,queueMicrotask(Vv)}},Uv={layout:0,mainThread:0,waapi:0},Wv=e=>t=>typeof t==`string`&&t.startsWith(e),Gv=Wv(`--`),Kv=Wv(`var(--`),qv=e=>{let t=Kv(e);return t?Jv.test(e.split(`/*`)[0].trim()):!1},Jv=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Yv={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Xv={...Yv,transform:e=>Q_(0,1,e)},Zv={...Yv,default:1},Qv=e=>Math.round(e*1e5)/1e5,$v=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ey(e){return e==null}const ty=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ny=(e,t)=>n=>!!(typeof n==`string`&&ty.test(n)&&n.startsWith(e)||t&&!ey(n)&&Object.prototype.hasOwnProperty.call(n,t)),ry=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match($v);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},iy=e=>Q_(0,255,e),ay={...Yv,transform:e=>Math.round(iy(e))},oy={test:ny(`rgb`,`red`),parse:ry(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+ay.transform(e)+`, `+ay.transform(t)+`, `+ay.transform(n)+`, `+Qv(Xv.transform(r))+`)`};function sy(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const cy={test:ny(`#`),parse:sy,transform:oy.transform},ly=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),uy=ly(`deg`),dy=ly(`%`),q=ly(`px`),fy=ly(`vh`),py=ly(`vw`),my=(()=>({...dy,parse:e=>dy.parse(e)/100,transform:e=>dy.transform(e*100)}))(),hy={test:ny(`hsl`,`hue`),parse:ry(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+dy.transform(Qv(t))+`, `+dy.transform(Qv(n))+`, `+Qv(Xv.transform(r))+`)`},gy={test:e=>oy.test(e)||cy.test(e)||hy.test(e),parse:e=>oy.test(e)?oy.parse(e):hy.test(e)?hy.parse(e):cy.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?oy.transform(e):hy.transform(e),getAnimatableNone:e=>{let t=gy.parse(e);return t.alpha=0,gy.transform(t)}},_y=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function vy(e){return isNaN(e)&&typeof e==`string`&&(e.match($v)?.length||0)+(e.match(_y)?.length||0)>0}const yy=`number`,by=`color`,xy=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Sy(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0,o=t.replace(xy,e=>(gy.test(e)?(r.color.push(a),i.push(by),n.push(gy.parse(e))):e.startsWith(`var(`)?(r.var.push(a),i.push(`var`),n.push(e)):(r.number.push(a),i.push(yy),n.push(parseFloat(e))),++a,"${}")),s=o.split("${}");return{values:n,split:s,indexes:r,types:i}}function Cy(e){return Sy(e).values}function wy(e){let{split:t,types:n}=Sy(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===yy?i+=Qv(e[a]):t===by?i+=gy.transform(e[a]):i+=e[a]}return i}}const Ty=e=>typeof e==`number`?0:gy.test(e)?gy.getAnimatableNone(e):e;function Ey(e){let t=Cy(e),n=wy(e);return n(t.map(Ty))}const Dy={test:vy,parse:Cy,createTransformer:wy,getAnimatableNone:Ey};function Oy(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ky({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Oy(s,r,e+1/3),a=Oy(s,r,e),o=Oy(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ay(e,t){return n=>n>0?t:e}const jy=(e,t,n)=>e+(t-e)*n,My=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ny=[cy,oy,hy],Py=e=>Ny.find(t=>t.test(e));function Fy(e){let t=Py(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===hy&&(n=ky(n)),n}const Iy=(e,t)=>{let n=Fy(e),r=Fy(t);if(!n||!r)return Ay(e,t);let i={...n};return e=>(i.red=My(n.red,r.red,e),i.green=My(n.green,r.green,e),i.blue=My(n.blue,r.blue,e),i.alpha=jy(n.alpha,r.alpha,e),oy.transform(i))},Ly=new Set([`none`,`hidden`]);function Ry(e,t){return Ly.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function zy(e,t){return n=>jy(e,t,n)}function By(e){return typeof e==`number`?zy:typeof e==`string`?qv(e)?Ay:gy.test(e)?Iy:Wy:Array.isArray(e)?Vy:typeof e==`object`?gy.test(e)?Iy:Hy:Ay}function Vy(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>By(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Hy(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=By(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Uy(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const Wy=(e,t)=>{let n=Dy.createTransformer(t),r=Sy(e),i=Sy(t),a=r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length;return a?Ly.has(e)&&!i.values.length||Ly.has(t)&&!r.values.length?Ry(e,t):ov(Vy(Uy(r,i),i.values),n):(`${e}${t}`,Ay(e,t))};function Gy(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return jy(e,t,n);let r=By(e);return r(e,t)}const Ky=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Iv.update(t,e),stop:()=>Lv(t),now:()=>Rv.isProcessing?Rv.timestamp:Hv.now()}},qy=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Jy=2e4;function Yy(e){let t=0,n=e.next(t);for(;!n.done&&t<Jy;)t+=50,n=e.next(t);return t>=Jy?1/0:t}function Xy(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Yy(r),Jy);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:uv(i)}}function Zy(e,t,n){let r=Math.max(t-5,0);return dv(n-e(r),t-r)}const Qy={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},$y=.001;function eb({duration:e=Qy.duration,bounce:t=Qy.bounce,velocity:n=Qy.velocity,mass:r=Qy.mass}){let i,a;Qy.maxDuration;let o=1-t;o=Q_(Qy.minDamping,Qy.maxDamping,o),e=Q_(Qy.minDuration,Qy.maxDuration,uv(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=nb(t,o),c=Math.exp(-i);return $y-a/s*c},a=t=>{let r=t*o,a=r*e,s=a*n+n,c=o**2*t**2*e,l=Math.exp(-a),u=nb(t**2,o),d=-i(t)+$y>0?-1:1;return d*((s-c)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-$y+r*i},a=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,c=tb(i,a,s);if(e=lv(e),isNaN(c))return{stiffness:Qy.stiffness,damping:Qy.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}function tb(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}function nb(e,t){return e*Math.sqrt(1-t*t)}const rb=[`duration`,`bounce`],ib=[`stiffness`,`damping`,`mass`];function ab(e,t){return t.some(t=>e[t]!==void 0)}function ob(e){let t={velocity:Qy.velocity,stiffness:Qy.stiffness,damping:Qy.damping,mass:Qy.mass,isResolvedFromDuration:!1,...e};if(!ab(e,ib)&&ab(e,rb))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Q_(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Qy.mass,stiffness:i,damping:a}}else{let n=eb(e);t={...t,...n,mass:Qy.mass},t.isResolvedFromDuration=!0}return t}function sb(e=Qy.visualDuration,t=Qy.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=ob({...n,velocity:-uv(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=uv(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?Qy.restSpeed.granular:Qy.restSpeed.default,i||=v?Qy.restDelta.granular:Qy.restDelta.default;let y;if(h<1){let e=nb(_,h);y=t=>{let n=Math.exp(-h*_*t);return o-n*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?lv(m):Zy(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Yy(b),Jy),t=qy(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}sb.applyToOptions=e=>{let t=Xy(e,100,sb);return e.ease=t.ease,e.duration=lv(t.duration),e.type=`keyframes`,e};function cb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=sb({keyframes:[f.value,m(f.value)],velocity:Zy(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function lb(e,t,n){let r=[],i=n||$_.mix||Gy,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||iv:t;a=ov(e,a)}r.push(a)}return r}function ub(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=lb(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=sv(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Q_(e[0],e[a-1],t)):l}function db(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=sv(0,t,r);e.push(jy(n,1,i))}}function fb(e){let t=[0];return db(t,e.length-1),t}function pb(e,t){return e.map(e=>e*t)}function mb(e,t){return e.map(()=>t||Ev).splice(0,e.length-1)}function hb({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Dv(r)?r.map(jv):jv(r),a={done:!1,value:t[0]},o=pb(n&&n.length===t.length?n:fb(t),e),s=ub(o,t,{ease:Array.isArray(i)?i:mb(t,i)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}const gb=e=>e!==null;function _b(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(gb),o=i<0||t&&n!==`loop`&&t%2==1,s=o?0:a.length-1;return!s||r===void 0?a[s]:r}const vb={decay:cb,inertia:cb,tween:hb,keyframes:hb,spring:sb};function yb(e){typeof e.type==`string`&&(e.type=vb[e.type])}var bb=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}};const xb=e=>e/100;var Sb=class extends bb{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Hv.now()&&this.tick(Hv.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Uv.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;yb(e);let{type:t=hb,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||hb;s!==hb&&typeof o[0]!=`number`&&(this.mixKeyframes=ov(xb,Gy(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Yy(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1);let i=!!(t%2);i&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Q_(0,1,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==cb&&(b.value=_b(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return uv(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+uv(e)}get time(){return uv(this.currentTime)}set time(e){e=lv(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Hv.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=uv(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Ky,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(Hv.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,Uv.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Cb(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const wb=e=>e*180/Math.PI,Tb=e=>{let t=wb(Math.atan2(e[1],e[0]));return Db(t)},Eb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Tb,rotateZ:Tb,skewX:e=>wb(Math.atan(e[1])),skewY:e=>wb(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Db=e=>(e%=360,e<0&&(e+=360),e),Ob=Tb,kb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ab=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),jb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:kb,scaleY:Ab,scale:e=>(kb(e)+Ab(e))/2,rotateX:e=>Db(wb(Math.atan2(e[6],e[5]))),rotateY:e=>Db(wb(Math.atan2(-e[2],e[0]))),rotateZ:Ob,rotate:Ob,skewX:e=>wb(Math.atan(e[4])),skewY:e=>wb(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Mb(e){return e.includes(`scale`)?1:0}function Nb(e,t){if(!e||e===`none`)return Mb(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=jb,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Eb,i=t}if(!i)return Mb(t);let a=r[t],o=i[1].split(`,`).map(Fb);return typeof a==`function`?a(o):o[a]}const Pb=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Nb(n,t)};function Fb(e){return parseFloat(e.trim())}const Ib=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Lb=(()=>new Set(Ib))(),Rb=e=>e===Yv||e===q,zb=new Set([`x`,`y`,`z`]),Bb=Ib.filter(e=>!zb.has(e));function Vb(e){let t=[];return Bb.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}const Hb={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Nb(t,`x`),y:(e,{transform:t})=>Nb(t,`y`)};Hb.translateX=Hb.x,Hb.translateY=Hb.y;const Ub=new Set;let Wb=!1,Gb=!1,Kb=!1;function qb(){if(Gb){let e=Array.from(Ub).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Vb(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Gb=!1,Wb=!1,Ub.forEach(e=>e.complete(Kb)),Ub.clear()}function Jb(){Ub.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gb=!0)})}function Yb(){Kb=!0,Jb(),qb(),Kb=!1}var Xb=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Ub.add(this),Wb||(Wb=!0,Iv.read(Jb),Iv.resolveKeyframes(qb))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Cb(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ub.delete(this)}cancel(){this.state===`scheduled`&&(Ub.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}};const Zb=e=>e.startsWith(`--`);function Qb(e,t,n){Zb(t)?e.style.setProperty(t,n):e.style[t]=n}const $b=rv(()=>window.ScrollTimeline!==void 0),ex={};function tx(e,t){let n=rv(e);return()=>ex[t]??n()}const nx=tx(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),rx=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ix={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:rx([0,.65,.55,1]),circOut:rx([.55,0,1,.45]),backIn:rx([.31,.01,.66,-.59]),backOut:rx([.33,1.53,.69,.99])};function ax(e,t){if(e)return typeof e==`function`?nx()?qy(e,t):`ease-out`:Ov(e)?rx(e):Array.isArray(e)?e.map(e=>ax(e,t)||ix.easeOut):ix[e]}function ox(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=ax(s,i);Array.isArray(d)&&(u.easing=d),Nv.value&&Uv.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Nv.value&&p.finished.finally(()=>{Uv.waapi--}),p}function sx(e){return typeof e==`function`&&`applyToOptions`in e}function cx({type:e,...t}){return sx(e)&&nx()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var lx=class extends bb{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=cx(e);this.animation=ox(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=_b(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):Qb(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return uv(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+uv(e)}get time(){return uv(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=lv(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&$b()?(this.animation.timeline=e,iv):t(this)}};const ux={anticipate:bv,backInOut:yv,circInOut:Cv};function dx(e){return e in ux}function fx(e){typeof e.ease==`string`&&dx(e.ease)&&(e.ease=ux[e.ease])}var px=class extends lx{constructor(e){fx(e),yb(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Sb({...a,autoplay:!1}),s=lv(this.finishedTime??this.time);t.setWithVelocity(o.sample(s-10).value,o.sample(s).value,10),o.stop()}};const mx=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Dy.test(e)||e===`0`)&&!e.startsWith(`url(`));function hx(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function gx(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=mx(i,t),s=mx(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:hx(e)||(n===`spring`||sx(n))&&r}function _x(e){e.duration=0,e.type=`keyframes`}const vx=new Set([`opacity`,`clipPath`,`filter`,`transform`]),yx=rv(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function bx(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e,s=t?.owner?.current;if(!(s instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return yx()&&n&&vx.has(n)&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var xx=class extends bb{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Hv.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Xb;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Hv.now(),gx(e,i,a,o)||(($_.instantAnimations||!s)&&l?.(_b(e,n,t)),e[0]=e[e.length-1],_x(n),n.repeat=0);let u=r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,d={startTime:u,finalKeyframe:t,...n,keyframes:e},f=!c&&bx(d)?new px({...d,element:d.motionValue.owner.current}):new Sb(d);f.finished.then(()=>this.notifyFinished()).catch(iv),this.pendingTimeline&&=(this.stopTimeline=f.attachTimeline(this.pendingTimeline),void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Yb()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};const Sx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Cx(e){let t=Sx.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function wx(e,t,n=1){`${e}`;let[r,i]=Cx(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ev(e)?parseFloat(e):e}return qv(i)?wx(i,t,n+1):i}function Tx(e,t){return e?.[t]??e?.default??e}const Ex=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Ib]),Dx={test:e=>e===`auto`,parse:e=>e},Ox=e=>t=>t.test(e),kx=[Yv,q,dy,uy,py,fy,Dx],Ax=e=>kx.find(Ox(e));function jx(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||nv(e)}const Mx=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Nx(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match($v)||[];if(!r)return e;let i=n.replace(r,``),a=Mx.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}const Px=/\b([a-z-]*)\(.*?\)/gu,Fx={...Dy,getAnimatableNone:e=>{let t=e.match(Px);return t?t.map(Nx).join(` `):e}},Ix={...Yv,transform:Math.round},Lx={rotate:uy,rotateX:uy,rotateY:uy,rotateZ:uy,scale:Zv,scaleX:Zv,scaleY:Zv,scaleZ:Zv,skew:uy,skewX:uy,skewY:uy,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:Xv,originX:my,originY:my,originZ:q},Rx={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,backgroundPositionX:q,backgroundPositionY:q,...Lx,zIndex:Ix,fillOpacity:Xv,strokeOpacity:Xv,numOctaves:Ix},zx={...Rx,color:gy,backgroundColor:gy,outlineColor:gy,fill:gy,stroke:gy,borderColor:gy,borderTopColor:gy,borderRightColor:gy,borderBottomColor:gy,borderLeftColor:gy,filter:Fx,WebkitFilter:Fx},Bx=e=>zx[e];function Vx(e,t){let n=Bx(e);return n!==Fx&&(n=Dy),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Hx=new Set([`auto`,`none`,`0`]);function Ux(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Hx.has(t)&&Sy(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Vx(n,i)}var Wx=class extends Xb{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),qv(r))){let i=wx(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ex.has(n)||e.length!==2)return;let[r,i]=e,a=Ax(r),o=Ax(i);if(a!==o)if(Rb(a)&&Rb(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Hb[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||jx(e[t]))&&n.push(t);n.length&&Ux(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Hb[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Hb[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Gx(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Kx=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function qx(e){return tv(e)&&`offsetHeight`in e}const Jx=e=>!isNaN(parseFloat(e)),Yx={current:void 0};var Xx=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Hv.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Hv.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Jx(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new cv);let n=this.events[e].add(t);return e===`change`?()=>{n(),Iv.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Yx.current&&Yx.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Hv.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return dv(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Zx(e,t){return new Xx(e,t)}const{schedule:Qx,cancel:$x}=Fv(queueMicrotask,!1),eS={x:!1,y:!1};function tS(){return eS.x||eS.y}function nS(e){return e===`x`||e===`y`?eS[e]?null:(eS[e]=!0,()=>{eS[e]=!1}):eS.x||eS.y?null:(eS.x=eS.y=!0,()=>{eS.x=eS.y=!1})}function rS(e,t){let n=Gx(e),r=new AbortController,i={passive:!0,...t,signal:r.signal},a=()=>r.abort();return[n,i,a]}function iS(e){return!(e.pointerType===`touch`||tS())}function aS(e,t,n={}){let[r,i,a]=rS(e,n),o=e=>{if(!iS(e))return;let{target:n}=e,r=t(n,e);if(typeof r!=`function`||!n)return;let a=e=>{iS(e)&&(r(e),n.removeEventListener(`pointerleave`,a))};n.addEventListener(`pointerleave`,a,i)};return r.forEach(e=>{e.addEventListener(`pointerenter`,o,i)}),a}const oS=(e,t)=>t?e===t?!0:oS(e,t.parentElement):!1,sS=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,cS=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function lS(e){return cS.has(e.tagName)||e.tabIndex!==-1}const uS=new WeakSet;function dS(e){return t=>{t.key===`Enter`&&e(t)}}function fS(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}const pS=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=dS(()=>{if(uS.has(n))return;fS(n,`down`);let e=dS(()=>{fS(n,`up`)}),r=()=>fS(n,`cancel`);n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,r,t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function mS(e){return sS(e)&&!tS()}function hS(e,t,n={}){let[r,i,a]=rS(e,n),o=e=>{let r=e.currentTarget;if(!mS(e))return;uS.add(r);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),uS.has(r)&&uS.delete(r),mS(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||oS(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{let t=n.useGlobalTarget?window:e;t.addEventListener(`pointerdown`,o,i),qx(e)&&(e.addEventListener(`focus`,e=>pS(e,i)),!lS(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function gS(e){return tv(e)&&`ownerSVGElement`in e}function _S(e){return gS(e)&&e.tagName===`svg`}const vS=e=>!!(e&&e.getVelocity),yS=[...kx,gy,Dy],bS=e=>yS.find(Ox(e)),xS=o({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function SS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function CS(...e){return t=>{let n=!1,r=e.map(e=>{let r=SS(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():SS(e[t],null)}}}}function wS(...t){return e.useCallback(CS(...t),t)}var TS=class extends e.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=qx(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}};function ES({children:t,isPresent:n,anchorX:r,root:i}){let a=p(),o=_(null),s=_({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=d(xS),l=wS(o,t?.ref);return m(()=>{let{width:e,height:t,top:l,left:u,right:d}=s.current;if(n||!o.current||!e||!t)return;let f=r===`left`?`left: ${u}`:`right: ${d}`;o.current.dataset.motionPopId=a;let p=document.createElement(`style`);c&&(p.nonce=c);let m=i??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`
1160
+ tw:dark:text-sq-white`,{"tw:cursor-not-allowed tw:opacity-50":d,"tw:flex tw:flex-col tw:items-center tw:justify-center":u,"tw:inline":!u},i),children:t})}):b(H_,{asChild:!0,children:b(`div`,{})}),E?b(U_,{children:P()}):P()]});return ne(y?j:w)};var q_=K_;const J_=o({});function Y_(e){let t=_(null);return t.current===null&&(t.current=e()),t.current}const X_=typeof window<`u`,Z_=X_?h:f,Q_=o(null);function $_(e,t){e.indexOf(t)===-1&&e.push(t)}function ev(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}const tv=(e,t,n)=>n>t?t:n<e?e:n,nv={},rv=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function iv(e){return typeof e==`object`&&!!e}const av=e=>/^0[^.\s]+$/u.test(e);function ov(e){let t;return()=>(t===void 0&&(t=e()),t)}const sv=e=>e,cv=(e,t)=>n=>t(e(n)),lv=(...e)=>e.reduce(cv),uv=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r};var dv=class{constructor(){this.subscriptions=[]}add(e){return $_(this.subscriptions,e),()=>ev(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const fv=e=>e*1e3,pv=e=>e/1e3;function mv(e,t){return t?e*(1e3/t):0}const hv=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function gv(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=hv(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>1e-7&&++s<12);return o}function _v(e,t,n,r){if(e===t&&n===r)return sv;let i=t=>gv(t,0,1,e,n);return e=>e===0||e===1?e:hv(i(e),t,r)}const vv=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yv=e=>t=>1-e(1-t),bv=_v(.33,1.53,.69,.99),xv=yv(bv),Sv=vv(xv),Cv=e=>(e*=2)<1?.5*xv(e):.5*(2-2**(-10*(e-1))),wv=e=>1-Math.sin(Math.acos(e)),Tv=yv(wv),Ev=vv(wv),Dv=_v(.42,0,1,1),Ov=_v(0,0,.58,1),kv=_v(.42,0,.58,1),Av=e=>Array.isArray(e)&&typeof e[0]!=`number`,jv=e=>Array.isArray(e)&&typeof e[0]==`number`,Mv={linear:sv,easeIn:Dv,easeInOut:kv,easeOut:Ov,circIn:wv,circInOut:Ev,circOut:Tv,backIn:xv,backInOut:Sv,backOut:bv,anticipate:Cv},Nv=e=>typeof e==`string`,Pv=e=>{if(jv(e)){e.length;let[t,n,r,i]=e;return _v(t,n,r,i)}else if(Nv(e))return Mv[e],`${e}`,Mv[e];return e},Fv=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Iv={value:null,addProjectionMetrics:null};function Lv(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i,c=s?n:r;return t&&o.add(e),c.has(e)||c.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&Iv.value&&Iv.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}function Rv(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Fv.reduce((e,n)=>(e[n]=Lv(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=nv.useManualTiming?i.timestamp:performance.now();n=!1,nv.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,40),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)},_=Fv.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),v=e=>{for(let t=0;t<Fv.length;t++)o[Fv[t]].cancel(e)};return{schedule:_,cancel:v,state:i,steps:o}}const{schedule:zv,cancel:Bv,state:Vv,steps:Hv}=Rv(typeof requestAnimationFrame<`u`?requestAnimationFrame:sv,!0);let Uv;function Wv(){Uv=void 0}const Gv={now:()=>(Uv===void 0&&Gv.set(Vv.isProcessing||nv.useManualTiming?Vv.timestamp:performance.now()),Uv),set:e=>{Uv=e,queueMicrotask(Wv)}},Kv={layout:0,mainThread:0,waapi:0},qv=e=>t=>typeof t==`string`&&t.startsWith(e),Jv=qv(`--`),Yv=qv(`var(--`),Xv=e=>{let t=Yv(e);return t?Zv.test(e.split(`/*`)[0].trim()):!1},Zv=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qv={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},$v={...Qv,transform:e=>tv(0,1,e)},ey={...Qv,default:1},ty=e=>Math.round(e*1e5)/1e5,ny=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ry(e){return e==null}const iy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ay=(e,t)=>n=>!!(typeof n==`string`&&iy.test(n)&&n.startsWith(e)||t&&!ry(n)&&Object.prototype.hasOwnProperty.call(n,t)),oy=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(ny);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},sy=e=>tv(0,255,e),cy={...Qv,transform:e=>Math.round(sy(e))},ly={test:ay(`rgb`,`red`),parse:oy(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+cy.transform(e)+`, `+cy.transform(t)+`, `+cy.transform(n)+`, `+ty($v.transform(r))+`)`};function uy(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const dy={test:ay(`#`),parse:uy,transform:ly.transform},fy=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),py=fy(`deg`),my=fy(`%`),q=fy(`px`),hy=fy(`vh`),gy=fy(`vw`),_y=(()=>({...my,parse:e=>my.parse(e)/100,transform:e=>my.transform(e*100)}))(),vy={test:ay(`hsl`,`hue`),parse:oy(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+my.transform(ty(t))+`, `+my.transform(ty(n))+`, `+ty($v.transform(r))+`)`},yy={test:e=>ly.test(e)||dy.test(e)||vy.test(e),parse:e=>ly.test(e)?ly.parse(e):vy.test(e)?vy.parse(e):dy.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?ly.transform(e):vy.transform(e),getAnimatableNone:e=>{let t=yy.parse(e);return t.alpha=0,yy.transform(t)}},by=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xy(e){return isNaN(e)&&typeof e==`string`&&(e.match(ny)?.length||0)+(e.match(by)?.length||0)>0}const Sy=`number`,Cy=`color`,wy=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ty(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0,o=t.replace(wy,e=>(yy.test(e)?(r.color.push(a),i.push(Cy),n.push(yy.parse(e))):e.startsWith(`var(`)?(r.var.push(a),i.push(`var`),n.push(e)):(r.number.push(a),i.push(Sy),n.push(parseFloat(e))),++a,"${}")),s=o.split("${}");return{values:n,split:s,indexes:r,types:i}}function Ey(e){return Ty(e).values}function Dy(e){let{split:t,types:n}=Ty(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===Sy?i+=ty(e[a]):t===Cy?i+=yy.transform(e[a]):i+=e[a]}return i}}const Oy=e=>typeof e==`number`?0:yy.test(e)?yy.getAnimatableNone(e):e;function ky(e){let t=Ey(e),n=Dy(e);return n(t.map(Oy))}const Ay={test:xy,parse:Ey,createTransformer:Dy,getAnimatableNone:ky};function jy(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function My({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=jy(s,r,e+1/3),a=jy(s,r,e),o=jy(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ny(e,t){return n=>n>0?t:e}const Py=(e,t,n)=>e+(t-e)*n,Fy=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Iy=[dy,ly,vy],Ly=e=>Iy.find(t=>t.test(e));function Ry(e){let t=Ly(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===vy&&(n=My(n)),n}const zy=(e,t)=>{let n=Ry(e),r=Ry(t);if(!n||!r)return Ny(e,t);let i={...n};return e=>(i.red=Fy(n.red,r.red,e),i.green=Fy(n.green,r.green,e),i.blue=Fy(n.blue,r.blue,e),i.alpha=Py(n.alpha,r.alpha,e),ly.transform(i))},By=new Set([`none`,`hidden`]);function Vy(e,t){return By.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Hy(e,t){return n=>Py(e,t,n)}function Uy(e){return typeof e==`number`?Hy:typeof e==`string`?Xv(e)?Ny:yy.test(e)?zy:qy:Array.isArray(e)?Wy:typeof e==`object`?yy.test(e)?zy:Gy:Ny}function Wy(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Uy(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Gy(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Uy(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Ky(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const qy=(e,t)=>{let n=Ay.createTransformer(t),r=Ty(e),i=Ty(t),a=r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length;return a?By.has(e)&&!i.values.length||By.has(t)&&!r.values.length?Vy(e,t):lv(Wy(Ky(r,i),i.values),n):(`${e}${t}`,Ny(e,t))};function Jy(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return Py(e,t,n);let r=Uy(e);return r(e,t)}const Yy=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>zv.update(t,e),stop:()=>Bv(t),now:()=>Vv.isProcessing?Vv.timestamp:Gv.now()}},Xy=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Zy=2e4;function Qy(e){let t=0,n=e.next(t);for(;!n.done&&t<Zy;)t+=50,n=e.next(t);return t>=Zy?1/0:t}function $y(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Qy(r),Zy);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:pv(i)}}function eb(e,t,n){let r=Math.max(t-5,0);return mv(n-e(r),t-r)}const tb={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},nb=.001;function rb({duration:e=tb.duration,bounce:t=tb.bounce,velocity:n=tb.velocity,mass:r=tb.mass}){let i,a;tb.maxDuration;let o=1-t;o=tv(tb.minDamping,tb.maxDamping,o),e=tv(tb.minDuration,tb.maxDuration,pv(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=ab(t,o),c=Math.exp(-i);return nb-a/s*c},a=t=>{let r=t*o,a=r*e,s=a*n+n,c=o**2*t**2*e,l=Math.exp(-a),u=ab(t**2,o),d=-i(t)+nb>0?-1:1;return d*((s-c)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-nb+r*i},a=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,c=ib(i,a,s);if(e=fv(e),isNaN(c))return{stiffness:tb.stiffness,damping:tb.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}function ib(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}function ab(e,t){return e*Math.sqrt(1-t*t)}const ob=[`duration`,`bounce`],sb=[`stiffness`,`damping`,`mass`];function cb(e,t){return t.some(t=>e[t]!==void 0)}function lb(e){let t={velocity:tb.velocity,stiffness:tb.stiffness,damping:tb.damping,mass:tb.mass,isResolvedFromDuration:!1,...e};if(!cb(e,sb)&&cb(e,ob))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*tv(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:tb.mass,stiffness:i,damping:a}}else{let n=rb(e);t={...t,...n,mass:tb.mass},t.isResolvedFromDuration=!0}return t}function ub(e=tb.visualDuration,t=tb.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=lb({...n,velocity:-pv(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=pv(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?tb.restSpeed.granular:tb.restSpeed.default,i||=v?tb.restDelta.granular:tb.restDelta.default;let y;if(h<1){let e=ab(_,h);y=t=>{let n=Math.exp(-h*_*t);return o-n*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?fv(m):eb(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Qy(b),Zy),t=Xy(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}ub.applyToOptions=e=>{let t=$y(e,100,ub);return e.ease=t.ease,e.duration=fv(t.duration),e.type=`keyframes`,e};function db({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=ub({keyframes:[f.value,m(f.value)],velocity:eb(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function fb(e,t,n){let r=[],i=n||nv.mix||Jy,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||sv:t;a=lv(e,a)}r.push(a)}return r}function pb(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=fb(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=uv(e[r],e[r+1],n);return s[r](i)};return n?t=>l(tv(e[0],e[a-1],t)):l}function mb(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=uv(0,t,r);e.push(Py(n,1,i))}}function hb(e){let t=[0];return mb(t,e.length-1),t}function gb(e,t){return e.map(e=>e*t)}function _b(e,t){return e.map(()=>t||kv).splice(0,e.length-1)}function vb({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Av(r)?r.map(Pv):Pv(r),a={done:!1,value:t[0]},o=gb(n&&n.length===t.length?n:hb(t),e),s=pb(o,t,{ease:Array.isArray(i)?i:_b(t,i)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}const yb=e=>e!==null;function bb(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(yb),o=i<0||t&&n!==`loop`&&t%2==1,s=o?0:a.length-1;return!s||r===void 0?a[s]:r}const xb={decay:db,inertia:db,tween:vb,keyframes:vb,spring:ub};function Sb(e){typeof e.type==`string`&&(e.type=xb[e.type])}var Cb=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}};const wb=e=>e/100;var Tb=class extends Cb{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Gv.now()&&this.tick(Gv.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Kv.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Sb(e);let{type:t=vb,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||vb;s!==vb&&typeof o[0]!=`number`&&(this.mixKeyframes=lv(wb,Jy(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Qy(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1);let i=!!(t%2);i&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=tv(0,1,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==db&&(b.value=bb(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return pv(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+pv(e)}get time(){return pv(this.currentTime)}set time(e){e=fv(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Gv.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=pv(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Yy,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(Gv.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,Kv.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Eb(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Db=e=>e*180/Math.PI,Ob=e=>{let t=Db(Math.atan2(e[1],e[0]));return Ab(t)},kb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ob,rotateZ:Ob,skewX:e=>Db(Math.atan(e[1])),skewY:e=>Db(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ab=e=>(e%=360,e<0&&(e+=360),e),jb=Ob,Mb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Nb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Pb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Mb,scaleY:Nb,scale:e=>(Mb(e)+Nb(e))/2,rotateX:e=>Ab(Db(Math.atan2(e[6],e[5]))),rotateY:e=>Ab(Db(Math.atan2(-e[2],e[0]))),rotateZ:jb,rotate:jb,skewX:e=>Db(Math.atan(e[4])),skewY:e=>Db(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Fb(e){return e.includes(`scale`)?1:0}function Ib(e,t){if(!e||e===`none`)return Fb(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Pb,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=kb,i=t}if(!i)return Fb(t);let a=r[t],o=i[1].split(`,`).map(Rb);return typeof a==`function`?a(o):o[a]}const Lb=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Ib(n,t)};function Rb(e){return parseFloat(e.trim())}const zb=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Bb=(()=>new Set(zb))(),Vb=e=>e===Qv||e===q,Hb=new Set([`x`,`y`,`z`]),Ub=zb.filter(e=>!Hb.has(e));function Wb(e){let t=[];return Ub.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}const Gb={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ib(t,`x`),y:(e,{transform:t})=>Ib(t,`y`)};Gb.translateX=Gb.x,Gb.translateY=Gb.y;const Kb=new Set;let qb=!1,Jb=!1,Yb=!1;function Xb(){if(Jb){let e=Array.from(Kb).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Wb(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Jb=!1,qb=!1,Kb.forEach(e=>e.complete(Yb)),Kb.clear()}function Zb(){Kb.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jb=!0)})}function Qb(){Yb=!0,Zb(),Xb(),Yb=!1}var $b=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Kb.add(this),qb||(qb=!0,zv.read(Zb),zv.resolveKeyframes(Xb))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Eb(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Kb.delete(this)}cancel(){this.state===`scheduled`&&(Kb.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}};const ex=e=>e.startsWith(`--`);function tx(e,t,n){ex(t)?e.style.setProperty(t,n):e.style[t]=n}const nx=ov(()=>window.ScrollTimeline!==void 0),rx={};function ix(e,t){let n=ov(e);return()=>rx[t]??n()}const ax=ix(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),ox=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,sx={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:ox([0,.65,.55,1]),circOut:ox([.55,0,1,.45]),backIn:ox([.31,.01,.66,-.59]),backOut:ox([.33,1.53,.69,.99])};function cx(e,t){if(e)return typeof e==`function`?ax()?Xy(e,t):`ease-out`:jv(e)?ox(e):Array.isArray(e)?e.map(e=>cx(e,t)||sx.easeOut):sx[e]}function lx(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=cx(s,i);Array.isArray(d)&&(u.easing=d),Iv.value&&Kv.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Iv.value&&p.finished.finally(()=>{Kv.waapi--}),p}function ux(e){return typeof e==`function`&&`applyToOptions`in e}function dx({type:e,...t}){return ux(e)&&ax()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var fx=class extends Cb{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=dx(e);this.animation=lx(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=bb(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):tx(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return pv(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+pv(e)}get time(){return pv(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=fv(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&nx()?(this.animation.timeline=e,sv):t(this)}};const px={anticipate:Cv,backInOut:Sv,circInOut:Ev};function mx(e){return e in px}function hx(e){typeof e.ease==`string`&&mx(e.ease)&&(e.ease=px[e.ease])}var gx=class extends fx{constructor(e){hx(e),Sb(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Tb({...a,autoplay:!1}),s=fv(this.finishedTime??this.time);t.setWithVelocity(o.sample(s-10).value,o.sample(s).value,10),o.stop()}};const _x=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Ay.test(e)||e===`0`)&&!e.startsWith(`url(`));function vx(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function yx(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=_x(i,t),s=_x(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:vx(e)||(n===`spring`||ux(n))&&r}function bx(e){e.duration=0,e.type=`keyframes`}const xx=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Sx=ov(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Cx(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e,s=t?.owner?.current;if(!(s instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Sx()&&n&&xx.has(n)&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var wx=class extends Cb{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Gv.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||$b;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Gv.now(),yx(e,i,a,o)||((nv.instantAnimations||!s)&&l?.(bb(e,n,t)),e[0]=e[e.length-1],bx(n),n.repeat=0);let u=r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,d={startTime:u,finalKeyframe:t,...n,keyframes:e},f=!c&&Cx(d)?new gx({...d,element:d.motionValue.owner.current}):new Tb(d);f.finished.then(()=>this.notifyFinished()).catch(sv),this.pendingTimeline&&=(this.stopTimeline=f.attachTimeline(this.pendingTimeline),void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Qb()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};const Tx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ex(e){let t=Tx.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Dx(e,t,n=1){`${e}`;let[r,i]=Ex(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return rv(e)?parseFloat(e):e}return Xv(i)?Dx(i,t,n+1):i}function Ox(e,t){return e?.[t]??e?.default??e}const kx=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...zb]),Ax={test:e=>e===`auto`,parse:e=>e},jx=e=>t=>t.test(e),Mx=[Qv,q,my,py,gy,hy,Ax],Nx=e=>Mx.find(jx(e));function Px(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||av(e)}const Fx=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ix(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(ny)||[];if(!r)return e;let i=n.replace(r,``),a=Fx.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}const Lx=/\b([a-z-]*)\(.*?\)/gu,Rx={...Ay,getAnimatableNone:e=>{let t=e.match(Lx);return t?t.map(Ix).join(` `):e}},zx={...Qv,transform:Math.round},Bx={rotate:py,rotateX:py,rotateY:py,rotateZ:py,scale:ey,scaleX:ey,scaleY:ey,scaleZ:ey,skew:py,skewX:py,skewY:py,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:$v,originX:_y,originY:_y,originZ:q},Vx={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,backgroundPositionX:q,backgroundPositionY:q,...Bx,zIndex:zx,fillOpacity:$v,strokeOpacity:$v,numOctaves:zx},Hx={...Vx,color:yy,backgroundColor:yy,outlineColor:yy,fill:yy,stroke:yy,borderColor:yy,borderTopColor:yy,borderRightColor:yy,borderBottomColor:yy,borderLeftColor:yy,filter:Rx,WebkitFilter:Rx},Ux=e=>Hx[e];function Wx(e,t){let n=Ux(e);return n!==Rx&&(n=Ay),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Gx=new Set([`auto`,`none`,`0`]);function Kx(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Gx.has(t)&&Ty(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Wx(n,i)}var qx=class extends $b{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Xv(r))){let i=Dx(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!kx.has(n)||e.length!==2)return;let[r,i]=e,a=Nx(r),o=Nx(i);if(a!==o)if(Vb(a)&&Vb(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Gb[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Px(e[t]))&&n.push(t);n.length&&Kx(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Gb[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Gb[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Jx(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Yx=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Xx(e){return iv(e)&&`offsetHeight`in e}const Zx=e=>!isNaN(parseFloat(e)),Qx={current:void 0};var $x=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Gv.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Gv.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Zx(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new dv);let n=this.events[e].add(t);return e===`change`?()=>{n(),zv.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Qx.current&&Qx.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Gv.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return mv(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function eS(e,t){return new $x(e,t)}const{schedule:tS,cancel:nS}=Rv(queueMicrotask,!1),rS={x:!1,y:!1};function iS(){return rS.x||rS.y}function aS(e){return e===`x`||e===`y`?rS[e]?null:(rS[e]=!0,()=>{rS[e]=!1}):rS.x||rS.y?null:(rS.x=rS.y=!0,()=>{rS.x=rS.y=!1})}function oS(e,t){let n=Jx(e),r=new AbortController,i={passive:!0,...t,signal:r.signal},a=()=>r.abort();return[n,i,a]}function sS(e){return!(e.pointerType===`touch`||iS())}function cS(e,t,n={}){let[r,i,a]=oS(e,n),o=e=>{if(!sS(e))return;let{target:n}=e,r=t(n,e);if(typeof r!=`function`||!n)return;let a=e=>{sS(e)&&(r(e),n.removeEventListener(`pointerleave`,a))};n.addEventListener(`pointerleave`,a,i)};return r.forEach(e=>{e.addEventListener(`pointerenter`,o,i)}),a}const lS=(e,t)=>t?e===t?!0:lS(e,t.parentElement):!1,uS=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,dS=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function fS(e){return dS.has(e.tagName)||e.tabIndex!==-1}const pS=new WeakSet;function mS(e){return t=>{t.key===`Enter`&&e(t)}}function hS(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}const gS=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=mS(()=>{if(pS.has(n))return;hS(n,`down`);let e=mS(()=>{hS(n,`up`)}),r=()=>hS(n,`cancel`);n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,r,t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function _S(e){return uS(e)&&!iS()}function vS(e,t,n={}){let[r,i,a]=oS(e,n),o=e=>{let r=e.currentTarget;if(!_S(e))return;pS.add(r);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),pS.has(r)&&pS.delete(r),_S(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||lS(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{let t=n.useGlobalTarget?window:e;t.addEventListener(`pointerdown`,o,i),Xx(e)&&(e.addEventListener(`focus`,e=>gS(e,i)),!fS(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function yS(e){return iv(e)&&`ownerSVGElement`in e}function bS(e){return yS(e)&&e.tagName===`svg`}const xS=e=>!!(e&&e.getVelocity),SS=[...Mx,yy,Ay],CS=e=>SS.find(jx(e)),wS=o({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function TS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function ES(...e){return t=>{let n=!1,r=e.map(e=>{let r=TS(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():TS(e[t],null)}}}}function DS(...t){return e.useCallback(ES(...t),t)}var OS=class extends e.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=Xx(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}};function kS({children:t,isPresent:n,anchorX:r,root:i}){let a=p(),o=_(null),s=_({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=d(wS),l=DS(o,t?.ref);return m(()=>{let{width:e,height:t,top:l,left:u,right:d}=s.current;if(n||!o.current||!e||!t)return;let f=r===`left`?`left: ${u}`:`right: ${d}`;o.current.dataset.motionPopId=a;let p=document.createElement(`style`);c&&(p.nonce=c);let m=i??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`
1161
1161
  [data-motion-pop-id="${a}"] {
1162
1162
  position: absolute !important;
1163
1163
  width: ${e}px !important;
@@ -1165,7 +1165,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
1165
1165
  ${f}px !important;
1166
1166
  top: ${l}px !important;
1167
1167
  }
1168
- `),()=>{m.contains(p)&&m.removeChild(p)}},[n]),b(TS,{isPresent:n,childRef:o,sizeRef:s,children:e.cloneElement(t,{ref:l})})}const DS=({children:t,initial:n,isPresent:r,onExitComplete:i,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,root:l})=>{let u=K_(OS),d=p(),f=!0,m=g(()=>(f=!1,{id:d,initial:n,isPresent:r,custom:a,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;i&&i()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[r,u,i]);return o&&f&&(m={...m}),g(()=>{u.forEach((e,t)=>u.set(t,!1))},[r]),e.useEffect(()=>{!r&&!u.size&&i&&i()},[r]),s===`popLayout`&&(t=b(ES,{isPresent:r,anchorX:c,root:l,children:t})),b(Y_.Provider,{value:m,children:t})};function OS(){return new Map}function kS(e=!0){let t=d(Y_);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=p();f(()=>{if(e)return i(a)},[e]);let o=u(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const AS=e=>e.key||``;function jS(e){let t=[];return n.forEach(e,e=>{l(e)&&t.push(e)}),t}const MS=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,root:c})=>{let[l,u]=kS(o),f=g(()=>jS(e),[e]),p=o&&!l?[]:f.map(AS),m=_(!0),h=_(f),x=K_(()=>new Map),[S,C]=v(f),[w,T]=v(f);J_(()=>{m.current=!1,h.current=f;for(let e=0;e<w.length;e++){let t=AS(w[e]);p.includes(t)?x.delete(t):x.get(t)!==!0&&x.set(t,!1)}},[w,p.length,p.join(`-`)]);let E=[];if(f!==S){let e=[...f];for(let t=0;t<w.length;t++){let n=w[t],r=AS(n);p.includes(r)||(e.splice(t,0,n),E.push(n))}return a===`wait`&&E.length&&(e=E),T(jS(e)),C(f),null}let{forceRender:D}=d(G_);return b(y,{children:w.map(e=>{let d=AS(e),g=o&&!l?!1:f===w||p.includes(d),_=()=>{if(x.has(d))x.set(d,!0);else return;let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(D?.(),T(h.current),o&&u?.(),r&&r())};return b(DS,{isPresent:g,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:g?void 0:_,anchorX:s,children:e},d)})})},NS=o({strict:!1}),PS={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},FS={};for(let e in PS)FS[e]={isEnabled:t=>PS[e].some(e=>!!t[e])};function IS(e){for(let t in e)FS[t]={...FS[t],...e[t]}}const LS=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.ignoreStrict.viewport`.split(`.`));function RS(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||LS.has(e)}function zS(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var BS=j((()=>{})),VS={};N(VS,{default:()=>US});var HS,US,WS=j((()=>{BS(),HS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,US=zS(function(e){return HS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})}));let GS=e=>!RS(e);function KS(e){typeof e==`function`&&(GS=t=>t.startsWith(`on`)?!RS(t):e(t))}try{KS((WS(),P(VS)).default)}catch{}function qS(e,t,n){let r={};for(let i in e){if(i===`values`&&typeof e.values==`object`)continue;(GS(i)||n===!0&&RS(i)||!t&&!RS(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i])}return r}const JS=o({});function YS(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function XS(e){return typeof e==`string`||Array.isArray(e)}const ZS=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],QS=[`initial`,...ZS];function $S(e){return YS(e.animate)||QS.some(t=>XS(e[t]))}function eC(e){return!!($S(e)||e.variants)}function tC(e,t){if($S(e)){let{initial:t,animate:n}=e;return{initial:t===!1||XS(t)?t:void 0,animate:XS(n)?n:void 0}}return e.inherit===!1?{}:t}function nC(e){let{initial:t,animate:n}=tC(e,d(JS));return g(()=>({initial:t,animate:n}),[rC(t),rC(n)])}function rC(e){return Array.isArray(e)?e.join(` `):e}function iC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const aC={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(q.test(e))e=parseFloat(e);else return e;let n=iC(e,t.target.x),r=iC(e,t.target.y);return`${n}% ${r}%`}},oC={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Dy.parse(e);if(i.length>5)return r;let a=Dy.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=jy(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},sC={borderRadius:{...aC,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:aC,borderTopRightRadius:aC,borderBottomLeftRadius:aC,borderBottomRightRadius:aC,boxShadow:oC};function cC(e,{layout:t,layoutId:n}){return Lb.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!sC[e]||e===`opacity`)}const lC={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},uC=Ib.length;function dC(e,t,n){let r=``,i=!0;for(let a=0;a<uC;a++){let o=Ib[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===(o.startsWith(`scale`)?1:0):parseFloat(s)===0,!c||n){let e=Kx(s,Rx[o]);if(!c){i=!1;let t=lC[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function fC(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Lb.has(e)){o=!0;continue}else if(Gv(e)){i[e]=n;continue}else{let t=Kx(n,Rx[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=dC(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}const pC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mC(e,t,n){for(let r in t)!vS(t[r])&&!cC(r,n)&&(e[r]=t[r])}function hC({transformTemplate:e},t){return g(()=>{let n=pC();return fC(n,t,e),Object.assign({},n.vars,n.style)},[t])}function gC(e,t){let n=e.style||{},r={};return mC(r,n,e),Object.assign(r,hC(e,t)),r}function _C(e,t){let n={},r=gC(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const vC={offset:`stroke-dashoffset`,array:`stroke-dasharray`},yC={offset:`strokeDashoffset`,array:`strokeDasharray`};function bC(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?vC:yC;e[a.offset]=q.transform(-r);let o=q.transform(t),s=q.transform(n);e[a.array]=`${o} ${s}`}function xC(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(fC(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&bC(d,i,a,o,!1)}const SC=()=>({...pC(),attrs:{}}),CC=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function wC(e,t,n,r){let i=g(()=>{let n=SC();return xC(n,t,CC(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};mC(t,e.style,e),i.style={...t,...i.style}}return i}const TC=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function EC(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(TC.indexOf(e)>-1||/[A-Z]/u.test(e))}function DC(e,t,n,{latestValues:r},a,o=!1){let c=EC(e)?wC:_C,l=c(t,r,a,e),u=qS(t,typeof e==`string`,o),d=e===i?{}:{...u,...l,ref:n},{children:f}=t,p=g(()=>vS(f)?f.get():f,[f]);return s(e,{...d,children:p})}function OC(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function kC(e,t,n,r){if(typeof t==`function`){let[i,a]=OC(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=OC(r);t=t(n===void 0?e.custom:n,i,a)}return t}function AC(e){return vS(e)?e.get():e}function jC({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){let a={latestValues:MC(n,r,i,e),renderState:t()};return a}function MC(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=AC(a[e]);let{initial:o,animate:s}=e,c=$S(e),l=eC(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!YS(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=kC(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}const NC=e=>(t,n)=>{let r=d(JS),i=d(Y_),a=()=>jC(e,t,r,i);return n?a():K_(a)};function PC(e,t,n){let{style:r}=e,i={};for(let a in r)(vS(r[a])||t.style&&vS(t.style[a])||cC(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const FC=NC({scrapeMotionValuesFromProps:PC,createRenderState:pC});function IC(e,t,n){let r=PC(e,t,n);for(let n in e)if(vS(e[n])||vS(t[n])){let t=Ib.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}const LC=NC({scrapeMotionValuesFromProps:IC,createRenderState:SC}),RC=Symbol.for(`motionComponentSymbol`);function zC(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function BC(e,t,n){return u(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):zC(n)&&(n.current=r))},[t])}const VC=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),HC=`data-`+VC(`framerAppearId`),UC=o({});function WC(e,t,n,r,i){let{visualElement:a}=d(JS),o=d(NS),s=d(Y_),c=d(xS).reducedMotion,l=_(null);r||=o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}));let u=l.current,p=d(UC);u&&!u.projection&&i&&(u.type===`html`||u.type===`svg`)&&GC(l.current,n,i,p);let h=_(!1);m(()=>{u&&h.current&&u.update(n,s)});let g=n[HC],v=_(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return J_(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),v.current&&u.animationState&&u.animationState.animateChanges())}),f(()=>{u&&(!v.current&&u.animationState&&u.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),u.enteringChildren=void 0)}),u}function GC(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:KC(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&zC(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function KC(e){if(e)return e.options.allowProjection===!1?KC(e.parent):e.projection}function qC(e,{forwardMotionProps:t=!1}={},n,r){n&&IS(n);let i=EC(e)?LC:FC;function a(a,o){let s,c={...d(xS),...a,layoutId:JC(a)},{isStatic:l}=c,u=nC(a),f=i(a,l);if(!l&&q_){YC(c,n);let t=XC(c);s=t.MeasureLayout,u.visualElement=WC(e,f,c,r,t.ProjectionNode)}return x(JS.Provider,{value:u,children:[s&&u.visualElement?b(s,{visualElement:u.visualElement,...c}):null,DC(e,a,BC(f,u.visualElement,o),f,l,t)]})}a.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let o=c(a);return o[RC]=e,o}function JC({layoutId:e}){let t=d(G_).id;return t&&e!==void 0?t+`-`+e:e}function YC(e,t){d(NS).strict}function XC(e){let{drag:t,layout:n}=FS;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function ZC(e,t){if(typeof Proxy>`u`)return qC;let n=new Map,r=(n,r)=>qC(n,r,e,t),i=(e,t)=>r(e,t);return new Proxy(i,{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,qC(a,void 0,e,t)),n.get(a))})}function QC({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function $C({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ew(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function tw(e){return e===void 0||e===1}function nw({scale:e,scaleX:t,scaleY:n}){return!tw(e)||!tw(t)||!tw(n)}function rw(e){return nw(e)||iw(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iw(e){return aw(e.x)||aw(e.y)}function aw(e){return e&&e!==`0%`}function ow(e,t,n){let r=e-n,i=t*r;return n+i}function sw(e,t,n,r,i){return i!==void 0&&(e=ow(e,i,r)),ow(e,n,r)+t}function cw(e,t=0,n=1,r,i){e.min=sw(e.min,t,n,r,i),e.max=sw(e.max,t,n,r,i)}function lw(e,{x:t,y:n}){cw(e.x,t.translate,t.scale,t.originPoint),cw(e.y,n.translate,n.scale,n.originPoint)}const uw=.999999999999,dw=1.0000000000001;function fw(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&hw(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,lw(e,o)),r&&rw(a.latestValues)&&hw(e,a.latestValues))}t.x<dw&&t.x>uw&&(t.x=1),t.y<dw&&t.y>uw&&(t.y=1)}function pw(e,t){e.min+=t,e.max+=t}function mw(e,t,n,r,i=.5){let a=jy(e.min,e.max,i);cw(e,t,n,a,r)}function hw(e,t){mw(e.x,t.x,t.scaleX,t.scale,t.originX),mw(e.y,t.y,t.scaleY,t.scale,t.originY)}function gw(e,t){return QC(ew(e.getBoundingClientRect(),t))}function _w(e,t,n){let r=gw(e,n),{scroll:i}=t;return i&&(pw(r.x,i.offset.x),pw(r.y,i.offset.y)),r}const vw=()=>({translate:0,scale:1,origin:0,originPoint:0}),yw=()=>({x:vw(),y:vw()}),bw=()=>({min:0,max:0}),xw=()=>({x:bw(),y:bw()}),Sw={current:null},Cw={current:!1};function ww(){if(Cw.current=!0,q_)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Sw.current=e.matches;e.addEventListener(`change`,t),t()}else Sw.current=!1}const Tw=new WeakMap;function Ew(e,t,n){for(let r in t){let i=t[r],a=n[r];if(vS(i))e.addValue(r,i);else if(vS(a))e.addValue(r,Zx(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Zx(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}const Dw=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`];var Ow=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Hv.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Iv.render(this.render,!1,!0))};let{latestValues:s,renderState:c}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=$S(t),this.isVariantNode=eC(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in u){let t=u[e];s[e]!==void 0&&vS(t)&&t.set(s[e])}}mount(e){this.current=e,Tw.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Cw.current||ww(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:Sw.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),Lv(this.notifyUpdate),Lv(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=Lb.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Iv.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in FS){let t=FS[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xw()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Dw.length;t++){let n=Dw[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=`on`+n,i=e[r];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=Ew(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Zx(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ev(n)||nv(n))?n=parseFloat(n):!bS(n)&&Dy.test(t)&&(n=Vx(e,t)),this.setBaseTarget(e,vS(n)?n.get():n)),vS(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=kC(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!vS(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new cv),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Qx.render(this.render)}},kw=class extends Ow{constructor(){super(...arguments),this.KeyframeResolver=Wx}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;vS(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Aw(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function jw(e){return window.getComputedStyle(e)}var Mw=class extends kw{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Aw}readValueFromInstance(e,t){if(Lb.has(t))return this.projection?.isProjecting?Mb(t):Pb(e,t);{let n=jw(e),r=(Gv(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return gw(e,t)}build(e,t,n){fC(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return PC(e,t,n)}};const Nw=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function Pw(e,t,n,r){for(let n in Aw(e,t,void 0,r),t.attrs)e.setAttribute(Nw.has(n)?n:VC(n),t.attrs[n])}var Fw=class extends kw{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=xw}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Lb.has(t)){let e=Bx(t);return e&&e.default||0}return t=Nw.has(t)?t:VC(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return IC(e,t,n)}build(e,t,n){xC(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Pw(e,t,n,r)}mount(e){this.isSVGTag=CC(e.tagName),super.mount(e)}};const Iw=(e,t)=>EC(e)?new Fw(t):new Mw(t,{allowProjection:e!==i});function Lw(e,t,n){let r=e.getProps();return kC(r,t,n===void 0?r.custom:n,e)}const Rw=e=>Array.isArray(e);function zw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Zx(n))}function Bw(e){return Rw(e)?e[e.length-1]||0:e}function Vw(e,t){let n=Lw(e,t),{transitionEnd:r={},transition:i={},...a}=n||{};for(let t in a={...a,...r},a){let n=Bw(a[t]);zw(e,t,n)}}function Hw(e){return!!(vS(e)&&e.add)}function Uw(e,t){let n=e.getValue(`willChange`);if(Hw(n))return n.add(t);if(!n&&$_.WillChange){let n=new $_.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Ww(e){return e.props[HC]}const Gw=e=>e!==null;function Kw(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(Gw),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}const qw={type:`spring`,stiffness:500,damping:25,restSpeed:10},Jw=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Yw={type:`keyframes`,duration:.8},Xw={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Zw=(e,{keyframes:t})=>t.length>2?Yw:Lb.has(e)?e.startsWith(`scale`)?Jw(t[1]):qw:Xw;function Qw({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const $w=(e,t,n,r={},i,a)=>o=>{let s=Tx(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=lv(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Qw(s)||Object.assign(u,Zw(e,u)),u.duration&&=lv(u.duration),u.repeatDelay&&=lv(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(_x(u),u.delay===0&&(d=!0)),($_.instantAnimations||$_.skipAnimations)&&(d=!0,_x(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Kw(u.keyframes,s);if(e!==void 0){Iv.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Sb(u):new xx(u)};function eT({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function tT(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&eT(l,t))continue;let o={delay:n,...Tx(a||{},t)},u=r.get();if(u!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=Ww(e);if(n){let e=window.MotionHandoffAnimation(n,t,Iv);e!==null&&(o.startTime=e,d=!0)}}Uw(e,t),r.start($w(t,r,i,e.shouldReduceMotion&&Ex.has(t)?{type:!1}:o,e,d));let f=r.animation;f&&c.push(f)}return o&&Promise.all(c).then(()=>{Iv.update(()=>{o&&Vw(e,o)})}),c}function nT(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r,c=typeof n==`function`;return c?n(a,o):i===1?a*r:s-a*r}function rT(e,t,n={}){let r=Lw(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(tT(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return iT(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function iT(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(rT(c,t,{...o,delay:n+(typeof r==`function`?0:r)+nT(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function aT(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>rT(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=rT(e,t,n);else{let i=typeof t==`function`?Lw(e,t,n.custom):t;r=Promise.all(tT(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function oT(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const sT=QS.length;function cT(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&cT(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<sT;n++){let r=QS[n],i=e.props[r];(XS(i)||i===!1)&&(t[r]=i)}return t}const lT=[...ZS].reverse(),uT=ZS.length;function dT(e){return t=>Promise.all(t.map(({animation:t,options:n})=>aT(e,t,n)))}function fT(e){let t=dT(e),n=hT(),r=!0,i=t=>(n,r)=>{let i=Lw(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=cT(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<uT;t++){let f=lT[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=XS(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||YS(m)||typeof m==`boolean`)continue;let v=pT(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Rw(t)&&Rw(n)?!oT(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let E=_&&v,D=!E||b;y&&D&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Lw(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=nT(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=Lw(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=hT()}}}function pT(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!oT(t,e):!1}function mT(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hT(){return{animate:mT(!0),whileInView:mT(),whileHover:mT(),whileTap:mT(),whileDrag:mT(),whileFocus:mT(),exit:mT()}}var gT=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},_T=class extends gT{constructor(e){super(e),e.animationState||=fT(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();YS(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};let vT=0;var yT=class extends gT{constructor(){super(...arguments),this.id=vT++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}};const bT={animation:{Feature:_T},exit:{Feature:yT}};function xT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ST(e){return{point:{x:e.pageX,y:e.pageY}}}const CT=e=>t=>sS(t)&&e(t,ST(t));function wT(e,t,n,r){return xT(e,t,CT(n),r)}const TT=1e-4;1-TT,1+TT;const ET=.01;0-ET,0+ET;function DT(e){return e.max-e.min}function OT(e,t,n){return Math.abs(e-t)<=n}function kT(e,t,n,r=.5){e.origin=r,e.originPoint=jy(t.min,t.max,e.origin),e.scale=DT(n)/DT(t),e.translate=jy(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function AT(e,t,n,r){kT(e.x,t.x,n.x,r?r.originX:void 0),kT(e.y,t.y,n.y,r?r.originY:void 0)}function jT(e,t,n){e.min=n.min+t.min,e.max=e.min+DT(t)}function MT(e,t,n){jT(e.x,t.x,n.x),jT(e.y,t.y,n.y)}function NT(e,t,n){e.min=t.min-n.min,e.max=e.min+DT(t)}function PT(e,t,n){NT(e.x,t.x,n.x),NT(e.y,t.y,n.y)}function FT(e){return[e(`x`),e(`y`)]}const IT=({current:e})=>e?e.ownerDocument.defaultView:null,LT=(e,t)=>Math.abs(e-t);function RT(e,t){let n=LT(e.x,t.x),r=LT(e.y,t.y);return Math.sqrt(n**2+r**2)}var zT=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=HT(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=RT(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Rv;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=BT(t,this.transformPagePoint),Iv.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=HT(e.type===`pointercancel`?this.lastMoveEventInfo:BT(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!sS(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let o=ST(e),s=BT(o,this.transformPagePoint),{point:c}=s,{timestamp:l}=Rv;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,HT(s,this.history)),this.removeListeners=ov(wT(this.contextWindow,`pointermove`,this.handlePointerMove),wT(this.contextWindow,`pointerup`,this.handlePointerUp),wT(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Lv(this.updatePoint)}};function BT(e,t){return t?{point:t(e.point)}:e}function VT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function HT({point:e},t){return{point:e,delta:VT(e,WT(t)),offset:VT(e,UT(t)),velocity:GT(t,.1)}}function UT(e){return e[0]}function WT(e){return e[e.length-1]}function GT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=WT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>lv(t)));)n--;if(!r)return{x:0,y:0};let a=uv(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function KT(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?jy(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?jy(n,e,r.max):Math.min(e,n)),e}function qT(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function JT(e,{top:t,left:n,bottom:r,right:i}){return{x:qT(e.x,n,i),y:qT(e.y,t,r)}}function YT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function XT(e,t){return{x:YT(e.x,t.x),y:YT(e.y,t.y)}}function ZT(e,t){let n=.5,r=DT(e),i=DT(t);return i>r?n=sv(t.min,t.max-r,e.min):r>i&&(n=sv(e.min,e.max-i,t.min)),Q_(0,1,n)}function QT(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const $T=.35;function eE(e=$T){return e===!1?e=0:e===!0&&(e=$T),{x:tE(e,`left`,`right`),y:tE(e,`top`,`bottom`)}}function tE(e,t,n){return{min:nE(e,t),max:nE(e,n)}}function nE(e,t){return typeof e==`number`?e:e[t]||0}const rE=new WeakMap;var iE=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xw(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(ST(e).point)},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=nS(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),FT(e=>{let t=this.getAxisMotionValue(e).get()||0;if(dy.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=DT(r);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&Iv.postRender(()=>i(e,t)),Uw(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=oE(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>FT(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new zT(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:IT(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Iv.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aE(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=KT(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&zC(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=JT(n.layoutBox,e):this.constraints=!1,this.elastic=eE(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&FT(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=QT(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!zC(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=_w(n,r.root,this.visualElement.getTransformPagePoint()),a=XT(r.layout.layoutBox,i);if(t){let e=t($C(a));this.hasMutatedConstraints=!!e,e&&(a=QC(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=FT(o=>{if(!aE(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Uw(this.visualElement,e),n.start($w(e,n,0,t,this.visualElement,!1))}stopAnimation(){FT(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){FT(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){FT(t=>{let{drag:n}=this.getProps();if(!aE(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-jy(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!zC(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};FT(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=ZT({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),FT(t=>{if(!aE(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(jy(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;rE.set(this.visualElement,this);let e=this.visualElement.current,t=wT(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();zC(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Iv.read(n);let a=xT(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(FT(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=$T,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function aE(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function oE(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var sE=class extends gT{constructor(e){super(e),this.removeGroupControls=iv,this.removeListeners=iv,this.controls=new iE(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||iv}unmount(){this.removeGroupControls(),this.removeListeners()}};const cE=e=>(t,n)=>{e&&Iv.postRender(()=>e(t,n))};var lE=class extends gT{constructor(){super(...arguments),this.removePointerDownListener=iv}onPointerDown(e){this.session=new zT(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:IT(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:cE(e),onStart:cE(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Iv.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=wT(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const uE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let dE=!1;var fE=class extends r{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),dE&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),uE.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,dE=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Iv.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Qx.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;dE=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function pE(e){let[t,n]=kS(),r=d(G_);return b(fE,{...e,layoutGroup:r,switchLayoutGroup:d(UC),isPresent:t,safeToRemove:n})}function mE(e,t,n){let r=vS(e)?e:Zx(e);return r.start($w(``,r,t,n)),r.animation}const hE=(e,t)=>e.depth-t.depth;var gE=class{constructor(){this.children=[],this.isDirty=!1}add(e){X_(this.children,e),this.isDirty=!0}remove(e){Z_(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(hE),this.isDirty=!1,this.children.forEach(e)}};function _E(e,t){let n=Hv.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Lv(r),e(a-t))};return Iv.setup(r,!0),()=>Lv(r)}const vE=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],yE=vE.length,bE=e=>typeof e==`string`?parseFloat(e):e,xE=e=>typeof e==`number`||q.test(e);function SE(e,t,n,r,i,a){i?(e.opacity=jy(0,n.opacity??1,wE(r)),e.opacityExit=jy(t.opacity??1,0,TE(r))):a&&(e.opacity=jy(t.opacity??1,n.opacity??1,r));for(let i=0;i<yE;i++){let a=`border${vE[i]}Radius`,o=CE(t,a),s=CE(n,a);if(o===void 0&&s===void 0)continue;o||=0,s||=0;let c=o===0||s===0||xE(o)===xE(s);c?(e[a]=Math.max(jy(bE(o),bE(s),r),0),(dy.test(s)||dy.test(o))&&(e[a]+=`%`)):e[a]=s}(t.rotate||n.rotate)&&(e.rotate=jy(t.rotate||0,n.rotate||0,r))}function CE(e,t){return e[t]===void 0?e.borderRadius:e[t]}const wE=EE(0,.5,Sv),TE=EE(.5,.95,iv);function EE(e,t,n){return r=>r<e?0:r>t?1:n(sv(e,t,r))}function DE(e,t){e.min=t.min,e.max=t.max}function OE(e,t){DE(e.x,t.x),DE(e.y,t.y)}function kE(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function AE(e,t,n,r,i){return e-=t,e=ow(e,1/n,r),i!==void 0&&(e=ow(e,1/i,r)),e}function jE(e,t=0,n=1,r=.5,i,a=e,o=e){if(dy.test(t)){t=parseFloat(t);let e=jy(o.min,o.max,t/100);t=e-o.min}if(typeof t!=`number`)return;let s=jy(a.min,a.max,r);e===a&&(s-=t),e.min=AE(e.min,t,n,s,i),e.max=AE(e.max,t,n,s,i)}function ME(e,t,[n,r,i],a,o){jE(e,t[n],t[r],t[i],t.scale,a,o)}const NE=[`x`,`scaleX`,`originX`],PE=[`y`,`scaleY`,`originY`];function FE(e,t,n,r){ME(e.x,t,NE,n?n.x:void 0,r?r.x:void 0),ME(e.y,t,PE,n?n.y:void 0,r?r.y:void 0)}function IE(e){return e.translate===0&&e.scale===1}function LE(e){return IE(e.x)&&IE(e.y)}function RE(e,t){return e.min===t.min&&e.max===t.max}function zE(e,t){return RE(e.x,t.x)&&RE(e.y,t.y)}function BE(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function VE(e,t){return BE(e.x,t.x)&&BE(e.y,t.y)}function HE(e){return DT(e.x)/DT(e.y)}function UE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var WE=class{constructor(){this.members=[]}add(e){X_(this.members,e),e.scheduleRender()}remove(e){if(Z_(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function GE(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}const KE={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},qE=[``,`X`,`Y`,`Z`];let JE=0;function YE(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function XE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Ww(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Iv,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&XE(r)}function ZE({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=JE++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Nv.value&&(KE.nodes=KE.calculatedTargetDeltas=KE.calculatedProjections=0),this.nodes.forEach(eD),this.nodes.forEach(sD),this.nodes.forEach(cD),this.nodes.forEach(tD),Nv.addProjectionMetrics&&Nv.addProjectionMetrics(KE)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new gE)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new cv),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=gS(t)&&!_S(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Iv.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=_E(i,250),uE.hasAnimatedSinceResize&&(uE.hasAnimatedSinceResize=!1,this.nodes.forEach(oD)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||hD,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!VE(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Tx(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||oD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Lv(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(lD),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&XE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rD);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(iD);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(aD),this.nodes.forEach(QE),this.nodes.forEach($E)):this.nodes.forEach(iD),this.clearAllSnapshots();let t=Hv.now();Rv.delta=Q_(0,1e3/60,t-Rv.timestamp),Rv.timestamp=t,Rv.isProcessing=!0,zv.update.process(Rv),zv.preRender.process(Rv),zv.render.process(Rv),Rv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qx.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nD),this.sharedNodes.forEach(uD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Iv.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Iv.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!DT(this.snapshot.measuredBox.x)&&!DT(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=xw(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!LE(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||rw(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),yD(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return xw();let t=e.measureViewportBox(),n=this.scroll?.wasRoot||this.path.some(xD);if(!n){let{scroll:e}=this.root;e&&(pw(t.x,e.offset.x),pw(t.y,e.offset.y))}return t}removeElementScroll(e){let t=xw();if(OE(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&OE(t,e),pw(t.x,i.offset.x),pw(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=xw();OE(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&hw(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),rw(r.latestValues)&&hw(n,r.latestValues)}return rw(this.latestValues)&&hw(n,this.latestValues),n}removeTransform(e){let t=xw();OE(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!rw(n.latestValues))continue;nw(n.latestValues)&&n.updateSnapshot();let r=xw(),i=n.measurePageBox();OE(r,i),FE(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return rw(this.latestValues)&&FE(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Rv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t,r=!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);if(r)return;let{layout:i,layoutId:a}=this.options;if(!this.layout||!(i||a))return;this.resolvedRelativeTargetAt=Rv.timestamp;let o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=xw(),this.targetWithTransforms=xw()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),MT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):OE(this.target,this.layout.layoutBox),lw(this.target,this.targetDelta)):OE(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&this.animationProgress!==1?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),Nv.value&&KE.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||nw(this.parent.latestValues)||iw(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xw(),this.relativeTargetOrigin=xw(),PT(this.relativeTargetOrigin,t,n),OE(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Rv.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;OE(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;fw(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=xw());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(kE(this.prevProjectionDelta.x,this.projectionDelta.x),kE(this.prevProjectionDelta.y,this.projectionDelta.y)),AT(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!UE(this.projectionDelta.x,this.prevProjectionDelta.x)||!UE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Nv.value&&KE.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yw(),this.projectionDelta=yw(),this.projectionDeltaWithTransform=yw()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=yw();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=xw(),s=n?n.source:void 0,c=this.layout?this.layout.source:void 0,l=s!==c,u=this.getStack(),d=!u||u.members.length<=1,f=!!(l&&!d&&this.options.crossfade===!0&&!this.path.some(mD));this.animationProgress=0;let p;this.mixTargetDelta=t=>{let n=t/1e3;dD(a.x,e.x,n),dD(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(PT(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pD(this.relativeTarget,this.relativeTargetOrigin,o,n),p&&zE(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||=xw(),OE(p,this.relativeTarget)),l&&(this.animationValues=i,SE(i,r,this.latestValues,n,f,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Lv(this.pendingAnimation),void 0),this.pendingAnimation=Iv.update(()=>{uE.hasAnimatedSinceResize=!0,Uv.layout++,this.motionValue||=Zx(0),this.currentAnimation=mE(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Uv.layout--},onComplete:()=>{Uv.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&bD(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||xw();let t=DT(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=DT(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}OE(t,n),hw(t,i),AT(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new WE);let n=this.sharedNodes.get(e);n.add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&YE(`z`,e,r,this.animationValues);for(let t=0;t<qE.length;t++)YE(`rotate${qE[t]}`,e,r,this.animationValues),YE(`skew${qE[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=AC(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=AC(t?.pointerEvents)||``),this.hasProjected&&!rw(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=GE(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit,sC){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=sC[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?AC(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(rD),this.root.sharedNodes.clear()}}}function QE(e){e.updateLayout()}function $E(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?FT(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=DT(r);r.min=n[e].min,r.max=r.min+i}):bD(i,t.layoutBox,n)&&FT(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=DT(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=yw();AT(o,n,t.layoutBox);let s=yw();a?AT(s,e.applyTransform(r,!0),t.measuredBox):AT(s,n,t.layoutBox);let c=!LE(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=xw();PT(o,t.layoutBox,i.layoutBox);let s=xw();PT(s,n,a.layoutBox),VE(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function eD(e){Nv.value&&KE.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function tD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nD(e){e.clearSnapshot()}function rD(e){e.clearMeasurements()}function iD(e){e.isLayoutDirty=!1}function aD(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function oD(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sD(e){e.resolveTargetDelta()}function cD(e){e.calcProjection()}function lD(e){e.resetSkewAndRotation()}function uD(e){e.removeLeadSnapshot()}function dD(e,t,n){e.translate=jy(t.translate,0,n),e.scale=jy(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function fD(e,t,n,r){e.min=jy(t.min,n.min,r),e.max=jy(t.max,n.max,r)}function pD(e,t,n,r){fD(e.x,t.x,n.x,r),fD(e.y,t.y,n.y,r)}function mD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hD={duration:.45,ease:[.4,0,.1,1]},gD=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_D=gD(`applewebkit/`)&&!gD(`chrome/`)?Math.round:iv;function vD(e){e.min=_D(e.min),e.max=_D(e.max)}function yD(e){vD(e.x),vD(e.y)}function bD(e,t,n){return e===`position`||e===`preserve-aspect`&&!OT(HE(t),HE(n),.2)}function xD(e){return e!==e.root&&e.scroll?.wasRoot}const SD=ZE({attachResizeListener:(e,t)=>xT(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),CD={current:void 0},wD=ZE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!CD.current){let e=new SD({});e.mount(window),e.setOptions({layoutScroll:!0}),CD.current=e}return CD.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),TD={pan:{Feature:lE},drag:{Feature:sE,ProjectionNode:wD,MeasureLayout:pE}};function ED(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=`onHover`+n,a=r[i];a&&Iv.postRender(()=>a(t,ST(t)))}var DD=class extends gT{mount(){let{current:e}=this.node;e&&(this.unmount=aS(e,(e,t)=>(ED(this.node,t,`Start`),e=>ED(this.node,e,`End`))))}unmount(){}},OD=class extends gT{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=ov(xT(this.node.current,`focus`,()=>this.onFocus()),xT(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function kD(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=`onTap`+(n===`End`?``:n),a=r[i];a&&Iv.postRender(()=>a(t,ST(t)))}var AD=class extends gT{mount(){let{current:e}=this.node;e&&(this.unmount=hS(e,(e,t)=>(kD(this.node,t,`Start`),(e,{success:t})=>kD(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const jD=new WeakMap,MD=new WeakMap,ND=e=>{let t=jD.get(e.target);t&&t(e)},PD=e=>{e.forEach(ND)};function FD({root:e,...t}){let n=e||document;MD.has(n)||MD.set(n,{});let r=MD.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(PD,{root:e,...t})),r[i]}function ID(e,t,n){let r=FD(t);return jD.set(e,n),r.observe(e),()=>{jD.delete(e),r.unobserve(e)}}const LD={some:0,all:1};var RD=class extends gT{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:LD[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};return ID(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node,n=[`amount`,`margin`,`root`].some(zD(e,t));n&&this.startObserver()}unmount(){}};function zD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const BD={inView:{Feature:RD},tap:{Feature:AD},focus:{Feature:OD},hover:{Feature:DD}},VD={layout:{ProjectionNode:wD,MeasureLayout:pE}},HD={...bT,...BD,...TD,...VD},UD=ZC(HD,Iw),WD=({testId:e=`carousel-id`,activeIndex:t=0,extraClassNames:n=``,onSlide:r=()=>{},autoSlide:i,showIndicators:a=!0,continuous:o=!0,interval:s=4e3,prevIcon:c=Et,nextIcon:l=Dt,showArrows:u=!0,iconExtraClassNames:d=``,carouselItems:p})=>{let[m,h]=v(t),g=e=>{let t=(e+p.length)%p.length;h(t),r(t,t>m?`right`:`left`)};f(()=>{if(i){let e=setInterval(()=>{o||m<p.length-1?g(m+1):clearInterval(e)},s);return()=>clearInterval(e)}},[i,m,o,s,p.length]),f(()=>{t!==m&&h(t)},[t]);let _=()=>{if(m===0&&!o)return;let e=m-1;e<0&&(e=p.length-1),g(e)},y=()=>{if(m===p.length-1){if(!o)return;g(0)}else g(m+1)},S={type:`spring`,damping:20,stiffness:100},C={initial:e=>({x:e>0?`100%`:`-100%`,opacity:0}),animate:{x:0,opacity:1,transition:S},exit:e=>({x:e>0?`-100%`:`100%`,opacity:0,transition:S})};return x(`div`,{"data-testid":e,className:`tw:flex tw:w-full tw:flex-col tw:items-center tw:justify-center tw:overflow-hidden ${n}`,children:[x(`div`,{className:`tw:flex tw:h-max tw:w-full tw:items-center tw:gap-1`,children:[u&&b(pl,{icon:c,size:`lg`,variant:`no-border`,testId:`carousel-prev`,extraClassNames:`${m===0&&!o?`tw:invisible`:``} ${d} tw:animate-fadeIn`,onClick:_}),b(`div`,{className:`tw:h-full tw:w-full tw:overflow-hidden`,children:b(UD.div,{custom:1,initial:`initial`,animate:`animate`,exit:`exit`,variants:C,className:`tw:w-full`,children:p[m]},m)}),u&&b(pl,{icon:l,testId:`carousel-next`,size:`lg`,variant:`no-border`,extraClassNames:`${m===p.length-1&&!o?`tw:invisible`:``} ${d} tw:animate-fadeIn`,onClick:y})]}),a&&b(`div`,{className:`tw:mt-2 tw:flex tw:gap-1`,children:p.map((e,t)=>b(`div`,{className:`tw:h-2 tw:w-2 tw:cursor-pointer tw:rounded-full ${t===m?`tw:bg-sq-theme-dark`:`tw:bg-sq-darkish-gray`}`,onClick:()=>g(t)},t))})]})};var GD=WD;const KD=`tw:appearance-none tw:border tw:h-3.5 tw:w-3.5 tw:shrink-0 tw:focus:ring-0 tw:focus:ring-offset-0 tw:outline-none tw:focus:outline-none tw:dark:bg-sq-dark-background tw:dark:border-sq-dark-text tw:dark:enabled:hover:bg-sq-dark-background tw:checked:text-white tw:checked:border-sq-text-color tw:checked:enabled:hover:border-sq-theme-dark tw:checked:active:border-sq-theme-darker tw:checked:focus:border-sq-theme-dark tw:disabled:border-sq-disabled-gray tw:dark:disabled:border-sq-fairly-dark-gray tw:dark:checked:focus:bg-sq-dark-background`,qD=`tw:rounded ${KD}`,JD=`tw:rounded-full ${KD}`,YD=e=>{let{type:t=`checkbox`,value:n,disabled:r=!1,label:i,onChange:a,onClick:o,onKeyDown:s,checked:c,defaultChecked:l,id:u,name:d,extraClassNames:f=``,extraLabelClassNames:m,testId:h,...g}=e,_=p(),v=u??`checkbox${_}`,y=qc(g);return x(`span`,{className:`tw:flex ${f}`,children:[b(`input`,{value:n,type:t,"data-testid":h,name:d,id:v,readOnly:!a,checked:c,defaultChecked:l,className:`${t===`checkbox`?qD:JD} ${r?`tw:cursor-not-allowed`:`tw:cursor-pointer`}`,disabled:r,onClick:o,onChange:a,onKeyDown:s,...y}),i&&b(`label`,{htmlFor:v,className:`tw:ml-1.5 tw:text-sm tw:-mt-0.5 ${m} ${r?`tw:cursor-not-allowed tw:text-sq-fairly-dark-gray tw:dark:text-sq-fairly-dark-gray`:`tw:cursor-pointer tw:text-sq-text-color tw:dark:text-sq-dark-text`}`,children:i})]})},XD=({isVisible:e,children:t})=>{let n=_(null),[r,i]=v(0);return f(()=>{n.current&&setTimeout(()=>{i((n.current?.scrollHeight??0)+5)},0)},[t]),b(MS,{initial:!1,children:e&&b(UD.div,{initial:{height:0,opacity:0},animate:{height:r,opacity:1},exit:{height:0,opacity:0},transition:{type:`spring`,damping:20,stiffness:100},children:b(`div`,{ref:n,children:t})})})};var ZD=XD;const QD={sm:`tw:h-5 tw:w-5 tw:rounded`,md:`tw:h-6 tw:w-6 tw:rounded-md`,lg:`tw:h-8 tw:w-8 tw:rounded-lg`},$D=c(function({color:e,onClick:t,"aria-label":n,size:r=`lg`,extraClassNames:i=``,id:a,testId:o},s){return b(`button`,{ref:s,"aria-label":n,className:`tw:cursor-pointer tw:border tw:border-gray-700 tw:dark:border-gray-500 tw:shadow-sm tw:focus-visible:outline-none ${QD[r]} ${i}`,"data-testid":o,id:a,onClick:t,style:{backgroundColor:e},type:`button`})});var eO=$D;function tO({color:e,label:t,children:n,placement:r=`bottom`,align:i=`start`,extraClassNames:a=``,id:o,testId:s,onOpen:c}){let l=p(),u=b(`label`,{className:`tw:cursor-pointer tw:text-sm tw:whitespace-nowrap tw:text-sq-text-color tw:dark:text-sq-text-color-dark`,htmlFor:l,children:t}),d=b(eO,{"aria-label":t,color:e,id:o??l,size:`sm`,onClick:c});return n?x(`div`,{className:H(`tw:flex tw:items-center tw:gap-2`,a),children:[u,x(R_,{children:[b(z_,{asChild:!0,children:d}),b(V_,{align:i,className:`
1168
+ `),()=>{m.contains(p)&&m.removeChild(p)}},[n]),b(OS,{isPresent:n,childRef:o,sizeRef:s,children:e.cloneElement(t,{ref:l})})}const AS=({children:t,initial:n,isPresent:r,onExitComplete:i,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,root:l})=>{let u=Y_(jS),d=p(),f=!0,m=g(()=>(f=!1,{id:d,initial:n,isPresent:r,custom:a,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;i&&i()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[r,u,i]);return o&&f&&(m={...m}),g(()=>{u.forEach((e,t)=>u.set(t,!1))},[r]),e.useEffect(()=>{!r&&!u.size&&i&&i()},[r]),s===`popLayout`&&(t=b(kS,{isPresent:r,anchorX:c,root:l,children:t})),b(Q_.Provider,{value:m,children:t})};function jS(){return new Map}function MS(e=!0){let t=d(Q_);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=p();f(()=>{if(e)return i(a)},[e]);let o=u(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const NS=e=>e.key||``;function PS(e){let t=[];return n.forEach(e,e=>{l(e)&&t.push(e)}),t}const FS=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,root:c})=>{let[l,u]=MS(o),f=g(()=>PS(e),[e]),p=o&&!l?[]:f.map(NS),m=_(!0),h=_(f),x=Y_(()=>new Map),[S,C]=v(f),[w,T]=v(f);Z_(()=>{m.current=!1,h.current=f;for(let e=0;e<w.length;e++){let t=NS(w[e]);p.includes(t)?x.delete(t):x.get(t)!==!0&&x.set(t,!1)}},[w,p.length,p.join(`-`)]);let E=[];if(f!==S){let e=[...f];for(let t=0;t<w.length;t++){let n=w[t],r=NS(n);p.includes(r)||(e.splice(t,0,n),E.push(n))}return a===`wait`&&E.length&&(e=E),T(PS(e)),C(f),null}let{forceRender:D}=d(J_);return b(y,{children:w.map(e=>{let d=NS(e),g=o&&!l?!1:f===w||p.includes(d),_=()=>{if(x.has(d))x.set(d,!0);else return;let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(D?.(),T(h.current),o&&u?.(),r&&r())};return b(AS,{isPresent:g,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:g?void 0:_,anchorX:s,children:e},d)})})},IS=o({strict:!1}),LS={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},RS={};for(let e in LS)RS[e]={isEnabled:t=>LS[e].some(e=>!!t[e])};function zS(e){for(let t in e)RS[t]={...RS[t],...e[t]}}const BS=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.ignoreStrict.viewport`.split(`.`));function VS(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||BS.has(e)}function HS(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var US=j((()=>{})),WS={};N(WS,{default:()=>KS});var GS,KS,qS=j((()=>{US(),GS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,KS=HS(function(e){return GS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})}));let JS=e=>!VS(e);function YS(e){typeof e==`function`&&(JS=t=>t.startsWith(`on`)?!VS(t):e(t))}try{YS((qS(),P(WS)).default)}catch{}function XS(e,t,n){let r={};for(let i in e){if(i===`values`&&typeof e.values==`object`)continue;(JS(i)||n===!0&&VS(i)||!t&&!VS(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i])}return r}const ZS=o({});function QS(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function $S(e){return typeof e==`string`||Array.isArray(e)}const eC=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],tC=[`initial`,...eC];function nC(e){return QS(e.animate)||tC.some(t=>$S(e[t]))}function rC(e){return!!(nC(e)||e.variants)}function iC(e,t){if(nC(e)){let{initial:t,animate:n}=e;return{initial:t===!1||$S(t)?t:void 0,animate:$S(n)?n:void 0}}return e.inherit===!1?{}:t}function aC(e){let{initial:t,animate:n}=iC(e,d(ZS));return g(()=>({initial:t,animate:n}),[oC(t),oC(n)])}function oC(e){return Array.isArray(e)?e.join(` `):e}function sC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const cC={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(q.test(e))e=parseFloat(e);else return e;let n=sC(e,t.target.x),r=sC(e,t.target.y);return`${n}% ${r}%`}},lC={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Ay.parse(e);if(i.length>5)return r;let a=Ay.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=Py(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},uC={borderRadius:{...cC,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:cC,borderTopRightRadius:cC,borderBottomLeftRadius:cC,borderBottomRightRadius:cC,boxShadow:lC};function dC(e,{layout:t,layoutId:n}){return Bb.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!uC[e]||e===`opacity`)}const fC={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},pC=zb.length;function mC(e,t,n){let r=``,i=!0;for(let a=0;a<pC;a++){let o=zb[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===(o.startsWith(`scale`)?1:0):parseFloat(s)===0,!c||n){let e=Yx(s,Vx[o]);if(!c){i=!1;let t=fC[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function hC(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Bb.has(e)){o=!0;continue}else if(Jv(e)){i[e]=n;continue}else{let t=Yx(n,Vx[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=mC(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}const gC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _C(e,t,n){for(let r in t)!xS(t[r])&&!dC(r,n)&&(e[r]=t[r])}function vC({transformTemplate:e},t){return g(()=>{let n=gC();return hC(n,t,e),Object.assign({},n.vars,n.style)},[t])}function yC(e,t){let n=e.style||{},r={};return _C(r,n,e),Object.assign(r,vC(e,t)),r}function bC(e,t){let n={},r=yC(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const xC={offset:`stroke-dashoffset`,array:`stroke-dasharray`},SC={offset:`strokeDashoffset`,array:`strokeDasharray`};function CC(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?xC:SC;e[a.offset]=q.transform(-r);let o=q.transform(t),s=q.transform(n);e[a.array]=`${o} ${s}`}function wC(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(hC(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&CC(d,i,a,o,!1)}const TC=()=>({...gC(),attrs:{}}),EC=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function DC(e,t,n,r){let i=g(()=>{let n=TC();return wC(n,t,EC(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};_C(t,e.style,e),i.style={...t,...i.style}}return i}const OC=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function kC(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(OC.indexOf(e)>-1||/[A-Z]/u.test(e))}function AC(e,t,n,{latestValues:r},a,o=!1){let c=kC(e)?DC:bC,l=c(t,r,a,e),u=XS(t,typeof e==`string`,o),d=e===i?{}:{...u,...l,ref:n},{children:f}=t,p=g(()=>xS(f)?f.get():f,[f]);return s(e,{...d,children:p})}function jC(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function MC(e,t,n,r){if(typeof t==`function`){let[i,a]=jC(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=jC(r);t=t(n===void 0?e.custom:n,i,a)}return t}function NC(e){return xS(e)?e.get():e}function PC({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){let a={latestValues:FC(n,r,i,e),renderState:t()};return a}function FC(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=NC(a[e]);let{initial:o,animate:s}=e,c=nC(e),l=rC(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!QS(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=MC(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}const IC=e=>(t,n)=>{let r=d(ZS),i=d(Q_),a=()=>PC(e,t,r,i);return n?a():Y_(a)};function LC(e,t,n){let{style:r}=e,i={};for(let a in r)(xS(r[a])||t.style&&xS(t.style[a])||dC(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const RC=IC({scrapeMotionValuesFromProps:LC,createRenderState:gC});function zC(e,t,n){let r=LC(e,t,n);for(let n in e)if(xS(e[n])||xS(t[n])){let t=zb.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}const BC=IC({scrapeMotionValuesFromProps:zC,createRenderState:TC}),VC=Symbol.for(`motionComponentSymbol`);function HC(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function UC(e,t,n){return u(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):HC(n)&&(n.current=r))},[t])}const WC=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),GC=`data-`+WC(`framerAppearId`),KC=o({});function qC(e,t,n,r,i){let{visualElement:a}=d(ZS),o=d(IS),s=d(Q_),c=d(wS).reducedMotion,l=_(null);r||=o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}));let u=l.current,p=d(KC);u&&!u.projection&&i&&(u.type===`html`||u.type===`svg`)&&JC(l.current,n,i,p);let h=_(!1);m(()=>{u&&h.current&&u.update(n,s)});let g=n[GC],v=_(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return Z_(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),v.current&&u.animationState&&u.animationState.animateChanges())}),f(()=>{u&&(!v.current&&u.animationState&&u.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),u.enteringChildren=void 0)}),u}function JC(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:YC(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&HC(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function YC(e){if(e)return e.options.allowProjection===!1?YC(e.parent):e.projection}function XC(e,{forwardMotionProps:t=!1}={},n,r){n&&zS(n);let i=kC(e)?BC:RC;function a(a,o){let s,c={...d(wS),...a,layoutId:ZC(a)},{isStatic:l}=c,u=aC(a),f=i(a,l);if(!l&&X_){QC(c,n);let t=$C(c);s=t.MeasureLayout,u.visualElement=qC(e,f,c,r,t.ProjectionNode)}return x(ZS.Provider,{value:u,children:[s&&u.visualElement?b(s,{visualElement:u.visualElement,...c}):null,AC(e,a,UC(f,u.visualElement,o),f,l,t)]})}a.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let o=c(a);return o[VC]=e,o}function ZC({layoutId:e}){let t=d(J_).id;return t&&e!==void 0?t+`-`+e:e}function QC(e,t){d(IS).strict}function $C(e){let{drag:t,layout:n}=RS;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function ew(e,t){if(typeof Proxy>`u`)return XC;let n=new Map,r=(n,r)=>XC(n,r,e,t),i=(e,t)=>r(e,t);return new Proxy(i,{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,XC(a,void 0,e,t)),n.get(a))})}function tw({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function rw(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function iw(e){return e===void 0||e===1}function aw({scale:e,scaleX:t,scaleY:n}){return!iw(e)||!iw(t)||!iw(n)}function ow(e){return aw(e)||sw(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sw(e){return cw(e.x)||cw(e.y)}function cw(e){return e&&e!==`0%`}function lw(e,t,n){let r=e-n,i=t*r;return n+i}function uw(e,t,n,r,i){return i!==void 0&&(e=lw(e,i,r)),lw(e,n,r)+t}function dw(e,t=0,n=1,r,i){e.min=uw(e.min,t,n,r,i),e.max=uw(e.max,t,n,r,i)}function fw(e,{x:t,y:n}){dw(e.x,t.translate,t.scale,t.originPoint),dw(e.y,n.translate,n.scale,n.originPoint)}const pw=.999999999999,mw=1.0000000000001;function hw(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&vw(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,fw(e,o)),r&&ow(a.latestValues)&&vw(e,a.latestValues))}t.x<mw&&t.x>pw&&(t.x=1),t.y<mw&&t.y>pw&&(t.y=1)}function gw(e,t){e.min+=t,e.max+=t}function _w(e,t,n,r,i=.5){let a=Py(e.min,e.max,i);dw(e,t,n,a,r)}function vw(e,t){_w(e.x,t.x,t.scaleX,t.scale,t.originX),_w(e.y,t.y,t.scaleY,t.scale,t.originY)}function yw(e,t){return tw(rw(e.getBoundingClientRect(),t))}function bw(e,t,n){let r=yw(e,n),{scroll:i}=t;return i&&(gw(r.x,i.offset.x),gw(r.y,i.offset.y)),r}const xw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sw=()=>({x:xw(),y:xw()}),Cw=()=>({min:0,max:0}),ww=()=>({x:Cw(),y:Cw()}),Tw={current:null},Ew={current:!1};function Dw(){if(Ew.current=!0,X_)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Tw.current=e.matches;e.addEventListener(`change`,t),t()}else Tw.current=!1}const Ow=new WeakMap;function kw(e,t,n){for(let r in t){let i=t[r],a=n[r];if(xS(i))e.addValue(r,i);else if(xS(a))e.addValue(r,eS(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,eS(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}const Aw=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`];var jw=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=$b,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Gv.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,zv.render(this.render,!1,!0))};let{latestValues:s,renderState:c}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=nC(t),this.isVariantNode=rC(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in u){let t=u[e];s[e]!==void 0&&xS(t)&&t.set(s[e])}}mount(e){this.current=e,Ow.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Ew.current||Dw(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:Tw.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),Bv(this.notifyUpdate),Bv(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=Bb.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&zv.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in RS){let t=RS[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ww()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Aw.length;t++){let n=Aw[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=`on`+n,i=e[r];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=kw(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=eS(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(rv(n)||av(n))?n=parseFloat(n):!CS(n)&&Ay.test(t)&&(n=Wx(e,t)),this.setBaseTarget(e,xS(n)?n.get():n)),xS(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=MC(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!xS(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new dv),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tS.render(this.render)}},Mw=class extends jw{constructor(){super(...arguments),this.KeyframeResolver=qx}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;xS(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Nw(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Pw(e){return window.getComputedStyle(e)}var Fw=class extends Mw{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Nw}readValueFromInstance(e,t){if(Bb.has(t))return this.projection?.isProjecting?Fb(t):Lb(e,t);{let n=Pw(e),r=(Jv(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return yw(e,t)}build(e,t,n){hC(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return LC(e,t,n)}};const Iw=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function Lw(e,t,n,r){for(let n in Nw(e,t,void 0,r),t.attrs)e.setAttribute(Iw.has(n)?n:WC(n),t.attrs[n])}var Rw=class extends Mw{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=ww}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Bb.has(t)){let e=Ux(t);return e&&e.default||0}return t=Iw.has(t)?t:WC(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return zC(e,t,n)}build(e,t,n){wC(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Lw(e,t,n,r)}mount(e){this.isSVGTag=EC(e.tagName),super.mount(e)}};const zw=(e,t)=>kC(e)?new Rw(t):new Fw(t,{allowProjection:e!==i});function Bw(e,t,n){let r=e.getProps();return MC(r,t,n===void 0?r.custom:n,e)}const Vw=e=>Array.isArray(e);function Hw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,eS(n))}function Uw(e){return Vw(e)?e[e.length-1]||0:e}function Ww(e,t){let n=Bw(e,t),{transitionEnd:r={},transition:i={},...a}=n||{};for(let t in a={...a,...r},a){let n=Uw(a[t]);Hw(e,t,n)}}function Gw(e){return!!(xS(e)&&e.add)}function Kw(e,t){let n=e.getValue(`willChange`);if(Gw(n))return n.add(t);if(!n&&nv.WillChange){let n=new nv.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function qw(e){return e.props[GC]}const Jw=e=>e!==null;function Yw(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(Jw),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}const Xw={type:`spring`,stiffness:500,damping:25,restSpeed:10},Zw=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Qw={type:`keyframes`,duration:.8},$w={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},eT=(e,{keyframes:t})=>t.length>2?Qw:Bb.has(e)?e.startsWith(`scale`)?Zw(t[1]):Xw:$w;function tT({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const nT=(e,t,n,r={},i,a)=>o=>{let s=Ox(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=fv(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};tT(s)||Object.assign(u,eT(e,u)),u.duration&&=fv(u.duration),u.repeatDelay&&=fv(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(bx(u),u.delay===0&&(d=!0)),(nv.instantAnimations||nv.skipAnimations)&&(d=!0,bx(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Yw(u.keyframes,s);if(e!==void 0){zv.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Tb(u):new wx(u)};function rT({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function iT(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&rT(l,t))continue;let o={delay:n,...Ox(a||{},t)},u=r.get();if(u!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=qw(e);if(n){let e=window.MotionHandoffAnimation(n,t,zv);e!==null&&(o.startTime=e,d=!0)}}Kw(e,t),r.start(nT(t,r,i,e.shouldReduceMotion&&kx.has(t)?{type:!1}:o,e,d));let f=r.animation;f&&c.push(f)}return o&&Promise.all(c).then(()=>{zv.update(()=>{o&&Ww(e,o)})}),c}function aT(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r,c=typeof n==`function`;return c?n(a,o):i===1?a*r:s-a*r}function oT(e,t,n={}){let r=Bw(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(iT(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return sT(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function sT(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(oT(c,t,{...o,delay:n+(typeof r==`function`?0:r)+aT(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function cT(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>oT(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=oT(e,t,n);else{let i=typeof t==`function`?Bw(e,t,n.custom):t;r=Promise.all(iT(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function lT(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const uT=tC.length;function dT(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&dT(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<uT;n++){let r=tC[n],i=e.props[r];($S(i)||i===!1)&&(t[r]=i)}return t}const fT=[...eC].reverse(),pT=eC.length;function mT(e){return t=>Promise.all(t.map(({animation:t,options:n})=>cT(e,t,n)))}function hT(e){let t=mT(e),n=vT(),r=!0,i=t=>(n,r)=>{let i=Bw(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=dT(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<pT;t++){let f=fT[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=$S(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||QS(m)||typeof m==`boolean`)continue;let v=gT(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Vw(t)&&Vw(n)?!lT(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let E=_&&v,D=!E||b;y&&D&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Bw(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=aT(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=Bw(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=vT()}}}function gT(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!lT(t,e):!1}function _T(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vT(){return{animate:_T(!0),whileInView:_T(),whileHover:_T(),whileTap:_T(),whileDrag:_T(),whileFocus:_T(),exit:_T()}}var yT=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},bT=class extends yT{constructor(e){super(e),e.animationState||=hT(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();QS(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};let xT=0;var ST=class extends yT{constructor(){super(...arguments),this.id=xT++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}};const CT={animation:{Feature:bT},exit:{Feature:ST}};function wT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function TT(e){return{point:{x:e.pageX,y:e.pageY}}}const ET=e=>t=>uS(t)&&e(t,TT(t));function DT(e,t,n,r){return wT(e,t,ET(n),r)}const OT=1e-4;1-OT,1+OT;const kT=.01;0-kT,0+kT;function AT(e){return e.max-e.min}function jT(e,t,n){return Math.abs(e-t)<=n}function MT(e,t,n,r=.5){e.origin=r,e.originPoint=Py(t.min,t.max,e.origin),e.scale=AT(n)/AT(t),e.translate=Py(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function NT(e,t,n,r){MT(e.x,t.x,n.x,r?r.originX:void 0),MT(e.y,t.y,n.y,r?r.originY:void 0)}function PT(e,t,n){e.min=n.min+t.min,e.max=e.min+AT(t)}function FT(e,t,n){PT(e.x,t.x,n.x),PT(e.y,t.y,n.y)}function IT(e,t,n){e.min=t.min-n.min,e.max=e.min+AT(t)}function LT(e,t,n){IT(e.x,t.x,n.x),IT(e.y,t.y,n.y)}function RT(e){return[e(`x`),e(`y`)]}const zT=({current:e})=>e?e.ownerDocument.defaultView:null,BT=(e,t)=>Math.abs(e-t);function VT(e,t){let n=BT(e.x,t.x),r=BT(e.y,t.y);return Math.sqrt(n**2+r**2)}var HT=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=GT(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=VT(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Vv;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=UT(t,this.transformPagePoint),zv.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=GT(e.type===`pointercancel`?this.lastMoveEventInfo:UT(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!uS(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let o=TT(e),s=UT(o,this.transformPagePoint),{point:c}=s,{timestamp:l}=Vv;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,GT(s,this.history)),this.removeListeners=lv(DT(this.contextWindow,`pointermove`,this.handlePointerMove),DT(this.contextWindow,`pointerup`,this.handlePointerUp),DT(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Bv(this.updatePoint)}};function UT(e,t){return t?{point:t(e.point)}:e}function WT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function GT({point:e},t){return{point:e,delta:WT(e,qT(t)),offset:WT(e,KT(t)),velocity:JT(t,.1)}}function KT(e){return e[0]}function qT(e){return e[e.length-1]}function JT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=qT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>fv(t)));)n--;if(!r)return{x:0,y:0};let a=pv(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function YT(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Py(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Py(n,e,r.max):Math.min(e,n)),e}function XT(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function ZT(e,{top:t,left:n,bottom:r,right:i}){return{x:XT(e.x,n,i),y:XT(e.y,t,r)}}function QT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function $T(e,t){return{x:QT(e.x,t.x),y:QT(e.y,t.y)}}function eE(e,t){let n=.5,r=AT(e),i=AT(t);return i>r?n=uv(t.min,t.max-r,e.min):r>i&&(n=uv(e.min,e.max-i,t.min)),tv(0,1,n)}function tE(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const nE=.35;function rE(e=nE){return e===!1?e=0:e===!0&&(e=nE),{x:iE(e,`left`,`right`),y:iE(e,`top`,`bottom`)}}function iE(e,t,n){return{min:aE(e,t),max:aE(e,n)}}function aE(e,t){return typeof e==`number`?e:e[t]||0}const oE=new WeakMap;var sE=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ww(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(TT(e).point)},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aS(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),RT(e=>{let t=this.getAxisMotionValue(e).get()||0;if(my.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=AT(r);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&zv.postRender(()=>i(e,t)),Kw(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=lE(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>RT(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new HT(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:zT(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&zv.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!cE(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=YT(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&HC(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=ZT(n.layoutBox,e):this.constraints=!1,this.elastic=rE(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&RT(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=tE(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!HC(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=bw(n,r.root,this.visualElement.getTransformPagePoint()),a=$T(r.layout.layoutBox,i);if(t){let e=t(nw(a));this.hasMutatedConstraints=!!e,e&&(a=tw(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=RT(o=>{if(!cE(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Kw(this.visualElement,e),n.start(nT(e,n,0,t,this.visualElement,!1))}stopAnimation(){RT(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){RT(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){RT(t=>{let{drag:n}=this.getProps();if(!cE(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-Py(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!HC(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};RT(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=eE({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),RT(t=>{if(!cE(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(Py(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;oE.set(this.visualElement,this);let e=this.visualElement.current,t=DT(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();HC(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),zv.read(n);let a=wT(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(RT(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=nE,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function cE(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function lE(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var uE=class extends yT{constructor(e){super(e),this.removeGroupControls=sv,this.removeListeners=sv,this.controls=new sE(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sv}unmount(){this.removeGroupControls(),this.removeListeners()}};const dE=e=>(t,n)=>{e&&zv.postRender(()=>e(t,n))};var fE=class extends yT{constructor(){super(...arguments),this.removePointerDownListener=sv}onPointerDown(e){this.session=new HT(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zT(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:dE(e),onStart:dE(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&zv.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=DT(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const pE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let mE=!1;var hE=class extends r{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),mE&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),pE.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,mE=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||zv.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),tS.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;mE=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function gE(e){let[t,n]=MS(),r=d(J_);return b(hE,{...e,layoutGroup:r,switchLayoutGroup:d(KC),isPresent:t,safeToRemove:n})}function _E(e,t,n){let r=xS(e)?e:eS(e);return r.start(nT(``,r,t,n)),r.animation}const vE=(e,t)=>e.depth-t.depth;var yE=class{constructor(){this.children=[],this.isDirty=!1}add(e){$_(this.children,e),this.isDirty=!0}remove(e){ev(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(vE),this.isDirty=!1,this.children.forEach(e)}};function bE(e,t){let n=Gv.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Bv(r),e(a-t))};return zv.setup(r,!0),()=>Bv(r)}const xE=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],SE=xE.length,CE=e=>typeof e==`string`?parseFloat(e):e,wE=e=>typeof e==`number`||q.test(e);function TE(e,t,n,r,i,a){i?(e.opacity=Py(0,n.opacity??1,DE(r)),e.opacityExit=Py(t.opacity??1,0,OE(r))):a&&(e.opacity=Py(t.opacity??1,n.opacity??1,r));for(let i=0;i<SE;i++){let a=`border${xE[i]}Radius`,o=EE(t,a),s=EE(n,a);if(o===void 0&&s===void 0)continue;o||=0,s||=0;let c=o===0||s===0||wE(o)===wE(s);c?(e[a]=Math.max(Py(CE(o),CE(s),r),0),(my.test(s)||my.test(o))&&(e[a]+=`%`)):e[a]=s}(t.rotate||n.rotate)&&(e.rotate=Py(t.rotate||0,n.rotate||0,r))}function EE(e,t){return e[t]===void 0?e.borderRadius:e[t]}const DE=kE(0,.5,Tv),OE=kE(.5,.95,sv);function kE(e,t,n){return r=>r<e?0:r>t?1:n(uv(e,t,r))}function AE(e,t){e.min=t.min,e.max=t.max}function jE(e,t){AE(e.x,t.x),AE(e.y,t.y)}function ME(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function NE(e,t,n,r,i){return e-=t,e=lw(e,1/n,r),i!==void 0&&(e=lw(e,1/i,r)),e}function PE(e,t=0,n=1,r=.5,i,a=e,o=e){if(my.test(t)){t=parseFloat(t);let e=Py(o.min,o.max,t/100);t=e-o.min}if(typeof t!=`number`)return;let s=Py(a.min,a.max,r);e===a&&(s-=t),e.min=NE(e.min,t,n,s,i),e.max=NE(e.max,t,n,s,i)}function FE(e,t,[n,r,i],a,o){PE(e,t[n],t[r],t[i],t.scale,a,o)}const IE=[`x`,`scaleX`,`originX`],LE=[`y`,`scaleY`,`originY`];function RE(e,t,n,r){FE(e.x,t,IE,n?n.x:void 0,r?r.x:void 0),FE(e.y,t,LE,n?n.y:void 0,r?r.y:void 0)}function zE(e){return e.translate===0&&e.scale===1}function BE(e){return zE(e.x)&&zE(e.y)}function VE(e,t){return e.min===t.min&&e.max===t.max}function HE(e,t){return VE(e.x,t.x)&&VE(e.y,t.y)}function UE(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function WE(e,t){return UE(e.x,t.x)&&UE(e.y,t.y)}function GE(e){return AT(e.x)/AT(e.y)}function KE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var qE=class{constructor(){this.members=[]}add(e){$_(this.members,e),e.scheduleRender()}remove(e){if(ev(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function JE(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}const YE={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},XE=[``,`X`,`Y`,`Z`];let ZE=0;function QE(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function $E(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=qw(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,zv,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&$E(r)}function eD({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=ZE++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Iv.value&&(YE.nodes=YE.calculatedTargetDeltas=YE.calculatedProjections=0),this.nodes.forEach(rD),this.nodes.forEach(uD),this.nodes.forEach(dD),this.nodes.forEach(iD),Iv.addProjectionMetrics&&Iv.addProjectionMetrics(YE)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new yE)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new dv),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=yS(t)&&!bS(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;zv.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=bE(i,250),pE.hasAnimatedSinceResize&&(pE.hasAnimatedSinceResize=!1,this.nodes.forEach(lD)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||vD,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!WE(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Ox(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||lD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Bv(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(fD),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&$E(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(oD);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(sD);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(cD),this.nodes.forEach(tD),this.nodes.forEach(nD)):this.nodes.forEach(sD),this.clearAllSnapshots();let t=Gv.now();Vv.delta=tv(0,1e3/60,t-Vv.timestamp),Vv.timestamp=t,Vv.isProcessing=!0,Hv.update.process(Vv),Hv.preRender.process(Vv),Hv.render.process(Vv),Vv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aD),this.sharedNodes.forEach(pD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zv.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zv.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!AT(this.snapshot.measuredBox.x)&&!AT(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ww(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!BE(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ow(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),SD(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return ww();let t=e.measureViewportBox(),n=this.scroll?.wasRoot||this.path.some(wD);if(!n){let{scroll:e}=this.root;e&&(gw(t.x,e.offset.x),gw(t.y,e.offset.y))}return t}removeElementScroll(e){let t=ww();if(jE(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&jE(t,e),gw(t.x,i.offset.x),gw(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=ww();jE(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&vw(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),ow(r.latestValues)&&vw(n,r.latestValues)}return ow(this.latestValues)&&vw(n,this.latestValues),n}removeTransform(e){let t=ww();jE(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!ow(n.latestValues))continue;aw(n.latestValues)&&n.updateSnapshot();let r=ww(),i=n.measurePageBox();jE(r,i),RE(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return ow(this.latestValues)&&RE(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Vv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t,r=!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);if(r)return;let{layout:i,layoutId:a}=this.options;if(!this.layout||!(i||a))return;this.resolvedRelativeTargetAt=Vv.timestamp;let o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ww(),this.targetWithTransforms=ww()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),FT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):jE(this.target,this.layout.layoutBox),fw(this.target,this.targetDelta)):jE(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&this.animationProgress!==1?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),Iv.value&&YE.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||aw(this.parent.latestValues)||sw(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ww(),this.relativeTargetOrigin=ww(),LT(this.relativeTargetOrigin,t,n),jE(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Vv.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;jE(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;hw(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ww());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ME(this.prevProjectionDelta.x,this.projectionDelta.x),ME(this.prevProjectionDelta.y,this.projectionDelta.y)),NT(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!KE(this.projectionDelta.x,this.prevProjectionDelta.x)||!KE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Iv.value&&YE.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Sw(),this.projectionDelta=Sw(),this.projectionDeltaWithTransform=Sw()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=Sw();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=ww(),s=n?n.source:void 0,c=this.layout?this.layout.source:void 0,l=s!==c,u=this.getStack(),d=!u||u.members.length<=1,f=!!(l&&!d&&this.options.crossfade===!0&&!this.path.some(_D));this.animationProgress=0;let p;this.mixTargetDelta=t=>{let n=t/1e3;mD(a.x,e.x,n),mD(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(LT(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),gD(this.relativeTarget,this.relativeTargetOrigin,o,n),p&&HE(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||=ww(),jE(p,this.relativeTarget)),l&&(this.animationValues=i,TE(i,r,this.latestValues,n,f,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Bv(this.pendingAnimation),void 0),this.pendingAnimation=zv.update(()=>{pE.hasAnimatedSinceResize=!0,Kv.layout++,this.motionValue||=eS(0),this.currentAnimation=_E(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Kv.layout--},onComplete:()=>{Kv.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&CD(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||ww();let t=AT(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=AT(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}jE(t,n),vw(t,i),NT(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new qE);let n=this.sharedNodes.get(e);n.add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&QE(`z`,e,r,this.animationValues);for(let t=0;t<XE.length;t++)QE(`rotate${XE[t]}`,e,r,this.animationValues),QE(`skew${XE[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=NC(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=NC(t?.pointerEvents)||``),this.hasProjected&&!ow(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=JE(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit,uC){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=uC[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?NC(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(oD),this.root.sharedNodes.clear()}}}function tD(e){e.updateLayout()}function nD(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?RT(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=AT(r);r.min=n[e].min,r.max=r.min+i}):CD(i,t.layoutBox,n)&&RT(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=AT(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Sw();NT(o,n,t.layoutBox);let s=Sw();a?NT(s,e.applyTransform(r,!0),t.measuredBox):NT(s,n,t.layoutBox);let c=!BE(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=ww();LT(o,t.layoutBox,i.layoutBox);let s=ww();LT(s,n,a.layoutBox),WE(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rD(e){Iv.value&&YE.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function iD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aD(e){e.clearSnapshot()}function oD(e){e.clearMeasurements()}function sD(e){e.isLayoutDirty=!1}function cD(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function lD(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uD(e){e.resolveTargetDelta()}function dD(e){e.calcProjection()}function fD(e){e.resetSkewAndRotation()}function pD(e){e.removeLeadSnapshot()}function mD(e,t,n){e.translate=Py(t.translate,0,n),e.scale=Py(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hD(e,t,n,r){e.min=Py(t.min,n.min,r),e.max=Py(t.max,n.max,r)}function gD(e,t,n,r){hD(e.x,t.x,n.x,r),hD(e.y,t.y,n.y,r)}function _D(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vD={duration:.45,ease:[.4,0,.1,1]},yD=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bD=yD(`applewebkit/`)&&!yD(`chrome/`)?Math.round:sv;function xD(e){e.min=bD(e.min),e.max=bD(e.max)}function SD(e){xD(e.x),xD(e.y)}function CD(e,t,n){return e===`position`||e===`preserve-aspect`&&!jT(GE(t),GE(n),.2)}function wD(e){return e!==e.root&&e.scroll?.wasRoot}const TD=eD({attachResizeListener:(e,t)=>wT(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ED={current:void 0},DD=eD({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ED.current){let e=new TD({});e.mount(window),e.setOptions({layoutScroll:!0}),ED.current=e}return ED.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),OD={pan:{Feature:fE},drag:{Feature:uE,ProjectionNode:DD,MeasureLayout:gE}};function kD(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=`onHover`+n,a=r[i];a&&zv.postRender(()=>a(t,TT(t)))}var AD=class extends yT{mount(){let{current:e}=this.node;e&&(this.unmount=cS(e,(e,t)=>(kD(this.node,t,`Start`),e=>kD(this.node,e,`End`))))}unmount(){}},jD=class extends yT{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=lv(wT(this.node.current,`focus`,()=>this.onFocus()),wT(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function MD(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=`onTap`+(n===`End`?``:n),a=r[i];a&&zv.postRender(()=>a(t,TT(t)))}var ND=class extends yT{mount(){let{current:e}=this.node;e&&(this.unmount=vS(e,(e,t)=>(MD(this.node,t,`Start`),(e,{success:t})=>MD(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const PD=new WeakMap,FD=new WeakMap,ID=e=>{let t=PD.get(e.target);t&&t(e)},LD=e=>{e.forEach(ID)};function RD({root:e,...t}){let n=e||document;FD.has(n)||FD.set(n,{});let r=FD.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(LD,{root:e,...t})),r[i]}function zD(e,t,n){let r=RD(t);return PD.set(e,n),r.observe(e),()=>{PD.delete(e),r.unobserve(e)}}const BD={some:0,all:1};var VD=class extends yT{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:BD[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};return zD(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node,n=[`amount`,`margin`,`root`].some(HD(e,t));n&&this.startObserver()}unmount(){}};function HD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const UD={inView:{Feature:VD},tap:{Feature:ND},focus:{Feature:jD},hover:{Feature:AD}},WD={layout:{ProjectionNode:DD,MeasureLayout:gE}},GD={...CT,...UD,...OD,...WD},KD=ew(GD,zw),qD=({testId:e=`carousel-id`,activeIndex:t=0,extraClassNames:n=``,onSlide:r=()=>{},autoSlide:i,showIndicators:a=!0,continuous:o=!0,interval:s=4e3,prevIcon:c=Et,nextIcon:l=Dt,showArrows:u=!0,iconExtraClassNames:d=``,carouselItems:p})=>{let[m,h]=v(t),g=e=>{let t=(e+p.length)%p.length;h(t),r(t,t>m?`right`:`left`)};f(()=>{if(i){let e=setInterval(()=>{o||m<p.length-1?g(m+1):clearInterval(e)},s);return()=>clearInterval(e)}},[i,m,o,s,p.length]),f(()=>{t!==m&&h(t)},[t]);let _=()=>{if(m===0&&!o)return;let e=m-1;e<0&&(e=p.length-1),g(e)},y=()=>{if(m===p.length-1){if(!o)return;g(0)}else g(m+1)},S={type:`spring`,damping:20,stiffness:100},C={initial:e=>({x:e>0?`100%`:`-100%`,opacity:0}),animate:{x:0,opacity:1,transition:S},exit:e=>({x:e>0?`-100%`:`100%`,opacity:0,transition:S})};return x(`div`,{"data-testid":e,className:`tw:flex tw:w-full tw:flex-col tw:items-center tw:justify-center tw:overflow-hidden ${n}`,children:[x(`div`,{className:`tw:flex tw:h-max tw:w-full tw:items-center tw:gap-1`,children:[u&&b(gl,{icon:c,size:`lg`,variant:`no-border`,testId:`carousel-prev`,extraClassNames:`${m===0&&!o?`tw:invisible`:``} ${d} tw:animate-fadeIn`,onClick:_}),b(`div`,{className:`tw:h-full tw:w-full tw:overflow-hidden`,children:b(KD.div,{custom:1,initial:`initial`,animate:`animate`,exit:`exit`,variants:C,className:`tw:w-full`,children:p[m]},m)}),u&&b(gl,{icon:l,testId:`carousel-next`,size:`lg`,variant:`no-border`,extraClassNames:`${m===p.length-1&&!o?`tw:invisible`:``} ${d} tw:animate-fadeIn`,onClick:y})]}),a&&b(`div`,{className:`tw:mt-2 tw:flex tw:gap-1`,children:p.map((e,t)=>b(`div`,{className:`tw:h-2 tw:w-2 tw:cursor-pointer tw:rounded-full ${t===m?`tw:bg-sq-theme-dark`:`tw:bg-sq-darkish-gray`}`,onClick:()=>g(t)},t))})]})};var JD=qD;const YD=`tw:appearance-none tw:border tw:h-3.5 tw:w-3.5 tw:shrink-0 tw:focus:ring-0 tw:focus:ring-offset-0 tw:outline-none tw:focus:outline-none tw:dark:bg-sq-dark-background tw:dark:border-sq-dark-text tw:dark:enabled:hover:bg-sq-dark-background tw:checked:text-white tw:checked:border-sq-text-color tw:checked:enabled:hover:border-sq-theme-dark tw:checked:active:border-sq-theme-darker tw:checked:focus:border-sq-theme-dark tw:disabled:border-sq-disabled-gray tw:dark:disabled:border-sq-fairly-dark-gray tw:dark:checked:focus:bg-sq-dark-background`,XD=`tw:rounded ${YD}`,ZD=`tw:rounded-full ${YD}`,QD=e=>{let{type:t=`checkbox`,value:n,disabled:r=!1,label:i,onChange:a,onClick:o,onKeyDown:s,checked:c,defaultChecked:l,id:u,name:d,extraClassNames:f=``,extraLabelClassNames:m,testId:h,...g}=e,_=p(),v=u??`checkbox${_}`,y=qc(g);return x(`span`,{className:`tw:flex ${f}`,children:[b(`input`,{value:n,type:t,"data-testid":h,name:d,id:v,readOnly:!a,checked:c,defaultChecked:l,className:`${t===`checkbox`?XD:ZD} ${r?`tw:cursor-not-allowed`:`tw:cursor-pointer`}`,disabled:r,onClick:o,onChange:a,onKeyDown:s,...y}),i&&b(`label`,{htmlFor:v,className:`tw:ml-1.5 tw:text-sm tw:-mt-0.5 ${m} ${r?`tw:cursor-not-allowed tw:text-sq-fairly-dark-gray tw:dark:text-sq-fairly-dark-gray`:`tw:cursor-pointer tw:text-sq-text-color tw:dark:text-sq-dark-text`}`,children:i})]})},$D=({isVisible:e,children:t})=>{let n=_(null),[r,i]=v(0);return f(()=>{n.current&&setTimeout(()=>{i((n.current?.scrollHeight??0)+5)},0)},[t]),b(FS,{initial:!1,children:e&&b(KD.div,{initial:{height:0,opacity:0},animate:{height:r,opacity:1},exit:{height:0,opacity:0},transition:{type:`spring`,damping:20,stiffness:100},children:b(`div`,{ref:n,children:t})})})};var eO=$D;const tO={sm:`tw:h-5 tw:w-5 tw:rounded`,md:`tw:h-6 tw:w-6 tw:rounded-md`,lg:`tw:h-8 tw:w-8 tw:rounded-lg`},nO=c(function({color:e,onClick:t,"aria-label":n,size:r=`lg`,extraClassNames:i=``,id:a,testId:o},s){return b(`button`,{ref:s,"aria-label":n,className:`tw:cursor-pointer tw:border tw:border-gray-700 tw:dark:border-gray-500 tw:shadow-sm tw:focus-visible:outline-none ${tO[r]} ${i}`,"data-testid":o,id:a,onClick:t,style:{backgroundColor:e},type:`button`})});var rO=nO;function iO({color:e,label:t,children:n,placement:r=`bottom`,align:i=`start`,extraClassNames:a=``,id:o,testId:s,onOpen:c}){let l=p(),u=b(`label`,{className:`tw:cursor-pointer tw:text-sm tw:whitespace-nowrap tw:text-sq-text-color tw:dark:text-sq-text-color-dark`,htmlFor:l,children:t}),d=b(rO,{"aria-label":t,color:e,id:o??l,size:`sm`,onClick:c});return n?x(`div`,{className:H(`tw:flex tw:items-center tw:gap-2`,a),children:[u,x(V_,{children:[b(H_,{asChild:!0,children:d}),b(W_,{align:i,className:`
1169
1169
  tw:data-[state=closed]:animate-out
1170
1170
  tw:data-[state=open]:animate-in
1171
1171
  tw:relative
@@ -1186,14 +1186,14 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
1186
1186
  tw:dark:border-gray-500
1187
1187
  tw:dark:bg-sq-dark-background
1188
1188
  tw:dark:text-sq-text-color-dark
1189
- `,"data-testid":s,side:r,sideOffset:2,children:n})]})]}):x(`div`,{className:H(`tw:flex tw:items-center tw:gap-2`,a),children:[b(`span`,{className:`tw:cursor-pointer tw:text-sm tw:whitespace-nowrap tw:text-sq-text-color tw:dark:text-sq-text-color-dark`,children:t}),d]})}var nO=tO;const rO={normal:`tw:gap-2`,spacious:`tw:gap-3`},iO=({title:e,children:t,onApply:n,onCancel:r,isApplyDisabled:i=!1,applyLabel:a=`Apply`,cancelLabel:o=`Cancel`,spacing:s=`normal`,extraClassNames:c=``,id:l,testId:u})=>x(`div`,{className:`tw:mt-3 tw:mb-1 tw:flex tw:w-full tw:max-w-md tw:flex-col tw:items-start tw:rounded-3xl tw:border tw:border-sq-tool-btn-border tw:dark:border-gray-500 tw:bg-sq-surface tw:dark:bg-sq-tools-background-dark tw:px-4 tw:py-3 tw:shadow-sm ${rO[s]} ${c}`,"data-testid":u,id:l,children:[b(`span`,{className:`tw:text-xs tw:font-bold tw:uppercase tw:tracking-wide tw:text-sq-theme-dark`,children:e}),t,x(`div`,{className:`tw:flex tw:w-full tw:max-w-full tw:flex-wrap tw:items-center tw:justify-end tw:gap-2`,children:[r&&b(pl,{label:o,onClick:r,size:`sm`,variant:`outline`}),n&&b(pl,{disabled:i,label:a,onClick:n,size:`sm`,variant:`theme`})]})]});var aO=iO;const oO={link:`tw:inline-flex tw:text-sq-theme-link tw:underline tw:underline-offset-2 tw:transition-colors`,icon:``},sO=({variant:e=`link`,label:t,href:n,children:r,extraClassNames:i=``,testId:a})=>x(y,{children:[t&&b(`span`,{className:`tw:text-sq-text-color tw:dark:text-sq-text-color-dark tw:shrink-0`,children:t}),b(`a`,{href:n,target:`_blank`,rel:`noopener`,className:V(oO[e],i),"data-testid":a,children:r})]});var cO=sO;function lO(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function uO(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=lO(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():lO(e,null)}),t.clear()}}}function dO(...e){return u(uO(...e),e)}const fO=`
1189
+ `,"data-testid":s,side:r,sideOffset:2,children:n})]})]}):x(`div`,{className:H(`tw:flex tw:items-center tw:gap-2`,a),children:[b(`span`,{className:`tw:cursor-pointer tw:text-sm tw:whitespace-nowrap tw:text-sq-text-color tw:dark:text-sq-text-color-dark`,children:t}),d]})}var aO=iO;const oO={normal:`tw:gap-2`,spacious:`tw:gap-3`},sO=({title:e,children:t,onApply:n,onCancel:r,isApplyDisabled:i=!1,applyLabel:a=`Apply`,cancelLabel:o=`Cancel`,spacing:s=`normal`,extraClassNames:c=``,id:l,testId:u})=>x(`div`,{className:`tw:mt-3 tw:mb-1 tw:flex tw:w-full tw:max-w-md tw:flex-col tw:items-start tw:rounded-3xl tw:border tw:border-sq-tool-btn-border tw:dark:border-gray-500 tw:bg-sq-surface tw:dark:bg-sq-tools-background-dark tw:px-4 tw:py-3 tw:shadow-sm ${oO[s]} ${c}`,"data-testid":u,id:l,children:[b(`span`,{className:`tw:text-xs tw:font-bold tw:uppercase tw:tracking-wide tw:text-sq-theme-dark`,children:e}),t,x(`div`,{className:`tw:flex tw:w-full tw:max-w-full tw:flex-wrap tw:items-center tw:justify-end tw:gap-2`,children:[r&&b(gl,{label:o,onClick:r,size:`sm`,variant:`outline`}),n&&b(gl,{disabled:i,label:a,onClick:n,size:`sm`,variant:`theme`})]})]});var cO=sO;const lO={link:`tw:inline-flex tw:text-sq-theme-link tw:underline tw:underline-offset-2 tw:transition-colors`,icon:``},uO=({variant:e=`link`,label:t,href:n,children:r,extraClassNames:i=``,testId:a})=>x(y,{children:[t&&b(`span`,{className:`tw:text-sq-text-color tw:dark:text-sq-text-color-dark tw:shrink-0`,children:t}),b(`a`,{href:n,target:`_blank`,rel:`noopener`,className:V(lO[e],i),"data-testid":a,children:r})]});var dO=uO;function fO(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function pO(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=fO(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():fO(e,null)}),t.clear()}}}function mO(...e){return u(pO(...e),e)}const hO=`
1190
1190
  tw:disabled:pointer-events-none
1191
1191
  tw:disabled:cursor-not-allowed
1192
1192
  tw:disabled:bg-sq-light-gray
1193
1193
  tw:disabled:text-sq-darkish-gray
1194
1194
  tw:disabled:dark:bg-sq-dark-disabled-gray
1195
1195
  tw:disabled:dark:text-sq-dark-text/30
1196
- `,pO=(e,t)=>{let n;return typeof e==`number`&&e>0&&(n={width:`${e}px`}),typeof t==`number`&&t>0&&(n||={},n.height=`${t}px`),n},mO=c((e,t)=>{let{readonly:n=!1,disabled:r=!1,onChange:i,onPaste:a,onKeyUp:o,onFocus:s,onBlur:c,onKeyDown:l,id:u,name:d,size:p=`sm`,value:m,placeholder:h,extraClassNames:g=``,testId:S,type:C=`text`,inputGroup:w,step:T,showError:E,errorText:D,min:O,max:k,maxLength:A,minLength:j,required:M=!1,autoComplete:N=`off`,inputWidth:ee,inputHeight:te,autoFocus:P=!1,...ne}=e,F=_(null),re=dO(t,F),[ie,ae]=v(null),I=qc(ne),oe=_(P);f(()=>{oe.current&&setTimeout(()=>{F.current?.focus()},0)},[]),f(()=>{let e=F.current;e&&C!==`number`&&C!==`email`&&e.setSelectionRange(ie,ie)},[t,ie,m,C]);let se=e=>{ae(e.target.selectionStart),i&&i(e)},ce=()=>C===`number`?O===void 0?!0:O%Number(T??1)===0:!1,L=e=>Array.isArray(e)?e.join(`,`):String(e),le=e=>{if(ce()){let t=e.currentTarget,n=t.value;t.defaultValue=``,t.value=t.validity.valid&&m!=null?L(m):n}c?.(e)};f(()=>{let e=F.current;C===`number`&&m!=null&&m!==e?.value&&e&&(e.value=L(m))},[m,C]);let R=`tw:rounded-md`;w===`left`?R=`tw:rounded-l-md tw:border-r-0 tw:focus:border-r tw:active:border-r`:w===`right`&&(R=`tw:rounded-r-md tw:border-l-0 tw:focus:border-l tw:active:border-l`);let ue=H(`
1196
+ `,gO=(e,t)=>{let n;return typeof e==`number`&&e>0&&(n={width:`${e}px`}),typeof t==`number`&&t>0&&(n||={},n.height=`${t}px`),n},_O=c((e,t)=>{let{readonly:n=!1,disabled:r=!1,onChange:i,onPaste:a,onKeyUp:o,onFocus:s,onBlur:c,onKeyDown:l,id:u,name:d,size:p=`sm`,value:m,placeholder:h,extraClassNames:g=``,testId:S,type:C=`text`,inputGroup:w,step:T,showError:E,errorText:D,min:O,max:k,maxLength:A,minLength:j,required:M=!1,autoComplete:N=`off`,inputWidth:ee,inputHeight:te,autoFocus:P=!1,...ne}=e,F=_(null),re=mO(t,F),[ie,ae]=v(null),I=qc(ne),oe=_(P);f(()=>{oe.current&&setTimeout(()=>{F.current?.focus()},0)},[]),f(()=>{let e=F.current;e&&C!==`number`&&C!==`email`&&e.setSelectionRange(ie,ie)},[t,ie,m,C]);let se=e=>{ae(e.target.selectionStart),i&&i(e)},ce=()=>C===`number`?O===void 0?!0:O%Number(T??1)===0:!1,L=e=>Array.isArray(e)?e.join(`,`):String(e),le=e=>{if(ce()){let t=e.currentTarget,n=t.value;t.defaultValue=``,t.value=t.validity.valid&&m!=null?L(m):n}c?.(e)};f(()=>{let e=F.current;C===`number`&&m!=null&&m!==e?.value&&e&&(e.value=L(m))},[m,C]);let R=`tw:rounded-md`;w===`left`?R=`tw:rounded-l-md tw:border-r-0 tw:focus:border-r tw:active:border-r`:w===`right`&&(R=`tw:rounded-r-md tw:border-l-0 tw:focus:border-l tw:active:border-l`);let ue=H(`
1197
1197
  tw:h-8.5
1198
1198
  tw:border
1199
1199
  tw:border-solid
@@ -1204,7 +1204,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
1204
1204
  tw:placeholder-gray-400!
1205
1205
  tw:outline-none
1206
1206
  tw:dark:placeholder-sq-dark-text/30!
1207
- `,fO,g,`
1207
+ `,hO,g,`
1208
1208
  tw:text-sq-text-color
1209
1209
  `,`
1210
1210
  tw:dark:bg-sq-dark-background
@@ -1218,14 +1218,14 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
1218
1218
  tw:dark:hover:border-sq-theme-darker
1219
1219
  tw:dark:focus:border-sq-theme-darker
1220
1220
  tw:dark:active:border-sq-theme-darker
1221
- `,{"tw:text-sm":p===`sm`,"tw:text-xl":p===`lg`},`specTextField`),z=pO(ee,te)?{style:pO(ee,te)}:{},de={};A&&(de.maxLength=A),j&&(de.minLength=j);let fe=C===`number`?{defaultValue:m}:{value:m};return x(y,{children:[b(`input`,{ref:re,"data-testid":S,name:d,id:u,type:C,...fe,className:ue,placeholder:h,disabled:r,readOnly:n,autoComplete:N,onChange:se,onPaste:a,onFocus:s,onBlur:le,onKeyDown:l,onKeyUp:o,step:T,required:M,min:O,max:k,...de,...z,...I}),D&&E&&b(`div`,{className:`tw:mt-1 tw:text-xs tw:text-sq-danger`,children:D})]})});mO.displayName=`TextField`;const hO=`
1221
+ `,{"tw:text-sm":p===`sm`,"tw:text-xl":p===`lg`},`specTextField`),z=gO(ee,te)?{style:gO(ee,te)}:{},de={};A&&(de.maxLength=A),j&&(de.minLength=j);let fe=C===`number`?{defaultValue:m}:{value:m};return x(y,{children:[b(`input`,{ref:re,"data-testid":S,name:d,id:u,type:C,...fe,className:ue,placeholder:h,disabled:r,readOnly:n,autoComplete:N,onChange:se,onPaste:a,onFocus:s,onBlur:le,onKeyDown:l,onKeyUp:o,step:T,required:M,min:O,max:k,...de,...z,...I}),D&&E&&b(`div`,{className:`tw:mt-1 tw:text-xs tw:text-sq-danger`,children:D})]})});_O.displayName=`TextField`;const vO=`
1222
1222
  tw:border-sq-disabled-gray
1223
1223
  tw:focus:border-sq-theme-dark
1224
1224
  tw:active:border-sq-theme-dark
1225
1225
  tw:dark:border-sq-dark-disabled-gray
1226
1226
  tw:dark:focus:border-sq-theme-darker
1227
1227
  tw:dark:active:border-sq-theme-darker
1228
- `,gO=c((e,t)=>{let{readonly:n=!1,onChange:r,onKeyUp:i,onFocus:o,onBlur:s,onKeyDown:c,name:u,value:d,placeholder:f,append:p=[],extraClassNames:m=``,id:h,testId:g,showError:_,required:v,autoComplete:y,autoFocus:S,disabled:C,type:w,step:T,min:E,max:D,field:O,maxLength:k,minLength:A,inputGroup:j,...M}=e,N=qc(M),ee=H(`
1228
+ `,yO=c((e,t)=>{let{readonly:n=!1,onChange:r,onKeyUp:i,onFocus:o,onBlur:s,onKeyDown:c,name:u,value:d,placeholder:f,append:p=[],extraClassNames:m=``,id:h,testId:g,showError:_,required:v,autoComplete:y,autoFocus:S,disabled:C,type:w,step:T,min:E,max:D,field:O,maxLength:k,minLength:A,inputGroup:j,...M}=e,N=qc(M),ee=H(`
1229
1229
  tw:relative
1230
1230
  tw:flex
1231
1231
  tw:w-full
@@ -1247,27 +1247,27 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
1247
1247
  tw:dark:bg-sq-dark-background
1248
1248
  tw:dark:text-sq-dark-text
1249
1249
  tw:disabled:dark:text-sq-disabled-gray
1250
- `,ne,_?`tw:border-sq-danger`:hO),re=l(O)&&typeof O.type!=`string`,ie=re?a(O,{inputGroup:P}):O;return x(`div`,{id:`input-group-${h}`,className:ee,children:[O?b(`div`,{"data-testid":g,className:H(`tw:flex tw:flex-1 tw:cursor-pointer tw:active:z-50`,F),children:ie}):b(mO,{testId:g,readonly:n,onChange:r,onKeyUp:i,onFocus:o,onBlur:s,onKeyDown:c,name:u,ref:t,showError:_,value:d,required:v,placeholder:f,autoComplete:y,autoFocus:S,id:h,type:w,disabled:C,step:T,min:E,max:D,maxLength:k,minLength:A,inputGroup:P,extraClassNames:H(`tw:flex tw:w-full tw:flex-1 tw:focus:z-30`,m),...N}),te.map((e,t)=>e?.variant===`button`?b(pl,{extraClassNames:H(t?`tw:-ml-px`:`tw:ml-0`,`tw:rounded-none tw:last:rounded-r-md tw:focus:z-40 tw:focus:border`),...e.buttonProps},t):b(`div`,{className:H(hO,t?`tw:-ml-px`:`tw:ml-0`,`tw:flex tw:items-center tw:justify-center tw:rounded-none tw:border tw:last:rounded-r-md tw:active:z-30 tw:active:border`),children:e?.element},t))]})});gO.displayName=`InputGroup`;var _O=`Dialog`,[vO,yO]=F(_O),[bO,xO]=vO(_O),SO=t=>{let{__scopeDialog:n,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=t,c=e.useRef(null),l=e.useRef(null),[u,d]=pe({prop:i,defaultProp:a??!1,onChange:o,caller:_O});return b(bO,{scope:n,triggerRef:c,contentRef:l,contentId:Te(),titleId:Te(),descriptionId:Te(),open:u,onOpenChange:d,onOpenToggle:e.useCallback(()=>d(e=>!e),[d]),modal:s,children:r})};SO.displayName=_O;var CO=`DialogTrigger`,wO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=xO(CO,n),a=I(t,i.triggerRef);return b(B.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":WO(i.open),...r,ref:a,onClick:z(e.onClick,i.onOpenToggle)})});wO.displayName=CO;var TO=`DialogPortal`,[EO,DO]=vO(TO,{forceMount:void 0}),OO=t=>{let{__scopeDialog:n,forceMount:r,children:i,container:a}=t,o=xO(TO,n);return b(EO,{scope:n,forceMount:r,children:e.Children.map(i,e=>b(ye,{present:r||o.open,children:b(Wf,{asChild:!0,container:a,children:e})}))})};OO.displayName=TO;var kO=`DialogOverlay`,AO=e.forwardRef((e,t)=>{let n=DO(kO,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=xO(kO,e.__scopeDialog);return a.modal?b(ye,{present:r||a.open,children:b(MO,{...i,ref:t})}):null});AO.displayName=kO;var jO=oe(`DialogOverlay.RemoveScroll`),MO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=xO(kO,n);return b(Am,{as:jO,allowPinchZoom:!0,shards:[i.contentRef],children:b(B.div,{"data-state":WO(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),NO=`DialogContent`,PO=e.forwardRef((e,t)=>{let n=DO(NO,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=xO(NO,e.__scopeDialog);return b(ye,{present:r||a.open,children:a.modal?b(FO,{...i,ref:t}):b(IO,{...i,ref:t})})});PO.displayName=NO;var FO=e.forwardRef((t,n)=>{let r=xO(NO,t.__scopeDialog),i=e.useRef(null),a=I(n,r.contentRef,i);return e.useEffect(()=>{let e=i.current;if(e)return bp(e)},[]),b(LO,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(t.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:z(t.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;r&&e.preventDefault()}),onFocusOutside:z(t.onFocusOutside,e=>e.preventDefault())})}),IO=e.forwardRef((t,n)=>{let r=xO(NO,t.__scopeDialog),i=e.useRef(!1),a=e.useRef(!1);return b(LO,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(i.current||r.triggerRef.current?.focus(),e.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(i.current=!0,e.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=e.target,o=r.triggerRef.current?.contains(n);o&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&a.current&&e.preventDefault()}})}),LO=e.forwardRef((t,n)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=t,c=xO(NO,r),l=e.useRef(null),u=I(n,l);return Nl(),x(y,{children:[b(zl,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:b(Tl,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":WO(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),x(y,{children:[b(JO,{titleId:c.titleId}),b(XO,{contentRef:l,descriptionId:c.descriptionId})]})]})}),RO=`DialogTitle`,zO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=xO(RO,n);return b(B.h2,{id:i.titleId,...r,ref:t})});zO.displayName=RO;var BO=`DialogDescription`,VO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=xO(BO,n);return b(B.p,{id:i.descriptionId,...r,ref:t})});VO.displayName=BO;var HO=`DialogClose`,UO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=xO(HO,n);return b(B.button,{type:`button`,...r,ref:t,onClick:z(e.onClick,()=>i.onOpenChange(!1))})});UO.displayName=HO;function WO(e){return e?`open`:`closed`}var GO=`DialogTitleWarning`,[KO,qO]=ne(GO,{contentName:NO,titleName:RO,docsSlug:`dialog`}),JO=({titleId:t})=>{let n=qO(GO),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
1250
+ `,ne,_?`tw:border-sq-danger`:vO),re=l(O)&&typeof O.type!=`string`,ie=re?a(O,{inputGroup:P}):O;return x(`div`,{id:`input-group-${h}`,className:ee,children:[O?b(`div`,{"data-testid":g,className:H(`tw:flex tw:flex-1 tw:cursor-pointer tw:active:z-50`,F),children:ie}):b(_O,{testId:g,readonly:n,onChange:r,onKeyUp:i,onFocus:o,onBlur:s,onKeyDown:c,name:u,ref:t,showError:_,value:d,required:v,placeholder:f,autoComplete:y,autoFocus:S,id:h,type:w,disabled:C,step:T,min:E,max:D,maxLength:k,minLength:A,inputGroup:P,extraClassNames:H(`tw:flex tw:w-full tw:flex-1 tw:focus:z-30`,m),...N}),te.map((e,t)=>e?.variant===`button`?b(gl,{extraClassNames:H(t?`tw:-ml-px`:`tw:ml-0`,`tw:rounded-none tw:last:rounded-r-md tw:focus:z-40 tw:focus:border`),...e.buttonProps},t):b(`div`,{className:H(vO,t?`tw:-ml-px`:`tw:ml-0`,`tw:flex tw:items-center tw:justify-center tw:rounded-none tw:border tw:last:rounded-r-md tw:active:z-30 tw:active:border`),children:e?.element},t))]})});yO.displayName=`InputGroup`;var bO=`Dialog`,[xO,SO]=F(bO),[CO,wO]=xO(bO),TO=t=>{let{__scopeDialog:n,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=t,c=e.useRef(null),l=e.useRef(null),[u,d]=pe({prop:i,defaultProp:a??!1,onChange:o,caller:bO});return b(CO,{scope:n,triggerRef:c,contentRef:l,contentId:Te(),titleId:Te(),descriptionId:Te(),open:u,onOpenChange:d,onOpenToggle:e.useCallback(()=>d(e=>!e),[d]),modal:s,children:r})};TO.displayName=bO;var EO=`DialogTrigger`,DO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=wO(EO,n),a=I(t,i.triggerRef);return b(B.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":qO(i.open),...r,ref:a,onClick:z(e.onClick,i.onOpenToggle)})});DO.displayName=EO;var OO=`DialogPortal`,[kO,AO]=xO(OO,{forceMount:void 0}),jO=t=>{let{__scopeDialog:n,forceMount:r,children:i,container:a}=t,o=wO(OO,n);return b(kO,{scope:n,forceMount:r,children:e.Children.map(i,e=>b(ye,{present:r||o.open,children:b(qf,{asChild:!0,container:a,children:e})}))})};jO.displayName=OO;var MO=`DialogOverlay`,NO=e.forwardRef((e,t)=>{let n=AO(MO,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=wO(MO,e.__scopeDialog);return a.modal?b(ye,{present:r||a.open,children:b(FO,{...i,ref:t})}):null});NO.displayName=MO;var PO=oe(`DialogOverlay.RemoveScroll`),FO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=wO(MO,n);return b(Nm,{as:PO,allowPinchZoom:!0,shards:[i.contentRef],children:b(B.div,{"data-state":qO(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),IO=`DialogContent`,LO=e.forwardRef((e,t)=>{let n=AO(IO,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=wO(IO,e.__scopeDialog);return b(ye,{present:r||a.open,children:a.modal?b(RO,{...i,ref:t}):b(zO,{...i,ref:t})})});LO.displayName=IO;var RO=e.forwardRef((t,n)=>{let r=wO(IO,t.__scopeDialog),i=e.useRef(null),a=I(n,r.contentRef,i);return e.useEffect(()=>{let e=i.current;if(e)return Cp(e)},[]),b(BO,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(t.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:z(t.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;r&&e.preventDefault()}),onFocusOutside:z(t.onFocusOutside,e=>e.preventDefault())})}),zO=e.forwardRef((t,n)=>{let r=wO(IO,t.__scopeDialog),i=e.useRef(!1),a=e.useRef(!1);return b(BO,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(i.current||r.triggerRef.current?.focus(),e.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(i.current=!0,e.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=e.target,o=r.triggerRef.current?.contains(n);o&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&a.current&&e.preventDefault()}})}),BO=e.forwardRef((t,n)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=t,c=wO(IO,r),l=e.useRef(null),u=I(n,l);return Il(),x(y,{children:[b(Hl,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:b(Ol,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":qO(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),x(y,{children:[b(ZO,{titleId:c.titleId}),b($O,{contentRef:l,descriptionId:c.descriptionId})]})]})}),VO=`DialogTitle`,HO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=wO(VO,n);return b(B.h2,{id:i.titleId,...r,ref:t})});HO.displayName=VO;var UO=`DialogDescription`,WO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=wO(UO,n);return b(B.p,{id:i.descriptionId,...r,ref:t})});WO.displayName=UO;var GO=`DialogClose`,KO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=wO(GO,n);return b(B.button,{type:`button`,...r,ref:t,onClick:z(e.onClick,()=>i.onOpenChange(!1))})});KO.displayName=GO;function qO(e){return e?`open`:`closed`}var JO=`DialogTitleWarning`,[YO,XO]=ne(JO,{contentName:IO,titleName:VO,docsSlug:`dialog`}),ZO=({titleId:t})=>{let n=XO(JO),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
1251
1251
 
1252
1252
  If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
1253
1253
 
1254
- For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return e.useEffect(()=>{if(t){let e=document.getElementById(t);e||console.error(r)}},[r,t]),null},YO=`DialogDescriptionWarning`,XO=({contentRef:t,descriptionId:n})=>{let r=qO(YO),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return e.useEffect(()=>{let e=t.current?.getAttribute(`aria-describedby`);if(n&&e){let e=document.getElementById(n);e||console.warn(i)}},[i,t,n]),null},ZO=SO,QO=OO,$O=PO,ek=zO,tk=VO,nk=UO;const rk=ZO,ik=QO,ak=nk,ok=c(({className:e=``,"aria-describedby":t,children:n,...r},i)=>b(ik,{children:x(`div`,{className:`tw:fixed tw:inset-0 tw:z-1010 tw:overflow-y-auto`,children:[b(`div`,{className:`
1254
+ For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return e.useEffect(()=>{if(t){let e=document.getElementById(t);e||console.error(r)}},[r,t]),null},QO=`DialogDescriptionWarning`,$O=({contentRef:t,descriptionId:n})=>{let r=XO(QO),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return e.useEffect(()=>{let e=t.current?.getAttribute(`aria-describedby`);if(n&&e){let e=document.getElementById(n);e||console.warn(i)}},[i,t,n]),null},ek=TO,tk=jO,nk=LO,rk=HO,ik=WO,ak=KO;const ok=ek,sk=tk,ck=ak,lk=c(({className:e=``,"aria-describedby":t,children:n,...r},i)=>b(sk,{children:x(`div`,{className:`tw:fixed tw:inset-0 tw:z-1010 tw:overflow-y-auto`,children:[b(`div`,{className:`
1255
1255
  tw:absolute tw:inset-0 tw:h-full tw:w-full tw:bg-sq-dark-background
1256
1256
  tw:opacity-50 tw:select-none
1257
- `}),x($O,{ref:i,tabIndex:void 0,"aria-describedby":t,className:V(`tw:duration-300`,`tw:fixed tw:top-0 tw:left-[50%] tw:z-1
1257
+ `}),x(nk,{ref:i,tabIndex:void 0,"aria-describedby":t,className:V(`tw:duration-300`,`tw:fixed tw:top-0 tw:left-[50%] tw:z-1
1258
1258
  tw:my-6
1259
1259
  tw:grid
1260
1260
  tw:translate-x-[-50%] tw:gap-4 tw:rounded-lg tw:border tw:bg-sq-white tw:shadow-lg
1261
- tw:dark:bg-sq-dark-background`,e),...r,children:[b(zO,{className:`tw:hidden`}),n]})]})}));ok.displayName=$O.displayName;const sk=e=>b(`div`,{className:`tw:w-full tw:justify-between`,children:b(`div`,{...e})});sk.displayName=`DialogHeader`;const ck=e=>b(`div`,{...e});ck.displayName=`DialogFooter`;const lk=c((e,t)=>b(ek,{ref:t,...e}));lk.displayName=ek.displayName;const uk=c((e,t)=>b(tk,{asChild:!0,children:b(`div`,{ref:t,...e})}));uk.displayName=tk.displayName;const dk=({titleIcon:e,title:t,titleSuffixLabel:n,subtitle:r,children:i,open:a=!1,onClose:o,customButton:s=!1,customButtonLabel:c=`Back`,onClickCustomButton:u,submitButtonLabel:d=`Submit`,cancelButtonLabel:p=`Cancel`,disableSubmitButton:m=!1,stopPropagationSubmitButton:h=!1,onSubmit:g,isTitleEditable:_=!1,onTitleChanged:S,inputExtraClassNames:C,hideCloseIcon:w=!1,size:T=`xl`,titleIconPosition:E=`left`,hideFooterButtons:D=!1,hideSubmitButton:O=!1,hideCancelButton:k=!1,testId:A=`modal`,modalFooter:j,dialogClassName:M,titlePlaceholder:N,titleRequired:ee,titleError:te,submitButtonTooltip:P,cancelButtonTooltip:ne,disableCustomButton:F,customHeader:re,middleFooterSection:ie=b(y,{}),customButtonVariant:ae=`outline`,submitButtonVariant:I=`theme`,keepFocusInsideModal:oe=!0,onPointerDownOutside:se,onInteractOutside:ce,ariaDescribedBy:L})=>{let[le,R]=v(!1);f(()=>{if(a){let e=setTimeout(()=>{document.body.style.pointerEvents=``},0);return()=>clearTimeout(e)}else document.body.style.pointerEvents=`auto`},[a]);let ue=async e=>{if(g)try{R(!0),await g(e)}finally{R(!1)}},z=()=>{let i=b(y,{});return e&&(i=l(e)?b(`div`,{className:`tw:mt-2`,children:e}):b(Zc,{icon:e,testId:`modalTitleIcon`,extraClassNames:`tw:flex tw:text-xl tw:mt-1 tw:!leading-normal`})),x(y,{children:[e&&E===`left`?b(`div`,{className:`tw:mr-2 tw:flex`,children:i}):b(y,{}),b(lk,{asChild:!0,children:_?x(`div`,{className:`tw:flex tw:w-full tw:items-center`,children:[b(mO,{extraClassNames:C,value:t,type:`text`,testId:`modalTitle`,onChange:S,placeholder:N,required:ee,showError:!!te}),te&&b(`p`,{className:`tw:mb-0 tw:min-w-fit tw:pl-2 tw:text-sq-danger`,children:te})]}):re??x(`div`,{"data-testid":`modalTitle`,className:`modal-title`,children:[x(`div`,{className:`tw:flex tw:items-center`,children:[b(`h3`,{children:t}),n&&b(`span`,{className:`tw:pl-0.5 tw:text-xl`,children:n})]}),r&&b(`div`,{className:`tw:mt-1 tw:text-left tw:text-sm tw:italic`,"data-testid":`modal-subtitle`,children:r})]})}),e&&E===`right`?b(`div`,{className:`tw:ml-4 tw:flex`,children:i}):b(y,{})]})};return a?b(rk,{open:!0,onOpenChange:o,modal:oe,children:x(ok,{onPointerDownOutside:e=>se?se(e):e.preventDefault(),onInteractOutside:e=>ce?ce(e):e.preventDefault(),"data-testid":A,"aria-describedby":L,className:V(`modalContent`,`tw:w-full tw:gap-0! tw:border-0 tw:shadow-none tw:dark:border tw:dark:border-gray-500 tw:dark:text-sq-dark-text`,{"tw:max-w-xs":T===`xs`,"tw:max-w-sm":T===`sm`,"tw:max-w-md":T===`md`,"tw:max-w-lg":T===`lg`,"tw:max-w-xl":T===`xl`,"tw:max-w-2xl":T===`2xl`,"tw:max-w-3xl":T===`3xl`,"tw:max-w-4xl":T===`4xl`,"tw:max-w-5xl":T===`5xl`,"tw:max-w-6xl":T===`6xl`},M),children:[x(sk,{className:V(`modal-header`,`tw:flex tw:w-full tw:justify-between tw:border-0 tw:border-b tw:border-sq-disabled-gray tw:px-6 tw:py-4 tw:dark:border-sq-dark-disabled-gray`),children:[b(`div`,{className:`tw:flex tw:w-full`,children:z()}),!w&&b(ak,{autoFocus:!1,className:V(`close`,`tw:ml-4 tw:cursor-pointer tw:bg-transparent tw:text-base tw:opacity-70 tw:hover:opacity-100`),"data-testid":`closeButton`,children:b(`span`,{className:`tw:cursor-pointer`,children:`×`})})]}),b(uk,{className:V(`modal-body`,`tw:flex-1 tw:overflow-y-auto tw:px-6 tw:py-4`),children:i}),!D&&b(ck,{className:V(`modal-footer`,`tw:px-6 tw:py-4`),children:j??x(`div`,{className:`tw:flex tw:w-full tw:justify-between`,"data-testid":`modalFooter`,children:[b(`div`,{className:`tw:flex tw:justify-start`,children:s&&b(pl,{label:c,onClick:u,disabled:F,extraClassNames:`tw:justify-start tw:min-w-25`,testId:`customButton`,variant:ae})}),x(`div`,{className:`tw:flex tw:justify-end`,children:[b(`div`,{className:`tw:flex tw:items-center`,children:ie}),!k&&b(ak,{asChild:!0,children:b(pl,{label:p,extraClassNames:`tw:mr-5 tw:min-w-25`,tooltip:ne,variant:`outline`,stopPropagation:!1,testId:`cancelButton`})}),!O&&b(pl,{label:d,onClick:ue,disabled:m||le,variant:I,stopPropagation:h,tooltip:P,inProgress:le,iconPosition:`left`,testId:`submitButton`,extraClassNames:`tw:min-w-25`})]})]})})]})}):b(y,{})};var fk=dk;const pk=(...e)=>{console?.warn&&(bk(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},mk={},hk=(...e)=>{bk(e[0])&&mk[e[0]]||(bk(e[0])&&(mk[e[0]]=new Date),pk(...e))},gk=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},_k=(e,t,n)=>{e.loadNamespaces(t,gk(e,n))},vk=(e,t,n,r)=>{bk(n)&&(n=[n]),n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,gk(e,r))},yk=(e,t,n={})=>!t.languages||!t.languages.length?(hk(`i18n.languages were undefined or empty`,t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n?.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),bk=e=>typeof e==`string`,xk=e=>typeof e==`object`&&!!e,Sk=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ck={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":` `,"&#160;":` `,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},wk=e=>Ck[e],Tk=e=>e.replace(Sk,wk);let Ek={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:Tk};const Dk=()=>Ek,Ok=()=>void 0,kk=o();var Ak=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]??=!0})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};const jk=(e,t)=>{let n=_();return f(()=>{n.current=t?n.current:e},[e,t]),n.current},Mk=(e,t,n,r)=>e.getFixedT(t,n,r),Nk=(e,t,n,r)=>u(Mk(e,t,n,r),[e,t,n,r]),Pk=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=d(kk)||{},a=n||r||Ok();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Ak),!a){hk(`You will need to pass in an i18next instance by using initReactI18next`);let e=(e,t)=>bk(t)?t:xk(t)&&bk(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react?.wait&&hk(`It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);let o={...Dk(),...a.options.react,...t},{useSuspense:s,keyPrefix:c}=o,l=e||i||a.options?.defaultNS;l=bk(l)?[l]:l||[`translation`],a.reportNamespaces.addUsedNamespaces?.(l);let u=(a.isInitialized||a.initializedStoreOnce)&&l.every(e=>yk(e,a,o)),p=Nk(a,t.lng||null,o.nsMode===`fallback`?l:l[0],c),m=()=>p,h=()=>Mk(a,t.lng||null,o.nsMode===`fallback`?l:l[0],c),[g,y]=v(m),b=l.join();t.lng&&(b=`${t.lng}${b}`);let x=jk(b),S=_(!0);f(()=>{let{bindI18n:e,bindI18nStore:n}=o;S.current=!0,!u&&!s&&(t.lng?vk(a,t.lng,l,()=>{S.current&&y(h)}):_k(a,l,()=>{S.current&&y(h)})),u&&x&&x!==b&&S.current&&y(h);let r=()=>{S.current&&y(h)};return e&&a?.on(e,r),n&&a?.store.on(n,r),()=>{S.current=!1,a&&e?.split(` `).forEach(e=>a.off(e,r)),n&&a&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,b]),f(()=>{S.current&&u&&y(m)},[a,c,u]);let C=[g,a,u];if(C.t=g,C.i18n=a,C.ready=u,u||!u&&!s)return C;throw new Promise(e=>{t.lng?vk(a,t.lng,l,()=>e()):_k(a,l,()=>e())})};function Fk(e){"@babel/helpers - typeof";return Fk=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},Fk(e)}function Ik(e,t){if(Fk(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Fk(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Lk(e){var t=Ik(e,`string`);return Fk(t)==`symbol`?t:t+``}function Rk(e,t,n){return(t=Lk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zk(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 J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zk(Object(n),!0).forEach(function(t){Rk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bk(e){if(Array.isArray(e))return e}function Vk(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}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Hk(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 Uk(e,t){if(e){if(typeof e==`string`)return Hk(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)?Hk(e,t):void 0}}function Wk(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
1262
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gk(e,t){return Bk(e)||Vk(e,t)||Uk(e,t)||Wk()}function Kk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function qk(e,t){if(e==null)return{};var n,r,i=Kk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Jk=[`defaultInputValue`,`defaultMenuIsOpen`,`defaultValue`,`inputValue`,`menuIsOpen`,`onChange`,`onInputChange`,`onMenuClose`,`onMenuOpen`,`value`];function Yk(e){var t=e.defaultInputValue,n=t===void 0?``:t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,c=e.menuIsOpen,l=e.onChange,d=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,m=e.value,h=qk(e,Jk),g=v(s===void 0?n:s),_=Gk(g,2),y=_[0],b=_[1],x=v(c===void 0?i:c),S=Gk(x,2),C=S[0],w=S[1],T=v(m===void 0?o:m),E=Gk(T,2),D=E[0],O=E[1],k=u(function(e,t){typeof l==`function`&&l(e,t),O(e)},[l]),A=u(function(e,t){var n;typeof d==`function`&&(n=d(e,t)),b(n===void 0?e:n)},[d]),j=u(function(){typeof p==`function`&&p(),w(!0)},[p]),M=u(function(){typeof f==`function`&&f(),w(!1)},[f]),N=s===void 0?y:s,ee=c===void 0?C:c,te=m===void 0?D:m;return J(J({},h),{},{inputValue:N,menuIsOpen:ee,onChange:k,onInputChange:A,onMenuClose:M,onMenuOpen:j,value:te})}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(null,arguments)}function Xk(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Zk(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,Lk(r.key),r)}}function Qk(e,t,n){return t&&Zk(e.prototype,t),n&&Zk(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function $k(e,t){return $k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$k(e,t)}function eA(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&&$k(e,t)}function tA(e){return tA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tA(e)}function nA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nA=function(){return!!e})()}function rA(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function iA(e,t){if(t&&(Fk(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return rA(e)}function aA(e){var t=nA();return function(){var n,r=tA(e);if(t){var i=tA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return iA(this,n)}}function oA(e){if(Array.isArray(e))return Hk(e)}function sA(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function cA(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1263
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lA(e){return oA(e)||sA(e)||Uk(e)||cA()}var uA=!1;function dA(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function fA(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var pA=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!uA:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(fA(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=dA(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return(t=e.parentNode)?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),mA=`-ms-`,hA=`-moz-`,X=`-webkit-`,gA=`comm`,_A=`rule`,vA=`decl`,yA=`@import`,bA=`@keyframes`,xA=`@layer`,SA=Math.abs,CA=String.fromCharCode,wA=Object.assign;function TA(e,t){return kA(e,0)^45?(((t<<2^kA(e,0))<<2^kA(e,1))<<2^kA(e,2))<<2^kA(e,3):0}function EA(e){return e.trim()}function DA(e,t){return(e=t.exec(e))?e[0]:e}function Z(e,t,n){return e.replace(t,n)}function OA(e,t){return e.indexOf(t)}function kA(e,t){return e.charCodeAt(t)|0}function AA(e,t,n){return e.slice(t,n)}function jA(e){return e.length}function MA(e){return e.length}function NA(e,t){return t.push(e),e}function PA(e,t){return e.map(t).join(``)}var FA=1,IA=1,LA=0,RA=0,zA=0,BA=``;function VA(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:FA,column:IA,length:o,return:``}}function HA(e,t){return wA(VA(``,null,null,``,null,null,0),e,{length:-e.length},t)}function UA(){return zA}function WA(){return zA=RA>0?kA(BA,--RA):0,IA--,zA===10&&(IA=1,FA--),zA}function GA(){return zA=RA<LA?kA(BA,RA++):0,IA++,zA===10&&(IA=1,FA++),zA}function KA(){return kA(BA,RA)}function qA(){return RA}function JA(e,t){return AA(BA,e,t)}function YA(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function XA(e){return FA=IA=1,LA=jA(BA=e),RA=0,[]}function ZA(e){return BA=``,e}function QA(e){return EA(JA(RA-1,tj(e===91?e+2:e===40?e+1:e)))}function $A(e){for(;(zA=KA())&&zA<33;)GA();return YA(e)>2||YA(zA)>3?``:` `}function ej(e,t){for(;--t&&GA()&&!(zA<48||zA>102||zA>57&&zA<65||zA>70&&zA<97););return JA(e,qA()+(t<6&&KA()==32&&GA()==32))}function tj(e){for(;GA();)switch(zA){case e:return RA;case 34:case 39:e!==34&&e!==39&&tj(zA);break;case 40:e===41&&tj(e);break;case 92:GA();break}return RA}function nj(e,t){for(;GA()&&e+zA!==57&&!(e+zA===84&&KA()===47););return`/*`+JA(t,RA-1)+`*`+CA(e===47?e:GA())}function rj(e){for(;!YA(KA());)GA();return JA(e,RA)}function ij(e){return ZA(aj(``,null,null,null,[``],e=XA(e),0,[0],e))}function aj(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=GA()){case 40:if(m!=108&&kA(C,d-1)==58){OA(C+=Z(QA(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=QA(v);break;case 9:case 10:case 13:case 32:C+=$A(m);break;case 92:C+=ej(qA()-1,7);continue;case 47:switch(KA()){case 42:case 47:NA(sj(nj(GA(),qA()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=jA(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=Z(C,/\f/g,``)),p>0&&jA(C)-d&&NA(p>32?cj(C+`;`,r,n,d-1):cj(Z(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(NA(S=oj(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)aj(C,t,S,S,b,a,d,s,x);else switch(f===99&&kA(C,3)===110?100:f){case 100:case 108:case 109:case 115:aj(e,S,S,r&&NA(oj(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:aj(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+jA(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&WA()==125)continue}switch(C+=CA(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(jA(C)-1)*_,_=1;break;case 64:KA()===45&&(C+=QA(GA())),f=KA(),u=d=jA(y=C+=rj(qA())),v++;break;case 45:m===45&&jA(C)==2&&(h=0)}}return a}function oj(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=MA(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=AA(e,d+1,d=SA(h=o[m])),y=e;_<p;++_)(y=EA(h>0?f[_]+` `+v:Z(v,/&\f/g,f[_])))&&(c[g++]=y);return VA(e,t,n,i===0?_A:s,c,l,u)}function sj(e,t,n){return VA(e,t,n,gA,CA(UA()),AA(e,2,-2),0)}function cj(e,t,n,r){return VA(e,t,n,vA,AA(e,0,r),AA(e,r+1,-1),r)}function lj(e,t){for(var n=``,r=MA(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function uj(e,t,n,r){switch(e.type){case xA:if(e.children.length)break;case yA:case vA:return e.return=e.return||e.value;case gA:return``;case bA:return e.return=e.value+`{`+lj(e.children,r)+`}`;case _A:e.value=e.props.join(`,`)}return jA(n=lj(e.children,r))?e.return=e.value+`{`+n+`}`:``}function dj(e){var t=MA(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function fj(e){return function(t){t.root||(t=t.return)&&e(t)}}var pj=function(e,t,n){for(var r=0,i=0;r=i,i=KA(),r===38&&i===12&&(t[n]=1),!YA(i);)GA();return JA(e,RA)},mj=function(e,t){var n=-1,r=44;do switch(YA(r)){case 0:r===38&&KA()===12&&(t[n]=1),e[n]+=pj(RA-1,t,n);break;case 2:e[n]+=QA(r);break;case 4:if(r===44){e[++n]=KA()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=CA(r)}while(r=GA());return e},hj=function(e,t){return ZA(mj(XA(e),t))},gj=new WeakMap,_j=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!gj.get(n))&&!r){gj.set(e,!0);for(var i=[],a=hj(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},vj=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function yj(e,t){switch(TA(e,t)){case 5103:return X+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return X+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return X+e+hA+e+mA+e+e;case 6828:case 4268:return X+e+mA+e+e;case 6165:return X+e+mA+`flex-`+e+e;case 5187:return X+e+Z(e,/(\w+).+(:[^]+)/,X+`box-$1$2`+mA+`flex-$1$2`)+e;case 5443:return X+e+mA+`flex-item-`+Z(e,/flex-|-self/,``)+e;case 4675:return X+e+mA+`flex-line-pack`+Z(e,/align-content|flex-|-self/,``)+e;case 5548:return X+e+mA+Z(e,`shrink`,`negative`)+e;case 5292:return X+e+mA+Z(e,`basis`,`preferred-size`)+e;case 6060:return X+`box-`+Z(e,`-grow`,``)+X+e+mA+Z(e,`grow`,`positive`)+e;case 4554:return X+Z(e,/([^-])(transform)/g,`$1`+X+`$2`)+e;case 6187:return Z(Z(Z(e,/(zoom-|grab)/,X+`$1`),/(image-set)/,X+`$1`),e,``)+e;case 5495:case 3959:return Z(e,/(image-set\([^]*)/,X+"$1$`$1");case 4968:return Z(Z(e,/(.+:)(flex-)?(.*)/,X+`box-pack:$3`+mA+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+X+e+e;case 4095:case 3583:case 4068:case 2532:return Z(e,/(.+)-inline(.+)/,X+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jA(e)-1-t>6)switch(kA(e,t+1)){case 109:if(kA(e,t+4)!==45)break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,`$1`+X+`$2-$3$1`+hA+(kA(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~OA(e,`stretch`)?yj(Z(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(kA(e,t+1)!==115)break;case 6444:switch(kA(e,jA(e)-3-(~OA(e,`!important`)&&10))){case 107:return Z(e,`:`,`:`+X)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+X+(kA(e,14)===45?`inline-`:``)+`box$3$1`+X+`$2$3$1`+mA+`$2box$3`)+e}break;case 5936:switch(kA(e,t+11)){case 114:return X+e+mA+Z(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return X+e+mA+Z(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return X+e+mA+Z(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return X+e+mA+e+e}return e}var bj=function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vA:e.return=yj(e.value,e.length);break;case bA:return lj([HA(e,{value:Z(e.value,`@`,`@`+X)})],r);case _A:if(e.length)return PA(e.props,function(t){switch(DA(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return lj([HA(e,{props:[Z(t,/:(read-\w+)/,`:`+hA+`$1`)]})],r);case`::placeholder`:return lj([HA(e,{props:[Z(t,/:(plac\w+)/,`:`+X+`input-$1`)]}),HA(e,{props:[Z(t,/:(plac\w+)/,`:`+hA+`$1`)]}),HA(e,{props:[Z(t,/:(plac\w+)/,mA+`input-$1`)]})],r)}return``})}},xj=[bj],Sj=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){var t=e.getAttribute(`data-emotion`);t.indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||xj,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[_j,vj],l,u=[uj,fj(function(e){l.insert(e)})],d=dj(c.concat(r,u)),f=function(e){return lj(ij(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new pA({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},Cj=M((exports=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}exports.AsyncMode=l,exports.ConcurrentMode=u,exports.ContextConsumer=c,exports.ContextProvider=s,exports.Element=n,exports.ForwardRef=d,exports.Fragment=i,exports.Lazy=h,exports.Memo=m,exports.Portal=r,exports.Profiler=o,exports.StrictMode=a,exports.Suspense=f,exports.isAsyncMode=function(e){return x(e)||b(e)===l},exports.isConcurrentMode=x,exports.isContextConsumer=function(e){return b(e)===c},exports.isContextProvider=function(e){return b(e)===s},exports.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},exports.isForwardRef=function(e){return b(e)===d},exports.isFragment=function(e){return b(e)===i},exports.isLazy=function(e){return b(e)===h},exports.isMemo=function(e){return b(e)===m},exports.isPortal=function(e){return b(e)===r},exports.isProfiler=function(e){return b(e)===o},exports.isStrictMode=function(e){return b(e)===a},exports.isSuspense=function(e){return b(e)===f},exports.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},exports.typeOf=b})),wj=M(((exports,t)=>{t.exports=Cj()})),Tj=M(((exports,t)=>{var n=wj(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),Ej=!0;function Dj(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var Oj=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||Ej===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},kj=function(e,t,n){Oj(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function Aj(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var jj={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};BS();var Mj=!1,Nj=/[A-Z]|^ms/g,Pj=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fj=function(e){return e.charCodeAt(1)===45},Ij=function(e){return e!=null&&typeof e!=`boolean`},Lj=zS(function(e){return Fj(e)?e:e.replace(Nj,`-$&`).toLowerCase()}),Rj=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(Pj,function(e,t,n){return Uj={name:t,styles:n,next:Uj},t})}return jj[e]!==1&&!Fj(e)&&typeof t==`number`&&t!==0?t+`px`:t},zj=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function Bj(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Uj={name:i.name,styles:i.styles,next:Uj},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Uj={name:o.name,styles:o.styles,next:Uj},o=o.next;var s=a.styles+`;`;return s}return Vj(e,t,n);case`function`:if(e!==void 0){var c=Uj,l=n(e);return Uj=c,Bj(e,t,l)}break}var u=n;if(t==null)return u;var d=t[u];return d===void 0?u:d}function Vj(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Bj(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Ij(s)&&(r+=Lj(a)+`:`+Rj(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&Mj)throw Error(zj);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Ij(o[c])&&(r+=Lj(a)+`:`+Rj(a,o[c])+`;`);else{var l=Bj(e,t,o);switch(a){case`animation`:case`animationName`:r+=Lj(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var Hj=/label:\s*([^\s;{]+)\s*(;|$)/g,Uj;function Wj(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Uj=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=Bj(n,t,a);else{var o=a;i+=o[0]}for(var s=1;s<e.length;s++)if(i+=Bj(n,t,e[s]),r){var c=a;i+=c[s]}Hj.lastIndex=0;for(var l=``,u;(u=Hj.exec(i))!==null;)l+=`-`+u[1];var d=Aj(i)+l;return{name:d,styles:i,next:Uj}}var Gj=function(e){return e()},Kj=e.useInsertionEffect?e.useInsertionEffect:!1,qj=Kj||Gj;Kj||e.useLayoutEffect;var Jj=!1,Yj=e.createContext(typeof HTMLElement<`u`?Sj({key:`css`}):null);Yj.Provider;var Xj=function(e){return c(function(t,n){var r=d(Yj);return e(t,r,n)})},Zj=e.createContext({}),Qj={}.hasOwnProperty,$j=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,eM=function(e,t){var n={};for(var r in t)Qj.call(t,r)&&(n[r]=t[r]);return n[$j]=e,n},tM=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Oj(t,n,r),qj(function(){return kj(t,n,r)}),null},nM=Xj(function(t,n,r){var i=t.css;typeof i==`string`&&n.registered[i]!==void 0&&(i=n.registered[i]);var a=t[$j],o=[i],s=``;typeof t.className==`string`?s=Dj(n.registered,o,t.className):t.className!=null&&(s=t.className+` `);var c=Wj(o,void 0,e.useContext(Zj));s+=n.key+`-`+c.name;var l={};for(var u in t)Qj.call(t,u)&&u!==`css`&&u!==$j&&!Jj&&(l[u]=t[u]);return l.className=s,r&&(l.ref=r),e.createElement(e.Fragment,null,e.createElement(tM,{cache:n,serialized:c,isStringTag:typeof a==`string`}),e.createElement(a,l))}),rM=nM;Tj();var Q=function(t,n){var r=arguments;if(n==null||!Qj.call(n,`css`))return e.createElement.apply(void 0,r);var i=r.length,a=Array(i);a[0]=rM,a[1]=eM(t,n);for(var o=2;o<i;o++)a[o]=r[o];return e.createElement.apply(null,a)};(function(e){var t;(function(e){})(t||=e.JSX||={})})(Q||={});function iM(){var e=[...arguments];return Wj(e)}function aM(){var e=iM.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}function oM(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function sM(e){let t=ld(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=qu(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=eu(n)!==a||eu(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function cM(e){return Ku(e)?e:e.contextElement}function lM(e){let t=cM(e);if(!qu(t))return nu(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=sM(t),o=(a?eu(n.width):n.width)/r,s=(a?eu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const uM=nu(0);function dM(e){let t=Uu(e);return!od()||!t.visualViewport?uM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Uu(e)?!1:t}function pM(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=cM(e),o=nu(1);t&&(r?Ku(r)&&(o=lM(r)):o=lM(e));let s=fM(a,n,r)?dM(a):nu(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Uu(a),t=r&&Ku(r)?Uu(r):r,n=e,i=n.frameElement;for(;i&&r&&t!==n;){let e=lM(i),t=i.getBoundingClientRect(),r=ld(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Uu(i),i=n.frameElement}}return Eu({width:u,height:d,x:c,y:l})}const mM=[`:popover-open`,`:modal`];function hM(e){return mM.some(t=>{try{return e.matches(t)}catch{return!1}})}function gM(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Wu(r),s=t?hM(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=nu(1),u=nu(0),d=qu(r);if((d||!d&&!a)&&((Hu(r)!==`body`||Xu(o))&&(c=ud(r)),qu(r))){let e=pM(r);l=lM(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function _M(e){return Array.from(e.getClientRects())}function vM(e){return pM(Wu(e)).left+ud(e).scrollLeft}function yM(e){let t=Wu(e),n=ud(e),r=e.ownerDocument.body,i=$l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=$l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+vM(e),s=-n.scrollTop;return ld(r).direction===`rtl`&&(o+=$l(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function bM(e,t){let n=Uu(e),r=Wu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=od();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}function xM(e,t){let n=pM(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=qu(e)?lM(e):nu(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,l=r*a.y;return{width:o,height:s,x:c,y:l}}function SM(e,t,n){let r;if(t===`viewport`)r=bM(e,n);else if(t===`document`)r=yM(Wu(e));else if(Ku(t))r=xM(t,n);else{let n=dM(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Eu(r)}function CM(e,t){let n=dd(e);return n===t||!Ku(n)||cd(n)?!1:ld(n).position===`fixed`||CM(n,t)}function wM(e,t){let n=t.get(e);if(n)return n;let r=pd(e,[],!1).filter(e=>Ku(e)&&Hu(e)!==`body`),i=null,a=ld(e).position===`fixed`,o=a?dd(e):e;for(;Ku(o)&&!cd(o);){let t=ld(o),n=id(o);!n&&t.position===`fixed`&&(i=null);let s=a?!n&&!i:!n&&t.position===`static`&&!!i&&[`absolute`,`fixed`].includes(i.position)||Xu(o)&&!n&&CM(e,o);s?r=r.filter(e=>e!==o):i=t,o=dd(o)}return t.set(e,r),r}function TM(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=n===`clippingAncestors`?wM(t,this._c):[].concat(n),o=[...a,r],s=o[0],c=o.reduce((e,n)=>{let r=SM(t,n,i);return e.top=$l(r.top,e.top),e.right=Ql(r.right,e.right),e.bottom=Ql(r.bottom,e.bottom),e.left=$l(r.left,e.left),e},SM(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function EM(e){let{width:t,height:n}=sM(e);return{width:t,height:n}}function DM(e,t,n){let r=qu(t),i=Wu(t),a=n===`fixed`,o=pM(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=nu(0);if(r||!r&&!a)if((Hu(t)!==`body`||Xu(i))&&(s=ud(t)),r){let e=pM(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=vM(i));let l=o.left+s.scrollLeft-c.x,u=o.top+s.scrollTop-c.y;return{x:l,y:u,width:o.width,height:o.height}}function OM(e,t){return!qu(e)||ld(e).position===`fixed`?null:t?t(e):e.offsetParent}function kM(e,t){let n=Uu(e);if(!qu(e)||hM(e))return n;let r=OM(e,t);for(;r&&Qu(r)&&ld(r).position===`static`;)r=OM(r,t);return r&&(Hu(r)===`html`||Hu(r)===`body`&&ld(r).position===`static`&&!id(r))?n:r||ad(e)||n}const AM=async function(e){let t=this.getOffsetParent||kM,n=this.getDimensions;return{reference:DM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function jM(e){return ld(e).direction===`rtl`}const MM={convertOffsetParentRelativeRectToViewportRelativeRect:gM,getDocumentElement:Wu,getClippingRect:TM,getOffsetParent:kM,getElementRects:AM,getClientRects:_M,getDimensions:EM,getScale:lM,isElement:Ku,isRTL:jM};function NM(e,t){let n=null,r,i=Wu(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let{left:l,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;let p=tu(u),m=tu(i.clientWidth-(l+d)),h=tu(i.clientHeight-(u+f)),g=tu(l),_=-p+`px `+-m+`px `+-h+`px `+-g+`px`,v={rootMargin:_,threshold:$l(0,Ql(1,c))||1},y=!0;function b(e){let t=e[0].intersectionRatio;if(t!==c){if(!y)return o();t?o(!1,t):r=setTimeout(()=>{o(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function PM(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=cM(e),u=i||a?[...l?pd(l):[],...pd(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?NM(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?pM(e):null;c&&g();function g(){let t=pM(e);h&&(t.x!==h.x||t.y!==h.y||t.width!==h.width||t.height!==h.height)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const FM=Ru,IM=ju,LM=Au,RM=(e,t,n)=>{let r=new Map,i={platform:MM,...n},a={...i.platform,_c:r};return Ou(e,t,{...i,platform:a})};var zM=h,BM=[`className`,`clearValue`,`cx`,`getStyles`,`getClassNames`,`getValue`,`hasValue`,`isMulti`,`isRtl`,`options`,`selectOption`,`selectProps`,`setValue`,`theme`],VM=function(){};function HM(e,t){return t?t[0]===`-`?e+t:e+`__`+t:e}function UM(e,t){var n=[...arguments].slice(2),r=[].concat(n);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push(`${HM(e,i)}`);return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(` `)}var WM=function(e){return lN(e)?e.filter(Boolean):Fk(e)===`object`&&e!==null?[e]:[]},GM=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=qk(e,BM);return J({},t)},KM=function(e,t,n){var r=e.cx,i=e.getStyles,a=e.getClassNames,o=e.className;return{css:i(t,e),className:r(n??{},a(t,e),o)}};function qM(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function JM(e){return qM(e)?window.innerHeight:e.clientHeight}function YM(e){return qM(e)?window.pageYOffset:e.scrollTop}function XM(e,t){if(qM(e)){window.scrollTo(0,t);return}e.scrollTop=t}function ZM(e){var t=getComputedStyle(e),n=t.position===`absolute`,r=/(auto|scroll)/;if(t.position===`fixed`)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position===`static`)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function QM(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function $M(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:VM,i=YM(e),a=t-i,o=10,s=0;function c(){s+=o;var t=QM(s,i,a,n);XM(e,t),s<n?window.requestAnimationFrame(c):r(e)}c()}function eN(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?XM(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&XM(e,Math.max(t.offsetTop-i,0))}function tN(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function nN(){try{return document.createEvent(`TouchEvent`),!0}catch{return!1}}function rN(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var iN=!1,aN={get passive(){return iN=!0}},oN=typeof window<`u`?window:{};oN.addEventListener&&oN.removeEventListener&&(oN.addEventListener(`p`,VM,aN),oN.removeEventListener(`p`,VM,!1));var sN=iN;function cN(e){return e!=null}function lN(e){return Array.isArray(e)}function uN(e,t,n){return e?t:n}function dN(e){return e}function fN(e){return e}var pN=function(e){var t=[...arguments].slice(1),n=Object.entries(e).filter(function(e){var n=Gk(e,1),r=n[0];return!t.includes(r)});return n.reduce(function(e,t){var n=Gk(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},mN=[`children`,`innerProps`],hN=[`children`,`innerProps`];function gN(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,c=ZM(n),l={placement:`bottom`,maxHeight:t};if(!n||!n.offsetParent)return l;var u=c.getBoundingClientRect(),d=u.height,f=n.getBoundingClientRect(),p=f.bottom,m=f.height,h=f.top,g=n.offsetParent.getBoundingClientRect(),_=g.top,v=o?window.innerHeight:JM(c),y=YM(c),b=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),S=_-x,C=v-h,w=S+y,T=d-y-h,E=p-v+y+b,D=y+h-x,O=160;switch(i){case`auto`:case`bottom`:if(C>=m)return{placement:`bottom`,maxHeight:t};if(T>=m&&!o)return a&&$M(c,E,O),{placement:`bottom`,maxHeight:t};if(!o&&T>=r||o&&C>=r){a&&$M(c,E,O);var k=o?C-b:T-b;return{placement:`bottom`,maxHeight:k}}if(i===`auto`||o){var A=t,j=o?S:w;return j>=r&&(A=Math.min(j-b-s,t)),{placement:`top`,maxHeight:A}}if(i===`bottom`)return a&&XM(c,E),{placement:`bottom`,maxHeight:t};break;case`top`:if(S>=m)return{placement:`top`,maxHeight:t};if(w>=m&&!o)return a&&$M(c,D,O),{placement:`top`,maxHeight:t};if(!o&&w>=r||o&&S>=r){var M=t;return(!o&&w>=r||o&&S>=r)&&(M=o?S-x:w-x),a&&$M(c,D,O),{placement:`top`,maxHeight:M}}return{placement:`bottom`,maxHeight:t};default:throw Error(`Invalid placement provided "${i}".`)}return l}function _N(e){var t={bottom:`top`,top:`bottom`};return e?t[e]:`bottom`}var vN=function(e){return e===`auto`?`bottom`:e},yN=function(e,t){var n,r=e.placement,i=e.theme,a=i.borderRadius,o=i.spacing,s=i.colors;return J((n={label:`menu`},Rk(n,_N(r),`100%`),Rk(n,`position`,`absolute`),Rk(n,`width`,`100%`),Rk(n,`zIndex`,1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:`0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)`,marginBottom:o.menuGutter,marginTop:o.menuGutter})},bN=o(null),xN=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,c=d(bN)||{},l=c.setPortalPlacement,u=_(null),f=v(r),p=Gk(f,2),m=p[0],h=p[1],g=v(null),y=Gk(g,2),b=y[0],x=y[1],S=s.spacing.controlHeight;return zM(function(){var e=u.current;if(e){var t=a===`fixed`,s=o&&!t,c=gN({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s,isFixedPosition:t,controlHeight:S});h(c.maxHeight),x(c.placement),l?.(c.placement)}},[r,i,a,o,n,l,S]),t({ref:u,placerProps:J(J({},e),{},{placement:b||vN(i),maxHeight:m})})},SN=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Q(`div`,Y({},KM(e,`menu`,{menu:!0}),{ref:n},r),t)},CN=SN,wN=function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return J({maxHeight:n,overflowY:`auto`,position:`relative`,WebkitOverflowScrolling:`touch`},t?{}:{paddingBottom:r,paddingTop:r})},TN=function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return Q(`div`,Y({},KM(e,`menuList`,{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},EN=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return J({textAlign:`center`},t?{}:{color:i.neutral40,padding:`${r*2}px ${r*3}px`})},DN=EN,ON=EN,kN=function(e){var t=e.children,n=t===void 0?`No options`:t,r=e.innerProps,i=qk(e,mN);return Q(`div`,Y({},KM(J(J({},i),{},{children:n,innerProps:r}),`noOptionsMessage`,{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},AN=function(e){var t=e.children,n=t===void 0?`Loading...`:t,r=e.innerProps,i=qk(e,hN);return Q(`div`,Y({},KM(J(J({},i),{},{children:n,innerProps:r}),`loadingMessage`,{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},jN=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},MN=function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,o=e.menuPosition,s=_(null),c=_(null),l=v(vN(a)),d=Gk(l,2),f=d[0],p=d[1],m=g(function(){return{setPortalPlacement:p}},[]),h=v(null),y=Gk(h,2),b=y[0],x=y[1],S=u(function(){if(r){var e=tN(r),t=o===`fixed`?0:window.pageYOffset,n=e[f]+t;(n!==b?.offset||e.left!==b?.rect.left||e.width!==b?.rect.width)&&x({offset:n,rect:e})}},[r,o,f,b?.offset,b?.rect.left,b?.rect.width]);zM(function(){S()},[S]);var C=u(function(){typeof c.current==`function`&&(c.current(),c.current=null),r&&s.current&&(c.current=PM(r,s.current,S,{elementResize:`ResizeObserver`in window}))},[r,S]);zM(function(){C()},[C]);var T=u(function(e){s.current=e,C()},[C]);if(!t&&o!==`fixed`||!b)return null;var E=Q(`div`,Y({ref:T},KM(J(J({},e),{},{offset:b.offset,position:o,rect:b.rect}),`menuPortal`,{"menu-portal":!0}),i),n);return Q(bN.Provider,{value:m},t?w(E,t):E)},NN=function(e){var t=e.isDisabled,n=e.isRtl;return{label:`container`,direction:n?`rtl`:void 0,pointerEvents:t?`none`:void 0,position:`relative`}},PN=function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return Q(`div`,Y({},KM(e,`container`,{"--is-disabled":r,"--is-rtl":i}),n),t)},FN=function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return J({alignItems:`center`,display:r&&i&&a?`flex`:`grid`,flex:1,flexWrap:`wrap`,WebkitOverflowScrolling:`touch`,position:`relative`,overflow:`hidden`},t?{}:{padding:`${n.baseUnit/2}px ${n.baseUnit*2}px`})},IN=function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return Q(`div`,Y({},KM(e,`valueContainer`,{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)},LN=function(){return{alignItems:`center`,alignSelf:`stretch`,display:`flex`,flexShrink:0}},RN=function(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({},KM(e,`indicatorsContainer`,{indicators:!0}),n),t)},zN,BN=[`size`],VN=[`innerProps`,`isRtl`,`size`],HN={name:`8mmkcg`,styles:`display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0`},UN=function(e){var t=e.size,n=qk(e,BN);return Q(`svg`,Y({height:t,width:t,viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,css:HN},n))},WN=function(e){return Q(UN,Y({size:20},e),Q(`path`,{d:`M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z`}))},GN=function(e){return Q(UN,Y({size:20},e),Q(`path`,{d:`M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z`}))},KN=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return J({label:`indicatorContainer`,display:`flex`,transition:`color 150ms`},t?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},qN=KN,JN=function(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({},KM(e,`dropdownIndicator`,{indicator:!0,"dropdown-indicator":!0}),n),t||Q(GN,null))},YN=KN,XN=function(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({},KM(e,`clearIndicator`,{indicator:!0,"clear-indicator":!0}),n),t||Q(WN,null))},ZN=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return J({label:`indicatorSeparator`,alignSelf:`stretch`,width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},QN=function(e){var t=e.innerProps;return Q(`span`,Y({},t,KM(e,`indicatorSeparator`,{"indicator-separator":!0})))},$N=aM(zN||=oM([`
1261
+ tw:dark:bg-sq-dark-background`,e),...r,children:[b(HO,{className:`tw:hidden`}),n]})]})}));lk.displayName=nk.displayName;const uk=e=>b(`div`,{className:`tw:w-full tw:justify-between`,children:b(`div`,{...e})});uk.displayName=`DialogHeader`;const dk=e=>b(`div`,{...e});dk.displayName=`DialogFooter`;const fk=c((e,t)=>b(rk,{ref:t,...e}));fk.displayName=rk.displayName;const pk=c((e,t)=>b(ik,{asChild:!0,children:b(`div`,{ref:t,...e})}));pk.displayName=ik.displayName;const mk=({titleIcon:e,title:t,titleSuffixLabel:n,subtitle:r,children:i,open:a=!1,onClose:o,onCloseAutoFocus:s,customButton:c=!1,customButtonLabel:u=`Back`,onClickCustomButton:d,submitButtonLabel:p=`Submit`,cancelButtonLabel:m=`Cancel`,disableSubmitButton:h=!1,stopPropagationSubmitButton:g=!1,onSubmit:_,isTitleEditable:S=!1,onTitleChanged:C,inputExtraClassNames:w,hideCloseIcon:T=!1,size:E=`xl`,titleIconPosition:D=`left`,hideFooterButtons:O=!1,hideSubmitButton:k=!1,hideCancelButton:A=!1,testId:j=`modal`,modalFooter:M,dialogClassName:N,titlePlaceholder:ee,titleRequired:te,titleError:P,submitButtonTooltip:ne,cancelButtonTooltip:F,disableCustomButton:re,customHeader:ie,middleFooterSection:ae=b(y,{}),customButtonVariant:I=`outline`,submitButtonVariant:oe=`theme`,keepFocusInsideModal:se=!0,onPointerDownOutside:ce,onInteractOutside:L,ariaDescribedBy:le})=>{let[R,ue]=v(!1);f(()=>{if(a){let e=setTimeout(()=>{document.body.style.pointerEvents=``},0);return()=>clearTimeout(e)}else document.body.style.pointerEvents=`auto`},[a]);let z=async e=>{if(_)try{ue(!0),await _(e)}finally{ue(!1)}},de=()=>{let i=b(y,{});return e&&(i=l(e)?b(`div`,{className:`tw:mt-2`,children:e}):b(Zc,{icon:e,testId:`modalTitleIcon`,extraClassNames:`tw:flex tw:text-xl tw:mt-1 tw:!leading-normal`})),x(y,{children:[e&&D===`left`?b(`div`,{className:`tw:mr-2 tw:flex`,children:i}):b(y,{}),b(fk,{asChild:!0,children:S?x(`div`,{className:`tw:flex tw:w-full tw:items-center`,children:[b(_O,{extraClassNames:w,value:t,type:`text`,testId:`modalTitle`,onChange:C,placeholder:ee,required:te,showError:!!P}),P&&b(`p`,{className:`tw:mb-0 tw:min-w-fit tw:pl-2 tw:text-sq-danger`,children:P})]}):ie??x(`div`,{"data-testid":`modalTitle`,className:`modal-title`,children:[x(`div`,{className:`tw:flex tw:items-center`,children:[b(`h3`,{children:t}),n&&b(`span`,{className:`tw:pl-0.5 tw:text-xl`,children:n})]}),r&&b(`div`,{className:`tw:mt-1 tw:text-left tw:text-sm tw:italic`,"data-testid":`modal-subtitle`,children:r})]})}),e&&D===`right`?b(`div`,{className:`tw:ml-4 tw:flex`,children:i}):b(y,{})]})};return a?b(ok,{open:!0,onOpenChange:o,modal:se,children:x(lk,{onCloseAutoFocus:s,onPointerDownOutside:e=>ce?ce(e):e.preventDefault(),onInteractOutside:e=>L?L(e):e.preventDefault(),"data-testid":j,"aria-describedby":le,className:V(`modalContent`,`tw:w-full tw:gap-0! tw:border-0 tw:shadow-none tw:dark:border tw:dark:border-gray-500 tw:dark:text-sq-dark-text`,{"tw:max-w-xs":E===`xs`,"tw:max-w-sm":E===`sm`,"tw:max-w-md":E===`md`,"tw:max-w-lg":E===`lg`,"tw:max-w-xl":E===`xl`,"tw:max-w-2xl":E===`2xl`,"tw:max-w-3xl":E===`3xl`,"tw:max-w-4xl":E===`4xl`,"tw:max-w-5xl":E===`5xl`,"tw:max-w-6xl":E===`6xl`},N),children:[x(uk,{className:V(`modal-header`,`tw:flex tw:w-full tw:justify-between tw:border-0 tw:border-b tw:border-sq-disabled-gray tw:px-6 tw:py-4 tw:dark:border-sq-dark-disabled-gray`),children:[b(`div`,{className:`tw:flex tw:w-full`,children:de()}),!T&&b(ck,{autoFocus:!1,className:V(`close`,`tw:ml-4 tw:cursor-pointer tw:bg-transparent tw:text-base tw:opacity-70 tw:hover:opacity-100`),"data-testid":`closeButton`,children:b(`span`,{className:`tw:cursor-pointer`,children:`×`})})]}),b(pk,{className:V(`modal-body`,`tw:flex-1 tw:overflow-y-auto tw:px-6 tw:py-4`),children:i}),!O&&b(dk,{className:V(`modal-footer`,`tw:px-6 tw:py-4`),children:M??x(`div`,{className:`tw:flex tw:w-full tw:justify-between`,"data-testid":`modalFooter`,children:[b(`div`,{className:`tw:flex tw:justify-start`,children:c&&b(gl,{label:u,onClick:d,disabled:re,extraClassNames:`tw:justify-start tw:min-w-25`,testId:`customButton`,variant:I})}),x(`div`,{className:`tw:flex tw:justify-end`,children:[b(`div`,{className:`tw:flex tw:items-center`,children:ae}),!A&&b(ck,{asChild:!0,children:b(gl,{label:m,extraClassNames:`tw:mr-5 tw:min-w-25`,tooltip:F,variant:`outline`,stopPropagation:!1,testId:`cancelButton`})}),!k&&b(gl,{label:p,onClick:z,disabled:h||R,variant:oe,stopPropagation:g,tooltip:ne,inProgress:R,iconPosition:`left`,testId:`submitButton`,extraClassNames:`tw:min-w-25`})]})]})})]})}):b(y,{})};var hk=mk;const gk=(...e)=>{console?.warn&&(Ck(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},_k={},vk=(...e)=>{Ck(e[0])&&_k[e[0]]||(Ck(e[0])&&(_k[e[0]]=new Date),gk(...e))},yk=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},bk=(e,t,n)=>{e.loadNamespaces(t,yk(e,n))},xk=(e,t,n,r)=>{Ck(n)&&(n=[n]),n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,yk(e,r))},Sk=(e,t,n={})=>!t.languages||!t.languages.length?(vk(`i18n.languages were undefined or empty`,t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n?.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),Ck=e=>typeof e==`string`,wk=e=>typeof e==`object`&&!!e,Tk=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ek={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":` `,"&#160;":` `,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},Dk=e=>Ek[e],Ok=e=>e.replace(Tk,Dk);let kk={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:Ok};const Ak=()=>kk,jk=()=>void 0,Mk=o();var Nk=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]??=!0})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};const Pk=(e,t)=>{let n=_();return f(()=>{n.current=t?n.current:e},[e,t]),n.current},Fk=(e,t,n,r)=>e.getFixedT(t,n,r),Ik=(e,t,n,r)=>u(Fk(e,t,n,r),[e,t,n,r]),Lk=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=d(Mk)||{},a=n||r||jk();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Nk),!a){vk(`You will need to pass in an i18next instance by using initReactI18next`);let e=(e,t)=>Ck(t)?t:wk(t)&&Ck(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react?.wait&&vk(`It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);let o={...Ak(),...a.options.react,...t},{useSuspense:s,keyPrefix:c}=o,l=e||i||a.options?.defaultNS;l=Ck(l)?[l]:l||[`translation`],a.reportNamespaces.addUsedNamespaces?.(l);let u=(a.isInitialized||a.initializedStoreOnce)&&l.every(e=>Sk(e,a,o)),p=Ik(a,t.lng||null,o.nsMode===`fallback`?l:l[0],c),m=()=>p,h=()=>Fk(a,t.lng||null,o.nsMode===`fallback`?l:l[0],c),[g,y]=v(m),b=l.join();t.lng&&(b=`${t.lng}${b}`);let x=Pk(b),S=_(!0);f(()=>{let{bindI18n:e,bindI18nStore:n}=o;S.current=!0,!u&&!s&&(t.lng?xk(a,t.lng,l,()=>{S.current&&y(h)}):bk(a,l,()=>{S.current&&y(h)})),u&&x&&x!==b&&S.current&&y(h);let r=()=>{S.current&&y(h)};return e&&a?.on(e,r),n&&a?.store.on(n,r),()=>{S.current=!1,a&&e?.split(` `).forEach(e=>a.off(e,r)),n&&a&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,b]),f(()=>{S.current&&u&&y(m)},[a,c,u]);let C=[g,a,u];if(C.t=g,C.i18n=a,C.ready=u,u||!u&&!s)return C;throw new Promise(e=>{t.lng?xk(a,t.lng,l,()=>e()):bk(a,l,()=>e())})};function Rk(e){"@babel/helpers - typeof";return Rk=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},Rk(e)}function zk(e,t){if(Rk(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Rk(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Bk(e){var t=zk(e,`string`);return Rk(t)==`symbol`?t:t+``}function Vk(e,t,n){return(t=Bk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hk(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 J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hk(Object(n),!0).forEach(function(t){Vk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Uk(e){if(Array.isArray(e))return e}function Wk(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}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Gk(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 Kk(e,t){if(e){if(typeof e==`string`)return Gk(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)?Gk(e,t):void 0}}function qk(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
1262
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jk(e,t){return Uk(e)||Wk(e,t)||Kk(e,t)||qk()}function Yk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Xk(e,t){if(e==null)return{};var n,r,i=Yk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Zk=[`defaultInputValue`,`defaultMenuIsOpen`,`defaultValue`,`inputValue`,`menuIsOpen`,`onChange`,`onInputChange`,`onMenuClose`,`onMenuOpen`,`value`];function Qk(e){var t=e.defaultInputValue,n=t===void 0?``:t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,c=e.menuIsOpen,l=e.onChange,d=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,m=e.value,h=Xk(e,Zk),g=v(s===void 0?n:s),_=Jk(g,2),y=_[0],b=_[1],x=v(c===void 0?i:c),S=Jk(x,2),C=S[0],w=S[1],T=v(m===void 0?o:m),E=Jk(T,2),D=E[0],O=E[1],k=u(function(e,t){typeof l==`function`&&l(e,t),O(e)},[l]),A=u(function(e,t){var n;typeof d==`function`&&(n=d(e,t)),b(n===void 0?e:n)},[d]),j=u(function(){typeof p==`function`&&p(),w(!0)},[p]),M=u(function(){typeof f==`function`&&f(),w(!1)},[f]),N=s===void 0?y:s,ee=c===void 0?C:c,te=m===void 0?D:m;return J(J({},h),{},{inputValue:N,menuIsOpen:ee,onChange:k,onInputChange:A,onMenuClose:M,onMenuOpen:j,value:te})}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(null,arguments)}function $k(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function eA(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,Bk(r.key),r)}}function tA(e,t,n){return t&&eA(e.prototype,t),n&&eA(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function nA(e,t){return nA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nA(e,t)}function rA(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&&nA(e,t)}function iA(e){return iA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iA(e)}function aA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aA=function(){return!!e})()}function oA(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function sA(e,t){if(t&&(Rk(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return oA(e)}function cA(e){var t=aA();return function(){var n,r=iA(e);if(t){var i=iA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return sA(this,n)}}function lA(e){if(Array.isArray(e))return Gk(e)}function uA(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function dA(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1263
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fA(e){return lA(e)||uA(e)||Kk(e)||dA()}var pA=!1;function mA(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function hA(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var gA=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!pA:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(hA(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=mA(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return(t=e.parentNode)?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),_A=`-ms-`,vA=`-moz-`,X=`-webkit-`,yA=`comm`,bA=`rule`,xA=`decl`,SA=`@import`,CA=`@keyframes`,wA=`@layer`,TA=Math.abs,EA=String.fromCharCode,DA=Object.assign;function OA(e,t){return MA(e,0)^45?(((t<<2^MA(e,0))<<2^MA(e,1))<<2^MA(e,2))<<2^MA(e,3):0}function kA(e){return e.trim()}function AA(e,t){return(e=t.exec(e))?e[0]:e}function Z(e,t,n){return e.replace(t,n)}function jA(e,t){return e.indexOf(t)}function MA(e,t){return e.charCodeAt(t)|0}function NA(e,t,n){return e.slice(t,n)}function PA(e){return e.length}function FA(e){return e.length}function IA(e,t){return t.push(e),e}function LA(e,t){return e.map(t).join(``)}var RA=1,zA=1,BA=0,VA=0,HA=0,UA=``;function WA(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:RA,column:zA,length:o,return:``}}function GA(e,t){return DA(WA(``,null,null,``,null,null,0),e,{length:-e.length},t)}function KA(){return HA}function qA(){return HA=VA>0?MA(UA,--VA):0,zA--,HA===10&&(zA=1,RA--),HA}function JA(){return HA=VA<BA?MA(UA,VA++):0,zA++,HA===10&&(zA=1,RA++),HA}function YA(){return MA(UA,VA)}function XA(){return VA}function ZA(e,t){return NA(UA,e,t)}function QA(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $A(e){return RA=zA=1,BA=PA(UA=e),VA=0,[]}function ej(e){return UA=``,e}function tj(e){return kA(ZA(VA-1,ij(e===91?e+2:e===40?e+1:e)))}function nj(e){for(;(HA=YA())&&HA<33;)JA();return QA(e)>2||QA(HA)>3?``:` `}function rj(e,t){for(;--t&&JA()&&!(HA<48||HA>102||HA>57&&HA<65||HA>70&&HA<97););return ZA(e,XA()+(t<6&&YA()==32&&JA()==32))}function ij(e){for(;JA();)switch(HA){case e:return VA;case 34:case 39:e!==34&&e!==39&&ij(HA);break;case 40:e===41&&ij(e);break;case 92:JA();break}return VA}function aj(e,t){for(;JA()&&e+HA!==57&&!(e+HA===84&&YA()===47););return`/*`+ZA(t,VA-1)+`*`+EA(e===47?e:JA())}function oj(e){for(;!QA(YA());)JA();return ZA(e,VA)}function sj(e){return ej(cj(``,null,null,null,[``],e=$A(e),0,[0],e))}function cj(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=JA()){case 40:if(m!=108&&MA(C,d-1)==58){jA(C+=Z(tj(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=tj(v);break;case 9:case 10:case 13:case 32:C+=nj(m);break;case 92:C+=rj(XA()-1,7);continue;case 47:switch(YA()){case 42:case 47:IA(uj(aj(JA(),XA()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=PA(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=Z(C,/\f/g,``)),p>0&&PA(C)-d&&IA(p>32?dj(C+`;`,r,n,d-1):dj(Z(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(IA(S=lj(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)cj(C,t,S,S,b,a,d,s,x);else switch(f===99&&MA(C,3)===110?100:f){case 100:case 108:case 109:case 115:cj(e,S,S,r&&IA(lj(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:cj(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+PA(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&qA()==125)continue}switch(C+=EA(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(PA(C)-1)*_,_=1;break;case 64:YA()===45&&(C+=tj(JA())),f=YA(),u=d=PA(y=C+=oj(XA())),v++;break;case 45:m===45&&PA(C)==2&&(h=0)}}return a}function lj(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=FA(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=NA(e,d+1,d=TA(h=o[m])),y=e;_<p;++_)(y=kA(h>0?f[_]+` `+v:Z(v,/&\f/g,f[_])))&&(c[g++]=y);return WA(e,t,n,i===0?bA:s,c,l,u)}function uj(e,t,n){return WA(e,t,n,yA,EA(KA()),NA(e,2,-2),0)}function dj(e,t,n,r){return WA(e,t,n,xA,NA(e,0,r),NA(e,r+1,-1),r)}function fj(e,t){for(var n=``,r=FA(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function pj(e,t,n,r){switch(e.type){case wA:if(e.children.length)break;case SA:case xA:return e.return=e.return||e.value;case yA:return``;case CA:return e.return=e.value+`{`+fj(e.children,r)+`}`;case bA:e.value=e.props.join(`,`)}return PA(n=fj(e.children,r))?e.return=e.value+`{`+n+`}`:``}function mj(e){var t=FA(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function hj(e){return function(t){t.root||(t=t.return)&&e(t)}}var gj=function(e,t,n){for(var r=0,i=0;r=i,i=YA(),r===38&&i===12&&(t[n]=1),!QA(i);)JA();return ZA(e,VA)},_j=function(e,t){var n=-1,r=44;do switch(QA(r)){case 0:r===38&&YA()===12&&(t[n]=1),e[n]+=gj(VA-1,t,n);break;case 2:e[n]+=tj(r);break;case 4:if(r===44){e[++n]=YA()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=EA(r)}while(r=JA());return e},vj=function(e,t){return ej(_j($A(e),t))},yj=new WeakMap,bj=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!yj.get(n))&&!r){yj.set(e,!0);for(var i=[],a=vj(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},xj=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function Sj(e,t){switch(OA(e,t)){case 5103:return X+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return X+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return X+e+vA+e+_A+e+e;case 6828:case 4268:return X+e+_A+e+e;case 6165:return X+e+_A+`flex-`+e+e;case 5187:return X+e+Z(e,/(\w+).+(:[^]+)/,X+`box-$1$2`+_A+`flex-$1$2`)+e;case 5443:return X+e+_A+`flex-item-`+Z(e,/flex-|-self/,``)+e;case 4675:return X+e+_A+`flex-line-pack`+Z(e,/align-content|flex-|-self/,``)+e;case 5548:return X+e+_A+Z(e,`shrink`,`negative`)+e;case 5292:return X+e+_A+Z(e,`basis`,`preferred-size`)+e;case 6060:return X+`box-`+Z(e,`-grow`,``)+X+e+_A+Z(e,`grow`,`positive`)+e;case 4554:return X+Z(e,/([^-])(transform)/g,`$1`+X+`$2`)+e;case 6187:return Z(Z(Z(e,/(zoom-|grab)/,X+`$1`),/(image-set)/,X+`$1`),e,``)+e;case 5495:case 3959:return Z(e,/(image-set\([^]*)/,X+"$1$`$1");case 4968:return Z(Z(e,/(.+:)(flex-)?(.*)/,X+`box-pack:$3`+_A+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+X+e+e;case 4095:case 3583:case 4068:case 2532:return Z(e,/(.+)-inline(.+)/,X+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(PA(e)-1-t>6)switch(MA(e,t+1)){case 109:if(MA(e,t+4)!==45)break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,`$1`+X+`$2-$3$1`+vA+(MA(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~jA(e,`stretch`)?Sj(Z(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(MA(e,t+1)!==115)break;case 6444:switch(MA(e,PA(e)-3-(~jA(e,`!important`)&&10))){case 107:return Z(e,`:`,`:`+X)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+X+(MA(e,14)===45?`inline-`:``)+`box$3$1`+X+`$2$3$1`+_A+`$2box$3`)+e}break;case 5936:switch(MA(e,t+11)){case 114:return X+e+_A+Z(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return X+e+_A+Z(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return X+e+_A+Z(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return X+e+_A+e+e}return e}var Cj=function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xA:e.return=Sj(e.value,e.length);break;case CA:return fj([GA(e,{value:Z(e.value,`@`,`@`+X)})],r);case bA:if(e.length)return LA(e.props,function(t){switch(AA(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return fj([GA(e,{props:[Z(t,/:(read-\w+)/,`:`+vA+`$1`)]})],r);case`::placeholder`:return fj([GA(e,{props:[Z(t,/:(plac\w+)/,`:`+X+`input-$1`)]}),GA(e,{props:[Z(t,/:(plac\w+)/,`:`+vA+`$1`)]}),GA(e,{props:[Z(t,/:(plac\w+)/,_A+`input-$1`)]})],r)}return``})}},wj=[Cj],Tj=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){var t=e.getAttribute(`data-emotion`);t.indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||wj,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[bj,xj],l,u=[pj,hj(function(e){l.insert(e)})],d=mj(c.concat(r,u)),f=function(e){return fj(sj(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new gA({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},Ej=M((exports=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}exports.AsyncMode=l,exports.ConcurrentMode=u,exports.ContextConsumer=c,exports.ContextProvider=s,exports.Element=n,exports.ForwardRef=d,exports.Fragment=i,exports.Lazy=h,exports.Memo=m,exports.Portal=r,exports.Profiler=o,exports.StrictMode=a,exports.Suspense=f,exports.isAsyncMode=function(e){return x(e)||b(e)===l},exports.isConcurrentMode=x,exports.isContextConsumer=function(e){return b(e)===c},exports.isContextProvider=function(e){return b(e)===s},exports.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},exports.isForwardRef=function(e){return b(e)===d},exports.isFragment=function(e){return b(e)===i},exports.isLazy=function(e){return b(e)===h},exports.isMemo=function(e){return b(e)===m},exports.isPortal=function(e){return b(e)===r},exports.isProfiler=function(e){return b(e)===o},exports.isStrictMode=function(e){return b(e)===a},exports.isSuspense=function(e){return b(e)===f},exports.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},exports.typeOf=b})),Dj=M(((exports,t)=>{t.exports=Ej()})),Oj=M(((exports,t)=>{var n=Dj(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),kj=!0;function Aj(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var jj=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||kj===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Mj=function(e,t,n){jj(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function Nj(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Pj={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};US();var Fj=!1,Ij=/[A-Z]|^ms/g,Lj=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rj=function(e){return e.charCodeAt(1)===45},zj=function(e){return e!=null&&typeof e!=`boolean`},Bj=HS(function(e){return Rj(e)?e:e.replace(Ij,`-$&`).toLowerCase()}),Vj=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(Lj,function(e,t,n){return Kj={name:t,styles:n,next:Kj},t})}return Pj[e]!==1&&!Rj(e)&&typeof t==`number`&&t!==0?t+`px`:t},Hj=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function Uj(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Kj={name:i.name,styles:i.styles,next:Kj},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Kj={name:o.name,styles:o.styles,next:Kj},o=o.next;var s=a.styles+`;`;return s}return Wj(e,t,n);case`function`:if(e!==void 0){var c=Kj,l=n(e);return Kj=c,Uj(e,t,l)}break}var u=n;if(t==null)return u;var d=t[u];return d===void 0?u:d}function Wj(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Uj(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:zj(s)&&(r+=Bj(a)+`:`+Vj(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&Fj)throw Error(Hj);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)zj(o[c])&&(r+=Bj(a)+`:`+Vj(a,o[c])+`;`);else{var l=Uj(e,t,o);switch(a){case`animation`:case`animationName`:r+=Bj(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var Gj=/label:\s*([^\s;{]+)\s*(;|$)/g,Kj;function qj(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Kj=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=Uj(n,t,a);else{var o=a;i+=o[0]}for(var s=1;s<e.length;s++)if(i+=Uj(n,t,e[s]),r){var c=a;i+=c[s]}Gj.lastIndex=0;for(var l=``,u;(u=Gj.exec(i))!==null;)l+=`-`+u[1];var d=Nj(i)+l;return{name:d,styles:i,next:Kj}}var Jj=function(e){return e()},Yj=e.useInsertionEffect?e.useInsertionEffect:!1,Xj=Yj||Jj;Yj||e.useLayoutEffect;var Zj=!1,Qj=e.createContext(typeof HTMLElement<`u`?Tj({key:`css`}):null);Qj.Provider;var $j=function(e){return c(function(t,n){var r=d(Qj);return e(t,r,n)})},eM=e.createContext({}),tM={}.hasOwnProperty,nM=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,rM=function(e,t){var n={};for(var r in t)tM.call(t,r)&&(n[r]=t[r]);return n[nM]=e,n},iM=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return jj(t,n,r),Xj(function(){return Mj(t,n,r)}),null},aM=$j(function(t,n,r){var i=t.css;typeof i==`string`&&n.registered[i]!==void 0&&(i=n.registered[i]);var a=t[nM],o=[i],s=``;typeof t.className==`string`?s=Aj(n.registered,o,t.className):t.className!=null&&(s=t.className+` `);var c=qj(o,void 0,e.useContext(eM));s+=n.key+`-`+c.name;var l={};for(var u in t)tM.call(t,u)&&u!==`css`&&u!==nM&&!Zj&&(l[u]=t[u]);return l.className=s,r&&(l.ref=r),e.createElement(e.Fragment,null,e.createElement(iM,{cache:n,serialized:c,isStringTag:typeof a==`string`}),e.createElement(a,l))}),oM=aM;Oj();var Q=function(t,n){var r=arguments;if(n==null||!tM.call(n,`css`))return e.createElement.apply(void 0,r);var i=r.length,a=Array(i);a[0]=oM,a[1]=rM(t,n);for(var o=2;o<i;o++)a[o]=r[o];return e.createElement.apply(null,a)};(function(e){var t;(function(e){})(t||=e.JSX||={})})(Q||={});function sM(){var e=[...arguments];return qj(e)}function cM(){var e=sM.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}function lM(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function uM(e){let t=fd(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Xu(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ru(n)!==a||ru(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function dM(e){return Yu(e)?e:e.contextElement}function fM(e){let t=dM(e);if(!Xu(t))return au(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=uM(t),o=(a?ru(n.width):n.width)/r,s=(a?ru(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const pM=au(0);function mM(e){let t=Ku(e);return!ld()||!t.visualViewport?pM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ku(e)?!1:t}function gM(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=dM(e),o=au(1);t&&(r?Yu(r)&&(o=fM(r)):o=fM(e));let s=hM(a,n,r)?mM(a):au(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Ku(a),t=r&&Yu(r)?Ku(r):r,n=e,i=n.frameElement;for(;i&&r&&t!==n;){let e=fM(i),t=i.getBoundingClientRect(),r=fd(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ku(i),i=n.frameElement}}return ku({width:u,height:d,x:c,y:l})}const _M=[`:popover-open`,`:modal`];function vM(e){return _M.some(t=>{try{return e.matches(t)}catch{return!1}})}function yM(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=qu(r),s=t?vM(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=au(1),u=au(0),d=Xu(r);if((d||!d&&!a)&&((Gu(r)!==`body`||$u(o))&&(c=pd(r)),Xu(r))){let e=gM(r);l=fM(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function bM(e){return Array.from(e.getClientRects())}function xM(e){return gM(qu(e)).left+pd(e).scrollLeft}function SM(e){let t=qu(e),n=pd(e),r=e.ownerDocument.body,i=nu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=nu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+xM(e),s=-n.scrollTop;return fd(r).direction===`rtl`&&(o+=nu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function CM(e,t){let n=Ku(e),r=qu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=ld();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}function wM(e,t){let n=gM(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Xu(e)?fM(e):au(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,l=r*a.y;return{width:o,height:s,x:c,y:l}}function TM(e,t,n){let r;if(t===`viewport`)r=CM(e,n);else if(t===`document`)r=SM(qu(e));else if(Yu(t))r=wM(t,n);else{let n=mM(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return ku(r)}function EM(e,t){let n=md(e);return n===t||!Yu(n)||dd(n)?!1:fd(n).position===`fixed`||EM(n,t)}function DM(e,t){let n=t.get(e);if(n)return n;let r=gd(e,[],!1).filter(e=>Yu(e)&&Gu(e)!==`body`),i=null,a=fd(e).position===`fixed`,o=a?md(e):e;for(;Yu(o)&&!dd(o);){let t=fd(o),n=sd(o);!n&&t.position===`fixed`&&(i=null);let s=a?!n&&!i:!n&&t.position===`static`&&!!i&&[`absolute`,`fixed`].includes(i.position)||$u(o)&&!n&&EM(e,o);s?r=r.filter(e=>e!==o):i=t,o=md(o)}return t.set(e,r),r}function OM(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=n===`clippingAncestors`?DM(t,this._c):[].concat(n),o=[...a,r],s=o[0],c=o.reduce((e,n)=>{let r=TM(t,n,i);return e.top=nu(r.top,e.top),e.right=tu(r.right,e.right),e.bottom=tu(r.bottom,e.bottom),e.left=nu(r.left,e.left),e},TM(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kM(e){let{width:t,height:n}=uM(e);return{width:t,height:n}}function AM(e,t,n){let r=Xu(t),i=qu(t),a=n===`fixed`,o=gM(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=au(0);if(r||!r&&!a)if((Gu(t)!==`body`||$u(i))&&(s=pd(t)),r){let e=gM(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=xM(i));let l=o.left+s.scrollLeft-c.x,u=o.top+s.scrollTop-c.y;return{x:l,y:u,width:o.width,height:o.height}}function jM(e,t){return!Xu(e)||fd(e).position===`fixed`?null:t?t(e):e.offsetParent}function MM(e,t){let n=Ku(e);if(!Xu(e)||vM(e))return n;let r=jM(e,t);for(;r&&td(r)&&fd(r).position===`static`;)r=jM(r,t);return r&&(Gu(r)===`html`||Gu(r)===`body`&&fd(r).position===`static`&&!sd(r))?n:r||cd(e)||n}const NM=async function(e){let t=this.getOffsetParent||MM,n=this.getDimensions;return{reference:AM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function PM(e){return fd(e).direction===`rtl`}const FM={convertOffsetParentRelativeRectToViewportRelativeRect:yM,getDocumentElement:qu,getClippingRect:OM,getOffsetParent:MM,getElementRects:NM,getClientRects:bM,getDimensions:kM,getScale:fM,isElement:Yu,isRTL:PM};function IM(e,t){let n=null,r,i=qu(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let{left:l,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;let p=iu(u),m=iu(i.clientWidth-(l+d)),h=iu(i.clientHeight-(u+f)),g=iu(l),_=-p+`px `+-m+`px `+-h+`px `+-g+`px`,v={rootMargin:_,threshold:nu(0,tu(1,c))||1},y=!0;function b(e){let t=e[0].intersectionRatio;if(t!==c){if(!y)return o();t?o(!1,t):r=setTimeout(()=>{o(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function LM(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=dM(e),u=i||a?[...l?gd(l):[],...gd(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?IM(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?gM(e):null;c&&g();function g(){let t=gM(e);h&&(t.x!==h.x||t.y!==h.y||t.width!==h.width||t.height!==h.height)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const RM=Vu,zM=Pu,BM=Nu,VM=(e,t,n)=>{let r=new Map,i={platform:FM,...n},a={...i.platform,_c:r};return ju(e,t,{...i,platform:a})};var HM=h,UM=[`className`,`clearValue`,`cx`,`getStyles`,`getClassNames`,`getValue`,`hasValue`,`isMulti`,`isRtl`,`options`,`selectOption`,`selectProps`,`setValue`,`theme`],WM=function(){};function GM(e,t){return t?t[0]===`-`?e+t:e+`__`+t:e}function KM(e,t){var n=[...arguments].slice(2),r=[].concat(n);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push(`${GM(e,i)}`);return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(` `)}var qM=function(e){return fN(e)?e.filter(Boolean):Rk(e)===`object`&&e!==null?[e]:[]},JM=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=Xk(e,UM);return J({},t)},YM=function(e,t,n){var r=e.cx,i=e.getStyles,a=e.getClassNames,o=e.className;return{css:i(t,e),className:r(n??{},a(t,e),o)}};function XM(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ZM(e){return XM(e)?window.innerHeight:e.clientHeight}function QM(e){return XM(e)?window.pageYOffset:e.scrollTop}function $M(e,t){if(XM(e)){window.scrollTo(0,t);return}e.scrollTop=t}function eN(e){var t=getComputedStyle(e),n=t.position===`absolute`,r=/(auto|scroll)/;if(t.position===`fixed`)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position===`static`)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function tN(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function nN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:WM,i=QM(e),a=t-i,o=10,s=0;function c(){s+=o;var t=tN(s,i,a,n);$M(e,t),s<n?window.requestAnimationFrame(c):r(e)}c()}function rN(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?$M(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&$M(e,Math.max(t.offsetTop-i,0))}function iN(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function aN(){try{return document.createEvent(`TouchEvent`),!0}catch{return!1}}function oN(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var sN=!1,cN={get passive(){return sN=!0}},lN=typeof window<`u`?window:{};lN.addEventListener&&lN.removeEventListener&&(lN.addEventListener(`p`,WM,cN),lN.removeEventListener(`p`,WM,!1));var uN=sN;function dN(e){return e!=null}function fN(e){return Array.isArray(e)}function pN(e,t,n){return e?t:n}function mN(e){return e}function hN(e){return e}var gN=function(e){var t=[...arguments].slice(1),n=Object.entries(e).filter(function(e){var n=Jk(e,1),r=n[0];return!t.includes(r)});return n.reduce(function(e,t){var n=Jk(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},_N=[`children`,`innerProps`],vN=[`children`,`innerProps`];function yN(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,c=eN(n),l={placement:`bottom`,maxHeight:t};if(!n||!n.offsetParent)return l;var u=c.getBoundingClientRect(),d=u.height,f=n.getBoundingClientRect(),p=f.bottom,m=f.height,h=f.top,g=n.offsetParent.getBoundingClientRect(),_=g.top,v=o?window.innerHeight:ZM(c),y=QM(c),b=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),S=_-x,C=v-h,w=S+y,T=d-y-h,E=p-v+y+b,D=y+h-x,O=160;switch(i){case`auto`:case`bottom`:if(C>=m)return{placement:`bottom`,maxHeight:t};if(T>=m&&!o)return a&&nN(c,E,O),{placement:`bottom`,maxHeight:t};if(!o&&T>=r||o&&C>=r){a&&nN(c,E,O);var k=o?C-b:T-b;return{placement:`bottom`,maxHeight:k}}if(i===`auto`||o){var A=t,j=o?S:w;return j>=r&&(A=Math.min(j-b-s,t)),{placement:`top`,maxHeight:A}}if(i===`bottom`)return a&&$M(c,E),{placement:`bottom`,maxHeight:t};break;case`top`:if(S>=m)return{placement:`top`,maxHeight:t};if(w>=m&&!o)return a&&nN(c,D,O),{placement:`top`,maxHeight:t};if(!o&&w>=r||o&&S>=r){var M=t;return(!o&&w>=r||o&&S>=r)&&(M=o?S-x:w-x),a&&nN(c,D,O),{placement:`top`,maxHeight:M}}return{placement:`bottom`,maxHeight:t};default:throw Error(`Invalid placement provided "${i}".`)}return l}function bN(e){var t={bottom:`top`,top:`bottom`};return e?t[e]:`bottom`}var xN=function(e){return e===`auto`?`bottom`:e},SN=function(e,t){var n,r=e.placement,i=e.theme,a=i.borderRadius,o=i.spacing,s=i.colors;return J((n={label:`menu`},Vk(n,bN(r),`100%`),Vk(n,`position`,`absolute`),Vk(n,`width`,`100%`),Vk(n,`zIndex`,1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:`0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)`,marginBottom:o.menuGutter,marginTop:o.menuGutter})},CN=o(null),wN=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,c=d(CN)||{},l=c.setPortalPlacement,u=_(null),f=v(r),p=Jk(f,2),m=p[0],h=p[1],g=v(null),y=Jk(g,2),b=y[0],x=y[1],S=s.spacing.controlHeight;return HM(function(){var e=u.current;if(e){var t=a===`fixed`,s=o&&!t,c=yN({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s,isFixedPosition:t,controlHeight:S});h(c.maxHeight),x(c.placement),l?.(c.placement)}},[r,i,a,o,n,l,S]),t({ref:u,placerProps:J(J({},e),{},{placement:b||xN(i),maxHeight:m})})},TN=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Q(`div`,Y({},YM(e,`menu`,{menu:!0}),{ref:n},r),t)},EN=TN,DN=function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return J({maxHeight:n,overflowY:`auto`,position:`relative`,WebkitOverflowScrolling:`touch`},t?{}:{paddingBottom:r,paddingTop:r})},ON=function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return Q(`div`,Y({},YM(e,`menuList`,{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},kN=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return J({textAlign:`center`},t?{}:{color:i.neutral40,padding:`${r*2}px ${r*3}px`})},AN=kN,jN=kN,MN=function(e){var t=e.children,n=t===void 0?`No options`:t,r=e.innerProps,i=Xk(e,_N);return Q(`div`,Y({},YM(J(J({},i),{},{children:n,innerProps:r}),`noOptionsMessage`,{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},NN=function(e){var t=e.children,n=t===void 0?`Loading...`:t,r=e.innerProps,i=Xk(e,vN);return Q(`div`,Y({},YM(J(J({},i),{},{children:n,innerProps:r}),`loadingMessage`,{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},PN=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},FN=function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,o=e.menuPosition,s=_(null),c=_(null),l=v(xN(a)),d=Jk(l,2),f=d[0],p=d[1],m=g(function(){return{setPortalPlacement:p}},[]),h=v(null),y=Jk(h,2),b=y[0],x=y[1],S=u(function(){if(r){var e=iN(r),t=o===`fixed`?0:window.pageYOffset,n=e[f]+t;(n!==b?.offset||e.left!==b?.rect.left||e.width!==b?.rect.width)&&x({offset:n,rect:e})}},[r,o,f,b?.offset,b?.rect.left,b?.rect.width]);HM(function(){S()},[S]);var C=u(function(){typeof c.current==`function`&&(c.current(),c.current=null),r&&s.current&&(c.current=LM(r,s.current,S,{elementResize:`ResizeObserver`in window}))},[r,S]);HM(function(){C()},[C]);var T=u(function(e){s.current=e,C()},[C]);if(!t&&o!==`fixed`||!b)return null;var E=Q(`div`,Y({ref:T},YM(J(J({},e),{},{offset:b.offset,position:o,rect:b.rect}),`menuPortal`,{"menu-portal":!0}),i),n);return Q(CN.Provider,{value:m},t?w(E,t):E)},IN=function(e){var t=e.isDisabled,n=e.isRtl;return{label:`container`,direction:n?`rtl`:void 0,pointerEvents:t?`none`:void 0,position:`relative`}},LN=function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return Q(`div`,Y({},YM(e,`container`,{"--is-disabled":r,"--is-rtl":i}),n),t)},RN=function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return J({alignItems:`center`,display:r&&i&&a?`flex`:`grid`,flex:1,flexWrap:`wrap`,WebkitOverflowScrolling:`touch`,position:`relative`,overflow:`hidden`},t?{}:{padding:`${n.baseUnit/2}px ${n.baseUnit*2}px`})},zN=function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return Q(`div`,Y({},YM(e,`valueContainer`,{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)},BN=function(){return{alignItems:`center`,alignSelf:`stretch`,display:`flex`,flexShrink:0}},VN=function(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({},YM(e,`indicatorsContainer`,{indicators:!0}),n),t)},HN,UN=[`size`],WN=[`innerProps`,`isRtl`,`size`],GN={name:`8mmkcg`,styles:`display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0`},KN=function(e){var t=e.size,n=Xk(e,UN);return Q(`svg`,Y({height:t,width:t,viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,css:GN},n))},qN=function(e){return Q(KN,Y({size:20},e),Q(`path`,{d:`M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z`}))},JN=function(e){return Q(KN,Y({size:20},e),Q(`path`,{d:`M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z`}))},YN=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return J({label:`indicatorContainer`,display:`flex`,transition:`color 150ms`},t?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},XN=YN,ZN=function(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({},YM(e,`dropdownIndicator`,{indicator:!0,"dropdown-indicator":!0}),n),t||Q(JN,null))},QN=YN,$N=function(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({},YM(e,`clearIndicator`,{indicator:!0,"clear-indicator":!0}),n),t||Q(qN,null))},eP=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return J({label:`indicatorSeparator`,alignSelf:`stretch`,width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},tP=function(e){var t=e.innerProps;return Q(`span`,Y({},t,YM(e,`indicatorSeparator`,{"indicator-separator":!0})))},nP=cM(HN||=lM([`
1264
1264
  0%, 80%, 100% { opacity: 0; }
1265
1265
  40% { opacity: 1; }
1266
- `])),eP=function(e,t){var n=e.isFocused,r=e.size,i=e.theme,a=i.colors,o=i.spacing.baseUnit;return J({label:`loadingIndicator`,display:`flex`,transition:`color 150ms`,alignSelf:`center`,fontSize:r,lineHeight:1,marginRight:r,textAlign:`center`,verticalAlign:`middle`},t?{}:{color:n?a.neutral60:a.neutral20,padding:o*2})},tP=function(e){var t=e.delay,n=e.offset;return Q(`span`,{css:iM({animation:`${$N} 1s ease-in-out ${t}ms infinite;`,backgroundColor:`currentColor`,borderRadius:`1em`,display:`inline-block`,marginLeft:n?`1em`:void 0,height:`1em`,verticalAlign:`top`,width:`1em`},``,``)})},nP=function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=r===void 0?4:r,a=qk(e,VN);return Q(`div`,Y({},KM(J(J({},a),{},{innerProps:t,isRtl:n,size:i}),`loadingIndicator`,{indicator:!0,"loading-indicator":!0}),t),Q(tP,{delay:0,offset:n}),Q(tP,{delay:160,offset:!0}),Q(tP,{delay:320,offset:!n}))},rP=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,a=i.colors,o=i.borderRadius,s=i.spacing;return J({label:`control`,alignItems:`center`,cursor:`default`,display:`flex`,flexWrap:`wrap`,justifyContent:`space-between`,minHeight:s.controlHeight,outline:`0 !important`,position:`relative`,transition:`all 100ms`},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:o,borderStyle:`solid`,borderWidth:1,boxShadow:r?`0 0 0 1px ${a.primary}`:void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},iP=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,a=e.innerProps,o=e.menuIsOpen;return Q(`div`,Y({ref:i},KM(e,`control`,{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":o}),a,{"aria-disabled":n||void 0}),t)},aP=iP,oP=[`data`],sP=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},cP=function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,a=e.Heading,o=e.headingProps,s=e.innerProps,c=e.label,l=e.theme,u=e.selectProps;return Q(`div`,Y({},KM(e,`group`,{group:!0}),s),Q(a,Y({},o,{selectProps:u,theme:l,getStyles:r,getClassNames:i,cx:n}),c),Q(`div`,null,t))},lP=function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return J({label:`group`,cursor:`default`,display:`block`},t?{}:{color:r.neutral40,fontSize:`75%`,fontWeight:500,marginBottom:`0.25em`,paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:`uppercase`})},uP=function(e){var t=GM(e);t.data;var n=qk(t,oP);return Q(`div`,Y({},KM(e,`groupHeading`,{"group-heading":!0}),n))},dP=cP,fP=[`innerRef`,`isDisabled`,`isHidden`,`inputClassName`],pP=function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,a=i.spacing,o=i.colors;return J(J({visibility:n?`hidden`:`visible`,transform:r?`translateZ(0)`:``},hP),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:o.neutral80})},mP={gridArea:`1 / 2`,font:`inherit`,minWidth:`2px`,border:0,margin:0,outline:0,padding:0},hP={flex:`1 1 auto`,display:`inline-grid`,gridArea:`1 / 1 / 2 / 3`,gridTemplateColumns:`0 min-content`,"&:after":J({content:`attr(data-value) " "`,visibility:`hidden`,whiteSpace:`pre`},mP)},gP=function(e){return J({label:`input`,color:`inherit`,background:0,opacity:e?0:1,width:`100%`},mP)},_P=function(e){var t=e.cx,n=e.value,r=GM(e),i=r.innerRef,a=r.isDisabled,o=r.isHidden,s=r.inputClassName,c=qk(r,fP);return Q(`div`,Y({},KM(e,`input`,{"input-container":!0}),{"data-value":n||``}),Q(`input`,Y({className:t({input:!0},s),ref:i,style:gP(o),disabled:a},c)))},vP=_P,yP=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors;return J({label:`multiValue`,display:`flex`,minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},bP=function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return J({overflow:`hidden`,textOverflow:a||a===void 0?`ellipsis`:void 0,whiteSpace:`nowrap`},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:`85%`,padding:3,paddingLeft:6})},xP=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors,o=e.isFocused;return J({alignItems:`center`,display:`flex`},t?{}:{borderRadius:i/2,backgroundColor:o?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},SP=function(e){var t=e.children,n=e.innerProps;return Q(`div`,n,t)},CP=SP,wP=SP;function TP(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({role:`button`},n),t||Q(WN,{size:14}))}var EP=function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,a=e.isDisabled,o=e.removeProps,s=e.selectProps,c=n.Container,l=n.Label,u=n.Remove;return Q(c,{data:r,innerProps:J(J({},KM(e,`multiValue`,{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},Q(l,{data:r,innerProps:J({},KM(e,`multiValueLabel`,{"multi-value__label":!0})),selectProps:s},t),Q(u,{data:r,innerProps:J(J({},KM(e,`multiValueRemove`,{"multi-value__remove":!0})),{},{"aria-label":`Remove ${t||`option`}`},o),selectProps:s}))},DP=EP,OP=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.theme,o=a.spacing,s=a.colors;return J({label:`option`,cursor:`default`,display:`block`,fontSize:`inherit`,width:`100%`,userSelect:`none`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`},t?{}:{backgroundColor:i?s.primary:r?s.primary25:`transparent`,color:n?s.neutral20:i?s.neutral0:`inherit`,padding:`${o.baseUnit*2}px ${o.baseUnit*3}px`,":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},kP=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.innerRef,o=e.innerProps;return Q(`div`,Y({},KM(e,`option`,{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:a,"aria-disabled":n},o),t)},AP=kP,jP=function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return J({label:`placeholder`,gridArea:`1 / 1 / 2 / 3`},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},MP=function(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({},KM(e,`placeholder`,{placeholder:!0}),n),t)},NP=MP,PP=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,a=r.colors;return J({label:`singleValue`,gridArea:`1 / 1 / 2 / 3`,maxWidth:`100%`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},FP=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Q(`div`,Y({},KM(e,`singleValue`,{"single-value":!0,"single-value--is-disabled":n}),r),t)},IP=FP,LP={ClearIndicator:XN,Control:aP,DropdownIndicator:JN,DownChevron:GN,CrossIcon:WN,Group:dP,GroupHeading:uP,IndicatorsContainer:RN,IndicatorSeparator:QN,Input:vP,LoadingIndicator:nP,Menu:CN,MenuList:TN,MenuPortal:MN,LoadingMessage:AN,NoOptionsMessage:kN,MultiValue:DP,MultiValueContainer:CP,MultiValueLabel:wP,MultiValueRemove:TP,Option:AP,Placeholder:NP,SelectContainer:PN,SingleValue:IP,ValueContainer:IN},RP=function(e){return J(J({},LP),e.components)},zP=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function BP(e,t){return!!(e===t||zP(e)&&zP(t))}function VP(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!BP(e[n],t[n]))return!1;return!0}function HP(e,t){t===void 0&&(t=VP);var n=null;function r(){var r=[...arguments];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}for(var UP={name:`7pg0cj-a11yText`,styles:`label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap`},WP=function(e){return Q(`span`,Y({css:UP},e))},GP=WP,KP={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,a=e.isInitialFocus;switch(i){case`menu`:return`Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu${r?`, press Tab to select the option and exit the menu`:``}.`;case`input`:return a?`${e[`aria-label`]||`Select`} is focused ${t?`,type to refine list`:``}, press Down to open the menu, ${n?` press left to focus selected values`:``}`:``;case`value`:return`Use left and right to toggle between focused values, press Backspace to remove the currently focused value`;default:return``}},onChange:function(e){var t=e.action,n=e.label,r=n===void 0?``:n,i=e.labels,a=e.isDisabled;switch(t){case`deselect-option`:case`pop-value`:case`remove-value`:return`option ${r}, deselected.`;case`clear`:return`All selected options have been cleared.`;case`initial-input-focus`:return`option${i.length>1?`s`:``} ${i.join(`,`)}, selected.`;case`select-option`:return a?`option ${r} is disabled. Select another option.`:`option ${r}, selected.`;default:return``}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,a=i===void 0?``:i,o=e.selectValue,s=e.isDisabled,c=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?`${e.indexOf(t)+1} of ${e.length}`:``};if(t===`value`&&o)return`value ${a} focused, ${u(o,n)}.`;if(t===`menu`&&l){var d=s?` disabled`:``,f=`${c?` selected`:``}${d}`;return`${a}${f}, ${u(r,n)}.`}return``},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return`${n}${t?` for search term `+t:``}.`}},qP=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,a=e.focusableOptions,o=e.isFocused,s=e.selectValue,c=e.selectProps,l=e.id,u=e.isAppleDevice,d=c.ariaLiveMessages,f=c.getOptionLabel,p=c.inputValue,m=c.isMulti,h=c.isOptionDisabled,_=c.isSearchable,v=c.menuIsOpen,y=c.options,b=c.screenReaderStatus,x=c.tabSelectsValue,S=c.isLoading,C=c[`aria-label`],w=c[`aria-live`],T=g(function(){return J(J({},KP),d||{})},[d]),E=g(function(){var e=``;if(t&&T.onChange){var n=t.option,r=t.options,i=t.removedValue,a=t.removedValues,o=t.value,c=function(e){return Array.isArray(e)?null:e},l=i||n||c(o),u=l?f(l):``,d=r||a||void 0,p=d?d.map(f):[],m=J({isDisabled:l&&h(l,s),label:u,labels:p},t);e=T.onChange(m)}return e},[t,T,h,s,f]),D=g(function(){var e=``,t=n||r,i=!!(n&&s&&s.includes(n));if(t&&T.onFocus){var o={focused:t,label:f(t),isDisabled:h(t,s),isSelected:i,options:a,context:t===n?`menu`:`value`,selectValue:s,isAppleDevice:u};e=T.onFocus(o)}return e},[n,r,f,h,T,a,s,u]),O=g(function(){var e=``;if(v&&y.length&&!S&&T.onFilter){var t=b({count:a.length});e=T.onFilter({inputValue:p,resultsMessage:t})}return e},[a,p,v,T,y,b,S]),k=t?.action===`initial-input-focus`,A=g(function(){var e=``;if(T.guidance){var t=r?`value`:v?`menu`:`input`;e=T.guidance({"aria-label":C,context:t,isDisabled:n&&h(n,s),isMulti:m,isSearchable:_,tabSelectsValue:x,isInitialFocus:k})}return e},[C,n,r,m,h,_,v,T,s,x,k]),j=Q(i,null,Q(`span`,{id:`aria-selection`},E),Q(`span`,{id:`aria-focused`},D),Q(`span`,{id:`aria-results`},O),Q(`span`,{id:`aria-guidance`},A));return Q(i,null,Q(GP,{id:l},k&&j),Q(GP,{"aria-live":w,"aria-atomic":`false`,"aria-relevant":`additions text`,role:`log`},o&&!k&&j))},JP=qP,YP=[{base:`A`,letters:`AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ`},{base:`AA`,letters:`Ꜳ`},{base:`AE`,letters:`ÆǼǢ`},{base:`AO`,letters:`Ꜵ`},{base:`AU`,letters:`Ꜷ`},{base:`AV`,letters:`ꜸꜺ`},{base:`AY`,letters:`Ꜽ`},{base:`B`,letters:`BⒷBḂḄḆɃƂƁ`},{base:`C`,letters:`CⒸCĆĈĊČÇḈƇȻꜾ`},{base:`D`,letters:`DⒹDḊĎḌḐḒḎĐƋƊƉꝹ`},{base:`DZ`,letters:`DZDŽ`},{base:`Dz`,letters:`DzDž`},{base:`E`,letters:`EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ`},{base:`F`,letters:`FⒻFḞƑꝻ`},{base:`G`,letters:`GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ`},{base:`H`,letters:`HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ`},{base:`I`,letters:`IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ`},{base:`J`,letters:`JⒿJĴɈ`},{base:`K`,letters:`KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ`},{base:`L`,letters:`LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ`},{base:`LJ`,letters:`LJ`},{base:`Lj`,letters:`Lj`},{base:`M`,letters:`MⓂMḾṀṂⱮƜ`},{base:`N`,letters:`NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ`},{base:`NJ`,letters:`NJ`},{base:`Nj`,letters:`Nj`},{base:`O`,letters:`OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ`},{base:`OI`,letters:`Ƣ`},{base:`OO`,letters:`Ꝏ`},{base:`OU`,letters:`Ȣ`},{base:`P`,letters:`PⓅPṔṖƤⱣꝐꝒꝔ`},{base:`Q`,letters:`QⓆQꝖꝘɊ`},{base:`R`,letters:`RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ`},{base:`S`,letters:`SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ`},{base:`T`,letters:`TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ`},{base:`TZ`,letters:`Ꜩ`},{base:`U`,letters:`UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ`},{base:`V`,letters:`VⓋVṼṾƲꝞɅ`},{base:`VY`,letters:`Ꝡ`},{base:`W`,letters:`WⓌWẀẂŴẆẄẈⱲ`},{base:`X`,letters:`XⓍXẊẌ`},{base:`Y`,letters:`YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ`},{base:`Z`,letters:`ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ`},{base:`a`,letters:`aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ`},{base:`aa`,letters:`ꜳ`},{base:`ae`,letters:`æǽǣ`},{base:`ao`,letters:`ꜵ`},{base:`au`,letters:`ꜷ`},{base:`av`,letters:`ꜹꜻ`},{base:`ay`,letters:`ꜽ`},{base:`b`,letters:`bⓑbḃḅḇƀƃɓ`},{base:`c`,letters:`cⓒcćĉċčçḉƈȼꜿↄ`},{base:`d`,letters:`dⓓdḋďḍḑḓḏđƌɖɗꝺ`},{base:`dz`,letters:`dzdž`},{base:`e`,letters:`eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ`},{base:`f`,letters:`fⓕfḟƒꝼ`},{base:`g`,letters:`gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ`},{base:`h`,letters:`hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ`},{base:`hv`,letters:`ƕ`},{base:`i`,letters:`iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı`},{base:`j`,letters:`jⓙjĵǰɉ`},{base:`k`,letters:`kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ`},{base:`l`,letters:`lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ`},{base:`lj`,letters:`lj`},{base:`m`,letters:`mⓜmḿṁṃɱɯ`},{base:`n`,letters:`nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ`},{base:`nj`,letters:`nj`},{base:`o`,letters:`oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ`},{base:`oi`,letters:`ƣ`},{base:`ou`,letters:`ȣ`},{base:`oo`,letters:`ꝏ`},{base:`p`,letters:`pⓟpṕṗƥᵽꝑꝓꝕ`},{base:`q`,letters:`qⓠqɋꝗꝙ`},{base:`r`,letters:`rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ`},{base:`s`,letters:`sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ`},{base:`t`,letters:`tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ`},{base:`tz`,letters:`ꜩ`},{base:`u`,letters:`uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ`},{base:`v`,letters:`vⓥvṽṿʋꝟʌ`},{base:`vy`,letters:`ꝡ`},{base:`w`,letters:`wⓦwẁẃŵẇẅẘẉⱳ`},{base:`x`,letters:`xⓧxẋẍ`},{base:`y`,letters:`yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ`},{base:`z`,letters:`zⓩzźẑżžẓẕƶȥɀⱬꝣ`}],XP=RegExp(`[`+YP.map(function(e){return e.letters}).join(``)+`]`,`g`),ZP={},QP=0;QP<YP.length;QP++)for(var $P=YP[QP],eF=0;eF<$P.letters.length;eF++)ZP[$P.letters[eF]]=$P.base;var tF=function(e){return e.replace(XP,function(e){return ZP[e]})},nF=HP(tF),rF=function(e){return e.replace(/^\s+|\s+$/g,``)},iF=function(e){return`${e.label} ${e.value}`},aF=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=J({ignoreCase:!0,ignoreAccents:!0,stringify:iF,trim:!0,matchFrom:`any`},e),i=r.ignoreCase,a=r.ignoreAccents,o=r.stringify,s=r.trim,c=r.matchFrom,l=s?rF(n):n,u=s?rF(o(t)):o(t);return i&&(l=l.toLowerCase(),u=u.toLowerCase()),a&&(l=nF(l),u=tF(u)),c===`start`?u.substr(0,l.length)===l:u.indexOf(l)>-1}},oF=[`innerRef`];function sF(e){var t=e.innerRef,n=qk(e,oF),r=pN(n,`onExited`,`in`,`enter`,`exit`,`appear`);return Q(`input`,Y({ref:t},r,{css:iM({label:`dummyInput`,background:0,border:0,caretColor:`transparent`,fontSize:`inherit`,gridArea:`1 / 1 / 2 / 3`,outline:0,padding:0,width:1,color:`transparent`,left:-100,opacity:0,position:`relative`,transform:`scale(.01)`},``,``)}))}var cF=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function lF(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=_(!1),s=_(!1),c=_(0),l=_(null),d=u(function(e,t){if(l.current!==null){var c=l.current,u=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=l.current,m=t>0,h=d-f-u,g=!1;h>t&&o.current&&(r&&r(e),o.current=!1),m&&s.current&&(a&&a(e),s.current=!1),m&&t>h?(n&&!o.current&&n(e),p.scrollTop=d,g=!0,o.current=!0):!m&&-t>u&&(i&&!s.current&&i(e),p.scrollTop=0,g=!0,s.current=!0),g&&cF(e)}},[n,r,i,a]),p=u(function(e){d(e,e.deltaY)},[d]),m=u(function(e){c.current=e.changedTouches[0].clientY},[]),h=u(function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)},[d]),g=u(function(e){if(e){var t=sN?{passive:!1}:!1;e.addEventListener(`wheel`,p,t),e.addEventListener(`touchstart`,m,t),e.addEventListener(`touchmove`,h,t)}},[h,m,p]),v=u(function(e){e&&(e.removeEventListener(`wheel`,p,!1),e.removeEventListener(`touchstart`,m,!1),e.removeEventListener(`touchmove`,h,!1))},[h,m,p]);return f(function(){if(t){var e=l.current;return g(e),function(){v(e)}}},[t,g,v]),function(e){l.current=e}}var uF=[`boxSizing`,`height`,`overflow`,`paddingRight`,`position`],dF={boxSizing:`border-box`,overflow:`hidden`,position:`relative`,height:`100%`};function fF(e){e.cancelable&&e.preventDefault()}function pF(e){e.stopPropagation()}function mF(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function hF(){return`ontouchstart`in window||navigator.maxTouchPoints}var gF=!!(typeof window<`u`&&window.document&&window.document.createElement),_F=0,vF={capture:!1,passive:!1};function yF(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=_({}),a=_(null),o=u(function(e){if(gF){var t=document.body,n=t&&t.style;if(r&&uF.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&_F<1){var a=parseInt(i.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,s=window.innerWidth-o+a||0;Object.keys(dF).forEach(function(e){var t=dF[e];n&&(n[e]=t)}),n&&(n.paddingRight=`${s}px`)}t&&hF()&&(t.addEventListener(`touchmove`,fF,vF),e&&(e.addEventListener(`touchstart`,mF,vF),e.addEventListener(`touchmove`,pF,vF))),_F+=1}},[r]),s=u(function(e){if(gF){var t=document.body,n=t&&t.style;_F=Math.max(_F-1,0),r&&_F<1&&uF.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&hF()&&(t.removeEventListener(`touchmove`,fF,vF),e&&(e.removeEventListener(`touchstart`,mF,vF),e.removeEventListener(`touchmove`,pF,vF)))}},[r]);return f(function(){if(t){var e=a.current;return o(e),function(){s(e)}}},[t,o,s]),function(e){a.current=e}}var bF=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},xF={name:`1kfdb0e`,styles:`position:fixed;left:0;bottom:0;right:0;top:0`};function SF(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,a=r===void 0?!0:r,o=e.onBottomArrive,s=e.onBottomLeave,c=e.onTopArrive,l=e.onTopLeave,u=lF({isEnabled:a,onBottomArrive:o,onBottomLeave:s,onTopArrive:c,onTopLeave:l}),d=yF({isEnabled:n}),f=function(e){u(e),d(e)};return Q(i,null,n&&Q(`div`,{onClick:bF,css:xF}),t(f))}var CF={name:`1a0ro4n-requiredInput`,styles:`label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%`},wF=function(e){var t=e.name,n=e.onFocus;return Q(`input`,{required:!0,name:t,tabIndex:-1,"aria-hidden":`true`,onFocus:n,css:CF,value:``,onChange:function(){}})},TF=wF;function EF(e){var t;return typeof window<`u`&&window.navigator!=null?e.test((t=window.navigator.userAgentData)?.platform||window.navigator.platform):!1}function DF(){return EF(/^iPhone/i)}function OF(){return EF(/^Mac/i)}function kF(){return EF(/^iPad/i)||OF()&&navigator.maxTouchPoints>1}function AF(){return DF()||kF()}function jF(){return OF()||AF()}var MF=function(e){return e.label},NF=function(e){return e.label},PF=function(e){return e.value},FF=function(e){return!!e.isDisabled},IF={clearIndicator:YN,container:NN,control:rP,dropdownIndicator:qN,group:sP,groupHeading:lP,indicatorsContainer:LN,indicatorSeparator:ZN,input:pP,loadingIndicator:eP,loadingMessage:ON,menu:yN,menuList:wN,menuPortal:jN,multiValue:yP,multiValueLabel:bP,multiValueRemove:xP,noOptionsMessage:DN,option:OP,placeholder:jP,singleValue:PP,valueContainer:FN},LF={primary:`#2684FF`,primary75:`#4C9AFF`,primary50:`#B2D4FF`,primary25:`#DEEBFF`,danger:`#DE350B`,dangerLight:`#FFBDAD`,neutral0:`hsl(0, 0%, 100%)`,neutral5:`hsl(0, 0%, 95%)`,neutral10:`hsl(0, 0%, 90%)`,neutral20:`hsl(0, 0%, 80%)`,neutral30:`hsl(0, 0%, 70%)`,neutral40:`hsl(0, 0%, 60%)`,neutral50:`hsl(0, 0%, 50%)`,neutral60:`hsl(0, 0%, 40%)`,neutral70:`hsl(0, 0%, 30%)`,neutral80:`hsl(0, 0%, 20%)`,neutral90:`hsl(0, 0%, 10%)`},RF=4,zF=4,BF=38,VF=zF*2,HF={baseUnit:zF,controlHeight:BF,menuGutter:VF},UF={borderRadius:RF,colors:LF,spacing:HF},WF={"aria-live":`polite`,backspaceRemovesValue:!0,blurInputOnSelect:nN(),captureMenuScroll:!nN(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:aF(),formatGroupLabel:MF,getOptionLabel:NF,getOptionValue:PF,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:FF,loadingMessage:function(){return`Loading...`},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:`bottom`,menuPosition:`absolute`,menuShouldBlockScroll:!1,menuShouldScrollIntoView:!rN(),noOptionsMessage:function(){return`No options`},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:`Select...`,screenReaderStatus:function(e){var t=e.count;return`${t} result${t===1?``:`s`} available`},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function GF(e,t,n,r){var i=nI(e,t,n),a=rI(e,t,n),o=eI(e,t),s=tI(e,t);return{type:`option`,data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function KF(e,t){return e.options.map(function(n,r){if(`options`in n){var i=n.options.map(function(n,r){return GF(e,n,t,r)}).filter(function(t){return XF(e,t)});return i.length>0?{type:`group`,data:n,options:i,index:r}:void 0}var a=GF(e,n,t,r);return XF(e,a)?a:void 0}).filter(cN)}function qF(e){return e.reduce(function(e,t){return t.type===`group`?e.push.apply(e,lA(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function JF(e,t){return e.reduce(function(e,n){return n.type===`group`?e.push.apply(e,lA(n.options.map(function(e){return{data:e.data,id:`${t}-${n.index}-${e.index}`}}))):e.push({data:n.data,id:`${t}-${n.index}`}),e},[])}function YF(e,t){return qF(KF(e,t))}function XF(e,t){var n=e.inputValue,r=n===void 0?``:n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!aI(e)||!a)&&iI(e,{label:o,value:s,data:i},r)}function ZF(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function QF(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var $F=function(e,t){var n,r=(n=e.find(function(e){return e.data===t}))?.id;return r||null},eI=function(e,t){return e.getOptionLabel(t)},tI=function(e,t){return e.getOptionValue(t)};function nI(e,t,n){return typeof e.isOptionDisabled==`function`?e.isOptionDisabled(t,n):!1}function rI(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected==`function`)return e.isOptionSelected(t,n);var r=tI(e,t);return n.some(function(t){return tI(e,t)===r})}function iI(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var aI=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return t===void 0?n:t},oI=1,sI=function(t){eA(r,t);var n=aA(r);function r(e){var t;if(Xk(this,r),t=n.call(this,e),t.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:``},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=jF(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,a=i.closeMenuOnSelect,o=i.isMulti,s=i.inputValue;t.onInputChange(``,{action:`set-value`,prevInputValue:s}),a&&(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,a=n.name,o=t.state.selectValue,s=i&&t.isOptionSelected(e,o),c=t.isOptionDisabled(e,o);if(s){var l=t.getOptionValue(e);t.setValue(fN(o.filter(function(e){return t.getOptionValue(e)!==l})),`deselect-option`,e)}else if(!c)i?t.setValue(fN([].concat(lA(o),[e])),`select-option`,e):t.setValue(dN(e),`select-option`);else{t.ariaOnChange(dN(e),{action:`select-option`,option:e,name:a});return}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),a=r.filter(function(e){return t.getOptionValue(e)!==i}),o=uN(n,a,a[0]||null);t.onChange(o,{action:`remove-value`,removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(uN(t.props.isMulti,[],null),{action:`clear`,removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],i=n.slice(0,n.length-1),a=uN(e,i,i[0]||null);r&&t.onChange(a,{action:`pop-value`,removedValue:r})},t.getFocusedOptionId=function(e){return $F(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return JF(KF(t.props,t.state.selectValue),t.getElementId(`option`))},t.getValue=function(){return t.state.selectValue},t.cx=function(){var e=[...arguments];return UM.apply(void 0,[t.props.classNamePrefix].concat(e))},t.getOptionLabel=function(e){return eI(t.props,e)},t.getOptionValue=function(e){return tI(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=IF[e](n,r);i.boxSizing=`border-box`;var a=t.props.styles[e];return a?a(i,n):i},t.getClassNames=function(e,n){var r,i;return(r=(i=t.props.classNames)[e])?.call(i,n)},t.getElementId=function(e){return`${t.state.instancePrefix}-${e}`},t.getComponents=function(){return RP(t.props)},t.buildCategorizedOptions=function(){return KF(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return qF(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:J({value:e},n)})},t.onMenuMouseDown=function(e){e.button===0&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?e.target.tagName!==`INPUT`&&e.target.tagName!==`TEXTAREA`&&t.onMenuClose():n&&t.openMenu(`first`):(n&&(t.openAfterFocus=!0),t.focusInput()),e.target.tagName!==`INPUT`&&e.target.tagName!==`TEXTAREA`&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&e.type===`mousedown`&&e.button!==0)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu(`first`),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&e.type===`mousedown`&&e.button!==0||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,e.type===`touchend`?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){typeof t.props.closeMenuOnScroll==`boolean`?e.target instanceof HTMLElement&&qM(e.target)&&t.props.onMenuClose():typeof t.props.closeMenuOnScroll==`function`&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY),o=5;t.userIsDragging=i>o||a>o}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:`input-change`,prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu(`first`),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(e),t.onInputChange(``,{action:`input-blur`,prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},t.onOptionHover=function(e){if(!(t.blockOptionHover||t.state.focusedOption===e)){var n=t.getFocusableOptions(),r=n.indexOf(e);t.setState({focusedOption:e,focusedOptionId:r>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return aI(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,a=n.escapeClearsValue,o=n.inputValue,s=n.isClearable,c=n.isDisabled,l=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,m=p.focusedOption,h=p.focusedValue,g=p.selectValue;if(!c&&!(typeof u==`function`&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case`ArrowLeft`:if(!r||o)return;t.focusValue(`previous`);break;case`ArrowRight`:if(!r||o)return;t.focusValue(`next`);break;case`Delete`:case`Backspace`:if(o)return;if(h)t.removeValue(h);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case`Tab`:if(t.isComposing||e.shiftKey||!l||!d||!m||f&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case`Enter`:if(e.keyCode===229)break;if(l){if(!m||t.isComposing)return;t.selectOption(m);break}return;case`Escape`:l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(``,{action:`menu-close`,prevInputValue:o}),t.onMenuClose()):s&&a&&t.clearValue();break;case` `:if(o)return;if(!l){t.openMenu(`first`);break}if(!m)return;t.selectOption(m);break;case`ArrowUp`:l?t.focusOption(`up`):t.openMenu(`last`);break;case`ArrowDown`:l?t.focusOption(`down`):t.openMenu(`first`);break;case`PageUp`:if(!l)return;t.focusOption(`pageup`);break;case`PageDown`:if(!l)return;t.focusOption(`pagedown`);break;case`Home`:if(!l)return;t.focusOption(`first`);break;case`End`:if(!l)return;t.focusOption(`last`);break;default:return}e.preventDefault()}},t.state.instancePrefix=`react-select-`+(t.props.instanceId||++oI),t.state.selectValue=WM(e.value),e.menuIsOpen&&t.state.selectValue.length){var i=t.getFocusableOptionsWithIds(),a=t.buildFocusableOptions(),o=a.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=i,t.state.focusedOption=a[o],t.state.focusedOptionId=$F(i,a[o])}return t}return Qk(r,[{key:`componentDidMount`,value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener(`scroll`,this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&eN(this.menuListRef,this.focusedOptionRef)}},{key:`componentDidUpdate`,value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!i&&!n&&e.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(eN(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:`componentWillUnmount`,value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener(`scroll`,this.onScroll,!0)}},{key:`onMenuOpen`,value:function(){this.props.onMenuOpen()}},{key:`onMenuClose`,value:function(){this.onInputChange(``,{action:`menu-close`,prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:`onInputChange`,value:function(e,t){this.props.onInputChange(e,t)}},{key:`focusInput`,value:function(){this.inputRef&&this.inputRef.focus()}},{key:`blurInput`,value:function(){this.inputRef&&this.inputRef.blur()}},{key:`openMenu`,value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,a=this.buildFocusableOptions(),o=e===`first`?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(o=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[o],focusedOptionId:this.getFocusedOptionId(a[o])},function(){return t.onMenuOpen()})}},{key:`focusValue`,value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var a=n.length-1,o=-1;if(n.length){switch(e){case`previous`:o=i===0?0:i===-1?a:i-1;break;case`next`:i>-1&&i<a&&(o=i+1);break}this.setState({inputIsHidden:o!==-1,focusedValue:n[o]})}}}},{key:`focusOption`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`first`,t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,a=r.indexOf(n);n||(a=-1),e===`up`?i=a>0?a-1:r.length-1:e===`down`?i=(a+1)%r.length:e===`pageup`?(i=a-t,i<0&&(i=0)):e===`pagedown`?(i=a+t,i>r.length-1&&(i=r.length-1)):e===`last`&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:`getTheme`,value:function(){return this.props.theme?typeof this.props.theme==`function`?this.props.theme(UF):J(J({},UF),this.props.theme):UF}},{key:`getCommonProps`,value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,a=this.selectOption,o=this.setValue,s=this.props,c=s.isMulti,l=s.isRtl,u=s.options,d=this.hasValue();return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:d,isMulti:c,isRtl:l,options:u,selectOption:a,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:`hasValue`,value:function(){var e=this.state.selectValue;return e.length>0}},{key:`hasOptions`,value:function(){return!!this.getFocusableOptions().length}},{key:`isClearable`,value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return t===void 0?n:t}},{key:`isOptionDisabled`,value:function(e,t){return nI(this.props,e,t)}},{key:`isOptionSelected`,value:function(e,t){return rI(this.props,e,t)}},{key:`filterOption`,value:function(e,t){return iI(this.props,e,t)}},{key:`formatOptionLabel`,value:function(e,t){if(typeof this.props.formatOptionLabel==`function`){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}else return this.getOptionLabel(e)}},{key:`formatGroupLabel`,value:function(e){return this.props.formatGroupLabel(e)}},{key:`startListeningComposition`,value:function(){document&&document.addEventListener&&(document.addEventListener(`compositionstart`,this.onCompositionStart,!1),document.addEventListener(`compositionend`,this.onCompositionEnd,!1))}},{key:`stopListeningComposition`,value:function(){document&&document.removeEventListener&&(document.removeEventListener(`compositionstart`,this.onCompositionStart),document.removeEventListener(`compositionend`,this.onCompositionEnd))}},{key:`startListeningToTouch`,value:function(){document&&document.addEventListener&&(document.addEventListener(`touchstart`,this.onTouchStart,!1),document.addEventListener(`touchmove`,this.onTouchMove,!1),document.addEventListener(`touchend`,this.onTouchEnd,!1))}},{key:`stopListeningToTouch`,value:function(){document&&document.removeEventListener&&(document.removeEventListener(`touchstart`,this.onTouchStart),document.removeEventListener(`touchmove`,this.onTouchMove),document.removeEventListener(`touchend`,this.onTouchEnd))}},{key:`renderInput`,value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,i=t.inputId,a=t.inputValue,o=t.tabIndex,s=t.form,c=t.menuIsOpen,l=t.required,u=this.getComponents(),d=u.Input,f=this.state,p=f.inputIsHidden,m=f.ariaSelection,h=this.commonProps,g=i||this.getElementId(`input`),_=J(J(J({"aria-autocomplete":`list`,"aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props[`aria-errormessage`],"aria-invalid":this.props[`aria-invalid`],"aria-label":this.props[`aria-label`],"aria-labelledby":this.props[`aria-labelledby`],"aria-required":l,role:`combobox`,"aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||``},c&&{"aria-controls":this.getElementId(`listbox`)}),!r&&{"aria-readonly":!0}),this.hasValue()?m?.action===`initial-input-focus`&&{"aria-describedby":this.getElementId(`live-region`)}:{"aria-describedby":this.getElementId(`placeholder`)});return r?e.createElement(d,Y({},h,{autoCapitalize:`none`,autoComplete:`off`,autoCorrect:`off`,id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:`false`,tabIndex:o,form:s,type:`text`,value:a},_)):e.createElement(sF,Y({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:VM,onFocus:this.onInputFocus,disabled:n,tabIndex:o,inputMode:`none`,form:s,value:``},_))}},{key:`renderPlaceholderOrValue`,value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,i=n.MultiValueContainer,a=n.MultiValueLabel,o=n.MultiValueRemove,s=n.SingleValue,c=n.Placeholder,l=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,m=u.inputValue,h=u.placeholder,g=this.state,_=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return m?null:e.createElement(c,Y({},l,{key:`placeholder`,isDisabled:f,isFocused:y,innerProps:{id:this.getElementId(`placeholder`)}}),h);if(p)return _.map(function(n,s){var c=n===v,u=`${t.getOptionLabel(n)}-${t.getOptionValue(n)}`;return e.createElement(r,Y({},l,{components:{Container:i,Label:a,Remove:o},isFocused:c,isDisabled:f,key:u,index:s,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,`value`))});if(m)return null;var b=_[0];return e.createElement(s,Y({},l,{data:b,isDisabled:f}),this.formatOptionLabel(b,`value`))}},{key:`renderClearIndicator`,value:function(){var t=this.getComponents(),n=t.ClearIndicator,r=this.commonProps,i=this.props,a=i.isDisabled,o=i.isLoading,s=this.state.isFocused;if(!this.isClearable()||!n||a||!this.hasValue()||o)return null;var c={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":`true`};return e.createElement(n,Y({},r,{innerProps:c,isFocused:s}))}},{key:`renderLoadingIndicator`,value:function(){var t=this.getComponents(),n=t.LoadingIndicator,r=this.commonProps,i=this.props,a=i.isDisabled,o=i.isLoading,s=this.state.isFocused;if(!n||!o)return null;var c={"aria-hidden":`true`};return e.createElement(n,Y({},r,{innerProps:c,isDisabled:a,isFocused:s}))}},{key:`renderIndicatorSeparator`,value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var i=this.commonProps,a=this.props.isDisabled,o=this.state.isFocused;return e.createElement(r,Y({},i,{isDisabled:a,isFocused:o}))}},{key:`renderDropdownIndicator`,value:function(){var t=this.getComponents(),n=t.DropdownIndicator;if(!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":`true`};return e.createElement(n,Y({},r,{innerProps:o,isDisabled:i,isFocused:a}))}},{key:`renderMenu`,value:function(){var t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,a=n.Menu,o=n.MenuList,s=n.MenuPortal,c=n.LoadingMessage,l=n.NoOptionsMessage,u=n.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,h=p.inputValue,g=p.isLoading,_=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,x=p.menuPlacement,S=p.menuPosition,C=p.menuPortalTarget,w=p.menuShouldBlockScroll,T=p.menuShouldScrollIntoView,E=p.noOptionsMessage,D=p.onMenuScrollToTop,O=p.onMenuScrollToBottom;if(!b)return null;var k=function(n,r){var i=n.type,a=n.data,o=n.isDisabled,s=n.isSelected,c=n.label,l=n.value,p=f===a,m=o?void 0:function(){return t.onOptionHover(a)},h=o?void 0:function(){return t.selectOption(a)},g=`${t.getElementId(`option`)}-${r}`,_={id:g,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:`option`,"aria-selected":t.isAppleDevice?void 0:s};return e.createElement(u,Y({},d,{innerProps:_,data:a,isDisabled:o,isSelected:s,key:g,label:c,type:i,value:l,isFocused:p,innerRef:p?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,`menu`))},A;if(this.hasOptions())A=this.getCategorizedOptions().map(function(n){if(n.type===`group`){var a=n.data,o=n.options,s=n.index,c=`${t.getElementId(`group`)}-${s}`,l=`${c}-heading`;return e.createElement(r,Y({},d,{key:c,data:a,options:o,Heading:i,headingProps:{id:l,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map(function(e){return k(e,`${s}-${e.index}`)}))}else if(n.type===`option`)return k(n,`${n.index}`)});else if(g){var j=_({inputValue:h});if(j===null)return null;A=e.createElement(c,d,j)}else{var M=E({inputValue:h});if(M===null)return null;A=e.createElement(l,d,M)}var N={minMenuHeight:v,maxMenuHeight:y,menuPlacement:x,menuPosition:S,menuShouldScrollIntoView:T},ee=e.createElement(xN,Y({},d,N),function(n){var r=n.ref,i=n.placerProps,s=i.placement,c=i.maxHeight;return e.createElement(a,Y({},d,N,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:s}),e.createElement(SF,{captureEnabled:m,onTopArrive:D,onBottomArrive:O,lockEnabled:w},function(n){return e.createElement(o,Y({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:`listbox`,"aria-multiselectable":d.isMulti,id:t.getElementId(`listbox`)},isLoading:g,maxHeight:c,focusedOption:f}),A)}))});return C||S===`fixed`?e.createElement(s,Y({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:x,menuPosition:S}),ee):ee}},{key:`renderFormField`,value:function(){var t=this,n=this.props,r=n.delimiter,i=n.isDisabled,a=n.isMulti,o=n.name,s=n.required,c=this.state.selectValue;if(s&&!this.hasValue()&&!i)return e.createElement(TF,{name:o,onFocus:this.onValueInputFocus});if(!(!o||i))if(a)if(r){var l=c.map(function(e){return t.getOptionValue(e)}).join(r);return e.createElement(`input`,{name:o,type:`hidden`,value:l})}else{var u=c.length>0?c.map(function(n,r){return e.createElement(`input`,{key:`i-${r}`,name:o,type:`hidden`,value:t.getOptionValue(n)})}):e.createElement(`input`,{name:o,type:`hidden`,value:``});return e.createElement(`div`,null,u)}else{var d=c[0]?this.getOptionValue(c[0]):``;return e.createElement(`input`,{name:o,type:`hidden`,value:d})}}},{key:`renderLiveRegion`,value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,i=n.focusedOption,a=n.focusedValue,o=n.isFocused,s=n.selectValue,c=this.getFocusableOptions();return e.createElement(JP,Y({},t,{id:this.getElementId(`live-region`),ariaSelection:r,focusedOption:i,focusedValue:a,isFocused:o,selectValue:s,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:`render`,value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,i=t.SelectContainer,a=t.ValueContainer,o=this.props,s=o.className,c=o.id,l=o.isDisabled,u=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return e.createElement(i,Y({},f,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),e.createElement(n,Y({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:u}),e.createElement(a,Y({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,Y({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:`getDerivedStateFromProps`,value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,o=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,l=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,m=WM(u),h={};if(n&&(u!==n.value||l!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?YF(e,m):[],_=d?JF(KF(e,m),`${c}-option`):[],v=r?ZF(t,m):null,y=QF(t,g),b=$F(_,y);h={selectValue:m,focusedOption:y,focusedOptionId:b,focusableOptionsWithIds:_,focusedValue:v,clearFocusValueOnUpdate:!1}}var x=i!=null&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},S=a,C=o&&s;return o&&!C&&(S={value:uN(p,m,m[0]||null),options:m,action:`initial-input-focus`},C=!s),a?.action===`initial-input-focus`&&(S=null),J(J(J({},h),x),{},{prevProps:e,ariaSelection:S,prevWasFocused:C})}}]),r}(r);sI.defaultProps=WF;var cI=c(function(t,n){var r=Yk(t);return e.createElement(sI,Y({ref:n},r))}),lI=cI,uI=[`allowCreateWhileLoading`,`createOptionPosition`,`formatCreateLabel`,`isValidNewOption`,`getNewOptionData`,`onCreateOption`,`options`,`onChange`],dI=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),i=String(n.getOptionValue(t)).toLowerCase(),a=String(n.getOptionLabel(t)).toLowerCase();return i===r||a===r},fI={formatCreateLabel:function(e){return`Create "${e}"`},isValidNewOption:function(e,t,n,r){return!(!e||t.some(function(t){return dI(e,t,r)})||n.some(function(t){return dI(e,t,r)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function pI(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?`last`:r,a=e.formatCreateLabel,o=a===void 0?fI.formatCreateLabel:a,s=e.isValidNewOption,c=s===void 0?fI.isValidNewOption:s,l=e.getNewOptionData,d=l===void 0?fI.getNewOptionData:l,f=e.onCreateOption,p=e.options,m=p===void 0?[]:p,h=e.onChange,_=qk(e,uI),v=_.getOptionValue,y=v===void 0?PF:v,b=_.getOptionLabel,x=b===void 0?NF:b,S=_.inputValue,C=_.isLoading,w=_.isMulti,T=_.value,E=_.name,D=g(function(){return c(S,WM(T),m,{getOptionValue:y,getOptionLabel:x})?d(S,o(S)):void 0},[o,d,x,y,S,c,m,T]),O=g(function(){return(n||!C)&&D?i===`first`?[D].concat(lA(m)):[].concat(lA(m),[D]):m},[n,i,C,D,m]),k=u(function(e,t){if(t.action!==`select-option`)return h(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]===D){if(f)f(S);else{var r=d(S,S),i={action:`create-option`,name:E,option:r};h(uN(w,[].concat(lA(WM(T)),[r]),r),i)}return}h(e,t)},[d,S,w,E,D,f,h,T]);return J(J({},_),{},{options:O,onChange:k})}var mI=c(function(t,n){var r=Yk(t),i=pI(r);return e.createElement(sI,Y({ref:n},i))}),hI=mI;const gI=`
1266
+ `])),rP=function(e,t){var n=e.isFocused,r=e.size,i=e.theme,a=i.colors,o=i.spacing.baseUnit;return J({label:`loadingIndicator`,display:`flex`,transition:`color 150ms`,alignSelf:`center`,fontSize:r,lineHeight:1,marginRight:r,textAlign:`center`,verticalAlign:`middle`},t?{}:{color:n?a.neutral60:a.neutral20,padding:o*2})},iP=function(e){var t=e.delay,n=e.offset;return Q(`span`,{css:sM({animation:`${nP} 1s ease-in-out ${t}ms infinite;`,backgroundColor:`currentColor`,borderRadius:`1em`,display:`inline-block`,marginLeft:n?`1em`:void 0,height:`1em`,verticalAlign:`top`,width:`1em`},``,``)})},aP=function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=r===void 0?4:r,a=Xk(e,WN);return Q(`div`,Y({},YM(J(J({},a),{},{innerProps:t,isRtl:n,size:i}),`loadingIndicator`,{indicator:!0,"loading-indicator":!0}),t),Q(iP,{delay:0,offset:n}),Q(iP,{delay:160,offset:!0}),Q(iP,{delay:320,offset:!n}))},oP=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,a=i.colors,o=i.borderRadius,s=i.spacing;return J({label:`control`,alignItems:`center`,cursor:`default`,display:`flex`,flexWrap:`wrap`,justifyContent:`space-between`,minHeight:s.controlHeight,outline:`0 !important`,position:`relative`,transition:`all 100ms`},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:o,borderStyle:`solid`,borderWidth:1,boxShadow:r?`0 0 0 1px ${a.primary}`:void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},sP=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,a=e.innerProps,o=e.menuIsOpen;return Q(`div`,Y({ref:i},YM(e,`control`,{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":o}),a,{"aria-disabled":n||void 0}),t)},cP=sP,lP=[`data`],uP=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},dP=function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,a=e.Heading,o=e.headingProps,s=e.innerProps,c=e.label,l=e.theme,u=e.selectProps;return Q(`div`,Y({},YM(e,`group`,{group:!0}),s),Q(a,Y({},o,{selectProps:u,theme:l,getStyles:r,getClassNames:i,cx:n}),c),Q(`div`,null,t))},fP=function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return J({label:`group`,cursor:`default`,display:`block`},t?{}:{color:r.neutral40,fontSize:`75%`,fontWeight:500,marginBottom:`0.25em`,paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:`uppercase`})},pP=function(e){var t=JM(e);t.data;var n=Xk(t,lP);return Q(`div`,Y({},YM(e,`groupHeading`,{"group-heading":!0}),n))},mP=dP,hP=[`innerRef`,`isDisabled`,`isHidden`,`inputClassName`],gP=function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,a=i.spacing,o=i.colors;return J(J({visibility:n?`hidden`:`visible`,transform:r?`translateZ(0)`:``},vP),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:o.neutral80})},_P={gridArea:`1 / 2`,font:`inherit`,minWidth:`2px`,border:0,margin:0,outline:0,padding:0},vP={flex:`1 1 auto`,display:`inline-grid`,gridArea:`1 / 1 / 2 / 3`,gridTemplateColumns:`0 min-content`,"&:after":J({content:`attr(data-value) " "`,visibility:`hidden`,whiteSpace:`pre`},_P)},yP=function(e){return J({label:`input`,color:`inherit`,background:0,opacity:e?0:1,width:`100%`},_P)},bP=function(e){var t=e.cx,n=e.value,r=JM(e),i=r.innerRef,a=r.isDisabled,o=r.isHidden,s=r.inputClassName,c=Xk(r,hP);return Q(`div`,Y({},YM(e,`input`,{"input-container":!0}),{"data-value":n||``}),Q(`input`,Y({className:t({input:!0},s),ref:i,style:yP(o),disabled:a},c)))},xP=bP,SP=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors;return J({label:`multiValue`,display:`flex`,minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},CP=function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return J({overflow:`hidden`,textOverflow:a||a===void 0?`ellipsis`:void 0,whiteSpace:`nowrap`},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:`85%`,padding:3,paddingLeft:6})},wP=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors,o=e.isFocused;return J({alignItems:`center`,display:`flex`},t?{}:{borderRadius:i/2,backgroundColor:o?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},TP=function(e){var t=e.children,n=e.innerProps;return Q(`div`,n,t)},EP=TP,DP=TP;function OP(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({role:`button`},n),t||Q(qN,{size:14}))}var kP=function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,a=e.isDisabled,o=e.removeProps,s=e.selectProps,c=n.Container,l=n.Label,u=n.Remove;return Q(c,{data:r,innerProps:J(J({},YM(e,`multiValue`,{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},Q(l,{data:r,innerProps:J({},YM(e,`multiValueLabel`,{"multi-value__label":!0})),selectProps:s},t),Q(u,{data:r,innerProps:J(J({},YM(e,`multiValueRemove`,{"multi-value__remove":!0})),{},{"aria-label":`Remove ${t||`option`}`},o),selectProps:s}))},AP=kP,jP=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.theme,o=a.spacing,s=a.colors;return J({label:`option`,cursor:`default`,display:`block`,fontSize:`inherit`,width:`100%`,userSelect:`none`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`},t?{}:{backgroundColor:i?s.primary:r?s.primary25:`transparent`,color:n?s.neutral20:i?s.neutral0:`inherit`,padding:`${o.baseUnit*2}px ${o.baseUnit*3}px`,":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},MP=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.innerRef,o=e.innerProps;return Q(`div`,Y({},YM(e,`option`,{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:a,"aria-disabled":n},o),t)},NP=MP,PP=function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return J({label:`placeholder`,gridArea:`1 / 1 / 2 / 3`},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},FP=function(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({},YM(e,`placeholder`,{placeholder:!0}),n),t)},IP=FP,LP=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,a=r.colors;return J({label:`singleValue`,gridArea:`1 / 1 / 2 / 3`,maxWidth:`100%`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},RP=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Q(`div`,Y({},YM(e,`singleValue`,{"single-value":!0,"single-value--is-disabled":n}),r),t)},zP=RP,BP={ClearIndicator:$N,Control:cP,DropdownIndicator:ZN,DownChevron:JN,CrossIcon:qN,Group:mP,GroupHeading:pP,IndicatorsContainer:VN,IndicatorSeparator:tP,Input:xP,LoadingIndicator:aP,Menu:EN,MenuList:ON,MenuPortal:FN,LoadingMessage:NN,NoOptionsMessage:MN,MultiValue:AP,MultiValueContainer:EP,MultiValueLabel:DP,MultiValueRemove:OP,Option:NP,Placeholder:IP,SelectContainer:LN,SingleValue:zP,ValueContainer:zN},VP=function(e){return J(J({},BP),e.components)},HP=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function UP(e,t){return!!(e===t||HP(e)&&HP(t))}function WP(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!UP(e[n],t[n]))return!1;return!0}function GP(e,t){t===void 0&&(t=WP);var n=null;function r(){var r=[...arguments];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}for(var KP={name:`7pg0cj-a11yText`,styles:`label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap`},qP=function(e){return Q(`span`,Y({css:KP},e))},JP=qP,YP={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,a=e.isInitialFocus;switch(i){case`menu`:return`Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu${r?`, press Tab to select the option and exit the menu`:``}.`;case`input`:return a?`${e[`aria-label`]||`Select`} is focused ${t?`,type to refine list`:``}, press Down to open the menu, ${n?` press left to focus selected values`:``}`:``;case`value`:return`Use left and right to toggle between focused values, press Backspace to remove the currently focused value`;default:return``}},onChange:function(e){var t=e.action,n=e.label,r=n===void 0?``:n,i=e.labels,a=e.isDisabled;switch(t){case`deselect-option`:case`pop-value`:case`remove-value`:return`option ${r}, deselected.`;case`clear`:return`All selected options have been cleared.`;case`initial-input-focus`:return`option${i.length>1?`s`:``} ${i.join(`,`)}, selected.`;case`select-option`:return a?`option ${r} is disabled. Select another option.`:`option ${r}, selected.`;default:return``}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,a=i===void 0?``:i,o=e.selectValue,s=e.isDisabled,c=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?`${e.indexOf(t)+1} of ${e.length}`:``};if(t===`value`&&o)return`value ${a} focused, ${u(o,n)}.`;if(t===`menu`&&l){var d=s?` disabled`:``,f=`${c?` selected`:``}${d}`;return`${a}${f}, ${u(r,n)}.`}return``},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return`${n}${t?` for search term `+t:``}.`}},XP=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,a=e.focusableOptions,o=e.isFocused,s=e.selectValue,c=e.selectProps,l=e.id,u=e.isAppleDevice,d=c.ariaLiveMessages,f=c.getOptionLabel,p=c.inputValue,m=c.isMulti,h=c.isOptionDisabled,_=c.isSearchable,v=c.menuIsOpen,y=c.options,b=c.screenReaderStatus,x=c.tabSelectsValue,S=c.isLoading,C=c[`aria-label`],w=c[`aria-live`],T=g(function(){return J(J({},YP),d||{})},[d]),E=g(function(){var e=``;if(t&&T.onChange){var n=t.option,r=t.options,i=t.removedValue,a=t.removedValues,o=t.value,c=function(e){return Array.isArray(e)?null:e},l=i||n||c(o),u=l?f(l):``,d=r||a||void 0,p=d?d.map(f):[],m=J({isDisabled:l&&h(l,s),label:u,labels:p},t);e=T.onChange(m)}return e},[t,T,h,s,f]),D=g(function(){var e=``,t=n||r,i=!!(n&&s&&s.includes(n));if(t&&T.onFocus){var o={focused:t,label:f(t),isDisabled:h(t,s),isSelected:i,options:a,context:t===n?`menu`:`value`,selectValue:s,isAppleDevice:u};e=T.onFocus(o)}return e},[n,r,f,h,T,a,s,u]),O=g(function(){var e=``;if(v&&y.length&&!S&&T.onFilter){var t=b({count:a.length});e=T.onFilter({inputValue:p,resultsMessage:t})}return e},[a,p,v,T,y,b,S]),k=t?.action===`initial-input-focus`,A=g(function(){var e=``;if(T.guidance){var t=r?`value`:v?`menu`:`input`;e=T.guidance({"aria-label":C,context:t,isDisabled:n&&h(n,s),isMulti:m,isSearchable:_,tabSelectsValue:x,isInitialFocus:k})}return e},[C,n,r,m,h,_,v,T,s,x,k]),j=Q(i,null,Q(`span`,{id:`aria-selection`},E),Q(`span`,{id:`aria-focused`},D),Q(`span`,{id:`aria-results`},O),Q(`span`,{id:`aria-guidance`},A));return Q(i,null,Q(JP,{id:l},k&&j),Q(JP,{"aria-live":w,"aria-atomic":`false`,"aria-relevant":`additions text`,role:`log`},o&&!k&&j))},ZP=XP,QP=[{base:`A`,letters:`AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ`},{base:`AA`,letters:`Ꜳ`},{base:`AE`,letters:`ÆǼǢ`},{base:`AO`,letters:`Ꜵ`},{base:`AU`,letters:`Ꜷ`},{base:`AV`,letters:`ꜸꜺ`},{base:`AY`,letters:`Ꜽ`},{base:`B`,letters:`BⒷBḂḄḆɃƂƁ`},{base:`C`,letters:`CⒸCĆĈĊČÇḈƇȻꜾ`},{base:`D`,letters:`DⒹDḊĎḌḐḒḎĐƋƊƉꝹ`},{base:`DZ`,letters:`DZDŽ`},{base:`Dz`,letters:`DzDž`},{base:`E`,letters:`EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ`},{base:`F`,letters:`FⒻFḞƑꝻ`},{base:`G`,letters:`GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ`},{base:`H`,letters:`HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ`},{base:`I`,letters:`IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ`},{base:`J`,letters:`JⒿJĴɈ`},{base:`K`,letters:`KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ`},{base:`L`,letters:`LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ`},{base:`LJ`,letters:`LJ`},{base:`Lj`,letters:`Lj`},{base:`M`,letters:`MⓂMḾṀṂⱮƜ`},{base:`N`,letters:`NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ`},{base:`NJ`,letters:`NJ`},{base:`Nj`,letters:`Nj`},{base:`O`,letters:`OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ`},{base:`OI`,letters:`Ƣ`},{base:`OO`,letters:`Ꝏ`},{base:`OU`,letters:`Ȣ`},{base:`P`,letters:`PⓅPṔṖƤⱣꝐꝒꝔ`},{base:`Q`,letters:`QⓆQꝖꝘɊ`},{base:`R`,letters:`RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ`},{base:`S`,letters:`SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ`},{base:`T`,letters:`TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ`},{base:`TZ`,letters:`Ꜩ`},{base:`U`,letters:`UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ`},{base:`V`,letters:`VⓋVṼṾƲꝞɅ`},{base:`VY`,letters:`Ꝡ`},{base:`W`,letters:`WⓌWẀẂŴẆẄẈⱲ`},{base:`X`,letters:`XⓍXẊẌ`},{base:`Y`,letters:`YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ`},{base:`Z`,letters:`ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ`},{base:`a`,letters:`aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ`},{base:`aa`,letters:`ꜳ`},{base:`ae`,letters:`æǽǣ`},{base:`ao`,letters:`ꜵ`},{base:`au`,letters:`ꜷ`},{base:`av`,letters:`ꜹꜻ`},{base:`ay`,letters:`ꜽ`},{base:`b`,letters:`bⓑbḃḅḇƀƃɓ`},{base:`c`,letters:`cⓒcćĉċčçḉƈȼꜿↄ`},{base:`d`,letters:`dⓓdḋďḍḑḓḏđƌɖɗꝺ`},{base:`dz`,letters:`dzdž`},{base:`e`,letters:`eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ`},{base:`f`,letters:`fⓕfḟƒꝼ`},{base:`g`,letters:`gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ`},{base:`h`,letters:`hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ`},{base:`hv`,letters:`ƕ`},{base:`i`,letters:`iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı`},{base:`j`,letters:`jⓙjĵǰɉ`},{base:`k`,letters:`kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ`},{base:`l`,letters:`lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ`},{base:`lj`,letters:`lj`},{base:`m`,letters:`mⓜmḿṁṃɱɯ`},{base:`n`,letters:`nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ`},{base:`nj`,letters:`nj`},{base:`o`,letters:`oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ`},{base:`oi`,letters:`ƣ`},{base:`ou`,letters:`ȣ`},{base:`oo`,letters:`ꝏ`},{base:`p`,letters:`pⓟpṕṗƥᵽꝑꝓꝕ`},{base:`q`,letters:`qⓠqɋꝗꝙ`},{base:`r`,letters:`rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ`},{base:`s`,letters:`sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ`},{base:`t`,letters:`tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ`},{base:`tz`,letters:`ꜩ`},{base:`u`,letters:`uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ`},{base:`v`,letters:`vⓥvṽṿʋꝟʌ`},{base:`vy`,letters:`ꝡ`},{base:`w`,letters:`wⓦwẁẃŵẇẅẘẉⱳ`},{base:`x`,letters:`xⓧxẋẍ`},{base:`y`,letters:`yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ`},{base:`z`,letters:`zⓩzźẑżžẓẕƶȥɀⱬꝣ`}],$P=RegExp(`[`+QP.map(function(e){return e.letters}).join(``)+`]`,`g`),eF={},tF=0;tF<QP.length;tF++)for(var nF=QP[tF],rF=0;rF<nF.letters.length;rF++)eF[nF.letters[rF]]=nF.base;var iF=function(e){return e.replace($P,function(e){return eF[e]})},aF=GP(iF),oF=function(e){return e.replace(/^\s+|\s+$/g,``)},sF=function(e){return`${e.label} ${e.value}`},cF=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=J({ignoreCase:!0,ignoreAccents:!0,stringify:sF,trim:!0,matchFrom:`any`},e),i=r.ignoreCase,a=r.ignoreAccents,o=r.stringify,s=r.trim,c=r.matchFrom,l=s?oF(n):n,u=s?oF(o(t)):o(t);return i&&(l=l.toLowerCase(),u=u.toLowerCase()),a&&(l=aF(l),u=iF(u)),c===`start`?u.substr(0,l.length)===l:u.indexOf(l)>-1}},lF=[`innerRef`];function uF(e){var t=e.innerRef,n=Xk(e,lF),r=gN(n,`onExited`,`in`,`enter`,`exit`,`appear`);return Q(`input`,Y({ref:t},r,{css:sM({label:`dummyInput`,background:0,border:0,caretColor:`transparent`,fontSize:`inherit`,gridArea:`1 / 1 / 2 / 3`,outline:0,padding:0,width:1,color:`transparent`,left:-100,opacity:0,position:`relative`,transform:`scale(.01)`},``,``)}))}var dF=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function fF(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=_(!1),s=_(!1),c=_(0),l=_(null),d=u(function(e,t){if(l.current!==null){var c=l.current,u=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=l.current,m=t>0,h=d-f-u,g=!1;h>t&&o.current&&(r&&r(e),o.current=!1),m&&s.current&&(a&&a(e),s.current=!1),m&&t>h?(n&&!o.current&&n(e),p.scrollTop=d,g=!0,o.current=!0):!m&&-t>u&&(i&&!s.current&&i(e),p.scrollTop=0,g=!0,s.current=!0),g&&dF(e)}},[n,r,i,a]),p=u(function(e){d(e,e.deltaY)},[d]),m=u(function(e){c.current=e.changedTouches[0].clientY},[]),h=u(function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)},[d]),g=u(function(e){if(e){var t=uN?{passive:!1}:!1;e.addEventListener(`wheel`,p,t),e.addEventListener(`touchstart`,m,t),e.addEventListener(`touchmove`,h,t)}},[h,m,p]),v=u(function(e){e&&(e.removeEventListener(`wheel`,p,!1),e.removeEventListener(`touchstart`,m,!1),e.removeEventListener(`touchmove`,h,!1))},[h,m,p]);return f(function(){if(t){var e=l.current;return g(e),function(){v(e)}}},[t,g,v]),function(e){l.current=e}}var pF=[`boxSizing`,`height`,`overflow`,`paddingRight`,`position`],mF={boxSizing:`border-box`,overflow:`hidden`,position:`relative`,height:`100%`};function hF(e){e.cancelable&&e.preventDefault()}function gF(e){e.stopPropagation()}function _F(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function vF(){return`ontouchstart`in window||navigator.maxTouchPoints}var yF=!!(typeof window<`u`&&window.document&&window.document.createElement),bF=0,xF={capture:!1,passive:!1};function SF(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=_({}),a=_(null),o=u(function(e){if(yF){var t=document.body,n=t&&t.style;if(r&&pF.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&bF<1){var a=parseInt(i.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,s=window.innerWidth-o+a||0;Object.keys(mF).forEach(function(e){var t=mF[e];n&&(n[e]=t)}),n&&(n.paddingRight=`${s}px`)}t&&vF()&&(t.addEventListener(`touchmove`,hF,xF),e&&(e.addEventListener(`touchstart`,_F,xF),e.addEventListener(`touchmove`,gF,xF))),bF+=1}},[r]),s=u(function(e){if(yF){var t=document.body,n=t&&t.style;bF=Math.max(bF-1,0),r&&bF<1&&pF.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&vF()&&(t.removeEventListener(`touchmove`,hF,xF),e&&(e.removeEventListener(`touchstart`,_F,xF),e.removeEventListener(`touchmove`,gF,xF)))}},[r]);return f(function(){if(t){var e=a.current;return o(e),function(){s(e)}}},[t,o,s]),function(e){a.current=e}}var CF=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},wF={name:`1kfdb0e`,styles:`position:fixed;left:0;bottom:0;right:0;top:0`};function TF(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,a=r===void 0?!0:r,o=e.onBottomArrive,s=e.onBottomLeave,c=e.onTopArrive,l=e.onTopLeave,u=fF({isEnabled:a,onBottomArrive:o,onBottomLeave:s,onTopArrive:c,onTopLeave:l}),d=SF({isEnabled:n}),f=function(e){u(e),d(e)};return Q(i,null,n&&Q(`div`,{onClick:CF,css:wF}),t(f))}var EF={name:`1a0ro4n-requiredInput`,styles:`label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%`},DF=function(e){var t=e.name,n=e.onFocus;return Q(`input`,{required:!0,name:t,tabIndex:-1,"aria-hidden":`true`,onFocus:n,css:EF,value:``,onChange:function(){}})},OF=DF;function kF(e){var t;return typeof window<`u`&&window.navigator!=null?e.test((t=window.navigator.userAgentData)?.platform||window.navigator.platform):!1}function AF(){return kF(/^iPhone/i)}function jF(){return kF(/^Mac/i)}function MF(){return kF(/^iPad/i)||jF()&&navigator.maxTouchPoints>1}function NF(){return AF()||MF()}function PF(){return jF()||NF()}var FF=function(e){return e.label},IF=function(e){return e.label},LF=function(e){return e.value},RF=function(e){return!!e.isDisabled},zF={clearIndicator:QN,container:IN,control:oP,dropdownIndicator:XN,group:uP,groupHeading:fP,indicatorsContainer:BN,indicatorSeparator:eP,input:gP,loadingIndicator:rP,loadingMessage:jN,menu:SN,menuList:DN,menuPortal:PN,multiValue:SP,multiValueLabel:CP,multiValueRemove:wP,noOptionsMessage:AN,option:jP,placeholder:PP,singleValue:LP,valueContainer:RN},BF={primary:`#2684FF`,primary75:`#4C9AFF`,primary50:`#B2D4FF`,primary25:`#DEEBFF`,danger:`#DE350B`,dangerLight:`#FFBDAD`,neutral0:`hsl(0, 0%, 100%)`,neutral5:`hsl(0, 0%, 95%)`,neutral10:`hsl(0, 0%, 90%)`,neutral20:`hsl(0, 0%, 80%)`,neutral30:`hsl(0, 0%, 70%)`,neutral40:`hsl(0, 0%, 60%)`,neutral50:`hsl(0, 0%, 50%)`,neutral60:`hsl(0, 0%, 40%)`,neutral70:`hsl(0, 0%, 30%)`,neutral80:`hsl(0, 0%, 20%)`,neutral90:`hsl(0, 0%, 10%)`},VF=4,HF=4,UF=38,WF=HF*2,GF={baseUnit:HF,controlHeight:UF,menuGutter:WF},KF={borderRadius:VF,colors:BF,spacing:GF},qF={"aria-live":`polite`,backspaceRemovesValue:!0,blurInputOnSelect:aN(),captureMenuScroll:!aN(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:cF(),formatGroupLabel:FF,getOptionLabel:IF,getOptionValue:LF,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:RF,loadingMessage:function(){return`Loading...`},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:`bottom`,menuPosition:`absolute`,menuShouldBlockScroll:!1,menuShouldScrollIntoView:!oN(),noOptionsMessage:function(){return`No options`},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:`Select...`,screenReaderStatus:function(e){var t=e.count;return`${t} result${t===1?``:`s`} available`},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function JF(e,t,n,r){var i=aI(e,t,n),a=oI(e,t,n),o=rI(e,t),s=iI(e,t);return{type:`option`,data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function YF(e,t){return e.options.map(function(n,r){if(`options`in n){var i=n.options.map(function(n,r){return JF(e,n,t,r)}).filter(function(t){return $F(e,t)});return i.length>0?{type:`group`,data:n,options:i,index:r}:void 0}var a=JF(e,n,t,r);return $F(e,a)?a:void 0}).filter(dN)}function XF(e){return e.reduce(function(e,t){return t.type===`group`?e.push.apply(e,fA(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function ZF(e,t){return e.reduce(function(e,n){return n.type===`group`?e.push.apply(e,fA(n.options.map(function(e){return{data:e.data,id:`${t}-${n.index}-${e.index}`}}))):e.push({data:n.data,id:`${t}-${n.index}`}),e},[])}function QF(e,t){return XF(YF(e,t))}function $F(e,t){var n=e.inputValue,r=n===void 0?``:n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!cI(e)||!a)&&sI(e,{label:o,value:s,data:i},r)}function eI(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function tI(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var nI=function(e,t){var n,r=(n=e.find(function(e){return e.data===t}))?.id;return r||null},rI=function(e,t){return e.getOptionLabel(t)},iI=function(e,t){return e.getOptionValue(t)};function aI(e,t,n){return typeof e.isOptionDisabled==`function`?e.isOptionDisabled(t,n):!1}function oI(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected==`function`)return e.isOptionSelected(t,n);var r=iI(e,t);return n.some(function(t){return iI(e,t)===r})}function sI(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var cI=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return t===void 0?n:t},lI=1,uI=function(t){rA(r,t);var n=cA(r);function r(e){var t;if($k(this,r),t=n.call(this,e),t.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:``},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=PF(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,a=i.closeMenuOnSelect,o=i.isMulti,s=i.inputValue;t.onInputChange(``,{action:`set-value`,prevInputValue:s}),a&&(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,a=n.name,o=t.state.selectValue,s=i&&t.isOptionSelected(e,o),c=t.isOptionDisabled(e,o);if(s){var l=t.getOptionValue(e);t.setValue(hN(o.filter(function(e){return t.getOptionValue(e)!==l})),`deselect-option`,e)}else if(!c)i?t.setValue(hN([].concat(fA(o),[e])),`select-option`,e):t.setValue(mN(e),`select-option`);else{t.ariaOnChange(mN(e),{action:`select-option`,option:e,name:a});return}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),a=r.filter(function(e){return t.getOptionValue(e)!==i}),o=pN(n,a,a[0]||null);t.onChange(o,{action:`remove-value`,removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(pN(t.props.isMulti,[],null),{action:`clear`,removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],i=n.slice(0,n.length-1),a=pN(e,i,i[0]||null);r&&t.onChange(a,{action:`pop-value`,removedValue:r})},t.getFocusedOptionId=function(e){return nI(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return ZF(YF(t.props,t.state.selectValue),t.getElementId(`option`))},t.getValue=function(){return t.state.selectValue},t.cx=function(){var e=[...arguments];return KM.apply(void 0,[t.props.classNamePrefix].concat(e))},t.getOptionLabel=function(e){return rI(t.props,e)},t.getOptionValue=function(e){return iI(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=zF[e](n,r);i.boxSizing=`border-box`;var a=t.props.styles[e];return a?a(i,n):i},t.getClassNames=function(e,n){var r,i;return(r=(i=t.props.classNames)[e])?.call(i,n)},t.getElementId=function(e){return`${t.state.instancePrefix}-${e}`},t.getComponents=function(){return VP(t.props)},t.buildCategorizedOptions=function(){return YF(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return XF(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:J({value:e},n)})},t.onMenuMouseDown=function(e){e.button===0&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?e.target.tagName!==`INPUT`&&e.target.tagName!==`TEXTAREA`&&t.onMenuClose():n&&t.openMenu(`first`):(n&&(t.openAfterFocus=!0),t.focusInput()),e.target.tagName!==`INPUT`&&e.target.tagName!==`TEXTAREA`&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&e.type===`mousedown`&&e.button!==0)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu(`first`),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&e.type===`mousedown`&&e.button!==0||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,e.type===`touchend`?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){typeof t.props.closeMenuOnScroll==`boolean`?e.target instanceof HTMLElement&&XM(e.target)&&t.props.onMenuClose():typeof t.props.closeMenuOnScroll==`function`&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY),o=5;t.userIsDragging=i>o||a>o}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:`input-change`,prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu(`first`),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(e),t.onInputChange(``,{action:`input-blur`,prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},t.onOptionHover=function(e){if(!(t.blockOptionHover||t.state.focusedOption===e)){var n=t.getFocusableOptions(),r=n.indexOf(e);t.setState({focusedOption:e,focusedOptionId:r>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return cI(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,a=n.escapeClearsValue,o=n.inputValue,s=n.isClearable,c=n.isDisabled,l=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,m=p.focusedOption,h=p.focusedValue,g=p.selectValue;if(!c&&!(typeof u==`function`&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case`ArrowLeft`:if(!r||o)return;t.focusValue(`previous`);break;case`ArrowRight`:if(!r||o)return;t.focusValue(`next`);break;case`Delete`:case`Backspace`:if(o)return;if(h)t.removeValue(h);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case`Tab`:if(t.isComposing||e.shiftKey||!l||!d||!m||f&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case`Enter`:if(e.keyCode===229)break;if(l){if(!m||t.isComposing)return;t.selectOption(m);break}return;case`Escape`:l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(``,{action:`menu-close`,prevInputValue:o}),t.onMenuClose()):s&&a&&t.clearValue();break;case` `:if(o)return;if(!l){t.openMenu(`first`);break}if(!m)return;t.selectOption(m);break;case`ArrowUp`:l?t.focusOption(`up`):t.openMenu(`last`);break;case`ArrowDown`:l?t.focusOption(`down`):t.openMenu(`first`);break;case`PageUp`:if(!l)return;t.focusOption(`pageup`);break;case`PageDown`:if(!l)return;t.focusOption(`pagedown`);break;case`Home`:if(!l)return;t.focusOption(`first`);break;case`End`:if(!l)return;t.focusOption(`last`);break;default:return}e.preventDefault()}},t.state.instancePrefix=`react-select-`+(t.props.instanceId||++lI),t.state.selectValue=qM(e.value),e.menuIsOpen&&t.state.selectValue.length){var i=t.getFocusableOptionsWithIds(),a=t.buildFocusableOptions(),o=a.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=i,t.state.focusedOption=a[o],t.state.focusedOptionId=nI(i,a[o])}return t}return tA(r,[{key:`componentDidMount`,value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener(`scroll`,this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&rN(this.menuListRef,this.focusedOptionRef)}},{key:`componentDidUpdate`,value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!i&&!n&&e.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(rN(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:`componentWillUnmount`,value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener(`scroll`,this.onScroll,!0)}},{key:`onMenuOpen`,value:function(){this.props.onMenuOpen()}},{key:`onMenuClose`,value:function(){this.onInputChange(``,{action:`menu-close`,prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:`onInputChange`,value:function(e,t){this.props.onInputChange(e,t)}},{key:`focusInput`,value:function(){this.inputRef&&this.inputRef.focus()}},{key:`blurInput`,value:function(){this.inputRef&&this.inputRef.blur()}},{key:`openMenu`,value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,a=this.buildFocusableOptions(),o=e===`first`?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(o=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[o],focusedOptionId:this.getFocusedOptionId(a[o])},function(){return t.onMenuOpen()})}},{key:`focusValue`,value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var a=n.length-1,o=-1;if(n.length){switch(e){case`previous`:o=i===0?0:i===-1?a:i-1;break;case`next`:i>-1&&i<a&&(o=i+1);break}this.setState({inputIsHidden:o!==-1,focusedValue:n[o]})}}}},{key:`focusOption`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`first`,t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,a=r.indexOf(n);n||(a=-1),e===`up`?i=a>0?a-1:r.length-1:e===`down`?i=(a+1)%r.length:e===`pageup`?(i=a-t,i<0&&(i=0)):e===`pagedown`?(i=a+t,i>r.length-1&&(i=r.length-1)):e===`last`&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:`getTheme`,value:function(){return this.props.theme?typeof this.props.theme==`function`?this.props.theme(KF):J(J({},KF),this.props.theme):KF}},{key:`getCommonProps`,value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,a=this.selectOption,o=this.setValue,s=this.props,c=s.isMulti,l=s.isRtl,u=s.options,d=this.hasValue();return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:d,isMulti:c,isRtl:l,options:u,selectOption:a,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:`hasValue`,value:function(){var e=this.state.selectValue;return e.length>0}},{key:`hasOptions`,value:function(){return!!this.getFocusableOptions().length}},{key:`isClearable`,value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return t===void 0?n:t}},{key:`isOptionDisabled`,value:function(e,t){return aI(this.props,e,t)}},{key:`isOptionSelected`,value:function(e,t){return oI(this.props,e,t)}},{key:`filterOption`,value:function(e,t){return sI(this.props,e,t)}},{key:`formatOptionLabel`,value:function(e,t){if(typeof this.props.formatOptionLabel==`function`){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}else return this.getOptionLabel(e)}},{key:`formatGroupLabel`,value:function(e){return this.props.formatGroupLabel(e)}},{key:`startListeningComposition`,value:function(){document&&document.addEventListener&&(document.addEventListener(`compositionstart`,this.onCompositionStart,!1),document.addEventListener(`compositionend`,this.onCompositionEnd,!1))}},{key:`stopListeningComposition`,value:function(){document&&document.removeEventListener&&(document.removeEventListener(`compositionstart`,this.onCompositionStart),document.removeEventListener(`compositionend`,this.onCompositionEnd))}},{key:`startListeningToTouch`,value:function(){document&&document.addEventListener&&(document.addEventListener(`touchstart`,this.onTouchStart,!1),document.addEventListener(`touchmove`,this.onTouchMove,!1),document.addEventListener(`touchend`,this.onTouchEnd,!1))}},{key:`stopListeningToTouch`,value:function(){document&&document.removeEventListener&&(document.removeEventListener(`touchstart`,this.onTouchStart),document.removeEventListener(`touchmove`,this.onTouchMove),document.removeEventListener(`touchend`,this.onTouchEnd))}},{key:`renderInput`,value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,i=t.inputId,a=t.inputValue,o=t.tabIndex,s=t.form,c=t.menuIsOpen,l=t.required,u=this.getComponents(),d=u.Input,f=this.state,p=f.inputIsHidden,m=f.ariaSelection,h=this.commonProps,g=i||this.getElementId(`input`),_=J(J(J({"aria-autocomplete":`list`,"aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props[`aria-errormessage`],"aria-invalid":this.props[`aria-invalid`],"aria-label":this.props[`aria-label`],"aria-labelledby":this.props[`aria-labelledby`],"aria-required":l,role:`combobox`,"aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||``},c&&{"aria-controls":this.getElementId(`listbox`)}),!r&&{"aria-readonly":!0}),this.hasValue()?m?.action===`initial-input-focus`&&{"aria-describedby":this.getElementId(`live-region`)}:{"aria-describedby":this.getElementId(`placeholder`)});return r?e.createElement(d,Y({},h,{autoCapitalize:`none`,autoComplete:`off`,autoCorrect:`off`,id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:`false`,tabIndex:o,form:s,type:`text`,value:a},_)):e.createElement(uF,Y({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:WM,onFocus:this.onInputFocus,disabled:n,tabIndex:o,inputMode:`none`,form:s,value:``},_))}},{key:`renderPlaceholderOrValue`,value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,i=n.MultiValueContainer,a=n.MultiValueLabel,o=n.MultiValueRemove,s=n.SingleValue,c=n.Placeholder,l=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,m=u.inputValue,h=u.placeholder,g=this.state,_=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return m?null:e.createElement(c,Y({},l,{key:`placeholder`,isDisabled:f,isFocused:y,innerProps:{id:this.getElementId(`placeholder`)}}),h);if(p)return _.map(function(n,s){var c=n===v,u=`${t.getOptionLabel(n)}-${t.getOptionValue(n)}`;return e.createElement(r,Y({},l,{components:{Container:i,Label:a,Remove:o},isFocused:c,isDisabled:f,key:u,index:s,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,`value`))});if(m)return null;var b=_[0];return e.createElement(s,Y({},l,{data:b,isDisabled:f}),this.formatOptionLabel(b,`value`))}},{key:`renderClearIndicator`,value:function(){var t=this.getComponents(),n=t.ClearIndicator,r=this.commonProps,i=this.props,a=i.isDisabled,o=i.isLoading,s=this.state.isFocused;if(!this.isClearable()||!n||a||!this.hasValue()||o)return null;var c={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":`true`};return e.createElement(n,Y({},r,{innerProps:c,isFocused:s}))}},{key:`renderLoadingIndicator`,value:function(){var t=this.getComponents(),n=t.LoadingIndicator,r=this.commonProps,i=this.props,a=i.isDisabled,o=i.isLoading,s=this.state.isFocused;if(!n||!o)return null;var c={"aria-hidden":`true`};return e.createElement(n,Y({},r,{innerProps:c,isDisabled:a,isFocused:s}))}},{key:`renderIndicatorSeparator`,value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var i=this.commonProps,a=this.props.isDisabled,o=this.state.isFocused;return e.createElement(r,Y({},i,{isDisabled:a,isFocused:o}))}},{key:`renderDropdownIndicator`,value:function(){var t=this.getComponents(),n=t.DropdownIndicator;if(!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":`true`};return e.createElement(n,Y({},r,{innerProps:o,isDisabled:i,isFocused:a}))}},{key:`renderMenu`,value:function(){var t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,a=n.Menu,o=n.MenuList,s=n.MenuPortal,c=n.LoadingMessage,l=n.NoOptionsMessage,u=n.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,h=p.inputValue,g=p.isLoading,_=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,x=p.menuPlacement,S=p.menuPosition,C=p.menuPortalTarget,w=p.menuShouldBlockScroll,T=p.menuShouldScrollIntoView,E=p.noOptionsMessage,D=p.onMenuScrollToTop,O=p.onMenuScrollToBottom;if(!b)return null;var k=function(n,r){var i=n.type,a=n.data,o=n.isDisabled,s=n.isSelected,c=n.label,l=n.value,p=f===a,m=o?void 0:function(){return t.onOptionHover(a)},h=o?void 0:function(){return t.selectOption(a)},g=`${t.getElementId(`option`)}-${r}`,_={id:g,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:`option`,"aria-selected":t.isAppleDevice?void 0:s};return e.createElement(u,Y({},d,{innerProps:_,data:a,isDisabled:o,isSelected:s,key:g,label:c,type:i,value:l,isFocused:p,innerRef:p?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,`menu`))},A;if(this.hasOptions())A=this.getCategorizedOptions().map(function(n){if(n.type===`group`){var a=n.data,o=n.options,s=n.index,c=`${t.getElementId(`group`)}-${s}`,l=`${c}-heading`;return e.createElement(r,Y({},d,{key:c,data:a,options:o,Heading:i,headingProps:{id:l,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map(function(e){return k(e,`${s}-${e.index}`)}))}else if(n.type===`option`)return k(n,`${n.index}`)});else if(g){var j=_({inputValue:h});if(j===null)return null;A=e.createElement(c,d,j)}else{var M=E({inputValue:h});if(M===null)return null;A=e.createElement(l,d,M)}var N={minMenuHeight:v,maxMenuHeight:y,menuPlacement:x,menuPosition:S,menuShouldScrollIntoView:T},ee=e.createElement(wN,Y({},d,N),function(n){var r=n.ref,i=n.placerProps,s=i.placement,c=i.maxHeight;return e.createElement(a,Y({},d,N,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:s}),e.createElement(TF,{captureEnabled:m,onTopArrive:D,onBottomArrive:O,lockEnabled:w},function(n){return e.createElement(o,Y({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:`listbox`,"aria-multiselectable":d.isMulti,id:t.getElementId(`listbox`)},isLoading:g,maxHeight:c,focusedOption:f}),A)}))});return C||S===`fixed`?e.createElement(s,Y({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:x,menuPosition:S}),ee):ee}},{key:`renderFormField`,value:function(){var t=this,n=this.props,r=n.delimiter,i=n.isDisabled,a=n.isMulti,o=n.name,s=n.required,c=this.state.selectValue;if(s&&!this.hasValue()&&!i)return e.createElement(OF,{name:o,onFocus:this.onValueInputFocus});if(!(!o||i))if(a)if(r){var l=c.map(function(e){return t.getOptionValue(e)}).join(r);return e.createElement(`input`,{name:o,type:`hidden`,value:l})}else{var u=c.length>0?c.map(function(n,r){return e.createElement(`input`,{key:`i-${r}`,name:o,type:`hidden`,value:t.getOptionValue(n)})}):e.createElement(`input`,{name:o,type:`hidden`,value:``});return e.createElement(`div`,null,u)}else{var d=c[0]?this.getOptionValue(c[0]):``;return e.createElement(`input`,{name:o,type:`hidden`,value:d})}}},{key:`renderLiveRegion`,value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,i=n.focusedOption,a=n.focusedValue,o=n.isFocused,s=n.selectValue,c=this.getFocusableOptions();return e.createElement(ZP,Y({},t,{id:this.getElementId(`live-region`),ariaSelection:r,focusedOption:i,focusedValue:a,isFocused:o,selectValue:s,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:`render`,value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,i=t.SelectContainer,a=t.ValueContainer,o=this.props,s=o.className,c=o.id,l=o.isDisabled,u=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return e.createElement(i,Y({},f,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),e.createElement(n,Y({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:u}),e.createElement(a,Y({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,Y({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:`getDerivedStateFromProps`,value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,o=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,l=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,m=qM(u),h={};if(n&&(u!==n.value||l!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?QF(e,m):[],_=d?ZF(YF(e,m),`${c}-option`):[],v=r?eI(t,m):null,y=tI(t,g),b=nI(_,y);h={selectValue:m,focusedOption:y,focusedOptionId:b,focusableOptionsWithIds:_,focusedValue:v,clearFocusValueOnUpdate:!1}}var x=i!=null&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},S=a,C=o&&s;return o&&!C&&(S={value:pN(p,m,m[0]||null),options:m,action:`initial-input-focus`},C=!s),a?.action===`initial-input-focus`&&(S=null),J(J(J({},h),x),{},{prevProps:e,ariaSelection:S,prevWasFocused:C})}}]),r}(r);uI.defaultProps=qF;var dI=c(function(t,n){var r=Qk(t);return e.createElement(uI,Y({ref:n},r))}),fI=dI,pI=[`allowCreateWhileLoading`,`createOptionPosition`,`formatCreateLabel`,`isValidNewOption`,`getNewOptionData`,`onCreateOption`,`options`,`onChange`],mI=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),i=String(n.getOptionValue(t)).toLowerCase(),a=String(n.getOptionLabel(t)).toLowerCase();return i===r||a===r},hI={formatCreateLabel:function(e){return`Create "${e}"`},isValidNewOption:function(e,t,n,r){return!(!e||t.some(function(t){return mI(e,t,r)})||n.some(function(t){return mI(e,t,r)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function gI(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?`last`:r,a=e.formatCreateLabel,o=a===void 0?hI.formatCreateLabel:a,s=e.isValidNewOption,c=s===void 0?hI.isValidNewOption:s,l=e.getNewOptionData,d=l===void 0?hI.getNewOptionData:l,f=e.onCreateOption,p=e.options,m=p===void 0?[]:p,h=e.onChange,_=Xk(e,pI),v=_.getOptionValue,y=v===void 0?LF:v,b=_.getOptionLabel,x=b===void 0?IF:b,S=_.inputValue,C=_.isLoading,w=_.isMulti,T=_.value,E=_.name,D=g(function(){return c(S,qM(T),m,{getOptionValue:y,getOptionLabel:x})?d(S,o(S)):void 0},[o,d,x,y,S,c,m,T]),O=g(function(){return(n||!C)&&D?i===`first`?[D].concat(fA(m)):[].concat(fA(m),[D]):m},[n,i,C,D,m]),k=u(function(e,t){if(t.action!==`select-option`)return h(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]===D){if(f)f(S);else{var r=d(S,S),i={action:`create-option`,name:E,option:r};h(pN(w,[].concat(fA(qM(T)),[r]),r),i)}return}h(e,t)},[d,S,w,E,D,f,h,T]);return J(J({},_),{},{options:O,onChange:k})}var _I=c(function(t,n){var r=Qk(t),i=gI(r);return e.createElement(uI,Y({ref:n},i))}),vI=_I;const yI=`
1267
1267
  tw:text-sm
1268
1268
  tw:text-sq-text-color
1269
1269
  tw:dark:text-sq-dark-text
1270
- `,_I={small:`reactSelectMinHeightSmall tw:pr-1 tw:pl-2`,regular:`reactSelectMinHeight tw:pr-1.5 tw:pl-2.5`},vI=e=>b(LP.SelectContainer,{...e,innerProps:{...e.innerProps,"data-testid":e.selectProps.testId}}),yI=({options:e,value:t,placeholder:n=`select`,noOptionsMessage:r=`no matching options`,isSearchable:i=!0,creatable:a=!1,isMulti:o=!1,isClearable:s=!1,closeMenuOnSelect:c=!0,id:l,inputId:u,menuPortalTarget:d,getOptionLabel:f,getSelectedValueLabel:p,getOptionValue:m,onChange:h,menuIsOpen:g,menuPlacement:_=`auto`,extraClassNames:v,controlClassNames:y=``,inputGroup:x,filterConfig:S,filterOption:C,small:w=!1,isDisabled:T=!1,showError:E=!1,isLoading:D=!1,formatGroupLabel:O,onRemove:k,defaultValue:A,onMenuOpen:j,onMenuClose:M,components:N,onMenuInputFocus:ee,onInputChange:te,inputValue:P,onMenuScrollToBottom:ne,testId:F})=>{let re={SelectContainer:vI,...N},ie=(e,{context:t})=>{let n=p||f;return f||p?t===`value`?n?n(e):e.label:f?f(e):e.label:e.label},ae=(e,t)=>{if(o&&k&&t.action===`remove-value`){k({id:t.removedValue});return}h(e)},I=c?void 0:!1,oe={id:l,value:t,inputId:u,placeholder:n,closeMenuOnSelect:c,blurInputOnSelect:I,isSearchable:a?!0:i,isMulti:o,isClearable:s,isLoading:D,defaultValue:A,noOptionsMessage:()=>r,menuPortalTarget:d,menuIsOpen:g,onChange:ae,unstyled:!0,menuPlacement:_,formatOptionLabel:ie,formatGroupLabel:O,getOptionValue:m,options:e,isDisabled:T,onMenuOpen:j,onMenuClose:M,components:re,testId:F,onMenuInputFocus:ee,onInputChange:te,inputValue:P,onMenuScrollToBottom:ne,captureMenuScroll:void 0,hideSelectedOptions:o,filterOption:C||(S?aF(S):void 0),classNames:{control:({menuIsOpen:e})=>{let t=e?`tw:rounded-t-md`:`tw:rounded-md`;return x===`left`?t=e?`tw:rounded-tl-md`:`tw:rounded-l-md`:x===`right`&&(t=e?`tw:rounded-tr-md`:`tw:rounded-r-md`),H(`
1270
+ `,bI={small:`reactSelectMinHeightSmall tw:pr-1 tw:pl-2`,regular:`reactSelectMinHeight tw:pr-1.5 tw:pl-2.5`},xI=e=>b(BP.SelectContainer,{...e,innerProps:{...e.innerProps,"data-testid":e.selectProps.testId}}),SI=({options:e,value:t,placeholder:n=`select`,noOptionsMessage:r=`no matching options`,isSearchable:i=!0,creatable:a=!1,isMulti:o=!1,isClearable:s=!1,closeMenuOnSelect:c=!0,id:l,inputId:u,menuPortalTarget:d,getOptionLabel:f,getSelectedValueLabel:p,getOptionValue:m,onChange:h,menuIsOpen:g,menuPlacement:_=`auto`,extraClassNames:v,controlClassNames:y=``,inputGroup:x,filterConfig:S,filterOption:C,small:w=!1,isDisabled:T=!1,showError:E=!1,isLoading:D=!1,formatGroupLabel:O,onRemove:k,defaultValue:A,onMenuOpen:j,onMenuClose:M,components:N,onMenuInputFocus:ee,onInputChange:te,inputValue:P,onMenuScrollToBottom:ne,testId:F})=>{let re={SelectContainer:xI,...N},ie=(e,{context:t})=>{let n=p||f;return f||p?t===`value`?n?n(e):e.label:f?f(e):e.label:e.label},ae=(e,t)=>{if(o&&k&&t.action===`remove-value`){k({id:t.removedValue});return}h(e)},I=c?void 0:!1,oe={id:l,value:t,inputId:u,placeholder:n,closeMenuOnSelect:c,blurInputOnSelect:I,isSearchable:a?!0:i,isMulti:o,isClearable:s,isLoading:D,defaultValue:A,noOptionsMessage:()=>r,menuPortalTarget:d,menuIsOpen:g,onChange:ae,unstyled:!0,menuPlacement:_,formatOptionLabel:ie,formatGroupLabel:O,getOptionValue:m,options:e,isDisabled:T,onMenuOpen:j,onMenuClose:M,components:re,testId:F,onMenuInputFocus:ee,onInputChange:te,inputValue:P,onMenuScrollToBottom:ne,captureMenuScroll:void 0,hideSelectedOptions:o,filterOption:C||(S?cF(S):void 0),classNames:{control:({menuIsOpen:e})=>{let t=e?`tw:rounded-t-md`:`tw:rounded-md`;return x===`left`?t=e?`tw:rounded-tl-md`:`tw:rounded-l-md`:x===`right`&&(t=e?`tw:rounded-tr-md`:`tw:rounded-r-md`),H(`
1271
1271
  tw:border
1272
1272
  tw:border-solid
1273
1273
  `,!T&&`
@@ -1280,7 +1280,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1280
1280
  `,t,E?`tw:border-sq-danger`:`
1281
1281
  tw:border-sq-disabled-gray
1282
1282
  tw:dark:border-sq-dark-disabled-gray
1283
- `,w?_I.small:_I.regular,y,`
1283
+ `,w?bI.small:bI.regular,y,`
1284
1284
  tw:focus:ring-0
1285
1285
  tw:disabled:cursor-not-allowed
1286
1286
  `,!T&&`
@@ -1296,7 +1296,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1296
1296
  tw:text-gray-400
1297
1297
  tw:dark:text-sq-dark-text-lighter
1298
1298
  specOpenSelect
1299
- `,container:()=>H(gI,v,`tw:pointer-events-auto!`),input:()=>H(gI,`specSelectInput`),menuList:()=>`
1299
+ `,container:()=>H(yI,v,`tw:pointer-events-auto!`),input:()=>H(yI,`specSelectInput`),menuList:()=>`
1300
1300
  tw:z-[9999]!
1301
1301
  tw:min-w-fit
1302
1302
  tw:rounded-b
@@ -1343,15 +1343,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1343
1343
  tw:text-sq-darkish-gray
1344
1344
  tw:dark:bg-sq-dark-disabled-gray
1345
1345
  specSelectGroupHeading
1346
- `}};return b(a?hI:lI,{...oe})};var bI=yI;const xI=`qomponents`,SI=[`tw:relative`,`tw:-ml-px`,`tw:inline-flex`,`tw:items-center`,`tw:justify-center`,`tw:border`,`tw:border-solid`,`tw:border-sq-disabled-gray`,`tw:bg-sq-white`,`tw:text-sq-text-color`,`tw:no-underline`,`tw:hover:text-sq-theme-dark`,`tw:focus:text-sq-theme-dark`,`tw:active:text-sq-theme-dark`,`tw:dark:border-sq-dark-disabled-gray`,`tw:dark:bg-sq-dark-background`,`tw:dark:text-sq-dark-text`,`tw:dark:hover:text-sq-theme-dark-dark`,`tw:dark:focus:text-sq-theme-dark-dark`,`tw:dark:active:text-sq-theme-dark-dark`,`tw:cursor-pointer`],CI={small:`tw:min-w-6 tw:min-h-6`,normal:`tw:min-w-8 tw:min-h-[34px]`},wI=[`tw:cursor-not-allowed`,`tw:opacity-50`,`tw:pointer-events-none`,`tw:hover:text-sq-text-color`,`tw:focus:text-sq-text-color`,`tw:active:text-sq-text-color`,`tw:dark:hover:text-sq-dark-text`,`tw:dark:focus:text-sq-dark-text`,`tw:dark:active:text-sq-dark-text`],TI=[`tw:z-10`,`tw:border-sq-theme-dark!`,`tw:bg-sq-theme-dark!`,`tw:text-sq-white!`,`tw:hover:text-sq-white!`,`tw:focus:text-sq-white!`,`tw:active:text-sq-white!`,`tw:dark:border-sq-theme-dark-dark!`,`tw:dark:bg-sq-theme-dark-dark!`,`tw:dark:text-sq-white!`,`tw:dark:hover:text-sq-white!`,`tw:dark:focus:text-sq-white!`,`tw:dark:active:text-sq-white!`],EI=[`tw:inline-flex`,`tw:min-h-8`,`tw:min-w-8`,`tw:items-center`,`tw:justify-center`,`tw:bg-transparent`,`tw:text-sq-text-color`,`tw:dark:text-sq-dark-text`],DI={small:`tw:w-[55px]`,normal:`tw:w-[65px]`},OI={small:`tw:gap-1`,normal:`tw:gap-1.5`},kI={small:`tw:px-[6px] tw:py-px`,normal:`tw:px-[15px] tw:py-[6px]`},AI={small:`tw:ml-[5px]`,normal:`tw:my-1.5`},jI={small:``,normal:`tw:my-1.5`},MI={small:``,normal:`tw:ml-[10px]`},NI=e=>!Number.isFinite(e)||e<=0?0:Math.ceil(e),PI=({currentPage:e,pageCount:t,pageRangeDisplayed:n,marginPagesDisplayed:r})=>{if(t<=0)return[];let i=new Set,a=Math.min(n,t),o=Math.floor((a-1)/2),s=a-o-1,c=Math.max(e-o,1),l=Math.min(e+s,t);l-c+1<a&&(c===1?l=Math.min(t,c+a-1):l===t&&(c=Math.max(1,t-a+1)));for(let e=1;e<=Math.min(r,t);e+=1)i.add(e);for(let e=c;e<=l;e+=1)i.add(e);for(let e=Math.max(t-r+1,1);e<=t;e+=1)i.add(e);let u=[...i].sort((e,t)=>e-t),d=[];return u.forEach((e,t)=>{let n=u[t-1];if(n){let t=e-n;t===2?d.push({type:`page`,page:n+1}):t>2&&d.push({type:`break`,key:`break-${n}-${e}`})}d.push({type:`page`,page:e})}),d},FI=e=>Array.isArray(e)?e.map(e=>({label:e,value:e})):Array.from({length:Math.max(e,0)},(e,t)=>{let n=t+1;return{label:n,value:n}}),II=(e,t,{active:n=!1,disabled:r=!1,rounded:i=``})=>[...SI,CI[t],e,i,n?TI.join(` `):``,r?wI.join(` `):``].filter(Boolean).join(` `),LI=e=>[...EI,e].filter(Boolean).join(` `),RI=({onPageChange:e,pageCount:t,pageNumber:n,pageSize:r,onPageSizeChange:i=()=>void 0,variant:a=`normal`,pageRangeDisplayed:o,marginPagesDisplayed:s,total:c,pageSizeOptions:l,size:u=`normal`,creatablePageSizes:d=!1,totalLabel:f,pageLabel:p,showLabel:m,previousLabel:h,previousAriaLabel:g,nextLabel:_,nextAriaLabel:v,breakLabel:y,pageClassName:S=``,pageLinkClassName:C=``,previousClassName:w=``,previousLinkClassName:T=``,nextClassName:E=``,nextLinkClassName:D=``,activeClassName:O=``,containerClassName:k=``,"aria-label":A,testId:j=`paginator`})=>{let{t:M}=Pk(xI),N=a===`compact`,ee=f??M(`PAGINATOR.TOTAL`,{defaultValue:`Total:`}),te=p??M(`PAGINATOR.PAGE`,{defaultValue:`Page:`}),P=m??M(`PAGINATOR.SHOW`,{defaultValue:`Show:`}),ne=h??M(`PAGINATOR.PREVIOUS`,{defaultValue:`Previous`}),F=g??M(`PAGINATOR.PREVIOUS`,{defaultValue:`Previous`}),re=_??M(`PAGINATOR.NEXT`,{defaultValue:`Next`}),ie=v??M(`PAGINATOR.NEXT`,{defaultValue:`Next`}),ae=y??M(`PAGINATOR.BREAK`,{defaultValue:`...`}),I=A??M(`PAGINATOR.ARIA_LABEL`,{defaultValue:`Pagination`}),oe=NI(t),se=r!=null,ce=se?l??[5,10,15,20,50]:[],L=FI(ce),le=FI(oe),R=oe>0?Math.min(Math.max(n,1),oe):1,ue=o??(N?1:2),z=s??(N?1:2),de=PI({currentPage:R,pageCount:oe,pageRangeDisplayed:ue,marginPagesDisplayed:z}),fe=DI[u],pe=OI[u],me=kI[u],he=t=>{t&&e(t.value)},ge=e=>{e&&i(e.value)};return x(`div`,{className:`tw:flex tw:flex-wrap tw:items-center tw:gap-x-3 tw:gap-y-2 tw:text-sq-text-color tw:dark:text-sq-dark-text ${N?`tw:flex-1 tw:justify-between`:`tw:justify-end`}`,"data-testid":j,children:[x(`div`,{className:`tw:flex tw:flex-nowrap tw:items-center ${pe}`,children:[x(`div`,{"data-testid":`goToPageWrapper`,className:`tw:flex tw:flex-nowrap tw:items-center ${pe} ${AI[u]}`,children:[c!==void 0&&x(`span`,{className:`tw:whitespace-nowrap`,children:[ee,` `,b(`strong`,{children:c})]}),b(`span`,{children:te}),b(bI,{small:u===`small`,placeholder:``,menuPortalTarget:typeof document>`u`?null:document.body,extraClassNames:fe,value:le.find(({value:e})=>e===R),options:le,isSearchable:!0,onChange:he})]}),se&&x(`div`,{"data-testid":`itemCountWrapper`,className:`tw:flex tw:flex-nowrap tw:items-center ${pe} ${jI[u]}`,children:[b(`span`,{className:MI[u],children:P}),b(bI,{small:u===`small`,menuPlacement:`auto`,menuPortalTarget:typeof document>`u`?null:document.body,extraClassNames:fe,value:L.find(({value:e})=>e===r),options:L,isSearchable:!1,onChange:ge,creatable:d})]})]}),b(`nav`,{"aria-label":I,className:`tw:flex`,children:x(`ul`,{className:`tw:flex tw:list-none tw:m-0 tw:p-0 tw:items-center ${k}`.trim(),children:[b(`li`,{className:w,children:b(`button`,{type:`button`,"aria-label":F,disabled:R<=1||oe<=0,onClick:()=>e(R-1),className:`${II(me,u,{disabled:R<=1||oe<=0,rounded:`tw:rounded-l-lg`})} ${T}`.trim(),children:N?h??b(`span`,{"aria-hidden":`true`,children:`‹`}):ne})}),de.map(t=>b(`li`,{className:t.type===`page`?`${S} ${t.page===R?O:``}`.trim():void 0,children:t.type===`page`?b(`button`,{type:`button`,"aria-current":t.page===R?`page`:void 0,"aria-label":M(`PAGINATOR.PAGE_NUMBER`,{page:t.page,defaultValue:`Page {{page}}`}),onClick:()=>{t.page!==R&&e(t.page)},className:`${II(me,u,{active:t.page===R})} ${C}`.trim(),children:t.page}):b(`span`,{"aria-hidden":`true`,className:LI(me),children:ae})},t.type===`page`?`page-${t.page}`:t.key)),b(`li`,{className:E,children:b(`button`,{type:`button`,"aria-label":ie,disabled:R>=oe||oe<=0,onClick:()=>e(R+1),className:`${II(me,u,{disabled:R>=oe||oe<=0,rounded:`tw:rounded-r-lg`})} ${D}`.trim(),children:N?_??b(`span`,{"aria-hidden":`true`,children:`›`}):re})})]})})]})};var zI=RI;const BI=({children:e,testId:t,extraClassNames:n=``})=>b(`span`,{"data-testid":t,className:`tw:inline-flex tw:h-8 tw:items-center tw:rounded-full tw:border tw:border-solid tw:px-3 tw:text-sm tw:whitespace-nowrap tw:border-sq-tool-btn-border tw:bg-sq-colored-hover tw:text-black tw:dark:bg-sq-colored-hover-dark tw:dark:text-white ${n}`.trim(),children:e});var VI=BI;function HI(t,n=[]){let r=[];function i(n,i){let a=e.createContext(i);a.displayName=n+`Context`;let o=r.length;r=[...r,i];let s=n=>{let{scope:r,children:i,...s}=n,c=r?.[t]?.[o]||a,l=e.useMemo(()=>s,Object.values(s));return b(c.Provider,{value:l,children:i})};s.displayName=n+`Provider`;function c(r,s){let c=s?.[t]?.[o]||a,l=e.useContext(c);if(l)return l;if(i!==void 0)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}return[s,c]}let a=()=>{let n=r.map(t=>e.createContext(t));return function(r){let i=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:i}}),[r,i])}};return a.scopeName=t,[i,UI(a,...n)]}function UI(...t){let n=t[0];if(t.length===1)return n;let r=()=>{let r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){let i=r.reduce((e,{useScope:n,scopeName:r})=>{let i=n(t),a=i[`__scope${r}`];return{...e,...a}},{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}var WI=Symbol.for(`react.lazy`),GI=e.use;function KI(e){return typeof e==`object`&&!!e&&`then`in e}function qI(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===WI&&`_payload`in e&&KI(e._payload)}function JI(t){let n=YI(t),r=e.forwardRef((t,r)=>{let{children:i,...a}=t;qI(i)&&typeof GI==`function`&&(i=GI(i._payload));let o=e.Children.toArray(i),s=o.find(ZI);if(s){let t=s.props.children,i=o.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return b(n,{...a,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,i):null})}return b(n,{...a,ref:r,children:i})});return r.displayName=`${t}.Slot`,r}function YI(t){let n=e.forwardRef((t,n)=>{let{children:r,...i}=t;if(qI(r)&&typeof GI==`function`&&(r=GI(r._payload)),e.isValidElement(r)){let t=$I(r),a=QI(i,r.props);return r.type!==e.Fragment&&(a.ref=n?ae(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var XI=Symbol(`radix.slottable`);function ZI(t){return e.isValidElement(t)&&typeof t.type==`function`&&`__radixId`in t.type&&t.type.__radixId===XI}function QI(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r],o=/^on[A-Z]/.test(r);o?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function $I(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var eL=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`],tL=eL.reduce((t,n)=>{let r=JI(`Primitive.${n}`),i=e.forwardRef((e,t)=>{let{asChild:i,...a}=e,o=i?r:n;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),b(o,{...a,ref:t})});return i.displayName=`Primitive.${n}`,{...t,[n]:i}},{}),nL=`Progress`,rL=100,[iL,aL]=HI(nL),[oL,sL]=iL(nL),cL=e.forwardRef((e,t)=>{let{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=dL,...o}=e;(i||i===0)&&!mL(i)&&console.error(gL(`${i}`,`Progress`));let s=mL(i)?i:rL;r!==null&&!hL(r,s)&&console.error(_L(`${r}`,`Progress`));let c=hL(r,s)?r:null,l=pL(c)?a(c,s):void 0;return b(oL,{scope:n,value:c,max:s,children:b(tL.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":pL(c)?c:void 0,"aria-valuetext":l,role:`progressbar`,"data-state":fL(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})});cL.displayName=nL;var lL=`ProgressIndicator`,uL=e.forwardRef((e,t)=>{let{__scopeProgress:n,...r}=e,i=sL(lL,n);return b(tL.div,{"data-state":fL(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});uL.displayName=lL;function dL(e,t){return`${Math.round(e/t*100)}%`}function fL(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}function pL(e){return typeof e==`number`}function mL(e){return pL(e)&&!isNaN(e)&&e>0}function hL(e,t){return pL(e)&&!isNaN(e)&&e<=t&&e>=0}function gL(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${rL}\`.`}function _L(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
1346
+ `}};return b(a?vI:fI,{...oe})};var CI=SI;const wI=`qomponents`,TI=[`tw:relative`,`tw:-ml-px`,`tw:inline-flex`,`tw:items-center`,`tw:justify-center`,`tw:border`,`tw:border-solid`,`tw:border-sq-disabled-gray`,`tw:bg-sq-white`,`tw:text-sq-text-color`,`tw:no-underline`,`tw:hover:text-sq-theme-dark`,`tw:focus:text-sq-theme-dark`,`tw:active:text-sq-theme-dark`,`tw:dark:border-sq-dark-disabled-gray`,`tw:dark:bg-sq-dark-background`,`tw:dark:text-sq-dark-text`,`tw:dark:hover:text-sq-theme-dark-dark`,`tw:dark:focus:text-sq-theme-dark-dark`,`tw:dark:active:text-sq-theme-dark-dark`,`tw:cursor-pointer`],EI={small:`tw:min-w-6 tw:min-h-6`,normal:`tw:min-w-8 tw:min-h-[34px]`},DI=[`tw:cursor-not-allowed`,`tw:opacity-50`,`tw:pointer-events-none`,`tw:hover:text-sq-text-color`,`tw:focus:text-sq-text-color`,`tw:active:text-sq-text-color`,`tw:dark:hover:text-sq-dark-text`,`tw:dark:focus:text-sq-dark-text`,`tw:dark:active:text-sq-dark-text`],OI=[`tw:z-10`,`tw:border-sq-theme-dark!`,`tw:bg-sq-theme-dark!`,`tw:text-sq-white!`,`tw:hover:text-sq-white!`,`tw:focus:text-sq-white!`,`tw:active:text-sq-white!`,`tw:dark:border-sq-theme-dark-dark!`,`tw:dark:bg-sq-theme-dark-dark!`,`tw:dark:text-sq-white!`,`tw:dark:hover:text-sq-white!`,`tw:dark:focus:text-sq-white!`,`tw:dark:active:text-sq-white!`],kI=[`tw:inline-flex`,`tw:min-h-8`,`tw:min-w-8`,`tw:items-center`,`tw:justify-center`,`tw:bg-transparent`,`tw:text-sq-text-color`,`tw:dark:text-sq-dark-text`],AI={small:`tw:w-[55px]`,normal:`tw:w-[65px]`},jI={small:`tw:gap-1`,normal:`tw:gap-1.5`},MI={small:`tw:px-[6px] tw:py-px`,normal:`tw:px-[15px] tw:py-[6px]`},NI={small:`tw:ml-[5px]`,normal:`tw:my-1.5`},PI={small:``,normal:`tw:my-1.5`},FI={small:``,normal:`tw:ml-[10px]`},II=e=>!Number.isFinite(e)||e<=0?0:Math.ceil(e),LI=({currentPage:e,pageCount:t,pageRangeDisplayed:n,marginPagesDisplayed:r})=>{if(t<=0)return[];let i=new Set,a=Math.min(n,t),o=Math.floor((a-1)/2),s=a-o-1,c=Math.max(e-o,1),l=Math.min(e+s,t);l-c+1<a&&(c===1?l=Math.min(t,c+a-1):l===t&&(c=Math.max(1,t-a+1)));for(let e=1;e<=Math.min(r,t);e+=1)i.add(e);for(let e=c;e<=l;e+=1)i.add(e);for(let e=Math.max(t-r+1,1);e<=t;e+=1)i.add(e);let u=[...i].sort((e,t)=>e-t),d=[];return u.forEach((e,t)=>{let n=u[t-1];if(n){let t=e-n;t===2?d.push({type:`page`,page:n+1}):t>2&&d.push({type:`break`,key:`break-${n}-${e}`})}d.push({type:`page`,page:e})}),d},RI=e=>Array.isArray(e)?e.map(e=>({label:e,value:e})):Array.from({length:Math.max(e,0)},(e,t)=>{let n=t+1;return{label:n,value:n}}),zI=(e,t,{active:n=!1,disabled:r=!1,rounded:i=``})=>[...TI,EI[t],e,i,n?OI.join(` `):``,r?DI.join(` `):``].filter(Boolean).join(` `),BI=e=>[...kI,e].filter(Boolean).join(` `),VI=({onPageChange:e,pageCount:t,pageNumber:n,pageSize:r,onPageSizeChange:i=()=>void 0,variant:a=`normal`,pageRangeDisplayed:o,marginPagesDisplayed:s,total:c,pageSizeOptions:l,size:u=`normal`,creatablePageSizes:d=!1,totalLabel:f,pageLabel:p,showLabel:m,previousLabel:h,previousAriaLabel:g,nextLabel:_,nextAriaLabel:v,breakLabel:y,pageClassName:S=``,pageLinkClassName:C=``,previousClassName:w=``,previousLinkClassName:T=``,nextClassName:E=``,nextLinkClassName:D=``,activeClassName:O=``,containerClassName:k=``,"aria-label":A,testId:j=`paginator`})=>{let{t:M}=Lk(wI),N=a===`compact`,ee=f??M(`PAGINATOR.TOTAL`,{defaultValue:`Total:`}),te=p??M(`PAGINATOR.PAGE`,{defaultValue:`Page:`}),P=m??M(`PAGINATOR.SHOW`,{defaultValue:`Show:`}),ne=h??M(`PAGINATOR.PREVIOUS`,{defaultValue:`Previous`}),F=g??M(`PAGINATOR.PREVIOUS`,{defaultValue:`Previous`}),re=_??M(`PAGINATOR.NEXT`,{defaultValue:`Next`}),ie=v??M(`PAGINATOR.NEXT`,{defaultValue:`Next`}),ae=y??M(`PAGINATOR.BREAK`,{defaultValue:`...`}),I=A??M(`PAGINATOR.ARIA_LABEL`,{defaultValue:`Pagination`}),oe=II(t),se=r!=null,ce=se?l??[5,10,15,20,50]:[],L=RI(ce),le=RI(oe),R=oe>0?Math.min(Math.max(n,1),oe):1,ue=o??(N?1:2),z=s??(N?1:2),de=LI({currentPage:R,pageCount:oe,pageRangeDisplayed:ue,marginPagesDisplayed:z}),fe=AI[u],pe=jI[u],me=MI[u],he=t=>{t&&e(t.value)},ge=e=>{e&&i(e.value)};return x(`div`,{className:`tw:flex tw:flex-wrap tw:items-center tw:gap-x-3 tw:gap-y-2 tw:text-sq-text-color tw:dark:text-sq-dark-text ${N?`tw:flex-1 tw:justify-between`:`tw:justify-end`}`,"data-testid":j,children:[x(`div`,{className:`tw:flex tw:flex-nowrap tw:items-center ${pe}`,children:[x(`div`,{"data-testid":`goToPageWrapper`,className:`tw:flex tw:flex-nowrap tw:items-center ${pe} ${NI[u]}`,children:[c!==void 0&&x(`span`,{className:`tw:whitespace-nowrap`,children:[ee,` `,b(`strong`,{children:c})]}),b(`span`,{children:te}),b(CI,{small:u===`small`,placeholder:``,menuPortalTarget:typeof document>`u`?null:document.body,extraClassNames:fe,value:le.find(({value:e})=>e===R),options:le,isSearchable:!0,onChange:he})]}),se&&x(`div`,{"data-testid":`itemCountWrapper`,className:`tw:flex tw:flex-nowrap tw:items-center ${pe} ${PI[u]}`,children:[b(`span`,{className:FI[u],children:P}),b(CI,{small:u===`small`,menuPlacement:`auto`,menuPortalTarget:typeof document>`u`?null:document.body,extraClassNames:fe,value:L.find(({value:e})=>e===r),options:L,isSearchable:!1,onChange:ge,creatable:d})]})]}),b(`nav`,{"aria-label":I,className:`tw:flex`,children:x(`ul`,{className:`tw:flex tw:list-none tw:m-0 tw:p-0 tw:items-center ${k}`.trim(),children:[b(`li`,{className:w,children:b(`button`,{type:`button`,"aria-label":F,disabled:R<=1||oe<=0,onClick:()=>e(R-1),className:`${zI(me,u,{disabled:R<=1||oe<=0,rounded:`tw:rounded-l-lg`})} ${T}`.trim(),children:N?h??b(`span`,{"aria-hidden":`true`,children:`‹`}):ne})}),de.map(t=>b(`li`,{className:t.type===`page`?`${S} ${t.page===R?O:``}`.trim():void 0,children:t.type===`page`?b(`button`,{type:`button`,"aria-current":t.page===R?`page`:void 0,"aria-label":M(`PAGINATOR.PAGE_NUMBER`,{page:t.page,defaultValue:`Page {{page}}`}),onClick:()=>{t.page!==R&&e(t.page)},className:`${zI(me,u,{active:t.page===R})} ${C}`.trim(),children:t.page}):b(`span`,{"aria-hidden":`true`,className:BI(me),children:ae})},t.type===`page`?`page-${t.page}`:t.key)),b(`li`,{className:E,children:b(`button`,{type:`button`,"aria-label":ie,disabled:R>=oe||oe<=0,onClick:()=>e(R+1),className:`${zI(me,u,{disabled:R>=oe||oe<=0,rounded:`tw:rounded-r-lg`})} ${D}`.trim(),children:N?_??b(`span`,{"aria-hidden":`true`,children:`›`}):re})})]})})]})};var HI=VI;const UI=({children:e,testId:t,extraClassNames:n=``})=>b(`span`,{"data-testid":t,className:`tw:inline-flex tw:h-8 tw:items-center tw:rounded-full tw:border tw:border-solid tw:px-3 tw:text-sm tw:whitespace-nowrap tw:border-sq-tool-btn-border tw:bg-sq-colored-hover tw:text-black tw:dark:bg-sq-colored-hover-dark tw:dark:text-white ${n}`.trim(),children:e});var WI=UI;function GI(t,n=[]){let r=[];function i(n,i){let a=e.createContext(i);a.displayName=n+`Context`;let o=r.length;r=[...r,i];let s=n=>{let{scope:r,children:i,...s}=n,c=r?.[t]?.[o]||a,l=e.useMemo(()=>s,Object.values(s));return b(c.Provider,{value:l,children:i})};s.displayName=n+`Provider`;function c(r,s){let c=s?.[t]?.[o]||a,l=e.useContext(c);if(l)return l;if(i!==void 0)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}return[s,c]}let a=()=>{let n=r.map(t=>e.createContext(t));return function(r){let i=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:i}}),[r,i])}};return a.scopeName=t,[i,KI(a,...n)]}function KI(...t){let n=t[0];if(t.length===1)return n;let r=()=>{let r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){let i=r.reduce((e,{useScope:n,scopeName:r})=>{let i=n(t),a=i[`__scope${r}`];return{...e,...a}},{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}var qI=Symbol.for(`react.lazy`),JI=e.use;function YI(e){return typeof e==`object`&&!!e&&`then`in e}function XI(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===qI&&`_payload`in e&&YI(e._payload)}function ZI(t){let n=QI(t),r=e.forwardRef((t,r)=>{let{children:i,...a}=t;XI(i)&&typeof JI==`function`&&(i=JI(i._payload));let o=e.Children.toArray(i),s=o.find(eL);if(s){let t=s.props.children,i=o.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return b(n,{...a,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,i):null})}return b(n,{...a,ref:r,children:i})});return r.displayName=`${t}.Slot`,r}function QI(t){let n=e.forwardRef((t,n)=>{let{children:r,...i}=t;if(XI(r)&&typeof JI==`function`&&(r=JI(r._payload)),e.isValidElement(r)){let t=nL(r),a=tL(i,r.props);return r.type!==e.Fragment&&(a.ref=n?ae(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var $I=Symbol(`radix.slottable`);function eL(t){return e.isValidElement(t)&&typeof t.type==`function`&&`__radixId`in t.type&&t.type.__radixId===$I}function tL(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r],o=/^on[A-Z]/.test(r);o?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function nL(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rL=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`],iL=rL.reduce((t,n)=>{let r=ZI(`Primitive.${n}`),i=e.forwardRef((e,t)=>{let{asChild:i,...a}=e,o=i?r:n;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),b(o,{...a,ref:t})});return i.displayName=`Primitive.${n}`,{...t,[n]:i}},{}),aL=`Progress`,oL=100,[sL,cL]=GI(aL),[lL,uL]=sL(aL),dL=e.forwardRef((e,t)=>{let{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=mL,...o}=e;(i||i===0)&&!_L(i)&&console.error(yL(`${i}`,`Progress`));let s=_L(i)?i:oL;r!==null&&!vL(r,s)&&console.error(bL(`${r}`,`Progress`));let c=vL(r,s)?r:null,l=gL(c)?a(c,s):void 0;return b(lL,{scope:n,value:c,max:s,children:b(iL.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":gL(c)?c:void 0,"aria-valuetext":l,role:`progressbar`,"data-state":hL(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})});dL.displayName=aL;var fL=`ProgressIndicator`,pL=e.forwardRef((e,t)=>{let{__scopeProgress:n,...r}=e,i=uL(fL,n);return b(iL.div,{"data-state":hL(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});pL.displayName=fL;function mL(e,t){return`${Math.round(e/t*100)}%`}function hL(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}function gL(e){return typeof e==`number`}function _L(e){return gL(e)&&!isNaN(e)&&e>0}function vL(e,t){return gL(e)&&!isNaN(e)&&e<=t&&e>=0}function yL(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${oL}\`.`}function bL(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
1347
1347
  - a positive number
1348
- - less than the value passed to \`max\` (or ${rL} if no \`max\` prop is set)
1348
+ - less than the value passed to \`max\` (or ${oL} if no \`max\` prop is set)
1349
1349
  - \`null\` or \`undefined\` if the progress is indeterminate.
1350
1350
 
1351
- Defaulting to \`null\`.`}var vL=cL,yL=uL,bL=M(((exports,t)=>{(function(e){var n=/^\s+/,r=/\s+$/,i=0,a=e.round,o=e.min,s=e.max,c=e.random;function l(e,t){if(e||=``,t||={},e instanceof l)return e;if(!(this instanceof l))return new l(e,t);var n=u(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=a(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=n.ok,this._tc_id=i++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,o,s;return n=t.r/255,r=t.g/255,i=t.b/255,a=n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4),o=r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4),s=i<=.03928?i/12.92:e.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(e){return this._a=te(e),this._roundA=a(100*this._a)/100,this},toHsv:function(){var e=m(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=m(this._r,this._g,this._b),t=a(e.h*360),n=a(e.s*100),r=a(e.v*100);return this._a==1?`hsv(`+t+`, `+n+`%, `+r+`%)`:`hsva(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=a(e.h*360),n=a(e.s*100),r=a(e.l*100);return this._a==1?`hsl(`+t+`, `+n+`%, `+r+`%)`:`hsla(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return`#`+this.toHex(e)},toHex8:function(e){return _(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return`#`+this.toHex8(e)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?`rgb(`+a(this._r)+`, `+a(this._g)+`, `+a(this._b)+`)`:`rgba(`+a(this._r)+`, `+a(this._g)+`, `+a(this._b)+`, `+this._roundA+`)`},toPercentageRgb:function(){return{r:a(P(this._r,255)*100)+`%`,g:a(P(this._g,255)*100)+`%`,b:a(P(this._b,255)*100)+`%`,a:this._a}},toPercentageRgbString:function(){return this._a==1?`rgb(`+a(P(this._r,255)*100)+`%, `+a(P(this._g,255)*100)+`%, `+a(P(this._b,255)*100)+`%)`:`rgba(`+a(P(this._r,255)*100)+`%, `+a(P(this._g,255)*100)+`%, `+a(P(this._b,255)*100)+`%, `+this._roundA+`)`},toName:function(){return this._a===0?`transparent`:this._a<1?!1:N[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t=`#`+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?`GradientType = 1, `:``;if(e){var i=l(e);n=`#`+v(i._r,i._g,i._b,i._a)}return`progid:DXImageTransform.Microsoft.gradient(`+r+`startColorstr=`+t+`,endColorstr=`+n+`)`},toString:function(e){var t=!!e;e||=this._format;var n=!1,r=this._a<1&&this._a>=0,i=!t&&r&&(e===`hex`||e===`hex6`||e===`hex3`||e===`hex4`||e===`hex8`||e===`name`);return i?e===`name`&&this._a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},l.fromRatio=function(e,t){if(typeof e==`object`){var n={};for(var r in e)e.hasOwnProperty(r)&&(r===`a`?n[r]=e[r]:n[r]=I(e[r]));e=n}return l(e,t)};function u(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,c=!1,l=!1;return typeof e==`string`&&(e=le(e)),typeof e==`object`&&(L(e.r)&&L(e.g)&&L(e.b)?(t=d(e.r,e.g,e.b),c=!0,l=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):L(e.h)&&L(e.s)&&L(e.v)?(r=I(e.s),i=I(e.v),t=h(e.h,r,i),c=!0,l=`hsv`):L(e.h)&&L(e.s)&&L(e.l)&&(r=I(e.s),a=I(e.l),t=p(e.h,r,a),c=!0,l=`hsl`),e.hasOwnProperty(`a`)&&(n=e.a)),n=te(n),{ok:c,format:e.format||l,r:o(255,s(t.r,0)),g:o(255,s(t.g,0)),b:o(255,s(t.b,0)),a:n}}function d(e,t,n){return{r:P(e,255)*255,g:P(t,255)*255,b:P(n,255)*255}}function f(e,t,n){e=P(e,255),t=P(t,255),n=P(n,255);var r=s(e,t,n),i=o(e,t,n),a,c,l=(r+i)/2;if(r==i)a=c=0;else{var u=r-i;switch(c=l>.5?u/(2-r-i):u/(r+i),r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:c,l}}function p(e,t,n){var r,i,a;e=P(e,360),t=P(t,100),n=P(n,100);function o(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function m(e,t,n){e=P(e,255),t=P(t,255),n=P(n,255);var r=s(e,t,n),i=o(e,t,n),a,c,l=r,u=r-i;if(c=r===0?0:u/r,r==i)a=0;else{switch(r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:c,v:l}}function h(t,n,r){t=P(t,360)*6,n=P(n,100),r=P(r,100);var i=e.floor(t),a=t-i,o=r*(1-n),s=r*(1-a*n),c=r*(1-(1-a)*n),l=i%6,u=[r,s,o,o,c,r][l],d=[c,r,r,s,o,o][l],f=[o,o,c,r,r,s][l];return{r:u*255,g:d*255,b:f*255}}function g(e,t,n,r){var i=[ae(a(e).toString(16)),ae(a(t).toString(16)),ae(a(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(``)}function _(e,t,n,r,i){var o=[ae(a(e).toString(16)),ae(a(t).toString(16)),ae(a(n).toString(16)),ae(oe(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join(``)}function v(e,t,n,r){var i=[ae(oe(r)),ae(a(e).toString(16)),ae(a(t).toString(16)),ae(a(n).toString(16))];return i.join(``)}l.equals=function(e,t){return!e||!t?!1:l(e).toRgbString()==l(t).toRgbString()},l.random=function(){return l.fromRatio({r:c(),g:c(),b:c()})};function y(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.s-=t/100,n.s=ne(n.s),l(n)}function b(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.s+=t/100,n.s=ne(n.s),l(n)}function x(e){return l(e).desaturate(100)}function S(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.l+=t/100,n.l=ne(n.l),l(n)}function C(e,t){t=t===0?0:t||10;var n=l(e).toRgb();return n.r=s(0,o(255,n.r-a(255*-(t/100)))),n.g=s(0,o(255,n.g-a(255*-(t/100)))),n.b=s(0,o(255,n.b-a(255*-(t/100)))),l(n)}function w(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.l-=t/100,n.l=ne(n.l),l(n)}function T(e,t){var n=l(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,l(n)}function E(e){var t=l(e).toHsl();return t.h=(t.h+180)%360,l(t)}function D(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+120)%360,s:t.s,l:t.l}),l({h:(n+240)%360,s:t.s,l:t.l})]}function O(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+90)%360,s:t.s,l:t.l}),l({h:(n+180)%360,s:t.s,l:t.l}),l({h:(n+270)%360,s:t.s,l:t.l})]}function k(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+72)%360,s:t.s,l:t.l}),l({h:(n+216)%360,s:t.s,l:t.l})]}function A(e,t,n){t||=6,n||=30;var r=l(e).toHsl(),i=360/n,a=[l(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(l(r));return a}function j(e,t){t||=6;for(var n=l(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(l({h:r,s:i,v:a})),a=(a+s)%1;return o}l.mix=function(e,t,n){n=n===0?0:n||50;var r=l(e).toRgb(),i=l(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return l(o)},l.readability=function(t,n){var r=l(t),i=l(n);return(e.max(r.getLuminance(),i.getLuminance())+.05)/(e.min(r.getLuminance(),i.getLuminance())+.05)},l.isReadable=function(e,t,n){var r=l.readability(e,t),i,a;switch(a=!1,i=R(n),i.level+i.size){case`AAsmall`:case`AAAlarge`:a=r>=4.5;break;case`AAlarge`:a=r>=3;break;case`AAAsmall`:a=r>=7;break}return a},l.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,c;n||={},o=n.includeFallbackColors,s=n.level,c=n.size;for(var u=0;u<t.length;u++)a=l.readability(e,t[u]),a>i&&(i=a,r=l(t[u]));return l.isReadable(e,r,{level:s,size:c})||!o?r:(n.includeFallbackColors=!1,l.mostReadable(e,[`#fff`,`#000`],n))};var M=l.names={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`0ff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`00f`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,burntsienna:`ea7e5d`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`0ff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`f0f`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`},N=l.hexNames=ee(M);function ee(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function te(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(t,n){re(t)&&(t=`100%`);var r=ie(t);return t=o(n,s(0,parseFloat(t))),r&&(t=parseInt(t*n,10)/100),e.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function ne(e){return o(1,s(0,e))}function F(e){return parseInt(e,16)}function re(e){return typeof e==`string`&&e.indexOf(`.`)!=-1&&parseFloat(e)===1}function ie(e){return typeof e==`string`&&e.indexOf(`%`)!=-1}function ae(e){return e.length==1?`0`+e:``+e}function I(e){return e<=1&&(e=e*100+`%`),e}function oe(t){return e.round(parseFloat(t)*255).toString(16)}function se(e){return F(e)/255}var ce=(function(){var e=`[-\\+]?\\d+%?`,t=`[-\\+]?\\d*\\.\\d+%?`,n=`(?:`+t+`)|(?:`+e+`)`,r=`[\\s|\\(]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)\\s*\\)?`,i=`[\\s|\\(]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)\\s*\\)?`;return{CSS_UNIT:new RegExp(n),rgb:RegExp(`rgb`+r),rgba:RegExp(`rgba`+i),hsl:RegExp(`hsl`+r),hsla:RegExp(`hsla`+i),hsv:RegExp(`hsv`+r),hsva:RegExp(`hsva`+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function L(e){return!!ce.CSS_UNIT.exec(e)}function le(e){e=e.replace(n,``).replace(r,``).toLowerCase();var t=!1;if(M[e])e=M[e],t=!0;else if(e==`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};var i;return(i=ce.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=ce.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=ce.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=ce.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=ce.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=ce.hsva.exec(e))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=ce.hex8.exec(e))?{r:F(i[1]),g:F(i[2]),b:F(i[3]),a:se(i[4]),format:t?`name`:`hex8`}:(i=ce.hex6.exec(e))?{r:F(i[1]),g:F(i[2]),b:F(i[3]),format:t?`name`:`hex`}:(i=ce.hex4.exec(e))?{r:F(i[1]+``+i[1]),g:F(i[2]+``+i[2]),b:F(i[3]+``+i[3]),a:se(i[4]+``+i[4]),format:t?`name`:`hex8`}:(i=ce.hex3.exec(e))?{r:F(i[1]+``+i[1]),g:F(i[2]+``+i[2]),b:F(i[3]+``+i[3]),format:t?`name`:`hex`}:!1}function R(e){var t,n;return e||={level:`AA`,size:`small`},t=(e.level||`AA`).toUpperCase(),n=(e.size||`small`).toLowerCase(),t!==`AA`&&t!==`AAA`&&(t=`AA`),n!==`small`&&n!==`large`&&(n=`small`),{level:t,size:n}}t!==void 0&&t.exports?t.exports=l:typeof define==`function`&&define.amd?define(function(){return l}):window.tinycolor=l})(Math)})),xL=te(bL());const SL={duration:660,easing:`ease-in-out`,fill:`forwards`},CL=`tw:left-1 tw:text-xs tw:text-sq-text-color tw:dark:text-sq-dark-text tw:items-center tw:h-4.5`,wL=e=>{let{value:t,color:n,testId:r,label:i,extraClasses:a=``,labelClasses:o=``,valuesLength:s,max:c,index:l,totalValue:u,...d}=e,p=qc(d),m=_(0),h=_(null),g=_(null),[y,x]=v(``),S=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,C=``;u>=c?l===0&&s===1?C=`tw:rounded-[0.9375rem]`:l===0?C=`tw:rounded-l-[0.9375rem]`:l===s-1&&(C=`tw:rounded-r-[0.9375rem]`):l===0&&(C=`tw:rounded-l-[0.9375rem]`);let w=n||void 0,T=n?``:`tw:bg-sq-theme-dark`,E=r?`progress-bar-indicator-${r}`:`progress-bar-indicator`,D=Number(t)/Number(c)*100;return f(()=>{if(!g.current)return;function e(){h.current&&=(h.current.cancel(),null)}let t=m.current;return e(),g.current.style.width=`${D}%`,!S&&D!==t&&(h.current=g.current.animate([{width:`${t}%`},{width:`${D}%`}],SL)),m.current=D,()=>e()},[D,S]),f(()=>{let e=e=>{let t=getComputedStyle(e),n=t.backgroundColor,r=(0,xL.default)(n).isDark()?`tw:text-sq-white tw:dark:text-sq-white`:`tw:text-sq-text-color tw:dark:text-sq-text-color`;x(r)};g.current&&e(g.current)},[n]),b(yL,{className:`tw:flex tw:h-4.5 tw:w-full tw:items-center tw:justify-center ${s===1?``:`tw:overflow-hidden`} ${C} ${T} ${a}`,...p,"data-qtip-text":d.tooltip?d.tooltip:`${t}%`,"data-segment-value":t,"data-testid":E,ref:g,style:{backgroundColor:w,width:S?`${D}%`:void 0},children:i?b(`span`,{className:`${CL} ${o} ${y} ${s===1?`tw:absolute tw:z-50`:``}`,children:i}):void 0})},TL=({values:e,max:t=100,containerExtraClasses:n=``,zeroValueLabel:r=`No progress yet`})=>{let i=e.reduce((e,{value:t})=>e+t,0);return b(vL,{className:`tw:relative tw:flex tw:h-4.5 tw:w-full tw:flex-1 tw:overflow-hidden tw:rounded-[0.9375rem] tw:bg-sq-dark-gray tw:dark:bg-sq-dark-disabled-gray ${n}`,max:t,value:i,children:i>0?e.map((n,r)=>s(wL,{...n,max:t,valuesLength:e.length,index:r,totalValue:i,key:r})):b(`div`,{className:`${CL} tw:mx-auto tw:overflow-hidden`,children:r})})};var EL=TL;function DL(e){return e.startsWith(`svgpath:`)}function OL(e){return DL(e)?e.substring(8):``}const kL=({onClick:e,icon:t,color:n,type:r=`default`,extraClassNames:i,viewBox:a=`0 0 19 19`,id:o,testId:s,customId:c,...l})=>{let u=qc(l),d=r===`default`?`currentColor`:`var(--theme-icon)`;return b(`div`,{onClick:e,...u,className:H(`svgContainer`,`tw:outline-none tw:focus:outline-none tw:focus-visible:outline-none`,{"tw:cursor-pointer":e},i),children:b(`svg`,{id:o,"data-customid":c,xmlns:`http://www.w3.org/2000/svg`,className:`tw:text-sq-theme-icon tw:dark:text-sq-white`,viewBox:a,fill:n||d,"data-testid":s,children:b(`path`,{d:OL(t)})})})};var AL=kL;const jL=e=>{let t=b(y,{});return e.icon&&(t=typeof e.icon==`string`&&DL(e.icon)?b(AL,{...e,icon:e.icon,extraClassNames:`${e.iconExtraClassNames}tw:p-1 tw:h-9 tw:w-9 tw:dark:text-sq-white tw:text-5.5! tw:text-sq-white`}):b(Zc,{icon:e.icon,type:`text`,extraClassNames:`tw:dark:text-sq-white tw:text-5.5! tw:text-sq-white tw:min-w-9 ${e.iconExtraClassNames}`})),x(`div`,{className:`tw:flex tw:w-150 tw:flex-row tw:gap-4 tw:p-2.5 tw:pl-5`,children:[b(`div`,{className:V(`tw:flex tw:h-9 tw:w-9 tw:items-center tw:justify-center tw:rounded-[0.1875rem] tw:bg-sq-theme-dark tw:mt-1.5`,e.iconContainerExtraClassNames),children:t}),x(`div`,{className:`tw:flex tw:flex-col tw:justify-center`,children:[b(`div`,{className:`tw:text-[20px] tw:font-semibold`,children:e.display}),b(`div`,{className:`tw:text-sq-13 tw:leading-4`,children:e.text})]})]})},ML=e=>{let t=b(y,{});return e.icon&&(t=typeof e.icon==`string`&&DL(e.icon)?b(AL,{...e,icon:e.icon,extraClassNames:`tw:w-4 tw:text-5 tw:dark:text-sq-white tw:text-sq-text-color ${e.iconExtraClassNames}`,type:`default`}):b(Zc,{icon:e.icon,type:`text`,extraClassNames:`tw:text-5 tw:dark:text-sq-white tw:text-sq-text-color ${e.iconExtraClassNames}`})),b(`div`,{className:`tw:flex tw:flex-col tw:p-2.5`,children:x(`div`,{className:`tw:flex tw:flex-row tw:items-end tw:gap-2`,children:[b(`div`,{className:`tw:flex tw:h-5 tw:w-5 tw:items-center tw:justify-center tw:rounded-[0.1875rem]`,children:t}),b(`div`,{className:`tw:text-sq-13`,children:e.display})]})})},NL=e=>x(`div`,{className:`tw:flex tw:flex-col tw:justify-start tw:p-2.5 tw:text-left tw:font-normal tw:text-sq-text-color tw:dark:text-sq-dark-text`,children:[b(`h5`,{className:V(`tw:text-4`,`tw:leading-4.5 tw:font-medium tw:text-sq-theme-dark`),children:e.display}),b(`div`,{className:`tw:mt-1! tw:text-sq-13 tw:text-sq-text-color tw:dark:text-sq-dark-text`,children:e.text})]}),PL=(e,t)=>{switch(e){case`create-workbench`:return b(jL,{...t});case`view-workbench`:return b(ML,{...t});case`insert-seeq-content`:return b(NL,{...t});default:return b(jL,{...t})}},FL=({seeqActionDropdownItems:e,trigger:t,id:n,extraClassNames:r,containerTestId:i,disabled:a=!1,align:o=`end`,placement:s=`bottom`,placementOffset:c=5,alignOffset:l=-35,hasArrow:u=!1,onOpenChange:d,isOpen:f,setFocusOnTriggerOnClose:p=!0,keepFocusInsideDropdown:m=!0,variant:h,...g})=>{let _=qc(g);return x(Yg,{defaultOpen:!1,open:f,onOpenChange:d,modal:m,children:[b(Xg,{id:n,"data-testid":n,className:`tw:border-none tw:focus-within:outline-none tw:focus:outline-none tw:focus-visible:outline-none`,asChild:!0,disabled:a,children:b(`div`,{..._,className:V(`tw:flex tw:flex-col tw:items-center tw:bg-transparent
1351
+ Defaulting to \`null\`.`}var xL=dL,SL=pL,CL=M(((exports,t)=>{(function(e){var n=/^\s+/,r=/\s+$/,i=0,a=e.round,o=e.min,s=e.max,c=e.random;function l(e,t){if(e||=``,t||={},e instanceof l)return e;if(!(this instanceof l))return new l(e,t);var n=u(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=a(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=n.ok,this._tc_id=i++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,o,s;return n=t.r/255,r=t.g/255,i=t.b/255,a=n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4),o=r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4),s=i<=.03928?i/12.92:e.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(e){return this._a=te(e),this._roundA=a(100*this._a)/100,this},toHsv:function(){var e=m(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=m(this._r,this._g,this._b),t=a(e.h*360),n=a(e.s*100),r=a(e.v*100);return this._a==1?`hsv(`+t+`, `+n+`%, `+r+`%)`:`hsva(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=a(e.h*360),n=a(e.s*100),r=a(e.l*100);return this._a==1?`hsl(`+t+`, `+n+`%, `+r+`%)`:`hsla(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return`#`+this.toHex(e)},toHex8:function(e){return _(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return`#`+this.toHex8(e)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?`rgb(`+a(this._r)+`, `+a(this._g)+`, `+a(this._b)+`)`:`rgba(`+a(this._r)+`, `+a(this._g)+`, `+a(this._b)+`, `+this._roundA+`)`},toPercentageRgb:function(){return{r:a(P(this._r,255)*100)+`%`,g:a(P(this._g,255)*100)+`%`,b:a(P(this._b,255)*100)+`%`,a:this._a}},toPercentageRgbString:function(){return this._a==1?`rgb(`+a(P(this._r,255)*100)+`%, `+a(P(this._g,255)*100)+`%, `+a(P(this._b,255)*100)+`%)`:`rgba(`+a(P(this._r,255)*100)+`%, `+a(P(this._g,255)*100)+`%, `+a(P(this._b,255)*100)+`%, `+this._roundA+`)`},toName:function(){return this._a===0?`transparent`:this._a<1?!1:N[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t=`#`+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?`GradientType = 1, `:``;if(e){var i=l(e);n=`#`+v(i._r,i._g,i._b,i._a)}return`progid:DXImageTransform.Microsoft.gradient(`+r+`startColorstr=`+t+`,endColorstr=`+n+`)`},toString:function(e){var t=!!e;e||=this._format;var n=!1,r=this._a<1&&this._a>=0,i=!t&&r&&(e===`hex`||e===`hex6`||e===`hex3`||e===`hex4`||e===`hex8`||e===`name`);return i?e===`name`&&this._a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},l.fromRatio=function(e,t){if(typeof e==`object`){var n={};for(var r in e)e.hasOwnProperty(r)&&(r===`a`?n[r]=e[r]:n[r]=I(e[r]));e=n}return l(e,t)};function u(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,c=!1,l=!1;return typeof e==`string`&&(e=le(e)),typeof e==`object`&&(L(e.r)&&L(e.g)&&L(e.b)?(t=d(e.r,e.g,e.b),c=!0,l=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):L(e.h)&&L(e.s)&&L(e.v)?(r=I(e.s),i=I(e.v),t=h(e.h,r,i),c=!0,l=`hsv`):L(e.h)&&L(e.s)&&L(e.l)&&(r=I(e.s),a=I(e.l),t=p(e.h,r,a),c=!0,l=`hsl`),e.hasOwnProperty(`a`)&&(n=e.a)),n=te(n),{ok:c,format:e.format||l,r:o(255,s(t.r,0)),g:o(255,s(t.g,0)),b:o(255,s(t.b,0)),a:n}}function d(e,t,n){return{r:P(e,255)*255,g:P(t,255)*255,b:P(n,255)*255}}function f(e,t,n){e=P(e,255),t=P(t,255),n=P(n,255);var r=s(e,t,n),i=o(e,t,n),a,c,l=(r+i)/2;if(r==i)a=c=0;else{var u=r-i;switch(c=l>.5?u/(2-r-i):u/(r+i),r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:c,l}}function p(e,t,n){var r,i,a;e=P(e,360),t=P(t,100),n=P(n,100);function o(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function m(e,t,n){e=P(e,255),t=P(t,255),n=P(n,255);var r=s(e,t,n),i=o(e,t,n),a,c,l=r,u=r-i;if(c=r===0?0:u/r,r==i)a=0;else{switch(r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:c,v:l}}function h(t,n,r){t=P(t,360)*6,n=P(n,100),r=P(r,100);var i=e.floor(t),a=t-i,o=r*(1-n),s=r*(1-a*n),c=r*(1-(1-a)*n),l=i%6,u=[r,s,o,o,c,r][l],d=[c,r,r,s,o,o][l],f=[o,o,c,r,r,s][l];return{r:u*255,g:d*255,b:f*255}}function g(e,t,n,r){var i=[ae(a(e).toString(16)),ae(a(t).toString(16)),ae(a(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(``)}function _(e,t,n,r,i){var o=[ae(a(e).toString(16)),ae(a(t).toString(16)),ae(a(n).toString(16)),ae(oe(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join(``)}function v(e,t,n,r){var i=[ae(oe(r)),ae(a(e).toString(16)),ae(a(t).toString(16)),ae(a(n).toString(16))];return i.join(``)}l.equals=function(e,t){return!e||!t?!1:l(e).toRgbString()==l(t).toRgbString()},l.random=function(){return l.fromRatio({r:c(),g:c(),b:c()})};function y(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.s-=t/100,n.s=ne(n.s),l(n)}function b(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.s+=t/100,n.s=ne(n.s),l(n)}function x(e){return l(e).desaturate(100)}function S(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.l+=t/100,n.l=ne(n.l),l(n)}function C(e,t){t=t===0?0:t||10;var n=l(e).toRgb();return n.r=s(0,o(255,n.r-a(255*-(t/100)))),n.g=s(0,o(255,n.g-a(255*-(t/100)))),n.b=s(0,o(255,n.b-a(255*-(t/100)))),l(n)}function w(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.l-=t/100,n.l=ne(n.l),l(n)}function T(e,t){var n=l(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,l(n)}function E(e){var t=l(e).toHsl();return t.h=(t.h+180)%360,l(t)}function D(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+120)%360,s:t.s,l:t.l}),l({h:(n+240)%360,s:t.s,l:t.l})]}function O(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+90)%360,s:t.s,l:t.l}),l({h:(n+180)%360,s:t.s,l:t.l}),l({h:(n+270)%360,s:t.s,l:t.l})]}function k(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+72)%360,s:t.s,l:t.l}),l({h:(n+216)%360,s:t.s,l:t.l})]}function A(e,t,n){t||=6,n||=30;var r=l(e).toHsl(),i=360/n,a=[l(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(l(r));return a}function j(e,t){t||=6;for(var n=l(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(l({h:r,s:i,v:a})),a=(a+s)%1;return o}l.mix=function(e,t,n){n=n===0?0:n||50;var r=l(e).toRgb(),i=l(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return l(o)},l.readability=function(t,n){var r=l(t),i=l(n);return(e.max(r.getLuminance(),i.getLuminance())+.05)/(e.min(r.getLuminance(),i.getLuminance())+.05)},l.isReadable=function(e,t,n){var r=l.readability(e,t),i,a;switch(a=!1,i=R(n),i.level+i.size){case`AAsmall`:case`AAAlarge`:a=r>=4.5;break;case`AAlarge`:a=r>=3;break;case`AAAsmall`:a=r>=7;break}return a},l.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,c;n||={},o=n.includeFallbackColors,s=n.level,c=n.size;for(var u=0;u<t.length;u++)a=l.readability(e,t[u]),a>i&&(i=a,r=l(t[u]));return l.isReadable(e,r,{level:s,size:c})||!o?r:(n.includeFallbackColors=!1,l.mostReadable(e,[`#fff`,`#000`],n))};var M=l.names={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`0ff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`00f`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,burntsienna:`ea7e5d`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`0ff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`f0f`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`},N=l.hexNames=ee(M);function ee(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function te(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(t,n){re(t)&&(t=`100%`);var r=ie(t);return t=o(n,s(0,parseFloat(t))),r&&(t=parseInt(t*n,10)/100),e.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function ne(e){return o(1,s(0,e))}function F(e){return parseInt(e,16)}function re(e){return typeof e==`string`&&e.indexOf(`.`)!=-1&&parseFloat(e)===1}function ie(e){return typeof e==`string`&&e.indexOf(`%`)!=-1}function ae(e){return e.length==1?`0`+e:``+e}function I(e){return e<=1&&(e=e*100+`%`),e}function oe(t){return e.round(parseFloat(t)*255).toString(16)}function se(e){return F(e)/255}var ce=(function(){var e=`[-\\+]?\\d+%?`,t=`[-\\+]?\\d*\\.\\d+%?`,n=`(?:`+t+`)|(?:`+e+`)`,r=`[\\s|\\(]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)\\s*\\)?`,i=`[\\s|\\(]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)\\s*\\)?`;return{CSS_UNIT:new RegExp(n),rgb:RegExp(`rgb`+r),rgba:RegExp(`rgba`+i),hsl:RegExp(`hsl`+r),hsla:RegExp(`hsla`+i),hsv:RegExp(`hsv`+r),hsva:RegExp(`hsva`+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function L(e){return!!ce.CSS_UNIT.exec(e)}function le(e){e=e.replace(n,``).replace(r,``).toLowerCase();var t=!1;if(M[e])e=M[e],t=!0;else if(e==`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};var i;return(i=ce.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=ce.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=ce.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=ce.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=ce.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=ce.hsva.exec(e))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=ce.hex8.exec(e))?{r:F(i[1]),g:F(i[2]),b:F(i[3]),a:se(i[4]),format:t?`name`:`hex8`}:(i=ce.hex6.exec(e))?{r:F(i[1]),g:F(i[2]),b:F(i[3]),format:t?`name`:`hex`}:(i=ce.hex4.exec(e))?{r:F(i[1]+``+i[1]),g:F(i[2]+``+i[2]),b:F(i[3]+``+i[3]),a:se(i[4]+``+i[4]),format:t?`name`:`hex8`}:(i=ce.hex3.exec(e))?{r:F(i[1]+``+i[1]),g:F(i[2]+``+i[2]),b:F(i[3]+``+i[3]),format:t?`name`:`hex`}:!1}function R(e){var t,n;return e||={level:`AA`,size:`small`},t=(e.level||`AA`).toUpperCase(),n=(e.size||`small`).toLowerCase(),t!==`AA`&&t!==`AAA`&&(t=`AA`),n!==`small`&&n!==`large`&&(n=`small`),{level:t,size:n}}t!==void 0&&t.exports?t.exports=l:typeof define==`function`&&define.amd?define(function(){return l}):window.tinycolor=l})(Math)})),wL=te(CL());const TL={duration:660,easing:`ease-in-out`,fill:`forwards`},EL=`tw:left-1 tw:text-xs tw:text-sq-text-color tw:dark:text-sq-dark-text tw:items-center tw:h-4.5`,DL=e=>{let{value:t,color:n,testId:r,label:i,extraClasses:a=``,labelClasses:o=``,valuesLength:s,max:c,index:l,totalValue:u,...d}=e,p=qc(d),m=_(0),h=_(null),g=_(null),[y,x]=v(``),S=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,C=``;u>=c?l===0&&s===1?C=`tw:rounded-[0.9375rem]`:l===0?C=`tw:rounded-l-[0.9375rem]`:l===s-1&&(C=`tw:rounded-r-[0.9375rem]`):l===0&&(C=`tw:rounded-l-[0.9375rem]`);let w=n||void 0,T=n?``:`tw:bg-sq-theme-dark`,E=r?`progress-bar-indicator-${r}`:`progress-bar-indicator`,D=Number(t)/Number(c)*100;return f(()=>{if(!g.current)return;function e(){h.current&&=(h.current.cancel(),null)}let t=m.current;return e(),g.current.style.width=`${D}%`,!S&&D!==t&&(h.current=g.current.animate([{width:`${t}%`},{width:`${D}%`}],TL)),m.current=D,()=>e()},[D,S]),f(()=>{let e=e=>{let t=getComputedStyle(e),n=t.backgroundColor,r=(0,wL.default)(n).isDark()?`tw:text-sq-white tw:dark:text-sq-white`:`tw:text-sq-text-color tw:dark:text-sq-text-color`;x(r)};g.current&&e(g.current)},[n]),b(SL,{className:`tw:flex tw:h-4.5 tw:w-full tw:items-center tw:justify-center ${s===1?``:`tw:overflow-hidden`} ${C} ${T} ${a}`,...p,"data-qtip-text":d.tooltip?d.tooltip:`${t}%`,"data-segment-value":t,"data-testid":E,ref:g,style:{backgroundColor:w,width:S?`${D}%`:void 0},children:i?b(`span`,{className:`${EL} ${o} ${y} ${s===1?`tw:absolute tw:z-50`:``}`,children:i}):void 0})},OL=({values:e,max:t=100,containerExtraClasses:n=``,zeroValueLabel:r=`No progress yet`})=>{let i=e.reduce((e,{value:t})=>e+t,0);return b(xL,{className:`tw:relative tw:flex tw:h-4.5 tw:w-full tw:flex-1 tw:overflow-hidden tw:rounded-[0.9375rem] tw:bg-sq-dark-gray tw:dark:bg-sq-dark-disabled-gray ${n}`,max:t,value:i,children:i>0?e.map((n,r)=>s(DL,{...n,max:t,valuesLength:e.length,index:r,totalValue:i,key:r})):b(`div`,{className:`${EL} tw:mx-auto tw:overflow-hidden`,children:r})})};var kL=OL;function AL(e){return e.startsWith(`svgpath:`)}function jL(e){return AL(e)?e.substring(8):``}const ML=({onClick:e,icon:t,color:n,type:r=`default`,extraClassNames:i,viewBox:a=`0 0 19 19`,id:o,testId:s,customId:c,...l})=>{let u=qc(l),d=r===`default`?`currentColor`:`var(--theme-icon)`;return b(`div`,{onClick:e,...u,className:H(`svgContainer`,`tw:outline-none tw:focus:outline-none tw:focus-visible:outline-none`,{"tw:cursor-pointer":e},i),children:b(`svg`,{id:o,"data-customid":c,xmlns:`http://www.w3.org/2000/svg`,className:`tw:text-sq-theme-icon tw:dark:text-sq-white`,viewBox:a,fill:n||d,"data-testid":s,children:b(`path`,{d:jL(t)})})})};var NL=ML;const PL=e=>{let t=b(y,{});return e.icon&&(t=typeof e.icon==`string`&&AL(e.icon)?b(NL,{...e,icon:e.icon,extraClassNames:`${e.iconExtraClassNames}tw:p-1 tw:h-9 tw:w-9 tw:dark:text-sq-white tw:text-5.5! tw:text-sq-white`}):b(Zc,{icon:e.icon,type:`text`,extraClassNames:`tw:dark:text-sq-white tw:text-5.5! tw:text-sq-white tw:min-w-9 ${e.iconExtraClassNames}`})),x(`div`,{className:`tw:flex tw:w-150 tw:flex-row tw:gap-4 tw:p-2.5 tw:pl-5`,children:[b(`div`,{className:V(`tw:flex tw:h-9 tw:w-9 tw:items-center tw:justify-center tw:rounded-[0.1875rem] tw:bg-sq-theme-dark tw:mt-1.5`,e.iconContainerExtraClassNames),children:t}),x(`div`,{className:`tw:flex tw:flex-col tw:justify-center`,children:[b(`div`,{className:`tw:text-[20px] tw:font-semibold`,children:e.display}),b(`div`,{className:`tw:text-sq-13 tw:leading-4`,children:e.text})]})]})},FL=e=>{let t=b(y,{});return e.icon&&(t=typeof e.icon==`string`&&AL(e.icon)?b(NL,{...e,icon:e.icon,extraClassNames:`tw:w-4 tw:text-5 tw:dark:text-sq-white tw:text-sq-text-color ${e.iconExtraClassNames}`,type:`default`}):b(Zc,{icon:e.icon,type:`text`,extraClassNames:`tw:text-5 tw:dark:text-sq-white tw:text-sq-text-color ${e.iconExtraClassNames}`})),b(`div`,{className:`tw:flex tw:flex-col tw:p-2.5`,children:x(`div`,{className:`tw:flex tw:flex-row tw:items-end tw:gap-2`,children:[b(`div`,{className:`tw:flex tw:h-5 tw:w-5 tw:items-center tw:justify-center tw:rounded-[0.1875rem]`,children:t}),b(`div`,{className:`tw:text-sq-13`,children:e.display})]})})},IL=e=>x(`div`,{className:`tw:flex tw:flex-col tw:justify-start tw:p-2.5 tw:text-left tw:font-normal tw:text-sq-text-color tw:dark:text-sq-dark-text`,children:[b(`h5`,{className:V(`tw:text-4`,`tw:leading-4.5 tw:font-medium tw:text-sq-theme-dark`),children:e.display}),b(`div`,{className:`tw:mt-1! tw:text-sq-13 tw:text-sq-text-color tw:dark:text-sq-dark-text`,children:e.text})]}),LL=(e,t)=>{switch(e){case`create-workbench`:return b(PL,{...t});case`view-workbench`:return b(FL,{...t});case`insert-seeq-content`:return b(IL,{...t});default:return b(PL,{...t})}},RL=({seeqActionDropdownItems:e,trigger:t,id:n,extraClassNames:r,containerTestId:i,disabled:a=!1,align:o=`end`,placement:s=`bottom`,placementOffset:c=5,alignOffset:l=-35,hasArrow:u=!1,onOpenChange:d,isOpen:f,setFocusOnTriggerOnClose:p=!0,keepFocusInsideDropdown:m=!0,variant:h,...g})=>{let _=qc(g);return x(Qg,{defaultOpen:!1,open:f,onOpenChange:d,modal:m,children:[b($g,{id:n,"data-testid":n,className:`tw:border-none tw:focus-within:outline-none tw:focus:outline-none tw:focus-visible:outline-none`,asChild:!0,disabled:a,children:b(`div`,{..._,className:V(`tw:flex tw:flex-col tw:items-center tw:bg-transparent
1352
1352
  tw:focus-within:outline-none
1353
1353
  tw:focus:outline-none
1354
- tw:focus-visible:outline-none`,{"tw:cursor-not-allowed tw:opacity-50":a},r),children:t})}),b(Qg,{sideOffset:c,side:s,align:o,alignOffset:l,asChild:!0,onCloseAutoFocus:e=>!p&&e.preventDefault(),className:`tw:outline-none tw:focus-visible:outline-none`,children:x(`div`,{"data-testid":i,className:V(`tw:relative tw:z-1200 tw:min-w-6 tw:py-2
1354
+ tw:focus-visible:outline-none`,{"tw:cursor-not-allowed tw:opacity-50":a},r),children:t})}),b(t_,{sideOffset:c,side:s,align:o,alignOffset:l,asChild:!0,onCloseAutoFocus:e=>!p&&e.preventDefault(),className:`tw:outline-none tw:focus-visible:outline-none`,children:x(`div`,{"data-testid":i,className:V(`tw:relative tw:z-1200 tw:min-w-6 tw:py-2
1355
1355
  tw:shadow-[0_4px_8px_rgba(0,0,0,0.2)] tw:outline-none
1356
1356
  tw:focus-visible:outline-none
1357
1357
  tw:data-[side=bottom]:animate-slideUpAndFade
@@ -1366,12 +1366,12 @@ Defaulting to \`null\`.`}var vL=cL,yL=uL,bL=M(((exports,t)=>{(function(e){var n=
1366
1366
  `,`
1367
1367
  tw:bg-sq-white
1368
1368
  tw:dark:bg-sq-dark-background
1369
- `),children:[u&&b(n_,{asChild:!0,children:b(`div`,{className:`
1369
+ `),children:[u&&b(a_,{asChild:!0,children:b(`div`,{className:`
1370
1370
  tw:-mt-sq-7 tw:h-sq-15 tw:w-sq-15 tw:rotate-45 tw:border-r
1371
1371
  tw:border-b tw:border-sq-disabled-gray tw:bg-sq-white
1372
1372
  tw:fill-transparent
1373
1373
  tw:dark:border-gray-500 tw:dark:bg-sq-dark-background
1374
- `})}),e.map((e,t)=>x(`div`,{children:[b(e_,{onSelect:t=>{e.action(t)},className:`tw:relative tw:flex tw:cursor-pointer tw:outline-none tw:select-none tw:hover:bg-sq-gray-highlight tw:aria-disabled:pointer-events-none tw:data-dim:opacity-50 tw:data-disabled:text-sq-disabled-gray tw:dark:text-sq-white tw:dark:hover:bg-sq-gray-highlight-dark`,"data-testid":e.testId,"data-dim":e.dim?``:void 0,disabled:!e.enabled,children:PL(h,e)}),e.divider&&b(t_,{"data-testid":`dropdown-divider-${t}`,className:`tw:my-2 tw:h-px tw:bg-sq-disabled-gray tw:dark:bg-gray-500`})]},e.id??t))]})})]})};var IL=FL;function LL({options:e,value:t,onChange:n,extraClassNames:r=``,id:i,testId:a,ariaLabel:o}){let s=`tw:flex tw:flex-wrap tw:gap-2 ${r}`;return b(`div`,{"aria-label":o,className:s,"data-testid":a,id:i,role:`group`,children:e.map(e=>{let r=e.value===t,i=`sq-segmented-control-pill tw:cursor-pointer tw:rounded-full tw:border tw:px-3 tw:py-1.5 tw:text-sm tw:transition-all tw:duration-150 tw:ease-out tw:focus-visible:outline-none tw:focus-visible:ring-2 tw:focus-visible:ring-sq-theme-link/30 tw:focus-visible:ring-offset-1 tw:dark:focus-visible:ring-offset-sq-dark-background ${r?`sq-segmented-control-pill--active`:`sq-segmented-control-pill--inactive`}`;return b(`button`,{"aria-pressed":r,className:i,onClick:n?()=>n(e.value):void 0,type:`button`,children:e.label},String(e.value))})})}var RL=LL;function zL(e,[t,n]){return Math.min(n,Math.max(t,e))}function BL(t){let n=e.useRef({value:t,previous:t});return e.useMemo(()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous),[t])}var VL=[`PageUp`,`PageDown`],HL=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],UL={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},WL=`Slider`,[GL,KL,qL]=ue(WL),[JL,YL]=F(WL,[qL]),[XL,ZL]=JL(WL),QL=e.forwardRef((t,n)=>{let{name:r,min:i=0,max:a=100,step:o=1,orientation:s=`horizontal`,disabled:c=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[i],value:d,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:m=!1,form:h,...g}=t,_=e.useRef(new Set),v=e.useRef(0),y=s===`horizontal`,x=y?tR:nR,[S=[],C]=pe({prop:d,defaultProp:u,onChange:e=>{let t=[..._.current];t[v.current]?.focus(),f(e)}}),w=e.useRef(S);function T(e){let t=gR(S,e);O(e,t)}function E(e){O(e,v.current)}function D(){let e=w.current[v.current],t=S[v.current],n=t!==e;n&&p(S)}function O(e,t,{commit:n}={commit:!1}){let r=xR(o),s=SR(Math.round((e-i)/o)*o+i,r),c=zL(s,[i,a]);C((e=[])=>{let r=pR(e,c,t);if(yR(r,l*o)){v.current=r.indexOf(c);let t=String(r)!==String(e);return t&&n&&p(r),t?r:e}else return e})}return b(XL,{scope:t.__scopeSlider,name:r,disabled:c,min:i,max:a,valueIndexToChangeRef:v,thumbs:_.current,values:S,orientation:s,form:h,children:b(GL.Provider,{scope:t.__scopeSlider,children:b(GL.Slot,{scope:t.__scopeSlider,children:b(x,{"aria-disabled":c,"data-disabled":c?``:void 0,...g,ref:n,onPointerDown:z(g.onPointerDown,()=>{c||(w.current=S)}),min:i,max:a,inverted:m,onSlideStart:c?void 0:T,onSlideMove:c?void 0:E,onSlideEnd:c?void 0:D,onHomeKeyDown:()=>!c&&O(i,0,{commit:!0}),onEndKeyDown:()=>!c&&O(a,S.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){let n=VL.includes(e.key),r=n||e.shiftKey&&HL.includes(e.key),i=r?10:1,a=v.current,s=S[a],c=o*i*t;O(s+c,a,{commit:!0})}}})})})})});QL.displayName=WL;var[$L,eR]=JL(WL,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),tR=e.forwardRef((t,n)=>{let{min:r,max:i,dir:a,inverted:o,onSlideStart:s,onSlideMove:c,onSlideEnd:l,onStepKeyDown:u,...d}=t,[f,p]=e.useState(null),m=I(n,e=>p(e)),h=e.useRef(void 0),g=He(a),_=g===`ltr`,v=_&&!o||!_&&o;function y(e){let t=h.current||f.getBoundingClientRect(),n=[0,t.width],a=v?[r,i]:[i,r],o=bR(n,a);return h.current=t,o(e-t.left)}return b($L,{scope:t.__scopeSlider,startEdge:v?`left`:`right`,endEdge:v?`right`:`left`,direction:v?1:-1,size:`width`,children:b(rR,{dir:g,"data-orientation":`horizontal`,...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=y(e.clientX);s?.(t)},onSlideMove:e=>{let t=y(e.clientX);c?.(t)},onSlideEnd:()=>{h.current=void 0,l?.()},onStepKeyDown:e=>{let t=v?`from-left`:`from-right`,n=UL[t].includes(e.key);u?.({event:e,direction:n?-1:1})}})})}),nR=e.forwardRef((t,n)=>{let{min:r,max:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=t,d=e.useRef(null),f=I(n,d),p=e.useRef(void 0),m=!a;function h(e){let t=p.current||d.current.getBoundingClientRect(),n=[0,t.height],a=m?[i,r]:[r,i],o=bR(n,a);return p.current=t,o(e-t.top)}return b($L,{scope:t.__scopeSlider,startEdge:m?`bottom`:`top`,endEdge:m?`top`:`bottom`,size:`height`,direction:m?1:-1,children:b(rR,{"data-orientation":`vertical`,...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=h(e.clientY);o?.(t)},onSlideMove:e=>{let t=h(e.clientY);s?.(t)},onSlideEnd:()=>{p.current=void 0,c?.()},onStepKeyDown:e=>{let t=m?`from-bottom`:`from-top`,n=UL[t].includes(e.key);l?.({event:e,direction:n?-1:1})}})})}),rR=e.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:o,onEndKeyDown:s,onStepKeyDown:c,...l}=e,u=ZL(WL,n);return b(B.span,{...l,ref:t,onKeyDown:z(e.onKeyDown,e=>{e.key===`Home`?(o(e),e.preventDefault()):e.key===`End`?(s(e),e.preventDefault()):VL.concat(HL).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:z(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)}),onPointerMove:z(e.onPointerMove,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:z(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),iR=`SliderTrack`,aR=e.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=ZL(iR,n);return b(B.span,{"data-disabled":i.disabled?``:void 0,"data-orientation":i.orientation,...r,ref:t})});aR.displayName=iR;var oR=`SliderRange`,sR=e.forwardRef((t,n)=>{let{__scopeSlider:r,...i}=t,a=ZL(oR,r),o=eR(oR,r),s=e.useRef(null),c=I(n,s),l=a.values.length,u=a.values.map(e=>mR(e,a.min,a.max)),d=l>1?Math.min(...u):0,f=100-Math.max(...u);return b(B.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?``:void 0,...i,ref:c,style:{...t.style,[o.startEdge]:d+`%`,[o.endEdge]:f+`%`}})});sR.displayName=oR;var cR=`SliderThumb`,lR=e.forwardRef((t,n)=>{let r=KL(t.__scopeSlider),[i,a]=e.useState(null),o=I(n,e=>a(e)),s=e.useMemo(()=>i?r().findIndex(e=>e.ref.current===i):-1,[r,i]);return b(uR,{...t,ref:o,index:s})}),uR=e.forwardRef((t,n)=>{let{__scopeSlider:r,index:i,name:a,...o}=t,s=ZL(cR,r),c=eR(cR,r),[l,u]=e.useState(null),d=I(n,e=>u(e)),f=l?s.form||!!l.closest(`form`):!0,p=bf(l),m=s.values[i],h=m===void 0?0:mR(m,s.min,s.max),g=hR(i,s.values.length),_=p?.[c.size],v=_?_R(_,h,c.direction):0;return e.useEffect(()=>{if(l)return s.thumbs.add(l),()=>{s.thumbs.delete(l)}},[l,s.thumbs]),x(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[c.startEdge]:`calc(${h}% + ${v}px)`},children:[b(GL.ItemSlot,{scope:t.__scopeSlider,children:b(B.span,{role:`slider`,"aria-label":t[`aria-label`]||g,"aria-valuemin":s.min,"aria-valuenow":m,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?``:void 0,tabIndex:s.disabled?void 0:0,...o,ref:d,style:m===void 0?{display:`none`}:t.style,onFocus:z(t.onFocus,()=>{s.valueIndexToChangeRef.current=i})})}),f&&b(fR,{name:a??(s.name?s.name+(s.values.length>1?`[]`:``):void 0),form:s.form,value:m},i)]})});lR.displayName=cR;var dR=`RadioBubbleInput`,fR=e.forwardRef(({__scopeSlider:t,value:n,...r},i)=>{let a=e.useRef(null),o=I(a,i),s=BL(n);return e.useEffect(()=>{let e=a.current;if(!e)return;let t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,`value`),i=r.set;if(s!==n&&i){let t=new Event(`input`,{bubbles:!0});i.call(e,n),e.dispatchEvent(t)}},[s,n]),b(B.input,{style:{display:`none`},...r,ref:o,defaultValue:n})});fR.displayName=dR;function pR(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function mR(e,t,n){let r=n-t,i=100/r,a=i*(e-t);return zL(a,[0,100])}function hR(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function gR(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function _R(e,t,n){let r=e/2,i=bR([0,50],[0,r]);return(r-i(t)*n)*n}function vR(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function yR(e,t){if(t>0){let n=vR(e),r=Math.min(...n);return r>=t}return!0}function bR(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function xR(e){return(String(e).split(`.`)[1]||``).length}function SR(e,t){let n=10**t;return Math.round(e*n)/n}var CR=QL,wR=aR,TR=sR,ER=lR;const DR=({onValueChange:e,onPointerUp:t,id:n,value:r,name:i,disabled:a=!1,rootExtraClassNames:o=``,trackExtraClassNames:s=``,rangeExtraClassNames:c=``,thumbExtraClassNames:l=``,step:u,min:d=0,max:f=100,maxAccessible:p})=>{let m=Math.min(Math.max(p??f,d),f),h=Math.min(Math.max(r,d),m),g=t=>{if(!e)return;let n=Math.min(Math.max(t[0]??d,d),m);e([n])};return x(CR,{className:`tw:relative tw:flex tw:h-5 tw:w-full tw:touch-none tw:items-center tw:select-none ${o}`,defaultValue:[h],value:[h],onValueChange:g,onPointerUp:e=>t&&t(e),name:i,id:n,max:f,min:d,disabled:a,step:u,children:[b(wR,{className:`tw:relative tw:h-sq-5 tw:grow tw:rounded-sm tw:bg-sq-dark-gray tw:dark:bg-sq-dark-disabled-gray ${s}`,children:b(TR,{className:`tw:absolute tw:h-full tw:rounded-full ${c}`})}),b(ER,{className:`tw:block tw:h-sq-15 tw:w-sq-15 tw:rounded-full tw:bg-sq-theme-dark tw:transition tw:ease-in-out tw:focus:outline-none tw:focus-visible:outline-none tw:active:bg-sq-theme-darker tw:aria-disabled:bg-sq-dark-gray tw:dark:aria-disabled:bg-sq-dark-disabled-gray ${l}`,"aria-disabled":a})]})};var OR=`Tabs`,[kR,AR]=F(OR,[Qf]),jR=Qf(),[MR,NR]=kR(OR),PR=e.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=He(s),[d,f]=pe({prop:r,onChange:i,defaultProp:a??``,caller:OR});return b(MR,{scope:n,baseId:Te(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:b(B.div,{dir:u,"data-orientation":o,...l,ref:t})})});PR.displayName=OR;var FR=`TabsList`,IR=e.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=NR(FR,n),o=jR(n);return b(up,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:b(B.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});IR.displayName=FR;var LR=`TabsTrigger`,RR=e.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=NR(LR,n),s=jR(n),c=VR(o.baseId,r),l=HR(o.baseId,r),u=r===o.value;return b(dp,{asChild:!0,...s,focusable:!i,active:u,children:b(B.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:z(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:z(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:z(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});RR.displayName=LR;var zR=`TabsContent`,BR=e.forwardRef((t,n)=>{let{__scopeTabs:r,value:i,forceMount:a,children:o,...s}=t,c=NR(zR,r),l=VR(c.baseId,i),u=HR(c.baseId,i),d=i===c.value,f=e.useRef(d);return e.useEffect(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),b(ye,{present:a||d,children:({present:e})=>b(B.div,{"data-state":d?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":l,hidden:!e,id:u,tabIndex:0,...s,ref:n,style:{...t.style,animationDuration:f.current?`0s`:void 0},children:e&&o})})});BR.displayName=zR;function VR(e,t){return`${e}-trigger-${t}`}function HR(e,t){return`${e}-content-${t}`}var UR=PR,WR=IR,GR=RR,KR=BR;const qR=({tabs:e,defaultActiveTab:t,activeTab:n,onTabSelect:r,extraClassNames:i,testId:a,id:o,stretchTabs:s=!1})=>{let c=e=>{n!==e&&r&&r(e)};return x(UR,{className:`tw:flex tw:max-w-full tw:min-w-75 tw:grow tw:flex-col tw:focus-visible:outline-none ${i||``}`,defaultValue:t,"data-testid":a,id:o,value:n,onValueChange:c,children:[b(WR,{className:`tw:z-1001 tw:flex tw:flex-row tw:flex-wrap`,children:e.map(({id:e,icon:t,label:r,tabExtraClassNames:i,testId:a,disabled:o,tabLabelExtraClassNames:c=``},l)=>b(GR,{className:V(`tw:flex tw:min-w-25 tw:flex-1 tw:items-center tw:justify-center tw:border-r-2 tw:border-solid tw:border-sq-overlay tw:bg-sq-white tw:px-4 tw:last:border-r-0 tw:focus-visible:outline-none tw:dark:border-gray-700 tw:dark:bg-sq-dark-background`,{"tw:max-w-max tw:min-w-fit":!s,"tw:border-b-[0.1875rem] tw:border-b-sq-theme-darker tw:dark:border-b-sq-theme-darker":n===e,"tw:border-b-[0.0625rem] tw:hover:bg-sq-light-gray tw:hover:dark:bg-gray-700":n!==e},i),"data-testid":a,disabled:o,value:e,children:x(`span`,{className:`tw:flex tw:items-center tw:overflow-hidden`,children:[t&&b(Zc,{icon:t,testId:`${e}_tab-icon`,extraClassNames:`tw:text-sq-15 tw:mr-sq-7 tw:flex-shrink-0`}),b(`span`,{className:`tw:overflow-hidden tw:text-sq-13 tw:font-medium tw:text-ellipsis tw:whitespace-nowrap ${n===e?`tw:text-gray-500 tw:dark:text-sq-dark-text`:`tw:text-sq-theme-dark tw:dark:text-sq-theme-darker`} ${c}`,children:r})]})},`${r}-${e}-${l}`))}),e.map((e,t)=>b(KR,{className:`tw:z-500 tw:-mt-sq-1 tw:flex tw:grow tw:flex-col tw:overflow-y-auto tw:border-t-[0.0625rem] tw:border-t-sq-overlay tw:bg-sq-white tw:focus-visible:outline-none tw:dark:border-t-gray-700 tw:dark:bg-sq-dark-background ${e.tabContentExtraClassNames||``}`,value:e.id,children:e.content},`${e.label}_${t}_content`))]})};var JR=qR;const YR=c(({readonly:e=!1,disabled:t=!1,onChange:n,onKeyUp:r,onFocus:i,onBlur:a,onKeyDown:o,onSelectionChange:s,id:c,name:l,rows:u=3,cols:d,value:p,placeholder:m,showError:h,extraClassNames:g=``,testId:v,autoFocus:y=!1},x)=>{let S=H(`
1374
+ `})}),e.map((e,t)=>x(`div`,{children:[b(r_,{onSelect:t=>{e.action(t)},className:`tw:relative tw:flex tw:cursor-pointer tw:outline-none tw:select-none tw:hover:bg-sq-gray-highlight tw:aria-disabled:pointer-events-none tw:data-dim:opacity-50 tw:data-disabled:text-sq-disabled-gray tw:dark:text-sq-white tw:dark:hover:bg-sq-gray-highlight-dark`,"data-testid":e.testId,"data-dim":e.dim?``:void 0,disabled:!e.enabled,children:LL(h,e)}),e.divider&&b(i_,{"data-testid":`dropdown-divider-${t}`,className:`tw:my-2 tw:h-px tw:bg-sq-disabled-gray tw:dark:bg-gray-500`})]},e.id??t))]})})]})};var zL=RL;function BL({options:e,value:t,onChange:n,extraClassNames:r=``,id:i,testId:a,ariaLabel:o}){let s=`tw:flex tw:flex-wrap tw:gap-2 ${r}`;return b(`div`,{"aria-label":o,className:s,"data-testid":a,id:i,role:`group`,children:e.map(e=>{let r=e.value===t,i=`sq-segmented-control-pill tw:cursor-pointer tw:rounded-full tw:border tw:px-3 tw:py-1.5 tw:text-sm tw:transition-all tw:duration-150 tw:ease-out tw:focus-visible:outline-none tw:focus-visible:ring-2 tw:focus-visible:ring-sq-theme-link/30 tw:focus-visible:ring-offset-1 tw:dark:focus-visible:ring-offset-sq-dark-background ${r?`sq-segmented-control-pill--active`:`sq-segmented-control-pill--inactive`}`;return b(`button`,{"aria-pressed":r,className:i,onClick:n?()=>n(e.value):void 0,type:`button`,children:e.label},String(e.value))})})}var VL=BL;function HL(e,[t,n]){return Math.min(n,Math.max(t,e))}function UL(t){let n=e.useRef({value:t,previous:t});return e.useMemo(()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous),[t])}var WL=[`PageUp`,`PageDown`],GL=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],KL={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},qL=`Slider`,[JL,YL,XL]=ue(qL),[ZL,QL]=F(qL,[XL]),[$L,eR]=ZL(qL),tR=e.forwardRef((t,n)=>{let{name:r,min:i=0,max:a=100,step:o=1,orientation:s=`horizontal`,disabled:c=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[i],value:d,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:m=!1,form:h,...g}=t,_=e.useRef(new Set),v=e.useRef(0),y=s===`horizontal`,x=y?iR:aR,[S=[],C]=pe({prop:d,defaultProp:u,onChange:e=>{let t=[..._.current];t[v.current]?.focus(),f(e)}}),w=e.useRef(S);function T(e){let t=yR(S,e);O(e,t)}function E(e){O(e,v.current)}function D(){let e=w.current[v.current],t=S[v.current],n=t!==e;n&&p(S)}function O(e,t,{commit:n}={commit:!1}){let r=wR(o),s=TR(Math.round((e-i)/o)*o+i,r),c=HL(s,[i,a]);C((e=[])=>{let r=gR(e,c,t);if(SR(r,l*o)){v.current=r.indexOf(c);let t=String(r)!==String(e);return t&&n&&p(r),t?r:e}else return e})}return b($L,{scope:t.__scopeSlider,name:r,disabled:c,min:i,max:a,valueIndexToChangeRef:v,thumbs:_.current,values:S,orientation:s,form:h,children:b(JL.Provider,{scope:t.__scopeSlider,children:b(JL.Slot,{scope:t.__scopeSlider,children:b(x,{"aria-disabled":c,"data-disabled":c?``:void 0,...g,ref:n,onPointerDown:z(g.onPointerDown,()=>{c||(w.current=S)}),min:i,max:a,inverted:m,onSlideStart:c?void 0:T,onSlideMove:c?void 0:E,onSlideEnd:c?void 0:D,onHomeKeyDown:()=>!c&&O(i,0,{commit:!0}),onEndKeyDown:()=>!c&&O(a,S.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){let n=WL.includes(e.key),r=n||e.shiftKey&&GL.includes(e.key),i=r?10:1,a=v.current,s=S[a],c=o*i*t;O(s+c,a,{commit:!0})}}})})})})});tR.displayName=qL;var[nR,rR]=ZL(qL,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),iR=e.forwardRef((t,n)=>{let{min:r,max:i,dir:a,inverted:o,onSlideStart:s,onSlideMove:c,onSlideEnd:l,onStepKeyDown:u,...d}=t,[f,p]=e.useState(null),m=I(n,e=>p(e)),h=e.useRef(void 0),g=He(a),_=g===`ltr`,v=_&&!o||!_&&o;function y(e){let t=h.current||f.getBoundingClientRect(),n=[0,t.width],a=v?[r,i]:[i,r],o=CR(n,a);return h.current=t,o(e-t.left)}return b(nR,{scope:t.__scopeSlider,startEdge:v?`left`:`right`,endEdge:v?`right`:`left`,direction:v?1:-1,size:`width`,children:b(oR,{dir:g,"data-orientation":`horizontal`,...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=y(e.clientX);s?.(t)},onSlideMove:e=>{let t=y(e.clientX);c?.(t)},onSlideEnd:()=>{h.current=void 0,l?.()},onStepKeyDown:e=>{let t=v?`from-left`:`from-right`,n=KL[t].includes(e.key);u?.({event:e,direction:n?-1:1})}})})}),aR=e.forwardRef((t,n)=>{let{min:r,max:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=t,d=e.useRef(null),f=I(n,d),p=e.useRef(void 0),m=!a;function h(e){let t=p.current||d.current.getBoundingClientRect(),n=[0,t.height],a=m?[i,r]:[r,i],o=CR(n,a);return p.current=t,o(e-t.top)}return b(nR,{scope:t.__scopeSlider,startEdge:m?`bottom`:`top`,endEdge:m?`top`:`bottom`,size:`height`,direction:m?1:-1,children:b(oR,{"data-orientation":`vertical`,...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=h(e.clientY);o?.(t)},onSlideMove:e=>{let t=h(e.clientY);s?.(t)},onSlideEnd:()=>{p.current=void 0,c?.()},onStepKeyDown:e=>{let t=m?`from-bottom`:`from-top`,n=KL[t].includes(e.key);l?.({event:e,direction:n?-1:1})}})})}),oR=e.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:o,onEndKeyDown:s,onStepKeyDown:c,...l}=e,u=eR(qL,n);return b(B.span,{...l,ref:t,onKeyDown:z(e.onKeyDown,e=>{e.key===`Home`?(o(e),e.preventDefault()):e.key===`End`?(s(e),e.preventDefault()):WL.concat(GL).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:z(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)}),onPointerMove:z(e.onPointerMove,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:z(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),sR=`SliderTrack`,cR=e.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=eR(sR,n);return b(B.span,{"data-disabled":i.disabled?``:void 0,"data-orientation":i.orientation,...r,ref:t})});cR.displayName=sR;var lR=`SliderRange`,uR=e.forwardRef((t,n)=>{let{__scopeSlider:r,...i}=t,a=eR(lR,r),o=rR(lR,r),s=e.useRef(null),c=I(n,s),l=a.values.length,u=a.values.map(e=>_R(e,a.min,a.max)),d=l>1?Math.min(...u):0,f=100-Math.max(...u);return b(B.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?``:void 0,...i,ref:c,style:{...t.style,[o.startEdge]:d+`%`,[o.endEdge]:f+`%`}})});uR.displayName=lR;var dR=`SliderThumb`,fR=e.forwardRef((t,n)=>{let r=YL(t.__scopeSlider),[i,a]=e.useState(null),o=I(n,e=>a(e)),s=e.useMemo(()=>i?r().findIndex(e=>e.ref.current===i):-1,[r,i]);return b(pR,{...t,ref:o,index:s})}),pR=e.forwardRef((t,n)=>{let{__scopeSlider:r,index:i,name:a,...o}=t,s=eR(dR,r),c=rR(dR,r),[l,u]=e.useState(null),d=I(n,e=>u(e)),f=l?s.form||!!l.closest(`form`):!0,p=Cf(l),m=s.values[i],h=m===void 0?0:_R(m,s.min,s.max),g=vR(i,s.values.length),_=p?.[c.size],v=_?bR(_,h,c.direction):0;return e.useEffect(()=>{if(l)return s.thumbs.add(l),()=>{s.thumbs.delete(l)}},[l,s.thumbs]),x(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[c.startEdge]:`calc(${h}% + ${v}px)`},children:[b(JL.ItemSlot,{scope:t.__scopeSlider,children:b(B.span,{role:`slider`,"aria-label":t[`aria-label`]||g,"aria-valuemin":s.min,"aria-valuenow":m,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?``:void 0,tabIndex:s.disabled?void 0:0,...o,ref:d,style:m===void 0?{display:`none`}:t.style,onFocus:z(t.onFocus,()=>{s.valueIndexToChangeRef.current=i})})}),f&&b(hR,{name:a??(s.name?s.name+(s.values.length>1?`[]`:``):void 0),form:s.form,value:m},i)]})});fR.displayName=dR;var mR=`RadioBubbleInput`,hR=e.forwardRef(({__scopeSlider:t,value:n,...r},i)=>{let a=e.useRef(null),o=I(a,i),s=UL(n);return e.useEffect(()=>{let e=a.current;if(!e)return;let t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,`value`),i=r.set;if(s!==n&&i){let t=new Event(`input`,{bubbles:!0});i.call(e,n),e.dispatchEvent(t)}},[s,n]),b(B.input,{style:{display:`none`},...r,ref:o,defaultValue:n})});hR.displayName=mR;function gR(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function _R(e,t,n){let r=n-t,i=100/r,a=i*(e-t);return HL(a,[0,100])}function vR(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function yR(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function bR(e,t,n){let r=e/2,i=CR([0,50],[0,r]);return(r-i(t)*n)*n}function xR(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function SR(e,t){if(t>0){let n=xR(e),r=Math.min(...n);return r>=t}return!0}function CR(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function wR(e){return(String(e).split(`.`)[1]||``).length}function TR(e,t){let n=10**t;return Math.round(e*n)/n}var ER=tR,DR=cR,OR=uR,kR=fR;const AR=({onValueChange:e,onPointerUp:t,id:n,value:r,name:i,disabled:a=!1,rootExtraClassNames:o=``,trackExtraClassNames:s=``,rangeExtraClassNames:c=``,thumbExtraClassNames:l=``,step:u,min:d=0,max:f=100,maxAccessible:p})=>{let m=Math.min(Math.max(p??f,d),f),h=Math.min(Math.max(r,d),m),g=t=>{if(!e)return;let n=Math.min(Math.max(t[0]??d,d),m);e([n])};return x(ER,{className:`tw:relative tw:flex tw:h-5 tw:w-full tw:touch-none tw:items-center tw:select-none ${o}`,defaultValue:[h],value:[h],onValueChange:g,onPointerUp:e=>t&&t(e),name:i,id:n,max:f,min:d,disabled:a,step:u,children:[b(DR,{className:`tw:relative tw:h-sq-5 tw:grow tw:rounded-sm tw:bg-sq-dark-gray tw:dark:bg-sq-dark-disabled-gray ${s}`,children:b(OR,{className:`tw:absolute tw:h-full tw:rounded-full ${c}`})}),b(kR,{className:`tw:block tw:h-sq-15 tw:w-sq-15 tw:rounded-full tw:bg-sq-theme-dark tw:transition tw:ease-in-out tw:focus:outline-none tw:focus-visible:outline-none tw:active:bg-sq-theme-darker tw:aria-disabled:bg-sq-dark-gray tw:dark:aria-disabled:bg-sq-dark-disabled-gray ${l}`,"aria-disabled":a})]})};var jR=`Tabs`,[MR,NR]=F(jR,[tp]),PR=tp(),[FR,IR]=MR(jR),LR=e.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=He(s),[d,f]=pe({prop:r,onChange:i,defaultProp:a??``,caller:jR});return b(FR,{scope:n,baseId:Te(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:b(B.div,{dir:u,"data-orientation":o,...l,ref:t})})});LR.displayName=jR;var RR=`TabsList`,zR=e.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=IR(RR,n),o=PR(n);return b(pp,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:b(B.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});zR.displayName=RR;var BR=`TabsTrigger`,VR=e.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=IR(BR,n),s=PR(n),c=WR(o.baseId,r),l=GR(o.baseId,r),u=r===o.value;return b(mp,{asChild:!0,...s,focusable:!i,active:u,children:b(B.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:z(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:z(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:z(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});VR.displayName=BR;var HR=`TabsContent`,UR=e.forwardRef((t,n)=>{let{__scopeTabs:r,value:i,forceMount:a,children:o,...s}=t,c=IR(HR,r),l=WR(c.baseId,i),u=GR(c.baseId,i),d=i===c.value,f=e.useRef(d);return e.useEffect(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),b(ye,{present:a||d,children:({present:e})=>b(B.div,{"data-state":d?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":l,hidden:!e,id:u,tabIndex:0,...s,ref:n,style:{...t.style,animationDuration:f.current?`0s`:void 0},children:e&&o})})});UR.displayName=HR;function WR(e,t){return`${e}-trigger-${t}`}function GR(e,t){return`${e}-content-${t}`}var KR=LR,qR=zR,JR=VR,YR=UR;const XR=({tabs:e,defaultActiveTab:t,activeTab:n,onTabSelect:r,extraClassNames:i,testId:a,id:o,stretchTabs:s=!1})=>{let c=e=>{n!==e&&r&&r(e)};return x(KR,{className:`tw:flex tw:max-w-full tw:min-w-75 tw:grow tw:flex-col tw:focus-visible:outline-none ${i||``}`,defaultValue:t,"data-testid":a,id:o,value:n,onValueChange:c,children:[b(qR,{className:`tw:z-1001 tw:flex tw:flex-row tw:flex-wrap`,children:e.map(({id:e,icon:t,label:r,tabExtraClassNames:i,testId:a,disabled:o,tabLabelExtraClassNames:c=``},l)=>b(JR,{className:V(`tw:flex tw:min-w-25 tw:flex-1 tw:items-center tw:justify-center tw:border-r-2 tw:border-solid tw:border-sq-overlay tw:bg-sq-white tw:px-4 tw:last:border-r-0 tw:focus-visible:outline-none tw:dark:border-gray-700 tw:dark:bg-sq-dark-background`,{"tw:max-w-max tw:min-w-fit":!s,"tw:border-b-[0.1875rem] tw:border-b-sq-theme-darker tw:dark:border-b-sq-theme-darker":n===e,"tw:border-b-[0.0625rem] tw:hover:bg-sq-light-gray tw:hover:dark:bg-gray-700":n!==e},i),"data-testid":a,disabled:o,value:e,children:x(`span`,{className:`tw:flex tw:items-center tw:overflow-hidden`,children:[t&&b(Zc,{icon:t,testId:`${e}_tab-icon`,extraClassNames:`tw:text-sq-15 tw:mr-sq-7 tw:flex-shrink-0`}),b(`span`,{className:`tw:overflow-hidden tw:text-sq-13 tw:font-medium tw:text-ellipsis tw:whitespace-nowrap ${n===e?`tw:text-gray-500 tw:dark:text-sq-dark-text`:`tw:text-sq-theme-dark tw:dark:text-sq-theme-darker`} ${c}`,children:r})]})},`${r}-${e}-${l}`))}),e.map((e,t)=>b(YR,{className:`tw:z-500 tw:-mt-sq-1 tw:flex tw:grow tw:flex-col tw:overflow-y-auto tw:border-t-[0.0625rem] tw:border-t-sq-overlay tw:bg-sq-white tw:focus-visible:outline-none tw:dark:border-t-gray-700 tw:dark:bg-sq-dark-background ${e.tabContentExtraClassNames||``}`,value:e.id,children:e.content},`${e.label}_${t}_content`))]})};var ZR=XR;const QR=c(({readonly:e=!1,disabled:t=!1,onChange:n,onKeyUp:r,onFocus:i,onBlur:a,onKeyDown:o,onSelectionChange:s,id:c,name:l,rows:u=3,cols:d,value:p,placeholder:m,showError:h,extraClassNames:g=``,testId:v,autoFocus:y=!1},x)=>{let S=H(`
1375
1375
  tw:w-full
1376
1376
  tw:rounded-md
1377
1377
  tw:border
@@ -1382,7 +1382,7 @@ Defaulting to \`null\`.`}var vL=cL,yL=uL,bL=M(((exports,t)=>{(function(e){var n=
1382
1382
  tw:text-sm
1383
1383
  tw:leading-normal
1384
1384
  tw:outline-none
1385
- `,fO,g,`tw:text-sq-text-color tw:placeholder-gray-400!`,`tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:dark:placeholder-sq-dark-text/30!`,h?`tw:border-sq-danger`:`
1385
+ `,hO,g,`tw:text-sq-text-color tw:placeholder-gray-400!`,`tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:dark:placeholder-sq-dark-text/30!`,h?`tw:border-sq-danger`:`
1386
1386
  tw:border-sq-disabled-gray
1387
1387
  tw:hover:border-sq-theme-dark
1388
1388
  tw:focus:border-sq-theme-dark
@@ -1391,32 +1391,32 @@ Defaulting to \`null\`.`}var vL=cL,yL=uL,bL=M(((exports,t)=>{(function(e){var n=
1391
1391
  tw:dark:hover:border-sq-theme-darker
1392
1392
  tw:dark:focus:border-sq-theme-darker
1393
1393
  tw:dark:active:border-sq-theme-darker
1394
- `),C=_(null),w=dO(x,C);return f(()=>{if(!s||!C.current)return;let e=C.current,t=e=>{s(e)};return e.addEventListener(`selectionchange`,t),e.addEventListener(`mouseup`,t),e.addEventListener(`keyup`,t),()=>{e.removeEventListener(`selectionchange`,t),e.removeEventListener(`mouseup`,t),e.removeEventListener(`keyup`,t)}},[s]),b(`textarea`,{ref:w,"data-testid":v,name:l,id:c,value:p,className:S,placeholder:m,disabled:t,readOnly:e,onChange:n,onFocus:i,onBlur:a,onKeyDown:o,onKeyUp:r,rows:u,cols:d,autoFocus:y})});YR.displayName=`TextArea`;const XR=c(({align:e=`center`,sideOffset:t=4,...n},r)=>b(V_,{ref:r,align:e,sideOffset:t,...n,asChild:!0}));XR.displayName=`PopoverContent`;const ZR=({isSmall:e=!1,label:t,icon:n,secondIcon:r,forceSmallIcon:i=!1,tooltipText:a,id:o,popoverContent:s,extraClassNames:c,testId:l,tooltipTestId:u,tooltipOptions:d,isActive:f=!1,isHtmlTooltip:p=!1,hasArrow:m=!1,disabled:h=!1,isPrimaryAnSvg:g=!1,primaryIconExtraClassNames:_,iconHeight:v=24,iconWidth:y=24,primaryIconViewbox:S=`0 0 24 24`,popoverAlign:C=`start`,onClick:w,onHide:T})=>{let E;a&&(E={"data-qtip-text":a,"data-qtip-placement":d?.position,"data-qtip-is-html":p,"data-qtip-testid":u,"data-qtip-delay":d?.delay??500});let D=e=>{e||T&&T()};return x(R_,{defaultOpen:!1,onOpenChange:D,children:[b(z_,{id:o,className:H(`tw:mx-sq-1.5 tw:border-none tw:bg-transparent tw:first:ml-0 tw:last:mr-0`,{active:f}),disabled:h,"data-testid":l,onClick:e=>{w&&w(e)},children:x(`div`,{...E,className:H(`tw:flex tw:flex-col tw:items-center tw:rounded-md`,{active:f,"\n tw:bg-sq-overlay\n tw:active:bg-sq-overlay\n tw:dark:bg-sq-dark-disabled-gray\n tw:dark:hover:border-sq-dark-disabled-gray/30\n tw:dark:active:bg-sq-dark-disabled-gray/30\n":f,"\n tw:bg-transparent\n tw:hover:bg-sq-worksheetspanel-gray\n tw:active:bg-sq-worksheetspanel-gray\n tw:dark:bg-transparent\n tw:dark:hover:bg-sq-field-disabled-gray/30\n tw:dark:active:bg-sq-field-disabled-gray/30\n":!f,"tw:px-1 tw:py-px":e,"tw:px-2 tw:py-sq-5":!e,"tw:cursor-not-allowed tw:opacity-50":h},c),children:[x(`span`,{className:`tw:whitespace-nowrap`,children:[g&&typeof n==`string`?b(`svg`,{xmlns:`http://www.w3.org/2000/svg`,className:`tw:text-sq-text-color tw:dark:text-sq-dark-text ${_||``}`,viewBox:S,height:`${v}px`,width:`${y}px`,fill:`currentColor`,"data-testid":l,children:b(`path`,{d:OL(n)})}):b(Zc,{icon:n,testId:`firstIcon`,type:`text`,size:!e&&!t&&!r&&!i?`lg`:`sm`,extraClassNames:`tw:text-sq-text-color tw:dark:text-sq-dark-text`}),r&&b(Zc,{icon:r,type:`text`,testId:`secondIcon`}),s?b(Zc,{icon:Tt,extraClassNames:`tw:text-sq-text-color tw:dark:text-sq-dark-text tw:ml-sq-3 tw:text-2`,type:`text`,size:`sm`}):void 0]}),!e&&b(`small`,{className:`tw:text-sq-10 tw:text-sq-text-color tw:dark:text-sq-dark-text`,children:t})]})}),s?b(XR,{sideOffset:2,align:C,children:x(`div`,{className:H(`tw:relative tw:z-1000 tw:min-w-6 tw:p-2 tw:outline-none tw:focus-visible:outline-none`,`tw:bg-sq-white tw:dark:bg-sq-dark-background`,`
1394
+ `),C=_(null),w=mO(x,C);return f(()=>{if(!s||!C.current)return;let e=C.current,t=e=>{s(e)};return e.addEventListener(`selectionchange`,t),e.addEventListener(`mouseup`,t),e.addEventListener(`keyup`,t),()=>{e.removeEventListener(`selectionchange`,t),e.removeEventListener(`mouseup`,t),e.removeEventListener(`keyup`,t)}},[s]),b(`textarea`,{ref:w,"data-testid":v,name:l,id:c,value:p,className:S,placeholder:m,disabled:t,readOnly:e,onChange:n,onFocus:i,onBlur:a,onKeyDown:o,onKeyUp:r,rows:u,cols:d,autoFocus:y})});QR.displayName=`TextArea`;const $R=c(({align:e=`center`,sideOffset:t=4,...n},r)=>b(W_,{ref:r,align:e,sideOffset:t,...n,asChild:!0}));$R.displayName=`PopoverContent`;const ez=({isSmall:e=!1,label:t,icon:n,secondIcon:r,forceSmallIcon:i=!1,tooltipText:a,id:o,popoverContent:s,extraClassNames:c,testId:l,tooltipTestId:u,tooltipOptions:d,isActive:f=!1,isHtmlTooltip:p=!1,hasArrow:m=!1,disabled:h=!1,isPrimaryAnSvg:g=!1,primaryIconExtraClassNames:_,iconHeight:v=24,iconWidth:y=24,primaryIconViewbox:S=`0 0 24 24`,popoverAlign:C=`start`,onClick:w,onHide:T})=>{let E;a&&(E={"data-qtip-text":a,"data-qtip-placement":d?.position,"data-qtip-is-html":p,"data-qtip-testid":u,"data-qtip-delay":d?.delay??500});let D=e=>{e||T&&T()};return x(V_,{defaultOpen:!1,onOpenChange:D,children:[b(H_,{id:o,className:H(`tw:mx-sq-1.5 tw:border-none tw:bg-transparent tw:first:ml-0 tw:last:mr-0`,{active:f}),disabled:h,"data-testid":l,onClick:e=>{w&&w(e)},children:x(`div`,{...E,className:H(`tw:flex tw:flex-col tw:items-center tw:rounded-md`,{active:f,"\n tw:bg-sq-overlay\n tw:active:bg-sq-overlay\n tw:dark:bg-sq-dark-disabled-gray\n tw:dark:hover:border-sq-dark-disabled-gray/30\n tw:dark:active:bg-sq-dark-disabled-gray/30\n":f,"\n tw:bg-transparent\n tw:hover:bg-sq-worksheetspanel-gray\n tw:active:bg-sq-worksheetspanel-gray\n tw:dark:bg-transparent\n tw:dark:hover:bg-sq-field-disabled-gray/30\n tw:dark:active:bg-sq-field-disabled-gray/30\n":!f,"tw:px-1 tw:py-px":e,"tw:px-2 tw:py-sq-5":!e,"tw:cursor-not-allowed tw:opacity-50":h},c),children:[x(`span`,{className:`tw:whitespace-nowrap`,children:[g&&typeof n==`string`?b(`svg`,{xmlns:`http://www.w3.org/2000/svg`,className:`tw:text-sq-text-color tw:dark:text-sq-dark-text ${_||``}`,viewBox:S,height:`${v}px`,width:`${y}px`,fill:`currentColor`,"data-testid":l,children:b(`path`,{d:jL(n)})}):b(Zc,{icon:n,testId:`firstIcon`,type:`text`,size:!e&&!t&&!r&&!i?`lg`:`sm`,extraClassNames:H(`tw:text-sq-text-color tw:dark:text-sq-dark-text`,_)}),r&&b(Zc,{icon:r,type:`text`,testId:`secondIcon`}),s?b(Zc,{icon:Tt,extraClassNames:`tw:text-sq-text-color tw:dark:text-sq-dark-text tw:ml-sq-3 tw:text-2`,type:`text`,size:`sm`}):void 0]}),!e&&b(`small`,{className:`tw:text-sq-10 tw:text-sq-text-color tw:dark:text-sq-dark-text`,children:t})]})}),s?b($R,{sideOffset:2,align:C,children:x(`div`,{className:H(`tw:relative tw:z-1000 tw:min-w-6 tw:p-2 tw:outline-none tw:focus-visible:outline-none`,`tw:bg-sq-white tw:dark:bg-sq-dark-background`,`
1395
1395
  tw:rounded-md
1396
1396
  tw:border
1397
1397
  tw:border-solid
1398
1398
  tw:border-sq-disabled-gray
1399
1399
  tw:dark:border-gray-500
1400
- `),children:[m&&b(H_,{asChild:!0,children:b(`div`,{className:`tw:-mt-sq-7 tw:h-sq-15 tw:w-sq-15 tw:rotate-45 tw:border-r tw:border-b tw:border-sq-disabled-gray tw:bg-sq-white tw:fill-transparent tw:dark:border-gray-500 tw:dark:bg-sq-dark-background`})}),s]})}):void 0]})},QR=({position:e=`bottom`,children:t,text:n,delay:r=500})=>{let i=`tw:before:content-[''] tw:before:absolute tw:before:border-8`,a=`tw:before:top-1/2 tw:before:-translate-y-1/2`,o=`tw:before:left-1/2 tw:before:-translate-x-1/2`,s=`${i} ${a} tw:before:right-full tw:before:border-y-transparent
1400
+ `),children:[m&&b(G_,{asChild:!0,children:b(`div`,{className:`tw:-mt-sq-7 tw:h-sq-15 tw:w-sq-15 tw:rotate-45 tw:border-r tw:border-b tw:border-sq-disabled-gray tw:bg-sq-white tw:fill-transparent tw:dark:border-gray-500 tw:dark:bg-sq-dark-background`})}),s]})}):void 0]})},tz=({position:e=`bottom`,children:t,text:n,delay:r=500})=>{let i=`tw:before:content-[''] tw:before:absolute tw:before:border-8`,a=`tw:before:top-1/2 tw:before:-translate-y-1/2`,o=`tw:before:left-1/2 tw:before:-translate-x-1/2`,s=`${i} ${a} tw:before:right-full tw:before:border-y-transparent
1401
1401
  tw:before:border-l-transparent tw:before:border-r-sq-black`,c=`${i} ${a} tw:before:left-full tw:before:border-y-transparent
1402
1402
  tw:before:border-l-sq-black tw:before:border-r-transparent`,l=`${i} ${o} tw:before:-top-4 tw:before:border-b-sq-black
1403
1403
  tw:before:border-r-transparent tw:before:border-l-transparent tw:before:border-t-transparent`,u=`${i} ${o} tw:before:-bottom-4 tw:before:border-b-transparent
1404
1404
  tw:before:border-t-sq-black tw:before:border-l-transparent tw:before:border-r-transparent`,d={top:`tw:-top-2 tw:-translate-y-full tw:left-1/2 tw:-translate-x-1/2 ${u}`,left:`tw:-translate-x-full tw:-left-3 tw:-translate-y-1/2 tw:top-1/2 ${c}`,right:`tw:translate-x-full tw:-right-3 tw:-translate-y-1/2 tw:top-1/2 ${s}`,bottom:`tw:-bottom-2 tw:translate-y-full tw:left-1/2 tw:-translate-x-1/2 ${l}`};return x(`div`,{className:`tw:group tw:relative tw:inline-block`,children:[t,b(`div`,{className:`tw:z-50 tw:hidden tw:whitespace-nowrap tw:group-hover:inline-block tw:group-hover:delay-[${r}ms]
1405
1405
  tw:absolute tw:rounded-sm tw:bg-sq-black tw:p-2 tw:text-xs tw:text-sq-white tw:opacity-0 tw:group-hover:opacity-100 ${d[e]}`,children:n})]})};
1406
1406
  /*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */
1407
- function $R(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 ez(e){if(Array.isArray(e))return e}function tz(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)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function nz(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
1408
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rz(e,t){return ez(e)||tz(e,t)||iz(e,t)||nz()}function iz(e,t){if(e){if(typeof e==`string`)return $R(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)?$R(e,t):void 0}}const az=Object.entries,oz=Object.setPrototypeOf,sz=Object.isFrozen,cz=Object.getPrototypeOf,lz=Object.getOwnPropertyDescriptor;let uz=Object.freeze,dz=Object.seal,fz=Object.create,pz=typeof Reflect<`u`&&Reflect,mz=pz.apply,hz=pz.construct;uz||=function(e){return e},dz||=function(e){return e},mz||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},hz||=function(e){var t=[...arguments].slice(1);return new e(...t)};const gz=Iz(Array.prototype.forEach),_z=Iz(Array.prototype.lastIndexOf),vz=Iz(Array.prototype.pop),yz=Iz(Array.prototype.push),bz=Iz(Array.prototype.splice),xz=Array.isArray,Sz=Iz(String.prototype.toLowerCase),Cz=Iz(String.prototype.toString),wz=Iz(String.prototype.match),Tz=Iz(String.prototype.replace),Ez=Iz(String.prototype.indexOf),Dz=Iz(String.prototype.trim),Oz=Iz(Number.prototype.toString),kz=Iz(Boolean.prototype.toString),Az=typeof BigInt>`u`?null:Iz(BigInt.prototype.toString),jz=typeof Symbol>`u`?null:Iz(Symbol.prototype.toString),Mz=Iz(Object.prototype.hasOwnProperty),Nz=Iz(Object.prototype.toString),Pz=Iz(RegExp.prototype.test),Fz=Lz(TypeError);function Iz(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return mz(e,t,n)}}function Lz(e){return function(){var t=[...arguments];return hz(e,t)}}function $(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Sz;if(oz&&oz(e,null),!xz(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(sz(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Rz(e){for(let t=0;t<e.length;t++){let n=Mz(e,t);n||(e[t]=null)}return e}function zz(e){let t=fz(null);for(let r of az(e)){var n=rz(r,2);let i=n[0],a=n[1],o=Mz(e,i);o&&(xz(a)?t[i]=Rz(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=zz(a):t[i]=a)}return t}function Bz(e){switch(typeof e){case`string`:return e;case`number`:return Oz(e);case`boolean`:return kz(e);case`bigint`:return Az?Az(e):`0`;case`symbol`:return jz?jz(e):`Symbol()`;case`undefined`:return Nz(e);case`function`:case`object`:{if(e===null)return Nz(e);let t=e,n=Vz(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Nz(e)}return Nz(e)}default:return Nz(e)}}function Vz(e,t){for(;e!==null;){let n=lz(e,t);if(n){if(n.get)return Iz(n.get);if(typeof n.value==`function`)return Iz(n.value)}e=cz(e)}function n(){return null}return n}function Hz(e){try{return Pz(e,``),!0}catch{return!1}}const Uz=uz(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Wz=uz(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Gz=uz([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Kz=uz([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),qz=uz(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Jz=uz([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Yz=uz([`#text`]),Xz=uz(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Zz=uz(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Qz=uz(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),$z=uz([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),eB=dz(/{{[\w\W]*|^[\w\W]*}}/g),tB=dz(/<%[\w\W]*|^[\w\W]*%>/g),nB=dz(/\${[\w\W]*/g),rB=dz(/^data-[\-\w.\u00B7-\uFFFF]+$/),iB=dz(/^aria-[\-\w]+$/),aB=dz(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oB=dz(/^(?:\w+script|data):/i),sB=dz(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cB=dz(/^html$/i),lB=dz(/^[a-z][.\w]*(-[.\w]+)+$/i),uB=dz(/<[/\w!]/g),dB=dz(/<[/\w]/g),fB=dz(/<\/no(script|embed|frames)/i),pB=dz(/\/>/i),mB={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},hB=function(){return typeof window>`u`?null:window},gB=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},_B=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},vB=function(e,t,n,r){return Mz(e,t)&&xz(e[t])?$(r.base?zz(r.base):{},e[t],r.transform):n};function yB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hB(),t=e=>yB(e);if(t.version=`3.4.12`,t.removed=[],!e||!e.document||e.document.nodeType!==mB.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,f=s.prototype,p=Vz(f,`cloneNode`),m=Vz(f,`remove`),h=Vz(f,`nextSibling`),g=Vz(f,`childNodes`),_=Vz(f,`parentNode`),v=Vz(f,`shadowRoot`),y=Vz(f,`attributes`),b=o&&o.prototype?Vz(o.prototype,`nodeType`):null,x=o&&o.prototype?Vz(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,C=``,w,T=0,E=function(){if(T>0)throw Fz(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},D=function(e){E(),T++;try{return S.createHTML(e)}finally{T--}},O=function(e){E(),T++;try{return S.createScriptURL(e)}finally{T--}},k=function(){return w=gB(d,i),w},A=n,j=A.implementation,M=A.createNodeIterator,N=A.createDocumentFragment,ee=A.getElementsByTagName,te=r.importNode,P=_B();t.isSupported=typeof az==`function`&&typeof _==`function`&&j&&j.createHTMLDocument!==void 0;let ne=eB,F=tB,re=nB,ie=rB,ae=iB,I=oB,oe=sB,se=lB,ce=aB,L=null,le=$({},[...Uz,...Wz,...Gz,...qz,...Yz]),R=null,ue=$({},[...Xz,...Zz,...Qz,...$z]),z=Object.seal(fz(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,fe=null,pe=Object.seal(fz(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),me=!0,he=!0,ge=!1,B=!0,_e=!1,ve=!0,ye=!1,be=!1,xe=null,Se=null,Ce=!1,we=!1,Te=!1,Ee=!1,De=!0,Oe=!1,ke=`user-content-`,Ae=!0,je=!1,Me={},Ne=null,Pe=$({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Fe=null,Ie=$({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Le=null,Re=$({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),ze=`http://www.w3.org/1998/Math/MathML`,Be=`http://www.w3.org/2000/svg`,Ve=`http://www.w3.org/1999/xhtml`,He=Ve,Ue=!1,We=null,Ge=$({},[ze,Be,Ve],Cz),Ke=uz([`mi`,`mo`,`mn`,`ms`,`mtext`]),qe=$({},Ke),Je=uz([`annotation-xml`]),Ye=$({},Je),Xe=$({},[`title`,`style`,`font`,`a`,`script`]),Ze=null,Qe=[`application/xhtml+xml`,`text/html`],$e=null,et=null,tt=n.createElement(`form`),nt=function(e){return e instanceof RegExp||e instanceof Function},rt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(et&&et===e)return;(!e||typeof e!=`object`)&&(e={}),e=zz(e),Ze=Qe.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,$e=Ze===`application/xhtml+xml`?Cz:Sz,L=vB(e,`ALLOWED_TAGS`,le,{transform:$e}),R=vB(e,`ALLOWED_ATTR`,ue,{transform:$e}),We=vB(e,`ALLOWED_NAMESPACES`,Ge,{transform:Cz}),Le=vB(e,`ADD_URI_SAFE_ATTR`,Re,{transform:$e,base:Re}),Fe=vB(e,`ADD_DATA_URI_TAGS`,Ie,{transform:$e,base:Ie}),Ne=vB(e,`FORBID_CONTENTS`,Pe,{transform:$e}),de=vB(e,`FORBID_TAGS`,zz({}),{transform:$e}),fe=vB(e,`FORBID_ATTR`,zz({}),{transform:$e}),Me=Mz(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?zz(e.USE_PROFILES):e.USE_PROFILES:!1,me=e.ALLOW_ARIA_ATTR!==!1,he=e.ALLOW_DATA_ATTR!==!1,ge=e.ALLOW_UNKNOWN_PROTOCOLS||!1,B=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,_e=e.SAFE_FOR_TEMPLATES||!1,ve=e.SAFE_FOR_XML!==!1,ye=e.WHOLE_DOCUMENT||!1,we=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ee=e.RETURN_TRUSTED_TYPE||!1,Ce=e.FORCE_BODY||!1,De=e.SANITIZE_DOM!==!1,Oe=e.SANITIZE_NAMED_PROPS||!1,Ae=e.KEEP_CONTENT!==!1,je=e.IN_PLACE||!1,ce=Hz(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:aB,He=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ve,qe=Mz(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?zz(e.MATHML_TEXT_INTEGRATION_POINTS):$({},Ke),Ye=Mz(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?zz(e.HTML_INTEGRATION_POINTS):$({},Je);let t=Mz(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?zz(e.CUSTOM_ELEMENT_HANDLING):fz(null);if(z=fz(null),Mz(t,`tagNameCheck`)&&nt(t.tagNameCheck)&&(z.tagNameCheck=t.tagNameCheck),Mz(t,`attributeNameCheck`)&&nt(t.attributeNameCheck)&&(z.attributeNameCheck=t.attributeNameCheck),Mz(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(z.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),dz(z),_e&&(he=!1),Te&&(we=!0),Me&&(L=$({},Yz),R=fz(null),Me.html===!0&&($(L,Uz),$(R,Xz)),Me.svg===!0&&($(L,Wz),$(R,Zz),$(R,$z)),Me.svgFilters===!0&&($(L,Gz),$(R,Zz),$(R,$z)),Me.mathMl===!0&&($(L,qz),$(R,Qz),$(R,$z))),pe.tagCheck=null,pe.attributeCheck=null,Mz(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?pe.tagCheck=e.ADD_TAGS:xz(e.ADD_TAGS)&&(L===le&&(L=zz(L)),$(L,e.ADD_TAGS,$e))),Mz(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?pe.attributeCheck=e.ADD_ATTR:xz(e.ADD_ATTR)&&(R===ue&&(R=zz(R)),$(R,e.ADD_ATTR,$e))),Mz(e,`ADD_URI_SAFE_ATTR`)&&xz(e.ADD_URI_SAFE_ATTR)&&$(Le,e.ADD_URI_SAFE_ATTR,$e),Mz(e,`FORBID_CONTENTS`)&&xz(e.FORBID_CONTENTS)&&(Ne===Pe&&(Ne=zz(Ne)),$(Ne,e.FORBID_CONTENTS,$e)),Mz(e,`ADD_FORBID_CONTENTS`)&&xz(e.ADD_FORBID_CONTENTS)&&(Ne===Pe&&(Ne=zz(Ne)),$(Ne,e.ADD_FORBID_CONTENTS,$e)),Ae&&(L[`#text`]=!0),ye&&$(L,[`html`,`head`,`body`]),L.table&&($(L,[`tbody`]),delete de.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Fz(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Fz(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=S;S=e.TRUSTED_TYPES_POLICY;try{C=D(``)}catch(e){throw S=t,e}}else e.TRUSTED_TYPES_POLICY===null?(S=void 0,C=``):(S===void 0&&(S=k()),S&&typeof C==`string`&&(C=D(``)));uz&&uz(e),et=e},it=$({},[...Wz,...Gz,...Kz]),at=$({},[...qz,...Jz]),ot=function(e,t,n){return t.namespaceURI===Ve?e===`svg`:t.namespaceURI===ze?e===`svg`&&(n===`annotation-xml`||qe[n]):!!it[e]},st=function(e,t,n){return t.namespaceURI===Ve?e===`math`:t.namespaceURI===Be?e===`math`&&Ye[n]:!!at[e]},ct=function(e,t,n){return t.namespaceURI===Be&&!Ye[n]||t.namespaceURI===ze&&!qe[n]?!1:!at[e]&&(Xe[e]||!it[e])},lt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:He,tagName:`template`});let n=Sz(e.tagName),r=Sz(t.tagName);return We[e.namespaceURI]?e.namespaceURI===Be?ot(n,t,r):e.namespaceURI===ze?st(n,t,r):e.namespaceURI===Ve?ct(n,t,r):!!(Ze===`application/xhtml+xml`&&We[e.namespaceURI]):!1},ut=function(e){yz(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(m(e),!_(e))throw Fz(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},dt=function(e){mt(e);let t=g(e);if(t){let e=[];gz(t,t=>{yz(e,t)}),gz(e,e=>{try{m(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},ft=function(e,n){try{yz(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{yz(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(we||Te)try{ut(n)}catch{}else try{n.setAttribute(e,``)}catch{}},pt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||R[$e(i)]))try{e.removeAttribute(i)}catch{}}},mt=function(e){let t=[e];for(;t.length>0;){let e=t.pop(),n=b?b(e):e.nodeType;n===mB.element&&pt(e);let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},ht=function(e){if(!ve)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=b?b(e):e.nodeType;if(n===mB.processingInstruction||n===mB.comment&&Pz(dB,e.data)){try{m(e)}catch{}continue}if(n===mB.element){let t=e,n=$e(x?x(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},gt=function(e){let t=null,r=null;if(Ce)e=`<remove></remove>`+e;else{let t=wz(e,/^[\r\n\t ]+/);r=t&&t[0]}Ze===`application/xhtml+xml`&&He===Ve&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=S?D(e):e;if(He===Ve)try{t=new u().parseFromString(i,Ze)}catch{}if(!t||!t.documentElement){t=j.createDocument(He,`template`,null);try{t.documentElement.innerHTML=Ue?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),He===Ve?ee.call(t,ye?`html`:`body`)[0]:ye?t.documentElement:a},_t=function(e){return M.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},vt=function(e){return e=Tz(e,ne,` `),e=Tz(e,F,` `),e=Tz(e,re,` `),e},yt=function(e){var t;e.normalize();let n=M.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=vt(r.data),r=n.nextNode();let i=(t=e.querySelectorAll)?.call(e,`template`);i&&gz(i,e=>{xt(e.content)&&yt(e.content)})},bt=function(e){let t=x?x(e):null;return typeof t!=`string`||$e(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},xt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===mB.documentFragment}catch{return!1}},St=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function V(e,n,r){e.length!==0&&gz(e,e=>{e.call(t,n,r,et)})}let H=function(e,t){return!!(ve&&e.hasChildNodes()&&!St(e.firstElementChild)&&Pz(uB,e.textContent)&&Pz(uB,e.innerHTML)||ve&&e.namespaceURI===Ve&&t===`style`&&St(e.firstElementChild)||e.nodeType===mB.processingInstruction||ve&&e.nodeType===mB.comment&&Pz(dB,e.data))},Ct=function(e,t){if(!de[t]&&Dt(t)&&(z.tagNameCheck instanceof RegExp&&Pz(z.tagNameCheck,t)||z.tagNameCheck instanceof Function&&z.tagNameCheck(t)))return!1;if(Ae&&!Ne[t]){let t=_(e),n=g(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=je?n[i]:p(n[i],!0);t.insertBefore(r,h(e))}}}return ut(e),!0},wt=function(e,n){if(V(P.beforeSanitizeElements,e,null),e!==n&&_(e)===null)return!0;if(bt(e))return ut(e),!0;let r=$e(x?x(e):e.nodeName);if(V(P.uponSanitizeElement,e,{tagName:r,allowedTags:L}),e!==n&&_(e)===null)return!0;if(H(e,r))return ut(e),!0;if(de[r]||!(pe.tagCheck instanceof Function&&pe.tagCheck(r))&&!L[r]){let t=Ct(e,r);return t===!1&&V(P.afterSanitizeElements,e,null),t}let i=b?b(e):e.nodeType;if(i===mB.element&&!lt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Pz(fB,e.innerHTML))return ut(e),!0;if(_e&&e.nodeType===mB.text){let n=vt(e.textContent);e.textContent!==n&&(yz(t.removed,{element:e.cloneNode()}),e.textContent=n)}return V(P.afterSanitizeElements,e,null),!1},Tt=function(e,t,r){if(fe[t]||ve&&t===`patchsrc`||ve&&t===`for`&&e!==`label`&&e!==`output`||De&&(t===`id`||t===`name`)&&(r in n||r in tt))return!1;let i=R[t]||pe.attributeCheck instanceof Function&&pe.attributeCheck(t,e);if(!(he&&Pz(ie,t))&&!(me&&Pz(ae,t))){if(i){if(!Le[t]&&!Pz(ce,Tz(r,oe,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Ez(r,`data:`)===0&&Fe[e])&&!(ge&&!Pz(I,Tz(r,oe,``)))&&r)return!1}else if(!(Dt(e)&&(z.tagNameCheck instanceof RegExp&&Pz(z.tagNameCheck,e)||z.tagNameCheck instanceof Function&&z.tagNameCheck(e))&&(z.attributeNameCheck instanceof RegExp&&Pz(z.attributeNameCheck,t)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(t,e))||t===`is`&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Pz(z.tagNameCheck,r)||z.tagNameCheck instanceof Function&&z.tagNameCheck(r))))return!1}return!0},Et=$({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Dt=function(e){return!Et[Sz(e)]&&Pz(se,e)},Ot=function(e,t,n,r){if(S&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return D(r);case`TrustedScriptURL`:return O(r)}return r},kt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),bt(e)?ut(e):vz(t.removed)}catch{ft(n,e)}},At=function(e){V(P.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||bt(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0},r=t.length,i=$e(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=$e(o),u=c,d=o===`value`?u:Dz(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,V(P.uponSanitizeAttribute,e,n),d=n.attrValue,Oe&&(l===`id`||l===`name`)&&Ez(d,ke)!==0&&(ft(o,e),d=ke+d),ve&&Pz(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){ft(o,e);continue}if(l===`attributename`&&wz(d,`href`)){ft(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){ft(o,e);continue}if(!B&&Pz(pB,d)){ft(o,e);continue}if(_e&&(d=vt(d)),!Tt(i,l,d)){ft(o,e);continue}d=Ot(i,l,s,d),d!==u&&kt(e,o,s,d)}}V(P.afterSanitizeAttributes,e,null)},jt=function(e){let t=null,n=_t(e);for(V(P.beforeSanitizeShadowDOM,e,null);t=n.nextNode();){V(P.uponSanitizeShadowNode,t,null),wt(t,e),At(t),xt(t.content)&&jt(t.content);let n=b?b(t):t.nodeType;if(n===mB.element){let e=v(t);xt(e)&&(Mt(e),jt(e))}}V(P.afterSanitizeShadowDOM,e,null)},Mt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){jt(e.shadow);continue}let n=e.node,r=b?b(n):n.nodeType,i=r===mB.element,a=g(n);if(a)for(let e=a.length-1;e>=0;--e)t.push({node:a[e],shadow:null});if(i){let e=x?x(n):null;if(typeof e==`string`&&$e(e)===`template`){let e=n.content;xt(e)&&t.push({node:e,shadow:null})}}if(i){let e=v(n);xt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ue=!e,Ue&&(e=`<!-->`),typeof e!=`string`&&!St(e)&&(e=Bz(e),typeof e!=`string`))throw Fz(`dirty is not a string, aborting`);if(!t.isSupported)return e;be?(L=xe,R=Se):rt(n),(P.uponSanitizeElement.length>0||P.uponSanitizeAttribute.length>0)&&(L=zz(L)),P.uponSanitizeAttribute.length>0&&(R=zz(R)),t.removed=[];let c=je&&typeof e!=`string`&&St(e);if(c){ht(e);let t=x?x(e):e.nodeName;if(typeof t==`string`){let n=$e(t);if(!L[n]||de[n])throw dt(e),Fz(`root node is forbidden and cannot be sanitized in-place`)}if(bt(e))throw dt(e),Fz(`root node is clobbered and cannot be sanitized in-place`);try{Mt(e)}catch(t){throw dt(e),t}}else if(St(e))i=gt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===mB.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Mt(a);else{if(!we&&!_e&&!ye&&e.indexOf(`<`)===-1)return S&&Ee?D(e):e;if(i=gt(e),!i)return we?null:Ee?C:``}i&&Ce&&ut(i.firstChild);let l=c?e:i,u=_t(l);try{for(;o=u.nextNode();)wt(o,l),At(o),xt(o.content)&&jt(o.content)}catch(n){throw c&&(dt(e),gz(t.removed,e=>{e.element&&mt(e.element)})),n}if(c)return gz(t.removed,e=>{e.element&&mt(e.element)}),_e&&yt(e),e;if(we){if(_e&&yt(i),Te)for(s=N.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(R.shadowroot||R.shadowrootmode)&&(s=te.call(r,s,!0)),s}let d=ye?i.outerHTML:i.innerHTML;return ye&&L[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Pz(cB,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
1409
- `+d),_e&&(d=vt(d)),S&&Ee?D(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rt(e),be=!0,xe=L,Se=R},t.clearConfig=function(){et=null,be=!1,xe=null,Se=null,S=w,C=``},t.isValidAttribute=function(e,t,n){et||rt({});let r=$e(e),i=$e(t);return Tt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Mz(P,e)&&yz(P[e],t)},t.removeHook=function(e,t){if(Mz(P,e)){if(t!==void 0){let n=_z(P[e],t);return n===-1?void 0:bz(P[e],n,1)[0]}return vz(P[e])}},t.removeHooks=function(e){Mz(P,e)&&(P[e]=[])},t.removeAllHooks=function(){P=_B()},t}var bB=yB(),xB=M(((exports,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,m=p.toString,h=Math.max,g=Math.min,_=function(){return f.Date.now()};function v(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=S(t)||0,y(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?h(S(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function m(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function v(e){return u=e,c=setTimeout(C,t),d?m(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?g(i,o-r):i}function x(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=_();if(x(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,p&&i?m(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(_())}function D(){var e=_(),n=x(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return v(l);if(f)return c=setTimeout(C,t),m(l)}return c===void 0&&(c=setTimeout(C,t)),s}return D.cancel=T,D.flush=E,D}function y(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function b(e){return!!e&&typeof e==`object`}function x(e){return typeof e==`symbol`||b(e)&&m.call(e)==i}function S(e){if(typeof e==`number`)return e;if(x(e))return r;if(y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=y(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=v})),SB=M(((exports,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),CB=M(((exports,n)=>{n.exports={...e}})),wB=M((exports=>{var t=CB();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;exports.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),TB=M(((exports,t)=>{t.exports=wB()})),EB=M(((exports,t)=>{(function(){var e,n,r,i,a,o;typeof performance<`u`&&performance!==null&&performance.now?t.exports=function(){return performance.now()}:typeof process<`u`&&process!==null&&process.hrtime?(t.exports=function(){return(e()-a)/1e6},n=process.hrtime,e=function(){var e;return e=n(),e[0]*1e9+e[1]},i=e(),o=process.uptime()*1e9,a=i-o):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(exports)})),DB=M(((exports,t)=>{for(var n=EB(),r=typeof window>`u`?global:window,i=[`moz`,`webkit`],a=`AnimationFrame`,o=r[`request`+a],s=r[`cancel`+a]||r[`cancelRequest`+a],c=0;!o&&c<i.length;c++)o=r[i[c]+`Request`+a],s=r[i[c]+`Cancel`+a]||r[i[c]+`CancelRequest`+a];if(!o||!s){var l=0,u=0,d=[],f=1e3/60;o=function(e){if(d.length===0){var t=n(),r=Math.max(0,f-(t-l));l=r+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(r))}return d.push({handle:++u,callback:e,cancelled:!1}),u},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}t.exports=function(e){return o.call(r,e)},t.exports.cancel=function(){s.apply(r,arguments)},t.exports.polyfill=function(e){e||=r,e.requestAnimationFrame=o,e.cancelAnimationFrame=s}}));xB(),SB(),TB(),DB();var OB=()=>{};function kB(e,t=0,n=!0,r=!1){let i=_(void 0);f(()=>{i.current=e}),f(()=>{if(n){let e=function(){i.current?.()};r&&e();let n=window.setInterval(e,t);return()=>{window.clearInterval(n)}}return OB},[n,t,r])}var AB=!1,jB=()=>{};if(AB){let e=e=>{let t=`Warning: ${e}`;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}};jB=function(t,n){t||e(n)}}const MB=(e,t,n,r,i)=>{switch(e){case`bottom`:return{left:`${t}px`,top:`${-n}px`};case`left`:return{left:`${i-n}px`,top:`${r/2-n}px`};case`right`:return{left:`${-n}px`,top:`${r/2-n}px`};default:return{left:`${t}px`,top:`${r-10+n}px`}}},NB=({text:e})=>b(`div`,{dangerouslySetInnerHTML:{__html:bB.sanitize(e)}}),PB=()=>window.navigator.userAgent===`Playwright`||window.navigator.userAgent.includes(`Protractor`),FB=()=>{let e=_(null),t=_(null),n=_(null),[r,i]=v(``),[a,o]=v(null),[s,c]=v(!1),[l,u]=v(!1),[d,p]=v(``),[m,h]=v(!1);kB(()=>{let e=t?.current?.getBoundingClientRect();m||(a?.y!==e?.y||a?.x!==e?.x)&&c(!1)},300,s);let g=_(null),S=e=>{let t=e;for(let e=0;e<8&&t;e++){if(!t)return null;if(t?.dataset?.qtipText)return t.dataset;t=t?.parentElement}return null},C=(r,a,s,l,d=`top`)=>{if(r&&t.current){u(a),i(r),p(s),o(t.current.getBoundingClientRect());let f=()=>{e.current&&t.current&&n.current&&RM(t.current,e.current,{placement:d,middleware:[Lu(10),IM(),FM({padding:8}),LM({element:n.current})]}).then(({x:r,y:i,middlewareData:a,placement:o})=>{if(e.current){if(Object.assign(e.current.style,{left:`${r}px`,top:`${i}px`}),a.arrow&&t.current&&n.current){let{x:t,y:r}=a.arrow,i=n.current.offsetHeight/2,s=e.current.offsetHeight,c=e.current.offsetWidth,l=MB(o,t||r,i,s,c);Object.assign(n.current.style,l)}c(!0)}})};l>0?requestAnimationFrame(()=>{f()}):f()}};return f(()=>{let e=e=>{g.current&&clearTimeout(g.current);let n=e.target,r=S(n);if(!r){t.current=null;return}t.current=n;let i=r.qtipText;if(i){let e=parseInt(r.qtipDelay||`500`,10),t=r.qtipPlacement||`top`,n=r.qtipIsHtml===`true`,a=r.qtipTestid;g.current=setTimeout(()=>{C(i,n,a,e,t)},e)}};return!PB()&&document.body.addEventListener(`mousemove`,e),()=>{!PB()&&document.removeEventListener(`mousemove`,e)}},[]),b(y,{children:x(`div`,{onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),"data-testid":d,ref:e,className:V(`tw:absolute tw:z-9999 tw:max-w-96 tw:rounded-sm tw:bg-black tw:p-2 tw:text-xs tw:text-sq-white`,{"tw:visible tw:animate-fadeIn":s,"tw:pointer-events-none tw:invisible":!s}),children:[l?b(NB,{text:r}):r,b(`div`,{className:`tw:absolute tw:h-2.5 tw:w-2.5 tw:rotate-45 tw:bg-black`,ref:n})]})})},IB=e=>{let{triggerIcon:t,id:n,extraClassNames:r=``,disabled:i=!1,...a}=e,o=qc(a);return b(u_,{...e,children:b(Xg,{id:n,className:`
1407
+ function nz(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 rz(e){if(Array.isArray(e))return e}function iz(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)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function az(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
1408
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oz(e,t){return rz(e)||iz(e,t)||sz(e,t)||az()}function sz(e,t){if(e){if(typeof e==`string`)return nz(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)?nz(e,t):void 0}}const cz=Object.entries,lz=Object.setPrototypeOf,uz=Object.isFrozen,dz=Object.getPrototypeOf,fz=Object.getOwnPropertyDescriptor;let pz=Object.freeze,mz=Object.seal,hz=Object.create,gz=typeof Reflect<`u`&&Reflect,_z=gz.apply,vz=gz.construct;pz||=function(e){return e},mz||=function(e){return e},_z||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},vz||=function(e){var t=[...arguments].slice(1);return new e(...t)};const yz=zz(Array.prototype.forEach),bz=zz(Array.prototype.lastIndexOf),xz=zz(Array.prototype.pop),Sz=zz(Array.prototype.push),Cz=zz(Array.prototype.splice),wz=Array.isArray,Tz=zz(String.prototype.toLowerCase),Ez=zz(String.prototype.toString),Dz=zz(String.prototype.match),Oz=zz(String.prototype.replace),kz=zz(String.prototype.indexOf),Az=zz(String.prototype.trim),jz=zz(Number.prototype.toString),Mz=zz(Boolean.prototype.toString),Nz=typeof BigInt>`u`?null:zz(BigInt.prototype.toString),Pz=typeof Symbol>`u`?null:zz(Symbol.prototype.toString),Fz=zz(Object.prototype.hasOwnProperty),Iz=zz(Object.prototype.toString),Lz=zz(RegExp.prototype.test),Rz=Bz(TypeError);function zz(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return _z(e,t,n)}}function Bz(e){return function(){var t=[...arguments];return vz(e,t)}}function $(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tz;if(lz&&lz(e,null),!wz(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(uz(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Vz(e){for(let t=0;t<e.length;t++){let n=Fz(e,t);n||(e[t]=null)}return e}function Hz(e){let t=hz(null);for(let r of cz(e)){var n=oz(r,2);let i=n[0],a=n[1],o=Fz(e,i);o&&(wz(a)?t[i]=Vz(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=Hz(a):t[i]=a)}return t}function Uz(e){switch(typeof e){case`string`:return e;case`number`:return jz(e);case`boolean`:return Mz(e);case`bigint`:return Nz?Nz(e):`0`;case`symbol`:return Pz?Pz(e):`Symbol()`;case`undefined`:return Iz(e);case`function`:case`object`:{if(e===null)return Iz(e);let t=e,n=Wz(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Iz(e)}return Iz(e)}default:return Iz(e)}}function Wz(e,t){for(;e!==null;){let n=fz(e,t);if(n){if(n.get)return zz(n.get);if(typeof n.value==`function`)return zz(n.value)}e=dz(e)}function n(){return null}return n}function Gz(e){try{return Lz(e,``),!0}catch{return!1}}const Kz=pz(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),qz=pz(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Jz=pz([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Yz=pz([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Xz=pz(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Zz=pz([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Qz=pz([`#text`]),$z=pz(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),eB=pz(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),tB=pz(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),nB=pz([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),rB=mz(/{{[\w\W]*|^[\w\W]*}}/g),iB=mz(/<%[\w\W]*|^[\w\W]*%>/g),aB=mz(/\${[\w\W]*/g),oB=mz(/^data-[\-\w.\u00B7-\uFFFF]+$/),sB=mz(/^aria-[\-\w]+$/),cB=mz(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lB=mz(/^(?:\w+script|data):/i),uB=mz(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dB=mz(/^html$/i),fB=mz(/^[a-z][.\w]*(-[.\w]+)+$/i),pB=mz(/<[/\w!]/g),mB=mz(/<[/\w]/g),hB=mz(/<\/no(script|embed|frames)/i),gB=mz(/\/>/i),_B={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},vB=function(){return typeof window>`u`?null:window},yB=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},bB=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},xB=function(e,t,n,r){return Fz(e,t)&&wz(e[t])?$(r.base?Hz(r.base):{},e[t],r.transform):n};function SB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vB(),t=e=>SB(e);if(t.version=`3.4.12`,t.removed=[],!e||!e.document||e.document.nodeType!==_B.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,f=s.prototype,p=Wz(f,`cloneNode`),m=Wz(f,`remove`),h=Wz(f,`nextSibling`),g=Wz(f,`childNodes`),_=Wz(f,`parentNode`),v=Wz(f,`shadowRoot`),y=Wz(f,`attributes`),b=o&&o.prototype?Wz(o.prototype,`nodeType`):null,x=o&&o.prototype?Wz(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,C=``,w,T=0,E=function(){if(T>0)throw Rz(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},D=function(e){E(),T++;try{return S.createHTML(e)}finally{T--}},O=function(e){E(),T++;try{return S.createScriptURL(e)}finally{T--}},k=function(){return w=yB(d,i),w},A=n,j=A.implementation,M=A.createNodeIterator,N=A.createDocumentFragment,ee=A.getElementsByTagName,te=r.importNode,P=bB();t.isSupported=typeof cz==`function`&&typeof _==`function`&&j&&j.createHTMLDocument!==void 0;let ne=rB,F=iB,re=aB,ie=oB,ae=sB,I=lB,oe=uB,se=fB,ce=cB,L=null,le=$({},[...Kz,...qz,...Jz,...Xz,...Qz]),R=null,ue=$({},[...$z,...eB,...tB,...nB]),z=Object.seal(hz(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,fe=null,pe=Object.seal(hz(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),me=!0,he=!0,ge=!1,B=!0,_e=!1,ve=!0,ye=!1,be=!1,xe=null,Se=null,Ce=!1,we=!1,Te=!1,Ee=!1,De=!0,Oe=!1,ke=`user-content-`,Ae=!0,je=!1,Me={},Ne=null,Pe=$({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Fe=null,Ie=$({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Le=null,Re=$({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),ze=`http://www.w3.org/1998/Math/MathML`,Be=`http://www.w3.org/2000/svg`,Ve=`http://www.w3.org/1999/xhtml`,He=Ve,Ue=!1,We=null,Ge=$({},[ze,Be,Ve],Ez),Ke=pz([`mi`,`mo`,`mn`,`ms`,`mtext`]),qe=$({},Ke),Je=pz([`annotation-xml`]),Ye=$({},Je),Xe=$({},[`title`,`style`,`font`,`a`,`script`]),Ze=null,Qe=[`application/xhtml+xml`,`text/html`],$e=null,et=null,tt=n.createElement(`form`),nt=function(e){return e instanceof RegExp||e instanceof Function},rt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(et&&et===e)return;(!e||typeof e!=`object`)&&(e={}),e=Hz(e),Ze=Qe.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,$e=Ze===`application/xhtml+xml`?Ez:Tz,L=xB(e,`ALLOWED_TAGS`,le,{transform:$e}),R=xB(e,`ALLOWED_ATTR`,ue,{transform:$e}),We=xB(e,`ALLOWED_NAMESPACES`,Ge,{transform:Ez}),Le=xB(e,`ADD_URI_SAFE_ATTR`,Re,{transform:$e,base:Re}),Fe=xB(e,`ADD_DATA_URI_TAGS`,Ie,{transform:$e,base:Ie}),Ne=xB(e,`FORBID_CONTENTS`,Pe,{transform:$e}),de=xB(e,`FORBID_TAGS`,Hz({}),{transform:$e}),fe=xB(e,`FORBID_ATTR`,Hz({}),{transform:$e}),Me=Fz(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Hz(e.USE_PROFILES):e.USE_PROFILES:!1,me=e.ALLOW_ARIA_ATTR!==!1,he=e.ALLOW_DATA_ATTR!==!1,ge=e.ALLOW_UNKNOWN_PROTOCOLS||!1,B=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,_e=e.SAFE_FOR_TEMPLATES||!1,ve=e.SAFE_FOR_XML!==!1,ye=e.WHOLE_DOCUMENT||!1,we=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ee=e.RETURN_TRUSTED_TYPE||!1,Ce=e.FORCE_BODY||!1,De=e.SANITIZE_DOM!==!1,Oe=e.SANITIZE_NAMED_PROPS||!1,Ae=e.KEEP_CONTENT!==!1,je=e.IN_PLACE||!1,ce=Gz(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:cB,He=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ve,qe=Fz(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?Hz(e.MATHML_TEXT_INTEGRATION_POINTS):$({},Ke),Ye=Fz(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?Hz(e.HTML_INTEGRATION_POINTS):$({},Je);let t=Fz(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?Hz(e.CUSTOM_ELEMENT_HANDLING):hz(null);if(z=hz(null),Fz(t,`tagNameCheck`)&&nt(t.tagNameCheck)&&(z.tagNameCheck=t.tagNameCheck),Fz(t,`attributeNameCheck`)&&nt(t.attributeNameCheck)&&(z.attributeNameCheck=t.attributeNameCheck),Fz(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(z.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),mz(z),_e&&(he=!1),Te&&(we=!0),Me&&(L=$({},Qz),R=hz(null),Me.html===!0&&($(L,Kz),$(R,$z)),Me.svg===!0&&($(L,qz),$(R,eB),$(R,nB)),Me.svgFilters===!0&&($(L,Jz),$(R,eB),$(R,nB)),Me.mathMl===!0&&($(L,Xz),$(R,tB),$(R,nB))),pe.tagCheck=null,pe.attributeCheck=null,Fz(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?pe.tagCheck=e.ADD_TAGS:wz(e.ADD_TAGS)&&(L===le&&(L=Hz(L)),$(L,e.ADD_TAGS,$e))),Fz(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?pe.attributeCheck=e.ADD_ATTR:wz(e.ADD_ATTR)&&(R===ue&&(R=Hz(R)),$(R,e.ADD_ATTR,$e))),Fz(e,`ADD_URI_SAFE_ATTR`)&&wz(e.ADD_URI_SAFE_ATTR)&&$(Le,e.ADD_URI_SAFE_ATTR,$e),Fz(e,`FORBID_CONTENTS`)&&wz(e.FORBID_CONTENTS)&&(Ne===Pe&&(Ne=Hz(Ne)),$(Ne,e.FORBID_CONTENTS,$e)),Fz(e,`ADD_FORBID_CONTENTS`)&&wz(e.ADD_FORBID_CONTENTS)&&(Ne===Pe&&(Ne=Hz(Ne)),$(Ne,e.ADD_FORBID_CONTENTS,$e)),Ae&&(L[`#text`]=!0),ye&&$(L,[`html`,`head`,`body`]),L.table&&($(L,[`tbody`]),delete de.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Rz(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Rz(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=S;S=e.TRUSTED_TYPES_POLICY;try{C=D(``)}catch(e){throw S=t,e}}else e.TRUSTED_TYPES_POLICY===null?(S=void 0,C=``):(S===void 0&&(S=k()),S&&typeof C==`string`&&(C=D(``)));pz&&pz(e),et=e},it=$({},[...qz,...Jz,...Yz]),at=$({},[...Xz,...Zz]),ot=function(e,t,n){return t.namespaceURI===Ve?e===`svg`:t.namespaceURI===ze?e===`svg`&&(n===`annotation-xml`||qe[n]):!!it[e]},st=function(e,t,n){return t.namespaceURI===Ve?e===`math`:t.namespaceURI===Be?e===`math`&&Ye[n]:!!at[e]},ct=function(e,t,n){return t.namespaceURI===Be&&!Ye[n]||t.namespaceURI===ze&&!qe[n]?!1:!at[e]&&(Xe[e]||!it[e])},lt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:He,tagName:`template`});let n=Tz(e.tagName),r=Tz(t.tagName);return We[e.namespaceURI]?e.namespaceURI===Be?ot(n,t,r):e.namespaceURI===ze?st(n,t,r):e.namespaceURI===Ve?ct(n,t,r):!!(Ze===`application/xhtml+xml`&&We[e.namespaceURI]):!1},ut=function(e){Sz(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(m(e),!_(e))throw Rz(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},dt=function(e){mt(e);let t=g(e);if(t){let e=[];yz(t,t=>{Sz(e,t)}),yz(e,e=>{try{m(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},ft=function(e,n){try{Sz(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Sz(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(we||Te)try{ut(n)}catch{}else try{n.setAttribute(e,``)}catch{}},pt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||R[$e(i)]))try{e.removeAttribute(i)}catch{}}},mt=function(e){let t=[e];for(;t.length>0;){let e=t.pop(),n=b?b(e):e.nodeType;n===_B.element&&pt(e);let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},ht=function(e){if(!ve)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=b?b(e):e.nodeType;if(n===_B.processingInstruction||n===_B.comment&&Lz(mB,e.data)){try{m(e)}catch{}continue}if(n===_B.element){let t=e,n=$e(x?x(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},gt=function(e){let t=null,r=null;if(Ce)e=`<remove></remove>`+e;else{let t=Dz(e,/^[\r\n\t ]+/);r=t&&t[0]}Ze===`application/xhtml+xml`&&He===Ve&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=S?D(e):e;if(He===Ve)try{t=new u().parseFromString(i,Ze)}catch{}if(!t||!t.documentElement){t=j.createDocument(He,`template`,null);try{t.documentElement.innerHTML=Ue?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),He===Ve?ee.call(t,ye?`html`:`body`)[0]:ye?t.documentElement:a},_t=function(e){return M.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},vt=function(e){return e=Oz(e,ne,` `),e=Oz(e,F,` `),e=Oz(e,re,` `),e},yt=function(e){var t;e.normalize();let n=M.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=vt(r.data),r=n.nextNode();let i=(t=e.querySelectorAll)?.call(e,`template`);i&&yz(i,e=>{xt(e.content)&&yt(e.content)})},bt=function(e){let t=x?x(e):null;return typeof t!=`string`||$e(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},xt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===_B.documentFragment}catch{return!1}},St=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function V(e,n,r){e.length!==0&&yz(e,e=>{e.call(t,n,r,et)})}let H=function(e,t){return!!(ve&&e.hasChildNodes()&&!St(e.firstElementChild)&&Lz(pB,e.textContent)&&Lz(pB,e.innerHTML)||ve&&e.namespaceURI===Ve&&t===`style`&&St(e.firstElementChild)||e.nodeType===_B.processingInstruction||ve&&e.nodeType===_B.comment&&Lz(mB,e.data))},Ct=function(e,t){if(!de[t]&&Dt(t)&&(z.tagNameCheck instanceof RegExp&&Lz(z.tagNameCheck,t)||z.tagNameCheck instanceof Function&&z.tagNameCheck(t)))return!1;if(Ae&&!Ne[t]){let t=_(e),n=g(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=je?n[i]:p(n[i],!0);t.insertBefore(r,h(e))}}}return ut(e),!0},wt=function(e,n){if(V(P.beforeSanitizeElements,e,null),e!==n&&_(e)===null)return!0;if(bt(e))return ut(e),!0;let r=$e(x?x(e):e.nodeName);if(V(P.uponSanitizeElement,e,{tagName:r,allowedTags:L}),e!==n&&_(e)===null)return!0;if(H(e,r))return ut(e),!0;if(de[r]||!(pe.tagCheck instanceof Function&&pe.tagCheck(r))&&!L[r]){let t=Ct(e,r);return t===!1&&V(P.afterSanitizeElements,e,null),t}let i=b?b(e):e.nodeType;if(i===_B.element&&!lt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Lz(hB,e.innerHTML))return ut(e),!0;if(_e&&e.nodeType===_B.text){let n=vt(e.textContent);e.textContent!==n&&(Sz(t.removed,{element:e.cloneNode()}),e.textContent=n)}return V(P.afterSanitizeElements,e,null),!1},Tt=function(e,t,r){if(fe[t]||ve&&t===`patchsrc`||ve&&t===`for`&&e!==`label`&&e!==`output`||De&&(t===`id`||t===`name`)&&(r in n||r in tt))return!1;let i=R[t]||pe.attributeCheck instanceof Function&&pe.attributeCheck(t,e);if(!(he&&Lz(ie,t))&&!(me&&Lz(ae,t))){if(i){if(!Le[t]&&!Lz(ce,Oz(r,oe,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&kz(r,`data:`)===0&&Fe[e])&&!(ge&&!Lz(I,Oz(r,oe,``)))&&r)return!1}else if(!(Dt(e)&&(z.tagNameCheck instanceof RegExp&&Lz(z.tagNameCheck,e)||z.tagNameCheck instanceof Function&&z.tagNameCheck(e))&&(z.attributeNameCheck instanceof RegExp&&Lz(z.attributeNameCheck,t)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(t,e))||t===`is`&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Lz(z.tagNameCheck,r)||z.tagNameCheck instanceof Function&&z.tagNameCheck(r))))return!1}return!0},Et=$({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Dt=function(e){return!Et[Tz(e)]&&Lz(se,e)},Ot=function(e,t,n,r){if(S&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return D(r);case`TrustedScriptURL`:return O(r)}return r},kt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),bt(e)?ut(e):xz(t.removed)}catch{ft(n,e)}},At=function(e){V(P.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||bt(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0},r=t.length,i=$e(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=$e(o),u=c,d=o===`value`?u:Az(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,V(P.uponSanitizeAttribute,e,n),d=n.attrValue,Oe&&(l===`id`||l===`name`)&&kz(d,ke)!==0&&(ft(o,e),d=ke+d),ve&&Lz(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){ft(o,e);continue}if(l===`attributename`&&Dz(d,`href`)){ft(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){ft(o,e);continue}if(!B&&Lz(gB,d)){ft(o,e);continue}if(_e&&(d=vt(d)),!Tt(i,l,d)){ft(o,e);continue}d=Ot(i,l,s,d),d!==u&&kt(e,o,s,d)}}V(P.afterSanitizeAttributes,e,null)},jt=function(e){let t=null,n=_t(e);for(V(P.beforeSanitizeShadowDOM,e,null);t=n.nextNode();){V(P.uponSanitizeShadowNode,t,null),wt(t,e),At(t),xt(t.content)&&jt(t.content);let n=b?b(t):t.nodeType;if(n===_B.element){let e=v(t);xt(e)&&(Mt(e),jt(e))}}V(P.afterSanitizeShadowDOM,e,null)},Mt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){jt(e.shadow);continue}let n=e.node,r=b?b(n):n.nodeType,i=r===_B.element,a=g(n);if(a)for(let e=a.length-1;e>=0;--e)t.push({node:a[e],shadow:null});if(i){let e=x?x(n):null;if(typeof e==`string`&&$e(e)===`template`){let e=n.content;xt(e)&&t.push({node:e,shadow:null})}}if(i){let e=v(n);xt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ue=!e,Ue&&(e=`<!-->`),typeof e!=`string`&&!St(e)&&(e=Uz(e),typeof e!=`string`))throw Rz(`dirty is not a string, aborting`);if(!t.isSupported)return e;be?(L=xe,R=Se):rt(n),(P.uponSanitizeElement.length>0||P.uponSanitizeAttribute.length>0)&&(L=Hz(L)),P.uponSanitizeAttribute.length>0&&(R=Hz(R)),t.removed=[];let c=je&&typeof e!=`string`&&St(e);if(c){ht(e);let t=x?x(e):e.nodeName;if(typeof t==`string`){let n=$e(t);if(!L[n]||de[n])throw dt(e),Rz(`root node is forbidden and cannot be sanitized in-place`)}if(bt(e))throw dt(e),Rz(`root node is clobbered and cannot be sanitized in-place`);try{Mt(e)}catch(t){throw dt(e),t}}else if(St(e))i=gt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===_B.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Mt(a);else{if(!we&&!_e&&!ye&&e.indexOf(`<`)===-1)return S&&Ee?D(e):e;if(i=gt(e),!i)return we?null:Ee?C:``}i&&Ce&&ut(i.firstChild);let l=c?e:i,u=_t(l);try{for(;o=u.nextNode();)wt(o,l),At(o),xt(o.content)&&jt(o.content)}catch(n){throw c&&(dt(e),yz(t.removed,e=>{e.element&&mt(e.element)})),n}if(c)return yz(t.removed,e=>{e.element&&mt(e.element)}),_e&&yt(e),e;if(we){if(_e&&yt(i),Te)for(s=N.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(R.shadowroot||R.shadowrootmode)&&(s=te.call(r,s,!0)),s}let d=ye?i.outerHTML:i.innerHTML;return ye&&L[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Lz(dB,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
1409
+ `+d),_e&&(d=vt(d)),S&&Ee?D(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rt(e),be=!0,xe=L,Se=R},t.clearConfig=function(){et=null,be=!1,xe=null,Se=null,S=w,C=``},t.isValidAttribute=function(e,t,n){et||rt({});let r=$e(e),i=$e(t);return Tt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Fz(P,e)&&Sz(P[e],t)},t.removeHook=function(e,t){if(Fz(P,e)){if(t!==void 0){let n=bz(P[e],t);return n===-1?void 0:Cz(P[e],n,1)[0]}return xz(P[e])}},t.removeHooks=function(e){Fz(P,e)&&(P[e]=[])},t.removeAllHooks=function(){P=bB()},t}var CB=SB(),wB=M(((exports,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,m=p.toString,h=Math.max,g=Math.min,_=function(){return f.Date.now()};function v(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=S(t)||0,y(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?h(S(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function m(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function v(e){return u=e,c=setTimeout(C,t),d?m(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?g(i,o-r):i}function x(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=_();if(x(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,p&&i?m(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(_())}function D(){var e=_(),n=x(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return v(l);if(f)return c=setTimeout(C,t),m(l)}return c===void 0&&(c=setTimeout(C,t)),s}return D.cancel=T,D.flush=E,D}function y(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function b(e){return!!e&&typeof e==`object`}function x(e){return typeof e==`symbol`||b(e)&&m.call(e)==i}function S(e){if(typeof e==`number`)return e;if(x(e))return r;if(y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=y(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=v})),TB=M(((exports,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),EB=M(((exports,n)=>{n.exports={...e}})),DB=M((exports=>{var t=EB();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;exports.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),OB=M(((exports,t)=>{t.exports=DB()})),kB=M(((exports,t)=>{(function(){var e,n,r,i,a,o;typeof performance<`u`&&performance!==null&&performance.now?t.exports=function(){return performance.now()}:typeof process<`u`&&process!==null&&process.hrtime?(t.exports=function(){return(e()-a)/1e6},n=process.hrtime,e=function(){var e;return e=n(),e[0]*1e9+e[1]},i=e(),o=process.uptime()*1e9,a=i-o):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(exports)})),AB=M(((exports,t)=>{for(var n=kB(),r=typeof window>`u`?global:window,i=[`moz`,`webkit`],a=`AnimationFrame`,o=r[`request`+a],s=r[`cancel`+a]||r[`cancelRequest`+a],c=0;!o&&c<i.length;c++)o=r[i[c]+`Request`+a],s=r[i[c]+`Cancel`+a]||r[i[c]+`CancelRequest`+a];if(!o||!s){var l=0,u=0,d=[],f=1e3/60;o=function(e){if(d.length===0){var t=n(),r=Math.max(0,f-(t-l));l=r+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(r))}return d.push({handle:++u,callback:e,cancelled:!1}),u},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}t.exports=function(e){return o.call(r,e)},t.exports.cancel=function(){s.apply(r,arguments)},t.exports.polyfill=function(e){e||=r,e.requestAnimationFrame=o,e.cancelAnimationFrame=s}}));wB(),TB(),OB(),AB();var jB=()=>{};function MB(e,t=0,n=!0,r=!1){let i=_(void 0);f(()=>{i.current=e}),f(()=>{if(n){let e=function(){i.current?.()};r&&e();let n=window.setInterval(e,t);return()=>{window.clearInterval(n)}}return jB},[n,t,r])}var NB=!1,PB=()=>{};if(NB){let e=e=>{let t=`Warning: ${e}`;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}};PB=function(t,n){t||e(n)}}const FB=(e,t,n,r,i)=>{switch(e){case`bottom`:return{left:`${t}px`,top:`${-n}px`};case`left`:return{left:`${i-n}px`,top:`${r/2-n}px`};case`right`:return{left:`${-n}px`,top:`${r/2-n}px`};default:return{left:`${t}px`,top:`${r-10+n}px`}}},IB=({text:e})=>b(`div`,{dangerouslySetInnerHTML:{__html:CB.sanitize(e)}}),LB=()=>window.navigator.userAgent===`Playwright`,RB=()=>{let e=_(null),t=_(null),[n,r]=v(null),[i,a]=v(!1),[o,s]=v(!1);h(()=>{if(!n||!e.current||!t.current)return;let r=!1;return VM(n.target,e.current,{placement:n.placement,middleware:[Bu(10),zM(),RM({padding:8}),BM({element:t.current})]}).then(({x:n,y:i,middlewareData:o,placement:s})=>{if(!(r||!e.current||!t.current)){if(Object.assign(e.current.style,{left:`${n}px`,top:`${i}px`}),o.arrow){let{x:n,y:r}=o.arrow,i=t.current.offsetHeight/2,a=e.current.offsetHeight,c=e.current.offsetWidth,l=FB(s,n??r,i,a,c);Object.assign(t.current.style,l)}a(!0)}}),()=>{r=!0}},[n]),MB(()=>{if(o||!n)return;let e=n.target.getBoundingClientRect();(n.originalPosition.y!==e.y||n.originalPosition.x!==e.x)&&a(!1)},300,i);let c=_(null);return f(()=>{let t=t=>{c.current&&clearTimeout(c.current);let n=t.target instanceof Element?t.target.closest(`[data-qtip-text]`):null;if(!n){let n=t.target instanceof Node&&e.current?.contains(t.target);n||a(!1);return}let i=n.dataset.qtipText;if(!i)return;let o=parseInt(n.dataset.qtipDelay||`500`,10),s=n.dataset.qtipPlacement||`top`,l=n.dataset.qtipIsHtml===`true`,u=n.dataset.qtipTestid;c.current=setTimeout(()=>{r({target:n,text:i,html:l,testId:u,placement:s,originalPosition:n.getBoundingClientRect()})},o)};return!LB()&&document.body.addEventListener(`mousemove`,t),()=>{!LB()&&document.removeEventListener(`mousemove`,t)}},[]),b(y,{children:x(`div`,{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),"data-testid":n?.testId,ref:e,className:V(`tw:absolute tw:z-9999 tw:max-w-96 tw:rounded-sm tw:bg-black tw:p-2 tw:text-xs tw:text-sq-white`,{"tw:visible tw:animate-fadeIn":i,"tw:pointer-events-none tw:invisible":!i}),children:[n?.html?b(IB,{text:n.text}):n?.text,b(`div`,{className:`tw:absolute tw:h-2.5 tw:w-2.5 tw:rotate-45 tw:bg-black`,ref:t})]})})},zB=({"aria-busy":e,...t})=>{let{triggerIcon:n,id:r,extraClassNames:i=``,disabled:a=!1,...o}=t,s=qc(o);return b(p_,{...t,children:b($g,{id:r,className:`
1410
1410
  tw:border-none
1411
1411
  tw:bg-transparent
1412
1412
  tw:focus-within:outline-none
1413
1413
  tw:focus:outline-none
1414
1414
  tw:focus-visible:outline-none
1415
- `,disabled:i,children:b(`div`,{...o,className:H(`tw:flex
1415
+ `,"aria-busy":e,disabled:a,children:b(`div`,{...s,className:H(`tw:flex
1416
1416
  tw:flex-col
1417
1417
  tw:items-center
1418
1418
  tw:bg-transparent
1419
1419
  tw:focus-within:outline-none
1420
1420
  tw:focus:outline-none
1421
- tw:focus-visible:outline-none`,{"tw:cursor-not-allowed tw:opacity-50":i},r),children:t})})})};var LB=IB;const RB=[`new`,`preview`,`success`,`neutral`,`error`],zB=[`button`,`reset`,`submit`,`link`],BB=[`xs`,`sm`,`lg`],VB=[`outline`,`theme`,`theme-light`,`warning`,`danger`,`no-border`,`navigation`,`navigation-selected`],HB=[`left`,`right`],UB=[`theme`,`white`,`dark-gray`,`darkish-gray`,`gray`,`color`,`info`,`text`,`warning`,`inherit`,`danger`,`theme-light`,`success`],WB=[...UB,`default`],GB=[`outline`,`theme`,`theme-light`,`warning`,`danger`,`no-border`],KB=[`color_topic`,`color_analysis`,`color_datalab`,`color_vantage`,`color_insights`];export{wt as Accordion,Qc as Alert,nl as Badge,pl as Button,gl as ButtonGroup,d_ as ButtonWithDropdown,W_ as ButtonWithPopover,GD as Carousel,YD as Checkbox,ZD as Collapse,nO as ColorPickerControl,eO as ColorSwatch,aO as EditorPanel,cO as ExternalLink,xI as I18N_NAMESPACE,Zc as Icon,gO as InputGroup,cl as LoadingIndicator,fk as Modal,zI as Paginator,VI as Pill,EL as ProgressBar,FB as QTip,IL as SeeqActionDropdown,RL as SegmentedControl,bI as Select,LP as SelectComponents,DR as Slider,JR as Tabs,YR as TextArea,mO as TextField,ZR as ToolbarButton,QR as Tooltip,LB as TriggerWithDropdown,RB as badgeVariants,BB as buttonSizes,zB as buttonTypes,VB as buttonVariants,KB as externalLinkThemeClasses,HB as iconPositions,UB as iconTypes,WB as svgIconTypes,GB as toolbarButtonVariants};
1421
+ tw:focus-visible:outline-none`,{"tw:cursor-not-allowed tw:opacity-50":a},i),children:n})})})};var BB=zB;const VB=[`new`,`preview`,`success`,`neutral`,`error`],HB=[`button`,`reset`,`submit`,`link`],UB=[`xs`,`sm`,`lg`],WB=[`outline`,`theme`,`theme-light`,`warning`,`danger`,`no-border`,`navigation`,`navigation-selected`],GB=[`left`,`right`],KB=[`theme`,`white`,`dark-gray`,`darkish-gray`,`gray`,`color`,`info`,`text`,`warning`,`inherit`,`danger`,`theme-light`,`success`],qB=[...KB,`default`],JB=[`outline`,`theme`,`theme-light`,`warning`,`danger`,`no-border`],YB=[`color_topic`,`color_analysis`,`color_datalab`,`color_vantage`,`color_insights`];export{wt as Accordion,Qc as Alert,al as Badge,gl as Button,yl as ButtonGroup,m_ as ButtonWithDropdown,q_ as ButtonWithPopover,JD as Carousel,QD as Checkbox,eO as Collapse,aO as ColorPickerControl,rO as ColorSwatch,cO as EditorPanel,dO as ExternalLink,wI as I18N_NAMESPACE,Zc as Icon,yO as InputGroup,dl as LoadingIndicator,hk as Modal,HI as Paginator,WI as Pill,kL as ProgressBar,RB as QTip,zL as SeeqActionDropdown,VL as SegmentedControl,CI as Select,BP as SelectComponents,AR as Slider,ZR as Tabs,QR as TextArea,_O as TextField,ez as ToolbarButton,tz as Tooltip,BB as TriggerWithDropdown,VB as badgeVariants,UB as buttonSizes,HB as buttonTypes,WB as buttonVariants,YB as externalLinkThemeClasses,GB as iconPositions,KB as iconTypes,qB as svgIconTypes,JB as toolbarButtonVariants};
1422
1422
  //# sourceMappingURL=index.esm.js.map