From bec07d88caf81b2e7f378d8a777438cd5ac151be Mon Sep 17 00:00:00 2001 From: HasanYahya101 Date: Tue, 23 Jul 2024 19:45:24 +0000 Subject: [PATCH] deploy: 80af96a9daf5e846259112739ba351fae25dffa5 --- assets/index-BgRFNYln.js | 71 ---------------------------------------- assets/index-CNsmT8cT.js | 71 ++++++++++++++++++++++++++++++++++++++++ index.html | 2 +- 3 files changed, 72 insertions(+), 72 deletions(-) delete mode 100644 assets/index-BgRFNYln.js create mode 100644 assets/index-CNsmT8cT.js diff --git a/assets/index-BgRFNYln.js b/assets/index-BgRFNYln.js deleted file mode 100644 index b3b3ca6..0000000 --- a/assets/index-BgRFNYln.js +++ /dev/null @@ -1,71 +0,0 @@ -function fh(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Ld(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Od={exports:{}},ml={},$d={exports:{}},ee={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Wo=Symbol.for("react.element"),ph=Symbol.for("react.portal"),mh=Symbol.for("react.fragment"),hh=Symbol.for("react.strict_mode"),gh=Symbol.for("react.profiler"),vh=Symbol.for("react.provider"),yh=Symbol.for("react.context"),wh=Symbol.for("react.forward_ref"),xh=Symbol.for("react.suspense"),Sh=Symbol.for("react.memo"),Eh=Symbol.for("react.lazy"),Xu=Symbol.iterator;function Ch(e){return e===null||typeof e!="object"?null:(e=Xu&&e[Xu]||e["@@iterator"],typeof e=="function"?e:null)}var Md={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dd=Object.assign,zd={};function Br(e,t,n){this.props=e,this.context=t,this.refs=zd,this.updater=n||Md}Br.prototype.isReactComponent={};Br.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Br.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Id(){}Id.prototype=Br.prototype;function Ra(e,t,n){this.props=e,this.context=t,this.refs=zd,this.updater=n||Md}var _a=Ra.prototype=new Id;_a.constructor=Ra;Dd(_a,Br.prototype);_a.isPureReactComponent=!0;var Zu=Array.isArray,jd=Object.prototype.hasOwnProperty,Aa={current:null},Fd={key:!0,ref:!0,__self:!0,__source:!0};function Bd(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)jd.call(t,r)&&!Fd.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,z=N[$];if(0>>1;$o(ne,O))Qo(Z,ne)?(N[$]=Z,N[Q]=O,$=Q):(N[$]=ne,N[V]=O,$=V);else if(Qo(Z,O))N[$]=Z,N[Q]=O,$=Q;else break e}}return R}function o(N,R){var O=N.sortIndex-R.sortIndex;return O!==0?O:N.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],f=1,c=null,p=3,v=!1,y=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(N){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=N)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function S(N){if(w=!1,g(N),!y)if(n(a)!==null)y=!0,A(k);else{var R=n(u);R!==null&&P(S,R.startTime-N)}}function k(N,R){y=!1,w&&(w=!1,h(_),_=-1),v=!0;var O=p;try{for(g(R),c=n(a);c!==null&&(!(c.expirationTime>R)||N&&!Y());){var $=c.callback;if(typeof $=="function"){c.callback=null,p=c.priorityLevel;var z=$(c.expirationTime<=R);R=e.unstable_now(),typeof z=="function"?c.callback=z:c===n(a)&&r(a),g(R)}else r(a);c=n(a)}if(c!==null)var G=!0;else{var V=n(u);V!==null&&P(S,V.startTime-R),G=!1}return G}finally{c=null,p=O,v=!1}}var T=!1,b=null,_=-1,U=5,D=-1;function Y(){return!(e.unstable_now()-DN||125$?(N.sortIndex=O,t(u,N),n(a)===null&&N===n(u)&&(w?(h(_),_=-1):w=!0,P(S,O-$))):(N.sortIndex=z,t(a,N),y||v||(y=!0,A(k))),N},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(N){var R=p;return function(){var O=p;p=R;try{return N.apply(this,arguments)}finally{p=O}}}})(Yd);Wd.exports=Yd;var Mh=Wd.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Dh=m,it=Mh;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xs=Object.prototype.hasOwnProperty,zh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,qu={},ec={};function Ih(e){return xs.call(ec,e)?!0:xs.call(qu,e)?!1:zh.test(e)?ec[e]=!0:(qu[e]=!0,!1)}function jh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Fh(e,t,n,r){if(t===null||typeof t>"u"||jh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Be(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ae[e]=new Be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ae[t]=new Be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ae[e]=new Be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ae[e]=new Be(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ae[e]=new Be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ae[e]=new Be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ae[e]=new Be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ae[e]=new Be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ae[e]=new Be(e,5,!1,e.toLowerCase(),null,!1,!1)});var Oa=/[\-:]([a-z])/g;function $a(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Oa,$a);Ae[t]=new Be(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Oa,$a);Ae[t]=new Be(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Oa,$a);Ae[t]=new Be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ae[e]=new Be(e,1,!1,e.toLowerCase(),null,!1,!1)});Ae.xlinkHref=new Be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ae[e]=new Be(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ma(e,t,n,r){var o=Ae.hasOwnProperty(t)?Ae[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var a=` -`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Hl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fo(e):""}function Bh(e){switch(e.tag){case 5:return fo(e.type);case 16:return fo("Lazy");case 13:return fo("Suspense");case 19:return fo("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function ks(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case pr:return"Fragment";case fr:return"Portal";case Ss:return"Profiler";case Da:return"StrictMode";case Es:return"Suspense";case Cs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qd:return(e.displayName||"Context")+".Consumer";case Kd:return(e._context.displayName||"Context")+".Provider";case za:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ia:return t=e.displayName||null,t!==null?t:ks(e.type)||"Memo";case gn:t=e._payload,e=e._init;try{return ks(e(t))}catch{}}return null}function Uh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ks(t);case 8:return t===Da?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hh(e){var t=Zd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oi(e){e._valueTracker||(e._valueTracker=Hh(e))}function Jd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ns(e,t){var n=t.checked;return me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function nc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_n(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qd(e,t){t=t.checked,t!=null&&Ma(e,"checked",t,!1)}function bs(e,t){qd(e,t);var n=_n(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ts(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ts(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ts(e,t,n){(t!=="number"||Fi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var po=Array.isArray;function Nr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var go={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vh=["Webkit","ms","Moz","O"];Object.keys(go).forEach(function(e){Vh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),go[t]=go[e]})});function rf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||go.hasOwnProperty(e)&&go[e]?(""+t).trim():t+"px"}function of(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=rf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Wh=me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _s(e,t){if(t){if(Wh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function As(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ls=null;function ja(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Os=null,br=null,Tr=null;function lc(e){if(e=Ko(e)){if(typeof Os!="function")throw Error(L(280));var t=e.stateNode;t&&(t=wl(t),Os(e.stateNode,e.type,t))}}function lf(e){br?Tr?Tr.push(e):Tr=[e]:br=e}function sf(){if(br){var e=br,t=Tr;if(Tr=br=null,lc(e),t)for(e=0;e>>=0,e===0?32:31-(ng(e)/rg|0)|0}var li=64,si=4194304;function mo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=mo(s):(i&=l,i!==0&&(r=mo(i)))}else l=n&~o,l!==0?r=mo(l):i!==0&&(r=mo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Yo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function sg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=yo),hc=" ",gc=!1;function Tf(e,t){switch(e){case"keyup":return Mg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mr=!1;function zg(e,t){switch(e){case"compositionend":return Pf(t);case"keypress":return t.which!==32?null:(gc=!0,hc);case"textInput":return e=t.data,e===hc&&gc?null:e;default:return null}}function Ig(e,t){if(mr)return e==="compositionend"||!Ga&&Tf(e,t)?(e=Nf(),Ri=Va=xn=null,mr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xc(n)}}function Lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Of(){for(var e=window,t=Fi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fi(e.document)}return t}function Ka(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Gg(e){var t=Of(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lf(n.ownerDocument.documentElement,n)){if(r!==null&&Ka(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Sc(n,i);var l=Sc(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,hr=null,js=null,xo=null,Fs=!1;function Ec(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fs||hr==null||hr!==Fi(r)||(r=hr,"selectionStart"in r&&Ka(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xo&&Lo(xo,r)||(xo=r,r=Gi(js,"onSelect"),0yr||(e.current=Ys[yr],Ys[yr]=null,yr--)}function le(e,t){yr++,Ys[yr]=e.current,e.current=t}var An={},De=zn(An),Ye=zn(!1),Qn=An;function Or(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ge(e){return e=e.childContextTypes,e!=null}function Qi(){ue(Ye),ue(De)}function Rc(e,t,n){if(De.current!==An)throw Error(L(168));le(De,t),le(Ye,n)}function Uf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(L(108,Uh(e)||"Unknown",o));return me({},n,r)}function Xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,Qn=De.current,le(De,e),le(Ye,Ye.current),!0}function _c(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Uf(e,t,Qn),r.__reactInternalMemoizedMergedChildContext=e,ue(Ye),ue(De),le(De,e)):ue(Ye),le(Ye,n)}var Kt=null,xl=!1,os=!1;function Hf(e){Kt===null?Kt=[e]:Kt.push(e)}function i0(e){xl=!0,Hf(e)}function In(){if(!os&&Kt!==null){os=!0;var e=0,t=oe;try{var n=Kt;for(oe=1;e>=l,o-=l,Xt=1<<32-Tt(t)+o|n<_?(U=b,b=null):U=b.sibling;var D=p(h,b,g[_],S);if(D===null){b===null&&(b=U);break}e&&b&&D.alternate===null&&t(h,b),d=i(D,d,_),T===null?k=D:T.sibling=D,T=D,b=U}if(_===g.length)return n(h,b),ce&&jn(h,_),k;if(b===null){for(;__?(U=b,b=null):U=b.sibling;var Y=p(h,b,D.value,S);if(Y===null){b===null&&(b=U);break}e&&b&&Y.alternate===null&&t(h,b),d=i(Y,d,_),T===null?k=Y:T.sibling=Y,T=Y,b=U}if(D.done)return n(h,b),ce&&jn(h,_),k;if(b===null){for(;!D.done;_++,D=g.next())D=c(h,D.value,S),D!==null&&(d=i(D,d,_),T===null?k=D:T.sibling=D,T=D);return ce&&jn(h,_),k}for(b=r(h,b);!D.done;_++,D=g.next())D=v(b,h,_,D.value,S),D!==null&&(e&&D.alternate!==null&&b.delete(D.key===null?_:D.key),d=i(D,d,_),T===null?k=D:T.sibling=D,T=D);return e&&b.forEach(function(H){return t(h,H)}),ce&&jn(h,_),k}function C(h,d,g,S){if(typeof g=="object"&&g!==null&&g.type===pr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case ri:e:{for(var k=g.key,T=d;T!==null;){if(T.key===k){if(k=g.type,k===pr){if(T.tag===7){n(h,T.sibling),d=o(T,g.props.children),d.return=h,h=d;break e}}else if(T.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===gn&&Oc(k)===T.type){n(h,T.sibling),d=o(T,g.props),d.ref=eo(h,T,g),d.return=h,h=d;break e}n(h,T);break}else t(h,T);T=T.sibling}g.type===pr?(d=Kn(g.props.children,h.mode,S,g.key),d.return=h,h=d):(S=zi(g.type,g.key,g.props,null,h.mode,S),S.ref=eo(h,d,g),S.return=h,h=S)}return l(h);case fr:e:{for(T=g.key;d!==null;){if(d.key===T)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(h,d.sibling),d=o(d,g.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=fs(g,h.mode,S),d.return=h,h=d}return l(h);case gn:return T=g._init,C(h,d,T(g._payload),S)}if(po(g))return y(h,d,g,S);if(Qr(g))return w(h,d,g,S);mi(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(h,d.sibling),d=o(d,g),d.return=h,h=d):(n(h,d),d=ds(g,h.mode,S),d.return=h,h=d),l(h)):n(h,d)}return C}var Mr=Gf(!0),Kf=Gf(!1),qi=zn(null),el=null,Sr=null,Ja=null;function qa(){Ja=Sr=el=null}function eu(e){var t=qi.current;ue(qi),e._currentValue=t}function Qs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Rr(e,t){el=e,Ja=Sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(We=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(Ja!==e)if(e={context:e,memoizedValue:t,next:null},Sr===null){if(el===null)throw Error(L(308));Sr=e,el.dependencies={lanes:0,firstContext:e}}else Sr=Sr.next=e;return t}var Vn=null;function tu(e){Vn===null?Vn=[e]:Vn.push(e)}function Qf(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,tu(t)):(n.next=o.next,o.next=n),t.interleaved=n,tn(e,r)}function tn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var vn=!1;function nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,tn(e,n)}return o=r.interleaved,o===null?(t.next=t,tu(r)):(t.next=o.next,o.next=t),r.interleaved=t,tn(e,n)}function Ai(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ba(e,n)}}function $c(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tl(e,t,n,r){var o=e.updateQueue;vn=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(i!==null){var c=o.baseState;l=0,f=u=a=null,s=i;do{var p=s.lane,v=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,w=s;switch(p=t,v=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){c=y.call(v,c,p);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,p=typeof y=="function"?y.call(v,c,p):y,p==null)break e;c=me({},c,p);break e;case 2:vn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=v,a=c):f=f.next=v,l|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(f===null&&(a=c),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Jn|=l,e.lanes=l,e.memoizedState=c}}function Mc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ls.transition;ls.transition={};try{e(!1),t()}finally{oe=n,ls.transition=r}}function pp(){return yt().memoizedState}function u0(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mp(e))hp(t,n);else if(n=Qf(e,t,n,r),n!==null){var o=Ie();Pt(n,e,r,o),gp(n,t,r)}}function c0(e,t,n){var r=Pn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mp(e))hp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Rt(s,l)){var a=t.interleaved;a===null?(o.next=o,tu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Qf(e,t,o,r),n!==null&&(o=Ie(),Pt(n,e,r,o),gp(n,t,r))}}function mp(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function hp(e,t){So=rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ba(e,n)}}var ol={readContext:vt,useCallback:Oe,useContext:Oe,useEffect:Oe,useImperativeHandle:Oe,useInsertionEffect:Oe,useLayoutEffect:Oe,useMemo:Oe,useReducer:Oe,useRef:Oe,useState:Oe,useDebugValue:Oe,useDeferredValue:Oe,useTransition:Oe,useMutableSource:Oe,useSyncExternalStore:Oe,useId:Oe,unstable_isNewReconciler:!1},d0={readContext:vt,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:zc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Oi(4194308,4,ap.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oi(4,2,e,t)},useMemo:function(e,t){var n=$t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$t();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=u0.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:Dc,useDebugValue:cu,useDeferredValue:function(e){return $t().memoizedState=e},useTransition:function(){var e=Dc(!1),t=e[0];return e=a0.bind(null,e[1]),$t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,o=$t();if(ce){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Te===null)throw Error(L(349));Zn&30||ep(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,zc(np.bind(null,r,i,e),[e]),r.flags|=2048,Fo(9,tp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=$t(),t=Te.identifierPrefix;if(ce){var n=Zt,r=Xt;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Io++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Mt]=t,e[Mo]=r,bp(e,t,!1,!1),t.stateNode=e;e:{switch(l=As(n,r),n){case"dialog":ae("cancel",e),ae("close",e),o=r;break;case"iframe":case"object":case"embed":ae("load",e),o=r;break;case"video":case"audio":for(o=0;oIr&&(t.flags|=128,r=!0,to(i,!1),t.lanes=4194304)}else{if(!r)if(e=nl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),to(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!ce)return $e(t),null}else 2*xe()-i.renderingStartTime>Ir&&n!==1073741824&&(t.flags|=128,r=!0,to(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=xe(),t.sibling=null,n=fe.current,le(fe,r?n&1|2:n&1),t):($e(t),null);case 22:case 23:return gu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?et&1073741824&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function w0(e,t){switch(Xa(t),t.tag){case 1:return Ge(t.type)&&Qi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dr(),ue(Ye),ue(De),iu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ou(t),null;case 13:if(ue(fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));$r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(fe),null;case 4:return Dr(),null;case 10:return eu(t.type._context),null;case 22:case 23:return gu(),null;case 24:return null;default:return null}}var gi=!1,Me=!1,x0=typeof WeakSet=="function"?WeakSet:Set,B=null;function Er(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){he(e,t,r)}else n.current=null}function oa(e,t,n){try{n()}catch(r){he(e,t,r)}}var Kc=!1;function S0(e,t){if(Bs=Wi,e=Of(),Ka(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,f=0,c=e,p=null;t:for(;;){for(var v;c!==n||o!==0&&c.nodeType!==3||(s=l+o),c!==i||r!==0&&c.nodeType!==3||(a=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(v=c.firstChild)!==null;)p=c,c=v;for(;;){if(c===e)break t;if(p===n&&++u===o&&(s=l),p===i&&++f===r&&(a=l),(v=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=v}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Us={focusedElem:e,selectionRange:n},Wi=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,C=y.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?w:kt(t.type,w),C);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(S){he(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return y=Kc,Kc=!1,y}function Eo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&oa(t,n,i)}o=o.next}while(o!==r)}}function Cl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ia(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Rp(e){var t=e.alternate;t!==null&&(e.alternate=null,Rp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[Mo],delete t[Ws],delete t[r0],delete t[o0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _p(e){return e.tag===5||e.tag===3||e.tag===4}function Qc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_p(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function la(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ki));else if(r!==4&&(e=e.child,e!==null))for(la(e,t,n),e=e.sibling;e!==null;)la(e,t,n),e=e.sibling}function sa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sa(e,t,n),e=e.sibling;e!==null;)sa(e,t,n),e=e.sibling}var Re=null,Nt=!1;function pn(e,t,n){for(n=n.child;n!==null;)Ap(e,t,n),n=n.sibling}function Ap(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(hl,n)}catch{}switch(n.tag){case 5:Me||Er(n,t);case 6:var r=Re,o=Nt;Re=null,pn(e,t,n),Re=r,Nt=o,Re!==null&&(Nt?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(Nt?(e=Re,n=n.stateNode,e.nodeType===8?rs(e.parentNode,n):e.nodeType===1&&rs(e,n),_o(e)):rs(Re,n.stateNode));break;case 4:r=Re,o=Nt,Re=n.stateNode.containerInfo,Nt=!0,pn(e,t,n),Re=r,Nt=o;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&oa(n,t,l),o=o.next}while(o!==r)}pn(e,t,n);break;case 1:if(!Me&&(Er(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){he(n,t,s)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,pn(e,t,n),Me=r):pn(e,t,n);break;default:pn(e,t,n)}}function Xc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new x0),t.forEach(function(r){var o=_0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function St(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*C0(r/1960))-r,10e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,sl=0,te&6)throw Error(L(331));var o=te;for(te|=4,B=e.current;B!==null;){var i=B,l=i.child;if(B.flags&16){var s=i.deletions;if(s!==null){for(var a=0;axe()-mu?Gn(e,0):pu|=n),Ke(e,t)}function jp(e,t){t===0&&(e.mode&1?(t=si,si<<=1,!(si&130023424)&&(si=4194304)):t=1);var n=Ie();e=tn(e,t),e!==null&&(Yo(e,t,n),Ke(e,n))}function R0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jp(e,n)}function _0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),jp(e,n)}var Fp;Fp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)We=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return We=!1,v0(e,t,n);We=!!(e.flags&131072)}else We=!1,ce&&t.flags&1048576&&Vf(t,Ji,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$i(e,t),e=t.pendingProps;var o=Or(t,De.current);Rr(t,n),o=su(null,t,r,e,o,n);var i=au();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(i=!0,Xi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nu(t),o.updater=El,t.stateNode=o,o._reactInternals=t,Zs(t,r,e,n),t=ea(null,t,r,!0,i,n)):(t.tag=0,ce&&i&&Qa(t),ze(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch($i(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=L0(r),e=kt(r,e),o){case 0:t=qs(null,t,r,e,n);break e;case 1:t=Wc(null,t,r,e,n);break e;case 11:t=Hc(null,t,r,e,n);break e;case 14:t=Vc(null,t,r,kt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),qs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),Wc(e,t,r,o,n);case 3:e:{if(Cp(t),e===null)throw Error(L(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Xf(e,t),tl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=zr(Error(L(423)),t),t=Yc(e,t,r,n,o);break e}else if(r!==o){o=zr(Error(L(424)),t),t=Yc(e,t,r,n,o);break e}else for(nt=Nn(t.stateNode.containerInfo.firstChild),rt=t,ce=!0,bt=null,n=Kf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($r(),r===o){t=nn(e,t,n);break e}ze(e,t,r,n)}t=t.child}return t;case 5:return Zf(t),e===null&&Ks(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Hs(r,o)?l=null:i!==null&&Hs(r,i)&&(t.flags|=32),Ep(e,t),ze(e,t,l,n),t.child;case 6:return e===null&&Ks(t),null;case 13:return kp(e,t,n);case 4:return ru(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mr(t,null,r,n):ze(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),Hc(e,t,r,o,n);case 7:return ze(e,t,t.pendingProps,n),t.child;case 8:return ze(e,t,t.pendingProps.children,n),t.child;case 12:return ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,le(qi,r._currentValue),r._currentValue=l,i!==null)if(Rt(i.value,l)){if(i.children===o.children&&!Ye.current){t=nn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Jt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Qs(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(L(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Qs(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}ze(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Rr(t,n),o=vt(o),r=r(o),t.flags|=1,ze(e,t,r,n),t.child;case 14:return r=t.type,o=kt(r,t.pendingProps),o=kt(r.type,o),Vc(e,t,r,o,n);case 15:return xp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),$i(e,t),t.tag=1,Ge(r)?(e=!0,Xi(t)):e=!1,Rr(t,n),vp(t,r,o),Zs(t,r,o,n),ea(null,t,r,!0,e,n);case 19:return Np(e,t,n);case 22:return Sp(e,t,n)}throw Error(L(156,t.tag))};function Bp(e,t){return mf(e,t)}function A0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,n,r){return new A0(e,t,n,r)}function yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L0(e){if(typeof e=="function")return yu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===za)return 11;if(e===Ia)return 14}return 2}function Rn(e,t){var n=e.alternate;return n===null?(n=ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zi(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")yu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case pr:return Kn(n.children,o,i,t);case Da:l=8,o|=8;break;case Ss:return e=ht(12,n,t,o|2),e.elementType=Ss,e.lanes=i,e;case Es:return e=ht(13,n,t,o),e.elementType=Es,e.lanes=i,e;case Cs:return e=ht(19,n,t,o),e.elementType=Cs,e.lanes=i,e;case Xd:return Nl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kd:l=10;break e;case Qd:l=9;break e;case za:l=11;break e;case Ia:l=14;break e;case gn:l=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=ht(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Kn(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function Nl(e,t,n,r){return e=ht(22,e,r,t),e.elementType=Xd,e.lanes=n,e.stateNode={isHidden:!1},e}function ds(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function fs(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function O0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yl(0),this.expirationTimes=Yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wu(e,t,n,r,o,i,l,s,a){return e=new O0(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nu(i),e}function $0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wp)}catch(e){console.error(e)}}Wp(),Vd.exports=st;var Xo=Vd.exports;const j0=Ld(Xo);var od=Xo;ws.createRoot=od.createRoot,ws.hydrateRoot=od.hydrateRoot;function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>F0(n,t))}function Ln(...e){return m.useCallback(Yp(...e),e)}const Uo=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(U0);if(i){const l=i.props.children,s=o.map(a=>a===i?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:a);return m.createElement(fa,Qe({},r,{ref:t}),m.isValidElement(l)?m.cloneElement(l,void 0,s):null)}return m.createElement(fa,Qe({},r,{ref:t}),n)});Uo.displayName="Slot";const fa=m.forwardRef((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{...H0(r,n.props),ref:t?Yp(t,n.ref):n.ref}):m.Children.count(n)>1?m.Children.only(null):null});fa.displayName="SlotClone";const B0=({children:e})=>m.createElement(m.Fragment,null,e);function U0(e){return m.isValidElement(e)&&e.type===B0}function H0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Gp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,ld=V0,W0=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ld(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],c=i==null?void 0:i[u];if(f===null)return null;const p=id(f)||id(c);return o[u][p]}),s=n&&Object.entries(n).reduce((u,f)=>{let[c,p]=f;return p===void 0||(u[c]=p),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:p,...v}=f;return Object.entries(v).every(y=>{let[w,C]=y;return Array.isArray(C)?C.includes({...i,...s}[w]):{...i,...s}[w]===C})?[...u,c,p]:u},[]);return ld(e,l,a,n==null?void 0:n.class,n==null?void 0:n.className)};function Kp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts(i)))==null?void 0:l.classGroupId}const sd=/^\[(.+)\]$/;function K0(e){if(sd.test(e)){const t=sd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Q0(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Z0(Object.entries(e.classGroups),n).forEach(([i,l])=>{pa(l,r,i,t)}),r}function pa(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ad(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(X0(o)){pa(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{pa(l,ad(t,i),n,r)})})}function ad(e,t){let n=e;return t.split(Cu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function X0(e){return e.isThemeGetter}function Z0(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,s])=>[t+l,s])):i);return[n,o]}):e}function J0(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,l){n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}}const Xp="!";function q0(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(l){const s=[];let a=0,u=0,f;for(let w=0;wu?f-u:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:y}}}function ev(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function tv(e){return{cache:J0(e.cacheSize),splitModifiers:q0(e),...G0(e)}}const nv=/\s+/;function rv(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(nv).map(l=>{const{modifiers:s,hasImportantModifier:a,baseClassName:u,maybePostfixModifierPosition:f}=n(l);let c=r(f?u.substring(0,f):u),p=!!f;if(!c){if(!f)return{isTailwindClass:!1,originalClassName:l};if(c=r(u),!c)return{isTailwindClass:!1,originalClassName:l};p=!1}const v=ev(s).join(":");return{isTailwindClass:!0,modifierId:a?v+Xp:v,classGroupId:c,originalClassName:l,hasPostfixModifier:p}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:s,classGroupId:a,hasPostfixModifier:u}=l,f=s+a;return i.has(f)?!1:(i.add(f),o(a,u).forEach(c=>i.add(s+c)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function ov(){let e=0,t,n,r="";for(;ec(f),e());return n=tv(u),r=n.cache.get,o=n.cache.set,i=s,s(a)}function s(a){const u=r(a);if(u)return u;const f=rv(a,n);return o(a,f),f}return function(){return i(ov.apply(null,arguments))}}function se(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Jp=/^\[(?:([a-z-]+):)?(.+)\]$/i,lv=/^\d+\/\d+$/,sv=new Set(["px","full","screen"]),av=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uv=/\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$/,cv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,dv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Yt(e){return Yn(e)||sv.has(e)||lv.test(e)}function mn(e){return Vr(e,"length",xv)}function Yn(e){return!!e&&!Number.isNaN(Number(e))}function wi(e){return Vr(e,"number",Yn)}function ro(e){return!!e&&Number.isInteger(Number(e))}function pv(e){return e.endsWith("%")&&Yn(e.slice(0,-1))}function J(e){return Jp.test(e)}function hn(e){return av.test(e)}const mv=new Set(["length","size","percentage"]);function hv(e){return Vr(e,mv,qp)}function gv(e){return Vr(e,"position",qp)}const vv=new Set(["image","url"]);function yv(e){return Vr(e,vv,Ev)}function wv(e){return Vr(e,"",Sv)}function oo(){return!0}function Vr(e,t,n){const r=Jp.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function xv(e){return uv.test(e)&&!cv.test(e)}function qp(){return!1}function Sv(e){return dv.test(e)}function Ev(e){return fv.test(e)}function Cv(){const e=se("colors"),t=se("spacing"),n=se("blur"),r=se("brightness"),o=se("borderColor"),i=se("borderRadius"),l=se("borderSpacing"),s=se("borderWidth"),a=se("contrast"),u=se("grayscale"),f=se("hueRotate"),c=se("invert"),p=se("gap"),v=se("gradientColorStops"),y=se("gradientColorStopPositions"),w=se("inset"),C=se("margin"),h=se("opacity"),d=se("padding"),g=se("saturate"),S=se("scale"),k=se("sepia"),T=se("skew"),b=se("space"),_=se("translate"),U=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",J,t],H=()=>[J,t],X=()=>["",Yt,mn],j=()=>["auto",Yn,J],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],A=()=>["solid","dashed","dotted","double","none"],P=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",J],O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Yn,wi],z=()=>[Yn,J];return{cacheSize:500,separator:":",theme:{colors:[oo],spacing:[Yt,mn],blur:["none","",hn,J],brightness:$(),borderColor:[e],borderRadius:["none","","full",hn,J],borderSpacing:H(),borderWidth:X(),contrast:$(),grayscale:R(),hueRotate:z(),invert:R(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[pv,mn],inset:Y(),margin:Y(),opacity:$(),padding:H(),saturate:$(),scale:$(),sepia:R(),skew:z(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",J]}],container:["container"],columns:[{columns:[hn]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...W(),J]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ro,J]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",ro,J]}],"grid-cols":[{"grid-cols":[oo]}],"col-start-end":[{col:["auto",{span:["full",ro,J]},J]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[oo]}],"row-start-end":[{row:["auto",{span:[ro,J]},J]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",J]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[d]}],px:[{px:[d]}],py:[{py:[d]}],ps:[{ps:[d]}],pe:[{pe:[d]}],pt:[{pt:[d]}],pr:[{pr:[d]}],pb:[{pb:[d]}],pl:[{pl:[d]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J,t]}],"min-w":[{"min-w":[J,t,"min","max","fit"]}],"max-w":[{"max-w":[J,t,"none","full","min","max","fit","prose",{screen:[hn]},hn]}],h:[{h:[J,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J,t,"auto","min","max","fit"]}],"font-size":[{text:["base",hn,mn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wi]}],"font-family":[{font:[oo]}],"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",J]}],"line-clamp":[{"line-clamp":["none",Yn,wi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Yt,J]}],"list-image":[{"list-image":["none",J]}],"list-style-type":[{list:["none","disc","decimal",J]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Yt,mn]}],"underline-offset":[{"underline-offset":["auto",Yt,J]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J]}],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",J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),gv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",hv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yv]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...A(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:A()}],"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:["",...A()]}],"outline-offset":[{"outline-offset":[Yt,J]}],"outline-w":[{outline:[Yt,mn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[Yt,mn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",hn,wv]}],"shadow-color":[{shadow:[oo]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...P(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":P()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",hn,J]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[c]}],saturate:[{saturate:[g]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",J]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",J]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",J]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ro,J]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",J]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",J]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Yt,mn,wi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},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"],size:["w","h"],"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"],"line-clamp":["display","overflow"],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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const kv=iv(Cv);function ku(...e){return kv(Y0(e))}const Nv=W0("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),cr=m.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?Uo:"button";return E.jsx(l,{className:ku(Nv({variant:t,size:n,className:e})),ref:i,...o})});cr.displayName="Button";var{entries:em,setPrototypeOf:ud,isFrozen:bv,getPrototypeOf:Tv,getOwnPropertyDescriptor:Pv}=Object,{freeze:je,seal:wt,create:tm}=Object,{apply:ma,construct:ha}=typeof Reflect<"u"&&Reflect;je||(je=function(e){return e});wt||(wt=function(e){return e});ma||(ma=function(e,t,n){return e.apply(t,n)});ha||(ha=function(e,t){return new e(...t)});var xi=lt(Array.prototype.forEach),cd=lt(Array.prototype.pop),io=lt(Array.prototype.push),Ii=lt(String.prototype.toLowerCase),ps=lt(String.prototype.toString),dd=lt(String.prototype.match),lo=lt(String.prototype.replace),Rv=lt(String.prototype.indexOf),_v=lt(String.prototype.trim),Et=lt(Object.prototype.hasOwnProperty),qe=lt(RegExp.prototype.test),so=Av(TypeError);function lt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Ii;ud&&ud(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){let i=n(o);i!==o&&(bv(t)||(t[r]=i),o=i)}e[o]=!0}return e}function Lv(e){for(let t=0;t/gm),zv=wt(/\${[\w\W]*}/gm),Iv=wt(/^data-[\-\w.\u00B7-\uFFFF]/),jv=wt(/^aria-[\-\w]+$/),nm=wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fv=wt(/^(?:\w+script|data):/i),Bv=wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rm=wt(/^html$/i),Uv=wt(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i),gd=Object.freeze({__proto__:null,MUSTACHE_EXPR:Mv,ERB_EXPR:Dv,TMPLIT_EXPR:zv,DATA_ATTR:Iv,ARIA_ATTR:jv,IS_ALLOWED_URI:nm,IS_SCRIPT_OR_DATA:Fv,ATTR_WHITESPACE:Bv,DOCTYPE_NAME:rm,CUSTOM_ELEMENT:Uv}),Hv=function(){return typeof window>"u"?null:window},Vv=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function om(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hv(),t=x=>om(x);if(t.version="3.0.10",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e,r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:s,Element:a,NodeFilter:u,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:p,trustedTypes:v}=e,y=a.prototype,w=Si(y,"cloneNode"),C=Si(y,"nextSibling"),h=Si(y,"childNodes"),d=Si(y,"parentNode");if(typeof l=="function"){let x=n.createElement("template");x.content&&x.content.ownerDocument&&(n=x.content.ownerDocument)}let g,S="",{implementation:k,createNodeIterator:T,createDocumentFragment:b,getElementsByTagName:_}=n,{importNode:U}=r,D={};t.isSupported=typeof em=="function"&&typeof d=="function"&&k&&k.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Y,ERB_EXPR:H,TMPLIT_EXPR:X,DATA_ATTR:j,ARIA_ATTR:W,IS_SCRIPT_OR_DATA:A,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:N}=gd,{IS_ALLOWED_URI:R}=gd,O=null,$=q({},[...fd,...ms,...hs,...gs,...pd]),z=null,G=q({},[...md,...vs,...hd,...Ei]),V=Object.seal(tm(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ne=null,Q=null,Z=!0,ge=!0,Le=!1,Ue=!0,Xe=!1,Ee=!1,xt=!1,an=!1,ve=!1,Ze=!1,un=!1,rr=!0,ut=!1,Il="user-content-",or=!0,Ft=!1,Je={},Bt=null,Ut=q({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Gr=null,ti=q({},["audio","video","img","source","image","track"]),ir=null,Kr=q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),lr="http://www.w3.org/1998/Math/MathML",cn="http://www.w3.org/2000/svg",Ne="http://www.w3.org/1999/xhtml",dn=Ne,sr=!1,K=null,ye=q({},[lr,cn,Ne],ps),ie=null,ct=["application/xhtml+xml","text/html"],dt="text/html",de=null,fn=null,sh=n.createElement("form"),Du=function(x){return x instanceof RegExp||x instanceof Function},jl=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(fn&&fn===x)){if((!x||typeof x!="object")&&(x={}),x=Bn(x),ie=ct.indexOf(x.PARSER_MEDIA_TYPE)===-1?dt:x.PARSER_MEDIA_TYPE,de=ie==="application/xhtml+xml"?ps:Ii,O=Et(x,"ALLOWED_TAGS")?q({},x.ALLOWED_TAGS,de):$,z=Et(x,"ALLOWED_ATTR")?q({},x.ALLOWED_ATTR,de):G,K=Et(x,"ALLOWED_NAMESPACES")?q({},x.ALLOWED_NAMESPACES,ps):ye,ir=Et(x,"ADD_URI_SAFE_ATTR")?q(Bn(Kr),x.ADD_URI_SAFE_ATTR,de):Kr,Gr=Et(x,"ADD_DATA_URI_TAGS")?q(Bn(ti),x.ADD_DATA_URI_TAGS,de):ti,Bt=Et(x,"FORBID_CONTENTS")?q({},x.FORBID_CONTENTS,de):Ut,ne=Et(x,"FORBID_TAGS")?q({},x.FORBID_TAGS,de):{},Q=Et(x,"FORBID_ATTR")?q({},x.FORBID_ATTR,de):{},Je=Et(x,"USE_PROFILES")?x.USE_PROFILES:!1,Z=x.ALLOW_ARIA_ATTR!==!1,ge=x.ALLOW_DATA_ATTR!==!1,Le=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Xe=x.SAFE_FOR_TEMPLATES||!1,Ee=x.WHOLE_DOCUMENT||!1,ve=x.RETURN_DOM||!1,Ze=x.RETURN_DOM_FRAGMENT||!1,un=x.RETURN_TRUSTED_TYPE||!1,an=x.FORCE_BODY||!1,rr=x.SANITIZE_DOM!==!1,ut=x.SANITIZE_NAMED_PROPS||!1,or=x.KEEP_CONTENT!==!1,Ft=x.IN_PLACE||!1,R=x.ALLOWED_URI_REGEXP||nm,dn=x.NAMESPACE||Ne,V=x.CUSTOM_ELEMENT_HANDLING||{},x.CUSTOM_ELEMENT_HANDLING&&Du(x.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=x.CUSTOM_ELEMENT_HANDLING.tagNameCheck),x.CUSTOM_ELEMENT_HANDLING&&Du(x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Xe&&(ge=!1),Ze&&(ve=!0),Je&&(O=q({},pd),z=[],Je.html===!0&&(q(O,fd),q(z,md)),Je.svg===!0&&(q(O,ms),q(z,vs),q(z,Ei)),Je.svgFilters===!0&&(q(O,hs),q(z,vs),q(z,Ei)),Je.mathMl===!0&&(q(O,gs),q(z,hd),q(z,Ei))),x.ADD_TAGS&&(O===$&&(O=Bn(O)),q(O,x.ADD_TAGS,de)),x.ADD_ATTR&&(z===G&&(z=Bn(z)),q(z,x.ADD_ATTR,de)),x.ADD_URI_SAFE_ATTR&&q(ir,x.ADD_URI_SAFE_ATTR,de),x.FORBID_CONTENTS&&(Bt===Ut&&(Bt=Bn(Bt)),q(Bt,x.FORBID_CONTENTS,de)),or&&(O["#text"]=!0),Ee&&q(O,["html","head","body"]),O.table&&(q(O,["tbody"]),delete ne.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw so('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw so('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=x.TRUSTED_TYPES_POLICY,S=g.createHTML("")}else g===void 0&&(g=Vv(v,o)),g!==null&&typeof S=="string"&&(S=g.createHTML(""));je&&je(x),fn=x}},zu=q({},["mi","mo","mn","ms","mtext"]),Iu=q({},["foreignobject","desc","title","annotation-xml"]),ah=q({},["title","style","font","a","script"]),ju=q({},[...ms,...hs,...Ov]),Fu=q({},[...gs,...$v]),uh=function(x){let F=d(x);(!F||!F.tagName)&&(F={namespaceURI:dn,tagName:"template"});let I=Ii(x.tagName),re=Ii(F.tagName);return K[x.namespaceURI]?x.namespaceURI===cn?F.namespaceURI===Ne?I==="svg":F.namespaceURI===lr?I==="svg"&&(re==="annotation-xml"||zu[re]):!!ju[I]:x.namespaceURI===lr?F.namespaceURI===Ne?I==="math":F.namespaceURI===cn?I==="math"&&Iu[re]:!!Fu[I]:x.namespaceURI===Ne?F.namespaceURI===cn&&!Iu[re]||F.namespaceURI===lr&&!zu[re]?!1:!Fu[I]&&(ah[I]||!ju[I]):!!(ie==="application/xhtml+xml"&&K[x.namespaceURI]):!1},ar=function(x){io(t.removed,{element:x});try{x.parentNode.removeChild(x)}catch{x.remove()}},Fl=function(x,F){try{io(t.removed,{attribute:F.getAttributeNode(x),from:F})}catch{io(t.removed,{attribute:null,from:F})}if(F.removeAttribute(x),x==="is"&&!z[x])if(ve||Ze)try{ar(F)}catch{}else try{F.setAttribute(x,"")}catch{}},Bu=function(x){let F=null,I=null;if(an)x=""+x;else{let we=dd(x,/^[\r\n\t ]+/);I=we&&we[0]}ie==="application/xhtml+xml"&&dn===Ne&&(x=''+x+"");let re=g?g.createHTML(x):x;if(dn===Ne)try{F=new p().parseFromString(re,ie)}catch{}if(!F||!F.documentElement){F=k.createDocument(dn,"template",null);try{F.documentElement.innerHTML=sr?S:re}catch{}}let Pe=F.body||F.documentElement;return x&&I&&Pe.insertBefore(n.createTextNode(I),Pe.childNodes[0]||null),dn===Ne?_.call(F,Ee?"html":"body")[0]:Ee?F.documentElement:Pe},Uu=function(x){return T.call(x.ownerDocument||x,x,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION,null)},ch=function(x){return x instanceof c&&(typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||!(x.attributes instanceof f)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function")},Hu=function(x){return typeof s=="function"&&x instanceof s},Ht=function(x,F,I){D[x]&&xi(D[x],re=>{re.call(t,F,I,fn)})},Vu=function(x){let F=null;if(Ht("beforeSanitizeElements",x,null),ch(x))return ar(x),!0;let I=de(x.nodeName);if(Ht("uponSanitizeElement",x,{tagName:I,allowedTags:O}),x.hasChildNodes()&&!Hu(x.firstElementChild)&&qe(/<[/\w]/g,x.innerHTML)&&qe(/<[/\w]/g,x.textContent))return ar(x),!0;if(!O[I]||ne[I]){if(!ne[I]&&Yu(I)&&(V.tagNameCheck instanceof RegExp&&qe(V.tagNameCheck,I)||V.tagNameCheck instanceof Function&&V.tagNameCheck(I)))return!1;if(or&&!Bt[I]){let re=d(x)||x.parentNode,Pe=h(x)||x.childNodes;if(Pe&&re){let we=Pe.length;for(let Vt=we-1;Vt>=0;--Vt)re.insertBefore(w(Pe[Vt],!0),C(x))}}return ar(x),!0}return x instanceof a&&!uh(x)||(I==="noscript"||I==="noembed"||I==="noframes")&&qe(/<\/no(script|embed|frames)/i,x.innerHTML)?(ar(x),!0):(Xe&&x.nodeType===3&&(F=x.textContent,xi([Y,H,X],re=>{F=lo(F,re," ")}),x.textContent!==F&&(io(t.removed,{element:x.cloneNode()}),x.textContent=F)),Ht("afterSanitizeElements",x,null),!1)},Wu=function(x,F,I){if(rr&&(F==="id"||F==="name")&&(I in n||I in sh))return!1;if(!(ge&&!Q[F]&&qe(j,F))&&!(Z&&qe(W,F))){if(!z[F]||Q[F]){if(!(Yu(x)&&(V.tagNameCheck instanceof RegExp&&qe(V.tagNameCheck,x)||V.tagNameCheck instanceof Function&&V.tagNameCheck(x))&&(V.attributeNameCheck instanceof RegExp&&qe(V.attributeNameCheck,F)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(F))||F==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&qe(V.tagNameCheck,I)||V.tagNameCheck instanceof Function&&V.tagNameCheck(I))))return!1}else if(!ir[F]&&!qe(R,lo(I,P,""))&&!((F==="src"||F==="xlink:href"||F==="href")&&x!=="script"&&Rv(I,"data:")===0&&Gr[x])&&!(Le&&!qe(A,lo(I,P,"")))&&I)return!1}return!0},Yu=function(x){return x!=="annotation-xml"&&dd(x,N)},Gu=function(x){Ht("beforeSanitizeAttributes",x,null);let{attributes:F}=x;if(!F)return;let I={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z},re=F.length;for(;re--;){let Pe=F[re],{name:we,namespaceURI:Vt,value:Wt}=Pe,Lt=de(we),He=we==="value"?Wt:_v(Wt);if(I.attrName=Lt,I.attrValue=He,I.keepAttr=!0,I.forceKeepAttr=void 0,Ht("uponSanitizeAttribute",x,I),He=I.attrValue,I.forceKeepAttr||(Fl(we,x),!I.keepAttr))continue;if(!Ue&&qe(/\/>/i,He)){Fl(we,x);continue}Xe&&xi([Y,H,X],Qu=>{He=lo(He,Qu," ")});let Ku=de(x.nodeName);if(Wu(Ku,Lt,He)){if(ut&&(Lt==="id"||Lt==="name")&&(Fl(we,x),He=Il+He),g&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!Vt)switch(v.getAttributeType(Ku,Lt)){case"TrustedHTML":{He=g.createHTML(He);break}case"TrustedScriptURL":{He=g.createScriptURL(He);break}}try{Vt?x.setAttributeNS(Vt,we,He):x.setAttribute(we,He),cd(t.removed)}catch{}}}Ht("afterSanitizeAttributes",x,null)},dh=function x(F){let I=null,re=Uu(F);for(Ht("beforeSanitizeShadowDOM",F,null);I=re.nextNode();)Ht("uponSanitizeShadowNode",I,null),!Vu(I)&&(I.content instanceof i&&x(I.content),Gu(I));Ht("afterSanitizeShadowDOM",F,null)};return t.sanitize=function(x){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,re=null,Pe=null,we=null;if(sr=!x,sr&&(x=""),typeof x!="string"&&!Hu(x))if(typeof x.toString=="function"){if(x=x.toString(),typeof x!="string")throw so("dirty is not a string, aborting")}else throw so("toString is not a function");if(!t.isSupported)return x;if(xt||jl(F),t.removed=[],typeof x=="string"&&(Ft=!1),Ft){if(x.nodeName){let Lt=de(x.nodeName);if(!O[Lt]||ne[Lt])throw so("root node is forbidden and cannot be sanitized in-place")}}else if(x instanceof s)I=Bu(""),re=I.ownerDocument.importNode(x,!0),re.nodeType===1&&re.nodeName==="BODY"||re.nodeName==="HTML"?I=re:I.appendChild(re);else{if(!ve&&!Xe&&!Ee&&x.indexOf("<")===-1)return g&&un?g.createHTML(x):x;if(I=Bu(x),!I)return ve?null:un?S:""}I&&an&&ar(I.firstChild);let Vt=Uu(Ft?x:I);for(;Pe=Vt.nextNode();)Vu(Pe)||(Pe.content instanceof i&&dh(Pe.content),Gu(Pe));if(Ft)return x;if(ve){if(Ze)for(we=b.call(I.ownerDocument);I.firstChild;)we.appendChild(I.firstChild);else we=I;return(z.shadowroot||z.shadowrootmode)&&(we=U.call(r,we,!0)),we}let Wt=Ee?I.outerHTML:I.innerHTML;return Ee&&O["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&qe(rm,I.ownerDocument.doctype.name)&&(Wt=" -`+Wt),Xe&&xi([Y,H,X],Lt=>{Wt=lo(Wt,Lt," ")}),g&&un?g.createHTML(Wt):Wt},t.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};jl(x),xt=!0},t.clearConfig=function(){fn=null,xt=!1},t.isValidAttribute=function(x,F,I){fn||jl({});let re=de(x),Pe=de(F);return Wu(re,Pe,I)},t.addHook=function(x,F){typeof F=="function"&&(D[x]=D[x]||[],io(D[x],F))},t.removeHook=function(x){if(D[x])return cd(D[x])},t.removeHooks=function(x){D[x]&&(D[x]=[])},t.removeAllHooks=function(){D={}},t}var Wv=om(),Yv=e=>{switch(e){case"success":return Qv;case"info":return Zv;case"warning":return Xv;case"error":return Jv;default:return null}},Gv=Array(12).fill(0),Kv=({visible:e})=>M.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},M.createElement("div",{className:"sonner-spinner"},Gv.map((t,n)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Qv=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Xv=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Zv=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Jv=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),qv=()=>{let[e,t]=M.useState(!1);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ga=1,ey=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ga++,i=this.toasts.find(s=>s.id===o),l=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...e,id:o,title:n}),{...s,...e,id:o,dismissible:l,title:n}):s):this.addToast({title:n,...r,dismissible:l,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(i=>{if(i&&typeof i.ok=="boolean"&&!i.ok){o=!1;let l=typeof t.error=="function"?t.error(`HTTP error! status: ${i.status}`):t.error,s=typeof t.description=="function"?t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:l,description:s})}else if(t.success!==void 0){o=!1;let l=typeof t.success=="function"?t.success(i):t.success,s=typeof t.description=="function"?t.description(i):t.description;this.create({id:n,type:"success",message:l,description:s})}}).catch(i=>{if(t.error!==void 0){o=!1;let l=typeof t.error=="function"?t.error(i):t.error,s=typeof t.description=="function"?t.description(i):t.description;this.create({id:n,type:"error",message:l,description:s})}}).finally(()=>{var i;o&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||ga++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Ct=new ey,ty=(e,t)=>{let n=(t==null?void 0:t.id)||ga++;return Ct.addToast({title:e,...t,id:n}),n},ny=ty,ft=Object.assign(ny,{success:Ct.success,info:Ct.info,warning:Ct.warning,error:Ct.error,custom:Ct.custom,message:Ct.message,promise:Ct.promise,dismiss:Ct.dismiss,loading:Ct.loading});function ry(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}ry(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} -`);function Ci(e){return e.label!==void 0&&typeof e.onClick=="function"}var oy=3,iy="32px",ly=4e3,sy=356,ay=14,uy=20,cy=200;function dy(...e){return e.filter(Boolean).join(" ")}var fy=e=>{var t,n,r,o,i,l,s;let{invert:a,toast:u,unstyled:f,interacting:c,setHeights:p,visibleToasts:v,heights:y,index:w,toasts:C,expanded:h,removeToast:d,closeButton:g,style:S,cancelButtonStyle:k,actionButtonStyle:T,className:b="",descriptionClassName:_="",duration:U,position:D,gap:Y,loadingIcon:H,expandByDefault:X,classNames:j,icons:W,closeButtonAriaLabel:A="Close toast",pauseWhenPageIsHidden:P,cn:N}=e,[R,O]=M.useState(!1),[$,z]=M.useState(!1),[G,V]=M.useState(!1),[ne,Q]=M.useState(!1),[Z,ge]=M.useState(0),[Le,Ue]=M.useState(0),Xe=M.useRef(null),Ee=M.useRef(null),xt=w===0,an=w+1<=v,ve=u.type,Ze=u.dismissible!==!1,un=u.className||"",rr=u.descriptionClassName||"",ut=M.useMemo(()=>y.findIndex(K=>K.toastId===u.id)||0,[y,u.id]),Il=M.useMemo(()=>{var K;return(K=u.closeButton)!=null?K:g},[u.closeButton,g]),or=M.useMemo(()=>u.duration||U||ly,[u.duration,U]),Ft=M.useRef(0),Je=M.useRef(0),Bt=M.useRef(0),Ut=M.useRef(null),[Gr,ti]=D.split("-"),ir=M.useMemo(()=>y.reduce((K,ye,ie)=>ie>=ut?K:K+ye.height,0),[y,ut]),Kr=qv(),lr=u.invert||a,cn=ve==="loading";Je.current=M.useMemo(()=>ut*Y+ir,[ut,ir]),M.useEffect(()=>{O(!0)},[]),M.useLayoutEffect(()=>{if(!R)return;let K=Ee.current,ye=K.style.height;K.style.height="auto";let ie=K.getBoundingClientRect().height;K.style.height=ye,Ue(ie),p(ct=>ct.find(dt=>dt.toastId===u.id)?ct.map(dt=>dt.toastId===u.id?{...dt,height:ie}:dt):[{toastId:u.id,height:ie,position:u.position},...ct])},[R,u.title,u.description,p,u.id]);let Ne=M.useCallback(()=>{z(!0),ge(Je.current),p(K=>K.filter(ye=>ye.toastId!==u.id)),setTimeout(()=>{d(u)},cy)},[u,d,p,Je]);M.useEffect(()=>{if(u.promise&&ve==="loading"||u.duration===1/0||u.type==="loading")return;let K,ye=or;return h||c||P&&Kr?(()=>{if(Bt.current{var ie;(ie=u.onAutoClose)==null||ie.call(u,u),Ne()},ye)),()=>clearTimeout(K)},[h,c,X,u,or,Ne,u.promise,ve,P,Kr]),M.useEffect(()=>{let K=Ee.current;if(K){let ye=K.getBoundingClientRect().height;return Ue(ye),p(ie=>[{toastId:u.id,height:ye,position:u.position},...ie]),()=>p(ie=>ie.filter(ct=>ct.toastId!==u.id))}},[p,u.id]),M.useEffect(()=>{u.delete&&Ne()},[Ne,u.delete]);function dn(){return W!=null&&W.loading?M.createElement("div",{className:"sonner-loader","data-visible":ve==="loading"},W.loading):H?M.createElement("div",{className:"sonner-loader","data-visible":ve==="loading"},H):M.createElement(Kv,{visible:ve==="loading"})}function sr(K){return{__html:Wv.sanitize(K)}}return M.createElement("li",{"aria-live":u.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Ee,className:N(b,un,j==null?void 0:j.toast,(t=u==null?void 0:u.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[ve],(n=u==null?void 0:u.classNames)==null?void 0:n[ve]),"data-sonner-toast":"","data-styled":!(u.jsx||u.unstyled||f),"data-mounted":R,"data-promise":!!u.promise,"data-removed":$,"data-visible":an,"data-y-position":Gr,"data-x-position":ti,"data-index":w,"data-front":xt,"data-swiping":G,"data-dismissible":Ze,"data-type":ve,"data-invert":lr,"data-swipe-out":ne,"data-expanded":!!(h||X&&R),style:{"--index":w,"--toasts-before":w,"--z-index":C.length-w,"--offset":`${$?Z:Je.current}px`,"--initial-height":X?"auto":`${Le}px`,...S,...u.style},onPointerDown:K=>{cn||!Ze||(Xe.current=new Date,ge(Je.current),K.target.setPointerCapture(K.pointerId),K.target.tagName!=="BUTTON"&&(V(!0),Ut.current={x:K.clientX,y:K.clientY}))},onPointerUp:()=>{var K,ye,ie,ct;if(ne||!Ze)return;Ut.current=null;let dt=Number(((K=Ee.current)==null?void 0:K.style.getPropertyValue("--swipe-amount").replace("px",""))||0),de=new Date().getTime()-((ye=Xe.current)==null?void 0:ye.getTime()),fn=Math.abs(dt)/de;if(Math.abs(dt)>=uy||fn>.11){ge(Je.current),(ie=u.onDismiss)==null||ie.call(u,u),Ne(),Q(!0);return}(ct=Ee.current)==null||ct.style.setProperty("--swipe-amount","0px"),V(!1)},onPointerMove:K=>{var ye;if(!Ut.current||!Ze)return;let ie=K.clientY-Ut.current.y,ct=K.clientX-Ut.current.x,dt=(Gr==="top"?Math.min:Math.max)(0,ie),de=K.pointerType==="touch"?10:2;Math.abs(dt)>de?(ye=Ee.current)==null||ye.style.setProperty("--swipe-amount",`${ie}px`):Math.abs(ct)>de&&(Ut.current=null)}},Il&&!u.jsx?M.createElement("button",{"aria-label":A,"data-disabled":cn,"data-close-button":!0,onClick:cn||!Ze?()=>{}:()=>{var K;Ne(),(K=u.onDismiss)==null||K.call(u,u)},className:N(j==null?void 0:j.closeButton,(r=u==null?void 0:u.classNames)==null?void 0:r.closeButton)},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,u.jsx||M.isValidElement(u.title)?u.jsx||u.title:M.createElement(M.Fragment,null,ve||u.icon||u.promise?M.createElement("div",{"data-icon":"",className:N(j==null?void 0:j.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||dn():null,u.type!=="loading"?u.icon||(W==null?void 0:W[ve])||Yv(ve):null):null,M.createElement("div",{"data-content":"",className:N(j==null?void 0:j.content)},M.createElement("div",{"data-title":"",className:N(j==null?void 0:j.title,(o=u==null?void 0:u.classNames)==null?void 0:o.title),dangerouslySetInnerHTML:sr(u.title)}),u.description?M.createElement("div",{"data-description":"",className:N(_,rr,j==null?void 0:j.description,(i=u==null?void 0:u.classNames)==null?void 0:i.description),dangerouslySetInnerHTML:sr(u.description)}):null),M.isValidElement(u.cancel)?u.cancel:u.cancel&&Ci(u.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||k,onClick:K=>{Ci(u.cancel)&&Ze&&(Ne(),u.cancel.onClick(K))},className:N(j==null?void 0:j.cancelButton,(l=u==null?void 0:u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,M.isValidElement(u.action)?u.action:u.action&&Ci(u.action)?M.createElement("button",{"data-button":"",style:u.actionButtonStyle||T,onClick:K=>{Ci(u.action)&&(u.action.onClick(K),!K.defaultPrevented&&Ne())},className:N(j==null?void 0:j.actionButton,(s=u==null?void 0:u.classNames)==null?void 0:s.actionButton)},u.action.label):null))};function vd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var im=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:i,className:l,offset:s,theme:a="light",richColors:u,duration:f,style:c,visibleToasts:p=oy,toastOptions:v,dir:y=vd(),gap:w=ay,loadingIcon:C,icons:h,containerAriaLabel:d="Notifications",pauseWhenPageIsHidden:g,cn:S=dy}=e,[k,T]=M.useState([]),b=M.useMemo(()=>Array.from(new Set([n].concat(k.filter($=>$.position).map($=>$.position)))),[k,n]),[_,U]=M.useState([]),[D,Y]=M.useState(!1),[H,X]=M.useState(!1),[j,W]=M.useState(a!=="system"?a:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=M.useRef(null),P=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=M.useRef(null),R=M.useRef(!1),O=M.useCallback($=>T(z=>z.filter(({id:G})=>G!==$.id)),[]);return M.useEffect(()=>Ct.subscribe($=>{if($.dismiss){T(z=>z.map(G=>G.id===$.id?{...G,delete:!0}:G));return}setTimeout(()=>{j0.flushSync(()=>{T(z=>{let G=z.findIndex(V=>V.id===$.id);return G!==-1?[...z.slice(0,G),{...z[G],...$},...z.slice(G+1)]:[$,...z]})})})}),[]),M.useEffect(()=>{if(a!=="system"){W(a);return}a==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?W("dark"):W("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:$})=>{W($?"dark":"light")})},[a]),M.useEffect(()=>{k.length<=1&&Y(!1)},[k]),M.useEffect(()=>{let $=z=>{var G,V;r.every(ne=>z[ne]||z.code===ne)&&(Y(!0),(G=A.current)==null||G.focus()),z.code==="Escape"&&(document.activeElement===A.current||(V=A.current)!=null&&V.contains(document.activeElement))&&Y(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[r]),M.useEffect(()=>{if(A.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,R.current=!1)}},[A.current]),k.length?M.createElement("section",{"aria-label":`${d} ${P}`,tabIndex:-1},b.map(($,z)=>{var G;let[V,ne]=$.split("-");return M.createElement("ol",{key:$,dir:y==="auto"?vd():y,tabIndex:-1,ref:A,className:l,"data-sonner-toaster":!0,"data-theme":j,"data-rich-colors":u,"data-y-position":V,"data-x-position":ne,style:{"--front-toast-height":`${((G=_[0])==null?void 0:G.height)||0}px`,"--offset":typeof s=="number"?`${s}px`:s||iy,"--width":`${sy}px`,"--gap":`${w}px`,...c},onBlur:Q=>{R.current&&!Q.currentTarget.contains(Q.relatedTarget)&&(R.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:Q=>{Q.target instanceof HTMLElement&&Q.target.dataset.dismissible==="false"||R.current||(R.current=!0,N.current=Q.relatedTarget)},onMouseEnter:()=>Y(!0),onMouseMove:()=>Y(!0),onMouseLeave:()=>{H||Y(!1)},onPointerDown:Q=>{Q.target instanceof HTMLElement&&Q.target.dataset.dismissible==="false"||X(!0)},onPointerUp:()=>X(!1)},k.filter(Q=>!Q.position&&z===0||Q.position===$).map((Q,Z)=>{var ge,Le;return M.createElement(fy,{key:Q.id,icons:h,index:Z,toast:Q,duration:(ge=v==null?void 0:v.duration)!=null?ge:f,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:t,visibleToasts:p,closeButton:(Le=v==null?void 0:v.closeButton)!=null?Le:i,interacting:H,position:$,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:O,toasts:k.filter(Ue=>Ue.position==Q.position),heights:_.filter(Ue=>Ue.position==Q.position),setHeights:U,expandByDefault:o,gap:w,loadingIcon:C,expanded:D,pauseWhenPageIsHidden:g,cn:S})}))})):null};/*! Bundled license information: - -dompurify/dist/purify.es.mjs: - (*! @license DOMPurify 3.0.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.10/LICENSE *) -*/function py({image:e,setImage:t,setImageUploaded:n,imageUploaded:r}){const o=m.useRef(null),[i,l]=m.useState([]);m.useEffect(()=>{const y=localStorage.getItem("uploadedImage");y&&(t(y),p(y))},[]);const s=y=>{const w=y.target.files[0],C=new FileReader;C.onloadend=()=>{const h=C.result;t(h),localStorage.setItem("uploadedImage",h),p(h)},C.readAsDataURL(w),n(!0),ft.success("Image uploaded successfully",{action:{text:"Close",onClick:()=>{ft.dismiss()}}})},a=y=>{y.preventDefault()},u=y=>{if(y.preventDefault(),!y.dataTransfer.files[0].type.includes("image")){ft.error("File type not supported",{action:{label:"Close",onClick:()=>{ft.dismiss()}}});return}const w=y.dataTransfer.files[0],C=new FileReader;C.onloadend=()=>{const h=C.result;t(h),localStorage.setItem("uploadedImage",h),p(h)},C.readAsDataURL(w),n(!0)},f=()=>{o.current.click()},c=()=>{t(null),l([]),localStorage.removeItem("uploadedImage")};m.useEffect(()=>{c()},[e]);const p=async y=>{try{const w=new Image;w.src=y,w.onload=()=>{const C=document.createElement("canvas");C.width=w.width,C.height=w.height;const h=C.getContext("2d");h.drawImage(w,0,0);const d=h.getImageData(0,0,C.width,C.height),g={};for(let k=0;kT.count-k.count).slice(0,12).map(([k,{r:T,g:b,b:_}])=>({hex:k,r:T,g:b,b:_}));l(S)}}catch(w){console.error("Error extracting colors:",w)}},v=(y,w,C)=>"#"+((1<<24)+(y<<16)+(w<<8)+C).toString(16).slice(1);return E.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-gray-100 dark:bg-gray-900",children:[E.jsx(im,{}),E.jsxs("div",{className:"max-w-4xl w-full p-4",children:[E.jsx("div",{className:"w-full aspect-video bg-gray-200 dark:bg-gray-800 rounded-lg overflow-hidden flex items-center justify-center cursor-pointer",onDragOver:a,onDrop:u,onClick:f,style:{border:r?"none":"3px dashed #ccc"},children:e?E.jsx("img",{src:e,alt:"Uploaded Image",className:"w-full h-full object-contain"}):E.jsx("div",{className:"text-gray-500 dark:text-gray-400 text-lg",children:"Click or Drop an Image to upload it"})}),E.jsx("input",{type:"file",accept:"image/jpeg,image/jpg,image/png,image/webp",ref:o,onChange:s,className:"hidden",limit:"1"})]})]})}function lm(e,[t,n]){return Math.min(n,Math.max(t,e))}function kr(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function sm(e,t=[]){let n=[];function r(i,l){const s=m.createContext(l),a=n.length;n=[...n,l];function u(c){const{scope:p,children:v,...y}=c,w=(p==null?void 0:p[e][a])||s,C=m.useMemo(()=>y,Object.values(y));return m.createElement(w.Provider,{value:C},v)}function f(c,p){const v=(p==null?void 0:p[e][a])||s,y=m.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(l=>m.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,my(o,...t)]}function my(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function am(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function hy({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=gy({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=am(n),a=m.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else o(u)},[i,e,o,s]);return[l,a]}function gy({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),i=am(t);return m.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const vy=m.createContext(void 0);function yy(e){const t=m.useContext(vy);return e||t||"ltr"}function wy(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const xy=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function Sy(e){const[t,n]=m.useState(void 0);return xy(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Ey=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],_l=Ey.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Uo:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(s,Qe({},l,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Cy(e){const t=e+"CollectionProvider",[n,r]=sm(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=v=>{const{scope:y,children:w}=v,C=M.useRef(null),h=M.useRef(new Map).current;return M.createElement(o,{scope:y,itemMap:h,collectionRef:C},w)},s=e+"CollectionSlot",a=M.forwardRef((v,y)=>{const{scope:w,children:C}=v,h=i(s,w),d=Ln(y,h.collectionRef);return M.createElement(Uo,{ref:d},C)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",c=M.forwardRef((v,y)=>{const{scope:w,children:C,...h}=v,d=M.useRef(null),g=Ln(y,d),S=i(u,w);return M.useEffect(()=>(S.itemMap.set(d,{ref:d,...h}),()=>void S.itemMap.delete(d))),M.createElement(Uo,{[f]:"",ref:g},C)});function p(v){const y=i(e+"CollectionConsumer",v);return M.useCallback(()=>{const C=y.collectionRef.current;if(!C)return[];const h=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((S,k)=>h.indexOf(S.ref.current)-h.indexOf(k.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:l,Slot:a,ItemSlot:c},p,r]}const um=["PageUp","PageDown"],cm=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dm={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Zo="Slider",[va,ky,Ny]=Cy(Zo),[fm,Rx]=sm(Zo,[Ny]),[by,Al]=fm(Zo),Ty=m.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:l="horizontal",disabled:s=!1,minStepsBetweenThumbs:a=0,defaultValue:u=[r],value:f,onValueChange:c=()=>{},onValueCommit:p=()=>{},inverted:v=!1,...y}=e,[w,C]=m.useState(null),h=Ln(t,j=>C(j)),d=m.useRef(new Set),g=m.useRef(0),S=l==="horizontal",k=w?!!w.closest("form"):!0,T=S?Py:Ry,[b=[],_]=hy({prop:f,defaultProp:u,onChange:j=>{var W;(W=[...d.current][g.current])===null||W===void 0||W.focus(),c(j)}}),U=m.useRef(b);function D(j){const W=Iy(b,j);X(j,W)}function Y(j){X(j,g.current)}function H(){const j=U.current[g.current];b[g.current]!==j&&p(b)}function X(j,W,{commit:A}={commit:!1}){const P=Uy(i),N=Hy(Math.round((j-r)/i)*i+r,P),R=lm(N,[r,o]);_((O=[])=>{const $=Dy(O,R,W);if(By($,a*i)){g.current=$.indexOf(R);const z=String($)!==String(O);return z&&A&&p($),z?$:O}else return O})}return m.createElement(by,{scope:e.__scopeSlider,disabled:s,min:r,max:o,valueIndexToChangeRef:g,thumbs:d.current,values:b,orientation:l},m.createElement(va.Provider,{scope:e.__scopeSlider},m.createElement(va.Slot,{scope:e.__scopeSlider},m.createElement(T,Qe({"aria-disabled":s,"data-disabled":s?"":void 0},y,{ref:h,onPointerDown:kr(y.onPointerDown,()=>{s||(U.current=b)}),min:r,max:o,inverted:v,onSlideStart:s?void 0:D,onSlideMove:s?void 0:Y,onSlideEnd:s?void 0:H,onHomeKeyDown:()=>!s&&X(r,0,{commit:!0}),onEndKeyDown:()=>!s&&X(o,b.length-1,{commit:!0}),onStepKeyDown:({event:j,direction:W})=>{if(!s){const N=um.includes(j.key)||j.shiftKey&&cm.includes(j.key)?10:1,R=g.current,O=b[R],$=i*N*W;X(O+$,R,{commit:!0})}}})))),k&&b.map((j,W)=>m.createElement(My,{key:W,name:n?n+(b.length>1?"[]":""):void 0,value:j})))}),[pm,mm]=fm(Zo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Py=m.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:l,onSlideMove:s,onSlideEnd:a,onStepKeyDown:u,...f}=e,[c,p]=m.useState(null),v=Ln(t,g=>p(g)),y=m.useRef(),w=yy(o),C=w==="ltr",h=C&&!i||!C&&i;function d(g){const S=y.current||c.getBoundingClientRect(),k=[0,S.width],b=Nu(k,h?[n,r]:[r,n]);return y.current=S,b(g-S.left)}return m.createElement(pm,{scope:e.__scopeSlider,startEdge:h?"left":"right",endEdge:h?"right":"left",direction:h?1:-1,size:"width"},m.createElement(hm,Qe({dir:w,"data-orientation":"horizontal"},f,{ref:v,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:g=>{const S=d(g.clientX);l==null||l(S)},onSlideMove:g=>{const S=d(g.clientX);s==null||s(S)},onSlideEnd:()=>{y.current=void 0,a==null||a()},onStepKeyDown:g=>{const k=dm[h?"from-left":"from-right"].includes(g.key);u==null||u({event:g,direction:k?-1:1})}})))}),Ry=m.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:l,onSlideEnd:s,onStepKeyDown:a,...u}=e,f=m.useRef(null),c=Ln(t,f),p=m.useRef(),v=!o;function y(w){const C=p.current||f.current.getBoundingClientRect(),h=[0,C.height],g=Nu(h,v?[r,n]:[n,r]);return p.current=C,g(w-C.top)}return m.createElement(pm,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1},m.createElement(hm,Qe({"data-orientation":"vertical"},u,{ref:c,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:w=>{const C=y(w.clientY);i==null||i(C)},onSlideMove:w=>{const C=y(w.clientY);l==null||l(C)},onSlideEnd:()=>{p.current=void 0,s==null||s()},onStepKeyDown:w=>{const h=dm[v?"from-bottom":"from-top"].includes(w.key);a==null||a({event:w,direction:h?-1:1})}})))}),hm=m.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:l,onEndKeyDown:s,onStepKeyDown:a,...u}=e,f=Al(Zo,n);return m.createElement(_l.span,Qe({},u,{ref:t,onKeyDown:kr(e.onKeyDown,c=>{c.key==="Home"?(l(c),c.preventDefault()):c.key==="End"?(s(c),c.preventDefault()):um.concat(cm).includes(c.key)&&(a(c),c.preventDefault())}),onPointerDown:kr(e.onPointerDown,c=>{const p=c.target;p.setPointerCapture(c.pointerId),c.preventDefault(),f.thumbs.has(p)?p.focus():r(c)}),onPointerMove:kr(e.onPointerMove,c=>{c.target.hasPointerCapture(c.pointerId)&&o(c)}),onPointerUp:kr(e.onPointerUp,c=>{const p=c.target;p.hasPointerCapture(c.pointerId)&&(p.releasePointerCapture(c.pointerId),i(c))})}))}),_y="SliderTrack",Ay=m.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Al(_y,n);return m.createElement(_l.span,Qe({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))}),yd="SliderRange",Ly=m.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Al(yd,n),i=mm(yd,n),l=m.useRef(null),s=Ln(t,l),a=o.values.length,u=o.values.map(p=>gm(p,o.min,o.max)),f=a>1?Math.min(...u):0,c=100-Math.max(...u);return m.createElement(_l.span,Qe({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:s,style:{...e.style,[i.startEdge]:f+"%",[i.endEdge]:c+"%"}}))}),wd="SliderThumb",Oy=m.forwardRef((e,t)=>{const n=ky(e.__scopeSlider),[r,o]=m.useState(null),i=Ln(t,s=>o(s)),l=m.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return m.createElement($y,Qe({},e,{ref:i,index:l}))}),$y=m.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,i=Al(wd,n),l=mm(wd,n),[s,a]=m.useState(null),u=Ln(t,C=>a(C)),f=Sy(s),c=i.values[r],p=c===void 0?0:gm(c,i.min,i.max),v=zy(r,i.values.length),y=f==null?void 0:f[l.size],w=y?jy(y,p,l.direction):0;return m.useEffect(()=>{if(s)return i.thumbs.add(s),()=>{i.thumbs.delete(s)}},[s,i.thumbs]),m.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${p}% + ${w}px)`}},m.createElement(va.ItemSlot,{scope:e.__scopeSlider},m.createElement(_l.span,Qe({role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":i.min,"aria-valuenow":c,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0},o,{ref:u,style:c===void 0?{display:"none"}:e.style,onFocus:kr(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})}))))}),My=e=>{const{value:t,...n}=e,r=m.useRef(null),o=wy(t);return m.useEffect(()=>{const i=r.current,l=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&a){const u=new Event("input",{bubbles:!0});a.call(i,t),i.dispatchEvent(u)}},[o,t]),m.createElement("input",Qe({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function Dy(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function gm(e,t,n){const i=100/(n-t)*(e-t);return lm(i,[0,100])}function zy(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Iy(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function jy(e,t,n){const r=e/2,i=Nu([0,50],[0,r]);return(r-i(t)*n)*n}function Fy(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function By(e,t){if(t>0){const n=Fy(e);return Math.min(...n)>=t}return!0}function Nu(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Uy(e){return(String(e).split(".")[1]||"").length}function Hy(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const vm=Ty,Vy=Ay,Wy=Ly,Yy=Oy,Un=m.forwardRef(({className:e,...t},n)=>E.jsxs(vm,{ref:n,className:ku("relative flex w-full touch-none select-none items-center",e),...t,children:[E.jsx(Vy,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:E.jsx(Wy,{className:"absolute h-full bg-primary"})}),E.jsx(Yy,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Un.displayName=vm.displayName;function Qt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Gy(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ym(...e){return t=>e.forEach(n=>Gy(n,t))}function Jo(...e){return m.useCallback(ym(...e),e)}function Ky(e,t=[]){let n=[];function r(i,l){const s=m.createContext(l),a=n.length;n=[...n,l];function u(c){const{scope:p,children:v,...y}=c,w=(p==null?void 0:p[e][a])||s,C=m.useMemo(()=>y,Object.values(y));return E.jsx(w.Provider,{value:C,children:v})}function f(c,p){const v=(p==null?void 0:p[e][a])||s,y=m.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(l=>m.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,Qy(o,...t)]}function Qy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var wm=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(Xy);if(i){const l=i.props.children,s=o.map(a=>a===i?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:a);return E.jsx(ya,{...r,ref:t,children:m.isValidElement(l)?m.cloneElement(l,void 0,s):null})}return E.jsx(ya,{...r,ref:t,children:n})});wm.displayName="Slot";var ya=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const o=Jy(n);return m.cloneElement(n,{...Zy(r,n.props),ref:t?ym(t,o):o})}return m.Children.count(n)>1?m.Children.only(null):null});ya.displayName="SlotClone";var xm=({children:e})=>E.jsx(E.Fragment,{children:e});function Xy(e){return m.isValidElement(e)&&e.type===xm}function Zy(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Jy(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],bu=qy.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?wm:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function e1(e,t){e&&Xo.flushSync(()=>e.dispatchEvent(t))}function qo(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function t1(e,t=globalThis==null?void 0:globalThis.document){const n=qo(e);m.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var n1="DismissableLayer",wa="dismissableLayer.update",r1="dismissableLayer.pointerDownOutside",o1="dismissableLayer.focusOutside",xd,Sm=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Em=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...a}=e,u=m.useContext(Sm),[f,c]=m.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=m.useState({}),y=Jo(t,b=>c(b)),w=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=w.indexOf(C),d=f?w.indexOf(f):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,S=d>=h,k=s1(b=>{const _=b.target,U=[...u.branches].some(D=>D.contains(_));!S||U||(o==null||o(b),l==null||l(b),b.defaultPrevented||s==null||s())},p),T=a1(b=>{const _=b.target;[...u.branches].some(D=>D.contains(_))||(i==null||i(b),l==null||l(b),b.defaultPrevented||s==null||s())},p);return t1(b=>{d===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&s&&(b.preventDefault(),s()))},p),m.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xd=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Sd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=xd)}},[f,p,n,u]),m.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Sd())},[f,u]),m.useEffect(()=>{const b=()=>v({});return document.addEventListener(wa,b),()=>document.removeEventListener(wa,b)},[]),E.jsx(bu.div,{...a,ref:y,style:{pointerEvents:g?S?"auto":"none":void 0,...e.style},onFocusCapture:Qt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Qt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Qt(e.onPointerDownCapture,k.onPointerDownCapture)})});Em.displayName=n1;var i1="DismissableLayerBranch",l1=m.forwardRef((e,t)=>{const n=m.useContext(Sm),r=m.useRef(null),o=Jo(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),E.jsx(bu.div,{...e,ref:o})});l1.displayName=i1;function s1(e,t=globalThis==null?void 0:globalThis.document){const n=qo(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let a=function(){Cm(r1,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function a1(e,t=globalThis==null?void 0:globalThis.document){const n=qo(e),r=m.useRef(!1);return m.useEffect(()=>{const o=i=>{i.target&&!r.current&&Cm(o1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Sd(){const e=new CustomEvent(wa);document.dispatchEvent(e)}function Cm(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?e1(o,i):o.dispatchEvent(i)}var xa=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},u1=Ph.useId||(()=>{}),c1=0;function d1(e){const[t,n]=m.useState(u1());return xa(()=>{n(r=>r??String(c1++))},[e]),t?`radix-${t}`:""}const f1=["top","right","bottom","left"],Dt=Math.min,tt=Math.max,cl=Math.round,ki=Math.floor,On=e=>({x:e,y:e}),p1={left:"right",right:"left",bottom:"top",top:"bottom"},m1={start:"end",end:"start"};function Sa(e,t,n){return tt(e,Dt(t,n))}function rn(e,t){return typeof e=="function"?e(t):e}function on(e){return e.split("-")[0]}function Wr(e){return e.split("-")[1]}function Tu(e){return e==="x"?"y":"x"}function Pu(e){return e==="y"?"height":"width"}function $n(e){return["top","bottom"].includes(on(e))?"y":"x"}function Ru(e){return Tu($n(e))}function h1(e,t,n){n===void 0&&(n=!1);const r=Wr(e),o=Ru(e),i=Pu(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=dl(l)),[l,dl(l)]}function g1(e){const t=dl(e);return[Ea(e),t,Ea(t)]}function Ea(e){return e.replace(/start|end/g,t=>m1[t])}function v1(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function y1(e,t,n,r){const o=Wr(e);let i=v1(on(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Ea)))),i}function dl(e){return e.replace(/left|right|bottom|top/g,t=>p1[t])}function w1(e){return{top:0,right:0,bottom:0,left:0,...e}}function km(e){return typeof e!="number"?w1(e):{top:e,right:e,bottom:e,left:e}}function fl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ed(e,t,n){let{reference:r,floating:o}=e;const i=$n(t),l=Ru(t),s=Pu(l),a=on(t),u=i==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let v;switch(a){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:c};break;case"left":v={x:r.x-o.width,y:c};break;default:v={x:r.x,y:r.y}}switch(Wr(t)){case"start":v[l]-=p*(n&&u?-1:1);break;case"end":v[l]+=p*(n&&u?-1:1);break}return v}const x1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=Ed(u,r,a),p=r,v={},y=0;for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:u,padding:f=0}=rn(e,t)||{};if(u==null)return{};const c=km(f),p={x:n,y:r},v=Ru(o),y=Pu(v),w=await l.getDimensions(u),C=v==="y",h=C?"top":"left",d=C?"bottom":"right",g=C?"clientHeight":"clientWidth",S=i.reference[y]+i.reference[v]-p[v]-i.floating[y],k=p[v]-i.reference[v],T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let b=T?T[g]:0;(!b||!await(l.isElement==null?void 0:l.isElement(T)))&&(b=s.floating[g]||i.floating[y]);const _=S/2-k/2,U=b/2-w[y]/2-1,D=Dt(c[h],U),Y=Dt(c[d],U),H=D,X=b-w[y]-Y,j=b/2-w[y]/2+_,W=Sa(H,j,X),A=!a.arrow&&Wr(o)!=null&&j!==W&&i.reference[y]/2-(jj<=0)){var Y,H;const j=(((Y=i.flip)==null?void 0:Y.index)||0)+1,W=b[j];if(W)return{data:{index:j,overflows:D},reset:{placement:W}};let A=(H=D.filter(P=>P.overflows[0]<=0).sort((P,N)=>P.overflows[1]-N.overflows[1])[0])==null?void 0:H.placement;if(!A)switch(v){case"bestFit":{var X;const P=(X=D.filter(N=>{if(T){const R=$n(N.placement);return R===d||R==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(R=>R>0).reduce((R,O)=>R+O,0)]).sort((N,R)=>N[1]-R[1])[0])==null?void 0:X[0];P&&(A=P);break}case"initialPlacement":A=s;break}if(o!==A)return{reset:{placement:A}}}return{}}}};function Cd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kd(e){return f1.some(t=>e[t]>=0)}const C1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=rn(e,t);switch(r){case"referenceHidden":{const i=await Ho(t,{...o,elementContext:"reference"}),l=Cd(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:kd(l)}}}case"escaped":{const i=await Ho(t,{...o,altBoundary:!0}),l=Cd(i,n.floating);return{data:{escapedOffsets:l,escaped:kd(l)}}}default:return{}}}}};async function k1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=on(n),s=Wr(n),a=$n(n)==="y",u=["left","top"].includes(l)?-1:1,f=i&&a?-1:1,c=rn(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:y}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&typeof y=="number"&&(v=s==="end"?y*-1:y),a?{x:v*f,y:p*u}:{x:p*u,y:v*f}}const N1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,a=await k1(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},b1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:C=>{let{x:h,y:d}=C;return{x:h,y:d}}},...a}=rn(e,t),u={x:n,y:r},f=await Ho(t,a),c=$n(on(o)),p=Tu(c);let v=u[p],y=u[c];if(i){const C=p==="y"?"top":"left",h=p==="y"?"bottom":"right",d=v+f[C],g=v-f[h];v=Sa(d,v,g)}if(l){const C=c==="y"?"top":"left",h=c==="y"?"bottom":"right",d=y+f[C],g=y-f[h];y=Sa(d,y,g)}const w=s.fn({...t,[p]:v,[c]:y});return{...w,data:{x:w.x-n,y:w.y-r}}}}},T1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=rn(e,t),f={x:n,y:r},c=$n(o),p=Tu(c);let v=f[p],y=f[c];const w=rn(s,t),C=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(a){const g=p==="y"?"height":"width",S=i.reference[p]-i.floating[g]+C.mainAxis,k=i.reference[p]+i.reference[g]-C.mainAxis;vk&&(v=k)}if(u){var h,d;const g=p==="y"?"width":"height",S=["top","left"].includes(on(o)),k=i.reference[c]-i.floating[g]+(S&&((h=l.offset)==null?void 0:h[c])||0)+(S?0:C.crossAxis),T=i.reference[c]+i.reference[g]+(S?0:((d=l.offset)==null?void 0:d[c])||0)-(S?C.crossAxis:0);yT&&(y=T)}return{[p]:v,[c]:y}}}},P1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...s}=rn(e,t),a=await Ho(t,s),u=on(n),f=Wr(n),c=$n(n)==="y",{width:p,height:v}=r.floating;let y,w;u==="top"||u==="bottom"?(y=u,w=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(w=u,y=f==="end"?"top":"bottom");const C=v-a.top-a.bottom,h=p-a.left-a.right,d=Dt(v-a[y],C),g=Dt(p-a[w],h),S=!t.middlewareData.shift;let k=d,T=g;if(c?T=f||S?Dt(g,h):h:k=f||S?Dt(d,C):C,S&&!f){const _=tt(a.left,0),U=tt(a.right,0),D=tt(a.top,0),Y=tt(a.bottom,0);c?T=p-2*(_!==0||U!==0?_+U:tt(a.left,a.right)):k=v-2*(D!==0||Y!==0?D+Y:tt(a.top,a.bottom))}await l({...t,availableWidth:T,availableHeight:k});const b=await o.getDimensions(i.floating);return p!==b.width||v!==b.height?{reset:{rects:!0}}:{}}}};function Yr(e){return Nm(e)?(e.nodeName||"").toLowerCase():"#document"}function ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sn(e){var t;return(t=(Nm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Nm(e){return e instanceof Node||e instanceof ot(e).Node}function _t(e){return e instanceof Element||e instanceof ot(e).Element}function jt(e){return e instanceof HTMLElement||e instanceof ot(e).HTMLElement}function Nd(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ot(e).ShadowRoot}function ei(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=At(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function R1(e){return["table","td","th"].includes(Yr(e))}function Ll(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function _u(e){const t=Au(),n=_t(e)?At(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function _1(e){let t=Mn(e);for(;jt(t)&&!jr(t);){if(_u(t))return t;if(Ll(t))return null;t=Mn(t)}return null}function Au(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jr(e){return["html","body","#document"].includes(Yr(e))}function At(e){return ot(e).getComputedStyle(e)}function Ol(e){return _t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mn(e){if(Yr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nd(e)&&e.host||sn(e);return Nd(t)?t.host:t}function bm(e){const t=Mn(e);return jr(t)?e.ownerDocument?e.ownerDocument.body:e.body:jt(t)&&ei(t)?t:bm(t)}function Vo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=bm(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=ot(o);return i?t.concat(l,l.visualViewport||[],ei(o)?o:[],l.frameElement&&n?Vo(l.frameElement):[]):t.concat(o,Vo(o,[],n))}function Tm(e){const t=At(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=jt(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=cl(n)!==i||cl(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Lu(e){return _t(e)?e:e.contextElement}function Ar(e){const t=Lu(e);if(!jt(t))return On(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tm(t);let l=(i?cl(n.width):n.width)/r,s=(i?cl(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const A1=On(0);function Pm(e){const t=ot(e);return!Au()||!t.visualViewport?A1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function L1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ot(e)?!1:t}function er(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Lu(e);let l=On(1);t&&(r?_t(r)&&(l=Ar(r)):l=Ar(e));const s=L1(i,n,r)?Pm(i):On(0);let a=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,f=o.width/l.x,c=o.height/l.y;if(i){const p=ot(i),v=r&&_t(r)?ot(r):r;let y=p,w=y.frameElement;for(;w&&r&&v!==y;){const C=Ar(w),h=w.getBoundingClientRect(),d=At(w),g=h.left+(w.clientLeft+parseFloat(d.paddingLeft))*C.x,S=h.top+(w.clientTop+parseFloat(d.paddingTop))*C.y;a*=C.x,u*=C.y,f*=C.x,c*=C.y,a+=g,u+=S,y=ot(w),w=y.frameElement}}return fl({width:f,height:c,x:a,y:u})}function O1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=sn(r),s=t?Ll(t.floating):!1;if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},u=On(1);const f=On(0),c=jt(r);if((c||!c&&!i)&&((Yr(r)!=="body"||ei(l))&&(a=Ol(r)),jt(r))){const p=er(r);u=Ar(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+f.x,y:n.y*u.y-a.scrollTop*u.y+f.y}}function $1(e){return Array.from(e.getClientRects())}function Rm(e){return er(sn(e)).left+Ol(e).scrollLeft}function M1(e){const t=sn(e),n=Ol(e),r=e.ownerDocument.body,o=tt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=tt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Rm(e);const s=-n.scrollTop;return At(r).direction==="rtl"&&(l+=tt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function D1(e,t){const n=ot(e),r=sn(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const u=Au();(!u||u&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}function z1(e,t){const n=er(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=jt(e)?Ar(e):On(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:l,height:s,x:a,y:u}}function bd(e,t,n){let r;if(t==="viewport")r=D1(e,n);else if(t==="document")r=M1(sn(e));else if(_t(t))r=z1(t,n);else{const o=Pm(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return fl(r)}function _m(e,t){const n=Mn(e);return n===t||!_t(n)||jr(n)?!1:At(n).position==="fixed"||_m(n,t)}function I1(e,t){const n=t.get(e);if(n)return n;let r=Vo(e,[],!1).filter(s=>_t(s)&&Yr(s)!=="body"),o=null;const i=At(e).position==="fixed";let l=i?Mn(e):e;for(;_t(l)&&!jr(l);){const s=At(l),a=_u(l);!a&&s.position==="fixed"&&(o=null),(i?!a&&!o:!a&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ei(l)&&!a&&_m(e,l))?r=r.filter(f=>f!==l):o=s,l=Mn(l)}return t.set(e,r),r}function j1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?Ll(t)?[]:I1(t,this._c):[].concat(n),r],s=l[0],a=l.reduce((u,f)=>{const c=bd(t,f,o);return u.top=tt(c.top,u.top),u.right=Dt(c.right,u.right),u.bottom=Dt(c.bottom,u.bottom),u.left=tt(c.left,u.left),u},bd(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function F1(e){const{width:t,height:n}=Tm(e);return{width:t,height:n}}function B1(e,t,n){const r=jt(t),o=sn(t),i=n==="fixed",l=er(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=On(0);if(r||!r&&!i)if((Yr(t)!=="body"||ei(o))&&(s=Ol(t)),r){const c=er(t,!0,i,t);a.x=c.x+t.clientLeft,a.y=c.y+t.clientTop}else o&&(a.x=Rm(o));const u=l.left+s.scrollLeft-a.x,f=l.top+s.scrollTop-a.y;return{x:u,y:f,width:l.width,height:l.height}}function ys(e){return At(e).position==="static"}function Td(e,t){return!jt(e)||At(e).position==="fixed"?null:t?t(e):e.offsetParent}function Am(e,t){const n=ot(e);if(Ll(e))return n;if(!jt(e)){let o=Mn(e);for(;o&&!jr(o);){if(_t(o)&&!ys(o))return o;o=Mn(o)}return n}let r=Td(e,t);for(;r&&R1(r)&&ys(r);)r=Td(r,t);return r&&jr(r)&&ys(r)&&!_u(r)?n:r||_1(e)||n}const U1=async function(e){const t=this.getOffsetParent||Am,n=this.getDimensions,r=await n(e.floating);return{reference:B1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function H1(e){return At(e).direction==="rtl"}const V1={convertOffsetParentRelativeRectToViewportRelativeRect:O1,getDocumentElement:sn,getClippingRect:j1,getOffsetParent:Am,getElementRects:U1,getClientRects:$1,getDimensions:F1,getScale:Ar,isElement:_t,isRTL:H1};function W1(e,t){let n=null,r;const o=sn(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),i();const{left:u,top:f,width:c,height:p}=e.getBoundingClientRect();if(s||t(),!c||!p)return;const v=ki(f),y=ki(o.clientWidth-(u+c)),w=ki(o.clientHeight-(f+p)),C=ki(u),d={rootMargin:-v+"px "+-y+"px "+-w+"px "+-C+"px",threshold:tt(0,Dt(1,a))||1};let g=!0;function S(k){const T=k[0].intersectionRatio;if(T!==a){if(!g)return l();T?l(!1,T):r=setTimeout(()=>{l(!1,1e-7)},1e3)}g=!1}try{n=new IntersectionObserver(S,{...d,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,d)}n.observe(e)}return l(!0),i}function Y1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Lu(e),f=o||i?[...u?Vo(u):[],...Vo(t)]:[];f.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),i&&h.addEventListener("resize",n)});const c=u&&s?W1(u,n):null;let p=-1,v=null;l&&(v=new ResizeObserver(h=>{let[d]=h;d&&d.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var g;(g=v)==null||g.observe(t)})),n()}),u&&!a&&v.observe(u),v.observe(t));let y,w=a?er(e):null;a&&C();function C(){const h=er(e);w&&(h.x!==w.x||h.y!==w.y||h.width!==w.width||h.height!==w.height)&&n(),w=h,y=requestAnimationFrame(C)}return n(),()=>{var h;f.forEach(d=>{o&&d.removeEventListener("scroll",n),i&&d.removeEventListener("resize",n)}),c==null||c(),(h=v)==null||h.disconnect(),v=null,a&&cancelAnimationFrame(y)}}const G1=N1,K1=b1,Q1=E1,X1=P1,Z1=C1,Pd=S1,J1=T1,q1=(e,t,n)=>{const r=new Map,o={platform:V1,...n},i={...o.platform,_c:r};return x1(e,t,{...o,platform:i})};var ji=typeof document<"u"?m.useLayoutEffect:m.useEffect;function pl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!pl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!pl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Lm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rd(e,t){const n=Lm(e);return Math.round(t*n)/n}function _d(e){const t=m.useRef(e);return ji(()=>{t.current=e}),t}function ew(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[f,c]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=m.useState(r);pl(p,r)||v(r);const[y,w]=m.useState(null),[C,h]=m.useState(null),d=m.useCallback(P=>{P!==T.current&&(T.current=P,w(P))},[]),g=m.useCallback(P=>{P!==b.current&&(b.current=P,h(P))},[]),S=i||y,k=l||C,T=m.useRef(null),b=m.useRef(null),_=m.useRef(f),U=a!=null,D=_d(a),Y=_d(o),H=m.useCallback(()=>{if(!T.current||!b.current)return;const P={placement:t,strategy:n,middleware:p};Y.current&&(P.platform=Y.current),q1(T.current,b.current,P).then(N=>{const R={...N,isPositioned:!0};X.current&&!pl(_.current,R)&&(_.current=R,Xo.flushSync(()=>{c(R)}))})},[p,t,n,Y]);ji(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,c(P=>({...P,isPositioned:!1})))},[u]);const X=m.useRef(!1);ji(()=>(X.current=!0,()=>{X.current=!1}),[]),ji(()=>{if(S&&(T.current=S),k&&(b.current=k),S&&k){if(D.current)return D.current(S,k,H);H()}},[S,k,H,D,U]);const j=m.useMemo(()=>({reference:T,floating:b,setReference:d,setFloating:g}),[d,g]),W=m.useMemo(()=>({reference:S,floating:k}),[S,k]),A=m.useMemo(()=>{const P={position:n,left:0,top:0};if(!W.floating)return P;const N=Rd(W.floating,f.x),R=Rd(W.floating,f.y);return s?{...P,transform:"translate("+N+"px, "+R+"px)",...Lm(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:R}},[n,s,W.floating,f.x,f.y]);return m.useMemo(()=>({...f,update:H,refs:j,elements:W,floatingStyles:A}),[f,H,j,W,A])}const tw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Pd({element:r.current,padding:o}).fn(n):{}:r?Pd({element:r,padding:o}).fn(n):{}}}},nw=(e,t)=>({...G1(e),options:[e,t]}),rw=(e,t)=>({...K1(e),options:[e,t]}),ow=(e,t)=>({...J1(e),options:[e,t]}),iw=(e,t)=>({...Q1(e),options:[e,t]}),lw=(e,t)=>({...X1(e),options:[e,t]}),sw=(e,t)=>({...Z1(e),options:[e,t]}),aw=(e,t)=>({...tw(e),options:[e,t]});function uw(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function cw(...e){return t=>e.forEach(n=>uw(n,t))}var Om=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(fw);if(i){const l=i.props.children,s=o.map(a=>a===i?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:a);return E.jsx(Ca,{...r,ref:t,children:m.isValidElement(l)?m.cloneElement(l,void 0,s):null})}return E.jsx(Ca,{...r,ref:t,children:n})});Om.displayName="Slot";var Ca=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const o=mw(n);return m.cloneElement(n,{...pw(r,n.props),ref:t?cw(t,o):o})}return m.Children.count(n)>1?m.Children.only(null):null});Ca.displayName="SlotClone";var dw=({children:e})=>E.jsx(E.Fragment,{children:e});function fw(e){return m.isValidElement(e)&&e.type===dw}function pw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function mw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],gw=hw.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Om:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),vw="Arrow",$m=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return E.jsx(gw.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});$m.displayName=vw;var yw=$m;function ww(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Mm(...e){return t=>e.forEach(n=>ww(n,t))}function Dm(...e){return m.useCallback(Mm(...e),e)}function xw(e,t=[]){let n=[];function r(i,l){const s=m.createContext(l),a=n.length;n=[...n,l];function u(c){const{scope:p,children:v,...y}=c,w=(p==null?void 0:p[e][a])||s,C=m.useMemo(()=>y,Object.values(y));return E.jsx(w.Provider,{value:C,children:v})}function f(c,p){const v=(p==null?void 0:p[e][a])||s,y=m.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(l=>m.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,Sw(o,...t)]}function Sw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var zm=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(Cw);if(i){const l=i.props.children,s=o.map(a=>a===i?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:a);return E.jsx(ka,{...r,ref:t,children:m.isValidElement(l)?m.cloneElement(l,void 0,s):null})}return E.jsx(ka,{...r,ref:t,children:n})});zm.displayName="Slot";var ka=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const o=Nw(n);return m.cloneElement(n,{...kw(r,n.props),ref:t?Mm(t,o):o})}return m.Children.count(n)>1?m.Children.only(null):null});ka.displayName="SlotClone";var Ew=({children:e})=>E.jsx(E.Fragment,{children:e});function Cw(e){return m.isValidElement(e)&&e.type===Ew}function kw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Nw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Im=bw.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?zm:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Tw(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Na=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function Pw(e){const[t,n]=m.useState(void 0);return Na(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ou="Popper",[jm,Fm]=xw(Ou),[Rw,Bm]=jm(Ou),Um=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return E.jsx(Rw,{scope:t,anchor:r,onAnchorChange:o,children:n})};Um.displayName=Ou;var Hm="PopperAnchor",Vm=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Bm(Hm,n),l=m.useRef(null),s=Dm(t,l);return m.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:E.jsx(Im.div,{...o,ref:s})});Vm.displayName=Hm;var $u="PopperContent",[_w,Aw]=jm($u),Wm=m.forwardRef((e,t)=>{var Z,ge,Le,Ue,Xe,Ee;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:s=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:c="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:y,...w}=e,C=Bm($u,n),[h,d]=m.useState(null),g=Dm(t,xt=>d(xt)),[S,k]=m.useState(null),T=Pw(S),b=(T==null?void 0:T.width)??0,_=(T==null?void 0:T.height)??0,U=r+(i!=="center"?"-"+i:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},Y=Array.isArray(u)?u:[u],H=Y.length>0,X={padding:D,boundary:Y.filter(Ow),altBoundary:H},{refs:j,floatingStyles:W,placement:A,isPositioned:P,middlewareData:N}=ew({strategy:"fixed",placement:U,whileElementsMounted:(...xt)=>Y1(...xt,{animationFrame:v==="always"}),elements:{reference:C.anchor},middleware:[nw({mainAxis:o+_,alignmentAxis:l}),a&&rw({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?ow():void 0,...X}),a&&iw({...X}),lw({...X,apply:({elements:xt,rects:an,availableWidth:ve,availableHeight:Ze})=>{const{width:un,height:rr}=an.reference,ut=xt.floating.style;ut.setProperty("--radix-popper-available-width",`${ve}px`),ut.setProperty("--radix-popper-available-height",`${Ze}px`),ut.setProperty("--radix-popper-anchor-width",`${un}px`),ut.setProperty("--radix-popper-anchor-height",`${rr}px`)}}),S&&aw({element:S,padding:s}),$w({arrowWidth:b,arrowHeight:_}),p&&sw({strategy:"referenceHidden",...X})]}),[R,O]=Km(A),$=Tw(y);Na(()=>{P&&($==null||$())},[P,$]);const z=(Z=N.arrow)==null?void 0:Z.x,G=(ge=N.arrow)==null?void 0:ge.y,V=((Le=N.arrow)==null?void 0:Le.centerOffset)!==0,[ne,Q]=m.useState();return Na(()=>{h&&Q(window.getComputedStyle(h).zIndex)},[h]),E.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:P?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[(Ue=N.transformOrigin)==null?void 0:Ue.x,(Xe=N.transformOrigin)==null?void 0:Xe.y].join(" "),...((Ee=N.hide)==null?void 0:Ee.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:E.jsx(_w,{scope:n,placedSide:R,onArrowChange:k,arrowX:z,arrowY:G,shouldHideArrow:V,children:E.jsx(Im.div,{"data-side":R,"data-align":O,...w,ref:g,style:{...w.style,animation:P?void 0:"none"}})})})});Wm.displayName=$u;var Ym="PopperArrow",Lw={top:"bottom",right:"left",bottom:"top",left:"right"},Gm=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Aw(Ym,r),l=Lw[i.placedSide];return E.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:E.jsx(yw,{...o,ref:n,style:{...o.style,display:"block"}})})});Gm.displayName=Ym;function Ow(e){return e!==null}var $w=e=>({name:"transformOrigin",options:e,fn(t){var C,h,d;const{placement:n,rects:r,middlewareData:o}=t,l=((C=o.arrow)==null?void 0:C.centerOffset)!==0,s=l?0:e.arrowWidth,a=l?0:e.arrowHeight,[u,f]=Km(n),c={start:"0%",center:"50%",end:"100%"}[f],p=(((h=o.arrow)==null?void 0:h.x)??0)+s/2,v=(((d=o.arrow)==null?void 0:d.y)??0)+a/2;let y="",w="";return u==="bottom"?(y=l?c:`${p}px`,w=`${-a}px`):u==="top"?(y=l?c:`${p}px`,w=`${r.floating.height+a}px`):u==="right"?(y=`${-a}px`,w=l?c:`${v}px`):u==="left"&&(y=`${r.floating.width+a}px`,w=l?c:`${v}px`),{data:{x:y,y:w}}}});function Km(e){const[t,n="center"]=e.split("-");return[t,n]}var Mw=Um,Dw=Vm,zw=Wm,Iw=Gm;function jw(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var Qm=e=>{const{present:t,children:n}=e,r=Fw(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=Jo(r.ref,Bw(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:i}):null};Qm.displayName="Presence";function Fw(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),l=e?"mounted":"unmounted",[s,a]=jw(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=Ni(r.current);i.current=s==="mounted"?u:"none"},[s]),xa(()=>{const u=r.current,f=o.current;if(f!==e){const p=i.current,v=Ni(u);e?a("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(f&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),xa(()=>{if(t){const u=c=>{const v=Ni(r.current).includes(c.animationName);c.target===t&&v&&Xo.flushSync(()=>a("ANIMATION_END"))},f=c=>{c.target===t&&(i.current=Ni(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:m.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ni(e){return(e==null?void 0:e.animationName)||"none"}function Bw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Uw({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Hw({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=qo(n),a=m.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else o(u)},[i,e,o,s]);return[l,a]}function Hw({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),i=qo(t);return m.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function Vw(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ww(...e){return t=>e.forEach(n=>Vw(n,t))}var Xm=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(Gw);if(i){const l=i.props.children,s=o.map(a=>a===i?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:a);return E.jsx(ba,{...r,ref:t,children:m.isValidElement(l)?m.cloneElement(l,void 0,s):null})}return E.jsx(ba,{...r,ref:t,children:n})});Xm.displayName="Slot";var ba=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const o=Qw(n);return m.cloneElement(n,{...Kw(r,n.props),ref:t?Ww(t,o):o})}return m.Children.count(n)>1?m.Children.only(null):null});ba.displayName="SlotClone";var Yw=({children:e})=>E.jsx(E.Fragment,{children:e});function Gw(e){return m.isValidElement(e)&&e.type===Yw}function Kw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Qw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Zw=Xw.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Xm:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Jw="VisuallyHidden",Zm=m.forwardRef((e,t)=>E.jsx(Zw.span,{...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}}));Zm.displayName=Jw;var qw=Zm,[$l,_x]=Ky("Tooltip",[Fm]),Ml=Fm(),Jm="TooltipProvider",ex=700,Ta="tooltip.open",[tx,Mu]=$l(Jm),qm=e=>{const{__scopeTooltip:t,delayDuration:n=ex,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[l,s]=m.useState(!0),a=m.useRef(!1),u=m.useRef(0);return m.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),E.jsx(tx,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:m.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:m.useCallback(f=>{a.current=f},[]),disableHoverableContent:o,children:i})};qm.displayName=Jm;var Dl="Tooltip",[nx,zl]=$l(Dl),eh=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:s}=e,a=Mu(Dl,e.__scopeTooltip),u=Ml(t),[f,c]=m.useState(null),p=d1(),v=m.useRef(0),y=l??a.disableHoverableContent,w=s??a.delayDuration,C=m.useRef(!1),[h=!1,d]=Uw({prop:r,defaultProp:o,onChange:b=>{b?(a.onOpen(),document.dispatchEvent(new CustomEvent(Ta))):a.onClose(),i==null||i(b)}}),g=m.useMemo(()=>h?C.current?"delayed-open":"instant-open":"closed",[h]),S=m.useCallback(()=>{window.clearTimeout(v.current),C.current=!1,d(!0)},[d]),k=m.useCallback(()=>{window.clearTimeout(v.current),d(!1)},[d]),T=m.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{C.current=!0,d(!0)},w)},[w,d]);return m.useEffect(()=>()=>window.clearTimeout(v.current),[]),E.jsx(Mw,{...u,children:E.jsx(nx,{scope:t,contentId:p,open:h,stateAttribute:g,trigger:f,onTriggerChange:c,onTriggerEnter:m.useCallback(()=>{a.isOpenDelayed?T():S()},[a.isOpenDelayed,T,S]),onTriggerLeave:m.useCallback(()=>{y?k():window.clearTimeout(v.current)},[k,y]),onOpen:S,onClose:k,disableHoverableContent:y,children:n})})};eh.displayName=Dl;var Pa="TooltipTrigger",th=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=zl(Pa,n),i=Mu(Pa,n),l=Ml(n),s=m.useRef(null),a=Jo(t,s,o.onTriggerChange),u=m.useRef(!1),f=m.useRef(!1),c=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),E.jsx(Dw,{asChild:!0,...l,children:E.jsx(bu.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:Qt(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Qt(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Qt(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Qt(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Qt(e.onBlur,o.onClose),onClick:Qt(e.onClick,o.onClose)})})});th.displayName=Pa;var rx="TooltipPortal",[Ax,ox]=$l(rx,{forceMount:void 0}),Fr="TooltipContent",nh=m.forwardRef((e,t)=>{const n=ox(Fr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=zl(Fr,e.__scopeTooltip);return E.jsx(Qm,{present:r||l.open,children:l.disableHoverableContent?E.jsx(rh,{side:o,...i,ref:t}):E.jsx(ix,{side:o,...i,ref:t})})}),ix=m.forwardRef((e,t)=>{const n=zl(Fr,e.__scopeTooltip),r=Mu(Fr,e.__scopeTooltip),o=m.useRef(null),i=Jo(t,o),[l,s]=m.useState(null),{trigger:a,onClose:u}=n,f=o.current,{onPointerInTransitChange:c}=r,p=m.useCallback(()=>{s(null),c(!1)},[c]),v=m.useCallback((y,w)=>{const C=y.currentTarget,h={x:y.clientX,y:y.clientY},d=ux(h,C.getBoundingClientRect()),g=cx(h,d),S=dx(w.getBoundingClientRect()),k=px([...g,...S]);s(k),c(!0)},[c]);return m.useEffect(()=>()=>p(),[p]),m.useEffect(()=>{if(a&&f){const y=C=>v(C,f),w=C=>v(C,a);return a.addEventListener("pointerleave",y),f.addEventListener("pointerleave",w),()=>{a.removeEventListener("pointerleave",y),f.removeEventListener("pointerleave",w)}}},[a,f,v,p]),m.useEffect(()=>{if(l){const y=w=>{const C=w.target,h={x:w.clientX,y:w.clientY},d=(a==null?void 0:a.contains(C))||(f==null?void 0:f.contains(C)),g=!fx(h,l);d?p():g&&(p(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[a,f,l,u,p]),E.jsx(rh,{...e,ref:i})}),[lx,sx]=$l(Dl,{isInside:!1}),rh=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...s}=e,a=zl(Fr,n),u=Ml(n),{onClose:f}=a;return m.useEffect(()=>(document.addEventListener(Ta,f),()=>document.removeEventListener(Ta,f)),[f]),m.useEffect(()=>{if(a.trigger){const c=p=>{const v=p.target;v!=null&&v.contains(a.trigger)&&f()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[a.trigger,f]),E.jsx(Em,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c=>c.preventDefault(),onDismiss:f,children:E.jsxs(zw,{"data-state":a.stateAttribute,...u,...s,ref:t,style:{...s.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)"},children:[E.jsx(xm,{children:r}),E.jsx(lx,{scope:n,isInside:!0,children:E.jsx(qw,{id:a.contentId,role:"tooltip",children:o||r})})]})})});nh.displayName=Fr;var oh="TooltipArrow",ax=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ml(n);return sx(oh,n).isInside?null:E.jsx(Iw,{...o,...r,ref:t})});ax.displayName=oh;function ux(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function cx(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function dx(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function fx(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;ir!=f>r&&n<(u-s)*(r-a)/(f-a)+s&&(o=!o)}return o}function px(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),mx(t)}function mx(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var hx=qm,gx=eh,vx=th,ih=nh;const ao=hx,uo=gx,co=vx,dr=m.forwardRef(({className:e,sideOffset:t=4,...n},r)=>E.jsx(ih,{ref:r,sideOffset:t,className:ku("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));dr.displayName=ih.displayName;/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const yx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lh=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var wx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const xx=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...s},a)=>m.createElement("svg",{ref:a,...wx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:lh("lucide",o),...s},[...l.map(([u,f])=>m.createElement(u,f)),...Array.isArray(i)?i:[i]]));/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Sx=(e,t)=>{const n=m.forwardRef(({className:r,...o},i)=>m.createElement(xx,{ref:i,iconNode:t,className:lh(`lucide-${yx(e)}`,r),...o}));return n.displayName=`${e}`,n};/** - * @license lucide-react v0.414.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ad=Sx("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);function Ex(){const[e,t]=m.useState(null),[n,r]=m.useState(!1),[o,i]=m.useState(0),[l,s]=m.useState(85),[a,u]=m.useState(65),[f,c]=m.useState(255),[p,v]=m.useState(0),[y,w]=m.useState(0),[C,h]=m.useState("#FF0000"),[d,g]=m.useState("hsl"),S=(A,P,N)=>`#${((1<<24)+(A<<16)+(P<<8)+N).toString(16).slice(1)}`;m.useEffect(()=>{localStorage.removeItem("uploadedImage")},[]),m.useEffect(()=>{const A=b(o,l,a);c(A.r),v(A.g),w(A.b),h(S(A.r,A.g,A.b))},[]),m.useEffect(()=>{const A=localStorage.getItem("uploadedImage");A&&(t(A),k(A))},[n]);const k=A=>{const P=new Image;P.src=A,P.onload=()=>{const N=document.createElement("canvas"),R=N.getContext("2d");N.width=P.width,N.height=P.height,R.drawImage(P,0,0,P.width,P.height);const $=R.getImageData(0,0,P.width,P.height).data,z=[];for(let Z=0;Z<$.length;Z+=4){const ge=$[Z],Le=$[Z+1],Ue=$[Z+2];if($[Z+3]>0){const Ee=S(ge,Le,Ue);z.push(Ee)}}const G={};z.forEach(Z=>{Z in G?G[Z]+=1:G[Z]=1});const ne=Object.keys(G).sort((Z,ge)=>G[ge]-G[Z])[0],Q=_(ne);U(Q.r,Q.g,Q.b)}},T=A=>{const P=A.target,N=document.createElement("canvas"),R=N.getContext("2d");N.width=P.width,N.height=P.height,R.drawImage(P,0,0,P.width,P.height);const O=P.getBoundingClientRect(),$=P.width/O.width,z=P.height/O.height,G=(A.clientX-O.left)*$,V=(A.clientY-O.top)*z,ne=R.getImageData(G,V,1,1).data,[Q,Z,ge]=ne;c(Q),v(Z),w(ge),h(S(Q,Z,ge));const Le=U(Q,Z,ge);i(Le.h),s(Le.s),u(Le.l),ft.success("Color picked from image",{action:{label:"Close",onClick:()=>ft.dismiss()}})},b=(A,P,N)=>{A/=360,P/=100,N/=100;let R,O,$;if(P===0)R=O=$=N;else{const z=(ne,Q,Z)=>(Z<0&&(Z+=1),Z>1&&(Z-=1),Z<.16666666666666666?ne+(Q-ne)*6*Z:Z<.5?Q:Z<.6666666666666666?ne+(Q-ne)*(.6666666666666666-Z)*6:ne),G=N<.5?N*(1+P):N+P-N*P,V=2*N-G;R=z(V,G,A+1/3),O=z(V,G,A),$=z(V,G,A-1/3)}return{r:Math.round(R*255),g:Math.round(O*255),b:Math.round($*255)}},_=A=>{const P=A.replace(/#/,"").match(/.{1,2}/g);return{r:parseInt(P[0],16),g:parseInt(P[1],16),b:parseInt(P[2],16)}},U=(A,P,N)=>{A/=255,P/=255,N/=255;const R=Math.max(A,P,N),O=Math.min(A,P,N);let $,z,G=(R+O)/2;if(R===O)$=z=0;else{const V=R-O;switch(z=G>.5?V/(2-R-O):V/(R+O),R){case A:$=(P-N)/V+(Pft.dismiss()}})}function Y(){navigator.clipboard.writeText(C),ft.success("Copied HEX value to clipboard",{action:{label:"Close",onClick:()=>ft.dismiss()}})}function H(){navigator.clipboard.writeText(`${o}°, ${l}%, ${a}%`),ft.success("Copied HSL value to clipboard",{action:{label:"Close",onClick:()=>ft.dismiss()}})}const X=A=>{i(A);const P=b(A,l,a);c(P.r),v(P.g),w(P.b),h(S(P.r,P.g,P.b))},j=A=>{s(A);const P=b(o,A,a);c(P.r),v(P.g),w(P.b),h(S(P.r,P.g,P.b))},W=A=>{u(A);const P=b(o,l,A);c(P.r),v(P.g),w(P.b),h(S(P.r,P.g,P.b))};return n?E.jsxs("div",{className:"flex flex-col items-center justify-center p-4 h-screen bg-gray-100 dark:bg-gray-950 ",children:[E.jsx(im,{}),E.jsx("div",{className:"max-w-3xl w-full bg-white dark:bg-gray-900 rounded-lg shadow-lg overflow-hidden",style:{minHeight:"300px",minWidth:"700px"},children:E.jsxs("div",{className:"grid grid-cols-2 gap-6 p-6",children:[E.jsxs("div",{className:"relative flex justify-center items-center h-full",children:[E.jsx("img",{alt:"Uploaded Image",className:"w-full h-full object-cover rounded-lg",height:500,src:"/placeholder.svg",style:{aspectRatio:"500/500",objectFit:"cover"},width:500}),E.jsx("div",{className:"absolute inset-0 flex items-center justify-center border-black",style:{userSelect:"none",overflow:"hidden",scrollbarWidth:"none"},children:E.jsx("div",{className:"max-w-full max-h-full relative bg-black dark:bg-white rounded-lg border-black shadow-lg object-cover content-center overflow-auto",style:{aspectRatio:"500/500",objectFit:"cover",scrollbarWidth:"none"},children:e!==null?E.jsx("img",{src:e,onClick:T,alt:"Uploaded Image",className:"object-contain place-self-center"}):E.jsx(Cx,{className:"w-6 h-6 text-gray-500 dark:text-gray-400"})})})]}),E.jsxs("div",{className:"flex flex-col gap-6",children:[E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 h-16 rounded-full border-4 border-gray-200 dark:border-gray-800 flex items-center justify-center",children:E.jsx("div",{className:"w-10 h-10 rounded-full border",style:{backgroundColor:S(f,p,y)}})}),E.jsxs("div",{className:"flex-1 grid gap-1",children:[E.jsx("div",{className:"w-20 text-sm font-medium text-gray-500 dark:text-gray-400",children:"HEX"}),E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"text-lg font-semibold text-gray-900 dark:text-gray-50",children:C}),E.jsx(ao,{children:E.jsxs(uo,{children:[E.jsx(co,{children:E.jsx(cr,{variant:"ghost",onClick:Y,className:"max-h-12 max-w-12",children:E.jsx(kx,{className:"w-4 h-4 text-gray-500 dark:text-gray-400"})})}),E.jsx(dr,{children:E.jsx("span",{className:"text-sm text-muted-foreground",children:"Copy HEX"})})]})})]})]})]}),d==="hsl"?E.jsxs("div",{className:"grid gap-4",children:[E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Hue"}),E.jsx(Un,{className:"flex-1",value:[o],max:360,step:1,onValueChange:A=>X(A)}),E.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[o,"°"]})]}),E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Saturation"}),E.jsx(Un,{className:"flex-1",value:[l],max:100,step:1,onValueChange:A=>j(A)}),E.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[l,"%"]})]}),E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Lightness"}),E.jsx(Un,{className:"flex-1",value:[a],max:100,step:1,onValueChange:A=>W(A)}),E.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[a,"%"]})]})]}):d==="rgb"?E.jsxs("div",{className:"grid gap-4",children:[E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Red"}),E.jsx(Un,{className:"flex-1",value:[o],max:255,step:1,onValueChange:A=>X(A)}),E.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[o,"°"]})]}),E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Green"}),E.jsx(Un,{className:"flex-1",value:[l],max:255,step:1,onValueChange:A=>j(A)}),E.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[l,"%"]})]}),E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Blue"}),E.jsx(Un,{className:"flex-1",value:[a],max:255,step:1,onValueChange:A=>W(A)}),E.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[a,"%"]})]})]}):null,E.jsxs("div",{className:"grid gap-2",children:[E.jsxs("div",{className:"flex items-center gap-4 group",children:[E.jsx(ao,{children:E.jsxs(uo,{children:[E.jsx(co,{children:E.jsx(cr,{variant:"ghost",onClick:D,className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"RGB"})}),E.jsx(dr,{children:E.jsx("span",{className:"text-sm text-muted-foreground",children:"Copy RGB"})})]})}),E.jsxs("div",{className:"flex-1 text-lg font-semibold text-gray-900 dark:text-gray-50",children:[f,", ",p,", ",y]}),E.jsx(ao,{children:E.jsxs(uo,{children:[E.jsx(co,{children:E.jsx(cr,{variant:"outline",size:"icon",className:"h-8 w-8 text-right opacity-0 group-hover:opacity-100 group-hover:animate-fadeInLeft",onClick:()=>g("rgb"),children:E.jsx(Ad,{className:"w-4 h-4"})})}),E.jsx(dr,{children:E.jsx("span",{className:"text-sm text-muted-foreground",children:"Switch to RGB"})})]})})]}),E.jsxs("div",{className:"flex items-center gap-4 group",children:[E.jsx(ao,{children:E.jsxs(uo,{children:[E.jsx(co,{children:E.jsx(cr,{variant:"ghost",onClick:H,className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"HSL"})}),E.jsx(dr,{children:E.jsx("span",{className:"text-sm text-muted-foreground",children:"Copy HSL"})})]})}),E.jsxs("div",{className:"flex-1 text-lg font-semibold text-gray-900 dark:text-gray-50",children:[o,"°, ",l,"%, ",a,"%"]}),E.jsx(ao,{children:E.jsxs(uo,{children:[E.jsx(co,{children:E.jsx(cr,{variant:"outline",size:"icon",className:"h-8 w-8 text-right opacity-0 group-hover:opacity-100 group-hover:animate-fadeInLeft",onClick:()=>g("hsl"),children:E.jsx(Ad,{className:"w-4 h-4"})})}),E.jsx(dr,{children:E.jsx("span",{className:"text-sm text-muted-foreground",children:"Switch to HSL"})})]})})]})]})]})]})})]}):E.jsx(py,{setImage:t,setImageUploaded:r,image:e,imageUploaded:n})}function Cx(e){return E.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),E.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function kx(e){return E.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 115.77 122.88",style:{enableBackground:"new 0 0 115.77 122.88"},xmlSpace:"preserve",children:[E.jsx("style",{type:"text/css",children:".st0{fill-rule:evenodd;clip-rule:evenodd;}"}),E.jsx("g",{children:E.jsx("path",{className:"st0",d:"M89.62,13.96v7.73h12.19h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02v0.02 v73.27v0.01h-0.02c-0.01,3.84-1.57,7.33-4.1,9.86c-2.51,2.5-5.98,4.06-9.82,4.07v0.02h-0.02h-61.7H40.1v-0.02 c-3.84-0.01-7.34-1.57-9.86-4.1c-2.5-2.51-4.06-5.98-4.07-9.82h-0.02v-0.02V92.51H13.96h-0.01v-0.02c-3.84-0.01-7.34-1.57-9.86-4.1 c-2.5-2.51-4.06-5.98-4.07-9.82H0v-0.02V13.96v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07V0h0.02h61.7 h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02V13.96L89.62,13.96z M79.04,21.69v-7.73v-0.02h0.02 c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v64.59v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h12.19V35.65 v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07v-0.02h0.02H79.04L79.04,21.69z M105.18,108.92V35.65v-0.02 h0.02c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v73.27v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h61.7h0.02 v0.02c0.91,0,1.75-0.39,2.37-1.01c0.61-0.61,1-1.46,1-2.37h-0.02V108.92L105.18,108.92z"})})]})}function Nx(){return E.jsx("div",{className:"flex min-h-[100dvh] flex-col items-center justify-center bg-background px-4 py-12 sm:px-6 lg:px-8",children:E.jsxs("div",{className:"mx-auto max-w-md text-center",children:[E.jsx(bx,{className:"mx-auto h-12 w-12 text-primary"}),E.jsx("h1",{className:"mt-4 text-3xl font-bold tracking-tight text-foreground sm:text-4xl",children:"Sorry, this website is only available for desktop"}),E.jsx("p",{className:"mt-4 text-muted-foreground",children:"We apologize for the inconvenience, but our website is currently optimized for desktop devices only. Please try accessing this site from a computer or laptop."})]})})}function bx(e){return E.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"blue",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}),E.jsx("path",{d:"M12 18h.01"})]})}const Tx=()=>{const e=window.navigator.userAgent.toLowerCase(),t=/mobile|android|iphone|ipad|tablet|touch|samsung|fridge/i.test(e),n=window.innerWidth<=1024;return!t&&!n};function Px(){const[e,t]=M.useState(null);return M.useEffect(()=>{t(Tx())},[]),e===!0?E.jsx(Ex,{}):E.jsx(Nx,{})}ws.createRoot(document.getElementById("root")).render(E.jsx(M.StrictMode,{children:E.jsx(Px,{})})); diff --git a/assets/index-CNsmT8cT.js b/assets/index-CNsmT8cT.js new file mode 100644 index 0000000..764e558 --- /dev/null +++ b/assets/index-CNsmT8cT.js @@ -0,0 +1,71 @@ +function fh(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Ld(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Od={exports:{}},ml={},$d={exports:{}},te={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Wo=Symbol.for("react.element"),ph=Symbol.for("react.portal"),mh=Symbol.for("react.fragment"),hh=Symbol.for("react.strict_mode"),gh=Symbol.for("react.profiler"),vh=Symbol.for("react.provider"),yh=Symbol.for("react.context"),wh=Symbol.for("react.forward_ref"),xh=Symbol.for("react.suspense"),Sh=Symbol.for("react.memo"),Eh=Symbol.for("react.lazy"),Xu=Symbol.iterator;function Ch(e){return e===null||typeof e!="object"?null:(e=Xu&&e[Xu]||e["@@iterator"],typeof e=="function"?e:null)}var Md={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dd=Object.assign,zd={};function Br(e,t,n){this.props=e,this.context=t,this.refs=zd,this.updater=n||Md}Br.prototype.isReactComponent={};Br.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Br.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Id(){}Id.prototype=Br.prototype;function Ra(e,t,n){this.props=e,this.context=t,this.refs=zd,this.updater=n||Md}var _a=Ra.prototype=new Id;_a.constructor=Ra;Dd(_a,Br.prototype);_a.isPureReactComponent=!0;var Zu=Array.isArray,jd=Object.prototype.hasOwnProperty,Aa={current:null},Fd={key:!0,ref:!0,__self:!0,__source:!0};function Bd(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)jd.call(t,r)&&!Fd.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,A=R[k];if(0>>1;ko(J,b))Go(ne,J)?(R[k]=ne,R[G]=b,k=G):(R[k]=J,R[U]=b,k=U);else if(Go(ne,b))R[k]=ne,R[G]=b,k=G;else break e}}return O}function o(R,O){var b=R.sortIndex-O.sortIndex;return b!==0?b:R.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],d=1,c=null,p=3,v=!1,y=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(R){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=R)r(u),O.sortIndex=O.expirationTime,t(a,O);else break;O=n(u)}}function S(R){if(w=!1,g(R),!y)if(n(a)!==null)y=!0,Q(N);else{var O=n(u);O!==null&&H(S,O.startTime-R)}}function N(R,O){y=!1,w&&(w=!1,m(_),_=-1),v=!0;var b=p;try{for(g(O),c=n(a);c!==null&&(!(c.expirationTime>O)||R&&!Y());){var k=c.callback;if(typeof k=="function"){c.callback=null,p=c.priorityLevel;var A=k(c.expirationTime<=O);O=e.unstable_now(),typeof A=="function"?c.callback=A:c===n(a)&&r(a),g(O)}else r(a);c=n(a)}if(c!==null)var W=!0;else{var U=n(u);U!==null&&H(S,U.startTime-O),W=!1}return W}finally{c=null,p=b,v=!1}}var P=!1,T=null,_=-1,F=5,M=-1;function Y(){return!(e.unstable_now()-MR||125k?(R.sortIndex=b,t(u,R),n(a)===null&&R===n(u)&&(w?(m(_),_=-1):w=!0,H(S,b-k))):(R.sortIndex=A,t(a,R),y||v||(y=!0,Q(N))),R},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(R){var O=p;return function(){var b=p;p=O;try{return R.apply(this,arguments)}finally{p=b}}}})(Yd);Wd.exports=Yd;var Mh=Wd.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dh=h,lt=Mh;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xs=Object.prototype.hasOwnProperty,zh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,qu={},ec={};function Ih(e){return xs.call(ec,e)?!0:xs.call(qu,e)?!1:zh.test(e)?ec[e]=!0:(qu[e]=!0,!1)}function jh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Fh(e,t,n,r){if(t===null||typeof t>"u"||jh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function We(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Me[e]=new We(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Me[t]=new We(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Me[e]=new We(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Me[e]=new We(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Me[e]=new We(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Me[e]=new We(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Me[e]=new We(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Me[e]=new We(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Me[e]=new We(e,5,!1,e.toLowerCase(),null,!1,!1)});var Oa=/[\-:]([a-z])/g;function $a(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Oa,$a);Me[t]=new We(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Oa,$a);Me[t]=new We(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Oa,$a);Me[t]=new We(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Me[e]=new We(e,1,!1,e.toLowerCase(),null,!1,!1)});Me.xlinkHref=new We("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Me[e]=new We(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ma(e,t,n,r){var o=Me.hasOwnProperty(t)?Me[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var a=` +`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Hl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fo(e):""}function Bh(e){switch(e.tag){case 5:return fo(e.type);case 16:return fo("Lazy");case 13:return fo("Suspense");case 19:return fo("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function ks(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case pr:return"Fragment";case fr:return"Portal";case Ss:return"Profiler";case Da:return"StrictMode";case Es:return"Suspense";case Cs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qd:return(e.displayName||"Context")+".Consumer";case Kd:return(e._context.displayName||"Context")+".Provider";case za:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ia:return t=e.displayName||null,t!==null?t:ks(e.type)||"Memo";case gn:t=e._payload,e=e._init;try{return ks(e(t))}catch{}}return null}function Uh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ks(t);case 8:return t===Da?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hh(e){var t=Zd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oi(e){e._valueTracker||(e._valueTracker=Hh(e))}function Jd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ns(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function nc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_n(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qd(e,t){t=t.checked,t!=null&&Ma(e,"checked",t,!1)}function bs(e,t){qd(e,t);var n=_n(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ts(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ts(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ts(e,t,n){(t!=="number"||Fi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var po=Array.isArray;function Nr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var go={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vh=["Webkit","ms","Moz","O"];Object.keys(go).forEach(function(e){Vh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),go[t]=go[e]})});function rf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||go.hasOwnProperty(e)&&go[e]?(""+t).trim():t+"px"}function of(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=rf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Wh=ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _s(e,t){if(t){if(Wh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function As(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ls=null;function ja(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Os=null,br=null,Tr=null;function lc(e){if(e=Ko(e)){if(typeof Os!="function")throw Error(L(280));var t=e.stateNode;t&&(t=wl(t),Os(e.stateNode,e.type,t))}}function lf(e){br?Tr?Tr.push(e):Tr=[e]:br=e}function sf(){if(br){var e=br,t=Tr;if(Tr=br=null,lc(e),t)for(e=0;e>>=0,e===0?32:31-(ng(e)/rg|0)|0}var li=64,si=4194304;function mo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=mo(s):(i&=l,i!==0&&(r=mo(i)))}else l=n&~o,l!==0?r=mo(l):i!==0&&(r=mo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Yo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function sg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=yo),hc=" ",gc=!1;function Tf(e,t){switch(e){case"keyup":return Mg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mr=!1;function zg(e,t){switch(e){case"compositionend":return Pf(t);case"keypress":return t.which!==32?null:(gc=!0,hc);case"textInput":return e=t.data,e===hc&&gc?null:e;default:return null}}function Ig(e,t){if(mr)return e==="compositionend"||!Ga&&Tf(e,t)?(e=Nf(),Ri=Va=xn=null,mr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xc(n)}}function Lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Of(){for(var e=window,t=Fi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fi(e.document)}return t}function Ka(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Gg(e){var t=Of(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lf(n.ownerDocument.documentElement,n)){if(r!==null&&Ka(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Sc(n,i);var l=Sc(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,hr=null,js=null,xo=null,Fs=!1;function Ec(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fs||hr==null||hr!==Fi(r)||(r=hr,"selectionStart"in r&&Ka(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xo&&Lo(xo,r)||(xo=r,r=Gi(js,"onSelect"),0yr||(e.current=Ys[yr],Ys[yr]=null,yr--)}function ae(e,t){yr++,Ys[yr]=e.current,e.current=t}var An={},je=zn(An),Qe=zn(!1),Qn=An;function Or(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Xe(e){return e=e.childContextTypes,e!=null}function Qi(){fe(Qe),fe(je)}function Rc(e,t,n){if(je.current!==An)throw Error(L(168));ae(je,t),ae(Qe,n)}function Uf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(L(108,Uh(e)||"Unknown",o));return ye({},n,r)}function Xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,Qn=je.current,ae(je,e),ae(Qe,Qe.current),!0}function _c(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Uf(e,t,Qn),r.__reactInternalMemoizedMergedChildContext=e,fe(Qe),fe(je),ae(je,e)):fe(Qe),ae(Qe,n)}var Qt=null,xl=!1,os=!1;function Hf(e){Qt===null?Qt=[e]:Qt.push(e)}function i0(e){xl=!0,Hf(e)}function In(){if(!os&&Qt!==null){os=!0;var e=0,t=ie;try{var n=Qt;for(ie=1;e>=l,o-=l,Zt=1<<32-Tt(t)+o|n<_?(F=T,T=null):F=T.sibling;var M=p(m,T,g[_],S);if(M===null){T===null&&(T=F);break}e&&T&&M.alternate===null&&t(m,T),f=i(M,f,_),P===null?N=M:P.sibling=M,P=M,T=F}if(_===g.length)return n(m,T),me&&jn(m,_),N;if(T===null){for(;__?(F=T,T=null):F=T.sibling;var Y=p(m,T,M.value,S);if(Y===null){T===null&&(T=F);break}e&&T&&Y.alternate===null&&t(m,T),f=i(Y,f,_),P===null?N=Y:P.sibling=Y,P=Y,T=F}if(M.done)return n(m,T),me&&jn(m,_),N;if(T===null){for(;!M.done;_++,M=g.next())M=c(m,M.value,S),M!==null&&(f=i(M,f,_),P===null?N=M:P.sibling=M,P=M);return me&&jn(m,_),N}for(T=r(m,T);!M.done;_++,M=g.next())M=v(T,m,_,M.value,S),M!==null&&(e&&M.alternate!==null&&T.delete(M.key===null?_:M.key),f=i(M,f,_),P===null?N=M:P.sibling=M,P=M);return e&&T.forEach(function(B){return t(m,B)}),me&&jn(m,_),N}function C(m,f,g,S){if(typeof g=="object"&&g!==null&&g.type===pr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case ri:e:{for(var N=g.key,P=f;P!==null;){if(P.key===N){if(N=g.type,N===pr){if(P.tag===7){n(m,P.sibling),f=o(P,g.props.children),f.return=m,m=f;break e}}else if(P.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===gn&&Oc(N)===P.type){n(m,P.sibling),f=o(P,g.props),f.ref=eo(m,P,g),f.return=m,m=f;break e}n(m,P);break}else t(m,P);P=P.sibling}g.type===pr?(f=Kn(g.props.children,m.mode,S,g.key),f.return=m,m=f):(S=zi(g.type,g.key,g.props,null,m.mode,S),S.ref=eo(m,f,g),S.return=m,m=S)}return l(m);case fr:e:{for(P=g.key;f!==null;){if(f.key===P)if(f.tag===4&&f.stateNode.containerInfo===g.containerInfo&&f.stateNode.implementation===g.implementation){n(m,f.sibling),f=o(f,g.children||[]),f.return=m,m=f;break e}else{n(m,f);break}else t(m,f);f=f.sibling}f=fs(g,m.mode,S),f.return=m,m=f}return l(m);case gn:return P=g._init,C(m,f,P(g._payload),S)}if(po(g))return y(m,f,g,S);if(Qr(g))return w(m,f,g,S);mi(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,f!==null&&f.tag===6?(n(m,f.sibling),f=o(f,g),f.return=m,m=f):(n(m,f),f=ds(g,m.mode,S),f.return=m,m=f),l(m)):n(m,f)}return C}var Mr=Gf(!0),Kf=Gf(!1),qi=zn(null),el=null,Sr=null,Ja=null;function qa(){Ja=Sr=el=null}function eu(e){var t=qi.current;fe(qi),e._currentValue=t}function Qs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Rr(e,t){el=e,Ja=Sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function yt(e){var t=e._currentValue;if(Ja!==e)if(e={context:e,memoizedValue:t,next:null},Sr===null){if(el===null)throw Error(L(308));Sr=e,el.dependencies={lanes:0,firstContext:e}}else Sr=Sr.next=e;return t}var Vn=null;function tu(e){Vn===null?Vn=[e]:Vn.push(e)}function Qf(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,tu(t)):(n.next=o.next,o.next=n),t.interleaved=n,nn(e,r)}function nn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var vn=!1;function nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,nn(e,n)}return o=r.interleaved,o===null?(t.next=t,tu(r)):(t.next=o.next,o.next=t),r.interleaved=t,nn(e,n)}function Ai(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ba(e,n)}}function $c(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tl(e,t,n,r){var o=e.updateQueue;vn=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==l&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=a))}if(i!==null){var c=o.baseState;l=0,d=u=a=null,s=i;do{var p=s.lane,v=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,w=s;switch(p=t,v=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){c=y.call(v,c,p);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,p=typeof y=="function"?y.call(v,c,p):y,p==null)break e;c=ye({},c,p);break e;case 2:vn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=v,a=c):d=d.next=v,l|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(a=c),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Jn|=l,e.lanes=l,e.memoizedState=c}}function Mc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ls.transition;ls.transition={};try{e(!1),t()}finally{ie=n,ls.transition=r}}function pp(){return wt().memoizedState}function u0(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mp(e))hp(t,n);else if(n=Qf(e,t,n,r),n!==null){var o=Ue();Pt(n,e,r,o),gp(n,t,r)}}function c0(e,t,n){var r=Pn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mp(e))hp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Rt(s,l)){var a=t.interleaved;a===null?(o.next=o,tu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Qf(e,t,o,r),n!==null&&(o=Ue(),Pt(n,e,r,o),gp(n,t,r))}}function mp(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function hp(e,t){So=rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ba(e,n)}}var ol={readContext:yt,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},d0={readContext:yt,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:zc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Oi(4194308,4,ap.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oi(4,2,e,t)},useMemo:function(e,t){var n=Mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=u0.bind(null,ve,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:Dc,useDebugValue:cu,useDeferredValue:function(e){return Mt().memoizedState=e},useTransition:function(){var e=Dc(!1),t=e[0];return e=a0.bind(null,e[1]),Mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ve,o=Mt();if(me){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),_e===null)throw Error(L(349));Zn&30||ep(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,zc(np.bind(null,r,i,e),[e]),r.flags|=2048,Fo(9,tp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Mt(),t=_e.identifierPrefix;if(me){var n=Jt,r=Zt;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Io++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Dt]=t,e[Mo]=r,bp(e,t,!1,!1),t.stateNode=e;e:{switch(l=As(n,r),n){case"dialog":de("cancel",e),de("close",e),o=r;break;case"iframe":case"object":case"embed":de("load",e),o=r;break;case"video":case"audio":for(o=0;oIr&&(t.flags|=128,r=!0,to(i,!1),t.lanes=4194304)}else{if(!r)if(e=nl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),to(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!me)return ze(t),null}else 2*Ce()-i.renderingStartTime>Ir&&n!==1073741824&&(t.flags|=128,r=!0,to(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ce(),t.sibling=null,n=ge.current,ae(ge,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return gu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function w0(e,t){switch(Xa(t),t.tag){case 1:return Xe(t.type)&&Qi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dr(),fe(Qe),fe(je),iu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ou(t),null;case 13:if(fe(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));$r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ge),null;case 4:return Dr(),null;case 10:return eu(t.type._context),null;case 22:case 23:return gu(),null;case 24:return null;default:return null}}var gi=!1,Ie=!1,x0=typeof WeakSet=="function"?WeakSet:Set,j=null;function Er(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function oa(e,t,n){try{n()}catch(r){xe(e,t,r)}}var Kc=!1;function S0(e,t){if(Bs=Wi,e=Of(),Ka(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,d=0,c=e,p=null;t:for(;;){for(var v;c!==n||o!==0&&c.nodeType!==3||(s=l+o),c!==i||r!==0&&c.nodeType!==3||(a=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(v=c.firstChild)!==null;)p=c,c=v;for(;;){if(c===e)break t;if(p===n&&++u===o&&(s=l),p===i&&++d===r&&(a=l),(v=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=v}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Us={focusedElem:e,selectionRange:n},Wi=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,C=y.memoizedState,m=t.stateNode,f=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:kt(t.type,w),C);m.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(S){xe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return y=Kc,Kc=!1,y}function Eo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&oa(t,n,i)}o=o.next}while(o!==r)}}function Cl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ia(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Rp(e){var t=e.alternate;t!==null&&(e.alternate=null,Rp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dt],delete t[Mo],delete t[Ws],delete t[r0],delete t[o0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _p(e){return e.tag===5||e.tag===3||e.tag===4}function Qc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_p(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function la(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ki));else if(r!==4&&(e=e.child,e!==null))for(la(e,t,n),e=e.sibling;e!==null;)la(e,t,n),e=e.sibling}function sa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sa(e,t,n),e=e.sibling;e!==null;)sa(e,t,n),e=e.sibling}var Oe=null,Nt=!1;function pn(e,t,n){for(n=n.child;n!==null;)Ap(e,t,n),n=n.sibling}function Ap(e,t,n){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(hl,n)}catch{}switch(n.tag){case 5:Ie||Er(n,t);case 6:var r=Oe,o=Nt;Oe=null,pn(e,t,n),Oe=r,Nt=o,Oe!==null&&(Nt?(e=Oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Oe.removeChild(n.stateNode));break;case 18:Oe!==null&&(Nt?(e=Oe,n=n.stateNode,e.nodeType===8?rs(e.parentNode,n):e.nodeType===1&&rs(e,n),_o(e)):rs(Oe,n.stateNode));break;case 4:r=Oe,o=Nt,Oe=n.stateNode.containerInfo,Nt=!0,pn(e,t,n),Oe=r,Nt=o;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&oa(n,t,l),o=o.next}while(o!==r)}pn(e,t,n);break;case 1:if(!Ie&&(Er(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){xe(n,t,s)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,pn(e,t,n),Ie=r):pn(e,t,n);break;default:pn(e,t,n)}}function Xc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new x0),t.forEach(function(r){var o=_0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function St(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*C0(r/1960))-r,10e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,sl=0,re&6)throw Error(L(331));var o=re;for(re|=4,j=e.current;j!==null;){var i=j,l=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var a=0;aCe()-mu?Gn(e,0):pu|=n),Ze(e,t)}function jp(e,t){t===0&&(e.mode&1?(t=si,si<<=1,!(si&130023424)&&(si=4194304)):t=1);var n=Ue();e=nn(e,t),e!==null&&(Yo(e,t,n),Ze(e,n))}function R0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jp(e,n)}function _0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),jp(e,n)}var Fp;Fp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,v0(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,me&&t.flags&1048576&&Vf(t,Ji,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$i(e,t),e=t.pendingProps;var o=Or(t,je.current);Rr(t,n),o=su(null,t,r,e,o,n);var i=au();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xe(r)?(i=!0,Xi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nu(t),o.updater=El,t.stateNode=o,o._reactInternals=t,Zs(t,r,e,n),t=ea(null,t,r,!0,i,n)):(t.tag=0,me&&i&&Qa(t),Be(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch($i(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=L0(r),e=kt(r,e),o){case 0:t=qs(null,t,r,e,n);break e;case 1:t=Wc(null,t,r,e,n);break e;case 11:t=Hc(null,t,r,e,n);break e;case 14:t=Vc(null,t,r,kt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),qs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),Wc(e,t,r,o,n);case 3:e:{if(Cp(t),e===null)throw Error(L(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Xf(e,t),tl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=zr(Error(L(423)),t),t=Yc(e,t,r,n,o);break e}else if(r!==o){o=zr(Error(L(424)),t),t=Yc(e,t,r,n,o);break e}else for(rt=Nn(t.stateNode.containerInfo.firstChild),ot=t,me=!0,bt=null,n=Kf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($r(),r===o){t=rn(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return Zf(t),e===null&&Ks(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Hs(r,o)?l=null:i!==null&&Hs(r,i)&&(t.flags|=32),Ep(e,t),Be(e,t,l,n),t.child;case 6:return e===null&&Ks(t),null;case 13:return kp(e,t,n);case 4:return ru(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mr(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),Hc(e,t,r,o,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ae(qi,r._currentValue),r._currentValue=l,i!==null)if(Rt(i.value,l)){if(i.children===o.children&&!Qe.current){t=rn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=qt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Qs(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(L(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Qs(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Be(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Rr(t,n),o=yt(o),r=r(o),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,o=kt(r,t.pendingProps),o=kt(r.type,o),Vc(e,t,r,o,n);case 15:return xp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kt(r,o),$i(e,t),t.tag=1,Xe(r)?(e=!0,Xi(t)):e=!1,Rr(t,n),vp(t,r,o),Zs(t,r,o,n),ea(null,t,r,!0,e,n);case 19:return Np(e,t,n);case 22:return Sp(e,t,n)}throw Error(L(156,t.tag))};function Bp(e,t){return mf(e,t)}function A0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,n,r){return new A0(e,t,n,r)}function yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L0(e){if(typeof e=="function")return yu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===za)return 11;if(e===Ia)return 14}return 2}function Rn(e,t){var n=e.alternate;return n===null?(n=gt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zi(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")yu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case pr:return Kn(n.children,o,i,t);case Da:l=8,o|=8;break;case Ss:return e=gt(12,n,t,o|2),e.elementType=Ss,e.lanes=i,e;case Es:return e=gt(13,n,t,o),e.elementType=Es,e.lanes=i,e;case Cs:return e=gt(19,n,t,o),e.elementType=Cs,e.lanes=i,e;case Xd:return Nl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kd:l=10;break e;case Qd:l=9;break e;case za:l=11;break e;case Ia:l=14;break e;case gn:l=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=gt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Kn(e,t,n,r){return e=gt(7,e,r,t),e.lanes=n,e}function Nl(e,t,n,r){return e=gt(22,e,r,t),e.elementType=Xd,e.lanes=n,e.stateNode={isHidden:!1},e}function ds(e,t,n){return e=gt(6,e,null,t),e.lanes=n,e}function fs(e,t,n){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function O0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yl(0),this.expirationTimes=Yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wu(e,t,n,r,o,i,l,s,a){return e=new O0(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=gt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nu(i),e}function $0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wp)}catch(e){console.error(e)}}Wp(),Vd.exports=at;var Xo=Vd.exports;const j0=Ld(Xo);var od=Xo;ws.createRoot=od.createRoot,ws.hydrateRoot=od.hydrateRoot;function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>F0(n,t))}function Ln(...e){return h.useCallback(Yp(...e),e)}const Uo=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(U0);if(i){const l=i.props.children,s=o.map(a=>a===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:a);return h.createElement(fa,Je({},r,{ref:t}),h.isValidElement(l)?h.cloneElement(l,void 0,s):null)}return h.createElement(fa,Je({},r,{ref:t}),n)});Uo.displayName="Slot";const fa=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...H0(r,n.props),ref:t?Yp(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});fa.displayName="SlotClone";const B0=({children:e})=>h.createElement(h.Fragment,null,e);function U0(e){return h.isValidElement(e)&&e.type===B0}function H0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Gp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,ld=V0,W0=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ld(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],c=i==null?void 0:i[u];if(d===null)return null;const p=id(d)||id(c);return o[u][p]}),s=n&&Object.entries(n).reduce((u,d)=>{let[c,p]=d;return p===void 0||(u[c]=p),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:p,...v}=d;return Object.entries(v).every(y=>{let[w,C]=y;return Array.isArray(C)?C.includes({...i,...s}[w]):{...i,...s}[w]===C})?[...u,c,p]:u},[]);return ld(e,l,a,n==null?void 0:n.class,n==null?void 0:n.className)};function Kp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts(i)))==null?void 0:l.classGroupId}const sd=/^\[(.+)\]$/;function K0(e){if(sd.test(e)){const t=sd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Q0(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Z0(Object.entries(e.classGroups),n).forEach(([i,l])=>{pa(l,r,i,t)}),r}function pa(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ad(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(X0(o)){pa(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{pa(l,ad(t,i),n,r)})})}function ad(e,t){let n=e;return t.split(Cu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function X0(e){return e.isThemeGetter}function Z0(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,s])=>[t+l,s])):i);return[n,o]}):e}function J0(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,l){n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}}const Xp="!";function q0(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(l){const s=[];let a=0,u=0,d;for(let w=0;wu?d-u:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:y}}}function ev(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function tv(e){return{cache:J0(e.cacheSize),splitModifiers:q0(e),...G0(e)}}const nv=/\s+/;function rv(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(nv).map(l=>{const{modifiers:s,hasImportantModifier:a,baseClassName:u,maybePostfixModifierPosition:d}=n(l);let c=r(d?u.substring(0,d):u),p=!!d;if(!c){if(!d)return{isTailwindClass:!1,originalClassName:l};if(c=r(u),!c)return{isTailwindClass:!1,originalClassName:l};p=!1}const v=ev(s).join(":");return{isTailwindClass:!0,modifierId:a?v+Xp:v,classGroupId:c,originalClassName:l,hasPostfixModifier:p}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:s,classGroupId:a,hasPostfixModifier:u}=l,d=s+a;return i.has(d)?!1:(i.add(d),o(a,u).forEach(c=>i.add(s+c)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function ov(){let e=0,t,n,r="";for(;ec(d),e());return n=tv(u),r=n.cache.get,o=n.cache.set,i=s,s(a)}function s(a){const u=r(a);if(u)return u;const d=rv(a,n);return o(a,d),d}return function(){return i(ov.apply(null,arguments))}}function ce(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Jp=/^\[(?:([a-z-]+):)?(.+)\]$/i,lv=/^\d+\/\d+$/,sv=new Set(["px","full","screen"]),av=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uv=/\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$/,cv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,dv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Gt(e){return Yn(e)||sv.has(e)||lv.test(e)}function mn(e){return Vr(e,"length",xv)}function Yn(e){return!!e&&!Number.isNaN(Number(e))}function wi(e){return Vr(e,"number",Yn)}function ro(e){return!!e&&Number.isInteger(Number(e))}function pv(e){return e.endsWith("%")&&Yn(e.slice(0,-1))}function Z(e){return Jp.test(e)}function hn(e){return av.test(e)}const mv=new Set(["length","size","percentage"]);function hv(e){return Vr(e,mv,qp)}function gv(e){return Vr(e,"position",qp)}const vv=new Set(["image","url"]);function yv(e){return Vr(e,vv,Ev)}function wv(e){return Vr(e,"",Sv)}function oo(){return!0}function Vr(e,t,n){const r=Jp.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function xv(e){return uv.test(e)&&!cv.test(e)}function qp(){return!1}function Sv(e){return dv.test(e)}function Ev(e){return fv.test(e)}function Cv(){const e=ce("colors"),t=ce("spacing"),n=ce("blur"),r=ce("brightness"),o=ce("borderColor"),i=ce("borderRadius"),l=ce("borderSpacing"),s=ce("borderWidth"),a=ce("contrast"),u=ce("grayscale"),d=ce("hueRotate"),c=ce("invert"),p=ce("gap"),v=ce("gradientColorStops"),y=ce("gradientColorStopPositions"),w=ce("inset"),C=ce("margin"),m=ce("opacity"),f=ce("padding"),g=ce("saturate"),S=ce("scale"),N=ce("sepia"),P=ce("skew"),T=ce("space"),_=ce("translate"),F=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",Z,t],B=()=>[Z,t],X=()=>["",Gt,mn],z=()=>["auto",Yn,Z],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",Z],b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[Yn,wi],A=()=>[Yn,Z];return{cacheSize:500,separator:":",theme:{colors:[oo],spacing:[Gt,mn],blur:["none","",hn,Z],brightness:k(),borderColor:[e],borderRadius:["none","","full",hn,Z],borderSpacing:B(),borderWidth:X(),contrast:k(),grayscale:O(),hueRotate:A(),invert:O(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[pv,mn],inset:Y(),margin:Y(),opacity:k(),padding:B(),saturate:k(),scale:k(),sepia:O(),skew:A(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[hn]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...V(),Z]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ro,Z]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",ro,Z]}],"grid-cols":[{"grid-cols":[oo]}],"col-start-end":[{col:["auto",{span:["full",ro,Z]},Z]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[oo]}],"row-start-end":[{row:["auto",{span:[ro,Z]},Z]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[f]}],px:[{px:[f]}],py:[{py:[f]}],ps:[{ps:[f]}],pe:[{pe:[f]}],pt:[{pt:[f]}],pr:[{pr:[f]}],pb:[{pb:[f]}],pl:[{pl:[f]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,t]}],"min-w":[{"min-w":[Z,t,"min","max","fit"]}],"max-w":[{"max-w":[Z,t,"none","full","min","max","fit","prose",{screen:[hn]},hn]}],h:[{h:[Z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",hn,mn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wi]}],"font-family":[{font:[oo]}],"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",Z]}],"line-clamp":[{"line-clamp":["none",Yn,wi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Gt,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Gt,mn]}],"underline-offset":[{"underline-offset":["auto",Gt,Z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],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",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...V(),gv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",hv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yv]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:Q()}],"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:["",...Q()]}],"outline-offset":[{"outline-offset":[Gt,Z]}],"outline-w":[{outline:[Gt,mn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Gt,mn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",hn,wv]}],"shadow-color":[{shadow:[oo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",hn,Z]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[g]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ro,Z]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Gt,mn,wi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},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"],size:["w","h"],"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"],"line-clamp":["display","overflow"],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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const kv=iv(Cv);function ku(...e){return kv(Y0(e))}const Nv=W0("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),cr=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const l=r?Uo:"button";return E.jsx(l,{className:ku(Nv({variant:t,size:n,className:e})),ref:i,...o})});cr.displayName="Button";var{entries:em,setPrototypeOf:ud,isFrozen:bv,getPrototypeOf:Tv,getOwnPropertyDescriptor:Pv}=Object,{freeze:He,seal:xt,create:tm}=Object,{apply:ma,construct:ha}=typeof Reflect<"u"&&Reflect;He||(He=function(e){return e});xt||(xt=function(e){return e});ma||(ma=function(e,t,n){return e.apply(t,n)});ha||(ha=function(e,t){return new e(...t)});var xi=st(Array.prototype.forEach),cd=st(Array.prototype.pop),io=st(Array.prototype.push),Ii=st(String.prototype.toLowerCase),ps=st(String.prototype.toString),dd=st(String.prototype.match),lo=st(String.prototype.replace),Rv=st(String.prototype.indexOf),_v=st(String.prototype.trim),Et=st(Object.prototype.hasOwnProperty),et=st(RegExp.prototype.test),so=Av(TypeError);function st(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Ii;ud&&ud(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){let i=n(o);i!==o&&(bv(t)||(t[r]=i),o=i)}e[o]=!0}return e}function Lv(e){for(let t=0;t/gm),zv=xt(/\${[\w\W]*}/gm),Iv=xt(/^data-[\-\w.\u00B7-\uFFFF]/),jv=xt(/^aria-[\-\w]+$/),nm=xt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fv=xt(/^(?:\w+script|data):/i),Bv=xt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rm=xt(/^html$/i),Uv=xt(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i),gd=Object.freeze({__proto__:null,MUSTACHE_EXPR:Mv,ERB_EXPR:Dv,TMPLIT_EXPR:zv,DATA_ATTR:Iv,ARIA_ATTR:jv,IS_ALLOWED_URI:nm,IS_SCRIPT_OR_DATA:Fv,ATTR_WHITESPACE:Bv,DOCTYPE_NAME:rm,CUSTOM_ELEMENT:Uv}),Hv=function(){return typeof window>"u"?null:window},Vv=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function om(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hv(),t=x=>om(x);if(t.version="3.0.10",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e,r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:s,Element:a,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:p,trustedTypes:v}=e,y=a.prototype,w=Si(y,"cloneNode"),C=Si(y,"nextSibling"),m=Si(y,"childNodes"),f=Si(y,"parentNode");if(typeof l=="function"){let x=n.createElement("template");x.content&&x.content.ownerDocument&&(n=x.content.ownerDocument)}let g,S="",{implementation:N,createNodeIterator:P,createDocumentFragment:T,getElementsByTagName:_}=n,{importNode:F}=r,M={};t.isSupported=typeof em=="function"&&typeof f=="function"&&N&&N.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Y,ERB_EXPR:B,TMPLIT_EXPR:X,DATA_ATTR:z,ARIA_ATTR:V,IS_SCRIPT_OR_DATA:Q,ATTR_WHITESPACE:H,CUSTOM_ELEMENT:R}=gd,{IS_ALLOWED_URI:O}=gd,b=null,k=ee({},[...fd,...ms,...hs,...gs,...pd]),A=null,W=ee({},[...md,...vs,...hd,...Ei]),U=Object.seal(tm(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),J=null,G=null,ne=!0,le=!0,ke=!1,pe=!0,q=!1,ue=!1,Ae=!1,Lt=!1,we=!1,Fe=!1,un=!1,rr=!0,ct=!1,Il="user-content-",or=!0,Bt=!1,qe={},Ut=null,Ht=ee({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Gr=null,ti=ee({},["audio","video","img","source","image","track"]),ir=null,Kr=ee({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),lr="http://www.w3.org/1998/Math/MathML",cn="http://www.w3.org/2000/svg",Pe="http://www.w3.org/1999/xhtml",dn=Pe,sr=!1,K=null,Se=ee({},[lr,cn,Pe],ps),se=null,dt=["application/xhtml+xml","text/html"],ft="text/html",he=null,fn=null,sh=n.createElement("form"),Du=function(x){return x instanceof RegExp||x instanceof Function},jl=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(fn&&fn===x)){if((!x||typeof x!="object")&&(x={}),x=Bn(x),se=dt.indexOf(x.PARSER_MEDIA_TYPE)===-1?ft:x.PARSER_MEDIA_TYPE,he=se==="application/xhtml+xml"?ps:Ii,b=Et(x,"ALLOWED_TAGS")?ee({},x.ALLOWED_TAGS,he):k,A=Et(x,"ALLOWED_ATTR")?ee({},x.ALLOWED_ATTR,he):W,K=Et(x,"ALLOWED_NAMESPACES")?ee({},x.ALLOWED_NAMESPACES,ps):Se,ir=Et(x,"ADD_URI_SAFE_ATTR")?ee(Bn(Kr),x.ADD_URI_SAFE_ATTR,he):Kr,Gr=Et(x,"ADD_DATA_URI_TAGS")?ee(Bn(ti),x.ADD_DATA_URI_TAGS,he):ti,Ut=Et(x,"FORBID_CONTENTS")?ee({},x.FORBID_CONTENTS,he):Ht,J=Et(x,"FORBID_TAGS")?ee({},x.FORBID_TAGS,he):{},G=Et(x,"FORBID_ATTR")?ee({},x.FORBID_ATTR,he):{},qe=Et(x,"USE_PROFILES")?x.USE_PROFILES:!1,ne=x.ALLOW_ARIA_ATTR!==!1,le=x.ALLOW_DATA_ATTR!==!1,ke=x.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,q=x.SAFE_FOR_TEMPLATES||!1,ue=x.WHOLE_DOCUMENT||!1,we=x.RETURN_DOM||!1,Fe=x.RETURN_DOM_FRAGMENT||!1,un=x.RETURN_TRUSTED_TYPE||!1,Lt=x.FORCE_BODY||!1,rr=x.SANITIZE_DOM!==!1,ct=x.SANITIZE_NAMED_PROPS||!1,or=x.KEEP_CONTENT!==!1,Bt=x.IN_PLACE||!1,O=x.ALLOWED_URI_REGEXP||nm,dn=x.NAMESPACE||Pe,U=x.CUSTOM_ELEMENT_HANDLING||{},x.CUSTOM_ELEMENT_HANDLING&&Du(x.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=x.CUSTOM_ELEMENT_HANDLING.tagNameCheck),x.CUSTOM_ELEMENT_HANDLING&&Du(x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(U.allowCustomizedBuiltInElements=x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),q&&(le=!1),Fe&&(we=!0),qe&&(b=ee({},pd),A=[],qe.html===!0&&(ee(b,fd),ee(A,md)),qe.svg===!0&&(ee(b,ms),ee(A,vs),ee(A,Ei)),qe.svgFilters===!0&&(ee(b,hs),ee(A,vs),ee(A,Ei)),qe.mathMl===!0&&(ee(b,gs),ee(A,hd),ee(A,Ei))),x.ADD_TAGS&&(b===k&&(b=Bn(b)),ee(b,x.ADD_TAGS,he)),x.ADD_ATTR&&(A===W&&(A=Bn(A)),ee(A,x.ADD_ATTR,he)),x.ADD_URI_SAFE_ATTR&&ee(ir,x.ADD_URI_SAFE_ATTR,he),x.FORBID_CONTENTS&&(Ut===Ht&&(Ut=Bn(Ut)),ee(Ut,x.FORBID_CONTENTS,he)),or&&(b["#text"]=!0),ue&&ee(b,["html","head","body"]),b.table&&(ee(b,["tbody"]),delete J.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw so('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw so('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=x.TRUSTED_TYPES_POLICY,S=g.createHTML("")}else g===void 0&&(g=Vv(v,o)),g!==null&&typeof S=="string"&&(S=g.createHTML(""));He&&He(x),fn=x}},zu=ee({},["mi","mo","mn","ms","mtext"]),Iu=ee({},["foreignobject","desc","title","annotation-xml"]),ah=ee({},["title","style","font","a","script"]),ju=ee({},[...ms,...hs,...Ov]),Fu=ee({},[...gs,...$v]),uh=function(x){let I=f(x);(!I||!I.tagName)&&(I={namespaceURI:dn,tagName:"template"});let D=Ii(x.tagName),oe=Ii(I.tagName);return K[x.namespaceURI]?x.namespaceURI===cn?I.namespaceURI===Pe?D==="svg":I.namespaceURI===lr?D==="svg"&&(oe==="annotation-xml"||zu[oe]):!!ju[D]:x.namespaceURI===lr?I.namespaceURI===Pe?D==="math":I.namespaceURI===cn?D==="math"&&Iu[oe]:!!Fu[D]:x.namespaceURI===Pe?I.namespaceURI===cn&&!Iu[oe]||I.namespaceURI===lr&&!zu[oe]?!1:!Fu[D]&&(ah[D]||!ju[D]):!!(se==="application/xhtml+xml"&&K[x.namespaceURI]):!1},ar=function(x){io(t.removed,{element:x});try{x.parentNode.removeChild(x)}catch{x.remove()}},Fl=function(x,I){try{io(t.removed,{attribute:I.getAttributeNode(x),from:I})}catch{io(t.removed,{attribute:null,from:I})}if(I.removeAttribute(x),x==="is"&&!A[x])if(we||Fe)try{ar(I)}catch{}else try{I.setAttribute(x,"")}catch{}},Bu=function(x){let I=null,D=null;if(Lt)x=""+x;else{let Ee=dd(x,/^[\r\n\t ]+/);D=Ee&&Ee[0]}se==="application/xhtml+xml"&&dn===Pe&&(x=''+x+"");let oe=g?g.createHTML(x):x;if(dn===Pe)try{I=new p().parseFromString(oe,se)}catch{}if(!I||!I.documentElement){I=N.createDocument(dn,"template",null);try{I.documentElement.innerHTML=sr?S:oe}catch{}}let Le=I.body||I.documentElement;return x&&D&&Le.insertBefore(n.createTextNode(D),Le.childNodes[0]||null),dn===Pe?_.call(I,ue?"html":"body")[0]:ue?I.documentElement:Le},Uu=function(x){return P.call(x.ownerDocument||x,x,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION,null)},ch=function(x){return x instanceof c&&(typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||!(x.attributes instanceof d)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function")},Hu=function(x){return typeof s=="function"&&x instanceof s},Vt=function(x,I,D){M[x]&&xi(M[x],oe=>{oe.call(t,I,D,fn)})},Vu=function(x){let I=null;if(Vt("beforeSanitizeElements",x,null),ch(x))return ar(x),!0;let D=he(x.nodeName);if(Vt("uponSanitizeElement",x,{tagName:D,allowedTags:b}),x.hasChildNodes()&&!Hu(x.firstElementChild)&&et(/<[/\w]/g,x.innerHTML)&&et(/<[/\w]/g,x.textContent))return ar(x),!0;if(!b[D]||J[D]){if(!J[D]&&Yu(D)&&(U.tagNameCheck instanceof RegExp&&et(U.tagNameCheck,D)||U.tagNameCheck instanceof Function&&U.tagNameCheck(D)))return!1;if(or&&!Ut[D]){let oe=f(x)||x.parentNode,Le=m(x)||x.childNodes;if(Le&&oe){let Ee=Le.length;for(let Wt=Ee-1;Wt>=0;--Wt)oe.insertBefore(w(Le[Wt],!0),C(x))}}return ar(x),!0}return x instanceof a&&!uh(x)||(D==="noscript"||D==="noembed"||D==="noframes")&&et(/<\/no(script|embed|frames)/i,x.innerHTML)?(ar(x),!0):(q&&x.nodeType===3&&(I=x.textContent,xi([Y,B,X],oe=>{I=lo(I,oe," ")}),x.textContent!==I&&(io(t.removed,{element:x.cloneNode()}),x.textContent=I)),Vt("afterSanitizeElements",x,null),!1)},Wu=function(x,I,D){if(rr&&(I==="id"||I==="name")&&(D in n||D in sh))return!1;if(!(le&&!G[I]&&et(z,I))&&!(ne&&et(V,I))){if(!A[I]||G[I]){if(!(Yu(x)&&(U.tagNameCheck instanceof RegExp&&et(U.tagNameCheck,x)||U.tagNameCheck instanceof Function&&U.tagNameCheck(x))&&(U.attributeNameCheck instanceof RegExp&&et(U.attributeNameCheck,I)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(I))||I==="is"&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&et(U.tagNameCheck,D)||U.tagNameCheck instanceof Function&&U.tagNameCheck(D))))return!1}else if(!ir[I]&&!et(O,lo(D,H,""))&&!((I==="src"||I==="xlink:href"||I==="href")&&x!=="script"&&Rv(D,"data:")===0&&Gr[x])&&!(ke&&!et(Q,lo(D,H,"")))&&D)return!1}return!0},Yu=function(x){return x!=="annotation-xml"&&dd(x,R)},Gu=function(x){Vt("beforeSanitizeAttributes",x,null);let{attributes:I}=x;if(!I)return;let D={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:A},oe=I.length;for(;oe--;){let Le=I[oe],{name:Ee,namespaceURI:Wt,value:Yt}=Le,Ot=he(Ee),Ye=Ee==="value"?Yt:_v(Yt);if(D.attrName=Ot,D.attrValue=Ye,D.keepAttr=!0,D.forceKeepAttr=void 0,Vt("uponSanitizeAttribute",x,D),Ye=D.attrValue,D.forceKeepAttr||(Fl(Ee,x),!D.keepAttr))continue;if(!pe&&et(/\/>/i,Ye)){Fl(Ee,x);continue}q&&xi([Y,B,X],Qu=>{Ye=lo(Ye,Qu," ")});let Ku=he(x.nodeName);if(Wu(Ku,Ot,Ye)){if(ct&&(Ot==="id"||Ot==="name")&&(Fl(Ee,x),Ye=Il+Ye),g&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!Wt)switch(v.getAttributeType(Ku,Ot)){case"TrustedHTML":{Ye=g.createHTML(Ye);break}case"TrustedScriptURL":{Ye=g.createScriptURL(Ye);break}}try{Wt?x.setAttributeNS(Wt,Ee,Ye):x.setAttribute(Ee,Ye),cd(t.removed)}catch{}}}Vt("afterSanitizeAttributes",x,null)},dh=function x(I){let D=null,oe=Uu(I);for(Vt("beforeSanitizeShadowDOM",I,null);D=oe.nextNode();)Vt("uponSanitizeShadowNode",D,null),!Vu(D)&&(D.content instanceof i&&x(D.content),Gu(D));Vt("afterSanitizeShadowDOM",I,null)};return t.sanitize=function(x){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=null,oe=null,Le=null,Ee=null;if(sr=!x,sr&&(x=""),typeof x!="string"&&!Hu(x))if(typeof x.toString=="function"){if(x=x.toString(),typeof x!="string")throw so("dirty is not a string, aborting")}else throw so("toString is not a function");if(!t.isSupported)return x;if(Ae||jl(I),t.removed=[],typeof x=="string"&&(Bt=!1),Bt){if(x.nodeName){let Ot=he(x.nodeName);if(!b[Ot]||J[Ot])throw so("root node is forbidden and cannot be sanitized in-place")}}else if(x instanceof s)D=Bu(""),oe=D.ownerDocument.importNode(x,!0),oe.nodeType===1&&oe.nodeName==="BODY"||oe.nodeName==="HTML"?D=oe:D.appendChild(oe);else{if(!we&&!q&&!ue&&x.indexOf("<")===-1)return g&&un?g.createHTML(x):x;if(D=Bu(x),!D)return we?null:un?S:""}D&&Lt&&ar(D.firstChild);let Wt=Uu(Bt?x:D);for(;Le=Wt.nextNode();)Vu(Le)||(Le.content instanceof i&&dh(Le.content),Gu(Le));if(Bt)return x;if(we){if(Fe)for(Ee=T.call(D.ownerDocument);D.firstChild;)Ee.appendChild(D.firstChild);else Ee=D;return(A.shadowroot||A.shadowrootmode)&&(Ee=F.call(r,Ee,!0)),Ee}let Yt=ue?D.outerHTML:D.innerHTML;return ue&&b["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&et(rm,D.ownerDocument.doctype.name)&&(Yt=" +`+Yt),q&&xi([Y,B,X],Ot=>{Yt=lo(Yt,Ot," ")}),g&&un?g.createHTML(Yt):Yt},t.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};jl(x),Ae=!0},t.clearConfig=function(){fn=null,Ae=!1},t.isValidAttribute=function(x,I,D){fn||jl({});let oe=he(x),Le=he(I);return Wu(oe,Le,D)},t.addHook=function(x,I){typeof I=="function"&&(M[x]=M[x]||[],io(M[x],I))},t.removeHook=function(x){if(M[x])return cd(M[x])},t.removeHooks=function(x){M[x]&&(M[x]=[])},t.removeAllHooks=function(){M={}},t}var Wv=om(),Yv=e=>{switch(e){case"success":return Qv;case"info":return Zv;case"warning":return Xv;case"error":return Jv;default:return null}},Gv=Array(12).fill(0),Kv=({visible:e})=>$.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},$.createElement("div",{className:"sonner-spinner"},Gv.map((t,n)=>$.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Qv=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Xv=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Zv=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Jv=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),qv=()=>{let[e,t]=$.useState(!1);return $.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ga=1,ey=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ga++,i=this.toasts.find(s=>s.id===o),l=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...e,id:o,title:n}),{...s,...e,id:o,dismissible:l,title:n}):s):this.addToast({title:n,...r,dismissible:l,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(i=>{if(i&&typeof i.ok=="boolean"&&!i.ok){o=!1;let l=typeof t.error=="function"?t.error(`HTTP error! status: ${i.status}`):t.error,s=typeof t.description=="function"?t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:l,description:s})}else if(t.success!==void 0){o=!1;let l=typeof t.success=="function"?t.success(i):t.success,s=typeof t.description=="function"?t.description(i):t.description;this.create({id:n,type:"success",message:l,description:s})}}).catch(i=>{if(t.error!==void 0){o=!1;let l=typeof t.error=="function"?t.error(i):t.error,s=typeof t.description=="function"?t.description(i):t.description;this.create({id:n,type:"error",message:l,description:s})}}).finally(()=>{var i;o&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||ga++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Ct=new ey,ty=(e,t)=>{let n=(t==null?void 0:t.id)||ga++;return Ct.addToast({title:e,...t,id:n}),n},ny=ty,pt=Object.assign(ny,{success:Ct.success,info:Ct.info,warning:Ct.warning,error:Ct.error,custom:Ct.custom,message:Ct.message,promise:Ct.promise,dismiss:Ct.dismiss,loading:Ct.loading});function ry(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}ry(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} +`);function Ci(e){return e.label!==void 0&&typeof e.onClick=="function"}var oy=3,iy="32px",ly=4e3,sy=356,ay=14,uy=20,cy=200;function dy(...e){return e.filter(Boolean).join(" ")}var fy=e=>{var t,n,r,o,i,l,s;let{invert:a,toast:u,unstyled:d,interacting:c,setHeights:p,visibleToasts:v,heights:y,index:w,toasts:C,expanded:m,removeToast:f,closeButton:g,style:S,cancelButtonStyle:N,actionButtonStyle:P,className:T="",descriptionClassName:_="",duration:F,position:M,gap:Y,loadingIcon:B,expandByDefault:X,classNames:z,icons:V,closeButtonAriaLabel:Q="Close toast",pauseWhenPageIsHidden:H,cn:R}=e,[O,b]=$.useState(!1),[k,A]=$.useState(!1),[W,U]=$.useState(!1),[J,G]=$.useState(!1),[ne,le]=$.useState(0),[ke,pe]=$.useState(0),q=$.useRef(null),ue=$.useRef(null),Ae=w===0,Lt=w+1<=v,we=u.type,Fe=u.dismissible!==!1,un=u.className||"",rr=u.descriptionClassName||"",ct=$.useMemo(()=>y.findIndex(K=>K.toastId===u.id)||0,[y,u.id]),Il=$.useMemo(()=>{var K;return(K=u.closeButton)!=null?K:g},[u.closeButton,g]),or=$.useMemo(()=>u.duration||F||ly,[u.duration,F]),Bt=$.useRef(0),qe=$.useRef(0),Ut=$.useRef(0),Ht=$.useRef(null),[Gr,ti]=M.split("-"),ir=$.useMemo(()=>y.reduce((K,Se,se)=>se>=ct?K:K+Se.height,0),[y,ct]),Kr=qv(),lr=u.invert||a,cn=we==="loading";qe.current=$.useMemo(()=>ct*Y+ir,[ct,ir]),$.useEffect(()=>{b(!0)},[]),$.useLayoutEffect(()=>{if(!O)return;let K=ue.current,Se=K.style.height;K.style.height="auto";let se=K.getBoundingClientRect().height;K.style.height=Se,pe(se),p(dt=>dt.find(ft=>ft.toastId===u.id)?dt.map(ft=>ft.toastId===u.id?{...ft,height:se}:ft):[{toastId:u.id,height:se,position:u.position},...dt])},[O,u.title,u.description,p,u.id]);let Pe=$.useCallback(()=>{A(!0),le(qe.current),p(K=>K.filter(Se=>Se.toastId!==u.id)),setTimeout(()=>{f(u)},cy)},[u,f,p,qe]);$.useEffect(()=>{if(u.promise&&we==="loading"||u.duration===1/0||u.type==="loading")return;let K,Se=or;return m||c||H&&Kr?(()=>{if(Ut.current{var se;(se=u.onAutoClose)==null||se.call(u,u),Pe()},Se)),()=>clearTimeout(K)},[m,c,X,u,or,Pe,u.promise,we,H,Kr]),$.useEffect(()=>{let K=ue.current;if(K){let Se=K.getBoundingClientRect().height;return pe(Se),p(se=>[{toastId:u.id,height:Se,position:u.position},...se]),()=>p(se=>se.filter(dt=>dt.toastId!==u.id))}},[p,u.id]),$.useEffect(()=>{u.delete&&Pe()},[Pe,u.delete]);function dn(){return V!=null&&V.loading?$.createElement("div",{className:"sonner-loader","data-visible":we==="loading"},V.loading):B?$.createElement("div",{className:"sonner-loader","data-visible":we==="loading"},B):$.createElement(Kv,{visible:we==="loading"})}function sr(K){return{__html:Wv.sanitize(K)}}return $.createElement("li",{"aria-live":u.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:ue,className:R(T,un,z==null?void 0:z.toast,(t=u==null?void 0:u.classNames)==null?void 0:t.toast,z==null?void 0:z.default,z==null?void 0:z[we],(n=u==null?void 0:u.classNames)==null?void 0:n[we]),"data-sonner-toast":"","data-styled":!(u.jsx||u.unstyled||d),"data-mounted":O,"data-promise":!!u.promise,"data-removed":k,"data-visible":Lt,"data-y-position":Gr,"data-x-position":ti,"data-index":w,"data-front":Ae,"data-swiping":W,"data-dismissible":Fe,"data-type":we,"data-invert":lr,"data-swipe-out":J,"data-expanded":!!(m||X&&O),style:{"--index":w,"--toasts-before":w,"--z-index":C.length-w,"--offset":`${k?ne:qe.current}px`,"--initial-height":X?"auto":`${ke}px`,...S,...u.style},onPointerDown:K=>{cn||!Fe||(q.current=new Date,le(qe.current),K.target.setPointerCapture(K.pointerId),K.target.tagName!=="BUTTON"&&(U(!0),Ht.current={x:K.clientX,y:K.clientY}))},onPointerUp:()=>{var K,Se,se,dt;if(J||!Fe)return;Ht.current=null;let ft=Number(((K=ue.current)==null?void 0:K.style.getPropertyValue("--swipe-amount").replace("px",""))||0),he=new Date().getTime()-((Se=q.current)==null?void 0:Se.getTime()),fn=Math.abs(ft)/he;if(Math.abs(ft)>=uy||fn>.11){le(qe.current),(se=u.onDismiss)==null||se.call(u,u),Pe(),G(!0);return}(dt=ue.current)==null||dt.style.setProperty("--swipe-amount","0px"),U(!1)},onPointerMove:K=>{var Se;if(!Ht.current||!Fe)return;let se=K.clientY-Ht.current.y,dt=K.clientX-Ht.current.x,ft=(Gr==="top"?Math.min:Math.max)(0,se),he=K.pointerType==="touch"?10:2;Math.abs(ft)>he?(Se=ue.current)==null||Se.style.setProperty("--swipe-amount",`${se}px`):Math.abs(dt)>he&&(Ht.current=null)}},Il&&!u.jsx?$.createElement("button",{"aria-label":Q,"data-disabled":cn,"data-close-button":!0,onClick:cn||!Fe?()=>{}:()=>{var K;Pe(),(K=u.onDismiss)==null||K.call(u,u)},className:R(z==null?void 0:z.closeButton,(r=u==null?void 0:u.classNames)==null?void 0:r.closeButton)},$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},$.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),$.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,u.jsx||$.isValidElement(u.title)?u.jsx||u.title:$.createElement($.Fragment,null,we||u.icon||u.promise?$.createElement("div",{"data-icon":"",className:R(z==null?void 0:z.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||dn():null,u.type!=="loading"?u.icon||(V==null?void 0:V[we])||Yv(we):null):null,$.createElement("div",{"data-content":"",className:R(z==null?void 0:z.content)},$.createElement("div",{"data-title":"",className:R(z==null?void 0:z.title,(o=u==null?void 0:u.classNames)==null?void 0:o.title),dangerouslySetInnerHTML:sr(u.title)}),u.description?$.createElement("div",{"data-description":"",className:R(_,rr,z==null?void 0:z.description,(i=u==null?void 0:u.classNames)==null?void 0:i.description),dangerouslySetInnerHTML:sr(u.description)}):null),$.isValidElement(u.cancel)?u.cancel:u.cancel&&Ci(u.cancel)?$.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||N,onClick:K=>{Ci(u.cancel)&&Fe&&(Pe(),u.cancel.onClick(K))},className:R(z==null?void 0:z.cancelButton,(l=u==null?void 0:u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,$.isValidElement(u.action)?u.action:u.action&&Ci(u.action)?$.createElement("button",{"data-button":"",style:u.actionButtonStyle||P,onClick:K=>{Ci(u.action)&&(u.action.onClick(K),!K.defaultPrevented&&Pe())},className:R(z==null?void 0:z.actionButton,(s=u==null?void 0:u.classNames)==null?void 0:s.actionButton)},u.action.label):null))};function vd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var im=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:i,className:l,offset:s,theme:a="light",richColors:u,duration:d,style:c,visibleToasts:p=oy,toastOptions:v,dir:y=vd(),gap:w=ay,loadingIcon:C,icons:m,containerAriaLabel:f="Notifications",pauseWhenPageIsHidden:g,cn:S=dy}=e,[N,P]=$.useState([]),T=$.useMemo(()=>Array.from(new Set([n].concat(N.filter(k=>k.position).map(k=>k.position)))),[N,n]),[_,F]=$.useState([]),[M,Y]=$.useState(!1),[B,X]=$.useState(!1),[z,V]=$.useState(a!=="system"?a:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Q=$.useRef(null),H=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=$.useRef(null),O=$.useRef(!1),b=$.useCallback(k=>P(A=>A.filter(({id:W})=>W!==k.id)),[]);return $.useEffect(()=>Ct.subscribe(k=>{if(k.dismiss){P(A=>A.map(W=>W.id===k.id?{...W,delete:!0}:W));return}setTimeout(()=>{j0.flushSync(()=>{P(A=>{let W=A.findIndex(U=>U.id===k.id);return W!==-1?[...A.slice(0,W),{...A[W],...k},...A.slice(W+1)]:[k,...A]})})})}),[]),$.useEffect(()=>{if(a!=="system"){V(a);return}a==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:k})=>{V(k?"dark":"light")})},[a]),$.useEffect(()=>{N.length<=1&&Y(!1)},[N]),$.useEffect(()=>{let k=A=>{var W,U;r.every(J=>A[J]||A.code===J)&&(Y(!0),(W=Q.current)==null||W.focus()),A.code==="Escape"&&(document.activeElement===Q.current||(U=Q.current)!=null&&U.contains(document.activeElement))&&Y(!1)};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[r]),$.useEffect(()=>{if(Q.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,O.current=!1)}},[Q.current]),N.length?$.createElement("section",{"aria-label":`${f} ${H}`,tabIndex:-1},T.map((k,A)=>{var W;let[U,J]=k.split("-");return $.createElement("ol",{key:k,dir:y==="auto"?vd():y,tabIndex:-1,ref:Q,className:l,"data-sonner-toaster":!0,"data-theme":z,"data-rich-colors":u,"data-y-position":U,"data-x-position":J,style:{"--front-toast-height":`${((W=_[0])==null?void 0:W.height)||0}px`,"--offset":typeof s=="number"?`${s}px`:s||iy,"--width":`${sy}px`,"--gap":`${w}px`,...c},onBlur:G=>{O.current&&!G.currentTarget.contains(G.relatedTarget)&&(O.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||O.current||(O.current=!0,R.current=G.relatedTarget)},onMouseEnter:()=>Y(!0),onMouseMove:()=>Y(!0),onMouseLeave:()=>{B||Y(!1)},onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||X(!0)},onPointerUp:()=>X(!1)},N.filter(G=>!G.position&&A===0||G.position===k).map((G,ne)=>{var le,ke;return $.createElement(fy,{key:G.id,icons:m,index:ne,toast:G,duration:(le=v==null?void 0:v.duration)!=null?le:d,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:t,visibleToasts:p,closeButton:(ke=v==null?void 0:v.closeButton)!=null?ke:i,interacting:B,position:k,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:b,toasts:N.filter(pe=>pe.position==G.position),heights:_.filter(pe=>pe.position==G.position),setHeights:F,expandByDefault:o,gap:w,loadingIcon:C,expanded:M,pauseWhenPageIsHidden:g,cn:S})}))})):null};/*! Bundled license information: + +dompurify/dist/purify.es.mjs: + (*! @license DOMPurify 3.0.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.10/LICENSE *) +*/function py({image:e,setImage:t,setImageUploaded:n,imageUploaded:r}){const o=h.useRef(null),[i,l]=h.useState([]);h.useEffect(()=>{const y=localStorage.getItem("uploadedImage");y&&(t(y),p(y))},[]);const s=y=>{const w=y.target.files[0],C=new FileReader;C.onloadend=()=>{const m=C.result;t(m),localStorage.setItem("uploadedImage",m),p(m)},C.readAsDataURL(w),n(!0),pt.success("Image uploaded successfully",{action:{text:"Close",onClick:()=>{pt.dismiss()}}})},a=y=>{y.preventDefault()},u=y=>{if(y.preventDefault(),!y.dataTransfer.files[0].type.includes("image")){pt.error("File type not supported",{action:{label:"Close",onClick:()=>{pt.dismiss()}}});return}const w=y.dataTransfer.files[0],C=new FileReader;C.onloadend=()=>{const m=C.result;t(m),localStorage.setItem("uploadedImage",m),p(m)},C.readAsDataURL(w),n(!0)},d=()=>{o.current.click()},c=()=>{t(null),l([]),localStorage.removeItem("uploadedImage")};h.useEffect(()=>{c()},[e]);const p=async y=>{try{const w=new Image;w.src=y,w.onload=()=>{const C=document.createElement("canvas");C.width=w.width,C.height=w.height;const m=C.getContext("2d");m.drawImage(w,0,0);const f=m.getImageData(0,0,C.width,C.height),g={};for(let N=0;NP.count-N.count).slice(0,12).map(([N,{r:P,g:T,b:_}])=>({hex:N,r:P,g:T,b:_}));l(S)}}catch(w){console.error("Error extracting colors:",w)}},v=(y,w,C)=>"#"+((1<<24)+(y<<16)+(w<<8)+C).toString(16).slice(1);return E.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-gray-100 dark:bg-gray-900",children:[E.jsx(im,{}),E.jsxs("div",{className:"max-w-4xl w-full p-4",children:[E.jsx("div",{className:"w-full aspect-video bg-gray-200 dark:bg-gray-800 rounded-lg overflow-hidden flex items-center justify-center cursor-pointer",onDragOver:a,onDrop:u,onClick:d,style:{border:r?"none":"3px dashed #ccc"},children:e?E.jsx("img",{src:e,alt:"Uploaded Image",className:"w-full h-full object-contain"}):E.jsx("div",{className:"text-gray-500 dark:text-gray-400 text-lg",children:"Click or Drop an Image to upload it"})}),E.jsx("input",{type:"file",accept:"image/jpeg,image/jpg,image/png,image/webp",ref:o,onChange:s,className:"hidden",limit:"1"})]})]})}function lm(e,[t,n]){return Math.min(n,Math.max(t,e))}function kr(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function sm(e,t=[]){let n=[];function r(i,l){const s=h.createContext(l),a=n.length;n=[...n,l];function u(c){const{scope:p,children:v,...y}=c,w=(p==null?void 0:p[e][a])||s,C=h.useMemo(()=>y,Object.values(y));return h.createElement(w.Provider,{value:C},v)}function d(c,p){const v=(p==null?void 0:p[e][a])||s,y=h.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(l=>h.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,my(o,...t)]}function my(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function am(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function hy({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=gy({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=am(n),a=h.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else o(u)},[i,e,o,s]);return[l,a]}function gy({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=am(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const vy=h.createContext(void 0);function yy(e){const t=h.useContext(vy);return e||t||"ltr"}function wy(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const xy=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{};function Sy(e){const[t,n]=h.useState(void 0);return xy(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Ey=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],_l=Ey.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Uo:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(s,Je({},l,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Cy(e){const t=e+"CollectionProvider",[n,r]=sm(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=v=>{const{scope:y,children:w}=v,C=$.useRef(null),m=$.useRef(new Map).current;return $.createElement(o,{scope:y,itemMap:m,collectionRef:C},w)},s=e+"CollectionSlot",a=$.forwardRef((v,y)=>{const{scope:w,children:C}=v,m=i(s,w),f=Ln(y,m.collectionRef);return $.createElement(Uo,{ref:f},C)}),u=e+"CollectionItemSlot",d="data-radix-collection-item",c=$.forwardRef((v,y)=>{const{scope:w,children:C,...m}=v,f=$.useRef(null),g=Ln(y,f),S=i(u,w);return $.useEffect(()=>(S.itemMap.set(f,{ref:f,...m}),()=>void S.itemMap.delete(f))),$.createElement(Uo,{[d]:"",ref:g},C)});function p(v){const y=i(e+"CollectionConsumer",v);return $.useCallback(()=>{const C=y.collectionRef.current;if(!C)return[];const m=Array.from(C.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((S,N)=>m.indexOf(S.ref.current)-m.indexOf(N.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:l,Slot:a,ItemSlot:c},p,r]}const um=["PageUp","PageDown"],cm=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dm={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Zo="Slider",[va,ky,Ny]=Cy(Zo),[fm,Rx]=sm(Zo,[Ny]),[by,Al]=fm(Zo),Ty=h.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:l="horizontal",disabled:s=!1,minStepsBetweenThumbs:a=0,defaultValue:u=[r],value:d,onValueChange:c=()=>{},onValueCommit:p=()=>{},inverted:v=!1,...y}=e,[w,C]=h.useState(null),m=Ln(t,z=>C(z)),f=h.useRef(new Set),g=h.useRef(0),S=l==="horizontal",N=w?!!w.closest("form"):!0,P=S?Py:Ry,[T=[],_]=hy({prop:d,defaultProp:u,onChange:z=>{var V;(V=[...f.current][g.current])===null||V===void 0||V.focus(),c(z)}}),F=h.useRef(T);function M(z){const V=Iy(T,z);X(z,V)}function Y(z){X(z,g.current)}function B(){const z=F.current[g.current];T[g.current]!==z&&p(T)}function X(z,V,{commit:Q}={commit:!1}){const H=Uy(i),R=Hy(Math.round((z-r)/i)*i+r,H),O=lm(R,[r,o]);_((b=[])=>{const k=Dy(b,O,V);if(By(k,a*i)){g.current=k.indexOf(O);const A=String(k)!==String(b);return A&&Q&&p(k),A?k:b}else return b})}return h.createElement(by,{scope:e.__scopeSlider,disabled:s,min:r,max:o,valueIndexToChangeRef:g,thumbs:f.current,values:T,orientation:l},h.createElement(va.Provider,{scope:e.__scopeSlider},h.createElement(va.Slot,{scope:e.__scopeSlider},h.createElement(P,Je({"aria-disabled":s,"data-disabled":s?"":void 0},y,{ref:m,onPointerDown:kr(y.onPointerDown,()=>{s||(F.current=T)}),min:r,max:o,inverted:v,onSlideStart:s?void 0:M,onSlideMove:s?void 0:Y,onSlideEnd:s?void 0:B,onHomeKeyDown:()=>!s&&X(r,0,{commit:!0}),onEndKeyDown:()=>!s&&X(o,T.length-1,{commit:!0}),onStepKeyDown:({event:z,direction:V})=>{if(!s){const R=um.includes(z.key)||z.shiftKey&&cm.includes(z.key)?10:1,O=g.current,b=T[O],k=i*R*V;X(b+k,O,{commit:!0})}}})))),N&&T.map((z,V)=>h.createElement(My,{key:V,name:n?n+(T.length>1?"[]":""):void 0,value:z})))}),[pm,mm]=fm(Zo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Py=h.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:l,onSlideMove:s,onSlideEnd:a,onStepKeyDown:u,...d}=e,[c,p]=h.useState(null),v=Ln(t,g=>p(g)),y=h.useRef(),w=yy(o),C=w==="ltr",m=C&&!i||!C&&i;function f(g){const S=y.current||c.getBoundingClientRect(),N=[0,S.width],T=Nu(N,m?[n,r]:[r,n]);return y.current=S,T(g-S.left)}return h.createElement(pm,{scope:e.__scopeSlider,startEdge:m?"left":"right",endEdge:m?"right":"left",direction:m?1:-1,size:"width"},h.createElement(hm,Je({dir:w,"data-orientation":"horizontal"},d,{ref:v,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:g=>{const S=f(g.clientX);l==null||l(S)},onSlideMove:g=>{const S=f(g.clientX);s==null||s(S)},onSlideEnd:()=>{y.current=void 0,a==null||a()},onStepKeyDown:g=>{const N=dm[m?"from-left":"from-right"].includes(g.key);u==null||u({event:g,direction:N?-1:1})}})))}),Ry=h.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:l,onSlideEnd:s,onStepKeyDown:a,...u}=e,d=h.useRef(null),c=Ln(t,d),p=h.useRef(),v=!o;function y(w){const C=p.current||d.current.getBoundingClientRect(),m=[0,C.height],g=Nu(m,v?[r,n]:[n,r]);return p.current=C,g(w-C.top)}return h.createElement(pm,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1},h.createElement(hm,Je({"data-orientation":"vertical"},u,{ref:c,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:w=>{const C=y(w.clientY);i==null||i(C)},onSlideMove:w=>{const C=y(w.clientY);l==null||l(C)},onSlideEnd:()=>{p.current=void 0,s==null||s()},onStepKeyDown:w=>{const m=dm[v?"from-bottom":"from-top"].includes(w.key);a==null||a({event:w,direction:m?-1:1})}})))}),hm=h.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:l,onEndKeyDown:s,onStepKeyDown:a,...u}=e,d=Al(Zo,n);return h.createElement(_l.span,Je({},u,{ref:t,onKeyDown:kr(e.onKeyDown,c=>{c.key==="Home"?(l(c),c.preventDefault()):c.key==="End"?(s(c),c.preventDefault()):um.concat(cm).includes(c.key)&&(a(c),c.preventDefault())}),onPointerDown:kr(e.onPointerDown,c=>{const p=c.target;p.setPointerCapture(c.pointerId),c.preventDefault(),d.thumbs.has(p)?p.focus():r(c)}),onPointerMove:kr(e.onPointerMove,c=>{c.target.hasPointerCapture(c.pointerId)&&o(c)}),onPointerUp:kr(e.onPointerUp,c=>{const p=c.target;p.hasPointerCapture(c.pointerId)&&(p.releasePointerCapture(c.pointerId),i(c))})}))}),_y="SliderTrack",Ay=h.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Al(_y,n);return h.createElement(_l.span,Je({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))}),yd="SliderRange",Ly=h.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Al(yd,n),i=mm(yd,n),l=h.useRef(null),s=Ln(t,l),a=o.values.length,u=o.values.map(p=>gm(p,o.min,o.max)),d=a>1?Math.min(...u):0,c=100-Math.max(...u);return h.createElement(_l.span,Je({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:s,style:{...e.style,[i.startEdge]:d+"%",[i.endEdge]:c+"%"}}))}),wd="SliderThumb",Oy=h.forwardRef((e,t)=>{const n=ky(e.__scopeSlider),[r,o]=h.useState(null),i=Ln(t,s=>o(s)),l=h.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return h.createElement($y,Je({},e,{ref:i,index:l}))}),$y=h.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,i=Al(wd,n),l=mm(wd,n),[s,a]=h.useState(null),u=Ln(t,C=>a(C)),d=Sy(s),c=i.values[r],p=c===void 0?0:gm(c,i.min,i.max),v=zy(r,i.values.length),y=d==null?void 0:d[l.size],w=y?jy(y,p,l.direction):0;return h.useEffect(()=>{if(s)return i.thumbs.add(s),()=>{i.thumbs.delete(s)}},[s,i.thumbs]),h.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${p}% + ${w}px)`}},h.createElement(va.ItemSlot,{scope:e.__scopeSlider},h.createElement(_l.span,Je({role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":i.min,"aria-valuenow":c,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0},o,{ref:u,style:c===void 0?{display:"none"}:e.style,onFocus:kr(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})}))))}),My=e=>{const{value:t,...n}=e,r=h.useRef(null),o=wy(t);return h.useEffect(()=>{const i=r.current,l=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&a){const u=new Event("input",{bubbles:!0});a.call(i,t),i.dispatchEvent(u)}},[o,t]),h.createElement("input",Je({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function Dy(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function gm(e,t,n){const i=100/(n-t)*(e-t);return lm(i,[0,100])}function zy(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Iy(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function jy(e,t,n){const r=e/2,i=Nu([0,50],[0,r]);return(r-i(t)*n)*n}function Fy(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function By(e,t){if(t>0){const n=Fy(e);return Math.min(...n)>=t}return!0}function Nu(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Uy(e){return(String(e).split(".")[1]||"").length}function Hy(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const vm=Ty,Vy=Ay,Wy=Ly,Yy=Oy,Un=h.forwardRef(({className:e,...t},n)=>E.jsxs(vm,{ref:n,className:ku("relative flex w-full touch-none select-none items-center",e),...t,children:[E.jsx(Vy,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:E.jsx(Wy,{className:"absolute h-full bg-primary"})}),E.jsx(Yy,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Un.displayName=vm.displayName;function Xt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Gy(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ym(...e){return t=>e.forEach(n=>Gy(n,t))}function Jo(...e){return h.useCallback(ym(...e),e)}function Ky(e,t=[]){let n=[];function r(i,l){const s=h.createContext(l),a=n.length;n=[...n,l];function u(c){const{scope:p,children:v,...y}=c,w=(p==null?void 0:p[e][a])||s,C=h.useMemo(()=>y,Object.values(y));return E.jsx(w.Provider,{value:C,children:v})}function d(c,p){const v=(p==null?void 0:p[e][a])||s,y=h.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(l=>h.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,Qy(o,...t)]}function Qy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var wm=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(Xy);if(i){const l=i.props.children,s=o.map(a=>a===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:a);return E.jsx(ya,{...r,ref:t,children:h.isValidElement(l)?h.cloneElement(l,void 0,s):null})}return E.jsx(ya,{...r,ref:t,children:n})});wm.displayName="Slot";var ya=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=Jy(n);return h.cloneElement(n,{...Zy(r,n.props),ref:t?ym(t,o):o})}return h.Children.count(n)>1?h.Children.only(null):null});ya.displayName="SlotClone";var xm=({children:e})=>E.jsx(E.Fragment,{children:e});function Xy(e){return h.isValidElement(e)&&e.type===xm}function Zy(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Jy(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],bu=qy.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?wm:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function e1(e,t){e&&Xo.flushSync(()=>e.dispatchEvent(t))}function qo(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function t1(e,t=globalThis==null?void 0:globalThis.document){const n=qo(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var n1="DismissableLayer",wa="dismissableLayer.update",r1="dismissableLayer.pointerDownOutside",o1="dismissableLayer.focusOutside",xd,Sm=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Em=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...a}=e,u=h.useContext(Sm),[d,c]=h.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=h.useState({}),y=Jo(t,T=>c(T)),w=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=w.indexOf(C),f=d?w.indexOf(d):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,S=f>=m,N=s1(T=>{const _=T.target,F=[...u.branches].some(M=>M.contains(_));!S||F||(o==null||o(T),l==null||l(T),T.defaultPrevented||s==null||s())},p),P=a1(T=>{const _=T.target;[...u.branches].some(M=>M.contains(_))||(i==null||i(T),l==null||l(T),T.defaultPrevented||s==null||s())},p);return t1(T=>{f===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&s&&(T.preventDefault(),s()))},p),h.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xd=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Sd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=xd)}},[d,p,n,u]),h.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Sd())},[d,u]),h.useEffect(()=>{const T=()=>v({});return document.addEventListener(wa,T),()=>document.removeEventListener(wa,T)},[]),E.jsx(bu.div,{...a,ref:y,style:{pointerEvents:g?S?"auto":"none":void 0,...e.style},onFocusCapture:Xt(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Xt(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Xt(e.onPointerDownCapture,N.onPointerDownCapture)})});Em.displayName=n1;var i1="DismissableLayerBranch",l1=h.forwardRef((e,t)=>{const n=h.useContext(Sm),r=h.useRef(null),o=Jo(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),E.jsx(bu.div,{...e,ref:o})});l1.displayName=i1;function s1(e,t=globalThis==null?void 0:globalThis.document){const n=qo(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let a=function(){Cm(r1,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function a1(e,t=globalThis==null?void 0:globalThis.document){const n=qo(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&Cm(o1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Sd(){const e=new CustomEvent(wa);document.dispatchEvent(e)}function Cm(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?e1(o,i):o.dispatchEvent(i)}var xa=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},u1=Ph.useId||(()=>{}),c1=0;function d1(e){const[t,n]=h.useState(u1());return xa(()=>{n(r=>r??String(c1++))},[e]),t?`radix-${t}`:""}const f1=["top","right","bottom","left"],zt=Math.min,nt=Math.max,cl=Math.round,ki=Math.floor,On=e=>({x:e,y:e}),p1={left:"right",right:"left",bottom:"top",top:"bottom"},m1={start:"end",end:"start"};function Sa(e,t,n){return nt(e,zt(t,n))}function on(e,t){return typeof e=="function"?e(t):e}function ln(e){return e.split("-")[0]}function Wr(e){return e.split("-")[1]}function Tu(e){return e==="x"?"y":"x"}function Pu(e){return e==="y"?"height":"width"}function $n(e){return["top","bottom"].includes(ln(e))?"y":"x"}function Ru(e){return Tu($n(e))}function h1(e,t,n){n===void 0&&(n=!1);const r=Wr(e),o=Ru(e),i=Pu(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=dl(l)),[l,dl(l)]}function g1(e){const t=dl(e);return[Ea(e),t,Ea(t)]}function Ea(e){return e.replace(/start|end/g,t=>m1[t])}function v1(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function y1(e,t,n,r){const o=Wr(e);let i=v1(ln(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Ea)))),i}function dl(e){return e.replace(/left|right|bottom|top/g,t=>p1[t])}function w1(e){return{top:0,right:0,bottom:0,left:0,...e}}function km(e){return typeof e!="number"?w1(e):{top:e,right:e,bottom:e,left:e}}function fl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ed(e,t,n){let{reference:r,floating:o}=e;const i=$n(t),l=Ru(t),s=Pu(l),a=ln(t),u=i==="y",d=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let v;switch(a){case"top":v={x:d,y:r.y-o.height};break;case"bottom":v={x:d,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:c};break;case"left":v={x:r.x-o.width,y:c};break;default:v={x:r.x,y:r.y}}switch(Wr(t)){case"start":v[l]-=p*(n&&u?-1:1);break;case"end":v[l]+=p*(n&&u?-1:1);break}return v}const x1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=Ed(u,r,a),p=r,v={},y=0;for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:u,padding:d=0}=on(e,t)||{};if(u==null)return{};const c=km(d),p={x:n,y:r},v=Ru(o),y=Pu(v),w=await l.getDimensions(u),C=v==="y",m=C?"top":"left",f=C?"bottom":"right",g=C?"clientHeight":"clientWidth",S=i.reference[y]+i.reference[v]-p[v]-i.floating[y],N=p[v]-i.reference[v],P=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let T=P?P[g]:0;(!T||!await(l.isElement==null?void 0:l.isElement(P)))&&(T=s.floating[g]||i.floating[y]);const _=S/2-N/2,F=T/2-w[y]/2-1,M=zt(c[m],F),Y=zt(c[f],F),B=M,X=T-w[y]-Y,z=T/2-w[y]/2+_,V=Sa(B,z,X),Q=!a.arrow&&Wr(o)!=null&&z!==V&&i.reference[y]/2-(zz<=0)){var Y,B;const z=(((Y=i.flip)==null?void 0:Y.index)||0)+1,V=T[z];if(V)return{data:{index:z,overflows:M},reset:{placement:V}};let Q=(B=M.filter(H=>H.overflows[0]<=0).sort((H,R)=>H.overflows[1]-R.overflows[1])[0])==null?void 0:B.placement;if(!Q)switch(v){case"bestFit":{var X;const H=(X=M.filter(R=>{if(P){const O=$n(R.placement);return O===f||O==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(O=>O>0).reduce((O,b)=>O+b,0)]).sort((R,O)=>R[1]-O[1])[0])==null?void 0:X[0];H&&(Q=H);break}case"initialPlacement":Q=s;break}if(o!==Q)return{reset:{placement:Q}}}return{}}}};function Cd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kd(e){return f1.some(t=>e[t]>=0)}const C1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=on(e,t);switch(r){case"referenceHidden":{const i=await Ho(t,{...o,elementContext:"reference"}),l=Cd(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:kd(l)}}}case"escaped":{const i=await Ho(t,{...o,altBoundary:!0}),l=Cd(i,n.floating);return{data:{escapedOffsets:l,escaped:kd(l)}}}default:return{}}}}};async function k1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=ln(n),s=Wr(n),a=$n(n)==="y",u=["left","top"].includes(l)?-1:1,d=i&&a?-1:1,c=on(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:y}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&typeof y=="number"&&(v=s==="end"?y*-1:y),a?{x:v*d,y:p*u}:{x:p*u,y:v*d}}const N1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,a=await k1(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},b1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:C=>{let{x:m,y:f}=C;return{x:m,y:f}}},...a}=on(e,t),u={x:n,y:r},d=await Ho(t,a),c=$n(ln(o)),p=Tu(c);let v=u[p],y=u[c];if(i){const C=p==="y"?"top":"left",m=p==="y"?"bottom":"right",f=v+d[C],g=v-d[m];v=Sa(f,v,g)}if(l){const C=c==="y"?"top":"left",m=c==="y"?"bottom":"right",f=y+d[C],g=y-d[m];y=Sa(f,y,g)}const w=s.fn({...t,[p]:v,[c]:y});return{...w,data:{x:w.x-n,y:w.y-r}}}}},T1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=on(e,t),d={x:n,y:r},c=$n(o),p=Tu(c);let v=d[p],y=d[c];const w=on(s,t),C=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(a){const g=p==="y"?"height":"width",S=i.reference[p]-i.floating[g]+C.mainAxis,N=i.reference[p]+i.reference[g]-C.mainAxis;vN&&(v=N)}if(u){var m,f;const g=p==="y"?"width":"height",S=["top","left"].includes(ln(o)),N=i.reference[c]-i.floating[g]+(S&&((m=l.offset)==null?void 0:m[c])||0)+(S?0:C.crossAxis),P=i.reference[c]+i.reference[g]+(S?0:((f=l.offset)==null?void 0:f[c])||0)-(S?C.crossAxis:0);yP&&(y=P)}return{[p]:v,[c]:y}}}},P1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...s}=on(e,t),a=await Ho(t,s),u=ln(n),d=Wr(n),c=$n(n)==="y",{width:p,height:v}=r.floating;let y,w;u==="top"||u==="bottom"?(y=u,w=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(w=u,y=d==="end"?"top":"bottom");const C=v-a.top-a.bottom,m=p-a.left-a.right,f=zt(v-a[y],C),g=zt(p-a[w],m),S=!t.middlewareData.shift;let N=f,P=g;if(c?P=d||S?zt(g,m):m:N=d||S?zt(f,C):C,S&&!d){const _=nt(a.left,0),F=nt(a.right,0),M=nt(a.top,0),Y=nt(a.bottom,0);c?P=p-2*(_!==0||F!==0?_+F:nt(a.left,a.right)):N=v-2*(M!==0||Y!==0?M+Y:nt(a.top,a.bottom))}await l({...t,availableWidth:P,availableHeight:N});const T=await o.getDimensions(i.floating);return p!==T.width||v!==T.height?{reset:{rects:!0}}:{}}}};function Yr(e){return Nm(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(Nm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Nm(e){return e instanceof Node||e instanceof it(e).Node}function _t(e){return e instanceof Element||e instanceof it(e).Element}function Ft(e){return e instanceof HTMLElement||e instanceof it(e).HTMLElement}function Nd(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof it(e).ShadowRoot}function ei(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=At(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function R1(e){return["table","td","th"].includes(Yr(e))}function Ll(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function _u(e){const t=Au(),n=_t(e)?At(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function _1(e){let t=Mn(e);for(;Ft(t)&&!jr(t);){if(_u(t))return t;if(Ll(t))return null;t=Mn(t)}return null}function Au(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jr(e){return["html","body","#document"].includes(Yr(e))}function At(e){return it(e).getComputedStyle(e)}function Ol(e){return _t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mn(e){if(Yr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nd(e)&&e.host||an(e);return Nd(t)?t.host:t}function bm(e){const t=Mn(e);return jr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ft(t)&&ei(t)?t:bm(t)}function Vo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=bm(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=it(o);return i?t.concat(l,l.visualViewport||[],ei(o)?o:[],l.frameElement&&n?Vo(l.frameElement):[]):t.concat(o,Vo(o,[],n))}function Tm(e){const t=At(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ft(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=cl(n)!==i||cl(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Lu(e){return _t(e)?e:e.contextElement}function Ar(e){const t=Lu(e);if(!Ft(t))return On(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tm(t);let l=(i?cl(n.width):n.width)/r,s=(i?cl(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const A1=On(0);function Pm(e){const t=it(e);return!Au()||!t.visualViewport?A1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function L1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==it(e)?!1:t}function er(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Lu(e);let l=On(1);t&&(r?_t(r)&&(l=Ar(r)):l=Ar(e));const s=L1(i,n,r)?Pm(i):On(0);let a=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,d=o.width/l.x,c=o.height/l.y;if(i){const p=it(i),v=r&&_t(r)?it(r):r;let y=p,w=y.frameElement;for(;w&&r&&v!==y;){const C=Ar(w),m=w.getBoundingClientRect(),f=At(w),g=m.left+(w.clientLeft+parseFloat(f.paddingLeft))*C.x,S=m.top+(w.clientTop+parseFloat(f.paddingTop))*C.y;a*=C.x,u*=C.y,d*=C.x,c*=C.y,a+=g,u+=S,y=it(w),w=y.frameElement}}return fl({width:d,height:c,x:a,y:u})}function O1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=an(r),s=t?Ll(t.floating):!1;if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},u=On(1);const d=On(0),c=Ft(r);if((c||!c&&!i)&&((Yr(r)!=="body"||ei(l))&&(a=Ol(r)),Ft(r))){const p=er(r);u=Ar(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x,y:n.y*u.y-a.scrollTop*u.y+d.y}}function $1(e){return Array.from(e.getClientRects())}function Rm(e){return er(an(e)).left+Ol(e).scrollLeft}function M1(e){const t=an(e),n=Ol(e),r=e.ownerDocument.body,o=nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Rm(e);const s=-n.scrollTop;return At(r).direction==="rtl"&&(l+=nt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function D1(e,t){const n=it(e),r=an(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const u=Au();(!u||u&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}function z1(e,t){const n=er(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ft(e)?Ar(e):On(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:l,height:s,x:a,y:u}}function bd(e,t,n){let r;if(t==="viewport")r=D1(e,n);else if(t==="document")r=M1(an(e));else if(_t(t))r=z1(t,n);else{const o=Pm(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return fl(r)}function _m(e,t){const n=Mn(e);return n===t||!_t(n)||jr(n)?!1:At(n).position==="fixed"||_m(n,t)}function I1(e,t){const n=t.get(e);if(n)return n;let r=Vo(e,[],!1).filter(s=>_t(s)&&Yr(s)!=="body"),o=null;const i=At(e).position==="fixed";let l=i?Mn(e):e;for(;_t(l)&&!jr(l);){const s=At(l),a=_u(l);!a&&s.position==="fixed"&&(o=null),(i?!a&&!o:!a&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ei(l)&&!a&&_m(e,l))?r=r.filter(d=>d!==l):o=s,l=Mn(l)}return t.set(e,r),r}function j1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?Ll(t)?[]:I1(t,this._c):[].concat(n),r],s=l[0],a=l.reduce((u,d)=>{const c=bd(t,d,o);return u.top=nt(c.top,u.top),u.right=zt(c.right,u.right),u.bottom=zt(c.bottom,u.bottom),u.left=nt(c.left,u.left),u},bd(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function F1(e){const{width:t,height:n}=Tm(e);return{width:t,height:n}}function B1(e,t,n){const r=Ft(t),o=an(t),i=n==="fixed",l=er(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=On(0);if(r||!r&&!i)if((Yr(t)!=="body"||ei(o))&&(s=Ol(t)),r){const c=er(t,!0,i,t);a.x=c.x+t.clientLeft,a.y=c.y+t.clientTop}else o&&(a.x=Rm(o));const u=l.left+s.scrollLeft-a.x,d=l.top+s.scrollTop-a.y;return{x:u,y:d,width:l.width,height:l.height}}function ys(e){return At(e).position==="static"}function Td(e,t){return!Ft(e)||At(e).position==="fixed"?null:t?t(e):e.offsetParent}function Am(e,t){const n=it(e);if(Ll(e))return n;if(!Ft(e)){let o=Mn(e);for(;o&&!jr(o);){if(_t(o)&&!ys(o))return o;o=Mn(o)}return n}let r=Td(e,t);for(;r&&R1(r)&&ys(r);)r=Td(r,t);return r&&jr(r)&&ys(r)&&!_u(r)?n:r||_1(e)||n}const U1=async function(e){const t=this.getOffsetParent||Am,n=this.getDimensions,r=await n(e.floating);return{reference:B1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function H1(e){return At(e).direction==="rtl"}const V1={convertOffsetParentRelativeRectToViewportRelativeRect:O1,getDocumentElement:an,getClippingRect:j1,getOffsetParent:Am,getElementRects:U1,getClientRects:$1,getDimensions:F1,getScale:Ar,isElement:_t,isRTL:H1};function W1(e,t){let n=null,r;const o=an(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),i();const{left:u,top:d,width:c,height:p}=e.getBoundingClientRect();if(s||t(),!c||!p)return;const v=ki(d),y=ki(o.clientWidth-(u+c)),w=ki(o.clientHeight-(d+p)),C=ki(u),f={rootMargin:-v+"px "+-y+"px "+-w+"px "+-C+"px",threshold:nt(0,zt(1,a))||1};let g=!0;function S(N){const P=N[0].intersectionRatio;if(P!==a){if(!g)return l();P?l(!1,P):r=setTimeout(()=>{l(!1,1e-7)},1e3)}g=!1}try{n=new IntersectionObserver(S,{...f,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,f)}n.observe(e)}return l(!0),i}function Y1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Lu(e),d=o||i?[...u?Vo(u):[],...Vo(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const c=u&&s?W1(u,n):null;let p=-1,v=null;l&&(v=new ResizeObserver(m=>{let[f]=m;f&&f.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var g;(g=v)==null||g.observe(t)})),n()}),u&&!a&&v.observe(u),v.observe(t));let y,w=a?er(e):null;a&&C();function C(){const m=er(e);w&&(m.x!==w.x||m.y!==w.y||m.width!==w.width||m.height!==w.height)&&n(),w=m,y=requestAnimationFrame(C)}return n(),()=>{var m;d.forEach(f=>{o&&f.removeEventListener("scroll",n),i&&f.removeEventListener("resize",n)}),c==null||c(),(m=v)==null||m.disconnect(),v=null,a&&cancelAnimationFrame(y)}}const G1=N1,K1=b1,Q1=E1,X1=P1,Z1=C1,Pd=S1,J1=T1,q1=(e,t,n)=>{const r=new Map,o={platform:V1,...n},i={...o.platform,_c:r};return x1(e,t,{...o,platform:i})};var ji=typeof document<"u"?h.useLayoutEffect:h.useEffect;function pl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!pl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!pl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Lm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rd(e,t){const n=Lm(e);return Math.round(t*n)/n}function _d(e){const t=h.useRef(e);return ji(()=>{t.current=e}),t}function ew(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[d,c]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=h.useState(r);pl(p,r)||v(r);const[y,w]=h.useState(null),[C,m]=h.useState(null),f=h.useCallback(H=>{H!==P.current&&(P.current=H,w(H))},[]),g=h.useCallback(H=>{H!==T.current&&(T.current=H,m(H))},[]),S=i||y,N=l||C,P=h.useRef(null),T=h.useRef(null),_=h.useRef(d),F=a!=null,M=_d(a),Y=_d(o),B=h.useCallback(()=>{if(!P.current||!T.current)return;const H={placement:t,strategy:n,middleware:p};Y.current&&(H.platform=Y.current),q1(P.current,T.current,H).then(R=>{const O={...R,isPositioned:!0};X.current&&!pl(_.current,O)&&(_.current=O,Xo.flushSync(()=>{c(O)}))})},[p,t,n,Y]);ji(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,c(H=>({...H,isPositioned:!1})))},[u]);const X=h.useRef(!1);ji(()=>(X.current=!0,()=>{X.current=!1}),[]),ji(()=>{if(S&&(P.current=S),N&&(T.current=N),S&&N){if(M.current)return M.current(S,N,B);B()}},[S,N,B,M,F]);const z=h.useMemo(()=>({reference:P,floating:T,setReference:f,setFloating:g}),[f,g]),V=h.useMemo(()=>({reference:S,floating:N}),[S,N]),Q=h.useMemo(()=>{const H={position:n,left:0,top:0};if(!V.floating)return H;const R=Rd(V.floating,d.x),O=Rd(V.floating,d.y);return s?{...H,transform:"translate("+R+"px, "+O+"px)",...Lm(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:O}},[n,s,V.floating,d.x,d.y]);return h.useMemo(()=>({...d,update:B,refs:z,elements:V,floatingStyles:Q}),[d,B,z,V,Q])}const tw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Pd({element:r.current,padding:o}).fn(n):{}:r?Pd({element:r,padding:o}).fn(n):{}}}},nw=(e,t)=>({...G1(e),options:[e,t]}),rw=(e,t)=>({...K1(e),options:[e,t]}),ow=(e,t)=>({...J1(e),options:[e,t]}),iw=(e,t)=>({...Q1(e),options:[e,t]}),lw=(e,t)=>({...X1(e),options:[e,t]}),sw=(e,t)=>({...Z1(e),options:[e,t]}),aw=(e,t)=>({...tw(e),options:[e,t]});function uw(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function cw(...e){return t=>e.forEach(n=>uw(n,t))}var Om=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(fw);if(i){const l=i.props.children,s=o.map(a=>a===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:a);return E.jsx(Ca,{...r,ref:t,children:h.isValidElement(l)?h.cloneElement(l,void 0,s):null})}return E.jsx(Ca,{...r,ref:t,children:n})});Om.displayName="Slot";var Ca=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=mw(n);return h.cloneElement(n,{...pw(r,n.props),ref:t?cw(t,o):o})}return h.Children.count(n)>1?h.Children.only(null):null});Ca.displayName="SlotClone";var dw=({children:e})=>E.jsx(E.Fragment,{children:e});function fw(e){return h.isValidElement(e)&&e.type===dw}function pw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function mw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],gw=hw.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Om:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),vw="Arrow",$m=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return E.jsx(gw.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});$m.displayName=vw;var yw=$m;function ww(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Mm(...e){return t=>e.forEach(n=>ww(n,t))}function Dm(...e){return h.useCallback(Mm(...e),e)}function xw(e,t=[]){let n=[];function r(i,l){const s=h.createContext(l),a=n.length;n=[...n,l];function u(c){const{scope:p,children:v,...y}=c,w=(p==null?void 0:p[e][a])||s,C=h.useMemo(()=>y,Object.values(y));return E.jsx(w.Provider,{value:C,children:v})}function d(c,p){const v=(p==null?void 0:p[e][a])||s,y=h.useContext(v);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(l=>h.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,Sw(o,...t)]}function Sw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var zm=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(Cw);if(i){const l=i.props.children,s=o.map(a=>a===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:a);return E.jsx(ka,{...r,ref:t,children:h.isValidElement(l)?h.cloneElement(l,void 0,s):null})}return E.jsx(ka,{...r,ref:t,children:n})});zm.displayName="Slot";var ka=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=Nw(n);return h.cloneElement(n,{...kw(r,n.props),ref:t?Mm(t,o):o})}return h.Children.count(n)>1?h.Children.only(null):null});ka.displayName="SlotClone";var Ew=({children:e})=>E.jsx(E.Fragment,{children:e});function Cw(e){return h.isValidElement(e)&&e.type===Ew}function kw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Nw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Im=bw.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?zm:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Tw(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Na=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{};function Pw(e){const[t,n]=h.useState(void 0);return Na(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ou="Popper",[jm,Fm]=xw(Ou),[Rw,Bm]=jm(Ou),Um=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return E.jsx(Rw,{scope:t,anchor:r,onAnchorChange:o,children:n})};Um.displayName=Ou;var Hm="PopperAnchor",Vm=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Bm(Hm,n),l=h.useRef(null),s=Dm(t,l);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:E.jsx(Im.div,{...o,ref:s})});Vm.displayName=Hm;var $u="PopperContent",[_w,Aw]=jm($u),Wm=h.forwardRef((e,t)=>{var ne,le,ke,pe,q,ue;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:s=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:y,...w}=e,C=Bm($u,n),[m,f]=h.useState(null),g=Dm(t,Ae=>f(Ae)),[S,N]=h.useState(null),P=Pw(S),T=(P==null?void 0:P.width)??0,_=(P==null?void 0:P.height)??0,F=r+(i!=="center"?"-"+i:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Y=Array.isArray(u)?u:[u],B=Y.length>0,X={padding:M,boundary:Y.filter(Ow),altBoundary:B},{refs:z,floatingStyles:V,placement:Q,isPositioned:H,middlewareData:R}=ew({strategy:"fixed",placement:F,whileElementsMounted:(...Ae)=>Y1(...Ae,{animationFrame:v==="always"}),elements:{reference:C.anchor},middleware:[nw({mainAxis:o+_,alignmentAxis:l}),a&&rw({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?ow():void 0,...X}),a&&iw({...X}),lw({...X,apply:({elements:Ae,rects:Lt,availableWidth:we,availableHeight:Fe})=>{const{width:un,height:rr}=Lt.reference,ct=Ae.floating.style;ct.setProperty("--radix-popper-available-width",`${we}px`),ct.setProperty("--radix-popper-available-height",`${Fe}px`),ct.setProperty("--radix-popper-anchor-width",`${un}px`),ct.setProperty("--radix-popper-anchor-height",`${rr}px`)}}),S&&aw({element:S,padding:s}),$w({arrowWidth:T,arrowHeight:_}),p&&sw({strategy:"referenceHidden",...X})]}),[O,b]=Km(Q),k=Tw(y);Na(()=>{H&&(k==null||k())},[H,k]);const A=(ne=R.arrow)==null?void 0:ne.x,W=(le=R.arrow)==null?void 0:le.y,U=((ke=R.arrow)==null?void 0:ke.centerOffset)!==0,[J,G]=h.useState();return Na(()=>{m&&G(window.getComputedStyle(m).zIndex)},[m]),E.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:H?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(pe=R.transformOrigin)==null?void 0:pe.x,(q=R.transformOrigin)==null?void 0:q.y].join(" "),...((ue=R.hide)==null?void 0:ue.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:E.jsx(_w,{scope:n,placedSide:O,onArrowChange:N,arrowX:A,arrowY:W,shouldHideArrow:U,children:E.jsx(Im.div,{"data-side":O,"data-align":b,...w,ref:g,style:{...w.style,animation:H?void 0:"none"}})})})});Wm.displayName=$u;var Ym="PopperArrow",Lw={top:"bottom",right:"left",bottom:"top",left:"right"},Gm=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Aw(Ym,r),l=Lw[i.placedSide];return E.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:E.jsx(yw,{...o,ref:n,style:{...o.style,display:"block"}})})});Gm.displayName=Ym;function Ow(e){return e!==null}var $w=e=>({name:"transformOrigin",options:e,fn(t){var C,m,f;const{placement:n,rects:r,middlewareData:o}=t,l=((C=o.arrow)==null?void 0:C.centerOffset)!==0,s=l?0:e.arrowWidth,a=l?0:e.arrowHeight,[u,d]=Km(n),c={start:"0%",center:"50%",end:"100%"}[d],p=(((m=o.arrow)==null?void 0:m.x)??0)+s/2,v=(((f=o.arrow)==null?void 0:f.y)??0)+a/2;let y="",w="";return u==="bottom"?(y=l?c:`${p}px`,w=`${-a}px`):u==="top"?(y=l?c:`${p}px`,w=`${r.floating.height+a}px`):u==="right"?(y=`${-a}px`,w=l?c:`${v}px`):u==="left"&&(y=`${r.floating.width+a}px`,w=l?c:`${v}px`),{data:{x:y,y:w}}}});function Km(e){const[t,n="center"]=e.split("-");return[t,n]}var Mw=Um,Dw=Vm,zw=Wm,Iw=Gm;function jw(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Qm=e=>{const{present:t,children:n}=e,r=Fw(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=Jo(r.ref,Bw(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};Qm.displayName="Presence";function Fw(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),l=e?"mounted":"unmounted",[s,a]=jw(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=Ni(r.current);i.current=s==="mounted"?u:"none"},[s]),xa(()=>{const u=r.current,d=o.current;if(d!==e){const p=i.current,v=Ni(u);e?a("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),xa(()=>{if(t){const u=c=>{const v=Ni(r.current).includes(c.animationName);c.target===t&&v&&Xo.flushSync(()=>a("ANIMATION_END"))},d=c=>{c.target===t&&(i.current=Ni(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:h.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ni(e){return(e==null?void 0:e.animationName)||"none"}function Bw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Uw({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Hw({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r,s=qo(n),a=h.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else o(u)},[i,e,o,s]);return[l,a]}function Hw({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=qo(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function Vw(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ww(...e){return t=>e.forEach(n=>Vw(n,t))}var Xm=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(Gw);if(i){const l=i.props.children,s=o.map(a=>a===i?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:a);return E.jsx(ba,{...r,ref:t,children:h.isValidElement(l)?h.cloneElement(l,void 0,s):null})}return E.jsx(ba,{...r,ref:t,children:n})});Xm.displayName="Slot";var ba=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=Qw(n);return h.cloneElement(n,{...Kw(r,n.props),ref:t?Ww(t,o):o})}return h.Children.count(n)>1?h.Children.only(null):null});ba.displayName="SlotClone";var Yw=({children:e})=>E.jsx(E.Fragment,{children:e});function Gw(e){return h.isValidElement(e)&&e.type===Yw}function Kw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Qw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Zw=Xw.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...l}=r,s=i?Xm:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Jw="VisuallyHidden",Zm=h.forwardRef((e,t)=>E.jsx(Zw.span,{...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}}));Zm.displayName=Jw;var qw=Zm,[$l,_x]=Ky("Tooltip",[Fm]),Ml=Fm(),Jm="TooltipProvider",ex=700,Ta="tooltip.open",[tx,Mu]=$l(Jm),qm=e=>{const{__scopeTooltip:t,delayDuration:n=ex,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[l,s]=h.useState(!0),a=h.useRef(!1),u=h.useRef(0);return h.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),E.jsx(tx,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:h.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:h.useCallback(d=>{a.current=d},[]),disableHoverableContent:o,children:i})};qm.displayName=Jm;var Dl="Tooltip",[nx,zl]=$l(Dl),eh=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:s}=e,a=Mu(Dl,e.__scopeTooltip),u=Ml(t),[d,c]=h.useState(null),p=d1(),v=h.useRef(0),y=l??a.disableHoverableContent,w=s??a.delayDuration,C=h.useRef(!1),[m=!1,f]=Uw({prop:r,defaultProp:o,onChange:T=>{T?(a.onOpen(),document.dispatchEvent(new CustomEvent(Ta))):a.onClose(),i==null||i(T)}}),g=h.useMemo(()=>m?C.current?"delayed-open":"instant-open":"closed",[m]),S=h.useCallback(()=>{window.clearTimeout(v.current),C.current=!1,f(!0)},[f]),N=h.useCallback(()=>{window.clearTimeout(v.current),f(!1)},[f]),P=h.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{C.current=!0,f(!0)},w)},[w,f]);return h.useEffect(()=>()=>window.clearTimeout(v.current),[]),E.jsx(Mw,{...u,children:E.jsx(nx,{scope:t,contentId:p,open:m,stateAttribute:g,trigger:d,onTriggerChange:c,onTriggerEnter:h.useCallback(()=>{a.isOpenDelayed?P():S()},[a.isOpenDelayed,P,S]),onTriggerLeave:h.useCallback(()=>{y?N():window.clearTimeout(v.current)},[N,y]),onOpen:S,onClose:N,disableHoverableContent:y,children:n})})};eh.displayName=Dl;var Pa="TooltipTrigger",th=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=zl(Pa,n),i=Mu(Pa,n),l=Ml(n),s=h.useRef(null),a=Jo(t,s,o.onTriggerChange),u=h.useRef(!1),d=h.useRef(!1),c=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),E.jsx(Dw,{asChild:!0,...l,children:E.jsx(bu.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:Xt(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Xt(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Xt(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Xt(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Xt(e.onBlur,o.onClose),onClick:Xt(e.onClick,o.onClose)})})});th.displayName=Pa;var rx="TooltipPortal",[Ax,ox]=$l(rx,{forceMount:void 0}),Fr="TooltipContent",nh=h.forwardRef((e,t)=>{const n=ox(Fr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=zl(Fr,e.__scopeTooltip);return E.jsx(Qm,{present:r||l.open,children:l.disableHoverableContent?E.jsx(rh,{side:o,...i,ref:t}):E.jsx(ix,{side:o,...i,ref:t})})}),ix=h.forwardRef((e,t)=>{const n=zl(Fr,e.__scopeTooltip),r=Mu(Fr,e.__scopeTooltip),o=h.useRef(null),i=Jo(t,o),[l,s]=h.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:c}=r,p=h.useCallback(()=>{s(null),c(!1)},[c]),v=h.useCallback((y,w)=>{const C=y.currentTarget,m={x:y.clientX,y:y.clientY},f=ux(m,C.getBoundingClientRect()),g=cx(m,f),S=dx(w.getBoundingClientRect()),N=px([...g,...S]);s(N),c(!0)},[c]);return h.useEffect(()=>()=>p(),[p]),h.useEffect(()=>{if(a&&d){const y=C=>v(C,d),w=C=>v(C,a);return a.addEventListener("pointerleave",y),d.addEventListener("pointerleave",w),()=>{a.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",w)}}},[a,d,v,p]),h.useEffect(()=>{if(l){const y=w=>{const C=w.target,m={x:w.clientX,y:w.clientY},f=(a==null?void 0:a.contains(C))||(d==null?void 0:d.contains(C)),g=!fx(m,l);f?p():g&&(p(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[a,d,l,u,p]),E.jsx(rh,{...e,ref:i})}),[lx,sx]=$l(Dl,{isInside:!1}),rh=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...s}=e,a=zl(Fr,n),u=Ml(n),{onClose:d}=a;return h.useEffect(()=>(document.addEventListener(Ta,d),()=>document.removeEventListener(Ta,d)),[d]),h.useEffect(()=>{if(a.trigger){const c=p=>{const v=p.target;v!=null&&v.contains(a.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[a.trigger,d]),E.jsx(Em,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:E.jsxs(zw,{"data-state":a.stateAttribute,...u,...s,ref:t,style:{...s.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)"},children:[E.jsx(xm,{children:r}),E.jsx(lx,{scope:n,isInside:!0,children:E.jsx(qw,{id:a.contentId,role:"tooltip",children:o||r})})]})})});nh.displayName=Fr;var oh="TooltipArrow",ax=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ml(n);return sx(oh,n).isInside?null:E.jsx(Iw,{...o,...r,ref:t})});ax.displayName=oh;function ux(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function cx(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function dx(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function fx(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;ir!=d>r&&n<(u-s)*(r-a)/(d-a)+s&&(o=!o)}return o}function px(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),mx(t)}function mx(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var hx=qm,gx=eh,vx=th,ih=nh;const ao=hx,uo=gx,co=vx,dr=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>E.jsx(ih,{ref:r,sideOffset:t,className:ku("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));dr.displayName=ih.displayName;/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lh=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var wx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xx=h.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...s},a)=>h.createElement("svg",{ref:a,...wx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:lh("lucide",o),...s},[...l.map(([u,d])=>h.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Sx=(e,t)=>{const n=h.forwardRef(({className:r,...o},i)=>h.createElement(xx,{ref:i,iconNode:t,className:lh(`lucide-${yx(e)}`,r),...o}));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ad=Sx("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);function Ex(){const[e,t]=h.useState(null),[n,r]=h.useState(!1),[o,i]=h.useState(0),[l,s]=h.useState(85),[a,u]=h.useState(65),[d,c]=h.useState(255),[p,v]=h.useState(0),[y,w]=h.useState(0),[C,m]=h.useState("#FF0000"),[f,g]=h.useState("hsl"),S=(b,k,A)=>`#${((1<<24)+(b<<16)+(k<<8)+A).toString(16).slice(1)}`;h.useEffect(()=>{localStorage.removeItem("uploadedImage")},[]),h.useEffect(()=>{const b=T(o,l,a);c(b.r),v(b.g),w(b.b),m(S(b.r,b.g,b.b))},[]),h.useEffect(()=>{const b=localStorage.getItem("uploadedImage");b&&(t(b),N(b))},[n]);const N=b=>{const k=new Image;k.src=b,k.onload=()=>{const A=document.createElement("canvas"),W=A.getContext("2d");A.width=k.width,A.height=k.height,W.drawImage(k,0,0,k.width,k.height);const J=W.getImageData(0,0,k.width,k.height).data,G=[];for(let q=0;q0){const Fe=S(ue,Ae,Lt);G.push(Fe)}}const ne={};G.forEach(q=>{q in ne?ne[q]+=1:ne[q]=1});const ke=Object.keys(ne).sort((q,ue)=>ne[ue]-ne[q])[0],pe=_(ke);F(pe.r,pe.g,pe.b)}},P=b=>{const k=b.target,A=document.createElement("canvas"),W=A.getContext("2d");A.width=k.width,A.height=k.height,W.drawImage(k,0,0,k.width,k.height);const U=k.getBoundingClientRect(),J=k.width/U.width,G=k.height/U.height,ne=(b.clientX-U.left)*J,le=(b.clientY-U.top)*G,ke=W.getImageData(ne,le,1,1).data,[pe,q,ue]=ke;c(pe),v(q),w(ue),m(S(pe,q,ue));const Ae=F(pe,q,ue);i(Ae.h),s(Ae.s),u(Ae.l),pt.success("Color picked from image",{action:{label:"Close",onClick:()=>pt.dismiss()}})},T=(b,k,A)=>{b/=360,k/=100,A/=100;let W,U,J;if(k===0)W=U=J=A;else{const G=(ke,pe,q)=>(q<0&&(q+=1),q>1&&(q-=1),q<.16666666666666666?ke+(pe-ke)*6*q:q<.5?pe:q<.6666666666666666?ke+(pe-ke)*(.6666666666666666-q)*6:ke),ne=A<.5?A*(1+k):A+k-A*k,le=2*A-ne;W=G(le,ne,b+1/3),U=G(le,ne,b),J=G(le,ne,b-1/3)}return{r:Math.round(W*255),g:Math.round(U*255),b:Math.round(J*255)}},_=b=>{const k=b.replace(/#/,"").match(/.{1,2}/g);return{r:parseInt(k[0],16),g:parseInt(k[1],16),b:parseInt(k[2],16)}},F=(b,k,A)=>{b/=255,k/=255,A/=255;const W=Math.max(b,k,A),U=Math.min(b,k,A);let J,G,ne=(W+U)/2;if(W===U)J=G=0;else{const le=W-U;switch(G=ne>.5?le/(2-W-U):le/(W+U),W){case b:J=(k-A)/le+(kpt.dismiss()}})}function Y(){navigator.clipboard.writeText(C),pt.success("Copied HEX value to clipboard",{action:{label:"Close",onClick:()=>pt.dismiss()}})}function B(){navigator.clipboard.writeText(`${o}°, ${l}%, ${a}%`),pt.success("Copied HSL value to clipboard",{action:{label:"Close",onClick:()=>pt.dismiss()}})}const X=b=>{i(b);const k=T(b,l,a);c(k.r),v(k.g),w(k.b),m(S(k.r,k.g,k.b))},z=b=>{s(b);const k=T(o,b,a);c(k.r),v(k.g),w(k.b),m(S(k.r,k.g,k.b))},V=b=>{u(b);const k=T(o,l,b);c(k.r),v(k.g),w(k.b),m(S(k.r,k.g,k.b))},Q=(b,k,A)=>{const W=T(b,k,A);return S(W.r,W.g,W.b)},H=b=>{c(b);const k=F(b,p,y);i(k.h),s(k.s),u(k.l),m(Q(k.h,k.s,k.l))},R=b=>{v(b);const k=F(d,b,y);i(k.h),s(k.s),u(k.l),m(Q(k.h,k.s,k.l))},O=b=>{w(b);const k=F(d,p,b);i(k.h),s(k.s),u(k.l),m(Q(k.h,k.s,k.l))};return n?E.jsxs("div",{className:"flex flex-col items-center justify-center p-4 h-screen bg-gray-100 dark:bg-gray-950 ",children:[E.jsx(im,{}),E.jsx("div",{className:"max-w-3xl w-full bg-white dark:bg-gray-900 rounded-lg shadow-lg overflow-hidden",style:{minHeight:"300px",minWidth:"700px"},children:E.jsxs("div",{className:"grid grid-cols-2 gap-6 p-6",children:[E.jsxs("div",{className:"relative flex justify-center items-center h-full",children:[E.jsx("img",{alt:"Uploaded Image",className:"w-full h-full object-cover rounded-lg",height:500,src:"/placeholder.svg",style:{aspectRatio:"500/500",objectFit:"cover"},width:500}),E.jsx("div",{className:"absolute inset-0 flex items-center justify-center border-black",style:{userSelect:"none",overflow:"hidden",scrollbarWidth:"none"},children:E.jsx("div",{className:"max-w-full max-h-full relative bg-black dark:bg-white rounded-lg border-black shadow-lg object-cover content-center overflow-auto",style:{aspectRatio:"500/500",objectFit:"cover",scrollbarWidth:"none"},children:e!==null?E.jsx("img",{src:e,onClick:P,alt:"Uploaded Image",className:"object-contain place-self-center"}):E.jsx(Cx,{className:"w-6 h-6 text-gray-500 dark:text-gray-400"})})})]}),E.jsxs("div",{className:"flex flex-col gap-6",children:[E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 h-16 rounded-full border-4 border-gray-200 dark:border-gray-800 flex items-center justify-center",children:E.jsx("div",{className:"w-10 h-10 rounded-full border",style:{backgroundColor:S(d,p,y)}})}),E.jsxs("div",{className:"flex-1 grid gap-1",children:[E.jsx("div",{className:"w-20 text-sm font-medium text-gray-500 dark:text-gray-400",children:"HEX"}),E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"text-lg font-semibold text-gray-900 dark:text-gray-50",children:C}),E.jsx(ao,{children:E.jsxs(uo,{children:[E.jsx(co,{children:E.jsx(cr,{variant:"ghost",onClick:Y,className:"max-h-12 max-w-12",children:E.jsx(kx,{className:"w-4 h-4 text-gray-500 dark:text-gray-400"})})}),E.jsx(dr,{children:E.jsx("span",{className:"text-sm text-muted-foreground",children:"Copy HEX"})})]})})]})]})]}),f==="hsl"?E.jsxs("div",{className:"grid gap-4",children:[E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Hue"}),E.jsx(Un,{className:"flex-1",value:[o],max:360,step:1,onValueChange:b=>X(b)}),E.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[o,"°"]})]}),E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Saturation"}),E.jsx(Un,{className:"flex-1",value:[l],max:100,step:1,onValueChange:b=>z(b)}),E.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[l,"%"]})]}),E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Lightness"}),E.jsx(Un,{className:"flex-1",value:[a],max:100,step:1,onValueChange:b=>V(b)}),E.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[a,"%"]})]})]}):f==="rgb"?E.jsxs("div",{className:"grid gap-4",children:[E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Red"}),E.jsx(Un,{className:"flex-1",value:[d],max:255,step:1,onValueChange:b=>H(b)}),E.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[d,"/255"]})]}),E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Green"}),E.jsx(Un,{className:"flex-1",value:[p],max:255,step:1,onValueChange:b=>R(b)}),E.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[p,"/255"]})]}),E.jsxs("div",{className:"flex items-center gap-4",children:[E.jsx("div",{className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"Blue"}),E.jsx(Un,{className:"flex-1",value:[y],max:255,step:1,onValueChange:b=>O(b)}),E.jsxs("div",{className:"w-16 text-right text-sm font-medium text-gray-900 dark:text-gray-50",children:[y,"/255"]})]})]}):null,E.jsxs("div",{className:"grid gap-2",children:[E.jsxs("div",{className:"flex items-center gap-4 group",children:[E.jsx(ao,{children:E.jsxs(uo,{children:[E.jsx(co,{children:E.jsx(cr,{variant:"ghost",onClick:M,className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"RGB"})}),E.jsx(dr,{children:E.jsx("span",{className:"text-sm text-muted-foreground",children:"Copy RGB"})})]})}),E.jsxs("div",{className:"flex-1 text-lg font-semibold text-gray-900 dark:text-gray-50",children:[d,", ",p,", ",y]}),E.jsx(ao,{children:E.jsxs(uo,{children:[E.jsx(co,{children:E.jsx(cr,{variant:"outline",size:"icon",className:"h-8 w-8 text-right opacity-0 group-hover:opacity-100 group-hover:animate-fadeInLeft",onClick:()=>g("rgb"),children:E.jsx(Ad,{className:"w-4 h-4"})})}),E.jsx(dr,{children:E.jsx("span",{className:"text-sm text-muted-foreground",children:"Switch to RGB"})})]})})]}),E.jsxs("div",{className:"flex items-center gap-4 group",children:[E.jsx(ao,{children:E.jsxs(uo,{children:[E.jsx(co,{children:E.jsx(cr,{variant:"ghost",onClick:B,className:"w-16 text-right text-sm font-medium text-gray-500 dark:text-gray-400",children:"HSL"})}),E.jsx(dr,{children:E.jsx("span",{className:"text-sm text-muted-foreground",children:"Copy HSL"})})]})}),E.jsxs("div",{className:"flex-1 text-lg font-semibold text-gray-900 dark:text-gray-50",children:[o,"°, ",l,"%, ",a,"%"]}),E.jsx(ao,{children:E.jsxs(uo,{children:[E.jsx(co,{children:E.jsx(cr,{variant:"outline",size:"icon",className:"h-8 w-8 text-right opacity-0 group-hover:opacity-100 group-hover:animate-fadeInLeft",onClick:()=>g("hsl"),children:E.jsx(Ad,{className:"w-4 h-4"})})}),E.jsx(dr,{children:E.jsx("span",{className:"text-sm text-muted-foreground",children:"Switch to HSL"})})]})})]})]})]})]})})]}):E.jsx(py,{setImage:t,setImageUploaded:r,image:e,imageUploaded:n})}function Cx(e){return E.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),E.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function kx(e){return E.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 115.77 122.88",style:{enableBackground:"new 0 0 115.77 122.88"},xmlSpace:"preserve",children:[E.jsx("style",{type:"text/css",children:".st0{fill-rule:evenodd;clip-rule:evenodd;}"}),E.jsx("g",{children:E.jsx("path",{className:"st0",d:"M89.62,13.96v7.73h12.19h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02v0.02 v73.27v0.01h-0.02c-0.01,3.84-1.57,7.33-4.1,9.86c-2.51,2.5-5.98,4.06-9.82,4.07v0.02h-0.02h-61.7H40.1v-0.02 c-3.84-0.01-7.34-1.57-9.86-4.1c-2.5-2.51-4.06-5.98-4.07-9.82h-0.02v-0.02V92.51H13.96h-0.01v-0.02c-3.84-0.01-7.34-1.57-9.86-4.1 c-2.5-2.51-4.06-5.98-4.07-9.82H0v-0.02V13.96v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07V0h0.02h61.7 h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02V13.96L89.62,13.96z M79.04,21.69v-7.73v-0.02h0.02 c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v64.59v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h12.19V35.65 v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07v-0.02h0.02H79.04L79.04,21.69z M105.18,108.92V35.65v-0.02 h0.02c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v73.27v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h61.7h0.02 v0.02c0.91,0,1.75-0.39,2.37-1.01c0.61-0.61,1-1.46,1-2.37h-0.02V108.92L105.18,108.92z"})})]})}function Nx(){return E.jsx("div",{className:"flex min-h-[100dvh] flex-col items-center justify-center bg-background px-4 py-12 sm:px-6 lg:px-8",children:E.jsxs("div",{className:"mx-auto max-w-md text-center",children:[E.jsx(bx,{className:"mx-auto h-12 w-12 text-primary"}),E.jsx("h1",{className:"mt-4 text-3xl font-bold tracking-tight text-foreground sm:text-4xl",children:"Sorry, this website is only available for desktop"}),E.jsx("p",{className:"mt-4 text-muted-foreground",children:"We apologize for the inconvenience, but our website is currently optimized for desktop devices only. Please try accessing this site from a computer or laptop."})]})})}function bx(e){return E.jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"blue",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}),E.jsx("path",{d:"M12 18h.01"})]})}const Tx=()=>{const e=window.navigator.userAgent.toLowerCase(),t=/mobile|android|iphone|ipad|tablet|touch|samsung|fridge/i.test(e),n=window.innerWidth<=1024;return!t&&!n};function Px(){const[e,t]=$.useState(null);return $.useEffect(()=>{t(Tx())},[]),e===!0?E.jsx(Ex,{}):E.jsx(Nx,{})}ws.createRoot(document.getElementById("root")).render(E.jsx($.StrictMode,{children:E.jsx(Px,{})})); diff --git a/index.html b/index.html index 02ca203..a74d69b 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Tint Tracker - +