@danhachuel/prodmaker 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/THIRD-PARTY-NOTICES.md +6 -1
- package/app/api/dominios.py +92 -0
- package/app/api/paginas.py +155 -0
- package/app/main.py +52 -2
- package/app/services/clone.py +43 -0
- package/app/services/database.py +49 -0
- package/app/services/dominios.py +78 -0
- package/app/services/pages.py +102 -0
- package/app/services/publish.py +74 -0
- package/frontend/dist/assets/{index-DZBtvZhA.css → index-DQDUzYIV.css} +1 -1
- package/frontend/dist/assets/index-LbTb9NYj.js +67 -0
- package/frontend/dist/favicon.svg +3 -0
- package/frontend/dist/index.html +3 -2
- package/legal/index.html +1 -0
- package/legal/privacy.html +1 -0
- package/legal/terms.html +1 -0
- package/package.json +1 -1
- package/requirements.txt +3 -0
- package/scripts/cli.mjs +1 -1
- package/frontend/dist/assets/index-BMQemvVJ.js +0 -67
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
function nd(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const i=Object.getOwnPropertyDescriptor(r,l);i&&Object.defineProperty(e,l,i.get?i:{enumerable:!0,get:()=>r[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function rd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Es={exports:{}},wl={},Ps={exports:{}},I={};/**
|
|
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 fr=Symbol.for("react.element"),ld=Symbol.for("react.portal"),id=Symbol.for("react.fragment"),od=Symbol.for("react.strict_mode"),ad=Symbol.for("react.profiler"),sd=Symbol.for("react.provider"),ud=Symbol.for("react.context"),cd=Symbol.for("react.forward_ref"),dd=Symbol.for("react.suspense"),fd=Symbol.for("react.memo"),pd=Symbol.for("react.lazy"),la=Symbol.iterator;function md(e){return e===null||typeof e!="object"?null:(e=la&&e[la]||e["@@iterator"],typeof e=="function"?e:null)}var _s={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ts=Object.assign,Ls={};function Sn(e,t,n){this.props=e,this.context=t,this.refs=Ls,this.updater=n||_s}Sn.prototype.isReactComponent={};Sn.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")};Sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zs(){}zs.prototype=Sn.prototype;function ao(e,t,n){this.props=e,this.context=t,this.refs=Ls,this.updater=n||_s}var so=ao.prototype=new zs;so.constructor=ao;Ts(so,Sn.prototype);so.isPureReactComponent=!0;var ia=Array.isArray,As=Object.prototype.hasOwnProperty,uo={current:null},Ds={key:!0,ref:!0,__self:!0,__source:!0};function Rs(e,t,n){var r,l={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)As.call(t,r)&&!Ds.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];l.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)l[r]===void 0&&(l[r]=s[r]);return{$$typeof:fr,type:e,key:i,ref:a,props:l,_owner:uo.current}}function hd(e,t){return{$$typeof:fr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function co(e){return typeof e=="object"&&e!==null&&e.$$typeof===fr}function vd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var oa=/\/+/g;function $l(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vd(""+e.key):t.toString(36)}function $r(e,t,n,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case fr:case ld:a=!0}}if(a)return a=e,l=l(a),e=r===""?"."+$l(a,0):r,ia(l)?(n="",e!=null&&(n=e.replace(oa,"$&/")+"/"),$r(l,t,n,"",function(c){return c})):l!=null&&(co(l)&&(l=hd(l,n+(!l.key||a&&a.key===l.key?"":(""+l.key).replace(oa,"$&/")+"/")+e)),t.push(l)),1;if(a=0,r=r===""?".":r+":",ia(e))for(var s=0;s<e.length;s++){i=e[s];var u=r+$l(i,s);a+=$r(i,t,n,u,l)}else if(u=md(e),typeof u=="function")for(e=u.call(e),s=0;!(i=e.next()).done;)i=i.value,u=r+$l(i,s++),a+=$r(i,t,n,u,l);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 a}function Sr(e,t,n){if(e==null)return e;var r=[],l=0;return $r(e,r,"","",function(i){return t.call(n,i,l++)}),r}function gd(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ge={current:null},Ur={transition:null},yd={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:Ur,ReactCurrentOwner:uo};function Os(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:Sr,forEach:function(e,t,n){Sr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Sr(e,function(){t++}),t},toArray:function(e){return Sr(e,function(t){return t})||[]},only:function(e){if(!co(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};I.Component=Sn;I.Fragment=id;I.Profiler=ad;I.PureComponent=ao;I.StrictMode=od;I.Suspense=dd;I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yd;I.act=Os;I.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ts({},e.props),l=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=uo.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)As.call(t,u)&&!Ds.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:fr,type:e.type,key:l,ref:i,props:r,_owner:a}};I.createContext=function(e){return e={$$typeof:ud,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:sd,_context:e},e.Consumer=e};I.createElement=Rs;I.createFactory=function(e){var t=Rs.bind(null,e);return t.type=e,t};I.createRef=function(){return{current:null}};I.forwardRef=function(e){return{$$typeof:cd,render:e}};I.isValidElement=co;I.lazy=function(e){return{$$typeof:pd,_payload:{_status:-1,_result:e},_init:gd}};I.memo=function(e,t){return{$$typeof:fd,type:e,compare:t===void 0?null:t}};I.startTransition=function(e){var t=Ur.transition;Ur.transition={};try{e()}finally{Ur.transition=t}};I.unstable_act=Os;I.useCallback=function(e,t){return ge.current.useCallback(e,t)};I.useContext=function(e){return ge.current.useContext(e)};I.useDebugValue=function(){};I.useDeferredValue=function(e){return ge.current.useDeferredValue(e)};I.useEffect=function(e,t){return ge.current.useEffect(e,t)};I.useId=function(){return ge.current.useId()};I.useImperativeHandle=function(e,t,n){return ge.current.useImperativeHandle(e,t,n)};I.useInsertionEffect=function(e,t){return ge.current.useInsertionEffect(e,t)};I.useLayoutEffect=function(e,t){return ge.current.useLayoutEffect(e,t)};I.useMemo=function(e,t){return ge.current.useMemo(e,t)};I.useReducer=function(e,t,n){return ge.current.useReducer(e,t,n)};I.useRef=function(e){return ge.current.useRef(e)};I.useState=function(e){return ge.current.useState(e)};I.useSyncExternalStore=function(e,t,n){return ge.current.useSyncExternalStore(e,t,n)};I.useTransition=function(){return ge.current.useTransition()};I.version="18.3.1";Ps.exports=I;var y=Ps.exports;const Is=rd(y),xd=nd({__proto__:null,default:Is},[y]);/**
|
|
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 jd=y,wd=Symbol.for("react.element"),Sd=Symbol.for("react.fragment"),kd=Object.prototype.hasOwnProperty,Cd=jd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Nd={key:!0,ref:!0,__self:!0,__source:!0};function Ms(e,t,n){var r,l={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)kd.call(t,r)&&!Nd.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:wd,type:e,key:i,ref:a,props:l,_owner:Cd.current}}wl.Fragment=Sd;wl.jsx=Ms;wl.jsxs=Ms;Es.exports=wl;var o=Es.exports,Fs={exports:{}},_e={},$s={exports:{}},Us={};/**
|
|
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(A,R){var O=A.length;A.push(R);e:for(;0<O;){var J=O-1>>>1,le=A[J];if(0<l(le,R))A[J]=R,A[O]=le,O=J;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var R=A[0],O=A.pop();if(O!==R){A[0]=O;e:for(var J=0,le=A.length,jr=le>>>1;J<jr;){var Tt=2*(J+1)-1,Fl=A[Tt],Lt=Tt+1,wr=A[Lt];if(0>l(Fl,O))Lt<le&&0>l(wr,Fl)?(A[J]=wr,A[Lt]=O,J=Lt):(A[J]=Fl,A[Tt]=O,J=Tt);else if(Lt<le&&0>l(wr,O))A[J]=wr,A[Lt]=O,J=Lt;else break e}}return R}function l(A,R){var O=A.sortIndex-R.sortIndex;return O!==0?O:A.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],c=[],m=1,v=null,f=3,x=!1,j=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(A){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=A)r(c),R.sortIndex=R.expirationTime,t(u,R);else break;R=n(c)}}function k(A){if(w=!1,h(A),!j)if(n(u)!==null)j=!0,L(E);else{var R=n(c);R!==null&&V(k,R.startTime-A)}}function E(A,R){j=!1,w&&(w=!1,p(P),P=-1),x=!0;var O=f;try{for(h(R),v=n(u);v!==null&&(!(v.expirationTime>R)||A&&!D());){var J=v.callback;if(typeof J=="function"){v.callback=null,f=v.priorityLevel;var le=J(v.expirationTime<=R);R=e.unstable_now(),typeof le=="function"?v.callback=le:v===n(u)&&r(u),h(R)}else r(u);v=n(u)}if(v!==null)var jr=!0;else{var Tt=n(c);Tt!==null&&V(k,Tt.startTime-R),jr=!1}return jr}finally{v=null,f=O,x=!1}}var T=!1,_=null,P=-1,g=5,S=-1;function D(){return!(e.unstable_now()-S<g)}function Y(){if(_!==null){var A=e.unstable_now();S=A;var R=!0;try{R=_(!0,A)}finally{R?me():(T=!1,_=null)}}else T=!1}var me;if(typeof d=="function")me=function(){d(Y)};else if(typeof MessageChannel<"u"){var _t=new MessageChannel,Xt=_t.port2;_t.port1.onmessage=Y,me=function(){Xt.postMessage(null)}}else me=function(){C(Y,0)};function L(A){_=A,T||(T=!0,me())}function V(A,R){P=C(function(){A(e.unstable_now())},R)}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(A){A.callback=null},e.unstable_continueExecution=function(){j||x||(j=!0,L(E))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(A){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var O=f;f=R;try{return A()}finally{f=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,R){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var O=f;f=A;try{return R()}finally{f=O}},e.unstable_scheduleCallback=function(A,R,O){var J=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?J+O:J):O=J,A){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=O+le,A={id:m++,callback:R,priorityLevel:A,startTime:O,expirationTime:le,sortIndex:-1},O>J?(A.sortIndex=O,t(c,A),n(u)===null&&A===n(c)&&(w?(p(P),P=-1):w=!0,V(k,O-J))):(A.sortIndex=le,t(u,A),j||x||(j=!0,L(E))),A},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(A){var R=f;return function(){var O=f;f=R;try{return A.apply(this,arguments)}finally{f=O}}}})(Us);$s.exports=Us;var Ed=$s.exports;/**
|
|
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 Pd=y,Pe=Ed;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 Bs=new Set,Kn={};function Wt(e,t){hn(e,t),hn(e+"Capture",t)}function hn(e,t){for(Kn[e]=t,e=0;e<t.length;e++)Bs.add(t[e])}var tt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fi=Object.prototype.hasOwnProperty,_d=/^[: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]*$/,aa={},sa={};function Td(e){return fi.call(sa,e)?!0:fi.call(aa,e)?!1:_d.test(e)?sa[e]=!0:(aa[e]=!0,!1)}function Ld(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zd(e,t,n,r){if(t===null||typeof t>"u"||Ld(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ye(e,t,n,r,l,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ue[t]=new ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new ye(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){ue[e]=new ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ue[e]=new ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ue[e]=new ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ue[e]=new ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var fo=/[\-:]([a-z])/g;function po(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(fo,po);ue[t]=new ye(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(fo,po);ue[t]=new ye(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(fo,po);ue[t]=new ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new ye(e,1,!1,e.toLowerCase(),null,!1,!1)});ue.xlinkHref=new ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ue[e]=new ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function mo(e,t,n,r){var l=ue.hasOwnProperty(t)?ue[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(zd(t,n,l,r)&&(n=null),r||l===null?Td(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var it=Pd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,kr=Symbol.for("react.element"),qt=Symbol.for("react.portal"),Jt=Symbol.for("react.fragment"),ho=Symbol.for("react.strict_mode"),pi=Symbol.for("react.profiler"),Vs=Symbol.for("react.provider"),Hs=Symbol.for("react.context"),vo=Symbol.for("react.forward_ref"),mi=Symbol.for("react.suspense"),hi=Symbol.for("react.suspense_list"),go=Symbol.for("react.memo"),at=Symbol.for("react.lazy"),Ws=Symbol.for("react.offscreen"),ua=Symbol.iterator;function En(e){return e===null||typeof e!="object"?null:(e=ua&&e[ua]||e["@@iterator"],typeof e=="function"?e:null)}var X=Object.assign,Ul;function Rn(e){if(Ul===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ul=t&&t[1]||""}return`
|
|
34
|
+
`+Ul+e}var Bl=!1;function Vl(e,t){if(!e||Bl)return"";Bl=!0;var n=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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),a=l.length-1,s=i.length-1;1<=a&&0<=s&&l[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(l[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||l[a]!==i[s]){var u=`
|
|
37
|
+
`+l[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{Bl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Rn(e):""}function Ad(e){switch(e.tag){case 5:return Rn(e.type);case 16:return Rn("Lazy");case 13:return Rn("Suspense");case 19:return Rn("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function vi(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 Jt:return"Fragment";case qt:return"Portal";case pi:return"Profiler";case ho:return"StrictMode";case mi:return"Suspense";case hi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hs:return(e.displayName||"Context")+".Consumer";case Vs:return(e._context.displayName||"Context")+".Provider";case vo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case go:return t=e.displayName||null,t!==null?t:vi(e.type)||"Memo";case at:t=e._payload,e=e._init;try{return vi(e(t))}catch{}}return null}function Dd(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 vi(t);case 8:return t===ho?"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 St(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rd(e){var t=Qs(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cr(e){e._valueTracker||(e._valueTracker=Rd(e))}function Gs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qs(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jr(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 gi(e,t){var n=t.checked;return X({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ca(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=St(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ks(e,t){t=t.checked,t!=null&&mo(e,"checked",t,!1)}function yi(e,t){Ks(e,t);var n=St(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xi(e,t.type,n):t.hasOwnProperty("defaultValue")&&xi(e,t.type,St(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function da(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xi(e,t,n){(t!=="number"||Jr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var On=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+St(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function ji(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return X({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function fa(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(On(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:St(n)}}function Xs(e,t){var n=St(t.value),r=St(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function pa(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ys(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 wi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ys(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Nr,qs=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Nr=Nr||document.createElement("div"),Nr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Nr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fn={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},Od=["Webkit","ms","Moz","O"];Object.keys(Fn).forEach(function(e){Od.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fn[t]=Fn[e]})});function Js(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fn.hasOwnProperty(e)&&Fn[e]?(""+t).trim():t+"px"}function Zs(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Js(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Id=X({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 Si(e,t){if(t){if(Id[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function ki(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 Ci=null;function yo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ni=null,cn=null,dn=null;function ma(e){if(e=hr(e)){if(typeof Ni!="function")throw Error(N(280));var t=e.stateNode;t&&(t=El(t),Ni(e.stateNode,e.type,t))}}function bs(e){cn?dn?dn.push(e):dn=[e]:cn=e}function eu(){if(cn){var e=cn,t=dn;if(dn=cn=null,ma(e),t)for(e=0;e<t.length;e++)ma(t[e])}}function tu(e,t){return e(t)}function nu(){}var Hl=!1;function ru(e,t,n){if(Hl)return e(t,n);Hl=!0;try{return tu(e,t,n)}finally{Hl=!1,(cn!==null||dn!==null)&&(nu(),eu())}}function Yn(e,t){var n=e.stateNode;if(n===null)return null;var r=El(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(N(231,t,typeof n));return n}var Ei=!1;if(tt)try{var Pn={};Object.defineProperty(Pn,"passive",{get:function(){Ei=!0}}),window.addEventListener("test",Pn,Pn),window.removeEventListener("test",Pn,Pn)}catch{Ei=!1}function Md(e,t,n,r,l,i,a,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(m){this.onError(m)}}var $n=!1,Zr=null,br=!1,Pi=null,Fd={onError:function(e){$n=!0,Zr=e}};function $d(e,t,n,r,l,i,a,s,u){$n=!1,Zr=null,Md.apply(Fd,arguments)}function Ud(e,t,n,r,l,i,a,s,u){if($d.apply(this,arguments),$n){if($n){var c=Zr;$n=!1,Zr=null}else throw Error(N(198));br||(br=!0,Pi=c)}}function Qt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function lu(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 ha(e){if(Qt(e)!==e)throw Error(N(188))}function Bd(e){var t=e.alternate;if(!t){if(t=Qt(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return ha(l),e;if(i===r)return ha(l),t;i=i.sibling}throw Error(N(188))}if(n.return!==r.return)n=l,r=i;else{for(var a=!1,s=l.child;s;){if(s===n){a=!0,n=l,r=i;break}if(s===r){a=!0,r=l,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=l;break}if(s===r){a=!0,r=i,n=l;break}s=s.sibling}if(!a)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function iu(e){return e=Bd(e),e!==null?ou(e):null}function ou(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ou(e);if(t!==null)return t;e=e.sibling}return null}var au=Pe.unstable_scheduleCallback,va=Pe.unstable_cancelCallback,Vd=Pe.unstable_shouldYield,Hd=Pe.unstable_requestPaint,b=Pe.unstable_now,Wd=Pe.unstable_getCurrentPriorityLevel,xo=Pe.unstable_ImmediatePriority,su=Pe.unstable_UserBlockingPriority,el=Pe.unstable_NormalPriority,Qd=Pe.unstable_LowPriority,uu=Pe.unstable_IdlePriority,Sl=null,Ke=null;function Gd(e){if(Ke&&typeof Ke.onCommitFiberRoot=="function")try{Ke.onCommitFiberRoot(Sl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ue=Math.clz32?Math.clz32:Yd,Kd=Math.log,Xd=Math.LN2;function Yd(e){return e>>>=0,e===0?32:31-(Kd(e)/Xd|0)|0}var Er=64,Pr=4194304;function In(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 tl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~l;s!==0?r=In(s):(i&=a,i!==0&&(r=In(i)))}else a=n&~l,a!==0?r=In(a):i!==0&&(r=In(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ue(t),l=1<<n,r|=e[n],t&=~l;return r}function qd(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 Jd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Ue(i),s=1<<a,u=l[a];u===-1?(!(s&n)||s&r)&&(l[a]=qd(s,t)):u<=t&&(e.expiredLanes|=s),i&=~s}}function _i(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function cu(){var e=Er;return Er<<=1,!(Er&4194240)&&(Er=64),e}function Wl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function pr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ue(t),e[t]=n}function Zd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Ue(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function jo(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ue(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var U=0;function du(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var fu,wo,pu,mu,hu,Ti=!1,_r=[],mt=null,ht=null,vt=null,qn=new Map,Jn=new Map,ut=[],bd="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 ga(e,t){switch(e){case"focusin":case"focusout":mt=null;break;case"dragenter":case"dragleave":ht=null;break;case"mouseover":case"mouseout":vt=null;break;case"pointerover":case"pointerout":qn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jn.delete(t.pointerId)}}function _n(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=hr(t),t!==null&&wo(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function ef(e,t,n,r,l){switch(t){case"focusin":return mt=_n(mt,e,t,n,r,l),!0;case"dragenter":return ht=_n(ht,e,t,n,r,l),!0;case"mouseover":return vt=_n(vt,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return qn.set(i,_n(qn.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,Jn.set(i,_n(Jn.get(i)||null,e,t,n,r,l)),!0}return!1}function vu(e){var t=Dt(e.target);if(t!==null){var n=Qt(t);if(n!==null){if(t=n.tag,t===13){if(t=lu(n),t!==null){e.blockedOn=t,hu(e.priority,function(){pu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Br(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Li(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ci=r,n.target.dispatchEvent(r),Ci=null}else return t=hr(n),t!==null&&wo(t),e.blockedOn=n,!1;t.shift()}return!0}function ya(e,t,n){Br(e)&&n.delete(t)}function tf(){Ti=!1,mt!==null&&Br(mt)&&(mt=null),ht!==null&&Br(ht)&&(ht=null),vt!==null&&Br(vt)&&(vt=null),qn.forEach(ya),Jn.forEach(ya)}function Tn(e,t){e.blockedOn===t&&(e.blockedOn=null,Ti||(Ti=!0,Pe.unstable_scheduleCallback(Pe.unstable_NormalPriority,tf)))}function Zn(e){function t(l){return Tn(l,e)}if(0<_r.length){Tn(_r[0],e);for(var n=1;n<_r.length;n++){var r=_r[n];r.blockedOn===e&&(r.blockedOn=null)}}for(mt!==null&&Tn(mt,e),ht!==null&&Tn(ht,e),vt!==null&&Tn(vt,e),qn.forEach(t),Jn.forEach(t),n=0;n<ut.length;n++)r=ut[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ut.length&&(n=ut[0],n.blockedOn===null);)vu(n),n.blockedOn===null&&ut.shift()}var fn=it.ReactCurrentBatchConfig,nl=!0;function nf(e,t,n,r){var l=U,i=fn.transition;fn.transition=null;try{U=1,So(e,t,n,r)}finally{U=l,fn.transition=i}}function rf(e,t,n,r){var l=U,i=fn.transition;fn.transition=null;try{U=4,So(e,t,n,r)}finally{U=l,fn.transition=i}}function So(e,t,n,r){if(nl){var l=Li(e,t,n,r);if(l===null)ei(e,t,r,rl,n),ga(e,r);else if(ef(l,e,t,n,r))r.stopPropagation();else if(ga(e,r),t&4&&-1<bd.indexOf(e)){for(;l!==null;){var i=hr(l);if(i!==null&&fu(i),i=Li(e,t,n,r),i===null&&ei(e,t,r,rl,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else ei(e,t,r,null,n)}}var rl=null;function Li(e,t,n,r){if(rl=null,e=yo(r),e=Dt(e),e!==null)if(t=Qt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=lu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return rl=e,null}function gu(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(Wd()){case xo:return 1;case su:return 4;case el:case Qd:return 16;case uu:return 536870912;default:return 16}default:return 16}}var dt=null,ko=null,Vr=null;function yu(){if(Vr)return Vr;var e,t=ko,n=t.length,r,l="value"in dt?dt.value:dt.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===l[i-r];r++);return Vr=l.slice(e,1<r?1-r:void 0)}function Hr(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 Tr(){return!0}function xa(){return!1}function Te(e){function t(n,r,l,i,a){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Tr:xa,this.isPropagationStopped=xa,this}return X(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Tr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Tr)},persist:function(){},isPersistent:Tr}),t}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Co=Te(kn),mr=X({},kn,{view:0,detail:0}),lf=Te(mr),Ql,Gl,Ln,kl=X({},mr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:No,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!==Ln&&(Ln&&e.type==="mousemove"?(Ql=e.screenX-Ln.screenX,Gl=e.screenY-Ln.screenY):Gl=Ql=0,Ln=e),Ql)},movementY:function(e){return"movementY"in e?e.movementY:Gl}}),ja=Te(kl),of=X({},kl,{dataTransfer:0}),af=Te(of),sf=X({},mr,{relatedTarget:0}),Kl=Te(sf),uf=X({},kn,{animationName:0,elapsedTime:0,pseudoElement:0}),cf=Te(uf),df=X({},kn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ff=Te(df),pf=X({},kn,{data:0}),wa=Te(pf),mf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hf={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"},vf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vf[e])?!!t[e]:!1}function No(){return gf}var yf=X({},mr,{key:function(e){if(e.key){var t=mf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:No,charCode:function(e){return e.type==="keypress"?Hr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xf=Te(yf),jf=X({},kl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sa=Te(jf),wf=X({},mr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:No}),Sf=Te(wf),kf=X({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cf=Te(kf),Nf=X({},kl,{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}),Ef=Te(Nf),Pf=[9,13,27,32],Eo=tt&&"CompositionEvent"in window,Un=null;tt&&"documentMode"in document&&(Un=document.documentMode);var _f=tt&&"TextEvent"in window&&!Un,xu=tt&&(!Eo||Un&&8<Un&&11>=Un),ka=" ",Ca=!1;function ju(e,t){switch(e){case"keyup":return Pf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zt=!1;function Tf(e,t){switch(e){case"compositionend":return wu(t);case"keypress":return t.which!==32?null:(Ca=!0,ka);case"textInput":return e=t.data,e===ka&&Ca?null:e;default:return null}}function Lf(e,t){if(Zt)return e==="compositionend"||!Eo&&ju(e,t)?(e=yu(),Vr=ko=dt=null,Zt=!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 xu&&t.locale!=="ko"?null:t.data;default:return null}}var zf={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 Na(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zf[e.type]:t==="textarea"}function Su(e,t,n,r){bs(r),t=ll(t,"onChange"),0<t.length&&(n=new Co("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Bn=null,bn=null;function Af(e){Du(e,0)}function Cl(e){var t=tn(e);if(Gs(t))return e}function Df(e,t){if(e==="change")return t}var ku=!1;if(tt){var Xl;if(tt){var Yl="oninput"in document;if(!Yl){var Ea=document.createElement("div");Ea.setAttribute("oninput","return;"),Yl=typeof Ea.oninput=="function"}Xl=Yl}else Xl=!1;ku=Xl&&(!document.documentMode||9<document.documentMode)}function Pa(){Bn&&(Bn.detachEvent("onpropertychange",Cu),bn=Bn=null)}function Cu(e){if(e.propertyName==="value"&&Cl(bn)){var t=[];Su(t,bn,e,yo(e)),ru(Af,t)}}function Rf(e,t,n){e==="focusin"?(Pa(),Bn=t,bn=n,Bn.attachEvent("onpropertychange",Cu)):e==="focusout"&&Pa()}function Of(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cl(bn)}function If(e,t){if(e==="click")return Cl(t)}function Mf(e,t){if(e==="input"||e==="change")return Cl(t)}function Ff(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ve=typeof Object.is=="function"?Object.is:Ff;function er(e,t){if(Ve(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!fi.call(t,l)||!Ve(e[l],t[l]))return!1}return!0}function _a(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ta(e,t){var n=_a(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_a(n)}}function Nu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Eu(){for(var e=window,t=Jr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jr(e.document)}return t}function Po(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 $f(e){var t=Eu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nu(n.ownerDocument.documentElement,n)){if(r!==null&&Po(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Ta(n,i);var a=Ta(n,r);l&&a&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Uf=tt&&"documentMode"in document&&11>=document.documentMode,bt=null,zi=null,Vn=null,Ai=!1;function La(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ai||bt==null||bt!==Jr(r)||(r=bt,"selectionStart"in r&&Po(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vn&&er(Vn,r)||(Vn=r,r=ll(zi,"onSelect"),0<r.length&&(t=new Co("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=bt)))}function Lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var en={animationend:Lr("Animation","AnimationEnd"),animationiteration:Lr("Animation","AnimationIteration"),animationstart:Lr("Animation","AnimationStart"),transitionend:Lr("Transition","TransitionEnd")},ql={},Pu={};tt&&(Pu=document.createElement("div").style,"AnimationEvent"in window||(delete en.animationend.animation,delete en.animationiteration.animation,delete en.animationstart.animation),"TransitionEvent"in window||delete en.transitionend.transition);function Nl(e){if(ql[e])return ql[e];if(!en[e])return e;var t=en[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pu)return ql[e]=t[n];return e}var _u=Nl("animationend"),Tu=Nl("animationiteration"),Lu=Nl("animationstart"),zu=Nl("transitionend"),Au=new Map,za="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(" ");function Ct(e,t){Au.set(e,t),Wt(t,[e])}for(var Jl=0;Jl<za.length;Jl++){var Zl=za[Jl],Bf=Zl.toLowerCase(),Vf=Zl[0].toUpperCase()+Zl.slice(1);Ct(Bf,"on"+Vf)}Ct(_u,"onAnimationEnd");Ct(Tu,"onAnimationIteration");Ct(Lu,"onAnimationStart");Ct("dblclick","onDoubleClick");Ct("focusin","onFocus");Ct("focusout","onBlur");Ct(zu,"onTransitionEnd");hn("onMouseEnter",["mouseout","mouseover"]);hn("onMouseLeave",["mouseout","mouseover"]);hn("onPointerEnter",["pointerout","pointerover"]);hn("onPointerLeave",["pointerout","pointerover"]);Wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Wt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mn="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(" "),Hf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mn));function Aa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ud(r,t,void 0,e),e.currentTarget=null}function Du(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==i&&l.isPropagationStopped())break e;Aa(l,s,c),i=u}else for(a=0;a<r.length;a++){if(s=r[a],u=s.instance,c=s.currentTarget,s=s.listener,u!==i&&l.isPropagationStopped())break e;Aa(l,s,c),i=u}}}if(br)throw e=Pi,br=!1,Pi=null,e}function H(e,t){var n=t[Mi];n===void 0&&(n=t[Mi]=new Set);var r=e+"__bubble";n.has(r)||(Ru(t,e,2,!1),n.add(r))}function bl(e,t,n){var r=0;t&&(r|=4),Ru(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function tr(e){if(!e[zr]){e[zr]=!0,Bs.forEach(function(n){n!=="selectionchange"&&(Hf.has(n)||bl(n,!1,e),bl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zr]||(t[zr]=!0,bl("selectionchange",!1,t))}}function Ru(e,t,n,r){switch(gu(t)){case 1:var l=nf;break;case 4:l=rf;break;default:l=So}n=l.bind(null,t,n,e),l=void 0,!Ei||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function ei(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===l||s.nodeType===8&&s.parentNode===l)break;if(a===4)for(a=r.return;a!==null;){var u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;a=a.return}for(;s!==null;){if(a=Dt(s),a===null)return;if(u=a.tag,u===5||u===6){r=i=a;continue e}s=s.parentNode}}r=r.return}ru(function(){var c=i,m=yo(n),v=[];e:{var f=Au.get(e);if(f!==void 0){var x=Co,j=e;switch(e){case"keypress":if(Hr(n)===0)break e;case"keydown":case"keyup":x=xf;break;case"focusin":j="focus",x=Kl;break;case"focusout":j="blur",x=Kl;break;case"beforeblur":case"afterblur":x=Kl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=ja;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=af;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Sf;break;case _u:case Tu:case Lu:x=cf;break;case zu:x=Cf;break;case"scroll":x=lf;break;case"wheel":x=Ef;break;case"copy":case"cut":case"paste":x=ff;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Sa}var w=(t&4)!==0,C=!w&&e==="scroll",p=w?f!==null?f+"Capture":null:f;w=[];for(var d=c,h;d!==null;){h=d;var k=h.stateNode;if(h.tag===5&&k!==null&&(h=k,p!==null&&(k=Yn(d,p),k!=null&&w.push(nr(d,k,h)))),C)break;d=d.return}0<w.length&&(f=new x(f,j,null,n,m),v.push({event:f,listeners:w}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",f&&n!==Ci&&(j=n.relatedTarget||n.fromElement)&&(Dt(j)||j[nt]))break e;if((x||f)&&(f=m.window===m?m:(f=m.ownerDocument)?f.defaultView||f.parentWindow:window,x?(j=n.relatedTarget||n.toElement,x=c,j=j?Dt(j):null,j!==null&&(C=Qt(j),j!==C||j.tag!==5&&j.tag!==6)&&(j=null)):(x=null,j=c),x!==j)){if(w=ja,k="onMouseLeave",p="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(w=Sa,k="onPointerLeave",p="onPointerEnter",d="pointer"),C=x==null?f:tn(x),h=j==null?f:tn(j),f=new w(k,d+"leave",x,n,m),f.target=C,f.relatedTarget=h,k=null,Dt(m)===c&&(w=new w(p,d+"enter",j,n,m),w.target=h,w.relatedTarget=C,k=w),C=k,x&&j)t:{for(w=x,p=j,d=0,h=w;h;h=Yt(h))d++;for(h=0,k=p;k;k=Yt(k))h++;for(;0<d-h;)w=Yt(w),d--;for(;0<h-d;)p=Yt(p),h--;for(;d--;){if(w===p||p!==null&&w===p.alternate)break t;w=Yt(w),p=Yt(p)}w=null}else w=null;x!==null&&Da(v,f,x,w,!1),j!==null&&C!==null&&Da(v,C,j,w,!0)}}e:{if(f=c?tn(c):window,x=f.nodeName&&f.nodeName.toLowerCase(),x==="select"||x==="input"&&f.type==="file")var E=Df;else if(Na(f))if(ku)E=Mf;else{E=Of;var T=Rf}else(x=f.nodeName)&&x.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(E=If);if(E&&(E=E(e,c))){Su(v,E,n,m);break e}T&&T(e,f,c),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&xi(f,"number",f.value)}switch(T=c?tn(c):window,e){case"focusin":(Na(T)||T.contentEditable==="true")&&(bt=T,zi=c,Vn=null);break;case"focusout":Vn=zi=bt=null;break;case"mousedown":Ai=!0;break;case"contextmenu":case"mouseup":case"dragend":Ai=!1,La(v,n,m);break;case"selectionchange":if(Uf)break;case"keydown":case"keyup":La(v,n,m)}var _;if(Eo)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 Zt?ju(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(xu&&n.locale!=="ko"&&(Zt||P!=="onCompositionStart"?P==="onCompositionEnd"&&Zt&&(_=yu()):(dt=m,ko="value"in dt?dt.value:dt.textContent,Zt=!0)),T=ll(c,P),0<T.length&&(P=new wa(P,e,null,n,m),v.push({event:P,listeners:T}),_?P.data=_:(_=wu(n),_!==null&&(P.data=_)))),(_=_f?Tf(e,n):Lf(e,n))&&(c=ll(c,"onBeforeInput"),0<c.length&&(m=new wa("onBeforeInput","beforeinput",null,n,m),v.push({event:m,listeners:c}),m.data=_))}Du(v,t)})}function nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ll(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=Yn(e,n),i!=null&&r.unshift(nr(e,i,l)),i=Yn(e,t),i!=null&&r.push(nr(e,i,l))),e=e.return}return r}function Yt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Da(e,t,n,r,l){for(var i=t._reactName,a=[];n!==null&&n!==r;){var s=n,u=s.alternate,c=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&c!==null&&(s=c,l?(u=Yn(n,i),u!=null&&a.unshift(nr(n,u,s))):l||(u=Yn(n,i),u!=null&&a.push(nr(n,u,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Wf=/\r\n?/g,Qf=/\u0000|\uFFFD/g;function Ra(e){return(typeof e=="string"?e:""+e).replace(Wf,`
|
|
38
|
+
`).replace(Qf,"")}function Ar(e,t,n){if(t=Ra(t),Ra(e)!==t&&n)throw Error(N(425))}function il(){}var Di=null,Ri=null;function Oi(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 Ii=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Oa=typeof Promise=="function"?Promise:void 0,Kf=typeof queueMicrotask=="function"?queueMicrotask:typeof Oa<"u"?function(e){return Oa.resolve(null).then(e).catch(Xf)}:Ii;function Xf(e){setTimeout(function(){throw e})}function ti(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Zn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Zn(t)}function gt(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 Ia(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),Ge="__reactFiber$"+Cn,rr="__reactProps$"+Cn,nt="__reactContainer$"+Cn,Mi="__reactEvents$"+Cn,Yf="__reactListeners$"+Cn,qf="__reactHandles$"+Cn;function Dt(e){var t=e[Ge];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nt]||n[Ge]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ia(e);e!==null;){if(n=e[Ge])return n;e=Ia(e)}return t}e=n,n=e.parentNode}return null}function hr(e){return e=e[Ge]||e[nt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function tn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function El(e){return e[rr]||null}var Fi=[],nn=-1;function Nt(e){return{current:e}}function W(e){0>nn||(e.current=Fi[nn],Fi[nn]=null,nn--)}function B(e,t){nn++,Fi[nn]=e.current,e.current=t}var kt={},pe=Nt(kt),we=Nt(!1),$t=kt;function vn(e,t){var n=e.type.contextTypes;if(!n)return kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Se(e){return e=e.childContextTypes,e!=null}function ol(){W(we),W(pe)}function Ma(e,t,n){if(pe.current!==kt)throw Error(N(168));B(pe,t),B(we,n)}function Ou(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(N(108,Dd(e)||"Unknown",l));return X({},n,r)}function al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kt,$t=pe.current,B(pe,e),B(we,we.current),!0}function Fa(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Ou(e,t,$t),r.__reactInternalMemoizedMergedChildContext=e,W(we),W(pe),B(pe,e)):W(we),B(we,n)}var Je=null,Pl=!1,ni=!1;function Iu(e){Je===null?Je=[e]:Je.push(e)}function Jf(e){Pl=!0,Iu(e)}function Et(){if(!ni&&Je!==null){ni=!0;var e=0,t=U;try{var n=Je;for(U=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Je=null,Pl=!1}catch(l){throw Je!==null&&(Je=Je.slice(e+1)),au(xo,Et),l}finally{U=t,ni=!1}}return null}var rn=[],ln=0,sl=null,ul=0,Le=[],ze=0,Ut=null,Ze=1,be="";function zt(e,t){rn[ln++]=ul,rn[ln++]=sl,sl=e,ul=t}function Mu(e,t,n){Le[ze++]=Ze,Le[ze++]=be,Le[ze++]=Ut,Ut=e;var r=Ze;e=be;var l=32-Ue(r)-1;r&=~(1<<l),n+=1;var i=32-Ue(t)+l;if(30<i){var a=l-l%5;i=(r&(1<<a)-1).toString(32),r>>=a,l-=a,Ze=1<<32-Ue(t)+l|n<<l|r,be=i+e}else Ze=1<<i|n<<l|r,be=e}function _o(e){e.return!==null&&(zt(e,1),Mu(e,1,0))}function To(e){for(;e===sl;)sl=rn[--ln],rn[ln]=null,ul=rn[--ln],rn[ln]=null;for(;e===Ut;)Ut=Le[--ze],Le[ze]=null,be=Le[--ze],Le[ze]=null,Ze=Le[--ze],Le[ze]=null}var Ee=null,Ne=null,Q=!1,$e=null;function Fu(e,t){var n=Ae(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function $a(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ee=e,Ne=gt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ee=e,Ne=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ut!==null?{id:Ze,overflow:be}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ae(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ee=e,Ne=null,!0):!1;default:return!1}}function $i(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ui(e){if(Q){var t=Ne;if(t){var n=t;if(!$a(e,t)){if($i(e))throw Error(N(418));t=gt(n.nextSibling);var r=Ee;t&&$a(e,t)?Fu(r,n):(e.flags=e.flags&-4097|2,Q=!1,Ee=e)}}else{if($i(e))throw Error(N(418));e.flags=e.flags&-4097|2,Q=!1,Ee=e}}}function Ua(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ee=e}function Dr(e){if(e!==Ee)return!1;if(!Q)return Ua(e),Q=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Oi(e.type,e.memoizedProps)),t&&(t=Ne)){if($i(e))throw $u(),Error(N(418));for(;t;)Fu(e,t),t=gt(t.nextSibling)}if(Ua(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ne=gt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ne=null}}else Ne=Ee?gt(e.stateNode.nextSibling):null;return!0}function $u(){for(var e=Ne;e;)e=gt(e.nextSibling)}function gn(){Ne=Ee=null,Q=!1}function Lo(e){$e===null?$e=[e]:$e.push(e)}var Zf=it.ReactCurrentBatchConfig;function zn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=l.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function Rr(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ba(e){var t=e._init;return t(e._payload)}function Uu(e){function t(p,d){if(e){var h=p.deletions;h===null?(p.deletions=[d],p.flags|=16):h.push(d)}}function n(p,d){if(!e)return null;for(;d!==null;)t(p,d),d=d.sibling;return null}function r(p,d){for(p=new Map;d!==null;)d.key!==null?p.set(d.key,d):p.set(d.index,d),d=d.sibling;return p}function l(p,d){return p=wt(p,d),p.index=0,p.sibling=null,p}function i(p,d,h){return p.index=h,e?(h=p.alternate,h!==null?(h=h.index,h<d?(p.flags|=2,d):h):(p.flags|=2,d)):(p.flags|=1048576,d)}function a(p){return e&&p.alternate===null&&(p.flags|=2),p}function s(p,d,h,k){return d===null||d.tag!==6?(d=ui(h,p.mode,k),d.return=p,d):(d=l(d,h),d.return=p,d)}function u(p,d,h,k){var E=h.type;return E===Jt?m(p,d,h.props.children,k,h.key):d!==null&&(d.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===at&&Ba(E)===d.type)?(k=l(d,h.props),k.ref=zn(p,d,h),k.return=p,k):(k=qr(h.type,h.key,h.props,null,p.mode,k),k.ref=zn(p,d,h),k.return=p,k)}function c(p,d,h,k){return d===null||d.tag!==4||d.stateNode.containerInfo!==h.containerInfo||d.stateNode.implementation!==h.implementation?(d=ci(h,p.mode,k),d.return=p,d):(d=l(d,h.children||[]),d.return=p,d)}function m(p,d,h,k,E){return d===null||d.tag!==7?(d=Mt(h,p.mode,k,E),d.return=p,d):(d=l(d,h),d.return=p,d)}function v(p,d,h){if(typeof d=="string"&&d!==""||typeof d=="number")return d=ui(""+d,p.mode,h),d.return=p,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case kr:return h=qr(d.type,d.key,d.props,null,p.mode,h),h.ref=zn(p,null,d),h.return=p,h;case qt:return d=ci(d,p.mode,h),d.return=p,d;case at:var k=d._init;return v(p,k(d._payload),h)}if(On(d)||En(d))return d=Mt(d,p.mode,h,null),d.return=p,d;Rr(p,d)}return null}function f(p,d,h,k){var E=d!==null?d.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return E!==null?null:s(p,d,""+h,k);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case kr:return h.key===E?u(p,d,h,k):null;case qt:return h.key===E?c(p,d,h,k):null;case at:return E=h._init,f(p,d,E(h._payload),k)}if(On(h)||En(h))return E!==null?null:m(p,d,h,k,null);Rr(p,h)}return null}function x(p,d,h,k,E){if(typeof k=="string"&&k!==""||typeof k=="number")return p=p.get(h)||null,s(d,p,""+k,E);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case kr:return p=p.get(k.key===null?h:k.key)||null,u(d,p,k,E);case qt:return p=p.get(k.key===null?h:k.key)||null,c(d,p,k,E);case at:var T=k._init;return x(p,d,h,T(k._payload),E)}if(On(k)||En(k))return p=p.get(h)||null,m(d,p,k,E,null);Rr(d,k)}return null}function j(p,d,h,k){for(var E=null,T=null,_=d,P=d=0,g=null;_!==null&&P<h.length;P++){_.index>P?(g=_,_=null):g=_.sibling;var S=f(p,_,h[P],k);if(S===null){_===null&&(_=g);break}e&&_&&S.alternate===null&&t(p,_),d=i(S,d,P),T===null?E=S:T.sibling=S,T=S,_=g}if(P===h.length)return n(p,_),Q&&zt(p,P),E;if(_===null){for(;P<h.length;P++)_=v(p,h[P],k),_!==null&&(d=i(_,d,P),T===null?E=_:T.sibling=_,T=_);return Q&&zt(p,P),E}for(_=r(p,_);P<h.length;P++)g=x(_,p,P,h[P],k),g!==null&&(e&&g.alternate!==null&&_.delete(g.key===null?P:g.key),d=i(g,d,P),T===null?E=g:T.sibling=g,T=g);return e&&_.forEach(function(D){return t(p,D)}),Q&&zt(p,P),E}function w(p,d,h,k){var E=En(h);if(typeof E!="function")throw Error(N(150));if(h=E.call(h),h==null)throw Error(N(151));for(var T=E=null,_=d,P=d=0,g=null,S=h.next();_!==null&&!S.done;P++,S=h.next()){_.index>P?(g=_,_=null):g=_.sibling;var D=f(p,_,S.value,k);if(D===null){_===null&&(_=g);break}e&&_&&D.alternate===null&&t(p,_),d=i(D,d,P),T===null?E=D:T.sibling=D,T=D,_=g}if(S.done)return n(p,_),Q&&zt(p,P),E;if(_===null){for(;!S.done;P++,S=h.next())S=v(p,S.value,k),S!==null&&(d=i(S,d,P),T===null?E=S:T.sibling=S,T=S);return Q&&zt(p,P),E}for(_=r(p,_);!S.done;P++,S=h.next())S=x(_,p,P,S.value,k),S!==null&&(e&&S.alternate!==null&&_.delete(S.key===null?P:S.key),d=i(S,d,P),T===null?E=S:T.sibling=S,T=S);return e&&_.forEach(function(Y){return t(p,Y)}),Q&&zt(p,P),E}function C(p,d,h,k){if(typeof h=="object"&&h!==null&&h.type===Jt&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case kr:e:{for(var E=h.key,T=d;T!==null;){if(T.key===E){if(E=h.type,E===Jt){if(T.tag===7){n(p,T.sibling),d=l(T,h.props.children),d.return=p,p=d;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===at&&Ba(E)===T.type){n(p,T.sibling),d=l(T,h.props),d.ref=zn(p,T,h),d.return=p,p=d;break e}n(p,T);break}else t(p,T);T=T.sibling}h.type===Jt?(d=Mt(h.props.children,p.mode,k,h.key),d.return=p,p=d):(k=qr(h.type,h.key,h.props,null,p.mode,k),k.ref=zn(p,d,h),k.return=p,p=k)}return a(p);case qt:e:{for(T=h.key;d!==null;){if(d.key===T)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){n(p,d.sibling),d=l(d,h.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=ci(h,p.mode,k),d.return=p,p=d}return a(p);case at:return T=h._init,C(p,d,T(h._payload),k)}if(On(h))return j(p,d,h,k);if(En(h))return w(p,d,h,k);Rr(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(n(p,d.sibling),d=l(d,h),d.return=p,p=d):(n(p,d),d=ui(h,p.mode,k),d.return=p,p=d),a(p)):n(p,d)}return C}var yn=Uu(!0),Bu=Uu(!1),cl=Nt(null),dl=null,on=null,zo=null;function Ao(){zo=on=dl=null}function Do(e){var t=cl.current;W(cl),e._currentValue=t}function Bi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function pn(e,t){dl=e,zo=on=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(je=!0),e.firstContext=null)}function Re(e){var t=e._currentValue;if(zo!==e)if(e={context:e,memoizedValue:t,next:null},on===null){if(dl===null)throw Error(N(308));on=e,dl.dependencies={lanes:0,firstContext:e}}else on=on.next=e;return t}var Rt=null;function Ro(e){Rt===null?Rt=[e]:Rt.push(e)}function Vu(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ro(t)):(n.next=l.next,l.next=n),t.interleaved=n,rt(e,r)}function rt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var st=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hu(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 et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,rt(e,n)}return l=r.interleaved,l===null?(t.next=t,Ro(r)):(t.next=l.next,l.next=t),r.interleaved=t,rt(e,n)}function Wr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jo(e,n)}}function Va(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fl(e,t,n,r){var l=e.updateQueue;st=!1;var i=l.firstBaseUpdate,a=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,c=u.next;u.next=null,a===null?i=c:a.next=c,a=u;var m=e.alternate;m!==null&&(m=m.updateQueue,s=m.lastBaseUpdate,s!==a&&(s===null?m.firstBaseUpdate=c:s.next=c,m.lastBaseUpdate=u))}if(i!==null){var v=l.baseState;a=0,m=c=u=null,s=i;do{var f=s.lane,x=s.eventTime;if((r&f)===f){m!==null&&(m=m.next={eventTime:x,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var j=e,w=s;switch(f=t,x=n,w.tag){case 1:if(j=w.payload,typeof j=="function"){v=j.call(x,v,f);break e}v=j;break e;case 3:j.flags=j.flags&-65537|128;case 0:if(j=w.payload,f=typeof j=="function"?j.call(x,v,f):j,f==null)break e;v=X({},v,f);break e;case 2:st=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=l.effects,f===null?l.effects=[s]:f.push(s))}else x={eventTime:x,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},m===null?(c=m=x,u=v):m=m.next=x,a|=f;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;f=s,s=f.next,f.next=null,l.lastBaseUpdate=f,l.shared.pending=null}}while(!0);if(m===null&&(u=v),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=m,t=l.shared.interleaved,t!==null){l=t;do a|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Vt|=a,e.lanes=a,e.memoizedState=v}}function Ha(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(N(191,l));l.call(r)}}}var vr={},Xe=Nt(vr),lr=Nt(vr),ir=Nt(vr);function Ot(e){if(e===vr)throw Error(N(174));return e}function Io(e,t){switch(B(ir,t),B(lr,e),B(Xe,vr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wi(t,e)}W(Xe),B(Xe,t)}function xn(){W(Xe),W(lr),W(ir)}function Wu(e){Ot(ir.current);var t=Ot(Xe.current),n=wi(t,e.type);t!==n&&(B(lr,e),B(Xe,n))}function Mo(e){lr.current===e&&(W(Xe),W(lr))}var G=Nt(0);function pl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 ri=[];function Fo(){for(var e=0;e<ri.length;e++)ri[e]._workInProgressVersionPrimary=null;ri.length=0}var Qr=it.ReactCurrentDispatcher,li=it.ReactCurrentBatchConfig,Bt=0,K=null,ne=null,ie=null,ml=!1,Hn=!1,or=0,bf=0;function ce(){throw Error(N(321))}function $o(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ve(e[n],t[n]))return!1;return!0}function Uo(e,t,n,r,l,i){if(Bt=i,K=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qr.current=e===null||e.memoizedState===null?rp:lp,e=n(r,l),Hn){i=0;do{if(Hn=!1,or=0,25<=i)throw Error(N(301));i+=1,ie=ne=null,t.updateQueue=null,Qr.current=ip,e=n(r,l)}while(Hn)}if(Qr.current=hl,t=ne!==null&&ne.next!==null,Bt=0,ie=ne=K=null,ml=!1,t)throw Error(N(300));return e}function Bo(){var e=or!==0;return or=0,e}function Qe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ie===null?K.memoizedState=ie=e:ie=ie.next=e,ie}function Oe(){if(ne===null){var e=K.alternate;e=e!==null?e.memoizedState:null}else e=ne.next;var t=ie===null?K.memoizedState:ie.next;if(t!==null)ie=t,ne=e;else{if(e===null)throw Error(N(310));ne=e,e={memoizedState:ne.memoizedState,baseState:ne.baseState,baseQueue:ne.baseQueue,queue:ne.queue,next:null},ie===null?K.memoizedState=ie=e:ie=ie.next=e}return ie}function ar(e,t){return typeof t=="function"?t(e):t}function ii(e){var t=Oe(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=ne,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var a=l.next;l.next=i.next,i.next=a}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var s=a=null,u=null,c=i;do{var m=c.lane;if((Bt&m)===m)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var v={lane:m,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(s=u=v,a=r):u=u.next=v,K.lanes|=m,Vt|=m}c=c.next}while(c!==null&&c!==i);u===null?a=r:u.next=s,Ve(r,t.memoizedState)||(je=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,K.lanes|=i,Vt|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function oi(e){var t=Oe(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var a=l=l.next;do i=e(i,a.action),a=a.next;while(a!==l);Ve(i,t.memoizedState)||(je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Qu(){}function Gu(e,t){var n=K,r=Oe(),l=t(),i=!Ve(r.memoizedState,l);if(i&&(r.memoizedState=l,je=!0),r=r.queue,Vo(Yu.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ie!==null&&ie.memoizedState.tag&1){if(n.flags|=2048,sr(9,Xu.bind(null,n,r,l,t),void 0,null),oe===null)throw Error(N(349));Bt&30||Ku(n,t,l)}return l}function Ku(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Xu(e,t,n,r){t.value=n,t.getSnapshot=r,qu(t)&&Ju(e)}function Yu(e,t,n){return n(function(){qu(t)&&Ju(e)})}function qu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ve(e,n)}catch{return!0}}function Ju(e){var t=rt(e,1);t!==null&&Be(t,e,1,-1)}function Wa(e){var t=Qe();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:e},t.queue=e,e=e.dispatch=np.bind(null,K,e),[t.memoizedState,e]}function sr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Zu(){return Oe().memoizedState}function Gr(e,t,n,r){var l=Qe();K.flags|=e,l.memoizedState=sr(1|t,n,void 0,r===void 0?null:r)}function _l(e,t,n,r){var l=Oe();r=r===void 0?null:r;var i=void 0;if(ne!==null){var a=ne.memoizedState;if(i=a.destroy,r!==null&&$o(r,a.deps)){l.memoizedState=sr(t,n,i,r);return}}K.flags|=e,l.memoizedState=sr(1|t,n,i,r)}function Qa(e,t){return Gr(8390656,8,e,t)}function Vo(e,t){return _l(2048,8,e,t)}function bu(e,t){return _l(4,2,e,t)}function ec(e,t){return _l(4,4,e,t)}function tc(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 nc(e,t,n){return n=n!=null?n.concat([e]):null,_l(4,4,tc.bind(null,t,e),n)}function Ho(){}function rc(e,t){var n=Oe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$o(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function lc(e,t){var n=Oe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$o(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ic(e,t,n){return Bt&21?(Ve(n,t)||(n=cu(),K.lanes|=n,Vt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,je=!0),e.memoizedState=n)}function ep(e,t){var n=U;U=n!==0&&4>n?n:4,e(!0);var r=li.transition;li.transition={};try{e(!1),t()}finally{U=n,li.transition=r}}function oc(){return Oe().memoizedState}function tp(e,t,n){var r=jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ac(e))sc(t,n);else if(n=Vu(e,t,n,r),n!==null){var l=ve();Be(n,e,r,l),uc(n,t,r)}}function np(e,t,n){var r=jt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ac(e))sc(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(l.hasEagerState=!0,l.eagerState=s,Ve(s,a)){var u=t.interleaved;u===null?(l.next=l,Ro(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Vu(e,t,l,r),n!==null&&(l=ve(),Be(n,e,r,l),uc(n,t,r))}}function ac(e){var t=e.alternate;return e===K||t!==null&&t===K}function sc(e,t){Hn=ml=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function uc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jo(e,n)}}var hl={readContext:Re,useCallback:ce,useContext:ce,useEffect:ce,useImperativeHandle:ce,useInsertionEffect:ce,useLayoutEffect:ce,useMemo:ce,useReducer:ce,useRef:ce,useState:ce,useDebugValue:ce,useDeferredValue:ce,useTransition:ce,useMutableSource:ce,useSyncExternalStore:ce,useId:ce,unstable_isNewReconciler:!1},rp={readContext:Re,useCallback:function(e,t){return Qe().memoizedState=[e,t===void 0?null:t],e},useContext:Re,useEffect:Qa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Gr(4194308,4,tc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gr(4,2,e,t)},useMemo:function(e,t){var n=Qe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qe();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tp.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=Qe();return e={current:e},t.memoizedState=e},useState:Wa,useDebugValue:Ho,useDeferredValue:function(e){return Qe().memoizedState=e},useTransition:function(){var e=Wa(!1),t=e[0];return e=ep.bind(null,e[1]),Qe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,l=Qe();if(Q){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),oe===null)throw Error(N(349));Bt&30||Ku(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Qa(Yu.bind(null,r,i,e),[e]),r.flags|=2048,sr(9,Xu.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Qe(),t=oe.identifierPrefix;if(Q){var n=be,r=Ze;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=or++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=bf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lp={readContext:Re,useCallback:rc,useContext:Re,useEffect:Vo,useImperativeHandle:nc,useInsertionEffect:bu,useLayoutEffect:ec,useMemo:lc,useReducer:ii,useRef:Zu,useState:function(){return ii(ar)},useDebugValue:Ho,useDeferredValue:function(e){var t=Oe();return ic(t,ne.memoizedState,e)},useTransition:function(){var e=ii(ar)[0],t=Oe().memoizedState;return[e,t]},useMutableSource:Qu,useSyncExternalStore:Gu,useId:oc,unstable_isNewReconciler:!1},ip={readContext:Re,useCallback:rc,useContext:Re,useEffect:Vo,useImperativeHandle:nc,useInsertionEffect:bu,useLayoutEffect:ec,useMemo:lc,useReducer:oi,useRef:Zu,useState:function(){return oi(ar)},useDebugValue:Ho,useDeferredValue:function(e){var t=Oe();return ne===null?t.memoizedState=e:ic(t,ne.memoizedState,e)},useTransition:function(){var e=oi(ar)[0],t=Oe().memoizedState;return[e,t]},useMutableSource:Qu,useSyncExternalStore:Gu,useId:oc,unstable_isNewReconciler:!1};function Me(e,t){if(e&&e.defaultProps){t=X({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Vi(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:X({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Tl={isMounted:function(e){return(e=e._reactInternals)?Qt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ve(),l=jt(e),i=et(r,l);i.payload=t,n!=null&&(i.callback=n),t=yt(e,i,l),t!==null&&(Be(t,e,l,r),Wr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ve(),l=jt(e),i=et(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=yt(e,i,l),t!==null&&(Be(t,e,l,r),Wr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ve(),r=jt(e),l=et(n,r);l.tag=2,t!=null&&(l.callback=t),t=yt(e,l,r),t!==null&&(Be(t,e,r,n),Wr(t,e,r))}};function Ga(e,t,n,r,l,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!er(n,r)||!er(l,i):!0}function cc(e,t,n){var r=!1,l=kt,i=t.contextType;return typeof i=="object"&&i!==null?i=Re(i):(l=Se(t)?$t:pe.current,r=t.contextTypes,i=(r=r!=null)?vn(e,l):kt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Tl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ka(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Tl.enqueueReplaceState(t,t.state,null)}function Hi(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Oo(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=Re(i):(i=Se(t)?$t:pe.current,l.context=vn(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Vi(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Tl.enqueueReplaceState(l,l.state,null),fl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function jn(e,t){try{var n="",r=t;do n+=Ad(r),r=r.return;while(r);var l=n}catch(i){l=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function ai(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var op=typeof WeakMap=="function"?WeakMap:Map;function dc(e,t,n){n=et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){gl||(gl=!0,eo=r),Wi(e,t)},n}function fc(e,t,n){n=et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Wi(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Wi(e,t),typeof r!="function"&&(xt===null?xt=new Set([this]):xt.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Xa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new op;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=jp.bind(null,e,t,n),t.then(e,e))}function Ya(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 qa(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=et(-1,1),t.tag=2,yt(n,t,1))),n.lanes|=1),e)}var ap=it.ReactCurrentOwner,je=!1;function he(e,t,n,r){t.child=e===null?Bu(t,null,n,r):yn(t,e.child,n,r)}function Ja(e,t,n,r,l){n=n.render;var i=t.ref;return pn(t,l),r=Uo(e,t,n,r,i,l),n=Bo(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lt(e,t,l)):(Q&&n&&_o(t),t.flags|=1,he(e,t,r,l),t.child)}function Za(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Jo(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,pc(e,t,i,r,l)):(e=qr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:er,n(a,r)&&e.ref===t.ref)return lt(e,t,l)}return t.flags|=1,e=wt(i,r),e.ref=t.ref,e.return=t,t.child=e}function pc(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(er(i,r)&&e.ref===t.ref)if(je=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(je=!0);else return t.lanes=e.lanes,lt(e,t,l)}return Qi(e,t,n,r,l)}function mc(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},B(sn,Ce),Ce|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,B(sn,Ce),Ce|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,B(sn,Ce),Ce|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,B(sn,Ce),Ce|=r;return he(e,t,l,n),t.child}function hc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Qi(e,t,n,r,l){var i=Se(n)?$t:pe.current;return i=vn(t,i),pn(t,l),n=Uo(e,t,n,r,i,l),r=Bo(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lt(e,t,l)):(Q&&r&&_o(t),t.flags|=1,he(e,t,n,l),t.child)}function ba(e,t,n,r,l){if(Se(n)){var i=!0;al(t)}else i=!1;if(pn(t,l),t.stateNode===null)Kr(e,t),cc(t,n,r),Hi(t,n,r,l),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Re(c):(c=Se(n)?$t:pe.current,c=vn(t,c));var m=n.getDerivedStateFromProps,v=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function";v||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||u!==c)&&Ka(t,a,r,c),st=!1;var f=t.memoizedState;a.state=f,fl(t,r,a,l),u=t.memoizedState,s!==r||f!==u||we.current||st?(typeof m=="function"&&(Vi(t,n,m,r),u=t.memoizedState),(s=st||Ga(t,n,s,r,f,u,c))?(v||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Hu(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Me(t.type,s),a.props=c,v=t.pendingProps,f=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=Re(u):(u=Se(n)?$t:pe.current,u=vn(t,u));var x=n.getDerivedStateFromProps;(m=typeof x=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==v||f!==u)&&Ka(t,a,r,u),st=!1,f=t.memoizedState,a.state=f,fl(t,r,a,l);var j=t.memoizedState;s!==v||f!==j||we.current||st?(typeof x=="function"&&(Vi(t,n,x,r),j=t.memoizedState),(c=st||Ga(t,n,c,r,f,j,u)||!1)?(m||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,j,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,j,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=j),a.props=r,a.state=j,a.context=u,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Gi(e,t,n,r,i,l)}function Gi(e,t,n,r,l,i){hc(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return l&&Fa(t,n,!1),lt(e,t,i);r=t.stateNode,ap.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=yn(t,e.child,null,i),t.child=yn(t,null,s,i)):he(e,t,s,i),t.memoizedState=r.state,l&&Fa(t,n,!0),t.child}function vc(e){var t=e.stateNode;t.pendingContext?Ma(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ma(e,t.context,!1),Io(e,t.containerInfo)}function es(e,t,n,r,l){return gn(),Lo(l),t.flags|=256,he(e,t,n,r),t.child}var Ki={dehydrated:null,treeContext:null,retryLane:0};function Xi(e){return{baseLanes:e,cachePool:null,transitions:null}}function gc(e,t,n){var r=t.pendingProps,l=G.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),B(G,l&1),e===null)return Ui(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):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Al(a,r,0,null),e=Mt(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Xi(n),t.memoizedState=Ki,e):Wo(t,a));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return sp(e,t,a,r,s,l,n);if(i){i=r.fallback,a=t.mode,l=e.child,s=l.sibling;var u={mode:"hidden",children:r.children};return!(a&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=wt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?i=wt(s,i):(i=Mt(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Xi(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Ki,r}return i=e.child,e=i.sibling,r=wt(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Wo(e,t){return t=Al({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Or(e,t,n,r){return r!==null&&Lo(r),yn(t,e.child,null,n),e=Wo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sp(e,t,n,r,l,i,a){if(n)return t.flags&256?(t.flags&=-257,r=ai(Error(N(422))),Or(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Al({mode:"visible",children:r.children},l,0,null),i=Mt(i,l,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&yn(t,e.child,null,a),t.child.memoizedState=Xi(a),t.memoizedState=Ki,i);if(!(t.mode&1))return Or(e,t,a,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(N(419)),r=ai(i,r,void 0),Or(e,t,a,r)}if(s=(a&e.childLanes)!==0,je||s){if(r=oe,r!==null){switch(a&-a){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|a)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,rt(e,l),Be(r,e,l,-1))}return qo(),r=ai(Error(N(421))),Or(e,t,a,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=wp.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,Ne=gt(l.nextSibling),Ee=t,Q=!0,$e=null,e!==null&&(Le[ze++]=Ze,Le[ze++]=be,Le[ze++]=Ut,Ze=e.id,be=e.overflow,Ut=t),t=Wo(t,r.children),t.flags|=4096,t)}function ts(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bi(e.return,t,n)}function si(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function yc(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(he(e,t,r.children,n),r=G.current,r&2)r=r&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&&ts(e,n,t);else if(e.tag===19)ts(e,n,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}r&=1}if(B(G,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&pl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),si(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&pl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}si(t,!0,n,null,i);break;case"together":si(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Kr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Vt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function up(e,t,n){switch(t.tag){case 3:vc(t),gn();break;case 5:Wu(t);break;case 1:Se(t.type)&&al(t);break;case 4:Io(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;B(cl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(B(G,G.current&1),t.flags|=128,null):n&t.child.childLanes?gc(e,t,n):(B(G,G.current&1),e=lt(e,t,n),e!==null?e.sibling:null);B(G,G.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return yc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),B(G,G.current),r)break;return null;case 22:case 23:return t.lanes=0,mc(e,t,n)}return lt(e,t,n)}var xc,Yi,jc,wc;xc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Yi=function(){};jc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Ot(Xe.current);var i=null;switch(n){case"input":l=gi(e,l),r=gi(e,r),i=[];break;case"select":l=X({},l,{value:void 0}),r=X({},r,{value:void 0}),i=[];break;case"textarea":l=ji(e,l),r=ji(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=il)}Si(n,r);var a;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var s=l[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Kn.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(s=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(u!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Kn.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&H("scroll",e),i||s===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};wc=function(e,t,n,r){n!==r&&(t.flags|=4)};function An(e,t){if(!Q)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function de(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function cp(e,t,n){var r=t.pendingProps;switch(To(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return de(t),null;case 1:return Se(t.type)&&ol(),de(t),null;case 3:return r=t.stateNode,xn(),W(we),W(pe),Fo(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Dr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$e!==null&&(ro($e),$e=null))),Yi(e,t),de(t),null;case 5:Mo(t);var l=Ot(ir.current);if(n=t.type,e!==null&&t.stateNode!=null)jc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return de(t),null}if(e=Ot(Xe.current),Dr(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ge]=t,r[rr]=i,e=(t.mode&1)!==0,n){case"dialog":H("cancel",r),H("close",r);break;case"iframe":case"object":case"embed":H("load",r);break;case"video":case"audio":for(l=0;l<Mn.length;l++)H(Mn[l],r);break;case"source":H("error",r);break;case"img":case"image":case"link":H("error",r),H("load",r);break;case"details":H("toggle",r);break;case"input":ca(r,i),H("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},H("invalid",r);break;case"textarea":fa(r,i),H("invalid",r)}Si(n,i),l=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Ar(r.textContent,s,e),l=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Ar(r.textContent,s,e),l=["children",""+s]):Kn.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&H("scroll",r)}switch(n){case"input":Cr(r),da(r,i,!0);break;case"textarea":Cr(r),pa(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=il)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ys(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ge]=t,e[rr]=r,xc(e,t,!1,!1),t.stateNode=e;e:{switch(a=ki(n,r),n){case"dialog":H("cancel",e),H("close",e),l=r;break;case"iframe":case"object":case"embed":H("load",e),l=r;break;case"video":case"audio":for(l=0;l<Mn.length;l++)H(Mn[l],e);l=r;break;case"source":H("error",e),l=r;break;case"img":case"image":case"link":H("error",e),H("load",e),l=r;break;case"details":H("toggle",e),l=r;break;case"input":ca(e,r),l=gi(e,r),H("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=X({},r,{value:void 0}),H("invalid",e);break;case"textarea":fa(e,r),l=ji(e,r),H("invalid",e);break;default:l=r}Si(n,l),s=l;for(i in s)if(s.hasOwnProperty(i)){var u=s[i];i==="style"?Zs(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&qs(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Xn(e,u):typeof u=="number"&&Xn(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Kn.hasOwnProperty(i)?u!=null&&i==="onScroll"&&H("scroll",e):u!=null&&mo(e,i,u,a))}switch(n){case"input":Cr(e),da(e,r,!1);break;case"textarea":Cr(e),pa(e);break;case"option":r.value!=null&&e.setAttribute("value",""+St(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?un(e,!!r.multiple,i,!1):r.defaultValue!=null&&un(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=il)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return de(t),null;case 6:if(e&&t.stateNode!=null)wc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=Ot(ir.current),Ot(Xe.current),Dr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ge]=t,(i=r.nodeValue!==n)&&(e=Ee,e!==null))switch(e.tag){case 3:Ar(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ar(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ge]=t,t.stateNode=r}return de(t),null;case 13:if(W(G),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Q&&Ne!==null&&t.mode&1&&!(t.flags&128))$u(),gn(),t.flags|=98560,i=!1;else if(i=Dr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(N(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(N(317));i[Ge]=t}else gn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;de(t),i=!1}else $e!==null&&(ro($e),$e=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||G.current&1?re===0&&(re=3):qo())),t.updateQueue!==null&&(t.flags|=4),de(t),null);case 4:return xn(),Yi(e,t),e===null&&tr(t.stateNode.containerInfo),de(t),null;case 10:return Do(t.type._context),de(t),null;case 17:return Se(t.type)&&ol(),de(t),null;case 19:if(W(G),i=t.memoizedState,i===null)return de(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)An(i,!1);else{if(re!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=pl(e),a!==null){for(t.flags|=128,An(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===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=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return B(G,G.current&1|2),t.child}e=e.sibling}i.tail!==null&&b()>wn&&(t.flags|=128,r=!0,An(i,!1),t.lanes=4194304)}else{if(!r)if(e=pl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),An(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Q)return de(t),null}else 2*b()-i.renderingStartTime>wn&&n!==1073741824&&(t.flags|=128,r=!0,An(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=b(),t.sibling=null,n=G.current,B(G,r?n&1|2:n&1),t):(de(t),null);case 22:case 23:return Yo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ce&1073741824&&(de(t),t.subtreeFlags&6&&(t.flags|=8192)):de(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function dp(e,t){switch(To(t),t.tag){case 1:return Se(t.type)&&ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xn(),W(we),W(pe),Fo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Mo(t),null;case 13:if(W(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(G),null;case 4:return xn(),null;case 10:return Do(t.type._context),null;case 22:case 23:return Yo(),null;case 24:return null;default:return null}}var Ir=!1,fe=!1,fp=typeof WeakSet=="function"?WeakSet:Set,z=null;function an(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(e,t,r)}else n.current=null}function qi(e,t,n){try{n()}catch(r){q(e,t,r)}}var ns=!1;function pp(e,t){if(Di=nl,e=Eu(),Po(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,u=-1,c=0,m=0,v=e,f=null;t:for(;;){for(var x;v!==n||l!==0&&v.nodeType!==3||(s=a+l),v!==i||r!==0&&v.nodeType!==3||(u=a+r),v.nodeType===3&&(a+=v.nodeValue.length),(x=v.firstChild)!==null;)f=v,v=x;for(;;){if(v===e)break t;if(f===n&&++c===l&&(s=a),f===i&&++m===r&&(u=a),(x=v.nextSibling)!==null)break;v=f,f=v.parentNode}v=x}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ri={focusedElem:e,selectionRange:n},nl=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var j=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(j!==null){var w=j.memoizedProps,C=j.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Me(t.type,w),C);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(k){q(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return j=ns,ns=!1,j}function Wn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&qi(t,n,i)}l=l.next}while(l!==r)}}function Ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ji(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Sc(e){var t=e.alternate;t!==null&&(e.alternate=null,Sc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ge],delete t[rr],delete t[Mi],delete t[Yf],delete t[qf])),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 kc(e){return e.tag===5||e.tag===3||e.tag===4}function rs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kc(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 Zi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=il));else if(r!==4&&(e=e.child,e!==null))for(Zi(e,t,n),e=e.sibling;e!==null;)Zi(e,t,n),e=e.sibling}function bi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bi(e,t,n),e=e.sibling;e!==null;)bi(e,t,n),e=e.sibling}var ae=null,Fe=!1;function ot(e,t,n){for(n=n.child;n!==null;)Cc(e,t,n),n=n.sibling}function Cc(e,t,n){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount(Sl,n)}catch{}switch(n.tag){case 5:fe||an(n,t);case 6:var r=ae,l=Fe;ae=null,ot(e,t,n),ae=r,Fe=l,ae!==null&&(Fe?(e=ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ae.removeChild(n.stateNode));break;case 18:ae!==null&&(Fe?(e=ae,n=n.stateNode,e.nodeType===8?ti(e.parentNode,n):e.nodeType===1&&ti(e,n),Zn(e)):ti(ae,n.stateNode));break;case 4:r=ae,l=Fe,ae=n.stateNode.containerInfo,Fe=!0,ot(e,t,n),ae=r,Fe=l;break;case 0:case 11:case 14:case 15:if(!fe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&qi(n,t,a),l=l.next}while(l!==r)}ot(e,t,n);break;case 1:if(!fe&&(an(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){q(n,t,s)}ot(e,t,n);break;case 21:ot(e,t,n);break;case 22:n.mode&1?(fe=(r=fe)||n.memoizedState!==null,ot(e,t,n),fe=r):ot(e,t,n);break;default:ot(e,t,n)}}function ls(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fp),t.forEach(function(r){var l=Sp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ie(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:ae=s.stateNode,Fe=!1;break e;case 3:ae=s.stateNode.containerInfo,Fe=!0;break e;case 4:ae=s.stateNode.containerInfo,Fe=!0;break e}s=s.return}if(ae===null)throw Error(N(160));Cc(i,a,l),ae=null,Fe=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(c){q(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Nc(t,e),t=t.sibling}function Nc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ie(t,e),We(e),r&4){try{Wn(3,e,e.return),Ll(3,e)}catch(w){q(e,e.return,w)}try{Wn(5,e,e.return)}catch(w){q(e,e.return,w)}}break;case 1:Ie(t,e),We(e),r&512&&n!==null&&an(n,n.return);break;case 5:if(Ie(t,e),We(e),r&512&&n!==null&&an(n,n.return),e.flags&32){var l=e.stateNode;try{Xn(l,"")}catch(w){q(e,e.return,w)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Ks(l,i),ki(s,a);var c=ki(s,i);for(a=0;a<u.length;a+=2){var m=u[a],v=u[a+1];m==="style"?Zs(l,v):m==="dangerouslySetInnerHTML"?qs(l,v):m==="children"?Xn(l,v):mo(l,m,v,c)}switch(s){case"input":yi(l,i);break;case"textarea":Xs(l,i);break;case"select":var f=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var x=i.value;x!=null?un(l,!!i.multiple,x,!1):f!==!!i.multiple&&(i.defaultValue!=null?un(l,!!i.multiple,i.defaultValue,!0):un(l,!!i.multiple,i.multiple?[]:"",!1))}l[rr]=i}catch(w){q(e,e.return,w)}}break;case 6:if(Ie(t,e),We(e),r&4){if(e.stateNode===null)throw Error(N(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(w){q(e,e.return,w)}}break;case 3:if(Ie(t,e),We(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Zn(t.containerInfo)}catch(w){q(e,e.return,w)}break;case 4:Ie(t,e),We(e);break;case 13:Ie(t,e),We(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(Ko=b())),r&4&&ls(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(fe=(c=fe)||m,Ie(t,e),fe=c):Ie(t,e),We(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!m&&e.mode&1)for(z=e,m=e.child;m!==null;){for(v=z=m;z!==null;){switch(f=z,x=f.child,f.tag){case 0:case 11:case 14:case 15:Wn(4,f,f.return);break;case 1:an(f,f.return);var j=f.stateNode;if(typeof j.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,j.props=t.memoizedProps,j.state=t.memoizedState,j.componentWillUnmount()}catch(w){q(r,n,w)}}break;case 5:an(f,f.return);break;case 22:if(f.memoizedState!==null){os(v);continue}}x!==null?(x.return=f,z=x):os(v)}m=m.sibling}e:for(m=null,v=e;;){if(v.tag===5){if(m===null){m=v;try{l=v.stateNode,c?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=v.stateNode,u=v.memoizedProps.style,a=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=Js("display",a))}catch(w){q(e,e.return,w)}}}else if(v.tag===6){if(m===null)try{v.stateNode.nodeValue=c?"":v.memoizedProps}catch(w){q(e,e.return,w)}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===e)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===e)break e;for(;v.sibling===null;){if(v.return===null||v.return===e)break e;m===v&&(m=null),v=v.return}m===v&&(m=null),v.sibling.return=v.return,v=v.sibling}}break;case 19:Ie(t,e),We(e),r&4&&ls(e);break;case 21:break;default:Ie(t,e),We(e)}}function We(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(kc(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Xn(l,""),r.flags&=-33);var i=rs(e);bi(e,i,l);break;case 3:case 4:var a=r.stateNode.containerInfo,s=rs(e);Zi(e,s,a);break;default:throw Error(N(161))}}catch(u){q(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function mp(e,t,n){z=e,Ec(e)}function Ec(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var l=z,i=l.child;if(l.tag===22&&r){var a=l.memoizedState!==null||Ir;if(!a){var s=l.alternate,u=s!==null&&s.memoizedState!==null||fe;s=Ir;var c=fe;if(Ir=a,(fe=u)&&!c)for(z=l;z!==null;)a=z,u=a.child,a.tag===22&&a.memoizedState!==null?as(l):u!==null?(u.return=a,z=u):as(l);for(;i!==null;)z=i,Ec(i),i=i.sibling;z=l,Ir=s,fe=c}is(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,z=i):is(e)}}function is(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:fe||Ll(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!fe)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Me(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ha(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ha(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var m=c.memoizedState;if(m!==null){var v=m.dehydrated;v!==null&&Zn(v)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}fe||t.flags&512&&Ji(t)}catch(f){q(t,t.return,f)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function os(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function as(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ll(4,t)}catch(u){q(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){q(t,l,u)}}var i=t.return;try{Ji(t)}catch(u){q(t,i,u)}break;case 5:var a=t.return;try{Ji(t)}catch(u){q(t,a,u)}}}catch(u){q(t,t.return,u)}if(t===e){z=null;break}var s=t.sibling;if(s!==null){s.return=t.return,z=s;break}z=t.return}}var hp=Math.ceil,vl=it.ReactCurrentDispatcher,Qo=it.ReactCurrentOwner,De=it.ReactCurrentBatchConfig,F=0,oe=null,ee=null,se=0,Ce=0,sn=Nt(0),re=0,ur=null,Vt=0,zl=0,Go=0,Qn=null,xe=null,Ko=0,wn=1/0,qe=null,gl=!1,eo=null,xt=null,Mr=!1,ft=null,yl=0,Gn=0,to=null,Xr=-1,Yr=0;function ve(){return F&6?b():Xr!==-1?Xr:Xr=b()}function jt(e){return e.mode&1?F&2&&se!==0?se&-se:Zf.transition!==null?(Yr===0&&(Yr=cu()),Yr):(e=U,e!==0||(e=window.event,e=e===void 0?16:gu(e.type)),e):1}function Be(e,t,n,r){if(50<Gn)throw Gn=0,to=null,Error(N(185));pr(e,n,r),(!(F&2)||e!==oe)&&(e===oe&&(!(F&2)&&(zl|=n),re===4&&ct(e,se)),ke(e,r),n===1&&F===0&&!(t.mode&1)&&(wn=b()+500,Pl&&Et()))}function ke(e,t){var n=e.callbackNode;Jd(e,t);var r=tl(e,e===oe?se:0);if(r===0)n!==null&&va(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&va(n),t===1)e.tag===0?Jf(ss.bind(null,e)):Iu(ss.bind(null,e)),Kf(function(){!(F&6)&&Et()}),n=null;else{switch(du(r)){case 1:n=xo;break;case 4:n=su;break;case 16:n=el;break;case 536870912:n=uu;break;default:n=el}n=Rc(n,Pc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Pc(e,t){if(Xr=-1,Yr=0,F&6)throw Error(N(327));var n=e.callbackNode;if(mn()&&e.callbackNode!==n)return null;var r=tl(e,e===oe?se:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=xl(e,r);else{t=r;var l=F;F|=2;var i=Tc();(oe!==e||se!==t)&&(qe=null,wn=b()+500,It(e,t));do try{yp();break}catch(s){_c(e,s)}while(!0);Ao(),vl.current=i,F=l,ee!==null?t=0:(oe=null,se=0,t=re)}if(t!==0){if(t===2&&(l=_i(e),l!==0&&(r=l,t=no(e,l))),t===1)throw n=ur,It(e,0),ct(e,r),ke(e,b()),n;if(t===6)ct(e,r);else{if(l=e.current.alternate,!(r&30)&&!vp(l)&&(t=xl(e,r),t===2&&(i=_i(e),i!==0&&(r=i,t=no(e,i))),t===1))throw n=ur,It(e,0),ct(e,r),ke(e,b()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:At(e,xe,qe);break;case 3:if(ct(e,r),(r&130023424)===r&&(t=Ko+500-b(),10<t)){if(tl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ve(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Ii(At.bind(null,e,xe,qe),t);break}At(e,xe,qe);break;case 4:if(ct(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var a=31-Ue(r);i=1<<a,a=t[a],a>l&&(l=a),r&=~i}if(r=l,r=b()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hp(r/1960))-r,10<r){e.timeoutHandle=Ii(At.bind(null,e,xe,qe),r);break}At(e,xe,qe);break;case 5:At(e,xe,qe);break;default:throw Error(N(329))}}}return ke(e,b()),e.callbackNode===n?Pc.bind(null,e):null}function no(e,t){var n=Qn;return e.current.memoizedState.isDehydrated&&(It(e,t).flags|=256),e=xl(e,t),e!==2&&(t=xe,xe=n,t!==null&&ro(t)),e}function ro(e){xe===null?xe=e:xe.push.apply(xe,e)}function vp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],i=l.getSnapshot;l=l.value;try{if(!Ve(i(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 ct(e,t){for(t&=~Go,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ue(t),r=1<<n;e[n]=-1,t&=~r}}function ss(e){if(F&6)throw Error(N(327));mn();var t=tl(e,0);if(!(t&1))return ke(e,b()),null;var n=xl(e,t);if(e.tag!==0&&n===2){var r=_i(e);r!==0&&(t=r,n=no(e,r))}if(n===1)throw n=ur,It(e,0),ct(e,t),ke(e,b()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,At(e,xe,qe),ke(e,b()),null}function Xo(e,t){var n=F;F|=1;try{return e(t)}finally{F=n,F===0&&(wn=b()+500,Pl&&Et())}}function Ht(e){ft!==null&&ft.tag===0&&!(F&6)&&mn();var t=F;F|=1;var n=De.transition,r=U;try{if(De.transition=null,U=1,e)return e()}finally{U=r,De.transition=n,F=t,!(F&6)&&Et()}}function Yo(){Ce=sn.current,W(sn)}function It(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Gf(n)),ee!==null)for(n=ee.return;n!==null;){var r=n;switch(To(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ol();break;case 3:xn(),W(we),W(pe),Fo();break;case 5:Mo(r);break;case 4:xn();break;case 13:W(G);break;case 19:W(G);break;case 10:Do(r.type._context);break;case 22:case 23:Yo()}n=n.return}if(oe=e,ee=e=wt(e.current,null),se=Ce=t,re=0,ur=null,Go=zl=Vt=0,xe=Qn=null,Rt!==null){for(t=0;t<Rt.length;t++)if(n=Rt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=l,r.next=a}n.pending=r}Rt=null}return e}function _c(e,t){do{var n=ee;try{if(Ao(),Qr.current=hl,ml){for(var r=K.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}ml=!1}if(Bt=0,ie=ne=K=null,Hn=!1,or=0,Qo.current=null,n===null||n.return===null){re=1,ur=t,ee=null;break}e:{var i=e,a=n.return,s=n,u=t;if(t=se,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,m=s,v=m.tag;if(!(m.mode&1)&&(v===0||v===11||v===15)){var f=m.alternate;f?(m.updateQueue=f.updateQueue,m.memoizedState=f.memoizedState,m.lanes=f.lanes):(m.updateQueue=null,m.memoizedState=null)}var x=Ya(a);if(x!==null){x.flags&=-257,qa(x,a,s,i,t),x.mode&1&&Xa(i,c,t),t=x,u=c;var j=t.updateQueue;if(j===null){var w=new Set;w.add(u),t.updateQueue=w}else j.add(u);break e}else{if(!(t&1)){Xa(i,c,t),qo();break e}u=Error(N(426))}}else if(Q&&s.mode&1){var C=Ya(a);if(C!==null){!(C.flags&65536)&&(C.flags|=256),qa(C,a,s,i,t),Lo(jn(u,s));break e}}i=u=jn(u,s),re!==4&&(re=2),Qn===null?Qn=[i]:Qn.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=dc(i,u,t);Va(i,p);break e;case 1:s=u;var d=i.type,h=i.stateNode;if(!(i.flags&128)&&(typeof d.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(xt===null||!xt.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=fc(i,s,t);Va(i,k);break e}}i=i.return}while(i!==null)}zc(n)}catch(E){t=E,ee===n&&n!==null&&(ee=n=n.return);continue}break}while(!0)}function Tc(){var e=vl.current;return vl.current=hl,e===null?hl:e}function qo(){(re===0||re===3||re===2)&&(re=4),oe===null||!(Vt&268435455)&&!(zl&268435455)||ct(oe,se)}function xl(e,t){var n=F;F|=2;var r=Tc();(oe!==e||se!==t)&&(qe=null,It(e,t));do try{gp();break}catch(l){_c(e,l)}while(!0);if(Ao(),F=n,vl.current=r,ee!==null)throw Error(N(261));return oe=null,se=0,re}function gp(){for(;ee!==null;)Lc(ee)}function yp(){for(;ee!==null&&!Vd();)Lc(ee)}function Lc(e){var t=Dc(e.alternate,e,Ce);e.memoizedProps=e.pendingProps,t===null?zc(e):ee=t,Qo.current=null}function zc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=dp(n,t),n!==null){n.flags&=32767,ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{re=6,ee=null;return}}else if(n=cp(n,t,Ce),n!==null){ee=n;return}if(t=t.sibling,t!==null){ee=t;return}ee=t=e}while(t!==null);re===0&&(re=5)}function At(e,t,n){var r=U,l=De.transition;try{De.transition=null,U=1,xp(e,t,n,r)}finally{De.transition=l,U=r}return null}function xp(e,t,n,r){do mn();while(ft!==null);if(F&6)throw Error(N(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Zd(e,i),e===oe&&(ee=oe=null,se=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Mr||(Mr=!0,Rc(el,function(){return mn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=De.transition,De.transition=null;var a=U;U=1;var s=F;F|=4,Qo.current=null,pp(e,n),Nc(n,e),$f(Ri),nl=!!Di,Ri=Di=null,e.current=n,mp(n),Hd(),F=s,U=a,De.transition=i}else e.current=n;if(Mr&&(Mr=!1,ft=e,yl=l),i=e.pendingLanes,i===0&&(xt=null),Gd(n.stateNode),ke(e,b()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(gl)throw gl=!1,e=eo,eo=null,e;return yl&1&&e.tag!==0&&mn(),i=e.pendingLanes,i&1?e===to?Gn++:(Gn=0,to=e):Gn=0,Et(),null}function mn(){if(ft!==null){var e=du(yl),t=De.transition,n=U;try{if(De.transition=null,U=16>e?16:e,ft===null)var r=!1;else{if(e=ft,ft=null,yl=0,F&6)throw Error(N(331));var l=F;for(F|=4,z=e.current;z!==null;){var i=z,a=i.child;if(z.flags&16){var s=i.deletions;if(s!==null){for(var u=0;u<s.length;u++){var c=s[u];for(z=c;z!==null;){var m=z;switch(m.tag){case 0:case 11:case 15:Wn(8,m,i)}var v=m.child;if(v!==null)v.return=m,z=v;else for(;z!==null;){m=z;var f=m.sibling,x=m.return;if(Sc(m),m===c){z=null;break}if(f!==null){f.return=x,z=f;break}z=x}}}var j=i.alternate;if(j!==null){var w=j.child;if(w!==null){j.child=null;do{var C=w.sibling;w.sibling=null,w=C}while(w!==null)}}z=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,z=a;else e:for(;z!==null;){if(i=z,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Wn(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,z=p;break e}z=i.return}}var d=e.current;for(z=d;z!==null;){a=z;var h=a.child;if(a.subtreeFlags&2064&&h!==null)h.return=a,z=h;else e:for(a=d;z!==null;){if(s=z,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Ll(9,s)}}catch(E){q(s,s.return,E)}if(s===a){z=null;break e}var k=s.sibling;if(k!==null){k.return=s.return,z=k;break e}z=s.return}}if(F=l,Et(),Ke&&typeof Ke.onPostCommitFiberRoot=="function")try{Ke.onPostCommitFiberRoot(Sl,e)}catch{}r=!0}return r}finally{U=n,De.transition=t}}return!1}function us(e,t,n){t=jn(n,t),t=dc(e,t,1),e=yt(e,t,1),t=ve(),e!==null&&(pr(e,1,t),ke(e,t))}function q(e,t,n){if(e.tag===3)us(e,e,n);else for(;t!==null;){if(t.tag===3){us(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(xt===null||!xt.has(r))){e=jn(n,e),e=fc(t,e,1),t=yt(t,e,1),e=ve(),t!==null&&(pr(t,1,e),ke(t,e));break}}t=t.return}}function jp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ve(),e.pingedLanes|=e.suspendedLanes&n,oe===e&&(se&n)===n&&(re===4||re===3&&(se&130023424)===se&&500>b()-Ko?It(e,0):Go|=n),ke(e,t)}function Ac(e,t){t===0&&(e.mode&1?(t=Pr,Pr<<=1,!(Pr&130023424)&&(Pr=4194304)):t=1);var n=ve();e=rt(e,t),e!==null&&(pr(e,t,n),ke(e,n))}function wp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ac(e,n)}function Sp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),Ac(e,n)}var Dc;Dc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||we.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,up(e,t,n);je=!!(e.flags&131072)}else je=!1,Q&&t.flags&1048576&&Mu(t,ul,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Kr(e,t),e=t.pendingProps;var l=vn(t,pe.current);pn(t,n),l=Uo(null,t,r,e,l,n);var i=Bo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Se(r)?(i=!0,al(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Oo(t),l.updater=Tl,t.stateNode=l,l._reactInternals=t,Hi(t,r,e,n),t=Gi(null,t,r,!0,i,n)):(t.tag=0,Q&&i&&_o(t),he(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Kr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Cp(r),e=Me(r,e),l){case 0:t=Qi(null,t,r,e,n);break e;case 1:t=ba(null,t,r,e,n);break e;case 11:t=Ja(null,t,r,e,n);break e;case 14:t=Za(null,t,r,Me(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),Qi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),ba(e,t,r,l,n);case 3:e:{if(vc(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Hu(e,t),fl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=jn(Error(N(423)),t),t=es(e,t,r,n,l);break e}else if(r!==l){l=jn(Error(N(424)),t),t=es(e,t,r,n,l);break e}else for(Ne=gt(t.stateNode.containerInfo.firstChild),Ee=t,Q=!0,$e=null,n=Bu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(gn(),r===l){t=lt(e,t,n);break e}he(e,t,r,n)}t=t.child}return t;case 5:return Wu(t),e===null&&Ui(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,a=l.children,Oi(r,l)?a=null:i!==null&&Oi(r,i)&&(t.flags|=32),hc(e,t),he(e,t,a,n),t.child;case 6:return e===null&&Ui(t),null;case 13:return gc(e,t,n);case 4:return Io(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=yn(t,null,r,n):he(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),Ja(e,t,r,l,n);case 7:return he(e,t,t.pendingProps,n),t.child;case 8:return he(e,t,t.pendingProps.children,n),t.child;case 12:return he(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,a=l.value,B(cl,r._currentValue),r._currentValue=a,i!==null)if(Ve(i.value,a)){if(i.children===l.children&&!we.current){t=lt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=et(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var m=c.pending;m===null?u.next=u:(u.next=m.next,m.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Bi(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(N(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Bi(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}he(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,pn(t,n),l=Re(l),r=r(l),t.flags|=1,he(e,t,r,n),t.child;case 14:return r=t.type,l=Me(r,t.pendingProps),l=Me(r.type,l),Za(e,t,r,l,n);case 15:return pc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),Kr(e,t),t.tag=1,Se(r)?(e=!0,al(t)):e=!1,pn(t,n),cc(t,r,l),Hi(t,r,l,n),Gi(null,t,r,!0,e,n);case 19:return yc(e,t,n);case 22:return mc(e,t,n)}throw Error(N(156,t.tag))};function Rc(e,t){return au(e,t)}function kp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ae(e,t,n,r){return new kp(e,t,n,r)}function Jo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cp(e){if(typeof e=="function")return Jo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vo)return 11;if(e===go)return 14}return 2}function wt(e,t){var n=e.alternate;return n===null?(n=Ae(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qr(e,t,n,r,l,i){var a=2;if(r=e,typeof e=="function")Jo(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Jt:return Mt(n.children,l,i,t);case ho:a=8,l|=8;break;case pi:return e=Ae(12,n,t,l|2),e.elementType=pi,e.lanes=i,e;case mi:return e=Ae(13,n,t,l),e.elementType=mi,e.lanes=i,e;case hi:return e=Ae(19,n,t,l),e.elementType=hi,e.lanes=i,e;case Ws:return Al(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vs:a=10;break e;case Hs:a=9;break e;case vo:a=11;break e;case go:a=14;break e;case at:a=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Ae(a,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Mt(e,t,n,r){return e=Ae(7,e,r,t),e.lanes=n,e}function Al(e,t,n,r){return e=Ae(22,e,r,t),e.elementType=Ws,e.lanes=n,e.stateNode={isHidden:!1},e}function ui(e,t,n){return e=Ae(6,e,null,t),e.lanes=n,e}function ci(e,t,n){return t=Ae(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Np(e,t,n,r,l){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=Wl(0),this.expirationTimes=Wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Zo(e,t,n,r,l,i,a,s,u){return e=new Np(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ae(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(i),e}function Ep(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:qt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Oc(e){if(!e)return kt;e=e._reactInternals;e:{if(Qt(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Se(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(Se(n))return Ou(e,n,t)}return t}function Ic(e,t,n,r,l,i,a,s,u){return e=Zo(n,r,!0,e,l,i,a,s,u),e.context=Oc(null),n=e.current,r=ve(),l=jt(n),i=et(r,l),i.callback=t??null,yt(n,i,l),e.current.lanes=l,pr(e,l,r),ke(e,r),e}function Dl(e,t,n,r){var l=t.current,i=ve(),a=jt(l);return n=Oc(n),t.context===null?t.context=n:t.pendingContext=n,t=et(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=yt(l,t,a),e!==null&&(Be(e,l,a,i),Wr(e,l,a)),a}function jl(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 cs(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bo(e,t){cs(e,t),(e=e.alternate)&&cs(e,t)}function Pp(){return null}var Mc=typeof reportError=="function"?reportError:function(e){console.error(e)};function ea(e){this._internalRoot=e}Rl.prototype.render=ea.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Dl(e,t,null,null)};Rl.prototype.unmount=ea.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ht(function(){Dl(null,e,null,null)}),t[nt]=null}};function Rl(e){this._internalRoot=e}Rl.prototype.unstable_scheduleHydration=function(e){if(e){var t=mu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ut.length&&t!==0&&t<ut[n].priority;n++);ut.splice(n,0,e),n===0&&vu(e)}};function ta(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ol(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ds(){}function _p(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var c=jl(a);i.call(c)}}var a=Ic(t,r,e,0,null,!1,!1,"",ds);return e._reactRootContainer=a,e[nt]=a.current,tr(e.nodeType===8?e.parentNode:e),Ht(),a}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var s=r;r=function(){var c=jl(u);s.call(c)}}var u=Zo(e,0,!1,null,null,!1,!1,"",ds);return e._reactRootContainer=u,e[nt]=u.current,tr(e.nodeType===8?e.parentNode:e),Ht(function(){Dl(t,u,n,r)}),u}function Il(e,t,n,r,l){var i=n._reactRootContainer;if(i){var a=i;if(typeof l=="function"){var s=l;l=function(){var u=jl(a);s.call(u)}}Dl(t,a,e,l)}else a=_p(n,t,e,l,r);return jl(a)}fu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=In(t.pendingLanes);n!==0&&(jo(t,n|1),ke(t,b()),!(F&6)&&(wn=b()+500,Et()))}break;case 13:Ht(function(){var r=rt(e,1);if(r!==null){var l=ve();Be(r,e,1,l)}}),bo(e,1)}};wo=function(e){if(e.tag===13){var t=rt(e,134217728);if(t!==null){var n=ve();Be(t,e,134217728,n)}bo(e,134217728)}};pu=function(e){if(e.tag===13){var t=jt(e),n=rt(e,t);if(n!==null){var r=ve();Be(n,e,t,r)}bo(e,t)}};mu=function(){return U};hu=function(e,t){var n=U;try{return U=e,t()}finally{U=n}};Ni=function(e,t,n){switch(t){case"input":if(yi(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=El(r);if(!l)throw Error(N(90));Gs(r),yi(r,l)}}}break;case"textarea":Xs(e,n);break;case"select":t=n.value,t!=null&&un(e,!!n.multiple,t,!1)}};tu=Xo;nu=Ht;var Tp={usingClientEntryPoint:!1,Events:[hr,tn,El,bs,eu,Xo]},Dn={findFiberByHostInstance:Dt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Lp={bundleType:Dn.bundleType,version:Dn.version,rendererPackageName:Dn.rendererPackageName,rendererConfig:Dn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:it.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=iu(e),e===null?null:e.stateNode},findFiberByHostInstance:Dn.findFiberByHostInstance||Pp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fr.isDisabled&&Fr.supportsFiber)try{Sl=Fr.inject(Lp),Ke=Fr}catch{}}_e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tp;_e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ta(t))throw Error(N(200));return Ep(e,t,null,n)};_e.createRoot=function(e,t){if(!ta(e))throw Error(N(299));var n=!1,r="",l=Mc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Zo(e,1,!1,null,null,n,!1,r,l),e[nt]=t.current,tr(e.nodeType===8?e.parentNode:e),new ea(t)};_e.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(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=iu(t),e=e===null?null:e.stateNode,e};_e.flushSync=function(e){return Ht(e)};_e.hydrate=function(e,t,n){if(!Ol(t))throw Error(N(200));return Il(null,e,t,!0,n)};_e.hydrateRoot=function(e,t,n){if(!ta(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",a=Mc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Ic(t,null,e,1,n??null,l,!1,i,a),e[nt]=t.current,tr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Rl(t)};_e.render=function(e,t,n){if(!Ol(t))throw Error(N(200));return Il(null,e,t,!1,n)};_e.unmountComponentAtNode=function(e){if(!Ol(e))throw Error(N(40));return e._reactRootContainer?(Ht(function(){Il(null,null,e,!1,function(){e._reactRootContainer=null,e[nt]=null})}),!0):!1};_e.unstable_batchedUpdates=Xo;_e.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ol(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return Il(e,t,n,!1,r)};_e.version="18.3.1-next-f1338f8080-20240426";function Fc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fc)}catch(e){console.error(e)}}Fc(),Fs.exports=_e;var zp=Fs.exports,$c,fs=zp;$c=fs.createRoot,fs.hydrateRoot;/**
|
|
41
|
+
* @remix-run/router v1.23.4
|
|
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 cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cr.apply(null,arguments)}var pt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(pt||(pt={}));const ps="popstate";function Ap(e){e===void 0&&(e={});function t(r,l){let{pathname:i,search:a,hash:s}=r.location;return lo("",{pathname:i,search:a,hash:s},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(r,l){return typeof l=="string"?l:Bc(l)}return Rp(t,n,null,e)}function te(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Uc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Dp(){return Math.random().toString(36).substr(2,8)}function ms(e,t){return{usr:e.state,key:e.key,idx:t}}function lo(e,t,n,r){return n===void 0&&(n=null),cr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Nn(t):t,{state:n,key:t&&t.key||r||Dp()})}function Bc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Nn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Rp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,a=l.history,s=pt.Pop,u=null,c=m();c==null&&(c=0,a.replaceState(cr({},a.state,{idx:c}),""));function m(){return(a.state||{idx:null}).idx}function v(){s=pt.Pop;let C=m(),p=C==null?null:C-c;c=C,u&&u({action:s,location:w.location,delta:p})}function f(C,p){s=pt.Push;let d=lo(w.location,C,p);c=m()+1;let h=ms(d,c),k=w.createHref(d);try{a.pushState(h,"",k)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;l.location.assign(k)}i&&u&&u({action:s,location:w.location,delta:1})}function x(C,p){s=pt.Replace;let d=lo(w.location,C,p);c=m();let h=ms(d,c),k=w.createHref(d);a.replaceState(h,"",k),i&&u&&u({action:s,location:w.location,delta:0})}function j(C){let p=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof C=="string"?C:Bc(C);return d=d.replace(/ $/,"%20"),te(p,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,p)}let w={get action(){return s},get location(){return e(l,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(ps,v),u=C,()=>{l.removeEventListener(ps,v),u=null}},createHref(C){return t(l,C)},createURL:j,encodeLocation(C){let p=j(C);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:x,go(C){return a.go(C)}};return w}var hs;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(hs||(hs={}));function Op(e,t,n){return n===void 0&&(n="/"),Ip(e,t,n)}function Ip(e,t,n,r){let l=typeof t=="string"?Nn(t):t,i=Wc(l.pathname||"/",n);if(i==null)return null;let a=Vc(e);Mp(a);let s=null,u=Yp(i);for(let c=0;s==null&&c<a.length;++c)s=Gp(a[c],u);return s}function Vc(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let l=(i,a,s)=>{let u={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(te(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=Ft([r,u.relativePath]),m=n.concat(u);i.children&&i.children.length>0&&(te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Vc(i.children,t,m,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Wp(c,i.index),routesMeta:m})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))l(i,a);else for(let u of Hc(i.path))l(i,a,u)}),t}function Hc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let a=Hc(r.join("/")),s=[];return s.push(...a.map(u=>u===""?i:[i,u].join("/"))),l&&s.push(...a),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Mp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Qp(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Fp=/^:[\w-]+$/,$p=3,Up=2,Bp=1,Vp=10,Hp=-2,vs=e=>e==="*";function Wp(e,t){let n=e.split("/"),r=n.length;return n.some(vs)&&(r+=Hp),t&&(r+=Up),n.filter(l=>!vs(l)).reduce((l,i)=>l+(Fp.test(i)?$p:i===""?Bp:Vp),r)}function Qp(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Gp(e,t,n){let{routesMeta:r}=e,l={},i="/",a=[];for(let s=0;s<r.length;++s){let u=r[s],c=s===r.length-1,m=i==="/"?t:t.slice(i.length)||"/",v=Kp({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},m),f=u.route;if(!v)return null;Object.assign(l,v.params),a.push({params:l,pathname:Ft([i,v.pathname]),pathnameBase:Zp(Ft([i,v.pathnameBase])),route:f}),v.pathnameBase!=="/"&&(i=Ft([i,v.pathnameBase]))}return a}function Kp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Xp(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let i=l[0],a=i.replace(/(.)\/+$/,"$1"),s=l.slice(1);return{params:r.reduce((c,m,v)=>{let{paramName:f,isOptional:x}=m;if(f==="*"){let w=s[v]||"";a=i.slice(0,i.length-w.length).replace(/(.)\/+$/,"$1")}const j=s[v];return x&&!j?c[f]=void 0:c[f]=(j||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function Xp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Uc(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 r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Yp(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Uc(!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 Wc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function qp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Nn(e):e,i;return n?(n=Kc(n),n.startsWith("/")?i=gs(n.substring(1),"/"):i=gs(n,t)):i=t,{pathname:i,search:bp(r),hash:em(l)}}function gs(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function di(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Jp(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Qc(e,t){let n=Jp(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Gc(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Nn(e):(l=cr({},e),te(!l.pathname||!l.pathname.includes("?"),di("?","pathname","search",l)),te(!l.pathname||!l.pathname.includes("#"),di("#","pathname","hash",l)),te(!l.search||!l.search.includes("#"),di("#","search","hash",l)));let i=e===""||l.pathname==="",a=i?"/":l.pathname,s;if(a==null)s=n;else{let v=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),v-=1;l.pathname=f.join("/")}s=v>=0?t[v]:"/"}let u=qp(l,s),c=a&&a!=="/"&&a.endsWith("/"),m=(i||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||m)&&(u.pathname+="/"),u}const Kc=e=>e.replace(/\/\/+/g,"/"),Ft=e=>Kc(e.join("/")),Zp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,em=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Xc=["post","put","patch","delete"];new Set(Xc);const nm=["get",...Xc];new Set(nm);/**
|
|
50
|
+
* React Router v6.30.6
|
|
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 dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dr.apply(null,arguments)}const na=y.createContext(null),rm=y.createContext(null),gr=y.createContext(null),Ml=y.createContext(null),Gt=y.createContext({outlet:null,matches:[],isDataRoute:!1}),Yc=y.createContext(null);function yr(){return y.useContext(Ml)!=null}function xr(){return yr()||te(!1),y.useContext(Ml).location}function qc(e){y.useContext(gr).static||y.useLayoutEffect(e)}function Pt(){let{isDataRoute:e}=y.useContext(Gt);return e?vm():lm()}function lm(){yr()||te(!1);let e=y.useContext(na),{basename:t,future:n,navigator:r}=y.useContext(gr),{matches:l}=y.useContext(Gt),{pathname:i}=xr(),a=JSON.stringify(Qc(l,n.v7_relativeSplatPath)),s=y.useRef(!1);return qc(()=>{s.current=!0}),y.useCallback(function(c,m){if(m===void 0&&(m={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let v=Gc(c,JSON.parse(a),i,m.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:Ft([t,v.pathname])),(m.replace?r.replace:r.push)(v,m.state,m)},[t,r,a,i,e])}function im(e,t){return om(e,t)}function om(e,t,n,r){yr()||te(!1);let{navigator:l}=y.useContext(gr),{matches:i}=y.useContext(Gt),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=xr(),m;if(t){var v;let C=typeof t=="string"?Nn(t):t;u==="/"||(v=C.pathname)!=null&&v.startsWith(u)||te(!1),m=C}else m=c;let f=m.pathname||"/",x=f;if(u!=="/"){let C=u.replace(/^\//,"").split("/");x="/"+f.replace(/^\//,"").split("/").slice(C.length).join("/")}let j=Op(e,{pathname:x}),w=dm(j&&j.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:Ft([u,l.encodeLocation?l.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Ft([u,l.encodeLocation?l.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&w?y.createElement(Ml.Provider,{value:{location:dr({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:pt.Pop}},w):w}function am(){let e=hm(),t=tm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:l},n):null,null)}const sm=y.createElement(am,null);class um extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(Gt.Provider,{value:this.props.routeContext},y.createElement(Yc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cm(e){let{routeContext:t,match:n,children:r}=e,l=y.useContext(na);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Gt.Provider,{value:t},r)}function dm(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(l=n)==null?void 0:l.errors;if(s!=null){let m=a.findIndex(v=>v.route.id&&(s==null?void 0:s[v.route.id])!==void 0);m>=0||te(!1),a=a.slice(0,Math.min(a.length,m+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let m=0;m<a.length;m++){let v=a[m];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(c=m),v.route.id){let{loaderData:f,errors:x}=n,j=v.route.loader&&f[v.route.id]===void 0&&(!x||x[v.route.id]===void 0);if(v.route.lazy||j){u=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((m,v,f)=>{let x,j=!1,w=null,C=null;n&&(x=s&&v.route.id?s[v.route.id]:void 0,w=v.route.errorElement||sm,u&&(c<0&&f===0?(gm("route-fallback"),j=!0,C=null):c===f&&(j=!0,C=v.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,f+1)),d=()=>{let h;return x?h=w:j?h=C:v.route.Component?h=y.createElement(v.route.Component,null):v.route.element?h=v.route.element:h=m,y.createElement(cm,{match:v,routeContext:{outlet:m,matches:p,isDataRoute:n!=null},children:h})};return n&&(v.route.ErrorBoundary||v.route.errorElement||f===0)?y.createElement(um,{location:n.location,revalidation:n.revalidation,component:w,error:x,children:d(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):d()},null)}var Jc=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Jc||{}),Zc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Zc||{});function fm(e){let t=y.useContext(na);return t||te(!1),t}function pm(e){let t=y.useContext(rm);return t||te(!1),t}function mm(e){let t=y.useContext(Gt);return t||te(!1),t}function bc(e){let t=mm(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function hm(){var e;let t=y.useContext(Yc),n=pm(),r=bc();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vm(){let{router:e}=fm(Jc.UseNavigateStable),t=bc(Zc.UseNavigateStable),n=y.useRef(!1);return qc(()=>{n.current=!0}),y.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,dr({fromRouteId:t},i)))},[e,t])}const ys={};function gm(e,t,n){ys[e]||(ys[e]=!0)}function ym(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function xs(e){let{to:t,replace:n,state:r,relative:l}=e;yr()||te(!1);let{future:i,static:a}=y.useContext(gr),{matches:s}=y.useContext(Gt),{pathname:u}=xr(),c=Pt(),m=Gc(t,Qc(s,i.v7_relativeSplatPath),u,l==="path"),v=JSON.stringify(m);return y.useEffect(()=>c(JSON.parse(v),{replace:n,state:r,relative:l}),[c,v,l,n,r]),null}function Z(e){te(!1)}function xm(e){let{basename:t="/",children:n=null,location:r,navigationType:l=pt.Pop,navigator:i,static:a=!1,future:s}=e;yr()&&te(!1);let u=t.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:u,navigator:i,static:a,future:dr({v7_relativeSplatPath:!1},s)}),[u,s,i,a]);typeof r=="string"&&(r=Nn(r));let{pathname:m="/",search:v="",hash:f="",state:x=null,key:j="default"}=r,w=y.useMemo(()=>{let C=Wc(m,u);return C==null?null:{location:{pathname:C,search:v,hash:f,state:x,key:j},navigationType:l}},[u,m,v,f,x,j,l]);return w==null?null:y.createElement(gr.Provider,{value:c},y.createElement(Ml.Provider,{children:n,value:w}))}function jm(e){let{children:t,location:n}=e;return im(io(t),n)}new Promise(()=>{});function io(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,l)=>{if(!y.isValidElement(r))return;let i=[...t,l];if(r.type===y.Fragment){n.push.apply(n,io(r.props.children,i));return}r.type!==Z&&te(!1),!r.props.index||!r.props.children||te(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=io(r.props.children,i)),n.push(a)}),n}/**
|
|
59
|
+
* React Router DOM v6.30.6
|
|
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
|
+
*/const wm="6";try{window.__reactRouterVersion=wm}catch{}const Sm="startTransition",js=xd[Sm];function km(e){let{basename:t,children:n,future:r,window:l}=e,i=y.useRef();i.current==null&&(i.current=Ap({window:l,v5Compat:!0}));let a=i.current,[s,u]=y.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},m=y.useCallback(v=>{c&&js?js(()=>u(v)):u(v)},[u,c]);return y.useLayoutEffect(()=>a.listen(m),[a,m]),y.useEffect(()=>ym(r),[r]),y.createElement(xm,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}var ws;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ws||(ws={}));var Ss;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ss||(Ss={}));async function $(e,t={}){const n=await fetch(e,{credentials:"include",headers:{"Content-Type":"application/json",...t.headers||{}},...t});if(!n.ok){let r=`${n.status} ${n.statusText}`;try{r=(await n.json()).detail||r}catch{}throw new Error(typeof r=="string"?r:JSON.stringify(r))}return n.json()}const M={health:()=>$("/api/health"),version:()=>$("/api/version"),session:()=>$("/api/auth/session"),login:(e,t)=>$("/api/auth/login",{method:"POST",body:JSON.stringify({email:e,activation_code:t})}),logout:()=>$("/api/auth/logout",{method:"POST"}),settings:()=>$("/api/settings"),saveSettings:e=>$("/api/settings",{method:"PUT",body:JSON.stringify(e)}),produtos:()=>$("/api/produtos"),createProduto:e=>$("/api/produtos",{method:"POST",body:JSON.stringify(e)}),updateProduto:(e,t)=>$(`/api/produtos/${e}`,{method:"PUT",body:JSON.stringify(t)}),deleteProduto:e=>$(`/api/produtos/${e}`,{method:"DELETE"}),aprovarProduto:e=>$(`/api/produtos/${e}/aprovar`,{method:"POST"}),analisarProduto:e=>$(`/api/produtos/${e}/analisar`,{method:"POST"}),llmProviders:()=>$("/api/llm/providers"),llmTest:e=>$("/api/llm/test",{method:"POST",body:JSON.stringify({id:e})}),infoprodutos:()=>$("/api/infoprodutos"),createInfoproduto:e=>$("/api/infoprodutos",{method:"POST",body:JSON.stringify(e)}),deleteInfoproduto:e=>$(`/api/infoprodutos/${e}`,{method:"DELETE"}),infoprodutoMarkdown:e=>$(`/api/infoprodutos/${e}/markdown`),paginas:()=>$("/api/paginas"),createPagina:e=>$("/api/paginas",{method:"POST",body:JSON.stringify(e)}),paginaHtml:e=>$(`/api/paginas/${e}/html`),updatePaginaHtml:(e,t)=>$(`/api/paginas/${e}/html`,{method:"PUT",body:JSON.stringify({html:t})}),publicarPagina:e=>$(`/api/paginas/${e}/publicar`,{method:"POST"}),deletePagina:e=>$(`/api/paginas/${e}`,{method:"DELETE"}),dominios:()=>$("/api/dominios"),createDominio:e=>$("/api/dominios",{method:"POST",body:JSON.stringify(e)}),verificarDominio:e=>$(`/api/dominios/${e}/verificar`,{method:"POST"}),updateDominioTags:(e,t)=>$(`/api/dominios/${e}/tags`,{method:"PUT",body:JSON.stringify({tags:t})}),deleteDominio:e=>$(`/api/dominios/${e}`,{method:"DELETE"})},ks=[{to:"/",emoji:"📦",label:"Seus Produtos"},{to:"/dashboard",emoji:"📊",label:"AdsDashboard"},{emoji:"🌐",label:"AdsHosting",children:[{to:"/hosting/dominios",label:"Domínios"},{to:"/hosting/paginas",label:"Páginas Criadas"}]},{emoji:"📖",label:"Infoprodutos",children:[{to:"/studio",label:"Criar Infoproduto"},{to:"/studio/biblioteca",label:"Biblioteca"}]},{to:"/adspages",emoji:"🛡️",label:"AdsPages"},{to:"/adswords",emoji:"✈️",label:"AdsWords"},{to:"/adscreator",emoji:"🎯",label:"AdsCreator"},{emoji:"🔄",label:"AdsTracking",children:[{to:"/tracking/visitas",label:"Minhas Visitas"},{to:"/tracking/vendas",label:"Minhas Vendas"},{to:"/tracking/gclid",label:"Conversões GCLID"}]},{to:"/adsbot",emoji:"🤖",label:"AdsBot"},{to:"/pinterest",emoji:"📌",label:"Pinterest"},"divider",{to:"/contas-google",emoji:"🔑",label:"Contas do Google"},{to:"/api-keys",emoji:"🔌",label:"Chaves de API"},{to:"/notificacoes",emoji:"🔔",label:"Notificações"},{to:"/logs",emoji:"📋",label:"Logs"},{to:"/faq",emoji:"❓",label:"FAQ & Documentação"}];function Cm(){const e=xr(),t=Pt(),{version:n,logout:r}=ra(),[l,i]=y.useState(()=>{const u=new Set;for(const c of ks)c.children&&c.children.some(m=>m.to===e.pathname)&&u.add(c.label);return u}),a=u=>i(c=>{const m=new Set(c);return m.has(u)?m.delete(u):m.add(u),m}),s=async()=>{await r(),t("/login")};return o.jsxs("aside",{className:"sidebar",children:[o.jsxs("div",{className:"logo-area",children:["🚀 ProdMaker ",n&&o.jsxs("span",{className:"badge",children:["v",n]})]}),o.jsx("nav",{children:o.jsx("ul",{children:ks.map((u,c)=>{if(u==="divider"||u.divider)return o.jsx("div",{className:"divider"},`d${c}`);if(u.children){const m=u.children.some(f=>f.to===e.pathname),v=l.has(u.label)||m;return o.jsxs("li",{className:`has-submenu ${v?"expanded":""}`,children:[o.jsxs("div",{onClick:()=>a(u.label),children:[o.jsx("span",{style:{fontSize:"16px"},children:u.emoji})," ",u.label,o.jsx("span",{className:"submenu-arrow",children:"▼"})]}),o.jsx("ul",{children:u.children.map(f=>o.jsx("li",{className:e.pathname===f.to?"active":"",onClick:()=>t(f.to),children:f.label},f.to))})]},u.label)}return o.jsxs("li",{className:`nav-item ${e.pathname===u.to?"active":""}`,onClick:()=>t(u.to),children:[o.jsx("span",{style:{fontSize:"16px"},children:u.emoji})," ",u.label]},u.to)})})}),o.jsx("div",{className:"sidebar-bottom",children:o.jsx("button",{className:"btn-logout",onClick:s,children:"🚪 Sair"})})]})}function Nm(){const{session:e,theme:t,toggleTheme:n}=ra(),r=Pt(),i=((e==null?void 0:e.email)||"").split("@")[0]||"usuário";return o.jsxs("header",{className:"top-bar",children:[o.jsx("div",{className:"promo-banner",onClick:()=>r("/adsbot"),title:"Abrir o AdsBot",children:"🚀 Novo Lançamento — conduza seu lançamento passo a passo no AdsBot →"}),o.jsxs("div",{className:"user-profile",children:["Olá, ",i,o.jsx("span",{className:"avatar",children:i.charAt(0)}),o.jsx("button",{className:"theme-toggle",onClick:n,title:"Alternar Tema",children:t==="light"?"🌙":"☀️"})]})]})}const ed=y.createContext(null),Kt=()=>y.useContext(ed);function Em({children:e}){const[t,n]=y.useState([]),r=y.useCallback(l=>{const i=Date.now()+Math.random();n(a=>[...a,{id:i,message:l}]),setTimeout(()=>n(a=>a.filter(s=>s.id!==i)),3e3)},[]);return o.jsxs(ed.Provider,{value:{toast:r},children:[e,t.map((l,i)=>o.jsxs("div",{className:"toast",style:{top:70+i*70},children:[o.jsx("span",{children:"✓"}),o.jsx("div",{children:l.message})]},l.id))]})}const Pm=[{number:"1",icon:"inventory_2",title:"Adicione o produto",last:!1},{number:"2",icon:"web",title:"Crie a Presell",last:!1},{number:"3",icon:"campaign",title:"Crie a Campanha",last:!1},{number:"4",icon:"trending_up",title:"Receba Vendas",last:!0}],_m=[{code:"pt",label:"Português"},{code:"en",label:"English"},{code:"es",label:"Español"}];function Tm(){const{login:e}=ra(),t=Pt(),[n,r]=y.useState(""),[l,i]=y.useState(""),[a,s]=y.useState(!1),[u,c]=y.useState("pt"),[m,v]=y.useState(""),[f,x]=y.useState(!1),j=async w=>{w.preventDefault(),v(""),x(!0);try{await e(n,l),t("/",{replace:!0})}catch(C){v(C.message||"Não foi possível entrar. Verifique o e-mail e o código de ativação.")}finally{x(!1)}};return o.jsxs("div",{className:"login-page",children:[o.jsxs("div",{className:"login-left",children:[o.jsxs("div",{className:"login-left-content",children:[o.jsxs("h1",{className:"login-left-title",children:[o.jsx("span",{children:"Tudo o que o afiliado precisa"})," ",o.jsx("br",{}),o.jsx("span",{className:"highlight-text",children:"para vender"})," ",o.jsx("br",{}),o.jsx("span",{children:"em um só lugar"})]}),o.jsx("p",{className:"login-left-description",children:"Menos configuração, mais vendas!"}),o.jsx("div",{className:"features-grid",children:Pm.map(w=>o.jsxs("div",{className:"feature-step-item",children:[o.jsxs("div",{className:`feature-card feature-step ${w.last?"feature-step-last":""}`,children:[o.jsx("span",{className:"feature-step-number","aria-hidden":"true",children:w.number}),o.jsx("div",{className:"feature-step-icon",children:o.jsx("i",{className:"material-symbols-outlined",children:w.icon})}),!w.last&&o.jsx("div",{className:"feature-step-arrow"})]}),o.jsx("h3",{className:"feature-title",children:w.title})]},w.number))})]}),o.jsx("div",{className:"login-blur-effect blur-effect-center"}),o.jsx("div",{className:"login-blur-effect blur-effect-1"}),o.jsx("div",{className:"login-blur-effect blur-effect-2"}),o.jsx("div",{className:"login-particle",style:{left:"8%",width:"4px",height:"4px",background:"#8b3fbf",opacity:.5,animationDuration:"10s",animationDelay:"0s"}}),o.jsx("div",{className:"login-particle",style:{left:"22%",width:"3px",height:"3px",background:"#8b3fbf",opacity:.4,animationDuration:"11s",animationDelay:"1s"}}),o.jsx("div",{className:"login-particle",style:{left:"38%",width:"5px",height:"5px",background:"#8b3fbf",opacity:.4,animationDuration:"11s",animationDelay:"1s"}}),o.jsx("div",{className:"login-particle",style:{left:"55%",width:"3px",height:"3px",background:"#8b3fbf",opacity:.4,animationDuration:"11s",animationDelay:"1s"}}),o.jsx("div",{className:"login-particle",style:{left:"70%",width:"4px",height:"4px",background:"#ee476f",opacity:.35,animationDuration:"14s",animationDelay:"0.5s"}}),o.jsx("div",{className:"login-particle",style:{left:"82%",width:"3px",height:"3px",background:"#8b3fbf",opacity:.45,animationDuration:"12s",animationDelay:"1.8s"}}),o.jsx("div",{className:"login-particle",style:{left:"93%",width:"4px",height:"4px",background:"#a653d4",opacity:.3,animationDuration:"10s",animationDelay:"3.8s"}})]}),o.jsxs("div",{className:"login-right",children:[o.jsx("div",{className:"login-language-toggle",children:o.jsxs("div",{className:"language-toggle-wrapper",children:[o.jsx("button",{className:"language-toggle-btn",title:"Alterar idioma",type:"button",children:o.jsx("span",{className:"material-symbols-outlined",children:"translate"})}),o.jsx("div",{className:"language-toggle-dropdown",children:_m.map(w=>o.jsx("div",{className:`language-toggle-item ${u===w.code?"active":""}`,onClick:()=>c(w.code),children:w.label},w.code))})]})}),o.jsxs("div",{className:"login-form",children:[o.jsx("h2",{children:"Bem-vindo de volta!"}),o.jsx("p",{className:"login-subtitle",children:"Insira seu e-mail e código de ativação"}),o.jsxs("form",{onSubmit:j,children:[m&&o.jsx("div",{className:"login-error",children:m}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{htmlFor:"email",children:"E-mail:"}),o.jsxs("div",{className:"email-input-wrapper",children:[o.jsx("span",{className:"material-symbols-outlined email-icon",children:"mail"}),o.jsx("input",{id:"email",type:"email",required:!0,placeholder:"seu@email.com",value:n,onChange:w=>r(w.target.value),autoComplete:"email"})]})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{htmlFor:"activationCode",children:"Código de Ativação"}),o.jsxs("div",{className:"password-input-wrapper",children:[o.jsx("span",{className:"material-symbols-outlined lock-icon",children:"lock"}),o.jsx("input",{id:"activationCode",type:a?"text":"password",required:!0,placeholder:"********",value:l,onChange:w=>i(w.target.value),autoComplete:"current-password"}),o.jsx("button",{type:"button",className:"password-toggle-btn","aria-label":a?"Ocultar código":"Mostrar código",onClick:()=>s(w=>!w),children:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 -960 960 960",width:"20px",fill:"currentColor",children:o.jsx("path",{d:"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Z"})})})]})]}),o.jsx("button",{type:"submit",className:"login-button",disabled:f,children:o.jsx("span",{children:f?"Entrando…":"Entrar"})})]}),o.jsxs("div",{className:"support-link",children:[o.jsxs("p",{children:[o.jsx("span",{children:"Esqueceu o código de ativação?"}),o.jsx("a",{href:"/faq",children:"Clique aqui"})]}),o.jsx("p",{children:o.jsx("span",{children:"Problemas com a ativação? Use o chat de suporte abaixo"})})]})]}),o.jsxs("div",{className:"login-footer-bottom",children:[o.jsxs("div",{style:{marginBottom:"10px"},children:[o.jsx("a",{href:"/legal/terms.html",target:"_blank",rel:"noreferrer",children:"Termos de Serviço"}),o.jsx("span",{style:{opacity:.5},children:"|"}),o.jsx("a",{href:"/legal/privacy.html",target:"_blank",rel:"noreferrer",children:"Política de Privacidade"})]}),o.jsx("div",{children:"© 2026. Todos os direitos reservados."})]})]})]})}function Ye({open:e,title:t,onClose:n,children:r}){return e?o.jsx("div",{className:"modal-overlay",onClick:l=>{l.target===l.currentTarget&&n()},children:o.jsxs("div",{className:"modal-content",children:[o.jsx("button",{className:"modal-close",onClick:n,children:"✕"}),t&&o.jsx("h2",{children:t}),r]})}):null}const Lm=["Clickbank","Hotmart","Digistore24","Kiify","Cakto","Outro"],Cs={nome:"",plataforma:"Clickbank",link_afiliado:"",comissao:"",preco:"",nicho:""};function zm(e){if(!e)return"—";const[t]=e.split(" "),[n,r,l]=t.split("-");return n?`${l}/${r}/${n.slice(2)}`:e}function td(e){if(!(e!=null&&e.analysis))return null;if(typeof e.analysis=="string")try{return JSON.parse(e.analysis)}catch{return null}return e.analysis}function Am({produto:e,onClose:t}){const n=td(e);if(!n)return null;const r=n.analise||n;return o.jsxs(Ye,{open:!0,title:`🧠 Análise — ${e.nome}`,onClose:t,children:[r.resumo&&o.jsxs("p",{style:{fontSize:"14px",marginBottom:"14px"},children:[o.jsx("strong",{children:"Resumo:"})," ",r.resumo]}),Array.isArray(r.angulos_copy)&&o.jsxs("div",{style:{marginBottom:"12px"},children:[o.jsx("strong",{style:{fontSize:"13px"},children:"Ângulos de copy"}),o.jsx("ul",{className:"placeholder-list",children:r.angulos_copy.map((l,i)=>o.jsx("li",{children:l},i))})]}),Array.isArray(r.palavras_chave)&&o.jsxs("div",{style:{marginBottom:"12px"},children:[o.jsx("strong",{style:{fontSize:"13px"},children:"Palavras-chave sugeridas"}),o.jsx("ul",{className:"placeholder-list",children:r.palavras_chave.map((l,i)=>o.jsx("li",{children:l},i))})]}),Array.isArray(r.negativas_sugeridas)&&o.jsxs("div",{style:{marginBottom:"12px"},children:[o.jsx("strong",{style:{fontSize:"13px"},children:"Negativas sugeridas"}),o.jsx("ul",{className:"placeholder-list",children:r.negativas_sugeridas.map((l,i)=>o.jsx("li",{children:l},i))})]}),r.brief_presell&&o.jsxs("div",{style:{marginBottom:"12px"},children:[o.jsx("strong",{style:{fontSize:"13px"},children:"Brief da presell"}),o.jsx("p",{style:{fontSize:"14px",color:"var(--text-muted)",marginTop:"6px"},children:r.brief_presell})]}),r.publico&&o.jsxs("div",{children:[o.jsx("strong",{style:{fontSize:"13px"},children:"Público"}),o.jsx("p",{style:{fontSize:"14px",color:"var(--text-muted)",marginTop:"6px"},children:r.publico})]}),o.jsxs("p",{className:"placeholder-note",children:["Análise gerada por: ",n.provider||"IA"]})]})}function Dm(){const e=Pt(),{toast:t}=Kt(),[n,r]=y.useState([]),[l,i]=y.useState(!0),[a,s]=y.useState(""),[u,c]=y.useState("em_analise"),[m,v]=y.useState(""),[f,x]=y.useState(!1),[j,w]=y.useState(null),[C,p]=y.useState(Cs),[d,h]=y.useState(!1),[k,E]=y.useState(null),[T,_]=y.useState(null),P=y.useCallback(async()=>{i(!0),s("");try{r(await M.produtos())}catch(L){s(L.message||"Falha ao carregar produtos.")}finally{i(!1)}},[]);y.useEffect(()=>{P()},[P]);const g=y.useMemo(()=>{const L=m.trim().toLowerCase();return n.filter(V=>V.status===u&&(!L||V.nome.toLowerCase().includes(L)||(V.nicho||"").toLowerCase().includes(L)))},[n,u,m]),S=()=>{w(null),p(Cs),x(!0)},D=L=>{w(L),p({nome:L.nome||"",plataforma:L.plataforma||"Outro",link_afiliado:L.link_afiliado||"",comissao:L.comissao??"",preco:L.preco??"",nicho:L.nicho||""}),x(!0)},Y=async L=>{L.preventDefault(),h(!0);try{const V={nome:C.nome,plataforma:C.plataforma,link_afiliado:C.link_afiliado,comissao:Number(C.comissao)||0,preco:Number(C.preco)||0,nicho:C.nicho};j?(await M.updateProduto(j.id,V),t("Produto atualizado!")):(await M.createProduto(V),t("Produto adicionado — em análise!")),x(!1),await P()}catch(V){t(V.message||"Falha ao salvar o produto.")}finally{h(!1)}},me=async L=>{_(L.id);try{const V=await M.aprovarProduto(L.id);t(`"${L.nome}" aprovado!`),await P(),V.analysis?E(V):V.analysis_error&&t(`Análise IA indisponível: ${V.analysis_error}`)}catch(V){t(V.message||"Falha ao aprovar.")}finally{_(null)}},_t=async L=>{_(L.id);try{const V=await M.analisarProduto(L.id);t("Análise gerada!"),await P(),E(V)}catch(V){t(V.message||"Falha na análise.")}finally{_(null)}},Xt=async L=>{if(window.confirm(`Excluir o produto "${L.nome}"?`))try{await M.deleteProduto(L.id),t("Produto excluído."),await P()}catch(V){t(V.message||"Falha ao excluir.")}};return o.jsxs("section",{children:[o.jsx("h1",{children:"Seus Produtos"}),o.jsx("p",{className:"subtitle",children:"Analise, aprove e anuncie seus produtos."}),o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},children:[o.jsx("input",{type:"text",placeholder:"Produto...",value:m,onChange:L=>v(L.target.value),style:{padding:"10px",width:"300px",border:"1px solid var(--border)",borderRadius:"6px",background:"var(--input-bg)",color:"var(--text-main)",outline:"none"}}),o.jsx("button",{className:"btn-primary",onClick:S,children:"+ Adicionar produto"})]}),o.jsxs("div",{className:"tabs",children:[o.jsx("div",{className:`tab ${u==="em_analise"?"active":""}`,onClick:()=>c("em_analise"),children:"🔍 Em Análise"}),o.jsx("div",{className:`tab ${u==="aprovado"?"active":""}`,onClick:()=>c("aprovado"),children:"✓ Aprovados"})]}),a&&o.jsx("div",{className:"login-error",children:a}),o.jsxs("table",{children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"Atualizado"}),o.jsx("th",{children:"Produto"}),o.jsx("th",{children:"Plataforma"}),o.jsx("th",{children:"Ações"})]})}),o.jsx("tbody",{children:l?o.jsx("tr",{className:"empty-row",children:o.jsx("td",{colSpan:4,children:"Carregando…"})}):g.length===0?o.jsx("tr",{className:"empty-row",children:o.jsx("td",{colSpan:4,children:u==="em_analise"?"Nenhum produto em análise. Clique em “+ Adicionar produto” para começar.":"Nenhum produto aprovado ainda. Aprove um produto na aba “Em Análise”."})}):g.map(L=>o.jsxs("tr",{children:[o.jsx("td",{children:zm(L.updated_at)}),o.jsxs("td",{children:[L.nome,L.nicho?o.jsxs("span",{style:{color:"var(--text-muted)"},children:[" · ",L.nicho]}):null]}),o.jsx("td",{children:L.plataforma}),o.jsx("td",{className:"action-icons",children:L.status==="em_analise"?o.jsxs(o.Fragment,{children:[o.jsx("span",{title:"Editar",onClick:()=>D(L),children:"✏️"}),o.jsx("span",{title:"AdsWords (palavras-chave)",onClick:()=>e("/adswords"),children:"✈️ AdsWord"}),o.jsx("span",{title:T===L.id?"Aprovando (análise IA se LLM ativo)…":"Aprovar",onClick:()=>me(L),children:T===L.id?"⏳":"✓ Aprovar"})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{title:"AdsPages (criar presell)",onClick:()=>e("/adspages"),children:"🛡️ AdsPages"}),o.jsx("span",{title:"AdsCreator (criar campanha)",onClick:()=>e("/adscreator"),children:"🎯 AdsCreator"}),o.jsx("span",{title:"AdsWords (palavras-chave)",onClick:()=>e("/adswords"),children:"✈️ AdsWord"}),td(L)?o.jsx("span",{title:"Ver análise IA",onClick:()=>E(L),children:"🧠"}):o.jsx("span",{title:T===L.id?"Analisando com IA…":"Gerar análise IA",onClick:()=>_t(L),children:T===L.id?"⏳":"🔬"}),o.jsx("span",{title:"Excluir",onClick:()=>Xt(L),children:"🗑️"})]})})]},L.id))})]}),o.jsx(Ye,{open:f,title:j?"Editar Produto":"Adicionar Produto",onClose:()=>x(!1),children:o.jsxs("form",{onSubmit:Y,children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Nome do produto"}),o.jsx("input",{required:!0,value:C.nome,onChange:L=>p({...C,nome:L.target.value}),placeholder:"Ex.: Prodentim"})]}),o.jsxs("div",{className:"form-row",children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Plataforma"}),o.jsx("select",{value:C.plataforma,onChange:L=>p({...C,plataforma:L.target.value}),children:Lm.map(L=>o.jsx("option",{value:L,children:L},L))})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Nicho"}),o.jsx("input",{value:C.nicho,onChange:L=>p({...C,nicho:L.target.value}),placeholder:"Ex.: saúde"})]})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Link de afiliado / checkout"}),o.jsx("input",{value:C.link_afiliado,onChange:L=>p({...C,link_afiliado:L.target.value}),placeholder:"https://..."})]}),o.jsxs("div",{className:"form-row",children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Comissão (R$)"}),o.jsx("input",{type:"number",step:"0.01",min:"0",value:C.comissao,onChange:L=>p({...C,comissao:L.target.value})})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Preço (R$)"}),o.jsx("input",{type:"number",step:"0.01",min:"0",value:C.preco,onChange:L=>p({...C,preco:L.target.value})})]})]}),o.jsx("button",{className:"btn-primary",type:"submit",disabled:d,style:{width:"100%",marginTop:"10px"},children:d?"Salvando…":j?"Salvar alterações":"Salvar"})]})}),o.jsx(Am,{produto:k,onClose:()=>E(null)})]})}function Rm(){return o.jsxs("section",{children:[o.jsx("h1",{children:"AdsDashboard"}),o.jsx("p",{className:"subtitle",children:"Tenha uma visão completa da sua operação."}),o.jsxs("div",{className:"metrics-grid",children:[o.jsxs("div",{className:"metric-card",children:[o.jsx("h3",{children:"Conversões"}),o.jsx("div",{className:"value",children:"0"})]}),o.jsxs("div",{className:"metric-card",children:[o.jsx("h3",{children:"Lucro Líquido"}),o.jsx("div",{className:"value green",children:"R$ 0,00"})]}),o.jsxs("div",{className:"metric-card",children:[o.jsx("h3",{children:"ROAS"}),o.jsx("div",{className:"value green",children:"—"})]}),o.jsxs("div",{className:"metric-card",children:[o.jsx("h3",{children:"Investimento"}),o.jsx("div",{className:"value purple",children:"R$ 0,00"})]})]}),o.jsx("p",{className:"metrics-note",children:"As métricas reais aparecem aqui conforme campanhas (AdsCreator) e tracking (AdsTracking) forem ativados. O ProdMaker nunca inventa dados — enquanto não houver eventos, os valores ficam zerados."})]})}const Om={nvidia:{kind:"openai",base_url:"https://integrate.api.nvidia.com/v1",model:""},gemini:{kind:"gemini",base_url:"",model:"gemini-2.5-flash"}},Im=[{id:"tracking",emoji:"🎯",name:"Pixel de Rastreamento",fields:[{key:"pixel_url",label:"URL pública do /track (túnel ou domínio)",placeholder:"https://meu-tunel.exemplo.com/track"}]},{id:"gamma",emoji:"🎨",name:"Gamma AI",fields:[{key:"api_key",label:"API Key",secret:!0},{key:"base_url",label:"Base URL",placeholder:"https://api.app.gamma"}]},{id:"github",emoji:"🐙",name:"GitHub",fields:[{key:"token",label:"Token (PAT)",secret:!0},{key:"repo",label:"Repositório de páginas (opcional)",placeholder:"usuario/prodmaker-pages"}]},{id:"cloudflare",emoji:"☁️",name:"Cloudflare",fields:[{key:"api_token",label:"API Token",secret:!0},{key:"account_id",label:"Account ID"}]},{id:"telegram",emoji:"✈️",name:"Telegram",fields:[{key:"bot_token",label:"Bot Token",secret:!0},{key:"chat_id",label:"Chat ID"}]},{id:"pinterest",emoji:"📌",name:"Pinterest",fields:[{key:"email",label:"E-mail"},{key:"password",label:"Senha",secret:!0},{key:"board",label:"Board padrão"}]},{id:"google-ads",emoji:"🎯",name:"Google Ads",fields:[{key:"developer_token",label:"Developer Token",secret:!0},{key:"client_id",label:"OAuth Client ID"},{key:"client_secret",label:"OAuth Client Secret",secret:!0},{key:"refresh_token",label:"Refresh Token",secret:!0},{key:"customer_id",label:"Customer ID (XXX-XXX-XXXX)"}]},{id:"meta",emoji:"👥",name:"Meta Ads",fields:[{key:"app_id",label:"App ID"},{key:"app_secret",label:"App Secret",secret:!0},{key:"access_token",label:"Access Token (sistema)",secret:!0},{key:"ad_account_id",label:"Ad Account ID (act_...)"}]},{id:"tiktok",emoji:"🎵",name:"TikTok Ads",fields:[{key:"app_id",label:"App ID"},{key:"app_secret",label:"App Secret",secret:!0},{key:"access_token",label:"Access Token",secret:!0},{key:"advertiser_id",label:"Advertiser ID"}]},{id:"canva",emoji:"🖼️",name:"Canva (MCP)",soon:!0}];function Mm(){const{toast:e}=Kt(),[t,n]=y.useState([]),[r,l]=y.useState({}),[i,a]=y.useState(null),[s,u]=y.useState({}),[c,m]=y.useState(null),[v,f]=y.useState(!1),[x,j]=y.useState(!1),w=y.useCallback(async()=>{try{const[g,S]=await Promise.all([M.llmProviders(),M.settings()]);n(g),l(S.api_keys||{})}catch(g){e(g.message||"Falha ao carregar configurações.")}},[e]);y.useEffect(()=>{w()},[w]);const C=g=>t.find(S=>S.id===g),p=g=>{const S=C(g)||{id:g,...Om[g],api_key:"",priority:g==="nvidia"?1:2,active:!1};u({...S}),m(null),a(g)},d=g=>{u({...r[g.id]||{}}),m(null),a(g)},h=async()=>{j(!0);try{const g=t.filter(D=>D.id!==s.id);g.push({id:s.id,kind:s.kind,api_key:(s.api_key||"").trim(),base_url:(s.base_url||"").trim(),model:(s.model||"").trim(),priority:Number(s.priority)||99,active:!!s.active}),g.sort((D,Y)=>(D.priority||99)-(Y.priority||99));const S=(await M.llmProviders,null);await k(g),e(`Cartão ${s.id} salvo!`),a(null),await w()}catch(g){e(g.message||"Falha ao salvar.")}finally{j(!1)}},k=async g=>{await fetch("/api/llm/providers",{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({providers:g})}).then(async S=>{if(!S.ok){const D=await S.json().catch(()=>({}));throw new Error(D.detail||`Erro ${S.status}`)}})},E=async g=>{j(!0);try{const S=await M.settings();S.api_keys={...S.api_keys||{},[g.id]:s},await M.saveSettings(S),e(`Cartão ${g.name} salvo!`),a(null),await w()}catch(S){e(S.message||"Falha ao salvar.")}finally{j(!1)}},T=async()=>{f(!0),m(null);try{const g=await M.llmTest(s.id);m({ok:!0,text:`OK — ${g.model||"modelo"} respondeu em ${g.latency_ms} ms`})}catch(g){m({ok:!1,text:g.message||"Falha no teste."})}finally{f(!1)}},_=g=>{const S=C(g);return!!(S&&S.active&&S.api_key)},P=(g,S)=>{const D=r[g]||{};return S.some(Y=>(D[Y.key]||"").trim())};return o.jsxs("section",{children:[o.jsx("h1",{children:"🔌 Chaves de API"}),o.jsx("p",{className:"subtitle",children:"Integrações do ProdMaker. As chaves ficam apenas no seu storage local — nunca no GitHub."}),o.jsx("h3",{style:{fontSize:"15px",margin:"24px 0 8px"},children:"🤖 Provedores LLM (pool com prioridade e failover)"}),o.jsx("div",{className:"api-grid",children:[{id:"nvidia",emoji:"🤖",name:"NVIDIA NIM"},{id:"gemini",emoji:"✨",name:"Gemini"}].map(g=>o.jsxs("div",{className:"api-card",onClick:()=>p(g.id),children:[o.jsxs("div",{className:"api-logo",children:[g.emoji," ",g.name]}),o.jsx("div",{className:"api-status",style:{color:_(g.id)?"var(--success)":"var(--text-muted)"},children:_(g.id)?"Configurado":"Não configurado"})]},g.id))}),o.jsx("h3",{style:{fontSize:"15px",margin:"28px 0 8px"},children:"🔌 Demais integrações"}),o.jsx("div",{className:"api-grid",children:Im.map(g=>o.jsxs("div",{className:"api-card",style:g.soon?{opacity:.55,cursor:"default"}:{},onClick:()=>!g.soon&&d(g),title:g.soon?"Em breve":"Configurar",children:[o.jsxs("div",{className:"api-logo",children:[g.emoji," ",g.name]}),o.jsx("div",{className:"api-status",style:{color:P(g.id,g.fields||[])?"var(--success)":"var(--text-muted)"},children:g.soon?"Em breve":P(g.id,g.fields)?"Configurado":"Não configurado"})]},g.id))}),o.jsx(Ye,{open:i==="nvidia"||i==="gemini",title:`Provedor LLM — ${i}`,onClose:()=>a(null),children:["nvidia","gemini"].includes(i)&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"API Key"}),o.jsx("input",{type:"password",value:s.api_key||"",onChange:g=>u({...s,api_key:g.target.value}),placeholder:i==="nvidia"?"nvapi-...":"AIza..."})]}),o.jsxs("div",{className:"form-row",children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Modelo"}),o.jsx("input",{value:s.model||"",onChange:g=>u({...s,model:g.target.value}),placeholder:i==="nvidia"?"ex.: nvidia/nemotron-...":"gemini-2.5-flash"})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Prioridade (1 = primeiro)"}),o.jsx("input",{type:"number",min:"1",value:s.priority??2,onChange:g=>u({...s,priority:g.target.value})})]})]}),i==="nvidia"&&o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Base URL (compatível OpenAI)"}),o.jsx("input",{value:s.base_url||"",onChange:g=>u({...s,base_url:g.target.value}),placeholder:"https://integrate.api.nvidia.com/v1"})]}),o.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"14px",fontWeight:600,marginBottom:"16px"},children:[o.jsx("input",{type:"checkbox",checked:!!s.active,onChange:g=>u({...s,active:g.target.checked}),style:{width:"auto"}}),"Ativo (participa do pool)"]}),c&&o.jsxs("div",{className:c.ok?"api-status":"login-error",style:{marginBottom:"12px",fontWeight:600},children:[c.ok?"✅":"❌"," ",c.text]}),o.jsxs("div",{style:{display:"flex",gap:"10px",marginTop:"10px"},children:[o.jsx("button",{className:"btn-outline",onClick:T,disabled:v||!(s.api_key||"").trim(),children:v?"Testando…":"Testar chamada"}),o.jsx("button",{className:"btn-primary",onClick:h,disabled:x,children:x?"Salvando…":"Salvar"})]})]})}),o.jsx(Ye,{open:!!(i&&i.fields),title:`${(i==null?void 0:i.emoji)||""} ${(i==null?void 0:i.name)||""}`,onClose:()=>a(null),children:(i==null?void 0:i.fields)&&o.jsxs(o.Fragment,{children:[i.fields.map(g=>o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:g.label}),o.jsx("input",{type:g.secret?"password":"text",value:s[g.key]||"",onChange:S=>u({...s,[g.key]:S.target.value}),placeholder:g.placeholder||""})]},g.key)),o.jsx("div",{style:{display:"flex",gap:"10px",marginTop:"10px"},children:o.jsx("button",{className:"btn-primary",onClick:()=>E(i),disabled:x,children:x?"Salvando…":"Salvar"})})]})})]})}const Fm=["E-book","Planilha","Mini-curso","Desafio","Workshop"],$m={titulo:"",prompt:"",formato:"E-book",nicho:"",dor:"",avatar:"",resultado:"",modo:"rapido"};function Um(){const{toast:e}=Kt(),t=Pt(),[n,r]=y.useState($m),[l,i]=y.useState(!1),[a,s]=y.useState(""),[u,c]=y.useState(null),m=f=>x=>r({...n,[f]:x.target.value}),v=async f=>{f.preventDefault(),s(""),i(!0),c(null);try{const x=await M.createInfoproduto(n);c(x),e(`Infoproduto "${x.titulo}" gerado!`)}catch(x){s(x.message||"Falha ao gerar o infoproduto.")}finally{i(!1)}};return o.jsxs("section",{children:[o.jsx("h1",{children:"📖 Criar Infoproduto"}),o.jsx("p",{className:"subtitle",children:"Gere e-books, planilhas e mini-cursos em PDF com IA — Modo Rápido (LLM + PDF local) ou Premium (Gamma AI)."}),o.jsxs("div",{className:"form-card",children:[o.jsxs("form",{onSubmit:v,children:[o.jsxs("div",{className:"form-row",children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Modo"}),o.jsxs("select",{value:n.modo,onChange:m("modo"),children:[o.jsx("option",{value:"rapido",children:"⚡ Modo Rápido (open source — LLM + PDF local)"}),o.jsx("option",{value:"gamma",children:"🎨 Modo Premium (Gamma AI)"}),o.jsx("option",{value:"canva",disabled:!0,children:"🖼️ Modo Canva (MCP — em breve)"})]})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Formato"}),o.jsx("select",{value:n.formato,onChange:m("formato"),children:Fm.map(f=>o.jsx("option",{value:f,children:f},f))})]})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Título desejado (máx. 6 palavras)"}),o.jsx("input",{required:!0,value:n.titulo,onChange:m("titulo"),placeholder:"Ex.: Cardápio 7 Dias: Receitas para Secar"})]}),o.jsxs("div",{className:"form-row",children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Nicho"}),o.jsx("input",{value:n.nicho,onChange:m("nicho"),placeholder:"Ex.: emagrecimento"})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Dor específica"}),o.jsx("input",{value:n.dor,onChange:m("dor"),placeholder:"Ex.: passar fome para emagrecer"})]})]}),o.jsxs("div",{className:"form-row",children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Avatar (público-alvo)"}),o.jsx("input",{value:n.avatar,onChange:m("avatar"),placeholder:"Ex.: mulheres 30-50 que trabalham fora"})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Resultado prometido"}),o.jsx("input",{value:n.resultado,onChange:m("resultado"),placeholder:"Ex.: secar em 7 dias sem passar fome"})]})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Prompt / instruções adicionais"}),o.jsx("textarea",{rows:4,value:n.prompt,onChange:m("prompt"),placeholder:"Descreva o conteúdo desejado, tom, quantidade de páginas, bônus..."})]}),a&&o.jsxs("div",{className:"login-error",children:[a,/Chaves de API|provedor/i.test(a)&&o.jsxs(o.Fragment,{children:[" — configure em ",o.jsx("a",{href:"/api-keys",onClick:f=>{f.preventDefault(),t("/api-keys")},children:"Chaves de API"}),"."]})]}),o.jsx("button",{className:"btn-primary",type:"submit",disabled:l,style:{width:"100%",marginTop:"10px"},children:l?n.modo==="gamma"?"🎨 Gerando na Gamma AI…":"✨ Gerando com IA…":"✨ Gerar Infoproduto"})]}),l&&o.jsx("p",{className:"placeholder-note",style:{marginTop:"12px"},children:"⏳ A geração usa o pool de LLM configurado e pode levar de 30 segundos a alguns minutos. Aguarde…"}),u&&o.jsxs("div",{className:"form-card",style:{marginTop:"20px",border:"1px solid var(--primary)",background:"var(--primary-light)"},children:[o.jsx("h3",{style:{marginBottom:"6px"},children:"✅ Infoproduto pronto!"}),o.jsxs("p",{style:{fontSize:"14px",marginBottom:"12px"},children:[o.jsx("strong",{children:u.titulo})," · ",u.formato," · provedor: ",u.provider]}),o.jsxs("div",{style:{display:"flex",gap:"10px"},children:[o.jsx("a",{className:"btn-primary",style:{textDecoration:"none"},href:`/api/infoprodutos/${u.id}/download`,children:"⬇️ Baixar PDF"}),o.jsx("button",{className:"btn-outline",onClick:()=>t("/studio/biblioteca"),children:"Abrir Biblioteca"})]})]})]})]})}function Bm(e){if(!e)return"—";const[t]=e.split(" "),[n,r,l]=t.split("-");return n?`${l}/${r}/${n.slice(2)}`:e}function Vm(){const{toast:e}=Kt(),[t,n]=y.useState([]),[r,l]=y.useState(!0),[i,a]=y.useState(null),[s,u]=y.useState(!1),c=y.useCallback(async()=>{l(!0);try{n(await M.infoprodutos())}catch(f){e(f.message||"Falha ao carregar a biblioteca.")}finally{l(!1)}},[e]);y.useEffect(()=>{c()},[c]);const m=async f=>{u(!0),a({titulo:f.titulo,markdown:""});try{const x=await M.infoprodutoMarkdown(f.id);a({titulo:f.titulo,markdown:x.markdown})}catch(x){a(null),e(x.message||"Markdown indisponível para este item.")}finally{u(!1)}},v=async f=>{if(window.confirm(`Excluir o infoproduto "${f.titulo}"?`))try{await M.deleteInfoproduto(f.id),e("Infoproduto excluído."),await c()}catch(x){e(x.message||"Falha ao excluir.")}};return o.jsxs("section",{children:[o.jsx("h1",{children:"📚 Biblioteca de Infoprodutos"}),o.jsx("p",{className:"subtitle",children:"Seus infoprodutos gerados — download do PDF e visualização do conteúdo."}),o.jsxs("table",{children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"Criado"}),o.jsx("th",{children:"Título"}),o.jsx("th",{children:"Formato"}),o.jsx("th",{children:"Modo"}),o.jsx("th",{children:"Ações"})]})}),o.jsx("tbody",{children:r?o.jsx("tr",{className:"empty-row",children:o.jsx("td",{colSpan:5,children:"Carregando…"})}):t.length===0?o.jsx("tr",{className:"empty-row",children:o.jsx("td",{colSpan:5,children:"Nenhum infoproduto ainda. Gere o primeiro em “Criar Infoproduto”."})}):t.map(f=>o.jsxs("tr",{children:[o.jsx("td",{children:Bm(f.created_at)}),o.jsxs("td",{children:[f.titulo,f.nicho?o.jsxs("span",{style:{color:"var(--text-muted)"},children:[" · ",f.nicho]}):null]}),o.jsx("td",{children:f.formato}),o.jsx("td",{children:f.modo==="gamma"?"🎨 Premium":"⚡ Rápido"}),o.jsxs("td",{className:"action-icons",children:[o.jsx("a",{href:`/api/infoprodutos/${f.id}/download`,title:"Baixar PDF",style:{color:"inherit",textDecoration:"none"},children:"⬇️ PDF"}),f.md_path&&o.jsx("span",{title:"Ver conteúdo",onClick:()=>m(f),children:"👁️"}),o.jsx("span",{title:"Excluir",onClick:()=>v(f),children:"🗑️"})]})]},f.id))})]}),o.jsx(Ye,{open:!!i,title:`Conteúdo — ${(i==null?void 0:i.titulo)||""}`,onClose:()=>a(null),children:s?o.jsx("p",{className:"placeholder-note",children:"Carregando…"}):o.jsx("pre",{style:{whiteSpace:"pre-wrap",fontFamily:"inherit",fontSize:"14px",lineHeight:1.6,color:"var(--text-main)"},children:i==null?void 0:i.markdown})})]})}const Hm=["Português","Inglês","Espanhol"],Wm=[{value:"presell",label:"🛡️ Pre-Sell (afiliado)"},{value:"vendas",label:"💸 Página de Vendas (12 seções — produto próprio)"},{value:"clone",label:"🧬 Clonar página (higienizada)"}],Qm={tipo:"presell",produto_id:"",titulo:"",idioma:"Português",afiliado_link:"",checkout_link:"",avatar:"",resultado:"",tempo:"",dor:"",prompt:"",clone_url:""};function Gm(){const{toast:e}=Kt(),t=Pt(),[n,r]=y.useState([]),[l,i]=y.useState(Qm),[a,s]=y.useState(!1),[u,c]=y.useState(""),[m,v]=y.useState(null),[f,x]=y.useState(null),[j,w]=y.useState(""),[C,p]=y.useState(!1),d=y.useCallback(async()=>{try{r(await M.produtos())}catch{}},[]);y.useEffect(()=>{d()},[d]);const h=g=>S=>i({...l,[g]:S.target.value}),k=g=>{const S=g.target.value,D=n.find(Y=>String(Y.id)===String(S));i({...l,produto_id:S,titulo:D&&!l.titulo?`Presell — ${D.nome}`:l.titulo,afiliado_link:(D==null?void 0:D.link_afiliado)||l.afiliado_link,dor:(D==null?void 0:D.nicho)||l.dor})},E=async g=>{g.preventDefault(),c(""),s(!0),v(null);try{const S={...l,produto_id:l.produto_id?Number(l.produto_id):null},D=await M.createPagina(S);v(D),e(`Página "${D.titulo}" criada!`)}catch(S){c(S.message||"Falha ao criar a página.")}finally{s(!1)}},T=async g=>{try{const S=await M.paginaHtml(g.id);w(S.html),x({id:g.id,titulo:g.titulo})}catch(S){e(S.message||"HTML não encontrado.")}},_=async()=>{p(!0);try{await M.updatePaginaHtml(f.id,j),e("HTML atualizado!"),x(null)}catch(g){e(g.message||"Falha ao salvar o HTML.")}finally{p(!1)}},P=l.tipo==="clone";return o.jsxs("section",{children:[o.jsx("h1",{children:"🛡️ AdsPages"}),o.jsx("p",{className:"subtitle",children:"Crie e hospede presells nativas e páginas de vendas — HTML único, mobile-first, com pixel embutido."}),o.jsxs("div",{className:"form-card",children:[o.jsxs("form",{onSubmit:E,children:[o.jsxs("div",{className:"form-row",children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Tipo de página"}),o.jsx("select",{value:l.tipo,onChange:h("tipo"),children:Wm.map(g=>o.jsx("option",{value:g.value,children:g.label},g.value))})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Idioma"}),o.jsx("select",{value:l.idioma,onChange:h("idioma"),children:Hm.map(g=>o.jsx("option",{value:g,children:g},g))})]})]}),!P&&o.jsxs("div",{className:"form-row",children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Produto (preenche automaticamente)"}),o.jsxs("select",{value:l.produto_id,onChange:k,children:[o.jsx("option",{value:"",children:"— sem produto vinculado —"}),n.map(g=>o.jsx("option",{value:g.id,children:g.nome},g.id))]})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Título da página"}),o.jsx("input",{required:!0,value:l.titulo,onChange:h("titulo"),placeholder:"Ex.: Prodentim — Vale a pena?"})]})]}),P&&o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"URL para clonar"}),o.jsx("input",{required:!0,type:"url",value:l.clone_url,onChange:h("clone_url"),placeholder:"https://concorrente.com/oferta"}),o.jsx("p",{className:"placeholder-note",style:{marginTop:"6px"},children:"O clone remove scripts, iframes e pixels do original antes de salvar."})]}),!P&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"form-row",children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Link de afiliado (CTA)"}),o.jsx("input",{value:l.afiliado_link,onChange:h("afiliado_link"),placeholder:"https://hop.clickbank.net/..."})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Link de checkout (se diferente)"}),o.jsx("input",{value:l.checkout_link,onChange:h("checkout_link"),placeholder:"https://checkout..."})]})]}),o.jsxs("div",{className:"form-row",children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Avatar"}),o.jsx("input",{value:l.avatar,onChange:h("avatar"),placeholder:"Ex.: homens 40+ com dor nas costas"})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Resultado prometido"}),o.jsx("input",{value:l.resultado,onChange:h("resultado"),placeholder:"Ex.: alívio em 7 dias"})]})]}),o.jsxs("div",{className:"form-row",children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Tempo (para a promessa)"}),o.jsx("input",{value:l.tempo,onChange:h("tempo"),placeholder:"Ex.: 7 dias"})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Dor principal"}),o.jsx("input",{value:l.dor,onChange:h("dor"),placeholder:"Ex.: passar fome"})]})]}),o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Instruções adicionais (prompt)"}),o.jsx("textarea",{rows:3,value:l.prompt,onChange:h("prompt"),placeholder:"Tom, cores, urgência, bônus..."})]})]}),u&&o.jsxs("div",{className:"login-error",children:[u,/Chaves de API|provedor/i.test(u)&&o.jsxs(o.Fragment,{children:[" — configure em ",o.jsx("a",{href:"/api-keys",onClick:g=>{g.preventDefault(),t("/api-keys")},children:"Chaves de API"}),"."]})]}),o.jsx("button",{className:"btn-primary",type:"submit",disabled:a,style:{width:"100%",marginTop:"10px"},children:a?P?"🧬 Clonando e higienizando…":"✨ Gerando página com IA…":P?"🧬 Clonar página":"✨ Criar página"})]}),m&&o.jsxs("div",{className:"form-card",style:{marginTop:"20px",border:"1px solid var(--primary)",background:"var(--primary-light)"},children:[o.jsx("h3",{style:{marginBottom:"6px"},children:"✅ Página pronta!"}),o.jsxs("p",{style:{fontSize:"14px",marginBottom:"12px"},children:[o.jsx("strong",{children:m.titulo})," · ",m.tipo," ",m.provider?`· gerada por ${m.provider}`:""]}),o.jsxs("div",{style:{display:"flex",gap:"10px",flexWrap:"wrap"},children:[o.jsx("a",{className:"btn-primary",style:{textDecoration:"none"},href:m.preview_url,target:"_blank",rel:"noreferrer",children:"👁️ Pré-visualizar"}),o.jsx("a",{className:"btn-outline",style:{textDecoration:"none"},href:`/api/paginas/${m.id}/download`,children:"⬇️ Download"}),o.jsx("button",{className:"btn-outline",onClick:()=>T(m),children:"✏️ Editar HTML"}),o.jsx("button",{className:"btn-outline",onClick:()=>t("/hosting/paginas"),children:"📚 Ver todas"})]})]})]}),o.jsxs(Ye,{open:!!f,title:`Editar HTML — ${(f==null?void 0:f.titulo)||""}`,onClose:()=>x(null),children:[o.jsx("textarea",{value:j,onChange:g=>w(g.target.value),rows:18,style:{width:"100%",fontFamily:"monospace",fontSize:"12px",padding:"10px",borderRadius:"6px",border:"1px solid var(--border)",background:"var(--input-bg)",color:"var(--text-main)",outline:"none"}}),o.jsx("button",{className:"btn-primary",onClick:_,disabled:C,style:{marginTop:"12px",width:"100%"},children:C?"Salvando…":"Salvar HTML"})]})]})}function Km(e){if(!e)return"—";const[t]=e.split(" "),[n,r,l]=t.split("-");return n?`${l}/${r}/${n.slice(2)}`:e}const Xm={presell:"🛡️ Pre-sell",vendas:"💸 Vendas",clone:"🧬 Clone"};function Ym(){var E,T,_,P;const{toast:e}=Kt(),t=Pt(),[n,r]=y.useState([]),[l,i]=y.useState(!0),[a,s]=y.useState(null),[u,c]=y.useState(""),[m,v]=y.useState(!1),[f,x]=y.useState(null),[j,w]=y.useState(null),C=y.useCallback(async()=>{i(!0);try{r(await M.paginas())}catch(g){e(g.message||"Falha ao carregar páginas.")}finally{i(!1)}},[e]);y.useEffect(()=>{C()},[C]);const p=async g=>{try{const S=await M.paginaHtml(g.id);c(S.html),s({id:g.id,titulo:g.titulo})}catch(S){e(S.message||"HTML não encontrado.")}},d=async()=>{v(!0);try{await M.updatePaginaHtml(a.id,u),e("HTML atualizado!"),s(null),await C()}catch(g){e(g.message||"Falha ao salvar.")}finally{v(!1)}},h=async g=>{x(g.id);try{const S=await M.publicarPagina(g.id);e(`"${g.titulo}" publicada no GitHub!`),w({titulo:g.titulo,result:S.publish_result}),await C()}catch(S){e(S.message||"Falha ao publicar.")}finally{x(null)}},k=async g=>{if(window.confirm(`Excluir a página "${g.titulo}"?`))try{await M.deletePagina(g.id),e("Página excluída."),await C()}catch(S){e(S.message||"Falha ao excluir.")}};return o.jsxs("section",{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"10px"},children:[o.jsx("h1",{children:"📄 Páginas Criadas"}),o.jsx("button",{className:"btn-primary",onClick:()=>t("/adspages"),children:"+ Criar página"})]}),o.jsx("p",{className:"subtitle",children:"Todas as presells e páginas de vendas — pré-visualize, edite, publique e acompanhe."}),o.jsxs("table",{children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"Atualizada"}),o.jsx("th",{children:"Título"}),o.jsx("th",{children:"Tipo"}),o.jsx("th",{children:"Status"}),o.jsx("th",{children:"Ações"})]})}),o.jsx("tbody",{children:l?o.jsx("tr",{className:"empty-row",children:o.jsx("td",{colSpan:5,children:"Carregando…"})}):n.length===0?o.jsx("tr",{className:"empty-row",children:o.jsx("td",{colSpan:5,children:"Nenhuma página criada ainda. Use o AdsPages para gerar a primeira."})}):n.map(g=>o.jsxs("tr",{children:[o.jsx("td",{children:Km(g.updated_at)}),o.jsx("td",{children:g.titulo}),o.jsx("td",{children:Xm[g.tipo]||g.tipo}),o.jsxs("td",{children:[g.status==="publicada"?o.jsx("span",{style:{color:"var(--success)",fontWeight:600},children:"✅ Publicada"}):o.jsx("span",{style:{color:"var(--text-muted)"},children:"📝 Rascunho"}),g.published_url&&o.jsx("div",{style:{fontSize:"11px"},children:o.jsx("a",{href:g.published_url,target:"_blank",rel:"noreferrer",style:{color:"var(--primary)"},children:g.published_url})})]}),o.jsxs("td",{className:"action-icons",children:[o.jsx("a",{href:g.preview_url,target:"_blank",rel:"noreferrer",title:"Pré-visualizar",style:{color:"inherit",textDecoration:"none"},children:"👁️"}),o.jsx("a",{href:`/api/paginas/${g.id}/download`,title:"Download HTML",style:{color:"inherit",textDecoration:"none"},children:"⬇️"}),o.jsx("span",{title:"Editar HTML",onClick:()=>p(g),children:"✏️"}),o.jsx("span",{title:f===g.id?"Publicando via GitHub…":"Publicar (GitHub → Cloudflare Pages)",onClick:()=>h(g),children:f===g.id?"⏳":"🚀"}),o.jsx("span",{title:"Excluir",onClick:()=>k(g),children:"🗑️"})]})]},g.id))})]}),o.jsx("p",{className:"placeholder-note",style:{marginTop:"16px"},children:"💡 Publicação: o HTML é enviado ao repositório GitHub configurado em Chaves de API. Se o repositório estiver conectado a um projeto no Cloudflare Pages, o deploy é automático."}),o.jsxs(Ye,{open:!!a,title:`Editar HTML — ${(a==null?void 0:a.titulo)||""}`,onClose:()=>s(null),children:[o.jsx("textarea",{value:u,onChange:g=>c(g.target.value),rows:18,style:{width:"100%",fontFamily:"monospace",fontSize:"12px",padding:"10px",borderRadius:"6px",border:"1px solid var(--border)",background:"var(--input-bg)",color:"var(--text-main)",outline:"none"}}),o.jsx("button",{className:"btn-primary",onClick:d,disabled:m,style:{marginTop:"12px",width:"100%"},children:m?"Salvando…":"Salvar HTML"})]}),o.jsxs(Ye,{open:!!j,title:`🚀 Publicada — ${(j==null?void 0:j.titulo)||""}`,onClose:()=>w(null),children:[o.jsxs("p",{style:{fontSize:"14px",marginBottom:"10px"},children:[o.jsx("strong",{children:"Arquivo:"})," ",(E=j==null?void 0:j.result)==null?void 0:E.path]}),o.jsx("p",{style:{marginBottom:"6px"},children:o.jsx("a",{href:(T=j==null?void 0:j.result)==null?void 0:T.commit_url,target:"_blank",rel:"noreferrer",style:{color:"var(--primary)"},children:"Commit no GitHub ↗"})}),o.jsx("p",{style:{marginBottom:"12px"},children:o.jsx("a",{href:(_=j==null?void 0:j.result)==null?void 0:_.pages_url,target:"_blank",rel:"noreferrer",style:{color:"var(--primary)"},children:"Página pública (GitHub Pages) ↗"})}),o.jsx("p",{className:"placeholder-note",children:(P=j==null?void 0:j.result)==null?void 0:P.aviso})]})]})}function Ns(e,t){if(!e)return t;try{return JSON.parse(e)}catch{return t}}function qm(){const{toast:e}=Kt(),[t,n]=y.useState([]),[r,l]=y.useState(!0),[i,a]=y.useState(!1),[s,u]=y.useState(""),[c,m]=y.useState(!1),[v,f]=y.useState(null),[x,j]=y.useState(null),[w,C]=y.useState(""),[p,d]=y.useState(""),h=y.useCallback(async()=>{l(!0);try{n(await M.dominios())}catch(S){e(S.message||"Falha ao carregar domínios.")}finally{l(!1)}},[e]);y.useEffect(()=>{h()},[h]);const k=async S=>{S.preventDefault(),m(!0);try{const D=await M.createDominio({nome:s});e(`Domínio "${D.nome}" adicionado!`),u(""),a(!1),await h()}catch(D){e(D.message||"Falha ao adicionar domínio.")}finally{m(!1)}},E=async(S,D="ns")=>{f(`${S.id}-${D}`);try{const Y=await M.verificarDominio(S.id),me=Y.verificacao||{};Y.status==="online"?e(`✅ ${S.nome}: online na Cloudflare!`):e(D==="ns"?`⏳ ${S.nome}: NS ainda não apontado (${(me.ns||[]).join(", ")||"sem resposta DNS"}).`:`📋 ${S.nome}: registros A = ${(me.a||[]).join(", ")||"nenhum"}.`),await h()}catch(Y){e(Y.message||"Falha na verificação.")}finally{f(null)}},T=S=>{C(S.tags||""),j(S)},_=async()=>{try{await M.updateDominioTags(x.id,w),e("Tags/Pixels/Scripts salvos neste domínio."),j(null),await h()}catch(S){e(S.message||"Falha ao salvar.")}},P=async S=>{if(window.confirm(`Remover o domínio "${S.nome}"?`))try{await M.deleteDominio(S.id),e("Domínio removido."),await h()}catch(D){e(D.message||"Falha ao remover.")}},g=async S=>{try{await navigator.clipboard.writeText(S),d(S),e("Copiado: "+S)}catch{e("Não foi possível copiar — selecione manualmente.")}};return o.jsxs("section",{children:[o.jsx("h1",{children:"🌐 AdsHosting — Domínios"}),o.jsx("p",{className:"subtitle",children:"Gerencie seus domínios e publique presells com SSL, DNS e antibot. Configure a Cloudflare em Chaves de API para verificação automática."}),o.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},children:o.jsxs("div",{children:[o.jsxs("h3",{style:{fontSize:"16px"},children:["🌐 Domínios ",o.jsx("span",{style:{fontSize:"14px",color:"var(--text-muted)",fontWeight:"normal"},children:t.length})]}),o.jsx("p",{style:{fontSize:"13px",color:"var(--primary)",cursor:"pointer",marginTop:"5px"},onClick:()=>window.open("https://dash.cloudflare.com","_blank"),children:"Aponte os name servers no seu registrador ↗"})]})}),o.jsx("button",{className:"btn-primary",style:{width:"100%",padding:"12px",marginBottom:"20px"},onClick:()=>a(!0),children:"+ Adicionar Domínio"}),r?o.jsx("p",{className:"placeholder-note",children:"Carregando…"}):t.length===0?o.jsx("div",{className:"form-card",style:{textAlign:"center"},children:o.jsx("p",{style:{color:"var(--text-muted)"},children:"Nenhum domínio cadastrado. Adicione o primeiro para começar a hospedar presells."})}):o.jsx("div",{className:"domain-grid",children:t.map(S=>{var Xt;const D=Ns(S.ns_data,{}),Y=Ns(S.a_data,{}),me=S.status==="online",_t=(D.cf_name_servers&&D.cf_name_servers.length?D.cf_name_servers:D.ns||[]).slice(0,2);return o.jsxs("div",{className:"domain-card",children:[o.jsxs("div",{children:[o.jsx("div",{className:"domain-title",children:S.nome}),me?o.jsx("div",{className:"status-tag online",children:"✅ Domínio online e disponível na criação de presell."}):o.jsx("div",{className:"status-tag pending",children:"⏳ O domínio ainda não está apto para receber anúncios"}),me?o.jsxs("ul",{className:"domain-list",children:[o.jsxs("li",{children:["🔒 SSL: ",(Xt=D.ns)!=null&&Xt.length?"Ativo":"—"]}),o.jsxs("li",{children:["🌐 DNS: ",me?"Configurado":"—"]}),o.jsx("li",{children:"🛡️ Antibot: via pixel do ProdMaker"})]}):o.jsxs(o.Fragment,{children:[o.jsx("p",{style:{fontSize:"13px",fontWeight:"bold",color:"var(--primary)",textAlign:"center",margin:"15px 0"},children:"Name Servers detectados"}),_t.length===0?o.jsx("p",{style:{fontSize:"12px",color:"var(--text-muted)",textAlign:"center",marginBottom:"15px"},children:"Nenhum NS detectado ainda — clique em “Verificar NS” após apontar no registrador."}):_t.map(L=>o.jsxs("div",{className:"input-group",onClick:()=>g(L),style:{cursor:"pointer"},title:"Clique para copiar",children:[o.jsx("input",{type:"text",value:L,readOnly:!0}),o.jsx("button",{type:"button",children:"📋"})]},L)),o.jsx("p",{style:{fontSize:"12px",color:"var(--text-muted)",lineHeight:1.5,marginTop:"15px"},children:"No registrador, aponte os name servers da Cloudflare e aguarde (30 min a 48 h). Depois clique em Verificar."})]}),me&&Y.a&&Y.a.length>0&&o.jsxs("p",{style:{fontSize:"12px",color:"var(--text-muted)",marginTop:"10px"},children:["Registros A: ",Y.a.join(", ")]})]}),o.jsxs("div",{className:"domain-card-bottom",children:[o.jsxs("div",{className:"domain-actions",children:[o.jsx("button",{className:"btn-outline",onClick:()=>E(S,"a"),disabled:v===`${S.id}-a`,children:v===`${S.id}-a`?"…":"Verificar A"}),o.jsx("button",{className:"btn-outline",onClick:()=>E(S,"ns"),disabled:v===`${S.id}-ns`,children:v===`${S.id}-ns`?"…":"Verificar NS"}),o.jsx("button",{className:"btn-outline",style:{flex:"0.25"},onClick:()=>P(S),children:"🗑️"})]}),o.jsxs("button",{className:"btn-outline",style:{width:"100%",display:"flex",justifyContent:"space-between"},onClick:()=>T(S),children:["+ Tags, Pixels and Scripts (Opcional) ",o.jsx("span",{children:"📋"})]})]})]},S.id)})}),o.jsx(Ye,{open:i,title:"Adicionar Domínio",onClose:()=>a(!1),children:o.jsxs("form",{onSubmit:k,children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Domínio (sem https://)"}),o.jsx("input",{required:!0,value:s,onChange:S=>u(S.target.value),placeholder:"ex.: minhapresell.com"})]}),o.jsx("p",{className:"placeholder-note",style:{marginBottom:"12px"},children:"O domínio precisa estar cadastrado na sua conta Cloudflare (o ProdMaker verifica NS e status via API/DNS)."}),o.jsx("button",{className:"btn-primary",type:"submit",disabled:c,style:{width:"100%"},children:c?"Adicionando…":"Adicionar"})]})}),o.jsxs(Ye,{open:!!x,title:`Tags, Pixels e Scripts — ${(x==null?void 0:x.nome)||""}`,onClose:()=>j(null),children:[o.jsxs("div",{className:"form-group",children:[o.jsx("label",{children:"Scripts adicionais (inseridos nas páginas publicadas neste domínio — futuro deploy)"}),o.jsx("textarea",{rows:8,value:w,onChange:S=>C(S.target.value),placeholder:"<!-- ex.: Google Tag Manager, Meta Pixel --><![CDATA[ ... ]]>",style:{fontFamily:"monospace",fontSize:"12px"}})]}),o.jsx("button",{className:"btn-primary",onClick:_,style:{width:"100%"},children:"Salvar"})]})]})}function He({emoji:e,title:t,subtitle:n,items:r=[]}){return o.jsxs("section",{children:[o.jsxs("h1",{children:[e," ",t]}),o.jsx("p",{className:"subtitle",children:n}),o.jsxs("div",{className:"form-card",children:[r.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("h3",{style:{fontSize:"15px",marginBottom:"6px"},children:"O que vem neste módulo"}),o.jsx("ul",{className:"placeholder-list",children:r.map((l,i)=>o.jsx("li",{children:l},i))})]}),o.jsx("p",{className:"placeholder-note",children:"🚧 Em desenvolvimento — chegue aqui nas próximas partes do roadmap (veja o CHANGELOG)."})]})]})}const Jm=()=>o.jsx(He,{emoji:"✈️",title:"AdsWords",subtitle:"Palavras-chave e negativas para Google Ads (correspondência de frase).",items:["Gerador de palavras-chave com variações (review, funciona, onde comprar…)","Negativas padrão do seed (gratis, download, torrent, refund…)","Listas editáveis por produto e exportação"]}),Zm=()=>o.jsx(He,{emoji:"🎯",title:"AdsCreator",subtitle:"Crie anúncios de alta conversão no Google, Meta e TikTok.",items:["Google Ads: Search com CPA 60–80% da comissão e orçamento R$100–120/dia","Meta Ads: 1 campanha → 1 conjunto → 5–20 criativos (público aberto + Advantage+)","TikTok Ads: vídeo 9:16 estilo UGC, teste US$10–20/dia","Gerador de criativos: gancho 3s + promessa + prova + CTA"]}),bm=()=>o.jsx(He,{emoji:"🔄",title:"AdsTracking — Minhas Visitas (AdsPixel)",subtitle:"Captura dados de cada visitante das suas presells, sem scripts de terceiros.",items:["Cards de visitantes com IP, região, dispositivo e cliques repetidos","Alerta de drenagem de orçamento com cópia da lista de IPs","Funil: Visitas → Cliques de oferta → Checkouts → Vendas","Donuts de origem de tráfego, dispositivos e sistemas operacionais"]}),eh=()=>o.jsx(He,{emoji:"💸",title:"AdsTracking — Minhas Vendas",subtitle:"Vendas rastreadas por webhooks (Hotmart, ClickBank, Digistore24, Kiify, Cakto), entrada manual ou CSV.",items:["Tabela de vendas com produto, valor, comissão e origem","Configuração de webhooks","Importação CSV e lançamento manual"]}),th=()=>o.jsx(He,{emoji:"📤",title:"AdsTracking — Conversões GCLID",subtitle:"Envie conversões offline (GCLID) de volta ao Google Ads.",items:["Upload de conversões via google-ads-python","Histórico e status de cada conversão enviada"]}),nh=()=>o.jsx(He,{emoji:"🤖",title:"AdsBot — Lançamento Assistido",subtitle:"Conduza um lançamento completo passo a passo: Produto → Página → Publicar → Campanhas → Tracking.",items:["Wizard com progresso persistido e retomável","Checklist final e Relatório de Lançamento","Fila de ações automáticas por etapa"]}),rh=()=>o.jsx(He,{emoji:"📌",title:"Pinterest — Orgânico",subtitle:"Crie e agende pins (1000x1500) com SEO, apontando para suas presells.",items:["Gerador de ideias de pins por IA","Criação e agendamento via py3-pinterest","Boards temáticos e histórico"]}),lh=()=>o.jsx(He,{emoji:"🔑",title:"Contas do Google",subtitle:"Contas Google Ads conectadas (OAuth + developer token + customer IDs).",items:["Cards por conta com conectar/testar","Vinculação de subcontas MCC"]}),ih=()=>o.jsx(He,{emoji:"🔔",title:"Notificações (AdsNotify)",subtitle:"Push de vendas e conclusões via Telegram/Discord/e-mail (apprise).",items:["Toggles por evento (venda, campanha criada, página publicada…)","Histórico local e toasts em tempo real"]}),oh=()=>o.jsx(He,{emoji:"📋",title:"Logs",subtitle:"Histórico unificado de operações com attribution de provider.",items:["Tabela: Operação, Estado, Data/Hora, Origem, Detalhes","Filtros por operação e estado"]}),ah=()=>o.jsx(He,{emoji:"❓",title:"FAQ & Documentação",subtitle:"Perguntas frequentes e guias (hospedagem, Google Ads OAuth, webhooks, Gamma).",items:["FAQ em accordion","Guias de referência do seed/references","Termos e Privacidade (/legal)"]}),oo=y.createContext(null),ra=()=>y.useContext(oo);function sh(){const[e,t]=y.useState(()=>localStorage.getItem("prodmaker_theme")||"light");y.useEffect(()=>{document.documentElement.setAttribute("data-theme",e),localStorage.setItem("prodmaker_theme",e)},[e]);const n=y.useCallback(()=>t(r=>r==="light"?"dark":"light"),[]);return{theme:e,toggleTheme:n}}function uh(){const[e,t]=y.useState(null),[n,r]=y.useState(!0),[l,i]=y.useState(""),{theme:a,toggleTheme:s}=sh(),u=xr(),c=y.useCallback(async()=>{try{t(await M.session())}catch{t({authenticated:!1})}finally{r(!1)}},[]);y.useEffect(()=>{c()},[c]),y.useEffect(()=>{M.version().then(j=>i(j.version)).catch(()=>{})},[]);const m=y.useCallback(async(j,w)=>{const C=await M.login(j,w);return await c(),C},[c]),v=y.useCallback(async()=>{await M.logout().catch(()=>{}),await c()},[c]),f=u.pathname==="/login",x=e==null?void 0:e.authenticated;return f?o.jsx(oo.Provider,{value:{session:e,loading:n,version:l,login:m,logout:v,theme:a,toggleTheme:s},children:o.jsx(Tm,{})}):n?o.jsx("div",{className:"loading-screen",children:"Carregando…"}):x?o.jsx(oo.Provider,{value:{session:e,loading:n,version:l,login:m,logout:v,theme:a,toggleTheme:s},children:o.jsx(Em,{children:o.jsxs("div",{className:"app-shell",children:[o.jsx(Cm,{}),o.jsxs("main",{className:"main-content",children:[o.jsx(Nm,{}),o.jsx("div",{className:"content-wrapper",children:o.jsxs(jm,{children:[o.jsx(Z,{path:"/",element:o.jsx(Dm,{})}),o.jsx(Z,{path:"/dashboard",element:o.jsx(Rm,{})}),o.jsx(Z,{path:"/hosting/dominios",element:o.jsx(qm,{})}),o.jsx(Z,{path:"/hosting/paginas",element:o.jsx(Ym,{})}),o.jsx(Z,{path:"/studio",element:o.jsx(Um,{})}),o.jsx(Z,{path:"/studio/biblioteca",element:o.jsx(Vm,{})}),o.jsx(Z,{path:"/adspages",element:o.jsx(Gm,{})}),o.jsx(Z,{path:"/adswords",element:o.jsx(Jm,{})}),o.jsx(Z,{path:"/adscreator",element:o.jsx(Zm,{})}),o.jsx(Z,{path:"/tracking/visitas",element:o.jsx(bm,{})}),o.jsx(Z,{path:"/tracking/vendas",element:o.jsx(eh,{})}),o.jsx(Z,{path:"/tracking/gclid",element:o.jsx(th,{})}),o.jsx(Z,{path:"/adsbot",element:o.jsx(nh,{})}),o.jsx(Z,{path:"/pinterest",element:o.jsx(rh,{})}),o.jsx(Z,{path:"/contas-google",element:o.jsx(lh,{})}),o.jsx(Z,{path:"/api-keys",element:o.jsx(Mm,{})}),o.jsx(Z,{path:"/notificacoes",element:o.jsx(ih,{})}),o.jsx(Z,{path:"/logs",element:o.jsx(oh,{})}),o.jsx(Z,{path:"/faq",element:o.jsx(ah,{})}),o.jsx(Z,{path:"*",element:o.jsx(xs,{to:"/",replace:!0})})]})})]})]})})}):o.jsx(xs,{to:"/login",replace:!0})}$c(document.getElementById("root")).render(o.jsx(Is.StrictMode,{children:o.jsx(km,{children:o.jsx(uh,{})})}));
|