vendor: 20,727 bytes, lines 1-34
1function jx(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerpolicy&&(i.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?i.credentials="include":a.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();var So=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lx(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var a=[null];a.push.apply(a,arguments);var i=Function.bind.apply(t,a);return new i}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var ji={},Ax={get exports(){return ji},set exports(e){ji=e}},ll={},x={},Ix={get exports(){return x},set exports(e){x=e}},Ne={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var oo=Symbol.for("react.element"),zx=Symbol.for("react.portal"),Ux=Symbol.for("react.fragment"),Fx=Symbol.for("react.strict_mode"),Bx=Symbol.for("react.profiler"),Wx=Symbol.for("react.provider"),Hx=Symbol.for("react.context"),qx=Symbol.for("react.forward_ref"),Vx=Symbol.for("react.suspense"),Gx=Symbol.for("react.memo"),Yx=Symbol.for("react.lazy"),Gf=Symbol.iterator;function Qx(e){return e===null||typeof e!="object"?null:(e=Gf&&e[Gf]||e["@@iterator"],typeof e=="function"?e:null)}var jp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lp=Object.assign,Ap={};function Ga(e,t,r){this.props=e,this.context=t,this.refs=Ap,this.updater=r||jp}Ga.prototype.isReactComponent={};Ga.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ga.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ip(){}Ip.prototype=Ga.prototype;function yd(e,t,r){this.props=e,this.context=t,this.refs=Ap,this.updater=r||jp}var wd=yd.prototype=new Ip;wd.constructor=yd;Lp(wd,Ga.prototype);wd.isPureReactComponent=!0;var Yf=Array.isArray,zp=Object.prototype.hasOwnProperty,bd={current:null},Up={key:!0,ref:!0,__self:!0,__source:!0};function Fp(e,t,r){var n,a={},i=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)zp.call(t,n)&&!Up.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)a[n]===void 0&&(a[n]=l[n]);return{$$typeof:oo,type:e,key:i,ref:s,props:a,_owner:bd.current}}function Kx(e,t){return{$$typeof:oo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Nd(e){return typeof e=="object"&&e!==null&&e.$$typeof===oo}function Xx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Qf=/\/+/g;function Vl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xx(""+e.key):t.toString(36)}function Go(e,t,r,n,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case oo:case zx:s=!0}}if(s)return s=e,a=a(s),e=n===""?"."+Vl(s,0):n,Yf(a)?(r="",e!=null&&(r=e.replace(Qf,"$&/")+"/"),Go(a,t,r,"",function(u){return u})):a!=null&&(Nd(a)&&(a=Kx(a,r+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(Qf,"$&/")+"/")+e)),t.push(a)),1;if(s=0,n=n===""?".":n+":",Yf(e))for(var l=0;l<e.length;l++){i=e[l];var c=n+Vl(i,l);s+=Go(i,t,r,c,a)}else if(c=Qx(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=n+Vl(i,l++),s+=Go(i,t,r,c,a);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function _o(e,t,r){if(e==null)return e;var n=[],a=0;return Go(e,n,"","",function(i){return t.call(r,i,a++)}),n}function Jx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var jt={current:null},Yo={transition:null},Zx={ReactCurrentDispatcher:jt,ReactCurrentBatchConfig:Yo,ReactCurrentOwner:bd};Ne.Children={map:_o,forEach:function(e,t,r){_o(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return _o(e,function(){t++}),t},toArray:function(e){return _o(e,function(t){return t})||[]},only:function(e){if(!Nd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ne.Component=Ga;Ne.Fragment=Ux;Ne.Profiler=Bx;Ne.PureComponent=yd;Ne.StrictMode=Fx;Ne.Suspense=Vx;Ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zx;Ne.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Lp({},e.props),a=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=bd.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)zp.call(t,c)&&!Up.hasOwnProperty(c)&&(n[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:oo,type:e.type,key:a,ref:i,props:n,_owner:s}};Ne.createContext=function(e){return e={$$typeof:Hx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Wx,_context:e},e.Consumer=e};Ne.createElement=Fp;Ne.createFactory=function(e){var t=Fp.bind(null,e);return t.type=e,t};Ne.createRef=function(){return{current:null}};Ne.forwardRef=function(e){return{$$typeof:qx,render:e}};Ne.isValidElement=Nd;Ne.lazy=function(e){return{$$typeof:Yx,_payload:{_status:-1,_result:e},_init:Jx}};Ne.memo=function(e,t){return{$$typeof:Gx,type:e,compare:t===void 0?null:t}};Ne.startTransition=function(e){var t=Yo.transition;Yo.transition={};try{e()}finally{Yo.transition=t}};Ne.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Ne.useCallback=function(e,t){return jt.current.useCallback(e,t)};Ne.useContext=function(e){return jt.current.useContext(e)};Ne.useDebugValue=function(){};Ne.useDeferredValue=function(e){return jt.current.useDeferredValue(e)};Ne.useEffect=function(e,t){return jt.current.useEffect(e,t)};Ne.useId=function(){return jt.current.useId()};Ne.useImperativeHandle=function(e,t,r){return jt.current.useImperativeHandle(e,t,r)};Ne.useInsertionEffect=function(e,t){return jt.current.useInsertionEffect(e,t)};Ne.useLayoutEffect=function(e,t){return jt.current.useLayoutEffect(e,t)};Ne.useMemo=function(e,t){return jt.current.useMemo(e,t)};Ne.useReducer=function(e,t,r){return jt.current.useReducer(e,t,r)};Ne.useRef=function(e){return jt.current.useRef(e)};Ne.useState=function(e){return jt.current.useState(e)};Ne.useSyncExternalStore=function(e,t,r){return jt.current.useSyncExternalStore(e,t,r)};Ne.useTransition=function(){return jt.current.useTransition()};Ne.version="18.2.0";(function(e){e.exports=Ne})(Ix);const cl=$p(x),Bc=jx({__proto__:null,default:cl},[x]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var e1=x,t1=Symbol.for("react.element"),r1=Symbol.for("react.fragment"),n1=Object.prototype.hasOwnProperty,a1=e1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i1={key:!0,ref:!0,__self:!0,__source:!0};function Bp(e,t,r){var n,a={},i=null,s=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)n1.call(t,n)&&!i1.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:t1,type:e,key:i,ref:s,props:a,_owner:a1.current}}ll.Fragment=r1;ll.jsx=Bp;ll.jsxs=Bp;(function(e){e.exports=ll})(Ax);const ye=ji.Fragment,o=ji.jsx,d=ji.jsxs;var Wc={},Hc={},o1={get exports(){return Hc},set exports(e){Hc=e}},Zt={},qc={},s1={get exports(){return qc},set exports(e){qc=e}},Wp={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(U,J){var K=U.length;U.push(J);e:for(;0<K;){var Ce=K-1>>>1,ge=U[Ce];if(0<a(ge,J))U[Ce]=J,U[K]=ge,K=Ce;else break e}}function r(U){return U.length===0?null:U[0]}function n(U){if(U.length===0)return null;var J=U[0],K=U.pop();if(K!==J){U[0]=K;e:for(var Ce=0,ge=U.length,Re=ge>>>1;Ce<Re;){var W=2*(Ce+1)-1,De=U[W],ne=W+1,Ge=U[ne];if(0>a(De,K))ne<ge&&0>a(Ge,De)?(U[Ce]=Ge,U[ne]=K,Ce=ne):(U[Ce]=De,U[W]=K,Ce=W);else if(ne<ge&&0>a(Ge,K))U[Ce]=Ge,U[ne]=K,Ce=ne;else break e}}return J}function a(U,J){var K=U.sortIndex-J.sortIndex;return K!==0?K:U.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],u=[],f=1,g=null,m=3,y=!1,b=!1,w=!1,_=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(U){for(var J=r(u);J!==null;){if(J.callback===null)n(u);else if(J.startTime<=U)n(u),J.sortIndex=J.expirationTime,t(c,J);else break;J=r(u)}}function N(U){if(w=!1,p(U),!b)if(r(c)!==null)b=!0,z(S);else{var J=r(u);J!==null&&ie(N,J.startTime-U)}}function S(U,J){b=!1,w&&(w=!1,v(P),P=-1),y=!0;var K=m;try{for(p(J),g=r(c);g!==null&&(!(g.expirationTime>J)||U&&!M());){var Ce=g.callback;if(typeof Ce=="function"){g.callback=null,m=g.priorityLevel;var ge=Ce(g.expirationTime<=J);J=e.unstable_now(),typeof ge=="function"?g.callback=ge:g===r(c)&&n(c),p(J)}else n(c);g=r(c)}if(g!==null)var Re=!0;else{var W=r(u);W!==null&&ie(N,W.startTime-J),Re=!1}return Re}finally{g=null,m=K,y=!1}}var C=!1,O=null,P=-1,k=5,E=-1;function M(){return!(e.unstable_now()-E<k)}function T(){if(O!==null){var U=e.unstable_now();E=U;var J=!0;try{J=O(!0,U)}finally{J?j():(C=!1,O=null)}}else C=!1}var j;if(typeof h=="function")j=function(){h(T)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,B=A.port2;A.port1.onmessage=T,j=function(){B.postMessage(null)}}else j=function(){_(T,0)};function z(U){O=U,C||(C=!0,j())}function ie(U,J){P=_(function(){U(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,z(S))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(U){switch(m){case 1:case 2:case 3:var J=3;break;default:J=m}var K=m;m=J;try{return U()}finally{m=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,J){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var K=m;m=U;try{return J()}finally{m=K}},e.unstable_scheduleCallback=function(U,J,K){var Ce=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?Ce+K:Ce):K=Ce,U){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=K+ge,U={id:f++,callback:J,priorityLevel:U,startTime:K,expirationTime:ge,sortIndex:-1},K>Ce?(U.sortIndex=K,t(u,U),r(c)===null&&U===r(u)&&(w?(v(P),P=-1):w=!0,ie(N,K-Ce))):(U.sortIndex=ge,t(c,U),b||y||(b=!0,z(S))),U},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(U){var J=m;return function(){var K=m;m=J;try{return U.apply(this,arguments)}finally{m=K}}}})(Wp);(function(e){e.exports=Wp})(s1);/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var Hp=x,Jt=qc;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var qp=new Set,Li={};function Zn(e,t){ja(e,t),ja(e+"Capture",t)}function ja(e,t){for(Li[e]=t,e=0;e<t.length;e++)qp.add(t[e])}var qr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vc=Object.prototype.hasOwnProperty,l1=/^[: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]*$/,Kf={},Xf={};function c1(e){return Vc.call(Xf,e)?!0:Vc.call(Kf,e)?!1:l1.test(e)?Xf[e]=!0:(Kf[e]=!0,!1)}function u1(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function d1(e,t,r,n){if(t===null||typeof t>"u"||u1(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Lt(e,t,r,n,a,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var bt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){bt[e]=new Lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];bt[t]=new Lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){bt[e]=new Lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){bt[e]=new Lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){bt[e]=new Lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){bt[e]=new Lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){bt[e]=new Lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){bt[e]=new Lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){bt[e]=new Lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Sd=/[\-:]([a-z])/g;function _d(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Sd,_d);bt[t]=new Lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Sd,_d);bt[t]=new Lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Sd,_d);bt[t]=new Lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){bt[e]=new Lt(e,1,!1,e.toLowerCase(),null,!1,!1)});bt.xlinkHref=new Lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){bt[e]=new Lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function kd(e,t,r,n){var a=bt.hasOwnProperty(t)?bt[t]:null;(a!==null?a.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(d1(t,r,a,n)&&(r=null),n||a===null?c1(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,n=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Kr=Hp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ko=Symbol.for("react.element"),ma=Symbol.for("react.portal"),ha=Symbol.for("react.fragment"),Cd=Symbol.for("react.strict_mode"),Gc=Symbol.for("react.profiler"),Vp=Symbol.for("react.provider"),Gp=Symbol.for("react.context"),Ed=Symbol.for("react.forward_ref"),Yc=Symbol.for("react.suspense"),Qc=Symbol.for("react.suspense_list"),Od=Symbol.for("react.memo"),sn=Symbol.for("react.lazy"),Yp=Symbol.for("react.offscreen"),Jf=Symbol.iterator;function ii(e){return e===null||typeof e!="object"?null:(e=Jf&&e[Jf]||e["@@iterator"],typeof e=="function"?e:null)}var et=Object.assign,Gl;function vi(e){if(Gl===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Gl=t&&t[1]||""}return` 34`+Gl+e}var Yl=!1;function Ql(e,t){if(!e||Yl)return"";Yl=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}
vendor: 14,090 bytes, lines 34-37
34catch(u){if(u&&n&&typeof u.stack=="string"){for(var a=u.stack.split(` 35`),i=n.stack.split(` 36`),s=a.length-1,l=i.length-1;1<=s&&0<=l&&a[s]!==i[l];)l--;for(;1<=s&&0<=l;s--,l--)if(a[s]!==i[l]){if(s!==1||l!==1)do if(s--,l--,0>l||a[s]!==i[l]){var c=` 37`+a[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=l);break}}}finally{Yl=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?vi(e):""}function f1(e){switch(e.tag){case 5:return vi(e.type);case 16:return vi("Lazy");case 13:return vi("Suspense");case 19:return vi("SuspenseList");case 0:case 2:case 15:return e=Ql(e.type,!1),e;case 11:return e=Ql(e.type.render,!1),e;case 1:return e=Ql(e.type,!0),e;default:return""}}function Kc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ha:return"Fragment";case ma:return"Portal";case Gc:return"Profiler";case Cd:return"StrictMode";case Yc:return"Suspense";case Qc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gp:return(e.displayName||"Context")+".Consumer";case Vp:return(e._context.displayName||"Context")+".Provider";case Ed:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Od:return t=e.displayName||null,t!==null?t:Kc(e.type)||"Memo";case sn:t=e._payload,e=e._init;try{return Kc(e(t))}catch{}}return null}function m1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kc(t);case 8:return t===Cd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h1(e){var t=Qp(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Co(e){e._valueTracker||(e._valueTracker=h1(e))}function Kp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Qp(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ps(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Xc(e,t){var r=t.checked;return et({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Zf(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=kn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xp(e,t){t=t.checked,t!=null&&kd(e,"checked",t,!1)}function Jc(e,t){Xp(e,t);var r=kn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Zc(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function em(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Zc(e,t,r){(t!=="number"||ps(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var xi=Array.isArray;function Ca(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+kn(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function eu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return et({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function tm(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(F(92));if(xi(r)){if(1<r.length)throw Error(F(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:kn(r)}}function Jp(e,t){var r=kn(t.value),n=kn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function rm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zp(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function tu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Eo,eg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Eo=Eo||document.createElement("div"),Eo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Eo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ai(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var _i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},p1=["Webkit","ms","Moz","O"];Object.keys(_i).forEach(function(e){p1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_i[t]=_i[e]})});function tg(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||_i.hasOwnProperty(e)&&_i[e]?(""+t).trim():t+"px"}function rg(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=tg(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var g1=et({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ru(e,t){if(t){if(g1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function nu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var au=null;function Pd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var iu=null,Ea=null,Oa=null;function nm(e){if(e=co(e)){if(typeof iu!="function")throw Error(F(280));var t=e.stateNode;t&&(t=hl(t),iu(e.stateNode,e.type,t))}}function ng(e){Ea?Oa?Oa.push(e):Oa=[e]:Ea=e}function ag(){if(Ea){var e=Ea,t=Oa;if(Oa=Ea=null,nm(e),t)for(e=0;e<t.length;e++)nm(t[e])}}function ig(e,t){return e(t)}function og(){}var Kl=!1;function sg(e,t,r){if(Kl)return e(t,r);Kl=!0;try{return ig(e,t,r)}finally{Kl=!1,(Ea!==null||Oa!==null)&&(og(),ag())}}function Ii(e,t){var r=e.stateNode;if(r===null)return null;var n=hl(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(F(231,t,typeof r));return r}var ou=!1;if(qr)try{var oi={};Object.defineProperty(oi,"passive",{get:function(){ou=!0}}),window.addEventListener("test",oi,oi),window.removeEventListener("test",oi,oi)}catch{ou=!1}function v1(e,t,r,n,a,i,s,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(f){this.onError(f)}}var ki=!1,gs=null,vs=!1,su=null,x1={onError:function(e){ki=!0,gs=e}};function y1(e,t,r,n,a,i,s,l,c){ki=!1,gs=null,v1.apply(x1,arguments)}function w1(e,t,r,n,a,i,s,l,c){if(y1.apply(this,arguments),ki){if(ki){var u=gs;ki=!1,gs=null}else throw Error(F(198));vs||(vs=!0,su=u)}}function ea(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function lg(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function am(e){if(ea(e)!==e)throw Error(F(188))}function b1(e){var t=e.alternate;if(!t){if(t=ea(e),t===null)throw Error(F(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return am(a),e;if(i===n)return am(a),t;i=i.sibling}throw Error(F(188))}if(r.return!==n.return)r=a,n=i;else{for(var s=!1,l=a.child;l;){if(l===r){s=!0,r=a,n=i;break}if(l===n){s=!0,n=a,r=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===r){s=!0,r=i,n=a;break}if(l===n){s=!0,n=i,r=a;break}l=l.sibling}if(!s)throw Error(F(189))}}if(r.alternate!==n)throw Error(F(190))}if(r.tag!==3)throw Error(F(188));return r.stateNode.current===r?e:t}function cg(e){return e=b1(e),e!==null?ug(e):null}function ug(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ug(e);if(t!==null)return t;e=e.sibling}return null}var dg=Jt.unstable_scheduleCallback,im=Jt.unstable_cancelCallback,N1=Jt.unstable_shouldYield,S1=Jt.unstable_requestPaint,nt=Jt.unstable_now,_1=Jt.unstable_getCurrentPriorityLevel,Td=Jt.unstable_ImmediatePriority,fg=Jt.unstable_UserBlockingPriority,xs=Jt.unstable_NormalPriority,k1=Jt.unstable_LowPriority,mg=Jt.unstable_IdlePriority,ul=null,Mr=null;function C1(e){if(Mr&&typeof Mr.onCommitFiberRoot=="function")try{Mr.onCommitFiberRoot(ul,e,void 0,(e.current.flags&128)===128)}catch{}}var yr=Math.clz32?Math.clz32:P1,E1=Math.log,O1=Math.LN2;function P1(e){return e>>>=0,e===0?32:31-(E1(e)/O1|0)|0}var Oo=64,Po=4194304;function yi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ys(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var l=s&~a;l!==0?n=yi(l):(i&=s,i!==0&&(n=yi(i)))}else s=r&~a,s!==0?n=yi(s):i!==0&&(n=yi(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-yr(t),a=1<<r,n|=e[r],t&=~a;return n}function T1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function M1(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-yr(i),l=1<<s,c=a[s];c===-1?(!(l&r)||l&n)&&(a[s]=T1(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function lu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function hg(){var e=Oo;return Oo<<=1,!(Oo&4194240)&&(Oo=64),e}function Xl(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function so(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yr(t),e[t]=r}function R1(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-yr(r),i=1<<a;t[a]=0,n[a]=-1,e[a]=-1,r&=~i}}function Md(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-yr(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}var Le=0;function pg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var gg,Rd,vg,xg,yg,cu=!1,To=[],gn=null,vn=null,xn=null,zi=new Map,Ui=new Map,un=[],D1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function om(e,t){switch(e){case"focusin":case"focusout":gn=null;break;case"dragenter":case"dragleave":vn=null;break;case"mouseover":case"mouseout":xn=null;break;case"pointerover":case"pointerout":zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ui.delete(t.pointerId)}}function si(e,t,r,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=co(t),t!==null&&Rd(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function $1(e,t,r,n,a){switch(t){case"focusin":return gn=si(gn,e,t,r,n,a),!0;case"dragenter":return vn=si(vn,e,t,r,n,a),!0;case"mouseover":return xn=si(xn,e,t,r,n,a),!0;case"pointerover":var i=a.pointerId;return zi.set(i,si(zi.get(i)||null,e,t,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Ui.set(i,si(Ui.get(i)||null,e,t,r,n,a)),!0}return!1}function wg(e){var t=zn(e.target);if(t!==null){var r=ea(t);if(r!==null){if(t=r.tag,t===13){if(t=lg(r),t!==null){e.blockedOn=t,yg(e.priority,function(){vg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=uu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);au=n,r.target.dispatchEvent(n),au=null}else return t=co(r),t!==null&&Rd(t),e.blockedOn=r,!1;t.shift()}return!0}function sm(e,t,r){Qo(e)&&r.delete(t)}function j1(){cu=!1,gn!==null&&Qo(gn)&&(gn=null),vn!==null&&Qo(vn)&&(vn=null),xn!==null&&Qo(xn)&&(xn=null),zi.forEach(sm),Ui.forEach(sm)}function li(e,t){e.blockedOn===t&&(e.blockedOn=null,cu||(cu=!0,Jt.unstable_scheduleCallback(Jt.unstable_NormalPriority,j1)))}function Fi(e){function t(a){return li(a,e)}if(0<To.length){li(To[0],e);for(var r=1;r<To.length;r++){var n=To[r];n.blockedOn===e&&(n.blockedOn=null)}}for(gn!==null&&li(gn,e),vn!==null&&li(vn,e),xn!==null&&li(xn,e),zi.forEach(t),Ui.forEach(t),r=0;r<un.length;r++)n=un[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<un.length&&(r=un[0],r.blockedOn===null);)wg(r),r.blockedOn===null&&un.shift()}var Pa=Kr.ReactCurrentBatchConfig,ws=!0;function L1(e,t,r,n){var a=Le,i=Pa.transition;Pa.transition=null;try{Le=1,Dd(e,t,r,n)}finally{Le=a,Pa.transition=i}}function A1(e,t,r,n){var a=Le,i=Pa.transition;Pa.transition=null;try{Le=4,Dd(e,t,r,n)}finally{Le=a,Pa.transition=i}}function Dd(e,t,r,n){if(ws){var a=uu(e,t,r,n);if(a===null)sc(e,t,n,bs,r),om(e,n);else if($1(a,e,t,r,n))n.stopPropagation();else if(om(e,n),t&4&&-1<D1.indexOf(e)){for(;a!==null;){var i=co(a);if(i!==null&&gg(i),i=uu(e,t,r,n),i===null&&sc(e,t,n,bs,r),i===a)break;a=i}a!==null&&n.stopPropagation()}else sc(e,t,n,null,r)}}var bs=null;function uu(e,t,r,n){if(bs=null,e=Pd(n),e=zn(e),e!==null)if(t=ea(e),t===null)e=null;else if(r=t.tag,r===13){if(e=lg(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return bs=e,null}
vendor: 4,373 bytes, line 37
37function bg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(_1()){case Td:return 1;case fg:return 4;case xs:case k1:return 16;case mg:return 536870912;default:return 16}default:return 16}}var fn=null,$d=null,Ko=null;function Ng(){if(Ko)return Ko;var e,t=$d,r=t.length,n,a="value"in fn?fn.value:fn.textContent,i=a.length;for(e=0;e<r&&t[e]===a[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===a[i-n];n++);return Ko=a.slice(e,1<n?1-n:void 0)}function Xo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mo(){return!0}function lm(){return!1}function er(e){function t(r,n,a,i,s){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Mo:lm,this.isPropagationStopped=lm,this}return et(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Mo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Mo)},persist:function(){},isPersistent:Mo}),t}var Ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jd=er(Ya),lo=et({},Ya,{view:0,detail:0}),I1=er(lo),Jl,Zl,ci,dl=et({},lo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ld,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ci&&(ci&&e.type==="mousemove"?(Jl=e.screenX-ci.screenX,Zl=e.screenY-ci.screenY):Zl=Jl=0,ci=e),Jl)},movementY:function(e){return"movementY"in e?e.movementY:Zl}}),cm=er(dl),z1=et({},dl,{dataTransfer:0}),U1=er(z1),F1=et({},lo,{relatedTarget:0}),ec=er(F1),B1=et({},Ya,{animationName:0,elapsedTime:0,pseudoElement:0}),W1=er(B1),H1=et({},Ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),q1=er(H1),V1=et({},Ya,{data:0}),um=er(V1),G1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Y1={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"},Q1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Q1[e])?!!t[e]:!1}function Ld(){return K1}var X1=et({},lo,{key:function(e){if(e.key){var t=G1[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 6,048 bytes, line 37
37return e.type==="keypress"?(e=Xo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Y1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ld,charCode:function(e){return e.type==="keypress"?Xo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),J1=er(X1),Z1=et({},dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dm=er(Z1),ey=et({},lo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ld}),ty=er(ey),ry=et({},Ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),ny=er(ry),ay=et({},dl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),iy=er(ay),oy=[9,13,27,32],Ad=qr&&"CompositionEvent"in window,Ci=null;qr&&"documentMode"in document&&(Ci=document.documentMode);var sy=qr&&"TextEvent"in window&&!Ci,Sg=qr&&(!Ad||Ci&&8<Ci&&11>=Ci),fm=String.fromCharCode(32),mm=!1;function _g(e,t){switch(e){case"keyup":return oy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pa=!1;function ly(e,t){switch(e){case"compositionend":return kg(t);case"keypress":return t.which!==32?null:(mm=!0,fm);case"textInput":return e=t.data,e===fm&&mm?null:e;default:return null}}function cy(e,t){if(pa)return e==="compositionend"||!Ad&&_g(e,t)?(e=Ng(),Ko=$d=fn=null,pa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sg&&t.locale!=="ko"?null:t.data;default:return null}}var uy={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 hm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!uy[e.type]:t==="textarea"}function Cg(e,t,r,n){ng(n),t=Ns(t,"onChange"),0<t.length&&(r=new jd("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Ei=null,Bi=null;function dy(e){Ag(e,0)}function fl(e){var t=xa(e);if(Kp(t))return e}function fy(e,t){if(e==="change")return t}var Eg=!1;if(qr){var tc;if(qr){var rc="oninput"in document;if(!rc){var pm=document.createElement("div");pm.setAttribute("oninput","return;"),rc=typeof pm.oninput=="function"}tc=rc}else tc=!1;Eg=tc&&(!document.documentMode||9<document.documentMode)}function gm(){Ei&&(Ei.detachEvent("onpropertychange",Og),Bi=Ei=null)}function Og(e){if(e.propertyName==="value"&&fl(Bi)){var t=[];Cg(t,Bi,e,Pd(e)),sg(dy,t)}}function my(e,t,r){e==="focusin"?(gm(),Ei=t,Bi=r,Ei.attachEvent("onpropertychange",Og)):e==="focusout"&&gm()}function hy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fl(Bi)}function py(e,t){if(e==="click")return fl(t)}function gy(e,t){if(e==="input"||e==="change")return fl(t)}function vy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var br=typeof Object.is=="function"?Object.is:vy;function Wi(e,t){if(br(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!Vc.call(t,a)||!br(e[a],t[a]))return!1}return!0}function vm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xm(e,t){var r=vm(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=vm(r)}}function Pg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tg(){for(var e=window,t=ps();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ps(e.document)}return t}function Id(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function xy(e){var t=Tg(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Pg(r.ownerDocument.documentElement,r)){if(n!==null&&Id(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=xm(r,i);var s=xm(r,n);a&&s&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var yy=qr&&"documentMode"in document&&11>=document.documentMode,ga=null,du=null,Oi=null,fu=!1;function ym(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;fu||ga==null||ga!==ps(n)||(n=ga,"selectionStart"in n&&Id(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 1,637 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),Oi&&Wi(Oi,n)||(Oi=n,n=Ns(du,"onSelect"),0<n.length&&(t=new jd("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=ga)))}function Ro(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var va={animationend:Ro("Animation","AnimationEnd"),animationiteration:Ro("Animation","AnimationIteration"),animationstart:Ro("Animation","AnimationStart"),transitionend:Ro("Transition","TransitionEnd")},nc={},Mg={};qr&&(Mg=document.createElement("div").style,"AnimationEvent"in window||(delete va.animationend.animation,delete va.animationiteration.animation,delete va.animationstart.animation),"TransitionEvent"in window||delete va.transitionend.transition);function ml(e){if(nc[e])return nc[e];if(!va[e])return e;var t=va[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Mg)return nc[e]=t[r];return e}var Rg=ml("animationend"),Dg=ml("animationiteration"),$g=ml("animationstart"),jg=ml("transitionend"),Lg=new Map,wm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
vendor: 5,004 bytes, line 37
37function On(e,t){Lg.set(e,t),Zn(t,[e])}for(var ac=0;ac<wm.length;ac++){var ic=wm[ac],wy=ic.toLowerCase(),by=ic[0].toUpperCase()+ic.slice(1);On(wy,"on"+by)}On(Rg,"onAnimationEnd");On(Dg,"onAnimationIteration");On($g,"onAnimationStart");On("dblclick","onDoubleClick");On("focusin","onFocus");On("focusout","onBlur");On(jg,"onTransitionEnd");ja("onMouseEnter",["mouseout","mouseover"]);ja("onMouseLeave",["mouseout","mouseover"]);ja("onPointerEnter",["pointerout","pointerover"]);ja("onPointerLeave",["pointerout","pointerover"]);Zn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ny=new Set("cancel close invalid load scroll toggle".split(" ").concat(wi));function bm(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,w1(n,t,void 0,e),e.currentTarget=null}function Ag(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var s=n.length-1;0<=s;s--){var l=n[s],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&a.isPropagationStopped())break e;bm(a,l,u),i=c}else for(s=0;s<n.length;s++){if(l=n[s],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&a.isPropagationStopped())break e;bm(a,l,u),i=c}}}if(vs)throw e=su,vs=!1,su=null,e}function Be(e,t){var r=t[vu];r===void 0&&(r=t[vu]=new Set);var n=e+"__bubble";r.has(n)||(Ig(t,e,2,!1),r.add(n))}function oc(e,t,r){var n=0;t&&(n|=4),Ig(r,e,n,t)}var Do="_reactListening"+Math.random().toString(36).slice(2);function Hi(e){if(!e[Do]){e[Do]=!0,qp.forEach(function(r){r!=="selectionchange"&&(Ny.has(r)||oc(r,!1,e),oc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Do]||(t[Do]=!0,oc("selectionchange",!1,t))}}function Ig(e,t,r,n){switch(bg(t)){case 1:var a=L1;break;case 4:a=A1;break;default:a=Dd}r=a.bind(null,t,r,e),a=void 0,!ou||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function sc(e,t,r,n,a){var i=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var l=n.stateNode.containerInfo;if(l===a||l.nodeType===8&&l.parentNode===a)break;if(s===4)for(s=n.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===a||c.nodeType===8&&c.parentNode===a))return;s=s.return}for(;l!==null;){if(s=zn(l),s===null)return;if(c=s.tag,c===5||c===6){n=i=s;continue e}l=l.parentNode}}n=n.return}sg(function(){var u=i,f=Pd(r),g=[];e:{var m=Lg.get(e);if(m!==void 0){var y=jd,b=e;switch(e){case"keypress":if(Xo(r)===0)break e;case"keydown":case"keyup":y=J1;break;case"focusin":b="focus",y=ec;break;case"focusout":b="blur",y=ec;break;case"beforeblur":case"afterblur":y=ec;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=cm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=U1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=ty;break;case Rg:case Dg:case $g:y=W1;break;case jg:y=ny;break;case"scroll":y=I1;break;case"wheel":y=iy;break;case"copy":case"cut":case"paste":y=q1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=dm}var w=(t&4)!==0,_=!w&&e==="scroll",v=w?m!==null?m+"Capture":null:m;w=[];for(var h=u,p;h!==null;){p=h;var N=p.stateNode;if(p.tag===5&&N!==null&&(p=N,v!==null&&(N=Ii(h,v),N!=null&&w.push(qi(h,N,p)))),_)break;h=h.return}0<w.length&&(m=new y(m,b,null,r,f),g.push({event:m,listeners:w}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",m&&r!==au&&(b=r.relatedTarget||r.fromElement)&&(zn(b)||b[Vr]))break e;if((y||m)&&(m=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,y?(b=r.relatedTarget||r.toElement,y=u,b=b?zn(b):null,b!==null&&(_=ea(b),b!==_||b.tag!==5&&b.tag!==6)&&(b=null)):(y=null,b=u),y!==b)){if(w=cm,N="onMouseLeave",v="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(w=dm,N="onPointerLeave",v="onPointerEnter",h="pointer"),_=y==null?m:xa(y),p=b==null?m:xa(b),m=new w(N,h+"leave",
vendor: 8,813 bytes, lines 37-38
37y,r,f),m.target=_,m.relatedTarget=p,N=null,zn(f)===u&&(w=new w(v,h+"enter",b,r,f),w.target=p,w.relatedTarget=_,N=w),_=N,y&&b)t:{for(w=y,v=b,h=0,p=w;p;p=sa(p))h++;for(p=0,N=v;N;N=sa(N))p++;for(;0<h-p;)w=sa(w),h--;for(;0<p-h;)v=sa(v),p--;for(;h--;){if(w===v||v!==null&&w===v.alternate)break t;w=sa(w),v=sa(v)}w=null}else w=null;y!==null&&Nm(g,m,y,w,!1),b!==null&&_!==null&&Nm(g,_,b,w,!0)}}e:{if(m=u?xa(u):window,y=m.nodeName&&m.nodeName.toLowerCase(),y==="select"||y==="input"&&m.type==="file")var S=fy;else if(hm(m))if(Eg)S=gy;else{S=hy;var C=my}else(y=m.nodeName)&&y.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(S=py);if(S&&(S=S(e,u))){Cg(g,S,r,f);break e}C&&C(e,m,u),e==="focusout"&&(C=m._wrapperState)&&C.controlled&&m.type==="number"&&Zc(m,"number",m.value)}switch(C=u?xa(u):window,e){case"focusin":(hm(C)||C.contentEditable==="true")&&(ga=C,du=u,Oi=null);break;case"focusout":Oi=du=ga=null;break;case"mousedown":fu=!0;break;case"contextmenu":case"mouseup":case"dragend":fu=!1,ym(g,r,f);break;case"selectionchange":if(yy)break;case"keydown":case"keyup":ym(g,r,f)}var O;if(Ad)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else pa?_g(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(Sg&&r.locale!=="ko"&&(pa||P!=="onCompositionStart"?P==="onCompositionEnd"&&pa&&(O=Ng()):(fn=f,$d="value"in fn?fn.value:fn.textContent,pa=!0)),C=Ns(u,P),0<C.length&&(P=new um(P,e,null,r,f),g.push({event:P,listeners:C}),O?P.data=O:(O=kg(r),O!==null&&(P.data=O)))),(O=sy?ly(e,r):cy(e,r))&&(u=Ns(u,"onBeforeInput"),0<u.length&&(f=new um("onBeforeInput","beforeinput",null,r,f),g.push({event:f,listeners:u}),f.data=O))}Ag(g,t)})}function qi(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ns(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;a.tag===5&&i!==null&&(a=i,i=Ii(e,r),i!=null&&n.unshift(qi(e,i,a)),i=Ii(e,t),i!=null&&n.push(qi(e,i,a))),e=e.return}return n}function sa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Nm(e,t,r,n,a){for(var i=t._reactName,s=[];r!==null&&r!==n;){var l=r,c=l.alternate,u=l.stateNode;if(c!==null&&c===n)break;l.tag===5&&u!==null&&(l=u,a?(c=Ii(r,i),c!=null&&s.unshift(qi(r,c,l))):a||(c=Ii(r,i),c!=null&&s.push(qi(r,c,l)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var Sy=/\r\n?/g,_y=/\u0000|\uFFFD/g;function Sm(e){return(typeof e=="string"?e:""+e).replace(Sy,` 38`).replace(_y,"")}function $o(e,t,r){if(t=Sm(t),Sm(e)!==t&&r)throw Error(F(425))}function Ss(){}var mu=null,hu=null;function pu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var gu=typeof setTimeout=="function"?setTimeout:void 0,ky=typeof clearTimeout=="function"?clearTimeout:void 0,_m=typeof Promise=="function"?Promise:void 0,Cy=typeof queueMicrotask=="function"?queueMicrotask:typeof _m<"u"?function(e){return _m.resolve(null).then(e).catch(Ey)}:gu;function Ey(e){setTimeout(function(){throw e})}function lc(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(n===0){e.removeChild(a),Fi(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=a}while(r);Fi(t)}function yn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function km(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Qa=Math.random().toString(36).slice(2),Er="__reactFiber$"+Qa,Vi="__reactProps$"+Qa,Vr="__reactContainer$"+Qa,vu="__reactEvents$"+Qa,Oy="__reactListeners$"+Qa,Py="__reactHandles$"+Qa;function zn(e){var t=e[Er];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Vr]||r[Er]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=km(e);e!==null;){if(r=e[Er])return r;e=km(e)}return t}e=r,r=e.parentNode}return null}function co(e){return e=e[Er]||e[Vr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function xa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function hl(e){return e[Vi]||null}var xu=[],ya=-1;function Pn(e){return{current:e}}function We(e){0>ya||(e.current=xu[ya],xu[ya]=null,ya--)}function Ue(e,t){ya++,xu[ya]=e.current,e.current=t}var Cn={},Ot=Pn(Cn),Ht=Pn(!1),Gn=Cn;function La(e,t){var r=e.type.contextTypes;if(!r)return Cn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function qt(e){return e=e.childContextTypes,e!=null}function _s(){We(Ht),We(Ot)}function Cm(e,t,r){if(Ot.current!==Cn)throw Error(F(168));Ue(Ot,t),Ue(Ht,r)}function zg(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(F(108,m1(e)||"Unknown",a));return et({},r,n)}function ks(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cn,Gn=Ot.current,Ue(Ot,e),Ue(Ht,Ht.current),!0}function Em(e,t,r){var n=e.stateNode;if(!n)throw Error(F(169));r?(e=zg(e,t,Gn),n.__reactInternalMemoizedMergedChildContext=e,We(Ht),We(Ot),Ue(Ot,e)):We(Ht),Ue(Ht,r)}var zr=null,pl=!1,cc=!1;function Ug(e){zr===null?zr=[e]:zr.push(e)}function Ty(e){pl=!0,Ug(e)}function Tn(){if(!cc&&zr!==null){cc=!0;var e=0,t=Le;try{var r=zr;for(Le=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}zr=null,pl=!1}catch(a){throw zr!==null&&(zr=zr.slice(e+1)),dg(Td,Tn),a}finally{Le=t,cc=!1}}return null}var wa=[],ba=0,Cs=null,Es=0,or=[],sr=0,Yn=null,Ur=1,Fr="";function Ln(e,t){wa[ba++]=Es,wa[ba++]=Cs,Cs=e,Es=t}function Fg(e,t,r){or[sr++]=Ur,or[sr++]=Fr,or[sr++]=Yn,Yn=e;var n=Ur;e=Fr;var a=32-yr(n)-1;n&=~(1<<a),r+=1;var i=32-yr(t)+a;if(30<i){var s=a-a%5;i=(n&(1<<s)-1).toString(32),n>>=s,a-=s,Ur=1<<32-yr(t)+a|r<<a|n,Fr=i+e}else Ur=1<<i|r<<a|n,Fr=e}function zd(e){e.return!==null&&(Ln(e,1),Fg(e,1,0))}function Ud(e){for(;e===Cs;)Cs=wa[--ba],wa[ba]=null,Es=wa[--ba],wa[ba]=null;for(;e===Yn;)Yn=or[--sr],or[sr]=null,Fr=or[--sr],or[sr]=null,Ur=or[--sr],or[sr]=null}var Xt=null,Kt=null,Ve=!1,gr=null;function Bg(e,t){var r=lr(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Om(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Xt=e,Kt=yn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xt=e,Kt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Yn!==null?{id:Ur,overflow:Fr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=lr(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Xt=e,Kt=null,!0):!1;default:return!1}}function yu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wu(e){if(Ve){var t=Kt;if(t){var r=t;if(!Om(e,t)){if(yu(e))throw Error(F(418));t=yn(r.nextSibling);var n=Xt;t&&Om(e,t)?Bg(n,r):(e.flags=e.flags&-4097|2,Ve=!1,Xt=e)}}else{if(yu(e))throw Error(F(418));e.flags=e.flags&-4097|2,Ve=!1,Xt=e}}}function Pm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xt=e}function jo(e){if(e!==Xt)return!1;if(!Ve)return Pm(e),Ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pu(e.type,e.memoizedProps)),t&&(t=Kt)){if(yu(e))throw Wg(),Error(F(418));for(;t;)Bg(e,t),t=yn(t.nextSibling)}if(Pm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Kt=yn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Kt=null}}else Kt=Xt?yn(e.stateNode.nextSibling):null;return!0}function Wg(){for(var e=Kt;e;)e=yn(e.nextSibling)}function Aa(){Kt=Xt=null,Ve=!1}function Fd(e){gr===null?gr=[e]:gr.push(e)}var My=Kr.ReactCurrentBatchConfig;function hr(e,t){if(e&&e.defaultProps){t=et({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Os=Pn(null),Ps=null,Na=null,Bd=null;function Wd(){Bd=Na=Ps=null}function Hd(e){var t=Os.current;We(Os),e._currentValue=t}function bu(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}
vendor: 8,031 bytes, line 38
38function Ta(e,t){Ps=e,Bd=Na=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Bt=!0),e.firstContext=null)}function ur(e){var t=e._currentValue;if(Bd!==e)if(e={context:e,memoizedValue:t,next:null},Na===null){if(Ps===null)throw Error(F(308));Na=e,Ps.dependencies={lanes:0,firstContext:e}}else Na=Na.next=e;return t}var Un=null;function qd(e){Un===null?Un=[e]:Un.push(e)}function Hg(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,qd(t)):(r.next=a.next,a.next=r),t.interleaved=r,Gr(e,n)}function Gr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ln=!1;function Vd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Br(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Oe&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Gr(e,r)}return a=n.interleaved,a===null?(t.next=t,qd(n)):(t.next=a.next,a.next=t),n.interleaved=t,Gr(e,r)}function Jo(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Md(e,r)}}function Tm(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?a=i=s:i=i.next=s,r=r.next}while(r!==null);i===null?a=i=t:i=i.next=t}else a=i=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ts(e,t,r,n){var a=e.updateQueue;ln=!1;var i=a.firstBaseUpdate,s=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,u=c.next;c.next=null,s===null?i=u:s.next=u,s=c;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==s&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=c))}if(i!==null){var g=a.baseState;s=0,f=u=c=null,l=i;do{var m=l.lane,y=l.eventTime;if((n&m)===m){f!==null&&(f=f.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,w=l;switch(m=t,y=r,w.tag){case 1:if(b=w.payload,typeof b=="function"){g=b.call(y,g,m);break e}g=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=w.payload,m=typeof b=="function"?b.call(y,g,m):b,m==null)break e;g=et({},g,m);break e;case 2:ln=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=a.effects,m===null?a.effects=[l]:m.push(l))}else y={eventTime:y,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=y,c=g):f=f.next=y,s|=m;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;m=l,l=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(1);if(f===null&&(c=g),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=f,t=a.shared.interleaved,t!==null){a=t;do s|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);Kn|=s,e.lanes=s,e.memoizedState=g}}function Mm(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(F(191,a));a.call(n)}}}var Vg=new Hp.Component().refs;function Nu(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:et({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var gl={isMounted:function(e){return(e=e._reactInternals)?ea(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=$t(),a=Nn(e),i=Br(n,a);i.payload=t,r!=null&&(i.callback=r),t=wn(e,i,a),t!==null&&(wr(t,e,a,n),Jo(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=$t(),a=Nn(e),i=Br(n,a);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=wn(e,i,a),t!==null&&(wr(t,e,a,n),Jo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=$t(),n=Nn(e),a=Br(r,n);a.tag=2,t!=null&&(a.callback=t),t=wn(e,a,n),t!==null&&(wr(t,e,n,r),Jo(t,e,n))}};function Rm(e,t,r,n,a,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,s):t.prototype&&t.prototype.isPureReactComponent?!Wi(r,n)||!Wi(a,i):!0}function Gg(e,t,r){var n=!1,a=Cn,i=t.contextType;return typeof i=="object"&&i!==null?i=ur(i):(a=qt(t)?Gn:Ot.current,n=t.contextTypes,i=(n=n!=null)?La(e,a):Cn),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=gl,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function Dm(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&gl.enqueueReplaceState(t,t.state,null)}function Su(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs=Vg,Vd(e);var i=t.contextType;typeof i=="object"&&i!==null?a.context=ur(i):(i=qt(t)?Gn:Ot.current,a.context=La(e,i)),a.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Nu(e,t,i,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&gl.enqueueReplaceState(a,a.state,null),Ts(e,r,a,n),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function ui(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(F(309));var n=r.stateNode}if(!n)throw Error(F(147,e));var a=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var l=a.refs;l===Vg&&(l=a.refs={}),s===null?delete l[i]:l[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(F(284));if(!r._owner)throw Error(F(290,e))}return e}function Lo(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $m(e){var t=e._init;return t(e._payload)}function Yg(e){function t(v,h){if(e){var p=v.deletions;p===null?(v.deletions=[h],v.flags|=16):p.push(h)}}function r(v,h){if(!e)return null;for(;h!==null;)t(v,h),h=h.sibling;return null}function n(v,h){for(v=new Map;h!==null;)h.key!==null?v.set(h.key,h):v.set(h.index,h),h=h.sibling;return v}function a(v,h){return v=Sn(v,h),v.index=0,v.sibling=null,v}function i(v,h,p){return v.index=p,e?(p=v.alternate,p!==null?(p=p.index,p<h?(v.flags|=2,h):p):(v.flags|=2,h)):(v.flags|=1048576,h)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,h,p,N){return h===null||h.tag!==6?(h=gc(p,v.mode,N),h.return=v,h):(h=a(h,p),h.return=v,h)}function c(v,h,p,N){var S=p.type;return S===ha?f(v,h,p.props.children,N,p.key):h!==null&&(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===sn&&$m(S)===h.type)?(N=a(h,p.props),N.ref=ui(v,h,p),N.return=v,N):(N=as(p.type,p.key,p.props,null,v.mode,N),N.ref=ui(v,h,p),N.return=v,N)}function u(v,h,p,N){return h===null||h.tag!==4||h.stateNode.containerInfo!==p.containerInfo||h.stateNode.implementation!==p.implementation?(h=vc(p,v.mode,N),h.return=v,h):(h=a(h,p.children||[]),h.return=v,h)}function f(v,h,p,N,S){return h===null||h.tag!==7?(h=Hn(p,v.mode,N,S),h.return=v,h):(h=a(h,p),h.return=v,h)}function g(v,h,p){if(typeof h=="string"&&h!==""||typeof h=="number")return h=gc(""+h,v.mode,p),h.return=v,h;
vendor: 21,515 bytes, lines 38-40
38if(typeof h=="object"&&h!==null){switch(h.$$typeof){case ko:return p=as(h.type,h.key,h.props,null,v.mode,p),p.ref=ui(v,null,h),p.return=v,p;case ma:return h=vc(h,v.mode,p),h.return=v,h;case sn:var N=h._init;return g(v,N(h._payload),p)}if(xi(h)||ii(h))return h=Hn(h,v.mode,p,null),h.return=v,h;Lo(v,h)}return null}function m(v,h,p,N){var S=h!==null?h.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return S!==null?null:l(v,h,""+p,N);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ko:return p.key===S?c(v,h,p,N):null;case ma:return p.key===S?u(v,h,p,N):null;case sn:return S=p._init,m(v,h,S(p._payload),N)}if(xi(p)||ii(p))return S!==null?null:f(v,h,p,N,null);Lo(v,p)}return null}function y(v,h,p,N,S){if(typeof N=="string"&&N!==""||typeof N=="number")return v=v.get(p)||null,l(h,v,""+N,S);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case ko:return v=v.get(N.key===null?p:N.key)||null,c(h,v,N,S);case ma:return v=v.get(N.key===null?p:N.key)||null,u(h,v,N,S);case sn:var C=N._init;return y(v,h,p,C(N._payload),S)}if(xi(N)||ii(N))return v=v.get(p)||null,f(h,v,N,S,null);Lo(h,N)}return null}function b(v,h,p,N){for(var S=null,C=null,O=h,P=h=0,k=null;O!==null&&P<p.length;P++){O.index>P?(k=O,O=null):k=O.sibling;var E=m(v,O,p[P],N);if(E===null){O===null&&(O=k);break}e&&O&&E.alternate===null&&t(v,O),h=i(E,h,P),C===null?S=E:C.sibling=E,C=E,O=k}if(P===p.length)return r(v,O),Ve&&Ln(v,P),S;if(O===null){for(;P<p.length;P++)O=g(v,p[P],N),O!==null&&(h=i(O,h,P),C===null?S=O:C.sibling=O,C=O);return Ve&&Ln(v,P),S}for(O=n(v,O);P<p.length;P++)k=y(O,v,P,p[P],N),k!==null&&(e&&k.alternate!==null&&O.delete(k.key===null?P:k.key),h=i(k,h,P),C===null?S=k:C.sibling=k,C=k);return e&&O.forEach(function(M){return t(v,M)}),Ve&&Ln(v,P),S}function w(v,h,p,N){var S=ii(p);if(typeof S!="function")throw Error(F(150));if(p=S.call(p),p==null)throw Error(F(151));for(var C=S=null,O=h,P=h=0,k=null,E=p.next();O!==null&&!E.done;P++,E=p.next()){O.index>P?(k=O,O=null):k=O.sibling;var M=m(v,O,E.value,N);if(M===null){O===null&&(O=k);break}e&&O&&M.alternate===null&&t(v,O),h=i(M,h,P),C===null?S=M:C.sibling=M,C=M,O=k}if(E.done)return r(v,O),Ve&&Ln(v,P),S;if(O===null){for(;!E.done;P++,E=p.next())E=g(v,E.value,N),E!==null&&(h=i(E,h,P),C===null?S=E:C.sibling=E,C=E);return Ve&&Ln(v,P),S}for(O=n(v,O);!E.done;P++,E=p.next())E=y(O,v,P,E.value,N),E!==null&&(e&&E.alternate!==null&&O.delete(E.key===null?P:E.key),h=i(E,h,P),C===null?S=E:C.sibling=E,C=E);return e&&O.forEach(function(T){return t(v,T)}),Ve&&Ln(v,P),S}function _(v,h,p,N){if(typeof p=="object"&&p!==null&&p.type===ha&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ko:e:{for(var S=p.key,C=h;C!==null;){if(C.key===S){if(S=p.type,S===ha){if(C.tag===7){r(v,C.sibling),h=a(C,p.props.children),h.return=v,v=h;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===sn&&$m(S)===C.type){r(v,C.sibling),h=a(C,p.props),h.ref=ui(v,C,p),h.return=v,v=h;break e}r(v,C);break}else t(v,C);C=C.sibling}p.type===ha?(h=Hn(p.props.children,v.mode,N,p.key),h.return=v,v=h):(N=as(p.type,p.key,p.props,null,v.mode,N),N.ref=ui(v,h,p),N.return=v,v=N)}return s(v);case ma:e:{for(C=p.key;h!==null;){if(h.key===C)if(h.tag===4&&h.stateNode.containerInfo===p.containerInfo&&h.stateNode.implementation===p.implementation){r(v,h.sibling),h=a(h,p.children||[]),h.return=v,v=h;break e}else{r(v,h);break}else t(v,h);h=h.sibling}h=vc(p,v.mode,N),h.return=v,v=h}return s(v);case sn:return C=p._init,_(v,h,C(p._payload),N)}if(xi(p))return b(v,h,p,N);if(ii(p))return w(v,h,p,N);Lo(v,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,h!==null&&h.tag===6?(r(v,h.sibling),h=a(h,p),h.return=v,v=h):(r(v,h),h=gc(p,v.mode,N),h.return=v,v=h),s(v)):r(v,h)}return _}var Ia=Yg(!0),Qg=Yg(!1),uo={},Rr=Pn(uo),Gi=Pn(uo),Yi=Pn(uo);function Fn(e){if(e===uo)throw Error(F(174));return e}function Gd(e,t){switch(Ue(Yi,t),Ue(Gi,e),Ue(Rr,uo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=tu(t,e)}We(Rr),Ue(Rr,t)}function za(){We(Rr),We(Gi),We(Yi)}function Kg(e){Fn(Yi.current);var t=Fn(Rr.current),r=tu(t,e.type);t!==r&&(Ue(Gi,e),Ue(Rr,r))}function Yd(e){Gi.current===e&&(We(Rr),We(Gi))}var Je=Pn(0);function Ms(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var uc=[];function Qd(){for(var e=0;e<uc.length;e++)uc[e]._workInProgressVersionPrimary=null;uc.length=0}var Zo=Kr.ReactCurrentDispatcher,dc=Kr.ReactCurrentBatchConfig,Qn=0,Ze=null,ot=null,ft=null,Rs=!1,Pi=!1,Qi=0,Ry=0;function kt(){throw Error(F(321))}function Kd(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!br(e[r],t[r]))return!1;return!0}function Xd(e,t,r,n,a,i){if(Qn=i,Ze=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zo.current=e===null||e.memoizedState===null?Ly:Ay,e=r(n,a),Pi){i=0;do{if(Pi=!1,Qi=0,25<=i)throw Error(F(301));i+=1,ft=ot=null,t.updateQueue=null,Zo.current=Iy,e=r(n,a)}while(Pi)}if(Zo.current=Ds,t=ot!==null&&ot.next!==null,Qn=0,ft=ot=Ze=null,Rs=!1,t)throw Error(F(300));return e}function Jd(){var e=Qi!==0;return Qi=0,e}function Cr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?Ze.memoizedState=ft=e:ft=ft.next=e,ft}function dr(){if(ot===null){var e=Ze.alternate;e=e!==null?e.memoizedState:null}else e=ot.next;var t=ft===null?Ze.memoizedState:ft.next;if(t!==null)ft=t,ot=e;else{if(e===null)throw Error(F(310));ot=e,e={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},ft===null?Ze.memoizedState=ft=e:ft=ft.next=e}return ft}function Ki(e,t){return typeof t=="function"?t(e):t}function fc(e){var t=dr(),r=t.queue;if(r===null)throw Error(F(311));r.lastRenderedReducer=e;var n=ot,a=n.baseQueue,i=r.pending;if(i!==null){if(a!==null){var s=a.next;a.next=i.next,i.next=s}n.baseQueue=a=i,r.pending=null}if(a!==null){i=a.next,n=n.baseState;var l=s=null,c=null,u=i;do{var f=u.lane;if((Qn&f)===f)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var g={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=g,s=n):c=c.next=g,Ze.lanes|=f,Kn|=f}u=u.next}while(u!==null&&u!==i);c===null?s=n:c.next=l,br(n,t.memoizedState)||(Bt=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=c,r.lastRenderedState=n}if(e=r.interleaved,e!==null){a=e;do i=a.lane,Ze.lanes|=i,Kn|=i,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function mc(e){var t=dr(),r=t.queue;if(r===null)throw Error(F(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(a!==null){r.pending=null;var s=a=a.next;do i=e(i,s.action),s=s.next;while(s!==a);br(i,t.memoizedState)||(Bt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function Xg(){}function Jg(e,t){var r=Ze,n=dr(),a=t(),i=!br(n.memoizedState,a);if(i&&(n.memoizedState=a,Bt=!0),n=n.queue,Zd(tv.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||ft!==null&&ft.memoizedState.tag&1){if(r.flags|=2048,Xi(9,ev.bind(null,r,n,a,t),void 0,null),mt===null)throw Error(F(349));Qn&30||Zg(r,t,a)}return a}function Zg(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ze.updateQueue,t===null?(t={lastEffect:null,stores:null},Ze.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function ev(e,t,r,n){t.value=r,t.getSnapshot=n,rv(t)&&nv(e)}function tv(e,t,r){return r(function(){rv(t)&&nv(e)})}function rv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!br(e,r)}catch{return!0}}function nv(e){var t=Gr(e,1);t!==null&&wr(t,e,1,-1)}function jm(e){var t=Cr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ki,lastRenderedState:e},t.queue=e,e=e.dispatch=jy.bind(null,Ze,e),[t.memoizedState,e]}function Xi(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Ze.updateQueue,t===null?(t={lastEffect:null,stores:null},Ze.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function av(){return dr().memoizedState}function es(e,t,r,n){var a=Cr();Ze.flags|=e,a.memoizedState=Xi(1|t,r,void 0,n===void 0?null:n)}function vl(e,t,r,n){var a=dr();n=n===void 0?null:n;var i=void 0;if(ot!==null){var s=ot.memoizedState;if(i=s.destroy,n!==null&&Kd(n,s.deps)){a.memoizedState=Xi(t,r,i,n);return}}Ze.flags|=e,a.memoizedState=Xi(1|t,r,i,n)}function Lm(e,t){return es(8390656,8,e,t)}function Zd(e,t){return vl(2048,8,e,t)}function iv(e,t){return vl(4,2,e,t)}function ov(e,t){return vl(4,4,e,t)}function sv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function lv(e,t,r){return r=r!=null?r.concat([e]):null,vl(4,4,sv.bind(null,t,e),r)}function ef(){}function cv(e,t){var r=dr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Kd(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function uv(e,t){var r=dr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Kd(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function dv(e,t,r){return Qn&21?(br(r,t)||(r=hg(),Ze.lanes|=r,Kn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Bt=!0),e.memoizedState=r)}function Dy(e,t){var r=Le;Le=r!==0&&4>r?r:4,e(!0);var n=dc.transition;dc.transition={};try{e(!1),t()}finally{Le=r,dc.transition=n}}function fv(){return dr().memoizedState}function $y(e,t,r){var n=Nn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},mv(e))hv(t,r);else if(r=Hg(e,t,r,n),r!==null){var a=$t();wr(r,e,n,a),pv(r,t,n)}}function jy(e,t,r){var n=Nn(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(mv(e))hv(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,r);if(a.hasEagerState=!0,a.eagerState=l,br(l,s)){var c=t.interleaved;c===null?(a.next=a,qd(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}r=Hg(e,t,a,n),r!==null&&(a=$t(),wr(r,e,n,a),pv(r,t,n))}}function mv(e){var t=e.alternate;return e===Ze||t!==null&&t===Ze}function hv(e,t){Pi=Rs=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function pv(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Md(e,r)}}var Ds={readContext:ur,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useInsertionEffect:kt,useLayoutEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useMutableSource:kt,useSyncExternalStore:kt,useId:kt,unstable_isNewReconciler:!1},Ly={readContext:ur,useCallback:function(e,t){return Cr().memoizedState=[e,t===void 0?null:t],e},useContext:ur,useEffect:Lm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,es(4194308,4,sv.bind(null,t,e),r)},useLayoutEffect:function(e,t){return es(4194308,4,e,t)},useInsertionEffect:function(e,t){return es(4,2,e,t)},useMemo:function(e,t){var r=Cr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Cr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=$y.bind(null,Ze,e),[n.memoizedState,e]},useRef:function(e){var t=Cr();return e={current:e},t.memoizedState=e},useState:jm,useDebugValue:ef,useDeferredValue:function(e){return Cr().memoizedState=e},useTransition:function(){var e=jm(!1),t=e[0];return e=Dy.bind(null,e[1]),Cr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ze,a=Cr();if(Ve){if(r===void 0)throw Error(F(407));r=r()}else{if(r=t(),mt===null)throw Error(F(349));Qn&30||Zg(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,Lm(tv.bind(null,n,i,e),[e]),n.flags|=2048,Xi(9,ev.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Cr(),t=mt.identifierPrefix;if(Ve){var r=Fr,n=Ur;r=(n&~(1<<32-yr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Qi++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Ry++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ay={readContext:ur,useCallback:cv,useContext:ur,useEffect:Zd,useImperativeHandle:lv,useInsertionEffect:iv,useLayoutEffect:ov,useMemo:uv,useReducer:fc,useRef:av,useState:function(){return fc(Ki)},useDebugValue:ef,useDeferredValue:function(e){var t=dr();return dv(t,ot.memoizedState,e)},useTransition:function(){var e=fc(Ki)[0],t=dr().memoizedState;return[e,t]},useMutableSource:Xg,useSyncExternalStore:Jg,useId:fv,unstable_isNewReconciler:!1},Iy={readContext:ur,useCallback:cv,useContext:ur,useEffect:Zd,useImperativeHandle:lv,useInsertionEffect:iv,useLayoutEffect:ov,useMemo:uv,useReducer:mc,useRef:av,useState:function(){return mc(Ki)},useDebugValue:ef,useDeferredValue:function(e){var t=dr();return ot===null?t.memoizedState=e:dv(t,ot.memoizedState,e)},useTransition:function(){var e=mc(Ki)[0],t=dr().memoizedState;return[e,t]},useMutableSource:Xg,useSyncExternalStore:Jg,useId:fv,unstable_isNewReconciler:!1};function Ua(e,t){try{var r="",n=t;do r+=f1(n),n=n.return;while(n);var a=r}catch(i){a=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:e,source:t,stack:a,digest:null}}function hc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function _u(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var zy=typeof WeakMap=="function"?WeakMap:Map;function gv(e,t,r){r=Br(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){js||(js=!0,$u=n),_u(e,t)},r}function vv(e,t,r){r=Br(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){_u(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){_u(e,t),typeof n!="function"&&(bn===null?bn=new Set([this]):bn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function Am(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new zy;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=Zy.bind(null,e,t,r),t.then(e,e))}function Im(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function zm(e,t,r,n,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Br(-1,1),t.tag=2,wn(r,t,1))),r.lanes|=1),e)}var Uy=Kr.ReactCurrentOwner,Bt=!1;function Dt(e,t,r,n){t.child=e===null?Qg(t,null,r,n):Ia(t,e.child,r,n)}function Um(e,t,r,n,a){r=r.render;var i=t.ref;return Ta(t,a),n=Xd(e,t,r,n,i,a),r=Jd(),e!==null&&!Bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Yr(e,t,a)):(Ve&&r&&zd(t),t.flags|=1,Dt(e,t,n,a),t.child)}function Fm(e,t,r,n,a){if(e===null){var i=r.type;return typeof i=="function"&&!cf(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,xv(e,t,i,n,a)):(e=as(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var s=i.memoizedProps;if(r=r.compare,r=r!==null?r:Wi,r(s,n)&&e.ref===t.ref)return Yr(e,t,a)}return t.flags|=1,e=Sn(i,n),e.ref=t.ref,e.return=t,t.child=e}function xv(e,t,r,n,a){if(e!==null){var i=e.memoizedProps;if(Wi(i,n)&&e.ref===t.ref)if(Bt=!1,t.pendingProps=n=i,(e.lanes&a)!==0)e.flags&131072&&(Bt=!0);else return t.lanes=e.lanes,Yr(e,t,a)}return ku(e,t,r,n,a)}function yv(e,t,r){var n=t.pendingProps,a=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ue(_a,Qt),Qt|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ue(_a,Qt),Qt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Ue(_a,Qt),Qt|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Ue(_a,Qt),Qt|=n;return Dt(e,t,a,r),t.child}function wv(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function ku(e,t,r,n,a){var i=qt(r)?Gn:Ot.current;return i=La(t,i),Ta(t,a),r=Xd(e,t,r,n,i,a),n=Jd(),e!==null&&!Bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Yr(e,t,a)):(Ve&&n&&zd(t),t.flags|=1,Dt(e,t,r,a),t.child)}function Bm(e,t,r,n,a){if(qt(r)){var i=!0;ks(t)}else i=!1;if(Ta(t,a),t.stateNode===null)ts(e,t),Gg(t,r,n),Su(t,r,n,a),n=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var c=s.context,u=r.contextType;typeof u=="object"&&u!==null?u=ur(u):(u=qt(r)?Gn:Ot.current,u=La(t,u));var f=r.getDerivedStateFromProps,g=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";g||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==n||c!==u)&&Dm(t,s,n,u),ln=!1;var m=t.memoizedState;s.state=m,Ts(t,n,s,a),c=t.memoizedState,l!==n||m!==c||Ht.current||ln?(typeof f=="function"&&(Nu(t,r,f,n),c=t.memoizedState),(l=ln||Rm(t,r,l,n,m,c,u))?(g||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),s.props=n,s.state=c,s.context=u,n=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,qg(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:hr(t.type,l),s.props=u,g=t.pendingProps,m=s.context,c=r.contextType,typeof c=="object"&&c!==null?c=ur(c):(c=qt(r)?Gn:Ot.current,c=La(t,c));var y=r.getDerivedStateFromProps;(f=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==g||m!==c)&&Dm(t,s,n,c),ln=!1,m=t.memoizedState,s.state=m,Ts(t,n,s,a);var b=t.memoizedState;l!==g||m!==b||Ht.current||ln?(typeof y=="function"&&(Nu(t,r,y,n),b=t.memoizedState),(u=ln||Rm(t,r,u,n,m,b,c)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,b,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,b,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=b),s.props=n,s.state=b,s.context=c,n=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),n=!1)}return Cu(e,t,r,n,i,a)}function Cu(e,t,r,n,a,i){wv(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return a&&Em(t,r,!1),Yr(e,t,i);n=t.stateNode,Uy.current=t;var l=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Ia(t,e.child,null,i),t.child=Ia(t,null,l,i)):Dt(e,t,l,i),t.memoizedState=n.state,a&&Em(t,r,!0),t.child}function bv(e){var t=e.stateNode;t.pendingContext?Cm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cm(e,t.context,!1),Gd(e,t.containerInfo)}function Wm(e,t,r,n,a){return Aa(),Fd(a),t.flags|=256,Dt(e,t,r,n),t.child}var Eu={dehydrated:null,treeContext:null,retryLane:0};function Ou(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nv(e,t,r){var n=t.pendingProps,a=Je.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ue(Je,a&1),e===null)return wu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=n.children,e=n.fallback,i?(n=t.mode,i=t.child,s={mode:"hidden",children:s},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=wl(s,n,0,null),e=Hn(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ou(r),t.memoizedState=Eu,e):tf(t,s));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return Fy(e,t,s,n,l,a,r);if(i){i=n.fallback,s=t.mode,a=e.child,l=a.sibling;var c={mode:"hidden",children:n.children};return!(s&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=c,t.deletions=null):(n=Sn(a,c),n.subtreeFlags=a.subtreeFlags&14680064),l!==null?i=Sn(l,i):(i=Hn(i,s,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,s=e.child.memoizedState,s=s===null?Ou(r):{base
vendor: 7,888 bytes, line 40
40Lanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=Eu,n}return i=e.child,e=i.sibling,n=Sn(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function tf(e,t){return t=wl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ao(e,t,r,n){return n!==null&&Fd(n),Ia(t,e.child,null,r),e=tf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fy(e,t,r,n,a,i,s){if(r)return t.flags&256?(t.flags&=-257,n=hc(Error(F(422))),Ao(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,a=t.mode,n=wl({mode:"visible",children:n.children},a,0,null),i=Hn(i,a,s,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&Ia(t,e.child,null,s),t.child.memoizedState=Ou(s),t.memoizedState=Eu,i);if(!(t.mode&1))return Ao(e,t,s,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(F(419)),n=hc(i,n,void 0),Ao(e,t,s,n)}if(l=(s&e.childLanes)!==0,Bt||l){if(n=mt,n!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|s)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,Gr(e,a),wr(n,e,a,-1))}return lf(),n=hc(Error(F(421))),Ao(e,t,s,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=ew.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,Kt=yn(a.nextSibling),Xt=t,Ve=!0,gr=null,e!==null&&(or[sr++]=Ur,or[sr++]=Fr,or[sr++]=Yn,Ur=e.id,Fr=e.overflow,Yn=t),t=tf(t,n.children),t.flags|=4096,t)}function Hm(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),bu(e.return,t,r)}function pc(e,t,r,n,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=a)}function Sv(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;if(Dt(e,t,n.children,r),n=Je.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hm(e,r,t);else if(e.tag===19)Hm(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ue(Je,n),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&Ms(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),pc(t,!1,a,r,i);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Ms(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}pc(t,!0,r,null,i);break;case"together":pc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ts(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Yr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Kn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,r=Sn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Sn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function By(e,t,r){switch(t.tag){case 3:bv(t),Aa();break;case 5:Kg(t);break;case 1:qt(t.type)&&ks(t);break;case 4:Gd(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;Ue(Os,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ue(Je,Je.current&1),t.flags|=128,null):r&t.child.childLanes?Nv(e,t,r):(Ue(Je,Je.current&1),e=Yr(e,t,r),e!==null?e.sibling:null);Ue(Je,Je.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return Sv(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ue(Je,Je.current),n)break;return null;case 22:case 23:return t.lanes=0,yv(e,t,r)}return Yr(e,t,r)}var _v,Pu,kv,Cv;_v=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Pu=function(){};kv=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,Fn(Rr.current);var i=null;switch(r){case"input":a=Xc(e,a),n=Xc(e,n),i=[];break;case"select":a=et({},a,{value:void 0}),n=et({},n,{value:void 0}),i=[];break;case"textarea":a=eu(e,a),n=eu(e,n),i=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Ss)}ru(r,n);var s;r=null;for(u in a)if(!n.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var l=a[u];for(s in l)l.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Li.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var c=n[u];if(l=a!=null?a[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(r||(r={}),r[s]=c[s])}else r||(i||(i=[]),i.push(u,r)),r=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Li.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Be("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Cv=function(e,t,r,n){r!==n&&(t.flags|=4)};function di(e,t){if(!Ve)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Wy(e,t,r){var n=t.pendingProps;switch(Ud(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(t),null;case 1:return qt(t.type)&&_s(),Ct(t),null;case 3:return n=t.stateNode,za(),We(Ht),We(Ot),Qd(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(jo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,gr!==null&&(Au(gr),gr=null))),Pu(e,t),Ct(t),null;case 5:Yd(t);var a=Fn(Yi.current);if(r=t.type,e!==null&&t.stateNode!=null)kv(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(F(166));return Ct(t),null}if(e=Fn(Rr.current),jo(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Er]=t,n[Vi]=i,e=(t.mode&1)!==0,r){case"dialog":Be("cancel",n),Be("close",n);break;case"iframe":case"object":case"embed":Be("load",n);break;case"video":case"audio":for(a=0;a<wi.length;a++)Be(wi[a],n);break;case"source":Be("error",n);break;
vendor: 17,869 bytes, line 40
40case"img":case"image":case"link":Be("error",n),Be("load",n);break;case"details":Be("toggle",n);break;case"input":Zf(n,i),Be("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Be("invalid",n);break;case"textarea":tm(n,i),Be("invalid",n)}ru(r,i),a=null;for(var s in i)if(i.hasOwnProperty(s)){var l=i[s];s==="children"?typeof l=="string"?n.textContent!==l&&(i.suppressHydrationWarning!==!0&&$o(n.textContent,l,e),a=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&$o(n.textContent,l,e),a=["children",""+l]):Li.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Be("scroll",n)}switch(r){case"input":Co(n),em(n,i,!0);break;case"textarea":Co(n),rm(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=Ss)}n=a,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Zp(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Er]=t,e[Vi]=n,_v(e,t,!1,!1),t.stateNode=e;e:{switch(s=nu(r,n),r){case"dialog":Be("cancel",e),Be("close",e),a=n;break;case"iframe":case"object":case"embed":Be("load",e),a=n;break;case"video":case"audio":for(a=0;a<wi.length;a++)Be(wi[a],e);a=n;break;case"source":Be("error",e),a=n;break;case"img":case"image":case"link":Be("error",e),Be("load",e),a=n;break;case"details":Be("toggle",e),a=n;break;case"input":Zf(e,n),a=Xc(e,n),Be("invalid",e);break;case"option":a=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=et({},n,{value:void 0}),Be("invalid",e);break;case"textarea":tm(e,n),a=eu(e,n),Be("invalid",e);break;default:a=n}ru(r,a),l=a;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?rg(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&eg(e,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Ai(e,c):typeof c=="number"&&Ai(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Li.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Be("scroll",e):c!=null&&kd(e,i,c,s))}switch(r){case"input":Co(e),em(e,n,!1);break;case"textarea":Co(e),rm(e);break;case"option":n.value!=null&&e.setAttribute("value",""+kn(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?Ca(e,!!n.multiple,i,!1):n.defaultValue!=null&&Ca(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Ss)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ct(t),null;case 6:if(e&&t.stateNode!=null)Cv(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(F(166));if(r=Fn(Yi.current),Fn(Rr.current),jo(t)){if(n=t.stateNode,r=t.memoizedProps,n[Er]=t,(i=n.nodeValue!==r)&&(e=Xt,e!==null))switch(e.tag){case 3:$o(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$o(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Er]=t,t.stateNode=n}return Ct(t),null;case 13:if(We(Je),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ve&&Kt!==null&&t.mode&1&&!(t.flags&128))Wg(),Aa(),t.flags|=98560,i=!1;else if(i=jo(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(F(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(F(317));i[Er]=t}else Aa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ct(t),i=!1}else gr!==null&&(Au(gr),gr=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Je.current&1?st===0&&(st=3):lf())),t.updateQueue!==null&&(t.flags|=4),Ct(t),null);case 4:return za(),Pu(e,t),e===null&&Hi(t.stateNode.containerInfo),Ct(t),null;case 10:return Hd(t.type._context),Ct(t),null;case 17:return qt(t.type)&&_s(),Ct(t),null;case 19:if(We(Je),i=t.memoizedState,i===null)return Ct(t),null;if(n=(t.flags&128)!==0,s=i.rendering,s===null)if(n)di(i,!1);else{if(st!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ms(e),s!==null){for(t.flags|=128,di(i,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ue(Je,Je.current&1|2),t.child}e=e.sibling}i.tail!==null&&nt()>Fa&&(t.flags|=128,n=!0,di(i,!1),t.lanes=4194304)}else{if(!n)if(e=Ms(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),di(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ve)return Ct(t),null}else 2*nt()-i.renderingStartTime>Fa&&r!==1073741824&&(t.flags|=128,n=!0,di(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=nt(),t.sibling=null,r=Je.current,Ue(Je,n?r&1|2:r&1),t):(Ct(t),null);case 22:case 23:return sf(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Qt&1073741824&&(Ct(t),t.subtreeFlags&6&&(t.flags|=8192)):Ct(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function Hy(e,t){switch(Ud(t),t.tag){case 1:return qt(t.type)&&_s(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return za(),We(Ht),We(Ot),Qd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yd(t),null;case 13:if(We(Je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return We(Je),null;case 4:return za(),null;case 10:return Hd(t.type._context),null;case 22:case 23:return sf(),null;case 24:return null;default:return null}}var Io=!1,Et=!1,qy=typeof WeakSet=="function"?WeakSet:Set,Q=null;function Sa(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){rt(e,t,n)}else r.current=null}function Tu(e,t,r){try{r()}catch(n){rt(e,t,n)}}var qm=!1;function Vy(e,t){if(mu=ws,e=Tg(),Id(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,l=-1,c=-1,u=0,f=0,g=e,m=null;t:for(;;){for(var y;g!==r||a!==0&&g.nodeType!==3||(l=s+a),g!==i||n!==0&&g.nodeType!==3||(c=s+n),g.nodeType===3&&(s+=g.nodeValue.length),(y=g.firstChild)!==null;)m=g,g=y;for(;;){if(g===e)break t;if(m===r&&++u===a&&(l=s),m===i&&++f===n&&(c=s),(y=g.nextSibling)!==null)break;g=m,m=g.parentNode}g=y}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(hu={focusedElem:e,selectionRange:r},ws=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var w=b.memoizedProps,_=b.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?w:hr(t.type,w),_);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(N){rt(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return b=qm,qm=!1,b}function Ti(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Tu(t,r,i)}a=a.next}while(a!==n)}}function xl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Mu(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Ev(e){var t=e.alternate;t!==null&&(e.alternate=null,Ev(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Er],delete t[Vi],delete t[vu],delete t[Oy],delete t[Py])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ov(e){return e.tag===5||e.tag===3||e.tag===4}function Vm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ov(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ru(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ss));else if(n!==4&&(e=e.child,e!==null))for(Ru(e,t,r),e=e.sibling;e!==null;)Ru(e,t,r),e=e.sibling}function Du(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Du(e,t,r),e=e.sibling;e!==null;)Du(e,t,r),e=e.sibling}var vt=null,pr=!1;function rn(e,t,r){for(r=r.child;r!==null;)Pv(e,t,r),r=r.sibling}function Pv(e,t,r){if(Mr&&typeof Mr.onCommitFiberUnmount=="function")try{Mr.onCommitFiberUnmount(ul,r)}catch{}switch(r.tag){case 5:Et||Sa(r,t);case 6:var n=vt,a=pr;vt=null,rn(e,t,r),vt=n,pr=a,vt!==null&&(pr?(e=vt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):vt.removeChild(r.stateNode));break;case 18:vt!==null&&(pr?(e=vt,r=r.stateNode,e.nodeType===8?lc(e.parentNode,r):e.nodeType===1&&lc(e,r),Fi(e)):lc(vt,r.stateNode));break;case 4:n=vt,a=pr,vt=r.stateNode.containerInfo,pr=!0,rn(e,t,r),vt=n,pr=a;break;case 0:case 11:case 14:case 15:if(!Et&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Tu(r,t,s),a=a.next}while(a!==n)}rn(e,t,r);break;case 1:if(!Et&&(Sa(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){rt(r,t,l)}rn(e,t,r);break;case 21:rn(e,t,r);break;case 22:r.mode&1?(Et=(n=Et)||r.memoizedState!==null,rn(e,t,r),Et=n):rn(e,t,r);break;default:rn(e,t,r)}}function Gm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new qy),t.forEach(function(n){var a=tw.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function mr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];try{var i=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:vt=l.stateNode,pr=!1;break e;case 3:vt=l.stateNode.containerInfo,pr=!0;break e;case 4:vt=l.stateNode.containerInfo,pr=!0;break e}l=l.return}if(vt===null)throw Error(F(160));Pv(i,s,a),vt=null,pr=!1;var c=a.alternate;c!==null&&(c.return=null),a.return=null}catch(u){rt(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Tv(t,e),t=t.sibling}function Tv(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mr(t,e),kr(e),n&4){try{Ti(3,e,e.return),xl(3,e)}catch(w){rt(e,e.return,w)}try{Ti(5,e,e.return)}catch(w){rt(e,e.return,w)}}break;case 1:mr(t,e),kr(e),n&512&&r!==null&&Sa(r,r.return);break;case 5:if(mr(t,e),kr(e),n&512&&r!==null&&Sa(r,r.return),e.flags&32){var a=e.stateNode;try{Ai(a,"")}catch(w){rt(e,e.return,w)}}if(n&4&&(a=e.stateNode,a!=null)){var i=e.memoizedProps,s=r!==null?r.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Xp(a,i),nu(l,s);var u=nu(l,i);for(s=0;s<c.length;s+=2){var f=c[s],g=c[s+1];f==="style"?rg(a,g):f==="dangerouslySetInnerHTML"?eg(a,g):f==="children"?Ai(a,g):kd(a,f,g,u)}switch(l){case"input":Jc(a,i);break;case"textarea":Jp(a,i);break;case"select":var m=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?Ca(a,!!i.multiple,y,!1):m!==!!i.multiple&&(i.defaultValue!=null?Ca(a,!!i.multiple,i.defaultValue,!0):Ca(a,!!i.multiple,i.multiple?[]:"",!1))}a[Vi]=i}catch(w){rt(e,e.return,w)}}break;case 6:if(mr(t,e),kr(e),n&4){if(e.stateNode===null)throw Error(F(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(w){rt(e,e.return,w)}}break;case 3:if(mr(t,e),kr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Fi(t.containerInfo)}catch(w){rt(e,e.return,w)}break;case 4:mr(t,e),kr(e);break;case 13:mr(t,e),kr(e),a=e.child,a.flags&8192&&(i=a.memoizedState!==null,a.stateNode.isHidden=i,!i||a.alternate!==null&&a.alternate.memoizedState!==null||(af=nt())),n&4&&Gm(e);break;case 22:if(f=r!==null&&r.memoizedState!==null,e.mode&1?(Et=(u=Et)||f,mr(t,e),Et=u):mr(t,e),kr(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(Q=e,f=e.child;f!==null;){for(g=Q=f;Q!==null;){switch(m=Q,y=m.child,m.tag){case 0:case 11:case 14:case 15:Ti(4,m,m.return);break;case 1:Sa(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){n=m,r=m.return;try{t=n,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(w){rt(n,r,w)}}break;case 5:Sa(m,m.return);break;case 22:if(m.memoizedState!==null){Qm(g);continue}}y!==null?(y.return=m,Q=y):Qm(g)}f=f.sibling}e:for(f=null,g=e;;){if(g.tag===5){if(f===null){f=g;try{a=g.stateNode,u?(i=a.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=g.stateNode,c=g.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=tg("display",s))}catch(w){rt(e,e.return,w)}}}else if(g.tag===6){if(f===null)try{g.stateNode.nodeValue=u?"":g.memoizedProps}catch(w){rt(e,e.return,w)}}else if((g.tag!==22&&g.tag!==23||g.memoizedState===null||g===e)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break e;for(;g.sibling===null;){if(g.return===null||g.return===e)break e;f===g&&(f=null),g=g.return}f===g&&(f=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:mr(t,e),kr(e),n&4&&Gm(e);break;case 21:break;default:mr(t,e),kr(e)}}function kr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Ov(r)){var n=r;break e}r=r.return}throw Error(F(160))}switch(n.tag){case 5:var a=n.stateNode;n.flags&32&&(Ai(a,""),n.flags&=-33);var i=Vm(e);Du(e,i,a);break;case 3:case 4:var s=n.stateNode.containerInfo,l=Vm(e);Ru(e,l,s);break;default:throw Error(F(161))}}catch(c){rt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gy(e,t,r){Q=e,Mv(e)}function Mv(e,t,r){for(var n=(e.mode&1)!==0;Q!==null;){var a=Q,i=a.child;if(a.tag===22&&n){var s=a.memoizedState!==null||Io;if(!s){var l=a.alternate,c=l!==null&&l.memoizedState!==null||Et;l=Io;var u=Et;if(Io=s,(Et=c)&&!u)for(Q=a;Q!==null;)s=Q,c=s.child,s.tag===22&&s.memoizedState!==null?Km(a):c!==null?(c.return=s,Q=c):Km(a);for(;i!==null;)Q=i,Mv(i),i=i.sibling;Q=a,Io=l,Et=u}Ym(e)}else a.subtreeFlags&8772&&i!==null?(i.return=a,Q=i):Ym(e)}}function Ym(e){for(;Q!==null;){var t=Q;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Et||xl(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Et)if(r===null)n.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:hr(t.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Mm(t,i,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Mm(t,s,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var g=f.dehydrated;g!==null&&Fi(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}Et||t.flags&512&&Mu(t)}catch(m){rt(t,t.return,m)}}if(t===e){Q=null;break}if(r=t.sibling,r!==null){r.return=t.return,Q=r;break}Q=t.return}}function Qm(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Q=r;break}Q=t.return}}function Km(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{xl(4,t)}catch(c){rt(t,r,c)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var a=t.return;try{n.componentDidMount()}catch(c){rt(t,a,c)}}var i=t.return;try{Mu(t)}catch(c){rt(t,i,c)}break;case 5:var s=t.return;try{Mu(t)}catch(c){rt(t,s,c)}}}catch(c){rt(t,t.return,c)}if(t===e){Q=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Q=l;break}Q=t.return}}var Yy=Math.ceil,$s=Kr.ReactCurrentDispatcher,rf=Kr.ReactCurrentOwner,cr=Kr.ReactCurrentBatchConfig,Oe=0,mt=null,it=null,wt=0,Qt=0,_a=Pn(0),st=0,Ji=null,Kn=0,yl=0,nf=0,Mi=null,Ft=null,af=0,Fa=1/0,Ar=null,js=!1,$u=null,bn=null,zo=!1,mn=null,Ls=0,Ri=0,ju=null,rs=-1,ns=0;
vendor: 8,649 bytes, line 40
40function $t(){return Oe&6?nt():rs!==-1?rs:rs=nt()}function Nn(e){return e.mode&1?Oe&2&&wt!==0?wt&-wt:My.transition!==null?(ns===0&&(ns=hg()),ns):(e=Le,e!==0||(e=window.event,e=e===void 0?16:bg(e.type)),e):1}function wr(e,t,r,n){if(50<Ri)throw Ri=0,ju=null,Error(F(185));so(e,r,n),(!(Oe&2)||e!==mt)&&(e===mt&&(!(Oe&2)&&(yl|=r),st===4&&dn(e,wt)),Vt(e,n),r===1&&Oe===0&&!(t.mode&1)&&(Fa=nt()+500,pl&&Tn()))}function Vt(e,t){var r=e.callbackNode;M1(e,t);var n=ys(e,e===mt?wt:0);if(n===0)r!==null&&im(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&im(r),t===1)e.tag===0?Ty(Xm.bind(null,e)):Ug(Xm.bind(null,e)),Cy(function(){!(Oe&6)&&Tn()}),r=null;else{switch(pg(n)){case 1:r=Td;break;case 4:r=fg;break;case 16:r=xs;break;case 536870912:r=mg;break;default:r=xs}r=zv(r,Rv.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Rv(e,t){if(rs=-1,ns=0,Oe&6)throw Error(F(327));var r=e.callbackNode;if(Ma()&&e.callbackNode!==r)return null;var n=ys(e,e===mt?wt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=As(e,n);else{t=n;var a=Oe;Oe|=2;var i=$v();(mt!==e||wt!==t)&&(Ar=null,Fa=nt()+500,Wn(e,t));do try{Xy();break}catch(l){Dv(e,l)}while(1);Wd(),$s.current=i,Oe=a,it!==null?t=0:(mt=null,wt=0,t=st)}if(t!==0){if(t===2&&(a=lu(e),a!==0&&(n=a,t=Lu(e,a))),t===1)throw r=Ji,Wn(e,0),dn(e,n),Vt(e,nt()),r;if(t===6)dn(e,n);else{if(a=e.current.alternate,!(n&30)&&!Qy(a)&&(t=As(e,n),t===2&&(i=lu(e),i!==0&&(n=i,t=Lu(e,i))),t===1))throw r=Ji,Wn(e,0),dn(e,n),Vt(e,nt()),r;switch(e.finishedWork=a,e.finishedLanes=n,t){case 0:case 1:throw Error(F(345));case 2:An(e,Ft,Ar);break;case 3:if(dn(e,n),(n&130023424)===n&&(t=af+500-nt(),10<t)){if(ys(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){$t(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=gu(An.bind(null,e,Ft,Ar),t);break}An(e,Ft,Ar);break;case 4:if(dn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,a=-1;0<n;){var s=31-yr(n);i=1<<s,s=t[s],s>a&&(a=s),n&=~i}if(n=a,n=nt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Yy(n/1960))-n,10<n){e.timeoutHandle=gu(An.bind(null,e,Ft,Ar),n);break}An(e,Ft,Ar);break;case 5:An(e,Ft,Ar);break;default:throw Error(F(329))}}}return Vt(e,nt()),e.callbackNode===r?Rv.bind(null,e):null}function Lu(e,t){var r=Mi;return e.current.memoizedState.isDehydrated&&(Wn(e,t).flags|=256),e=As(e,t),e!==2&&(t=Ft,Ft=r,t!==null&&Au(t)),e}function Au(e){Ft===null?Ft=e:Ft.push.apply(Ft,e)}function Qy(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var a=r[n],i=a.getSnapshot;a=a.value;try{if(!br(i(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function dn(e,t){for(t&=~nf,t&=~yl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-yr(t),n=1<<r;e[r]=-1,t&=~n}}function Xm(e){if(Oe&6)throw Error(F(327));Ma();var t=ys(e,0);if(!(t&1))return Vt(e,nt()),null;var r=As(e,t);if(e.tag!==0&&r===2){var n=lu(e);n!==0&&(t=n,r=Lu(e,n))}if(r===1)throw r=Ji,Wn(e,0),dn(e,t),Vt(e,nt()),r;if(r===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,An(e,Ft,Ar),Vt(e,nt()),null}function of(e,t){var r=Oe;Oe|=1;try{return e(t)}finally{Oe=r,Oe===0&&(Fa=nt()+500,pl&&Tn())}}function Xn(e){mn!==null&&mn.tag===0&&!(Oe&6)&&Ma();var t=Oe;Oe|=1;var r=cr.transition,n=Le;try{if(cr.transition=null,Le=1,e)return e()}finally{Le=n,cr.transition=r,Oe=t,!(Oe&6)&&Tn()}}function sf(){Qt=_a.current,We(_a)}function Wn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,ky(r)),it!==null)for(r=it.return;r!==null;){var n=r;switch(Ud(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&_s();break;case 3:za(),We(Ht),We(Ot),Qd();break;case 5:Yd(n);break;case 4:za();break;case 13:We(Je);break;case 19:We(Je);break;case 10:Hd(n.type._context);break;case 22:case 23:sf()}r=r.return}if(mt=e,it=e=Sn(e.current,null),wt=Qt=t,st=0,Ji=null,nf=yl=Kn=0,Ft=Mi=null,Un!==null){for(t=0;t<Un.length;t++)if(r=Un[t],n=r.interleaved,n!==null){r.interleaved=null;var a=n.next,i=r.pending;if(i!==null){var s=i.next;i.next=a,n.next=s}r.pending=n}Un=null}return e}function Dv(e,t){do{var r=it;try{if(Wd(),Zo.current=Ds,Rs){for(var n=Ze.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Rs=!1}if(Qn=0,ft=ot=Ze=null,Pi=!1,Qi=0,rf.current=null,r===null||r.return===null){st=1,Ji=t,it=null;break}e:{var i=e,s=r.return,l=r,c=t;if(t=wt,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,f=l,g=f.tag;if(!(f.mode&1)&&(g===0||g===11||g===15)){var m=f.alternate;m?(f.updateQueue=m.updateQueue,f.memoizedState=m.memoizedState,f.lanes=m.lanes):(f.updateQueue=null,f.memoizedState=null)}var y=Im(s);if(y!==null){y.flags&=-257,zm(y,s,l,i,t),y.mode&1&&Am(i,u,t),t=y,c=u;var b=t.updateQueue;if(b===null){var w=new Set;w.add(c),t.updateQueue=w}else b.add(c);break e}else{if(!(t&1)){Am(i,u,t),lf();break e}c=Error(F(426))}}else if(Ve&&l.mode&1){var _=Im(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),zm(_,s,l,i,t),Fd(Ua(c,l));break e}}i=c=Ua(c,l),st!==4&&(st=2),Mi===null?Mi=[i]:Mi.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=gv(i,c,t);Tm(i,v);break e;case 1:l=c;var h=i.type,p=i.stateNode;if(!(i.flags&128)&&(typeof h.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(bn===null||!bn.has(p)))){i.flags|=65536,t&=-t,i.lanes|=t;var N=vv(i,l,t);Tm(i,N);break e}}i=i.return}while(i!==null)}Lv(r)}catch(S){t=S,it===r&&r!==null&&(it=r=r.return);continue}break}while(1)}function $v(){var e=$s.current;return $s.current=Ds,e===null?Ds:e}function lf(){(st===0||st===3||st===2)&&(st=4),mt===null||!(Kn&268435455)&&!(yl&268435455)||dn(mt,wt)}function As(e,t){var r=Oe;Oe|=2;var n=$v();(mt!==e||wt!==t)&&(Ar=null,Wn(e,t));do try{Ky();break}catch(a){Dv(e,a)}while(1);if(Wd(),Oe=r,$s.current=n,it!==null)throw Error(F(261));return mt=null,wt=0,st}function Ky(){for(;it!==null;)jv(it)}function Xy(){for(;it!==null&&!N1();)jv(it)}function jv(e){var t=Iv(e.alternate,e,Qt);e.memoizedProps=e.pendingProps,t===null?Lv(e):it=t,rf.current=null}function Lv(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Hy(r,t),r!==null){r.flags&=32767,it=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{st=6,it=null;return}}else if(r=Wy(r,t,Qt),r!==null){it=r;return}if(t=t.sibling,t!==null){it=t;return}it=t=e}while(t!==null);st===0&&(st=5)}function An(e,t,r){var n=Le,a=cr.transition;try{cr.transition=null,Le=1,Jy(e,t,r,n)}finally{cr.transition=a,Le=n}return null}function Jy(e,t,r,n){do Ma();while(mn!==null);if(Oe&6)throw Error(F(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(F(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(R1(e,i),e===mt&&(it=mt=null,wt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||zo||(zo=!0,zv(xs,function(){return Ma(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=cr.transition,cr.transition=null;var s=Le;Le=1;var l=Oe;Oe|=4,rf.current=null,Vy(e,r),Tv(r,e),xy(hu),ws=!!mu,hu=mu=null,e.current=r,Gy(r),S1(),Oe=l,Le=s,cr.transition=i}else e.current=r;if(zo&&(zo=!1,mn=e,Ls=a),i=e.pendingLanes,i===0&&(bn=null),C1(r.stateNode),Vt(e,nt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(js)throw js=!1,e=$u,$u=null,e;return Ls&1&&e.tag!==0&&Ma(),i=e.pendingLanes,i&1?e===ju?Ri++:(Ri=0,ju=e):Ri=0,Tn(),null}function Ma(){if(mn!==null){var e=pg(Ls),t=cr.transition,r=Le;try{if(cr.transition=null,Le=16>e?16:e,mn===null)var n=!1;else{if(e=mn,mn=null,Ls=0,Oe&6)throw Error(F(331));var a=Oe;for(Oe|=4,Q=e.current;Q!==null;){var i=Q,s=i.child;if(Q.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(Q=u;Q!==null;){var f=Q;switch(f.tag){case 0:case 11:case 15:Ti(8,f,i)}var g=f.child;if(g!==null)g.return=f,Q=g;else for(;Q!==null;){f=Q;var m=f.sibling,y=f.return;if(Ev(f),f===u){Q=null;break}if(m!==null){m.return=y,Q=m;break}Q=y}}}var b=i.alternate;if(b!==null){var w=b.child;if(w!==null){b.child=null;do{var _=w.sibling;w.sibling=null,w=_}while(w!==null)}}Q=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,Q=s;else e:for(;Q!==null;){if(i=Q,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ti(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,Q=v;break e}Q=i.return}}var h=e.current;for(Q=h;Q!==null;){s=Q;var p=s.child;
vendor: 4,174 bytes, line 40
40if(s.subtreeFlags&2064&&p!==null)p.return=s,Q=p;else e:for(s=h;Q!==null;){if(l=Q,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:xl(9,l)}}catch(S){rt(l,l.return,S)}if(l===s){Q=null;break e}var N=l.sibling;if(N!==null){N.return=l.return,Q=N;break e}Q=l.return}}if(Oe=a,Tn(),Mr&&typeof Mr.onPostCommitFiberRoot=="function")try{Mr.onPostCommitFiberRoot(ul,e)}catch{}n=!0}return n}finally{Le=r,cr.transition=t}}return!1}function Jm(e,t,r){t=Ua(r,t),t=gv(e,t,1),e=wn(e,t,1),t=$t(),e!==null&&(so(e,1,t),Vt(e,t))}function rt(e,t,r){if(e.tag===3)Jm(e,e,r);else for(;t!==null;){if(t.tag===3){Jm(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(bn===null||!bn.has(n))){e=Ua(r,e),e=vv(t,e,1),t=wn(t,e,1),e=$t(),t!==null&&(so(t,1,e),Vt(t,e));break}}t=t.return}}function Zy(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=$t(),e.pingedLanes|=e.suspendedLanes&r,mt===e&&(wt&r)===r&&(st===4||st===3&&(wt&130023424)===wt&&500>nt()-af?Wn(e,0):nf|=r),Vt(e,t)}function Av(e,t){t===0&&(e.mode&1?(t=Po,Po<<=1,!(Po&130023424)&&(Po=4194304)):t=1);var r=$t();e=Gr(e,t),e!==null&&(so(e,t,r),Vt(e,r))}function ew(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Av(e,r)}function tw(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(F(314))}n!==null&&n.delete(t),Av(e,r)}var Iv;Iv=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ht.current)Bt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Bt=!1,By(e,t,r);Bt=!!(e.flags&131072)}else Bt=!1,Ve&&t.flags&1048576&&Fg(t,Es,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ts(e,t),e=t.pendingProps;var a=La(t,Ot.current);Ta(t,r),a=Xd(null,t,n,e,a,r);var i=Jd();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qt(n)?(i=!0,ks(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Vd(t),a.updater=gl,t.stateNode=a,a._reactInternals=t,Su(t,n,e,r),t=Cu(null,t,n,!0,i,r)):(t.tag=0,Ve&&i&&zd(t),Dt(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ts(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=nw(n),e=hr(n,e),a){case 0:t=ku(null,t,n,e,r);break e;case 1:t=Bm(null,t,n,e,r);break e;case 11:t=Um(null,t,n,e,r);break e;case 14:t=Fm(null,t,n,hr(n.type,e),r);break e}throw Error(F(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:hr(n,a),ku(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:hr(n,a),Bm(e,t,n,a,r);case 3:e:{if(bv(t),e===null)throw Error(F(387));n=t.pendingProps,i=t.memoizedState,a=i.element,qg(e,t),Ts(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=Ua(Error(F(423)),t),t=Wm(e,t,n,r,a);break e}else if(n!==a){a=Ua(Error(F(424)),t),t=Wm(e,t,n,r,a);break e}else for(Kt=yn(t.stateNode.containerInfo.firstChild),Xt=t,Ve=!0,gr=null,r=Qg(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Aa(),n===a){t=Yr(e,t,r);break e}Dt(e,t,n,r)}t=t.child}return t;case 5:return Kg(t),e===null&&wu(t),n=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,s=a.children,pu(n,a)?s=null:i!==null&&pu(n,i)&&(t.flags|=32),wv(e,t),Dt(e,t,s,r),t.child;case 6:return e===null&&wu(t),null;case 13:return Nv(e,t,r);case 4:return Gd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ia(t,null,n,r):Dt(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:hr(n,a),Um(e,t,n,a,r);case 7:return Dt(e,t,t.pendingProps,r),t.child;case 8:return Dt(e,t,t.pendingProps.children,r),t.child;case 12:return Dt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,i=t.memoizedProps,s=a.value,Ue(Os,n._currentValue),n._currentValue=s,i!==null)if(br(i.value,s)){if(i.children===a.children&&!Ht.current){t=Yr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);
vendor: 4,300 bytes, line 40
40i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Br(-1,r&-r),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),bu(i.return,r,t),l.lanes|=r;break}c=c.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(F(341));s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),bu(s,r,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Dt(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Ta(t,r),a=ur(a),n=n(a),t.flags|=1,Dt(e,t,n,r),t.child;case 14:return n=t.type,a=hr(n,t.pendingProps),a=hr(n.type,a),Fm(e,t,n,a,r);case 15:return xv(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:hr(n,a),ts(e,t),t.tag=1,qt(n)?(e=!0,ks(t)):e=!1,Ta(t,r),Gg(t,n,a),Su(t,n,a,r),Cu(null,t,n,!0,e,r);case 19:return Sv(e,t,r);case 22:return yv(e,t,r)}throw Error(F(156,t.tag))};function zv(e,t){return dg(e,t)}function rw(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lr(e,t,r,n){return new rw(e,t,r,n)}function cf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nw(e){if(typeof e=="function")return cf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ed)return 11;if(e===Od)return 14}return 2}function Sn(e,t){var r=e.alternate;return r===null?(r=lr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function as(e,t,r,n,a,i){var s=2;if(n=e,typeof e=="function")cf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ha:return Hn(r.children,a,i,t);case Cd:s=8,a|=8;break;case Gc:return e=lr(12,r,t,a|2),e.elementType=Gc,e.lanes=i,e;case Yc:return e=lr(13,r,t,a),e.elementType=Yc,e.lanes=i,e;case Qc:return e=lr(19,r,t,a),e.elementType=Qc,e.lanes=i,e;case Yp:return wl(r,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vp:s=10;break e;case Gp:s=9;break e;case Ed:s=11;break e;case Od:s=14;break e;case sn:s=16,n=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=lr(s,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function Hn(e,t,r,n){return e=lr(7,e,n,t),e.lanes=r,e}function wl(e,t,r,n){return e=lr(22,e,n,t),e.elementType=Yp,e.lanes=r,e.stateNode={isHidden:!1},e}function gc(e,t,r){return e=lr(6,e,null,t),e.lanes=r,e}function vc(e,t,r){return t=lr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aw(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xl(0),this.expirationTimes=Xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xl(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function uf(e,t,r,n,a,i,s,l,c){return e=new aw(e,t,r,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=lr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vd(i),e}function iw(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;
vendor: 6,661 bytes, line 40
40return{$$typeof:ma,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Uv(e){if(!e)return Cn;e=e._reactInternals;e:{if(ea(e)!==e||e.tag!==1)throw Error(F(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(F(171))}if(e.tag===1){var r=e.type;if(qt(r))return zg(e,r,t)}return t}function Fv(e,t,r,n,a,i,s,l,c){return e=uf(r,n,!0,e,a,i,s,l,c),e.context=Uv(null),r=e.current,n=$t(),a=Nn(r),i=Br(n,a),i.callback=t??null,wn(r,i,a),e.current.lanes=a,so(e,a,n),Vt(e,n),e}function bl(e,t,r,n){var a=t.current,i=$t(),s=Nn(a);return r=Uv(r),t.context===null?t.context=r:t.pendingContext=r,t=Br(i,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=wn(a,t,s),e!==null&&(wr(e,a,s,i),Jo(e,a,s)),s}function Is(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Zm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function df(e,t){Zm(e,t),(e=e.alternate)&&Zm(e,t)}function ow(){return null}var Bv=typeof reportError=="function"?reportError:function(e){console.error(e)};function ff(e){this._internalRoot=e}Nl.prototype.render=ff.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));bl(e,t,null,null)};Nl.prototype.unmount=ff.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xn(function(){bl(null,e,null,null)}),t[Vr]=null}};function Nl(e){this._internalRoot=e}Nl.prototype.unstable_scheduleHydration=function(e){if(e){var t=xg();e={blockedOn:null,target:e,priority:t};for(var r=0;r<un.length&&t!==0&&t<un[r].priority;r++);un.splice(r,0,e),r===0&&wg(e)}};function mf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Sl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function eh(){}function sw(e,t,r,n,a){if(a){if(typeof n=="function"){var i=n;n=function(){var u=Is(s);i.call(u)}}var s=Fv(t,n,e,0,null,!1,!1,"",eh);return e._reactRootContainer=s,e[Vr]=s.current,Hi(e.nodeType===8?e.parentNode:e),Xn(),s}for(;a=e.lastChild;)e.removeChild(a);if(typeof n=="function"){var l=n;n=function(){var u=Is(c);l.call(u)}}var c=uf(e,0,!1,null,null,!1,!1,"",eh);return e._reactRootContainer=c,e[Vr]=c.current,Hi(e.nodeType===8?e.parentNode:e),Xn(function(){bl(t,c,r,n)}),c}function _l(e,t,r,n,a){var i=r._reactRootContainer;if(i){var s=i;if(typeof a=="function"){var l=a;a=function(){var c=Is(s);l.call(c)}}bl(t,s,e,a)}else s=sw(r,t,e,a,n);return Is(s)}gg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=yi(t.pendingLanes);r!==0&&(Md(t,r|1),Vt(t,nt()),!(Oe&6)&&(Fa=nt()+500,Tn()))}break;case 13:Xn(function(){var n=Gr(e,1);if(n!==null){var a=$t();wr(n,e,1,a)}}),df(e,1)}};Rd=function(e){if(e.tag===13){var t=Gr(e,134217728);if(t!==null){var r=$t();wr(t,e,134217728,r)}df(e,134217728)}};vg=function(e){if(e.tag===13){var t=Nn(e),r=Gr(e,t);if(r!==null){var n=$t();wr(r,e,t,n)}df(e,t)}};xg=function(){return Le};yg=function(e,t){var r=Le;try{return Le=e,t()}finally{Le=r}};iu=function(e,t,r){switch(t){case"input":if(Jc(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=hl(n);if(!a)throw Error(F(90));Kp(n),Jc(n,a)}}}break;case"textarea":Jp(e,r);break;case"select":t=r.value,t!=null&&Ca(e,!!r.multiple,t,!1)}};ig=of;og=Xn;var lw={usingClientEntryPoint:!1,Events:[co,xa,hl,ng,ag,of]},fi={findFiberByHostInstance:zn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},cw={bundleType:fi.bundleType,version:fi.version,rendererPackageName:fi.rendererPackageName,rendererConfig:fi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Kr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=cg(e),e===null?null:e.stateNode},findFiberByHostInstance:fi.findFiberByHostInstance||ow,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Uo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uo.isDisabled&&Uo.supportsFiber)try{ul=Uo.inject(cw),Mr=Uo}catch{}}Zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lw;Zt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mf(t))throw Error(F(200));return iw(e,t,null,r)};Zt.createRoot=function(e,t){if(!mf(e))throw Error(F(299));var r=!1,n="",a=Bv;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=uf(e,1,!1,null,null,r,!1,n,a),e[Vr]=t.current,Hi(e.nodeType===8?e.parentNode:e),new ff(t)};Zt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=cg(t),e=e===null?null:e.stateNode,e};Zt.flushSync=function(e){return Xn(e)};Zt.hydrate=function(e,t,r){if(!Sl(t))throw Error(F(200));return _l(null,e,t,!0,r)};Zt.hydrateRoot=function(e,t,r){if(!mf(e))throw Error(F(405));var n=r!=null&&r.hydratedSources||null,a=!1,i="",s=Bv;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=Fv(t,null,e,1,r??null,a,!1,i,s),e[Vr]=t.current,Hi(e),n)for(e=0;e<n.length;e++)r=n[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Nl(t)};Zt.render=function(e,t,r){if(!Sl(t))throw Error(F(200));return _l(null,e,t,!1,r)};Zt.unmountComponentAtNode=function(e){if(!Sl(e))throw Error(F(40));return e._reactRootContainer?(Xn(function(){_l(null,null,e,!1,function(){e._reactRootContainer=null,e[Vr]=null})}),!0):!1};Zt.unstable_batchedUpdates=of;Zt.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Sl(r))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return _l(e,t,r,!1,n)};
40Zt.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}t(),e.exports=Zt})(o1);var th=Hc;Wc.createRoot=th.createRoot,Wc.hydrateRoot=th.hydrateRoot;/** 41 * @remix-run/router v1.3.2 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Te.apply(this,arguments)}var at;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(at||(at={}));const rh="popstate";function uw(e){e===void 0&&(e={});function t(n,a){let{pathname:i,search:s,hash:l}=n.location;return Zi("",{pathname:i,search:s,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:Qr(a)}return fw(t,r,null,e)}function pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dw(){return Math.random().toString(36).substr(2,8)}function nh(e,t){return{usr:e.state,key:e.key,idx:t}}function Zi(e,t,r,n){return r===void 0&&(r=null),Te({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xr(t):t,{state:r,key:t&&t.key||n||dw()})}function Qr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Xr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function fw(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:i=!1}=n,s=a.history,l=at.Pop,c=null,u=f();u==null&&(u=0,s.replaceState(Te({},s.state,{idx:u}),""));function f(){return(s.state||{idx:null}).idx}function g(){l=at.Pop;let _=f(),v=_==null?null:_-u;u=_,c&&c({action:l,location:w.location,delta:v})}function m(_,v){l=at.Push;let h=Zi(w.location,_,v);r&&r(h,_),u=f()+1;let p=nh(h,u),N=w.createHref(h);try{s.pushState(p,"",N)}catch{a.location.assign(N)}i&&c&&c({action:l,location:w.location,delta:1})}function y(_,v){l=at.Replace;let h=Zi(w.location,_,v);r&&r(h,_),u=f();let p=nh(h,u),N=w.createHref(h);s.replaceState(p,"",N),i&&c&&c({action:l,location:w.location,delta:0})}function b(_){let v=a.location.origin!=="null"?a.location.origin:a.location.href,h=typeof _=="string"?_:Qr(_);return pe(v,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,v)}let w={get action(){return l},get location(){return e(a,s)},listen(_){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(rh,g),c=_,()=>{a.removeEventListener(rh,g),c=null}},createHref(_){return t(a,_)},createURL:b,encodeLocation(_){let v=b(_);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:y,go(_){return s.go(_)}};return w}var xt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(xt||(xt={}));function mw(e){return e.index===!0}function Wv(e,t,r){return t===void 0&&(t=[]),r===void 0&&(r=new Set),e.map((n,a)=>{let i=[...t,a],s=typeof n.id=="string"?n.id:i.join("-");return pe(n.index!==!0||!n.children,"Cannot specify children on an index route"),pe(!r.has(s),'Found a route id collision on i
49d "'+s+`". Route id's must be globally unique within Data Router usages`),r.add(s),mw(n)?Te({},n,{id:s}):Te({},n,{id:s,children:n.children?Wv(n.children,i,r):void 0})})}function bi(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Xr(t):t,a=Vv(n.pathname||"/",r);if(a==null)return null;let i=Hv(e);hw(i);let s=null;for(let l=0;s==null&&l<i.length;++l)s=Sw(i[l],Cw(a));return s}function Hv(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(i,s,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};c.relativePath.startsWith("/")&&(pe(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let u=Wr([n,c.relativePath]),f=r.concat(c);i.children&&i.children.length>0&&(pe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Hv(i.children,t,f,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:bw(u,i.index),routesMeta:f})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,s);else for(let c of qv(i.path))a(i,s,c)}),t}function qv(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let s=qv(n.join("/")),l=[];return l.push(...s.map(c=>c===""?i:[i,c].join("/"))),a&&l.push(...s),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function hw(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Nw(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const pw=/^:\w+$/,gw=3,vw=2,xw=1,yw=10,ww=-2,ah=e=>e==="*";function bw(e,t){let r=e.split("/"),n=r.length;return r.some(ah)&&(n+=ww),t&&(n+=vw),r.filter(a=>!ah(a)).reduce((a,i)=>a+(pw.test(i)?gw:i===""?xw:yw),n)}function Nw(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function Sw(e,t){let{routesMeta:r}=e,n={},a="/",i=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,u=a==="/"?t:t.slice(a.length)||"/",f=_w({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u);if(!f)return null;
49Object.assign(n,f.params);let g=l.route;i.push({params:n,pathname:Wr([a,f.pathname]),pathnameBase:Tw(Wr([a,f.pathnameBase])),route:g}),f.pathnameBase!=="/"&&(a=Wr([a,f.pathnameBase]))}return i}function _w(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=kw(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let i=a[0],s=i.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce((u,f,g)=>{if(f==="*"){let m=l[g]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return u[f]=Ew(l[g]||"",f),u},{}),pathname:i,pathnameBase:s,pattern:e}}function kw(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),eo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,l)=>(n.push(l),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function Cw(e){try{return decodeURI(e)}catch(t){return eo(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ew(e,t){try{return decodeURIComponent(e)}catch(r){return eo(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Vv(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function eo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ow(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Xr(e):e;return{pathname:r?r.startsWith("/")?r:Pw(r,t):t,search:Mw(n),hash:Rw(a)}}function Pw(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function xc(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function kl(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function hf(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=Xr(e):(a=Te({},e),pe(!a.pathname||!a.pathname.includes("?"),xc("?","pathname","search",a)),pe(!a.pathname||!a.pathname.includes("#"),xc("#","pathname","hash",a)),pe(!a.search||!a.search.includes("#"),xc("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,l;if(n||s==null)l=r;else{let g=t.length-1;if(s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),g-=1;a.pathname=m.join("/")}l=g>=0?t[g]:"/"}let c=Ow(a,l),u=s&&s!=="/"&&s.endsWith("/"),f=(i||s===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||f)&&(c.pathname+="/"),c}const Wr=e=>e.join("/").replace(/\/\/+/g,"/"),Tw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Mw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Rw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ih extends Error{}class Dw{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],pe(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((i,s)=>n=s),this.controller=new AbortController;let a=()=>n(new ih("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",a),this.controller.signal.addEventListener("abort",a),this.data=Object.entries(t).reduce((i,s)=>{let[l,c]=s;return Object.assign(i,{[l]:this.trackPromise(l,c)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(a=>this.onSettle(n,t,null,a),a=>this.onSettle(n,t,a));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,a){return this.controller.signal.aborted&&n instanceof ih?(this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n)):(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n?(Object.defineProperty(t,"_error",{get:()=>n}
49),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>a}),this.emit(!1,r),a))}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(a=>{this.subscribe(i=>{t.removeEventListener("abort",n),(i||this.done)&&a(i)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return pe(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,a]=r;return Object.assign(t,{[n]:jw(a)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function $w(e){return e instanceof Promise&&e._tracked===!0}function jw(e){if(!$w(e))return e;if(e._error)throw e._error;return e._data}class pf{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Gv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Yv=["post","put","patch","delete"],Lw=new Set(Yv),Aw=["get",...Yv],Iw=new Set(Aw),zw=new Set([301,302,303,307,308]),Uw=new Set([307,308]),yc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Fw={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},oh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Qv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Bw=!Kv;function Ww(e){pe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=Wv(e.routes),r=null,n=new Set,a=null,i=null,s=null,l=e.hydrationData!=null,c=bi(t,e.history.location,e.basename),u=null;if(c==null){let R=on(404,{pathname:e.history.location.pathname}),{matches:D,route:I}=fh(t);c=D,u={[I.id]:R}}let f=!c.some(R=>R.route.loader)||e.hydrationData!=null,g,m={historyAction:e.history.action,location:e.history.location,matches:c,initialized:f,navigation:yc,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||u,fetchers:new Map,blockers:new Map},y=at.Pop,b=!1,w,_=!1,v=!1,h=[],p=[],N=new Map,S=0,C=-1,O=new Map,P=new Set,k=new Map,E=new Map,M=new Map,T=!1;function j(){return r=e.history.listen(R=>{let{action:D,location:I,delta:X}=R;if(T){T=!1;return}eo(M.size===0||X!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let V=bo({currentLocation:m.location,nextLocation:I,historyAction:D});if(V&&X!=null){T=!0,e.history.go(X*-1),rr(V,{state:"blocked",location:I,proceed(){rr(V,{state:"proceeding",proceed:void 0,reset:void 0,location:I}),e.history.go(X)},reset(){Zr(V),z({blockers:new Map(g.state.blockers)})}});return}return K(D,I)}),m.initialized||K(at.Pop,m.location),g}function A(){r&&r(),n.clear(),w&&w.abort(),m.fetchers.forEach((R,D)=>Gt(D)),m.blockers.forEach((R,D)=>Zr(D))}function B(R){return n.add(R),()=>n.delete(R)}function z(R){m=Te({}
49,m,R),n.forEach(D=>D(m))}function ie(R,D){var I,X;let V=m.actionData!=null&&m.navigation.formMethod!=null&&Ir(m.navigation.formMethod)&&m.navigation.state==="loading"&&((I=R.state)==null?void 0:I._isRedirect)!==!0,se;D.actionData?Object.keys(D.actionData).length>0?se=D.actionData:se=null:V?se=m.actionData:se=null;let le=D.loaderData?dh(m.loaderData,D.loaderData,D.matches||[],D.errors):m.loaderData;for(let[re]of M)Zr(re);let ve=b===!0||m.navigation.formMethod!=null&&Ir(m.navigation.formMethod)&&((X=R.state)==null?void 0:X._isRedirect)!==!0;z(Te({},D,{actionData:se,loaderData:le,historyAction:y,location:R,initialized:!0,navigation:yc,revalidation:"idle",restoreScrollPosition:ti(R,D.matches||m.matches),preventScrollReset:ve,blockers:new Map(m.blockers)})),_||y===at.Pop||(y===at.Push?e.history.push(R,R.state):y===at.Replace&&e.history.replace(R,R.state)),y=at.Pop,b=!1,_=!1,v=!1,h=[],p=[]}async function U(R,D){if(typeof R=="number"){e.history.go(R);return}let{path:I,submission:X,error:V}=sh(R,D),se=m.location,le=Zi(m.location,I,D&&D.state);le=Te({},le,e.history.encodeLocation(le));let ve=D&&D.replace!=null?D.replace:void 0,re=at.Push;ve===!0?re=at.Replace:ve===!1||X!=null&&Ir(X.formMethod)&&X.formAction===m.location.pathname+m.location.search&&(re=at.Replace);let pt=D&&"preventScrollReset"in D?D.preventScrollReset===!0:void 0,he=bo({currentLocation:se,nextLocation:le,historyAction:re});if(he){rr(he,{state:"blocked",location:le,proceed(){rr(he,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),U(R,D)},reset(){Zr(he),z({blockers:new Map(m.blockers)})}});return}return await K(re,le,{submission:X,pendingError:V,preventScrollReset:pt,replace:D&&D.replace})}function J(){if(na(),z({revalidation:"loading"}),m.navigation.state!=="submitting"){if(m.navigation.state==="idle"){K(m.historyAction,m.location,{startUninterruptedRevalidation:!0});return}K(y||m.historyAction,m.navigation.location,{overrideNavigation:m.navigation})}}async function K(R,D,I){w&&w.abort(),w=null,y=R,_=(I&&I.startUninterruptedRevalidation)===!0,ei(m.location,m.matches),b=(I&&I.preventScrollReset)===!0;let X=I&&I.overrideNavigation,V=bi(t,D,e.basename);if(!V){let Ae=on(404,{pathname:D.pathname}),{matches:gt,route:Tt}=fh(t);Sr(),ie(D,{matches:gt,loaderData:{},errors:{[Tt.id]:Ae}});return}if(Yw(m.location,D)&&!(I&&I.submission&&Ir(I.submission.formMethod))){ie(D,{matches:V});return}w=new AbortController;let se=hi(e.history,D,w.signal,I&&I.submission),le,ve;if(I&&I.pendingError)ve={[ka(V).route.id]:I.pendingError};else if(I&&I.submission&&Ir(I.submission.formMethod)){let Ae=await Ce(se,D,I.submission,V,{replace:I.replace});if(Ae.shortCircuited)return;le=Ae.pendingActionData,ve=Ae.pendingActionError,X=Te({state:"loading",location:D},I.submission),se=new Request(se.url,{signal:se.signal})}let{shortCircuited:re,loaderData:pt,errors:he}=await ge(se,D,V,X,I&&I.submission,I&&I.replace,le,ve);re||(w=null,ie(D,Te({matches:V},le?{actionData:le}:{},{loaderData:pt,errors:he})))}async function Ce(R,D,I,X,V){na();let se=Te({state:"submitting",location:D},I);z({navigation:se});let le,ve=gh(X,D);if(!ve.route.action)le={type:xt.error,error:on(405,{method:R.method,pathname:D.pathname,routeId:ve.route.id})};else if(le=await mi("action",R,ve,X,g.basename),R.signal.aborted)return{shortCircuited:!0};if(Ra(le)){let re;return V&&V.replace!=null?re=V.replace:re=le.location===m.location.pathname+m.location.search,await Ge(m,le,{submission:I,replace:re}),{shortCircuited:!0}}if(Di(le)){let re=ka(X,ve.route.id);return(V&&V.replace)!==!0&&(y=at.Push),{pendingActionData:{},pendingActionError:{[re.route.id]:le.error}}}if(Bn(le))throw on(400,{type:"defer-action"});return{pendingActionData:{[ve.route.id]:le.data}}}async function ge(R,D,I,X,V,se,le,ve){let re=X;re||(re=Te({state:"loading",location:D,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},V));let pt=V||(re.formMethod&&re.formAction&&re.formData&&re.formEncType?{formMethod:re.formMethod,formAction:re.formAction,formData:re.formData,formEncType:re.formEncType}:void 0),[he,Ae]=lh(e.history,m,I,pt,D,v,h,p,le,ve,k);if(Sr(ut=>!(I&&I.some(ar=>
49ar.route.id===ut))||he&&he.some(ar=>ar.route.id===ut)),he.length===0&&Ae.length===0)return ie(D,Te({matches:I,loaderData:{},errors:ve||null},le?{actionData:le}:{})),{shortCircuited:!0};if(!_){Ae.forEach(ar=>{let $r=m.fetchers.get(ar.key),aa={state:"loading",data:$r&&$r.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};m.fetchers.set(ar.key,aa)});let ut=le||m.actionData;z(Te({navigation:re},ut?Object.keys(ut).length===0?{actionData:null}:{actionData:ut}:{},Ae.length>0?{fetchers:new Map(m.fetchers)}:{}))}C=++S,Ae.forEach(ut=>N.set(ut.key,w));let{results:gt,loaderResults:Tt,fetcherResults:nr}=await At(m.matches,I,he,Ae,R);if(R.signal.aborted)return{shortCircuited:!0};Ae.forEach(ut=>N.delete(ut.key));let Dn=mh(gt);if(Dn)return await Ge(m,Dn,{replace:se}),{shortCircuited:!0};let{loaderData:$n,errors:en}=uh(m,I,he,Tt,ve,Ae,nr,E);E.forEach((ut,ar)=>{ut.subscribe($r=>{($r||ut.done)&&E.delete(ar)})}),Za();let ri=It(C);return Te({loaderData:$n,errors:en},ri||Ae.length>0?{fetchers:new Map(m.fetchers)}:{})}function Re(R){return m.fetchers.get(R)||Fw}function W(R,D,I,X){if(Bw)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");N.has(R)&&ht(R);let V=bi(t,I,e.basename);if(!V){_t(R,D,on(404,{pathname:I}));return}let{path:se,submission:le}=sh(I,X,!0),ve=gh(V,se);if(b=(X&&X.preventScrollReset)===!0,le&&Ir(le.formMethod)){De(R,D,se,ve,V,le);return}k.set(R,{routeId:D,path:se,match:ve,matches:V}),ne(R,D,se,ve,V,le)}async function De(R,D,I,X,V,se){if(na(),k.delete(R),!X.route.action){let ir=on(405,{method:se.formMethod,pathname:I,routeId:D});_t(R,D,ir);return}let le=m.fetchers.get(R),ve=Te({state:"submitting"},se,{data:le&&le.data," _hasFetcherDoneAnything ":!0});m.fetchers.set(R,ve),z({fetchers:new Map(m.fetchers)});let re=new AbortController,pt=hi(e.history,I,re.signal,se);N.set(R,re);let he=await mi("action",pt,X,V,g.basename);if(pt.signal.aborted){N.get(R)===re&&N.delete(R);return}if(Ra(he)){N.delete(R),P.add(R);let ir=Te({state:"loading"},se,{data:void 0," _hasFetcherDoneAnything ":!0});return m.fetchers.set(R,ir),z({fetchers:new Map(m.fetchers)}),Ge(m,he,{isFetchActionRedirect:!0})}if(Di(he)){_t(R,D,he.error);return}if(Bn(he))throw on(400,{type:"defer-action"});let Ae=m.navigation.location||m.location,gt=hi(e.history,Ae,re.signal),Tt=m.navigation.state!=="idle"?bi(t,m.navigation.location,e.basename):m.matches;pe(Tt,"Didn't find any matches after fetcher action");let nr=++S;O.set(R,nr);let Dn=Te({state:"loading",data:he.data},se,{" _hasFetcherDoneAnything ":!0});m.fetchers.set(R,Dn);let[$n,en]=lh(e.history,m,Tt,se,Ae,v,h,p,{[X.route.id]:he.data},void 0,k);en.filter(ir=>ir.key!==R).forEach(ir=>{let ni=ir.key,ai=m.fetchers.get(ni),No={state:"loading",data:ai&&ai.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};m.fetchers.set(ni,No),N.set(ni,re)}),z({fetchers:new Map(m.fetchers)});let{results:ri,loaderResults:ut,fetcherResults:ar}=await At(m.matches,Tt,$n,en,gt);if(re.signal.aborted)return;
49O.delete(R),N.delete(R),en.forEach(ir=>N.delete(ir.key));let $r=mh(ri);if($r)return Ge(m,$r);let{loaderData:aa,errors:ia}=uh(m,m.matches,$n,ut,void 0,en,ar,E),Wl={state:"idle",data:he.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};m.fetchers.set(R,Wl);let Hl=It(nr);m.navigation.state==="loading"&&nr>C?(pe(y,"Expected pending action"),w&&w.abort(),ie(m.navigation.location,{matches:Tt,loaderData:aa,errors:ia,fetchers:new Map(m.fetchers)})):(z(Te({errors:ia,loaderData:dh(m.loaderData,aa,Tt,ia)},Hl?{fetchers:new Map(m.fetchers)}:{})),v=!1)}async function ne(R,D,I,X,V,se){let le=m.fetchers.get(R),ve=Te({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},se,{data:le&&le.data," _hasFetcherDoneAnything ":!0});m.fetchers.set(R,ve),z({fetchers:new Map(m.fetchers)});let re=new AbortController,pt=hi(e.history,I,re.signal);N.set(R,re);let he=await mi("loader",pt,X,V,g.basename);if(Bn(he)&&(he=await e0(he,pt.signal,!0)||he),N.get(R)===re&&N.delete(R),pt.signal.aborted)return;if(Ra(he)){await Ge(m,he);return}if(Di(he)){let gt=ka(m.matches,D);m.fetchers.delete(R),z({fetchers:new Map(m.fetchers),errors:{[gt.route.id]:he.error}});return}pe(!Bn(he),"Unhandled fetcher deferred data");let Ae={state:"idle",data:he.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};m.fetchers.set(R,Ae),z({fetchers:new Map(m.fetchers)})}async function Ge(R,D,I){var X;let{submission:V,replace:se,isFetchActionRedirect:le}=I===void 0?{}:I;D.revalidate&&(v=!0);let ve=Zi(R.location,D.location,Te({_isRedirect:!0},le?{_isFetchActionRedirect:!0}:{}));if(pe(ve,"Expected a location on the redirect navigation"),Qv.test(D.location)&&Kv&&typeof((X=window)==null?void 0:X.location)<"u"){let Tt=e.history.createURL(D.location).origin;if(window.location.origin!==Tt){se?window.location.replace(D.location):window.location.assign(D.location);return}}w=null;let re=se===!0?at.Replace:at.Push,{formMethod:pt,formAction:he,formEncType:Ae,formData:gt}=R.navigation;!V&&pt&&he&>&&Ae&&(V={formMethod:pt,formAction:he,formEncType:Ae,formData:gt}),Uw.has(D.status)&&V&&Ir(V.formMethod)?await K(re,ve,{submission:Te({},V,{formAction:D.location}),preventScrollReset:b}):await K(re,ve,{overrideNavigation:{state:"loading",location:ve,formMethod:V?V.formMethod:void 0,formAction:V?V.formAction:void 0,formEncType:V?V.formEncType:void 0,formData:V?V.formData:void 0},preventScrollReset:b})}async function At(R,D,I,X,V){let se=await Promise.all([...I.map(re=>mi("loader",V,re,D,g.basename)),...X.map(re=>mi("loader",hi(e.history,re.path,V.signal),re.match,re.matches,g.basename))]),le=se.slice(0,I.length),ve=se.slice(I.length);return await Promise.all([hh(R,I,le,V.signal,!1,m.loaderData),hh(R,X.map(re=>re.match),ve,V.signal,!0)]),{results:se,loaderResults:le,fetcherResults:ve}}function na(){v=!0,h.push(...Sr()),k.forEach((R,D)=>{N.has(D)&&(p.push(D),ht(D))})}function _t(R,D,I){let X=ka(m.matches,D);Gt(R),z({errors:{[X.route.id]:I},fetchers:new Map(m.fetchers)})}function Gt(R){N.has(R)&&ht(R),k.delete(R),O.delete(R),P.delete(R),m.fetchers.delete(R)}function ht(R){let D=N.get(R);pe(D,"Expected fetch controller: "+R),D.abort(),N.delete(R)}function Pe(R){for(let D of R){let X={state:"idle",data:Re(D).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};m.fetchers.set(D,X)}}function Za(){let R=[];for(let D of P){let I=m.fetchers.get(D);pe(I,"Expected fetcher: "+D),I.state==="loading"&&(P.delete(D),R.push(D))}Pe(R)}function It(R){let D=[];for(let[I,X]of O)if(X<R){let V=m.fetchers.get(I);pe(V,"Expected fetcher: "+I),V.state==="loading"&&(ht(I),O.delete(I),D.push(I))}return Pe(D),D.length>0}function fr(R,D){let I=m.blockers.get(R)||oh;return M.get(R)!==D&&M.set(R,D),I}function Zr(R){m.blockers.delete(R),M.delete(R)}function rr(R,D){let I=m.blockers.get(R)||oh;pe(I.state==="unblocked"&&D.state==="blocked"||I.state==="blocked"&&D.state==="blocked"||I.state==="blocked"&&D.state==="proceeding"||I.state==="blocked"&&D.state==="unblocked"||I.state==="proceeding"&&D.state==="unblocked","Invalid blocker state transition: "+I.state+" -> "+D.state),m.blockers.set(R,D),z({blockers:new Map(m.blockers)})}function bo(R){let{currentLocation:D,nextLocation:I,historyAction:X}=R;if(M.size===0)return;M.size>1&&eo(!1,"A router only supports one blocker at a time");
49let V=Array.from(M.entries()),[se,le]=V[V.length-1],ve=m.blockers.get(se);if(!(ve&&ve.state==="proceeding")&&le({currentLocation:D,nextLocation:I,historyAction:X}))return se}function Sr(R){let D=[];return E.forEach((I,X)=>{(!R||R(X))&&(I.cancel(),D.push(X),E.delete(X))}),D}function Yt(R,D,I){if(a=R,s=D,i=I||(X=>X.key),!l&&m.navigation===yc){l=!0;let X=ti(m.location,m.matches);X!=null&&z({restoreScrollPosition:X})}return()=>{a=null,s=null,i=null}}function ei(R,D){if(a&&i&&s){let I=D.map(V=>ph(V,m.loaderData)),X=i(R,I)||R.key;a[X]=s()}}function ti(R,D){if(a&&i&&s){let I=D.map(se=>ph(se,m.loaderData)),X=i(R,I)||R.key,V=a[X];if(typeof V=="number")return V}return null}return g={get basename(){return e.basename},get state(){return m},get routes(){return t},initialize:j,subscribe:B,enableScrollRestoration:Yt,navigate:U,fetch:W,revalidate:J,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:Re,deleteFetcher:Gt,dispose:A,getBlocker:fr,deleteBlocker:Zr,_internalFetchControllers:N,_internalActiveDeferreds:E},g}function Hw(e){return e!=null&&"formData"in e}function sh(e,t,r){r===void 0&&(r=!1);let n=typeof e=="string"?e:Qr(e);if(!t||!Hw(t))return{path:n};if(t.formMethod&&!Kw(t.formMethod))return{path:n,error:on(405,{method:t.formMethod})};let a;if(t.formData&&(a={formMethod:t.formMethod||"get",formAction:Zv(n),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData},Ir(a.formMethod)))return{path:n,submission:a};let i=Xr(n),s=Jv(t.formData);return r&&i.search&&t0(i.search)&&s.append("index",""),i.search="?"+s,{path:Qr(i),submission:a}}function qw(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function lh(e,t,r,n,a,i,s,l,c,u,f){let g=u?Object.values(u)[0]:c?Object.values(c)[0]:void 0,m=e.createURL(t.location),y=e.createURL(a),b=i||m.toString()===y.toString()||m.search!==y.search,w=u?Object.keys(u)[0]:void 0,v=qw(r,w).filter((p,N)=>{if(p.route.loader==null)return!1;if(Vw(t.loaderData,t.matches[N],p)||s.some(O=>O===p.route.id))return!0;let S=t.matches[N],C=p;return ch(p,Te({currentUrl:m,currentParams:S.params,nextUrl:y,nextParams:C.params},n,{actionResult:g,defaultShouldRevalidate:b||Xv(S,C)}))}),h=[];return f&&f.forEach((p,N)=>{if(r.some(S=>S.route.id===p.routeId))l.includes(N)?h.push(Te({key:N},p)):ch(p.match,Te({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:r[r.length-1].params},n,{actionResult:g,defaultShouldRevalidate:b}))&&h.push(Te({key:N},p));else return}),[v,h]}function Vw(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function Xv(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ch(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function mi(e,t,r,n,a,i,s,l){a===void 0&&(a="/"),i===void 0&&(i=!1),s===void 0&&(s=!1);let c,u,f,g=new Promise((y,b)=>f=b),m=()=>f();t.signal.addEventListener("abort",m);try{let y=r.route[e];pe(y,"Could not find the "+e+' to run on the "'+r.route.id+'" route'),u=await Promise.race([y({request:t,params:r.params,context:l}),g]),pe(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){c=xt.error,u=y}finally{t.signal.removeEventListener("abort",m)}if(Qw(u)){let y=u.status;if(zw.has(y)){let _=u.headers.get("Location");if(pe(_,"Redirects returned/thrown from loaders/actions must have a Location header"),Qv.test(_)){if(!i){let v=new URL(t.url),h=_.startsWith("//")?new URL(v.protocol+_):new URL(_);h.origin===v.origin&&(_=h.pathname+h.search+h.hash)}}else{let v=n.slice(0,n.indexOf(r)+1),h=kl(v).map(N=>N.pathnameBase),p=hf(_,h,new URL(t.url).pathname);if(pe(Qr(p),"Unable to resolve redirect location: "+_),a){let N=p.pathname;p.pathname=N==="/"?a:Wr([a,N])}_=Qr(p)}if(i)throw u.headers.set("Location",_),u;return{type:xt.redirect,status:y,location:_,revalidate:u.headers.get("X-Remix-Revalidate")!==null}}if(s)throw{type:c||xt.data,response:u};let b,w=u.headers.get("Content-Type");return w&&/\bapplication\/json\b/.test(w)?b=await u.json():b=await u.text(),c===xt.error?{type:c,error:new pf(y,u.statusText,b),headers:u.headers}:{type:xt.data,data:b,statusCode:u.status,headers:u.headers}}return c===xt.error?{type:c,error:u}:u instanceof Dw?{type:xt.deferred,deferredData:u}:{type:xt.data,data:u}}function hi(e,t,r,n){let a=e.createURL(Zv(t)).toString(),i={signal:r};if(n&&Ir(n.formMethod)){let{formMethod:s,formEncType:l,formData:c}=n;i.method=s.toUpperCase(),i.body=l==="application/x-www-form-urlencoded"?Jv(c):c}
49return new Request(a,i)}function Jv(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,n instanceof File?n.name:n);return t}function Gw(e,t,r,n,a){let i={},s=null,l,c=!1,u={};return r.forEach((f,g)=>{let m=t[g].route.id;if(pe(!Ra(f),"Cannot handle redirect results in processLoaderData"),Di(f)){let y=ka(e,m),b=f.error;n&&(b=Object.values(n)[0],n=void 0),s=s||{},s[y.route.id]==null&&(s[y.route.id]=b),i[m]=void 0,c||(c=!0,l=Gv(f.error)?f.error.status:500),f.headers&&(u[m]=f.headers)}else Bn(f)?(a.set(m,f.deferredData),i[m]=f.deferredData.data):i[m]=f.data,f.statusCode!=null&&f.statusCode!==200&&!c&&(l=f.statusCode),f.headers&&(u[m]=f.headers)}),n&&(s=n,i[Object.keys(n)[0]]=void 0),{loaderData:i,errors:s,statusCode:l||200,loaderHeaders:u}}function uh(e,t,r,n,a,i,s,l){let{loaderData:c,errors:u}=Gw(t,r,n,a,l);for(let f=0;f<i.length;f++){let{key:g,match:m}=i[f];pe(s!==void 0&&s[f]!==void 0,"Did not find corresponding fetcher result");let y=s[f];if(Di(y)){let b=ka(e.matches,m.route.id);u&&u[b.route.id]||(u=Te({},u,{[b.route.id]:y.error})),e.fetchers.delete(g)}else if(Ra(y))pe(!1,"Unhandled fetcher revalidation redirect");else if(Bn(y))pe(!1,"Unhandled fetcher deferred data");else{let b={state:"idle",data:y.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};e.fetchers.set(g,b)}}return{loaderData:c,errors:u}}function dh(e,t,r,n){let a=Te({},t);for(let i of r){let s=i.route.id;if(t.hasOwnProperty(s)?t[s]!==void 0&&(a[s]=t[s]):e[s]!==void 0&&(a[s]=e[s]),n&&n.hasOwnProperty(s))break}return a}function ka(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function fh(e){let t=e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function on(e,t){let{pathname:r,routeId:n,method:a,type:i}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"&&(l="defer() is not supported in actions")):e===403?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",l='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new pf(e||500,s,new Error(l),!0)}function mh(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Ra(r))return r}}function Zv(e){let t=typeof e=="string"?Xr(e):e;return Qr(Te({},t,{hash:""}))}function Yw(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function Bn(e){return e.type===xt.deferred}function Di(e){return e.type===xt.error}function Ra(e){return(e&&e.type)===xt.redirect}function Qw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Kw(e){return Iw.has(e)}function Ir(e){return Lw.has(e)}async function hh(e,t,r,n,a,i){for(let s=0;s<r.length;s++){let l=r[s],c=t[s],u=e.find(g=>g.route.id===c.route.id),f=u!=null&&!Xv(u,c)&&(i&&i[c.route.id])!==void 0;Bn(l)&&(a||f)&&await e0(l,n,a).then(g=>{g&&(r[s]=g||r[s])})}}async function e0(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:xt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:xt.error,error:a}}return{type:xt.data,data:e.deferredData.data}}}function t0(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ph(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function gh(e,t){let r=typeof t=="string"?Xr(t).search:t.search;if(e[e.length-1].route.index&&t0(r||""))return e[e.length-1];let n=kl(e);return n[n.length-1]}/** 50 * React Router v6.8.1 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
58for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zs.apply(this,arguments)}function Xw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Jw=typeof Object.is=="function"?Object.is:Xw,{useState:Zw,useEffect:eb,useLayoutEffect:tb,useDebugValue:rb}=Bc;function nb(e,t,r){const n=t(),[{inst:a},i]=Zw({inst:{value:n,getSnapshot:t}});return tb(()=>{a.value=n,a.getSnapshot=t,wc(a)&&i({inst:a})},[e,n,t]),eb(()=>(wc(a)&&i({inst:a}),e(()=>{wc(a)&&i({inst:a})})),[e]),rb(n),n}function wc(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!Jw(r,n)}catch{return!0}}function ab(e,t,r){return t()}const ib=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ob=!ib,sb=ob?ab:nb,lb="useSyncExternalStore"in Bc?(e=>e.useSyncExternalStore)(Bc):sb,gf=x.createContext(null),Cl=x.createContext(null),fo=x.createContext(null),El=x.createContext(null),Mn=x.createContext({outlet:null,matches:[]}),r0=x.createContext(null);function cb(e,t){let{relative:r}=t===void 0?{}:t;mo()||pe(!1);let{basename:n,navigator:a}=x.useContext(fo),{hash:i,pathname:s,search:l}=vf(e,{relative:r}),c=s;return n!=="/"&&(c=s==="/"?n:Wr([n,s])),a.createHref({pathname:c,search:l,hash:i})}function mo(){return x.useContext(El)!=null}function Nr(){return mo()||pe(!1),x.useContext(El).location}function tr(){mo()||pe(!1);let{basename:e,navigator:t}=x.useContext(fo),{matches:r}=x.useContext(Mn),{pathname:n}=Nr(),a=JSON.stringify(kl(r).map(l=>l.pathnameBase)),i=x.useRef(!1);return x.useEffect(()=>{i.current=!0}),x.useCallback(function(l,c){if(c===void 0&&(c={}),!i.current)return;if(typeof l=="number"){t.go(l);return}let u=hf(l,JSON.parse(a),n,c.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:Wr([e,u.pathname])),(c.replace?t.replace:t.push)(u,c.state,c)},[e,t,a,n])}const n0=x.createContext(null);function ct(){return x.useContext(n0)}function ub(e){let t=x.useContext(Mn).outlet;return t&&x.createElement(n0.Provider,{value:e},t)}function ta(){let{matches:e}=x.useContext(Mn),t=e[e.length-1];return t?t.params:{}}function vf(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=x.useContext(Mn),{pathname:a}=Nr(),i=JSON.stringify(kl(n).map(s=>s.pathnameBase));return x.useMemo(()=>hf(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function db(e,t){mo()||pe(!1);let{navigator:r}=x.useContext(fo),n=x.useContext(Cl),{matches:a}=x.useContext(Mn),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=Nr(),u;if(t){var f;let w=typeof t=="string"?Xr(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||pe(!1),u=w}else u=c;let g=u.pathname||"/",m=l==="/"?g:g.slice(l.length)||"/",y=bi(e,{pathname:m}),b=pb(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:Wr([l,r.encodeLocation?r.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Wr([l,r.encodeLocation?r.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,n||void 0);return t&&b?x.createElement(El.Provider,{value:{location:zs({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:at.Pop}},b):b}function fb(){let e=yb(),t=Gv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),r?x.createElement("pre",{style:a},r):null,i)}class mb extends x.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location?{error:t.error,location:t.location}:{error:t.error||r.error,location:r.location}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?x.createElement(Mn.Provider,{value:this.props.routeContext},x.createElement(r0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}
58function hb(e){let{routeContext:t,match:r,children:n}=e,a=x.useContext(gf);return a&&a.static&&a.staticContext&&r.route.errorElement&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),x.createElement(Mn.Provider,{value:t},n)}function pb(e,t,r){if(t===void 0&&(t=[]),e==null)if(r!=null&&r.errors)e=r.matches;else return null;let n=e,a=r==null?void 0:r.errors;if(a!=null){let i=n.findIndex(s=>s.route.id&&(a==null?void 0:a[s.route.id]));i>=0||pe(!1),n=n.slice(0,Math.min(n.length,i+1))}return n.reduceRight((i,s,l)=>{let c=s.route.id?a==null?void 0:a[s.route.id]:null,u=r?s.route.errorElement||x.createElement(fb,null):null,f=t.concat(n.slice(0,l+1)),g=()=>x.createElement(hb,{match:s,routeContext:{outlet:i,matches:f}},c?u:s.route.element!==void 0?s.route.element:i);return r&&(s.route.errorElement||l===0)?x.createElement(mb,{location:r.location,component:u,error:c,children:g(),routeContext:{outlet:null,matches:f}}):g()},null)}var vh;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(vh||(vh={}));var Us;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Us||(Us={}));function gb(e){let t=x.useContext(Cl);return t||pe(!1),t}function vb(e){let t=x.useContext(Mn);return t||pe(!1),t}function xb(e){let t=vb(),r=t.matches[t.matches.length-1];return r.route.id||pe(!1),r.route.id}function yb(){var e;let t=x.useContext(r0),r=gb(Us.UseRouteError),n=xb(Us.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function wb(e){let{fallbackElement:t,router:r}=e,n=lb(r.subscribe,()=>r.state,()=>r.state),a=x.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:s=>r.navigate(s),push:(s,l,c)=>r.navigate(s,{state:l,preventScrollReset:c==null?void 0:c.preventScrollReset}),replace:(s,l,c)=>r.navigate(s,{replace:!0,state:l,preventScrollReset:c==null?void 0:c.preventScrollReset})}),[r]),i=r.basename||"/";return x.createElement(x.Fragment,null,x.createElement(gf.Provider,{value:{router:r,navigator:a,static:!1,basename:i}},x.createElement(Cl.Provider,{value:n},x.createElement(Nb,{basename:r.basename,location:r.state.location,navigationType:r.state.historyAction,navigator:a}
58,r.state.initialized?x.createElement(Sb,null):t))),null)}function Ol(e){return ub(e.context)}function bb(e){pe(!1)}function Nb(e){let{basename:t="/",children:r=null,location:n,navigationType:a=at.Pop,navigator:i,static:s=!1}=e;mo()&&pe(!1);let l=t.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:l,navigator:i,static:s}),[l,i,s]);typeof n=="string"&&(n=Xr(n));let{pathname:u="/",search:f="",hash:g="",state:m=null,key:y="default"}=n,b=x.useMemo(()=>{let w=Vv(u,l);return w==null?null:{pathname:w,search:f,hash:g,state:m,key:y}},[l,u,f,g,m,y]);return b==null?null:x.createElement(fo.Provider,{value:c},x.createElement(El.Provider,{children:r,value:{location:b,navigationType:a}}))}function Sb(e){let{children:t,location:r}=e,n=x.useContext(gf),a=n&&!t?n.router.routes:Iu(t);return db(a,r)}var xh;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(xh||(xh={}));new Promise(()=>{});function Iu(e,t){t===void 0&&(t=[]);let r=[];return x.Children.forEach(e,(n,a)=>{if(!x.isValidElement(n))return;if(n.type===x.Fragment){r.push.apply(r,Iu(n.props.children,t));return}n.type!==bb&&pe(!1),!n.props.index||!n.props.children||pe(!1);let i=[...t,a],s={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,hasErrorBoundary:n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle};n.props.children&&(s.children=Iu(n.props.children,i)),r.push(s)}),r}function a0(e){return e.map(t=>{let r=zs({},t);return r.hasErrorBoundary==null&&(r.hasErrorBoundary=r.errorElement!=null),r.children&&(r.children=a0(r.children)),r})}/** 59 * React Router DOM v6.8.1 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */function to(){return to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},to.apply(this,arguments)}function i0(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function _b(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kb(e,t){return e.button===0&&(!t||t==="_self")&&!_b(e)}function zu(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function Cb(e,t){let r=zu(e);if(t)for(let n of t.keys())r.has(n)||t.getAll(n).forEach(a=>{r.append(n,a)});return r}const Eb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Ob=["aria-current","caseSensitive","className","end","style","to","children"];function Pb(e,t){return Ww({basename:t==null?void 0:t.basename,history:uw({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Tb(),routes:a0(e)}).initialize()}function Tb(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=to({},t,{errors:Mb(t.errors)})),t}function Mb(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new pf(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){let i=new Error(a.message);i.stack="",r[n]=i}else r[n]=a;return r}const Rb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Db=x.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:i,replace:s,state:l,target:c,to:u,preventScrollReset:f}=t,g=i0(t,Eb),m,y=!1;if(Rb&&typeof u=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(u)){m=u;let v=new URL(window.location.href),h=u.startsWith("//")?new URL(v.protocol+u):new URL(u);h.origin===v.origin?u=h.pathname+h.search+h.hash:y=!0}let b=cb(u,{relative:a}),w=$b(u,{replace:s,state:l,target:c,preventScrollReset:f,relative:a});function _(v){n&&n(v),v.defaultPrevented||w(v)}return x.createElement("a",to({},g,{href:m||b,onClick:y||i?n:_,ref:r,target:c}))}),Z=x.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:a=!1,className:i="",end:s=!1,style:l,to:c,children:u}=t,f=i0(t,Ob),g=vf(c,{relative:f.relative}),m=Nr(),y=x.useContext(Cl),{navigator:b}=x.useContext(fo),w=b.encodeLocation?b.encodeLocation(g).pathname:g.pathname,_=m.pathname,v=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;a||(_=_.toLowerCase(),v=v?v.toLowerCase():null,w=w.toLowerCase());let h=_===w||!s&&_.startsWith(w)&&_.charAt(w.length)==="/",p=v!=null&&(v===w||!s&&v.startsWith(w)&&v.charAt(w.length)==="/"),N=h?n:void 0,S;typeof i=="function"?S=i({isActive:h,isPending:p}
67):S=[i,h?"active":null,p?"pending":null].filter(Boolean).join(" ");let C=typeof l=="function"?l({isActive:h,isPending:p}):l;return x.createElement(Db,to({},f,{"aria-current":N,className:S,ref:r,style:C,to:c}),typeof u=="function"?u({isActive:h,isPending:p}):u)});var yh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(yh||(yh={}));var wh;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wh||(wh={}));function $b(e,t){let{target:r,replace:n,state:a,preventScrollReset:i,relative:s}=t===void 0?{}:t,l=tr(),c=Nr(),u=vf(e,{relative:s});return x.useCallback(f=>{if(kb(f,r)){f.preventDefault();let g=n!==void 0?n:Qr(c)===Qr(u);l(e,{replace:g,state:a,preventScrollReset:i,relative:s})}},[c,l,u,n,a,r,e,i,s])}function Rn(e){let t=x.useRef(zu(e)),r=x.useRef(!1),n=Nr(),a=x.useMemo(()=>Cb(n.search,r.current?null:t.current),[n.search]),i=tr(),s=x.useCallback((l,c)=>{const u=zu(typeof l=="function"?l(a):l);r.current=!0,i("?"+u,c)},[i,a]);return[a,s]}function o0(e,t){return function(){return e.apply(t,arguments)}}const{toString:s0}=Object.prototype,{getPrototypeOf:xf}=Object,yf=(e=>t=>{const r=s0.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Jr=e=>(e=e.toLowerCase(),t=>yf(t)===e),Pl=e=>t=>typeof t===e,{isArray:Ka}=Array,ro=Pl("undefined");function jb(e){return e!==null&&!ro(e)&&e.constructor!==null&&!ro(e.constructor)&&En(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const l0=Jr("ArrayBuffer");
vendor: 26,781 bytes, lines 67-69
67function Lb(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&l0(e.buffer),t}const Ab=Pl("string"),En=Pl("function"),c0=Pl("number"),wf=e=>e!==null&&typeof e=="object",Ib=e=>e===!0||e===!1,is=e=>{if(yf(e)!=="object")return!1;const t=xf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},zb=Jr("Date"),Ub=Jr("File"),Fb=Jr("Blob"),Bb=Jr("FileList"),Wb=e=>wf(e)&&En(e.pipe),Hb=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||s0.call(e)===t||En(e.toString)&&e.toString()===t)},qb=Jr("URLSearchParams"),Vb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ho(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Ka(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(n=0;n<s;n++)l=i[n],t.call(null,e[l],l,e)}}function u0(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const d0=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),f0=e=>!ro(e)&&e!==d0;function Uu(){const{caseless:e}=f0(this)&&this||{},t={},r=(n,a)=>{const i=e&&u0(t,a)||a;is(t[i])&&is(n)?t[i]=Uu(t[i],n):is(n)?t[i]=Uu({},n):Ka(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&ho(arguments[n],r);return t}const Gb=(e,t,r,{allOwnKeys:n}={})=>(ho(t,(a,i)=>{r&&En(a)?e[i]=o0(a,r):e[i]=a},{allOwnKeys:n}),e),Yb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Qb=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Kb=(e,t,r,n)=>{let a,i,s;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)s=a[i],(!n||n(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=r!==!1&&xf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Xb=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Jb=e=>{if(!e)return null;if(Ka(e))return e;let t=e.length;if(!c0(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Zb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xf(Uint8Array)),e2=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},t2=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},r2=Jr("HTMLFormElement"),n2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),bh=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),a2=Jr("RegExp"),m0=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ho(r,(a,i)=>{t(a,i,e)!==!1&&(n[i]=a)}),Object.defineProperties(e,n)},i2=e=>{m0(e,(t,r)=>{if(En(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(En(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},o2=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return Ka(e)?n(e):n(String(e).split(t)),r},s2=()=>{},l2=(e,t)=>(e=+e,Number.isFinite(e)?e:t),bc="abcdefghijklmnopqrstuvwxyz",Nh="0123456789",h0={DIGIT:Nh,ALPHA:bc,ALPHA_DIGIT:bc+bc.toUpperCase()+Nh},c2=(e=16,t=h0.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function u2(e){return!!(e&&En(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const d2=e=>{const t=new Array(10),r=(n,a)=>{if(wf(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=Ka(n)?[]:{};return ho(n,(s,l)=>{const c=r(s,a+1);!ro(c)&&(i[l]=c)}),t[a]=void 0,i}}return n};return r(e,0)},$={isArray:Ka,isArrayBuffer:l0,isBuffer:jb,isFormData:Hb,isArrayBufferView:Lb,isString:Ab,isNumber:c0,isBoolean:Ib,isObject:wf,isPlainObject:is,isUndefined:ro,isDate:zb,isFile:Ub,isBlob:Fb,isRegExp:a2,isFunction:En,isStream:Wb,isURLSearchParams:qb,isTypedArray:Zb,isFileList:Bb,forEach:ho,merge:Uu,extend:Gb,trim:Vb,stripBOM:Yb,inherits:Qb,toFlatObject:Kb,kindOf:yf,kindOfTest:Jr,endsWith:Xb,toArray:Jb,forEachEntry:e2,matchAll:t2,isHTMLForm:r2,hasOwnProperty:bh,hasOwnProp:bh,reduceDescriptors:m0,freezeMethods:i2,toObjectSet:o2,toCamelCase:n2,noop:s2,toFiniteNumber:l2,findKey:u0,global:d0,isContextDefined:f0,ALPHABET:h0,generateString:c2,isSpecCompliantForm:u2,toJSONObject:d2};function Ee(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}$.inherits(Ee,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const p0=Ee.prototype,g0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{g0[e]={value:e}});Object.defineProperties(Ee,g0);Object.defineProperty(p0,"isAxiosError",{value:!0});Ee.from=(e,t,r,n,a,i)=>{const s=Object.create(p0);return $.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Ee.call(s,e.message,t,r,n,a),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const f2=null;function Fu(e){return $.isPlainObject(e)||$.isArray(e)}function v0(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function Sh(e,t,r){return e?e.concat(t).map(function(a,i){return a=v0(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function m2(e){return $.isArray(e)&&!e.some(Fu)}const h2=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Tl(e,t,r){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,_){return!$.isUndefined(_[w])});const n=r.metaTokens,a=r.visitor||f,i=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(a))throw new TypeError("visitor must be a function");function u(b){if(b===null)return"";if($.isDate(b))return b.toISOString();if(!c&&$.isBlob(b))throw new Ee("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(b)||$.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function f(b,w,_){let v=b;if(b&&!_&&typeof b=="object"){if($.endsWith(w,"{}"))w=n?w:w.slice(0,-2),b=JSON.stringify(b);else if($.isArray(b)&&m2(b)||($.isFileList(b)||$.endsWith(w,"[]"))&&(v=$.toArray(b)))return w=v0(w),v.forEach(function(p,N){!($.isUndefined(p)||p===null)&&t.append(s===!0?Sh([w],N,i):s===null?w:w+"[]",u(p))}),!1}return Fu(b)?!0:(t.append(Sh(_,w,i),u(b)),!1)}const g=[],m=Object.assign(h2,{defaultVisitor:f,convertValue:u,isVisitable:Fu});function y(b,w){if(!$.isUndefined(b)){if(g.indexOf(b)!==-1)throw Error("Circular reference detected in "+w.join("."));g.push(b),$.forEach(b,function(v,h){(!($.isUndefined(v)||v===null)&&a.call(t,v,$.isString(h)?h.trim():h,w,m))===!0&&y(v,w?w.concat(h):[h])}),g.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return y(e),t}function _h(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function bf(e,t){this._pairs=[],e&&Tl(e,this,t)}const x0=bf.prototype;x0.append=function(t,r){this._pairs.push([t,r])};x0.toString=function(t){const r=t?function(n){return t.call(this,n,_h)}:_h;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function p2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function y0(e,t,r){if(!t)return e;const n=r&&r.encode||p2,a=r&&r.serialize;let i;if(a?i=a(t,r):i=$.isURLSearchParams(t)?t.toString():new bf(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class g2{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(n){n!==null&&t(n)})}}const kh=g2,w0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},v2=typeof URLSearchParams<"u"?URLSearchParams:bf,x2=typeof FormData<"u"?FormData:null,y2=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),w2=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Tr={isBrowser:!0,classes:{URLSearchParams:v2,FormData:x2,Blob},isStandardBrowserEnv:y2,isStandardBrowserWebWorkerEnv:w2,protocols:["http","https","file","blob","url","data"]};function b2(e,t){return Tl(e,new Tr.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return Tr.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function N2(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function S2(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function b0(e){function t(r,n,a,i){let s=r[i++];const l=Number.isFinite(+s),c=i>=r.length;return s=!s&&$.isArray(a)?a.length:s,c?($.hasOwnProp(a,s)?a[s]=[a[s],n]:a[s]=n,!l):((!a[s]||!$.isObject(a[s]))&&(a[s]=[]),t(r,n,a[s],i)&&$.isArray(a[s])&&(a[s]=S2(a[s])),!l)}if($.isFormData(e)&&$.isFunction(e.entries)){const r={};return $.forEachEntry(e,(n,a)=>{t(N2(n),a,r,0)}),r}return null}const _2={"Content-Type":void 0};function k2(e,t,r){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ml={transitional:w0,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return a&&a?JSON.stringify(b0(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return b2(t,this.formSerializer).toString();if((l=$.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Tl(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),k2(t)):t}],transformResponse:[function(t){const r=this.transitional||Ml.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(t&&$.isString(t)&&(n&&!this.responseType||a)){const s=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?Ee.from(l,Ee.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tr.classes.FormData,Blob:Tr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$.forEach(["delete","get","head"],function(t){Ml.headers[t]={}});$.forEach(["post","put","patch"],function(t){Ml.headers[t]=$.merge(_2)});const Nf=Ml,C2=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),E2=e=>{const t={};let r,n,a;return e&&e.split(` 68`).forEach(function(s){a=s.indexOf(":"),r=s.substring(0,a).trim().toLowerCase(),n=s.substring(a+1).trim(),!(!r||t[r]&&C2[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ch=Symbol("internals");function pi(e){return e&&String(e).trim().toLowerCase()}function os(e){return e===!1||e==null?e:$.isArray(e)?e.map(os):String(e)}function O2(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}function P2(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Nc(e,t,r,n,a){if($.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!$.isString(t)){if($.isString(n))return t.indexOf(n)!==-1;if($.isRegExp(n))return n.test(t)}}function T2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function M2(e,t){const r=$.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,s){return this[n].call(this,t,a,i,s)},configurable:!0})})}class Rl{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(l,c,u){const f=pi(c);if(!f)throw new Error("header name must be a non-empty string");const g=$.findKey(a,f);(!g||a[g]===void 0||u===!0||u===void 0&&a[g]!==!1)&&(a[g||c]=os(l))}const s=(l,c)=>$.forEach(l,(u,f)=>i(u,f,c));return $.isPlainObject(t)||t instanceof this.constructor?s(t,r):$.isString(t)&&(t=t.trim())&&!P2(t)?s(E2(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=pi(t),t){const n=$.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return O2(a);if($.isFunction(r))return r.call(this,a,n);if($.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=pi(t),t){const n=$.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Nc(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(s){if(s=pi(s),s){const l=$.findKey(n,s);l&&(!r||Nc(n,n[l],l,r))&&(delete n[l],a=!0)}}return $.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||Nc(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return $.forEach(this,(a,i)=>{const s=$.findKey(n,i);if(s){r[s]=os(a),delete r[i];return}const l=t?T2(i):String(i).trim();l!==i&&delete r[i],r[l]=os(a),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return $.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&$.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` 69`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[Ch]=this[Ch]={accessors:{}}).accessors,a=this.prototype;function i(s){const l=pi(s);n[l]||(M2(a,s),n[l]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}}Rl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.freezeMethods(Rl.prototype);$.freezeMethods(Rl);const Hr=Rl;function Sc(e,t){const r=this||Nf,n=t||r,a=Hr.from(n.headers);let i=n.data;return $.forEach(e,function(l){i=l.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function N0(e){return!!(e&&e.__CANCEL__)}function po(e,t,r){Ee.call(this,e??"canceled",Ee.ERR_CANCELED,t,r),this.name="CanceledError"}$.inherits(po,Ee,{__CANCEL__:!0});function R2(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ee("Request failed with status code "+r.status,[Ee.ERR_BAD_REQUEST,Ee.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const D2=Tr.isStandardBrowserEnv?function(){return{write:function(r,n,a,i,s,l){const c=[];c.push(r+"="+encodeURIComponent(n)),$.isNumber(a)&&c.push("expires="+new Date(a).toGMTString()),$.isString(i)&&c.push("path="+i),$.isString(s)&&c.push("domain="+s),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function $2(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function j2(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function S0(e,t){return e&&!$2(t)?j2(e,t):t}const L2=Tr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(s){const l=$.isString(s)?a(s):s;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}();function A2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function I2(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),f=n[i];s||(s=u),r[a]=c,n[a]=u;let g=i,m=0;for(;g!==a;)m+=r[g++],g=g%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-s<t)return;const y=f&&u-f;return y?Math.round(m*1e3/y):void 0}}function Eh(e,t){let r=0;const n=I2(50,250);return a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,l=i-r,c=n(l),u=i<=s;r=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-i)/c:void 0,event:a};f[t?"download":"upload"]=!0,e(f)}}const z2=typeof XMLHttpRequest<"u",U2=z2&&function(e){return new Promise(function(r,n){let a=e.data;const i=Hr.from(e.headers).normalize(),s=e.responseType;let l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}$.isFormData(a)&&(Tr.isStandardBrowserEnv||Tr.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(y+":"+b))}const f=S0(e.baseURL,e.url);u.open(e.method.toUpperCase(),y0(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function g(){if(!u)return;const y=Hr.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:y,config:e,request:u};R2(function(v){r(v),c()},function(v){n(v),c()},w),u=null}if("onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(n(new Ee("Request aborted",Ee.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Ee("Network Error",Ee.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||w0;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),n(new Ee(b,w.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,u)),u=null},Tr.isStandardBrowserEnv){const y=(e.withCredentials||L2(f))&&e.xsrfCookieName&&D2.read(e.xsrfCookieName);y&&i.set(e.xsrfHeaderName,y)}a===void 0&&i.setContentType(null),"setRequestHeader"in u&&$.forEach(i.toJSON(),function(b,w){u.setRequestHeader(w,b)}),$.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Eh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Eh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=y=>{u&&(n(!y||y.type?new po(null,e,u):y),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=A2(f);if(m&&Tr.protocols.indexOf(m)===-1){n(new Ee("Unsupported protocol "+m+":",Ee.ERR_BAD_REQUEST,e));return}u.send(a||null)})},ss={http:f2,xhr:U2};$.forEach(ss,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const F2={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let a=0;a<t&&(r=e[a],!(n=$.isString(r)?ss[r.toLowerCase()]:r));a++);if(!n)throw n===!1?new Ee(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error($.hasOwnProp(ss,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!$.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:ss};function _c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new po(null,e)}function Oh(e){return _c(e),e.headers=Hr.from(e.headers),e.data=Sc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),F2.getAdapter(e.adapter||Nf.adapter)(e).then(function(n){return _c(e),n.data=Sc.call(e,e.transformResponse,n),n.headers=Hr.from(n.headers),n},function(n){return N0(n)||(_c(e),n&&n.response&&(n.response.data=Sc.call(e,e.transformResponse,n.response),n.response.headers=Hr.from(n.response.headers))),Promise.reject(n)})}const Ph=e=>e instanceof Hr?e.toJSON():e;function Ba(e,t){t=t||{};const r={};function n(u,f,g){return $.isPlainObject(u)&&$.isPlainObject(f)?$.merge.call({caseless:g},u,f):$.isPlainObject(f)?$.merge({},f):$.isArray(f)?f.slice():f}function a(u,f,g){if($.isUndefined(f)){if(!$.isUndefined(u))return n(void 0,u,g)}else return n(u,f,g)}function i(u,f){if(!$.isUndefined(f))return n(void 0,f)}function s(u,f){if($.isUndefined(f)){if(!$.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function l(u,f,g){if(g in t)return n(u,f);if(g in e)return n(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,f)=>a(Ph(u),Ph(f),!0)};return $.forEach(Object.keys(e).concat(Object.keys(t)),function(f){const g=c[f]||a,m=g(e[f],t[f],f);$.isUndefined(m)&&g!==l||(r[f]=m)}),r}const _0="1.3.3",Sf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sf[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Th={};Sf.transitional=function(t,r,n){function a(i,s){return"[Axios v"+_0+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,l)=>{if(t===!1)throw new Ee(a(s," has been removed"+(r?" in "+r:"")),Ee.ERR_DEPRECATED);return r&&!Th[s]&&(Th[s]=!0,console.warn(a(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,l):!0}};function B2(e,t,r){if(typeof e!="object")throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],s=t[i];if(s){const l=e[i],c=l===void 0||s(l,i,e);if(c!==!0)throw new Ee("option "+i+" must be "+c,Ee.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ee("Unknown option "+i,Ee.ERR_BAD_OPTION)}}const Bu={assertOptions:B2,validators:Sf},nn=Bu.validators;class Fs{constructor(t){this.defaults=t,this.interceptors={request:new kh,response:new kh}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ba(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&Bu.assertOptions(n,{silentJSONParsing:nn.transitional(nn.boolean),forcedJSONParsing:nn.transitional(nn.boolean),clarifyTimeoutError:nn.transitional(nn.boolean)},!1),a!==void 0&&Bu.assertOptions(a,{encode:nn.function,serialize:nn.function},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s;s=i&&$.merge(i.common,i[r.method]),s&&$.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),r.headers=Hr.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(r)===!1||(c=c&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let f,g=0,m;if(!c){const b=[Oh.bind(this),void 0];for(b.unshift.apply(b,l),b.push.apply(b,u),m=b.length,f=Promise.resolve(r);g<m;)f=f.then(b[g++],b[g++]);return f}m=l.length;let y=r;for(g=0;g<m;){const b=l[g++],w=l[g++];try{y=b(y)}catch(_){w.call(this,_);break}}try{f=Oh.call(this,y)}catch(b){return Promise.reject(b)}for(g=0,m=u.length;g<m;)f=f.then(u[g++],u[g++]);return f}getUri(t){t=Ba(this.defaults,t);const r=S0(t.baseURL,t.url);return y0(r,t.params,t.paramsSerializer)}}$.forEach(["delete","get","head","options"],function(t){Fs.prototype[t]=function(r,n){return this.request(Ba(n||{},{method:t,url:r,data:(n||{}).data}))}});$.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,l){return this.request(Ba(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Fs.prototype[t]=r(),Fs.prototype[t+"Form"]=r(!0)});const ls=Fs;class _f{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const s=new Promise(l=>{n.subscribe(l),i=l}).then(a);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,l){n.reason||(n.reason=new po(i,s,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new _f(function(a){t=a}),cancel:t}}}const W2=_f;function H2(e){return function(r){return e.apply(null,r)}}function q2(e){return $.isObject(e)&&e.isAxiosError===!0}const Wu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
69alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Wu).forEach(([e,t])=>{Wu[t]=e});const V2=Wu;function k0(e){const t=new ls(e),r=o0(ls.prototype.request,t);return $.extend(r,ls.prototype,t,{allOwnKeys:!0}),$.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return k0(Ba(e,a))},r}const lt=k0(Nf);lt.Axios=ls;lt.CanceledError=po;lt.CancelToken=W2;lt.isCancel=N0;lt.VERSION=_0;lt.toFormData=Tl;lt.AxiosError=Ee;lt.Cancel=lt.CanceledError;lt.all=function(t){return Promise.all(t)};lt.spread=H2;lt.isAxiosError=q2;lt.mergeConfig=Ba;lt.AxiosHeaders=Hr;lt.formToJSON=e=>b0($.isHTMLForm(e)?new FormData(e):e);lt.HttpStatusCode=V2;lt.default=lt;const ee=lt,te="https://manhwawebbackend-production.up.railway.app",C0="425443352071-bp53jnmkrqbhjkri8aekjec6sq15nbpr.apps.googleusercontent.com",ze="https://manhwaweb.com",vr="https://uploads.manhwaweb.com",ke="https://manhwaweb.com",Xa=x.createContext(),G2=({children:e})=>
69{const[t,r]=x.useState({usuario:void 0,permisos:void 0});return x.useEffect(()=>{console.log("S");const n=()=>localStorage.getItem("tokenCommers");n()&&!window.location.href.includes("/leer/")&&!window.location.href.includes("/leer_18/")&&(console.log("Ss"),ee.get(`${te}/user/data`,{headers:{Authorization:`Bearer ${n()}`}}).then(a=>{r({usuario:a.data.nick,permisos:a.data.level})}).catch(a=>{var i;((i=a==null?void 0:a.response)==null?void 0:i.data)=="no_existe"&&localStorage.removeItem("tokenCommers")}))},[]),o(Xa.Provider,{value:{userDatos:t,setUserDatos:r},children:e})};const Y2=({color:e})=>{const[t,r]=x.useState(""),n=tr();return d("form",{onSubmit:i=>{if(i.preventDefault(),t.trim()){const s=t;r(""),n(`/library?buscar=${s}`)}},className:"flex items-center",children:[o("input",{type:"text",placeholder:" Buscar...",value:t,onChange:i=>r(i.target.value),className:`${e?"bg-verde":"bg-vmws"} py-0 px-1 w-full rounded-l-sm md:rounded-l-xl focus:ring-2 focus:ring-white focus:outline-none border-y border-l`}),o("button",{type:"submit",className:`${e?"bg-verde":"bg-vmws"} py-0.5 px-3 rounded-r-sm md:rounded-r-xl border-y border-r`,children:d("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-6",viewBox:"0 0 20 20",fill:"currentColor",children:[o("circle",{cx:"8",cy:"8",r:"5",stroke:"currentColor",strokeWidth:"2",fill:"none"}),o("line",{x1:"12.5",y1:"12.5",x2:"16",y2:"16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})})]})},kf=({color:e})=>{let[t,r]=x.useState(!1);const[n]=Rn(),{userDatos:a,setUserDatos:i}=x.useContext(Xa),s=(a==null?void 0:a.permisos)==="admin",l=(a==null?void 0:a.permisos)==="sub-admin",c=tr(),u=Nr(),f=x.useRef(!0),g=()=>{localStorage.removeItem("tokenCommers"),i({usuario:void 0,permisos:void 0}),r(!1),c("/")};return x.useEffect(()=>{if(f.current){f.current=!1;return}r(!1),localStorage.getItem("tokenCommers")&&(a==null?void 0:a.usuario)===void 0&&u.pathname!="/"&&ee.get(`${te}/user/data`,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(m=>{i({usuario:m.data.nick,permisos:m.data.level})}).catch(m=>{var y;((y=m==null?void 0:m.response)==null?void 0:y.data)=="no_existe"&&localStorage.removeItem("tokenCommers")})},[u.pathname,n]),o("div",{className:`w-full text-white ${t?e?" bg-verde-intermedio md:bg-verde":"bg-vmwt md:bg-vmws":""}`,children:d("div",{className:"flex items-center justify-between px-2 md:py-2.5 py-2 ",children:[d(Z,{to:"/",className:" w-1/3 font-bold md:text-2xl text-xl cursor-pointer flex items-center font-[Poppins]",children:[o("span",{className:`md:text-3xl text-2xl ${e?"text-verde-text":"text-vmw"}`,children:e?"MANHWA":"visorMANHWA"}),"WEB"]}),o("div",{className:" flex items-center gap-3 sm:gap-36 md:hidden",children:o("button",{onClick:()=>r(!t),type:"button",className:`${e?"hover:text-verde-text":"hover:text-vmw"} cursor-pointer md:hidden rounded-md text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white`,children:o("div",{name:t?"close":"menu",children:o("svg",{className:"block h-8 w-8",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})})})}),o("div",{className:`${e?" bg-verde-intermedio md:bg-verde":"bg-vmwt md:bg-vmws"} border-dashed md:border-t-0 border-t-2 border-black w-full md:w-auto absolute md:static md:z-0 z-20 top-12 ${t?"right-0":"right-[-490px]"} ${t?"block":"hidden"} md:block rounded-b-md`,children:d("div",{className:"md:gap-10 gap-3 md:px-0 px-2 md:flex-row md:content-center md:pt-0 pt-5 flex-col flex items-end md:items-center md:pb-0 pb-5",children:[o("div",{className:" md:w-auto sm:w-2/3 w-full",children:o(Y2,{color:e})}),o("div",{className:" w-full md:w-auto md:pr-0 pr-1",children:o("ul",{className:"flex flex-col md:items-center gap-1 md:flex-row md:gap-5 content-center md:text-left text-right",children:localStorage.getItem("tokenCommers")?d(ye,{children:[s&&o("li",{className:" hover:text-yellow-500",children:o("a",{href:"/admin",children:"Admin"})}),(s||l)&&o("li",{className:" hover:text-yellow-500",children:o("a",{href:`${vr}/admin`,target:"_blank",children:"ADMIN"})}),o("li",{children:o(Z,{to:"/profile",children:a.usuario})}),o("li",{className:" hover:text-red-600",children:o("button",{className:" cursor-pointer",onClick:g,children:"Cerrar Sesion"})}),o("li",{className:" hover:text-red-600",children:o("a",{className:`w-full ${e?"bg-verde-text":"bg-vmw"} bg-opacity-60 flex rounded-sm justify-center`,href:`${vr}/uploads`,children:o("img",{className:"w-8 md:w-10",src:"https://imagizer.imageshack.com/img923/8610/xXiJ3s.png",alt:""})})})]}):d(ye,{children:[o("li",{className:e?" hover:text-verde-text":"hover:text-vmw",children:o(Z,{to:"/login",children:"Iniciar Sesión"})}),o("li",{className:e?" hover:text-verde-text":"hover:text-vmw",children:o(Z,{to:"/register",children:"Registrar"})}),o("li",{className:" hover:text-red-600",children:o("a",{className:`w-full ${e?"bg-verde-text":"bg-vmw"} bg-opacity-60 flex rounded-sm justify-center`,href:`${vr}/uploads`,children:o("img",{className:"w-8 md:w-10",src:"https://imagizer.imageshack.com/img923/8610/xXiJ3s.png",alt:""})})})]})})})]})})]})})};
69function E0(){const e=x.useRef(null),[t,r]=x.useState(!1),[n,a]=x.useState(!1),[i,s]=x.useState(.5);return x.useEffect(()=>{const c=e.current;if(!c)return;const u=()=>r(!0),f=()=>r(!1);return c.addEventListener("play",u),c.addEventListener("pause",f),()=>{c.removeEventListener("play",u),c.removeEventListener("pause",f)}},[]),x.useEffect(()=>{const c=e.current;c&&(c.volume=n?0:i)},[i,n]),d("div",{className:"flex w-full overflow-hidden justify-between md:px-2",children:[o("audio",{ref:e,src:"https://radioanimex.com/radio",preload:"none",playsInline:!0}),o("button",{onClick:async()=>{const c=e.current;if(c)try{c.paused?await c.play():c.pause()}catch{}},onKeyDown:c=>c.key===" "&&c.preventDefault(),className:`border-4 ${t?"border-verde-text":"border-verde-text2"} h-16 md:h-20 aspect-radio transition`,"aria-label":t?"Pausar":"Reproducir",type:"button",children:o("img",{src:t?"https://img2mw.xyz/test/music_2.jpg":"https://img2mw.xyz/test/music_1.jpg",alt:""})}),d("div",{className:"bg-black/60 w-full h-16 md:h-20 flex flex-col justify-around items-center bg-cover bg-center",style:{backgroundImage:"linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)), url(https://img1mw.xyz/extras/music_3.jpg)"},children:[o("div",{className:`${t&&"text-shadow-outline"} text-gray-200 xs:text-lg`,children:"Radio AnimeX - radio en vivo"}),d("div",{className:"sm:flex hidden w-3/4 md:w-1/2 items-center gap-3",children:[o("img",{className:"w-6 h-6 cursor-pointer select-none",onClick:()=>a(c=>!c),src:n?"https://img1mw.xyz/extras/vol_2.png":"https://img1mw.xyz/extras/vol_1.png",alt:n?"Mute":"Volume"}),o("input",{type:"range",min:"0",max:"1",step:"0.01",value:i,onChange:c=>s(Number(c.target.value)),className:`${t?"accent-verde-text":"accent-verde-text2"} w-full`})]})]})]})}const Q2=[{path:"/latest-chapters",label:"Ult. Capitulos"},{path:"/library",label:"Biblioteca"},{path:"/foro",label:"Foro / Guia"},{path:"/rank",label:"Cromos"},{path:"/mis-manhwas",label:"Mis Manhwas"},{path:"/profile",label:"Mi Perfil"}],O0=({color:e})=>{const t="md:w-1/6 text-center md:border-0 border rounded-md md:py-2.5 py-1.5",r=e?"text-verde-text border-verde-text":"text-vmw border-vmw",n=e?"border-verde":"border-vmws";return o("nav",{className:"w-full",children:o("ul",{className:"md:flex md:flex-nowrap md:p-0 p-1 grid grid-cols-3 gap-1 md:gap-0 md:text-lg text-sm",children:Q2.map(({path:a,label:i})=>o(Z,{to:a,className:({isActive:s})=>`${t} ${s?r:n}`,children:i=="Cromos"?d("div",{className:" flex flex-col",children:[o("span",{children:"cromos"})," ",o("span",{className:" text-xs text-red-600",children:"4TA actualizacion"})]}):i},a))})})},Hu=({x:e})=>o("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:e?"60px":"30px",height:e?"60px":"30px",viewBox:"0 -28.5 256 256",version:"1.1",preserveAspectRatio:"xMidYMid",children:o("g",{children:o("path",{d:`M216.856339,16.5966031 C200.285002,8.84328665 182.566144,3.2084988 164.041564,0 C161.766523,4.11318106 159.108624,9.64549908 157.276099,14.0464379 C137.583995,11.0849896 118.072967,11.0849896 98.7430163,14.0464379 C96.9108417,9.64549908 94.1925838,4.11318106 91.8971895,0 C73.3526068,3.2084988 55.6133949,8.86399117 39.0420583,16.6376612 C5.61752293,67.146514 -3.4433191,116.400813 1.08711069,164.955721 C23.2560196,181.510915 44.7403634,191.567697 65.8621325,198.148576 C71.0772151,190.971126 75.7283628,183.341335 79.7352139,175.300261 C72.104019,172.400575 64.7949724,168.822202 57.8887866,164.667963 C59.7209612,163.310589 61.5131304,161.891452 63.2445898,160.431257 \r 70 C105.36741,180.133187 151.134928,180.133187 192.754523,160.431257 C194.506336,161.891452 196.298154,163.310589 198.110326,164.667963 C191.183787,168.842556 183.854737,172.420929 176.223542,175.320965 C180.230393,183.341335 184.861538,190.991831 190.096624,198.16893 C211.238746,191.588051 232.743023,181.531619 254.911949,164.955721 C260.227747,108.668201 245.831087,59.8662432 216.856339,16.5966031 Z M85.4738752,135.09489 C72.8290281,135.09489 62.4592217,123.290155 62.4592217,108.914901 C62.4592217,94.5396472 72.607595,82.7145587 85.4738752,82.7145587 C98.3405064,82.7145587 108.709962,94.5189427 108.488529,108.914901 C108.508531,123.290155 98.3405064,135.09489 85.4738752,135.09489 \r 71 Z M170.525237,135.09489 C157.88039,135.09489 147.510584,123.290155 147.510584,108.914901 C147.510584,94.5396472 157.658606,82.7145587 170.525237,82.7145587 C183.391518,82.7145587 193.761324,94.5189427 193.539891,108.914901 C193.539891,123.290155 183.391518,135.09489 170.525237,135.09489 Z`,fill:"#5865F2",fillRule:"nonzero"})})}),qu=({x:e})=>d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:e?"58px":"36px",height:e?"58px":"36px",children:[o("circle",{cx:"24",cy:"24",r:"21",fill:"#74cccf"}),o("path",{fill:"none",stroke:"#010101",strokeMiterlimit:"10",d:"M45.051,24c0,3.826-1.069,7.415-2.857,10.504 c-1.844,3.187-4.305,6.189-7.492,8.033c-3.089,1.787-6.87
717,2.871-10.702,2.871c-3.826,0-7.567-1.165-10.656-2.952 c-3.187-1.844-5.847-4.677-7.69-7.864C3.867,31.503,3.378,27.826,3.378,24c0-3.826,0.68-7.393,2.467-10.482 c1.844-3.187,4.366-6.038,7.553-7.882C16.487,3.849,20.174,3.188,24,3.188c3.826,0,7.371,0.906,10.46,2.694 c3.187,1.844,5.545,4.627,7.389,7.814C43.636,16.785,45.051,20.174,45.051,24z"}),o("path",{fill:"#d6e5e5",d:"M17.689,26.814c0.492,1.906,1.089,3.785,1.785,5.626c0.151,0.399,0.366,0.85,0.782,0.946 c0.367,0.084,0.725-0.152,1.02-0.386c0.846-0.672,1.616-1.439,2.292-2.282c1.123,0.936,2.304,1.808,3.427,2.744 c0.437,0.364,0.884,0.734,1.414,0.94c0.53,0.205,1.168,0.22,1.635-0.104c0.321-0.222,0.525-0.574,0.692-0.927 c0.364-0.765,0.633-1.572,0.833-2.395c0.8-3.306,0.851-6.256,2.324-9.936c0.473-1.182,0.572-2.491,0.653-3.76 c0.048-0.748-0.541-1.378-1.289-1.408c-0.89-0.036-1.761,0.193-2.619,0.451c-6.127,1.842-11.582,4.246-17.015,6.668 c-0.505,0.225-1.044,0.413-1.436,0.803c-0.221,0.22-0.397,0.518-0.365,0.828c0.058,0.568,0.716,0.837,1.268,0.98 C14.627,26,16.133,26.517,17.689,26.814z"}),o("polygon",{fill:"#bcbcbc",points:"20.843,28.309 20.539,33.213 23.569,30.717"}),o("path",{fill:"none",stroke:"#010101",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M20.721,28.01 c1.109,1.117,2.262,2.191,3.455,3.219"}),o("polygon",{fill:"#bcbcbc",points:"18.264,26.388 29.64,18.955 30.146,19.41 21.197,27.652 20.792,28.916 20.135,33.163 17.758,27.197"}),o("path",{fill:"none",stroke:"#010101",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M17.689,26.814 c0.492,1.906,1.089,3.785,1.785,5.626c0.151,0.399,0.366,0.85,0.782,0.946c0.367,0.084,0.725-0.152,1.02-0.386 c0.846-0.672,1.616-1.439,2.292-2.282c1.123,0.936,2.304,1.808,3.427,2.744c0.437,0.364,0.884,0.734,1.414,0.94 c0.53,0.205,1.168,0.22,1.635-0.104c0.321-0.222,0.525-0.574,0.692-0.927c0.364-0.765,0.633-1.572,0.833-2.395 c0.8-3.306,0.851-6.256,2.324-9.936c0.473-1.182,0.572-2.491,0.653-3.76c0.048-0.748-0.541-1.378-1.289-1.408 c-0.89-0.036-1.761,0.193-2.619,0.451c-6.127,1.842-11.582,4.246-17.015,6.668c-0.505,0.225-1.044,0.413-1.436,0.803 c-0.221,0.22-0.397,0.518-0.365,0.828c0.058,0.568,0.716,0.837,1.268,0.98C14.627,26,16.133,26.517,17.689,26.814z"}),o("path",{fill:"none",stroke:"#010101",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M17.689,26.814 c3.357-2.222,6.437-4.187,9.794-6.409c0.695-0.46,2.562-1.753,2.87-1.262c0.411,0.654-6.383,5.935-9.624,8.879 c-0.164,1.727-0.287,3.459-0.37,5.192"})]}),Cf=({color:e})=>o("div",{className:" w-full bg-neutral-900 pb-5",children:o("div",{className:"container mx-auto max-w-6xl",children:d("div",{className:"mx-2 md:pt-4 pt-2",children:[o("div",{className:" text-xl font-semibold text-yellow-500",children:o("a",{href:"/copyright",children:"Copyright Center"})}),o("div",{className:" pb-2 md:text-base sm:text-sm text-xs",children:"En ManhwaWeb queremos garantizar que los usuarios, creadores, colaboradores y titulares de derechos disfruten de una experiencia excelente. Esto incluye permitir que los creadores independientes distribuyan su obra y proteger el contenido de los titulares de derechos frente a infracciones."}),d("div",{className:" flex items-center justify-between",children:[d("div",{className:" flex sm:items-center xs:items-start items-center sm:flex-row xs:flex-col flex-row sm:gap-4 xs:gap-0 gap-1",children:[o("div",{className:" text-xs md:text-xl",children:"© 2023"}),o("div",{className:` text-base md:text-2xl ${e?"text-verde-text":"text-vmw"}`,children:e?"ManhwaWeb":"visorManhwaWeb"})]}),d("div",{className:" flex gap-3 sm:gap-10",children:[d("a",{href:"https://discord.gg/GsErZrRBM",target:"_blank",className:" xs:flex items-center gap-1 sm:gap-2 hidden",children:[o(Hu,{}),o("span",{className:" sm:text-xl text-sm text-discord font-semibold",children:"Discord"})]}),d("a",{href:"https://t.me/manhwaweb_resurgir",target:"_blank",className:" xs:flex items-center sm:gap-2 hidden",children:[o(qu,{}),o("span",{className:" sm:text-xl text-sm font-medium sm:font-normal text-verde-text",children:"Telegram"})]})]})]}),d("div",{className:" flex justify-end gap-5",children:[d("a",{href:"https://t.me/manhwaweb_resurgir",target:"_blank",className:" xs:hidden flex mt-2 items-center gap-1",children:[o(qu,{}),o("span",{className:" text-sm text-verde-text",children:"Telegram"})]}),d("a",{href:"https://discord.gg/GsErZrRBM",target:"_blank",className:" xs:hidden flex mt-2 items-center gap-1",children:[o(Hu,{}),o("span",{className:" text-sm text-discord font-medium",children:"Discord"})]})]})]})})});function Dl(){const{pathname:e}=Nr();return x.useEffect(()=>{},[e]),null}function K2(){const e=ke===ze;return d("div",{className:" bg-base-negro min-h-screen text-white flex flex-col justify-between overflow-auto",children:[o(Dl,{}),d("div",{children:[d("header",{children:[o("div",{className:" bg-verde",children:o("div",{className:"container mx-auto max-w-6xl",children:o(kf,{color:e})})}),o("div",{children:o("div",{className:"container mx-auto max-w-6xl",children:o(E0,{color:e})})}),o("div",{children:o("div",{className:"container mx-auto max-w-6xl",children:o(O0,{color:e})})})]}),o(Ol,{context:{color:e}})]}),o(Cf,{color:e})]})}const Nt=()=>o("div",{className:"container mx-auto max-w-5xl",children:o("div",{className:"mx-2",children:o("div",{className:" bg-yellow-300 rounded-sm px-5 py-1 leading-none",children:o("span",{className:" text-base-negro text-xs font-medium",children:"La pagina aun se esta optimizando si sufren algun error o tienen alguna recomendacion de cualquier tipo, reportenlo al canal de telegram, o discord."})})})}),St=()=>o("div",{children:o("div",{className:"container mx-auto max-w-5xl",children:o("div",{className:"mx-2",children:o("div",{className:" text-center my-16 md:text-4xl text-xl text-red-500 h-60 font-semibold",children:"A OCURRIDO UN ERROR!!"})})})});function X2(e={}){const{nonce:t,onScriptLoadSuccess:r,onScriptLoadError:n}=e,[a,i]=x.useState(!1),s=x.useRef(r);s.current=r;const l=x.useRef(n);return l.current=n,x.useEffect(()=>{const c=document.createElement("script");return c.src="https://accounts.google.com/gsi/client",c.async=!0,c.defer=!0,c.nonce=t,c.onload=()=>{var u;i(!0),(u=s.current)===null||u===void 0||u.call(s)},c.onerror=()=>{var u;i(!1),(u=l.current)===null||u===void 0||u.call(l)},document.body.appendChild(c),()=>{document.body.removeChild(c)}},[t]),a}const P0=x.createContext(null);function T0({clientId:e,nonce:t,onScriptLoadSuccess:r,onScriptLoadError:n,children:a}){const i=X2({nonce:t,onScriptLoadSuccess:r,onScriptLoadError:n}),s=x.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:i}),[e,i]);return cl.createElement(P0.Provider,{value:s},a)}function J2(){const e=x.useContext(P0);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function Z2(e){var t;return(t=e==null?void 0:e.clientId)!==null&&t!==void 0?t:e==null?void 0:e.client_id}const eN={large:40,medium:32,small:20};function M0({onSuccess:e,onError:t,useOneTap:r,promptMomentNotification:n,type:a="standard",theme:i="outline",size:s="large",text:l,shape:c,logo_alignment:u,width:f,locale:g,click_listener:m,containerProps:y,...b}){const w=x.useRef(null),{clientId:_,scriptLoadedSuccessfully:v}=J2(),h=x.useRef(e);h.current=e;const p=x.useRef(t);p.current=t;const N=x.useRef(n);return N.current=n,x.useEffect(()=>{var S,C,O,P,k,E,M,T,j;if(v)return(O=(C=(S=window==null?void 0:window.google)===null||S===void 0?void 0:S.accounts)===null||C===void 0?void 0:C.id)===null||O===void 0||O.initialize({client_id:_,callback:A=>{var B;if(!(A!=null&&A.credential))return(B=p.current)===null||B===void 0?void 0:B.call(p);const{credential:z,select_by:ie}=A;h.current({credential:z,clientId:Z2(A),select_by:ie})},...b}),(E=(k=(P=window==null?void 0:window.google)===null||P===void 0?void 0:P.accounts)===null||k===void 0?void 0:k.id)===null||E===void 0||E.renderButton(w.current,{type:a,theme:i,size:s,text:l,shape:c,logo_alignment:u,width:f,locale:g,click_listener:m}),r&&((j=(T=(M=window==null?void 0:window.google)===null||M===void 0?void 0:M.accounts)===null||T===void 0?void 0:T.id)===null||j===void 0||j.prompt(N.current)),()=>{var A,B,z;r&&((z=(B=(A=window==null?void 0:window.google)===null||A===void 0?void 0:A.accounts)===null||B===void 0?void 0:B.id)===null||z===void 0||z.cancel())}},[_,v,r,a,i,s,l,c,u,f,g]),cl.createElement("div",{...y,ref:w,style:{height:eN[s],...y==null?void 0:y.style}})}function Vu(e){this.message=e}Vu.prototype=new Error,Vu.prototype.name="InvalidCharacterError";var Mh=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Vu("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,a=0,i=0,s="";n=t.charAt(i++);~n&&(r=a%4?64*r+n:n,a++%4)?s+=String.fromCharCode(255&r>>(-2*a&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
71+/=".indexOf(n);return s};function tN(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(r){return decodeURIComponent(Mh(r).replace(/(.)/g,function(n,a){var i=a.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i}))}(t)}catch{return Mh(t)}}function Bs(e){this.message=e}function rN(e,t){if(typeof e!="string")throw new Bs("Invalid token specified");var r=(t=t||{}).header===!0?0:1;try{return JSON.parse(tN(e.split(".")[r]))}catch(n){throw new Bs("Invalid token specified: "+n.message)}}Bs.prototype=new Error,Bs.prototype.name="InvalidTokenError";function nN(){const{setUserDatos:e}=x.useContext(Xa),t=tr(),[r,n]=x.useState(),[a,i]=x.useState(0),[s,l]=x.useState(""),[c,u]=x.useState(),[f,g]=x.useState(),[m,y]=x.useState(!1),{color:b}=ct();x.useEffect(()=>{document.title="Registro - ManhwaWeb",window.scrollTo({top:0})},[]);const w=v=>{if(v.preventDefault(),y(!0),n(!1),g(),s!=""&&s.toLowerCase()!="shogun"&&s.toLowerCase()!="lk scan"&&s.toLowerCase()!="lk_scan"&&s.toLowerCase()!="ecchitachos"){n(!0),g("Codigo de regalo invalido"),y(!1);return}const h={nick:v.target.nick.value,email:v.target.email.value,password:v.target.password.value,code:s!=""&&(s.toLowerCase()=="shogun"||s.toLowerCase()=="lk scan"||s.toLowerCase()=="lk_scan"||s.toLowerCase()=="ecchitachos")?"si":"no"};ee.post(`${te}/user/register`,h).then(p=>{localStorage.setItem("tokenCommers",p.data.data.jwt),e({usuario:p.data.data.user.nick,permisos:p.data.data.user.level}),t("/profile")}).catch(p=>{var N,S;p.message=="Network Error"&&u(p),n(!0),g((S=(N=p==null?void 0:p.response)==null?void 0:N.data)==null?void 0:S.errors[0]),y(!1)})};function _(v){y(!0),n(!1),g();const p={email:rN(v).email,code:s!=""&&(s.toLowerCase()=="shogun"||s.toLowerCase()=="lk scan"||s.toLowerCase()=="lk_scan")?"si":"no"};if(s!=""&&s.toLowerCase()!="shogun"&&s.toLowerCase()!="lk scan"&&s.toLowerCase()!="lk_scan"){n(!0),g("Codigo de regalo invalido");return}ee.post(`${te}/user/register_google`,p).then(N=>{localStorage.setItem("tokenCommers",N.data.data.jwt),e({usuario:N.data.data.user.nick,permisos:N.data.data.user.level}),t("/profile")}).catch(N=>{var S,C;N.message=="Network Error"&&u(N),n(!0),g((C=(S=N==null?void 0:N.response)==null?void 0:S.data)==null?void 0:C.errors[0]),y(!1)})}return c?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):o("div",{children:o("div",{className:"container mx-auto max-w-5xl",children:d("div",{className:"mx-2 mt-16",children:[o("form",{onSubmit:w,children:d("div",{className:" grid grid-cols-1 gap-3",children:[o("div",{className:` text-center text-4xl ${b?"text-verde-text":"text-vmw"} mb-2`,children:"Registro"}),o("div",{className:" flex justify-center ",children:d("div",{className:"md:flex sm:w-1/2 w-10/12 items-center",children:[o("div",{className:" md:w-1/4 w-full md:text-right pr-4 xl:text-lg text-base",children:o("label",{htmlFor:"nick",children:"Nick"})}),o("div",{className:" md:w-3/4 w-full",children:o("input",{id:"nick",type:"text",className:" text-black py-1 pl-2 w-full ",name:"nick",placeholder:"Nick",required:!0})})]})}),o("div",{className:" flex justify-center ",children:d("div",{className:"md:flex sm:w-1/2 w-10/12 items-center",children:[o("div",{className:" md:w-1/4 w-full md:text-right pr-4 xl:text-lg text-base ",children:o("label",{htmlFor:"email",children:"Email"})}),o("div",{className:" md:w-3/4 w-full",children:o("input",{id:"email",type:"email",className:" text-black py-1 pl-2 w-full ",name:"email",placeholder:"Correo electronico",required:!0})})]})}),o("div",{className:" flex justify-center ",children:d("div",{className:"md:flex sm:w-1/2 w-10/12 items-center",children:[o("div",{className:" md:w-1/4 w-full md:text-right pr-4 xl:text-lg text-base ",children:o("label",{htmlFor:"contraseña",children:"Contraseña"})}),o("div",{className:" md:w-3/4 w-full",children:o("input",{id:"contraseña",type:"password",className:" text-black py-1 pl-2 w-full ",name:"password",placeholder:"Contraseña",required:!0})})]})}),o("div",{className:"text-center pt-1 pb-1",children:o("button",{disabled:m,className:`${b?"bg-verde hover:bg-verde-text":"bg-vmws hover:bg-vmw"} sm:w-1/2 w-10/12 md:w-2/5 h-10 text-lg hover:text-base-negro hover:font-semibold`,type:"submit",children:"Registrar"})})]})}),o("div",{className:"flex justify-center ",children:d("div",{className:"sm:w-1/2 w-10/12 md:w-2/5 my-0 flex items-center mt-3",children:[o("div",{className:" w-full border-t-2 "}),o("div",{className:" px-2",children:"OOO"}),o("div",{className:" w-full border-t-2"})]})}),o("div",{className:" flex flex-col items-center justify-center mb-1.5 -mt-0.5",children:o("div",{className:`${a==1?" mt-2 rounded-t-md pl-2":" rounded-sm pl-4"} text-white xs:flex items-center cursor-pointer `,children:d("div",{className:" flex items-center pr-2",children:[a==0?o("div",{className:" pr-4 text-white mt-1.5 text-sm sm:text-base ",children:"¿Tienes un Código de Regalo?"}):o("input",{className:" bg-gray-200 text-black",value:s,onChange:v=>{l(v.target.value)},placeholder:" Codigo (opcional)",type:"text"}),o("svg",{onClick:()=>a==0?i(1):i(0),xmlns:"http://www.w3.org/2000/svg",className:`${a==1?" mt-2 ":"rotate-180 -ml-4 "} h-8 ${b?"text-verde-text":"text-vmw"} w-8 transform `,viewBox:"0 0 20 20",fill:"currentColor",children:o("path",{fillRule:"evenodd",d:"M14.707 10.707a1 1 0 01-1.414 0L10 6.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})]})})}),o("div",{className:"flex justify-center ",children:d("div",{className:"sm:w-1/2 w-10/12 md:w-2/5 my-0 flex items-center mb-3",children:[o("div",{className:" w-full border-t-2"}),o("div",{className:" px-2",children:"OOO"}),o("div",{className:" w-full border-t-2"})]})}),o("div",{className:" flex justify-center",children:o("div",{className:"sm:w-1/2 w-10/12 md:w-2/5 mt-1 mb-3 flex justify-center",children:o(T0,{clientId:C0,children:o(M0,{onSuccess:v=>{_(v.credential)},onError:()=>{u(r)}})})})}),r&&o("div",{className:"text-center flex justify-center",children:o("div",{className:" sm:w-1/2 w-10/12 md:w-2/5 py-1 bg-red-100 text-red-800 sm:text-base xs:text-sm text-xs",children:f??"Sucedio un error"})}),d("div",{className:" text-center mt-3 mb-10",children:[o("span",{children:"¿Ya tienes una cuenta? "}),o(Z,{className:b?"text-verde-text":"text-vmw",to:"/login",children:"Entrar"})]})]})})})}function aN(){const{setUserDatos:e}=x.useContext(Xa),t=tr(),[r,n]=x.useState(!1),[a,i]=x.useState(),[s,l]=x.useState(!1),{color:c}=ct();x.useEffect(()=>{document.title="Login - ManhwaWeb",window.scrollTo({top:0})},[]);const u=g=>
71{i(),n(!1),g.preventDefault();const m={email:g.target.email.value,password:g.target.password.value};ee.post(`${te}/user/login`,m).then(y=>{localStorage.setItem("tokenCommers",y.data.data.jwt),e({usuario:y.data.data.user.nick,permisos:y.data.data.user.level}),t("/")}).catch(y=>{y.message=="Network Error"&&l(y),n(!0)})};async function f(g){var m,y,b;try{i();const w=await ee.post(`${te}/user/login_google`,{credential:g});localStorage.setItem("tokenCommers",w.data.data.jwt),e({usuario:w.data.data.user.nick,permisos:w.data.data.user.level}),t("/")}catch(w){w.message=="Network Error"&&l(w),i((b=(y=(m=w==null?void 0:w.response)==null?void 0:m.data)==null?void 0:y.errors)==null?void 0:b[0]),n(!0)}}return s?d(ye,{children:[o(Nt,{}),o(St,{})]}):o("div",{children:o("div",{className:"container mx-auto max-w-5xl",children:d("div",{className:"mx-2 mt-16",children:[o("form",{onSubmit:u,children:d("div",{className:"grid grid-cols-1 gap-6",children:[o("div",{className:`text-center text-4xl ${c?"text-verde-text":"text-vmw"}`,children:"Login"}),o("div",{className:"flex justify-center",children:d("div",{className:"md:flex sm:w-1/2 w-3/4",children:[o("div",{className:"md:w-1/4 w-full md:text-right pr-4 xl:text-lg text-base md:mb-0 mb-1",children:o("label",{htmlFor:"email",children:"Email"})}),o("div",{className:"md:w-3/4 w-full",children:o("input",{id:"email",type:"email",className:"text-black py-1 pl-2 w-full",name:"email",placeholder:"Correo electronico",required:!0})})]})}),o("div",{className:"flex justify-center",children:d("div",{className:"md:flex sm:w-1/2 w-3/4",children:[o("div",{className:"md:w-1/4 w-full md:text-right pr-4 xl:text-lg text-base md:mb-0 mb-1",children:o("label",{htmlFor:"contraseña",children:"Contraseña"})}),o("div",{className:"md:w-3/4 w-full",children:o("input",{id:"contraseña",type:"password",className:"text-black w-full py-1 pl-2",name:"password",placeholder:"Contraseña",required:!0})})]})}),o("div",{className:"text-center pt-1 pb-1",children:o("button",{className:`${c?"bg-verde hover:bg-verde-text hover:text-base-negro":"bg-vmws hover:bg-vmw hover:text-base-negro"} sm:w-1/2 w-3/4 md:w-2/5 h-10 text-lg hover:font-semibold`,type:"submit",children:"Ingresar"})})]})}),o("div",{className:"flex justify-center",children:d("div",{className:"sm:w-1/2 w-3/4 md:w-2/5 my-0 flex items-center",children:[o("div",{className:"w-full border-t-2"}),o("div",{className:"px-2",children:"O"}),o("div",{className:"w-full border-t-2"})]})}),o("div",{className:"flex justify-center",children:o("div",{className:"sm:w-1/2 w-3/4 md:w-2/5 mt-1 mb-3 flex justify-center",children:o(T0,{clientId:C0,children:o(M0,{onSuccess:g=>{f(g.credential)},onError:()=>{l(!0)}})})})}),r&&o("div",{className:"text-center flex justify-center my-2",children:o("div",{className:"sm:w-1/2 w-3/4 md:w-2/5 py-1 bg-red-100 text-red-800 sm:text-base xs:text-sm text-xs",children:a??"Cuenta o contraseña incorrecta"})}),d("div",{className:"text-center mt-3 mb-10",children:[d("span",{children:["¿No tienes una cuenta?"," "]}),o(Z,{className:c?"text-verde-text":"text-vmw",to:"/register",children:"Registrate"})]})]})})})}function Ws(e){return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ws(e)}function Jn(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function He(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Fe(e){He(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ws(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function iN(e,t){He(2,arguments);var r=Fe(e).getTime(),n=Jn(t);return new Date(r+n)}var oN={};function go(){return oN}function Gu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function cs(e,t){He(2,arguments);var r=Fe(e),n=Fe(t),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}function sN(e){return He(1,arguments),e instanceof Date||Ws(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function lN(e){if(He(1,arguments),!sN(e)&&typeof e!="number")return!1;var t=Fe(e);return!isNaN(Number(t))}function cN(e,t){He(2,arguments);var r=Fe(e),n=Fe(t),a=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return a*12+i}function uN(e,t){return He(2,arguments),Fe(e).getTime()-Fe(t).getTime()}var Rh={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},dN="trunc";function fN(e){return e?Rh[e]:Rh[dN]}function mN(e){He(1,arguments);var t=Fe(e);return t.setHours(23,59,59,999),t}function hN(e){He(1,arguments);var t=Fe(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function pN(e){He(1,arguments);var t=Fe(e);return mN(t).getTime()===hN(t).getTime()}function gN(e,t){He(2,arguments);var r=Fe(e),n=Fe(t),a=cs(r,n),i=Math.abs(cN(r,n)),s;if(i<1)s=0;else{r.getMonth()===1&&r.getDate()>
vendor: 12,507 bytes, line 71
7127&&r.setDate(30),r.setMonth(r.getMonth()-a*i);var l=cs(r,n)===-a;pN(Fe(e))&&i===1&&cs(e,n)===1&&(l=!1),s=a*(i-Number(l))}return s===0?0:s}function vN(e,t,r){He(2,arguments);var n=uN(e,t)/1e3;return fN(r==null?void 0:r.roundingMethod)(n)}function xN(e,t){He(2,arguments);var r=Jn(t);return iN(e,-r)}var yN=864e5;function wN(e){He(1,arguments);var t=Fe(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),a=r-n;return Math.floor(a/yN)+1}function Hs(e){He(1,arguments);var t=1,r=Fe(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function R0(e){He(1,arguments);var t=Fe(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=Hs(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var s=Hs(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function bN(e){He(1,arguments);var t=R0(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Hs(r);return n}var NN=6048e5;function SN(e){He(1,arguments);var t=Fe(e),r=Hs(t).getTime()-bN(t).getTime();return Math.round(r/NN)+1}function qs(e,t){var r,n,a,i,s,l,c,u;He(1,arguments);var f=go(),g=Jn((r=(n=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&n!==void 0?n:(c=f.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Fe(e),y=m.getUTCDay(),b=(y<g?7:0)+y-g;return m.setUTCDate(m.getUTCDate()-b),m.setUTCHours(0,0,0,0),m}function D0(e,t){var r,n,a,i,s,l,c,u;He(1,arguments);var f=Fe(e),g=f.getUTCFullYear(),m=go(),y=Jn((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:m.firstWeekContainsDate)!==null&&n!==void 0?n:(c=m.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(g+1,0,y),b.setUTCHours(0,0,0,0);var w=qs(b,t),_=new Date(0);_.setUTCFullYear(g,0,y),_.setUTCHours(0,0,0,0);var v=qs(_,t);return f.getTime()>=w.getTime()?g+1:f.getTime()>=v.getTime()?g:g-1}function _N(e,t){var r,n,a,i,s,l,c,u;He(1,arguments);var f=go(),g=Jn((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&n!==void 0?n:(c=f.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1),m=D0(e,t),y=new Date(0);y.setUTCFullYear(m,0,g),y.setUTCHours(0,0,0,0);var b=qs(y,t);return b}var kN=6048e5;function CN(e,t){He(1,arguments);var r=Fe(e),n=qs(r,t).getTime()-_N(r,t).getTime();return Math.round(n/kN)+1}function je(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var EN={y:function(t,r){var n=t.getUTCFullYear(),a=n>0?n:1-n;return je(r==="yy"?a%100:a,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):je(n+1,2)},d:function(t,r){return je(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return je(t.getUTCHours()%12||12,r.length)},H:function(t,r){return je(t.getUTCHours(),r.length)},m:function(t,r){return je(t.getUTCMinutes(),r.length)},s:function(t,r){return je(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,a=t.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,n-3));return je(i,r.length)}};const an=EN;var la={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ON={G:function(t,r,n){var a=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var a=t.getUTCFullYear(),i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return an.y(t,r)},Y:function(t,r,n,a){var i=D0(t,a),s=i>0?i:1-i;if(r==="YY"){var l=s%100;return je(l,2)}return r==="Yo"?n.ordinalNumber(s,{unit:"year"}):je(s,r.length)},R:function(t,r){var n=R0(t);return je(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return je(n,r.length)},Q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return je(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return je(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,r,n){var a=t.getUTCMonth();switch(r){case"M":case"MM":return an.M(t,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,r,n){var a=t.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return je(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(t,r,n,a){var i=CN(t,a);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):je(i,r.length)},I:function(t,r,n){var a=SN(t);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):je(a,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):an.d(t,r)},D:function(t,r,n){var a=wN(t);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):je(a,r.length)},E:function(t,r,n){var a=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(t,r,n,a){var i=t.getUTCDay(),s=(i-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(s);case"ee":return je(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,n,a){var i=t.getUTCDay(),s=(i-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(s);case"cc":return je(s,r.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,n){var a=t.getUTCDay(),i=a===0?7:a;switch(r){case"i":return String(i);case"ii":return je(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(t,r,n){var a=t.getUTCHours(),i=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,n){var a=t.getUTCHours(),i;switch(a===12?i=la.noon:a===0?i=la.midnight:i=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,n){var a=t.getUTCHours(),i;switch(a>=17?i=la.evening:a>=12?i=la.afternoon:a>=4?i=la.morning:i=la.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return an.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):an.H(t,r)},K:function(t,r,n){var a=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):je(a,r.length)},k:function(t,r,n){var a=t.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):je(a,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):an.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):an.s(t,r)},S:function(t,r){return an.S(t,r)},X:function(t,r,n,a){var i=a._originalDate||t,s=i.getTimezoneOffset();if(s===0)return"Z";switch(r){case"X":return $h(s);case"XXXX":case"XX":return In(s);case"XXXXX":case"XXX":default:return In(s,":")}},x:function(t,r,n,a){var i=a._originalDate||t,s=i.getTimezoneOffset();switch(r){case"x":return $h(s);case"xxxx":case"xx":return In(s);case"xxxxx":case"xxx":default:return In(s,":")}},O:function(t,r,n,a){var i=a._originalDate||t,s=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Dh(s,":");case"OOOO":default:return"GMT"+In(s,":")}},z:function(t,r,n,a){var i=a._originalDate||t,s=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Dh(s,":");case"zzzz":default:return"GMT"+In(s,":")}},t:function(t,r,n,a){var i=a._originalDate||t,s=Math.floor(i.getTime()/1e3);return je(s,r.length)},T:function(t,r,n,a){var i=a._originalDate||t,s=i.getTime();return je(s,r.length)}};function Dh(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),i=n%60;if(i===0)return r+String(a);var s=t||"";return r+String(a)+s+je(i,2)}function $h(e,t){if(e%60===0){var r=e>0?"-":"+";return r+je(Math.abs(e)/60,2)}return In(e,t)}function In(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),i=je(Math.floor(a/60),2),s=je(a%60,2);return n+i+r+s}const PN=ON;var jh=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},$0=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},TN=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return jh(t,r);var s;switch(a){case"P":s=r.dateTime({width:"short"});break;case"PP":s=r.dateTime({width:"medium"});break;case"PPP":s=r.dateTime({width:"long"});break;case"PPPP":default:s=r.dateTime({width:"full"});break}return s.replace("{{date}}",jh(a,r)).replace("{{time}}",$0(i,r))},MN={p:$0,P:TN};const RN=MN;var DN=["D","DD"],$N=["YY","YYYY"];function jN(e){return DN.indexOf(e)!==-1}function LN(e){return $N.indexOf(e)!==-1}function Lh(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
vendor: 8,383 bytes, line 71
71concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var AN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},IN=function(t,r,n){var a,i=AN[t];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};const zN=IN;function Da(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var UN={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},FN={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},BN={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},WN={date:Da({formats:UN,defaultWidth:"full"}),time:Da({formats:FN,defaultWidth:"full"}),dateTime:Da({formats:BN,defaultWidth:"full"})};const HN=WN;var qN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},VN=function(t,r,n,a){return qN[t]};const GN=VN;function Or(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=r!=null&&r.width?String(r.width):i;a=e.formattingValues[s]||e.formattingValues[i]}else{var l=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[c]||e.values[l]}var u=e.argumentCallback?e.argumentCallback(t):t;return a[u]}}var YN={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},QN={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},KN={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},XN={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},JN={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ZN={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},eS=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},tS={ordinalNumber:eS,era:Or({values:YN,defaultWidth:"wide"}),quarter:Or({values:QN,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Or({values:KN,defaultWidth:"wide"}),day:Or({values:XN,defaultWidth:"wide"}),dayPeriod:Or({values:JN,defaultWidth:"wide",formattingValues:ZN,defaultFormattingWidth:"wide"})};const rS=tS;function Pr(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var s=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?aS(l,function(g){return g.test(s)}):nS(l,function(g){return g.test(s)}),u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;var f=t.slice(s.length);return{value:u,rest:f}}}function nS(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function aS(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function j0(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],i=t.match(e.parsePattern);if(!i)return null;var s=e.valueCallback?e.valueCallback(i[0]):i[0];s=r.valueCallback?r.valueCallback(s):s;var l=t.slice(a.length);return{value:s,rest:l}}}var iS=/^(\d+)(th|st|nd|rd)?/i,oS=/\d+/i,sS={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lS={any:[/^b/i,/^(a|c)/i]},cS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},uS={any:[/1/i,/2/i,/3/i,/4/i]},dS={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},fS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mS={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},hS={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},pS={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gS={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},vS={ordinalNumber:j0({matchPattern:iS,parsePattern:oS,valueCallback:function(t){return parseInt(t,10)}}),era:Pr({matchPatterns:sS,defaultMatchWidth:"wide",parsePatterns:lS,defaultParseWidth:"any"}),quarter:Pr({matchPatterns:cS,defaultMatchWidth:"wide",parsePatterns:uS,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Pr({matchPatterns:dS,defaultMatchWidth:"wide",parsePatterns:fS,defaultParseWidth:"any"}),day:Pr({matchPatterns:mS,defaultMatchWidth:"wide",parsePatterns:hS,defaultParseWidth:"any"}),dayPeriod:Pr({matchPatterns:pS,defaultMatchWidth:"any",parsePatterns:gS,defaultParseWidth:"any"})};const xS=vS;var yS={code:"en-US",formatDistance:zN,formatLong:HN,formatRelative:GN,localize:rS,match:xS,options:{weekStartsOn:0,firstWeekContainsDate:1}};const L0=yS;var wS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,NS=/^'([^]*?)'?$/,SS=/''/g,_S=/[a-zA-Z]/;function kS(e,t,r){var n,a,i,s,l,c,u,f,g,m,y,b,w,_,v,h,p,N;He(2,arguments);
71var S=String(t),C=go(),O=(n=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:C.locale)!==null&&n!==void 0?n:L0,P=Jn((i=(s=(l=(c=r==null?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(u=r.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&l!==void 0?l:C.firstWeekContainsDate)!==null&&s!==void 0?s:(g=C.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=Jn((y=(b=(w=(_=r==null?void 0:r.weekStartsOn)!==null&&_!==void 0?_:r==null||(v=r.locale)===null||v===void 0||(h=v.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&w!==void 0?w:C.weekStartsOn)!==null&&b!==void 0?b:(p=C.locale)===null||p===void 0||(N=p.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&y!==void 0?y:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var E=Fe(e);if(!lN(E))throw new RangeError("Invalid time value");var M=Gu(E),T=xN(E,M),j={firstWeekContainsDate:P,weekStartsOn:k,locale:O,_originalDate:E},A=S.match(bS).map(function(B){var z=B[0];if(z==="p"||z==="P"){var ie=RN[z];return ie(B,O.formatLong)}return B}).join("").match(wS).map(function(B){if(B==="''")return"'";var z=B[0];if(z==="'")return CS(B);var ie=PN[z];if(ie)return!(r!=null&&r.useAdditionalWeekYearTokens)&&LN(B)&&Lh(B,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&jN(B)&&Lh(B,t,String(e)),ie(T,B,O.localize,j);if(z.match(_S))throw new RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");return B}).join("");return A}function CS(e){var t=e.match(NS);return t?t[1].replace(SS,"'"):e}function A0(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ES(e){return A0({},e)}var Ah=1440,OS=2520,kc=43200,PS=86400;function TS(e,t,r){var n,a;He(2,arguments);var i=go(),s=(n=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:i.locale)!==null&&n!==void 0?n:L0;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var l=cs(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var c=A0(ES(r),{addSuffix:Boolean(r==null?void 0:r.addSuffix),comparison:l}),u,f;l>0?(u=Fe(t),f=Fe(e)):(u=Fe(e),f=Fe(t));var g=vN(f,u),m=(Gu(f)-Gu(u))/1e3,y=Math.round((g-m)/60),b;if(y<2)return r!=null&&r.includeSeconds?g<5?s.formatDistance("lessThanXSeconds",5,c):g<10?s.formatDistance("lessThanXSeconds",10,c):g<20?s.formatDistance("lessThanXSeconds",20,c):g<40?s.formatDistance("halfAMinute",0,c):g<60?s.formatDistance("lessThanXMinutes",1,c):s.formatDistance("xMinutes",1,c):y===0?s.formatDistance("lessThanXMinutes",1,c):s.formatDistance("xMinutes",y,c);if(y<45)return s.formatDistance("xMinutes",y,c);if(y<90)return s.formatDistance("aboutXHours",1,c);if(y<Ah){var w=Math.round(y/60);return s.formatDistance("aboutXHours",w,c)}else{if(y<OS)return s.formatDistance("xDays",1,c);if(y<kc){var _=Math.round(y/Ah);return s.formatDistance("xDays",_,c)}else if(y<PS)return b=Math.round(y/kc),s.formatDistance("aboutXMonths",b,c)}if(b=gN(f,u),b<12){var v=Math.round(y/kc);return s.formatDistance("xMonths",v,c)}else{var h=b%12,p=Math.floor(b/12);return h<3?s.formatDistance("aboutXYears",p,c):h<9?s.formatDistance("overXYears",p,c):s.formatDistance("almostXYears",p+1,c)}}function I0(e,t){return He(1,arguments),TS(e,Date.now(),t)}var MS={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dÃa",other:"{{count}} dÃas"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},RS=function(t,r,n){var a,i=MS[t];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+a:"hace "+a:a};const DS=RS;var $S={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},jS={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},LS={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},AS={date:Da({formats:$S,defaultWidth:"full"}),time:Da({formats:jS,defaultWidth:"full"}
71),dateTime:Da({formats:LS,defaultWidth:"full"})};const IS=AS;var zS={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},US={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},FS=function(t,r,n,a){return r.getUTCHours()!==1?US[t]:zS[t]};const BS=FS;var WS={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},HS={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},qS={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},VS={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},GS={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},YS={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},QS=function(t,r){var n=Number(t);return n+"º"},KS={ordinalNumber:QS,era:Or({values:WS,defaultWidth:"wide"}),quarter:Or({values:HS,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Or({values:qS,defaultWidth:"wide"}),day:Or({values:VS,defaultWidth:"wide"}),dayPeriod:Or({values:GS,defaultWidth:"wide",formattingValues:YS,defaultFormattingWidth:"wide"})};const XS=KS;var JS=/^(\d+)(º)?/i,ZS=/\d+/i,e_={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},t_={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},r_={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},n_={any:[/1/i,/2/i,/3/i,/4/i]},a_={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},i_={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},o_={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},s_={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},l_={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},c_={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},u_={ordinalNumber:j0({matchPattern:JS,parsePattern:ZS,valueCallback:function(t){return parseInt(t,10)}}),era:Pr({matchPatterns:e_,defaultMatchWidth:"wide",parsePatterns:t_,defaultParseWidth:"any"}),quarter:Pr({matchPatterns:r_,defaultMatchWidth:"wide",parsePatterns:n_,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Pr({matchPatterns:a_,defaultMatchWidth:"wide",parsePatterns:i_,defaultParseWidth:"any"}),day:Pr({matchPatterns:o_,defaultMatchWidth:"wide",parsePatterns:s_,defaultParseWidth:"any"}),dayPeriod:Pr({matchPatterns:l_,defaultMatchWidth:"any",parsePatterns:c_,defaultParseWidth:"any"})};const d_=u_;var f_={code:"es",formatDistance:DS,formatLong:IS,formatRelative:BS,localize:XS,match:d_,options:{weekStartsOn:1,firstWeekContainsDate:1}};const z0=f_,Pt=()=>
71{const[e,t]=x.useState();return x.useEffect(()=>{const r=Math.floor(Math.random()*9)+1;t(r)},[]),o("div",{className:" mb-60",children:d("div",{className:" h-80 flex flex-col items-center mt-28 gap-2",children:[e&&o("img",{src:`/assets/cargando/${e}.gif`,className:" w-40 h-40",alt:"Random Image"}),o("div",{className:" text-2xl md:text-3xl text-center ",children:" Cargando..."})," "]})})},Yu=({manhwas:e,formatFechaRelativa:t,erotic:r})=>o("div",{className:" grid grid-cols-2 xs:grid-cols-3 sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-6 gap-2",children:e.map(n=>Date.now()-n.create>6e4&&o("div",{className:"overflow-hidden",children:d("a",{href:`/manhwa/${n.id_rel??n.id_manhwa}`,className:"",children:[o("div",{className:` text-xs md:text-base bottom-0 mb-0 right-0 w-full rounded-t-md bg-opacity-80 text-center ${n._tipo=="manhua"?" bg-marron":n._tipo=="manhwa"?" bg-green-600":n._tipo=="novela"?" bg-red-700":n._tipo=="doujinshi"?" bg-yellow-500":n._tipo=="manga"?" bg-blue-600":" bg-fuchsia-400"}`,children:n==null?void 0:n._tipo.replace("_"," ").toUpperCase()}),d("div",{className:"relative",children:[o("img",{className:"w-full object-cover aspect-defect",src:n.img,alt:n.name_manhwa}),n.lgbt&&n.lgbt!="no"&&o("span",{className:` ${n.lgbt=="bl"?" bg-purple-400 ":" bg-sky-400"} rounded-md sm:text-lg sm:px-1.5 px-1 font-semibold border absolute top-1 left-1`,children:n.lgbt.toUpperCase()}),o("div",{className:"absolute sm:text-xs text-xxxs top-1 right-1 flex ",children:r&&r
71=="si"&&o("span",{className:" rounded-full bg-gradient-to-r bg-white border-2 border-red-700 text-black px-0.5 py-1 font-bold",children:"+18"})}),d("div",{className:"absolute w-full bottom-0 left-0 text-white ",children:[o("div",{className:` w-full text-center line-clamp-1 py-0.5 text-xs sm:text-sm ${!n.gru_name&&" text-gray-200"} bg-opacity-70 bg-black`,children:n.gru_name??"ManhwaWeb Bot"}),d("div",{className:" bg-opacity-90 bg-black text-xxs sm:text-xs w-full text-center text-gray-300",children:[" Capitulo ",n.chapter," "]})]})]}),o("div",{className:" bg-opacity-70 bg-black -mt-0.5",children:o("p",{className:" text-xxxs sm:text-xxs text-center text-gray-400 font-cust ",children:t(n.create?n.create:1689574203513).replace("alrededor de ","").replace("más de ","").replace("casi ","")})}),n._demografi&&o("div",{className:` text-sm md:text-lg font-mono w-full bg-opacity-80 text-center ${n._demografi=="seinen"?" bg-red-700":n._demografi=="josei"?" bg-purple-700":n._demografi=="shojo"?" bg-fuchsia-500":" bg-yellow-600"}`,children:n._demografi.charAt(0).toUpperCase()+n._demografi.replace("sho","shou").slice(1)}),o("div",{className:"pt-1 px-1 pb-0.5",children:o("p",{className:"text-xs_ sm:text-sm_ leading-customa text-texto-blanco text-center font-sans font-medium line-clamp-3",children:n.name_manhwa})})]})},n.id_manhwa))}),vo=()=>o("div",{children:d("div",{className:"container mx-auto max-w-5xl md:pb-48 pb-60",children:[o("div",{className:"mx-2 flex justify-center",children:o("div",{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:" md:h-40 md:w-40 h-32 w-32",viewBox:"0 0 20 20",fill:"none",stroke:"#2C3E50",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M6 18L18 6M6 6l12 12"})})})}),o("div",{className:" text-center md:text-2xl text-lg mt-3 ml-5 lg:ml-10",children:"No hay elementos"})]})}),m_=()=>
71{const[e]=Rn(),[t,r]=x.useState(Number(e.get("m"))||2),[n,a]=x.useState({manhwas_esp:[],manhwas_raw:[],_manhwas:[]}),[i,s]=x.useState(null),[l,c]=x.useState(!0),{color:u}=ct();x.useEffect(()=>{document.title="Ultimos Capitulos - ManhwaWeb";const m=document.querySelector('meta[name="description"]');m&&m.setAttribute("content","Ultimos capitulos en español y raws de manhwas +18"),(async()=>{try{const b=await ee.get(`${te}/latest/new-manhwa`);a(b.data.manhwas)}catch(b){s(b)}finally{c(!1)}})()},[]);const f=m=>I0(m,{locale:z0,addSuffix:!0,includeSeconds:!0});if(l)return o(Pt,{});if(i)return d(ye,{children:[" ",o(Nt,{})," ",o(St,{})," "]});const g=({manhwas:m,isActive:y,erotic:b})=>y&&m.length>0?o(Yu,{manhwas:m,formatFechaRelativa:f,erotic:b}):y&&o(vo,{});return d("section",{children:[o("div",{className:u?"bg-verde":"bg-vmws mt-1",children:o("div",{className:"container mx-auto max-w-6xl",children:o("div",{className:"md:mx-2 mx-0",children:d("nav",{role:"tablist",className:"flex md:text-lg text-sm",children:[o("button",{onClick:()=>r(2),className:`cursor-pointer ${t===2&&(u?"text-verde-text border-b-4 border-verde-text":"text-vmw border-b-4 border-vmw")} w-1/2 text-center md:py-2 py-1.5`,children:"Principal"}),o("button",{onClick:()=>r(1),className:`cursor-pointer ${t===1&&"text-red-600 border-b-4 border-red-700"} w-1/2 text-center md:py-2 py-1.5`,children:"Adulto +18"})]})})})}),o("div",{className:"container mx-auto max-w-6xl md:mt-8 mt-4",children:d("div",{className:"mx-2",children:[o(g,{manhwas:n.manhwas_esp,isActive:t===2}),o(g,{manhwas:n._manhwas,isActive:t===1,erotic:"si"})]})})]})};var U0={},$l={},Wa={},h_={get exports(){return Wa},set exports(e){Wa=e}},p_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",g_=p_,v_=g_;function F0(){}function B0(){}B0.resetWarningCache=F0;var x_=function(){function e(n,a,i,s,l,c){if(c!==v_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:B0,resetWarningCache:F0};return r.PropTypes=r,r};h_.exports=x_();var Dr={};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.insertScript=N_;Dr.removeScript=S_;Dr.removeResources=__;Dr.debounce=k_;Dr.isReactElement=W0;Dr.shallowComparison=H0;var Ih=y_(x);function y_(e){return e&&e.__esModule?e:{default:e}}function us(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?us=function(r){return typeof r}:us=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},us(e)}function w_(e){if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(e=b_(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(c){throw c},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 72In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n,a=!0,i=!1,s;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return a=c.done,c},e:function(c){i=!0,s=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(i)throw s}}}}function b_(e,t){if(e){if(typeof e=="string")return zh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zh(e,t)}}function zh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N_(e,t,r){var n=window.document.createElement("script");return n.async=!0,n.src=e,n.id=t,r.appendChild(n),n}function S_(e,t){var r=window.document.getElementById(e);r&&t.removeChild(r)}function __(){var e=window.document.querySelectorAll('link[href*="disquscdn.com/next/embed"], link[href*="disquscdn.com/next/recommendations"], link[href*="disqus.com/next/config.js"], script[src*="disquscdn.com/next/embed"], script[src*="disqus.com/count-data.js"], iframe[title="Disqus"]');e.forEach(function(t){return t.remove()})}function k_(e,t,r){var n;return function(){var a=this,i=arguments,s=function(){n=null,r||e.apply(a,i)},l=r&&!n;window.clearTimeout(n),n=setTimeout(s,t),l&&e.apply(a,i)}}function W0(e){return Ih.default.isValidElement(e)?!0:Array.isArray(e)?e.some(function(t){return Ih.default.isValidElement(t)}):!1}function H0(e,t){var r=new Set(Object.keys(e),Object.keys(t)),n=w_(r),a;try{for(n.s();!(a=n.n()).done;){var i=a.value;if(us(e[i])==="object"){if(H0(e[i],t[i]))return!0}else if(e[i]!==t[i]&&!W0(e[i]))return!0}}catch(s){n.e(s)}finally{n.f()}return!1}var Xe={};
72Object.defineProperty(Xe,"__esModule",{value:!0});Xe.CALLBACKS=Xe.RECOMMENDATIONS_SCRIPT_ID=Xe.RECOMMENDATIONS_ID=Xe.COMMENT_EMBED_HEIGHT=Xe.COMMENT_EMBED_WIDTH=Xe.COMMENT_COUNT_SCRIPT_ID=Xe.COMMENT_COUNT_CLASS=Xe.EMBED_SCRIPT_ID=Xe.THREAD_ID=void 0;var C_="disqus_thread";Xe.THREAD_ID=C_;var E_="dsq-embed-scr";Xe.EMBED_SCRIPT_ID=E_;var O_="disqus-comment-count";Xe.COMMENT_COUNT_CLASS=O_;var P_="dsq-count-scr";Xe.COMMENT_COUNT_SCRIPT_ID=P_;var T_=420;Xe.COMMENT_EMBED_WIDTH=T_;var M_=320;Xe.COMMENT_EMBED_HEIGHT=M_;var R_="disqus_recommendations";Xe.RECOMMENDATIONS_ID=R_;var D_="dsq-recs-scr";Xe.RECOMMENDATIONS_SCRIPT_ID=D_;var $_=["preData","preInit","onInit","onReady","afterRender","preReset","onIdentify","beforeComment","onNewComment","onPaginate"];Xe.CALLBACKS=$_;Object.defineProperty($l,"__esModule",{value:!0});$l.CommentCount=void 0;var Uh=q0(x),jn=q0(Wa),Ni=Dr,Fo=Xe;function q0(e){return e&&e.__esModule?e:{default:e}}function ds(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ds=function(r){return typeof r}:ds=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ds(e)}function Qu(){return Qu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qu.apply(this,arguments)}function j_(e,t){if(e==null)return{};var r=L_(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function L_(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function A_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function I_(e,t,r){return t&&Fh(e.prototype,t),r&&Fh(e,r),e}function z_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ku(e,t)}function Ku(e,t){return Ku=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Ku(e,t)}function U_(e){var t=W_();return function(){var r=Vs(e),n;if(t){var a=Vs(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return F_(this,n)}}function F_(e,t){return t&&(ds(t)==="object"||typeof t=="function")?t:B_(e)}function B_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Vs(e){return Vs=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Vs(e)}var H_=(0,Ni.debounce)(function(){window.DISQUSWIDGETS&&window.DISQUSWIDGETS.getCount({reset:!0})},300,!1),V0=function(e){z_(r,e);var t=U_(r);function r(){return A_(this,r),t.apply(this,arguments)}
72return I_(r,[{key:"componentDidMount",value:function(){this.loadInstance()}},{key:"shouldComponentUpdate",value:function(a){return this.props===a?!1:(0,Ni.shallowComparison)(this.props,a)}},{key:"componentDidUpdate",value:function(a){this.props.shortname!==a.shortname&&this.cleanInstance(),this.loadInstance()}},{key:"componentWillUnmount",value:function(){this.cleanInstance()}},{key:"loadInstance",value:function(){var a=window.document;a.getElementById(Fo.COMMENT_COUNT_SCRIPT_ID)?H_():(0,Ni.insertScript)("https://".concat(this.props.shortname,".disqus.com/count.js"),Fo.COMMENT_COUNT_SCRIPT_ID,a.body)}},{key:"cleanInstance",value:function(){var a=window.document;(0,Ni.removeScript)(Fo.COMMENT_COUNT_SCRIPT_ID,a.body),window.DISQUSWIDGETS=void 0,(0,Ni.removeResources)()}},{key:"render",value:function(){var a=this.props;a.shortname;var i=a.config,s=a.children,l=a.className,c=j_(a,["shortname","config","children","className"]),u=l?" ".concat(l):"";return Uh.default.createElement("span",Qu({},c,{className:"".concat(Fo.COMMENT_COUNT_CLASS).concat(u),"data-disqus-identifier":i.identifier,"data-disqus-url":i.url}),s)}}]),r}(Uh.default.Component);$l.CommentCount=V0;V0.propTypes={shortname:jn.default.string.isRequired,config:jn.default.shape({identifier:jn.default.string,url:jn.default.string,title:jn.default.string}).isRequired,className:jn.default.string,children:jn.default.node};var jl={};Object.defineProperty(jl,"__esModule",{value:!0});jl.CommentEmbed=void 0;var Bh=G0(x),ca=G0(Wa),Wh=Xe;function G0(e){return e&&e.__esModule?e:{default:e}}function fs(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fs=function(r){return typeof r}:fs=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},fs(e)}function Xu(){return Xu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xu.apply(this,arguments)}function q_(e,t){if(e==null)return{};var r=V_(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function V_(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function G_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Y_(e,t,r){return t&&Hh(e.prototype,t),r&&Hh(e,r),e}function Q_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ju(e,t)}function Ju(e,t){return Ju=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Ju(e,t)}function K_(e){var t=Z_();return function(){var r=Gs(e),n;if(t){var a=Gs(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return X_(this,n)}}function X_(e,t){return t&&(fs(t)==="object"||typeof t=="function")?t:J_(e)}function J_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Gs(e){return Gs=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Gs(e)}var Ef=function(e){Q_(r,e);var t=K_(r);function r(){return G_(this,r),t.apply(this,arguments)}return Y_(r,[{key:"getSrc",value:function(){var a=36,i=Number(this.props.commentId).toString(a),s=this.props.showParentComment?"1":"0",l=this.props.showMedia?"1":"0";return"https://embed.disqus.com/p/".concat(i,"?p=").concat(s,"&m=").concat(l)}},{key:"render",value:function(){var a=this.props,i=a.width,s=a.height;a.commentId,a.showMedia,a.showParentComment;var l=q_(a,["width","height","commentId","showMedia","showParentComment"]);return Bh.default.createElement("iframe",Xu({},l,{src:this.getSrc(),width:i,height:s,seamless:"seamless",scrolling:"no",frameBorder:"0"}))}}]),r}(Bh.default.Component);jl.CommentEmbed=Ef;Ef.defaultProps={showMedia:!0,showParentComment:!0,width:Wh.COMMENT_EMBED_WIDTH,height:Wh.COMMENT_EMBED_HEIGHT};Ef.propTypes={commentId:ca.default.string.isRequired,showMedia:ca.default.bool,showParentComment:ca.default.bool,width:ca.default.number,height:ca.default.number,className:ca.default.string};var Ll={};
vendor: 2,471 bytes, line 72
72Object.defineProperty(Ll,"__esModule",{value:!0});Ll.DiscussionEmbed=void 0;var qh=Y0(x),Ie=Y0(Wa),Bo=Dr,ua=Xe;function Y0(e){return e&&e.__esModule?e:{default:e}}function ms(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ms=function(r){return typeof r}:ms=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ms(e)}function Zu(){return Zu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zu.apply(this,arguments)}function e3(e,t){if(e==null)return{};var r=t3(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function t3(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function r3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n3(e,t,r){return t&&Vh(e.prototype,t),r&&Vh(e,r),e}function a3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ed(e,t)}function ed(e,t){return ed=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},ed(e,t)}function i3(e){var t=l3();return function(){var r=Ys(e),n;if(t){var a=Ys(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return o3(this,n)}}function o3(e,t){return t&&(ms(t)==="object"||typeof t=="function")?t:s3(e)}function s3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ys(e){return Ys=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ys(e)}var Q0=function(e){a3(r,e);var t=i3(r);function r(){return r3(this,r),t.apply(this,arguments)}
72return n3(r,[{key:"componentDidMount",value:function(){typeof window<"u"&&window.disqus_shortname&&window.disqus_shortname!==this.props.shortname&&this.cleanInstance(),this.loadInstance()}},{key:"shouldComponentUpdate",value:function(a){return this.props===a?!1:(0,Bo.shallowComparison)(this.props,a)}},{key:"componentDidUpdate",value:function(a){this.props.shortname!==a.shortname&&this.cleanInstance(),this.loadInstance()}},{key:"componentWillUnmount",value:function(){this.cleanInstance()}},{key:"loadInstance",value:function(){var a=window.document;window&&window.DISQUS&&a.getElementById(ua.EMBED_SCRIPT_ID)?window.DISQUS.reset({reload:!0,config:this.getDisqusConfig(this.props.config)}):(window.disqus_config=this.getDisqusConfig(this.props.config),window.disqus_shortname=this.props.shortname,(0,Bo.insertScript)("https://".concat(this.props.shortname,".disqus.com/embed.js"),ua.EMBED_SCRIPT_ID,a.body))}},{key:"cleanInstance",value:function(){var a=window.document;(0,Bo.removeScript)(ua.EMBED_SCRIPT_ID,a.body),window&&window.DISQUS&&window.DISQUS.reset({});try{delete window.DISQUS}catch{window.DISQUS=void 0}var i=a.getElementById(ua.THREAD_ID);if(i)for(;i.hasChildNodes();)i.removeChild(i.firstChild);(0,Bo.removeResources)()}},{key:"getDisqusConfig",value:function(a){return function(){var i=this;this.page.identifier=a.identifier,this.page.url=a.url,this.page.title=a.title,this.page.category_id=a.categoryID,this.page.remote_auth_s3=a.remoteAuthS3,this.page.api_key=a.apiKey,a.sso&&(this.sso=a.sso),a.language&&(this.language=a.language),ua.CALLBACKS.forEach(function(s){i.callbacks[s]=[a[s]]})}}},{key:"render",value:function(){var a=this.props;a.shortname,a.config;var i=e3(a,["shortname","config"]);return qh.default.createElement("div",Zu({},i,{id:ua.THREAD_ID}))}}]),r}(qh.default.Component);Ll.DiscussionEmbed=Q0;Q0.propTypes={shortname:Ie.default.string.isRequired,config:Ie.default.shape({identifier:Ie.default.string,url:Ie.default.string,title:Ie.default.string,language:Ie.default.string,categoryID:Ie.default.string,remoteAuthS3:Ie.default.string,apiKey:Ie.default.string,preData:Ie.default.func,preInit:Ie.default.func,onInit:Ie.default.func,onReady:Ie.default.func,afterRender:Ie.default.func,preReset:Ie.default.func,onIdentify:Ie.default.func,beforeComment:Ie.default.func,onNewComment:Ie.default.func,onPaginate:Ie.default.func,sso:Ie.default.shape({name:Ie.default.string,button:Ie.default.string,icon:Ie.default.string,url:Ie.default.string,logout:Ie.default.string,profile_url:Ie.default.string,width:Ie.default.string,height:Ie.default.string})}).isRequired};var Al={};Object.defineProperty(Al,"__esModule",{value:!0});Al.Recommendations=void 0;var Gh=K0(x),da=K0(Wa),Wo=Dr,gi=Xe;function K0(e){return e&&e.__esModule?e:{default:e}}function hs(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hs=function(r){return typeof r}:hs=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hs(e)}function td(){return td=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},td.apply(this,arguments)}function c3(e,t){if(e==null)return{};var r=u3(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u3(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function d3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f3(e,t,r){return t&&Yh(e.prototype,t),r&&Yh(e,r),e}function m3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rd(e,t)}
72function rd(e,t){return rd=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},rd(e,t)}function h3(e){var t=v3();return function(){var r=Qs(e),n;if(t){var a=Qs(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p3(this,n)}}function p3(e,t){return t&&(hs(t)==="object"||typeof t=="function")?t:g3(e)}function g3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Qs(e){return Qs=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Qs(e)}var X0=function(e){m3(r,e);var t=h3(r);function r(){return d3(this,r),t.apply(this,arguments)}return f3(r,[{key:"componentDidMount",value:function(){this.loadInstance()}},{key:"shouldComponentUpdate",value:function(a){return this.props===a?!1:(0,Wo.shallowComparison)(this.props,a)}},{key:"componentDidUpdate",value:function(){this.loadInstance()}},{key:"componentWillUnmount",value:function(){this.cleanInstance()}},{key:"getDisqusConfig",value:function(a){return function(){this.page.identifier=a.identifier,this.page.url=a.url,this.page.title=a.title,this.language=a.language}}},{key:"loadInstance",value:function(){typeof window<"u"&&window.document&&(window.disqus_config=this.getDisqusConfig(this.props.config),window.document.getElementById(gi.RECOMMENDATIONS_SCR
72IPT_ID)?this.reloadInstance():(0,Wo.insertScript)("https://".concat(this.props.shortname,".disqus.com/recommendations.js"),gi.RECOMMENDATIONS_SCRIPT_ID,window.document.body))}},{key:"reloadInstance",value:function(){window&&window.DISQUS_RECOMMENDATIONS&&window.DISQUS_RECOMMENDATIONS.reset({reload:!0})}},{key:"cleanInstance",value:function(){(0,Wo.removeScript)(gi.RECOMMENDATIONS_SCRIPT_ID,window.document.body);try{delete window.DISQUS_RECOMMENDATIONS}catch{window.DISQUS_RECOMMENDATIONS=void 0}var a=window.document.getElementById(gi.RECOMMENDATIONS_ID);if(a)for(;a.hasChildNodes();)a.removeChild(a.firstChild);(0,Wo.removeResources)()}},{key:"render",value:function(){var a=this.props;a.shortname,a.config;var i=c3(a,["shortname","config"]);return Gh.default.createElement("div",td({},i,{id:gi.RECOMMENDATIONS_ID}))}}]),r}(Gh.default.Component);Al.Recommendations=X0;X0.propTypes={shortname:da.default.string.isRequired,config:da.default.shape({identifier:da.default.string,url:da.default.string,title:da.default.string,language:da.default.string})};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"CommentCount",{enumerable:!0,get:function(){return t.CommentCount}}),Object.defineProperty(e,"CommentEmbed",{enumerable:!0,get:function(){return r.CommentEmbed}}),Object.defineProperty(e,"DiscussionEmbed",{enumerable:!0,get:function(){return n.DiscussionEmbed}}),Object.defineProperty(e,"Recommendations",{enumerable:!0,get:function(){return a.Recommendations}}),e.default=void 0;var t=$l,r=jl,n=Ll,a=Al,i={CommentCount:t.CommentCount,CommentEmbed:r.CommentEmbed,DiscussionEmbed:n.DiscussionEmbed,Recommendations:a.Recommendations},s=i;e.default=s})(U0);const J0=({targetDate:e})=>{const t=()=>{const i=864e5-(Date.now()-e);if(i<0)return{hours:0,minutes:0,seconds:0};const s=Math.floor(i%(1e3*60*60*24)/(1e3*60*60)),l=Math.floor(i%(1e3*60*60)/(1e3*60)),c=Math.floor(i%(1e3*60)/1e3);return{hours:s,minutes:l,seconds:c}},[r,n]=x.useState(t);return x.useEffect(()=>{const a=setInterval(()=>{n(t())},1e3);return()=>clearInterval(a)},[e]),d("div",{className:" flex items-center mt-3 -mb-5 justify-center gap-2",children:[o("div",{className:" md:text-lg bg-gray-700",children:"cofre disponible en:"}),d("div",{className:" bg-black px-1 py-0.5 rounded-sm border-gray-500 border",children:[" ",r.hours,":",r.minutes<10?`0${r.minutes}`:r.minutes,":",r.seconds<10?`0${r.seconds}`:r.seconds," "]})]})},Z0=({dato:e,color:t})=>{const r=e??2,[n,a]=x.useState(),i=tr(),[s,l]=x.useState(!1),[c,u]=x.useState(),[f,g]=x.useState(),[m,y]=x.useState(),[b,w]=x.useState();x.useEffect(()=>{localStorage.getItem("tokenCommers")&&ee.get(`${te}/rank/cofres_data`,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(p=>{w(p.data)})},[]);const _=async p=>{l(!0),a(!1),u(),g(!0),p.preventDefault();try{let N=await ee.post(`${te}/rank/gacha_dia`,{},{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}});y(N.data),w({uno_time:N.data.time}),console.log(N.data)}catch(N){a(!0),u(N.response.data.errors[0])}l(!1),g(!1)},v=async p=>{y(!1),g(!1)},h=async p=>{window.scrollTo({top:0}),i("/rank?m=2")};return d("div",{children:[b&&d("div",{children:[" ",864e5-(Date.now()-b.uno_time)>0?o(J0,{targetDate:b.uno_time}):o("div",{className:" flex items-center mt-3 -mb-5 justify-center gap-2",children:o("div",{className:`bg-black ${t?"text-verde-text":"text-vmw"} px-1 py-0.5 rounded-sm border-gray-500 border`,children:" 1 Cofre Disponible "})})]}),!m&&d("div",{className:" flex flex-col items-center justify-center my-5 gap-2",children:[o("img",{className:f?"mb-6 w-3/12 py-8 sm:mb-10 sm:w-1/6 animate-spin":" w-2/6 mb-5 p-2 sm:w-1/6",src:f?"/assets/misteri.jpg":"/assets/cofre_dia.png",alt:""}),!f&&localStorage.getItem("tokenCommers")&&o("button",{disabled:s,onClick:_,className:`cursor-pointer font-medium text-sm sm:-mt-8 -mt-6 ${t?" bg-verde-fin":"bg-vmwc"} text-black w-2/5 py-0.5 sm:w-1/3 text-center`,children:"Abrir (400 pts.)"}),!localStorage.getItem("tokenCommers")&&o("div",{className:"text-center w-full sm:w-1/2 p-2 mb-4 bg-red-100 text-red-800",children:"Debes iniciar sesion para comprar un cofre."}),n&&o("div",{className:"text-center w-full sm:w-1/2 p-2 mb-4 text-sm_ sm:text-base bg-red-100 text-red-800",children:c})]}),m&&d("div",{className:" flex flex-col items-center justify-center my-5 gap-2",children:[o("img",{className:`mb-6 w-1/3 sm:mb-10 sm:w-1/5 mt-2${m.sad==!0?"":Number(m.mostrar.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>19999?" shadow-para_dorado shadow-dorado border-2 border-dorado":Number(m.mostrar.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>9999?" shadow-para_plateado shadow-plata border-2 border-plata":Number(m.mostrar.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>0?" shadow-para_bronce shadow-bronce border-2 border-bronce":""}`,src:m.mostrar.replace(ke,ze),alt:""}),o("div",{className:`text-center text-sm_ sm:text-base w-full sm:w-1/2 py-1 sm:-mt-8 -mt-6 ${m.sad?"bg-red-100 text-red-800":"bg-blue-200 text-blue-800"}`,children:m.text}),o("div",{onClick:v,className:" cursor-pointer font-medium text-sm bg-black text-white w-2/
725 py-0.5 sm:w-1/3 text-center",children:"Volver al cofre"})]}),r==1&&o("div",{className:" flex justify-center",children:o("button",{onClick:h,className:`${t?"bg-verde-text":"bg-vmw"} md:w-auto w-full text-center px-10 py-0.5 -mt-2 rounded-sm text-black`,children:"Ver todos los cofres"})})]})},Me=({color:e,act:t,sec:r})=>o("svg",{xmlns:"http://www.w3.org/2000/svg",className:` -ml-3 transform 73 ${r?"h-8 w-8 ":"md:h-8 md:w-8 h-6 w-6 md:mr-2"} 74 ${t&&(e?"text-verde rotate-180":"text-vmws rotate-180")} 75 ${!t&&(e?"rotate-90 text-verde-text":"rotate-90 text-vmw")}`,viewBox:"0 0 20 20",fill:"currentColor",children:o("path",{fillRule:"evenodd",d:"M14.707 10.707a1 1 0 01-1.414 0L10 6.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})}),x3=({color:e})=>o("section",{children:d("div",{className:"container mx-auto max-w-5xl",children:[d("div",{className:"flex mt-2",children:[o(Me,{color:e}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 mb-1 text-lg",children:"Puntos y Experiencia:"})]}),d("div",{className:" sm:text-base_ leading-customa md:text-lg_ text-sm_",children:[d("div",{className:" mb-2.5",children:["* Podras ganar ",o("span",{className:" font-serif font-semibold",children:" puntos"})," y ",o("span",{className:" font-serif font-semibold",children:" experiencia"})," leyendo, subiendo capitulos, comentando, y logueandote cada dia."]}),d("div",{className:" mb-2.5",children:["* Podras usar tus ",o("span",{className:" font-serif font-semibold",children:" puntos"})," para conseguir cromos virtuales, que podras coleccionar y usar como foto de perfil."]}),d("div",{children:["* A medida que ganes ",o("span",{className:" font-serif font-semibold",children:" experiencia"}),", tu medalla progresara y elevará su nivel:"]}),o("div",{className:" flex items-center w-full justify-center my-2",children:o("img",{className:" md:w-2/3",src:"/assets/elos/elos.jpg",alt:"medalla"})}),d("div",{className:"flex mt-5",children:[o(Me,{color:e}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 mb-1 text-lg",children:"Cromos:"})]}),o("div",{className:" mb-2.5",children:"* Con tus puntos podras comprar cofres, donde podras conseguir cromos."}),d("div",{className:" mb-2.5",children:["* Podras ver todos los cromos existentes ",o(Z,{to:"/all_cromos",className:" font-medium text-blue-500",children:"aqui"}),"."]}),d("div",{className:"flex mt-2",children:[o(Me,{color:e}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 mb-1 text-lg",children:"Gemas:"})]}),d("div",{className:" sm:text-base_ leading-customa md:text-lg_ text-sm_",children:[o("div",{className:" mb-2.5",children:"* Se agrego un nuevo cofrede gemas, con las cuales podras transformar tus cromos por otros que aun no tengas aleatoriamente."}),o("div",{className:" flex items-center w-full justify-center my-2",children:o("img",{className:" md:w-2/3",src:"/assets/banners/baner_222.jpg",alt:""})})]}),d("div",{className:"flex mt-4",children:[o(Me,{color:e}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 mb-1 text-lg",children:"Telegram:"})]}),d("div",{className:" mb-2.5",children:["* Ahora podras vincular tu cuenta de ManhwaWeb con tu ",o("a",{href:"https://t.me/manhwaweb_resurgir",className:" font-medium text-blue-500",children:"TELEGRAM"})," y asi poder abrir tus cofres de manera publica, desde el grupo de telegram de la pagina."]})]}),d("div",{className:"flex mt-4",children:[o(Me,{color:e}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 mb-1 text-lg",children:"Subir Capitulos: "})]}),d("div",{className:" sm:text-base_ leading-customa md:text-lg_ text-sm_",children:[o("div",{className:" mb-2.5",children:"* Al subir capitulos (y estos ser aceptados) ahora ganaras puntos y se subira tu marcador de capitulos subidos que podras ver en tu perfil."}),o("div",{className:" mb-2.5",children:"* Las recompensas se daran de la siguiente manera segun tu grupo:"}),o("div",{className:" mb-2.5",children:"* Uploader, Solo se le daran las recompensas al miembro del grupo que sube el capitulo"}),o("div",{className:" mb-2.5",children:"* Scan, Se le otorgaran las recompensas a todos los miembros del scan"})]})]})}),y3=({color:e})=>
75{const[t,r]=x.useState();x.useState(!1);const[n,a]=x.useState(),[i,s]=x.useState(),[l,c]=x.useState(),[u,f]=x.useState();x.useEffect(()=>{localStorage.getItem("tokenCommers")&&ee.get(`${te}/rank/cofres_data`,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(y=>{console.log(y.data),f(y.data)})},[]);const g=async y=>{r(!1),a(),s(!0),y.preventDefault();try{let b=await ee.post(`${te}/rank/gacha`,{},{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}});c(b.data),f({...u,tres_cantidad:b.data.v,tres_time:b.data.t}),console.log(b.data)}catch(b){r(!0),a(b.response.data.errors[0])}s(!1)},m=async y=>{c(!1),s(!1)};return d("div",{children:[u&&d("div",{children:[" ",u.tres_cantidad=="no_hay"||Date.now()-u.tres_time>864e5||u.tres_cantidad>0?o("div",{className:" flex items-center mt-3 justify-center gap-2",children:d("div",{className:` bg-black ${e?"text-verde-text":"text-vmw"} px-1 py-0.5 rounded-sm border-gray-500 border`,children:[" ",Date.now()-u.tres_time>864e5||u.tres_cantidad=="no_hay"?3:u.tres_cantidad," Cofre Disponible"]})}):o(J0,{targetDate:u.tres_time})]}),!l&&d("div",{className:" flex flex-col items-center justify-center gap-2",children:[o("img",{className:i?"mb-6 w-1/4 mt-16 sm:mb-10 sm:w-1/6 animate-spin":" w-2/3 sm:w-1/2",src:i?"/assets/misteri.jpg":"/assets/cofre.png",alt:""}),!i&&localStorage.getItem("tokenCommers")&&o("button",{onClick:g,className:`cursor-pointer font-medium text-sm sm:-mt-8 -mt-6 ${e?"bg-verde-fin":"bg-vmwc"} text-black w-2/5 py-0.5 sm:w-1/3 text-center`,children:"Abrir (200 pts.)"}),!localStorage.getItem("tokenCommers")&&o("div",{className:"text-center w-full sm:w-1/2 p-2 mb-4 bg-red-100 text-red-800",children:"Debes iniciar sesion para comprar un cofre."}),t&&o("div",{className:"text-center w-full sm:w-1/2 p-2 mb-4 bg-red-100 text-red-800",children:n})]}),l&&d("div",{className:" flex flex-col items-center justify-center my-5 gap-2",children:[o("img",{className:`mb-6 mt-2 w-1/3 sm:mb-10 sm:w-1/4 ${l.sad==!0?"":Number(l.mostrar.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>19999?" shadow-para_dorado shadow-dorado border-2 border-dorado":Number(l.mostrar.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>9999?" shadow-para_plateado shadow-plata border-2 border-plata":Number(l.mostrar.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>0?" shadow-para_bronce shadow-bronce border-2 border-bronce":""}`,src:l.mostrar.replace(ke,ze),alt:""}),o("div",{className:`text-center w-full sm:w-1/2 p-2 sm:-mt-8 -mt-6 ${l.sad?"bg-red-100 text-red-800":"bg-blue-200 text-blue-800"}`,children:l.text}),o("div",{onClick:m,className:" cursor-pointer font-medium text-sm bg-black text-white w-2/
755 py-0.5 sm:w-1/3 text-center",children:"Volver a cofres"})]})]})};var ex={},tx={},Il={},rx={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},r=t;e.default=r})(rx);var w3="Expected a function",Qh=0/0,b3="[object Symbol]",N3=/^\s+|\s+$/g,S3=/^[-+]0x[0-9a-f]+$/i,_3=/^0b[01]+$/i,k3=/^0o[0-7]+$/i,C3=parseInt,E3=typeof So=="object"&&So&&So.Object===Object&&So,O3=typeof self=="object"&&self&&self.Object===Object&&self,P3=E3||O3||Function("return this")(),T3=Object.prototype,M3=T3.toString,R3=Math.max,D3=Math.min,Cc=function(){return P3.Date.now()};function $3(e,t,r){var n,a,i,s,l,c,u=0,f=!1,g=!1,m=!0;if(typeof e!="function")throw new TypeError(w3);t=Kh(t)||0,nd(r)&&(f=!!r.leading,g="maxWait"in r,i=g?R3(Kh(r.maxWait)||0,t):i,m="trailing"in r?!!r.trailing:m);function y(C){var O=n,P=a;return n=a=void 0,u=C,s=e.apply(P,O),s}function b(C){return u=C,l=setTimeout(v,t),f?y(C):s}function w(C){var O=C-c,P=C-u,k=t-O;return g?D3(k,i-P):k}function _(C){var O=C-c,P=C-u;return c===void 0||O>=t||O<0||g&&P>=i}function v(){var C=Cc();if(_(C))return h(C);l=setTimeout(v,w(C))}function h(C){return l=void 0,m&&n?y(C):(n=a=void 0,s)}function p(){l!==void 0&&clearTimeout(l),u=0,n=c=a=l=void 0}function N(){return l===void 0?s:h(Cc())}function S(){var C=Cc(),O=_(C);if(n=arguments,a=this,c=C,O){if(l===void 0)return b(c);if(g)return l=setTimeout(v,t),y(c)}return l===void 0&&(l=setTimeout(v,t)),s}return S.cancel=p,S.flush=N,S}function nd(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function j3(e){return!!e&&typeof e=="object"}function L3(e){return typeof e=="symbol"||j3(e)&&M3.call(e)==b3}function Kh(e){if(typeof e=="number")return e;if(L3(e))return Qh;if(nd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=nd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(N3,"");var r=_3.test(e);return r||k3.test(e)?C3(e.slice(2),r?2:8):S3.test(e)?Qh:+e}var A3=$3,Ha={},I3={get exports(){return Ha},set exports(e){Ha=e}};/*! 76 Copyright (c) 2018 Jed Watson. 77 Licensed under the MIT License (MIT), see 78 http://jedwatson.github.io/classnames 79*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var s=typeof i;if(s==="string"||s==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var l=r.apply(null,i);l&&n.push(l)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var c in i)t.call(i,c)&&i[c]&&n.push(c)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(I3);var q={};Object.defineProperty(q,"__esModule",{value:!0});q.checkSpecKeys=q.checkNavigable=q.changeSlide=q.canUseDOM=q.canGoNext=void 0;q.clamp=nx;q.swipeStart=q.swipeMove=q.swipeEnd=q.slidesOnRight=q.slidesOnLeft=q.slideHandler=q.siblingDirection=q.safePreventDefault=q.lazyStartIndex=q.lazySlidesOnRight=q.lazySlidesOnLeft=q.lazyEndIndex=q.keyHandler=q.initializedState=q.getWidth=q.getTrackLeft=q.getTrackCSS=q.getTrackAnimateCSS=q.getTotalSlides=q.getSwipeDirection=q.getSlideCount=q.getRequiredLazySlides=q.getPreClones=q.getPostClones=q.getOnDemandLazySlides=q.getNavigableIndexes=q.getHeight=q.extractObject=void 0;var z3=U3(x);function U3(e){return e&&e.__esModule?e:{default:e}}function Xh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xh(Object(r),!0).forEach(function(n){F3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xh(Object(r)).forEac
vendor: 17,136 bytes, line 79
79h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nx(e,t,r){return Math.max(t,Math.min(e,r))}var qn=function(t){var r=["onTouchStart","onTouchMove","onWheel"];r.includes(t._reactName)||t.preventDefault()};q.safePreventDefault=qn;var Of=function(t){for(var r=[],n=Pf(t),a=Tf(t),i=n;i<a;i++)t.lazyLoadedList.indexOf(i)<0&&r.push(i);return r};q.getOnDemandLazySlides=Of;var B3=function(t){for(var r=[],n=Pf(t),a=Tf(t),i=n;i<a;i++)r.push(i);return r};q.getRequiredLazySlides=B3;var Pf=function(t){return t.currentSlide-ax(t)};q.lazyStartIndex=Pf;var Tf=function(t){return t.currentSlide+ix(t)};q.lazyEndIndex=Tf;var ax=function(t){return t.centerMode?Math.floor(t.slidesToShow/2)+(parseInt(t.centerPadding)>0?1:0):0};q.lazySlidesOnLeft=ax;var ix=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow};q.lazySlidesOnRight=ix;var Ks=function(t){return t&&t.offsetWidth||0};q.getWidth=Ks;var Mf=function(t){return t&&t.offsetHeight||0};q.getHeight=Mf;var Rf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,a,i,s;return n=t.startX-t.curX,a=t.startY-t.curY,i=Math.atan2(a,n),s=Math.round(i*180/Math.PI),s<0&&(s=360-Math.abs(s)),s<=45&&s>=0||s<=360&&s>=315?"left":s>=135&&s<=225?"right":r===!0?s>=35&&s<=135?"up":"down":"vertical"};q.getSwipeDirection=Rf;var Df=function(t){var r=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(r=!1),r};q.canGoNext=Df;var W3=function(t,r){var n={};return r.forEach(function(a){return n[a]=t[a]}),n};q.extractObject=W3;var H3=function(t){var r=z3.default.Children.count(t.children),n=t.listRef,a=Math.ceil(Ks(n)),i=t.trackRef&&t.trackRef.node,s=Math.ceil(Ks(i)),l;if(t.vertical)l=a;else{var c=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(c*=a/100),l=Math.ceil((a-c)/t.slidesToShow)}var u=n&&Mf(n.querySelector('[data-index="0"]')),f=u*t.slidesToShow,g=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(g=r-1-t.initialSlide);var m=t.lazyLoadedList||[],y=Of(qe(qe({},t),{},{currentSlide:g,lazyLoadedList:m}));m=m.concat(y);var b={slideCount:r,slideWidth:l,listWidth:a,trackWidth:s,currentSlide:g,slideHeight:u,listHeight:f,lazyLoadedList:m};return t.autoplaying===null&&t.autoplay&&(b.autoplaying="playing"),b};q.initializedState=H3;var q3=function(t){var r=t.waitForAnimate,n=t.animating,a=t.fade,i=t.infinite,s=t.index,l=t.slideCount,c=t.lazyLoad,u=t.currentSlide,f=t.centerMode,g=t.slidesToScroll,m=t.slidesToShow,y=t.useCSS,b=t.lazyLoadedList;if(r&&n)return{};var w=s,_,v,h,p={},N={},S=i?s:nx(s,0,l-1);if(a){if(!i&&(s<0||s>=l))return{};s<0?w=s+l:s>=l&&(w=s-l),c&&b.indexOf(w)<0&&(b=b.concat(w)),p={animating:!0,currentSlide:w,lazyLoadedList:b,targetSlide:w},N={animating:!1,targetSlide:w}}else _=w,w<0?(_=w+l,i?l%g!==0&&(_=l-l%g):_=0):!Df(t)&&w>u?w=_=u:f&&w>=l?(w=i?l:l-1,_=i?0:l-1):w>=l&&(_=w-l,i?l%g!==0&&(_=0):_=l-m),!i&&w+m>=l&&(_=l-m),v=ao(qe(qe({},t),{},{slideIndex:w})),h=ao(qe(qe({},t),{},{slideIndex:_})),i||(v===h&&(w=_),v=h),c&&(b=b.concat(Of(qe(qe({},t),{},{currentSlide:w})))),y?(p={animating:!0,currentSlide:_,trackStyle:$f(qe(qe({},t),{},{left:v})),lazyLoadedList:b,targetSlide:S},N={animating:!1,currentSlide:_,trackStyle:no(qe(qe({},t),{},{left:h})),swipeLeft:null,targetSlide:S}):p={currentSlide:_,trackStyle:no(qe(qe({},t),{},{left:h})),lazyLoadedList:b,targetSlide:S};return{state:p,nextState:N}};q.slideHandler=q3;var V3=function(t,r){var n,a,i,s,l,c=t.slidesToScroll,u=t.slidesToShow,f=t.slideCount,g=t.currentSlide,m=t.targetSlide,y=t.lazyLoad,b=t.infinite;if(s=f%c!==0,n=s?0:(f-g)%c,r.message==="previous")i=n===0?c:u-n,l=g-i,y&&!b&&(a=g-i,l=a===-1?f-1:a),b||(l=m-c);else if(r.message==="next")i=n===0?c:n,l=g+i,y&&!b&&(l=(g+c)%f+n),b||(l=m+c);else if(r.message==="dots")l=r.index*r.slidesToScroll;else if(r.message==="children"){if(l=r.index,b){var w=cx(qe(qe({},t),{},{targetSlide:l}));l>r.currentSlide&&w==="left"?l=l-f:l<r.currentSlide&&w==="right"&&(l=l+f)}}else r.message==="index"&&(l=Number(r.index));return l};q.changeSlide=V3;var G3=function(t,r,n){return t.target.tagName.match("TEXTAREA|INPUT|SELECT")||!r?"":t.keyCode===37?n?"next":"previous":t.keyCode===39?n?"previous":"next":""};q.keyHandler=G3;var Y3=function(t,r,n){return t.target.tagName==="IMG"&&qn(t),!r||!n&&t.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:t.touches?t.touches[0].pageX:t.clientX,startY:t.touches?t.touches[0].pageY:t.clientY,curX:t.touches?t.touches[0].pageX:t.clientX,curY:t.touches?t.touches[0].pageY:t.clientY}}};q.swipeStart=Y3;var Q3=function(t,r){var n=r.scrolling,a=r.animating,i=r.vertical,s=r.swipeToSlide,l=r.verticalSwiping,c=r.rtl,u=r.currentSlide,f=r.edgeFriction,g=r.edgeDragged,m=r.onEdge,y=r.swiped,b=r.swiping,w=r.slideCount,_=r.slidesToScroll,v=r.infinite,h=r.touchObject,p=r.swipeEvent,N=r.listHeight,S=r.listWidth;if(!n){if(a)return qn(t);i&&s&&l&&qn(t);var C,O={},P=ao(r);h.curX=t.touches?t.touches[0].pageX:t.clientX,h.curY=t.touches?t.touches[0].pageY:t.clientY,h.swipeLength=Math.round(Math.sqrt(Math.pow(h.curX-h.startX,2)));var k=Math.round(Math.sqrt(Math.pow(h.curY-h.startY,2)));if(!l&&!b&&k>10)return{scrolling:!0};l&&(h.swipeLength=k);var E=(c?-1:1)*(h.curX>h.startX?1:-1);l&&(E=h.curY>h.startY?1:-1);var M=Math.ceil(w/_),T=Rf(r.touchObject,l),j=h.swipeLength;return v||(u===0&&(T==="right"||T==="down")||u+1>=M&&(T==="left"||T==="up")||!Df(r)&&(T==="left"||T==="up"))&&(j=h.swipeLength*f,g===!1&&m&&(m(T),O.edgeDragged=!0)),!y&&p&&(p(T),O.swiped=!0),i?C=P+j*(N/S)*E:c?C=P-j*E:C=P+j*E,l&&(C=P+j*E),O=qe(qe({},O),{},{touchObject:h,swipeLeft:C,trackStyle:no(qe(qe({},r),{},{left:C}))}),Math.abs(h.curX-h.startX)<Math.abs(h.curY-h.startY)*.8||h.swipeLength>10&&(O.swiping=!0,qn(t)),O}};q.swipeMove=Q3;var K3=function(t,r){var n=r.dragging,a=r.swipe,i=r.touchObject,s=r.listWidth,l=r.touchThreshold,c=r.verticalSwiping,u=r.listHeight,f=r.swipeToSlide,g=r.scrolling,m=r.onSwipe,y=r.targetSlide,b=r.currentSlide,w=r.infinite;if(!n)return a&&qn(t),{};var _=c?u/l:s/l,v=Rf(i,c),h={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(g||!i.swipeLength)return h;if(i.swipeLength>_){qn(t),m&&m(v);var p,N,S=w?b:y;switch(v){case"left":case"up":N=S+id(r),p=f?ad(r,N):N,h.currentDirection=0;break;case"right":case"down":N=S-id(r),p=f?ad(r,N):N,h.currentDirection=1;break;default:p=S}h.triggerSlideHandler=p}else{var C=ao(r);h.trackStyle=$f(qe(qe({},r),{},{left:C}))}return h};q.swipeEnd=K3;var ox=function(t){for(var r=t.infinite?t.slideCount*2:t.slideCount,n=t.infinite?t.slidesToShow*-1:0,a=t.infinite?t.slidesToShow*-1:0,i=[];n<r;)i.push(n),n=a+t.slidesToScroll,a+=Math.min(t.slidesToScroll,t.slidesToShow);return i};q.getNavigableIndexes=ox;var ad=function(t,r){var n=ox(t),a=0;if(r>n[n.length-1])r=n[n.length-1];else for(var i in n){if(r<n[i]){r=a;break}a=n[i]}return r};q.checkNavigable=ad;var id=function(t){var r=t.centerMode?t.slideWidth*Math.floor(t.slidesToShow/2):0;if(t.swipeToSlide){var n,a=t.listRef,i=a.querySelectorAll&&a.querySelectorAll(".slick-slide")||[];if(Array.from(i).every(function(c){if(t.vertical){if(c.offsetTop+Mf(c)/2>t.swipeLeft*-1)return n=c,!1}else if(c.offsetLeft-r+Ks(c)/2>t.swipeLeft*-1)return n=c,!1;return!0}),!n)return 0;var s=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,l=Math.abs(n.dataset.index-s)||1;return l}else return t.slidesToScroll};q.getSlideCount=id;var zl=function(t,r){return r.reduce(function(n,a){return n&&t.hasOwnProperty(a)},!0)?null:console.error("Keys Missing:",t)};q.checkSpecKeys=zl;var no=function(t){zl(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r,n,a=t.slideCount+2*t.slidesToShow;t.vertical?n=a*t.slideHeight:r=lx(t)*t.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var s=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",l=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",c=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";i=qe(qe({},i),{},{WebkitTransform:s,transform:l,msTransform:c})}else t.vertical?i.top=t.left:i.left=t.left;return t.fade&&(i={opacity:1}),r&&(i.width=r),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?i.marginTop=t.left+"px":i.marginLeft=t.left+"px"),i};q.getTrackCSS=no;var $f=function(t){zl(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var r=no(t);return t.useTransform?(r.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,r.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?r.transition="top "+t.speed+"ms "+t.cssEase:r.transition="left "+t.speed+"ms "+t.cssEase,r};q.getTrackAnimateCSS=$f;var ao=function(t){if(t.unslick)return 0;zl(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var r=t.slideIndex,n=t.trackRef,a=t.infinite,i=t.centerMode,s=t.slideCount,l=t.slidesToShow,c=t.slidesToScroll,u=t.slideWidth,f=t.listWidth,g=t.variableWidth,m=t.slideHeight,y=t.fade,b=t.vertical,w=0,_,v,h=0;if(y||t.slideCount===1)return 0;var p=0;if(a?(p=-$i(t),s%c!==0&&r+c>s&&(p=-(r>s?l-(r-s):s%c)),i&&(p+=parseInt(l/2))):(s%c!==0&&r+c>s&&(p=l-s%c),i&&(p=parseInt(l/2))),w=p*u,h=p*m,b?_=r*m*-1+h:_=r*u*-1+w,g===!0){var N,S=n&&n.node;if(N=r+$i(t),v=S&&S.childNodes[N],_=v?v.offsetLeft*-1:0,i===!0){N=a?r+$i(t):r,v=S&&S.children[N],_=0;for(var C=0;C<N;C++)_-=S&&S.children[C]&&S.children[C].offsetWidth;_-=parseInt(t.centerPadding),_+=v&&(f-v.offsetWidth)/2}}return _};q.getTrackLeft=ao;var $i=function(t){return t.unslick||!t.infinite?0:t.variableWidth?t.slideCount:t.slidesToShow+(t.centerMode?1:0)};q.getPreClones=$i;var sx=function(t){return t.unslick||!t.infinite?0:t.slideCount};q.getPostClones=sx;var lx=function(t){return t.slideCount===1?1:$i(t)+t.slideCount+sx(t)};q.getTotalSlides=lx;var cx=function(t){return t.targetSlide>t.currentSlide?t.targetSlide>t.currentSlide+ux(t)?"left":"right":t.targetSlide<t.currentSlide-dx(t)?"right":"left"};q.siblingDirection=cx;var ux=function(t){var r=t.slidesToShow,n=t.centerMode,a=t.rtl,i=t.centerPadding;if(n){var s=(r-1)/2+1;return parseInt(i)>0&&(s+=1),a&&r%2===0&&(s+=1),s}return a?0:r-1};q.slidesOnRight=ux;var dx=function(t){var r=t.slidesToShow,n=t.centerMode,a=t.rtl,i=t.centerPadding;if(n){var s=(r-1)/2+1;return parseInt(i)>0&&(s+=1),!a&&r%2===0&&(s+=1),s}return a?r-1:0};q.slidesOnLeft=dx;var X3=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};q.canUseDOM=X3;var Ul={};function od(e){return od=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},od(e)}Object.defineProperty(Ul,"__esModule",{value:!0});Ul.Track=void 0;var cn=fx(x),Ec=fx(Ha),Oc=q;function fx(e){return e&&e.__esModule?e:{default:e}}function sd(){return sd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sd.apply(this,arguments)}function J3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Z3(e,t,r){return t&&Jh(e.prototype,t),r&&Jh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ek(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ld(e,t)}function ld(e,t){return ld=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},ld(e,t)}function tk(e){var t=nk();return function(){var n=Xs(e),a;if(t){var i=Xs(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return rk(this,a)}}function rk(e,t){if(t&&(od(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cd(e)}function cd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nk(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xs(e){return Xs=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Xs(e)}function Zh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zh(Object(r),!0).forEach(function(n){ud(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ud(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pc=function(t){var r,n,a,i,s;t.rtl?s=t.slideCount-1-t.index:s=t.index,a=s<0||s>=t.slideCount,t.centerMode?(i=Math.floor(t.slidesToShow/2),n=(s-t.currentSlide)%t.slideCount===0,s>t.currentSlide-i-1&&s<=t.currentSlide+i&&(r=!0)):r=t.currentSlide<=s&&s<t.currentSlide+t.slidesToShow;var l;t.targetSlide<0?l=t.targetSlide+t.slideCount:t.targetSlide>=t.slideCount?l=t.targetSlide-t.slideCount:l=t.targetSlide;var c=s===l;return{"slick-slide":!0,"slick-active":r,"slick-center":n,"slick-cloned":a,"slick-current":c}},ak=function(t){var r={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(r.width=t.slideWidth),t.fade&&(r.position="relative",t.vertical?r.top=-t.index*parseInt(t.slideHeight):r.left=-t.index*parseInt(t.slideWidth),r.opacity=t.currentSlide===t.index?1:0,t.useCSS&&(r.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),r},Tc=function(t,r){return t.key||r},ik=function(t){var r,n=[],a=[],i=[],s=cn.default.Children.count(t.children),l=(0,Oc.lazyStartIndex)(t),c=(0,Oc.lazyEndIndex)(t);return cn.default.Children.forEach(t.children,function(u,f){var g,m={message:"children",index:f,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(f)>=0?g=u:g=cn.default.createElement("div",null);var y=ak(Ut(Ut({},t),{},{index:f})),b=g.props.className||"",w=Pc(Ut(Ut({},t),{},{index:f}));if(n.push(cn.default.cloneElement(g,{key:"original"+Tc(g,f),"data-index":f,className:(0,Ec.default)(w,b),tabIndex:"-1","aria-hidden":!w["slick-active"],style:Ut(Ut({outline:"none"},g.props.style||{}),y),onClick:function(h){g.props&&g.props.onClick&&g.props.onClick(h),t.focusOnSelect&&t.focusOnSelect(m)}})),t.infinite&&t.fade===!1){var _=s-f;_<=(0,Oc.getPreClones)(t)&&s!==t.slidesToShow&&(r=-_,r>=l&&(g=u),w=Pc(Ut(Ut({},t),{},{index:r})),a.push(cn.default.cloneElement(g,{key:"precloned"+Tc(g,r),"data-index":r,tabIndex:"-1",className:(0,Ec.default)(w,b),"aria-hidden":!w["slick-active"],style:Ut(Ut({},g.props.style||{}),y),onClick:function(h){g.props&&g.props.onClick&&g.props.onClick(h),t.focusOnSelect&&t.focusOnSelect(m)}}))),s!==t.slidesToShow&&(r=s+f,r<c&&(g=u),w=Pc(Ut(Ut({},t),{},{index:r})),i.push(cn.default.cloneElement(g,{key:"postcloned"+Tc(g,r),"data-index":r,tabIndex:"-1",className:(0,Ec.default)(w,b),"aria-hidden":!w["slick-active"],style:Ut(Ut({},g.props.style||{}),y),onClick:function(h){g.props&&g.props.onClick&&g.props.onClick(h),t.focusOnSelect&&t.focusOnSelect(m)}})))}}),t.rtl?a.concat(n,i).reverse():a.concat(n,i)},ok=function(e){ek(r,e);var t=tk(r);function r(){var n;J3(this,r);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=t.call.apply(t,[this].concat(i)),ud(cd(n),"node",null),ud(cd(n),"handleRef",function(l){n.node=l}),n}return Z3(r,[{key:"render",value:function(){var a=ik(this.props),i=this.props,s=i.onMouseEnter,l=i.onMouseOver,c=i.onMouseLeave,u={onMouseEnter:s,onMouseOver:l,onMouseLeave:c};return cn.default.createElement("div",sd({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},u),a)}}]),r}(cn.default.PureComponent);Ul.Track=ok;var Fl={};function dd(e){return dd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dd(e)}
79Object.defineProperty(Fl,"__esModule",{value:!0});Fl.Dots=void 0;var Ho=mx(x),sk=mx(Ha),ep=q;function mx(e){return e&&e.__esModule?e:{default:e}}function tp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function lk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tp(Object(r),!0).forEach(function(n){ck(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ck(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function dk(e,t,r){return t&&rp(e.prototype,t),r&&rp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fd(e,t)}function fd(e,t){return fd=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},fd(e,t)}function mk(e){var t=gk();return function(){var n=Js(e),a;if(t){var i=Js(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return hk(this,a)}}function hk(e,t){if(t&&(dd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pk(e)}function pk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gk(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Js(e){return Js=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Js(e)}var vk=function(t){var r;return t.infinite?r=Math.ceil(t.slideCount/t.slidesToScroll):r=Math.ceil((t.slideCount-t.slidesToShow)/t.slidesToScroll)+1,r},xk=function(e){fk(r,e);var t=mk(r);function r(){return uk(this,r),t.apply(this,arguments)}return dk(r,[{key:"clickHandler",value:function(a,i){i.preventDefault(),this.props.clickHandler(a)}},{key:"render",value:function(){for(var a=this.props,i=a.onMouseEnter,s=a.onMouseOver,l=a.onMouseLeave,c=a.infinite,u=a.slidesToScroll,f=a.slidesToShow,g=a.slideCount,m=a.currentSlide,y=vk({slideCount:g,slidesToScroll:u,slidesToShow:f,infinite:c}),b={onMouseEnter:i,onMouseOver:s,onMouseLeave:l},w=[],_=0;_<y;_++){var v=(_+1)*u-1,h=c?v:(0,ep.clamp)(v,0,g-1),p=h-(u-1),N=c?p:(0,ep.clamp)(p,0,g-1),S=(0,sk.default)({"slick-active":c?m>=N&&m<=h:m===N}),C={message:"dots",index:_,slidesToScroll:u,currentSlide:m},O=this.clickHandler.bind(this,C);w=w.concat(Ho.default.createElement("li",{key:_,className:S},Ho.default.cloneElement(this.props.customPaging(_),{onClick:O})))}return Ho.default.cloneElement(this.props.appendDots(w),lk({className:this.props.dotsClass},b))}}]),r}(Ho.default.PureComponent);Fl.Dots=xk;var qa={};function md(e){return md=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},md(e)}Object.defineProperty(qa,"__esModule",{value:!0});qa.PrevArrow=qa.NextArrow=void 0;var $a=px(x),hx=px(Ha),yk=q;function px(e){return e&&e.__esModule?e:{default:e}}function Zs(){return Zs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
79for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zs.apply(this,arguments)}function np(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function el(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?np(Object(r),!0).forEach(function(n){wk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):np(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wk(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ap(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vx(e,t,r){return t&&ap(e.prototype,t),r&&ap(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hd(e,t)}function hd(e,t){return hd=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},hd(e,t)}function yx(e){var t=Sk();return function(){var n=tl(e),a;if(t){var i=tl(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return bk(this,a)}}function bk(e,t){if(t&&(md(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nk(e)}function Nk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sk(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tl(e){return tl=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},tl(e)}var _k=function(e){xx(r,e);var t=yx(r);function r(){return gx(this,r),t.apply(this,arguments)}return vx(r,[{key:"clickHandler",value:function(a,i){i&&i.preventDefault(),this.props.clickHandler(a,i)}},{key:"render",value:function(){var a={"slick-arrow":!0,"slick-prev":!0},i=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(a["slick-disabled"]=!0,i=null);var s={key:"0","data-role":"none",className:(0,hx.default)(a),style:{display:"block"},onClick:i},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},c;return this.props.prevArrow?c=$a.default.cloneElement(this.props.prevArrow,el(el({},s),l)):c=$a.default.createElement("button",Zs({key:"0",type:"button"},s)," ","Previous"),c}}]),r}($a.default.PureComponent);qa.PrevArrow=_k;var kk=function(e){xx(r,e);var t=yx(r);function r(){return gx(this,r),t.apply(this,arguments)}return vx(r,[{key:"clickHandler",value:function(a,i){i&&i.preventDefault(),this.props.clickHandler(a,i)}},{key:"render",value:function(){var a={"slick-arrow":!0,"slick-next":!0},i=this.clickHandler.bind(this,{message:"next"});(0,yk.canGoNext)(this.props)||(a["slick-disabled"]=!0,i=null);var s={key:"1","data-role":"none",className:(0,hx.default)(a),style:{display:"block"},onClick:i},l={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},c;return this.props.nextArrow?c=$a.default.cloneElement(this.props.nextArrow,el(el({},s),l)):c=$a.default.createElement("button",Zs({key:"1",type:"button"},s)," ","Next"),c}}]),r}($a.default.PureComponent);qa.NextArrow=kk;var wx=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,i){return a[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,i=this.__entries__;a<i.length;a++){var s=i[a];r.call(n,s[1],s[0])}},t}()}(),pd=typeof window<"u"&&typeof document<"u"&&window.document===document,rl=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Ck=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(rl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Ek=2;function Ok(e,t){var r=!1,n=!1,a=0;function i(){r&&(r=!1,e()),n&&l()}function s(){Ck(i)}function l(){var c=Date.now();if(r){if(c-a<Ek)return;n=!0}else r=!0,n=!1,setTimeout(s,t);a=c}return l}var Pk=20,Tk=["top","right","bottom","left","width","height","size","weight"],Mk=typeof MutationObserver<"u",Rk=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Ok(this.refresh.bind(this),Pk)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!pd||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Mk?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!pd||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=Tk.some(function(i){return!!~n.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
vendor: 4,478 bytes, line 79
79w e),this.instance_},e.instance_=null,e}(),bx=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Va=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||rl},Nx=Bl(0,0,0,0);function nl(e){return parseFloat(e)||0}function ip(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var i=e["border-"+a+"-width"];return n+nl(i)},0)}function Dk(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var i=a[n],s=e["padding-"+i];r[i]=nl(s)}return r}function $k(e){var t=e.getBBox();return Bl(0,0,t.width,t.height)}function jk(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Nx;var n=Va(e).getComputedStyle(e),a=Dk(n),i=a.left+a.right,s=a.top+a.bottom,l=nl(n.width),c=nl(n.height);if(n.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=ip(n,"left","right")+i),Math.round(c+s)!==r&&(c-=ip(n,"top","bottom")+s)),!Ak(e)){var u=Math.round(l+i)-t,f=Math.round(c+s)-r;Math.abs(u)!==1&&(l-=u),Math.abs(f)!==1&&(c-=f)}return Bl(a.left,a.top,l,c)}var Lk=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Va(e).SVGGraphicsElement}:function(e){return e instanceof Va(e).SVGElement&&typeof e.getBBox=="function"}}();function Ak(e){return e===Va(e).document.documentElement}function Ik(e){return pd?Lk(e)?$k(e):jk(e):Nx}function zk(e){var t=e.x,r=e.y,n=e.width,a=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(i.prototype);return bx(s,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),s}function Bl(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Uk=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Bl(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Ik(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Fk=function(){function e(t,r){var n=zk(r);bx(this,{target:t,contentRect:n})}return e}(),Bk=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new wx,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Va(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Uk(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Va(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Fk(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Sx=typeof WeakMap<"u"?new WeakMap:new wx,_x=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Rk.getInstance(),n=new Bk(t,r,this);Sx.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){_x.prototype[e]=function(){var t;return(t=Sx.get(this))[e].apply(t,arguments)}});var Wk=function(){return typeof rl.ResizeObserver<"u"?rl.ResizeObserver:_x}();const Hk=Object.freeze(Object.defineProperty({__proto__:null,default:Wk},Symbol.toStringTag,{value:"Module"})),qk=Lx(Hk);
vendor: 17,262 bytes, line 79
79Object.defineProperty(Il,"__esModule",{value:!0});Il.InnerSlider=void 0;var Mt=xo(x),Vk=xo(rx),Gk=xo(A3),Yk=xo(Ha),Ke=q,Qk=Ul,Kk=Fl,op=qa,Xk=xo(qk);function xo(e){return e&&e.__esModule?e:{default:e}}function al(e){return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function il(){return il=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},il.apply(this,arguments)}function Jk(e,t){if(e==null)return{};var r=Zk(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zk(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function sp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sp(Object(r),!0).forEach(function(n){be(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tC(e,t,r){return t&&lp(e.prototype,t),r&&lp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gd(e,t)}function gd(e,t){return gd=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},gd(e,t)}function nC(e){var t=iC();return function(){var n=ol(e),a;if(t){var i=ol(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return aC(this,a)}}function aC(e,t){if(t&&(al(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return we(e)}function we(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ol(e){return ol=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ol(e)}function be(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var oC=function(e){rC(r,e);var t=nC(r);function r(n){var a;eC(this,r),a=t.call(this,n),be(we(a),"listRefHandler",function(s){return a.list=s}),be(we(a),"trackRefHandler",function(s){return a.track=s}),be(we(a),"adaptHeight",function(){if(a.props.adaptiveHeight&&a.list){var s=a.list.querySelector('[data-index="'.concat(a.state.currentSlide,'"]'));a.list.style.height=(0,Ke.getHeight)(s)+"px"}}),be(we(a),"componentDidMount",function(){if(a.props.onInit&&a.props.onInit(),a.props.lazyLoad){var s=(0,Ke.getOnDemandLazySlides)(ce(ce({},a.props),a.state));s.length>0&&(a.setState(function(c){return{lazyLoadedList:c.lazyLoadedList.concat(s)}}),a.props.onLazyLoad&&a.props.onLazyLoad(s))}var l=ce({listRef:a.list,trackRef:a.track},a.props);a.updateState(l,!0,function(){a.adaptHeight(),a.props.autoplay&&a.autoPlay("update")}),a.props.lazyLoad==="progressive"&&(a.lazyLoadTimer=setInterval(a.progressiveLazyLoad,1e3)),a.ro=new Xk.default(function(){a.state.animating?(a.onWindowResized(!1),a.callbackTimers.push(setTimeout(function(){return a.onWindowResized()},a.props.speed))):a.onWindowResized()}),a.ro.observe(a.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(c){c.onfocus=a.props.pauseOnFocus?a.onSlideFocus:null,c.onblur=a.props.pauseOnFocus?a.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",a.onWindowResized):window.attachEvent("onresize",a.onWindowResized)}),be(we(a),"componentWillUnmount",function(){a.animationEndCallback&&clearTimeout(a.animationEndCallback),a.lazyLoadTimer&&clearInterval(a.lazyLoadTimer),a.callbackTimers.length&&(a.callbackTimers.forEach(function(s){return clearTimeout(s)}),a.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",a.onWindowResized):window.detachEvent("onresize",a.onWindowResized),a.autoplayTimer&&clearInterval(a.autoplayTimer),a.ro.disconnect()}),be(we(a),"componentDidUpdate",function(s){if(a.checkImagesLoad(),a.props.onReInit&&a.props.onReInit(),a.props.lazyLoad){var l=(0,Ke.getOnDemandLazySlides)(ce(ce({},a.props),a.state));l.length>0&&(a.setState(function(f){return{lazyLoadedList:f.lazyLoadedList.concat(l)}}),a.props.onLazyLoad&&a.props.onLazyLoad(l))}a.adaptHeight();var c=ce(ce({listRef:a.list,trackRef:a.track},a.props),a.state),u=a.didPropsChange(s);u&&a.updateState(c,u,function(){a.state.currentSlide>=Mt.default.Children.count(a.props.children)&&a.changeSlide({message:"index",index:Mt.default.Children.count(a.props.children)-a.props.slidesToShow,currentSlide:a.state.currentSlide}),a.props.autoplay?a.autoPlay("update"):a.pause("paused")})}),be(we(a),"onWindowResized",function(s){a.debouncedResize&&a.debouncedResize.cancel(),a.debouncedResize=(0,Gk.default)(function(){return a.resizeWindow(s)},50),a.debouncedResize()}),be(we(a),"resizeWindow",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,l=Boolean(a.track&&a.track.node);if(l){var c=ce(ce({listRef:a.list,trackRef:a.track},a.props),a.state);a.updateState(c,s,function(){a.props.autoplay?a.autoPlay("update"):a.pause("paused")}),a.setState({animating:!1}),clearTimeout(a.animationEndCallback),delete a.animationEndCallback}}),be(we(a),"updateState",function(s,l,c){var u=(0,Ke.initializedState)(s);s=ce(ce(ce({},s),u),{},{slideIndex:u.currentSlide});var f=(0,Ke.getTrackLeft)(s);s=ce(ce({},s),{},{left:f});var g=(0,Ke.getTrackCSS)(s);(l||Mt.default.Children.count(a.props.children)!==Mt.default.Children.count(s.children))&&(u.trackStyle=g),a.setState(u,c)}),be(we(a),"ssrInit",function(){if(a.props.variableWidth){var s=0,l=0,c=[],u=(0,Ke.getPreClones)(ce(ce(ce({},a.props),a.state),{},{slideCount:a.props.children.length})),f=(0,Ke.getPostClones)(ce(ce(ce({},a.props),a.state),{},{slideCount:a.props.children.length}));a.props.children.forEach(function(O){c.push(O.props.style.width),s+=O.props.style.width});for(var g=0;g<u;g++)l+=c[c.length-1-g],s+=c[c.length-1-g];for(var m=0;m<f;m++)s+=c[m];for(var y=0;y<a.state.currentSlide;y++)l+=c[y];var b={width:s+"px",left:-l+"px"};if(a.props.centerMode){var w="".concat(c[a.state.currentSlide],"px");b.left="calc(".concat(b.left," + (100% - ").concat(w,") / 2 ) ")}return{trackStyle:b}}var _=Mt.default.Children.count(a.props.children),v=ce(ce(ce({},a.props),a.state),{},{slideCount:_}),h=(0,Ke.getPreClones)(v)+(0,Ke.getPostClones)(v)+_,p=100/a.props.slidesToShow*h,N=100/h,S=-N*((0,Ke.getPreClones)(v)+a.state.currentSlide)*p/100;a.props.centerMode&&(S+=(100-N*p/100)/2);var C={width:p+"%",left:S+"%"};return{slideWidth:N+"%",trackStyle:C}}),be(we(a),"checkImagesLoad",function(){var s=a.list&&a.list.querySelectorAll&&a.list.querySelectorAll(".slick-slide img")||[],l=s.length,c=0;Array.prototype.forEach.call(s,function(u){var f=function(){return++c&&c>=l&&a.onWindowResized()};if(!u.onclick)u.onclick=function(){return u.parentNode.focus()};else{var g=u.onclick;u.onclick=function(){g(),u.parentNode.focus()}}u.onload||(a.props.lazyLoad?u.onload=function(){a.adaptHeight(),a.callbackTimers.push(setTimeout(a.onWindowResized,a.props.speed))}:(u.onload=f,u.onerror=function(){f(),a.props.onLazyLoadError&&a.props.onLazyLoadError()}))})}),be(we(a),"progressiveLazyLoad",function(){for(var s=[],l=ce(ce({},a.props),a.state),c=a.state.currentSlide;c<a.state.slideCount+(0,Ke.getPostClones)(l);c++)if(a.state.lazyLoadedList.indexOf(c)<0){s.push(c);break}for(var u=a.state.currentSlide-1;u>=-(0,Ke.getPreClones)(l);u--)if(a.state.lazyLoadedList.indexOf(u)<0){s.push(u);break}s.length>0?(a.setState(function(f){return{lazyLoadedList:f.lazyLoadedList.concat(s)}}),a.props.onLazyLoad&&a.props.onLazyLoad(s)):a.lazyLoadTimer&&(clearInterval(a.lazyLoadTimer),delete a.lazyLoadTimer)}),be(we(a),"slideHandler",function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=a.props,u=c.asNavFor,f=c.beforeChange,g=c.onLazyLoad,m=c.speed,y=c.afterChange,b=a.state.currentSlide,w=(0,Ke.slideHandler)(ce(ce(ce({index:s},a.props),a.state),{},{trackRef:a.track,useCSS:a.props.useCSS&&!l})),_=w.state,v=w.nextState;if(_){f&&f(b,_.currentSlide);var h=_.lazyLoadedList.filter(function(p){return a.state.lazyLoadedList.indexOf(p)<0});g&&h.length>0&&g(h),!a.props.waitForAnimate&&a.animationEndCallback&&(clearTimeout(a.animationEndCallback),y&&y(b),delete a.animationEndCallback),a.setState(_,function(){u&&a.asNavForIndex!==s&&(a.asNavForIndex=s,u.innerSlider.slideHandler(s)),v&&(a.animationEndCallback=setTimeout(function(){var p=v.animating,N=Jk(v,["animating"]);a.setState(N,function(){a.callbackTimers.push(setTimeout(function(){return a.setState({animating:p})},10)),y&&y(_.currentSlide),delete a.animationEndCallback})},m))})}}),be(we(a),"changeSlide",function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=ce(ce({},a.props),a.state),u=(0,Ke.changeSlide)(c,s);if(!(u!==0&&!u)&&(l===!0?a.slideHandler(u,l):a.slideHandler(u),a.props.autoplay&&a.autoPlay("update"),a.props.focusOnSelect)){var f=a.list.querySelectorAll(".slick-current");f[0]&&f[0].focus()}}),be(we(a),"clickHandler",function(s){a.clickable===!1&&(s.stopPropagation(),s.preventDefault()),a.clickable=!0}),be(we(a),"keyHandler",function(s){var l=(0,Ke.keyHandler)(s,a.props.accessibility,a.props.rtl);l!==""&&a.changeSlide({message:l})}),be(we(a),"selectHandler",function(s){a.changeSlide(s)}),be(we(a),"disableBodyScroll",function(){var s=function(c){c=c||window.event,c.preventDefault&&c.preventDefault(),c.returnValue=!1};window.ontouchmove=s}),be(we(a),"enableBodyScroll",function(){window.ontouchmove=null}),be(we(a),"swipeStart",function(s){a.props.verticalSwiping&&a.disableBodyScroll();var l=(0,Ke.swipeStart)(s,a.props.swipe,a.props.draggable);l!==""&&a.setState(l)}),be(we(a),"swipeMove",function(s){var l=(0,Ke.swipeMove)(s,ce(ce(ce({},a.props),a.state),{},{trackRef:a.track,listRef:a.list,slideIndex:a.state.currentSlide}));l&&(l.swiping&&(a.clickable=!1),a.setState(l))}),be(we(a),"swipeEnd",function(s){var l=(0,Ke.swipeEnd)(s,ce(ce(ce({},a.props),a.state),{},{trackRef:a.track,listRef:a.list,slideIndex:a.state.currentSlide}));if(l){var c=l.triggerSlideHandler;delete l.triggerSlideHandler,a.setState(l),c!==void 0&&(a.slideHandler(c),a.props.verticalSwiping&&a.enableBodyScroll())}}),be(we(a),"touchEnd",function(s){a.swipeEnd(s),a.clickable=!0}),be(we(a),"slickPrev",function(){a.callbackTimers.push(setTimeout(function(){return a.changeSlide({message:"previous"})},0))}),be(we(a),"slickNext",function(){a.callbackTimers.push(setTimeout(function(){return a.changeSlide({message:"next"})},0))}),be(we(a),"slickGoTo",function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(s=Number(s),isNaN(s))return"";a.callbackTimers.push(setTimeout(function(){return a.changeSlide({message:"index",index:s,currentSlide:a.state.currentSlide},l)},0))}),be(we(a),"play",function(){var s;if(a.props.rtl)s=a.state.currentSlide-a.props.slidesToScroll;else if((0,Ke.canGoNext)(ce(ce({},a.props),a.state)))s=a.state.currentSlide+a.props.slidesToScroll;else return!1;a.slideHandler(s)}),be(we(a),"autoPlay",function(s){a.autoplayTimer&&clearInterval(a.autoplayTimer);var l=a.state.autoplaying;if(s==="update"){if(l==="hovered"||l==="focused"||l==="paused")return}else if(s==="leave"){if(l==="paused"||l==="focused")return}else if(s==="blur"&&(l==="paused"||l==="hovered"))return;a.autoplayTimer=setInterval(a.play,a.props.autoplaySpeed+50),a.setState({autoplaying:"playing"})}),be(we(a),"pause",function(s){a.autoplayTimer&&(clearInterval(a.autoplayTimer),a.autoplayTimer=null);var l=a.state.autoplaying;s==="paused"?a.setState({autoplaying:"paused"}):s==="focused"?(l==="hovered"||l==="playing")&&a.setState({autoplaying:"focused"}):l==="playing"&&a.setState({autoplaying:"hovered"})}),be(we(a),"onDotsOver",function(){return a.props.autoplay&&a.pause("hovered")}),be(we(a),"onDotsLeave",function(){return a.props.autoplay&&a.state.autoplaying==="hovered"&&a.autoPlay("leave")}),be(we(a),"onTrackOver",function(){return a.props.autoplay&&a.pause("hovered")}),be(we(a),"onTrackLeave",function(){return a.props.autoplay&&a.state.autoplaying==="hovered"&&a.autoPlay("leave")}),be(we(a),"onSlideFocus",function(){return a.props.autoplay&&a.pause("focused")}),be(we(a),"onSlideBlur",function(){return a.props.autoplay&&a.state.autoplaying==="focused"&&a.autoPlay("blur")}),be(we(a),"render",function(){var s=(0,Yk.default)("slick-slider",a.props.className,{"slick-vertical":a.props.vertical,"slick-initialized":!0}),l=ce(ce({},a.props),a.state),c=(0,Ke.extractObject)(l,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),u=a.props.pauseOnHover;c=ce(ce({},c),{},{onMouseEnter:u?a.onTrackOver:null,onMouseLeave:u?a.onTrackLeave:null,onMouseOver:u?a.onTrackOver:null,focusOnSelect:a.props.focusOnSelect&&a.clickable?a.selectHandler:null});var f;if(a.props.dots===!0&&a.state.slideCount>=a.props.slidesToShow){var g=(0,Ke.extractObject)(l,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),m=a.props.pauseOnDotsHover;g=ce(ce({},g),{},{clickHandler:a.changeSlide,onMouseEnter:m?a.onDotsLeave:null,onMouseOver:m?a.onDotsOver:null,onMouseLeave:m?a.onDotsLeave:null}),f=Mt.default.createElement(Kk.Dots,g)}var y,b,w=(0,Ke.extractObject)(l,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);w.clickHandler=a.changeSlide,a.props.arrows&&(y=Mt.default.createElement(op.PrevArrow,w),b=Mt.default.createElement(op.NextArrow,w));var _=null;a.props.vertical&&(_={height:a.state.listHeight});var v=null;a.props.vertical===!1?a.props.centerMode===!0&&(v={padding:"0px "+a.props.centerPadding}):a.props.centerMode===!0&&(v={padding:a.props.centerPadding+" 0px"});var h=ce(ce({},_),v),p=a.props.touchMove,N={className:"slick-list",style:h,onClick:a.clickHandler,onMouseDown:p?a.swipeStart:null,onMouseMove:a.state.dragging&&p?a.swipeMove:null,onMouseUp:p?a.swipeEnd:null,onMouseLeave:a.state.dragging&&p?a.swipeEnd:null,onTouchStart:p?a.swipeStart:null,onTouchMove:a.state.dragging&&p?a.swipeMove:null,onTouchEnd:p?a.touchEnd:null,onTouchCancel:a.state.dragging&&p?a.swipeEnd:null,onKeyDown:a.props.accessibility?a.keyHandler:null},S={className:s,dir:"ltr",style:a.props.style};return a.props.unslick&&(N={className:"slick-list"},S={className:s}),Mt.default.createElement("div",S,a.props.unslick?"":y,Mt.default.createElement("div",il({ref:a.listRefHandler},N),Mt.default.createElement(Qk.Track,il({ref:a.trackRefHandler},c),a.props.children)),a.props.unslick?"":b,a.props.unslick?"":f)}),a.list=null,a.track=null,a.state=ce(ce({},Vk.default),{},{currentSlide:a.props.initialSlide,slideCount:Mt.default.Children.count(a.props.children)}),a.callbackTimers=[],a.clickable=!0,a.debouncedResize=null;var i=a.ssrInit();return a.state=ce(ce({},a.state),i),a}return tC(r,[{key:"didPropsChange",value:function(a){for(var i=!1,s=0,l=Object.keys(this.props);s<l.length;s++){var c=l[s];if(!a.hasOwnProperty(c)){i=!0;break}if(!(al(a[c])==="object"||typeof a[c]=="function")&&a[c]!==this.props[c]){i=!0;break}}return i||Mt.default.Children.count(this.props.children)!==Mt.default.Children.count(a.children)}}]),r}(Mt.default.Component);Il.InnerSlider=oC;var sC=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},lC=sC,cC=lC,uC=function(e){var t=/[height|width]$/;return t.test(e)},cp=function(e){var t="",r=Object.keys(e);return r.forEach(function(n,a){var i=e[n];n=cC(n),uC(n)&&typeof i=="number"&&(i=i+"px"),i===!0?t+=n:i===!1?t+="not "+n:t+="("+n+": "+i+")",a<r.length-1&&(t+=" and ")}),t},dC=function(e){var t="";return typeof e=="string"?e:e instanceof Array?(e.forEach(function(r,n){t+=cp(r),n<e.length-1&&(t+=", ")}),t):cp(e)},fC=dC,kx={};
79(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(x);function r(i){return i&&i.__esModule?i:{default:i}}var n={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(s){return t.default.createElement("ul",{style:{display:"block"}},s)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(s){return t.default.createElement("button",null,s+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},a=n;e.default=a})(kx);var Mc,up;function mC(){if(up)return Mc;up=1;function e(t){this.options=t,!t.deferSetup&&this.setup()}return e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},Mc=e,Mc}var Rc,dp;function Cx(){if(dp)return Rc;dp=1;function e(n,a){var i=0,s=n.length,l;for(i;i<s&&(l=a(n[i],i),l!==!1);i++);}function t(n){return Object.prototype.toString.apply(n)==="[object Array]"}function r(n){return typeof n=="function"}return Rc={isFunction:r,isArray:t,each:e},Rc}var Dc,fp;function hC(){if(fp)return Dc;fp=1;var e=mC(),t=Cx().each;function r(n,a){this.query=n,this.isUnconditional=a,this.handlers=[],this.mql=window.matchMedia(n);var i=this;this.listener=function(s){i.mql=s.currentTarget||s,i.assess()},this.mql.addListener(this.listener)}return r.prototype={constuctor:r,addHandler:function(n){var a=new e(n);this.handlers.push(a),this.matches()&&a.on()},removeHandler:function(n){var a=this.handlers;t(a,function(i,s){if(i.equals(n))return i.destroy(),!a.splice(s,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(n){n.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var n=this.matches()?"on":"off";t(this.handlers,function(a){a[n]()})}},Dc=r,Dc}var $c,mp;function pC(){if(mp)return $c;mp=1;var e=hC(),t=Cx(),r=t.each,n=t.isFunction,a=t.isArray;function i(){if(!window.matchMedia)throw new Error("matchMedia n
79ot present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return i.prototype={constructor:i,register:function(s,l,c){var u=this.queries,f=c&&this.browserIsIncapable;return u[s]||(u[s]=new e(s,f)),n(l)&&(l={match:l}),a(l)||(l=[l]),r(l,function(g){n(g)&&(g={match:g}),u[s].addHandler(g)}),this},unregister:function(s,l){var c=this.queries[s];return c&&(l?c.removeHandler(l):(c.clear(),delete this.queries[s])),this}},$c=i,$c}var jc,hp;function gC(){if(hp)return jc;hp=1;var e=pC();return jc=new e,jc}(function(e){function t(P){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},t(P)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(x),n=Il,a=l(fC),i=l(kx),s=q;function l(P){return P&&P.__esModule?P:{default:P}}function c(){return c=Object.assign||function(P){for(var k=1;k<arguments.length;k++){var E=arguments[k];for(var M in E)Object.prototype.hasOwnProperty.call(E,M)&&(P[M]=E[M])}return P},c.apply(this,arguments)}function u(P,k){var E=Object.keys(P);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(P);k&&(M=M.filter(function(T){return Object.getOwnPropertyDescriptor(P,T).enumerable})),E.push.apply(E,M)}return E}function f(P){for(var k=1;k<arguments.length;k++){var E=arguments[k]!=null?arguments[k]:{};k%2?u(Object(E),!0).forEach(function(M){S(P,M,E[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(E)):u(Object(E)).forEach(function(M){Object.defineProperty(P,M,Object.getOwnPropertyDescriptor(E,M))})}return P}function g(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function m(P,k){for(var E=0;E<k.length;E++){var M=k[E];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(P,M.key,M)}}function y(P,k,E){return k&&m(P.prototype,k),E&&m(P,E),Object.defineProperty(P,"prototype",{writable:!1}),P}function b(P,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(k&&k.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),k&&w(P,k)}function w(P,k){return w=Object.setPrototypeOf||function(M,T){return M.__proto__=T,M},w(P,k)}function _(P){var k=p();return function(){var M=N(P),T;if(k){var j=N(this).constructor;T=Reflect.construct(M,arguments,j)}else T=M.apply(this,arguments);return v(this,T)}}function v(P,k){if(k&&(t(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(P)}function h(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N(P){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},N(P)}function S(P,k,E){return k in P?Object.defineProperty(P,k,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[k]=E,P}var C=(0,s.canUseDOM)()&&gC(),O=function(P){b(E,P);var k=_(E);function E(M){var T;return g(this,E),T=k.call(this,M),S(h(T),"innerSliderRefHandler",function(j){return T.innerSlider=j}),S(h(T),"slickPrev",function(){return T.innerSlider.slickPrev()}),S(h(T),"slickNext",function(){return T.innerSlider.slickNext()}),S(h(T),"slickGoTo",function(j){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return T.innerSlider.slickGoTo(j,A)}),S(h(T),"slickPause",function(){return T.innerSlider.pause("paused")}),S(h(T),"slickPlay",function(){return T.innerSlider.autoPlay("play")}),T.state={breakpoint:null},T._responsiveMediaHandlers=[],T}return y(E,[{key:"media",value:function(T,j){C.register(T,j),this._responsiveMediaHandlers.push({query:T,handler:j})}},{key:"componentDidMount",value:function(){var T=this;if(this.props.responsive){var j=this.props.responsive.map(function(B){return B.breakpoint});j.sort(function(B,z){return B-z}
vendor: 2,263 bytes, line 79
79),j.forEach(function(B,z){var ie;z===0?ie=(0,a.default)({minWidth:0,maxWidth:B}):ie=(0,a.default)({minWidth:j[z-1]+1,maxWidth:B}),(0,s.canUseDOM)()&&T.media(ie,function(){T.setState({breakpoint:B})})});var A=(0,a.default)({minWidth:j.slice(-1)[0]});(0,s.canUseDOM)()&&this.media(A,function(){T.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(T){C.unregister(T.query,T.handler)})}},{key:"render",value:function(){var T=this,j,A;this.state.breakpoint?(A=this.props.responsive.filter(function(W){return W.breakpoint===T.state.breakpoint}),j=A[0].settings==="unslick"?"unslick":f(f(f({},i.default),this.props),A[0].settings)):j=f(f({},i.default),this.props),j.centerMode&&(j.slidesToScroll>1,j.slidesToScroll=1),j.fade&&(j.slidesToShow>1,j.slidesToScroll>1,j.slidesToShow=1,j.slidesToScroll=1);var B=r.default.Children.toArray(this.props.children);B=B.filter(function(W){return typeof W=="string"?!!W.trim():!!W}),j.variableWidth&&(j.rows>1||j.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),j.variableWidth=!1);for(var z=[],ie=null,U=0;U<B.length;U+=j.rows*j.slidesPerRow){for(var J=[],K=U;K<U+j.rows*j.slidesPerRow;K+=j.slidesPerRow){for(var Ce=[],ge=K;ge<K+j.slidesPerRow&&(j.variableWidth&&B[ge].props.style&&(ie=B[ge].props.style.width),!(ge>=B.length));ge+=1)Ce.push(r.default.cloneElement(B[ge],{key:100*U+10*K+ge,tabIndex:-1,style:{width:"".concat(100/j.slidesPerRow,"%"),display:"inline-block"}}));J.push(r.default.createElement("div",{key:10*U+K},Ce))}j.variableWidth?z.push(r.default.createElement("div",{key:U,style:{width:ie}},J)):z.push(r.default.createElement("div",{key:U},J))}if(j==="unslick"){var Re="regular slider "+(this.props.className||"");return r.default.createElement("div",{className:Re},B)}else z.length<=j.slidesToShow&&(j.unslick=!0);return r.default.createElement(n.InnerSlider,c({style:this.props.style,ref:this.innerSliderRefHandler},j),z)}}]),E}(r.default.Component);e.default=O})(tx);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(tx);function r(a){return a&&a.__esModule?a:{default:a}}var n=t.default;e.default=n})(ex);const jf=$p(ex);const vC=({color:e})=>
79{const[t,r]=x.useState();x.useState(!1);const[n,a]=x.useState(),[i,s]=x.useState(),[l,c]=x.useState();x.useState();const u=async g=>{r(!1),a(),s(!0),g.preventDefault();try{let m=await ee.post(`${te}/rank/gacha_gemas`,{},{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}});c(m.data),console.log(m.data)}catch(m){r(!0),a(m.response.data.errors[0])}s(!1)},f=async g=>{c(!1),s(!1)};return d("div",{className:" mb-10",children:[!l&&d("div",{className:" flex flex-col items-center justify-center gap-2",children:[o("img",{className:i?"mb-6 w-1/4 mt-16 sm:mb-10 sm:w-1/6 animate-spin":"py-5 px-10 sm:px-28 w-2/3 sm:w-1/2",src:i?"/assets/misteri.jpg":"/assets/cofre_gemas.png",alt:""}),!i&&localStorage.getItem("tokenCommers")&&o("button",{onClick:u,className:`cursor-pointer font-medium text-sm sm:-mt-8 -mt-6 ${e?"bg-verde-fin":"bg-vmwc"} text-black w-2/5 py-0.5 sm:w-1/3 text-center`,children:"Abrir (100 pts.)"}),!localStorage.getItem("tokenCommers")&&o("div",{className:"text-center w-full sm:w-1/2 p-2 mb-4 bg-red-100 text-red-800",children:"Debes iniciar sesion para comprar un cofre"}),t&&o("div",{className:"text-center w-full sm:w-1/2 p-2 mb-4 bg-red-100 text-red-800",children:n})]}),l&&d("div",{className:" flex flex-col items-center justify-center my-5 gap-2",children:[o("img",{className:`mb-6 mt-2 ${l.mostrar=="gemas_epicas"?" bg-dorado opacity-60":l.mostrar=="gemas"?" bg-bronce opacity-60":" bg-plata opacity-70"} w-1/3 sm:mb-10 sm:w-1/4`,src:l.mostrar=="gemas_epicas"?"/assets/banners/gema_epica.gif":l.mostrar=="gemas"?"/assets/banners/gema.gif":"/assets/banners/gema_rara.gif",alt:""}),o("div",{className:"text-center w-full sm:w-1/2 p-2 sm:-mt-8 -mt-6 bg-blue-200 text-blue-800",children:l.text}),o("div",{onClick:f,className:" cursor-pointer font-medium text-sm bg-black text-white w-2/
795 py-0.5 sm:w-1/3 text-center",children:"Volver a cofres"})]})]})},Ja=({url:e,identifier:t,title:r})=>(x.useEffect(()=>{const n=document.createElement("script");n.innerHTML=` 80 var idcomments_acct = 'c08f648d2ad72f6122e289363bef1b7c'; 81 var idcomments_post_id = "${t}"; 82 var idcomments_post_url = "${e}"; 83 `,document.getElementById("IDCommentsWrapper").appendChild(n);const a=document.createElement("span");a.id="IDCommentsPostTitle",a.style.display="none",document.getElementById("IDCommentsWrapper").appendChild(a);const i=document.createElement("script");return i.type="text/javascript",i.src="https://www.intensedebate.com/js/genericCommentWrapperV2.js",document.getElementById("IDCommentsWrapper").appendChild(i),()=>{const s=document.getElementById("IDCommentsWrapper");s&&(s.innerHTML="")}},[]),o("div",{id:"IDCommentsWrapper"})),xC=Object.freeze(Object.defineProperty({__proto__:null,default:Ja},Symbol.toStringTag,{value:"Module"})),yt=6,yo=5,Wt=yt*yo,yC=[0,1,2,3,4,5],wC=[24,25,26,27,28,29],pp=[1,2,3,4],gp=[25,26,27,28],Lc=20,hn=e=>Math.floor(Math.random()*e),jr=e=>{const t=[...e];for(let r=t.length-1;r>0;r--){const n=hn(r+1);[t[r],t[n]]=[t[n],t[r]]}return t},_n=e=>{const t=Math.floor(e/yt),r=e%yt,n=[];return t>0&&n.push(e-yt),t<yo-1&&n.push(e+yt),r>0&&n.push(e-1),r<yt-1&&n.push(e+1),n},tt=(e="")=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim(),Lr=["#3b82f6","#ef4444","#22c55e","#92400e","#f97316","#eab308","#a855f7"],vp=(e,t=[])=>{const r=new Map,n=new Map;return e.forEach(a=>{if((a==null?void 0:a.owner)!=="user")return;const i=tt(a.manhwa);r.set(i,(r.get(i)||0)+1)}),t.forEach(a=>{const i=tt(a.manhwa);n.set(i,(n.get(i)||0)+1)}),{boardMap:r,draftMap:n}},Ac=(e,t,r)=>{const n=tt(r),a=e.get(n)||0,i=t.get(n)||0;return a>=2||a>=1&&i>=1},Lf=e=>e>=5?2:e>=3?1:0,fa=(e,t,r)=>{const n=e.valor===0?3:4,i=t==="user"&&e.valor===2&&/naruto/i.test(e.name)?10:n;return{...e,owner:t,pos:r,ptsBase:i,ptsNow:i,collectionBonus:0}},Ex=e=>{const t=Math.floor(e/yt),r=e%yt,n=[];for(let a=-1;a<=1;a++)for(let i=-1;i<=1;i++){if(a===0&&i===0)continue;const s=t+a,l=r+i;s>=0&&s<yo&&l>=0&&l<yt&&n.push(s*yt+l)}return n},pn=(e,t)=>{var l;const r=e[t];if(!r)return[];const n=tt(r.manhwa),a=r.owner,i=new Set([t]),s=[t];for(;s.length;){const c=s.shift();for(const u of Ex(c))!i.has(u)&&((l=e[u])==null?void 0:l.owner)===a&&tt(e[u].manhwa)===n&&(i.add(u),s.push(u))}return[...i]},sl=(e,t)=>{const r=e[t];if(!r)return 0;let n=r.ptsNow;e.some(s=>(s==null?void 0:s.owner)===r.owner&&xr.eren(s))&&(n+=xr.eren(r)?-1:1);const i=pn(e,t);return n+=Lf(i.length),n},Vn=(e,t)=>{var s;const r=e.some(l=>(l==null?void 0:l.owner)===t&&xr.eren(l)),n=new Map,a=new Set;for(let l=0;l<Wt;l++){if(((s=e[l])==null?void 0:s.owner)!==t||a.has(l))continue;const c=pn(e,l),u=Lf(c.length);for(const f of c)a.add(f),n.set(f,u)}let i=0;for(let l=0;l<Wt;l++){const c=e[l];if((c==null?void 0:c.owner)!==t)continue;let u=c.ptsNow;r&&(u+=xr.eren(c)?-1:1),u+=n.get(l)??0,i+=u}return i},xp=(e,t,r)=>{if(!r.has(t))return{card:e,nbMap:r};const n=new Map(r),a=n.get(t);return n.delete(t),{card:{...e,ptsNow:e.ptsNow+a},nbMap:n}},qo=(e,t,r)=>{let n=t.reduce((u,f)=>u+sl(e,f),0);const a=r.reduce((u,f)=>u+sl(e,f),0);t.some(u=>xr.luffy(e[u]))&&a>n&&(n=a);const i=n/(n+a||1),s=(Math.random()+Math.random()+Math.random())/3<i,l=(4+hn(3))*360,c=s?(1-i)*360+Math.random()*i*360:Math.random()*(1-i)*360;return{pWinA:i,winA:s,targetAngle:l+c,cardsA:t.map(u=>e[u]),cardsB:r.map(u=>e[u])}},yp=e=>{const t=Vn(e,"user"),r=Vn(e,"ia"),n=t/(t+r||1),a=(Math.random()+Math.random())/2<n,i=(4+hn(3))*360,s=a?(1-n)*360+Math.random()*n*360:Math.random()*(1-n)*360;return{pWinA:n,winA:a,targetAngle:i+s,cardsA:e.filter(l=>(l==null?void 0:l.owner)==="user"),cardsB:e.filter(l=>(l==null?void 0:l.owner)==="ia")}},Rt=e=>`${tt(e.manhwa)}__${e.name}`,xr={goku:e=>(e==null?void 0:e.valor)===2&&/goku/i.test(e.name),naruto:e=>(e==null?void 0:e.valor)===2&&/naruto/i.test(e.name),eren:e=>(e==null?void 0:e.valor)===2&&/eren/i.test(e.name),luffy:e=>(e==null?void 0:e.valor)===2&&/luffy/i.test(e.name),kaneki:e=>(e==null?void 0:e.valor)===2&&/kaneki/i.test(e.name)}
83,bC=(e,t)=>{const r=Math.floor(t/yt),n=t%yt,a=[];for(let i=0;i<yo;i++){const s=i*yt+n;s!==t&&e[s]===null&&a.push(s)}for(let i=0;i<yt;i++){const s=r*yt+i;s!==t&&e[s]===null&&a.push(s)}return a},wp=e=>e.map(t=>(t==null?void 0:t.owner)==="user"&&xr.naruto(t)?{...t,ptsNow:Math.max(1,t.ptsNow-1)}:t),vd=(e,t,r)=>{var i,s;const n=new Set([t]),a=[t];for(;a.length>0;){const l=a.shift();for(const c of _n(l))if(!(n.has(c)||(i=e[c])!=null&&i.corrupted)){if(((s=e[c])==null?void 0:s.owner)===r)return!0;n.add(c),a.push(c)}}return!1},NC=e=>{var n,a;const t=[],r=[];for(let i=0;i<Wt;i++)((n=e[i])==null?void 0:n.owner)==="user"&&t.push(i),((a=e[i])==null?void 0:a.owner)==="ia"&&r.push(i);if(t.length===0||r.length===0)return!0;for(const i of t)if(!vd(e,i,"ia"))return!1;for(const i of r)if(!vd(e,i,"user"))return!1;return!0},bp=e=>{var a;const t=Array(yo).fill(0);for(let i=0;i<Wt;i++)(a=e[i])!=null&&a.corrupted&&t[Math.floor(i/yt)]++;const r=[];for(let i=0;i<Wt;i++){if(e[i]!==null||t[Math.floor(i/yt)]>=2)continue;const s=[...e];s[i]={corrupted:!0},NC(s)&&r.push(i)}if(r.length===0)return e;const n=[...e];return n[r[hn(r.length)]]={corrupted:!0},n},xd=(e,t)=>{const r=e[t];return r&&xr.goku(r)?bC(e,t):_n(t).filter(n=>e[n]===null)},Np=(e,t,r,n)=>{const a=[...e];let i={...a[r],pos:n};return t.has(n)&&(i={...i,ptsNow:i.ptsNow+t.get(n)}),a[r]=null,a[n]=i,a},Ic=e=>{var r;let t=0;for(let n=0;n<Wt;n++)((r=e[n])==null?void 0:r.owner)==="ia"&&vd(e,n,"user")&&t++;return t},SC=(e,t,r)=>{var i,s;const n=new Set([t]),a=[[t,0]];for(;a.length;){const[l,c]=a.shift();for(const u of _n(l))if(!(n.has(u)||(i=e[u])!=null&&i.corrupted)){if(((s=e[u])==null?void 0:s.owner)===r)return c+1;n.add(u),a.push([u,c+1])}}return 99},zc=e=>{var r;let t=0;for(let n=0;n<Wt;n++)((r=e[n])==null?void 0:r.owner)==="ia"&&(t+=SC(e,n,"user"));return t},Sp=(e,t,r,n,a)=>!!(e||r<t||a>0||n>0),_C=(e,t,r=new Set)=>{var y,b,w;const n=[];for(let _=0;_<Wt;_++)((y=e[_])==null?void 0:y.owner)==="ia"&&n.push(_);if(n.length===0)return null;const a=[];for(let _=0;_<Wt;_++)((b=e[_])==null?void 0:b.owner)==="user"&&a.push(_);const i=new Array(Wt).fill(1/0),s=[];for(const _ of a)i[_]=0,s.push(_);let l=0;for(;l<s.length;){const _=s[l++];for(const v of _n(_))i[v]===1/0&&!((w=e[v])!=null&&w.corrupted)&&(i[v]=i[_]+1,s.push(v))}const c=Vn(e,"ia"),u=zc(e),f=Ic(e);let g=!1;for(const _ of n)if(!(pn(e,_).length>=3)){for(const v of xd(e,_)){const h=Np(e,t,_,v),p=_n(v).filter(E=>{var M;return((M=h[E])==null?void 0:M.owner)==="user"}),N=isFinite(i[v])?i[v]:10,S=isFinite(i[_])?i[_]:10,C=Vn(h,"ia")-c,O=Ic(h)-f,P=u-zc(h);if(Sp(p.length>0,S,N,C,t.get(v)??0)||O>0||P>0){g=!0;break}}if(g)break}const m=[];for(const _ of n)for(const v of xd(e,_)){const h=Np(e,t,_,v);let p=0;[...r].some(E=>E===`${v}-${_}`)&&(p-=7);const N=Vn(h,"ia")-c;p+=N*3.2;const S=_n(v).filter(E=>{var M;return((M=h[E])==null?void 0:M.owner)==="user"}),C=S.length>0;if(C){const E=sl(h,v),M=S.reduce((j,A)=>j+sl(h,A),0),T=E/(E+M||1);T>=.7?p+=5:T>=.55?p+=2.5:p-=2.5}const O=isFinite(i[v])?i[v]:10,P=isFinite(i[_])?i[_]:10,k=C?2.5:.05;if(p+=(P-O)*k,!C){const E=tt(e[_].manhwa),M=pn(e,_),T=M.length,j=T>=3,A=t.get(v)??0,B=Ic(h)-f,z=B>0,ie=u-zc(h),U=Sp(!1,P,O,N,A)||z||ie>0;A>0?p+=A*10:A<0&&(j&&(z||ie>0)?p+=A*2:j?p+=A*4:p+=A*10);let J=!1;if(T>=2){const Re=M.filter(De=>De!==_),W=pn(h,Re[0]);J=!Re.every(De=>W.includes(De))}J&&(j?z?p-=.3:U&&!g?p-=.5:U?p-=2.5:p-=8:p-=U?2:5),j&&!J&&!U&&(p+=g?-10:-6),j&&!J&&O>=P&&!U&&(p-=5),j&&!J&&O<P&&(p+=(P-O)*1.5),z&&(p+=4+B*1.5),ie>0&&(p+=Math.min(ie*1,6)),Ex(v).some(Re=>{var W;return((W=h[Re])==null?void 0:W.owner)==="ia"&&tt(h[Re].manhwa)===E})&&(p+=2);const ge=pn(h,v).length;ge===5?p+=2.5:ge===4?p+=3:ge===3?p+=2:ge===2&&(p+=.8),ge>=3&&O<=2&&(p+=2.5),ge>=3&&O===1&&(p+=4)}m.push({from:_,to:v,score:p})}return m.length===0?null:(m.sort((_,v)=>v.score-_.score),m[0])},kC=({pWinA:e,winA:t,targetAngle:r,cardsA:n,cardsB:a,onResolve:i,title:s="Combate",resolveText:l="eliminado del tablero"})=>{const[c,u]=x.useState(0),[f,g]=x.useState(!1);x.useEffect(()=>{const b=setTimeout(()=>u(r),100),w=setTimeout(()=>g(!0),2700),_=setTimeout(()=>i(t),3200);return()=>{clearTimeout(b),clearTimeout(w),clearTimeout(_)}},[r,t,i]);const m=t?"user":"ia",y=(b,w)=>d("div",{className:"text-center flex-1",children:[o("div",{className:"flex flex-col items-center gap-1 mb-1",children:b.map((_,v)=>_.link?o("img",{src:_.link,alt:_.name,className:"w-14 h-14 object-cover rounded-lg mx-auto"},v):o("div",{className:"text-3xl font-black",children:_.name},v))}),d("div",{className:`text-[11px] font-bold uppercase ${w?"text-blue-400":"text-red-400"}`,children:[w?"TÃ":"IA",b.length>1?` Ã${b.length}`:""]}),d("div",{className:"text-xl font-black",children:[w?(e*100).toFixed(0):((1-e)*100).toFixed(0),"%"]})]});return o("div",{className:"fixed inset-0 w-full bg-black/80 flex items-center justify-center z-20 p-4",children:d("div",{className:"bg-gray-900 border border-gray-700 rounded-2xl p-6 w-full max-w-xs text-center",children:[o("h3",{className:"text-xl font-bold mb-4 text-amber-400",children:s}),d("div",{className:"flex justify-around items-start mb-6 gap-2",children:[y(n,!0),o("div",{className:"text-gray-500 text-sm font-bold self-center",children:"VS"}),y(a,!1)]}),d("div",{className:"relative mx-auto mb-5",style:{width:180,height:180},children:[o("div",{className:"w-full h-full rounded-full border-4 border-gray-600",style:{background:`conic-gradient(#ef4444 0% ${(1-e)*100}%, #3b82f6 ${(1-e)*100}% 100%)`}}),o("div",{className:"absolute inset-0",style:{transform:`rotate(${c}deg)`,transition:"transform 2.5s ease-out",transformOrigin:"center center"},children:o("div",{className:"absolute bg-white rounded-full shadow-lg",style:{width:5,height:78,top:12,left:"50%",transform:"translateX(-50%)"}})}),o("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-3 h-4 bg-yellow-400 rounded-b",style:{to
83p:-2}}),o("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:o("div",{className:"w-5 h-5 rounded-full bg-gray-900 border-2 border-gray-300 z-10"})})]}),f?d(ye,{children:[d("p",{className:`text-3xl font-black mb-1 ${m==="user"?"text-blue-400":"text-red-400"}`,children:[m==="user"?"TÃ":"IA"," GANA"]}),o("p",{className:"text-gray-400 text-sm",children:l})]}):o("p",{className:"text-gray-400 text-sm animate-pulse",children:"Girando..."})]})})},CC=({color:e,cromos:t})=>{var Af,If,zf,Uf,Ff,Bf,Wf,Hf,qf;const r=x.useRef(!1),n=x.useRef(0),a=x.useRef(!1),i=x.useRef(new Set),s=x.useRef([]),l=x.useRef([]),c=x.useRef([]),u=x.useRef([]),f=x.useRef([]),g=x.useRef([]),m=x.useRef(null),[y,b]=x.useState(Array(Wt).fill(null)),[w,_]=x.useState(()=>new Map),[v,h]=x.useState(Lc),[p,N]=x.useState(null),[S,C]=x.useState([]),[O,P]=x.useState(!1),[k,E]=x.useState(),[M,T]=x.useState(),[j,A]=x.useState(null),[B,z]=x.useState([]),[ie,U]=x.useState(0),[J,K]=x.useState(0),[Ce,ge]=x.useState(new Map),Re=x.useRef(new Map),[W,De]=x.useState(new Map),ne=x.useRef(new Map),[Ge,At]=x.useState(null),[na,_t]=x.useState(""),[Gt,ht]=x.useState(null),[Pe,Za]=x.useState(null),[It,fr]=x.useState("setup"),[Zr,rr]=x.useState(!1),[bo,Sr]=x.useState(!1),[Yt,ei]=x.useState(null),[ti,R]=x.useState(null),[D,I]=x.useState(null),[X,V]=x.useState(null),[se,le]=x.useState([]),[ve,re]=x.useState(!1),[pt,he]=x.useState(!1),[Ae,gt]=x.useState(0),Tt=x.useRef([]);x.useEffect(()=>{const{boardMap:L,draftMap:G}=vp(y,B),Y=new Set;[...y,...B].forEach(ae=>{ae!=null&&ae.manhwa&&Ac(L,G,ae.manhwa)&&Y.add(tt(ae.manhwa))});const fe=Re.current,me=new Map,oe=new Set;for(const[ae,H]of fe)Y.has(ae)&&(me.set(ae,H),oe.add(H));for(const ae of Y)if(!me.has(ae)){let H=0;for(;H<Lr.length&&oe.has(H);)H++;const de=H<Lr.length?H:0;me.set(ae,de),oe.add(de)}Re.current=me,ge(new Map(me));const ue=new Set;y.forEach(ae=>{if((ae==null?void 0:ae.owner)==="ia"){const H=tt(ae.manhwa);y.filter(de=>(de==null?void 0:de.owner)==="ia"&&tt(de.manhwa)===H).length>=2&&ue.add(H)}});
83const xe=ne.current,$e=new Map,_e=new Set;for(const[ae,H]of xe)ue.has(ae)&&($e.set(ae,H),_e.add(H));for(const ae of ue)if(!$e.has(ae)){let H=Lr.length-1;for(;H>=0&&_e.has(H);)H--;const de=H>=0?H:Lr.length-1;$e.set(ae,de),_e.add(de)}ne.current=$e,De(new Map($e))},[y,B]);const nr=async(L,G)=>{r.current=!0;let Y=!1,fe=null;try{const me={game_id:m.current,ganado:G,betChoice:ti??null,carta_id:(D==null?void 0:D.link)??null,rareza:(D==null?void 0:D.valor)??null,cantidad:X??null};fe=(await ee.post(`${te}/rank/juego_final`,me,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}})).data}catch{Y=!0}Za({win:G,title:G?"VICTORIA":"DERROTA",betChoice:ti,betCard:D,betAmount:X,wonCard:(fe==null?void 0:fe.wonCard)??null,betError:Y}),_t("Partida terminada."),fr("end"),rr(!1)},Dn=()=>{const L=g.current,G=Array(Wt).fill(null),Y=ri(L),fe=new Set(Y.map(Rt)),me=jr([...pp]),oe=jr([...yC.filter(Qe=>!pp.includes(Qe))]),ue=[...me,...oe],xe=ue.slice(0,2);Y.forEach((Qe,_r)=>{G[xe[_r]]=fa(Qe,"user",xe[_r])}),c.current=L.filter(Qe=>!fe.has(Rt(Qe))),s.current=ue.slice(2);const $e=jr(Y.map(Qe=>Qe.valor)),_e=t.filter(Qe=>Qe.valor!==2),ae=[];for(const Qe of $e){const _r=new Set(ae.map(Rt)),ql=jr(_e).find(oa=>oa.valor===Qe&&!_r.has(Rt(oa)));ae.push(ql??jr(_e.filter(oa=>!_r.has(Rt(oa))))[0])}const H=new Set(ae.map(Rt)),de=jr([...gp]),Se=jr([...wC.filter(Qe=>!gp.includes(Qe))]),Ye=[...de,...Se],tn=Ye.slice(0,2);ae.forEach((Qe,_r)=>{G[tn[_r]]=fa(Qe,"ia",tn[_r])}),u.current=t.filter(Qe=>!H.has(Rt(Qe))),l.current=Ye.slice(2),f.current=ae.map(Qe=>tt(Qe.manhwa));const dt=new Map,zt=Qe=>{const[_r,ql,oa]=jr([...Qe]);dt.set(_r,1),dt.set(ql,-1),dt.set(oa,-1)};zt([6,7,8,9,10,11]),zt([18,19,20,21,22,23]),b(G),_(dt);const Dx=c.current.filter(Qe=>Qe.valor===2),Vf=ue.slice(2),$x=Vf[hn(Vf.length)]??null;z(Dx),A("epic"),U(0),At($x),_t("Elige tu carta épica.")},$n=async(L,G=null,Y=null)=>{var fe,me,oe;try{await ee.post(`${te}/rank/juego_apuesta`,{game_id:m.current,tipo:L,...G?{carta_id:G.link||G.link}:{},...Y?{cantidad:Y}:{}},{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}),R(L),I(G||null),V(Y||null),re(!1),he(!1),Dn()}catch(ue){E(!0),T(((oe=(me=(fe=ue==null?void 0:ue.response)==null?void 0:fe.data)==null?void 0:me.errors)==null?void 0:oe[0])||"No se pudo registrar la apuesta.")}},en=async()=>{var L,G,Y;try{await ee.post(`${te}/rank/juego_apuesta`,{game_id:m.current,tipo:"none"},{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}),R(null),I(null),V(null),re(!1),he(!1),Dn()}catch(fe){E(!0),T(((Y=(G=(L=fe==null?void 0:fe.response)==null?void 0:L.data)==null?void 0:G.errors)==null?void 0:Y[0])||"No se pudo continuar sin apuesta.")}},ri=L=>{const G=jr(L.filter(xe=>xe.valor!==2)),Y=G[0],fe=tt(Y.manhwa),me=G.filter(xe=>tt(xe.manhwa)!==fe),oe=G.slice(1).filter(xe=>tt(xe.manhwa)===fe);let ue;return me.length===0||oe.length>0&&Math.random()<.05?ue=oe[0]??G[1]:ue=me[0],[Y,ue]},ut=async()=>{var Y,fe,me;m.current=null,E(!1),T(),P(!0);let L=[];try{let oe=await ee.post(`${te}/rank/juego`,{},{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}});m.current=oe.data.game_id,L=oe.data.user_cromos||[]}catch(oe){E(!0),T(((me=(fe=(Y=oe==null?void 0:oe.response)==null?void 0:Y.data)==null?void 0:fe.errors)==null?void 0:me[0])||"Ocurrió un error al iniciar la partida."),P(!1);return}r.current=!1,a.current=!1,i.current=new Set,n.current=0,g.current=L,b(Array(Wt).fill(null)),_(new Map),h(Lc),N(null),C([]),ht(null),Za(null),Sr(!1),rr(!1);const G=[...L].sort((oe,ue)=>ue.valor-oe.valor);le(G),gt(0),R(null),I(null),V(null),re(!1),he(!1),z([]),A("bet"),U(0),At(null),_t("Elige tu apuesta antes de comenzar."),fr("setup")},ar=L=>{const G=Ge,Y=s.current;s.current=Y.filter(H=>H!==G),c.current=c.current.filter(H=>Rt(H)!==Rt(L));const fe=u.current.filter(H=>H.valor===2),me=H=>f.current.filter(de=>de===tt(H.manhwa)).length;fe.sort((H,de)=>me(de)-me(H));const oe=fe.slice(0,2),ue=(oe.length>0?oe[hn(oe.length)]:null)??u.current.find(H=>H.valor!==2)??u.current[0],xe=l.current,$e=xe[hn(xe.length)];l.current=xe.filter(H=>H!==$e),u.current=u.current.filter(H=>Rt(H)!==Rt(ue)),f.current=[...f.current,tt(ue.manhwa)],b(H=>{const de=[...H];return de[G]={...fa(L,"user",G),drafted:!0}
83,$e!=null&&(de[$e]=fa(ue,"ia",$e)),de});const _e=c.current.filter(H=>H.valor!==2),ae=[...s.current].sort((H,de)=>H-de)[0]??null;z(_e),K(0),A("fill"),U(0),n.current=0,At(ae),_t("Elige 3 cromos para completar tu equipo (0/3).")},$r=()=>{K(L=>{const G=Math.ceil(B.length/6);return G<=1?0:(L+1)%G})},aa=L=>{if(n.current>=3)return;n.current+=1;const G=n.current,Y=Ge,fe=s.current;s.current=fe.filter(H=>H!==Y),c.current=c.current.filter(H=>Rt(H)!==Rt(L));const me=H=>f.current.filter(de=>de===tt(H.manhwa)).length,oe=u.current.filter(H=>H.valor===L.valor);let ue=oe.length>0?oe:u.current.filter(H=>H.valor!==2);if(G===3){const H=y;if(!H.some((Se,Ye)=>(Se==null?void 0:Se.owner)==="user"&&pn(H,Ye).length>=3)){const Se=new Set(f.current),Ye=ue.filter(tn=>!Se.has(tt(tn.manhwa)));Ye.length>0&&(ue=Ye)}}ue.sort((H,de)=>me(de)-me(H));const xe=ue.slice(0,3),$e=(xe.length>0?xe[hn(xe.length)]:null)??u.current[0],_e=l.current,ae=[..._e].sort((H,de)=>de-H)[0];if(l.current=_e.filter(H=>H!==ae),$e&&(u.current=u.current.filter(H=>Rt(H)!==Rt($e)),f.current=[...f.current,tt($e.manhwa)]),b(H=>{const de=[...H];return Y!=null&&(de[Y]={...fa(L,"user",Y),drafted:!0}),$e&&ae!=null&&(de[ae]=fa($e,"ia",ae)),de}),U(G),G<3){const H=c.current.filter(Se=>Se.valor!==2),de=[...s.current].sort((Se,Ye)=>Se-Ye)[0]??null;z(H),K(Se=>Math.min(Se,Math.max(0,Math.ceil(H.length/6)-1))),At(de),_t(`Elige 3 cromos para completar tu equipo (${G}/3).`)}else A(null),z([]),At(null),_t("Tu turno: selecciona un cromo tuyo y muévelo."),fr("user")},ia=(L,G,Y,fe=()=>{})=>{const me=Tt.current[G],oe=Tt.current[Y];if(!me||!oe){fe();return}const ue=me.getBoundingClientRect(),xe=oe.getBoundingClientRect();ei({card:L,to:Y,x:ue.left,y:ue.top,w:ue.width,h:ue.height,dx:xe.left-ue.left,dy:xe.top-ue.top,moving:!1}),requestAnimationFrame(()=>requestAnimationFrame(()=>{ei($e=>$e?{...$e,moving:!0}:null),setTimeout(()=>{ei(null),fe()},220)}))},Wl=L=>{if(Zr||It!=="user"||v<=0)return;const G=y[L];!G||G.owner!=="user"||(p===L?(N(null),C([])):(N(L),C(xd(y,L))))},Hl=L=>{if(Zr||It!=="user"||p==null||v<=0||!S.includes(L))return;rr(!0);const G=p;let Y=[...y],fe={...Y[G]};Y[G]=null,fe.pos=L;const me=xp(fe,L,new Map(w));fe=me.card;const oe=me.nbMap;N(null),C([]);const ue=v-1;b(Y),_(oe),h(ue),ia(fe,G,L,()=>{const xe=[...Y];xe[L]=fe;const $e=_n(L).filter(ae=>{var H;return((H=xe[ae])==null?void 0:H.owner)==="ia"});if($e.length>0){b(xe);const ae=de=>{let Se=[...xe];de?$e.forEach(dt=>{Se[dt]=null}):Se[L]=null,Se=wp(Se),ue>0&&ue%2===0&&(Se=bp(Se)),ht(null),b(Se);const Ye=Se.filter(dt=>(dt==null?void 0:dt.owner)==="user").length,tn=Se.filter(dt=>(dt==null?void 0:dt.owner)==="ia").length;if(Ye===0)nr(Se,!1);else if(tn===0)nr(Se,!0);else if(ue<=0){Sr(!0);const dt=yp(Se);setTimeout(()=>{Sr(!1),ht({...dt,title:"Combate Final",resolveText:"pierde la partida",onResolve:zt=>{ht(null),nr(Se,zt)}})},500)}else fr("ai"),_t("Turno de la IA..."),setTimeout(()=>ir(Se,oe),500)},H=qo(xe,[L],$e);setTimeout(()=>ht({...H,onResolve:de=>{if(!de&&!a.current&&xr.kaneki(xe[L])){a.current=!0;const Se=qo(xe,[L],$e);ht({...Se,title:"Kaneki â Segunda oportunidad",onResolve:ae});return}ae(de)}}),300);return}let _e=wp(xe);if(ue>0&&ue%2===0&&(_e=bp(_e)),b(_e),ue<=0){Sr(!0);const ae=yp(_e);setTimeout(()=>{Sr(!1),ht({...ae,title:"Combate Final",resolveText:"pierde la partida",onResolve:H=>{ht(null),nr(_e,H)}})},500);return}fr("ai"),_t("Turno de la IA..."),setTimeout(()=>ir(_e,oe),500)})},ir=(L,G)=>{if(r.current)return;const Y=[...L],fe=_C(Y,G,i.current);if(!fe){_t("Tu turno (IA sin movimientos)."),fr("user"),rr(!1);return}const{from:me,to:oe}=fe;i.current=new Set([`${me}-${oe}`,...[...i.current].slice(0,1)]);let ue={...Y[me]};Y[me]=null,ue.pos=oe;const xe=xp(ue,oe,new Map(G));ue=xe.card;const $e=xe.nbMap;b(Y),_($e),ia(ue,me,oe,()=>{const _e=[...Y];_e[oe]=ue;const ae=_n(oe).filter(H=>{var de;return((de=_e[H])==null?void 0:de.owner)==="user"});if(ae.length>0){b(_e);const H=qo(_e,ae,[oe]),de=Se=>{const Ye=[..._e];Se?Ye[oe]=null:ae.forEach(zt=>{Ye[zt]=null}),ht(null),b(Ye);const tn=Ye.filter(zt=>(zt==null?void 0:zt.owner)==="user").length,dt=Ye.filter(zt=>(zt==null?void 0:zt.owner)==="ia").length;tn===0?nr(Ye,!1):dt===0?nr(Ye,!0):(_t("Tu turno: mueve un cromo."),fr("user"),rr(!1))};setTimeout(()=>ht({...H,onResolve:Se=>{if(!Se&&!a.current&&ae.some(Ye=>xr.kaneki(_e[Ye]))){a.current=!0;const Ye=qo(_e,ae,[oe]);ht({...Ye,title:"Kaneki â Segunda oportunidad",onResolve:de});return}de(Se)}}),300);return}b(_e),_t("Tu turno: mueve un cromo."),fr("user"),rr(!1)})},ni=(L,G)=>{let Y="aspect-[3/4] rounded-md relative overflow-hidden flex flex-col items-center justify-center text-center transition-all duration-150 select-none";const fe=w.get(G),me=S.includes(G);return L!=null&&L.corrupted?Y+=" bg-purple-950 cursor-default":L==null?(Y+=" bg-gray-900",me?Y+=" cursor-pointer ring-2 ring-yellow-400 bg-gray-800":G===Ge&&It==="setup"?Y+=" cursor-default ring-2 ring-blue-400 bg-blue-950/60":(Y+=" cursor-default",fe
83!=null&&It!=="setup"&&(Y+=fe>0?" bg-green-500/20":" bg-orange-500/20"))):L.owner==="user"?(Y+=" cursor-pointer",p===G&&(Y+=" ring-4 ring-yellow-400 scale-[1.02]")):Y+=" cursor-default",Y},{boardMap:ai,draftMap:No}=vp(y,B),Rx=(L,G)=>{const Y=w.get(G),fe=S.includes(G);if(L!=null&&L.corrupted)return o("div",{className:"absolute inset-0 flex items-center justify-center",children:o("div",{className:"text-purple-500 text-xl opacity-50 select-none",children:"â"})});if(L==null)return d(ye,{children:[Y!=null&&It!=="setup"&&d(ye,{children:[o("div",{className:"text-[10px] opacity-70",children:"BONUS"}),o("div",{className:`text-xl font-bold ${Y>0?"text-green-400":"text-orange-400"}`,children:Y>0?`+${Y}`:`${Y}`})]}),fe&&Y==null&&o("div",{className:"text-yellow-400 opacity-40 text-2xl",children:"â¦"}),G===Ge&&It==="setup"&&o("div",{className:"text-blue-400 text-2xl animate-pulse",children:"â"})]});const me=pn(y,G),oe=Lf(me.length),xe=y.some(H=>(H==null?void 0:H.owner)===L.owner&&xr.eren(H))?xr.eren(L)?-1:1:0,$e=L.owner==="user"?"bg-blue-900/90":"bg-red-900/90",_e=tt(L.manhwa),ae=oe>0?L.owner==="user"?Lr[Ce.get(_e)??0]:W.has(_e)?Lr[W.get(_e)]:null:null;return d(ye,{children:[o("img",{src:L.link,alt:L.name,className:"absolute inset-0 w-full h-full object-cover"}),ae&&o("div",{className:"absolute inset-0 z-10 rounded-md pointer-events-none",style:{boxShadow:`inset 0 0 0 3px ${ae}, inset 0 0 14px ${ae}60`}}),L.owner==="user"&&Ac(ai,No,L.manhwa)&&o("div",{className:"absolute top-1 right-1 w-4 h-4 rounded-full z-20 ring-1 ring-black/60",style:{backgroundColor:Lr[Ce.get(_e)??0]}}),L.owner==="ia"&&W.has(_e)&&o("div",{className:"absolute top-1 right-1 w-4 h-4 rounded-full z-20 ring-1 ring-black/60",style:{backgroundColor:Lr[W.get(_e)]}}),d("div",{className:`absolute bottom-0 left-0 right-0 ${$e} px-1 py-0.5 text-center z-10`,children:[d("div",{className:"text-[13px] font-bold text-white leading-tight",children:[L.ptsNow+oe+xe,"pts"]}),(oe>0||xe!==0)&&d("div",{className:"text-[9px] text-gray-300 leading-tight",children:[L.ptsNow,oe>0&&d("span",{className:"text-green-300",children:["+",oe]}),xe!==0&&o("span",{className:"text-yellow-300",children:xe>0?"+E":"-E"})]})]})]})};return o("div",{className:"flex justify-center",children:d("div",{className:" w-full md:w-3/5",children:[d("header",{className:"flex flex-col items-center mb-4",children:[k&&o("div",{className:"text-center w-full sm:w-2/3 p-2 text-sm_ sm:text-base bg-red-100 text-red-800",children:M}),!localStorage.getItem("tokenCommers")&&o("div",{className:"text-center w-full sm:w-2/3 p-2 bg-red-100 text-red-800",children:"Debes iniciar sesion para jugar."}),(It==="end"&&!Pe||It==="setup"&&j===null)&&localStorage.getItem("tokenCommers")&&o("button",{onClick:ut,disabled:O,className:"px-10 py-5 mt-2 rounded-2xl bg-green-700 hover:bg-green-600 font-bold text-2xl",children:"Jugar (200 pts.)"})]}),j==="bet"&&d("div",{className:"mb-2 w-full",children:[o("h2",{className:"text-lg font-bold text-blue-400 mb-2",children:"¿Quieres apostar antes de jugar?"}),pt?d("div",{className:"flex flex-col gap-2",children:[o("p",{className:"text-sm text-gray-300 mb-1",children:"Elige cuántos puntos apostar:"}),[100,1e3,1e4].map(L=>d("button",{onClick:()=>{E(!1),T(""),$n("points",null,L)},className:"md:px-6 px-3 py-3 rounded-xl bg-yellow-700 hover:bg-yellow-600 font-semibold text-white text-left",children:[L.toLocaleString()," pts"]},L)),o("button",{onClick:()=>{he(!1),E(!1),T("")},className:"px-6 py-1 font-medium text-start rounded-xl bg-gray-700 hover:bg-gray-600",children:"Volver"})]}):ve?d("div",{children:[o("p",{className:"text-sm text-gray-300 mb-2",children:"Elige el cromo que quieres apostar:"}),o("div",{className:"grid grid-cols-6 gap-1 max-w-2xl mb-2",children:se.slice(Ae*6,Ae*6+6).map((L,G)=>d("div",{onClick:()=>{const Y=se.filter(me=>me.valor===2),fe=se.filter(me=>me.valor!==2);if(L.valor===2&&Y.length<=1){E(!0),T("No puedes apostar tu único cromo épico, necesitas al menos 1 para jugar.");return}if(L.valor!==2&&fe.length<=5){E(!0),T("Necesitas al menos 6 cromos no épicos para apostar uno, si apuestas te quedarÃas con menos del mÃnimo para jugar.");return}E(!1),$n("card",L)},className:"flex flex-col items-center cursor-pointer select-none transition-all duration-150 hover:scale-[1.02]",children:[o("div",{className:`text-[10px] font-semibold text-center py-0.5 px-1 w-full rounded-t ${L.valor===2?"bg-yellow-400 text-black":L.valor===1?"bg-slate-300 text-black":"bg-amber-600 text-black"}`,children:L.valor===2?"Ãpico":L.valor===1?"Raro":"Normal"}),d("div",{className:"aspect-[3/4] w-full relative overflow-hidden",children:[o("img",{src:L.link,alt:L.name,className:"absolute inset-0 w-full h-full object-cover"}),o("div",{className:"absolute bottom-0 left-0 right-0 bg-black/70 px-1 py-0.5 text-center z-10",children:o("div",{className:"text-[10px] text-gray-300 truncate",children:L.manhwa})})]})]},G))}),d("div",{className:" flex justify-between items-center",children:[o("button",{onClick:()=>{re(!1),E(!1),T("")},className:"px-4 py-1 rounded bg-gray-700 hover:bg-gray-600 text-gray-300 text-sm",children:"Volver"}),d("div",{className:"flex items-center gap-2 ",children:[o("button",{onClick:()=>gt(L=>Math.max(0,L-1)),disabled:Ae===0,className:"px-3 py-1 rounded bg-gray-700 hover:bg-gray-600 disabled:opacity-30 text-sm",children:"â"}),d("span",{className:"text-xs text-gray-400",children:[Ae+1," / ",Math.ceil(se.length/6)]}),o("button",{onClick:()=>gt(L=>Math.min(Math.ceil(se.length/6)-1,L+1)),disabled:Ae>=Math.ceil(se.length/6)-1,className:"px-3 py-1 rounded bg-gray-700 hover:bg-gray-600 disabled:opacity-30 text-sm",children:"â"})]})]})]}):d("div",{className:"flex flex-col gap-2 ",children:[d("button",{onClick:()=>{re(!0),gt(0)}
83,className:"md:px-6 px-3 pb-2 rounded-xl bg-purple-700 hover:bg-purple-600 font-semibold text-white text-left",children:[o("div",{className:"text-lg",children:"Apostar un cromo"}),d("div",{className:"font-normal",children:[o("span",{className:"font-medium",children:"Si ganas:"})," ganas un cromo de la misma rareza apostada que aun no tienes."]}),d("div",{className:"font-normal",children:[o("span",{className:"font-medium",children:"Si pierdes:"})," pierdes el cromo apostado."]})]}),d("button",{onClick:()=>he(!0),className:"md:px-6 px-3 pb-2 rounded-xl bg-yellow-700 hover:bg-yellow-600 font-semibold text-white text-left",children:[o("div",{className:"text-lg",children:"Apostar puntos"}),d("div",{className:"font-normal",children:[o("span",{className:"font-medium",children:"Si ganas:"})," recibes lo pts apostado."]}),d("div",{className:"font-normal",children:[o("span",{className:"font-medium",children:"Si pierdes:"})," pierdes lo pts apostado."]})]}),o("button",{onClick:en,className:"px-6 py-1 font-medium text-start rounded-xl bg-gray-700 hover:bg-gray-600",children:"No apostar"})]})]}),j&&B.length>0&&d("div",{className:"mb-4",children:[d("div",{className:"flex items-center justify-between gap-3 mb-2",children:[o("h2",{className:"text-lg font-bold text-blue-400",children:j==="epic"?"Elige tu carta épica":`Elige cromos para tu equipo (${ie}/3)`}),j==="fill"&&d("div",{className:"flex items-center gap-2",children:[d("span",{className:"text-xs text-gray-400",children:[J+1,"/",Math.ceil(B.length/6)]}),o("button",{onClick:$r,className:"px-2 py-0.5 rounded bg-blue-700 hover:bg-blue-400 hover:text-black font-semibold text-gray-200",children:"Siguiente â"})]})]}),o("div",{className:"grid grid-cols-6 gap-1 max-w-2xl",children:B.slice(J*6,J*6+6).map((L,G)=>{const Y=Ac(ai,No,L.manhwa);return d("div",{onClick:()=>j==="epic"?ar(L):aa(L),className:"flex flex-col items-center cursor-pointer select-none transition-all duration-150 hover:scale-[1.02]",children:[o("div",{className:`text-[10px] font-semibold text-center py-0.5 px-1 w-full rounded-t ${L.valor===2?"bg-yellow-400 text-black":L.valor===1?"bg-slate-300 text-black":"bg-amber-600 text-black"}`,children:L.valor===2?"Ãpico":L.valor===1?"Raro":"Normal"}),d("div",{className:"aspect-[3/4] w-full border-gray-700 relative overflow-hidden hover:border-blue-400",children:[o("img",{src:L.link,alt:L.name,className:"absolute inset-0 w-full h-full object-cover"}),Y&&o("div",{className:"absolute top-1 right-1 w-4 h-4 rounded-full z-20 ring-1 ring-black/60",style:{backgroundColor:Lr[Ce.get(tt(L.manhwa))??0]}}),o("div",{className:"absolute bottom-0 left-0 right-0 bg-black/70 px-1 py-0.5 text-center z-10",children:d("div",{className:"text-[11px] font-bold text-gray-300",children:[L.valor===0?3:4,"pts"]})})]})]},G)})})]}),(It==="user"||It==="ai")&&d("div",{className:"flex justify-center gap-6 mb-4",children:[d("div",{className:"px-6 py-4 rounded-xl bg-blue-900 border border-blue-700 text-center min-w-[110px]",children:[o("div",{className:"text-sm text-blue-300",children:"Tus pts"}),o("div",{className:"text-3xl font-bold text-blue-200",children:Vn(y,"user")})]}),d("div",{className:"px-6 py-4 rounded-xl bg-gray-900 border border-gray-800 text-center min-w-[100px]",children:[o("div",{className:"text-sm text-gray-400",children:"Movimientos"}),o("div",{className:"text-3xl font-bold",children:v})]}),d("div",{className:"px-6 py-4 rounded-xl bg-red-900 border border-red-700 text-center min-w-[110px]",children:[o("div",{className:"text-sm text-red-300",children:"IA pts"}),o("div",{className:"text-3xl font-bold text-red-200",children:Vn(y,"ia")})]})]}),na&&o("p",{className:"text-sm text-gray-300 mb-2 max-w-2xl text-center w-full",children:na}),o("h1",{className:"text-2xl font-black text-amber-400 mb-2",children:"Arena de Combate"}),o("div",{className:"grid grid-cols-6 gap-0.5 max-w-2xl",children:y.map((L,G)=>o("div",{ref:Y=>{Tt.current[G]=Y},className:ni(L,G),onClick:()=>{It==="user"&&((L==null?void 0:L.owner)==="user"?Wl(G):p!=null&&L==null&&S.includes(G)&&Hl(G))},children:Rx(L,G)},G))}),Yt&&o("div",{className:"fixed z-50 pointer-events-none rounded-md overflow-hidden shadow-2xl",style:{width:Yt.w,height:Yt.h,left:Yt.x,top:Yt.y,transform:Yt.moving?`translate(${Yt.dx}px,${Yt.dy}px)`:"translate(0,0)",transition:Yt.moving?"transform 210ms ease-out":"none"},children:o("img",{src:Yt.card.link,alt:Yt.card.name,className:"w-full h-full object-cover"})}),Gt&&o(kC,{pWinA:Gt.pWinA,winA:Gt.winA,targetAngle:Gt.targetAngle,cardsA:Gt.cardsA,cardsB:Gt.cardsB,onResolve:Gt.onResolve,title:Gt.title,resolveText:Gt.resolveText}),bo&&o("div",{className:"fixed inset-0 bg-black/70 flex items-center justify-center p-4 z-10",children:o("div",{className:"w-full max-w-md rounded-2xl bg-gray-950 border border-gray-800 p-6",children:o("h3",{className:"text-4xl font-black text-amber-400 text-center",children:"Sin movimientos"})})}),Pe&&o("div",{className:"fixed inset-0 bg-black/70 flex items-center justify-center p-4 z-10",children:d("div",{className:"w-full max-w-md rounded-2xl bg-black border border-gray-800 p-6",children:[Pe.betError?o("p",{className:"text-center text-sm mb-3 text-red-400",children:"Error al resolver la apuesta."}):o("h3",{className:`text-4xl font-black mb-3 text-center ${Pe.win?"text-green-400":"text-red-400"}
83`,children:Pe.title}),Pe.betChoice&&!Pe.betError&&o("div",{className:`text-center text-sm mb-4 ${Pe.win?"text-green-300":"text-red-300"}`,children:Pe.betChoice==="points"?Pe.win?`Apuesta: +${(Af=Pe.betAmount)==null?void 0:Af.toLocaleString()} pts`:`Apuesta: -${(If=Pe.betAmount)==null?void 0:If.toLocaleString()} pts`:Pe.win?d(ye,{children:[o("p",{className:"mb-2",children:"¡Ganaste este cromo!"}),Pe.wonCard?d("div",{className:"mx-auto w-24 rounded-lg overflow-hidden ring-2 ",children:[o("div",{className:`text-[10px] font-semibold text-center py-0.5 ${Pe.wonCard.valor===2?"bg-yellow-400 text-black":Pe.wonCard.valor===1?"bg-slate-300 text-black":"bg-amber-600 text-black"}`,children:Pe.wonCard.valor===2?"Ãpico":Pe.wonCard.valor===1?"Raro":"Normal"}),o("div",{className:"aspect-[3/4] relative",children:o("img",{src:Pe.wonCard.link,alt:Pe.wonCard.name,className:"absolute inset-0 w-full h-full object-cover"})})]}):o("p",{className:"text-yellow-300 text-xs",children:"No hay mas cromos disponibles de esa rareza."}),Pe.wonCard&&o("p",{className:"mt-2 font-semibold",children:Pe.wonCard.name})]}):d(ye,{children:[o("p",{className:"mb-2",children:"Perdiste este cromo:"}),d("div",{className:"mx-auto w-24 rounded-lg overflow-hidden ring-2 ",children:[o("div",{className:`text-[10px] font-semibold text-center py-0.5 ${((zf=Pe.betCard)==null?void 0:zf.valor)===2?"bg-yellow-400 text-black":((Uf=Pe.betCard)==null?void 0:Uf.valor)===1?"bg-slate-300 text-black":"bg-amber-600 text-black"}`,children:((Ff=Pe.betCard)==null?void 0:Ff.valor)===2?"Ãpico":((Bf=Pe.betCard)==null?void 0:Bf.valor)===1?"Raro":"Normal"}),o("div",{className:"aspect-[3/4] relative",children:o("img",{src:(Wf=Pe.betCard)==null?void 0:Wf.link,alt:(Hf=Pe.betCard)==null?void 0:Hf.name,className:"absolute inset-0 w-full h-full object-cover"})})]}),o("p",{className:"mt-2 font-semibold",children:(qf=Pe.betCard)==null?void 0:qf.name})]})}),o("div",{className:"mt-2",children:o("button",{className:"w-full px-4 py-3 rounded-xl bg-gray-800 hover:bg-gray-700 font-bold",onClick:()=>{Za(null),b(Array(Wt).fill(null)),_(new Map),h(Lc),N(null),C([]),A(null),z([]),U(0),At(null),ht(null),_t(""),fr("setup"),rr(!1),Sr(!1),r.current=!1,n.current=0,P(!1),R(null),I(null),V(null),le([]),re(!1),he(!1),gt(0)},children:"Aceptar"})})]})})]})})},EC=()=>
83{const[e]=Rn(),[t,r]=x.useState(e.get("m")??1),[n,a]=x.useState(),[i,s]=x.useState(),[l,c]=x.useState(),[u,f]=x.useState(),[g,m]=x.useState(),[y,b]=x.useState(),[w,_]=x.useState(!0);x.useState(1);const[v,h]=x.useState(1),[p,N]=x.useState(15),[S,C]=x.useState(15),{color:O}=ct();x.useEffect(()=>{document.title="Rank - ManhwaWeb";const k=document.querySelector('meta[name="description"]');k&&k.setAttribute("content","Rank"),ee.get(`${te}/latest/complete`).then(E=>{console.log(E.data),f(E.data.subidos),m(E.data.cromos),a(E.data.rank),s(E.data.gacha),c(E.data.gacha_info)}).catch(E=>{b(E)}).finally(()=>{_(!1)})},[]);const P={dots:!1,infinite:!0,speed:400,slidesToShow:6,slidesToScroll:1,swipeToSlide:!1,swipe:!1,arrows:!1,pauseOnHover:!1,autoplay:!0,autoplaySpeed:1300,draggable:!0,responsive:[{breakpoint:640,settings:{slidesToShow:4,slidesToScroll:1}}]};return w?o(Pt,{}):y?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):d("section",{children:[o("div",{className:O?"mt-1 bg-verde":"mt-1 bg-vmws",children:o("div",{className:"container mx-auto max-w-6xl",children:o("div",{className:"md:mx-2 mx-0",children:d("nav",{role:"tablist",className:" flex md:text-lg text-sm",children:[d("a",{role:"tab","aria-controls":"esp",onClick:()=>{r(1)},className:` cursor-pointer ${t==1&&(O?"active text-verde-text border-b-4 border-verde-text":"active text-vmw border-b-4 border-vmw")} w-1/3 text-center md:py-2 py-1.5`,children:["Juego ",o("span",{className:" text-red-700",children:"version 4.0"})]}),o("a",{role:"tab","aria-controls":"esp",onClick:()=>{r(2)},className:` cursor-pointer ${t==2&&(O?"active text-verde-text border-b-4 border-verde-text":"active text-vmw border-b-4 border-vmw")} w-1/3 text-center md:py-2 py-1.5`,children:"Cofres"}),o("a",{role:"tab","aria-controls":"raw",onClick:()=>r(3),className:` cursor-pointer ${t==3&&(O?"active text-verde-text border-b-4 border-verde-text":"active text-vmw border-b-4 border-vmw")} w-1/3 text-center md:py-2 py-1.5`,children:"Ranking"})]})})})}),o("div",{className:`${t==1?"active":"hidden"} container mx-auto max-w-6xl mt-2`,children:d("div",{className:"mx-2 md:mx-20",children:[o("div",{className:" text-xl text-red-600",children:"FASE BETA"}),o("div",{className:" text-red-600",children:"AHORA PUEDEN APOSTAR AL JUGAR"}),o("div",{className:" text-xl text-green-600",children:"NUEVA GUIA RAPIDA:"}),o("div",{className:" text-xl text-green-600",children:"Se reparo la probabilidad de la ruleta"}),d("div",{className:" text-lg",children:["⢠Cromos de la misma colección conectados ganan bonus: ",o("span",{className:" text-green-600",children:"(ahora tambien si estan en diagonal)"})]}),o("div",{children:"- 3 o 4 juntos â +1"}),o("div",{children:"- 5 o más juntos â +2"}),o("div",{className:" text-lg",children:"⢠Ãpicos tienen habilidades:"}),o("div",{children:"Goku: puede moverse en lÃnea recta cualquier distancia."}),o("div",{children:"Luffy: si entra en combate con menos puntos que el rival, iguala sus puntos."}),o("div",{children:"Eren: mientras siga vivo, todas sus cartas ganan +1 punto, pero él recibe -1."}),o("div",{children:"Naruto: pierde 1 punto después de cada turno tuyo."}),o("div",{children:"Kaneki: la primera vez que pierde un combate, lo repite una vez."}),o("div",{className:" text-lg",children:"⢠El punto de color ayuda a identificar rápidamente cartas de la misma colección."}),o("div",{className:" text-lg",children:"⢠Pueden aparecer espacios corruptos que bloquean movimiento."}),o("div",{className:" text-lg",children:"⢠Cuando se acaban los movimientos, la partida se decide en un combate final por puntos totales."}),o("div",{className:" text-green-500",children:"DEJEN SUS RECOMENDACIONES, WINRATE, BUGS, ETC"}),o(CC,{color:O,cromos:g}),o("div",{className:" px-1 mt-16 mx-auto",children:o(Ja,{url:"https://manhwaweb.com/rank",identifier:"juego",title:"juego"})})]})}),d("div",{className:`${t==3?"active":"hidden"} container mx-auto max-w-6xl mt-2`,children:[o("div",{className:" flex justify-center mx-2",children:o("img",{className:" w-full sm:w-1/2",src:"/assets/banners/new-user.jpg",alt:"new-use"})}),o("div",{className:" mx-2 md:mx-auto mt-5 md:text-lg md:w-3/4",children:"* Se actualiza una vez al dia"}),d("div",{className:"mx-2",children:[d("nav",{className:" justify-center flex md:text-lg bg-black text-base font-light md:w-3/4 md:mx-auto mb-1 md:mb-2",children:[o("button",{onClick:()=>{h(1)},className:` cursor-pointer ${v==1&&"active text-black font-semibold border-2 border-black"} ${v==1&&(O?" bg-verde-fin":"bg-vmwc")} w-1/2 md:text-xl text-center py-2`,children:"Cromos"}),o("button",{onClick:()=>{h(2)},className:` cursor-pointer ${v==2&&"active text-black font-semibold border-2 border-black"} ${v==2&&(O?" bg-verde-fin":"bg-vmwc")} w-1/2 md:text-xl text-center py-2`,children:"Colaboradores"})]}),o("div",{className:" bg-black md:w-3/4 md:mx-auto ",children:d("div",{className:" pt-5 mb-5",children:[d("div",{className:" flex gap-5 items-center px-1 xs:px-5 sm:px-20",children:[o("div",{className:" w-20",children:"Top"}),o("div",{className:" w-full xs:pl-10 md:pl-16",children:"Nick"}),o("div",{children:v==1?"Cromos":d("div",{className:" flex gap-1",children:[o("span",{children:"Caps."}),o("span",{children:"Subidos"})]})})]}),v==1&&n.slice(0,p).map((k,E)=>{var M;return d(Z,{to:`/user/${k.user.public}`,className:" overflow-hidden flex gap-5 items-center px-1 xs:px-3 sm:px-20 border-t border-gray-600",children:[d("div",{className:"w-12 sm:text-base text-sm sm:w-32",children:["# ",E+1]}),d("div",{className:" flex items-center w-full",children:[o("img",{className:` rounded-md h-16 xs:
83h-24 sm:h-36 ${k.user.foto?Number(k.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>89999?"shadow-para_verde shadow-verde-text border-x-2 border-verde-text":Number(k.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>19999?" shadow-para_dorado shadow-dorado border-x-2 border-dorado":Number(k.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>9999?" shadow-para_plateado shadow-gray-500 border-x-2 border-gray-400":Number(k.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>0?" shadow-para_bronce shadow-bronce border-x-2 border-bronce":"":""} `,src:`${(M=k==null?void 0:k.user)==null?void 0:M.foto.replace(ke,ze)}`,alt:"elo"}),d("div",{className:" ml-2 flex flex-col md:flex-row-reverse md:items-center h-16 xs:h-20 sm:h-36 items-start justify-evenly",children:[o("div",{className:" text-base lg:text-xl pl-1 sm:pl-0 line-clamp-1",children:k.user.nick}),d("div",{className:"flex",children:[o("img",{className:" h-8 w-auto xs:h-11 sm:h-16",src:`/assets/elos/00${k.rango-1}.png`,alt:"elo"}),k.user.level!="user"&&o("img",{src:"/assets/elos/admin.png",alt:"medalla",className:"w-14 h-14 sm:hidden -mx-2 xs:-my-1.5 -my-3"})]})]}),k.user.level!="user"&&o("img",{src:"/assets/elos/admin.png",alt:"medalla",className:"w-16 -mx-2 hidden sm:block -my-8"})]}),d("div",{className:" md:text-xl",children:[k.cromos,"/300"]})]},E)}),v==1&&o("div",{onClick:()=>N(n.length),className:`${p>=n.length&&"hidden"} cursor-pointer ${O?"bg-verde-intermedio":"bg-vmws"} text-center py-0.5`,children:"Mostrar más"}),v==2&&u.slice(0,S).map((k,E)=>{var M;return d(Z,{to:`/user/${k.user.public}`,className:" overflow-hidden flex gap-5 items-center px-1 xs:px-3 sm:px-20 border-t border-gray-600",children:[d("div",{className:"w-12 sm:text-base text-sm sm:w-32",children:["# ",E+1]}),d("div",{className:" flex items-center w-full",children:[o("img",{className:` rounded-md h-16 xs:h-24 sm:h-36 ${k.user.foto?Number(k.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>89999?"shadow-para_verde shadow-verde-text border-x-2 border-verde-text":Number(k.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>19999?" shadow-para_dorado shadow-dorado border-x-2 border-dorado":Number(k.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>9999?" shadow-para_plateado shadow-gray-500 border-x-2 border-gray-400":Number(k.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>0?" shadow-para_bronce shadow-bronce border-x-2 border-bronce":"":""} `,src:`${(M=k==null?void 0:k.user)==null?void 0:M.foto.replace(ke,ze)}`,alt:"elo"}),d("div",{className:" ml-2 flex flex-col md:flex-row-reverse md:items-center h-16 xs:h-20 sm:h-36 items-start justify-evenly",children:[o("div",{className:" text-base lg:text-xl pl-1 sm:pl-0 line-clamp-1",children:k.user.nick}),d("div",{className:"flex",children:[o("img",{className:" h-8 w-auto xs:h-11 sm:h-16",src:`/assets/elos/00${k.rango-1}.png`,alt:"elo"}),k.user.level!="user"&&o("img",{src:"/assets/elos/admin.png",alt:"medalla",className:"w-14 h-14 sm:hidden -mx-2 xs:-my-1.5 -my-3"})]})]}),k.user.level!="user"&&o("img",{src:"/assets/elos/admin.png",alt:"medalla",className:"w-16 -mx-2 hidden sm:block -my-8"})]}),o("div",{className:" md:text-xl",children:k.subidos})]},E)}),v==2&&o("div",{onClick:()=>C(u.length),className:`${S>=u.length&&"hidden"} cursor-pointer ${O?"bg-verde-intermedio":"bg-vmws"} text-center py-0.5`,children:"Mostrar más"})]})})]})]}),o("div",{className:`${t==2?"active":"hidden"} container mx-auto max-w-6xl mt-8 `,children:d("div",{className:"mx-2",children:[d("div",{className:"flex mt-5 items-start md:mx-20",children:[o("div",{children:o(Me,{color:O})}),d("h3",{className:"md:text-3xl xs:text-xl -mt-1 text-lg",children:["Cofre de Evento ",d("a",{className:`${O?"text-verde-text":"text-vmw"} font-medium`,href:l[1].replace(ke,""),children:["(",l[0],")"]}),":"]})]}),o("div",{className:" mt-1 md:mx-20",children:d("div",{className:" sm:text-base_ leading-customa text-sm_",children:[o("div",{className:" mb-1",children:"* Puedes comprar 3 cofres cada 24 horas."}),o("div",{className:" mb-1",children:"* El precio por cada cofre es de 200 pts."}),o("div",{className:" mb-2",children:"* Lo que te puede salir en el cofre:"}),o(jf,{...P,className:" mb-5",children:i.map((k,E)=>d("div",{className:" px-1",children:[(!k.valor&&k.link||k.valor&&k.valor==0)&&o("div",{className:" text-black font-medium bg-bronce text-xs w-full text-center sm:text-base mb-0.5",children:"Cromo"}),k.valor&&k.valor==1&&o("div",{className:" text-black font-medium bg-plata text-xs w-full text-center sm:text-base mb-0.5",children:"Cromo Raro"}),k.valor&&k.valor==2&&o("div",{className:" text-black font-medium bg-dorado text-xs w-full text-center sm:text-base mb-0.5",children:"Cromo Ãpico"}),k.img&&o("div",{className:" text-black font-medium bg-verde-texttt text-xs w-full text-center sm:text-base mb-0.5",children:"Puntos"}),o("img",{className:" w-full",src:k.link?k.link.replace(ke,ze):k.img.replace(ke,ze),alt:""}),o("div",{className:" text-center text-xs sm:text-sm",children:k.name})]},E))})]})}),o(y3,{color:O}),d("div",{className:"flex mt-10 items-start mb-1 md:mx-20",children:[o("div",{children:o(Me,{color:O})}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 text-lg",children:"Cofre Diario:"})]}),o("div",{className:" mt-1 md:mx-20",children:d("div",{className:" sm:text-base_ leading-customa text-sm_",children:[o("div",{className:" mb-1",children:"* Puedes comprar este cofre cada 24 horas."}),o("div",{className:" mb-1",children:"* El precio de este cofre es de 400 pts."}),d("div",{className:" mb-2",children:["* Este cofre solo incluye cromos de distintas rarezas ",o(Z,{to:"/all_cromos",className:" font-medium text-blue-400",children:"(ver todos)"}),":"]}),d("div",{className:" flex gap-1",children:[d("div",{className:" sm:w-1/6 w-1/4",children:[o("div",{className:" text-black font-medium bg-bronce text-xs w-full text-center sm:text-base mb-0.5",children:"Cromo"}),o("img",{className:" w-full",src:"/assets/incog.png",alt:""})]}),d("div",{className:" sm:w-1/6 w-1/4",children:[o("div",{className:" text-black font-medium bg-plata text-xs w-full text-center sm:text-base mb-0.5",children:"Cromo Raro"}),o("img",{className:" w-full",src:"/assets/incog.png",alt:""})]}),d("div",{className:" sm:w-1/6 w-1/4",children:[o("div",{className:" text-black font-medium bg-dorado text-xs w-full text-center sm:text-base mb-0.5",children:"Cromo Ãpico"}),o("img",{className:" w-full",src:"/assets/incog.png",alt:""})]})]})]})}),o(Z0,{color:O}),d("div",{className:"flex mt-10 items-center mb-1 md:mx-20",children:[o(Me,{color:O}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 text-lg",children:"Cofre de Gemas:"})]}),o("div",{className:" mt-1 md:mx-20",children:d("div",{className:" sm:text-base_ leading-customa text-sm_",children:[o("div",{className:" mb-1",children:"* Las gemas pueden transformar un cromo por otro de su misma raresa de manera aleatoria."}),o("div",{className:" mb-1",children:"* El precio de este cofre es de 100 pts."}),o("div",{className:" mb-2",children:"* Este cofre solo incluye gemas de distintas rarezas:"}),d("div",{className:" flex gap-1",children:[d("div",{className:" sm:w-1/6 w-1/4",children:[o("div",{className:" text-black font-medium bg-bronce text-xs w-full text-center sm:text-base mb-0.5",children:"Gema"}),o("img",{className:" bg-bronce bg-opacity-60 w-full",src:"/assets/banners/gema.gif",alt:""})]}),d("div",{className:" sm:w-1/6 w-1/4",children:[o("div",{className:" text-black font-medium bg-plata text-xs w-full text-center sm:text-base mb-0.5",children:"Gema Rara"}),o("img",{className:" bg-plata bg-opacity-70 w-full",src:"/assets/banners/gema_rara.gif",alt:""})]}),d("div",{className:" sm:w-1/6 w-1/4",children:[o("div",{className:" text-black font-medium bg-dorado text-xs w-full text-center sm:text-base mb-0.5",children:"Gema Epica"}),o("img",{className:" bg-dorado bg-opacity-60 p-2 w-full",src:"/assets/banners/gema_epica.gif",alt:""})]})]}),o("div",{className:" text-gray-300 text-xs sm:text-base mb-1",children:"(Podrás usar tus gemas de
83sde: Mi Perfil -> Cromos)"})]})}),o(vC,{color:O})]})})]})},Ox=({manhwas:e})=>e.map(t=>o("div",{className:" overflow-hidden",children:d("a",{href:`/manhwa/${t.real_id??t._id}`,className:"",children:[o("div",{className:` text-xs md:text-base bottom-0 mb-0 right-0 w-full rounded-t-md bg-opacity-80 text-center ${t._tipo=="manhua"?" bg-marron":t._tipo=="manhwa"?" bg-green-600":t._tipo=="novela"?" bg-red-700":t._tipo=="doujinshi"?" bg-yellow-500":t._tipo=="manga"?" bg-blue-600":" bg-fuchsia-400"}`,children:t==null?void 0:t._tipo.replace("_"," ").toUpperCase()}),d("div",{className:"relative",children:[o("img",{className:"w-full object-cover aspect-defect",src:t._imagen,alt:t._id,loading:"lazy"}),t._categoris&&(t._categoris.includes(45)||t._categoris.includes(27))&&o("span",{className:` ${t._categoris.includes(45)?" bg-purple-400 ":" bg-sky-400"} rounded-md sm:text-lg sm:px-1.5 px-1 font-semibold border absolute top-1 left-1`,children:t._categoris.includes(45)?"BL":"GL"}),o("div",{className:"absolute sm:text-xs text-xxxs top-1 right-1 flex ",children:t._erotico=="si"&&o("span",{className:" rounded-full bg-gradient-to-r bg-white border-2 border-red-700 text-black px-0.5 py-1 font-bold",children:"+18"})}),o("span",{className:`absolute text-sm md:text-lg bottom-0 mb-0 font-mono right-0 w-full bg-opacity-80 text-center py-0.5
83sm:py-1 ${t._demografi=="seinen"?" bg-red-700":t._demografi=="josei"?" bg-purple-700":t._demografi=="shojo"?" bg-fuchsia-500":" bg-yellow-600"}`,children:t._demografi.charAt(0).toUpperCase()+t._demografi.replace("sho","shou").slice(1)})]}),o("div",{className:"p-1",children:o("p",{className:"text-xs_ sm:text-sm_ leading-customa text-texto-blanco text-center font-sans font-medium line-clamp-4",children:t.the_real_name})})]})},t._id)),OC=()=>{const e=[{id:3,nombre:"Acción"},{id:29,nombre:"Aventura"},{id:18,nombre:"Comedia"},{id:1,nombre:"Drama"},{id:42,nombre:"Recuentos de la vida"},{id:2,nombre:"Romance"},{id:5,nombre:"Venganza"},{id:6,nombre:"Harem"},{id:23,nombre:"FantasÃa"},{id:31,nombre:"Sobrenatural"},{id:25,nombre:"Tragedia"},{id:43,nombre:"Psicológico"},{id:32,nombre:"Horror"},{id:44,nombre:"Thriller"},{id:28,nombre:"Historias cortas"},{id:30,nombre:"Ecchi"},{id:34,nombre:"Gore"},{id:27,nombre:"Girls love"},{id:45,nombre:"Boys love"},{id:41,nombre:"Reencarnación"},{id:37,nombre:"Sistema de niveles"},{id:33,nombre:"Ciencia ficción"},{id:38,nombre:"ApocalÃptico"},{id:39,nombre:"Artes marciales"},{id:40,nombre:"Superpoderes"},{id:35,nombre:"Cultivación (cultivo)"},{id:8,nombre:"Milf"}],[t]=Rn(),[r,n]=x.useState(),a=tr(),i=x.useRef(!0),{color:s}=ct(),l=t.getAll("genders"),c=(T,j)=>T.reduce((A,B)=>(A[B.id]=j.includes(B.id.toString()),A),{}),[u,f]=x.useState({buscar:t.get("buscar")??"",order_item:t.get("order_item")??"alfabetico",order_dir:t.get("order_dir")??"des",estado:t.get("estado")??"",tipo:t.get("tipo")??"",erotico:t.get("erotico")??"",demografia:t.get("demografia")??""}),[g,m]=x.useState(!0),[y,b]=x.useState(),[w,_]=x.useState(!1),[v,h]=x.useState(0),[p,N]=x.useState(0),[S,C]=x.useState(()=>c(e,l)),[O,P]=x.useState(t.getAll("genders").length),k=T=>{const{name:j,value:A}=T.target;f(B=>({...B,[j]:A}))},E=T=>{T.target.checked?O<4?P(O+1):(alert("¡Solo se permiten hasta 4 checkbox seleccionados!"),T.target.checked=!1):P(O-1);const{value:j,checked:A}=T.target;C({...S,[j]:A})},M=T=>{T.preventDefault();const j=T.target,A=new FormData(j),B=new URLSearchParams(A).toString();a(`/library?${B}`)};return x.useEffect(()=>{m(!0),h(!1),N(!1),document.title="Biblioteca - ManhwaWeb";const T=document.querySelector('meta[name="description"]');T&&T.setAttribute("content","Biblioteca manhwas +18 en español y raws online"),i.current?i.current=!1:(window.scrollTo({top:0,behavior:"smooth"}),f({buscar:t.get("buscar")??"",order_item:t.get("order_item")??"alfabetico",order_dir:t.get("order_dir")??"des",estado:t.get("estado")??"",tipo:t.get("tipo")??"",erotico:t.get("erotico")??"",demografia:t.get("demografia")??""}),C(c(e,l)),P(t.getAll("genders").length)),ee.get(`${te}/manhwa/library?buscar=${t.get("buscar")??""}&estado=${t.get("estado")??""}&tipo=${t.get("tipo")??""}&erotico=${t.get("erotico")??""}&demografia=${t.get("demografia")??""}&order_item=${t.get("order_item")??"alfabetico"}&order_dir=${t.get("order_dir")??"desc"}&page=${t.get("page")??"0"}&generes=${t.getAll("genders").join("a")??""}`).then(j=>{console.log(j.data.data),n(j.data.data),_(j.data.next)}).catch(j=>{b(j)}).finally(()=>{m(!1)})},[t]),g?o(Pt,{}):y?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):d("div",{children:[o("div",{className:"container mx-auto max-w-6xl mb-4 sm:mt-2",children:o("div",{className:"mx-2 text-black ",children:d("form",{onSubmit:M,children:[d("div",{className:"flex md:gap-2 gap-1 mt-1 mb-3",children:[o("input",{type:"text",placeholder:"Buscar...",value:u.buscar,onChange:k,name:"buscar",className:" w-7/12 md:w-9/12 rounded-sm h-9"}),o("button",{type:"submit",className:` w-5/12 md:w-3/12 ${s?"bg-verde-text":"bg-vmw"} font-semibold text-black rounded-sm h-9 md:text-lg text-base cursor-pointer`,children:"Buscar"})]}),o("div",{className:"flex md:gap-14 gap-3 "}),o("div",{onClick:()=>p==0?N(1):N(0),className:`${p==1?"bg-prueba rounded-t-md pl-2":s?" bg-verde rounded-sm pl-4":"bg-vmws rounded-sm pl-4"} text-white xs:flex items-center cursor-pointer`,children:d("div",{className:" flex items-center",children:[o(Me,{color:s,act:p==1,sec:!0}),o("div",{className:`${p==1?" text-base-negro font-semibold":"pl-3"} `,children:"Filtros"})]})}),d("div",{className:`${p==1?"active":"hidden"} flex flex-wrap bg-prueba xs:px-2 xs:pt-0 pt-2 pb-1 md:text-base sm:text-base text-sm `,children:[d("div",{className:"flex gap-2 w-full sm:w-1/2 mb-2 md:w-1/4",children:[o("div",{className:" w-5/12 sm:w-auto ",children:"Tipo:"}),d("select",{value:u.tipo,onChange:k,name:"tipo",id:"tipo",className:" w-1/2 sm:w-auto text-sm md:text-base md:font-normal font-medium",children:[o("option",{value:"",children:"Ver todo"}),o("option",{value:"manhwa",children:"Manhwa"}),o("option",{value:"manga",children:"Manga"}),o("option",{value:"manhua",children:"Manhua"}),o("option",{value:"doujinshi",children:"Doujinshi"}),o("option",{value:"novela",children:"Novela"}),o("option",{value:"one_shot",children:"One shot"})]})]}),d("div",{className:"flex gap-2 w-full sm:w-1/2 mb-2 md:w-1/4",children:[o("div",{className:"w-5/12 sm:w-auto ",children:"Demografia:"}),d("select",{value:u.demografia,onChange:k,name:"demografia",id:"demografia",className:" w-1/2 sm:w-auto text-sm md:text-base md:font-normal font-medium",children:[o("option",{value:"",children:"Ver todo"}),o("option",{value:"seinen",children:"Seinen"}),o("option",{value:"shonen",children:"Shonen"}),o("option",{value:"josei",children:"Josei"}),o("option",{value:"shojo",children:"Shojo"})]})]}),d("div",{className:"flex gap-2 w-full sm:w-1/2 mb-2 md:w-1/4 ",children:[o("div",{className:" w-5/12 sm:w-auto ",children:"Estado:"}),d("select",{value:u.estado,onChange:k,name:"estado",id:"estado",className:" w-1/2 sm:w-auto text-sm md:text-base md:font-normal font-medium",children:[o("option",{value:"",children:"Ver todo"}),o("option",{value:"publicandose",children:"Publicandose"}),o("option",{value:"pausado",children:"Pausado"}),o("option",{value:"finalizado",children:"Finalizado"})]})]}),d("div",{className:"flex gap-2 w-full sm:w-1/2 mb-2 md:w-1/4",children:[o("div",{className:" w-5/12 sm:w-auto ",children:"Erotico:"}),d("select",{value:u.erotico,onChange:k,name:"erotico",id:"erotico",className:" w-1/2 sm:w-auto text-sm md:text-base md:font-normal font-medium",children:[o("option",{value:"",children:"Ver todo"}),o("option",{value:"si",children:"Si"}),o("option",{value:"no",children:"No"})]})]})]}),d("div",{onClick:()=>v==0?h(1):h(0),className:`${v==1?"bg-prueba rounded-t-md pl-2":s?" bg-verde rounded-sm pl-4":" bg-vmws rounded-sm pl-4"} text-white xs:flex mt-3 items-center cursor-pointer`,children:[d("div",{className:" flex items-center",children:[o(Me,{color:s,act:v==1,sec:!0}),o("div",{className:`${v==1?" text-base-negro font-semibold":"pl-3"} `,children:"Generos"})]}),O>0&&d("span",{className:`${v==1?" text-base-negro":s?" text-verde-text":"text-vmw"} md:ml-8 sm:ml-6 xs:ml-3`,children:["(",O," generos marcadas)"]})]}),o("div",{className:`${v==1?"active":"hidden"} grid md:grid-cols-4 grid-cols-2 sm:grid-cols-3 bg-prueba xs:px-2 xs:pt-0 pt-2 pb-1 md:text-base sm:text-base xs:text-sm text-xs`,children:e.map(({id:T,nombre:j})=>d("div",{children:[o("input",{type:"checkbox",name:"genders",value:T,checked:S[T],onChange:E,className:"form-checkbox h-4 w-4 text-white"})," ",j]},T))}),o("div",{className:" mt-1 md:mt-3 flex justify-end",children:d("div",{className:"md:flex md:gap-1 w-8/12 grid grid-cols-1 gap-0",children:[o("div",{className:" text-white sm:w-32 mr-8",children:"Ordenar por:"}),d("div",{className:" flex md:w-full md:gap-1 gap-0.5 ",children:[d("select",{value:u.order_item,onChange:k,name:"order_item",id:"order_item",className:" w-full text-sm md:text-base md:font-normal font-medium",children:[o("option",{value:"alfabetico",children:"Alfabetico"}),o("option",{value:"creacion",children:"Creacion"}),o("option",{value:"popularidad",children:"Popularidad"}),o("option",{value:"num_chapter",children:"Num. Capitulos"})]}),d("select",{value:u.order_dir,onChange:k,name:"order_dir",id:"order_dir",className:" w-full text-sm md:text-base md:font-normal font-medium",children:[o("option",{value:"desc",children:"DESC"}),o("option",{value:"asc",children:"ASC"})]})]})]})})]})})}),o("div",{className:"container mx-auto max-w-6xl pb-4",children:o("div",{className:"mx-2",children:r.length===0?o(vo,{}):o("div",{className:"grid grid-cols-2 xs:grid-cols-3 sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-6 gap-2",children:o(Ox,{manhwas:r})})})}),(w||t.get("page")&&Number(t.get("page")>0))&&o("div",{className:"container mx-auto max-w-5xl mb-10",children:o("div",{className:"mx-2",children:d("div",{className:"flex items-center justify-center mx-auto gap-1",children:[t.get("page")&&Number(t.get("page")>0)?d(Z,{to:`/library?buscar=${t.get("buscar")??""}&estado=${t.get("estado")??""}&tipo=${t.get("tipo")??""}&erotico=${t.get("erotico")??""}&demografia=${t.get("demografia")??""}&order_item=${t.get("order_item")??"alfabetico"}&order_dir=${t.get("order_dir")??"desc"}&page=${Number(t.get("page"))-1}${t.has("genders")?t.getAll("genders").map(T=>`&genders=${T}`).join(""):""}`,className:`border-2 py-1 w-28 84 text-center ${s?"bg-verde text-verde-text border-verde-text":"bg-vmws text-vmw border-vmw"}`,children:["<<"," Anterior"]}):d("span",{className:` border-2 py-1 w-28 text-center ${s?"bg-verde":"bg-vmws"} text-black border-black`,children:["<<"," Anterior"]}),w?d(Z,{to:`/library?buscar=${t.get("buscar")??""}&estado=${t.get("estado")??""}&tipo=${t.get("tipo")??""}&erotico=${t.get("erotico")??""}&demografia=${t.get("demografia")??""}&order_item=${t.get("order_item")??"alfabetico"}&order_dir=${t.get("order_dir")??"desc"}&page=${t.get("page")&&Number(t.get("page")>=0)?Number(t.get("page"))+1:1}${t.has("genders")?t.getAll("genders").map(T=>`&genders=${T}`).join(""):""}`,className:` border-2 py-1 w-28 text-center 85 ${s?"bg-verde text-verde-text border-verde-text":"bg-vmws text-vmw border-vmw"}`,children:["Siguiente ",">>"]}):d("span",{className:` border-2 py-1 w-28 text-center ${s?"bg-verde":"bg-vmws"} text-black border-black`,children:["Siguiente ",">>"]})]})})})]})};function Si(){const e=ke===ze;return x.useEffect(()=>{document.title="Not Found - ManhwaWeb"},[]),d("div",{className:" bg-base-negro min-h-screen text-white flex flex-col justify-between",children:[o(Dl,{}),d("div",{children:[d("header",{children:[o("div",{className:" bg-verde",children:o("div",{className:"container mx-auto max-w-5xl",children:o(kf,{color:e})})}),o("div",{children:o("div",{className:"container mx-auto max-w-5xl",children:o(O0,{color:e})})})]}),o("div",{className:"container mx-auto max-w-5xl mt-10",children:d("div",{className:" mx-2 flex sm:flex-row flex-col gap-5 justify-evenly items-center",children:[o("svg",{className:" h-40 w-40 xs:h-52 sm:h-72 xs:w-52 sm:w-72",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"SVGRepo_iconCarrier",children:[" ",o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM10.3027 13.3942C10.2316 13.7147 10.5038 14 10.8479 14H13.0406C13.2979 14 13.5151 13.8351 13.6064 13.6061C13.697 13.3789 14.0117 12.9674 14.254 12.7518C14.4827 12.5112 14.7213 12.2848 14.9563 12.0618C15.8824 11.183 16.754 10.356 16.754 8.91047C16.754 6.40301 14.582 5 12.2707 5C10.5038 5 8.06416 5.80604 7.58396 8.50363C7.48716 9.04737 7.94773 9.5 8.50002 9.5H9.91229C10.4388 9.5 10.8312 9.07642 11.0121 8.582C11.1863 8.10604 11.5379 7.7551 12.2707 7.7551C13.6066 7.7551 13.6064 9.22371 12.8346 10.1843C12.5434 10.5467 12.2023 10.8677 11.8648 11.1853C11.1798 11.8298 10.5098 12.4602 10.3027 13.3942ZM13.9999 17C13.9999 18.1046 13.1045 19 11.9999 19C10.8954 19 9.99994 18.1046 9.99994 17C9.99994 15.8954 10.8954 15 11.9999 15C13.1045 15 13.9999 15.8954 13.9999 17Z",fill:"#2C3E50"})," "]})}),d("div",{className:" w-5/6 sm:w-3/4 md:mb-0 mb-3",children:[o("div",{className:"text-verde-text text-xl xs:text-2xl sm:text-5xl md:text-7xl",children:"404 Not Found"}),o("div",{className:" text-verde-text text-base xs:text-xl sm:text-4xl md:text-5xl mt-4",children:"Ops! La URL a la que intenta acceder no se encuentra."})]})]})})]}),o(Cf,{color:e})]})}const PC=()=>{const{userDatos:e}=x.useContext(Xa);return d(ye,{children:[o(Dl,{}),(()=>localStorage.getItem("tokenCommers"))()&&(e.permisos=="admin"||e.permisos=="sub-admin"&&e.usuario=="ice_cat")?d("div",{className:" bg-green-800 min-h-screen",children:[o("header",{className:"container mx-auto max-w-5xl",children:o(kf,{})}),o("div",{children:o(Ol,{})})]}):o(Si,{})]})};
85function TC(){const[e,t]=x.useState(),[r,n]=x.useState(),[a,i]=x.useState(),[s,l]=x.useState(),[c,u]=x.useState(),[f,g]=x.useState(),m=h=>{t(!1),n(),i(!1),h.preventDefault();const p=JSON.parse(h.target.description.value);ee.post(`${te}/manhwa/create`,p,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(N=>{i(!0)}).catch(N=>{t(!0),n(N.response.data.errors[0])})},y=h=>{t(!1),n(),i(!1),h.preventDefault();const p=JSON.parse(h.target.descriptiondos.value);ee.post(`${te}/manhwa/vinculation`,p,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(N=>{i(!0)}).catch(N=>{t(!0),n(N.response.data.errors[0])})},b=async h=>{t(!1),l(),n(),i(!1),h.preventDefault();const p=JSON.parse(h.target.descriptiontres.value);let N=[];for(const S of p)try{if(S.length>0){let C=await ee.post(`${te}/latest/create-spoiler`,S,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}});i(!0),N.push("+"+C.data+"+")}else t(!0),N.push("-error, vacio-")}catch(C){t(!0),N.push("-"+C.response.data.errors[0]+"-")}l(N)},w=async h=>{t(!1),n(),i(!1),u(),h.preventDefault();const p=JSON.parse(h.target.descriptiontresymedio.value);let N=[];for(const S of p)try{let C=await ee.post(`${te}/manhwa/create`,S,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}});i(!0),N.push("+"+(S._link??S.link_esp??S.link_raw).replace("https://www.manhwas.net/manga/","").replace("https://manhwas.men/manga/","")+"++"+C.data+"++")}catch(C){t(!0),N.push("-"+C.response.data.errors[0].toUpperCase()+" "+(S._link??S.link_esp??S.link_raw).replace("https://www.manhwas.net/manga/","").replace("https://manhwas.men/manga/","")+"---")}u(N.reverse())},_=async h=>{t(!1),n(),i(!1),g(),h.preventDefault();const p=JSON.parse(h.target.descriptionmanhwamio.value);let N=[];for(const S of p)try{let C=await ee.post(`${te}/chapters/update`,S,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}});i(!0),N.push("+"+C.data+"++")}catch(C){t(!0),N.push("-"+C.response.data.errors[0].toUpperCase()+"---")}g(N.reverse())},v=h=>{t(!1),n(),i(!1),h.preventDefault();const p=JSON.parse(h.target.admingustos.value);ee.post(`${te}/latest/admin-gustos`,p,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(N=>{i(!0)}).catch(N=>{t(!0),n(N.response.data.errors[0])})};return d("div",{children:[o("div",{children:"Crear O Actualizar"}),d("form",{onSubmit:m,children:[o("label",{htmlFor:"description",children:"Description"}),o("textarea",{className:" w-3/4 h-52",type:"text",name:"description"}),o("button",{className:"bg-gradient w-full",type:"submit",children:"Ingresar"}),e&&o("div",{className:"text-center p-2 mb-4 bg-red-100 text-red-800",children:r}),a&&o("div",{className:"text-center p-2 mb-4 bg-blue-100 text-blue-800",children:"Creado o actualizado "})]}),o("div",{children:"Vincular"}),d("form",{onSubmit:y,children:[o("label",{htmlFor:"descriptiondos",children:"DescriptionDos"}),o("textarea",{className:" w-3/4 h-52",type:"text",name:"descriptiondos"}),o("button",{className:"bg-gradient w-full",type:"submit",children:"Ingresar"}),e&&o("div",{className:"text-center p-2 mb-4 bg-red-100 text-red-800",children:r}),a&&o("div",{className:"text-center p-2 mb-4 bg-blue-100 text-blue-800",children:"Vinculado "})]}),o("div",{children:"Spoilers"}),d("form",{onSubmit:b,children:[o("label",{htmlFor:"descriptiontres",children:"DescriptionTres"}),o("textarea",{className:" w-3/4 h-52",type:"text",name:"descriptiontres"}),o("button",{className:"bg-gradient w-full",type:"submit",children:"Ingresar"}),a&&o("div",{className:"text-center p-2 mb-4 bg-blue-100 text-blue-800",children:"spoileado "}),s&&o("div",{className:"text-center p-2 mb-4 bg-red-100 text-red-800",children:s.map((h,p)=>d("div",{children:[h,o("br",{})]},p))})]}),o("div",{children:"AllNuevosManhwas"}),d("form",{onSubmit:w,children:[o("label",{htmlFor:"descriptiontresymedio",children:"DescriptionTresyMedio"}),o("textarea",{className:" w-3/4 h-52",type:"text",name:"descriptiontresymedio"}),o("button",{className:"bg-gradient w-full",type:"submit",children:"Ingresar"}),a&&o("div",{className:"text-center p-2 mb-4 bg-blue-100 text-blue-800",children:"allecho "}),c&&o("div",{className:"text-center p-2 mb-4 bg-red-100 text-red-800",children:c.map((h,p)=>d("div",{children:[d("span",{children:["(",p+1,")"]}),h,o("br",{})]},p))})]}),o("div",{children:"ManhwaNetAhoraMio"}),d("form",{onSubmit:_,children:[o("label",{htmlFor:"descriptionmanhwamio",children:"ManhwaNetAhoraMio"}),o("textarea",{className:" w-3/4 h-52",type:"text",name:"descriptionmanhwamio"}),o("button",{className:"bg-gradient w-full",type:"submit",children:"Ingresar"}),a&&o("div",{className:"text-center p-2 mb-4 bg-blue-100 text-blue-800",children:"allecho "}),f&&o("div",{className:"text-center p-2 mb-4 bg-red-100 text-red-800",children:f.map((h,p)=>d("div",{children:[d("span",{children:["(",p+1,")"]}),h,o("br",{})]},p))})]}),o("div",{children:"Admin Gustos"}),d("form",{onSubmit:v,children:[o("label",{htmlFor:"admingustos",children:"Admin"}),o("textarea",{className:" w-3/4 h-52",type:"text",name:"admingustos"}),o("button",{className:"bg-gradient w-full",type:"submit",children:"Ingresar"}),e&&o("div",{className:"text-center p-2 mb-4 bg-red-100 text-red-800",children:r}),a&&o("div",{className:"text-center p-2 mb-4 bg-blue-100 text-blue-800",children:"Ty Admin "})]})]})}const wo=({color:e})=>o("div",{children:o("div",{className:"container mx-auto max-w-5xl h-96",children:o("div",{className:"mx-2 flex justify-center",children:d("div",{className:`text-center md:w-2/3 w-3/4 my-20 md:text-5xl sm:text-xl text-base text-white ${e?"bg-verde":"bg-vmws"} p-4 rounded-md`,children:["Debes ",o(Z,{to:"/login",className:` ${e?"text-verde-text":"text-vmw"} font-semibold hover:underline`,children:"Iniciar Sesion"})," para acceder a esta parte de la pagina."]})})})}),_p=()=>{const e=ta(),[t]=Rn(),r=Nr(),[n,a]=x.useState(),[i,s]=x.useState(),[l,c]=x.useState(!0),[u,f]=x.use
85State(!1),[g,m]=x.useState(!1),{color:y}=ct();x.useEffect(()=>{f(!1),document.title="Mis Manhwas - ManhwaWeb";const w=async()=>{try{let _=await ee.get(`${te}/follow/manhwa/${e.item!="pendiente"&&e.item!="finalizado"?"siguiendo":e.item}?page=${t.get("page")??0}`,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}});console.log(_.data),a(_.data.manhwas2),m(_.data.next)}catch(_){s(_)}c(!1),f(!0)};localStorage.getItem("tokenCommers")&&w()},[r.pathname,t]);const b=()=>{window.scrollTo({top:0,behavior:"smooth"})};return localStorage.getItem("tokenCommers")?l?o(Pt,{}):i?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):d("section",{children:[o("div",{className:y?" bg-verde mt-1":"bg-vmws mt-1",children:o("div",{className:"container mx-auto max-w-6xl",children:o("div",{className:"md:mx-2 mx-0",children:d("nav",{className:" flex md:text-lg text-sm",children:[d(Z,{className:({isActive:w})=>w||e.item!="pendiente"&&e.item!="finalizado"?" py-1 w-1/3 flex flex-col items-center justify-center text-center border-b-8 border-azul-sig bg-azul-sig bg-opacity-10":"w-1/3 flex flex-col items-center py-1 justify-center text-center",to:"/mis-manhwas/siguiendo",children:[o("img",{src:"/assets/elos/sig.png",className:"w-7 h-7 sm:w-9 sm:h-9 "}),o("div",{className:"sm:text-base text-sm text-white ",children:"Siguiendo"})]}),d(Z,{className:({isActive:w})=>w?" py-1 w-1/3 flex flex-col items-center justify-center text-center border-b-8 border-amarillo-pen bg-amarillo-pen bg-opacity-5":"w-1/3 flex flex-col items-center py-1 justify-center text-center",to:"/mis-manhwas/pendiente",children:[o("img",{src:"/assets/elos/pen.png",className:"w-7 h-7 sm:w-9 sm:h-9 "}),o("div",{className:"sm:text-base text-sm text-white ",children:"Pendiente"})]}),d(Z,{className:({isActive:w})=>w?" py-1 w-1/3 flex flex-col items-center justify-center text-center border-b-8 border-verde-fin bg-verde-fin bg-opacity-5":"w-1/3 flex flex-col items-center py-1 justify-center text-center",to:"/mis-manhwas/finalizado",children:[o("img",{src:"/assets/elos/fin.png",className:"w-7 h-7 sm:w-9 sm:h-9 "}),o("div",{className:"sm:text-base text-sm text-white ",children:"Finalizado"})]})]})})})}),u&&o("div",{className:"container mx-auto max-w-6xl mt-4 pb-4",children:o("div",{className:"mx-2",children:n.length===0?o(vo,{}):o("div",{id:"uni",className:" grid grid-cols-2 xs:grid-cols-3 sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-6 gap-2",children:n.map((w,_)=>{if(w!=null)return o("div",{className:" overflow-hidden",children:d("a",{href:`/manhwa/${w.real_id??(w==null?void 0:w._id)}`,className:"",children:[d("div",{className:"relative",children:[o("img",{className:"w-full rounded-t-md aspect-defect",src:w==null?void 0:w._imagen,alt:w==null?void 0:w.the_real_name}),o("span",{className:`absolute text-xs flex bottom-0 right-0 w-full bg-opacity-80 text-center ${w.chapter>=(w==null?void 0:w._numero_cap)?"bg-red-800":w.chapter>=(w==null?void 0:w.numero_cap_esp)?"bg-yellow-800":" bg-green-700"} text-white px-2 py-1`,children:d("span",{className:" text-center w-full sm:font-medium",children:[w.chapter==0||w.chapter==-999?o("span",{className:" font-black",children:"-"}):w.chapter," / ",w==null?void 0:w.numero_cap_esp]})})]}),o("div",{className:"p-1",children:o("p",{className:"text-xs_ sm:text-sm_ leading-customa text-texto-blanco text-center font-sans font-medium line-clamp-3",children:w==null?void 0:w.the_real_name})})]})},_)})})})}),!u&&o(Pt,{}),u&&(g||t.get("page")&&Number(t.get("page")>0))&&o("div",{className:"container mx-auto max-w-5xl pb-4",children:o("div",{className:"mx-2",children:d("div",{className:"flex items-center justify-center mx-auto gap-1",children:[t.get("page")&&Number(t.get("page")>0)?d(Z,{to:`/mis-manhwas/${e.item??"siguiendo"}?page=${Number(t.get("page"))-1}`,className:`border-2 py-1 w-28 text-center bg-verde \r 86 text-verde-text border-verde-text`,onClick:b,children:["<<"," Anterior"]}):d("span",{className:" border-2 py-1 w-28 text-center bg-verde text-black border-black",children:["<<"," Anterior"]}),g?d(Z,{to:`/mis-manhwas/${e.item??"siguiendo"}?page=${t.get("page")&&Number(t.get("page")>=0)?Number(t.get("page"))+1:1}`,className:` border-2 \r
87 py-1 w-28 text-center bg-verde text-verde-text border-verde-text`,onClick:b,children:["Siguiente ",">>"]}):d("span",{className:" border-2 py-1 w-28 text-center bg-verde text-black border-black",children:["Siguiente ",">>"]})]})})})]}):o(wo,{color:y})},MC=({color:e,onClose:t})=>d(ye,{children:[e==1&&d("div",{className:" flex bg-orange-500 m-2 gap-2 p-1 rounded-md shadow-white shadow justify-evenly items-center",children:[o("svg",{width:"40px",height:"40px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o("path",{d:"M13.7525 2.11124C12.9926 0.729683 11.0075 0.729688 10.2476 2.11124L0.938894 19.0362C0.205794 20.3691 1.17012 22 2.69133 22H21.3088C22.83 22 23.7943 20.3691 23.0612 19.0362L13.7525 2.11124ZM12.0001 3.07507L21.3088 20H2.69133L12.0001 3.07507ZM12.0001 8C12.5523 8 13 8.44772 13 9V14C13 14.5523 12.5523 15 12.0001 15C11.4478 15 11 14.5523 11 14V9C11 8.44772 11.4478 8 12.0001 8ZM13.2501 17.75C13.2501 18.4404 12.6904 19 12.0001 19C11.3097 19 10.7501 18.4404 10.7501 17.75C10.7501 17.0596 11.3097 16.5 12.0001 16.5C12.6904 16.5 13.2501 17.0596 13.2501 17.75Z",fill:"#ffffff"})}),o("div",{className:" sm:w-64 w-4/5 sm:text-base text-sm ",children:"Necesitas logearte para usar esta funcionalidad."}),o("button",{className:" hover:text-gray-600 font-bold pr-1 text-xl sm:text-2xl",onClick:t,children:"x"})]}),e==2&&d("div",{className:" flex bg-red-600 m-2 gap-2 p-1 rounded-md shadow-white shadow justify-evenly items-center",children:[d("svg",{width:"40px",height:"40px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o("path",{d:"M7.95206 16.048L16.0769 7.92297",stroke:"#ffffff",strokeWidth:"2"}),o("path",{d:"M16.0914 16.0336L7.90884 7.85101",stroke:"#ffffff",strokeWidth:"2"}),o("path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#ffffff",strokeWidth:"2"})]}),o("div",{className:" sm:w-64 w-4/5 sm:text-base text-sm ",children:"Ha ocurrido un error, vuelve a intentarlo en un momento."}),o("button",{className:" hover:text-gray-600 font-bold pr-1 text-xl sm:text-2xl",onClick:t,children:"x"})]}),e==3&&d("div",{className:" flex bg-green-700 m-2 gap-2 p-1 rounded-md shadow-white shadow justify-evenly items-center",children:[o("svg",{width:"40px",height:"40px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"#ffffff",children:d("g",{id:"SVGRepo_iconCarrier",children:[" ",o("path",{stroke:"#ffffff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M17 5L8 15l-5-4"})," "]})}),o("div",{className:" sm:w-64 w-4/5 sm:text-base text-sm ",children:"Se ha marcado correctamente."}),o("button",{className:" hover:text-gray-600 font-bold pr-1 text-xl sm:text-2xl",onClick:t,children:"x"})]}),e==4&&d("div",{className:" flex bg-green-500 m-2 gap-2 p-1 rounded-md shadow-white shadow justify-evenly items-center",children:[o("svg",{width:"40px",height:"40px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"#ffffff",children:d("g",{id:"SVGRepo_iconCarrier",children:[" ",o("path",{stroke:"#ffffff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M17 5L8 15l-5-4"})," "]})}),o("div",{className:" sm:w-64 w-4/5 sm:text-base text-sm ",children:"Se ha desmarcado correctamente."}),o("button",{className:" hover:text-gray-600 font-bold pr-1 text-xl sm:text-2xl",onClick:t,children:"x"})]}),e==5&&d("div",{className:" flex bg-blue-500 m-2 gap-2 p-1 rounded-md shadow-white shadow justify-evenly items-center",children:[o("svg",{width:"40px",height:"40px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o("path",{d:"M13.7525 2.11124C12.9926 0.729683 11.0075 0.729688 10.2476 2.11124L0.938894 19.0362C0.205794 20.3691 1.17012 22 2.69133 22H21.3088C22.83 22 23.7943 20.3691 23.0612 19.0362L13.7525 2.11124ZM12.0001 3.07507L21.3088 20H2.69133L12.0001 3.07507ZM12.0001 8C12.5523 8 13 8.44772 13 9V14C13 14.5523 12.5523 15 12.0001 15C11.4478 15 11 14.5523 11 14V9C11 8.44772 11.4478 8 12.0001 8ZM13.2501 17.75C13.2501 18.4404 12.6904 19 12.0001 19C11.3097 19 10.7501 18.4404 10.7501 17.75C10.7501 17.0596 11.3097 16.5 12.0001 16.5C12.6904 16.5 13.2501 17.0596 13.2501 17.75Z",fill:"#ffffff"})}),o("div",{className:" sm:w-64 w-4/5 sm:text-base text-sm ",children:"Es necesario clasificar la obra en un estado, para marcar los capitulos vistos."}),o("button",{className:" hover:text-gray-600 font-bold pr-1 text-xl sm:text-2xl",onClick:t,children:"x"})]}),e==6&&d("div",{className:" flex bg-gray-500 m-2 gap-2 p-1 rounded-md shadow-white shadow justify-evenly items-center",children:[d("svg",{width:"40px",height:"40px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o("path",{d:"M7.95206 16.048L16.0769 7.92297",stroke:"#ffffff",strokeWidth:"2"}),o("path",{d:"M16.0914 16.0336L7.90884 7.85101",stroke:"#ffffff",strokeWidth:"2"}),o("path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#ffffff",strokeWidth:"2"})]}),o("div",{className:" sm:w-64 w-4/5 sm:text-base text-sm ",children:"El marcado de los capitulos esta destinado para el seguimiento de la obra en español."}),o("button",{className:" hover:text-gray-600 font-bold pr-1 text-xl sm:text-2xl",onClick:t,children:"x"})]})]}),ra=()=>o("div",{className:"container mx-auto max-w-5xl mt-10",children:d("div",{className:" mx-2 flex sm:flex-row flex-col gap-5 justify-evenly items-center",children:[o("svg",{className:" h-40 w-40 xs:h-52 sm:h-72 xs:w-52 sm:w-72",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"SVGRepo_iconCarrier",children:[" ",o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM10.3027 13.3942C10.2316 13.7147 10.5038 14 10.8479 14H13.0406C13.2979 14 13.5151 13.8351 13.6064 13.6061C13.697 13.3789 14.0117 12.9674 14.254 12.7518C14.4827 12.5112 14.7213 12.2848 14.9563 12.0618C15.8824 11.183 16.754 10.356 16.754 8.91047C16.754 6.40301 14.582 5 12.2707 5C10.5038 5 8.06416 5.80604 7.58396 8.50363C7.48716 9.04737 7.94773 9.5 8.50002 9.5H9.91229C10.4388 9.5 10.8312 9.07642 11.0121 8.582C11.1863 8.10604 11.5379 7.7551 12.2707 7.7551C13.6066 7.7551 13.6064 9.22371 12.8346 10.1843C12.5434 10.5467 12.2023 10.8677 11.8648 11.1853C11.1798 11.8298 10.5098 12.4602 10.3027 13.3942ZM13.9999 17C13.9999 18.1046 13.1045 19 11.9999 19C10.8954 19 9.99994 18.1046 9.99994 17C9.99994 15.8954 10.8954 15 11.9999 15C13.1045 15 13.9999 15.8954 13.9999 17Z",fill:"#2C3E50"})," "]})}),d("div",{className:" w-5/6 sm:w-3/4 md:mb-0 mb-3",children:[o("div",{className:" text-verde-text text-xl xs:text-2xl sm:text-5xl md:text-7xl",children:"404 Not Found"}),o("div",{className:" text-verde-text text-base xs:text-xl sm:text-4xl md:text-5xl mt-4",children:"Ops! La URL a la que intenta acceder no se encuentra."})]})]})}),RC=({data:e,color:t})=>{var a,i,s;const[r,n]=x.useState(!0);return o("div",{className:"container mx-auto max-w-6xl sm:mt-5 mt-2",children:o("div",{className:"mx-2",children:d("div",{className:" sm:flex-row md:gap-4 gap-2 flex flex-col items-center sm:items-start ",children:[d("div",{className:" sm:w-1/4 w-2/3 ",children:[o("div",{className:` text-sm xs:text-base md:text-lg pt-0.5 bottom-0 mb-0 right-0 w-full rounded-t-md bg-opacity-80 text-center ${e._tipo=="manhua"?" bg-marron":e._tipo=="manhwa"?" bg-green-600":e._tipo=="novela"?" bg-red-700":e._tipo=="doujinshi"?" bg-yellow-500":e._tipo=="manga"?" bg-blue-600":" bg-fuchsia-400"}`,children:e==null?void 0:e._tipo.replace("_"," ").toUpperCase()}),d("div",{className:"relative w-full",children:[o("img",{className:" w-full object-cover aspect-defect",src:e._imagen,alt:e.the_real_name}),e._categoris&&e._categoris.some(l=>27 in l||45 in l)&&o("span",{className:` ${e._categoris.some(l=>
8745 in l)?" bg-purple-400 ":" bg-sky-400"} rounded-md sm:text-lg sm:px-1.5 px-1 font-semibold border absolute top-1 left-1`,children:e._categoris.some(l=>45 in l)?"BL":"GL"}),o("div",{className:"absolute sm:text-sm text-xxs top-1 right-1 flex ",children:e._erotico=="si"&&o("span",{className:" rounded-full bg-gradient-to-r bg-white border-2 border-red-700 text-black px-0.5 py-1 font-bold",children:"+18"})}),o("span",{className:`absolute text-lg md:text-xl bottom-0 mb-0 font-mono right-0 w-full bg-opacity-80 text-center py-0.5 sm:py-1 ${e._demografi=="seinen"?" bg-red-700":e._demografi=="josei"?" bg-purple-700":e._demografi=="shojo"?" bg-fuchsia-500":" bg-yellow-600"}`,children:e._demografi.charAt(0).toUpperCase()+e._demografi.replace("sho","shou").slice(1)})]})]}),o("div",{className:" sm:w-3/4 max-w-md sm:max-w-none",children:d("div",{className:" grid grid-cols-1",children:[o("h2",{className:" text-left md:text-3xl xs:text-2xl mb-1 text-xl font-normal",children:e.name_esp??e.name_raw??(e==null?void 0:e._name)}),o("span",{className:`xs:text-md_ md:text-lg_ text-xs_ leading-customaaa ${r==!0?"line-clamp-3":"mb-3"}`,children:e._sinopsis}),r&&o("div",{className:`text-md_ text-right -mt-1 ${t?"text-verde-text":"text-vmw"} cursor-pointer`,onClick:()=>n(!1),children:"Ver más"}),e._categoris.length>0&&d("div",{className:" grid grid-cols-1",children:[o("h5",{className:" text-base mt-1 text-zinc-300",children:"Géneros"}),o("div",{className:" flex flex-wrap gap-2",children:e._categoris.map(l=>o(Z,{to:`/library?genders=${Object.keys(l)[0]}`,onClick:()=>{window.scrollTo({top:0})},className:" text-sm",children:o("div",{className:` ${t?"bg-verde-text hover:bg-verde hover:text-verde-text":"bg-vmw hover:bg-vmws hover:text-vmw"} text-black font-semibold rounded-sm px-2 sm:px-4 pb-0.5`,children:Object.values(l)[0]})},Object.keys(l)[0]))})]}),d("div",{children:[o("div",{className:" mt-1 text-zinc-300",children:"Estado"}),d("div",{className:" flex items-center gap-2",children:[o("div",{className:` rounded-full h-3 w-3 mt-0.5 ${e._status=="publicandose"?"bg-green-600":e._status=="pausado"?"bg-blue-400":"bg-red-500"}`}),o("div",{className:" text-base",children:e._status.toUpperCase()})]})]}),e.others_name&&e.others_name.length>0&&d("div",{children:[o("div",{className:"text-zinc-300 mt-0.5",children:"Nombres asociados"}),o("div",{className:"flex flex-wrap gap-2",children:(a=e.others_name)==null?void 0:a.map((l,c)=>o("h3",{className:"text-sm bg-verde px-1.5 rounded-md",children:l},`${l}-${c}`))})]}),d("div",{className:" flex gap-3",children:[e.autor&&e.autor.length>0&&d("div",{children:[d("div",{className:" text-zinc-300 mt-1 flex-wrap",children:["Autor",e.autor.length>1&&"es"]}),o("div",{className:" flex gap-2",children:e.autor.map((l,c)=>o(Z,{to:`/autor/${l._id}`,onClick:()=>{window.scrollTo({top:0})},className:`text-sm ${t?"bg-verde-intermedio hover:bg-verde-text":"bg-vmwt hover:bg-vmw"} hover:text-black hover:font-semibold px-3 pb-0.5 rounded-sm`,children:l==null?void 0:l.name},c))})]}),e.autor&&e.artista.length>0&&d("div",{children:[d("div",{className:" text-zinc-300 mt-1 flex-wrap",children:["Artista",e.artista.length>1&&"s"]}),o("div",{className:" flex gap-2",children:e.artista.map((l,c)=>o(Z,{to:`/autor/${l._id}`,onClick:()=>{window.scrollTo({top:0})},className:`text-sm ${t?"bg-verde-intermedio hover:bg-verde-text":"bg-vmwt hover:bg-vmw"} hover:text-black hover:font-semibold px-3 pb-0.5 rounded-sm`,children:l==null?void 0:l.name},c))})]})]}),(e.oficial_esp&&e.oficial_esp.length>0||e.oficial_raw&&e.oficial_raw.length>0)&&d("div",{children:[o("div",{className:"text-zinc-200 mt-1.5 text-lg font-medium",children:"Links:"}),e.oficial_esp.length>0&&o("div",{className:"",children:d("div",{children:["⢠Oficial Esp - ",(i=e.oficial_esp)==null?void 0:i.map(l=>o("a",{href:l.link,className:" text-verde-text",children:l.name}))]})}),e.oficial_raw.length>0&&o("div",{className:"",children:d("div",{children:["⢠Oficial Raw - ",(s=e.oficial_raw)==null?void 0:s.map(l=>o("a",{href:l.link,className:" text-verde-text",children:l.name}))]})})]})]})})]})})})},Px=()=>(x.useEffect(()=>{const e=document.createElement("script");return e.setAttribute("data-cfasync","false"),e.async=!0,e.type="text/javascript",e.src="//xj.recheckcaulite.com/tpnpnj2Io3a/94390",document.getElementById("galax").appendChild(e),()=>{const t=document.getElementById("galax");t&&(t.innerHTML="")}},[]),o("div",{id:"galax",className:"relative w-full h-auto overflow-hidden flex justify-center items-center"})),DC=()=>o("svg",{fill:"#1cbab8",className:" h-7 w-7 xs:h-9 xs:w-9 sm:w-14 sm:h-14 md:w-12 md:h-12",viewBox:"0 0 488.9 488.9",xmlns:"http://www.w3.org/2000/svg",children:o("path",{d:"M244.45 98.73c-93.43 0-178.15 51.07-240.65 134.17-5.07 6.8-5.07 16.3 0 23.1 62.5 83.15 147.25 134.17 240.65 134.17s178.15-51.02 240.65-134.17c5.07-6.8 5.07-16.3 0-23.1-62.5-83.1-147.2-134.17-240.65-134.17zM251.13 347.03c-62 3.9-113.2-47.2-109.3-109.3 3.2-51.2 44.7-92.7 95.9-95.9 62 3.9 113.2 47.2 109.3 109.3C343.73 302.23 302.23 343.73 251.13 347.03zM248.03 299.63c-33.4 2.1-61-25.4-58.8-58.8 1.7-27.6 24.1-49.9 51.7-51.7 33.4-2.1 61 25.4 58.8 58.8C297.93 275.63 275.53 297.93 248.03 299.63z",stroke:"#5AD3D1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3"})}),$C=()=>d("svg",{className:" h-7 w-7 xs:h-8 xs:w-8 sm:w-14 sm:h-14 md:w-12 md:h-12",viewBox:"0 0 16 16",children:[o("path",{d:"m10.79 12.912-1.614-1.615a3.5 3.5 0 0 1-4.474-4.474l-2.06-2.06C.938 6.278 0 8 0 8s3 5.5 8 5.5a7.029 7.029 0 0 0 2.79-.588zM5.21 3.088A7.028 7.028 0 0 1 8 2.5c5 0 8 5.5 8 5.5s-.939 1.721-2.641 3.238l-2.062-2.062a3.5 3.5 0 0 0-4.474-4.474L5.21 3.089z",fill:"#bce1e0"}),o("path",{d:"M5.525 7.646a2.5 2.5 0 0 0 2.829 2.829l-2.83-2.829zm4.95.708-2.829-2.83a2.5 2.5 0 0 1 2.829 2.829zm3.171 6-12-12 .708-.708 12 12-.708.708z",strokeWidth:"1",fill:"#bce1e0"})]}),jC=()=>o("svg",{className:" h-7 w-7 xs:h-9 xs:w-9 sm:w-14 sm:h-14 md:w-12 md:h-12",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:o("g",{id:"SVGRepo_iconCarrier",children:o("path",{stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M3 10a13.358 13.358 0 0 0 3 2.685M21 10a13.358 13.358 0 0 1-3 2.685m-8 1.624L9.5 16.5m.5-2.19a10.59 10.59 0 0 0 4 0m-4 0a11.275 11.275 0 0 1-4-1.625m8 1.624.5 2.191m-.5-2.19a11.275 11.275 0 0 0 4-1.625m0 0 1.5 1.815M6 12.685 4.5 14.5"})})}),Tx=()=>(x.useEffect(()=>{const e=document.createElement("script");e.async=!0,e.setAttribute("data-cfasync","false"),e.src="https://platform.pubadx.one/pubadx-ad.js",e.type="text/javascript",document.getElementById("bub").appendChild(e);const t=document.createElement("script");return t.textContent=` 88 var adx_id_10164 = document.getElementById('bg-ssp-10164'); 89 adx_id_10164.id = 'bg-ssp-10164-' + Math.floor(Math.random() * Date.now()); 90 window.pubadxtag = window.pubadxtag || []; 91 window.pubadxtag.push({zoneid: 10164, id: adx_id_10164.id, wu: window.location.href}); 92 `,document.getElementById("bg-ssp-10164").appendChild(t),()=>{const r=document.getElementById("bub");r&&(r.innerHTML="")}},[]),o("div",{id:"bub",children:o("div",{id:"bg-ssp-10164"})})),Mx=()=>(x.useEffect(()=>{const e=document.createElement("script");e.async=!0,e.setAttribute("data-cfasync","false"),e.src="https://platform.pubadx.one/pubadx-ad.js",e.type="text/javascript",document.getElementById("bub").appendChild(e);const t=document.createElement("script");return t.textContent=` 93 var adx_id_10187 = document.getElementById('bg-ssp-10187'); 94 adx_id_10187.id = 'bg-ssp-10187-' + Math.floor(Math.random() * Date.now()); 95 window.pubadxtag = window.pubadxtag || []; 96 window.pubadxtag.push({zoneid: 10187, id: adx_id_10187.id, wu: window.location.href}); 97 `,document.getElementById("bg-ssp-10187").appendChild(t),()=>{const r=document.getElementById("bub");r&&(r.innerHTML="")}},[]),o("div",{id:"bub",children:o("div",{id:"bg-ssp-10187"})})),kp=()=>
97{const e=ta(),[t,r]=x.useState(),[n,a]=x.useState(),[i,s]=x.useState(),[l,c]=x.useState(),[u,f]=x.useState(!0),[g,m]=x.useState("no_hay"),[y,b]=x.useState("asc"),[w,_]=x.useState(0),[v,h]=x.useState(!1),[p,N]=x.useState(0),[S,C]=x.useState(!1),[O,P]=x.useState(!1),[k,E]=x.useState(!1),[M,T]=x.useState(!1),[j,A]=x.useState([]),[B,z]=x.useState(30),{color:ie}=ct();x.useEffect(()=>{ee.get(`${te}/manhwa/see/${e.id}`).then(W=>{console.log(W.data),r(W.data),W.data.grupos&&W.data.grupos.length>0&&c(W.data.grupos.reduce((ne,Ge)=>Ge.date>ne.date?Ge:ne,W.data.grupos[0]).date),document.title=`${W.data.the_real_name} - ManhwaWeb`;const De=document.querySelector('meta[name="description"]');De&&De.setAttribute("content",`${W.data.the_real_name} en español y raws online gratis.`),N(ne=>ne+1)}).catch(W=>{s(1),W.response.status==404&&(s(2),document.title="Not Found - ManhwaWeb")}).finally(()=>{f(!1)})},[]),x.useEffect(()=>{p>0&&localStorage.getItem("tokenCommers")&&ee.get(`${te}/follow/page_manhwa/${t._id}`,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(W=>{m(W.data.manhwa_type),b(W.data.order),_(W.data.chapter),W.data.manhwa?h(!0):h(!1)}).catch().finally(()=>{T(!1)})},[p]),x.useEffect(()=>{ee.get(`${te}/manhwainfo/see/${e.id}`).then(W=>{console.log(W.data),a(W.data)})},[]);const U=async W=>{if(T(!0),localStorage.getItem("tokenCommers")){P(!0);const De={manhwa:t._id,manhwa_type:W,order:y};try{let ne=await ee.post(`${te}/follow/pushdeletemanhwa`,De,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}});ne.data=="m"?m(W):m("no_hay"),ne.data=="m"?Re(3):Re(4)}catch{Re(2)}N(ne=>ne+1),P(!1)}else Re(1),T(!1)},J=async()=>{E(!0);const W={manhwa:t._id};try{let De=await ee.post(`${te}/follow/ordermanhwa`,W,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}});b(y=="asc"?"des":"asc")}catch{Re(2)}E(!1)},K=async W=>{if(T(!0),W>w||W==-999)if(v){const De={manhwa:t._id,chapter:W,order:"a"};try{let ne=await ee.post(`${te}/follow/leidosmanhwas`,De,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}});ne.data=="l"?_(W):_(0),ne.data=="l"?Re(3):Re(4)}catch{Re(2)}}else localStorage.getItem("tokenCommers")?Re(5):Re(1);T(!1)},Ce=()=>{b(y=="asc"?"des":"asc")},ge=()=>{C(!S)};function Re(W){const De=Date.now();A(ne=>[...ne,{id:De,idcolor:W}]),setTimeout(()=>{A(ne=>ne.filter(Ge=>Ge.id!==De))},4e3)}return u?o(Pt,{}):i==1?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):i==2?d(ye,{children:[" ",o(ra,{color:ie})]}):d("div",{children:[o(RC,{data:t,color:ie}),o("div",{className:ie?" bg-verde mt-5":" bg-vmws mt-5",children:o("div",{className:"container mx-auto max-w-6xl",children:o("div",{className:"md:mx-2 mx-0",children:d("div",{className:" flex sm:h-16 h-14 sm:text-base xs:text-md text-sm",children:[d("button",{disabled:O,className:`cursor-pointer w-1/3 flex gap-0.5 sm:gap-2 items-center justify-center transition-transform hover:scale-110 ${g=="siguiendo"&&"active border-b-8 border-azul-sig bg-azul-sig bg-opacity-10"}`,onClick:()=>U("siguiendo"),children:[" ",o("img",{src:"/assets/elos/sig.png",className:"w-8 h-8 sm:w-10 sm:h-10"})," ",d("div",{className:" flex flex-col",children:[o("div",{className:"text-xl sm:text-2xl -mb-1 -mt-2.5 text-left",children:n&&n.siguiendo}),o("div",{className:"sm:text-base text-xs text-white -mb-2",children:"Siguiendo"})]})]}),d("button",{disabled:O,className:`cursor-pointer w-1/3 flex gap-0.5 sm:gap-2 items-center justify-center transition-transform hover:scale-110 ${g=="pendiente"&&"active border-b-8 border-amarillo-pen bg-amarillo-pen bg-opacity-5"}`,onClick:()=>U("pendiente"),children:[" ",o("img",{src:"/assets/elos/pen.png",className:"w-8 h-8 sm:w-10 sm:h-10"})," ",d("div",{className:" flex flex-col",children:[o("div",{className:"text-xl sm:text-2xl -mb-1 -mt-2.5 text-left",children:n&&n.pendiente}),o("div",{className:"sm:text-base text-xs text-white -mb-2",children:"Pendiente"})]})]}),d("button",{disabled:O,className:`cursor-pointer w-1/3 flex gap-0.5 sm:gap-2 items-center justify-center transition-transform hover:scale-110 ${g=="finalizado"&&"active border-b-8 border-verde-fin bg-verde-fin bg-opacity-5"}`,onClick:()=>U("finalizado"),children:[" ",o("img",{src:"/assets/elos/fin.png",className:"w-8 h-8 sm:w-10 sm:h-10"})," ",d("div",{className:" flex flex-col",children:[o("div",{className:"text-xl sm:text-2xl -mb-1 -mt-2.5 text-left",children:n&&n.finalizado}),o("div",{className:"sm:text-base text-xs text-white -mb-2",children:"Finalizado"})]})]})]})})})}),o("div",{className:"container mx-auto max-w-6xl mt-2",children:d("div",{className:" bg-gray-400 mx-1 rounded-md pt-1 px-1",children:[d("div",{className:" text-black sm:text-base_ text-xs_ leading-normal text-ju
97stify ",children:[o("span",{className:` ${t._erotico!="si"?"rounded-md":" rounded-l-md"} pt-0.5 px-1 bg-yellow-500`,children:"AD"}),t._erotico=="si"&&o("span",{className:"px-1 pt-0.5 rounded-r-md bg-red-500",children:"(Solo se mostraran ads +18 cuando te encuentres en obras +18)"})]}),o("div",{className:" ",children:o(Px,{})})]})}),o("div",{className:"container mx-auto max-w-6xl mt-2",children:o("div",{className:"md:mx-2 mx-0",children:d("div",{className:" flex flex-col lg:flex-row gap-2 md:items-start",children:[d("div",{className:"w-full ",children:[!t.copyright&&d("div",{className:"grid grid-cols-1 md:border border-y ",children:[d("div",{className:" p-2 sm:flex justify-between",children:[d("span",{onClick:ge,className:" cursor-pointer pb-0.5 bg-green-600 rounded-sm px-2 sm:text-base text-sm ",children:[S?"Mostrar":"Ocultar"," previews (",t._numero_cap," capitulos)"]}),d("div",{className:"flex gap-2 items-center justify-end mt-1.5 sm:mt-0",children:[o("div",{onClick:()=>K(-999),className:" cursor-pointer bg-red-600 rounded-sm px-2 sm:text-base text-sm ",children:"Desmarcar todos"}),v&&localStorage.getItem("tokenCommers")?o("button",{disabled:k,onClick:J,className:" bg-blue-700 rounded-sm px-2 sm:text-base text-sm ",children:"Invetir orden"}):o("button",{onClick:Ce,className:" bg-blue-700 rounded-sm px-2 sm:text-base text-sm ",children:"Invetir orden"})]})]}),(y=="asc"?t.chapters.slice(0,B):t.chapters.slice().reverse().slice(0,B)).map((W,De)=>d("div",{className:` ${W.link&&!W.link.includes("manhwaweb.com")||W.link_raw&&!W.link_raw.includes("manhwaweb.com")?" hidden":""} flex p-2 gap-2 border-t `,children:[W.img&&W.img.length>0?W.img.map((ne,Ge)=>d("div",{className:" relative bg-cover bg-center rounded-md aspect-lezhin md:h-40 w-1/4 flex items-center md:w-auto h-auto",style:{backgroundImage:`url(${ne.includes("toptoon")?`https://images.weserv.nl/?url=${ne.replace("https://","")}`:ne})`},children:[S&&o("span",{className:"absolute object-cover w-full h-full bg-black rounded-md text-center pt-5 text-sm sm:text-base ",children:"Previews ocultas"}),o("img",{className:" w-full flex aspect-lezhin rounded-md",src:ne.includes("toptoon")?`https://images.weserv.nl/?url=${ne.replace("https://","")}`:ne,alt:"preview",loading:"lazy",referrerPolicy:String(ne).includes("toptoon")?"no-referrer":void 0,onError:At=>{At.currentTarget.src.endsWith(t._imagen)||(At.currentTarget.src=t._imagen)}})]},Ge)):d("div",{className:" relative aspect-square bg-cover bg-center rounded-md flex justify-center md:h-[120px] w-1/4 md:w-auto h-auto",style:{backgroundImage:`url(${t._imagen})`},children:[S&&o("span",{className:"absolute object-cover w-full h-full bg-black rounded-md text-center pt-5 text-sm sm:text-base ",children:"Previews ocultas"}),o("img",{className:" h-full object-cover aspect-lezhin",src:t._imagen,alt:"preview",loading:"lazy",referrerPolicy:"no-referrer"})]}),d("div",{className:` border md:w-full ${W.img&&W.img.length==2?" w-1/2":" w-3/4"} rounded-md sm:p-3 xs:p-1.5 p-0.5 flex flex-col justify-center `,children:[d("div",{className:" flex justify-between items-center",children:[d("div",{className:" sm:text-lg xs:text-base text-sm",children:["Capitulo ",W.chapter]}),o("div",{className:" flex justify-center items-center ",children:t.numero_cap_esp<W.chapter?o("span",{className:" cursor-pointer ",onClick:()=>Re(6),children:o(jC,{})}):W.chapter<=w?o("span",{children:o(DC,{})}):o("button",{onClick:()=>K(W.chapter),className:" cursor-pointer",disabled:M,children:o($C,{})})})]}),W.versions&&W.versions.map((ne,Ge)=>o("a",{href:ne.link.replace(ke,"").replace(t._id,t.real_id),className:"text-gray-300",children:d("div",{className:` border rounded-sm ${ie?"hover:bg-verde hover:text-verde-text ":"hover:bg-vmws hover:text-vmw"} px:0 xs:px-[2px] md:px-1 text-xs xs:text-sm sm:text-base flex flex-col sm:flex-row justify-between sm:items-center`,"data-info":ne.chapter,children:[d("div",{className:"truncate",children:["Leer ",o("span",{children:ne!=null&&ne.joint&&(ne==null?void 0:ne.joint.length)>0?o("span",{children:ne.joint.map(At=>d("span",{children:["- ",At.name]}))}):o("span",{children:"- ManhwaWeb Bot"})})]}),d("div",{className:`sm:pr-6 md:pr-16 xs:pr-0.5 ${ie?"text-verde-fin":"text-vmwc"} text-xxs sm:text-sm flex items-center justify-end`,children:[o("div",{children:o("img",{className:" w-2 h-2 xs:w-3 xs:h-3 sm:w-4 sm:h-4",src:"/assets/cal.png",alt:"calendario"})}),o("div",{children:kS((ne==null?void 0:ne.create)??1689574203513,"dd/MM/yyyy")})]})]})}))]})]},W.chapter)),o("button",{onClick:()=>z(t.chapters.length),className:`${B>=t.chapters.length&&"hidden"} ver_todo cursor-pointer ${ie?"bg-verde-intermedio":"bg-vmwt"} text-center py-0.5`,children:"Ver Todo"})]}),!t.copyright&&d("a",{href:`${vr}/uploads?obra=${t._id}`,className:` mx-2 md:mx-0 ${ie?"bg-verde-text":"bg-vmw"} rounded-sm text-black mt-5 md:mb-2 -mb-2 text-xl font-medium flex justify-center items-center lg:hidden`,children:[o("img",{className:"my-1.5 w-6 mr-1.5",src:"https://img1mw.xyz/extras/upload.png",alt:""}),o("div",{children:"Subir capitulo"})]}),d("a",{href:`${vr}/edit?obra=${t._id}`,className:` mx-2 md:mx-0 ${ie?"bg-verde-text":"bg-vmw"} rounded-sm text-black mt-5 md:mb-2 -mb-2 text-xl font-medium flex justify-center items-center lg:hidden`,children:[o("img",{className:" my-1.5 w-6 mr-2",src:"https://img1mw.xyz/extras/confi.png",alt:""}),o("div",{children:"Editar obra"})]}),o("div",{className:`pl-2 md:pl-0 ${ie?"text-verde-text":"text-vmw"} my-4 text-2xl`,children:"Comentarios"}),o("div",{className:"mx-2 md:mx-0 ",children:o(Ja,{url:`https://www.manhwaweb.com/manhwa/${t._id}`,identifier:t._id,title:t.the_real_name})})]}),d("div",{children:[!t.copyright&&d("a",{href:`${vr}/uploads?obra=${t._id}`,className:` pl-2 md:pl-0 ${ie?"bg-verde-text":"bg-vmw"} rounded-sm text-black md:ml-2 md:mb-2 mb-4 text-xl font-medium lg:flex justify-center items-center hidden`,children:[o("img",{className:"my-1.5 w-6 mr-1.5",src:"https://img1mw.xyz/extras/upload.png",alt:""}),o("div",{children:"Subir capitulo"})]}),d("a",{href:`${vr}/edit?obra=${t._id}`,className:` pl-2 md:pl-0 ${ie?"bg-verde-text":"bg-vmw"} rounded-sm text-black md:ml-2 md:mb-2 mb-4 text-xl font-medium lg:flex justify-center items-center hidden`,children:[o("img",{className:" my-1.5 w-6 mr-2",src:"https://img1mw.xyz/extras/confi.png",alt:""}),o("div",{children:"Editar obra"})]}),!t.copyright&&(t.grupos&&t.grupos.length>0||t._plataforma!="manual")&&o("div",{className:`pl-2 md:pl-0 ${ie?"text-verde-text":"text-vmw"} md:mx-2 md:mb-2 mb-4 text-2xl`,children:"Grupos"}),!t.copyright&&d("div",{className:" flex flex-col items-center mb-10 md:mb-2",children:[t.grupos&&t.grupos.length>0&&t.grupos.sort((W,De)=>De.date-W.date).map((W,De)=>
97o(Z,{to:`/grupo/${W.code._id}`,className:" pl-1 pr-1 md:pr-0 mb-3 md:pl-2.5 w-full md:w-80 ",children:d("div",{className:`${l==W.date&&W.date!=0&&" shadow-para_bronce shadow-verde-text"} w-full`,children:[o("div",{className:" bg-gray-700 w-full px-2",children:W.code.name}),d("div",{className:" relative ",children:[o("img",{className:" aspect-banner w-full ",src:W.code.banner.replace(ke,ze),alt:""}),o("div",{className:"absolute top-1 w-full",children:o("span",{className:`${W.code.tipo=="uploader"?" bg-orange-800":"bg-blue-700"} mx-2 rounded-sm py-0.5 px-1.5 text-xs`,children:W.code.tipo.toUpperCase()})}),l==W.date&&W.date!=0&&o("div",{className:"absolute bottom-0 w-full",children:o("div",{className:" text-center opacity-80 text-black font-medium bg-verde-text",children:"Responsable Actual"})})]})]})},De)),t._plataforma!="manual"&&d(Z,{to:"/grupo/0",className:" pl-1 pr-1 md:pr-0 md:pl-2.5 w-full md:w-80 ",children:[o("div",{className:" opacity-90 bg-gray-700 w-full px-2",children:"ManhwaWeb Bot"}),d("div",{className:" relative",children:[o("img",{className:" aspect-banner",src:"/assets/banners/bot.jfif",alt:""}),o("div",{className:"absolute top-1 w-full",children:o("span",{className:"bg-purple-700 mx-2 rounded-sm py-0.5 px-1.5 text-xs",children:"BOT"})})]})]})]}),o("div",{className:" mx-1 md:mx-0 md:ml-1 pt-0.5",children:d("div",{className:" bg-gray-400 rounded-md md:ml-1.5 px-1 sm:px-0 pt-0.5 pb-1",children:[d("div",{className:" text-black sm:mx-1 sm:text-base_ text-xs_ leading-normal lg:w-[300px] text-justify ",children:[o("span",{className:` ${t._erotico!="si"?"rounded-md":" rounded-l-md"} pt-0.5 px-1 bg-yellow-500`,children:"AD"}),t._erotico=="si"&&o("span",{className:"px-1 pt-0.5 rounded-r-md bg-red-500",children:"(Solo se mostraran ads +18 cuando te encuentres en obras +18)"})]}),o("div",{className:" overflow-x-auto w-[300px] mx-1 md:mx-0 md:ml-1",children:t._erotico=="si"?o(Tx,{color:ie}):o(Mx,{color:ie})})]})})]})]})})}),o("div",{className:" flex-col fixed bottom-3 right-2 z-50 text-white w-full sm:w-96 xs:w-3/4",children:j.map(W=>o(MC,{color:W.idcolor,onClose:()=>A(De=>De.filter(ne=>ne.id!==W.id))},W.id))})]})},LC=["image/jpeg","image/jpg","image/png","image/webp"],AC=({color:e})=>
97{const[t,r]=x.useState(""),[n,a]=x.useState(null),[i,s]=x.useState(!1),l=tr();return o("div",{className:"mb-5",children:d("div",{className:`p-1 text-gray-200 ${e?"bg-verde":"bg-vmws"}`,children:[d("form",{onSubmit:async f=>{var b,w;if(f.preventDefault(),i)return;const g=f.currentTarget,m=g.titulo.value.trim(),y=g.contenido.value.trim();if(!m||!y){r("Debes completar el tÃtulo y el contenido");return}try{s(!0),r("");const _=new FormData;_.append("titulo",m),_.append("contenido",y),n&&_.append("image",n),await ee.post(`${te}/latest/foro_create`,_,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}),l(`/foro?${Date.now()}`)}catch(_){console.error("Error creando foro:",_);const v=(b=_.response)==null?void 0:b.data;r(((w=v==null?void 0:v.errors)==null?void 0:w[0])||(typeof v=="string"?v:"Sucedió un error al crear el foro"))}finally{s(!1)}},className:"flex flex-col items-center justify-center gap-3",children:[d("div",{className:"flex w-full flex-col items-start justify-center gap-2 md:flex-row",children:[o("div",{className:"font-medium md:w-1/4",children:"TÃtulo"}),o("input",{type:"text",name:"titulo",placeholder:"TÃtulo...",maxLength:150,className:"h-9 w-full rounded-sm bg-gray-200 px-2 text-black md:w-3/4",required:!0})]}),d("div",{className:"flex w-full flex-col items-start justify-center gap-2 md:flex-row",children:[o("div",{className:"font-medium md:w-1/4",children:"Contenido"}),o("textarea",{name:"contenido",placeholder:"Contenido...",maxLength:5e3,rows:7,className:"h-auto w-full bg-gray-200 px-2 py-1 text-black md:w-3/4",required:!0})]}),d("div",{className:"w-full",children:[d("div",{className:"flex w-full flex-col justify-center gap-2 md:flex-row md:items-center",children:[d("div",{className:"md:w-1/4",children:[o("span",{className:"font-medium",children:"Imagen"})," ","(opcional)"]}),o("div",{className:"w-full bg-white text-black md:w-3/4",children:o("input",{type:"file",accept:"image/jpeg,image/jpg,image/png,image/webp",onChange:f=>{var m;const g=((m=f.target.files)==null?void 0:m[0])||null;if(r(""),!g){a(null);return}if(!LC.includes(g.type)){r("La imagen debe ser JPG, PNG o WEBP"),f.target.value="",a(null);return}if(g.size>5*1024*1024){r("La imagen no puede pesar más de 5MB"),f.target.value="",a(null);return}a(g)},className:"w-full"})})]}),o("div",{className:"flex w-full md:justify-end",children:d("div",{className:"text-sm_ w-full text-gray-300 md:w-3/4 md:pl-2",children:[o("span",{className:"font-semibold",children:"Deben ser aptas para todos los públicos."})," ","Formatos JPG, PNG o WEBP. Tamaño máximo 5MB."]})})]}),n&&d("div",{className:"text-sm text-gray-300",children:["Imagen seleccionada:"," ",n.name]}),o("button",{type:"submit",disabled:i,className:` 98 rounded-md border px-3 py-1 99 font-semibold 100 ${i?"border-black bg-yellow-600 text-black opacity-70":e?"border-verde-text text-verde-text hover:bg-verde-text hover:text-black":"border-vmw text-vmw hover:bg-vmw hover:text-black"} 101 `,children:i?"Cargando...":"SUBIR"})]}),t&&o("div",{className:"my-2 flex justify-center text-center",children:o("div",{className:"text-xs w-full bg-red-100 py-1 text-red-800 xs:text-sm sm:w-1/2 sm:text-base md:w-2/5",children:t})})]})})},IC=()=>
101{const[e]=Rn(),[t,r]=x.useState(),[n,a]=x.useState(),[i,s]=x.useState(),[l,c]=x.useState(),[u,f]=x.useState(),[g,m]=x.useState(!0),[y,b]=x.useState(!1),[w,_]=x.useState(!1),[v,h]=x.useState(e.get("m")??2),p=x.useRef(!0),{color:N}=ct();return x.useEffect(()=>{m(!0),_(!1),document.title="Foro - ManhwaWeb";const S=document.querySelector('meta[name="description"]');S&&S.setAttribute("content","Foro y foro de tus manhwas favoritos"),p.current?p.current=!1:window.scrollTo({top:0,behavior:"smooth"}),(async()=>{try{const O=await ee.get(`${te}/latest/foro_see?page=${e.get("page")??"0"}`);r(O.data.toptoon),a(O.data.lezhin),s(O.data.foro),b(O.data.next)}catch(O){f(O)}finally{m(!1)}if(localStorage.getItem("tokenCommers")&&!(e.get("page")&&e.get("page")>0))try{const O=await ee.get(`${te}/latest/foro_mee_see`,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}});c(O.data.foro_mee)}catch(O){console.log(O)}else c()})()},[e]),g?o(Pt,{}):u?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):d("div",{children:[o("div",{className:N?" bg-verde ":"bg-vmws",children:o("div",{className:"container mx-auto max-w-6xl mt-1",children:o("div",{className:"md:mx-2 mx-0",children:d("nav",{role:"tablist",className:" flex md:text-lg text-sm",children:[o("a",{role:"tab","aria-controls":"esp",onClick:()=>h(2),className:` cursor-pointer ${v==2&&"active text-yellow-500 border-b-4 border-yellow-600"} w-1/2 text-center md:py-2 py-1.5`,children:"Foro"}),o("a",{role:"tab","aria-controls":"org",onClick:()=>h(1),className:` cursor-pointer ${v==1&&"active text-verde-text border-b-4 border-verde-text"} w-1/2 text-center md:py-2 py-1.5`,children:"Guia"})]})})})}),o("div",{className:`${v==1?"active":"hidden"} container md:mt-8 mt-4 mx-auto max-w-6xl`,children:o("div",{className:"mx-2",children:o(x3,{color:N})})}),o("div",{className:`container mx-auto max-w-6xl md:mt-8 mt-4 ${v==2?"active":"hidden"}`,children:d("div",{className:"mx-2 flex lg:gap-5",children:[d("div",{className:" w-full",children:[w?d("div",{children:[d("div",{className:"flex mb-4 items-center",children:[o(Me,{color:N}),o("h3",{className:" md:text-3xl xs:text-2xl text-lg",children:"Crear Nueva Publicación"})]}),localStorage.getItem("tokenCommers")?o(AC,{color:N}):o("div",{className:" mb-5 mx-2 flex justify-center",children:d("div",{className:`text-center md:w-2/3 w-3/4 text-base_ leading-customa text-white ${N?"bg-verde":"bg-vmws"} p-4 rounded-md`,children:["Debes ",o(Z,{to:"/login",className:`${N?"text-verde-text":"text-vmw"} font-semibold hover:underline`,children:"Iniciar Sesion"})," para crear una publicacion."]})})]}):o("div",{className:" mb-5",children:o("div",{className:" flex justify-center",children:d("div",{onClick:()=>{_(!0)},className:" cursor-pointer gap-2 bg-yellow-600 md:bg-opacity-80 font-medium xs:text-xl w-full text-center py-0.5 mt-1.5 rounded-sm text-black flex justify-center items-center",children:[o("img",{className:" w-8",src:"https://imagizer.imageshack.com/img924/338/dJ12y2.png",alt:"conversa"}),o("div",{children:"Crear nueva publicacion"})]})})}),l&&l.length>0&&d("div",{children:[o("div",{className:" mb-2 -mt-3 ",children:o("div",{className:" flex justify-center",children:o("div",{className:" bg-yellow-700 text-sm_ md:text-lg w-full text-center py-0.5 mt-1.5 rounded-sm text-black ",children:"Tus publicaciones tienen que ser aprobadas por un ADMIN para poder ser publicas."})})}),d("div",{className:"flex mb-4 items-center",children:[o(Me,{color:N}),o("h3",{className:"md:text-3xl xs:text-2xl text-lg",children:"Tus Publicaciones Pendientes"})]}),o("div",{id:"un",className:" flex flex-col gap-8 md:gap-10 mb-5",children:l.map((S,C)=>{var O;return o("div",{className:" ",children:d("div",{className:" flex flex-col sm:flex-row gap-1 sm:gap-0",children:[d("div",{className:" flex sm:flex-col items-center gap-2 sm:w-2/12",children:[o(Z,{className:" w-14 sm:w-4/6",to:`/user/${S.user.public}`,children:o("img",{className:` w-full rounded-md aspect-defect ${(O=S==null?void 0:S.user)!=null&&O.foto?Number(S.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>89999?"shadow-para_verde shadow-verde-text border-verde-text border-2":Number(S.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>19999?" shadow-para_dorado shadow-dorado border-2 border-dorado":Number(S.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>9999?" shadow-para_plateado shadow-gray-400 border-gray-400 border-2":Number(S.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>0?" shadow-para_bronce border-bronce shadow-bronce border-2":"":""}`,src:S==null?void 0:S.user.foto.replace(ke,ze),alt:S==null?void 0:S.user.n
101ame})}),S.user.level!="user"&&o("img",{className:" w-20 -mx-3 sm:-my-6",src:"/assets/elos/admin.png"}),o(Z,{to:`/user/${S.user.public}`,children:o("div",{className:" text-xl",children:S.user.nick})})]}),d("div",{className:" sm:w-5/6 flex flex-col overflow-hidden",children:[o(Z,{to:`/foro/${S._id}`,className:` ${N?"bg-verde-fin":"bg-vmwc"} px-4 py-0.5 text-xl text-black font-medium sm:text-2xl leading-customa`,children:S.titulo}),o(Z,{to:`/foro/${S._id}`,className:` ${N?"bg-verde":"bg-vmws"} px-2 mt-2 py-1 text-base_ leading-customa pb-2`,children:S.contenido}),S.img!="nada"&&o(Z,{to:`/foro/${S._id}`,className:`${N?"bg-verde":"bg-vmws"} px-2 pb-2 flex justify-center`,children:o("img",{src:S.img,alt:"img"})}),o(Z,{to:`/foro/${S._id}`,className:` px-2 ${N?"text-verde-fin hover:bg-verde-fin":"text-vmwc hover:bg-vmwc"} bg-black font-medium hover:text-black`,children:C>=0&&o(U0.CommentCount,{shortname:"manhwa-web",config:{url:`https://manhwaweb.com/foro/${S._id}`,identifier:`foro-${S._id}`,title:`foro-${S._id}`},children:" 0 Comentarios"})})]})]})},S._id)})})]}),d("div",{className:"flex mb-4 items-center",children:[o(Me,{color:N}),o("h3",{className:"md:text-3xl xs:text-2xl text-lg",children:"Tablon de Publicaciones"})]}),i.length>0?o("div",{id:"uni",className:" flex flex-col gap-8 md:gap-10 mb-10",children:i.map((S,C)=>{var O;return o("div",{className:" ",children:d("div",{className:" flex flex-col sm:flex-row gap-1 sm:gap-0",children:[d("div",{className:" flex sm:flex-col items-center gap-2 sm:w-2/12",children:[o(Z,{className:" w-14 sm:w-4/6",to:`/user/${S.user.public}`,children:o("img",{className:` w-full rounded-md aspect-defect ${(O=S==null?void 0:S.user)!=null&&O.foto?Number(S.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>89999?"shadow-para_verde shadow-verde-text border-verde-text border-2":Number(S.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>19999?" shadow-para_dorado shadow-dorado border-2 border-dorado":Number(S.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>9999?" shadow-para_plateado shadow-gray-400 border-gray-400 border-2":Number(S.user.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>0?" shadow-para_bronce border-bronce shadow-bronce border-2":"":""}`,src:S==null?void 0:S.user.foto.replace(ke,ze),alt:S==null?void 0:S.user.name})}),S.user.level!="user"&&o("img",{className:" w-20 -mx-3 sm:-my-6",src:"/assets/elos/admin.png"}),o(Z,{to:`/user/${S.user.public}`,children:o("div",{className:" text-xl",children:S.user.nick})})]}),d("div",{className:" sm:w-5/6 flex flex-col overflow-hidden",children:[o(Z,{to:`/foro/${S._id}`,className:` ${N?"bg-verde-fin":"bg-vmwc"} px-4 py-0.5 text-xl text-black font-medium sm:text-2xl leading-customa`,children:S.titulo}),o(Z,{to:`/foro/${S._id}`,className:`${N?"bg-verde":"bg-vmws"} px-2 mt-2 py-1 text-base_ leading-customa pb-2`,children:S.contenido}),S.img!="nada"&&o("div",{className:" w-full max-h-96 sm:max-h-[700px]",children:o(Z,{to:`/foro/${S._id}`,className:`${N?"bg-verde":"bg-vmws"} px-2 pb-2 flex justify-center`,children:o("img",{src:S.img,alt:"img"})})}),o(Z,{to:`/foro/${S._id}`,className:`px-2 ${N?"text-verde-fin hover:bg-verde-fin":"text-vmwc hover:bg-vmwc"} bg-black font-medium hover:text-black`,children:" Comentarios"})]})]})},S._id)})}):o(vo,{}),(y||e.get("page")&&Number(e.get("page"))>0)&&o("div",{className:"container mx-auto max-w-5xl pb-4",children:o("div",{className:"mx-2",children:d("div",{className:"flex items-center justify-center mx-auto gap-1",children:[e.get("page")&&Number(e.get("page")>0)?d(Z,{to:`/foro?page=${Number(e.get("page"))-1}`,className:`border-2 py-1 w-28 text-center ${N?"bg-verde text-verde-text border-verde-text":"bg-vmws text-vmw border-vmw"}`,children:["<<"," Anterior"]}):d("span",{className:` border-2 py-1 w-28 text-center ${N?"bg-verde":"bg-vmws"} text-black border-black`,children:["<<"," Anterior"]}),y?d(Z,{to:`/foro?page=${e.get("page")&&Number(e.get("page")>=0)?Number(e.get("page"))+1:1}`,className:` border-2
102 py-1 w-28 text-center ${N?"bg-verde text-verde-text border-verde-text":"bg-vmws text-vmw border-vmw"}`,children:["Siguiente ",">>"]}):d("span",{className:`border-2 py-1 w-28 text-center ${N?"bg-verde":"bg-vmws"} text-black border-black`,children:["Siguiente ",">>"]})]})})})]}),o("div",{className:" hidden lg:block w-80 ",children:o("a",{target:"_blank",href:"https://t.me/manhwaweb_web",children:o("img",{src:"/assets/banners/baner_redes2.jpg",alt:""})})})]})})]})};function zC(){const t=Nr().pathname==="/profile",{color:r}=ct();return x.useEffect(()=>{document.title="Mi Perfil - ManhwaWeb"},[]),localStorage.getItem("tokenCommers")?d("div",{children:[o("div",{className:r?" bg-verde mt-1":" bg-vmws mt-1",children:o("div",{className:"container mx-auto max-w-6xl",children:o("div",{className:"md:mx-2 mx-0",children:d("nav",{className:" flex md:text-lg text-sm",children:[d(Z,{className:({isActive:n})=>n||t?" py-1 w-1/2 flex flex-col items-center justify-center text-center border-b-8 border-per bg-per bg-opacity-10":"w-1/2 flex flex-col items-center py-1 justify-center text-center",to:"/profile/perfil",children:[o("img",{src:"/assets/elos/per.png",className:"h-7 sm:h-9"}),o("div",{className:"sm:text-base text-sm text-white ",children:"Mis Datos"})]}),d(Z,{className:({isActive:n})=>n?" py-1 w-1/2 flex flex-col items-center justify-center text-center border-b-8 border-amarillo-pen bg-amarillo-pen bg-opacity-5":"w-1/2 flex flex-col items-center py-1 justify-center text-center",to:"/profile/cromos",children:[o("img",{src:"/assets/elos/cro.png",className:"h-7 sm:h-9 "}),o("div",{className:"sm:text-base text-sm text-white ",children:"Mis Cromos"})]})]})})})}),o("div",{children:o(Ol,{context:{color:r}})})]}):o(wo,{color:r})}const Vo=({manhwas:e,isGrupo:t=!1,color:r})=>o("div",{className:"bg-black pt-1 mb-5",children:e.map((n,a)=>{var i;return d("div",{className:"flex xs:px-1 border-b border-gray-600",children:[o("div",{className:"w-12 flex items-center justify-center",children:o("span",{className:"border p-2",children:a+1})}),t?o(Z,{to:`/grupo/${n._id}`,children:o("img",{className:"cursor-pointer h-16 xs:h-20 aspect-square",src:n.logo,alt:"grupo"})}):o("a",{href:n.link.replace(ke,""),children:o("img",{className:"cursor-pointer h-16 xs:h-20 aspect-defect",src:n.imagen,alt:"manhwa"})}),d("div",{className:"w-2/3 pl-2 flex flex-col gap-1 sm:gap-2 mt-1",children:[t?o(Z,{to:`/grupo/${n._id}`,className:`text-base_ leading-customa md:text-xl line-clamp-2 sm:line-clamp-1 ${r?"hover:text-verde-text":"hover:text-vmw"} cursor-pointer`,children:n.name}):o("a",{href:n.link.replace(ke,""),className:"text-base_ leading-customa md:text-xl line-clamp-2 sm:line-clamp-1 hover:text-verde-text cursor-pointer",children:n.name}),d("div",{className:"text-gray-300",children:[n.caps||((i=n==null?void 0:n.numeros)==null?void 0:i.ace)," capÃtulos"]})]})]},a)})});function Cp({data:e=[],settings:t}){return e.length?o(jf,{...t,children:e.map(r=>o("div",{className:"overflow-hidden px-1",children:d("a",{href:`/manhwa/${r.real_id}`,children:[o("div",{className:`text-xs md:text-base w-full text-center rounded-t-md bg-opacity-80 103 ${r._tipo==="manhua"?"bg-marron":r._tipo==="manhwa"?"bg-green-600":r._tipo==="novela"?"bg-red-700":r._tipo==="doujinshi"?"bg-yellow-500":r._tipo==="manga"?"bg-blue-600":"bg-fuchsia-400"}`,children:r._tipo.replace("_","").toUpperCase()}),d("div",{className:"relative",children:[o("img",{src:r._imagen,alt:r.the_real_name,loading:"lazy",className:"w-full aspect-defect"}),r._categoris&&(r._categoris.includes(45)||r._categoris.includes(27))&&o("span",{className:`absolute top-1 left-1 px-1 rounded-md font-semibold border 104 ${r._categoris.includes(45)?"bg-purple-400":"bg-sky-400"}`,children:r._categoris.includes(45)?"BL":"GL"}),r._erotico==="si"&&o("span",{className:"absolute top-1 right-1 rounded-full bg-white border-2 border-red-700 text-black px-1 py-0.5 font-bold text-xs",children:"+18"}),o("span",{className:`absolute bottom-0 w-full text-center font-mono bg-opacity-80 105 ${r._demografi==="seinen"?"bg-red-700":r._demografi==="josei"?"bg-purple-700":r._demografi==="shojo"?"bg-fuchsia-500":"bg-yellow-600"}`,children:r._demografi.charAt(0).toUpperCase()+r._demografi.replace("sho","shou").slice(1)})]}),o("div",{className:"p-1",children:o("p",{className:"text-xs_ sm:text-sm_ leading-customa text-texto-blanco text-center font-sans font-medium line-clamp-3",children:r.the_real_name})})]})},r._id))}):o("p",{children:"No hay contenido"})}const UC=()=>
105{const[e,t]=x.useState(),[r,n]=x.useState(),[a,i]=x.useState(),[s,l]=x.useState(),[c,u]=x.useState(),[f,g]=x.useState(!0),[m,y]=x.useState(!1),[b,w]=x.useState(2),[_,v]=x.useState(2),[h,p]=x.useState(1),[N,S]=x.useState(1),{color:C}=ct();x.useEffect(()=>{document.title="ManhwaWeb",window.scrollTo({top:0,behavior:"smooth"}),g(!0),ee.get(`${te}/manhwa/nuevos`).then(E=>{console.log(E.data),t(E.data.utimos_mangas_creados),l(E.data.utimos_mangas_creados_18),n(E.data.manhwas),i(E.data.top),y(!0)}).catch(E=>{console.log(E),u(E)}).finally(()=>{g(!1)})},[]);function O(E){return I0(E,{locale:z0,addSuffix:!0,includeSeconds:!0})}const P={dots:!1,infinite:!0,speed:200,slidesToShow:6,slidesToScroll:1,swipeToSlide:!0,swipe:!0,arrows:!1,autoplay:!0,autoplaySpeed:2500,pauseOnFocus:!0,pauseOnHover:!0,pauseOnTouchStart:!0,draggable:!0,responsive:[{breakpoint:320,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:640,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:1024,settings:{slidesToShow:4,slidesToScroll:1}}]},k={dots:!1,infinite:!0,speed:300,slidesToShow:1,slidesToScroll:1,arrows:!1,autoplay:!0,autoplaySpeed:3e3,swipe:!0,draggable:!0,pauseOnTouchStart:!0,cssEase:"ease-out",touchThreshold:10};return c?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):d("div",{className:" mt-2",children:[o("div",{className:" md:hidden container mx-auto max-w-6xl mb-1",children:o("div",{className:" px-1 sm:px-10 sm:mx-2",children:d(jf,{...k,children:[o("a",{href:"https://t.me/manhwaweb_resurgir",className:" hidden md:block",children:o("img",{className:"w-full",src:"https://img2mw.xyz/test/baner_1.jpg",alt:""})}),o("a",{href:"https://manhwaweb.com/foro/1789728451830ic",className:" hidden md:block",children:o("img",{className:"w-full ",src:"https://img2mw.xyz/test/baner_7.jpg",alt:"aviso"})})]})})}),o("div",{className:"container mx-auto max-w-6xl md:mb-0 mb-4",children:o("div",{className:"mx-1 sm:mx-2",children:d("div",{className:" flex md:flex-row flex-col gap-2 w-full justify-between",children:[o("a",{href:"https://t.me/manhwaweb_resurgir",className:" hidden md:block",children:o("img",{className:"h-96",src:"https://img2mw.xyz/test/baner_1.jpg",alt:""})}),o("a",{href:"https://manhwaweb.com/foro/1789728451830ic",className:" hidden md:block",children:o("img",{className:"h-96 ",src:"https://img2mw.xyz/test/baner_7.jpg",alt:"aviso"})}),d("div",{className:" md:w-80",children:[o("img",{className:" hidden md:block mb-3",src:"https://img2mw.xyz/test/baner_3.jpg",alt:""}),d("a",{href:`${vr}/uploads`,className:`${C?"bg-verde-text":"bg-vmw"} bg-opacity-60 flex items-center justify-center w-full`,children:[o("img",{src:"https://img1mw.xyz/extras/upload.png",className:" w-5 mr-1.5 my-1.5",alt:""}),o("div",{className:" text-2xl text-black",children:"Subir capÃtulo"})]}),o("div",{className:" mt-1 text-xs_ md:text-base_ leading-customaaa",children:"*Recuerda que para que puedas realizar una subida, es necesario que pertenezcas a un grupo, podras crear tu grupo desde tu perfil."})]})]})})}),f&&o(Pt,{}),!f&&o("div",{className:"container mx-auto max-w-6xl ",children:d("div",{className:" md:flex md:flex-row-reverse sm:mx-2",children:[localStorage.getItem("tokenCommers")&&o("div",{className:" md:mt-6",children:o("div",{className:" hidden md:block",children:o(Z,{to:"/rank?m=1",className:" flex justify-center",children:o("img",{className:" px-1 w-[450px]",src:"https://img2mw.xyz/test/baner_4.jpg",alt:""})})})}),o("div",{className:" w-full ",children:d("div",{className:" mx-2",children:[d("div",{className:"flex mb-4 mt-6 ",children:[o(Me,{color:C}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 text-lg",children:"Cofre Diario"})]}),localStorage.getItem("tokenCommers")?d("div",{children:[o("div",{className:" mx-2 -mt-3 md:mx-6",children:d("div",{className:" sm:text-base_ leading-customa text-sm_",children:[o("div",{className:" mb-1",children:"* Este cofre solo incluye cromos y cromos raros."}),d("div",{className:" md:hidden mb-1",children:["* ",o(Z,{to:"/rank?m=1",className:C?" text-verde-text":"text-vmw",children:"Click aqui"}),", para ver Guia."]})]})}),o(Z0,{dato:1,color:C})]}):o("div",{className:"mx-2 flex justify-center",children:d("div",{className:`text-center md:w-2/3 w-3/4 text-base_ leading-customa text-white ${C?"bg-verde":"bg-vmws"} p-4 rounded-md`,children:["Debes ",o(Z,{to:"/login",className:` ${C?"text-verde-text":"text-vmw"} font-semibold hover:underline`,children:"Iniciar Sesion"})," para poder comprar cofres y conseguir cromos."]})})]})})]})}),!f&&o("div",{className:"container mx-auto max-w-6xl",children:d("div",{className:"mx-2",children:[d("div",{className:"flex mb-4 mt-8",children:[o(Me,{color:C}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 text-lg",children:"Nuevas Obras"})]}),o("div",{children:d("nav",{role:"tablist",className:" flex md:text-lg text-sm text-gray-300 mb-4",children:[o("a",{role:"tab","aria-controls":"esp",onClick:()=>v(2),className:` cursor-pointer ${_==2&&(C?"active text-verde-text border-2 bg-verde border-verde-text":"active text-vmw border-2 bg-vmws border-vmw")} w-1/2 text-center md:py-2 py-1.5`,children:"Principal"}),o("a",{role:"tab","aria-controls":"raw",onClick:()=>v(1),className:` cursor-pointer ${_==1&&"active text-red-700 border-2 bg-red-900 bg-opacity-20 border-red-700"} w-1/2 text-center md:py-2 py-1.5`,children:"Adulto +18"})]})}),_==2&&o(Cp,{data:e,settings:P}),_==1&&o(Cp,{data:s,settings:P})]})}),!f&&o("div",{className:"container mx-auto max-w-6xl",children:d("div",{className:" mx-2",children:[o("div",{className:"flex mb-4 mt-6 justify-between items-center",children:d("div",{className:" flex",children:[o(Me,{color:C}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 text-lg",children:"Nuevos Capitulos"})]})}),o("div",{children:d("nav",{role:"tablist",className:" flex md:text-lg text-sm text-gray-300",children:[o("a",{role:"tab","aria-controls":"esp",onClick:()=>w(2),className:` cursor-pointer ${b==2&&(C?"active text-verde-text border-2 bg-verde border-verde-text":"active text-vmw border-2 bg-vmws border-vmw")} w-1/2 text-center md:py-2 py-1.5`,children:"Principal"}),o("a",{role:"tab","aria-controls":"raw",onClick:()=>w(1),className:` cursor-pointer ${b==1&&"active text-red-700 border-2 bg-red-900 bg-opacity-20 border-red-700"} w-1/2 text-center md:py-2 py-1.5`,children:"Adulto +18"})]})}),d("div",{className:" mt-4 ",children:[r.manhwas_esp.length==0&&b==2&&o(NoManhwas,{}),b==2&&o(Yu,{manhwas:r.manhwas_esp,formatFechaRelativa:O}),r._manhwas.length==0&&b==1&&o(NoManhwas,{}),b==1&&o(Yu,{manhwas:r._manhwas,formatFechaRelativa:O,erotic:"si"})]}),o("div",{className:" flex justify-center",children:o(Z,{to:`/latest-chapter
105s?m=${b}`,onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},className:` ${C?"bg-verde-text":"bg-vmw"} md:bg-opacity-80 w-full text-center px-10 py-0.5 mt-1.5 rounded-sm text-black`,children:"Ver todo"})})]})}),!f&&o("div",{className:"container mt-5 md:mt-8 mx-auto max-w-6xl",children:d("div",{className:"mx-2 grid grid-cols-1 md:grid-cols-2 md:gap-16",children:[d("div",{className:" w-full order-last md:order-first ",children:[o("div",{className:"flex mb-4 mt-6 justify-between items-center",children:d("div",{className:" flex",children:[o(Me,{color:C}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 text-lg",children:"Lo más Leido"})]})}),d("nav",{className:" justify-center flex md:text-lg bg-black text-base mb-1",children:[o("a",{onClick:()=>{S(1)},className:` cursor-pointer ${N==1&&(C?"active text-black bg-verde-fin":"active text-black bg-vmwc")} w-1/2 text-center py-2`,children:"Semanal"}),o("a",{onClick:()=>{S(2)},className:` cursor-pointer ${N==2&&(C?"active text-black bg-verde-fin":"active text-black bg-vmwc")} w-1/2 text-center py-2`,children:"Total"})]}),N===1&&o(Vo,{manhwas:a.manhwas_esp,color:C}),N===2&&o(Vo,{manhwas:a.manhwas_raw,color:C})]}),d("div",{className:" w-full ",children:[o("div",{className:"flex mb-4 mt-6 justify-between items-center",children:d("div",{className:" flex",children:[o(Me,{color:C}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 text-lg",children:"Grupos más Activos"})]})}),d("nav",{className:" justify-center flex md:text-lg bg-black text-base mb-1",children:[o("a",{onClick:()=>{p(1)},className:` cursor-pointer ${h==1&&"active bg-blue-500 text-black font-semibold"} w-1/2 text-center py-2`,children:"Scans"}),o("a",{onClick:()=>{p(2)},className:` cursor-pointer ${h==2&&"active bg-orange-700 text-black font-semibold"} w-1/2 text-center py-2`,children:"Uploaders"})]}),h===1&&o(Vo,{manhwas:a._manhwas,isGrupo:!0,color:C}),h===2&&o(Vo,{manhwas:a.manhwas_,isGrupo:!0,color:C})]})]})})]})},FC=()=>{var c,u,f,g;
105const e=ta(),[t,r]=x.useState(),[n,a]=x.useState(),[i,s]=x.useState(!0),{color:l}=ct();return x.useEffect(()=>{ee.get(`${te}/manhwa/autor2/${e.id}`).then(m=>{console.log(m.data),r(m.data),document.title=`Obras de ${m.data.autor.name} - ManhwaWeb`;const y=document.querySelector('meta[name="description"]');y&&y.setAttribute("content",`Obras de ${m.data.autor.name} - Lee tus manhwas favoritos`)}).catch(m=>{a(1),m.response.status==404&&a(2)}).finally(()=>{s(!1)})},[]),i?o(Pt,{}):n==1?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):n==2?d(ye,{children:[" ",o(ra,{color:l})]}):o("div",{children:o("div",{className:"container mx-auto max-w-6xl mt-5",children:d("div",{className:"mx-2 ",children:[o("div",{className:"h-28 md:h-40 bg-cover bg-center",style:{backgroundImage:"url(https://manhwaweb.com/assets/banners/portada1.jpg)"}}),d("div",{className:" flex flex-col sm:flex-row sm:gap-8",children:[o("div",{className:"relative md:w-1/4 flex ",children:d("div",{className:"relative z-10 -mt-16 ml-8 md:-mt-24 md:ml-14 md:w-48 font-medium flex flex-row sm:flex-col",children:[o("img",{src:"https://manhwaweb.com/assets/banners/autor.jpg",className:"h-32 sm:w-full w-32 rounded-full border border-white object-cover md:h-48",alt:""}),o("a",{className:`${l?"bg-verde-text":"bg-vmw"} h-10 sm:h-auto mt-20 ml-5 mr-2 sm:mr-auto sm:ml-auto w-28 sm:mt-4 flex sm:w-full items-center justify-center bg-opacity-70`,children:o("span",{className:" text-lg sm:text-2xl text-black",children:"Editar"})}),o("a",{className:`${l?"bg-red-600":"bg-vmw"} h-10 sm:h-auto mt-20 w-28 sm:mt-2 flex sm:w-full items-center justify-center bg-opacity-70`,children:o("span",{className:" text-lg sm:text-2xl text-black",children:"Reportar"})})]})}),d("div",{className:" mt-3 md:w-3/4 md:mr-14 mb-10",children:[o("div",{className:`sm:text-4xl text-xl font-medium mb-3 ${l?"text-verde-text":"text-vmw"}`,children:t.autor.name}),(((c=t==null?void 0:t.autor)==null?void 0:c.others_name)&&t.autor.others_name.length>0||((u=t==null?void 0:t.autor)==null?void 0:u.links)&&t.autor.links.length>0||t.biography)&&d("div",{children:[o("div",{children:"BiografÃa"}),t.biography&&o("div",{className:" text-base font-normal",children:t.biography}),t.autor.others_name&&t.autor.others_name.length>0&&d("div",{className:" text-lg font-medium",children:[o("div",{className:"text-zinc-300 mt-0.5",children:"Nombres asociados"}),o("div",{className:"flex flex-wrap gap-2",children:(f=t.autor.others_name)==null?void 0:f.map((m,y)=>o("h3",{className:" font-normal text-sm bg-verde px-1.5 rounded-md",children:m},`${m}-${y}`))})]}),t.autor.links&&t.autor.links.length>0&&d("div",{className:" text-lg font-medium",children:[o("div",{className:"text-zinc-300 mt-0.5",children:"Links"}),o("div",{className:"flex flex-wrap gap-2",children:(g=t.autor.links)==null?void 0:g.map((m,y)=>o("a",{href:m.url,className:" font-normal text-sm bg-verde px-1.5 rounded-md",children:m.plataform}))})]})]}),d("div",{className:" text-xl mb-3",children:["Obras (",t==null?void 0:t.obras.length,")"]}),t.obras.map((m,y)=>d("a",{href:`/manhwa/${m.real_id??m._id}`,className:` border-2 ${l?"hover:border-verde-text":"hover:border-vmw"} flex p-2 gap-2 border-t justify-between`,children:[o("div",{className:" md:h-48 sm:h-44 xs:h-40 h-32 aspect-defect flex justify-center",children:o("img",{src:m._imagen,alt:m._id,className:" md:h-48 sm:h-44 xs:h-40 h-32 w-auto"})}),d("div",{className:" w-auto flex flex-col justify-between",children:[d("div",{children:[o("h3",{className:" xs:text-lg text-base font-medium pb-1.5",children:m.name_esp}),o("div",{className:" xs:text-sm text-xs mb-0 line-clamp-4",children:m._sinopsis})]}),o("div",{className:" flex flex-wrap",children:m._categoris.length>0&&m._categoris.map(b=>o("div",{className:`text-xs xs:text-sm px-0.5 rounded-sm mt-2 mr-2 ${l?"bg-verde-intermedio":"bg-vmwt"}`,children:b},b))})]})]},y))]})]})]})})})},BC=({color:e})=>(x.useEffect(()=>{const t=document.createElement("script");t.type="application/javascript",t.src="https://a.magsrv.com/ad-provider.js",t.async=!0,document.getElementById("exo-container-3").appendChild(t);const r=document.createElement("script");return r.innerHTML='(AdProvider = window.AdProvider || []).push({"serve": {}});',document.getElementById("exo-container-3").appendChild(r),()=>{const n=document.getElementById("exo-container-3");n&&(n.innerHTML="")}},[]),o("div",{id:"exo-container-3",className:"flex justify-center items-center overflow-x-auto",children:o("ins",{className:"eas6a97888e38","data-zoneid":e?"5358242":"5451596"})})),Ep=()=>d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o("line",{x1:"17",y1:"12",x2:"6",y2:"12"}),o("path",{d:"M11 18l-6-6 6-6"})]}),Op=()=>d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o("circle",{cx:"5",cy:"8",r:"0.5"}),o("circle",{cx:"5",cy:"12",r:"0.5"}),o("circle",{cx:"5",cy:"16",r:"0.5"}),o("line",{x1:"9",y1:"8",x2:"19",y2:"8"}),o("line",{x1:"9",y1:"12",x2:"19",y2:"12"}),o("line",{x1:"9",y1:"16",x2:"19",y2:"16"})]}),Pp=()=>d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o("line",{x1:"7",y1:"12",x2:"18",y2:"12"}),o("path",{d:"M13 18l6-6-6-6"})]}),WC=({color:e})=>(x.useEffect(()=>{const t=document.createElement("script");t.type="text/javascript",t.src="https://poweredby.jads.co/js/jads.js",t.async=!0,t.dataset.cfasync="false",document.getElementById("juicyads-container").appendChild(t);const r=document.createElement("script");return r.type="text/javascript",r.dataset.cfasync="false",r.async=!0,r.innerHTML=`(adsbyjuicy = window.adsbyjuicy || []).push({'adzone':${e?"1052848":"1070633"}});`,document.getElementById("juicyads-container").appendChild(r),()=>{const n=document.getElementById("juicyads-container");n&&(n.innerHTML="")}},[]),o("div",{id:"juicyads-container",className:"flex justify-center items-center overflow-x-auto",children:o("ins",{id:e?"1052848":"1070633","data-width":"908","data-height":"270"})})),HC=({color:e})=>(x.useEffect(()=>{const t=document.createElement("script");t.async=!0,t.setAttribute("data-cfasync","false"),t.src="https://platform.pubadx.one/pubadx-ad.js",t.type="text/javascript",document.getElementById("bub-10578").appendChild(t);const r=document.createElement("script");return r.setAttribute("data-cfasync","false"),r.setAttribute("data-no-optimize","1"),r.textContent=` 106 var adx_id_10578 = document.getElementById('bg-ssp-10578'); 107 adx_id_10578.id = 'bg-ssp-10578-' + Math.floor(Math.random() * Date.now()); 108 window.pubadxtag = window.pubadxtag || []; 109 window.pubadxtag.push({zoneid: 10578, id: adx_id_10578.id, wu: window.location.href}); 110 `,document.getElementById("bg-ssp-10578").appendChild(r),()=>{const n=document.getElementById("bub-10578");n&&(n.innerHTML="")}},[]),d("div",{id:"bub-10578",children:[o("div",{id:"bg-ssp-pre-10
110578"}),o("div",{id:"bg-ssp-10578"})]})),qC=({color:e})=>(x.useEffect(()=>{const t=document.createElement("script");t.async=!0,t.setAttribute("data-cfasync","false"),t.src="https://platform.pubadx.one/pubadx-ad.js",t.type="text/javascript",document.getElementById("bub-10530").appendChild(t);const r=document.createElement("script");return r.setAttribute("data-cfasync","false"),r.setAttribute("data-no-optimize","1"),r.textContent=` 111 var adx_id_10530 = document.getElementById('bg-ssp-10530'); 112 adx_id_10530.id = 'bg-ssp-10530-' + Math.floor(Math.random() * Date.now()); 113 window.pubadxtag = window.pubadxtag || []; 114 window.pubadxtag.push({zoneid: 10530, id: adx_id_10530.id, wu: window.location.href}); 115 `,document.getElementById("bg-ssp-10530").appendChild(r),()=>{const n=document.getElementById("bub-10530");n&&(n.innerHTML="")}},[]),d("div",{id:"bub-10530",children:[o("div",{id:"bg-ssp-pre-10530"}),o("div",{id:"bg-ssp-10530"})]})),VC=()=>(x.useEffect(()=>{const e=document.createElement("script");e.async=!0,e.setAttribute("data-cfasync","false"),e.src="https://platform.pubadx.one/pubadx-ad.js",e.type="text/javascript",document.getElementById("bub").appendChild(e);const t=document.createElement("script");return t.setAttribute("data-cfasync","false"),t.setAttribute("data-no-optimize","1"),t.textContent=` 116 var adx_id_11703 = document.getElementById('bg-ssp-11703'); 117 adx_id_11703.id = 'bg-ssp-11703-' + Math.floor(Math.random() * Date.now()); 118 window.pubadxtag = window.pubadxtag || []; 119 window.pubadxtag.push({zoneid: 11703, id: adx_id_11703.id, wu: window.location.href}); 120 `,document.getElementById("bg-ssp-11703").appendChild(t),()=>{const r=document.getElementById("bub");r&&(r.innerHTML="")}},[]),d("div",{id:"bub",className:"flex justify-center items-center overflow-x-auto",children:[o("div",{id:"bg-ssp-pre-11703"}),o("div",{id:"bg-ssp-11703"})]})),GC=()=>(x.useEffect(()=>{const e=document.createElement("script");e.async=!0,e.setAttribute("data-cfasync","false"),e.src="https://platform.pubadx.one/pubadx-ad.js",e.type="text/javascript",document.getElementById("bub").appendChild(e);const t=document.createElement("script");return t.setAttribute("data-cfasync","false"),t.setAttribute("data-no-optimize","1"),t.textContent=` 121 var adx_id_11772 = document.getElementById('bg-ssp-11772'); 122 adx_id_11772.id = 'bg-ssp-11772-' + Math.floor(Math.random() * Date.now()); 123 window.pubadxtag = window.pubadxtag || []; 124 window.pubadxtag.push({zoneid: 11772, id: adx_id_11772.id, wu: window.location.href}); 125 `,document.getElementById("bg-ssp-11772").appendChild(t),()=>{const r=document.getElementById("bub");r&&(r.innerHTML="")}},[]),d("div",{id:"bub",className:"flex justify-center items-center overflow-x-auto",children:[o("div",{id:"bg-ssp-pre-11772"}),o("div",{id:"bg-ssp-11772"})]})),Tp=()=>{var P;
125const e=ta(),[t,r]=x.useState(),[n,a]=x.useState(),[i,s]=x.useState(),[l,c]=x.useState(!0),[u,f]=x.useState(),[g,m]=x.useState(!1),[y,b]=x.useState(0),[w,_]=x.useState("full"),[v,h]=x.useState(0),{color:p}=ct();x.useState(!1),x.useEffect(()=>{c(!0),(async()=>{try{const E=await ee.get(`${te}/chapters/see/${e.id}`);r(E.data),f(E.data.chapter.img.map(T=>!0)),document.title=`${E.data.name} Capitulo ${E.data.chapter.chapter} manhwa - ManhwaWeb`;const M=document.querySelector('meta[name="description"]');if(M&&M.setAttribute("content",`${E.data.name} Capitulo ${E.data.chapter.chapter} leer manhwa`),c(!1),!p)if(E.data.erotico=="si"){let T=document.createElement("script");T.src="//paralyzedhelmetnell.com/f4/03/1d/f4031d678b0d7360a51f603c3d5c9974.js",T.type="text/javascript",document.head.appendChild(T)}else{let T=document.createElement("script");T.src="//paralyzedhelmetnell.com/36/91/dc/3691dc17f6d2807b22b3e2910cf2649d.js",T.type="text/javascript",document.head.appendChild(T)}try{const T=await ee.get(`${te}/chapters/seeprevpost/${e.id}`);a(T.data)}catch{console.log("sucedio un error en ant-sig")}if(localStorage.getItem("tokenCommers")){const T={manhwa:E.data._id,chapter:E.data.chapter.chapter,order:"b"};ee.post(`${te}/follow/leidosmanhwas`,T,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).catch(j=>console.log("No tienes esta obra marcada"))}}catch(E){s(1),E.response&&E.response.status===404&&(s(2),document.title="Not Found - ManhwaWeb"),c(!1)}})()},[]);const N=k=>{f(E=>E.map((M,T)=>T===k?!1:M))},S=k=>{_(E=>E==="full"?"half":"full"),h(window.scrollY)};x.useEffect(()=>{const k=w==="full"?v*1.7142857142857142:v/1.7142857142857142;console.log(k),window.scrollTo(0,k)},[w]);const C=()=>{console.log("412"),localStorage.getItem("tokenCommers")&&ee.post(`${te}/rank/diezexp`,{},{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}})};x.useEffect(()=>{const k=setTimeout(()=>{C()},2e4);return()=>{clearTimeout(k)}},[]);const O=async k=>{var M,T;const E=window.prompt("Describe el error que encontraste:");if(E!==null){m(!0);try{let j=await ee.post(`${te}/manhwa/error`,{title:t.name,obra:t._id+"-"+((M=t==null?void 0:t.chapter)==null?void 0:M.chapter),chapter:(T=t==null?void 0:t.chapter)==null?void 0:T.chapter,text:E});b(1)}catch{b(2),m(!1)}}else console.log("cancelado")};return l?o(Pt,{}):i==1?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):i==2?d(ye,{children:[" ",o(ra,{color:p})]}):d("div",{children:[t.erotico=="si"&&p&&o(qC,{}),t.erotico!="si"&&p&&o(HC,{}),o("div",{className:"container mx-auto max-w-6xl mt-1 ",children:d("div",{className:" bg-gray-400 mx-1 rounded-md p-1 ",children:[d("div",{className:" text-black sm:text-base_ text-xs_ leading-normal text-justify ",children:[o("span",{className:`${t.erotico!="si"?"rounded-md":" rounded-l-md"} pt-0.5 px-1 bg-yellow-500`,children:"AD"}),t.erotico=="si"&&o("span",{className:"px-1 pt-0.5 rounded-r-md bg-red-500",children:"(Solo se monstraran ads +18 cuando te encuentres en obras +18)"})]}),o(Px,{})]})}),String((P=t==null?void 0:t.chapter)==null?void 0:P.chapter).includes("_")&&o("div",{className:" bg-orange-300 rounded-sm px-2 py-1 mt-1 max-w-2xl mx-auto leading-none",children:d("span",{className:" text-base-negro text-xs font-medium",children:[o("span",{className:" font-bold",children:"Nueva funcion agregada"}),": si haces doble click o doble tap en las imagenes, estas reduciran su tamaño para que puedas disfrutar de paneles largos, con doble click tambien lo devolveras al tamaño original."]})}),o("div",{className:" flex ",children:o("button",{disabled:g,onClick:O,className:`${y==1?"bg-green-500":"bg-red-400 hover:bg-red-600"} rounded-sm px-2 py-1 mt-1 md:text-sm mx-auto text-base-negro text-xs font-medium`,children:y==0?"REPORTAR_CAPITULO_ROTO":y==1?"Capitulo reportado":"Sucedio un error, Reintentar Reporte"})}),d("div",{children:[o("div",{className:"text-center xs:text-lg md:text-3xl pt-4 px-3",children:t.name}),d("div",{className:"text-center text-sm xs:text-base md:text-2xl pt-4 pb-6 px-3",children:[d("span",{children:["Capitulo ",String(t.chapter.chapter).split("_")[0]]}),t.chapter.joint&&t.chapter.joint.length>0&&d("span",{children:[o("span",{children:" - Subido por:"}),t.chapter.joint.map((k,E)=>{var M,T;return d("span",{children:[o("span",{children:E!=0?" - ":" "}),o("a",{className:` ${p?"text-verde-text":"text-vmw"} hover:font-semibold hover:underline`,href:`/grupo/${(M=k==null?void 0:k.grupo)==null?void 0:M._id}`,children:(T=k==null?void 0:k.grupo)==null?void 0:T.name})]},E)})]})]}),d("div",{className:" flex justify-around mb-5 md:max-w-xl max-w-md mx-auto",children:[n&&n.chapterAnterior!="no_hay"&&n.chapterAnterior.includes("manhwaweb.com")&&d("a",{href:n.chapterAnterior.replace(ke,"").replace(t._id,t.real_id),className:` flex items-center ${p?"bg-verde border-verde-text":"bg-vmws border-vmw"} border rounded-sm`,children:[o("div",{className:` h-12 w-12 ${p?"bg-verde":"bg-vmws"}`,children:o(Ep,{})}),o("div",{className:" pr-2 hidden md:flex",children:"Cap. Anterior"})]}),n&&n.actual&&d("a",{href:`/manhwa/${t.real_id}`,className:` flex items-center ${p?"bg-verde border-verde-text":"bg-vmws border-vmw"} border rounded-sm`,children:[o("div",{className:` w-12 h-12 ${p?"bg-verde":"bg-vmws"}`,children:o(Op,{})}),o("div",{className:" pr-2 hidden md:flex",children:"Episodios"})]}),n&&n.chapterSiguiente!="no_hay"&&n.chapterSiguiente.includes("manhwaweb.com")&&d("a",{href:n.chapterSiguiente.replace(ke,"").replace(t._id,t.real_id),className:` flex items-center ${p?"bg-verde border-verde-text":"bg-vmws border-vmw"} border rounded-sm`,children:[o("div",{className:" pl-2 hidden md:flex",children:"Cap. Siguiente"}),o("div",{className:` h-12 w-12 ${p?"bg-verde":"bg-vmws"}`,children:o(Pp,{})})]})]}),o("div",{className:"container mx-auto max-w-6xl my-4 ",children:d("div",{className:" bg-gray-400 mx-1 rounded-md pt-1 px-1 ",children:[d("div",{className:" text-black sm:text-base_ text-xs_ leading-normal text-ju
125stify ",children:[o("span",{className:`${t.erotico!="si"?"rounded-md":" rounded-l-md"} pt-0.5 px-1 bg-yellow-500`,children:"AD"}),t.erotico=="si"&&o("span",{className:"px-1 pt-0.5 rounded-r-md bg-red-500",children:"(Solo se monstraran ads +18 cuando te encuentres en obras +18)"})]}),t.erotico=="si"?o(GC,{color:p}):o(VC,{color:p})]})}),o("div",{className:" flex-col justify-center items-center",children:t.chapter.img.map((k,E)=>d("div",{className:" flex flex-col items-center w-full md:max-w-3xl m-auto",children:[k!=""&&o("img",{className:`w-${w==="half"?"7/12":"full"}`,src:k,alt:t.name,referrerPolicy:String(t.chapter.chapter).includes("_")?void 0:"no-referrer",onLoad:()=>N(E),onError:()=>N(E),onDoubleClick:S,loading:E==0?"eager":"lazy"}),k!=""&&u[E]&&o("div",{className:"flex justify-center items-center h-80 my-6",children:o("img",{src:"/assets/banners/loading.gif",alt:"loading"})})]},E))})]}),o("div",{className:" container mx-auto max-w-3xl flex justify-center mt-2 gap-2 ",children:t.chapter.joint&&t.chapter.joint.length>0&&o("div",{children:t.chapter.joint.map((k,E)=>{var M,T;return(M=k==null?void 0:k.grupo)!=null&&M.chapter_banner&&k.grupo.chapter_banner!=""&&k.grupo.chapter_banner_link&&k.grupo.chapter_banner_link!=""?d("a",{href:k.grupo.chapter_banner_link,className:`flex flex-col px-2 pb-2 ${p?"text-verde-text":"text-vmw"} bg-black`,children:[o("div",{children:"SCAN redirection banner"}),o("img",{className:"w-full aspect-toptoon_1",src:k.grupo.chapter_banner,alt:"baner"})]}):(T=k==null?void 0:k.grupo)!=null&&T.chapter_banner&&k.grupo.chapter_banner!=""?d("div",{className:`px-2 pb-2 ${p?"text-verde-text":"text-vmw"} bg-black cursor-pointer`,children:[o("div",{children:"SCAN banner"}),o("img",{className:" w-full aspect-toptoon_1",src:k.grupo.chapter_banner,alt:"baner"})]}):null})})}),o("div",{className:"container mx-auto max-w-6xl my-4 ",children:d("div",{className:" bg-gray-400 mx-1 rounded-md pt-1 px-1 ",children:[d("div",{className:" text-black sm:text-base_ text-xs_ leading-normal text-justify ",children:[o("span",{className:`${t.erotico!="si"?"rounded-md":" rounded-l-md"} pt-0.5 px-1 bg-yellow-500`,children:"AD"}),t.erotico=="si"&&o("span",{className:"px-1 pt-0.5 rounded-r-md bg-red-500",children:"(Solo se monstraran ads +18 cuando te encuentres en obras +18)"})]}),p&&(t.erotico=="si"?o(Tx,{}):o(Mx,{})),!p&&(t.erotico=="si"?o(WC,{color:p}):o(BC,{color:p}))]})}),o("div",{className:` ${p?"bg-verde-intermedio":"bg-vmwt"} pt-2 pb-4 flex `,children:o("button",{disabled:g,onClick:O,className:`${y==1?"bg-green-500":"bg-red-400 hover:bg-red-600"} rounded-sm px-2 py-1 mt-1 md:text-sm mx-auto text-base-negro text-xs font-medium`,children:y==0?"REPORTAR CAPITULO ROTO":y==1?"Capitulo reportado":"Sucedio un error, Reintentar Reporte"})}),d("div",{className:"",children:[o("div",{className:p?"bg-verde-intermedio":"bg-vmwt",children:d("div",{className:" flex justify-around md:max-w-xl max-w-md mx-auto pb-5 mb-5",children:[n&&n.chapterAnterior!="no_hay"&&n.chapterAnterior.includes("manhwaweb.com")&&d("a",{href:n.chapterAnterior.replace(ke,"").replace(t._id,t.real_id),className:` flex items-center ${p?"bg-verde border-verde-text":"bg-vmws border-vmw"} border rounded-sm`,children:[o("div",{className:` h-12 w-12 ${p?"bg-verde":"bg-vmws"}`,children:o(Ep,{})}),o("div",{className:" pr-2 hidden md:flex",children:"Cap. Anterior"})]}),n&&n.actual&&d("a",{href:`/manhwa/${t.real_id}`,className:` flex items-center ${p?"bg-verde border-verde-text":"bg-vmws border-vmw"} border rounded-sm`,children:[o("div",{className:` w-12 h-12 ${p?"bg-verde":"bg-vmws"}`,children:o(Op,{})}),o("div",{className:" pr-2 hidden md:flex",children:"Episodios"})]}),n&&n.chapterSiguiente!="no_hay"&&n.chapterSiguiente.includes("manhwaweb.com")&&d("a",{href:n.chapterSiguiente.replace(ke,"").replace(t._id,t.real_id),className:` flex items-center ${p?"bg-verde border-verde-text":"bg-vmws border-vmw"} border rounded-sm`,children:[o("div",{className:" pl-2 hidden md:flex",children:"Cap. Siguiente"}),o("div",{className:` h-12 w-12 ${p?"bg-verde":"bg-vmws"}`,children:o(Pp,{})})]})]})}),o("div",{className:" max-w-4xl px-1 mx-auto",children:o(Ja,{url:`https://www.manhwaweb.com/leer/${t._id}-${t.chapter.chapter}`,identifier:`${t._id}
125-${String(t.chapter.chapter).split("_")[0]}${t.chapter.coments??""}`,title:`${t.name}-${String(t.chapter.chapter).split("_")[0]}`})})]})]})},YC=({color:e})=>{let[t,r]=x.useState(!1);const{userDatos:n,setUserDatos:a}=x.useContext(Xa),i=(n==null?void 0:n.permisos)==="admin",s=(n==null?void 0:n.permisos)==="sub-admin";tr(),Nr(),x.useRef(!0);const l=()=>{localStorage.removeItem("tokenCommers"),a({usuario:void 0,permisos:void 0}),r(!1),window.location.href="/"},c=()=>{r(!1)};return d("div",{children:[o("div",{className:`w-full text-white ${t?e?" bg-verde-intermedio md:bg-verde":"bg-vmwt md:bg-vmws":""}`,children:d("div",{className:"flex items-center justify-between px-2 md:py-2.5 py-2 ",children:[d("a",{href:"/",className:" w-1/3 font-bold md:text-2xl text-xl cursor-pointer flex items-center font-[Poppins]",children:[o("span",{className:`md:text-3xl text-2xl ${e?"text-verde-text":"text-vmw"}`,children:e?"MANHWA":"visorMANHWA"}),"WEB"]}),o("div",{className:" flex items-center gap-3 sm:gap-36 md:hidden",children:o("button",{onClick:()=>r(!t),type:"button",className:`${e?"hover:text-verde-text":"hover:text-vmw"} cursor-pointer md:hidden rounded-md text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white`,children:o("div",{name:t?"close":"menu",children:o("svg",{className:"block h-8 w-8",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})})})}),o("div",{className:`${e?" bg-verde-intermedio md:bg-verde":"bg-vmwt md:bg-vmws"} border-dashed hidden md:block border-t-0 border-black w-full md:w-auto rounded-b-md`,children:o("div",{className:"md:gap-10 gap-3 md:px-0 px-2 md:flex-row md:content-center md:pt-0 pt-2 flex-col flex items-end md:items-center md:pb-0 pb-5",children:o("div",{className:" w-full md:w-auto md:pr-0 pr-1",children:o("ul",{className:"flex flex-col md:items-center text-xl gap-1 md:flex-row md:gap-8 lg:gap-10 content-center md:text-left text-right",children:localStorage.getItem("tokenCommers")?d(ye,{children:[i&&o("li",{className:" hover:text-yellow-500",children:o("a",{href:"/admin",children:"Admin"})}),(i||s)&&o("li",{className:" hover:text-yellow-500",children:o("a",{href:`${vr}/admin`,target:"_blank",children:"ADMIN"})}),o("li",{children:o("a",{href:"/mis-manhwas",className:e?"hover:text-verde-text":"hover:text-vmw",onClick:c,children:"Mis Manhwas"})}),o("li",{children:o("a",{href:"/profile",className:e?"hover:text-verde-text":"hover:text-vmw",onClick:c,children:"Mi Perfil"})}),o("li",{className:" hover:text-red-600",children:o("button",{className:" cursor-pointer",onClick:l,children:"Cerrar Sesion"})})]}):d(ye,{children:[o("li",{className:e?" hover:text-verde-text":"hover:text-vmw",children:o("a",{href:"/login",onClick:c,children:"Iniciar Sesión"})}),o("li",{className:e?" hover:text-verde-text":"hover:text-vmw",children:o("a",{href:"/register",onClick:c,children:"Registrar"})})]})})})})})]})}),t&&o("div",{className:`${e?" bg-verde-intermedio md:bg-verde":"bg-vmwt md:bg-vmws"} border-dashed border-t-2 border-black w-full md:hidden rounded-b-md `,children:o("div",{className:" gap-3 px-2 pt-2 flex-col flex items-end pb-4",children:o("div",{className:" w-full pr-1",children:o("ul",{className:"flex flex-col text-lg gap-1 content-center text-right",children:localStorage.getItem("tokenCommers")?d(ye,{children:[i&&o("li",{className:" hover:text-yellow-500",children:o("a",{href:"/admin",children:"Admin"})}),(i||s)&&o("li",{className:" hover:text-yellow-500",children:o("a",{href:`${vr}/admin`,target:"_blank",children:"ADMIN"})}),o("li",{children:o("a",{href:"/mis-manhwas",className:e?"hover:text-verde-text":"hover:text-vmw",onClick:c,children:"Mis Manhwas"})}),o("li",{children:o("a",{href:"/profile",className:e?"hover:text-verde-text":"hover:text-vmw",onClick:c,children:"Mi Perfil"})}),o("li",{className:" hover:text-red-600",children:o("button",{className:" cursor-pointer",onClick:l,children:"Cerrar Sesion"})})]}):d(ye,{children:[o("li",{className:e?" hover:text-verde-text":"hover:text-vmw",children:o("a",{href:"/login",onClick:c,children:"Iniciar Sesión"})}),o("li",{className:e?" hover:text-verde-text":"hover:text-vmw",children:o("a",{href:"/register",onClick:c,children:"Registrar"})})]})})})})})]})};function Mp(){const e=ke===ze;return d("div",{className:" bg-base-negro min-h-screen text-white flex flex-col justify-between overflow-auto",children:[o(Dl,{}),d("div",{children:[d("header",{children:[o("div",{className:" bg-verde",children:o("div",{className:"container mx-auto max-w-6xl",children:o(YC,{color:e})})}),o("div",{children:o("div",{className:"container mx-auto max-w-6xl",children:o(E0,{color:e})})})]}),o(Ol,{context:{color:e}})]}),o(Cf,{color:e})]})}const io=()=>o("div",{children:d("div",{className:"container mx-auto max-w-5xl ",children:[o("div",{className:"mx-2 flex justify-center",children:o("div",{children:o("svg",{xmlns:"http://www.w3.org/2000/svg",className:" md:h-36 md:w-36 h-28 w-28",viewBox:"0 0 20 20",fill:"none",stroke:"#2C3E50",children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M6 18L18 6M6 6l12 12"})})})}),o("div",{className:" text-center md:text-lg text-gray-300 mt-3 ml-5 lg:ml-10",children:"No hay elementos"})]})});
125function Rp(){const[e,t]=x.useState(),[r,n]=x.useState(),[a,i]=x.useState(),[s,l]=x.useState(),[c,u]=x.useState(),[f,g]=x.useState(),[m,y]=x.useState(!0),[b,w]=x.useState(1),[_,v]=x.useState(1),[h,p]=x.useState(!1),{color:N}=ct(),[S]=Rn(),C=tr(),O=x.useRef(!0);x.useEffect(()=>{y(!0),w(1),v(1),O.current?O.current=!1:window.scrollTo({top:0,behavior:"smooth"}),ee.get(`${te}/rank/mio`,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(M=>{console.log(M.data),g(M.data)}).catch(M=>{t(M)}).finally(()=>{y(!1)})},[S]);const P=M=>{M.preventDefault(),w(1),n(!1);const T={newNick:M.target.nick.value};ee.patch(`${te}/user/renamenick`,T,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(j=>{C(`/profile?${Date.now()}`)}).catch(j=>{n(!0),u(j.response.data.errors[0])})},k=M=>{M.preventDefault(),v(1),i(!1);const T={newNick:M.target.codigo.value};ee.patch(`${te}/rank/telegram`,T,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(j=>{C(`/profile?${Date.now()}`)}).catch(j=>{i(!0)})},E=async M=>{p(!0),l();const T=M;ee.post(`${te}/grupos/aceptar_rechazar`,T,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(j=>{C(`/profile?${Date.now()}`)}).catch(j=>{l("Sucedio un error"),p(!1)})};return m?o(Pt,{}):localStorage.getItem("tokenCommers")?e?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):o("div",{children:o("div",{className:"container mx-auto max-w-6xl",children:o("div",{className:" mx-2",children:d("div",{className:" flex gap-3 sm:gap-10 mt-8 sm:flex-row flex-col sm:items-start items-center ",children:[d("div",{className:" w-3/4 sm:w-1/3",children:[o("div",{className:` bg-verde text-lg sm:text-xl text-center p-1 font-semibold flex justify-center items-center ${Number(f.foto_.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>89999?"shadow-para_verde shadow-verde-text border-x-2 border-verde-text":Number(f.foto_.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>19999?" shadow-para_dorado shadow-dorado border-x-2 border-dorado":Number(f.foto_.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>9999?" shadow-para_plateado shadow-plata border-x-2 border-plata":Number(f.foto_.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>0?" shadow-para_bronce shadow-bronce border-x-2 border-bronce":""}`,children:o("div",{className:" font-normal",children:f.level!="user"?"ADMIN":"USUARIO"})}),o("img",{className:`align-middle w-full object-cover mt-2 rounded-md ${Number(f.foto_.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>89999?"shadow-para_verde shadow-verde-text border-2 border-verde-text":Number(f.foto_.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>19999?" shadow-para_dorado shadow-dorado border-2 border-dorado":Number(f.foto_.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>9999?" shadow-para_plateado shadow-plata border-2 border-plata":Number(f.foto_.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>0?" shadow-para_bronce shadow-bronce border-2 border-bronce":""}`,src:f.foto_.replace(ke,ze)??"/assets/waifus/00000.jpg",alt:"usuario"})]}),d("div",{className:" w-full xs:w-full sm:w-2/3 flex flex-col",children:[o("form",{onSubmit:P,children:d("div",{className:"flex items-end sm:gap-5 ga
125p-2 flex-wrap",children:[b==1?o("div",{className:" text-md xs:text-2xl sm:text-3xl md:text-4xl font-semibold",children:f.nick}):o("input",{id:"nick",type:"text",className:" w-32 xs:w-40 sm:w-auto text-black pt-1 pb-2 rounded-md pl-2",name:"nick",placeholder:"Nick...",required:!0}),b==1?o("div",{className:" cursor-pointer text-gray-400",onClick:()=>w(2),children:"Editar"}):o("button",{type:"submit",children:"Cambiar"})]})}),r&&o("div",{className:"text-center flex justify-center mt-2",children:o("div",{className:"w-full py-1 bg-red-100 text-red-800 sm:text-base xs:text-sm text-xs",children:c})}),d("div",{className:"flex mt-5 items-center",children:[o(Me,{color:N}),o("h3",{className:"md:text-xl xs:text-xl -mt-1 text-lg",children:"Mis Estadisticas:"})]}),d("div",{className:" flex items-center justify-evenly",children:[o("div",{className:" flex items-center",children:o("img",{className:" h-24 md:h-28",src:`/assets/elos/00${f.rango-1}.png`,alt:"medalla"})}),d("div",{className:" flex flex-col md:text-lg text-base",children:[d("div",{children:[o("span",{className:" text-gray-300",children:"Caps Subidos:"})," ",f.caps_upload]}),d("div",{children:[o("span",{className:" text-gray-300",children:"Cromos:"})," ",f.cromos,"/300"]}),d("div",{children:[o("span",{className:" text-gray-300",children:"Puntos:"})," ",f.exp]})]})]}),d("div",{className:" mt-1 text-gray-300 md:text-xl mb-0.5",children:["Progreso de medalla ",f.rango==1?(f.real_exp/5).toFixed(2):f.rango==2?((f.real_exp-500)/15).toFixed(2):f.rango==3?((f.real_exp-2e3)/30).toFixed(2):f.rango==4?((f.real_exp-5e3)/50).toFixed(2):f.rango==5?((f.real_exp-1e4)/200).toFixed(2):f.rango==6?((f.real_exp-3e4)/500).toFixed(2):f.rango==7?((f.real_exp-8e4)/1500).toFixed(2):f.rango==8?((f.real_exp-23e4)/7e3).toFixed(2):0," %"]}),o("div",{className:"relative w-full h-4 bg-black",children:o("div",{className:`absolute top-0 left-0 h-full ${N?"bg-verde-text":"bg-vmw"}`,style:{width:`${f.rango==1?(f.real_exp/5).toFixed(2):f.rango==2?((f.real_exp-500)/15).toFixed(2):f.rango==3?((f.real_exp-2e3)/30).toFixed(2):f.rango==4?((f.real_exp-5e3)/50).toFixed(2):f.rango==5?((f.real_exp-1e4)/200).toFixed(2):f.rango==6?((f.real_exp-3e4)/500).toFixed(2):f.rango==7?((f.real_exp-8e4)/1500).toFixed(2):f.rango==8?((f.real_exp-23e4)/7e3).toFixed(2):0}%`}})}),0<f.invitaciones.length&&d(ye,{children:[d("div",{className:"flex mt-8 items-center mb-2",children:[o(Me,{color:N}),o("h3",{className:"md:text-xl xs:text-xl -mt-1 text-lg",children:"Invitaciones a Grupos:"})]}),f.invitaciones.map((M,T)=>o("div",{className:" mx-auto mb-1 bg-gray-600 w-full border border-black ",children:d("div",{className:" flex flex-col md:flex-row gap-1 items-center py-2 justify-around",children:[d("div",{children:["Invitacion al grupo ",o("span",{className:N?" text-verde-text":"text-vmw",children:M.name})]}),d("div",{className:" flex gap-5",children:[o("button",{disabled:h,onClick:()=>{E({grupo:M.grupo,rol:M.rol,respuesta:"si"})},className:" bg-verde-fin px-3 py-0.5 md:text-xl",children:"Aceptar"}),o("button",{disabled:h,onClick:()=>{E({grupo:M.grupo,rol:M.rol,respuesta:"no"})},className:" bg-red-600 px-3 py-0.5 md:text-xl",children:"Rechazar"})]})]})},T)),s&&o("div",{className:"text-center flex justify-start w-full",children:o("div",{className:" w-full bg-red-200 text-red-800 sm:text-md text-sm ",children:"Sucedio un error"})})," "]}),d("div",{className:" flex items-center mt-8 mb-2 justify-between",children:[d("div",{className:"flex items-center",children:[o(Me,{color:N}),o("h3",{className:"md:text-xl xs:text-xl -mt-1 text-lg",children:"Mis Grupos:"})]}),d(Z,{to:"/create_group",className:`hover:text-black hover:font-medium ${N?"hover:bg-verde-fin text-verde-text border border-verde-fin bg-verde":"hover:bg-vmwc text-vmw border border-vmwc bg-vmws"} py-1 px-1 md:px-3`,children:[o("span",{children:"+"})," Crear grupo"]})]}),f.grupos2.length<1?o(io,{}):o("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:f.grupos2.map((M,T)=>d("div",{className:" mx-auto max-w-sm sm:w-full ",children:[d(Z,{to:`/grupo/${M._id}`,className:" relative",children:[o("img",{className:" aspect-banner w-full",src:M.banner.replace(ke,ze),alt:""}),d("div",{className:"absolute top-0 w-full",children:[o("div",{className:" opacity-90 bg-gray-700 w-full p-1",children:M.name}),o("span",{className:`${M.tipo=="uploader"?" bg-orange-800":"bg-blue-800"} font-medium mx-1 rounded-sm py-0.5 px-1.5 text-xs`,children:M.tipo.toUpperCase()})]})]}),d("a",{href:`${vr}/scan_management/${M._id}`,className:" hover:bg-green-900 w-full flex items-center justify-center bg-gray-600 py-1",children:[o("img",{className:" w-5 h-5 mr-1",src:"https://img1mw.xyz/extras/confi_2.png",alt:""}),o("div",{className:" text-gray-100",children:"Gestionar"})]})]},T))}),d("div",{className:"flex mt-8 items-center",children:[o(Me,{color:N}),o("h3",{className:"md:text-xl xs:text-xl -mt-1 text-lg",children:"Vincular con Telegram:"})]}),o("form",{onSubmit:k,className:" ",children:d("div",{className:"flex items-end sm:gap-2 gap-1 flex-wrap",children:[_==1?f.telegram&&f.telegram!=0?o("div",{className:"sm:text-xl text-lg text-green-700",children:"Vinculado"}):o("div",{className:"sm:text-xl text-lg text-red-800",children:"Aun sin vincular"}):o("input",{id:"codigo",type:"text",className:" w-32 xs:w-40 sm:w-auto text-black rounded-md pl-2",name:"codigo",placeholder:"codigo",required:!0}),_==1?o("div",{className:" cursor-pointer text-gray-400 text-sm",onClick:()=>v(2),children:"vincular"}):o("button",{type:"submit",className:" text-sm",children:"vincular"})]})}),a&&o("div",{className:"text-center flex justify-start mt-1",children:o("div",{className:" sm:w-1/2 w-full bg-red-100 text-red-800 sm:text-sm xs:text-xs text-xxs",children:"formato o codigo incorrecto"})}),d("div",{className:"flex mt-6 items-center",children:[o(Me,{color:N}),o("h3",{className:"md:text-xl xs:text-xl -mt-1 text-lg",children:"Mi Perfil Publico:"})]}),o("div",{className:" flex mb-5 text-gray-300 text-xs xs:text-sm md:text-base",children:d(Z,{to:`/user/${f.public}`,children:[ze,"/user/",f.public]})})]})]})})})}):o(wo,{})}
125function QC(){const[e,t]=x.useState(),[r,n]=x.useState(),[a,i]=x.useState(!0),[s,l]=x.useState(),[c,u]=x.useState(),[f,g]=x.useState(!1),m=tr(),[y]=Rn();x.useEffect(()=>{i(!0),g(!1),ee.get(`${te}/user/profile`,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(h=>{n(h.data),l(h.data.cromos.map(p=>!0)),u(h.data.cromos.map(p=>"")),console.log(h.data)}).catch(h=>{t(h)}).finally(()=>{i(!1)})},[y]);const b=h=>{const p=[...s];p[h]=!p[h];const N=[...c];N[h]="",l(p),u(N)},w=h=>{console.log(h),g(!0);const p={newNick:h};ee.post(`${te}/rank/foto`,p,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(N=>{window.scrollTo({top:0,behavior:"smooth"}),m("/profile")}).catch(N=>{t(N)})},_=h=>{if(window.confirm("¿Estás seguro que quieres vender este cromo?")){console.log(h),g(!0);const N={link:h.link,exp:h.valor==9?1e3:h.valor==2?900:h.valor==1?500:100};ee.post(`${te}/rank/vender`,{cromo:N},{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(S=>{m(`/profile/cromos?${Date.now()}`)}).catch(S=>{t(S)})}},v=h=>{g(!0),n(S=>{const C={...S};return C.cromos[h.index].link=h.valor==2?"https://manhwaweb.com/assets/banners/gema_epica.gif":h.valor==1?"https://manhwaweb.com/assets/banners/gema_rara.gif":"https://manhwaweb.com/assets/banners/gema.gif",C.cromos[h.index].name="",C.cromos[h.index].manhwa="Transformando...",C});const p=[...s];p[h.index]=!0,l(p);const N={link_cromo:h.link,valor_cromo:h.valor};ee.post(`${te}/rank/transformar`,N,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(S=>{console.log(S.data),n(C=>{const O={...C};return O.cromos[h.index].link=S.data.link,O.cromos[h.index].name=S.data.name,O.cromos[h.index].manhwa=S.data.manhwa,O.gemas=S.data.gemas,O.gemas_raras=S.data.gemas_raras,O.gemas_epicas=S.data.gemas_epicas,O})}).catch(S=>{var P,k;console.log(S);const C=[...c];C[h.index]=(k=(P=S==null?void 0:S.response)==null?void 0:P.data)!=null&&k.errors&&S.response.data.errors.length>0?S.response.data.errors[0]:"Sucedio un error",u(C);const O=[...s];O[h.index]=!1,l(O),n(E=>{const M={...E};return M.cromos[h.index].link=h.link,M.cromos[h.index].name=h.name,M.cromos[h.index].manhwa=h.manhwa,M})}).finally(S=>{g(!1)})};return a?o(Pt,{}):localStorage.getItem("tokenCommers")?e?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):o("div",{children:o("div",{className:"container mx-auto max-w-6xl",children:d("div",{className:" mx-2 mt-5",children:[d("div",{className:" flex flex-row md:text-xl flex-wrap text-base",children:[d("div",{className:"w-full xs:mb-2 md:mb-0 xs:w-1/2 md:w-1/3 text-center",children:[o("span",{className:" text-gray-300",children:"Gemas:"})," ",r.gemas??0]}),d("div",{className:"w-full xs:mb-2 md:mb-0 xs:w-1/2 md:w-1/3 text-center",children:[o("span",{className:" text-gray-300",children:"Gemas Raras:"})," ",r.gemas_raras??0]}),d("div",{className:" w-full md:w-1/3 text-center",children:[o("span",{className:" text-gray-300",children:"Gemas Ãpicas:"})," ",r.gemas_epicas??0]})]}),r.cromos.length===0?o(vo,{}):o("div",{className:"grid grid-cols-2 xs:mt-3 mt-2 md:mt-4 xs:grid-cols-3 sm:grid-cols-4 md:grid-cols-5 gap-2",children:r.cromos.map((h,p)=>d("div",{className:" overflow-hidden",children:[o("div",{onClick:()=>b(p),className:` ${h.valor&&h.valor==9?"bg-verde-text":h.valor&&h.valor==2?" bg-dorado":h.valor&&h.valor==1?" bg-gray-400":" bg-bronce"} text-black font-black cursor-pointer text-center text-lg -mb-1 -mt-1.5 `,children:s[p]?"+":"-"}),d("div",{className:"relative border-t border-black",children:[o("img",{className:`${h.link=="/assets/banners/gema_epica.gif"?"p-4":""} ${h.valor&&h.valor==9?"bg-verde-text":h.valor&&h.valor==2?" bg-dorado":h.valor&&h.valor==1?" bg-gray-400":" bg-bronce"} w-full `,src:h.link.replace(ke,ze),alt:h.name}),!s[p]&&c[p]==""&&d("div",{className:"absolute text-xs sm:text-base bg-opacity-75 h-full bottom-0 left-0 w-full bg-black text-gray-200 flex flex-col items-center justify-around",children:[d("button",{disabled:f,onClick:()=>_({link:h.link,valor:h.valor??0}),className:" bg-verde-intermedio cursor-pointer w-full py-0.5 text-center",children:["Vender ",h.valor==9?"(1000 exp.)":h.valor==2?"(900 exp.)":h.valor==1?"(500 exp.)":"(100 exp.)"]}),o("button",{disabled:f,onClick:()=>
125w(h.link),className:" bg-verde-intermedio cursor-pointer w-full py-0.5 text-center",children:"Establecer de Avatar"}),h.valor!=9&&d("button",{disabled:f,onClick:()=>v({link:h.link,index:p,name:h.name,manhwa:h.manhwa,valor:h.valor??0}),className:" bg-verde-intermedio cursor-pointer w-full text-center",children:[o("div",{className:h.valor==2?" bg-opacity-40 bg-dorado":h.valor==1?" bg-opacity-50 bg-gray-500":" bg-opacity-40 bg-bronce",children:h.valor==2?"Usar Gema Ãpica":h.valor==1?"Usar Gema Rara":"Usar Gema"})," "]})]}),!s[p]&&c[p]!=""&&o("div",{className:"absolute text-xs sm:text-base bg-opacity-75 h-full bottom-0 left-0 w-full bg-black text-gray-200 flex flex-col items-center justify-around",children:o("div",{className:" bg-red-800 cursor-pointer w-full py-0.5 text-center",children:c[p]})})]}),o("div",{className:"p-1",children:d("div",{className:"text-xs_ sm:text-sm_ leading-customa text-texto-blanco text-center font-sans font-medium",children:[o("div",{className:" line-clamp-3",children:h.manhwa}),o("div",{className:" font-normal",children:h.name})]})})]},p))})]})})}):o(wo,{})}const KC="modulepreload",XC=function(e){return"/"+e},Dp={},JC=function(t,r,n){if(!r||r.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=XC(i),i in Dp)return;Dp[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!n)for(let f=a.length-1;f>=0;f--){const g=a[f];if(g.href===i&&(!s||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":KC,s||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),s)return new Promise((f,g)=>{u.addEventListener("load",f),u.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},ZC=({targetId:e,color:t})=>{const[r,n]=x.useState([]),[a,i]=x.useState(""),[s,l]=x.useState(""),[c,u]=x.useState(null),[f,g]=x.useState(!0),[m,y]=x.useState(!1),[b,w]=x.useState(""),[_,v]=x.useState(""),h=localStorage.getItem("tokenCommers"),p=Boolean(h),N=async(A=!0)=>{if(e)try{A&&g(!0),v("");const B=await ee.get(`${te}/comment/see/${encodeURIComponent(e)}`);n(B.data.comments||[])}catch(B){console.error("Error cargando comentarios:",B),v("No se pudieron cargar los comentarios.")}finally{A&&g(!1)}};x.useEffect(()=>{N()},[e]);const S=r.filter(A=>!A.parent),C={};r.forEach(A=>{A.parent&&(C[A.parent]||(C[A.parent]=[]),C[A.parent].push(A))});const O=async(A,B=null)=>{const z=A.trim();if(!z||m)return null;const ie={target_id:String(e),text:z};return B&&(ie.parent=String(B)),(await ee.post(`${te}/comment/create`,ie,{headers:{Authorization:`Bearer ${h}`}})).data.comment},P=async A=>{if(A.preventDefault(),!(!a.trim()||m))try{y(!0),w(""),v("");const B=await O(a);if(!B)return;i(""),B.status==="pending"?w("Tu comentario fue enviado y está en revisión."):(w("Comentario publicado."),await N(!1))}catch(B){E(B)}finally{y(!1)}},k=async(A,B)=>{if(A.preventDefault(),!(!s.trim()||m))try{y(!0),w(""),v("");const z=await O(s,B);if(!z)return;l(""),u(null),z.status==="pending"?w("Tu respuesta fue enviada y está en revisión."):(w("Respuesta publicada."),await N(!1))}catch(z){E(z)}finally{y(!1)}},E=A=>{var B,z,ie;if(console.error("Error publicando comentario:",A),((B=A.response)==null?void 0:B.status)===401){v("Tu sesión no es válida. Inicia sesión nuevamente.");return}if(((z=A.response)==null?void 0:z.data)==="nivel_de_respuesta_no_permitido"){v("No se puede responder a otra respuesta.");return}if(((ie=A.response)==null?void 0:ie.data)==="comentario_padre_no_existe"){v("El comentario al que intentas responder ya no existe.");return}v("No se pudo publicar el comentario.")},M=A=>{if(c===A){u(null),l("");return}u(A),l(""),w(""),v("")},T=A=>{var B,z;return A!=null&&A.foto?o("img",{src:A.foto.replace(ke,ze),alt:A.nick||"Usuario",className:"h-10 w-10 rounded-full object-cover"}):o("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-gray-600 font-bold text-white",children:((z=(B=A==null?void 0:A.nick)==null?void 0:B.charAt(0))==null?void 0:z.toUpperCase())||"?"})},j=(A,B=!1)=>{const z=A.user;return d("div",{className:` 126 flex gap-3 rounded-md p-3 127 ${B?"mt-2 ml-8 sm:ml-14":"mt-3"} 128 ${t?"bg-verde":"bg-vmws"} 129 `,children:[o("div",{className:"shrink-0",children:z!=null&&z.public?o(Z,{to:`/user/${z.public}`,children:T(z)}):T(z)}),d("div",{className:"min-w-0 flex-1",children:[d("div",{className:"flex flex-wrap items-center gap-2",children:[z!=null&&z.public?o(Z,{to:`/user/${z.public}`,className:"font-semibold",children:z.nick||"Usuario"}):o("span",{className:"font-semibold",children:(z==null?void 0:z.nick)||"Usuario eliminado"}),o("span",{className:"text-xs opacity-60",children:new Date(A.creation).toLocaleStr
129ing()})]}),o("p",{className:"mt-1 whitespace-pre-wrap break-words",children:A.text}),p&&!B&&o("button",{type:"button",onClick:()=>M(A._id),className:"mt-2 text-sm font-semibold text-yellow-500 hover:underline",children:c===A._id?"Cancelar":"Responder"})]})]})};return d("section",{className:"mt-6",children:[o("h2",{className:"mb-3 text-xl font-semibold",children:"Comentarios"}),b&&o("div",{className:"mb-3 rounded-md bg-green-700 p-3 text-white",children:b}),_&&o("div",{className:"mb-3 rounded-md bg-red-700 p-3 text-white",children:_}),f&&o("div",{className:"py-5 text-center",children:"Cargando comentarios..."}),!f&&S.length===0&&o("div",{className:"py-6 text-center opacity-70",children:"TodavÃa no hay comentarios."}),!f&&S.map(A=>{var B;return d("div",{children:[j(A),c===A._id&&d("form",{onSubmit:z=>k(z,A._id),className:` 130 mt-2 ml-8 rounded-md p-3 sm:ml-14 131 ${t?"bg-verde":"bg-vmws"} 132 `,children:[o("textarea",{value:s,onChange:z=>l(z.target.value),maxLength:2e3,rows:3,placeholder:`Responder a ${((B=A.user)==null?void 0:B.nick)||"usuario"}...`,className:"w-full resize-y rounded-md border border-gray-500 bg-transparent p-3 outline-none",autoFocus:!0}),d("div",{className:"mt-2 flex items-center justify-between gap-3",children:[d("span",{className:"text-sm opacity-60",children:[s.length,"/2000"]}),o("button",{type:"submit",disabled:m||!s.trim(),className:"rounded-md bg-yellow-600 px-4 py-2 font-semibold text-white disabled:cursor-not-allowed disabled:opacity-50",children:m?"Publicando...":"Responder"})]})]}),(C[A._id]||[]).map(z=>o(cl.Fragment,{children:j(z,!0)},z._id))]},A._id)}),o("div",{className:"mt-6",children:p?d("form",{onSubmit:P,className:`rounded-md p-3 ${t?"bg-verde":"bg-vmws"}`,children:[o("textarea",{value:a,onChange:A=>i(A.target.value),maxLength:2e3,rows:4,placeholder:"Escribe un comentario...",className:"w-full resize-y rounded-md border border-gray-500 bg-transparent p-3 outline-none"}),d("div",{className:"mt-2 flex items-center justify-between gap-3",children:[d("span",{className:"text-sm opacity-60",children:[a.length,"/2000"]}),o("button",{type:"submit",disabled:m||!a.trim(),className:"rounded-md bg-yellow-600 px-5 py-2 font-semibold text-white disabled:cursor-not-allowed disabled:opacity-50",children:m?"Publicando...":"Comentar"})]})]}):o("div",{className:`rounded-md p-4 text-center ${t?"bg-verde":"bg-vmws"}`,children:"Inicia sesión para comentar."})})]})},e4=x.lazy(()=>JC(()=>Promise.resolve().then(()=>xC),void 0)),t4=()=>{var b,w;
132const e=ta(),[t,r]=x.useState(),[n,a]=x.useState(),[i,s]=x.useState(!0),[l,c]=x.useState(!1),{color:u}=ct();if(x.useEffect(()=>{document.title="Foro - ManhwaWeb",window.scrollTo({top:0,behavior:"smooth"}),(async()=>{var v;try{s(!0),a(void 0);const h=await ee.get(`${te}/latest/see-foro-individual/${e.item}`);r(h.data)}catch(h){((v=h.response)==null?void 0:v.status)===404?(a(2),document.title="Not Found - ManhwaWeb"):a(1)}finally{s(!1)}})()},[e.item]),i)return o(Pt,{});if(n===1)return d(ye,{children:[o(Nt,{}),o(St,{})]});if(n===2)return o(ra,{color:u});if(!t)return null;const f=(b=t==null?void 0:t.user)!=null&&b.foto?t.user.foto.replace(ke,ze):"",g=((w=t==null?void 0:t.user)==null?void 0:w.foto)||"",m=Number(g.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""));let y="";return m>89999?y="shadow-para_verde shadow-verde-text border-verde-text border-2":m>19999?y="shadow-para_dorado shadow-dorado border-2 border-dorado":m>9999?y="shadow-para_plateado shadow-gray-400 border-gray-400 border-2":m>0&&(y="shadow-para_bronce border-bronce shadow-bronce border-2"),d("div",{children:[o("div",{className:u?"bg-verde":"bg-vmws",children:o("div",{className:"container mx-auto mt-1 max-w-6xl",children:o("div",{className:"mx-0 md:mx-2",children:d("nav",{role:"tablist",className:"flex text-sm md:text-lg",children:[o("div",{role:"tab","aria-controls":"esp",className:"active w-1/2 cursor-pointer border-b-4 border-yellow-600 py-1.5 text-center text-yellow-500 md:py-2",children:"Foro"}),o(Z,{role:"tab","aria-controls":"org",to:"/foro?m=1",className:"w-1/2 cursor-pointer py-1.5 text-center md:py-2",children:"Guia"})]})})})}),o("div",{className:"container mx-auto mt-5 max-w-6xl",children:d("div",{className:"mx-2 flex lg:gap-5",children:[d("div",{className:"w-full",children:[o(Z,{to:"/foro?m=2",children:o("div",{className:` 133 w-1/2 cursor-pointer rounded-l-full 134 border px-5 py-1 text-center 135 sm:w-1/3 sm:px-10 sm:text-xl 136 ${u?"bg-verde":"bg-vmws"} 137 `,children:"REGRESAR"})}),d("div",{className:"mt-4 mb-4 flex flex-col gap-1 sm:flex-row sm:gap-0",children:[d("div",{className:"flex items-center gap-2 sm:w-2/12 sm:flex-col",children:[o(Z,{className:"w-20 sm:w-4/6",to:`/user/${t.user.public}`,children:f&&o("img",{className:` 138 aspect-defect w-full rounded-sm 139 ${y} 140 `,src:f,alt:t.user.nick})}),t.user.level!=="user"&&o("img",{className:"w-20 -mx-3 sm:-my-6",src:"/assets/elos/admin.png",alt:"Administrador"}),o(Z,{to:`/user/${t.user.public}`,children:o("div",{className:"text-xl",children:t.user.nick})})]}),d("div",{className:"flex flex-col sm:w-5/6",children:[o("div",{className:` 141 px-4 py-0.5 text-xl font-medium 142 leading-customa text-black 143 sm:text-2xl 144 ${u?"bg-verde-fin":"bg-vmwc"} 145 `,children:t.titulo}),o("div",{className:` 146 text-base_ mt-2 px-2 py-1 147 pb-2 leading-customa 148 ${u?"bg-verde":"bg-vmws"} 149 `,children:t.contenido}),t.img!=="nada"&&o("div",{className:` 150 flex justify-center px-2 pb-2 151 ${u?"bg-verde":"bg-vmws"} 152 `,children:o("img",{src:t.img,alt:"Imagen del foro"})})]})]}),o(ZC,{targetId:t._id,color:u}),d("div",{className:"mt-6",children:[!l&&o("button",{type:"button",onClick:()=>c(!0),className:` 153 w-full rounded-md border 154 px-4 py-3 font-semibold 155 transition hover:brightness-110 156 ${u?"bg-verde":"bg-vmws"} 157 `,children:"Ver comentarios antiguos"}),l&&o(x.Suspense,{fallback:o("div",{className:"py-5 text-center",children:"Cargando comentarios antiguos..."}),children:o(e4,{url:`https://manhwaweb.com/foro/${t._id}`,identifier:`foro-${t._id}`,title:`foro-${t._id}`})})]})]}),o("div",{className:"mt-12 hidden w-80 lg:block",children:o("a",{target:"_blank",rel:"noopener noreferrer",href:"https://t.me/+ZRlyhOkY0yZkYjM5",children:o("img",{src:"/banners/baner_redes2.jpg",alt:"Telegram"})})})]})})]})};
157function r4(){const e=tr(),[t,r]=x.useState();x.useState(),x.useState();const[n,a]=x.useState(!1),{color:i}=ct();x.useEffect(()=>{window.scrollTo({top:0})},[]);const s=l=>{a(!0),r(!1),l.preventDefault();const c={name:l.target.nick.value};ee.post(`${te}/grupos/create`,c,{headers:{Authorization:`Bearer ${localStorage.getItem("tokenCommers")}`}}).then(u=>{e("/profile")}).catch(u=>{u.response.data=="nop"?r("Este nombre ya esta en uso"):r("Sucedio un error"),a(!1)})};return localStorage.getItem("tokenCommers")?o("div",{children:o("div",{className:"container mx-auto max-w-5xl",children:d("div",{className:"mx-2 mt-10",children:[o("form",{onSubmit:s,children:d("div",{className:" grid grid-cols-1 gap-6",children:[o("div",{className:` text-center text-4xl ${i?"text-verde-text":"text-vmw"}`,children:"Crear Grupo"}),o("div",{className:" flex justify-center ",children:d("div",{className:"md:flex sm:w-1/2 w-3/4",children:[o("div",{className:" md:w-1/4 w-full md:text-right pr-4 xl:text-lg text-base md:mb-0 mb-1",children:o("label",{htmlFor:"nick",className:" text-lg",children:"Nombre"})}),o("div",{className:" md:w-3/4 w-full",children:o("input",{id:"nick",type:"text",className:" text-black py-1 pl-2 w-full ",name:"nick",placeholder:"Nombre",required:!0})})]})}),o("div",{className:"text-center pt-1 pb-1",children:o("button",{disabled:n,className:`${i?"bg-verde hover:bg-verde-text":"bg-vmws hover:bg-vmw"} sm:w-1/2 w-3/4 md:w-2/5 h-10 text-lg hover:text-base-negro hover:font-semibold`,type:"submit",children:"Crear"})})]})}),t&&o("div",{className:" mt-1 text-center flex justify-center",children:o("div",{className:" sm:w-1/2 w-3/4 md:w-2/5 py-1 bg-red-100 text-red-800 sm:text-base xs:text-sm text-xs",children:t})}),o("div",{className:"text-sm mb-1 mt-5 md:text-lg",children:"*El grupo esta destinado para que puedas realizar subidas a la web como UPLOADER o SCANLATION."}),o("div",{className:"text-sm mb-1 md:text-lg",children:"*Todos los nuevos grupos comienzan de tipo UPLOADER."}),o("div",{className:"text-sm mb-1 md:text-lg",children:"*Puedes solicitar el cambio de tipo de grupo SCANLATION a en cualquier momento."}),o("div",{className:"text-sm mb-5 md:text-lg",children:"*Podras ver la guia completa una vez creado el grupo, en Perfil -> Grupos -> Gestionar."})]})})}):o(wo,{color:i})}const n4=({x:e})=>d("svg",{fill:"#ffffff",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:e?"58px":"36px",height:e?"58px":"36px",viewBox:"0 0 435.505 435.505",xmlSpace:"preserve",children:[o("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o("g",{id:"SVGRepo_iconCarrier",children:o("g",{children:d("g",{children:[o("path",{fill:"#4FC3F7",d:"M403.496,101.917c-4.104-5.073-8.877-9.705-14.166-13.839c0.707,13.117-0.508,27.092-3.668,41.884 c-8.627,40.413-29.256,74.754-59.656,99.304c-30.375,24.533-68.305,37.502-109.686,37.502h-60.344l-19.533,91.512 c-3.836,17.959-19.943,30.99-38.303,30.99H70.938l-4.898,22.484c-1.258,5.79,0.17,11.839,3.887,16.453 c3.715,4.614,9.324,7.298,15.25,7.298h66.498c9.24,0,17.225-6.459,19.152-15.495L193.667,313h76.188 c36.854,0,70.527-11.464,97.384-33.152c26.869-21.697,45.129-52.186,52.807-88.162 C427.822,155.309,422.253,125.106,403.496,101.917z"}),o("path",{fill:"#82B1FF",d:"M117.292,354.191l22.84-107.008h76.188c36.852,0,70.527-11.465,97.383-33.154c26.867-21.697,45.129-52.186,52.809-88.161 c7.773-36.378,2.207-66.58-16.553-89.769C331.952,13.832,301.17,0,269.633,0H103.639c-9.209,0-17.174,6.417-19.135,15.414 L12.505,345.938c-1.26,5.789,0.168,11.838,3.887,16.453c3.713,4.613,9.32,7.296,15.248,7.296h66.5 C107.38,369.687,115.36,363.229,117.292,354.191z M178.235,75.291h52.229c12.287,0,23.274,5.149,30.145,14.129 c7.297,9.539,9.431,22.729,5.853,36.188c-0.047,0.171-0.088,0.342-0.131,0.516c-6.57,27.73-33.892,50.291-60.898,50.291h-50.05 L178.235,75.291z"})]})})})]}),a4=()=>
157{const e=ta(),[t,r]=x.useState(),[n,a]=x.useState(),[i,s]=x.useState(8),[l,c]=x.useState(!0),{color:u}=ct();return x.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"}),ee.get(`${te}/grupos/public/${e.id}`).then(f=>{console.log(f.data),r(f.data),document.title=`${f.data.name} - ${f.data.tipo} - ManhwaWeb`;const g=document.querySelector('meta[name="description"]');g&&g.setAttribute("content",`${f.data.name} - ${f.data.tipo} - ManhwaWeb`)}).catch(f=>{console.log(f),f.response.status==404?a(2):f.response.data=="bot"?a(3):a(1)}).finally(()=>{c(!1)})},[]),l?o(Pt,{}):n==1?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):n==2?d(ye,{children:[" ",o(ra,{color:u})]}):n==3?d("div",{className:" bg-black h-screen flex gap-2 pt-10 flex-col items-center",children:[o("div",{className:" text-lg md:text-3xl text-center text-orange-600",children:"La informacion del bot es privada"})," ",o("img",{src:"https://imagizer.imageshack.com/img923/8619/r0TBXQ.gif",alt:""})]}):d("div",{children:[d("div",{className:"relative overflow-hidden",children:[o("div",{className:"absolute inset-0 bg-center bg-cover blur-background",style:{backgroundImage:`url(${t.banner.replace(ke,ze)})`,backgroundSize:"cover",filter:"blur(6px)"}}),o("div",{className:"relative md:h-96 h-80 w-full overflow-hidden flex justify-center items-center bg-center",children:o("img",{className:"md:h-96 md:block hidden aspect-banner ",src:t.banner.replace(ke,ze),alt:""})}),o("div",{className:"absolute top-0 w-full",children:o("div",{className:"container mx-auto max-w-6xl mt-5",children:d("div",{className:"mx-2 flex md:flex-row items-center md:items-start flex-col",children:[d("div",{className:"w-full xs:w-60 md:w-1/3",children:[o("div",{className:`${t.tipo=="uploader"?"bg-orange-800":"bg-blue-700"} py-1 mb-2 xs:w-60 text-center`,children:t.tipo.toUpperCase()}),o("img",{className:"aspect-square md:w-60 w-full",src:t.logo.replace(ke,ze),alt:""})]}),d("div",{className:"overflow-hidden hidden md:block w-2/3",children:[o("div",{children:o("span",{className:"bg-white text-black font-medium text-3xl bg-opacity-60 rounded-md px-1",children:t.name})}),o("div",{className:"bg-white text-black bg-opacity-60 px-1 mt-3 text-lg",children:t.tablon})]})]})})})]}),o("div",{className:u?" bg-verde ":"bg-vmws",children:o("div",{className:"container mx-auto max-w-6xl",children:o("div",{className:"md:mx-2 mx-0",children:d("div",{className:" flex sm:h-16 h-14 justify-evenly sm:text-base xs:text-md text-sm",children:[d("div",{className:" flex gap-0.5 sm:gap-2 items-center justify-center transition-transform hover:scale-110 ",children:[" ",o("img",{src:"https://imagizer.imageshack.com/img922/9316/Ua48eD.png",className:"w-8 h-8 sm:w-10 sm:h-10"})," ",d("div",{className:" flex flex-col",children:[o("div",{className:"text-xl sm:text-2xl -mb-1 -mt-2.5 text-left",children:t.obras.length}),o("div",{className:"sm:text-base text-xs text-white -mb-2",children:"Proyectos"})]})]}),d("div",{className:" flex gap-0.5 sm:gap-2 items-center justify-center transition-transform hover:scale-110 ",children:[" ",o("img",{src:"https://imagizer.imageshack.com/img923/8638/6I82ZR.png",className:"w-8 h-8 sm:w-10 sm:h-10"})," ",d("div",{className:" flex flex-col",children:[o("div",{className:"text-xl sm:text-2xl -mb-1 -mt-2.5 text-left",children:t.numeros.ace}),o("div",{className:"sm:text-base text-xs text-white -mb-2",children:"Subidas"})]})]})]})})})}),d("div",{className:"container mx-auto max-w-6xl mt-2 ",children:[d("div",{className:" mx-2 md:hidden",children:[o("div",{className:" text-2xl",children:t.name}),o("div",{children:t.tablon})]}),o("div",{className:" mx-2 flex my-5 md:my-0 justify-center md:justify-end",children:d("div",{className:" md:w-4/12 flex justify-center items-center gap-5",children:[t.discord&&o("a",{href:t.discord,children:o(Hu,{x:1})}),t.telegram&&o("a",{href:t.telegram,children:o(qu,{x:1})}),t.paypal&&o("a",{href:t.paypal,children:o(n4,{x:1})})]})}),d("div",{className:"mx-2 flex md:flex-row flex-col gap-8",children:[d("div",{className:" w-full md:w-8/12",children:[d("div",{className:"flex mb-4 ",children:[o(Me,{color:u}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 text-lg",children:"Proyectos"})]}),o("div",{className:" grid grid-cols-3 md:grid-cols-4 gap-2",children:t.obras.length>0&&o(Ox,{manhwas:t.obras.filter(f=>f._id!=null).map(f=>f._id).reverse().slice(0,i)})}),o("button",{onClick:()=>s(t.obras.length),className:`${i>=t.obras.length&&"hidden"} w-full mt-2 cursor-pointer ${u?"bg-verde-intermedio":"bg-vmwt"} text-center py-0.5 ver_todo`,children:"Ver Todo"}),t.obras.length==0&&o(io,{}),d("div",{className:"flex mb-4 mt-6",children:[o(Me,{color:u}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 text-lg",children:"Ultimas subidas"})]}),t.ultimas.ace.reverse().map((f,g)=>d("div",{className:" flex justify-between gap-4 px-2 md:px-10 py-1 border-b",children:[o("div",{className:" text-sm md:text-base w-2/3 line-clamp-1 text-blue-200",children:f.name}),d("div",{className:"text-sm md:text-base flex gap-4",children:[o("div",{children:f.chapter}),o("div",{children:f.tipo})]})]},g)),t.ultimas.ace.length==0&&o(io,{}),d("div",{className:" md:w-4/12 md:mt-4 mb-5 md:hidden",children:[d("div",{className:"flex mb-4 mt-6",children:[o(Me,{color:u}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 text-lg",children:"Miembros"})]}),o("div",{className:" grid grid-cols-2 gap-5",children:t.miembros.map((f,g)=>d(Z,{to:`/user/${f.correo.public}`,className:" border-2 border-black",children:[o("img",{src:f.correo.foto.replace(ke,ze),alt:""}),o("div",{className:" bg-black font-medium px-2",children:f.correo.nick}),o("div",{className:" bg-black text-sm px-2 pb-1",children:f.level})]},g))})]}),d("div",{className:"flex mb-4 mt-6",children:[o(Me,{color:u}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 text-lg",children:"Comentarios"})]}),o(Ja,{url:`https://manhwaweb.com/grupo/${t._id}`,identifier:`grupo-${t._id}`,title:`grupo-${t._id}`})]}),o("div",{className:" md:w-4/12 md:mt-4 mb-5 md:block hidden",children:o("div",{className:" grid grid-cols-2 gap-5",children:t.miembros.map((f,g)=>d(Z,{to:`/user/${f.correo.public}`,className:" border-2 border-black",children:[o("img",{src:f.correo.foto.replace(ke,ze),alt:""}),o("div",{className:" bg-black font-medium px-2",children:f.correo.nick}),o("div",{className:" bg-black text-sm px-2 pb-1",children:f.level})]},g))})})]})]})]})},i4=()=>{var f,g,m,y,b,w,_,v,h;
157const e=ta(),[t,r]=x.useState(),[n,a]=x.useState(),[i,s]=x.useState(12),[l,c]=x.useState(!0),{color:u}=ct();return x.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"}),ee.get(`${te}/user/public/${e.id}`).then(p=>{console.log(p.data),r(p.data),document.title=`${p.data.data.nick} - ManhwaWeb`;const N=document.querySelector('meta[name="description"]');N&&N.setAttribute("content",`${p.data.data.nick} - ManhwaWeb`)}).catch(p=>{console.log(p),p.response.status==401?a(2):a(1)}).finally(()=>{c(!1)})},[]),l?o(Pt,{}):n==1?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):n==2?d(ye,{children:[" ",o(ra,{color:u})]}):o("div",{children:o("div",{className:"container mx-auto max-w-5xl mb-5",children:o("div",{className:" mx-2",children:d("div",{className:" flex gap-3 sm:gap-10 mt-8 sm:flex-row flex-col sm:items-start items-center ",children:[d("div",{className:" w-3/4 sm:w-1/3",children:[o("div",{className:` bg-verde text-lg sm:text-xl text-center p-1 font-semibold flex justify-center items-center 158 ${Number(t.data.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>89999?"shadow-para_verde shadow-verde-text border-x-2 border-verde-text":Number(t.data.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>19999?" shadow-para_dorado shadow-dorado border-x-2 border-dorado":Number(t.data.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>9999?" shadow-para_plateado shadow-plata border-x-2 border-plata":Number(t.data.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>0?" shadow-para_bronce shadow-bronce border-x-2 border-bronce":""}`,children:o("div",{className:" font-normal",children:t.data.level!="user"?"ADMIN":"USUARIO"})}),o("img",{className:`align-middle w-full object-cover mt-2 159 ${Number(t.data.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>89999?"shadow-para_verde shadow-verde-text border-2 border-verde-text":Number(t.data.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>19999?" shadow-para_dorado shadow-dorado border-2 border-dorado":Number(t.data.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>9999?" shadow-para_plateado shadow-plata border-2 border-plata":Number(t.data.foto.replace("https://manhwaweb.com/assets/waifus/","").replace(".jpg","").replace(".gif",""))>0?" shadow-para_bronce shadow-bronce border-2 border-bronce":""}`,src:t.data.foto.replace(ke,ze)??"/assets/waifus/00000.jpg",alt:"usuario"})]}),d("div",{className:" w-full xs:w-full sm:w-2/3 flex flex-col",children:[o("div",{className:"flex items-end sm:gap-5 ga
159p-2 flex-wrap",children:o("div",{className:" text-md xs:text-2xl sm:text-3xl md:text-4xl font-semibold",children:t.data.nick})}),d("div",{className:"flex mt-5 items-center",children:[o(Me,{color:u}),o("h3",{className:"md:text-xl xs:text-xl -mt-1 text-lg",children:"Estadisticas:"})]}),d("div",{className:" flex items-center justify-evenly",children:[o("div",{className:" flex items-center",children:o("img",{className:" h-24 md:h-28",src:`/assets/elos/00${t.data._id.rango-1}.png`,alt:"medalla"})}),d("div",{className:" flex flex-col md:text-lg text-base",children:[d("div",{children:[o("span",{className:" text-gray-300",children:"Caps Subidos:"})," ",((g=(f=t.data)==null?void 0:f._id)==null?void 0:g.caps_upload)??0]}),d("div",{children:[o("span",{className:" text-gray-300",children:"Cromos:"})," ",t.data._id.waifus?t.data._id.waifus.length:0,"/300"]}),d("div",{children:[o("span",{className:" text-gray-300",children:"Puntos:"})," ",t.data._id.exp]})]})]}),o("div",{className:" flex items-center mt-5 mb-2 justify-between",children:d("div",{className:"flex items-center",children:[o(Me,{color:u}),o("h3",{className:"md:text-xl xs:text-xl -mt-1 text-lg",children:"Grupos:"})]})}),t.grupo.length<1?o(io,{}):o("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:t.grupo.map((p,N)=>o(Z,{to:`/grupo/${p._id}`,className:" mx-auto max-w-sm sm:w-full ",children:d("div",{className:" relative",children:[o("img",{className:" aspect-banner w-full",src:p.banner.replace(ke,ze),alt:""}),d("div",{className:"absolute top-0 w-full",children:[o("div",{className:" opacity-90 bg-gray-700 w-full p-1",children:p.name}),o("span",{className:`${p.tipo=="uploader"?" bg-orange-800":"bg-blue-800"} font-medium mx-1 rounded-sm py-0.5 px-1.5 text-xs`,children:p.tipo.toUpperCase()})]})]})},N))}),d("div",{className:"flex mt-5 items-center",children:[o(Me,{color:u}),o("h3",{className:"md:text-xl xs:text-xl -mt-1 text-lg",children:"Cromos:"})]}),o("div",{className:" grid grid-cols-3 md:grid-cols-4 gap-2 mt-3",children:(m=t.data._id)==null?void 0:m.waifus.slice(0,i).map((p,N)=>d("div",{children:[(!p.valor||p.valor==0)&&o("div",{className:" text-black font-medium bg-bronce text-xs w-full text-center sm:text-base mb-0.5",children:"Cromo"}),p.valor==1&&o("div",{className:" text-black font-medium bg-plata text-xs w-full text-center sm:text-base mb-0.5",children:"Cromo Raro"}),p.valor==2&&o("div",{className:" text-black font-medium bg-dorado text-xs w-full text-center sm:text-base mb-0.5",children:"Cromo Ãpico"}),p.valor==9&&o("div",{className:" text-black font-medium bg-verde-text text-xs w-full text-center sm:text-base mb-0.5",children:"Cromo Unico"}),o("img",{src:p.link.replace(ke,ze),alt:""}),o("div",{className:"p-1",children:d("div",{className:"text-xs_ sm:text-sm_ leading-customa text-texto-blanco text-center font-sans font-medium",children:[o("div",{className:" line-clamp-3",children:p.manhwa}),o("div",{className:" font-normal",children:p.name})]})})]},N))}),o("button",{onClick:()=>{var p,N;return s((N=(p=t.data)==null?void 0:p._id)==null?void 0:N.waifus.length)},className:`${i>=((b=(y=t.data)==null?void 0:y._id)==null?void 0:b.waifus.length)&&"hidden"} cursor-pointer ${u?"bg-verde-intermedio":"bg-vmwt"} text-center py-0.5 ver_todo`,children:"Ver Todo"}),((w=t.data._id)==null?void 0:w.waifus.length)==0&&o(io,{}),d("div",{className:"flex mb-4 mt-4",children:[o(Me,{color:u}),o("h3",{className:"md:text-3xl xs:text-xl -mt-1 text-lg",children:"Comentarios"})]}),o(Ja,{url:`https://manhwaweb.com/user/${(_=t.data)==null?void 0:_.public}`,identifier:`id-${(v=t.data)==null?void 0:v.public}`,title:`id-${(h=t.data)==null?void 0:h.public}`})]})]})})})})},o4=()=>{const[e,t]=x.useState(),[r,n]=x.useState(),[a,i]=x.useState(!0),{color:s}=ct();x.useEffect(()=>{document.title="Todos los cromos - ManhwaWeb",window.scrollTo({top:0,behavior:"smooth"}),ee.get(`${te}/latest/all-cromos`).then(c=>{t(c.data),console.log(c.data)}).catch(c=>{n(1),c.response.status==404&&n(2)}).finally(()=>{i(!1)})},[]);const l=(c,u,f,g)=>d("div",{className:"mx-2",children:[o("div",{className:`sm:text-3xl text-xl mb-3 ${s?"text-verde-text":"text-vmw"}`,children:c}),o("div",{className:"grid grid-cols-3 mt-3 xs:grid-cols-4 sm:grid-cols-5 md:grid-cols-6 gap-2",children:e.cromos.filter(m=>m.valor===u).map(m=>d("div",{className:"overflow-hidden",children:[o("div",{className:`${g} text-black font-medium text-center text-xs_ sm:text-base`,children:f}),o("div",{className:"relative border-t border-black",children:o("img",{className:`${g} w-full`,src:m.link.replace(ke,ze),alt:m.name})}),o("div",{className:"p-1",children:d("div",{className:"text-xs_ sm:text-sm_ leading-customa text-texto-blanco text-center font-sans font-medium",children:[o("div",{className:"line-clamp-3",children:m.manhwa}),o("div",{className:"font-normal",children:m.name})]})})]},m.link))})]});return a?o(Pt,{}):r==1?d(ye,{children:[" ",o(Nt,{}),o(St,{})]}):r==2?d(ye,{children:[" ",o(ra,{color:s})]}):o("div",{children:d("div",{className:"container mx-auto max-w-6xl mt-5",children:[l("Cromos Epicos",2,"Cromo Ãpico","bg-dorado"),l("Cromos Raros",1,"Cromo Raro","bg-plata"),l("Cromos",0,"Cromo","bg-bronce")]})})},Uc="[email protected]",Fc=`Asunto: Solicitud de retirada por derechos de autor 160 1611. Nombre completo del titular o representante: 1622. Correo electrónico: 1633. Empresa o editorial (si corresponde): 1644. Obra protegida: 1655. Enlace oficial de la obra: 1666. URLs exactas de ManhwaWeb que deben revisarse: 1677. Explicación adicional: 168 169Declaro de buena fe que el uso señalado no está autorizado por el titular de los derechos, su representante o la ley. 170 171Declaro que la información proporcionada es correcta y, bajo pena de perjurio, que soy el titular de los derechos o estoy autorizado para actuar en su nombre. 172 173Firma electrónica (nombre completo):`,s4=[{title:"Identifica al titular",text:"Incluye tu nombre, correo y la empresa, editorial o autor que representas."},{title:"Identifica la obra",text:"Indica el tÃtulo de la obra y, si es posible, un enlace a su publicación oficial."},{title:"Incluye las URLs exactas",text:"EnvÃa los enlaces de ManhwaWeb donde aparece el contenido que deseas reportar."},{title:"Añade tus declaraciones",text:"Confirma tu buena fe, tu autorización para actuar y firma con tu nombre completo."}],l4=()=>{const{color:e}
173=ct(),[t,r]=x.useState(!1),n=e?"text-verde-text":"text-vmw",a=e?"bg-verde hover:bg-verde-text":"bg-vmws hover:bg-vmw",i=e?"border-verde-text":"border-vmw";x.useEffect(()=>{document.title="Centro de Derechos de Autor - ManhwaWeb",window.scrollTo({top:0})},[]);const s=async()=>{try{await navigator.clipboard.writeText(Fc),r(!0),window.setTimeout(()=>r(!1),2500)}catch{r(!1)}},l=encodeURIComponent("Solicitud de retirada por derechos de autor"),c=encodeURIComponent(Fc.replace(/^Asunto:.*\n\n/,""));return d("main",{className:"container mx-auto max-w-5xl px-4 py-10 md:py-16",children:[o("section",{className:"overflow-hidden rounded-xl border border-neutral-700 bg-neutral-900 shadow-xl",children:d("div",{className:`border-l-4 ${i} px-5 py-7 sm:px-8 md:px-10`,children:[o("p",{className:`mb-2 text-sm font-semibold uppercase tracking-widest ${n}`,children:"ManhwaWeb"}),o("h1",{className:"text-3xl font-bold sm:text-4xl",children:"Centro de Derechos de Autor"}),o("p",{className:"mt-4 max-w-3xl leading-relaxed text-neutral-300",children:"Queremos que creadores, colaboradores y titulares de derechos puedan proteger sus obras. Si consideras que algún contenido disponible en ManhwaWeb infringe tus derechos, envÃanos una solicitud con la información indicada en esta página."})]})}),d("section",{className:"mt-8",children:[o("h2",{className:"text-2xl font-semibold",children:"Información que debes enviar"}),o("div",{className:"mt-4 grid gap-4 sm:grid-cols-2",children:s4.map((u,f)=>o("article",{className:"rounded-lg border border-neutral-700 bg-neutral-900 p-5",children:d("div",{className:"flex items-start gap-4",children:[o("span",{className:`flex h-9 w-9 shrink-0 items-center justify-center rounded-full font-bold ${a}`,children:f+1}),d("div",{children:[o("h3",{className:"font-semibold text-white",children:u.title}),o("p",{className:"mt-1 text-sm leading-relaxed text-neutral-300",children:u.text})]})]})},u.title))})]}),d("section",{className:"mt-8 rounded-xl border border-neutral-700 bg-neutral-900 p-5 sm:p-8",children:[o("h2",{className:"text-2xl font-semibold",children:"Enviar una solicitud"}),o("p",{className:"mt-3 leading-relaxed text-neutral-300",children:"Puedes usar nuestro modelo para asegurarte de incluir toda la información necesaria. Las solicitudes incompletas podrÃan requerir información adicional antes de ser procesadas."}),o("div",{className:"mt-5 rounded-lg border border-neutral-700 bg-black bg-opacity-40 p-4",children:o("pre",{className:"whitespace-pre-wrap font-sans text-sm leading-relaxed text-neutral-300",children:Fc})}),d("div",{className:"mt-5 flex flex-col gap-3 sm:flex-row",children:[o("a",{href:`mailto:${Uc}?subject=${l}&body=${c}`,className:`rounded-md px-5 py-3 text-center font-semibold transition-colors ${a}`,children:"Enviar solicitud por correo"}),o("button",{type:"button",onClick:s,className:"rounded-md border border-neutral-600 px-5 py-3 font-semibold transition-colors hover:border-neutral-400 hover:bg-neutral-800",children:t?"Modelo copiado":"Copiar modelo"})]}),d("p",{className:"mt-4 break-all text-sm text-neutral-400",children:["Correo de contacto: ",o("a",{className:n,href:`mailto:${Uc}`,children:Uc})]})]}),d("section",{className:"mt-8 grid gap-4 md:grid-cols-3",children:[d("div",{className:"rounded-lg border border-neutral-700 p-5",children:[o("p",{className:`font-semibold ${n}`,children:"1. Recepción"}),o("p",{className:"mt-2 text-sm text-neutral-300",children:"Recibimos la solicitud y comprobamos que contenga los datos necesarios."})]}),d("div",{className:"rounded-lg border border-neutral-700 p-5",children:[o("p",{className:`font-semibold ${n}`,children:"2. Revisión"}),o("p",{className:"mt-2 text-sm text-neutral-300",children:"Revisamos la obra, los enlaces reportados y la autoridad del solicitante."})]}),d("div",{className:"rounded-lg border border-neutral-700 p-5",children:[o("p",{className:`font-semibold ${n}`,children:"3. Acción"}),o("p",{className:"mt-2 text-sm text-neutral-300",children:"Cuando corresponda, deshabilitamos el acceso al contenido y notificamos al responsable de la publicación."})]})]}),o("aside",{className:"mt-8 rounded-lg border border-yellow-700 bg-yellow-950 bg-opacity-30 p-5 text-sm leading-relaxed text-yellow-100",children:"No envÃes contraseñas, documentos de identidad ni información bancaria. Si una publicación fue retirada por error, responde al mensaje de retirada explicando el motivo y adju
173ntando la autorización o licencia correspondiente."})]})},c4=Pb([{path:"/",element:o(K2,{}),errorElement:o(Si,{}),children:[{index:!0,element:o(UC,{})},{path:"/copyright",element:o(l4,{})},{path:"/rank",element:o(EC,{})},{path:"/latest-chapters",element:o(m_,{})},{path:"/all_cromos",element:o(o4,{})},{path:"/foro",element:o(IC,{})},{path:"/foro/:item",element:o(t4,{})},{path:"/library",element:o(OC,{})},{path:"/mis-manhwas",element:o(_p,{})},{path:"/mis-manhwas/:item",element:o(_p,{})},{path:"/profile",element:o(zC,{}),errorElement:o(Si,{}),children:[{index:!0,element:o(Rp,{})},{path:"/profile/perfil",element:o(Rp,{})},{path:"/profile/cromos",element:o(QC,{})}]},{path:"/manhwa/:id",element:o(kp,{})},{path:"/manga/:id",element:o(kp,{})},{path:"/autor/:id",element:o(FC,{})},{path:"/grupo/:id",element:o(a4,{})},{path:"/user/:id",element:o(i4,{})},{path:"/create_group",element:o(r4,{})},{path:"/login",element:o(aN,{})},{path:"/register",element:o(nN,{})}]},{path:"/leer/:id",element:o(Mp,{}),errorElement:o(Si,{}),children:[{index:!0,element:o(Tp,{})}]},{path:"/leer_18/:id",element:o(Mp,{}),errorElement:o(Si,{}),children:[{index:!0,element:o(Tp,{})}]},{path:"/admin",element:o(PC,{}),children:[{index:!0,element:o(TC,{})}]}]);Wc.createRoot(document.getElementById("root")).render(o(G2,{children:o(wb,{router:c4})}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.