(function(V,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],M):(V=typeof globalThis<"u"?globalThis:V||self,M(V["tw-noti"]={},V.react,V.reactDom))})(this,function(V,M,dr){"use strict";var ke={exports:{}},se={};/** * @license React * react-jsx-runtime.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 Le;function fr(){if(Le)return se;Le=1;var r=M,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(f,u,m){var p,h={},j=null,O=null;m!==void 0&&(j=""+m),u.key!==void 0&&(j=""+u.key),u.ref!==void 0&&(O=u.ref);for(p in u)s.call(u,p)&&!a.hasOwnProperty(p)&&(h[p]=u[p]);if(f&&f.defaultProps)for(p in u=f.defaultProps,u)h[p]===void 0&&(h[p]=u[p]);return{$$typeof:t,type:f,key:j,ref:O,props:h,_owner:l.current}}return se.Fragment=n,se.jsx=c,se.jsxs=c,se}var ae={};/** * @license React * react-jsx-runtime.development.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 We;function pr(){return We||(We=1,process.env.NODE_ENV!=="production"&&function(){var r=M,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),F=Symbol.iterator,E="@@iterator";function P(e){if(e===null||typeof e!="object")return null;var o=F&&e[F]||e[E];return typeof o=="function"?o:null}var S=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(e){{for(var o=arguments.length,i=new Array(o>1?o-1:0),d=1;d=1&&_>=0&&v[C]!==A[_];)_--;for(;C>=1&&_>=0;C--,_--)if(v[C]!==A[_]){if(C!==1||_!==1)do if(C--,_--,_<0||v[C]!==A[_]){var N=` `+v[C].replace(" at new "," at ");return e.displayName&&N.includes("")&&(N=N.replace("",e.displayName)),typeof e=="function"&&ye.set(e,N),N}while(C>=1&&_>=0);break}}}finally{Pe=!1,_e.current=k,lt(),Error.prepareStackTrace=y}var oe=e?e.displayName||e.name:"",Z=oe?xe(oe):"";return typeof e=="function"&&ye.set(e,Z),Z}function ut(e,o,i){return He(e,!1)}function dt(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function we(e,o,i){if(e==null)return"";if(typeof e=="function")return He(e,dt(e));if(typeof e=="string")return xe(e);switch(e){case m:return xe("Suspense");case p:return xe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return ut(e.render);case h:return we(e.type,o,i);case j:{var d=e,y=d._payload,k=d._init;try{return we(k(y),o,i)}catch{}}}return""}var ge=Object.prototype.hasOwnProperty,Qe={},Ze=S.ReactDebugCurrentFrame;function Re(e){if(e){var o=e._owner,i=we(e.type,e._source,o?o.type:null);Ze.setExtraStackFrame(i)}else Ze.setExtraStackFrame(null)}function ft(e,o,i,d,y){{var k=Function.call.bind(ge);for(var x in e)if(k(e,x)){var v=void 0;try{if(typeof e[x]!="function"){var A=Error((d||"React class")+": "+i+" type `"+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[x]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}v=e[x](o,x,d,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(C){v=C}v&&!(v instanceof Error)&&(Re(y),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",i,x,typeof v),Re(null)),v instanceof Error&&!(v.message in Qe)&&(Qe[v.message]=!0,Re(y),w("Failed %s type: %s",i,v.message),Re(null))}}}var pt=Array.isArray;function Oe(e){return pt(e)}function gt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,i=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function bt(e){try{return er(e),!1}catch{return!0}}function er(e){return""+e}function rr(e){if(bt(e))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",gt(e)),er(e)}var be=S.ReactCurrentOwner,ht={key:!0,ref:!0,__self:!0,__source:!0},tr,nr,Ae;Ae={};function mt(e){if(ge.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function vt(e){if(ge.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function xt(e,o){if(typeof e.ref=="string"&&be.current&&o&&be.current.stateNode!==o){var i=I(be.current.type);Ae[i]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',I(be.current.type),e.ref),Ae[i]=!0)}}function yt(e,o){{var i=function(){tr||(tr=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function wt(e,o){{var i=function(){nr||(nr=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var Rt=function(e,o,i,d,y,k,x){var v={$$typeof:t,type:e,key:o,ref:i,props:x,_owner:k};return v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(v,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(v,"_source",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v};function kt(e,o,i,d,y){{var k,x={},v=null,A=null;i!==void 0&&(rr(i),v=""+i),vt(o)&&(rr(o.key),v=""+o.key),mt(o)&&(A=o.ref,xt(o,y));for(k in o)ge.call(o,k)&&!ht.hasOwnProperty(k)&&(x[k]=o[k]);if(e&&e.defaultProps){var C=e.defaultProps;for(k in C)x[k]===void 0&&(x[k]=C[k])}if(v||A){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;v&&yt(x,_),A&&wt(x,_)}return Rt(e,v,A,y,d,be.current,x)}}var Me=S.ReactCurrentOwner,or=S.ReactDebugCurrentFrame;function ne(e){if(e){var o=e._owner,i=we(e.type,e._source,o?o.type:null);or.setExtraStackFrame(i)}else or.setExtraStackFrame(null)}var ze;ze=!1;function Ie(e){return typeof e=="object"&&e!==null&&e.$$typeof===t}function sr(){{if(Me.current){var e=I(Me.current.type);if(e)return` Check the render method of \``+e+"`."}return""}}function Tt(e){return""}var ar={};function Et(e){{var o=sr();if(!o){var i=typeof e=="string"?e:e.displayName||e.name;i&&(o=` Check the top-level render call using <`+i+">.")}return o}}function ir(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=Et(o);if(ar[i])return;ar[i]=!0;var d="";e&&e._owner&&e._owner!==Me.current&&(d=" It was passed a child from "+I(e._owner.type)+"."),ne(e),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,d),ne(null)}}function lr(e,o){{if(typeof e!="object")return;if(Oe(e))for(var i=0;i",v=" Did you accidentally export a JSX literal instead of a component?"):C=typeof e,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,v)}var _=kt(e,o,i,y,k);if(_==null)return _;if(x){var N=o.children;if(N!==void 0)if(d)if(Oe(N)){for(var oe=0;oe0?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}";if(!cr[Z+Fe]){var At=z.length>0?"{"+z.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,Fe,Z,At,Z),cr[Z+Fe]=!0}}return e===s?Ct(_):jt(_),_}}function _t(e,o,i){return ur(e,o,i,!0)}function St(e,o,i){return ur(e,o,i,!1)}var Pt=St,Ot=_t;ae.Fragment=s,ae.jsx=Pt,ae.jsxs=Ot}()),ae}process.env.NODE_ENV==="production"?ke.exports=fr():ke.exports=pr();var b=ke.exports;const Te={button:{classes:"h-8 w-8 ml-auto -mx-1.5 -my-1.5 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 inline-flex dark:text-gray-500 text-gray-400 dark:hover:text-white hover:text-gray-900 dark:bg-gray-800 bg-white dark:hover:bg-gray-700 hover:bg-gray-100"},container:{classes:"absolute bottom-12 left-12"},icon:{classes:{error:{altText:"Big X icon",classes:"h-8 w-8 inline-flex items-center justify-center flex-shrink-0 rounded-lg dark:text-red-200 text-red-500 dark:bg-red-800 bg-red-100"},info:{altText:"Info Circle icon",classes:"h-8 w-8 inline-flex items-center justify-center flex-shrink-0 rounded-lg dark:text-blue-200 text-blue-500 dark:bg-blue-800 bg-blue-100"},success:{altText:"Checkmark icon",classes:"h-8 w-8 inline-flex items-center justify-center flex-shrink-0 rounded-lg dark:text-green-200 text-green-500 dark:bg-green-800 bg-green-100"},warning:{altText:"Warning icon",classes:"h-8 w-8 inline-flex items-center justify-center flex-shrink-0 rounded-lg dark:text-orange-200 text-orange-500 dark:bg-orange-800 bg-orange-100"}}},layout:{classes:"animate-fade-down animate-ease-in-out flex items-center w-full max-w-xs p-4 rounded-lg shadow dark:bg-gray-800 bg-white dark:text-gray-400 text-gray-500"},message:{classes:"ml-3 text-sm"}};function Ne(r){var t,n,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r)){var l=r.length;for(t=0;tf(a)))==null?void 0:c.classGroupId}const Ge=/^\[(.+)\]$/;function hr(r){if(Ge.test(r)){const t=Ge.exec(r)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function mr(r){const{theme:t,prefix:n}=r,s={nextPart:new Map,validators:[]};return xr(Object.entries(r.classGroups),n).forEach(([a,c])=>{je(c,s,a,t)}),s}function je(r,t,n,s){r.forEach(l=>{if(typeof l=="string"){const a=l===""?t:Ve(t,l);a.classGroupId=n;return}if(typeof l=="function"){if(vr(l)){je(l(s),t,n,s);return}t.validators.push({validator:l,classGroupId:n});return}Object.entries(l).forEach(([a,c])=>{je(c,Ve(t,a),n,s)})})}function Ve(r,t){let n=r;return t.split(Ee).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n}function vr(r){return r.isThemeGetter}function xr(r,t){return t?r.map(([n,s])=>{const l=s.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,f])=>[t+c,f])):a);return[n,l]}):r}function yr(r){if(r<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;function l(a,c){n.set(a,c),t++,t>r&&(t=0,s=n,n=new Map)}return{get(a){let c=n.get(a);if(c!==void 0)return c;if((c=s.get(a))!==void 0)return l(a,c),c},set(a,c){n.has(a)?n.set(a,c):l(a,c)}}}const Ue="!";function wr(r){const t=r.separator,n=t.length===1,s=t[0],l=t.length;return function(c){const f=[];let u=0,m=0,p;for(let E=0;Em?p-m:void 0;return{modifiers:f,hasImportantModifier:j,baseClassName:O,maybePostfixModifierPosition:F}}}function Rr(r){if(r.length<=1)return r;const t=[];let n=[];return r.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t}function kr(r){return{cache:yr(r.cacheSize),splitModifiers:wr(r),...br(r)}}const Tr=/\s+/;function Er(r,t){const{splitModifiers:n,getClassGroupId:s,getConflictingClassGroupIds:l}=t,a=new Set;return r.trim().split(Tr).map(c=>{const{modifiers:f,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:p}=n(c);let h=s(p?m.substring(0,p):m),j=!!p;if(!h){if(!p)return{isTailwindClass:!1,originalClassName:c};if(h=s(m),!h)return{isTailwindClass:!1,originalClassName:c};j=!1}const O=Rr(f).join(":");return{isTailwindClass:!0,modifierId:u?O+Ue:O,classGroupId:h,originalClassName:c,hasPostfixModifier:j}}).reverse().filter(c=>{if(!c.isTailwindClass)return!0;const{modifierId:f,classGroupId:u,hasPostfixModifier:m}=c,p=f+u;return a.has(p)?!1:(a.add(p),l(u,m).forEach(h=>a.add(f+h)),!0)}).reverse().map(c=>c.originalClassName).join(" ")}function jr(){let r=0,t,n,s="";for(;rh(p),r());return n=kr(m),s=n.cache.get,l=n.cache.set,a=f,f(u)}function f(u){const m=s(u);if(m)return m;const p=Er(u,n);return l(u,p),p}return function(){return a(jr.apply(null,arguments))}}function T(r){const t=n=>n[r]||[];return t.isThemeGetter=!0,t}const Be=/^\[(?:([a-z-]+):)?(.+)\]$/i,_r=/^\d+\/\d+$/,Sr=new Set(["px","full","screen"]),Pr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Or=/\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$/,Ar=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Mr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function U(r){return X(r)||Sr.has(r)||_r.test(r)}function Y(r){return ee(r,"length",Vr)}function X(r){return!!r&&!Number.isNaN(Number(r))}function he(r){return ee(r,"number",X)}function ie(r){return!!r&&Number.isInteger(Number(r))}function Ir(r){return r.endsWith("%")&&X(r.slice(0,-1))}function g(r){return Be.test(r)}function B(r){return Pr.test(r)}const Fr=new Set(["length","size","percentage"]);function Lr(r){return ee(r,Fr,$e)}function Wr(r){return ee(r,"position",$e)}const Nr=new Set(["image","url"]);function Dr(r){return ee(r,Nr,Yr)}function Gr(r){return ee(r,"",Ur)}function le(){return!0}function ee(r,t,n){const s=Be.exec(r);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1}function Vr(r){return Or.test(r)&&!Ar.test(r)}function $e(){return!1}function Ur(r){return Mr.test(r)}function Yr(r){return zr.test(r)}function Br(){const r=T("colors"),t=T("spacing"),n=T("blur"),s=T("brightness"),l=T("borderColor"),a=T("borderRadius"),c=T("borderSpacing"),f=T("borderWidth"),u=T("contrast"),m=T("grayscale"),p=T("hueRotate"),h=T("invert"),j=T("gap"),O=T("gradientColorStops"),F=T("gradientColorStopPositions"),E=T("inset"),P=T("margin"),S=T("opacity"),w=T("padding"),D=T("saturate"),G=T("scale"),L=T("sepia"),$=T("skew"),me=T("space"),ve=T("translate"),re=()=>["auto","contain","none"],ue=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",g,t],R=()=>[g,t],I=()=>["",U,Y],W=()=>["auto",X,g],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",g],pe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[X,he],Q=()=>[X,g];return{cacheSize:500,separator:":",theme:{colors:[le],spacing:[U,Y],blur:["none","",B,g],brightness:K(),borderColor:[r],borderRadius:["none","","full",B,g],borderSpacing:R(),borderWidth:I(),contrast:K(),grayscale:q(),hueRotate:Q(),invert:q(),gap:R(),gradientColorStops:[r],gradientColorStopPositions:[Ir,Y],inset:de(),margin:de(),opacity:K(),padding:R(),saturate:K(),scale:K(),sepia:q(),skew:Q(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",g]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":pe()}],"break-before":[{"break-before":pe()}],"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:[...J(),g]}],overflow:[{overflow:ue()}],"overflow-x":[{"overflow-x":ue()}],"overflow-y":[{"overflow-y":ue()}],overscroll:[{overscroll:re()}],"overscroll-x":[{"overscroll-x":re()}],"overscroll-y":[{"overscroll-y":re()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ie,g]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",g]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",ie,g]}],"grid-cols":[{"grid-cols":[le]}],"col-start-end":[{col:["auto",{span:["full",ie,g]},g]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[le]}],"row-start-end":[{row:["auto",{span:[ie,g]},g]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",g]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",g]}],gap:[{gap:[j]}],"gap-x":[{"gap-x":[j]}],"gap-y":[{"gap-y":[j]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[me]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[me]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",g,t]}],"min-w":[{"min-w":[g,t,"min","max","fit"]}],"max-w":[{"max-w":[g,t,"none","full","min","max","fit","prose",{screen:[B]},B]}],h:[{h:[g,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[g,t,"auto","min","max","fit"]}],"font-size":[{text:["base",B,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",he]}],"font-family":[{font:[le]}],"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",g]}],"line-clamp":[{"line-clamp":["none",X,he]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",U,g]}],"list-image":[{"list-image":["none",g]}],"list-style-type":[{list:["none","disc","decimal",g]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",U,Y]}],"underline-offset":[{"underline-offset":["auto",U,g]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g]}],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",g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),Wr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Dr]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[F]}],"gradient-via-pos":[{via:[F]}],"gradient-to-pos":[{to:[F]}],"gradient-from":[{from:[O]}],"gradient-via":[{via:[O]}],"gradient-to":[{to:[O]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:H()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[U,g]}],"outline-w":[{outline:[U,Y]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[U,Y]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",B,Gr]}],"shadow-color":[{shadow:[le]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",B,g]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[h]}],saturate:[{saturate:[D]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",g]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",g]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",g]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[ie,g]}],"translate-x":[{"translate-x":[ve]}],"translate-y":[{"translate-y":[ve]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",g]}],accent:[{accent:["auto",r]}],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",g]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",g]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[U,Y,he]}],stroke:[{stroke:[r,"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 $r=Cr(Br);function ce(...r){return $r(gr(r))}const Jr=({buttonClasses:r,containerClasses:t,iconClasses:n,layoutClasses:s,messageClasses:l})=>{const[a,c]=M.useState(Te);return M.useEffect(()=>{c(u=>{const m={...u};if(r&&(m.button.classes=ce(u.button.classes,r)),t){m.container.classes=ce(u.container.classes,t);const p=t.split(" ").map(h=>h.split("-")[0]||"");m.container.classes=qr(p,m.container.classes)}return n&&(m.icon.classes=Object.keys(n||{}).reduce((p,h)=>({...p,[h]:{...p[h],altText:n[h].altText,classes:ce(p[h].classes,n[h].classes)}}),u.icon.classes)),s&&(m.layout.classes=ce(u.layout.classes,s)),l&&(m.message.classes=ce(u.message.classes,l)),m})},[r,t,n,s,l]),{currentTheme:a,setCurrentTheme:c}};function qr(r,t){return Object.entries({right:"left",left:"right",top:"bottom",bottom:"top"}).forEach(([s,l])=>{if(r.includes(s)){const a=new RegExp(`${l}-\\w+\\s*`,"g");t=t.replace(a,"")}}),t.trim()}const Je=({className:r})=>b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"sr-only",children:"Close"}),b.jsx("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})]});function Kr({theme:r,type:t,onClick:n}){return b.jsx("button",{type:"button",className:r.classes,"data-dismiss-target":`#toast-${t}`,"aria-label":"Close",onClick:n,children:b.jsx(Je,{className:"w-5 h-5"})})}const Xr=({className:r})=>b.jsx("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),Hr=({className:r})=>b.jsx("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{fillRule:"evenodd",d:"M12.395 2.553a1 1 0 00-1.45-.385c-.345.23-.614.558-.822.88-.214.33-.403.713-.57 1.116-.334.804-.614 1.768-.84 2.734a31.365 31.365 0 00-.613 3.58 2.64 2.64 0 01-.945-1.067c-.328-.68-.398-1.534-.398-2.654A1 1 0 005.05 6.05 6.981 6.981 0 003 11a7 7 0 1011.95-4.95c-.592-.591-.98-.985-1.348-1.467-.363-.476-.724-1.063-1.207-2.03zM12.12 15.12A3 3 0 017 13s.879.5 2.5.5c0-1 .5-4 1.25-4.5.5 1 .786 1.293 1.371 1.879A2.99 2.99 0 0113 13a2.99 2.99 0 01-.879 2.121z",clipRule:"evenodd"})}),Qr=({className:r})=>b.jsx(b.Fragment,{children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:r,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})})}),Zr=({className:r})=>b.jsx(b.Fragment,{children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:r,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})})});function et({theme:r,type:t}){const n=t==="error",s=t==="info",l=t==="success",a=t==="warning",c=r.classes[t]?r.classes[t].classes:"";return b.jsxs("div",{className:c,"data-testid":"toast-icon",children:[n?b.jsx(Je,{className:"w-5 h-5"}):s?b.jsx(Qr,{className:"w-5 h-5"}):l?b.jsx(Xr,{className:"w-5 h-5"}):a?b.jsx(Zr,{className:"w-5 h-5"}):b.jsx(Hr,{className:"w-5 h-5"}),b.jsx("span",{className:"sr-only",children:r.classes&&r.classes[t]?r.classes[t].altText:"Default Icon"})]})}function rt({children:r,theme:t,type:n}){return b.jsx("div",{id:`toast-${n}`,className:t.classes,role:"alert",children:r})}function tt({children:r,theme:t}){return b.jsx("div",{className:t.classes,children:r})}const Ce=()=>{const r=M.useContext(Ke);if(!r)throw new Error("useToastContext must be used within a ToastProvider");return r};function nt({content:r,index:t,type:n,onClose:s}){const{theme:l}=Ce();return b.jsx("div",{"data-testid":`toast-${t}`,role:"toast",children:b.jsxs(rt,{theme:l.layout,type:n,children:[b.jsx(et,{theme:l.icon,type:n}),b.jsx(tt,{theme:l.message,children:r}),b.jsx(Kr,{theme:l.button,type:n,onClick:s})]})})}function ot({children:r,theme:t}){return b.jsx("div",{"data-testid":"toast-container",className:t.classes,children:r})}const st=r=>r.sort((n,s)=>s.id-n.id);function qe(){const{toasts:r,dequeueToast:t,reverseStackOrder:n}=Ce(),s=M.useMemo(()=>n?r:st(r),[r,n]),l=a=>{t(a)};return b.jsx("div",{className:"toaster",children:b.jsx(ot,{theme:Te.container,children:s.map((a,c)=>b.jsx(nt,{index:c,content:a.content,type:a.type,onClose:()=>l(a.id)},a.id))})})}const Ke=M.createContext({reverseStackOrder:!1,theme:Te,toasts:[],enqueueToast:()=>{console.log("")},dequeueToast:()=>{console.log("")}}),at=({children:r,domRoot:t,maxToasts:n=3,persist:s=!1,reverseStackOrder:l=!1,timeout:a=3e3,buttonClasses:c,containerClasses:f,iconClasses:u,layoutClasses:m,messageClasses:p})=>{const[h,j]=M.useState([]),[O,F]=M.useState([]),{currentTheme:E}=Jr({buttonClasses:c,containerClasses:f,iconClasses:u,layoutClasses:m,messageClasses:p});M.useEffect(()=>{if(O.length>0&&h.length[...L,D]),F(G),a&&!s&&setTimeout(()=>{S(D.id)},a)}},[O,h,n,s,a,l]);const P=({content:D,type:G})=>{const L={id:Date.now(),content:D,type:G};h.length>=n?F($=>[...$,L]):(j($=>[...$,L]),a&&!s&&setTimeout(()=>{S(L.id)},a))},S=D=>{j(G=>G.filter(L=>L.id!==D))},w={reverseStackOrder:l,theme:E,toasts:h,enqueueToast:P,dequeueToast:S};return b.jsxs(Ke.Provider,{value:w,children:[r,t?dr.createPortal(b.jsx(qe,{}),t):b.jsx(qe,{})]})};V.ToastProvider=at,V.useToast=Ce,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});