UNPKG

snack-alert

Version:

A simple React toast notification library with Tailwind CSS

98 lines 549 kB
(function(qu,fa){typeof exports=="object"&&typeof module<"u"?fa(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],fa):(qu=typeof globalThis<"u"?globalThis:qu||self,fa(qu["snack-alert"]={},qu.React,qu.ReactDOM))})(this,(function(qu,fa,pS){"use strict";const vS=fa.createContext(null),gS=()=>{const Z=fa.useContext(vS);if(!Z)throw new Error("useAlert must be used within an AlertProvider");return Z};var hp={exports:{}},om={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var SS;function Z2(){if(SS)return om;SS=1;var Z=Symbol.for("react.transitional.element"),it=Symbol.for("react.fragment");function gt(_,Qt,Vt){var Se=null;if(Vt!==void 0&&(Se=""+Vt),Qt.key!==void 0&&(Se=""+Qt.key),"key"in Qt){Vt={};for(var J in Qt)J!=="key"&&(Vt[J]=Qt[J])}else Vt=Qt;return Qt=Vt.ref,{$$typeof:Z,type:_,key:Se,ref:Qt!==void 0?Qt:null,props:Vt}}return om.Fragment=it,om.jsx=gt,om.jsxs=gt,om}var fm={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var bS;function L2(){return bS||(bS=1,process.env.NODE_ENV!=="production"&&(function(){function Z(j){if(j==null)return null;if(typeof j=="function")return j.$$typeof===Qe?null:j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case ye:return"Fragment";case Ka:return"Profiler";case ee:return"StrictMode";case Nl:return"Suspense";case We:return"SuspenseList";case et:return"Activity"}if(typeof j=="object")switch(typeof j.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),j.$$typeof){case Bl:return"Portal";case Dl:return j.displayName||"Context";case Xe:return(j._context.displayName||"Context")+".Consumer";case ba:var k=j.render;return j=j.displayName,j||(j=k.displayName||k.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case xt:return k=j.displayName||null,k!==null?k:Z(j.type)||"Memo";case ol:k=j._payload,j=j._init;try{return Z(j(k))}catch{}}return null}function it(j){return""+j}function gt(j){try{it(j);var k=!1}catch{k=!0}if(k){k=console;var tt=k.error,lt=typeof Symbol=="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return tt.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",lt),it(j)}}function _(j){if(j===ye)return"<>";if(typeof j=="object"&&j!==null&&j.$$typeof===ol)return"<...>";try{var k=Z(j);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function Qt(){var j=Ht.A;return j===null?null:j.getOwner()}function Vt(){return Error("react-stack-top-frame")}function Se(j){if(Rt.call(j,"key")){var k=Object.getOwnPropertyDescriptor(j,"key").get;if(k&&k.isReactWarning)return!1}return j.key!==void 0}function J(j,k){function tt(){O||(O=!0,console.error("%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://react.dev/link/special-props)",k))}tt.isReactWarning=!0,Object.defineProperty(j,"key",{get:tt,configurable:!0})}function be(){var j=Z(this.type);return Q[j]||(Q[j]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),j=this.props.ref,j!==void 0?j:null}function il(j,k,tt,lt,Ne,$a){var pe=tt.ref;return j={$$typeof:Ue,type:j,key:k,props:tt,_owner:lt},(pe!==void 0?pe:null)!==null?Object.defineProperty(j,"ref",{enumerable:!1,get:be}):Object.defineProperty(j,"ref",{enumerable:!1,value:null}),j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(j,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(j,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.defineProperty(j,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$a}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function Ja(j,k,tt,lt,Ne,$a){var pe=k.children;if(pe!==void 0)if(lt)if(xl(pe)){for(lt=0;lt<pe.length;lt++)ft(pe[lt]);Object.freeze&&Object.freeze(pe)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ft(pe);if(Rt.call(k,"key")){pe=Z(j);var Wa=Object.keys(k).filter(function(Wf){return Wf!=="key"});lt=0<Wa.length?"{key: someKey, "+Wa.join(": ..., ")+": ...}":"{key: someKey}",dt[pe+lt]||(Wa=0<Wa.length?"{"+Wa.join(": ..., ")+": ...}":"{}",console.error(`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} />`,lt,pe,Wa,pe),dt[pe+lt]=!0)}if(pe=null,tt!==void 0&&(gt(tt),pe=""+tt),Se(k)&&(gt(k.key),pe=""+k.key),"key"in k){tt={};for(var Ta in k)Ta!=="key"&&(tt[Ta]=k[Ta])}else tt=k;return pe&&J(tt,typeof j=="function"?j.displayName||j.name||"Unknown":j),il(j,pe,tt,Qt(),Ne,$a)}function ft(j){Yt(j)?j._store&&(j._store.validated=1):typeof j=="object"&&j!==null&&j.$$typeof===ol&&(j._payload.status==="fulfilled"?Yt(j._payload.value)&&j._payload.value._store&&(j._payload.value._store.validated=1):j._store&&(j._store.validated=1))}function Yt(j){return typeof j=="object"&&j!==null&&j.$$typeof===Ue}var Re=fa,Ue=Symbol.for("react.transitional.element"),Bl=Symbol.for("react.portal"),ye=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),Ka=Symbol.for("react.profiler"),Xe=Symbol.for("react.consumer"),Dl=Symbol.for("react.context"),ba=Symbol.for("react.forward_ref"),Nl=Symbol.for("react.suspense"),We=Symbol.for("react.suspense_list"),xt=Symbol.for("react.memo"),ol=Symbol.for("react.lazy"),et=Symbol.for("react.activity"),Qe=Symbol.for("react.client.reference"),Ht=Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Rt=Object.prototype.hasOwnProperty,xl=Array.isArray,fl=console.createTask?console.createTask:function(){return null};Re={react_stack_bottom_frame:function(j){return j()}};var O,Q={},L=Re.react_stack_bottom_frame.bind(Re,Vt)(),ct=fl(_(Vt)),dt={};fm.Fragment=ye,fm.jsx=function(j,k,tt){var lt=1e4>Ht.recentlyCreatedOwnerStacks++;return Ja(j,k,tt,!1,lt?Error("react-stack-top-frame"):L,lt?fl(_(j)):ct)},fm.jsxs=function(j,k,tt){var lt=1e4>Ht.recentlyCreatedOwnerStacks++;return Ja(j,k,tt,!0,lt?Error("react-stack-top-frame"):L,lt?fl(_(j)):ct)}})()),fm}var TS;function w2(){return TS||(TS=1,process.env.NODE_ENV==="production"?hp.exports=Z2():hp.exports=L2()),hp.exports}var Ll=w2(),yo=(Z=>(Z.SUCCESS="success",Z.ERROR="error",Z.INFO="info",Z.WARNING="warning",Z))(yo||{});/** * @license lucide-react v0.544.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const J2=Z=>Z.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),K2=Z=>Z.replace(/^([A-Z])|[\s-_]+(\w)/g,(it,gt,_)=>_?_.toUpperCase():gt.toLowerCase()),ES=Z=>{const it=K2(Z);return it.charAt(0).toUpperCase()+it.slice(1)},AS=(...Z)=>Z.filter((it,gt,_)=>!!it&&it.trim()!==""&&_.indexOf(it)===gt).join(" ").trim(),$2=Z=>{for(const it in Z)if(it.startsWith("aria-")||it==="role"||it==="title")return!0};/** * @license lucide-react v0.544.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var W2={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.544.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const k2=fa.forwardRef(({color:Z="currentColor",size:it=24,strokeWidth:gt=2,absoluteStrokeWidth:_,className:Qt="",children:Vt,iconNode:Se,...J},be)=>fa.createElement("svg",{ref:be,...W2,width:it,height:it,stroke:Z,strokeWidth:_?Number(gt)*24/Number(it):gt,className:AS("lucide",Qt),...!Vt&&!$2(J)&&{"aria-hidden":"true"},...J},[...Se.map(([il,Ja])=>fa.createElement(il,Ja)),...Array.isArray(Vt)?Vt:[Vt]]));/** * @license lucide-react v0.544.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sm=(Z,it)=>{const gt=fa.forwardRef(({className:_,...Qt},Vt)=>fa.createElement(k2,{ref:Vt,iconNode:it,className:AS(`lucide-${J2(ES(Z))}`,`lucide-${Z}`,_),...Qt}));return gt.displayName=ES(Z),gt};/** * @license lucide-react v0.544.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F2=sm("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @license lucide-react v0.544.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const I2=sm("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** * @license lucide-react v0.544.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const P2=sm("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** * @license lucide-react v0.544.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tT=sm("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.544.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const eT=sm("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function lT({show:Z,message:it,type:gt,clearAlert:_}){return Ll.jsx("div",{className:`alert-container ${Z?"show":"hide"}`,children:Ll.jsxs("div",{className:`alert alert-${gt}`,children:[Ll.jsxs("span",{className:"alert-icon",children:[gt===yo.SUCCESS?Ll.jsx(I2,{className:"size-[22px]"}):null,gt===yo.ERROR?Ll.jsx(tT,{className:"size-[22px]"}):null,gt===yo.INFO?Ll.jsx(P2,{className:"size-[22px]"}):null,gt===yo.WARNING?Ll.jsx(F2,{className:"size-[22px]"}):null]}),Ll.jsx("span",{className:"alert-message",children:it}),Ll.jsx("div",{className:"ml-2",onClick:_,children:Ll.jsx(eT,{className:"size-[16px] cursor-pointer"})})]})})}function zS(){const{show:Z,message:it,type:gt,clearAlert:_}=gS();return Ll.jsx(lT,{show:Z,message:it,type:gt,clearAlert:_})}const DS=({children:Z})=>{const it=fa.useRef(null),[gt,_]=fa.useState(null),Qt=()=>{it.current&&(clearTimeout(it.current),it.current=null),_(Se=>Se?{...Se,show:!1}:null),setTimeout(()=>{_(null)},300)},Vt=({message:Se,type:J=yo.INFO})=>{it.current&&(clearTimeout(it.current),it.current=null),_({show:!0,message:Se,type:J,clearAlert:Qt}),it.current=setTimeout(()=>{_(be=>be?{...be,show:!1}:null),it.current=setTimeout(()=>{_(null),it.current=null},300)},3e3)};return Ll.jsxs(vS.Provider,{value:{show:gt?.show??!1,message:gt?.message??"",type:gt?.type??yo.INFO,showAlert:Vt,clearAlert:Qt},children:[Z,Ll.jsx(zS,{})]})},aT=Z=>()=>Ll.jsx(DS,{children:Ll.jsx(Z,{})});var mp={exports:{}},rm={},yp={exports:{}},Qg={};/** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var OS;function nT(){return OS||(OS=1,(function(Z){function it(O,Q){var L=O.length;O.push(Q);t:for(;0<L;){var ct=L-1>>>1,dt=O[ct];if(0<Qt(dt,Q))O[ct]=Q,O[L]=dt,L=ct;else break t}}function gt(O){return O.length===0?null:O[0]}function _(O){if(O.length===0)return null;var Q=O[0],L=O.pop();if(L!==Q){O[0]=L;t:for(var ct=0,dt=O.length,j=dt>>>1;ct<j;){var k=2*(ct+1)-1,tt=O[k],lt=k+1,Ne=O[lt];if(0>Qt(tt,L))lt<dt&&0>Qt(Ne,tt)?(O[ct]=Ne,O[lt]=L,ct=lt):(O[ct]=tt,O[k]=L,ct=k);else if(lt<dt&&0>Qt(Ne,L))O[ct]=Ne,O[lt]=L,ct=lt;else break t}}return Q}function Qt(O,Q){var L=O.sortIndex-Q.sortIndex;return L!==0?L:O.id-Q.id}if(Z.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Vt=performance;Z.unstable_now=function(){return Vt.now()}}else{var Se=Date,J=Se.now();Z.unstable_now=function(){return Se.now()-J}}var be=[],il=[],Ja=1,ft=null,Yt=3,Re=!1,Ue=!1,Bl=!1,ye=!1,ee=typeof setTimeout=="function"?setTimeout:null,Ka=typeof clearTimeout=="function"?clearTimeout:null,Xe=typeof setImmediate<"u"?setImmediate:null;function Dl(O){for(var Q=gt(il);Q!==null;){if(Q.callback===null)_(il);else if(Q.startTime<=O)_(il),Q.sortIndex=Q.expirationTime,it(be,Q);else break;Q=gt(il)}}function ba(O){if(Bl=!1,Dl(O),!Ue)if(gt(be)!==null)Ue=!0,Nl||(Nl=!0,Ht());else{var Q=gt(il);Q!==null&&fl(ba,Q.startTime-O)}}var Nl=!1,We=-1,xt=5,ol=-1;function et(){return ye?!0:!(Z.unstable_now()-ol<xt)}function Qe(){if(ye=!1,Nl){var O=Z.unstable_now();ol=O;var Q=!0;try{t:{Ue=!1,Bl&&(Bl=!1,Ka(We),We=-1),Re=!0;var L=Yt;try{e:{for(Dl(O),ft=gt(be);ft!==null&&!(ft.expirationTime>O&&et());){var ct=ft.callback;if(typeof ct=="function"){ft.callback=null,Yt=ft.priorityLevel;var dt=ct(ft.expirationTime<=O);if(O=Z.unstable_now(),typeof dt=="function"){ft.callback=dt,Dl(O),Q=!0;break e}ft===gt(be)&&_(be),Dl(O)}else _(be);ft=gt(be)}if(ft!==null)Q=!0;else{var j=gt(il);j!==null&&fl(ba,j.startTime-O),Q=!1}}break t}finally{ft=null,Yt=L,Re=!1}Q=void 0}}finally{Q?Ht():Nl=!1}}}var Ht;if(typeof Xe=="function")Ht=function(){Xe(Qe)};else if(typeof MessageChannel<"u"){var Rt=new MessageChannel,xl=Rt.port2;Rt.port1.onmessage=Qe,Ht=function(){xl.postMessage(null)}}else Ht=function(){ee(Qe,0)};function fl(O,Q){We=ee(function(){O(Z.unstable_now())},Q)}Z.unstable_IdlePriority=5,Z.unstable_ImmediatePriority=1,Z.unstable_LowPriority=4,Z.unstable_NormalPriority=3,Z.unstable_Profiling=null,Z.unstable_UserBlockingPriority=2,Z.unstable_cancelCallback=function(O){O.callback=null},Z.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<O?Math.floor(1e3/O):5},Z.unstable_getCurrentPriorityLevel=function(){return Yt},Z.unstable_next=function(O){switch(Yt){case 1:case 2:case 3:var Q=3;break;default:Q=Yt}var L=Yt;Yt=Q;try{return O()}finally{Yt=L}},Z.unstable_requestPaint=function(){ye=!0},Z.unstable_runWithPriority=function(O,Q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var L=Yt;Yt=O;try{return Q()}finally{Yt=L}},Z.unstable_scheduleCallback=function(O,Q,L){var ct=Z.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?ct+L:ct):L=ct,O){case 1:var dt=-1;break;case 2:dt=250;break;case 5:dt=1073741823;break;case 4:dt=1e4;break;default:dt=5e3}return dt=L+dt,O={id:Ja++,callback:Q,priorityLevel:O,startTime:L,expirationTime:dt,sortIndex:-1},L>ct?(O.sortIndex=L,it(il,O),gt(be)===null&&O===gt(il)&&(Bl?(Ka(We),We=-1):Bl=!0,fl(ba,L-ct))):(O.sortIndex=dt,it(be,O),Ue||Re||(Ue=!0,Nl||(Nl=!0,Ht()))),O},Z.unstable_shouldYield=et,Z.unstable_wrapCallback=function(O){var Q=Yt;return function(){var L=Yt;Yt=Q;try{return O.apply(this,arguments)}finally{Yt=L}}}})(Qg)),Qg}var Vg={};/** * @license React * scheduler.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var MS;function uT(){return MS||(MS=1,(function(Z){process.env.NODE_ENV!=="production"&&(function(){function it(){if(ba=!1,ol){var O=Z.unstable_now();Ht=O;var Q=!0;try{t:{Xe=!1,Dl&&(Dl=!1,We(et),et=-1),Ka=!0;var L=ee;try{e:{for(Se(O),ye=_(Re);ye!==null&&!(ye.expirationTime>O&&be());){var ct=ye.callback;if(typeof ct=="function"){ye.callback=null,ee=ye.priorityLevel;var dt=ct(ye.expirationTime<=O);if(O=Z.unstable_now(),typeof dt=="function"){ye.callback=dt,Se(O),Q=!0;break e}ye===_(Re)&&Qt(Re),Se(O)}else Qt(Re);ye=_(Re)}if(ye!==null)Q=!0;else{var j=_(Ue);j!==null&&il(J,j.startTime-O),Q=!1}}break t}finally{ye=null,ee=L,Ka=!1}Q=void 0}}finally{Q?Rt():ol=!1}}}function gt(O,Q){var L=O.length;O.push(Q);t:for(;0<L;){var ct=L-1>>>1,dt=O[ct];if(0<Vt(dt,Q))O[ct]=Q,O[L]=dt,L=ct;else break t}}function _(O){return O.length===0?null:O[0]}function Qt(O){if(O.length===0)return null;var Q=O[0],L=O.pop();if(L!==Q){O[0]=L;t:for(var ct=0,dt=O.length,j=dt>>>1;ct<j;){var k=2*(ct+1)-1,tt=O[k],lt=k+1,Ne=O[lt];if(0>Vt(tt,L))lt<dt&&0>Vt(Ne,tt)?(O[ct]=Ne,O[lt]=L,ct=lt):(O[ct]=tt,O[k]=L,ct=k);else if(lt<dt&&0>Vt(Ne,L))O[ct]=Ne,O[lt]=L,ct=lt;else break t}}return Q}function Vt(O,Q){var L=O.sortIndex-Q.sortIndex;return L!==0?L:O.id-Q.id}function Se(O){for(var Q=_(Ue);Q!==null;){if(Q.callback===null)Qt(Ue);else if(Q.startTime<=O)Qt(Ue),Q.sortIndex=Q.expirationTime,gt(Re,Q);else break;Q=_(Ue)}}function J(O){if(Dl=!1,Se(O),!Xe)if(_(Re)!==null)Xe=!0,ol||(ol=!0,Rt());else{var Q=_(Ue);Q!==null&&il(J,Q.startTime-O)}}function be(){return ba?!0:!(Z.unstable_now()-Ht<Qe)}function il(O,Q){et=Nl(function(){O(Z.unstable_now())},Q)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Z.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Ja=performance;Z.unstable_now=function(){return Ja.now()}}else{var ft=Date,Yt=ft.now();Z.unstable_now=function(){return ft.now()-Yt}}var Re=[],Ue=[],Bl=1,ye=null,ee=3,Ka=!1,Xe=!1,Dl=!1,ba=!1,Nl=typeof setTimeout=="function"?setTimeout:null,We=typeof clearTimeout=="function"?clearTimeout:null,xt=typeof setImmediate<"u"?setImmediate:null,ol=!1,et=-1,Qe=5,Ht=-1;if(typeof xt=="function")var Rt=function(){xt(it)};else if(typeof MessageChannel<"u"){var xl=new MessageChannel,fl=xl.port2;xl.port1.onmessage=it,Rt=function(){fl.postMessage(null)}}else Rt=function(){Nl(it,0)};Z.unstable_IdlePriority=5,Z.unstable_ImmediatePriority=1,Z.unstable_LowPriority=4,Z.unstable_NormalPriority=3,Z.unstable_Profiling=null,Z.unstable_UserBlockingPriority=2,Z.unstable_cancelCallback=function(O){O.callback=null},Z.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Qe=0<O?Math.floor(1e3/O):5},Z.unstable_getCurrentPriorityLevel=function(){return ee},Z.unstable_next=function(O){switch(ee){case 1:case 2:case 3:var Q=3;break;default:Q=ee}var L=ee;ee=Q;try{return O()}finally{ee=L}},Z.unstable_requestPaint=function(){ba=!0},Z.unstable_runWithPriority=function(O,Q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var L=ee;ee=O;try{return Q()}finally{ee=L}},Z.unstable_scheduleCallback=function(O,Q,L){var ct=Z.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?ct+L:ct):L=ct,O){case 1:var dt=-1;break;case 2:dt=250;break;case 5:dt=1073741823;break;case 4:dt=1e4;break;default:dt=5e3}return dt=L+dt,O={id:Bl++,callback:Q,priorityLevel:O,startTime:L,expirationTime:dt,sortIndex:-1},L>ct?(O.sortIndex=L,gt(Ue,O),_(Re)===null&&O===_(Ue)&&(Dl?(We(et),et=-1):Dl=!0,il(J,L-ct))):(O.sortIndex=dt,gt(Re,O),Xe||Ka||(Xe=!0,ol||(ol=!0,Rt()))),O},Z.unstable_shouldYield=be,Z.unstable_wrapCallback=function(O){var Q=ee;return function(){var L=ee;ee=Q;try{return O.apply(this,arguments)}finally{ee=L}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Vg)),Vg}var RS;function US(){return RS||(RS=1,process.env.NODE_ENV==="production"?yp.exports=nT():yp.exports=uT()),yp.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var _S;function cT(){if(_S)return rm;_S=1;var Z=US(),it=fa,gt=pS;function _(l){var n="https://react.dev/errors/"+l;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)n+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+l+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Qt(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function Vt(l){var n=l,u=l;if(l.alternate)for(;n.return;)n=n.return;else{l=n;do n=l,(n.flags&4098)!==0&&(u=n.return),l=n.return;while(l)}return n.tag===3?u:null}function Se(l){if(l.tag===13){var n=l.memoizedState;if(n===null&&(l=l.alternate,l!==null&&(n=l.memoizedState)),n!==null)return n.dehydrated}return null}function J(l){if(l.tag===31){var n=l.memoizedState;if(n===null&&(l=l.alternate,l!==null&&(n=l.memoizedState)),n!==null)return n.dehydrated}return null}function be(l){if(Vt(l)!==l)throw Error(_(188))}function il(l){var n=l.alternate;if(!n){if(n=Vt(l),n===null)throw Error(_(188));return n!==l?null:l}for(var u=l,i=n;;){var s=u.return;if(s===null)break;var r=s.alternate;if(r===null){if(i=s.return,i!==null){u=i;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===u)return be(s),l;if(r===i)return be(s),n;r=r.sibling}throw Error(_(188))}if(u.return!==i.return)u=s,i=r;else{for(var m=!1,v=s.child;v;){if(v===u){m=!0,u=s,i=r;break}if(v===i){m=!0,i=s,u=r;break}v=v.sibling}if(!m){for(v=r.child;v;){if(v===u){m=!0,u=r,i=s;break}if(v===i){m=!0,i=r,u=s;break}v=v.sibling}if(!m)throw Error(_(189))}}if(u.alternate!==i)throw Error(_(190))}if(u.tag!==3)throw Error(_(188));return u.stateNode.current===u?l:n}function Ja(l){var n=l.tag;if(n===5||n===26||n===27||n===6)return l;for(l=l.child;l!==null;){if(n=Ja(l),n!==null)return n;l=l.sibling}return null}var ft=Object.assign,Yt=Symbol.for("react.element"),Re=Symbol.for("react.transitional.element"),Ue=Symbol.for("react.portal"),Bl=Symbol.for("react.fragment"),ye=Symbol.for("react.strict_mode"),ee=Symbol.for("react.profiler"),Ka=Symbol.for("react.consumer"),Xe=Symbol.for("react.context"),Dl=Symbol.for("react.forward_ref"),ba=Symbol.for("react.suspense"),Nl=Symbol.for("react.suspense_list"),We=Symbol.for("react.memo"),xt=Symbol.for("react.lazy"),ol=Symbol.for("react.activity"),et=Symbol.for("react.memo_cache_sentinel"),Qe=Symbol.iterator;function Ht(l){return l===null||typeof l!="object"?null:(l=Qe&&l[Qe]||l["@@iterator"],typeof l=="function"?l:null)}var Rt=Symbol.for("react.client.reference");function xl(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Rt?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Bl:return"Fragment";case ee:return"Profiler";case ye:return"StrictMode";case ba:return"Suspense";case Nl:return"SuspenseList";case ol:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case Ue:return"Portal";case Xe:return l.displayName||"Context";case Ka:return(l._context.displayName||"Context")+".Consumer";case Dl:var n=l.render;return l=l.displayName,l||(l=n.displayName||n.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case We:return n=l.displayName||null,n!==null?n:xl(l.type)||"Memo";case xt:n=l._payload,l=l._init;try{return xl(l(n))}catch{}}return null}var fl=Array.isArray,O=it.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L={pending:!1,data:null,method:null,action:null},ct=[],dt=-1;function j(l){return{current:l}}function k(l){0>dt||(l.current=ct[dt],ct[dt]=null,dt--)}function tt(l,n){dt++,ct[dt]=l.current,l.current=n}var lt=j(null),Ne=j(null),$a=j(null),pe=j(null);function Wa(l,n){switch(tt($a,n),tt(Ne,l),tt(lt,null),n.nodeType){case 9:case 11:l=(l=n.documentElement)&&(l=l.namespaceURI)?Hv(l):0;break;default:if(l=n.tagName,n=n.namespaceURI)n=Hv(n),l=o0(n,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}k(lt),tt(lt,l)}function Ta(){k(lt),k(Ne),k($a)}function Wf(l){l.memoizedState!==null&&tt(pe,l);var n=lt.current,u=o0(n,l.type);n!==u&&(tt(Ne,l),tt(lt,u))}function W(l){Ne.current===l&&(k(lt),k(Ne)),pe.current===l&&(k(pe),rr._currentValue=L)}var kf,Ff;function wn(l){if(kf===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);kf=n&&n[1]||"",Ff=-1<u.stack.indexOf(` at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return` `+kf+l+Ff}var li=!1;function le(l,n){if(!l||li)return"";li=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(n){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(x){var C=x}Reflect.construct(l,[],X)}else{try{X.call()}catch(x){C=x}l.call(X.prototype)}}else{try{throw Error()}catch(x){C=x}(X=l())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(x){if(x&&C&&typeof x.stack=="string")return[x.stack,C.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=i.DetermineComponentFrameRoot(),m=r[0],v=r[1];if(m&&v){var T=m.split(` `),U=v.split(` `);for(s=i=0;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(i===T.length||s===U.length)for(i=T.length-1,s=U.length-1;1<=i&&0<=s&&T[i]!==U[s];)s--;for(;1<=i&&0<=s;i--,s--)if(T[i]!==U[s]){if(i!==1||s!==1)do if(i--,s--,0>s||T[i]!==U[s]){var q=` `+T[i].replace(" at new "," at ");return l.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",l.displayName)),q}while(1<=i&&0<=s);break}}}finally{li=!1,Error.prepareStackTrace=u}return(u=l?l.displayName||l.name:"")?wn(u):""}function hm(l,n){switch(l.tag){case 26:case 27:case 5:return wn(l.type);case 16:return wn("Lazy");case 13:return l.child!==n&&n!==null?wn("Suspense Fallback"):wn("Suspense");case 19:return wn("SuspenseList");case 0:case 15:return le(l.type,!1);case 11:return le(l.type.render,!1);case 1:return le(l.type,!0);case 31:return wn("Activity");default:return""}}function jr(l){try{var n="",u=null;do n+=hm(l,u),u=l,l=l.return;while(l);return n}catch(i){return` Error generating stack: `+i.message+` `+i.stack}}var mm=Object.prototype.hasOwnProperty,fe=Z.unstable_scheduleCallback,ym=Z.unstable_cancelCallback,ai=Z.unstable_shouldYield,Gr=Z.unstable_requestPaint,Ol=Z.unstable_now,Zg=Z.unstable_getCurrentPriorityLevel,Xr=Z.unstable_ImmediatePriority,Qr=Z.unstable_UserBlockingPriority,mc=Z.unstable_NormalPriority,Lg=Z.unstable_LowPriority,pm=Z.unstable_IdlePriority,pp=Z.log,vp=Z.unstable_setDisableYieldValue,ni=null,sa=null;function Yu(l){if(typeof pp=="function"&&vp(l),sa&&typeof sa.setStrictMode=="function")try{sa.setStrictMode(ni,l)}catch{}}var wl=Math.clz32?Math.clz32:vm,gp=Math.log,Sp=Math.LN2;function vm(l){return l>>>=0,l===0?32:31-(gp(l)/Sp|0)|0}var ju=256,mn=262144,yc=4194304;function ka(l){var n=l&42;if(n!==0)return n;switch(l&-l){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Ve(l,n,u){var i=l.pendingLanes;if(i===0)return 0;var s=0,r=l.suspendedLanes,m=l.pingedLanes;l=l.warmLanes;var v=i&134217727;return v!==0?(i=v&~r,i!==0?s=ka(i):(m&=v,m!==0?s=ka(m):u||(u=v&~l,u!==0&&(s=ka(u))))):(v=i&~r,v!==0?s=ka(v):m!==0?s=ka(m):u||(u=i&~l,u!==0&&(s=ka(u)))),s===0?0:n!==0&&n!==s&&(n&r)===0&&(r=s&-s,u=n&-n,r>=u||r===32&&(u&4194048)!==0)?n:s}function yn(l,n){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&n)===0}function po(l,n){switch(l){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ui(){var l=yc;return yc<<=1,(yc&62914560)===0&&(yc=4194304),l}function If(l){for(var n=[],u=0;31>u;u++)n.push(l);return n}function vo(l,n){l.pendingLanes|=n,n!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Vr(l,n,u,i,s,r){var m=l.pendingLanes;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=u,l.entangledLanes&=u,l.errorRecoveryDisabledLanes&=u,l.shellSuspendCounter=0;var v=l.entanglements,T=l.expirationTimes,U=l.hiddenUpdates;for(u=m&~u;0<u;){var q=31-wl(u),X=1<<q;v[q]=0,T[q]=-1;var C=U[q];if(C!==null)for(U[q]=null,q=0;q<C.length;q++){var x=C[q];x!==null&&(x.lane&=-536870913)}u&=~X}i!==0&&Pf(l,i,0),r!==0&&s===0&&l.tag!==0&&(l.suspendedLanes|=r&~(m&~n))}function Pf(l,n,u){l.pendingLanes|=n,l.suspendedLanes&=~n;var i=31-wl(n);l.entangledLanes|=n,l.entanglements[i]=l.entanglements[i]|1073741824|u&261930}function Jn(l,n){var u=l.entangledLanes|=n;for(l=l.entanglements;u;){var i=31-wl(u),s=1<<i;s&n|l[i]&n&&(l[i]|=n),u&=~s}}function Ea(l,n){var u=n&-n;return u=(u&42)!==0?1:Zr(u),(u&(l.suspendedLanes|n))!==0?0:u}function Zr(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function gm(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function Lr(){var l=Q.p;return l!==0?l:(l=window.event,l===void 0?32:dr(l.type))}function Sm(l,n){var u=Q.p;try{return Q.p=l,n()}finally{Q.p=u}}var pn=Math.random().toString(36).slice(2),ae="__reactFiber$"+pn,Jl="__reactProps$"+pn,pc="__reactContainer$"+pn,wr="__reactEvents$"+pn,bm="__reactListeners$"+pn,bp="__reactHandles$"+pn,Tm="__reactResources$"+pn,Kn="__reactMarker$"+pn;function Jr(l){delete l[ae],delete l[Jl],delete l[wr],delete l[bm],delete l[bp]}function ci(l){var n=l[ae];if(n)return n;for(var u=l.parentNode;u;){if(n=u[pc]||u[ae]){if(u=n.alternate,n.child!==null||u!==null&&u.child!==null)for(l=Yn(l);l!==null;){if(u=l[ae])return u;l=Yn(l)}return n}l=u,u=l.parentNode}return null}function ii(l){if(l=l[ae]||l[pc]){var n=l.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return l}return null}function go(l){var n=l.tag;if(n===5||n===26||n===27||n===6)return l.stateNode;throw Error(_(33))}function oi(l){var n=l[Tm];return n||(n=l[Tm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function kt(l){l[Kn]=!0}var fi=new Set,vc={};function gc(l,n){$n(l,n),$n(l+"Capture",n)}function $n(l,n){for(vc[l]=n,l=0;l<n.length;l++)fi.add(n[l])}var Kr=RegExp("^[: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]*$"),$r={},So={};function bo(l){return mm.call(So,l)?!0:mm.call($r,l)?!1:Kr.test(l)?So[l]=!0:($r[l]=!0,!1)}function To(l,n,u){if(bo(n))if(u===null)l.removeAttribute(n);else{switch(typeof u){case"undefined":case"function":case"symbol":l.removeAttribute(n);return;case"boolean":var i=n.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){l.removeAttribute(n);return}}l.setAttribute(n,""+u)}}function Wr(l,n,u){if(u===null)l.removeAttribute(n);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(n);return}l.setAttribute(n,""+u)}}function Gu(l,n,u,i){if(i===null)l.removeAttribute(u);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(u);return}l.setAttributeNS(n,u,""+i)}}function Aa(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function kr(l){var n=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Em(l,n,u){var i=Object.getOwnPropertyDescriptor(l.constructor.prototype,n);if(!l.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,r=i.set;return Object.defineProperty(l,n,{configurable:!0,get:function(){return s.call(this)},set:function(m){u=""+m,r.call(this,m)}}),Object.defineProperty(l,n,{enumerable:i.enumerable}),{getValue:function(){return u},setValue:function(m){u=""+m},stopTracking:function(){l._valueTracker=null,delete l[n]}}}}function Fr(l){if(!l._valueTracker){var n=kr(l)?"checked":"value";l._valueTracker=Em(l,n,""+l[n])}}function Am(l){if(!l)return!1;var n=l._valueTracker;if(!n)return!0;var u=n.getValue(),i="";return l&&(i=kr(l)?l.checked?"true":"false":l.value),l=i,l!==u?(n.setValue(l),!0):!1}function ts(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var wg=/[\n"\\]/g;function za(l){return l.replace(wg,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function es(l,n,u,i,s,r,m,v){l.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?l.type=m:l.removeAttribute("type"),n!=null?m==="number"?(n===0&&l.value===""||l.value!=n)&&(l.value=""+Aa(n)):l.value!==""+Aa(n)&&(l.value=""+Aa(n)):m!=="submit"&&m!=="reset"||l.removeAttribute("value"),n!=null?si(l,m,Aa(n)):u!=null?si(l,m,Aa(u)):i!=null&&l.removeAttribute("value"),s==null&&r!=null&&(l.defaultChecked=!!r),s!=null&&(l.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?l.name=""+Aa(v):l.removeAttribute("name")}function ls(l,n,u,i,s,r,m,v){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(l.type=r),n!=null||u!=null){if(!(r!=="submit"&&r!=="reset"||n!=null)){Fr(l);return}u=u!=null?""+Aa(u):"",n=n!=null?""+Aa(n):u,v||n===l.value||(l.value=n),l.defaultValue=n}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,l.checked=v?l.checked:!!i,l.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(l.name=m),Fr(l)}function si(l,n,u){n==="number"&&ts(l.ownerDocument)===l||l.defaultValue===""+u||(l.defaultValue=""+u)}function Eo(l,n,u,i){if(l=l.options,n){n={};for(var s=0;s<u.length;s++)n["$"+u[s]]=!0;for(u=0;u<l.length;u++)s=n.hasOwnProperty("$"+l[u].value),l[u].selected!==s&&(l[u].selected=s),s&&i&&(l[u].defaultSelected=!0)}else{for(u=""+Aa(u),n=null,s=0;s<l.length;s++){if(l[s].value===u){l[s].selected=!0,i&&(l[s].defaultSelected=!0);return}n!==null||l[s].disabled||(n=l[s])}n!==null&&(n.selected=!0)}}function zm(l,n,u){if(n!=null&&(n=""+Aa(n),n!==l.value&&(l.value=n),u==null)){l.defaultValue!==n&&(l.defaultValue=n);return}l.defaultValue=u!=null?""+Aa(u):""}function Dm(l,n,u,i){if(n==null){if(i!=null){if(u!=null)throw Error(_(92));if(fl(i)){if(1<i.length)throw Error(_(93));i=i[0]}u=i}u==null&&(u=""),n=u}u=Aa(n),l.defaultValue=u,i=l.textContent,i===u&&i!==""&&i!==null&&(l.value=i),Fr(l)}function Wn(l,n){if(n){var u=l.firstChild;if(u&&u===l.lastChild&&u.nodeType===3){u.nodeValue=n;return}}l.textContent=n}var Tp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ep(l,n,u){var i=n.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?i?l.setProperty(n,""):n==="float"?l.cssFloat="":l[n]="":i?l.setProperty(n,u):typeof u!="number"||u===0||Tp.has(n)?n==="float"?l.cssFloat=u:l[n]=(""+u).trim():l[n]=u+"px"}function Ap(l,n,u){if(n!=null&&typeof n!="object")throw Error(_(62));if(l=l.style,u!=null){for(var i in u)!u.hasOwnProperty(i)||n!=null&&n.hasOwnProperty(i)||(i.indexOf("--")===0?l.setProperty(i,""):i==="float"?l.cssFloat="":l[i]="");for(var s in n)i=n[s],n.hasOwnProperty(s)&&u[s]!==i&&Ep(l,s,i)}else for(var r in n)n.hasOwnProperty(r)&&Ep(l,r,n[r])}function Om(l){if(l.indexOf("-")===-1)return!1;switch(l){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 Jg=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),as=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Fa(l){return as.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function vn(){}var Ir=null;function Pr(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var kn=null,ri=null;function ns(l){var n=ii(l);if(n&&(l=n.stateNode)){var u=l[Jl]||null;t:switch(l=n.stateNode,n.type){case"input":if(es(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),n=u.name,u.type==="radio"&&n!=null){for(u=l;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+za(""+n)+'"][type="radio"]'),n=0;n<u.length;n++){var i=u[n];if(i!==l&&i.form===l.form){var s=i[Jl]||null;if(!s)throw Error(_(90));es(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(n=0;n<u.length;n++)i=u[n],i.form===l.form&&Am(i)}break t;case"textarea":zm(l,u.value,u.defaultValue);break t;case"select":n=u.value,n!=null&&Eo(l,!!u.multiple,n,!1)}}}var Ao=!1;function Mm(l,n,u){if(Ao)return l(n,u);Ao=!0;try{var i=l(n);return i}finally{if(Ao=!1,(kn!==null||ri!==null)&&(uf(),kn&&(n=kn,l=ri,ri=kn=null,ns(n),l)))for(n=0;n<l.length;n++)ns(l[n])}}function sl(l,n){var u=l.stateNode;if(u===null)return null;var i=u[Jl]||null;if(i===null)return null;u=i[n];t:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(l=l.type,i=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!i;break t;default:l=!1}if(l)return null;if(u&&typeof u!="function")throw Error(_(231,n,typeof u));return u}var Xu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),us=!1;if(Xu)try{var zo={};Object.defineProperty(zo,"passive",{get:function(){us=!0}}),window.addEventListener("test",zo,zo),window.removeEventListener("test",zo,zo)}catch{us=!1}var Qu=null,Rm=null,td=null;function Um(){if(td)return td;var l,n=Rm,u=n.length,i,s="value"in Qu?Qu.value:Qu.textContent,r=s.length;for(l=0;l<u&&n[l]===s[l];l++);var m=u-l;for(i=1;i<=m&&n[u-i]===s[r-i];i++);return td=s.slice(l,1<i?1-i:void 0)}function ed(l){var n=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&n===13&&(l=13)):l=n,l===10&&(l=13),32<=l||l===13?l:0}function cs(){return!0}function zp(){return!1}function Ml(l){function n(u,i,s,r,m){this._reactName=u,this._targetInst=s,this.type=i,this.nativeEvent=r,this.target=m,this.currentTarget=null;for(var v in l)l.hasOwnProperty(v)&&(u=l[v],this[v]=u?u(r):r[v]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?cs:zp,this.isPropagationStopped=zp,this}return ft(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=cs)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=cs)},persist:function(){},isPersistent:cs}),n}var Sc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},is=Ml(Sc),Do=ft({},Sc,{view:0,detail:0}),Kg=Ml(Do),_m,Cm,os,ld=ft({},Do,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ia,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==os&&(os&&l.type==="mousemove"?(_m=l.screenX-os.screenX,Cm=l.screenY-os.screenY):Cm=_m=0,os=l),_m)},movementY:function(l){return"movementY"in l?l.movementY:Cm}}),Oo=Ml(ld),Dp=ft({},ld,{dataTransfer:0}),Op=Ml(Dp),Mp=ft({},Do,{relatedTarget:0}),ad=Ml(Mp),Hm=ft({},Sc,{animationName:0,elapsedTime:0,pseudoElement:0}),Rp=Ml(Hm),di=ft({},Sc,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),hi=Ml(di),gn=ft({},Sc,{data:0}),Up=Ml(gn),Bm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_p={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(l){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(l):(l=_p[l])?!!n[l]:!1}function Ia(){return Sn}var nd=ft({},Do,{key:function(l){if(l.key){var n=Bm[l.key]||l.key;if(n!=="Unidentified")return n}return l.type==="keypress"?(l=ed(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?Fn[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ia,charCode:function(l){return l.type==="keypress"?ed(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?ed(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),ud=Ml(nd),Nm=ft({},ld,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bn=Ml(Nm),$g=ft({},Do,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ia}),Cp=Ml($g),Hp=ft({},Sc,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wg=Ml(Hp),xm=ft({},ld,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),kg=Ml(xm),Bp=ft({},Sc,{newState:0,oldState:0}),qm=Ml(Bp),cd=[9,13,27,32],Mo=Xu&&"CompositionEvent"in window,mi=null;Xu&&"documentMode"in document&&(mi=document.documentMode);var ql=Xu&&"TextEvent"in window&&!mi,Ym=Xu&&(!Mo||mi&&8<mi&&11>=mi),fs=" ",bc=!1;function id(l,n){switch(l){case"keyup":return cd.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jm(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var yi=!1;function Np(l,n){switch(l){case"compositionend":return jm(n);case"keypress":return n.which!==32?null:(bc=!0,fs);case"textInput":return l=n.data,l===fs&&bc?null:l;default:return null}}function Fg(l,n){if(yi)return l==="compositionend"||!Mo&&id(l,n)?(l=Um(),td=Rm=Qu=null,yi=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Ym&&n.locale!=="ko"?null:n.data;default:return null}}var Gm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function In(l){var n=l&&l.nodeName&&l.nodeName.toLowerCase();return n==="input"?!!Gm[l.type]:n==="textarea"}function Xm(l,n,u,i){kn?ri?ri.push(i):ri=[i]:kn=i,n=ur(n,"onChange"),0<n.length&&(u=new is("onChange","change",null,u,i),l.push({event:u,listeners:n}))}var pi=null,Tc=null;function vi(l){Uv(l,0)}function Ro(l){var n=go(l);if(Am(n))return l}function Qm(l,n){if(l==="change")return n}var od=!1;if(Xu){var Kl;if(Xu){var Tn="oninput"in document;if(!Tn){var Vm=document.createElement("div");Vm.setAttribute("oninput","return;"),Tn=typeof Vm.oninput=="function"}Kl=Tn}else Kl=!1;od=Kl&&(!document.documentMode||9<document.documentMode)}function fd(){pi&&(pi.detachEvent("onpropertychange",sd),Tc=pi=null)}function sd(l){if(l.propertyName==="value"&&Ro(Tc)){var n=[];Xm(n,Tc,l,Pr(l)),Mm(vi,n)}}function xp(l,n,u){l==="focusin"?(fd(),pi=n,Tc=u,pi.attachEvent("onpropertychange",sd)):l==="focusout"&&fd()}function qp(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Ro(Tc)}function Ec(l,n){if(l==="click")return Ro(n)}function gi(l,n){if(l==="input"||l==="change")return Ro(n)}function Yp(l,n){return l===n&&(l!==0||1/l===1/n)||l!==l&&n!==n}var