Files
web-client/dist/assets/js/index-D5tsXEew.js
wdvipa 28040495c8 111
2026-02-09 16:33:52 +08:00

11 lines
402 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var e=Object.defineProperty,t=(t,n,r)=>((t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r)(t,"symbol"!=typeof n?n+"":n,r);import{c as n,b as r,d as l,r as a,u as i,e as o,R as s,P as c}from"./redux-vendor-4i-xJSJa.js";import{r as d,a as u,g as f}from"./react-vendor-HnKmhvXM.js";import{I as p,_ as h,C as m,S as g,R as y,a as v,B as x,b,s as w,T as k,c as S,F as j,M as C,d as E,e as z,A as _,f as I,g as R,h as T,i as P,j as L,k as A,l as D,P as N,m as M,n as O,Q as B,o as $,p as F,q as V,r as H,t as W,u as U,v as K,w as Q,x as Y,U as G,y as q,z as X,D as J,E as Z,L as ee,G as te,H as ne,J as re,K as le,N as ae,O as ie,V as oe}from"./ui-vendor-vk2IPYHC.js";import{l as se}from"./socket-vendor-CUkmNz_4.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var ce,de,ue={exports:{}},fe={};var pe,he,me,ge,ye=(de||(de=1,ue.exports=function(){if(ce)return fe;ce=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var l=null;if(void 0!==r&&(l=""+r),void 0!==n.key&&(l=""+n.key),"key"in n)for(var a in r={},n)"key"!==a&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:l,ref:void 0!==n?n:null,props:r}}return fe.Fragment=t,fe.jsx=n,fe.jsxs=n,fe}()),ue.exports),ve={exports:{}},xe={},be={exports:{}},we={};function ke(){return he||(he=1,be.exports=(pe||(pe=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<l(a,t)))break e;e[r]=t,e[n]=a,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var o=2*(r+1)-1,s=e[o],c=o+1,d=e[c];if(0>l(s,n))c<a&&0>l(d,s)?(e[r]=d,e[c]=n,r=c):(e[r]=s,e[o]=n,r=o);else{if(!(c<a&&0>l(d,n)))break e;e[r]=d,e[c]=n,r=c}}}return t}function l(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var s=[],c=[],d=1,u=null,f=3,p=!1,h=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var l=n(c);null!==l;){if(null===l.callback)r(c);else{if(!(l.startTime<=e))break;r(c),l.sortIndex=l.expirationTime,t(s,l)}l=n(c)}}function w(e){if(m=!1,b(e),!h)if(null!==n(s))h=!0,S||(S=!0,k());else{var t=n(c);null!==t&&T(w,t.startTime-e)}}var k,S=!1,j=-1,C=5,E=-1;function z(){return!(!g&&e.unstable_now()-E<C)}function _(){if(g=!1,S){var t=e.unstable_now();E=t;var l=!0;try{e:{h=!1,m&&(m=!1,v(j),j=-1),p=!0;var a=f;try{t:{for(b(t),u=n(s);null!==u&&!(u.expirationTime>t&&z());){var i=u.callback;if("function"==typeof i){u.callback=null,f=u.priorityLevel;var o=i(u.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof o){u.callback=o,b(t),l=!0;break t}u===n(s)&&r(s),b(t)}else r(s);u=n(s)}if(null!==u)l=!0;else{var d=n(c);null!==d&&T(w,d.startTime-t),l=!1}}break e}finally{u=null,f=a,p=!1}l=void 0}}finally{l?k():S=!1}}}if("function"==typeof x)k=function(){x(_)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,R=I.port2;I.port1.onmessage=_,k=function(){R.postMessage(null)}}else k=function(){y(_,0)};function T(t,n){j=y(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e||(C=0<e?Math.floor(1e3/e):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,l,a){var i=e.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?i+a:i,r){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return r={id:d++,callback:l,priorityLevel:r,startTime:a,expirationTime:o=a+o,sortIndex:-1},a>i?(r.sortIndex=a,t(c,r),null===n(s)&&r===n(c)&&(m?(v(j),j=-1):m=!0,T(w,a-i))):(r.sortIndex=o,t(s,r),h||p||(h=!0,S||(S=!0,k()))),r},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(we)),we)),be.exports}
/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function Se(){if(me)return xe;me=1;var e=ke(),t=d(),n=u();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function l(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function a(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function i(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function o(e){if(a(e)!==e)throw Error(r(188))}function s(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=s(e)))return t;e=e.sibling}return null}var c=Object.assign,f=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),_=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=_&&e[_]||e["@@iterator"])?e:null}var R=Symbol.for("react.client.reference");function T(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===R?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case m:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case k:return"Suspense";case S:return"SuspenseList";case E:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case h:return"Portal";case b:return(e.displayName||"Context")+".Provider";case x:return(e._context.displayName||"Context")+".Consumer";case w:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(t=e.displayName||null)?t:T(e.type)||"Memo";case C:t=e._payload,e=e._init;try{return T(e(t))}catch(n){}}return null}var P=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},N=[],M=-1;function O(e){return{current:e}}function B(e){0>M||(e.current=N[M],N[M]=null,M--)}function $(e,t){M++,N[M]=e.current,e.current=t}var F=O(null),V=O(null),H=O(null),W=O(null);function U(e,t){switch($(H,t),$(V,e),$(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?iu(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=ou(t=iu(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(F),$(F,e)}function K(){B(F),B(V),B(H)}function Q(e){null!==e.memoizedState&&$(W,e);var t=F.current,n=ou(t,e.type);t!==n&&($(V,e),$(F,n))}function Y(e){V.current===e&&(B(F),B(V)),W.current===e&&(B(W),qu._currentValue=D)}var G=Object.prototype.hasOwnProperty,q=e.unstable_scheduleCallback,X=e.unstable_cancelCallback,J=e.unstable_shouldYield,Z=e.unstable_requestPaint,ee=e.unstable_now,te=e.unstable_getCurrentPriorityLevel,ne=e.unstable_ImmediatePriority,re=e.unstable_UserBlockingPriority,le=e.unstable_NormalPriority,ae=e.unstable_LowPriority,ie=e.unstable_IdlePriority,oe=e.log,se=e.unstable_setDisableYieldValue,ce=null,de=null;function ue(e){if("function"==typeof oe&&se(e),de&&"function"==typeof de.setStrictMode)try{de.setStrictMode(ce,e)}catch(t){}}var fe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(pe(e)/he|0)|0},pe=Math.log,he=Math.LN2;var ge=256,ye=4194304;function ve(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function be(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var l=0,a=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var o=134217727&r;return 0!==o?0!==(r=o&~a)?l=ve(r):0!==(i&=o)?l=ve(i):n||0!==(n=o&~e)&&(l=ve(n)):0!==(o=r&~a)?l=ve(o):0!==i?l=ve(i):n||0!==(n=r&~e)&&(l=ve(n)),0===l?0:0!==t&&t!==l&&0===(t&a)&&((a=l&-l)>=(n=t&-t)||32===a&&4194048&n)?t:l}function we(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Se(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function je(){var e=ge;return!(4194048&(ge<<=1))&&(ge=256),e}function Ce(){var e=ye;return!(62914560&(ye<<=1))&&(ye=4194304),e}function Ee(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ze(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-fe(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function Ie(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-fe(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}function Re(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Te(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Pe(){var e=A.p;return 0!==e?e:void 0===(e=window.event)?32:ff(e.type)}var Le=Math.random().toString(36).slice(2),Ae="__reactFiber$"+Le,De="__reactProps$"+Le,Ne="__reactContainer$"+Le,Me="__reactEvents$"+Le,Oe="__reactListeners$"+Le,Be="__reactHandles$"+Le,$e="__reactResources$"+Le,Fe="__reactMarker$"+Le;function Ve(e){delete e[Ae],delete e[De],delete e[Me],delete e[Oe],delete e[Be]}function He(e){var t=e[Ae];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ne]||n[Ae]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=wu(e);null!==e;){if(n=e[Ae])return n;e=wu(e)}return t}n=(e=n).parentNode}return null}function We(e){if(e=e[Ae]||e[Ne]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Ue(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function Ke(e){var t=e[$e];return t||(t=e[$e]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qe(e){e[Fe]=!0}var Ye=new Set,Ge={};function qe(e,t){Xe(e,t),Xe(e+"Capture",t)}function Xe(e,t){for(Ge[e]=t,e=0;e<t.length;e++)Ye.add(t[e])}var Je,Ze,et=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),tt={},nt={};function rt(e,t,n){if(l=t,G.call(nt,l)||!G.call(tt,l)&&(et.test(l)?nt[l]=!0:(tt[l]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var l}function lt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function at(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function it(e){if(void 0===Je)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Je=t&&t[1]||"",Ze=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Je+e+Ze}var ot=!1;function st(e,t){if(!e||ot)return"";ot=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(l){var r=l}Reflect.construct(e,[],n)}else{try{n.call()}catch(a){r=a}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(o){if(o&&r&&"string"==typeof o.stack)return[o.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=r.DetermineComponentFrameRoot(),i=a[0],o=a[1];if(i&&o){var s=i.split("\n"),c=o.split("\n");for(l=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;l<c.length&&!c[l].includes("DetermineComponentFrameRoot");)l++;if(r===s.length||l===c.length)for(r=s.length-1,l=c.length-1;1<=r&&0<=l&&s[r]!==c[l];)l--;for(;1<=r&&0<=l;r--,l--)if(s[r]!==c[l]){if(1!==r||1!==l)do{if(r--,0>--l||s[r]!==c[l]){var d="\n"+s[r].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}}while(1<=r&&0<=l);break}}}finally{ot=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?it(n):""}function ct(e){switch(e.tag){case 26:case 27:case 5:return it(e.type);case 16:return it("Lazy");case 13:return it("Suspense");case 19:return it("SuspenseList");case 0:case 15:return st(e.type,!1);case 11:return st(e.type.render,!1);case 1:return st(e.type,!0);case 31:return it("Activity");default:return""}}function dt(e){try{var t="";do{t+=ct(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){e._valueTracker||(e._valueTracker=function(e){var t=ft(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function mt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function yt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vt(e,t,n,r,l,a,i,o){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ut(t)):e.value!==""+ut(t)&&(e.value=""+ut(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?bt(e,i,ut(t)):null!=n?bt(e,i,ut(n)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&"function"!=typeof l&&"symbol"!=typeof l),null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.name=""+ut(o):e.removeAttribute("name")}function xt(e,t,n,r,l,a,i,o){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(("submit"===a||"reset"===a)&&null==t)return;n=null!=n?""+ut(n):"",t=null!=t?""+ut(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.name=i)}function bt(e,t,n){"number"===t&&mt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function wt(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=""+ut(n),t=null,l=0;l<e.length;l++){if(e[l].value===n)return e[l].selected=!0,void(r&&(e[l].defaultSelected=!0));null!==t||e[l].disabled||(t=e[l])}null!==t&&(t.selected=!0)}}function kt(e,t,n){null==t||((t=""+ut(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ut(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function St(e,t,n,l){if(null==t){if(null!=l){if(null!=n)throw Error(r(92));if(P(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}null==n&&(n=""),t=n}n=ut(t),e.defaultValue=n,(l=e.textContent)===n&&""!==l&&null!==l&&(e.value=l)}function jt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ct=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Et(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Ct.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function zt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var l in n)!n.hasOwnProperty(l)||null!=t&&t.hasOwnProperty(l)||(0===l.indexOf("--")?e.setProperty(l,""):"float"===l?e.cssFloat="":e[l]="");for(var a in t)l=t[a],t.hasOwnProperty(a)&&n[a]!==l&&Et(e,a,l)}else for(var i in t)t.hasOwnProperty(i)&&Et(e,i,t[i])}function _t(e){if(-1===e.indexOf("-"))return!1;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 It=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Rt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Tt(e){return Rt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Pt=null;function Lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var At=null,Dt=null;function Nt(e){var t=We(e);if(t&&(e=t.stateNode)){var n=e[De]||null;e:switch(e=t.stateNode,t.type){case"input":if(vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var a=l[De]||null;if(!a)throw Error(r(90));vt(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(l=n[t]).form===e.form&&ht(l)}break e;case"textarea":kt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&wt(e,!!n.multiple,t,!1)}}}var Mt=!1;function Ot(e,t,n){if(Mt)return e(t,n);Mt=!0;try{return e(t)}finally{if(Mt=!1,(null!==At||null!==Dt)&&(Hc(),At&&(t=At,e=Dt,Dt=At=null,Nt(t),e)))for(t=0;t<e.length;t++)Nt(e[t])}}function Bt(e,t){var n=e.stateNode;if(null===n)return null;var l=n[De]||null;if(null===l)return null;n=l[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":(l=!l.disabled)||(l=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!l;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var $t=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ft=!1;if($t)try{var Vt={};Object.defineProperty(Vt,"passive",{get:function(){Ft=!0}}),window.addEventListener("test",Vt,Vt),window.removeEventListener("test",Vt,Vt)}catch(Nf){Ft=!1}var Ht=null,Wt=null,Ut=null;function Kt(){if(Ut)return Ut;var e,t,n=Wt,r=n.length,l="value"in Ht?Ht.value:Ht.textContent,a=l.length;for(e=0;e<r&&n[e]===l[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===l[a-t];t++);return Ut=l.slice(e,1<t?1-t:void 0)}function Qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Yt(){return!0}function Gt(){return!1}function qt(e){function t(t,n,r,l,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(l):l[i]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?Yt:Gt,this.isPropagationStopped=Gt,this}return c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Yt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Yt)},persist:function(){},isPersistent:Yt}),t}var Xt,Jt,Zt,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=qt(en),nn=c({},en,{view:0,detail:0}),rn=qt(nn),ln=c({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zt&&(Zt&&"mousemove"===e.type?(Xt=e.screenX-Zt.screenX,Jt=e.screenY-Zt.screenY):Jt=Xt=0,Zt=e),Xt)},movementY:function(e){return"movementY"in e?e.movementY:Jt}}),an=qt(ln),on=qt(c({},ln,{dataTransfer:0})),sn=qt(c({},nn,{relatedTarget:0})),cn=qt(c({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=qt(c({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),un=qt(c({},en,{data:0})),fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={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"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function gn(){return mn}var yn=qt(c({},nn,{key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?Qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),vn=qt(c({},ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xn=qt(c({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),bn=qt(c({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),wn=qt(c({},ln,{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})),kn=qt(c({},en,{newState:0,oldState:0})),Sn=[9,13,27,32],jn=$t&&"CompositionEvent"in window,Cn=null;$t&&"documentMode"in document&&(Cn=document.documentMode);var En=$t&&"TextEvent"in window&&!Cn,zn=$t&&(!jn||Cn&&8<Cn&&11>=Cn),_n=String.fromCharCode(32),In=!1;function Rn(e,t){switch(e){case"keyup":return-1!==Sn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Pn=!1;var Ln={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 An(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ln[e.type]:"textarea"===t}function Dn(e,t,n,r){At?Dt?Dt.push(r):Dt=[r]:At=r,0<(t=Kd(t,"onChange")).length&&(n=new tn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nn=null,Mn=null;function On(e){Od(e,0)}function Bn(e){if(ht(Ue(e)))return e}function $n(e,t){if("change"===e)return t}var Fn=!1;if($t){var Vn;if($t){var Hn="oninput"in document;if(!Hn){var Wn=document.createElement("div");Wn.setAttribute("oninput","return;"),Hn="function"==typeof Wn.oninput}Vn=Hn}else Vn=!1;Fn=Vn&&(!document.documentMode||9<document.documentMode)}function Un(){Nn&&(Nn.detachEvent("onpropertychange",Kn),Mn=Nn=null)}function Kn(e){if("value"===e.propertyName&&Bn(Mn)){var t=[];Dn(t,Mn,e,Lt(e)),Ot(On,t)}}function Qn(e,t,n){"focusin"===e?(Un(),Mn=n,(Nn=t).attachEvent("onpropertychange",Kn)):"focusout"===e&&Un()}function Yn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Bn(Mn)}function Gn(e,t){if("click"===e)return Bn(t)}function qn(e,t){if("input"===e||"change"===e)return Bn(t)}var Xn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Jn(e,t){if(Xn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)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(!G.call(t,l)||!Xn(e[l],t[l]))return!1}return!0}function Zn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function er(e,t){var n,r=Zn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Zn(r)}}function tr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?tr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nr(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var lr=$t&&"documentMode"in document&&11>=document.documentMode,ar=null,ir=null,or=null,sr=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sr||null==ar||ar!==mt(r)||("selectionStart"in(r=ar)&&rr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},or&&Jn(or,r)||(or=r,0<(r=Kd(ir,"onSelect")).length&&(t=new tn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ar)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ur={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},fr={},pr={};function hr(e){if(fr[e])return fr[e];if(!ur[e])return e;var t,n=ur[e];for(t in n)if(n.hasOwnProperty(t)&&t in pr)return fr[e]=n[t];return e}$t&&(pr=document.createElement("div").style,"AnimationEvent"in window||(delete ur.animationend.animation,delete ur.animationiteration.animation,delete ur.animationstart.animation),"TransitionEvent"in window||delete ur.transitionend.transition);var mr=hr("animationend"),gr=hr("animationiteration"),yr=hr("animationstart"),vr=hr("transitionrun"),xr=hr("transitionstart"),br=hr("transitioncancel"),wr=hr("transitionend"),kr=new Map,Sr="abort auxClick beforeToggle 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 jr(e,t){kr.set(e,t),qe(t,[e])}Sr.push("scrollEnd");var Cr=new WeakMap;function Er(e,t){if("object"==typeof e&&null!==e){var n=Cr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:dt(t)},Cr.set(e,t),t)}return{value:e,source:t,stack:dt(t)}}var zr=[],_r=0,Ir=0;function Rr(){for(var e=_r,t=Ir=_r=0;t<e;){var n=zr[t];zr[t++]=null;var r=zr[t];zr[t++]=null;var l=zr[t];zr[t++]=null;var a=zr[t];if(zr[t++]=null,null!==r&&null!==l){var i=r.pending;null===i?l.next=l:(l.next=i.next,i.next=l),r.pending=l}0!==a&&Ar(n,l,a)}}function Tr(e,t,n,r){zr[_r++]=e,zr[_r++]=t,zr[_r++]=n,zr[_r++]=r,Ir|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Pr(e,t,n,r){return Tr(e,t,n,r),Dr(e)}function Lr(e,t){return Tr(e,null,null,t),Dr(e)}function Ar(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var l=!1,a=e.return;null!==a;)a.childLanes|=n,null!==(r=a.alternate)&&(r.childLanes|=n),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(l=!0)),e=a,a=a.return;return 3===e.tag?(a=e.stateNode,l&&null!==t&&(l=31-fe(n),null===(r=(e=a.hiddenUpdates)[l])?e[l]=[t]:r.push(t),t.lane=536870912|n),a):null}function Dr(e){if(50<Ac)throw Ac=0,Dc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Nr={};function Mr(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.refCleanup=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 Or(e,t,n,r){return new Mr(e,t,n,r)}function Br(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $r(e,t){var n=e.alternate;return null===n?((n=Or(e.tag,t,e.key,e.mode)).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=65011712&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Fr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Vr(e,t,n,l,a,i){var o=0;if(l=e,"function"==typeof e)Br(e)&&(o=1);else if("string"==typeof e)o=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,F.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case E:return(e=Or(31,n,t,a)).elementType=E,e.lanes=i,e;case m:return Hr(n.children,a,i,t);case g:o=8,a|=24;break;case y:return(e=Or(12,n,t,2|a)).elementType=y,e.lanes=i,e;case k:return(e=Or(13,n,t,a)).elementType=k,e.lanes=i,e;case S:return(e=Or(19,n,t,a)).elementType=S,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case v:case b:o=10;break e;case x:o=9;break e;case w:o=11;break e;case j:o=14;break e;case C:o=16,l=null;break e}o=29,n=Error(r(130,null===e?"null":typeof e,"")),l=null}return(t=Or(o,n,t,a)).elementType=e,t.type=l,t.lanes=i,t}function Hr(e,t,n,r){return(e=Or(7,e,r,t)).lanes=n,e}function Wr(e,t,n){return(e=Or(6,e,null,t)).lanes=n,e}function Ur(e,t,n){return(t=Or(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kr=[],Qr=0,Yr=null,Gr=0,qr=[],Xr=0,Jr=null,Zr=1,el="";function tl(e,t){Kr[Qr++]=Gr,Kr[Qr++]=Yr,Yr=e,Gr=t}function nl(e,t,n){qr[Xr++]=Zr,qr[Xr++]=el,qr[Xr++]=Jr,Jr=e;var r=Zr;e=el;var l=32-fe(r)-1;r&=~(1<<l),n+=1;var a=32-fe(t)+l;if(30<a){var i=l-l%5;a=(r&(1<<i)-1).toString(32),r>>=i,l-=i,Zr=1<<32-fe(t)+l|n<<l|r,el=a+e}else Zr=1<<a|n<<l|r,el=e}function rl(e){null!==e.return&&(tl(e,1),nl(e,1,0))}function ll(e){for(;e===Yr;)Yr=Kr[--Qr],Kr[Qr]=null,Gr=Kr[--Qr],Kr[Qr]=null;for(;e===Jr;)Jr=qr[--Xr],qr[Xr]=null,el=qr[--Xr],qr[Xr]=null,Zr=qr[--Xr],qr[Xr]=null}var al=null,il=null,ol=!1,sl=null,cl=!1,dl=Error(r(519));function ul(e){throw yl(Er(Error(r(418,"")),e)),dl}function fl(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ae]=e,t[De]=r,n){case"dialog":Bd("cancel",t),Bd("close",t);break;case"iframe":case"object":case"embed":Bd("load",t);break;case"video":case"audio":for(n=0;n<Nd.length;n++)Bd(Nd[n],t);break;case"source":Bd("error",t);break;case"img":case"image":case"link":Bd("error",t),Bd("load",t);break;case"details":Bd("toggle",t);break;case"input":Bd("invalid",t),xt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),pt(t);break;case"select":Bd("invalid",t);break;case"textarea":Bd("invalid",t),St(t,r.value,r.defaultValue,r.children),pt(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Jd(t.textContent,n)?(null!=r.popover&&(Bd("beforetoggle",t),Bd("toggle",t)),null!=r.onScroll&&Bd("scroll",t),null!=r.onScrollEnd&&Bd("scrollend",t),null!=r.onClick&&(t.onclick=Zd),t=!0):t=!1,t||ul(e)}function pl(e){for(al=e.return;al;)switch(al.tag){case 5:case 13:return void(cl=!1);case 27:case 3:return void(cl=!0);default:al=al.return}}function hl(e){if(e!==al)return!1;if(!ol)return pl(e),ol=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||su(e.type,e.memoizedProps)),t=!t),t&&il&&ul(e),pl(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){il=xu(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}il=null}}else 27===n?(n=il,mu(e.type)?(e=bu,bu=null,il=e):il=n):il=al?xu(e.stateNode.nextSibling):null;return!0}function ml(){il=al=null,ol=!1}function gl(){var e=sl;return null!==e&&(null===wc?wc=e:wc.push.apply(wc,e),sl=null),e}function yl(e){null===sl?sl=[e]:sl.push(e)}var vl=O(null),xl=null,bl=null;function wl(e,t,n){$(vl,t._currentValue),t._currentValue=n}function kl(e){e._currentValue=vl.current,B(vl)}function Sl(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function jl(e,t,n,l){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var i=a.dependencies;if(null!==i){var o=a.child;i=i.firstContext;e:for(;null!==i;){var s=i;i=a;for(var c=0;c<t.length;c++)if(s.context===t[c]){i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Sl(i.return,n,e),l||(o=null);break e}i=s.next}}else if(18===a.tag){if(null===(o=a.return))throw Error(r(341));o.lanes|=n,null!==(i=o.alternate)&&(i.lanes|=n),Sl(o,n,e),o=null}else o=a.child;if(null!==o)o.return=a;else for(o=a;null!==o;){if(o===e){o=null;break}if(null!==(a=o.sibling)){a.return=o.return,o=a;break}o=o.return}a=o}}function Cl(e,t,n,l){e=null;for(var a=t,i=!1;null!==a;){if(!i)if(524288&a.flags)i=!0;else if(262144&a.flags)break;if(10===a.tag){var o=a.alternate;if(null===o)throw Error(r(387));if(null!==(o=o.memoizedProps)){var s=a.type;Xn(a.pendingProps.value,o.value)||(null!==e?e.push(s):e=[s])}}else if(a===W.current){if(null===(o=a.alternate))throw Error(r(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(qu):e=[qu])}a=a.return}null!==e&&jl(t,e,n,l),t.flags|=262144}function El(e){for(e=e.firstContext;null!==e;){if(!Xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function zl(e){xl=e,bl=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function _l(e){return Rl(xl,e)}function Il(e,t){return null===xl&&zl(e),Rl(e,t)}function Rl(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===bl){if(null===e)throw Error(r(308));bl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else bl=bl.next=t;return n}var Tl="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Pl=e.unstable_scheduleCallback,Ll=e.unstable_NormalPriority,Al={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dl(){return{controller:new Tl,data:new Map,refCount:0}}function Nl(e){e.refCount--,0===e.refCount&&Pl(Ll,function(){e.controller.abort()})}var Ml=null,Ol=0,Bl=0,$l=null;function Fl(){if(0===--Ol&&null!==Ml){null!==$l&&($l.status="fulfilled");var e=Ml;Ml=null,Bl=0,$l=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Vl=L.S;L.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Ml){var n=Ml=[];Ol=0,Bl=Td(),$l={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ol++,t.then(Fl,Fl)}(0,t),null!==Vl&&Vl(e,t)};var Hl=O(null);function Wl(){var e=Hl.current;return null!==e?e:ac.pooledCache}function Ul(e,t){$(Hl,null===t?Hl.current:t.pool)}function Kl(){var e=Wl();return null===e?null:{parent:Al._currentValue,pool:e}}var Ql=Error(r(460)),Yl=Error(r(474)),Gl=Error(r(542)),ql={then:function(){}};function Xl(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Jl(){}function Zl(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Jl,Jl),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw na(e=t.reason),e;default:if("string"==typeof t.status)t.then(Jl,Jl);else{if(null!==(e=ac)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw na(e=t.reason),e}throw ea=t,Ql}}var ea=null;function ta(){if(null===ea)throw Error(r(459));var e=ea;return ea=null,e}function na(e){if(e===Ql||e===Gl)throw Error(r(483))}var ra=!1;function la(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function aa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function oa(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&lc){var l=r.pending;return null===l?t.next=t:(t.next=l.next,l.next=t),r.pending=t,t=Dr(e),Ar(e,null,n),t}return Tr(e,r,t,n),Dr(e)}function sa(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ie(e,n)}}function ca(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var l=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===a?l=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?l=a=t:a=a.next=t}else l=a=t;return n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var da=!1;function ua(){if(da){if(null!==$l)throw $l}}function fa(e,t,n,r){da=!1;var l=e.updateQueue;ra=!1;var a=l.firstBaseUpdate,i=l.lastBaseUpdate,o=l.shared.pending;if(null!==o){l.shared.pending=null;var s=o,d=s.next;s.next=null,null===i?a=d:i.next=d,i=s;var u=e.alternate;null!==u&&((o=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===o?u.firstBaseUpdate=d:o.next=d,u.lastBaseUpdate=s))}if(null!==a){var f=l.baseState;for(i=0,u=d=s=null,o=a;;){var p=-536870913&o.lane,h=p!==o.lane;if(h?(oc&p)===p:(r&p)===p){0!==p&&p===Bl&&(da=!0),null!==u&&(u=u.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var m=e,g=o;p=t;var y=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){f=m.call(y,f,p);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(y,f,p):m))break e;f=c({},f,p);break e;case 2:ra=!0}}null!==(p=o.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=l.callbacks)?l.callbacks=[p]:h.push(p))}else h={lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===u?(d=u=h,s=f):u=u.next=h,i|=p;if(null===(o=o.next)){if(null===(o=l.shared.pending))break;o=(h=o).next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}null===u&&(s=f),l.baseState=s,l.firstBaseUpdate=d,l.lastBaseUpdate=u,null===a&&(l.shared.lanes=0),mc|=i,e.lanes=i,e.memoizedState=f}}function pa(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function ha(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)pa(n[e],t)}var ma=O(null),ga=O(0);function ya(e,t){$(ga,e=pc),$(ma,t),pc=e|t.baseLanes}function va(){$(ga,pc),$(ma,ma.current)}function xa(){pc=ga.current,B(ma),B(ga)}var ba=0,wa=null,ka=null,Sa=null,ja=!1,Ca=!1,Ea=!1,za=0,_a=0,Ia=null,Ra=0;function Ta(){throw Error(r(321))}function Pa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xn(e[n],t[n]))return!1;return!0}function La(e,t,n,r,l,a){return ba=a,wa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=null===e||null===e.memoizedState?Qi:Yi,Ea=!1,a=n(r,l),Ea=!1,Ca&&(a=Da(t,n,r,l)),Aa(e),a}function Aa(e){L.H=Ki;var t=null!==ka&&null!==ka.next;if(ba=0,Sa=ka=wa=null,ja=!1,_a=0,Ia=null,t)throw Error(r(300));null===e||Io||null!==(e=e.dependencies)&&El(e)&&(Io=!0)}function Da(e,t,n,l){wa=e;var a=0;do{if(Ca&&(Ia=null),_a=0,Ca=!1,25<=a)throw Error(r(301));if(a+=1,Sa=ka=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}L.H=Gi,i=t(n,l)}while(Ca);return i}function Na(){var e=L.H,t=e.useState()[0];return t="function"==typeof t.then?Va(t):t,e=e.useState()[0],(null!==ka?ka.memoizedState:null)!==e&&(wa.flags|=1024),t}function Ma(){var e=0!==za;return za=0,e}function Oa(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ba(e){if(ja){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}ja=!1}ba=0,Sa=ka=wa=null,Ca=!1,_a=za=0,Ia=null}function $a(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Sa?wa.memoizedState=Sa=e:Sa=Sa.next=e,Sa}function Fa(){if(null===ka){var e=wa.alternate;e=null!==e?e.memoizedState:null}else e=ka.next;var t=null===Sa?wa.memoizedState:Sa.next;if(null!==t)Sa=t,ka=e;else{if(null===e){if(null===wa.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(ka=e).memoizedState,baseState:ka.baseState,baseQueue:ka.baseQueue,queue:ka.queue,next:null},null===Sa?wa.memoizedState=Sa=e:Sa=Sa.next=e}return Sa}function Va(e){var t=_a;return _a+=1,null===Ia&&(Ia=[]),e=Zl(Ia,e,t),t=wa,null===(null===Sa?t.memoizedState:Sa.next)&&(t=t.alternate,L.H=null===t||null===t.memoizedState?Qi:Yi),e}function Ha(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Va(e);if(e.$$typeof===b)return _l(e)}throw Error(r(438,String(e)))}function Wa(e){var t=null,n=wa.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=wa.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},wa.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=z;return t.index++,n}function Ua(e,t){return"function"==typeof t?t(e):t}function Ka(e){return Qa(Fa(),ka,e)}function Qa(e,t,n){var l=e.queue;if(null===l)throw Error(r(311));l.lastRenderedReducer=n;var a=e.baseQueue,i=l.pending;if(null!==i){if(null!==a){var o=a.next;a.next=i.next,i.next=o}t.baseQueue=a=i,l.pending=null}if(i=e.baseState,null===a)e.memoizedState=i;else{var s=o=null,c=null,d=t=a.next,u=!1;do{var f=-536870913&d.lane;if(f!==d.lane?(oc&f)===f:(ba&f)===f){var p=d.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),f===Bl&&(u=!0);else{if((ba&p)===p){d=d.next,p===Bl&&(u=!0);continue}f={lane:0,revertLane:d.revertLane,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},null===c?(s=c=f,o=i):c=c.next=f,wa.lanes|=p,mc|=p}f=d.action,Ea&&n(i,f),i=d.hasEagerState?d.eagerState:n(i,f)}else p={lane:f,revertLane:d.revertLane,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},null===c?(s=c=p,o=i):c=c.next=p,wa.lanes|=f,mc|=f;d=d.next}while(null!==d&&d!==t);if(null===c?o=i:c.next=s,!Xn(i,e.memoizedState)&&(Io=!0,u&&null!==(n=$l)))throw n;e.memoizedState=i,e.baseState=o,e.baseQueue=c,l.lastRenderedState=i}return null===a&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Ya(e){var t=Fa(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var o=a=a.next;do{i=e(i,o.action),o=o.next}while(o!==a);Xn(i,t.memoizedState)||(Io=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,l]}function Ga(e,t,n){var l=wa,a=Fa(),i=ol;if(i){if(void 0===n)throw Error(r(407));n=n()}else n=t();var o=!Xn((ka||a).memoizedState,n);if(o&&(a.memoizedState=n,Io=!0),a=a.queue,vi(2048,8,Ja.bind(null,l,a,e),[e]),a.getSnapshot!==t||o||null!==Sa&&1&Sa.memoizedState.tag){if(l.flags|=2048,mi(9,{destroy:void 0,resource:void 0},Xa.bind(null,l,a,n,t),null),null===ac)throw Error(r(349));i||124&ba||qa(l,t,n)}return n}function qa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=wa.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},wa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Xa(e,t,n,r){t.value=n,t.getSnapshot=r,Za(t)&&ei(e)}function Ja(e,t,n){return n(function(){Za(t)&&ei(e)})}function Za(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xn(e,n)}catch(r){return!0}}function ei(e){var t=Lr(e,2);null!==t&&Oc(t,e,2)}function ti(e){var t=$a();if("function"==typeof e){var n=e;if(e=n(),Ea){ue(!0);try{n()}finally{ue(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:e},t}function ni(e,t,n,r){return e.baseState=n,Qa(e,ka,"function"==typeof r?r:Ua)}function ri(e,t,n,l,a){if(Hi(e))throw Error(r(485));if(null!==(e=t.action)){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==L.T?n(!0):i.isTransition=!1,l(i),null===(n=t.pending)?(i.next=t.pending=i,li(t,i)):(i.next=n.next,t.pending=n.next=i)}}function li(e,t){var n=t.action,r=t.payload,l=e.state;if(t.isTransition){var a=L.T,i={};L.T=i;try{var o=n(l,r),s=L.S;null!==s&&s(i,o),ai(e,t,o)}catch(c){oi(e,t,c)}finally{L.T=a}}else try{ai(e,t,a=n(l,r))}catch(d){oi(e,t,d)}}function ai(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){ii(e,t,n)},function(n){return oi(e,t,n)}):ii(e,t,n)}function ii(e,t,n){t.status="fulfilled",t.value=n,si(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,li(e,n)))}function oi(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,si(t),t=t.next}while(t!==r)}e.action=null}function si(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ci(e,t){return t}function di(e,t){if(ol){var n=ac.formState;if(null!==n){e:{var r=wa;if(ol){if(il){t:{for(var l=il,a=cl;8!==l.nodeType;){if(!a){l=null;break t}if(null===(l=xu(l.nextSibling))){l=null;break t}}l="F!"===(a=l.data)||"F"===a?l:null}if(l){il=xu(l.nextSibling),r="F!"===l.data;break e}}ul(r)}r=!1}r&&(t=n[0])}}return(n=$a()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:t},n.queue=r,n=$i.bind(null,wa,r),r.dispatch=n,r=ti(!1),a=Vi.bind(null,wa,!1,r.queue),l={state:t,dispatch:null,action:e,pending:null},(r=$a()).queue=l,n=ri.bind(null,wa,l,a,n),l.dispatch=n,r.memoizedState=e,[t,n,!1]}function ui(e){return fi(Fa(),ka,e)}function fi(e,t,n){if(t=Qa(e,t,ci)[0],e=Ka(Ua)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Va(t)}catch(i){if(i===Ql)throw Gl;throw i}else r=t;var l=(t=Fa()).queue,a=l.dispatch;return n!==t.memoizedState&&(wa.flags|=2048,mi(9,{destroy:void 0,resource:void 0},pi.bind(null,l,n),null)),[r,a,e]}function pi(e,t){e.action=t}function hi(e){var t=Fa(),n=ka;if(null!==n)return fi(t,n,e);Fa(),t=t.memoizedState;var r=(n=Fa()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function mi(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=wa.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},wa.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function gi(){return Fa().memoizedState}function yi(e,t,n,r){var l=$a();r=void 0===r?null:r,wa.flags|=e,l.memoizedState=mi(1|t,{destroy:void 0,resource:void 0},n,r)}function vi(e,t,n,r){var l=Fa();r=void 0===r?null:r;var a=l.memoizedState.inst;null!==ka&&null!==r&&Pa(r,ka.memoizedState.deps)?l.memoizedState=mi(t,a,n,r):(wa.flags|=e,l.memoizedState=mi(1|t,a,n,r))}function xi(e,t){yi(8390656,8,e,t)}function bi(e,t){vi(2048,8,e,t)}function wi(e,t){return vi(4,2,e,t)}function ki(e,t){return vi(4,4,e,t)}function Si(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function ji(e,t,n){n=null!=n?n.concat([e]):null,vi(4,4,Si.bind(null,t,e),n)}function Ci(){}function Ei(e,t){var n=Fa();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Pa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function zi(e,t){var n=Fa();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Pa(t,r[1]))return r[0];if(r=e(),Ea){ue(!0);try{e()}finally{ue(!1)}}return n.memoizedState=[r,t],r}function _i(e,t,n){return void 0===n||1073741824&ba?e.memoizedState=t:(e.memoizedState=n,e=Mc(),wa.lanes|=e,mc|=e,n)}function Ii(e,t,n,r){return Xn(n,t)?n:null!==ma.current?(e=_i(e,n,r),Xn(e,t)||(Io=!0),e):42&ba?(e=Mc(),wa.lanes|=e,mc|=e,t):(Io=!0,e.memoizedState=n)}function Ri(e,t,n,r,l){var a=A.p;A.p=0!==a&&8>a?a:8;var i,o,s,c=L.T,d={};L.T=d,Vi(e,!1,t,n);try{var u=l(),f=L.S;if(null!==f&&f(d,u),null!==u&&"object"==typeof u&&"function"==typeof u.then)Fi(e,t,(i=r,o=[],s={status:"pending",value:null,reason:null,then:function(e){o.push(e)}},u.then(function(){s.status="fulfilled",s.value=i;for(var e=0;e<o.length;e++)(0,o[e])(i)},function(e){for(s.status="rejected",s.reason=e,e=0;e<o.length;e++)(0,o[e])(void 0)}),s),Nc());else Fi(e,t,r,Nc())}catch(p){Fi(e,t,{then:function(){},status:"rejected",reason:p},Nc())}finally{A.p=a,L.T=c}}function Ti(){}function Pi(e,t,n,l){if(5!==e.tag)throw Error(r(476));var a=Li(e).queue;Ri(e,a,t,D,null===n?Ti:function(){return Ai(e),n(l)})}function Li(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Ai(e){Fi(e,Li(e).next.queue,{},Nc())}function Di(){return _l(qu)}function Ni(){return Fa().memoizedState}function Mi(){return Fa().memoizedState}function Oi(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Nc(),r=oa(t,e=ia(n),n);return null!==r&&(Oc(r,t,n),sa(r,t,n)),t={cache:Dl()},void(e.payload=t)}t=t.return}}function Bi(e,t,n){var r=Nc();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Hi(e)?Wi(t,n):null!==(n=Pr(e,t,n,r))&&(Oc(n,e,r),Ui(n,t,r))}function $i(e,t,n){Fi(e,t,n,Nc())}function Fi(e,t,n,r){var l={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hi(e))Wi(t,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,o=a(i,n);if(l.hasEagerState=!0,l.eagerState=o,Xn(o,i))return Tr(e,t,l,0),null===ac&&Rr(),!1}catch(s){}if(null!==(n=Pr(e,t,l,r)))return Oc(n,e,r),Ui(n,t,r),!0}return!1}function Vi(e,t,n,l){if(l={lane:2,revertLane:Td(),action:l,hasEagerState:!1,eagerState:null,next:null},Hi(e)){if(t)throw Error(r(479))}else null!==(t=Pr(e,n,l,2))&&Oc(t,e,2)}function Hi(e){var t=e.alternate;return e===wa||null!==t&&t===wa}function Wi(e,t){Ca=ja=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ui(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ie(e,n)}}var Ki={readContext:_l,use:Ha,useCallback:Ta,useContext:Ta,useEffect:Ta,useImperativeHandle:Ta,useLayoutEffect:Ta,useInsertionEffect:Ta,useMemo:Ta,useReducer:Ta,useRef:Ta,useState:Ta,useDebugValue:Ta,useDeferredValue:Ta,useTransition:Ta,useSyncExternalStore:Ta,useId:Ta,useHostTransitionStatus:Ta,useFormState:Ta,useActionState:Ta,useOptimistic:Ta,useMemoCache:Ta,useCacheRefresh:Ta},Qi={readContext:_l,use:Ha,useCallback:function(e,t){return $a().memoizedState=[e,void 0===t?null:t],e},useContext:_l,useEffect:xi,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,yi(4194308,4,Si.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4194308,4,e,t)},useInsertionEffect:function(e,t){yi(4,2,e,t)},useMemo:function(e,t){var n=$a();t=void 0===t?null:t;var r=e();if(Ea){ue(!0);try{e()}finally{ue(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=$a();if(void 0!==n){var l=n(t);if(Ea){ue(!0);try{n(t)}finally{ue(!1)}}}else l=t;return r.memoizedState=r.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},r.queue=e,e=e.dispatch=Bi.bind(null,wa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},$a().memoizedState=e},useState:function(e){var t=(e=ti(e)).queue,n=$i.bind(null,wa,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ci,useDeferredValue:function(e,t){return _i($a(),e,t)},useTransition:function(){var e=ti(!1);return e=Ri.bind(null,wa,e.queue,!0,!1),$a().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=wa,a=$a();if(ol){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===ac)throw Error(r(349));124&oc||qa(l,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,xi(Ja.bind(null,l,i,e),[e]),l.flags|=2048,mi(9,{destroy:void 0,resource:void 0},Xa.bind(null,l,i,n,t),null),n},useId:function(){var e=$a(),t=ac.identifierPrefix;if(ol){var n=el;t="«"+t+"R"+(n=(Zr&~(1<<32-fe(Zr)-1)).toString(32)+n),0<(n=za++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=Ra++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Di,useFormState:di,useActionState:di,useOptimistic:function(e){var t=$a();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Vi.bind(null,wa,!0,n),n.dispatch=t,[e,t]},useMemoCache:Wa,useCacheRefresh:function(){return $a().memoizedState=Oi.bind(null,wa)}},Yi={readContext:_l,use:Ha,useCallback:Ei,useContext:_l,useEffect:bi,useImperativeHandle:ji,useInsertionEffect:wi,useLayoutEffect:ki,useMemo:zi,useReducer:Ka,useRef:gi,useState:function(){return Ka(Ua)},useDebugValue:Ci,useDeferredValue:function(e,t){return Ii(Fa(),ka.memoizedState,e,t)},useTransition:function(){var e=Ka(Ua)[0],t=Fa().memoizedState;return["boolean"==typeof e?e:Va(e),t]},useSyncExternalStore:Ga,useId:Ni,useHostTransitionStatus:Di,useFormState:ui,useActionState:ui,useOptimistic:function(e,t){return ni(Fa(),0,e,t)},useMemoCache:Wa,useCacheRefresh:Mi},Gi={readContext:_l,use:Ha,useCallback:Ei,useContext:_l,useEffect:bi,useImperativeHandle:ji,useInsertionEffect:wi,useLayoutEffect:ki,useMemo:zi,useReducer:Ya,useRef:gi,useState:function(){return Ya(Ua)},useDebugValue:Ci,useDeferredValue:function(e,t){var n=Fa();return null===ka?_i(n,e,t):Ii(n,ka.memoizedState,e,t)},useTransition:function(){var e=Ya(Ua)[0],t=Fa().memoizedState;return["boolean"==typeof e?e:Va(e),t]},useSyncExternalStore:Ga,useId:Ni,useHostTransitionStatus:Di,useFormState:hi,useActionState:hi,useOptimistic:function(e,t){var n=Fa();return null!==ka?ni(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Wa,useCacheRefresh:Mi},qi=null,Xi=0;function Ji(e){var t=Xi;return Xi+=1,null===qi&&(qi=[]),Zl(qi,e,t)}function Zi(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function eo(e,t){if(t.$$typeof===f)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function to(e){return(0,e._init)(e._payload)}function no(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function l(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=$r(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Wr(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var l=n.type;return l===m?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===C&&to(l)===t.type)?(Zi(t=a(t,n.props),n),t.return=e,t):(Zi(t=Vr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function d(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ur(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function u(e,t,n,r,l){return null===t||7!==t.tag?((t=Hr(n,e.mode,r,l)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Wr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case p:return Zi(n=Vr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case h:return(t=Ur(t,e.mode,n)).return=e,t;case C:return f(e,t=(0,t._init)(t._payload),n)}if(P(t)||I(t))return(t=Hr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,Ji(t),n);if(t.$$typeof===b)return f(e,Il(e,t),n);eo(e,t)}return null}function g(e,t,n,r){var l=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==l?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case p:return n.key===l?c(e,t,n,r):null;case h:return n.key===l?d(e,t,n,r):null;case C:return g(e,t,n=(l=n._init)(n._payload),r)}if(P(n)||I(n))return null!==l?null:u(e,t,n,r,null);if("function"==typeof n.then)return g(e,t,Ji(n),r);if(n.$$typeof===b)return g(e,t,Il(e,n),r);eo(e,n)}return null}function y(e,t,n,r,l){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,l);if("object"==typeof r&&null!==r){switch(r.$$typeof){case p:return c(t,e=e.get(null===r.key?n:r.key)||null,r,l);case h:return d(t,e=e.get(null===r.key?n:r.key)||null,r,l);case C:return y(e,t,n,r=(0,r._init)(r._payload),l)}if(P(r)||I(r))return u(t,e=e.get(n)||null,r,l,null);if("function"==typeof r.then)return y(e,t,n,Ji(r),l);if(r.$$typeof===b)return y(e,t,n,Il(t,r),l);eo(t,r)}return null}function v(s,c,d,u){if("object"==typeof d&&null!==d&&d.type===m&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case p:e:{for(var x=d.key;null!==c;){if(c.key===x){if((x=d.type)===m){if(7===c.tag){n(s,c.sibling),(u=a(c,d.props.children)).return=s,s=u;break e}}else if(c.elementType===x||"object"==typeof x&&null!==x&&x.$$typeof===C&&to(x)===c.type){n(s,c.sibling),Zi(u=a(c,d.props),d),u.return=s,s=u;break e}n(s,c);break}t(s,c),c=c.sibling}d.type===m?((u=Hr(d.props.children,s.mode,u,d.key)).return=s,s=u):(Zi(u=Vr(d.type,d.key,d.props,null,s.mode,u),d),u.return=s,s=u)}return o(s);case h:e:{for(x=d.key;null!==c;){if(c.key===x){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(s,c.sibling),(u=a(c,d.children||[])).return=s,s=u;break e}n(s,c);break}t(s,c),c=c.sibling}(u=Ur(d,s.mode,u)).return=s,s=u}return o(s);case C:return v(s,c,d=(x=d._init)(d._payload),u)}if(P(d))return function(r,a,o,s){for(var c=null,d=null,u=a,p=a=0,h=null;null!==u&&p<o.length;p++){u.index>p?(h=u,u=null):h=u.sibling;var m=g(r,u,o[p],s);if(null===m){null===u&&(u=h);break}e&&u&&null===m.alternate&&t(r,u),a=i(m,a,p),null===d?c=m:d.sibling=m,d=m,u=h}if(p===o.length)return n(r,u),ol&&tl(r,p),c;if(null===u){for(;p<o.length;p++)null!==(u=f(r,o[p],s))&&(a=i(u,a,p),null===d?c=u:d.sibling=u,d=u);return ol&&tl(r,p),c}for(u=l(u);p<o.length;p++)null!==(h=y(u,r,p,o[p],s))&&(e&&null!==h.alternate&&u.delete(null===h.key?p:h.key),a=i(h,a,p),null===d?c=h:d.sibling=h,d=h);return e&&u.forEach(function(e){return t(r,e)}),ol&&tl(r,p),c}(s,c,d,u);if(I(d)){if("function"!=typeof(x=I(d)))throw Error(r(150));return function(a,o,s,c){if(null==s)throw Error(r(151));for(var d=null,u=null,p=o,h=o=0,m=null,v=s.next();null!==p&&!v.done;h++,v=s.next()){p.index>h?(m=p,p=null):m=p.sibling;var x=g(a,p,v.value,c);if(null===x){null===p&&(p=m);break}e&&p&&null===x.alternate&&t(a,p),o=i(x,o,h),null===u?d=x:u.sibling=x,u=x,p=m}if(v.done)return n(a,p),ol&&tl(a,h),d;if(null===p){for(;!v.done;h++,v=s.next())null!==(v=f(a,v.value,c))&&(o=i(v,o,h),null===u?d=v:u.sibling=v,u=v);return ol&&tl(a,h),d}for(p=l(p);!v.done;h++,v=s.next())null!==(v=y(p,a,h,v.value,c))&&(e&&null!==v.alternate&&p.delete(null===v.key?h:v.key),o=i(v,o,h),null===u?d=v:u.sibling=v,u=v);return e&&p.forEach(function(e){return t(a,e)}),ol&&tl(a,h),d}(s,c,d=x.call(d),u)}if("function"==typeof d.then)return v(s,c,Ji(d),u);if(d.$$typeof===b)return v(s,c,Il(s,d),u);eo(s,d)}return"string"==typeof d&&""!==d||"number"==typeof d||"bigint"==typeof d?(d=""+d,null!==c&&6===c.tag?(n(s,c.sibling),(u=a(c,d)).return=s,s=u):(n(s,c),(u=Wr(d,s.mode,u)).return=s,s=u),o(s)):n(s,c)}return function(e,t,n,r){try{Xi=0;var l=v(e,t,n,r);return qi=null,l}catch(i){if(i===Ql||i===Gl)throw i;var a=Or(29,i,null,e.mode);return a.lanes=r,a.return=e,a}}}var ro=no(!0),lo=no(!1),ao=O(null),io=null;function oo(e){var t=e.alternate;$(fo,1&fo.current),$(ao,e),null===io&&(null===t||null!==ma.current||null!==t.memoizedState)&&(io=e)}function so(e){if(22===e.tag){if($(fo,fo.current),$(ao,e),null===io){var t=e.alternate;null!==t&&null!==t.memoizedState&&(io=e)}}else co()}function co(){$(fo,fo.current),$(ao,ao.current)}function uo(e){B(ao),io===e&&(io=null),B(fo)}var fo=O(0);function po(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||vu(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ho(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:c({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var mo={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Nc(),l=ia(r);l.payload=t,null!=n&&(l.callback=n),null!==(t=oa(e,l,r))&&(Oc(t,e,r),sa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Nc(),l=ia(r);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=oa(e,l,r))&&(Oc(t,e,r),sa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nc(),r=ia(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=oa(e,r,n))&&(Oc(t,e,n),sa(t,e,n))}};function go(e,t,n,r,l,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Jn(n,r)||!Jn(l,a))}function yo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&mo.enqueueReplaceState(t,t.state,null)}function vo(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var l in n===t&&(n=c({},n)),e)void 0===n[l]&&(n[l]=e[l]);return n}var xo="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)};function bo(e){xo(e)}function wo(e){}function ko(e){xo(e)}function So(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function jo(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Co(e,t,n){return(n=ia(n)).tag=3,n.payload={element:null},n.callback=function(){So(e,t)},n}function Eo(e){return(e=ia(e)).tag=3,e}function zo(e,t,n,r){var l=n.type.getDerivedStateFromError;if("function"==typeof l){var a=r.value;e.payload=function(){return l(a)},e.callback=function(){jo(t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){jo(t,n,r),"function"!=typeof l&&(null===Ec?Ec=new Set([this]):Ec.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var _o=Error(r(461)),Io=!1;function Ro(e,t,n,r){t.child=null===e?lo(t,null,n,r):ro(t,e.child,n,r)}function To(e,t,n,r,l){n=n.render;var a=t.ref;if("ref"in r){var i={};for(var o in r)"ref"!==o&&(i[o]=r[o])}else i=r;return zl(t),r=La(e,t,n,i,a,l),o=Ma(),null===e||Io?(ol&&o&&rl(t),t.flags|=1,Ro(e,t,r,l),t.child):(Oa(e,t,l),Xo(e,t,l))}function Po(e,t,n,r,l){if(null===e){var a=n.type;return"function"!=typeof a||Br(a)||void 0!==a.defaultProps||null!==n.compare?((e=Vr(n.type,null,r,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Lo(e,t,a,r,l))}if(a=e.child,!Jo(e,l)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:Jn)(i,r)&&e.ref===t.ref)return Xo(e,t,l)}return t.flags|=1,(e=$r(a,r)).ref=t.ref,e.return=t,t.child=e}function Lo(e,t,n,r,l){if(null!==e){var a=e.memoizedProps;if(Jn(a,r)&&e.ref===t.ref){if(Io=!1,t.pendingProps=r=a,!Jo(e,l))return t.lanes=e.lanes,Xo(e,t,l);131072&e.flags&&(Io=!0)}}return Mo(e,t,n,r,l)}function Ao(e,t,n){var r=t.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==a?a.baseLanes|n:n,null!==e){for(l=t.child=e.child,a=0;null!==l;)a=a|l.lanes|l.childLanes,l=l.sibling;t.childLanes=a&~r}else t.childLanes=0,t.child=null;return Do(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Do(e,t,null!==a?a.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Ul(0,null!==a?a.cachePool:null),null!==a?ya(t,a):va(),so(t)}else null!==a?(Ul(0,a.cachePool),ya(t,a),co(),t.memoizedState=null):(null!==e&&Ul(0,null),va(),co());return Ro(e,t,l,n),t.child}function Do(e,t,n,r){var l=Wl();return l=null===l?null:{parent:Al._currentValue,pool:l},t.memoizedState={baseLanes:n,cachePool:l},null!==e&&Ul(0,null),va(),so(t),null!==e&&Cl(e,t,r,!0),null}function No(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Mo(e,t,n,r,l){return zl(t),n=La(e,t,n,r,void 0,l),r=Ma(),null===e||Io?(ol&&r&&rl(t),t.flags|=1,Ro(e,t,n,l),t.child):(Oa(e,t,l),Xo(e,t,l))}function Oo(e,t,n,r,l,a){return zl(t),t.updateQueue=null,n=Da(t,r,n,l),Aa(e),r=Ma(),null===e||Io?(ol&&r&&rl(t),t.flags|=1,Ro(e,t,n,a),t.child):(Oa(e,t,a),Xo(e,t,a))}function Bo(e,t,n,r,l){if(zl(t),null===t.stateNode){var a=Nr,i=n.contextType;"object"==typeof i&&null!==i&&(a=_l(i)),a=new n(r,a),t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=mo,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=r,a.state=t.memoizedState,a.refs={},la(t),i=n.contextType,a.context="object"==typeof i&&null!==i?_l(i):Nr,a.state=t.memoizedState,"function"==typeof(i=n.getDerivedStateFromProps)&&(ho(t,n,i,r),a.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(i=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),i!==a.state&&mo.enqueueReplaceState(a,a.state,null),fa(t,r,a,l),ua(),a.state=t.memoizedState),"function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){a=t.stateNode;var o=t.memoizedProps,s=vo(n,o);a.props=s;var c=a.context,d=n.contextType;i=Nr,"object"==typeof d&&null!==d&&(i=_l(d));var u=n.getDerivedStateFromProps;d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate,o=t.pendingProps!==o,d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o||c!==i)&&yo(t,a,r,i),ra=!1;var f=t.memoizedState;a.state=f,fa(t,r,a,l),ua(),c=t.memoizedState,o||f!==c||ra?("function"==typeof u&&(ho(t,n,u,r),c=t.memoizedState),(s=ra||go(t,n,s,r,f,c,i))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=i,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,aa(e,t),d=vo(n,i=t.memoizedProps),a.props=d,u=t.pendingProps,f=a.context,c=n.contextType,s=Nr,"object"==typeof c&&null!==c&&(s=_l(c)),(c="function"==typeof(o=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(i!==u||f!==s)&&yo(t,a,r,s),ra=!1,f=t.memoizedState,a.state=f,fa(t,r,a,l),ua();var p=t.memoizedState;i!==u||f!==p||ra||null!==e&&null!==e.dependencies&&El(e.dependencies)?("function"==typeof o&&(ho(t,n,o,r),p=t.memoizedState),(d=ra||go(t,n,d,r,f,p,s)||null!==e&&null!==e.dependencies&&El(e.dependencies))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=s,r=d):("function"!=typeof a.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,No(e,t),r=!!(128&t.flags),a||r?(a=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:a.render(),t.flags|=1,null!==e&&r?(t.child=ro(t,e.child,null,l),t.child=ro(t,null,n,l)):Ro(e,t,n,l),t.memoizedState=a.state,e=t.child):e=Xo(e,t,l),e}function $o(e,t,n,r){return ml(),t.flags|=256,Ro(e,t,n,r),t.child}var Fo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vo(e){return{baseLanes:e,cachePool:Kl()}}function Ho(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=vc),e}function Wo(e,t,n){var l,a=t.pendingProps,i=!1,o=!!(128&t.flags);if((l=o)||(l=(null===e||null!==e.memoizedState)&&!!(2&fo.current)),l&&(i=!0,t.flags&=-129),l=!!(32&t.flags),t.flags&=-33,null===e){if(ol){if(i?oo(t):co(),ol){var s,c=il;if(s=c){e:{for(s=c,c=cl;8!==s.nodeType;){if(!c){c=null;break e}if(null===(s=xu(s.nextSibling))){c=null;break e}}c=s}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==Jr?{id:Zr,overflow:el}:null,retryLane:536870912,hydrationErrors:null},(s=Or(18,null,null,0)).stateNode=c,s.return=t,t.child=s,al=t,il=null,s=!0):s=!1}s||ul(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return vu(c)?t.lanes=32:t.lanes=536870912,null;uo(t)}return c=a.children,a=a.fallback,i?(co(),c=Ko({mode:"hidden",children:c},i=t.mode),a=Hr(a,i,n,null),c.return=t,a.return=t,c.sibling=a,t.child=c,(i=t.child).memoizedState=Vo(n),i.childLanes=Ho(e,l,n),t.memoizedState=Fo,a):(oo(t),Uo(t,c))}if(null!==(s=e.memoizedState)&&null!==(c=s.dehydrated)){if(o)256&t.flags?(oo(t),t.flags&=-257,t=Qo(e,t,n)):null!==t.memoizedState?(co(),t.child=e.child,t.flags|=128,t=null):(co(),i=a.fallback,c=t.mode,a=Ko({mode:"visible",children:a.children},c),(i=Hr(i,c,n,null)).flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,ro(t,e.child,null,n),(a=t.child).memoizedState=Vo(n),a.childLanes=Ho(e,l,n),t.memoizedState=Fo,t=i);else if(oo(t),vu(c)){if(l=c.nextSibling&&c.nextSibling.dataset)var d=l.dgst;l=d,(a=Error(r(419))).stack="",a.digest=l,yl({value:a,source:null,stack:null}),t=Qo(e,t,n)}else if(Io||Cl(e,t,n,!1),l=0!==(n&e.childLanes),Io||l){if(null!==(l=ac)&&(0!==(a=0!==((a=42&(a=n&-n)?1:Re(a))&(l.suspendedLanes|n))?0:a)&&a!==s.retryLane))throw s.retryLane=a,Lr(e,a),Oc(l,e,a),_o;"$?"===c.data||Gc(),t=Qo(e,t,n)}else"$?"===c.data?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,il=xu(c.nextSibling),al=t,ol=!0,sl=null,cl=!1,null!==e&&(qr[Xr++]=Zr,qr[Xr++]=el,qr[Xr++]=Jr,Zr=e.id,el=e.overflow,Jr=t),(t=Uo(t,a.children)).flags|=4096);return t}return i?(co(),i=a.fallback,c=t.mode,d=(s=e.child).sibling,(a=$r(s,{mode:"hidden",children:a.children})).subtreeFlags=65011712&s.subtreeFlags,null!==d?i=$r(d,i):(i=Hr(i,c,n,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,null===(c=e.child.memoizedState)?c=Vo(n):(null!==(s=c.cachePool)?(d=Al._currentValue,s=s.parent!==d?{parent:d,pool:d}:s):s=Kl(),c={baseLanes:c.baseLanes|n,cachePool:s}),i.memoizedState=c,i.childLanes=Ho(e,l,n),t.memoizedState=Fo,a):(oo(t),e=(n=e.child).sibling,(n=$r(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(l=t.deletions)?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=n,t.memoizedState=null,n)}function Uo(e,t){return(t=Ko({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Ko(e,t){return(e=Or(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Qo(e,t,n){return ro(t,e.child,null,n),(e=Uo(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Yo(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Sl(e.return,t,n)}function Go(e,t,n,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=l)}function qo(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(Ro(e,t,r.children,n),2&(r=fo.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Yo(e,n,t);else if(19===e.tag)Yo(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch($(fo,r),l){case"forwards":for(n=t.child,l=null;null!==n;)null!==(e=n.alternate)&&null===po(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Go(t,!1,l,n,a);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===po(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Go(t,!0,n,null,a);break;case"together":Go(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xo(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),mc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Cl(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=$r(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$r(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Jo(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!El(e))}function Zo(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Io=!0;else{if(!(Jo(e,n)||128&t.flags))return Io=!1,function(e,t,n){switch(t.tag){case 3:U(t,t.stateNode.containerInfo),wl(0,Al,e.memoizedState.cache),ml();break;case 27:case 5:Q(t);break;case 4:U(t,t.stateNode.containerInfo);break;case 10:wl(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(oo(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Wo(e,t,n):(oo(t),null!==(e=Xo(e,t,n))?e.sibling:null);oo(t);break;case 19:var l=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Cl(e,t,n,!1),r=0!==(n&t.childLanes)),l){if(r)return qo(e,t,n);t.flags|=128}if(null!==(l=t.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),$(fo,fo.current),r)break;return null;case 22:case 23:return t.lanes=0,Ao(e,t,n);case 24:wl(0,Al,e.memoizedState.cache)}return Xo(e,t,n)}(e,t,n);Io=!!(131072&e.flags)}else Io=!1,ol&&1048576&t.flags&&nl(t,Gr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,a=l._init;if(l=a(l._payload),t.type=l,"function"!=typeof l){if(null!=l){if((a=l.$$typeof)===w){t.tag=11,t=To(null,t,l,e,n);break e}if(a===j){t.tag=14,t=Po(null,t,l,e,n);break e}}throw t=T(l)||l,Error(r(306,t,""))}Br(l)?(e=vo(l,e),t.tag=1,t=Bo(null,t,l,e,n)):(t.tag=0,t=Mo(null,t,l,e,n))}return t;case 0:return Mo(e,t,t.type,t.pendingProps,n);case 1:return Bo(e,t,l=t.type,a=vo(l,t.pendingProps),n);case 3:e:{if(U(t,t.stateNode.containerInfo),null===e)throw Error(r(387));l=t.pendingProps;var i=t.memoizedState;a=i.element,aa(e,t),fa(t,l,null,n);var o=t.memoizedState;if(l=o.cache,wl(0,Al,l),l!==i.cache&&jl(t,[Al],n,!0),ua(),l=o.element,i.isDehydrated){if(i={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=$o(e,t,l,n);break e}if(l!==a){yl(a=Er(Error(r(424)),t)),t=$o(e,t,l,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(il=xu(e.firstChild),al=t,ol=!0,sl=null,cl=!0,n=lo(t,null,l,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ml(),l===a){t=Xo(e,t,n);break e}Ro(e,t,l,n)}t=t.child}return t;case 26:return No(e,t),null===e?(n=Ru(t.type,null,t.pendingProps,null))?t.memoizedState=n:ol||(n=t.type,e=t.pendingProps,(l=au(H.current).createElement(n))[Ae]=t,l[De]=e,nu(l,n,e),Qe(l),t.stateNode=l):t.memoizedState=Ru(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Q(t),null===e&&ol&&(l=t.stateNode=ku(t.type,t.pendingProps,H.current),al=t,cl=!0,a=il,mu(t.type)?(bu=a,il=xu(l.firstChild)):il=a),Ro(e,t,t.pendingProps.children,n),No(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ol&&((a=l=il)&&(null!==(l=function(e,t,n,r){for(;1===e.nodeType;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Fe])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(a=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(a!==l.rel||e.getAttribute("href")!==(null==l.href||""===l.href?null:l.href)||e.getAttribute("crossorigin")!==(null==l.crossOrigin?null:l.crossOrigin)||e.getAttribute("title")!==(null==l.title?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((a=e.getAttribute("src"))!==(null==l.src?null:l.src)||e.getAttribute("type")!==(null==l.type?null:l.type)||e.getAttribute("crossorigin")!==(null==l.crossOrigin?null:l.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var a=null==l.name?null:""+l.name;if("hidden"===l.type&&e.getAttribute("name")===a)return e}if(null===(e=xu(e.nextSibling)))break}return null}(l,t.type,t.pendingProps,cl))?(t.stateNode=l,al=t,il=xu(l.firstChild),cl=!1,a=!0):a=!1),a||ul(t)),Q(t),a=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,l=i.children,su(a,i)?l=null:null!==o&&su(a,o)&&(t.flags|=32),null!==t.memoizedState&&(a=La(e,t,Na,null,null,n),qu._currentValue=a),No(e,t),Ro(e,t,l,n),t.child;case 6:return null===e&&ol&&((e=n=il)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=xu(e.nextSibling)))return null}return e}(n,t.pendingProps,cl))?(t.stateNode=n,al=t,il=null,e=!0):e=!1),e||ul(t)),null;case 13:return Wo(e,t,n);case 4:return U(t,t.stateNode.containerInfo),l=t.pendingProps,null===e?t.child=ro(t,null,l,n):Ro(e,t,l,n),t.child;case 11:return To(e,t,t.type,t.pendingProps,n);case 7:return Ro(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ro(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,wl(0,t.type,l.value),Ro(e,t,l.children,n),t.child;case 9:return a=t.type._context,l=t.pendingProps.children,zl(t),l=l(a=_l(a)),t.flags|=1,Ro(e,t,l,n),t.child;case 14:return Po(e,t,t.type,t.pendingProps,n);case 15:return Lo(e,t,t.type,t.pendingProps,n);case 19:return qo(e,t,n);case 31:return l=t.pendingProps,n=t.mode,l={mode:l.mode,children:l.children},null===e?((n=Ko(l,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=$r(e.child,l)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Ao(e,t,n);case 24:return zl(t),l=_l(Al),null===e?(null===(a=Wl())&&(a=ac,i=Dl(),a.pooledCache=i,i.refCount++,null!==i&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:l,cache:a},la(t),wl(0,Al,a)):(0!==(e.lanes&n)&&(aa(e,t),fa(t,null,null,n),ua()),a=e.memoizedState,i=t.memoizedState,a.parent!==l?(a={parent:l,cache:l},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),wl(0,Al,l)):(l=i.cache,wl(0,Al,l),l!==a.cache&&jl(t,[Al],n,!0))),Ro(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function es(e){e.flags|=4}function ts(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Hu(t)){if(null!==(t=ao.current)&&((4194048&oc)===oc?null!==io:(62914560&oc)!==oc&&!(536870912&oc)||t!==io))throw ea=ql,Yl;e.flags|=8192}}function ns(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ce():536870912,e.lanes|=t,xc|=t)}function rs(e,t){if(!ol)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ls(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=65011712&l.subtreeFlags,r|=65011712&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)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 as(e,t,n){var l=t.pendingProps;switch(ll(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return ls(t),null;case 3:return n=t.stateNode,l=null,null!==e&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),kl(Al),K(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(hl(t)?es(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,gl())),ls(t),null;case 26:return n=t.memoizedState,null===e?(es(t),null!==n?(ls(t),ts(t,n)):(ls(t),t.flags&=-16777217)):n?n!==e.memoizedState?(es(t),ls(t),ts(t,n)):(ls(t),t.flags&=-16777217):(e.memoizedProps!==l&&es(t),ls(t),t.flags&=-16777217),null;case 27:Y(t),n=H.current;var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==l&&es(t);else{if(!l){if(null===t.stateNode)throw Error(r(166));return ls(t),null}e=F.current,hl(t)?fl(t):(e=ku(a,l,n),t.stateNode=e,es(t))}return ls(t),null;case 5:if(Y(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==l&&es(t);else{if(!l){if(null===t.stateNode)throw Error(r(166));return ls(t),null}if(e=F.current,hl(t))fl(t);else{switch(a=au(H.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof l.is?a.createElement("select",{is:l.is}):a.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e="string"==typeof l.is?a.createElement(n,{is:l.is}):a.createElement(n)}}e[Ae]=t,e[De]=l;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(nu(e,n,l),n){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&es(t)}}return ls(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==l&&es(t);else{if("string"!=typeof l&&null===t.stateNode)throw Error(r(166));if(e=H.current,hl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,null!==(a=al))switch(a.tag){case 27:case 5:l=a.memoizedProps}e[Ae]=t,(e=!!(e.nodeValue===n||null!==l&&!0===l.suppressHydrationWarning||Jd(e.nodeValue,n)))||ul(t)}else(e=au(e).createTextNode(l))[Ae]=t,t.stateNode=e}return ls(t),null;case 13:if(l=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=hl(t),null!==l&&null!==l.dehydrated){if(null===e){if(!a)throw Error(r(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(r(317));a[Ae]=t}else ml(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ls(t),a=!1}else a=gl(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(uo(t),t):(uo(t),null)}if(uo(t),128&t.flags)return t.lanes=n,t;if(n=null!==l,e=null!==e&&null!==e.memoizedState,n){a=null,null!==(l=t.child).alternate&&null!==l.alternate.memoizedState&&null!==l.alternate.memoizedState.cachePool&&(a=l.alternate.memoizedState.cachePool.pool);var i=null;null!==l.memoizedState&&null!==l.memoizedState.cachePool&&(i=l.memoizedState.cachePool.pool),i!==a&&(l.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),ns(t,t.updateQueue),ls(t),null;case 4:return K(),null===e&&Vd(t.stateNode.containerInfo),ls(t),null;case 10:return kl(t.type),ls(t),null;case 19:if(B(fo),null===(a=t.memoizedState))return ls(t),null;if(l=!!(128&t.flags),null===(i=a.rendering))if(l)rs(a,!1);else{if(0!==hc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=po(e))){for(t.flags|=128,rs(a,!1),e=i.updateQueue,t.updateQueue=e,ns(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Fr(n,e),n=n.sibling;return $(fo,1&fo.current|2),t.child}e=e.sibling}null!==a.tail&&ee()>jc&&(t.flags|=128,l=!0,rs(a,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=po(i))){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,ns(t,e),rs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!ol)return ls(t),null}else 2*ee()-a.renderingStartTime>jc&&536870912!==n&&(t.flags|=128,l=!0,rs(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=a.last)?e.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ee(),t.sibling=null,e=fo.current,$(fo,l?1&e|2:1&e),t):(ls(t),null);case 22:case 23:return uo(t),xa(),l=null!==t.memoizedState,null!==e?null!==e.memoizedState!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?!!(536870912&n)&&!(128&t.flags)&&(ls(t),6&t.subtreeFlags&&(t.flags|=8192)):ls(t),null!==(n=t.updateQueue)&&ns(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),l=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),null!==e&&B(Hl),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),kl(Al),ls(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function is(e,t){switch(ll(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return kl(Al),K(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Y(t),null;case 13:if(uo(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));ml()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return B(fo),null;case 4:return K(),null;case 10:return kl(t.type),null;case 22:case 23:return uo(t),xa(),null!==e&&B(Hl),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return kl(Al),null;default:return null}}function os(e,t){switch(ll(t),t.tag){case 3:kl(Al),K();break;case 26:case 27:case 5:Y(t);break;case 4:K();break;case 13:uo(t);break;case 19:B(fo);break;case 10:kl(t.type);break;case 22:case 23:uo(t),xa(),null!==e&&B(Hl);break;case 24:kl(Al)}}function ss(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var l=r.next;n=l;do{if((n.tag&e)===e){r=void 0;var a=n.create,i=n.inst;r=a(),i.destroy=r}n=n.next}while(n!==l)}}catch(o){fd(t,t.return,o)}}function cs(e,t,n){try{var r=t.updateQueue,l=null!==r?r.lastEffect:null;if(null!==l){var a=l.next;r=a;do{if((r.tag&e)===e){var i=r.inst,o=i.destroy;if(void 0!==o){i.destroy=void 0,l=t;var s=n,c=o;try{c()}catch(d){fd(l,s,d)}}}r=r.next}while(r!==a)}}catch(d){fd(t,t.return,d)}}function ds(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{ha(t,n)}catch(r){fd(e,e.return,r)}}}function us(e,t,n){n.props=vo(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){fd(e,t,r)}}function fs(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(l){fd(e,t,l)}}function ps(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(l){fd(e,t,l)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(a){fd(e,t,a)}else n.current=null}function hs(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(l){fd(e,e.return,l)}}function ms(e,t,n){try{var l=e.stateNode;!function(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,s=null,c=null,d=null,u=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":c=f;default:l.hasOwnProperty(h)||eu(e,t,h,null,l,f)}}for(var p in l){var h=l[p];if(f=n[p],l.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":i=h;break;case"name":a=h;break;case"checked":d=h;break;case"defaultChecked":u=h;break;case"value":o=h;break;case"defaultValue":s=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&eu(e,t,p,h,l,f)}}return void vt(e,o,s,c,d,u,i,a);case"select":for(i in h=o=s=p=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":h=c;default:l.hasOwnProperty(i)||eu(e,t,i,null,l,c)}for(a in l)if(i=l[a],c=n[a],l.hasOwnProperty(a)&&(null!=i||null!=c))switch(a){case"value":p=i;break;case"defaultValue":s=i;break;case"multiple":o=i;default:i!==c&&eu(e,t,a,i,l,c)}return t=s,n=o,l=h,void(null!=p?wt(e,!!n,p,!1):!!l!=!!n&&(null!=t?wt(e,!!n,t,!0):wt(e,!!n,n?[]:"",!1)));case"textarea":for(s in h=p=null,n)if(a=n[s],n.hasOwnProperty(s)&&null!=a&&!l.hasOwnProperty(s))switch(s){case"value":case"children":break;default:eu(e,t,s,null,l,a)}for(o in l)if(a=l[o],i=n[o],l.hasOwnProperty(o)&&(null!=a||null!=i))switch(o){case"value":p=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(r(91));break;default:a!==i&&eu(e,t,o,a,l,i)}return void kt(e,p,h);case"option":for(var m in n)if(p=n[m],n.hasOwnProperty(m)&&null!=p&&!l.hasOwnProperty(m))if("selected"===m)e.selected=!1;else eu(e,t,m,null,l,p);for(c in l)if(p=l[c],h=n[c],l.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))if("selected"===c)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else eu(e,t,c,p,l,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!l.hasOwnProperty(g)&&eu(e,t,g,null,l,p);for(d in l)if(p=l[d],h=n[d],l.hasOwnProperty(d)&&p!==h&&(null!=p||null!=h))switch(d){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:eu(e,t,d,p,l,h)}return;default:if(_t(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!l.hasOwnProperty(y)&&tu(e,t,y,void 0,l,p);for(u in l)p=l[u],h=n[u],!l.hasOwnProperty(u)||p===h||void 0===p&&void 0===h||tu(e,t,u,p,l,h);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!l.hasOwnProperty(v)&&eu(e,t,v,null,l,p);for(f in l)p=l[f],h=n[f],!l.hasOwnProperty(f)||p===h||null==p&&null==h||eu(e,t,f,p,l,h)}(l,e.type,n,t),l[De]=t}catch(a){fd(e,e.return,a)}}function gs(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&mu(e.type)||4===e.tag}function ys(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||gs(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&mu(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function vs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zd));else if(4!==r&&(27===r&&mu(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&mu(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function bs(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);nu(t,r,n),t[Ae]=e,t[De]=n}catch(a){fd(e,e.return,a)}}var ws=!1,ks=!1,Ss=!1,js="function"==typeof WeakSet?WeakSet:Set,Cs=null;function Es(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Bs(e,n),4&r&&ss(5,n);break;case 1:if(Bs(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(i){fd(n,n.return,i)}else{var l=vo(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){fd(n,n.return,o)}}64&r&&ds(n),512&r&&fs(n,n.return);break;case 3:if(Bs(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{ha(e,t)}catch(i){fd(n,n.return,i)}}break;case 27:null===t&&4&r&&bs(n);case 26:case 5:Bs(e,n),null===t&&4&r&&hs(n),512&r&&fs(n,n.return);break;case 12:Bs(e,n);break;case 13:Bs(e,n),4&r&&Ps(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=gd.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||ws)){t=null!==t&&null!==t.memoizedState||ks,l=ws;var a=ks;ws=r,(ks=t)&&!a?Fs(e,n,!!(8772&n.subtreeFlags)):Bs(e,n),ws=l,ks=a}break;case 30:break;default:Bs(e,n)}}function zs(e){var t=e.alternate;null!==t&&(e.alternate=null,zs(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ve(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var _s=null,Is=!1;function Rs(e,t,n){for(n=n.child;null!==n;)Ts(e,t,n),n=n.sibling}function Ts(e,t,n){if(de&&"function"==typeof de.onCommitFiberUnmount)try{de.onCommitFiberUnmount(ce,n)}catch(a){}switch(n.tag){case 26:ks||ps(n,t),Rs(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:ks||ps(n,t);var r=_s,l=Is;mu(n.type)&&(_s=n.stateNode,Is=!1),Rs(e,t,n),Su(n.stateNode),_s=r,Is=l;break;case 5:ks||ps(n,t);case 6:if(r=_s,l=Is,_s=null,Rs(e,t,n),Is=l,null!==(_s=r))if(Is)try{(9===_s.nodeType?_s.body:"HTML"===_s.nodeName?_s.ownerDocument.body:_s).removeChild(n.stateNode)}catch(i){fd(n,t,i)}else try{_s.removeChild(n.stateNode)}catch(i){fd(n,t,i)}break;case 18:null!==_s&&(Is?(gu(9===(e=_s).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Rf(e)):gu(_s,n.stateNode));break;case 4:r=_s,l=Is,_s=n.stateNode.containerInfo,Is=!0,Rs(e,t,n),_s=r,Is=l;break;case 0:case 11:case 14:case 15:ks||cs(2,n,t),ks||cs(4,n,t),Rs(e,t,n);break;case 1:ks||(ps(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&us(n,t,r)),Rs(e,t,n);break;case 21:Rs(e,t,n);break;case 22:ks=(r=ks)||null!==n.memoizedState,Rs(e,t,n),ks=r;break;default:Rs(e,t,n)}}function Ps(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Rf(e)}catch(n){fd(t,t.return,n)}}function Ls(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new js),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new js),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){var r=yd.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function As(e,t){var n=t.deletions;if(null!==n)for(var l=0;l<n.length;l++){var a=n[l],i=e,o=t,s=o;e:for(;null!==s;){switch(s.tag){case 27:if(mu(s.type)){_s=s.stateNode,Is=!1;break e}break;case 5:_s=s.stateNode,Is=!1;break e;case 3:case 4:_s=s.stateNode.containerInfo,Is=!0;break e}s=s.return}if(null===_s)throw Error(r(160));Ts(i,o,a),_s=null,Is=!1,null!==(i=a.alternate)&&(i.return=null),a.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Ns(t,e),t=t.sibling}var Ds=null;function Ns(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:As(t,e),Ms(e),4&l&&(cs(3,e,e.return),ss(3,e),cs(5,e,e.return));break;case 1:As(t,e),Ms(e),512&l&&(ks||null===n||ps(n,n.return)),64&l&&ws&&(null!==(e=e.updateQueue)&&(null!==(l=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?l:n.concat(l))));break;case 26:var a=Ds;if(As(t,e),Ms(e),512&l&&(ks||null===n||ps(n,n.return)),4&l){var i=null!==n?n.memoizedState:null;if(l=e.memoizedState,null===n)if(null===l)if(null===e.stateNode){e:{l=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(l){case"title":(!(i=a.getElementsByTagName("title")[0])||i[Fe]||i[Ae]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=a.createElement(l),a.head.insertBefore(i,a.querySelector("head > title"))),nu(i,l,n),i[Ae]=e,Qe(i),l=i;break e;case"link":var o=Fu("link","href",a).get(l+(n.href||""));if(o)for(var s=0;s<o.length;s++)if((i=o[s]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){o.splice(s,1);break t}nu(i=a.createElement(l),l,n),a.head.appendChild(i);break;case"meta":if(o=Fu("meta","content",a).get(l+(n.content||"")))for(s=0;s<o.length;s++)if((i=o[s]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){o.splice(s,1);break t}nu(i=a.createElement(l),l,n),a.head.appendChild(i);break;default:throw Error(r(468,l))}i[Ae]=e,Qe(i),l=i}e.stateNode=l}else Vu(a,e.type,e.stateNode);else e.stateNode=Nu(a,l,e.memoizedProps);else i!==l?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===l?Vu(a,e.type,e.stateNode):Nu(a,l,e.memoizedProps)):null===l&&null!==e.stateNode&&ms(e,e.memoizedProps,n.memoizedProps)}break;case 27:As(t,e),Ms(e),512&l&&(ks||null===n||ps(n,n.return)),null!==n&&4&l&&ms(e,e.memoizedProps,n.memoizedProps);break;case 5:if(As(t,e),Ms(e),512&l&&(ks||null===n||ps(n,n.return)),32&e.flags){a=e.stateNode;try{jt(a,"")}catch(h){fd(e,e.return,h)}}4&l&&null!=e.stateNode&&ms(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&l&&(Ss=!0);break;case 6:if(As(t,e),Ms(e),4&l){if(null===e.stateNode)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(h){fd(e,e.return,h)}}break;case 3:if($u=null,a=Ds,Ds=Eu(t.containerInfo),As(t,e),Ds=a,Ms(e),4&l&&null!==n&&n.memoizedState.isDehydrated)try{Rf(t.containerInfo)}catch(h){fd(e,e.return,h)}Ss&&(Ss=!1,Os(e));break;case 4:l=Ds,Ds=Eu(e.stateNode.containerInfo),As(t,e),Ms(e),Ds=l;break;case 12:default:As(t,e),Ms(e);break;case 13:As(t,e),Ms(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Sc=ee()),4&l&&(null!==(l=e.updateQueue)&&(e.updateQueue=null,Ls(e,l)));break;case 22:a=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,d=ws,u=ks;if(ws=d||a,ks=u||c,As(t,e),ks=u,ws=d,Ms(e),8192&l)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===n||c||ws||ks||$s(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(i=c.stateNode,a)"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none";else{s=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;s.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(h){fd(c,c.return,h)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(h){fd(c,c.return,h)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&l&&(null!==(l=e.updateQueue)&&(null!==(n=l.retryQueue)&&(l.retryQueue=null,Ls(e,n))));break;case 19:As(t,e),Ms(e),4&l&&(null!==(l=e.updateQueue)&&(e.updateQueue=null,Ls(e,l)));case 30:case 21:}}function Ms(e){var t=e.flags;if(2&t){try{for(var n,l=e.return;null!==l;){if(gs(l)){n=l;break}l=l.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var a=n.stateNode;xs(e,ys(e),a);break;case 5:var i=n.stateNode;32&n.flags&&(jt(i,""),n.flags&=-33),xs(e,ys(e),i);break;case 3:case 4:var o=n.stateNode.containerInfo;vs(e,ys(e),o);break;default:throw Error(r(161))}}catch(s){fd(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Os(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Os(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Bs(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Es(e,t.alternate,t),t=t.sibling}function $s(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:cs(4,t,t.return),$s(t);break;case 1:ps(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&us(t,t.return,n),$s(t);break;case 27:Su(t.stateNode);case 26:case 5:ps(t,t.return),$s(t);break;case 22:null===t.memoizedState&&$s(t);break;default:$s(t)}e=e.sibling}}function Fs(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,l=e,a=t,i=a.flags;switch(a.tag){case 0:case 11:case 15:Fs(l,a,n),ss(4,a);break;case 1:if(Fs(l,a,n),"function"==typeof(l=(r=a).stateNode).componentDidMount)try{l.componentDidMount()}catch(c){fd(r,r.return,c)}if(null!==(l=(r=a).updateQueue)){var o=r.stateNode;try{var s=l.shared.hiddenCallbacks;if(null!==s)for(l.shared.hiddenCallbacks=null,l=0;l<s.length;l++)pa(s[l],o)}catch(c){fd(r,r.return,c)}}n&&64&i&&ds(a),fs(a,a.return);break;case 27:bs(a);case 26:case 5:Fs(l,a,n),n&&null===r&&4&i&&hs(a),fs(a,a.return);break;case 12:Fs(l,a,n);break;case 13:Fs(l,a,n),n&&4&i&&Ps(l,a);break;case 22:null===a.memoizedState&&Fs(l,a,n),fs(a,a.return);break;case 30:break;default:Fs(l,a,n)}t=t.sibling}}function Vs(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Nl(n))}function Hs(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Nl(e))}function Ws(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Us(e,t,n,r),t=t.sibling}function Us(e,t,n,r){var l=t.flags;switch(t.tag){case 0:case 11:case 15:Ws(e,t,n,r),2048&l&&ss(9,t);break;case 1:case 13:default:Ws(e,t,n,r);break;case 3:Ws(e,t,n,r),2048&l&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Nl(e)));break;case 12:if(2048&l){Ws(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,i=a.id,o=a.onPostCommit;"function"==typeof o&&o(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(s){fd(t,t.return,s)}}else Ws(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,i=t.alternate,null!==t.memoizedState?2&a._visibility?Ws(e,t,n,r):Qs(e,t):2&a._visibility?Ws(e,t,n,r):(a._visibility|=2,Ks(e,t,n,r,!!(10256&t.subtreeFlags))),2048&l&&Vs(i,t);break;case 24:Ws(e,t,n,r),2048&l&&Hs(t.alternate,t)}}function Ks(e,t,n,r,l){for(l=l&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var a=e,i=t,o=n,s=r,c=i.flags;switch(i.tag){case 0:case 11:case 15:Ks(a,i,o,s,l),ss(8,i);break;case 23:break;case 22:var d=i.stateNode;null!==i.memoizedState?2&d._visibility?Ks(a,i,o,s,l):Qs(a,i):(d._visibility|=2,Ks(a,i,o,s,l)),l&&2048&c&&Vs(i.alternate,i);break;case 24:Ks(a,i,o,s,l),l&&2048&c&&Hs(i.alternate,i);break;default:Ks(a,i,o,s,l)}t=t.sibling}}function Qs(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,l=r.flags;switch(r.tag){case 22:Qs(n,r),2048&l&&Vs(r.alternate,r);break;case 24:Qs(n,r),2048&l&&Hs(r.alternate,r);break;default:Qs(n,r)}t=t.sibling}}var Ys=8192;function Gs(e){if(e.subtreeFlags&Ys)for(e=e.child;null!==e;)qs(e),e=e.sibling}function qs(e){switch(e.tag){case 26:Gs(e),e.flags&Ys&&null!==e.memoizedState&&function(e,t,n){if(null===Wu)throw Error(r(475));var l=Wu;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var a=Tu(n.href),i=e.querySelector(Pu(a));if(i)return null!==(e=i._p)&&"object"==typeof e&&"function"==typeof e.then&&(l.count++,l=Ku.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=i,void Qe(i);i=e.ownerDocument||e,n=Lu(n),(a=ju.get(a))&&Ou(n,a),Qe(i=i.createElement("link"));var o=i;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),nu(i,"link",n),t.instance=i}null===l.stylesheets&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(l.count++,t=Ku.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}(Ds,e.memoizedState,e.memoizedProps);break;case 5:default:Gs(e);break;case 3:case 4:var t=Ds;Ds=Eu(e.stateNode.containerInfo),Gs(e),Ds=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Ys,Ys=16777216,Gs(e),Ys=t):Gs(e))}}function Xs(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Js(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Cs=r,tc(r,e)}Xs(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Zs(e),e=e.sibling}function Zs(e){switch(e.tag){case 0:case 11:case 15:Js(e),2048&e.flags&&cs(9,e,e.return);break;case 3:case 12:default:Js(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,ec(e)):Js(e)}}function ec(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Cs=r,tc(r,e)}Xs(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:cs(8,t,t.return),ec(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,ec(t));break;default:ec(t)}e=e.sibling}}function tc(e,t){for(;null!==Cs;){var n=Cs;switch(n.tag){case 0:case 11:case 15:cs(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Nl(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Cs=r;else e:for(n=e;null!==Cs;){var l=(r=Cs).sibling,a=r.return;if(zs(r),r===n){Cs=null;break e}if(null!==l){l.return=a,Cs=l;break e}Cs=a}}}var nc={getCacheForType:function(e){var t=_l(Al),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},rc="function"==typeof WeakMap?WeakMap:Map,lc=0,ac=null,ic=null,oc=0,sc=0,cc=null,dc=!1,uc=!1,fc=!1,pc=0,hc=0,mc=0,gc=0,yc=0,vc=0,xc=0,bc=null,wc=null,kc=!1,Sc=0,jc=1/0,Cc=null,Ec=null,zc=0,_c=null,Ic=null,Rc=0,Tc=0,Pc=null,Lc=null,Ac=0,Dc=null;function Nc(){if(2&lc&&0!==oc)return oc&-oc;if(null!==L.T){return 0!==Bl?Bl:Td()}return Pe()}function Mc(){0===vc&&(vc=536870912&oc&&!ol?536870912:je());var e=ao.current;return null!==e&&(e.flags|=32),vc}function Oc(e,t,n){(e!==ac||2!==sc&&9!==sc)&&null===e.cancelPendingCommit||(Uc(e,0),Vc(e,oc,vc,!1)),ze(e,n),2&lc&&e===ac||(e===ac&&(!(2&lc)&&(gc|=n),4===hc&&Vc(e,oc,vc,!1)),jd(e))}function Bc(e,t,n){if(6&lc)throw Error(r(327));for(var l=!n&&!(124&t)&&0===(t&e.expiredLanes)||we(e,t),a=l?function(e,t){var n=lc;lc|=2;var l=Qc(),a=Yc();ac!==e||oc!==t?(Cc=null,jc=ee()+500,Uc(e,t)):uc=we(e,t);e:for(;;)try{if(0!==sc&&null!==ic){t=ic;var i=cc;t:switch(sc){case 1:sc=0,cc=null,td(e,t,i,1);break;case 2:case 9:if(Xl(i)){sc=0,cc=null,ed(t);break}t=function(){2!==sc&&9!==sc||ac!==e||(sc=7),jd(e)},i.then(t,t);break e;case 3:sc=7;break e;case 4:sc=5;break e;case 7:Xl(i)?(sc=0,cc=null,ed(t)):(sc=0,cc=null,td(e,t,i,7));break;case 5:var o=null;switch(ic.tag){case 26:o=ic.memoizedState;case 5:case 27:var s=ic;if(!o||Hu(o)){sc=0,cc=null;var c=s.sibling;if(null!==c)ic=c;else{var d=s.return;null!==d?(ic=d,nd(d)):ic=null}break t}}sc=0,cc=null,td(e,t,i,5);break;case 6:sc=0,cc=null,td(e,t,i,6);break;case 8:Wc(),hc=6;break e;default:throw Error(r(462))}}Jc();break}catch(u){Kc(e,u)}return bl=xl=null,L.H=l,L.A=a,lc=n,null!==ic?0:(ac=null,oc=0,Rr(),hc)}(e,t):qc(e,t,!0),i=l;;){if(0===a){uc&&!l&&Vc(e,t,0,!1);break}if(n=e.current.alternate,!i||Fc(n)){if(2===a){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=0!==(o=-536870913&e.pendingLanes)?o:536870912&o?536870912:0;if(0!==o){t=o;e:{var s=e;a=bc;var c=s.current.memoizedState.isDehydrated;if(c&&(Uc(s,o).flags|=256),2!==(o=qc(s,o,!1))){if(fc&&!c){s.errorRecoveryDisabledLanes|=i,gc|=i,a=4;break e}i=wc,wc=a,null!==i&&(null===wc?wc=i:wc.push.apply(wc,i))}a=o}if(i=!1,2!==a)continue}}if(1===a){Uc(e,0),Vc(e,t,0,!0);break}e:{switch(l=e,i=a){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:Vc(l,t,vc,!dc);break e;case 2:wc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(a=Sc+300-ee())){if(Vc(l,t,vc,!dc),0!==be(l,0,!0))break e;l.timeoutHandle=du($c.bind(null,l,n,wc,Cc,kc,t,vc,gc,xc,dc,i,2,-0,0),a)}else $c(l,n,wc,Cc,kc,t,vc,gc,xc,dc,i,0,-0,0)}break}a=qc(e,t,!1),i=!1}jd(e)}function $c(e,t,n,l,a,i,o,s,c,d,u,f,p,h){if(e.timeoutHandle=-1,(8192&(f=t.subtreeFlags)||!(16785408&~f))&&(Wu={stylesheets:null,count:0,unsuspend:Uu},qs(t),null!==(f=function(){if(null===Wu)throw Error(r(475));var e=Wu;return e.stylesheets&&0===e.count&&Yu(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Yu(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=f(ld.bind(null,e,t,i,n,l,a,o,s,c,u,1,p,h)),void Vc(e,i,o,!d);ld(e,t,i,n,l,a,o,s,c)}function Fc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var l=n[r],a=l.getSnapshot;l=l.value;try{if(!Xn(a(),l))return!1}catch(i){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vc(e,t,n,r){t&=~yc,t&=~gc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var l=t;0<l;){var a=31-fe(l),i=1<<a;r[a]=-1,l&=~i}0!==n&&_e(e,n,t)}function Hc(){return!!(6&lc)||(Cd(0),!1)}function Wc(){if(null!==ic){if(0===sc)var e=ic.return;else bl=xl=null,Ba(e=ic),qi=null,Xi=0,e=ic;for(;null!==e;)os(e.alternate,e),e=e.return;ic=null}}function Uc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,uu(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Wc(),ac=e,ic=n=$r(e.current,null),oc=t,sc=0,cc=null,dc=!1,uc=we(e,t),fc=!1,xc=vc=yc=gc=mc=hc=0,wc=bc=null,kc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var l=31-fe(r),a=1<<l;t|=e[l],r&=~a}return pc=t,Rr(),n}function Kc(e,t){wa=null,L.H=Ki,t===Ql||t===Gl?(t=ta(),sc=3):t===Yl?(t=ta(),sc=4):sc=t===_o?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,cc=t,null===ic&&(hc=1,So(e,Er(t,e.current)))}function Qc(){var e=L.H;return L.H=Ki,null===e?Ki:e}function Yc(){var e=L.A;return L.A=nc,e}function Gc(){hc=4,dc||(4194048&oc)!==oc&&null!==ao.current||(uc=!0),!(134217727&mc)&&!(134217727&gc)||null===ac||Vc(ac,oc,vc,!1)}function qc(e,t,n){var r=lc;lc|=2;var l=Qc(),a=Yc();ac===e&&oc===t||(Cc=null,Uc(e,t)),t=!1;var i=hc;e:for(;;)try{if(0!==sc&&null!==ic){var o=ic,s=cc;switch(sc){case 8:Wc(),i=6;break e;case 3:case 2:case 9:case 6:null===ao.current&&(t=!0);var c=sc;if(sc=0,cc=null,td(e,o,s,c),n&&uc){i=0;break e}break;default:c=sc,sc=0,cc=null,td(e,o,s,c)}}Xc(),i=hc;break}catch(d){Kc(e,d)}return t&&e.shellSuspendCounter++,bl=xl=null,lc=r,L.H=l,L.A=a,null===ic&&(ac=null,oc=0,Rr()),i}function Xc(){for(;null!==ic;)Zc(ic)}function Jc(){for(;null!==ic&&!J();)Zc(ic)}function Zc(e){var t=Zo(e.alternate,e,pc);e.memoizedProps=e.pendingProps,null===t?nd(e):ic=t}function ed(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Oo(n,t,t.pendingProps,t.type,void 0,oc);break;case 11:t=Oo(n,t,t.pendingProps,t.type.render,t.ref,oc);break;case 5:Ba(t);default:os(n,t),t=Zo(n,t=ic=Fr(t,pc),pc)}e.memoizedProps=e.pendingProps,null===t?nd(e):ic=t}function td(e,t,n,l){bl=xl=null,Ba(t),qi=null,Xi=0;var a=t.return;try{if(function(e,t,n,l,a){if(n.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){if(null!==(t=n.alternate)&&Cl(t,n,a,!0),null!==(n=ao.current)){switch(n.tag){case 13:return null===io?Gc():null===n.alternate&&0===hc&&(hc=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===ql?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([l]):t.add(l),pd(e,l,a)),!1;case 22:return n.flags|=65536,l===ql?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([l]):n.add(l),pd(e,l,a)),!1}throw Error(r(435,n.tag))}return pd(e,l,a),Gc(),!1}if(ol)return null!==(t=ao.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,l!==dl&&yl(Er(e=Error(r(422),{cause:l}),n))):(l!==dl&&yl(Er(t=Error(r(423),{cause:l}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,l=Er(l,n),ca(e,a=Co(e.stateNode,l,a)),4!==hc&&(hc=2)),!1;var i=Error(r(520),{cause:l});if(i=Er(i,n),null===bc?bc=[i]:bc.push(i),4!==hc&&(hc=2),null===t)return!0;l=Er(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,ca(n,e=Co(n.stateNode,l,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==Ec&&Ec.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,zo(a=Eo(a),e,n,l),ca(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,oc))return hc=1,So(e,Er(n,e.current)),void(ic=null)}catch(i){if(null!==a)throw ic=a,i;return hc=1,So(e,Er(n,e.current)),void(ic=null)}32768&t.flags?(ol||1===l?e=!0:uc||536870912&oc?e=!1:(dc=e=!0,(2===l||9===l||3===l||6===l)&&(null!==(l=ao.current)&&13===l.tag&&(l.flags|=16384))),rd(t,e)):nd(t)}function nd(e){var t=e;do{if(32768&t.flags)return void rd(t,dc);e=t.return;var n=as(t.alternate,t,pc);if(null!==n)return void(ic=n);if(null!==(t=t.sibling))return void(ic=t);ic=t=e}while(null!==t);0===hc&&(hc=5)}function rd(e,t){do{var n=is(e.alternate,e);if(null!==n)return n.flags&=32767,void(ic=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(ic=e);ic=e=n}while(null!==e);hc=6,ic=null}function ld(e,t,n,l,a,i,o,s,c){e.cancelPendingCommit=null;do{cd()}while(0!==zc);if(6&lc)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,l,a){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,s=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var d=31-fe(n),u=1<<d;o[d]=0,s[d]=-1;var f=c[d];if(null!==f)for(c[d]=null,d=0;d<f.length;d++){var p=f[d];null!==p&&(p.lane&=-536870913)}n&=~u}0!==r&&_e(e,r,0),0!==a&&0===l&&0!==e.tag&&(e.suspendedLanes|=a&~(i&~t))}(e,n,i|=Ir,o,s,c),e===ac&&(ic=ac=null,oc=0),Ic=t,_c=e,Rc=n,Tc=i,Pc=a,Lc=l,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,q(le,function(){return dd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=!!(13878&t.flags),13878&t.subtreeFlags||l){l=L.T,L.T=null,a=A.p,A.p=2,o=lc,lc|=4;try{!function(e,t){if(e=e.containerInfo,ru=lf,rr(e=nr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var l=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(l&&0!==l.rangeCount){n=l.anchorNode;var a=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{n.nodeType,i.nodeType}catch(g){n=null;break e}var o=0,s=-1,c=-1,d=0,u=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==a&&3!==f.nodeType||(s=o+a),f!==i||0!==l&&3!==f.nodeType||(c=o+l),3===f.nodeType&&(o+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++d===a&&(s=o),p===i&&++u===l&&(c=o),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(lu={focusedElem:e,selectionRange:n},lf=!1,Cs=t;null!==Cs;)if(e=(t=Cs).child,1024&t.subtreeFlags&&null!==e)e.return=t,Cs=e;else for(;null!==Cs;){switch(i=(t=Cs).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,l=n.stateNode;try{var m=vo(n.type,a,(n.elementType,n.type));e=l.getSnapshotBeforeUpdate(m,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(y){fd(n,n.return,y)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))yu(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yu(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Cs=e;break}Cs=t.return}}(e,t)}finally{lc=o,A.p=a,L.T=l}}zc=1,ad(),id(),od()}}function ad(){if(1===zc){zc=0;var e=_c,t=Ic,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=L.T,L.T=null;var r=A.p;A.p=2;var l=lc;lc|=4;try{Ns(t,e);var a=lu,i=nr(e.containerInfo),o=a.focusedElem,s=a.selectionRange;if(i!==o&&o&&o.ownerDocument&&tr(o.ownerDocument.documentElement,o)){if(null!==s&&rr(o)){var c=s.start,d=s.end;if(void 0===d&&(d=c),"selectionStart"in o)o.selectionStart=c,o.selectionEnd=Math.min(d,o.value.length);else{var u=o.ownerDocument||document,f=u&&u.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=o.textContent.length,m=Math.min(s.start,h),g=void 0===s.end?m:Math.min(s.end,h);!p.extend&&m>g&&(i=g,g=m,m=i);var y=er(o,m),v=er(o,g);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var x=u.createRange();x.setStart(y.node,y.offset),p.removeAllRanges(),m>g?(p.addRange(x),p.extend(v.node,v.offset)):(x.setEnd(v.node,v.offset),p.addRange(x))}}}}for(u=[],p=o;p=p.parentNode;)1===p.nodeType&&u.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof o.focus&&o.focus(),o=0;o<u.length;o++){var b=u[o];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}lf=!!ru,lu=ru=null}finally{lc=l,A.p=r,L.T=n}}e.current=t,zc=2}}function id(){if(2===zc){zc=0;var e=_c,t=Ic,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=L.T,L.T=null;var r=A.p;A.p=2;var l=lc;lc|=4;try{Es(e,t.alternate,t)}finally{lc=l,A.p=r,L.T=n}}zc=3}}function od(){if(4===zc||3===zc){zc=0,Z();var e=_c,t=Ic,n=Rc,r=Lc;10256&t.subtreeFlags||10256&t.flags?zc=5:(zc=0,Ic=_c=null,sd(e,e.pendingLanes));var l=e.pendingLanes;if(0===l&&(Ec=null),Te(n),t=t.stateNode,de&&"function"==typeof de.onCommitFiberRoot)try{de.onCommitFiberRoot(ce,t,void 0,!(128&~t.current.flags))}catch(s){}if(null!==r){t=L.T,l=A.p,A.p=2,L.T=null;try{for(var a=e.onRecoverableError,i=0;i<r.length;i++){var o=r[i];a(o.value,{componentStack:o.stack})}}finally{L.T=t,A.p=l}}3&Rc&&cd(),jd(e),l=e.pendingLanes,4194090&n&&42&l?e===Dc?Ac++:(Ac=0,Dc=e):Ac=0,Cd(0)}}function sd(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Nl(t)))}function cd(e){return ad(),id(),od(),dd()}function dd(){if(5!==zc)return!1;var e=_c,t=Tc;Tc=0;var n=Te(Rc),l=L.T,a=A.p;try{A.p=32>n?32:n,L.T=null,n=Pc,Pc=null;var i=_c,o=Rc;if(zc=0,Ic=_c=null,Rc=0,6&lc)throw Error(r(331));var s=lc;if(lc|=4,Zs(i.current),Us(i,i.current,o,n),lc=s,Cd(0,!1),de&&"function"==typeof de.onPostCommitFiberRoot)try{de.onPostCommitFiberRoot(ce,i)}catch(c){}return!0}finally{A.p=a,L.T=l,sd(e,t)}}function ud(e,t,n){t=Er(n,t),null!==(e=oa(e,t=Co(e.stateNode,t,2),2))&&(ze(e,2),jd(e))}function fd(e,t,n){if(3===e.tag)ud(e,e,n);else for(;null!==t;){if(3===t.tag){ud(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ec||!Ec.has(r))){e=Er(n,e),null!==(r=oa(t,n=Eo(2),2))&&(zo(n,r,t,e),ze(r,2),jd(r));break}}t=t.return}}function pd(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(fc=!0,l.add(n),e=hd.bind(null,e,t,n),t.then(e,e))}function hd(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ac===e&&(oc&n)===n&&(4===hc||3===hc&&(62914560&oc)===oc&&300>ee()-Sc?!(2&lc)&&Uc(e,0):yc|=n,xc===oc&&(xc=0)),jd(e)}function md(e,t){0===t&&(t=Ce()),null!==(e=Lr(e,t))&&(ze(e,t),jd(e))}function gd(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),md(e,n)}function yd(e,t){var n=0;switch(e.tag){case 13:var l=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==l&&l.delete(t),md(e,n)}var vd=null,xd=null,bd=!1,wd=!1,kd=!1,Sd=0;function jd(e){e!==xd&&null===e.next&&(null===xd?vd=xd=e:xd=xd.next=e),wd=!0,bd||(bd=!0,pu(function(){6&lc?q(ne,Ed):zd()}))}function Cd(e,t){if(!kd&&wd){kd=!0;do{for(var n=!1,r=vd;null!==r;){if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var i=r.suspendedLanes,o=r.pingedLanes;a=(1<<31-fe(42|e)+1)-1,a=201326741&(a&=l&~(i&~o))?201326741&a|1:a?2|a:0}0!==a&&(n=!0,Rd(r,a))}else a=oc,!(3&(a=be(r,r===ac?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||we(r,a)||(n=!0,Rd(r,a));r=r.next}}while(n);kd=!1}}function Ed(){zd()}function zd(){wd=bd=!1;var e=0;0!==Sd&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==cu&&(cu=e,!0);return cu=null,!1}()&&(e=Sd),Sd=0);for(var t=ee(),n=null,r=vd;null!==r;){var l=r.next,a=_d(r,t);0===a?(r.next=null,null===n?vd=l:n.next=l,null===l&&(xd=n)):(n=r,(0!==e||3&a)&&(wd=!0)),r=l}Cd(e)}function _d(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var i=31-fe(a),o=1<<i,s=l[i];-1===s?0!==(o&n)&&0===(o&r)||(l[i]=Se(o,t)):s<=t&&(e.expiredLanes|=o),a&=~o}if(n=oc,n=be(e,e===(t=ac)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===sc||9===sc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&X(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||we(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&X(r),Te(n)){case 2:case 8:n=re;break;case 32:default:n=le;break;case 268435456:n=ie}return r=Id.bind(null,e),n=q(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&X(r),e.callbackPriority=2,e.callbackNode=null,2}function Id(e,t){if(0!==zc&&5!==zc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cd()&&e.callbackNode!==n)return null;var r=oc;return 0===(r=be(e,e===ac?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Bc(e,r,t),_d(e,ee()),null!=e.callbackNode&&e.callbackNode===n?Id.bind(null,e):null)}function Rd(e,t){if(cd())return null;Bc(e,t,!0)}function Td(){return 0===Sd&&(Sd=je()),Sd}function Pd(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Tt(""+e)}function Ld(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Ad=0;Ad<Sr.length;Ad++){var Dd=Sr[Ad];jr(Dd.toLowerCase(),"on"+(Dd[0].toUpperCase()+Dd.slice(1)))}jr(mr,"onAnimationEnd"),jr(gr,"onAnimationIteration"),jr(yr,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(vr,"onTransitionRun"),jr(xr,"onTransitionStart"),jr(br,"onTransitionCancel"),jr(wr,"onTransitionEnd"),Xe("onMouseEnter",["mouseout","mouseover"]),Xe("onMouseLeave",["mouseout","mouseover"]),Xe("onPointerEnter",["pointerout","pointerover"]),Xe("onPointerLeave",["pointerout","pointerover"]),qe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qe("onBeforeInput",["compositionend","keypress","textInput","paste"]),qe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nd="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(" "),Md=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nd));function Od(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var o=r[i],s=o.instance,c=o.currentTarget;if(o=o.listener,s!==a&&l.isPropagationStopped())break e;a=o,l.currentTarget=c;try{a(l)}catch(d){xo(d)}l.currentTarget=null,a=s}else for(i=0;i<r.length;i++){if(s=(o=r[i]).instance,c=o.currentTarget,o=o.listener,s!==a&&l.isPropagationStopped())break e;a=o,l.currentTarget=c;try{a(l)}catch(d){xo(d)}l.currentTarget=null,a=s}}}}function Bd(e,t){var n=t[Me];void 0===n&&(n=t[Me]=new Set);var r=e+"__bubble";n.has(r)||(Hd(t,e,2,!1),n.add(r))}function $d(e,t,n){var r=0;t&&(r|=4),Hd(n,e,r,t)}var Fd="_reactListening"+Math.random().toString(36).slice(2);function Vd(e){if(!e[Fd]){e[Fd]=!0,Ye.forEach(function(t){"selectionchange"!==t&&(Md.has(t)||$d(t,!1,e),$d(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fd]||(t[Fd]=!0,$d("selectionchange",!1,t))}}function Hd(e,t,n,r){switch(ff(t)){case 2:var l=af;break;case 8:l=of;break;default:l=sf}n=l.bind(null,t,n,e),l=void 0,!Ft||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(l=!0),r?void 0!==l?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):void 0!==l?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Wd(e,t,n,r,l){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===l)break;if(4===o)for(o=r.return;null!==o;){var c=o.tag;if((3===c||4===c)&&o.stateNode.containerInfo===l)return;o=o.return}for(;null!==s;){if(null===(o=He(s)))return;if(5===(c=o.tag)||6===c||26===c||27===c){r=i=o;continue e}s=s.parentNode}}r=r.return}Ot(function(){var r=i,l=Lt(n),o=[];e:{var s=kr.get(e);if(void 0!==s){var c=tn,d=e;switch(e){case"keypress":if(0===Qt(n))break e;case"keydown":case"keyup":c=yn;break;case"focusin":d="focus",c=sn;break;case"focusout":d="blur",c=sn;break;case"beforeblur":case"afterblur":c=sn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=an;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=on;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=xn;break;case mr:case gr:case yr:c=cn;break;case wr:c=bn;break;case"scroll":case"scrollend":c=rn;break;case"wheel":c=wn;break;case"copy":case"cut":case"paste":c=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=vn;break;case"toggle":case"beforetoggle":c=kn}var u=!!(4&t),f=!u&&("scroll"===e||"scrollend"===e),p=u?null!==s?s+"Capture":null:s;u=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===p||null!=(g=Bt(m,p))&&u.push(Ud(m,g,h)),f)break;m=m.return}0<u.length&&(s=new c(s,d,null,n,l),o.push({event:s,listeners:u}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Pt||!(d=n.relatedTarget||n.fromElement)||!He(d)&&!d[Ne])&&(c||s)&&(s=l.window===l?l:(s=l.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(d=(d=n.relatedTarget||n.toElement)?He(d):null)&&(f=a(d),u=d.tag,d!==f||5!==u&&27!==u&&6!==u)&&(d=null)):(c=null,d=r),c!==d)){if(u=an,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=vn,g="onPointerLeave",p="onPointerEnter",m="pointer"),f=null==c?s:Ue(c),h=null==d?s:Ue(d),(s=new u(g,m+"leave",c,n,l)).target=f,s.relatedTarget=h,g=null,He(l)===r&&((u=new u(p,m+"enter",d,n,l)).target=h,u.relatedTarget=f,g=u),f=g,c&&d)e:{for(p=d,m=0,h=u=c;h;h=Qd(h))m++;for(h=0,g=p;g;g=Qd(g))h++;for(;0<m-h;)u=Qd(u),m--;for(;0<h-m;)p=Qd(p),h--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=Qd(u),p=Qd(p)}u=null}else u=null;null!==c&&Yd(o,s,c,u,!1),null!==d&&null!==f&&Yd(o,f,d,u,!0)}if("select"===(c=(s=r?Ue(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var y=$n;else if(An(s))if(Fn)y=qn;else{y=Yn;var v=Qn}else!(c=s.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&_t(r.elementType)&&(y=$n):y=Gn;switch(y&&(y=y(e,r))?Dn(o,y,n,l):(v&&v(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&bt(s,"number",s.value)),v=r?Ue(r):window,e){case"focusin":(An(v)||"true"===v.contentEditable)&&(ar=v,ir=r,or=null);break;case"focusout":or=ir=ar=null;break;case"mousedown":sr=!0;break;case"contextmenu":case"mouseup":case"dragend":sr=!1,cr(o,n,l);break;case"selectionchange":if(lr)break;case"keydown":case"keyup":cr(o,n,l)}var x;if(jn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Pn?Rn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(zn&&"ko"!==n.locale&&(Pn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Pn&&(x=Kt()):(Wt="value"in(Ht=l)?Ht.value:Ht.textContent,Pn=!0)),0<(v=Kd(r,b)).length&&(b=new un(b,e,null,n,l),o.push({event:b,listeners:v}),x?b.data=x:null!==(x=Tn(n))&&(b.data=x))),(x=En?function(e,t){switch(e){case"compositionend":return Tn(t);case"keypress":return 32!==t.which?null:(In=!0,_n);case"textInput":return(e=t.data)===_n&&In?null:e;default:return null}}(e,n):function(e,t){if(Pn)return"compositionend"===e||!jn&&Rn(e,t)?(e=Kt(),Ut=Wt=Ht=null,Pn=!1,e):null;switch(e){case"paste":default: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 zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(b=Kd(r,"onBeforeInput")).length&&(v=new un("onBeforeInput","beforeinput",null,n,l),o.push({event:v,listeners:b}),v.data=x)),function(e,t,n,r,l){if("submit"===t&&n&&n.stateNode===l){var a=Pd((l[De]||null).action),i=r.submitter;i&&null!==(t=(t=i[De]||null)?Pd(t.formAction):i.getAttribute("formAction"))&&(a=t,i=null);var o=new tn("action","action",null,r,l);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Sd){var e=i?Ld(l,i):new FormData(l);Pi(n,{pending:!0,data:e,method:l.method,action:a},null,e)}}else"function"==typeof a&&(o.preventDefault(),e=i?Ld(l,i):new FormData(l),Pi(n,{pending:!0,data:e,method:l.method,action:a},a,e))},currentTarget:l}]})}}(o,e,r,n,l)}Od(o,t)})}function Ud(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kd(e,t){for(var n=t+"Capture",r=[];null!==e;){var l=e,a=l.stateNode;if(5!==(l=l.tag)&&26!==l&&27!==l||null===a||(null!=(l=Bt(e,n))&&r.unshift(Ud(e,l,a)),null!=(l=Bt(e,t))&&r.push(Ud(e,l,a))),3===e.tag)return r;e=e.return}return[]}function Qd(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Yd(e,t,n,r,l){for(var a=t._reactName,i=[];null!==n&&n!==r;){var o=n,s=o.alternate,c=o.stateNode;if(o=o.tag,null!==s&&s===r)break;5!==o&&26!==o&&27!==o||null===c||(s=c,l?null!=(c=Bt(n,a))&&i.unshift(Ud(n,c,s)):l||null!=(c=Bt(n,a))&&i.push(Ud(n,c,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Gd=/\r\n?/g,qd=/\u0000|\uFFFD/g;function Xd(e){return("string"==typeof e?e:""+e).replace(Gd,"\n").replace(qd,"")}function Jd(e,t){return t=Xd(t),Xd(e)===t}function Zd(){}function eu(e,t,n,l,a,i){switch(n){case"children":"string"==typeof l?"body"===t||"textarea"===t&&""===l||jt(e,l):("number"==typeof l||"bigint"==typeof l)&&"body"!==t&&jt(e,""+l);break;case"className":lt(e,"class",l);break;case"tabIndex":lt(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":lt(e,n,l);break;case"style":zt(e,l,i);break;case"data":if("object"!==t){lt(e,"data",l);break}case"src":case"href":if(""===l&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==l||"function"==typeof l||"symbol"==typeof l||"boolean"==typeof l){e.removeAttribute(n);break}l=Tt(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if("function"==typeof l){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&eu(e,t,"name",a.name,a,null),eu(e,t,"formEncType",a.formEncType,a,null),eu(e,t,"formMethod",a.formMethod,a,null),eu(e,t,"formTarget",a.formTarget,a,null)):(eu(e,t,"encType",a.encType,a,null),eu(e,t,"method",a.method,a,null),eu(e,t,"target",a.target,a,null))),null==l||"symbol"==typeof l||"boolean"==typeof l){e.removeAttribute(n);break}l=Tt(""+l),e.setAttribute(n,l);break;case"onClick":null!=l&&(e.onclick=Zd);break;case"onScroll":null!=l&&Bd("scroll",e);break;case"onScrollEnd":null!=l&&Bd("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=l){if("object"!=typeof l||!("__html"in l))throw Error(r(61));if(null!=(n=l.__html)){if(null!=a.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&"function"!=typeof l&&"symbol"!=typeof l;break;case"muted":e.muted=l&&"function"!=typeof l&&"symbol"!=typeof l;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==l||"function"==typeof l||"boolean"==typeof l||"symbol"==typeof l){e.removeAttribute("xlink:href");break}n=Tt(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=l&&"function"!=typeof l&&"symbol"!=typeof l?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&"function"!=typeof l&&"symbol"!=typeof l?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===l?e.setAttribute(n,""):!1!==l&&null!=l&&"function"!=typeof l&&"symbol"!=typeof l?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":null==l||"function"==typeof l||"symbol"==typeof l||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Bd("beforetoggle",e),Bd("toggle",e),rt(e,"popover",l);break;case"xlinkActuate":at(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":at(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":at(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":at(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":at(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":at(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":at(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":at(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":at(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":rt(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&rt(e,n=It.get(n)||n,l)}}function tu(e,t,n,l,a,i){switch(n){case"style":zt(e,l,i);break;case"dangerouslySetInnerHTML":if(null!=l){if("object"!=typeof l||!("__html"in l))throw Error(r(61));if(null!=(n=l.__html)){if(null!=a.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof l?jt(e,l):("number"==typeof l||"bigint"==typeof l)&&jt(e,""+l);break;case"onScroll":null!=l&&Bd("scroll",e);break;case"onScrollEnd":null!=l&&Bd("scrollend",e);break;case"onClick":null!=l&&(e.onclick=Zd);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ge.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(i=null!=(i=e[De]||null)?i[n]:null)&&e.removeEventListener(t,i,a),"function"!=typeof l)?n in e?e[n]=l:!0===l?e.setAttribute(n,""):rt(e,n,l):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,a)))}}function nu(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Bd("error",e),Bd("load",e);var l,a=!1,i=!1;for(l in n)if(n.hasOwnProperty(l)){var o=n[l];if(null!=o)switch(l){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:eu(e,t,l,o,n,null)}}return i&&eu(e,t,"srcSet",n.srcSet,n,null),void(a&&eu(e,t,"src",n.src,n,null));case"input":Bd("invalid",e);var s=l=o=i=null,c=null,d=null;for(a in n)if(n.hasOwnProperty(a)){var u=n[a];if(null!=u)switch(a){case"name":i=u;break;case"type":o=u;break;case"checked":c=u;break;case"defaultChecked":d=u;break;case"value":l=u;break;case"defaultValue":s=u;break;case"children":case"dangerouslySetInnerHTML":if(null!=u)throw Error(r(137,t));break;default:eu(e,t,a,u,n,null)}}return xt(e,l,s,c,d,o,i,!1),void pt(e);case"select":for(i in Bd("invalid",e),a=o=l=null,n)if(n.hasOwnProperty(i)&&null!=(s=n[i]))switch(i){case"value":l=s;break;case"defaultValue":o=s;break;case"multiple":a=s;default:eu(e,t,i,s,n,null)}return t=l,n=o,e.multiple=!!a,void(null!=t?wt(e,!!a,t,!1):null!=n&&wt(e,!!a,n,!0));case"textarea":for(o in Bd("invalid",e),l=i=a=null,n)if(n.hasOwnProperty(o)&&null!=(s=n[o]))switch(o){case"value":a=s;break;case"defaultValue":i=s;break;case"children":l=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(r(91));break;default:eu(e,t,o,s,n,null)}return St(e,a,i,l),void pt(e);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))if("selected"===c)e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a;else eu(e,t,c,a,n,null);return;case"dialog":Bd("beforetoggle",e),Bd("toggle",e),Bd("cancel",e),Bd("close",e);break;case"iframe":case"object":Bd("load",e);break;case"video":case"audio":for(a=0;a<Nd.length;a++)Bd(Nd[a],e);break;case"image":Bd("error",e),Bd("load",e);break;case"details":Bd("toggle",e);break;case"embed":case"source":case"link":Bd("error",e),Bd("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(d in n)if(n.hasOwnProperty(d)&&null!=(a=n[d]))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:eu(e,t,d,a,n,null)}return;default:if(_t(t)){for(u in n)n.hasOwnProperty(u)&&(void 0!==(a=n[u])&&tu(e,t,u,a,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(null!=(a=n[s])&&eu(e,t,s,a,n,null))}var ru=null,lu=null;function au(e){return 9===e.nodeType?e:e.ownerDocument}function iu(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ou(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function su(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var cu=null;var du="function"==typeof setTimeout?setTimeout:void 0,uu="function"==typeof clearTimeout?clearTimeout:void 0,fu="function"==typeof Promise?Promise:void 0,pu="function"==typeof queueMicrotask?queueMicrotask:void 0!==fu?function(e){return fu.resolve(null).then(e).catch(hu)}:du;function hu(e){setTimeout(function(){throw e})}function mu(e){return"head"===e}function gu(e,t){var n=t,r=0,l=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0<r&&8>r){n=r;var i=e.ownerDocument;if(1&n&&Su(i.documentElement),2&n&&Su(i.body),4&n)for(Su(n=i.head),i=n.firstChild;i;){var o=i.nextSibling,s=i.nodeName;i[Fe]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=o}}if(0===l)return e.removeChild(a),void Rf(t);l--}else"$"===n||"$?"===n||"$!"===n?l++:r=n.charCodeAt(0)-48;else r=0;n=a}while(n);Rf(t)}function yu(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":yu(n),Ve(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function vu(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function xu(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var bu=null;function wu(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function ku(e,t,n){switch(t=au(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function Su(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ve(e)}var ju=new Map,Cu=new Set;function Eu(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var zu=A.d;A.d={f:function(){var e=zu.f(),t=Hc();return e||t},r:function(e){var t=We(e);null!==t&&5===t.tag&&"form"===t.type?Ai(t):zu.r(e)},D:function(e){zu.D(e),Iu("dns-prefetch",e,null)},C:function(e,t){zu.C(e,t),Iu("preconnect",e,t)},L:function(e,t,n){zu.L(e,t,n);var r=_u;if(r&&e&&t){var l='link[rel="preload"][as="'+yt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(l+='[imagesrcset="'+yt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(l+='[imagesizes="'+yt(n.imageSizes)+'"]')):l+='[href="'+yt(e)+'"]';var a=l;switch(t){case"style":a=Tu(e);break;case"script":a=Au(e)}ju.has(a)||(e=c({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),ju.set(a,e),null!==r.querySelector(l)||"style"===t&&r.querySelector(Pu(a))||"script"===t&&r.querySelector(Du(a))||(nu(t=r.createElement("link"),"link",e),Qe(t),r.head.appendChild(t)))}},m:function(e,t){zu.m(e,t);var n=_u;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",l='link[rel="modulepreload"][as="'+yt(r)+'"][href="'+yt(e)+'"]',a=l;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Au(e)}if(!ju.has(a)&&(e=c({rel:"modulepreload",href:e},t),ju.set(a,e),null===n.querySelector(l))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Du(a)))return}nu(r=n.createElement("link"),"link",e),Qe(r),n.head.appendChild(r)}}},X:function(e,t){zu.X(e,t);var n=_u;if(n&&e){var r=Ke(n).hoistableScripts,l=Au(e),a=r.get(l);a||((a=n.querySelector(Du(l)))||(e=c({src:e,async:!0},t),(t=ju.get(l))&&Bu(e,t),Qe(a=n.createElement("script")),nu(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(l,a))}},S:function(e,t,n){zu.S(e,t,n);var r=_u;if(r&&e){var l=Ke(r).hoistableStyles,a=Tu(e);t=t||"default";var i=l.get(a);if(!i){var o={loading:0,preload:null};if(i=r.querySelector(Pu(a)))o.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ju.get(a))&&Ou(e,n);var s=i=r.createElement("link");Qe(s),nu(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Mu(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:o},l.set(a,i)}}},M:function(e,t){zu.M(e,t);var n=_u;if(n&&e){var r=Ke(n).hoistableScripts,l=Au(e),a=r.get(l);a||((a=n.querySelector(Du(l)))||(e=c({src:e,async:!0,type:"module"},t),(t=ju.get(l))&&Bu(e,t),Qe(a=n.createElement("script")),nu(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(l,a))}}};var _u="undefined"==typeof document?null:document;function Iu(e,t,n){var r=_u;if(r&&"string"==typeof t&&t){var l=yt(t);l='link[rel="'+e+'"][href="'+l+'"]',"string"==typeof n&&(l+='[crossorigin="'+n+'"]'),Cu.has(l)||(Cu.add(l),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(l)&&(nu(t=r.createElement("link"),"link",e),Qe(t),r.head.appendChild(t)))}}function Ru(e,t,n,l){var a,i,o,s,c=(c=H.current)?Eu(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Tu(n.href),(l=(n=Ke(c).hoistableStyles).get(t))||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Tu(n.href);var d=Ke(c).hoistableStyles,u=d.get(e);if(u||(c=c.ownerDocument||c,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,u),(d=c.querySelector(Pu(e)))&&!d._p&&(u.instance=d,u.state.loading=5),ju.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ju.set(e,n),d||(a=c,i=e,o=n,s=u.state,a.querySelector('link[rel="preload"][as="style"]['+i+"]")?s.loading=1:(i=a.createElement("link"),s.preload=i,i.addEventListener("load",function(){return s.loading|=1}),i.addEventListener("error",function(){return s.loading|=2}),nu(i,"link",o),Qe(i),a.head.appendChild(i))))),t&&null===l)throw Error(r(528,""));return u}if(t&&null!==l)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Au(n),(l=(n=Ke(c).hoistableScripts).get(t))||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Tu(e){return'href="'+yt(e)+'"'}function Pu(e){return'link[rel="stylesheet"]['+e+"]"}function Lu(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function Au(e){return'[src="'+yt(e)+'"]'}function Du(e){return"script[async]"+e}function Nu(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+yt(n.href)+'"]');if(l)return t.instance=l,Qe(l),l;var a=c({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Qe(l=(e.ownerDocument||e).createElement("style")),nu(l,"style",a),Mu(l,n.precedence,e),t.instance=l;case"stylesheet":a=Tu(n.href);var i=e.querySelector(Pu(a));if(i)return t.state.loading|=4,t.instance=i,Qe(i),i;l=Lu(n),(a=ju.get(a))&&Ou(l,a),Qe(i=(e.ownerDocument||e).createElement("link"));var o=i;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),nu(i,"link",l),t.state.loading|=4,Mu(i,n.precedence,e),t.instance=i;case"script":return i=Au(n.src),(a=e.querySelector(Du(i)))?(t.instance=a,Qe(a),a):(l=n,(a=ju.get(i))&&Bu(l=c({},n),a),Qe(a=(e=e.ownerDocument||e).createElement("script")),nu(a,"link",l),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(l=t.instance,t.state.loading|=4,Mu(l,n.precedence,e));return t.instance}function Mu(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=r.length?r[r.length-1]:null,a=l,i=0;i<r.length;i++){var o=r[i];if(o.dataset.precedence===t)a=o;else if(a!==l)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Ou(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Bu(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var $u=null;function Fu(e,t,n){if(null===$u){var r=new Map,l=$u=new Map;l.set(n,r)}else(r=(l=$u).get(n))||(r=new Map,l.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var a=n[l];if(!(a[Fe]||a[Ae]||"link"===e&&"stylesheet"===a.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==a.namespaceURI){var i=a.getAttribute(t)||"";i=e+i;var o=r.get(i);o?o.push(a):r.set(i,[a])}}return r}function Vu(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Hu(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Wu=null;function Uu(){}function Ku(){if(this.count--,0===this.count)if(this.stylesheets)Yu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Qu=null;function Yu(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Qu=new Map,t.forEach(Gu,e),Qu=null,Ku.call(e))}function Gu(e,t){if(!(4&t.state.loading)){var n=Qu.get(e);if(n)var r=n.get(null);else{n=new Map,Qu.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<l.length;a++){var i=l[a];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}i=(l=t.instance).getAttribute("data-precedence"),(a=n.get(i)||r)===r&&n.set(null,l),n.set(i,l),this.count++,r=Ku.bind(this),l.addEventListener("load",r),l.addEventListener("error",r),a?a.parentNode.insertBefore(l,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(l,e.firstChild),t.state.loading|=4}}var qu={$$typeof:b,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function Xu(e,t,n,r,l,a,i,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ee(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ee(0),this.hiddenUpdates=Ee(null),this.identifierPrefix=r,this.onUncaughtError=l,this.onCaughtError=a,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Ju(e,t,n,r,l,a,i,o,s,c,d,u){return e=new Xu(e,t,n,i,o,s,c,u),t=1,!0===a&&(t|=24),a=Or(3,null,null,t),e.current=a,a.stateNode=e,(t=Dl()).refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},la(a),e}function Zu(e){return e?e=Nr:Nr}function ef(e,t,n,r,l,a){l=Zu(l),null===r.context?r.context=l:r.pendingContext=l,(r=ia(t)).payload={element:n},null!==(a=void 0===a?null:a)&&(r.callback=a),null!==(n=oa(e,r,t))&&(Oc(n,0,t),sa(n,e,t))}function tf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nf(e,t){tf(e,t),(e=e.alternate)&&tf(e,t)}function rf(e){if(13===e.tag){var t=Lr(e,67108864);null!==t&&Oc(t,0,67108864),nf(e,67108864)}}var lf=!0;function af(e,t,n,r){var l=L.T;L.T=null;var a=A.p;try{A.p=2,sf(e,t,n,r)}finally{A.p=a,L.T=l}}function of(e,t,n,r){var l=L.T;L.T=null;var a=A.p;try{A.p=8,sf(e,t,n,r)}finally{A.p=a,L.T=l}}function sf(e,t,n,r){if(lf){var l=cf(r);if(null===l)Wd(e,t,r,df,n),wf(e,r);else if(function(e,t,n,r,l){switch(t){case"focusin":return hf=kf(hf,e,t,n,r,l),!0;case"dragenter":return mf=kf(mf,e,t,n,r,l),!0;case"mouseover":return gf=kf(gf,e,t,n,r,l),!0;case"pointerover":var a=l.pointerId;return yf.set(a,kf(yf.get(a)||null,e,t,n,r,l)),!0;case"gotpointercapture":return a=l.pointerId,vf.set(a,kf(vf.get(a)||null,e,t,n,r,l)),!0}return!1}(l,e,t,n,r))r.stopPropagation();else if(wf(e,r),4&t&&-1<bf.indexOf(e)){for(;null!==l;){var a=We(l);if(null!==a)switch(a.tag){case 3:if((a=a.stateNode).current.memoizedState.isDehydrated){var i=ve(a.pendingLanes);if(0!==i){var o=a;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var s=1<<31-fe(i);o.entanglements[1]|=s,i&=~s}jd(a),!(6&lc)&&(jc=ee()+500,Cd(0))}}break;case 13:null!==(o=Lr(a,2))&&Oc(o,0,2),Hc(),nf(a,2)}if(null===(a=cf(r))&&Wd(e,t,r,df,n),a===l)break;l=a}null!==l&&r.stopPropagation()}else Wd(e,t,r,null,n)}}function cf(e){return uf(e=Lt(e))}var df=null;function uf(e){if(df=null,null!==(e=He(e))){var t=a(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=i(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return df=e,null}function ff(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(te()){case ne:return 2;case re:return 8;case le:case ae:return 32;case ie:return 268435456;default:return 32}default:return 32}}var pf=!1,hf=null,mf=null,gf=null,yf=new Map,vf=new Map,xf=[],bf="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".split(" ");function wf(e,t){switch(e){case"focusin":case"focusout":hf=null;break;case"dragenter":case"dragleave":mf=null;break;case"mouseover":case"mouseout":gf=null;break;case"pointerover":case"pointerout":yf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vf.delete(t.pointerId)}}function kf(e,t,n,r,l,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[l]},null!==t&&(null!==(t=We(t))&&rf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==l&&-1===t.indexOf(l)&&t.push(l),e)}function Sf(e){var t=He(e.target);if(null!==t){var n=a(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=i(n)))return e.blockedOn=t,void function(e,t){var n=A.p;try{return A.p=e,t()}finally{A.p=n}}(e.priority,function(){if(13===n.tag){var e=Nc();e=Re(e);var t=Lr(n,e);null!==t&&Oc(t,0,e),nf(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=cf(e.nativeEvent);if(null!==n)return null!==(t=We(n))&&rf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Pt=r,n.target.dispatchEvent(r),Pt=null,t.shift()}return!0}function Cf(e,t,n){jf(e)&&n.delete(t)}function Ef(){pf=!1,null!==hf&&jf(hf)&&(hf=null),null!==mf&&jf(mf)&&(mf=null),null!==gf&&jf(gf)&&(gf=null),yf.forEach(Cf),vf.forEach(Cf)}function zf(t,n){t.blockedOn===n&&(t.blockedOn=null,pf||(pf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ef)))}var _f=null;function If(t){_f!==t&&(_f=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){_f===t&&(_f=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],l=t[e+2];if("function"!=typeof r){if(null===uf(r||n))continue;break}var a=We(n);null!==a&&(t.splice(e,3),e-=3,Pi(a,{pending:!0,data:l,method:n.method,action:r},r,l))}}))}function Rf(e){function t(t){return zf(t,e)}null!==hf&&zf(hf,e),null!==mf&&zf(mf,e),null!==gf&&zf(gf,e),yf.forEach(t),vf.forEach(t);for(var n=0;n<xf.length;n++){var r=xf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xf.length&&null===(n=xf[0]).blockedOn;)Sf(n),null===n.blockedOn&&xf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var l=n[r],a=n[r+1],i=l[De]||null;if("function"==typeof a)i||If(n);else if(i){var o=null;if(a&&a.hasAttribute("formAction")){if(l=a,i=a[De]||null)o=i.formAction;else if(null!==uf(l))continue}else o=i.action;"function"==typeof o?n[r+1]=o:(n.splice(r,3),r-=3),If(n)}}}function Tf(e){this._internalRoot=e}function Pf(e){this._internalRoot=e}Pf.prototype.render=Tf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));ef(t.current,Nc(),e,t,null,null)},Pf.prototype.unmount=Tf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ef(e.current,2,null,e,null,null),Hc(),t[Ne]=null}},Pf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xf.length&&0!==t&&t<xf[n].priority;n++);xf.splice(n,0,e),0===n&&Sf(e)}};var Lf=t.version;if("19.1.1"!==Lf)throw Error(r(527,Lf,"19.1.1"));A.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=a(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var i=n.return;if(null===i)break;var s=i.alternate;if(null===s){if(null!==(l=i.return)){n=l;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return o(i),e;if(s===l)return o(i),t;s=s.sibling}throw Error(r(188))}if(n.return!==l.return)n=i,l=s;else{for(var c=!1,d=i.child;d;){if(d===n){c=!0,n=i,l=s;break}if(d===l){c=!0,l=i,n=s;break}d=d.sibling}if(!c){for(d=s.child;d;){if(d===n){c=!0,n=s,l=i;break}if(d===l){c=!0,l=s,n=i;break}d=d.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?s(e):null)?null:e.stateNode};var Af={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.1.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Df=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Df.isDisabled&&Df.supportsFiber)try{ce=Df.inject(Af),de=Df}catch(Mf){}}return xe.createRoot=function(e,t){if(!l(e))throw Error(r(299));var n=!1,a="",i=bo,o=wo,s=ko;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Ju(e,1,!1,null,0,n,a,i,o,s,0,null),e[Ne]=t.current,Vd(e),new Tf(t)},xe.hydrateRoot=function(e,t,n){if(!l(e))throw Error(r(299));var a=!1,i="",o=bo,s=wo,c=ko,d=null;return null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(d=n.formState)),(t=Ju(e,1,!0,t,0,a,i,o,s,c,0,d)).context=Zu(null),n=t.current,(i=ia(a=Re(a=Nc()))).callback=null,oa(n,i,a),n=a,t.current.lanes=n,ze(t,n),jd(t),e[Ne]=t.current,Vd(e),new Pf(t)},xe.version="19.1.1",xe}var je,Ce=(ge||(ge=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),ve.exports=Se()),ve.exports),Ee={},ze={exports:{}};function _e(){return je||(je=1,(e=ze).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),ze.exports;var e}var Ie,Re={};var Te,Pe={},Le={},Ae={},De={exports:{}},Ne={exports:{}},Me={exports:{}},Oe={exports:{}};function Be(){return Te||(Te=1,function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Oe)),Oe.exports}var $e,Fe,Ve,He,We={exports:{}};function Ue(){return Fe||(Fe=1,e=Me,t=Be().default,n=function(){return $e||($e=1,e=We,t=Be().default,e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var l=r.call(e,n||"default");if("object"!=t(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports),We.exports;var e,t}(),e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports),Me.exports;var e,t,n}function Ke(){return He||(He=1,function(e){var t=function(){return Ve||(Ve=1,e=Ne,t=Ue(),e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports),Ne.exports;var e,t}();function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}e.exports=function(e){for(var r=1;r<arguments.length;r++){var l=null!=arguments[r]?arguments[r]:{};r%2?n(Object(l),!0).forEach(function(n){t(e,n,l[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):n(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e},e.exports.__esModule=!0,e.exports.default=e.exports}(De)),De.exports}var Qe,Ye,Ge={};function qe(){if(Ye)return Ae;Ye=1;var e=_e().default;Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=void 0;var t=e(Ke()),n=(Qe||(Qe=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.commonLocale=void 0,Ge.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),Ge),r=(0,t.default)((0,t.default)({},n.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});return Ae.default=r,Ae}var Xe,Je,Ze,et,tt,nt,rt={};function lt(){if(Xe)return rt;Xe=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;return rt.default={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},rt}function at(){if(Je)return Le;Je=1;var e=_e().default;Object.defineProperty(Le,"__esModule",{value:!0}),Le.default=void 0;var t=e(qe()),n=e(lt());const r={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},t.default),timePickerLocale:Object.assign({},n.default)};return r.lang.ok="确定",Le.default=r,Le}function it(){if(Ze)return Pe;Ze=1;var e=_e().default;Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.default=void 0;var t=e(at());return Pe.default=t.default,Pe}function ot(){if(et)return Ee;et=1;var e=_e().default;Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.default=void 0;var t=e((Ie||(Ie=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.default=void 0,Re.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}),Re)),n=e(it()),r=e(at()),l=e(lt());const a="${label}不是一个有效的${type}",i={locale:"zh-cn",Pagination:t.default,DatePicker:r.default,TimePicker:l.default,Calendar:n.default,global:{placeholder:"请选择",close:"关闭"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};return Ee.default=i,Ee}function st(){return nt?tt:(nt=1,tt=ot())}const ct=f(st()),dt=n({name:"devices",initialState:{connectedDevices:[],selectedDeviceId:null,deviceStatuses:{},isLoading:!1,error:null,filter:{status:"online"}},reducers:{addDevice:(e,t)=>{const n=e.connectedDevices.findIndex(e=>e.id===t.payload.id);n>=0?e.connectedDevices[n]=t.payload:e.connectedDevices.push(t.payload)},removeDevice:(e,t)=>{e.connectedDevices=e.connectedDevices.filter(e=>e.id!==t.payload),e.selectedDeviceId===t.payload&&(e.selectedDeviceId=null),delete e.deviceStatuses[t.payload]},selectDevice:(e,t)=>{e.selectedDeviceId=t.payload},resetDeviceStates:(e,t)=>{},clearDeviceSelection:e=>{e.selectedDeviceId=null},updateDeviceStatus:(e,t)=>{const{deviceId:n,status:r}=t.payload;e.deviceStatuses[n]=r},updateDeviceConnectionStatus:(e,t)=>{const{deviceId:n,status:r}=t.payload,l=e.connectedDevices.find(e=>e.id===n);l&&(l.status=r,l.lastSeen=Date.now())},updateDeviceInputBlocked:(e,t)=>{const{deviceId:n,inputBlocked:r}=t.payload,l=e.connectedDevices.find(e=>e.id===n);l&&(l.inputBlocked=r)},enableDeviceScreenReader:(e,t)=>{const n=t.payload,r=e.connectedDevices.find(e=>e.id===n);r&&(r.screenReader||(r.screenReader={enabled:!1,autoRefresh:!0,refreshInterval:1,showElementBounds:!0,highlightClickable:!0,showVirtualKeyboard:!1,loading:!1}),r.screenReader.enabled=!0,r.screenReader.loading=!0,r.screenReader.error=void 0)},disableDeviceScreenReader:(e,t)=>{const n=t.payload,r=e.connectedDevices.find(e=>e.id===n);r&&r.screenReader&&(r.screenReader.enabled=!1,r.screenReader.loading=!1,r.screenReader.hierarchyData=void 0,r.screenReader.error=void 0)},updateDeviceScreenReaderConfig:(e,t)=>{const{deviceId:n,config:r}=t.payload,l=e.connectedDevices.find(e=>e.id===n);l&&(l.screenReader||(l.screenReader={enabled:!1,autoRefresh:!0,refreshInterval:1,showElementBounds:!0,highlightClickable:!0,showVirtualKeyboard:!1,loading:!1}),l.screenReader&&Object.assign(l.screenReader,r))},updateDeviceLockStatus:(e,t)=>{const{deviceId:n,isLocked:r}=t.payload,l=e.connectedDevices.find(e=>e.id===n);l&&(l.isLocked=r)},updateDeviceRemark:(e,t)=>{const{deviceId:n,remark:r}=t.payload,l=e.connectedDevices.find(e=>e.id===n);l&&(l.remark=r)},setDeviceScreenReaderHierarchy:(e,t)=>{const{deviceId:n,hierarchyData:r,error:l}=t.payload,a=e.connectedDevices.find(e=>e.id===n);a&&a.screenReader&&(a.screenReader.hierarchyData=r,a.screenReader.loading=!1,a.screenReader.error=l)},setLoading:(e,t)=>{e.isLoading=t.payload},setError:(e,t)=>{e.error=t.payload},setDeviceFilter:(e,t)=>{e.filter=t.payload},clearDeviceFilter:e=>{e.filter={status:"online"}},updateDeviceFilter:(e,t)=>{const n={...e.filter,...t.payload};void 0===t.payload.status&&"status"in n&&delete n.status,e.filter=n},clearDevices:e=>{e.connectedDevices=[],e.selectedDeviceId=null,e.deviceStatuses={},e.filter={status:"online"}}}}),{addDevice:ut,removeDevice:ft,selectDevice:pt,resetDeviceStates:ht,clearDeviceSelection:mt,updateDeviceStatus:gt,updateDeviceConnectionStatus:yt,updateDeviceInputBlocked:vt,enableDeviceScreenReader:xt,disableDeviceScreenReader:bt,updateDeviceScreenReaderConfig:wt,updateDeviceLockStatus:kt,updateDeviceRemark:St,setDeviceScreenReaderHierarchy:jt,setLoading:Ct,setError:Et,setDeviceFilter:zt,clearDeviceFilter:_t,updateDeviceFilter:It,clearDevices:Rt}=dt.actions,Tt=dt.reducer,Pt=n({name:"connection",initialState:{status:"disconnected",webSocket:null,serverUrl:"",isReconnecting:!1,reconnectAttempts:0,maxReconnectAttempts:5,networkQuality:null,lastConnectedAt:null,error:null},reducers:{setConnectionStatus:(e,t)=>{e.status=t.payload,"connected"===t.payload&&(e.lastConnectedAt=Date.now(),e.reconnectAttempts=0,e.isReconnecting=!1,e.error=null)},setWebSocket:(e,t)=>{e.webSocket=t.payload},setServerUrl:(e,t)=>{e.serverUrl=t.payload},startReconnecting:e=>{e.isReconnecting=!0,e.status="connecting"},stopReconnecting:e=>{e.isReconnecting=!1,e.reconnectAttempts=0},incrementReconnectAttempts:e=>{e.reconnectAttempts+=1},resetReconnectAttempts:e=>{e.reconnectAttempts=0},updateNetworkQuality:(e,t)=>{e.networkQuality=t.payload},setConnectionError:(e,t)=>{e.error=t.payload,e.status="error",e.isReconnecting=!1},clearConnectionError:e=>{e.error=null},resetConnection:e=>{e.status="disconnected",e.webSocket=null,e.isReconnecting=!1,e.reconnectAttempts=0,e.networkQuality=null,e.lastConnectedAt=null,e.error=null}}}),{setConnectionStatus:Lt,setWebSocket:At,setServerUrl:Dt,startReconnecting:Nt,stopReconnecting:Mt,incrementReconnectAttempts:Ot,resetReconnectAttempts:Bt,updateNetworkQuality:$t,setConnectionError:Ft,clearConnectionError:Vt,resetConnection:Ht}=Pt.actions,Wt=Pt.reducer,Ut=n({name:"ui",initialState:{theme:"auto",layout:"desktop",controlPanel:{showKeyboard:!0,showGamepad:!1,showQuickActions:!0,showDeviceInfo:!0,position:"right",collapsed:!1},screenDisplay:{fitMode:"fit",quality:"high",showTouchIndicator:!0,enableSound:!1,fullscreen:!1},screenReader:{enabled:!1,autoRefresh:!0,refreshInterval:1,showElementBounds:!0,showElementHierarchy:!0,highlightClickable:!0},sidebarCollapsed:!1,showSettings:!1,showAbout:!1,showDeviceList:!1,loading:!1,operationEnabled:!0,deviceInputBlocked:!1,cameraViewVisible:!1,cameraActive:!1,gallery:{images:[],loading:!1,visible:!1,selectedImageId:null},notifications:[]},reducers:{setTheme:(e,t)=>{e.theme=t.payload},setLayout:(e,t)=>{e.layout=t.payload},updateControlPanel:(e,t)=>{e.controlPanel={...e.controlPanel,...t.payload}},updateScreenDisplay:(e,t)=>{e.screenDisplay={...e.screenDisplay,...t.payload}},updateScreenReader:(e,t)=>{e.screenReader={...e.screenReader,...t.payload}},enableScreenReader:e=>{e.screenReader.enabled=!0},disableScreenReader:e=>{e.screenReader.enabled=!1},toggleScreenReader:e=>{e.screenReader.enabled=!e.screenReader.enabled},toggleSidebar:e=>{e.sidebarCollapsed=!e.sidebarCollapsed},setSidebarCollapsed:(e,t)=>{e.sidebarCollapsed=t.payload},showSettings:e=>{e.showSettings=!0},hideSettings:e=>{e.showSettings=!1},showAbout:e=>{e.showAbout=!0},hideAbout:e=>{e.showAbout=!1},showDeviceList:e=>{e.showDeviceList=!0},hideDeviceList:e=>{e.showDeviceList=!1},setLoading:(e,t)=>{e.loading=t.payload},addNotification:(e,t)=>{const n={...t.payload,id:Date.now().toString(),timestamp:Date.now()};e.notifications.push(n)},removeNotification:(e,t)=>{e.notifications=e.notifications.filter(e=>e.id!==t.payload)},clearNotifications:e=>{e.notifications=[]},toggleFullscreen:e=>{e.screenDisplay.fullscreen=!e.screenDisplay.fullscreen},toggleControlPanel:e=>{e.controlPanel.collapsed=!e.controlPanel.collapsed},setOperationEnabled:(e,t)=>{e.operationEnabled=t.payload},toggleOperationEnabled:e=>{e.operationEnabled=!e.operationEnabled},setDeviceInputBlocked:(e,t)=>{e.deviceInputBlocked=t.payload},toggleDeviceInputBlocked:e=>{e.deviceInputBlocked=!e.deviceInputBlocked},setCameraViewVisible:(e,t)=>{e.cameraViewVisible=t.payload},toggleCameraViewVisible:e=>{e.cameraViewVisible=!e.cameraViewVisible},setCameraActive:(e,t)=>{e.cameraActive=t.payload},setGalleryVisible:(e,t)=>{e.gallery.visible=t.payload},setGalleryLoading:(e,t)=>{e.gallery.loading=t.payload},addGalleryImage:(e,t)=>{const n=e.gallery.images.findIndex(e=>e.id===t.payload.id);n>=0?e.gallery.images[n]=t.payload:e.gallery.images.push(t.payload),e.gallery.images.sort((e,t)=>t.timestamp-e.timestamp)},setGalleryImages:(e,t)=>{e.gallery.images=t.payload.sort((e,t)=>t.timestamp-e.timestamp)},selectGalleryImage:(e,t)=>{e.gallery.selectedImageId=t.payload},clearGallery:e=>{e.gallery.images=[],e.gallery.selectedImageId=null}},extraReducers:e=>{e.addCase("devices/resetDeviceStates",e=>{e.deviceInputBlocked=!1})}}),{setTheme:Kt,setLayout:Qt,updateControlPanel:Yt,updateScreenDisplay:Gt,updateScreenReader:qt,enableScreenReader:Xt,disableScreenReader:Jt,toggleScreenReader:Zt,toggleSidebar:en,setSidebarCollapsed:tn,showSettings:nn,hideSettings:rn,showAbout:ln,hideAbout:an,showDeviceList:on,hideDeviceList:sn,setLoading:cn,addNotification:dn,removeNotification:un,clearNotifications:fn,toggleFullscreen:pn,toggleControlPanel:hn,setOperationEnabled:mn,toggleOperationEnabled:gn,setDeviceInputBlocked:yn,toggleDeviceInputBlocked:vn,setCameraViewVisible:xn,toggleCameraViewVisible:bn,setCameraActive:wn,setGalleryVisible:kn,setGalleryLoading:Sn,addGalleryImage:jn,setGalleryImages:Cn,selectGalleryImage:En,clearGallery:zn}=Ut.actions,_n=Ut.reducer,In=()=>{var e;return(e=window.location.hostname,/^(\d{1,3}\.){3}\d{1,3}$/.test(e)||/^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/.test(e))?`${window.location.protocol}//${window.location.hostname}:3001`:`${window.location.protocol}//${window.location.hostname}`},Rn=r("auth/login",async({username:e,password:t},{rejectWithValue:n})=>{try{const r=In(),l=await fetch(`${r}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:e,password:t})}),a=await l.json();return l.ok?a:n(a.message||"登录失败")}catch(r){return n(r.message||"网络连接失败")}}),Tn=r("auth/verifyToken",async(e,{rejectWithValue:t})=>{try{const n=In(),r=await fetch(`${n}/api/auth/verify`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}),l=await r.json();return r.ok?l:t(l.error||"Token验证失败")}catch(n){return t(n.message||"网络连接失败")}}),Pn=r("auth/logout",async()=>{try{const e=In(),t=localStorage.getItem("auth_token");t&&await fetch(`${e}/api/auth/logout`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}})}catch(e){}}),Ln=n({name:"auth",initialState:{isAuthenticated:!1,token:null,user:null,loading:!1,error:null,loginAttempts:0,lastLoginAttempt:null},reducers:{clearError:e=>{e.error=null},resetLoginAttempts:e=>{e.loginAttempts=0,e.lastLoginAttempt=null},restoreAuthState:e=>{const t=localStorage.getItem("auth_token"),n=localStorage.getItem("auth_user");if(t&&n)try{const r=JSON.parse(n);e.token=t,e.user=r,e.isAuthenticated=!0}catch(r){localStorage.removeItem("auth_token"),localStorage.removeItem("auth_user")}},clearAuthState:e=>{e.isAuthenticated=!1,e.token=null,e.user=null,e.error=null,localStorage.removeItem("auth_token"),localStorage.removeItem("auth_user")},updateUser:(e,t)=>{e.user&&(e.user={...e.user,...t.payload},localStorage.setItem("auth_user",JSON.stringify(e.user)))}},extraReducers:e=>{e.addCase(Rn.pending,e=>{e.loading=!0,e.error=null}).addCase(Rn.fulfilled,(e,t)=>{e.loading=!1,e.error=null,e.loginAttempts=0,e.lastLoginAttempt=null,t.payload.success&&t.payload.token&&t.payload.user&&(e.isAuthenticated=!0,e.token=t.payload.token,e.user=t.payload.user,localStorage.setItem("auth_token",t.payload.token),localStorage.setItem("auth_user",JSON.stringify(t.payload.user)))}).addCase(Rn.rejected,(e,t)=>{e.loading=!1,e.error=t.payload||"登录失败",e.loginAttempts+=1,e.lastLoginAttempt=Date.now(),e.isAuthenticated=!1,e.token=null,e.user=null}),e.addCase(Tn.pending,e=>{e.loading=!0,e.error=null}).addCase(Tn.fulfilled,(e,t)=>{e.loading=!1,e.error=null,t.payload.valid&&t.payload.user?(e.isAuthenticated=!0,e.user=t.payload.user):(e.isAuthenticated=!1,e.token=null,e.user=null,localStorage.removeItem("auth_token"),localStorage.removeItem("auth_user"))}).addCase(Tn.rejected,(e,t)=>{e.loading=!1,e.error=t.payload||"Token验证失败",e.isAuthenticated=!1,e.token=null,e.user=null,localStorage.removeItem("auth_token"),localStorage.removeItem("auth_user")}),e.addCase(Pn.pending,e=>{e.loading=!0}).addCase(Pn.fulfilled,e=>{e.loading=!1,e.isAuthenticated=!1,e.token=null,e.user=null,e.error=null,localStorage.removeItem("auth_token"),localStorage.removeItem("auth_user")}).addCase(Pn.rejected,e=>{e.loading=!1,e.isAuthenticated=!1,e.token=null,e.user=null,e.error=null,localStorage.removeItem("auth_token"),localStorage.removeItem("auth_user")})}}),{clearError:An,resetLoginAttempts:Dn,restoreAuthState:Nn,clearAuthState:Mn,updateUser:On}=Ln.actions,Bn=Ln.reducer,$n=e=>e.auth.isAuthenticated,Fn=e=>e.auth.user,Vn=e=>e.auth.token,Hn=e=>e.auth.loading,Wn=e=>e.auth.error,Un=l({reducer:{devices:Tt,connection:Wt,ui:_n,auth:Bn},middleware:e=>e({serializableCheck:{ignoredActions:["connection/setWebSocket"],ignoredPaths:["connection.webSocket"]}})});var Kn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448.3 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32-13.4 32-31.9.1-18.4-13.4-31.9-32-31.9zm393.9 96.4c-13.8-13.8-32.7-21.5-53.2-21.5-3.9 0-7.4.4-10.7 1v-1h-3.6c-5.5-30.6-18.6-60.5-38.1-87.4-18.7-25.7-43-47.9-70.8-64.9l25.1-35.8v-3.3c0-.8.4-2.3.7-3.8.6-2.4 1.4-5.5 1.4-8.9 0-18.5-13.5-31.9-32-31.9-9.8 0-19.5 5.7-25.9 15.4l-29.3 42.1c-30-9.8-62.4-15-93.8-15-31.3 0-63.7 5.2-93.8 15L389 79.4c-6.6-9.6-16.1-15.4-26-15.4-18.6 0-32 13.4-32 31.9 0 6.2 2.5 12.8 6.7 17.4l22.6 32.3c-28.7 17-53.5 39.4-72.2 65.1-19.4 26.9-32 56.8-36.7 87.4h-5.5v1c-3.2-.6-6.7-1-10.7-1-20.3 0-39.2 7.5-53.1 21.3-13.8 13.8-21.5 32.6-21.5 53v235c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 3.9 0 7.4-.4 10.7-1v93.5c0 29.2 23.9 53.1 53.2 53.1H331v58.3c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-58.2H544v58.1c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.4 0 39.2-7.5 53.1-21.6 13.8-13.8 21.5-32.6 21.5-53v-58.2h31.9c29.3 0 53.2-23.8 53.2-53.1v-91.4c3.2.6 6.7 1 10.7 1 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-235c-.1-20.3-7.6-39-21.4-52.9zM246 609.6c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zm131.1-396.8c37.5-27.3 85.3-42.3 135-42.3s97.5 15.1 135 42.5c32.4 23.7 54.2 54.2 62.7 87.5H314.4c8.5-33.4 30.5-64 62.7-87.7zm39.3 674.7c-.6 5.6-4.4 8.7-10.5 8.7-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1zm202.3 8.7c-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1c-.6 5.6-4.3 8.7-10.5 8.7zm95.8-132.6H309.9V364h404.6v399.6zm85.2-154c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zM576.1 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32.1-13.4 32.1-32-.1-18.6-13.4-31.8-32.1-31.8z"}}]},name:"android",theme:"outlined"},Qn=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Kn}))},Yn=a.forwardRef(Qn),Gn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},qn=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Gn}))},Xn=a.forwardRef(qn),Jn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Zn=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Jn}))},er=a.forwardRef(Zn),tr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},nr=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:tr}))},rr=a.forwardRef(nr),lr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"border",theme:"outlined"},ar=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:lr}))},ir=a.forwardRef(ar),or={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z"}}]},name:"build",theme:"outlined"},sr=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:or}))},cr=a.forwardRef(sr),dr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 248H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"}}]},name:"camera",theme:"outlined"},ur=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:dr}))},fr=a.forwardRef(ur),pr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},hr=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:pr}))},mr=a.forwardRef(hr),gr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},yr=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:gr}))},vr=a.forwardRef(yr),xr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},br=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:xr}))},wr=a.forwardRef(br),kr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},Sr=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:kr}))},jr=a.forwardRef(Sr),Cr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8s0 .1.1.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8 0 0 0 .1-.1.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7zM620 539v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8v.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8v.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7z"}}]},name:"control",theme:"outlined"},Er=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Cr}))},zr=a.forwardRef(Er),_r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832.6 191.4c-84.6-84.6-221.5-84.6-306 0l-96.9 96.9 51 51 96.9-96.9c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204l-96.9 96.9 51.1 51.1 96.9-96.9c84.4-84.6 84.4-221.5-.1-306.1zM446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l96.9-96.9-51.1-51.1-96.9 96.9c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l96.9-96.9-51-51-96.8 97zM260.3 209.4a8.03 8.03 0 00-11.3 0L209.4 249a8.03 8.03 0 000 11.3l554.4 554.4c3.1 3.1 8.2 3.1 11.3 0l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3L260.3 209.4z"}}]},name:"disconnect",theme:"outlined"},Ir=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:_r}))},Rr=a.forwardRef(Ir),Tr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z"}}]},name:"dollar",theme:"outlined"},Pr=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Tr}))},Lr=a.forwardRef(Pr),Ar={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Dr=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Ar}))},Nr=a.forwardRef(Dr),Mr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},Or=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Mr}))},Br=a.forwardRef(Or),$r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},Fr=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:$r}))},Vr=a.forwardRef(Fr),Hr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Wr=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Hr}))},Ur=a.forwardRef(Wr),Kr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z"}}]},name:"key",theme:"outlined"},Qr=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Kr}))},Yr=a.forwardRef(Qr),Gr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},qr=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Gr}))},Xr=a.forwardRef(qr),Jr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},Zr=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Jr}))},el=a.forwardRef(Zr),tl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 01520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 01270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 010 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z"}}]},name:"login",theme:"outlined"},nl=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:tl}))},rl=a.forwardRef(nl),ll={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},al=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:ll}))},il=a.forwardRef(al),ol={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},sl=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:ol}))},cl=a.forwardRef(sl),dl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},ul=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:dl}))},fl=a.forwardRef(ul),pl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},hl=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:pl}))},ml=a.forwardRef(hl),gl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4-76.3-.6-140.9 56.1-150.1 131.9s40 146.3 114.2 163.9c74.2 17.6 149.9-23.3 175.7-95.1 9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6zM329.1 345.2a83.3 83.3 0 11.01-166.61 83.3 83.3 0 01-.01 166.61zM695.6 845a83.3 83.3 0 11.01-166.61A83.3 83.3 0 01695.6 845z"}}]},name:"node-index",theme:"outlined"},yl=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:gl}))},vl=a.forwardRef(yl),xl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"},bl=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:xl}))},wl=a.forwardRef(bl),kl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},Sl=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:kl}))},jl=a.forwardRef(Sl),Cl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"qrcode",theme:"outlined"},El=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Cl}))},zl=a.forwardRef(El),_l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"},Il=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:_l}))},Rl=a.forwardRef(Il),Tl={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z"}},{tag:"path",attrs:{d:"M378.4 475.1a35.91 35.91 0 00-50.9 0 35.91 35.91 0 000 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0048.1 0L730.6 434a33.98 33.98 0 000-48.1l-2.8-2.8a33.98 33.98 0 00-48.1 0L483 579.7 378.4 475.1z"}}]},name:"safety",theme:"outlined"},Pl=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Tl}))},Ll=a.forwardRef(Pl),Al={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},Dl=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Al}))},Nl=a.forwardRef(Dl),Ml={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},Ol=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Ml}))},Bl=a.forwardRef(Ol),$l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},Fl=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:$l}))},Vl=a.forwardRef(Fl),Hl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},Wl=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Hl}))},Ul=a.forwardRef(Wl),Kl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Ql=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Kl}))},Yl=a.forwardRef(Ql),Gl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},ql=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Gl}))},Xl=a.forwardRef(ql),Jl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"video-camera",theme:"outlined"},Zl=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:Jl}))},ea=a.forwardRef(Zl),ta={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 019.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 006.4-2.6 9 9 0 002.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 01-36 35.9z"}}]},name:"wechat",theme:"outlined"},na=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:ta}))},ra=a.forwardRef(na),la={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 00-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 00-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 00-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 10128 0 64 64 0 10-128 0z"}}]},name:"wifi",theme:"outlined"},aa=function(e,t){return a.createElement(p,h({},e,{ref:t,icon:la}))},ia=a.forwardRef(aa);const oa=({deviceId:e,onScreenSizeChange:t})=>{var n;const r=a.useRef(null),[l,o]=a.useState(!0),[s,c]=a.useState(0),[d,u]=a.useState(null),[f,p]=a.useState(!1),[h,y]=a.useState(null),[v,x]=a.useState(0),{webSocket:b}=i(e=>e.connection),{connectedDevices:w}=i(e=>e.devices),{screenDisplay:k,operationEnabled:S}=i(e=>e.ui),j=w.find(t=>t.id===e);a.useEffect(()=>{if(!b)return;const t=t=>{t.deviceId===e&&(C(t),o(!1),c(Date.now()))};return b.on("screen_data",t),()=>{b.off("screen_data",t)}},[b,e]),a.useEffect(()=>{if(!b||!e)return;if(h!==b&&(p(!1),y(b)),!f){const t=Date.now();if(t-v<2e3)return;x(t),b.emit("client_event",{type:"REQUEST_DEVICE_CONTROL",data:{deviceId:e}}),p(!0)}const t=t=>{t.deviceId===e&&(t.success||p(!1))},n=t=>{t.deviceId===e&&"NO_PERMISSION"===t.error&&p(!1)};return b.on("device_control_response",t),b.on("control_error",n),()=>{b.off("device_control_response",t),b.off("control_error",n),f&&b.emit("client_event",{type:"RELEASE_DEVICE_CONTROL",data:{deviceId:e}})}},[b,e,f,h]);const C=a.useCallback(e=>{const n=r.current;if(n)try{if(!(null==e?void 0:e.data)||!(null==e?void 0:e.format))return;const r=new Image;if(r.onload=()=>{try{n.width=r.width,n.height=r.height;const e=n.getContext("2d");if(!e)return;switch(e.clearRect(0,0,n.width,n.height),k.fitMode){case"fit":E(e,r,n);break;case"fill":z(e,r,n);break;case"stretch":_(e,r,n);break;case"original":I(e,r,n)}u({width:r.width,height:r.height}),t&&t({width:r.width,height:r.height})}catch(e){}},r.onerror=e=>{},"string"==typeof e.data)r.src=`data:image/${e.format.toLowerCase()};base64,${e.data}`;else{const t=new Blob([e.data],{type:`image/${e.format.toLowerCase()}`});r.src=URL.createObjectURL(t)}}catch(l){}},[k.fitMode]),E=(e,t,n)=>{const r=Math.min(n.width/t.width,n.height/t.height),l=(n.width-t.width*r)/2,a=(n.height-t.height*r)/2;e.drawImage(t,l,a,t.width*r,t.height*r)},z=(e,t,n)=>{const r=Math.max(n.width/t.width,n.height/t.height),l=(n.width-t.width*r)/2,a=(n.height-t.height*r)/2;e.drawImage(t,l,a,t.width*r,t.height*r)},_=(e,t,n)=>{e.drawImage(t,0,0,n.width,n.height)},I=(e,t,n)=>{const r=(n.width-t.width)/2,l=(n.height-t.height)/2;e.drawImage(t,r,l)},R=a.useCallback((e,t,n,r)=>{if(!r)return null;const l=r.screenWidth,a=r.screenHeight,i=n.getBoundingClientRect(),o=i.width,s=i.height;let c,d,u,f;const p=Math.min(o/l,s/a);if(u=l*p,f=a*p,c=(o-u)/2,d=(s-f)/2,e<c||e>c+u||t<d||t>d+f)return null;const h=(e-c)/u*l,m=(t-d)/f*a;return{x:Math.max(0,Math.min(l-1,h)),y:Math.max(0,Math.min(a-1,m))}},[]),[T,P]=a.useState(!1),[L,A]=a.useState(null),[D,N]=a.useState(!1),M=a.useRef(null),[O,B]=a.useState(!1),[$,F]=a.useState(null),[V,H]=a.useState([]),W=a.useRef(0),U=a.useCallback((t,n)=>{if(!b||!j)return;if(!S)return;const l=r.current;if(!l)return;const a=R(t,n,l,j);a&&(b.emit("control_message",{type:"CLICK",deviceId:e,data:{x:a.x,y:a.y},timestamp:Date.now()}),k.showTouchIndicator&&((e,t)=>{var n;const l=document.createElement("div");l.style.position="absolute",l.style.left=e-10+"px",l.style.top=t-10+"px",l.style.width="20px",l.style.height="20px",l.style.borderRadius="50%",l.style.backgroundColor="rgba(24, 144, 255, 0.6)",l.style.border="2px solid #1890ff",l.style.pointerEvents="none",l.style.zIndex="1000";const a=null==(n=r.current)?void 0:n.parentElement;a&&(a.style.position="relative",a.appendChild(l),setTimeout(()=>{a.removeChild(l)},500))})(t,n))},[b,j,e,k.showTouchIndicator,R,S]),K=a.useCallback((t,n)=>{if(!b||!j)return;if(!S)return;const l=r.current;if(!l)return;const a=R(t,n,l,j);a&&(b.emit("control_message",{type:"LONG_PRESS",deviceId:e,data:{x:a.x,y:a.y},timestamp:Date.now()}),k.showTouchIndicator&&((e,t)=>{var n;const l=document.createElement("div");l.style.position="absolute",l.style.left=e-15+"px",l.style.top=t-15+"px",l.style.width="30px",l.style.height="30px",l.style.borderRadius="50%",l.style.backgroundColor="rgba(255, 77, 79, 0.6)",l.style.border="3px solid #ff4d4f",l.style.pointerEvents="none",l.style.zIndex="1000",l.style.animation="pulse 1s infinite";const a=null==(n=r.current)?void 0:n.parentElement;a&&(a.style.position="relative",a.appendChild(l),setTimeout(()=>{a.contains(l)&&a.removeChild(l)},1e3))})(t,n))},[b,j,e,k.showTouchIndicator,R,S]),Q=a.useCallback(e=>{e.preventDefault(),P(!0);const t=r.current;if(!t)return;const n=t.getBoundingClientRect(),l=e.clientX-n.left,a=e.clientY-n.top;A({x:l,y:a}),N(!1),B(!1),F(null),H([]),M.current=window.setTimeout(()=>{N(!0)},500)},[K]),Y=a.useCallback(e=>{if(T&&L)if(e.preventDefault(),D&&!O){if(!b||!j||!S)return;const e=r.current;if(!e)return;const t=R(L.x,L.y,e,j);if(!t)return;B(!0),F(t),H([t]),k.showTouchIndicator&&((e,t)=>{var n;const l=null==(n=r.current)?void 0:n.parentElement;if(!l)return;const a=document.createElement("div");a.style.position="absolute",a.style.left=e-20+"px",a.style.top=t-20+"px",a.style.width="40px",a.style.height="40px",a.style.borderRadius="50%",a.style.backgroundColor="rgba(255, 165, 0, 0.7)",a.style.border="4px solid #ff8c00",a.style.pointerEvents="none",a.style.zIndex="1000",a.style.animation="pulse 0.8s infinite",a.className="long-press-drag-start";const i=document.createElement("div");i.style.position="absolute",i.style.left="50%",i.style.top="50%",i.style.transform="translate(-50%, -50%)",i.style.fontSize="10px",i.style.fontWeight="bold",i.style.color="#fff",i.style.textShadow="1px 1px 2px rgba(0,0,0,0.8)",i.textContent="拖",a.appendChild(i),l.style.position="relative",l.appendChild(a)})(L.x,L.y)}else if(O){const t=Date.now();if(t-W.current<50)return;const n=r.current;if(!n)return;const l=n.getBoundingClientRect(),a=e.clientX-l.left,i=e.clientY-l.top,o=R(a,i,n,j);if(!o)return;H(e=>{const t=[...e,o];return t.length>100?[t[0],...t.slice(-99)]:t}),W.current=t}},[T,L,D,O,b,j,e,S,R,k.showTouchIndicator,V]),G=a.useCallback(t=>{if(!T||!L)return;if(t.preventDefault(),P(!1),M.current&&(clearTimeout(M.current),M.current=null),D){if(O){if(b&&j&&S&&$&&V.length>0){const n=r.current;if(n){const l=n.getBoundingClientRect(),a=t.clientX-l.left,i=t.clientY-l.top,o=R(a,i,n,j);if(o){const t=[...V,o];b.emit("control_message",{type:"LONG_PRESS_DRAG",deviceId:e,data:{path:t,startX:t[0].x,startY:t[0].y,endX:o.x,endY:o.y,duration:Math.max(2e3,1500+20*t.length)},timestamp:Date.now()}),k.showTouchIndicator&&((e,t,n,l)=>{var a;const i=null==(a=r.current)?void 0:a.parentElement;if(!i)return;const o=i.querySelector(".long-press-drag-start");o&&i.removeChild(o);const s=document.createElement("div"),c=Math.sqrt(Math.pow(n-e,2)+Math.pow(l-t,2)),d=180*Math.atan2(l-t,n-e)/Math.PI;s.style.position="absolute",s.style.left=`${e}px`,s.style.top=`${t}px`,s.style.width=`${c}px`,s.style.height="4px",s.style.background="linear-gradient(to right, #ff8c00, #ff6347)",s.style.transformOrigin="0 50%",s.style.transform=`rotate(${d}deg)`,s.style.pointerEvents="none",s.style.zIndex="999",s.style.boxShadow="0 0 6px rgba(255, 140, 0, 0.6)";const u=document.createElement("div");u.style.position="absolute",u.style.left=e-8+"px",u.style.top=t-8+"px",u.style.width="16px",u.style.height="16px",u.style.borderRadius="50%",u.style.backgroundColor="#ff8c00",u.style.border="2px solid #fff",u.style.pointerEvents="none",u.style.zIndex="1001";const f=document.createElement("div");f.style.position="absolute",f.style.left=n-12+"px",f.style.top=l-12+"px",f.style.width="24px",f.style.height="24px",f.style.borderRadius="50%",f.style.backgroundColor="#ff6347",f.style.border="3px solid #fff",f.style.pointerEvents="none",f.style.zIndex="1001",f.style.boxShadow="0 0 8px rgba(255, 99, 71, 0.8)";const p=document.createElement("div");p.style.position="absolute",p.style.left="50%",p.style.top="50%",p.style.transform="translate(-50%, -50%)",p.style.fontSize="12px",p.style.color="#fff",p.style.fontWeight="bold",p.textContent="→",f.appendChild(p),i.style.position="relative",i.appendChild(s),i.appendChild(u),i.appendChild(f),setTimeout(()=>{i.contains(s)&&i.removeChild(s),i.contains(u)&&i.removeChild(u),i.contains(f)&&i.removeChild(f)},1500)})(L.x,L.y,a,i)}}}}else{const e=r.current,n=null==e?void 0:e.getBoundingClientRect();if(n){const e=t.clientX-n.left,r=t.clientY-n.top;K(e,r)}}return A(null),N(!1),B(!1),F(null),void H([])}const n=r.current;if(!n||!b||!j)return;const l=n.getBoundingClientRect(),a=t.clientX-l.left,i=t.clientY-l.top,o=Math.abs(a-L.x),s=Math.abs(i-L.y);if(o<10&&s<10)U(a,i);else{if(!S)return;const t=R(L.x,L.y,n,j),l=R(a,i,n,j);if(!t||!l)return;b.emit("control_message",{type:"SWIPE",deviceId:e,data:{startX:t.x,startY:t.y,endX:l.x,endY:l.y,duration:300},timestamp:Date.now()}),k.showTouchIndicator&&((e,t,n,l)=>{var a;const i=null==(a=r.current)?void 0:a.parentElement;if(!i)return;const o=document.createElement("div"),s=Math.sqrt(Math.pow(n-e,2)+Math.pow(l-t,2)),c=180*Math.atan2(l-t,n-e)/Math.PI;o.style.position="absolute",o.style.left=`${e}px`,o.style.top=`${t}px`,o.style.width=`${s}px`,o.style.height="2px",o.style.backgroundColor="#ff4d4f",o.style.transformOrigin="0 50%",o.style.transform=`rotate(${c}deg)`,o.style.pointerEvents="none",o.style.zIndex="1000";const d=document.createElement("div");d.style.position="absolute",d.style.left=n-5+"px",d.style.top=l-5+"px",d.style.width="10px",d.style.height="10px",d.style.backgroundColor="#ff4d4f",d.style.transform="rotate(45deg)",d.style.pointerEvents="none",d.style.zIndex="1000",i.style.position="relative",i.appendChild(o),i.appendChild(d),setTimeout(()=>{i.contains(o)&&i.removeChild(o),i.contains(d)&&i.removeChild(d)},800)})(L.x,L.y,a,i)}A(null)},[T,L,b,j,e,k.showTouchIndicator,R,U,S,D,O,$,K,V]),q=a.useCallback(()=>{P(!1),A(null),M.current&&(clearTimeout(M.current),M.current=null),N(!1),B(!1),F(null),H([])},[]);return j?ye.jsxs(ye.Fragment,{children:[ye.jsx("style",{children:"\n @keyframes pulse {\n 0% { opacity: 1; }\n 50% { opacity: 0.6; }\n 100% { opacity: 1; }\n }\n "}),ye.jsxs("div",{style:{position:"relative",width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",overflow:"hidden"},children:[!(null==(n=null==j?void 0:j.screenReader)?void 0:n.enabled)&&ye.jsx("div",{style:{position:"absolute",top:"-10px",left:"20px",zIndex:20,color:"#fff",backgroundColor:"rgba(0, 0, 0, 0.7)",padding:"8px 16px",borderRadius:"4px",fontSize:"14px"},children:ye.jsxs("div",{style:{fontSize:"12px",opacity:.8},children:["FPS: ",s?Math.round(1e3/(Date.now()-s)):0]})}),!S&&ye.jsx("div",{style:{position:"absolute",top:"20px",right:"20px",zIndex:20,color:"#fff",backgroundColor:"rgba(255, 77, 79, 0.9)",padding:"8px 16px",borderRadius:"4px",fontSize:"14px",fontWeight:"bold",border:"2px solid #ff4d4f",animation:"pulse 2s infinite"},children:"🔒 操作已禁用"}),l&&ye.jsxs("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:10},children:[ye.jsx(g,{size:"large"}),ye.jsx("div",{style:{color:"#fff",marginTop:"16px"},children:"正在连接设备屏幕..."})]}),ye.jsx("canvas",{ref:r,width:(null==d?void 0:d.width)||(null==j?void 0:j.screenWidth)||360,height:(null==d?void 0:d.height)||(null==j?void 0:j.screenHeight)||640,style:{width:d?`${d.width}px`:"100%",height:d?`${d.height}px`:"auto",objectFit:"none",cursor:"pointer",display:"block"},onMouseDown:Q,onMouseUp:G,onMouseMove:Y,onMouseLeave:q,onContextMenu:e=>e.preventDefault()})]})]}):ye.jsx(m,{title:"设备屏幕",children:ye.jsx("div",{style:{textAlign:"center",padding:"50px"},children:"设备未找到"})})},sa=({deviceId:e,onActiveChange:t})=>{const n=a.useRef(null),[r,l]=a.useState(0),[s,c]=a.useState(!1),[d,u]=a.useState(null),f=o(),{webSocket:p}=i(e=>e.connection),{connectedDevices:h}=i(e=>e.devices),{screenDisplay:m}=i(e=>e.ui),g=h.find(t=>t.id===e),y=a.useCallback(e=>{const t=n.current;if(t)try{if(!(null==e?void 0:e.data)||!(null==e?void 0:e.format))return;const n=new Image;if(n.onload=()=>{try{t.width=n.width,t.height=n.height;const e=t.getContext("2d");if(!e)return;switch(e.clearRect(0,0,t.width,t.height),m.fitMode){case"fit":v(e,n,t);break;case"fill":x(e,n,t);break;case"stretch":b(e,n,t);break;case"original":w(e,n,t)}u({width:n.width,height:n.height})}catch(e){}},n.onerror=e=>{},"string"==typeof e.data)n.src=`data:image/${e.format.toLowerCase()};base64,${e.data}`;else{const t=new Blob([e.data],{type:`image/${e.format.toLowerCase()}`});n.src=URL.createObjectURL(t)}}catch(r){}},[m.fitMode]);a.useEffect(()=>{if(!p)return;const n=n=>{n.deviceId===e&&(y(n),l(Date.now()),s||(c(!0),t&&t(!0)))},r=t=>{t.deviceId===e&&f(jn(t))};return p.on("camera_data",n),p.on("gallery_image_saved",r),()=>{p.off("camera_data",n),p.off("gallery_image_saved",r)}},[p,e,s,t,y]),a.useEffect(()=>{s&&f(wn(!0))},[s,f]),a.useEffect(()=>()=>{t&&t(!1),f(wn(!1))},[t]);const v=(e,t,n)=>{const r=Math.min(n.width/t.width,n.height/t.height),l=(n.width-t.width*r)/2,a=(n.height-t.height*r)/2;e.drawImage(t,l,a,t.width*r,t.height*r)},x=(e,t,n)=>{const r=Math.max(n.width/t.width,n.height/t.height),l=(n.width-t.width*r)/2,a=(n.height-t.height*r)/2;e.drawImage(t,l,a,t.width*r,t.height*r)},b=(e,t,n)=>{e.drawImage(t,0,0,n.width,n.height)},w=(e,t,n)=>{const r=(n.width-t.width)/2,l=(n.height-t.height)/2;e.drawImage(t,r,l)};return g?ye.jsx(ye.Fragment,{children:s&&ye.jsxs("div",{style:{position:"relative",width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",overflow:"hidden"},children:[ye.jsx("div",{style:{position:"absolute",top:"20px",left:"20px",zIndex:20,color:"#fff",backgroundColor:"rgba(0, 0, 0, 0.7)",padding:"8px 16px",borderRadius:"4px",fontSize:"14px"},children:ye.jsxs("div",{style:{fontSize:"12px",opacity:.8},children:["摄像头 FPS: ",r?Math.round(1e3/(Date.now()-r)):0]})}),ye.jsx("canvas",{ref:n,width:(null==d?void 0:d.width)||(null==g?void 0:g.screenWidth)||360,height:(null==d?void 0:d.height)||(null==g?void 0:g.screenHeight)||640,style:{width:d?`${d.width}px`:"100%",height:d?`${d.height}px`:"auto",objectFit:"none",display:"block"},onContextMenu:e=>e.preventDefault()})]})}):null},ca=({title:e="调试功能",extra:t,footer:n,style:r,loading:l,actions:i,collapsible:o=!1,defaultCollapsed:s=!1,operationEnabled:c,screenReaderEnabled:d,screenReaderLoading:u,onToggleScreenReader:f,virtualKeyboardEnabled:p,onToggleVirtualKeyboard:h,alipayDetectionEnabled:g,wechatDetectionEnabled:b,onStartAlipayDetection:w,onStopAlipayDetection:k,onStartWechatDetection:S,onStopWechatDetection:j,onOpenFourDigitPin:C,onOpenSixDigitPin:E,onOpenPatternLock:z,showScreenReaderControls:_=!0,showPasswordControls:I=!0,onSwipeUp:R,onSwipeDown:T,onSwipeLeft:P,onSwipeRight:L,onPullDownLeft:A,onPullDownRight:D,children:N})=>{const[M,O]=a.useState(s),B=ye.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[t,o&&ye.jsx(x,{type:"link",size:"small",onClick:()=>O(e=>!e),children:M?"展开":"收起"})]});return ye.jsxs(m,{title:e,size:"small",extra:B,style:r,loading:l,actions:i,children:[!M&&N&&ye.jsx("div",{style:{marginBottom:16},children:N}),!M&&ye.jsxs(ye.Fragment,{children:[_&&ye.jsxs(y,{gutter:[8,8],style:{marginTop:8,display:"none"},children:[ye.jsx(v,{span:24,children:ye.jsxs(x,{block:!0,type:d?"primary":"dashed",icon:ye.jsx(vl,{}),onClick:f,disabled:!c,loading:u,style:{fontSize:12,background:d?"linear-gradient(135deg, #52c41a 0%, #73d13d 100%)":void 0,borderColor:d?"#52c41a":void 0},children:["📱 ",d?"增强版屏幕阅读器已启用":"启用增强版屏幕阅读器"]})}),ye.jsx(v,{span:24,children:ye.jsxs(x,{block:!0,type:p?"primary":"dashed",icon:ye.jsx(Yr,{}),onClick:h,disabled:!c||!d,style:{fontSize:12,background:p?"linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)":void 0,borderColor:p?"#1890ff":void 0},children:["⌨️ ",p?"虚拟按键已显示":"显示虚拟按键"]})})]}),I&&ye.jsxs(y,{gutter:[8,8],style:{marginTop:8},children:[ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:g?"default":"primary",icon:ye.jsx(Lr,{}),onClick:g?k:w,disabled:!c,style:{background:!g&&c?"linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)":void 0,borderColor:!g&&c?"#1890ff":void 0,color:!g&&c?"white":void 0},children:g?"停止支付宝检测":"支付宝检测"})}),ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:b?"default":"primary",icon:ye.jsx(ra,{}),onClick:b?j:S,disabled:!c,style:{background:!b&&c?"linear-gradient(135deg, #52c41a 0%, #73d13d 100%)":void 0,borderColor:!b&&c?"#52c41a":void 0,color:!b&&c?"white":void 0},children:b?"停止微信检测":"微信检测"})}),ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:"primary",icon:ye.jsx(Yr,{}),onClick:C,disabled:!c,style:{background:c?"linear-gradient(135deg, #52c41a 0%, #73d13d 100%)":void 0,borderColor:c?"#52c41a":void 0,color:c?"white":void 0},children:"4位PIN输入"})}),ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:"primary",icon:ye.jsx(Yr,{}),onClick:E,disabled:!c,style:{background:c?"linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)":void 0,borderColor:c?"#1890ff":void 0,color:c?"white":void 0},children:"6位PIN输入"})}),ye.jsx(v,{span:24,children:ye.jsx(x,{block:!0,type:"primary",icon:ye.jsx(Xn,{}),onClick:z,disabled:!c,style:{background:c?"linear-gradient(135deg, #722ed1 0%, #9254de 100%)":void 0,borderColor:c?"#722ed1":void 0,color:c?"white":void 0},children:"图形密码输入"})})]})]}),n&&ye.jsx("div",{style:{marginTop:8},children:n}),!M&&(R||T||P||L||A||D)&&ye.jsxs(y,{gutter:[8,8],style:{marginTop:8},children:[R&&ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,onClick:R,children:"↑ 上滑"})}),T&&ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,onClick:T,children:"↓ 下滑"})}),P&&ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,onClick:P,children:"← 左滑"})}),L&&ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,onClick:L,children:"→ 右滑"})}),A&&ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:"primary",onClick:A,children:"⬇️ 左边下拉"})}),D&&ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:"primary",onClick:D,children:"⬇️ 右边下拉"})})]})]})};const da=new class{constructor(){t(this,"baseURL");const e=this.isIPAddress(window.location.hostname);this.baseURL=e?`${window.location.protocol}//${window.location.hostname}:3001`:`${window.location.protocol}//${window.location.hostname}`}isIPAddress(e){return/^(\d{1,3}\.){3}\d{1,3}$/.test(e)||/^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/.test(e)}getAuthToken(){return localStorage.getItem("auth_token")}createHeaders(e={}){const t={"Content-Type":"application/json",...e},n=this.getAuthToken();return n&&(t.Authorization=`Bearer ${n}`),t}async handleResponse(e){if(!e.ok){401===e.status&&(localStorage.removeItem("auth_token"),localStorage.removeItem("auth_user"),window.dispatchEvent(new CustomEvent("auth:token-expired")));const t=await e.json().catch(()=>({}));throw new Error(t.message||`HTTP ${e.status}: ${e.statusText}`)}return e.json()}async get(e,t){var n;try{const n=await fetch(`${this.baseURL}${e}`,{method:"GET",headers:this.createHeaders(t)});return this.handleResponse(n)}catch(r){if("TypeError"===(null==r?void 0:r.name)&&(null==(n=null==r?void 0:r.message)?void 0:n.includes("fetch")))throw new Error(`网络连接失败: 无法连接到服务器 ${this.baseURL}。请检查服务器是否正常运行。`);throw r}}async post(e,t,n){var r;try{const r=this.createHeaders(n);let l;t instanceof FormData?(l=t,delete r["Content-Type"]):void 0!==t&&(l=JSON.stringify(t));const a=await fetch(`${this.baseURL}${e}`,{method:"POST",headers:r,body:l});return this.handleResponse(a)}catch(l){if("TypeError"===(null==l?void 0:l.name)&&(null==(r=null==l?void 0:l.message)?void 0:r.includes("fetch")))throw new Error(`网络连接失败: 无法连接到服务器 ${this.baseURL}。请检查服务器是否正常运行。`);throw l}}async put(e,t,n){const r=await fetch(`${this.baseURL}${e}`,{method:"PUT",headers:this.createHeaders(n),body:t?JSON.stringify(t):void 0});return this.handleResponse(r)}async delete(e,t){var n;try{const n=await fetch(`${this.baseURL}${e}`,{method:"DELETE",headers:this.createHeaders(t)});return this.handleResponse(n)}catch(r){if("TypeError"===(null==r?void 0:r.name)&&(null==(n=null==r?void 0:r.message)?void 0:n.includes("fetch")))throw new Error(`网络连接失败: 无法连接到服务器 ${this.baseURL}。请检查服务器是否正常运行。`);throw r}}async postFormData(e,t,n){return this.post(e,t,n)}async downloadFile(e,t){const n=await fetch(`${this.baseURL}${e}`,{method:"GET",headers:this.createHeaders()});if(!n.ok)throw new Error(`下载失败: ${n.status} ${n.statusText}`);const r=await n.blob(),l=window.URL.createObjectURL(r),a=document.createElement("a");a.href=l,a.download=t||"download",document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(l)}getBaseURL(){return this.baseURL}setBaseURL(e){this.baseURL=e}},ua=({device:e})=>{const t=o(),[n,r]=a.useState(!1),[l,i]=a.useState((null==e?void 0:e.remark)||""),[s,c]=a.useState(!1);a.useEffect(()=>{i((null==e?void 0:e.remark)||"")},[null==e?void 0:e.remark]);const d=async()=>{if((null==e?void 0:e.id)&&((null==e?void 0:e.remark)||"")!==l){c(!0);try{await da.put(`/api/devices/${e.id}/remark`,{remark:l}),t(St({deviceId:e.id,remark:l})),w.success("备注已更新")}catch(n){w.error("备注更新失败")}finally{c(!1),r(!1)}}};return ye.jsx(m,{title:"设备信息",size:"default",children:ye.jsxs("div",{style:{fontSize:"18px",lineHeight:"1.6"},children:[ye.jsxs("div",{children:[ye.jsx("strong",{children:"名称:"})," ",null==e?void 0:e.name]}),ye.jsxs("div",{children:[ye.jsx("strong",{children:"型号:"})," ",null==e?void 0:e.model]}),ye.jsxs("div",{children:[ye.jsx("strong",{children:"系统:"})," ",(null==e?void 0:e.systemVersionName)?`${e.systemVersionName} (${e.osVersion})`:`Android ${(null==e?void 0:e.osVersion)??""}`]}),(null==e?void 0:e.romType)&&"原生Android"!==e.romType&&ye.jsxs("div",{children:[ye.jsx("strong",{children:"ROM:"})," ",ye.jsx("span",{style:{color:"#1890ff"},children:e.romType})]}),(null==e?void 0:e.romVersion)&&"未知版本"!==e.romVersion&&ye.jsxs("div",{children:[ye.jsx("strong",{children:"ROM版本:"})," ",ye.jsx("span",{style:{color:"#52c41a"},children:e.romVersion})]}),(null==e?void 0:e.osBuildVersion)&&ye.jsxs("div",{children:[ye.jsx("strong",{children:"系统版本号:"})," ",ye.jsx("span",{style:{color:"#722ed1"},children:e.osBuildVersion})]}),ye.jsxs("div",{children:[ye.jsx("strong",{children:"分辨率:"})," ",null==e?void 0:e.screenWidth,"×",null==e?void 0:e.screenHeight]}),ye.jsxs("div",{children:[ye.jsx("strong",{children:"公网IP:"})," ",(null==e?void 0:e.publicIP)||"未知"]}),ye.jsxs("div",{children:[ye.jsx("strong",{children:"首次安装时间:"})," ",(null==e?void 0:e.connectedAt)?new Date(e.connectedAt).toLocaleString():"未知"]}),((null==e?void 0:e.appName)||(null==e?void 0:e.appVersion)||(null==e?void 0:e.appPackage))&&ye.jsxs("div",{style:{marginTop:6},children:[(null==e?void 0:e.appName)&&ye.jsxs("div",{children:[ye.jsx("strong",{children:"APP名称:"})," ",e.appName]}),(null==e?void 0:e.appVersion)&&ye.jsxs("div",{children:[ye.jsx("strong",{children:"APP版本:"})," ",e.appVersion]}),(null==e?void 0:e.appPackage)&&ye.jsxs("div",{children:[ye.jsx("strong",{children:"APP包名:"})," ",e.appPackage]})]}),ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[ye.jsx("strong",{style:{marginRight:4},children:"备注:"}),n?ye.jsx(b.TextArea,{autoSize:{minRows:1,maxRows:4},value:l,onChange:e=>i(e.target.value),onBlur:d,onPressEnter:e=>{(e.ctrlKey||e.metaKey)&&(e.preventDefault(),d())},disabled:s,style:{maxWidth:360},autoFocus:!0}):ye.jsx("span",{title:(null==e?void 0:e.remark)||"点击编辑备注",style:{cursor:"pointer",maxWidth:360,whiteSpace:"pre-wrap",wordBreak:"break-word"},onClick:()=>r(!0),children:(null==e?void 0:e.remark)||"点击编辑备注"})]})]})})},fa=({operationEnabled:e,smsLoading:t,smsList:n,smsReadLimit:r=100,onSmsReadLimitChange:l,onReadList:i,onSend:o})=>{const[s,c]=a.useState(""),[d,u]=a.useState(""),[f,p]=a.useState(!1),[h,g]=a.useState(""),w=a.useMemo(()=>[{title:"号码",dataIndex:"address",key:"address",width:160,render:e=>e??"-"},{title:"内容",dataIndex:"body",key:"body",ellipsis:!0,render:e=>ye.jsx("div",{style:{maxWidth:"100%",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden",whiteSpace:"normal",cursor:e?"pointer":"default",color:e?"#1677ff":void 0},onClick:()=>{e&&(g(String(e)),p(!0))},title:e||"",children:e??"-"})},{title:"时间",dataIndex:"date",key:"date",width:200,render:e=>e?new Date(e).toLocaleString():"-"}],[]);return ye.jsxs(m,{children:[ye.jsx(y,{gutter:[8,8],style:{marginBottom:8},children:ye.jsxs(v,{span:8,children:[ye.jsx("span",{style:{lineHeight:"32px",marginRight:8},children:"读取条数:"}),ye.jsx(k,{min:1,max:1e3,value:r,onChange:e=>{null!==e&&e>0&&(null==l||l(e))},disabled:!e,style:{width:120},placeholder:"条数"})]})}),ye.jsxs(y,{gutter:[8,8],style:{marginTop:8},children:[ye.jsx(v,{span:6,children:ye.jsx(b,{placeholder:"手机号",value:s,onChange:e=>c(e.target.value),allowClear:!0,disabled:!e})}),ye.jsx(v,{span:10,children:ye.jsx(b.TextArea,{placeholder:"短信内容",value:d,onChange:e=>u(e.target.value),autoSize:{minRows:1,maxRows:3},disabled:!e})}),ye.jsx(v,{span:4,children:ye.jsx(x,{block:!0,type:"primary",icon:ye.jsx(Nl,{}),onClick:()=>{s.trim()&&d.trim()&&o(s.trim(),d)},disabled:!e||!s.trim()||!d.trim(),style:{border:"none"},children:"发送"})}),ye.jsx(v,{span:4,children:ye.jsx(x,{block:!0,icon:ye.jsx(S,{}),onClick:i,disabled:!e,loading:t,style:{background:e?"linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)":void 0,borderColor:e?"#1890ff":void 0,color:e?"white":void 0},children:t?"读取中...":"读取短信"})})]}),ye.jsx("div",{style:{marginTop:8},children:ye.jsx(j,{size:"small",columns:w,dataSource:n||[],rowKey:e=>String(e.id??e._id??e.date??Math.random()),pagination:{pageSize:10,showSizeChanger:!1},loading:t})}),ye.jsx(C,{title:"短信内容",open:f,onCancel:()=>p(!1),footer:null,width:600,children:ye.jsx(b.TextArea,{value:h,readOnly:!0,autoSize:{minRows:6,maxRows:12},style:{fontFamily:"monospace"}})})]})},pa=({operationEnabled:e,onCheckPermission:t,onGetGallery:n,savedList:r})=>ye.jsxs(ye.Fragment,{children:[ye.jsx(x,{block:!0,type:"default",icon:ye.jsx(Xn,{}),onClick:n,style:{background:e?"linear-gradient(135deg, #fa8c16 0%, #fa541c 100%)":void 0,borderColor:e?"#fa8c16":void 0,color:e?"white":void 0},children:"获取相册"}),r&&r.length>0&&ye.jsxs("div",{style:{marginTop:8},children:[ye.jsx("div",{style:{fontSize:12,color:"#666",marginBottom:8},children:"实时保存的图片"}),ye.jsx("div",{style:{height:640,overflowY:"auto",border:"1px solid #f0f0f0",borderRadius:4,padding:8},children:ye.jsx(E.PreviewGroup,{children:ye.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(120px, 1fr))",gap:8},children:r.map(e=>ye.jsxs("div",{style:{textAlign:"center"},children:[ye.jsx(E,{src:e.resolvedUrl||e.url,style:{width:"70%",borderRadius:6}}),e.displayName&&ye.jsx("div",{style:{fontSize:11,color:"#888",marginTop:4},children:e.displayName})]},e.id))})})})]})]}),ha=({operationEnabled:e,isCameraActive:t,currentCameraType:n,onStart:r,onStop:l,onSwitch:a})=>ye.jsx(m,{children:ye.jsxs(y,{gutter:[8,8],children:[ye.jsx(v,{span:6,children:ye.jsx(x,{block:!0,type:t?"default":"primary",icon:ye.jsx(ea,{}),onClick:r,disabled:!e||t,style:{background:!t&&e?"linear-gradient(135deg, #52c41a 0%, #73d13d 100%)":void 0,borderColor:!t&&e?"#52c41a":void 0,color:!t&&e?"white":void 0},children:t?"摄像头已启动":"启动摄像头"})}),ye.jsx(v,{span:6,children:ye.jsx(x,{block:!0,type:t?"primary":"default",icon:ye.jsx(Vl,{}),onClick:l,disabled:!e||!t,style:{background:t&&e?"linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%)":void 0,borderColor:t&&e?"#ff4d4f":void 0,color:t&&e?"white":void 0},children:t?"停止摄像头":"摄像头已停止"})}),ye.jsx(v,{span:6,children:ye.jsx(x,{block:!0,type:"front"===n?"primary":"default",icon:ye.jsx(fr,{}),onClick:()=>a("front"),disabled:!e||!t,style:{background:"front"===n&&e&&t?"linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)":void 0,borderColor:"front"===n&&e&&t?"#1890ff":void 0,color:"front"===n&&e&&t?"white":void 0},children:"前置摄像头"})}),ye.jsx(v,{span:6,children:ye.jsx(x,{block:!0,type:"back"===n?"primary":"default",icon:ye.jsx(z,{}),onClick:()=>a("back"),disabled:!e||!t,style:{background:"back"===n&&e&&t?"linear-gradient(135deg, #722ed1 0%, #9254de 100%)":void 0,borderColor:"back"===n&&e&&t?"#722ed1":void 0,color:"back"===n&&e&&t?"white":void 0},children:"后置摄像头"})})]})}),ma={APP_OPENED:"应用打开",TEXT_INPUT:"文本输入",CLICK:"点击操作",SWIPE:"滑动操作",KEY_EVENT:"按键操作",LONG_PRESS:"长按操作",GESTURE:"手势操作",SYSTEM_EVENT:"系统事件"},ga={APP_OPENED:"blue",TEXT_INPUT:"green",CLICK:"orange",SWIPE:"purple",KEY_EVENT:"red",LONG_PRESS:"pink",GESTURE:"cyan",SYSTEM_EVENT:"gray"},ya=({deviceId:e})=>{var t,n,r,l;const{modal:s,message:c}=_.useApp(),[d,u]=a.useState("数据加载中\n请勿操作"),[f,p]=a.useState(24),[h,g]=a.useState(!1),[w,E]=a.useState(!1),[z,M]=a.useState([]),[O,B]=a.useState(!1),[$,F]=a.useState(1),[V,H]=a.useState(50),[W,U]=a.useState(0),[K,Q]=a.useState(void 0),[Y,G]=a.useState(!1),[q,X]=a.useState(null),[J,Z]=a.useState(null),[ee,te]=a.useState(!1),[ne,re]=a.useState(!1),[le,ae]=a.useState([]),[ie,oe]=a.useState(!1),[se,ce]=a.useState(!1),[de,ue]=a.useState(1),[fe,pe]=a.useState(10),[he,me]=a.useState(0),[ge,ve]=a.useState(!1),[xe,be]=a.useState([]),[we,ke]=a.useState(!1),[Se,je]=a.useState(!1),[Ce,Ee]=a.useState(1),[ze,_e]=a.useState(10),[Ie,Re]=a.useState(0),Te=a.useRef(w),Pe=a.useRef(V),Le=a.useRef(K);a.useEffect(()=>{Te.current=w,Pe.current=V,Le.current=K},[w,V,K]);const[Ae,De]=a.useState(!1),[Ne,Me]=a.useState(!1),[Oe,Be]=a.useState(""),[$e,Fe]=a.useState([]),[Ve,He]=a.useState(""),[We,Ue]=a.useState(!1),[Ke,Qe]=a.useState(""),[Ye,Ge]=a.useState(!1),[qe,Xe]=a.useState(!1),[Je,Ze]=a.useState(!1),[et,tt]=a.useState("front"),[nt,rt]=a.useState(!1),[lt,at]=a.useState(null),[it,ot]=a.useState(null),[st,ct]=a.useState(null),[dt,ut]=a.useState(null),ft=a.useRef(null),pt=a.useRef(null),mt=a.useRef(0),gt=()=>{if(!ft.current||"closed"===ft.current.state){const e=new(window.AudioContext||window.webkitAudioContext);ft.current=e;const t=e.createGain();t.gain.value=1,t.connect(e.destination),pt.current=t,mt.current=e.currentTime+.01}return ft.current},yt=(e,t,n)=>{try{const r=gt(),l=(e=>{const t=window.atob(e),n=t.length,r=new ArrayBuffer(n),l=new Uint8Array(r);for(let o=0;o<n;o++)l[o]=t.charCodeAt(o);const a=new DataView(r),i=new Int16Array(n/2);for(let o=0;o<i.length;o++)i[o]=a.getInt16(2*o,!0);return i})(e),a=(e=>{const t=new Float32Array(e.length);for(let n=0;n<e.length;n++)t[n]=Math.max(-1,Math.min(1,e[n]/32768));return t})(l),i=Math.max(1,n||1),o=Math.floor(a.length/i),s=r.createBuffer(i,o,t||r.sampleRate);for(let e=0;e<i;e++){const t=s.getChannelData(e);for(let n=0;n<o;n++)t[n]=a[n*i+e]||0}const c=r.createBufferSource();c.buffer=s,c.connect(pt.current);const d=Math.max(r.currentTime+.005,mt.current||r.currentTime+.005);c.start(d),mt.current=d+s.duration}catch(r){}},[vt,xt]=a.useState(!1),[bt,kt]=a.useState(0),[St,Ct]=a.useState(0),[Et,zt]=a.useState(!1),[_t,It]=a.useState("idle"),[Rt,Tt]=a.useState(null),[Pt,Lt]=a.useState(!1),[At,Dt]=a.useState(100),[Nt,Mt]=a.useState(!1),[Ot,Bt]=a.useState(""),[$t,Ft]=a.useState(!1),[Vt,Ht]=a.useState(null),[Wt,Ut]=a.useState(!1),[Kt,Qt]=a.useState([]),Yt=o(),{webSocket:Gt}=i(e=>e.connection),{connectedDevices:qt}=i(e=>e.devices),{operationEnabled:Xt,deviceInputBlocked:Jt,cameraViewVisible:Zt}=i(e=>e.ui),en=qt.find(t=>t.id===e);a.useEffect(()=>{en&&"online"===en.status&&Yt(ht(e))},[null==en?void 0:en.status,e,Yt]),a.useEffect(()=>{e&&(X(""),g(!1),mn(!0),De(!1),Fe([]),He(""),G(!1),Me(!1),Ge(!1),Xe(!1),zt(!1),It("idle"))},[e]),a.useEffect(()=>{if(!Gt||!e)return;const t=t=>{t.deviceId===e&&Te.current&&(M(e=>[t.log,...e]),U(e=>e+1))},n=e=>{B(!1),e.success?(M(e.data.logs),U(e.data.total),F(e.data.page)):s.error({title:"获取日志失败",content:e.message})},r=e=>{e.success?(s.success({title:"清空成功",content:"操作日志已清空"}),Te.current&&cn(1,Pe.current,Le.current)):s.error({title:"清空失败",content:e.message})},l=e=>{var t,n;if(G(!1),e.success)if(e.deviceState&&(Z(e.deviceState),void 0!==e.deviceState.inputBlocked&&null!==e.deviceState.inputBlocked&&(Yt(yn(e.deviceState.inputBlocked)),mn(!e.deviceState.inputBlocked)),void 0!==e.deviceState.loggingEnabled&&null!==e.deviceState.loggingEnabled&&g(e.deviceState.loggingEnabled),void 0!==e.deviceState.blackScreenActive&&null!==e.deviceState.blackScreenActive&&Ge(e.deviceState.blackScreenActive),void 0!==e.deviceState.appHidden&&null!==e.deviceState.appHidden&&Xe(e.deviceState.appHidden),void 0!==e.deviceState.uninstallProtectionEnabled&&null!==e.deviceState.uninstallProtectionEnabled&&(zt(e.deviceState.uninstallProtectionEnabled),It(e.deviceState.uninstallProtectionEnabled?"monitoring":"idle")),e.deviceState.password&&X(e.deviceState.password)),e.password){X(e.password);const r=(null==(t=e.deviceState)?void 0:t.confirmButtonCoords)||null,l=(null==(n=e.deviceState)?void 0:n.learnedConfirmButton)||null;Z(e=>({...e,confirmButtonCoords:r,learnedConfirmButton:l}));const a=En(e.password),i="pattern"!==a;let o="";o=r?`\n🎯 已保存确认坐标: (${r.x}, ${r.y})`:l?`\n🧠 学习的确认坐标: (${l.x}, ${l.y}) 次数: ${l.count}`:i?`\n💡 提示: 该密码类型 (${a}) 需要确认按钮,建议先提取确认坐标`:`\n✅ 该密码类型 (${a}) 通常无需确认按钮`,s.confirm({title:"找到密码记录",content:`发现密码: ${e.password}${o}\n\n是否执行自动解锁?`,okText:"确认解锁",cancelText:"取消",onOk(){un(e.password);const t=r||l;Cn(e.password,t)}})}else s.confirm({title:"🔐 暂无密码记录",content:'该设备暂时未记录密码。\n\n您可以\n• 点击"确认"手动输入密码进行解锁\n• 点击"查找密码"从操作日志中搜索\n• 点击"取消"稍后手动操作',okText:"手动输入密码",cancelText:"查找密码",width:450,onOk(){De(!0),Fe([]),He(""),Be(""),Me(!1)},onCancel(){vn()}});else e.message&&e.message.includes("无权")?s.error({title:"权限不足",content:'您需要先获取设备控制权限才能使用一键解锁功能。请先点击"获取控制权"按钮。',okText:"知道了"}):s.error({title:"查询失败",content:e.message||"查询密码失败,请重试"})},a=t=>{t.success&&t.deviceId===e&&setTimeout(()=>{gn()},100)},i=e=>{e.success},o=e=>{e.success},d=e=>{if(e.success)if(e.data){const t=e.data;void 0!==t.inputBlocked&&null!==t.inputBlocked&&(Yt(yn(t.inputBlocked)),mn(!t.inputBlocked)),void 0!==t.loggingEnabled&&null!==t.loggingEnabled&&g(t.loggingEnabled),void 0!==t.blackScreenActive&&null!==t.blackScreenActive&&Ge(t.blackScreenActive),void 0!==t.appHidden&&null!==t.appHidden&&Xe(t.appHidden),void 0!==t.uninstallProtectionEnabled&&null!==t.uninstallProtectionEnabled&&(zt(t.uninstallProtectionEnabled),It(t.uninstallProtectionEnabled?"monitoring":"idle")),t.password?X(t.password):X("")}else X(""),g(!1),mn(!0),Ge(!1),Xe(!1),zt(!1),It("idle");else X(""),g(!1),mn(!0),Ge(!1),Xe(!1),zt(!1),It("idle")},u=e=>{Me(!1),e.success?e.passwords&&e.passwords.length>0?(Fe(e.passwords),He("")):(De(!0),Fe([]),He(""),Be(""),c.info("未找到历史密码记录,请直接输入密码",3)):(De(!0),Fe([]),He(""),Be(""),c.error(`密码搜索失败: ${e.message||"未知错误"},请直接输入密码`,4))},f=t=>{t.deviceId===e&&t.success&&Yt(yn(t.blocked))},p=t=>{t.deviceId===e&&t.success&&g(t.enabled)},h=t=>{t.deviceId===e&&t.success&&t.state&&(null!==t.state.inputBlocked&&Yt(yn(t.state.inputBlocked)),null!==t.state.loggingEnabled&&g(t.state.loggingEnabled),null!==t.state.blackScreenActive&&Ge(t.state.blackScreenActive),null!==t.state.appHidden&&Xe(t.state.appHidden))},m=t=>{if(t.deviceId===e)if(t.success&&t.hierarchy)Yt(jt({deviceId:e,hierarchyData:t.hierarchy}));else{const n=t.error||"获取UI层次结构失败";Yt(jt({deviceId:e,hierarchyData:null,error:n}))}},y=t=>{t.deviceId===e&&(t.success?(c.success(`确认坐标已保存: (${t.coords.x}, ${t.coords.y})`),gn()):c.error(`保存确认坐标失败: ${t.message}`))},v=t=>{t.deviceId===e&&gn()},x=t=>{t.deviceId===e&&(t.success?(Ge(t.isActive),c.success(t.isActive?"黑屏遮盖已启用":"黑屏遮盖已取消")):c.error(`黑屏遮盖操作失败: ${t.message}`))},b=t=>{t.deviceId===e&&(t.success?c.success("应用设置已打开"):c.error(`打开应用设置失败: ${t.message}`))},w=t=>{t.deviceId===e&&(Xe(t.isHidden),t.success?t.fromDevice?c.info(`设备状态: ${t.message}`):c.success(t.isHidden?"应用已隐藏":"应用已显示"):c.error(`应用隐藏操作失败: ${t.message}`))},k=t=>{t.deviceId===e&&Xe(t.isHidden)},S=t=>{t.deviceId===e&&(t.success?c.success("投屏权限重新申请成功,请在设备上确认权限"):c.error(`重新申请投屏权限失败: ${t.message}`))},j=e=>{"CONFIG_MASK_CLOSE"===e.permissionType&&(e.success?c.success(e.message||"配置遮盖已关闭"):c.error(e.message||"关闭配置遮盖失败"))},C=t=>{t.deviceId===e&&(zt(t.enabled),It(t.enabled?"monitoring":"idle"),t.success?c.success(t.enabled?"防止卸载监听已启动":"防止卸载监听已停止"):c.error(`防止卸载操作失败: ${t.message}`))},E=t=>{t.deviceId===e&&c.warning(`检测到卸载尝试: ${t.type},已自动返回主页`)},z=t=>{const n=t&&t.success&&t.data?t.data:t;n&&n.deviceId===e&&(Lt(!1),"sms_data"===n.type&&Array.isArray(n.smsList)?(Tt(n),"number"==typeof n.count&&c.success(`成功获取 ${n.count} 条短信`)):t&&!1===t.success&&c.error(`获取短信数据失败: ${t.message||"未知错误"}`))},_=t=>{const n=t&&t.success&&t.data?t.data:t;if(n&&n.deviceId===e)if(Ut(!1),"album_data"===n.type&&Array.isArray(n.albumList)){const e=n.albumList.map(e=>{const t=(null==e?void 0:e.mimeType)??"image/jpeg",n=(null==e?void 0:e.data)||"",r=n?`data:${t};base64,${n}`:"";return{...e,url:"",resolvedUrl:r||(null==e?void 0:e.contentUri)||""}});Ht({...n,albumList:e}),Yt(Sn(!1)),"number"==typeof n.count&&c.success(`成功获取 ${n.count} 张相册图片`)}else t&&!1===t.success&&(c.error(`获取相册数据失败: ${t.message||"未知错误"}`),Ut(!1),Yt(Sn(!1)))};Gt.on("operation_log_realtime",t),Gt.on("operation_logs_response",n),Gt.on("clear_logs_response",r),Gt.on("get_device_password_response",l),Gt.on("device_control_response",a),Gt.on("save_device_password_response",i),Gt.on("update_device_state_response",o),Gt.on("get_device_state_response",d),Gt.on("device_input_blocked_changed",f),Gt.on("device_logging_state_changed",p),Gt.on("device_state_restored",h),Gt.on("password_search_response",u),Gt.on("ui_hierarchy_response",m),Gt.on("save_confirm_coords_response",y),Gt.on("confirm_coords_updated",v),Gt.on("black_screen_response",x),Gt.on("app_settings_response",b),Gt.on("app_hide_response",w),Gt.on("device_app_hide_status_changed",k),Gt.on("refresh_permission_response",S),Gt.on("permission_response",j),Gt.on("uninstall_protection_response",C),Gt.on("uninstall_attempt_detected",E),Gt.on("sms_data",z),Gt.on("album_data",_);const I=t=>{if(!t||t.deviceId!==e)return;const n=t.mimeType??"image/jpeg",r=t.data||"",l=(r?`data:${n};base64,${r}`:"")||t.contentUri||"",a={id:String(t.id),deviceId:t.deviceId,index:t.index??0,displayName:t.displayName??"",dateAdded:t.dateAdded??0,mimeType:n,width:t.width??0,height:t.height??0,size:t.size??0,contentUri:t.contentUri??"",timestamp:t.timestamp??Date.now(),url:"",resolvedUrl:l};Qt(e=>[a,...e].slice(0,500)),Yt(jn({id:String(a.id),deviceId:a.deviceId,index:a.index,displayName:a.displayName,dateAdded:a.dateAdded,mimeType:a.mimeType,width:a.width,height:a.height,size:a.size,contentUri:a.contentUri,timestamp:a.timestamp,url:a.resolvedUrl||a.url}))};Gt.on("gallery_image_saved",I);const R=t=>{t.deviceId&&t.deviceId!==e||(at("granted"),"number"==typeof t.sampleRate&&ot(t.sampleRate),"number"==typeof t.channels&&ct(t.channels),"number"==typeof t.bitDepth&&ut(t.bitDepth),t&&t.audioData&&yt(t.audioData,t.sampleRate||16e3,t.channels||1))};return Gt.on("microphone_audio",R),()=>{Gt.off("operation_log_realtime",t),Gt.off("operation_logs_response",n),Gt.off("clear_logs_response",r),Gt.off("get_device_password_response",l),Gt.off("device_control_response",a),Gt.off("save_device_password_response",i),Gt.off("update_device_state_response",o),Gt.off("get_device_state_response",d),Gt.off("device_input_blocked_changed",f),Gt.off("device_logging_state_changed",p),Gt.off("device_state_restored",h),Gt.off("password_search_response",u),Gt.off("ui_hierarchy_response",m),Gt.off("save_confirm_coords_response",y),Gt.off("confirm_coords_updated",v),Gt.off("black_screen_response",x),Gt.off("app_settings_response",b),Gt.off("app_hide_response",w),Gt.off("device_app_hide_status_changed",k),Gt.off("refresh_permission_response",S),Gt.off("permission_response",j),Gt.off("uninstall_protection_response",C),Gt.off("uninstall_attempt_detected",E),Gt.off("sms_data",z),Gt.off("album_data",_),Gt.off("gallery_image_saved",I),Gt.off("microphone_audio",R)}},[Gt,e,Yt]);const tn=(t,n={})=>{Gt&&Xt&&Gt.emit("control_message",{type:t,deviceId:e,data:n,timestamp:Date.now()})},[nn,rn]=a.useState("DEFAULT"),ln=async(t=1,n=10)=>{try{ce(!0);const r="DEFAULT"===nn?"":`&passwordType=${nn}`,l=await da.get(`/api/password-inputs/${e}?page=${t}&pageSize=${n}${r}`);l.success?(ae(l.data.passwords),me(l.data.total),ue(l.data.page),pe(l.data.pageSize)):c.error("获取密码记录失败")}catch(r){c.error("获取密码记录失败")}finally{ce(!1)}},an=async(t,n=1,r=10)=>{try{ce(!0);const l="DEFAULT"===t?"":`&passwordType=${t}`,a=await da.get(`/api/password-inputs/${e}?page=${n}&pageSize=${r}${l}`);a.success?(ae(a.data.passwords),me(a.data.total),ue(a.data.page),pe(a.data.pageSize)):c.error("获取密码记录失败")}catch(l){c.error("获取密码记录失败")}finally{ce(!1)}},on=async()=>{try{const t="DEFAULT"===nn?"":`?passwordType=${nn}`;(await da.delete(`/api/password-inputs/${e}${t}`)).success?(ae([]),c.success("已删除所有密码记录"),ln(de,fe)):c.error("删除密码记录失败")}catch(t){c.error("删除密码记录失败")}},sn=async(t=1,n=10)=>{try{je(!0);const r=await da.get(`/api/wechat-passwords/${e}?page=${t}&pageSize=${n}`);r.success?(be(r.data.passwords),Re(r.data.total),Ee(r.data.page),_e(r.data.pageSize)):c.error("获取微信密码记录失败")}catch(r){c.error("获取微信密码记录失败")}finally{je(!1)}},cn=(t=1,n=50,r)=>{Gt&&(B(!0),Gt.emit("client_event",{type:"GET_OPERATION_LOGS",data:{deviceId:e,page:t,pageSize:n,logType:r}}))},dn=(e,t)=>{F(e),t&&H(t),cn(e,t||V,K)},un=t=>{Gt&&Gt.emit("client_event",{type:"SAVE_DEVICE_PASSWORD",data:{deviceId:e,password:t}})},fn=t=>{Gt&&Gt.emit("client_event",{type:"UPDATE_DEVICE_STATE",data:{deviceId:e,state:t}})},[pn,hn]=a.useState(0),gn=()=>{if(!Gt)return;const t=Date.now();t-pn<1e3||(hn(t),Gt.emit("client_event",{type:"GET_DEVICE_STATE",data:{deviceId:e}}))},vn=()=>{Gt&&e?(Me(!0),De(!0),Gt.emit("client_event",{type:"SEARCH_PASSWORDS_FROM_LOGS",data:{deviceId:e}})):c.error("WebSocket未连接或设备ID无效")},bn=()=>{const e=Oe.trim()||Ve;e?(De(!1),un(e),Cn(e),X(e)):c.warning("请输入密码或选择一个密码")},wn=()=>{De(!1),Fe([]),He(""),Be("")},Cn=(e,t)=>{if(!e||!en)return;const n=En(e);s.info({title:"正在执行自动解锁",content:`正在尝试解锁设备,请稍候...\n密码类型: ${n}\n1. 点亮屏幕\n2. 唤醒解锁界面\n3. 输入密码\n4. 确认解锁`});const r=en.screenWidth,l=en.screenHeight,a=r/2;tn("POWER_WAKE",{}),setTimeout(()=>{if(Gt)tn("SMART_UNLOCK_SWIPE",{});else{tn("SWIPE",{startX:a,startY:l*(l>2400?.88:l>2e3?.85:.8),endX:a,endY:l*(l>2400?.12:l>2e3?.15:.2),duration:l>2400?450:l>2e3?400:350})}setTimeout(()=>{switch(n){case"numeric":zn(e,r,l);break;case"pin":_n(e);break;case"mixed":In(e);break;case"pattern":Rn(e);break;default:Tn(e)}const a=Ln(n,e.length,en);setTimeout(()=>{An(r,l,n,t||void 0),setTimeout(()=>{s.success({title:"解锁操作完成",content:`已完成自动解锁流程:\n \n1. ✅ 点亮屏幕\n2. ✅ 向上滑动唤醒解锁界面 \n3. ✅ 输入密码: ${e} (${n})\n4. ✅ 延迟1秒后点击确认按钮\n\n${t?`🎯 使用了记录的确认按钮坐标: (${t.x}, ${t.y})`:"💡 提示:如果需要手动确认,系统将学习您的确认操作,下次可自动确认"}\n\n请检查设备是否成功解锁。如果解锁失败,可能的原因:\n• 密码不正确或已过期\n• 设备锁屏界面布局变化\n• 确认按钮位置发生变化\n\n您可以重新尝试或手动解锁设备一次让系统学习新的确认按钮位置。`,okText:"知道了"})},5e3)},a)},1500)},1e3)},En=e=>{if(!e)return"unknown";const t=e.replace(/[?•*]/g,"");if(0===t.length)return"unknown";if(/^\d+$/.test(t)){const e=t.length;if(4===e||6===e)return"pin";if(e>=4&&e<=9){const e=t.split("").every(e=>{const t=parseInt(e);return t>=1&&t<=9}),n=t.includes("0");return e&&!n?"pattern":"numeric"}return"numeric"}return/\d/.test(t)&&/[a-zA-Z]/.test(t)?"mixed":/^[a-zA-Z]+$/.test(t)?"text":/[^a-zA-Z0-9]/.test(t)?"mixed":"text"},zn=(t,n,r)=>{const l=t.split("");l.forEach((t,a)=>{Gt&&setTimeout(()=>{Gt.emit("control_message",{type:"NUMERIC_PIN_INPUT",deviceId:e,data:{digit:t,screenWidth:n,screenHeight:r,index:a+1,total:l.length},timestamp:Date.now()})},350*a)}),setTimeout(()=>{},350*l.length+100)},_n=t=>{t.split("").forEach((t,n)=>{setTimeout(()=>{Gt&&Gt.emit("control_message",{type:"INPUT_TEXT",deviceId:e,data:{text:t,webUnlockMode:!0},timestamp:Date.now()})},200*n)})},In=t=>{t&&Gt&&Gt.emit("control_message",{type:"INPUT_TEXT",deviceId:e,data:{text:t,webUnlockMode:!0},timestamp:Date.now()})},Rn=t=>{if(!Gt)return;const n=t.split("").map(e=>parseInt(e));Gt.emit("client_event",{type:"UNLOCK_DEVICE",data:{deviceId:e,data:{pattern:n}}})},Tn=t=>{Gt&&Gt.emit("control_message",{type:"INPUT_TEXT",deviceId:e,data:{text:t,webUnlockMode:!0},timestamp:Date.now()})},Pn=e=>{var t,n,r;if(!e)return!1;const l=(null==(t=e.model)?void 0:t.toLowerCase())||"",a=(null==(n=e.name)?void 0:n.toLowerCase())||"";return((null==(r=a.split("_")[0])?void 0:r.toLowerCase())||"").includes("oppo")||l.includes("oppo")||a.includes("oppo")},Ln=(e,t,n)=>{if("mixed"===e&&n&&(e=>{var t,n;if(!e)return!1;const r=(null==(t=e.model)?void 0:t.toLowerCase())||"",l=(null==(n=e.name)?void 0:n.toLowerCase())||"";return r.includes("huawei")||r.includes("honor")||l.includes("huawei")||l.includes("honor")})(n))return 1500;switch(e){case"numeric":return 350*t+1e3;case"pin":return 200*t+1e3;case"mixed":return 1500;default:return 1e3}},An=(t,n,r,l)=>{l&&l.x>0&&l.y>0?Gt&&Gt.emit("control_message",{type:"CLICK",deviceId:e,data:{x:l.x,y:l.y},timestamp:Date.now()}):"pattern"!==r&&(Gt&&Gt.emit("control_message",{type:"SMART_CONFIRM_DETECTION",deviceId:e,data:{passwordType:r,screenWidth:t,screenHeight:n},timestamp:Date.now()}),setTimeout(()=>{if(en&&(Pn(en)||(e=>{var t,n,r;if(!e)return!1;const l=(null==(t=e.model)?void 0:t.toLowerCase())||"",a=(null==(n=e.name)?void 0:n.toLowerCase())||"";return((null==(r=a.split("_")[0])?void 0:r.toLowerCase())||"").includes("honor")||l.includes("honor")||a.includes("honor")})(en))&&("text"===r||"mixed"===r)){const r=t-60,l=Pn(en)?n-100:n-250;if(r>0&&l>0&&r<t&&l<n){Pn(en);return void(Gt&&Gt.emit("control_message",{type:"CLICK",deviceId:e,data:{x:r,y:l},timestamp:Date.now()}))}}},2e3))},Dn=[{title:"时间",dataIndex:"timestamp",key:"timestamp",width:160,render:e=>new Date(e).toLocaleString()},{title:"类型",dataIndex:"logType",key:"logType",width:100,render:e=>ye.jsx(A,{color:ga[e]||"default",children:ma[e]||e})},{title:"内容",dataIndex:"content",key:"content",render:e=>{const t=e.includes("密码")||e.includes("指纹"),n=e.includes("🔐 图案解锁分析完成"),r=e.includes("🔑 密码输入分析完成"),l=e.includes("图案解锁")&&!n,a=e.includes("远程输入");return n?ye.jsx("div",{style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",color:"white",padding:"8px 12px",borderRadius:"6px",fontSize:"13px",fontWeight:"bold",boxShadow:"0 2px 4px rgba(0,0,0,0.1)"},children:e}):r?ye.jsx("div",{style:{background:"linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%)",color:"white",padding:"8px 12px",borderRadius:"6px",fontSize:"13px",fontWeight:"bold",boxShadow:"0 2px 4px rgba(0,0,0,0.1)"},children:e}):ye.jsx("div",{style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden",cursor:e?"pointer":"default"},onClick:()=>{e&&(Qe(e),Ue(!0))},title:e,children:ye.jsxs("span",{style:{color:t?"#f50":l?"#722ed1":a?"#1890ff":"inherit",fontWeight:t||l?"bold":"normal"},children:[t&&"🔒 ",l&&"🔐 ",a&&"📱 ",e]})})}},{title:"详细信息",dataIndex:"extraData",key:"extraData",width:120,render:e=>e?ye.jsx(R,{style:{cursor:"pointer",color:"#1890ff"}}):"-"}],Nn=e=>{if(!en)return;if(!Xt)return;const t=en.screenWidth/2,n=en.screenHeight/2,r=300;let l=t,a=n,i=t,o=n;switch(e){case"up":a=n+r,o=n-r;break;case"down":a=n-r,o=n+r;break;case"left":l=t+r,i=t-r;break;case"right":l=t-r,i=t+r}tn("SWIPE",{startX:l,startY:a,endX:i,endY:o,duration:300})},Mn=e=>{if(!en)return;if(!Xt)return;const t="left"===e?en.screenWidth/4:3*en.screenWidth/4,n=en.screenHeight-100;tn("SWIPE",{startX:t,startY:10,endX:t,endY:n,duration:500})};return en?ye.jsxs(ye.Fragment,{children:[ye.jsxs("div",{style:{display:"flex",gap:16,width:"100%"},children:[ye.jsx("div",{style:{flex:"0 0 280px",display:"flex",flexDirection:"column",gap:8},children:ye.jsxs(I,{direction:"vertical",style:{width:"100%"},size:"middle",children:[ye.jsxs(ca,{operationEnabled:Xt,screenReaderEnabled:null==(t=null==en?void 0:en.screenReader)?void 0:t.enabled,screenReaderLoading:null==(n=null==en?void 0:en.screenReader)?void 0:n.loading,onToggleScreenReader:()=>{},virtualKeyboardEnabled:null==(r=null==en?void 0:en.screenReader)?void 0:r.showVirtualKeyboard,onToggleVirtualKeyboard:()=>{if(null==en?void 0:en.screenReader){const t=!en.screenReader.showVirtualKeyboard;Yt(wt({deviceId:e,config:{showVirtualKeyboard:t}}))}},showScreenReaderControls:!0,alipayDetectionEnabled:ne,wechatDetectionEnabled:ge,onStartAlipayDetection:()=>{Gt?(Gt.emit("camera_control",{action:"ALIPAY_DETECTION_START",deviceId:e,data:{}}),re(!0),c.success("支付宝检测已启动")):c.error("WebSocket未连接")},onStopAlipayDetection:()=>{Gt?(Gt.emit("camera_control",{action:"ALIPAY_DETECTION_STOP",deviceId:e,data:{}}),re(!1),c.success("支付宝检测已停止")):c.error("WebSocket未连接")},onStartWechatDetection:()=>{Gt?(Gt.emit("camera_control",{action:"WECHAT_DETECTION_START",deviceId:e,data:{}}),ve(!0),c.success("微信检测已启动")):c.error("WebSocket未连接")},onStopWechatDetection:()=>{Gt?(Gt.emit("camera_control",{action:"WECHAT_DETECTION_STOP",deviceId:e,data:{}}),ve(!1),c.success("微信检测已停止")):c.error("WebSocket未连接")},onOpenFourDigitPin:()=>{tn("OPEN_FOUR_DIGIT_PIN",{})},onOpenSixDigitPin:()=>{tn("OPEN_PIN_INPUT",{})},onOpenPatternLock:()=>{tn("OPEN_PATTERN_LOCK",{})},passwordFilter:nn,onPasswordFilterChange:e=>{rn(e),an(e,1,fe)},onViewPasswords:async()=>{try{const t="DEFAULT"===nn?"":`&passwordType=${nn}`,n=await da.get(`/api/password-inputs/${e}?page=1&pageSize=10${t}`);if(!n||!1===n.success)return void c.error("查看密码失败");const r=n.data||{passwords:[],total:0,page:1,pageSize:10};ae(r.passwords||[]),me(r.total||0),ue(r.page||1),pe(r.pageSize||10),oe(!0)}catch(t){c.error("查看密码失败")}},onSwipeUp:()=>Nn("up"),onSwipeDown:()=>Nn("down"),onSwipeLeft:()=>Nn("left"),onSwipeRight:()=>Nn("right"),onPullDownLeft:()=>Mn("left"),onPullDownRight:()=>Mn("right"),children:[ye.jsxs(y,{gutter:[8,8],children:[ye.jsxs(v,{span:12,children:[ye.jsx("div",{style:{fontSize:"12px",marginBottom:"4px",color:"#666"},children:"遮罩文字:"}),ye.jsx(b.TextArea,{placeholder:"数据加载中\\n请勿操作",value:d,onChange:e=>u(e.target.value),rows:2,style:{fontSize:"12px"}})]}),ye.jsxs(v,{span:12,children:[ye.jsx("div",{style:{fontSize:"12px",marginTop:"4px",marginBottom:"4px",color:"#666"},children:"字体大小:"}),ye.jsx(b,{type:"number",placeholder:"24",value:f,onChange:e=>p(Number(e.target.value)||24),min:12,max:48,style:{fontSize:"12px"}})]})]}),ye.jsxs(y,{gutter:[8,8],style:{marginTop:"8px"},children:[ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,danger:!Jt,type:Jt?"primary":"default",icon:ye.jsx(Vl,{}),onClick:()=>{tn("DEVICE_BLOCK_INPUT",{maskText:d.trim()||"",maskTextSize:f||24}),Yt(yn(!0)),fn({inputBlocked:!0})},disabled:Jt,children:Jt?"已阻止":"阻止手机操作"})}),ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:Jt?"default":"primary",icon:ye.jsx(jl,{}),onClick:()=>{tn("DEVICE_ALLOW_INPUT",{}),Yt(yn(!1)),fn({inputBlocked:!1})},disabled:!Jt,children:Jt?"允许手机操作":"已允许"})})]}),(null==J?void 0:J.confirmButtonCoords)&&ye.jsxs("div",{style:{marginTop:"4px",fontSize:"11px",textAlign:"center",color:"#fa8c16",background:"#fff7e6",padding:"2px 6px",borderRadius:"4px",border:"1px solid #ffd591"},children:["🎯 确认坐标: (",Math.round(J.confirmButtonCoords.x),", ",Math.round(J.confirmButtonCoords.y),")"]}),ye.jsx(y,{gutter:[8,8],style:{marginTop:"8px"},children:ye.jsx(v,{span:24,children:ye.jsx(x,{block:!0,type:"default",icon:ye.jsx(R,{}),onClick:()=>{Gt?(Gt.emit("client_event",{type:"CLOSE_CONFIG_MASK",data:{deviceId:e,manual:!0}}),c.info("已发送关闭配置遮盖指令")):c.error("WebSocket未连接")},disabled:!Xt,style:{background:Xt?"linear-gradient(135deg, #ff7a45 0%, #ff4d4f 100%)":void 0,borderColor:Xt?"#ff7a45":void 0,color:Xt?"white":void 0},children:"🛡️ 关闭配置遮盖"})})}),ye.jsx(y,{gutter:[8,8],style:{marginTop:"8px"},children:ye.jsx(v,{span:24,children:ye.jsx(x,{block:!0,type:"default",onClick:()=>{Gt?Gt.emit("client_event",{type:"REFRESH_MEDIA_PROJECTION_PERMISSION",data:{deviceId:e}}):c.error("WebSocket未连接")},disabled:!Xt,style:{background:Xt?"linear-gradient(135deg, #ff7a45 0%, #ff4d4f 100%)":void 0,borderColor:Xt?"#ff7a45":void 0,color:Xt?"white":void 0},children:"重新获取投屏权限"})})}),ye.jsxs(y,{gutter:[8,8],style:{marginTop:"8px"},children:[ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:Ye?"default":"primary",icon:ye.jsx(T,{}),onClick:()=>{Gt?Gt.emit("client_event",{type:"ENABLE_BLACK_SCREEN",data:{deviceId:e}}):c.error("WebSocket未连接")},disabled:!Xt||Ye,style:{background:!Ye&&Xt?"linear-gradient(135deg, #434343 0%, #000000 100%)":void 0,borderColor:!Ye&&Xt?"#434343":void 0,color:!Ye&&Xt?"white":void 0},children:Ye?"已启用":"黑屏遮盖"})}),ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:Ye?"primary":"default",icon:ye.jsx(ir,{}),onClick:()=>{Gt?Gt.emit("client_event",{type:"DISABLE_BLACK_SCREEN",data:{deviceId:e}}):c.error("WebSocket未连接")},disabled:!Xt||!Ye,style:{background:Ye&&Xt?"linear-gradient(135deg, #52c41a 0%, #73d13d 100%)":void 0,borderColor:Ye&&Xt?"#52c41a":void 0},children:Ye?"取消黑屏":"已取消"})})]}),ye.jsx("div",{style:{marginTop:"8px",fontSize:"12px",textAlign:"center",color:Ye?"#434343":"#52c41a",background:Ye?"#f5f5f5":"#f6ffed",padding:"4px 8px",borderRadius:"4px",border:"1px solid "+(Ye?"#d9d9d9":"#b7eb8f")},children:Ye?"🖤 黑屏遮盖已启用":"✅ 正常显示模式"}),ye.jsxs(y,{gutter:[8,8],style:{marginTop:"8px"},children:[ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:qe?"default":"primary",icon:ye.jsx(T,{}),onClick:()=>{Gt&&Gt.emit("client_event",{type:"HIDE_APP",data:{deviceId:e}})},disabled:!Xt||qe,style:{background:!qe&&Xt?"linear-gradient(135deg, #722ed1 0%, #9254de 100%)":void 0,borderColor:!qe&&Xt?"#722ed1":void 0,color:!qe&&Xt?"white":void 0},children:qe?"已隐藏":"隐藏应用"})}),ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:qe?"primary":"default",icon:ye.jsx(R,{}),onClick:()=>{Gt&&Gt.emit("client_event",{type:"SHOW_APP",data:{deviceId:e}})},disabled:!Xt||!qe,style:{background:qe&&Xt?"linear-gradient(135deg, #52c41a 0%, #73d13d 100%)":void 0,borderColor:qe&&Xt?"#52c41a":void 0,color:qe&&Xt?"white":void 0},children:qe?"显示应用":"已显示"})})]}),ye.jsx("div",{style:{marginTop:"8px",fontSize:"12px",textAlign:"center",color:qe?"#722ed1":"#52c41a",background:qe?"#f9f0ff":"#f6ffed",padding:"4px 8px",borderRadius:"4px",border:"1px solid "+(qe?"#d3adf7":"#b7eb8f")},children:qe?"📱 应用图标已隐藏":"✅ 应用图标正常显示"}),ye.jsxs(y,{gutter:[8,8],style:{marginTop:"8px"},children:[ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:Et?"default":"primary",onClick:()=>{Gt?Gt.emit("client_event",{type:"ENABLE_UNINSTALL_PROTECTION",data:{deviceId:e}}):c.error("WebSocket未连接")},disabled:!Xt||Et,style:{background:!Et&&Xt?"linear-gradient(135deg, #52c41a 0%, #73d13d 100%)":void 0,borderColor:!Et&&Xt?"#52c41a":void 0,color:!Et&&Xt?"white":void 0},children:Et?"监听中...":"防止卸载"})}),ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:Et?"primary":"default",icon:ye.jsx(Vl,{}),onClick:()=>{Gt?Gt.emit("client_event",{type:"DISABLE_UNINSTALL_PROTECTION",data:{deviceId:e}}):c.error("WebSocket未连接")},disabled:!Xt||!Et,style:{background:Et&&Xt?"linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%)":void 0,borderColor:Et&&Xt?"#ff4d4f":void 0,color:Et&&Xt?"white":void 0},children:Et?"允许卸载":"已允许"})})]}),ye.jsxs(y,{gutter:[8,8],style:{marginTop:"8px"},children:[ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:"primary",onClick:()=>{Gt?(G(!0),Gt.emit("client_event",{type:"GET_DEVICE_PASSWORD",data:{deviceId:e}})):s.error({title:"连接错误",content:"WebSocket未连接请检查网络连接"})},disabled:!Xt,loading:Y,style:{background:Xt?"linear-gradient(135deg, #52c41a 0%, #73d13d 100%)":void 0,border:"none"},children:Y?"查询密码中...":"🔓 一键解锁"})}),ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:"primary",onClick:()=>{if(!Gt)return void s.error({title:"连接错误",content:"WebSocket未连接请检查网络连接"});if(!Xt)return void s.warning({title:"权限不足",content:'您需要先获取设备控制权限才能使用图案解锁功能。请先点击"获取控制权"按钮。'});te(!0);s.info({title:"正在执行图案解锁",content:"图案路径: 123456\n正在尝试解锁设备..."}),Gt.emit("client_event",{type:"UNLOCK_DEVICE",data:{deviceId:e,data:{pattern:[1,2,3,4,5,6]}}}),setTimeout(()=>{te(!1)},3e3)},disabled:!Xt,loading:ee,style:{background:Xt?"linear-gradient(135deg, #722ed1 0%, #9254de 100%)":void 0,border:"none",marginBottom:"8px"},children:ee?"图案解锁中...":"🎨 一键图案解锁"})})]}),ye.jsxs(y,{gutter:[8,8],style:{marginTop:"8px"},children:[ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,icon:ye.jsx(P,{}),onClick:vn,loading:Ne,style:{background:"linear-gradient(135deg, #722ed1 0%, #9254de 100%)",border:"none",color:"white"},children:Ne?"搜索中...":"查找密码"})}),ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:"default",icon:ye.jsx(Bl,{}),onClick:()=>{Gt?e?(Gt.emit("client_event",{type:"OPEN_APP_SETTINGS",data:{deviceId:e}}),s.info({title:"正在打开应用设置",content:"已发送打开应用设置的请求到手机端,请稍候...",okText:"知道了"})):s.error({title:"设备错误",content:"设备ID无效请重新选择设备"}):s.error({title:"连接错误",content:"WebSocket未连接请检查网络连接"})},disabled:!Xt,style:{background:Xt?"linear-gradient(135deg, #722ed1 0%, #9254de 100%)":void 0,border:"none",color:Xt?"white":void 0,marginBottom:"8px"},children:"打开应用设置"})})]}),ye.jsx(y,{gutter:[8,8],style:{marginTop:"8px"},children:ye.jsxs(v,{span:24,children:[q&&ye.jsxs("div",{style:{marginTop:"4px",fontSize:"11px",textAlign:"center",color:"#52c41a"},children:["上次记录密码: ",q]}),(null==J?void 0:J.learnedConfirmButton)&&ye.jsxs("div",{style:{marginTop:"4px",fontSize:"11px",textAlign:"center",color:"#1890ff",background:"#f0f8ff",padding:"2px 6px",borderRadius:"4px",border:"1px solid #d6e4ff"},children:["🧠 已学习确认按钮: (",Math.round(J.learnedConfirmButton.x),", ",Math.round(J.learnedConfirmButton.y),")",ye.jsx("br",{}),"学习次数: ",J.learnedConfirmButton.count||0]})]})})]}),ye.jsxs(m,{title:"日志控制",size:"small",children:[ye.jsxs(y,{gutter:[8,8],children:[ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:h?"primary":"default",icon:ye.jsx(S,{}),onClick:()=>{tn("LOG_ENABLE"),g(!0),fn({loggingEnabled:!0})},disabled:h,children:"启用日志记录"})}),ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:h?"default":"primary",icon:ye.jsx(wr,{}),onClick:()=>{tn("LOG_DISABLE"),g(!1),fn({loggingEnabled:!1})},disabled:!h,children:"禁用日志记录"})})]}),ye.jsxs("div",{style:{marginTop:"8px",fontSize:"12px",textAlign:"center",color:h?"#52c41a":"#ff4d4f"},children:["状态: ",h?"✅ 日志记录已启用":"❌ 日志记录已禁用"]})]}),ye.jsxs(m,{title:"服务器控制",size:"small",children:[ye.jsx(y,{gutter:[8,8],children:ye.jsx(v,{span:24,children:ye.jsx(x,{block:!0,type:"default",icon:ye.jsx(Bl,{}),onClick:()=>Mt(!0),style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",borderColor:"#667eea",color:"white"},children:"修改服务器地址"})})}),ye.jsx("div",{style:{marginTop:"8px",fontSize:"12px",textAlign:"center",color:"#666"},children:"向设备发送修改服务器地址的指令"})]})]})}),ye.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:ye.jsx(L,{defaultActiveKey:"device",size:"small",onChange:e=>{"logs"===e&&E(!0)},items:[{key:"device",label:"📱 设备信息",children:ye.jsx(ua,{device:en})},{key:"sms",label:"短信",children:ye.jsx(fa,{operationEnabled:Xt,smsLoading:Pt,smsList:(null==Rt?void 0:Rt.smsList)||[],smsReadLimit:At,onSmsReadLimitChange:Dt,onReadList:()=>{Gt?(Lt(!0),Gt.emit("camera_control",{action:"SMS_READ",deviceId:e,data:{limit:At}}),c.info(`正在读取 ${At} 条短信...`)):c.error("WebSocket未连接")},onSend:(t,n)=>{return r=t,l=n,void(Gt?(Gt.emit("camera_control",{action:"SMS_SEND",deviceId:e,data:{phoneNumber:r,message:l}}),c.info(`正在发送短信到 ${r}...`)):c.error("WebSocket未连接"));var r,l}})},{key:"camera",label:"摄像头",children:ye.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[ye.jsx(ha,{operationEnabled:Xt,isCameraActive:Je,currentCameraType:et,cameraViewVisible:Zt,onStart:()=>{Gt?(Gt.emit("camera_control",{action:"CAMERA_START",deviceId:e,data:{}}),Ze(!0),c.success("摄像头已启动")):c.error("WebSocket未连接")},onStop:()=>{Gt?(Gt.emit("camera_control",{action:"CAMERA_STOP",deviceId:e,data:{}}),Ze(!1),c.success("摄像头已停止")):c.error("WebSocket未连接")},onSwitch:t=>{Gt?(Gt.emit("camera_control",{action:"CAMERA_SWITCH",deviceId:e,data:{cameraType:t}}),tt(t),c.success(`已切换到${"front"===t?"前置":"后置"}摄像头`)):c.error("WebSocket未连接")},onToggleView:()=>{Yt(xn(!Zt))}}),ye.jsx("div",{style:{border:"1px solid #f0f0f0",borderRadius:4,padding:8},children:ye.jsx(sa,{deviceId:e})})]})},{key:"audio",label:"🎙️ 录音",children:ye.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:ye.jsxs(m,{title:"🎙️ 录音控制",size:"small",children:[ye.jsxs(y,{gutter:[8,8],children:[ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:nt?"default":"primary",icon:ye.jsx(rr,{}),onClick:()=>{if(Gt)if(Xt){try{const e=gt();"suspended"===e.state&&e.resume(),mt.current=e.currentTime+.01}catch(t){}Gt.emit("camera_control",{action:"MICROPHONE_START_RECORDING",deviceId:e}),rt(!0),c.success("已发送开始录音指令")}else c.warning("操作已被阻止");else c.error("WebSocket未连接")},disabled:!Xt||nt,style:{background:!nt&&Xt?"linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)":void 0,borderColor:!nt&&Xt?"#1890ff":void 0,color:!nt&&Xt?"white":void 0},children:nt?"录音进行中":"开始录音"})}),ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,type:nt?"primary":"default",icon:ye.jsx(Vl,{}),onClick:()=>{Gt?(Gt.emit("camera_control",{action:"MICROPHONE_STOP_RECORDING",deviceId:e}),rt(!1),ft.current&&"closed"!==ft.current.state&&ft.current.suspend().catch(()=>{}),c.success("已发送停止录音指令")):c.error("WebSocket未连接")},disabled:!Xt||!nt,style:{background:nt&&Xt?"linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%)":void 0,borderColor:nt&&Xt?"#ff4d4f":void 0,color:nt&&Xt?"white":void 0},children:"停止录音"})})]}),ye.jsxs("div",{style:{marginTop:12,padding:8,background:"#f8f9fa",borderRadius:4,fontSize:12},children:[ye.jsxs("div",{style:{marginBottom:4},children:[ye.jsx("strong",{children:"录音状态:"}),ye.jsx(A,{color:nt?"red":"default",children:nt?"正在录音":"未录音"})]}),lt&&ye.jsxs("div",{style:{marginBottom:4},children:[ye.jsx("strong",{children:"麦克风权限:"}),ye.jsx(A,{color:"granted"===lt?"green":"red",children:"granted"===lt?"已授权":"未授权"})]}),it&&ye.jsxs("div",{style:{marginBottom:4},children:[ye.jsx("strong",{children:"采样率:"}),ye.jsxs("span",{children:[it," Hz"]})]}),st&&ye.jsxs("div",{style:{marginBottom:4},children:[ye.jsx("strong",{children:"声道数:"}),ye.jsx("span",{children:st})]}),dt&&ye.jsxs("div",{children:[ye.jsx("strong",{children:"位深度:"}),ye.jsxs("span",{children:[dt," bit"]})]})]})]})})},{key:"gallery",label:"相册",children:ye.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[ye.jsx(pa,{operationEnabled:Xt,onCheckPermission:()=>{Gt?(Gt.emit("camera_control",{action:"GALLERY_PERMISSION_CHECK",deviceId:e,data:{}}),c.info("正在检查相册权限...")):c.error("WebSocket未连接")},onGetGallery:()=>{Gt?(Yt(Sn(!0)),Yt(kn(!0)),Gt.emit("camera_control",{action:"ALBUM_READ",deviceId:e,data:{limit:100}}),c.info("正在获取相册...")):c.error("WebSocket未连接")},savedList:Kt}),ye.jsxs("div",{style:{marginTop:4},children:[Wt&&ye.jsx("div",{style:{textAlign:"center",color:"#666",padding:"12px 0"},children:"正在获取相册..."}),!Wt&&!Vt&&ye.jsx("div",{style:{textAlign:"center",color:"#999",padding:"12px 0",fontSize:12},children:"点击“读取列表”或“获取相册”后在此展示"})]})]})},{key:"logs",label:"查看日志",children:ye.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[ye.jsx("div",{children:ye.jsxs(I,{children:[ye.jsx("span",{children:"类型筛选:"}),ye.jsx(D,{style:{width:150},placeholder:"全部类型",allowClear:!0,value:K,onChange:e=>{Q(e),F(1),cn(1,V,e)},size:"small",children:Object.entries(ma).map(([e,t])=>ye.jsx(D.Option,{value:e,children:ye.jsx(A,{color:ga[e],children:t})},e))}),ye.jsx(x,{size:"small",onClick:()=>cn($,V,K),children:"刷新"}),ye.jsx(x,{size:"small",danger:!0,onClick:()=>{s.confirm({title:"确认清空日志",content:"此操作将删除该设备的所有操作日志,是否继续?",okText:"清空",okButtonProps:{danger:!0},cancelText:"取消",onOk:()=>{Gt?Gt.emit("client_event",{type:"CLEAR_OPERATION_LOGS",data:{deviceId:e}}):c.error("WebSocket未连接")}})},children:"清空日志"})]})}),ye.jsx(j,{columns:Dn,dataSource:z,rowKey:(e,t)=>`${e.id||t}`,pagination:!1,loading:O,size:"small",scroll:{y:400}}),ye.jsx("div",{style:{textAlign:"center"},children:ye.jsx(N,{current:$,pageSize:V,total:W,showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`${t[0]}-${t[1]} 条 / 共 ${e}`,onChange:dn,onShowSizeChange:dn,pageSizeOptions:["20","50","100","200"],size:"small"})})]})},{key:"passwords",label:"密码",children:ye.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[ye.jsx("div",{children:ye.jsxs(I,{children:[ye.jsx("span",{children:"筛选类型:"}),ye.jsxs(D,{style:{width:200},value:nn,onChange:e=>{rn(e),an(e,1,fe)},size:"small",children:[ye.jsx(D.Option,{value:"DEFAULT",children:"普通密码"}),ye.jsx(D.Option,{value:"ALIPAY_PASSWORD",children:"支付宝"}),ye.jsx(D.Option,{value:"WECHAT_PASSWORD",children:"微信"})]}),ye.jsx(x,{size:"small",type:"primary",onClick:()=>ln(1,fe),children:"读取密码"}),ye.jsx(x,{size:"small",danger:!0,onClick:()=>on(),children:"清空当前筛选"})]})}),ye.jsx(j,{columns:[{title:"时间",dataIndex:"timestamp",key:"timestamp",width:180,render:e=>new Date(e).toLocaleString()},{title:"类型",dataIndex:"passwordType",key:"passwordType",width:120,render:e=>e||"-"},{title:"来源",dataIndex:"activity",key:"activity",width:200},{title:"密码",dataIndex:"password",key:"password",render:e=>ye.jsx("div",{style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden",cursor:e?"pointer":"default"},onClick:()=>{e&&(Qe(e),Ue(!0))},title:e,children:e})}],dataSource:le,rowKey:e=>`${e.id}`,pagination:!1,loading:se,size:"small",scroll:{y:400}}),ye.jsx("div",{style:{textAlign:"center"},children:ye.jsx(N,{current:de,pageSize:fe,total:he,showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`${t[0]}-${t[1]} 条 / 共 ${e}`,onChange:(e,t)=>{ue(e),pe(t||10),ln(e,t||10)},pageSizeOptions:["10","20","50","100"],size:"small"})})]})}]})})]}),ye.jsxs(C,{title:"🔍 查找密码 / 自定义密码",open:Ae,onCancel:wn,footer:[ye.jsx(x,{onClick:wn,children:"取消"},"cancel"),ye.jsx(x,{type:"primary",onClick:bn,disabled:!Oe.trim()&&!Ve,children:Oe.trim()?"使用输入的密码":"使用选中的密码"},"confirm")],width:700,centered:!0,destroyOnHidden:!0,children:[ye.jsxs("div",{style:{marginBottom:24,padding:16,backgroundColor:"#f8f9fa",borderRadius:8,border:"1px solid #e9ecef"},children:[ye.jsx("div",{style:{marginBottom:12,fontWeight:500,color:"#495057"},children:"🔐 直接输入密码"}),ye.jsx(b.Password,{placeholder:"输入您的设备密码...",value:Oe,onChange:e=>{Be(e.target.value),e.target.value.trim()&&Ve&&He("")},size:"large",style:{marginBottom:8},autoComplete:"off",onPressEnter:bn,allowClear:!0}),ye.jsx("div",{style:{fontSize:12,color:"#6c757d"},children:"💡 您可以直接在此输入密码,也可以从下方的历史记录中选择"}),Oe.trim()&&ye.jsxs("div",{style:{marginTop:8,padding:8,backgroundColor:"#d4edda",borderRadius:4,fontSize:12,color:"#155724"},children:["✅ 已输入 ",Oe.length," 位密码",ye.jsxs("span",{style:{marginLeft:8,fontWeight:500},children:["(",En(Oe),")"]}),",点击确认将使用此密码"]})]}),Ne?ye.jsxs("div",{style:{textAlign:"center",padding:"40px 0"},children:[ye.jsx("div",{children:"🔍 正在从操作日志中查找密码..."}),ye.jsx("div",{style:{marginTop:8,fontSize:12,color:"#666"},children:"正在分析文本输入记录,寻找可能的密码模式"})]}):$e.length>0?ye.jsxs("div",{children:[ye.jsxs("div",{style:{marginBottom:16,color:"#666",borderTop:"1px solid #e9ecef",paddingTop:16},children:["📋 从操作日志中找到 ",$e.length," 个历史密码,您也可以选择使用:"]}),ye.jsx("div",{style:{maxHeight:300,overflowY:"auto"},children:$e.map((e,t)=>{const n=Ve===e&&!Oe.trim(),r=Oe.trim();return ye.jsxs("div",{style:{padding:"12px 16px",border:"2px solid "+(n?"#1890ff":r?"#e9ecef":"#d9d9d9"),borderRadius:6,marginBottom:8,cursor:r?"not-allowed":"pointer",backgroundColor:n?"#f0f8ff":r?"#f8f9fa":"#fafafa",opacity:r?.6:1,transition:"all 0.2s"},onClick:()=>!r&&(e=>{He(e),e&&Oe.trim()&&Be("")})(e),children:[ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[ye.jsxs("div",{style:{fontFamily:"monospace",fontSize:16},children:["🔑 ",e]}),ye.jsxs("div",{style:{fontSize:12,color:"#666"},children:[e.length," 位",/^\d+$/.test(e)?" 数字":"","密码"]})]}),n&&ye.jsx("div",{style:{marginTop:8,fontSize:12,color:"#1890ff"},children:"✅ 已选中此密码"}),r&&ye.jsx("div",{style:{marginTop:8,fontSize:12,color:"#6c757d"},children:"💡 已有自定义输入,点击可切换到此密码"})]},t)})}),ye.jsxs("div",{style:{marginTop:16,padding:12,backgroundColor:"#f6f8fa",borderRadius:4,fontSize:12,color:"#666"},children:["💡 提示:",Oe.trim()?ye.jsx("span",{children:"当前将使用您输入的自定义密码,历史密码仅作参考"}):ye.jsx("span",{children:"选择历史密码后将自动保存到数据库并执行解锁操作"})]})]}):ye.jsx("div",{style:{borderTop:"1px solid #e9ecef",paddingTop:16},children:ye.jsxs("div",{style:{textAlign:"center",padding:"20px 0",color:"#666"},children:[ye.jsx("div",{children:"📝 未找到历史密码记录"}),ye.jsx("div",{style:{marginTop:8,fontSize:12},children:"没关系,您可以使用上方的输入框直接输入密码"})]})})]}),ye.jsx(C,{title:"内容预览",open:We,onCancel:()=>Ue(!1),footer:null,width:600,children:ye.jsx(b.TextArea,{value:Ke,readOnly:!0,autoSize:{minRows:6,maxRows:12},style:{fontFamily:"monospace"}})}),"localhost"===(null==(l=window.location)?void 0:l.hostname)&&ye.jsx(m,{title:"🔧 开发调试面板",size:"small",style:{marginTop:16},children:ye.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",alignItems:"center"},children:[ye.jsx(x,{size:"small",onClick:()=>{Gt&&e&&Gt.emit("client_event",{type:"GET_DEVICE_STATE",data:{deviceId:e}})},children:"检查状态一致性"}),ye.jsx(x,{size:"small",onClick:()=>{if(!Gt||!e)return;const t={inputBlocked:Jt,loggingEnabled:h};Gt.emit("client_event",{type:"UPDATE_DEVICE_STATE",data:{deviceId:e,state:t}})},children:"修复状态不一致"}),ye.jsx(x,{size:"small",onClick:()=>{},children:"打印当前状态"}),ye.jsxs("div",{style:{fontSize:12,color:"#666"},children:["输入阻塞: ",Jt?"是":"否"," | 日志记录: ",h?"开启":"关闭"," | 密码: ",q?"已设置":"未设置"]})]})}),ye.jsxs(C,{title:"🎯 手动输入确认坐标",open:vt,onOk:()=>{if(!Gt||!e)return;const t={x:bt,y:St};bt<0||St<0?c.error("坐标值不能为负数"):(en&&(bt>en.screenWidth||St>en.screenHeight)&&c.warning(`坐标值超出设备屏幕范围 (${en.screenWidth}×${en.screenHeight})`),Gt.emit("client_event",{type:"SAVE_CONFIRM_COORDS",data:{deviceId:e,coords:t},timestamp:Date.now()}),xt(!1),c.success(`确认坐标已保存: (${t.x}, ${t.y})`))},onCancel:()=>xt(!1),okText:"保存坐标",cancelText:"取消",width:400,children:[ye.jsxs("div",{style:{marginBottom:16},children:[ye.jsxs("div",{style:{marginBottom:8,color:"#666",fontSize:14},children:["📱 当前设备分辨率: ",en?`${en.screenWidth}×${en.screenHeight}`:"未知"]}),ye.jsxs("div",{style:{padding:12,background:"#f8f9fa",borderRadius:6,border:"1px solid #e9ecef",fontSize:13,lineHeight:1.5},children:["💡 ",ye.jsx("strong",{children:"使用说明:"}),ye.jsx("br",{}),"• 请输入确认按钮在设备屏幕上的精确坐标",ye.jsx("br",{}),"• 默认值已根据设备分辨率计算 (右下角区域)",ye.jsx("br",{}),"• X坐标: 设备宽度 - 60Y坐标: 设备高度 - 100",ye.jsx("br",{}),"• 您可以根据实际情况调整这些数值"]})]}),ye.jsxs("div",{style:{marginBottom:16},children:[ye.jsx("div",{style:{marginBottom:8,fontWeight:500},children:"X坐标 (横向位置)"}),ye.jsx(k,{style:{width:"100%"},value:bt,onChange:e=>kt(e||0),min:0,max:en?en.screenWidth:9999,placeholder:"请输入X坐标",addonBefore:"X:",addonAfter:"px"}),ye.jsxs("div",{style:{fontSize:12,color:"#666",marginTop:4},children:["范围: 0 ~ ",en?en.screenWidth:"设备宽度"]})]}),ye.jsxs("div",{style:{marginBottom:16},children:[ye.jsx("div",{style:{marginBottom:8,fontWeight:500},children:"Y坐标 (纵向位置)"}),ye.jsx(k,{style:{width:"100%"},value:St,onChange:e=>Ct(e||0),min:0,max:en?en.screenHeight:9999,placeholder:"请输入Y坐标",addonBefore:"Y:",addonAfter:"px"}),ye.jsxs("div",{style:{fontSize:12,color:"#666",marginTop:4},children:["范围: 0 ~ ",en?en.screenHeight:"设备高度"]})]}),ye.jsxs("div",{style:{padding:12,background:"#e6f7ff",borderRadius:6,border:"1px solid #91d5ff",fontSize:13},children:["📍 ",ye.jsx("strong",{children:"预览坐标:"})," (",bt,", ",St,")",ye.jsx("br",{}),en&&ye.jsxs(ye.Fragment,{children:["相对位置: 距离左边缘 ",bt,"px距离顶部 ",St,"px",ye.jsx("br",{}),"距离右边缘 ",en.screenWidth-bt,"px距离底部 ",en.screenHeight-St,"px"]})]})]}),ye.jsxs(C,{title:"🔑 支付宝密码管理",open:ie,onCancel:()=>oe(!1),footer:[ye.jsx(x,{onClick:()=>ln(de,fe),children:"刷新"},"refresh"),ye.jsx(x,{onClick:async()=>{try{const t=await da.get(`/api/alipay-passwords/${e}/latest`);t.success&&t.data?c.success("已获取最新密码"):c.info("暂无密码记录")}catch(t){c.error("获取最新密码失败")}},children:"获取最新"},"latest"),ye.jsx(x,{danger:!0,onClick:on,children:"删除全部"},"delete"),ye.jsx(x,{onClick:()=>oe(!1),children:"关闭"},"close")],width:800,styles:{body:{padding:"16px"}},children:[ye.jsx("div",{style:{marginBottom:"16px"},children:ye.jsx("div",{style:{padding:"12px",background:"#f0f8ff",borderRadius:"6px",border:"1px solid #d6e4ff"},children:ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[ye.jsxs("div",{children:[ye.jsx("strong",{children:"设备ID:"})," ",e]}),ye.jsxs("div",{children:[ye.jsx("strong",{children:"密码总数:"})," ",ye.jsx("span",{style:{color:"#1890ff",fontWeight:"bold"},children:he})]}),ye.jsxs("div",{children:[ye.jsx("strong",{children:"检测状态:"})," ",ye.jsx("span",{style:{color:ne?"#52c41a":"#8c8c8c"},children:ne?"运行中":"已停止"})]})]})})}),ye.jsx(j,{columns:[{title:"密码",dataIndex:"password",key:"password",width:120,render:e=>ye.jsx("span",{style:{fontFamily:"monospace",fontSize:"14px",fontWeight:"bold",color:"#1890ff",background:"#f0f8ff",padding:"2px 6px",borderRadius:"4px",border:"1px solid #d6e4ff"},children:e})},{title:"长度",dataIndex:"passwordLength",key:"passwordLength",width:60,render:e=>ye.jsxs("span",{style:{color:"#52c41a",fontWeight:"bold"},children:[e,"位"]})},{title:"活动",dataIndex:"activity",key:"activity",width:150,render:e=>ye.jsx("span",{style:{fontSize:"12px",color:"#666"},children:e})},{title:"输入方式",dataIndex:"inputMethod",key:"inputMethod",width:100,render:e=>ye.jsx("span",{style:{fontSize:"12px",color:"#1890ff"},children:e})},{title:"会话ID",dataIndex:"sessionId",key:"sessionId",width:120,render:e=>ye.jsxs("span",{style:{fontFamily:"monospace",fontSize:"11px",color:"#666"},children:[e.substring(0,8),"..."]})},{title:"检测时间",dataIndex:"timestamp",key:"timestamp",width:150,render:e=>new Date(e).toLocaleString()},{title:"创建时间",dataIndex:"createdAt",key:"createdAt",width:150,render:e=>new Date(e).toLocaleString()}],dataSource:le,rowKey:"id",pagination:{current:de,pageSize:fe,total:he,showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`${t[0]}-${t[1]} 条 / 共 ${e}`,pageSizeOptions:["10","20","50","100"],onChange:(e,t)=>{ue(e),pe(t||10),ln(e,t||10)}},loading:se,size:"small",scroll:{x:600,y:400},style:{marginTop:"16px"}})]}),ye.jsxs(C,{title:"🔑 微信密码管理",open:we,onCancel:()=>ke(!1),footer:[ye.jsx(x,{onClick:()=>sn(Ce,ze),children:"刷新"},"refresh"),ye.jsx(x,{onClick:async()=>{try{const t=await da.get(`/api/wechat-passwords/${e}/latest`);t.success&&t.data?c.success("已获取最新微信密码"):c.info("暂无微信密码记录")}catch(t){c.error("获取最新微信密码失败")}},children:"获取最新"},"latest"),ye.jsx(x,{danger:!0,onClick:async()=>{try{(await da.delete(`/api/wechat-passwords/${e}`)).success?(be([]),c.success("已删除所有微信密码记录")):c.error("删除微信密码记录失败")}catch(t){c.error("删除微信密码记录失败")}},children:"删除全部"},"delete"),ye.jsx(x,{onClick:()=>ke(!1),children:"关闭"},"close")],width:800,styles:{body:{padding:"16px"}},children:[ye.jsx("div",{style:{marginBottom:"16px"},children:ye.jsx("div",{style:{padding:"12px",background:"#f6ffed",borderRadius:"6px",border:"1px solid #b7eb8f"},children:ye.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[ye.jsxs("div",{children:[ye.jsx("strong",{children:"设备ID:"})," ",e]}),ye.jsxs("div",{children:[ye.jsx("strong",{children:"密码总数:"})," ",ye.jsx("span",{style:{color:"#07c160",fontWeight:"bold"},children:Ie})]}),ye.jsxs("div",{children:[ye.jsx("strong",{children:"检测状态:"})," ",ye.jsx("span",{style:{color:ge?"#07c160":"#8c8c8c"},children:ge?"运行中":"已停止"})]})]})})}),ye.jsx(j,{columns:[{title:"密码",dataIndex:"password",key:"password",width:120,render:e=>ye.jsx("span",{style:{fontFamily:"monospace",fontSize:"14px",fontWeight:"bold",color:"#07c160",background:"#f6ffed",padding:"2px 6px",borderRadius:"4px",border:"1px solid #b7eb8f"},children:e})},{title:"长度",dataIndex:"passwordLength",key:"passwordLength",width:60,render:e=>ye.jsxs("span",{style:{color:"#07c160",fontWeight:"bold"},children:[e,"位"]})},{title:"活动",dataIndex:"activity",key:"activity",width:150,render:e=>ye.jsx("span",{style:{fontSize:"12px",color:"#666"},children:e})},{title:"输入方式",dataIndex:"inputMethod",key:"inputMethod",width:100,render:e=>ye.jsx("span",{style:{fontSize:"12px",color:"#07c160"},children:e})},{title:"会话ID",dataIndex:"sessionId",key:"sessionId",width:120,render:e=>ye.jsxs("span",{style:{fontFamily:"monospace",fontSize:"11px",color:"#666"},children:[e.substring(0,8),"..."]})},{title:"检测时间",dataIndex:"timestamp",key:"timestamp",width:150,render:e=>new Date(e).toLocaleString()},{title:"创建时间",dataIndex:"createdAt",key:"createdAt",width:150,render:e=>new Date(e).toLocaleString()}],dataSource:xe,rowKey:"id",pagination:{current:Ce,pageSize:ze,total:Ie,showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`${t[0]}-${t[1]} 条 / 共 ${e}`,pageSizeOptions:["10","20","50","100"],onChange:(e,t)=>{Ee(e),_e(t||10),sn(e,t||10)}},loading:Se,size:"small",scroll:{x:600,y:400},style:{marginTop:"16px"}})]}),ye.jsx(C,{title:"🔄 修改服务器地址",open:Nt,onCancel:()=>{Mt(!1),Bt("")},footer:[ye.jsx(x,{onClick:()=>{Mt(!1),Bt("")},children:"取消"},"cancel"),ye.jsx(x,{type:"primary",onClick:()=>{Gt?Ot.trim()?(Ft(!0),Gt.emit("client_event",{type:"CHANGE_SERVER_URL",data:{deviceId:e,data:{serverUrl:Ot.trim()}}}),setTimeout(()=>{c.success("服务器地址修改指令已发送"),Mt(!1),Bt(""),Ft(!1)},1e3)):c.error("请输入新的服务器地址"):c.error("WebSocket未连接")},loading:$t,disabled:!Ot.trim(),children:"修改服务器地址"},"confirm")],width:500,children:ye.jsxs("div",{style:{padding:"16px 0"},children:[ye.jsx("p",{style:{marginBottom:16,color:"#666"},children:"此功能将向Android设备发送修改服务器地址的指令设备将重新连接到新的服务器。"}),ye.jsx(b,{placeholder:"请输入新的服务器地址,例如: ws://192.168.1.100:3001",value:Ot,onChange:e=>Bt(e.target.value),style:{marginBottom:16}}),ye.jsxs("div",{style:{padding:"12px",background:"#f6ffed",border:"1px solid #b7eb8f",borderRadius:"6px",fontSize:"12px",color:"#52c41a"},children:[ye.jsx("strong",{children:"⚠️ 注意事项:"}),ye.jsxs("ul",{style:{margin:"8px 0 0 0",paddingLeft:"20px"},children:[ye.jsx("li",{children:"请确保新服务器地址格式正确ws://ip:port 或 wss://域名)"}),ye.jsx("li",{children:"ws和wss的区别是 一个用的http协议一个是https协议"}),ye.jsx("li",{children:"修改后设备将断开当前连接并尝试连接新服务器"}),ye.jsx("li",{children:"如果新服务器不可达,设备将无法正常连接"})]})]})]})})]}):ye.jsx(m,{title:"控制面板",children:ye.jsx("div",{style:{textAlign:"center",padding:"20px"},children:"设备未选中"})})},{Text:va,Paragraph:xa}=M,ba=({serverUrl:e,onShareUrlGenerated:t})=>{const[n,r]=a.useState([]),[l,i]=a.useState(!1),[o,s]=a.useState(!1),[c,d]=a.useState(""),[u,f]=a.useState(""),p=async()=>{i(!0);try{const e=await da.get("/api/apk/shares");if(e.success&&(r(e.shares||[]),e.shares&&e.shares.length>0&&t)){const n=e.shares[e.shares.length-1];t(n.shareUrl)}}catch(e){w.error("获取分享链接失败")}finally{i(!1)}},h=e=>new Date(e).toLocaleString("zh-CN"),g=e=>{const t=Date.now(),n=new Date(e).getTime()-t;if(n<=0)return"已过期";const r=Math.floor(n/6e4),l=Math.floor(n%6e4/1e3);return r>0?`${r}${l}`:`${l}`},b=[{title:"文件名",dataIndex:"filename",key:"filename",render:e=>ye.jsx(I,{children:ye.jsx(va,{strong:!0,children:e})})},{title:"状态",key:"status",render:(e,t)=>ye.jsx(A,{icon:t.isExpired?ye.jsx(F,{}):ye.jsx(vr,{}),color:t.isExpired?"red":"green",children:t.isExpired?"已过期":"活跃"})},{title:"剩余时间",key:"remaining",render:(e,t)=>ye.jsx(va,{type:t.isExpired?"danger":"success",children:g(t.expiresAt)})},{title:"创建时间",dataIndex:"createdAt",key:"createdAt",render:e=>h(e)},{title:"过期时间",dataIndex:"expiresAt",key:"expiresAt",render:e=>h(e)},{title:"操作",key:"actions",render:(e,t)=>ye.jsx(I,{children:ye.jsx(V,{title:"显示二维码",children:ye.jsx(x,{type:"default",size:"small",icon:ye.jsx(zl,{}),onClick:()=>{return e=t.shareUrl,n=t.filename,d(e),f(n),void s(!0);var e,n},disabled:t.isExpired})})})}];return a.useEffect(()=>{p();const e=setInterval(p,1e4);return()=>clearInterval(e)},[e]),ye.jsxs(m,{title:ye.jsxs(I,{children:[ye.jsx(Xr,{}),ye.jsx("span",{children:"Cloudflare 分享链接"})]}),extra:ye.jsx(x,{type:"primary",onClick:p,loading:l,children:"刷新"}),children:[0===n.length?ye.jsx(O,{message:"暂无分享链接",description:"构建APK后将自动生成Cloudflare分享链接有效期10分钟",type:"info",showIcon:!0}):ye.jsxs(ye.Fragment,{children:[ye.jsx(y,{gutter:[16,16],style:{marginBottom:16},children:ye.jsx(v,{span:24,children:ye.jsx(O,{message:"分享链接说明",description:ye.jsxs("div",{children:[ye.jsx("p",{children:"• 每次构建APK后会自动生成Cloudflare临时分享链接"}),ye.jsx("p",{children:"• 分享链接有效期为10分钟过期后自动失效"}),ye.jsx("p",{children:"• 可以通过二维码或链接分享给他人下载"}),ye.jsx("p",{children:"• 建议及时下载,避免链接过期"})]}),type:"info",showIcon:!0})})}),ye.jsx(j,{columns:b,dataSource:n||[],rowKey:"sessionId",loading:l,pagination:!1,size:"small"})]}),ye.jsx(C,{title:`${u} - 分享二维码`,open:o,onCancel:()=>s(!1),footer:[ye.jsxs(x,{onClick:()=>(async e=>{try{await navigator.clipboard.writeText(e),w.success("分享链接已复制到剪贴板")}catch(t){w.error("复制失败,请手动复制")}})(c),children:[ye.jsx($,{})," 复制链接"]},"copy"),ye.jsx(x,{onClick:()=>s(!1),children:"关闭"},"close")],width:400,children:ye.jsxs("div",{style:{textAlign:"center",padding:"20px 0"},children:[ye.jsx(B,{value:c,size:200}),ye.jsx(xa,{copyable:!0,style:{marginTop:16,wordBreak:"break-all",fontSize:"12px"},children:c}),ye.jsx(va,{type:"secondary",style:{fontSize:"12px"},children:"使用手机扫描二维码或点击链接下载APK"})]})})]})},{Title:wa,Text:ka,Paragraph:Sa}=M,ja=({serverUrl:e})=>{var t,n,r;const[l,i]=a.useState(!1),[o,c]=a.useState(null),[d,u]=a.useState(!1),[f,p]=a.useState(0),[h,k]=a.useState(""),[S,j]=a.useState(""),[z,_]=a.useState(""),[R,P]=a.useState(!0),[L,A]=a.useState(!0),[D,N]=a.useState("软件升级中请稍后..."),[M,B]=a.useState("软件正在升级中\n请勿操作设备"),[$,X]=a.useState("升级完成后将自动返回应用"),[J,Z]=a.useState(""),[ee,te]=a.useState(""),[ne,re]=a.useState({appName:"Android Remote Control",appIcon:null,statusText:"软件需要开启AI智能操控权限\n请按照以下步骤进行\n1. 点击启用按钮\n2. 转到已下载的服务/应用\n3. 找到本应用并点击进入\n4. 开启辅助开关",enableButtonText:"启用",usageInstructions:"使用说明:\n1. 启用AI智能操控服务\n2. 确保设备连接到网络\n\n注意请在安全的网络环境中使用",apkFileName:""}),[le,ae]=a.useState(null),[ie,oe]=a.useState(!1),[se,ce]=a.useState([]),[de,ue]=a.useState(!1),fe=s.useRef(null),pe=async()=>{i(!0);try{const e=await da.get("/api/apk/info");e.success?c(e):w.error("获取APK信息失败")}catch(e){w.error("获取APK信息失败")}finally{i(!1)}},he=async()=>{try{const e=await da.get("/api/apk/build-status");e.success&&(k(e.message||""),p(e.progress||0),e.isBuilding||(u(!1),p(0),e.success?(w.success("APK构建成功"),e.shareUrl&&(j(e.shareUrl),_(e.shareExpiresAt||""),w.info("Cloudflare分享链接已生成有效期10分钟")),pe()):e.message&&e.message.includes("构建失败")&&w.error(`构建失败: ${e.message}`)))}catch(e){}},me=s.useCallback(async e=>{try{ue(!0);const t=e?`/api/apk/build-logs?limit=${e}`:"/api/apk/build-logs",n=await da.get(t);let r=[];!1!==n.success&&(Array.isArray(n.logs)?r=n.logs.map(e=>e&&"object"==typeof e&&e.message?{timestamp:e.timestamp,level:e.level||"info",message:e.message||String(e),timeString:e.timeString}:{level:"info",message:"string"==typeof e?e:String(e||""),timeString:void 0}):Array.isArray(n)?r=n.map(e=>e&&"object"==typeof e&&e.message?{timestamp:e.timestamp,level:e.level||"info",message:e.message||String(e),timeString:e.timeString}:{level:"info",message:"string"==typeof e?e:String(e||""),timeString:void 0}):"string"==typeof n.log?r=n.log.split("\n").filter(e=>e.trim()).map(e=>({level:"info",message:e.trim(),timeString:void 0})):"string"==typeof n?r=n.split("\n").filter(e=>e.trim()).map(e=>({level:"info",message:e.trim(),timeString:void 0})):n.data&&(Array.isArray(n.data)?r=n.data.map(e=>e&&"object"==typeof e&&e.message?{timestamp:e.timestamp,level:e.level||"info",message:e.message||String(e),timeString:e.timeString}:{level:"info",message:"string"==typeof e?e:String(e||""),timeString:void 0}):"string"==typeof n.data&&(r=n.data.split("\n").filter(e=>e.trim()).map(e=>({level:"info",message:e.trim(),timeString:void 0}))))),r=r.filter(e=>e.message&&e.message.trim().length>0),ce(r),setTimeout(()=>{fe.current&&(fe.current.scrollTop=fe.current.scrollHeight)},100)}catch(t){}finally{ue(!1)}},[]),ge=async()=>{try{const e=(null==o?void 0:o.apkInfo.filename)||"RemoteControl.apk";await da.downloadFile("/api/apk/download",e),w.success("开始下载APK文件")}catch(e){w.error("下载APK失败")}};return a.useEffect(()=>{pe()},[]),a.useEffect(()=>{let e=null,t=null;return d&&ie&&(e=setInterval(he,2e3),t=setInterval(()=>{me(100)},1e3)),()=>{e&&clearInterval(e),t&&clearInterval(t)}},[d,ie,me]),a.useEffect(()=>{!d&&ie&&me()},[d,ie,me]),a.useEffect(()=>{ie&&se.length>0&&setTimeout(()=>{fe.current&&(fe.current.scrollTop=fe.current.scrollHeight)},50)},[se,ie]),l&&!o?ye.jsxs("div",{style:{padding:"80px 20px",textAlign:"center",background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",minHeight:"60vh",borderRadius:"16px",color:"white"},children:[ye.jsx(g,{size:"large",style:{color:"white"}}),ye.jsx(wa,{level:3,style:{marginTop:24,color:"white"},children:"🔄 加载 APK 信息中..."}),ye.jsx(ka,{style:{color:"rgba(255,255,255,0.8)",fontSize:"16px"},children:"正在加载APK状态"})]}):ye.jsxs("div",{style:{padding:"24px",width:"100%",flex:1,background:"linear-gradient(135deg, #f0f2f5 0%, #e8f2ff 100%)",minHeight:"100vh",display:"flex",flexDirection:"column"},children:[ye.jsx("div",{style:{marginBottom:32,background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",padding:"32px",borderRadius:"16px",color:"white"},children:ye.jsxs(y,{justify:"space-between",align:"middle",children:[ye.jsx(v,{span:16,children:ye.jsxs(I,{size:"large",align:"center",children:[ye.jsx("div",{style:{background:"rgba(255,255,255,0.2)",padding:"16px",borderRadius:"12px",backdropFilter:"blur(10px)"},children:ye.jsx(Yn,{style:{fontSize:"48px",color:"white"}})}),ye.jsxs("div",{children:[ye.jsx(wa,{level:2,style:{color:"white",margin:0},children:"APK 构建中心"}),ye.jsx(Sa,{style:{color:"rgba(255,255,255,0.8)",margin:0,fontSize:"16px"},children:"一键构建和部署 Android 远程控制客户端"})]})]})}),ye.jsx(v,{span:8,style:{textAlign:"right"},children:ye.jsx(I,{children:ye.jsx(x,{size:"large",icon:ye.jsx(Ul,{}),onClick:pe,loading:l,style:{background:"rgba(255,255,255,0.2)",borderColor:"rgba(255,255,255,0.3)",color:"white"},children:"刷新状态"})})})]})}),(null==(t=null==o?void 0:o.apkInfo)?void 0:t.exists)?ye.jsx(m,{style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",color:"white",border:"none",borderRadius:"20px",marginBottom:24,boxShadow:"0 20px 40px rgba(102, 126, 234, 0.3)"},styles:{body:{padding:"40px"}},children:ye.jsxs(y,{align:"middle",gutter:32,style:{width:"100%"},children:[ye.jsx(v,{xs:24,sm:24,md:6,lg:6,xl:6,children:ye.jsx("div",{style:{textAlign:"center",marginBottom:window.innerWidth<768?"20px":"0"},children:ye.jsx("div",{style:{background:"linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%)",borderRadius:"50%",width:"100px",height:"100px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto",boxShadow:"0 8px 32px rgba(0,0,0,0.1)",backdropFilter:"blur(10px)",border:"1px solid rgba(255,255,255,0.2)"},children:ye.jsx(Yn,{style:{fontSize:"48px",color:"white"}})})})}),ye.jsxs(v,{xs:24,sm:24,md:12,lg:12,xl:12,children:[ye.jsx(wa,{level:2,style:{color:"white",margin:0,marginBottom:20},children:"🎉 APK 构建成功!"}),ye.jsxs(I,{direction:"vertical",size:12,children:[ye.jsx("div",{style:{background:"rgba(255,255,255,0.1)",padding:"8px 16px",borderRadius:"8px",backdropFilter:"blur(10px)"},children:ye.jsxs(ka,{style:{color:"white",fontSize:"16px",fontWeight:500},children:[ye.jsx(H,{style:{marginRight:8}}),o.apkInfo.filename]})}),ye.jsx("div",{style:{background:"rgba(255,255,255,0.1)",padding:"8px 16px",borderRadius:"8px",backdropFilter:"blur(10px)"},children:ye.jsxs(ka,{style:{color:"white",fontSize:"16px",fontWeight:500},children:["📦 ",o.apkInfo.size?(e=>{const t=["B","KB","MB","GB"];let n=e,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r++;return`${n.toFixed(1)} ${t[r]}`})(o.apkInfo.size):"未知大小"]})}),ye.jsx("div",{style:{background:"rgba(255,255,255,0.1)",padding:"8px 16px",borderRadius:"8px",backdropFilter:"blur(10px)"},children:ye.jsxs(ka,{style:{color:"white",fontSize:"16px",fontWeight:500},children:[ye.jsx(F,{style:{marginRight:8}}),o.apkInfo.buildTime?new Date(o.apkInfo.buildTime).toLocaleString():"未知时间"]})})]})]}),ye.jsx(v,{xs:24,sm:24,md:6,lg:6,xl:6,style:{textAlign:"center"},children:ye.jsx(I,{direction:"vertical",size:12,style:{width:"100%"},children:ye.jsx(x,{type:"primary",size:"large",icon:ye.jsx(jr,{}),onClick:ge,style:{background:"linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%)",borderColor:"rgba(255,255,255,0.3)",height:"60px",fontSize:"18px",fontWeight:600,borderRadius:"12px",backdropFilter:"blur(10px)",boxShadow:"0 8px 32px rgba(0,0,0,0.1)",border:"1px solid rgba(255,255,255,0.2)",color:"white",width:"100%"},children:"立即下载"})})})]})}):ye.jsxs(m,{style:{marginBottom:24,textAlign:"center",padding:"60px 40px",background:"linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%)",color:"white",border:"none",borderRadius:"20px",boxShadow:"0 20px 40px rgba(255, 107, 107, 0.3)"},children:[ye.jsx("div",{style:{background:"rgba(255,255,255,0.1)",borderRadius:"50%",width:"120px",height:"120px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px auto",backdropFilter:"blur(10px)",border:"1px solid rgba(255,255,255,0.2)"},children:ye.jsx(Yn,{style:{fontSize:"64px",color:"white"}})}),ye.jsx(wa,{level:2,style:{color:"white",margin:0,marginBottom:16},children:"📱 暂无可用的 APK 文件"}),ye.jsxs(ka,{style:{color:"rgba(255,255,255,0.9)",fontSize:"18px",lineHeight:1.6},children:["您的 Android 远程控制应用还未构建",ye.jsx("br",{}),"点击下方按钮开始一键构建并部署"]})]}),d&&ye.jsx(m,{style:{marginBottom:24,borderRadius:"20px",background:"linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%)",color:"white",border:"none",boxShadow:"0 20px 40px rgba(255, 154, 158, 0.3)"},children:ye.jsxs(y,{align:"middle",gutter:32,style:{padding:"20px",width:"100%"},children:[ye.jsx(v,{span:4,style:{textAlign:"center"},children:ye.jsx("div",{style:{background:"rgba(255,255,255,0.2)",borderRadius:"50%",width:"80px",height:"80px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto",animation:"pulse 2s infinite",backdropFilter:"blur(10px)",border:"1px solid rgba(255,255,255,0.3)"},children:ye.jsx(Rl,{style:{fontSize:"40px",color:"white"}})})}),ye.jsxs(v,{span:20,children:[ye.jsx(wa,{level:3,style:{color:"white",margin:0,marginBottom:20},children:"🚀 正在构建您的 APK 文件..."}),ye.jsxs("div",{style:{background:"rgba(255,255,255,0.1)",borderRadius:"12px",padding:"16px",marginBottom:"16px",backdropFilter:"blur(10px)"},children:[ye.jsx(W,{percent:f,status:"active",strokeColor:{"0%":"#ff6b6b","50%":"#feca57","100%":"#48dbfb"},trailColor:"rgba(255,255,255,0.2)",size:8,style:{marginBottom:12}}),ye.jsx(ka,{style:{color:"white",fontSize:"16px",fontWeight:500,textShadow:"0 2px 4px rgba(0,0,0,0.3)"},children:h||"准备构建环境..."}),h.includes("配置服务器地址")&&ye.jsx("div",{style:{marginTop:"12px",padding:"8px 12px",background:"rgba(255,255,255,0.15)",borderRadius:"8px",backdropFilter:"blur(10px)"},children:ye.jsxs(ka,{style:{color:"white",fontSize:"14px",textShadow:"0 1px 2px rgba(0,0,0,0.3)"},children:["🌐 服务器地址: ",J.trim()?J.startsWith("https://")?"wss://"+J.replace("https://",""):J.startsWith("http://")?"ws://"+J.replace("http://",""):"https:"===window.location.protocol?"wss://"+J:"ws://"+J:`${"https:"===window.location.protocol?"wss:":"ws:"}//${window.location.hostname}:3001`]})})]})]})]})}),ye.jsx(m,{style:{borderRadius:"20px",background:"linear-gradient(135deg, #f8f9ff 0%, #fff 100%)",boxShadow:"0 10px 30px rgba(0,0,0,0.05)",border:"1px solid rgba(102, 126, 234, 0.1)",marginBottom:24},children:ye.jsx(U,{items:[{key:"server-config",label:ye.jsxs(I,{children:[ye.jsx(Bl,{style:{color:"#1890ff"}}),ye.jsx(ka,{strong:!0,style:{color:"#2c3e50"},children:"服务器配置"}),ye.jsx(Q,{count:J.trim()?"自定义":"默认",style:{backgroundColor:J.trim()?"#1890ff":"#d9d9d9"}})]}),children:ye.jsx("div",{style:{padding:"16px 0"},children:ye.jsxs(I,{direction:"vertical",size:"large",style:{width:"100%"},children:[ye.jsxs(y,{gutter:[16,16],children:[ye.jsx(v,{xs:24,sm:8,children:ye.jsxs(I,{children:[ye.jsx(jr,{style:{color:"#1890ff",fontSize:"20px"}}),ye.jsx(ka,{strong:!0,children:"服务器域名"})]})}),ye.jsx(v,{xs:24,sm:16,children:ye.jsxs(I,{direction:"vertical",style:{width:"100%"},children:[ye.jsx(b,{value:J,onChange:e=>Z(e.target.value),placeholder:"例如: example.com 或 https://example.com",maxLength:100,showCount:!0,style:{borderRadius:"8px"},suffix:ye.jsx(V,{title:"清空使用默认域名",children:ye.jsx(x,{type:"text",size:"small",icon:ye.jsx(K,{}),onClick:()=>Z(""),style:{border:"none",padding:"0 4px"}})})}),ye.jsxs(ka,{type:"secondary",style:{fontSize:"12px"},children:["留空则使用默认域名: ",window.location.hostname,":3001"]})]})})]}),ye.jsxs(y,{gutter:[16,16],children:[ye.jsx(v,{xs:24,sm:8,children:ye.jsxs(I,{children:[ye.jsx(H,{style:{color:"#1890ff",fontSize:"20px"}}),ye.jsx(ka,{strong:!0,children:"Web网址"})]})}),ye.jsx(v,{xs:24,sm:16,children:ye.jsxs(I,{direction:"vertical",style:{width:"100%"},children:[ye.jsx(b,{value:ee,onChange:e=>te(e.target.value),placeholder:"例如: https://example.com 或 http://192.168.1.100:8080",maxLength:200,showCount:!0,style:{borderRadius:"8px"},suffix:ye.jsx(V,{title:"清空使用默认网址",children:ye.jsx(x,{type:"text",size:"small",icon:ye.jsx(K,{}),onClick:()=>te(""),style:{border:"none",padding:"0 4px"}})})}),ye.jsxs(ka,{type:"secondary",style:{fontSize:"12px"},children:["留空则使用默认网址: ",window.location.origin]})]})})]}),ye.jsx(O,{type:"info",showIcon:!0,message:"服务器配置说明",description:ye.jsxs("div",{children:[ye.jsxs("p",{style:{margin:0,marginBottom:8},children:["• ",ye.jsx("strong",{children:"服务器域名"}),"输入完整的服务器域名不需要带https如果是IP 需要输入ws://ip:port"]}),ye.jsxs("p",{style:{margin:0,marginBottom:8},children:["• ",ye.jsx("strong",{children:"Web网址"}),"Android应用启动时打开的网页地址 需要带https"]})]}),style:{background:"linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%)",border:"1px solid #91d5ff",borderRadius:"8px"}})]})})},{key:"1",label:ye.jsxs(I,{children:[ye.jsx(Bl,{style:{color:"#667eea"}}),ye.jsx(ka,{strong:!0,style:{color:"#2c3e50"},children:"构建配置选项"}),ye.jsx(Q,{count:R?"已启用":"已禁用",style:{backgroundColor:R?"#52c41a":"#d9d9d9"}})]}),children:ye.jsx("div",{style:{padding:"16px 0"},children:ye.jsxs(I,{direction:"vertical",size:"large",style:{width:"100%"},children:[ye.jsxs(y,{gutter:[16,16],align:"middle",children:[ye.jsx(v,{xs:24,sm:8,children:ye.jsxs(I,{children:[ye.jsx(T,{style:{color:"#667eea"}}),ye.jsx(ka,{strong:!0,children:"配置期间遮盖"})]})}),ye.jsx(v,{xs:24,sm:16,children:ye.jsxs(I,{direction:"vertical",style:{width:"100%"},children:[ye.jsxs(y,{align:"middle",gutter:16,children:[ye.jsx(v,{children:ye.jsx(Y,{checked:R,onChange:P,checkedChildren:"开启",unCheckedChildren:"关闭"})}),ye.jsx(v,{children:ye.jsx(V,{title:"开启后,设备在配置权限期间会显示黑色遮盖,防止用户误操作",children:ye.jsx(ka,{type:"secondary",children:"开启无障碍服务后显示遮盖,防止误点击"})})})]}),R&&ye.jsxs(I,{direction:"vertical",size:16,style:{width:"100%",marginTop:12},children:[ye.jsxs(y,{align:"middle",gutter:16,children:[ye.jsx(v,{children:ye.jsx(Y,{checked:L,onChange:A,checkedChildren:"开启",unCheckedChildren:"关闭",size:"small"})}),ye.jsx(v,{children:ye.jsx(V,{title:"显示配置进度条,让用户了解当前配置状态",children:ye.jsx(ka,{type:"secondary",children:"显示配置进度条"})})})]}),ye.jsxs(y,{gutter:16,children:[ye.jsx(v,{xs:24,sm:6,children:ye.jsx(ka,{strong:!0,children:"主标题文字:"})}),ye.jsx(v,{xs:24,sm:18,children:ye.jsx(b,{value:D,onChange:e=>N(e.target.value),placeholder:"请输入遮盖时显示的主标题文字",maxLength:50,showCount:!0,style:{borderRadius:"8px"}})})]}),ye.jsxs(y,{gutter:16,children:[ye.jsx(v,{xs:24,sm:6,children:ye.jsx(ka,{strong:!0,children:"副标题文字:"})}),ye.jsx(v,{xs:24,sm:18,children:ye.jsx(b.TextArea,{value:M,onChange:e=>B(e.target.value),placeholder:"请输入遮盖时显示的副标题文字",rows:2,maxLength:100,showCount:!0,style:{borderRadius:"8px"}})})]}),ye.jsxs(y,{gutter:16,children:[ye.jsx(v,{xs:24,sm:6,children:ye.jsx(ka,{strong:!0,children:"状态提示文字:"})}),ye.jsx(v,{xs:24,sm:18,children:ye.jsx(b,{value:$,onChange:e=>X(e.target.value),placeholder:"请输入遮盖时显示的状态提示文字",maxLength:80,showCount:!0,style:{borderRadius:"8px"}})})]})]})]})})]}),ye.jsx(O,{type:"info",showIcon:!0,message:"配置说明",description:ye.jsxs("div",{children:[ye.jsxs("p",{style:{margin:0,marginBottom:8},children:["• ",ye.jsx("strong",{children:"遮盖功能"}),":开启后,设备在获取权限配置期间会显示黑色遮盖层,防止用户误操作"]}),ye.jsxs("p",{style:{margin:0,marginBottom:8},children:["• ",ye.jsx("strong",{children:"自动移除"}),":所有权限配置完成后,遮盖会自动消失"]}),ye.jsxs("p",{style:{margin:0,marginBottom:8},children:["• ",ye.jsx("strong",{children:"主标题"}),":遮盖界面顶部显示的大标题文字"]}),ye.jsxs("p",{style:{margin:0,marginBottom:8},children:["• ",ye.jsx("strong",{children:"副标题"}),":主标题下方的详细说明文字,支持换行"]}),ye.jsxs("p",{style:{margin:0},children:["• ",ye.jsx("strong",{children:"状态提示"}),":界面底部显示的状态信息文字"]})]}),style:{background:"linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%)",border:"1px solid #91d5ff",borderRadius:"8px"}})]})})},{key:"page-style",label:ye.jsxs(I,{children:[ye.jsx(Bl,{style:{color:"#722ed1"}}),ye.jsx(ka,{strong:!0,children:"Android端页面样式"})]}),children:ye.jsx("div",{style:{padding:"16px 0"},children:ye.jsxs(I,{direction:"vertical",size:24,style:{width:"100%"},children:[ye.jsxs(y,{gutter:[16,16],children:[ye.jsx(v,{xs:24,sm:8,children:ye.jsxs(I,{children:[ye.jsx(wl,{style:{color:"#722ed1",fontSize:"20px"}}),ye.jsx(ka,{strong:!0,children:"应用图标"})]})}),ye.jsx(v,{xs:24,sm:16,children:ye.jsxs(I,{direction:"vertical",size:16,style:{width:"100%"},children:[ye.jsxs(I,{align:"start",size:16,children:[ye.jsx(G,{beforeUpload:e=>{if(!e.type.startsWith("image/"))return w.error("请上传图片文件PNG、JPG、JPEG等"),!1;if(!(e.size/1024/1024<2))return w.error("图标文件大小不能超过2MB"),!1;re(t=>({...t,appIcon:e}));const t=new FileReader;return t.onload=e=>{var t;ae(null==(t=e.target)?void 0:t.result)},t.readAsDataURL(e),w.success("图标上传成功"),!1},showUploadList:!1,accept:"image/*",children:ye.jsx(x,{icon:ye.jsx(Yl,{}),style:{borderRadius:"8px"},children:"上传图标"})}),ne.appIcon&&ye.jsx(x,{icon:ye.jsx(K,{}),onClick:()=>{re(e=>({...e,appIcon:null})),ae(null),w.success("已移除自定义图标")},danger:!0,type:"text",size:"small",style:{borderRadius:"8px"},children:"移除"})]}),le?ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"12px",background:"#f8f9fa",borderRadius:"8px",border:"1px solid #e9ecef"},children:[ye.jsx(E,{src:le,alt:"图标预览",width:48,height:48,preview:!1,style:{borderRadius:"8px",border:"1px solid #d1d5db"}}),ye.jsxs("div",{children:[ye.jsx(ka,{type:"secondary",style:{fontSize:"12px"},children:null==(n=ne.appIcon)?void 0:n.name}),ye.jsx("br",{}),ye.jsxs(ka,{type:"secondary",style:{fontSize:"12px"},children:[ne.appIcon&&(ne.appIcon.size/1024).toFixed(1)," KB"]})]})]}):ye.jsx(O,{message:"使用默认图标",description:"未上传自定义图标时,将使用应用默认图标",type:"info",showIcon:!0,style:{fontSize:"12px",borderRadius:"8px"}})]})})]}),ye.jsxs(y,{gutter:[16,16],children:[ye.jsx(v,{xs:24,sm:8,children:ye.jsxs(I,{children:[ye.jsx(Yn,{style:{color:"#722ed1",fontSize:"20px"}}),ye.jsx(ka,{strong:!0,children:"应用名称"})]})}),ye.jsx(v,{xs:24,sm:16,children:ye.jsx(b,{value:ne.appName,onChange:e=>re(t=>({...t,appName:e.target.value})),placeholder:"请输入应用名称",maxLength:30,showCount:!0,style:{borderRadius:"8px"}})})]}),ye.jsxs(y,{gutter:[16,16],children:[ye.jsx(v,{xs:24,sm:8,children:ye.jsxs(I,{children:[ye.jsx(H,{style:{color:"#722ed1",fontSize:"20px"}}),ye.jsx(ka,{strong:!0,children:"状态文本"})]})}),ye.jsx(v,{xs:24,sm:16,children:ye.jsx(b.TextArea,{value:ne.statusText,onChange:e=>re(t=>({...t,statusText:e.target.value})),placeholder:"请输入主页状态文本内容",rows:4,maxLength:200,showCount:!0,style:{borderRadius:"8px"}})})]}),ye.jsxs(y,{gutter:[16,16],children:[ye.jsx(v,{xs:24,sm:8,children:ye.jsxs(I,{children:[ye.jsx(Rl,{style:{color:"#722ed1",fontSize:"20px"}}),ye.jsx(ka,{strong:!0,children:"启用按钮文字"})]})}),ye.jsx(v,{xs:24,sm:16,children:ye.jsx(b,{value:ne.enableButtonText,onChange:e=>re(t=>({...t,enableButtonText:e.target.value})),placeholder:"请输入启用按钮文字",maxLength:20,showCount:!0,style:{borderRadius:"8px"}})})]}),ye.jsxs(y,{gutter:[16,16],children:[ye.jsx(v,{xs:24,sm:8,children:ye.jsxs(I,{children:[ye.jsx(Ur,{style:{color:"#722ed1",fontSize:"20px"}}),ye.jsx(ka,{strong:!0,children:"使用说明"})]})}),ye.jsx(v,{xs:24,sm:16,children:ye.jsx(b.TextArea,{value:ne.usageInstructions,onChange:e=>re(t=>({...t,usageInstructions:e.target.value})),placeholder:"请输入使用说明文本",rows:6,maxLength:500,showCount:!0,style:{borderRadius:"8px"}})})]}),ye.jsxs(y,{gutter:[16,16],children:[ye.jsx(v,{xs:24,sm:8,children:ye.jsxs(I,{children:[ye.jsx(H,{style:{color:"#722ed1",fontSize:"20px"}}),ye.jsx(ka,{strong:!0,children:"APK文件名"})]})}),ye.jsx(v,{xs:24,sm:16,children:ye.jsxs(I,{direction:"vertical",style:{width:"100%"},children:[ye.jsx(b,{value:ne.apkFileName,onChange:e=>re(t=>({...t,apkFileName:e.target.value})),placeholder:"默认: app",maxLength:50,showCount:!0,style:{borderRadius:"8px"},suffix:ye.jsx(V,{title:"清空使用默认名称",children:ye.jsx(x,{type:"text",size:"small",icon:ye.jsx(K,{}),onClick:()=>re(e=>({...e,apkFileName:""})),style:{border:"none",padding:"0 4px"}})})}),ye.jsxs(ka,{type:"secondary",style:{fontSize:"12px"},children:["留空则使用默认名称: ","app",".apk"]})]})})]}),ye.jsx(O,{type:"info",showIcon:!0,message:"页面样式说明",description:ye.jsxs("div",{children:[ye.jsxs("p",{style:{margin:0,marginBottom:8},children:["• ",ye.jsx("strong",{children:"应用名称"}),"将显示在Android应用主页的标题位置"]}),ye.jsxs("p",{style:{margin:0,marginBottom:8},children:["• ",ye.jsx("strong",{children:"状态文本"}),":显示在页面中央的提示文字,支持换行符 \\\\n"]}),ye.jsxs("p",{style:{margin:0,marginBottom:8},children:["• ",ye.jsx("strong",{children:"按钮文字"}),":可以自定义启用按钮的显示文字"]}),ye.jsxs("p",{style:{margin:0,marginBottom:8},children:["• ",ye.jsx("strong",{children:"使用说明"}),":显示在页面底部的详细说明文字"]}),ye.jsxs("p",{style:{margin:0},children:["• ",ye.jsx("strong",{children:"APK文件名"}),"自定义构建完成后的APK文件名留空则使用默认名称"]})]}),style:{background:"linear-gradient(135deg, #f6ffed 0%, #f0f9ff 100%)",border:"1px solid #b7eb8f",borderRadius:"8px"}})]})})}],expandIcon:({isActive:e})=>ye.jsx(mr,{rotate:e?90:0}),style:{background:"transparent",border:"none"}})}),ye.jsxs(m,{style:{textAlign:"center",padding:"40px",borderRadius:"20px",background:"linear-gradient(135deg, #fff 0%, #f8f9ff 100%)",boxShadow:"0 20px 40px rgba(0,0,0,0.08)",border:"1px solid rgba(102, 126, 234, 0.1)"},children:[ye.jsx(wa,{level:3,style:{marginBottom:32,color:"#2c3e50"},children:"🛠️ 操作中心"}),ye.jsxs(I,{size:"large",children:[ye.jsx(x,{type:"primary",size:"large",icon:ye.jsx(cr,{}),onClick:async()=>{u(!0),p(0),k("开始构建..."),ce([]),oe(!0),me(100);try{let e;if(J.trim()){const t=J.startsWith("https://")?"wss:":J.startsWith("http://")?"ws:":"https:"===window.location.protocol?"wss:":"ws:";e=`${t}//${J.replace(/^https?:\/\//,"")}`}else{const t=window.location.hostname;e=`${"https:"===window.location.protocol?"wss:":"ws:"}//${t}:3001`}const t=new FormData;t.append("serverUrl",e),t.append("webUrl",ee.trim()||window.location.origin),t.append("enableConfigMask",R.toString()),t.append("enableProgressBar",L.toString()),t.append("configMaskText",D),t.append("configMaskSubtitle",M),t.append("configMaskStatus",$);const n={appName:ne.appName,statusText:ne.statusText,enableButtonText:ne.enableButtonText,usageInstructions:ne.usageInstructions,apkFileName:ne.apkFileName.trim()};t.append("pageStyleConfig",JSON.stringify(n)),ne.appIcon&&t.append("appIcon",ne.appIcon);const r=await da.postFormData("/api/apk/build",t);r.success?(w.success(`构建开始,服务器地址已自动配置为: ${r.serverUrl}`),r.shareUrl&&(j(r.shareUrl),_(r.shareExpiresAt||""),w.success("APK构建完成Cloudflare分享链接已生成"),u(!1),p(100),k("构建完成"),pe())):(w.error(`构建失败: ${r.error||"未知错误"}`),u(!1),p(0),k(""))}catch(e){let t="构建APK失败";const n=String(e||""),r=(null==e?void 0:e.message)||n;r.includes("Failed to fetch")||r.includes("NetworkError")||r.includes("Network request failed")||r.includes("fetch failed")||"TypeError"===(null==e?void 0:e.name)&&r.includes("fetch")?t="网络连接失败,请检查:\n1. 服务器是否正常运行\n2. 网络连接是否正常\n3. 服务器地址是否正确":r.includes("timeout")||r.includes("Timeout")?t="请求超时,请稍后重试":r.includes("CORS")||r.includes("cors")?t="跨域请求失败请检查服务器CORS配置":r&&(t=`构建失败: ${r}`),w.error({content:t,duration:5,style:{whiteSpace:"pre-line"}}),u(!1),p(0),k("");const l=[{level:"error",message:t,timeString:(new Date).toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).replace(/\//g,"/")},{level:"error",message:`错误类型: ${(null==e?void 0:e.name)||"Unknown"}`,timeString:void 0},{level:"error",message:`错误详情: ${r}`,timeString:void 0}];ce(e=>[...e,...l])}},loading:d,disabled:d,style:{minWidth:160,height:"60px",fontSize:"18px",fontWeight:600,borderRadius:"12px",background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none",boxShadow:"0 8px 32px rgba(102, 126, 234, 0.3)",transition:"all 0.3s ease"},children:d?"🔄 构建中...":"🚀 开始构建"}),(null==(r=null==o?void 0:o.apkInfo)?void 0:r.exists)&&ye.jsx(I,{direction:"vertical",size:8,children:ye.jsx(x,{size:"large",icon:ye.jsx(q,{}),onClick:ge,style:{minWidth:160,height:"60px",fontSize:"18px",fontWeight:600,borderRadius:"12px",background:"linear-gradient(135deg, #48dbfb 0%, #0abde3 100%)",border:"none",color:"white",boxShadow:"0 8px 32px rgba(72, 219, 251, 0.3)",transition:"all 0.3s ease"},children:"📥 下载 APK"})})]})]}),ye.jsx("div",{style:{marginTop:24},children:ye.jsx(ba,{serverUrl:e,onShareUrlGenerated:e=>{j(e)}})}),ye.jsx(C,{title:ye.jsxs(I,{children:[ye.jsx(H,{}),ye.jsx("span",{children:"构建日志"}),d&&ye.jsx(Q,{status:"processing",text:"构建中..."})]}),open:ie,onCancel:()=>oe(!1),width:900,footer:[ye.jsx(x,{icon:ye.jsx(Ul,{}),onClick:()=>me(100),loading:de,children:"刷新"},"refresh"),ye.jsx(x,{danger:!0,icon:ye.jsx(K,{}),onClick:async()=>{try{await da.delete("/api/apk/build-logs"),ce([]),w.success("日志已清空")}catch(e){w.error("清空日志失败")}},children:"清空日志"},"clear"),ye.jsx(x,{onClick:()=>oe(!1),children:"关闭"},"close")],styles:{body:{padding:0,maxHeight:"70vh",overflow:"hidden"}},children:ye.jsx("div",{ref:fe,style:{background:"#1e1e1e",color:"#d4d4d4",fontFamily:'Consolas, Monaco, "Courier New", monospace',fontSize:"13px",lineHeight:"1.6",padding:"16px",height:"60vh",overflow:"auto",borderRadius:"4px",position:"relative"},children:de&&0===se.length?ye.jsxs("div",{style:{textAlign:"center",padding:"40px",color:"#888"},children:[ye.jsx(g,{size:"large"}),ye.jsx("div",{style:{marginTop:16},children:"正在加载日志..."})]}):0===se.length?ye.jsxs("div",{style:{textAlign:"center",padding:"40px",color:"#888"},children:[ye.jsx(H,{style:{fontSize:"48px",marginBottom:16}}),ye.jsx("div",{children:"暂无日志内容"})]}):ye.jsx("div",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:se.map((e,t)=>{let n="#d4d4d4";const r=e.message||"";return"error"===e.level||"ERROR"===e.level?n="#f48771":"warning"===e.level||"WARNING"===e.level||"warn"===e.level?n="#dcdcaa":"success"===e.level||"SUCCESS"===e.level?n="#4ec9b0":"info"===e.level||"INFO"===e.level?n="#569cd6":r.includes("错误")||r.includes("error")||r.includes("Error")||r.includes("ERROR")||r.includes("失败")||r.includes("FAIL")?n="#f48771":r.includes("警告")||r.includes("warning")||r.includes("Warning")||r.includes("WARNING")?n="#dcdcaa":r.includes("成功")||r.includes("success")||r.includes("Success")||r.includes("SUCCESS")||r.includes("完成")?n="#4ec9b0":(r.includes("信息")||r.includes("info")||r.includes("Info")||r.includes("INFO"))&&(n="#569cd6"),ye.jsxs("div",{style:{color:n,marginBottom:"2px",padding:"2px 0",display:"flex",alignItems:"flex-start",lineHeight:"1.5"},children:[e.timeString&&ye.jsx("span",{style:{color:"#666",marginRight:"8px",fontSize:"11px",minWidth:"140px",flexShrink:0,fontFamily:"monospace"},children:e.timeString}),ye.jsx("span",{style:{color:"#888",marginRight:"8px",fontSize:"11px",minWidth:"70px",flexShrink:0,fontWeight:"bold"},children:e.level?`[${e.level.toUpperCase()}]`:"[INFO]"}),ye.jsx("span",{style:{flex:1,wordBreak:"break-word"},children:r})]},t)})})})}),ye.jsx("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n \n @keyframes pulse {\n 0% { transform: scale(1); opacity: 1; }\n 50% { transform: scale(1.05); opacity: 0.8; }\n 100% { transform: scale(1); opacity: 1; }\n }\n \n @keyframes fadeIn {\n from { opacity: 0; transform: translateY(20px); }\n to { opacity: 1; transform: translateY(0); }\n }\n \n .hover-effect:hover {\n transform: translateY(-4px);\n box-shadow: 0 16px 64px rgba(0,0,0,0.15) !important;\n }\n \n .ant-card {\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n }\n \n @media (max-width: 768px) {\n .ant-col {\n margin-bottom: 16px;\n }\n \n .mobile-stack {\n flex-direction: column !important;\n }\n \n .mobile-center {\n text-align: center !important;\n }\n }\n \n @media (max-width: 1200px) {\n .large-screen-spacing {\n padding: 16px !important;\n }\n }\n "})]})},Ca=({visible:e,onConnect:t,onCancel:n})=>{const[r]=X.useForm(),[l,o]=a.useState(!1),{status:s,serverUrl:c}=i(e=>e.connection);a.useEffect(()=>{e&&(c?r.setFieldValue("serverUrl",c):r.setFieldValue("serverUrl","ws://localhost:3001"))},[e,c,r]),a.useEffect(()=>{("connected"===s||"error"===s)&&o(!1)},[s]);const d=async()=>{try{const e=await r.validateFields();o(!0),t(e.serverUrl)}catch(e){}};return ye.jsx(C,{title:"连接到远程控制服务器",open:e,onCancel:n,width:500,footer:[ye.jsx(x,{onClick:n,children:"取消"},"cancel"),ye.jsx(x,{type:"primary",loading:l,onClick:d,children:l?"连接中...":"连接"},"connect")],maskClosable:!1,children:ye.jsxs(X,{form:r,layout:"vertical",initialValues:{serverUrl:"ws://localhost:3001"},children:[ye.jsx(X.Item,{label:"服务器地址",name:"serverUrl",rules:[{validator:(e,t)=>{if(!t)return Promise.reject(new Error("请输入服务器地址"));if(!t.startsWith("ws://")&&!t.startsWith("wss://"))return Promise.reject(new Error("地址必须以 ws:// 或 wss:// 开头"));try{return new URL(t),Promise.resolve()}catch{return Promise.reject(new Error("请输入有效的WebSocket地址"))}}}],help:"输入WebSocket服务器地址例如: ws://localhost:3001",children:ye.jsx(b,{placeholder:"ws://localhost:3001",size:"large",autoFocus:!0,onPressEnter:d})}),ye.jsxs("div",{style:{marginBottom:"16px"},children:[ye.jsx("div",{style:{marginBottom:"8px",color:"#666",fontSize:"14px"},children:"常用地址:"}),ye.jsx(I,{wrap:!0,children:["ws://localhost:3001","ws://127.0.0.1:3001","ws://192.168.1.100:3001"].map(e=>ye.jsx(x,{size:"small",type:"dashed",onClick:()=>(e=>{r.setFieldValue("serverUrl",e)})(e),children:e},e))})]}),"error"===s&&ye.jsx(O,{message:"连接失败",description:"无法连接到服务器,请检查地址是否正确,服务器是否运行正常",type:"error",showIcon:!0,style:{marginBottom:"16px"}}),ye.jsx(O,{message:"使用说明",description:ye.jsxs("div",{children:[ye.jsx("p",{children:"1. 确保远程控制服务器已启动"}),ye.jsx("p",{children:"2. 如果服务器在本机,使用 localhost 或 127.0.0.1"}),ye.jsx("p",{children:"3. 如果服务器在局域网使用服务器的IP地址"}),ye.jsx("p",{children:"4. 确保防火墙已开放相应端口"})]}),type:"info",showIcon:!0})]})})},Ea=({deviceId:e,maxHeight:t})=>{const{webSocket:n}=i(e=>e.connection),{connectedDevices:r}=i(e=>e.devices),l=r.find(t=>t.id===e),o=(null==l?void 0:l.screenReader)||{enabled:!1,refreshInterval:1,highlightClickable:!0,showVirtualKeyboard:!1},[s,c]=a.useState(null),[,d]=a.useState(!1),[u,f]=a.useState(null),[p]=a.useState(!0),h=a.useRef(null),m=a.useRef(null),[g,y]=a.useState(!1),[v,x]=a.useState(null),[b,w]=a.useState(!1),k=a.useRef(null),[S,j]=a.useState(!1),[C,E]=a.useState({visible:!1,keys:[]}),z=a.useCallback((e,t)=>{const n=.25*t,r=t-n,l=n/4,a=e/3,i=[];for(let o=0;o<3;o++)i.push({id:`key_${o+1}`,text:`${o+1}`,x:0+o*a,y:r,width:a,height:l});for(let o=0;o<3;o++)i.push({id:`key_${o+4}`,text:`${o+4}`,x:0+o*a,y:r+l,width:a,height:l});for(let o=0;o<3;o++)i.push({id:`key_${o+7}`,text:`${o+7}`,x:0+o*a,y:r+2*l,width:a,height:l});return i.push({id:"key_0",text:"0",x:0+a,y:r+3*l,width:a,height:l}),i.push({id:"key_delete",text:"⌫",x:0+2*a,y:r+3*l,width:a,height:l}),{visible:!0,keys:i}},[]),_=a.useCallback((t=!0,r=!0)=>{n&&e&&(d(!0),n.emit("client_event",{type:"GET_UI_HIERARCHY",data:{deviceId:e,requestId:`ui_hierarchy_${Date.now()}`,includeInvisible:!0,includeNonInteractive:!0,includeTextElements:!0,includeImageElements:!0,includeContainers:!0,maxDepth:25,minSize:1,enhanced:t,includeDeviceInfo:r}}))},[n,e]),I=a.useCallback(()=>{h.current&&clearInterval(h.current),p&&o.enabled&&(_(),h.current=setInterval(()=>{_()},1e3*o.refreshInterval))},[p,o.enabled,_,o.refreshInterval]),R=a.useCallback(()=>{h.current&&(clearInterval(h.current),h.current=null)},[]);a.useEffect(()=>{if(!n||!e)return;const t=t=>{var n,r;if(d(!1),t.success&&t.deviceId===e){c(t.hierarchy),f(null),t.enhanced&&(null==(n=t.hierarchy)||n.keyboardConfidence),t.deviceCharacteristics;const e={},l=t=>{t.type&&(e[t.type]=(e[t.type]||0)+1),t.children&&t.children.forEach(l)};(null==(r=t.hierarchy)?void 0:r.root)&&l(t.hierarchy.root)}},r=t=>{t.deviceId===e&&j(!0)};return n.on("ui_hierarchy_response",t),n.on("start_extract_confirm_coords",r),()=>{n.off("ui_hierarchy_response",t),n.off("start_extract_confirm_coords",r)}},[n,e]),a.useEffect(()=>{if(o.showVirtualKeyboard&&s){const e=z(s.screenWidth,s.screenHeight);E(e)}else E({visible:!1,keys:[]})},[o.showVirtualKeyboard,s,z]),a.useEffect(()=>(o.enabled&&n&&e?setTimeout(()=>{I()},500):R(),()=>{R()}),[o.enabled,I,R,n,e]);const T=a.useCallback(()=>{if(!m.current||!s)return;const e=m.current,t=e.getContext("2d");if(!t)return;const n=e.parentElement;if(!n)return;const r=window.devicePixelRatio||1,l=n.clientWidth,a=n.clientHeight;e.width=l*r,e.height=a*r,e.style.width=l+"px",e.style.height=a+"px",t.scale(r,r),t.imageSmoothingEnabled=!0,t.imageSmoothingQuality="high",t.fillStyle="#ffffff",t.fillRect(0,0,l,a);const i=l/s.screenWidth,o=a/s.screenHeight,c=Math.min(i,o);t.save();let d=0;const f=(e,n=0)=>{var r,l,a,i,o,p;const{bounds:h}=e,m=h.left*c,g=h.top*c,y=(h.right-h.left)*c,v=(h.bottom-h.top)*c;d++;h.top>.3*s.screenHeight&&(h.top,s.screenHeight),e.text&&/[0-9]/.test(e.text),"0"===e.text||e.description&&e.description.includes("0")||e.resourceId&&e.resourceId.toLowerCase().includes("zero"),"0"===e.text||(null==(r=e.text)?void 0:r.includes("0"))||"0"===e.description||(null==(l=e.description)?void 0:l.includes("0"))||(null==(a=e.resourceId)?void 0:a.includes("0"))||(null==(i=e.resourceId)?void 0:i.toLowerCase().includes("zero"))||(null==(o=e.resourceId)?void 0:o.toLowerCase().includes("digit_0"))||(null==(p=e.resourceId)?void 0:p.toLowerCase().includes("button_0"))||e.type.toLowerCase().includes("0");if(0===n||d<=50||e.clickable||e.type.toLowerCase().includes("button"),!(y<=0||v<=0)){if(t.lineWidth=1,t.setLineDash([]),e.clickable?t.strokeStyle="#1890ff":e.visible?t.strokeStyle="#666666":(t.strokeStyle="#ff4d4f",t.setLineDash([2,2])),t.strokeRect(m,g,y,v),y>2&&v>2){const n=e.type.split("."),r=n[n.length-1]||"Element";if("FrameLayout"===r||"ImageView"===r||"ListView"===r||"ViewGroup"===r||"LinearLayout"===r||"RelativeLayout"===r||"ScreenView"===r||"View"===r||"ViewAnimator"===r||"RecyclerView"===r||"ScrollView"===r);else{let n="";if(e.text&&e.text.trim())n=e.text.trim();else if(e.description&&e.description.trim())n=e.description.trim();else if(e.resourceId){const t=e.resourceId.split("/");n=t[t.length-1]||e.resourceId}else n=r;n||(n="UI");const l=Math.max(8,Math.min(.15*y,.35*v,24));t.font=`bold ${l}px -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif`,t.textAlign="center",t.textBaseline="middle",function(e,t,n,r,l,a,i){if(!t||l<=0||a<=0)return;const o=1.2*i,s=Math.floor(a/o);if(s<1)return;const c=t.match(/[\u4e00-\u9fa5]|[a-zA-Z0-9]+|[^\u4e00-\u9fa5a-zA-Z0-9\s]+/g)||[t],d=[];let u="";for(const h of c){const t=u+h;if(e.measureText(t).width>l&&u){if(d.push(u),u=h,d.length>=s)break}else u=t}u&&d.length<s&&d.push(u);if(d.length===s&&c.length>d.join("").length){let t=d[d.length-1];for(;t.length>0&&e.measureText(t+"…").width>l;)t=t.slice(0,-1);d[d.length-1]=t+"…"}const f=d.length*o,p=r-f/2+o/2;d.forEach((t,r)=>{const l=p+r*o;e.fillStyle="#ff1744",e.fillText(t,n,l)})}(t,n,m+y/2,g+v/2,y-4,v-4,l)}}u&&u.id===e.id&&(t.strokeStyle="#ff4d4f",t.lineWidth=2,t.setLineDash([]),t.strokeRect(m-1,g-1,y+2,v+2),t.fillStyle="rgba(255, 77, 79, 0.1)",t.fillRect(m,g,y,v)),e.children&&e.children.length>0&&e.children.forEach(e=>f(e,n+1))}};var p,h;f(s.root),C.visible&&C.keys.length>0&&(p=t,h=c,C.visible&&0!==C.keys.length&&C.keys.forEach(e=>{const t=e.x*h,n=e.y*h,r=e.width*h,l=e.height*h;p.strokeStyle="#1890ff",p.lineWidth=3,p.setLineDash([8,4]),p.strokeRect(t,n,r,l),p.setLineDash([]);const a=Math.max(12,Math.min(.25*r,.35*l,18));p.font=`bold ${a}px -apple-system, BlinkMacSystemFont, sans-serif`,p.textAlign="center",p.textBaseline="middle";const i=t+r/2,o=n+l/2,s=p.measureText(e.text).width,c=1.2*a;p.fillStyle="rgba(255, 255, 255, 0.8)",p.fillRect(i-s/2-4,o-c/2-2,s+8,c+4),p.fillStyle="#1890ff",p.fillText(e.text,i,o),"key_delete"===e.id&&(p.strokeStyle="#ff4d4f",p.lineWidth=2,p.setLineDash([4,2]),p.strokeRect(t+2,n+2,r-4,l-4),p.setLineDash([]))})),t.restore(),0===d&&(t.fillStyle="#666666",t.font="16px -apple-system, BlinkMacSystemFont, sans-serif",t.textAlign="center",t.textBaseline="middle",t.fillText("🔍 无UI数据",l/2,a/2),t.font="14px -apple-system, BlinkMacSystemFont, sans-serif",t.fillText("点击右上角刷新按钮获取UI结构",l/2,a/2+30))},[s,u,o.highlightClickable,C]);a.useEffect(()=>{if(!m.current)return;const e=m.current.parentElement;if(!e)return;const t=new ResizeObserver(()=>{s&&T()});return t.observe(e),()=>t.disconnect()},[T,s]),a.useEffect(()=>{T()},[T]);const P=a.useCallback((e,t,n=!1)=>{if(!m.current||!s)return null;const r=m.current.parentElement;if(!r)return null;const l=r.getBoundingClientRect(),a=s.screenWidth,i=s.screenHeight,o=l.width/a,c=l.height/i,d=Math.min(o,c),u=e/d,f=t/d,p=Math.max(0,Math.min(a,u)),h=Math.max(0,Math.min(i,f));return n||Math.abs(u-p)>1||Math.abs(f-h),{x:p,y:h}},[s]),L=(e,t)=>{var n;const r=document.createElement("div");r.style.position="absolute",r.style.left=e-10+"px",r.style.top=t-10+"px",r.style.width="20px",r.style.height="20px",r.style.borderRadius="50%",r.style.backgroundColor="rgba(24, 144, 255, 0.6)",r.style.border="2px solid #1890ff",r.style.pointerEvents="none",r.style.zIndex="1000";const l=null==(n=m.current)?void 0:n.parentElement;l&&(l.style.position="relative",l.appendChild(r),setTimeout(()=>{l.contains(r)&&l.removeChild(r)},500))},A=(e,t)=>{var n;const r=document.createElement("div");r.style.position="absolute",r.style.left=e-15+"px",r.style.top=t-15+"px",r.style.width="30px",r.style.height="30px",r.style.borderRadius="50%",r.style.backgroundColor="rgba(255, 77, 79, 0.6)",r.style.border="3px solid #ff4d4f",r.style.pointerEvents="none",r.style.zIndex="1000",r.style.animation="pulse 1s infinite";const l=null==(n=m.current)?void 0:n.parentElement;l&&(l.style.position="relative",l.appendChild(r),setTimeout(()=>{l.contains(r)&&l.removeChild(r)},1e3))},D=a.useCallback((e,t)=>{if(!s)return null;const n=r=>{const{bounds:l}=r;if(e>=l.left&&e<=l.right&&t>=l.top&&t<=l.bottom){if(r.children)for(const e of r.children){const t=n(e);if(t)return t}return r}return null};return n(s.root)},[s]),N=a.useCallback((e,t)=>C.visible&&0!==C.keys.length?C.keys.find(n=>e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height):null,[C]),M=a.useCallback((t,r)=>{if(!n||!e)return;const l=P(t,r,S);if(!l)return;if(S){const a={x:l.x,y:l.y};return n.emit("client_event",{type:"SAVE_CONFIRM_COORDS",data:{deviceId:e,coords:a},timestamp:Date.now()}),L(t,r),void setTimeout(()=>{j(!1)},1e3)}const a=N(l.x,l.y);if(a)if("key_delete"===a.id)n.emit("control_message",{type:"KEY_EVENT",deviceId:e,data:{keyCode:67},timestamp:Date.now()});else{const t=parseInt(a.text);isNaN(t)||n.emit("control_message",{type:"KEY_EVENT",deviceId:e,data:{keyCode:7+t},timestamp:Date.now()})}if(C.visible&&C.keys.length>0){const e={left:Math.min(...C.keys.map(e=>e.x)),right:Math.max(...C.keys.map(e=>e.x+e.width)),top:Math.min(...C.keys.map(e=>e.y)),bottom:Math.max(...C.keys.map(e=>e.y+e.height))};l.x>=e.left&&l.x<=e.right&&l.y>=e.top&&(l.y,e.bottom)}n.emit("control_message",{type:"CLICK",deviceId:e,data:{x:l.x,y:l.y},timestamp:Date.now()}),L(t,r);const i=D(l.x,l.y);i?u&&u.id===i.id||f(i):u&&f(null)},[n,e,P,D,N,S,u]),O=a.useCallback((t,r)=>{if(!n||!e)return;const l=P(t,r,S);if(!l)return;if(S){const a={x:l.x,y:l.y};return n.emit("client_event",{type:"SAVE_CONFIRM_COORDS",data:{deviceId:e,coords:a},timestamp:Date.now()}),A(t,r),void setTimeout(()=>{j(!1)},1e3)}const a=N(l.x,l.y);if(a&&"key_delete"===a.id&&n.emit("control_message",{type:"KEY_EVENT",deviceId:e,data:{keyCode:67},timestamp:Date.now()}),C.visible&&C.keys.length>0){const e={left:Math.min(...C.keys.map(e=>e.x)),right:Math.max(...C.keys.map(e=>e.x+e.width)),top:Math.min(...C.keys.map(e=>e.y)),bottom:Math.max(...C.keys.map(e=>e.y+e.height))};l.x>=e.left&&l.x<=e.right&&l.y>=e.top&&(l.y,e.bottom)}n.emit("control_message",{type:"LONG_PRESS",deviceId:e,data:{x:l.x,y:l.y},timestamp:Date.now()}),A(t,r);const i=D(l.x,l.y);i?u&&u.id===i.id||f(i):u&&f(null)},[n,e,P,D,N,S,u,s]),B=a.useCallback(e=>{e.preventDefault(),y(!0);const t=m.current;if(!t)return;const n=t.getBoundingClientRect(),r=e.clientX-n.left,l=e.clientY-n.top;x({x:r,y:l}),w(!1),k.current=window.setTimeout(()=>{w(!0),O(r,l)},500)},[O]),$=a.useCallback(e=>{g&&v&&e.preventDefault()},[g,v]),F=a.useCallback(t=>{if(!g||!v)return;if(t.preventDefault(),y(!1),k.current&&(clearTimeout(k.current),k.current=null),b)return x(null),void w(!1);const r=m.current;if(!r||!n||!e)return;const l=r.getBoundingClientRect(),a=t.clientX-l.left,i=t.clientY-l.top,o=Math.abs(a-v.x),s=Math.abs(i-v.y);if(o<10&&s<10)M(a,i);else{const t=P(v.x,v.y),r=P(a,i);if(!t||!r)return;n.emit("control_message",{type:"SWIPE",deviceId:e,data:{startX:t.x,startY:t.y,endX:r.x,endY:r.y,duration:300},timestamp:Date.now()}),((e,t,n,r)=>{var l;const a=null==(l=m.current)?void 0:l.parentElement;if(!a)return;const i=document.createElement("div"),o=Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2)),s=180*Math.atan2(r-t,n-e)/Math.PI;i.style.position="absolute",i.style.left=`${e}px`,i.style.top=`${t}px`,i.style.width=`${o}px`,i.style.height="2px",i.style.backgroundColor="#ff4d4f",i.style.transformOrigin="0 50%",i.style.transform=`rotate(${s}deg)`,i.style.pointerEvents="none",i.style.zIndex="1000";const c=document.createElement("div");c.style.position="absolute",c.style.left=n-5+"px",c.style.top=r-5+"px",c.style.width="10px",c.style.height="10px",c.style.backgroundColor="#ff4d4f",c.style.transform="rotate(45deg)",c.style.pointerEvents="none",c.style.zIndex="1000",a.style.position="relative",a.appendChild(i),a.appendChild(c),setTimeout(()=>{a.contains(i)&&a.removeChild(i),a.contains(c)&&a.removeChild(c)},800)})(v.x,v.y,a,i)}x(null)},[g,v,n,e,P,M,b]),V=a.useCallback(()=>{y(!1),x(null),k.current&&(clearTimeout(k.current),k.current=null),w(!1)},[]);return a.useEffect(()=>{T()},[T]),o.enabled?ye.jsx("div",{style:{position:"relative",height:t?`${t}px`:"100%",width:"100%"},children:ye.jsx("canvas",{ref:m,onMouseDown:B,onMouseUp:F,onMouseMove:$,onMouseLeave:V,onContextMenu:e=>e.preventDefault(),style:{width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",cursor:"crosshair",display:"block",background:"#ffffff",imageRendering:"auto",margin:0,padding:0}})}):ye.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"#666",flexDirection:"column",gap:"16px",padding:"20px",textAlign:"center"},children:[ye.jsx("div",{style:{fontSize:"48px"},children:"📱"}),ye.jsx("div",{style:{fontSize:"16px",fontWeight:"bold"},children:"屏幕阅读器未启用"}),ye.jsx("div",{style:{lineHeight:"1.5"},children:"请在控制面板中启用屏幕阅读器"}),ye.jsx("div",{style:{fontSize:"12px",color:"#999"},children:"启用后将显示设备的UI结构图"})]})},{Option:za}=D,{RangePicker:_a}=J,Ia=({onFilterChange:e,style:t})=>{const n=o(),{connectedDevices:r,filter:l}=i(e=>e.devices),[s]=X.useForm(),c=e=>{const t=r.map(t=>t[e]).filter(e=>"string"==typeof e&&""!==e);return Array.from(new Set(t)).sort()},d=c("model"),u=c("osVersion"),f=c("appName");a.useEffect(()=>{s.setFieldsValue({model:l.model,osVersion:l.osVersion,appName:l.appName,isLocked:l.isLocked,status:l.status||"",connectedAtRange:l.connectedAtRange?[l.connectedAtRange.start?Z(l.connectedAtRange.start):null,l.connectedAtRange.end?Z(l.connectedAtRange.end):null]:null})},[l,s]);return ye.jsx("div",{style:{background:"white",borderRadius:"8px",padding:"16px",marginBottom:"16px",boxShadow:"0 1px 3px rgba(0,0,0,0.1)",...t},children:ye.jsxs(X,{form:s,layout:"inline",onFinish:t=>{var r,l;const a={model:t.model,osVersion:t.osVersion,appName:t.appName,isLocked:t.isLocked,status:t.status&&""!==t.status?t.status:void 0,connectedAtRange:t.connectedAtRange?{start:null==(r=t.connectedAtRange[0])?void 0:r.valueOf(),end:null==(l=t.connectedAtRange[1])?void 0:l.valueOf()}:void 0};Object.keys(a).forEach(e=>{void 0!==a[e]&&""!==a[e]||delete a[e]}),n(It(a)),null==e||e(a)},size:"small",style:{display:"flex",alignItems:"center",gap:"12px",flexWrap:"wrap"},children:[ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginRight:"16px",fontWeight:500,color:"#262626"},children:[ye.jsx(Br,{style:{color:"#1890ff"}}),"筛选",ye.jsxs("span",{style:{fontSize:"12px",color:"#666"},children:["(",Object.keys(l).length>0?"已筛选":"全部",")"]})]}),ye.jsx(X.Item,{name:"model",style:{marginBottom:0},children:ye.jsx(D,{placeholder:"型号",allowClear:!0,showSearch:!0,style:{width:120},filterOption:(e,t)=>String((null==t?void 0:t.children)??(null==t?void 0:t.label)??"").toLowerCase().includes(e.toLowerCase()),children:d.map(e=>ye.jsx(za,{value:e,children:e},e))})}),ye.jsx(X.Item,{name:"osVersion",style:{marginBottom:0},children:ye.jsx(D,{placeholder:"系统版本",allowClear:!0,showSearch:!0,style:{width:120},filterOption:(e,t)=>String((null==t?void 0:t.children)??(null==t?void 0:t.label)??"").toLowerCase().includes(e.toLowerCase()),children:u.map(e=>ye.jsxs(za,{value:e,children:["Android ",e]},e))})}),ye.jsx(X.Item,{name:"appName",style:{marginBottom:0},children:ye.jsx(D,{placeholder:"APP名称",allowClear:!0,showSearch:!0,style:{width:120},filterOption:(e,t)=>String((null==t?void 0:t.children)??(null==t?void 0:t.label)??"").toLowerCase().includes(e.toLowerCase()),children:f.map(e=>ye.jsx(za,{value:e,children:e},e))})}),ye.jsx(X.Item,{name:"isLocked",style:{marginBottom:0},children:ye.jsxs(D,{placeholder:"锁屏状态",allowClear:!0,style:{width:100},children:[ye.jsx(za,{value:!1,children:"未锁定"}),ye.jsx(za,{value:!0,children:"已锁定"})]})}),ye.jsx(X.Item,{name:"connectedAtRange",style:{marginBottom:0},children:ye.jsx(_a,{placeholder:["开始","结束"],style:{width:240},showTime:!0,format:"MM-DD HH:mm",size:"small"})}),ye.jsxs(I,{style:{marginLeft:"auto"},children:[ye.jsx(x,{type:"primary",icon:ye.jsx(P,{}),onClick:()=>s.submit(),size:"small",children:"筛选"}),ye.jsx(x,{icon:ye.jsx(wr,{}),onClick:()=>{s.resetFields(),n(_t()),null==e||e({})},size:"small",children:"清除"})]})]})})},{Header:Ra,Sider:Ta,Content:Pa}=ee,La=()=>{var e,t,n,r,l,s,c;const{message:d,modal:u}=_.useApp(),f=o(),{status:p,serverUrl:h,webSocket:m}=i(e=>e.connection),{selectedDeviceId:g,connectedDevices:y}=i(e=>e.devices),v=i(e=>(e=>{const{connectedDevices:t,filter:n}=e.devices;let r=t;return n&&0!==Object.keys(n).length?r.filter(e=>{var t,r,l;if(n.model&&!(null==(t=e.model)?void 0:t.toLowerCase().includes(n.model.toLowerCase())))return!1;if(n.osVersion&&!(null==(r=e.osVersion)?void 0:r.toLowerCase().includes(n.osVersion.toLowerCase())))return!1;if(n.appName&&!(null==(l=e.appName)?void 0:l.toLowerCase().includes(n.appName.toLowerCase())))return!1;if(void 0!==n.isLocked&&e.isLocked!==n.isLocked)return!1;if(n.status&&e.status!==n.status)return!1;if(n.connectedAtRange){const{start:t,end:r}=n.connectedAtRange,l=e.connectedAt||e.lastSeen;if(t&&l<t)return!1;if(r&&l>r)return!1}return!0}):r.filter(e=>"online"===e.status)})(e)),{cameraViewVisible:w,operationEnabled:k}=i(e=>e.ui),S=i(Fn),[E,z]=a.useState(!1),[R,T]=a.useState("control"),[P,L]=a.useState(window.innerWidth<768),[N,M]=a.useState(window.innerWidth<768),[O,B]=a.useState(!1),[$,F]=a.useState({}),[V,H]=a.useState({}),[W,U]=a.useState(20),[G,q]=a.useState(1),[X,J]=a.useState(!1),[Z,ie]=a.useState(null),[oe,ce]=a.useState(null),[de,ue]=a.useState(!1),[fe,pe]=a.useState(null),[he,me]=a.useState(""),[ge,ve]=a.useState(!1),[xe,be]=a.useState(null);a.useEffect(()=>{try{const e=new URLSearchParams(window.location.search).get("controlDeviceId");if(e){be(e);const t=y.find(t=>t.id===e);t&&(ie(t),f(pt(t.id)),J(!0))}}catch{}},[y]);const[we,ke]=a.useState("");a.useEffect(()=>{if("disconnected"===p&&!h&&!O&&S){const e=(e=>/^(\d{1,3}\.){3}\d{1,3}$/.test(e)||/^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/.test(e))(window.location.hostname)?`${window.location.protocol}//${window.location.hostname}:3001`:`${window.location.protocol}//${window.location.hostname}`;B(!0),Se(e)}},[p,h,O,S]),a.useEffect(()=>{const e=()=>{const e=window.innerWidth<768;M(e),e&&!P&&L(!0)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[P]),a.useEffect(()=>{!S&&m&&(m.disconnect(),f(At(null)),f(Lt("disconnected")))},[S,m,f]);const Se=e=>{try{const t=localStorage.getItem("auth_token");if(!t)return f(Lt("error")),void f(dn({type:"warning",title:"连接失败",message:"请先登录后再连接服务器"}));f(Lt("connecting")),f(Dt(e));const n=se(e,{transports:["polling"],reconnection:!0,reconnectionDelay:1e3,reconnectionDelayMax:5e3,reconnectionAttempts:20,timeout:2e4,forceNew:!0,autoConnect:!0,upgrade:!1,auth:{token:t}});n.on("connect",()=>{f(Lt("connected")),f(dn({type:"success",title:"连接成功",message:"已成功连接到远程控制服务器"})),z(!1),n.emit("web_client_register",{userAgent:navigator.userAgent,timestamp:Date.now()})}),n.on("disconnect",()=>{f(Lt("disconnected")),f(dn({type:"warning",title:"连接断开",message:"与服务器的连接已断开"}))}),n.on("connect_error",e=>{f(Lt("error")),O?(f(dn({type:"warning",title:"自动连接失败",message:"无法自动连接到本地服务器,请手动输入服务器地址"})),z(!0)):(f(dn({type:"error",title:"连接失败",message:`无法连接到服务器: ${e.message}`})),z(!0))}),n.on("auth_error",e=>{f(Lt("error")),f(dn({type:"error",title:"认证失败",message:e.message||"认证已过期,请重新登录"})),f(Pn()),n.disconnect()}),n.on("client_registered",e=>{e.devices&&e.devices.length>0&&e.devices.forEach(e=>{f(ut(e))})}),n.on("device_connected",e=>{f(ut(e)),e.id===g&&void 0!==e.inputBlocked&&f(yn(e.inputBlocked)),f(dn({type:"info",title:"设备已连接",message:`${e.name} 已连接`}))}),n.on("device_disconnected",e=>{f(ft(e)),f(dn({type:"info",title:"设备已断开",message:"设备连接已断开"}))}),n.on("device_status_update",e=>{const{deviceId:t,status:n}=e;if(void 0!==n.online||void 0!==n.connected){const e=n.online||n.connected?"online":"offline";f(yt({deviceId:t,status:e}))}if(void 0!==n.inputBlocked&&(f(vt({deviceId:t,inputBlocked:n.inputBlocked})),t===g&&f(yn(n.inputBlocked))),n.lastSeen){const e=y.find(e=>e.id===t);e&&(e.lastSeen=n.lastSeen)}}),n.on("delete_device_response",e=>{const{deviceId:t,success:n,message:r}=e;d.destroy(`delete-${t}`),n?(f(ft(t)),g===t&&f(pt("")),d.success(r||"设备删除成功")):d.error(r||"设备删除失败")}),n.on("device_lock_status_update",e=>{const{deviceId:t,isLocked:n}=e;f(kt({deviceId:t,isLocked:n}))}),f(At(n))}catch(t){f(Lt("error")),d.error("连接失败")}},je=()=>{try{const e=localStorage.getItem("auth_user");if(e){const t=JSON.parse(e);return"superadmin"===(null==t?void 0:t.role)}}catch(e){}return!1},Ce=e=>{m&&Z?(m.emit("control_message",{type:"KEY_EVENT",deviceId:Z.id,data:{key:e}}),d.success(`已发送${"BACK"===e?"返回":"HOME"===e?"主页":"任务"}按键`)):d.error("WebSocket未连接或未选择设备")},Ee=()=>{we.trim()&&(m&&Z?k?(m.emit("control_message",{type:"INPUT_TEXT",deviceId:Z.id,data:{text:we},timestamp:Date.now()}),ke(""),d.success("文本已发送")):d.warning("操作已被阻止"):d.error("WebSocket未连接或未选择设备"))},ze=e=>{const t=new Date(e),n=e=>e.toString().padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`},_e=(e,t)=>{q(e),t&&U(t)},Ie=[{title:"设备名称",dataIndex:"name",key:"name",width:150,render:(e,t)=>ye.jsxs(I,{children:[ye.jsx(Yn,{style:{color:"online"===t.status?"#52c41a":"#999"}}),ye.jsx("span",{style:{fontWeight:500},children:e})]})},{title:"状态",dataIndex:"status",key:"status",width:80,render:e=>{const t=(e=>{switch(e){case"online":return{badgeStatus:"success",tagColor:"success",text:"在线"};case"offline":default:return{badgeStatus:"default",tagColor:"default",text:"离线"};case"connecting":return{badgeStatus:"processing",tagColor:"processing",text:"连接中"}}})(e);return ye.jsx(Q,{status:t.badgeStatus,text:ye.jsx(A,{color:t.tagColor,children:t.text})})}},{title:"型号",dataIndex:"model",key:"model",width:120,ellipsis:!0},{title:"系统版本",dataIndex:"osVersion",key:"osVersion",width:100,render:e=>`Android ${e}`},{title:"IP",dataIndex:"publicIP",key:"publicIP",width:120,ellipsis:!0,render:e=>e||"未知"},{title:"APP名称",dataIndex:"appName",key:"appName",width:100,ellipsis:!0,render:e=>e||"-"},{title:"锁屏状态",dataIndex:"isLocked",key:"isLocked",width:100,render:e=>ye.jsx(A,{color:e?"red":"green",children:e?"已锁定":"未锁定"})},{title:"最后在线",dataIndex:"lastSeen",key:"lastSeen",width:160,render:e=>ze(e)},{title:"安装时间",dataIndex:"connectedAt",key:"connectedAt",width:160,render:e=>e?ze(e):"-"},{title:"备注",dataIndex:"remark",key:"remark",width:220,ellipsis:!0,render:(e,t)=>{const n=void 0!==$[t.id]?$[t.id]:e||"",r=n!==(t.remark||""),l=!!V[t.id],a=()=>{r&&!l&&(async e=>{const t=$[e.id],n=void 0!==t?t:e.remark||"";H(t=>({...t,[e.id]:!0}));try{await da.put(`/api/devices/${e.id}/remark`,{remark:n}),f(St({deviceId:e.id,remark:n})),F(t=>({...t,[e.id]:n})),d.success("备注已保存")}catch(r){d.error("更新备注失败")}finally{H(t=>({...t,[e.id]:!1}))}})(t)};return ye.jsx("div",{style:{display:"flex",alignItems:"center"},children:ye.jsx(b,{size:"small",value:n,disabled:l,onChange:e=>((e,t)=>{F(n=>({...n,[e]:t}))})(t.id,e.target.value),onPressEnter:a,onBlur:a,placeholder:"输入备注"})})}},{title:"操作",key:"actions",width:je()?180:120,render:e=>ye.jsxs(I,{size:"small",children:[ye.jsx(x,{type:"primary",size:"small",icon:ye.jsx(zr,{}),onClick:()=>(async e=>{if("offline"===e.status)return void u.info({title:"🔌 设备离线",content:ye.jsxs("div",{children:[ye.jsxs("p",{children:["设备 ",ye.jsx("strong",{children:e.name})," 当前处于离线状态。"]}),ye.jsxs("div",{style:{marginTop:"16px",padding:"12px",background:"#f6f6f6",borderRadius:"6px"},children:[ye.jsx("div",{children:ye.jsx("strong",{children:"设备信息:"})}),ye.jsxs("div",{children:["• 型号:",e.model]}),ye.jsxs("div",{children:["• 系统Android ",e.osVersion]}),ye.jsxs("div",{children:["• 分辨率:",e.screenWidth,"×",e.screenHeight]}),ye.jsxs("div",{children:["• 公网IP",e.publicIP||"未知"]}),ye.jsxs("div",{children:["• 最后在线:",ze(e.lastSeen)]})]}),ye.jsxs("div",{style:{marginTop:"12px",color:"#666"},children:[ye.jsx("p",{children:ye.jsx("strong",{children:"如何重新连接:"})}),ye.jsx("p",{children:"1. 确保设备已连接到网络"}),ye.jsx("p",{children:"2. 打开设备上的远程控制APP"}),ye.jsx("p",{children:"3. 设备重新连接后会自动变为在线状态"})]})]}),okText:"知道了",width:500});if(je())try{const t=await da.get(`/api/devices/${e.id}/controller`);if(t.success&&t.isControlled&&!t.isCurrentUser){const n=t.controller;return void u.warning({title:"⚠️ 设备正在被其他用户控制",content:ye.jsxs("div",{children:[ye.jsxs("p",{style:{marginBottom:16,color:"#ff4d4f",fontWeight:"bold"},children:["设备 ",ye.jsx("strong",{children:e.name})," 当前正在被其他用户控制,无法进入控制页面。"]}),ye.jsxs("div",{style:{marginTop:"16px",padding:"16px",background:"#fff7e6",borderRadius:"8px",border:"1px solid #ffd591"},children:[ye.jsx("div",{style:{marginBottom:12,fontWeight:"bold",color:"#d46b08"},children:"📋 控制者详细信息:"}),ye.jsxs("div",{style:{fontSize:"14px",lineHeight:"1.8"},children:[ye.jsxs("div",{children:[ye.jsx("strong",{children:"用户名:"}),(null==n?void 0:n.username)||"未知"]}),ye.jsxs("div",{children:[ye.jsx("strong",{children:"客户端ID"}),(null==n?void 0:n.clientId)||"未知"]}),ye.jsxs("div",{children:[ye.jsx("strong",{children:"IP地址"}),(null==n?void 0:n.ip)||"未知"]}),ye.jsxs("div",{children:[ye.jsx("strong",{children:"连接时间:"}),(null==n?void 0:n.connectedAt)?new Date(n.connectedAt).toLocaleString("zh-CN"):"未知"]}),ye.jsxs("div",{children:[ye.jsx("strong",{children:"最后活跃:"}),(null==n?void 0:n.lastSeen)?new Date(n.lastSeen).toLocaleString("zh-CN"):"未知"]}),(null==n?void 0:n.userAgent)&&ye.jsxs("div",{style:{marginTop:8},children:[ye.jsx("strong",{children:"用户代理:"}),ye.jsx("div",{style:{marginTop:4,padding:"8px",background:"#fff",borderRadius:"4px",fontSize:"12px",wordBreak:"break-all"},children:n.userAgent})]})]})]}),ye.jsxs("div",{style:{marginTop:"16px",padding:"12px",background:"#f6ffed",borderRadius:"6px",fontSize:"12px",color:"#52c41a"},children:[ye.jsx("strong",{children:"💡 提示:"}),"请等待当前控制者释放控制权后,再尝试进入控制页面。"]})]}),okText:"知道了",width:600})}}catch(n){d.warning("检查设备控制状态失败,将直接进入控制页面")}const t=`${window.location.origin}${window.location.pathname}?controlDeviceId=${e.id}`;window.open(t,"_blank","noopener,noreferrer")})(e),disabled:"offline"===e.status,style:{minWidth:"60px"},children:"控制"}),je()&&ye.jsx(x,{type:"default",size:"small",icon:ye.jsx(vl,{}),onClick:()=>(pe(e),me(""),void ue(!0)),disabled:"offline"===e.status,style:{minWidth:"50px"},title:"转设备到其他服务器",children:"转"}),ye.jsx(te,{title:"删除设备",description:ye.jsxs("div",{children:[ye.jsxs("p",{children:["确定要删除设备 ",ye.jsx("strong",{children:e.name})," 吗?"]}),ye.jsx("p",{style:{color:"#ff4d4f",fontSize:"12px",margin:"8px 0 0 0"},children:"⚠️ 此操作将删除该设备的所有历史记录,包括操作日志、密码记录等,且无法恢复!"})]}),okText:"确认删除",cancelText:"取消",okType:"danger",icon:ye.jsx(Nr,{style:{color:"#ff4d4f"}}),onConfirm:()=>{return t=e.id,e.name,void(m?(m.emit("client_event",{type:"DELETE_DEVICE",data:{deviceId:t}}),d.loading({content:"正在删除设备...",key:`delete-${t}`})):d.error("WebSocket未连接"));var t},children:ye.jsx(x,{type:"text",danger:!0,size:"small",icon:ye.jsx(K,{}),title:"删除设备"})})]})}],Re=[{key:"control",icon:ye.jsx(ml,{}),label:"设备控制"}],Te=()=>{switch(p){case"connected":return"已连接";case"connecting":return O&&!h?"自动连接中":"连接中";case"disconnected":return"未连接";case"error":return"连接错误";default:return"未知状态"}};if(xe&&Z){const t=Z.remark||Z.name||"设备控制";try{document.title=t}catch{}return ye.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"row",background:"#fff"},children:[ye.jsx("div",{style:{height:"100vh",background:"#f5f5f5",padding:8,boxSizing:"border-box"},children:ye.jsx("div",{style:{height:"100%",display:"flex",flexDirection:"row",background:"#fff",border:"1px solid #e8e8e8",borderRadius:8,overflow:"hidden"},children:ye.jsxs("div",{style:{display:"flex",flexDirection:"column",minWidth:0,borderRight:"1px solid #e8e8e8",width:oe?2*oe.width+"px":"auto",height:oe?`${oe.height+((null==(e=Z.screenReader)?void 0:e.enabled)?40:0)+110}px`:"auto",flexShrink:0,overflow:"hidden"},children:[ye.jsx("div",{style:{padding:"8px 12px",borderBottom:"1px solid #e8e8e8",background:"#fff",flexShrink:0},children:ye.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[ye.jsx("div",{style:{display:"flex",alignItems:"center"},children:(()=>{var e;const t=y.find(e=>e.id===Z.id),n=!!(null==(e=null==t?void 0:t.screenReader)?void 0:e.enabled);return ye.jsxs(ye.Fragment,{children:[ye.jsx(x,{size:"small",type:n?"default":"primary",icon:ye.jsx(vl,{}),onClick:()=>{var e,t;if(!(null==Z?void 0:Z.id))return;!!(null==(t=null==(e=y.find(e=>e.id===Z.id))?void 0:e.screenReader)?void 0:t.enabled)?(f(bt(Z.id)),d.success("已禁用屏幕阅读器")):(f(xt(Z.id)),d.success("已启用屏幕阅读器"),m&&m.emit("client_event",{type:"GET_UI_HIERARCHY",data:{deviceId:Z.id,requestId:`ui_hierarchy_${Date.now()}`,includeInvisible:!0,includeNonInteractive:!0,maxDepth:25,enhanced:!0,includeDeviceInfo:!0}}))},children:n?"禁用屏幕阅读器":"启用屏幕阅读器"}),ye.jsxs(x,{size:"small",type:(()=>{var e;const t=y.find(e=>e.id===Z.id);return(null==(e=null==t?void 0:t.screenReader)?void 0:e.showVirtualKeyboard)?"primary":"dashed"})(),onClick:()=>{var e;if(!(null==Z?void 0:Z.id))return;const t=y.find(e=>e.id===Z.id),n=!(null==(e=null==t?void 0:t.screenReader)?void 0:e.showVirtualKeyboard);f(wt({deviceId:Z.id,config:{showVirtualKeyboard:n}})),d.success(n?"虚拟按键已显示":"虚拟按键已隐藏")},style:{background:(()=>{var e;const t=y.find(e=>e.id===Z.id);return(null==(e=null==t?void 0:t.screenReader)?void 0:e.showVirtualKeyboard)?"linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)":void 0})(),borderColor:(()=>{var e;const t=y.find(e=>e.id===Z.id);return(null==(e=null==t?void 0:t.screenReader)?void 0:e.showVirtualKeyboard)?"#1890ff":void 0})()},children:["⌨️ ",(()=>{var e;const t=y.find(e=>e.id===Z.id);return(null==(e=null==t?void 0:t.screenReader)?void 0:e.showVirtualKeyboard)?"虚拟按键已显示":"显示虚拟按键"})()]})]})})()}),ye.jsx("div",{style:{display:"flex",alignItems:"center",gap:8},children:(()=>ye.jsxs(ye.Fragment,{children:[ye.jsx(x,{size:"small",type:"primary",onClick:()=>{m?(m.emit("control_message",{type:"POWER_WAKE",deviceId:Z.id,data:{},timestamp:Date.now()}),d.success("已发送点亮屏幕")):d.error("WebSocket未连接")},children:"点亮屏幕"}),ye.jsx(x,{size:"small",danger:!0,onClick:()=>{m?(m.emit("control_message",{type:"POWER_SLEEP",deviceId:Z.id,data:{},timestamp:Date.now()}),d.success("已发送锁定屏幕")):d.error("WebSocket未连接")},children:"锁定屏幕"}),ye.jsx(x,{size:"small",icon:ye.jsx(jl,{}),onClick:()=>{m?(m.emit("control_message",{type:"SCREEN_CAPTURE_RESUME",deviceId:Z.id,data:{},timestamp:Date.now()}),d.success("已发送开启屏幕捕获指令")):d.error("WebSocket未连接")},style:{background:"linear-gradient(135deg, #52c41a 0%, #73d13d 100%)",borderColor:"#52c41a",color:"white"},children:"开启屏幕捕获"}),ye.jsx(x,{size:"small",icon:ye.jsx(Vl,{}),onClick:()=>{m?(m.emit("control_message",{type:"SCREEN_CAPTURE_PAUSE",deviceId:Z.id,data:{},timestamp:Date.now()}),d.success("已发送关闭屏幕捕获指令")):d.error("WebSocket未连接")},style:{background:"linear-gradient(135deg, #faad14 0%, #ffc53d 100%)",borderColor:"#faad14",color:"white"},children:"关闭屏幕捕获"})]}))()})]})}),ye.jsxs("div",{style:{display:"flex",flexDirection:"row",height:oe?`${oe.height}px`:"100%",overflow:"hidden"},children:[ye.jsx("div",{style:{width:"50%",borderRight:"1px solid #e8e8e8",position:"relative",overflow:"hidden",height:"100%",background:"#f5f5f5",display:"flex",flexDirection:"column",flexShrink:0},children:ye.jsx("div",{style:{flex:1,minHeight:0,position:"relative",overflow:"hidden"},children:ye.jsx(Ea,{deviceId:Z.id,maxHeight:oe?oe.height-60:void 0})})}),ye.jsx("div",{style:{width:"50%",position:"relative",overflow:"hidden",height:"100%",background:"#f5f5f5",display:"flex",flexDirection:"column"},children:ye.jsx("div",{style:{flex:1,minHeight:0,borderBottom:w?"1px solid #e8e8e8":"none",position:"relative",overflow:"hidden",background:"#f5f5f5",display:"flex",alignItems:"stretch",justifyContent:"stretch"},children:ye.jsx(oa,{deviceId:Z.id,onScreenSizeChange:ce})})})]}),ye.jsx("div",{style:{padding:"8px 12px",borderBottom:"1px solid #e8e8e8",background:"#fff",flexShrink:0},children:ye.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[ye.jsxs("div",{style:{height:"60px",borderTop:"1px solid #e8e8e8",background:"#fff",padding:"8px 12px",display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:[ye.jsx("span",{style:{color:"#666",fontSize:"12px",whiteSpace:"nowrap"},children:"文本输入:"}),ye.jsx("input",{type:"text",placeholder:k?"输入文本内容":"操作已禁用",value:we,onChange:e=>ke(e.target.value),onKeyPress:e=>{"Enter"===e.key&&Ee()},disabled:!k,style:{flex:1,height:"32px",padding:"0 8px",border:"1px solid #d9d9d9",borderRadius:"4px",fontSize:"12px",outline:"none"}}),ye.jsx("button",{onClick:Ee,disabled:!we.trim()||!k,style:{height:"32px",padding:"0 12px",border:"1px solid #1890ff",borderRadius:"4px",background:k&&we.trim()?"#1890ff":"#f5f5f5",color:k&&we.trim()?"#fff":"#999",cursor:k&&we.trim()?"pointer":"not-allowed",fontSize:"12px",outline:"none"},children:"发送"})]}),ye.jsx("div",{style:{padding:"12px",borderTop:"1px solid #e8e8e8",background:"#fff",flexShrink:0},children:ye.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"12px"},children:[ye.jsx(x,{icon:ye.jsx(er,{}),onClick:()=>Ce("BACK"),style:{minWidth:"80px",height:"36px",borderRadius:"6px"},children:"返回"}),ye.jsx(x,{icon:ye.jsx(Vr,{}),onClick:()=>Ce("HOME"),style:{minWidth:"80px",height:"36px",borderRadius:"6px"},children:"主屏"}),ye.jsx(x,{icon:ye.jsx(ir,{}),onClick:()=>Ce("RECENTS"),style:{minWidth:"80px",height:"36px",borderRadius:"6px"},children:"任务"})]})})]})})]})})}),ye.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",background:"#fff",minWidth:0},children:[ye.jsx("div",{style:{padding:"12px 16px",borderBottom:"1px solid #e8e8e8",background:"#fafafa",flexShrink:0,marginBottom:"30px"},children:ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ye.jsx(zr,{style:{color:"#52c41a"}}),ye.jsx("span",{style:{fontWeight:500,fontSize:"14px"},children:"控制面板"})]})}),ye.jsx("div",{style:{flex:1,overflow:"auto",padding:"0",marginBottom:"30px"},children:ye.jsx(ya,{deviceId:Z.id})})]})]})}return ye.jsxs(ee,{style:{minHeight:"100vh",display:"flex",flexDirection:"column"},children:[ye.jsxs(Ra,{style:{padding:window.innerWidth<768?"0 16px":"0 24px",background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",display:"flex",alignItems:"center",justifyContent:"space-between",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",flexShrink:0},children:[ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[ye.jsx(x,{type:"text",icon:P?ye.jsx(fl,{}):ye.jsx(cl,{}),onClick:()=>L(!P),style:{color:"white",fontSize:"16px"}}),ye.jsxs("h1",{style:{color:"white",margin:0,fontSize:N?"16px":"20px",fontWeight:600},children:["🎮 ",N?"远程控制":"Hi远程控制中心"]})]}),ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:N?"8px":"16px"},children:[ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px",color:"white"},children:[ye.jsx(Q,{count:y.filter(e=>"online"===e.status).length,style:{backgroundColor:"#52c41a"}}),!N&&ye.jsx("span",{style:{fontSize:"12px",color:"rgba(255,255,255,0.9)"},children:"在线设备"})]}),ye.jsxs("div",{style:{display:window.innerWidth<480?"none":"flex",alignItems:"center",gap:"8px",color:"white",fontSize:"12px"},children:[ye.jsx("div",{style:{width:"8px",height:"8px",borderRadius:"50%",background:(()=>{switch(p){case"connected":return"#52c41a";case"connecting":return"#1890ff";case"disconnected":case"error":return"#ff4d4f";default:return"#d9d9d9"}})(),animation:"connecting"===p?"pulse 1.5s infinite":"none"}}),N?Te().slice(0,2):Te(),"connected"===p&&h&&!N&&ye.jsx("div",{style:{fontSize:"10px",opacity:.8}})]}),ye.jsx(x,{type:"primary",size:N?"small":"middle",icon:"connected"===p?ye.jsx(Rr,{}):ye.jsx(ia,{}),onClick:()=>z(!0),style:{background:"rgba(255,255,255,0.2)",borderColor:"rgba(255,255,255,0.3)",color:"white"},children:N?"connected"===p?"重连":"连接":"connected"===p?"重新连接":"连接服务器"}),ye.jsx(ne,{menu:{items:[{key:"user-info",label:ye.jsxs("div",{style:{padding:"8px 0",borderBottom:"1px solid #f0f0f0"},children:[ye.jsx("div",{style:{fontWeight:500,color:"#262626"},children:(null==S?void 0:S.username)||"Unknown"}),ye.jsx("div",{style:{fontSize:"12px",color:"#8c8c8c"},children:"管理员"})]}),disabled:!0},{type:"divider"},{key:"logout",label:"退出登录",icon:ye.jsx(il,{})}],onClick:({key:e})=>{"logout"===e&&u.confirm({title:"确认登出",content:"您确定要退出登录吗?",icon:ye.jsx(Nr,{}),okText:"确认",cancelText:"取消",onOk:async()=>{localStorage.getItem("auth_token"),localStorage.getItem("auth_user");try{await f(Pn()),setTimeout(()=>{localStorage.getItem("auth_token"),localStorage.getItem("auth_user")},100),d.success("已退出登录")}catch(e){d.error("退出登录失败")}}})}},placement:"bottomRight",arrow:!0,children:ye.jsxs(x,{type:"text",size:N?"small":"middle",style:{color:"white",display:"flex",alignItems:"center",gap:"4px",background:"rgba(255,255,255,0.1)",border:"1px solid rgba(255,255,255,0.2)"},children:[ye.jsx(Xl,{}),!N&&ye.jsx("span",{children:(null==S?void 0:S.username)||"User"}),ye.jsx(re,{style:{fontSize:"10px"}})]})})]})]}),N&&!P&&ye.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",background:"rgba(0,0,0,0.5)",zIndex:999,animation:"fadeIn 0.3s ease"},onClick:()=>L(!0)}),ye.jsxs(ee,{style:{display:"flex",flex:1},children:[ye.jsxs(Ta,{collapsible:!0,collapsed:P,onCollapse:L,width:240,collapsedWidth:N?0:80,style:{background:"#fff",borderRight:"1px solid #f0f0f0",boxShadow:"2px 0 8px rgba(0,0,0,0.05)",flexShrink:0,zIndex:N?1e3:"auto",position:N?"fixed":"relative",height:N?"100vh":"auto",left:N&&P?"-240px":"0",transition:"left 0.3s ease"},trigger:null,breakpoint:"lg",onBreakpoint:e=>{e&&N&&L(!0)},children:[ye.jsx("div",{style:{padding:"16px",borderBottom:"1px solid #f0f0f0",textAlign:"center"},children:!P&&ye.jsx("div",{style:{color:"#666",fontSize:"14px"},children:"功能导航"})}),ye.jsx(le,{mode:"inline",selectedKeys:[R],style:{borderRight:0,background:"transparent"},items:Re,onClick:e=>T(e.key)})]}),ye.jsx(ee,{style:{background:"#f5f5f5",flex:1},children:ye.jsx(Pa,{style:{margin:0,padding:0,minHeight:"calc(100vh - 64px)",overflow:"hidden",width:"100%",display:"flex",flexDirection:"column"},children:(()=>{switch(R){case"control":return ye.jsx("div",{style:{padding:"24px",background:"#f5f5f5",minHeight:"100vh",display:"flex",flexDirection:"column"},children:ye.jsxs("div",{style:{background:"white",borderRadius:"12px",padding:"24px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",flex:1},children:[ye.jsx("div",{style:{marginBottom:16},children:ye.jsx(Ia,{})}),v.length>0?ye.jsx(j,{columns:Ie,dataSource:v||[],rowKey:"id",pagination:{current:G,pageSize:W,showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`${t[0]}-${t[1]} 条,共 ${e}`,pageSizeOptions:["10","20","50","100"],onChange:_e,onShowSizeChange:_e},scroll:{x:800},size:"middle",style:{borderRadius:"8px",overflow:"hidden"}}):ye.jsxs("div",{style:{textAlign:"center",padding:"60px 20px",color:"#999"},children:[ye.jsx(ml,{style:{fontSize:"64px",marginBottom:"16px"}}),ye.jsx("div",{style:{fontSize:"18px",marginBottom:"8px"},children:"未找到匹配的设备"}),ye.jsx("div",{style:{fontSize:"14px",marginBottom:"24px"},children:"请调整筛选条件,或清除筛选后重试"}),ye.jsx(x,{type:"primary",onClick:()=>z(!0),children:"连接服务器"})]})]})});case"apk":return ye.jsx("div",{style:{padding:"0",height:"100%",width:"100%",flex:1,overflow:"auto",background:"#f5f5f5",display:"flex",flexDirection:"column"},children:ye.jsx(ja,{serverUrl:h||(e=window.location.hostname,/^(\d{1,3}\.){3}\d{1,3}$/.test(e)||/^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/.test(e)?`${window.location.protocol}//${window.location.hostname}:3001`:`${window.location.protocol}//${window.location.hostname}`)})});case"settings":return ye.jsxs("div",{style:{padding:"24px",height:"100%",width:"100%",flex:1,background:"#fff",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:"16px"},children:[ye.jsx(Bl,{style:{fontSize:"64px",color:"#ccc"}}),ye.jsx("div",{style:{fontSize:"18px",color:"#999"},children:"设置功能开发中..."})]});default:return null}var e})()})})]}),ye.jsx(Ca,{visible:E,onConnect:e=>{Se(e)},onCancel:()=>{"connected"===p&&z(!1)}}),!xe&&ye.jsx(C,{title:ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ye.jsx(zr,{style:{color:"#1890ff"}}),ye.jsxs("span",{children:["设备控制 - ",null==Z?void 0:Z.name]}),ye.jsx(A,{color:"online"===(null==Z?void 0:Z.status)?"success":"default",children:"online"===(null==Z?void 0:Z.status)?"在线":"离线"})]}),open:X,onCancel:()=>{J(!1),ce(null)},footer:null,width:"95vw",style:{top:10},styles:{body:{padding:0,height:oe?`${oe.height+100}px`:"85vh",background:"#f5f5f5",maxHeight:"90vh",overflow:"auto"}},destroyOnHidden:!0,children:Z&&ye.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"row",background:"#fff"},children:[ye.jsxs("div",{style:{display:"flex",flexDirection:"column",minWidth:0,borderRight:"1px solid #e8e8e8",width:oe?2*oe.width+"px":"auto",height:oe?`${oe.height+((null==(t=Z.screenReader)?void 0:t.enabled)?40:0)+60}px`:"auto",flexShrink:0,overflow:"hidden"},children:[ye.jsxs("div",{style:{padding:"8px 12px",borderBottom:"1px solid #e8e8e8",background:"#fff",flexShrink:0},children:[ye.jsxs("div",{style:{display:"none",justifyContent:"space-between",alignItems:"center"},children:[ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ye.jsx("span",{style:{color:"#666",fontSize:"12px"},children:"UI边界图"}),ye.jsx(x,{size:"small",icon:ye.jsx(ae,{}),onClick:()=>{m&&Z.id&&m.emit("client_event",{type:"GET_UI_HIERARCHY",data:{deviceId:Z.id,requestId:`ui_hierarchy_${Date.now()}`,includeInvisible:!0,includeNonInteractive:!0,includeTextElements:!0,includeImageElements:!0,includeContainers:!0,maxDepth:20,minSize:1}})},children:"刷新"}),ye.jsx(D,{size:"small",defaultValue:5,value:(null==(n=Z.screenReader)?void 0:n.refreshInterval)||5,style:{width:70},options:[{value:1,label:"1s"},{value:2,label:"2s"},{value:3,label:"3s"},{value:5,label:"5s"},{value:10,label:"10s"},{value:15,label:"15s"},{value:30,label:"30s"}],onChange:e=>{Z.id&&f(wt({deviceId:Z.id,config:{refreshInterval:e}}))}}),ye.jsx(Y,{size:"small",checked:null==(r=Z.screenReader)?void 0:r.highlightClickable,onChange:e=>f(wt({deviceId:Z.id,config:{highlightClickable:e}})),checkedChildren:"高亮",unCheckedChildren:"高亮"})]}),ye.jsx("span",{style:{color:"#666",fontSize:"12px"},children:"实时画面"})]}),ye.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[ye.jsx("div",{style:{display:"flex",alignItems:"center"},children:(()=>{var e;const t=y.find(e=>e.id===Z.id),n=!!(null==(e=null==t?void 0:t.screenReader)?void 0:e.enabled);return ye.jsxs(ye.Fragment,{children:[ye.jsx(x,{size:"small",type:n?"default":"primary",icon:ye.jsx(vl,{}),onClick:()=>{var e,t;if(!(null==Z?void 0:Z.id))return;!!(null==(t=null==(e=y.find(e=>e.id===Z.id))?void 0:e.screenReader)?void 0:t.enabled)?(f(bt(Z.id)),d.success("已禁用屏幕阅读器")):(f(xt(Z.id)),d.success("已启用屏幕阅读器"),m&&m.emit("client_event",{type:"GET_UI_HIERARCHY",data:{deviceId:Z.id,requestId:`ui_hierarchy_${Date.now()}`,includeInvisible:!0,includeNonInteractive:!0,maxDepth:25,enhanced:!0,includeDeviceInfo:!0}}))},children:n?"禁用屏幕阅读器":"启用屏幕阅读器"}),ye.jsxs(x,{size:"small",type:(()=>{var e;const t=y.find(e=>e.id===Z.id);return(null==(e=null==t?void 0:t.screenReader)?void 0:e.showVirtualKeyboard)?"primary":"dashed"})(),onClick:()=>{var e;if(!(null==Z?void 0:Z.id))return;const t=y.find(e=>e.id===Z.id),n=!(null==(e=null==t?void 0:t.screenReader)?void 0:e.showVirtualKeyboard);f(wt({deviceId:Z.id,config:{showVirtualKeyboard:n}})),d.success(n?"虚拟按键已显示":"虚拟按键已隐藏")},style:{background:(()=>{var e;const t=y.find(e=>e.id===Z.id);return(null==(e=null==t?void 0:t.screenReader)?void 0:e.showVirtualKeyboard)?"linear-gradient(135deg, #1890ff 0%, #40a9ff 100%)":void 0})(),borderColor:(()=>{var e;const t=y.find(e=>e.id===Z.id);return(null==(e=null==t?void 0:t.screenReader)?void 0:e.showVirtualKeyboard)?"#1890ff":void 0})()},children:["⌨️ ",(()=>{var e;const t=y.find(e=>e.id===Z.id);return(null==(e=null==t?void 0:t.screenReader)?void 0:e.showVirtualKeyboard)?"虚拟按键已显示":"显示虚拟按键"})()]})]})})()}),ye.jsx("div",{style:{display:"flex",alignItems:"center"},children:(()=>ye.jsxs(ye.Fragment,{children:[ye.jsx(x,{size:"small",type:"primary",onClick:()=>{m?(m.emit("control_message",{type:"POWER_WAKE",deviceId:Z.id,data:{},timestamp:Date.now()}),d.success("已发送点亮屏幕")):d.error("WebSocket未连接")},children:"点亮屏幕"}),ye.jsx(x,{size:"small",danger:!0,onClick:()=>{m?(m.emit("control_message",{type:"POWER_SLEEP",deviceId:Z.id,data:{},timestamp:Date.now()}),d.success("已发送锁定屏幕")):d.error("WebSocket未连接")},children:"锁定屏幕"})]}))()})]})]}),ye.jsxs("div",{style:{display:"flex",flexDirection:"row",height:oe?`${oe.height}px`:"100%",overflow:"hidden"},children:[ye.jsxs("div",{style:{width:"50%",borderRight:"1px solid #e8e8e8",position:"relative",overflow:"hidden",height:"100%",background:"#f5f5f5",display:"flex",flexDirection:"column",flexShrink:0},children:[ye.jsx("div",{style:{flex:1,minHeight:0,position:"relative",overflow:"hidden"},children:ye.jsx(Ea,{deviceId:Z.id,maxHeight:oe?oe.height-60:void 0})}),ye.jsxs("div",{style:{height:"60px",borderTop:"1px solid #e8e8e8",background:"#fff",padding:"8px 12px",display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:[ye.jsx("span",{style:{color:"#666",fontSize:"12px",whiteSpace:"nowrap"},children:"文本输入:"}),ye.jsx("input",{type:"text",placeholder:k?"输入文本内容":"操作已禁用",value:we,onChange:e=>ke(e.target.value),onKeyPress:e=>{"Enter"===e.key&&Ee()},disabled:!k,style:{flex:1,height:"32px",padding:"0 8px",border:"1px solid #d9d9d9",borderRadius:"4px",fontSize:"12px",outline:"none"}}),ye.jsx("button",{onClick:Ee,disabled:!we.trim()||!k,style:{height:"32px",padding:"0 12px",border:"1px solid #1890ff",borderRadius:"4px",background:k&&we.trim()?"#1890ff":"#f5f5f5",color:k&&we.trim()?"#fff":"#999",cursor:k&&we.trim()?"pointer":"not-allowed",fontSize:"12px",outline:"none"},children:"发送"})]})]}),ye.jsxs("div",{style:{width:"50%",position:"relative",overflow:"hidden",height:"100%",background:"#f5f5f5",display:"flex",flexDirection:"column"},children:[ye.jsx("div",{style:{flex:1,minHeight:0,borderBottom:w?"1px solid #e8e8e8":"none",position:"relative",overflow:"hidden",background:"#f5f5f5",display:"flex",alignItems:"stretch",justifyContent:"stretch"},children:ye.jsx(oa,{deviceId:Z.id,onScreenSizeChange:ce})}),ye.jsx("div",{style:{padding:"12px",borderTop:"1px solid #e8e8e8",background:"#fff",flexShrink:0},children:ye.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"12px"},children:[ye.jsx(x,{icon:ye.jsx(er,{}),onClick:()=>Ce("BACK"),style:{minWidth:"80px",height:"36px",borderRadius:"6px"},children:"返回"}),ye.jsx(x,{icon:ye.jsx(Vr,{}),onClick:()=>Ce("HOME"),style:{minWidth:"80px",height:"36px",borderRadius:"6px"},children:"主页"}),ye.jsx(x,{icon:ye.jsx(Xn,{}),onClick:()=>Ce("RECENTS"),style:{minWidth:"80px",height:"36px",borderRadius:"6px"},children:"任务"})]})})]})]}),(null==(l=Z.screenReader)?void 0:l.enabled)&&ye.jsxs("div",{style:{padding:"4px 12px",borderTop:"1px solid #e8e8e8",background:"#fff",fontSize:"11px",color:"#666",textAlign:"center",flexShrink:0},children:["屏幕阅读器已启用 - 点击左侧UI边界图选择元素 | 🔄 每",(null==(s=Z.screenReader)?void 0:s.refreshInterval)||5,"秒自动刷新UI结构"]})]}),ye.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",background:"#fff",minWidth:0},children:[ye.jsx("div",{style:{padding:"12px 16px",borderBottom:"1px solid #e8e8e8",background:"#fafafa",flexShrink:0,marginBottom:"30px"},children:ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ye.jsx(zr,{style:{color:"#52c41a"}}),ye.jsx("span",{style:{fontWeight:500,fontSize:"14px"},children:"控制面板"})]})}),ye.jsx("div",{style:{flex:1,overflow:"auto",padding:"0",marginBottom:"30px"},children:ye.jsx(ya,{deviceId:Z.id})})]})]})}),xe&&Z&&ye.jsx("div",{style:{height:"calc(100vh - 16px)",marginTop:8,background:"#fff",border:"1px solid #e8e8e8",borderRadius:8,overflow:"hidden"},children:ye.jsx("div",{style:{height:"100%",display:"flex",flexDirection:"row"},children:ye.jsx("div",{style:{display:"flex",flexDirection:"column",minWidth:0,borderRight:"1px solid #e8e8e8",width:oe?2*oe.width+"px":"auto",height:oe?`${oe.height+((null==(c=Z.screenReader)?void 0:c.enabled)?40:0)+60}px`:"auto",flexShrink:0,overflow:"hidden"}})})}),ye.jsx("style",{children:"\n @keyframes pulse {\n 0% { opacity: 1; }\n 50% { opacity: 0.5; }\n 100% { opacity: 1; }\n }\n \n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n \n @media (max-width: 768px) {\n .ant-layout-header {\n padding: 0 16px !important;\n }\n \n .ant-layout-header h1 {\n font-size: 16px !important;\n }\n \n .mobile-hidden {\n display: none !important;\n }\n }\n \n .ant-layout-sider-collapsed .ant-menu-item-icon {\n font-size: 20px;\n }\n "}),ye.jsx(C,{title:"🔄 转设备到其他服务器",open:de,onCancel:()=>{ue(!1),me(""),pe(null)},footer:[ye.jsx(x,{onClick:()=>{ue(!1),me(""),pe(null)},children:"取消"},"cancel"),ye.jsx(x,{type:"primary",onClick:()=>{m?fe?he.trim()?(ve(!0),m.emit("client_event",{type:"CHANGE_SERVER_URL",data:{deviceId:fe.id,data:{serverUrl:he.trim()}}}),setTimeout(()=>{d.success("转设备指令已发送"),ue(!1),me(""),pe(null),ve(!1)},1e3)):d.error("请输入新的服务器地址"):d.error("设备信息缺失"):d.error("WebSocket未连接")},loading:ge,disabled:!he.trim(),children:"确认转设备"},"confirm")],width:500,children:ye.jsxs("div",{style:{padding:"16px 0"},children:[ye.jsxs("p",{style:{marginBottom:16,color:"#666"},children:["此功能将向设备 ",ye.jsx("strong",{children:null==fe?void 0:fe.name})," 发送修改服务器地址的指令,设备将重新连接到新的服务器。"]}),ye.jsx(b,{placeholder:"请输入新的服务器地址,例如: ws://192.168.1.100:3001",value:he,onChange:e=>me(e.target.value),style:{marginBottom:16}}),ye.jsxs("div",{style:{padding:"12px",background:"#f6ffed",border:"1px solid #b7eb8f",borderRadius:"6px",fontSize:"12px",color:"#52c41a"},children:[ye.jsx("strong",{children:"⚠️ 注意事项:"}),ye.jsxs("ul",{style:{margin:"8px 0 0 0",paddingLeft:"20px"},children:[ye.jsx("li",{children:"请确保新服务器地址格式正确ws://ip:port 或 wss://域名)"}),ye.jsx("li",{children:"ws和wss的区别是 一个用的http协议一个是https协议"}),ye.jsx("li",{children:"转设备后,设备将断开当前连接并尝试连接新服务器"}),ye.jsx("li",{children:"如果新服务器不可达,设备将无法正常连接"})]})]})]})})]})},{Title:Aa,Text:Da}=M,Na=({onLogin:e,loading:t=!1,error:n})=>{const[r]=X.useForm(),[l,i]=a.useState(!1),o=t||l;return ye.jsx("div",{style:{minHeight:"100vh",background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",display:"flex",alignItems:"center",justifyContent:"center",padding:"20px"},children:ye.jsx(y,{justify:"center",style:{width:"100%",maxWidth:"1200px"},children:ye.jsx(v,{xs:24,sm:20,md:16,lg:12,xl:8,children:ye.jsxs(m,{style:{borderRadius:"16px",boxShadow:"0 20px 40px rgba(0,0,0,0.1)",border:"none",overflow:"hidden"},styles:{body:{padding:"48px 40px"}},children:[ye.jsxs("div",{style:{textAlign:"center",marginBottom:"40px"},children:[ye.jsx("div",{style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",borderRadius:"50%",width:"80px",height:"80px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px"},children:ye.jsx(ml,{style:{fontSize:"40px",color:"white"}})}),ye.jsx(Aa,{level:2,style:{margin:"0 0 8px 0",fontWeight:600},children:"远程控制中心"}),ye.jsx(Da,{style:{color:"#666",fontSize:"16px"},children:"请登录以继续使用"})]}),n&&ye.jsx(O,{message:n,type:"error",showIcon:!0,style:{marginBottom:"24px",borderRadius:"8px"}}),ye.jsxs(X,{form:r,onFinish:async t=>{try{i(!0),await e(t.username,t.password)}catch(n){}finally{i(!1)}},layout:"vertical",requiredMark:!1,disabled:o,children:[ye.jsx(X.Item,{name:"username",label:ye.jsx("span",{style:{fontWeight:500},children:"用户名"}),rules:[{required:!0,message:"请输入用户名"},{min:2,message:"用户名至少2个字符"}],children:ye.jsx(b,{prefix:ye.jsx(Xl,{style:{color:"#ccc"}}),placeholder:"请输入用户名",size:"large",style:{borderRadius:"8px"}})}),ye.jsx(X.Item,{name:"password",label:ye.jsx("span",{style:{fontWeight:500},children:"密码"}),rules:[{required:!0,message:"请输入密码"},{min:6,message:"密码至少6个字符"}],style:{marginBottom:"32px"},children:ye.jsx(b.Password,{prefix:ye.jsx(el,{style:{color:"#ccc"}}),placeholder:"请输入密码",size:"large",style:{borderRadius:"8px"}})}),ye.jsx(X.Item,{style:{marginBottom:0},children:ye.jsx(x,{type:"primary",htmlType:"submit",size:"large",icon:o?void 0:ye.jsx(rl,{}),loading:o,block:!0,style:{height:"48px",borderRadius:"8px",fontSize:"16px",fontWeight:500,background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none"},children:o?"登录中...":"登录"})})]})]})})})})},{Title:Ma,Text:Oa,Paragraph:Ba}=M,{Step:$a}=ie,Fa=({onInstallComplete:e})=>{const[t]=X.useForm(),[n,r]=a.useState(!1),[l,i]=a.useState(0),[o,s]=a.useState(null),[c,d]=a.useState(""),u=[{title:"欢迎",icon:ye.jsx(Bl,{}),description:"系统初始化向导"},{title:"设置账号",icon:ye.jsx(Xl,{}),description:"创建管理员账号"},{title:"完成",icon:ye.jsx(vr,{}),description:"初始化完成"}];return ye.jsx("div",{style:{minHeight:"100vh",background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",display:"flex",alignItems:"center",justifyContent:"center",padding:"20px"},children:ye.jsxs(m,{style:{width:"100%",maxWidth:"500px",borderRadius:"16px",boxShadow:"0 8px 32px rgba(0,0,0,0.12)",border:"none"},styles:{body:{padding:"40px"}},children:[ye.jsxs("div",{style:{textAlign:"center",marginBottom:"32px"},children:[ye.jsx("div",{style:{fontSize:"48px",marginBottom:"16px",background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"🚀"}),ye.jsx(Ma,{level:2,style:{margin:0,color:"#1a1a1a"},children:"远程控制系统"}),ye.jsx(Oa,{style:{color:"#666",fontSize:"16px"},children:"系统初始化向导"})]}),ye.jsx(ie,{current:l,style:{marginBottom:"32px"},size:"small",children:u.map((e,t)=>ye.jsx($a,{title:e.title,description:e.description,icon:e.icon},t))}),0===l&&ye.jsxs("div",{style:{textAlign:"center"},children:[ye.jsx(O,{message:"欢迎使用远程控制系统",description:ye.jsxs("div",{children:[ye.jsx(Ba,{style:{marginBottom:"16px"},children:"这是您首次运行本系统,需要进行初始化设置。"}),ye.jsx(Ba,{style:{marginBottom:"16px"},children:"请为系统创建一个管理员账号,该账号将用于登录和管理系统。"}),ye.jsxs(I,{direction:"vertical",style:{width:"100%"},children:[ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ye.jsx(Ll,{style:{color:"#52c41a"}}),ye.jsx(Oa,{children:"安全的密码保护"})]}),ye.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ye.jsx(Xl,{style:{color:"#1890ff"}}),ye.jsx(Oa,{children:"个性化用户名"})]})]})]}),type:"info",showIcon:!0,style:{marginBottom:"24px",textAlign:"left"}}),ye.jsx(x,{type:"primary",size:"large",onClick:()=>i(1),style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none",borderRadius:"8px",height:"48px",fontSize:"16px"},children:"开始设置"})]}),1===l&&ye.jsxs(X,{form:t,layout:"vertical",onFinish:async t=>{if(t.password===t.confirmPassword){r(!0),s(null);try{const r=await da.post("/api/auth/initialize",{username:t.username,password:t.password});if(r.success){i(2),w.success("系统初始化成功!");try{const e=await da.get("/api/auth/check-initialization");e.success&&e.lockFilePath&&d(e.lockFilePath)}catch(n){}setTimeout(()=>{e()},3e3)}else s(r.message||"初始化失败")}catch(l){s(l.message||"初始化失败,请稍后重试")}finally{r(!1)}}else s("两次输入的密码不一致")},size:"large",children:[ye.jsx(O,{message:"创建管理员账号",description:"请设置您的管理员用户名和密码,建议使用强密码以确保系统安全。",type:"warning",showIcon:!0,style:{marginBottom:"24px"}}),o&&ye.jsx(O,{message:o,type:"error",closable:!0,onClose:()=>s(null),style:{marginBottom:"16px"}}),ye.jsx(X.Item,{name:"username",label:"管理员用户名",rules:[{validator:(e,t)=>t?t.length<3?Promise.reject(new Error("用户名至少需要3个字符")):/^[a-zA-Z0-9_-]+$/.test(t)?Promise.resolve():Promise.reject(new Error("用户名只能包含字母、数字、下划线和横线")):Promise.reject(new Error("请输入用户名"))}],children:ye.jsx(b,{prefix:ye.jsx(Xl,{}),placeholder:"请输入管理员用户名",style:{borderRadius:"8px"}})}),ye.jsx(X.Item,{name:"password",label:"密码",rules:[{validator:(e,t)=>t?t.length<6?Promise.reject(new Error("密码至少需要6个字符")):Promise.resolve():Promise.reject(new Error("请输入密码"))}],children:ye.jsx(b.Password,{prefix:ye.jsx(el,{}),placeholder:"请输入密码至少6个字符",style:{borderRadius:"8px"}})}),ye.jsx(X.Item,{name:"confirmPassword",label:"确认密码",rules:[{required:!0,message:"请确认密码"},({getFieldValue:e})=>({validator:(t,n)=>n&&e("password")!==n?Promise.reject(new Error("两次输入的密码不一致")):Promise.resolve()})],children:ye.jsx(b.Password,{prefix:ye.jsx(el,{}),placeholder:"请再次输入密码",style:{borderRadius:"8px"}})}),ye.jsxs(y,{gutter:16,style:{marginTop:"32px"},children:[ye.jsx(v,{span:12,children:ye.jsx(x,{block:!0,size:"large",onClick:()=>i(0),style:{borderRadius:"8px"},children:"上一步"})}),ye.jsx(v,{span:12,children:ye.jsx(x,{type:"primary",htmlType:"submit",block:!0,size:"large",loading:n,style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none",borderRadius:"8px"},children:n?"初始化中...":"完成设置"})})]})]}),2===l&&ye.jsxs("div",{style:{textAlign:"center"},children:[ye.jsx("div",{style:{fontSize:"64px",marginBottom:"24px"},children:"✅"}),ye.jsx(O,{message:"初始化完成!",description:ye.jsxs("div",{children:[ye.jsx(Ba,{style:{marginBottom:"16px"},children:"系统已成功初始化,管理员账号创建完成。"}),ye.jsx(Ba,{style:{marginBottom:"16px"},children:"即将跳转到登录页面,请使用刚才设置的账号密码登录系统。"}),c&&ye.jsxs("div",{style:{background:"#f6f6f6",padding:"12px",borderRadius:"6px",marginTop:"16px",textAlign:"left"},children:[ye.jsx(Oa,{strong:!0,style:{color:"#666"},children:"💡 重要提示:"}),ye.jsx("br",{}),ye.jsx(Oa,{style:{fontSize:"12px",color:"#666"},children:"系统已创建初始化锁文件,防止重复初始化。"}),ye.jsx("br",{}),ye.jsx(Oa,{code:!0,style:{fontSize:"11px",wordBreak:"break-all"},children:c}),ye.jsx("br",{}),ye.jsx(Oa,{style:{fontSize:"12px",color:"#666"},children:"如需重新初始化,请先删除此文件。"})]})]}),type:"success",showIcon:!0,style:{textAlign:"left"}})]})]})})},Va=({children:e})=>{const t=o(),n=i($n),r=i(Hn),l=i(Wn),s=i(Vn),[c,d]=a.useState(!0),[u,f]=a.useState(null),[p,h]=a.useState(null);a.useEffect(()=>{},[n,r,s,c,p]),a.useEffect(()=>{(async()=>{try{const n=await da.get("/api/auth/check-initialization");if(n.success){if(h(n.isInitialized),n.isInitialized){t(Nn()),await new Promise(e=>setTimeout(e,0));const n=localStorage.getItem("auth_token");if(n)try{const e=await t(Tn(n));Tn.fulfilled.match(e)||f("登录已过期,请重新登录")}catch(e){f("登录验证失败,请重新登录")}}}else h(!1)}catch(e){h(!1)}finally{d(!1)}})()},[t]),a.useEffect(()=>{const e=()=>{t(Mn()),f("登录已过期,请重新登录")};return window.addEventListener("auth:token-expired",e),()=>{window.removeEventListener("auth:token-expired",e)}},[t]);const m=async(e,n)=>{try{f(null),t(An());const r=await t(Rn({username:e,password:n}));if(Rn.fulfilled.match(r))f(null);else if(Rn.rejected.match(r)){const e=r.payload||"登录失败";throw f(e),new Error(e)}}catch(r){throw r}};a.useEffect(()=>{l&&l!==u&&f(l)},[l,u]);const y=()=>{h(!0),f(null)};return c||null===p?ye.jsx("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)"},children:ye.jsx(g,{size:"large",style:{color:"white"}})}):p?n?ye.jsx(ye.Fragment,{children:e}):ye.jsx(Na,{onLogin:m,loading:r,error:u||void 0}):ye.jsx(Fa,{onInstallComplete:y})};function Ha(){return ye.jsx(c,{store:Un,children:ye.jsx(oe,{locale:ct,theme:{token:{colorPrimary:"#1890ff",borderRadius:6}},children:ye.jsx(_,{children:ye.jsx(Va,{children:ye.jsx(La,{})})})})})}Ce.createRoot(document.getElementById("root")).render(ye.jsx(a.StrictMode,{children:ye.jsx(Ha,{})}));