globalfy-design-system 0.62.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/Icon/assets/selection.json.d.ts +234 -114
- package/dist/fonts/icomoon.eot +0 -0
- package/dist/fonts/icomoon.svg +6 -3
- package/dist/fonts/icomoon.ttf +0 -0
- package/dist/fonts/icomoon.woff +0 -0
- package/dist/globalfy-design-system.js +1166 -1048
- package/dist/globalfy-design-system.umd.cjs +11 -11
- package/dist/selection.json +234 -114
- package/dist/style.css +17 -8
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Pe,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],f):(Pe=typeof globalThis<"u"?globalThis:Pe||self,f(Pe["Globalfy Design System"]={},Pe.React,Pe.$k7QOs$reactdom))})(this,function(Pe,f,hn){"use strict";function Hl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const G=Hl(f),
|
|
1
|
+
(function(Pe,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],f):(Pe=typeof globalThis<"u"?globalThis:Pe||self,f(Pe["Globalfy Design System"]={},Pe.React,Pe.$k7QOs$reactdom))})(this,function(Pe,f,hn){"use strict";function Hl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const G=Hl(f),Cp=Hl(hn);var Qa={exports:{}},mn={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Yl;function
|
|
9
|
+
*/var Yl;function Pp(){if(Yl)return mn;Yl=1;var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,l,c){var u,d={},p=null,h=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)n.call(l,u)&&!a.hasOwnProperty(u)&&(d[u]=l[u]);if(i&&i.defaultProps)for(u in l=i.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:i,key:p,ref:h,props:d,_owner:o.current}}return mn.Fragment=r,mn.jsx=s,mn.jsxs=s,mn}var gn={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Gl;function
|
|
17
|
+
*/var Gl;function Mp(){return Gl||(Gl=1,process.env.NODE_ENV!=="production"&&function(){var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,b="@@iterator";function y(v){if(v===null||typeof v!="object")return null;var A=g&&v[g]||v[b];return typeof A=="function"?A:null}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(v){{for(var A=arguments.length,_=new Array(A>1?A-1:0),B=1;B<A;B++)_[B-1]=arguments[B];C("error",v,_)}}function C(v,A,_){{var B=P.ReactDebugCurrentFrame,J=B.getStackAddendum();J!==""&&(A+="%s",_=_.concat([J]));var ne=_.map(function(q){return String(q)});ne.unshift("Warning: "+A),Function.prototype.apply.call(console[v],console,ne)}}var S=!1,$=!1,N=!1,j=!1,m=!1,D;D=Symbol.for("react.module.reference");function I(v){return!!(typeof v=="string"||typeof v=="function"||v===n||v===a||m||v===o||v===c||v===u||j||v===h||S||$||N||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===d||v.$$typeof===s||v.$$typeof===i||v.$$typeof===l||v.$$typeof===D||v.getModuleId!==void 0))}function T(v,A,_){var B=v.displayName;if(B)return B;var J=A.displayName||A.name||"";return J!==""?_+"("+J+")":_}function k(v){return v.displayName||"Context"}function w(v){if(v==null)return null;if(typeof v.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case i:var A=v;return k(A)+".Consumer";case s:var _=v;return k(_._context)+".Provider";case l:return T(v,v.render,"ForwardRef");case d:var B=v.displayName||null;return B!==null?B:w(v.type)||"Memo";case p:{var J=v,ne=J._payload,q=J._init;try{return w(q(ne))}catch{return null}}}return null}var M=Object.assign,O=0,F,E,V,H,R,W,ee;function U(){}U.__reactDisabledLog=!0;function re(){{if(O===0){F=console.log,E=console.info,V=console.warn,H=console.error,R=console.group,W=console.groupCollapsed,ee=console.groupEnd;var v={configurable:!0,enumerable:!0,value:U,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}O++}}function X(){{if(O--,O===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},v,{value:F}),info:M({},v,{value:E}),warn:M({},v,{value:V}),error:M({},v,{value:H}),group:M({},v,{value:R}),groupCollapsed:M({},v,{value:W}),groupEnd:M({},v,{value:ee})})}O<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=P.ReactCurrentDispatcher,ce;function be(v,A,_){{if(ce===void 0)try{throw Error()}catch(J){var B=J.stack.trim().match(/\n( *(at )?)/);ce=B&&B[1]||""}return`
|
|
18
18
|
`+ce+v}}var pe=!1,fe;{var he=typeof WeakMap=="function"?WeakMap:Map;fe=new he}function Te(v,A){if(!v||pe)return"";{var _=fe.get(v);if(_!==void 0)return _}var B;pe=!0;var J=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ne;ne=te.current,te.current=null,re();try{if(A){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(ze){B=ze}Reflect.construct(v,[],q)}else{try{q.call()}catch(ze){B=ze}v.call(q.prototype)}}else{try{throw Error()}catch(ze){B=ze}v()}}catch(ze){if(ze&&B&&typeof ze.stack=="string"){for(var Y=ze.stack.split(`
|
|
19
19
|
`),Ce=B.stack.split(`
|
|
20
20
|
`),le=Y.length-1,de=Ce.length-1;le>=1&&de>=0&&Y[le]!==Ce[de];)de--;for(;le>=1&&de>=0;le--,de--)if(Y[le]!==Ce[de]){if(le!==1||de!==1)do if(le--,de--,de<0||Y[le]!==Ce[de]){var Ae=`
|
|
@@ -24,7 +24,7 @@ Check the render method of \``+v+"`."}return""}}function Fl(v){{if(v!==void 0){v
|
|
|
24
24
|
|
|
25
25
|
Check your code at `+A+":"+_+"."}return""}}var yo={};function Vl(v){{var A=bo();if(!A){var _=typeof v=="string"?v:v.displayName||v.name;_&&(A=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+_+">.")}return A}}function xo(v,A){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var _=Vl(A);if(yo[_])return;yo[_]=!0;var B="";v&&v._owner&&v._owner!==ct.current&&(B=" It was passed a child from "+w(v._owner.type)+"."),ut(v),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,B),ut(null)}}function wo(v,A){{if(typeof v!="object")return;if(et(v))for(var _=0;_<v.length;_++){var B=v[_];jr(B)&&xo(B,A)}else if(jr(v))v._store&&(v._store.validated=!0);else if(v){var J=y(v);if(typeof J=="function"&&J!==v.entries)for(var ne=J.call(v),q;!(q=ne.next()).done;)jr(q.value)&&xo(q.value,A)}}}function zl(v){{var A=v.type;if(A==null||typeof A=="string")return;var _;if(typeof A=="function")_=A.propTypes;else if(typeof A=="object"&&(A.$$typeof===l||A.$$typeof===d))_=A.propTypes;else return;if(_){var B=w(A);It(_,v.props,"prop",B,v)}else if(A.PropTypes!==void 0&&!Nr){Nr=!0;var J=w(A);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",J||"Unknown")}typeof A.getDefaultProps=="function"&&!A.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Wl(v){{for(var A=Object.keys(v.props),_=0;_<A.length;_++){var B=A[_];if(B!=="children"&&B!=="key"){ut(v),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B),ut(null);break}}v.ref!==null&&(ut(v),x("Invalid attribute `ref` supplied to `React.Fragment`."),ut(null))}}function Co(v,A,_,B,J,ne){{var q=I(v);if(!q){var Y="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(Y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ce=Fl(J);Ce?Y+=Ce:Y+=bo();var le;v===null?le="null":et(v)?le="array":v!==void 0&&v.$$typeof===t?(le="<"+(w(v.type)||"Unknown")+" />",Y=" Did you accidentally export a JSX literal instead of a component?"):le=typeof v,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",le,Y)}var de=ue(v,A,_,J,ne);if(de==null)return de;if(q){var Ae=A.children;if(Ae!==void 0)if(B)if(et(Ae)){for(var dt=0;dt<Ae.length;dt++)wo(Ae[dt],v);Object.freeze&&Object.freeze(Ae)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else wo(Ae,v)}return v===n?Wl(de):zl(de),de}}function Bl(v,A,_){return Co(v,A,_,!0)}function Rl(v,A,_){return Co(v,A,_,!1)}var Kl=Rl,Ul=Bl;gn.Fragment=n,gn.jsx=Kl,gn.jsxs=Ul}()),gn}process.env.NODE_ENV==="production"?Qa.exports=Ph():Qa.exports=Mh();var L=Qa.exports,ql=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ke=e=>!e||typeof e!="object"||Object.keys(e).length===0,Th=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Ql(e,t){e.forEach(function(r){Array.isArray(r)?Ql(r,t):t.push(r)})}function Xl(e){let t=[];return Ql(e,t),t}var Sh=(...e)=>Xl(e).filter(Boolean),Zl=(e,t)=>{let r={},n=Object.keys(e),o=Object.keys(t);for(let a of n)if(o.includes(a)){let s=e[a],i=t[a];typeof s=="object"&&typeof i=="object"?r[a]=Zl(s,i):r[a]=i+" "+s}else r[a]=e[a];for(let a of o)n.includes(a)||(r[a]=t[a]);return r},Jl=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function Eh(){for(var e=0,t,r,n="";e<arguments.length;)(t=arguments[e++])&&(r=ec(t))&&(n&&(n+=" "),n+=r);return n}function ec(e){if(typeof e=="string")return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=ec(e[n]))&&(r&&(r+=" "),r+=t);return r}var Xa="-";function $h(e){var t=Ih(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,o=n===void 0?{}:n;function a(i){var l=i.split(Xa);return l[0]===""&&l.length!==1&&l.shift(),tc(l,t)||Dh(i)}function s(i,l){var c=r[i]||[];return l&&o[i]?[].concat(c,o[i]):c}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function tc(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),o=n?tc(e.slice(1),n):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(Xa);return(s=t.validators.find(function(i){var l=i.validator;return l(a)}))==null?void 0:s.classGroupId}}var rc=/^\[(.+)\]$/;function Dh(e){if(rc.test(e)){var t=rc.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Ih(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},o=Ah(Object.entries(e.classGroups),r);return o.forEach(function(a){var s=a[0],i=a[1];Za(i,n,s,t)}),n}function Za(e,t,r,n){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:nc(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(kh(o)){Za(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(function(s){var i=s[0],l=s[1];Za(l,nc(t,i),r,n)})})}function nc(e,t){var r=e;return t.split(Xa).forEach(function(n){r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function kh(e){return e.isThemeGetter}function Ah(e,t){return t?e.map(function(r){var n=r[0],o=r[1],a=o.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(i){var l=i[0],c=i[1];return[t+l,c]})):s});return[n,a]}):e}function Oh(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function o(a,s){r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)}return{get:function(s){var i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set:function(s,i){r.has(s)?r.set(s,i):o(s,i)}}}var oc="!";function Nh(e){var t=e.separator||":",r=t.length===1,n=t[0],o=t.length;return function(s){for(var i=[],l=0,c=0,u,d=0;d<s.length;d++){var p=s[d];if(l===0){if(p===n&&(r||s.slice(d,d+o)===t)){i.push(s.slice(c,d)),c=d+o;continue}if(p==="/"){u=d;continue}}p==="["?l++:p==="]"&&l--}var h=i.length===0?s:s.substring(c),g=h.startsWith(oc),b=g?h.substring(1):h,y=u&&u>c?u-c:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:y}}}function jh(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var o=n[0]==="[";o?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function Lh(e){return{cache:Oh(e.cacheSize),splitModifiers:Nh(e),...$h(e)}}var _h=/\s+/;function Fh(e,t){var r=t.splitModifiers,n=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(_h).map(function(s){var i=r(s),l=i.modifiers,c=i.hasImportantModifier,u=i.baseClassName,d=i.maybePostfixModifierPosition,p=n(d?u.substring(0,d):u),h=!!d;if(!p){if(!d)return{isTailwindClass:!1,originalClassName:s};if(p=n(u),!p)return{isTailwindClass:!1,originalClassName:s};h=!1}var g=jh(l).join(":"),b=c?g+oc:g;return{isTailwindClass:!0,modifierId:b,classGroupId:p,originalClassName:s,hasPostfixModifier:h}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var i=s.modifierId,l=s.classGroupId,c=s.hasPostfixModifier,u=i+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(d){return a.add(i+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function Ja(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o,a,s=i;function i(c){var u=t[0],d=t.slice(1),p=d.reduce(function(h,g){return g(h)},u());return n=Lh(p),o=n.cache.get,a=n.cache.set,s=l,l(c)}function l(c){var u=o(c);if(u)return u;var d=Fh(c,n);return a(c,d),d}return function(){return s(Eh.apply(null,arguments))}}function ke(e){var t=function(n){return n[e]||[]};return t.isThemeGetter=!0,t}var ac=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vh=/^\d+\/\d+$/,zh=new Set(["px","full","screen"]),Wh=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bh=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rh=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function gt(e){return cr(e)||zh.has(e)||Vh.test(e)||es(e)}function es(e){return ur(e,"length",qh)}function Kh(e){return ur(e,"size",sc)}function Uh(e){return ur(e,"position",sc)}function Hh(e){return ur(e,"url",Qh)}function Mo(e){return ur(e,"number",cr)}function cr(e){return!Number.isNaN(Number(e))}function Yh(e){return e.endsWith("%")&&cr(e.slice(0,-1))}function vn(e){return ic(e)||ur(e,"number",ic)}function ve(e){return ac.test(e)}function bn(){return!0}function Yt(e){return Wh.test(e)}function Gh(e){return ur(e,"",Xh)}function ur(e,t,r){var n=ac.exec(e);return n?n[1]?n[1]===t:r(n[2]):!1}function qh(e){return Bh.test(e)}function sc(){return!1}function Qh(e){return e.startsWith("url(")}function ic(e){return Number.isInteger(Number(e))}function Xh(e){return Rh.test(e)}function ts(){var e=ke("colors"),t=ke("spacing"),r=ke("blur"),n=ke("brightness"),o=ke("borderColor"),a=ke("borderRadius"),s=ke("borderSpacing"),i=ke("borderWidth"),l=ke("contrast"),c=ke("grayscale"),u=ke("hueRotate"),d=ke("invert"),p=ke("gap"),h=ke("gradientColorStops"),g=ke("gradientColorStopPositions"),b=ke("inset"),y=ke("margin"),P=ke("opacity"),x=ke("padding"),C=ke("saturate"),S=ke("scale"),$=ke("sepia"),N=ke("skew"),j=ke("space"),m=ke("translate"),D=function(){return["auto","contain","none"]},I=function(){return["auto","hidden","clip","visible","scroll"]},T=function(){return["auto",ve,t]},k=function(){return[ve,t]},w=function(){return["",gt]},M=function(){return["auto",cr,ve]},O=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},F=function(){return["solid","dashed","dotted","double","none"]},E=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},V=function(){return["start","end","center","between","around","evenly","stretch"]},H=function(){return["","0",ve]},R=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},W=function(){return[cr,Mo]},ee=function(){return[cr,ve]};return{cacheSize:500,theme:{colors:[bn],spacing:[gt],blur:["none","",Yt,ve],brightness:W(),borderColor:[e],borderRadius:["none","","full",Yt,ve],borderSpacing:k(),borderWidth:w(),contrast:W(),grayscale:H(),hueRotate:ee(),invert:H(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[Yh,es],inset:T(),margin:T(),opacity:W(),padding:k(),saturate:W(),scale:W(),sepia:H(),skew:ee(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",ve]}],container:["container"],columns:[{columns:[Yt]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(O(),[ve])}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",vn]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ve]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",vn]}],"grid-cols":[{"grid-cols":[bn]}],"col-start-end":[{col:["auto",{span:["full",vn]},ve]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[bn]}],"row-start-end":[{row:["auto",{span:[vn]},ve]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ve]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ve]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(V())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(V(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(V(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ve,t]}],"min-w":[{"min-w":["min","max","fit",ve,gt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Yt]},Yt,ve]}],h:[{h:[ve,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ve,gt]}],"max-h":[{"max-h":[ve,t,"min","max","fit"]}],"font-size":[{text:["base",Yt,es]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Mo]}],"font-family":[{font:[bn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ve]}],"line-clamp":[{"line-clamp":["none",cr,Mo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ve,gt]}],"list-image":[{"list-image":["none",ve]}],"list-style-type":[{list:["none","disc","decimal",ve]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(F(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",gt]}],"underline-offset":[{"underline-offset":["auto",ve,gt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(O(),[Uh])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Kh]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Hh]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[].concat(F(),["hidden"])}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(F())}],"outline-offset":[{"outline-offset":[ve,gt]}],"outline-w":[{outline:[gt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[gt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Yt,Gh]}],"shadow-color":[{shadow:[bn]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":E()}],"bg-blend":[{"bg-blend":E()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Yt,ve]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[C]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ve]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",ve]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",ve]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[vn,ve]}],"translate-x":[{"translate-x":[m]}],"translate-y":[{"translate-y":[m]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ve]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ve]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gt,Mo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function Zh(e,t){for(var r in t)lc(e,r,t[r]);return e}var Jh=Object.prototype.hasOwnProperty,e1=new Set(["string","number","boolean"]);function lc(e,t,r){if(!Jh.call(e,t)||e1.has(typeof r)||r===null){e[t]=r;return}if(Array.isArray(r)&&Array.isArray(e[t])){e[t]=e[t].concat(r);return}if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=r;return}for(var n in r)lc(e[t],n,r[n])}}function t1(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return typeof e=="function"?Ja.apply(void 0,[ts,e].concat(r)):Ja.apply(void 0,[function(){return Zh(ts(),e)}].concat(r))}var cc=Ja(ts),r1={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},uc=e=>e||void 0,To=(...e)=>uc(Xl(e).filter(Boolean).join(" ")),rs=null,So={},ns=!1,yn=(...e)=>t=>t.twMerge?((!rs||ns)&&(ns=!1,rs=Ke(So)?cc:t1(So)),uc(rs(To(e)))):To(e),dc=(e,t)=>{for(let r in t)e.hasOwnProperty(r)?e[r]=To(e[r],t[r]):e[r]=t[r];return e},we=(e,t)=>{let{extend:r=null,slots:n={},variants:o={},compoundVariants:a=[],compoundSlots:s=[],defaultVariants:i={}}=e,l={...r1,...t},c=r!=null&&r.base?To(r.base,e==null?void 0:e.base):e==null?void 0:e.base,u=r!=null&&r.variants&&!Ke(r.variants)?Zl(o,r.variants):o,d=r!=null&&r.defaultVariants&&!Ke(r.defaultVariants)?{...r.defaultVariants,...i}:i;!Ke(l.twMergeConfig)&&!Th(l.twMergeConfig,So)&&(ns=!0,So=l.twMergeConfig);let p=Ke(n)?{}:{base:e==null?void 0:e.base,...n},h=Ke(r==null?void 0:r.slots)?p:dc({...r==null?void 0:r.slots},Ke(p)?{base:e==null?void 0:e.base}:p),g=y=>{if(Ke(u)&&Ke(n)&&Ke(r==null?void 0:r.slots))return yn(c,y==null?void 0:y.class,y==null?void 0:y.className)(l);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof a}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let P=(T,k,w=[],M)=>{let O=w;if(typeof k=="string")O=O.concat(Jl(k).split(" ").map(F=>`${T}:${F}`));else if(Array.isArray(k))O=O.concat(k.reduce((F,E)=>F.concat(`${T}:${E}`),[]));else if(typeof k=="object"&&typeof M=="string"){for(let F in k)if(k.hasOwnProperty(F)&&F===M){let E=k[F];if(E&&typeof E=="string"){let V=Jl(E);O[M]?O[M]=O[M].concat(V.split(" ").map(H=>`${T}:${H}`)):O[M]=V.split(" ").map(H=>`${T}:${H}`)}else Array.isArray(E)&&E.length>0&&(O[M]=E.reduce((V,H)=>V.concat(`${T}:${H}`),[]))}}return O},x=(T,k=u,w=null,M=null)=>{var O;let F=k[T];if(!F||Ke(F))return null;let E=(O=M==null?void 0:M[T])!=null?O:y==null?void 0:y[T];if(E===null)return null;let V=ql(E),H=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,R=d==null?void 0:d[T],W=[];if(typeof V=="object"&&H)for(let[U,re]of Object.entries(V)){let X=F[re];if(U==="initial"){R=re;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(U)||(W=P(U,X,W,w))}let ee=F[V]||F[ql(R)];return typeof W=="object"&&typeof w=="string"&&W[w]?dc(W,ee):W.length>0?(W.push(ee),W):ee},C=()=>u?Object.keys(u).map(T=>x(T,u)):null,S=(T,k)=>{if(!u||typeof u!="object")return null;let w=new Array;for(let M in u){let O=x(M,u,T,k),F=T==="base"&&typeof O=="string"?O:O&&O[T];F&&(w[w.length]=F)}return w},$={};for(let T in y)y[T]!==void 0&&($[T]=y[T]);let N=(T,k)=>{var w;let M=typeof(y==null?void 0:y[T])=="object"?{[T]:(w=y[T])==null?void 0:w.initial}:{};return{...d,...$,...M,...k}},j=(T=[],k)=>{let w=[];for(let{class:M,className:O,...F}of T){let E=!0;for(let[V,H]of Object.entries(F)){let R=N(V,k);if(Array.isArray(H)){if(!H.includes(R[V])){E=!1;break}}else if(R[V]!==H){E=!1;break}}E&&(M&&w.push(M),O&&w.push(O))}return w},m=T=>{let k=j(a,T),w=j(r==null?void 0:r.compoundVariants,T);return Sh(w,k)},D=T=>{let k=m(T);if(!Array.isArray(k))return k;let w={};for(let M of k)if(typeof M=="string"&&(w.base=yn(w.base,M)(l)),typeof M=="object")for(let[O,F]of Object.entries(M))w[O]=yn(w[O],F)(l);return w},I=T=>{if(s.length<1)return null;let k={};for(let{slots:w=[],class:M,className:O,...F}of s){if(!Ke(F)){let E=!0;for(let V of Object.keys(F)){let H=N(V,T)[V];if(H===void 0||(Array.isArray(F[V])?!F[V].includes(H):F[V]!==H)){E=!1;break}}if(!E)continue}for(let E of w)k[E]=k[E]||[],k[E].push([M,O])}return k};if(!Ke(n)||!Ke(r==null?void 0:r.slots)){let T={};if(typeof h=="object"&&!Ke(h))for(let k of Object.keys(h))T[k]=w=>{var M,O;return yn(h[k],S(k,w),((M=D(w))!=null?M:[])[k],((O=I(w))!=null?O:[])[k],w==null?void 0:w.class,w==null?void 0:w.className)(l)};return T}return yn(c,C(),m(),y==null?void 0:y.class,y==null?void 0:y.className)(l)},b=()=>{if(!(!u||typeof u!="object"))return Object.keys(u)};return g.variantKeys=b(),g.extend=r,g.base=c,g.slots=h,g.variants=u,g.defaultVariants=d,g.compoundSlots=s,g.compoundVariants=a,g};const n1=258,o1=70,a1=223,s1=266;function i1({variant:e="default",className:t,short:r,width:n,height:o}){let a=r?a1:n1,s=r?s1:o1;const i=a/s;n&&(a=n,s=parseFloat((n/i).toFixed(2))),o&&(s=o,a=parseFloat((o*i).toFixed(2)));const l=we({base:"",variants:{variant:{default:"fill-secondary-green-500",dark:"fill-primary-green-500",light:"fill-white"}}});return r?L.jsx("svg",{preserveAspectRatio:"none",width:a,height:s,viewBox:"0 0 223 266",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:l({variant:e,className:t}),children:L.jsx("path",{d:"M222.964 194.18V85.6459C222.964 85.2381 222.88 84.8344 222.718 84.458C222.556 84.0816 222.319 83.74 222.02 83.4529C221.721 83.1657 221.366 82.9388 220.975 82.7852C220.585 82.6316 220.167 82.5543 219.746 82.5577H182.608C182.191 82.5577 181.777 82.6378 181.392 82.7933C181.006 82.9488 180.656 83.1767 180.362 83.4638C180.068 83.7509 179.836 84.0916 179.678 84.4661C179.521 84.8406 179.442 85.2416 179.445 85.6459V171.586C177.727 171.586 176.719 171.586 176.364 171.586C164.721 170.029 159.213 167.178 152.914 161.028C146.616 154.878 144.516 146.089 144.025 135.637V104.914C144.03 104.501 143.948 104.091 143.784 103.71C143.62 103.329 143.377 102.984 143.071 102.697L121.966 82.9009L101.434 62.498C101.143 62.1997 100.792 61.9617 100.403 61.7984C100.014 61.6351 99.5947 61.5498 99.1707 61.5478H66.0684C66.7731 54.8644 69.6353 48.5659 74.2486 43.5468C77.1792 40.3682 80.7538 37.8071 84.7504 36.0226C88.7469 34.2381 93.08 33.2684 97.4802 33.1738C98.2977 33.14 99.0706 32.8033 99.639 32.2335C100.207 31.6636 100.528 30.9041 100.534 30.112V2.66184C100.546 2.04062 100.331 1.43533 99.9266 0.952523C99.5226 0.469716 98.9556 0.140347 98.3255 0.0223983H97.7529C97.5176 -0.00746611 97.2792 -0.00746611 97.0439 0.0223983C84.1284 0.266286 71.4425 3.37237 59.9605 9.10208C49.7635 14.1971 41.0132 21.6355 34.4766 30.7653C27.94 39.8951 23.8167 50.4375 22.4681 61.4686H3.163C2.32163 61.4756 1.51715 61.804 0.924744 62.3824C0.332339 62.9608 -3.07314e-05 63.7423 2.13119e-09 64.5568V100.612C2.13119e-09 101.014 0.0817794 101.412 0.240735 101.783C0.39969 102.155 0.632697 102.492 0.926408 102.777C1.22012 103.061 1.56884 103.286 1.95259 103.44C2.33634 103.594 2.74763 103.673 3.163 103.673H21.841V201.517C21.841 201.922 21.9237 202.322 22.0844 202.695C22.245 203.068 22.4804 203.407 22.777 203.692C23.0736 203.976 23.4255 204.201 23.8124 204.354C24.1993 204.506 24.6136 204.583 25.0313 204.579H62.1691C62.5868 204.583 63.0011 204.506 63.388 204.354C63.7749 204.201 64.1268 203.976 64.4234 203.692C64.72 203.407 64.9554 203.068 65.116 202.695C65.2767 202.322 65.3595 201.922 65.3594 201.517V103.673H100.534V132.707C100.534 132.707 100.534 132.918 100.534 133.05C100.31 146.04 103.822 158.834 110.677 170.002C117.395 180.787 127.07 189.558 138.626 195.341C150.258 201.217 163.137 204.406 176.255 204.658H179.5C178.479 211.37 175.291 217.597 170.393 222.448C163.549 229.416 158.013 233.006 147.379 233.006C146.958 233.002 146.54 233.08 146.15 233.233C145.76 233.387 145.405 233.614 145.106 233.901C144.806 234.188 144.569 234.53 144.407 234.906C144.245 235.283 144.162 235.686 144.162 236.094V262.937C144.158 263.345 144.239 263.749 144.4 264.126C144.561 264.502 144.799 264.843 145.099 265.129C145.399 265.415 145.756 265.639 146.148 265.789C146.539 265.938 146.958 266.01 147.379 265.999C160.384 265.772 173.152 262.589 184.653 256.708C196.283 250.973 206.042 242.23 212.848 231.449C219.691 220.275 223.202 207.485 222.991 194.496C222.991 194.496 222.964 194.312 222.964 194.18Z"})}):L.jsxs("svg",{preserveAspectRatio:"none",width:a,height:s,viewBox:"0 0 258 70",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:l({variant:e,className:t}),children:[L.jsx("path",{d:"M44.1576 5.54621e-10H53.8953C54.117 5.54621e-10 54.3296 0.0853594 54.4864 0.2373C54.6431 0.389241 54.7312 0.595316 54.7312 0.810193V52.8634C54.7312 52.9694 54.7095 53.0745 54.6674 53.1724C54.6253 53.2703 54.5637 53.3591 54.486 53.4338C54.4082 53.5085 54.316 53.5675 54.2147 53.6075C54.1133 53.6474 54.0048 53.6675 53.8953 53.6666H44.1576C43.9378 53.6666 43.727 53.582 43.5716 53.4314C43.4162 53.2807 43.3289 53.0764 43.3289 52.8634V0.810193C43.3279 0.704125 43.3487 0.598926 43.3899 0.500669C43.4311 0.402411 43.492 0.31304 43.5691 0.237715C43.6461 0.162389 43.7378 0.102601 43.8388 0.0618008C43.9398 0.0210004 44.0482 -3.94095e-06 44.1576 5.54621e-10Z"}),L.jsx("path",{d:"M68.7089 51.2755C65.8506 49.7718 63.4549 47.4816 61.7891 44.6605C60.1032 41.7448 59.2396 38.4048 59.2947 35.0137C59.2396 31.6226 60.1032 28.2825 61.7891 25.3668C63.45 22.5364 65.8465 20.2384 68.7089 18.7312C71.8146 17.1539 75.2322 16.3335 78.6964 16.3335C82.1606 16.3335 85.5782 17.1539 88.6838 18.7312C91.5312 20.2475 93.9147 22.5442 95.5701 25.3668C97.251 28.2844 98.1121 31.6236 98.0578 35.0137C98.1121 38.4038 97.251 41.743 95.5701 44.6605C93.9093 47.4735 91.5268 49.7622 88.6838 51.2755C85.577 52.8486 82.1599 53.6668 78.6964 53.6668C75.2329 53.6668 71.8157 52.8486 68.7089 51.2755ZM85.1703 42.3177C86.8555 40.4802 87.6982 38.0432 87.6982 35.0068C87.6982 31.9703 86.8555 29.5379 85.1703 27.7096C84.3456 26.806 83.3434 26.093 82.2302 25.6178C81.1169 25.1426 79.9181 24.9161 78.7131 24.9534C77.5026 24.9186 76.2984 25.146 75.179 25.6209C74.0596 26.0957 73.0499 26.8074 72.2157 27.7096C70.5215 29.5287 69.6744 31.9657 69.6744 35.0206C69.6744 38.0754 70.5215 40.5078 72.2157 42.3177C73.0507 43.2189 74.0605 43.9299 75.1797 44.4047C76.2989 44.8795 77.5027 45.1075 78.7131 45.074C79.9179 45.1103 81.1166 44.8834 82.2297 44.4083C83.3428 43.9332 84.3451 43.2206 85.1703 42.3177Z"}),L.jsx("path",{d:"M187.827 5.54621e-10H197.565C197.787 5.54621e-10 197.999 0.0853594 198.156 0.2373C198.313 0.389241 198.401 0.595316 198.401 0.810193V52.8634C198.401 52.9694 198.379 53.0745 198.337 53.1724C198.295 53.2703 198.233 53.3591 198.156 53.4338C198.078 53.5085 197.986 53.5675 197.884 53.6075C197.783 53.6474 197.674 53.6675 197.565 53.6666H187.827C187.718 53.6666 187.611 53.6459 187.51 53.6055C187.41 53.5651 187.318 53.506 187.241 53.4314C187.164 53.3568 187.103 53.2682 187.062 53.1708C187.02 53.0733 186.999 52.9688 186.999 52.8634V0.810193C186.998 0.704125 187.018 0.598926 187.06 0.500669C187.101 0.402411 187.162 0.31304 187.239 0.237715C187.316 0.162389 187.407 0.102601 187.508 0.0618008C187.61 0.0210004 187.718 -3.94095e-06 187.827 5.54621e-10V5.54621e-10Z"}),L.jsx("path",{d:"M138.924 25.2187C137.26 22.3784 134.865 20.0701 132.005 18.5505C129.42 17.1729 126.578 16.3842 123.671 16.2378C123.128 16.1962 122.591 16.1408 122.027 16.1408C121.464 16.1408 120.927 16.1962 120.377 16.2378C117.94 16.3776 115.546 16.9589 113.304 17.955V0.810156C113.306 0.599481 113.227 0.396499 113.085 0.244956C112.944 0.0934118 112.75 0.00544026 112.546 0L103.406 0C103.198 0 102.998 0.0853555 102.851 0.237289C102.704 0.389223 102.621 0.59529 102.621 0.810156V52.861C102.623 53.0746 102.706 53.2789 102.853 53.4294C103 53.5798 103.199 53.6642 103.406 53.6642H112.546C112.752 53.6642 112.95 53.5796 113.096 53.4289C113.242 53.2783 113.324 53.074 113.324 52.861V51.8569C116.078 53.0793 119.049 53.6948 122.047 53.6642C125.51 53.718 128.931 52.8854 132.005 51.2407C134.853 49.7142 137.238 47.4069 138.897 44.5725C140.579 41.6406 141.441 38.285 141.386 34.8783C141.443 31.4859 140.591 28.1433 138.924 25.2187ZM128.523 42.2389C127.695 43.1457 126.691 43.8613 125.576 44.3387C124.461 44.8161 123.261 45.0445 122.054 45.0087C120.843 45.0424 119.638 44.8132 118.518 44.3361C117.398 43.859 116.387 43.1445 115.552 42.2389C114.427 40.9975 113.659 39.4587 113.331 37.7935C112.883 35.8844 112.883 33.8929 113.331 31.9839C113.659 30.3207 114.428 28.7842 115.552 27.5453C116.387 26.6387 117.397 25.9235 118.517 25.4463C119.638 24.9691 120.843 24.7406 122.054 24.7756C123.261 24.7385 124.462 24.9662 125.577 25.4437C126.692 25.9211 127.696 26.6375 128.523 27.5453C130.205 29.3918 131.046 31.8408 131.046 34.8921C131.046 37.9435 130.205 40.3924 128.523 42.2389Z"}),L.jsx("path",{d:"M171.742 17.1428V18.1215C169.01 16.9171 166.064 16.3092 163.092 16.3365C159.615 16.2772 156.179 17.1011 153.087 18.7349C150.224 20.2425 147.828 22.541 146.166 25.3719C144.48 28.2882 143.617 31.6289 143.672 35.0207C143.617 38.4125 144.48 41.7532 146.166 44.6695C147.834 47.4861 150.23 49.7718 153.087 51.2721C156.179 52.9037 159.616 53.7252 163.092 53.6636C166.064 53.693 169.009 53.0875 171.742 51.8855V52.8641C171.742 53.0762 171.824 53.2795 171.97 53.4294C172.116 53.5794 172.313 53.6636 172.52 53.6636H181.66C181.866 53.6636 182.064 53.5794 182.21 53.4294C182.355 53.2795 182.437 53.0762 182.437 52.8641V17.1428C182.437 16.9302 182.356 16.7261 182.21 16.5751C182.064 16.4241 181.866 16.3383 181.66 16.3365H172.52C172.313 16.3383 172.115 16.4241 171.969 16.5751C171.824 16.7261 171.742 16.9302 171.742 17.1428ZM169.549 42.3125C168.724 43.2155 167.722 43.9282 166.608 44.4035C165.495 44.8787 164.296 45.1056 163.092 45.0693C161.881 45.1028 160.677 44.8747 159.558 44.3998C158.439 43.9249 157.429 43.2138 156.594 42.3125C154.891 40.4746 154.039 38.0371 154.039 35C154.039 31.963 154.891 29.5255 156.594 27.6876C157.428 26.7852 158.438 26.0734 159.557 25.5984C160.677 25.1235 161.881 24.896 163.092 24.9308C164.297 24.8936 165.495 25.1201 166.609 25.5954C167.722 26.0707 168.724 26.7839 169.549 27.6876C170.66 28.9209 171.418 30.4446 171.742 32.0916C172.189 34.0033 172.189 35.9967 171.742 37.9085C171.416 39.5549 170.658 41.0781 169.549 42.3125Z"}),L.jsx("path",{d:"M41.0484 51.1316V17.1532C41.0485 16.9392 40.9619 16.7339 40.8076 16.582C40.6533 16.43 40.4437 16.3437 40.2246 16.3419H30.5438C30.3247 16.3437 30.1151 16.43 29.9608 16.582C29.8065 16.7339 29.7199 16.9392 29.7199 17.1532V18.2003C26.8101 16.9534 23.6643 16.3179 20.4866 16.335C16.8207 16.2935 13.2007 17.1342 9.9465 18.7828C6.92093 20.297 4.38759 22.6047 2.6309 25.4467C0.855237 28.3743 -0.0544231 31.7252 0.00296367 35.1271C-0.0590547 38.5392 0.853371 41.9008 2.638 44.8352C4.39099 47.6742 6.92257 49.9777 9.9465 51.4853C13.2111 53.1311 16.8413 53.9648 20.515 53.9123C23.7856 53.8752 27.015 53.196 30.0111 51.9152C30.0135 54.3789 29.0796 56.7559 27.3903 58.5861C25.6076 60.4167 24.116 61.3043 21.3318 61.3043C21.1127 61.3062 20.9031 61.3925 20.7488 61.5444C20.5945 61.6964 20.5079 61.9017 20.5079 62.1157V69.1887C20.5089 69.2968 20.5317 69.4036 20.5751 69.503C20.6185 69.6023 20.6817 69.6923 20.7609 69.7678C20.8402 69.8432 20.9339 69.9026 21.0368 69.9424C21.1397 69.9823 21.2496 70.0019 21.3603 70C24.7569 69.9521 28.0956 69.1331 31.112 67.6077C34.128 66.0809 36.6507 63.7667 38.3992 60.923C40.1863 57.9893 41.1012 54.6276 41.0413 51.2148C41.0413 51.2148 41.0484 51.1663 41.0484 51.1316ZM29.7199 37.8107C29.4003 39.553 28.5772 41.1698 27.3477 42.4706C26.475 43.379 25.4145 44.0961 24.2366 44.5742C23.0587 45.0524 21.7902 45.2808 20.515 45.2443C19.2361 45.2782 17.9641 45.0487 16.782 44.5708C15.5999 44.0929 14.5341 43.3773 13.654 42.4706C11.8594 40.6214 10.9598 38.1736 10.9551 35.1271C10.9503 32.0806 11.85 29.6328 13.654 27.7836C14.5349 26.878 15.6009 26.1631 16.7828 25.6852C17.9647 25.2074 19.2362 24.9773 20.515 25.0099C21.79 24.9747 23.0581 25.2037 24.2358 25.6818C25.4136 26.1599 26.4741 26.8762 27.3477 27.7836C28.5734 29.0842 29.396 30.6977 29.7199 32.4366C30.1081 34.2079 30.1081 36.0394 29.7199 37.8107Z"}),L.jsx("path",{d:"M257.684 51.0999V22.5384C257.684 22.4311 257.662 22.3248 257.621 22.2258C257.579 22.1267 257.519 22.0368 257.442 21.9613C257.366 21.8857 257.275 21.826 257.175 21.7856C257.076 21.7451 256.969 21.7248 256.861 21.7257H247.366C247.26 21.7257 247.154 21.7468 247.055 21.7877C246.957 21.8286 246.867 21.8886 246.792 21.9642C246.717 22.0397 246.658 22.1294 246.617 22.2279C246.577 22.3265 246.557 22.432 246.558 22.5384V45.1542C246.119 45.1542 245.861 45.1542 245.77 45.1542C242.793 44.7444 241.385 43.9943 239.775 42.3759C238.165 40.7575 237.628 38.4445 237.502 35.6939V27.6089C237.504 27.5002 237.483 27.3924 237.441 27.2921C237.399 27.1918 237.337 27.101 237.258 27.0254L231.863 21.816L226.614 16.4468C226.539 16.3683 226.449 16.3057 226.35 16.2627C226.251 16.2198 226.143 16.1973 226.035 16.1968H217.572C217.752 14.438 218.484 12.7805 219.663 11.4597C220.413 10.6232 221.327 9.94923 222.348 9.47962C223.37 9.01002 224.478 8.75484 225.603 8.72994C225.812 8.72104 226.009 8.63245 226.155 8.48249C226.3 8.33253 226.382 8.13267 226.384 7.92422V0.700484C226.386 0.537006 226.331 0.377718 226.228 0.250664C226.125 0.123609 225.98 0.0369334 225.819 0.00589429H225.672C225.612 -0.00196476 225.551 -0.00196476 225.491 0.00589429C222.189 0.0700753 218.946 0.887465 216.011 2.39528C213.404 3.73607 211.166 5.69354 209.495 8.09612C207.824 10.4987 206.77 13.273 206.425 16.1759H201.49C201.275 16.1778 201.069 16.2642 200.918 16.4164C200.766 16.5686 200.681 16.7743 200.681 16.9886V26.4767C200.681 26.5825 200.702 26.6873 200.743 26.7851C200.783 26.8828 200.843 26.9716 200.918 27.0465C200.993 27.1213 201.082 27.1806 201.18 27.2211C201.278 27.2616 201.384 27.2824 201.49 27.2824H206.265V53.0309C206.265 53.1373 206.286 53.2426 206.327 53.3408C206.368 53.439 206.428 53.5282 206.504 53.6031C206.58 53.678 206.67 53.7372 206.769 53.7773C206.868 53.8174 206.974 53.8375 207.081 53.8366H216.575C216.682 53.8375 216.788 53.8174 216.887 53.7773C216.986 53.7372 217.076 53.678 217.152 53.6031C217.227 53.5282 217.288 53.439 217.329 53.3408C217.37 53.2426 217.391 53.1373 217.391 53.0309V27.2824H226.384V34.9229C226.384 34.9229 226.384 34.9785 226.384 35.0132C226.326 38.4315 227.224 41.7984 228.977 44.7375C230.694 47.5755 233.168 49.8836 236.122 51.4056C239.096 52.9517 242.389 53.791 245.742 53.8575H246.572C246.311 55.6236 245.496 57.2623 244.243 58.539C242.494 60.3727 241.079 61.3173 238.36 61.3173C238.252 61.3164 238.145 61.3368 238.046 61.3772C237.946 61.4176 237.855 61.4774 237.779 61.5529C237.702 61.6285 237.641 61.7184 237.6 61.8174C237.559 61.9165 237.537 62.0227 237.537 62.13V69.194C237.536 69.3013 237.557 69.4076 237.598 69.5067C237.639 69.6058 237.7 69.6956 237.777 69.7708C237.854 69.846 237.945 69.9051 238.045 69.9444C238.145 69.9837 238.252 70.0025 238.36 69.9997C241.685 69.94 244.949 69.1025 247.889 67.5548C250.862 66.0456 253.358 63.7446 255.097 60.9075C256.847 57.9672 257.745 54.6012 257.691 51.1833C257.691 51.1833 257.684 51.1347 257.684 51.0999Z"})]})}function fc(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=fc(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function pc(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=fc(e))&&(n&&(n+=" "),n+=t);return n}const Gt=(...e)=>cc(pc(e)),hc=({children:e,className:t,font:r="satoshi",weight:n="regular",...o})=>{const a=we({variants:{font:{satoshi:"font-satoshi",livvic:"font-livvic"},weight:{light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"}}});return L.jsx("p",{...o,className:Gt(t,a({font:r,weight:n})),children:e})},l1={bra:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzciIHZpZXdCb3g9IjAgMCAzOCAzNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTguNTA5OSIgY3k9IjE4LjUwMzMiIHI9IjE4LjUwMzMiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xOC41MSAzNS4xODY1QzI3LjcyMzkgMzUuMTg2NSAzNS4xOTMzIDI3LjcxNzEgMzUuMTkzMyAxOC41MDMyQzM1LjE5MzMgOS4yODkyMSAyNy43MjM5IDEuODE5ODIgMTguNTEgMS44MTk4MkM5LjI5NjA0IDEuODE5ODIgMS44MjY2NiA5LjI4OTIxIDEuODI2NjYgMTguNTAzMkMxLjgyNjY2IDI3LjcxNzEgOS4yOTYwNCAzNS4xODY1IDE4LjUxIDM1LjE4NjVaIiBmaWxsPSIjMEI5RjU5Ii8+CjxwYXRoIGQ9Ik0xOC41MTAxIDguMzQ4MjhMMzIuMjkyIDE4LjUwMzNMMTguNTEwMSAyOC42NTg0TDQuNzI4MjQgMTguNTAzM0wxOC41MTAxIDguMzQ4MjhaIiBmaWxsPSIjRkZEQTQ0Ii8+CjxwYXRoIGQ9Ik0xOC41MDk5IDI0LjMwNjJDMjEuNzE0OCAyNC4zMDYyIDI0LjMxMjggMjEuNzA4MSAyNC4zMTI4IDE4LjUwMzNDMjQuMzEyOCAxNS4yOTg1IDIxLjcxNDggMTIuNzAwNCAxOC41MDk5IDEyLjcwMDRDMTUuMzA1MSAxMi43MDA0IDEyLjcwNyAxNS4yOTg1IDEyLjcwNyAxOC41MDMzQzEyLjcwNyAyMS43MDgxIDE1LjMwNTEgMjQuMzA2MiAxOC41MDk5IDI0LjMwNjJaIiBmaWxsPSIjRjBGMEYwIi8+CjxwYXRoIGQ9Ik0xNS42MDgzIDE4LjEzOTdDMTQuNTk5MiAxOC4xMzk3IDEzLjYyNTQgMTguMjkzMSAxMi43MDg3IDE4LjU3NzlDMTIuNzQ5MyAyMS43NDc4IDE1LjMzMDMgMjQuMzA1MyAxOC41MDk4IDI0LjMwNTNDMjAuNDc1OCAyNC4zMDUzIDIyLjIxMjIgMjMuMzI2NiAyMy4yNjE4IDIxLjgzMDlDMjEuNDY2IDE5LjU4MjggMTguNzAyNyAxOC4xMzk3IDE1LjYwODMgMTguMTM5N1oiIGZpbGw9IiMwMDUyQjQiLz4KPHBhdGggZD0iTTI0LjIwNTEgMTkuNjE0MkMyNC4yNzUgMTkuMjU0MiAyNC4zMTI3IDE4Ljg4MjggMjQuMzEyNyAxOC41MDI1QzI0LjMxMjcgMTUuMjk3NiAyMS43MTQ3IDEyLjY5OTYgMTguNTA5OSAxMi42OTk2QzE2LjExODUgMTIuNjk5NiAxNC4wNjU3IDE0LjE0NjQgMTMuMTc3MyAxNi4yMTIxQzEzLjk2MjYgMTYuMDQ5NCAxNC43NzU3IDE1Ljk2MzcgMTUuNjA4NSAxNS45NjM3QzE4Ljk3ODggMTUuOTYzNyAyMi4wMjc4IDE3LjM2NDcgMjQuMjA1MSAxOS42MTQyWiIgZmlsbD0iIzAwNTJCNCIvPgo8L3N2Zz4K",esp:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzciIHZpZXdCb3g9IjAgMCAzOCAzNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTguNTE2OCIgY3k9IjE4LjUwMzMiIHI9IjE4LjUwMzMiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xLjgzMzUgMTguNTAyN0MxLjgzMzUgMjAuNTQzNCAyLjIwMDU5IDIyLjQ5ODIgMi44NzExOSAyNC4zMDU2TDE4LjUxNjggMjUuNzU2M0wzNC4xNjI1IDI0LjMwNTZDMzQuODMzMSAyMi40OTgyIDM1LjIwMDIgMjAuNTQzNCAzNS4yMDAyIDE4LjUwMjdDMzUuMjAwMiAxNi40NjIgMzQuODMzMSAxNC41MDcyIDM0LjE2MjUgMTIuNjk5OEwxOC41MTY4IDExLjI0OTFMMi44NzExOSAxMi42OTk4QzIuMjAwNTkgMTQuNTA3MiAxLjgzMzUgMTYuNDYyIDEuODMzNSAxOC41MDI3WiIgZmlsbD0iI0ZGREE0NCIvPgo8cGF0aCBkPSJNMzQuMTYyOCAxMi43MDAzQzMxLjgwNTUgNi4zNDczNSAyNS42OTA0IDEuODE5ODIgMTguNTE3MSAxLjgxOTgyQzExLjM0MzkgMS44MTk4MiA1LjIyODcgNi4zNDczNSAyLjg3MTQ2IDEyLjcwMDNIMzQuMTYyOFoiIGZpbGw9IiNEODAwMjciLz4KPHBhdGggZD0iTTIuODcxMTkgMjQuMzA1NkM1LjIyODQyIDMwLjY1ODYgMTEuMzQzOSAzNS4xODY1IDE4LjUxNzEgMzUuMTg2NUMyNS42OTA0IDM1LjE4NjUgMzEuODA1MiAzMC42NTg2IDM0LjE2MjUgMjQuMzA1NkgyLjg3MTE5WiIgZmlsbD0iI0Q4MDAyNyIvPgo8L3N2Zz4K",usa:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzciIGhlaWdodD0iMzciIHZpZXdCb3g9IjAgMCAzNyAzNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTguNTAzMyIgY3k9IjE4LjUwMzMiIHI9IjE4LjUwMzMiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xOC41MDM0IDM1LjE4NjVDMjcuNzE3NCAzNS4xODY1IDM1LjE4NjcgMjcuNzE3MSAzNS4xODY3IDE4LjUwMzJDMzUuMTg2NyA5LjI4OTIxIDI3LjcxNzQgMS44MTk4MiAxOC41MDM0IDEuODE5ODJDOS4yODk0NSAxLjgxOTgyIDEuODIwMDcgOS4yODkyMSAxLjgyMDA3IDE4LjUwMzJDMS44MjAwNyAyNy43MTcxIDkuMjg5NDUgMzUuMTg2NSAxOC41MDM0IDM1LjE4NjVaIiBmaWxsPSIjRjBGMEYwIi8+CjxwYXRoIGQ9Ik0xNy43Nzc5IDE4LjUwMzdIMzUuMTg2NkMzNS4xODY2IDE2Ljk5NzggMzQuOTg1OCAxNS41MzkxIDM0LjYxMTggMTQuMTUxNUgxNy43Nzc5VjE4LjUwMzdaIiBmaWxsPSIjRDgwMDI3Ii8+CjxwYXRoIGQ9Ik0xNy43Nzc5IDkuNzk5MzRIMzIuNzM3OUMzMS43MTY2IDguMTMyODMgMzAuNDEwOCA2LjY1OTgxIDI4Ljg4ODMgNS40NDcxNEgxNy43Nzc5VjkuNzk5MzRaIiBmaWxsPSIjRDgwMDI3Ii8+CjxwYXRoIGQ9Ik0xOC41MDM0IDM1LjE4NjVDMjIuNDI5OCAzNS4xODY1IDI2LjAzODQgMzMuODI5OCAyOC44ODgyIDMxLjU2MDFIOC4xMTc5OUMxMC45Njc4IDMzLjgyOTggMTQuNTc3IDM1LjE4NjUgMTguNTAzNCAzNS4xODY1WiIgZmlsbD0iI0Q4MDAyNyIvPgo8cGF0aCBkPSJNNC4yNjg1NyAyNy4yMDhIMzIuNzM3OUMzMy41NTc4IDI1Ljg3MDEgMzQuMTkzNiAyNC40MDc3IDM0LjYxMTggMjIuODU1OEgyLjM5NDYzQzIuODEyODIgMjQuNDA3NyAzLjQ0ODY3IDI1Ljg3MDEgNC4yNjg1NyAyNy4yMDhaIiBmaWxsPSIjRDgwMDI3Ii8+CjxwYXRoIGQ9Ik05LjU0ODEgNC40MjUxNkgxMS4wNjg0TDkuNjU0MjYgNS40NTI1NUwxMC4xOTQ0IDcuMTE0OTZMOC43ODAzNCA2LjA4NzU2TDcuMzY2MjMgNy4xMTQ5Nkw3LjgzMjg1IDUuNjc4ODJDNi41ODc3MiA2LjcxNTk5IDUuNDk2NCA3LjkzMTE0IDQuNTk3MDYgOS4yODUwOUg1LjA4NDJMNC4xODQwMiA5LjkzOTA3QzQuMDQzNzcgMTAuMTczIDMuOTA5MjYgMTAuNDEwNyAzLjc4MDM2IDEwLjY1MTlMNC4yMTAyMiAxMS45NzQ5TDMuNDA4MjQgMTEuMzkyMkMzLjIwODg5IDExLjgxNDYgMy4wMjY1NSAxMi4yNDY1IDIuODYyNjUgMTIuNjg3M0wzLjMzNjIzIDE0LjE0NUg1LjA4NDJMMy42NzAwMyAxNS4xNzI0TDQuMjEwMjIgMTYuODM0OEwyLjc5NjExIDE1LjgwNzRMMS45NDkwNCAxNi40MjI5QzEuODY0MjUgMTcuMTA0NCAxLjgyMDA3IDE3Ljc5ODYgMS44MjAwNyAxOC41MDMySDE4LjUwMzRDMTguNTAzNCA5LjI4OTI3IDE4LjUwMzQgOC4yMDMwMiAxOC41MDM0IDEuODE5ODJDMTUuMjA3NyAxLjgxOTgyIDEyLjEzNTQgMi43NzU4NiA5LjU0ODEgNC40MjUxNlpNMTAuMTk0NCAxNi44MzQ4TDguNzgwMzQgMTUuODA3NEw3LjM2NjIzIDE2LjgzNDhMNy45MDY0MiAxNS4xNzI0TDYuNDkyMjUgMTQuMTQ1SDguMjQwMjJMOC43ODAzNCAxMi40ODI2TDkuMzIwNDYgMTQuMTQ1SDExLjA2ODRMOS42NTQyNiAxNS4xNzI0TDEwLjE5NDQgMTYuODM0OFpNOS42NTQyNiAxMC4zMTI1TDEwLjE5NDQgMTEuOTc0OUw4Ljc4MDM0IDEwLjk0NzVMNy4zNjYyMyAxMS45NzQ5TDcuOTA2NDIgMTAuMzEyNUw2LjQ5MjI1IDkuMjg1MDlIOC4yNDAyMkw4Ljc4MDM0IDcuNjIyNjlMOS4zMjA0NiA5LjI4NTA5SDExLjA2ODRMOS42NTQyNiAxMC4zMTI1Wk0xNi4xNzg3IDE2LjgzNDhMMTQuNzY0NiAxNS44MDc0TDEzLjM1MDUgMTYuODM0OEwxMy44OTA3IDE1LjE3MjRMMTIuNDc2NSAxNC4xNDVIMTQuMjI0NUwxNC43NjQ2IDEyLjQ4MjZMMTUuMzA0NyAxNC4xNDVIMTcuMDUyN0wxNS42Mzg1IDE1LjE3MjRMMTYuMTc4NyAxNi44MzQ4Wk0xNS42Mzg1IDEwLjMxMjVMMTYuMTc4NyAxMS45NzQ5TDE0Ljc2NDYgMTAuOTQ3NUwxMy4zNTA1IDExLjk3NDlMMTMuODkwNyAxMC4zMTI1TDEyLjQ3NjUgOS4yODUwOUgxNC4yMjQ1TDE0Ljc2NDYgNy42MjI2OUwxNS4zMDQ3IDkuMjg1MDlIMTcuMDUyN0wxNS42Mzg1IDEwLjMxMjVaTTE1LjYzODUgNS40NTI1NUwxNi4xNzg3IDcuMTE0OTZMMTQuNzY0NiA2LjA4NzU2TDEzLjM1MDUgNy4xMTQ5NkwxMy44OTA3IDUuNDUyNTVMMTIuNDc2NSA0LjQyNTE2SDE0LjIyNDVMMTQuNzY0NiAyLjc2Mjc2TDE1LjMwNDcgNC40MjUxNkgxNy4wNTI3TDE1LjYzODUgNS40NTI1NVoiIGZpbGw9IiMwMDUyQjQiLz4KPC9zdmc+Cg=="},c1=({shadow:e,country:t,className:r,...n})=>{const o=we({base:"rounded-full",variants:{shadow:{true:"shadow-[4px_4px_6px_0px_rgba(0,0,0,0.17)]",false:""}}}),a=l1[t];return L.jsx("img",{...n,src:a,alt:`${t} flag`,className:Gt(r,o({shadow:e}))})},Ox="",Ue=({name:e,className:t,...r})=>L.jsx("span",{...r,className:`icon-${e} ${t??""}`});({IcoMoonType:"selection",icons:[{icon:{paths:["M441.371 33.983c-101.267 0-181.648 77.288-195.622 175.411-0.577-0.147-1.358-0.3-2.151-0.42l-0.155-0.020h-197.929c-15.529 0-28.117 12.588-28.117 28.117v0c0 15.529 12.588 28.117 28.117 28.117v0h197.929c0.935-0.329 1.661-0.626 2.371-0.951l-0.175 0.073c13.779 98.344 94.309 175.851 195.731 175.851 111.011 0 201.335-91.419 201.335-203.090s-90.322-203.090-201.335-203.090zM441.371 90.221c80.312 0 145.097 65.271 145.097 146.854s-64.785 146.854-145.097 146.854c-80.312 0-144.988-65.271-144.988-146.854s64.675-146.854 144.988-146.854zM738.373 208.956c-15.529 0-28.117 12.588-28.117 28.117v0c0 15.529 12.588 28.117 28.117 28.117v0h296.892c15.529 0 28.117-12.588 28.117-28.117v0c0-15.529-12.588-28.117-28.117-28.117v0zM639.411 583.835c-111.010 0-201.335 91.42-201.335 203.090s90.323 203.090 201.335 203.090c101.429 0 182.066-77.505 195.841-175.851 0.505 0.249 1.192 0.546 1.893 0.814l0.193 0.065h197.929c15.529 0 28.117-12.588 28.117-28.117v0c0-15.529-12.588-28.117-28.117-28.117v0h-197.929c-0.895 0.333-1.583 0.629-2.255 0.952l0.169-0.074c-13.774-98.346-94.413-175.851-195.841-175.851zM639.411 640.073c80.316 0 145.097 65.271 145.097 146.854s-64.782 146.854-145.097 146.854c-80.31 0-145.097-65.272-145.097-146.854s64.787-146.854 145.097-146.854zM45.514 758.806c-15.529 0-28.117 12.588-28.117 28.117v0c0 15.529 12.588 28.117 28.117 28.117v0h296.892c15.529 0 28.117-12.588 28.117-28.117v0c0-15.529-12.588-28.117-28.117-28.117v0z"],attrs:[],width:1081,isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["filters"],colorPermutations:{}},attrs:[],properties:{order:36,id:18,name:"filters",prevSize:32,code:59665},setIdx:0,setId:2,iconIdx:0},{icon:{paths:["M221.91 16c-48.472 0-91.817 15.678-120.059 48.704s-39.686 78.531-39.686 132.284v742.129h-11.959c-18.891 0-34.206 15.315-34.206 34.206v0c0 18.891 15.315 34.206 34.206 34.206v0h787.294c0.153 0.078 0.527 0.235 0.904 0.387l0.23 0.082c0.608-0.232 0.983-0.39 1.354-0.554l-0.218 0.087h134.021c18.891 0 34.206-15.315 34.206-34.206v0c0-18.891-15.315-34.206-34.206-34.206v0h-100.951v-155.067c54.54-16.957 93.201-70.819 93.201-133.487v-110.371c0-75.121-54.176-141.17-126.606-141.17s-126.539 66.049-126.539 141.17v110.371c0 62.051 37.857 115.532 91.531 133.085v155.467h-161.681v-742.129c0-53.703-11.226-99.158-39.351-132.217s-71.454-48.771-119.925-48.771zM221.91 84.415h261.562c35.068 0 54.273 8.805 67.812 24.719s23.049 43.854 23.049 87.856v742.129h-185.533v-148.119c0-18.891-15.315-34.206-34.206-34.206v0c-18.891 0-34.206 15.315-34.206 34.206v0 148.119h-189.809v-742.129c0-43.953 9.613-71.84 23.25-87.789s33.010-24.786 68.080-24.786zM251.707 270.748c-18.891 0-34.206 15.315-34.206 34.206v0c0 18.891 15.315 34.206 34.206 34.206v0h207.848c18.891 0 34.206-15.315 34.206-34.206v0c0-18.891-15.315-34.206-34.206-34.206v0zM251.707 453.007c-18.891 0-34.206 15.315-34.206 34.206v0c0 18.891 15.315 34.206 34.206 34.206v0h207.848c18.891 0 34.206-15.315 34.206-34.206v0c0-18.891-15.315-34.206-34.206-34.206v0zM839.438 467.438c30.006 0 58.191 29.277 58.191 72.757v110.371c0 43.236-27.909 72.162-57.724 72.49-0.193-0.054-0.622-0.148-1.053-0.231l-0.217-0.034c-0.010 0-0.023 0-0.033 0s-0.025 0-0.035 0h0.002c-29.634-0.633-57.257-29.219-57.257-72.222v-110.371c0-43.481 28.118-72.757 58.125-72.757z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["building"],colorPermutations:{"13513613712552552551":[]}},attrs:[],properties:{order:32,id:17,name:"building",prevSize:32,code:59661},setIdx:0,setId:2,iconIdx:1},{icon:{paths:["M474.119 16c-80.744 0-133.002 18.798-160.546 57.657s-25.188 83.466-25.188 124.335v2.74h-13.162c-106.295 0-176.908 24.402-217.869 71.889s-45.635 110.102-38.75 170.768l35.477 368.794c0.042 0.341 0.067 0.5 0.092 0.658l-0.025-0.191c5.325 48.463 18.348 100.416 60.797 138.23s108.001 57.124 207.647 57.124h378.814c99.646 0 165.199-19.309 207.647-57.124s55.471-89.767 60.797-138.23c0 0.034 0.025-0.125 0.046-0.284l0.022-0.183 32.737-340.466 0.069-0.134c0-0.039 0-0.087 0-0.134s0-0.093 0-0.141v0.007l2.673-27.928c6.881-60.667 2.208-123.284-38.753-170.769s-111.574-71.889-217.869-71.889h-13.162v-2.74c0-40.869 2.356-85.474-25.188-124.335s-79.802-57.657-160.546-57.657zM474.119 84.415h75.763c70.807 0 94.347 14.202 104.691 28.796s12.626 43.914 12.626 84.783v2.74h-310.402v-2.74c0-40.869 2.283-70.189 12.626-84.783s33.884-28.796 104.691-28.796zM275.224 269.144h473.552c95.931 0 143.050 21.538 166.023 48.17s28.485 66.309 22.582 118.322c-0.009 0.036-0.032 0.243-0.055 0.451l-0.014 0.152-0.802 8.418c-90.418 61.486-191.449 98.993-295.569 117.186v-3.675c0-11.545 0.127-20.64-1.003-30.533-1.127-9.891-4.112-23.496-15.232-34.34s-24.375-13.492-34.271-14.565-19.227-0.936-31.067-0.936h-94.737c-11.84 0-21.171-0.137-31.067 0.935s-23.153 3.721-34.273 14.564c-11.122 10.844-14.105 24.449-15.232 34.34s-1.003 18.988-1.003 30.533v4.743c-103.328-16.824-204.524-52.276-294.967-112.376l-1.402-14.297c-0.034-0.355-0.058-0.562-0.084-0.768l0.017 0.166c-5.903-52.012-0.393-91.688 22.582-118.322s70.092-48.17 166.023-48.17zM928.696 525.763l-26.858 279.869v-0.467c-4.62 42.048-13.6 72.616-38.283 94.603s-71.408 39.819-162.149 39.819h-378.814c-90.739 0-137.466-17.83-162.149-39.819s-33.662-52.555-38.283-94.603v0.467l-26.456-275.126c90.546 52.332 187.8 87.604 288.487 102.42 0.946 18.776 3.822 38.317 17.639 57.322 20.648 28.406 58.343 40.688 110.17 40.688 52.096 0 89.971-12.499 110.505-41.088 13.846-19.276 16.588-38.976 17.438-57.858 100.973-16.032 198.085-52.864 288.755-106.229zM464.631 546.206h94.737c6.436 0 8.729 0.167 12.894 0.267 0.090 3.921 0.267 5.767 0.267 11.691v47.101c0 25.061-2.348 40.084-5.611 44.629s-12.767 12.626-54.918 12.626c-41.943 0-51.583-8.064-54.851-12.56s-5.678-19.275-5.678-44.229v-47.569c0-5.924 0.178-7.771 0.267-11.691 4.165-0.098 6.458-0.267 12.894-0.267z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["briefcase"],colorPermutations:{"13513613712552552551":[]}},attrs:[],properties:{order:33,id:16,name:"briefcase",prevSize:32,code:59662},setIdx:0,setId:2,iconIdx:2},{icon:{paths:["M482.712 22.394l-377.328 166.783c-31.614 13.974-46.767 41.583-46.767 74.318v153.774c0 42.336 32.474 80.455 76.119 80.455h7.738v255.977h-7.738c-43.641 0-76.119 38.118-76.119 80.455v104.807h-7.738c-18.865 0-34.157 15.292-34.157 34.157v0c0 18.865 15.292 34.157 34.157 34.157v0h922.239c18.865 0 34.157-15.292 34.157-34.157v0c0-18.865-15.292-34.157-34.157-34.157v0h-7.738v-104.807c0-42.335-32.478-80.455-76.119-80.455h-7.738v-255.977h7.738c43.644 0 76.119-38.121 76.119-80.455v-153.774c0-32.732-15.149-60.347-46.767-74.318l-377.328-166.783c-21.473-9.489-37.103-9.489-58.574 0zM510.266 84.905c-4.7 2.077 8.17 2.077 3.469 0l377.262 166.783c-2.269-1.003 6.071 10.263 6.071 11.809v153.774c0 8.614-5.338 12.142-7.805 12.142h-754.523c-2.467 0-7.805-3.53-7.805-12.142v-153.774c0-1.543 8.34-12.811 6.071-11.809zM512 174.698c-55.125 0-97.067 48.525-97.067 103.605s41.943 103.672 97.067 103.672c55.125 0 97.067-48.593 97.067-103.672s-41.943-103.605-97.067-103.605zM512 243.013c14.33 0 28.753 13.623 28.753 35.292s-14.423 35.359-28.753 35.359c-14.33 0-28.753-13.69-28.753-35.359s14.423-35.292 28.753-35.292zM210.791 497.723h99.403v255.977h-99.403zM378.507 497.723h99.336v255.977h-99.336zM546.157 497.723h99.336v255.977h-99.336zM713.807 497.723h99.403v255.977h-99.403zM134.738 822.016h754.523c2.47 0 7.805 3.522 7.805 12.142v104.807h-770.134v-104.807c0-8.617 5.335-12.142 7.805-12.142z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["bank"],colorPermutations:{"13513613712552552551":[]}},attrs:[],properties:{order:34,id:15,name:"bank",prevSize:32,code:59663},setIdx:0,setId:2,iconIdx:3},{icon:{paths:["M511.864 16.070c-272.629 0-495.93 223.302-495.93 495.93 0 272.626 223.302 495.93 495.93 495.93 272.631 0 496.066-223.304 496.066-495.93 0-272.629-223.435-495.93-496.066-495.93zM511.864 85.276c234.882 0 426.859 191.845 426.859 426.724s-191.977 426.724-426.859 426.724c-234.88 0-426.724-191.846-426.724-426.724s191.843-426.724 426.724-426.724z","M327.36 460.095c-28.667 0-51.905 23.238-51.905 51.905v0c0 28.667 23.238 51.905 51.905 51.905v0h369.142c28.667 0 51.905-23.238 51.905-51.905v0c0-28.667-23.238-51.905-51.905-51.905v0z","M512 275.593c-28.667 0-51.905 23.238-51.905 51.905v0 369.007c0 28.667 23.238 51.905 51.905 51.905v0c28.667 0 51.905-23.238 51.905-51.905v0-369.007c0-28.667-23.238-51.905-51.905-51.905v0z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["add-circle"],colorPermutations:{"13513613712552552551":[]}},attrs:[],properties:{order:35,id:14,name:"add-circle",prevSize:32,code:59664},setIdx:0,setId:2,iconIdx:4},{icon:{paths:["M310.501 16.001c-23.479 0-42.514 19.035-42.514 42.514v0 31.664c-73.907 6.95-136.926 27.182-179.246 68.199-50.775 49.212-72.74 118.961-72.74 194.857v385.506c0 75.896 21.965 145.754 72.74 194.967s126.295 74.29 221.76 74.29h402.999c95.465 0 170.986-25.077 221.76-74.29s72.74-119.071 72.74-194.967v-385.506c0-75.896-21.965-145.644-72.74-194.857-42.319-41.018-105.339-61.249-179.246-68.199v-31.664c0-23.479-19.035-42.514-42.514-42.514v0c-23.479 0-42.514 19.035-42.514 42.514v0 25.464h-317.97v-25.464c0-23.479-19.035-42.514-42.514-42.514v0zM353.014 169.008h317.97v25.575c0 23.479 19.035 42.514 42.514 42.514v0c23.479 0 42.514-19.035 42.514-42.514v0-19.597c53.909 6.406 95.525 20.661 120.013 44.397 27.977 27.116 41.763 66.999 44.617 118.133h-817.292c2.854-51.131 16.642-91.016 44.617-118.133 24.489-23.736 66.106-37.991 120.013-44.397v19.597c0 23.479 19.035 42.514 42.514 42.514v0c23.479 0 42.514-19.035 42.514-42.514v0zM101.031 422.543h821.942v316.199c0 60.151-15.84 103.707-46.943 133.853s-81.639 50.375-162.529 50.375h-402.999c-80.888 0-131.424-20.229-162.529-50.375s-46.943-73.703-46.943-133.853zM325.337 546.543c-23.479 0-42.514 19.035-42.514 42.514v0c0 23.479 19.035 42.514 42.514 42.514v0h0.443c23.479 0 42.514-19.035 42.514-42.514v0c0-23.479-19.035-42.514-42.514-42.514v0zM511.78 546.543c-23.479 0-42.514 19.035-42.514 42.514v0c0 23.479 19.035 42.514 42.514 42.514v0h0.443c23.479 0 42.514-19.035 42.514-42.514v0c0-23.479-19.035-42.514-42.514-42.514v0zM698.22 546.543c-23.479 0-42.514 19.035-42.514 42.514v0c0 23.479 19.035 42.514 42.514 42.514v0h0.443c23.479 0 42.514-19.035 42.514-42.514v0c0-23.479-19.035-42.514-42.514-42.514v0zM325.337 682.61c-23.479 0-42.514 19.035-42.514 42.514v0c0 23.479 19.035 42.514 42.514 42.514v0h0.443c23.479 0 42.514-19.035 42.514-42.514v0c0-23.479-19.035-42.514-42.514-42.514v0zM511.78 682.61c-23.479 0-42.514 19.035-42.514 42.514v0c0 23.479 19.035 42.514 42.514 42.514v0h0.443c23.479 0 42.514-19.035 42.514-42.514v0c0-23.479-19.035-42.514-42.514-42.514v0zM698.22 682.61c-23.479 0-42.514 19.035-42.514 42.514v0c0 23.479 19.035 42.514 42.514 42.514v0h0.443c23.479 0 42.514-19.035 42.514-42.514v0c0-23.479-19.035-42.514-42.514-42.514v0z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["calendar"],colorPermutations:{"13513613712552552551":[]}},attrs:[],properties:{order:22,id:13,name:"calendar",prevSize:32,code:59660},setIdx:0,setId:2,iconIdx:5},{icon:{paths:["M92.308 1008.001l-76.307-76.31 419.692-419.691-419.692-419.692 76.307-76.307 419.692 419.692 419.691-419.692 76.31 76.307-419.692 419.692 419.692 419.691-76.31 76.31-419.691-419.692-419.692 419.692z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["close"],colorPermutations:{"13513613712552552551":[]}},attrs:[],properties:{order:20,id:12,name:"close",prevSize:32,code:59659},setIdx:0,setId:2,iconIdx:6},{icon:{paths:["M511.987 16c-149.541 0-272.515 116.646-272.515 261.345s122.974 261.318 272.515 261.318c149.541 0 272.54-116.619 272.54-261.318s-123-261.345-272.54-261.345zM511.987 69.327c122.036 0 219.215 93.514 219.215 208.019s-97.181 207.991-219.215 207.991c-122.036 0-219.189-93.488-219.189-207.991s97.154-208.019 219.189-208.019zM511.987 626.151c-122.143 0-233.304 38.294-314.957 101.757s-134.096 153.351-134.096 253.428c0 14.725 11.937 26.663 26.663 26.663v0c14.725 0 26.663-11.937 26.663-26.663v0c0-81.552 42.225-155.929 113.499-211.327s171.288-90.535 282.227-90.535c110.94 0 210.978 35.138 282.254 90.535s113.499 129.773 113.499 211.327c0 14.725 11.937 26.663 26.663 26.663v0c14.725 0 26.663-11.937 26.663-26.663v0c0-100.079-52.443-189.967-134.096-253.428s-192.841-101.757-314.984-101.757z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["user"],colorPermutations:{"13513613712552552551":[]}},attrs:[],properties:{order:18,id:11,name:"user",prevSize:32,code:59658},setIdx:0,setId:2,iconIdx:7},{icon:{paths:["M479.562 16.805l-25.249 2.704c-85.122 9.016-168.126 42.381-241.661 97.025-27.458 20.423-75.563 68.53-96.213 96.124-112.624 150.903-131.877 345.585-50.901 514.566 24.618 51.308 53.156 91.118 96.528 134.446 43.329 43.372 83.138 71.911 134.446 96.528 168.936 80.974 363.753 61.632 514.745-51.083 27.458-20.47 75.698-68.711 96.169-96.169 134.086-179.667 134.086-418.804 0-598.47-20.47-27.413-68.666-75.61-96.033-95.944-71.911-53.472-147.656-84.537-235.214-96.44-19.071-2.616-83.365-4.78-96.62-3.292zM571.537 110.494c115.556 17.447 216.593 82.507 281.336 181.201 13.662 20.875 33.498 61.272 42.020 85.663 15.6 44.769 21.866 83.183 21.866 134.357 0 67.314-11.587 118.17-40.442 177.639-31.786 65.555-79.757 120.244-142.157 161.949-35.573 23.806-92.472 47.612-136.114 57.034-25.62 5.722-55.043 8.998-85.231 8.998-96.674 0-185.496-33.609-255.424-89.779l0.796 0.619c-68.215-54.644-119.387-134.806-139.902-219.072-8.387-34.401-11-57.348-11-97.385 0-67.314 11.587-118.17 40.442-177.639 48.209-97.574 131.699-171.591 233.4-206.28l2.851-0.844c31.786-10.504 57.348-15.69 98.288-19.928 14.519-1.488 70.83 0.676 89.27 3.471zM494.621 288.856c-9.882 2.687-17.931 9.133-22.672 17.667l-0.094 0.187c-4.012 7.484-4.012 7.935-4.508 110.821-0.36 66.771 0.136 105.727 1.352 110.19 4.735 17.674 17.764 27.322 38.638 28.674 21.866 1.397 36.204-4.915 44.365-19.523l4.508-8.025v-214.608l-4.012-7.528c-2.526-4.494-5.734-8.293-9.532-11.395l-0.071-0.056c-11.903-8.52-32.507-11.227-47.972-6.403zM494.621 649.453c-17.764 5.816-25.925 17.223-27.277 38.097-1.397 21.687 4.959 36.025 19.523 44.184 6.988 3.923 10.235 4.508 25.158 4.508 14.067 0 18.395-0.721 24.346-3.876 14.698-7.935 20.739-19.611 20.739-40.306 0-28.99-12.939-42.922-41.344-44.365-8.567-0.452-16.455 0.224-21.146 1.759z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["alert-circle"],colorPermutations:{"13513613712552552551":[{}]}},attrs:[{}],properties:{order:3,id:9,name:"alert-circle",prevSize:32,code:59648},setIdx:0,setId:2,iconIdx:8},{icon:{paths:["M86.74 248.039c-13.743 7.271-32.022 25.885-39.226 39.959-3.593 6.962-5.699 15.194-5.699 23.918 0 8.777 2.132 17.053 5.906 24.343l-0.14-0.295c8.339 16.68 423.485 431.822 440.161 440.161 7.050 3.626 15.386 5.753 24.216 5.753s17.166-2.127 24.519-5.894l-0.303 0.141c16.68-8.339 431.822-423.485 440.161-440.161 11.741-23.549 5.737-47.899-17.345-70.981-22.684-22.684-48.099-28.753-71.58-17.012-7.472 3.734-71.38 65.711-193.329 187.392l-182.121 181.854-182.121-181.854c-121.949-121.682-185.858-183.656-193.329-187.392-7.274-3.457-15.806-5.475-24.812-5.475-9.058 0-17.641 2.042-25.313 5.692l0.355-0.152z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["chevron-down"],colorPermutations:{"13513613712552552551":[{}]}},attrs:[{}],properties:{order:4,id:8,name:"chevron-down",prevSize:32,code:59649},setIdx:0,setId:2,iconIdx:9},{icon:{paths:["M696.431 22.299c-16.683 8.519-455.166 447.703-463.259 463.964-3.67 7.465-5.925 16.214-6.192 25.461l-0.002 0.092c0 7.814 2.463 18.021 6.195 25.553 8.798 17.599 446.859 455.657 464.458 464.458 24.848 12.388 50.544 6.053 74.898-18.302 24.426-24.426 30.692-50.050 18.302-74.898-4.434-8.729-63.566-69.902-198.087-204.633l-191.892-192.174 191.892-192.174c134.521-134.733 193.654-195.904 198.087-204.633 12.388-24.848 6.124-50.472-18.302-74.898-23.934-23.934-51.6-30.411-76.097-17.811z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["chevron-left"],colorPermutations:{"13513613712552552551":[{}]}},attrs:[{}],properties:{order:5,id:7,name:"chevron-left",prevSize:32,code:59650},setIdx:0,setId:2,iconIdx:10},{icon:{paths:["M274.397 21.85c-14.506 7.676-33.802 27.323-41.407 42.182-3.793 7.347-6.016 16.037-6.016 25.248 0 9.265 2.25 18.003 6.233 25.699l-0.148-0.312c4.436 8.732 63.589 69.927 198.164 204.713l191.967 192.248-191.967 192.248c-134.573 134.785-193.727 195.98-198.164 204.713-12.393 24.858-6.126 50.492 18.309 74.927 24.366 24.366 50.068 30.704 74.927 18.309 17.606-8.802 455.833-447.031 464.636-464.636 3.671-7.468 5.928-16.22 6.194-25.472l0.002-0.092c-0.268-9.341-2.525-18.096-6.36-25.936l0.164 0.373c-8.522-17.112-446.96-455.833-464.002-464.284-7.679-3.647-16.687-5.779-26.192-5.779-9.563 0-18.623 2.157-26.72 6.009l0.376-0.161z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["chevron-right"],colorPermutations:{"13513613712552552551":[{}]}},attrs:[{}],properties:{order:6,id:6,name:"chevron-right",prevSize:32,code:59651},setIdx:0,setId:2,iconIdx:11},{icon:{paths:["M122.87 145.282c-45.789 7.741-83.47 41.162-97.682 86.706l-3.85 12.287v535.715l3.85 12.287c12.591 40.186 43.612 71.207 82.901 83.554l0.897 0.243 12.287 3.85h781.455l12.287-3.85c40.186-12.591 71.207-43.612 83.554-82.901l0.243-0.897 3.85-12.287v-535.715l-3.85-12.287c-12.527-39.881-43.174-70.717-82.042-83.262l-0.897-0.25-13.147-4.136-385.813-0.246c-212.197-0.122-389.54 0.41-394.045 1.187zM893.308 227.933c6.274 1.981 11.613 5.404 15.833 9.892l0.019 0.020c12.122 12.122 12.41 14.212 12.41 87.812v63.606h-819.135v-63.606c0-73.641 0.287-75.688 12.451-87.812 4.087-4.335 9.153-7.7 14.847-9.746l0.265-0.083c6.554-2.006 60.903-2.375 381.308-2.458 329.949-0.122 374.59 0.163 382.004 2.375zM921.568 616.736c0 157.93 0.205 154.324-9.051 166.448-2.499 3.277-7.945 7.986-12.082 10.403l-7.536 4.424h-761.796l-7.536-4.424c-4.601-2.832-8.531-6.217-11.861-10.129l-0.058-0.069c-9.543-12.532-9.216-6.511-9.216-165.793v-146.42h819.135v145.56z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["credit-card"],colorPermutations:{"13513613712552552551":[{}]}},attrs:[{}],properties:{order:7,id:5,name:"credit-card",prevSize:32,code:59652},setIdx:0,setId:2,iconIdx:12},{icon:{paths:["M124.444 1024c-25.6 0-48-9.603-67.2-28.803s-28.8-41.597-28.8-67.197v-228.801h96v228.801h832v-228.801h96v228.801c0 25.6-9.603 47.997-28.803 67.197s-41.597 28.803-67.197 28.803h-832zM540.444 779.201l-308.8-308.801 68.8-68.8 192 192.002v-593.601h96.003v593.601l192-192.002 68.796 68.8-308.799 308.801z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["download"],width:1081,colorPermutations:{"13513613712552552551":[{}]}},attrs:[{}],properties:{order:8,id:4,name:"download",prevSize:32,code:59653},setIdx:0,setId:2,iconIdx:13},{icon:{paths:["M794.006 17.661l-151.696 1.040-9.863 5.054c-16.85 8.673-23.837 23.986-22.3 48.666 1.437 22.747 11.943 37.069 31.023 42.371 4.362 1.239 44.353 2.031 101.345 2.031h94.11l-234.158 234.406c-167.702 167.801-235.446 236.884-238.618 243.178-8.721 17.494-4.311 35.583 12.884 52.728 17.147 17.197 35.236 21.607 52.728 12.884 6.293-3.172 75.377-70.917 243.178-238.618l234.406-234.158v94.11c0 56.992 0.793 96.984 2.031 101.345 5.301 19.080 19.624 29.586 42.371 31.023 24.034 1.536 39.794-5.402 48.764-21.459l4.956-8.822 1.337-156.601c0.743-86.13 1.389-159.525 1.487-163.094 0.199-9.367-10.010-30.676-17.197-35.781-11.101-7.88-24.034-12.29-34.839-11.796-5.65 0.247-78.549 0.942-161.954 1.487zM138.857 168.514c-55.307 9.267-100.999 49.804-118.194 104.912l-4.659 14.867v598.654l4.659 14.867c15.235 48.626 52.77 86.159 100.311 101.101l1.085 0.293 14.867 4.659h598.654l14.867-4.659c48.626-15.235 86.159-52.77 101.101-100.311l0.293-1.085 4.659-14.867v-342.936l-4.51-8.424c-8.177-15.363-27.751-23.787-50.3-21.756-21.557 1.983-36.326 13.034-41.281 30.924-1.288 4.558-2.031 65.068-2.031 163.985 0 170.081 0.149 167.504-10.951 182.074-3.023 3.964-9.614 9.664-14.62 12.587l-9.119 5.353h-574.865l-9.119-5.353c-5.567-3.428-10.323-7.523-14.351-12.254l-0.070-0.086c-11.796-15.463-11.15 1.585-11.15-302.349 0-314.194-1.090-292.092 15.016-308.198 15.61-15.61 8.177-15.016 186.040-15.016 98.917 0 159.377-0.743 163.935-2.031 11.026-3.042 20.021-10.196 25.414-19.667l0.108-0.206c4.311-7.73 4.956-11.2 4.906-27.653-0.050-21.459-4.014-31.964-14.916-39.696-13.925-9.911-13.034-9.863-185.048-9.614-88.411 0.098-165.274 0.991-170.726 1.884z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["external-link"],colorPermutations:{"13513613712552552551":[{}]}},attrs:[{}],properties:{order:9,id:3,name:"external-link",prevSize:32,code:59654},setIdx:0,setId:2,iconIdx:14},{icon:{paths:["M37.011 21.092c-7.44 4.919-15.211 13.392-19.096 20.832-2.893 5.497-2.397 26.205 0.744 32.446 1.488 2.893 43.936 46.623 94.363 97.173l91.676 91.883-22.072 19.881c-55.882 50.302-111.391 120.526-152.394 192.652-19.923 35.091-19.551 40.216 6.572 83.906 22.981 38.439 50.839 77.582 81.963 114.987 17.277 20.832 68.571 72.374 88.204 88.659 77.664 64.52 156.486 101.967 243.863 115.938 29.181 4.671 84.691 4.919 114.905 0.537 64.774-9.256 123.081-30.451 174.918-61.366l-2.146 1.186 14.053-8.391 95.891 95.643c52.74 52.575 98.289 96.801 101.182 98.289 3.431 1.695 9.589 2.645 17.484 2.645 10.871 0 13.061-0.579 19.881-5.084 7.44-4.919 15.211-13.392 19.096-20.832 1.033-1.984 1.901-9.135 1.901-15.872 0-10.788-0.579-13.061-4.877-19.509-6.696-10.003-922.132-924.736-928.745-928.042-3.431-1.695-9.631-2.645-17.484-2.645-10.871 0-13.061 0.579-19.881 5.084zM483.073 140.957c-38.77 3.885-70.679 9.879-81.384 15.335-17.443 8.928-22.651 27.611-14.467 51.748 3.431 9.961 12.565 20.501 19.964 22.94 7.233 2.397 20.584 2.356 31.413-0.083 21.828-4.99 46.894-7.847 72.629-7.847 24.765 0 48.908 2.647 72.168 7.674l-2.239-0.405c112.673 22.94 225.345 110.358 314.128 243.697 27.404 41.126 25.833 34.802 13.681 54.89-18.486 29.629-36.424 54.854-55.698 78.967l1.263-1.635c-15.665 19.427-20.419 28.396-20.419 38.728 0 9.961 3.844 17.897 13.020 26.825 15.789 15.335 32.074 19.179 47.078 10.995 16.285-8.845 62.164-70.431 96.553-129.578 23.188-39.844 23.064-44.267-2.356-87.212-37.302-62.647-79.77-116.755-128.241-164.821l-0.056-0.055c-52.906-52.864-96.015-84.608-154.667-113.789-47.987-23.891-92.875-37.778-142.185-43.978-14.921-1.901-69.067-3.472-80.186-2.397zM363.497 436.278c-7.027 12.235-16.161 40.547-18.6 57.411-2.273 15.748-1.281 38.026 2.439 55.51 13.81 64.070 63.4 113.659 126.385 127.273l1.085 0.197c36.992 7.853 73.986 2.976 109.035-14.467l13.144-6.531 95.767 95.767-18.145 9.093c-55.551 27.859-106.762 40.010-167.562 39.762-34.884-0.124-55.51-2.852-85.146-11.325-108.953-31.041-213.029-116.558-296.355-243.491-23.767-36.207-22.609-30.421-10.209-50.798 36.103-58.15 77.662-108.281 125.123-152.115l0.487-0.445 22.196-20.295 105.481 105.481-5.125 8.969zM482.99 541.677c28.148 28.189 50.839 51.5 50.426 51.872-2.371 0.956-5.22 1.825-8.155 2.456l-0.358 0.065c-32.694 8.019-71.795-10.664-88.618-42.324-7.068-13.309-10.871-31.165-9.424-44.226s2.645-19.013 3.927-19.013c0.579 0 24.097 23.023 52.203 51.17z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["eye-off"],colorPermutations:{"13513613712552552551":[{}]}},attrs:[{}],properties:{order:10,id:2,name:"eye-off",prevSize:32,code:59655},setIdx:0,setId:2,iconIdx:15},{icon:{paths:["M476.812 145.058c-91.938 8.183-178.844 45.99-262.682 114.237-22.013 17.88-73.24 69.23-93.411 93.576-27.898 33.332-54.401 70.307-78.054 109.206l-2.265 4.009c-25.408 43.004-25.408 48.075 0 91.079 26.595 43.828 53.754 81.602 83.511 117.127l-1.187-1.456c17.103 20.621 67.881 71.644 87.316 87.765 95.252 79.132 196.848 119.231 301.963 119.231 101.186 0 199.262-37.274 291.528-110.8 24.55-19.599 77.168-71.317 97.789-96.194 28.531-34.062 55.678-71.838 79.947-111.56l2.335-4.112c25.408-43.004 25.408-48.075 0-91.079-36.927-62.014-78.968-115.578-126.948-163.159l-0.056-0.055c-52.373-52.333-95.049-83.755-153.109-112.642-47.258-23.526-92.471-37.52-140.752-43.534-19.762-2.456-66.611-3.355-85.924-1.636zM542.401 226.93c113.297 11.048 221.112 79.46 315.996 200.613 12.97 16.572 49.221 69.557 54.46 79.622 2.865 5.524 3.109 4.991-18.289 37.602-76.268 116.162-173.648 200.285-270.457 233.633-36.375 12.521-63.503 17.677-100.654 19.107-41.858 1.595-75.777-3.436-118.575-17.634-99.877-33.061-197.545-116.447-275.448-235.106-21.4-32.57-21.154-32.118-18.289-37.561 5.319-10.106 35.598-54.828 49.058-72.503 112.439-147.544 247.339-220.865 382.198-207.772zM485.731 350.456c-46.153 7.2-90.63 37.358-114.115 77.413-14.495 23.907-23.073 52.8-23.073 83.696 0 68.318 41.943 126.839 101.484 151.218l1.089 0.394c18.045 7.475 38.999 11.817 60.968 11.817 68.256 0 126.725-41.91 151.074-101.401l0.393-1.088c7.497-18.004 11.851-38.921 11.851-60.853 0-21.895-4.34-42.775-12.205-61.827l0.393 1.079c-21.587-53.034-68.85-91.572-125.925-100.454l-0.915-0.116c-7.561-1.328-16.266-2.088-25.149-2.088-9.141 0-18.093 0.805-26.792 2.346l0.92-0.135zM533.4 432.78c30.737 8.794 53.801 34.225 59.016 65.681l0.066 0.48c4.092 26.718-3.846 50.859-23.077 70.131-16.407 16.489-35.024 24.386-57.404 24.386-21.072 0-39.361-7.284-55.114-21.891-54.418-50.572-18.985-141.571 55.114-141.571 5.851 0 15.467 1.268 21.4 2.782z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["eye"],colorPermutations:{"13513613712552552551":[{}]}},attrs:[{}],properties:{order:11,id:1,name:"eye",prevSize:32,code:59656},setIdx:0,setId:2,iconIdx:16},{icon:{paths:["M481.28 43.648l-23.893 2.56c-80.555 8.533-159.104 40.107-228.693 91.819-25.984 19.328-71.509 64.853-91.051 90.965-106.581 142.805-124.8 327.040-48.171 486.955 23.296 48.555 50.304 86.229 91.349 127.232 41.003 41.045 78.677 68.053 127.232 91.349 159.872 76.629 344.235 58.325 487.125-48.341 25.984-19.371 71.637-65.024 91.008-91.008 126.891-170.027 126.891-396.331 0-566.357-19.371-25.941-64.981-71.552-90.88-90.795-68.053-50.603-139.733-80-222.592-91.264-18.048-2.475-78.891-4.523-91.435-3.115zM568.32 132.309c109.355 16.512 204.971 78.080 266.24 171.477 12.928 19.755 31.701 57.984 39.765 81.067 14.763 42.368 20.693 78.72 20.693 127.147 0 63.701-10.965 111.829-38.272 168.107-30.080 62.037-75.477 113.792-134.528 153.259-33.664 22.528-87.509 45.056-128.811 53.973-24.244 5.414-52.089 8.515-80.658 8.515-91.486 0-175.543-31.805-241.717-84.962l0.754 0.586c-64.555-51.712-112.981-127.573-132.395-207.317-7.936-32.555-10.411-54.272-10.411-92.16 0-63.701 10.965-111.829 38.272-168.107 45.622-92.339 124.633-162.383 220.876-195.211l2.698-0.799c30.080-9.941 54.272-14.848 93.013-18.859 13.739-1.408 67.029 0.64 84.48 3.285zM482.133 257.792c-22.357 3.456-48.768 14.165-70.827 28.715-38.101 25.131-71.424 80-66.261 109.184 2.56 14.72 15.104 25.173 36.309 30.421 9.771 2.389 12.843 2.517 19.499 0.768 11.392-3.029 20.821-12.971 27.563-28.928 6.741-16.085 12.8-25.003 23.509-34.645 26.325-23.68 61.141-28.501 94.208-13.013 14.848 6.955 31.744 24.021 38.997 39.381 6.059 12.843 9.643 32.128 8.021 43.093-4.096 27.221-38.699 56.917-92.288 79.232-31.019 12.885-39.424 24.107-34.944 46.805 5.675 28.8 22.997 43.221 46.421 38.613 24.832-4.907 68.651-26.965 97.451-49.109 49.365-37.973 71.595-80.213 68.949-130.987-2.261-43.136-18.731-79.957-49.749-111.189-21.063-21.482-47.858-37.271-77.909-44.894l-1.152-0.248c-15.317-3.968-51.925-5.675-67.797-3.2zM495.531 685.013c-16.811 5.504-24.533 16.299-25.813 36.053-1.323 20.523 4.693 34.091 18.475 41.813 6.613 3.712 9.685 4.267 23.808 4.267 13.312 0 17.408-0.683 23.040-3.669 13.909-7.509 19.627-18.56 19.627-38.144 0-27.435-12.245-40.619-39.125-41.984-8.107-0.427-15.573 0.213-20.011 1.664z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["help-circle"],colorPermutations:{"13513613712552552551":[{}]}},attrs:[{}],properties:{order:12,id:0,name:"help-circle",prevSize:32,code:59657},setIdx:0,setId:2,iconIdx:17}],height:1024,metadata:{name:"icomoon"},preferences:{showGlyphs:!0,showQuickUse:!0,showQuickUse2:!0,showSVGs:!0,fontPref:{prefix:"icon-",metadata:{fontFamily:"icomoon"},metrics:{emSize:1024,baseline:6.25,whitespace:50},embed:!1},imagePref:{prefix:"icon-",png:!0,useClassSelector:!0,color:0,bgColor:16777215,classSelector:".icon",name:"icomoon"},historySize:50,showCodes:!0,gridSize:16,showGrid:!1}}).icons.map(e=>e.properties.name).reduce((e,t)=>(e[t]=t,e),{});const Eo={prefix:String(Math.round(Math.random()*1e10)),current:0},mc=f.createContext(Eo),u1=f.createContext(!1);let d1=!!(typeof window<"u"&&window.document&&window.document.createElement),os=new WeakMap;function f1(e=!1){let t=f.useContext(mc),r=f.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let s=os.get(a);s==null?os.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,os.delete(a))}r.current=++t.current}return r.current}function p1(e){let t=f.useContext(mc);t===Eo&&!d1&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=f1(!!e),n=t===Eo&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function h1(e){let t=f.useId(),[r]=f.useState(gc()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Eo.prefix}`;return e||`${n}-${t}`}const m1=typeof f.useId=="function"?h1:p1;function g1(){return!1}function v1(){return!0}function b1(e){return()=>{}}function gc(){return typeof f.useSyncExternalStore=="function"?f.useSyncExternalStore(b1,g1,v1):f.useContext(u1)}function y1(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function x1(e,t,r){y1(e,t),t.set(e,r)}function Lr(e,t,r){let[n,o]=f.useState(e||t),a=f.useRef(e!==void 0),s=e!==void 0;f.useEffect(()=>{let c=a.current;c!==s&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let i=s?e:n,l=f.useCallback((c,...u)=>{let d=(p,...h)=>{r&&(Object.is(i,p)||r(p,...h)),s||(i=p)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((h,...g)=>{let b=c(s?i:h,...g);return d(b,...u),s?h:b})):(s||o(c),d(c,...u))},[s,i,r]);return[i,l]}const kt=typeof document<"u"?f.useLayoutEffect:()=>{};function We(e){const t=f.useRef(null);return kt(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n(...r)},[])}function w1(e){let[t,r]=f.useState(e),n=f.useRef(null),o=We(()=>{let s=n.current.next();if(s.done){n.current=null;return}t===s.value?o():r(s.value)});kt(()=>{n.current&&o()});let a=We(s=>{n.current=s(t),o()});return[t,a]}let C1=!!(typeof window<"u"&&window.document&&window.document.createElement),$o=new Map;function _r(e){let[t,r]=f.useState(e),n=f.useRef(null),o=m1(t),a=f.useCallback(s=>{n.current=s},[]);return C1&&$o.set(o,a),kt(()=>{let s=o;return()=>{$o.delete(s)}},[o]),f.useEffect(()=>{let s=n.current;s&&(n.current=null,r(s))}),o}function P1(e,t){if(e===t)return e;let r=$o.get(e);if(r)return r(t),t;let n=$o.get(t);return n?(n(e),e):t}function vc(e=[]){let t=_r(),[r,n]=w1(t),o=f.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return kt(o,[t,o,...e]),r}function dr(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Ct=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},xn=e=>e&&"window"in e&&e.window===e?e:Ct(e).defaultView||window;function ie(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let a=t[o],s=n[o];typeof a=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=dr(a,s):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[o]=pc(a,s):o==="id"&&a&&s?t.id=P1(a,s):t[o]=s!==void 0?s:a}}return t}const M1=new Set(["id"]),T1=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),S1=new Set(["href","target","rel","download","ping","referrerPolicy"]),E1=/^(data-.*)$/;function Fr(e,t={}){let{labelable:r,isLink:n,propNames:o}=t,a={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(M1.has(s)||r&&T1.has(s)||n&&S1.has(s)||o!=null&&o.has(s)||E1.test(s))&&(a[s]=e[s]);return a}function tt(e){if($1())e.focus({preventScroll:!0});else{let t=D1(e);e.focus(),I1(t)}}let Do=null;function $1(){if(Do==null){Do=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Do=!0,!0}})}catch{}}return Do}function D1(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function I1(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Io(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function as(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function qt(){return as(/^Mac/i)}function k1(){return as(/^iPhone/i)}function bc(){return as(/^iPad/i)||qt()&&navigator.maxTouchPoints>1}function wn(){return k1()||bc()}function A1(){return qt()||wn()}function O1(){return Io(/AppleWebKit/i)&&!N1()}function N1(){return Io(/Chrome/i)}function yc(){return Io(/Android/i)}function j1(){return Io(/Firefox/i)}const L1=f.createContext({isNative:!0,open:F1});function xc(){return f.useContext(L1)}function At(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:s,altKey:i,shiftKey:l}=t;j1()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(qt()?a=!0:s=!0);let c=O1()&&qt()&&!bc()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:s,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:s,altKey:i,shiftKey:l,bubbles:!0,cancelable:!0});At.isOpening=r,tt(e),e.dispatchEvent(c),At.isOpening=!1}At.isOpening=!1;function _1(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function F1(e,t){_1(e,r=>At(r,t))}let Vr=new Map,ss=new Set;function wc(){if(typeof window>"u")return;let e=r=>{let n=Vr.get(r.target);n||(n=new Set,Vr.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=Vr.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),Vr.delete(r.target)),Vr.size===0)){for(let o of ss)o();ss.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?wc():document.addEventListener("DOMContentLoaded",wc));function is(e){requestAnimationFrame(()=>{Vr.size===0?e():ss.add(e)})}function ls(){let e=f.useRef(new Map),t=f.useCallback((o,a,s,i)=>{let l=i!=null&&i.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:a,eventTarget:o,fn:l,options:i}),o.addEventListener(a,s,i)},[]),r=f.useCallback((o,a,s,i)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(a,c,i),e.current.delete(s)},[]),n=f.useCallback(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function cs(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=_r(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function us(e,t){kt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}})}function Cc(e,t){for(Pc(e,t)&&(e=e.parentElement);e&&!Pc(e,t);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Pc(e,t){let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}let V1=0;const ds=new Map;function z1(e){let[t,r]=f.useState(void 0);return kt(()=>{if(!e)return;let n=ds.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${V1++}`;r(o);let a=document.createElement("div");a.id=o,a.style.display="none",a.textContent=e,document.body.appendChild(a),n={refCount:0,element:a},ds.set(e,n)}return n.refCount++,()=>{--n.refCount===0&&(n.element.remove(),ds.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function W1(e,t,r,n){let o=We(r),a=r==null;f.useEffect(()=>{if(a)return;let s=e.current;return s.addEventListener(t,o,n),()=>{s.removeEventListener(t,o,n)}},[e,t,n,a,o])}function Mc(e,t){let r=Tc(e,t,"left"),n=Tc(e,t,"top"),o=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,i=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c}=getComputedStyle(e),u=e.scrollLeft+parseInt(c,10),d=e.scrollTop+parseInt(l,10),p=u+e.clientWidth,h=d+e.clientHeight;r<=s?s=r-parseInt(c,10):r+o>p&&(s+=r+o-p),n<=d?i=n-parseInt(l,10):n+a>h&&(i+=n+a-h),e.scrollLeft=s,e.scrollTop=i}function Tc(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function Sc(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=Cc(e);for(;e&&l&&e!==s&&l!==s;)Mc(l,e),e=l,l=Cc(e)}else{var r;let{left:l,top:c}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:u,top:d}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(c-d)>1){var n,o,a;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function Cn(e){return e.mozInputSource===0&&e.isTrusted?!0:yc()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ec(e){return!yc()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function fs(e,t,r){let n=f.useRef(t),o=We(()=>{r&&r(n.current)});f.useEffect(()=>{var a;let s=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return s==null||s.addEventListener("reset",o),()=>{s==null||s.removeEventListener("reset",o)}},[e,o])}const B1=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),R1=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function K1(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return B1.has(r.script)}let t=e.split("-")[0];return R1.has(t)}const U1=Symbol.for("react-aria.i18n.locale");function $c(){let e=typeof window<"u"&&window[U1]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:K1(e)?"rtl":"ltr"}}let ps=$c(),Pn=new Set;function Dc(){ps=$c();for(let e of Pn)e(ps)}function H1(){let e=gc(),[t,r]=f.useState(ps);return f.useEffect(()=>(Pn.size===0&&window.addEventListener("languagechange",Dc),Pn.add(r),()=>{Pn.delete(r),Pn.size===0&&window.removeEventListener("languagechange",Dc)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Y1=f.createContext(null);function hs(){let e=H1();return f.useContext(Y1)||e}var Pt=function(){return Pt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Pt.apply(this,arguments)};function Ic(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function G1(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function q1(e,t){return t.get?t.get.call(e):t.value}function kc(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Q1(e,t){var r=kc(e,t,"get");return q1(e,r)}function X1(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function Ac(e,t,r){var n=kc(e,t,"set");return X1(e,n,r),r}let zr="default",ms="",ko=new WeakMap;function Oc(e){if(wn()){if(zr==="default"){const t=Ct(e);ms=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}zr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ko.set(e,e.style.userSelect),e.style.userSelect="none")}function Ao(e){if(wn()){if(zr!=="disabled")return;zr="restoring",setTimeout(()=>{is(()=>{if(zr==="restoring"){const t=Ct(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ms||""),ms="",zr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ko.has(e)){let t=ko.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ko.delete(e)}}const Nc=f.createContext({register:()=>{}});Nc.displayName="PressResponderContext";function Z1(e){let t=f.useContext(Nc);if(t){let{register:r,...n}=t;e=ie(n,e),r()}return us(t,e.ref),e}var Oo=new WeakMap;class No{continuePropagation(){Ac(this,Oo,!1)}get shouldStopPropagation(){return Q1(this,Oo)}constructor(t,r,n){x1(this,Oo,{writable:!0,value:void 0}),Ac(this,Oo,!0),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}const jc=Symbol("linkClicked");function fr(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,isDisabled:s,isPressed:i,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:d,...p}=Z1(e),[h,g]=f.useState(!1),b=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:P}=ls(),x=We((m,D)=>{let I=b.current;if(s||I.didFirePressStart)return!1;let T=!0;if(I.isTriggeringEvent=!0,n){let k=new No("pressstart",D,m);n(k),T=k.shouldStopPropagation}return r&&r(!0),I.isTriggeringEvent=!1,I.didFirePressStart=!0,g(!0),T}),C=We((m,D,I=!0)=>{let T=b.current;if(!T.didFirePressStart)return!1;T.ignoreClickAfterPress=!0,T.didFirePressStart=!1,T.isTriggeringEvent=!0;let k=!0;if(o){let w=new No("pressend",D,m);o(w),k=w.shouldStopPropagation}if(r&&r(!1),g(!1),t&&I&&!s){let w=new No("press",D,m);t(w),k&&(k=w.shouldStopPropagation)}return T.isTriggeringEvent=!1,k}),S=We((m,D)=>{let I=b.current;if(s)return!1;if(a){I.isTriggeringEvent=!0;let T=new No("pressup",D,m);return a(T),I.isTriggeringEvent=!1,T.shouldStopPropagation}return!0}),$=We(m=>{let D=b.current;D.isPressed&&D.target&&(D.isOverTarget&&D.pointerType!=null&&C(Ot(D.target,m),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,P(),u||Ao(D.target))}),N=We(m=>{c&&$(m)}),j=f.useMemo(()=>{let m=b.current,D={onKeyDown(T){if(vs(T.nativeEvent,T.currentTarget)&&T.currentTarget.contains(T.target)){var k;_c(T.target,T.key)&&T.preventDefault();let w=!0;!m.isPressed&&!T.repeat&&(m.target=T.currentTarget,m.isPressed=!0,w=x(T,"keyboard"),y(Ct(T.currentTarget),"keyup",I,!1)),w&&T.stopPropagation(),T.metaKey&&qt()&&((k=m.metaKeyEvents)===null||k===void 0||k.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(m.metaKeyEvents=new Map)},onKeyUp(T){vs(T.nativeEvent,T.currentTarget)&&!T.repeat&&T.currentTarget.contains(T.target)&&m.target&&S(Ot(m.target,T),"keyboard")},onClick(T){if(!(T&&!T.currentTarget.contains(T.target))&&T&&T.button===0&&!m.isTriggeringEvent&&!At.isOpening){let k=!0;if(s&&T.preventDefault(),!m.ignoreClickAfterPress&&!m.ignoreEmulatedMouseEvents&&!m.isPressed&&(m.pointerType==="virtual"||Cn(T.nativeEvent))){!s&&!l&&tt(T.currentTarget);let w=x(T,"virtual"),M=S(T,"virtual"),O=C(T,"virtual");k=w&&M&&O}m.ignoreEmulatedMouseEvents=!1,m.ignoreClickAfterPress=!1,k&&T.stopPropagation()}}},I=T=>{var k;if(m.isPressed&&m.target&&vs(T,m.target)){var w;_c(T.target,T.key)&&T.preventDefault();let O=T.target,F=C(Ot(m.target,T),"keyboard",m.target.contains(O));P(),F&&T.stopPropagation(),T.key!=="Enter"&&gs(m.target)&&m.target.contains(O)&&!T[jc]&&(T[jc]=!0,At(m.target,T,!1)),m.isPressed=!1,(w=m.metaKeyEvents)===null||w===void 0||w.delete(T.key)}else if(T.key==="Meta"&&(!((k=m.metaKeyEvents)===null||k===void 0)&&k.size)){var M;let O=m.metaKeyEvents;m.metaKeyEvents=void 0;for(let F of O.values())(M=m.target)===null||M===void 0||M.dispatchEvent(new KeyboardEvent("keyup",F))}};if(typeof PointerEvent<"u"){D.onPointerDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(Ec(M.nativeEvent)){m.pointerType="virtual";return}bs(M.currentTarget)&&M.preventDefault(),m.pointerType=M.pointerType;let O=!0;m.isPressed||(m.isPressed=!0,m.isOverTarget=!0,m.activePointerId=M.pointerId,m.target=M.currentTarget,!s&&!l&&tt(M.currentTarget),u||Oc(m.target),O=x(M,m.pointerType),y(Ct(M.currentTarget),"pointermove",T,!1),y(Ct(M.currentTarget),"pointerup",k,!1),y(Ct(M.currentTarget),"pointercancel",w,!1)),O&&M.stopPropagation()},D.onMouseDown=M=>{M.currentTarget.contains(M.target)&&M.button===0&&(bs(M.currentTarget)&&M.preventDefault(),M.stopPropagation())},D.onPointerUp=M=>{!M.currentTarget.contains(M.target)||m.pointerType==="virtual"||M.button===0&&Wr(M,M.currentTarget)&&S(M,m.pointerType||M.pointerType)};let T=M=>{M.pointerId===m.activePointerId&&(m.target&&Wr(M,m.target)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,x(Ot(m.target,M),m.pointerType)):m.target&&m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,C(Ot(m.target,M),m.pointerType,!1),N(M)))},k=M=>{M.pointerId===m.activePointerId&&m.isPressed&&M.button===0&&m.target&&(Wr(M,m.target)&&m.pointerType!=null?C(Ot(m.target,M),m.pointerType):m.isOverTarget&&m.pointerType!=null&&C(Ot(m.target,M),m.pointerType,!1),m.isPressed=!1,m.isOverTarget=!1,m.activePointerId=null,m.pointerType=null,P(),u||Ao(m.target))},w=M=>{$(M)};D.onDragStart=M=>{M.currentTarget.contains(M.target)&&$(M)}}else{D.onMouseDown=w=>{if(w.button!==0||!w.currentTarget.contains(w.target))return;if(bs(w.currentTarget)&&w.preventDefault(),m.ignoreEmulatedMouseEvents){w.stopPropagation();return}m.isPressed=!0,m.isOverTarget=!0,m.target=w.currentTarget,m.pointerType=Cn(w.nativeEvent)?"virtual":"mouse",!s&&!l&&tt(w.currentTarget),x(w,m.pointerType)&&w.stopPropagation(),y(Ct(w.currentTarget),"mouseup",T,!1)},D.onMouseEnter=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!0,M=x(w,m.pointerType)),M&&w.stopPropagation()},D.onMouseLeave=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!1,M=C(w,m.pointerType,!1),N(w)),M&&w.stopPropagation()},D.onMouseUp=w=>{w.currentTarget.contains(w.target)&&!m.ignoreEmulatedMouseEvents&&w.button===0&&S(w,m.pointerType||"mouse")};let T=w=>{if(w.button===0){if(m.isPressed=!1,P(),m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.target&&Wr(w,m.target)&&m.pointerType!=null?C(Ot(m.target,w),m.pointerType):m.target&&m.isOverTarget&&m.pointerType!=null&&C(Ot(m.target,w),m.pointerType,!1),m.isOverTarget=!1}};D.onTouchStart=w=>{if(!w.currentTarget.contains(w.target))return;let M=J1(w.nativeEvent);if(!M)return;m.activePointerId=M.identifier,m.ignoreEmulatedMouseEvents=!0,m.isOverTarget=!0,m.isPressed=!0,m.target=w.currentTarget,m.pointerType="touch",!s&&!l&&tt(w.currentTarget),u||Oc(m.target),x(w,m.pointerType)&&w.stopPropagation(),y(xn(w.currentTarget),"scroll",k,!0)},D.onTouchMove=w=>{if(!w.currentTarget.contains(w.target))return;if(!m.isPressed){w.stopPropagation();return}let M=Lc(w.nativeEvent,m.activePointerId),O=!0;M&&Wr(M,w.currentTarget)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,O=x(w,m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,O=C(w,m.pointerType,!1),N(w)),O&&w.stopPropagation()},D.onTouchEnd=w=>{if(!w.currentTarget.contains(w.target))return;if(!m.isPressed){w.stopPropagation();return}let M=Lc(w.nativeEvent,m.activePointerId),O=!0;M&&Wr(M,w.currentTarget)&&m.pointerType!=null?(S(w,m.pointerType),O=C(w,m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(O=C(w,m.pointerType,!1)),O&&w.stopPropagation(),m.isPressed=!1,m.activePointerId=null,m.isOverTarget=!1,m.ignoreEmulatedMouseEvents=!0,m.target&&!u&&Ao(m.target),P()},D.onTouchCancel=w=>{w.currentTarget.contains(w.target)&&(w.stopPropagation(),m.isPressed&&$(w))};let k=w=>{m.isPressed&&w.target.contains(m.target)&&$({currentTarget:m.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};D.onDragStart=w=>{w.currentTarget.contains(w.target)&&$(w)}}return D},[y,s,l,P,u,$,N,C,x,S]);return f.useEffect(()=>()=>{var m;u||Ao((m=b.current.target)!==null&&m!==void 0?m:void 0)},[u]),{isPressed:i||h,pressProps:ie(p,j)}}function gs(e){return e.tagName==="A"&&e.hasAttribute("href")}function vs(e,t){const{key:r,code:n}=e,o=t,a=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof xn(o).HTMLInputElement&&!Fc(o,r)||o instanceof xn(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&gs(o))&&r!=="Enter")}function J1(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Lc(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Ot(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function em(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function tm(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Wr(e,t){let r=t.getBoundingClientRect(),n=em(e);return tm(r,n)}function bs(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function _c(e,t){return e instanceof HTMLInputElement?!Fc(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!gs(e)}const rm=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Fc(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":rm.has(e.type)}class nm{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function Vc(e){let t=f.useRef({isFocused:!1,observer:null});kt(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=We(n=>{e==null||e(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,a=s=>{t.current.isFocused=!1,o.disabled&&r(new nm("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let i=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function zc(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const a=f.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),s=Vc(a),i=f.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(r&&r(l),o&&o(!0),s(l))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?i:void 0,onBlur:!t&&(n||o)?a:void 0}}}let pr=null,ys=new Set,Wc=!1,hr=!1,xs=!1;const om={Tab:!0,Escape:!0};function jo(e,t){for(let r of ys)r(e,t)}function am(e){return!(e.metaKey||!qt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Bc(e){hr=!0,am(e)&&(pr="keyboard",jo("keyboard",e))}function Br(e){pr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(hr=!0,jo("pointer",e))}function sm(e){Cn(e)&&(hr=!0,pr="virtual")}function im(e){e.target===window||e.target===document||(!hr&&!xs&&(pr="virtual",jo("virtual",e)),hr=!1,xs=!1)}function lm(){hr=!1,xs=!0}function ws(){if(typeof window>"u"||Wc)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){hr=!0,e.apply(this,arguments)},document.addEventListener("keydown",Bc,!0),document.addEventListener("keyup",Bc,!0),document.addEventListener("click",sm,!0),window.addEventListener("focus",im,!0),window.addEventListener("blur",lm,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Br,!0),document.addEventListener("pointermove",Br,!0),document.addEventListener("pointerup",Br,!0)):(document.addEventListener("mousedown",Br,!0),document.addEventListener("mousemove",Br,!0),document.addEventListener("mouseup",Br,!0)),Wc=!0}typeof document<"u"&&(document.readyState!=="loading"?ws():document.addEventListener("DOMContentLoaded",ws));function Rc(){return pr!=="pointer"}function Cs(){return pr}function cm(e){pr=e,jo(e,null)}const um=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function dm(e,t,r){var n;return e=e||(r==null?void 0:r.target)instanceof HTMLInputElement&&!um.has(r==null||(n=r.target)===null||n===void 0?void 0:n.type)||(r==null?void 0:r.target)instanceof HTMLTextAreaElement||(r==null?void 0:r.target)instanceof HTMLElement&&(r==null?void 0:r.target.isContentEditable),!(e&&t==="keyboard"&&r instanceof KeyboardEvent&&!om[r.key])}function fm(e,t,r){ws(),f.useEffect(()=>{let n=(o,a)=>{dm(!!(r!=null&&r.isTextInput),o,a)&&e(Rc())};return ys.add(n),()=>{ys.delete(n)}},t)}function Lo(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=f.useRef({isFocusWithin:!1}),s=f.useCallback(c=>{a.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(a.current.isFocusWithin=!1,r&&r(c),o&&o(!1))},[r,o,a]),i=Vc(s),l=f.useCallback(c=>{!a.current.isFocusWithin&&document.activeElement===c.target&&(n&&n(c),o&&o(!0),a.current.isFocusWithin=!0,i(c))},[n,o,i]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let _o=!1,Ps=0;function Ms(){_o=!0,setTimeout(()=>{_o=!1},50)}function Kc(e){e.pointerType==="touch"&&Ms()}function pm(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Kc):document.addEventListener("touchend",Ms),Ps++,()=>{Ps--,!(Ps>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Kc):document.removeEventListener("touchend",Ms))}}function mr(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[a,s]=f.useState(!1),i=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(pm,[]);let{hoverProps:l,triggerHoverEnd:c}=f.useMemo(()=>{let u=(h,g)=>{if(i.pointerType=g,o||g==="touch"||i.isHovered||!h.currentTarget.contains(h.target))return;i.isHovered=!0;let b=h.currentTarget;i.target=b,t&&t({type:"hoverstart",target:b,pointerType:g}),r&&r(!0),s(!0)},d=(h,g)=>{if(i.pointerType="",i.target=null,g==="touch"||!i.isHovered)return;i.isHovered=!1;let b=h.currentTarget;n&&n({type:"hoverend",target:b,pointerType:g}),r&&r(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{_o&&h.pointerType==="mouse"||u(h,h.pointerType)},p.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(p.onTouchStart=()=>{i.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!i.ignoreEmulatedMouseEvents&&!_o&&u(h,"mouse"),i.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:p,triggerHoverEnd:d}},[t,r,n,o,i]);return f.useEffect(()=>{o&&c({currentTarget:i.target},i.pointerType)},[o]),{hoverProps:l,isHovered:a}}function Uc(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(n),t&&r.stopPropagation()}}function hm(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Uc(e.onKeyDown),onKeyUp:Uc(e.onKeyUp)}}}const mm=500;function gm(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:a=mm,accessibilityDescription:s}=e;const i=f.useRef();let{addGlobalListener:l,removeGlobalListener:c}=ls(),{pressProps:u}=fr({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(r&&r({...p,type:"longpressstart"}),i.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...p,type:"longpress"}),i.current=void 0},a),p.pointerType==="touch")){let h=g=>{g.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){i.current&&clearTimeout(i.current),n&&(p.pointerType==="mouse"||p.pointerType==="touch")&&n({...p,type:"longpressend"})}}),d=z1(o&&!t?s:void 0);return{longPressProps:ie(u,d)}}function Fo(e){const t=Ct(e);if(Cs()==="virtual"){let r=t.activeElement;is(()=>{t.activeElement===r&&e.isConnected&&tt(e)})}else tt(e)}function vm(e){const t=xn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:s,visibility:i}=a(e);o=s!=="none"&&i!=="hidden"&&i!=="collapse"}return o}function bm(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Hc(e,t){return e.nodeName!=="#comment"&&vm(e)&&bm(e,t)&&(!e.parentElement||Hc(e.parentElement,e))}const Ts=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],ym=Ts.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ts.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const xm=Ts.join(':not([hidden]):not([tabindex="-1"]),');function Yc(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Ss(e,t,r){let n=t!=null&&t.tabbable?xm:ym,o=Ct(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:a.matches(n)&&Hc(a)&&(!r||Yc(a,r))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class Es{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let a=new Gc({scopeRef:t});o.addChild(a),a.parent=o,this.fastMap.set(t,a),n&&(a.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Yc(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(a=>n&&n.addChild(a))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new Es;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Gc({scopeRef:null}),this.fastMap.set(null,this.root)}}class Gc{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new Es;function Mt(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||Rc()}),[a,s]=f.useState(!1),[i,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=f.useCallback(h=>{o.current.isFocused=h,s(h),c()},[c]);fm(h=>{o.current.isFocusVisible=h,c()},[],{isTextInput:r});let{focusProps:d}=zc({isDisabled:n,onFocusChange:u}),{focusWithinProps:p}=Lo({isDisabled:!n,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:i,focusProps:n?p:d}}let wm=f.createContext(null);function Cm(e){let t=f.useContext(wm)||{};us(t,e);let{ref:r,...n}=t;return n}function Vo(e,t){let{focusProps:r}=zc(e),{keyboardProps:n}=hm(e),o=ie(r,n),a=Cm(t),s=e.isDisabled?{}:a,i=f.useRef(e.autoFocus);return f.useEffect(()=>{i.current&&t.current&&Fo(t.current),i.current=!1},[t]),{focusableProps:ie({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function Pm(e,t){let r=t==null?void 0:t.isDisabled,[n,o]=f.useState(!1);return kt(()=>{if(e!=null&&e.current&&!r){let a=()=>{if(e.current){let i=Ss(e.current,{tabbable:!0});o(!!i.nextNode())}};a();let s=new MutationObserver(a);return s.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{s.disconnect()}}}),r?!1:n}const qc={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Mm(e={}){let{style:t,isFocusable:r}=e,[n,o]=f.useState(!1),{focusWithinProps:a}=Lo({isDisabled:!r,onFocusWithinChange:i=>o(i)}),s=f.useMemo(()=>n?t:t?{...qc,...t}:qc,[n]);return{visuallyHiddenProps:{...a,style:s}}}function $s(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...a}=e,{visuallyHiddenProps:s}=Mm(e);return f.createElement(r,ie(a,s),t)}function vt(e){return f.forwardRef(e)}var Mn=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,a)=>a in e?{...o,[a]:e[a]}:o,{});return r?[Object.keys(e).filter(a=>!t.includes(a)).reduce((a,s)=>({...a,[s]:e[s]}),{}),n]:[e,n]},Tm=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],Ds=Tm.map(e=>`unit-${e}`),zo=["small","medium","large"],rt=(e,t)=>{var r,n,o;return we(e,{...t,twMerge:(r=t==null?void 0:t.twMerge)!=null?r:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(n=t==null?void 0:t.twMergeConfig)==null?void 0:n.theme,opacity:["disabled"],spacing:["divider","unit",...Ds],borderWidth:zo,borderRadius:zo},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:zo}],"font-size":[{text:["tiny",...zo]}],"bg-image":["bg-stripe-gradient"],"min-w":[{"min-w":["unit",...Ds]}],"min-h":[{"min-h":["unit",...Ds]}]}}})},Tn=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Wo=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],Sm=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],Is=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],Rr={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]},Em={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},$m={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},Dm={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},Im={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},km={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},Am={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},Om={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},K={solid:Em,shadow:$m,bordered:Dm,flat:Im,faded:km,light:Am,ghost:Om},Qc=rt({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),Xc=rt({slots:{base:"inline-flex",tabList:["flex","p-1","h-fit","gap-2","items-center","flex-nowrap","overflow-x-scroll","scrollbar-hide","bg-default-100"],tab:["z-0","w-full","px-3","py-1","flex","group","relative","justify-center","items-center","outline-none","cursor-pointer","transition-opacity","tap-highlight-transparent","data-[disabled=true]:cursor-not-allowed","data-[disabled=true]:opacity-30","data-[hover-unselected=true]:opacity-disabled",...Tn],tabContent:["relative","z-10","text-inherit","whitespace-nowrap","transition-colors","text-default-500","group-data-[selected=true]:text-foreground"],cursor:["absolute","z-0","bg-white"],panel:["py-3","px-1","outline-none",...Tn]},variants:{variant:{solid:{cursor:"inset-0"},light:{tabList:"bg-transparent dark:bg-transparent",cursor:"inset-0"},underlined:{tabList:"bg-transparent dark:bg-transparent",cursor:"h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"},bordered:{tabList:"bg-transparent dark:bg-transparent border-medium border-default-200 shadow-sm",cursor:"inset-0"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{tabList:"rounded-medium",tab:"h-7 text-tiny rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"h-8 text-small rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"h-9 text-medium rounded-medium",cursor:"rounded-medium"}},radius:{none:{tabList:"rounded-none",tab:"rounded-none",cursor:"rounded-none"},sm:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"rounded-medium",cursor:"rounded-medium"},full:{tabList:"rounded-full",tab:"rounded-full",cursor:"rounded-full"}},fullWidth:{true:{base:"w-full",tabList:"w-full"}},isDisabled:{true:{tabList:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{tab:"transition-none",tabContent:"transition-none"}}},defaultVariants:{color:"default",variant:"solid",size:"md",fullWidth:!1,isDisabled:!1,disableAnimation:!1},compoundVariants:[{variant:["solid","bordered","light"],color:"default",class:{cursor:["bg-background","dark:bg-default","shadow-small"],tabContent:"group-data-[selected=true]:text-default-foreground"}},{variant:["solid","bordered","light"],color:"primary",class:{cursor:K.solid.primary,tabContent:"group-data-[selected=true]:text-primary-foreground"}},{variant:["solid","bordered","light"],color:"secondary",class:{cursor:K.solid.secondary,tabContent:"group-data-[selected=true]:text-secondary-foreground"}},{variant:["solid","bordered","light"],color:"success",class:{cursor:K.solid.success,tabContent:"group-data-[selected=true]:text-success-foreground"}},{variant:["solid","bordered","light"],color:"warning",class:{cursor:K.solid.warning,tabContent:"group-data-[selected=true]:text-warning-foreground"}},{variant:["solid","bordered","light"],color:"danger",class:{cursor:K.solid.danger,tabContent:"group-data-[selected=true]:text-danger-foreground"}},{variant:"underlined",color:"default",class:{cursor:"bg-foreground",tabContent:"group-data-[selected=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{cursor:"bg-primary",tabContent:"group-data-[selected=true]:text-primary"}},{variant:"underlined",color:"secondary",class:{cursor:"bg-secondary",tabContent:"group-data-[selected=true]:text-secondary"}},{variant:"underlined",color:"success",class:{cursor:"bg-success",tabContent:"group-data-[selected=true]:text-success"}},{variant:"underlined",color:"warning",class:{cursor:"bg-warning",tabContent:"group-data-[selected=true]:text-warning"}},{variant:"underlined",color:"danger",class:{cursor:"bg-danger",tabContent:"group-data-[selected=true]:text-danger"}},{disableAnimation:!0,variant:"underlined",class:{tab:["after:content-['']","after:absolute","after:bottom-0","after:h-[2px]","after:w-[80%]","after:opacity-0","after:shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","data-[selected=true]:after:opacity-100"]}},{disableAnimation:!0,color:"default",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"}},{disableAnimation:!0,color:"primary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"}},{disableAnimation:!0,color:"secondary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"}},{disableAnimation:!0,color:"success",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"}},{disableAnimation:!0,color:"warning",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"}},{disableAnimation:!0,color:"danger",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"}},{disableAnimation:!0,color:"default",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-foreground"}},{disableAnimation:!0,color:"primary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-primary"}},{disableAnimation:!0,color:"secondary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-secondary"}},{disableAnimation:!0,color:"success",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-success"}},{disableAnimation:!0,color:"warning",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-warning"}},{disableAnimation:!0,color:"danger",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-danger"}}],compoundSlots:[{variant:"underlined",slots:["tab","tabList","cursor"],class:["rounded-none"]}]}),Zc=rt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent",wrapper:["px-1","relative","inline-flex","items-center","justify-start","flex-shrink-0","overflow-hidden","bg-default-200","rounded-full",...Wo],thumb:["z-10","flex","items-center","justify-center","bg-white","shadow-small","rounded-full","origin-right"],startContent:"z-0 absolute left-1.5 text-current",endContent:"z-0 absolute right-1.5 text-default-600",thumbIcon:"text-black",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:["group-data-[selected=true]:bg-default-400","group-data-[selected=true]:text-default-foreground"]},primary:{wrapper:["group-data-[selected=true]:bg-primary","group-data-[selected=true]:text-primary-foreground"]},secondary:{wrapper:["group-data-[selected=true]:bg-secondary","group-data-[selected=true]:text-secondary-foreground"]},success:{wrapper:["group-data-[selected=true]:bg-success","group-data-[selected=true]:text-success-foreground"]},warning:{wrapper:["group-data-[selected=true]:bg-warning","group-data-[selected=true]:text-warning-foreground"]},danger:{wrapper:["group-data-[selected=true]:bg-danger","data-[selected=true]:text-danger-foreground"]}},size:{sm:{wrapper:"w-10 h-6 mr-2",thumb:["w-4 h-4 text-tiny","group-data-[selected=true]:ml-4"],endContent:"text-tiny",startContent:"text-tiny",label:"text-small"},md:{wrapper:"w-12 h-7 mr-2",thumb:["w-5 h-5 text-small","group-data-[selected=true]:ml-5"],endContent:"text-small",startContent:"text-small",label:"text-medium"},lg:{wrapper:"w-14 h-8 mr-2",thumb:["w-6 h-6 text-medium","group-data-[selected=true]:ml-6"],endContent:"text-medium",startContent:"text-medium",label:"text-large"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{wrapper:"transition-none",thumb:"transition-none"},false:{wrapper:"transition-background",thumb:"transition-all",startContent:["opacity-0","scale-50","transition-transform-opacity","group-data-[selected=true]:scale-100","group-data-[selected=true]:opacity-100"],endContent:["opacity-100","transition-transform-opacity","group-data-[selected=true]:translate-x-3","group-data-[selected=true]:opacity-0"]}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,disableAnimation:!1},compoundVariants:[{disableAnimation:!1,size:"sm",class:{thumb:["group-data-[pressed=true]:w-5","group-data-[selected]:group-data-[pressed]:ml-3"]}},{disableAnimation:!1,size:"md",class:{thumb:["group-data-[pressed=true]:w-6","group-data-[selected]:group-data-[pressed]:ml-4"]}},{disableAnimation:!1,size:"lg",class:{thumb:["group-data-[pressed=true]:w-7","group-data-[selected]:group-data-[pressed]:ml-5"]}}]}),Nm=rt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","border-solid","border-medium","box-border","border-default","rounded-full","group-data-[hover-unselected=true]:bg-default-100",...Wo],labelWrapper:"flex flex-col ml-1",control:["z-10","w-2","h-2","opacity-0","scale-0","origin-center","rounded-full","group-data-[selected=true]:opacity-100","group-data-[selected=true]:scale-100"],label:"relative text-foreground select-none",description:"relative text-foreground-400"},variants:{color:{default:{control:"bg-default-500 text-default-foreground",wrapper:"group-data-[selected=true]:border-default-500"},primary:{control:"bg-primary text-primary-foreground",wrapper:"group-data-[selected=true]:border-primary"},secondary:{control:"bg-secondary text-secondary-foreground",wrapper:"group-data-[selected=true]:border-secondary"},success:{control:"bg-success text-success-foreground",wrapper:"group-data-[selected=true]:border-success"},warning:{control:"bg-warning text-warning-foreground",wrapper:"group-data-[selected=true]:border-warning"},danger:{control:"bg-danger text-danger-foreground",wrapper:"group-data-[selected=true]:border-danger"}},size:{sm:{wrapper:"w-4 h-4",control:"w-1.5 h-1.5",labelWrapper:"ml-1",label:"text-small",description:"text-tiny"},md:{wrapper:"w-5 h-5",control:"w-2 h-2",labelWrapper:"ml-2",label:"text-medium",description:"text-small"},lg:{wrapper:"w-6 h-6",control:"w-2.5 h-2.5",labelWrapper:"ml-2",label:"text-large",description:"text-medium"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{control:"bg-danger text-danger-foreground",wrapper:"border-danger group-data-[selected=true]:border-danger",label:"text-danger",description:"text-danger-300"}},disableAnimation:{true:{},false:{wrapper:["group-data-[pressed=true]:scale-95","transition-transform-colors","motion-reduce:transition-none"],control:"transition-transform-opacity motion-reduce:transition-none",label:"transition-colors motion-reduce:transition-none",description:"transition-colors motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,isInvalid:!1,disableAnimation:!1}}),jm=rt({slots:{base:"relative flex flex-col gap-2",label:"relative text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1,disableAnimation:!1}}),Jc=rt({slots:{base:"group flex flex-col",label:["absolute","z-10","pointer-events-none","origin-top-left","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5"],clearButton:["p-2","-m-2","z-10","hidden","absolute","right-3","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...Tn],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-unit-8 min-h-unit-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-unit-10 min-h-unit-10 rounded-medium",input:"text-small",clearButton:"text-large"},lg:{inputWrapper:"h-unit-12 min-h-unit-12 rounded-large",input:"text-medium",clearButton:"text-large"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pr-2"},inside:{label:"text-tiny cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"}},isClearable:{true:{input:"peer pr-6",clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity]"],clearButton:["transition-opacity","motion-reduce:transition-none"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,isMultiline:!1,disableAnimation:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-50","data-[hover=true]:bg-primary-100","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-50","text-secondary","data-[hover=true]:bg-secondary-100","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-50","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-100","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-50","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-100","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-50","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...Wo]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-small",inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:["outside","outside-left"],class:{input:"h-full"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:left-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["left-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["left-3","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["left-3","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}}]}),Lm=rt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...Wo],icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 mr-2","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 mr-2","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 mr-2","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1,disableAnimation:!1}});rt({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1,disableAnimation:!1}});var eu=rt({slots:{base:["relative","max-w-fit","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"flex-shrink-0",closeButton:["z-10","appearance-none","outline-none","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...Sm,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:K.solid.default}},{variant:"solid",color:"primary",class:{base:K.solid.primary}},{variant:"solid",color:"secondary",class:{base:K.solid.secondary}},{variant:"solid",color:"success",class:{base:K.solid.success}},{variant:"solid",color:"warning",class:{base:K.solid.warning}},{variant:"solid",color:"danger",class:{base:K.solid.danger}},{variant:"shadow",color:"default",class:{base:K.shadow.default}},{variant:"shadow",color:"primary",class:{base:K.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:K.shadow.secondary}},{variant:"shadow",color:"success",class:{base:K.shadow.success}},{variant:"shadow",color:"warning",class:{base:K.shadow.warning}},{variant:"shadow",color:"danger",class:{base:K.shadow.danger}},{variant:"bordered",color:"default",class:{base:K.bordered.default}},{variant:"bordered",color:"primary",class:{base:K.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:K.bordered.secondary}},{variant:"bordered",color:"success",class:{base:K.bordered.success}},{variant:"bordered",color:"warning",class:{base:K.bordered.warning}},{variant:"bordered",color:"danger",class:{base:K.bordered.danger}},{variant:"flat",color:"default",class:{base:K.flat.default}},{variant:"flat",color:"primary",class:{base:K.flat.primary}},{variant:"flat",color:"secondary",class:{base:K.flat.secondary}},{variant:"flat",color:"success",class:{base:K.flat.success}},{variant:"flat",color:"warning",class:{base:K.flat.warning}},{variant:"flat",color:"danger",class:{base:K.flat.danger}},{variant:"faded",color:"default",class:{base:K.faded.default}},{variant:"faded",color:"primary",class:{base:K.faded.primary}},{variant:"faded",color:"secondary",class:{base:K.faded.secondary}},{variant:"faded",color:"success",class:{base:K.faded.success}},{variant:"faded",color:"warning",class:{base:K.faded.warning}},{variant:"faded",color:"danger",class:{base:K.faded.danger}},{variant:"light",color:"default",class:{base:K.light.default}},{variant:"light",color:"primary",class:{base:K.light.primary}},{variant:"light",color:"secondary",class:{base:K.light.secondary}},{variant:"light",color:"success",class:{base:K.light.success}},{variant:"light",color:"warning",class:{base:K.light.warning}},{variant:"light",color:"danger",class:{base:K.light.danger}},{isOneChar:!0,size:"sm",class:{base:"w-5 h-5 min-w-unit-5 min-h-5"}},{isOneChar:!0,size:"md",class:{base:"w-6 h-6 min-w-unit-6 min-h-6"}},{isOneChar:!0,size:"lg",class:{base:"w-7 h-7 min-w-unit-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,class:{base:"w-auto"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),_m=rt({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...Tn],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Is,"flex","items-center","justify-center"],name:[...Is,"font-normal","text-center","text-inherit"],icon:[...Is,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:K.solid.default},primary:{base:K.solid.primary},secondary:{base:K.solid.secondary},success:{base:K.solid.success},warning:{base:K.solid.warning},danger:{base:K.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]});rt({base:"flex items-center justify-center h-auto w-max-content",variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}});var Fm=rt({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent",...Tn],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 rounded-small",md:"px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium",lg:"px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-unit-0 !gap-unit-0",false:"[&>svg]:max-w-[theme(spacing.unit-8)]"},disableAnimation:{true:"!transition-none",false:"data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1,disableAnimation:!1},compoundVariants:[{variant:"solid",color:"default",class:K.solid.default},{variant:"solid",color:"primary",class:K.solid.primary},{variant:"solid",color:"secondary",class:K.solid.secondary},{variant:"solid",color:"success",class:K.solid.success},{variant:"solid",color:"warning",class:K.solid.warning},{variant:"solid",color:"danger",class:K.solid.danger},{variant:"shadow",color:"default",class:K.shadow.default},{variant:"shadow",color:"primary",class:K.shadow.primary},{variant:"shadow",color:"secondary",class:K.shadow.secondary},{variant:"shadow",color:"success",class:K.shadow.success},{variant:"shadow",color:"warning",class:K.shadow.warning},{variant:"shadow",color:"danger",class:K.shadow.danger},{variant:"bordered",color:"default",class:K.bordered.default},{variant:"bordered",color:"primary",class:K.bordered.primary},{variant:"bordered",color:"secondary",class:K.bordered.secondary},{variant:"bordered",color:"success",class:K.bordered.success},{variant:"bordered",color:"warning",class:K.bordered.warning},{variant:"bordered",color:"danger",class:K.bordered.danger},{variant:"flat",color:"default",class:K.flat.default},{variant:"flat",color:"primary",class:K.flat.primary},{variant:"flat",color:"secondary",class:K.flat.secondary},{variant:"flat",color:"success",class:K.flat.success},{variant:"flat",color:"warning",class:K.flat.warning},{variant:"flat",color:"danger",class:K.flat.danger},{variant:"faded",color:"default",class:K.faded.default},{variant:"faded",color:"primary",class:K.faded.primary},{variant:"faded",color:"secondary",class:K.faded.secondary},{variant:"faded",color:"success",class:K.faded.success},{variant:"faded",color:"warning",class:K.faded.warning},{variant:"faded",color:"danger",class:K.faded.danger},{variant:"light",color:"default",class:[K.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[K.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[K.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[K.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[K.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[K.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:K.ghost.default},{variant:"ghost",color:"primary",class:K.ghost.primary},{variant:"ghost",color:"secondary",class:K.ghost.secondary},{variant:"ghost",color:"success",class:K.ghost.success},{variant:"ghost",color:"warning",class:K.ghost.warning},{variant:"ghost",color:"danger",class:K.ghost.danger},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:Rr.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:Rr.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:Rr.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:Rr.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:Rr.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:Rr.danger},{isIconOnly:!0,size:"sm",class:"min-w-unit-8 w-unit-8 h-unit-8"},{isIconOnly:!0,size:"md",class:"min-w-unit-10 w-unit-10 h-unit-10"},{isIconOnly:!0,size:"lg",class:"min-w-unit-12 w-unit-12 h-unit-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});rt({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var Vm=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3),ks=(...e)=>{let t=" ";for(const r of e)if(typeof r=="string"&&r.length>0){t=r;break}return t};function tu(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=tu(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function me(...e){for(var t=0,r,n,o="";t<e.length;)(r=e[t++])&&(n=tu(r))&&(o&&(o+=" "),o+=n);return o}var ru={};function Bo(e,t,...r){var n;const a=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!ru[a]&&(ru[a]=!0,((n=process==null?void 0:process.env)==null?void 0:n.NODE_ENV)!=="production"))return console.warn(a,r)}function zm(e){return`${e}-${Math.floor(Math.random()*1e6)}`}var nu=process.env.NODE_ENV!=="production";process.env.NODE_ENV;var Q=e=>e?"true":void 0;function Ro(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=G.createContext(void 0);o.displayName=n;function a(){var s;const i=G.useContext(o);if(!i&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,a),l}return i}return[o.Provider,a,o]}function Wm(e){return{UNSAFE_getDOMNode(){return e.current}}}function Bm(e,t=e){return{...Wm(e),focus(){t.current&&t.current.focus()}}}function nt(e){const t=f.useRef(null);return f.useImperativeHandle(e,()=>t.current),t}function ou(e,t){const r=f.useRef(null);return f.useImperativeHandle(e,()=>Bm(r,t)),r}var Rm=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),Km=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),Um=/^(data-.*)$/,Hm=/^(aria-.*)$/,As=/^(on[A-Z].*)$/;function Sn(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:a,omitEventNames:s}=t,i={};if(!n)return e;for(const l in e)a!=null&&a.has(l)||s!=null&&s.has(l)&&As.test(l)||As.test(l)&&!Km.has(l)||(Object.prototype.hasOwnProperty.call(e,l)&&(Rm.has(l)||r&&Hm.test(l)||o!=null&&o.has(l)||Um.test(l))||As.test(l))&&(i[l]=e[l]);return i}function Os(e){return A1()?e.altKey:e.ctrlKey}function Kr(e){return qt()?e.metaKey:e.ctrlKey}const Ym=1e3;function Gm(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=f.useRef({search:"",timeout:null}).current,a=s=>{let i=qm(s.key);if(!i||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))return;i===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=i;let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},Ym)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function qm(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Qm(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:s=!1,disallowSelectAll:i=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:u,allowsTabNavigation:d=!1,isVirtualized:p,scrollRef:h=n,linkBehavior:g="action"}=e,{direction:b}=hs(),y=xc(),P=I=>{if(I.altKey&&I.key==="Tab"&&I.preventDefault(),!n.current.contains(I.target))return;const T=(R,W)=>{if(R!=null){if(t.isLink(R)&&g==="selection"&&l&&!Os(I)){hn.flushSync(()=>{t.setFocusedKey(R,W)});let ee=h.current.querySelector(`[data-key="${CSS.escape(R.toString())}"]`);y.open(ee,I);return}if(t.setFocusedKey(R,W),t.isLink(R)&&g==="override")return;I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(R):l&&!Os(I)&&t.replaceSelection(R)}};switch(I.key){case"ArrowDown":if(r.getKeyBelow){var k,w;I.preventDefault();let R=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):(k=r.getFirstKey)===null||k===void 0?void 0:k.call(r);R==null&&a&&(R=(w=r.getFirstKey)===null||w===void 0?void 0:w.call(r,t.focusedKey)),T(R)}break;case"ArrowUp":if(r.getKeyAbove){var M,O;I.preventDefault();let R=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):(M=r.getLastKey)===null||M===void 0?void 0:M.call(r);R==null&&a&&(R=(O=r.getLastKey)===null||O===void 0?void 0:O.call(r,t.focusedKey)),T(R)}break;case"ArrowLeft":if(r.getKeyLeftOf){var F,E;I.preventDefault();let R=r.getKeyLeftOf(t.focusedKey);R==null&&a&&(R=b==="rtl"?(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r,t.focusedKey):(E=r.getLastKey)===null||E===void 0?void 0:E.call(r,t.focusedKey)),T(R,b==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var V,H;I.preventDefault();let R=r.getKeyRightOf(t.focusedKey);R==null&&a&&(R=b==="rtl"?(V=r.getLastKey)===null||V===void 0?void 0:V.call(r,t.focusedKey):(H=r.getFirstKey)===null||H===void 0?void 0:H.call(r,t.focusedKey)),T(R,b==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){I.preventDefault();let R=r.getFirstKey(t.focusedKey,Kr(I));t.setFocusedKey(R),Kr(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(R):l&&t.replaceSelection(R)}break;case"End":if(r.getLastKey){I.preventDefault();let R=r.getLastKey(t.focusedKey,Kr(I));t.setFocusedKey(R),Kr(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(R):l&&t.replaceSelection(R)}break;case"PageDown":if(r.getKeyPageBelow){I.preventDefault();let R=r.getKeyPageBelow(t.focusedKey);T(R)}break;case"PageUp":if(r.getKeyPageAbove){I.preventDefault();let R=r.getKeyPageAbove(t.focusedKey);T(R)}break;case"a":Kr(I)&&t.selectionMode==="multiple"&&i!==!0&&(I.preventDefault(),t.selectAll());break;case"Escape":I.preventDefault(),s||t.clearSelection();break;case"Tab":if(!d){if(I.shiftKey)n.current.focus();else{let R=Ss(n.current,{tabbable:!0}),W,ee;do ee=R.lastChild(),ee&&(W=ee);while(ee);W&&!W.contains(document.activeElement)&&tt(W)}break}}},x=f.useRef({top:0,left:0});W1(h,"scroll",p?null:()=>{x.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let C=I=>{if(t.isFocused){I.currentTarget.contains(I.target)||t.setFocused(!1);return}if(I.currentTarget.contains(I.target)){if(t.setFocused(!0),t.focusedKey==null){let w=O=>{O!=null&&(t.setFocusedKey(O),l&&t.replaceSelection(O))},M=I.relatedTarget;var T,k;M&&I.currentTarget.compareDocumentPosition(M)&Node.DOCUMENT_POSITION_FOLLOWING?w((T=t.lastSelectedKey)!==null&&T!==void 0?T:r.getLastKey()):w((k=t.firstSelectedKey)!==null&&k!==void 0?k:r.getFirstKey())}else p||(h.current.scrollTop=x.current.top,h.current.scrollLeft=x.current.left);if(!p&&t.focusedKey!=null){let w=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);w&&(w.contains(document.activeElement)||tt(w),Cs()==="keyboard"&&Sc(w,{containingElement:n.current}))}}},S=I=>{I.currentTarget.contains(I.relatedTarget)||t.setFocused(!1)};const $=f.useRef(o);f.useEffect(()=>{if($.current){let I=null;o==="first"&&(I=r.getFirstKey()),o==="last"&&(I=r.getLastKey());let T=t.selectedKeys;if(T.size){for(let k of T)if(t.canSelectItem(k)){I=k;break}}t.setFocused(!0),t.setFocusedKey(I),I==null&&!u&&Fo(n.current)}},[]);let N=f.useRef(t.focusedKey);f.useEffect(()=>{let I=Cs();if(t.isFocused&&t.focusedKey!=null&&(h!=null&&h.current)){let T=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);T&&(I==="keyboard"||$.current)&&(p||Mc(h.current,T),Sc(T,{containingElement:n.current}))}t.isFocused&&t.focusedKey==null&&N.current!=null&&Fo(n.current),N.current=t.focusedKey,$.current=!1},[p,h,t.focusedKey,t.isFocused,n]);let j={onKeyDown:P,onFocus:C,onBlur:S,onMouseDown(I){h.current===I.target&&I.preventDefault()}},{typeSelectProps:m}=Gm({keyboardDelegate:r,selectionManager:t});c||(j=ie(m,j));let D;return u||(D=t.focusedKey==null?0:-1),{collectionProps:{...j,tabIndex:D}}}function Xm(e){let{selectionManager:t,key:r,ref:n,shouldSelectOnPressUp:o,shouldUseVirtualFocus:a,focus:s,isDisabled:i,onAction:l,allowsDifferentPressOrigin:c,linkBehavior:u="action"}=e,d=xc(),p=E=>{if(E.pointerType==="keyboard"&&Os(E))t.toggleSelection(r);else{if(t.selectionMode==="none")return;if(t.isLink(r)){if(u==="selection"){d.open(n.current,E),t.setSelectedKeys(t.selectedKeys);return}else if(u==="override"||u==="none")return}t.selectionMode==="single"?t.isSelected(r)&&!t.disallowEmptySelection?t.toggleSelection(r):t.replaceSelection(r):E&&E.shiftKey?t.extendSelection(r):t.selectionBehavior==="toggle"||E&&(Kr(E)||E.pointerType==="touch"||E.pointerType==="virtual")?t.toggleSelection(r):t.replaceSelection(r)}};f.useEffect(()=>{r===t.focusedKey&&t.isFocused&&!a&&(s?s():document.activeElement!==n.current&&Fo(n.current))},[n,r,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),i=i||t.isDisabled(r);let h={};!a&&!i?h={tabIndex:r===t.focusedKey?0:-1,onFocus(E){E.target===n.current&&t.setFocusedKey(r)}}:i&&(h.onMouseDown=E=>{E.preventDefault()});let g=t.isLink(r)&&u==="override",b=t.isLink(r)&&u!=="selection"&&u!=="none",y=!i&&t.canSelectItem(r)&&!g,P=(l||b)&&!i,x=P&&(t.selectionBehavior==="replace"?!y:!y||t.isEmpty),C=P&&y&&t.selectionBehavior==="replace",S=x||C,$=f.useRef(null),N=S&&y,j=f.useRef(!1),m=f.useRef(!1),D=E=>{l&&l(),b&&d.open(n.current,E)},I={};o?(I.onPressStart=E=>{$.current=E.pointerType,j.current=N,E.pointerType==="keyboard"&&(!S||su())&&p(E)},c?(I.onPressUp=x?null:E=>{E.pointerType!=="keyboard"&&y&&p(E)},I.onPress=x?D:null):I.onPress=E=>{if(x||C&&E.pointerType!=="mouse"){if(E.pointerType==="keyboard"&&!au())return;D(E)}else E.pointerType!=="keyboard"&&y&&p(E)}):(I.onPressStart=E=>{$.current=E.pointerType,j.current=N,m.current=x,y&&(E.pointerType==="mouse"&&!x||E.pointerType==="keyboard"&&(!P||su()))&&p(E)},I.onPress=E=>{(E.pointerType==="touch"||E.pointerType==="pen"||E.pointerType==="virtual"||E.pointerType==="keyboard"&&S&&au()||E.pointerType==="mouse"&&m.current)&&(S?D(E):y&&p(E))}),h["data-key"]=r,I.preventFocusOnPress=a;let{pressProps:T,isPressed:k}=fr(I),w=C?E=>{$.current==="mouse"&&(E.stopPropagation(),E.preventDefault(),D(E))}:void 0,{longPressProps:M}=gm({isDisabled:!N,onLongPress(E){E.pointerType==="touch"&&(p(E),t.setSelectionBehavior("toggle"))}}),O=E=>{$.current==="touch"&&j.current&&E.preventDefault()},F=t.isLink(r)?E=>{At.isOpening||E.preventDefault()}:void 0;return{itemProps:ie(h,y||x?T:{},N?M:{},{onDoubleClick:w,onDragStartCapture:O,onClick:F}),isPressed:k,isSelected:t.isSelected(r),isFocused:t.isFocused&&t.focusedKey===r,isDisabled:i,allowsSelection:y,hasAction:S}}function au(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function su(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var iu=f.createContext(null);iu.displayName="PressResponderContext";var Zm=Object.defineProperty,Jm=(e,t,r)=>t in e?Zm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t,r)=>(Jm(e,typeof t!="symbol"?t+"":t,r),r),lu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},eg=(e,t,r)=>(lu(e,t,"read from private field"),r?r.call(e):t.get(e)),tg=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},rg=(e,t,r,n)=>(lu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ko,Uo=class{constructor(e,t,r){gr(this,"type"),gr(this,"pointerType"),gr(this,"target"),gr(this,"shiftKey"),gr(this,"ctrlKey"),gr(this,"metaKey"),gr(this,"altKey"),tg(this,Ko,!0),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}continuePropagation(){rg(this,Ko,!1)}get shouldStopPropagation(){return eg(this,Ko)}};Ko=new WeakMap;var vr=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document},Ns=e=>{var t,r;return(r=(t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)!=null?r:window},Ur="default",js="",Ho=new WeakMap;function cu(e){if(wn()){if(Ur==="default"){const t=vr(e);js=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ur="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Ho.set(e,e.style.userSelect),e.style.userSelect="none")}function Yo(e){if(wn()){if(Ur!=="disabled")return;Ur="restoring",setTimeout(()=>{is(()=>{if(Ur==="restoring"){const t=vr(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=js||""),js="",Ur="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ho.has(e)){let t=Ho.get(e);e.style.userSelect==="none"&&t&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ho.delete(e)}}function ng(e){let t=f.useContext(iu);if(t){let{register:r,...n}=t;e=ie(n,e),r()}return us(t,e.ref),e}var uu=Symbol("linkClicked");function En(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,isDisabled:s,isPressed:i,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:d,...p}=ng(e),[h,g]=f.useState(!1),b=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:P}=ls(),x=We((m,D)=>{let I=b.current;if(s||I.didFirePressStart)return;let T=!0;if(I.isTriggeringEvent=!0,n){let k=new Uo("pressstart",D,m);n(k),T=k.shouldStopPropagation}return r&&r(!0),I.isTriggeringEvent=!1,I.didFirePressStart=!0,g(!0),T}),C=We((m,D,I=!0)=>{let T=b.current;if(!T.didFirePressStart)return;T.ignoreClickAfterPress=!0,T.didFirePressStart=!1,T.isTriggeringEvent=!0;let k=!0;if(o){let w=new Uo("pressend",D,m);o(w),k=w.shouldStopPropagation}if(r&&r(!1),g(!1),t&&I&&!s){let w=new Uo("press",D,m);t(w),k&&(k=w.shouldStopPropagation)}return T.isTriggeringEvent=!1,k}),S=We((m,D)=>{let I=b.current;if(!s){if(a){I.isTriggeringEvent=!0;let T=new Uo("pressup",D,m);return a(T),I.isTriggeringEvent=!1,T.shouldStopPropagation}return!0}}),$=We(m=>{let D=b.current;D.isPressed&&(D.isOverTarget&&D.target&&C(Nt(D.target,m),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,P(),!u&&D.target&&Yo(D.target))}),N=We(m=>{c&&$(m)}),j=f.useMemo(()=>{let m=b.current,D={onKeyDown(T){var k;if(_s(T.nativeEvent,T.currentTarget)&&T.currentTarget.contains(T.target)){fu(T.target,T.key)&&T.preventDefault();let w=!0;!m.isPressed&&!T.repeat&&(m.target=T.currentTarget,m.isPressed=!0,w=x(T,"keyboard"),y(vr(T.currentTarget),"keyup",I,!1)),w&&T.stopPropagation(),T.metaKey&&qt()&&((k=m.metaKeyEvents)==null||k.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(m.metaKeyEvents=new Map)},onKeyUp(T){m.target&&_s(T.nativeEvent,T.currentTarget)&&!T.repeat&&T.currentTarget.contains(T.target)&&S(Nt(m.target,T),"keyboard")},onClick(T){if(!(T&&!T.currentTarget.contains(T.target))&&T&&T.button===0&&!m.isTriggeringEvent&&!At.isOpening){let k=!0;if(s&&T.preventDefault(),!m.ignoreClickAfterPress&&!m.ignoreEmulatedMouseEvents&&!m.isPressed&&(m.pointerType==="virtual"||Cn(T.nativeEvent))){!s&&!l&&tt(T.currentTarget);let w=x(T,"virtual"),M=S(T,"virtual"),O=C(T,"virtual");k=w&&M&&O}m.ignoreEmulatedMouseEvents=!1,m.ignoreClickAfterPress=!1,k&&T.stopPropagation()}}},I=T=>{var k,w;if(m.isPressed&&m.target&&_s(T,m.target)){fu(T.target,T.key)&&T.preventDefault();let M=T.target,O=C(Nt(m.target,T),"keyboard",m.target.contains(M));P(),O&&T.stopPropagation(),T.key!=="Enter"&&Ls(m.target)&&m.target.contains(M)&&!T[uu]&&(T[uu]=!0,At(m.target,T,!1)),m.isPressed=!1,(k=m.metaKeyEvents)==null||k.delete(T.key)}else if(T.key==="Meta"&&((w=m.metaKeyEvents)!=null&&w.size)){let M=m.metaKeyEvents;m.metaKeyEvents=null;for(let O of M.values())m.target&&m.target.dispatchEvent(new KeyboardEvent("keyup",O))}};if(typeof PointerEvent<"u"){D.onPointerDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(Ec(M.nativeEvent)){m.pointerType="virtual";return}Fs(M.currentTarget)&&M.preventDefault(),m.pointerType=M.pointerType;let O=!0;m.isPressed||(m.isPressed=!0,m.isOverTarget=!0,m.activePointerId=M.pointerId,m.target=M.currentTarget,!s&&!l&&tt(M.currentTarget),u||cu(m.target),O=x(M,m.pointerType),y(vr(M.currentTarget),"pointermove",T,!1),y(vr(M.currentTarget),"pointerup",k,!1),y(vr(M.currentTarget),"pointercancel",w,!1)),O&&M.stopPropagation()},D.onMouseDown=M=>{M.currentTarget.contains(M.target)&&M.button===0&&(Fs(M.currentTarget)&&M.preventDefault(),M.stopPropagation())},D.onPointerUp=M=>{!M.currentTarget.contains(M.target)||m.pointerType==="virtual"||M.button===0&&Hr(M,M.currentTarget)&&S(M,m.pointerType||M.pointerType)};let T=M=>{M.pointerId!==m.activePointerId||!m.target||(Hr(M,m.target)?m.isOverTarget||(m.isOverTarget=!0,x(Nt(m.target,M),m.pointerType)):m.isOverTarget&&(m.isOverTarget=!1,C(Nt(m.target,M),m.pointerType,!1),N(M)))},k=M=>{M.pointerId===m.activePointerId&&m.isPressed&&M.button===0&&m.target&&((Hr(M,m.target)||m.isOverTarget)&&C(Nt(m.target,M),m.pointerType),m.isPressed=!1,m.isOverTarget=!1,m.activePointerId=null,m.pointerType=null,P(),u||Yo(m.target))},w=M=>{$(M)};D.onDragStart=M=>{M.currentTarget.contains(M.target)&&$(M)}}else{D.onMouseDown=w=>{if(w.button!==0||!w.currentTarget.contains(w.target))return;if(Fs(w.currentTarget)&&w.preventDefault(),m.ignoreEmulatedMouseEvents){w.stopPropagation();return}m.isPressed=!0,m.isOverTarget=!0,m.target=w.currentTarget,m.pointerType=Cn(w.nativeEvent)?"virtual":"mouse",!s&&!l&&tt(w.currentTarget),x(w,m.pointerType)&&w.stopPropagation(),y(vr(w.currentTarget),"mouseup",T,!1)},D.onMouseEnter=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&(m.isOverTarget=!0,M=x(w,m.pointerType)),M&&w.stopPropagation()},D.onMouseLeave=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&(m.isOverTarget=!1,M=C(w,m.pointerType,!1),N(w)),M&&w.stopPropagation()},D.onMouseUp=w=>{w.currentTarget.contains(w.target)&&!m.ignoreEmulatedMouseEvents&&w.button===0&&S(w,m.pointerType||"mouse")};let T=w=>{if(w.button===0){if(m.isPressed=!1,P(),m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.target&&(Hr(w,m.target)?C(Nt(m.target,w),m.pointerType):m.isOverTarget&&C(Nt(m.target,w),m.pointerType,!1),m.isOverTarget=!1)}};D.onTouchStart=w=>{if(!w.currentTarget.contains(w.target))return;let M=og(w.nativeEvent);if(!M)return;m.activePointerId=M.identifier,m.ignoreEmulatedMouseEvents=!0,m.isOverTarget=!0,m.isPressed=!0,m.target=w.currentTarget,m.pointerType="touch",!s&&!l&&tt(w.currentTarget),u||cu(m.target),x(w,m.pointerType)&&w.stopPropagation(),y(Ns(w.currentTarget),"scroll",k,!0)},D.onTouchMove=w=>{if(!w.currentTarget.contains(w.target))return;if(!m.isPressed){w.stopPropagation();return}let M=du(w.nativeEvent,m.activePointerId),O=!0;M&&Hr(M,w.currentTarget)?m.isOverTarget||(m.isOverTarget=!0,O=x(w,m.pointerType)):m.isOverTarget&&(m.isOverTarget=!1,O=C(w,m.pointerType,!1),N(w)),O&&w.stopPropagation()},D.onTouchEnd=w=>{if(!w.currentTarget.contains(w.target))return;if(!m.isPressed){w.stopPropagation();return}let M=du(w.nativeEvent,m.activePointerId),O=!0;M&&Hr(M,w.currentTarget)?(S(w,m.pointerType),O=C(w,m.pointerType)):m.isOverTarget&&(O=C(w,m.pointerType,!1)),O&&w.stopPropagation(),m.isPressed=!1,m.activePointerId=null,m.isOverTarget=!1,m.ignoreEmulatedMouseEvents=!0,!u&&m.target&&Yo(m.target),P()},D.onTouchCancel=w=>{w.currentTarget.contains(w.target)&&(w.stopPropagation(),m.isPressed&&$(w))};let k=w=>{m.isPressed&&w.target.contains(m.target)&&$({currentTarget:m.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};D.onDragStart=w=>{w.currentTarget.contains(w.target)&&$(w)}}return D},[y,s,l,P,u,$,N,C,x,S]);return f.useEffect(()=>()=>{!u&&b.current.target&&Yo(b.current.target)},[u]),{isPressed:i||h,pressProps:ie(p,j)}}function Ls(e){return e.tagName==="A"&&e.hasAttribute("href")}function _s(e,t){const{key:r,code:n}=e,o=t,a=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Ns(o).HTMLInputElement&&!pu(o,r)||o instanceof Ns(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&Ls(o))&&r!=="Enter")}function og(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function du(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Nt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function ag(e){let t=e.width?e.width/2:e.radiusX||0,r=e.height?e.height/2:e.radiusY||0;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function sg(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Hr(e,t){let r=t.getBoundingClientRect(),n=ag(e);return sg(r,n)}function Fs(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function fu(e,t){return e instanceof HTMLInputElement?!pu(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ls(e)}var ig=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function pu(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":ig.has(e.type)}var lg=e=>L.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:L.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})});const hu=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Go=f.createContext({}),qo=f.createContext(null),Qo=typeof document<"u",Vs=Qo?f.useLayoutEffect:f.useEffect,mu=f.createContext({strict:!1}),zs=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),gu="data-"+zs("framerAppearId");function cg(e,t,r,n){const{visualElement:o}=f.useContext(Go),a=f.useContext(mu),s=f.useContext(qo),i=f.useContext(hu).reducedMotion,l=f.useRef();n=n||a.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:i}));const c=l.current;f.useInsertionEffect(()=>{c&&c.update(r,s)});const u=f.useRef(!!(r[gu]&&!window.HandoffComplete));return Vs(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())}),f.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function Yr(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ug(e,t,r){return f.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Yr(r)&&(r.current=n))},[t])}function $n(e){return typeof e=="string"||Array.isArray(e)}function Xo(e){return typeof e=="object"&&typeof e.start=="function"}const Ws=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Bs=["initial",...Ws];function Zo(e){return Xo(e.animate)||Bs.some(t=>$n(e[t]))}function vu(e){return!!(Zo(e)||e.variants)}function dg(e,t){if(Zo(e)){const{initial:r,animate:n}=e;return{initial:r===!1||$n(r)?r:void 0,animate:$n(n)?n:void 0}}return e.inherit!==!1?t:{}}function fg(e){const{initial:t,animate:r}=dg(e,f.useContext(Go));return f.useMemo(()=>({initial:t,animate:r}),[bu(t),bu(r)])}function bu(e){return Array.isArray(e)?e.join(" "):e}const yu={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"]},Dn={};for(const e in yu)Dn[e]={isEnabled:t=>yu[e].some(r=>!!t[r])};function pg(e){for(const t in e)Dn[t]={...Dn[t],...e[t]}}const In=f.createContext({}),xu=f.createContext({}),hg=Symbol.for("motionComponentSymbol");function mg({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&pg(e);function a(i,l){let c;const u={...f.useContext(hu),...i,layoutId:gg(i)},{isStatic:d}=u,p=fg(i),h=n(i,d);if(!d&&Qo){p.visualElement=cg(o,h,u,t);const g=f.useContext(xu),b=f.useContext(mu).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,b,e,g))}return G.createElement(Go.Provider,{value:p},c&&p.visualElement?G.createElement(c,{visualElement:p.visualElement,...u}):null,r(o,i,ug(h,p.visualElement,l),h,d,p.visualElement))}const s=f.forwardRef(a);return s[hg]=o,s}function gg({layoutId:e}){const t=f.useContext(In).id;return t&&e!==void 0?t+"-"+e:e}function vg(e){function t(n,o={}){return mg(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const bg=["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 Rs(e){return typeof e!="string"||e.includes("-")?!1:!!(bg.indexOf(e)>-1||/[A-Z]/.test(e))}const Jo={};function yg(e){Object.assign(Jo,e)}const kn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],br=new Set(kn);function wu(e,{layout:t,layoutId:r}){return br.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Jo[e]||e==="opacity")}const Xe=e=>!!(e&&e.getVelocity),xg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wg=kn.length;function Cg(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let a="";for(let s=0;s<wg;s++){const i=kn[s];if(e[i]!==void 0){const l=xg[i]||i;a+=`${l}(${e[i]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,n?"":a):r&&n&&(a="none"),a}const Cu=e=>t=>typeof t=="string"&&t.startsWith(e),Pu=Cu("--"),Ks=Cu("var(--"),Pg=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Mg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Qt=(e,t,r)=>Math.min(Math.max(r,e),t),yr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},An={...yr,transform:e=>Qt(0,1,e)},ea={...yr,default:1},On=e=>Math.round(e*1e5)/1e5,ta=/(-)?([\d]*\.?[\d])+/g,Mu=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Tg=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Nn(e){return typeof e=="string"}const jn=e=>({test:t=>Nn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xt=jn("deg"),Tt=jn("%"),oe=jn("px"),Sg=jn("vh"),Eg=jn("vw"),Tu={...Tt,parse:e=>Tt.parse(e)/100,transform:e=>Tt.transform(e*100)},Su={...yr,transform:Math.round},Eu={borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,radius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,size:oe,top:oe,right:oe,bottom:oe,left:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,rotate:Xt,rotateX:Xt,rotateY:Xt,rotateZ:Xt,scale:ea,scaleX:ea,scaleY:ea,scaleZ:ea,skew:Xt,skewX:Xt,skewY:Xt,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:An,originX:Tu,originY:Tu,originZ:oe,zIndex:Su,fillOpacity:An,strokeOpacity:An,numOctaves:Su};function Us(e,t,r,n){const{style:o,vars:a,transform:s,transformOrigin:i}=e;let l=!1,c=!1,u=!0;for(const d in t){const p=t[d];if(Pu(d)){a[d]=p;continue}const h=Eu[d],g=Mg(p,h);if(br.has(d)){if(l=!0,s[d]=g,!u)continue;p!==(h.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,i[d]=g):o[d]=g}if(t.transform||(l||n?o.transform=Cg(e.transform,r,u,n):o.transform&&(o.transform="none")),c){const{originX:d="50%",originY:p="50%",originZ:h=0}=i;o.transformOrigin=`${d} ${p} ${h}`}}const Hs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $u(e,t,r){for(const n in t)!Xe(t[n])&&!wu(n,r)&&(e[n]=t[n])}function $g({transformTemplate:e},t,r){return f.useMemo(()=>{const n=Hs();return Us(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function Dg(e,t,r){const n=e.style||{},o={};return $u(o,n,e),Object.assign(o,$g(e,t,r)),e.transformValues?e.transformValues(o):o}function Ig(e,t,r){const n={},o=Dg(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,n}const kg=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ra(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||kg.has(e)}let Du=e=>!ra(e);function Ag(e){e&&(Du=t=>t.startsWith("on")?!ra(t):e(t))}try{Ag(require("@emotion/is-prop-valid").default)}catch{}function Og(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(Du(o)||r===!0&&ra(o)||!t&&!ra(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function Iu(e,t,r){return typeof e=="string"?e:oe.transform(t+r*e)}function Ng(e,t,r){const n=Iu(t,e.x,e.width),o=Iu(r,e.y,e.height);return`${n} ${o}`}const jg={offset:"stroke-dashoffset",array:"stroke-dasharray"},Lg={offset:"strokeDashoffset",array:"strokeDasharray"};function _g(e,t,r=1,n=0,o=!0){e.pathLength=1;const a=o?jg:Lg;e[a.offset]=oe.transform(-n);const s=oe.transform(t),i=oe.transform(r);e[a.array]=`${s} ${i}`}function Ys(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:a,pathLength:s,pathSpacing:i=1,pathOffset:l=0,...c},u,d,p){if(Us(e,c,u,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:b}=e;h.transform&&(b&&(g.transform=h.transform),delete h.transform),b&&(o!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=Ng(b,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),s!==void 0&&_g(h,s,i,l,!1)}const ku=()=>({...Hs(),attrs:{}}),Gs=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Fg(e,t,r,n){const o=f.useMemo(()=>{const a=ku();return Ys(a,t,{enableHardwareAcceleration:!1},Gs(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};$u(a,e.style,e),o.style={...a,...o.style}}return o}function Vg(e=!1){return(r,n,o,{latestValues:a},s)=>{const l=(Rs(r)?Fg:Ig)(n,a,s,r),u={...Og(n,typeof r=="string",e),...l,ref:o},{children:d}=n,p=f.useMemo(()=>Xe(d)?d.get():d,[d]);return f.createElement(r,{...u,children:p})}}function Au(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const a in r)e.style.setProperty(a,r[a])}const Ou=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 Nu(e,t,r,n){Au(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(Ou.has(o)?o:zs(o),t.attrs[o])}function qs(e,t){const{style:r}=e,n={};for(const o in r)(Xe(r[o])||t.style&&Xe(t.style[o])||wu(o,e))&&(n[o]=r[o]);return n}function ju(e,t){const r=qs(e,t);for(const n in e)if(Xe(e[n])||Xe(t[n])){const o=kn.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function Qs(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function Lu(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const na=e=>Array.isArray(e),zg=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Wg=e=>na(e)?e[e.length-1]||0:e;function oa(e){const t=Xe(e)?e.get():e;return zg(t)?t.toValue():t}function Bg({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,a){const s={latestValues:Rg(n,o,a,e),renderState:t()};return r&&(s.mount=i=>r(n,i,s)),s}const _u=e=>(t,r)=>{const n=f.useContext(Go),o=f.useContext(qo),a=()=>Bg(e,t,n,o);return r?a():Lu(a)};function Rg(e,t,r,n){const o={},a=n(e,{});for(const p in a)o[p]=oa(a[p]);let{initial:s,animate:i}=e;const l=Zo(e),c=vu(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let u=r?r.initial===!1:!1;u=u||s===!1;const d=u?i:s;return d&&typeof d!="boolean"&&!Xo(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const g=Qs(e,h);if(!g)return;const{transitionEnd:b,transition:y,...P}=g;for(const x in P){let C=P[x];if(Array.isArray(C)){const S=u?C.length-1:0;C=C[S]}C!==null&&(o[x]=C)}for(const x in b)o[x]=b[x]}),o}const Le=e=>e;class Fu{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Kg(e){let t=new Fu,r=new Fu,n=0,o=!1,a=!1;const s=new WeakSet,i={schedule:(l,c=!1,u=!1)=>{const d=u&&o,p=d?t:r;return c&&s.add(l),p.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),s.delete(l)},process:l=>{if(o){a=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let c=0;c<n;c++){const u=t.order[c];u(l),s.has(u)&&(i.schedule(u),e())}o=!1,a&&(a=!1,i.process(l))}};return i}const aa=["prepare","read","update","preRender","render","postRender"],Ug=40;function Hg(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=aa.reduce((d,p)=>(d[p]=Kg(()=>r=!0),d),{}),s=d=>a[d].process(o),i=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,Ug),1),o.timestamp=d,o.isProcessing=!0,aa.forEach(s),o.isProcessing=!1,r&&t&&(n=!1,e(i))},l=()=>{r=!0,n=!0,o.isProcessing||e(i)};return{schedule:aa.reduce((d,p)=>{const h=a[p];return d[p]=(g,b=!1,y=!1)=>(r||l(),h.schedule(g,b,y)),d},{}),cancel:d=>aa.forEach(p=>a[p].cancel(d)),state:o,steps:a}}const{schedule:Ee,cancel:jt,state:Be,steps:Xs}=Hg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Le,!0),Yg={useVisualState:_u({scrapeMotionValuesFromProps:ju,createRenderState:ku,onMount:(e,t,{renderState:r,latestValues:n})=>{Ee.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ee.render(()=>{Ys(r,n,{enableHardwareAcceleration:!1},Gs(t.tagName),e.transformTemplate),Nu(t,r)})}})},Gg={useVisualState:_u({scrapeMotionValuesFromProps:qs,createRenderState:Hs})};function qg(e,{forwardMotionProps:t=!1},r,n){return{...Rs(e)?Yg:Gg,preloadedFeatures:r,useRender:Vg(t),createVisualElement:n,Component:e}}function Lt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const Vu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function sa(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Qg=e=>t=>Vu(t)&&e(t,sa(t));function _t(e,t,r,n){return Lt(e,t,Qg(r),n)}const Xg=(e,t)=>r=>t(e(r)),Zt=(...e)=>e.reduce(Xg);function zu(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Wu=zu("dragHorizontal"),Bu=zu("dragVertical");function Ru(e){let t=!1;if(e==="y")t=Bu();else if(e==="x")t=Wu();else{const r=Wu(),n=Bu();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Ku(){const e=Ru(!0);return e?(e(),!1):!0}class Jt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Uu(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(a,s)=>{if(a.type==="touch"||Ku())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[n]&&Ee.update(()=>i[n](a,s))};return _t(e.current,r,o,{passive:!e.getProps()[n]})}class Zg extends Jt{mount(){this.unmount=Zt(Uu(this.node,!0),Uu(this.node,!1))}unmount(){}}class Jg extends Jt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Zt(Lt(this.node.current,"focus",()=>this.onFocus()),Lt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Hu=(e,t)=>t?e===t?!0:Hu(e,t.parentElement):!1;function Zs(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,sa(r))}class ev extends Jt{constructor(){super(...arguments),this.removeStartListeners=Le,this.removeEndListeners=Le,this.removeAccessibleListeners=Le,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),a=_t(window,"pointerup",(i,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();Ee.update(()=>{Hu(this.node.current,i.target)?c&&c(i,l):u&&u(i,l)})},{passive:!(n.onTap||n.onPointerUp)}),s=_t(window,"pointercancel",(i,l)=>this.cancelPress(i,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Zt(a,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const s=i=>{i.key!=="Enter"||!this.checkPressEnd()||Zs("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&Ee.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=Lt(this.node.current,"keyup",s),Zs("down",(i,l)=>{this.startPress(i,l)})},r=Lt(this.node.current,"keydown",t),n=()=>{this.isPressing&&Zs("cancel",(a,s)=>this.cancelPress(a,s))},o=Lt(this.node.current,"blur",n);this.removeAccessibleListeners=Zt(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ee.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ku()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ee.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=_t(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Lt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Zt(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Js=new WeakMap,ei=new WeakMap,tv=e=>{const t=Js.get(e.target);t&&t(e)},rv=e=>{e.forEach(tv)};function nv({root:e,...t}){const r=e||document;ei.has(r)||ei.set(r,{});const n=ei.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(rv,{root:e,...t})),n[o]}function ov(e,t,r){const n=nv(t);return Js.set(e,r),n.observe(e),()=>{Js.delete(e),n.unobserve(e)}}const av={some:0,all:1};class sv extends Jt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:a}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:av[o]},i=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),p=c?u:d;p&&p(l)};return ov(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(iv(t,r))&&this.startObserver()}unmount(){}}function iv({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const lv={inView:{Feature:sv},tap:{Feature:ev},focus:{Feature:Jg},hover:{Feature:Zg}};function Yu(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function cv(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function uv(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function ia(e,t,r){const n=e.getProps();return Qs(n,t,r!==void 0?r:n.custom,cv(e),uv(e))}let Ln=Le,bt=Le;process.env.NODE_ENV!=="production"&&(Ln=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},bt=(e,t)=>{if(!e)throw new Error(t)});const er=e=>e*1e3,Ft=e=>e/1e3,dv={current:!1},Gu=e=>Array.isArray(e)&&typeof e[0]=="number";function qu(e){return!!(!e||typeof e=="string"&&Qu[e]||Gu(e)||Array.isArray(e)&&e.every(qu))}const _n=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Qu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_n([0,.65,.55,1]),circOut:_n([.55,0,1,.45]),backIn:_n([.31,.01,.66,-.59]),backOut:_n([.33,1.53,.69,.99])};function Xu(e){if(e)return Gu(e)?_n(e):Array.isArray(e)?e.map(Xu):Qu[e]}function fv(e,t,r,{delay:n=0,duration:o,repeat:a=0,repeatType:s="loop",ease:i,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=Xu(i);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:n,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}function pv(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const Zu=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,hv=1e-7,mv=12;function gv(e,t,r,n,o){let a,s,i=0;do s=t+(r-t)/2,a=Zu(s,n,o)-e,a>0?r=s:t=s;while(Math.abs(a)>hv&&++i<mv);return s}function Fn(e,t,r,n){if(e===t&&r===n)return Le;const o=a=>gv(a,0,1,e,r);return a=>a===0||a===1?a:Zu(o(a),t,n)}const vv=Fn(.42,0,1,1),bv=Fn(0,0,.58,1),Ju=Fn(.42,0,.58,1),yv=e=>Array.isArray(e)&&typeof e[0]!="number",ed=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,td=e=>t=>1-e(1-t),ti=e=>1-Math.sin(Math.acos(e)),rd=td(ti),xv=ed(ti),nd=Fn(.33,1.53,.69,.99),ri=td(nd),wv=ed(ri),od={linear:Le,easeIn:vv,easeInOut:Ju,easeOut:bv,circIn:ti,circInOut:xv,circOut:rd,backIn:ri,backInOut:wv,backOut:nd,anticipate:e=>(e*=2)<1?.5*ri(e):.5*(2-Math.pow(2,-10*(e-1)))},ad=e=>{if(Array.isArray(e)){bt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,o]=e;return Fn(t,r,n,o)}else if(typeof e=="string")return bt(od[e]!==void 0,`Invalid easing type '${e}'`),od[e];return e},ni=(e,t)=>r=>!!(Nn(r)&&Tg.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),sd=(e,t,r)=>n=>{if(!Nn(n))return n;const[o,a,s,i]=n.match(ta);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}},Cv=e=>Qt(0,255,e),oi={...yr,transform:e=>Math.round(Cv(e))},xr={test:ni("rgb","red"),parse:sd("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+oi.transform(e)+", "+oi.transform(t)+", "+oi.transform(r)+", "+On(An.transform(n))+")"};function Pv(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const ai={test:ni("#"),parse:Pv,transform:xr.transform},Gr={test:ni("hsl","hue"),parse:sd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Tt.transform(On(t))+", "+Tt.transform(On(r))+", "+On(An.transform(n))+")"},He={test:e=>xr.test(e)||ai.test(e)||Gr.test(e),parse:e=>xr.test(e)?xr.parse(e):Gr.test(e)?Gr.parse(e):ai.parse(e),transform:e=>Nn(e)?e:e.hasOwnProperty("red")?xr.transform(e):Gr.transform(e)},Ne=(e,t,r)=>-r*e+r*t+e;function si(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Mv({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,a=0,s=0;if(!t)o=a=s=r;else{const i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;o=si(l,i,e+1/3),a=si(l,i,e),s=si(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:n}}const ii=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},Tv=[ai,xr,Gr],Sv=e=>Tv.find(t=>t.test(e));function id(e){const t=Sv(e);bt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Gr&&(r=Mv(r)),r}const ld=(e,t)=>{const r=id(e),n=id(t),o={...r};return a=>(o.red=ii(r.red,n.red,a),o.green=ii(r.green,n.green,a),o.blue=ii(r.blue,n.blue,a),o.alpha=Ne(r.alpha,n.alpha,a),xr.transform(o))};function Ev(e){var t,r;return isNaN(e)&&Nn(e)&&(((t=e.match(ta))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Mu))===null||r===void 0?void 0:r.length)||0)>0}const cd={regex:Pg,countKey:"Vars",token:"${v}",parse:Le},ud={regex:Mu,countKey:"Colors",token:"${c}",parse:He.parse},dd={regex:ta,countKey:"Numbers",token:"${n}",parse:yr.parse};function li(e,{regex:t,countKey:r,token:n,parse:o}){const a=e.tokenised.match(t);a&&(e["num"+r]=a.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...a.map(o)))}function la(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&li(r,cd),li(r,ud),li(r,dd),r}function fd(e){return la(e).values}function pd(e){const{values:t,numColors:r,numVars:n,tokenised:o}=la(e),a=t.length;return s=>{let i=o;for(let l=0;l<a;l++)l<n?i=i.replace(cd.token,s[l]):l<n+r?i=i.replace(ud.token,He.transform(s[l])):i=i.replace(dd.token,On(s[l]));return i}}const $v=e=>typeof e=="number"?0:e;function Dv(e){const t=fd(e);return pd(e)(t.map($v))}const tr={test:Ev,parse:fd,createTransformer:pd,getAnimatableNone:Dv},hd=(e,t)=>r=>`${r>0?t:e}`;function md(e,t){return typeof e=="number"?r=>Ne(e,t,r):He.test(e)?ld(e,t):e.startsWith("var(")?hd(e,t):vd(e,t)}const gd=(e,t)=>{const r=[...e],n=r.length,o=e.map((a,s)=>md(a,t[s]));return a=>{for(let s=0;s<n;s++)r[s]=o[s](a);return r}},Iv=(e,t)=>{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=md(e[o],t[o]));return o=>{for(const a in n)r[a]=n[a](o);return r}},vd=(e,t)=>{const r=tr.createTransformer(t),n=la(e),o=la(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?Zt(gd(n.values,o.values),r):(Ln(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),hd(e,t))},Vn=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},bd=(e,t)=>r=>Ne(e,t,r);function kv(e){return typeof e=="number"?bd:typeof e=="string"?He.test(e)?ld:vd:Array.isArray(e)?gd:typeof e=="object"?Iv:bd}function Av(e,t,r){const n=[],o=r||kv(e[0]),a=e.length-1;for(let s=0;s<a;s++){let i=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Le:t;i=Zt(l,i)}n.push(i)}return n}function yd(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const a=e.length;if(bt(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Av(t,n,o),i=s.length,l=c=>{let u=0;if(i>1)for(;u<e.length-2&&!(c<e[u+1]);u++);const d=Vn(e[u],e[u+1],c);return s[u](d)};return r?c=>l(Qt(e[0],e[a-1],c)):l}function Ov(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Vn(0,t,n);e.push(Ne(r,1,o))}}function Nv(e){const t=[0];return Ov(t,e.length-1),t}function jv(e,t){return e.map(r=>r*t)}function Lv(e,t){return e.map(()=>t||Ju).splice(0,e.length-1)}function ca({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=yv(n)?n.map(ad):ad(n),a={done:!1,value:t[0]},s=jv(r&&r.length===t.length?r:Nv(t),e),i=yd(s,t,{ease:Array.isArray(o)?o:Lv(t,o)});return{calculatedDuration:e,next:l=>(a.value=i(l),a.done=l>=e,a)}}function xd(e,t){return t?e*(1e3/t):0}const _v=5;function wd(e,t,r){const n=Math.max(t-_v,0);return xd(r-e(n),t-n)}const ci=.001,Fv=.01,Cd=10,Vv=.05,zv=1;function Wv({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,a;Ln(e<=er(Cd),"Spring duration must be 10 seconds or less");let s=1-t;s=Qt(Vv,zv,s),e=Qt(Fv,Cd,Ft(e)),s<1?(o=c=>{const u=c*s,d=u*e,p=u-r,h=ui(c,s),g=Math.exp(-d);return ci-p/h*g},a=c=>{const d=c*s*e,p=d*r+r,h=Math.pow(s,2)*Math.pow(c,2)*e,g=Math.exp(-d),b=ui(Math.pow(c,2),s);return(-o(c)+ci>0?-1:1)*((p-h)*g)/b}):(o=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-ci+u*d},a=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const i=5/e,l=Rv(o,a,i);if(e=er(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:e}}}const Bv=12;function Rv(e,t,r){let n=r;for(let o=1;o<Bv;o++)n=n-e(n)/t(n);return n}function ui(e,t){return e*Math.sqrt(1-t*t)}const Kv=["duration","bounce"],Uv=["stiffness","damping","mass"];function Pd(e,t){return t.some(r=>e[r]!==void 0)}function Hv(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Pd(e,Uv)&&Pd(e,Kv)){const r=Wv(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Md({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:i,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=Hv(n),h=u?-Ft(u):0,g=l/(2*Math.sqrt(i*c)),b=a-o,y=Ft(Math.sqrt(i/c)),P=Math.abs(b)<5;r||(r=P?.01:2),t||(t=P?.005:.5);let x;if(g<1){const C=ui(y,g);x=S=>{const $=Math.exp(-g*y*S);return a-$*((h+g*y*b)/C*Math.sin(C*S)+b*Math.cos(C*S))}}else if(g===1)x=C=>a-Math.exp(-y*C)*(b+(h+y*b)*C);else{const C=y*Math.sqrt(g*g-1);x=S=>{const $=Math.exp(-g*y*S),N=Math.min(C*S,300);return a-$*((h+g*y*b)*Math.sinh(N)+C*b*Math.cosh(N))/C}}return{calculatedDuration:p&&d||null,next:C=>{const S=x(C);if(p)s.done=C>=d;else{let $=h;C!==0&&(g<1?$=wd(x,C,S):$=0);const N=Math.abs($)<=r,j=Math.abs(a-S)<=t;s.done=N&&j}return s.value=s.done?a:S,s}}}function Td({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:i,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},h=m=>i!==void 0&&m<i||l!==void 0&&m>l,g=m=>i===void 0?l:l===void 0||Math.abs(i-m)<Math.abs(l-m)?i:l;let b=r*t;const y=d+b,P=s===void 0?y:s(y);P!==y&&(b=P-d);const x=m=>-b*Math.exp(-m/n),C=m=>P+x(m),S=m=>{const D=x(m),I=C(m);p.done=Math.abs(D)<=c,p.value=p.done?P:I};let $,N;const j=m=>{h(p.value)&&($=m,N=Md({keyframes:[p.value,g(p.value)],velocity:wd(C,m,p.value),damping:o,stiffness:a,restDelta:c,restSpeed:u}))};return j(0),{calculatedDuration:null,next:m=>{let D=!1;return!N&&$===void 0&&(D=!0,S(m),j(m)),$!==void 0&&m>$?N.next(m-$):(!D&&S(m),p)}}}const Yv=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Ee.update(t,!0),stop:()=>jt(t),now:()=>Be.isProcessing?Be.timestamp:performance.now()}},Sd=2e4;function Ed(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Sd;)t+=r,n=e.next(t);return t>=Sd?1/0:t}const Gv={decay:Td,inertia:Td,tween:ca,keyframes:ca,spring:Md};function ua({autoplay:e=!0,delay:t=0,driver:r=Yv,keyframes:n,type:o="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:i="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let h=1,g=!1,b,y;const P=()=>{y=new Promise(W=>{b=W})};P();let x;const C=Gv[o]||ca;let S;C!==ca&&typeof n[0]!="number"&&(S=yd([0,100],n,{clamp:!1}),n=[0,100]);const $=C({...p,keyframes:n});let N;i==="mirror"&&(N=C({...p,keyframes:[...n].reverse(),velocity:-(p.velocity||0)}));let j="idle",m=null,D=null,I=null;$.calculatedDuration===null&&a&&($.calculatedDuration=Ed($));const{calculatedDuration:T}=$;let k=1/0,w=1/0;T!==null&&(k=T+s,w=k*(a+1)-s);let M=0;const O=W=>{if(D===null)return;h>0&&(D=Math.min(D,W)),h<0&&(D=Math.min(W-w/h,D)),m!==null?M=m:M=Math.round(W-D)*h;const ee=M-t*(h>=0?1:-1),U=h>=0?ee<0:ee>w;M=Math.max(ee,0),j==="finished"&&m===null&&(M=w);let re=M,X=$;if(a){const pe=M/k;let fe=Math.floor(pe),he=pe%1;!he&&pe>=1&&(he=1),he===1&&fe--,fe=Math.min(fe,a+1);const Te=!!(fe%2);Te&&(i==="reverse"?(he=1-he,s&&(he-=s/k)):i==="mirror"&&(X=N));let Se=Qt(0,1,he);M>w&&(Se=i==="reverse"&&Te?1:0),re=Se*k}const te=U?{done:!1,value:n[0]}:X.next(re);S&&(te.value=S(te.value));let{done:ce}=te;!U&&T!==null&&(ce=h>=0?M>=w:M<=0);const be=m===null&&(j==="finished"||j==="running"&&ce);return d&&d(te.value),be&&V(),te},F=()=>{x&&x.stop(),x=void 0},E=()=>{j="idle",F(),b(),P(),D=I=null},V=()=>{j="finished",u&&u(),F(),b()},H=()=>{if(g)return;x||(x=r(O));const W=x.now();l&&l(),m!==null?D=W-m:(!D||j==="finished")&&(D=W),j==="finished"&&P(),I=D,m=null,j="running",x.start()};e&&H();const R={then(W,ee){return y.then(W,ee)},get time(){return Ft(M)},set time(W){W=er(W),M=W,m!==null||!x||h===0?m=W:D=x.now()-W/h},get duration(){const W=$.calculatedDuration===null?Ed($):$.calculatedDuration;return Ft(W)},get speed(){return h},set speed(W){W===h||!x||(h=W,R.time=Ft(M))},get state(){return j},play:H,pause:()=>{j="paused",m=M},stop:()=>{g=!0,j!=="idle"&&(j="idle",c&&c(),E())},cancel:()=>{I!==null&&O(I),E()},complete:()=>{j="finished"},sample:W=>(D=0,O(W))};return R}function qv(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qv=qv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Xv=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),da=10,Zv=2e4,Jv=(e,t)=>t.type==="spring"||e==="backgroundColor"||!qu(t.ease);function eb(e,t,{onUpdate:r,onComplete:n,...o}){if(!(Qv()&&Xv.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,i,l;const c=()=>{l=new Promise(x=>{i=x})};c();let{keyframes:u,duration:d=300,ease:p,times:h}=o;if(Jv(t,o)){const x=ua({...o,repeat:0,delay:0});let C={done:!1,value:u[0]};const S=[];let $=0;for(;!C.done&&$<Zv;)C=x.sample($),S.push(C.value),$+=da;h=void 0,u=S,d=$-da,p="linear"}const g=fv(e.owner.current,t,u,{...o,duration:d,ease:p,times:h}),b=()=>g.cancel(),y=()=>{Ee.update(b),i(),c()};return g.onfinish=()=>{e.set(pv(u,o)),n&&n(),y()},{then(x,C){return l.then(x,C)},attachTimeline(x){return g.timeline=x,g.onfinish=null,Le},get time(){return Ft(g.currentTime||0)},set time(x){g.currentTime=er(x)},get speed(){return g.playbackRate},set speed(x){g.playbackRate=x},get duration(){return Ft(d)},play:()=>{s||(g.play(),jt(b))},pause:()=>g.pause(),stop:()=>{if(s=!0,g.playState==="idle")return;const{currentTime:x}=g;if(x){const C=ua({...o,autoplay:!1});e.setWithVelocity(C.sample(x-da).value,C.sample(x).value,da)}y()},complete:()=>g.finish(),cancel:y}}function tb({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Le,pause:Le,stop:Le,then:a=>(a(),Promise.resolve()),cancel:Le,complete:Le});return t?ua({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const rb={type:"spring",stiffness:500,damping:25,restSpeed:10},nb=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ob={type:"keyframes",duration:.8},ab={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sb=(e,{keyframes:t})=>t.length>2?ob:br.has(e)?e.startsWith("scale")?nb(t[1]):rb:ab,di=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(tr.test(t)||t==="0")&&!t.startsWith("url(")),ib=new Set(["brightness","contrast","saturate","opacity"]);function lb(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(ta)||[];if(!n)return e;const o=r.replace(n,"");let a=ib.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+o+")"}const cb=/([a-z-]*)\(.*?\)/g,fi={...tr,getAnimatableNone:e=>{const t=e.match(cb);return t?t.map(lb).join(" "):e}},ub={...Eu,color:He,backgroundColor:He,outlineColor:He,fill:He,stroke:He,borderColor:He,borderTopColor:He,borderRightColor:He,borderBottomColor:He,borderLeftColor:He,filter:fi,WebkitFilter:fi},pi=e=>ub[e];function $d(e,t){let r=pi(e);return r!==fi&&(r=tr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Dd=e=>/^0[^.\s]+$/.test(e);function db(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Dd(e)}function fb(e,t,r,n){const o=di(t,r);let a;Array.isArray(r)?a=[...r]:a=[null,r];const s=n.from!==void 0?n.from:e.get();let i;const l=[];for(let c=0;c<a.length;c++)a[c]===null&&(a[c]=c===0?s:a[c-1]),db(a[c])&&l.push(c),typeof a[c]=="string"&&a[c]!=="none"&&a[c]!=="0"&&(i=a[c]);if(o&&l.length&&i)for(let c=0;c<l.length;c++){const u=l[c];a[u]=$d(t,i)}return a}function pb({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:i,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function hi(e,t){return e[t]||e.default||e}const mi=(e,t,r,n={})=>o=>{const a=hi(n,e)||{},s=a.delay||n.delay||0;let{elapsed:i=0}=n;i=i-er(s);const l=fb(t,e,r,a),c=l[0],u=l[l.length-1],d=di(e,c),p=di(e,u);Ln(d===p,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-i,onUpdate:g=>{t.set(g),a.onUpdate&&a.onUpdate(g)},onComplete:()=>{o(),a.onComplete&&a.onComplete()}};if(pb(a)||(h={...h,...sb(e,h)}),h.duration&&(h.duration=er(h.duration)),h.repeatDelay&&(h.repeatDelay=er(h.repeatDelay)),!d||!p||dv.current||a.type===!1)return tb(h);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=eb(t,e,h);if(g)return g}return ua(h)};function fa(e){return!!(Xe(e)&&e.add)}const Id=e=>/^\-?\d*\.?\d+$/.test(e);function gi(e,t){e.indexOf(t)===-1&&e.push(t)}function vi(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class bi{constructor(){this.subscriptions=[]}add(t){return gi(this.subscriptions,t),()=>vi(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let a=0;a<o;a++){const s=this.subscriptions[a];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const kd=new Set;function yi(e,t,r){e||kd.has(t)||(console.warn(t),r&&console.warn(r),kd.add(t))}const hb=e=>!isNaN(parseFloat(e));class mb{constructor(t,r={}){this.version="10.16.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:a,timestamp:s}=Be;this.lastUpdated!==s&&(this.timeDelta=a,this.lastUpdated=s,Ee.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ee.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=hb(this.current),this.owner=r.owner}onChange(t){return process.env.NODE_ENV!=="production"&&yi(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new bi);const n=this.events[t].add(r);return t==="change"?()=>{n(),Ee.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?xd(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qr(e,t){return new mb(e,t)}const Ad=e=>t=>t.test(e),Od=[yr,oe,Tt,Xt,Eg,Sg,{test:e=>e==="auto",parse:e=>e}],zn=e=>Od.find(Ad(e)),gb=[...Od,He,tr],vb=e=>gb.find(Ad(e));function bb(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,qr(r))}function yb(e,t){const r=ia(e,t);let{transitionEnd:n={},transition:o={},...a}=r?e.makeTargetAnimatable(r,!1):{};a={...a,...n};for(const s in a){const i=Wg(a[s]);bb(e,s,i)}}function xb(e,t,r){var n,o;const a=Object.keys(t).filter(i=>!e.hasValue(i)),s=a.length;if(s)for(let i=0;i<s;i++){const l=a[i],c=t[l];let u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(o=(n=r[l])!==null&&n!==void 0?n:e.readValue(l))!==null&&o!==void 0?o:t[l]),u!=null&&(typeof u=="string"&&(Id(u)||Dd(u))?u=parseFloat(u):!vb(u)&&tr.test(c)&&(u=$d(l,c)),e.addValue(l,qr(u,{owner:e})),r[l]===void 0&&(r[l]=u),u!==null&&e.setBaseTarget(l,u))}}function wb(e,t){return t?(t[e]||t.default||t).from:void 0}function Cb(e,t,r){const n={};for(const o in e){const a=wb(o,t);if(a!==void 0)n[o]=a;else{const s=r.getValue(o);s&&(n[o]=s.get())}}return n}function Pb({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function Mb(e,t){const r=e.get();if(Array.isArray(t)){for(let n=0;n<t.length;n++)if(t[n]!==r)return!0}else return r!==t}function Nd(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...i}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");n&&(a=n);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in i){const p=e.getValue(d),h=i[d];if(!p||h===void 0||u&&Pb(u,d))continue;const g={delay:r,elapsed:0,...hi(a||{},d)};if(window.HandoffAppearAnimations){const P=e.getProps()[gu];if(P){const x=window.HandoffAppearAnimations(P,d,p,Ee);x!==null&&(g.elapsed=x,g.isHandoff=!0)}}let b=!g.isHandoff&&!Mb(p,h);if(g.type==="spring"&&(p.getVelocity()||g.velocity)&&(b=!1),p.animation&&(b=!1),b)continue;p.start(mi(d,p,h,e.shouldReduceMotion&&br.has(d)?{type:!1}:g));const y=p.animation;fa(l)&&(l.add(d),y.then(()=>l.remove(d))),c.push(y)}return s&&Promise.all(c).then(()=>{s&&yb(e,s)}),c}function xi(e,t,r={}){const n=ia(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const a=n?()=>Promise.all(Nd(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return Tb(e,t,c+l,u,d,r)}:()=>Promise.resolve(),{when:i}=o;if(i){const[l,c]=i==="beforeChildren"?[a,s]:[s,a];return l().then(()=>c())}else return Promise.all([a(),s(r.delay)])}function Tb(e,t,r=0,n=0,o=1,a){const s=[],i=(e.variantChildren.size-1)*n,l=o===1?(c=0)=>c*n:(c=0)=>i-c*n;return Array.from(e.variantChildren).sort(Sb).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(xi(c,t,{...a,delay:r+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function Sb(e,t){return e.sortNodePosition(t)}function Eb(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(a=>xi(e,a,r));n=Promise.all(o)}else if(typeof t=="string")n=xi(e,t,r);else{const o=typeof t=="function"?ia(e,t,r.custom):t;n=Promise.all(Nd(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const $b=[...Ws].reverse(),Db=Ws.length;function Ib(e){return t=>Promise.all(t.map(({animation:r,options:n})=>Eb(e,r,n)))}function kb(e){let t=Ib(e);const r=Ob();let n=!0;const o=(l,c)=>{const u=ia(e,c);if(u){const{transition:d,transitionEnd:p,...h}=u;l={...l,...h,...p}}return l};function a(l){t=l(e)}function s(l,c){const u=e.getProps(),d=e.getVariantContext(!0)||{},p=[],h=new Set;let g={},b=1/0;for(let P=0;P<Db;P++){const x=$b[P],C=r[x],S=u[x]!==void 0?u[x]:d[x],$=$n(S),N=x===c?C.isActive:null;N===!1&&(b=P);let j=S===d[x]&&S!==u[x]&&$;if(j&&n&&e.manuallyAnimateOnMount&&(j=!1),C.protectedKeys={...g},!C.isActive&&N===null||!S&&!C.prevProp||Xo(S)||typeof S=="boolean")continue;const m=Ab(C.prevProp,S);let D=m||x===c&&C.isActive&&!j&&$||P>b&&$;const I=Array.isArray(S)?S:[S];let T=I.reduce(o,{});N===!1&&(T={});const{prevResolvedValues:k={}}=C,w={...k,...T},M=O=>{D=!0,h.delete(O),C.needsAnimating[O]=!0};for(const O in w){const F=T[O],E=k[O];g.hasOwnProperty(O)||(F!==E?na(F)&&na(E)?!Yu(F,E)||m?M(O):C.protectedKeys[O]=!0:F!==void 0?M(O):h.add(O):F!==void 0&&h.has(O)?M(O):C.protectedKeys[O]=!0)}C.prevProp=S,C.prevResolvedValues=T,C.isActive&&(g={...g,...T}),n&&e.blockInitialAnimation&&(D=!1),D&&!j&&p.push(...I.map(O=>({animation:O,options:{type:x,...l}})))}if(h.size){const P={};h.forEach(x=>{const C=e.getBaseTarget(x);C!==void 0&&(P[x]=C)}),p.push({animation:P})}let y=!!p.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),n=!1,y?t(p):Promise.resolve()}function i(l,c,u){var d;if(r[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;const p=s(u,l);for(const h in r)r[h].protectedKeys={};return p}return{animateChanges:s,setActive:i,setAnimateFunction:a,getState:()=>r}}function Ab(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Yu(t,e):!1}function wr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ob(){return{animate:wr(!0),whileInView:wr(),whileHover:wr(),whileTap:wr(),whileDrag:wr(),whileFocus:wr(),exit:wr()}}class Nb extends Jt{constructor(t){super(t),t.animationState||(t.animationState=kb(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Xo(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let jb=0;class Lb extends Jt{constructor(){super(...arguments),this.id=jb++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const a=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const _b={animation:{Feature:Nb},exit:{Feature:Lb}},jd=(e,t)=>Math.abs(e-t);function Fb(e,t){const r=jd(e.x,t.x),n=jd(e.y,t.y);return Math.sqrt(r**2+n**2)}class Ld{constructor(t,r,{transformPagePoint:n,contextWindow:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Ci(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=Fb(u.offset,{x:0,y:0})>=3;if(!d&&!p)return;const{point:h}=u,{timestamp:g}=Be;this.history.push({...h,timestamp:g});const{onStart:b,onMove:y}=this.handlers;d||(b&&b(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=wi(d,this.transformPagePoint),Ee.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:p,onSessionEnd:h}=this.handlers,g=Ci(u.type==="pointercancel"?this.lastMoveEventInfo:wi(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(u,g),h&&h(u,g)},!Vu(t))return;this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const a=sa(t),s=wi(a,this.transformPagePoint),{point:i}=s,{timestamp:l}=Be;this.history=[{...i,timestamp:l}];const{onSessionStart:c}=r;c&&c(t,Ci(s,this.history)),this.removeListeners=Zt(_t(this.contextWindow,"pointermove",this.handlePointerMove),_t(this.contextWindow,"pointerup",this.handlePointerUp),_t(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),jt(this.updatePoint)}}function wi(e,t){return t?{point:t(e.point)}:e}function _d(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ci({point:e},t){return{point:e,delta:_d(e,Fd(t)),offset:_d(e,Vb(t)),velocity:zb(t,.1)}}function Vb(e){return e[0]}function Fd(e){return e[e.length-1]}function zb(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=Fd(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>er(t)));)r--;if(!n)return{x:0,y:0};const a=Ft(o.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const s={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ot(e){return e.max-e.min}function Pi(e,t=0,r=.01){return Math.abs(e-t)<=r}function Vd(e,t,r,n=.5){e.origin=n,e.originPoint=Ne(t.min,t.max,e.origin),e.scale=ot(r)/ot(t),(Pi(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ne(r.min,r.max,e.origin)-e.originPoint,(Pi(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Wn(e,t,r,n){Vd(e.x,t.x,r.x,n?n.originX:void 0),Vd(e.y,t.y,r.y,n?n.originY:void 0)}function zd(e,t,r){e.min=r.min+t.min,e.max=e.min+ot(t)}function Wb(e,t,r){zd(e.x,t.x,r.x),zd(e.y,t.y,r.y)}function Wd(e,t,r){e.min=t.min-r.min,e.max=e.min+ot(t)}function Bn(e,t,r){Wd(e.x,t.x,r.x),Wd(e.y,t.y,r.y)}function Bb(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Ne(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Ne(r,e,n.max):Math.min(e,r)),e}function Bd(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Rb(e,{top:t,left:r,bottom:n,right:o}){return{x:Bd(e.x,r,o),y:Bd(e.y,t,n)}}function Rd(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function Kb(e,t){return{x:Rd(e.x,t.x),y:Rd(e.y,t.y)}}function Ub(e,t){let r=.5;const n=ot(e),o=ot(t);return o>n?r=Vn(t.min,t.max-n,e.min):n>o&&(r=Vn(e.min,e.max-o,t.min)),Qt(0,1,r)}function Hb(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Mi=.35;function Yb(e=Mi){return e===!1?e=0:e===!0&&(e=Mi),{x:Kd(e,"left","right"),y:Kd(e,"top","bottom")}}function Kd(e,t,r){return{min:Ud(e,t),max:Ud(e,r)}}function Ud(e,t){return typeof e=="number"?e:e[t]||0}const Hd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qr=()=>({x:Hd(),y:Hd()}),Yd=()=>({min:0,max:0}),Ve=()=>({x:Yd(),y:Yd()});function St(e){return[e("x"),e("y")]}function Gd({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Gb({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qb(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Ti(e){return e===void 0||e===1}function Si({scale:e,scaleX:t,scaleY:r}){return!Ti(e)||!Ti(t)||!Ti(r)}function Cr(e){return Si(e)||qd(e)||e.z||e.rotate||e.rotateX||e.rotateY}function qd(e){return Qd(e.x)||Qd(e.y)}function Qd(e){return e&&e!=="0%"}function pa(e,t,r){const n=e-r,o=t*n;return r+o}function Xd(e,t,r,n,o){return o!==void 0&&(e=pa(e,o,n)),pa(e,r,n)+t}function Ei(e,t=0,r=1,n,o){e.min=Xd(e.min,t,r,n,o),e.max=Xd(e.max,t,r,n,o)}function Zd(e,{x:t,y:r}){Ei(e.x,t.translate,t.scale,t.originPoint),Ei(e.y,r.translate,r.scale,r.originPoint)}function Qb(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let a,s;for(let i=0;i<o;i++){a=r[i],s=a.projectionDelta;const l=a.instance;l&&l.style&&l.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Xr(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Zd(e,s)),n&&Cr(a.latestValues)&&Xr(e,a.latestValues))}t.x=Jd(t.x),t.y=Jd(t.y)}function Jd(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function rr(e,t){e.min=e.min+t,e.max=e.max+t}function ef(e,t,[r,n,o]){const a=t[o]!==void 0?t[o]:.5,s=Ne(e.min,e.max,a);Ei(e,t[r],t[n],s,t.scale)}const Xb=["x","scaleX","originX"],Zb=["y","scaleY","originY"];function Xr(e,t){ef(e.x,t,Xb),ef(e.y,t,Zb)}function tf(e,t){return Gd(qb(e.getBoundingClientRect(),t))}function Jb(e,t,r){const n=tf(e,r),{scroll:o}=t;return o&&(rr(n.x,o.offset.x),rr(n.y,o.offset.y)),n}const rf=({current:e})=>e?e.ownerDocument.defaultView:null,e2=new WeakMap;class t2{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ve(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=l=>{this.stopAnimation(),r&&this.snapToCursor(sa(l,"page").point)},a=(l,c)=>{const{drag:u,dragPropagation:d,onDragStart:p}=this.getProps();if(u&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ru(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),St(g=>{let b=this.getAxisMotionValue(g).get()||0;if(Tt.test(b)){const{projection:y}=this.visualElement;if(y&&y.layout){const P=y.layout.layoutBox[g];P&&(b=ot(P)*(parseFloat(b)/100))}}this.originPoint[g]=b}),p&&Ee.update(()=>p(l,c),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(l,c)=>{const{dragPropagation:u,dragDirectionLock:d,onDirectionLock:p,onDrag:h}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:g}=c;if(d&&this.currentDirection===null){this.currentDirection=r2(g),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",c.point,g),this.updateAxis("y",c.point,g),this.visualElement.render(),h&&h(l,c)},i=(l,c)=>this.stop(l,c);this.panSession=new Ld(t,{onSessionStart:o,onStart:a,onMove:s,onSessionEnd:i},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:rf(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Ee.update(()=>a(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!ha(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=Bb(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;r&&Yr(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=Rb(o.layoutBox,r):this.constraints=!1,this.elastic=Yb(n),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&St(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=Hb(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Yr(t))return!1;const n=t.current;bt(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=Jb(n,o.root,this.visualElement.getTransformPagePoint());let s=Kb(o.layout.layoutBox,a);if(r){const i=r(Gb(s));this.hasMutatedConstraints=!!i,i&&(s=Gd(i))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},c=St(u=>{if(!ha(u,r,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,g={type:"inertia",velocity:n?t[u]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(i)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(mi(t,n,0,r))}stopAnimation(){St(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){St(r=>{const{drag:n}=this.getProps();if(!ha(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(r);if(o&&o.layout){const{min:s,max:i}=o.layout.layoutBox[r];a.set(t[r]-Ne(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Yr(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};St(s=>{const i=this.getAxisMotionValue(s);if(i){const l=i.get();o[s]=Ub({min:l,max:l},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),St(s=>{if(!ha(s,t,null))return;const i=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];i.set(Ne(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;e2.set(this.visualElement,this);const t=this.visualElement.current,r=_t(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Yr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const s=Lt(window,"resize",()=>this.scalePositionWithinConstraints()),i=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(St(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),r(),a(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:s=Mi,dragMomentum:i=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:a,dragElastic:s,dragMomentum:i}}}function ha(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function r2(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class n2 extends Jt{constructor(t){super(t),this.removeGroupControls=Le,this.removeListeners=Le,this.controls=new t2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Le}unmount(){this.removeGroupControls(),this.removeListeners()}}const nf=e=>(t,r)=>{e&&Ee.update(()=>e(t,r))};class o2 extends Jt{constructor(){super(...arguments),this.removePointerDownListener=Le}onPointerDown(t){this.session=new Ld(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rf(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:nf(t),onStart:nf(r),onMove:n,onEnd:(a,s)=>{delete this.session,o&&Ee.update(()=>o(a,s))}}}mount(){this.removePointerDownListener=_t(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function a2(){const e=f.useContext(qo);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=f.useId();return f.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}const ma={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function of(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Rn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(oe.test(e))e=parseFloat(e);else return e;const r=of(e,t.target.x),n=of(e,t.target.y);return`${r}% ${n}%`}},s2={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=tr.parse(e);if(o.length>5)return n;const a=tr.createTransformer(e),s=typeof o[0]!="number"?1:0,i=r.x.scale*t.x,l=r.y.scale*t.y;o[0+s]/=i,o[1+s]/=l;const c=Ne(i,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),a(o)}};class i2 extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:a}=t;yg(l2),a&&(r.group&&r.group.add(a),n&&n.register&&o&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),ma.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:a}=this.props,s=n.projection;return s&&(s.isPresent=a,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Ee.postRender(()=>{const i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function af(e){const[t,r]=a2(),n=f.useContext(In);return f.createElement(i2,{...e,layoutGroup:n,switchLayoutGroup:f.useContext(xu),isPresent:t,safeToRemove:r})}const l2={borderRadius:{...Rn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Rn,borderTopRightRadius:Rn,borderBottomLeftRadius:Rn,borderBottomRightRadius:Rn,boxShadow:s2},sf=["TopLeft","TopRight","BottomLeft","BottomRight"],c2=sf.length,lf=e=>typeof e=="string"?parseFloat(e):e,cf=e=>typeof e=="number"||oe.test(e);function u2(e,t,r,n,o,a){o?(e.opacity=Ne(0,r.opacity!==void 0?r.opacity:1,d2(n)),e.opacityExit=Ne(t.opacity!==void 0?t.opacity:1,0,f2(n))):a&&(e.opacity=Ne(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<c2;s++){const i=`border${sf[s]}Radius`;let l=uf(t,i),c=uf(r,i);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||cf(l)===cf(c)?(e[i]=Math.max(Ne(lf(l),lf(c),n),0),(Tt.test(c)||Tt.test(l))&&(e[i]+="%")):e[i]=c}(t.rotate||r.rotate)&&(e.rotate=Ne(t.rotate||0,r.rotate||0,n))}function uf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const d2=df(0,.5,rd),f2=df(.5,.95,Le);function df(e,t,r){return n=>n<e?0:n>t?1:r(Vn(e,t,n))}function ff(e,t){e.min=t.min,e.max=t.max}function ft(e,t){ff(e.x,t.x),ff(e.y,t.y)}function pf(e,t,r,n,o){return e-=t,e=pa(e,1/r,n),o!==void 0&&(e=pa(e,1/o,n)),e}function p2(e,t=0,r=1,n=.5,o,a=e,s=e){if(Tt.test(t)&&(t=parseFloat(t),t=Ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Ne(a.min,a.max,n);e===a&&(i-=t),e.min=pf(e.min,t,r,i,o),e.max=pf(e.max,t,r,i,o)}function hf(e,t,[r,n,o],a,s){p2(e,t[r],t[n],t[o],t.scale,a,s)}const h2=["x","scaleX","originX"],m2=["y","scaleY","originY"];function mf(e,t,r,n){hf(e.x,t,h2,r?r.x:void 0,n?n.x:void 0),hf(e.y,t,m2,r?r.y:void 0,n?n.y:void 0)}function gf(e){return e.translate===0&&e.scale===1}function vf(e){return gf(e.x)&&gf(e.y)}function g2(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function bf(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function yf(e){return ot(e.x)/ot(e.y)}class v2{constructor(){this.members=[]}add(t){gi(this.members,t),t.scheduleRender()}remove(t){if(vi(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xf(e,t,r){let n="";const o=e.x.translate/t.x,a=e.y.translate/t.y;if((o||a)&&(n=`translate3d(${o}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:c,rotateY:u}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),u&&(n+=`rotateY(${u}deg) `)}const s=e.x.scale*t.x,i=e.y.scale*t.y;return(s!==1||i!==1)&&(n+=`scale(${s}, ${i})`),n||"none"}const b2=(e,t)=>e.depth-t.depth;class y2{constructor(){this.children=[],this.isDirty=!1}add(t){gi(this.children,t),this.isDirty=!0}remove(t){vi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(b2),this.isDirty=!1,this.children.forEach(t)}}function x2(e,t){const r=performance.now(),n=({timestamp:o})=>{const a=o-r;a>=t&&(jt(n),e(a-t))};return Ee.read(n,!0),()=>jt(n)}function w2(e){window.MotionDebug&&window.MotionDebug.record(e)}function C2(e){return e instanceof SVGElement&&e.tagName!=="svg"}function P2(e,t,r){const n=Xe(e)?e:qr(e);return n.start(mi("",n,t,r)),n.animation}const wf=["","X","Y","Z"],M2={visibility:"hidden"},Cf=1e3;let T2=0;const Pr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Pf({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},i=t==null?void 0:t()){this.id=T2++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pr.totalNodes=Pr.resolvedTargetDeltas=Pr.recalculatedProjection=0,this.nodes.forEach($2),this.nodes.forEach(O2),this.nodes.forEach(N2),this.nodes.forEach(D2),w2(Pr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new y2)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new bi),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){const l=this.eventHandlers.get(s);l&&l.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=C2(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(c||l)&&(this.isLayoutDirty=!0),e){let d;const p=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=x2(p,250),ma.hasAnimatedSinceResize&&(ma.hasAnimatedSinceResize=!1,this.nodes.forEach(Tf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||u.getDefaultTransition()||V2,{onLayoutAnimationStart:y,onLayoutAnimationComplete:P}=u.getProps(),x=!this.targetLayout||!bf(this.targetLayout,g)||h,C=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||p&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,C);const S={...hi(b,"layout"),onPlay:y,onComplete:P};(u.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else p||Tf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,jt(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(j2),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Mf);return}this.isUpdating||this.nodes.forEach(k2),this.isUpdating=!1,this.nodes.forEach(A2),this.nodes.forEach(S2),this.nodes.forEach(E2),this.clearAllSnapshots();const i=performance.now();Be.delta=Qt(0,1e3/60,i-Be.timestamp),Be.timestamp=i,Be.isProcessing=!0,Xs.update.process(Be),Xs.preRender.process(Be),Xs.render.process(Be),Be.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(I2),this.sharedNodes.forEach(L2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ee.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ee.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ve(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform,i=this.projectionDelta&&!vf(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(i||Cr(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const i=this.measurePageBox();let l=this.removeElementScroll(i);return s&&(l=this.removeTransform(l)),z2(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Ve();const i=s.measureViewportBox(),{scroll:l}=this.root;return l&&(rr(i.x,l.offset.x),rr(i.y,l.offset.y)),i}removeElementScroll(s){const i=Ve();ft(i,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;if(c!==this.root&&u&&d.layoutScroll){if(u.isRoot){ft(i,s);const{scroll:p}=this.root;p&&(rr(i.x,-p.offset.x),rr(i.y,-p.offset.y))}rr(i.x,u.offset.x),rr(i.y,u.offset.y)}}return i}applyTransform(s,i=!1){const l=Ve();ft(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Xr(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Cr(u.latestValues)&&Xr(l,u.latestValues)}return Cr(this.latestValues)&&Xr(l,this.latestValues),l}removeTransform(s){const i=Ve();ft(i,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Cr(c.latestValues))continue;Si(c.latestValues)&&c.updateSnapshot();const u=Ve(),d=c.measurePageBox();ft(u,d),mf(i,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Cr(this.latestValues)&&mf(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==Be.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var i;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:d,layoutId:p}=this.options;if(!(!this.layout||!(d||p))){if(this.resolvedRelativeTargetAt=Be.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),Bn(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ve(),this.targetWithTransforms=Ve()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Wb(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ft(this.target,this.layout.layoutBox),Zd(this.target,this.targetDelta)):ft(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),Bn(this.relativeTargetOrigin,this.target,h.target),ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Pr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Si(this.parent.latestValues)||qd(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const i=this.getLead(),l=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Be.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;ft(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;Qb(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox);const{target:g}=i;if(!g){this.projectionTransform&&(this.projectionDelta=Qr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Qr(),this.projectionDeltaWithTransform=Qr());const b=this.projectionTransform;Wn(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=xf(this.projectionDelta,this.treeScale),(this.projectionTransform!==b||this.treeScale.x!==p||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Pr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,i=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=Qr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;const p=Ve(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=h!==g,y=this.getStack(),P=!y||y.members.length<=1,x=!!(b&&!P&&this.options.crossfade===!0&&!this.path.some(F2));this.animationProgress=0;let C;this.mixTargetDelta=S=>{const $=S/1e3;Sf(d.x,s.x,$),Sf(d.y,s.y,$),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bn(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_2(this.relativeTarget,this.relativeTargetOrigin,p,$),C&&g2(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Ve()),ft(C,this.relativeTarget)),b&&(this.animationValues=u,u2(u,c,this.latestValues,$,x,P)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(jt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ee.update(()=>{ma.hasAnimatedSinceResize=!0,this.currentAnimation=P2(0,Cf,{...s,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Cf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:i,target:l,layout:c,latestValues:u}=s;if(!(!i||!l||!c)){if(this!==s&&this.layout&&c&&kf(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ve();const d=ot(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const p=ot(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p}ft(i,l),Xr(i,u),Wn(this.projectionDeltaWithTransform,this.layoutCorrected,i,u)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new v2),this.sharedNodes.get(s).add(i);const c=i.options.initialPromotionConfig;i.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(i):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:i}=this.options;return i?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:i}=this.options;return i?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let i=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(i=!0),!i)return;const c={};for(let u=0;u<wf.length;u++){const d="rotate"+wf[u];l[d]&&(c[d]=l[d],s.setStaticValue(d,0))}s.render();for(const u in c)s.setStaticValue(u,c[u]);s.scheduleRender()}getProjectionStyles(s){var i,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return M2;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=oa(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=oa(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Cr(this.latestValues)&&(b.transform=u?u({},""):"none",this.hasProjected=!1),b}const p=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=xf(this.projectionDeltaWithTransform,this.treeScale,p),u&&(c.transform=u(p,c.transform));const{x:h,y:g}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(i=p.opacity)!==null&&i!==void 0?i:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=d===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in Jo){if(p[b]===void 0)continue;const{correct:y,applyTo:P}=Jo[b],x=c.transform==="none"?p[b]:y(p[b],d);if(P){const C=P.length;for(let S=0;S<C;S++)c[P[S]]=x}else c[b]=x}return this.options.layoutId&&(c.pointerEvents=d===this?oa(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var i;return(i=s.currentAnimation)===null||i===void 0?void 0:i.stop()}),this.root.nodes.forEach(Mf),this.root.sharedNodes.clear()}}}function S2(e){e.updateLayout()}function E2(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:a}=e.options,s=r.source!==e.layout.source;a==="size"?St(d=>{const p=s?r.measuredBox[d]:r.layoutBox[d],h=ot(p);p.min=n[d].min,p.max=p.min+h}):kf(a,r.layoutBox,n)&&St(d=>{const p=s?r.measuredBox[d]:r.layoutBox[d],h=ot(n[d]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const i=Qr();Wn(i,n,r.layoutBox);const l=Qr();s?Wn(l,e.applyTransform(o,!0),r.measuredBox):Wn(l,n,r.layoutBox);const c=!vf(i);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:h}=d;if(p&&h){const g=Ve();Bn(g,r.layoutBox,p.layoutBox);const b=Ve();Bn(b,n,h.layoutBox),bf(g,b)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:i,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function $2(e){Pr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function D2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function I2(e){e.clearSnapshot()}function Mf(e){e.clearMeasurements()}function k2(e){e.isLayoutDirty=!1}function A2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Tf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function O2(e){e.resolveTargetDelta()}function N2(e){e.calcProjection()}function j2(e){e.resetRotation()}function L2(e){e.removeLeadSnapshot()}function Sf(e,t,r){e.translate=Ne(t.translate,0,r),e.scale=Ne(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Ef(e,t,r,n){e.min=Ne(t.min,r.min,n),e.max=Ne(t.max,r.max,n)}function _2(e,t,r,n){Ef(e.x,t.x,r.x,n),Ef(e.y,t.y,r.y,n)}function F2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const V2={duration:.45,ease:[.4,0,.1,1]},$f=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Df=$f("applewebkit/")&&!$f("chrome/")?Math.round:Le;function If(e){e.min=Df(e.min),e.max=Df(e.max)}function z2(e){If(e.x),If(e.y)}function kf(e,t,r){return e==="position"||e==="preserve-aspect"&&!Pi(yf(t),yf(r),.2)}const W2=Pf({attachResizeListener:(e,t)=>Lt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$i={current:void 0},Af=Pf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$i.current){const e=new W2({});e.mount(window),e.setOptions({layoutScroll:!0}),$i.current=e}return $i.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),B2={pan:{Feature:o2},drag:{Feature:n2,ProjectionNode:Af,MeasureLayout:af}},R2=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function K2(e){const t=R2.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}const U2=4;function Di(e,t,r=1){bt(r<=U2,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,o]=K2(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const s=a.trim();return Id(s)?parseFloat(s):s}else return Ks(o)?Di(o,t,r+1):o}function H2(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const a=o.get();if(!Ks(a))return;const s=Di(a,n);s&&o.set(s)});for(const o in t){const a=t[o];if(!Ks(a))continue;const s=Di(a,n);s&&(t[o]=s,r||(r={}),r[o]===void 0&&(r[o]=a))}return{target:t,transitionEnd:r}}const Y2=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Of=e=>Y2.has(e),G2=e=>Object.keys(e).some(Of),ga=e=>e===yr||e===oe,Nf=(e,t)=>parseFloat(e.split(", ")[t]),jf=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return Nf(o[1],t);{const a=n.match(/^matrix\((.+)\)$/);return a?Nf(a[1],e):0}},q2=new Set(["x","y","z"]),Q2=kn.filter(e=>!q2.has(e));function X2(e){const t=[];return Q2.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Zr={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:jf(4,13),y:jf(5,14)};Zr.translateX=Zr.x,Zr.translateY=Zr.y;const Z2=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,a=getComputedStyle(o),{display:s}=a,i={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(c=>{i[c]=Zr[c](n,a)}),t.render();const l=t.measureViewportBox();return r.forEach(c=>{const u=t.getValue(c);u&&u.jump(i[c]),e[c]=Zr[c](l,a)}),e},J2=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(Of);let a=[],s=!1;const i=[];if(o.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let u=r[l],d=zn(u);const p=t[l];let h;if(na(p)){const g=p.length,b=p[0]===null?1:0;u=p[b],d=zn(u);for(let y=b;y<g&&p[y]!==null;y++)h?bt(zn(p[y])===h,"All keyframes must be of the same type"):(h=zn(p[y]),bt(h===d||ga(d)&&ga(h),"Keyframes must be of the same dimension as the current value"))}else h=zn(p);if(d!==h)if(ga(d)&&ga(h)){const g=c.get();typeof g=="string"&&c.set(parseFloat(g)),typeof p=="string"?t[l]=parseFloat(p):Array.isArray(p)&&h===oe&&(t[l]=p.map(parseFloat))}else d!=null&&d.transform&&(h!=null&&h.transform)&&(u===0||p===0)?u===0?c.set(h.transform(u)):t[l]=d.transform(p):(s||(a=X2(e),s=!0),i.push(l),n[l]=n[l]!==void 0?n[l]:t[l],c.jump(p))}),i.length){const l=i.indexOf("height")>=0?window.pageYOffset:null,c=Z2(t,e,i);return a.length&&a.forEach(([u,d])=>{e.getValue(u).set(d)}),e.render(),Qo&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:t,transitionEnd:n}};function ey(e,t,r,n){return G2(t)?J2(e,t,r,n):{target:t,transitionEnd:n}}const ty=(e,t,r,n)=>{const o=H2(e,t,n);return t=o.target,n=o.transitionEnd,ey(e,t,r,n)},Ii={current:null},Lf={current:!1};function ry(){if(Lf.current=!0,!!Qo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ii.current=e.matches;e.addListener(t),t()}else Ii.current=!1}function ny(e,t,r){const{willChange:n}=t;for(const o in t){const a=t[o],s=r[o];if(Xe(a))e.addValue(o,a),fa(n)&&n.add(o),process.env.NODE_ENV==="development"&&yi(a.version==="10.16.16",`Attempting to mix Framer Motion versions ${a.version} with 10.16.16 may not work as expected.`);else if(Xe(s))e.addValue(o,qr(a,{owner:e})),fa(n)&&n.remove(o);else if(s!==a)if(e.hasValue(o)){const i=e.getValue(o);!i.hasAnimated&&i.set(a)}else{const i=e.getStaticValue(o);e.addValue(o,qr(i!==void 0?i:a,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const _f=new WeakMap,Ff=Object.keys(Dn),oy=Ff.length,Vf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ay=Bs.length;class sy{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>Ee.render(this.render,!1,!0);const{latestValues:i,renderState:l}=a;this.latestValues=i,this.baseTarget={...i},this.initialValues=r.initial?{...i}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Zo(r),this.isVariantNode=vu(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(r,{});for(const d in u){const p=u[d];i[d]!==void 0&&Xe(p)&&(p.set(i[d],!1),fa(c)&&c.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,_f.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Lf.current||ry(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ii.current,process.env.NODE_ENV!=="production"&&yi(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){_f.delete(this.current),this.projection&&this.projection.unmount(),jt(this.notifyUpdate),jt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=br.has(t),o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Ee.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,a){let s,i;if(process.env.NODE_ENV!=="production"&&o&&n){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";r.ignoreStrict?Ln(!1,l):bt(!1,l)}for(let l=0;l<oy;l++){const c=Ff[l],{isEnabled:u,Feature:d,ProjectionNode:p,MeasureLayout:h}=Dn[c];p&&(s=p),u(r)&&(!this.features[c]&&d&&(this.features[c]=new d(this)),h&&(i=h))}if(!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:u,dragConstraints:d,layoutScroll:p,layoutRoot:h}=r;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||d&&Yr(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:a,layoutScroll:p,layoutRoot:h})}return i}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ve()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<Vf.length;n++){const o=Vf[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a=t["on"+o];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=ny(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;n<ay;n++){const o=Bs[n],a=this.props[o];($n(a)||a===!1)&&(r[o]=a)}return r}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=qr(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=Qs(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Xe(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new bi),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class zf extends sy{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},a){let s=Cb(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),s&&(s=o(s))),a){xb(this,n,s);const i=ty(this,n,s,r);r=i.transitionEnd,n=i.target}return{transition:t,transitionEnd:r,...n}}}function iy(e){return window.getComputedStyle(e)}class ly extends zf{readValueFromInstance(t,r){if(br.has(r)){const n=pi(r);return n&&n.default||0}else{const n=iy(t),o=(Pu(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return tf(t,r)}build(t,r,n,o){Us(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return qs(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Xe(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){Au(t,r,n,o)}}class cy extends zf{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(br.has(r)){const n=pi(r);return n&&n.default||0}return r=Ou.has(r)?r:zs(r),t.getAttribute(r)}measureInstanceViewportBox(){return Ve()}scrapeMotionValuesFromProps(t,r){return ju(t,r)}build(t,r,n,o){Ys(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){Nu(t,r,n,o)}mount(t){this.isSVGTag=Gs(t.tagName),super.mount(t)}}const uy=(e,t)=>Rs(e)?new cy(t,{enableHardwareAcceleration:!1}):new ly(t,{enableHardwareAcceleration:!0}),dy={..._b,...lv,...B2,...{layout:{ProjectionNode:Af,MeasureLayout:af}}},Wf=vg((e,t)=>qg(e,t,dy,uy));function Bf(){const e=f.useRef(!1);return Vs(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Rf(){const e=Bf(),[t,r]=f.useState(0),n=f.useCallback(()=>{e.current&&r(t+1)},[t]);return[f.useCallback(()=>Ee.postRender(n),[n]),t]}class fy extends G.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function py({children:e,isPresent:t}){const r=f.useId(),n=f.useRef(null),o=f.useRef({width:0,height:0,top:0,left:0});return f.useInsertionEffect(()=>{const{width:a,height:s,top:i,left:l}=o.current;if(t||!n.current||!a||!s)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
27
|
+
Check the top-level render call using <`+_+">.")}return A}}function xo(v,A){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var _=Vl(A);if(yo[_])return;yo[_]=!0;var B="";v&&v._owner&&v._owner!==ct.current&&(B=" It was passed a child from "+w(v._owner.type)+"."),ut(v),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,B),ut(null)}}function wo(v,A){{if(typeof v!="object")return;if(et(v))for(var _=0;_<v.length;_++){var B=v[_];jr(B)&&xo(B,A)}else if(jr(v))v._store&&(v._store.validated=!0);else if(v){var J=y(v);if(typeof J=="function"&&J!==v.entries)for(var ne=J.call(v),q;!(q=ne.next()).done;)jr(q.value)&&xo(q.value,A)}}}function zl(v){{var A=v.type;if(A==null||typeof A=="string")return;var _;if(typeof A=="function")_=A.propTypes;else if(typeof A=="object"&&(A.$$typeof===l||A.$$typeof===d))_=A.propTypes;else return;if(_){var B=w(A);It(_,v.props,"prop",B,v)}else if(A.PropTypes!==void 0&&!Nr){Nr=!0;var J=w(A);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",J||"Unknown")}typeof A.getDefaultProps=="function"&&!A.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Wl(v){{for(var A=Object.keys(v.props),_=0;_<A.length;_++){var B=A[_];if(B!=="children"&&B!=="key"){ut(v),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B),ut(null);break}}v.ref!==null&&(ut(v),x("Invalid attribute `ref` supplied to `React.Fragment`."),ut(null))}}function Co(v,A,_,B,J,ne){{var q=I(v);if(!q){var Y="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(Y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ce=Fl(J);Ce?Y+=Ce:Y+=bo();var le;v===null?le="null":et(v)?le="array":v!==void 0&&v.$$typeof===t?(le="<"+(w(v.type)||"Unknown")+" />",Y=" Did you accidentally export a JSX literal instead of a component?"):le=typeof v,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",le,Y)}var de=ue(v,A,_,J,ne);if(de==null)return de;if(q){var Ae=A.children;if(Ae!==void 0)if(B)if(et(Ae)){for(var dt=0;dt<Ae.length;dt++)wo(Ae[dt],v);Object.freeze&&Object.freeze(Ae)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else wo(Ae,v)}return v===n?Wl(de):zl(de),de}}function Bl(v,A,_){return Co(v,A,_,!0)}function Rl(v,A,_){return Co(v,A,_,!1)}var Kl=Rl,Ul=Bl;gn.Fragment=n,gn.jsx=Kl,gn.jsxs=Ul}()),gn}process.env.NODE_ENV==="production"?Qa.exports=Pp():Qa.exports=Mp();var L=Qa.exports,ql=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ke=e=>!e||typeof e!="object"||Object.keys(e).length===0,Tp=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Ql(e,t){e.forEach(function(r){Array.isArray(r)?Ql(r,t):t.push(r)})}function Xl(e){let t=[];return Ql(e,t),t}var Sp=(...e)=>Xl(e).filter(Boolean),Zl=(e,t)=>{let r={},n=Object.keys(e),o=Object.keys(t);for(let a of n)if(o.includes(a)){let s=e[a],i=t[a];typeof s=="object"&&typeof i=="object"?r[a]=Zl(s,i):r[a]=i+" "+s}else r[a]=e[a];for(let a of o)n.includes(a)||(r[a]=t[a]);return r},Jl=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function Ep(){for(var e=0,t,r,n="";e<arguments.length;)(t=arguments[e++])&&(r=ec(t))&&(n&&(n+=" "),n+=r);return n}function ec(e){if(typeof e=="string")return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=ec(e[n]))&&(r&&(r+=" "),r+=t);return r}var Xa="-";function $p(e){var t=Ip(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,o=n===void 0?{}:n;function a(i){var l=i.split(Xa);return l[0]===""&&l.length!==1&&l.shift(),tc(l,t)||Dp(i)}function s(i,l){var c=r[i]||[];return l&&o[i]?[].concat(c,o[i]):c}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function tc(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),o=n?tc(e.slice(1),n):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(Xa);return(s=t.validators.find(function(i){var l=i.validator;return l(a)}))==null?void 0:s.classGroupId}}var rc=/^\[(.+)\]$/;function Dp(e){if(rc.test(e)){var t=rc.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Ip(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},o=Ap(Object.entries(e.classGroups),r);return o.forEach(function(a){var s=a[0],i=a[1];Za(i,n,s,t)}),n}function Za(e,t,r,n){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:nc(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(kp(o)){Za(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(function(s){var i=s[0],l=s[1];Za(l,nc(t,i),r,n)})})}function nc(e,t){var r=e;return t.split(Xa).forEach(function(n){r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function kp(e){return e.isThemeGetter}function Ap(e,t){return t?e.map(function(r){var n=r[0],o=r[1],a=o.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(i){var l=i[0],c=i[1];return[t+l,c]})):s});return[n,a]}):e}function Op(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function o(a,s){r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)}return{get:function(s){var i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set:function(s,i){r.has(s)?r.set(s,i):o(s,i)}}}var oc="!";function Np(e){var t=e.separator||":",r=t.length===1,n=t[0],o=t.length;return function(s){for(var i=[],l=0,c=0,u,d=0;d<s.length;d++){var p=s[d];if(l===0){if(p===n&&(r||s.slice(d,d+o)===t)){i.push(s.slice(c,d)),c=d+o;continue}if(p==="/"){u=d;continue}}p==="["?l++:p==="]"&&l--}var h=i.length===0?s:s.substring(c),g=h.startsWith(oc),b=g?h.substring(1):h,y=u&&u>c?u-c:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:y}}}function jp(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var o=n[0]==="[";o?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function Lp(e){return{cache:Op(e.cacheSize),splitModifiers:Np(e),...$p(e)}}var _p=/\s+/;function Fp(e,t){var r=t.splitModifiers,n=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(_p).map(function(s){var i=r(s),l=i.modifiers,c=i.hasImportantModifier,u=i.baseClassName,d=i.maybePostfixModifierPosition,p=n(d?u.substring(0,d):u),h=!!d;if(!p){if(!d)return{isTailwindClass:!1,originalClassName:s};if(p=n(u),!p)return{isTailwindClass:!1,originalClassName:s};h=!1}var g=jp(l).join(":"),b=c?g+oc:g;return{isTailwindClass:!0,modifierId:b,classGroupId:p,originalClassName:s,hasPostfixModifier:h}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var i=s.modifierId,l=s.classGroupId,c=s.hasPostfixModifier,u=i+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(d){return a.add(i+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function Ja(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o,a,s=i;function i(c){var u=t[0],d=t.slice(1),p=d.reduce(function(h,g){return g(h)},u());return n=Lp(p),o=n.cache.get,a=n.cache.set,s=l,l(c)}function l(c){var u=o(c);if(u)return u;var d=Fp(c,n);return a(c,d),d}return function(){return s(Ep.apply(null,arguments))}}function ke(e){var t=function(n){return n[e]||[]};return t.isThemeGetter=!0,t}var ac=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vp=/^\d+\/\d+$/,zp=new Set(["px","full","screen"]),Wp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rp=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function gt(e){return cr(e)||zp.has(e)||Vp.test(e)||es(e)}function es(e){return ur(e,"length",qp)}function Kp(e){return ur(e,"size",sc)}function Up(e){return ur(e,"position",sc)}function Hp(e){return ur(e,"url",Qp)}function Mo(e){return ur(e,"number",cr)}function cr(e){return!Number.isNaN(Number(e))}function Yp(e){return e.endsWith("%")&&cr(e.slice(0,-1))}function vn(e){return ic(e)||ur(e,"number",ic)}function ve(e){return ac.test(e)}function bn(){return!0}function Yt(e){return Wp.test(e)}function Gp(e){return ur(e,"",Xp)}function ur(e,t,r){var n=ac.exec(e);return n?n[1]?n[1]===t:r(n[2]):!1}function qp(e){return Bp.test(e)}function sc(){return!1}function Qp(e){return e.startsWith("url(")}function ic(e){return Number.isInteger(Number(e))}function Xp(e){return Rp.test(e)}function ts(){var e=ke("colors"),t=ke("spacing"),r=ke("blur"),n=ke("brightness"),o=ke("borderColor"),a=ke("borderRadius"),s=ke("borderSpacing"),i=ke("borderWidth"),l=ke("contrast"),c=ke("grayscale"),u=ke("hueRotate"),d=ke("invert"),p=ke("gap"),h=ke("gradientColorStops"),g=ke("gradientColorStopPositions"),b=ke("inset"),y=ke("margin"),P=ke("opacity"),x=ke("padding"),C=ke("saturate"),S=ke("scale"),$=ke("sepia"),N=ke("skew"),j=ke("space"),m=ke("translate"),D=function(){return["auto","contain","none"]},I=function(){return["auto","hidden","clip","visible","scroll"]},T=function(){return["auto",ve,t]},k=function(){return[ve,t]},w=function(){return["",gt]},M=function(){return["auto",cr,ve]},O=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},F=function(){return["solid","dashed","dotted","double","none"]},E=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},V=function(){return["start","end","center","between","around","evenly","stretch"]},H=function(){return["","0",ve]},R=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},W=function(){return[cr,Mo]},ee=function(){return[cr,ve]};return{cacheSize:500,theme:{colors:[bn],spacing:[gt],blur:["none","",Yt,ve],brightness:W(),borderColor:[e],borderRadius:["none","","full",Yt,ve],borderSpacing:k(),borderWidth:w(),contrast:W(),grayscale:H(),hueRotate:ee(),invert:H(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[Yp,es],inset:T(),margin:T(),opacity:W(),padding:k(),saturate:W(),scale:W(),sepia:H(),skew:ee(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",ve]}],container:["container"],columns:[{columns:[Yt]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(O(),[ve])}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",vn]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ve]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",vn]}],"grid-cols":[{"grid-cols":[bn]}],"col-start-end":[{col:["auto",{span:["full",vn]},ve]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[bn]}],"row-start-end":[{row:["auto",{span:[vn]},ve]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ve]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ve]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(V())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(V(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(V(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ve,t]}],"min-w":[{"min-w":["min","max","fit",ve,gt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Yt]},Yt,ve]}],h:[{h:[ve,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ve,gt]}],"max-h":[{"max-h":[ve,t,"min","max","fit"]}],"font-size":[{text:["base",Yt,es]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Mo]}],"font-family":[{font:[bn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ve]}],"line-clamp":[{"line-clamp":["none",cr,Mo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ve,gt]}],"list-image":[{"list-image":["none",ve]}],"list-style-type":[{list:["none","disc","decimal",ve]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(F(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",gt]}],"underline-offset":[{"underline-offset":["auto",ve,gt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(O(),[Up])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Kp]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Hp]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[].concat(F(),["hidden"])}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(F())}],"outline-offset":[{"outline-offset":[ve,gt]}],"outline-w":[{outline:[gt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[gt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Yt,Gp]}],"shadow-color":[{shadow:[bn]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":E()}],"bg-blend":[{"bg-blend":E()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Yt,ve]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[C]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ve]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",ve]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",ve]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[vn,ve]}],"translate-x":[{"translate-x":[m]}],"translate-y":[{"translate-y":[m]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ve]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ve]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gt,Mo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function Zp(e,t){for(var r in t)lc(e,r,t[r]);return e}var Jp=Object.prototype.hasOwnProperty,eh=new Set(["string","number","boolean"]);function lc(e,t,r){if(!Jp.call(e,t)||eh.has(typeof r)||r===null){e[t]=r;return}if(Array.isArray(r)&&Array.isArray(e[t])){e[t]=e[t].concat(r);return}if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=r;return}for(var n in r)lc(e[t],n,r[n])}}function th(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return typeof e=="function"?Ja.apply(void 0,[ts,e].concat(r)):Ja.apply(void 0,[function(){return Zp(ts(),e)}].concat(r))}var cc=Ja(ts),rh={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},uc=e=>e||void 0,To=(...e)=>uc(Xl(e).filter(Boolean).join(" ")),rs=null,So={},ns=!1,yn=(...e)=>t=>t.twMerge?((!rs||ns)&&(ns=!1,rs=Ke(So)?cc:th(So)),uc(rs(To(e)))):To(e),dc=(e,t)=>{for(let r in t)e.hasOwnProperty(r)?e[r]=To(e[r],t[r]):e[r]=t[r];return e},we=(e,t)=>{let{extend:r=null,slots:n={},variants:o={},compoundVariants:a=[],compoundSlots:s=[],defaultVariants:i={}}=e,l={...rh,...t},c=r!=null&&r.base?To(r.base,e==null?void 0:e.base):e==null?void 0:e.base,u=r!=null&&r.variants&&!Ke(r.variants)?Zl(o,r.variants):o,d=r!=null&&r.defaultVariants&&!Ke(r.defaultVariants)?{...r.defaultVariants,...i}:i;!Ke(l.twMergeConfig)&&!Tp(l.twMergeConfig,So)&&(ns=!0,So=l.twMergeConfig);let p=Ke(n)?{}:{base:e==null?void 0:e.base,...n},h=Ke(r==null?void 0:r.slots)?p:dc({...r==null?void 0:r.slots},Ke(p)?{base:e==null?void 0:e.base}:p),g=y=>{if(Ke(u)&&Ke(n)&&Ke(r==null?void 0:r.slots))return yn(c,y==null?void 0:y.class,y==null?void 0:y.className)(l);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof a}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let P=(T,k,w=[],M)=>{let O=w;if(typeof k=="string")O=O.concat(Jl(k).split(" ").map(F=>`${T}:${F}`));else if(Array.isArray(k))O=O.concat(k.reduce((F,E)=>F.concat(`${T}:${E}`),[]));else if(typeof k=="object"&&typeof M=="string"){for(let F in k)if(k.hasOwnProperty(F)&&F===M){let E=k[F];if(E&&typeof E=="string"){let V=Jl(E);O[M]?O[M]=O[M].concat(V.split(" ").map(H=>`${T}:${H}`)):O[M]=V.split(" ").map(H=>`${T}:${H}`)}else Array.isArray(E)&&E.length>0&&(O[M]=E.reduce((V,H)=>V.concat(`${T}:${H}`),[]))}}return O},x=(T,k=u,w=null,M=null)=>{var O;let F=k[T];if(!F||Ke(F))return null;let E=(O=M==null?void 0:M[T])!=null?O:y==null?void 0:y[T];if(E===null)return null;let V=ql(E),H=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,R=d==null?void 0:d[T],W=[];if(typeof V=="object"&&H)for(let[U,re]of Object.entries(V)){let X=F[re];if(U==="initial"){R=re;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(U)||(W=P(U,X,W,w))}let ee=F[V]||F[ql(R)];return typeof W=="object"&&typeof w=="string"&&W[w]?dc(W,ee):W.length>0?(W.push(ee),W):ee},C=()=>u?Object.keys(u).map(T=>x(T,u)):null,S=(T,k)=>{if(!u||typeof u!="object")return null;let w=new Array;for(let M in u){let O=x(M,u,T,k),F=T==="base"&&typeof O=="string"?O:O&&O[T];F&&(w[w.length]=F)}return w},$={};for(let T in y)y[T]!==void 0&&($[T]=y[T]);let N=(T,k)=>{var w;let M=typeof(y==null?void 0:y[T])=="object"?{[T]:(w=y[T])==null?void 0:w.initial}:{};return{...d,...$,...M,...k}},j=(T=[],k)=>{let w=[];for(let{class:M,className:O,...F}of T){let E=!0;for(let[V,H]of Object.entries(F)){let R=N(V,k);if(Array.isArray(H)){if(!H.includes(R[V])){E=!1;break}}else if(R[V]!==H){E=!1;break}}E&&(M&&w.push(M),O&&w.push(O))}return w},m=T=>{let k=j(a,T),w=j(r==null?void 0:r.compoundVariants,T);return Sp(w,k)},D=T=>{let k=m(T);if(!Array.isArray(k))return k;let w={};for(let M of k)if(typeof M=="string"&&(w.base=yn(w.base,M)(l)),typeof M=="object")for(let[O,F]of Object.entries(M))w[O]=yn(w[O],F)(l);return w},I=T=>{if(s.length<1)return null;let k={};for(let{slots:w=[],class:M,className:O,...F}of s){if(!Ke(F)){let E=!0;for(let V of Object.keys(F)){let H=N(V,T)[V];if(H===void 0||(Array.isArray(F[V])?!F[V].includes(H):F[V]!==H)){E=!1;break}}if(!E)continue}for(let E of w)k[E]=k[E]||[],k[E].push([M,O])}return k};if(!Ke(n)||!Ke(r==null?void 0:r.slots)){let T={};if(typeof h=="object"&&!Ke(h))for(let k of Object.keys(h))T[k]=w=>{var M,O;return yn(h[k],S(k,w),((M=D(w))!=null?M:[])[k],((O=I(w))!=null?O:[])[k],w==null?void 0:w.class,w==null?void 0:w.className)(l)};return T}return yn(c,C(),m(),y==null?void 0:y.class,y==null?void 0:y.className)(l)},b=()=>{if(!(!u||typeof u!="object"))return Object.keys(u)};return g.variantKeys=b(),g.extend=r,g.base=c,g.slots=h,g.variants=u,g.defaultVariants=d,g.compoundSlots=s,g.compoundVariants=a,g};const nh=258,oh=70,ah=223,sh=266;function ih({variant:e="default",className:t,short:r,width:n,height:o}){let a=r?ah:nh,s=r?sh:oh;const i=a/s;n&&(a=n,s=parseFloat((n/i).toFixed(2))),o&&(s=o,a=parseFloat((o*i).toFixed(2)));const l=we({base:"",variants:{variant:{default:"fill-secondary-green-500",dark:"fill-primary-green-500",light:"fill-white"}}});return r?L.jsx("svg",{preserveAspectRatio:"none",width:a,height:s,viewBox:"0 0 223 266",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:l({variant:e,className:t}),children:L.jsx("path",{d:"M222.964 194.18V85.6459C222.964 85.2381 222.88 84.8344 222.718 84.458C222.556 84.0816 222.319 83.74 222.02 83.4529C221.721 83.1657 221.366 82.9388 220.975 82.7852C220.585 82.6316 220.167 82.5543 219.746 82.5577H182.608C182.191 82.5577 181.777 82.6378 181.392 82.7933C181.006 82.9488 180.656 83.1767 180.362 83.4638C180.068 83.7509 179.836 84.0916 179.678 84.4661C179.521 84.8406 179.442 85.2416 179.445 85.6459V171.586C177.727 171.586 176.719 171.586 176.364 171.586C164.721 170.029 159.213 167.178 152.914 161.028C146.616 154.878 144.516 146.089 144.025 135.637V104.914C144.03 104.501 143.948 104.091 143.784 103.71C143.62 103.329 143.377 102.984 143.071 102.697L121.966 82.9009L101.434 62.498C101.143 62.1997 100.792 61.9617 100.403 61.7984C100.014 61.6351 99.5947 61.5498 99.1707 61.5478H66.0684C66.7731 54.8644 69.6353 48.5659 74.2486 43.5468C77.1792 40.3682 80.7538 37.8071 84.7504 36.0226C88.7469 34.2381 93.08 33.2684 97.4802 33.1738C98.2977 33.14 99.0706 32.8033 99.639 32.2335C100.207 31.6636 100.528 30.9041 100.534 30.112V2.66184C100.546 2.04062 100.331 1.43533 99.9266 0.952523C99.5226 0.469716 98.9556 0.140347 98.3255 0.0223983H97.7529C97.5176 -0.00746611 97.2792 -0.00746611 97.0439 0.0223983C84.1284 0.266286 71.4425 3.37237 59.9605 9.10208C49.7635 14.1971 41.0132 21.6355 34.4766 30.7653C27.94 39.8951 23.8167 50.4375 22.4681 61.4686H3.163C2.32163 61.4756 1.51715 61.804 0.924744 62.3824C0.332339 62.9608 -3.07314e-05 63.7423 2.13119e-09 64.5568V100.612C2.13119e-09 101.014 0.0817794 101.412 0.240735 101.783C0.39969 102.155 0.632697 102.492 0.926408 102.777C1.22012 103.061 1.56884 103.286 1.95259 103.44C2.33634 103.594 2.74763 103.673 3.163 103.673H21.841V201.517C21.841 201.922 21.9237 202.322 22.0844 202.695C22.245 203.068 22.4804 203.407 22.777 203.692C23.0736 203.976 23.4255 204.201 23.8124 204.354C24.1993 204.506 24.6136 204.583 25.0313 204.579H62.1691C62.5868 204.583 63.0011 204.506 63.388 204.354C63.7749 204.201 64.1268 203.976 64.4234 203.692C64.72 203.407 64.9554 203.068 65.116 202.695C65.2767 202.322 65.3595 201.922 65.3594 201.517V103.673H100.534V132.707C100.534 132.707 100.534 132.918 100.534 133.05C100.31 146.04 103.822 158.834 110.677 170.002C117.395 180.787 127.07 189.558 138.626 195.341C150.258 201.217 163.137 204.406 176.255 204.658H179.5C178.479 211.37 175.291 217.597 170.393 222.448C163.549 229.416 158.013 233.006 147.379 233.006C146.958 233.002 146.54 233.08 146.15 233.233C145.76 233.387 145.405 233.614 145.106 233.901C144.806 234.188 144.569 234.53 144.407 234.906C144.245 235.283 144.162 235.686 144.162 236.094V262.937C144.158 263.345 144.239 263.749 144.4 264.126C144.561 264.502 144.799 264.843 145.099 265.129C145.399 265.415 145.756 265.639 146.148 265.789C146.539 265.938 146.958 266.01 147.379 265.999C160.384 265.772 173.152 262.589 184.653 256.708C196.283 250.973 206.042 242.23 212.848 231.449C219.691 220.275 223.202 207.485 222.991 194.496C222.991 194.496 222.964 194.312 222.964 194.18Z"})}):L.jsxs("svg",{preserveAspectRatio:"none",width:a,height:s,viewBox:"0 0 258 70",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:l({variant:e,className:t}),children:[L.jsx("path",{d:"M44.1576 5.54621e-10H53.8953C54.117 5.54621e-10 54.3296 0.0853594 54.4864 0.2373C54.6431 0.389241 54.7312 0.595316 54.7312 0.810193V52.8634C54.7312 52.9694 54.7095 53.0745 54.6674 53.1724C54.6253 53.2703 54.5637 53.3591 54.486 53.4338C54.4082 53.5085 54.316 53.5675 54.2147 53.6075C54.1133 53.6474 54.0048 53.6675 53.8953 53.6666H44.1576C43.9378 53.6666 43.727 53.582 43.5716 53.4314C43.4162 53.2807 43.3289 53.0764 43.3289 52.8634V0.810193C43.3279 0.704125 43.3487 0.598926 43.3899 0.500669C43.4311 0.402411 43.492 0.31304 43.5691 0.237715C43.6461 0.162389 43.7378 0.102601 43.8388 0.0618008C43.9398 0.0210004 44.0482 -3.94095e-06 44.1576 5.54621e-10Z"}),L.jsx("path",{d:"M68.7089 51.2755C65.8506 49.7718 63.4549 47.4816 61.7891 44.6605C60.1032 41.7448 59.2396 38.4048 59.2947 35.0137C59.2396 31.6226 60.1032 28.2825 61.7891 25.3668C63.45 22.5364 65.8465 20.2384 68.7089 18.7312C71.8146 17.1539 75.2322 16.3335 78.6964 16.3335C82.1606 16.3335 85.5782 17.1539 88.6838 18.7312C91.5312 20.2475 93.9147 22.5442 95.5701 25.3668C97.251 28.2844 98.1121 31.6236 98.0578 35.0137C98.1121 38.4038 97.251 41.743 95.5701 44.6605C93.9093 47.4735 91.5268 49.7622 88.6838 51.2755C85.577 52.8486 82.1599 53.6668 78.6964 53.6668C75.2329 53.6668 71.8157 52.8486 68.7089 51.2755ZM85.1703 42.3177C86.8555 40.4802 87.6982 38.0432 87.6982 35.0068C87.6982 31.9703 86.8555 29.5379 85.1703 27.7096C84.3456 26.806 83.3434 26.093 82.2302 25.6178C81.1169 25.1426 79.9181 24.9161 78.7131 24.9534C77.5026 24.9186 76.2984 25.146 75.179 25.6209C74.0596 26.0957 73.0499 26.8074 72.2157 27.7096C70.5215 29.5287 69.6744 31.9657 69.6744 35.0206C69.6744 38.0754 70.5215 40.5078 72.2157 42.3177C73.0507 43.2189 74.0605 43.9299 75.1797 44.4047C76.2989 44.8795 77.5027 45.1075 78.7131 45.074C79.9179 45.1103 81.1166 44.8834 82.2297 44.4083C83.3428 43.9332 84.3451 43.2206 85.1703 42.3177Z"}),L.jsx("path",{d:"M187.827 5.54621e-10H197.565C197.787 5.54621e-10 197.999 0.0853594 198.156 0.2373C198.313 0.389241 198.401 0.595316 198.401 0.810193V52.8634C198.401 52.9694 198.379 53.0745 198.337 53.1724C198.295 53.2703 198.233 53.3591 198.156 53.4338C198.078 53.5085 197.986 53.5675 197.884 53.6075C197.783 53.6474 197.674 53.6675 197.565 53.6666H187.827C187.718 53.6666 187.611 53.6459 187.51 53.6055C187.41 53.5651 187.318 53.506 187.241 53.4314C187.164 53.3568 187.103 53.2682 187.062 53.1708C187.02 53.0733 186.999 52.9688 186.999 52.8634V0.810193C186.998 0.704125 187.018 0.598926 187.06 0.500669C187.101 0.402411 187.162 0.31304 187.239 0.237715C187.316 0.162389 187.407 0.102601 187.508 0.0618008C187.61 0.0210004 187.718 -3.94095e-06 187.827 5.54621e-10V5.54621e-10Z"}),L.jsx("path",{d:"M138.924 25.2187C137.26 22.3784 134.865 20.0701 132.005 18.5505C129.42 17.1729 126.578 16.3842 123.671 16.2378C123.128 16.1962 122.591 16.1408 122.027 16.1408C121.464 16.1408 120.927 16.1962 120.377 16.2378C117.94 16.3776 115.546 16.9589 113.304 17.955V0.810156C113.306 0.599481 113.227 0.396499 113.085 0.244956C112.944 0.0934118 112.75 0.00544026 112.546 0L103.406 0C103.198 0 102.998 0.0853555 102.851 0.237289C102.704 0.389223 102.621 0.59529 102.621 0.810156V52.861C102.623 53.0746 102.706 53.2789 102.853 53.4294C103 53.5798 103.199 53.6642 103.406 53.6642H112.546C112.752 53.6642 112.95 53.5796 113.096 53.4289C113.242 53.2783 113.324 53.074 113.324 52.861V51.8569C116.078 53.0793 119.049 53.6948 122.047 53.6642C125.51 53.718 128.931 52.8854 132.005 51.2407C134.853 49.7142 137.238 47.4069 138.897 44.5725C140.579 41.6406 141.441 38.285 141.386 34.8783C141.443 31.4859 140.591 28.1433 138.924 25.2187ZM128.523 42.2389C127.695 43.1457 126.691 43.8613 125.576 44.3387C124.461 44.8161 123.261 45.0445 122.054 45.0087C120.843 45.0424 119.638 44.8132 118.518 44.3361C117.398 43.859 116.387 43.1445 115.552 42.2389C114.427 40.9975 113.659 39.4587 113.331 37.7935C112.883 35.8844 112.883 33.8929 113.331 31.9839C113.659 30.3207 114.428 28.7842 115.552 27.5453C116.387 26.6387 117.397 25.9235 118.517 25.4463C119.638 24.9691 120.843 24.7406 122.054 24.7756C123.261 24.7385 124.462 24.9662 125.577 25.4437C126.692 25.9211 127.696 26.6375 128.523 27.5453C130.205 29.3918 131.046 31.8408 131.046 34.8921C131.046 37.9435 130.205 40.3924 128.523 42.2389Z"}),L.jsx("path",{d:"M171.742 17.1428V18.1215C169.01 16.9171 166.064 16.3092 163.092 16.3365C159.615 16.2772 156.179 17.1011 153.087 18.7349C150.224 20.2425 147.828 22.541 146.166 25.3719C144.48 28.2882 143.617 31.6289 143.672 35.0207C143.617 38.4125 144.48 41.7532 146.166 44.6695C147.834 47.4861 150.23 49.7718 153.087 51.2721C156.179 52.9037 159.616 53.7252 163.092 53.6636C166.064 53.693 169.009 53.0875 171.742 51.8855V52.8641C171.742 53.0762 171.824 53.2795 171.97 53.4294C172.116 53.5794 172.313 53.6636 172.52 53.6636H181.66C181.866 53.6636 182.064 53.5794 182.21 53.4294C182.355 53.2795 182.437 53.0762 182.437 52.8641V17.1428C182.437 16.9302 182.356 16.7261 182.21 16.5751C182.064 16.4241 181.866 16.3383 181.66 16.3365H172.52C172.313 16.3383 172.115 16.4241 171.969 16.5751C171.824 16.7261 171.742 16.9302 171.742 17.1428ZM169.549 42.3125C168.724 43.2155 167.722 43.9282 166.608 44.4035C165.495 44.8787 164.296 45.1056 163.092 45.0693C161.881 45.1028 160.677 44.8747 159.558 44.3998C158.439 43.9249 157.429 43.2138 156.594 42.3125C154.891 40.4746 154.039 38.0371 154.039 35C154.039 31.963 154.891 29.5255 156.594 27.6876C157.428 26.7852 158.438 26.0734 159.557 25.5984C160.677 25.1235 161.881 24.896 163.092 24.9308C164.297 24.8936 165.495 25.1201 166.609 25.5954C167.722 26.0707 168.724 26.7839 169.549 27.6876C170.66 28.9209 171.418 30.4446 171.742 32.0916C172.189 34.0033 172.189 35.9967 171.742 37.9085C171.416 39.5549 170.658 41.0781 169.549 42.3125Z"}),L.jsx("path",{d:"M41.0484 51.1316V17.1532C41.0485 16.9392 40.9619 16.7339 40.8076 16.582C40.6533 16.43 40.4437 16.3437 40.2246 16.3419H30.5438C30.3247 16.3437 30.1151 16.43 29.9608 16.582C29.8065 16.7339 29.7199 16.9392 29.7199 17.1532V18.2003C26.8101 16.9534 23.6643 16.3179 20.4866 16.335C16.8207 16.2935 13.2007 17.1342 9.9465 18.7828C6.92093 20.297 4.38759 22.6047 2.6309 25.4467C0.855237 28.3743 -0.0544231 31.7252 0.00296367 35.1271C-0.0590547 38.5392 0.853371 41.9008 2.638 44.8352C4.39099 47.6742 6.92257 49.9777 9.9465 51.4853C13.2111 53.1311 16.8413 53.9648 20.515 53.9123C23.7856 53.8752 27.015 53.196 30.0111 51.9152C30.0135 54.3789 29.0796 56.7559 27.3903 58.5861C25.6076 60.4167 24.116 61.3043 21.3318 61.3043C21.1127 61.3062 20.9031 61.3925 20.7488 61.5444C20.5945 61.6964 20.5079 61.9017 20.5079 62.1157V69.1887C20.5089 69.2968 20.5317 69.4036 20.5751 69.503C20.6185 69.6023 20.6817 69.6923 20.7609 69.7678C20.8402 69.8432 20.9339 69.9026 21.0368 69.9424C21.1397 69.9823 21.2496 70.0019 21.3603 70C24.7569 69.9521 28.0956 69.1331 31.112 67.6077C34.128 66.0809 36.6507 63.7667 38.3992 60.923C40.1863 57.9893 41.1012 54.6276 41.0413 51.2148C41.0413 51.2148 41.0484 51.1663 41.0484 51.1316ZM29.7199 37.8107C29.4003 39.553 28.5772 41.1698 27.3477 42.4706C26.475 43.379 25.4145 44.0961 24.2366 44.5742C23.0587 45.0524 21.7902 45.2808 20.515 45.2443C19.2361 45.2782 17.9641 45.0487 16.782 44.5708C15.5999 44.0929 14.5341 43.3773 13.654 42.4706C11.8594 40.6214 10.9598 38.1736 10.9551 35.1271C10.9503 32.0806 11.85 29.6328 13.654 27.7836C14.5349 26.878 15.6009 26.1631 16.7828 25.6852C17.9647 25.2074 19.2362 24.9773 20.515 25.0099C21.79 24.9747 23.0581 25.2037 24.2358 25.6818C25.4136 26.1599 26.4741 26.8762 27.3477 27.7836C28.5734 29.0842 29.396 30.6977 29.7199 32.4366C30.1081 34.2079 30.1081 36.0394 29.7199 37.8107Z"}),L.jsx("path",{d:"M257.684 51.0999V22.5384C257.684 22.4311 257.662 22.3248 257.621 22.2258C257.579 22.1267 257.519 22.0368 257.442 21.9613C257.366 21.8857 257.275 21.826 257.175 21.7856C257.076 21.7451 256.969 21.7248 256.861 21.7257H247.366C247.26 21.7257 247.154 21.7468 247.055 21.7877C246.957 21.8286 246.867 21.8886 246.792 21.9642C246.717 22.0397 246.658 22.1294 246.617 22.2279C246.577 22.3265 246.557 22.432 246.558 22.5384V45.1542C246.119 45.1542 245.861 45.1542 245.77 45.1542C242.793 44.7444 241.385 43.9943 239.775 42.3759C238.165 40.7575 237.628 38.4445 237.502 35.6939V27.6089C237.504 27.5002 237.483 27.3924 237.441 27.2921C237.399 27.1918 237.337 27.101 237.258 27.0254L231.863 21.816L226.614 16.4468C226.539 16.3683 226.449 16.3057 226.35 16.2627C226.251 16.2198 226.143 16.1973 226.035 16.1968H217.572C217.752 14.438 218.484 12.7805 219.663 11.4597C220.413 10.6232 221.327 9.94923 222.348 9.47962C223.37 9.01002 224.478 8.75484 225.603 8.72994C225.812 8.72104 226.009 8.63245 226.155 8.48249C226.3 8.33253 226.382 8.13267 226.384 7.92422V0.700484C226.386 0.537006 226.331 0.377718 226.228 0.250664C226.125 0.123609 225.98 0.0369334 225.819 0.00589429H225.672C225.612 -0.00196476 225.551 -0.00196476 225.491 0.00589429C222.189 0.0700753 218.946 0.887465 216.011 2.39528C213.404 3.73607 211.166 5.69354 209.495 8.09612C207.824 10.4987 206.77 13.273 206.425 16.1759H201.49C201.275 16.1778 201.069 16.2642 200.918 16.4164C200.766 16.5686 200.681 16.7743 200.681 16.9886V26.4767C200.681 26.5825 200.702 26.6873 200.743 26.7851C200.783 26.8828 200.843 26.9716 200.918 27.0465C200.993 27.1213 201.082 27.1806 201.18 27.2211C201.278 27.2616 201.384 27.2824 201.49 27.2824H206.265V53.0309C206.265 53.1373 206.286 53.2426 206.327 53.3408C206.368 53.439 206.428 53.5282 206.504 53.6031C206.58 53.678 206.67 53.7372 206.769 53.7773C206.868 53.8174 206.974 53.8375 207.081 53.8366H216.575C216.682 53.8375 216.788 53.8174 216.887 53.7773C216.986 53.7372 217.076 53.678 217.152 53.6031C217.227 53.5282 217.288 53.439 217.329 53.3408C217.37 53.2426 217.391 53.1373 217.391 53.0309V27.2824H226.384V34.9229C226.384 34.9229 226.384 34.9785 226.384 35.0132C226.326 38.4315 227.224 41.7984 228.977 44.7375C230.694 47.5755 233.168 49.8836 236.122 51.4056C239.096 52.9517 242.389 53.791 245.742 53.8575H246.572C246.311 55.6236 245.496 57.2623 244.243 58.539C242.494 60.3727 241.079 61.3173 238.36 61.3173C238.252 61.3164 238.145 61.3368 238.046 61.3772C237.946 61.4176 237.855 61.4774 237.779 61.5529C237.702 61.6285 237.641 61.7184 237.6 61.8174C237.559 61.9165 237.537 62.0227 237.537 62.13V69.194C237.536 69.3013 237.557 69.4076 237.598 69.5067C237.639 69.6058 237.7 69.6956 237.777 69.7708C237.854 69.846 237.945 69.9051 238.045 69.9444C238.145 69.9837 238.252 70.0025 238.36 69.9997C241.685 69.94 244.949 69.1025 247.889 67.5548C250.862 66.0456 253.358 63.7446 255.097 60.9075C256.847 57.9672 257.745 54.6012 257.691 51.1833C257.691 51.1833 257.684 51.1347 257.684 51.0999Z"})]})}function fc(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=fc(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function pc(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=fc(e))&&(n&&(n+=" "),n+=t);return n}const Gt=(...e)=>cc(pc(e)),hc=({children:e,className:t,font:r="satoshi",weight:n="regular",...o})=>{const a=we({variants:{font:{satoshi:"font-satoshi",livvic:"font-livvic"},weight:{light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"}}});return L.jsx("p",{...o,className:Gt(t,a({font:r,weight:n})),children:e})},lh={bra:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzciIHZpZXdCb3g9IjAgMCAzOCAzNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTguNTA5OSIgY3k9IjE4LjUwMzMiIHI9IjE4LjUwMzMiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xOC41MSAzNS4xODY1QzI3LjcyMzkgMzUuMTg2NSAzNS4xOTMzIDI3LjcxNzEgMzUuMTkzMyAxOC41MDMyQzM1LjE5MzMgOS4yODkyMSAyNy43MjM5IDEuODE5ODIgMTguNTEgMS44MTk4MkM5LjI5NjA0IDEuODE5ODIgMS44MjY2NiA5LjI4OTIxIDEuODI2NjYgMTguNTAzMkMxLjgyNjY2IDI3LjcxNzEgOS4yOTYwNCAzNS4xODY1IDE4LjUxIDM1LjE4NjVaIiBmaWxsPSIjMEI5RjU5Ii8+CjxwYXRoIGQ9Ik0xOC41MTAxIDguMzQ4MjhMMzIuMjkyIDE4LjUwMzNMMTguNTEwMSAyOC42NTg0TDQuNzI4MjQgMTguNTAzM0wxOC41MTAxIDguMzQ4MjhaIiBmaWxsPSIjRkZEQTQ0Ii8+CjxwYXRoIGQ9Ik0xOC41MDk5IDI0LjMwNjJDMjEuNzE0OCAyNC4zMDYyIDI0LjMxMjggMjEuNzA4MSAyNC4zMTI4IDE4LjUwMzNDMjQuMzEyOCAxNS4yOTg1IDIxLjcxNDggMTIuNzAwNCAxOC41MDk5IDEyLjcwMDRDMTUuMzA1MSAxMi43MDA0IDEyLjcwNyAxNS4yOTg1IDEyLjcwNyAxOC41MDMzQzEyLjcwNyAyMS43MDgxIDE1LjMwNTEgMjQuMzA2MiAxOC41MDk5IDI0LjMwNjJaIiBmaWxsPSIjRjBGMEYwIi8+CjxwYXRoIGQ9Ik0xNS42MDgzIDE4LjEzOTdDMTQuNTk5MiAxOC4xMzk3IDEzLjYyNTQgMTguMjkzMSAxMi43MDg3IDE4LjU3NzlDMTIuNzQ5MyAyMS43NDc4IDE1LjMzMDMgMjQuMzA1MyAxOC41MDk4IDI0LjMwNTNDMjAuNDc1OCAyNC4zMDUzIDIyLjIxMjIgMjMuMzI2NiAyMy4yNjE4IDIxLjgzMDlDMjEuNDY2IDE5LjU4MjggMTguNzAyNyAxOC4xMzk3IDE1LjYwODMgMTguMTM5N1oiIGZpbGw9IiMwMDUyQjQiLz4KPHBhdGggZD0iTTI0LjIwNTEgMTkuNjE0MkMyNC4yNzUgMTkuMjU0MiAyNC4zMTI3IDE4Ljg4MjggMjQuMzEyNyAxOC41MDI1QzI0LjMxMjcgMTUuMjk3NiAyMS43MTQ3IDEyLjY5OTYgMTguNTA5OSAxMi42OTk2QzE2LjExODUgMTIuNjk5NiAxNC4wNjU3IDE0LjE0NjQgMTMuMTc3MyAxNi4yMTIxQzEzLjk2MjYgMTYuMDQ5NCAxNC43NzU3IDE1Ljk2MzcgMTUuNjA4NSAxNS45NjM3QzE4Ljk3ODggMTUuOTYzNyAyMi4wMjc4IDE3LjM2NDcgMjQuMjA1MSAxOS42MTQyWiIgZmlsbD0iIzAwNTJCNCIvPgo8L3N2Zz4K",esp:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzciIHZpZXdCb3g9IjAgMCAzOCAzNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTguNTE2OCIgY3k9IjE4LjUwMzMiIHI9IjE4LjUwMzMiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xLjgzMzUgMTguNTAyN0MxLjgzMzUgMjAuNTQzNCAyLjIwMDU5IDIyLjQ5ODIgMi44NzExOSAyNC4zMDU2TDE4LjUxNjggMjUuNzU2M0wzNC4xNjI1IDI0LjMwNTZDMzQuODMzMSAyMi40OTgyIDM1LjIwMDIgMjAuNTQzNCAzNS4yMDAyIDE4LjUwMjdDMzUuMjAwMiAxNi40NjIgMzQuODMzMSAxNC41MDcyIDM0LjE2MjUgMTIuNjk5OEwxOC41MTY4IDExLjI0OTFMMi44NzExOSAxMi42OTk4QzIuMjAwNTkgMTQuNTA3MiAxLjgzMzUgMTYuNDYyIDEuODMzNSAxOC41MDI3WiIgZmlsbD0iI0ZGREE0NCIvPgo8cGF0aCBkPSJNMzQuMTYyOCAxMi43MDAzQzMxLjgwNTUgNi4zNDczNSAyNS42OTA0IDEuODE5ODIgMTguNTE3MSAxLjgxOTgyQzExLjM0MzkgMS44MTk4MiA1LjIyODcgNi4zNDczNSAyLjg3MTQ2IDEyLjcwMDNIMzQuMTYyOFoiIGZpbGw9IiNEODAwMjciLz4KPHBhdGggZD0iTTIuODcxMTkgMjQuMzA1NkM1LjIyODQyIDMwLjY1ODYgMTEuMzQzOSAzNS4xODY1IDE4LjUxNzEgMzUuMTg2NUMyNS42OTA0IDM1LjE4NjUgMzEuODA1MiAzMC42NTg2IDM0LjE2MjUgMjQuMzA1NkgyLjg3MTE5WiIgZmlsbD0iI0Q4MDAyNyIvPgo8L3N2Zz4K",usa:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzciIGhlaWdodD0iMzciIHZpZXdCb3g9IjAgMCAzNyAzNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTguNTAzMyIgY3k9IjE4LjUwMzMiIHI9IjE4LjUwMzMiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xOC41MDM0IDM1LjE4NjVDMjcuNzE3NCAzNS4xODY1IDM1LjE4NjcgMjcuNzE3MSAzNS4xODY3IDE4LjUwMzJDMzUuMTg2NyA5LjI4OTIxIDI3LjcxNzQgMS44MTk4MiAxOC41MDM0IDEuODE5ODJDOS4yODk0NSAxLjgxOTgyIDEuODIwMDcgOS4yODkyMSAxLjgyMDA3IDE4LjUwMzJDMS44MjAwNyAyNy43MTcxIDkuMjg5NDUgMzUuMTg2NSAxOC41MDM0IDM1LjE4NjVaIiBmaWxsPSIjRjBGMEYwIi8+CjxwYXRoIGQ9Ik0xNy43Nzc5IDE4LjUwMzdIMzUuMTg2NkMzNS4xODY2IDE2Ljk5NzggMzQuOTg1OCAxNS41MzkxIDM0LjYxMTggMTQuMTUxNUgxNy43Nzc5VjE4LjUwMzdaIiBmaWxsPSIjRDgwMDI3Ii8+CjxwYXRoIGQ9Ik0xNy43Nzc5IDkuNzk5MzRIMzIuNzM3OUMzMS43MTY2IDguMTMyODMgMzAuNDEwOCA2LjY1OTgxIDI4Ljg4ODMgNS40NDcxNEgxNy43Nzc5VjkuNzk5MzRaIiBmaWxsPSIjRDgwMDI3Ii8+CjxwYXRoIGQ9Ik0xOC41MDM0IDM1LjE4NjVDMjIuNDI5OCAzNS4xODY1IDI2LjAzODQgMzMuODI5OCAyOC44ODgyIDMxLjU2MDFIOC4xMTc5OUMxMC45Njc4IDMzLjgyOTggMTQuNTc3IDM1LjE4NjUgMTguNTAzNCAzNS4xODY1WiIgZmlsbD0iI0Q4MDAyNyIvPgo8cGF0aCBkPSJNNC4yNjg1NyAyNy4yMDhIMzIuNzM3OUMzMy41NTc4IDI1Ljg3MDEgMzQuMTkzNiAyNC40MDc3IDM0LjYxMTggMjIuODU1OEgyLjM5NDYzQzIuODEyODIgMjQuNDA3NyAzLjQ0ODY3IDI1Ljg3MDEgNC4yNjg1NyAyNy4yMDhaIiBmaWxsPSIjRDgwMDI3Ii8+CjxwYXRoIGQ9Ik05LjU0ODEgNC40MjUxNkgxMS4wNjg0TDkuNjU0MjYgNS40NTI1NUwxMC4xOTQ0IDcuMTE0OTZMOC43ODAzNCA2LjA4NzU2TDcuMzY2MjMgNy4xMTQ5Nkw3LjgzMjg1IDUuNjc4ODJDNi41ODc3MiA2LjcxNTk5IDUuNDk2NCA3LjkzMTE0IDQuNTk3MDYgOS4yODUwOUg1LjA4NDJMNC4xODQwMiA5LjkzOTA3QzQuMDQzNzcgMTAuMTczIDMuOTA5MjYgMTAuNDEwNyAzLjc4MDM2IDEwLjY1MTlMNC4yMTAyMiAxMS45NzQ5TDMuNDA4MjQgMTEuMzkyMkMzLjIwODg5IDExLjgxNDYgMy4wMjY1NSAxMi4yNDY1IDIuODYyNjUgMTIuNjg3M0wzLjMzNjIzIDE0LjE0NUg1LjA4NDJMMy42NzAwMyAxNS4xNzI0TDQuMjEwMjIgMTYuODM0OEwyLjc5NjExIDE1LjgwNzRMMS45NDkwNCAxNi40MjI5QzEuODY0MjUgMTcuMTA0NCAxLjgyMDA3IDE3Ljc5ODYgMS44MjAwNyAxOC41MDMySDE4LjUwMzRDMTguNTAzNCA5LjI4OTI3IDE4LjUwMzQgOC4yMDMwMiAxOC41MDM0IDEuODE5ODJDMTUuMjA3NyAxLjgxOTgyIDEyLjEzNTQgMi43NzU4NiA5LjU0ODEgNC40MjUxNlpNMTAuMTk0NCAxNi44MzQ4TDguNzgwMzQgMTUuODA3NEw3LjM2NjIzIDE2LjgzNDhMNy45MDY0MiAxNS4xNzI0TDYuNDkyMjUgMTQuMTQ1SDguMjQwMjJMOC43ODAzNCAxMi40ODI2TDkuMzIwNDYgMTQuMTQ1SDExLjA2ODRMOS42NTQyNiAxNS4xNzI0TDEwLjE5NDQgMTYuODM0OFpNOS42NTQyNiAxMC4zMTI1TDEwLjE5NDQgMTEuOTc0OUw4Ljc4MDM0IDEwLjk0NzVMNy4zNjYyMyAxMS45NzQ5TDcuOTA2NDIgMTAuMzEyNUw2LjQ5MjI1IDkuMjg1MDlIOC4yNDAyMkw4Ljc4MDM0IDcuNjIyNjlMOS4zMjA0NiA5LjI4NTA5SDExLjA2ODRMOS42NTQyNiAxMC4zMTI1Wk0xNi4xNzg3IDE2LjgzNDhMMTQuNzY0NiAxNS44MDc0TDEzLjM1MDUgMTYuODM0OEwxMy44OTA3IDE1LjE3MjRMMTIuNDc2NSAxNC4xNDVIMTQuMjI0NUwxNC43NjQ2IDEyLjQ4MjZMMTUuMzA0NyAxNC4xNDVIMTcuMDUyN0wxNS42Mzg1IDE1LjE3MjRMMTYuMTc4NyAxNi44MzQ4Wk0xNS42Mzg1IDEwLjMxMjVMMTYuMTc4NyAxMS45NzQ5TDE0Ljc2NDYgMTAuOTQ3NUwxMy4zNTA1IDExLjk3NDlMMTMuODkwNyAxMC4zMTI1TDEyLjQ3NjUgOS4yODUwOUgxNC4yMjQ1TDE0Ljc2NDYgNy42MjI2OUwxNS4zMDQ3IDkuMjg1MDlIMTcuMDUyN0wxNS42Mzg1IDEwLjMxMjVaTTE1LjYzODUgNS40NTI1NUwxNi4xNzg3IDcuMTE0OTZMMTQuNzY0NiA2LjA4NzU2TDEzLjM1MDUgNy4xMTQ5NkwxMy44OTA3IDUuNDUyNTVMMTIuNDc2NSA0LjQyNTE2SDE0LjIyNDVMMTQuNzY0NiAyLjc2Mjc2TDE1LjMwNDcgNC40MjUxNkgxNy4wNTI3TDE1LjYzODUgNS40NTI1NVoiIGZpbGw9IiMwMDUyQjQiLz4KPC9zdmc+Cg=="},ch=({shadow:e,country:t,className:r,...n})=>{const o=we({base:"rounded-full",variants:{shadow:{true:"shadow-[4px_4px_6px_0px_rgba(0,0,0,0.17)]",false:""}}}),a=lh[t];return L.jsx("img",{...n,src:a,alt:`${t} flag`,className:Gt(r,o({shadow:e}))})},Ox="",Ue=({name:e,className:t,...r})=>L.jsx("span",{...r,className:`icon-${e} ${t??""}`});({IcoMoonType:"selection",icons:[{icon:{paths:["M695.177 547.182c48.599-38.234 84.074-90.672 101.482-150.006 17.414-59.336 15.898-122.624-4.332-181.059-20.236-58.435-58.178-109.11-108.546-144.977-50.375-35.867-110.679-55.141-172.514-55.141-61.842 0-122.139 19.273-172.514 55.141s-88.316 86.542-108.547 144.977c-20.233 58.435-21.747 121.723-4.335 181.059 17.411 59.334 52.885 111.77 101.483 150.006-83.277 33.367-155.938 88.703-210.238 160.112-54.3 71.413-88.203 156.219-98.097 245.383-0.715 6.509-0.144 13.098 1.687 19.387 1.829 6.286 4.879 12.155 8.977 17.262 8.274 10.321 20.307 16.934 33.454 18.377 13.147 1.448 26.329-2.389 36.649-10.663s16.929-20.309 18.376-33.455c10.884-96.902 57.090-186.399 129.789-251.386s166.794-100.912 264.305-100.912c97.512 0 191.604 35.926 264.305 100.912 72.696 64.989 118.901 154.483 129.789 251.386 1.348 12.18 7.159 23.433 16.315 31.578 9.156 8.15 21.003 12.617 33.258 12.543h5.452c12.992-1.492 24.87-8.066 33.039-18.276 8.174-10.217 11.976-23.243 10.583-36.251-9.94-89.417-44.024-174.441-98.609-245.963-54.579-71.52-127.592-126.838-211.213-160.027zM511.266 511.984c-39.215 0-77.554-11.629-110.162-33.417s-58.021-52.754-73.030-88.989c-15.007-36.232-18.935-76.102-11.284-114.564s26.536-73.795 54.267-101.525c27.731-27.731 63.062-46.616 101.525-54.267s78.334-3.724 114.564 11.284c36.232 15.007 67.199 40.422 88.991 73.030 21.787 32.608 33.417 70.945 33.417 110.161 0 52.59-20.89 103.022-58.077 140.213-37.183 37.183-87.617 58.072-140.208 58.072z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["user"],colorPermutations:{}},attrs:[],properties:{order:37,id:23,name:"user",prevSize:32,code:59658},setIdx:0,setId:3,iconIdx:0},{icon:{paths:["M526.086 521.84c23.866-20.659 43.009-46.207 56.127-74.918 13.118-28.707 19.908-59.901 19.908-91.464 0-59.31-23.562-116.193-65.502-158.13-41.936-41.938-98.819-65.501-158.129-65.501s-116.193 23.561-158.13 65.501c-41.938 41.938-65.501 98.822-65.501 158.13 0 31.564 6.789 62.757 19.909 91.464 13.119 28.71 32.26 54.257 56.126 74.918-62.61 28.351-115.731 74.134-153.010 131.876-37.28 57.747-57.139 125.002-57.204 193.732 0 11.86 4.712 23.24 13.1 31.626s19.764 13.1 31.626 13.1c11.861 0 23.238-4.714 31.626-13.1s13.1-19.764 13.1-31.626c0-71.172 28.273-139.43 78.601-189.756 50.327-50.331 118.586-78.602 189.757-78.602s139.43 28.272 189.756 78.602c50.331 50.327 78.602 118.583 78.602 189.756 0 11.86 4.714 23.24 13.1 31.626s19.764 13.1 31.626 13.1c11.86 0 23.24-4.714 31.626-13.1s13.1-19.764 13.1-31.626c-0.068-68.732-19.926-135.985-57.205-193.732-37.281-57.742-90.397-103.524-153.009-131.876zM378.488 489.638c-26.539 0-52.48-7.866-74.545-22.613-22.067-14.742-39.265-35.702-49.42-60.217-10.155-24.518-12.812-51.497-7.635-77.526s17.957-49.936 36.722-68.701c18.765-18.765 42.674-31.544 68.701-36.722s53.008-2.52 77.528 7.635c24.515 10.155 45.473 27.353 60.215 49.42 14.747 22.067 22.613 48.008 22.613 74.545 0 35.586-14.138 69.715-39.301 94.877s-59.291 39.301-94.877 39.301zM814.122 503.948c28.626-32.235 47.32-72.050 53.841-114.663 6.522-42.611 0.587-86.199-17.085-125.518-17.676-39.318-46.337-72.689-82.533-96.099-36.201-23.407-78.391-35.855-121.498-35.845-11.86 0-23.24 4.712-31.626 13.1s-13.1 19.764-13.1 31.626c0 11.861 4.714 23.238 13.1 31.626s19.764 13.1 31.626 13.1c35.584 0 69.715 14.138 94.877 39.3s39.301 59.292 39.301 94.878c-0.064 23.492-6.294 46.555-18.065 66.886-11.776 20.327-28.679 37.212-49.024 48.957-6.632 3.825-12.171 9.291-16.085 15.864-3.919 6.58-6.078 14.053-6.279 21.705-0.188 7.594 1.561 15.109 5.085 21.839 3.52 6.726 8.694 12.451 15.041 16.624l17.443 11.628 5.815 3.131c53.914 25.571 99.394 66.016 131.092 116.57 31.693 50.554 48.282 109.115 47.813 168.783 0 11.86 4.714 23.24 13.1 31.626s19.764 13.1 31.626 13.1c11.86 0 23.24-4.714 31.626-13.1s13.1-19.764 13.1-31.626c0.366-68.637-16.826-136.222-49.936-196.343-33.115-60.122-81.053-110.779-139.256-147.154z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["users"],colorPermutations:{}},attrs:[],properties:{order:38,id:22,name:"users",prevSize:32,code:59666},setIdx:0,setId:3,iconIdx:1},{icon:{paths:["M857.957 264.888h-49.422v-49.422c0-39.324-15.622-77.034-43.427-104.84s-65.52-43.426-104.839-43.426h-494.223c-39.324 0-77.034 15.621-104.84 43.426s-43.426 65.518-43.426 104.84v593.066c0 39.321 15.621 77.034 43.426 104.839s65.518 43.427 104.84 43.427h691.912c39.321 0 77.034-15.622 104.839-43.427s43.427-65.52 43.427-104.839v-395.378c0-39.324-15.622-77.034-43.427-104.84s-65.52-43.426-104.839-43.426zM166.044 166.043h494.223c13.106 0 25.68 5.206 34.946 14.476s14.476 21.839 14.476 34.946v49.422h-543.644c-13.107 0-25.678-5.206-34.946-14.476s-14.476-21.839-14.476-34.946c0-13.107 5.206-25.678 14.476-34.946s21.839-14.476 34.946-14.476zM907.378 660.266h-49.422c-13.106 0-25.68-5.208-34.946-14.476s-14.476-21.839-14.476-34.946c0-13.106 5.208-25.68 14.476-34.946s21.839-14.476 34.946-14.476h49.422v98.844zM907.378 462.578h-49.422c-39.321 0-77.034 15.622-104.839 43.427s-43.427 65.52-43.427 104.839c0 39.321 15.622 77.034 43.427 104.839s65.52 43.427 104.839 43.427h49.422v49.422c0 13.106-5.208 25.68-14.476 34.946s-21.839 14.476-34.946 14.476h-691.912c-13.107 0-25.678-5.208-34.946-14.476s-14.476-21.839-14.476-34.946v-453.202c15.878 5.586 32.591 8.426 49.422 8.402h691.912c13.106 0 25.68 5.206 34.946 14.476s14.476 21.839 14.476 34.946v49.422z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["wallet"],colorPermutations:{}},attrs:[],properties:{order:39,id:21,name:"wallet",prevSize:32,code:59667},setIdx:0,setId:3,iconIdx:2},{icon:{paths:["M979.553 176.238c-6.483-6.535-14.195-11.724-22.693-15.262-8.5-3.542-17.616-5.365-26.818-5.365s-18.319 1.823-26.818 5.365c-8.5 3.542-16.213 8.727-22.693 15.262l-519.504 520.201-218.263-218.958c-6.732-6.501-14.678-11.612-23.382-15.044s-18.004-5.113-27.36-4.952c-9.357 0.159-18.592 2.163-27.172 5.897s-16.347 9.112-22.848 15.844c-6.501 6.73-11.612 14.677-15.043 23.382s-5.114 18.004-4.952 27.36c0.161 9.357 2.163 18.592 5.897 27.172s9.112 16.345 15.843 22.848l267.77 267.773c6.482 6.532 14.193 11.722 22.694 15.263 8.496 3.537 17.613 5.365 26.817 5.365s18.319-1.827 26.816-5.365c8.496-3.542 16.209-8.731 22.695-15.263l569.013-569.015c7.078-6.528 12.724-14.456 16.591-23.277s5.858-18.347 5.858-27.977c0-9.63-1.992-19.156-5.858-27.977s-9.511-16.746-16.591-23.277z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,grid:0,tags:["check"],colorPermutations:{}},attrs:[],properties:{order:40,id:20,name:"check",prevSize:32,code:59668},setIdx:0,setId:3,iconIdx:3},{icon:{paths:["M441.48 33.984c-101.267 0-181.649 77.289-195.622 175.411-0.576-0.148-1.357-0.3-2.151-0.42l-0.154-0.021h-197.93c-15.529 0-28.116 12.587-28.116 28.116v0c0 15.529 12.587 28.116 28.116 28.116v0h197.93c0.934-0.329 1.661-0.627 2.37-0.951l-0.175 0.073c13.778 98.344 94.31 175.852 195.731 175.852 111.011 0 201.335-91.419 201.335-203.090s-90.322-203.090-201.335-203.090zM441.48 90.222c80.312 0 145.098 65.272 145.098 146.854s-64.786 146.854-145.098 146.854c-80.312 0-144.989-65.272-144.989-146.854s64.676-146.854 144.989-146.854zM738.484 208.958c-15.529 0-28.116 12.587-28.116 28.116v0c0 15.529 12.587 28.116 28.116 28.116v0h296.892c15.529 0 28.116-12.587 28.116-28.116v0c0-15.529-12.587-28.116-28.116-28.116v0zM639.522 583.838c-111.010 0-201.335 91.42-201.335 203.090s90.323 203.090 201.335 203.090c101.43 0 182.067-77.505 195.841-175.852 0.506 0.249 1.192 0.546 1.892 0.813l0.193 0.065h197.93c15.529 0 28.116-12.587 28.116-28.116v0c0-15.529-12.587-28.116-28.116-28.116v0h-197.93c-0.895 0.332-1.583 0.628-2.254 0.952l0.169-0.074c-13.773-98.346-94.413-175.852-195.841-175.852zM639.522 640.076c80.317 0 145.098 65.272 145.098 146.854s-64.783 146.854-145.098 146.854c-80.31 0-145.098-65.273-145.098-146.854s64.788-146.854 145.098-146.854zM45.622 758.808c-15.529 0-28.116 12.587-28.116 28.116v0c0 15.529 12.587 28.116 28.116 28.116v0h296.892c15.529 0 28.116-12.587 28.116-28.116v0c0-15.529-12.587-28.116-28.116-28.116v0z"],width:1081,attrs:[],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{},tags:["filters"],grid:0},attrs:[],properties:{order:36,id:0,name:"filters",prevSize:32,code:59665},setIdx:0,setId:3,iconIdx:4},{icon:{paths:["M221.91 16c-48.472 0-91.817 15.678-120.059 48.704s-39.686 78.531-39.686 132.284v742.129h-11.959c-18.891 0-34.206 15.315-34.206 34.206v0c0 18.891 15.315 34.206 34.206 34.206v0h787.294c0.153 0.078 0.527 0.235 0.904 0.387l0.23 0.082c0.608-0.232 0.983-0.39 1.354-0.554l-0.218 0.087h134.021c18.891 0 34.206-15.315 34.206-34.206v0c0-18.891-15.315-34.206-34.206-34.206v0h-100.951v-155.067c54.54-16.957 93.201-70.819 93.201-133.487v-110.371c0-75.121-54.176-141.17-126.606-141.17s-126.539 66.049-126.539 141.17v110.371c0 62.051 37.857 115.532 91.531 133.085v155.467h-161.681v-742.129c0-53.703-11.226-99.158-39.351-132.217s-71.454-48.771-119.925-48.771zM221.91 84.415h261.562c35.068 0 54.273 8.805 67.812 24.719s23.049 43.854 23.049 87.856v742.129h-185.533v-148.119c0-18.891-15.315-34.206-34.206-34.206v0c-18.891 0-34.206 15.315-34.206 34.206v0 148.119h-189.809v-742.129c0-43.953 9.613-71.84 23.25-87.789s33.010-24.786 68.080-24.786zM251.707 270.748c-18.891 0-34.206 15.315-34.206 34.206v0c0 18.891 15.315 34.206 34.206 34.206v0h207.848c18.891 0 34.206-15.315 34.206-34.206v0c0-18.891-15.315-34.206-34.206-34.206v0zM251.707 453.007c-18.891 0-34.206 15.315-34.206 34.206v0c0 18.891 15.315 34.206 34.206 34.206v0h207.848c18.891 0 34.206-15.315 34.206-34.206v0c0-18.891-15.315-34.206-34.206-34.206v0zM839.438 467.438c30.006 0 58.191 29.277 58.191 72.757v110.371c0 43.236-27.909 72.162-57.724 72.49-0.193-0.054-0.622-0.148-1.053-0.231l-0.217-0.034c-0.010 0-0.023 0-0.033 0s-0.025 0-0.035 0h0.002c-29.634-0.633-57.257-29.219-57.257-72.222v-110.371c0-43.481 28.118-72.757 58.125-72.757z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[],"125525525513463581":[]},tags:["building"],grid:0},attrs:[],properties:{order:32,id:1,name:"building",prevSize:32,code:59661},setIdx:0,setId:3,iconIdx:5},{icon:{paths:["M474.119 16c-80.744 0-133.002 18.798-160.546 57.657s-25.188 83.466-25.188 124.335v2.74h-13.162c-106.295 0-176.908 24.402-217.869 71.889s-45.635 110.102-38.75 170.768l35.477 368.794c0.042 0.341 0.067 0.5 0.092 0.658l-0.025-0.191c5.325 48.463 18.348 100.416 60.797 138.23s108.001 57.124 207.647 57.124h378.814c99.646 0 165.199-19.309 207.647-57.124s55.471-89.767 60.797-138.23c0 0.034 0.025-0.125 0.046-0.284l0.022-0.183 32.737-340.466 0.069-0.134c0-0.039 0-0.087 0-0.134s0-0.093 0-0.141v0.007l2.673-27.928c6.881-60.667 2.208-123.284-38.753-170.769s-111.574-71.889-217.869-71.889h-13.162v-2.74c0-40.869 2.356-85.474-25.188-124.335s-79.802-57.657-160.546-57.657zM474.119 84.415h75.763c70.807 0 94.347 14.202 104.691 28.796s12.626 43.914 12.626 84.783v2.74h-310.402v-2.74c0-40.869 2.283-70.189 12.626-84.783s33.884-28.796 104.691-28.796zM275.224 269.144h473.552c95.931 0 143.050 21.538 166.023 48.17s28.485 66.309 22.582 118.322c-0.009 0.036-0.032 0.243-0.055 0.451l-0.014 0.152-0.802 8.418c-90.418 61.486-191.449 98.993-295.569 117.186v-3.675c0-11.545 0.127-20.64-1.003-30.533-1.127-9.891-4.112-23.496-15.232-34.34s-24.375-13.492-34.271-14.565-19.227-0.936-31.067-0.936h-94.737c-11.84 0-21.171-0.137-31.067 0.935s-23.153 3.721-34.273 14.564c-11.122 10.844-14.105 24.449-15.232 34.34s-1.003 18.988-1.003 30.533v4.743c-103.328-16.824-204.524-52.276-294.967-112.376l-1.402-14.297c-0.034-0.355-0.058-0.562-0.084-0.768l0.017 0.166c-5.903-52.012-0.393-91.688 22.582-118.322s70.092-48.17 166.023-48.17zM928.696 525.763l-26.858 279.869v-0.467c-4.62 42.048-13.6 72.616-38.283 94.603s-71.408 39.819-162.149 39.819h-378.814c-90.739 0-137.466-17.83-162.149-39.819s-33.662-52.555-38.283-94.603v0.467l-26.456-275.126c90.546 52.332 187.8 87.604 288.487 102.42 0.946 18.776 3.822 38.317 17.639 57.322 20.648 28.406 58.343 40.688 110.17 40.688 52.096 0 89.971-12.499 110.505-41.088 13.846-19.276 16.588-38.976 17.438-57.858 100.973-16.032 198.085-52.864 288.755-106.229zM464.631 546.206h94.737c6.436 0 8.729 0.167 12.894 0.267 0.090 3.921 0.267 5.767 0.267 11.691v47.101c0 25.061-2.348 40.084-5.611 44.629s-12.767 12.626-54.918 12.626c-41.943 0-51.583-8.064-54.851-12.56s-5.678-19.275-5.678-44.229v-47.569c0-5.924 0.178-7.771 0.267-11.691 4.165-0.098 6.458-0.267 12.894-0.267z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[],"125525525513463581":[]},tags:["briefcase"],grid:0},attrs:[],properties:{order:33,id:2,name:"briefcase",prevSize:32,code:59662},setIdx:0,setId:3,iconIdx:6},{icon:{paths:["M482.712 22.394l-377.328 166.783c-31.614 13.974-46.767 41.583-46.767 74.318v153.774c0 42.336 32.474 80.455 76.119 80.455h7.738v255.977h-7.738c-43.641 0-76.119 38.118-76.119 80.455v104.807h-7.738c-18.865 0-34.157 15.292-34.157 34.157v0c0 18.865 15.292 34.157 34.157 34.157v0h922.239c18.865 0 34.157-15.292 34.157-34.157v0c0-18.865-15.292-34.157-34.157-34.157v0h-7.738v-104.807c0-42.335-32.478-80.455-76.119-80.455h-7.738v-255.977h7.738c43.644 0 76.119-38.121 76.119-80.455v-153.774c0-32.732-15.149-60.347-46.767-74.318l-377.328-166.783c-21.473-9.489-37.103-9.489-58.574 0zM510.266 84.905c-4.7 2.077 8.17 2.077 3.469 0l377.262 166.783c-2.269-1.003 6.071 10.263 6.071 11.809v153.774c0 8.614-5.338 12.142-7.805 12.142h-754.523c-2.467 0-7.805-3.53-7.805-12.142v-153.774c0-1.543 8.34-12.811 6.071-11.809zM512 174.698c-55.125 0-97.067 48.525-97.067 103.605s41.943 103.672 97.067 103.672c55.125 0 97.067-48.593 97.067-103.672s-41.943-103.605-97.067-103.605zM512 243.013c14.33 0 28.753 13.623 28.753 35.292s-14.423 35.359-28.753 35.359c-14.33 0-28.753-13.69-28.753-35.359s14.423-35.292 28.753-35.292zM210.791 497.723h99.403v255.977h-99.403zM378.507 497.723h99.336v255.977h-99.336zM546.157 497.723h99.336v255.977h-99.336zM713.807 497.723h99.403v255.977h-99.403zM134.738 822.016h754.523c2.47 0 7.805 3.522 7.805 12.142v104.807h-770.134v-104.807c0-8.617 5.335-12.142 7.805-12.142z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[],"125525525513463581":[]},tags:["bank"],grid:0},attrs:[],properties:{order:34,id:3,name:"bank",prevSize:32,code:59663},setIdx:0,setId:3,iconIdx:7},{icon:{paths:["M511.864 16.070c-272.629 0-495.93 223.302-495.93 495.93 0 272.626 223.302 495.93 495.93 495.93 272.631 0 496.066-223.304 496.066-495.93 0-272.629-223.435-495.93-496.066-495.93zM511.864 85.276c234.882 0 426.859 191.845 426.859 426.724s-191.977 426.724-426.859 426.724c-234.88 0-426.724-191.846-426.724-426.724s191.843-426.724 426.724-426.724z","M327.36 460.095c-28.667 0-51.905 23.238-51.905 51.905v0c0 28.667 23.238 51.905 51.905 51.905v0h369.142c28.667 0 51.905-23.238 51.905-51.905v0c0-28.667-23.238-51.905-51.905-51.905v0z","M512 275.593c-28.667 0-51.905 23.238-51.905 51.905v0 369.007c0 28.667 23.238 51.905 51.905 51.905v0c28.667 0 51.905-23.238 51.905-51.905v0-369.007c0-28.667-23.238-51.905-51.905-51.905v0z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[],"125525525513463581":[]},tags:["add-circle"],grid:0},attrs:[],properties:{order:35,id:4,name:"add-circle",prevSize:32,code:59664},setIdx:0,setId:3,iconIdx:8},{icon:{paths:["M512 810.667c8.439 0 16.687-2.5 23.706-7.189 7.014-4.689 12.484-11.354 15.714-19.149s4.075-16.375 2.428-24.653c-1.647-8.277-5.709-15.881-11.678-21.845-5.965-5.969-13.568-10.031-21.845-11.678s-16.858-0.802-24.653 2.428c-7.795 3.23-14.46 8.7-19.149 15.714-4.689 7.019-7.189 15.266-7.189 23.706 0 11.315 4.497 22.17 12.497 30.17s18.854 12.497 30.17 12.497zM725.333 810.667c8.439 0 16.687-2.5 23.706-7.189 7.014-4.689 12.484-11.354 15.714-19.149s4.075-16.375 2.428-24.653c-1.647-8.277-5.709-15.881-11.678-21.845-5.965-5.969-13.568-10.031-21.845-11.678s-16.858-0.802-24.653 2.428c-7.795 3.23-14.46 8.7-19.149 15.714-4.689 7.019-7.189 15.266-7.189 23.706 0 11.315 4.497 22.17 12.497 30.17s18.854 12.497 30.17 12.497zM725.333 640c8.439 0 16.687-2.5 23.706-7.189 7.014-4.689 12.484-11.354 15.714-19.149s4.075-16.375 2.428-24.653c-1.647-8.277-5.709-15.881-11.678-21.845-5.965-5.969-13.568-10.031-21.845-11.678s-16.858-0.802-24.653 2.428c-7.795 3.23-14.46 8.7-19.149 15.714-4.689 7.019-7.189 15.266-7.189 23.706 0 11.315 4.497 22.17 12.497 30.17s18.854 12.497 30.17 12.497zM512 640c8.439 0 16.687-2.5 23.706-7.189 7.014-4.689 12.484-11.354 15.714-19.149s4.075-16.375 2.428-24.653c-1.647-8.277-5.709-15.881-11.678-21.845-5.965-5.969-13.568-10.031-21.845-11.678s-16.858-0.802-24.653 2.428c-7.795 3.23-14.46 8.7-19.149 15.714-4.689 7.019-7.189 15.266-7.189 23.706 0 11.315 4.497 22.17 12.497 30.17s18.854 12.497 30.17 12.497zM810.667 128h-42.667v-42.667c0-11.316-4.497-22.168-12.497-30.17s-18.854-12.497-30.17-12.497c-11.315 0-22.17 4.495-30.17 12.497s-12.497 18.854-12.497 30.17v42.667h-341.333v-42.667c0-11.316-4.495-22.168-12.497-30.17s-18.854-12.497-30.17-12.497c-11.316 0-22.168 4.495-30.17 12.497s-12.497 18.854-12.497 30.17v42.667h-42.667c-33.948 0-66.505 13.486-90.51 37.49s-37.49 56.562-37.49 90.51v597.333c0 33.946 13.486 66.505 37.49 90.509s56.562 37.491 90.51 37.491h597.333c33.946 0 66.505-13.487 90.509-37.491s37.491-56.563 37.491-90.509v-597.333c0-33.948-13.487-66.505-37.491-90.51s-56.563-37.49-90.509-37.49zM853.333 853.333c0 11.315-4.497 22.17-12.497 30.17s-18.854 12.497-30.17 12.497h-597.333c-11.316 0-22.168-4.497-30.17-12.497s-12.497-18.854-12.497-30.17v-384h682.667v384zM853.333 384h-682.667v-128c0-11.316 4.495-22.168 12.497-30.17s18.854-12.497 30.17-12.497h42.667v42.667c0 11.316 4.495 22.168 12.497 30.17s18.854 12.497 30.17 12.497c11.316 0 22.168-4.495 30.17-12.497s12.497-18.854 12.497-30.17v-42.667h341.333v42.667c0 11.316 4.497 22.168 12.497 30.17s18.854 12.497 30.17 12.497c11.315 0 22.17-4.495 30.17-12.497s12.497-18.854 12.497-30.17v-42.667h42.667c11.315 0 22.17 4.495 30.17 12.497s12.497 18.854 12.497 30.17v128zM298.667 640c8.439 0 16.688-2.5 23.704-7.189s12.485-11.354 15.715-19.149c3.229-7.795 4.074-16.375 2.428-24.653s-5.71-15.881-11.677-21.845c-5.967-5.969-13.57-10.031-21.846-11.678s-16.855-0.802-24.652 2.428c-7.796 3.23-14.46 8.7-19.148 15.714-4.688 7.019-7.191 15.266-7.191 23.706 0 11.315 4.495 22.17 12.497 30.17s18.854 12.497 30.17 12.497zM298.667 810.667c8.439 0 16.688-2.5 23.704-7.189s12.485-11.354 15.715-19.149c3.229-7.795 4.074-16.375 2.428-24.653s-5.71-15.881-11.677-21.845c-5.967-5.969-13.57-10.031-21.846-11.678s-16.855-0.802-24.652 2.428c-7.796 3.23-14.46 8.7-19.148 15.714-4.688 7.019-7.191 15.266-7.191 23.706 0 11.315 4.495 22.17 12.497 30.17s18.854 12.497 30.17 12.497z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[],"125525525513463581":[{}]},tags:["calendar"],grid:0},attrs:[{}],properties:{order:22,id:5,name:"calendar",prevSize:32,code:59660},setIdx:0,setId:3,iconIdx:9},{icon:{paths:["M92.308 1008.001l-76.307-76.31 419.692-419.691-419.692-419.692 76.307-76.307 419.692 419.692 419.691-419.692 76.31 76.307-419.692 419.692 419.692 419.691-76.31 76.31-419.691-419.692-419.692 419.692z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[],"125525525513463581":[]},tags:["close"],grid:0},attrs:[],properties:{order:20,id:6,name:"close",prevSize:32,code:59659},setIdx:0,setId:3,iconIdx:10},{icon:{paths:["M479.562 16.805l-25.249 2.704c-85.122 9.016-168.126 42.381-241.661 97.025-27.458 20.423-75.563 68.53-96.213 96.124-112.624 150.903-131.877 345.585-50.901 514.566 24.618 51.308 53.156 91.118 96.528 134.446 43.329 43.372 83.138 71.911 134.446 96.528 168.936 80.974 363.753 61.632 514.745-51.083 27.458-20.47 75.698-68.711 96.169-96.169 134.086-179.667 134.086-418.804 0-598.47-20.47-27.413-68.666-75.61-96.033-95.944-71.911-53.472-147.656-84.537-235.214-96.44-19.071-2.616-83.365-4.78-96.62-3.292zM571.537 110.494c115.556 17.447 216.593 82.507 281.336 181.201 13.662 20.875 33.498 61.272 42.020 85.663 15.6 44.769 21.866 83.183 21.866 134.357 0 67.314-11.587 118.17-40.442 177.639-31.786 65.555-79.757 120.244-142.157 161.949-35.573 23.806-92.472 47.612-136.114 57.034-25.62 5.722-55.043 8.998-85.231 8.998-96.674 0-185.496-33.609-255.424-89.779l0.796 0.619c-68.215-54.644-119.387-134.806-139.902-219.072-8.387-34.401-11-57.348-11-97.385 0-67.314 11.587-118.17 40.442-177.639 48.209-97.574 131.699-171.591 233.4-206.28l2.851-0.844c31.786-10.504 57.348-15.69 98.288-19.928 14.519-1.488 70.83 0.676 89.27 3.471zM494.621 288.856c-9.882 2.687-17.931 9.133-22.672 17.667l-0.094 0.187c-4.012 7.484-4.012 7.935-4.508 110.821-0.36 66.771 0.136 105.727 1.352 110.19 4.735 17.674 17.764 27.322 38.638 28.674 21.866 1.397 36.204-4.915 44.365-19.523l4.508-8.025v-214.608l-4.012-7.528c-2.526-4.494-5.734-8.293-9.532-11.395l-0.071-0.056c-11.903-8.52-32.507-11.227-47.972-6.403zM494.621 649.453c-17.764 5.816-25.925 17.223-27.277 38.097-1.397 21.687 4.959 36.025 19.523 44.184 6.988 3.923 10.235 4.508 25.158 4.508 14.067 0 18.395-0.721 24.346-3.876 14.698-7.935 20.739-19.611 20.739-40.306 0-28.99-12.939-42.922-41.344-44.365-8.567-0.452-16.455 0.224-21.146 1.759z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[{}],"125525525513463581":[{}]},tags:["alert-circle"],grid:0},attrs:[{}],properties:{order:3,id:8,name:"alert-circle",prevSize:32,code:59648},setIdx:0,setId:3,iconIdx:11},{icon:{paths:["M86.74 248.039c-13.743 7.271-32.022 25.885-39.226 39.959-3.593 6.962-5.699 15.194-5.699 23.918 0 8.777 2.132 17.053 5.906 24.343l-0.14-0.295c8.339 16.68 423.485 431.822 440.161 440.161 7.050 3.626 15.386 5.753 24.216 5.753s17.166-2.127 24.519-5.894l-0.303 0.141c16.68-8.339 431.822-423.485 440.161-440.161 11.741-23.549 5.737-47.899-17.345-70.981-22.684-22.684-48.099-28.753-71.58-17.012-7.472 3.734-71.38 65.711-193.329 187.392l-182.121 181.854-182.121-181.854c-121.949-121.682-185.858-183.656-193.329-187.392-7.274-3.457-15.806-5.475-24.812-5.475-9.058 0-17.641 2.042-25.313 5.692l0.355-0.152z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[{}],"125525525513463581":[{}]},tags:["chevron-down"],grid:0},attrs:[{}],properties:{order:4,id:9,name:"chevron-down",prevSize:32,code:59649},setIdx:0,setId:3,iconIdx:12},{icon:{paths:["M696.431 22.299c-16.683 8.519-455.166 447.703-463.259 463.964-3.67 7.465-5.925 16.214-6.192 25.461l-0.002 0.092c0 7.814 2.463 18.021 6.195 25.553 8.798 17.599 446.859 455.657 464.458 464.458 24.848 12.388 50.544 6.053 74.898-18.302 24.426-24.426 30.692-50.050 18.302-74.898-4.434-8.729-63.566-69.902-198.087-204.633l-191.892-192.174 191.892-192.174c134.521-134.733 193.654-195.904 198.087-204.633 12.388-24.848 6.124-50.472-18.302-74.898-23.934-23.934-51.6-30.411-76.097-17.811z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[{}],"125525525513463581":[{}]},tags:["chevron-left"],grid:0},attrs:[{}],properties:{order:5,id:10,name:"chevron-left",prevSize:32,code:59650},setIdx:0,setId:3,iconIdx:13},{icon:{paths:["M274.397 21.85c-14.506 7.676-33.802 27.323-41.407 42.182-3.793 7.347-6.016 16.037-6.016 25.248 0 9.265 2.25 18.003 6.233 25.699l-0.148-0.312c4.436 8.732 63.589 69.927 198.164 204.713l191.967 192.248-191.967 192.248c-134.573 134.785-193.727 195.98-198.164 204.713-12.393 24.858-6.126 50.492 18.309 74.927 24.366 24.366 50.068 30.704 74.927 18.309 17.606-8.802 455.833-447.031 464.636-464.636 3.671-7.468 5.928-16.22 6.194-25.472l0.002-0.092c-0.268-9.341-2.525-18.096-6.36-25.936l0.164 0.373c-8.522-17.112-446.96-455.833-464.002-464.284-7.679-3.647-16.687-5.779-26.192-5.779-9.563 0-18.623 2.157-26.72 6.009l0.376-0.161z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[{}],"125525525513463581":[{}]},tags:["chevron-right"],grid:0},attrs:[{}],properties:{order:6,id:11,name:"chevron-right",prevSize:32,code:59651},setIdx:0,setId:3,iconIdx:14},{icon:{paths:["M122.87 145.282c-45.789 7.741-83.47 41.162-97.682 86.706l-3.85 12.287v535.715l3.85 12.287c12.591 40.186 43.612 71.207 82.901 83.554l0.897 0.243 12.287 3.85h781.455l12.287-3.85c40.186-12.591 71.207-43.612 83.554-82.901l0.243-0.897 3.85-12.287v-535.715l-3.85-12.287c-12.527-39.881-43.174-70.717-82.042-83.262l-0.897-0.25-13.147-4.136-385.813-0.246c-212.197-0.122-389.54 0.41-394.045 1.187zM893.308 227.933c6.274 1.981 11.613 5.404 15.833 9.892l0.019 0.020c12.122 12.122 12.41 14.212 12.41 87.812v63.606h-819.135v-63.606c0-73.641 0.287-75.688 12.451-87.812 4.087-4.335 9.153-7.7 14.847-9.746l0.265-0.083c6.554-2.006 60.903-2.375 381.308-2.458 329.949-0.122 374.59 0.163 382.004 2.375zM921.568 616.736c0 157.93 0.205 154.324-9.051 166.448-2.499 3.277-7.945 7.986-12.082 10.403l-7.536 4.424h-761.796l-7.536-4.424c-4.601-2.832-8.531-6.217-11.861-10.129l-0.058-0.069c-9.543-12.532-9.216-6.511-9.216-165.793v-146.42h819.135v145.56z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[{}],"125525525513463581":[{}]},tags:["credit-card"],grid:0},attrs:[{}],properties:{order:7,id:12,name:"credit-card",prevSize:32,code:59652},setIdx:0,setId:3,iconIdx:15},{icon:{paths:["M124.444 1024c-25.6 0-48-9.603-67.2-28.803s-28.8-41.597-28.8-67.197v-228.801h96v228.801h832v-228.801h96v228.801c0 25.6-9.603 47.997-28.803 67.197s-41.597 28.803-67.197 28.803h-832zM540.444 779.201l-308.8-308.801 68.8-68.8 192 192.002v-593.601h96.003v593.601l192-192.002 68.796 68.8-308.799 308.801z"],width:1081,attrs:[{}],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[{}],"125525525513463581":[{}]},tags:["download"],grid:0},attrs:[{}],properties:{order:8,id:13,name:"download",prevSize:32,code:59653},setIdx:0,setId:3,iconIdx:16},{icon:{paths:["M794.006 17.661l-151.696 1.040-9.863 5.054c-16.85 8.673-23.837 23.986-22.3 48.666 1.437 22.747 11.943 37.069 31.023 42.371 4.362 1.239 44.353 2.031 101.345 2.031h94.11l-234.158 234.406c-167.702 167.801-235.446 236.884-238.618 243.178-8.721 17.494-4.311 35.583 12.884 52.728 17.147 17.197 35.236 21.607 52.728 12.884 6.293-3.172 75.377-70.917 243.178-238.618l234.406-234.158v94.11c0 56.992 0.793 96.984 2.031 101.345 5.301 19.080 19.624 29.586 42.371 31.023 24.034 1.536 39.794-5.402 48.764-21.459l4.956-8.822 1.337-156.601c0.743-86.13 1.389-159.525 1.487-163.094 0.199-9.367-10.010-30.676-17.197-35.781-11.101-7.88-24.034-12.29-34.839-11.796-5.65 0.247-78.549 0.942-161.954 1.487zM138.857 168.514c-55.307 9.267-100.999 49.804-118.194 104.912l-4.659 14.867v598.654l4.659 14.867c15.235 48.626 52.77 86.159 100.311 101.101l1.085 0.293 14.867 4.659h598.654l14.867-4.659c48.626-15.235 86.159-52.77 101.101-100.311l0.293-1.085 4.659-14.867v-342.936l-4.51-8.424c-8.177-15.363-27.751-23.787-50.3-21.756-21.557 1.983-36.326 13.034-41.281 30.924-1.288 4.558-2.031 65.068-2.031 163.985 0 170.081 0.149 167.504-10.951 182.074-3.023 3.964-9.614 9.664-14.62 12.587l-9.119 5.353h-574.865l-9.119-5.353c-5.567-3.428-10.323-7.523-14.351-12.254l-0.070-0.086c-11.796-15.463-11.15 1.585-11.15-302.349 0-314.194-1.090-292.092 15.016-308.198 15.61-15.61 8.177-15.016 186.040-15.016 98.917 0 159.377-0.743 163.935-2.031 11.026-3.042 20.021-10.196 25.414-19.667l0.108-0.206c4.311-7.73 4.956-11.2 4.906-27.653-0.050-21.459-4.014-31.964-14.916-39.696-13.925-9.911-13.034-9.863-185.048-9.614-88.411 0.098-165.274 0.991-170.726 1.884z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[{}],"125525525513463581":[{}]},tags:["external-link"],grid:0},attrs:[{}],properties:{order:9,id:14,name:"external-link",prevSize:32,code:59654},setIdx:0,setId:3,iconIdx:17},{icon:{paths:["M37.011 21.092c-7.44 4.919-15.211 13.392-19.096 20.832-2.893 5.497-2.397 26.205 0.744 32.446 1.488 2.893 43.936 46.623 94.363 97.173l91.676 91.883-22.072 19.881c-55.882 50.302-111.391 120.526-152.394 192.652-19.923 35.091-19.551 40.216 6.572 83.906 22.981 38.439 50.839 77.582 81.963 114.987 17.277 20.832 68.571 72.374 88.204 88.659 77.664 64.52 156.486 101.967 243.863 115.938 29.181 4.671 84.691 4.919 114.905 0.537 64.774-9.256 123.081-30.451 174.918-61.366l-2.146 1.186 14.053-8.391 95.891 95.643c52.74 52.575 98.289 96.801 101.182 98.289 3.431 1.695 9.589 2.645 17.484 2.645 10.871 0 13.061-0.579 19.881-5.084 7.44-4.919 15.211-13.392 19.096-20.832 1.033-1.984 1.901-9.135 1.901-15.872 0-10.788-0.579-13.061-4.877-19.509-6.696-10.003-922.132-924.736-928.745-928.042-3.431-1.695-9.631-2.645-17.484-2.645-10.871 0-13.061 0.579-19.881 5.084zM483.073 140.957c-38.77 3.885-70.679 9.879-81.384 15.335-17.443 8.928-22.651 27.611-14.467 51.748 3.431 9.961 12.565 20.501 19.964 22.94 7.233 2.397 20.584 2.356 31.413-0.083 21.828-4.99 46.894-7.847 72.629-7.847 24.765 0 48.908 2.647 72.168 7.674l-2.239-0.405c112.673 22.94 225.345 110.358 314.128 243.697 27.404 41.126 25.833 34.802 13.681 54.89-18.486 29.629-36.424 54.854-55.698 78.967l1.263-1.635c-15.665 19.427-20.419 28.396-20.419 38.728 0 9.961 3.844 17.897 13.020 26.825 15.789 15.335 32.074 19.179 47.078 10.995 16.285-8.845 62.164-70.431 96.553-129.578 23.188-39.844 23.064-44.267-2.356-87.212-37.302-62.647-79.77-116.755-128.241-164.821l-0.056-0.055c-52.906-52.864-96.015-84.608-154.667-113.789-47.987-23.891-92.875-37.778-142.185-43.978-14.921-1.901-69.067-3.472-80.186-2.397zM363.497 436.278c-7.027 12.235-16.161 40.547-18.6 57.411-2.273 15.748-1.281 38.026 2.439 55.51 13.81 64.070 63.4 113.659 126.385 127.273l1.085 0.197c36.992 7.853 73.986 2.976 109.035-14.467l13.144-6.531 95.767 95.767-18.145 9.093c-55.551 27.859-106.762 40.010-167.562 39.762-34.884-0.124-55.51-2.852-85.146-11.325-108.953-31.041-213.029-116.558-296.355-243.491-23.767-36.207-22.609-30.421-10.209-50.798 36.103-58.15 77.662-108.281 125.123-152.115l0.487-0.445 22.196-20.295 105.481 105.481-5.125 8.969zM482.99 541.677c28.148 28.189 50.839 51.5 50.426 51.872-2.371 0.956-5.22 1.825-8.155 2.456l-0.358 0.065c-32.694 8.019-71.795-10.664-88.618-42.324-7.068-13.309-10.871-31.165-9.424-44.226s2.645-19.013 3.927-19.013c0.579 0 24.097 23.023 52.203 51.17z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[{}],"125525525513463581":[{}]},tags:["eye-off"],grid:0},attrs:[{}],properties:{order:10,id:15,name:"eye-off",prevSize:32,code:59655},setIdx:0,setId:3,iconIdx:18},{icon:{paths:["M476.812 145.058c-91.938 8.183-178.844 45.99-262.682 114.237-22.013 17.88-73.24 69.23-93.411 93.576-27.898 33.332-54.401 70.307-78.054 109.206l-2.265 4.009c-25.408 43.004-25.408 48.075 0 91.079 26.595 43.828 53.754 81.602 83.511 117.127l-1.187-1.456c17.103 20.621 67.881 71.644 87.316 87.765 95.252 79.132 196.848 119.231 301.963 119.231 101.186 0 199.262-37.274 291.528-110.8 24.55-19.599 77.168-71.317 97.789-96.194 28.531-34.062 55.678-71.838 79.947-111.56l2.335-4.112c25.408-43.004 25.408-48.075 0-91.079-36.927-62.014-78.968-115.578-126.948-163.159l-0.056-0.055c-52.373-52.333-95.049-83.755-153.109-112.642-47.258-23.526-92.471-37.52-140.752-43.534-19.762-2.456-66.611-3.355-85.924-1.636zM542.401 226.93c113.297 11.048 221.112 79.46 315.996 200.613 12.97 16.572 49.221 69.557 54.46 79.622 2.865 5.524 3.109 4.991-18.289 37.602-76.268 116.162-173.648 200.285-270.457 233.633-36.375 12.521-63.503 17.677-100.654 19.107-41.858 1.595-75.777-3.436-118.575-17.634-99.877-33.061-197.545-116.447-275.448-235.106-21.4-32.57-21.154-32.118-18.289-37.561 5.319-10.106 35.598-54.828 49.058-72.503 112.439-147.544 247.339-220.865 382.198-207.772zM485.731 350.456c-46.153 7.2-90.63 37.358-114.115 77.413-14.495 23.907-23.073 52.8-23.073 83.696 0 68.318 41.943 126.839 101.484 151.218l1.089 0.394c18.045 7.475 38.999 11.817 60.968 11.817 68.256 0 126.725-41.91 151.074-101.401l0.393-1.088c7.497-18.004 11.851-38.921 11.851-60.853 0-21.895-4.34-42.775-12.205-61.827l0.393 1.079c-21.587-53.034-68.85-91.572-125.925-100.454l-0.915-0.116c-7.561-1.328-16.266-2.088-25.149-2.088-9.141 0-18.093 0.805-26.792 2.346l0.92-0.135zM533.4 432.78c30.737 8.794 53.801 34.225 59.016 65.681l0.066 0.48c4.092 26.718-3.846 50.859-23.077 70.131-16.407 16.489-35.024 24.386-57.404 24.386-21.072 0-39.361-7.284-55.114-21.891-54.418-50.572-18.985-141.571 55.114-141.571 5.851 0 15.467 1.268 21.4 2.782z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[{}],"125525525513463581":[{}]},tags:["eye"],grid:0},attrs:[{}],properties:{order:11,id:16,name:"eye",prevSize:32,code:59656},setIdx:0,setId:3,iconIdx:19},{icon:{paths:["M481.28 43.648l-23.893 2.56c-80.555 8.533-159.104 40.107-228.693 91.819-25.984 19.328-71.509 64.853-91.051 90.965-106.581 142.805-124.8 327.040-48.171 486.955 23.296 48.555 50.304 86.229 91.349 127.232 41.003 41.045 78.677 68.053 127.232 91.349 159.872 76.629 344.235 58.325 487.125-48.341 25.984-19.371 71.637-65.024 91.008-91.008 126.891-170.027 126.891-396.331 0-566.357-19.371-25.941-64.981-71.552-90.88-90.795-68.053-50.603-139.733-80-222.592-91.264-18.048-2.475-78.891-4.523-91.435-3.115zM568.32 132.309c109.355 16.512 204.971 78.080 266.24 171.477 12.928 19.755 31.701 57.984 39.765 81.067 14.763 42.368 20.693 78.72 20.693 127.147 0 63.701-10.965 111.829-38.272 168.107-30.080 62.037-75.477 113.792-134.528 153.259-33.664 22.528-87.509 45.056-128.811 53.973-24.244 5.414-52.089 8.515-80.658 8.515-91.486 0-175.543-31.805-241.717-84.962l0.754 0.586c-64.555-51.712-112.981-127.573-132.395-207.317-7.936-32.555-10.411-54.272-10.411-92.16 0-63.701 10.965-111.829 38.272-168.107 45.622-92.339 124.633-162.383 220.876-195.211l2.698-0.799c30.080-9.941 54.272-14.848 93.013-18.859 13.739-1.408 67.029 0.64 84.48 3.285zM482.133 257.792c-22.357 3.456-48.768 14.165-70.827 28.715-38.101 25.131-71.424 80-66.261 109.184 2.56 14.72 15.104 25.173 36.309 30.421 9.771 2.389 12.843 2.517 19.499 0.768 11.392-3.029 20.821-12.971 27.563-28.928 6.741-16.085 12.8-25.003 23.509-34.645 26.325-23.68 61.141-28.501 94.208-13.013 14.848 6.955 31.744 24.021 38.997 39.381 6.059 12.843 9.643 32.128 8.021 43.093-4.096 27.221-38.699 56.917-92.288 79.232-31.019 12.885-39.424 24.107-34.944 46.805 5.675 28.8 22.997 43.221 46.421 38.613 24.832-4.907 68.651-26.965 97.451-49.109 49.365-37.973 71.595-80.213 68.949-130.987-2.261-43.136-18.731-79.957-49.749-111.189-21.063-21.482-47.858-37.271-77.909-44.894l-1.152-0.248c-15.317-3.968-51.925-5.675-67.797-3.2zM495.531 685.013c-16.811 5.504-24.533 16.299-25.813 36.053-1.323 20.523 4.693 34.091 18.475 41.813 6.613 3.712 9.685 4.267 23.808 4.267 13.312 0 17.408-0.683 23.040-3.669 13.909-7.509 19.627-18.56 19.627-38.144 0-27.435-12.245-40.619-39.125-41.984-8.107-0.427-15.573 0.213-20.011 1.664z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,colorPermutations:{"13513613712552552551":[{}],"125525525513463581":[{}]},tags:["help-circle"],grid:0},attrs:[{}],properties:{order:12,id:17,name:"help-circle",prevSize:32,code:59657},setIdx:0,setId:3,iconIdx:20}],height:1024,metadata:{name:"icomoon"},preferences:{showGlyphs:!0,showQuickUse:!0,showQuickUse2:!0,showSVGs:!0,fontPref:{prefix:"icon-",metadata:{fontFamily:"icomoon"},metrics:{emSize:1024,baseline:6.25,whitespace:50},embed:!1},imagePref:{prefix:"icon-",png:!0,useClassSelector:!0,color:0,bgColor:16777215,classSelector:".icon",name:"icomoon"},historySize:50,showCodes:!0,gridSize:16,showGrid:!1}}).icons.map(e=>e.properties.name).reduce((e,t)=>(e[t]=t,e),{});const Eo={prefix:String(Math.round(Math.random()*1e10)),current:0},mc=f.createContext(Eo),uh=f.createContext(!1);let dh=!!(typeof window<"u"&&window.document&&window.document.createElement),os=new WeakMap;function fh(e=!1){let t=f.useContext(mc),r=f.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let s=os.get(a);s==null?os.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,os.delete(a))}r.current=++t.current}return r.current}function ph(e){let t=f.useContext(mc);t===Eo&&!dh&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=fh(!!e),n=t===Eo&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function hh(e){let t=f.useId(),[r]=f.useState(gc()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Eo.prefix}`;return e||`${n}-${t}`}const mh=typeof f.useId=="function"?hh:ph;function gh(){return!1}function vh(){return!0}function bh(e){return()=>{}}function gc(){return typeof f.useSyncExternalStore=="function"?f.useSyncExternalStore(bh,gh,vh):f.useContext(uh)}function yh(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function xh(e,t,r){yh(e,t),t.set(e,r)}function Lr(e,t,r){let[n,o]=f.useState(e||t),a=f.useRef(e!==void 0),s=e!==void 0;f.useEffect(()=>{let c=a.current;c!==s&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let i=s?e:n,l=f.useCallback((c,...u)=>{let d=(p,...h)=>{r&&(Object.is(i,p)||r(p,...h)),s||(i=p)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((h,...g)=>{let b=c(s?i:h,...g);return d(b,...u),s?h:b})):(s||o(c),d(c,...u))},[s,i,r]);return[i,l]}const kt=typeof document<"u"?f.useLayoutEffect:()=>{};function We(e){const t=f.useRef(null);return kt(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n(...r)},[])}function wh(e){let[t,r]=f.useState(e),n=f.useRef(null),o=We(()=>{let s=n.current.next();if(s.done){n.current=null;return}t===s.value?o():r(s.value)});kt(()=>{n.current&&o()});let a=We(s=>{n.current=s(t),o()});return[t,a]}let Ch=!!(typeof window<"u"&&window.document&&window.document.createElement),$o=new Map;function _r(e){let[t,r]=f.useState(e),n=f.useRef(null),o=mh(t),a=f.useCallback(s=>{n.current=s},[]);return Ch&&$o.set(o,a),kt(()=>{let s=o;return()=>{$o.delete(s)}},[o]),f.useEffect(()=>{let s=n.current;s&&(n.current=null,r(s))}),o}function Ph(e,t){if(e===t)return e;let r=$o.get(e);if(r)return r(t),t;let n=$o.get(t);return n?(n(e),e):t}function vc(e=[]){let t=_r(),[r,n]=wh(t),o=f.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return kt(o,[t,o,...e]),r}function dr(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Ct=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},xn=e=>e&&"window"in e&&e.window===e?e:Ct(e).defaultView||window;function ie(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let a=t[o],s=n[o];typeof a=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=dr(a,s):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[o]=pc(a,s):o==="id"&&a&&s?t.id=Ph(a,s):t[o]=s!==void 0?s:a}}return t}const Mh=new Set(["id"]),Th=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Sh=new Set(["href","target","rel","download","ping","referrerPolicy"]),Eh=/^(data-.*)$/;function Fr(e,t={}){let{labelable:r,isLink:n,propNames:o}=t,a={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(Mh.has(s)||r&&Th.has(s)||n&&Sh.has(s)||o!=null&&o.has(s)||Eh.test(s))&&(a[s]=e[s]);return a}function tt(e){if($h())e.focus({preventScroll:!0});else{let t=Dh(e);e.focus(),Ih(t)}}let Do=null;function $h(){if(Do==null){Do=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Do=!0,!0}})}catch{}}return Do}function Dh(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function Ih(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Io(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function as(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function qt(){return as(/^Mac/i)}function kh(){return as(/^iPhone/i)}function bc(){return as(/^iPad/i)||qt()&&navigator.maxTouchPoints>1}function wn(){return kh()||bc()}function Ah(){return qt()||wn()}function Oh(){return Io(/AppleWebKit/i)&&!Nh()}function Nh(){return Io(/Chrome/i)}function yc(){return Io(/Android/i)}function jh(){return Io(/Firefox/i)}const Lh=f.createContext({isNative:!0,open:Fh});function xc(){return f.useContext(Lh)}function At(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:s,altKey:i,shiftKey:l}=t;jh()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(qt()?a=!0:s=!0);let c=Oh()&&qt()&&!bc()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:s,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:s,altKey:i,shiftKey:l,bubbles:!0,cancelable:!0});At.isOpening=r,tt(e),e.dispatchEvent(c),At.isOpening=!1}At.isOpening=!1;function _h(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function Fh(e,t){_h(e,r=>At(r,t))}let Vr=new Map,ss=new Set;function wc(){if(typeof window>"u")return;let e=r=>{let n=Vr.get(r.target);n||(n=new Set,Vr.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=Vr.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),Vr.delete(r.target)),Vr.size===0)){for(let o of ss)o();ss.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?wc():document.addEventListener("DOMContentLoaded",wc));function is(e){requestAnimationFrame(()=>{Vr.size===0?e():ss.add(e)})}function ls(){let e=f.useRef(new Map),t=f.useCallback((o,a,s,i)=>{let l=i!=null&&i.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:a,eventTarget:o,fn:l,options:i}),o.addEventListener(a,s,i)},[]),r=f.useCallback((o,a,s,i)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(a,c,i),e.current.delete(s)},[]),n=f.useCallback(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function cs(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=_r(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function us(e,t){kt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}})}function Cc(e,t){for(Pc(e,t)&&(e=e.parentElement);e&&!Pc(e,t);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Pc(e,t){let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}let Vh=0;const ds=new Map;function zh(e){let[t,r]=f.useState(void 0);return kt(()=>{if(!e)return;let n=ds.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${Vh++}`;r(o);let a=document.createElement("div");a.id=o,a.style.display="none",a.textContent=e,document.body.appendChild(a),n={refCount:0,element:a},ds.set(e,n)}return n.refCount++,()=>{--n.refCount===0&&(n.element.remove(),ds.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Wh(e,t,r,n){let o=We(r),a=r==null;f.useEffect(()=>{if(a)return;let s=e.current;return s.addEventListener(t,o,n),()=>{s.removeEventListener(t,o,n)}},[e,t,n,a,o])}function Mc(e,t){let r=Tc(e,t,"left"),n=Tc(e,t,"top"),o=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,i=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c}=getComputedStyle(e),u=e.scrollLeft+parseInt(c,10),d=e.scrollTop+parseInt(l,10),p=u+e.clientWidth,h=d+e.clientHeight;r<=s?s=r-parseInt(c,10):r+o>p&&(s+=r+o-p),n<=d?i=n-parseInt(l,10):n+a>h&&(i+=n+a-h),e.scrollLeft=s,e.scrollTop=i}function Tc(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function Sc(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=Cc(e);for(;e&&l&&e!==s&&l!==s;)Mc(l,e),e=l,l=Cc(e)}else{var r;let{left:l,top:c}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:u,top:d}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(c-d)>1){var n,o,a;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function Cn(e){return e.mozInputSource===0&&e.isTrusted?!0:yc()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ec(e){return!yc()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function fs(e,t,r){let n=f.useRef(t),o=We(()=>{r&&r(n.current)});f.useEffect(()=>{var a;let s=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return s==null||s.addEventListener("reset",o),()=>{s==null||s.removeEventListener("reset",o)}},[e,o])}const Bh=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Rh=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Kh(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return Bh.has(r.script)}let t=e.split("-")[0];return Rh.has(t)}const Uh=Symbol.for("react-aria.i18n.locale");function $c(){let e=typeof window<"u"&&window[Uh]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Kh(e)?"rtl":"ltr"}}let ps=$c(),Pn=new Set;function Dc(){ps=$c();for(let e of Pn)e(ps)}function Hh(){let e=gc(),[t,r]=f.useState(ps);return f.useEffect(()=>(Pn.size===0&&window.addEventListener("languagechange",Dc),Pn.add(r),()=>{Pn.delete(r),Pn.size===0&&window.removeEventListener("languagechange",Dc)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Yh=f.createContext(null);function hs(){let e=Hh();return f.useContext(Yh)||e}var Pt=function(){return Pt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Pt.apply(this,arguments)};function Ic(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Gh(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function qh(e,t){return t.get?t.get.call(e):t.value}function kc(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Qh(e,t){var r=kc(e,t,"get");return qh(e,r)}function Xh(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function Ac(e,t,r){var n=kc(e,t,"set");return Xh(e,n,r),r}let zr="default",ms="",ko=new WeakMap;function Oc(e){if(wn()){if(zr==="default"){const t=Ct(e);ms=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}zr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ko.set(e,e.style.userSelect),e.style.userSelect="none")}function Ao(e){if(wn()){if(zr!=="disabled")return;zr="restoring",setTimeout(()=>{is(()=>{if(zr==="restoring"){const t=Ct(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ms||""),ms="",zr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ko.has(e)){let t=ko.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ko.delete(e)}}const Nc=f.createContext({register:()=>{}});Nc.displayName="PressResponderContext";function Zh(e){let t=f.useContext(Nc);if(t){let{register:r,...n}=t;e=ie(n,e),r()}return us(t,e.ref),e}var Oo=new WeakMap;class No{continuePropagation(){Ac(this,Oo,!1)}get shouldStopPropagation(){return Qh(this,Oo)}constructor(t,r,n){xh(this,Oo,{writable:!0,value:void 0}),Ac(this,Oo,!0),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}const jc=Symbol("linkClicked");function fr(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,isDisabled:s,isPressed:i,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:d,...p}=Zh(e),[h,g]=f.useState(!1),b=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:P}=ls(),x=We((m,D)=>{let I=b.current;if(s||I.didFirePressStart)return!1;let T=!0;if(I.isTriggeringEvent=!0,n){let k=new No("pressstart",D,m);n(k),T=k.shouldStopPropagation}return r&&r(!0),I.isTriggeringEvent=!1,I.didFirePressStart=!0,g(!0),T}),C=We((m,D,I=!0)=>{let T=b.current;if(!T.didFirePressStart)return!1;T.ignoreClickAfterPress=!0,T.didFirePressStart=!1,T.isTriggeringEvent=!0;let k=!0;if(o){let w=new No("pressend",D,m);o(w),k=w.shouldStopPropagation}if(r&&r(!1),g(!1),t&&I&&!s){let w=new No("press",D,m);t(w),k&&(k=w.shouldStopPropagation)}return T.isTriggeringEvent=!1,k}),S=We((m,D)=>{let I=b.current;if(s)return!1;if(a){I.isTriggeringEvent=!0;let T=new No("pressup",D,m);return a(T),I.isTriggeringEvent=!1,T.shouldStopPropagation}return!0}),$=We(m=>{let D=b.current;D.isPressed&&D.target&&(D.isOverTarget&&D.pointerType!=null&&C(Ot(D.target,m),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,P(),u||Ao(D.target))}),N=We(m=>{c&&$(m)}),j=f.useMemo(()=>{let m=b.current,D={onKeyDown(T){if(vs(T.nativeEvent,T.currentTarget)&&T.currentTarget.contains(T.target)){var k;_c(T.target,T.key)&&T.preventDefault();let w=!0;!m.isPressed&&!T.repeat&&(m.target=T.currentTarget,m.isPressed=!0,w=x(T,"keyboard"),y(Ct(T.currentTarget),"keyup",I,!1)),w&&T.stopPropagation(),T.metaKey&&qt()&&((k=m.metaKeyEvents)===null||k===void 0||k.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(m.metaKeyEvents=new Map)},onKeyUp(T){vs(T.nativeEvent,T.currentTarget)&&!T.repeat&&T.currentTarget.contains(T.target)&&m.target&&S(Ot(m.target,T),"keyboard")},onClick(T){if(!(T&&!T.currentTarget.contains(T.target))&&T&&T.button===0&&!m.isTriggeringEvent&&!At.isOpening){let k=!0;if(s&&T.preventDefault(),!m.ignoreClickAfterPress&&!m.ignoreEmulatedMouseEvents&&!m.isPressed&&(m.pointerType==="virtual"||Cn(T.nativeEvent))){!s&&!l&&tt(T.currentTarget);let w=x(T,"virtual"),M=S(T,"virtual"),O=C(T,"virtual");k=w&&M&&O}m.ignoreEmulatedMouseEvents=!1,m.ignoreClickAfterPress=!1,k&&T.stopPropagation()}}},I=T=>{var k;if(m.isPressed&&m.target&&vs(T,m.target)){var w;_c(T.target,T.key)&&T.preventDefault();let O=T.target,F=C(Ot(m.target,T),"keyboard",m.target.contains(O));P(),F&&T.stopPropagation(),T.key!=="Enter"&&gs(m.target)&&m.target.contains(O)&&!T[jc]&&(T[jc]=!0,At(m.target,T,!1)),m.isPressed=!1,(w=m.metaKeyEvents)===null||w===void 0||w.delete(T.key)}else if(T.key==="Meta"&&(!((k=m.metaKeyEvents)===null||k===void 0)&&k.size)){var M;let O=m.metaKeyEvents;m.metaKeyEvents=void 0;for(let F of O.values())(M=m.target)===null||M===void 0||M.dispatchEvent(new KeyboardEvent("keyup",F))}};if(typeof PointerEvent<"u"){D.onPointerDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(Ec(M.nativeEvent)){m.pointerType="virtual";return}bs(M.currentTarget)&&M.preventDefault(),m.pointerType=M.pointerType;let O=!0;m.isPressed||(m.isPressed=!0,m.isOverTarget=!0,m.activePointerId=M.pointerId,m.target=M.currentTarget,!s&&!l&&tt(M.currentTarget),u||Oc(m.target),O=x(M,m.pointerType),y(Ct(M.currentTarget),"pointermove",T,!1),y(Ct(M.currentTarget),"pointerup",k,!1),y(Ct(M.currentTarget),"pointercancel",w,!1)),O&&M.stopPropagation()},D.onMouseDown=M=>{M.currentTarget.contains(M.target)&&M.button===0&&(bs(M.currentTarget)&&M.preventDefault(),M.stopPropagation())},D.onPointerUp=M=>{!M.currentTarget.contains(M.target)||m.pointerType==="virtual"||M.button===0&&Wr(M,M.currentTarget)&&S(M,m.pointerType||M.pointerType)};let T=M=>{M.pointerId===m.activePointerId&&(m.target&&Wr(M,m.target)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,x(Ot(m.target,M),m.pointerType)):m.target&&m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,C(Ot(m.target,M),m.pointerType,!1),N(M)))},k=M=>{M.pointerId===m.activePointerId&&m.isPressed&&M.button===0&&m.target&&(Wr(M,m.target)&&m.pointerType!=null?C(Ot(m.target,M),m.pointerType):m.isOverTarget&&m.pointerType!=null&&C(Ot(m.target,M),m.pointerType,!1),m.isPressed=!1,m.isOverTarget=!1,m.activePointerId=null,m.pointerType=null,P(),u||Ao(m.target))},w=M=>{$(M)};D.onDragStart=M=>{M.currentTarget.contains(M.target)&&$(M)}}else{D.onMouseDown=w=>{if(w.button!==0||!w.currentTarget.contains(w.target))return;if(bs(w.currentTarget)&&w.preventDefault(),m.ignoreEmulatedMouseEvents){w.stopPropagation();return}m.isPressed=!0,m.isOverTarget=!0,m.target=w.currentTarget,m.pointerType=Cn(w.nativeEvent)?"virtual":"mouse",!s&&!l&&tt(w.currentTarget),x(w,m.pointerType)&&w.stopPropagation(),y(Ct(w.currentTarget),"mouseup",T,!1)},D.onMouseEnter=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!0,M=x(w,m.pointerType)),M&&w.stopPropagation()},D.onMouseLeave=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!1,M=C(w,m.pointerType,!1),N(w)),M&&w.stopPropagation()},D.onMouseUp=w=>{w.currentTarget.contains(w.target)&&!m.ignoreEmulatedMouseEvents&&w.button===0&&S(w,m.pointerType||"mouse")};let T=w=>{if(w.button===0){if(m.isPressed=!1,P(),m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.target&&Wr(w,m.target)&&m.pointerType!=null?C(Ot(m.target,w),m.pointerType):m.target&&m.isOverTarget&&m.pointerType!=null&&C(Ot(m.target,w),m.pointerType,!1),m.isOverTarget=!1}};D.onTouchStart=w=>{if(!w.currentTarget.contains(w.target))return;let M=Jh(w.nativeEvent);if(!M)return;m.activePointerId=M.identifier,m.ignoreEmulatedMouseEvents=!0,m.isOverTarget=!0,m.isPressed=!0,m.target=w.currentTarget,m.pointerType="touch",!s&&!l&&tt(w.currentTarget),u||Oc(m.target),x(w,m.pointerType)&&w.stopPropagation(),y(xn(w.currentTarget),"scroll",k,!0)},D.onTouchMove=w=>{if(!w.currentTarget.contains(w.target))return;if(!m.isPressed){w.stopPropagation();return}let M=Lc(w.nativeEvent,m.activePointerId),O=!0;M&&Wr(M,w.currentTarget)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,O=x(w,m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,O=C(w,m.pointerType,!1),N(w)),O&&w.stopPropagation()},D.onTouchEnd=w=>{if(!w.currentTarget.contains(w.target))return;if(!m.isPressed){w.stopPropagation();return}let M=Lc(w.nativeEvent,m.activePointerId),O=!0;M&&Wr(M,w.currentTarget)&&m.pointerType!=null?(S(w,m.pointerType),O=C(w,m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(O=C(w,m.pointerType,!1)),O&&w.stopPropagation(),m.isPressed=!1,m.activePointerId=null,m.isOverTarget=!1,m.ignoreEmulatedMouseEvents=!0,m.target&&!u&&Ao(m.target),P()},D.onTouchCancel=w=>{w.currentTarget.contains(w.target)&&(w.stopPropagation(),m.isPressed&&$(w))};let k=w=>{m.isPressed&&w.target.contains(m.target)&&$({currentTarget:m.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};D.onDragStart=w=>{w.currentTarget.contains(w.target)&&$(w)}}return D},[y,s,l,P,u,$,N,C,x,S]);return f.useEffect(()=>()=>{var m;u||Ao((m=b.current.target)!==null&&m!==void 0?m:void 0)},[u]),{isPressed:i||h,pressProps:ie(p,j)}}function gs(e){return e.tagName==="A"&&e.hasAttribute("href")}function vs(e,t){const{key:r,code:n}=e,o=t,a=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof xn(o).HTMLInputElement&&!Fc(o,r)||o instanceof xn(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&gs(o))&&r!=="Enter")}function Jh(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Lc(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Ot(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function em(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function tm(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Wr(e,t){let r=t.getBoundingClientRect(),n=em(e);return tm(r,n)}function bs(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function _c(e,t){return e instanceof HTMLInputElement?!Fc(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!gs(e)}const rm=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Fc(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":rm.has(e.type)}class nm{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function Vc(e){let t=f.useRef({isFocused:!1,observer:null});kt(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=We(n=>{e==null||e(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,a=s=>{t.current.isFocused=!1,o.disabled&&r(new nm("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let i=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function zc(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const a=f.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),s=Vc(a),i=f.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(r&&r(l),o&&o(!0),s(l))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?i:void 0,onBlur:!t&&(n||o)?a:void 0}}}let pr=null,ys=new Set,Wc=!1,hr=!1,xs=!1;const om={Tab:!0,Escape:!0};function jo(e,t){for(let r of ys)r(e,t)}function am(e){return!(e.metaKey||!qt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Bc(e){hr=!0,am(e)&&(pr="keyboard",jo("keyboard",e))}function Br(e){pr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(hr=!0,jo("pointer",e))}function sm(e){Cn(e)&&(hr=!0,pr="virtual")}function im(e){e.target===window||e.target===document||(!hr&&!xs&&(pr="virtual",jo("virtual",e)),hr=!1,xs=!1)}function lm(){hr=!1,xs=!0}function ws(){if(typeof window>"u"||Wc)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){hr=!0,e.apply(this,arguments)},document.addEventListener("keydown",Bc,!0),document.addEventListener("keyup",Bc,!0),document.addEventListener("click",sm,!0),window.addEventListener("focus",im,!0),window.addEventListener("blur",lm,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Br,!0),document.addEventListener("pointermove",Br,!0),document.addEventListener("pointerup",Br,!0)):(document.addEventListener("mousedown",Br,!0),document.addEventListener("mousemove",Br,!0),document.addEventListener("mouseup",Br,!0)),Wc=!0}typeof document<"u"&&(document.readyState!=="loading"?ws():document.addEventListener("DOMContentLoaded",ws));function Rc(){return pr!=="pointer"}function Cs(){return pr}function cm(e){pr=e,jo(e,null)}const um=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function dm(e,t,r){var n;return e=e||(r==null?void 0:r.target)instanceof HTMLInputElement&&!um.has(r==null||(n=r.target)===null||n===void 0?void 0:n.type)||(r==null?void 0:r.target)instanceof HTMLTextAreaElement||(r==null?void 0:r.target)instanceof HTMLElement&&(r==null?void 0:r.target.isContentEditable),!(e&&t==="keyboard"&&r instanceof KeyboardEvent&&!om[r.key])}function fm(e,t,r){ws(),f.useEffect(()=>{let n=(o,a)=>{dm(!!(r!=null&&r.isTextInput),o,a)&&e(Rc())};return ys.add(n),()=>{ys.delete(n)}},t)}function Lo(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=f.useRef({isFocusWithin:!1}),s=f.useCallback(c=>{a.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(a.current.isFocusWithin=!1,r&&r(c),o&&o(!1))},[r,o,a]),i=Vc(s),l=f.useCallback(c=>{!a.current.isFocusWithin&&document.activeElement===c.target&&(n&&n(c),o&&o(!0),a.current.isFocusWithin=!0,i(c))},[n,o,i]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let _o=!1,Ps=0;function Ms(){_o=!0,setTimeout(()=>{_o=!1},50)}function Kc(e){e.pointerType==="touch"&&Ms()}function pm(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Kc):document.addEventListener("touchend",Ms),Ps++,()=>{Ps--,!(Ps>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Kc):document.removeEventListener("touchend",Ms))}}function mr(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[a,s]=f.useState(!1),i=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(pm,[]);let{hoverProps:l,triggerHoverEnd:c}=f.useMemo(()=>{let u=(h,g)=>{if(i.pointerType=g,o||g==="touch"||i.isHovered||!h.currentTarget.contains(h.target))return;i.isHovered=!0;let b=h.currentTarget;i.target=b,t&&t({type:"hoverstart",target:b,pointerType:g}),r&&r(!0),s(!0)},d=(h,g)=>{if(i.pointerType="",i.target=null,g==="touch"||!i.isHovered)return;i.isHovered=!1;let b=h.currentTarget;n&&n({type:"hoverend",target:b,pointerType:g}),r&&r(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{_o&&h.pointerType==="mouse"||u(h,h.pointerType)},p.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(p.onTouchStart=()=>{i.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!i.ignoreEmulatedMouseEvents&&!_o&&u(h,"mouse"),i.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:p,triggerHoverEnd:d}},[t,r,n,o,i]);return f.useEffect(()=>{o&&c({currentTarget:i.target},i.pointerType)},[o]),{hoverProps:l,isHovered:a}}function Uc(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(n),t&&r.stopPropagation()}}function hm(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Uc(e.onKeyDown),onKeyUp:Uc(e.onKeyUp)}}}const mm=500;function gm(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:a=mm,accessibilityDescription:s}=e;const i=f.useRef();let{addGlobalListener:l,removeGlobalListener:c}=ls(),{pressProps:u}=fr({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(r&&r({...p,type:"longpressstart"}),i.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...p,type:"longpress"}),i.current=void 0},a),p.pointerType==="touch")){let h=g=>{g.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){i.current&&clearTimeout(i.current),n&&(p.pointerType==="mouse"||p.pointerType==="touch")&&n({...p,type:"longpressend"})}}),d=zh(o&&!t?s:void 0);return{longPressProps:ie(u,d)}}function Fo(e){const t=Ct(e);if(Cs()==="virtual"){let r=t.activeElement;is(()=>{t.activeElement===r&&e.isConnected&&tt(e)})}else tt(e)}function vm(e){const t=xn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:s,visibility:i}=a(e);o=s!=="none"&&i!=="hidden"&&i!=="collapse"}return o}function bm(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Hc(e,t){return e.nodeName!=="#comment"&&vm(e)&&bm(e,t)&&(!e.parentElement||Hc(e.parentElement,e))}const Ts=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],ym=Ts.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ts.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const xm=Ts.join(':not([hidden]):not([tabindex="-1"]),');function Yc(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Ss(e,t,r){let n=t!=null&&t.tabbable?xm:ym,o=Ct(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:a.matches(n)&&Hc(a)&&(!r||Yc(a,r))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class Es{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let a=new Gc({scopeRef:t});o.addChild(a),a.parent=o,this.fastMap.set(t,a),n&&(a.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Yc(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(a=>n&&n.addChild(a))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new Es;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Gc({scopeRef:null}),this.fastMap.set(null,this.root)}}class Gc{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new Es;function Mt(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||Rc()}),[a,s]=f.useState(!1),[i,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=f.useCallback(h=>{o.current.isFocused=h,s(h),c()},[c]);fm(h=>{o.current.isFocusVisible=h,c()},[],{isTextInput:r});let{focusProps:d}=zc({isDisabled:n,onFocusChange:u}),{focusWithinProps:p}=Lo({isDisabled:!n,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:i,focusProps:n?p:d}}let wm=f.createContext(null);function Cm(e){let t=f.useContext(wm)||{};us(t,e);let{ref:r,...n}=t;return n}function Vo(e,t){let{focusProps:r}=zc(e),{keyboardProps:n}=hm(e),o=ie(r,n),a=Cm(t),s=e.isDisabled?{}:a,i=f.useRef(e.autoFocus);return f.useEffect(()=>{i.current&&t.current&&Fo(t.current),i.current=!1},[t]),{focusableProps:ie({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function Pm(e,t){let r=t==null?void 0:t.isDisabled,[n,o]=f.useState(!1);return kt(()=>{if(e!=null&&e.current&&!r){let a=()=>{if(e.current){let i=Ss(e.current,{tabbable:!0});o(!!i.nextNode())}};a();let s=new MutationObserver(a);return s.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{s.disconnect()}}}),r?!1:n}const qc={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Mm(e={}){let{style:t,isFocusable:r}=e,[n,o]=f.useState(!1),{focusWithinProps:a}=Lo({isDisabled:!r,onFocusWithinChange:i=>o(i)}),s=f.useMemo(()=>n?t:t?{...qc,...t}:qc,[n]);return{visuallyHiddenProps:{...a,style:s}}}function $s(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...a}=e,{visuallyHiddenProps:s}=Mm(e);return f.createElement(r,ie(a,s),t)}function vt(e){return f.forwardRef(e)}var Mn=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,a)=>a in e?{...o,[a]:e[a]}:o,{});return r?[Object.keys(e).filter(a=>!t.includes(a)).reduce((a,s)=>({...a,[s]:e[s]}),{}),n]:[e,n]},Tm=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],Ds=Tm.map(e=>`unit-${e}`),zo=["small","medium","large"],rt=(e,t)=>{var r,n,o;return we(e,{...t,twMerge:(r=t==null?void 0:t.twMerge)!=null?r:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(n=t==null?void 0:t.twMergeConfig)==null?void 0:n.theme,opacity:["disabled"],spacing:["divider","unit",...Ds],borderWidth:zo,borderRadius:zo},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:zo}],"font-size":[{text:["tiny",...zo]}],"bg-image":["bg-stripe-gradient"],"min-w":[{"min-w":["unit",...Ds]}],"min-h":[{"min-h":["unit",...Ds]}]}}})},Tn=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Wo=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],Sm=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],Is=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],Rr={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]},Em={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},$m={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},Dm={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},Im={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},km={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},Am={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},Om={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},K={solid:Em,shadow:$m,bordered:Dm,flat:Im,faded:km,light:Am,ghost:Om},Qc=rt({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),Xc=rt({slots:{base:"inline-flex",tabList:["flex","p-1","h-fit","gap-2","items-center","flex-nowrap","overflow-x-scroll","scrollbar-hide","bg-default-100"],tab:["z-0","w-full","px-3","py-1","flex","group","relative","justify-center","items-center","outline-none","cursor-pointer","transition-opacity","tap-highlight-transparent","data-[disabled=true]:cursor-not-allowed","data-[disabled=true]:opacity-30","data-[hover-unselected=true]:opacity-disabled",...Tn],tabContent:["relative","z-10","text-inherit","whitespace-nowrap","transition-colors","text-default-500","group-data-[selected=true]:text-foreground"],cursor:["absolute","z-0","bg-white"],panel:["py-3","px-1","outline-none",...Tn]},variants:{variant:{solid:{cursor:"inset-0"},light:{tabList:"bg-transparent dark:bg-transparent",cursor:"inset-0"},underlined:{tabList:"bg-transparent dark:bg-transparent",cursor:"h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"},bordered:{tabList:"bg-transparent dark:bg-transparent border-medium border-default-200 shadow-sm",cursor:"inset-0"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{tabList:"rounded-medium",tab:"h-7 text-tiny rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"h-8 text-small rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"h-9 text-medium rounded-medium",cursor:"rounded-medium"}},radius:{none:{tabList:"rounded-none",tab:"rounded-none",cursor:"rounded-none"},sm:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"rounded-medium",cursor:"rounded-medium"},full:{tabList:"rounded-full",tab:"rounded-full",cursor:"rounded-full"}},fullWidth:{true:{base:"w-full",tabList:"w-full"}},isDisabled:{true:{tabList:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{tab:"transition-none",tabContent:"transition-none"}}},defaultVariants:{color:"default",variant:"solid",size:"md",fullWidth:!1,isDisabled:!1,disableAnimation:!1},compoundVariants:[{variant:["solid","bordered","light"],color:"default",class:{cursor:["bg-background","dark:bg-default","shadow-small"],tabContent:"group-data-[selected=true]:text-default-foreground"}},{variant:["solid","bordered","light"],color:"primary",class:{cursor:K.solid.primary,tabContent:"group-data-[selected=true]:text-primary-foreground"}},{variant:["solid","bordered","light"],color:"secondary",class:{cursor:K.solid.secondary,tabContent:"group-data-[selected=true]:text-secondary-foreground"}},{variant:["solid","bordered","light"],color:"success",class:{cursor:K.solid.success,tabContent:"group-data-[selected=true]:text-success-foreground"}},{variant:["solid","bordered","light"],color:"warning",class:{cursor:K.solid.warning,tabContent:"group-data-[selected=true]:text-warning-foreground"}},{variant:["solid","bordered","light"],color:"danger",class:{cursor:K.solid.danger,tabContent:"group-data-[selected=true]:text-danger-foreground"}},{variant:"underlined",color:"default",class:{cursor:"bg-foreground",tabContent:"group-data-[selected=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{cursor:"bg-primary",tabContent:"group-data-[selected=true]:text-primary"}},{variant:"underlined",color:"secondary",class:{cursor:"bg-secondary",tabContent:"group-data-[selected=true]:text-secondary"}},{variant:"underlined",color:"success",class:{cursor:"bg-success",tabContent:"group-data-[selected=true]:text-success"}},{variant:"underlined",color:"warning",class:{cursor:"bg-warning",tabContent:"group-data-[selected=true]:text-warning"}},{variant:"underlined",color:"danger",class:{cursor:"bg-danger",tabContent:"group-data-[selected=true]:text-danger"}},{disableAnimation:!0,variant:"underlined",class:{tab:["after:content-['']","after:absolute","after:bottom-0","after:h-[2px]","after:w-[80%]","after:opacity-0","after:shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","data-[selected=true]:after:opacity-100"]}},{disableAnimation:!0,color:"default",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"}},{disableAnimation:!0,color:"primary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"}},{disableAnimation:!0,color:"secondary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"}},{disableAnimation:!0,color:"success",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"}},{disableAnimation:!0,color:"warning",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"}},{disableAnimation:!0,color:"danger",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"}},{disableAnimation:!0,color:"default",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-foreground"}},{disableAnimation:!0,color:"primary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-primary"}},{disableAnimation:!0,color:"secondary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-secondary"}},{disableAnimation:!0,color:"success",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-success"}},{disableAnimation:!0,color:"warning",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-warning"}},{disableAnimation:!0,color:"danger",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-danger"}}],compoundSlots:[{variant:"underlined",slots:["tab","tabList","cursor"],class:["rounded-none"]}]}),Zc=rt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent",wrapper:["px-1","relative","inline-flex","items-center","justify-start","flex-shrink-0","overflow-hidden","bg-default-200","rounded-full",...Wo],thumb:["z-10","flex","items-center","justify-center","bg-white","shadow-small","rounded-full","origin-right"],startContent:"z-0 absolute left-1.5 text-current",endContent:"z-0 absolute right-1.5 text-default-600",thumbIcon:"text-black",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:["group-data-[selected=true]:bg-default-400","group-data-[selected=true]:text-default-foreground"]},primary:{wrapper:["group-data-[selected=true]:bg-primary","group-data-[selected=true]:text-primary-foreground"]},secondary:{wrapper:["group-data-[selected=true]:bg-secondary","group-data-[selected=true]:text-secondary-foreground"]},success:{wrapper:["group-data-[selected=true]:bg-success","group-data-[selected=true]:text-success-foreground"]},warning:{wrapper:["group-data-[selected=true]:bg-warning","group-data-[selected=true]:text-warning-foreground"]},danger:{wrapper:["group-data-[selected=true]:bg-danger","data-[selected=true]:text-danger-foreground"]}},size:{sm:{wrapper:"w-10 h-6 mr-2",thumb:["w-4 h-4 text-tiny","group-data-[selected=true]:ml-4"],endContent:"text-tiny",startContent:"text-tiny",label:"text-small"},md:{wrapper:"w-12 h-7 mr-2",thumb:["w-5 h-5 text-small","group-data-[selected=true]:ml-5"],endContent:"text-small",startContent:"text-small",label:"text-medium"},lg:{wrapper:"w-14 h-8 mr-2",thumb:["w-6 h-6 text-medium","group-data-[selected=true]:ml-6"],endContent:"text-medium",startContent:"text-medium",label:"text-large"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{wrapper:"transition-none",thumb:"transition-none"},false:{wrapper:"transition-background",thumb:"transition-all",startContent:["opacity-0","scale-50","transition-transform-opacity","group-data-[selected=true]:scale-100","group-data-[selected=true]:opacity-100"],endContent:["opacity-100","transition-transform-opacity","group-data-[selected=true]:translate-x-3","group-data-[selected=true]:opacity-0"]}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,disableAnimation:!1},compoundVariants:[{disableAnimation:!1,size:"sm",class:{thumb:["group-data-[pressed=true]:w-5","group-data-[selected]:group-data-[pressed]:ml-3"]}},{disableAnimation:!1,size:"md",class:{thumb:["group-data-[pressed=true]:w-6","group-data-[selected]:group-data-[pressed]:ml-4"]}},{disableAnimation:!1,size:"lg",class:{thumb:["group-data-[pressed=true]:w-7","group-data-[selected]:group-data-[pressed]:ml-5"]}}]}),Nm=rt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","border-solid","border-medium","box-border","border-default","rounded-full","group-data-[hover-unselected=true]:bg-default-100",...Wo],labelWrapper:"flex flex-col ml-1",control:["z-10","w-2","h-2","opacity-0","scale-0","origin-center","rounded-full","group-data-[selected=true]:opacity-100","group-data-[selected=true]:scale-100"],label:"relative text-foreground select-none",description:"relative text-foreground-400"},variants:{color:{default:{control:"bg-default-500 text-default-foreground",wrapper:"group-data-[selected=true]:border-default-500"},primary:{control:"bg-primary text-primary-foreground",wrapper:"group-data-[selected=true]:border-primary"},secondary:{control:"bg-secondary text-secondary-foreground",wrapper:"group-data-[selected=true]:border-secondary"},success:{control:"bg-success text-success-foreground",wrapper:"group-data-[selected=true]:border-success"},warning:{control:"bg-warning text-warning-foreground",wrapper:"group-data-[selected=true]:border-warning"},danger:{control:"bg-danger text-danger-foreground",wrapper:"group-data-[selected=true]:border-danger"}},size:{sm:{wrapper:"w-4 h-4",control:"w-1.5 h-1.5",labelWrapper:"ml-1",label:"text-small",description:"text-tiny"},md:{wrapper:"w-5 h-5",control:"w-2 h-2",labelWrapper:"ml-2",label:"text-medium",description:"text-small"},lg:{wrapper:"w-6 h-6",control:"w-2.5 h-2.5",labelWrapper:"ml-2",label:"text-large",description:"text-medium"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{control:"bg-danger text-danger-foreground",wrapper:"border-danger group-data-[selected=true]:border-danger",label:"text-danger",description:"text-danger-300"}},disableAnimation:{true:{},false:{wrapper:["group-data-[pressed=true]:scale-95","transition-transform-colors","motion-reduce:transition-none"],control:"transition-transform-opacity motion-reduce:transition-none",label:"transition-colors motion-reduce:transition-none",description:"transition-colors motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,isInvalid:!1,disableAnimation:!1}}),jm=rt({slots:{base:"relative flex flex-col gap-2",label:"relative text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1,disableAnimation:!1}}),Jc=rt({slots:{base:"group flex flex-col",label:["absolute","z-10","pointer-events-none","origin-top-left","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5"],clearButton:["p-2","-m-2","z-10","hidden","absolute","right-3","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...Tn],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-unit-8 min-h-unit-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-unit-10 min-h-unit-10 rounded-medium",input:"text-small",clearButton:"text-large"},lg:{inputWrapper:"h-unit-12 min-h-unit-12 rounded-large",input:"text-medium",clearButton:"text-large"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pr-2"},inside:{label:"text-tiny cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"}},isClearable:{true:{input:"peer pr-6",clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity]"],clearButton:["transition-opacity","motion-reduce:transition-none"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,isMultiline:!1,disableAnimation:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-50","data-[hover=true]:bg-primary-100","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-50","text-secondary","data-[hover=true]:bg-secondary-100","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-50","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-100","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-50","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-100","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-50","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...Wo]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-small",inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:["outside","outside-left"],class:{input:"h-full"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:left-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["left-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["left-3","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["left-3","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}}]}),Lm=rt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...Wo],icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 mr-2","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 mr-2","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 mr-2","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1,disableAnimation:!1}});rt({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1,disableAnimation:!1}});var eu=rt({slots:{base:["relative","max-w-fit","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"flex-shrink-0",closeButton:["z-10","appearance-none","outline-none","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...Sm,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:K.solid.default}},{variant:"solid",color:"primary",class:{base:K.solid.primary}},{variant:"solid",color:"secondary",class:{base:K.solid.secondary}},{variant:"solid",color:"success",class:{base:K.solid.success}},{variant:"solid",color:"warning",class:{base:K.solid.warning}},{variant:"solid",color:"danger",class:{base:K.solid.danger}},{variant:"shadow",color:"default",class:{base:K.shadow.default}},{variant:"shadow",color:"primary",class:{base:K.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:K.shadow.secondary}},{variant:"shadow",color:"success",class:{base:K.shadow.success}},{variant:"shadow",color:"warning",class:{base:K.shadow.warning}},{variant:"shadow",color:"danger",class:{base:K.shadow.danger}},{variant:"bordered",color:"default",class:{base:K.bordered.default}},{variant:"bordered",color:"primary",class:{base:K.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:K.bordered.secondary}},{variant:"bordered",color:"success",class:{base:K.bordered.success}},{variant:"bordered",color:"warning",class:{base:K.bordered.warning}},{variant:"bordered",color:"danger",class:{base:K.bordered.danger}},{variant:"flat",color:"default",class:{base:K.flat.default}},{variant:"flat",color:"primary",class:{base:K.flat.primary}},{variant:"flat",color:"secondary",class:{base:K.flat.secondary}},{variant:"flat",color:"success",class:{base:K.flat.success}},{variant:"flat",color:"warning",class:{base:K.flat.warning}},{variant:"flat",color:"danger",class:{base:K.flat.danger}},{variant:"faded",color:"default",class:{base:K.faded.default}},{variant:"faded",color:"primary",class:{base:K.faded.primary}},{variant:"faded",color:"secondary",class:{base:K.faded.secondary}},{variant:"faded",color:"success",class:{base:K.faded.success}},{variant:"faded",color:"warning",class:{base:K.faded.warning}},{variant:"faded",color:"danger",class:{base:K.faded.danger}},{variant:"light",color:"default",class:{base:K.light.default}},{variant:"light",color:"primary",class:{base:K.light.primary}},{variant:"light",color:"secondary",class:{base:K.light.secondary}},{variant:"light",color:"success",class:{base:K.light.success}},{variant:"light",color:"warning",class:{base:K.light.warning}},{variant:"light",color:"danger",class:{base:K.light.danger}},{isOneChar:!0,size:"sm",class:{base:"w-5 h-5 min-w-unit-5 min-h-5"}},{isOneChar:!0,size:"md",class:{base:"w-6 h-6 min-w-unit-6 min-h-6"}},{isOneChar:!0,size:"lg",class:{base:"w-7 h-7 min-w-unit-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,class:{base:"w-auto"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),_m=rt({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...Tn],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Is,"flex","items-center","justify-center"],name:[...Is,"font-normal","text-center","text-inherit"],icon:[...Is,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:K.solid.default},primary:{base:K.solid.primary},secondary:{base:K.solid.secondary},success:{base:K.solid.success},warning:{base:K.solid.warning},danger:{base:K.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]});rt({base:"flex items-center justify-center h-auto w-max-content",variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}});var Fm=rt({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent",...Tn],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 rounded-small",md:"px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium",lg:"px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-unit-0 !gap-unit-0",false:"[&>svg]:max-w-[theme(spacing.unit-8)]"},disableAnimation:{true:"!transition-none",false:"data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1,disableAnimation:!1},compoundVariants:[{variant:"solid",color:"default",class:K.solid.default},{variant:"solid",color:"primary",class:K.solid.primary},{variant:"solid",color:"secondary",class:K.solid.secondary},{variant:"solid",color:"success",class:K.solid.success},{variant:"solid",color:"warning",class:K.solid.warning},{variant:"solid",color:"danger",class:K.solid.danger},{variant:"shadow",color:"default",class:K.shadow.default},{variant:"shadow",color:"primary",class:K.shadow.primary},{variant:"shadow",color:"secondary",class:K.shadow.secondary},{variant:"shadow",color:"success",class:K.shadow.success},{variant:"shadow",color:"warning",class:K.shadow.warning},{variant:"shadow",color:"danger",class:K.shadow.danger},{variant:"bordered",color:"default",class:K.bordered.default},{variant:"bordered",color:"primary",class:K.bordered.primary},{variant:"bordered",color:"secondary",class:K.bordered.secondary},{variant:"bordered",color:"success",class:K.bordered.success},{variant:"bordered",color:"warning",class:K.bordered.warning},{variant:"bordered",color:"danger",class:K.bordered.danger},{variant:"flat",color:"default",class:K.flat.default},{variant:"flat",color:"primary",class:K.flat.primary},{variant:"flat",color:"secondary",class:K.flat.secondary},{variant:"flat",color:"success",class:K.flat.success},{variant:"flat",color:"warning",class:K.flat.warning},{variant:"flat",color:"danger",class:K.flat.danger},{variant:"faded",color:"default",class:K.faded.default},{variant:"faded",color:"primary",class:K.faded.primary},{variant:"faded",color:"secondary",class:K.faded.secondary},{variant:"faded",color:"success",class:K.faded.success},{variant:"faded",color:"warning",class:K.faded.warning},{variant:"faded",color:"danger",class:K.faded.danger},{variant:"light",color:"default",class:[K.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[K.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[K.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[K.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[K.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[K.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:K.ghost.default},{variant:"ghost",color:"primary",class:K.ghost.primary},{variant:"ghost",color:"secondary",class:K.ghost.secondary},{variant:"ghost",color:"success",class:K.ghost.success},{variant:"ghost",color:"warning",class:K.ghost.warning},{variant:"ghost",color:"danger",class:K.ghost.danger},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:Rr.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:Rr.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:Rr.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:Rr.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:Rr.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:Rr.danger},{isIconOnly:!0,size:"sm",class:"min-w-unit-8 w-unit-8 h-unit-8"},{isIconOnly:!0,size:"md",class:"min-w-unit-10 w-unit-10 h-unit-10"},{isIconOnly:!0,size:"lg",class:"min-w-unit-12 w-unit-12 h-unit-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});rt({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var Vm=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3),ks=(...e)=>{let t=" ";for(const r of e)if(typeof r=="string"&&r.length>0){t=r;break}return t};function tu(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=tu(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function me(...e){for(var t=0,r,n,o="";t<e.length;)(r=e[t++])&&(n=tu(r))&&(o&&(o+=" "),o+=n);return o}var ru={};function Bo(e,t,...r){var n;const a=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!ru[a]&&(ru[a]=!0,((n=process==null?void 0:process.env)==null?void 0:n.NODE_ENV)!=="production"))return console.warn(a,r)}function zm(e){return`${e}-${Math.floor(Math.random()*1e6)}`}var nu=process.env.NODE_ENV!=="production";process.env.NODE_ENV;var Q=e=>e?"true":void 0;function Ro(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=G.createContext(void 0);o.displayName=n;function a(){var s;const i=G.useContext(o);if(!i&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,a),l}return i}return[o.Provider,a,o]}function Wm(e){return{UNSAFE_getDOMNode(){return e.current}}}function Bm(e,t=e){return{...Wm(e),focus(){t.current&&t.current.focus()}}}function nt(e){const t=f.useRef(null);return f.useImperativeHandle(e,()=>t.current),t}function ou(e,t){const r=f.useRef(null);return f.useImperativeHandle(e,()=>Bm(r,t)),r}var Rm=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),Km=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),Um=/^(data-.*)$/,Hm=/^(aria-.*)$/,As=/^(on[A-Z].*)$/;function Sn(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:a,omitEventNames:s}=t,i={};if(!n)return e;for(const l in e)a!=null&&a.has(l)||s!=null&&s.has(l)&&As.test(l)||As.test(l)&&!Km.has(l)||(Object.prototype.hasOwnProperty.call(e,l)&&(Rm.has(l)||r&&Hm.test(l)||o!=null&&o.has(l)||Um.test(l))||As.test(l))&&(i[l]=e[l]);return i}function Os(e){return Ah()?e.altKey:e.ctrlKey}function Kr(e){return qt()?e.metaKey:e.ctrlKey}const Ym=1e3;function Gm(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=f.useRef({search:"",timeout:null}).current,a=s=>{let i=qm(s.key);if(!i||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))return;i===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=i;let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},Ym)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function qm(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Qm(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:s=!1,disallowSelectAll:i=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:u,allowsTabNavigation:d=!1,isVirtualized:p,scrollRef:h=n,linkBehavior:g="action"}=e,{direction:b}=hs(),y=xc(),P=I=>{if(I.altKey&&I.key==="Tab"&&I.preventDefault(),!n.current.contains(I.target))return;const T=(R,W)=>{if(R!=null){if(t.isLink(R)&&g==="selection"&&l&&!Os(I)){hn.flushSync(()=>{t.setFocusedKey(R,W)});let ee=h.current.querySelector(`[data-key="${CSS.escape(R.toString())}"]`);y.open(ee,I);return}if(t.setFocusedKey(R,W),t.isLink(R)&&g==="override")return;I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(R):l&&!Os(I)&&t.replaceSelection(R)}};switch(I.key){case"ArrowDown":if(r.getKeyBelow){var k,w;I.preventDefault();let R=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):(k=r.getFirstKey)===null||k===void 0?void 0:k.call(r);R==null&&a&&(R=(w=r.getFirstKey)===null||w===void 0?void 0:w.call(r,t.focusedKey)),T(R)}break;case"ArrowUp":if(r.getKeyAbove){var M,O;I.preventDefault();let R=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):(M=r.getLastKey)===null||M===void 0?void 0:M.call(r);R==null&&a&&(R=(O=r.getLastKey)===null||O===void 0?void 0:O.call(r,t.focusedKey)),T(R)}break;case"ArrowLeft":if(r.getKeyLeftOf){var F,E;I.preventDefault();let R=r.getKeyLeftOf(t.focusedKey);R==null&&a&&(R=b==="rtl"?(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r,t.focusedKey):(E=r.getLastKey)===null||E===void 0?void 0:E.call(r,t.focusedKey)),T(R,b==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var V,H;I.preventDefault();let R=r.getKeyRightOf(t.focusedKey);R==null&&a&&(R=b==="rtl"?(V=r.getLastKey)===null||V===void 0?void 0:V.call(r,t.focusedKey):(H=r.getFirstKey)===null||H===void 0?void 0:H.call(r,t.focusedKey)),T(R,b==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){I.preventDefault();let R=r.getFirstKey(t.focusedKey,Kr(I));t.setFocusedKey(R),Kr(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(R):l&&t.replaceSelection(R)}break;case"End":if(r.getLastKey){I.preventDefault();let R=r.getLastKey(t.focusedKey,Kr(I));t.setFocusedKey(R),Kr(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(R):l&&t.replaceSelection(R)}break;case"PageDown":if(r.getKeyPageBelow){I.preventDefault();let R=r.getKeyPageBelow(t.focusedKey);T(R)}break;case"PageUp":if(r.getKeyPageAbove){I.preventDefault();let R=r.getKeyPageAbove(t.focusedKey);T(R)}break;case"a":Kr(I)&&t.selectionMode==="multiple"&&i!==!0&&(I.preventDefault(),t.selectAll());break;case"Escape":I.preventDefault(),s||t.clearSelection();break;case"Tab":if(!d){if(I.shiftKey)n.current.focus();else{let R=Ss(n.current,{tabbable:!0}),W,ee;do ee=R.lastChild(),ee&&(W=ee);while(ee);W&&!W.contains(document.activeElement)&&tt(W)}break}}},x=f.useRef({top:0,left:0});Wh(h,"scroll",p?null:()=>{x.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let C=I=>{if(t.isFocused){I.currentTarget.contains(I.target)||t.setFocused(!1);return}if(I.currentTarget.contains(I.target)){if(t.setFocused(!0),t.focusedKey==null){let w=O=>{O!=null&&(t.setFocusedKey(O),l&&t.replaceSelection(O))},M=I.relatedTarget;var T,k;M&&I.currentTarget.compareDocumentPosition(M)&Node.DOCUMENT_POSITION_FOLLOWING?w((T=t.lastSelectedKey)!==null&&T!==void 0?T:r.getLastKey()):w((k=t.firstSelectedKey)!==null&&k!==void 0?k:r.getFirstKey())}else p||(h.current.scrollTop=x.current.top,h.current.scrollLeft=x.current.left);if(!p&&t.focusedKey!=null){let w=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);w&&(w.contains(document.activeElement)||tt(w),Cs()==="keyboard"&&Sc(w,{containingElement:n.current}))}}},S=I=>{I.currentTarget.contains(I.relatedTarget)||t.setFocused(!1)};const $=f.useRef(o);f.useEffect(()=>{if($.current){let I=null;o==="first"&&(I=r.getFirstKey()),o==="last"&&(I=r.getLastKey());let T=t.selectedKeys;if(T.size){for(let k of T)if(t.canSelectItem(k)){I=k;break}}t.setFocused(!0),t.setFocusedKey(I),I==null&&!u&&Fo(n.current)}},[]);let N=f.useRef(t.focusedKey);f.useEffect(()=>{let I=Cs();if(t.isFocused&&t.focusedKey!=null&&(h!=null&&h.current)){let T=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);T&&(I==="keyboard"||$.current)&&(p||Mc(h.current,T),Sc(T,{containingElement:n.current}))}t.isFocused&&t.focusedKey==null&&N.current!=null&&Fo(n.current),N.current=t.focusedKey,$.current=!1},[p,h,t.focusedKey,t.isFocused,n]);let j={onKeyDown:P,onFocus:C,onBlur:S,onMouseDown(I){h.current===I.target&&I.preventDefault()}},{typeSelectProps:m}=Gm({keyboardDelegate:r,selectionManager:t});c||(j=ie(m,j));let D;return u||(D=t.focusedKey==null?0:-1),{collectionProps:{...j,tabIndex:D}}}function Xm(e){let{selectionManager:t,key:r,ref:n,shouldSelectOnPressUp:o,shouldUseVirtualFocus:a,focus:s,isDisabled:i,onAction:l,allowsDifferentPressOrigin:c,linkBehavior:u="action"}=e,d=xc(),p=E=>{if(E.pointerType==="keyboard"&&Os(E))t.toggleSelection(r);else{if(t.selectionMode==="none")return;if(t.isLink(r)){if(u==="selection"){d.open(n.current,E),t.setSelectedKeys(t.selectedKeys);return}else if(u==="override"||u==="none")return}t.selectionMode==="single"?t.isSelected(r)&&!t.disallowEmptySelection?t.toggleSelection(r):t.replaceSelection(r):E&&E.shiftKey?t.extendSelection(r):t.selectionBehavior==="toggle"||E&&(Kr(E)||E.pointerType==="touch"||E.pointerType==="virtual")?t.toggleSelection(r):t.replaceSelection(r)}};f.useEffect(()=>{r===t.focusedKey&&t.isFocused&&!a&&(s?s():document.activeElement!==n.current&&Fo(n.current))},[n,r,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),i=i||t.isDisabled(r);let h={};!a&&!i?h={tabIndex:r===t.focusedKey?0:-1,onFocus(E){E.target===n.current&&t.setFocusedKey(r)}}:i&&(h.onMouseDown=E=>{E.preventDefault()});let g=t.isLink(r)&&u==="override",b=t.isLink(r)&&u!=="selection"&&u!=="none",y=!i&&t.canSelectItem(r)&&!g,P=(l||b)&&!i,x=P&&(t.selectionBehavior==="replace"?!y:!y||t.isEmpty),C=P&&y&&t.selectionBehavior==="replace",S=x||C,$=f.useRef(null),N=S&&y,j=f.useRef(!1),m=f.useRef(!1),D=E=>{l&&l(),b&&d.open(n.current,E)},I={};o?(I.onPressStart=E=>{$.current=E.pointerType,j.current=N,E.pointerType==="keyboard"&&(!S||su())&&p(E)},c?(I.onPressUp=x?null:E=>{E.pointerType!=="keyboard"&&y&&p(E)},I.onPress=x?D:null):I.onPress=E=>{if(x||C&&E.pointerType!=="mouse"){if(E.pointerType==="keyboard"&&!au())return;D(E)}else E.pointerType!=="keyboard"&&y&&p(E)}):(I.onPressStart=E=>{$.current=E.pointerType,j.current=N,m.current=x,y&&(E.pointerType==="mouse"&&!x||E.pointerType==="keyboard"&&(!P||su()))&&p(E)},I.onPress=E=>{(E.pointerType==="touch"||E.pointerType==="pen"||E.pointerType==="virtual"||E.pointerType==="keyboard"&&S&&au()||E.pointerType==="mouse"&&m.current)&&(S?D(E):y&&p(E))}),h["data-key"]=r,I.preventFocusOnPress=a;let{pressProps:T,isPressed:k}=fr(I),w=C?E=>{$.current==="mouse"&&(E.stopPropagation(),E.preventDefault(),D(E))}:void 0,{longPressProps:M}=gm({isDisabled:!N,onLongPress(E){E.pointerType==="touch"&&(p(E),t.setSelectionBehavior("toggle"))}}),O=E=>{$.current==="touch"&&j.current&&E.preventDefault()},F=t.isLink(r)?E=>{At.isOpening||E.preventDefault()}:void 0;return{itemProps:ie(h,y||x?T:{},N?M:{},{onDoubleClick:w,onDragStartCapture:O,onClick:F}),isPressed:k,isSelected:t.isSelected(r),isFocused:t.isFocused&&t.focusedKey===r,isDisabled:i,allowsSelection:y,hasAction:S}}function au(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function su(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var iu=f.createContext(null);iu.displayName="PressResponderContext";var Zm=Object.defineProperty,Jm=(e,t,r)=>t in e?Zm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t,r)=>(Jm(e,typeof t!="symbol"?t+"":t,r),r),lu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},eg=(e,t,r)=>(lu(e,t,"read from private field"),r?r.call(e):t.get(e)),tg=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},rg=(e,t,r,n)=>(lu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ko,Uo=class{constructor(e,t,r){gr(this,"type"),gr(this,"pointerType"),gr(this,"target"),gr(this,"shiftKey"),gr(this,"ctrlKey"),gr(this,"metaKey"),gr(this,"altKey"),tg(this,Ko,!0),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}continuePropagation(){rg(this,Ko,!1)}get shouldStopPropagation(){return eg(this,Ko)}};Ko=new WeakMap;var vr=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document},Ns=e=>{var t,r;return(r=(t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)!=null?r:window},Ur="default",js="",Ho=new WeakMap;function cu(e){if(wn()){if(Ur==="default"){const t=vr(e);js=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ur="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Ho.set(e,e.style.userSelect),e.style.userSelect="none")}function Yo(e){if(wn()){if(Ur!=="disabled")return;Ur="restoring",setTimeout(()=>{is(()=>{if(Ur==="restoring"){const t=vr(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=js||""),js="",Ur="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ho.has(e)){let t=Ho.get(e);e.style.userSelect==="none"&&t&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ho.delete(e)}}function ng(e){let t=f.useContext(iu);if(t){let{register:r,...n}=t;e=ie(n,e),r()}return us(t,e.ref),e}var uu=Symbol("linkClicked");function En(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,isDisabled:s,isPressed:i,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:d,...p}=ng(e),[h,g]=f.useState(!1),b=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:P}=ls(),x=We((m,D)=>{let I=b.current;if(s||I.didFirePressStart)return;let T=!0;if(I.isTriggeringEvent=!0,n){let k=new Uo("pressstart",D,m);n(k),T=k.shouldStopPropagation}return r&&r(!0),I.isTriggeringEvent=!1,I.didFirePressStart=!0,g(!0),T}),C=We((m,D,I=!0)=>{let T=b.current;if(!T.didFirePressStart)return;T.ignoreClickAfterPress=!0,T.didFirePressStart=!1,T.isTriggeringEvent=!0;let k=!0;if(o){let w=new Uo("pressend",D,m);o(w),k=w.shouldStopPropagation}if(r&&r(!1),g(!1),t&&I&&!s){let w=new Uo("press",D,m);t(w),k&&(k=w.shouldStopPropagation)}return T.isTriggeringEvent=!1,k}),S=We((m,D)=>{let I=b.current;if(!s){if(a){I.isTriggeringEvent=!0;let T=new Uo("pressup",D,m);return a(T),I.isTriggeringEvent=!1,T.shouldStopPropagation}return!0}}),$=We(m=>{let D=b.current;D.isPressed&&(D.isOverTarget&&D.target&&C(Nt(D.target,m),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,P(),!u&&D.target&&Yo(D.target))}),N=We(m=>{c&&$(m)}),j=f.useMemo(()=>{let m=b.current,D={onKeyDown(T){var k;if(_s(T.nativeEvent,T.currentTarget)&&T.currentTarget.contains(T.target)){fu(T.target,T.key)&&T.preventDefault();let w=!0;!m.isPressed&&!T.repeat&&(m.target=T.currentTarget,m.isPressed=!0,w=x(T,"keyboard"),y(vr(T.currentTarget),"keyup",I,!1)),w&&T.stopPropagation(),T.metaKey&&qt()&&((k=m.metaKeyEvents)==null||k.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(m.metaKeyEvents=new Map)},onKeyUp(T){m.target&&_s(T.nativeEvent,T.currentTarget)&&!T.repeat&&T.currentTarget.contains(T.target)&&S(Nt(m.target,T),"keyboard")},onClick(T){if(!(T&&!T.currentTarget.contains(T.target))&&T&&T.button===0&&!m.isTriggeringEvent&&!At.isOpening){let k=!0;if(s&&T.preventDefault(),!m.ignoreClickAfterPress&&!m.ignoreEmulatedMouseEvents&&!m.isPressed&&(m.pointerType==="virtual"||Cn(T.nativeEvent))){!s&&!l&&tt(T.currentTarget);let w=x(T,"virtual"),M=S(T,"virtual"),O=C(T,"virtual");k=w&&M&&O}m.ignoreEmulatedMouseEvents=!1,m.ignoreClickAfterPress=!1,k&&T.stopPropagation()}}},I=T=>{var k,w;if(m.isPressed&&m.target&&_s(T,m.target)){fu(T.target,T.key)&&T.preventDefault();let M=T.target,O=C(Nt(m.target,T),"keyboard",m.target.contains(M));P(),O&&T.stopPropagation(),T.key!=="Enter"&&Ls(m.target)&&m.target.contains(M)&&!T[uu]&&(T[uu]=!0,At(m.target,T,!1)),m.isPressed=!1,(k=m.metaKeyEvents)==null||k.delete(T.key)}else if(T.key==="Meta"&&((w=m.metaKeyEvents)!=null&&w.size)){let M=m.metaKeyEvents;m.metaKeyEvents=null;for(let O of M.values())m.target&&m.target.dispatchEvent(new KeyboardEvent("keyup",O))}};if(typeof PointerEvent<"u"){D.onPointerDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(Ec(M.nativeEvent)){m.pointerType="virtual";return}Fs(M.currentTarget)&&M.preventDefault(),m.pointerType=M.pointerType;let O=!0;m.isPressed||(m.isPressed=!0,m.isOverTarget=!0,m.activePointerId=M.pointerId,m.target=M.currentTarget,!s&&!l&&tt(M.currentTarget),u||cu(m.target),O=x(M,m.pointerType),y(vr(M.currentTarget),"pointermove",T,!1),y(vr(M.currentTarget),"pointerup",k,!1),y(vr(M.currentTarget),"pointercancel",w,!1)),O&&M.stopPropagation()},D.onMouseDown=M=>{M.currentTarget.contains(M.target)&&M.button===0&&(Fs(M.currentTarget)&&M.preventDefault(),M.stopPropagation())},D.onPointerUp=M=>{!M.currentTarget.contains(M.target)||m.pointerType==="virtual"||M.button===0&&Hr(M,M.currentTarget)&&S(M,m.pointerType||M.pointerType)};let T=M=>{M.pointerId!==m.activePointerId||!m.target||(Hr(M,m.target)?m.isOverTarget||(m.isOverTarget=!0,x(Nt(m.target,M),m.pointerType)):m.isOverTarget&&(m.isOverTarget=!1,C(Nt(m.target,M),m.pointerType,!1),N(M)))},k=M=>{M.pointerId===m.activePointerId&&m.isPressed&&M.button===0&&m.target&&((Hr(M,m.target)||m.isOverTarget)&&C(Nt(m.target,M),m.pointerType),m.isPressed=!1,m.isOverTarget=!1,m.activePointerId=null,m.pointerType=null,P(),u||Yo(m.target))},w=M=>{$(M)};D.onDragStart=M=>{M.currentTarget.contains(M.target)&&$(M)}}else{D.onMouseDown=w=>{if(w.button!==0||!w.currentTarget.contains(w.target))return;if(Fs(w.currentTarget)&&w.preventDefault(),m.ignoreEmulatedMouseEvents){w.stopPropagation();return}m.isPressed=!0,m.isOverTarget=!0,m.target=w.currentTarget,m.pointerType=Cn(w.nativeEvent)?"virtual":"mouse",!s&&!l&&tt(w.currentTarget),x(w,m.pointerType)&&w.stopPropagation(),y(vr(w.currentTarget),"mouseup",T,!1)},D.onMouseEnter=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&(m.isOverTarget=!0,M=x(w,m.pointerType)),M&&w.stopPropagation()},D.onMouseLeave=w=>{if(!w.currentTarget.contains(w.target))return;let M=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&(m.isOverTarget=!1,M=C(w,m.pointerType,!1),N(w)),M&&w.stopPropagation()},D.onMouseUp=w=>{w.currentTarget.contains(w.target)&&!m.ignoreEmulatedMouseEvents&&w.button===0&&S(w,m.pointerType||"mouse")};let T=w=>{if(w.button===0){if(m.isPressed=!1,P(),m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.target&&(Hr(w,m.target)?C(Nt(m.target,w),m.pointerType):m.isOverTarget&&C(Nt(m.target,w),m.pointerType,!1),m.isOverTarget=!1)}};D.onTouchStart=w=>{if(!w.currentTarget.contains(w.target))return;let M=og(w.nativeEvent);if(!M)return;m.activePointerId=M.identifier,m.ignoreEmulatedMouseEvents=!0,m.isOverTarget=!0,m.isPressed=!0,m.target=w.currentTarget,m.pointerType="touch",!s&&!l&&tt(w.currentTarget),u||cu(m.target),x(w,m.pointerType)&&w.stopPropagation(),y(Ns(w.currentTarget),"scroll",k,!0)},D.onTouchMove=w=>{if(!w.currentTarget.contains(w.target))return;if(!m.isPressed){w.stopPropagation();return}let M=du(w.nativeEvent,m.activePointerId),O=!0;M&&Hr(M,w.currentTarget)?m.isOverTarget||(m.isOverTarget=!0,O=x(w,m.pointerType)):m.isOverTarget&&(m.isOverTarget=!1,O=C(w,m.pointerType,!1),N(w)),O&&w.stopPropagation()},D.onTouchEnd=w=>{if(!w.currentTarget.contains(w.target))return;if(!m.isPressed){w.stopPropagation();return}let M=du(w.nativeEvent,m.activePointerId),O=!0;M&&Hr(M,w.currentTarget)?(S(w,m.pointerType),O=C(w,m.pointerType)):m.isOverTarget&&(O=C(w,m.pointerType,!1)),O&&w.stopPropagation(),m.isPressed=!1,m.activePointerId=null,m.isOverTarget=!1,m.ignoreEmulatedMouseEvents=!0,!u&&m.target&&Yo(m.target),P()},D.onTouchCancel=w=>{w.currentTarget.contains(w.target)&&(w.stopPropagation(),m.isPressed&&$(w))};let k=w=>{m.isPressed&&w.target.contains(m.target)&&$({currentTarget:m.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};D.onDragStart=w=>{w.currentTarget.contains(w.target)&&$(w)}}return D},[y,s,l,P,u,$,N,C,x,S]);return f.useEffect(()=>()=>{!u&&b.current.target&&Yo(b.current.target)},[u]),{isPressed:i||h,pressProps:ie(p,j)}}function Ls(e){return e.tagName==="A"&&e.hasAttribute("href")}function _s(e,t){const{key:r,code:n}=e,o=t,a=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Ns(o).HTMLInputElement&&!pu(o,r)||o instanceof Ns(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&Ls(o))&&r!=="Enter")}function og(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function du(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Nt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function ag(e){let t=e.width?e.width/2:e.radiusX||0,r=e.height?e.height/2:e.radiusY||0;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function sg(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Hr(e,t){let r=t.getBoundingClientRect(),n=ag(e);return sg(r,n)}function Fs(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function fu(e,t){return e instanceof HTMLInputElement?!pu(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ls(e)}var ig=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function pu(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":ig.has(e.type)}var lg=e=>L.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:L.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})});const hu=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Go=f.createContext({}),qo=f.createContext(null),Qo=typeof document<"u",Vs=Qo?f.useLayoutEffect:f.useEffect,mu=f.createContext({strict:!1}),zs=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),gu="data-"+zs("framerAppearId");function cg(e,t,r,n){const{visualElement:o}=f.useContext(Go),a=f.useContext(mu),s=f.useContext(qo),i=f.useContext(hu).reducedMotion,l=f.useRef();n=n||a.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:i}));const c=l.current;f.useInsertionEffect(()=>{c&&c.update(r,s)});const u=f.useRef(!!(r[gu]&&!window.HandoffComplete));return Vs(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())}),f.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function Yr(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ug(e,t,r){return f.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Yr(r)&&(r.current=n))},[t])}function $n(e){return typeof e=="string"||Array.isArray(e)}function Xo(e){return typeof e=="object"&&typeof e.start=="function"}const Ws=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Bs=["initial",...Ws];function Zo(e){return Xo(e.animate)||Bs.some(t=>$n(e[t]))}function vu(e){return!!(Zo(e)||e.variants)}function dg(e,t){if(Zo(e)){const{initial:r,animate:n}=e;return{initial:r===!1||$n(r)?r:void 0,animate:$n(n)?n:void 0}}return e.inherit!==!1?t:{}}function fg(e){const{initial:t,animate:r}=dg(e,f.useContext(Go));return f.useMemo(()=>({initial:t,animate:r}),[bu(t),bu(r)])}function bu(e){return Array.isArray(e)?e.join(" "):e}const yu={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"]},Dn={};for(const e in yu)Dn[e]={isEnabled:t=>yu[e].some(r=>!!t[r])};function pg(e){for(const t in e)Dn[t]={...Dn[t],...e[t]}}const In=f.createContext({}),xu=f.createContext({}),hg=Symbol.for("motionComponentSymbol");function mg({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&pg(e);function a(i,l){let c;const u={...f.useContext(hu),...i,layoutId:gg(i)},{isStatic:d}=u,p=fg(i),h=n(i,d);if(!d&&Qo){p.visualElement=cg(o,h,u,t);const g=f.useContext(xu),b=f.useContext(mu).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,b,e,g))}return G.createElement(Go.Provider,{value:p},c&&p.visualElement?G.createElement(c,{visualElement:p.visualElement,...u}):null,r(o,i,ug(h,p.visualElement,l),h,d,p.visualElement))}const s=f.forwardRef(a);return s[hg]=o,s}function gg({layoutId:e}){const t=f.useContext(In).id;return t&&e!==void 0?t+"-"+e:e}function vg(e){function t(n,o={}){return mg(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const bg=["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 Rs(e){return typeof e!="string"||e.includes("-")?!1:!!(bg.indexOf(e)>-1||/[A-Z]/.test(e))}const Jo={};function yg(e){Object.assign(Jo,e)}const kn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],br=new Set(kn);function wu(e,{layout:t,layoutId:r}){return br.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Jo[e]||e==="opacity")}const Xe=e=>!!(e&&e.getVelocity),xg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wg=kn.length;function Cg(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let a="";for(let s=0;s<wg;s++){const i=kn[s];if(e[i]!==void 0){const l=xg[i]||i;a+=`${l}(${e[i]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,n?"":a):r&&n&&(a="none"),a}const Cu=e=>t=>typeof t=="string"&&t.startsWith(e),Pu=Cu("--"),Ks=Cu("var(--"),Pg=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Mg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Qt=(e,t,r)=>Math.min(Math.max(r,e),t),yr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},An={...yr,transform:e=>Qt(0,1,e)},ea={...yr,default:1},On=e=>Math.round(e*1e5)/1e5,ta=/(-)?([\d]*\.?[\d])+/g,Mu=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Tg=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Nn(e){return typeof e=="string"}const jn=e=>({test:t=>Nn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xt=jn("deg"),Tt=jn("%"),oe=jn("px"),Sg=jn("vh"),Eg=jn("vw"),Tu={...Tt,parse:e=>Tt.parse(e)/100,transform:e=>Tt.transform(e*100)},Su={...yr,transform:Math.round},Eu={borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,radius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,size:oe,top:oe,right:oe,bottom:oe,left:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,rotate:Xt,rotateX:Xt,rotateY:Xt,rotateZ:Xt,scale:ea,scaleX:ea,scaleY:ea,scaleZ:ea,skew:Xt,skewX:Xt,skewY:Xt,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:An,originX:Tu,originY:Tu,originZ:oe,zIndex:Su,fillOpacity:An,strokeOpacity:An,numOctaves:Su};function Us(e,t,r,n){const{style:o,vars:a,transform:s,transformOrigin:i}=e;let l=!1,c=!1,u=!0;for(const d in t){const p=t[d];if(Pu(d)){a[d]=p;continue}const h=Eu[d],g=Mg(p,h);if(br.has(d)){if(l=!0,s[d]=g,!u)continue;p!==(h.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,i[d]=g):o[d]=g}if(t.transform||(l||n?o.transform=Cg(e.transform,r,u,n):o.transform&&(o.transform="none")),c){const{originX:d="50%",originY:p="50%",originZ:h=0}=i;o.transformOrigin=`${d} ${p} ${h}`}}const Hs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $u(e,t,r){for(const n in t)!Xe(t[n])&&!wu(n,r)&&(e[n]=t[n])}function $g({transformTemplate:e},t,r){return f.useMemo(()=>{const n=Hs();return Us(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function Dg(e,t,r){const n=e.style||{},o={};return $u(o,n,e),Object.assign(o,$g(e,t,r)),e.transformValues?e.transformValues(o):o}function Ig(e,t,r){const n={},o=Dg(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,n}const kg=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ra(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||kg.has(e)}let Du=e=>!ra(e);function Ag(e){e&&(Du=t=>t.startsWith("on")?!ra(t):e(t))}try{Ag(require("@emotion/is-prop-valid").default)}catch{}function Og(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(Du(o)||r===!0&&ra(o)||!t&&!ra(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function Iu(e,t,r){return typeof e=="string"?e:oe.transform(t+r*e)}function Ng(e,t,r){const n=Iu(t,e.x,e.width),o=Iu(r,e.y,e.height);return`${n} ${o}`}const jg={offset:"stroke-dashoffset",array:"stroke-dasharray"},Lg={offset:"strokeDashoffset",array:"strokeDasharray"};function _g(e,t,r=1,n=0,o=!0){e.pathLength=1;const a=o?jg:Lg;e[a.offset]=oe.transform(-n);const s=oe.transform(t),i=oe.transform(r);e[a.array]=`${s} ${i}`}function Ys(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:a,pathLength:s,pathSpacing:i=1,pathOffset:l=0,...c},u,d,p){if(Us(e,c,u,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:b}=e;h.transform&&(b&&(g.transform=h.transform),delete h.transform),b&&(o!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=Ng(b,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),s!==void 0&&_g(h,s,i,l,!1)}const ku=()=>({...Hs(),attrs:{}}),Gs=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Fg(e,t,r,n){const o=f.useMemo(()=>{const a=ku();return Ys(a,t,{enableHardwareAcceleration:!1},Gs(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};$u(a,e.style,e),o.style={...a,...o.style}}return o}function Vg(e=!1){return(r,n,o,{latestValues:a},s)=>{const l=(Rs(r)?Fg:Ig)(n,a,s,r),u={...Og(n,typeof r=="string",e),...l,ref:o},{children:d}=n,p=f.useMemo(()=>Xe(d)?d.get():d,[d]);return f.createElement(r,{...u,children:p})}}function Au(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const a in r)e.style.setProperty(a,r[a])}const Ou=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 Nu(e,t,r,n){Au(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(Ou.has(o)?o:zs(o),t.attrs[o])}function qs(e,t){const{style:r}=e,n={};for(const o in r)(Xe(r[o])||t.style&&Xe(t.style[o])||wu(o,e))&&(n[o]=r[o]);return n}function ju(e,t){const r=qs(e,t);for(const n in e)if(Xe(e[n])||Xe(t[n])){const o=kn.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function Qs(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function Lu(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const na=e=>Array.isArray(e),zg=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Wg=e=>na(e)?e[e.length-1]||0:e;function oa(e){const t=Xe(e)?e.get():e;return zg(t)?t.toValue():t}function Bg({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,a){const s={latestValues:Rg(n,o,a,e),renderState:t()};return r&&(s.mount=i=>r(n,i,s)),s}const _u=e=>(t,r)=>{const n=f.useContext(Go),o=f.useContext(qo),a=()=>Bg(e,t,n,o);return r?a():Lu(a)};function Rg(e,t,r,n){const o={},a=n(e,{});for(const p in a)o[p]=oa(a[p]);let{initial:s,animate:i}=e;const l=Zo(e),c=vu(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let u=r?r.initial===!1:!1;u=u||s===!1;const d=u?i:s;return d&&typeof d!="boolean"&&!Xo(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const g=Qs(e,h);if(!g)return;const{transitionEnd:b,transition:y,...P}=g;for(const x in P){let C=P[x];if(Array.isArray(C)){const S=u?C.length-1:0;C=C[S]}C!==null&&(o[x]=C)}for(const x in b)o[x]=b[x]}),o}const Le=e=>e;class Fu{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Kg(e){let t=new Fu,r=new Fu,n=0,o=!1,a=!1;const s=new WeakSet,i={schedule:(l,c=!1,u=!1)=>{const d=u&&o,p=d?t:r;return c&&s.add(l),p.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),s.delete(l)},process:l=>{if(o){a=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let c=0;c<n;c++){const u=t.order[c];u(l),s.has(u)&&(i.schedule(u),e())}o=!1,a&&(a=!1,i.process(l))}};return i}const aa=["prepare","read","update","preRender","render","postRender"],Ug=40;function Hg(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=aa.reduce((d,p)=>(d[p]=Kg(()=>r=!0),d),{}),s=d=>a[d].process(o),i=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,Ug),1),o.timestamp=d,o.isProcessing=!0,aa.forEach(s),o.isProcessing=!1,r&&t&&(n=!1,e(i))},l=()=>{r=!0,n=!0,o.isProcessing||e(i)};return{schedule:aa.reduce((d,p)=>{const h=a[p];return d[p]=(g,b=!1,y=!1)=>(r||l(),h.schedule(g,b,y)),d},{}),cancel:d=>aa.forEach(p=>a[p].cancel(d)),state:o,steps:a}}const{schedule:Ee,cancel:jt,state:Be,steps:Xs}=Hg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Le,!0),Yg={useVisualState:_u({scrapeMotionValuesFromProps:ju,createRenderState:ku,onMount:(e,t,{renderState:r,latestValues:n})=>{Ee.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ee.render(()=>{Ys(r,n,{enableHardwareAcceleration:!1},Gs(t.tagName),e.transformTemplate),Nu(t,r)})}})},Gg={useVisualState:_u({scrapeMotionValuesFromProps:qs,createRenderState:Hs})};function qg(e,{forwardMotionProps:t=!1},r,n){return{...Rs(e)?Yg:Gg,preloadedFeatures:r,useRender:Vg(t),createVisualElement:n,Component:e}}function Lt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const Vu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function sa(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Qg=e=>t=>Vu(t)&&e(t,sa(t));function _t(e,t,r,n){return Lt(e,t,Qg(r),n)}const Xg=(e,t)=>r=>t(e(r)),Zt=(...e)=>e.reduce(Xg);function zu(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Wu=zu("dragHorizontal"),Bu=zu("dragVertical");function Ru(e){let t=!1;if(e==="y")t=Bu();else if(e==="x")t=Wu();else{const r=Wu(),n=Bu();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Ku(){const e=Ru(!0);return e?(e(),!1):!0}class Jt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Uu(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(a,s)=>{if(a.type==="touch"||Ku())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[n]&&Ee.update(()=>i[n](a,s))};return _t(e.current,r,o,{passive:!e.getProps()[n]})}class Zg extends Jt{mount(){this.unmount=Zt(Uu(this.node,!0),Uu(this.node,!1))}unmount(){}}class Jg extends Jt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Zt(Lt(this.node.current,"focus",()=>this.onFocus()),Lt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Hu=(e,t)=>t?e===t?!0:Hu(e,t.parentElement):!1;function Zs(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,sa(r))}class ev extends Jt{constructor(){super(...arguments),this.removeStartListeners=Le,this.removeEndListeners=Le,this.removeAccessibleListeners=Le,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),a=_t(window,"pointerup",(i,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();Ee.update(()=>{Hu(this.node.current,i.target)?c&&c(i,l):u&&u(i,l)})},{passive:!(n.onTap||n.onPointerUp)}),s=_t(window,"pointercancel",(i,l)=>this.cancelPress(i,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Zt(a,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const s=i=>{i.key!=="Enter"||!this.checkPressEnd()||Zs("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&Ee.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=Lt(this.node.current,"keyup",s),Zs("down",(i,l)=>{this.startPress(i,l)})},r=Lt(this.node.current,"keydown",t),n=()=>{this.isPressing&&Zs("cancel",(a,s)=>this.cancelPress(a,s))},o=Lt(this.node.current,"blur",n);this.removeAccessibleListeners=Zt(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ee.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ku()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ee.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=_t(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Lt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Zt(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Js=new WeakMap,ei=new WeakMap,tv=e=>{const t=Js.get(e.target);t&&t(e)},rv=e=>{e.forEach(tv)};function nv({root:e,...t}){const r=e||document;ei.has(r)||ei.set(r,{});const n=ei.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(rv,{root:e,...t})),n[o]}function ov(e,t,r){const n=nv(t);return Js.set(e,r),n.observe(e),()=>{Js.delete(e),n.unobserve(e)}}const av={some:0,all:1};class sv extends Jt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:a}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:av[o]},i=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),p=c?u:d;p&&p(l)};return ov(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(iv(t,r))&&this.startObserver()}unmount(){}}function iv({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const lv={inView:{Feature:sv},tap:{Feature:ev},focus:{Feature:Jg},hover:{Feature:Zg}};function Yu(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function cv(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function uv(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function ia(e,t,r){const n=e.getProps();return Qs(n,t,r!==void 0?r:n.custom,cv(e),uv(e))}let Ln=Le,bt=Le;process.env.NODE_ENV!=="production"&&(Ln=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},bt=(e,t)=>{if(!e)throw new Error(t)});const er=e=>e*1e3,Ft=e=>e/1e3,dv={current:!1},Gu=e=>Array.isArray(e)&&typeof e[0]=="number";function qu(e){return!!(!e||typeof e=="string"&&Qu[e]||Gu(e)||Array.isArray(e)&&e.every(qu))}const _n=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Qu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_n([0,.65,.55,1]),circOut:_n([.55,0,1,.45]),backIn:_n([.31,.01,.66,-.59]),backOut:_n([.33,1.53,.69,.99])};function Xu(e){if(e)return Gu(e)?_n(e):Array.isArray(e)?e.map(Xu):Qu[e]}function fv(e,t,r,{delay:n=0,duration:o,repeat:a=0,repeatType:s="loop",ease:i,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=Xu(i);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:n,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}function pv(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const Zu=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,hv=1e-7,mv=12;function gv(e,t,r,n,o){let a,s,i=0;do s=t+(r-t)/2,a=Zu(s,n,o)-e,a>0?r=s:t=s;while(Math.abs(a)>hv&&++i<mv);return s}function Fn(e,t,r,n){if(e===t&&r===n)return Le;const o=a=>gv(a,0,1,e,r);return a=>a===0||a===1?a:Zu(o(a),t,n)}const vv=Fn(.42,0,1,1),bv=Fn(0,0,.58,1),Ju=Fn(.42,0,.58,1),yv=e=>Array.isArray(e)&&typeof e[0]!="number",ed=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,td=e=>t=>1-e(1-t),ti=e=>1-Math.sin(Math.acos(e)),rd=td(ti),xv=ed(ti),nd=Fn(.33,1.53,.69,.99),ri=td(nd),wv=ed(ri),od={linear:Le,easeIn:vv,easeInOut:Ju,easeOut:bv,circIn:ti,circInOut:xv,circOut:rd,backIn:ri,backInOut:wv,backOut:nd,anticipate:e=>(e*=2)<1?.5*ri(e):.5*(2-Math.pow(2,-10*(e-1)))},ad=e=>{if(Array.isArray(e)){bt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,o]=e;return Fn(t,r,n,o)}else if(typeof e=="string")return bt(od[e]!==void 0,`Invalid easing type '${e}'`),od[e];return e},ni=(e,t)=>r=>!!(Nn(r)&&Tg.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),sd=(e,t,r)=>n=>{if(!Nn(n))return n;const[o,a,s,i]=n.match(ta);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}},Cv=e=>Qt(0,255,e),oi={...yr,transform:e=>Math.round(Cv(e))},xr={test:ni("rgb","red"),parse:sd("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+oi.transform(e)+", "+oi.transform(t)+", "+oi.transform(r)+", "+On(An.transform(n))+")"};function Pv(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const ai={test:ni("#"),parse:Pv,transform:xr.transform},Gr={test:ni("hsl","hue"),parse:sd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Tt.transform(On(t))+", "+Tt.transform(On(r))+", "+On(An.transform(n))+")"},He={test:e=>xr.test(e)||ai.test(e)||Gr.test(e),parse:e=>xr.test(e)?xr.parse(e):Gr.test(e)?Gr.parse(e):ai.parse(e),transform:e=>Nn(e)?e:e.hasOwnProperty("red")?xr.transform(e):Gr.transform(e)},Ne=(e,t,r)=>-r*e+r*t+e;function si(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Mv({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,a=0,s=0;if(!t)o=a=s=r;else{const i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;o=si(l,i,e+1/3),a=si(l,i,e),s=si(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:n}}const ii=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},Tv=[ai,xr,Gr],Sv=e=>Tv.find(t=>t.test(e));function id(e){const t=Sv(e);bt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Gr&&(r=Mv(r)),r}const ld=(e,t)=>{const r=id(e),n=id(t),o={...r};return a=>(o.red=ii(r.red,n.red,a),o.green=ii(r.green,n.green,a),o.blue=ii(r.blue,n.blue,a),o.alpha=Ne(r.alpha,n.alpha,a),xr.transform(o))};function Ev(e){var t,r;return isNaN(e)&&Nn(e)&&(((t=e.match(ta))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Mu))===null||r===void 0?void 0:r.length)||0)>0}const cd={regex:Pg,countKey:"Vars",token:"${v}",parse:Le},ud={regex:Mu,countKey:"Colors",token:"${c}",parse:He.parse},dd={regex:ta,countKey:"Numbers",token:"${n}",parse:yr.parse};function li(e,{regex:t,countKey:r,token:n,parse:o}){const a=e.tokenised.match(t);a&&(e["num"+r]=a.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...a.map(o)))}function la(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&li(r,cd),li(r,ud),li(r,dd),r}function fd(e){return la(e).values}function pd(e){const{values:t,numColors:r,numVars:n,tokenised:o}=la(e),a=t.length;return s=>{let i=o;for(let l=0;l<a;l++)l<n?i=i.replace(cd.token,s[l]):l<n+r?i=i.replace(ud.token,He.transform(s[l])):i=i.replace(dd.token,On(s[l]));return i}}const $v=e=>typeof e=="number"?0:e;function Dv(e){const t=fd(e);return pd(e)(t.map($v))}const tr={test:Ev,parse:fd,createTransformer:pd,getAnimatableNone:Dv},hd=(e,t)=>r=>`${r>0?t:e}`;function md(e,t){return typeof e=="number"?r=>Ne(e,t,r):He.test(e)?ld(e,t):e.startsWith("var(")?hd(e,t):vd(e,t)}const gd=(e,t)=>{const r=[...e],n=r.length,o=e.map((a,s)=>md(a,t[s]));return a=>{for(let s=0;s<n;s++)r[s]=o[s](a);return r}},Iv=(e,t)=>{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=md(e[o],t[o]));return o=>{for(const a in n)r[a]=n[a](o);return r}},vd=(e,t)=>{const r=tr.createTransformer(t),n=la(e),o=la(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?Zt(gd(n.values,o.values),r):(Ln(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),hd(e,t))},Vn=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},bd=(e,t)=>r=>Ne(e,t,r);function kv(e){return typeof e=="number"?bd:typeof e=="string"?He.test(e)?ld:vd:Array.isArray(e)?gd:typeof e=="object"?Iv:bd}function Av(e,t,r){const n=[],o=r||kv(e[0]),a=e.length-1;for(let s=0;s<a;s++){let i=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Le:t;i=Zt(l,i)}n.push(i)}return n}function yd(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const a=e.length;if(bt(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Av(t,n,o),i=s.length,l=c=>{let u=0;if(i>1)for(;u<e.length-2&&!(c<e[u+1]);u++);const d=Vn(e[u],e[u+1],c);return s[u](d)};return r?c=>l(Qt(e[0],e[a-1],c)):l}function Ov(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Vn(0,t,n);e.push(Ne(r,1,o))}}function Nv(e){const t=[0];return Ov(t,e.length-1),t}function jv(e,t){return e.map(r=>r*t)}function Lv(e,t){return e.map(()=>t||Ju).splice(0,e.length-1)}function ca({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=yv(n)?n.map(ad):ad(n),a={done:!1,value:t[0]},s=jv(r&&r.length===t.length?r:Nv(t),e),i=yd(s,t,{ease:Array.isArray(o)?o:Lv(t,o)});return{calculatedDuration:e,next:l=>(a.value=i(l),a.done=l>=e,a)}}function xd(e,t){return t?e*(1e3/t):0}const _v=5;function wd(e,t,r){const n=Math.max(t-_v,0);return xd(r-e(n),t-n)}const ci=.001,Fv=.01,Cd=10,Vv=.05,zv=1;function Wv({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,a;Ln(e<=er(Cd),"Spring duration must be 10 seconds or less");let s=1-t;s=Qt(Vv,zv,s),e=Qt(Fv,Cd,Ft(e)),s<1?(o=c=>{const u=c*s,d=u*e,p=u-r,h=ui(c,s),g=Math.exp(-d);return ci-p/h*g},a=c=>{const d=c*s*e,p=d*r+r,h=Math.pow(s,2)*Math.pow(c,2)*e,g=Math.exp(-d),b=ui(Math.pow(c,2),s);return(-o(c)+ci>0?-1:1)*((p-h)*g)/b}):(o=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-ci+u*d},a=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const i=5/e,l=Rv(o,a,i);if(e=er(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:e}}}const Bv=12;function Rv(e,t,r){let n=r;for(let o=1;o<Bv;o++)n=n-e(n)/t(n);return n}function ui(e,t){return e*Math.sqrt(1-t*t)}const Kv=["duration","bounce"],Uv=["stiffness","damping","mass"];function Pd(e,t){return t.some(r=>e[r]!==void 0)}function Hv(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Pd(e,Uv)&&Pd(e,Kv)){const r=Wv(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Md({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:i,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=Hv(n),h=u?-Ft(u):0,g=l/(2*Math.sqrt(i*c)),b=a-o,y=Ft(Math.sqrt(i/c)),P=Math.abs(b)<5;r||(r=P?.01:2),t||(t=P?.005:.5);let x;if(g<1){const C=ui(y,g);x=S=>{const $=Math.exp(-g*y*S);return a-$*((h+g*y*b)/C*Math.sin(C*S)+b*Math.cos(C*S))}}else if(g===1)x=C=>a-Math.exp(-y*C)*(b+(h+y*b)*C);else{const C=y*Math.sqrt(g*g-1);x=S=>{const $=Math.exp(-g*y*S),N=Math.min(C*S,300);return a-$*((h+g*y*b)*Math.sinh(N)+C*b*Math.cosh(N))/C}}return{calculatedDuration:p&&d||null,next:C=>{const S=x(C);if(p)s.done=C>=d;else{let $=h;C!==0&&(g<1?$=wd(x,C,S):$=0);const N=Math.abs($)<=r,j=Math.abs(a-S)<=t;s.done=N&&j}return s.value=s.done?a:S,s}}}function Td({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:i,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},h=m=>i!==void 0&&m<i||l!==void 0&&m>l,g=m=>i===void 0?l:l===void 0||Math.abs(i-m)<Math.abs(l-m)?i:l;let b=r*t;const y=d+b,P=s===void 0?y:s(y);P!==y&&(b=P-d);const x=m=>-b*Math.exp(-m/n),C=m=>P+x(m),S=m=>{const D=x(m),I=C(m);p.done=Math.abs(D)<=c,p.value=p.done?P:I};let $,N;const j=m=>{h(p.value)&&($=m,N=Md({keyframes:[p.value,g(p.value)],velocity:wd(C,m,p.value),damping:o,stiffness:a,restDelta:c,restSpeed:u}))};return j(0),{calculatedDuration:null,next:m=>{let D=!1;return!N&&$===void 0&&(D=!0,S(m),j(m)),$!==void 0&&m>$?N.next(m-$):(!D&&S(m),p)}}}const Yv=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Ee.update(t,!0),stop:()=>jt(t),now:()=>Be.isProcessing?Be.timestamp:performance.now()}},Sd=2e4;function Ed(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Sd;)t+=r,n=e.next(t);return t>=Sd?1/0:t}const Gv={decay:Td,inertia:Td,tween:ca,keyframes:ca,spring:Md};function ua({autoplay:e=!0,delay:t=0,driver:r=Yv,keyframes:n,type:o="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:i="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let h=1,g=!1,b,y;const P=()=>{y=new Promise(W=>{b=W})};P();let x;const C=Gv[o]||ca;let S;C!==ca&&typeof n[0]!="number"&&(S=yd([0,100],n,{clamp:!1}),n=[0,100]);const $=C({...p,keyframes:n});let N;i==="mirror"&&(N=C({...p,keyframes:[...n].reverse(),velocity:-(p.velocity||0)}));let j="idle",m=null,D=null,I=null;$.calculatedDuration===null&&a&&($.calculatedDuration=Ed($));const{calculatedDuration:T}=$;let k=1/0,w=1/0;T!==null&&(k=T+s,w=k*(a+1)-s);let M=0;const O=W=>{if(D===null)return;h>0&&(D=Math.min(D,W)),h<0&&(D=Math.min(W-w/h,D)),m!==null?M=m:M=Math.round(W-D)*h;const ee=M-t*(h>=0?1:-1),U=h>=0?ee<0:ee>w;M=Math.max(ee,0),j==="finished"&&m===null&&(M=w);let re=M,X=$;if(a){const pe=M/k;let fe=Math.floor(pe),he=pe%1;!he&&pe>=1&&(he=1),he===1&&fe--,fe=Math.min(fe,a+1);const Te=!!(fe%2);Te&&(i==="reverse"?(he=1-he,s&&(he-=s/k)):i==="mirror"&&(X=N));let Se=Qt(0,1,he);M>w&&(Se=i==="reverse"&&Te?1:0),re=Se*k}const te=U?{done:!1,value:n[0]}:X.next(re);S&&(te.value=S(te.value));let{done:ce}=te;!U&&T!==null&&(ce=h>=0?M>=w:M<=0);const be=m===null&&(j==="finished"||j==="running"&&ce);return d&&d(te.value),be&&V(),te},F=()=>{x&&x.stop(),x=void 0},E=()=>{j="idle",F(),b(),P(),D=I=null},V=()=>{j="finished",u&&u(),F(),b()},H=()=>{if(g)return;x||(x=r(O));const W=x.now();l&&l(),m!==null?D=W-m:(!D||j==="finished")&&(D=W),j==="finished"&&P(),I=D,m=null,j="running",x.start()};e&&H();const R={then(W,ee){return y.then(W,ee)},get time(){return Ft(M)},set time(W){W=er(W),M=W,m!==null||!x||h===0?m=W:D=x.now()-W/h},get duration(){const W=$.calculatedDuration===null?Ed($):$.calculatedDuration;return Ft(W)},get speed(){return h},set speed(W){W===h||!x||(h=W,R.time=Ft(M))},get state(){return j},play:H,pause:()=>{j="paused",m=M},stop:()=>{g=!0,j!=="idle"&&(j="idle",c&&c(),E())},cancel:()=>{I!==null&&O(I),E()},complete:()=>{j="finished"},sample:W=>(D=0,O(W))};return R}function qv(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qv=qv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Xv=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),da=10,Zv=2e4,Jv=(e,t)=>t.type==="spring"||e==="backgroundColor"||!qu(t.ease);function e2(e,t,{onUpdate:r,onComplete:n,...o}){if(!(Qv()&&Xv.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,i,l;const c=()=>{l=new Promise(x=>{i=x})};c();let{keyframes:u,duration:d=300,ease:p,times:h}=o;if(Jv(t,o)){const x=ua({...o,repeat:0,delay:0});let C={done:!1,value:u[0]};const S=[];let $=0;for(;!C.done&&$<Zv;)C=x.sample($),S.push(C.value),$+=da;h=void 0,u=S,d=$-da,p="linear"}const g=fv(e.owner.current,t,u,{...o,duration:d,ease:p,times:h}),b=()=>g.cancel(),y=()=>{Ee.update(b),i(),c()};return g.onfinish=()=>{e.set(pv(u,o)),n&&n(),y()},{then(x,C){return l.then(x,C)},attachTimeline(x){return g.timeline=x,g.onfinish=null,Le},get time(){return Ft(g.currentTime||0)},set time(x){g.currentTime=er(x)},get speed(){return g.playbackRate},set speed(x){g.playbackRate=x},get duration(){return Ft(d)},play:()=>{s||(g.play(),jt(b))},pause:()=>g.pause(),stop:()=>{if(s=!0,g.playState==="idle")return;const{currentTime:x}=g;if(x){const C=ua({...o,autoplay:!1});e.setWithVelocity(C.sample(x-da).value,C.sample(x).value,da)}y()},complete:()=>g.finish(),cancel:y}}function t2({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Le,pause:Le,stop:Le,then:a=>(a(),Promise.resolve()),cancel:Le,complete:Le});return t?ua({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const r2={type:"spring",stiffness:500,damping:25,restSpeed:10},n2=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),o2={type:"keyframes",duration:.8},a2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},s2=(e,{keyframes:t})=>t.length>2?o2:br.has(e)?e.startsWith("scale")?n2(t[1]):r2:a2,di=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(tr.test(t)||t==="0")&&!t.startsWith("url(")),i2=new Set(["brightness","contrast","saturate","opacity"]);function l2(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(ta)||[];if(!n)return e;const o=r.replace(n,"");let a=i2.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+o+")"}const c2=/([a-z-]*)\(.*?\)/g,fi={...tr,getAnimatableNone:e=>{const t=e.match(c2);return t?t.map(l2).join(" "):e}},u2={...Eu,color:He,backgroundColor:He,outlineColor:He,fill:He,stroke:He,borderColor:He,borderTopColor:He,borderRightColor:He,borderBottomColor:He,borderLeftColor:He,filter:fi,WebkitFilter:fi},pi=e=>u2[e];function $d(e,t){let r=pi(e);return r!==fi&&(r=tr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Dd=e=>/^0[^.\s]+$/.test(e);function d2(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Dd(e)}function f2(e,t,r,n){const o=di(t,r);let a;Array.isArray(r)?a=[...r]:a=[null,r];const s=n.from!==void 0?n.from:e.get();let i;const l=[];for(let c=0;c<a.length;c++)a[c]===null&&(a[c]=c===0?s:a[c-1]),d2(a[c])&&l.push(c),typeof a[c]=="string"&&a[c]!=="none"&&a[c]!=="0"&&(i=a[c]);if(o&&l.length&&i)for(let c=0;c<l.length;c++){const u=l[c];a[u]=$d(t,i)}return a}function p2({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:i,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function hi(e,t){return e[t]||e.default||e}const mi=(e,t,r,n={})=>o=>{const a=hi(n,e)||{},s=a.delay||n.delay||0;let{elapsed:i=0}=n;i=i-er(s);const l=f2(t,e,r,a),c=l[0],u=l[l.length-1],d=di(e,c),p=di(e,u);Ln(d===p,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-i,onUpdate:g=>{t.set(g),a.onUpdate&&a.onUpdate(g)},onComplete:()=>{o(),a.onComplete&&a.onComplete()}};if(p2(a)||(h={...h,...s2(e,h)}),h.duration&&(h.duration=er(h.duration)),h.repeatDelay&&(h.repeatDelay=er(h.repeatDelay)),!d||!p||dv.current||a.type===!1)return t2(h);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=e2(t,e,h);if(g)return g}return ua(h)};function fa(e){return!!(Xe(e)&&e.add)}const Id=e=>/^\-?\d*\.?\d+$/.test(e);function gi(e,t){e.indexOf(t)===-1&&e.push(t)}function vi(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class bi{constructor(){this.subscriptions=[]}add(t){return gi(this.subscriptions,t),()=>vi(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let a=0;a<o;a++){const s=this.subscriptions[a];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const kd=new Set;function yi(e,t,r){e||kd.has(t)||(console.warn(t),r&&console.warn(r),kd.add(t))}const h2=e=>!isNaN(parseFloat(e));class m2{constructor(t,r={}){this.version="10.16.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:a,timestamp:s}=Be;this.lastUpdated!==s&&(this.timeDelta=a,this.lastUpdated=s,Ee.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ee.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=h2(this.current),this.owner=r.owner}onChange(t){return process.env.NODE_ENV!=="production"&&yi(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new bi);const n=this.events[t].add(r);return t==="change"?()=>{n(),Ee.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?xd(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qr(e,t){return new m2(e,t)}const Ad=e=>t=>t.test(e),Od=[yr,oe,Tt,Xt,Eg,Sg,{test:e=>e==="auto",parse:e=>e}],zn=e=>Od.find(Ad(e)),g2=[...Od,He,tr],v2=e=>g2.find(Ad(e));function b2(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,qr(r))}function y2(e,t){const r=ia(e,t);let{transitionEnd:n={},transition:o={},...a}=r?e.makeTargetAnimatable(r,!1):{};a={...a,...n};for(const s in a){const i=Wg(a[s]);b2(e,s,i)}}function x2(e,t,r){var n,o;const a=Object.keys(t).filter(i=>!e.hasValue(i)),s=a.length;if(s)for(let i=0;i<s;i++){const l=a[i],c=t[l];let u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(o=(n=r[l])!==null&&n!==void 0?n:e.readValue(l))!==null&&o!==void 0?o:t[l]),u!=null&&(typeof u=="string"&&(Id(u)||Dd(u))?u=parseFloat(u):!v2(u)&&tr.test(c)&&(u=$d(l,c)),e.addValue(l,qr(u,{owner:e})),r[l]===void 0&&(r[l]=u),u!==null&&e.setBaseTarget(l,u))}}function w2(e,t){return t?(t[e]||t.default||t).from:void 0}function C2(e,t,r){const n={};for(const o in e){const a=w2(o,t);if(a!==void 0)n[o]=a;else{const s=r.getValue(o);s&&(n[o]=s.get())}}return n}function P2({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function M2(e,t){const r=e.get();if(Array.isArray(t)){for(let n=0;n<t.length;n++)if(t[n]!==r)return!0}else return r!==t}function Nd(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...i}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");n&&(a=n);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in i){const p=e.getValue(d),h=i[d];if(!p||h===void 0||u&&P2(u,d))continue;const g={delay:r,elapsed:0,...hi(a||{},d)};if(window.HandoffAppearAnimations){const P=e.getProps()[gu];if(P){const x=window.HandoffAppearAnimations(P,d,p,Ee);x!==null&&(g.elapsed=x,g.isHandoff=!0)}}let b=!g.isHandoff&&!M2(p,h);if(g.type==="spring"&&(p.getVelocity()||g.velocity)&&(b=!1),p.animation&&(b=!1),b)continue;p.start(mi(d,p,h,e.shouldReduceMotion&&br.has(d)?{type:!1}:g));const y=p.animation;fa(l)&&(l.add(d),y.then(()=>l.remove(d))),c.push(y)}return s&&Promise.all(c).then(()=>{s&&y2(e,s)}),c}function xi(e,t,r={}){const n=ia(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const a=n?()=>Promise.all(Nd(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return T2(e,t,c+l,u,d,r)}:()=>Promise.resolve(),{when:i}=o;if(i){const[l,c]=i==="beforeChildren"?[a,s]:[s,a];return l().then(()=>c())}else return Promise.all([a(),s(r.delay)])}function T2(e,t,r=0,n=0,o=1,a){const s=[],i=(e.variantChildren.size-1)*n,l=o===1?(c=0)=>c*n:(c=0)=>i-c*n;return Array.from(e.variantChildren).sort(S2).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(xi(c,t,{...a,delay:r+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function S2(e,t){return e.sortNodePosition(t)}function E2(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(a=>xi(e,a,r));n=Promise.all(o)}else if(typeof t=="string")n=xi(e,t,r);else{const o=typeof t=="function"?ia(e,t,r.custom):t;n=Promise.all(Nd(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const $2=[...Ws].reverse(),D2=Ws.length;function I2(e){return t=>Promise.all(t.map(({animation:r,options:n})=>E2(e,r,n)))}function k2(e){let t=I2(e);const r=O2();let n=!0;const o=(l,c)=>{const u=ia(e,c);if(u){const{transition:d,transitionEnd:p,...h}=u;l={...l,...h,...p}}return l};function a(l){t=l(e)}function s(l,c){const u=e.getProps(),d=e.getVariantContext(!0)||{},p=[],h=new Set;let g={},b=1/0;for(let P=0;P<D2;P++){const x=$2[P],C=r[x],S=u[x]!==void 0?u[x]:d[x],$=$n(S),N=x===c?C.isActive:null;N===!1&&(b=P);let j=S===d[x]&&S!==u[x]&&$;if(j&&n&&e.manuallyAnimateOnMount&&(j=!1),C.protectedKeys={...g},!C.isActive&&N===null||!S&&!C.prevProp||Xo(S)||typeof S=="boolean")continue;const m=A2(C.prevProp,S);let D=m||x===c&&C.isActive&&!j&&$||P>b&&$;const I=Array.isArray(S)?S:[S];let T=I.reduce(o,{});N===!1&&(T={});const{prevResolvedValues:k={}}=C,w={...k,...T},M=O=>{D=!0,h.delete(O),C.needsAnimating[O]=!0};for(const O in w){const F=T[O],E=k[O];g.hasOwnProperty(O)||(F!==E?na(F)&&na(E)?!Yu(F,E)||m?M(O):C.protectedKeys[O]=!0:F!==void 0?M(O):h.add(O):F!==void 0&&h.has(O)?M(O):C.protectedKeys[O]=!0)}C.prevProp=S,C.prevResolvedValues=T,C.isActive&&(g={...g,...T}),n&&e.blockInitialAnimation&&(D=!1),D&&!j&&p.push(...I.map(O=>({animation:O,options:{type:x,...l}})))}if(h.size){const P={};h.forEach(x=>{const C=e.getBaseTarget(x);C!==void 0&&(P[x]=C)}),p.push({animation:P})}let y=!!p.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),n=!1,y?t(p):Promise.resolve()}function i(l,c,u){var d;if(r[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;const p=s(u,l);for(const h in r)r[h].protectedKeys={};return p}return{animateChanges:s,setActive:i,setAnimateFunction:a,getState:()=>r}}function A2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Yu(t,e):!1}function wr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function O2(){return{animate:wr(!0),whileInView:wr(),whileHover:wr(),whileTap:wr(),whileDrag:wr(),whileFocus:wr(),exit:wr()}}class N2 extends Jt{constructor(t){super(t),t.animationState||(t.animationState=k2(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Xo(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let j2=0;class L2 extends Jt{constructor(){super(...arguments),this.id=j2++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const a=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const _2={animation:{Feature:N2},exit:{Feature:L2}},jd=(e,t)=>Math.abs(e-t);function F2(e,t){const r=jd(e.x,t.x),n=jd(e.y,t.y);return Math.sqrt(r**2+n**2)}class Ld{constructor(t,r,{transformPagePoint:n,contextWindow:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Ci(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=F2(u.offset,{x:0,y:0})>=3;if(!d&&!p)return;const{point:h}=u,{timestamp:g}=Be;this.history.push({...h,timestamp:g});const{onStart:b,onMove:y}=this.handlers;d||(b&&b(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=wi(d,this.transformPagePoint),Ee.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:p,onSessionEnd:h}=this.handlers,g=Ci(u.type==="pointercancel"?this.lastMoveEventInfo:wi(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(u,g),h&&h(u,g)},!Vu(t))return;this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const a=sa(t),s=wi(a,this.transformPagePoint),{point:i}=s,{timestamp:l}=Be;this.history=[{...i,timestamp:l}];const{onSessionStart:c}=r;c&&c(t,Ci(s,this.history)),this.removeListeners=Zt(_t(this.contextWindow,"pointermove",this.handlePointerMove),_t(this.contextWindow,"pointerup",this.handlePointerUp),_t(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),jt(this.updatePoint)}}function wi(e,t){return t?{point:t(e.point)}:e}function _d(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ci({point:e},t){return{point:e,delta:_d(e,Fd(t)),offset:_d(e,V2(t)),velocity:z2(t,.1)}}function V2(e){return e[0]}function Fd(e){return e[e.length-1]}function z2(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=Fd(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>er(t)));)r--;if(!n)return{x:0,y:0};const a=Ft(o.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const s={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ot(e){return e.max-e.min}function Pi(e,t=0,r=.01){return Math.abs(e-t)<=r}function Vd(e,t,r,n=.5){e.origin=n,e.originPoint=Ne(t.min,t.max,e.origin),e.scale=ot(r)/ot(t),(Pi(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ne(r.min,r.max,e.origin)-e.originPoint,(Pi(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Wn(e,t,r,n){Vd(e.x,t.x,r.x,n?n.originX:void 0),Vd(e.y,t.y,r.y,n?n.originY:void 0)}function zd(e,t,r){e.min=r.min+t.min,e.max=e.min+ot(t)}function W2(e,t,r){zd(e.x,t.x,r.x),zd(e.y,t.y,r.y)}function Wd(e,t,r){e.min=t.min-r.min,e.max=e.min+ot(t)}function Bn(e,t,r){Wd(e.x,t.x,r.x),Wd(e.y,t.y,r.y)}function B2(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Ne(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Ne(r,e,n.max):Math.min(e,r)),e}function Bd(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function R2(e,{top:t,left:r,bottom:n,right:o}){return{x:Bd(e.x,r,o),y:Bd(e.y,t,n)}}function Rd(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function K2(e,t){return{x:Rd(e.x,t.x),y:Rd(e.y,t.y)}}function U2(e,t){let r=.5;const n=ot(e),o=ot(t);return o>n?r=Vn(t.min,t.max-n,e.min):n>o&&(r=Vn(e.min,e.max-o,t.min)),Qt(0,1,r)}function H2(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Mi=.35;function Y2(e=Mi){return e===!1?e=0:e===!0&&(e=Mi),{x:Kd(e,"left","right"),y:Kd(e,"top","bottom")}}function Kd(e,t,r){return{min:Ud(e,t),max:Ud(e,r)}}function Ud(e,t){return typeof e=="number"?e:e[t]||0}const Hd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qr=()=>({x:Hd(),y:Hd()}),Yd=()=>({min:0,max:0}),Ve=()=>({x:Yd(),y:Yd()});function St(e){return[e("x"),e("y")]}function Gd({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function G2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function q2(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Ti(e){return e===void 0||e===1}function Si({scale:e,scaleX:t,scaleY:r}){return!Ti(e)||!Ti(t)||!Ti(r)}function Cr(e){return Si(e)||qd(e)||e.z||e.rotate||e.rotateX||e.rotateY}function qd(e){return Qd(e.x)||Qd(e.y)}function Qd(e){return e&&e!=="0%"}function pa(e,t,r){const n=e-r,o=t*n;return r+o}function Xd(e,t,r,n,o){return o!==void 0&&(e=pa(e,o,n)),pa(e,r,n)+t}function Ei(e,t=0,r=1,n,o){e.min=Xd(e.min,t,r,n,o),e.max=Xd(e.max,t,r,n,o)}function Zd(e,{x:t,y:r}){Ei(e.x,t.translate,t.scale,t.originPoint),Ei(e.y,r.translate,r.scale,r.originPoint)}function Q2(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let a,s;for(let i=0;i<o;i++){a=r[i],s=a.projectionDelta;const l=a.instance;l&&l.style&&l.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Xr(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Zd(e,s)),n&&Cr(a.latestValues)&&Xr(e,a.latestValues))}t.x=Jd(t.x),t.y=Jd(t.y)}function Jd(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function rr(e,t){e.min=e.min+t,e.max=e.max+t}function ef(e,t,[r,n,o]){const a=t[o]!==void 0?t[o]:.5,s=Ne(e.min,e.max,a);Ei(e,t[r],t[n],s,t.scale)}const X2=["x","scaleX","originX"],Z2=["y","scaleY","originY"];function Xr(e,t){ef(e.x,t,X2),ef(e.y,t,Z2)}function tf(e,t){return Gd(q2(e.getBoundingClientRect(),t))}function J2(e,t,r){const n=tf(e,r),{scroll:o}=t;return o&&(rr(n.x,o.offset.x),rr(n.y,o.offset.y)),n}const rf=({current:e})=>e?e.ownerDocument.defaultView:null,eb=new WeakMap;class tb{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ve(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=l=>{this.stopAnimation(),r&&this.snapToCursor(sa(l,"page").point)},a=(l,c)=>{const{drag:u,dragPropagation:d,onDragStart:p}=this.getProps();if(u&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ru(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),St(g=>{let b=this.getAxisMotionValue(g).get()||0;if(Tt.test(b)){const{projection:y}=this.visualElement;if(y&&y.layout){const P=y.layout.layoutBox[g];P&&(b=ot(P)*(parseFloat(b)/100))}}this.originPoint[g]=b}),p&&Ee.update(()=>p(l,c),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(l,c)=>{const{dragPropagation:u,dragDirectionLock:d,onDirectionLock:p,onDrag:h}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:g}=c;if(d&&this.currentDirection===null){this.currentDirection=rb(g),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",c.point,g),this.updateAxis("y",c.point,g),this.visualElement.render(),h&&h(l,c)},i=(l,c)=>this.stop(l,c);this.panSession=new Ld(t,{onSessionStart:o,onStart:a,onMove:s,onSessionEnd:i},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:rf(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Ee.update(()=>a(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!ha(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=B2(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;r&&Yr(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=R2(o.layoutBox,r):this.constraints=!1,this.elastic=Y2(n),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&St(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=H2(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Yr(t))return!1;const n=t.current;bt(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=J2(n,o.root,this.visualElement.getTransformPagePoint());let s=K2(o.layout.layoutBox,a);if(r){const i=r(G2(s));this.hasMutatedConstraints=!!i,i&&(s=Gd(i))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},c=St(u=>{if(!ha(u,r,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,g={type:"inertia",velocity:n?t[u]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(i)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(mi(t,n,0,r))}stopAnimation(){St(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){St(r=>{const{drag:n}=this.getProps();if(!ha(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(r);if(o&&o.layout){const{min:s,max:i}=o.layout.layoutBox[r];a.set(t[r]-Ne(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Yr(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};St(s=>{const i=this.getAxisMotionValue(s);if(i){const l=i.get();o[s]=U2({min:l,max:l},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),St(s=>{if(!ha(s,t,null))return;const i=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];i.set(Ne(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;eb.set(this.visualElement,this);const t=this.visualElement.current,r=_t(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Yr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const s=Lt(window,"resize",()=>this.scalePositionWithinConstraints()),i=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(St(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),r(),a(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:s=Mi,dragMomentum:i=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:a,dragElastic:s,dragMomentum:i}}}function ha(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function rb(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class nb extends Jt{constructor(t){super(t),this.removeGroupControls=Le,this.removeListeners=Le,this.controls=new tb(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Le}unmount(){this.removeGroupControls(),this.removeListeners()}}const nf=e=>(t,r)=>{e&&Ee.update(()=>e(t,r))};class ob extends Jt{constructor(){super(...arguments),this.removePointerDownListener=Le}onPointerDown(t){this.session=new Ld(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rf(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:nf(t),onStart:nf(r),onMove:n,onEnd:(a,s)=>{delete this.session,o&&Ee.update(()=>o(a,s))}}}mount(){this.removePointerDownListener=_t(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function ab(){const e=f.useContext(qo);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=f.useId();return f.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}const ma={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function of(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Rn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(oe.test(e))e=parseFloat(e);else return e;const r=of(e,t.target.x),n=of(e,t.target.y);return`${r}% ${n}%`}},sb={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=tr.parse(e);if(o.length>5)return n;const a=tr.createTransformer(e),s=typeof o[0]!="number"?1:0,i=r.x.scale*t.x,l=r.y.scale*t.y;o[0+s]/=i,o[1+s]/=l;const c=Ne(i,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),a(o)}};class ib extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:a}=t;yg(lb),a&&(r.group&&r.group.add(a),n&&n.register&&o&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),ma.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:a}=this.props,s=n.projection;return s&&(s.isPresent=a,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Ee.postRender(()=>{const i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function af(e){const[t,r]=ab(),n=f.useContext(In);return f.createElement(ib,{...e,layoutGroup:n,switchLayoutGroup:f.useContext(xu),isPresent:t,safeToRemove:r})}const lb={borderRadius:{...Rn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Rn,borderTopRightRadius:Rn,borderBottomLeftRadius:Rn,borderBottomRightRadius:Rn,boxShadow:sb},sf=["TopLeft","TopRight","BottomLeft","BottomRight"],cb=sf.length,lf=e=>typeof e=="string"?parseFloat(e):e,cf=e=>typeof e=="number"||oe.test(e);function ub(e,t,r,n,o,a){o?(e.opacity=Ne(0,r.opacity!==void 0?r.opacity:1,db(n)),e.opacityExit=Ne(t.opacity!==void 0?t.opacity:1,0,fb(n))):a&&(e.opacity=Ne(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<cb;s++){const i=`border${sf[s]}Radius`;let l=uf(t,i),c=uf(r,i);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||cf(l)===cf(c)?(e[i]=Math.max(Ne(lf(l),lf(c),n),0),(Tt.test(c)||Tt.test(l))&&(e[i]+="%")):e[i]=c}(t.rotate||r.rotate)&&(e.rotate=Ne(t.rotate||0,r.rotate||0,n))}function uf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const db=df(0,.5,rd),fb=df(.5,.95,Le);function df(e,t,r){return n=>n<e?0:n>t?1:r(Vn(e,t,n))}function ff(e,t){e.min=t.min,e.max=t.max}function ft(e,t){ff(e.x,t.x),ff(e.y,t.y)}function pf(e,t,r,n,o){return e-=t,e=pa(e,1/r,n),o!==void 0&&(e=pa(e,1/o,n)),e}function pb(e,t=0,r=1,n=.5,o,a=e,s=e){if(Tt.test(t)&&(t=parseFloat(t),t=Ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Ne(a.min,a.max,n);e===a&&(i-=t),e.min=pf(e.min,t,r,i,o),e.max=pf(e.max,t,r,i,o)}function hf(e,t,[r,n,o],a,s){pb(e,t[r],t[n],t[o],t.scale,a,s)}const hb=["x","scaleX","originX"],mb=["y","scaleY","originY"];function mf(e,t,r,n){hf(e.x,t,hb,r?r.x:void 0,n?n.x:void 0),hf(e.y,t,mb,r?r.y:void 0,n?n.y:void 0)}function gf(e){return e.translate===0&&e.scale===1}function vf(e){return gf(e.x)&&gf(e.y)}function gb(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function bf(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function yf(e){return ot(e.x)/ot(e.y)}class vb{constructor(){this.members=[]}add(t){gi(this.members,t),t.scheduleRender()}remove(t){if(vi(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xf(e,t,r){let n="";const o=e.x.translate/t.x,a=e.y.translate/t.y;if((o||a)&&(n=`translate3d(${o}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:c,rotateY:u}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),u&&(n+=`rotateY(${u}deg) `)}const s=e.x.scale*t.x,i=e.y.scale*t.y;return(s!==1||i!==1)&&(n+=`scale(${s}, ${i})`),n||"none"}const bb=(e,t)=>e.depth-t.depth;class yb{constructor(){this.children=[],this.isDirty=!1}add(t){gi(this.children,t),this.isDirty=!0}remove(t){vi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bb),this.isDirty=!1,this.children.forEach(t)}}function xb(e,t){const r=performance.now(),n=({timestamp:o})=>{const a=o-r;a>=t&&(jt(n),e(a-t))};return Ee.read(n,!0),()=>jt(n)}function wb(e){window.MotionDebug&&window.MotionDebug.record(e)}function Cb(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Pb(e,t,r){const n=Xe(e)?e:qr(e);return n.start(mi("",n,t,r)),n.animation}const wf=["","X","Y","Z"],Mb={visibility:"hidden"},Cf=1e3;let Tb=0;const Pr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Pf({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},i=t==null?void 0:t()){this.id=Tb++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pr.totalNodes=Pr.resolvedTargetDeltas=Pr.recalculatedProjection=0,this.nodes.forEach($b),this.nodes.forEach(Ob),this.nodes.forEach(Nb),this.nodes.forEach(Db),wb(Pr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new yb)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new bi),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){const l=this.eventHandlers.get(s);l&&l.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Cb(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(c||l)&&(this.isLayoutDirty=!0),e){let d;const p=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=xb(p,250),ma.hasAnimatedSinceResize&&(ma.hasAnimatedSinceResize=!1,this.nodes.forEach(Tf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||u.getDefaultTransition()||Vb,{onLayoutAnimationStart:y,onLayoutAnimationComplete:P}=u.getProps(),x=!this.targetLayout||!bf(this.targetLayout,g)||h,C=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||p&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,C);const S={...hi(b,"layout"),onPlay:y,onComplete:P};(u.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else p||Tf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,jt(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(jb),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Mf);return}this.isUpdating||this.nodes.forEach(kb),this.isUpdating=!1,this.nodes.forEach(Ab),this.nodes.forEach(Sb),this.nodes.forEach(Eb),this.clearAllSnapshots();const i=performance.now();Be.delta=Qt(0,1e3/60,i-Be.timestamp),Be.timestamp=i,Be.isProcessing=!0,Xs.update.process(Be),Xs.preRender.process(Be),Xs.render.process(Be),Be.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Ib),this.sharedNodes.forEach(Lb)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ee.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ee.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ve(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform,i=this.projectionDelta&&!vf(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(i||Cr(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const i=this.measurePageBox();let l=this.removeElementScroll(i);return s&&(l=this.removeTransform(l)),zb(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Ve();const i=s.measureViewportBox(),{scroll:l}=this.root;return l&&(rr(i.x,l.offset.x),rr(i.y,l.offset.y)),i}removeElementScroll(s){const i=Ve();ft(i,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;if(c!==this.root&&u&&d.layoutScroll){if(u.isRoot){ft(i,s);const{scroll:p}=this.root;p&&(rr(i.x,-p.offset.x),rr(i.y,-p.offset.y))}rr(i.x,u.offset.x),rr(i.y,u.offset.y)}}return i}applyTransform(s,i=!1){const l=Ve();ft(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Xr(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Cr(u.latestValues)&&Xr(l,u.latestValues)}return Cr(this.latestValues)&&Xr(l,this.latestValues),l}removeTransform(s){const i=Ve();ft(i,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Cr(c.latestValues))continue;Si(c.latestValues)&&c.updateSnapshot();const u=Ve(),d=c.measurePageBox();ft(u,d),mf(i,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Cr(this.latestValues)&&mf(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==Be.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var i;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:d,layoutId:p}=this.options;if(!(!this.layout||!(d||p))){if(this.resolvedRelativeTargetAt=Be.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),Bn(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ve(),this.targetWithTransforms=Ve()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),W2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ft(this.target,this.layout.layoutBox),Zd(this.target,this.targetDelta)):ft(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),Bn(this.relativeTargetOrigin,this.target,h.target),ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Pr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Si(this.parent.latestValues)||qd(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const i=this.getLead(),l=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Be.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;ft(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;Q2(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox);const{target:g}=i;if(!g){this.projectionTransform&&(this.projectionDelta=Qr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Qr(),this.projectionDeltaWithTransform=Qr());const b=this.projectionTransform;Wn(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=xf(this.projectionDelta,this.treeScale),(this.projectionTransform!==b||this.treeScale.x!==p||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Pr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,i=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=Qr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;const p=Ve(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=h!==g,y=this.getStack(),P=!y||y.members.length<=1,x=!!(b&&!P&&this.options.crossfade===!0&&!this.path.some(Fb));this.animationProgress=0;let C;this.mixTargetDelta=S=>{const $=S/1e3;Sf(d.x,s.x,$),Sf(d.y,s.y,$),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bn(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_b(this.relativeTarget,this.relativeTargetOrigin,p,$),C&&gb(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Ve()),ft(C,this.relativeTarget)),b&&(this.animationValues=u,ub(u,c,this.latestValues,$,x,P)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(jt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ee.update(()=>{ma.hasAnimatedSinceResize=!0,this.currentAnimation=Pb(0,Cf,{...s,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Cf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:i,target:l,layout:c,latestValues:u}=s;if(!(!i||!l||!c)){if(this!==s&&this.layout&&c&&kf(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ve();const d=ot(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const p=ot(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p}ft(i,l),Xr(i,u),Wn(this.projectionDeltaWithTransform,this.layoutCorrected,i,u)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new vb),this.sharedNodes.get(s).add(i);const c=i.options.initialPromotionConfig;i.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(i):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:i}=this.options;return i?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:i}=this.options;return i?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let i=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(i=!0),!i)return;const c={};for(let u=0;u<wf.length;u++){const d="rotate"+wf[u];l[d]&&(c[d]=l[d],s.setStaticValue(d,0))}s.render();for(const u in c)s.setStaticValue(u,c[u]);s.scheduleRender()}getProjectionStyles(s){var i,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Mb;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=oa(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=oa(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Cr(this.latestValues)&&(b.transform=u?u({},""):"none",this.hasProjected=!1),b}const p=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=xf(this.projectionDeltaWithTransform,this.treeScale,p),u&&(c.transform=u(p,c.transform));const{x:h,y:g}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(i=p.opacity)!==null&&i!==void 0?i:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=d===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in Jo){if(p[b]===void 0)continue;const{correct:y,applyTo:P}=Jo[b],x=c.transform==="none"?p[b]:y(p[b],d);if(P){const C=P.length;for(let S=0;S<C;S++)c[P[S]]=x}else c[b]=x}return this.options.layoutId&&(c.pointerEvents=d===this?oa(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var i;return(i=s.currentAnimation)===null||i===void 0?void 0:i.stop()}),this.root.nodes.forEach(Mf),this.root.sharedNodes.clear()}}}function Sb(e){e.updateLayout()}function Eb(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:a}=e.options,s=r.source!==e.layout.source;a==="size"?St(d=>{const p=s?r.measuredBox[d]:r.layoutBox[d],h=ot(p);p.min=n[d].min,p.max=p.min+h}):kf(a,r.layoutBox,n)&&St(d=>{const p=s?r.measuredBox[d]:r.layoutBox[d],h=ot(n[d]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const i=Qr();Wn(i,n,r.layoutBox);const l=Qr();s?Wn(l,e.applyTransform(o,!0),r.measuredBox):Wn(l,n,r.layoutBox);const c=!vf(i);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:h}=d;if(p&&h){const g=Ve();Bn(g,r.layoutBox,p.layoutBox);const b=Ve();Bn(b,n,h.layoutBox),bf(g,b)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:i,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function $b(e){Pr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Db(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ib(e){e.clearSnapshot()}function Mf(e){e.clearMeasurements()}function kb(e){e.isLayoutDirty=!1}function Ab(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Tf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ob(e){e.resolveTargetDelta()}function Nb(e){e.calcProjection()}function jb(e){e.resetRotation()}function Lb(e){e.removeLeadSnapshot()}function Sf(e,t,r){e.translate=Ne(t.translate,0,r),e.scale=Ne(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Ef(e,t,r,n){e.min=Ne(t.min,r.min,n),e.max=Ne(t.max,r.max,n)}function _b(e,t,r,n){Ef(e.x,t.x,r.x,n),Ef(e.y,t.y,r.y,n)}function Fb(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Vb={duration:.45,ease:[.4,0,.1,1]},$f=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Df=$f("applewebkit/")&&!$f("chrome/")?Math.round:Le;function If(e){e.min=Df(e.min),e.max=Df(e.max)}function zb(e){If(e.x),If(e.y)}function kf(e,t,r){return e==="position"||e==="preserve-aspect"&&!Pi(yf(t),yf(r),.2)}const Wb=Pf({attachResizeListener:(e,t)=>Lt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$i={current:void 0},Af=Pf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$i.current){const e=new Wb({});e.mount(window),e.setOptions({layoutScroll:!0}),$i.current=e}return $i.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Bb={pan:{Feature:ob},drag:{Feature:nb,ProjectionNode:Af,MeasureLayout:af}},Rb=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Kb(e){const t=Rb.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}const Ub=4;function Di(e,t,r=1){bt(r<=Ub,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,o]=Kb(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const s=a.trim();return Id(s)?parseFloat(s):s}else return Ks(o)?Di(o,t,r+1):o}function Hb(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const a=o.get();if(!Ks(a))return;const s=Di(a,n);s&&o.set(s)});for(const o in t){const a=t[o];if(!Ks(a))continue;const s=Di(a,n);s&&(t[o]=s,r||(r={}),r[o]===void 0&&(r[o]=a))}return{target:t,transitionEnd:r}}const Yb=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Of=e=>Yb.has(e),Gb=e=>Object.keys(e).some(Of),ga=e=>e===yr||e===oe,Nf=(e,t)=>parseFloat(e.split(", ")[t]),jf=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return Nf(o[1],t);{const a=n.match(/^matrix\((.+)\)$/);return a?Nf(a[1],e):0}},qb=new Set(["x","y","z"]),Qb=kn.filter(e=>!qb.has(e));function Xb(e){const t=[];return Qb.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Zr={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:jf(4,13),y:jf(5,14)};Zr.translateX=Zr.x,Zr.translateY=Zr.y;const Zb=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,a=getComputedStyle(o),{display:s}=a,i={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(c=>{i[c]=Zr[c](n,a)}),t.render();const l=t.measureViewportBox();return r.forEach(c=>{const u=t.getValue(c);u&&u.jump(i[c]),e[c]=Zr[c](l,a)}),e},Jb=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(Of);let a=[],s=!1;const i=[];if(o.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let u=r[l],d=zn(u);const p=t[l];let h;if(na(p)){const g=p.length,b=p[0]===null?1:0;u=p[b],d=zn(u);for(let y=b;y<g&&p[y]!==null;y++)h?bt(zn(p[y])===h,"All keyframes must be of the same type"):(h=zn(p[y]),bt(h===d||ga(d)&&ga(h),"Keyframes must be of the same dimension as the current value"))}else h=zn(p);if(d!==h)if(ga(d)&&ga(h)){const g=c.get();typeof g=="string"&&c.set(parseFloat(g)),typeof p=="string"?t[l]=parseFloat(p):Array.isArray(p)&&h===oe&&(t[l]=p.map(parseFloat))}else d!=null&&d.transform&&(h!=null&&h.transform)&&(u===0||p===0)?u===0?c.set(h.transform(u)):t[l]=d.transform(p):(s||(a=Xb(e),s=!0),i.push(l),n[l]=n[l]!==void 0?n[l]:t[l],c.jump(p))}),i.length){const l=i.indexOf("height")>=0?window.pageYOffset:null,c=Zb(t,e,i);return a.length&&a.forEach(([u,d])=>{e.getValue(u).set(d)}),e.render(),Qo&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:t,transitionEnd:n}};function e5(e,t,r,n){return Gb(t)?Jb(e,t,r,n):{target:t,transitionEnd:n}}const t5=(e,t,r,n)=>{const o=Hb(e,t,n);return t=o.target,n=o.transitionEnd,e5(e,t,r,n)},Ii={current:null},Lf={current:!1};function r5(){if(Lf.current=!0,!!Qo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ii.current=e.matches;e.addListener(t),t()}else Ii.current=!1}function n5(e,t,r){const{willChange:n}=t;for(const o in t){const a=t[o],s=r[o];if(Xe(a))e.addValue(o,a),fa(n)&&n.add(o),process.env.NODE_ENV==="development"&&yi(a.version==="10.16.16",`Attempting to mix Framer Motion versions ${a.version} with 10.16.16 may not work as expected.`);else if(Xe(s))e.addValue(o,qr(a,{owner:e})),fa(n)&&n.remove(o);else if(s!==a)if(e.hasValue(o)){const i=e.getValue(o);!i.hasAnimated&&i.set(a)}else{const i=e.getStaticValue(o);e.addValue(o,qr(i!==void 0?i:a,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const _f=new WeakMap,Ff=Object.keys(Dn),o5=Ff.length,Vf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],a5=Bs.length;class s5{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>Ee.render(this.render,!1,!0);const{latestValues:i,renderState:l}=a;this.latestValues=i,this.baseTarget={...i},this.initialValues=r.initial?{...i}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Zo(r),this.isVariantNode=vu(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(r,{});for(const d in u){const p=u[d];i[d]!==void 0&&Xe(p)&&(p.set(i[d],!1),fa(c)&&c.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,_f.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Lf.current||r5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ii.current,process.env.NODE_ENV!=="production"&&yi(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){_f.delete(this.current),this.projection&&this.projection.unmount(),jt(this.notifyUpdate),jt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=br.has(t),o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Ee.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,a){let s,i;if(process.env.NODE_ENV!=="production"&&o&&n){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";r.ignoreStrict?Ln(!1,l):bt(!1,l)}for(let l=0;l<o5;l++){const c=Ff[l],{isEnabled:u,Feature:d,ProjectionNode:p,MeasureLayout:h}=Dn[c];p&&(s=p),u(r)&&(!this.features[c]&&d&&(this.features[c]=new d(this)),h&&(i=h))}if(!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:u,dragConstraints:d,layoutScroll:p,layoutRoot:h}=r;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||d&&Yr(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:a,layoutScroll:p,layoutRoot:h})}return i}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ve()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<Vf.length;n++){const o=Vf[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a=t["on"+o];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=n5(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;n<a5;n++){const o=Bs[n],a=this.props[o];($n(a)||a===!1)&&(r[o]=a)}return r}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=qr(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=Qs(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Xe(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new bi),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class zf extends s5{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},a){let s=C2(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),s&&(s=o(s))),a){x2(this,n,s);const i=t5(this,n,s,r);r=i.transitionEnd,n=i.target}return{transition:t,transitionEnd:r,...n}}}function i5(e){return window.getComputedStyle(e)}class l5 extends zf{readValueFromInstance(t,r){if(br.has(r)){const n=pi(r);return n&&n.default||0}else{const n=i5(t),o=(Pu(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return tf(t,r)}build(t,r,n,o){Us(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return qs(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Xe(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){Au(t,r,n,o)}}class c5 extends zf{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(br.has(r)){const n=pi(r);return n&&n.default||0}return r=Ou.has(r)?r:zs(r),t.getAttribute(r)}measureInstanceViewportBox(){return Ve()}scrapeMotionValuesFromProps(t,r){return ju(t,r)}build(t,r,n,o){Ys(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){Nu(t,r,n,o)}mount(t){this.isSVGTag=Gs(t.tagName),super.mount(t)}}const u5=(e,t)=>Rs(e)?new c5(t,{enableHardwareAcceleration:!1}):new l5(t,{enableHardwareAcceleration:!0}),d5={..._2,...lv,...Bb,...{layout:{ProjectionNode:Af,MeasureLayout:af}}},Wf=vg((e,t)=>qg(e,t,d5,u5));function Bf(){const e=f.useRef(!1);return Vs(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Rf(){const e=Bf(),[t,r]=f.useState(0),n=f.useCallback(()=>{e.current&&r(t+1)},[t]);return[f.useCallback(()=>Ee.postRender(n),[n]),t]}class f5 extends G.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function p5({children:e,isPresent:t}){const r=f.useId(),n=f.useRef(null),o=f.useRef({width:0,height:0,top:0,left:0});return f.useInsertionEffect(()=>{const{width:a,height:s,top:i,left:l}=o.current;if(t||!n.current||!a||!s)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
28
28
|
[data-motion-pop-id="${r}"] {
|
|
29
29
|
position: absolute !important;
|
|
30
30
|
width: ${a}px !important;
|
|
@@ -32,8 +32,8 @@ Check the top-level render call using <`+_+">.")}return A}}function xo(v,A){{if(
|
|
|
32
32
|
top: ${i}px !important;
|
|
33
33
|
left: ${l}px !important;
|
|
34
34
|
}
|
|
35
|
-
`),()=>{document.head.removeChild(c)}},[t]),G.createElement(fy,{isPresent:t,childRef:n,sizeRef:o},G.cloneElement(e,{ref:n}))}const ki=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:a,mode:s})=>{const i=Lu(hy),l=f.useId(),c=f.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:u=>{i.set(u,!0);for(const d of i.values())if(!d)return;n&&n()},register:u=>(i.set(u,!1),()=>i.delete(u))}),a?void 0:[r]);return f.useMemo(()=>{i.forEach((u,d)=>i.set(d,!1))},[r]),G.useEffect(()=>{!r&&!i.size&&n&&n()},[r]),s==="popLayout"&&(e=G.createElement(py,{isPresent:r},e)),G.createElement(qo.Provider,{value:c},e)};function hy(){return new Map}function my(e){return f.useEffect(()=>()=>e(),[])}const Mr=e=>e.key||"";function gy(e,t){e.forEach(r=>{const n=Mr(r);t.set(n,r)})}function vy(e){const t=[];return f.Children.forEach(e,r=>{f.isValidElement(r)&&t.push(r)}),t}const by=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:s="sync"})=>{bt(!o,"Replace exitBeforeEnter with mode='wait'");const i=f.useContext(In).forceRender||Rf()[0],l=Bf(),c=vy(e);let u=c;const d=f.useRef(new Map).current,p=f.useRef(u),h=f.useRef(new Map).current,g=f.useRef(!0);if(Vs(()=>{g.current=!1,gy(c,h),p.current=u}),my(()=>{g.current=!0,h.clear(),d.clear()}),g.current)return G.createElement(G.Fragment,null,u.map(x=>G.createElement(ki,{key:Mr(x),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:a,mode:s},x)));u=[...u];const b=p.current.map(Mr),y=c.map(Mr),P=b.length;for(let x=0;x<P;x++){const C=b[x];y.indexOf(C)===-1&&!d.has(C)&&d.set(C,void 0)}return s==="wait"&&d.size&&(u=[]),d.forEach((x,C)=>{if(y.indexOf(C)!==-1)return;const S=h.get(C);if(!S)return;const $=b.indexOf(C);let N=x;if(!N){const j=()=>{d.delete(C);const m=Array.from(h.keys()).filter(D=>!y.includes(D));if(m.forEach(D=>h.delete(D)),p.current=c.filter(D=>{const I=Mr(D);return I===C||m.includes(I)}),!d.size){if(l.current===!1)return;i(),n&&n()}};N=G.createElement(ki,{key:Mr(S),isPresent:!1,onExitComplete:j,custom:t,presenceAffectsLayout:a,mode:s},S),d.set(C,N)}u.splice($,0,N)}),u=u.map(x=>{const C=x.key;return d.has(C)?x:G.createElement(ki,{key:Mr(x),isPresent:!0,presenceAffectsLayout:a,mode:s},x)}),process.env.NODE_ENV!=="production"&&s==="wait"&&u.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),G.createElement(G.Fragment,null,d.size?u:u.map(x=>f.cloneElement(x)))},yy=f.createContext(null),xy=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Kf(){const e=new Set,t=new WeakMap,r=()=>e.forEach(xy);return{add:n=>{e.add(n),t.set(n,n.addEventListener("willUpdate",r))},remove:n=>{e.delete(n);const o=t.get(n);o&&(o(),t.delete(n)),r()},dirty:r}}const Uf=e=>e===!0,wy=e=>Uf(e===!0)||e==="id",Cy=({children:e,id:t,inherit:r=!0})=>{const n=f.useContext(In),o=f.useContext(yy),[a,s]=Rf(),i=f.useRef(null),l=n.id||o;i.current===null&&(wy(r)&&l&&(t=t?l+"-"+t:l),i.current={id:t,group:Uf(r)&&n.group||Kf()});const c=f.useMemo(()=>({...i.current,forceRender:a}),[s]);return G.createElement(In.Provider,{value:c},e)};function Hf(e){return null}Hf.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:a}=t,s=t.title||t.children,i=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!i&&!(r!=null&&r.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:i,"aria-label":t["aria-label"],hasChildNodes:Py(t),*childNodes(){if(n)for(let l of n)yield{type:"item",value:l};else if(o){let l=[];f.Children.forEach(a,c=>{l.push({type:"item",element:c})}),yield*l}}}};function Py(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&f.Children.count(e.children)>0)}let My=Hf;class Ty{build(t,r){return this.context=r,Yf(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:r})}else{let o=[];f.Children.forEach(r,s=>{o.push(s)});let a=0;for(let s of o){let i=this.getFullNode({element:s,index:a},{});for(let l of i)a++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let a=r.value;if(a!=null){var s;let i=(s=a.key)!==null&&s!==void 0?s:a.id;if(i==null)throw new Error("No key found for item");return i}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){let a=t.element;if(!a&&t.value&&r&&r.renderer){let l=this.cache.get(t.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=t.index,l.parentKey=o?o.key:null,yield l;return}a=r.renderer(t.value)}if(f.isValidElement(a)){let l=a.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let p=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${p}> in collection.`)}let c=l.getCollectionNode(a.props,this.context),u=t.index,d=c.next();for(;!d.done&&d.value;){let p=d.value;t.index=u;let h=p.key;h||(h=p.element?null:this.getKey(a,t,r,n));let b=[...this.getFullNode({...p,key:h,index:u,wrapper:Sy(t.wrapper,p.wrapper)},this.getChildState(r,p),n?`${n}${a.key}`:a.key,o)];for(let y of b){if(y.value=p.value||t.value,y.value&&this.cache.set(y.value,y),t.type&&y.type!==t.type)throw new Error(`Unsupported type <${Ai(y.type)}> in <${Ai(o.type)}>. Only <${Ai(t.type)}> is supported.`);u++,yield y}d=c.next(b)}return}if(t.key==null)return;let s=this,i={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Yf(function*(){if(!t.hasChildNodes)return;let l=0;for(let c of t.childNodes()){c.key!=null&&(c.key=`${i.key}${c.key}`),c.index=l;let u=s.getFullNode(c,s.getChildState(r,c),i.key,i);for(let d of u)l++,yield d}})};yield i}constructor(){this.cache=new WeakMap}}function Yf(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function Sy(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Ai(e){return e[0].toUpperCase()+e.slice(1)}function Ey(e,t,r){let n=f.useMemo(()=>new Ty,[]),{children:o,items:a,collection:s}=e;return f.useMemo(()=>{if(s)return s;let l=n.build({children:o,items:a},r);return t(l)},[n,o,a,s,r,t])}function $y(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Dy(e){return Iy(e,0)}function Iy(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function Oi(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...Gf(e,t),t],o=[...Gf(e,r),r],a=n.slice(0,o.length).findIndex((s,i)=>s!==o[i]);return a!==-1?(t=n[a],r=o[a],t.index-r.index):n.findIndex(s=>s===r)>=0?1:(o.findIndex(s=>s===t)>=0,-1)}function Gf(e,t){let r=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),r.unshift(t);return r}class yt extends Set{constructor(t,r,n){super(t),t instanceof yt?(this.anchorKey=r||t.anchorKey,this.currentKey=n||t.currentKey):(this.anchorKey=r,this.currentKey=n)}}function ky(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Ay(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:a="all"}=e,s=f.useRef(!1),[,i]=f.useState(!1),l=f.useRef(null),c=f.useRef(null),[,u]=f.useState(null),d=f.useMemo(()=>qf(e.selectedKeys),[e.selectedKeys]),p=f.useMemo(()=>qf(e.defaultSelectedKeys,new yt),[e.defaultSelectedKeys]),[h,g]=Lr(d,p,e.onSelectionChange),b=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,P]=f.useState(o);o==="replace"&&y==="toggle"&&typeof h=="object"&&h.size===0&&P("replace");let x=f.useRef(o);return f.useEffect(()=>{o!==x.current&&(P(o),x.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:y,setSelectionBehavior:P,get isFocused(){return s.current},setFocused(C){s.current=C,i(C)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(C,S="first"){l.current=C,c.current=S,u(C)},selectedKeys:h,setSelectedKeys(C){(n||!ky(C,h))&&g(C)},disabledKeys:b,disabledBehavior:a}}function qf(e,t){return e?e==="all"?"all":new yt(e):t}class Oy{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&Oi(this.collection,n,t)<0)&&(t=n)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&Oi(this.collection,n,t)>0)&&(t=n)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let r;if(this.state.selectedKeys==="all")r=new yt([t],t,t);else{let n=this.state.selectedKeys,o=n.anchorKey||t;r=new yt(n,o,t);for(let a of this.getKeyRange(o,n.currentKey||t))r.delete(a);for(let a of this.getKeyRange(t,o))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?Oi(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){let n=[],o=t;for(;o;){let a=this.collection.getItem(o);if((a&&a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&n.push(o),o===r)return n;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let r=new yt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let r=this.canSelectItem(t)?new yt([t],t,t):new yt;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new yt;for(let n of t)if(n=this.getKey(n),n!=null&&(r.add(n),this.selectionMode==="single"))break;this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n;){if(this.canSelectItem(n)){let o=this.collection.getItem(n);o.type==="item"&&t.push(n),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&r(Dy($y(o,this.collection)).key)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new yt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}var Ny=()=>L.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[L.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),L.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]}),[Ux,jy]=Ro({name:"AvatarGroupContext",strict:!1}),Ly=globalThis!=null&&globalThis.document?f.useLayoutEffect:f.useEffect;function _y(e={}){const{loading:t,src:r,srcSet:n,onLoad:o,onError:a,crossOrigin:s,sizes:i,ignoreFallback:l}=e,[c,u]=f.useState("pending");f.useEffect(()=>{u(r?"loading":"pending")},[r]);const d=f.useRef(),p=f.useCallback(()=>{if(!r)return;h();const g=new Image;g.src=r,s&&(g.crossOrigin=s),n&&(g.srcset=n),i&&(g.sizes=i),t&&(g.loading=t),g.onload=b=>{h(),u("loaded"),o==null||o(b)},g.onerror=b=>{h(),u("failed"),a==null||a(b)},d.current=g},[r,s,n,i,o,a,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return Ly(()=>{if(!l)return c==="loading"&&p(),()=>{h()}},[c,p,l]),l?"loaded":c}function Fy(e={}){var t,r,n,o,a;const s=jy(),i=!!s,{as:l,ref:c,src:u,name:d,icon:p,classNames:h,fallback:g,alt:b=d||"avatar",imgRef:y,color:P=(t=s==null?void 0:s.color)!=null?t:"default",radius:x=(r=s==null?void 0:s.radius)!=null?r:"full",size:C=(n=s==null?void 0:s.size)!=null?n:"md",isBordered:S=(o=s==null?void 0:s.isBordered)!=null?o:!1,isDisabled:$=(a=s==null?void 0:s.isDisabled)!=null?a:!1,isFocusable:N=!1,getInitials:j=Vm,ignoreFallback:m=!1,showFallback:D=!1,ImgComponent:I="img",imgProps:T,className:k,onError:w,...M}=e,O=l||"span",F=nt(c),E=nt(y),{isFocusVisible:V,isFocused:H,focusProps:R}=Mt(),{isHovered:W,hoverProps:ee}=mr({isDisabled:$}),re=_y({src:u,onError:w,ignoreFallback:m})==="loaded",X=(!u||!re)&&D,te=f.useMemo(()=>{var he;return _m({color:P,radius:x,size:C,isBordered:S,isDisabled:$,isInGroup:i,isInGridGroup:(he=s==null?void 0:s.isGrid)!=null?he:!1})},[P,x,C,S,$,i,s==null?void 0:s.isGrid]),ce=me(h==null?void 0:h.base,k),be=f.useMemo(()=>N||l==="button",[N,l]),pe=f.useCallback((he={})=>({ref:F,tabIndex:be?0:-1,"data-hover":Q(W),"data-focus":Q(H),"data-focus-visible":Q(V),className:te.base({class:me(ce,he==null?void 0:he.className)}),...ie(M,ee,be?R:{})}),[be,te,ce,R,M]),fe=f.useCallback((he={})=>({ref:E,src:u,"data-loaded":Q(re),className:te.img({class:h==null?void 0:h.img}),...ie(T,he)}),[te,re,T,u,E]);return{Component:O,ImgComponent:I,src:u,alt:b,icon:p,name:d,imgRef:E,slots:te,classNames:h,fallback:g,isImgLoaded:re,showFallback:X,ignoreFallback:m,getInitials:j,getAvatarProps:pe,getImageProps:fe}}var Qf=vt((e,t)=>{const{Component:r,ImgComponent:n,src:o,icon:a=L.jsx(Ny,{}),alt:s,classNames:i,slots:l,name:c,showFallback:u,fallback:d,getInitials:p,getAvatarProps:h,getImageProps:g}=Fy({...e,ref:t}),b=f.useMemo(()=>!u&&o?null:d?L.jsx("div",{"aria-label":s,className:l.fallback({class:i==null?void 0:i.fallback}),role:"img",children:d}):c?L.jsx("span",{"aria-label":s,className:l.name({class:i==null?void 0:i.name}),role:"img",children:p(c)}):L.jsx("span",{"aria-label":s,className:l.icon({class:i==null?void 0:i.icon}),role:"img",children:a}),[u,o,d,c,i]);return L.jsxs(r,{...h(),children:[o&&L.jsx(n,{...g(),alt:s}),b]})});Qf.displayName="NextUI.Avatar";var Vy=Qf,[Hx,zy]=Ro({name:"ButtonGroupContext",strict:!1});function Wy(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:a,onPressEnd:s,onPressChange:i,preventFocusOnPress:l,allowFocusWhenDisabled:c,onClick:u,href:d,target:p,rel:h,type:g="button",allowTextSelectionOnPress:b}=e,y;r==="button"?y={type:g,disabled:n}:y={role:"button",tabIndex:n?void 0:0,href:r==="a"&&n?void 0:d,target:r==="a"?p:void 0,type:r==="input"?g:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?h:void 0};let{pressProps:P,isPressed:x}=En({onPressStart:a,onPressEnd:s,onPressChange:i,onPress:o,isDisabled:n,preventFocusOnPress:l,allowTextSelectionOnPress:b,ref:t}),{focusableProps:C}=Vo(e,t);c&&(C.tabIndex=n?-1:C.tabIndex);let S=ie(C,P,Fr(e,{labelable:!0}));return{isPressed:x,buttonProps:ie(y,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:$=>{u==null||u($)}})}}var By=(e,t,r)=>Math.min(Math.max(e,t),r),Xf=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:a}=e;return L.jsx(L.Fragment,{children:t.map(s=>{const i=By(.01*s.size,.2,s.size>100?.75:.5);return L.jsx(by,{mode:"popLayout",children:L.jsx(Wf.span,{animate:{transform:"scale(2)",opacity:0},className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",zIndex:10,top:s.y,left:s.x,width:`${s.size}px`,height:`${s.size}px`,...o},transition:{duration:i},onAnimationComplete:()=>{a(s.key)},...r})},s.key)})})};Xf.displayName="NextUI.Ripple";var Ry=Xf;function Ky(e={}){const[t,r]=f.useState([]),n=f.useCallback(a=>{const s=a.currentTarget,i=Math.max(s.clientWidth,s.clientHeight),l=s.getBoundingClientRect();r(c=>[...c,{key:zm(c.length.toString()),size:i,x:a.clientX-l.x-i/2,y:a.clientY-l.y-i/2}])},[]),o=f.useCallback(a=>{r(s=>s.filter(i=>i.key!==a))},[]);return{ripples:t,onClick:n,onClear:o,...e}}function Uy(e){var t,r,n,o,a,s,i,l;const c=zy(),u=!!c,{ref:d,as:p,children:h,startContent:g,endContent:b,autoFocus:y,className:P,spinner:x,fullWidth:C=(t=c==null?void 0:c.fullWidth)!=null?t:!1,size:S=(r=c==null?void 0:c.size)!=null?r:"md",color:$=(n=c==null?void 0:c.color)!=null?n:"default",variant:N=(o=c==null?void 0:c.variant)!=null?o:"solid",disableAnimation:j=(a=c==null?void 0:c.disableAnimation)!=null?a:!1,radius:m=c==null?void 0:c.radius,disableRipple:D=(s=c==null?void 0:c.disableRipple)!=null?s:!1,isDisabled:I=(i=c==null?void 0:c.isDisabled)!=null?i:!1,isIconOnly:T=(l=c==null?void 0:c.isIconOnly)!=null?l:!1,isLoading:k=!1,spinnerPlacement:w="start",onPress:M,onClick:O,...F}=e,E=p||"button",V=typeof E=="string",H=nt(d),{isFocusVisible:R,isFocused:W,focusProps:ee}=Mt({autoFocus:y}),U=I||k,re=f.useMemo(()=>Fm({size:S,color:$,variant:N,radius:m,fullWidth:C,isDisabled:U,isInGroup:u,disableAnimation:j,isIconOnly:T,className:P}),[S,$,N,m,C,U,u,T,j,P]),{onClick:X,onClear:te,ripples:ce}=Ky(),be=f.useCallback(Ie=>{D||U||j||H.current&&X(Ie)},[D,U,j,H,X]),{buttonProps:pe,isPressed:fe}=Wy({elementType:p,isDisabled:U,onPress:M,onClick:dr(O,be),...F},H),{isHovered:he,hoverProps:Te}=mr({isDisabled:U}),Se=f.useCallback((Ie={})=>({"data-disabled":Q(U),"data-focus":Q(W),"data-pressed":Q(fe),"data-focus-visible":Q(R),"data-hover":Q(he),"data-loading":Q(k),...ie(pe,ee,Te,Sn(F,{enabled:V}),Sn(Ie))}),[k,U,W,fe,V,R,he,pe,ee,Te,F]),ae=Ie=>f.isValidElement(Ie)?f.cloneElement(Ie,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,Z=ae(g),Oe=ae(b),_e=f.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[S],[S]),Fe=f.useCallback(()=>({ripples:ce,onClear:te}),[ce,te]);return{Component:E,children:h,domRef:H,spinner:x,styles:re,startContent:Z,endContent:Oe,isLoading:k,spinnerPlacement:w,spinnerSize:_e,disableRipple:D,getButtonProps:Se,getRippleProps:Fe,isIconOnly:T}}function Hy(e){const[t,r]=Mn(e,Qc.variantKeys),{children:n,className:o,classNames:a,label:s,...i}=t,l=f.useMemo(()=>Qc({...r}),[...Object.values(r)]),c=me(a==null?void 0:a.base,o),u=s||n,d=f.useMemo(()=>u&&typeof u=="string"?u:i["aria-label"]?"":"Loading",[n,u,i["aria-label"]]),p=f.useCallback(()=>({"aria-label":d,className:l.base({class:c}),...i}),[d,l,c,i]);return{label:u,slots:l,classNames:a,getSpinnerProps:p}}var Zf=vt((e,t)=>{const{slots:r,classNames:n,label:o,getSpinnerProps:a}=Hy({...e});return L.jsxs("div",{ref:t,...a(),children:[L.jsxs("div",{className:r.wrapper({class:n==null?void 0:n.wrapper}),children:[L.jsx("i",{className:r.circle1({class:n==null?void 0:n.circle1})}),L.jsx("i",{className:r.circle2({class:n==null?void 0:n.circle2})})]}),o&&L.jsx("span",{className:r.label(),children:o})]})});Zf.displayName="NextUI.Spinner";var Yy=Zf,Jf=vt((e,t)=>{const{Component:r,domRef:n,children:o,styles:a,spinnerSize:s,spinner:i=L.jsx(Yy,{color:"current",size:s}),spinnerPlacement:l,startContent:c,endContent:u,isLoading:d,disableRipple:p,getButtonProps:h,getRippleProps:g,isIconOnly:b}=Uy({...e,ref:t});return L.jsxs(r,{ref:n,className:a,...h(),children:[c,d&&l==="start"&&i,d&&b?null:o,d&&l==="end"&&i,u,!p&&L.jsx(Ry,{...g()})]})});Jf.displayName="NextUI.Button";var Gy=Jf;function qy(e){const[t,r]=Mn(e,eu.variantKeys),{ref:n,as:o,children:a,avatar:s,startContent:i,endContent:l,onClose:c,classNames:u,className:d,...p}=t,h=o||"div",g=nt(n),b=me(u==null?void 0:u.base,d),y=!!c,P=e.variant==="dot",{focusProps:x,isFocusVisible:C}=Mt(),S=f.useMemo(()=>typeof a=="string"&&(a==null?void 0:a.length)===1,[a]),$=f.useMemo(()=>!!s||!!i,[s,i]),N=f.useMemo(()=>!!l||y,[l,y]),j=f.useMemo(()=>eu({...r,hasStartContent:$,hasEndContent:N,isOneChar:S,isCloseable:y,isCloseButtonFocusVisible:C}),[...Object.values(r),C,$,N,S,y]),{pressProps:m}=En({isDisabled:!!(e!=null&&e.isDisabled),onPress:c}),D=()=>({ref:g,className:j.base({class:b}),...p}),I=()=>({role:"button",tabIndex:0,className:j.closeButton({class:u==null?void 0:u.closeButton}),...ie(m,x)}),T=w=>f.isValidElement(w)?f.cloneElement(w,{className:j.avatar({class:u==null?void 0:u.avatar})}):null,k=w=>f.isValidElement(w)?f.cloneElement(w,{className:me("max-h-[80%]",w.props.className)}):null;return{Component:h,children:a,slots:j,classNames:u,isDot:P,isCloseable:y,startContent:T(s)||k(i),endContent:k(l),getCloseButtonProps:I,getChipProps:D}}var ep=vt((e,t)=>{const{Component:r,children:n,slots:o,classNames:a,isDot:s,isCloseable:i,startContent:l,endContent:c,getCloseButtonProps:u,getChipProps:d}=qy({...e,ref:t}),p=f.useMemo(()=>s&&!l?L.jsx("span",{className:o.dot({class:a==null?void 0:a.dot})}):l,[o,l,s]),h=f.useMemo(()=>i?L.jsx("span",{...u(),children:c||L.jsx(lg,{})}):c,[c,i,u]);return L.jsxs(r,{...d(),children:[p,L.jsx("span",{className:o.content({class:a==null?void 0:a.content}),children:n}),h]})});ep.displayName="NextUI.Chip";var tp=ep;function Ni(e,t,r){let{validationBehavior:n,focus:o}=e;kt(()=>{if(n==="native"&&(r!=null&&r.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(l),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Xy(r.current))}});let a=We(()=>{t.resetValidation()}),s=We(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let u=r==null||(c=r.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&r&&u&&Zy(u)===r.current){var d;o?o():(d=r.current)===null||d===void 0||d.focus(),cm("keyboard")}l.preventDefault()}),i=We(()=>{t.commitValidation()});f.useEffect(()=>{let l=r==null?void 0:r.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",s),l.addEventListener("change",i),c==null||c.addEventListener("reset",a),()=>{l.removeEventListener("invalid",s),l.removeEventListener("change",i),c==null||c.removeEventListener("reset",a)}},[r,s,i,a,n])}function Qy(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function Xy(e){return{isInvalid:!e.validity.valid,validationDetails:Qy(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Zy(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}const rp={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},np={...rp,customError:!0,valid:!1},Jr={isInvalid:!1,validationDetails:rp,validationErrors:[]},Jy=f.createContext({}),ji="__formValidationState"+Date.now();function va(e){if(e[ji]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}=e[ji];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}}return e5(e)}function e5(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:a,validate:s,validationBehavior:i="aria"}=e;r&&(t||(t=r==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:np}:null,c=f.useMemo(()=>op(t5(s,o)),[s,o]);a!=null&&a.validationDetails.valid&&(a=null);let u=f.useContext(Jy),d=f.useMemo(()=>n?Array.isArray(n)?n.flatMap(I=>Li(u[I])):Li(u[n]):[],[u,n]),[p,h]=f.useState(u),[g,b]=f.useState(!1);u!==p&&(h(u),b(!1));let y=f.useMemo(()=>op(g?[]:d),[g,d]),P=f.useRef(Jr),[x,C]=f.useState(Jr),S=f.useRef(Jr),$=()=>{if(!N)return;j(!1);let I=c||a||P.current;_i(I,S.current)||(S.current=I,C(I))},[N,j]=f.useState(!1);return f.useEffect($),{realtimeValidation:l||y||c||a||Jr,displayValidation:i==="native"?l||y||x:l||y||c||a||x,updateValidation(I){i==="aria"&&!_i(x,I)?C(I):P.current=I},resetValidation(){let I=Jr;_i(I,S.current)||(S.current=I,C(I)),i==="native"&&j(!1),b(!0)},commitValidation(){i==="native"&&j(!0),b(!0)}}}function Li(e){return e?Array.isArray(e)?e:[e]:[]}function t5(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Li(r)}return[]}function op(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:np}:null}function _i(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function ap(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:a,name:s,children:i,"aria-label":l,"aria-labelledby":c,validationState:u="valid",isInvalid:d}=e,p=N=>{N.stopPropagation(),t.setSelected(N.target.checked)},h=i!=null,g=l!=null||c!=null;!h&&!g&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:b,isPressed:y}=fr({isDisabled:n}),{pressProps:P,isPressed:x}=fr({isDisabled:n||o,onPress(){t.toggle()}}),{focusableProps:C}=Vo(e,r),S=ie(b,C),$=Fr(e,{labelable:!0});return fs(r,t.isSelected,t.setSelected),{labelProps:ie(P,{onClick:N=>N.preventDefault()}),inputProps:ie($,{"aria-invalid":d||u==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:p,disabled:n,...a==null?{}:{value:a},name:s,type:"checkbox",...S}),isSelected:t.isSelected,isPressed:y||x,isDisabled:n,isReadOnly:o,isInvalid:d||u==="invalid"}}function r5(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:a="label"}=e;t=_r(t);let s=_r(),i={};r?(n=n?`${s} ${n}`:s,i={id:s,htmlFor:a==="label"?t:void 0}):!n&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=cs({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:i,fieldProps:l}}function sp(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:a,fieldProps:s}=r5(e),i=vc([!!t,!!r,n,o]),l=vc([!!t,!!r,n,o]);return s=ie(s,{"aria-describedby":[i,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:s,descriptionProps:{id:i},errorMessageProps:{id:l}}}function Fi(e={}){let{isReadOnly:t}=e,[r,n]=Lr(e.isSelected,e.defaultSelected||!1,e.onChange);function o(s){t||n(s)}function a(){t||n(!r)}return{isSelected:r,setSelected:o,toggle:a}}function ip(e,t,r){let n=va({...e,value:t.isSelected}),{isInvalid:o,validationErrors:a,validationDetails:s}=n.displayValidation,{labelProps:i,inputProps:l,isSelected:c,isPressed:u,isDisabled:d,isReadOnly:p}=ap({...e,isInvalid:o},t,r);Ni(e,n,r);let{isIndeterminate:h,isRequired:g,validationBehavior:b="aria"}=e;return f.useEffect(()=>{r.current&&(r.current.indeterminate=!!h)}),{labelProps:i,inputProps:{...l,checked:c,"aria-required":g&&b==="aria"||void 0,required:g&&b==="native"},isSelected:c,isPressed:u,isDisabled:d,isReadOnly:p,isInvalid:o,validationErrors:a,validationDetails:s}}const n5=new WeakMap;function o5(e,t,r){const n=Fi({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(y){y?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(y)}});let{name:o,descriptionId:a,errorMessageId:s,validationBehavior:i}=n5.get(t);var l;i=(l=e.validationBehavior)!==null&&l!==void 0?l:i;let{realtimeValidation:c}=va({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),u=f.useRef(Jr),d=()=>{t.setInvalid(e.value,c.isInvalid?c:u.current)};f.useEffect(d);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:c,h=i==="native"?t.displayValidation:p;var g;let b=ip({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(g=e.isRequired)!==null&&g!==void 0?g:t.isRequired,validationBehavior:i,[ji]:{realtimeValidation:p,displayValidation:h,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(y){u.current=y,d()}}},n,r);return{...b,inputProps:{...b.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?s:null,a].filter(Boolean).join(" ")||void 0}}}var[Yx,a5]=Ro({name:"CheckboxGroupContext",strict:!1});function s5(e){const{isSelected:t,disableAnimation:r,...n}=e;return L.jsx("svg",{"aria-hidden":"true",role:"presentation",viewBox:"0 0 17 18",...n,children:L.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!r&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{}})})}function i5(e){const{isSelected:t,disableAnimation:r,...n}=e;return L.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...n,children:L.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function l5(e){const{isIndeterminate:t,...r}=e,n=t?i5:s5;return L.jsx(n,{...r})}function c5(e={}){var t,r,n,o,a,s;const i=a5(),l=!!i,{as:c,ref:u,value:d="",children:p,icon:h,name:g,isRequired:b=!1,isReadOnly:y=!1,autoFocus:P=!1,isSelected:x,validationState:C,size:S=(t=i==null?void 0:i.size)!=null?t:"md",color:$=(r=i==null?void 0:i.color)!=null?r:"primary",radius:N=i==null?void 0:i.radius,lineThrough:j=(n=i==null?void 0:i.lineThrough)!=null?n:!1,isDisabled:m=(o=i==null?void 0:i.isDisabled)!=null?o:!1,disableAnimation:D=(a=i==null?void 0:i.disableAnimation)!=null?a:!1,isInvalid:I=C?C==="invalid":(s=i==null?void 0:i.isInvalid)!=null?s:!1,isIndeterminate:T=!1,defaultSelected:k,classNames:w,onChange:M,className:O,onValueChange:F,...E}=e;i&&nu&&(x&&Bo("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),k&&Bo("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const V=c||"label",H=f.useRef(null),R=ou(u,H),W=f.useId(),ee=f.useMemo(()=>({name:g,value:d,children:p,autoFocus:P,defaultSelected:k,isIndeterminate:T,isRequired:b,isInvalid:I,isSelected:x,isDisabled:m,isReadOnly:y,"aria-label":ks(E["aria-label"],p),"aria-labelledby":E["aria-labelledby"]||W,onChange:F}),[d,g,W,p,P,I,T,m,y,x,k,E["aria-label"],E["aria-labelledby"],F]),{inputProps:U,isSelected:re,isDisabled:X,isReadOnly:te,isPressed:ce}=l?o5({...ee,isInvalid:I},i.groupState,H):ip(ee,Fi(ee),H),be=X||te,[pe,fe]=f.useState(!1),{pressProps:he}=En({isDisabled:be,onPressStart(Qe){Qe.pointerType!=="keyboard"&&fe(!0)},onPressEnd(Qe){Qe.pointerType!=="keyboard"&&fe(!1)}}),Te=be?!1:pe||ce;b&&(U.required=!0);const{hoverProps:Se,isHovered:ae}=mr({isDisabled:U.disabled}),{focusProps:Z,isFocused:Oe,isFocusVisible:_e}=Mt({autoFocus:U.autoFocus}),Fe=f.useMemo(()=>Lm({color:$,size:S,radius:N,isInvalid:I,lineThrough:j,isDisabled:X,disableAnimation:D}),[$,S,N,I,j,X,D]),Ie=me(w==null?void 0:w.base,O),It=f.useCallback(()=>({ref:R,className:Fe.base({class:Ie}),"data-disabled":Q(X),"data-selected":Q(re||T),"data-invalid":Q(I),"data-hover":Q(ae),"data-focus":Q(Oe),"data-pressed":Q(Te),"data-readonly":Q(U.readOnly),"data-focus-visible":Q(_e),"data-indeterminate":Q(T),...ie(Se,he,E)}),[Fe,Ie,X,re,T,I,ae,Oe,Te,U.readOnly,_e,Se,he,E]),mt=f.useCallback((Qe={})=>({...Qe,"aria-hidden":!0,className:me(Fe.wrapper({class:me(w==null?void 0:w.wrapper,Qe==null?void 0:Qe.className)}))}),[Fe,w==null?void 0:w.wrapper]),et=f.useCallback(()=>({ref:H,...ie(U,Z),onChange:dr(U.onChange,M)}),[U,Z,M]),Ir=f.useCallback(()=>({id:W,className:Fe.label({class:w==null?void 0:w.label})}),[Fe,w==null?void 0:w.label,X,re,I]),qe=f.useCallback(()=>({isSelected:re,isIndeterminate:!!T,disableAnimation:!!D,className:Fe.icon({class:w==null?void 0:w.icon})}),[Fe,w==null?void 0:w.icon,re,T,D]);return{Component:V,icon:h,children:p,isSelected:re,isDisabled:X,isInvalid:I,isFocused:Oe,isHovered:ae,isFocusVisible:_e,getBaseProps:It,getWrapperProps:mt,getInputProps:et,getLabelProps:Ir,getIconProps:qe}}var lp=vt((e,t)=>{const{Component:r,children:n,icon:o=L.jsx(l5,{}),getBaseProps:a,getWrapperProps:s,getInputProps:i,getIconProps:l,getLabelProps:c}=c5({...e,ref:t}),u=typeof o=="function"?o(l()):f.cloneElement(o,l());return L.jsxs(r,{...a(),children:[L.jsx($s,{children:L.jsx("input",{...i()})}),L.jsx("span",{...s(),children:u}),n&&L.jsx("span",{...c(),children:n})]})});lp.displayName="NextUI.Checkbox";var u5=lp;const cp=e=>typeof e=="object"&&e!=null&&e.nodeType===1,up=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Vi=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return up(r.overflowY,t)||up(r.overflowX,t)||(n=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},ba=(e,t,r,n,o,a,s,i)=>a<e&&s>t||a>e&&s<t?0:a<=e&&i<=r||s>=t&&i>=r?a-e-n:s>t&&i<r||a<e&&i>r?s-t+o:0,d5=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},dp=(e,t)=>{var r,n,o,a;if(typeof document>"u")return[];const{scrollMode:s,block:i,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:F=>F!==c;if(!cp(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let g=e;for(;cp(g)&&d(g);){if(g=d5(g),g===p){h.push(g);break}g!=null&&g===document.body&&Vi(g)&&!Vi(document.documentElement)||g!=null&&Vi(g,u)&&h.push(g)}const b=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,y=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:P,scrollY:x}=window,{height:C,width:S,top:$,right:N,bottom:j,left:m}=e.getBoundingClientRect(),{top:D,right:I,bottom:T,left:k}=(F=>{const E=window.getComputedStyle(F);return{top:parseFloat(E.scrollMarginTop)||0,right:parseFloat(E.scrollMarginRight)||0,bottom:parseFloat(E.scrollMarginBottom)||0,left:parseFloat(E.scrollMarginLeft)||0}})(e);let w=i==="start"||i==="nearest"?$-D:i==="end"?j+T:$+C/2-D+T,M=l==="center"?m+S/2-k+I:l==="end"?N+I:m-k;const O=[];for(let F=0;F<h.length;F++){const E=h[F],{height:V,width:H,top:R,right:W,bottom:ee,left:U}=E.getBoundingClientRect();if(s==="if-needed"&&$>=0&&m>=0&&j<=y&&N<=b&&$>=R&&j<=ee&&m>=U&&N<=W)return O;const re=getComputedStyle(E),X=parseInt(re.borderLeftWidth,10),te=parseInt(re.borderTopWidth,10),ce=parseInt(re.borderRightWidth,10),be=parseInt(re.borderBottomWidth,10);let pe=0,fe=0;const he="offsetWidth"in E?E.offsetWidth-E.clientWidth-X-ce:0,Te="offsetHeight"in E?E.offsetHeight-E.clientHeight-te-be:0,Se="offsetWidth"in E?E.offsetWidth===0?0:H/E.offsetWidth:0,ae="offsetHeight"in E?E.offsetHeight===0?0:V/E.offsetHeight:0;if(p===E)pe=i==="start"?w:i==="end"?w-y:i==="nearest"?ba(x,x+y,y,te,be,x+w,x+w+C,C):w-y/2,fe=l==="start"?M:l==="center"?M-b/2:l==="end"?M-b:ba(P,P+b,b,X,ce,P+M,P+M+S,S),pe=Math.max(0,pe+x),fe=Math.max(0,fe+P);else{pe=i==="start"?w-R-te:i==="end"?w-ee+be+Te:i==="nearest"?ba(R,ee,V,te,be+Te,w,w+C,C):w-(R+V/2)+Te/2,fe=l==="start"?M-U-X:l==="center"?M-(U+H/2)+he/2:l==="end"?M-W+ce+he:ba(U,W,H,X,ce+he,M,M+S,S);const{scrollLeft:Z,scrollTop:Oe}=E;pe=ae===0?0:Math.max(0,Math.min(Oe+pe/ae,E.scrollHeight-V/ae+Te)),fe=Se===0?0:Math.max(0,Math.min(Z+fe/Se,E.scrollWidth-H/Se+he)),w+=Oe-pe,M+=Z-fe}O.push({el:E,top:pe,left:fe})}return O},f5=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function p5(e,t){if(!e.isConnected||!(n=>{let o=n;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;if((n=>typeof n=="object"&&typeof n.behavior=="function")(t))return t.behavior(dp(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:n,top:o,left:a}of dp(e,f5(t)))n.scroll({top:o,left:a,behavior:r})}let h5=Math.round(Math.random()*1e10),m5=0;function g5(e){let t=f.useMemo(()=>e.name||`radio-group-${h5}-${++m5}`,[e.name]);var r;let[n,o]=Lr(e.value,(r=e.defaultValue)!==null&&r!==void 0?r:null,e.onChange),[a,s]=f.useState(null),i=va({...e,value:n}),l=u=>{!e.isReadOnly&&!e.isDisabled&&(o(u),i.commitValidation())},c=i.displayValidation.isInvalid;return{...i,name:t,selectedValue:n,setSelectedValue:l,lastFocusedValue:a,setLastFocusedValue:s,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(c?"invalid":null),isInvalid:c}}const fp=new WeakMap;function v5(e,t,r){let{value:n,children:o,"aria-label":a,"aria-labelledby":s}=e;const i=e.isDisabled||t.isDisabled;let l=o!=null,c=a!=null||s!=null;!l&&!c&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let u=t.selectedValue===n,d=m=>{m.stopPropagation(),t.setSelectedValue(n)},{pressProps:p,isPressed:h}=fr({isDisabled:i}),{pressProps:g,isPressed:b}=fr({isDisabled:i,onPress(){t.setSelectedValue(n)}}),{focusableProps:y}=Vo(ie(e,{onFocus:()=>t.setLastFocusedValue(n)}),r),P=ie(p,y),x=Fr(e,{labelable:!0}),C=-1;t.selectedValue!=null?t.selectedValue===n&&(C=0):(t.lastFocusedValue===n||t.lastFocusedValue==null)&&(C=0),i&&(C=void 0);let{name:S,descriptionId:$,errorMessageId:N,validationBehavior:j}=fp.get(t);return fs(r,t.selectedValue,t.setSelectedValue),Ni({validationBehavior:j},t,r),{labelProps:ie(g,{onClick:m=>m.preventDefault()}),inputProps:ie(x,{...P,type:"radio",name:S,tabIndex:C,disabled:i,required:t.isRequired&&j==="native",checked:u,value:n,onChange:d,"aria-describedby":[e["aria-describedby"],t.isInvalid?N:null,$].filter(Boolean).join(" ")||void 0}),isDisabled:i,isSelected:u,isPressed:h||b}}function b5(e,t){let{name:r,isReadOnly:n,isRequired:o,isDisabled:a,orientation:s="vertical",validationBehavior:i="aria"}=e,{direction:l}=hs(),{isInvalid:c,validationErrors:u,validationDetails:d}=t.displayValidation,{labelProps:p,fieldProps:h,descriptionProps:g,errorMessageProps:b}=sp({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||u}),y=Fr(e,{labelable:!0}),{focusWithinProps:P}=Lo({onBlurWithin(S){var $;($=e.onBlur)===null||$===void 0||$.call(e,S),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),x=S=>{let $;switch(S.key){case"ArrowRight":l==="rtl"&&s!=="vertical"?$="prev":$="next";break;case"ArrowLeft":l==="rtl"&&s!=="vertical"?$="next":$="prev";break;case"ArrowDown":$="next";break;case"ArrowUp":$="prev";break;default:return}S.preventDefault();let N=Ss(S.currentTarget,{from:S.target}),j;$==="next"?(j=N.nextNode(),j||(N.currentNode=S.currentTarget,j=N.firstChild())):(j=N.previousNode(),j||(N.currentNode=S.currentTarget,j=N.lastChild())),j&&(j.focus(),t.setSelectedValue(j.value))},C=_r(r);return fp.set(t,{name:C,descriptionId:g.id,errorMessageId:b.id,validationBehavior:i}),{radioGroupProps:ie(y,{role:"radiogroup",onKeyDown:x,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":n||void 0,"aria-required":o||void 0,"aria-disabled":a||void 0,"aria-orientation":s,...h,...P}),labelProps:p,descriptionProps:g,errorMessageProps:b,isInvalid:c,validationErrors:u,validationDetails:d}}function y5(e){const{as:t,ref:r,classNames:n,children:o,label:a,value:s,name:i,size:l="md",color:c="primary",isDisabled:u=!1,disableAnimation:d=!1,orientation:p="vertical",isRequired:h=!1,validationState:g,isInvalid:b=g==="invalid",isReadOnly:y,errorMessage:P,description:x,className:C,onChange:S,onValueChange:$,...N}=e,j=t||"div",m=nt(r),D=f.useMemo(()=>({...N,value:s,name:i,"aria-label":ks(N["aria-label"],a),isRequired:h,isReadOnly:y,isInvalid:b,orientation:p,onChange:$}),[N,s,i,a,h,y,b,p,$]),I=g5(D),{labelProps:T,radioGroupProps:k,errorMessageProps:w,descriptionProps:M}=b5(D,I),O=f.useMemo(()=>({size:l,color:c,groupState:I,isRequired:h,isInvalid:b,isDisabled:u,disableAnimation:d,onChange:S}),[l,c,h,u,b,S,d,I.name,I==null?void 0:I.isDisabled,I==null?void 0:I.isReadOnly,I==null?void 0:I.isRequired,I==null?void 0:I.selectedValue,I==null?void 0:I.lastFocusedValue]),F=f.useMemo(()=>jm({isRequired:h,isInvalid:b,disableAnimation:d}),[b,h,d]),E=me(n==null?void 0:n.base,C),V=f.useCallback(()=>({ref:m,className:F.base({class:E}),...ie(k,N)}),[m,F,E,k,N]),H=f.useCallback(()=>({className:F.label({class:n==null?void 0:n.label}),...T}),[F,n==null?void 0:n.label,T,n==null?void 0:n.label]),R=f.useCallback(()=>({className:F.wrapper({class:n==null?void 0:n.wrapper}),role:"presentation","data-orientation":p}),[F,n==null?void 0:n.wrapper,p,F.wrapper]),W=f.useCallback((U={})=>({...U,...M,className:F.description({class:me(n==null?void 0:n.description,U==null?void 0:U.className)})}),[F,n==null?void 0:n.description,M,F.description]),ee=f.useCallback((U={})=>({...U,...w,className:F.errorMessage({class:me(n==null?void 0:n.errorMessage,U==null?void 0:U.className)})}),[F,n==null?void 0:n.errorMessage,w]);return{Component:j,children:o,label:a,context:O,errorMessage:P,description:x,getGroupProps:V,getLabelProps:H,getWrapperProps:R,getDescriptionProps:W,getErrorMessageProps:ee}}var[x5,w5]=Ro({name:"RadioGroupContext",strict:!1}),pp=vt((e,t)=>{const{Component:r,children:n,label:o,context:a,description:s,errorMessage:i,getGroupProps:l,getLabelProps:c,getWrapperProps:u,getDescriptionProps:d,getErrorMessageProps:p}=y5({...e,ref:t});return L.jsxs(r,{...l(),children:[o&&L.jsx("span",{...c(),children:o}),L.jsx("div",{...u(),children:L.jsx(x5,{value:a,children:n})}),i?L.jsx("div",{...p(),children:i}):s?L.jsx("div",{...d(),children:s}):null]})});pp.displayName="NextUI.RadioGroup";var C5=pp;function P5(e){var t,r,n,o;const a=w5(),{as:s,ref:i,classNames:l,id:c,value:u,children:d,description:p,size:h=(t=a==null?void 0:a.size)!=null?t:"md",color:g=(r=a==null?void 0:a.color)!=null?r:"primary",isDisabled:b=(n=a==null?void 0:a.isDisabled)!=null?n:!1,disableAnimation:y=(o=a==null?void 0:a.disableAnimation)!=null?o:!1,onChange:P=a==null?void 0:a.onChange,autoFocus:x=!1,className:C,...S}=e;a&&nu&&("checked"in S&&Bo('Remove props "checked" if in the Radio.Group.',"Radio"),u===void 0&&Bo('Props "value" must be defined if in the Radio.Group.',"Radio"));const $=s||"label",N=nt(i),j=f.useRef(null),m=f.useId(),D=f.useMemo(()=>{var ae;return(ae=a.isRequired)!=null?ae:!1},[a.isRequired]),I=a.isInvalid,T=f.useMemo(()=>{const ae=S["aria-label"]||typeof d=="string"?d:void 0,Z=S["aria-describedby"]||typeof p=="string"?p:void 0;return{id:c,isRequired:D,isDisabled:b,"aria-label":ae,"aria-labelledby":S["aria-labelledby"]||m,"aria-describedby":Z}},[m,c,b,D]),{inputProps:k,isDisabled:w,isSelected:M,isPressed:O}=v5({value:u,children:d,...a,...T},a.groupState,j),{focusProps:F,isFocused:E,isFocusVisible:V}=Mt({autoFocus:x}),H=w||k.readOnly,[R,W]=f.useState(!1),{pressProps:ee}=En({isDisabled:H,onPressStart(ae){ae.pointerType!=="keyboard"&&W(!0)},onPressEnd(ae){ae.pointerType!=="keyboard"&&W(!1)}}),{hoverProps:U,isHovered:re}=mr({isDisabled:H}),X=H?!1:R||O,te=f.useMemo(()=>Nm({color:g,size:h,isInvalid:I,isDisabled:w,disableAnimation:y}),[g,h,w,I,y]),ce=me(l==null?void 0:l.base,C),be=f.useCallback((ae={})=>({...ae,ref:N,className:te.base({class:ce}),"data-disabled":Q(w),"data-focus":Q(E),"data-focus-visible":Q(V),"data-selected":Q(M),"data-invalid":Q(I),"data-hover":Q(re),"data-pressed":Q(X),"data-hover-unselected":Q(re&&!M),"data-readonly":Q(k.readOnly),"aria-required":Q(D),...ie(U,ee,S)}),[te,ce,N,w,E,V,M,I,re,X,k.readOnly,D,S]),pe=f.useCallback((ae={})=>({...ae,"aria-hidden":!0,className:me(te.wrapper({class:me(l==null?void 0:l.wrapper,ae.className)}))}),[te,l==null?void 0:l.wrapper]),fe=f.useCallback((ae={})=>({...ae,ref:j,required:D,...ie(k,F),onChange:dr(k.onChange,P)}),[k,F,D,P]),he=f.useCallback((ae={})=>({...ae,id:m,className:te.label({class:l==null?void 0:l.label})}),[te,l==null?void 0:l.label,w,M,I]),Te=f.useCallback((ae={})=>({...ae,className:te.labelWrapper({class:l==null?void 0:l.labelWrapper})}),[te,l==null?void 0:l.labelWrapper]),Se=f.useCallback((ae={})=>({...ae,className:te.control({class:l==null?void 0:l.control})}),[te,l==null?void 0:l.control]);return{Component:$,children:d,slots:te,classNames:l,description:p,isSelected:M,isDisabled:w,isInvalid:I,isFocusVisible:V,getBaseProps:be,getWrapperProps:pe,getInputProps:fe,getLabelProps:he,getLabelWrapperProps:Te,getControlProps:Se}}var hp=vt((e,t)=>{const{Component:r,children:n,slots:o,classNames:a,description:s,getBaseProps:i,getWrapperProps:l,getInputProps:c,getLabelProps:u,getLabelWrapperProps:d,getControlProps:p}=P5({...e,ref:t});return L.jsxs(r,{...i(),children:[L.jsx($s,{children:L.jsx("input",{...c()})}),L.jsx("span",{...l(),children:L.jsx("span",{...p()})}),L.jsxs("div",{...d(),children:[n&&L.jsx("span",{...u(),children:n}),s&&L.jsx("span",{className:o.description({class:a==null?void 0:a.description}),children:s})]})]})});hp.displayName="NextUI.Radio";var M5=hp;function T5(e,t,r){let{labelProps:n,inputProps:o,isSelected:a,isPressed:s,isDisabled:i,isReadOnly:l}=ap(e,t,r);return{labelProps:n,inputProps:{...o,role:"switch",checked:a},isSelected:a,isPressed:s,isDisabled:i,isReadOnly:l}}function S5(e={}){const[t,r]=Mn(e,Zc.variantKeys),{ref:n,as:o,name:a,value:s="",isReadOnly:i=!1,autoFocus:l=!1,startContent:c,endContent:u,defaultSelected:d,isSelected:p,children:h,thumbIcon:g,className:b,classNames:y,onChange:P,onValueChange:x,...C}=t,S=o||"label",$=f.useRef(null),N=ou(n,$),j=f.useId(),m=f.useMemo(()=>{const Z=C["aria-label"]||typeof h=="string"?h:void 0;return{name:a,value:s,children:h,autoFocus:l,defaultSelected:d,isSelected:p,isDisabled:!!e.isDisabled,isReadOnly:i,"aria-label":Z,"aria-labelledby":C["aria-labelledby"]||j,onChange:x}},[s,a,j,h,l,i,p,d,e.isDisabled,C["aria-label"],C["aria-labelledby"],x]),D=Fi(m),{inputProps:I,isPressed:T,isReadOnly:k}=T5(m,D,$),{focusProps:w,isFocused:M,isFocusVisible:O}=Mt({autoFocus:I.autoFocus}),{hoverProps:F,isHovered:E}=mr({isDisabled:I.disabled}),V=m.isDisabled||k,[H,R]=f.useState(!1),{pressProps:W}=En({isDisabled:V,onPressStart(Z){Z.pointerType!=="keyboard"&&R(!0)},onPressEnd(Z){Z.pointerType!=="keyboard"&&R(!1)}}),ee=V?!1:H||T,U=I.checked,re=I.disabled,X=f.useMemo(()=>Zc({...r}),[...Object.values(r)]),te=me(y==null?void 0:y.base,b),ce=Z=>({...ie(F,W,C,Z),ref:N,className:X.base({class:me(te,Z==null?void 0:Z.className)}),"data-disabled":Q(re),"data-selected":Q(U),"data-readonly":Q(k),"data-focus":Q(M),"data-focus-visible":Q(O),"data-hover":Q(E),"data-pressed":Q(ee)}),be=f.useCallback((Z={})=>({...Z,"aria-hidden":!0,className:me(X.wrapper({class:me(y==null?void 0:y.wrapper,Z==null?void 0:Z.className)}))}),[X,y==null?void 0:y.wrapper]),pe=(Z={})=>({...ie(I,w,Z),ref:$,id:I.id,onChange:dr(P,I.onChange)}),fe=f.useCallback((Z={})=>({...Z,className:X.thumb({class:me(y==null?void 0:y.thumb,Z==null?void 0:Z.className)})}),[X,y==null?void 0:y.thumb]),he=f.useCallback((Z={})=>({...Z,id:j,className:X.label({class:me(y==null?void 0:y.label,Z==null?void 0:Z.className)})}),[X,y==null?void 0:y.label,re,U]),Te=f.useCallback((Z={includeStateProps:!1})=>ie({width:"1em",height:"1em",className:X.thumbIcon({class:me(y==null?void 0:y.thumbIcon)})},Z.includeStateProps?{isSelected:U}:{}),[X,y==null?void 0:y.thumbIcon,U]),Se=f.useCallback((Z={})=>({width:"1em",height:"1em",...Z,className:X.startContent({class:me(y==null?void 0:y.startContent,Z==null?void 0:Z.className)})}),[X,y==null?void 0:y.startContent,U]),ae=f.useCallback((Z={})=>({width:"1em",height:"1em",...Z,className:X.endContent({class:me(y==null?void 0:y.endContent,Z==null?void 0:Z.className)})}),[X,y==null?void 0:y.endContent,U]);return{Component:S,slots:X,classNames:y,domRef:N,children:h,thumbIcon:g,startContent:c,endContent:u,isHovered:E,isSelected:U,isPressed:ee,isFocused:M,isFocusVisible:O,isDisabled:re,getBaseProps:ce,getWrapperProps:be,getInputProps:pe,getLabelProps:he,getThumbProps:fe,getThumbIconProps:Te,getStartContentProps:Se,getEndContentProps:ae}}var mp=vt((e,t)=>{const{Component:r,children:n,startContent:o,endContent:a,thumbIcon:s,getBaseProps:i,getInputProps:l,getWrapperProps:c,getThumbProps:u,getThumbIconProps:d,getLabelProps:p,getStartContentProps:h,getEndContentProps:g}=S5({...e,ref:t}),b=typeof s=="function"?s(d({includeStateProps:!0})):s&&f.cloneElement(s,d()),y=o&&f.cloneElement(o,h()),P=a&&f.cloneElement(a,g());return L.jsxs(r,{...i(),children:[L.jsx($s,{children:L.jsx("input",{...l()})}),L.jsxs("span",{...c(),children:[o&&y,L.jsx("span",{...u(),children:s&&b}),a&&P]}),n&&L.jsx("span",{...p(),children:n})]})});mp.displayName="NextUI.Switch";var E5=mp;function $5(e={}){const{rerender:t=!1,delay:r=0}=e,n=f.useRef(!1),[o,a]=f.useState(!1);return f.useEffect(()=>{n.current=!0;let s=null;return t&&(r>0?s=setTimeout(()=>{a(!0)},r):a(!0)),()=>{n.current=!1,t&&a(!1),s&&clearTimeout(s)}},[t]),[f.useCallback(()=>n.current,[]),o]}function D5(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:a=!1,type:s="text",validationBehavior:i="aria"}=e,[l,c]=Lr(e.value,e.defaultValue||"",e.onChange),{focusableProps:u}=Vo(e,t),d=va({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:g}=d.displayValidation,{labelProps:b,fieldProps:y,descriptionProps:P,errorMessageProps:x}=sp({...e,isInvalid:p,errorMessage:e.errorMessage||h}),C=Fr(e,{labelable:!0});const S={type:s,pattern:e.pattern};return fs(t,l,c),Ni(e,d,t),f.useEffect(()=>{if(t.current instanceof xn(t.current).HTMLTextAreaElement){let $=t.current;Object.defineProperty($,"defaultValue",{get:()=>$.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:ie(C,r==="input"&&S,{disabled:n,readOnly:a,required:o&&i==="native","aria-required":o&&i==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:$=>c($.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...y}),descriptionProps:P,errorMessageProps:x,isInvalid:p,validationErrors:h,validationDetails:g}}function I5(e){const[t,r]=Mn(e,Jc.variantKeys),{ref:n,as:o,label:a,baseRef:s,wrapperRef:i,description:l,errorMessage:c,className:u,classNames:d,autoFocus:p,startContent:h,endContent:g,onClear:b,onChange:y,validationState:P,innerWrapperRef:x,onValueChange:C=()=>{},...S}=t,$=f.useCallback(ue=>{C(ue??"")},[C]),[N,j]=Lr(t.value,t.defaultValue,$),[m,D]=f.useState(!1),I=o||"div",T=!!N,k=T||m,w=me(d==null?void 0:d.base,u,T?"is-filled":""),M=e.isMultiline,O=nt(n),F=nt(s),E=nt(i),V=nt(x),H=f.useCallback(()=>{j(""),O.current&&(O.current.value="",O.current.focus()),b==null||b()},[O,j,b]),{labelProps:R,inputProps:W,descriptionProps:ee,errorMessageProps:U}=D5({...e,"aria-label":ks(e==null?void 0:e["aria-label"],e==null?void 0:e.label,e==null?void 0:e.placeholder),inputElementType:M?"textarea":"input",onChange:j},O),{isFocusVisible:re,isFocused:X,focusProps:te}=Mt({autoFocus:p,isTextInput:!0}),{isHovered:ce,hoverProps:be}=mr({isDisabled:!!(e!=null&&e.isDisabled)}),{focusProps:pe,isFocusVisible:fe}=Mt(),{focusWithinProps:he}=Lo({onFocusWithinChange:D}),{pressProps:Te}=fr({isDisabled:!!(e!=null&&e.isDisabled),onPress:H}),Se=P==="invalid"||e.isInvalid,ae=f.useMemo(()=>{var ue;return(!e.labelPlacement||e.labelPlacement==="inside")&&!a?"outside":(ue=e.labelPlacement)!=null?ue:"inside"},[e.labelPlacement,a]),Z=!!b||e.isClearable,Oe=!!a||!!l||!!c,_e=!!t.placeholder,Fe=!!a,Ie=!!l||!!c,It=ae==="outside"||ae==="outside-left",mt=ae==="inside",et=O.current?(!O.current.value||O.current.value===""||!N||N==="")&&_e:!1,Ir=ae==="outside-left",qe=!!h,Qe=It?ae==="outside-left"||_e||ae==="outside"&&qe:!1,kr=ae==="outside"&&!_e&&!qe,xe=f.useMemo(()=>Jc({...r,isInvalid:Se,isClearable:Z}),[...Object.values(r),Se,Z,qe]),co=f.useCallback((ue={})=>({ref:F,className:xe.base({class:w}),"data-slot":"base","data-filled":Q(T||_e||qe||et),"data-filled-within":Q(k||_e||qe||et),"data-focus-within":Q(m),"data-focus-visible":Q(re),"data-readonly":Q(e.isReadOnly),"data-focus":Q(X),"data-hover":Q(ce),"data-required":Q(e.isRequired),"data-invalid":Q(Se),"data-disabled":Q(e.isDisabled),"data-has-elements":Q(Oe),"data-has-helper":Q(Ie),"data-has-label":Q(Fe),"data-has-value":Q(!et),...he,...ue}),[xe,w,T,X,ce,Se,Ie,Fe,Oe,et,qe,m,re,k,_e,he,e.isReadOnly,e.isRequired,e.isDisabled]),Ar=f.useCallback((ue={})=>({"data-slot":"label",className:xe.label({class:d==null?void 0:d.label}),...R,...ue}),[xe,R,d==null?void 0:d.label]),Or=f.useCallback((ue={})=>({ref:O,"data-slot":"input","data-filled":Q(T),"data-filled-within":Q(k),"data-has-start-content":Q(qe),"data-has-end-content":Q(!!g),className:xe.input({class:me(d==null?void 0:d.input,N?"is-filled":"")}),...ie(te,W,Sn(S,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(W))}),ue),required:e.isRequired,"aria-readonly":Q(e.isReadOnly),"aria-required":Q(e.isRequired),onChange:dr(W.onChange,y)}),[xe,N,te,W,S,T,k,qe,g,d==null?void 0:d.input,e.isReadOnly,e.isRequired,y]),Ht=f.useCallback((ue={})=>({ref:E,"data-slot":"input-wrapper","data-hover":Q(ce),"data-focus-visible":Q(re),"data-focus":Q(X),className:xe.inputWrapper({class:me(d==null?void 0:d.inputWrapper,N?"is-filled":"")}),...ie(ue,be),onClick:ct=>{O.current&&ct.currentTarget===ct.target&&O.current.focus()},style:{cursor:"text",...ue.style}}),[xe,ce,re,X,N,d==null?void 0:d.inputWrapper]),uo=f.useCallback((ue={})=>({...ue,ref:V,"data-slot":"inner-wrapper",onClick:ct=>{O.current&&ct.currentTarget===ct.target&&O.current.focus()},className:xe.innerWrapper({class:me(d==null?void 0:d.innerWrapper,ue==null?void 0:ue.className)})}),[xe,d==null?void 0:d.innerWrapper]),fo=f.useCallback((ue={})=>({...ue,"data-slot":"main-wrapper",className:xe.mainWrapper({class:me(d==null?void 0:d.mainWrapper,ue==null?void 0:ue.className)})}),[xe,d==null?void 0:d.mainWrapper]),po=f.useCallback((ue={})=>({...ue,"data-slot":"helper-wrapper",className:xe.helperWrapper({class:me(d==null?void 0:d.helperWrapper,ue==null?void 0:ue.className)})}),[xe,d==null?void 0:d.helperWrapper]),ho=f.useCallback((ue={})=>({...ue,...ee,"data-slot":"description",className:xe.description({class:me(d==null?void 0:d.description,ue==null?void 0:ue.className)})}),[xe,d==null?void 0:d.description]),mo=f.useCallback((ue={})=>({...ue,...U,"data-slot":"error-message",className:xe.errorMessage({class:me(d==null?void 0:d.errorMessage,ue==null?void 0:ue.className)})}),[xe,U,d==null?void 0:d.errorMessage]),go=f.useCallback((ue={})=>({...ue,role:"button",tabIndex:0,"data-slot":"clear-button","data-focus-visible":Q(fe),className:xe.clearButton({class:me(d==null?void 0:d.clearButton,ue==null?void 0:ue.className)}),...ie(Te,pe)}),[xe,fe,Te,pe,d==null?void 0:d.clearButton]);return{Component:I,classNames:d,domRef:O,label:a,description:l,startContent:h,endContent:g,labelPlacement:ae,isClearable:Z,isInvalid:Se,hasHelper:Ie,hasStartContent:qe,isLabelOutside:Qe,isOutsideLeft:Ir,isLabelOutsideAsPlaceholder:kr,shouldLabelBeOutside:It,shouldLabelBeInside:mt,hasPlaceholder:_e,errorMessage:c,getBaseProps:co,getLabelProps:Ar,getInputProps:Or,getMainWrapperProps:fo,getInputWrapperProps:Ht,getInnerWrapperProps:uo,getHelperWrapperProps:po,getDescriptionProps:ho,getErrorMessageProps:mo,getClearButtonProps:go}}var ya="right-scroll-bar-position",xa="width-before-scroll-bar",k5="with-scroll-bars-hidden",A5="--removed-body-scroll-bar-size";function O5(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function N5(e,t){var r=f.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function j5(e,t){return N5(t||null,function(r){return e.forEach(function(n){return O5(n,r)})})}function L5(e){return e}function _5(e,t){t===void 0&&(t=L5);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var l=function(){var u=s;s=[],u.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),r}}}};return o}function F5(e){e===void 0&&(e={});var t=_5(null);return t.options=Pt({async:!0,ssr:!1},e),t}var gp=function(e){var t=e.sideCar,r=Ic(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return G.createElement(n,Pt({},r))};gp.isSideCarExport=!0;function V5(e,t){return e.useMedium(t),gp}var vp,z5=function(){if(vp)return vp;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function W5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=z5();return t&&e.setAttribute("nonce",t),e}function B5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function R5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var K5=function(){var e=0,t=null;return{add:function(r){e==0&&(t=W5())&&(B5(t,r),R5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},U5=function(){var e=K5();return function(t,r){G.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},bp=function(){var e=U5(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},H5={left:0,top:0,right:0,gap:0},zi=function(e){return parseInt(e||"",10)||0},Y5=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[zi(r),zi(n),zi(o)]},G5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return H5;var t=Y5(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},q5=bp(),Q5=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
36
|
-
.`.concat(
|
|
35
|
+
`),()=>{document.head.removeChild(c)}},[t]),G.createElement(f5,{isPresent:t,childRef:n,sizeRef:o},G.cloneElement(e,{ref:n}))}const ki=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:a,mode:s})=>{const i=Lu(h5),l=f.useId(),c=f.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:u=>{i.set(u,!0);for(const d of i.values())if(!d)return;n&&n()},register:u=>(i.set(u,!1),()=>i.delete(u))}),a?void 0:[r]);return f.useMemo(()=>{i.forEach((u,d)=>i.set(d,!1))},[r]),G.useEffect(()=>{!r&&!i.size&&n&&n()},[r]),s==="popLayout"&&(e=G.createElement(p5,{isPresent:r},e)),G.createElement(qo.Provider,{value:c},e)};function h5(){return new Map}function m5(e){return f.useEffect(()=>()=>e(),[])}const Mr=e=>e.key||"";function g5(e,t){e.forEach(r=>{const n=Mr(r);t.set(n,r)})}function v5(e){const t=[];return f.Children.forEach(e,r=>{f.isValidElement(r)&&t.push(r)}),t}const b5=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:s="sync"})=>{bt(!o,"Replace exitBeforeEnter with mode='wait'");const i=f.useContext(In).forceRender||Rf()[0],l=Bf(),c=v5(e);let u=c;const d=f.useRef(new Map).current,p=f.useRef(u),h=f.useRef(new Map).current,g=f.useRef(!0);if(Vs(()=>{g.current=!1,g5(c,h),p.current=u}),m5(()=>{g.current=!0,h.clear(),d.clear()}),g.current)return G.createElement(G.Fragment,null,u.map(x=>G.createElement(ki,{key:Mr(x),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:a,mode:s},x)));u=[...u];const b=p.current.map(Mr),y=c.map(Mr),P=b.length;for(let x=0;x<P;x++){const C=b[x];y.indexOf(C)===-1&&!d.has(C)&&d.set(C,void 0)}return s==="wait"&&d.size&&(u=[]),d.forEach((x,C)=>{if(y.indexOf(C)!==-1)return;const S=h.get(C);if(!S)return;const $=b.indexOf(C);let N=x;if(!N){const j=()=>{d.delete(C);const m=Array.from(h.keys()).filter(D=>!y.includes(D));if(m.forEach(D=>h.delete(D)),p.current=c.filter(D=>{const I=Mr(D);return I===C||m.includes(I)}),!d.size){if(l.current===!1)return;i(),n&&n()}};N=G.createElement(ki,{key:Mr(S),isPresent:!1,onExitComplete:j,custom:t,presenceAffectsLayout:a,mode:s},S),d.set(C,N)}u.splice($,0,N)}),u=u.map(x=>{const C=x.key;return d.has(C)?x:G.createElement(ki,{key:Mr(x),isPresent:!0,presenceAffectsLayout:a,mode:s},x)}),process.env.NODE_ENV!=="production"&&s==="wait"&&u.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),G.createElement(G.Fragment,null,d.size?u:u.map(x=>f.cloneElement(x)))},y5=f.createContext(null),x5=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Kf(){const e=new Set,t=new WeakMap,r=()=>e.forEach(x5);return{add:n=>{e.add(n),t.set(n,n.addEventListener("willUpdate",r))},remove:n=>{e.delete(n);const o=t.get(n);o&&(o(),t.delete(n)),r()},dirty:r}}const Uf=e=>e===!0,w5=e=>Uf(e===!0)||e==="id",C5=({children:e,id:t,inherit:r=!0})=>{const n=f.useContext(In),o=f.useContext(y5),[a,s]=Rf(),i=f.useRef(null),l=n.id||o;i.current===null&&(w5(r)&&l&&(t=t?l+"-"+t:l),i.current={id:t,group:Uf(r)&&n.group||Kf()});const c=f.useMemo(()=>({...i.current,forceRender:a}),[s]);return G.createElement(In.Provider,{value:c},e)};function Hf(e){return null}Hf.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:a}=t,s=t.title||t.children,i=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!i&&!(r!=null&&r.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:i,"aria-label":t["aria-label"],hasChildNodes:P5(t),*childNodes(){if(n)for(let l of n)yield{type:"item",value:l};else if(o){let l=[];f.Children.forEach(a,c=>{l.push({type:"item",element:c})}),yield*l}}}};function P5(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&f.Children.count(e.children)>0)}let M5=Hf;class T5{build(t,r){return this.context=r,Yf(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:r})}else{let o=[];f.Children.forEach(r,s=>{o.push(s)});let a=0;for(let s of o){let i=this.getFullNode({element:s,index:a},{});for(let l of i)a++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let a=r.value;if(a!=null){var s;let i=(s=a.key)!==null&&s!==void 0?s:a.id;if(i==null)throw new Error("No key found for item");return i}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){let a=t.element;if(!a&&t.value&&r&&r.renderer){let l=this.cache.get(t.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=t.index,l.parentKey=o?o.key:null,yield l;return}a=r.renderer(t.value)}if(f.isValidElement(a)){let l=a.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let p=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${p}> in collection.`)}let c=l.getCollectionNode(a.props,this.context),u=t.index,d=c.next();for(;!d.done&&d.value;){let p=d.value;t.index=u;let h=p.key;h||(h=p.element?null:this.getKey(a,t,r,n));let b=[...this.getFullNode({...p,key:h,index:u,wrapper:S5(t.wrapper,p.wrapper)},this.getChildState(r,p),n?`${n}${a.key}`:a.key,o)];for(let y of b){if(y.value=p.value||t.value,y.value&&this.cache.set(y.value,y),t.type&&y.type!==t.type)throw new Error(`Unsupported type <${Ai(y.type)}> in <${Ai(o.type)}>. Only <${Ai(t.type)}> is supported.`);u++,yield y}d=c.next(b)}return}if(t.key==null)return;let s=this,i={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Yf(function*(){if(!t.hasChildNodes)return;let l=0;for(let c of t.childNodes()){c.key!=null&&(c.key=`${i.key}${c.key}`),c.index=l;let u=s.getFullNode(c,s.getChildState(r,c),i.key,i);for(let d of u)l++,yield d}})};yield i}constructor(){this.cache=new WeakMap}}function Yf(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function S5(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Ai(e){return e[0].toUpperCase()+e.slice(1)}function E5(e,t,r){let n=f.useMemo(()=>new T5,[]),{children:o,items:a,collection:s}=e;return f.useMemo(()=>{if(s)return s;let l=n.build({children:o,items:a},r);return t(l)},[n,o,a,s,r,t])}function $5(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function D5(e){return I5(e,0)}function I5(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function Oi(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...Gf(e,t),t],o=[...Gf(e,r),r],a=n.slice(0,o.length).findIndex((s,i)=>s!==o[i]);return a!==-1?(t=n[a],r=o[a],t.index-r.index):n.findIndex(s=>s===r)>=0?1:(o.findIndex(s=>s===t)>=0,-1)}function Gf(e,t){let r=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),r.unshift(t);return r}class yt extends Set{constructor(t,r,n){super(t),t instanceof yt?(this.anchorKey=r||t.anchorKey,this.currentKey=n||t.currentKey):(this.anchorKey=r,this.currentKey=n)}}function k5(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function A5(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:a="all"}=e,s=f.useRef(!1),[,i]=f.useState(!1),l=f.useRef(null),c=f.useRef(null),[,u]=f.useState(null),d=f.useMemo(()=>qf(e.selectedKeys),[e.selectedKeys]),p=f.useMemo(()=>qf(e.defaultSelectedKeys,new yt),[e.defaultSelectedKeys]),[h,g]=Lr(d,p,e.onSelectionChange),b=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,P]=f.useState(o);o==="replace"&&y==="toggle"&&typeof h=="object"&&h.size===0&&P("replace");let x=f.useRef(o);return f.useEffect(()=>{o!==x.current&&(P(o),x.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:y,setSelectionBehavior:P,get isFocused(){return s.current},setFocused(C){s.current=C,i(C)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(C,S="first"){l.current=C,c.current=S,u(C)},selectedKeys:h,setSelectedKeys(C){(n||!k5(C,h))&&g(C)},disabledKeys:b,disabledBehavior:a}}function qf(e,t){return e?e==="all"?"all":new yt(e):t}class O5{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&Oi(this.collection,n,t)<0)&&(t=n)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&Oi(this.collection,n,t)>0)&&(t=n)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let r;if(this.state.selectedKeys==="all")r=new yt([t],t,t);else{let n=this.state.selectedKeys,o=n.anchorKey||t;r=new yt(n,o,t);for(let a of this.getKeyRange(o,n.currentKey||t))r.delete(a);for(let a of this.getKeyRange(t,o))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?Oi(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){let n=[],o=t;for(;o;){let a=this.collection.getItem(o);if((a&&a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&n.push(o),o===r)return n;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let r=new yt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let r=this.canSelectItem(t)?new yt([t],t,t):new yt;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new yt;for(let n of t)if(n=this.getKey(n),n!=null&&(r.add(n),this.selectionMode==="single"))break;this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n;){if(this.canSelectItem(n)){let o=this.collection.getItem(n);o.type==="item"&&t.push(n),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&r(D5($5(o,this.collection)).key)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new yt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}var N5=()=>L.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[L.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),L.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]}),[Ux,j5]=Ro({name:"AvatarGroupContext",strict:!1}),L5=globalThis!=null&&globalThis.document?f.useLayoutEffect:f.useEffect;function _5(e={}){const{loading:t,src:r,srcSet:n,onLoad:o,onError:a,crossOrigin:s,sizes:i,ignoreFallback:l}=e,[c,u]=f.useState("pending");f.useEffect(()=>{u(r?"loading":"pending")},[r]);const d=f.useRef(),p=f.useCallback(()=>{if(!r)return;h();const g=new Image;g.src=r,s&&(g.crossOrigin=s),n&&(g.srcset=n),i&&(g.sizes=i),t&&(g.loading=t),g.onload=b=>{h(),u("loaded"),o==null||o(b)},g.onerror=b=>{h(),u("failed"),a==null||a(b)},d.current=g},[r,s,n,i,o,a,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return L5(()=>{if(!l)return c==="loading"&&p(),()=>{h()}},[c,p,l]),l?"loaded":c}function F5(e={}){var t,r,n,o,a;const s=j5(),i=!!s,{as:l,ref:c,src:u,name:d,icon:p,classNames:h,fallback:g,alt:b=d||"avatar",imgRef:y,color:P=(t=s==null?void 0:s.color)!=null?t:"default",radius:x=(r=s==null?void 0:s.radius)!=null?r:"full",size:C=(n=s==null?void 0:s.size)!=null?n:"md",isBordered:S=(o=s==null?void 0:s.isBordered)!=null?o:!1,isDisabled:$=(a=s==null?void 0:s.isDisabled)!=null?a:!1,isFocusable:N=!1,getInitials:j=Vm,ignoreFallback:m=!1,showFallback:D=!1,ImgComponent:I="img",imgProps:T,className:k,onError:w,...M}=e,O=l||"span",F=nt(c),E=nt(y),{isFocusVisible:V,isFocused:H,focusProps:R}=Mt(),{isHovered:W,hoverProps:ee}=mr({isDisabled:$}),re=_5({src:u,onError:w,ignoreFallback:m})==="loaded",X=(!u||!re)&&D,te=f.useMemo(()=>{var he;return _m({color:P,radius:x,size:C,isBordered:S,isDisabled:$,isInGroup:i,isInGridGroup:(he=s==null?void 0:s.isGrid)!=null?he:!1})},[P,x,C,S,$,i,s==null?void 0:s.isGrid]),ce=me(h==null?void 0:h.base,k),be=f.useMemo(()=>N||l==="button",[N,l]),pe=f.useCallback((he={})=>({ref:F,tabIndex:be?0:-1,"data-hover":Q(W),"data-focus":Q(H),"data-focus-visible":Q(V),className:te.base({class:me(ce,he==null?void 0:he.className)}),...ie(M,ee,be?R:{})}),[be,te,ce,R,M]),fe=f.useCallback((he={})=>({ref:E,src:u,"data-loaded":Q(re),className:te.img({class:h==null?void 0:h.img}),...ie(T,he)}),[te,re,T,u,E]);return{Component:O,ImgComponent:I,src:u,alt:b,icon:p,name:d,imgRef:E,slots:te,classNames:h,fallback:g,isImgLoaded:re,showFallback:X,ignoreFallback:m,getInitials:j,getAvatarProps:pe,getImageProps:fe}}var Qf=vt((e,t)=>{const{Component:r,ImgComponent:n,src:o,icon:a=L.jsx(N5,{}),alt:s,classNames:i,slots:l,name:c,showFallback:u,fallback:d,getInitials:p,getAvatarProps:h,getImageProps:g}=F5({...e,ref:t}),b=f.useMemo(()=>!u&&o?null:d?L.jsx("div",{"aria-label":s,className:l.fallback({class:i==null?void 0:i.fallback}),role:"img",children:d}):c?L.jsx("span",{"aria-label":s,className:l.name({class:i==null?void 0:i.name}),role:"img",children:p(c)}):L.jsx("span",{"aria-label":s,className:l.icon({class:i==null?void 0:i.icon}),role:"img",children:a}),[u,o,d,c,i]);return L.jsxs(r,{...h(),children:[o&&L.jsx(n,{...g(),alt:s}),b]})});Qf.displayName="NextUI.Avatar";var V5=Qf,[Hx,z5]=Ro({name:"ButtonGroupContext",strict:!1});function W5(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:a,onPressEnd:s,onPressChange:i,preventFocusOnPress:l,allowFocusWhenDisabled:c,onClick:u,href:d,target:p,rel:h,type:g="button",allowTextSelectionOnPress:b}=e,y;r==="button"?y={type:g,disabled:n}:y={role:"button",tabIndex:n?void 0:0,href:r==="a"&&n?void 0:d,target:r==="a"?p:void 0,type:r==="input"?g:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?h:void 0};let{pressProps:P,isPressed:x}=En({onPressStart:a,onPressEnd:s,onPressChange:i,onPress:o,isDisabled:n,preventFocusOnPress:l,allowTextSelectionOnPress:b,ref:t}),{focusableProps:C}=Vo(e,t);c&&(C.tabIndex=n?-1:C.tabIndex);let S=ie(C,P,Fr(e,{labelable:!0}));return{isPressed:x,buttonProps:ie(y,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:$=>{u==null||u($)}})}}var B5=(e,t,r)=>Math.min(Math.max(e,t),r),Xf=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:a}=e;return L.jsx(L.Fragment,{children:t.map(s=>{const i=B5(.01*s.size,.2,s.size>100?.75:.5);return L.jsx(b5,{mode:"popLayout",children:L.jsx(Wf.span,{animate:{transform:"scale(2)",opacity:0},className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",zIndex:10,top:s.y,left:s.x,width:`${s.size}px`,height:`${s.size}px`,...o},transition:{duration:i},onAnimationComplete:()=>{a(s.key)},...r})},s.key)})})};Xf.displayName="NextUI.Ripple";var R5=Xf;function K5(e={}){const[t,r]=f.useState([]),n=f.useCallback(a=>{const s=a.currentTarget,i=Math.max(s.clientWidth,s.clientHeight),l=s.getBoundingClientRect();r(c=>[...c,{key:zm(c.length.toString()),size:i,x:a.clientX-l.x-i/2,y:a.clientY-l.y-i/2}])},[]),o=f.useCallback(a=>{r(s=>s.filter(i=>i.key!==a))},[]);return{ripples:t,onClick:n,onClear:o,...e}}function U5(e){var t,r,n,o,a,s,i,l;const c=z5(),u=!!c,{ref:d,as:p,children:h,startContent:g,endContent:b,autoFocus:y,className:P,spinner:x,fullWidth:C=(t=c==null?void 0:c.fullWidth)!=null?t:!1,size:S=(r=c==null?void 0:c.size)!=null?r:"md",color:$=(n=c==null?void 0:c.color)!=null?n:"default",variant:N=(o=c==null?void 0:c.variant)!=null?o:"solid",disableAnimation:j=(a=c==null?void 0:c.disableAnimation)!=null?a:!1,radius:m=c==null?void 0:c.radius,disableRipple:D=(s=c==null?void 0:c.disableRipple)!=null?s:!1,isDisabled:I=(i=c==null?void 0:c.isDisabled)!=null?i:!1,isIconOnly:T=(l=c==null?void 0:c.isIconOnly)!=null?l:!1,isLoading:k=!1,spinnerPlacement:w="start",onPress:M,onClick:O,...F}=e,E=p||"button",V=typeof E=="string",H=nt(d),{isFocusVisible:R,isFocused:W,focusProps:ee}=Mt({autoFocus:y}),U=I||k,re=f.useMemo(()=>Fm({size:S,color:$,variant:N,radius:m,fullWidth:C,isDisabled:U,isInGroup:u,disableAnimation:j,isIconOnly:T,className:P}),[S,$,N,m,C,U,u,T,j,P]),{onClick:X,onClear:te,ripples:ce}=K5(),be=f.useCallback(Ie=>{D||U||j||H.current&&X(Ie)},[D,U,j,H,X]),{buttonProps:pe,isPressed:fe}=W5({elementType:p,isDisabled:U,onPress:M,onClick:dr(O,be),...F},H),{isHovered:he,hoverProps:Te}=mr({isDisabled:U}),Se=f.useCallback((Ie={})=>({"data-disabled":Q(U),"data-focus":Q(W),"data-pressed":Q(fe),"data-focus-visible":Q(R),"data-hover":Q(he),"data-loading":Q(k),...ie(pe,ee,Te,Sn(F,{enabled:V}),Sn(Ie))}),[k,U,W,fe,V,R,he,pe,ee,Te,F]),ae=Ie=>f.isValidElement(Ie)?f.cloneElement(Ie,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,Z=ae(g),Oe=ae(b),_e=f.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[S],[S]),Fe=f.useCallback(()=>({ripples:ce,onClear:te}),[ce,te]);return{Component:E,children:h,domRef:H,spinner:x,styles:re,startContent:Z,endContent:Oe,isLoading:k,spinnerPlacement:w,spinnerSize:_e,disableRipple:D,getButtonProps:Se,getRippleProps:Fe,isIconOnly:T}}function H5(e){const[t,r]=Mn(e,Qc.variantKeys),{children:n,className:o,classNames:a,label:s,...i}=t,l=f.useMemo(()=>Qc({...r}),[...Object.values(r)]),c=me(a==null?void 0:a.base,o),u=s||n,d=f.useMemo(()=>u&&typeof u=="string"?u:i["aria-label"]?"":"Loading",[n,u,i["aria-label"]]),p=f.useCallback(()=>({"aria-label":d,className:l.base({class:c}),...i}),[d,l,c,i]);return{label:u,slots:l,classNames:a,getSpinnerProps:p}}var Zf=vt((e,t)=>{const{slots:r,classNames:n,label:o,getSpinnerProps:a}=H5({...e});return L.jsxs("div",{ref:t,...a(),children:[L.jsxs("div",{className:r.wrapper({class:n==null?void 0:n.wrapper}),children:[L.jsx("i",{className:r.circle1({class:n==null?void 0:n.circle1})}),L.jsx("i",{className:r.circle2({class:n==null?void 0:n.circle2})})]}),o&&L.jsx("span",{className:r.label(),children:o})]})});Zf.displayName="NextUI.Spinner";var Y5=Zf,Jf=vt((e,t)=>{const{Component:r,domRef:n,children:o,styles:a,spinnerSize:s,spinner:i=L.jsx(Y5,{color:"current",size:s}),spinnerPlacement:l,startContent:c,endContent:u,isLoading:d,disableRipple:p,getButtonProps:h,getRippleProps:g,isIconOnly:b}=U5({...e,ref:t});return L.jsxs(r,{ref:n,className:a,...h(),children:[c,d&&l==="start"&&i,d&&b?null:o,d&&l==="end"&&i,u,!p&&L.jsx(R5,{...g()})]})});Jf.displayName="NextUI.Button";var G5=Jf;function q5(e){const[t,r]=Mn(e,eu.variantKeys),{ref:n,as:o,children:a,avatar:s,startContent:i,endContent:l,onClose:c,classNames:u,className:d,...p}=t,h=o||"div",g=nt(n),b=me(u==null?void 0:u.base,d),y=!!c,P=e.variant==="dot",{focusProps:x,isFocusVisible:C}=Mt(),S=f.useMemo(()=>typeof a=="string"&&(a==null?void 0:a.length)===1,[a]),$=f.useMemo(()=>!!s||!!i,[s,i]),N=f.useMemo(()=>!!l||y,[l,y]),j=f.useMemo(()=>eu({...r,hasStartContent:$,hasEndContent:N,isOneChar:S,isCloseable:y,isCloseButtonFocusVisible:C}),[...Object.values(r),C,$,N,S,y]),{pressProps:m}=En({isDisabled:!!(e!=null&&e.isDisabled),onPress:c}),D=()=>({ref:g,className:j.base({class:b}),...p}),I=()=>({role:"button",tabIndex:0,className:j.closeButton({class:u==null?void 0:u.closeButton}),...ie(m,x)}),T=w=>f.isValidElement(w)?f.cloneElement(w,{className:j.avatar({class:u==null?void 0:u.avatar})}):null,k=w=>f.isValidElement(w)?f.cloneElement(w,{className:me("max-h-[80%]",w.props.className)}):null;return{Component:h,children:a,slots:j,classNames:u,isDot:P,isCloseable:y,startContent:T(s)||k(i),endContent:k(l),getCloseButtonProps:I,getChipProps:D}}var e1=vt((e,t)=>{const{Component:r,children:n,slots:o,classNames:a,isDot:s,isCloseable:i,startContent:l,endContent:c,getCloseButtonProps:u,getChipProps:d}=q5({...e,ref:t}),p=f.useMemo(()=>s&&!l?L.jsx("span",{className:o.dot({class:a==null?void 0:a.dot})}):l,[o,l,s]),h=f.useMemo(()=>i?L.jsx("span",{...u(),children:c||L.jsx(lg,{})}):c,[c,i,u]);return L.jsxs(r,{...d(),children:[p,L.jsx("span",{className:o.content({class:a==null?void 0:a.content}),children:n}),h]})});e1.displayName="NextUI.Chip";var t1=e1;function Ni(e,t,r){let{validationBehavior:n,focus:o}=e;kt(()=>{if(n==="native"&&(r!=null&&r.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(l),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(X5(r.current))}});let a=We(()=>{t.resetValidation()}),s=We(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let u=r==null||(c=r.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&r&&u&&Z5(u)===r.current){var d;o?o():(d=r.current)===null||d===void 0||d.focus(),cm("keyboard")}l.preventDefault()}),i=We(()=>{t.commitValidation()});f.useEffect(()=>{let l=r==null?void 0:r.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",s),l.addEventListener("change",i),c==null||c.addEventListener("reset",a),()=>{l.removeEventListener("invalid",s),l.removeEventListener("change",i),c==null||c.removeEventListener("reset",a)}},[r,s,i,a,n])}function Q5(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function X5(e){return{isInvalid:!e.validity.valid,validationDetails:Q5(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Z5(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}const r1={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},n1={...r1,customError:!0,valid:!1},Jr={isInvalid:!1,validationDetails:r1,validationErrors:[]},J5=f.createContext({}),ji="__formValidationState"+Date.now();function va(e){if(e[ji]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}=e[ji];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}}return ey(e)}function ey(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:a,validate:s,validationBehavior:i="aria"}=e;r&&(t||(t=r==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:n1}:null,c=f.useMemo(()=>o1(ty(s,o)),[s,o]);a!=null&&a.validationDetails.valid&&(a=null);let u=f.useContext(J5),d=f.useMemo(()=>n?Array.isArray(n)?n.flatMap(I=>Li(u[I])):Li(u[n]):[],[u,n]),[p,h]=f.useState(u),[g,b]=f.useState(!1);u!==p&&(h(u),b(!1));let y=f.useMemo(()=>o1(g?[]:d),[g,d]),P=f.useRef(Jr),[x,C]=f.useState(Jr),S=f.useRef(Jr),$=()=>{if(!N)return;j(!1);let I=c||a||P.current;_i(I,S.current)||(S.current=I,C(I))},[N,j]=f.useState(!1);return f.useEffect($),{realtimeValidation:l||y||c||a||Jr,displayValidation:i==="native"?l||y||x:l||y||c||a||x,updateValidation(I){i==="aria"&&!_i(x,I)?C(I):P.current=I},resetValidation(){let I=Jr;_i(I,S.current)||(S.current=I,C(I)),i==="native"&&j(!1),b(!0)},commitValidation(){i==="native"&&j(!0),b(!0)}}}function Li(e){return e?Array.isArray(e)?e:[e]:[]}function ty(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Li(r)}return[]}function o1(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:n1}:null}function _i(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function a1(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:a,name:s,children:i,"aria-label":l,"aria-labelledby":c,validationState:u="valid",isInvalid:d}=e,p=N=>{N.stopPropagation(),t.setSelected(N.target.checked)},h=i!=null,g=l!=null||c!=null;!h&&!g&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:b,isPressed:y}=fr({isDisabled:n}),{pressProps:P,isPressed:x}=fr({isDisabled:n||o,onPress(){t.toggle()}}),{focusableProps:C}=Vo(e,r),S=ie(b,C),$=Fr(e,{labelable:!0});return fs(r,t.isSelected,t.setSelected),{labelProps:ie(P,{onClick:N=>N.preventDefault()}),inputProps:ie($,{"aria-invalid":d||u==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:p,disabled:n,...a==null?{}:{value:a},name:s,type:"checkbox",...S}),isSelected:t.isSelected,isPressed:y||x,isDisabled:n,isReadOnly:o,isInvalid:d||u==="invalid"}}function ry(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:a="label"}=e;t=_r(t);let s=_r(),i={};r?(n=n?`${s} ${n}`:s,i={id:s,htmlFor:a==="label"?t:void 0}):!n&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=cs({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:i,fieldProps:l}}function s1(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:a,fieldProps:s}=ry(e),i=vc([!!t,!!r,n,o]),l=vc([!!t,!!r,n,o]);return s=ie(s,{"aria-describedby":[i,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:s,descriptionProps:{id:i},errorMessageProps:{id:l}}}function Fi(e={}){let{isReadOnly:t}=e,[r,n]=Lr(e.isSelected,e.defaultSelected||!1,e.onChange);function o(s){t||n(s)}function a(){t||n(!r)}return{isSelected:r,setSelected:o,toggle:a}}function i1(e,t,r){let n=va({...e,value:t.isSelected}),{isInvalid:o,validationErrors:a,validationDetails:s}=n.displayValidation,{labelProps:i,inputProps:l,isSelected:c,isPressed:u,isDisabled:d,isReadOnly:p}=a1({...e,isInvalid:o},t,r);Ni(e,n,r);let{isIndeterminate:h,isRequired:g,validationBehavior:b="aria"}=e;return f.useEffect(()=>{r.current&&(r.current.indeterminate=!!h)}),{labelProps:i,inputProps:{...l,checked:c,"aria-required":g&&b==="aria"||void 0,required:g&&b==="native"},isSelected:c,isPressed:u,isDisabled:d,isReadOnly:p,isInvalid:o,validationErrors:a,validationDetails:s}}const ny=new WeakMap;function oy(e,t,r){const n=Fi({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(y){y?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(y)}});let{name:o,descriptionId:a,errorMessageId:s,validationBehavior:i}=ny.get(t);var l;i=(l=e.validationBehavior)!==null&&l!==void 0?l:i;let{realtimeValidation:c}=va({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),u=f.useRef(Jr),d=()=>{t.setInvalid(e.value,c.isInvalid?c:u.current)};f.useEffect(d);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:c,h=i==="native"?t.displayValidation:p;var g;let b=i1({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(g=e.isRequired)!==null&&g!==void 0?g:t.isRequired,validationBehavior:i,[ji]:{realtimeValidation:p,displayValidation:h,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(y){u.current=y,d()}}},n,r);return{...b,inputProps:{...b.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?s:null,a].filter(Boolean).join(" ")||void 0}}}var[Yx,ay]=Ro({name:"CheckboxGroupContext",strict:!1});function sy(e){const{isSelected:t,disableAnimation:r,...n}=e;return L.jsx("svg",{"aria-hidden":"true",role:"presentation",viewBox:"0 0 17 18",...n,children:L.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!r&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{}})})}function iy(e){const{isSelected:t,disableAnimation:r,...n}=e;return L.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...n,children:L.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function ly(e){const{isIndeterminate:t,...r}=e,n=t?iy:sy;return L.jsx(n,{...r})}function cy(e={}){var t,r,n,o,a,s;const i=ay(),l=!!i,{as:c,ref:u,value:d="",children:p,icon:h,name:g,isRequired:b=!1,isReadOnly:y=!1,autoFocus:P=!1,isSelected:x,validationState:C,size:S=(t=i==null?void 0:i.size)!=null?t:"md",color:$=(r=i==null?void 0:i.color)!=null?r:"primary",radius:N=i==null?void 0:i.radius,lineThrough:j=(n=i==null?void 0:i.lineThrough)!=null?n:!1,isDisabled:m=(o=i==null?void 0:i.isDisabled)!=null?o:!1,disableAnimation:D=(a=i==null?void 0:i.disableAnimation)!=null?a:!1,isInvalid:I=C?C==="invalid":(s=i==null?void 0:i.isInvalid)!=null?s:!1,isIndeterminate:T=!1,defaultSelected:k,classNames:w,onChange:M,className:O,onValueChange:F,...E}=e;i&&nu&&(x&&Bo("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),k&&Bo("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const V=c||"label",H=f.useRef(null),R=ou(u,H),W=f.useId(),ee=f.useMemo(()=>({name:g,value:d,children:p,autoFocus:P,defaultSelected:k,isIndeterminate:T,isRequired:b,isInvalid:I,isSelected:x,isDisabled:m,isReadOnly:y,"aria-label":ks(E["aria-label"],p),"aria-labelledby":E["aria-labelledby"]||W,onChange:F}),[d,g,W,p,P,I,T,m,y,x,k,E["aria-label"],E["aria-labelledby"],F]),{inputProps:U,isSelected:re,isDisabled:X,isReadOnly:te,isPressed:ce}=l?oy({...ee,isInvalid:I},i.groupState,H):i1(ee,Fi(ee),H),be=X||te,[pe,fe]=f.useState(!1),{pressProps:he}=En({isDisabled:be,onPressStart(Qe){Qe.pointerType!=="keyboard"&&fe(!0)},onPressEnd(Qe){Qe.pointerType!=="keyboard"&&fe(!1)}}),Te=be?!1:pe||ce;b&&(U.required=!0);const{hoverProps:Se,isHovered:ae}=mr({isDisabled:U.disabled}),{focusProps:Z,isFocused:Oe,isFocusVisible:_e}=Mt({autoFocus:U.autoFocus}),Fe=f.useMemo(()=>Lm({color:$,size:S,radius:N,isInvalid:I,lineThrough:j,isDisabled:X,disableAnimation:D}),[$,S,N,I,j,X,D]),Ie=me(w==null?void 0:w.base,O),It=f.useCallback(()=>({ref:R,className:Fe.base({class:Ie}),"data-disabled":Q(X),"data-selected":Q(re||T),"data-invalid":Q(I),"data-hover":Q(ae),"data-focus":Q(Oe),"data-pressed":Q(Te),"data-readonly":Q(U.readOnly),"data-focus-visible":Q(_e),"data-indeterminate":Q(T),...ie(Se,he,E)}),[Fe,Ie,X,re,T,I,ae,Oe,Te,U.readOnly,_e,Se,he,E]),mt=f.useCallback((Qe={})=>({...Qe,"aria-hidden":!0,className:me(Fe.wrapper({class:me(w==null?void 0:w.wrapper,Qe==null?void 0:Qe.className)}))}),[Fe,w==null?void 0:w.wrapper]),et=f.useCallback(()=>({ref:H,...ie(U,Z),onChange:dr(U.onChange,M)}),[U,Z,M]),Ir=f.useCallback(()=>({id:W,className:Fe.label({class:w==null?void 0:w.label})}),[Fe,w==null?void 0:w.label,X,re,I]),qe=f.useCallback(()=>({isSelected:re,isIndeterminate:!!T,disableAnimation:!!D,className:Fe.icon({class:w==null?void 0:w.icon})}),[Fe,w==null?void 0:w.icon,re,T,D]);return{Component:V,icon:h,children:p,isSelected:re,isDisabled:X,isInvalid:I,isFocused:Oe,isHovered:ae,isFocusVisible:_e,getBaseProps:It,getWrapperProps:mt,getInputProps:et,getLabelProps:Ir,getIconProps:qe}}var l1=vt((e,t)=>{const{Component:r,children:n,icon:o=L.jsx(ly,{}),getBaseProps:a,getWrapperProps:s,getInputProps:i,getIconProps:l,getLabelProps:c}=cy({...e,ref:t}),u=typeof o=="function"?o(l()):f.cloneElement(o,l());return L.jsxs(r,{...a(),children:[L.jsx($s,{children:L.jsx("input",{...i()})}),L.jsx("span",{...s(),children:u}),n&&L.jsx("span",{...c(),children:n})]})});l1.displayName="NextUI.Checkbox";var uy=l1;const c1=e=>typeof e=="object"&&e!=null&&e.nodeType===1,u1=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Vi=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return u1(r.overflowY,t)||u1(r.overflowX,t)||(n=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},ba=(e,t,r,n,o,a,s,i)=>a<e&&s>t||a>e&&s<t?0:a<=e&&i<=r||s>=t&&i>=r?a-e-n:s>t&&i<r||a<e&&i>r?s-t+o:0,dy=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},d1=(e,t)=>{var r,n,o,a;if(typeof document>"u")return[];const{scrollMode:s,block:i,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:F=>F!==c;if(!c1(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let g=e;for(;c1(g)&&d(g);){if(g=dy(g),g===p){h.push(g);break}g!=null&&g===document.body&&Vi(g)&&!Vi(document.documentElement)||g!=null&&Vi(g,u)&&h.push(g)}const b=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,y=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:P,scrollY:x}=window,{height:C,width:S,top:$,right:N,bottom:j,left:m}=e.getBoundingClientRect(),{top:D,right:I,bottom:T,left:k}=(F=>{const E=window.getComputedStyle(F);return{top:parseFloat(E.scrollMarginTop)||0,right:parseFloat(E.scrollMarginRight)||0,bottom:parseFloat(E.scrollMarginBottom)||0,left:parseFloat(E.scrollMarginLeft)||0}})(e);let w=i==="start"||i==="nearest"?$-D:i==="end"?j+T:$+C/2-D+T,M=l==="center"?m+S/2-k+I:l==="end"?N+I:m-k;const O=[];for(let F=0;F<h.length;F++){const E=h[F],{height:V,width:H,top:R,right:W,bottom:ee,left:U}=E.getBoundingClientRect();if(s==="if-needed"&&$>=0&&m>=0&&j<=y&&N<=b&&$>=R&&j<=ee&&m>=U&&N<=W)return O;const re=getComputedStyle(E),X=parseInt(re.borderLeftWidth,10),te=parseInt(re.borderTopWidth,10),ce=parseInt(re.borderRightWidth,10),be=parseInt(re.borderBottomWidth,10);let pe=0,fe=0;const he="offsetWidth"in E?E.offsetWidth-E.clientWidth-X-ce:0,Te="offsetHeight"in E?E.offsetHeight-E.clientHeight-te-be:0,Se="offsetWidth"in E?E.offsetWidth===0?0:H/E.offsetWidth:0,ae="offsetHeight"in E?E.offsetHeight===0?0:V/E.offsetHeight:0;if(p===E)pe=i==="start"?w:i==="end"?w-y:i==="nearest"?ba(x,x+y,y,te,be,x+w,x+w+C,C):w-y/2,fe=l==="start"?M:l==="center"?M-b/2:l==="end"?M-b:ba(P,P+b,b,X,ce,P+M,P+M+S,S),pe=Math.max(0,pe+x),fe=Math.max(0,fe+P);else{pe=i==="start"?w-R-te:i==="end"?w-ee+be+Te:i==="nearest"?ba(R,ee,V,te,be+Te,w,w+C,C):w-(R+V/2)+Te/2,fe=l==="start"?M-U-X:l==="center"?M-(U+H/2)+he/2:l==="end"?M-W+ce+he:ba(U,W,H,X,ce+he,M,M+S,S);const{scrollLeft:Z,scrollTop:Oe}=E;pe=ae===0?0:Math.max(0,Math.min(Oe+pe/ae,E.scrollHeight-V/ae+Te)),fe=Se===0?0:Math.max(0,Math.min(Z+fe/Se,E.scrollWidth-H/Se+he)),w+=Oe-pe,M+=Z-fe}O.push({el:E,top:pe,left:fe})}return O},fy=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function py(e,t){if(!e.isConnected||!(n=>{let o=n;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;if((n=>typeof n=="object"&&typeof n.behavior=="function")(t))return t.behavior(d1(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:n,top:o,left:a}of d1(e,fy(t)))n.scroll({top:o,left:a,behavior:r})}let hy=Math.round(Math.random()*1e10),my=0;function gy(e){let t=f.useMemo(()=>e.name||`radio-group-${hy}-${++my}`,[e.name]);var r;let[n,o]=Lr(e.value,(r=e.defaultValue)!==null&&r!==void 0?r:null,e.onChange),[a,s]=f.useState(null),i=va({...e,value:n}),l=u=>{!e.isReadOnly&&!e.isDisabled&&(o(u),i.commitValidation())},c=i.displayValidation.isInvalid;return{...i,name:t,selectedValue:n,setSelectedValue:l,lastFocusedValue:a,setLastFocusedValue:s,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(c?"invalid":null),isInvalid:c}}const f1=new WeakMap;function vy(e,t,r){let{value:n,children:o,"aria-label":a,"aria-labelledby":s}=e;const i=e.isDisabled||t.isDisabled;let l=o!=null,c=a!=null||s!=null;!l&&!c&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let u=t.selectedValue===n,d=m=>{m.stopPropagation(),t.setSelectedValue(n)},{pressProps:p,isPressed:h}=fr({isDisabled:i}),{pressProps:g,isPressed:b}=fr({isDisabled:i,onPress(){t.setSelectedValue(n)}}),{focusableProps:y}=Vo(ie(e,{onFocus:()=>t.setLastFocusedValue(n)}),r),P=ie(p,y),x=Fr(e,{labelable:!0}),C=-1;t.selectedValue!=null?t.selectedValue===n&&(C=0):(t.lastFocusedValue===n||t.lastFocusedValue==null)&&(C=0),i&&(C=void 0);let{name:S,descriptionId:$,errorMessageId:N,validationBehavior:j}=f1.get(t);return fs(r,t.selectedValue,t.setSelectedValue),Ni({validationBehavior:j},t,r),{labelProps:ie(g,{onClick:m=>m.preventDefault()}),inputProps:ie(x,{...P,type:"radio",name:S,tabIndex:C,disabled:i,required:t.isRequired&&j==="native",checked:u,value:n,onChange:d,"aria-describedby":[e["aria-describedby"],t.isInvalid?N:null,$].filter(Boolean).join(" ")||void 0}),isDisabled:i,isSelected:u,isPressed:h||b}}function by(e,t){let{name:r,isReadOnly:n,isRequired:o,isDisabled:a,orientation:s="vertical",validationBehavior:i="aria"}=e,{direction:l}=hs(),{isInvalid:c,validationErrors:u,validationDetails:d}=t.displayValidation,{labelProps:p,fieldProps:h,descriptionProps:g,errorMessageProps:b}=s1({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||u}),y=Fr(e,{labelable:!0}),{focusWithinProps:P}=Lo({onBlurWithin(S){var $;($=e.onBlur)===null||$===void 0||$.call(e,S),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),x=S=>{let $;switch(S.key){case"ArrowRight":l==="rtl"&&s!=="vertical"?$="prev":$="next";break;case"ArrowLeft":l==="rtl"&&s!=="vertical"?$="next":$="prev";break;case"ArrowDown":$="next";break;case"ArrowUp":$="prev";break;default:return}S.preventDefault();let N=Ss(S.currentTarget,{from:S.target}),j;$==="next"?(j=N.nextNode(),j||(N.currentNode=S.currentTarget,j=N.firstChild())):(j=N.previousNode(),j||(N.currentNode=S.currentTarget,j=N.lastChild())),j&&(j.focus(),t.setSelectedValue(j.value))},C=_r(r);return f1.set(t,{name:C,descriptionId:g.id,errorMessageId:b.id,validationBehavior:i}),{radioGroupProps:ie(y,{role:"radiogroup",onKeyDown:x,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":n||void 0,"aria-required":o||void 0,"aria-disabled":a||void 0,"aria-orientation":s,...h,...P}),labelProps:p,descriptionProps:g,errorMessageProps:b,isInvalid:c,validationErrors:u,validationDetails:d}}function yy(e){const{as:t,ref:r,classNames:n,children:o,label:a,value:s,name:i,size:l="md",color:c="primary",isDisabled:u=!1,disableAnimation:d=!1,orientation:p="vertical",isRequired:h=!1,validationState:g,isInvalid:b=g==="invalid",isReadOnly:y,errorMessage:P,description:x,className:C,onChange:S,onValueChange:$,...N}=e,j=t||"div",m=nt(r),D=f.useMemo(()=>({...N,value:s,name:i,"aria-label":ks(N["aria-label"],a),isRequired:h,isReadOnly:y,isInvalid:b,orientation:p,onChange:$}),[N,s,i,a,h,y,b,p,$]),I=gy(D),{labelProps:T,radioGroupProps:k,errorMessageProps:w,descriptionProps:M}=by(D,I),O=f.useMemo(()=>({size:l,color:c,groupState:I,isRequired:h,isInvalid:b,isDisabled:u,disableAnimation:d,onChange:S}),[l,c,h,u,b,S,d,I.name,I==null?void 0:I.isDisabled,I==null?void 0:I.isReadOnly,I==null?void 0:I.isRequired,I==null?void 0:I.selectedValue,I==null?void 0:I.lastFocusedValue]),F=f.useMemo(()=>jm({isRequired:h,isInvalid:b,disableAnimation:d}),[b,h,d]),E=me(n==null?void 0:n.base,C),V=f.useCallback(()=>({ref:m,className:F.base({class:E}),...ie(k,N)}),[m,F,E,k,N]),H=f.useCallback(()=>({className:F.label({class:n==null?void 0:n.label}),...T}),[F,n==null?void 0:n.label,T,n==null?void 0:n.label]),R=f.useCallback(()=>({className:F.wrapper({class:n==null?void 0:n.wrapper}),role:"presentation","data-orientation":p}),[F,n==null?void 0:n.wrapper,p,F.wrapper]),W=f.useCallback((U={})=>({...U,...M,className:F.description({class:me(n==null?void 0:n.description,U==null?void 0:U.className)})}),[F,n==null?void 0:n.description,M,F.description]),ee=f.useCallback((U={})=>({...U,...w,className:F.errorMessage({class:me(n==null?void 0:n.errorMessage,U==null?void 0:U.className)})}),[F,n==null?void 0:n.errorMessage,w]);return{Component:j,children:o,label:a,context:O,errorMessage:P,description:x,getGroupProps:V,getLabelProps:H,getWrapperProps:R,getDescriptionProps:W,getErrorMessageProps:ee}}var[xy,wy]=Ro({name:"RadioGroupContext",strict:!1}),p1=vt((e,t)=>{const{Component:r,children:n,label:o,context:a,description:s,errorMessage:i,getGroupProps:l,getLabelProps:c,getWrapperProps:u,getDescriptionProps:d,getErrorMessageProps:p}=yy({...e,ref:t});return L.jsxs(r,{...l(),children:[o&&L.jsx("span",{...c(),children:o}),L.jsx("div",{...u(),children:L.jsx(xy,{value:a,children:n})}),i?L.jsx("div",{...p(),children:i}):s?L.jsx("div",{...d(),children:s}):null]})});p1.displayName="NextUI.RadioGroup";var Cy=p1;function Py(e){var t,r,n,o;const a=wy(),{as:s,ref:i,classNames:l,id:c,value:u,children:d,description:p,size:h=(t=a==null?void 0:a.size)!=null?t:"md",color:g=(r=a==null?void 0:a.color)!=null?r:"primary",isDisabled:b=(n=a==null?void 0:a.isDisabled)!=null?n:!1,disableAnimation:y=(o=a==null?void 0:a.disableAnimation)!=null?o:!1,onChange:P=a==null?void 0:a.onChange,autoFocus:x=!1,className:C,...S}=e;a&&nu&&("checked"in S&&Bo('Remove props "checked" if in the Radio.Group.',"Radio"),u===void 0&&Bo('Props "value" must be defined if in the Radio.Group.',"Radio"));const $=s||"label",N=nt(i),j=f.useRef(null),m=f.useId(),D=f.useMemo(()=>{var ae;return(ae=a.isRequired)!=null?ae:!1},[a.isRequired]),I=a.isInvalid,T=f.useMemo(()=>{const ae=S["aria-label"]||typeof d=="string"?d:void 0,Z=S["aria-describedby"]||typeof p=="string"?p:void 0;return{id:c,isRequired:D,isDisabled:b,"aria-label":ae,"aria-labelledby":S["aria-labelledby"]||m,"aria-describedby":Z}},[m,c,b,D]),{inputProps:k,isDisabled:w,isSelected:M,isPressed:O}=vy({value:u,children:d,...a,...T},a.groupState,j),{focusProps:F,isFocused:E,isFocusVisible:V}=Mt({autoFocus:x}),H=w||k.readOnly,[R,W]=f.useState(!1),{pressProps:ee}=En({isDisabled:H,onPressStart(ae){ae.pointerType!=="keyboard"&&W(!0)},onPressEnd(ae){ae.pointerType!=="keyboard"&&W(!1)}}),{hoverProps:U,isHovered:re}=mr({isDisabled:H}),X=H?!1:R||O,te=f.useMemo(()=>Nm({color:g,size:h,isInvalid:I,isDisabled:w,disableAnimation:y}),[g,h,w,I,y]),ce=me(l==null?void 0:l.base,C),be=f.useCallback((ae={})=>({...ae,ref:N,className:te.base({class:ce}),"data-disabled":Q(w),"data-focus":Q(E),"data-focus-visible":Q(V),"data-selected":Q(M),"data-invalid":Q(I),"data-hover":Q(re),"data-pressed":Q(X),"data-hover-unselected":Q(re&&!M),"data-readonly":Q(k.readOnly),"aria-required":Q(D),...ie(U,ee,S)}),[te,ce,N,w,E,V,M,I,re,X,k.readOnly,D,S]),pe=f.useCallback((ae={})=>({...ae,"aria-hidden":!0,className:me(te.wrapper({class:me(l==null?void 0:l.wrapper,ae.className)}))}),[te,l==null?void 0:l.wrapper]),fe=f.useCallback((ae={})=>({...ae,ref:j,required:D,...ie(k,F),onChange:dr(k.onChange,P)}),[k,F,D,P]),he=f.useCallback((ae={})=>({...ae,id:m,className:te.label({class:l==null?void 0:l.label})}),[te,l==null?void 0:l.label,w,M,I]),Te=f.useCallback((ae={})=>({...ae,className:te.labelWrapper({class:l==null?void 0:l.labelWrapper})}),[te,l==null?void 0:l.labelWrapper]),Se=f.useCallback((ae={})=>({...ae,className:te.control({class:l==null?void 0:l.control})}),[te,l==null?void 0:l.control]);return{Component:$,children:d,slots:te,classNames:l,description:p,isSelected:M,isDisabled:w,isInvalid:I,isFocusVisible:V,getBaseProps:be,getWrapperProps:pe,getInputProps:fe,getLabelProps:he,getLabelWrapperProps:Te,getControlProps:Se}}var h1=vt((e,t)=>{const{Component:r,children:n,slots:o,classNames:a,description:s,getBaseProps:i,getWrapperProps:l,getInputProps:c,getLabelProps:u,getLabelWrapperProps:d,getControlProps:p}=Py({...e,ref:t});return L.jsxs(r,{...i(),children:[L.jsx($s,{children:L.jsx("input",{...c()})}),L.jsx("span",{...l(),children:L.jsx("span",{...p()})}),L.jsxs("div",{...d(),children:[n&&L.jsx("span",{...u(),children:n}),s&&L.jsx("span",{className:o.description({class:a==null?void 0:a.description}),children:s})]})]})});h1.displayName="NextUI.Radio";var My=h1;function Ty(e,t,r){let{labelProps:n,inputProps:o,isSelected:a,isPressed:s,isDisabled:i,isReadOnly:l}=a1(e,t,r);return{labelProps:n,inputProps:{...o,role:"switch",checked:a},isSelected:a,isPressed:s,isDisabled:i,isReadOnly:l}}function Sy(e={}){const[t,r]=Mn(e,Zc.variantKeys),{ref:n,as:o,name:a,value:s="",isReadOnly:i=!1,autoFocus:l=!1,startContent:c,endContent:u,defaultSelected:d,isSelected:p,children:h,thumbIcon:g,className:b,classNames:y,onChange:P,onValueChange:x,...C}=t,S=o||"label",$=f.useRef(null),N=ou(n,$),j=f.useId(),m=f.useMemo(()=>{const Z=C["aria-label"]||typeof h=="string"?h:void 0;return{name:a,value:s,children:h,autoFocus:l,defaultSelected:d,isSelected:p,isDisabled:!!e.isDisabled,isReadOnly:i,"aria-label":Z,"aria-labelledby":C["aria-labelledby"]||j,onChange:x}},[s,a,j,h,l,i,p,d,e.isDisabled,C["aria-label"],C["aria-labelledby"],x]),D=Fi(m),{inputProps:I,isPressed:T,isReadOnly:k}=Ty(m,D,$),{focusProps:w,isFocused:M,isFocusVisible:O}=Mt({autoFocus:I.autoFocus}),{hoverProps:F,isHovered:E}=mr({isDisabled:I.disabled}),V=m.isDisabled||k,[H,R]=f.useState(!1),{pressProps:W}=En({isDisabled:V,onPressStart(Z){Z.pointerType!=="keyboard"&&R(!0)},onPressEnd(Z){Z.pointerType!=="keyboard"&&R(!1)}}),ee=V?!1:H||T,U=I.checked,re=I.disabled,X=f.useMemo(()=>Zc({...r}),[...Object.values(r)]),te=me(y==null?void 0:y.base,b),ce=Z=>({...ie(F,W,C,Z),ref:N,className:X.base({class:me(te,Z==null?void 0:Z.className)}),"data-disabled":Q(re),"data-selected":Q(U),"data-readonly":Q(k),"data-focus":Q(M),"data-focus-visible":Q(O),"data-hover":Q(E),"data-pressed":Q(ee)}),be=f.useCallback((Z={})=>({...Z,"aria-hidden":!0,className:me(X.wrapper({class:me(y==null?void 0:y.wrapper,Z==null?void 0:Z.className)}))}),[X,y==null?void 0:y.wrapper]),pe=(Z={})=>({...ie(I,w,Z),ref:$,id:I.id,onChange:dr(P,I.onChange)}),fe=f.useCallback((Z={})=>({...Z,className:X.thumb({class:me(y==null?void 0:y.thumb,Z==null?void 0:Z.className)})}),[X,y==null?void 0:y.thumb]),he=f.useCallback((Z={})=>({...Z,id:j,className:X.label({class:me(y==null?void 0:y.label,Z==null?void 0:Z.className)})}),[X,y==null?void 0:y.label,re,U]),Te=f.useCallback((Z={includeStateProps:!1})=>ie({width:"1em",height:"1em",className:X.thumbIcon({class:me(y==null?void 0:y.thumbIcon)})},Z.includeStateProps?{isSelected:U}:{}),[X,y==null?void 0:y.thumbIcon,U]),Se=f.useCallback((Z={})=>({width:"1em",height:"1em",...Z,className:X.startContent({class:me(y==null?void 0:y.startContent,Z==null?void 0:Z.className)})}),[X,y==null?void 0:y.startContent,U]),ae=f.useCallback((Z={})=>({width:"1em",height:"1em",...Z,className:X.endContent({class:me(y==null?void 0:y.endContent,Z==null?void 0:Z.className)})}),[X,y==null?void 0:y.endContent,U]);return{Component:S,slots:X,classNames:y,domRef:N,children:h,thumbIcon:g,startContent:c,endContent:u,isHovered:E,isSelected:U,isPressed:ee,isFocused:M,isFocusVisible:O,isDisabled:re,getBaseProps:ce,getWrapperProps:be,getInputProps:pe,getLabelProps:he,getThumbProps:fe,getThumbIconProps:Te,getStartContentProps:Se,getEndContentProps:ae}}var m1=vt((e,t)=>{const{Component:r,children:n,startContent:o,endContent:a,thumbIcon:s,getBaseProps:i,getInputProps:l,getWrapperProps:c,getThumbProps:u,getThumbIconProps:d,getLabelProps:p,getStartContentProps:h,getEndContentProps:g}=Sy({...e,ref:t}),b=typeof s=="function"?s(d({includeStateProps:!0})):s&&f.cloneElement(s,d()),y=o&&f.cloneElement(o,h()),P=a&&f.cloneElement(a,g());return L.jsxs(r,{...i(),children:[L.jsx($s,{children:L.jsx("input",{...l()})}),L.jsxs("span",{...c(),children:[o&&y,L.jsx("span",{...u(),children:s&&b}),a&&P]}),n&&L.jsx("span",{...p(),children:n})]})});m1.displayName="NextUI.Switch";var Ey=m1;function $y(e={}){const{rerender:t=!1,delay:r=0}=e,n=f.useRef(!1),[o,a]=f.useState(!1);return f.useEffect(()=>{n.current=!0;let s=null;return t&&(r>0?s=setTimeout(()=>{a(!0)},r):a(!0)),()=>{n.current=!1,t&&a(!1),s&&clearTimeout(s)}},[t]),[f.useCallback(()=>n.current,[]),o]}function Dy(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:a=!1,type:s="text",validationBehavior:i="aria"}=e,[l,c]=Lr(e.value,e.defaultValue||"",e.onChange),{focusableProps:u}=Vo(e,t),d=va({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:g}=d.displayValidation,{labelProps:b,fieldProps:y,descriptionProps:P,errorMessageProps:x}=s1({...e,isInvalid:p,errorMessage:e.errorMessage||h}),C=Fr(e,{labelable:!0});const S={type:s,pattern:e.pattern};return fs(t,l,c),Ni(e,d,t),f.useEffect(()=>{if(t.current instanceof xn(t.current).HTMLTextAreaElement){let $=t.current;Object.defineProperty($,"defaultValue",{get:()=>$.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:ie(C,r==="input"&&S,{disabled:n,readOnly:a,required:o&&i==="native","aria-required":o&&i==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:$=>c($.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...y}),descriptionProps:P,errorMessageProps:x,isInvalid:p,validationErrors:h,validationDetails:g}}function Iy(e){const[t,r]=Mn(e,Jc.variantKeys),{ref:n,as:o,label:a,baseRef:s,wrapperRef:i,description:l,errorMessage:c,className:u,classNames:d,autoFocus:p,startContent:h,endContent:g,onClear:b,onChange:y,validationState:P,innerWrapperRef:x,onValueChange:C=()=>{},...S}=t,$=f.useCallback(ue=>{C(ue??"")},[C]),[N,j]=Lr(t.value,t.defaultValue,$),[m,D]=f.useState(!1),I=o||"div",T=!!N,k=T||m,w=me(d==null?void 0:d.base,u,T?"is-filled":""),M=e.isMultiline,O=nt(n),F=nt(s),E=nt(i),V=nt(x),H=f.useCallback(()=>{j(""),O.current&&(O.current.value="",O.current.focus()),b==null||b()},[O,j,b]),{labelProps:R,inputProps:W,descriptionProps:ee,errorMessageProps:U}=Dy({...e,"aria-label":ks(e==null?void 0:e["aria-label"],e==null?void 0:e.label,e==null?void 0:e.placeholder),inputElementType:M?"textarea":"input",onChange:j},O),{isFocusVisible:re,isFocused:X,focusProps:te}=Mt({autoFocus:p,isTextInput:!0}),{isHovered:ce,hoverProps:be}=mr({isDisabled:!!(e!=null&&e.isDisabled)}),{focusProps:pe,isFocusVisible:fe}=Mt(),{focusWithinProps:he}=Lo({onFocusWithinChange:D}),{pressProps:Te}=fr({isDisabled:!!(e!=null&&e.isDisabled),onPress:H}),Se=P==="invalid"||e.isInvalid,ae=f.useMemo(()=>{var ue;return(!e.labelPlacement||e.labelPlacement==="inside")&&!a?"outside":(ue=e.labelPlacement)!=null?ue:"inside"},[e.labelPlacement,a]),Z=!!b||e.isClearable,Oe=!!a||!!l||!!c,_e=!!t.placeholder,Fe=!!a,Ie=!!l||!!c,It=ae==="outside"||ae==="outside-left",mt=ae==="inside",et=O.current?(!O.current.value||O.current.value===""||!N||N==="")&&_e:!1,Ir=ae==="outside-left",qe=!!h,Qe=It?ae==="outside-left"||_e||ae==="outside"&&qe:!1,kr=ae==="outside"&&!_e&&!qe,xe=f.useMemo(()=>Jc({...r,isInvalid:Se,isClearable:Z}),[...Object.values(r),Se,Z,qe]),co=f.useCallback((ue={})=>({ref:F,className:xe.base({class:w}),"data-slot":"base","data-filled":Q(T||_e||qe||et),"data-filled-within":Q(k||_e||qe||et),"data-focus-within":Q(m),"data-focus-visible":Q(re),"data-readonly":Q(e.isReadOnly),"data-focus":Q(X),"data-hover":Q(ce),"data-required":Q(e.isRequired),"data-invalid":Q(Se),"data-disabled":Q(e.isDisabled),"data-has-elements":Q(Oe),"data-has-helper":Q(Ie),"data-has-label":Q(Fe),"data-has-value":Q(!et),...he,...ue}),[xe,w,T,X,ce,Se,Ie,Fe,Oe,et,qe,m,re,k,_e,he,e.isReadOnly,e.isRequired,e.isDisabled]),Ar=f.useCallback((ue={})=>({"data-slot":"label",className:xe.label({class:d==null?void 0:d.label}),...R,...ue}),[xe,R,d==null?void 0:d.label]),Or=f.useCallback((ue={})=>({ref:O,"data-slot":"input","data-filled":Q(T),"data-filled-within":Q(k),"data-has-start-content":Q(qe),"data-has-end-content":Q(!!g),className:xe.input({class:me(d==null?void 0:d.input,N?"is-filled":"")}),...ie(te,W,Sn(S,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(W))}),ue),required:e.isRequired,"aria-readonly":Q(e.isReadOnly),"aria-required":Q(e.isRequired),onChange:dr(W.onChange,y)}),[xe,N,te,W,S,T,k,qe,g,d==null?void 0:d.input,e.isReadOnly,e.isRequired,y]),Ht=f.useCallback((ue={})=>({ref:E,"data-slot":"input-wrapper","data-hover":Q(ce),"data-focus-visible":Q(re),"data-focus":Q(X),className:xe.inputWrapper({class:me(d==null?void 0:d.inputWrapper,N?"is-filled":"")}),...ie(ue,be),onClick:ct=>{O.current&&ct.currentTarget===ct.target&&O.current.focus()},style:{cursor:"text",...ue.style}}),[xe,ce,re,X,N,d==null?void 0:d.inputWrapper]),uo=f.useCallback((ue={})=>({...ue,ref:V,"data-slot":"inner-wrapper",onClick:ct=>{O.current&&ct.currentTarget===ct.target&&O.current.focus()},className:xe.innerWrapper({class:me(d==null?void 0:d.innerWrapper,ue==null?void 0:ue.className)})}),[xe,d==null?void 0:d.innerWrapper]),fo=f.useCallback((ue={})=>({...ue,"data-slot":"main-wrapper",className:xe.mainWrapper({class:me(d==null?void 0:d.mainWrapper,ue==null?void 0:ue.className)})}),[xe,d==null?void 0:d.mainWrapper]),po=f.useCallback((ue={})=>({...ue,"data-slot":"helper-wrapper",className:xe.helperWrapper({class:me(d==null?void 0:d.helperWrapper,ue==null?void 0:ue.className)})}),[xe,d==null?void 0:d.helperWrapper]),ho=f.useCallback((ue={})=>({...ue,...ee,"data-slot":"description",className:xe.description({class:me(d==null?void 0:d.description,ue==null?void 0:ue.className)})}),[xe,d==null?void 0:d.description]),mo=f.useCallback((ue={})=>({...ue,...U,"data-slot":"error-message",className:xe.errorMessage({class:me(d==null?void 0:d.errorMessage,ue==null?void 0:ue.className)})}),[xe,U,d==null?void 0:d.errorMessage]),go=f.useCallback((ue={})=>({...ue,role:"button",tabIndex:0,"data-slot":"clear-button","data-focus-visible":Q(fe),className:xe.clearButton({class:me(d==null?void 0:d.clearButton,ue==null?void 0:ue.className)}),...ie(Te,pe)}),[xe,fe,Te,pe,d==null?void 0:d.clearButton]);return{Component:I,classNames:d,domRef:O,label:a,description:l,startContent:h,endContent:g,labelPlacement:ae,isClearable:Z,isInvalid:Se,hasHelper:Ie,hasStartContent:qe,isLabelOutside:Qe,isOutsideLeft:Ir,isLabelOutsideAsPlaceholder:kr,shouldLabelBeOutside:It,shouldLabelBeInside:mt,hasPlaceholder:_e,errorMessage:c,getBaseProps:co,getLabelProps:Ar,getInputProps:Or,getMainWrapperProps:fo,getInputWrapperProps:Ht,getInnerWrapperProps:uo,getHelperWrapperProps:po,getDescriptionProps:ho,getErrorMessageProps:mo,getClearButtonProps:go}}var ya="right-scroll-bar-position",xa="width-before-scroll-bar",ky="with-scroll-bars-hidden",Ay="--removed-body-scroll-bar-size";function Oy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ny(e,t){var r=f.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function jy(e,t){return Ny(t||null,function(r){return e.forEach(function(n){return Oy(n,r)})})}function Ly(e){return e}function _y(e,t){t===void 0&&(t=Ly);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var l=function(){var u=s;s=[],u.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),r}}}};return o}function Fy(e){e===void 0&&(e={});var t=_y(null);return t.options=Pt({async:!0,ssr:!1},e),t}var g1=function(e){var t=e.sideCar,r=Ic(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return G.createElement(n,Pt({},r))};g1.isSideCarExport=!0;function Vy(e,t){return e.useMedium(t),g1}var v1,zy=function(){if(v1)return v1;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Wy(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zy();return t&&e.setAttribute("nonce",t),e}function By(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ry(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ky=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Wy())&&(By(t,r),Ry(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Uy=function(){var e=Ky();return function(t,r){G.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},b1=function(){var e=Uy(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Hy={left:0,top:0,right:0,gap:0},zi=function(e){return parseInt(e||"",10)||0},Yy=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[zi(r),zi(n),zi(o)]},Gy=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Hy;var t=Yy(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},qy=b1(),Qy=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
36
|
+
.`.concat(ky,` {
|
|
37
37
|
overflow: hidden `).concat(n,`;
|
|
38
38
|
padding-right: `).concat(i,"px ").concat(n,`;
|
|
39
39
|
}
|
|
@@ -67,12 +67,12 @@ Check the top-level render call using <`+_+">.")}return A}}function xo(v,A){{if(
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
body {
|
|
70
|
-
`).concat(
|
|
70
|
+
`).concat(Ay,": ").concat(i,`px;
|
|
71
71
|
}
|
|
72
|
-
`)},X5=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,a=G.useMemo(function(){return G5(o)},[o]);return G.createElement(q5,{styles:Q5(a,!t,o,r?"":"!important")})};const yp=new WeakMap;function wa(e,t,r){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${yp.get(e)}-${r}-${t}`}function Z5(e,t,r){var n;let{key:o,isDisabled:a,shouldSelectOnPressUp:s}=e,{selectionManager:i,selectedKey:l}=t,c=o===l,u=a||t.isDisabled||t.disabledKeys.has(o),{itemProps:d,isPressed:p}=Xm({selectionManager:i,key:o,ref:r,isDisabled:u,shouldSelectOnPressUp:s,linkBehavior:"selection"}),h=wa(t,o,"tab"),g=wa(t,o,"tabpanel"),{tabIndex:b}=d,y=t.collection.getItem(o),P=Fr(y==null?void 0:y.props,{isLink:!!(!(y==null||(n=y.props)===null||n===void 0)&&n.href),labelable:!0});return delete P.id,{tabProps:ie(P,d,{id:h,"aria-selected":c,"aria-disabled":u||void 0,"aria-controls":c?g:void 0,tabIndex:u?void 0:b,role:"tab"}),isSelected:c,isDisabled:u,isPressed:p}}function J5(e,t,r){let n=Pm(r)?void 0:0;var o;const a=wa(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),s=cs({...e,id:a,"aria-labelledby":wa(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:ie(s,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class e4{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}getKeyAbove(t){return this.getPreviousKey(t)}getKeyBelow(t){return this.getNextKey(t)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getPreviousKey(t)),t}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.disabledKeys.has(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.disabledKeys.has(t));return t}constructor(t,r,n,o=new Set){this.collection=t,this.flipDirection=r==="rtl"&&n==="horizontal",this.disabledKeys=o}}function t4(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:a,selectionManager:s,disabledKeys:i}=t,{direction:l}=hs(),c=f.useMemo(()=>new e4(a,l,n,i),[a,i,n,l]),{collectionProps:u}=Qm({ref:r,selectionManager:s,keyboardDelegate:c,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=_r();yp.set(t,d);let p=cs({...e,id:d});return{tabListProps:{...ie(u,p),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var xp=vt((e,t)=>{var r,n,o;const{as:a,state:s,className:i,slots:l,classNames:c,...u}=e,d=a||"div",p=nt(t),{tabPanelProps:h}=J5(e,s,p),{focusProps:g,isFocused:b,isFocusVisible:y}=Mt(),P=s.selectedItem,x=(r=P==null?void 0:P.props)==null?void 0:r.children,C=me(c==null?void 0:c.panel,i,(n=P==null?void 0:P.props)==null?void 0:n.className);return x?L.jsx(d,{ref:p,"data-focus":b,"data-focus-visible":y,...ie(h,g,u),className:(o=l.panel)==null?void 0:o.call(l,{class:C}),"data-slot":"panel",children:x}):null});xp.displayName="NextUI.TabPanel";var r4=xp,wp=vt((e,t)=>{var r;const{className:n,as:o,item:a,state:s,classNames:i,isDisabled:l,listRef:c,slots:u,motionProps:d,disableAnimation:p,disableCursorAnimation:h,shouldSelectOnPressUp:g,onClick:b,...y}=e,{key:P}=a,x=nt(t),C=o||(e.href?"a":"button"),S=typeof C=="string",{tabProps:$,isSelected:N,isDisabled:j,isPressed:m}=Z5({key:P,isDisabled:l,shouldSelectOnPressUp:g},s,x),D=l||j,{focusProps:I,isFocused:T,isFocusVisible:k}=Mt(),{hoverProps:w,isHovered:M}=mr({isDisabled:D}),O=me(i==null?void 0:i.tab,n),[,F]=$5({rerender:!0}),E=()=>{dr(b,$.onClick),!(!(x!=null&&x.current)||!(c!=null&&c.current))&&p5(x.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:c==null?void 0:c.current})};return L.jsxs(C,{ref:x,"data-disabled":Q(j),"data-focus":Q(T),"data-focus-visible":Q(k),"data-hover":Q(M),"data-hover-unselected":Q((M||m)&&!N),"data-pressed":Q(m),"data-selected":Q(N),"data-slot":"tab",...ie($,D?{}:{...I,...w},Sn(y,{enabled:S,omitPropNames:new Set(["title"])})),className:(r=u.tab)==null?void 0:r.call(u,{class:O}),title:y==null?void 0:y.titleValue,type:C==="button"?"button":void 0,onClick:E,children:[N&&!p&&!h&&F?L.jsx(Wf.span,{className:u.cursor({class:i==null?void 0:i.cursor}),"data-slot":"cursor",layoutDependency:!1,layoutId:"cursor",transition:{type:"spring",bounce:.15,duration:.5},...d}):null,L.jsx("div",{className:u.tabContent({class:i==null?void 0:i.tabContent}),"data-slot":"tabContent",children:a.rendered})]})});wp.displayName="NextUI.Tab";var n4=wp;class Cp{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return(r==null?void 0:r.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let s of a.childNodes)r(s)};for(let a of t)r(a);let n,o=0;for(let[a,s]of this.keyMap)n?(n.nextKey=a,s.prevKey=n.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),n=s,n.nextKey=void 0;this.lastKey=n==null?void 0:n.key}}function o4(e){let{filter:t}=e,r=Ay(e),n=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=f.useCallback(c=>t?new Cp(t(c)):new Cp(c),[t]),a=f.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=Ey(e,o,a),i=f.useMemo(()=>new Oy(s,r),[s,r]);const l=f.useRef(null);return f.useEffect(()=>{if(r.focusedKey!=null&&!s.getItem(r.focusedKey)){const c=l.current.getItem(r.focusedKey),u=[...l.current.getKeys()].map(b=>{const y=l.current.getItem(b);return y.type==="item"?y:null}).filter(b=>b!==null),d=[...s.getKeys()].map(b=>{const y=s.getItem(b);return y.type==="item"?y:null}).filter(b=>b!==null),p=u.length-d.length;let h=Math.min(p>1?Math.max(c.index-p+1,0):c.index,d.length-1),g;for(;h>=0;){if(!i.isDisabled(d[h].key)){g=d[h];break}h<d.length-1?h++:(h>c.index&&(h=c.index),h--)}r.setFocusedKey(g?g.key:null)}l.current=s},[s,i,r,r.focusedKey]),{collection:s,disabledKeys:n,selectionManager:i}}function a4(e){var t;let[r,n]=Lr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=f.useMemo(()=>r!=null?[r]:[],[r]),{collection:a,disabledKeys:s,selectionManager:i}=o4({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{var u;let d=(u=c.values().next().value)!==null&&u!==void 0?u:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),l=r!=null?a.getItem(r):null;return{collection:a,disabledKeys:s,selectionManager:i,selectedKey:r,setSelectedKey:n,selectedItem:l}}function s4(e){var t;let r=a4({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:Pp(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:n,collection:o,selectedKey:a}=r,s=f.useRef(a);return f.useEffect(()=>{let i=a;(n.isEmpty||!o.getItem(i))&&(i=Pp(o,r.disabledKeys),i!=null&&n.setSelectedKeys([i])),(i!=null&&n.focusedKey==null||!n.isFocused&&i!==s.current)&&n.setFocusedKey(i),s.current=i}),{...r,isDisabled:e.isDisabled||!1}}function Pp(e,t){let r=null;if(e){for(r=e.getFirstKey();t.has(r)&&r!==e.getLastKey();)r=e.getKeyAfter(r);t.has(r)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}function i4(e){const[t,r]=Mn(e,Xc.variantKeys),{ref:n,as:o,className:a,classNames:s,children:i,disableCursorAnimation:l,shouldSelectOnPressUp:c=!0,motionProps:u,...d}=t,p=o||"div",h=typeof p=="string",g=nt(n),b=s4({children:i,...d}),{tabListProps:y}=t4(d,b,g),P=f.useMemo(()=>Xc({...r,className:a}),[...Object.values(r),a]),x=me(s==null?void 0:s.base,a),C=f.useMemo(()=>({state:b,slots:P,classNames:s,motionProps:u,listRef:g,shouldSelectOnPressUp:c,disableCursorAnimation:l,isDisabled:e==null?void 0:e.isDisabled,disableAnimation:e==null?void 0:e.disableAnimation}),[b,P,g,u,l,c,e==null?void 0:e.disableAnimation,e==null?void 0:e.isDisabled,s]),S=f.useCallback(N=>({"data-slot":"base",className:P.base({class:me(x,N==null?void 0:N.className)}),...ie(Sn(d,{enabled:h}),N)}),[x,d,P]),$=f.useCallback(N=>({ref:g,"data-slot":"tabList",className:P.tabList({class:me(s==null?void 0:s.tabList,N==null?void 0:N.className)}),...ie(y,N)}),[g,y,s,P]);return{Component:p,domRef:g,state:b,values:C,getBaseProps:S,getTabListProps:$}}function Mp(e,t){var r;const{Component:n,values:o,state:a,getBaseProps:s,getTabListProps:i}=i4({...e,ref:t}),l=f.useId(),c=!e.disableAnimation&&!e.disableCursorAnimation,u={state:a,listRef:o.listRef,slots:o.slots,classNames:o.classNames,isDisabled:o.isDisabled,motionProps:o.motionProps,disableAnimation:o.disableAnimation,shouldSelectOnPressUp:o.shouldSelectOnPressUp,disableCursorAnimation:o.disableCursorAnimation},d=[...a.collection].map(p=>L.jsx(n4,{item:p,...u,...p.props},p.key));return L.jsxs(L.Fragment,{children:[L.jsx("div",{...s(),children:L.jsx(n,{...i(),children:c?L.jsx(Cy,{id:l,children:d}):d})}),L.jsx(r4,{classNames:o.classNames,slots:o.slots,state:o.state},(r=a.selectedItem)==null?void 0:r.key)]})}var l4=vt(Mp);Mp.displayName="NextUI.Tabs";var c4=My,u4=c4;const d4=({icons:e,className:t})=>{const r=we({base:"bg-primary-grey-700",variants:{withIcon:{false:"h-6 w-11 px-[2px] group-data-[selected=true]:bg-secondary-green-500",true:"h-[52px] w-[88px] bg-secondary-green-500 group-data-[selected=true]:bg-primary-green-500"}}}),n=we({variants:{withIcon:{false:"h-5 w-5 group-data-[selected=true]:ml-5",true:"h-11 w-11 group-data-[selected=true]:ml-9"}}});return L.jsx(E5,{classNames:{wrapper:r({withIcon:!!e,className:t}),thumb:n({withIcon:!!e})},thumbIcon:({isSelected:o,className:a})=>e&&(o?L.jsx(Ue,{name:e.selectedIcon,className:Gt(a,"text-lg")}):L.jsx(Ue,{name:e.unselectedIcon,className:Gt(a,"text-lg")}))})},f4=e=>L.jsx(u5,{classNames:{wrapper:"w-4 h-4 rounded-sm before:rounded-sm before:border before:border-primary-grey-700 after:rounded-sm after:bg-secondary-green-500",icon:"w-[11px] h-2.5 [&>*]:stroke-[4px]"},...e}),Tp=({size:e="md",className:t,border:r=!1,image:n,label:o,...a})=>{const s=we({base:"bg-white font-satoshi font-bold capitalize text-white",variants:{size:{lg:"h-28 w-28 text-[48px]",md:"h-[72px] w-[72px] text-[32px]",sm:"h-12 w-12 text-[24px]",xs:"h-6 w-6 text-[12px]"},border:{true:"border-primary-grey-600"},isText:{true:"bg-complementary-violet-500 "}},compoundVariants:[{border:!0,size:"lg",class:"border-[4px]"},{border:!0,size:"md",class:"border-[3px]"},{border:!0,size:"sm",class:"border-2"},{border:!0,size:"xs",class:"border"}]}),i=we({base:"text-primary-grey-600",variants:{size:{xs:"text-[12px]",sm:"text-[24px]",md:"text-[32px]",lg:"text-[48px]"}}});return L.jsx(Vy,{fallback:!o&&L.jsx(Ue,{name:"user",className:i({size:e})}),showFallback:!!o,src:n,name:o,className:s({size:e,border:r,isText:!!(o&&!n),className:t}),...a})},p4=({options:e,labelPosition:t="right",orientation:r="vertical"})=>L.jsx(C5,{orientation:r,children:e.map(n=>L.jsxs("div",{className:"flex items-center gap-2",children:[t==="left"&&L.jsx("label",{"data-testid":"label-position-left",children:n.label}),L.jsx(M5,{value:n.value,id:n.id,classNames:{wrapper:"border border-primary-grey-700 group-data-[selected=true]:border-secondary-green-500 group-data-[selected=true]:bg-secondary-green-500",control:"bg-white"}}),t==="right"&&n.label&&L.jsx("label",{"data-testid":"label-position-right",children:n.label})]},n.value))}),Wi=({children:e,size:t,variant:r="primary",disabled:n,full:o=!1,iconLeft:a,iconRight:s,className:i,isLoadingComplete:l,isLoading:c,...u})=>{const[d,p]=f.useState("w-0"),h=f.useRef(null);f.useEffect(()=>{if(c){let y=2;p("w-1/4"),h.current=setInterval(()=>{p(`w-${y}/4`),y<3?y++:h.current&&clearInterval(h.current)},1e3)}else h.current&&clearInterval(h.current),p("w-0")},[c]);const g=we({base:`absolute left-0 top-0 h-full rounded-full bg-transparent duration-1000 ease-in-out ${d}`,variants:{isLoadingComplete:{true:"w-full duration-500",false:""},loadingVariant:{primaryDark:"bg-white",primaryLight:"bg-primary-green-500 ",primary:"bg-primary-green-500 ",negative:"bg-complementary-red-700",secondaryNegative:"bg-complementary-red-50",secondary:"bg-secondary-green-50",tertiary:"",tertiaryDark:"",tertiaryLight:"",direction:"",directionCircle:"",icon:""}}}),b=we({base:"relative !overflow-hidden rounded-full border-transparent px-10 py-4 font-bold text-white !ring-0 !ring-transparent hover:text-white focus:outline focus:outline-2 focus:-outline-offset-4 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-4 focus-visible:outline-white",variants:{size:{small:"h-9",medium:"h-12",large:"h-14"},variant:{primaryDark:"bg-white text-primary-green-500 hover:bg-secondary-green-500 focus:bg-secondary-green-500 focus:text-white focus:outline-primary-green-500",primaryLight:"bg-primary-green-500 hover:bg-white hover:text-secondary-green-500 focus:bg-white focus:text-secondary-green-500 focus:outline-secondary-green-500",primary:"bg-primary-green-500 hover:bg-secondary-green-500 focus:bg-secondary-green-500 focus:outline-white",negative:"bg-complementary-red-700 hover:border-transparent hover:bg-complementary-red-500 focus:bg-complementary-red-500 focus:outline-white",secondaryNegative:"border border-complementary-red-700 !bg-white font-medium text-complementary-red-700 hover:border-2 hover:border-complementary-red-500 hover:text-complementary-red-500 focus:border-[3px] focus:border-complementary-red-500 focus:text-complementary-red-500",secondary:"border border-primary-green-500 !bg-transparent font-medium text-primary-green-500 hover:border-2 hover:border-secondary-green-500 hover:text-secondary-green-500 focus:border-[3px] focus:border-secondary-green-500 focus:text-secondary-green-500",tertiary:"!bg-transparent px-4 font-medium text-primary-green-500 hover:text-secondary-green-500 focus:font-bold focus:text-secondary-green-500 focus:outline-none",tertiaryDark:"!bg-transparent px-4 font-medium text-secondary-green-500 focus:font-bold focus:text-secondary-green-500 focus:outline-none",tertiaryLight:"!bg-transparent px-4 font-medium text-primary-green-500 focus:font-bold focus:text-primary-green-500 focus:outline-none",direction:"h-10 bg-primary-green-500 p-2.5 font-medium hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none",directionCircle:"font:medium !min-w-unit-10 bg-primary-green-500 !px-0 hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none",icon:"!min-w-unit-10 bg-transparent !px-0 text-primary-green-500 hover:text-secondary-green-500"},full:{true:"w-full",false:""},disabled:{true:"",false:""},isLoading:{true:"",false:""},hasIcon:{true:"!px-6"}},compoundVariants:[{disabled:!0,isLoading:!1,class:"pointer-events-none border-transparent bg-primary-grey-500 font-medium text-primary-grey-700"},{variant:"primaryDark",isLoading:!0,class:"!bg-secondary-green-500 !text-primary-green-500 focus:bg-secondary-green-500 focus:outline-secondary-green-500"},{variant:"primaryLight",isLoading:!0,class:"!bg-white text-secondary-green-500 focus:outline-white"},{variant:"primary",isLoading:!0,class:"!bg-secondary-green-500 focus:outline-secondary-green-500"},{variant:"negative",isLoading:!0,class:"!bg-complementary-red-500 focus:outline-complementary-red-500"},{variant:"secondaryNegative",isLoading:!0,class:"!border !border-complementary-red-700 !bg-white text-complementary-red-700 focus:outline-none"},{variant:"secondary",isLoading:!0,class:"!border !border-secondary-green-500 !bg-white text-secondary-green-500 focus:outline-none"},{variant:"tertiary",isLoading:!0,class:"!font-medium"},{variant:"tertiaryDark",isLoading:!0,class:"!font-medium"},{variant:"tertiaryLight",isLoading:!0,class:"!font-medium"},{variant:"secondaryNegative",disabled:!0,class:"border border-primary-grey-700 bg-transparent"},{variant:"secondary",disabled:!0,class:"border border-primary-grey-700 bg-transparent"},{variant:"tertiary",disabled:!0,class:"bg-transparent underline"},{variant:"icon",disabled:!0,class:"bg-transparent"},{variant:"directionCircle",hasIcon:!0,class:"!min-w-unit-10 !px-0"}]});return f.useEffect(()=>()=>{h.current&&clearInterval(h.current)},[h]),L.jsx(Gy,{disabled:c||n,className:Gt(i,b({size:t,variant:r,disabled:n,full:o,isLoading:c,hasIcon:!!(a||s)})),...u,children:L.jsxs("div",{children:[L.jsx("div",{className:Gt(g({isLoadingComplete:l,loadingVariant:r}))}),L.jsxs("div",{className:"relative flex items-center gap-3 text-center",children:[a&&(typeof a=="string"?L.jsx(Ue,{"data-testid":"button-component-icon-left",name:a}):a),e&&L.jsx("span",{className:r.includes("tertiary")?"underline":"",children:e}),s&&(typeof s=="string"?L.jsx(Ue,{"data-testid":"button-component-icon-right",name:s}):s)]})]})})},h4=({children:e,className:t,avatar:r,size:n="sm",disabled:o=!1,iconLeft:a,iconRight:s})=>{const i=we({base:"flex h-6 cursor-pointer items-center justify-center gap-2 border border-primary-green-500 bg-white px-2 pt-[1px] font-satoshi text-[10px] font-medium leading-[15px] text-primary-green-500 hover:border-secondary-green-500 hover:text-secondary-green-500 active:border-[2px] active:px-[7px]",variants:{size:{sm:"",lg:"h-[54px] gap-3 px-4 text-base active:px-[15px]"},hasAvatar:{true:"!border-0 bg-primary-grey-600 pl-6"},disabled:{true:"cursor-default !border-1 !border-primary-grey-500 bg-primary-grey-500 !text-primary-grey-800"}},compoundVariants:[{size:"sm",hasAvatar:!0,class:"pl-6 active:pl-[24px] active:pr-[8px]"},{size:"lg",hasAvatar:!0,class:"pl-14 active:pl-[56px] active:pr-[16px]"},{size:"sm",disabled:!0,class:"active:px-[8px]"},{size:"lg",disabled:!0,class:"active:px-[16px]"}]}),l=we({base:"absolute left-0 top-0",variants:{size:{sm:"",lg:"h-[54px] w-[54px]"}}}),c=we({base:"text-xs",variants:{size:{sm:"",lg:"text-lg"}}});return L.jsxs(tp,{size:n,className:Gt(i({hasAvatar:!!r,size:n,disabled:o,className:t})),startContent:a&&(typeof a=="string"?L.jsx(Ue,{className:c({size:n}),name:a}):a),endContent:s&&(typeof s=="string"?L.jsx(Ue,{className:c({size:n}),name:s}):s),children:[r&&L.jsx(Tp,{className:l({size:n}),border:!1,size:"xs",image:r}),e]})},m4=({tabs:e,tabClass:t,size:r="md",onSelectionChange:n,...o})=>{const a=we({base:"bg-primary-grey-500 p-[1px]",variants:{size:{sm:"h-8",md:"h-9",lg:"h-12"}}}),s=we({base:"h-full font-medium text-primary-grey-800 data-[selected=true]:!font-bold data-[selected=true]:!text-primary-green-500 data-[hover='true']:opacity-100",variants:{size:{sm:"px-[40px]",md:"px-[80px]",lg:"px-[75px]"},tabClass:{}}}),i=we({base:"!text-white shadow-none"}),l=we({base:"!font-inherit flex items-center gap-2 font-satoshi !text-inherit",variants:{size:{sm:"text-[14px]",md:"text-[14px]",lg:"text-[20px]"}}});return L.jsx(l4,{onClick:c=>{const u=c.target,d=u.parentElement.getAttribute("data-selected");let p=u.getAttribute("data-key");p||(p=u.parentElement.getAttribute("data-key")),!d&&p&&n(p)},classNames:{tabList:a({size:r}),tab:s({size:r,className:t}),cursor:i(),tabContent:l({size:r})},radius:"full",size:r,...o,children:e.map(({key:c,title:u,component:d,icon:p})=>L.jsx(u4,{title:L.jsxs(L.Fragment,{children:[p&&(typeof p=="string"?L.jsx(Ue,{className:"text-[16px]",name:p}):p)," ",u]}),children:d},c))})},Sp=({message:e,actions:t,inlineActions:r=!0})=>{const n=we({base:"flex gap-3 rounded-lg bg-primary-black-400 p-4",variants:{inlineActions:{true:"flex flex-row",false:"flex flex-col items-end justify-end"},toastType:{alert:"rounded-2xl bg-primary-grey-600",snackbar:"bg-primary-black-400",banner:"rounded-2xl bg-complementary-red-500"}}});return L.jsxs("div",{className:n({inlineActions:r}),children:[L.jsx("div",{className:"flex flex-1 items-center gap-4",children:L.jsx("p",{className:"font-satoshi text-sm",children:e})}),L.jsx("div",{children:t&&L.jsx("div",{className:"flex",children:t.map(({label:o,onClick:a})=>L.jsx(Wi,{onClick:a,variant:"tertiaryDark",children:o},o))})})]})};function Ep(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ep(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function nr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ep(e))&&(n&&(n+=" "),n+=t);return n}const Kn=e=>typeof e=="number"&&!isNaN(e),Tr=e=>typeof e=="string",at=e=>typeof e=="function",Ca=e=>Tr(e)||at(e)?e:null,Bi=e=>f.isValidElement(e)||Tr(e)||at(e)||Kn(e);function g4(e,t,r){r===void 0&&(r=300);const{scrollHeight:n,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}function Un(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(s){let{children:i,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:p,playToast:h}=s;const g=n?`${t}--${l}`:t,b=n?`${r}--${l}`:r,y=f.useRef(0);return f.useLayoutEffect(()=>{const P=d.current,x=g.split(" "),C=S=>{S.target===d.current&&(h(),P.removeEventListener("animationend",C),P.removeEventListener("animationcancel",C),y.current===0&&S.type!=="animationcancel"&&P.classList.remove(...x))};P.classList.add(...x),P.addEventListener("animationend",C),P.addEventListener("animationcancel",C)},[]),f.useEffect(()=>{const P=d.current,x=()=>{P.removeEventListener("animationend",x),o?g4(P,u,a):u()};p||(c?x():(y.current=1,P.className+=` ${b}`,P.addEventListener("animationend",x)))},[p]),f.createElement(f.Fragment,null,i)}}function $p(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Ye=new Map;let Hn=[];const Ri=new Set,v4=e=>Ri.forEach(t=>t(e)),Dp=()=>Ye.size>0;function Ip(e,t){var r;if(t)return!((r=Ye.get(t))==null||!r.isToastActive(e));let n=!1;return Ye.forEach(o=>{o.isToastActive(e)&&(n=!0)}),n}function kp(e,t){Bi(e)&&(Dp()||Hn.push({content:e,options:t}),Ye.forEach(r=>{r.buildToast(e,t)}))}function Ap(e,t){Ye.forEach(r=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===r.id&&r.toggle(e,t==null?void 0:t.id):r.toggle(e,t==null?void 0:t.id)})}function b4(e){const{subscribe:t,getSnapshot:r,setProps:n}=f.useRef(function(a){const s=a.containerId||1;return{subscribe(i){const l=function(u,d,p){let h=1,g=0,b=[],y=[],P=[],x=d;const C=new Map,S=new Set,$=()=>{P=Array.from(C.values()),S.forEach(m=>m())},N=m=>{y=m==null?[]:y.filter(D=>D!==m),$()},j=m=>{const{toastId:D,onOpen:I,updateId:T,children:k}=m.props,w=T==null;m.staleId&&C.delete(m.staleId),C.set(D,m),y=[...y,m.props.toastId].filter(M=>M!==m.staleId),$(),p($p(m,w?"added":"updated")),w&&at(I)&&I(f.isValidElement(k)&&k.props)};return{id:u,props:x,observe:m=>(S.add(m),()=>S.delete(m)),toggle:(m,D)=>{C.forEach(I=>{D!=null&&D!==I.props.toastId||at(I.toggle)&&I.toggle(m)})},removeToast:N,toasts:C,clearQueue:()=>{g-=b.length,b=[]},buildToast:(m,D)=>{if((ee=>{let{containerId:U,toastId:re,updateId:X}=ee;const te=U?U!==u:u!==1,ce=C.has(re)&&X==null;return te||ce})(D))return;const{toastId:I,updateId:T,data:k,staleId:w,delay:M}=D,O=()=>{N(I)},F=T==null;F&&g++;const E={...x,style:x.toastStyle,key:h++,...Object.fromEntries(Object.entries(D).filter(ee=>{let[U,re]=ee;return re!=null})),toastId:I,updateId:T,data:k,closeToast:O,isIn:!1,className:Ca(D.className||x.toastClassName),bodyClassName:Ca(D.bodyClassName||x.bodyClassName),progressClassName:Ca(D.progressClassName||x.progressClassName),autoClose:!D.isLoading&&(V=D.autoClose,H=x.autoClose,V===!1||Kn(V)&&V>0?V:H),deleteToast(){const ee=C.get(I),{onClose:U,children:re}=ee.props;at(U)&&U(f.isValidElement(re)&&re.props),p($p(ee,"removed")),C.delete(I),g--,g<0&&(g=0),b.length>0?j(b.shift()):$()}};var V,H;E.closeButton=x.closeButton,D.closeButton===!1||Bi(D.closeButton)?E.closeButton=D.closeButton:D.closeButton===!0&&(E.closeButton=!Bi(x.closeButton)||x.closeButton);let R=m;f.isValidElement(m)&&!Tr(m.type)?R=f.cloneElement(m,{closeToast:O,toastProps:E,data:k}):at(m)&&(R=m({closeToast:O,toastProps:E,data:k}));const W={content:R,props:E,staleId:w};x.limit&&x.limit>0&&g>x.limit&&F?b.push(W):Kn(M)?setTimeout(()=>{j(W)},M):j(W)},setProps(m){x=m},setToggle:(m,D)=>{C.get(m).toggle=D},isToastActive:m=>y.some(D=>D===m),getSnapshot:()=>x.newestOnTop?P.reverse():P}}(s,a,v4);Ye.set(s,l);const c=l.observe(i);return Hn.forEach(u=>kp(u.content,u.options)),Hn=[],()=>{c(),Ye.delete(s)}},setProps(i){var l;(l=Ye.get(s))==null||l.setProps(i)},getSnapshot(){var i;return(i=Ye.get(s))==null?void 0:i.getSnapshot()}}}(e)).current;n(e);const o=f.useSyncExternalStore(t,r,r);return{getToastToRender:function(a){if(!o)return[];const s=new Map;return o.forEach(i=>{const{position:l}=i.props;s.has(l)||s.set(l,[]),s.get(l).push(i)}),Array.from(s,i=>a(i[0],i[1]))},isToastActive:Ip,count:o==null?void 0:o.length}}function y4(e){const[t,r]=f.useState(!1),[n,o]=f.useState(!1),a=f.useRef(null),s=f.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:i,pauseOnHover:l,closeToast:c,onClick:u,closeOnClick:d}=e;var p,h;function g(){r(!0)}function b(){r(!1)}function y(C){const S=a.current;s.canDrag&&S&&(s.didMove=!0,t&&b(),s.delta=e.draggableDirection==="x"?C.clientX-s.start:C.clientY-s.start,s.start!==C.clientX&&(s.canCloseOnClick=!1),S.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,S.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function P(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",P);const C=a.current;if(s.canDrag&&s.didMove&&C){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();C.style.transition="transform 0.2s, opacity 0.2s",C.style.removeProperty("transform"),C.style.removeProperty("opacity")}}(h=Ye.get((p={id:e.toastId,containerId:e.containerId,fn:r}).containerId||1))==null||h.setToggle(p.id,p.fn),f.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||b(),window.addEventListener("focus",g),window.addEventListener("blur",b),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",b)}},[e.pauseOnFocusLoss]);const x={onPointerDown:function(C){if(e.draggable===!0||e.draggable===C.pointerType){s.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",P);const S=a.current;s.canCloseOnClick=!0,s.canDrag=!0,S.style.transition="none",e.draggableDirection==="x"?(s.start=C.clientX,s.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(s.start=C.clientY,s.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(C){const{top:S,bottom:$,left:N,right:j}=a.current.getBoundingClientRect();C.nativeEvent.type!=="touchend"&&e.pauseOnHover&&C.clientX>=N&&C.clientX<=j&&C.clientY>=S&&C.clientY<=$?b():g()}};return i&&l&&(x.onMouseEnter=b,e.stacked||(x.onMouseLeave=g)),d&&(x.onClick=C=>{u&&u(C),s.canCloseOnClick&&c()}),{playToast:g,pauseToast:b,isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:x}}function x4(e){let{delay:t,isRunning:r,closeToast:n,type:o="default",hide:a,className:s,style:i,controlledProgress:l,progress:c,rtl:u,isIn:d,theme:p}=e;const h=a||l&&c===0,g={...i,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};l&&(g.transform=`scaleX(${c})`);const b=nr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),y=at(s)?s({rtl:u,type:o,defaultClassName:b}):nr(b,s),P={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{d&&n()}};return f.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},f.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${o}`}),f.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:y,style:g,...P}))}let w4=1;const Op=()=>""+w4++;function C4(e){return e&&(Tr(e.toastId)||Kn(e.toastId))?e.toastId:Op()}function Yn(e,t){return kp(e,t),t.toastId}function Pa(e,t){return{...t,type:t&&t.type||e,toastId:C4(t)}}function Ma(e){return(t,r)=>Yn(t,Pa(e,r))}function $e(e,t){return Yn(e,Pa("default",t))}$e.loading=(e,t)=>Yn(e,Pa("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),$e.promise=function(e,t,r){let n,{pending:o,error:a,success:s}=t;o&&(n=Tr(o)?$e.loading(o,r):$e.loading(o.render,{...r,...o}));const i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,d,p)=>{if(d==null)return void $e.dismiss(n);const h={type:u,...i,...r,data:p},g=Tr(d)?{render:d}:d;return n?$e.update(n,{...h,...g}):$e(g.render,{...h,...g}),p},c=at(e)?e():e;return c.then(u=>l("success",s,u)).catch(u=>l("error",a,u)),c},$e.success=Ma("success"),$e.info=Ma("info"),$e.error=Ma("error"),$e.warning=Ma("warning"),$e.warn=$e.warning,$e.dark=(e,t)=>Yn(e,Pa("default",{theme:"dark",...t})),$e.dismiss=function(e){(function(t){var r;if(Dp()){if(t==null||Tr(r=t)||Kn(r))Ye.forEach(n=>{n.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const n=Ye.get(t.containerId);n?n.removeToast(t.id):Ye.forEach(o=>{o.removeToast(t.id)})}}else Hn=Hn.filter(n=>t!=null&&n.options.toastId!==t)})(e)},$e.clearWaitingQueue=function(e){e===void 0&&(e={}),Ye.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},$e.isActive=Ip,$e.update=function(e,t){t===void 0&&(t={});const r=((n,o)=>{var a;let{containerId:s}=o;return(a=Ye.get(s||1))==null?void 0:a.toasts.get(n)})(e,t);if(r){const{props:n,content:o}=r,a={delay:100,...n,...t,toastId:t.toastId||e,updateId:Op()};a.toastId!==e&&(a.staleId=e);const s=a.render||o;delete a.render,Yn(s,a)}},$e.done=e=>{$e.update(e,{progress:1})},$e.onChange=function(e){return Ri.add(e),()=>{Ri.delete(e)}},$e.play=e=>Ap(!0,e),$e.pause=e=>Ap(!1,e);const P4=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ta=e=>{let{theme:t,type:r,isLoading:n,...o}=e;return f.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...o})},Ki={info:function(e){return f.createElement(Ta,{...e},f.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return f.createElement(Ta,{...e},f.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return f.createElement(Ta,{...e},f.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return f.createElement(Ta,{...e},f.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return f.createElement("div",{className:"Toastify__spinner"})}},M4=e=>{const{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:o,playToast:a}=y4(e),{closeButton:s,children:i,autoClose:l,onClick:c,type:u,hideProgressBar:d,closeToast:p,transition:h,position:g,className:b,style:y,bodyClassName:P,bodyStyle:x,progressClassName:C,progressStyle:S,updateId:$,role:N,progress:j,rtl:m,toastId:D,deleteToast:I,isIn:T,isLoading:k,closeOnClick:w,theme:M}=e,O=nr("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":m},{"Toastify__toast--close-on-click":w}),F=at(b)?b({rtl:m,position:g,type:u,defaultClassName:O}):nr(O,b),E=function(W){let{theme:ee,type:U,isLoading:re,icon:X}=W,te=null;const ce={theme:ee,type:U};return X===!1||(at(X)?te=X({...ce,isLoading:re}):f.isValidElement(X)?te=f.cloneElement(X,ce):re?te=Ki.spinner():(be=>be in Ki)(U)&&(te=Ki[U](ce))),te}(e),V=!!j||!l,H={closeToast:p,type:u,theme:M};let R=null;return s===!1||(R=at(s)?s(H):f.isValidElement(s)?f.cloneElement(s,H):function(W){let{closeToast:ee,theme:U,ariaLabel:re="close"}=W;return f.createElement("button",{className:`Toastify__close-button Toastify__close-button--${U}`,type:"button",onClick:X=>{X.stopPropagation(),ee(X)},"aria-label":re},f.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},f.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(H)),f.createElement(h,{isIn:T,done:I,position:g,preventExitTransition:r,nodeRef:n,playToast:a},f.createElement("div",{id:D,onClick:c,"data-in":T,className:F,...o,style:y,ref:n},f.createElement("div",{...T&&{role:N},className:at(P)?P({type:u}):nr("Toastify__toast-body",P),style:x},E!=null&&f.createElement("div",{className:nr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!k})},E),f.createElement("div",null,i)),R,f.createElement(x4,{...$&&!V?{key:`pb-${$}`}:{},rtl:m,theme:M,delay:l,isRunning:t,isIn:T,closeToast:p,hide:d,type:u,style:S,className:C,controlledProgress:V,progress:j||0})))},Sa=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},T4=Un(Sa("bounce",!0));Un(Sa("slide",!0)),Un(Sa("zoom")),Un(Sa("flip"));const S4={position:"top-right",transition:T4,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function E4(e){let t={...S4,...e};const r=e.stacked,[n,o]=f.useState(!0),a=f.useRef(null),{getToastToRender:s,isToastActive:i,count:l}=b4(t),{className:c,style:u,rtl:d,containerId:p}=t;function h(b){const y=nr("Toastify__toast-container",`Toastify__toast-container--${b}`,{"Toastify__toast-container--rtl":d});return at(c)?c({position:b,rtl:d,defaultClassName:y}):nr(y,Ca(c))}function g(){r&&(o(!0),$e.play())}return P4(()=>{if(r){var b;const y=a.current.querySelectorAll('[data-in="true"]'),P=12,x=(b=t.position)==null?void 0:b.includes("top");let C=0,S=0;Array.from(y).reverse().forEach(($,N)=>{const j=$;j.classList.add("Toastify__toast--stacked"),N>0&&(j.dataset.collapsed=`${n}`),j.dataset.pos||(j.dataset.pos=x?"top":"bot");const m=C*(n?.2:1)+(n?0:P*N);j.style.setProperty("--y",`${x?m:-1*m}px`),j.style.setProperty("--g",`${P}`),j.style.setProperty("--s",""+(1-(n?S:0))),C+=j.offsetHeight,S+=.025})}},[n,l,r]),f.createElement("div",{ref:a,className:"Toastify",id:p,onMouseEnter:()=>{r&&(o(!1),$e.pause())},onMouseLeave:g},s((b,y)=>{const P=y.length?{...u}:{...u,pointerEvents:"none"};return f.createElement("div",{className:h(b),style:P,key:`container-${b}`},y.map(x=>{let{content:C,props:S}=x;return f.createElement(M4,{...S,stacked:r,collapseAll:g,isIn:i(S.toastId,S.containerId),style:S.style,key:`toast-${S.key}`},C)}))}))}const Gx="",$4=()=>({snackbar:(t,r)=>{$e(L.jsx(Sp,{message:t,actions:r==null?void 0:r.actions,inlineActions:r==null?void 0:r.inlineActions}))}});function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ge.apply(this,arguments)}function je(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function D4(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Np(...e){return t=>e.forEach(r=>D4(r,t))}function pt(...e){return f.useCallback(Np(...e),e)}function en(e,t=[]){let r=[];function n(a,s){const i=f.createContext(s),l=r.length;r=[...r,s];function c(d){const{scope:p,children:h,...g}=d,b=(p==null?void 0:p[e][l])||i,y=f.useMemo(()=>g,Object.values(g));return f.createElement(b.Provider,{value:y},h)}function u(d,p){const h=(p==null?void 0:p[e][l])||i,g=f.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=r.map(s=>f.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,I4(o,...t)]}function I4(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...i,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}const Gn=f.forwardRef((e,t)=>{const{children:r,...n}=e,o=f.Children.toArray(r),a=o.find(k4);if(a){const s=a.props.children,i=o.map(l=>l===a?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:l);return f.createElement(Ui,ge({},n,{ref:t}),f.isValidElement(s)?f.cloneElement(s,void 0,i):null)}return f.createElement(Ui,ge({},n,{ref:t}),r)});Gn.displayName="Slot";const Ui=f.forwardRef((e,t)=>{const{children:r,...n}=e;return f.isValidElement(r)?f.cloneElement(r,{...A4(n,r.props),ref:t?Np(t,r.ref):r.ref}):f.Children.count(r)>1?f.Children.only(null):null});Ui.displayName="SlotClone";const jp=({children:e})=>f.createElement(f.Fragment,null,e);function k4(e){return f.isValidElement(e)&&e.type===jp}function A4(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{a(...i),o(...i)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}const Re=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const r=f.forwardRef((n,o)=>{const{asChild:a,...s}=n,i=a?Gn:t;return f.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),f.createElement(i,ge({},s,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function O4(e,t){e&&hn.flushSync(()=>e.dispatchEvent(t))}function Vt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function N4(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Hi="dismissableLayer.update",j4="dismissableLayer.pointerDownOutside",L4="dismissableLayer.focusOutside";let Lp;const _4=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_p=f.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...c}=e,u=f.useContext(_4),[d,p]=f.useState(null),h=(r=d==null?void 0:d.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,g]=f.useState({}),b=pt(t,m=>p(m)),y=Array.from(u.layers),[P]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(P),C=d?y.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,$=C>=x,N=F4(m=>{const D=m.target,I=[...u.branches].some(T=>T.contains(D));!$||I||(a==null||a(m),i==null||i(m),m.defaultPrevented||l==null||l())},h),j=V4(m=>{const D=m.target;[...u.branches].some(T=>T.contains(D))||(s==null||s(m),i==null||i(m),m.defaultPrevented||l==null||l())},h);return N4(m=>{C===u.layers.size-1&&(o==null||o(m),!m.defaultPrevented&&l&&(m.preventDefault(),l()))},h),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Lp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Fp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Lp)}},[d,h,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Fp())},[d,u]),f.useEffect(()=>{const m=()=>g({});return document.addEventListener(Hi,m),()=>document.removeEventListener(Hi,m)},[]),f.createElement(Re.div,ge({},c,{ref:b,style:{pointerEvents:S?$?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,j.onFocusCapture),onBlurCapture:je(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,N.onPointerDownCapture)}))});function F4(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){Vp(j4,r,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function V4(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e),n=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!n.current&&Vp(L4,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Fp(){const e=new CustomEvent(Hi);document.dispatchEvent(e)}function Vp(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?O4(o,a):o.dispatchEvent(a)}const tn=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},z4=G["useId".toString()]||(()=>{});let W4=0;function Ea(e){const[t,r]=G.useState(z4());return tn(()=>{e||r(n=>n??String(W4++))},[e]),e||(t?`radix-${t}`:"")}const B4=["top","right","bottom","left"],or=Math.min,st=Math.max,$a=Math.round,Da=Math.floor,ar=e=>({x:e,y:e}),R4={left:"right",right:"left",bottom:"top",top:"bottom"},K4={start:"end",end:"start"};function Yi(e,t,r){return st(e,or(t,r))}function zt(e,t){return typeof e=="function"?e(t):e}function Wt(e){return e.split("-")[0]}function rn(e){return e.split("-")[1]}function Gi(e){return e==="x"?"y":"x"}function qi(e){return e==="y"?"height":"width"}function nn(e){return["top","bottom"].includes(Wt(e))?"y":"x"}function Qi(e){return Gi(nn(e))}function U4(e,t,r){r===void 0&&(r=!1);const n=rn(e),o=Qi(e),a=qi(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ia(s)),[s,Ia(s)]}function H4(e){const t=Ia(e);return[Xi(e),t,Xi(t)]}function Xi(e){return e.replace(/start|end/g,t=>K4[t])}function Y4(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:s;default:return[]}}function G4(e,t,r,n){const o=rn(e);let a=Y4(Wt(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Xi)))),a}function Ia(e){return e.replace(/left|right|bottom|top/g,t=>R4[t])}function q4(e){return{top:0,right:0,bottom:0,left:0,...e}}function zp(e){return typeof e!="number"?q4(e):{top:e,right:e,bottom:e,left:e}}function ka(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Wp(e,t,r){let{reference:n,floating:o}=e;const a=nn(t),s=Qi(t),i=qi(s),l=Wt(t),c=a==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,p=n[i]/2-o[i]/2;let h;switch(l){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-o.width,y:d};break;default:h={x:n.x,y:n.y}}switch(rn(t)){case"start":h[s]-=p*(r&&c?-1:1);break;case"end":h[s]+=p*(r&&c?-1:1);break}return h}const Q4=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Wp(c,n,l),p=n,h={},g=0;for(let b=0;b<i.length;b++){const{name:y,fn:P}=i[b],{x,y:C,data:S,reset:$}=await P({x:u,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});if(u=x??u,d=C??d,h={...h,[y]:{...h[y],...S}},$&&g<=50){g++,typeof $=="object"&&($.placement&&(p=$.placement),$.rects&&(c=$.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):$.rects),{x:u,y:d}=Wp(c,p,l)),b=-1;continue}}return{x:u,y:d,placement:p,strategy:o,middlewareData:h}};async function qn(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=zt(t,e),g=zp(h),y=i[p?d==="floating"?"reference":"floating":d],P=ka(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:l})),x=d==="floating"?{...s.floating,x:n,y:o}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},$=ka(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:C,strategy:l}):x);return{top:(P.top-$.top+g.top)/S.y,bottom:($.bottom-P.bottom+g.bottom)/S.y,left:(P.left-$.left+g.left)/S.x,right:($.right-P.right+g.right)/S.x}}const Bp=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:u=0}=zt(e,t)||{};if(c==null)return{};const d=zp(u),p={x:r,y:n},h=Qi(o),g=qi(h),b=await s.getDimensions(c),y=h==="y",P=y?"top":"left",x=y?"bottom":"right",C=y?"clientHeight":"clientWidth",S=a.reference[g]+a.reference[h]-p[h]-a.floating[g],$=p[h]-a.reference[h],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let j=N?N[C]:0;(!j||!await(s.isElement==null?void 0:s.isElement(N)))&&(j=i.floating[C]||a.floating[g]);const m=S/2-$/2,D=j/2-b[g]/2-1,I=or(d[P],D),T=or(d[x],D),k=I,w=j-b[g]-T,M=j/2-b[g]/2+m,O=Yi(k,M,w),F=!l.arrow&&rn(o)!=null&&M!=O&&a.reference[g]/2-(M<k?I:T)-b[g]/2<0,E=F?M<k?M-k:M-w:0;return{[h]:p[h]+E,data:{[h]:O,centerOffset:M-O-E,...F&&{alignmentOffset:E}},reset:F}}}),X4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...y}=zt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const P=Wt(o),x=Wt(i)===i,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=p||(x||!b?[Ia(i)]:H4(i));!p&&g!=="none"&&S.push(...G4(i,b,g,C));const $=[i,...S],N=await qn(t,y),j=[];let m=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&j.push(N[P]),d){const k=U4(o,s,C);j.push(N[k[0]],N[k[1]])}if(m=[...m,{placement:o,overflows:j}],!j.every(k=>k<=0)){var D,I;const k=(((D=a.flip)==null?void 0:D.index)||0)+1,w=$[k];if(w)return{data:{index:k,overflows:m},reset:{placement:w}};let M=(I=m.filter(O=>O.overflows[0]<=0).sort((O,F)=>O.overflows[1]-F.overflows[1])[0])==null?void 0:I.placement;if(!M)switch(h){case"bestFit":{var T;const O=(T=m.map(F=>[F.placement,F.overflows.filter(E=>E>0).reduce((E,V)=>E+V,0)]).sort((F,E)=>F[1]-E[1])[0])==null?void 0:T[0];O&&(M=O);break}case"initialPlacement":M=i;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Rp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Kp(e){return B4.some(t=>e[t]>=0)}const Z4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=zt(e,t);switch(n){case"referenceHidden":{const a=await qn(t,{...o,elementContext:"reference"}),s=Rp(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Kp(s)}}}case"escaped":{const a=await qn(t,{...o,altBoundary:!0}),s=Rp(a,r.floating);return{data:{escapedOffsets:s,escaped:Kp(s)}}}default:return{}}}}};async function J4(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Wt(r),i=rn(r),l=nn(r)==="y",c=["left","top"].includes(s)?-1:1,u=a&&l?-1:1,d=zt(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof g=="number"&&(h=i==="end"?g*-1:g),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}const e3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await J4(t,e);return{x:r+o.x,y:n+o.y,data:o}}}},t3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:y=>{let{x:P,y:x}=y;return{x:P,y:x}}},...l}=zt(e,t),c={x:r,y:n},u=await qn(t,l),d=nn(Wt(o)),p=Gi(d);let h=c[p],g=c[d];if(a){const y=p==="y"?"top":"left",P=p==="y"?"bottom":"right",x=h+u[y],C=h-u[P];h=Yi(x,h,C)}if(s){const y=d==="y"?"top":"left",P=d==="y"?"bottom":"right",x=g+u[y],C=g-u[P];g=Yi(x,g,C)}const b=i.fn({...t,[p]:h,[d]:g});return{...b,data:{x:b.x-r,y:b.y-n}}}}},r3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=zt(e,t),u={x:r,y:n},d=nn(o),p=Gi(d);let h=u[p],g=u[d];const b=zt(i,t),y=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const C=p==="y"?"height":"width",S=a.reference[p]-a.floating[C]+y.mainAxis,$=a.reference[p]+a.reference[C]-y.mainAxis;h<S?h=S:h>$&&(h=$)}if(c){var P,x;const C=p==="y"?"width":"height",S=["top","left"].includes(Wt(o)),$=a.reference[d]-a.floating[C]+(S&&((P=s.offset)==null?void 0:P[d])||0)+(S?0:y.crossAxis),N=a.reference[d]+a.reference[C]+(S?0:((x=s.offset)==null?void 0:x[d])||0)-(S?y.crossAxis:0);g<$?g=$:g>N&&(g=N)}return{[p]:h,[d]:g}}}},n3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:a}=t,{apply:s=()=>{},...i}=zt(e,t),l=await qn(t,i),c=Wt(r),u=rn(r),d=nn(r)==="y",{width:p,height:h}=n.floating;let g,b;c==="top"||c==="bottom"?(g=c,b=u===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(b=c,g=u==="end"?"top":"bottom");const y=h-l[g],P=p-l[b],x=!t.middlewareData.shift;let C=y,S=P;if(d){const N=p-l.left-l.right;S=u||x?or(P,N):N}else{const N=h-l.top-l.bottom;C=u||x?or(y,N):N}if(x&&!u){const N=st(l.left,0),j=st(l.right,0),m=st(l.top,0),D=st(l.bottom,0);d?S=p-2*(N!==0||j!==0?N+j:st(l.left,l.right)):C=h-2*(m!==0||D!==0?m+D:st(l.top,l.bottom))}await s({...t,availableWidth:S,availableHeight:C});const $=await o.getDimensions(a.floating);return p!==$.width||h!==$.height?{reset:{rects:!0}}:{}}}};function sr(e){return Up(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bt(e){var t;return(t=(Up(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Up(e){return e instanceof Node||e instanceof it(e).Node}function Rt(e){return e instanceof Element||e instanceof it(e).Element}function Et(e){return e instanceof HTMLElement||e instanceof it(e).HTMLElement}function Hp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof it(e).ShadowRoot}function Qn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function o3(e){return["table","td","th"].includes(sr(e))}function Zi(e){const t=Ji(),r=ht(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function a3(e){let t=on(e);for(;Et(t)&&!Aa(t);){if(Zi(t))return t;t=on(t)}return null}function Ji(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Aa(e){return["html","body","#document"].includes(sr(e))}function ht(e){return it(e).getComputedStyle(e)}function Oa(e){return Rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function on(e){if(sr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Hp(e)&&e.host||Bt(e);return Hp(t)?t.host:t}function Yp(e){const t=on(e);return Aa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Et(t)&&Qn(t)?t:Yp(t)}function Xn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Yp(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=it(o);return a?t.concat(s,s.visualViewport||[],Qn(o)?o:[],s.frameElement&&r?Xn(s.frameElement):[]):t.concat(o,Xn(o,[],r))}function Gp(e){const t=ht(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Et(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=$a(r)!==a||$a(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function el(e){return Rt(e)?e:e.contextElement}function an(e){const t=el(e);if(!Et(t))return ar(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Gp(t);let s=(a?$a(r.width):r.width)/n,i=(a?$a(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const s3=ar(0);function qp(e){const t=it(e);return!Ji()||!t.visualViewport?s3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function i3(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==it(e)?!1:t}function Sr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=el(e);let s=ar(1);t&&(n?Rt(n)&&(s=an(n)):s=an(e));const i=i3(a,r,n)?qp(a):ar(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(a){const p=it(a),h=n&&Rt(n)?it(n):n;let g=p.frameElement;for(;g&&n&&h!==p;){const b=an(g),y=g.getBoundingClientRect(),P=ht(g),x=y.left+(g.clientLeft+parseFloat(P.paddingLeft))*b.x,C=y.top+(g.clientTop+parseFloat(P.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=x,c+=C,g=it(g).frameElement}}return ka({width:u,height:d,x:l,y:c})}function l3(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Et(r),a=Bt(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},i=ar(1);const l=ar(0);if((o||!o&&n!=="fixed")&&((sr(r)!=="body"||Qn(a))&&(s=Oa(r)),Et(r))){const c=Sr(r);i=an(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-s.scrollLeft*i.x+l.x,y:t.y*i.y-s.scrollTop*i.y+l.y}}function c3(e){return Array.from(e.getClientRects())}function Qp(e){return Sr(Bt(e)).left+Oa(e).scrollLeft}function u3(e){const t=Bt(e),r=Oa(e),n=e.ownerDocument.body,o=st(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=st(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Qp(e);const i=-r.scrollTop;return ht(n).direction==="rtl"&&(s+=st(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}function d3(e,t){const r=it(e),n=Bt(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const c=Ji();(!c||c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}function f3(e,t){const r=Sr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Et(e)?an(e):ar(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=n*a.y;return{width:s,height:i,x:l,y:c}}function Xp(e,t,r){let n;if(t==="viewport")n=d3(e,r);else if(t==="document")n=u3(Bt(e));else if(Rt(t))n=f3(t,r);else{const o=qp(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return ka(n)}function Zp(e,t){const r=on(e);return r===t||!Rt(r)||Aa(r)?!1:ht(r).position==="fixed"||Zp(r,t)}function p3(e,t){const r=t.get(e);if(r)return r;let n=Xn(e,[],!1).filter(i=>Rt(i)&&sr(i)!=="body"),o=null;const a=ht(e).position==="fixed";let s=a?on(e):e;for(;Rt(s)&&!Aa(s);){const i=ht(s),l=Zi(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Qn(s)&&!l&&Zp(e,s))?n=n.filter(u=>u!==s):o=i,s=on(s)}return t.set(e,n),n}function h3(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?p3(t,this._c):[].concat(r),n],i=s[0],l=s.reduce((c,u)=>{const d=Xp(t,u,o);return c.top=st(d.top,c.top),c.right=or(d.right,c.right),c.bottom=or(d.bottom,c.bottom),c.left=st(d.left,c.left),c},Xp(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function m3(e){return Gp(e)}function g3(e,t,r){const n=Et(t),o=Bt(t),a=r==="fixed",s=Sr(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=ar(0);if(n||!n&&!a)if((sr(t)!=="body"||Qn(o))&&(i=Oa(t)),n){const c=Sr(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=Qp(o));return{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Jp(e,t){return!Et(e)||ht(e).position==="fixed"?null:t?t(e):e.offsetParent}function e0(e,t){const r=it(e);if(!Et(e))return r;let n=Jp(e,t);for(;n&&o3(n)&&ht(n).position==="static";)n=Jp(n,t);return n&&(sr(n)==="html"||sr(n)==="body"&&ht(n).position==="static"&&!Zi(n))?r:n||a3(e)||r}const v3=async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||e0,a=this.getDimensions;return{reference:g3(t,await o(r),n),floating:{x:0,y:0,...await a(r)}}};function b3(e){return ht(e).direction==="rtl"}const y3={convertOffsetParentRelativeRectToViewportRelativeRect:l3,getDocumentElement:Bt,getClippingRect:h3,getOffsetParent:e0,getElementRects:v3,getClientRects:c3,getDimensions:m3,getScale:an,isElement:Rt,isRTL:b3};function x3(e,t){let r=null,n;const o=Bt(e);function a(){clearTimeout(n),r&&r.disconnect(),r=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(i||t(),!d||!p)return;const h=Da(u),g=Da(o.clientWidth-(c+d)),b=Da(o.clientHeight-(u+p)),y=Da(c),x={rootMargin:-h+"px "+-g+"px "+-b+"px "+-y+"px",threshold:st(0,or(1,l))||1};let C=!0;function S($){const N=$[0].intersectionRatio;if(N!==l){if(!C)return s();N?s(!1,N):n=setTimeout(()=>{s(!1,1e-7)},100)}C=!1}try{r=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(S,x)}r.observe(e)}return s(!0),a}function w3(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=el(e),u=o||a?[...c?Xn(c):[],...Xn(t)]:[];u.forEach(P=>{o&&P.addEventListener("scroll",r,{passive:!0}),a&&P.addEventListener("resize",r)});const d=c&&i?x3(c,r):null;let p=-1,h=null;s&&(h=new ResizeObserver(P=>{let[x]=P;x&&x.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),r()}),c&&!l&&h.observe(c),h.observe(t));let g,b=l?Sr(e):null;l&&y();function y(){const P=Sr(e);b&&(P.x!==b.x||P.y!==b.y||P.width!==b.width||P.height!==b.height)&&r(),b=P,g=requestAnimationFrame(y)}return r(),()=>{u.forEach(P=>{o&&P.removeEventListener("scroll",r),a&&P.removeEventListener("resize",r)}),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const C3=(e,t,r)=>{const n=new Map,o={platform:y3,...r},a={...o.platform,_c:n};return Q4(e,t,{...o,platform:a})},P3=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Bp({element:n.current,padding:o}).fn(r):{}:n?Bp({element:n,padding:o}).fn(r):{}}}};var Na=typeof document<"u"?f.useLayoutEffect:f.useEffect;function ja(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ja(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!ja(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function t0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function r0(e,t){const r=t0(e);return Math.round(t*r)/r}function n0(e){const t=G.useRef(e);return Na(()=>{t.current=e}),t}function M3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[u,d]=G.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=G.useState(n);ja(p,n)||h(n);const[g,b]=G.useState(null),[y,P]=G.useState(null),x=G.useCallback(F=>{F!=N.current&&(N.current=F,b(F))},[b]),C=G.useCallback(F=>{F!==j.current&&(j.current=F,P(F))},[P]),S=a||g,$=s||y,N=G.useRef(null),j=G.useRef(null),m=G.useRef(u),D=n0(l),I=n0(o),T=G.useCallback(()=>{if(!N.current||!j.current)return;const F={placement:t,strategy:r,middleware:p};I.current&&(F.platform=I.current),C3(N.current,j.current,F).then(E=>{const V={...E,isPositioned:!0};k.current&&!ja(m.current,V)&&(m.current=V,Ch.flushSync(()=>{d(V)}))})},[p,t,r,I]);Na(()=>{c===!1&&m.current.isPositioned&&(m.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[c]);const k=G.useRef(!1);Na(()=>(k.current=!0,()=>{k.current=!1}),[]),Na(()=>{if(S&&(N.current=S),$&&(j.current=$),S&&$){if(D.current)return D.current(S,$,T);T()}},[S,$,T,D]);const w=G.useMemo(()=>({reference:N,floating:j,setReference:x,setFloating:C}),[x,C]),M=G.useMemo(()=>({reference:S,floating:$}),[S,$]),O=G.useMemo(()=>{const F={position:r,left:0,top:0};if(!M.floating)return F;const E=r0(M.floating,u.x),V=r0(M.floating,u.y);return i?{...F,transform:"translate("+E+"px, "+V+"px)",...t0(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:E,top:V}},[r,i,M.floating,u.x,u.y]);return G.useMemo(()=>({...u,update:T,refs:w,elements:M,floatingStyles:O}),[u,T,w,M,O])}const T3=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return f.createElement(Re.svg,ge({},a,{ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:f.createElement("polygon",{points:"0,0 30,0 15,10"}))});function S3(e){const[t,r]=f.useState(void 0);return tn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const o0="Popper",[a0,La]=en(o0),[E3,s0]=a0(o0),$3=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return f.createElement(E3,{scope:t,anchor:n,onAnchorChange:o},r)},D3="PopperAnchor",I3=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=s0(D3,r),s=f.useRef(null),i=pt(t,s);return f.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||s.current)}),n?null:f.createElement(Re.div,ge({},o,{ref:i}))}),i0="PopperContent",[k3,A3]=a0(i0),O3=f.forwardRef((e,t)=>{var r,n,o,a,s,i,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:p=0,align:h="center",alignOffset:g=0,arrowPadding:b=0,avoidCollisions:y=!0,collisionBoundary:P=[],collisionPadding:x=0,sticky:C="partial",hideWhenDetached:S=!1,updatePositionStrategy:$="optimized",onPlaced:N,...j}=e,m=s0(i0,u),[D,I]=f.useState(null),T=pt(t,Z=>I(Z)),[k,w]=f.useState(null),M=S3(k),O=(r=M==null?void 0:M.width)!==null&&r!==void 0?r:0,F=(n=M==null?void 0:M.height)!==null&&n!==void 0?n:0,E=d+(h!=="center"?"-"+h:""),V=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},H=Array.isArray(P)?P:[P],R=H.length>0,W={padding:V,boundary:H.filter(_3),altBoundary:R},{refs:ee,floatingStyles:U,placement:re,isPositioned:X,middlewareData:te}=M3({strategy:"fixed",placement:E,whileElementsMounted:(...Z)=>w3(...Z,{animationFrame:$==="always"}),elements:{reference:m.anchor},middleware:[e3({mainAxis:p+F,alignmentAxis:g}),y&&t3({mainAxis:!0,crossAxis:!1,limiter:C==="partial"?r3():void 0,...W}),y&&X4({...W}),n3({...W,apply:({elements:Z,rects:Oe,availableWidth:_e,availableHeight:Fe})=>{const{width:Ie,height:It}=Oe.reference,mt=Z.floating.style;mt.setProperty("--radix-popper-available-width",`${_e}px`),mt.setProperty("--radix-popper-available-height",`${Fe}px`),mt.setProperty("--radix-popper-anchor-width",`${Ie}px`),mt.setProperty("--radix-popper-anchor-height",`${It}px`)}}),k&&P3({element:k,padding:b}),F3({arrowWidth:O,arrowHeight:F}),S&&Z4({strategy:"referenceHidden",...W})]}),[ce,be]=l0(re),pe=Vt(N);tn(()=>{X&&(pe==null||pe())},[X,pe]);const fe=(o=te.arrow)===null||o===void 0?void 0:o.x,he=(a=te.arrow)===null||a===void 0?void 0:a.y,Te=((s=te.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Se,ae]=f.useState();return tn(()=>{D&&ae(window.getComputedStyle(D).zIndex)},[D]),f.createElement("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:X?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[(i=te.transformOrigin)===null||i===void 0?void 0:i.x,(l=te.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},f.createElement(k3,{scope:u,placedSide:ce,onArrowChange:w,arrowX:fe,arrowY:he,shouldHideArrow:Te},f.createElement(Re.div,ge({"data-side":ce,"data-align":be},j,{ref:T,style:{...j.style,animation:X?void 0:"none",opacity:(c=te.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),N3="PopperArrow",j3={top:"bottom",right:"left",bottom:"top",left:"right"},L3=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=A3(N3,n),s=j3[a.placedSide];return f.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},f.createElement(T3,ge({},o,{ref:r,style:{...o.style,display:"block"}})))});function _3(e){return e!==null}const F3=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,a,s;const{placement:i,rects:l,middlewareData:c}=t,d=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,p=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[g,b]=l0(i),y={start:"0%",center:"50%",end:"100%"}[b],P=((n=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)+p/2,x=((a=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)+h/2;let C="",S="";return g==="bottom"?(C=d?y:`${P}px`,S=`${-h}px`):g==="top"?(C=d?y:`${P}px`,S=`${l.floating.height+h}px`):g==="right"?(C=`${-h}px`,S=d?y:`${x}px`):g==="left"&&(C=`${l.floating.width+h}px`,S=d?y:`${x}px`),{data:{x:C,y:S}}}});function l0(e){const[t,r="center"]=e.split("-");return[t,r]}const c0=$3,u0=I3,d0=O3,V3=L3,f0=f.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...o}=e;return n?hn.createPortal(f.createElement(Re.div,ge({},o,{ref:t})),n):null});function z3(e,t){return f.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const sn=e=>{const{present:t,children:r}=e,n=W3(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),a=pt(n.ref,o.ref);return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:a}):null};sn.displayName="Presence";function W3(e){const[t,r]=f.useState(),n=f.useRef({}),o=f.useRef(e),a=f.useRef("none"),s=e?"mounted":"unmounted",[i,l]=z3(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=_a(n.current);a.current=i==="mounted"?c:"none"},[i]),tn(()=>{const c=n.current,u=o.current;if(u!==e){const p=a.current,h=_a(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),tn(()=>{if(t){const c=d=>{const h=_a(n.current).includes(d.animationName);d.target===t&&h&&hn.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===t&&(a.current=_a(n.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:f.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function _a(e){return(e==null?void 0:e.animationName)||"none"}function Fa({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=B3({defaultProp:t,onChange:r}),a=e!==void 0,s=a?e:n,i=Vt(r),l=f.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&i(d)}else o(c)},[a,e,o,i]);return[s,l]}function B3({defaultProp:e,onChange:t}){const r=f.useState(e),[n]=r,o=f.useRef(n),a=Vt(t);return f.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}const R3=f.forwardRef((e,t)=>f.createElement(Re.span,ge({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[Va,Zx]=en("Tooltip",[La]),za=La(),K3="TooltipProvider",U3=700,tl="tooltip.open",[H3,rl]=Va(K3),Y3=e=>{const{__scopeTooltip:t,delayDuration:r=U3,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,[s,i]=f.useState(!0),l=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),f.createElement(H3,{scope:t,isOpenDelayed:s,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),i(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:o},a)},nl="Tooltip",[G3,Zn]=Va(nl),q3=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=rl(nl,e.__scopeTooltip),c=za(t),[u,d]=f.useState(null),p=Ea(),h=f.useRef(0),g=s??l.disableHoverableContent,b=i??l.delayDuration,y=f.useRef(!1),[P=!1,x]=Fa({prop:n,defaultProp:o,onChange:j=>{j?(l.onOpen(),document.dispatchEvent(new CustomEvent(tl))):l.onClose(),a==null||a(j)}}),C=f.useMemo(()=>P?y.current?"delayed-open":"instant-open":"closed",[P]),S=f.useCallback(()=>{window.clearTimeout(h.current),y.current=!1,x(!0)},[x]),$=f.useCallback(()=>{window.clearTimeout(h.current),x(!1)},[x]),N=f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,x(!0)},b)},[b,x]);return f.useEffect(()=>()=>window.clearTimeout(h.current),[]),f.createElement(c0,c,f.createElement(G3,{scope:t,contentId:p,open:P,stateAttribute:C,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayed?N():S()},[l.isOpenDelayed,N,S]),onTriggerLeave:f.useCallback(()=>{g?$():window.clearTimeout(h.current)},[$,g]),onOpen:S,onClose:$,disableHoverableContent:g},r))},p0="TooltipTrigger",Q3=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Zn(p0,r),a=rl(p0,r),s=za(r),i=f.useRef(null),l=pt(t,i,o.onTriggerChange),c=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.createElement(u0,ge({asChild:!0},s),f.createElement(Re.button,ge({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},n,{ref:l,onPointerMove:je(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:je(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:je(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:je(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:je(e.onBlur,o.onClose),onClick:je(e.onClick,o.onClose)})))}),h0="TooltipPortal",[X3,Z3]=Va(h0,{forceMount:void 0}),J3=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=Zn(h0,t);return f.createElement(X3,{scope:t,forceMount:r},f.createElement(sn,{present:r||a.open},f.createElement(f0,{asChild:!0,container:o},n)))},Jn="TooltipContent",e6=f.forwardRef((e,t)=>{const r=Z3(Jn,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=Zn(Jn,e.__scopeTooltip);return f.createElement(sn,{present:n||s.open},s.disableHoverableContent?f.createElement(m0,ge({side:o},a,{ref:t})):f.createElement(t6,ge({side:o},a,{ref:t})))}),t6=f.forwardRef((e,t)=>{const r=Zn(Jn,e.__scopeTooltip),n=rl(Jn,e.__scopeTooltip),o=f.useRef(null),a=pt(t,o),[s,i]=f.useState(null),{trigger:l,onClose:c}=r,u=o.current,{onPointerInTransitChange:d}=n,p=f.useCallback(()=>{i(null),d(!1)},[d]),h=f.useCallback((g,b)=>{const y=g.currentTarget,P={x:g.clientX,y:g.clientY},x=s6(P,y.getBoundingClientRect()),C=i6(P,x),S=l6(b.getBoundingClientRect()),$=u6([...C,...S]);i($),d(!0)},[d]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(l&&u){const g=y=>h(y,u),b=y=>h(y,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",b)}}},[l,u,h,p]),f.useEffect(()=>{if(s){const g=b=>{const y=b.target,P={x:b.clientX,y:b.clientY},x=(l==null?void 0:l.contains(y))||(u==null?void 0:u.contains(y)),C=!c6(P,s);x?p():C&&(p(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,s,c,p]),f.createElement(m0,ge({},e,{ref:a}))}),[r6,n6]=Va(nl,{isInside:!1}),m0=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=Zn(Jn,r),c=za(r),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(tl,u),()=>document.removeEventListener(tl,u)),[u]),f.useEffect(()=>{if(l.trigger){const d=p=>{const h=p.target;h!=null&&h.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),f.createElement(_p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},f.createElement(d0,ge({"data-state":l.stateAttribute},c,i,{ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),f.createElement(jp,null,n),f.createElement(r6,{scope:r,isInside:!0},f.createElement(R3,{id:l.contentId,role:"tooltip"},o||n))))}),o6="TooltipArrow",a6=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=za(r);return n6(o6,r).isInside?null:f.createElement(V3,ge({},o,n,{ref:t}))});function s6(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function i6(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function l6(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function c6(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a].x,l=t[a].y,c=t[s].x,u=t[s].y;l>n!=u>n&&r<(c-i)*(n-l)/(u-l)+i&&(o=!o)}return o}function u6(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),d6(t)}function d6(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}const f6=Y3,p6=q3,h6=Q3,m6=J3,g6=e6,v6=a6,b6=({children:e,showArrow:t=!1,startOpen:r=!1,content:n,hasCloseButton:o=!1,action:a,size:s="sm"})=>{const[i,l]=f.useState(r),c=we({base:"rounded-lg bg-primary-black-400 px-4 pb-[13px] pt-[12px] font-satoshi text-sm font-medium text-white",variants:{size:{sm:"max-w-[215px]",lg:"max-w-[342px]"}}}),u=()=>{l(!1)},d=()=>{a&&a.onClick(),u()};return L.jsx(f6,{children:L.jsxs(p6,{delayDuration:0,defaultOpen:i,open:i,onOpenChange:p=>l(p),children:[L.jsx(h6,{asChild:!0,children:e}),L.jsx(m6,{children:L.jsxs(g6,{className:c({size:s}),sideOffset:5,children:[L.jsxs("div",{children:[L.jsxs("div",{className:"flex gap-4",children:[n,o&&L.jsx(Ue,{onClick:u,name:"close",className:"mt-1 cursor-pointer text-xs text-white"})]}),a&&L.jsx(Wi,{className:"-mb-1 mt-1 !h-6 !px-0",variant:"tertiaryDark",onClick:d,children:a.label})]}),t&&L.jsx(v6,{className:"TooltipArrow"})]})})]})})};function y6(e){const t=e+"CollectionProvider",[r,n]=en(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:g,children:b}=h,y=f.useRef(null),P=f.useRef(new Map).current;return f.createElement(o,{scope:g,itemMap:P,collectionRef:y},b)},i=e+"CollectionSlot",l=f.forwardRef((h,g)=>{const{scope:b,children:y}=h,P=a(i,b),x=pt(g,P.collectionRef);return f.createElement(Gn,{ref:x},y)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=f.forwardRef((h,g)=>{const{scope:b,children:y,...P}=h,x=f.useRef(null),C=pt(g,x),S=a(c,b);return f.useEffect(()=>(S.itemMap.set(x,{ref:x,...P}),()=>void S.itemMap.delete(x))),f.createElement(Gn,{[u]:"",ref:C},y)});function p(h){const g=a(e+"CollectionConsumer",h);return f.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const P=Array.from(y.querySelectorAll(`[${u}]`));return Array.from(g.itemMap.values()).sort((S,$)=>P.indexOf(S.ref.current)-P.indexOf($.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},p,n]}const x6=f.createContext(void 0);function g0(e){const t=f.useContext(x6);return e||t||"ltr"}const ol="rovingFocusGroup.onEntryFocus",w6={bubbles:!1,cancelable:!0},al="RovingFocusGroup",[sl,v0,C6]=y6(al),[P6,b0]=en(al,[C6]),[M6,T6]=P6(al),S6=f.forwardRef((e,t)=>f.createElement(sl.Provider,{scope:e.__scopeRovingFocusGroup},f.createElement(sl.Slot,{scope:e.__scopeRovingFocusGroup},f.createElement(E6,ge({},e,{ref:t}))))),E6=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=f.useRef(null),p=pt(t,d),h=g0(a),[g=null,b]=Fa({prop:s,defaultProp:i,onChange:l}),[y,P]=f.useState(!1),x=Vt(c),C=v0(r),S=f.useRef(!1),[$,N]=f.useState(0);return f.useEffect(()=>{const j=d.current;if(j)return j.addEventListener(ol,x),()=>j.removeEventListener(ol,x)},[x]),f.createElement(M6,{scope:r,orientation:n,dir:h,loop:o,currentTabStopId:g,onItemFocus:f.useCallback(j=>b(j),[b]),onItemShiftTab:f.useCallback(()=>P(!0),[]),onFocusableItemAdd:f.useCallback(()=>N(j=>j+1),[]),onFocusableItemRemove:f.useCallback(()=>N(j=>j-1),[])},f.createElement(Re.div,ge({tabIndex:y||$===0?-1:0,"data-orientation":n},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:je(e.onMouseDown,()=>{S.current=!0}),onFocus:je(e.onFocus,j=>{const m=!S.current;if(j.target===j.currentTarget&&m&&!y){const D=new CustomEvent(ol,w6);if(j.currentTarget.dispatchEvent(D),!D.defaultPrevented){const I=C().filter(O=>O.focusable),T=I.find(O=>O.active),k=I.find(O=>O.id===g),M=[T,k,...I].filter(Boolean).map(O=>O.ref.current);y0(M)}}S.current=!1}),onBlur:je(e.onBlur,()=>P(!1))})))}),$6="RovingFocusGroupItem",D6=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,...s}=e,i=Ea(),l=a||i,c=T6($6,r),u=c.currentTabStopId===l,d=v0(r),{onFocusableItemAdd:p,onFocusableItemRemove:h}=c;return f.useEffect(()=>{if(n)return p(),()=>h()},[n,p,h]),f.createElement(sl.ItemSlot,{scope:r,id:l,focusable:n,active:o},f.createElement(Re.span,ge({tabIndex:u?0:-1,"data-orientation":c.orientation},s,{ref:t,onMouseDown:je(e.onMouseDown,g=>{n?c.onItemFocus(l):g.preventDefault()}),onFocus:je(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:je(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=A6(g,c.orientation,c.dir);if(b!==void 0){g.preventDefault();let P=d().filter(x=>x.focusable).map(x=>x.ref.current);if(b==="last")P.reverse();else if(b==="prev"||b==="next"){b==="prev"&&P.reverse();const x=P.indexOf(g.currentTarget);P=c.loop?O6(P,x+1):P.slice(x+1)}setTimeout(()=>y0(P))}})})))}),I6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k6(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function A6(e,t,r){const n=k6(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return I6[n]}function y0(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function O6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const N6=S6,j6=D6,x0="Tabs",[L6,Jx]=en(x0,[b0]),w0=b0(),[_6,il]=L6(x0),F6=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...c}=e,u=g0(i),[d,p]=Fa({prop:n,onChange:o,defaultProp:a});return f.createElement(_6,{scope:r,baseId:Ea(),value:d,onValueChange:p,orientation:s,dir:u,activationMode:l},f.createElement(Re.div,ge({dir:u,"data-orientation":s},c,{ref:t})))}),V6="TabsList",z6=f.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=il(V6,r),s=w0(r);return f.createElement(N6,ge({asChild:!0},s,{orientation:a.orientation,dir:a.dir,loop:n}),f.createElement(Re.div,ge({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),W6="TabsTrigger",B6=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,s=il(W6,r),i=w0(r),l=C0(s.baseId,n),c=P0(s.baseId,n),u=n===s.value;return f.createElement(j6,ge({asChild:!0},i,{focusable:!o,active:u}),f.createElement(Re.button,ge({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},a,{ref:t,onMouseDown:je(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?s.onValueChange(n):d.preventDefault()}),onKeyDown:je(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(n)}),onFocus:je(e.onFocus,()=>{const d=s.activationMode!=="manual";!u&&!o&&d&&s.onValueChange(n)})})))}),R6="TabsContent",K6=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...s}=e,i=il(R6,r),l=C0(i.baseId,n),c=P0(i.baseId,n),u=n===i.value,d=f.useRef(u);return f.useEffect(()=>{const p=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(p)},[]),f.createElement(sn,{present:o||u},({present:p})=>f.createElement(Re.div,ge({"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!p,id:c,tabIndex:0},s,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),p&&a))});function C0(e,t){return`${e}-trigger-${t}`}function P0(e,t){return`${e}-content-${t}`}const U6=F6,H6=z6,Y6=B6,G6=K6,q6=({tabs:e,defaultValue:t,variant:r="button",className:n,...o})=>{const a=we({base:"",variants:{variant:{underline:"",button:""}}}),s=we({base:"flex flex-row",variants:{variant:{underline:"",button:""}}}),i=we({base:"flex h-[82px] w-[197px] items-center justify-center gap-2 text-lg font-medium text-primary-grey-700 hover:text-primary-grey-800 data-[state=active]:font-bold data-[state=active]:text-secondary-green-500",variants:{variant:{underline:"border-b border-primary-grey-600 border-t-transparent hover:border-b-4 hover:border-t-3 hover:border-b-primary-grey-700 hover:font-bold data-[state=active]:border-b-4 data-[state=active]:border-t-3 data-[state=active]:border-b-secondary-green-500 data-[state=active]:text-secondary-green-500",button:"relative z-0 -mr-[1px] rounded-none border border-primary-grey-600 first:rounded-l-xl last:rounded-r-xl hover:z-10 hover:border-2 hover:border-primary-grey-800 data-[state=active]:z-20 data-[state=active]:border-2 data-[state=active]:border-secondary-green-500"}}});return L.jsxs(U6,{defaultValue:t??e[0].key,className:a({variant:r,className:n}),...o,children:[L.jsx(H6,{className:s({variant:r}),children:e.map(({icon:l,key:c,title:u})=>L.jsxs(Y6,{value:c,className:i({variant:r}),children:[l&&(typeof l=="string"?L.jsx(Ue,{className:"-mt-[1px]",name:l}):l),u]},c))}),e.map(({content:l,key:c})=>L.jsx(G6,{value:c,children:l},c))]})},ll=f.forwardRef(({disabled:e,isDatePicker:t,isInvalid:r,isValid:n,className:o,icon:a,message:s,iconAction:i,...l},c)=>{const u=we({base:"[&_input]:data-[filled-within=true]:!bg-transparent [&_label]:data-[filled-within=true]:!left-[15px] [&_label]:data-[filled-within=true]:!top-[20px] [&_label]:data-[filled-within=true]:!ml-[1px] [&_label]:data-[filled-within=true]:!text-xs [&_label]:data-[filled-within=true]:!text-primary-grey-800",variants:{isInvalid:{true:"[&_label]:data-[filled-within=true]:!text-complementary-red-500"},isValid:{true:"[&_label]:data-[filled-within=true]:!text-secondary-green-500"},disabled:{true:"[&_label]:data-[filled-within=true]:!text-primary-grey-700"}}}),d=we({base:"left-[15px] top-6 font-satoshi font-satoshi text-base text-sm text-primary-grey-800",variants:{isInvalid:{true:"text-complementary-red-500"},isValid:{true:"text-secondary-green-500"},disabled:{true:"text-primary-grey-700"}}}),p=we({base:"text-left font-satoshi text-base",variants:{disabled:{true:"!text-primary-grey-700"},isDatePicker:{true:"!cursor-pointer"}}}),h=we({base:"h-12 rounded-lg border border-primary-grey-700 !bg-white px-[15px] text-black !ring-0 !ring-offset-0",variants:{isInvalid:{true:"border-complementary-red-500"},isValid:{true:"border-secondary-green-500"},disabled:{true:"!border-primary-grey-500 !bg-primary-grey-500"},isDatePicker:{true:"!cursor-pointer"}}}),g=we({base:"mt-[5px] pl-3 font-satoshi",variants:{isInvalid:{true:"text-complementary-red-500"},isValid:{true:"text-secondary-green-500"}}}),b=we({base:"text-primary-grey-800",variants:{iconAction:{true:"cursor-pointer"}}}),{Component:y,label:P,domRef:x,startContent:C,shouldLabelBeOutside:S,shouldLabelBeInside:$,getBaseProps:N,getLabelProps:j,getInputProps:m,getInnerWrapperProps:D,getInputWrapperProps:I,getDescriptionProps:T}=I5({...l,disabled:e,labelPlacement:"outside",ref:c,classNames:{input:p({disabled:e,isDatePicker:t}),inputWrapper:h({isInvalid:r,isValid:n,disabled:e,isDatePicker:t}),base:u({isInvalid:r,isValid:n,disabled:e,className:o}),label:d({isInvalid:r,isValid:n,disabled:e}),description:g({isInvalid:r,isValid:n})}}),k=L.jsx("label",{...j(),children:P}),w=f.useMemo(()=>C||a?L.jsxs("div",{...D(),children:[C,L.jsx("input",{...m()}),a&&(typeof a=="string"?L.jsx(Ue,{onClick:i,name:a,className:b({iconAction:!!i})}):a)]}):L.jsx("input",{...m()}),[C,i,b,a,m,D]);return L.jsxs(y,{...N(),children:[S?k:null,L.jsxs("div",{...I(),role:"button",onClick:()=>{var M;(M=x.current)==null||M.focus()},children:[$?k:null,w]}),s&&L.jsx("div",{...T(),children:s})]})}),Q6=f.forwardRef((e,t)=>{const[r,n]=f.useState(!1),o=()=>{n(a=>!a)};return L.jsx(ll,{ref:t,icon:r?"eye":"eye-off",type:r?"text":"password",iconAction:o,...e})});let cl=0;function X6(){f.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:M0()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:M0()),cl++,()=>{cl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),cl--}},[])}function M0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const ul="focusScope.autoFocusOnMount",dl="focusScope.autoFocusOnUnmount",T0={bubbles:!1,cancelable:!0},Z6=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=f.useState(null),c=Vt(o),u=Vt(a),d=f.useRef(null),p=pt(t,b=>l(b)),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let b=function(C){if(h.paused||!i)return;const S=C.target;i.contains(S)?d.current=S:ir(d.current,{select:!0})},y=function(C){if(h.paused||!i)return;const S=C.relatedTarget;S!==null&&(i.contains(S)||ir(d.current,{select:!0}))},P=function(C){if(document.activeElement===document.body)for(const $ of C)$.removedNodes.length>0&&ir(i)};document.addEventListener("focusin",b),document.addEventListener("focusout",y);const x=new MutationObserver(P);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",y),x.disconnect()}}},[n,i,h.paused]),f.useEffect(()=>{if(i){$0.add(h);const b=document.activeElement;if(!i.contains(b)){const P=new CustomEvent(ul,T0);i.addEventListener(ul,c),i.dispatchEvent(P),P.defaultPrevented||(J6(o7(S0(i)),{select:!0}),document.activeElement===b&&ir(i))}return()=>{i.removeEventListener(ul,c),setTimeout(()=>{const P=new CustomEvent(dl,T0);i.addEventListener(dl,u),i.dispatchEvent(P),P.defaultPrevented||ir(b??document.body,{select:!0}),i.removeEventListener(dl,u),$0.remove(h)},0)}}},[i,c,u,h]);const g=f.useCallback(b=>{if(!r&&!n||h.paused)return;const y=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,P=document.activeElement;if(y&&P){const x=b.currentTarget,[C,S]=e7(x);C&&S?!b.shiftKey&&P===S?(b.preventDefault(),r&&ir(C,{select:!0})):b.shiftKey&&P===C&&(b.preventDefault(),r&&ir(S,{select:!0})):P===x&&b.preventDefault()}},[r,n,h.paused]);return f.createElement(Re.div,ge({tabIndex:-1},s,{ref:p,onKeyDown:g}))});function J6(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ir(n,{select:t}),document.activeElement!==r)return}function e7(e){const t=S0(e),r=E0(t,e),n=E0(t.reverse(),e);return[r,n]}function S0(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function E0(e,t){for(const r of e)if(!t7(r,{upTo:t}))return r}function t7(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 r7(e){return e instanceof HTMLInputElement&&"select"in e}function ir(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&r7(e)&&t&&e.select()}}const $0=n7();function n7(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=D0(e,t),e.unshift(t)},remove(t){var r;e=D0(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function D0(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function o7(e){return e.filter(t=>t.tagName!=="A")}var a7=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ln=new WeakMap,Wa=new WeakMap,Ba={},fl=0,I0=function(e){return e&&(e.host||I0(e.parentNode))},s7=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=I0(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},i7=function(e,t,r,n){var o=s7(t,Array.isArray(e)?e:[e]);Ba[r]||(Ba[r]=new WeakMap);var a=Ba[r],s=[],i=new Set,l=new Set(o),c=function(d){!d||i.has(d)||(i.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(i.has(p))u(p);else{var h=p.getAttribute(n),g=h!==null&&h!=="false",b=(ln.get(p)||0)+1,y=(a.get(p)||0)+1;ln.set(p,b),a.set(p,y),s.push(p),b===1&&g&&Wa.set(p,!0),y===1&&p.setAttribute(r,"true"),g||p.setAttribute(n,"true")}})};return u(t),i.clear(),fl++,function(){s.forEach(function(d){var p=ln.get(d)-1,h=a.get(d)-1;ln.set(d,p),a.set(d,h),p||(Wa.has(d)||d.removeAttribute(n),Wa.delete(d)),h||d.removeAttribute(r)}),fl--,fl||(ln=new WeakMap,ln=new WeakMap,Wa=new WeakMap,Ba={})}},l7=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||a7(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),i7(n,o,r,"aria-hidden")):function(){return null}},k0=F5(),pl=function(){},Ra=G.forwardRef(function(e,t){var r=G.useRef(null),n=G.useState({onScrollCapture:pl,onWheelCapture:pl,onTouchMoveCapture:pl}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,h=e.noIsolation,g=e.inert,b=e.allowPinchZoom,y=e.as,P=y===void 0?"div":y,x=Ic(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),C=p,S=j5([r,t]),$=Pt(Pt({},x),o);return G.createElement(G.Fragment,null,u&&G.createElement(C,{sideCar:k0,removeScrollBar:c,shards:d,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!b,lockRef:r}),s?G.cloneElement(G.Children.only(i),Pt(Pt({},$),{ref:S})):G.createElement(P,Pt({},$,{className:l,ref:S}),i))});Ra.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ra.classNames={fullWidth:xa,zeroRight:ya};var hl=!1;if(typeof window<"u")try{var Ka=Object.defineProperty({},"passive",{get:function(){return hl=!0,!0}});window.addEventListener("test",Ka,Ka),window.removeEventListener("test",Ka,Ka)}catch{hl=!1}var cn=hl?{passive:!1}:!1,c7=function(e){return e.tagName==="TEXTAREA"},A0=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!c7(e)&&r[t]==="visible")},u7=function(e){return A0(e,"overflowY")},d7=function(e){return A0(e,"overflowX")},O0=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=N0(e,r);if(n){var o=j0(e,r),a=o[1],s=o[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},f7=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},p7=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},N0=function(e,t){return e==="v"?u7(t):d7(t)},j0=function(e,t){return e==="v"?f7(t):p7(t)},h7=function(e,t){return e==="h"&&t==="rtl"?-1:1},m7=function(e,t,r,n,o){var a=h7(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,l=t.contains(i),c=!1,u=s>0,d=0,p=0;do{var h=j0(e,i),g=h[0],b=h[1],y=h[2],P=b-y-a*g;(g||P)&&N0(e,i)&&(d+=P,p+=g),i=i.parentNode}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(u&&(o&&d===0||!o&&s>d)||!u&&(o&&p===0||!o&&-s>p))&&(c=!0),c},Ua=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L0=function(e){return[e.deltaX,e.deltaY]},_0=function(e){return e&&"current"in e?e.current:e},g7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},v7=function(e){return`
|
|
72
|
+
`)},Xy=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,a=G.useMemo(function(){return Gy(o)},[o]);return G.createElement(qy,{styles:Qy(a,!t,o,r?"":"!important")})};const y1=new WeakMap;function wa(e,t,r){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${y1.get(e)}-${r}-${t}`}function Zy(e,t,r){var n;let{key:o,isDisabled:a,shouldSelectOnPressUp:s}=e,{selectionManager:i,selectedKey:l}=t,c=o===l,u=a||t.isDisabled||t.disabledKeys.has(o),{itemProps:d,isPressed:p}=Xm({selectionManager:i,key:o,ref:r,isDisabled:u,shouldSelectOnPressUp:s,linkBehavior:"selection"}),h=wa(t,o,"tab"),g=wa(t,o,"tabpanel"),{tabIndex:b}=d,y=t.collection.getItem(o),P=Fr(y==null?void 0:y.props,{isLink:!!(!(y==null||(n=y.props)===null||n===void 0)&&n.href),labelable:!0});return delete P.id,{tabProps:ie(P,d,{id:h,"aria-selected":c,"aria-disabled":u||void 0,"aria-controls":c?g:void 0,tabIndex:u?void 0:b,role:"tab"}),isSelected:c,isDisabled:u,isPressed:p}}function Jy(e,t,r){let n=Pm(r)?void 0:0;var o;const a=wa(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),s=cs({...e,id:a,"aria-labelledby":wa(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:ie(s,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class e4{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}getKeyAbove(t){return this.getPreviousKey(t)}getKeyBelow(t){return this.getNextKey(t)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getPreviousKey(t)),t}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.disabledKeys.has(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.disabledKeys.has(t));return t}constructor(t,r,n,o=new Set){this.collection=t,this.flipDirection=r==="rtl"&&n==="horizontal",this.disabledKeys=o}}function t4(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:a,selectionManager:s,disabledKeys:i}=t,{direction:l}=hs(),c=f.useMemo(()=>new e4(a,l,n,i),[a,i,n,l]),{collectionProps:u}=Qm({ref:r,selectionManager:s,keyboardDelegate:c,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=_r();y1.set(t,d);let p=cs({...e,id:d});return{tabListProps:{...ie(u,p),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var x1=vt((e,t)=>{var r,n,o;const{as:a,state:s,className:i,slots:l,classNames:c,...u}=e,d=a||"div",p=nt(t),{tabPanelProps:h}=Jy(e,s,p),{focusProps:g,isFocused:b,isFocusVisible:y}=Mt(),P=s.selectedItem,x=(r=P==null?void 0:P.props)==null?void 0:r.children,C=me(c==null?void 0:c.panel,i,(n=P==null?void 0:P.props)==null?void 0:n.className);return x?L.jsx(d,{ref:p,"data-focus":b,"data-focus-visible":y,...ie(h,g,u),className:(o=l.panel)==null?void 0:o.call(l,{class:C}),"data-slot":"panel",children:x}):null});x1.displayName="NextUI.TabPanel";var r4=x1,w1=vt((e,t)=>{var r;const{className:n,as:o,item:a,state:s,classNames:i,isDisabled:l,listRef:c,slots:u,motionProps:d,disableAnimation:p,disableCursorAnimation:h,shouldSelectOnPressUp:g,onClick:b,...y}=e,{key:P}=a,x=nt(t),C=o||(e.href?"a":"button"),S=typeof C=="string",{tabProps:$,isSelected:N,isDisabled:j,isPressed:m}=Zy({key:P,isDisabled:l,shouldSelectOnPressUp:g},s,x),D=l||j,{focusProps:I,isFocused:T,isFocusVisible:k}=Mt(),{hoverProps:w,isHovered:M}=mr({isDisabled:D}),O=me(i==null?void 0:i.tab,n),[,F]=$y({rerender:!0}),E=()=>{dr(b,$.onClick),!(!(x!=null&&x.current)||!(c!=null&&c.current))&&py(x.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:c==null?void 0:c.current})};return L.jsxs(C,{ref:x,"data-disabled":Q(j),"data-focus":Q(T),"data-focus-visible":Q(k),"data-hover":Q(M),"data-hover-unselected":Q((M||m)&&!N),"data-pressed":Q(m),"data-selected":Q(N),"data-slot":"tab",...ie($,D?{}:{...I,...w},Sn(y,{enabled:S,omitPropNames:new Set(["title"])})),className:(r=u.tab)==null?void 0:r.call(u,{class:O}),title:y==null?void 0:y.titleValue,type:C==="button"?"button":void 0,onClick:E,children:[N&&!p&&!h&&F?L.jsx(Wf.span,{className:u.cursor({class:i==null?void 0:i.cursor}),"data-slot":"cursor",layoutDependency:!1,layoutId:"cursor",transition:{type:"spring",bounce:.15,duration:.5},...d}):null,L.jsx("div",{className:u.tabContent({class:i==null?void 0:i.tabContent}),"data-slot":"tabContent",children:a.rendered})]})});w1.displayName="NextUI.Tab";var n4=w1;class C1{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return(r==null?void 0:r.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let s of a.childNodes)r(s)};for(let a of t)r(a);let n,o=0;for(let[a,s]of this.keyMap)n?(n.nextKey=a,s.prevKey=n.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),n=s,n.nextKey=void 0;this.lastKey=n==null?void 0:n.key}}function o4(e){let{filter:t}=e,r=A5(e),n=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=f.useCallback(c=>t?new C1(t(c)):new C1(c),[t]),a=f.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=E5(e,o,a),i=f.useMemo(()=>new O5(s,r),[s,r]);const l=f.useRef(null);return f.useEffect(()=>{if(r.focusedKey!=null&&!s.getItem(r.focusedKey)){const c=l.current.getItem(r.focusedKey),u=[...l.current.getKeys()].map(b=>{const y=l.current.getItem(b);return y.type==="item"?y:null}).filter(b=>b!==null),d=[...s.getKeys()].map(b=>{const y=s.getItem(b);return y.type==="item"?y:null}).filter(b=>b!==null),p=u.length-d.length;let h=Math.min(p>1?Math.max(c.index-p+1,0):c.index,d.length-1),g;for(;h>=0;){if(!i.isDisabled(d[h].key)){g=d[h];break}h<d.length-1?h++:(h>c.index&&(h=c.index),h--)}r.setFocusedKey(g?g.key:null)}l.current=s},[s,i,r,r.focusedKey]),{collection:s,disabledKeys:n,selectionManager:i}}function a4(e){var t;let[r,n]=Lr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=f.useMemo(()=>r!=null?[r]:[],[r]),{collection:a,disabledKeys:s,selectionManager:i}=o4({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{var u;let d=(u=c.values().next().value)!==null&&u!==void 0?u:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),l=r!=null?a.getItem(r):null;return{collection:a,disabledKeys:s,selectionManager:i,selectedKey:r,setSelectedKey:n,selectedItem:l}}function s4(e){var t;let r=a4({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:P1(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:n,collection:o,selectedKey:a}=r,s=f.useRef(a);return f.useEffect(()=>{let i=a;(n.isEmpty||!o.getItem(i))&&(i=P1(o,r.disabledKeys),i!=null&&n.setSelectedKeys([i])),(i!=null&&n.focusedKey==null||!n.isFocused&&i!==s.current)&&n.setFocusedKey(i),s.current=i}),{...r,isDisabled:e.isDisabled||!1}}function P1(e,t){let r=null;if(e){for(r=e.getFirstKey();t.has(r)&&r!==e.getLastKey();)r=e.getKeyAfter(r);t.has(r)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}function i4(e){const[t,r]=Mn(e,Xc.variantKeys),{ref:n,as:o,className:a,classNames:s,children:i,disableCursorAnimation:l,shouldSelectOnPressUp:c=!0,motionProps:u,...d}=t,p=o||"div",h=typeof p=="string",g=nt(n),b=s4({children:i,...d}),{tabListProps:y}=t4(d,b,g),P=f.useMemo(()=>Xc({...r,className:a}),[...Object.values(r),a]),x=me(s==null?void 0:s.base,a),C=f.useMemo(()=>({state:b,slots:P,classNames:s,motionProps:u,listRef:g,shouldSelectOnPressUp:c,disableCursorAnimation:l,isDisabled:e==null?void 0:e.isDisabled,disableAnimation:e==null?void 0:e.disableAnimation}),[b,P,g,u,l,c,e==null?void 0:e.disableAnimation,e==null?void 0:e.isDisabled,s]),S=f.useCallback(N=>({"data-slot":"base",className:P.base({class:me(x,N==null?void 0:N.className)}),...ie(Sn(d,{enabled:h}),N)}),[x,d,P]),$=f.useCallback(N=>({ref:g,"data-slot":"tabList",className:P.tabList({class:me(s==null?void 0:s.tabList,N==null?void 0:N.className)}),...ie(y,N)}),[g,y,s,P]);return{Component:p,domRef:g,state:b,values:C,getBaseProps:S,getTabListProps:$}}function M1(e,t){var r;const{Component:n,values:o,state:a,getBaseProps:s,getTabListProps:i}=i4({...e,ref:t}),l=f.useId(),c=!e.disableAnimation&&!e.disableCursorAnimation,u={state:a,listRef:o.listRef,slots:o.slots,classNames:o.classNames,isDisabled:o.isDisabled,motionProps:o.motionProps,disableAnimation:o.disableAnimation,shouldSelectOnPressUp:o.shouldSelectOnPressUp,disableCursorAnimation:o.disableCursorAnimation},d=[...a.collection].map(p=>L.jsx(n4,{item:p,...u,...p.props},p.key));return L.jsxs(L.Fragment,{children:[L.jsx("div",{...s(),children:L.jsx(n,{...i(),children:c?L.jsx(C5,{id:l,children:d}):d})}),L.jsx(r4,{classNames:o.classNames,slots:o.slots,state:o.state},(r=a.selectedItem)==null?void 0:r.key)]})}var l4=vt(M1);M1.displayName="NextUI.Tabs";var c4=M5,u4=c4;const d4=({icons:e,className:t})=>{const r=we({base:"bg-primary-grey-700",variants:{withIcon:{false:"h-6 w-11 px-[2px] group-data-[selected=true]:bg-secondary-green-500",true:"h-[52px] w-[88px] bg-secondary-green-500 group-data-[selected=true]:bg-primary-green-500"}}}),n=we({variants:{withIcon:{false:"h-5 w-5 group-data-[selected=true]:ml-5",true:"h-11 w-11 group-data-[selected=true]:ml-9"}}});return L.jsx(Ey,{classNames:{wrapper:r({withIcon:!!e,className:t}),thumb:n({withIcon:!!e})},thumbIcon:({isSelected:o,className:a})=>e&&(o?L.jsx(Ue,{name:e.selectedIcon,className:Gt(a,"text-lg")}):L.jsx(Ue,{name:e.unselectedIcon,className:Gt(a,"text-lg")}))})},f4=e=>L.jsx(uy,{classNames:{wrapper:"w-4 h-4 rounded-sm before:rounded-sm before:border before:border-primary-grey-700 after:rounded-sm after:bg-secondary-green-500",icon:"w-[11px] h-2.5 [&>*]:stroke-[4px]"},...e}),T1=({size:e="md",className:t,border:r=!1,image:n,label:o,...a})=>{const s=we({base:"bg-white font-satoshi font-bold capitalize text-white",variants:{size:{lg:"h-28 w-28 text-[48px]",md:"h-[72px] w-[72px] text-[32px]",sm:"h-12 w-12 text-[24px]",xs:"h-6 w-6 text-[12px]"},border:{true:"border-primary-grey-600"},isText:{true:"bg-complementary-violet-500 "}},compoundVariants:[{border:!0,size:"lg",class:"border-[4px]"},{border:!0,size:"md",class:"border-[3px]"},{border:!0,size:"sm",class:"border-2"},{border:!0,size:"xs",class:"border"}]}),i=we({base:"text-primary-grey-600",variants:{size:{xs:"text-[12px]",sm:"text-[24px]",md:"text-[32px]",lg:"text-[48px]"}}});return L.jsx(V5,{fallback:!o&&L.jsx(Ue,{name:"user",className:i({size:e})}),showFallback:!!o,src:n,name:o,className:s({size:e,border:r,isText:!!(o&&!n),className:t}),...a})},p4=({options:e,labelPosition:t="right",orientation:r="vertical"})=>L.jsx(Cy,{orientation:r,children:e.map(n=>L.jsxs("div",{className:"flex items-center gap-2",children:[t==="left"&&L.jsx("label",{"data-testid":"label-position-left",children:n.label}),L.jsx(My,{value:n.value,id:n.id,classNames:{wrapper:"border border-primary-grey-700 group-data-[selected=true]:border-secondary-green-500 group-data-[selected=true]:bg-secondary-green-500",control:"bg-white"}}),t==="right"&&n.label&&L.jsx("label",{"data-testid":"label-position-right",children:n.label})]},n.value))}),Wi=({children:e,size:t,variant:r="primary",disabled:n,full:o=!1,iconLeft:a,iconRight:s,className:i,isLoadingComplete:l,isLoading:c,...u})=>{const[d,p]=f.useState("w-0"),h=f.useRef(null);f.useEffect(()=>{if(c){let y=2;p("w-1/4"),h.current=setInterval(()=>{p(`w-${y}/4`),y<3?y++:h.current&&clearInterval(h.current)},1e3)}else h.current&&clearInterval(h.current),p("w-0")},[c]);const g=we({base:`absolute left-0 top-0 h-full rounded-full bg-transparent duration-1000 ease-in-out ${d}`,variants:{isLoadingComplete:{true:"w-full duration-500",false:""},loadingVariant:{primaryDark:"bg-white",primaryLight:"bg-primary-green-500 ",primary:"bg-primary-green-500 ",negative:"bg-complementary-red-700",secondaryNegative:"bg-complementary-red-50",secondary:"bg-secondary-green-50",tertiary:"",tertiaryDark:"",tertiaryLight:"",direction:"",directionCircle:"",icon:""}}}),b=we({base:"relative !overflow-hidden rounded-full border-transparent px-10 py-4 font-bold text-white !ring-0 !ring-transparent hover:text-white focus:outline focus:outline-2 focus:-outline-offset-4 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-4 focus-visible:outline-white",variants:{size:{small:"h-9",medium:"h-12",large:"h-14"},variant:{primaryDark:"bg-white text-primary-green-500 hover:bg-secondary-green-500 focus:bg-secondary-green-500 focus:text-white focus:outline-primary-green-500",primaryLight:"bg-primary-green-500 hover:bg-white hover:text-secondary-green-500 focus:bg-white focus:text-secondary-green-500 focus:outline-secondary-green-500",primary:"bg-primary-green-500 hover:bg-secondary-green-500 focus:bg-secondary-green-500 focus:outline-white",negative:"bg-complementary-red-700 hover:border-transparent hover:bg-complementary-red-500 focus:bg-complementary-red-500 focus:outline-white",secondaryNegative:"border border-complementary-red-700 !bg-white font-medium text-complementary-red-700 hover:border-2 hover:border-complementary-red-500 hover:text-complementary-red-500 focus:border-[3px] focus:border-complementary-red-500 focus:text-complementary-red-500",secondary:"border border-primary-green-500 !bg-transparent font-medium text-primary-green-500 hover:border-2 hover:border-secondary-green-500 hover:text-secondary-green-500 focus:border-[3px] focus:border-secondary-green-500 focus:text-secondary-green-500",tertiary:"!bg-transparent px-4 font-medium text-primary-green-500 hover:text-secondary-green-500 focus:font-bold focus:text-secondary-green-500 focus:outline-none",tertiaryDark:"!bg-transparent px-4 font-medium text-secondary-green-500 focus:font-bold focus:text-secondary-green-500 focus:outline-none",tertiaryLight:"!bg-transparent px-4 font-medium text-primary-green-500 focus:font-bold focus:text-primary-green-500 focus:outline-none",direction:"h-10 bg-primary-green-500 p-2.5 font-medium hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none",directionCircle:"font:medium !min-w-unit-10 bg-primary-green-500 !px-0 hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none",icon:"!min-w-unit-10 bg-transparent !px-0 text-primary-green-500 hover:text-secondary-green-500"},full:{true:"w-full",false:""},disabled:{true:"",false:""},isLoading:{true:"",false:""},hasIcon:{true:"!px-6"}},compoundVariants:[{disabled:!0,isLoading:!1,class:"pointer-events-none border-transparent bg-primary-grey-500 font-medium text-primary-grey-700"},{variant:"primaryDark",isLoading:!0,class:"!bg-secondary-green-500 !text-primary-green-500 focus:bg-secondary-green-500 focus:outline-secondary-green-500"},{variant:"primaryLight",isLoading:!0,class:"!bg-white text-secondary-green-500 focus:outline-white"},{variant:"primary",isLoading:!0,class:"!bg-secondary-green-500 focus:outline-secondary-green-500"},{variant:"negative",isLoading:!0,class:"!bg-complementary-red-500 focus:outline-complementary-red-500"},{variant:"secondaryNegative",isLoading:!0,class:"!border !border-complementary-red-700 !bg-white text-complementary-red-700 focus:outline-none"},{variant:"secondary",isLoading:!0,class:"!border !border-secondary-green-500 !bg-white text-secondary-green-500 focus:outline-none"},{variant:"tertiary",isLoading:!0,class:"!font-medium"},{variant:"tertiaryDark",isLoading:!0,class:"!font-medium"},{variant:"tertiaryLight",isLoading:!0,class:"!font-medium"},{variant:"secondaryNegative",disabled:!0,class:"border border-primary-grey-700 bg-transparent"},{variant:"secondary",disabled:!0,class:"border border-primary-grey-700 bg-transparent"},{variant:"tertiary",disabled:!0,class:"bg-transparent underline"},{variant:"icon",disabled:!0,class:"bg-transparent"},{variant:"directionCircle",hasIcon:!0,class:"!min-w-unit-10 !px-0"}]});return f.useEffect(()=>()=>{h.current&&clearInterval(h.current)},[h]),L.jsx(G5,{disabled:c||n,className:Gt(i,b({size:t,variant:r,disabled:n,full:o,isLoading:c,hasIcon:!!(a||s)})),...u,children:L.jsxs("div",{children:[L.jsx("div",{className:Gt(g({isLoadingComplete:l,loadingVariant:r}))}),L.jsxs("div",{className:"relative flex items-center gap-3 text-center",children:[a&&(typeof a=="string"?L.jsx(Ue,{"data-testid":"button-component-icon-left",name:a}):a),e&&L.jsx("span",{className:r.includes("tertiary")?"underline":"",children:e}),s&&(typeof s=="string"?L.jsx(Ue,{"data-testid":"button-component-icon-right",name:s}):s)]})]})})},h4=({children:e,className:t,avatar:r,size:n="sm",disabled:o=!1,iconLeft:a,iconRight:s})=>{const i=we({base:"flex h-6 cursor-pointer items-center justify-center gap-2 border border-primary-green-500 bg-white px-2 pt-[1px] font-satoshi text-[10px] font-medium leading-[15px] text-primary-green-500 hover:border-secondary-green-500 hover:text-secondary-green-500 active:border-[2px] active:px-[7px]",variants:{size:{sm:"",lg:"h-[54px] gap-3 px-4 text-base active:px-[15px]"},hasAvatar:{true:"!border-0 bg-primary-grey-600 pl-6"},disabled:{true:"cursor-default !border-1 !border-primary-grey-500 bg-primary-grey-500 !text-primary-grey-800"}},compoundVariants:[{size:"sm",hasAvatar:!0,class:"pl-6 active:pl-[24px] active:pr-[8px]"},{size:"lg",hasAvatar:!0,class:"pl-14 active:pl-[56px] active:pr-[16px]"},{size:"sm",disabled:!0,class:"active:px-[8px]"},{size:"lg",disabled:!0,class:"active:px-[16px]"}]}),l=we({base:"absolute left-0 top-0",variants:{size:{sm:"",lg:"h-[54px] w-[54px]"}}}),c=we({base:"text-xs",variants:{size:{sm:"",lg:"text-lg"}}});return L.jsxs(t1,{size:n,className:Gt(i({hasAvatar:!!r,size:n,disabled:o,className:t})),startContent:a&&(typeof a=="string"?L.jsx(Ue,{className:c({size:n}),name:a}):a),endContent:s&&(typeof s=="string"?L.jsx(Ue,{className:c({size:n}),name:s}):s),children:[r&&L.jsx(T1,{className:l({size:n}),border:!1,size:"xs",image:r}),e]})},m4=({tabs:e,tabClass:t,size:r="md",onSelectionChange:n,...o})=>{const a=we({base:"bg-primary-grey-500 p-[1px]",variants:{size:{sm:"h-8",md:"h-9",lg:"h-12"}}}),s=we({base:"h-full font-medium text-primary-grey-800 data-[selected=true]:!font-bold data-[selected=true]:!text-primary-green-500 data-[hover='true']:opacity-100",variants:{size:{sm:"px-[40px]",md:"px-[80px]",lg:"px-[75px]"},tabClass:{}}}),i=we({base:"!text-white shadow-none"}),l=we({base:"!font-inherit flex items-center gap-2 font-satoshi !text-inherit",variants:{size:{sm:"text-[14px]",md:"text-[14px]",lg:"text-[20px]"}}});return L.jsx(l4,{onClick:c=>{const u=c.target,d=u.parentElement.getAttribute("data-selected");let p=u.getAttribute("data-key");p||(p=u.parentElement.getAttribute("data-key")),!d&&p&&n(p)},classNames:{tabList:a({size:r}),tab:s({size:r,className:t}),cursor:i(),tabContent:l({size:r})},radius:"full",size:r,...o,children:e.map(({key:c,title:u,component:d,icon:p})=>L.jsx(u4,{title:L.jsxs(L.Fragment,{children:[p&&(typeof p=="string"?L.jsx(Ue,{className:"text-[16px]",name:p}):p)," ",u]}),children:d},c))})},S1=({message:e,actions:t,inlineActions:r=!0})=>{const n=we({base:"flex gap-3 rounded-lg bg-primary-black-400 p-4",variants:{inlineActions:{true:"flex flex-row",false:"flex flex-col items-end justify-end"},toastType:{alert:"rounded-2xl bg-primary-grey-600",snackbar:"bg-primary-black-400",banner:"rounded-2xl bg-complementary-red-500"}}});return L.jsxs("div",{className:n({inlineActions:r}),children:[L.jsx("div",{className:"flex flex-1 items-center gap-4",children:L.jsx("p",{className:"font-satoshi text-sm",children:e})}),L.jsx("div",{children:t&&L.jsx("div",{className:"flex",children:t.map(({label:o,onClick:a})=>L.jsx(Wi,{onClick:a,variant:"tertiaryDark",children:o},o))})})]})};function E1(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=E1(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function nr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=E1(e))&&(n&&(n+=" "),n+=t);return n}const Kn=e=>typeof e=="number"&&!isNaN(e),Tr=e=>typeof e=="string",at=e=>typeof e=="function",Ca=e=>Tr(e)||at(e)?e:null,Bi=e=>f.isValidElement(e)||Tr(e)||at(e)||Kn(e);function g4(e,t,r){r===void 0&&(r=300);const{scrollHeight:n,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}function Un(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(s){let{children:i,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:p,playToast:h}=s;const g=n?`${t}--${l}`:t,b=n?`${r}--${l}`:r,y=f.useRef(0);return f.useLayoutEffect(()=>{const P=d.current,x=g.split(" "),C=S=>{S.target===d.current&&(h(),P.removeEventListener("animationend",C),P.removeEventListener("animationcancel",C),y.current===0&&S.type!=="animationcancel"&&P.classList.remove(...x))};P.classList.add(...x),P.addEventListener("animationend",C),P.addEventListener("animationcancel",C)},[]),f.useEffect(()=>{const P=d.current,x=()=>{P.removeEventListener("animationend",x),o?g4(P,u,a):u()};p||(c?x():(y.current=1,P.className+=` ${b}`,P.addEventListener("animationend",x)))},[p]),f.createElement(f.Fragment,null,i)}}function $1(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Ye=new Map;let Hn=[];const Ri=new Set,v4=e=>Ri.forEach(t=>t(e)),D1=()=>Ye.size>0;function I1(e,t){var r;if(t)return!((r=Ye.get(t))==null||!r.isToastActive(e));let n=!1;return Ye.forEach(o=>{o.isToastActive(e)&&(n=!0)}),n}function k1(e,t){Bi(e)&&(D1()||Hn.push({content:e,options:t}),Ye.forEach(r=>{r.buildToast(e,t)}))}function A1(e,t){Ye.forEach(r=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===r.id&&r.toggle(e,t==null?void 0:t.id):r.toggle(e,t==null?void 0:t.id)})}function b4(e){const{subscribe:t,getSnapshot:r,setProps:n}=f.useRef(function(a){const s=a.containerId||1;return{subscribe(i){const l=function(u,d,p){let h=1,g=0,b=[],y=[],P=[],x=d;const C=new Map,S=new Set,$=()=>{P=Array.from(C.values()),S.forEach(m=>m())},N=m=>{y=m==null?[]:y.filter(D=>D!==m),$()},j=m=>{const{toastId:D,onOpen:I,updateId:T,children:k}=m.props,w=T==null;m.staleId&&C.delete(m.staleId),C.set(D,m),y=[...y,m.props.toastId].filter(M=>M!==m.staleId),$(),p($1(m,w?"added":"updated")),w&&at(I)&&I(f.isValidElement(k)&&k.props)};return{id:u,props:x,observe:m=>(S.add(m),()=>S.delete(m)),toggle:(m,D)=>{C.forEach(I=>{D!=null&&D!==I.props.toastId||at(I.toggle)&&I.toggle(m)})},removeToast:N,toasts:C,clearQueue:()=>{g-=b.length,b=[]},buildToast:(m,D)=>{if((ee=>{let{containerId:U,toastId:re,updateId:X}=ee;const te=U?U!==u:u!==1,ce=C.has(re)&&X==null;return te||ce})(D))return;const{toastId:I,updateId:T,data:k,staleId:w,delay:M}=D,O=()=>{N(I)},F=T==null;F&&g++;const E={...x,style:x.toastStyle,key:h++,...Object.fromEntries(Object.entries(D).filter(ee=>{let[U,re]=ee;return re!=null})),toastId:I,updateId:T,data:k,closeToast:O,isIn:!1,className:Ca(D.className||x.toastClassName),bodyClassName:Ca(D.bodyClassName||x.bodyClassName),progressClassName:Ca(D.progressClassName||x.progressClassName),autoClose:!D.isLoading&&(V=D.autoClose,H=x.autoClose,V===!1||Kn(V)&&V>0?V:H),deleteToast(){const ee=C.get(I),{onClose:U,children:re}=ee.props;at(U)&&U(f.isValidElement(re)&&re.props),p($1(ee,"removed")),C.delete(I),g--,g<0&&(g=0),b.length>0?j(b.shift()):$()}};var V,H;E.closeButton=x.closeButton,D.closeButton===!1||Bi(D.closeButton)?E.closeButton=D.closeButton:D.closeButton===!0&&(E.closeButton=!Bi(x.closeButton)||x.closeButton);let R=m;f.isValidElement(m)&&!Tr(m.type)?R=f.cloneElement(m,{closeToast:O,toastProps:E,data:k}):at(m)&&(R=m({closeToast:O,toastProps:E,data:k}));const W={content:R,props:E,staleId:w};x.limit&&x.limit>0&&g>x.limit&&F?b.push(W):Kn(M)?setTimeout(()=>{j(W)},M):j(W)},setProps(m){x=m},setToggle:(m,D)=>{C.get(m).toggle=D},isToastActive:m=>y.some(D=>D===m),getSnapshot:()=>x.newestOnTop?P.reverse():P}}(s,a,v4);Ye.set(s,l);const c=l.observe(i);return Hn.forEach(u=>k1(u.content,u.options)),Hn=[],()=>{c(),Ye.delete(s)}},setProps(i){var l;(l=Ye.get(s))==null||l.setProps(i)},getSnapshot(){var i;return(i=Ye.get(s))==null?void 0:i.getSnapshot()}}}(e)).current;n(e);const o=f.useSyncExternalStore(t,r,r);return{getToastToRender:function(a){if(!o)return[];const s=new Map;return o.forEach(i=>{const{position:l}=i.props;s.has(l)||s.set(l,[]),s.get(l).push(i)}),Array.from(s,i=>a(i[0],i[1]))},isToastActive:I1,count:o==null?void 0:o.length}}function y4(e){const[t,r]=f.useState(!1),[n,o]=f.useState(!1),a=f.useRef(null),s=f.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:i,pauseOnHover:l,closeToast:c,onClick:u,closeOnClick:d}=e;var p,h;function g(){r(!0)}function b(){r(!1)}function y(C){const S=a.current;s.canDrag&&S&&(s.didMove=!0,t&&b(),s.delta=e.draggableDirection==="x"?C.clientX-s.start:C.clientY-s.start,s.start!==C.clientX&&(s.canCloseOnClick=!1),S.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,S.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function P(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",P);const C=a.current;if(s.canDrag&&s.didMove&&C){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();C.style.transition="transform 0.2s, opacity 0.2s",C.style.removeProperty("transform"),C.style.removeProperty("opacity")}}(h=Ye.get((p={id:e.toastId,containerId:e.containerId,fn:r}).containerId||1))==null||h.setToggle(p.id,p.fn),f.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||b(),window.addEventListener("focus",g),window.addEventListener("blur",b),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",b)}},[e.pauseOnFocusLoss]);const x={onPointerDown:function(C){if(e.draggable===!0||e.draggable===C.pointerType){s.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",P);const S=a.current;s.canCloseOnClick=!0,s.canDrag=!0,S.style.transition="none",e.draggableDirection==="x"?(s.start=C.clientX,s.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(s.start=C.clientY,s.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(C){const{top:S,bottom:$,left:N,right:j}=a.current.getBoundingClientRect();C.nativeEvent.type!=="touchend"&&e.pauseOnHover&&C.clientX>=N&&C.clientX<=j&&C.clientY>=S&&C.clientY<=$?b():g()}};return i&&l&&(x.onMouseEnter=b,e.stacked||(x.onMouseLeave=g)),d&&(x.onClick=C=>{u&&u(C),s.canCloseOnClick&&c()}),{playToast:g,pauseToast:b,isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:x}}function x4(e){let{delay:t,isRunning:r,closeToast:n,type:o="default",hide:a,className:s,style:i,controlledProgress:l,progress:c,rtl:u,isIn:d,theme:p}=e;const h=a||l&&c===0,g={...i,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};l&&(g.transform=`scaleX(${c})`);const b=nr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),y=at(s)?s({rtl:u,type:o,defaultClassName:b}):nr(b,s),P={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{d&&n()}};return f.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},f.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${o}`}),f.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:y,style:g,...P}))}let w4=1;const O1=()=>""+w4++;function C4(e){return e&&(Tr(e.toastId)||Kn(e.toastId))?e.toastId:O1()}function Yn(e,t){return k1(e,t),t.toastId}function Pa(e,t){return{...t,type:t&&t.type||e,toastId:C4(t)}}function Ma(e){return(t,r)=>Yn(t,Pa(e,r))}function $e(e,t){return Yn(e,Pa("default",t))}$e.loading=(e,t)=>Yn(e,Pa("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),$e.promise=function(e,t,r){let n,{pending:o,error:a,success:s}=t;o&&(n=Tr(o)?$e.loading(o,r):$e.loading(o.render,{...r,...o}));const i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,d,p)=>{if(d==null)return void $e.dismiss(n);const h={type:u,...i,...r,data:p},g=Tr(d)?{render:d}:d;return n?$e.update(n,{...h,...g}):$e(g.render,{...h,...g}),p},c=at(e)?e():e;return c.then(u=>l("success",s,u)).catch(u=>l("error",a,u)),c},$e.success=Ma("success"),$e.info=Ma("info"),$e.error=Ma("error"),$e.warning=Ma("warning"),$e.warn=$e.warning,$e.dark=(e,t)=>Yn(e,Pa("default",{theme:"dark",...t})),$e.dismiss=function(e){(function(t){var r;if(D1()){if(t==null||Tr(r=t)||Kn(r))Ye.forEach(n=>{n.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const n=Ye.get(t.containerId);n?n.removeToast(t.id):Ye.forEach(o=>{o.removeToast(t.id)})}}else Hn=Hn.filter(n=>t!=null&&n.options.toastId!==t)})(e)},$e.clearWaitingQueue=function(e){e===void 0&&(e={}),Ye.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},$e.isActive=I1,$e.update=function(e,t){t===void 0&&(t={});const r=((n,o)=>{var a;let{containerId:s}=o;return(a=Ye.get(s||1))==null?void 0:a.toasts.get(n)})(e,t);if(r){const{props:n,content:o}=r,a={delay:100,...n,...t,toastId:t.toastId||e,updateId:O1()};a.toastId!==e&&(a.staleId=e);const s=a.render||o;delete a.render,Yn(s,a)}},$e.done=e=>{$e.update(e,{progress:1})},$e.onChange=function(e){return Ri.add(e),()=>{Ri.delete(e)}},$e.play=e=>A1(!0,e),$e.pause=e=>A1(!1,e);const P4=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ta=e=>{let{theme:t,type:r,isLoading:n,...o}=e;return f.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...o})},Ki={info:function(e){return f.createElement(Ta,{...e},f.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return f.createElement(Ta,{...e},f.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return f.createElement(Ta,{...e},f.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return f.createElement(Ta,{...e},f.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return f.createElement("div",{className:"Toastify__spinner"})}},M4=e=>{const{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:o,playToast:a}=y4(e),{closeButton:s,children:i,autoClose:l,onClick:c,type:u,hideProgressBar:d,closeToast:p,transition:h,position:g,className:b,style:y,bodyClassName:P,bodyStyle:x,progressClassName:C,progressStyle:S,updateId:$,role:N,progress:j,rtl:m,toastId:D,deleteToast:I,isIn:T,isLoading:k,closeOnClick:w,theme:M}=e,O=nr("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":m},{"Toastify__toast--close-on-click":w}),F=at(b)?b({rtl:m,position:g,type:u,defaultClassName:O}):nr(O,b),E=function(W){let{theme:ee,type:U,isLoading:re,icon:X}=W,te=null;const ce={theme:ee,type:U};return X===!1||(at(X)?te=X({...ce,isLoading:re}):f.isValidElement(X)?te=f.cloneElement(X,ce):re?te=Ki.spinner():(be=>be in Ki)(U)&&(te=Ki[U](ce))),te}(e),V=!!j||!l,H={closeToast:p,type:u,theme:M};let R=null;return s===!1||(R=at(s)?s(H):f.isValidElement(s)?f.cloneElement(s,H):function(W){let{closeToast:ee,theme:U,ariaLabel:re="close"}=W;return f.createElement("button",{className:`Toastify__close-button Toastify__close-button--${U}`,type:"button",onClick:X=>{X.stopPropagation(),ee(X)},"aria-label":re},f.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},f.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(H)),f.createElement(h,{isIn:T,done:I,position:g,preventExitTransition:r,nodeRef:n,playToast:a},f.createElement("div",{id:D,onClick:c,"data-in":T,className:F,...o,style:y,ref:n},f.createElement("div",{...T&&{role:N},className:at(P)?P({type:u}):nr("Toastify__toast-body",P),style:x},E!=null&&f.createElement("div",{className:nr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!k})},E),f.createElement("div",null,i)),R,f.createElement(x4,{...$&&!V?{key:`pb-${$}`}:{},rtl:m,theme:M,delay:l,isRunning:t,isIn:T,closeToast:p,hide:d,type:u,style:S,className:C,controlledProgress:V,progress:j||0})))},Sa=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},T4=Un(Sa("bounce",!0));Un(Sa("slide",!0)),Un(Sa("zoom")),Un(Sa("flip"));const S4={position:"top-right",transition:T4,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function E4(e){let t={...S4,...e};const r=e.stacked,[n,o]=f.useState(!0),a=f.useRef(null),{getToastToRender:s,isToastActive:i,count:l}=b4(t),{className:c,style:u,rtl:d,containerId:p}=t;function h(b){const y=nr("Toastify__toast-container",`Toastify__toast-container--${b}`,{"Toastify__toast-container--rtl":d});return at(c)?c({position:b,rtl:d,defaultClassName:y}):nr(y,Ca(c))}function g(){r&&(o(!0),$e.play())}return P4(()=>{if(r){var b;const y=a.current.querySelectorAll('[data-in="true"]'),P=12,x=(b=t.position)==null?void 0:b.includes("top");let C=0,S=0;Array.from(y).reverse().forEach(($,N)=>{const j=$;j.classList.add("Toastify__toast--stacked"),N>0&&(j.dataset.collapsed=`${n}`),j.dataset.pos||(j.dataset.pos=x?"top":"bot");const m=C*(n?.2:1)+(n?0:P*N);j.style.setProperty("--y",`${x?m:-1*m}px`),j.style.setProperty("--g",`${P}`),j.style.setProperty("--s",""+(1-(n?S:0))),C+=j.offsetHeight,S+=.025})}},[n,l,r]),f.createElement("div",{ref:a,className:"Toastify",id:p,onMouseEnter:()=>{r&&(o(!1),$e.pause())},onMouseLeave:g},s((b,y)=>{const P=y.length?{...u}:{...u,pointerEvents:"none"};return f.createElement("div",{className:h(b),style:P,key:`container-${b}`},y.map(x=>{let{content:C,props:S}=x;return f.createElement(M4,{...S,stacked:r,collapseAll:g,isIn:i(S.toastId,S.containerId),style:S.style,key:`toast-${S.key}`},C)}))}))}const Gx="",$4=()=>({snackbar:(t,r)=>{$e(L.jsx(S1,{message:t,actions:r==null?void 0:r.actions,inlineActions:r==null?void 0:r.inlineActions}))}});function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ge.apply(this,arguments)}function je(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function D4(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function N1(...e){return t=>e.forEach(r=>D4(r,t))}function pt(...e){return f.useCallback(N1(...e),e)}function en(e,t=[]){let r=[];function n(a,s){const i=f.createContext(s),l=r.length;r=[...r,s];function c(d){const{scope:p,children:h,...g}=d,b=(p==null?void 0:p[e][l])||i,y=f.useMemo(()=>g,Object.values(g));return f.createElement(b.Provider,{value:y},h)}function u(d,p){const h=(p==null?void 0:p[e][l])||i,g=f.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=r.map(s=>f.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,I4(o,...t)]}function I4(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...i,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}const Gn=f.forwardRef((e,t)=>{const{children:r,...n}=e,o=f.Children.toArray(r),a=o.find(k4);if(a){const s=a.props.children,i=o.map(l=>l===a?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:l);return f.createElement(Ui,ge({},n,{ref:t}),f.isValidElement(s)?f.cloneElement(s,void 0,i):null)}return f.createElement(Ui,ge({},n,{ref:t}),r)});Gn.displayName="Slot";const Ui=f.forwardRef((e,t)=>{const{children:r,...n}=e;return f.isValidElement(r)?f.cloneElement(r,{...A4(n,r.props),ref:t?N1(t,r.ref):r.ref}):f.Children.count(r)>1?f.Children.only(null):null});Ui.displayName="SlotClone";const j1=({children:e})=>f.createElement(f.Fragment,null,e);function k4(e){return f.isValidElement(e)&&e.type===j1}function A4(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{a(...i),o(...i)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}const Re=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const r=f.forwardRef((n,o)=>{const{asChild:a,...s}=n,i=a?Gn:t;return f.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),f.createElement(i,ge({},s,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function O4(e,t){e&&hn.flushSync(()=>e.dispatchEvent(t))}function Vt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function N4(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Hi="dismissableLayer.update",j4="dismissableLayer.pointerDownOutside",L4="dismissableLayer.focusOutside";let L1;const _4=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_1=f.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...c}=e,u=f.useContext(_4),[d,p]=f.useState(null),h=(r=d==null?void 0:d.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,g]=f.useState({}),b=pt(t,m=>p(m)),y=Array.from(u.layers),[P]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(P),C=d?y.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,$=C>=x,N=F4(m=>{const D=m.target,I=[...u.branches].some(T=>T.contains(D));!$||I||(a==null||a(m),i==null||i(m),m.defaultPrevented||l==null||l())},h),j=V4(m=>{const D=m.target;[...u.branches].some(T=>T.contains(D))||(s==null||s(m),i==null||i(m),m.defaultPrevented||l==null||l())},h);return N4(m=>{C===u.layers.size-1&&(o==null||o(m),!m.defaultPrevented&&l&&(m.preventDefault(),l()))},h),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(L1=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),F1(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=L1)}},[d,h,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),F1())},[d,u]),f.useEffect(()=>{const m=()=>g({});return document.addEventListener(Hi,m),()=>document.removeEventListener(Hi,m)},[]),f.createElement(Re.div,ge({},c,{ref:b,style:{pointerEvents:S?$?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,j.onFocusCapture),onBlurCapture:je(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,N.onPointerDownCapture)}))});function F4(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){V1(j4,r,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function V4(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e),n=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!n.current&&V1(L4,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function F1(){const e=new CustomEvent(Hi);document.dispatchEvent(e)}function V1(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?O4(o,a):o.dispatchEvent(a)}const tn=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},z4=G["useId".toString()]||(()=>{});let W4=0;function Ea(e){const[t,r]=G.useState(z4());return tn(()=>{e||r(n=>n??String(W4++))},[e]),e||(t?`radix-${t}`:"")}const B4=["top","right","bottom","left"],or=Math.min,st=Math.max,$a=Math.round,Da=Math.floor,ar=e=>({x:e,y:e}),R4={left:"right",right:"left",bottom:"top",top:"bottom"},K4={start:"end",end:"start"};function Yi(e,t,r){return st(e,or(t,r))}function zt(e,t){return typeof e=="function"?e(t):e}function Wt(e){return e.split("-")[0]}function rn(e){return e.split("-")[1]}function Gi(e){return e==="x"?"y":"x"}function qi(e){return e==="y"?"height":"width"}function nn(e){return["top","bottom"].includes(Wt(e))?"y":"x"}function Qi(e){return Gi(nn(e))}function U4(e,t,r){r===void 0&&(r=!1);const n=rn(e),o=Qi(e),a=qi(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ia(s)),[s,Ia(s)]}function H4(e){const t=Ia(e);return[Xi(e),t,Xi(t)]}function Xi(e){return e.replace(/start|end/g,t=>K4[t])}function Y4(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:s;default:return[]}}function G4(e,t,r,n){const o=rn(e);let a=Y4(Wt(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Xi)))),a}function Ia(e){return e.replace(/left|right|bottom|top/g,t=>R4[t])}function q4(e){return{top:0,right:0,bottom:0,left:0,...e}}function z1(e){return typeof e!="number"?q4(e):{top:e,right:e,bottom:e,left:e}}function ka(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function W1(e,t,r){let{reference:n,floating:o}=e;const a=nn(t),s=Qi(t),i=qi(s),l=Wt(t),c=a==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,p=n[i]/2-o[i]/2;let h;switch(l){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-o.width,y:d};break;default:h={x:n.x,y:n.y}}switch(rn(t)){case"start":h[s]-=p*(r&&c?-1:1);break;case"end":h[s]+=p*(r&&c?-1:1);break}return h}const Q4=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=W1(c,n,l),p=n,h={},g=0;for(let b=0;b<i.length;b++){const{name:y,fn:P}=i[b],{x,y:C,data:S,reset:$}=await P({x:u,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});if(u=x??u,d=C??d,h={...h,[y]:{...h[y],...S}},$&&g<=50){g++,typeof $=="object"&&($.placement&&(p=$.placement),$.rects&&(c=$.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):$.rects),{x:u,y:d}=W1(c,p,l)),b=-1;continue}}return{x:u,y:d,placement:p,strategy:o,middlewareData:h}};async function qn(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=zt(t,e),g=z1(h),y=i[p?d==="floating"?"reference":"floating":d],P=ka(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:l})),x=d==="floating"?{...s.floating,x:n,y:o}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},$=ka(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:C,strategy:l}):x);return{top:(P.top-$.top+g.top)/S.y,bottom:($.bottom-P.bottom+g.bottom)/S.y,left:(P.left-$.left+g.left)/S.x,right:($.right-P.right+g.right)/S.x}}const B1=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:u=0}=zt(e,t)||{};if(c==null)return{};const d=z1(u),p={x:r,y:n},h=Qi(o),g=qi(h),b=await s.getDimensions(c),y=h==="y",P=y?"top":"left",x=y?"bottom":"right",C=y?"clientHeight":"clientWidth",S=a.reference[g]+a.reference[h]-p[h]-a.floating[g],$=p[h]-a.reference[h],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let j=N?N[C]:0;(!j||!await(s.isElement==null?void 0:s.isElement(N)))&&(j=i.floating[C]||a.floating[g]);const m=S/2-$/2,D=j/2-b[g]/2-1,I=or(d[P],D),T=or(d[x],D),k=I,w=j-b[g]-T,M=j/2-b[g]/2+m,O=Yi(k,M,w),F=!l.arrow&&rn(o)!=null&&M!=O&&a.reference[g]/2-(M<k?I:T)-b[g]/2<0,E=F?M<k?M-k:M-w:0;return{[h]:p[h]+E,data:{[h]:O,centerOffset:M-O-E,...F&&{alignmentOffset:E}},reset:F}}}),X4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...y}=zt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const P=Wt(o),x=Wt(i)===i,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=p||(x||!b?[Ia(i)]:H4(i));!p&&g!=="none"&&S.push(...G4(i,b,g,C));const $=[i,...S],N=await qn(t,y),j=[];let m=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&j.push(N[P]),d){const k=U4(o,s,C);j.push(N[k[0]],N[k[1]])}if(m=[...m,{placement:o,overflows:j}],!j.every(k=>k<=0)){var D,I;const k=(((D=a.flip)==null?void 0:D.index)||0)+1,w=$[k];if(w)return{data:{index:k,overflows:m},reset:{placement:w}};let M=(I=m.filter(O=>O.overflows[0]<=0).sort((O,F)=>O.overflows[1]-F.overflows[1])[0])==null?void 0:I.placement;if(!M)switch(h){case"bestFit":{var T;const O=(T=m.map(F=>[F.placement,F.overflows.filter(E=>E>0).reduce((E,V)=>E+V,0)]).sort((F,E)=>F[1]-E[1])[0])==null?void 0:T[0];O&&(M=O);break}case"initialPlacement":M=i;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function R1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function K1(e){return B4.some(t=>e[t]>=0)}const Z4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=zt(e,t);switch(n){case"referenceHidden":{const a=await qn(t,{...o,elementContext:"reference"}),s=R1(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:K1(s)}}}case"escaped":{const a=await qn(t,{...o,altBoundary:!0}),s=R1(a,r.floating);return{data:{escapedOffsets:s,escaped:K1(s)}}}default:return{}}}}};async function J4(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Wt(r),i=rn(r),l=nn(r)==="y",c=["left","top"].includes(s)?-1:1,u=a&&l?-1:1,d=zt(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof g=="number"&&(h=i==="end"?g*-1:g),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}const e3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await J4(t,e);return{x:r+o.x,y:n+o.y,data:o}}}},t3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:y=>{let{x:P,y:x}=y;return{x:P,y:x}}},...l}=zt(e,t),c={x:r,y:n},u=await qn(t,l),d=nn(Wt(o)),p=Gi(d);let h=c[p],g=c[d];if(a){const y=p==="y"?"top":"left",P=p==="y"?"bottom":"right",x=h+u[y],C=h-u[P];h=Yi(x,h,C)}if(s){const y=d==="y"?"top":"left",P=d==="y"?"bottom":"right",x=g+u[y],C=g-u[P];g=Yi(x,g,C)}const b=i.fn({...t,[p]:h,[d]:g});return{...b,data:{x:b.x-r,y:b.y-n}}}}},r3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=zt(e,t),u={x:r,y:n},d=nn(o),p=Gi(d);let h=u[p],g=u[d];const b=zt(i,t),y=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const C=p==="y"?"height":"width",S=a.reference[p]-a.floating[C]+y.mainAxis,$=a.reference[p]+a.reference[C]-y.mainAxis;h<S?h=S:h>$&&(h=$)}if(c){var P,x;const C=p==="y"?"width":"height",S=["top","left"].includes(Wt(o)),$=a.reference[d]-a.floating[C]+(S&&((P=s.offset)==null?void 0:P[d])||0)+(S?0:y.crossAxis),N=a.reference[d]+a.reference[C]+(S?0:((x=s.offset)==null?void 0:x[d])||0)-(S?y.crossAxis:0);g<$?g=$:g>N&&(g=N)}return{[p]:h,[d]:g}}}},n3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:a}=t,{apply:s=()=>{},...i}=zt(e,t),l=await qn(t,i),c=Wt(r),u=rn(r),d=nn(r)==="y",{width:p,height:h}=n.floating;let g,b;c==="top"||c==="bottom"?(g=c,b=u===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(b=c,g=u==="end"?"top":"bottom");const y=h-l[g],P=p-l[b],x=!t.middlewareData.shift;let C=y,S=P;if(d){const N=p-l.left-l.right;S=u||x?or(P,N):N}else{const N=h-l.top-l.bottom;C=u||x?or(y,N):N}if(x&&!u){const N=st(l.left,0),j=st(l.right,0),m=st(l.top,0),D=st(l.bottom,0);d?S=p-2*(N!==0||j!==0?N+j:st(l.left,l.right)):C=h-2*(m!==0||D!==0?m+D:st(l.top,l.bottom))}await s({...t,availableWidth:S,availableHeight:C});const $=await o.getDimensions(a.floating);return p!==$.width||h!==$.height?{reset:{rects:!0}}:{}}}};function sr(e){return U1(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bt(e){var t;return(t=(U1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function U1(e){return e instanceof Node||e instanceof it(e).Node}function Rt(e){return e instanceof Element||e instanceof it(e).Element}function Et(e){return e instanceof HTMLElement||e instanceof it(e).HTMLElement}function H1(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof it(e).ShadowRoot}function Qn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function o3(e){return["table","td","th"].includes(sr(e))}function Zi(e){const t=Ji(),r=ht(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function a3(e){let t=on(e);for(;Et(t)&&!Aa(t);){if(Zi(t))return t;t=on(t)}return null}function Ji(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Aa(e){return["html","body","#document"].includes(sr(e))}function ht(e){return it(e).getComputedStyle(e)}function Oa(e){return Rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function on(e){if(sr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||H1(e)&&e.host||Bt(e);return H1(t)?t.host:t}function Y1(e){const t=on(e);return Aa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Et(t)&&Qn(t)?t:Y1(t)}function Xn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Y1(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=it(o);return a?t.concat(s,s.visualViewport||[],Qn(o)?o:[],s.frameElement&&r?Xn(s.frameElement):[]):t.concat(o,Xn(o,[],r))}function G1(e){const t=ht(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Et(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=$a(r)!==a||$a(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function el(e){return Rt(e)?e:e.contextElement}function an(e){const t=el(e);if(!Et(t))return ar(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=G1(t);let s=(a?$a(r.width):r.width)/n,i=(a?$a(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const s3=ar(0);function q1(e){const t=it(e);return!Ji()||!t.visualViewport?s3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function i3(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==it(e)?!1:t}function Sr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=el(e);let s=ar(1);t&&(n?Rt(n)&&(s=an(n)):s=an(e));const i=i3(a,r,n)?q1(a):ar(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(a){const p=it(a),h=n&&Rt(n)?it(n):n;let g=p.frameElement;for(;g&&n&&h!==p;){const b=an(g),y=g.getBoundingClientRect(),P=ht(g),x=y.left+(g.clientLeft+parseFloat(P.paddingLeft))*b.x,C=y.top+(g.clientTop+parseFloat(P.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=x,c+=C,g=it(g).frameElement}}return ka({width:u,height:d,x:l,y:c})}function l3(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Et(r),a=Bt(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},i=ar(1);const l=ar(0);if((o||!o&&n!=="fixed")&&((sr(r)!=="body"||Qn(a))&&(s=Oa(r)),Et(r))){const c=Sr(r);i=an(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-s.scrollLeft*i.x+l.x,y:t.y*i.y-s.scrollTop*i.y+l.y}}function c3(e){return Array.from(e.getClientRects())}function Q1(e){return Sr(Bt(e)).left+Oa(e).scrollLeft}function u3(e){const t=Bt(e),r=Oa(e),n=e.ownerDocument.body,o=st(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=st(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Q1(e);const i=-r.scrollTop;return ht(n).direction==="rtl"&&(s+=st(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}function d3(e,t){const r=it(e),n=Bt(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const c=Ji();(!c||c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}function f3(e,t){const r=Sr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Et(e)?an(e):ar(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=n*a.y;return{width:s,height:i,x:l,y:c}}function X1(e,t,r){let n;if(t==="viewport")n=d3(e,r);else if(t==="document")n=u3(Bt(e));else if(Rt(t))n=f3(t,r);else{const o=q1(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return ka(n)}function Z1(e,t){const r=on(e);return r===t||!Rt(r)||Aa(r)?!1:ht(r).position==="fixed"||Z1(r,t)}function p3(e,t){const r=t.get(e);if(r)return r;let n=Xn(e,[],!1).filter(i=>Rt(i)&&sr(i)!=="body"),o=null;const a=ht(e).position==="fixed";let s=a?on(e):e;for(;Rt(s)&&!Aa(s);){const i=ht(s),l=Zi(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Qn(s)&&!l&&Z1(e,s))?n=n.filter(u=>u!==s):o=i,s=on(s)}return t.set(e,n),n}function h3(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?p3(t,this._c):[].concat(r),n],i=s[0],l=s.reduce((c,u)=>{const d=X1(t,u,o);return c.top=st(d.top,c.top),c.right=or(d.right,c.right),c.bottom=or(d.bottom,c.bottom),c.left=st(d.left,c.left),c},X1(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function m3(e){return G1(e)}function g3(e,t,r){const n=Et(t),o=Bt(t),a=r==="fixed",s=Sr(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=ar(0);if(n||!n&&!a)if((sr(t)!=="body"||Qn(o))&&(i=Oa(t)),n){const c=Sr(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=Q1(o));return{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function J1(e,t){return!Et(e)||ht(e).position==="fixed"?null:t?t(e):e.offsetParent}function e0(e,t){const r=it(e);if(!Et(e))return r;let n=J1(e,t);for(;n&&o3(n)&&ht(n).position==="static";)n=J1(n,t);return n&&(sr(n)==="html"||sr(n)==="body"&&ht(n).position==="static"&&!Zi(n))?r:n||a3(e)||r}const v3=async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||e0,a=this.getDimensions;return{reference:g3(t,await o(r),n),floating:{x:0,y:0,...await a(r)}}};function b3(e){return ht(e).direction==="rtl"}const y3={convertOffsetParentRelativeRectToViewportRelativeRect:l3,getDocumentElement:Bt,getClippingRect:h3,getOffsetParent:e0,getElementRects:v3,getClientRects:c3,getDimensions:m3,getScale:an,isElement:Rt,isRTL:b3};function x3(e,t){let r=null,n;const o=Bt(e);function a(){clearTimeout(n),r&&r.disconnect(),r=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(i||t(),!d||!p)return;const h=Da(u),g=Da(o.clientWidth-(c+d)),b=Da(o.clientHeight-(u+p)),y=Da(c),x={rootMargin:-h+"px "+-g+"px "+-b+"px "+-y+"px",threshold:st(0,or(1,l))||1};let C=!0;function S($){const N=$[0].intersectionRatio;if(N!==l){if(!C)return s();N?s(!1,N):n=setTimeout(()=>{s(!1,1e-7)},100)}C=!1}try{r=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(S,x)}r.observe(e)}return s(!0),a}function w3(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=el(e),u=o||a?[...c?Xn(c):[],...Xn(t)]:[];u.forEach(P=>{o&&P.addEventListener("scroll",r,{passive:!0}),a&&P.addEventListener("resize",r)});const d=c&&i?x3(c,r):null;let p=-1,h=null;s&&(h=new ResizeObserver(P=>{let[x]=P;x&&x.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),r()}),c&&!l&&h.observe(c),h.observe(t));let g,b=l?Sr(e):null;l&&y();function y(){const P=Sr(e);b&&(P.x!==b.x||P.y!==b.y||P.width!==b.width||P.height!==b.height)&&r(),b=P,g=requestAnimationFrame(y)}return r(),()=>{u.forEach(P=>{o&&P.removeEventListener("scroll",r),a&&P.removeEventListener("resize",r)}),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const C3=(e,t,r)=>{const n=new Map,o={platform:y3,...r},a={...o.platform,_c:n};return Q4(e,t,{...o,platform:a})},P3=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?B1({element:n.current,padding:o}).fn(r):{}:n?B1({element:n,padding:o}).fn(r):{}}}};var Na=typeof document<"u"?f.useLayoutEffect:f.useEffect;function ja(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ja(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!ja(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function t0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function r0(e,t){const r=t0(e);return Math.round(t*r)/r}function n0(e){const t=G.useRef(e);return Na(()=>{t.current=e}),t}function M3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[u,d]=G.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=G.useState(n);ja(p,n)||h(n);const[g,b]=G.useState(null),[y,P]=G.useState(null),x=G.useCallback(F=>{F!=N.current&&(N.current=F,b(F))},[b]),C=G.useCallback(F=>{F!==j.current&&(j.current=F,P(F))},[P]),S=a||g,$=s||y,N=G.useRef(null),j=G.useRef(null),m=G.useRef(u),D=n0(l),I=n0(o),T=G.useCallback(()=>{if(!N.current||!j.current)return;const F={placement:t,strategy:r,middleware:p};I.current&&(F.platform=I.current),C3(N.current,j.current,F).then(E=>{const V={...E,isPositioned:!0};k.current&&!ja(m.current,V)&&(m.current=V,Cp.flushSync(()=>{d(V)}))})},[p,t,r,I]);Na(()=>{c===!1&&m.current.isPositioned&&(m.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[c]);const k=G.useRef(!1);Na(()=>(k.current=!0,()=>{k.current=!1}),[]),Na(()=>{if(S&&(N.current=S),$&&(j.current=$),S&&$){if(D.current)return D.current(S,$,T);T()}},[S,$,T,D]);const w=G.useMemo(()=>({reference:N,floating:j,setReference:x,setFloating:C}),[x,C]),M=G.useMemo(()=>({reference:S,floating:$}),[S,$]),O=G.useMemo(()=>{const F={position:r,left:0,top:0};if(!M.floating)return F;const E=r0(M.floating,u.x),V=r0(M.floating,u.y);return i?{...F,transform:"translate("+E+"px, "+V+"px)",...t0(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:E,top:V}},[r,i,M.floating,u.x,u.y]);return G.useMemo(()=>({...u,update:T,refs:w,elements:M,floatingStyles:O}),[u,T,w,M,O])}const T3=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return f.createElement(Re.svg,ge({},a,{ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:f.createElement("polygon",{points:"0,0 30,0 15,10"}))});function S3(e){const[t,r]=f.useState(void 0);return tn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const o0="Popper",[a0,La]=en(o0),[E3,s0]=a0(o0),$3=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return f.createElement(E3,{scope:t,anchor:n,onAnchorChange:o},r)},D3="PopperAnchor",I3=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=s0(D3,r),s=f.useRef(null),i=pt(t,s);return f.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||s.current)}),n?null:f.createElement(Re.div,ge({},o,{ref:i}))}),i0="PopperContent",[k3,A3]=a0(i0),O3=f.forwardRef((e,t)=>{var r,n,o,a,s,i,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:p=0,align:h="center",alignOffset:g=0,arrowPadding:b=0,avoidCollisions:y=!0,collisionBoundary:P=[],collisionPadding:x=0,sticky:C="partial",hideWhenDetached:S=!1,updatePositionStrategy:$="optimized",onPlaced:N,...j}=e,m=s0(i0,u),[D,I]=f.useState(null),T=pt(t,Z=>I(Z)),[k,w]=f.useState(null),M=S3(k),O=(r=M==null?void 0:M.width)!==null&&r!==void 0?r:0,F=(n=M==null?void 0:M.height)!==null&&n!==void 0?n:0,E=d+(h!=="center"?"-"+h:""),V=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},H=Array.isArray(P)?P:[P],R=H.length>0,W={padding:V,boundary:H.filter(_3),altBoundary:R},{refs:ee,floatingStyles:U,placement:re,isPositioned:X,middlewareData:te}=M3({strategy:"fixed",placement:E,whileElementsMounted:(...Z)=>w3(...Z,{animationFrame:$==="always"}),elements:{reference:m.anchor},middleware:[e3({mainAxis:p+F,alignmentAxis:g}),y&&t3({mainAxis:!0,crossAxis:!1,limiter:C==="partial"?r3():void 0,...W}),y&&X4({...W}),n3({...W,apply:({elements:Z,rects:Oe,availableWidth:_e,availableHeight:Fe})=>{const{width:Ie,height:It}=Oe.reference,mt=Z.floating.style;mt.setProperty("--radix-popper-available-width",`${_e}px`),mt.setProperty("--radix-popper-available-height",`${Fe}px`),mt.setProperty("--radix-popper-anchor-width",`${Ie}px`),mt.setProperty("--radix-popper-anchor-height",`${It}px`)}}),k&&P3({element:k,padding:b}),F3({arrowWidth:O,arrowHeight:F}),S&&Z4({strategy:"referenceHidden",...W})]}),[ce,be]=l0(re),pe=Vt(N);tn(()=>{X&&(pe==null||pe())},[X,pe]);const fe=(o=te.arrow)===null||o===void 0?void 0:o.x,he=(a=te.arrow)===null||a===void 0?void 0:a.y,Te=((s=te.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Se,ae]=f.useState();return tn(()=>{D&&ae(window.getComputedStyle(D).zIndex)},[D]),f.createElement("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:X?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[(i=te.transformOrigin)===null||i===void 0?void 0:i.x,(l=te.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},f.createElement(k3,{scope:u,placedSide:ce,onArrowChange:w,arrowX:fe,arrowY:he,shouldHideArrow:Te},f.createElement(Re.div,ge({"data-side":ce,"data-align":be},j,{ref:T,style:{...j.style,animation:X?void 0:"none",opacity:(c=te.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),N3="PopperArrow",j3={top:"bottom",right:"left",bottom:"top",left:"right"},L3=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=A3(N3,n),s=j3[a.placedSide];return f.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},f.createElement(T3,ge({},o,{ref:r,style:{...o.style,display:"block"}})))});function _3(e){return e!==null}const F3=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,a,s;const{placement:i,rects:l,middlewareData:c}=t,d=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,p=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[g,b]=l0(i),y={start:"0%",center:"50%",end:"100%"}[b],P=((n=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)+p/2,x=((a=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)+h/2;let C="",S="";return g==="bottom"?(C=d?y:`${P}px`,S=`${-h}px`):g==="top"?(C=d?y:`${P}px`,S=`${l.floating.height+h}px`):g==="right"?(C=`${-h}px`,S=d?y:`${x}px`):g==="left"&&(C=`${l.floating.width+h}px`,S=d?y:`${x}px`),{data:{x:C,y:S}}}});function l0(e){const[t,r="center"]=e.split("-");return[t,r]}const c0=$3,u0=I3,d0=O3,V3=L3,f0=f.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...o}=e;return n?hn.createPortal(f.createElement(Re.div,ge({},o,{ref:t})),n):null});function z3(e,t){return f.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const sn=e=>{const{present:t,children:r}=e,n=W3(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),a=pt(n.ref,o.ref);return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:a}):null};sn.displayName="Presence";function W3(e){const[t,r]=f.useState(),n=f.useRef({}),o=f.useRef(e),a=f.useRef("none"),s=e?"mounted":"unmounted",[i,l]=z3(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=_a(n.current);a.current=i==="mounted"?c:"none"},[i]),tn(()=>{const c=n.current,u=o.current;if(u!==e){const p=a.current,h=_a(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),tn(()=>{if(t){const c=d=>{const h=_a(n.current).includes(d.animationName);d.target===t&&h&&hn.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===t&&(a.current=_a(n.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:f.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function _a(e){return(e==null?void 0:e.animationName)||"none"}function Fa({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=B3({defaultProp:t,onChange:r}),a=e!==void 0,s=a?e:n,i=Vt(r),l=f.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&i(d)}else o(c)},[a,e,o,i]);return[s,l]}function B3({defaultProp:e,onChange:t}){const r=f.useState(e),[n]=r,o=f.useRef(n),a=Vt(t);return f.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}const R3=f.forwardRef((e,t)=>f.createElement(Re.span,ge({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[Va,Zx]=en("Tooltip",[La]),za=La(),K3="TooltipProvider",U3=700,tl="tooltip.open",[H3,rl]=Va(K3),Y3=e=>{const{__scopeTooltip:t,delayDuration:r=U3,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,[s,i]=f.useState(!0),l=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),f.createElement(H3,{scope:t,isOpenDelayed:s,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),i(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:o},a)},nl="Tooltip",[G3,Zn]=Va(nl),q3=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=rl(nl,e.__scopeTooltip),c=za(t),[u,d]=f.useState(null),p=Ea(),h=f.useRef(0),g=s??l.disableHoverableContent,b=i??l.delayDuration,y=f.useRef(!1),[P=!1,x]=Fa({prop:n,defaultProp:o,onChange:j=>{j?(l.onOpen(),document.dispatchEvent(new CustomEvent(tl))):l.onClose(),a==null||a(j)}}),C=f.useMemo(()=>P?y.current?"delayed-open":"instant-open":"closed",[P]),S=f.useCallback(()=>{window.clearTimeout(h.current),y.current=!1,x(!0)},[x]),$=f.useCallback(()=>{window.clearTimeout(h.current),x(!1)},[x]),N=f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,x(!0)},b)},[b,x]);return f.useEffect(()=>()=>window.clearTimeout(h.current),[]),f.createElement(c0,c,f.createElement(G3,{scope:t,contentId:p,open:P,stateAttribute:C,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayed?N():S()},[l.isOpenDelayed,N,S]),onTriggerLeave:f.useCallback(()=>{g?$():window.clearTimeout(h.current)},[$,g]),onOpen:S,onClose:$,disableHoverableContent:g},r))},p0="TooltipTrigger",Q3=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Zn(p0,r),a=rl(p0,r),s=za(r),i=f.useRef(null),l=pt(t,i,o.onTriggerChange),c=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.createElement(u0,ge({asChild:!0},s),f.createElement(Re.button,ge({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},n,{ref:l,onPointerMove:je(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:je(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:je(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:je(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:je(e.onBlur,o.onClose),onClick:je(e.onClick,o.onClose)})))}),h0="TooltipPortal",[X3,Z3]=Va(h0,{forceMount:void 0}),J3=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=Zn(h0,t);return f.createElement(X3,{scope:t,forceMount:r},f.createElement(sn,{present:r||a.open},f.createElement(f0,{asChild:!0,container:o},n)))},Jn="TooltipContent",e6=f.forwardRef((e,t)=>{const r=Z3(Jn,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=Zn(Jn,e.__scopeTooltip);return f.createElement(sn,{present:n||s.open},s.disableHoverableContent?f.createElement(m0,ge({side:o},a,{ref:t})):f.createElement(t6,ge({side:o},a,{ref:t})))}),t6=f.forwardRef((e,t)=>{const r=Zn(Jn,e.__scopeTooltip),n=rl(Jn,e.__scopeTooltip),o=f.useRef(null),a=pt(t,o),[s,i]=f.useState(null),{trigger:l,onClose:c}=r,u=o.current,{onPointerInTransitChange:d}=n,p=f.useCallback(()=>{i(null),d(!1)},[d]),h=f.useCallback((g,b)=>{const y=g.currentTarget,P={x:g.clientX,y:g.clientY},x=s6(P,y.getBoundingClientRect()),C=i6(P,x),S=l6(b.getBoundingClientRect()),$=u6([...C,...S]);i($),d(!0)},[d]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(l&&u){const g=y=>h(y,u),b=y=>h(y,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",b)}}},[l,u,h,p]),f.useEffect(()=>{if(s){const g=b=>{const y=b.target,P={x:b.clientX,y:b.clientY},x=(l==null?void 0:l.contains(y))||(u==null?void 0:u.contains(y)),C=!c6(P,s);x?p():C&&(p(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,s,c,p]),f.createElement(m0,ge({},e,{ref:a}))}),[r6,n6]=Va(nl,{isInside:!1}),m0=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=Zn(Jn,r),c=za(r),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(tl,u),()=>document.removeEventListener(tl,u)),[u]),f.useEffect(()=>{if(l.trigger){const d=p=>{const h=p.target;h!=null&&h.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),f.createElement(_1,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},f.createElement(d0,ge({"data-state":l.stateAttribute},c,i,{ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),f.createElement(j1,null,n),f.createElement(r6,{scope:r,isInside:!0},f.createElement(R3,{id:l.contentId,role:"tooltip"},o||n))))}),o6="TooltipArrow",a6=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=za(r);return n6(o6,r).isInside?null:f.createElement(V3,ge({},o,n,{ref:t}))});function s6(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function i6(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function l6(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function c6(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a].x,l=t[a].y,c=t[s].x,u=t[s].y;l>n!=u>n&&r<(c-i)*(n-l)/(u-l)+i&&(o=!o)}return o}function u6(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),d6(t)}function d6(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}const f6=Y3,p6=q3,h6=Q3,m6=J3,g6=e6,v6=a6,b6=({children:e,showArrow:t=!1,startOpen:r=!1,content:n,hasCloseButton:o=!1,action:a,size:s="sm"})=>{const[i,l]=f.useState(r),c=we({base:"rounded-lg bg-primary-black-400 px-4 pb-[13px] pt-[12px] font-satoshi text-sm font-medium text-white",variants:{size:{sm:"max-w-[215px]",lg:"max-w-[342px]"}}}),u=()=>{l(!1)},d=()=>{a&&a.onClick(),u()};return L.jsx(f6,{children:L.jsxs(p6,{delayDuration:0,defaultOpen:i,open:i,onOpenChange:p=>l(p),children:[L.jsx(h6,{asChild:!0,children:e}),L.jsx(m6,{children:L.jsxs(g6,{className:c({size:s}),sideOffset:5,children:[L.jsxs("div",{children:[L.jsxs("div",{className:"flex gap-4",children:[n,o&&L.jsx(Ue,{onClick:u,name:"close",className:"mt-1 cursor-pointer text-xs text-white"})]}),a&&L.jsx(Wi,{className:"-mb-1 mt-1 !h-6 !px-0",variant:"tertiaryDark",onClick:d,children:a.label})]}),t&&L.jsx(v6,{className:"TooltipArrow"})]})})]})})};function y6(e){const t=e+"CollectionProvider",[r,n]=en(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:g,children:b}=h,y=f.useRef(null),P=f.useRef(new Map).current;return f.createElement(o,{scope:g,itemMap:P,collectionRef:y},b)},i=e+"CollectionSlot",l=f.forwardRef((h,g)=>{const{scope:b,children:y}=h,P=a(i,b),x=pt(g,P.collectionRef);return f.createElement(Gn,{ref:x},y)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=f.forwardRef((h,g)=>{const{scope:b,children:y,...P}=h,x=f.useRef(null),C=pt(g,x),S=a(c,b);return f.useEffect(()=>(S.itemMap.set(x,{ref:x,...P}),()=>void S.itemMap.delete(x))),f.createElement(Gn,{[u]:"",ref:C},y)});function p(h){const g=a(e+"CollectionConsumer",h);return f.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const P=Array.from(y.querySelectorAll(`[${u}]`));return Array.from(g.itemMap.values()).sort((S,$)=>P.indexOf(S.ref.current)-P.indexOf($.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},p,n]}const x6=f.createContext(void 0);function g0(e){const t=f.useContext(x6);return e||t||"ltr"}const ol="rovingFocusGroup.onEntryFocus",w6={bubbles:!1,cancelable:!0},al="RovingFocusGroup",[sl,v0,C6]=y6(al),[P6,b0]=en(al,[C6]),[M6,T6]=P6(al),S6=f.forwardRef((e,t)=>f.createElement(sl.Provider,{scope:e.__scopeRovingFocusGroup},f.createElement(sl.Slot,{scope:e.__scopeRovingFocusGroup},f.createElement(E6,ge({},e,{ref:t}))))),E6=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=f.useRef(null),p=pt(t,d),h=g0(a),[g=null,b]=Fa({prop:s,defaultProp:i,onChange:l}),[y,P]=f.useState(!1),x=Vt(c),C=v0(r),S=f.useRef(!1),[$,N]=f.useState(0);return f.useEffect(()=>{const j=d.current;if(j)return j.addEventListener(ol,x),()=>j.removeEventListener(ol,x)},[x]),f.createElement(M6,{scope:r,orientation:n,dir:h,loop:o,currentTabStopId:g,onItemFocus:f.useCallback(j=>b(j),[b]),onItemShiftTab:f.useCallback(()=>P(!0),[]),onFocusableItemAdd:f.useCallback(()=>N(j=>j+1),[]),onFocusableItemRemove:f.useCallback(()=>N(j=>j-1),[])},f.createElement(Re.div,ge({tabIndex:y||$===0?-1:0,"data-orientation":n},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:je(e.onMouseDown,()=>{S.current=!0}),onFocus:je(e.onFocus,j=>{const m=!S.current;if(j.target===j.currentTarget&&m&&!y){const D=new CustomEvent(ol,w6);if(j.currentTarget.dispatchEvent(D),!D.defaultPrevented){const I=C().filter(O=>O.focusable),T=I.find(O=>O.active),k=I.find(O=>O.id===g),M=[T,k,...I].filter(Boolean).map(O=>O.ref.current);y0(M)}}S.current=!1}),onBlur:je(e.onBlur,()=>P(!1))})))}),$6="RovingFocusGroupItem",D6=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,...s}=e,i=Ea(),l=a||i,c=T6($6,r),u=c.currentTabStopId===l,d=v0(r),{onFocusableItemAdd:p,onFocusableItemRemove:h}=c;return f.useEffect(()=>{if(n)return p(),()=>h()},[n,p,h]),f.createElement(sl.ItemSlot,{scope:r,id:l,focusable:n,active:o},f.createElement(Re.span,ge({tabIndex:u?0:-1,"data-orientation":c.orientation},s,{ref:t,onMouseDown:je(e.onMouseDown,g=>{n?c.onItemFocus(l):g.preventDefault()}),onFocus:je(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:je(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=A6(g,c.orientation,c.dir);if(b!==void 0){g.preventDefault();let P=d().filter(x=>x.focusable).map(x=>x.ref.current);if(b==="last")P.reverse();else if(b==="prev"||b==="next"){b==="prev"&&P.reverse();const x=P.indexOf(g.currentTarget);P=c.loop?O6(P,x+1):P.slice(x+1)}setTimeout(()=>y0(P))}})})))}),I6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k6(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function A6(e,t,r){const n=k6(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return I6[n]}function y0(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function O6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const N6=S6,j6=D6,x0="Tabs",[L6,Jx]=en(x0,[b0]),w0=b0(),[_6,il]=L6(x0),F6=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...c}=e,u=g0(i),[d,p]=Fa({prop:n,onChange:o,defaultProp:a});return f.createElement(_6,{scope:r,baseId:Ea(),value:d,onValueChange:p,orientation:s,dir:u,activationMode:l},f.createElement(Re.div,ge({dir:u,"data-orientation":s},c,{ref:t})))}),V6="TabsList",z6=f.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=il(V6,r),s=w0(r);return f.createElement(N6,ge({asChild:!0},s,{orientation:a.orientation,dir:a.dir,loop:n}),f.createElement(Re.div,ge({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),W6="TabsTrigger",B6=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,s=il(W6,r),i=w0(r),l=C0(s.baseId,n),c=P0(s.baseId,n),u=n===s.value;return f.createElement(j6,ge({asChild:!0},i,{focusable:!o,active:u}),f.createElement(Re.button,ge({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},a,{ref:t,onMouseDown:je(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?s.onValueChange(n):d.preventDefault()}),onKeyDown:je(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(n)}),onFocus:je(e.onFocus,()=>{const d=s.activationMode!=="manual";!u&&!o&&d&&s.onValueChange(n)})})))}),R6="TabsContent",K6=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...s}=e,i=il(R6,r),l=C0(i.baseId,n),c=P0(i.baseId,n),u=n===i.value,d=f.useRef(u);return f.useEffect(()=>{const p=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(p)},[]),f.createElement(sn,{present:o||u},({present:p})=>f.createElement(Re.div,ge({"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!p,id:c,tabIndex:0},s,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),p&&a))});function C0(e,t){return`${e}-trigger-${t}`}function P0(e,t){return`${e}-content-${t}`}const U6=F6,H6=z6,Y6=B6,G6=K6,q6=({tabs:e,defaultValue:t,variant:r="button",className:n,...o})=>{const a=we({base:"",variants:{variant:{underline:"",button:""}}}),s=we({base:"flex flex-row",variants:{variant:{underline:"",button:""}}}),i=we({base:"flex h-[82px] w-[197px] items-center justify-center gap-2 text-lg font-medium text-primary-grey-700 hover:text-primary-grey-800 data-[state=active]:font-bold data-[state=active]:text-secondary-green-500",variants:{variant:{underline:"border-b border-primary-grey-600 border-t-transparent hover:border-b-4 hover:border-t-3 hover:border-b-primary-grey-700 hover:font-bold data-[state=active]:border-b-4 data-[state=active]:border-t-3 data-[state=active]:border-b-secondary-green-500 data-[state=active]:text-secondary-green-500",button:"relative z-0 -mr-[1px] rounded-none border border-primary-grey-600 first:rounded-l-xl last:rounded-r-xl hover:z-10 hover:border-2 hover:border-primary-grey-800 data-[state=active]:z-20 data-[state=active]:border-2 data-[state=active]:border-secondary-green-500"}}});return L.jsxs(U6,{defaultValue:t??e[0].key,className:a({variant:r,className:n}),...o,children:[L.jsx(H6,{className:s({variant:r}),children:e.map(({icon:l,key:c,title:u})=>L.jsxs(Y6,{value:c,className:i({variant:r}),children:[l&&(typeof l=="string"?L.jsx(Ue,{className:"-mt-[1px]",name:l}):l),u]},c))}),e.map(({content:l,key:c})=>L.jsx(G6,{value:c,children:l},c))]})},ll=f.forwardRef(({disabled:e,isDatePicker:t,isInvalid:r,isValid:n,className:o,icon:a,message:s,iconAction:i,...l},c)=>{const u=we({base:"[&_input]:data-[filled-within=true]:!bg-transparent [&_label]:data-[filled-within=true]:!left-[15px] [&_label]:data-[filled-within=true]:!top-[20px] [&_label]:data-[filled-within=true]:!ml-[1px] [&_label]:data-[filled-within=true]:!text-xs [&_label]:data-[filled-within=true]:!text-primary-grey-800",variants:{isInvalid:{true:"[&_label]:data-[filled-within=true]:!text-complementary-red-500"},isValid:{true:"[&_label]:data-[filled-within=true]:!text-secondary-green-500"},disabled:{true:"[&_label]:data-[filled-within=true]:!text-primary-grey-700"}}}),d=we({base:"left-[15px] top-6 font-satoshi font-satoshi text-base text-sm text-primary-grey-800",variants:{isInvalid:{true:"text-complementary-red-500"},isValid:{true:"text-secondary-green-500"},disabled:{true:"text-primary-grey-700"}}}),p=we({base:"text-left font-satoshi text-base",variants:{disabled:{true:"!text-primary-grey-700"},isDatePicker:{true:"!cursor-pointer"}}}),h=we({base:"h-12 rounded-lg border border-primary-grey-700 !bg-white px-[15px] text-black !ring-0 !ring-offset-0",variants:{isInvalid:{true:"border-complementary-red-500"},isValid:{true:"border-secondary-green-500"},disabled:{true:"!border-primary-grey-500 !bg-primary-grey-500"},isDatePicker:{true:"!cursor-pointer"}}}),g=we({base:"mt-[5px] pl-3 font-satoshi",variants:{isInvalid:{true:"text-complementary-red-500"},isValid:{true:"text-secondary-green-500"}}}),b=we({base:"text-primary-grey-800",variants:{iconAction:{true:"cursor-pointer"}}}),{Component:y,label:P,domRef:x,startContent:C,shouldLabelBeOutside:S,shouldLabelBeInside:$,getBaseProps:N,getLabelProps:j,getInputProps:m,getInnerWrapperProps:D,getInputWrapperProps:I,getDescriptionProps:T}=Iy({...l,disabled:e,labelPlacement:"outside",ref:c,classNames:{input:p({disabled:e,isDatePicker:t}),inputWrapper:h({isInvalid:r,isValid:n,disabled:e,isDatePicker:t}),base:u({isInvalid:r,isValid:n,disabled:e,className:o}),label:d({isInvalid:r,isValid:n,disabled:e}),description:g({isInvalid:r,isValid:n})}}),k=L.jsx("label",{...j(),children:P}),w=f.useMemo(()=>C||a?L.jsxs("div",{...D(),children:[C,L.jsx("input",{...m()}),a&&(typeof a=="string"?L.jsx(Ue,{onClick:i,name:a,className:b({iconAction:!!i})}):a)]}):L.jsx("input",{...m()}),[C,i,b,a,m,D]);return L.jsxs(y,{...N(),children:[S?k:null,L.jsxs("div",{...I(),role:"button",onClick:()=>{var M;(M=x.current)==null||M.focus()},children:[$?k:null,w]}),s&&L.jsx("div",{...T(),children:s})]})}),Q6=f.forwardRef((e,t)=>{const[r,n]=f.useState(!1),o=()=>{n(a=>!a)};return L.jsx(ll,{ref:t,icon:r?"eye":"eye-off",type:r?"text":"password",iconAction:o,...e})});let cl=0;function X6(){f.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:M0()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:M0()),cl++,()=>{cl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),cl--}},[])}function M0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const ul="focusScope.autoFocusOnMount",dl="focusScope.autoFocusOnUnmount",T0={bubbles:!1,cancelable:!0},Z6=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=f.useState(null),c=Vt(o),u=Vt(a),d=f.useRef(null),p=pt(t,b=>l(b)),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let b=function(C){if(h.paused||!i)return;const S=C.target;i.contains(S)?d.current=S:ir(d.current,{select:!0})},y=function(C){if(h.paused||!i)return;const S=C.relatedTarget;S!==null&&(i.contains(S)||ir(d.current,{select:!0}))},P=function(C){if(document.activeElement===document.body)for(const $ of C)$.removedNodes.length>0&&ir(i)};document.addEventListener("focusin",b),document.addEventListener("focusout",y);const x=new MutationObserver(P);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",y),x.disconnect()}}},[n,i,h.paused]),f.useEffect(()=>{if(i){$0.add(h);const b=document.activeElement;if(!i.contains(b)){const P=new CustomEvent(ul,T0);i.addEventListener(ul,c),i.dispatchEvent(P),P.defaultPrevented||(J6(o7(S0(i)),{select:!0}),document.activeElement===b&&ir(i))}return()=>{i.removeEventListener(ul,c),setTimeout(()=>{const P=new CustomEvent(dl,T0);i.addEventListener(dl,u),i.dispatchEvent(P),P.defaultPrevented||ir(b??document.body,{select:!0}),i.removeEventListener(dl,u),$0.remove(h)},0)}}},[i,c,u,h]);const g=f.useCallback(b=>{if(!r&&!n||h.paused)return;const y=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,P=document.activeElement;if(y&&P){const x=b.currentTarget,[C,S]=e7(x);C&&S?!b.shiftKey&&P===S?(b.preventDefault(),r&&ir(C,{select:!0})):b.shiftKey&&P===C&&(b.preventDefault(),r&&ir(S,{select:!0})):P===x&&b.preventDefault()}},[r,n,h.paused]);return f.createElement(Re.div,ge({tabIndex:-1},s,{ref:p,onKeyDown:g}))});function J6(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ir(n,{select:t}),document.activeElement!==r)return}function e7(e){const t=S0(e),r=E0(t,e),n=E0(t.reverse(),e);return[r,n]}function S0(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function E0(e,t){for(const r of e)if(!t7(r,{upTo:t}))return r}function t7(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 r7(e){return e instanceof HTMLInputElement&&"select"in e}function ir(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&r7(e)&&t&&e.select()}}const $0=n7();function n7(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=D0(e,t),e.unshift(t)},remove(t){var r;e=D0(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function D0(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function o7(e){return e.filter(t=>t.tagName!=="A")}var a7=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ln=new WeakMap,Wa=new WeakMap,Ba={},fl=0,I0=function(e){return e&&(e.host||I0(e.parentNode))},s7=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=I0(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},i7=function(e,t,r,n){var o=s7(t,Array.isArray(e)?e:[e]);Ba[r]||(Ba[r]=new WeakMap);var a=Ba[r],s=[],i=new Set,l=new Set(o),c=function(d){!d||i.has(d)||(i.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(i.has(p))u(p);else{var h=p.getAttribute(n),g=h!==null&&h!=="false",b=(ln.get(p)||0)+1,y=(a.get(p)||0)+1;ln.set(p,b),a.set(p,y),s.push(p),b===1&&g&&Wa.set(p,!0),y===1&&p.setAttribute(r,"true"),g||p.setAttribute(n,"true")}})};return u(t),i.clear(),fl++,function(){s.forEach(function(d){var p=ln.get(d)-1,h=a.get(d)-1;ln.set(d,p),a.set(d,h),p||(Wa.has(d)||d.removeAttribute(n),Wa.delete(d)),h||d.removeAttribute(r)}),fl--,fl||(ln=new WeakMap,ln=new WeakMap,Wa=new WeakMap,Ba={})}},l7=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||a7(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),i7(n,o,r,"aria-hidden")):function(){return null}},k0=Fy(),pl=function(){},Ra=G.forwardRef(function(e,t){var r=G.useRef(null),n=G.useState({onScrollCapture:pl,onWheelCapture:pl,onTouchMoveCapture:pl}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,h=e.noIsolation,g=e.inert,b=e.allowPinchZoom,y=e.as,P=y===void 0?"div":y,x=Ic(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),C=p,S=jy([r,t]),$=Pt(Pt({},x),o);return G.createElement(G.Fragment,null,u&&G.createElement(C,{sideCar:k0,removeScrollBar:c,shards:d,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!b,lockRef:r}),s?G.cloneElement(G.Children.only(i),Pt(Pt({},$),{ref:S})):G.createElement(P,Pt({},$,{className:l,ref:S}),i))});Ra.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ra.classNames={fullWidth:xa,zeroRight:ya};var hl=!1;if(typeof window<"u")try{var Ka=Object.defineProperty({},"passive",{get:function(){return hl=!0,!0}});window.addEventListener("test",Ka,Ka),window.removeEventListener("test",Ka,Ka)}catch{hl=!1}var cn=hl?{passive:!1}:!1,c7=function(e){return e.tagName==="TEXTAREA"},A0=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!c7(e)&&r[t]==="visible")},u7=function(e){return A0(e,"overflowY")},d7=function(e){return A0(e,"overflowX")},O0=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=N0(e,r);if(n){var o=j0(e,r),a=o[1],s=o[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},f7=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},p7=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},N0=function(e,t){return e==="v"?u7(t):d7(t)},j0=function(e,t){return e==="v"?f7(t):p7(t)},h7=function(e,t){return e==="h"&&t==="rtl"?-1:1},m7=function(e,t,r,n,o){var a=h7(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,l=t.contains(i),c=!1,u=s>0,d=0,p=0;do{var h=j0(e,i),g=h[0],b=h[1],y=h[2],P=b-y-a*g;(g||P)&&N0(e,i)&&(d+=P,p+=g),i=i.parentNode}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(u&&(o&&d===0||!o&&s>d)||!u&&(o&&p===0||!o&&-s>p))&&(c=!0),c},Ua=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L0=function(e){return[e.deltaX,e.deltaY]},_0=function(e){return e&&"current"in e?e.current:e},g7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},v7=function(e){return`
|
|
73
73
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
74
74
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
75
|
-
`)},b7=0,un=[];function y7(e){var t=G.useRef([]),r=G.useRef([0,0]),n=G.useRef(),o=G.useState(b7++)[0],a=G.useState(function(){return bp()})[0],s=G.useRef(e);G.useEffect(function(){s.current=e},[e]),G.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var b=G1([e.lockRef.current],(e.shards||[]).map(_0),!0).filter(Boolean);return b.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),b.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=G.useCallback(function(b,y){if("touches"in b&&b.touches.length===2)return!s.current.allowPinchZoom;var P=Ua(b),x=r.current,C="deltaX"in b?b.deltaX:x[0]-P[0],S="deltaY"in b?b.deltaY:x[1]-P[1],$,N=b.target,j=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in b&&j==="h"&&N.type==="range")return!1;var m=O0(j,N);if(!m)return!0;if(m?$=j:($=j==="v"?"h":"v",m=O0(j,N)),!m)return!1;if(!n.current&&"changedTouches"in b&&(C||S)&&(n.current=$),!$)return!0;var D=n.current||$;return m7(D,y,b,D==="h"?C:S,!0)},[]),l=G.useCallback(function(b){var y=b;if(!(!un.length||un[un.length-1]!==a)){var P="deltaY"in y?L0(y):Ua(y),x=t.current.filter(function($){return $.name===y.type&&$.target===y.target&&g7($.delta,P)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(_0).filter(Boolean).filter(function($){return $.contains(y.target)}),S=C.length>0?i(y,C[0]):!s.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),c=G.useCallback(function(b,y,P,x){var C={name:b,delta:y,target:P,should:x};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),u=G.useCallback(function(b){r.current=Ua(b),n.current=void 0},[]),d=G.useCallback(function(b){c(b.type,L0(b),b.target,i(b,e.lockRef.current))},[]),p=G.useCallback(function(b){c(b.type,Ua(b),b.target,i(b,e.lockRef.current))},[]);G.useEffect(function(){return un.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,cn),document.addEventListener("touchmove",l,cn),document.addEventListener("touchstart",u,cn),function(){un=un.filter(function(b){return b!==a}),document.removeEventListener("wheel",l,cn),document.removeEventListener("touchmove",l,cn),document.removeEventListener("touchstart",u,cn)}},[]);var h=e.removeScrollBar,g=e.inert;return G.createElement(G.Fragment,null,g?G.createElement(a,{styles:v7(o)}):null,h?G.createElement(X5,{gapMode:"margin"}):null)}const x7=V5(k0,y7);var F0=G.forwardRef(function(e,t){return G.createElement(Ra,Pt({},e,{ref:t,sideCar:x7}))});F0.classNames=Ra.classNames;const w7=F0,V0="Popover",[z0,ew]=en(V0,[La]),ml=La(),[C7,Er]=z0(V0),P7=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=ml(t),l=f.useRef(null),[c,u]=f.useState(!1),[d=!1,p]=Fa({prop:n,defaultProp:o,onChange:a});return f.createElement(c0,i,f.createElement(C7,{scope:t,contentId:Ea(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(h=>!h),[p]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>u(!0),[]),onCustomAnchorRemove:f.useCallback(()=>u(!1),[]),modal:s},r))},M7="PopoverTrigger",T7=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Er(M7,r),a=ml(r),s=pt(t,o.triggerRef),i=f.createElement(Re.button,ge({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":R0(o.open)},n,{ref:s,onClick:je(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?i:f.createElement(u0,ge({asChild:!0},a),i)}),W0="PopoverPortal",[S7,E7]=z0(W0,{forceMount:void 0}),$7=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=Er(W0,t);return f.createElement(S7,{scope:t,forceMount:r},f.createElement(sn,{present:r||a.open},f.createElement(f0,{asChild:!0,container:o},n)))},eo="PopoverContent",D7=f.forwardRef((e,t)=>{const r=E7(eo,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Er(eo,e.__scopePopover);return f.createElement(sn,{present:n||a.open},a.modal?f.createElement(I7,ge({},o,{ref:t})):f.createElement(k7,ge({},o,{ref:t})))}),I7=f.forwardRef((e,t)=>{const r=Er(eo,e.__scopePopover),n=f.useRef(null),o=pt(t,n),a=f.useRef(!1);return f.useEffect(()=>{const s=n.current;if(s)return l7(s)},[]),f.createElement(w7,{as:Gn,allowPinchZoom:!0},f.createElement(B0,ge({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,c=i.button===2||l;a.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:je(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),k7=f.forwardRef((e,t)=>{const r=Er(eo,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return f.createElement(B0,ge({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,a),!a.defaultPrevented){var i;n.current||(i=r.triggerRef.current)===null||i===void 0||i.focus(),a.preventDefault()}n.current=!1,o.current=!1},onInteractOutside:a=>{var s,i;(s=e.onInteractOutside)===null||s===void 0||s.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((i=r.triggerRef.current)===null||i===void 0?void 0:i.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),B0=f.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,p=Er(eo,r),h=ml(r);return X6(),f.createElement(Z6,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a},f.createElement(_p,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1)},f.createElement(d0,ge({"data-state":R0(p.open),role:"dialog",id:p.contentId},h,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)"}}))))}),A7="PopoverClose",O7=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Er(A7,r);return f.createElement(Re.button,ge({type:"button"},n,{ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))}))});function R0(e){return e?"open":"closed"}const N7=P7,j7=T7,L7=$7,_7=D7,F7=O7,K0=({children:e,content:t,className:r,isOpen:n,side:o="bottom",align:a="center",hasCloseButton:s=!1,hasShadow:i=!1,sideOffset:l=5,onInteractOutside:c,...u})=>{const d=we({base:"flex flex-row justify-end rounded-2xl bg-white ",variants:{hasShadow:{true:"shadow-[0px_4px_30px_0px_rgba(0,0,0,0.15)]"}}});return L.jsxs(N7,{open:n,...u,children:[L.jsx(j7,{asChild:!0,children:e}),L.jsx(L7,{children:L.jsx(_7,{className:Gt(r,d({hasShadow:i})),onInteractOutside:c,side:o,align:a,sideOffset:l,children:L.jsxs("div",{className:"relative flex w-full",children:[t,s&&L.jsx("div",{className:"absolute right-0 top-0 p-6",children:L.jsx(F7,{children:L.jsx(Ue,{name:"close",className:"cursor-pointer text-xs text-black"})})})]})})})]})};function ye(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function lt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Ge(e,t){const r=ye(e);return isNaN(t)?lt(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function xt(e,t){const r=ye(e);if(isNaN(t))return lt(e,NaN);if(!t)return r;const n=r.getDate(),o=lt(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return n>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),n),r)}const gl=6048e5,V7=864e5;let z7={};function to(){return z7}function $t(e,t){var i,l,c,u;const r=to(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<n?7:0)+a-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function $r(e){return $t(e,{weekStartsOn:1})}function U0(e){const t=ye(e),r=t.getFullYear(),n=lt(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const o=$r(n),a=lt(e,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=$r(a);return t.getTime()>=o.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function dn(e){const t=ye(e);return t.setHours(0,0,0,0),t}function Ha(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Dt(e,t){const r=dn(e),n=dn(t),o=+r-Ha(r),a=+n-Ha(n);return Math.trunc((o-a)/V7)}function W7(e){const t=U0(e),r=lt(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),$r(r)}function vl(e,t){const r=t*7;return Ge(e,r)}function B7(e,t){return xt(e,t*12)}function R7(e){let t;return e.forEach(function(r){const n=ye(r);(t===void 0||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)}function K7(e){let t;return e.forEach(r=>{const n=ye(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}function Ze(e,t){const r=dn(e),n=dn(t);return+r==+n}function bl(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function U7(e){if(!bl(e)&&typeof e!="number")return!1;const t=ye(e);return!isNaN(Number(t))}function ro(e,t){const r=ye(e),n=ye(t),o=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return o*12+a}function H7(e,t,r){const n=$t(e,r),o=$t(t,r),a=+n-Ha(n),s=+o-Ha(o);return Math.trunc((a-s)/gl)}function yl(e){const t=ye(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Je(e){const t=ye(e);return t.setDate(1),t.setHours(0,0,0,0),t}function H0(e){const t=ye(e),r=lt(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function xl(e,t){var i,l,c,u;const r=to(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<n?-7:0)+6-(a-n);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function Y0(e){return xl(e,{weekStartsOn:1})}const Y7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},G7=(e,t,r)=>{let n;const o=Y7[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function wl(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const q7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Q7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},X7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Z7={date:wl({formats:q7,defaultWidth:"full"}),time:wl({formats:Q7,defaultWidth:"full"}),dateTime:wl({formats:X7,defaultWidth:"full"})},J7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},e9=(e,t,r,n)=>J7[e];function no(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const t9={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},r9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},n9={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},o9={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},a9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},s9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},i9={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:no({values:t9,defaultWidth:"wide"}),quarter:no({values:r9,defaultWidth:"wide",argumentCallback:e=>e-1}),month:no({values:n9,defaultWidth:"wide"}),day:no({values:o9,defaultWidth:"wide"}),dayPeriod:no({values:a9,defaultWidth:"wide",formattingValues:s9,defaultFormattingWidth:"wide"})};function oo(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?c9(i,d=>d.test(s)):l9(i,d=>d.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;const u=t.slice(s.length);return{value:c,rest:u}}}function l9(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function c9(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function u9(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=r.valueCallback?r.valueCallback(s):s;const i=t.slice(o.length);return{value:s,rest:i}}}const d9=/^(\d+)(th|st|nd|rd)?/i,f9=/\d+/i,p9={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},h9={any:[/^b/i,/^(a|c)/i]},m9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},g9={any:[/1/i,/2/i,/3/i,/4/i]},v9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},b9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},y9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},x9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},w9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},C9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},P9={ordinalNumber:u9({matchPattern:d9,parsePattern:f9,valueCallback:e=>parseInt(e,10)}),era:oo({matchPatterns:p9,defaultMatchWidth:"wide",parsePatterns:h9,defaultParseWidth:"any"}),quarter:oo({matchPatterns:m9,defaultMatchWidth:"wide",parsePatterns:g9,defaultParseWidth:"any",valueCallback:e=>e+1}),month:oo({matchPatterns:v9,defaultMatchWidth:"wide",parsePatterns:b9,defaultParseWidth:"any"}),day:oo({matchPatterns:y9,defaultMatchWidth:"wide",parsePatterns:x9,defaultParseWidth:"any"}),dayPeriod:oo({matchPatterns:w9,defaultMatchWidth:"any",parsePatterns:C9,defaultParseWidth:"any"})},G0={code:"en-US",formatDistance:G7,formatLong:Z7,formatRelative:e9,localize:i9,match:P9,options:{weekStartsOn:0,firstWeekContainsDate:1}};function M9(e){const t=ye(e);return Dt(t,H0(t))+1}function q0(e){const t=ye(e),r=+$r(t)-+W7(t);return Math.trunc(r/gl)+1}function Q0(e,t){var u,d,p,h;const r=ye(e),n=r.getFullYear(),o=to(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((h=(p=o.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=lt(e,0);s.setFullYear(n+1,0,a),s.setHours(0,0,0,0);const i=$t(s,t),l=lt(e,0);l.setFullYear(n,0,a),l.setHours(0,0,0,0);const c=$t(l,t);return r.getTime()>=i.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function T9(e,t){var i,l,c,u;const r=to(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,o=Q0(e,t),a=lt(e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),$t(a,t)}function X0(e,t){const r=ye(e),n=+$t(r,t)-+T9(r,t);return Math.trunc(n/gl)+1}function Me(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const lr={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Me(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Me(r+1,2)},d(e,t){return Me(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return Me(e.getHours()%12||12,t.length)},H(e,t){return Me(e.getHours(),t.length)},m(e,t){return Me(e.getMinutes(),t.length)},s(e,t){return Me(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return Me(o,t.length)}},fn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Z0={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return lr.y(e,t)},Y:function(e,t,r,n){const o=Q0(e,n),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return Me(s,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):Me(a,t.length)},R:function(e,t){const r=U0(e);return Me(r,t.length)},u:function(e,t){const r=e.getFullYear();return Me(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Me(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Me(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return lr.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Me(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=X0(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):Me(o,t.length)},I:function(e,t,r){const n=q0(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Me(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):lr.d(e,t)},D:function(e,t,r){const n=M9(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Me(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Me(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Me(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return Me(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=fn.noon:n===0?o=fn.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=fn.evening:n>=12?o=fn.afternoon:n>=4?o=fn.morning:o=fn.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return lr.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):lr.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Me(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Me(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):lr.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):lr.s(e,t)},S:function(e,t){return lr.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return eh(n);case"XXXX":case"XX":return Dr(n);case"XXXXX":case"XXX":default:return Dr(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return eh(n);case"xxxx":case"xx":return Dr(n);case"xxxxx":case"xxx":default:return Dr(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+J0(n,":");case"OOOO":default:return"GMT"+Dr(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+J0(n,":");case"zzzz":default:return"GMT"+Dr(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return Me(n,t.length)},T:function(e,t,r){const n=e.getTime();return Me(n,t.length)}};function J0(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+Me(a,2)}function eh(e,t){return e%60===0?(e>0?"-":"+")+Me(Math.abs(e)/60,2):Dr(e,t)}function Dr(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Me(Math.trunc(n/60),2),a=Me(n%60,2);return r+o+t+a}const th=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},rh=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},S9={p:rh,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return th(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",th(n,t)).replace("{{time}}",rh(o,t))}},E9=/^D+$/,$9=/^Y+$/,D9=["D","DD","YY","YYYY"];function I9(e){return E9.test(e)}function k9(e){return $9.test(e)}function A9(e,t,r){const n=O9(e,t,r);if(console.warn(n),D9.includes(e))throw new RangeError(n)}function O9(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const N9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,j9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,L9=/^'([^]*?)'?$/,_9=/''/g,F9=/[a-zA-Z]/;function Kt(e,t,r){var u,d,p,h,g,b,y,P;const n=to(),o=(r==null?void 0:r.locale)??n.locale??G0,a=(r==null?void 0:r.firstWeekContainsDate)??((d=(u=r==null?void 0:r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(p=n.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=(r==null?void 0:r.weekStartsOn)??((b=(g=r==null?void 0:r.locale)==null?void 0:g.options)==null?void 0:b.weekStartsOn)??n.weekStartsOn??((P=(y=n.locale)==null?void 0:y.options)==null?void 0:P.weekStartsOn)??0,i=ye(e);if(!U7(i))throw new RangeError("Invalid time value");let l=t.match(j9).map(x=>{const C=x[0];if(C==="p"||C==="P"){const S=S9[C];return S(x,o.formatLong)}return x}).join("").match(N9).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const C=x[0];if(C==="'")return{isToken:!1,value:V9(x)};if(Z0[C])return{isToken:!0,value:x};if(C.match(F9))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return l.map(x=>{if(!x.isToken)return x.value;const C=x.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&k9(C)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&I9(C))&&A9(C,t,String(e));const S=Z0[C[0]];return S(i,C,o.localize,c)}).join("")}function V9(e){const t=e.match(L9);return t?t[1].replace(_9,"'"):e}function z9(e){const t=ye(e),r=t.getFullYear(),n=t.getMonth(),o=lt(e,0);return o.setFullYear(r,n+1,0),o.setHours(0,0,0,0),o.getDate()}function W9(e){return Math.trunc(+ye(e)/1e3)}function B9(e){const t=ye(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function R9(e,t){return H7(B9(e),Je(e),t)+1}function Cl(e,t){const r=ye(e),n=ye(t);return r.getTime()>n.getTime()}function nh(e,t){const r=ye(e),n=ye(t);return+r<+n}function Pl(e,t){const r=ye(e),n=ye(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function K9(e,t){const r=ye(e),n=ye(t);return r.getFullYear()===n.getFullYear()}function Ml(e,t){return Ge(e,-t)}function Tl(e,t){const r=ye(e),n=r.getFullYear(),o=r.getDate(),a=lt(e,0);a.setFullYear(n,t,15),a.setHours(0,0,0,0);const s=z9(a);return r.setMonth(t,Math.min(o,s)),r}function oh(e,t){const r=ye(e);return isNaN(+r)?lt(e,NaN):(r.setFullYear(t),r)}var se=function(){return se=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},se.apply(this,arguments)};function U9(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function ah(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Sl={exports:{}},ao={};/**
|
|
75
|
+
`)},b7=0,un=[];function y7(e){var t=G.useRef([]),r=G.useRef([0,0]),n=G.useRef(),o=G.useState(b7++)[0],a=G.useState(function(){return b1()})[0],s=G.useRef(e);G.useEffect(function(){s.current=e},[e]),G.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var b=Gh([e.lockRef.current],(e.shards||[]).map(_0),!0).filter(Boolean);return b.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),b.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=G.useCallback(function(b,y){if("touches"in b&&b.touches.length===2)return!s.current.allowPinchZoom;var P=Ua(b),x=r.current,C="deltaX"in b?b.deltaX:x[0]-P[0],S="deltaY"in b?b.deltaY:x[1]-P[1],$,N=b.target,j=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in b&&j==="h"&&N.type==="range")return!1;var m=O0(j,N);if(!m)return!0;if(m?$=j:($=j==="v"?"h":"v",m=O0(j,N)),!m)return!1;if(!n.current&&"changedTouches"in b&&(C||S)&&(n.current=$),!$)return!0;var D=n.current||$;return m7(D,y,b,D==="h"?C:S,!0)},[]),l=G.useCallback(function(b){var y=b;if(!(!un.length||un[un.length-1]!==a)){var P="deltaY"in y?L0(y):Ua(y),x=t.current.filter(function($){return $.name===y.type&&$.target===y.target&&g7($.delta,P)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(_0).filter(Boolean).filter(function($){return $.contains(y.target)}),S=C.length>0?i(y,C[0]):!s.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),c=G.useCallback(function(b,y,P,x){var C={name:b,delta:y,target:P,should:x};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),u=G.useCallback(function(b){r.current=Ua(b),n.current=void 0},[]),d=G.useCallback(function(b){c(b.type,L0(b),b.target,i(b,e.lockRef.current))},[]),p=G.useCallback(function(b){c(b.type,Ua(b),b.target,i(b,e.lockRef.current))},[]);G.useEffect(function(){return un.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,cn),document.addEventListener("touchmove",l,cn),document.addEventListener("touchstart",u,cn),function(){un=un.filter(function(b){return b!==a}),document.removeEventListener("wheel",l,cn),document.removeEventListener("touchmove",l,cn),document.removeEventListener("touchstart",u,cn)}},[]);var h=e.removeScrollBar,g=e.inert;return G.createElement(G.Fragment,null,g?G.createElement(a,{styles:v7(o)}):null,h?G.createElement(Xy,{gapMode:"margin"}):null)}const x7=Vy(k0,y7);var F0=G.forwardRef(function(e,t){return G.createElement(Ra,Pt({},e,{ref:t,sideCar:x7}))});F0.classNames=Ra.classNames;const w7=F0,V0="Popover",[z0,ew]=en(V0,[La]),ml=La(),[C7,Er]=z0(V0),P7=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=ml(t),l=f.useRef(null),[c,u]=f.useState(!1),[d=!1,p]=Fa({prop:n,defaultProp:o,onChange:a});return f.createElement(c0,i,f.createElement(C7,{scope:t,contentId:Ea(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(h=>!h),[p]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>u(!0),[]),onCustomAnchorRemove:f.useCallback(()=>u(!1),[]),modal:s},r))},M7="PopoverTrigger",T7=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Er(M7,r),a=ml(r),s=pt(t,o.triggerRef),i=f.createElement(Re.button,ge({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":R0(o.open)},n,{ref:s,onClick:je(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?i:f.createElement(u0,ge({asChild:!0},a),i)}),W0="PopoverPortal",[S7,E7]=z0(W0,{forceMount:void 0}),$7=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=Er(W0,t);return f.createElement(S7,{scope:t,forceMount:r},f.createElement(sn,{present:r||a.open},f.createElement(f0,{asChild:!0,container:o},n)))},eo="PopoverContent",D7=f.forwardRef((e,t)=>{const r=E7(eo,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Er(eo,e.__scopePopover);return f.createElement(sn,{present:n||a.open},a.modal?f.createElement(I7,ge({},o,{ref:t})):f.createElement(k7,ge({},o,{ref:t})))}),I7=f.forwardRef((e,t)=>{const r=Er(eo,e.__scopePopover),n=f.useRef(null),o=pt(t,n),a=f.useRef(!1);return f.useEffect(()=>{const s=n.current;if(s)return l7(s)},[]),f.createElement(w7,{as:Gn,allowPinchZoom:!0},f.createElement(B0,ge({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,c=i.button===2||l;a.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:je(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),k7=f.forwardRef((e,t)=>{const r=Er(eo,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return f.createElement(B0,ge({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,a),!a.defaultPrevented){var i;n.current||(i=r.triggerRef.current)===null||i===void 0||i.focus(),a.preventDefault()}n.current=!1,o.current=!1},onInteractOutside:a=>{var s,i;(s=e.onInteractOutside)===null||s===void 0||s.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((i=r.triggerRef.current)===null||i===void 0?void 0:i.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),B0=f.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,p=Er(eo,r),h=ml(r);return X6(),f.createElement(Z6,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a},f.createElement(_1,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1)},f.createElement(d0,ge({"data-state":R0(p.open),role:"dialog",id:p.contentId},h,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)"}}))))}),A7="PopoverClose",O7=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Er(A7,r);return f.createElement(Re.button,ge({type:"button"},n,{ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))}))});function R0(e){return e?"open":"closed"}const N7=P7,j7=T7,L7=$7,_7=D7,F7=O7,K0=({children:e,content:t,className:r,isOpen:n,side:o="bottom",align:a="center",hasCloseButton:s=!1,hasShadow:i=!1,sideOffset:l=5,onInteractOutside:c,...u})=>{const d=we({base:"flex flex-row justify-end rounded-2xl bg-white ",variants:{hasShadow:{true:"shadow-[0px_4px_30px_0px_rgba(0,0,0,0.15)]"}}});return L.jsxs(N7,{open:n,...u,children:[L.jsx(j7,{asChild:!0,children:e}),L.jsx(L7,{children:L.jsx(_7,{className:Gt(r,d({hasShadow:i})),onInteractOutside:c,side:o,align:a,sideOffset:l,children:L.jsxs("div",{className:"relative flex w-full",children:[t,s&&L.jsx("div",{className:"absolute right-0 top-0 p-6",children:L.jsx(F7,{children:L.jsx(Ue,{name:"close",className:"cursor-pointer text-xs text-black"})})})]})})})]})};function ye(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function lt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Ge(e,t){const r=ye(e);return isNaN(t)?lt(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function xt(e,t){const r=ye(e);if(isNaN(t))return lt(e,NaN);if(!t)return r;const n=r.getDate(),o=lt(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return n>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),n),r)}const gl=6048e5,V7=864e5;let z7={};function to(){return z7}function $t(e,t){var i,l,c,u;const r=to(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<n?7:0)+a-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function $r(e){return $t(e,{weekStartsOn:1})}function U0(e){const t=ye(e),r=t.getFullYear(),n=lt(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const o=$r(n),a=lt(e,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=$r(a);return t.getTime()>=o.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function dn(e){const t=ye(e);return t.setHours(0,0,0,0),t}function Ha(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Dt(e,t){const r=dn(e),n=dn(t),o=+r-Ha(r),a=+n-Ha(n);return Math.trunc((o-a)/V7)}function W7(e){const t=U0(e),r=lt(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),$r(r)}function vl(e,t){const r=t*7;return Ge(e,r)}function B7(e,t){return xt(e,t*12)}function R7(e){let t;return e.forEach(function(r){const n=ye(r);(t===void 0||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)}function K7(e){let t;return e.forEach(r=>{const n=ye(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}function Ze(e,t){const r=dn(e),n=dn(t);return+r==+n}function bl(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function U7(e){if(!bl(e)&&typeof e!="number")return!1;const t=ye(e);return!isNaN(Number(t))}function ro(e,t){const r=ye(e),n=ye(t),o=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return o*12+a}function H7(e,t,r){const n=$t(e,r),o=$t(t,r),a=+n-Ha(n),s=+o-Ha(o);return Math.trunc((a-s)/gl)}function yl(e){const t=ye(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Je(e){const t=ye(e);return t.setDate(1),t.setHours(0,0,0,0),t}function H0(e){const t=ye(e),r=lt(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function xl(e,t){var i,l,c,u;const r=to(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<n?-7:0)+6-(a-n);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function Y0(e){return xl(e,{weekStartsOn:1})}const Y7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},G7=(e,t,r)=>{let n;const o=Y7[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function wl(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const q7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Q7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},X7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Z7={date:wl({formats:q7,defaultWidth:"full"}),time:wl({formats:Q7,defaultWidth:"full"}),dateTime:wl({formats:X7,defaultWidth:"full"})},J7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},e8=(e,t,r,n)=>J7[e];function no(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const t8={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},r8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},n8={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},o8={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},a8={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},s8={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},i8={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:no({values:t8,defaultWidth:"wide"}),quarter:no({values:r8,defaultWidth:"wide",argumentCallback:e=>e-1}),month:no({values:n8,defaultWidth:"wide"}),day:no({values:o8,defaultWidth:"wide"}),dayPeriod:no({values:a8,defaultWidth:"wide",formattingValues:s8,defaultFormattingWidth:"wide"})};function oo(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?c8(i,d=>d.test(s)):l8(i,d=>d.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;const u=t.slice(s.length);return{value:c,rest:u}}}function l8(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function c8(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function u8(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=r.valueCallback?r.valueCallback(s):s;const i=t.slice(o.length);return{value:s,rest:i}}}const d8=/^(\d+)(th|st|nd|rd)?/i,f8=/\d+/i,p8={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},h8={any:[/^b/i,/^(a|c)/i]},m8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},g8={any:[/1/i,/2/i,/3/i,/4/i]},v8={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},b8={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},y8={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},x8={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},w8={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},C8={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},P8={ordinalNumber:u8({matchPattern:d8,parsePattern:f8,valueCallback:e=>parseInt(e,10)}),era:oo({matchPatterns:p8,defaultMatchWidth:"wide",parsePatterns:h8,defaultParseWidth:"any"}),quarter:oo({matchPatterns:m8,defaultMatchWidth:"wide",parsePatterns:g8,defaultParseWidth:"any",valueCallback:e=>e+1}),month:oo({matchPatterns:v8,defaultMatchWidth:"wide",parsePatterns:b8,defaultParseWidth:"any"}),day:oo({matchPatterns:y8,defaultMatchWidth:"wide",parsePatterns:x8,defaultParseWidth:"any"}),dayPeriod:oo({matchPatterns:w8,defaultMatchWidth:"any",parsePatterns:C8,defaultParseWidth:"any"})},G0={code:"en-US",formatDistance:G7,formatLong:Z7,formatRelative:e8,localize:i8,match:P8,options:{weekStartsOn:0,firstWeekContainsDate:1}};function M8(e){const t=ye(e);return Dt(t,H0(t))+1}function q0(e){const t=ye(e),r=+$r(t)-+W7(t);return Math.trunc(r/gl)+1}function Q0(e,t){var u,d,p,h;const r=ye(e),n=r.getFullYear(),o=to(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((h=(p=o.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=lt(e,0);s.setFullYear(n+1,0,a),s.setHours(0,0,0,0);const i=$t(s,t),l=lt(e,0);l.setFullYear(n,0,a),l.setHours(0,0,0,0);const c=$t(l,t);return r.getTime()>=i.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function T8(e,t){var i,l,c,u;const r=to(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,o=Q0(e,t),a=lt(e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),$t(a,t)}function X0(e,t){const r=ye(e),n=+$t(r,t)-+T8(r,t);return Math.trunc(n/gl)+1}function Me(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const lr={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Me(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Me(r+1,2)},d(e,t){return Me(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return Me(e.getHours()%12||12,t.length)},H(e,t){return Me(e.getHours(),t.length)},m(e,t){return Me(e.getMinutes(),t.length)},s(e,t){return Me(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return Me(o,t.length)}},fn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Z0={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return lr.y(e,t)},Y:function(e,t,r,n){const o=Q0(e,n),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return Me(s,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):Me(a,t.length)},R:function(e,t){const r=U0(e);return Me(r,t.length)},u:function(e,t){const r=e.getFullYear();return Me(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Me(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Me(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return lr.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Me(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=X0(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):Me(o,t.length)},I:function(e,t,r){const n=q0(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Me(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):lr.d(e,t)},D:function(e,t,r){const n=M8(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Me(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Me(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Me(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return Me(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=fn.noon:n===0?o=fn.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=fn.evening:n>=12?o=fn.afternoon:n>=4?o=fn.morning:o=fn.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return lr.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):lr.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Me(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Me(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):lr.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):lr.s(e,t)},S:function(e,t){return lr.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return ep(n);case"XXXX":case"XX":return Dr(n);case"XXXXX":case"XXX":default:return Dr(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return ep(n);case"xxxx":case"xx":return Dr(n);case"xxxxx":case"xxx":default:return Dr(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+J0(n,":");case"OOOO":default:return"GMT"+Dr(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+J0(n,":");case"zzzz":default:return"GMT"+Dr(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return Me(n,t.length)},T:function(e,t,r){const n=e.getTime();return Me(n,t.length)}};function J0(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+Me(a,2)}function ep(e,t){return e%60===0?(e>0?"-":"+")+Me(Math.abs(e)/60,2):Dr(e,t)}function Dr(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Me(Math.trunc(n/60),2),a=Me(n%60,2);return r+o+t+a}const tp=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},rp=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},S8={p:rp,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return tp(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",tp(n,t)).replace("{{time}}",rp(o,t))}},E8=/^D+$/,$8=/^Y+$/,D8=["D","DD","YY","YYYY"];function I8(e){return E8.test(e)}function k8(e){return $8.test(e)}function A8(e,t,r){const n=O8(e,t,r);if(console.warn(n),D8.includes(e))throw new RangeError(n)}function O8(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const N8=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,j8=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,L8=/^'([^]*?)'?$/,_8=/''/g,F8=/[a-zA-Z]/;function Kt(e,t,r){var u,d,p,h,g,b,y,P;const n=to(),o=(r==null?void 0:r.locale)??n.locale??G0,a=(r==null?void 0:r.firstWeekContainsDate)??((d=(u=r==null?void 0:r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(p=n.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=(r==null?void 0:r.weekStartsOn)??((b=(g=r==null?void 0:r.locale)==null?void 0:g.options)==null?void 0:b.weekStartsOn)??n.weekStartsOn??((P=(y=n.locale)==null?void 0:y.options)==null?void 0:P.weekStartsOn)??0,i=ye(e);if(!U7(i))throw new RangeError("Invalid time value");let l=t.match(j8).map(x=>{const C=x[0];if(C==="p"||C==="P"){const S=S8[C];return S(x,o.formatLong)}return x}).join("").match(N8).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const C=x[0];if(C==="'")return{isToken:!1,value:V8(x)};if(Z0[C])return{isToken:!0,value:x};if(C.match(F8))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return l.map(x=>{if(!x.isToken)return x.value;const C=x.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&k8(C)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&I8(C))&&A8(C,t,String(e));const S=Z0[C[0]];return S(i,C,o.localize,c)}).join("")}function V8(e){const t=e.match(L8);return t?t[1].replace(_8,"'"):e}function z8(e){const t=ye(e),r=t.getFullYear(),n=t.getMonth(),o=lt(e,0);return o.setFullYear(r,n+1,0),o.setHours(0,0,0,0),o.getDate()}function W8(e){return Math.trunc(+ye(e)/1e3)}function B8(e){const t=ye(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function R8(e,t){return H7(B8(e),Je(e),t)+1}function Cl(e,t){const r=ye(e),n=ye(t);return r.getTime()>n.getTime()}function np(e,t){const r=ye(e),n=ye(t);return+r<+n}function Pl(e,t){const r=ye(e),n=ye(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function K8(e,t){const r=ye(e),n=ye(t);return r.getFullYear()===n.getFullYear()}function Ml(e,t){return Ge(e,-t)}function Tl(e,t){const r=ye(e),n=r.getFullYear(),o=r.getDate(),a=lt(e,0);a.setFullYear(n,t,15),a.setHours(0,0,0,0);const s=z8(a);return r.setMonth(t,Math.min(o,s)),r}function op(e,t){const r=ye(e);return isNaN(+r)?lt(e,NaN):(r.setFullYear(t),r)}var se=function(){return se=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},se.apply(this,arguments)};function U8(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function ap(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Sl={exports:{}},ao={};/**
|
|
76
76
|
* @license React
|
|
77
77
|
* react-jsx-runtime.development.js
|
|
78
78
|
*
|
|
@@ -80,7 +80,7 @@ Check the top-level render call using <`+_+">.")}return A}}function xo(v,A){{if(
|
|
|
80
80
|
*
|
|
81
81
|
* This source code is licensed under the MIT license found in the
|
|
82
82
|
* LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/var
|
|
83
|
+
*/var sp;function H8(){return sp||(sp=1,process.env.NODE_ENV!=="production"&&function(){var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,b="@@iterator";function y(v){if(v===null||typeof v!="object")return null;var A=g&&v[g]||v[b];return typeof A=="function"?A:null}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(v){{for(var A=arguments.length,_=new Array(A>1?A-1:0),B=1;B<A;B++)_[B-1]=arguments[B];C("error",v,_)}}function C(v,A,_){{var B=P.ReactDebugCurrentFrame,J=B.getStackAddendum();J!==""&&(A+="%s",_=_.concat([J]));var ne=_.map(function(q){return String(q)});ne.unshift("Warning: "+A),Function.prototype.apply.call(console[v],console,ne)}}var S=!1,$=!1,N=!1,j=!1,m=!1,D;D=Symbol.for("react.module.reference");function I(v){return!!(typeof v=="string"||typeof v=="function"||v===n||v===a||m||v===o||v===c||v===u||j||v===h||S||$||N||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===d||v.$$typeof===s||v.$$typeof===i||v.$$typeof===l||v.$$typeof===D||v.getModuleId!==void 0))}function T(v,A,_){var B=v.displayName;if(B)return B;var J=A.displayName||A.name||"";return J!==""?_+"("+J+")":_}function k(v){return v.displayName||"Context"}function w(v){if(v==null)return null;if(typeof v.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case i:var A=v;return k(A)+".Consumer";case s:var _=v;return k(_._context)+".Provider";case l:return T(v,v.render,"ForwardRef");case d:var B=v.displayName||null;return B!==null?B:w(v.type)||"Memo";case p:{var J=v,ne=J._payload,q=J._init;try{return w(q(ne))}catch{return null}}}return null}var M=Object.assign,O=0,F,E,V,H,R,W,ee;function U(){}U.__reactDisabledLog=!0;function re(){{if(O===0){F=console.log,E=console.info,V=console.warn,H=console.error,R=console.group,W=console.groupCollapsed,ee=console.groupEnd;var v={configurable:!0,enumerable:!0,value:U,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}O++}}function X(){{if(O--,O===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},v,{value:F}),info:M({},v,{value:E}),warn:M({},v,{value:V}),error:M({},v,{value:H}),group:M({},v,{value:R}),groupCollapsed:M({},v,{value:W}),groupEnd:M({},v,{value:ee})})}O<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=P.ReactCurrentDispatcher,ce;function be(v,A,_){{if(ce===void 0)try{throw Error()}catch(J){var B=J.stack.trim().match(/\n( *(at )?)/);ce=B&&B[1]||""}return`
|
|
84
84
|
`+ce+v}}var pe=!1,fe;{var he=typeof WeakMap=="function"?WeakMap:Map;fe=new he}function Te(v,A){if(!v||pe)return"";{var _=fe.get(v);if(_!==void 0)return _}var B;pe=!0;var J=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ne;ne=te.current,te.current=null,re();try{if(A){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(ze){B=ze}Reflect.construct(v,[],q)}else{try{q.call()}catch(ze){B=ze}v.call(q.prototype)}}else{try{throw Error()}catch(ze){B=ze}v()}}catch(ze){if(ze&&B&&typeof ze.stack=="string"){for(var Y=ze.stack.split(`
|
|
85
85
|
`),Ce=B.stack.split(`
|
|
86
86
|
`),le=Y.length-1,de=Ce.length-1;le>=1&&de>=0&&Y[le]!==Ce[de];)de--;for(;le>=1&&de>=0;le--,de--)if(Y[le]!==Ce[de]){if(le!==1||de!==1)do if(le--,de--,de<0||Y[le]!==Ce[de]){var Ae=`
|
|
@@ -98,4 +98,4 @@ Check the top-level render call using <`+_+">.")}return A}}function xo(v,A){{if(
|
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the MIT license found in the
|
|
100
100
|
* LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/var ih;function Y9(){if(ih)return so;ih=1;var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,l,c){var u,d={},p=null,h=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)n.call(l,u)&&!a.hasOwnProperty(u)&&(d[u]=l[u]);if(i&&i.defaultProps)for(u in l=i.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:i,key:p,ref:h,props:d,_owner:o.current}}return so.Fragment=r,so.jsx=s,so.jsxs=s,so}process.env.NODE_ENV==="production"?Sl.exports=Y9():Sl.exports=H9();var z=Sl.exports;function io(e){return e.mode==="multiple"}function lo(e){return e.mode==="range"}function Ya(e){return e.mode==="single"}var G9={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function q9(e,t){return Kt(e,"LLLL y",t)}function Q9(e,t){return Kt(e,"d",t)}function X9(e,t){return Kt(e,"LLLL",t)}function Z9(e){return"".concat(e)}function J9(e,t){return Kt(e,"cccccc",t)}function e8(e,t){return Kt(e,"yyyy",t)}var t8=Object.freeze({__proto__:null,formatCaption:q9,formatDay:Q9,formatMonthCaption:X9,formatWeekNumber:Z9,formatWeekdayName:J9,formatYearCaption:e8}),r8=function(e,t,r){return Kt(e,"do MMMM (EEEE)",r)},n8=function(){return"Month: "},o8=function(){return"Go to next month"},a8=function(){return"Go to previous month"},s8=function(e,t){return Kt(e,"cccc",t)},i8=function(e){return"Week n. ".concat(e)},l8=function(){return"Year: "},c8=Object.freeze({__proto__:null,labelDay:r8,labelMonthDropdown:n8,labelNext:o8,labelPrevious:a8,labelWeekNumber:i8,labelWeekday:s8,labelYearDropdown:l8});function u8(){var e="buttons",t=G9,r=G0,n={},o={},a=1,s={},i=new Date;return{captionLayout:e,classNames:t,formatters:t8,labels:c8,locale:r,modifiersClassNames:n,modifiers:o,numberOfMonths:a,styles:s,today:i,mode:"default"}}function d8(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,o=e.toMonth,a=e.fromDate,s=e.toDate;return n?a=Je(n):t&&(a=new Date(t,0,1)),o?s=yl(o):r&&(s=new Date(r,11,31)),{fromDate:a?dn(a):void 0,toDate:s?dn(s):void 0}}var lh=f.createContext(void 0);function f8(e){var t,r=e.initialProps,n=u8(),o=d8(r),a=o.fromDate,s=o.toDate,i=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;i!=="buttons"&&(!a||!s)&&(i="buttons");var l;(Ya(r)||io(r)||lo(r))&&(l=r.onSelect);var c=se(se(se({},n),r),{captionLayout:i,classNames:se(se({},n.classNames),r.classNames),components:se({},r.components),formatters:se(se({},n.formatters),r.formatters),fromDate:a,labels:se(se({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:se(se({},n.modifiers),r.modifiers),modifiersClassNames:se(se({},n.modifiersClassNames),r.modifiersClassNames),onSelect:l,styles:se(se({},n.styles),r.styles),toDate:s});return z.jsx(lh.Provider,{value:c,children:e.children})}function De(){var e=f.useContext(lh);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function ch(e){var t=De(),r=t.locale,n=t.classNames,o=t.styles,a=t.formatters.formatCaption;return z.jsx("div",{className:n.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:r})})}function p8(e){return z.jsx("svg",se({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:z.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function uh(e){var t,r,n=e.onChange,o=e.value,a=e.children,s=e.caption,i=e.className,l=e.style,c=De(),u=(r=(t=c.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:p8;return z.jsxs("div",{className:i,style:l,children:[z.jsx("span",{className:c.classNames.vhidden,children:e["aria-label"]}),z.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:o,onChange:n,children:a}),z.jsxs("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[s,z.jsx(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function h8(e){var t,r=De(),n=r.fromDate,o=r.toDate,a=r.styles,s=r.locale,i=r.formatters.formatMonthCaption,l=r.classNames,c=r.components,u=r.labels.labelMonthDropdown;if(!n)return z.jsx(z.Fragment,{});if(!o)return z.jsx(z.Fragment,{});var d=[];if(K9(n,o))for(var p=Je(n),h=n.getMonth();h<=o.getMonth();h++)d.push(Tl(p,h));else for(var p=Je(new Date),h=0;h<=11;h++)d.push(Tl(p,h));var g=function(y){var P=Number(y.target.value),x=Tl(Je(e.displayMonth),P);e.onChange(x)},b=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:uh;return z.jsx(b,{name:"months","aria-label":u(),className:l.dropdown_month,style:a.dropdown_month,onChange:g,value:e.displayMonth.getMonth(),caption:i(e.displayMonth,{locale:s}),children:d.map(function(y){return z.jsx("option",{value:y.getMonth(),children:i(y,{locale:s})},y.getMonth())})})}function m8(e){var t,r=e.displayMonth,n=De(),o=n.fromDate,a=n.toDate,s=n.locale,i=n.styles,l=n.classNames,c=n.components,u=n.formatters.formatYearCaption,d=n.labels.labelYearDropdown,p=[];if(!o)return z.jsx(z.Fragment,{});if(!a)return z.jsx(z.Fragment,{});for(var h=o.getFullYear(),g=a.getFullYear(),b=h;b<=g;b++)p.push(oh(H0(new Date),b));var y=function(x){var C=oh(Je(r),Number(x.target.value));e.onChange(C)},P=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:uh;return z.jsx(P,{name:"years","aria-label":d(),className:l.dropdown_year,style:i.dropdown_year,onChange:y,value:r.getFullYear(),caption:u(r,{locale:s}),children:p.map(function(x){return z.jsx("option",{value:x.getFullYear(),children:u(x,{locale:s})},x.getFullYear())})})}function g8(e,t){var r=f.useState(e),n=r[0],o=r[1],a=t===void 0?n:t;return[a,o]}function v8(e){var t=e.month,r=e.defaultMonth,n=e.today,o=t||r||n||new Date,a=e.toDate,s=e.fromDate,i=e.numberOfMonths,l=i===void 0?1:i;if(a&&ro(a,o)<0){var c=-1*(l-1);o=xt(a,c)}return s&&ro(o,s)<0&&(o=s),Je(o)}function b8(){var e=De(),t=v8(e),r=g8(t,e.month),n=r[0],o=r[1],a=function(s){var i;if(!e.disableNavigation){var l=Je(s);o(l),(i=e.onMonthChange)===null||i===void 0||i.call(e,l)}};return[n,a]}function y8(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,o=Je(e),a=Je(xt(o,n)),s=ro(a,o),i=[],l=0;l<s;l++){var c=xt(o,l);i.push(c)}return r&&(i=i.reverse()),i}function x8(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,s=n?a:1,i=Je(e);if(!r)return xt(i,s);var l=ro(r,e);if(!(l<a))return xt(i,s)}}function w8(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,s=n?a:1,i=Je(e);if(!r)return xt(i,-s);var l=ro(i,r);if(!(l<=0))return xt(i,-s)}}var dh=f.createContext(void 0);function C8(e){var t=De(),r=b8(),n=r[0],o=r[1],a=y8(n,t),s=x8(n,t),i=w8(n,t),l=function(d){return a.some(function(p){return Pl(d,p)})},c=function(d,p){l(d)||(p&&nh(d,p)?o(xt(d,1+t.numberOfMonths*-1)):o(d))},u={currentMonth:n,displayMonths:a,goToMonth:o,goToDate:c,previousMonth:i,nextMonth:s,isDateDisplayed:l};return z.jsx(dh.Provider,{value:u,children:e.children})}function pn(){var e=f.useContext(dh);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function fh(e){var t,r=De(),n=r.classNames,o=r.styles,a=r.components,s=pn().goToMonth,i=function(u){s(xt(u,e.displayIndex?-e.displayIndex:0))},l=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:ch,c=z.jsx(l,{id:e.id,displayMonth:e.displayMonth});return z.jsxs("div",{className:n.caption_dropdowns,style:o.caption_dropdowns,children:[z.jsx("div",{className:n.vhidden,children:c}),z.jsx(h8,{onChange:i,displayMonth:e.displayMonth}),z.jsx(m8,{onChange:i,displayMonth:e.displayMonth})]})}function P8(e){return z.jsx("svg",se({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:z.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function M8(e){return z.jsx("svg",se({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:z.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Ga=f.forwardRef(function(e,t){var r=De(),n=r.classNames,o=r.styles,a=[n.button_reset,n.button];e.className&&a.push(e.className);var s=a.join(" "),i=se(se({},o.button_reset),o.button);return e.style&&Object.assign(i,e.style),z.jsx("button",se({},e,{ref:t,type:"button",className:s,style:i}))});function T8(e){var t,r,n=De(),o=n.dir,a=n.locale,s=n.classNames,i=n.styles,l=n.labels,c=l.labelPrevious,u=l.labelNext,d=n.components;if(!e.nextMonth&&!e.previousMonth)return z.jsx(z.Fragment,{});var p=c(e.previousMonth,{locale:a}),h=[s.nav_button,s.nav_button_previous].join(" "),g=u(e.nextMonth,{locale:a}),b=[s.nav_button,s.nav_button_next].join(" "),y=(t=d==null?void 0:d.IconRight)!==null&&t!==void 0?t:M8,P=(r=d==null?void 0:d.IconLeft)!==null&&r!==void 0?r:P8;return z.jsxs("div",{className:s.nav,style:i.nav,children:[!e.hidePrevious&&z.jsx(Ga,{name:"previous-month","aria-label":p,className:h,style:i.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?z.jsx(y,{className:s.nav_icon,style:i.nav_icon}):z.jsx(P,{className:s.nav_icon,style:i.nav_icon})}),!e.hideNext&&z.jsx(Ga,{name:"next-month","aria-label":g,className:b,style:i.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?z.jsx(P,{className:s.nav_icon,style:i.nav_icon}):z.jsx(y,{className:s.nav_icon,style:i.nav_icon})})]})}function ph(e){var t=De().numberOfMonths,r=pn(),n=r.previousMonth,o=r.nextMonth,a=r.goToMonth,s=r.displayMonths,i=s.findIndex(function(g){return Pl(e.displayMonth,g)}),l=i===0,c=i===s.length-1,u=t>1&&(l||!c),d=t>1&&(c||!l),p=function(){n&&a(n)},h=function(){o&&a(o)};return z.jsx(T8,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:d,nextMonth:o,previousMonth:n,onPreviousClick:p,onNextClick:h})}function S8(e){var t,r=De(),n=r.classNames,o=r.disableNavigation,a=r.styles,s=r.captionLayout,i=r.components,l=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:ch,c;return o?c=z.jsx(l,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?c=z.jsx(fh,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?c=z.jsxs(z.Fragment,{children:[z.jsx(fh,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),z.jsx(ph,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=z.jsxs(z.Fragment,{children:[z.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),z.jsx(ph,{displayMonth:e.displayMonth,id:e.id})]}),z.jsx("div",{className:n.caption,style:a.caption,children:c})}function E8(e){var t=De(),r=t.footer,n=t.styles,o=t.classNames.tfoot;return r?z.jsx("tfoot",{className:o,style:n.tfoot,children:z.jsx("tr",{children:z.jsx("td",{colSpan:8,children:r})})}):z.jsx(z.Fragment,{})}function $8(e,t,r){for(var n=r?$r(new Date):$t(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var s=Ge(n,a);o.push(s)}return o}function D8(){var e=De(),t=e.classNames,r=e.styles,n=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,i=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=$8(o,a,s);return z.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&z.jsx("td",{style:r.head_cell,className:t.head_cell}),c.map(function(u,d){return z.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":l(u,{locale:o}),children:i(u,{locale:o})},d)})]})}function I8(){var e,t=De(),r=t.classNames,n=t.styles,o=t.components,a=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:D8;return z.jsx("thead",{style:n.head,className:r.head,children:z.jsx(a,{})})}function k8(e){var t=De(),r=t.locale,n=t.formatters.formatDay;return z.jsx(z.Fragment,{children:n(e.date,{locale:r})})}var El=f.createContext(void 0);function A8(e){if(!io(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return z.jsx(El.Provider,{value:t,children:e.children})}return z.jsx(O8,{initialProps:e.initialProps,children:e.children})}function O8(e){var t=e.initialProps,r=e.children,n=t.selected,o=t.min,a=t.max,s=function(c,u,d){var p,h;(p=t.onDayClick)===null||p===void 0||p.call(t,c,u,d);var g=!!(u.selected&&o&&(n==null?void 0:n.length)===o);if(!g){var b=!!(!u.selected&&a&&(n==null?void 0:n.length)===a);if(!b){var y=n?ah([],n,!0):[];if(u.selected){var P=y.findIndex(function(x){return Ze(c,x)});y.splice(P,1)}else y.push(c);(h=t.onSelect)===null||h===void 0||h.call(t,y,c,u,d)}}},i={disabled:[]};n&&i.disabled.push(function(c){var u=a&&n.length>a-1,d=n.some(function(p){return Ze(p,c)});return!!(u&&!d)});var l={selected:n,onDayClick:s,modifiers:i};return z.jsx(El.Provider,{value:l,children:r})}function $l(){var e=f.useContext(El);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function N8(e,t){var r=t||{},n=r.from,o=r.to;return n&&o?Ze(o,e)&&Ze(n,e)?void 0:Ze(o,e)?{from:o,to:void 0}:Ze(n,e)?void 0:Cl(n,e)?{from:e,to:o}:{from:n,to:e}:o?Cl(e,o)?{from:o,to:e}:{from:e,to:o}:n?nh(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var Dl=f.createContext(void 0);function j8(e){if(!lo(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return z.jsx(Dl.Provider,{value:t,children:e.children})}return z.jsx(L8,{initialProps:e.initialProps,children:e.children})}function L8(e){var t=e.initialProps,r=e.children,n=t.selected,o=n||{},a=o.from,s=o.to,i=t.min,l=t.max,c=function(h,g,b){var y,P;(y=t.onDayClick)===null||y===void 0||y.call(t,h,g,b);var x=N8(h,n);(P=t.onSelect)===null||P===void 0||P.call(t,x,h,g,b)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],s?(u.range_end=[s],Ze(a,s)||(u.range_middle=[{after:a,before:s}])):u.range_end=[a]):s&&(u.range_start=[s],u.range_end=[s]),i&&(a&&!s&&u.disabled.push({after:Ml(a,i-1),before:Ge(a,i-1)}),a&&s&&u.disabled.push({after:a,before:Ge(a,i-1)}),!a&&s&&u.disabled.push({after:Ml(s,i-1),before:Ge(s,i-1)})),l){if(a&&!s&&(u.disabled.push({before:Ge(a,-l+1)}),u.disabled.push({after:Ge(a,l-1)})),a&&s){var d=Dt(s,a)+1,p=l-d;u.disabled.push({before:Ml(a,p)}),u.disabled.push({after:Ge(s,p)})}!a&&s&&(u.disabled.push({before:Ge(s,-l+1)}),u.disabled.push({after:Ge(s,l-1)}))}return z.jsx(Dl.Provider,{value:{selected:n,onDayClick:c,modifiers:u},children:r})}function Il(){var e=f.useContext(Dl);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function qa(e){return Array.isArray(e)?ah([],e,!0):e!==void 0?[e]:[]}function _8(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],o=r[1];t[n]=qa(o)}),t}var wt;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(wt||(wt={}));var F8=wt.Selected,Ut=wt.Disabled,V8=wt.Hidden,z8=wt.Today,kl=wt.RangeEnd,Al=wt.RangeMiddle,Ol=wt.RangeStart,W8=wt.Outside;function B8(e,t,r){var n,o=(n={},n[F8]=qa(e.selected),n[Ut]=qa(e.disabled),n[V8]=qa(e.hidden),n[z8]=[e.today],n[kl]=[],n[Al]=[],n[Ol]=[],n[W8]=[],n);return e.fromDate&&o[Ut].push({before:e.fromDate}),e.toDate&&o[Ut].push({after:e.toDate}),io(e)?o[Ut]=o[Ut].concat(t.modifiers[Ut]):lo(e)&&(o[Ut]=o[Ut].concat(r.modifiers[Ut]),o[Ol]=r.modifiers[Ol],o[Al]=r.modifiers[Al],o[kl]=r.modifiers[kl]),o}var hh=f.createContext(void 0);function R8(e){var t=De(),r=$l(),n=Il(),o=B8(t,r,n),a=_8(t.modifiers),s=se(se({},o),a);return z.jsx(hh.Provider,{value:s,children:e.children})}function mh(){var e=f.useContext(hh);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function K8(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function U8(e){return!!(e&&typeof e=="object"&&"from"in e)}function H8(e){return!!(e&&typeof e=="object"&&"after"in e)}function Y8(e){return!!(e&&typeof e=="object"&&"before"in e)}function G8(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function q8(e,t){var r,n=t.from,o=t.to;if(n&&o){var a=Dt(o,n)<0;a&&(r=[o,n],n=r[0],o=r[1]);var s=Dt(e,n)>=0&&Dt(o,e)>=0;return s}return o?Ze(o,e):n?Ze(n,e):!1}function Q8(e){return bl(e)}function X8(e){return Array.isArray(e)&&e.every(bl)}function Z8(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(Q8(r))return Ze(e,r);if(X8(r))return r.includes(e);if(U8(r))return q8(e,r);if(G8(r))return r.dayOfWeek.includes(e.getDay());if(K8(r)){var n=Dt(r.before,e),o=Dt(r.after,e),a=n>0,s=o<0,i=Cl(r.before,r.after);return i?s&&a:a||s}return H8(r)?Dt(e,r.after)>0:Y8(r)?Dt(r.before,e)>0:typeof r=="function"?r(e):!1})}function Nl(e,t,r){var n=Object.keys(t).reduce(function(a,s){var i=t[s];return Z8(e,i)&&a.push(s),a},[]),o={};return n.forEach(function(a){return o[a]=!0}),r&&!Pl(e,r)&&(o.outside=!0),o}function J8(e,t){for(var r=Je(e[0]),n=yl(e[e.length-1]),o,a,s=r;s<=n;){var i=Nl(s,t),l=!i.disabled&&!i.hidden;if(!l){s=Ge(s,1);continue}if(i.selected)return s;i.today&&!a&&(a=s),o||(o=s),s=Ge(s,1)}return a||o}var ex=365;function gh(e,t){var r=t.moveBy,n=t.direction,o=t.context,a=t.modifiers,s=t.retry,i=s===void 0?{count:0,lastFocused:e}:s,l=o.weekStartsOn,c=o.fromDate,u=o.toDate,d=o.locale,p={day:Ge,week:vl,month:xt,year:B7,startOfWeek:function(y){return o.ISOWeek?$r(y):$t(y,{locale:d,weekStartsOn:l})},endOfWeek:function(y){return o.ISOWeek?Y0(y):xl(y,{locale:d,weekStartsOn:l})}},h=p[r](e,n==="after"?1:-1);n==="before"&&c?h=R7([c,h]):n==="after"&&u&&(h=K7([u,h]));var g=!0;if(a){var b=Nl(h,a);g=!b.disabled&&!b.hidden}return g?h:i.count>ex?i.lastFocused:gh(h,{moveBy:r,direction:n,context:o,modifiers:a,retry:se(se({},i),{count:i.count+1})})}var vh=f.createContext(void 0);function tx(e){var t=pn(),r=mh(),n=f.useState(),o=n[0],a=n[1],s=f.useState(),i=s[0],l=s[1],c=J8(t.displayMonths,r),u=o??(i&&t.isDateDisplayed(i))?i:c,d=function(){l(o),a(void 0)},p=function(y){a(y)},h=De(),g=function(y,P){if(o){var x=gh(o,{moveBy:y,direction:P,context:h,modifiers:r});Ze(o,x)||(t.goToDate(x,o),p(x))}},b={focusedDay:o,focusTarget:u,blur:d,focus:p,focusDayAfter:function(){return g("day","after")},focusDayBefore:function(){return g("day","before")},focusWeekAfter:function(){return g("week","after")},focusWeekBefore:function(){return g("week","before")},focusMonthBefore:function(){return g("month","before")},focusMonthAfter:function(){return g("month","after")},focusYearBefore:function(){return g("year","before")},focusYearAfter:function(){return g("year","after")},focusStartOfWeek:function(){return g("startOfWeek","before")},focusEndOfWeek:function(){return g("endOfWeek","after")}};return z.jsx(vh.Provider,{value:b,children:e.children})}function jl(){var e=f.useContext(vh);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function rx(e,t){var r=mh(),n=Nl(e,r,t);return n}var Ll=f.createContext(void 0);function nx(e){if(!Ya(e.initialProps)){var t={selected:void 0};return z.jsx(Ll.Provider,{value:t,children:e.children})}return z.jsx(ox,{initialProps:e.initialProps,children:e.children})}function ox(e){var t=e.initialProps,r=e.children,n=function(a,s,i){var l,c,u;if((l=t.onDayClick)===null||l===void 0||l.call(t,a,s,i),s.selected&&!t.required){(c=t.onSelect)===null||c===void 0||c.call(t,void 0,a,s,i);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,s,i)},o={selected:t.selected,onDayClick:n};return z.jsx(Ll.Provider,{value:o,children:r})}function bh(){var e=f.useContext(Ll);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function ax(e,t){var r=De(),n=bh(),o=$l(),a=Il(),s=jl(),i=s.focusDayAfter,l=s.focusDayBefore,c=s.focusWeekAfter,u=s.focusWeekBefore,d=s.blur,p=s.focus,h=s.focusMonthBefore,g=s.focusMonthAfter,b=s.focusYearBefore,y=s.focusYearAfter,P=s.focusStartOfWeek,x=s.focusEndOfWeek,C=function(E){var V,H,R,W;Ya(r)?(V=n.onDayClick)===null||V===void 0||V.call(n,e,t,E):io(r)?(H=o.onDayClick)===null||H===void 0||H.call(o,e,t,E):lo(r)?(R=a.onDayClick)===null||R===void 0||R.call(a,e,t,E):(W=r.onDayClick)===null||W===void 0||W.call(r,e,t,E)},S=function(E){var V;p(e),(V=r.onDayFocus)===null||V===void 0||V.call(r,e,t,E)},$=function(E){var V;d(),(V=r.onDayBlur)===null||V===void 0||V.call(r,e,t,E)},N=function(E){var V;(V=r.onDayMouseEnter)===null||V===void 0||V.call(r,e,t,E)},j=function(E){var V;(V=r.onDayMouseLeave)===null||V===void 0||V.call(r,e,t,E)},m=function(E){var V;(V=r.onDayPointerEnter)===null||V===void 0||V.call(r,e,t,E)},D=function(E){var V;(V=r.onDayPointerLeave)===null||V===void 0||V.call(r,e,t,E)},I=function(E){var V;(V=r.onDayTouchCancel)===null||V===void 0||V.call(r,e,t,E)},T=function(E){var V;(V=r.onDayTouchEnd)===null||V===void 0||V.call(r,e,t,E)},k=function(E){var V;(V=r.onDayTouchMove)===null||V===void 0||V.call(r,e,t,E)},w=function(E){var V;(V=r.onDayTouchStart)===null||V===void 0||V.call(r,e,t,E)},M=function(E){var V;(V=r.onDayKeyUp)===null||V===void 0||V.call(r,e,t,E)},O=function(E){var V;switch(E.key){case"ArrowLeft":E.preventDefault(),E.stopPropagation(),r.dir==="rtl"?i():l();break;case"ArrowRight":E.preventDefault(),E.stopPropagation(),r.dir==="rtl"?l():i();break;case"ArrowDown":E.preventDefault(),E.stopPropagation(),c();break;case"ArrowUp":E.preventDefault(),E.stopPropagation(),u();break;case"PageUp":E.preventDefault(),E.stopPropagation(),E.shiftKey?b():h();break;case"PageDown":E.preventDefault(),E.stopPropagation(),E.shiftKey?y():g();break;case"Home":E.preventDefault(),E.stopPropagation(),P();break;case"End":E.preventDefault(),E.stopPropagation(),x();break}(V=r.onDayKeyDown)===null||V===void 0||V.call(r,e,t,E)},F={onClick:C,onFocus:S,onBlur:$,onKeyDown:O,onKeyUp:M,onMouseEnter:N,onMouseLeave:j,onPointerEnter:m,onPointerLeave:D,onTouchCancel:I,onTouchEnd:T,onTouchMove:k,onTouchStart:w};return F}function sx(){var e=De(),t=bh(),r=$l(),n=Il(),o=Ya(e)?t.selected:io(e)?r.selected:lo(e)?n.selected:void 0;return o}function ix(e){return Object.values(wt).includes(e)}function lx(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var o=e.modifiersClassNames[n];if(o)r.push(o);else if(ix(n)){var a=e.classNames["day_".concat(n)];a&&r.push(a)}}),r}function cx(e,t){var r=se({},e.styles.day);return Object.keys(t).forEach(function(n){var o;r=se(se({},r),(o=e.modifiersStyles)===null||o===void 0?void 0:o[n])}),r}function ux(e,t,r){var n,o,a,s=De(),i=jl(),l=rx(e,t),c=ax(e,l),u=sx(),d=!!(s.onDayClick||s.mode!=="default");f.useEffect(function(){var N;l.outside||i.focusedDay&&d&&Ze(i.focusedDay,e)&&((N=r.current)===null||N===void 0||N.focus())},[i.focusedDay,e,r,d,l.outside]);var p=lx(s,l).join(" "),h=cx(s,l),g=!!(l.outside&&!s.showOutsideDays||l.hidden),b=(a=(o=s.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:k8,y=z.jsx(b,{date:e,displayMonth:t,activeModifiers:l}),P={style:h,className:p,children:y,role:"gridcell"},x=i.focusTarget&&Ze(i.focusTarget,e)&&!l.outside,C=i.focusedDay&&Ze(i.focusedDay,e),S=se(se(se({},P),(n={disabled:l.disabled,role:"gridcell"},n["aria-selected"]=l.selected,n.tabIndex=C||x?0:-1,n)),c),$={isButton:d,isHidden:g,activeModifiers:l,selectedDays:u,buttonProps:S,divProps:P};return $}function dx(e){var t=f.useRef(null),r=ux(e.date,e.displayMonth,t);return r.isHidden?z.jsx("div",{role:"gridcell"}):r.isButton?z.jsx(Ga,se({name:"day",ref:t},r.buttonProps)):z.jsx("div",se({},r.divProps))}function fx(e){var t=e.number,r=e.dates,n=De(),o=n.onWeekNumberClick,a=n.styles,s=n.classNames,i=n.locale,l=n.labels.labelWeekNumber,c=n.formatters.formatWeekNumber,u=c(Number(t),{locale:i});if(!o)return z.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:u});var d=l(Number(t),{locale:i}),p=function(h){o(t,r,h)};return z.jsx(Ga,{name:"week-number","aria-label":d,className:s.weeknumber,style:a.weeknumber,onClick:p,children:u})}function px(e){var t,r,n=De(),o=n.styles,a=n.classNames,s=n.showWeekNumber,i=n.components,l=(t=i==null?void 0:i.Day)!==null&&t!==void 0?t:dx,c=(r=i==null?void 0:i.WeekNumber)!==null&&r!==void 0?r:fx,u;return s&&(u=z.jsx("td",{className:a.cell,style:o.cell,children:z.jsx(c,{number:e.weekNumber,dates:e.dates})})),z.jsxs("tr",{className:a.row,style:o.row,children:[u,e.dates.map(function(d){return z.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:z.jsx(l,{displayMonth:e.displayMonth,date:d})},W9(d))})]})}function yh(e,t,r){for(var n=r!=null&&r.ISOWeek?Y0(t):xl(t,r),o=r!=null&&r.ISOWeek?$r(e):$t(e,r),a=Dt(n,o),s=[],i=0;i<=a;i++)s.push(Ge(o,i));var l=s.reduce(function(c,u){var d=r!=null&&r.ISOWeek?q0(u):X0(u,r),p=c.find(function(h){return h.weekNumber===d});return p?(p.dates.push(u),c):(c.push({weekNumber:d,dates:[u]}),c)},[]);return l}function hx(e,t){var r=yh(Je(e),yl(e),t);if(t!=null&&t.useFixedWeeks){var n=R9(e,t);if(n<6){var o=r[r.length-1],a=o.dates[o.dates.length-1],s=vl(a,6-n),i=yh(vl(a,1),s,t);r.push.apply(r,i)}}return r}function mx(e){var t,r,n,o=De(),a=o.locale,s=o.classNames,i=o.styles,l=o.hideHead,c=o.fixedWeeks,u=o.components,d=o.weekStartsOn,p=o.firstWeekContainsDate,h=o.ISOWeek,g=hx(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:a,weekStartsOn:d,firstWeekContainsDate:p}),b=(t=u==null?void 0:u.Head)!==null&&t!==void 0?t:I8,y=(r=u==null?void 0:u.Row)!==null&&r!==void 0?r:px,P=(n=u==null?void 0:u.Footer)!==null&&n!==void 0?n:E8;return z.jsxs("table",{id:e.id,className:s.table,style:i.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&z.jsx(b,{}),z.jsx("tbody",{className:s.tbody,style:i.tbody,children:g.map(function(x){return z.jsx(y,{displayMonth:e.displayMonth,dates:x.dates,weekNumber:x.weekNumber},x.weekNumber)})}),z.jsx(P,{displayMonth:e.displayMonth})]})}function gx(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var vx=gx()?f.useLayoutEffect:f.useEffect,_l=!1,bx=0;function xh(){return"react-day-picker-".concat(++bx)}function yx(e){var t,r=e??(_l?xh():null),n=f.useState(r),o=n[0],a=n[1];return vx(function(){o===null&&a(xh())},[]),f.useEffect(function(){_l===!1&&(_l=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function xx(e){var t,r,n=De(),o=n.dir,a=n.classNames,s=n.styles,i=n.components,l=pn().displayMonths,c=yx(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),u=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,d=[a.month],p=s.month,h=e.displayIndex===0,g=e.displayIndex===l.length-1,b=!h&&!g;o==="rtl"&&(t=[h,g],g=t[0],h=t[1]),h&&(d.push(a.caption_start),p=se(se({},p),s.caption_start)),g&&(d.push(a.caption_end),p=se(se({},p),s.caption_end)),b&&(d.push(a.caption_between),p=se(se({},p),s.caption_between));var y=(r=i==null?void 0:i.Caption)!==null&&r!==void 0?r:S8;return z.jsxs("div",{className:d.join(" "),style:p,children:[z.jsx(y,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),z.jsx(mx,{id:u,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function wx(e){var t=De(),r=t.classNames,n=t.styles;return z.jsx("div",{className:r.months,style:n.months,children:e.children})}function Cx(e){var t,r,n=e.initialProps,o=De(),a=jl(),s=pn(),i=f.useState(!1),l=i[0],c=i[1];f.useEffect(function(){o.initialFocus&&a.focusTarget&&(l||(a.focus(a.focusTarget),c(!0)))},[o.initialFocus,l,a.focus,a.focusTarget,a]);var u=[o.classNames.root,o.className];o.numberOfMonths>1&&u.push(o.classNames.multiple_months),o.showWeekNumber&&u.push(o.classNames.with_weeknumber);var d=se(se({},o.styles.root),o.style),p=Object.keys(n).filter(function(g){return g.startsWith("data-")}).reduce(function(g,b){var y;return se(se({},g),(y={},y[b]=n[b],y))},{}),h=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:wx;return z.jsx("div",se({className:u.join(" "),style:d,dir:o.dir,id:o.id,nonce:n.nonce,title:n.title,lang:n.lang},p,{children:z.jsx(h,{children:s.displayMonths.map(function(g,b){return z.jsx(xx,{displayIndex:b,displayMonth:g},b)})})}))}function Px(e){var t=e.children,r=U9(e,["children"]);return z.jsx(f8,{initialProps:r,children:z.jsx(C8,{children:z.jsx(nx,{initialProps:r,children:z.jsx(A8,{initialProps:r,children:z.jsx(j8,{initialProps:r,children:z.jsx(R8,{children:z.jsx(tx,{children:t})})})})})})})}function Mx(e){return z.jsx(Px,se({},e,{children:z.jsx(Cx,{initialProps:e})}))}const nw="",ow="",Tx=e=>{const{goToMonth:t,nextMonth:r,previousMonth:n}=pn();return L.jsxs("div",{className:"flex px-[10px] py-2",children:[L.jsx("button",{disabled:!n,onClick:()=>n&&t(n),children:L.jsx(Ue,{name:"chevron-left",className:"text-xs text-primary-grey-800"})}),L.jsx(hc,{className:"flex flex-1 justify-center font-satoshi text-2xl font-medium text-primary-black-500",children:Kt(e.displayMonth,"MMM yyy")}),L.jsx("button",{disabled:!r,onClick:()=>r&&t(r),children:L.jsx(Ue,{name:"chevron-right",className:"text-xs text-primary-grey-800"})})]})},wh=({...e})=>L.jsx(Mx,{disabled:t=>t>new Date||t<new Date("1900-01-01"),components:{Caption:Tx},showOutsideDays:!0,...e}),Sx=({children:e,className:t,variant:r="light",color:n="red"})=>{const o=we({base:"flex h-4 items-center justify-center gap-2.5 rounded bg-transparent p-0",variants:{variant:{light:"",dark:"",ghost:""},color:{red:"text-complementary-red-500",orange:"text-complementary-orange-500",lightGreen:"text-secondary-green-500",violet:"text-complementary-violet-500",blue:"text-complementary-blue-500",darkGreen:"text-primary-green-500",yellow:"text-complementary-yellow-500",gray:"text-primary-grey-800"}},compoundVariants:[{variant:"dark",color:"red",class:"bg-complementary-red-500 text-complementary-red-50"},{variant:"dark",color:"orange",class:"bg-complementary-orange-500 text-complementary-orange-50"},{variant:"dark",color:"lightGreen",class:"bg-secondary-green-500 text-white"},{variant:"dark",color:"violet",class:"bg-complementary-violet-500 text-complementary-violet-50"},{variant:"dark",color:"blue",class:"bg-complementary-blue-500 text-complementary-blue-50"},{variant:"dark",color:"darkGreen",class:"bg-primary-green-500 text-primary-green-50"},{variant:"dark",color:"yellow",class:"bg-complementary-yellow-500 text-complementary-yellow-50"},{variant:"light",color:"red",class:"bg-complementary-red-50 text-complementary-red-500"},{variant:"light",color:"orange",class:"bg-complementary-orange-50 text-complementary-orange-500"},{variant:"light",color:"lightGreen",class:"bg-secondary-green-50 text-secondary-green-500"},{variant:"light",color:"violet",class:"bg-complementary-violet-50 text-complementary-violet-500"},{variant:"light",color:"blue",class:"bg-complementary-blue-50 text-complementary-blue-500"},{variant:"light",color:"darkGreen",class:"bg-primary-green-50 text-primary-green-500"},{variant:"light",color:"yellow",class:"bg-complementary-yellow-50 text-complementary-yellow-500"},{variant:"light",color:"gray",class:"bg-primary-grey-500 text-primary-grey-800"}]}),a=we({base:"p-1 font-satoshi text-[10px] font-bold"});return L.jsx(tp,{classNames:{base:o({className:t,variant:r,color:n}),content:a({})},children:e})},aw="",sw="",Ex=()=>{const e=Un({enter:"animate__animated animate__fadeInUp animate__faster",exit:"animate__animated animate__fadeOutDown animate__faster",collapse:!1});return L.jsx(E4,{limit:1,closeOnClick:!0,draggable:!1,autoClose:5e3,closeButton:!1,hideProgressBar:!0,className:"!m-0 !w-full !max-w-[840px] !p-0",toastClassName:()=>"",bodyClassName:()=>"w-full [&>div]:w-full !p-0",transition:e,newestOnTop:!0,position:"bottom-center"})},$x=({label:e,initialDate:t,onSelect:r,dateFormat:n})=>{const[o,a]=f.useState(!1),[s,i]=f.useState(t),l=()=>{a(!0)},c=d=>{r&&r(d),i(d),u()},u=()=>{a(!1)};return L.jsx(K0,{isOpen:o,align:"end",onInteractOutside:u,content:L.jsx(wh,{selected:s,onSelect:c,mode:"single"}),children:L.jsx("div",{children:L.jsx(ll,{value:s?Kt(s,n??"dd/MM/yyyy"):"",onClick:l,isDatePicker:!0,label:e,icon:"calendar"})})})},Dx={white:"#ffffff",black:"#000000",primary:{green:{50:"#e9eceb",100:"#bac3c2",200:"#99a7a4",300:"#6b7e7b",400:"#4e6561",500:"#223f3a",600:"#1f3935",700:"#182d29",800:"#132320",900:"#0e1a18"},black:{50:"#e6e6e6",100:"#b0b0b0",200:"#8a8a8a",300:"#545454",400:"#333333",500:"#000000",600:"#000000",700:"#000000",800:"#000000",900:"#000000"},grey:{50:"##fefefe",100:"#fcfdfd",200:"#fafbfc",300:"#f8fafb",400:"#f7f9fa",500:"#f5f7f9",600:"#dfe1e3",700:"#aeafb1",800:"#878889",900:"#676869"}},secondary:{green:{50:"#e6f7ee",100:"#b2e7c9",200:"#8cdbaf",300:"#58ca8a",400:"#38c074",500:"#06b051",600:"#05a04a",700:"#047d3a",800:"#03612d",900:"#034a22"}},tertiary:{green:{50:"#ebfaf2",100:"#c2f0d8",200:"#a4e8c5",300:"#7adeaa",400:"#61d799",500:"#39cd80",600:"#34bb74",700:"#28925b",800:"#1f7146",900:"#185636"}},complementary:{violet:{50:"#f0ecf5",100:"#d1c3df",200:"#bba7d0",300:"#9d7ebb",400:"#8965ad",500:"#6c3f99",600:"#62398b",700:"#4d2d6d",800:"#3b2354",900:"#2d1a40"},blue:{50:"#e6f7f7",100:"#b1e6e6",200:"#8cdada",300:"#57c9c9",400:"#36bfbe",500:"#04afae",600:"#049f9e",700:"#037c7c",800:"#026060",900:"#024a49"},red:{50:"#faebea",100:"#f0c1be",200:"#e9a39f",300:"#df7973",400:"#d95f58",500:"#cf372e",600:"#bc322a",700:"#932721",800:"#721e19",900:"#571713"},orange:{50:"#fef3e9",100:"#fbdabb",200:"#f9c99a",300:"#f6b06c",400:"#f5a150",500:"#f28924",600:"#dc7d21",700:"#ac611a",800:"#854b14",900:"#663a0f"},yellow:{50:"#fdfaec",100:"#f9f0c4",200:"#f7e9a8",300:"#f3e080",400:"#f1d968",500:"#edd042",600:"#d8bd3c",700:"#a8942f",800:"#827224",900:"#64571c"}}};Pe.Avatar=Tp,Pe.Button=Wi,Pe.Checkbox=f4,Pe.Chip=h4,Pe.DatePicker=wh,Pe.DatePickerInput=$x,Pe.Flag=c1,Pe.Icon=Ue,Pe.Input=ll,Pe.InputPassword=Q6,Pe.Logo=i1,Pe.Popover=K0,Pe.RadioGroup=p4,Pe.SegmentedControl=m4,Pe.Snackbar=Sp,Pe.Switch=d4,Pe.Tabs=q6,Pe.Tag=Sx,Pe.ToastContainer=Ex,Pe.Tooltip=b6,Pe.Typography=hc,Pe.colors=Dx,Pe.useSnackbar=$4,Object.defineProperty(Pe,Symbol.toStringTag,{value:"Module"})});
|
|
101
|
+
*/var ip;function Y8(){if(ip)return so;ip=1;var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,l,c){var u,d={},p=null,h=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)n.call(l,u)&&!a.hasOwnProperty(u)&&(d[u]=l[u]);if(i&&i.defaultProps)for(u in l=i.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:i,key:p,ref:h,props:d,_owner:o.current}}return so.Fragment=r,so.jsx=s,so.jsxs=s,so}process.env.NODE_ENV==="production"?Sl.exports=Y8():Sl.exports=H8();var z=Sl.exports;function io(e){return e.mode==="multiple"}function lo(e){return e.mode==="range"}function Ya(e){return e.mode==="single"}var G8={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function q8(e,t){return Kt(e,"LLLL y",t)}function Q8(e,t){return Kt(e,"d",t)}function X8(e,t){return Kt(e,"LLLL",t)}function Z8(e){return"".concat(e)}function J8(e,t){return Kt(e,"cccccc",t)}function e9(e,t){return Kt(e,"yyyy",t)}var t9=Object.freeze({__proto__:null,formatCaption:q8,formatDay:Q8,formatMonthCaption:X8,formatWeekNumber:Z8,formatWeekdayName:J8,formatYearCaption:e9}),r9=function(e,t,r){return Kt(e,"do MMMM (EEEE)",r)},n9=function(){return"Month: "},o9=function(){return"Go to next month"},a9=function(){return"Go to previous month"},s9=function(e,t){return Kt(e,"cccc",t)},i9=function(e){return"Week n. ".concat(e)},l9=function(){return"Year: "},c9=Object.freeze({__proto__:null,labelDay:r9,labelMonthDropdown:n9,labelNext:o9,labelPrevious:a9,labelWeekNumber:i9,labelWeekday:s9,labelYearDropdown:l9});function u9(){var e="buttons",t=G8,r=G0,n={},o={},a=1,s={},i=new Date;return{captionLayout:e,classNames:t,formatters:t9,labels:c9,locale:r,modifiersClassNames:n,modifiers:o,numberOfMonths:a,styles:s,today:i,mode:"default"}}function d9(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,o=e.toMonth,a=e.fromDate,s=e.toDate;return n?a=Je(n):t&&(a=new Date(t,0,1)),o?s=yl(o):r&&(s=new Date(r,11,31)),{fromDate:a?dn(a):void 0,toDate:s?dn(s):void 0}}var lp=f.createContext(void 0);function f9(e){var t,r=e.initialProps,n=u9(),o=d9(r),a=o.fromDate,s=o.toDate,i=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;i!=="buttons"&&(!a||!s)&&(i="buttons");var l;(Ya(r)||io(r)||lo(r))&&(l=r.onSelect);var c=se(se(se({},n),r),{captionLayout:i,classNames:se(se({},n.classNames),r.classNames),components:se({},r.components),formatters:se(se({},n.formatters),r.formatters),fromDate:a,labels:se(se({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:se(se({},n.modifiers),r.modifiers),modifiersClassNames:se(se({},n.modifiersClassNames),r.modifiersClassNames),onSelect:l,styles:se(se({},n.styles),r.styles),toDate:s});return z.jsx(lp.Provider,{value:c,children:e.children})}function De(){var e=f.useContext(lp);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function cp(e){var t=De(),r=t.locale,n=t.classNames,o=t.styles,a=t.formatters.formatCaption;return z.jsx("div",{className:n.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:r})})}function p9(e){return z.jsx("svg",se({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:z.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function up(e){var t,r,n=e.onChange,o=e.value,a=e.children,s=e.caption,i=e.className,l=e.style,c=De(),u=(r=(t=c.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:p9;return z.jsxs("div",{className:i,style:l,children:[z.jsx("span",{className:c.classNames.vhidden,children:e["aria-label"]}),z.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:o,onChange:n,children:a}),z.jsxs("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[s,z.jsx(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function h9(e){var t,r=De(),n=r.fromDate,o=r.toDate,a=r.styles,s=r.locale,i=r.formatters.formatMonthCaption,l=r.classNames,c=r.components,u=r.labels.labelMonthDropdown;if(!n)return z.jsx(z.Fragment,{});if(!o)return z.jsx(z.Fragment,{});var d=[];if(K8(n,o))for(var p=Je(n),h=n.getMonth();h<=o.getMonth();h++)d.push(Tl(p,h));else for(var p=Je(new Date),h=0;h<=11;h++)d.push(Tl(p,h));var g=function(y){var P=Number(y.target.value),x=Tl(Je(e.displayMonth),P);e.onChange(x)},b=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:up;return z.jsx(b,{name:"months","aria-label":u(),className:l.dropdown_month,style:a.dropdown_month,onChange:g,value:e.displayMonth.getMonth(),caption:i(e.displayMonth,{locale:s}),children:d.map(function(y){return z.jsx("option",{value:y.getMonth(),children:i(y,{locale:s})},y.getMonth())})})}function m9(e){var t,r=e.displayMonth,n=De(),o=n.fromDate,a=n.toDate,s=n.locale,i=n.styles,l=n.classNames,c=n.components,u=n.formatters.formatYearCaption,d=n.labels.labelYearDropdown,p=[];if(!o)return z.jsx(z.Fragment,{});if(!a)return z.jsx(z.Fragment,{});for(var h=o.getFullYear(),g=a.getFullYear(),b=h;b<=g;b++)p.push(op(H0(new Date),b));var y=function(x){var C=op(Je(r),Number(x.target.value));e.onChange(C)},P=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:up;return z.jsx(P,{name:"years","aria-label":d(),className:l.dropdown_year,style:i.dropdown_year,onChange:y,value:r.getFullYear(),caption:u(r,{locale:s}),children:p.map(function(x){return z.jsx("option",{value:x.getFullYear(),children:u(x,{locale:s})},x.getFullYear())})})}function g9(e,t){var r=f.useState(e),n=r[0],o=r[1],a=t===void 0?n:t;return[a,o]}function v9(e){var t=e.month,r=e.defaultMonth,n=e.today,o=t||r||n||new Date,a=e.toDate,s=e.fromDate,i=e.numberOfMonths,l=i===void 0?1:i;if(a&&ro(a,o)<0){var c=-1*(l-1);o=xt(a,c)}return s&&ro(o,s)<0&&(o=s),Je(o)}function b9(){var e=De(),t=v9(e),r=g9(t,e.month),n=r[0],o=r[1],a=function(s){var i;if(!e.disableNavigation){var l=Je(s);o(l),(i=e.onMonthChange)===null||i===void 0||i.call(e,l)}};return[n,a]}function y9(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,o=Je(e),a=Je(xt(o,n)),s=ro(a,o),i=[],l=0;l<s;l++){var c=xt(o,l);i.push(c)}return r&&(i=i.reverse()),i}function x9(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,s=n?a:1,i=Je(e);if(!r)return xt(i,s);var l=ro(r,e);if(!(l<a))return xt(i,s)}}function w9(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,s=n?a:1,i=Je(e);if(!r)return xt(i,-s);var l=ro(i,r);if(!(l<=0))return xt(i,-s)}}var dp=f.createContext(void 0);function C9(e){var t=De(),r=b9(),n=r[0],o=r[1],a=y9(n,t),s=x9(n,t),i=w9(n,t),l=function(d){return a.some(function(p){return Pl(d,p)})},c=function(d,p){l(d)||(p&&np(d,p)?o(xt(d,1+t.numberOfMonths*-1)):o(d))},u={currentMonth:n,displayMonths:a,goToMonth:o,goToDate:c,previousMonth:i,nextMonth:s,isDateDisplayed:l};return z.jsx(dp.Provider,{value:u,children:e.children})}function pn(){var e=f.useContext(dp);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function fp(e){var t,r=De(),n=r.classNames,o=r.styles,a=r.components,s=pn().goToMonth,i=function(u){s(xt(u,e.displayIndex?-e.displayIndex:0))},l=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:cp,c=z.jsx(l,{id:e.id,displayMonth:e.displayMonth});return z.jsxs("div",{className:n.caption_dropdowns,style:o.caption_dropdowns,children:[z.jsx("div",{className:n.vhidden,children:c}),z.jsx(h9,{onChange:i,displayMonth:e.displayMonth}),z.jsx(m9,{onChange:i,displayMonth:e.displayMonth})]})}function P9(e){return z.jsx("svg",se({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:z.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function M9(e){return z.jsx("svg",se({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:z.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Ga=f.forwardRef(function(e,t){var r=De(),n=r.classNames,o=r.styles,a=[n.button_reset,n.button];e.className&&a.push(e.className);var s=a.join(" "),i=se(se({},o.button_reset),o.button);return e.style&&Object.assign(i,e.style),z.jsx("button",se({},e,{ref:t,type:"button",className:s,style:i}))});function T9(e){var t,r,n=De(),o=n.dir,a=n.locale,s=n.classNames,i=n.styles,l=n.labels,c=l.labelPrevious,u=l.labelNext,d=n.components;if(!e.nextMonth&&!e.previousMonth)return z.jsx(z.Fragment,{});var p=c(e.previousMonth,{locale:a}),h=[s.nav_button,s.nav_button_previous].join(" "),g=u(e.nextMonth,{locale:a}),b=[s.nav_button,s.nav_button_next].join(" "),y=(t=d==null?void 0:d.IconRight)!==null&&t!==void 0?t:M9,P=(r=d==null?void 0:d.IconLeft)!==null&&r!==void 0?r:P9;return z.jsxs("div",{className:s.nav,style:i.nav,children:[!e.hidePrevious&&z.jsx(Ga,{name:"previous-month","aria-label":p,className:h,style:i.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?z.jsx(y,{className:s.nav_icon,style:i.nav_icon}):z.jsx(P,{className:s.nav_icon,style:i.nav_icon})}),!e.hideNext&&z.jsx(Ga,{name:"next-month","aria-label":g,className:b,style:i.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?z.jsx(P,{className:s.nav_icon,style:i.nav_icon}):z.jsx(y,{className:s.nav_icon,style:i.nav_icon})})]})}function pp(e){var t=De().numberOfMonths,r=pn(),n=r.previousMonth,o=r.nextMonth,a=r.goToMonth,s=r.displayMonths,i=s.findIndex(function(g){return Pl(e.displayMonth,g)}),l=i===0,c=i===s.length-1,u=t>1&&(l||!c),d=t>1&&(c||!l),p=function(){n&&a(n)},h=function(){o&&a(o)};return z.jsx(T9,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:d,nextMonth:o,previousMonth:n,onPreviousClick:p,onNextClick:h})}function S9(e){var t,r=De(),n=r.classNames,o=r.disableNavigation,a=r.styles,s=r.captionLayout,i=r.components,l=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:cp,c;return o?c=z.jsx(l,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?c=z.jsx(fp,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?c=z.jsxs(z.Fragment,{children:[z.jsx(fp,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),z.jsx(pp,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=z.jsxs(z.Fragment,{children:[z.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),z.jsx(pp,{displayMonth:e.displayMonth,id:e.id})]}),z.jsx("div",{className:n.caption,style:a.caption,children:c})}function E9(e){var t=De(),r=t.footer,n=t.styles,o=t.classNames.tfoot;return r?z.jsx("tfoot",{className:o,style:n.tfoot,children:z.jsx("tr",{children:z.jsx("td",{colSpan:8,children:r})})}):z.jsx(z.Fragment,{})}function $9(e,t,r){for(var n=r?$r(new Date):$t(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var s=Ge(n,a);o.push(s)}return o}function D9(){var e=De(),t=e.classNames,r=e.styles,n=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,i=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=$9(o,a,s);return z.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&z.jsx("td",{style:r.head_cell,className:t.head_cell}),c.map(function(u,d){return z.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":l(u,{locale:o}),children:i(u,{locale:o})},d)})]})}function I9(){var e,t=De(),r=t.classNames,n=t.styles,o=t.components,a=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:D9;return z.jsx("thead",{style:n.head,className:r.head,children:z.jsx(a,{})})}function k9(e){var t=De(),r=t.locale,n=t.formatters.formatDay;return z.jsx(z.Fragment,{children:n(e.date,{locale:r})})}var El=f.createContext(void 0);function A9(e){if(!io(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return z.jsx(El.Provider,{value:t,children:e.children})}return z.jsx(O9,{initialProps:e.initialProps,children:e.children})}function O9(e){var t=e.initialProps,r=e.children,n=t.selected,o=t.min,a=t.max,s=function(c,u,d){var p,h;(p=t.onDayClick)===null||p===void 0||p.call(t,c,u,d);var g=!!(u.selected&&o&&(n==null?void 0:n.length)===o);if(!g){var b=!!(!u.selected&&a&&(n==null?void 0:n.length)===a);if(!b){var y=n?ap([],n,!0):[];if(u.selected){var P=y.findIndex(function(x){return Ze(c,x)});y.splice(P,1)}else y.push(c);(h=t.onSelect)===null||h===void 0||h.call(t,y,c,u,d)}}},i={disabled:[]};n&&i.disabled.push(function(c){var u=a&&n.length>a-1,d=n.some(function(p){return Ze(p,c)});return!!(u&&!d)});var l={selected:n,onDayClick:s,modifiers:i};return z.jsx(El.Provider,{value:l,children:r})}function $l(){var e=f.useContext(El);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function N9(e,t){var r=t||{},n=r.from,o=r.to;return n&&o?Ze(o,e)&&Ze(n,e)?void 0:Ze(o,e)?{from:o,to:void 0}:Ze(n,e)?void 0:Cl(n,e)?{from:e,to:o}:{from:n,to:e}:o?Cl(e,o)?{from:o,to:e}:{from:e,to:o}:n?np(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var Dl=f.createContext(void 0);function j9(e){if(!lo(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return z.jsx(Dl.Provider,{value:t,children:e.children})}return z.jsx(L9,{initialProps:e.initialProps,children:e.children})}function L9(e){var t=e.initialProps,r=e.children,n=t.selected,o=n||{},a=o.from,s=o.to,i=t.min,l=t.max,c=function(h,g,b){var y,P;(y=t.onDayClick)===null||y===void 0||y.call(t,h,g,b);var x=N9(h,n);(P=t.onSelect)===null||P===void 0||P.call(t,x,h,g,b)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],s?(u.range_end=[s],Ze(a,s)||(u.range_middle=[{after:a,before:s}])):u.range_end=[a]):s&&(u.range_start=[s],u.range_end=[s]),i&&(a&&!s&&u.disabled.push({after:Ml(a,i-1),before:Ge(a,i-1)}),a&&s&&u.disabled.push({after:a,before:Ge(a,i-1)}),!a&&s&&u.disabled.push({after:Ml(s,i-1),before:Ge(s,i-1)})),l){if(a&&!s&&(u.disabled.push({before:Ge(a,-l+1)}),u.disabled.push({after:Ge(a,l-1)})),a&&s){var d=Dt(s,a)+1,p=l-d;u.disabled.push({before:Ml(a,p)}),u.disabled.push({after:Ge(s,p)})}!a&&s&&(u.disabled.push({before:Ge(s,-l+1)}),u.disabled.push({after:Ge(s,l-1)}))}return z.jsx(Dl.Provider,{value:{selected:n,onDayClick:c,modifiers:u},children:r})}function Il(){var e=f.useContext(Dl);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function qa(e){return Array.isArray(e)?ap([],e,!0):e!==void 0?[e]:[]}function _9(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],o=r[1];t[n]=qa(o)}),t}var wt;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(wt||(wt={}));var F9=wt.Selected,Ut=wt.Disabled,V9=wt.Hidden,z9=wt.Today,kl=wt.RangeEnd,Al=wt.RangeMiddle,Ol=wt.RangeStart,W9=wt.Outside;function B9(e,t,r){var n,o=(n={},n[F9]=qa(e.selected),n[Ut]=qa(e.disabled),n[V9]=qa(e.hidden),n[z9]=[e.today],n[kl]=[],n[Al]=[],n[Ol]=[],n[W9]=[],n);return e.fromDate&&o[Ut].push({before:e.fromDate}),e.toDate&&o[Ut].push({after:e.toDate}),io(e)?o[Ut]=o[Ut].concat(t.modifiers[Ut]):lo(e)&&(o[Ut]=o[Ut].concat(r.modifiers[Ut]),o[Ol]=r.modifiers[Ol],o[Al]=r.modifiers[Al],o[kl]=r.modifiers[kl]),o}var hp=f.createContext(void 0);function R9(e){var t=De(),r=$l(),n=Il(),o=B9(t,r,n),a=_9(t.modifiers),s=se(se({},o),a);return z.jsx(hp.Provider,{value:s,children:e.children})}function mp(){var e=f.useContext(hp);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function K9(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function U9(e){return!!(e&&typeof e=="object"&&"from"in e)}function H9(e){return!!(e&&typeof e=="object"&&"after"in e)}function Y9(e){return!!(e&&typeof e=="object"&&"before"in e)}function G9(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function q9(e,t){var r,n=t.from,o=t.to;if(n&&o){var a=Dt(o,n)<0;a&&(r=[o,n],n=r[0],o=r[1]);var s=Dt(e,n)>=0&&Dt(o,e)>=0;return s}return o?Ze(o,e):n?Ze(n,e):!1}function Q9(e){return bl(e)}function X9(e){return Array.isArray(e)&&e.every(bl)}function Z9(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(Q9(r))return Ze(e,r);if(X9(r))return r.includes(e);if(U9(r))return q9(e,r);if(G9(r))return r.dayOfWeek.includes(e.getDay());if(K9(r)){var n=Dt(r.before,e),o=Dt(r.after,e),a=n>0,s=o<0,i=Cl(r.before,r.after);return i?s&&a:a||s}return H9(r)?Dt(e,r.after)>0:Y9(r)?Dt(r.before,e)>0:typeof r=="function"?r(e):!1})}function Nl(e,t,r){var n=Object.keys(t).reduce(function(a,s){var i=t[s];return Z9(e,i)&&a.push(s),a},[]),o={};return n.forEach(function(a){return o[a]=!0}),r&&!Pl(e,r)&&(o.outside=!0),o}function J9(e,t){for(var r=Je(e[0]),n=yl(e[e.length-1]),o,a,s=r;s<=n;){var i=Nl(s,t),l=!i.disabled&&!i.hidden;if(!l){s=Ge(s,1);continue}if(i.selected)return s;i.today&&!a&&(a=s),o||(o=s),s=Ge(s,1)}return a||o}var ex=365;function gp(e,t){var r=t.moveBy,n=t.direction,o=t.context,a=t.modifiers,s=t.retry,i=s===void 0?{count:0,lastFocused:e}:s,l=o.weekStartsOn,c=o.fromDate,u=o.toDate,d=o.locale,p={day:Ge,week:vl,month:xt,year:B7,startOfWeek:function(y){return o.ISOWeek?$r(y):$t(y,{locale:d,weekStartsOn:l})},endOfWeek:function(y){return o.ISOWeek?Y0(y):xl(y,{locale:d,weekStartsOn:l})}},h=p[r](e,n==="after"?1:-1);n==="before"&&c?h=R7([c,h]):n==="after"&&u&&(h=K7([u,h]));var g=!0;if(a){var b=Nl(h,a);g=!b.disabled&&!b.hidden}return g?h:i.count>ex?i.lastFocused:gp(h,{moveBy:r,direction:n,context:o,modifiers:a,retry:se(se({},i),{count:i.count+1})})}var vp=f.createContext(void 0);function tx(e){var t=pn(),r=mp(),n=f.useState(),o=n[0],a=n[1],s=f.useState(),i=s[0],l=s[1],c=J9(t.displayMonths,r),u=o??(i&&t.isDateDisplayed(i))?i:c,d=function(){l(o),a(void 0)},p=function(y){a(y)},h=De(),g=function(y,P){if(o){var x=gp(o,{moveBy:y,direction:P,context:h,modifiers:r});Ze(o,x)||(t.goToDate(x,o),p(x))}},b={focusedDay:o,focusTarget:u,blur:d,focus:p,focusDayAfter:function(){return g("day","after")},focusDayBefore:function(){return g("day","before")},focusWeekAfter:function(){return g("week","after")},focusWeekBefore:function(){return g("week","before")},focusMonthBefore:function(){return g("month","before")},focusMonthAfter:function(){return g("month","after")},focusYearBefore:function(){return g("year","before")},focusYearAfter:function(){return g("year","after")},focusStartOfWeek:function(){return g("startOfWeek","before")},focusEndOfWeek:function(){return g("endOfWeek","after")}};return z.jsx(vp.Provider,{value:b,children:e.children})}function jl(){var e=f.useContext(vp);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function rx(e,t){var r=mp(),n=Nl(e,r,t);return n}var Ll=f.createContext(void 0);function nx(e){if(!Ya(e.initialProps)){var t={selected:void 0};return z.jsx(Ll.Provider,{value:t,children:e.children})}return z.jsx(ox,{initialProps:e.initialProps,children:e.children})}function ox(e){var t=e.initialProps,r=e.children,n=function(a,s,i){var l,c,u;if((l=t.onDayClick)===null||l===void 0||l.call(t,a,s,i),s.selected&&!t.required){(c=t.onSelect)===null||c===void 0||c.call(t,void 0,a,s,i);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,s,i)},o={selected:t.selected,onDayClick:n};return z.jsx(Ll.Provider,{value:o,children:r})}function bp(){var e=f.useContext(Ll);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function ax(e,t){var r=De(),n=bp(),o=$l(),a=Il(),s=jl(),i=s.focusDayAfter,l=s.focusDayBefore,c=s.focusWeekAfter,u=s.focusWeekBefore,d=s.blur,p=s.focus,h=s.focusMonthBefore,g=s.focusMonthAfter,b=s.focusYearBefore,y=s.focusYearAfter,P=s.focusStartOfWeek,x=s.focusEndOfWeek,C=function(E){var V,H,R,W;Ya(r)?(V=n.onDayClick)===null||V===void 0||V.call(n,e,t,E):io(r)?(H=o.onDayClick)===null||H===void 0||H.call(o,e,t,E):lo(r)?(R=a.onDayClick)===null||R===void 0||R.call(a,e,t,E):(W=r.onDayClick)===null||W===void 0||W.call(r,e,t,E)},S=function(E){var V;p(e),(V=r.onDayFocus)===null||V===void 0||V.call(r,e,t,E)},$=function(E){var V;d(),(V=r.onDayBlur)===null||V===void 0||V.call(r,e,t,E)},N=function(E){var V;(V=r.onDayMouseEnter)===null||V===void 0||V.call(r,e,t,E)},j=function(E){var V;(V=r.onDayMouseLeave)===null||V===void 0||V.call(r,e,t,E)},m=function(E){var V;(V=r.onDayPointerEnter)===null||V===void 0||V.call(r,e,t,E)},D=function(E){var V;(V=r.onDayPointerLeave)===null||V===void 0||V.call(r,e,t,E)},I=function(E){var V;(V=r.onDayTouchCancel)===null||V===void 0||V.call(r,e,t,E)},T=function(E){var V;(V=r.onDayTouchEnd)===null||V===void 0||V.call(r,e,t,E)},k=function(E){var V;(V=r.onDayTouchMove)===null||V===void 0||V.call(r,e,t,E)},w=function(E){var V;(V=r.onDayTouchStart)===null||V===void 0||V.call(r,e,t,E)},M=function(E){var V;(V=r.onDayKeyUp)===null||V===void 0||V.call(r,e,t,E)},O=function(E){var V;switch(E.key){case"ArrowLeft":E.preventDefault(),E.stopPropagation(),r.dir==="rtl"?i():l();break;case"ArrowRight":E.preventDefault(),E.stopPropagation(),r.dir==="rtl"?l():i();break;case"ArrowDown":E.preventDefault(),E.stopPropagation(),c();break;case"ArrowUp":E.preventDefault(),E.stopPropagation(),u();break;case"PageUp":E.preventDefault(),E.stopPropagation(),E.shiftKey?b():h();break;case"PageDown":E.preventDefault(),E.stopPropagation(),E.shiftKey?y():g();break;case"Home":E.preventDefault(),E.stopPropagation(),P();break;case"End":E.preventDefault(),E.stopPropagation(),x();break}(V=r.onDayKeyDown)===null||V===void 0||V.call(r,e,t,E)},F={onClick:C,onFocus:S,onBlur:$,onKeyDown:O,onKeyUp:M,onMouseEnter:N,onMouseLeave:j,onPointerEnter:m,onPointerLeave:D,onTouchCancel:I,onTouchEnd:T,onTouchMove:k,onTouchStart:w};return F}function sx(){var e=De(),t=bp(),r=$l(),n=Il(),o=Ya(e)?t.selected:io(e)?r.selected:lo(e)?n.selected:void 0;return o}function ix(e){return Object.values(wt).includes(e)}function lx(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var o=e.modifiersClassNames[n];if(o)r.push(o);else if(ix(n)){var a=e.classNames["day_".concat(n)];a&&r.push(a)}}),r}function cx(e,t){var r=se({},e.styles.day);return Object.keys(t).forEach(function(n){var o;r=se(se({},r),(o=e.modifiersStyles)===null||o===void 0?void 0:o[n])}),r}function ux(e,t,r){var n,o,a,s=De(),i=jl(),l=rx(e,t),c=ax(e,l),u=sx(),d=!!(s.onDayClick||s.mode!=="default");f.useEffect(function(){var N;l.outside||i.focusedDay&&d&&Ze(i.focusedDay,e)&&((N=r.current)===null||N===void 0||N.focus())},[i.focusedDay,e,r,d,l.outside]);var p=lx(s,l).join(" "),h=cx(s,l),g=!!(l.outside&&!s.showOutsideDays||l.hidden),b=(a=(o=s.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:k9,y=z.jsx(b,{date:e,displayMonth:t,activeModifiers:l}),P={style:h,className:p,children:y,role:"gridcell"},x=i.focusTarget&&Ze(i.focusTarget,e)&&!l.outside,C=i.focusedDay&&Ze(i.focusedDay,e),S=se(se(se({},P),(n={disabled:l.disabled,role:"gridcell"},n["aria-selected"]=l.selected,n.tabIndex=C||x?0:-1,n)),c),$={isButton:d,isHidden:g,activeModifiers:l,selectedDays:u,buttonProps:S,divProps:P};return $}function dx(e){var t=f.useRef(null),r=ux(e.date,e.displayMonth,t);return r.isHidden?z.jsx("div",{role:"gridcell"}):r.isButton?z.jsx(Ga,se({name:"day",ref:t},r.buttonProps)):z.jsx("div",se({},r.divProps))}function fx(e){var t=e.number,r=e.dates,n=De(),o=n.onWeekNumberClick,a=n.styles,s=n.classNames,i=n.locale,l=n.labels.labelWeekNumber,c=n.formatters.formatWeekNumber,u=c(Number(t),{locale:i});if(!o)return z.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:u});var d=l(Number(t),{locale:i}),p=function(h){o(t,r,h)};return z.jsx(Ga,{name:"week-number","aria-label":d,className:s.weeknumber,style:a.weeknumber,onClick:p,children:u})}function px(e){var t,r,n=De(),o=n.styles,a=n.classNames,s=n.showWeekNumber,i=n.components,l=(t=i==null?void 0:i.Day)!==null&&t!==void 0?t:dx,c=(r=i==null?void 0:i.WeekNumber)!==null&&r!==void 0?r:fx,u;return s&&(u=z.jsx("td",{className:a.cell,style:o.cell,children:z.jsx(c,{number:e.weekNumber,dates:e.dates})})),z.jsxs("tr",{className:a.row,style:o.row,children:[u,e.dates.map(function(d){return z.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:z.jsx(l,{displayMonth:e.displayMonth,date:d})},W8(d))})]})}function yp(e,t,r){for(var n=r!=null&&r.ISOWeek?Y0(t):xl(t,r),o=r!=null&&r.ISOWeek?$r(e):$t(e,r),a=Dt(n,o),s=[],i=0;i<=a;i++)s.push(Ge(o,i));var l=s.reduce(function(c,u){var d=r!=null&&r.ISOWeek?q0(u):X0(u,r),p=c.find(function(h){return h.weekNumber===d});return p?(p.dates.push(u),c):(c.push({weekNumber:d,dates:[u]}),c)},[]);return l}function hx(e,t){var r=yp(Je(e),yl(e),t);if(t!=null&&t.useFixedWeeks){var n=R8(e,t);if(n<6){var o=r[r.length-1],a=o.dates[o.dates.length-1],s=vl(a,6-n),i=yp(vl(a,1),s,t);r.push.apply(r,i)}}return r}function mx(e){var t,r,n,o=De(),a=o.locale,s=o.classNames,i=o.styles,l=o.hideHead,c=o.fixedWeeks,u=o.components,d=o.weekStartsOn,p=o.firstWeekContainsDate,h=o.ISOWeek,g=hx(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:a,weekStartsOn:d,firstWeekContainsDate:p}),b=(t=u==null?void 0:u.Head)!==null&&t!==void 0?t:I9,y=(r=u==null?void 0:u.Row)!==null&&r!==void 0?r:px,P=(n=u==null?void 0:u.Footer)!==null&&n!==void 0?n:E9;return z.jsxs("table",{id:e.id,className:s.table,style:i.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&z.jsx(b,{}),z.jsx("tbody",{className:s.tbody,style:i.tbody,children:g.map(function(x){return z.jsx(y,{displayMonth:e.displayMonth,dates:x.dates,weekNumber:x.weekNumber},x.weekNumber)})}),z.jsx(P,{displayMonth:e.displayMonth})]})}function gx(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var vx=gx()?f.useLayoutEffect:f.useEffect,_l=!1,bx=0;function xp(){return"react-day-picker-".concat(++bx)}function yx(e){var t,r=e??(_l?xp():null),n=f.useState(r),o=n[0],a=n[1];return vx(function(){o===null&&a(xp())},[]),f.useEffect(function(){_l===!1&&(_l=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function xx(e){var t,r,n=De(),o=n.dir,a=n.classNames,s=n.styles,i=n.components,l=pn().displayMonths,c=yx(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),u=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,d=[a.month],p=s.month,h=e.displayIndex===0,g=e.displayIndex===l.length-1,b=!h&&!g;o==="rtl"&&(t=[h,g],g=t[0],h=t[1]),h&&(d.push(a.caption_start),p=se(se({},p),s.caption_start)),g&&(d.push(a.caption_end),p=se(se({},p),s.caption_end)),b&&(d.push(a.caption_between),p=se(se({},p),s.caption_between));var y=(r=i==null?void 0:i.Caption)!==null&&r!==void 0?r:S9;return z.jsxs("div",{className:d.join(" "),style:p,children:[z.jsx(y,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),z.jsx(mx,{id:u,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function wx(e){var t=De(),r=t.classNames,n=t.styles;return z.jsx("div",{className:r.months,style:n.months,children:e.children})}function Cx(e){var t,r,n=e.initialProps,o=De(),a=jl(),s=pn(),i=f.useState(!1),l=i[0],c=i[1];f.useEffect(function(){o.initialFocus&&a.focusTarget&&(l||(a.focus(a.focusTarget),c(!0)))},[o.initialFocus,l,a.focus,a.focusTarget,a]);var u=[o.classNames.root,o.className];o.numberOfMonths>1&&u.push(o.classNames.multiple_months),o.showWeekNumber&&u.push(o.classNames.with_weeknumber);var d=se(se({},o.styles.root),o.style),p=Object.keys(n).filter(function(g){return g.startsWith("data-")}).reduce(function(g,b){var y;return se(se({},g),(y={},y[b]=n[b],y))},{}),h=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:wx;return z.jsx("div",se({className:u.join(" "),style:d,dir:o.dir,id:o.id,nonce:n.nonce,title:n.title,lang:n.lang},p,{children:z.jsx(h,{children:s.displayMonths.map(function(g,b){return z.jsx(xx,{displayIndex:b,displayMonth:g},b)})})}))}function Px(e){var t=e.children,r=U8(e,["children"]);return z.jsx(f9,{initialProps:r,children:z.jsx(C9,{children:z.jsx(nx,{initialProps:r,children:z.jsx(A9,{initialProps:r,children:z.jsx(j9,{initialProps:r,children:z.jsx(R9,{children:z.jsx(tx,{children:t})})})})})})})}function Mx(e){return z.jsx(Px,se({},e,{children:z.jsx(Cx,{initialProps:e})}))}const nw="",ow="",Tx=e=>{const{goToMonth:t,nextMonth:r,previousMonth:n}=pn();return L.jsxs("div",{className:"flex px-[10px] py-2",children:[L.jsx("button",{disabled:!n,onClick:()=>n&&t(n),children:L.jsx(Ue,{name:"chevron-left",className:"text-xs text-primary-grey-800"})}),L.jsx(hc,{className:"flex flex-1 justify-center font-satoshi text-2xl font-medium text-primary-black-500",children:Kt(e.displayMonth,"MMM yyy")}),L.jsx("button",{disabled:!r,onClick:()=>r&&t(r),children:L.jsx(Ue,{name:"chevron-right",className:"text-xs text-primary-grey-800"})})]})},wp=({...e})=>L.jsx(Mx,{disabled:t=>t>new Date||t<new Date("1900-01-01"),components:{Caption:Tx},showOutsideDays:!0,...e}),Sx=({children:e,className:t,variant:r="light",color:n="red"})=>{const o=we({base:"flex h-4 items-center justify-center gap-2.5 rounded bg-transparent p-0",variants:{variant:{light:"",dark:"",ghost:""},color:{red:"text-complementary-red-500",orange:"text-complementary-orange-500",lightGreen:"text-secondary-green-500",violet:"text-complementary-violet-500",blue:"text-complementary-blue-500",darkGreen:"text-primary-green-500",yellow:"text-complementary-yellow-500",gray:"text-primary-grey-800"}},compoundVariants:[{variant:"dark",color:"red",class:"bg-complementary-red-500 text-complementary-red-50"},{variant:"dark",color:"orange",class:"bg-complementary-orange-500 text-complementary-orange-50"},{variant:"dark",color:"lightGreen",class:"bg-secondary-green-500 text-white"},{variant:"dark",color:"violet",class:"bg-complementary-violet-500 text-complementary-violet-50"},{variant:"dark",color:"blue",class:"bg-complementary-blue-500 text-complementary-blue-50"},{variant:"dark",color:"darkGreen",class:"bg-primary-green-500 text-primary-green-50"},{variant:"dark",color:"yellow",class:"bg-complementary-yellow-500 text-complementary-yellow-50"},{variant:"light",color:"red",class:"bg-complementary-red-50 text-complementary-red-500"},{variant:"light",color:"orange",class:"bg-complementary-orange-50 text-complementary-orange-500"},{variant:"light",color:"lightGreen",class:"bg-secondary-green-50 text-secondary-green-500"},{variant:"light",color:"violet",class:"bg-complementary-violet-50 text-complementary-violet-500"},{variant:"light",color:"blue",class:"bg-complementary-blue-50 text-complementary-blue-500"},{variant:"light",color:"darkGreen",class:"bg-primary-green-50 text-primary-green-500"},{variant:"light",color:"yellow",class:"bg-complementary-yellow-50 text-complementary-yellow-500"},{variant:"light",color:"gray",class:"bg-primary-grey-500 text-primary-grey-800"}]}),a=we({base:"p-1 font-satoshi text-[10px] font-bold"});return L.jsx(t1,{classNames:{base:o({className:t,variant:r,color:n}),content:a({})},children:e})},aw="",sw="",Ex=()=>{const e=Un({enter:"animate__animated animate__fadeInUp animate__faster",exit:"animate__animated animate__fadeOutDown animate__faster",collapse:!1});return L.jsx(E4,{limit:1,closeOnClick:!0,draggable:!1,autoClose:5e3,closeButton:!1,hideProgressBar:!0,className:"!m-0 !w-full !max-w-[840px] !p-0",toastClassName:()=>"",bodyClassName:()=>"w-full [&>div]:w-full !p-0",transition:e,newestOnTop:!0,position:"bottom-center"})},$x=({label:e,initialDate:t,onSelect:r,dateFormat:n})=>{const[o,a]=f.useState(!1),[s,i]=f.useState(t),l=()=>{a(!0)},c=d=>{r&&r(d),i(d),u()},u=()=>{a(!1)};return L.jsx(K0,{isOpen:o,align:"end",onInteractOutside:u,content:L.jsx(wp,{selected:s,onSelect:c,mode:"single"}),children:L.jsx("div",{children:L.jsx(ll,{value:s?Kt(s,n??"dd/MM/yyyy"):"",onClick:l,isDatePicker:!0,label:e,icon:"calendar"})})})},Dx={white:"#ffffff",black:"#000000",primary:{green:{50:"#e9eceb",100:"#bac3c2",200:"#99a7a4",300:"#6b7e7b",400:"#4e6561",500:"#223f3a",600:"#1f3935",700:"#182d29",800:"#132320",900:"#0e1a18"},black:{50:"#e6e6e6",100:"#b0b0b0",200:"#8a8a8a",300:"#545454",400:"#333333",500:"#000000",600:"#000000",700:"#000000",800:"#000000",900:"#000000"},grey:{50:"##fefefe",100:"#fcfdfd",200:"#fafbfc",300:"#f8fafb",400:"#f7f9fa",500:"#f5f7f9",600:"#dfe1e3",700:"#aeafb1",800:"#878889",900:"#676869"}},secondary:{green:{50:"#e6f7ee",100:"#b2e7c9",200:"#8cdbaf",300:"#58ca8a",400:"#38c074",500:"#06b051",600:"#05a04a",700:"#047d3a",800:"#03612d",900:"#034a22"}},tertiary:{green:{50:"#ebfaf2",100:"#c2f0d8",200:"#a4e8c5",300:"#7adeaa",400:"#61d799",500:"#39cd80",600:"#34bb74",700:"#28925b",800:"#1f7146",900:"#185636"}},complementary:{violet:{50:"#f0ecf5",100:"#d1c3df",200:"#bba7d0",300:"#9d7ebb",400:"#8965ad",500:"#6c3f99",600:"#62398b",700:"#4d2d6d",800:"#3b2354",900:"#2d1a40"},blue:{50:"#e6f7f7",100:"#b1e6e6",200:"#8cdada",300:"#57c9c9",400:"#36bfbe",500:"#04afae",600:"#049f9e",700:"#037c7c",800:"#026060",900:"#024a49"},red:{50:"#faebea",100:"#f0c1be",200:"#e9a39f",300:"#df7973",400:"#d95f58",500:"#cf372e",600:"#bc322a",700:"#932721",800:"#721e19",900:"#571713"},orange:{50:"#fef3e9",100:"#fbdabb",200:"#f9c99a",300:"#f6b06c",400:"#f5a150",500:"#f28924",600:"#dc7d21",700:"#ac611a",800:"#854b14",900:"#663a0f"},yellow:{50:"#fdfaec",100:"#f9f0c4",200:"#f7e9a8",300:"#f3e080",400:"#f1d968",500:"#edd042",600:"#d8bd3c",700:"#a8942f",800:"#827224",900:"#64571c"}}};Pe.Avatar=T1,Pe.Button=Wi,Pe.Checkbox=f4,Pe.Chip=h4,Pe.DatePicker=wp,Pe.DatePickerInput=$x,Pe.Flag=ch,Pe.Icon=Ue,Pe.Input=ll,Pe.InputPassword=Q6,Pe.Logo=ih,Pe.Popover=K0,Pe.RadioGroup=p4,Pe.SegmentedControl=m4,Pe.Snackbar=S1,Pe.Switch=d4,Pe.Tabs=q6,Pe.Tag=Sx,Pe.ToastContainer=Ex,Pe.Tooltip=b6,Pe.Typography=hc,Pe.colors=Dx,Pe.useSnackbar=$4,Object.defineProperty(Pe,Symbol.toStringTag,{value:"Module"})});
|