(function(P,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],O):(P=typeof globalThis<"u"?globalThis:P||self,O(P.index={},P.React))})(this,function(P,O){"use strict";function Fe(l){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const v in l)if(v!=="default"){const p=Object.getOwnPropertyDescriptor(l,v);Object.defineProperty(d,v,p.get?p:{enumerable:!0,get:()=>l[v]})}}return d.default=l,Object.freeze(d)}const Ae=Fe(O);function $e(l){if(l.__esModule)return l;var d=l.default;if(typeof d=="function"){var v=function p(){return this instanceof p?Reflect.construct(d,arguments,this.constructor):d.apply(this,arguments)};v.prototype=d.prototype}else v={};return Object.defineProperty(v,"__esModule",{value:!0}),Object.keys(l).forEach(function(p){var C=Object.getOwnPropertyDescriptor(l,p);Object.defineProperty(v,p,C.get?C:{enumerable:!0,get:function(){return l[p]}})}),v}var X={exports:{}},Y={};const ie=$e(Ae);/** * @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 ue;function Le(){if(ue)return Y;ue=1;var l=ie,d=Symbol.for("react.element"),v=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,C=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,S={key:!0,ref:!0,__self:!0,__source:!0};function D(j,g,x){var y,m={},_=null,$=null;x!==void 0&&(_=""+x),g.key!==void 0&&(_=""+g.key),g.ref!==void 0&&($=g.ref);for(y in g)p.call(g,y)&&!S.hasOwnProperty(y)&&(m[y]=g[y]);if(j&&j.defaultProps)for(y in g=j.defaultProps,g)m[y]===void 0&&(m[y]=g[y]);return{$$typeof:d,type:j,key:_,ref:$,props:m,_owner:C.current}}return Y.Fragment=v,Y.jsx=D,Y.jsxs=D,Y}var N={};/** * @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 se;function Ie(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){var l=ie,d=Symbol.for("react.element"),v=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),j=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),L=Symbol.iterator,E="@@iterator";function I(e){if(e===null||typeof e!="object")return null;var r=L&&e[L]||e[E];return typeof r=="function"?r:null}var w=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n=1&&f>=0&&a[s]!==b[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==b[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==b[f]){var R=` `+a[s].replace(" at new "," at ");return e.displayName&&R.includes("")&&(R=R.replace("",e.displayName)),typeof e=="function"&&K.set(e,R),R}while(s>=1&&f>=0);break}}}finally{Q=!1,H.current=u,Ke(),Error.prepareStackTrace=i}var W=e?e.displayName||e.name:"",A=W?J(W):"";return typeof e=="function"&&K.set(e,A),A}function Ge(e,r,t){return me(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function z(e,r,t){if(e==null)return"";if(typeof e=="function")return me(e,Xe(e));if(typeof e=="string")return J(e);switch(e){case x:return J("Suspense");case y:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return Ge(e.render);case m:return z(e.type,r,t);case _:{var n=e,i=n._payload,u=n._init;try{return z(u(i),r,t)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,Re={},_e=w.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=z(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}function He(e,r,t,n,i){{var u=Function.call.bind(U);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var b=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(G(i),c("%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).",n||"React class",t,o,typeof a),G(null)),a instanceof Error&&!(a.message in Re)&&(Re[a.message]=!0,G(i),c("Failed %s type: %s",t,a.message),G(null))}}}var Ze=Array.isArray;function ee(e){return Ze(e)}function Qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function er(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function Te(e){if(er(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qe(e)),Ee(e)}var B=w.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0},Oe,Ce,re;re={};function tr(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function nr(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ar(e,r){if(typeof e.ref=="string"&&B.current&&r&&B.current.stateNode!==r){var t=T(B.current.type);re[t]||(c('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',T(B.current.type),e.ref),re[t]=!0)}}function or(e,r){{var t=function(){Oe||(Oe=!0,c("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ir(e,r){{var t=function(){Ce||(Ce=!0,c("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ur=function(e,r,t,n,i,u,o){var a={$$typeof:d,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function sr(e,r,t,n,i){{var u,o={},a=null,b=null;t!==void 0&&(Te(t),a=""+t),nr(r)&&(Te(r.key),a=""+r.key),tr(r)&&(b=r.ref,ar(r,i));for(u in r)U.call(r,u)&&!rr.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||b){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&or(o,f),b&&ir(o,f)}return ur(e,a,b,i,n,B.current,o)}}var te=w.ReactCurrentOwner,je=w.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=z(e.type,e._source,r?r.type:null);je.setExtraStackFrame(t)}else je.setExtraStackFrame(null)}var ne;ne=!1;function ae(e){return typeof e=="object"&&e!==null&&e.$$typeof===d}function we(){{if(te.current){var e=T(te.current.type);if(e)return` Check the render method of \``+e+"`."}return""}}function fr(e){return""}var Se={};function lr(e){{var r=we();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=` Check the top-level render call using <`+t+">.")}return r}}function xe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=lr(r);if(Se[t])return;Se[t]=!0;var n="";e&&e._owner&&e._owner!==te.current&&(n=" It was passed a child from "+T(e._owner.type)+"."),M(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),M(null)}}function Pe(e,r){{if(typeof e!="object")return;if(ee(e))for(var t=0;t",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=sr(e,r,t,i,u);if(f==null)return f;if(o){var R=r.children;if(R!==void 0)if(n)if(ee(R)){for(var W=0;W0?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}";if(!ke[A+oe]){var br=h.length>0?"{"+h.join(": ..., ")+": ...}":"{}";c(`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} />`,oe,A,br,A),ke[A+oe]=!0}}return e===p?dr(f):cr(f),f}}function vr(e,r,t){return De(e,r,t,!0)}function pr(e,r,t){return De(e,r,t,!1)}var gr=pr,yr=vr;N.Fragment=p,N.jsx=gr,N.jsxs=yr}()),N}process.env.NODE_ENV==="production"?X.exports=Le():X.exports=Ie();var k=X.exports;const Me=({className:l,width:d=300,height:v=400,modalColor:p="#fff",modalRadius:C=10,modalPadding:S=10,backgroundColor:D="#0003",clickBackgroundClose:j=!0,closeBtn:g=!0,closeBtnColor:x="#333",open:y,onClose:m,closeAnimationEnd:_,children:$})=>{const L=O.useRef(null),[E,I]=O.useState(""),w=()=>{if(E==="open")I("stop");else if(E==="close")_&&_(),I("");else return};return O.useEffect(()=>{var c;return(c=L.current)==null||c.addEventListener("animationend",w),()=>{var q;(q=L.current)==null||q.removeEventListener("animationend",w)}},[E]),O.useEffect(()=>{y?I("open"):E==="stop"&&I("close")},[y]),k.jsx(k.Fragment,{children:E!==""&&k.jsxs("div",{className:`tuo-fade-modal-container ${E}`,children:[k.jsxs("div",{className:`tuo-fade-modal-content ${l&&l} use-animation`,style:{width:`${d==="auto"?"auto":d+"px"}`,height:`${v==="auto"?"auto":v+"px"}`,padding:`${S}px`,backgroundColor:`${p}`,borderRadius:`${C}px`},children:[g&&k.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-btn",onClick:m,style:{top:`${S}`,right:`${S}`},children:k.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.51992 16.4196C6.22703 16.7125 6.22703 17.1874 6.51992 17.4803C6.81281 17.7732 7.28769 17.7732 7.58058 17.4803L12 13.0609L16.4194 17.4803C16.7123 17.7732 17.1872 17.7732 17.4801 17.4803C17.773 17.1874 17.773 16.7125 17.4801 16.4196L13.0607 12.0002L17.4801 7.58078C17.773 7.28788 17.773 6.81301 17.4801 6.52012C17.1872 6.22722 16.7123 6.22722 16.4194 6.52012L12 10.9395L7.58058 6.52012C7.28769 6.22722 6.81282 6.22722 6.51992 6.52012C6.22703 6.81301 6.22703 7.28788 6.51992 7.58078L10.9393 12.0002L6.51992 16.4196Z",fill:x})}),$]}),k.jsx("div",{ref:L,className:`tuo-fade-modal-background ${E} use-animation`,style:{background:D},onClick:()=>{j&&E==="stop"&&m&&m()}})]})})};P.TuoFadeModal=Me,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}); (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode("@keyframes opacity-open{0%{opacity:0}to{opacity:1}}@keyframes opacity-close{0%{opacity:1}to{opacity:0}}.tuo-fade-modal-container{position:fixed;top:0;left:0;z-index:9999999;width:100svw;height:100svh}.tuo-fade-modal-container .tuo-fade-modal-content{color:#777;position:absolute;top:50%;left:50%;z-index:999999;transform:translate(-50%,-50%)}.tuo-fade-modal-container .tuo-fade-modal-content .close-btn{position:absolute;cursor:pointer}.tuo-fade-modal-container .tuo-fade-modal-background{position:absolute;top:0;left:0;width:100%;height:100%}.tuo-fade-modal-container.open .use-animation{animation:opacity-open .4s both}.tuo-fade-modal-container.close .use-animation{animation:opacity-close .4s both}")),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();