diff --git a/.DS_Store b/.DS_Store index 43f9de3..a388623 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/README.md b/README.md new file mode 100644 index 0000000..7959ce4 --- /dev/null +++ b/README.md @@ -0,0 +1,69 @@ +# React + TypeScript + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules: + +```js +export default tseslint.config([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + + // Remove tseslint.configs.recommended and replace with this + ...tseslint.configs.recommendedTypeChecked, + // Alternatively, use this for stricter rules + ...tseslint.configs.strictTypeChecked, + // Optionally, add this for stylistic rules + ...tseslint.configs.stylisticTypeChecked, + + // Other configs... + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` + +You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules: + +```js +// eslint.config.js +import reactX from 'eslint-plugin-react-x' +import reactDom from 'eslint-plugin-react-dom' + +export default tseslint.config([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + // Enable lint rules for React + reactX.configs['recommended-typescript'], + // Enable lint rules for React DOM + reactDom.configs.recommended, + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` diff --git a/assets/.DS_Store b/assets/.DS_Store deleted file mode 100644 index bab0724..0000000 Binary files a/assets/.DS_Store and /dev/null differ diff --git a/assets/css/index.css b/assets/css/index.css deleted file mode 100644 index af656ae..0000000 --- a/assets/css/index.css +++ /dev/null @@ -1,135 +0,0 @@ -#bid-extension { - margin: 0; - padding: 0; - background-color: #121212; - color: #e0e0e0; - font-family: "Segoe UI", Tahoma, sans-serif; - width: 500px; -} - -#bid-extension .container { - display: flex; - flex-direction: column; - gap: 10px; - width: 100%; -} - -#bid-extension h2 { - text-align: center; - margin-bottom: 12px; - font-size: 22px; - color: #ffffff; -} - -#bid-extension label { - font-size: 13px; - margin-bottom: 2px; -} - -#bid-extension input, -#bid-extension select, -#bid-extension textarea { - padding: 4px 8px; - background-color: #1e1e1e; - color: #ffffff; - border: 1px solid #333; - border-radius: 6px; - font-size: 14px; - width: 100%; - box-sizing: border-box; - height: 32px; -} - -#bid-extension input:focus, -#bid-extension select:focus, -#bid-extension textarea:focus { - border-color: #4a90e2; - outline: none; -} - -#bid-extension .row { - display: flex; - gap: 10px; -} - -#bid-extension .col { - flex: 1; - display: flex; - flex-direction: column; -} - -#bid-extension .inputs .col { - padding-left: 0px; - padding-right: 0px; -} - -#bid-extension button { - margin-top: 10px; - background: linear-gradient(to right, #4a90e2, #357abd); - color: white; - border: none; - border-radius: 6px; - font-size: 15px; - height: 36px; - cursor: pointer; - transition: background 0.3s ease; -} - -#bid-extension button:hover { - background: linear-gradient(to right, #3a78c2, #2d5faa); -} - -#bid-extension #errorMessage { - margin-top: 2px; - font-size: 11px; -} - -#bid-extension .wrapper { - position: relative; -} - -#bid-extension .key-container { - position: absolute; - top: 20px; - left: 20px; -} - -#bid-extension .key-container a { - color: #ffffff; - font-size: 14px; - padding: 4px 10px; - background: linear-gradient(to right, #4a90e2, #357abd); - border-radius: 6px; - text-decoration: none; - display: inline-block; - transition: all 0.3s ease; - box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); -} - -#bid-extension .key-container a:hover { - background: linear-gradient(to right, #3a78c2, #2d5faa); - box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3); - transform: translateY(-2px); -} - -#bid-extension .inputs { - display: flex; - flex-direction: column; - gap: 8px; -} - -#bid-extension svg { - width: 14px; - height: 14px; -} - -#bid-extension .sub-col { - display: flex; - align-items: center; - gap: 10px; -} - -#toggle-bid-extension svg { - width: 20px; - height: 20px; -} diff --git a/background.js b/background.js deleted file mode 100644 index 9e69979..0000000 --- a/background.js +++ /dev/null @@ -1,4 +0,0 @@ -chrome.action.onClicked.addListener((tab) => { - // Lấy URL của tab hiện tại - console.log("Current URL:", tab.url); -}); diff --git a/bid-extension/background.js b/bid-extension/background.js new file mode 100644 index 0000000..0a6be08 --- /dev/null +++ b/bid-extension/background.js @@ -0,0 +1 @@ +const r="https://esearch.danielvu.com";async function i(){(await chrome.tabs.query({})).some(t=>t.url&&t.url.startsWith(r))||chrome.tabs.create({url:r,active:!1})}chrome.runtime.onInstalled.addListener(()=>{chrome.alarms.create("checkTab",{periodInMinutes:.25})});chrome.alarms.onAlarm.addListener(e=>{e.name==="checkTab"&&i()});let a="";chrome.runtime.onMessage.addListener((e,c,t)=>{e.type==="HIGHLIGHT_TEXT"&&(a=e.text),e.type==="GET_HIGHLIGHT"&&t({text:a}),console.log(e),e.type==="SEARCH"&&chrome.tabs.create({url:e.url},n=>{chrome.scripting.executeScript({target:{tabId:n.id},func:()=>{}})})}); diff --git a/bid-extension/content.js b/bid-extension/content.js new file mode 100644 index 0000000..f7c70de --- /dev/null +++ b/bid-extension/content.js @@ -0,0 +1,27 @@ +let t=null,d="";const a=()=>{const e="bid-extensions";if(document.getElementById(e))return;const o=document.createElement("div");o.id=e,document.body.appendChild(o);const s=document.createElement("script");s.src=chrome.runtime.getURL("inject-ui.js"),s.type="module",document.body.appendChild(s),window.addEventListener("message",i=>{if(i.source!==window)return;const n=i.data;n?.direction==="to-content"&&(n.type==="SAVE_KEY"&&chrome.storage.local.set({key:n.payload},()=>{console.log("✅ Key saved:",n.payload)}),n.type==="GET_KEY"&&chrome.storage.local.get(["key"],r=>{window.postMessage({direction:"from-content",type:"GET_KEY_RESULT",value:r.key},"*")}))})};document.addEventListener("selectionchange",()=>{d=window?.getSelection()?.toString().trim()});document.addEventListener("mousedown",e=>{t&&!t.contains(e.target)&&(t.style.display="none")});document.addEventListener("mouseup",e=>{d&&setTimeout(()=>{l(e.pageX,e.pageY)},10)});document.addEventListener("keydown",function(e){e.ctrlKey&&e.code==="Space"&&(e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}))});function p(){t=document.createElement("div"),t.innerHTML=` +
l(Q,H))iel(Te,Q)?(z[ee]=Te,z[ie]=H,ee=ie):(z[ee]=Q,z[ae]=H,ee=ae);else if(ie l(Te,H))z[ee]=Te,z[ie]=H,ee=ie;else break e}}return K}function l(z,K){var H=z.sortIndex-K.sortIndex;return H!==0?H:z.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,d=f.now();e.unstable_now=function(){return f.now()-d}}var g=[],h=[],v=1,p=null,b=3,S=!1,_=!1,E=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function U(z){for(var K=a(h);K!==null;){if(K.callback===null)o(h);else if(K.startTime<=z)o(h),K.sortIndex=K.expirationTime,n(g,K);else break;K=a(h)}}function D(z){if(E=!1,U(z),!_)if(a(g)!==null)_=!0,X||(X=!0,oe());else{var K=a(h);K!==null&&me(D,K.startTime-z)}}var X=!1,V=-1,F=5,le=-1;function ge(){return T?!0:!(e.unstable_now()-le z&&ge());){var ee=p.callback;if(typeof ee=="function"){p.callback=null,b=p.priorityLevel;var M=ee(p.expirationTime<=z);if(z=e.unstable_now(),typeof M=="function"){p.callback=M,U(z),K=!0;break t}p===a(g)&&o(g),U(z)}else o(g);p=a(g)}if(p!==null)K=!0;else{var q=a(h);q!==null&&me(D,q.startTime-z),K=!1}}break e}finally{p=null,b=H,S=!1}K=void 0}}finally{K?oe():X=!1}}}var oe;if(typeof C=="function")oe=function(){C(he)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,pe=de.port2;de.port1.onmessage=he,oe=function(){pe.postMessage(null)}}else oe=function(){N(he,0)};function me(z,K){V=N(function(){z(e.unstable_now())},K)}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(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125 ee?(z.sortIndex=H,n(h,z),a(g)===null&&z===a(h)&&(E?(R(V),V=-1):E=!0,me(D,H-ee))):(z.sortIndex=M,n(g,z),_||S||(_=!0,X||(X=!0,oe()))),z},e.unstable_shouldYield=ge,e.unstable_wrapCallback=function(z){var K=b;return function(){var H=b;b=K;try{return z.apply(this,arguments)}finally{b=H}}}}(Ed)),Ed}var hy;function pE(){return hy||(hy=1,_d.exports=hE()),_d.exports}var Td={exports:{}},Be={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var py;function gE(){if(py)return Be;py=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.iterator;function b(M){return M===null||typeof M!="object"?null:(M=p&&M[p]||M["@@iterator"],typeof M=="function"?M:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,E={};function T(M,q,ae){this.props=M,this.context=q,this.refs=E,this.updater=ae||S}T.prototype.isReactComponent={},T.prototype.setState=function(M,q){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,q,"setState")},T.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function N(){}N.prototype=T.prototype;function R(M,q,ae){this.props=M,this.context=q,this.refs=E,this.updater=ae||S}var C=R.prototype=new N;C.constructor=R,_(C,T.prototype),C.isPureReactComponent=!0;var U=Array.isArray,D={H:null,A:null,T:null,S:null,V:null},X=Object.prototype.hasOwnProperty;function V(M,q,ae,Q,ie,Te){return ae=Te.ref,{$$typeof:e,type:M,key:q,ref:ae!==void 0?ae:null,props:Te}}function F(M,q){return V(M.type,q,void 0,void 0,void 0,M.props)}function le(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function ge(M){var q={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(ae){return q[ae]})}var he=/\/+/g;function oe(M,q){return typeof M=="object"&&M!==null&&M.key!=null?ge(""+M.key):q.toString(36)}function de(){}function pe(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(de,de):(M.status="pending",M.then(function(q){M.status==="pending"&&(M.status="fulfilled",M.value=q)},function(q){M.status==="pending"&&(M.status="rejected",M.reason=q)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function me(M,q,ae,Q,ie){var Te=typeof M;(Te==="undefined"||Te==="boolean")&&(M=null);var ce=!1;if(M===null)ce=!0;else switch(Te){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(M.$$typeof){case e:case n:ce=!0;break;case v:return ce=M._init,me(ce(M._payload),q,ae,Q,ie)}}if(ce)return ie=ie(M),ce=Q===""?"."+oe(M,0):Q,U(ie)?(ae="",ce!=null&&(ae=ce.replace(he,"$&/")+"/"),me(ie,q,ae,"",function(Qe){return Qe})):ie!=null&&(le(ie)&&(ie=F(ie,ae+(ie.key==null||M&&M.key===ie.key?"":(""+ie.key).replace(he,"$&/")+"/")+ce)),q.push(ie)),1;ce=0;var ye=Q===""?".":Q+":";if(U(M))for(var Ne=0;Ne "u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Od.exports=vE(),Od.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var by;function yE(){if(by)return cs;by=1;var e=pE(),n=Mm(),a=p0();function o(t){var r="https://react.dev/errors/"+t;if(1 M||(t.current=ee[M],ee[M]=null,M--)}function Q(t,r){M++,ee[M]=t.current,t.current=r}var ie=q(null),Te=q(null),ce=q(null),ye=q(null);function Ne(t,r){switch(Q(ce,r),Q(Te,t),Q(ie,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?Hv(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=Hv(r),t=Pv(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}ae(ie),Q(ie,t)}function Qe(){ae(ie),ae(Te),ae(ce)}function yt(t){t.memoizedState!==null&&Q(ye,t);var r=ie.current,i=Pv(r,t.type);r!==i&&(Q(Te,t),Q(ie,i))}function Qt(t){Te.current===t&&(ae(ie),ae(Te)),ye.current===t&&(ae(ye),as._currentValue=H)}var Zt=Object.prototype.hasOwnProperty,un=e.unstable_scheduleCallback,xn=e.unstable_cancelCallback,Wr=e.unstable_shouldYield,Xr=e.unstable_requestPaint,At=e.unstable_now,Ca=e.unstable_getCurrentPriorityLevel,It=e.unstable_ImmediatePriority,k=e.unstable_UserBlockingPriority,Y=e.unstable_NormalPriority,I=e.unstable_LowPriority,fe=e.unstable_IdlePriority,ue=e.log,se=e.unstable_setDisableYieldValue,ve=null,ke=null;function He(t){if(typeof ue=="function"&&se(t),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(ve,t)}catch{}}var Ie=Math.clz32?Math.clz32:Nn,rn=Math.log,an=Math.LN2;function Nn(t){return t>>>=0,t===0?32:31-(rn(t)/an|0)|0}var zn=256,jn=4194304;function cn(t){var r=t&42;if(r!==0)return r;switch(t&-t){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 t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Sn(t,r,i){var s=t.pendingLanes;if(s===0)return 0;var c=0,m=t.suspendedLanes,y=t.pingedLanes;t=t.warmLanes;var w=s&134217727;return w!==0?(s=w&~m,s!==0?c=cn(s):(y&=w,y!==0?c=cn(y):i||(i=w&~t,i!==0&&(c=cn(i))))):(w=s&~m,w!==0?c=cn(w):y!==0?c=cn(y):i||(i=s&~t,i!==0&&(c=cn(i)))),c===0?0:r!==0&&r!==c&&(r&m)===0&&(m=c&-c,i=r&-r,m>=i||m===32&&(i&4194048)!==0)?r:c}function Gn(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function ze(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qe(){var t=zn;return zn<<=1,(zn&4194048)===0&&(zn=256),t}function Fe(){var t=jn;return jn<<=1,(jn&62914560)===0&&(jn=4194304),t}function fn(t){for(var r=[],i=0;31>i;i++)r.push(t);return r}function Ct(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function wr(t,r,i,s,c,m){var y=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var w=t.entanglements,A=t.expirationTimes,Z=t.hiddenUpdates;for(i=y&~i;0)":-1 c||A[s]!==Z[c]){var J=` +`+A[s].replace(" at new "," at ");return t.displayName&&J.includes(" ")&&(J=J.replace(" ",t.displayName)),J}while(1<=s&&0<=c);break}}}finally{pc=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?fo(i):""}function oS(t){switch(t.tag){case 26:case 27:case 5:return fo(t.type);case 16:return fo("Lazy");case 13:return fo("Suspense");case 19:return fo("SuspenseList");case 0:case 15:return gc(t.type,!1);case 11:return gc(t.type.render,!1);case 1:return gc(t.type,!0);case 31:return fo("Activity");default:return""}}function Nh(t){try{var r="";do r+=oS(t),t=t.return;while(t);return r}catch(i){return` +Error generating stack: `+i.message+` +`+i.stack}}function Un(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function zh(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function iS(t){var r=zh(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),s=""+t[r];if(!t.hasOwnProperty(r)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,m=i.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return c.call(this)},set:function(y){s=""+y,m.call(this,y)}}),Object.defineProperty(t,r,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(y){s=""+y},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Ks(t){t._valueTracker||(t._valueTracker=iS(t))}function jh(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var i=r.getValue(),s="";return t&&(s=zh(t)?t.checked?"true":"false":t.value),t=s,t!==i?(r.setValue(t),!0):!1}function Qs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var sS=/[\n"\\]/g;function Bn(t){return t.replace(sS,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function vc(t,r,i,s,c,m,y,w){t.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.type=y:t.removeAttribute("type"),r!=null?y==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+Un(r)):t.value!==""+Un(r)&&(t.value=""+Un(r)):y!=="submit"&&y!=="reset"||t.removeAttribute("value"),r!=null?yc(t,y,Un(r)):i!=null?yc(t,y,Un(i)):s!=null&&t.removeAttribute("value"),c==null&&m!=null&&(t.defaultChecked=!!m),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.name=""+Un(w):t.removeAttribute("name")}function Uh(t,r,i,s,c,m,y,w){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),r!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||r!=null))return;i=i!=null?""+Un(i):"",r=r!=null?""+Un(r):i,w||r===t.value||(t.value=r),t.defaultValue=r}s=s??c,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=w?t.checked:!!s,t.defaultChecked=!!s,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(t.name=y)}function yc(t,r,i){r==="number"&&Qs(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function mo(t,r,i,s){if(t=t.options,r){r={};for(var c=0;c "u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_c=!1;if(Er)try{var yi={};Object.defineProperty(yi,"passive",{get:function(){_c=!0}}),window.addEventListener("test",yi,yi),window.removeEventListener("test",yi,yi)}catch{_c=!1}var Kr=null,Ec=null,el=null;function Vh(){if(el)return el;var t,r=Ec,i=r.length,s,c="value"in Kr?Kr.value:Kr.textContent,m=c.length;for(t=0;t=xi),Wh=" ",Xh=!1;function Kh(t,r){switch(t){case"keyup":return jS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var vo=!1;function BS(t,r){switch(t){case"compositionend":return Qh(r);case"keypress":return r.which!==32?null:(Xh=!0,Wh);case"textInput":return t=r.data,t===Wh&&Xh?null:t;default:return null}}function LS(t,r){if(vo)return t==="compositionend"||!Cc&&Kh(t,r)?(t=Vh(),el=Ec=Kr=null,vo=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1 =r)return{node:i,offset:r-t};t=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=ip(i)}}function lp(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?lp(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function up(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Qs(t.document);r instanceof t.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)t=r.contentWindow;else break;r=Qs(t.document)}return r}function kc(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var FS=Er&&"documentMode"in document&&11>=document.documentMode,yo=null,Nc=null,Ti=null,zc=!1;function cp(t,r,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;zc||yo==null||yo!==Qs(s)||(s=yo,"selectionStart"in s&&kc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ti&&Ei(Ti,s)||(Ti=s,s=$l(Nc,"onSelect"),0 >=y,c-=y,Or=1<<32-Ie(r)+c|i< m?m:8;var y=z.T,w={};z.T=w,wf(t,!1,r,i);try{var A=c(),Z=z.S;if(Z!==null&&Z(w,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var J=t_(A,s);Pi(t,r,J,An(t))}else Pi(t,r,s,An(t))}catch(ne){Pi(t,r,{then:function(){},status:"rejected",reason:ne},An())}finally{K.p=m,z.T=y}}function i_(){}function yf(t,r,i,s){if(t.tag!==5)throw Error(o(476));var c=fg(t).queue;cg(t,c,r,H,i===null?i_:function(){return dg(t),i(s)})}function fg(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dr,lastRenderedState:H},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dr,lastRenderedState:i},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function dg(t){var r=fg(t).next.queue;Pi(t,r,{},An())}function bf(){return Jt(as)}function mg(){return Rt().memoizedState}function hg(){return Rt().memoizedState}function s_(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var i=An();t=ea(i);var s=ta(r,t,i);s!==null&&(Cn(s,r,i),zi(s,r,i)),r={cache:Ic()},t.payload=r;return}r=r.return}}function l_(t,r,i){var s=An();i={lane:s,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},El(t)?gg(r,i):(i=Lc(t,r,i,s),i!==null&&(Cn(i,t,s),vg(i,r,s)))}function pg(t,r,i){var s=An();Pi(t,r,i,s)}function Pi(t,r,i,s){var c={lane:s,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(El(t))gg(r,c);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var y=r.lastRenderedState,w=m(y,i);if(c.hasEagerState=!0,c.eagerState=w,_n(w,y))return sl(t,r,c,0),ut===null&&il(),!1}catch{}finally{}if(i=Lc(t,r,c,s),i!==null)return Cn(i,t,s),vg(i,r,s),!0}return!1}function wf(t,r,i,s){if(s={lane:2,revertLane:Qf(),action:s,hasEagerState:!1,eagerState:null,next:null},El(t)){if(r)throw Error(o(479))}else r=Lc(t,i,s,2),r!==null&&Cn(r,t,2)}function El(t){var r=t.alternate;return t===Pe||r!==null&&r===Pe}function gg(t,r){Ao=yl=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function vg(t,r,i){if((i&4194048)!==0){var s=r.lanes;s&=t.pendingLanes,i|=s,r.lanes=i,We(t,i)}}var Tl={readContext:Jt,use:wl,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useLayoutEffect:Et,useInsertionEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useSyncExternalStore:Et,useId:Et,useHostTransitionStatus:Et,useFormState:Et,useActionState:Et,useOptimistic:Et,useMemoCache:Et,useCacheRefresh:Et},yg={readContext:Jt,use:wl,useCallback:function(t,r){return mn().memoizedState=[t,r===void 0?null:r],t},useContext:Jt,useEffect:tg,useImperativeHandle:function(t,r,i){i=i!=null?i.concat([t]):null,_l(4194308,4,og.bind(null,r,t),i)},useLayoutEffect:function(t,r){return _l(4194308,4,t,r)},useInsertionEffect:function(t,r){_l(4,2,t,r)},useMemo:function(t,r){var i=mn();r=r===void 0?null:r;var s=t();if(Ya){He(!0);try{t()}finally{He(!1)}}return i.memoizedState=[s,r],s},useReducer:function(t,r,i){var s=mn();if(i!==void 0){var c=i(r);if(Ya){He(!0);try{i(r)}finally{He(!1)}}}else c=r;return s.memoizedState=s.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},s.queue=t,t=t.dispatch=l_.bind(null,Pe,t),[s.memoizedState,t]},useRef:function(t){var r=mn();return t={current:t},r.memoizedState=t},useState:function(t){t=hf(t);var r=t.queue,i=pg.bind(null,Pe,r);return r.dispatch=i,[t.memoizedState,i]},useDebugValue:gf,useDeferredValue:function(t,r){var i=mn();return vf(i,t,r)},useTransition:function(){var t=hf(!1);return t=cg.bind(null,Pe,t.queue,!0,!1),mn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,i){var s=Pe,c=mn();if(Ke){if(i===void 0)throw Error(o(407));i=i()}else{if(i=r(),ut===null)throw Error(o(349));(Ge&124)!==0||Hp(s,r,i)}c.memoizedState=i;var m={value:i,getSnapshot:r};return c.queue=m,tg(Zp.bind(null,s,m,t),[t]),s.flags|=2048,Do(9,Sl(),Pp.bind(null,s,m,i,r),null),i},useId:function(){var t=mn(),r=ut.identifierPrefix;if(Ke){var i=Mr,s=Or;i=(s&~(1<<32-Ie(s)-1)).toString(32)+i,r="«"+r+"R"+i,i=bl++,0De?(Ft=Ee,Ee=null):Ft=Ee.sibling;var Xe=$(B,Ee,P[De],te);if(Xe===null){Ee===null&&(Ee=Ft);break}t&&Ee&&Xe.alternate===null&&r(B,Ee),j=m(Xe,j,De),Ye===null?be=Xe:Ye.sibling=Xe,Ye=Xe,Ee=Ft}if(De===P.length)return i(B,Ee),Ke&&Ua(B,De),be;if(Ee===null){for(;De De?(Ft=Ee,Ee=null):Ft=Ee.sibling;var ya=$(B,Ee,Xe.value,te);if(ya===null){Ee===null&&(Ee=Ft);break}t&&Ee&&ya.alternate===null&&r(B,Ee),j=m(ya,j,De),Ye===null?be=ya:Ye.sibling=ya,Ye=ya,Ee=Ft}if(Xe.done)return i(B,Ee),Ke&&Ua(B,De),be;if(Ee===null){for(;!Xe.done;De++,Xe=P.next())Xe=ne(B,Xe.value,te),Xe!==null&&(j=m(Xe,j,De),Ye===null?be=Xe:Ye.sibling=Xe,Ye=Xe);return Ke&&Ua(B,De),be}for(Ee=s(Ee);!Xe.done;De++,Xe=P.next())Xe=G(Ee,B,De,Xe.value,te),Xe!==null&&(t&&Xe.alternate!==null&&Ee.delete(Xe.key===null?De:Xe.key),j=m(Xe,j,De),Ye===null?be=Xe:Ye.sibling=Xe,Ye=Xe);return t&&Ee.forEach(function(cE){return r(B,cE)}),Ke&&Ua(B,De),be}function at(B,j,P,te){if(typeof P=="object"&&P!==null&&P.type===_&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case b:e:{for(var be=P.key;j!==null;){if(j.key===be){if(be=P.type,be===_){if(j.tag===7){i(B,j.sibling),te=c(j,P.props.children),te.return=B,B=te;break e}}else if(j.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===F&&wg(be)===j.type){i(B,j.sibling),te=c(j,P.props),Yi(te,P),te.return=B,B=te;break e}i(B,j);break}else r(B,j);j=j.sibling}P.type===_?(te=za(P.props.children,B.mode,te,P.key),te.return=B,B=te):(te=ul(P.type,P.key,P.props,null,B.mode,te),Yi(te,P),te.return=B,B=te)}return y(B);case S:e:{for(be=P.key;j!==null;){if(j.key===be)if(j.tag===4&&j.stateNode.containerInfo===P.containerInfo&&j.stateNode.implementation===P.implementation){i(B,j.sibling),te=c(j,P.children||[]),te.return=B,B=te;break e}else{i(B,j);break}else r(B,j);j=j.sibling}te=Zc(P,B.mode,te),te.return=B,B=te}return y(B);case F:return be=P._init,P=be(P._payload),at(B,j,P,te)}if(me(P))return Re(B,j,P,te);if(oe(P)){if(be=oe(P),typeof be!="function")throw Error(o(150));return P=be.call(P),Ae(B,j,P,te)}if(typeof P.then=="function")return at(B,j,Ol(P),te);if(P.$$typeof===C)return at(B,j,ml(B,P),te);Ml(B,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,j!==null&&j.tag===6?(i(B,j.sibling),te=c(j,P),te.return=B,B=te):(i(B,j),te=Pc(P,B.mode,te),te.return=B,B=te),y(B)):i(B,j)}return function(B,j,P,te){try{Zi=0;var be=at(B,j,P,te);return Ro=null,be}catch(Ee){if(Ee===ki||Ee===pl)throw Ee;var Ye=En(29,Ee,null,B.mode);return Ye.lanes=te,Ye.return=B,Ye}finally{}}}var ko=xg(!0),Sg=xg(!1),Yn=q(null),ar=null;function ra(t){var r=t.alternate;Q(Lt,Lt.current&1),Q(Yn,t),ar===null&&(r===null||Mo.current!==null||r.memoizedState!==null)&&(ar=t)}function _g(t){if(t.tag===22){if(Q(Lt,Lt.current),Q(Yn,t),ar===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(ar=t)}}else aa()}function aa(){Q(Lt,Lt.current),Q(Yn,Yn.current)}function Rr(t){ae(Yn),ar===t&&(ar=null),ae(Lt)}var Lt=q(0);function Al(t){for(var r=t;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||cd(i)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function xf(t,r,i,s){r=t.memoizedState,i=i(s,r),i=i==null?r:v({},r,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Sf={enqueueSetState:function(t,r,i){t=t._reactInternals;var s=An(),c=ea(s);c.payload=r,i!=null&&(c.callback=i),r=ta(t,c,s),r!==null&&(Cn(r,t,s),zi(r,t,s))},enqueueReplaceState:function(t,r,i){t=t._reactInternals;var s=An(),c=ea(s);c.tag=1,c.payload=r,i!=null&&(c.callback=i),r=ta(t,c,s),r!==null&&(Cn(r,t,s),zi(r,t,s))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var i=An(),s=ea(i);s.tag=2,r!=null&&(s.callback=r),r=ta(t,s,i),r!==null&&(Cn(r,t,i),zi(r,t,i))}};function Eg(t,r,i,s,c,m,y){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,m,y):r.prototype&&r.prototype.isPureReactComponent?!Ei(i,s)||!Ei(c,m):!0}function Tg(t,r,i,s){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,s),r.state!==t&&Sf.enqueueReplaceState(r,r.state,null)}function Va(t,r){var i=r;if("ref"in r){i={};for(var s in r)s!=="ref"&&(i[s]=r[s])}if(t=t.defaultProps){i===r&&(i=v({},i));for(var c in t)i[c]===void 0&&(i[c]=t[c])}return i}var Cl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Og(t){Cl(t)}function Mg(t){console.error(t)}function Ag(t){Cl(t)}function Dl(t,r){try{var i=t.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(s){setTimeout(function(){throw s})}}function Cg(t,r,i){try{var s=t.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function _f(t,r,i){return i=ea(i),i.tag=3,i.payload={element:null},i.callback=function(){Dl(t,r)},i}function Dg(t){return t=ea(t),t.tag=3,t}function Rg(t,r,i,s){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var m=s.value;t.payload=function(){return c(m)},t.callback=function(){Cg(r,i,s)}}var y=i.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(t.callback=function(){Cg(r,i,s),typeof c!="function"&&(ca===null?ca=new Set([this]):ca.add(this));var w=s.stack;this.componentDidCatch(s.value,{componentStack:w!==null?w:""})})}function c_(t,r,i,s,c){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(r=i.alternate,r!==null&&Ci(r,i,c,!0),i=Yn.current,i!==null){switch(i.tag){case 13:return ar===null?Gf():i.alternate===null&&wt===0&&(wt=3),i.flags&=-257,i.flags|=65536,i.lanes=c,s===Kc?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([s]):r.add(s),Wf(t,s,c)),!1;case 22:return i.flags|=65536,s===Kc?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([s]):i.add(s)),Wf(t,s,c)),!1}throw Error(o(435,i.tag))}return Wf(t,s,c),Gf(),!1}if(Ke)return r=Yn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=c,s!==$c&&(t=Error(o(422),{cause:s}),Ai(Ln(t,i)))):(s!==$c&&(r=Error(o(423),{cause:s}),Ai(Ln(r,i))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,s=Ln(s,i),c=_f(t.stateNode,s,c),ef(t,c),wt!==4&&(wt=2)),!1;var m=Error(o(520),{cause:s});if(m=Ln(m,i),Wi===null?Wi=[m]:Wi.push(m),wt!==4&&(wt=2),r===null)return!0;s=Ln(s,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,t=c&-c,i.lanes|=t,t=_f(i.stateNode,s,t),ef(i,t),!1;case 1:if(r=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(ca===null||!ca.has(m))))return i.flags|=65536,c&=-c,i.lanes|=c,c=Dg(c),Rg(c,t,i,s),ef(i,c),!1}i=i.return}while(i!==null);return!1}var kg=Error(o(461)),$t=!1;function Wt(t,r,i,s){r.child=t===null?Sg(r,null,i,s):ko(r,t.child,i,s)}function Ng(t,r,i,s,c){i=i.render;var m=r.ref;if("ref"in s){var y={};for(var w in s)w!=="ref"&&(y[w]=s[w])}else y=s;return Pa(r),s=of(t,r,i,y,m,c),w=sf(),t!==null&&!$t?(lf(t,r,c),kr(t,r,c)):(Ke&&w&&Yc(r),r.flags|=1,Wt(t,r,s,c),r.child)}function zg(t,r,i,s,c){if(t===null){var m=i.type;return typeof m=="function"&&!Hc(m)&&m.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=m,jg(t,r,m,s,c)):(t=ul(i.type,null,s,r,r.mode,c),t.ref=r.ref,t.return=r,r.child=t)}if(m=t.child,!Rf(t,c)){var y=m.memoizedProps;if(i=i.compare,i=i!==null?i:Ei,i(y,s)&&t.ref===r.ref)return kr(t,r,c)}return r.flags|=1,t=Tr(m,s),t.ref=r.ref,t.return=r,r.child=t}function jg(t,r,i,s,c){if(t!==null){var m=t.memoizedProps;if(Ei(m,s)&&t.ref===r.ref)if($t=!1,r.pendingProps=s=m,Rf(t,c))(t.flags&131072)!==0&&($t=!0);else return r.lanes=t.lanes,kr(t,r,c)}return Ef(t,r,i,s,c)}function Ug(t,r,i){var s=r.pendingProps,c=s.children,m=t!==null?t.memoizedState:null;if(s.mode==="hidden"){if((r.flags&128)!==0){if(s=m!==null?m.baseLanes|i:i,t!==null){for(c=r.child=t.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;r.childLanes=m&~s}else r.childLanes=0,r.child=null;return Bg(t,r,s,i)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&hl(r,m!==null?m.cachePool:null),m!==null?jp(r,m):nf(),_g(r);else return r.lanes=r.childLanes=536870912,Bg(t,r,m!==null?m.baseLanes|i:i,i)}else m!==null?(hl(r,m.cachePool),jp(r,m),aa(),r.memoizedState=null):(t!==null&&hl(r,null),nf(),aa());return Wt(t,r,c,i),r.child}function Bg(t,r,i,s){var c=Xc();return c=c===null?null:{parent:Bt._currentValue,pool:c},r.memoizedState={baseLanes:i,cachePool:c},t!==null&&hl(r,null),nf(),_g(r),t!==null&&Ci(t,r,s,!0),null}function Rl(t,r){var i=r.ref;if(i===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(t===null||t.ref!==i)&&(r.flags|=4194816)}}function Ef(t,r,i,s,c){return Pa(r),i=of(t,r,i,s,void 0,c),s=sf(),t!==null&&!$t?(lf(t,r,c),kr(t,r,c)):(Ke&&s&&Yc(r),r.flags|=1,Wt(t,r,i,c),r.child)}function Lg(t,r,i,s,c,m){return Pa(r),r.updateQueue=null,i=Bp(r,s,i,c),Up(t),s=sf(),t!==null&&!$t?(lf(t,r,m),kr(t,r,m)):(Ke&&s&&Yc(r),r.flags|=1,Wt(t,r,i,m),r.child)}function Hg(t,r,i,s,c){if(Pa(r),r.stateNode===null){var m=So,y=i.contextType;typeof y=="object"&&y!==null&&(m=Jt(y)),m=new i(s,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Sf,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=s,m.state=r.memoizedState,m.refs={},Qc(r),y=i.contextType,m.context=typeof y=="object"&&y!==null?Jt(y):So,m.state=r.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(xf(r,i,y,s),m.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(y=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),y!==m.state&&Sf.enqueueReplaceState(m,m.state,null),Ui(r,s,m,c),ji(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),s=!0}else if(t===null){m=r.stateNode;var w=r.memoizedProps,A=Va(i,w);m.props=A;var Z=m.context,J=i.contextType;y=So,typeof J=="object"&&J!==null&&(y=Jt(J));var ne=i.getDerivedStateFromProps;J=typeof ne=="function"||typeof m.getSnapshotBeforeUpdate=="function",w=r.pendingProps!==w,J||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w||Z!==y)&&Tg(r,m,s,y),Jr=!1;var $=r.memoizedState;m.state=$,Ui(r,s,m,c),ji(),Z=r.memoizedState,w||$!==Z||Jr?(typeof ne=="function"&&(xf(r,i,ne,s),Z=r.memoizedState),(A=Jr||Eg(r,i,A,s,$,Z,y))?(J||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=s,r.memoizedState=Z),m.props=s,m.state=Z,m.context=y,s=A):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),s=!1)}else{m=r.stateNode,Jc(t,r),y=r.memoizedProps,J=Va(i,y),m.props=J,ne=r.pendingProps,$=m.context,Z=i.contextType,A=So,typeof Z=="object"&&Z!==null&&(A=Jt(Z)),w=i.getDerivedStateFromProps,(Z=typeof w=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(y!==ne||$!==A)&&Tg(r,m,s,A),Jr=!1,$=r.memoizedState,m.state=$,Ui(r,s,m,c),ji();var G=r.memoizedState;y!==ne||$!==G||Jr||t!==null&&t.dependencies!==null&&dl(t.dependencies)?(typeof w=="function"&&(xf(r,i,w,s),G=r.memoizedState),(J=Jr||Eg(r,i,J,s,$,G,A)||t!==null&&t.dependencies!==null&&dl(t.dependencies))?(Z||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,G,A),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,G,A)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||y===t.memoizedProps&&$===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&$===t.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=G),m.props=s,m.state=G,m.context=A,s=J):(typeof m.componentDidUpdate!="function"||y===t.memoizedProps&&$===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&$===t.memoizedState||(r.flags|=1024),s=!1)}return m=s,Rl(t,r),s=(r.flags&128)!==0,m||s?(m=r.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,t!==null&&s?(r.child=ko(r,t.child,null,c),r.child=ko(r,null,i,c)):Wt(t,r,i,c),r.memoizedState=m.state,t=r.child):t=kr(t,r,c),t}function Pg(t,r,i,s){return Mi(),r.flags|=256,Wt(t,r,i,s),r.child}var Tf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Of(t){return{baseLanes:t,cachePool:Mp()}}function Mf(t,r,i){return t=t!==null?t.childLanes&~i:0,r&&(t|=Vn),t}function Zg(t,r,i){var s=r.pendingProps,c=!1,m=(r.flags&128)!==0,y;if((y=m)||(y=t!==null&&t.memoizedState===null?!1:(Lt.current&2)!==0),y&&(c=!0,r.flags&=-129),y=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ke){if(c?ra(r):aa(),Ke){var w=bt,A;if(A=w){e:{for(A=w,w=rr;A.nodeType!==8;){if(!w){w=null;break e}if(A=Xn(A.nextSibling),A===null){w=null;break e}}w=A}w!==null?(r.memoizedState={dehydrated:w,treeContext:ja!==null?{id:Or,overflow:Mr}:null,retryLane:536870912,hydrationErrors:null},A=En(18,null,null,0),A.stateNode=w,A.return=r,r.child=A,on=r,bt=null,A=!0):A=!1}A||La(r)}if(w=r.memoizedState,w!==null&&(w=w.dehydrated,w!==null))return cd(w)?r.lanes=32:r.lanes=536870912,null;Rr(r)}return w=s.children,s=s.fallback,c?(aa(),c=r.mode,w=kl({mode:"hidden",children:w},c),s=za(s,c,i,null),w.return=r,s.return=r,w.sibling=s,r.child=w,c=r.child,c.memoizedState=Of(i),c.childLanes=Mf(t,y,i),r.memoizedState=Tf,s):(ra(r),Af(r,w))}if(A=t.memoizedState,A!==null&&(w=A.dehydrated,w!==null)){if(m)r.flags&256?(ra(r),r.flags&=-257,r=Cf(t,r,i)):r.memoizedState!==null?(aa(),r.child=t.child,r.flags|=128,r=null):(aa(),c=s.fallback,w=r.mode,s=kl({mode:"visible",children:s.children},w),c=za(c,w,i,null),c.flags|=2,s.return=r,c.return=r,s.sibling=c,r.child=s,ko(r,t.child,null,i),s=r.child,s.memoizedState=Of(i),s.childLanes=Mf(t,y,i),r.memoizedState=Tf,r=c);else if(ra(r),cd(w)){if(y=w.nextSibling&&w.nextSibling.dataset,y)var Z=y.dgst;y=Z,s=Error(o(419)),s.stack="",s.digest=y,Ai({value:s,source:null,stack:null}),r=Cf(t,r,i)}else if($t||Ci(t,r,i,!1),y=(i&t.childLanes)!==0,$t||y){if(y=ut,y!==null&&(s=i&-i,s=(s&42)!==0?1:Ce(s),s=(s&(y.suspendedLanes|i))!==0?0:s,s!==0&&s!==A.retryLane))throw A.retryLane=s,xo(t,s),Cn(y,t,s),kg;w.data==="$?"||Gf(),r=Cf(t,r,i)}else w.data==="$?"?(r.flags|=192,r.child=t.child,r=null):(t=A.treeContext,bt=Xn(w.nextSibling),on=r,Ke=!0,Ba=null,rr=!1,t!==null&&(Pn[Zn++]=Or,Pn[Zn++]=Mr,Pn[Zn++]=ja,Or=t.id,Mr=t.overflow,ja=r),r=Af(r,s.children),r.flags|=4096);return r}return c?(aa(),c=s.fallback,w=r.mode,A=t.child,Z=A.sibling,s=Tr(A,{mode:"hidden",children:s.children}),s.subtreeFlags=A.subtreeFlags&65011712,Z!==null?c=Tr(Z,c):(c=za(c,w,i,null),c.flags|=2),c.return=r,s.return=r,s.sibling=c,r.child=s,s=c,c=r.child,w=t.child.memoizedState,w===null?w=Of(i):(A=w.cachePool,A!==null?(Z=Bt._currentValue,A=A.parent!==Z?{parent:Z,pool:Z}:A):A=Mp(),w={baseLanes:w.baseLanes|i,cachePool:A}),c.memoizedState=w,c.childLanes=Mf(t,y,i),r.memoizedState=Tf,s):(ra(r),i=t.child,t=i.sibling,i=Tr(i,{mode:"visible",children:s.children}),i.return=r,i.sibling=null,t!==null&&(y=r.deletions,y===null?(r.deletions=[t],r.flags|=16):y.push(t)),r.child=i,r.memoizedState=null,i)}function Af(t,r){return r=kl({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function kl(t,r){return t=En(22,t,null,r),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Cf(t,r,i){return ko(r,t.child,null,i),t=Af(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Yg(t,r,i){t.lanes|=r;var s=t.alternate;s!==null&&(s.lanes|=r),Fc(t.return,r,i)}function Df(t,r,i,s,c){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:c}:(m.isBackwards=r,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=i,m.tailMode=c)}function Vg(t,r,i){var s=r.pendingProps,c=s.revealOrder,m=s.tail;if(Wt(t,r,s.children,i),s=Lt.current,(s&2)!==0)s=s&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Yg(t,i,r);else if(t.tag===19)Yg(t,i,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}s&=1}switch(Q(Lt,s),c){case"forwards":for(i=r.child,c=null;i!==null;)t=i.alternate,t!==null&&Al(t)===null&&(c=i),i=i.sibling;i=c,i===null?(c=r.child,r.child=null):(c=i.sibling,i.sibling=null),Df(r,!1,c,i,m);break;case"backwards":for(i=null,c=r.child,r.child=null;c!==null;){if(t=c.alternate,t!==null&&Al(t)===null){r.child=c;break}t=c.sibling,c.sibling=i,i=c,c=t}Df(r,!0,i,null,m);break;case"together":Df(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function kr(t,r,i){if(t!==null&&(r.dependencies=t.dependencies),ua|=r.lanes,(i&r.childLanes)===0)if(t!==null){if(Ci(t,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(o(153));if(r.child!==null){for(t=r.child,i=Tr(t,t.pendingProps),r.child=i,i.return=r;t.sibling!==null;)t=t.sibling,i=i.sibling=Tr(t,t.pendingProps),i.return=r;i.sibling=null}return r.child}function Rf(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&dl(t)))}function f_(t,r,i){switch(r.tag){case 3:Ne(r,r.stateNode.containerInfo),Qr(r,Bt,t.memoizedState.cache),Mi();break;case 27:case 5:yt(r);break;case 4:Ne(r,r.stateNode.containerInfo);break;case 10:Qr(r,r.type,r.memoizedProps.value);break;case 13:var s=r.memoizedState;if(s!==null)return s.dehydrated!==null?(ra(r),r.flags|=128,null):(i&r.child.childLanes)!==0?Zg(t,r,i):(ra(r),t=kr(t,r,i),t!==null?t.sibling:null);ra(r);break;case 19:var c=(t.flags&128)!==0;if(s=(i&r.childLanes)!==0,s||(Ci(t,r,i,!1),s=(i&r.childLanes)!==0),c){if(s)return Vg(t,r,i);r.flags|=128}if(c=r.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Q(Lt,Lt.current),s)break;return null;case 22:case 23:return r.lanes=0,Ug(t,r,i);case 24:Qr(r,Bt,t.memoizedState.cache)}return kr(t,r,i)}function $g(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps)$t=!0;else{if(!Rf(t,i)&&(r.flags&128)===0)return $t=!1,f_(t,r,i);$t=(t.flags&131072)!==0}else $t=!1,Ke&&(r.flags&1048576)!==0&&wp(r,fl,r.index);switch(r.lanes=0,r.tag){case 16:e:{t=r.pendingProps;var s=r.elementType,c=s._init;if(s=c(s._payload),r.type=s,typeof s=="function")Hc(s)?(t=Va(s,t),r.tag=1,r=Hg(null,r,s,t,i)):(r.tag=0,r=Ef(null,r,s,t,i));else{if(s!=null){if(c=s.$$typeof,c===U){r.tag=11,r=Ng(null,r,s,t,i);break e}else if(c===V){r.tag=14,r=zg(null,r,s,t,i);break e}}throw r=pe(s)||s,Error(o(306,r,""))}}return r;case 0:return Ef(t,r,r.type,r.pendingProps,i);case 1:return s=r.type,c=Va(s,r.pendingProps),Hg(t,r,s,c,i);case 3:e:{if(Ne(r,r.stateNode.containerInfo),t===null)throw Error(o(387));s=r.pendingProps;var m=r.memoizedState;c=m.element,Jc(t,r),Ui(r,s,null,i);var y=r.memoizedState;if(s=y.cache,Qr(r,Bt,s),s!==m.cache&&Gc(r,[Bt],i,!0),ji(),s=y.element,m.isDehydrated)if(m={element:s,isDehydrated:!1,cache:y.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=Pg(t,r,s,i);break e}else if(s!==c){c=Ln(Error(o(424)),r),Ai(c),r=Pg(t,r,s,i);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(bt=Xn(t.firstChild),on=r,Ke=!0,Ba=null,rr=!0,i=Sg(r,null,s,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Mi(),s===c){r=kr(t,r,i);break e}Wt(t,r,s,i)}r=r.child}return r;case 26:return Rl(t,r),t===null?(i=Iv(r.type,null,r.pendingProps,null))?r.memoizedState=i:Ke||(i=r.type,t=r.pendingProps,s=Fl(ce.current).createElement(i),s[ft]=r,s[lt]=t,Kt(s,i,t),Vt(s),r.stateNode=s):r.memoizedState=Iv(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return yt(r),t===null&&Ke&&(s=r.stateNode=qv(r.type,r.pendingProps,ce.current),on=r,rr=!0,c=bt,ma(r.type)?(fd=c,bt=Xn(s.firstChild)):bt=c),Wt(t,r,r.pendingProps.children,i),Rl(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ke&&((c=s=bt)&&(s=H_(s,r.type,r.pendingProps,rr),s!==null?(r.stateNode=s,on=r,bt=Xn(s.firstChild),rr=!1,c=!0):c=!1),c||La(r)),yt(r),c=r.type,m=r.pendingProps,y=t!==null?t.memoizedProps:null,s=m.children,sd(c,m)?s=null:y!==null&&sd(c,y)&&(r.flags|=32),r.memoizedState!==null&&(c=of(t,r,r_,null,null,i),as._currentValue=c),Rl(t,r),Wt(t,r,s,i),r.child;case 6:return t===null&&Ke&&((t=i=bt)&&(i=P_(i,r.pendingProps,rr),i!==null?(r.stateNode=i,on=r,bt=null,t=!0):t=!1),t||La(r)),null;case 13:return Zg(t,r,i);case 4:return Ne(r,r.stateNode.containerInfo),s=r.pendingProps,t===null?r.child=ko(r,null,s,i):Wt(t,r,s,i),r.child;case 11:return Ng(t,r,r.type,r.pendingProps,i);case 7:return Wt(t,r,r.pendingProps,i),r.child;case 8:return Wt(t,r,r.pendingProps.children,i),r.child;case 12:return Wt(t,r,r.pendingProps.children,i),r.child;case 10:return s=r.pendingProps,Qr(r,r.type,s.value),Wt(t,r,s.children,i),r.child;case 9:return c=r.type._context,s=r.pendingProps.children,Pa(r),c=Jt(c),s=s(c),r.flags|=1,Wt(t,r,s,i),r.child;case 14:return zg(t,r,r.type,r.pendingProps,i);case 15:return jg(t,r,r.type,r.pendingProps,i);case 19:return Vg(t,r,i);case 31:return s=r.pendingProps,i=r.mode,s={mode:s.mode,children:s.children},t===null?(i=kl(s,i),i.ref=r.ref,r.child=i,i.return=r,r=i):(i=Tr(t.child,s),i.ref=r.ref,r.child=i,i.return=r,r=i),r;case 22:return Ug(t,r,i);case 24:return Pa(r),s=Jt(Bt),t===null?(c=Xc(),c===null&&(c=ut,m=Ic(),c.pooledCache=m,m.refCount++,m!==null&&(c.pooledCacheLanes|=i),c=m),r.memoizedState={parent:s,cache:c},Qc(r),Qr(r,Bt,c)):((t.lanes&i)!==0&&(Jc(t,r),Ui(r,null,null,i),ji()),c=t.memoizedState,m=r.memoizedState,c.parent!==s?(c={parent:s,cache:s},r.memoizedState=c,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=c),Qr(r,Bt,s)):(s=m.cache,Qr(r,Bt,s),s!==c.cache&&Gc(r,[Bt],i,!0))),Wt(t,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(o(156,r.tag))}function Nr(t){t.flags|=4}function qg(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Jv(r)){if(r=Yn.current,r!==null&&((Ge&4194048)===Ge?ar!==null:(Ge&62914560)!==Ge&&(Ge&536870912)===0||r!==ar))throw Ni=Kc,Ap;t.flags|=8192}}function Nl(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Fe():536870912,t.lanes|=r,Uo|=r)}function Vi(t,r){if(!Ke)switch(t.tailMode){case"hidden":r=t.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function pt(t){var r=t.alternate!==null&&t.alternate.child===t.child,i=0,s=0;if(r)for(var c=t.child;c!==null;)i|=c.lanes|c.childLanes,s|=c.subtreeFlags&65011712,s|=c.flags&65011712,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)i|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=s,t.childLanes=i,r}function d_(t,r,i){var s=r.pendingProps;switch(Vc(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(r),null;case 1:return pt(r),null;case 3:return i=r.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),Cr(Bt),Qe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Oi(r)?Nr(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,_p())),pt(r),null;case 26:return i=r.memoizedState,t===null?(Nr(r),i!==null?(pt(r),qg(r,i)):(pt(r),r.flags&=-16777217)):i?i!==t.memoizedState?(Nr(r),pt(r),qg(r,i)):(pt(r),r.flags&=-16777217):(t.memoizedProps!==s&&Nr(r),pt(r),r.flags&=-16777217),null;case 27:Qt(r),i=ce.current;var c=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==s&&Nr(r);else{if(!s){if(r.stateNode===null)throw Error(o(166));return pt(r),null}t=ie.current,Oi(r)?xp(r):(t=qv(c,s,i),r.stateNode=t,Nr(r))}return pt(r),null;case 5:if(Qt(r),i=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==s&&Nr(r);else{if(!s){if(r.stateNode===null)throw Error(o(166));return pt(r),null}if(t=ie.current,Oi(r))xp(r);else{switch(c=Fl(ce.current),t){case 1:t=c.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=c.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=c.createElement("div"),t.innerHTML=" +