@ttmg/cli 0.3.6-beta.3 → 0.3.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -1
- package/dist/index.js +551 -66
- package/dist/index.js.map +1 -1
- package/dist/package.json +2 -2
- package/dist/public/assets/Detail-BInCTDTx.js +1 -0
- package/dist/public/assets/Detail-BInCTDTx.js.br +0 -0
- package/dist/public/assets/Detail-BaQ9eM95.css +1 -0
- package/dist/public/assets/{baseForm-Dnb99UJB.js → baseForm-B7tArmif.js} +4 -4
- package/dist/public/assets/baseForm-B7tArmif.js.br +0 -0
- package/dist/public/assets/{index-UihZn1LL.css → index-6LE--ADL.css} +1 -1
- package/dist/public/assets/index-6LE--ADL.css.br +0 -0
- package/dist/public/assets/index-AtMMzkp0.css +1 -0
- package/dist/public/assets/index-B-rc2X1H.js +1 -0
- package/dist/public/assets/index-B0CT2rYr.js +1 -0
- package/dist/public/assets/index-BACeBrQR.css +1 -0
- package/dist/public/assets/index-BOiN8aIS.js +1 -0
- package/dist/public/assets/index-BVi9swz_.js +1 -0
- package/dist/public/assets/index-BVi9swz_.js.br +0 -0
- package/dist/public/assets/index-BlXhGm9R.js +1 -0
- package/dist/public/assets/{index-BkiB8M4Y.css → index-BnU4EHWL.css} +1 -1
- package/dist/public/assets/index-BnU4EHWL.css.br +0 -0
- package/dist/public/assets/index-BswgGVlz.js +1 -0
- package/dist/public/assets/index-BswgGVlz.js.br +0 -0
- package/dist/public/assets/index-C4wGgEDm.css +1 -0
- package/dist/public/assets/{index-DHyyb3Gw.js → index-CDrq3KnY.js} +1 -1
- package/dist/public/assets/index-CH7igbHY.css +1 -0
- package/dist/public/assets/index-Cj-lTEG1.js +1 -0
- package/dist/public/assets/index-Cj-lTEG1.js.br +0 -0
- package/dist/public/assets/index-D35C4ac4.js +1 -0
- package/dist/public/assets/index-DQqzytdw.js +1 -0
- package/dist/public/assets/index-DQqzytdw.js.br +0 -0
- package/dist/public/assets/index-DbiZkOAh.css +1 -0
- package/dist/public/assets/{index-CqK4Ymjd.js → index-DdH9Yin-.js} +1 -1
- package/dist/public/assets/index-DkXWo3Jg.js +14 -0
- package/dist/public/assets/index-DkXWo3Jg.js.br +0 -0
- package/dist/public/assets/index-OIQapQiA.js +1 -0
- package/dist/public/assets/{index-BGkIaNEY.js → index-Sk6u8HWP.js} +1 -1
- package/dist/public/assets/index-TYa4eXxF.css +1 -0
- package/dist/public/assets/{index-DKKMC8UM.js → index-aD1InxYk.js} +1 -1
- package/dist/public/assets/index-jaMAKGHW.css +1 -0
- package/dist/public/assets/{index-C5pU_dUf.js → index-tXDZpXMk.js} +1 -1
- package/dist/public/assets/index-tXDZpXMk.js.br +0 -0
- package/dist/public/assets/times-CCIAbLYL.js +1 -0
- package/dist/public/index.html +2 -2
- package/dist/scripts/docs/capture.js +255 -0
- package/dist/scripts/docs/render.js +199 -0
- package/dist/scripts/docs/server.js +164 -0
- package/package.json +2 -2
- package/dist/public/assets/baseForm-Dnb99UJB.js.br +0 -0
- package/dist/public/assets/index-B8aFXzhN.js +0 -1
- package/dist/public/assets/index-BB5kLk47.css +0 -1
- package/dist/public/assets/index-BaXjsvp9.js +0 -1
- package/dist/public/assets/index-BedicqfR.css +0 -1
- package/dist/public/assets/index-BkiB8M4Y.css.br +0 -0
- package/dist/public/assets/index-BmSg7a2H.js +0 -14
- package/dist/public/assets/index-BmSg7a2H.js.br +0 -0
- package/dist/public/assets/index-Bovw-Ai8.js +0 -1
- package/dist/public/assets/index-Bovw-Ai8.js.br +0 -0
- package/dist/public/assets/index-Bq6YxKLX.css +0 -1
- package/dist/public/assets/index-BwbPFgZF.css +0 -1
- package/dist/public/assets/index-C5pU_dUf.js.br +0 -0
- package/dist/public/assets/index-C8f539tK.css +0 -1
- package/dist/public/assets/index-CJtCELuI.js +0 -1
- package/dist/public/assets/index-CPEErQsP.js +0 -1
- package/dist/public/assets/index-CkcOz6VJ.js +0 -1
- package/dist/public/assets/index-D0piMtcL.js +0 -1
- package/dist/public/assets/index-DNZgHncv.js +0 -1
- package/dist/public/assets/index-DhmPFuxl.css +0 -1
- package/dist/public/assets/index-OPfpZTmc.js +0 -1
- package/dist/public/assets/index-OPfpZTmc.js.br +0 -0
- package/dist/public/assets/index-UihZn1LL.css.br +0 -0
- package/dist/public/assets/index-vPoeqDW1.js +0 -1
- package/dist/public/assets/index-vPoeqDW1.js.br +0 -0
- package/dist/public/assets/index-yh4tKekV.css +0 -1
- package/dist/public/assets/isPlainObject-CKjwQ9bg.js +0 -1
- package/dist/public/assets/times-BsXqTKq4.js +0 -1
- /package/dist/public/assets/{index-C7C5ulLg.css → times-C7C5ulLg.css} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Cj-lTEG1.js","assets/index-DbiZkOAh.css","assets/index-DdH9Yin-.js","assets/index-tXDZpXMk.js","assets/index-BFPQPvSA.css","assets/index-CDrq3KnY.js","assets/baseForm-B7tArmif.js","assets/times-CCIAbLYL.js","assets/times-C7C5ulLg.css","assets/baseForm-DzWBZ1nI.css","assets/index-DXFg6tGR.css","assets/index-BVi9swz_.js","assets/index-jaMAKGHW.css","assets/index-B0CT2rYr.js","assets/index-C4wGgEDm.css","assets/index-BlXhGm9R.js","assets/index-BACeBrQR.css","assets/index-BOiN8aIS.js","assets/index-OIQapQiA.js","assets/index-TYa4eXxF.css","assets/Detail-BInCTDTx.js","assets/Detail-BaQ9eM95.css","assets/index-aD1InxYk.js","assets/index-AtMMzkp0.css","assets/index-BswgGVlz.js","assets/index-D35C4ac4.js","assets/index-BPf4cmgA.css","assets/index-BnU4EHWL.css","assets/index-Sk6u8HWP.js","assets/index-Bf6aJOeV.css","assets/index-B-rc2X1H.js","assets/index-CH7igbHY.css","assets/index-DQqzytdw.js","assets/index-DPSts5Re.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();var $a=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ze(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var mu={exports:{}},Ho={},vu={exports:{}},Ie={};var uy;function QE(){if(uy)return Ie;uy=1;var o=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function b(D){return D===null||typeof D!="object"?null:(D=y&&D[y]||D["@@iterator"],typeof D=="function"?D:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,S={};function C(D,H,V){this.props=D,this.context=H,this.refs=S,this.updater=V||E}C.prototype.isReactComponent={},C.prototype.setState=function(D,H){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,H,"setState")},C.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function O(){}O.prototype=C.prototype;function x(D,H,V){this.props=D,this.context=H,this.refs=S,this.updater=V||E}var R=x.prototype=new O;R.constructor=x,P(R,C.prototype),R.isPureReactComponent=!0;var M=Array.isArray,F=Object.prototype.hasOwnProperty,j={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function z(D,H,V){var ie,ue={},_e=null,ye=null;if(H!=null)for(ie in H.ref!==void 0&&(ye=H.ref),H.key!==void 0&&(_e=""+H.key),H)F.call(H,ie)&&!N.hasOwnProperty(ie)&&(ue[ie]=H[ie]);var be=arguments.length-2;if(be===1)ue.children=V;else if(1<be){for(var Ce=Array(be),ve=0;ve<be;ve++)Ce[ve]=arguments[ve+2];ue.children=Ce}if(D&&D.defaultProps)for(ie in be=D.defaultProps,be)ue[ie]===void 0&&(ue[ie]=be[ie]);return{$$typeof:o,type:D,key:_e,ref:ye,props:ue,_owner:j.current}}function U(D,H){return{$$typeof:o,type:D.type,key:H,ref:D.ref,props:D.props,_owner:D._owner}}function K(D){return typeof D=="object"&&D!==null&&D.$$typeof===o}function Q(D){var H={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(V){return H[V]})}var re=/\/+/g;function ne(D,H){return typeof D=="object"&&D!==null&&D.key!=null?Q(""+D.key):H.toString(36)}function ae(D,H,V,ie,ue){var _e=typeof D;(_e==="undefined"||_e==="boolean")&&(D=null);var ye=!1;if(D===null)ye=!0;else switch(_e){case"string":case"number":ye=!0;break;case"object":switch(D.$$typeof){case o:case e:ye=!0}}if(ye)return ye=D,ue=ue(ye),D=ie===""?"."+ne(ye,0):ie,M(ue)?(V="",D!=null&&(V=D.replace(re,"$&/")+"/"),ae(ue,H,V,"",function(ve){return ve})):ue!=null&&(K(ue)&&(ue=U(ue,V+(!ue.key||ye&&ye.key===ue.key?"":(""+ue.key).replace(re,"$&/")+"/")+D)),H.push(ue)),1;if(ye=0,ie=ie===""?".":ie+":",M(D))for(var be=0;be<D.length;be++){_e=D[be];var Ce=ie+ne(_e,be);ye+=ae(_e,H,V,Ce,ue)}else if(Ce=b(D),typeof Ce=="function")for(D=Ce.call(D),be=0;!(_e=D.next()).done;)_e=_e.value,Ce=ie+ne(_e,be++),ye+=ae(_e,H,V,Ce,ue);else if(_e==="object")throw H=String(D),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return ye}function oe(D,H,V){if(D==null)return D;var ie=[],ue=0;return ae(D,ie,"","",function(_e){return H.call(V,_e,ue++)}),ie}function ge(D){if(D._status===-1){var H=D._result;H=H(),H.then(function(V){(D._status===0||D._status===-1)&&(D._status=1,D._result=V)},function(V){(D._status===0||D._status===-1)&&(D._status=2,D._result=V)}),D._status===-1&&(D._status=0,D._result=H)}if(D._status===1)return D._result.default;throw D._result}var me={current:null},W={transition:null},ee={ReactCurrentDispatcher:me,ReactCurrentBatchConfig:W,ReactCurrentOwner:j};return Ie.Children={map:oe,forEach:function(D,H,V){oe(D,function(){H.apply(this,arguments)},V)},count:function(D){var H=0;return oe(D,function(){H++}),H},toArray:function(D){return oe(D,function(H){return H})||[]},only:function(D){if(!K(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},Ie.Component=C,Ie.Fragment=n,Ie.Profiler=s,Ie.PureComponent=x,Ie.StrictMode=r,Ie.Suspense=p,Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,Ie.cloneElement=function(D,H,V){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ie=P({},D.props),ue=D.key,_e=D.ref,ye=D._owner;if(H!=null){if(H.ref!==void 0&&(_e=H.ref,ye=j.current),H.key!==void 0&&(ue=""+H.key),D.type&&D.type.defaultProps)var be=D.type.defaultProps;for(Ce in H)F.call(H,Ce)&&!N.hasOwnProperty(Ce)&&(ie[Ce]=H[Ce]===void 0&&be!==void 0?be[Ce]:H[Ce])}var Ce=arguments.length-2;if(Ce===1)ie.children=V;else if(1<Ce){be=Array(Ce);for(var ve=0;ve<Ce;ve++)be[ve]=arguments[ve+2];ie.children=be}return{$$typeof:o,type:D.type,key:ue,ref:_e,props:ie,_owner:ye}},Ie.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:l,_context:D},D.Consumer=D},Ie.createElement=z,Ie.createFactory=function(D){var H=z.bind(null,D);return H.type=D,H},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function(D){return{$$typeof:u,render:D}},Ie.isValidElement=K,Ie.lazy=function(D){return{$$typeof:v,_payload:{_status:-1,_result:D},_init:ge}},Ie.memo=function(D,H){return{$$typeof:g,type:D,compare:H===void 0?null:H}},Ie.startTransition=function(D){var H=W.transition;W.transition={};try{D()}finally{W.transition=H}},Ie.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Ie.useCallback=function(D,H){return me.current.useCallback(D,H)},Ie.useContext=function(D){return me.current.useContext(D)},Ie.useDebugValue=function(){},Ie.useDeferredValue=function(D){return me.current.useDeferredValue(D)},Ie.useEffect=function(D,H){return me.current.useEffect(D,H)},Ie.useId=function(){return me.current.useId()},Ie.useImperativeHandle=function(D,H,V){return me.current.useImperativeHandle(D,H,V)},Ie.useInsertionEffect=function(D,H){return me.current.useInsertionEffect(D,H)},Ie.useLayoutEffect=function(D,H){return me.current.useLayoutEffect(D,H)},Ie.useMemo=function(D,H){return me.current.useMemo(D,H)},Ie.useReducer=function(D,H,V){return me.current.useReducer(D,H,V)},Ie.useRef=function(D){return me.current.useRef(D)},Ie.useState=function(D){return me.current.useState(D)},Ie.useSyncExternalStore=function(D,H,V){return me.current.useSyncExternalStore(D,H,V)},Ie.useTransition=function(){return me.current.useTransition()},Ie.version="18.2.0",Ie}var dy;function gs(){return dy||(dy=1,vu.exports=QE()),vu.exports}var py;function XE(){if(py)return Ho;py=1;var o=gs(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(u,p,g){var v,y={},b=null,E=null;g!==void 0&&(b=""+g),p.key!==void 0&&(b=""+p.key),p.ref!==void 0&&(E=p.ref);for(v in p)r.call(p,v)&&!l.hasOwnProperty(v)&&(y[v]=p[v]);if(u&&u.defaultProps)for(v in p=u.defaultProps,p)y[v]===void 0&&(y[v]=p[v]);return{$$typeof:e,type:u,key:b,ref:E,props:y,_owner:s.current}}return Ho.Fragment=n,Ho.jsx=c,Ho.jsxs=c,Ho}var fy;function YE(){return fy||(fy=1,mu.exports=XE()),mu.exports}var T=YE(),Fa={},yu={exports:{}},$t={},bu={exports:{}},Su={};var hy;function ZE(){return hy||(hy=1,(function(o){function e(W,ee){var D=W.length;W.push(ee);e:for(;0<D;){var H=D-1>>>1,V=W[H];if(0<s(V,ee))W[H]=ee,W[D]=V,D=H;else break e}}function n(W){return W.length===0?null:W[0]}function r(W){if(W.length===0)return null;var ee=W[0],D=W.pop();if(D!==ee){W[0]=D;e:for(var H=0,V=W.length,ie=V>>>1;H<ie;){var ue=2*(H+1)-1,_e=W[ue],ye=ue+1,be=W[ye];if(0>s(_e,D))ye<V&&0>s(be,_e)?(W[H]=be,W[ye]=D,H=ye):(W[H]=_e,W[ue]=D,H=ue);else if(ye<V&&0>s(be,D))W[H]=be,W[ye]=D,H=ye;else break e}}return ee}function s(W,ee){var D=W.sortIndex-ee.sortIndex;return D!==0?D:W.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;o.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();o.unstable_now=function(){return c.now()-u}}var p=[],g=[],v=1,y=null,b=3,E=!1,P=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(W){for(var ee=n(g);ee!==null;){if(ee.callback===null)r(g);else if(ee.startTime<=W)r(g),ee.sortIndex=ee.expirationTime,e(p,ee);else break;ee=n(g)}}function M(W){if(S=!1,R(W),!P)if(n(p)!==null)P=!0,ge(F);else{var ee=n(g);ee!==null&&me(M,ee.startTime-W)}}function F(W,ee){P=!1,S&&(S=!1,O(z),z=-1),E=!0;var D=b;try{for(R(ee),y=n(p);y!==null&&(!(y.expirationTime>ee)||W&&!Q());){var H=y.callback;if(typeof H=="function"){y.callback=null,b=y.priorityLevel;var V=H(y.expirationTime<=ee);ee=o.unstable_now(),typeof V=="function"?y.callback=V:y===n(p)&&r(p),R(ee)}else r(p);y=n(p)}if(y!==null)var ie=!0;else{var ue=n(g);ue!==null&&me(M,ue.startTime-ee),ie=!1}return ie}finally{y=null,b=D,E=!1}}var j=!1,N=null,z=-1,U=5,K=-1;function Q(){return!(o.unstable_now()-K<U)}function re(){if(N!==null){var W=o.unstable_now();K=W;var ee=!0;try{ee=N(!0,W)}finally{ee?ne():(j=!1,N=null)}}else j=!1}var ne;if(typeof x=="function")ne=function(){x(re)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,oe=ae.port2;ae.port1.onmessage=re,ne=function(){oe.postMessage(null)}}else ne=function(){C(re,0)};function ge(W){N=W,j||(j=!0,ne())}function me(W,ee){z=C(function(){W(o.unstable_now())},ee)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(W){W.callback=null},o.unstable_continueExecution=function(){P||E||(P=!0,ge(F))},o.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<W?Math.floor(1e3/W):5},o.unstable_getCurrentPriorityLevel=function(){return b},o.unstable_getFirstCallbackNode=function(){return n(p)},o.unstable_next=function(W){switch(b){case 1:case 2:case 3:var ee=3;break;default:ee=b}var D=b;b=ee;try{return W()}finally{b=D}},o.unstable_pauseExecution=function(){},o.unstable_requestPaint=function(){},o.unstable_runWithPriority=function(W,ee){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var D=b;b=W;try{return ee()}finally{b=D}},o.unstable_scheduleCallback=function(W,ee,D){var H=o.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?H+D:H):D=H,W){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=D+V,W={id:v++,callback:ee,priorityLevel:W,startTime:D,expirationTime:V,sortIndex:-1},D>H?(W.sortIndex=D,e(g,W),n(p)===null&&W===n(g)&&(S?(O(z),z=-1):S=!0,me(M,D-H))):(W.sortIndex=V,e(p,W),P||E||(P=!0,ge(F))),W},o.unstable_shouldYield=Q,o.unstable_wrapCallback=function(W){var ee=b;return function(){var D=b;b=ee;try{return W.apply(this,arguments)}finally{b=D}}}})(Su)),Su}var gy;function JE(){return gy||(gy=1,bu.exports=ZE()),bu.exports}var my;function eP(){if(my)return $t;my=1;var o=gs(),e=JE();function n(t){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+t,a=1;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+t+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,s={};function l(t,i){c(t,i),c(t+"Capture",i)}function c(t,i){for(s[t]=i,t=0;t<i.length;t++)r.add(i[t])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,g=/^[: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]*$/,v={},y={};function b(t){return p.call(y,t)?!0:p.call(v,t)?!1:g.test(t)?y[t]=!0:(v[t]=!0,!1)}function E(t,i,a,d){if(a!==null&&a.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return d?!1:a!==null?!a.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function P(t,i,a,d){if(i===null||typeof i>"u"||E(t,i,a,d))return!0;if(d)return!1;if(a!==null)switch(a.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function S(t,i,a,d,f,m,_){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=d,this.attributeNamespace=f,this.mustUseProperty=a,this.propertyName=t,this.type=i,this.sanitizeURL=m,this.removeEmptyString=_}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){C[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var i=t[0];C[i]=new S(i,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){C[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){C[t]=new S(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){C[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){C[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){C[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){C[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){C[t]=new S(t,5,!1,t.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function x(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var i=t.replace(O,x);C[i]=new S(i,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var i=t.replace(O,x);C[i]=new S(i,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var i=t.replace(O,x);C[i]=new S(i,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){C[t]=new S(t,1,!1,t.toLowerCase(),null,!1,!1)}),C.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){C[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function R(t,i,a,d){var f=C.hasOwnProperty(i)?C[i]:null;(f!==null?f.type!==0:d||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(P(i,a,f,d)&&(a=null),d||f===null?b(i)&&(a===null?t.removeAttribute(i):t.setAttribute(i,""+a)):f.mustUseProperty?t[f.propertyName]=a===null?f.type===3?!1:"":a:(i=f.attributeName,d=f.attributeNamespace,a===null?t.removeAttribute(i):(f=f.type,a=f===3||f===4&&a===!0?"":""+a,d?t.setAttributeNS(d,i,a):t.setAttribute(i,a))))}var M=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=Symbol.for("react.element"),j=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),K=Symbol.for("react.provider"),Q=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),me=Symbol.for("react.offscreen"),W=Symbol.iterator;function ee(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var D=Object.assign,H;function V(t){if(H===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);H=i&&i[1]||""}return`
|
|
3
|
+
`+H+t}var ie=!1;function ue(t,i){if(!t||ie)return"";ie=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(G){var d=G}Reflect.construct(t,[],i)}else{try{i.call()}catch(G){d=G}t.call(i.prototype)}else{try{throw Error()}catch(G){d=G}t()}}catch(G){if(G&&d&&typeof G.stack=="string"){for(var f=G.stack.split(`
|
|
4
|
+
`),m=d.stack.split(`
|
|
5
|
+
`),_=f.length-1,I=m.length-1;1<=_&&0<=I&&f[_]!==m[I];)I--;for(;1<=_&&0<=I;_--,I--)if(f[_]!==m[I]){if(_!==1||I!==1)do if(_--,I--,0>I||f[_]!==m[I]){var A=`
|
|
6
|
+
`+f[_].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=_&&0<=I);break}}}finally{ie=!1,Error.prepareStackTrace=a}return(t=t?t.displayName||t.name:"")?V(t):""}function _e(t){switch(t.tag){case 5:return V(t.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return t=ue(t.type,!1),t;case 11:return t=ue(t.type.render,!1),t;case 1:return t=ue(t.type,!0),t;default:return""}}function ye(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case N:return"Fragment";case j:return"Portal";case U:return"Profiler";case z:return"StrictMode";case ne:return"Suspense";case ae:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Q:return(t.displayName||"Context")+".Consumer";case K:return(t._context.displayName||"Context")+".Provider";case re:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case oe:return i=t.displayName||null,i!==null?i:ye(t.type)||"Memo";case ge:i=t._payload,t=t._init;try{return ye(t(i))}catch{}}return null}function be(t){var i=t.type;switch(t.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=i.render,t=t.displayName||t.name||"",i.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(i);case 8:return i===z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Ce(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ve(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Tt(t){var i=ve(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,i),d=""+t[i];if(!t.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var f=a.get,m=a.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return f.call(this)},set:function(_){d=""+_,m.call(this,_)}}),Object.defineProperty(t,i,{enumerable:a.enumerable}),{getValue:function(){return d},setValue:function(_){d=""+_},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function Ot(t){t._valueTracker||(t._valueTracker=Tt(t))}function lr(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var a=i.getValue(),d="";return t&&(d=ve(t)?t.checked?"true":"false":t.value),t=d,t!==a?(i.setValue(t),!0):!1}function dn(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}}function cr(t,i){var a=i.checked;return D({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??t._wrapperState.initialChecked})}function De(t,i){var a=i.defaultValue==null?"":i.defaultValue,d=i.checked!=null?i.checked:i.defaultChecked;a=Ce(i.value!=null?i.value:a),t._wrapperState={initialChecked:d,initialValue:a,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function pn(t,i){i=i.checked,i!=null&&R(t,"checked",i,!1)}function xe(t,i){pn(t,i);var a=Ce(i.value),d=i.type;if(a!=null)d==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+a):t.value!==""+a&&(t.value=""+a);else if(d==="submit"||d==="reset"){t.removeAttribute("value");return}i.hasOwnProperty("value")?Fe(t,i.type,a):i.hasOwnProperty("defaultValue")&&Fe(t,i.type,Ce(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(t.defaultChecked=!!i.defaultChecked)}function xt(t,i,a){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var d=i.type;if(!(d!=="submit"&&d!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+t._wrapperState.initialValue,a||i===t.value||(t.value=i),t.defaultValue=i}a=t.name,a!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,a!==""&&(t.name=a)}function Fe(t,i,a){(i!=="number"||dn(t.ownerDocument)!==t)&&(a==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+a&&(t.defaultValue=""+a))}var Me=Array.isArray;function Ke(t,i,a,d){if(t=t.options,i){i={};for(var f=0;f<a.length;f++)i["$"+a[f]]=!0;for(a=0;a<t.length;a++)f=i.hasOwnProperty("$"+t[a].value),t[a].selected!==f&&(t[a].selected=f),f&&d&&(t[a].defaultSelected=!0)}else{for(a=""+Ce(a),i=null,f=0;f<t.length;f++){if(t[f].value===a){t[f].selected=!0,d&&(t[f].defaultSelected=!0);return}i!==null||t[f].disabled||(i=t[f])}i!==null&&(i.selected=!0)}}function Qe(t,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return D({},i,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Be(t,i){var a=i.value;if(a==null){if(a=i.children,i=i.defaultValue,a!=null){if(i!=null)throw Error(n(92));if(Me(a)){if(1<a.length)throw Error(n(93));a=a[0]}i=a}i==null&&(i=""),a=i}t._wrapperState={initialValue:Ce(a)}}function It(t,i){var a=Ce(i.value),d=Ce(i.defaultValue);a!=null&&(a=""+a,a!==t.value&&(t.value=a),i.defaultValue==null&&t.defaultValue!==a&&(t.defaultValue=a)),d!=null&&(t.defaultValue=""+d)}function Dt(t){var i=t.textContent;i===t._wrapperState.initialValue&&i!==""&&i!==null&&(t.value=i)}function On(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Rt(t,i){return t==null||t==="http://www.w3.org/1999/xhtml"?On(i):t==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var et,xn=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,a,d,f){MSApp.execUnsafeLocalFunction(function(){return t(i,a,d,f)})}:t})(function(t,i){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=i;else{for(et=et||document.createElement("div"),et.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=et.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;i.firstChild;)t.appendChild(i.firstChild)}});function en(t,i){if(i){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=i;return}}t.textContent=i}var fn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ur=["Webkit","ms","Moz","O"];Object.keys(fn).forEach(function(t){ur.forEach(function(i){i=i+t.charAt(0).toUpperCase()+t.substring(1),fn[i]=fn[t]})});function Ct(t,i,a){return i==null||typeof i=="boolean"||i===""?"":a||typeof i!="number"||i===0||fn.hasOwnProperty(t)&&fn[t]?(""+i).trim():i+"px"}function Ft(t,i){t=t.style;for(var a in i)if(i.hasOwnProperty(a)){var d=a.indexOf("--")===0,f=Ct(a,i[a],d);a==="float"&&(a="cssFloat"),d?t.setProperty(a,f):t[a]=f}}var Is=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function dr(t,i){if(i){if(Is[t]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,t));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function pr(t,i){if(t.indexOf("-")===-1)return typeof i.is=="string";switch(t){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 Br=null;function qr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Gr=null,In=null,zt=null;function Ur(t){if(t=Do(t)){if(typeof Gr!="function")throw Error(n(280));var i=t.stateNode;i&&(i=Js(i),Gr(t.stateNode,t.type,i))}}function Gn(t){In?zt?zt.push(t):zt=[t]:In=t}function Wr(){if(In){var t=In,i=zt;if(zt=In=null,Ur(t),i)for(t=0;t<i.length;t++)Ur(i[t])}}function ao(t,i){return t(i)}function lo(){}var Nl=!1;function Dg(t,i,a){if(Nl)return t(i,a);Nl=!0;try{return ao(t,i,a)}finally{Nl=!1,(In!==null||zt!==null)&&(lo(),Wr())}}function co(t,i){var a=t.stateNode;if(a===null)return null;var d=Js(a);if(d===null)return null;a=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(t=t.type,d=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!d;break e;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(n(231,i,typeof a));return a}var jl=!1;if(u)try{var uo={};Object.defineProperty(uo,"passive",{get:function(){jl=!0}}),window.addEventListener("test",uo,uo),window.removeEventListener("test",uo,uo)}catch{jl=!1}function tC(t,i,a,d,f,m,_,I,A){var G=Array.prototype.slice.call(arguments,3);try{i.apply(a,G)}catch(Z){this.onError(Z)}}var po=!1,Ds=null,Rs=!1,Ll=null,nC={onError:function(t){po=!0,Ds=t}};function rC(t,i,a,d,f,m,_,I,A){po=!1,Ds=null,tC.apply(nC,arguments)}function iC(t,i,a,d,f,m,_,I,A){if(rC.apply(this,arguments),po){if(po){var G=Ds;po=!1,Ds=null}else throw Error(n(198));Rs||(Rs=!0,Ll=G)}}function Hr(t){var i=t,a=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(a=i.return),t=i.return;while(t)}return i.tag===3?a:null}function Rg(t){if(t.tag===13){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function Ng(t){if(Hr(t)!==t)throw Error(n(188))}function oC(t){var i=t.alternate;if(!i){if(i=Hr(t),i===null)throw Error(n(188));return i!==t?null:t}for(var a=t,d=i;;){var f=a.return;if(f===null)break;var m=f.alternate;if(m===null){if(d=f.return,d!==null){a=d;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===a)return Ng(f),t;if(m===d)return Ng(f),i;m=m.sibling}throw Error(n(188))}if(a.return!==d.return)a=f,d=m;else{for(var _=!1,I=f.child;I;){if(I===a){_=!0,a=f,d=m;break}if(I===d){_=!0,d=f,a=m;break}I=I.sibling}if(!_){for(I=m.child;I;){if(I===a){_=!0,a=m,d=f;break}if(I===d){_=!0,d=m,a=f;break}I=I.sibling}if(!_)throw Error(n(189))}}if(a.alternate!==d)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?t:i}function jg(t){return t=oC(t),t!==null?Lg(t):null}function Lg(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var i=Lg(t);if(i!==null)return i;t=t.sibling}return null}var Ag=e.unstable_scheduleCallback,Mg=e.unstable_cancelCallback,sC=e.unstable_shouldYield,aC=e.unstable_requestPaint,tt=e.unstable_now,lC=e.unstable_getCurrentPriorityLevel,Al=e.unstable_ImmediatePriority,$g=e.unstable_UserBlockingPriority,Ns=e.unstable_NormalPriority,cC=e.unstable_LowPriority,Fg=e.unstable_IdlePriority,js=null,Dn=null;function uC(t){if(Dn&&typeof Dn.onCommitFiberRoot=="function")try{Dn.onCommitFiberRoot(js,t,void 0,(t.current.flags&128)===128)}catch{}}var hn=Math.clz32?Math.clz32:fC,dC=Math.log,pC=Math.LN2;function fC(t){return t>>>=0,t===0?32:31-(dC(t)/pC|0)|0}var Ls=64,As=4194304;function fo(t){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: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ms(t,i){var a=t.pendingLanes;if(a===0)return 0;var d=0,f=t.suspendedLanes,m=t.pingedLanes,_=a&268435455;if(_!==0){var I=_&~f;I!==0?d=fo(I):(m&=_,m!==0&&(d=fo(m)))}else _=a&~f,_!==0?d=fo(_):m!==0&&(d=fo(m));if(d===0)return 0;if(i!==0&&i!==d&&(i&f)===0&&(f=d&-d,m=i&-i,f>=m||f===16&&(m&4194240)!==0))return i;if((d&4)!==0&&(d|=a&16),i=t.entangledLanes,i!==0)for(t=t.entanglements,i&=d;0<i;)a=31-hn(i),f=1<<a,d|=t[a],i&=~f;return d}function hC(t,i){switch(t){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gC(t,i){for(var a=t.suspendedLanes,d=t.pingedLanes,f=t.expirationTimes,m=t.pendingLanes;0<m;){var _=31-hn(m),I=1<<_,A=f[_];A===-1?((I&a)===0||(I&d)!==0)&&(f[_]=hC(I,i)):A<=i&&(t.expiredLanes|=I),m&=~I}}function Ml(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function zg(){var t=Ls;return Ls<<=1,(Ls&4194240)===0&&(Ls=64),t}function $l(t){for(var i=[],a=0;31>a;a++)i.push(t);return i}function ho(t,i,a){t.pendingLanes|=i,i!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,i=31-hn(i),t[i]=a}function mC(t,i){var a=t.pendingLanes&~i;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=i,t.mutableReadLanes&=i,t.entangledLanes&=i,i=t.entanglements;var d=t.eventTimes;for(t=t.expirationTimes;0<a;){var f=31-hn(a),m=1<<f;i[f]=0,d[f]=-1,t[f]=-1,a&=~m}}function Fl(t,i){var a=t.entangledLanes|=i;for(t=t.entanglements;a;){var d=31-hn(a),f=1<<d;f&i|t[d]&i&&(t[d]|=i),a&=~f}}var $e=0;function Bg(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var qg,zl,Gg,Ug,Wg,Bl=!1,$s=[],fr=null,hr=null,gr=null,go=new Map,mo=new Map,mr=[],vC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Hg(t,i){switch(t){case"focusin":case"focusout":fr=null;break;case"dragenter":case"dragleave":hr=null;break;case"mouseover":case"mouseout":gr=null;break;case"pointerover":case"pointerout":go.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":mo.delete(i.pointerId)}}function vo(t,i,a,d,f,m){return t===null||t.nativeEvent!==m?(t={blockedOn:i,domEventName:a,eventSystemFlags:d,nativeEvent:m,targetContainers:[f]},i!==null&&(i=Do(i),i!==null&&zl(i)),t):(t.eventSystemFlags|=d,i=t.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),t)}function yC(t,i,a,d,f){switch(i){case"focusin":return fr=vo(fr,t,i,a,d,f),!0;case"dragenter":return hr=vo(hr,t,i,a,d,f),!0;case"mouseover":return gr=vo(gr,t,i,a,d,f),!0;case"pointerover":var m=f.pointerId;return go.set(m,vo(go.get(m)||null,t,i,a,d,f)),!0;case"gotpointercapture":return m=f.pointerId,mo.set(m,vo(mo.get(m)||null,t,i,a,d,f)),!0}return!1}function Vg(t){var i=Vr(t.target);if(i!==null){var a=Hr(i);if(a!==null){if(i=a.tag,i===13){if(i=Rg(a),i!==null){t.blockedOn=i,Wg(t.priority,function(){Gg(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Fs(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var a=Gl(t.domEventName,t.eventSystemFlags,i[0],t.nativeEvent);if(a===null){a=t.nativeEvent;var d=new a.constructor(a.type,a);Br=d,a.target.dispatchEvent(d),Br=null}else return i=Do(a),i!==null&&zl(i),t.blockedOn=a,!1;i.shift()}return!0}function Kg(t,i,a){Fs(t)&&a.delete(i)}function bC(){Bl=!1,fr!==null&&Fs(fr)&&(fr=null),hr!==null&&Fs(hr)&&(hr=null),gr!==null&&Fs(gr)&&(gr=null),go.forEach(Kg),mo.forEach(Kg)}function yo(t,i){t.blockedOn===i&&(t.blockedOn=null,Bl||(Bl=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,bC)))}function bo(t){function i(f){return yo(f,t)}if(0<$s.length){yo($s[0],t);for(var a=1;a<$s.length;a++){var d=$s[a];d.blockedOn===t&&(d.blockedOn=null)}}for(fr!==null&&yo(fr,t),hr!==null&&yo(hr,t),gr!==null&&yo(gr,t),go.forEach(i),mo.forEach(i),a=0;a<mr.length;a++)d=mr[a],d.blockedOn===t&&(d.blockedOn=null);for(;0<mr.length&&(a=mr[0],a.blockedOn===null);)Vg(a),a.blockedOn===null&&mr.shift()}var wi=M.ReactCurrentBatchConfig,zs=!0;function SC(t,i,a,d){var f=$e,m=wi.transition;wi.transition=null;try{$e=1,ql(t,i,a,d)}finally{$e=f,wi.transition=m}}function wC(t,i,a,d){var f=$e,m=wi.transition;wi.transition=null;try{$e=4,ql(t,i,a,d)}finally{$e=f,wi.transition=m}}function ql(t,i,a,d){if(zs){var f=Gl(t,i,a,d);if(f===null)sc(t,i,d,Bs,a),Hg(t,d);else if(yC(f,t,i,a,d))d.stopPropagation();else if(Hg(t,d),i&4&&-1<vC.indexOf(t)){for(;f!==null;){var m=Do(f);if(m!==null&&qg(m),m=Gl(t,i,a,d),m===null&&sc(t,i,d,Bs,a),m===f)break;f=m}f!==null&&d.stopPropagation()}else sc(t,i,d,null,a)}}var Bs=null;function Gl(t,i,a,d){if(Bs=null,t=qr(d),t=Vr(t),t!==null)if(i=Hr(t),i===null)t=null;else if(a=i.tag,a===13){if(t=Rg(i),t!==null)return t;t=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null);return Bs=t,null}function Qg(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(lC()){case Al:return 1;case $g:return 4;case Ns:case cC:return 16;case Fg:return 536870912;default:return 16}default:return 16}}var vr=null,Ul=null,qs=null;function Xg(){if(qs)return qs;var t,i=Ul,a=i.length,d,f="value"in vr?vr.value:vr.textContent,m=f.length;for(t=0;t<a&&i[t]===f[t];t++);var _=a-t;for(d=1;d<=_&&i[a-d]===f[m-d];d++);return qs=f.slice(t,1<d?1-d:void 0)}function Gs(t){var i=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),32<=t||t===13?t:0}function Us(){return!0}function Yg(){return!1}function Bt(t){function i(a,d,f,m,_){this._reactName=a,this._targetInst=f,this.type=d,this.nativeEvent=m,this.target=_,this.currentTarget=null;for(var I in t)t.hasOwnProperty(I)&&(a=t[I],this[I]=a?a(m):m[I]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Us:Yg,this.isPropagationStopped=Yg,this}return D(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Us)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Us)},persist:function(){},isPersistent:Us}),i}var _i={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wl=Bt(_i),So=D({},_i,{view:0,detail:0}),_C=Bt(So),Hl,Vl,wo,Ws=D({},So,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ql,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==wo&&(wo&&t.type==="mousemove"?(Hl=t.screenX-wo.screenX,Vl=t.screenY-wo.screenY):Vl=Hl=0,wo=t),Hl)},movementY:function(t){return"movementY"in t?t.movementY:Vl}}),Zg=Bt(Ws),CC=D({},Ws,{dataTransfer:0}),EC=Bt(CC),PC=D({},So,{relatedTarget:0}),Kl=Bt(PC),kC=D({},_i,{animationName:0,elapsedTime:0,pseudoElement:0}),TC=Bt(kC),OC=D({},_i,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),xC=Bt(OC),IC=D({},_i,{data:0}),Jg=Bt(IC),DC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RC={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"},NC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jC(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=NC[t])?!!i[t]:!1}function Ql(){return jC}var LC=D({},So,{key:function(t){if(t.key){var i=DC[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=Gs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?RC[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ql,charCode:function(t){return t.type==="keypress"?Gs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Gs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),AC=Bt(LC),MC=D({},Ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),em=Bt(MC),$C=D({},So,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ql}),FC=Bt($C),zC=D({},_i,{propertyName:0,elapsedTime:0,pseudoElement:0}),BC=Bt(zC),qC=D({},Ws,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),GC=Bt(qC),UC=[9,13,27,32],Xl=u&&"CompositionEvent"in window,_o=null;u&&"documentMode"in document&&(_o=document.documentMode);var WC=u&&"TextEvent"in window&&!_o,tm=u&&(!Xl||_o&&8<_o&&11>=_o),nm=" ",rm=!1;function im(t,i){switch(t){case"keyup":return UC.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function om(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ci=!1;function HC(t,i){switch(t){case"compositionend":return om(i);case"keypress":return i.which!==32?null:(rm=!0,nm);case"textInput":return t=i.data,t===nm&&rm?null:t;default:return null}}function VC(t,i){if(Ci)return t==="compositionend"||!Xl&&im(t,i)?(t=Xg(),qs=Ul=vr=null,Ci=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return tm&&i.locale!=="ko"?null:i.data;default:return null}}var KC={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 sm(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!KC[t.type]:i==="textarea"}function am(t,i,a,d){Gn(d),i=Xs(i,"onChange"),0<i.length&&(a=new Wl("onChange","change",null,a,d),t.push({event:a,listeners:i}))}var Co=null,Eo=null;function QC(t){Pm(t,0)}function Hs(t){var i=Oi(t);if(lr(i))return t}function XC(t,i){if(t==="change")return i}var lm=!1;if(u){var Yl;if(u){var Zl="oninput"in document;if(!Zl){var cm=document.createElement("div");cm.setAttribute("oninput","return;"),Zl=typeof cm.oninput=="function"}Yl=Zl}else Yl=!1;lm=Yl&&(!document.documentMode||9<document.documentMode)}function um(){Co&&(Co.detachEvent("onpropertychange",dm),Eo=Co=null)}function dm(t){if(t.propertyName==="value"&&Hs(Eo)){var i=[];am(i,Eo,t,qr(t)),Dg(QC,i)}}function YC(t,i,a){t==="focusin"?(um(),Co=i,Eo=a,Co.attachEvent("onpropertychange",dm)):t==="focusout"&&um()}function ZC(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Hs(Eo)}function JC(t,i){if(t==="click")return Hs(i)}function eE(t,i){if(t==="input"||t==="change")return Hs(i)}function tE(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var gn=typeof Object.is=="function"?Object.is:tE;function Po(t,i){if(gn(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var a=Object.keys(t),d=Object.keys(i);if(a.length!==d.length)return!1;for(d=0;d<a.length;d++){var f=a[d];if(!p.call(i,f)||!gn(t[f],i[f]))return!1}return!0}function pm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function fm(t,i){var a=pm(t);t=0;for(var d;a;){if(a.nodeType===3){if(d=t+a.textContent.length,t<=i&&d>=i)return{node:a,offset:i-t};t=d}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=pm(a)}}function hm(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?hm(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function gm(){for(var t=window,i=dn();i instanceof t.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)t=i.contentWindow;else break;i=dn(t.document)}return i}function Jl(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}function nE(t){var i=gm(),a=t.focusedElem,d=t.selectionRange;if(i!==a&&a&&a.ownerDocument&&hm(a.ownerDocument.documentElement,a)){if(d!==null&&Jl(a)){if(i=d.start,t=d.end,t===void 0&&(t=i),"selectionStart"in a)a.selectionStart=i,a.selectionEnd=Math.min(t,a.value.length);else if(t=(i=a.ownerDocument||document)&&i.defaultView||window,t.getSelection){t=t.getSelection();var f=a.textContent.length,m=Math.min(d.start,f);d=d.end===void 0?m:Math.min(d.end,f),!t.extend&&m>d&&(f=d,d=m,m=f),f=fm(a,m);var _=fm(a,d);f&&_&&(t.rangeCount!==1||t.anchorNode!==f.node||t.anchorOffset!==f.offset||t.focusNode!==_.node||t.focusOffset!==_.offset)&&(i=i.createRange(),i.setStart(f.node,f.offset),t.removeAllRanges(),m>d?(t.addRange(i),t.extend(_.node,_.offset)):(i.setEnd(_.node,_.offset),t.addRange(i)))}}for(i=[],t=a;t=t.parentNode;)t.nodeType===1&&i.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<i.length;a++)t=i[a],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var rE=u&&"documentMode"in document&&11>=document.documentMode,Ei=null,ec=null,ko=null,tc=!1;function mm(t,i,a){var d=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;tc||Ei==null||Ei!==dn(d)||(d=Ei,"selectionStart"in d&&Jl(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),ko&&Po(ko,d)||(ko=d,d=Xs(ec,"onSelect"),0<d.length&&(i=new Wl("onSelect","select",null,i,a),t.push({event:i,listeners:d}),i.target=Ei)))}function Vs(t,i){var a={};return a[t.toLowerCase()]=i.toLowerCase(),a["Webkit"+t]="webkit"+i,a["Moz"+t]="moz"+i,a}var Pi={animationend:Vs("Animation","AnimationEnd"),animationiteration:Vs("Animation","AnimationIteration"),animationstart:Vs("Animation","AnimationStart"),transitionend:Vs("Transition","TransitionEnd")},nc={},vm={};u&&(vm=document.createElement("div").style,"AnimationEvent"in window||(delete Pi.animationend.animation,delete Pi.animationiteration.animation,delete Pi.animationstart.animation),"TransitionEvent"in window||delete Pi.transitionend.transition);function Ks(t){if(nc[t])return nc[t];if(!Pi[t])return t;var i=Pi[t],a;for(a in i)if(i.hasOwnProperty(a)&&a in vm)return nc[t]=i[a];return t}var ym=Ks("animationend"),bm=Ks("animationiteration"),Sm=Ks("animationstart"),wm=Ks("transitionend"),_m=new Map,Cm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function yr(t,i){_m.set(t,i),l(i,[t])}for(var rc=0;rc<Cm.length;rc++){var ic=Cm[rc],iE=ic.toLowerCase(),oE=ic[0].toUpperCase()+ic.slice(1);yr(iE,"on"+oE)}yr(ym,"onAnimationEnd"),yr(bm,"onAnimationIteration"),yr(Sm,"onAnimationStart"),yr("dblclick","onDoubleClick"),yr("focusin","onFocus"),yr("focusout","onBlur"),yr(wm,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var To="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(" "),sE=new Set("cancel close invalid load scroll toggle".split(" ").concat(To));function Em(t,i,a){var d=t.type||"unknown-event";t.currentTarget=a,iC(d,i,void 0,t),t.currentTarget=null}function Pm(t,i){i=(i&4)!==0;for(var a=0;a<t.length;a++){var d=t[a],f=d.event;d=d.listeners;e:{var m=void 0;if(i)for(var _=d.length-1;0<=_;_--){var I=d[_],A=I.instance,G=I.currentTarget;if(I=I.listener,A!==m&&f.isPropagationStopped())break e;Em(f,I,G),m=A}else for(_=0;_<d.length;_++){if(I=d[_],A=I.instance,G=I.currentTarget,I=I.listener,A!==m&&f.isPropagationStopped())break e;Em(f,I,G),m=A}}}if(Rs)throw t=Ll,Rs=!1,Ll=null,t}function qe(t,i){var a=i[pc];a===void 0&&(a=i[pc]=new Set);var d=t+"__bubble";a.has(d)||(km(i,t,2,!1),a.add(d))}function oc(t,i,a){var d=0;i&&(d|=4),km(a,t,d,i)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function Oo(t){if(!t[Qs]){t[Qs]=!0,r.forEach(function(a){a!=="selectionchange"&&(sE.has(a)||oc(a,!1,t),oc(a,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[Qs]||(i[Qs]=!0,oc("selectionchange",!1,i))}}function km(t,i,a,d){switch(Qg(i)){case 1:var f=SC;break;case 4:f=wC;break;default:f=ql}a=f.bind(null,i,a,t),f=void 0,!jl||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),d?f!==void 0?t.addEventListener(i,a,{capture:!0,passive:f}):t.addEventListener(i,a,!0):f!==void 0?t.addEventListener(i,a,{passive:f}):t.addEventListener(i,a,!1)}function sc(t,i,a,d,f){var m=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var _=d.tag;if(_===3||_===4){var I=d.stateNode.containerInfo;if(I===f||I.nodeType===8&&I.parentNode===f)break;if(_===4)for(_=d.return;_!==null;){var A=_.tag;if((A===3||A===4)&&(A=_.stateNode.containerInfo,A===f||A.nodeType===8&&A.parentNode===f))return;_=_.return}for(;I!==null;){if(_=Vr(I),_===null)return;if(A=_.tag,A===5||A===6){d=m=_;continue e}I=I.parentNode}}d=d.return}Dg(function(){var G=m,Z=qr(a),J=[];e:{var Y=_m.get(t);if(Y!==void 0){var se=Wl,ce=t;switch(t){case"keypress":if(Gs(a)===0)break e;case"keydown":case"keyup":se=AC;break;case"focusin":ce="focus",se=Kl;break;case"focusout":ce="blur",se=Kl;break;case"beforeblur":case"afterblur":se=Kl;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=Zg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=EC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=FC;break;case ym:case bm:case Sm:se=TC;break;case wm:se=BC;break;case"scroll":se=_C;break;case"wheel":se=GC;break;case"copy":case"cut":case"paste":se=xC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=em}var de=(i&4)!==0,nt=!de&&t==="scroll",B=de?Y!==null?Y+"Capture":null:Y;de=[];for(var $=G,q;$!==null;){q=$;var te=q.stateNode;if(q.tag===5&&te!==null&&(q=te,B!==null&&(te=co($,B),te!=null&&de.push(xo($,te,q)))),nt)break;$=$.return}0<de.length&&(Y=new se(Y,ce,null,a,Z),J.push({event:Y,listeners:de}))}}if((i&7)===0){e:{if(Y=t==="mouseover"||t==="pointerover",se=t==="mouseout"||t==="pointerout",Y&&a!==Br&&(ce=a.relatedTarget||a.fromElement)&&(Vr(ce)||ce[Un]))break e;if((se||Y)&&(Y=Z.window===Z?Z:(Y=Z.ownerDocument)?Y.defaultView||Y.parentWindow:window,se?(ce=a.relatedTarget||a.toElement,se=G,ce=ce?Vr(ce):null,ce!==null&&(nt=Hr(ce),ce!==nt||ce.tag!==5&&ce.tag!==6)&&(ce=null)):(se=null,ce=G),se!==ce)){if(de=Zg,te="onMouseLeave",B="onMouseEnter",$="mouse",(t==="pointerout"||t==="pointerover")&&(de=em,te="onPointerLeave",B="onPointerEnter",$="pointer"),nt=se==null?Y:Oi(se),q=ce==null?Y:Oi(ce),Y=new de(te,$+"leave",se,a,Z),Y.target=nt,Y.relatedTarget=q,te=null,Vr(Z)===G&&(de=new de(B,$+"enter",ce,a,Z),de.target=q,de.relatedTarget=nt,te=de),nt=te,se&&ce)t:{for(de=se,B=ce,$=0,q=de;q;q=ki(q))$++;for(q=0,te=B;te;te=ki(te))q++;for(;0<$-q;)de=ki(de),$--;for(;0<q-$;)B=ki(B),q--;for(;$--;){if(de===B||B!==null&&de===B.alternate)break t;de=ki(de),B=ki(B)}de=null}else de=null;se!==null&&Tm(J,Y,se,de,!1),ce!==null&&nt!==null&&Tm(J,nt,ce,de,!0)}}e:{if(Y=G?Oi(G):window,se=Y.nodeName&&Y.nodeName.toLowerCase(),se==="select"||se==="input"&&Y.type==="file")var fe=XC;else if(sm(Y))if(lm)fe=eE;else{fe=ZC;var Se=YC}else(se=Y.nodeName)&&se.toLowerCase()==="input"&&(Y.type==="checkbox"||Y.type==="radio")&&(fe=JC);if(fe&&(fe=fe(t,G))){am(J,fe,a,Z);break e}Se&&Se(t,Y,G),t==="focusout"&&(Se=Y._wrapperState)&&Se.controlled&&Y.type==="number"&&Fe(Y,"number",Y.value)}switch(Se=G?Oi(G):window,t){case"focusin":(sm(Se)||Se.contentEditable==="true")&&(Ei=Se,ec=G,ko=null);break;case"focusout":ko=ec=Ei=null;break;case"mousedown":tc=!0;break;case"contextmenu":case"mouseup":case"dragend":tc=!1,mm(J,a,Z);break;case"selectionchange":if(rE)break;case"keydown":case"keyup":mm(J,a,Z)}var we;if(Xl)e:{switch(t){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else Ci?im(t,a)&&(Ee="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Ee="onCompositionStart");Ee&&(tm&&a.locale!=="ko"&&(Ci||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&Ci&&(we=Xg()):(vr=Z,Ul="value"in vr?vr.value:vr.textContent,Ci=!0)),Se=Xs(G,Ee),0<Se.length&&(Ee=new Jg(Ee,t,null,a,Z),J.push({event:Ee,listeners:Se}),we?Ee.data=we:(we=om(a),we!==null&&(Ee.data=we)))),(we=WC?HC(t,a):VC(t,a))&&(G=Xs(G,"onBeforeInput"),0<G.length&&(Z=new Jg("onBeforeInput","beforeinput",null,a,Z),J.push({event:Z,listeners:G}),Z.data=we))}Pm(J,i)})}function xo(t,i,a){return{instance:t,listener:i,currentTarget:a}}function Xs(t,i){for(var a=i+"Capture",d=[];t!==null;){var f=t,m=f.stateNode;f.tag===5&&m!==null&&(f=m,m=co(t,a),m!=null&&d.unshift(xo(t,m,f)),m=co(t,i),m!=null&&d.push(xo(t,m,f))),t=t.return}return d}function ki(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Tm(t,i,a,d,f){for(var m=i._reactName,_=[];a!==null&&a!==d;){var I=a,A=I.alternate,G=I.stateNode;if(A!==null&&A===d)break;I.tag===5&&G!==null&&(I=G,f?(A=co(a,m),A!=null&&_.unshift(xo(a,A,I))):f||(A=co(a,m),A!=null&&_.push(xo(a,A,I)))),a=a.return}_.length!==0&&t.push({event:i,listeners:_})}var aE=/\r\n?/g,lE=/\u0000|\uFFFD/g;function Om(t){return(typeof t=="string"?t:""+t).replace(aE,`
|
|
7
|
+
`).replace(lE,"")}function Ys(t,i,a){if(i=Om(i),Om(t)!==i&&a)throw Error(n(425))}function Zs(){}var ac=null,lc=null;function cc(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var uc=typeof setTimeout=="function"?setTimeout:void 0,cE=typeof clearTimeout=="function"?clearTimeout:void 0,xm=typeof Promise=="function"?Promise:void 0,uE=typeof queueMicrotask=="function"?queueMicrotask:typeof xm<"u"?function(t){return xm.resolve(null).then(t).catch(dE)}:uc;function dE(t){setTimeout(function(){throw t})}function dc(t,i){var a=i,d=0;do{var f=a.nextSibling;if(t.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(d===0){t.removeChild(f),bo(i);return}d--}else a!=="$"&&a!=="$?"&&a!=="$!"||d++;a=f}while(a);bo(i)}function br(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===1||i===3)break;if(i===8){if(i=t.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return t}function Im(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"){if(i===0)return t;i--}else a==="/$"&&i++}t=t.previousSibling}return null}var Ti=Math.random().toString(36).slice(2),Rn="__reactFiber$"+Ti,Io="__reactProps$"+Ti,Un="__reactContainer$"+Ti,pc="__reactEvents$"+Ti,pE="__reactListeners$"+Ti,fE="__reactHandles$"+Ti;function Vr(t){var i=t[Rn];if(i)return i;for(var a=t.parentNode;a;){if(i=a[Un]||a[Rn]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(t=Im(t);t!==null;){if(a=t[Rn])return a;t=Im(t)}return i}t=a,a=t.parentNode}return null}function Do(t){return t=t[Rn]||t[Un],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Oi(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(n(33))}function Js(t){return t[Io]||null}var fc=[],xi=-1;function Sr(t){return{current:t}}function Ge(t){0>xi||(t.current=fc[xi],fc[xi]=null,xi--)}function ze(t,i){xi++,fc[xi]=t.current,t.current=i}var wr={},mt=Sr(wr),Nt=Sr(!1),Kr=wr;function Ii(t,i){var a=t.type.contextTypes;if(!a)return wr;var d=t.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===i)return d.__reactInternalMemoizedMaskedChildContext;var f={},m;for(m in a)f[m]=i[m];return d&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=f),f}function jt(t){return t=t.childContextTypes,t!=null}function ea(){Ge(Nt),Ge(mt)}function Dm(t,i,a){if(mt.current!==wr)throw Error(n(168));ze(mt,i),ze(Nt,a)}function Rm(t,i,a){var d=t.stateNode;if(i=i.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var f in d)if(!(f in i))throw Error(n(108,be(t)||"Unknown",f));return D({},a,d)}function ta(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||wr,Kr=mt.current,ze(mt,t),ze(Nt,Nt.current),!0}function Nm(t,i,a){var d=t.stateNode;if(!d)throw Error(n(169));a?(t=Rm(t,i,Kr),d.__reactInternalMemoizedMergedChildContext=t,Ge(Nt),Ge(mt),ze(mt,t)):Ge(Nt),ze(Nt,a)}var Wn=null,na=!1,hc=!1;function jm(t){Wn===null?Wn=[t]:Wn.push(t)}function hE(t){na=!0,jm(t)}function _r(){if(!hc&&Wn!==null){hc=!0;var t=0,i=$e;try{var a=Wn;for($e=1;t<a.length;t++){var d=a[t];do d=d(!0);while(d!==null)}Wn=null,na=!1}catch(f){throw Wn!==null&&(Wn=Wn.slice(t+1)),Ag(Al,_r),f}finally{$e=i,hc=!1}}return null}var Di=[],Ri=0,ra=null,ia=0,tn=[],nn=0,Qr=null,Hn=1,Vn="";function Xr(t,i){Di[Ri++]=ia,Di[Ri++]=ra,ra=t,ia=i}function Lm(t,i,a){tn[nn++]=Hn,tn[nn++]=Vn,tn[nn++]=Qr,Qr=t;var d=Hn;t=Vn;var f=32-hn(d)-1;d&=~(1<<f),a+=1;var m=32-hn(i)+f;if(30<m){var _=f-f%5;m=(d&(1<<_)-1).toString(32),d>>=_,f-=_,Hn=1<<32-hn(i)+f|a<<f|d,Vn=m+t}else Hn=1<<m|a<<f|d,Vn=t}function gc(t){t.return!==null&&(Xr(t,1),Lm(t,1,0))}function mc(t){for(;t===ra;)ra=Di[--Ri],Di[Ri]=null,ia=Di[--Ri],Di[Ri]=null;for(;t===Qr;)Qr=tn[--nn],tn[nn]=null,Vn=tn[--nn],tn[nn]=null,Hn=tn[--nn],tn[nn]=null}var qt=null,Gt=null,We=!1,mn=null;function Am(t,i){var a=an(5,null,null,0);a.elementType="DELETED",a.stateNode=i,a.return=t,i=t.deletions,i===null?(t.deletions=[a],t.flags|=16):i.push(a)}function Mm(t,i){switch(t.tag){case 5:var a=t.type;return i=i.nodeType!==1||a.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(t.stateNode=i,qt=t,Gt=br(i.firstChild),!0):!1;case 6:return i=t.pendingProps===""||i.nodeType!==3?null:i,i!==null?(t.stateNode=i,qt=t,Gt=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(a=Qr!==null?{id:Hn,overflow:Vn}:null,t.memoizedState={dehydrated:i,treeContext:a,retryLane:1073741824},a=an(18,null,null,0),a.stateNode=i,a.return=t,t.child=a,qt=t,Gt=null,!0):!1;default:return!1}}function vc(t){return(t.mode&1)!==0&&(t.flags&128)===0}function yc(t){if(We){var i=Gt;if(i){var a=i;if(!Mm(t,i)){if(vc(t))throw Error(n(418));i=br(a.nextSibling);var d=qt;i&&Mm(t,i)?Am(d,a):(t.flags=t.flags&-4097|2,We=!1,qt=t)}}else{if(vc(t))throw Error(n(418));t.flags=t.flags&-4097|2,We=!1,qt=t}}}function $m(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;qt=t}function oa(t){if(t!==qt)return!1;if(!We)return $m(t),We=!0,!1;var i;if((i=t.tag!==3)&&!(i=t.tag!==5)&&(i=t.type,i=i!=="head"&&i!=="body"&&!cc(t.type,t.memoizedProps)),i&&(i=Gt)){if(vc(t))throw Fm(),Error(n(418));for(;i;)Am(t,i),i=br(i.nextSibling)}if($m(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(n(317));e:{for(t=t.nextSibling,i=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"){if(i===0){Gt=br(t.nextSibling);break e}i--}else a!=="$"&&a!=="$!"&&a!=="$?"||i++}t=t.nextSibling}Gt=null}}else Gt=qt?br(t.stateNode.nextSibling):null;return!0}function Fm(){for(var t=Gt;t;)t=br(t.nextSibling)}function Ni(){Gt=qt=null,We=!1}function bc(t){mn===null?mn=[t]:mn.push(t)}var gE=M.ReactCurrentBatchConfig;function vn(t,i){if(t&&t.defaultProps){i=D({},i),t=t.defaultProps;for(var a in t)i[a]===void 0&&(i[a]=t[a]);return i}return i}var sa=Sr(null),aa=null,ji=null,Sc=null;function wc(){Sc=ji=aa=null}function _c(t){var i=sa.current;Ge(sa),t._currentValue=i}function Cc(t,i,a){for(;t!==null;){var d=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),t===a)break;t=t.return}}function Li(t,i){aa=t,Sc=ji=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&i)!==0&&(Lt=!0),t.firstContext=null)}function rn(t){var i=t._currentValue;if(Sc!==t)if(t={context:t,memoizedValue:i,next:null},ji===null){if(aa===null)throw Error(n(308));ji=t,aa.dependencies={lanes:0,firstContext:t}}else ji=ji.next=t;return i}var Yr=null;function Ec(t){Yr===null?Yr=[t]:Yr.push(t)}function zm(t,i,a,d){var f=i.interleaved;return f===null?(a.next=a,Ec(i)):(a.next=f.next,f.next=a),i.interleaved=a,Kn(t,d)}function Kn(t,i){t.lanes|=i;var a=t.alternate;for(a!==null&&(a.lanes|=i),a=t,t=t.return;t!==null;)t.childLanes|=i,a=t.alternate,a!==null&&(a.childLanes|=i),a=t,t=t.return;return a.tag===3?a.stateNode:null}var Cr=!1;function Pc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bm(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Qn(t,i){return{eventTime:t,lane:i,tag:0,payload:null,callback:null,next:null}}function Er(t,i,a){var d=t.updateQueue;if(d===null)return null;if(d=d.shared,(Re&2)!==0){var f=d.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),d.pending=i,Kn(t,a)}return f=d.interleaved,f===null?(i.next=i,Ec(d)):(i.next=f.next,f.next=i),d.interleaved=i,Kn(t,a)}function la(t,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194240)!==0)){var d=i.lanes;d&=t.pendingLanes,a|=d,i.lanes=a,Fl(t,a)}}function qm(t,i){var a=t.updateQueue,d=t.alternate;if(d!==null&&(d=d.updateQueue,a===d)){var f=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var _={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};m===null?f=m=_:m=m.next=_,a=a.next}while(a!==null);m===null?f=m=i:m=m.next=i}else f=m=i;a={baseState:d.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:d.shared,effects:d.effects},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=i:t.next=i,a.lastBaseUpdate=i}function ca(t,i,a,d){var f=t.updateQueue;Cr=!1;var m=f.firstBaseUpdate,_=f.lastBaseUpdate,I=f.shared.pending;if(I!==null){f.shared.pending=null;var A=I,G=A.next;A.next=null,_===null?m=G:_.next=G,_=A;var Z=t.alternate;Z!==null&&(Z=Z.updateQueue,I=Z.lastBaseUpdate,I!==_&&(I===null?Z.firstBaseUpdate=G:I.next=G,Z.lastBaseUpdate=A))}if(m!==null){var J=f.baseState;_=0,Z=G=A=null,I=m;do{var Y=I.lane,se=I.eventTime;if((d&Y)===Y){Z!==null&&(Z=Z.next={eventTime:se,lane:0,tag:I.tag,payload:I.payload,callback:I.callback,next:null});e:{var ce=t,de=I;switch(Y=i,se=a,de.tag){case 1:if(ce=de.payload,typeof ce=="function"){J=ce.call(se,J,Y);break e}J=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=de.payload,Y=typeof ce=="function"?ce.call(se,J,Y):ce,Y==null)break e;J=D({},J,Y);break e;case 2:Cr=!0}}I.callback!==null&&I.lane!==0&&(t.flags|=64,Y=f.effects,Y===null?f.effects=[I]:Y.push(I))}else se={eventTime:se,lane:Y,tag:I.tag,payload:I.payload,callback:I.callback,next:null},Z===null?(G=Z=se,A=J):Z=Z.next=se,_|=Y;if(I=I.next,I===null){if(I=f.shared.pending,I===null)break;Y=I,I=Y.next,Y.next=null,f.lastBaseUpdate=Y,f.shared.pending=null}}while(!0);if(Z===null&&(A=J),f.baseState=A,f.firstBaseUpdate=G,f.lastBaseUpdate=Z,i=f.shared.interleaved,i!==null){f=i;do _|=f.lane,f=f.next;while(f!==i)}else m===null&&(f.shared.lanes=0);ei|=_,t.lanes=_,t.memoizedState=J}}function Gm(t,i,a){if(t=i.effects,i.effects=null,t!==null)for(i=0;i<t.length;i++){var d=t[i],f=d.callback;if(f!==null){if(d.callback=null,d=a,typeof f!="function")throw Error(n(191,f));f.call(d)}}}var Um=new o.Component().refs;function kc(t,i,a,d){i=t.memoizedState,a=a(d,i),a=a==null?i:D({},i,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var ua={isMounted:function(t){return(t=t._reactInternals)?Hr(t)===t:!1},enqueueSetState:function(t,i,a){t=t._reactInternals;var d=Pt(),f=Or(t),m=Qn(d,f);m.payload=i,a!=null&&(m.callback=a),i=Er(t,m,f),i!==null&&(Sn(i,t,f,d),la(i,t,f))},enqueueReplaceState:function(t,i,a){t=t._reactInternals;var d=Pt(),f=Or(t),m=Qn(d,f);m.tag=1,m.payload=i,a!=null&&(m.callback=a),i=Er(t,m,f),i!==null&&(Sn(i,t,f,d),la(i,t,f))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var a=Pt(),d=Or(t),f=Qn(a,d);f.tag=2,i!=null&&(f.callback=i),i=Er(t,f,d),i!==null&&(Sn(i,t,d,a),la(i,t,d))}};function Wm(t,i,a,d,f,m,_){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(d,m,_):i.prototype&&i.prototype.isPureReactComponent?!Po(a,d)||!Po(f,m):!0}function Hm(t,i,a){var d=!1,f=wr,m=i.contextType;return typeof m=="object"&&m!==null?m=rn(m):(f=jt(i)?Kr:mt.current,d=i.contextTypes,m=(d=d!=null)?Ii(t,f):wr),i=new i(a,m),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ua,t.stateNode=i,i._reactInternals=t,d&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=f,t.__reactInternalMemoizedMaskedChildContext=m),i}function Vm(t,i,a,d){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,d),i.state!==t&&ua.enqueueReplaceState(i,i.state,null)}function Tc(t,i,a,d){var f=t.stateNode;f.props=a,f.state=t.memoizedState,f.refs=Um,Pc(t);var m=i.contextType;typeof m=="object"&&m!==null?f.context=rn(m):(m=jt(i)?Kr:mt.current,f.context=Ii(t,m)),f.state=t.memoizedState,m=i.getDerivedStateFromProps,typeof m=="function"&&(kc(t,i,m,a),f.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(i=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),i!==f.state&&ua.enqueueReplaceState(f,f.state,null),ca(t,a,f,d),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308)}function Ro(t,i,a){if(t=a.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var d=a.stateNode}if(!d)throw Error(n(147,t));var f=d,m=""+t;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===m?i.ref:(i=function(_){var I=f.refs;I===Um&&(I=f.refs={}),_===null?delete I[m]:I[m]=_},i._stringRef=m,i)}if(typeof t!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,t))}return t}function da(t,i){throw t=Object.prototype.toString.call(i),Error(n(31,t==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":t))}function Km(t){var i=t._init;return i(t._payload)}function Qm(t){function i(B,$){if(t){var q=B.deletions;q===null?(B.deletions=[$],B.flags|=16):q.push($)}}function a(B,$){if(!t)return null;for(;$!==null;)i(B,$),$=$.sibling;return null}function d(B,$){for(B=new Map;$!==null;)$.key!==null?B.set($.key,$):B.set($.index,$),$=$.sibling;return B}function f(B,$){return B=Ir(B,$),B.index=0,B.sibling=null,B}function m(B,$,q){return B.index=q,t?(q=B.alternate,q!==null?(q=q.index,q<$?(B.flags|=2,$):q):(B.flags|=2,$)):(B.flags|=1048576,$)}function _(B){return t&&B.alternate===null&&(B.flags|=2),B}function I(B,$,q,te){return $===null||$.tag!==6?($=uu(q,B.mode,te),$.return=B,$):($=f($,q),$.return=B,$)}function A(B,$,q,te){var fe=q.type;return fe===N?Z(B,$,q.props.children,te,q.key):$!==null&&($.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ge&&Km(fe)===$.type)?(te=f($,q.props),te.ref=Ro(B,$,q),te.return=B,te):(te=Ia(q.type,q.key,q.props,null,B.mode,te),te.ref=Ro(B,$,q),te.return=B,te)}function G(B,$,q,te){return $===null||$.tag!==4||$.stateNode.containerInfo!==q.containerInfo||$.stateNode.implementation!==q.implementation?($=du(q,B.mode,te),$.return=B,$):($=f($,q.children||[]),$.return=B,$)}function Z(B,$,q,te,fe){return $===null||$.tag!==7?($=ii(q,B.mode,te,fe),$.return=B,$):($=f($,q),$.return=B,$)}function J(B,$,q){if(typeof $=="string"&&$!==""||typeof $=="number")return $=uu(""+$,B.mode,q),$.return=B,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case F:return q=Ia($.type,$.key,$.props,null,B.mode,q),q.ref=Ro(B,null,$),q.return=B,q;case j:return $=du($,B.mode,q),$.return=B,$;case ge:var te=$._init;return J(B,te($._payload),q)}if(Me($)||ee($))return $=ii($,B.mode,q,null),$.return=B,$;da(B,$)}return null}function Y(B,$,q,te){var fe=$!==null?$.key:null;if(typeof q=="string"&&q!==""||typeof q=="number")return fe!==null?null:I(B,$,""+q,te);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case F:return q.key===fe?A(B,$,q,te):null;case j:return q.key===fe?G(B,$,q,te):null;case ge:return fe=q._init,Y(B,$,fe(q._payload),te)}if(Me(q)||ee(q))return fe!==null?null:Z(B,$,q,te,null);da(B,q)}return null}function se(B,$,q,te,fe){if(typeof te=="string"&&te!==""||typeof te=="number")return B=B.get(q)||null,I($,B,""+te,fe);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case F:return B=B.get(te.key===null?q:te.key)||null,A($,B,te,fe);case j:return B=B.get(te.key===null?q:te.key)||null,G($,B,te,fe);case ge:var Se=te._init;return se(B,$,q,Se(te._payload),fe)}if(Me(te)||ee(te))return B=B.get(q)||null,Z($,B,te,fe,null);da($,te)}return null}function ce(B,$,q,te){for(var fe=null,Se=null,we=$,Ee=$=0,ut=null;we!==null&&Ee<q.length;Ee++){we.index>Ee?(ut=we,we=null):ut=we.sibling;var Ne=Y(B,we,q[Ee],te);if(Ne===null){we===null&&(we=ut);break}t&&we&&Ne.alternate===null&&i(B,we),$=m(Ne,$,Ee),Se===null?fe=Ne:Se.sibling=Ne,Se=Ne,we=ut}if(Ee===q.length)return a(B,we),We&&Xr(B,Ee),fe;if(we===null){for(;Ee<q.length;Ee++)we=J(B,q[Ee],te),we!==null&&($=m(we,$,Ee),Se===null?fe=we:Se.sibling=we,Se=we);return We&&Xr(B,Ee),fe}for(we=d(B,we);Ee<q.length;Ee++)ut=se(we,B,Ee,q[Ee],te),ut!==null&&(t&&ut.alternate!==null&&we.delete(ut.key===null?Ee:ut.key),$=m(ut,$,Ee),Se===null?fe=ut:Se.sibling=ut,Se=ut);return t&&we.forEach(function(Dr){return i(B,Dr)}),We&&Xr(B,Ee),fe}function de(B,$,q,te){var fe=ee(q);if(typeof fe!="function")throw Error(n(150));if(q=fe.call(q),q==null)throw Error(n(151));for(var Se=fe=null,we=$,Ee=$=0,ut=null,Ne=q.next();we!==null&&!Ne.done;Ee++,Ne=q.next()){we.index>Ee?(ut=we,we=null):ut=we.sibling;var Dr=Y(B,we,Ne.value,te);if(Dr===null){we===null&&(we=ut);break}t&&we&&Dr.alternate===null&&i(B,we),$=m(Dr,$,Ee),Se===null?fe=Dr:Se.sibling=Dr,Se=Dr,we=ut}if(Ne.done)return a(B,we),We&&Xr(B,Ee),fe;if(we===null){for(;!Ne.done;Ee++,Ne=q.next())Ne=J(B,Ne.value,te),Ne!==null&&($=m(Ne,$,Ee),Se===null?fe=Ne:Se.sibling=Ne,Se=Ne);return We&&Xr(B,Ee),fe}for(we=d(B,we);!Ne.done;Ee++,Ne=q.next())Ne=se(we,B,Ee,Ne.value,te),Ne!==null&&(t&&Ne.alternate!==null&&we.delete(Ne.key===null?Ee:Ne.key),$=m(Ne,$,Ee),Se===null?fe=Ne:Se.sibling=Ne,Se=Ne);return t&&we.forEach(function(KE){return i(B,KE)}),We&&Xr(B,Ee),fe}function nt(B,$,q,te){if(typeof q=="object"&&q!==null&&q.type===N&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case F:e:{for(var fe=q.key,Se=$;Se!==null;){if(Se.key===fe){if(fe=q.type,fe===N){if(Se.tag===7){a(B,Se.sibling),$=f(Se,q.props.children),$.return=B,B=$;break e}}else if(Se.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ge&&Km(fe)===Se.type){a(B,Se.sibling),$=f(Se,q.props),$.ref=Ro(B,Se,q),$.return=B,B=$;break e}a(B,Se);break}else i(B,Se);Se=Se.sibling}q.type===N?($=ii(q.props.children,B.mode,te,q.key),$.return=B,B=$):(te=Ia(q.type,q.key,q.props,null,B.mode,te),te.ref=Ro(B,$,q),te.return=B,B=te)}return _(B);case j:e:{for(Se=q.key;$!==null;){if($.key===Se)if($.tag===4&&$.stateNode.containerInfo===q.containerInfo&&$.stateNode.implementation===q.implementation){a(B,$.sibling),$=f($,q.children||[]),$.return=B,B=$;break e}else{a(B,$);break}else i(B,$);$=$.sibling}$=du(q,B.mode,te),$.return=B,B=$}return _(B);case ge:return Se=q._init,nt(B,$,Se(q._payload),te)}if(Me(q))return ce(B,$,q,te);if(ee(q))return de(B,$,q,te);da(B,q)}return typeof q=="string"&&q!==""||typeof q=="number"?(q=""+q,$!==null&&$.tag===6?(a(B,$.sibling),$=f($,q),$.return=B,B=$):(a(B,$),$=uu(q,B.mode,te),$.return=B,B=$),_(B)):a(B,$)}return nt}var Ai=Qm(!0),Xm=Qm(!1),No={},Nn=Sr(No),jo=Sr(No),Lo=Sr(No);function Zr(t){if(t===No)throw Error(n(174));return t}function Oc(t,i){switch(ze(Lo,i),ze(jo,t),ze(Nn,No),t=i.nodeType,t){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Rt(null,"");break;default:t=t===8?i.parentNode:i,i=t.namespaceURI||null,t=t.tagName,i=Rt(i,t)}Ge(Nn),ze(Nn,i)}function Mi(){Ge(Nn),Ge(jo),Ge(Lo)}function Ym(t){Zr(Lo.current);var i=Zr(Nn.current),a=Rt(i,t.type);i!==a&&(ze(jo,t),ze(Nn,a))}function xc(t){jo.current===t&&(Ge(Nn),Ge(jo))}var Xe=Sr(0);function pa(t){for(var i=t;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Ic=[];function Dc(){for(var t=0;t<Ic.length;t++)Ic[t]._workInProgressVersionPrimary=null;Ic.length=0}var fa=M.ReactCurrentDispatcher,Rc=M.ReactCurrentBatchConfig,Jr=0,Ye=null,ot=null,lt=null,ha=!1,Ao=!1,Mo=0,mE=0;function vt(){throw Error(n(321))}function Nc(t,i){if(i===null)return!1;for(var a=0;a<i.length&&a<t.length;a++)if(!gn(t[a],i[a]))return!1;return!0}function jc(t,i,a,d,f,m){if(Jr=m,Ye=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,fa.current=t===null||t.memoizedState===null?SE:wE,t=a(d,f),Ao){m=0;do{if(Ao=!1,Mo=0,25<=m)throw Error(n(301));m+=1,lt=ot=null,i.updateQueue=null,fa.current=_E,t=a(d,f)}while(Ao)}if(fa.current=va,i=ot!==null&&ot.next!==null,Jr=0,lt=ot=Ye=null,ha=!1,i)throw Error(n(300));return t}function Lc(){var t=Mo!==0;return Mo=0,t}function jn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?Ye.memoizedState=lt=t:lt=lt.next=t,lt}function on(){if(ot===null){var t=Ye.alternate;t=t!==null?t.memoizedState:null}else t=ot.next;var i=lt===null?Ye.memoizedState:lt.next;if(i!==null)lt=i,ot=t;else{if(t===null)throw Error(n(310));ot=t,t={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},lt===null?Ye.memoizedState=lt=t:lt=lt.next=t}return lt}function $o(t,i){return typeof i=="function"?i(t):i}function Ac(t){var i=on(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=t;var d=ot,f=d.baseQueue,m=a.pending;if(m!==null){if(f!==null){var _=f.next;f.next=m.next,m.next=_}d.baseQueue=f=m,a.pending=null}if(f!==null){m=f.next,d=d.baseState;var I=_=null,A=null,G=m;do{var Z=G.lane;if((Jr&Z)===Z)A!==null&&(A=A.next={lane:0,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),d=G.hasEagerState?G.eagerState:t(d,G.action);else{var J={lane:Z,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};A===null?(I=A=J,_=d):A=A.next=J,Ye.lanes|=Z,ei|=Z}G=G.next}while(G!==null&&G!==m);A===null?_=d:A.next=I,gn(d,i.memoizedState)||(Lt=!0),i.memoizedState=d,i.baseState=_,i.baseQueue=A,a.lastRenderedState=d}if(t=a.interleaved,t!==null){f=t;do m=f.lane,Ye.lanes|=m,ei|=m,f=f.next;while(f!==t)}else f===null&&(a.lanes=0);return[i.memoizedState,a.dispatch]}function Mc(t){var i=on(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=t;var d=a.dispatch,f=a.pending,m=i.memoizedState;if(f!==null){a.pending=null;var _=f=f.next;do m=t(m,_.action),_=_.next;while(_!==f);gn(m,i.memoizedState)||(Lt=!0),i.memoizedState=m,i.baseQueue===null&&(i.baseState=m),a.lastRenderedState=m}return[m,d]}function Zm(){}function Jm(t,i){var a=Ye,d=on(),f=i(),m=!gn(d.memoizedState,f);if(m&&(d.memoizedState=f,Lt=!0),d=d.queue,$c(nv.bind(null,a,d,t),[t]),d.getSnapshot!==i||m||lt!==null&<.memoizedState.tag&1){if(a.flags|=2048,Fo(9,tv.bind(null,a,d,f,i),void 0,null),ct===null)throw Error(n(349));(Jr&30)!==0||ev(a,i,f)}return f}function ev(t,i,a){t.flags|=16384,t={getSnapshot:i,value:a},i=Ye.updateQueue,i===null?(i={lastEffect:null,stores:null},Ye.updateQueue=i,i.stores=[t]):(a=i.stores,a===null?i.stores=[t]:a.push(t))}function tv(t,i,a,d){i.value=a,i.getSnapshot=d,rv(i)&&iv(t)}function nv(t,i,a){return a(function(){rv(i)&&iv(t)})}function rv(t){var i=t.getSnapshot;t=t.value;try{var a=i();return!gn(t,a)}catch{return!0}}function iv(t){var i=Kn(t,1);i!==null&&Sn(i,t,1,-1)}function ov(t){var i=jn();return typeof t=="function"&&(t=t()),i.memoizedState=i.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:t},i.queue=t,t=t.dispatch=bE.bind(null,Ye,t),[i.memoizedState,t]}function Fo(t,i,a,d){return t={tag:t,create:i,destroy:a,deps:d,next:null},i=Ye.updateQueue,i===null?(i={lastEffect:null,stores:null},Ye.updateQueue=i,i.lastEffect=t.next=t):(a=i.lastEffect,a===null?i.lastEffect=t.next=t:(d=a.next,a.next=t,t.next=d,i.lastEffect=t)),t}function sv(){return on().memoizedState}function ga(t,i,a,d){var f=jn();Ye.flags|=t,f.memoizedState=Fo(1|i,a,void 0,d===void 0?null:d)}function ma(t,i,a,d){var f=on();d=d===void 0?null:d;var m=void 0;if(ot!==null){var _=ot.memoizedState;if(m=_.destroy,d!==null&&Nc(d,_.deps)){f.memoizedState=Fo(i,a,m,d);return}}Ye.flags|=t,f.memoizedState=Fo(1|i,a,m,d)}function av(t,i){return ga(8390656,8,t,i)}function $c(t,i){return ma(2048,8,t,i)}function lv(t,i){return ma(4,2,t,i)}function cv(t,i){return ma(4,4,t,i)}function uv(t,i){if(typeof i=="function")return t=t(),i(t),function(){i(null)};if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function dv(t,i,a){return a=a!=null?a.concat([t]):null,ma(4,4,uv.bind(null,i,t),a)}function Fc(){}function pv(t,i){var a=on();i=i===void 0?null:i;var d=a.memoizedState;return d!==null&&i!==null&&Nc(i,d[1])?d[0]:(a.memoizedState=[t,i],t)}function fv(t,i){var a=on();i=i===void 0?null:i;var d=a.memoizedState;return d!==null&&i!==null&&Nc(i,d[1])?d[0]:(t=t(),a.memoizedState=[t,i],t)}function hv(t,i,a){return(Jr&21)===0?(t.baseState&&(t.baseState=!1,Lt=!0),t.memoizedState=a):(gn(a,i)||(a=zg(),Ye.lanes|=a,ei|=a,t.baseState=!0),i)}function vE(t,i){var a=$e;$e=a!==0&&4>a?a:4,t(!0);var d=Rc.transition;Rc.transition={};try{t(!1),i()}finally{$e=a,Rc.transition=d}}function gv(){return on().memoizedState}function yE(t,i,a){var d=Or(t);if(a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},mv(t))vv(i,a);else if(a=zm(t,i,a,d),a!==null){var f=Pt();Sn(a,t,d,f),yv(a,i,d)}}function bE(t,i,a){var d=Or(t),f={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(mv(t))vv(i,f);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=i.lastRenderedReducer,m!==null))try{var _=i.lastRenderedState,I=m(_,a);if(f.hasEagerState=!0,f.eagerState=I,gn(I,_)){var A=i.interleaved;A===null?(f.next=f,Ec(i)):(f.next=A.next,A.next=f),i.interleaved=f;return}}catch{}a=zm(t,i,f,d),a!==null&&(f=Pt(),Sn(a,t,d,f),yv(a,i,d))}}function mv(t){var i=t.alternate;return t===Ye||i!==null&&i===Ye}function vv(t,i){Ao=ha=!0;var a=t.pending;a===null?i.next=i:(i.next=a.next,a.next=i),t.pending=i}function yv(t,i,a){if((a&4194240)!==0){var d=i.lanes;d&=t.pendingLanes,a|=d,i.lanes=a,Fl(t,a)}}var va={readContext:rn,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useInsertionEffect:vt,useLayoutEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useMutableSource:vt,useSyncExternalStore:vt,useId:vt,unstable_isNewReconciler:!1},SE={readContext:rn,useCallback:function(t,i){return jn().memoizedState=[t,i===void 0?null:i],t},useContext:rn,useEffect:av,useImperativeHandle:function(t,i,a){return a=a!=null?a.concat([t]):null,ga(4194308,4,uv.bind(null,i,t),a)},useLayoutEffect:function(t,i){return ga(4194308,4,t,i)},useInsertionEffect:function(t,i){return ga(4,2,t,i)},useMemo:function(t,i){var a=jn();return i=i===void 0?null:i,t=t(),a.memoizedState=[t,i],t},useReducer:function(t,i,a){var d=jn();return i=a!==void 0?a(i):i,d.memoizedState=d.baseState=i,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},d.queue=t,t=t.dispatch=yE.bind(null,Ye,t),[d.memoizedState,t]},useRef:function(t){var i=jn();return t={current:t},i.memoizedState=t},useState:ov,useDebugValue:Fc,useDeferredValue:function(t){return jn().memoizedState=t},useTransition:function(){var t=ov(!1),i=t[0];return t=vE.bind(null,t[1]),jn().memoizedState=t,[i,t]},useMutableSource:function(){},useSyncExternalStore:function(t,i,a){var d=Ye,f=jn();if(We){if(a===void 0)throw Error(n(407));a=a()}else{if(a=i(),ct===null)throw Error(n(349));(Jr&30)!==0||ev(d,i,a)}f.memoizedState=a;var m={value:a,getSnapshot:i};return f.queue=m,av(nv.bind(null,d,m,t),[t]),d.flags|=2048,Fo(9,tv.bind(null,d,m,a,i),void 0,null),a},useId:function(){var t=jn(),i=ct.identifierPrefix;if(We){var a=Vn,d=Hn;a=(d&~(1<<32-hn(d)-1)).toString(32)+a,i=":"+i+"R"+a,a=Mo++,0<a&&(i+="H"+a.toString(32)),i+=":"}else a=mE++,i=":"+i+"r"+a.toString(32)+":";return t.memoizedState=i},unstable_isNewReconciler:!1},wE={readContext:rn,useCallback:pv,useContext:rn,useEffect:$c,useImperativeHandle:dv,useInsertionEffect:lv,useLayoutEffect:cv,useMemo:fv,useReducer:Ac,useRef:sv,useState:function(){return Ac($o)},useDebugValue:Fc,useDeferredValue:function(t){var i=on();return hv(i,ot.memoizedState,t)},useTransition:function(){var t=Ac($o)[0],i=on().memoizedState;return[t,i]},useMutableSource:Zm,useSyncExternalStore:Jm,useId:gv,unstable_isNewReconciler:!1},_E={readContext:rn,useCallback:pv,useContext:rn,useEffect:$c,useImperativeHandle:dv,useInsertionEffect:lv,useLayoutEffect:cv,useMemo:fv,useReducer:Mc,useRef:sv,useState:function(){return Mc($o)},useDebugValue:Fc,useDeferredValue:function(t){var i=on();return ot===null?i.memoizedState=t:hv(i,ot.memoizedState,t)},useTransition:function(){var t=Mc($o)[0],i=on().memoizedState;return[t,i]},useMutableSource:Zm,useSyncExternalStore:Jm,useId:gv,unstable_isNewReconciler:!1};function $i(t,i){try{var a="",d=i;do a+=_e(d),d=d.return;while(d);var f=a}catch(m){f=`
|
|
8
|
+
Error generating stack: `+m.message+`
|
|
9
|
+
`+m.stack}return{value:t,source:i,stack:f,digest:null}}function zc(t,i,a){return{value:t,source:null,stack:a??null,digest:i??null}}function Bc(t,i){try{console.error(i.value)}catch(a){setTimeout(function(){throw a})}}var CE=typeof WeakMap=="function"?WeakMap:Map;function bv(t,i,a){a=Qn(-1,a),a.tag=3,a.payload={element:null};var d=i.value;return a.callback=function(){Ea||(Ea=!0,nu=d),Bc(t,i)},a}function Sv(t,i,a){a=Qn(-1,a),a.tag=3;var d=t.type.getDerivedStateFromError;if(typeof d=="function"){var f=i.value;a.payload=function(){return d(f)},a.callback=function(){Bc(t,i)}}var m=t.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(a.callback=function(){Bc(t,i),typeof d!="function"&&(kr===null?kr=new Set([this]):kr.add(this));var _=i.stack;this.componentDidCatch(i.value,{componentStack:_!==null?_:""})}),a}function wv(t,i,a){var d=t.pingCache;if(d===null){d=t.pingCache=new CE;var f=new Set;d.set(i,f)}else f=d.get(i),f===void 0&&(f=new Set,d.set(i,f));f.has(a)||(f.add(a),t=ME.bind(null,t,i,a),i.then(t,t))}function _v(t){do{var i;if((i=t.tag===13)&&(i=t.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return t;t=t.return}while(t!==null);return null}function Cv(t,i,a,d,f){return(t.mode&1)===0?(t===i?t.flags|=65536:(t.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(i=Qn(-1,1),i.tag=2,Er(a,i,1))),a.lanes|=1),t):(t.flags|=65536,t.lanes=f,t)}var EE=M.ReactCurrentOwner,Lt=!1;function Et(t,i,a,d){i.child=t===null?Xm(i,null,a,d):Ai(i,t.child,a,d)}function Ev(t,i,a,d,f){a=a.render;var m=i.ref;return Li(i,f),d=jc(t,i,a,d,m,f),a=Lc(),t!==null&&!Lt?(i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~f,Xn(t,i,f)):(We&&a&&gc(i),i.flags|=1,Et(t,i,d,f),i.child)}function Pv(t,i,a,d,f){if(t===null){var m=a.type;return typeof m=="function"&&!cu(m)&&m.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(i.tag=15,i.type=m,kv(t,i,m,d,f)):(t=Ia(a.type,null,d,i,i.mode,f),t.ref=i.ref,t.return=i,i.child=t)}if(m=t.child,(t.lanes&f)===0){var _=m.memoizedProps;if(a=a.compare,a=a!==null?a:Po,a(_,d)&&t.ref===i.ref)return Xn(t,i,f)}return i.flags|=1,t=Ir(m,d),t.ref=i.ref,t.return=i,i.child=t}function kv(t,i,a,d,f){if(t!==null){var m=t.memoizedProps;if(Po(m,d)&&t.ref===i.ref)if(Lt=!1,i.pendingProps=d=m,(t.lanes&f)!==0)(t.flags&131072)!==0&&(Lt=!0);else return i.lanes=t.lanes,Xn(t,i,f)}return qc(t,i,a,d,f)}function Tv(t,i,a){var d=i.pendingProps,f=d.children,m=t!==null?t.memoizedState:null;if(d.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze(zi,Ut),Ut|=a;else{if((a&1073741824)===0)return t=m!==null?m.baseLanes|a:a,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:t,cachePool:null,transitions:null},i.updateQueue=null,ze(zi,Ut),Ut|=t,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=m!==null?m.baseLanes:a,ze(zi,Ut),Ut|=d}else m!==null?(d=m.baseLanes|a,i.memoizedState=null):d=a,ze(zi,Ut),Ut|=d;return Et(t,i,f,a),i.child}function Ov(t,i){var a=i.ref;(t===null&&a!==null||t!==null&&t.ref!==a)&&(i.flags|=512,i.flags|=2097152)}function qc(t,i,a,d,f){var m=jt(a)?Kr:mt.current;return m=Ii(i,m),Li(i,f),a=jc(t,i,a,d,m,f),d=Lc(),t!==null&&!Lt?(i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~f,Xn(t,i,f)):(We&&d&&gc(i),i.flags|=1,Et(t,i,a,f),i.child)}function xv(t,i,a,d,f){if(jt(a)){var m=!0;ta(i)}else m=!1;if(Li(i,f),i.stateNode===null)ba(t,i),Hm(i,a,d),Tc(i,a,d,f),d=!0;else if(t===null){var _=i.stateNode,I=i.memoizedProps;_.props=I;var A=_.context,G=a.contextType;typeof G=="object"&&G!==null?G=rn(G):(G=jt(a)?Kr:mt.current,G=Ii(i,G));var Z=a.getDerivedStateFromProps,J=typeof Z=="function"||typeof _.getSnapshotBeforeUpdate=="function";J||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(I!==d||A!==G)&&Vm(i,_,d,G),Cr=!1;var Y=i.memoizedState;_.state=Y,ca(i,d,_,f),A=i.memoizedState,I!==d||Y!==A||Nt.current||Cr?(typeof Z=="function"&&(kc(i,a,Z,d),A=i.memoizedState),(I=Cr||Wm(i,a,I,d,Y,A,G))?(J||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(i.flags|=4194308)):(typeof _.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=A),_.props=d,_.state=A,_.context=G,d=I):(typeof _.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{_=i.stateNode,Bm(t,i),I=i.memoizedProps,G=i.type===i.elementType?I:vn(i.type,I),_.props=G,J=i.pendingProps,Y=_.context,A=a.contextType,typeof A=="object"&&A!==null?A=rn(A):(A=jt(a)?Kr:mt.current,A=Ii(i,A));var se=a.getDerivedStateFromProps;(Z=typeof se=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(I!==J||Y!==A)&&Vm(i,_,d,A),Cr=!1,Y=i.memoizedState,_.state=Y,ca(i,d,_,f);var ce=i.memoizedState;I!==J||Y!==ce||Nt.current||Cr?(typeof se=="function"&&(kc(i,a,se,d),ce=i.memoizedState),(G=Cr||Wm(i,a,G,d,Y,ce,A)||!1)?(Z||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(d,ce,A),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(d,ce,A)),typeof _.componentDidUpdate=="function"&&(i.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof _.componentDidUpdate!="function"||I===t.memoizedProps&&Y===t.memoizedState||(i.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||I===t.memoizedProps&&Y===t.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=ce),_.props=d,_.state=ce,_.context=A,d=G):(typeof _.componentDidUpdate!="function"||I===t.memoizedProps&&Y===t.memoizedState||(i.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||I===t.memoizedProps&&Y===t.memoizedState||(i.flags|=1024),d=!1)}return Gc(t,i,a,d,m,f)}function Gc(t,i,a,d,f,m){Ov(t,i);var _=(i.flags&128)!==0;if(!d&&!_)return f&&Nm(i,a,!1),Xn(t,i,m);d=i.stateNode,EE.current=i;var I=_&&typeof a.getDerivedStateFromError!="function"?null:d.render();return i.flags|=1,t!==null&&_?(i.child=Ai(i,t.child,null,m),i.child=Ai(i,null,I,m)):Et(t,i,I,m),i.memoizedState=d.state,f&&Nm(i,a,!0),i.child}function Iv(t){var i=t.stateNode;i.pendingContext?Dm(t,i.pendingContext,i.pendingContext!==i.context):i.context&&Dm(t,i.context,!1),Oc(t,i.containerInfo)}function Dv(t,i,a,d,f){return Ni(),bc(f),i.flags|=256,Et(t,i,a,d),i.child}var Uc={dehydrated:null,treeContext:null,retryLane:0};function Wc(t){return{baseLanes:t,cachePool:null,transitions:null}}function Rv(t,i,a){var d=i.pendingProps,f=Xe.current,m=!1,_=(i.flags&128)!==0,I;if((I=_)||(I=t!==null&&t.memoizedState===null?!1:(f&2)!==0),I?(m=!0,i.flags&=-129):(t===null||t.memoizedState!==null)&&(f|=1),ze(Xe,f&1),t===null)return yc(i),t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((i.mode&1)===0?i.lanes=1:t.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(_=d.children,t=d.fallback,m?(d=i.mode,m=i.child,_={mode:"hidden",children:_},(d&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=_):m=Da(_,d,0,null),t=ii(t,d,a,null),m.return=i,t.return=i,m.sibling=t,i.child=m,i.child.memoizedState=Wc(a),i.memoizedState=Uc,t):Hc(i,_));if(f=t.memoizedState,f!==null&&(I=f.dehydrated,I!==null))return PE(t,i,_,d,I,f,a);if(m){m=d.fallback,_=i.mode,f=t.child,I=f.sibling;var A={mode:"hidden",children:d.children};return(_&1)===0&&i.child!==f?(d=i.child,d.childLanes=0,d.pendingProps=A,i.deletions=null):(d=Ir(f,A),d.subtreeFlags=f.subtreeFlags&14680064),I!==null?m=Ir(I,m):(m=ii(m,_,a,null),m.flags|=2),m.return=i,d.return=i,d.sibling=m,i.child=d,d=m,m=i.child,_=t.child.memoizedState,_=_===null?Wc(a):{baseLanes:_.baseLanes|a,cachePool:null,transitions:_.transitions},m.memoizedState=_,m.childLanes=t.childLanes&~a,i.memoizedState=Uc,d}return m=t.child,t=m.sibling,d=Ir(m,{mode:"visible",children:d.children}),(i.mode&1)===0&&(d.lanes=a),d.return=i,d.sibling=null,t!==null&&(a=i.deletions,a===null?(i.deletions=[t],i.flags|=16):a.push(t)),i.child=d,i.memoizedState=null,d}function Hc(t,i){return i=Da({mode:"visible",children:i},t.mode,0,null),i.return=t,t.child=i}function ya(t,i,a,d){return d!==null&&bc(d),Ai(i,t.child,null,a),t=Hc(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function PE(t,i,a,d,f,m,_){if(a)return i.flags&256?(i.flags&=-257,d=zc(Error(n(422))),ya(t,i,_,d)):i.memoizedState!==null?(i.child=t.child,i.flags|=128,null):(m=d.fallback,f=i.mode,d=Da({mode:"visible",children:d.children},f,0,null),m=ii(m,f,_,null),m.flags|=2,d.return=i,m.return=i,d.sibling=m,i.child=d,(i.mode&1)!==0&&Ai(i,t.child,null,_),i.child.memoizedState=Wc(_),i.memoizedState=Uc,m);if((i.mode&1)===0)return ya(t,i,_,null);if(f.data==="$!"){if(d=f.nextSibling&&f.nextSibling.dataset,d)var I=d.dgst;return d=I,m=Error(n(419)),d=zc(m,d,void 0),ya(t,i,_,d)}if(I=(_&t.childLanes)!==0,Lt||I){if(d=ct,d!==null){switch(_&-_){case 4:f=2;break;case 16:f=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(d.suspendedLanes|_))!==0?0:f,f!==0&&f!==m.retryLane&&(m.retryLane=f,Kn(t,f),Sn(d,t,f,-1))}return lu(),d=zc(Error(n(421))),ya(t,i,_,d)}return f.data==="$?"?(i.flags|=128,i.child=t.child,i=$E.bind(null,t),f._reactRetry=i,null):(t=m.treeContext,Gt=br(f.nextSibling),qt=i,We=!0,mn=null,t!==null&&(tn[nn++]=Hn,tn[nn++]=Vn,tn[nn++]=Qr,Hn=t.id,Vn=t.overflow,Qr=i),i=Hc(i,d.children),i.flags|=4096,i)}function Nv(t,i,a){t.lanes|=i;var d=t.alternate;d!==null&&(d.lanes|=i),Cc(t.return,i,a)}function Vc(t,i,a,d,f){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:f}:(m.isBackwards=i,m.rendering=null,m.renderingStartTime=0,m.last=d,m.tail=a,m.tailMode=f)}function jv(t,i,a){var d=i.pendingProps,f=d.revealOrder,m=d.tail;if(Et(t,i,d.children,a),d=Xe.current,(d&2)!==0)d=d&1|2,i.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Nv(t,a,i);else if(t.tag===19)Nv(t,a,i);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===i)break e;for(;t.sibling===null;){if(t.return===null||t.return===i)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}d&=1}if(ze(Xe,d),(i.mode&1)===0)i.memoizedState=null;else switch(f){case"forwards":for(a=i.child,f=null;a!==null;)t=a.alternate,t!==null&&pa(t)===null&&(f=a),a=a.sibling;a=f,a===null?(f=i.child,i.child=null):(f=a.sibling,a.sibling=null),Vc(i,!1,f,a,m);break;case"backwards":for(a=null,f=i.child,i.child=null;f!==null;){if(t=f.alternate,t!==null&&pa(t)===null){i.child=f;break}t=f.sibling,f.sibling=a,a=f,f=t}Vc(i,!0,a,null,m);break;case"together":Vc(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ba(t,i){(i.mode&1)===0&&t!==null&&(t.alternate=null,i.alternate=null,i.flags|=2)}function Xn(t,i,a){if(t!==null&&(i.dependencies=t.dependencies),ei|=i.lanes,(a&i.childLanes)===0)return null;if(t!==null&&i.child!==t.child)throw Error(n(153));if(i.child!==null){for(t=i.child,a=Ir(t,t.pendingProps),i.child=a,a.return=i;t.sibling!==null;)t=t.sibling,a=a.sibling=Ir(t,t.pendingProps),a.return=i;a.sibling=null}return i.child}function kE(t,i,a){switch(i.tag){case 3:Iv(i),Ni();break;case 5:Ym(i);break;case 1:jt(i.type)&&ta(i);break;case 4:Oc(i,i.stateNode.containerInfo);break;case 10:var d=i.type._context,f=i.memoizedProps.value;ze(sa,d._currentValue),d._currentValue=f;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?(ze(Xe,Xe.current&1),i.flags|=128,null):(a&i.child.childLanes)!==0?Rv(t,i,a):(ze(Xe,Xe.current&1),t=Xn(t,i,a),t!==null?t.sibling:null);ze(Xe,Xe.current&1);break;case 19:if(d=(a&i.childLanes)!==0,(t.flags&128)!==0){if(d)return jv(t,i,a);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ze(Xe,Xe.current),d)break;return null;case 22:case 23:return i.lanes=0,Tv(t,i,a)}return Xn(t,i,a)}var Lv,Kc,Av,Mv;Lv=function(t,i){for(var a=i.child;a!==null;){if(a.tag===5||a.tag===6)t.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Kc=function(){},Av=function(t,i,a,d){var f=t.memoizedProps;if(f!==d){t=i.stateNode,Zr(Nn.current);var m=null;switch(a){case"input":f=cr(t,f),d=cr(t,d),m=[];break;case"select":f=D({},f,{value:void 0}),d=D({},d,{value:void 0}),m=[];break;case"textarea":f=Qe(t,f),d=Qe(t,d),m=[];break;default:typeof f.onClick!="function"&&typeof d.onClick=="function"&&(t.onclick=Zs)}dr(a,d);var _;a=null;for(G in f)if(!d.hasOwnProperty(G)&&f.hasOwnProperty(G)&&f[G]!=null)if(G==="style"){var I=f[G];for(_ in I)I.hasOwnProperty(_)&&(a||(a={}),a[_]="")}else G!=="dangerouslySetInnerHTML"&&G!=="children"&&G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&G!=="autoFocus"&&(s.hasOwnProperty(G)?m||(m=[]):(m=m||[]).push(G,null));for(G in d){var A=d[G];if(I=f?.[G],d.hasOwnProperty(G)&&A!==I&&(A!=null||I!=null))if(G==="style")if(I){for(_ in I)!I.hasOwnProperty(_)||A&&A.hasOwnProperty(_)||(a||(a={}),a[_]="");for(_ in A)A.hasOwnProperty(_)&&I[_]!==A[_]&&(a||(a={}),a[_]=A[_])}else a||(m||(m=[]),m.push(G,a)),a=A;else G==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,I=I?I.__html:void 0,A!=null&&I!==A&&(m=m||[]).push(G,A)):G==="children"?typeof A!="string"&&typeof A!="number"||(m=m||[]).push(G,""+A):G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&(s.hasOwnProperty(G)?(A!=null&&G==="onScroll"&&qe("scroll",t),m||I===A||(m=[])):(m=m||[]).push(G,A))}a&&(m=m||[]).push("style",a);var G=m;(i.updateQueue=G)&&(i.flags|=4)}},Mv=function(t,i,a,d){a!==d&&(i.flags|=4)};function zo(t,i){if(!We)switch(t.tailMode){case"hidden":i=t.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?i||t.tail===null?t.tail=null:t.tail.sibling=null:d.sibling=null}}function yt(t){var i=t.alternate!==null&&t.alternate.child===t.child,a=0,d=0;if(i)for(var f=t.child;f!==null;)a|=f.lanes|f.childLanes,d|=f.subtreeFlags&14680064,d|=f.flags&14680064,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)a|=f.lanes|f.childLanes,d|=f.subtreeFlags,d|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=d,t.childLanes=a,i}function TE(t,i,a){var d=i.pendingProps;switch(mc(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(i),null;case 1:return jt(i.type)&&ea(),yt(i),null;case 3:return d=i.stateNode,Mi(),Ge(Nt),Ge(mt),Dc(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(t===null||t.child===null)&&(oa(i)?i.flags|=4:t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,mn!==null&&(ou(mn),mn=null))),Kc(t,i),yt(i),null;case 5:xc(i);var f=Zr(Lo.current);if(a=i.type,t!==null&&i.stateNode!=null)Av(t,i,a,d,f),t.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!d){if(i.stateNode===null)throw Error(n(166));return yt(i),null}if(t=Zr(Nn.current),oa(i)){d=i.stateNode,a=i.type;var m=i.memoizedProps;switch(d[Rn]=i,d[Io]=m,t=(i.mode&1)!==0,a){case"dialog":qe("cancel",d),qe("close",d);break;case"iframe":case"object":case"embed":qe("load",d);break;case"video":case"audio":for(f=0;f<To.length;f++)qe(To[f],d);break;case"source":qe("error",d);break;case"img":case"image":case"link":qe("error",d),qe("load",d);break;case"details":qe("toggle",d);break;case"input":De(d,m),qe("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!m.multiple},qe("invalid",d);break;case"textarea":Be(d,m),qe("invalid",d)}dr(a,m),f=null;for(var _ in m)if(m.hasOwnProperty(_)){var I=m[_];_==="children"?typeof I=="string"?d.textContent!==I&&(m.suppressHydrationWarning!==!0&&Ys(d.textContent,I,t),f=["children",I]):typeof I=="number"&&d.textContent!==""+I&&(m.suppressHydrationWarning!==!0&&Ys(d.textContent,I,t),f=["children",""+I]):s.hasOwnProperty(_)&&I!=null&&_==="onScroll"&&qe("scroll",d)}switch(a){case"input":Ot(d),xt(d,m,!0);break;case"textarea":Ot(d),Dt(d);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(d.onclick=Zs)}d=f,i.updateQueue=d,d!==null&&(i.flags|=4)}else{_=f.nodeType===9?f:f.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=On(a)),t==="http://www.w3.org/1999/xhtml"?a==="script"?(t=_.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof d.is=="string"?t=_.createElement(a,{is:d.is}):(t=_.createElement(a),a==="select"&&(_=t,d.multiple?_.multiple=!0:d.size&&(_.size=d.size))):t=_.createElementNS(t,a),t[Rn]=i,t[Io]=d,Lv(t,i,!1,!1),i.stateNode=t;e:{switch(_=pr(a,d),a){case"dialog":qe("cancel",t),qe("close",t),f=d;break;case"iframe":case"object":case"embed":qe("load",t),f=d;break;case"video":case"audio":for(f=0;f<To.length;f++)qe(To[f],t);f=d;break;case"source":qe("error",t),f=d;break;case"img":case"image":case"link":qe("error",t),qe("load",t),f=d;break;case"details":qe("toggle",t),f=d;break;case"input":De(t,d),f=cr(t,d),qe("invalid",t);break;case"option":f=d;break;case"select":t._wrapperState={wasMultiple:!!d.multiple},f=D({},d,{value:void 0}),qe("invalid",t);break;case"textarea":Be(t,d),f=Qe(t,d),qe("invalid",t);break;default:f=d}dr(a,f),I=f;for(m in I)if(I.hasOwnProperty(m)){var A=I[m];m==="style"?Ft(t,A):m==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&xn(t,A)):m==="children"?typeof A=="string"?(a!=="textarea"||A!=="")&&en(t,A):typeof A=="number"&&en(t,""+A):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(s.hasOwnProperty(m)?A!=null&&m==="onScroll"&&qe("scroll",t):A!=null&&R(t,m,A,_))}switch(a){case"input":Ot(t),xt(t,d,!1);break;case"textarea":Ot(t),Dt(t);break;case"option":d.value!=null&&t.setAttribute("value",""+Ce(d.value));break;case"select":t.multiple=!!d.multiple,m=d.value,m!=null?Ke(t,!!d.multiple,m,!1):d.defaultValue!=null&&Ke(t,!!d.multiple,d.defaultValue,!0);break;default:typeof f.onClick=="function"&&(t.onclick=Zs)}switch(a){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return yt(i),null;case 6:if(t&&i.stateNode!=null)Mv(t,i,t.memoizedProps,d);else{if(typeof d!="string"&&i.stateNode===null)throw Error(n(166));if(a=Zr(Lo.current),Zr(Nn.current),oa(i)){if(d=i.stateNode,a=i.memoizedProps,d[Rn]=i,(m=d.nodeValue!==a)&&(t=qt,t!==null))switch(t.tag){case 3:Ys(d.nodeValue,a,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ys(d.nodeValue,a,(t.mode&1)!==0)}m&&(i.flags|=4)}else d=(a.nodeType===9?a:a.ownerDocument).createTextNode(d),d[Rn]=i,i.stateNode=d}return yt(i),null;case 13:if(Ge(Xe),d=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(We&&Gt!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Fm(),Ni(),i.flags|=98560,m=!1;else if(m=oa(i),d!==null&&d.dehydrated!==null){if(t===null){if(!m)throw Error(n(318));if(m=i.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[Rn]=i}else Ni(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;yt(i),m=!1}else mn!==null&&(ou(mn),mn=null),m=!0;if(!m)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=a,i):(d=d!==null,d!==(t!==null&&t.memoizedState!==null)&&d&&(i.child.flags|=8192,(i.mode&1)!==0&&(t===null||(Xe.current&1)!==0?st===0&&(st=3):lu())),i.updateQueue!==null&&(i.flags|=4),yt(i),null);case 4:return Mi(),Kc(t,i),t===null&&Oo(i.stateNode.containerInfo),yt(i),null;case 10:return _c(i.type._context),yt(i),null;case 17:return jt(i.type)&&ea(),yt(i),null;case 19:if(Ge(Xe),m=i.memoizedState,m===null)return yt(i),null;if(d=(i.flags&128)!==0,_=m.rendering,_===null)if(d)zo(m,!1);else{if(st!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(_=pa(t),_!==null){for(i.flags|=128,zo(m,!1),d=_.updateQueue,d!==null&&(i.updateQueue=d,i.flags|=4),i.subtreeFlags=0,d=a,a=i.child;a!==null;)m=a,t=d,m.flags&=14680066,_=m.alternate,_===null?(m.childLanes=0,m.lanes=t,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=_.childLanes,m.lanes=_.lanes,m.child=_.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=_.memoizedProps,m.memoizedState=_.memoizedState,m.updateQueue=_.updateQueue,m.type=_.type,t=_.dependencies,m.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),a=a.sibling;return ze(Xe,Xe.current&1|2),i.child}t=t.sibling}m.tail!==null&&tt()>Bi&&(i.flags|=128,d=!0,zo(m,!1),i.lanes=4194304)}else{if(!d)if(t=pa(_),t!==null){if(i.flags|=128,d=!0,a=t.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),zo(m,!0),m.tail===null&&m.tailMode==="hidden"&&!_.alternate&&!We)return yt(i),null}else 2*tt()-m.renderingStartTime>Bi&&a!==1073741824&&(i.flags|=128,d=!0,zo(m,!1),i.lanes=4194304);m.isBackwards?(_.sibling=i.child,i.child=_):(a=m.last,a!==null?a.sibling=_:i.child=_,m.last=_)}return m.tail!==null?(i=m.tail,m.rendering=i,m.tail=i.sibling,m.renderingStartTime=tt(),i.sibling=null,a=Xe.current,ze(Xe,d?a&1|2:a&1),i):(yt(i),null);case 22:case 23:return au(),d=i.memoizedState!==null,t!==null&&t.memoizedState!==null!==d&&(i.flags|=8192),d&&(i.mode&1)!==0?(Ut&1073741824)!==0&&(yt(i),i.subtreeFlags&6&&(i.flags|=8192)):yt(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function OE(t,i){switch(mc(i),i.tag){case 1:return jt(i.type)&&ea(),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return Mi(),Ge(Nt),Ge(mt),Dc(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 5:return xc(i),null;case 13:if(Ge(Xe),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(n(340));Ni()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return Ge(Xe),null;case 4:return Mi(),null;case 10:return _c(i.type._context),null;case 22:case 23:return au(),null;case 24:return null;default:return null}}var Sa=!1,bt=!1,xE=typeof WeakSet=="function"?WeakSet:Set,le=null;function Fi(t,i){var a=t.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){Je(t,i,d)}else a.current=null}function Qc(t,i,a){try{a()}catch(d){Je(t,i,d)}}var $v=!1;function IE(t,i){if(ac=zs,t=gm(),Jl(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var d=a.getSelection&&a.getSelection();if(d&&d.rangeCount!==0){a=d.anchorNode;var f=d.anchorOffset,m=d.focusNode;d=d.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var _=0,I=-1,A=-1,G=0,Z=0,J=t,Y=null;t:for(;;){for(var se;J!==a||f!==0&&J.nodeType!==3||(I=_+f),J!==m||d!==0&&J.nodeType!==3||(A=_+d),J.nodeType===3&&(_+=J.nodeValue.length),(se=J.firstChild)!==null;)Y=J,J=se;for(;;){if(J===t)break t;if(Y===a&&++G===f&&(I=_),Y===m&&++Z===d&&(A=_),(se=J.nextSibling)!==null)break;J=Y,Y=J.parentNode}J=se}a=I===-1||A===-1?null:{start:I,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(lc={focusedElem:t,selectionRange:a},zs=!1,le=i;le!==null;)if(i=le,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,le=t;else for(;le!==null;){i=le;try{var ce=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(ce!==null){var de=ce.memoizedProps,nt=ce.memoizedState,B=i.stateNode,$=B.getSnapshotBeforeUpdate(i.elementType===i.type?de:vn(i.type,de),nt);B.__reactInternalSnapshotBeforeUpdate=$}break;case 3:var q=i.stateNode.containerInfo;q.nodeType===1?q.textContent="":q.nodeType===9&&q.documentElement&&q.removeChild(q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(te){Je(i,i.return,te)}if(t=i.sibling,t!==null){t.return=i.return,le=t;break}le=i.return}return ce=$v,$v=!1,ce}function Bo(t,i,a){var d=i.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var f=d=d.next;do{if((f.tag&t)===t){var m=f.destroy;f.destroy=void 0,m!==void 0&&Qc(i,a,m)}f=f.next}while(f!==d)}}function wa(t,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&t)===t){var d=a.create;a.destroy=d()}a=a.next}while(a!==i)}}function Xc(t){var i=t.ref;if(i!==null){var a=t.stateNode;t.tag,t=a,typeof i=="function"?i(t):i.current=t}}function Fv(t){var i=t.alternate;i!==null&&(t.alternate=null,Fv(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&(delete i[Rn],delete i[Io],delete i[pc],delete i[pE],delete i[fE])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function zv(t){return t.tag===5||t.tag===3||t.tag===4}function Bv(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||zv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Yc(t,i,a){var d=t.tag;if(d===5||d===6)t=t.stateNode,i?a.nodeType===8?a.parentNode.insertBefore(t,i):a.insertBefore(t,i):(a.nodeType===8?(i=a.parentNode,i.insertBefore(t,a)):(i=a,i.appendChild(t)),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=Zs));else if(d!==4&&(t=t.child,t!==null))for(Yc(t,i,a),t=t.sibling;t!==null;)Yc(t,i,a),t=t.sibling}function Zc(t,i,a){var d=t.tag;if(d===5||d===6)t=t.stateNode,i?a.insertBefore(t,i):a.appendChild(t);else if(d!==4&&(t=t.child,t!==null))for(Zc(t,i,a),t=t.sibling;t!==null;)Zc(t,i,a),t=t.sibling}var pt=null,yn=!1;function Pr(t,i,a){for(a=a.child;a!==null;)qv(t,i,a),a=a.sibling}function qv(t,i,a){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(js,a)}catch{}switch(a.tag){case 5:bt||Fi(a,i);case 6:var d=pt,f=yn;pt=null,Pr(t,i,a),pt=d,yn=f,pt!==null&&(yn?(t=pt,a=a.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)):pt.removeChild(a.stateNode));break;case 18:pt!==null&&(yn?(t=pt,a=a.stateNode,t.nodeType===8?dc(t.parentNode,a):t.nodeType===1&&dc(t,a),bo(t)):dc(pt,a.stateNode));break;case 4:d=pt,f=yn,pt=a.stateNode.containerInfo,yn=!0,Pr(t,i,a),pt=d,yn=f;break;case 0:case 11:case 14:case 15:if(!bt&&(d=a.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){f=d=d.next;do{var m=f,_=m.destroy;m=m.tag,_!==void 0&&((m&2)!==0||(m&4)!==0)&&Qc(a,i,_),f=f.next}while(f!==d)}Pr(t,i,a);break;case 1:if(!bt&&(Fi(a,i),d=a.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(I){Je(a,i,I)}Pr(t,i,a);break;case 21:Pr(t,i,a);break;case 22:a.mode&1?(bt=(d=bt)||a.memoizedState!==null,Pr(t,i,a),bt=d):Pr(t,i,a);break;default:Pr(t,i,a)}}function Gv(t){var i=t.updateQueue;if(i!==null){t.updateQueue=null;var a=t.stateNode;a===null&&(a=t.stateNode=new xE),i.forEach(function(d){var f=FE.bind(null,t,d);a.has(d)||(a.add(d),d.then(f,f))})}}function bn(t,i){var a=i.deletions;if(a!==null)for(var d=0;d<a.length;d++){var f=a[d];try{var m=t,_=i,I=_;e:for(;I!==null;){switch(I.tag){case 5:pt=I.stateNode,yn=!1;break e;case 3:pt=I.stateNode.containerInfo,yn=!0;break e;case 4:pt=I.stateNode.containerInfo,yn=!0;break e}I=I.return}if(pt===null)throw Error(n(160));qv(m,_,f),pt=null,yn=!1;var A=f.alternate;A!==null&&(A.return=null),f.return=null}catch(G){Je(f,i,G)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Uv(i,t),i=i.sibling}function Uv(t,i){var a=t.alternate,d=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(bn(i,t),Ln(t),d&4){try{Bo(3,t,t.return),wa(3,t)}catch(de){Je(t,t.return,de)}try{Bo(5,t,t.return)}catch(de){Je(t,t.return,de)}}break;case 1:bn(i,t),Ln(t),d&512&&a!==null&&Fi(a,a.return);break;case 5:if(bn(i,t),Ln(t),d&512&&a!==null&&Fi(a,a.return),t.flags&32){var f=t.stateNode;try{en(f,"")}catch(de){Je(t,t.return,de)}}if(d&4&&(f=t.stateNode,f!=null)){var m=t.memoizedProps,_=a!==null?a.memoizedProps:m,I=t.type,A=t.updateQueue;if(t.updateQueue=null,A!==null)try{I==="input"&&m.type==="radio"&&m.name!=null&&pn(f,m),pr(I,_);var G=pr(I,m);for(_=0;_<A.length;_+=2){var Z=A[_],J=A[_+1];Z==="style"?Ft(f,J):Z==="dangerouslySetInnerHTML"?xn(f,J):Z==="children"?en(f,J):R(f,Z,J,G)}switch(I){case"input":xe(f,m);break;case"textarea":It(f,m);break;case"select":var Y=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!m.multiple;var se=m.value;se!=null?Ke(f,!!m.multiple,se,!1):Y!==!!m.multiple&&(m.defaultValue!=null?Ke(f,!!m.multiple,m.defaultValue,!0):Ke(f,!!m.multiple,m.multiple?[]:"",!1))}f[Io]=m}catch(de){Je(t,t.return,de)}}break;case 6:if(bn(i,t),Ln(t),d&4){if(t.stateNode===null)throw Error(n(162));f=t.stateNode,m=t.memoizedProps;try{f.nodeValue=m}catch(de){Je(t,t.return,de)}}break;case 3:if(bn(i,t),Ln(t),d&4&&a!==null&&a.memoizedState.isDehydrated)try{bo(i.containerInfo)}catch(de){Je(t,t.return,de)}break;case 4:bn(i,t),Ln(t);break;case 13:bn(i,t),Ln(t),f=t.child,f.flags&8192&&(m=f.memoizedState!==null,f.stateNode.isHidden=m,!m||f.alternate!==null&&f.alternate.memoizedState!==null||(tu=tt())),d&4&&Gv(t);break;case 22:if(Z=a!==null&&a.memoizedState!==null,t.mode&1?(bt=(G=bt)||Z,bn(i,t),bt=G):bn(i,t),Ln(t),d&8192){if(G=t.memoizedState!==null,(t.stateNode.isHidden=G)&&!Z&&(t.mode&1)!==0)for(le=t,Z=t.child;Z!==null;){for(J=le=Z;le!==null;){switch(Y=le,se=Y.child,Y.tag){case 0:case 11:case 14:case 15:Bo(4,Y,Y.return);break;case 1:Fi(Y,Y.return);var ce=Y.stateNode;if(typeof ce.componentWillUnmount=="function"){d=Y,a=Y.return;try{i=d,ce.props=i.memoizedProps,ce.state=i.memoizedState,ce.componentWillUnmount()}catch(de){Je(d,a,de)}}break;case 5:Fi(Y,Y.return);break;case 22:if(Y.memoizedState!==null){Vv(J);continue}}se!==null?(se.return=Y,le=se):Vv(J)}Z=Z.sibling}e:for(Z=null,J=t;;){if(J.tag===5){if(Z===null){Z=J;try{f=J.stateNode,G?(m=f.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(I=J.stateNode,A=J.memoizedProps.style,_=A!=null&&A.hasOwnProperty("display")?A.display:null,I.style.display=Ct("display",_))}catch(de){Je(t,t.return,de)}}}else if(J.tag===6){if(Z===null)try{J.stateNode.nodeValue=G?"":J.memoizedProps}catch(de){Je(t,t.return,de)}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===t)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===t)break e;for(;J.sibling===null;){if(J.return===null||J.return===t)break e;Z===J&&(Z=null),J=J.return}Z===J&&(Z=null),J.sibling.return=J.return,J=J.sibling}}break;case 19:bn(i,t),Ln(t),d&4&&Gv(t);break;case 21:break;default:bn(i,t),Ln(t)}}function Ln(t){var i=t.flags;if(i&2){try{e:{for(var a=t.return;a!==null;){if(zv(a)){var d=a;break e}a=a.return}throw Error(n(160))}switch(d.tag){case 5:var f=d.stateNode;d.flags&32&&(en(f,""),d.flags&=-33);var m=Bv(t);Zc(t,m,f);break;case 3:case 4:var _=d.stateNode.containerInfo,I=Bv(t);Yc(t,I,_);break;default:throw Error(n(161))}}catch(A){Je(t,t.return,A)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function DE(t,i,a){le=t,Wv(t)}function Wv(t,i,a){for(var d=(t.mode&1)!==0;le!==null;){var f=le,m=f.child;if(f.tag===22&&d){var _=f.memoizedState!==null||Sa;if(!_){var I=f.alternate,A=I!==null&&I.memoizedState!==null||bt;I=Sa;var G=bt;if(Sa=_,(bt=A)&&!G)for(le=f;le!==null;)_=le,A=_.child,_.tag===22&&_.memoizedState!==null?Kv(f):A!==null?(A.return=_,le=A):Kv(f);for(;m!==null;)le=m,Wv(m),m=m.sibling;le=f,Sa=I,bt=G}Hv(t)}else(f.subtreeFlags&8772)!==0&&m!==null?(m.return=f,le=m):Hv(t)}}function Hv(t){for(;le!==null;){var i=le;if((i.flags&8772)!==0){var a=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:bt||wa(5,i);break;case 1:var d=i.stateNode;if(i.flags&4&&!bt)if(a===null)d.componentDidMount();else{var f=i.elementType===i.type?a.memoizedProps:vn(i.type,a.memoizedProps);d.componentDidUpdate(f,a.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var m=i.updateQueue;m!==null&&Gm(i,m,d);break;case 3:var _=i.updateQueue;if(_!==null){if(a=null,i.child!==null)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}Gm(i,_,a)}break;case 5:var I=i.stateNode;if(a===null&&i.flags&4){a=I;var A=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&a.focus();break;case"img":A.src&&(a.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var G=i.alternate;if(G!==null){var Z=G.memoizedState;if(Z!==null){var J=Z.dehydrated;J!==null&&bo(J)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}bt||i.flags&512&&Xc(i)}catch(Y){Je(i,i.return,Y)}}if(i===t){le=null;break}if(a=i.sibling,a!==null){a.return=i.return,le=a;break}le=i.return}}function Vv(t){for(;le!==null;){var i=le;if(i===t){le=null;break}var a=i.sibling;if(a!==null){a.return=i.return,le=a;break}le=i.return}}function Kv(t){for(;le!==null;){var i=le;try{switch(i.tag){case 0:case 11:case 15:var a=i.return;try{wa(4,i)}catch(A){Je(i,a,A)}break;case 1:var d=i.stateNode;if(typeof d.componentDidMount=="function"){var f=i.return;try{d.componentDidMount()}catch(A){Je(i,f,A)}}var m=i.return;try{Xc(i)}catch(A){Je(i,m,A)}break;case 5:var _=i.return;try{Xc(i)}catch(A){Je(i,_,A)}}}catch(A){Je(i,i.return,A)}if(i===t){le=null;break}var I=i.sibling;if(I!==null){I.return=i.return,le=I;break}le=i.return}}var RE=Math.ceil,_a=M.ReactCurrentDispatcher,Jc=M.ReactCurrentOwner,sn=M.ReactCurrentBatchConfig,Re=0,ct=null,rt=null,ft=0,Ut=0,zi=Sr(0),st=0,qo=null,ei=0,Ca=0,eu=0,Go=null,At=null,tu=0,Bi=1/0,Yn=null,Ea=!1,nu=null,kr=null,Pa=!1,Tr=null,ka=0,Uo=0,ru=null,Ta=-1,Oa=0;function Pt(){return(Re&6)!==0?tt():Ta!==-1?Ta:Ta=tt()}function Or(t){return(t.mode&1)===0?1:(Re&2)!==0&&ft!==0?ft&-ft:gE.transition!==null?(Oa===0&&(Oa=zg()),Oa):(t=$e,t!==0||(t=window.event,t=t===void 0?16:Qg(t.type)),t)}function Sn(t,i,a,d){if(50<Uo)throw Uo=0,ru=null,Error(n(185));ho(t,a,d),((Re&2)===0||t!==ct)&&(t===ct&&((Re&2)===0&&(Ca|=a),st===4&&xr(t,ft)),Mt(t,d),a===1&&Re===0&&(i.mode&1)===0&&(Bi=tt()+500,na&&_r()))}function Mt(t,i){var a=t.callbackNode;gC(t,i);var d=Ms(t,t===ct?ft:0);if(d===0)a!==null&&Mg(a),t.callbackNode=null,t.callbackPriority=0;else if(i=d&-d,t.callbackPriority!==i){if(a!=null&&Mg(a),i===1)t.tag===0?hE(Xv.bind(null,t)):jm(Xv.bind(null,t)),uE(function(){(Re&6)===0&&_r()}),a=null;else{switch(Bg(d)){case 1:a=Al;break;case 4:a=$g;break;case 16:a=Ns;break;case 536870912:a=Fg;break;default:a=Ns}a=iy(a,Qv.bind(null,t))}t.callbackPriority=i,t.callbackNode=a}}function Qv(t,i){if(Ta=-1,Oa=0,(Re&6)!==0)throw Error(n(327));var a=t.callbackNode;if(qi()&&t.callbackNode!==a)return null;var d=Ms(t,t===ct?ft:0);if(d===0)return null;if((d&30)!==0||(d&t.expiredLanes)!==0||i)i=xa(t,d);else{i=d;var f=Re;Re|=2;var m=Zv();(ct!==t||ft!==i)&&(Yn=null,Bi=tt()+500,ni(t,i));do try{LE();break}catch(I){Yv(t,I)}while(!0);wc(),_a.current=m,Re=f,rt!==null?i=0:(ct=null,ft=0,i=st)}if(i!==0){if(i===2&&(f=Ml(t),f!==0&&(d=f,i=iu(t,f))),i===1)throw a=qo,ni(t,0),xr(t,d),Mt(t,tt()),a;if(i===6)xr(t,d);else{if(f=t.current.alternate,(d&30)===0&&!NE(f)&&(i=xa(t,d),i===2&&(m=Ml(t),m!==0&&(d=m,i=iu(t,m))),i===1))throw a=qo,ni(t,0),xr(t,d),Mt(t,tt()),a;switch(t.finishedWork=f,t.finishedLanes=d,i){case 0:case 1:throw Error(n(345));case 2:ri(t,At,Yn);break;case 3:if(xr(t,d),(d&130023424)===d&&(i=tu+500-tt(),10<i)){if(Ms(t,0)!==0)break;if(f=t.suspendedLanes,(f&d)!==d){Pt(),t.pingedLanes|=t.suspendedLanes&f;break}t.timeoutHandle=uc(ri.bind(null,t,At,Yn),i);break}ri(t,At,Yn);break;case 4:if(xr(t,d),(d&4194240)===d)break;for(i=t.eventTimes,f=-1;0<d;){var _=31-hn(d);m=1<<_,_=i[_],_>f&&(f=_),d&=~m}if(d=f,d=tt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*RE(d/1960))-d,10<d){t.timeoutHandle=uc(ri.bind(null,t,At,Yn),d);break}ri(t,At,Yn);break;case 5:ri(t,At,Yn);break;default:throw Error(n(329))}}}return Mt(t,tt()),t.callbackNode===a?Qv.bind(null,t):null}function iu(t,i){var a=Go;return t.current.memoizedState.isDehydrated&&(ni(t,i).flags|=256),t=xa(t,i),t!==2&&(i=At,At=a,i!==null&&ou(i)),t}function ou(t){At===null?At=t:At.push.apply(At,t)}function NE(t){for(var i=t;;){if(i.flags&16384){var a=i.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var d=0;d<a.length;d++){var f=a[d],m=f.getSnapshot;f=f.value;try{if(!gn(m(),f))return!1}catch{return!1}}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function xr(t,i){for(i&=~eu,i&=~Ca,t.suspendedLanes|=i,t.pingedLanes&=~i,t=t.expirationTimes;0<i;){var a=31-hn(i),d=1<<a;t[a]=-1,i&=~d}}function Xv(t){if((Re&6)!==0)throw Error(n(327));qi();var i=Ms(t,0);if((i&1)===0)return Mt(t,tt()),null;var a=xa(t,i);if(t.tag!==0&&a===2){var d=Ml(t);d!==0&&(i=d,a=iu(t,d))}if(a===1)throw a=qo,ni(t,0),xr(t,i),Mt(t,tt()),a;if(a===6)throw Error(n(345));return t.finishedWork=t.current.alternate,t.finishedLanes=i,ri(t,At,Yn),Mt(t,tt()),null}function su(t,i){var a=Re;Re|=1;try{return t(i)}finally{Re=a,Re===0&&(Bi=tt()+500,na&&_r())}}function ti(t){Tr!==null&&Tr.tag===0&&(Re&6)===0&&qi();var i=Re;Re|=1;var a=sn.transition,d=$e;try{if(sn.transition=null,$e=1,t)return t()}finally{$e=d,sn.transition=a,Re=i,(Re&6)===0&&_r()}}function au(){Ut=zi.current,Ge(zi)}function ni(t,i){t.finishedWork=null,t.finishedLanes=0;var a=t.timeoutHandle;if(a!==-1&&(t.timeoutHandle=-1,cE(a)),rt!==null)for(a=rt.return;a!==null;){var d=a;switch(mc(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&ea();break;case 3:Mi(),Ge(Nt),Ge(mt),Dc();break;case 5:xc(d);break;case 4:Mi();break;case 13:Ge(Xe);break;case 19:Ge(Xe);break;case 10:_c(d.type._context);break;case 22:case 23:au()}a=a.return}if(ct=t,rt=t=Ir(t.current,null),ft=Ut=i,st=0,qo=null,eu=Ca=ei=0,At=Go=null,Yr!==null){for(i=0;i<Yr.length;i++)if(a=Yr[i],d=a.interleaved,d!==null){a.interleaved=null;var f=d.next,m=a.pending;if(m!==null){var _=m.next;m.next=f,d.next=_}a.pending=d}Yr=null}return t}function Yv(t,i){do{var a=rt;try{if(wc(),fa.current=va,ha){for(var d=Ye.memoizedState;d!==null;){var f=d.queue;f!==null&&(f.pending=null),d=d.next}ha=!1}if(Jr=0,lt=ot=Ye=null,Ao=!1,Mo=0,Jc.current=null,a===null||a.return===null){st=1,qo=i,rt=null;break}e:{var m=t,_=a.return,I=a,A=i;if(i=ft,I.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var G=A,Z=I,J=Z.tag;if((Z.mode&1)===0&&(J===0||J===11||J===15)){var Y=Z.alternate;Y?(Z.updateQueue=Y.updateQueue,Z.memoizedState=Y.memoizedState,Z.lanes=Y.lanes):(Z.updateQueue=null,Z.memoizedState=null)}var se=_v(_);if(se!==null){se.flags&=-257,Cv(se,_,I,m,i),se.mode&1&&wv(m,G,i),i=se,A=G;var ce=i.updateQueue;if(ce===null){var de=new Set;de.add(A),i.updateQueue=de}else ce.add(A);break e}else{if((i&1)===0){wv(m,G,i),lu();break e}A=Error(n(426))}}else if(We&&I.mode&1){var nt=_v(_);if(nt!==null){(nt.flags&65536)===0&&(nt.flags|=256),Cv(nt,_,I,m,i),bc($i(A,I));break e}}m=A=$i(A,I),st!==4&&(st=2),Go===null?Go=[m]:Go.push(m),m=_;do{switch(m.tag){case 3:m.flags|=65536,i&=-i,m.lanes|=i;var B=bv(m,A,i);qm(m,B);break e;case 1:I=A;var $=m.type,q=m.stateNode;if((m.flags&128)===0&&(typeof $.getDerivedStateFromError=="function"||q!==null&&typeof q.componentDidCatch=="function"&&(kr===null||!kr.has(q)))){m.flags|=65536,i&=-i,m.lanes|=i;var te=Sv(m,I,i);qm(m,te);break e}}m=m.return}while(m!==null)}ey(a)}catch(fe){i=fe,rt===a&&a!==null&&(rt=a=a.return);continue}break}while(!0)}function Zv(){var t=_a.current;return _a.current=va,t===null?va:t}function lu(){(st===0||st===3||st===2)&&(st=4),ct===null||(ei&268435455)===0&&(Ca&268435455)===0||xr(ct,ft)}function xa(t,i){var a=Re;Re|=2;var d=Zv();(ct!==t||ft!==i)&&(Yn=null,ni(t,i));do try{jE();break}catch(f){Yv(t,f)}while(!0);if(wc(),Re=a,_a.current=d,rt!==null)throw Error(n(261));return ct=null,ft=0,st}function jE(){for(;rt!==null;)Jv(rt)}function LE(){for(;rt!==null&&!sC();)Jv(rt)}function Jv(t){var i=ry(t.alternate,t,Ut);t.memoizedProps=t.pendingProps,i===null?ey(t):rt=i,Jc.current=null}function ey(t){var i=t;do{var a=i.alternate;if(t=i.return,(i.flags&32768)===0){if(a=TE(a,i,Ut),a!==null){rt=a;return}}else{if(a=OE(a,i),a!==null){a.flags&=32767,rt=a;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{st=6,rt=null;return}}if(i=i.sibling,i!==null){rt=i;return}rt=i=t}while(i!==null);st===0&&(st=5)}function ri(t,i,a){var d=$e,f=sn.transition;try{sn.transition=null,$e=1,AE(t,i,a,d)}finally{sn.transition=f,$e=d}return null}function AE(t,i,a,d){do qi();while(Tr!==null);if((Re&6)!==0)throw Error(n(327));a=t.finishedWork;var f=t.finishedLanes;if(a===null)return null;if(t.finishedWork=null,t.finishedLanes=0,a===t.current)throw Error(n(177));t.callbackNode=null,t.callbackPriority=0;var m=a.lanes|a.childLanes;if(mC(t,m),t===ct&&(rt=ct=null,ft=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Pa||(Pa=!0,iy(Ns,function(){return qi(),null})),m=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||m){m=sn.transition,sn.transition=null;var _=$e;$e=1;var I=Re;Re|=4,Jc.current=null,IE(t,a),Uv(a,t),nE(lc),zs=!!ac,lc=ac=null,t.current=a,DE(a),aC(),Re=I,$e=_,sn.transition=m}else t.current=a;if(Pa&&(Pa=!1,Tr=t,ka=f),m=t.pendingLanes,m===0&&(kr=null),uC(a.stateNode),Mt(t,tt()),i!==null)for(d=t.onRecoverableError,a=0;a<i.length;a++)f=i[a],d(f.value,{componentStack:f.stack,digest:f.digest});if(Ea)throw Ea=!1,t=nu,nu=null,t;return(ka&1)!==0&&t.tag!==0&&qi(),m=t.pendingLanes,(m&1)!==0?t===ru?Uo++:(Uo=0,ru=t):Uo=0,_r(),null}function qi(){if(Tr!==null){var t=Bg(ka),i=sn.transition,a=$e;try{if(sn.transition=null,$e=16>t?16:t,Tr===null)var d=!1;else{if(t=Tr,Tr=null,ka=0,(Re&6)!==0)throw Error(n(331));var f=Re;for(Re|=4,le=t.current;le!==null;){var m=le,_=m.child;if((le.flags&16)!==0){var I=m.deletions;if(I!==null){for(var A=0;A<I.length;A++){var G=I[A];for(le=G;le!==null;){var Z=le;switch(Z.tag){case 0:case 11:case 15:Bo(8,Z,m)}var J=Z.child;if(J!==null)J.return=Z,le=J;else for(;le!==null;){Z=le;var Y=Z.sibling,se=Z.return;if(Fv(Z),Z===G){le=null;break}if(Y!==null){Y.return=se,le=Y;break}le=se}}}var ce=m.alternate;if(ce!==null){var de=ce.child;if(de!==null){ce.child=null;do{var nt=de.sibling;de.sibling=null,de=nt}while(de!==null)}}le=m}}if((m.subtreeFlags&2064)!==0&&_!==null)_.return=m,le=_;else e:for(;le!==null;){if(m=le,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:Bo(9,m,m.return)}var B=m.sibling;if(B!==null){B.return=m.return,le=B;break e}le=m.return}}var $=t.current;for(le=$;le!==null;){_=le;var q=_.child;if((_.subtreeFlags&2064)!==0&&q!==null)q.return=_,le=q;else e:for(_=$;le!==null;){if(I=le,(I.flags&2048)!==0)try{switch(I.tag){case 0:case 11:case 15:wa(9,I)}}catch(fe){Je(I,I.return,fe)}if(I===_){le=null;break e}var te=I.sibling;if(te!==null){te.return=I.return,le=te;break e}le=I.return}}if(Re=f,_r(),Dn&&typeof Dn.onPostCommitFiberRoot=="function")try{Dn.onPostCommitFiberRoot(js,t)}catch{}d=!0}return d}finally{$e=a,sn.transition=i}}return!1}function ty(t,i,a){i=$i(a,i),i=bv(t,i,1),t=Er(t,i,1),i=Pt(),t!==null&&(ho(t,1,i),Mt(t,i))}function Je(t,i,a){if(t.tag===3)ty(t,t,a);else for(;i!==null;){if(i.tag===3){ty(i,t,a);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(kr===null||!kr.has(d))){t=$i(a,t),t=Sv(i,t,1),i=Er(i,t,1),t=Pt(),i!==null&&(ho(i,1,t),Mt(i,t));break}}i=i.return}}function ME(t,i,a){var d=t.pingCache;d!==null&&d.delete(i),i=Pt(),t.pingedLanes|=t.suspendedLanes&a,ct===t&&(ft&a)===a&&(st===4||st===3&&(ft&130023424)===ft&&500>tt()-tu?ni(t,0):eu|=a),Mt(t,i)}function ny(t,i){i===0&&((t.mode&1)===0?i=1:(i=As,As<<=1,(As&130023424)===0&&(As=4194304)));var a=Pt();t=Kn(t,i),t!==null&&(ho(t,i,a),Mt(t,a))}function $E(t){var i=t.memoizedState,a=0;i!==null&&(a=i.retryLane),ny(t,a)}function FE(t,i){var a=0;switch(t.tag){case 13:var d=t.stateNode,f=t.memoizedState;f!==null&&(a=f.retryLane);break;case 19:d=t.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(i),ny(t,a)}var ry;ry=function(t,i,a){if(t!==null)if(t.memoizedProps!==i.pendingProps||Nt.current)Lt=!0;else{if((t.lanes&a)===0&&(i.flags&128)===0)return Lt=!1,kE(t,i,a);Lt=(t.flags&131072)!==0}else Lt=!1,We&&(i.flags&1048576)!==0&&Lm(i,ia,i.index);switch(i.lanes=0,i.tag){case 2:var d=i.type;ba(t,i),t=i.pendingProps;var f=Ii(i,mt.current);Li(i,a),f=jc(null,i,d,t,f,a);var m=Lc();return i.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,jt(d)?(m=!0,ta(i)):m=!1,i.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Pc(i),f.updater=ua,i.stateNode=f,f._reactInternals=i,Tc(i,d,t,a),i=Gc(null,i,d,!0,m,a)):(i.tag=0,We&&m&&gc(i),Et(null,i,f,a),i=i.child),i;case 16:d=i.elementType;e:{switch(ba(t,i),t=i.pendingProps,f=d._init,d=f(d._payload),i.type=d,f=i.tag=BE(d),t=vn(d,t),f){case 0:i=qc(null,i,d,t,a);break e;case 1:i=xv(null,i,d,t,a);break e;case 11:i=Ev(null,i,d,t,a);break e;case 14:i=Pv(null,i,d,vn(d.type,t),a);break e}throw Error(n(306,d,""))}return i;case 0:return d=i.type,f=i.pendingProps,f=i.elementType===d?f:vn(d,f),qc(t,i,d,f,a);case 1:return d=i.type,f=i.pendingProps,f=i.elementType===d?f:vn(d,f),xv(t,i,d,f,a);case 3:e:{if(Iv(i),t===null)throw Error(n(387));d=i.pendingProps,m=i.memoizedState,f=m.element,Bm(t,i),ca(i,d,null,a);var _=i.memoizedState;if(d=_.element,m.isDehydrated)if(m={element:d,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},i.updateQueue.baseState=m,i.memoizedState=m,i.flags&256){f=$i(Error(n(423)),i),i=Dv(t,i,d,a,f);break e}else if(d!==f){f=$i(Error(n(424)),i),i=Dv(t,i,d,a,f);break e}else for(Gt=br(i.stateNode.containerInfo.firstChild),qt=i,We=!0,mn=null,a=Xm(i,null,d,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ni(),d===f){i=Xn(t,i,a);break e}Et(t,i,d,a)}i=i.child}return i;case 5:return Ym(i),t===null&&yc(i),d=i.type,f=i.pendingProps,m=t!==null?t.memoizedProps:null,_=f.children,cc(d,f)?_=null:m!==null&&cc(d,m)&&(i.flags|=32),Ov(t,i),Et(t,i,_,a),i.child;case 6:return t===null&&yc(i),null;case 13:return Rv(t,i,a);case 4:return Oc(i,i.stateNode.containerInfo),d=i.pendingProps,t===null?i.child=Ai(i,null,d,a):Et(t,i,d,a),i.child;case 11:return d=i.type,f=i.pendingProps,f=i.elementType===d?f:vn(d,f),Ev(t,i,d,f,a);case 7:return Et(t,i,i.pendingProps,a),i.child;case 8:return Et(t,i,i.pendingProps.children,a),i.child;case 12:return Et(t,i,i.pendingProps.children,a),i.child;case 10:e:{if(d=i.type._context,f=i.pendingProps,m=i.memoizedProps,_=f.value,ze(sa,d._currentValue),d._currentValue=_,m!==null)if(gn(m.value,_)){if(m.children===f.children&&!Nt.current){i=Xn(t,i,a);break e}}else for(m=i.child,m!==null&&(m.return=i);m!==null;){var I=m.dependencies;if(I!==null){_=m.child;for(var A=I.firstContext;A!==null;){if(A.context===d){if(m.tag===1){A=Qn(-1,a&-a),A.tag=2;var G=m.updateQueue;if(G!==null){G=G.shared;var Z=G.pending;Z===null?A.next=A:(A.next=Z.next,Z.next=A),G.pending=A}}m.lanes|=a,A=m.alternate,A!==null&&(A.lanes|=a),Cc(m.return,a,i),I.lanes|=a;break}A=A.next}}else if(m.tag===10)_=m.type===i.type?null:m.child;else if(m.tag===18){if(_=m.return,_===null)throw Error(n(341));_.lanes|=a,I=_.alternate,I!==null&&(I.lanes|=a),Cc(_,a,i),_=m.sibling}else _=m.child;if(_!==null)_.return=m;else for(_=m;_!==null;){if(_===i){_=null;break}if(m=_.sibling,m!==null){m.return=_.return,_=m;break}_=_.return}m=_}Et(t,i,f.children,a),i=i.child}return i;case 9:return f=i.type,d=i.pendingProps.children,Li(i,a),f=rn(f),d=d(f),i.flags|=1,Et(t,i,d,a),i.child;case 14:return d=i.type,f=vn(d,i.pendingProps),f=vn(d.type,f),Pv(t,i,d,f,a);case 15:return kv(t,i,i.type,i.pendingProps,a);case 17:return d=i.type,f=i.pendingProps,f=i.elementType===d?f:vn(d,f),ba(t,i),i.tag=1,jt(d)?(t=!0,ta(i)):t=!1,Li(i,a),Hm(i,d,f),Tc(i,d,f,a),Gc(null,i,d,!0,t,a);case 19:return jv(t,i,a);case 22:return Tv(t,i,a)}throw Error(n(156,i.tag))};function iy(t,i){return Ag(t,i)}function zE(t,i,a,d){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function an(t,i,a,d){return new zE(t,i,a,d)}function cu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function BE(t){if(typeof t=="function")return cu(t)?1:0;if(t!=null){if(t=t.$$typeof,t===re)return 11;if(t===oe)return 14}return 2}function Ir(t,i){var a=t.alternate;return a===null?(a=an(t.tag,i,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=i,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&14680064,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,i=t.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a}function Ia(t,i,a,d,f,m){var _=2;if(d=t,typeof t=="function")cu(t)&&(_=1);else if(typeof t=="string")_=5;else e:switch(t){case N:return ii(a.children,f,m,i);case z:_=8,f|=8;break;case U:return t=an(12,a,i,f|2),t.elementType=U,t.lanes=m,t;case ne:return t=an(13,a,i,f),t.elementType=ne,t.lanes=m,t;case ae:return t=an(19,a,i,f),t.elementType=ae,t.lanes=m,t;case me:return Da(a,f,m,i);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:_=10;break e;case Q:_=9;break e;case re:_=11;break e;case oe:_=14;break e;case ge:_=16,d=null;break e}throw Error(n(130,t==null?t:typeof t,""))}return i=an(_,a,i,f),i.elementType=t,i.type=d,i.lanes=m,i}function ii(t,i,a,d){return t=an(7,t,d,i),t.lanes=a,t}function Da(t,i,a,d){return t=an(22,t,d,i),t.elementType=me,t.lanes=a,t.stateNode={isHidden:!1},t}function uu(t,i,a){return t=an(6,t,null,i),t.lanes=a,t}function du(t,i,a){return i=an(4,t.children!==null?t.children:[],t.key,i),i.lanes=a,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}function qE(t,i,a,d,f){this.tag=i,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$l(0),this.expirationTimes=$l(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$l(0),this.identifierPrefix=d,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function pu(t,i,a,d,f,m,_,I,A){return t=new qE(t,i,a,I,A),i===1?(i=1,m===!0&&(i|=8)):i=0,m=an(3,null,null,i),t.current=m,m.stateNode=t,m.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pc(m),t}function GE(t,i,a){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:d==null?null:""+d,children:t,containerInfo:i,implementation:a}}function oy(t){if(!t)return wr;t=t._reactInternals;e:{if(Hr(t)!==t||t.tag!==1)throw Error(n(170));var i=t;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(jt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(t.tag===1){var a=t.type;if(jt(a))return Rm(t,a,i)}return i}function sy(t,i,a,d,f,m,_,I,A){return t=pu(a,d,!0,t,f,m,_,I,A),t.context=oy(null),a=t.current,d=Pt(),f=Or(a),m=Qn(d,f),m.callback=i??null,Er(a,m,f),t.current.lanes=f,ho(t,f,d),Mt(t,d),t}function Ra(t,i,a,d){var f=i.current,m=Pt(),_=Or(f);return a=oy(a),i.context===null?i.context=a:i.pendingContext=a,i=Qn(m,_),i.payload={element:t},d=d===void 0?null:d,d!==null&&(i.callback=d),t=Er(f,i,_),t!==null&&(Sn(t,f,_,m),la(t,f,_)),_}function Na(t){return t=t.current,t.child?(t.child.tag===5,t.child.stateNode):null}function ay(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<i?a:i}}function fu(t,i){ay(t,i),(t=t.alternate)&&ay(t,i)}function UE(){return null}var ly=typeof reportError=="function"?reportError:function(t){console.error(t)};function hu(t){this._internalRoot=t}ja.prototype.render=hu.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(n(409));Ra(t,i,null,null)},ja.prototype.unmount=hu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;ti(function(){Ra(null,t,null,null)}),i[Un]=null}};function ja(t){this._internalRoot=t}ja.prototype.unstable_scheduleHydration=function(t){if(t){var i=Ug();t={blockedOn:null,target:t,priority:i};for(var a=0;a<mr.length&&i!==0&&i<mr[a].priority;a++);mr.splice(a,0,t),a===0&&Vg(t)}};function gu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function La(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function cy(){}function WE(t,i,a,d,f){if(f){if(typeof d=="function"){var m=d;d=function(){var G=Na(_);m.call(G)}}var _=sy(i,d,t,0,null,!1,!1,"",cy);return t._reactRootContainer=_,t[Un]=_.current,Oo(t.nodeType===8?t.parentNode:t),ti(),_}for(;f=t.lastChild;)t.removeChild(f);if(typeof d=="function"){var I=d;d=function(){var G=Na(A);I.call(G)}}var A=pu(t,0,!1,null,null,!1,!1,"",cy);return t._reactRootContainer=A,t[Un]=A.current,Oo(t.nodeType===8?t.parentNode:t),ti(function(){Ra(i,A,a,d)}),A}function Aa(t,i,a,d,f){var m=a._reactRootContainer;if(m){var _=m;if(typeof f=="function"){var I=f;f=function(){var A=Na(_);I.call(A)}}Ra(i,_,t,f)}else _=WE(a,i,t,f,d);return Na(_)}qg=function(t){switch(t.tag){case 3:var i=t.stateNode;if(i.current.memoizedState.isDehydrated){var a=fo(i.pendingLanes);a!==0&&(Fl(i,a|1),Mt(i,tt()),(Re&6)===0&&(Bi=tt()+500,_r()))}break;case 13:ti(function(){var d=Kn(t,1);if(d!==null){var f=Pt();Sn(d,t,1,f)}}),fu(t,1)}},zl=function(t){if(t.tag===13){var i=Kn(t,134217728);if(i!==null){var a=Pt();Sn(i,t,134217728,a)}fu(t,134217728)}},Gg=function(t){if(t.tag===13){var i=Or(t),a=Kn(t,i);if(a!==null){var d=Pt();Sn(a,t,i,d)}fu(t,i)}},Ug=function(){return $e},Wg=function(t,i){var a=$e;try{return $e=t,i()}finally{$e=a}},Gr=function(t,i,a){switch(i){case"input":if(xe(t,a),i=a.name,a.type==="radio"&&i!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<a.length;i++){var d=a[i];if(d!==t&&d.form===t.form){var f=Js(d);if(!f)throw Error(n(90));lr(d),xe(d,f)}}}break;case"textarea":It(t,a);break;case"select":i=a.value,i!=null&&Ke(t,!!a.multiple,i,!1)}},ao=su,lo=ti;var HE={usingClientEntryPoint:!1,Events:[Do,Oi,Js,Gn,Wr,su]},Wo={findFiberByHostInstance:Vr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},VE={bundleType:Wo.bundleType,version:Wo.version,rendererPackageName:Wo.rendererPackageName,rendererConfig:Wo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=jg(t),t===null?null:t.stateNode},findFiberByHostInstance:Wo.findFiberByHostInstance||UE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ma=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ma.isDisabled&&Ma.supportsFiber)try{js=Ma.inject(VE),Dn=Ma}catch{}}return $t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=HE,$t.createPortal=function(t,i){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gu(i))throw Error(n(200));return GE(t,i,null,a)},$t.createRoot=function(t,i){if(!gu(t))throw Error(n(299));var a=!1,d="",f=ly;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onRecoverableError!==void 0&&(f=i.onRecoverableError)),i=pu(t,1,!1,null,null,a,!1,d,f),t[Un]=i.current,Oo(t.nodeType===8?t.parentNode:t),new hu(i)},$t.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var i=t._reactInternals;if(i===void 0)throw typeof t.render=="function"?Error(n(188)):(t=Object.keys(t).join(","),Error(n(268,t)));return t=jg(i),t=t===null?null:t.stateNode,t},$t.flushSync=function(t){return ti(t)},$t.hydrate=function(t,i,a){if(!La(i))throw Error(n(200));return Aa(null,t,i,!0,a)},$t.hydrateRoot=function(t,i,a){if(!gu(t))throw Error(n(405));var d=a!=null&&a.hydratedSources||null,f=!1,m="",_=ly;if(a!=null&&(a.unstable_strictMode===!0&&(f=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),i=sy(i,null,t,1,a??null,f,!1,m,_),t[Un]=i.current,Oo(t),d)for(t=0;t<d.length;t++)a=d[t],f=a._getVersion,f=f(a._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[a,f]:i.mutableSourceEagerHydrationData.push(a,f);return new ja(i)},$t.render=function(t,i,a){if(!La(i))throw Error(n(200));return Aa(null,t,i,!1,a)},$t.unmountComponentAtNode=function(t){if(!La(t))throw Error(n(40));return t._reactRootContainer?(ti(function(){Aa(null,null,t,!1,function(){t._reactRootContainer=null,t[Un]=null})}),!0):!1},$t.unstable_batchedUpdates=su,$t.unstable_renderSubtreeIntoContainer=function(t,i,a,d){if(!La(a))throw Error(n(200));if(t==null||t._reactInternals===void 0)throw Error(n(38));return Aa(t,i,a,!1,d)},$t.version="18.2.0-next-9e3b772b8-20220608",$t}var vy;function Zw(){if(vy)return yu.exports;vy=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(e){console.error(e)}}return o(),yu.exports=eP(),yu.exports}var yy;function tP(){if(yy)return Fa;yy=1;var o=Zw();return Fa.createRoot=o.createRoot,Fa.hydrateRoot=o.hydrateRoot,Fa}var nP=tP(),wu,by;function rP(){if(by)return wu;by=1;function o(){}return wu=o,wu}var iP=rP();const he=Ze(iP);var _u,Sy;function Xt(){if(Sy)return _u;Sy=1;var o=Array.isArray;return _u=o,_u}var Cu,wy;function Jw(){if(wy)return Cu;wy=1;var o=typeof $a=="object"&&$a&&$a.Object===Object&&$a;return Cu=o,Cu}var Eu,_y;function Pn(){if(_y)return Eu;_y=1;var o=Jw(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=o||e||Function("return this")();return Eu=n,Eu}var Pu,Cy;function Zi(){if(Cy)return Pu;Cy=1;var o=Pn(),e=o.Symbol;return Pu=e,Pu}var ku,Ey;function oP(){if(Ey)return ku;Ey=1;var o=Zi(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,s=o?o.toStringTag:void 0;function l(c){var u=n.call(c,s),p=c[s];try{c[s]=void 0;var g=!0}catch{}var v=r.call(c);return g&&(u?c[s]=p:delete c[s]),v}return ku=l,ku}var Tu,Py;function sP(){if(Py)return Tu;Py=1;var o=Object.prototype,e=o.toString;function n(r){return e.call(r)}return Tu=n,Tu}var Ou,ky;function Fr(){if(ky)return Ou;ky=1;var o=Zi(),e=oP(),n=sP(),r="[object Null]",s="[object Undefined]",l=o?o.toStringTag:void 0;function c(u){return u==null?u===void 0?s:r:l&&l in Object(u)?e(u):n(u)}return Ou=c,Ou}var xu,Ty;function kn(){if(Ty)return xu;Ty=1;function o(e){return e!=null&&typeof e=="object"}return xu=o,xu}var Iu,Oy;function il(){if(Oy)return Iu;Oy=1;var o=Fr(),e=kn(),n="[object Symbol]";function r(s){return typeof s=="symbol"||e(s)&&o(s)==n}return Iu=r,Iu}var Du,xy;function aP(){if(xy)return Du;xy=1;var o=Xt(),e=il(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function s(l,c){if(o(l))return!1;var u=typeof l;return u=="number"||u=="symbol"||u=="boolean"||l==null||e(l)?!0:r.test(l)||!n.test(l)||c!=null&&l in Object(c)}return Du=s,Du}var Ru,Iy;function cn(){if(Iy)return Ru;Iy=1;function o(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return Ru=o,Ru}var Nu,Dy;function ol(){if(Dy)return Nu;Dy=1;var o=Fr(),e=cn(),n="[object AsyncFunction]",r="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(u){if(!e(u))return!1;var p=o(u);return p==r||p==s||p==n||p==l}return Nu=c,Nu}var ju,Ry;function lP(){if(Ry)return ju;Ry=1;var o=Pn(),e=o["__core-js_shared__"];return ju=e,ju}var Lu,Ny;function cP(){if(Ny)return Lu;Ny=1;var o=lP(),e=(function(){var r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!e&&e in r}return Lu=n,Lu}var Au,jy;function e0(){if(jy)return Au;jy=1;var o=Function.prototype,e=o.toString;function n(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}return Au=n,Au}var Mu,Ly;function uP(){if(Ly)return Mu;Ly=1;var o=ol(),e=cP(),n=cn(),r=e0(),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,p=c.toString,g=u.hasOwnProperty,v=RegExp("^"+p.call(g).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y(b){if(!n(b)||e(b))return!1;var E=o(b)?v:l;return E.test(r(b))}return Mu=y,Mu}var $u,Ay;function dP(){if(Ay)return $u;Ay=1;function o(e,n){return e?.[n]}return $u=o,$u}var Fu,My;function vi(){if(My)return Fu;My=1;var o=uP(),e=dP();function n(r,s){var l=e(r,s);return o(l)?l:void 0}return Fu=n,Fu}var zu,$y;function sl(){if($y)return zu;$y=1;var o=vi(),e=o(Object,"create");return zu=e,zu}var Bu,Fy;function pP(){if(Fy)return Bu;Fy=1;var o=sl();function e(){this.__data__=o?o(null):{},this.size=0}return Bu=e,Bu}var qu,zy;function fP(){if(zy)return qu;zy=1;function o(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return qu=o,qu}var Gu,By;function hP(){if(By)return Gu;By=1;var o=sl(),e="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function s(l){var c=this.__data__;if(o){var u=c[l];return u===e?void 0:u}return r.call(c,l)?c[l]:void 0}return Gu=s,Gu}var Uu,qy;function gP(){if(qy)return Uu;qy=1;var o=sl(),e=Object.prototype,n=e.hasOwnProperty;function r(s){var l=this.__data__;return o?l[s]!==void 0:n.call(l,s)}return Uu=r,Uu}var Wu,Gy;function mP(){if(Gy)return Wu;Gy=1;var o=sl(),e="__lodash_hash_undefined__";function n(r,s){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=o&&s===void 0?e:s,this}return Wu=n,Wu}var Hu,Uy;function vP(){if(Uy)return Hu;Uy=1;var o=pP(),e=fP(),n=hP(),r=gP(),s=mP();function l(c){var u=-1,p=c==null?0:c.length;for(this.clear();++u<p;){var g=c[u];this.set(g[0],g[1])}}return l.prototype.clear=o,l.prototype.delete=e,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,Hu=l,Hu}var Vu,Wy;function yP(){if(Wy)return Vu;Wy=1;function o(){this.__data__=[],this.size=0}return Vu=o,Vu}var Ku,Hy;function ms(){if(Hy)return Ku;Hy=1;function o(e,n){return e===n||e!==e&&n!==n}return Ku=o,Ku}var Qu,Vy;function al(){if(Vy)return Qu;Vy=1;var o=ms();function e(n,r){for(var s=n.length;s--;)if(o(n[s][0],r))return s;return-1}return Qu=e,Qu}var Xu,Ky;function bP(){if(Ky)return Xu;Ky=1;var o=al(),e=Array.prototype,n=e.splice;function r(s){var l=this.__data__,c=o(l,s);if(c<0)return!1;var u=l.length-1;return c==u?l.pop():n.call(l,c,1),--this.size,!0}return Xu=r,Xu}var Yu,Qy;function SP(){if(Qy)return Yu;Qy=1;var o=al();function e(n){var r=this.__data__,s=o(r,n);return s<0?void 0:r[s][1]}return Yu=e,Yu}var Zu,Xy;function wP(){if(Xy)return Zu;Xy=1;var o=al();function e(n){return o(this.__data__,n)>-1}return Zu=e,Zu}var Ju,Yy;function _P(){if(Yy)return Ju;Yy=1;var o=al();function e(n,r){var s=this.__data__,l=o(s,n);return l<0?(++this.size,s.push([n,r])):s[l][1]=r,this}return Ju=e,Ju}var ed,Zy;function ll(){if(Zy)return ed;Zy=1;var o=yP(),e=bP(),n=SP(),r=wP(),s=_P();function l(c){var u=-1,p=c==null?0:c.length;for(this.clear();++u<p;){var g=c[u];this.set(g[0],g[1])}}return l.prototype.clear=o,l.prototype.delete=e,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,ed=l,ed}var td,Jy;function Dh(){if(Jy)return td;Jy=1;var o=vi(),e=Pn(),n=o(e,"Map");return td=n,td}var nd,e1;function CP(){if(e1)return nd;e1=1;var o=vP(),e=ll(),n=Dh();function r(){this.size=0,this.__data__={hash:new o,map:new(n||e),string:new o}}return nd=r,nd}var rd,t1;function EP(){if(t1)return rd;t1=1;function o(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return rd=o,rd}var id,n1;function cl(){if(n1)return id;n1=1;var o=EP();function e(n,r){var s=n.__data__;return o(r)?s[typeof r=="string"?"string":"hash"]:s.map}return id=e,id}var od,r1;function PP(){if(r1)return od;r1=1;var o=cl();function e(n){var r=o(this,n).delete(n);return this.size-=r?1:0,r}return od=e,od}var sd,i1;function kP(){if(i1)return sd;i1=1;var o=cl();function e(n){return o(this,n).get(n)}return sd=e,sd}var ad,o1;function TP(){if(o1)return ad;o1=1;var o=cl();function e(n){return o(this,n).has(n)}return ad=e,ad}var ld,s1;function OP(){if(s1)return ld;s1=1;var o=cl();function e(n,r){var s=o(this,n),l=s.size;return s.set(n,r),this.size+=s.size==l?0:1,this}return ld=e,ld}var cd,a1;function Rh(){if(a1)return cd;a1=1;var o=CP(),e=PP(),n=kP(),r=TP(),s=OP();function l(c){var u=-1,p=c==null?0:c.length;for(this.clear();++u<p;){var g=c[u];this.set(g[0],g[1])}}return l.prototype.clear=o,l.prototype.delete=e,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,cd=l,cd}var ud,l1;function xP(){if(l1)return ud;l1=1;var o=Rh(),e="Expected a function";function n(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new TypeError(e);var l=function(){var c=arguments,u=s?s.apply(this,c):c[0],p=l.cache;if(p.has(u))return p.get(u);var g=r.apply(this,c);return l.cache=p.set(u,g)||p,g};return l.cache=new(n.Cache||o),l}return n.Cache=o,ud=n,ud}var dd,c1;function IP(){if(c1)return dd;c1=1;var o=xP(),e=500;function n(r){var s=o(r,function(c){return l.size===e&&l.clear(),c}),l=s.cache;return s}return dd=n,dd}var pd,u1;function DP(){if(u1)return pd;u1=1;var o=IP(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=o(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(e,function(c,u,p,g){l.push(p?g.replace(n,"$1"):u||c)}),l});return pd=r,pd}var fd,d1;function Nh(){if(d1)return fd;d1=1;function o(e,n){for(var r=-1,s=e==null?0:e.length,l=Array(s);++r<s;)l[r]=n(e[r],r,e);return l}return fd=o,fd}var hd,p1;function RP(){if(p1)return hd;p1=1;var o=Zi(),e=Nh(),n=Xt(),r=il(),s=o?o.prototype:void 0,l=s?s.toString:void 0;function c(u){if(typeof u=="string")return u;if(n(u))return e(u,c)+"";if(r(u))return l?l.call(u):"";var p=u+"";return p=="0"&&1/u==-1/0?"-0":p}return hd=c,hd}var gd,f1;function NP(){if(f1)return gd;f1=1;var o=RP();function e(n){return n==null?"":o(n)}return gd=e,gd}var md,h1;function ul(){if(h1)return md;h1=1;var o=Xt(),e=aP(),n=DP(),r=NP();function s(l,c){return o(l)?l:e(l,c)?[l]:n(r(l))}return md=s,md}var vd,g1;function jh(){if(g1)return vd;g1=1;var o=il();function e(n){if(typeof n=="string"||o(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return vd=e,vd}var yd,m1;function t0(){if(m1)return yd;m1=1;var o=ul(),e=jh();function n(r,s){s=o(s,r);for(var l=0,c=s.length;r!=null&&l<c;)r=r[e(s[l++])];return l&&l==c?r:void 0}return yd=n,yd}var bd,v1;function jP(){if(v1)return bd;v1=1;var o=t0();function e(n,r,s){var l=n==null?void 0:o(n,r);return l===void 0?s:l}return bd=e,bd}var LP=jP();const ke=Ze(LP),n0=function(o){if(ke(process,"env.NODE_ENV")==="development"){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console.log(o,...n)}};class kt{static get cssClasses(){return{}}static get strings(){return{}}static get numbers(){return{}}static get defaultAdapter(){return{getProp:he,getProps:he,getState:he,getStates:he,setState:he,getContext:he,getContexts:he,getCache:he,setCache:he,getCaches:he,stopPropagation:he,persistEvent:he}}constructor(e){this._adapter=Object.assign(Object.assign({},kt.defaultAdapter),e)}getProp(e){return this._adapter.getProp(e)}getProps(){return this._adapter.getProps()}getState(e){return this._adapter.getState(e)}getStates(){return this._adapter.getStates()}setState(e,n){return this._adapter.setState(Object.assign({},e),n)}getContext(e){return this._adapter.getContext(e)}getContexts(){return this._adapter.getContexts()}getCaches(){return this._adapter.getCaches()}getCache(e){return this._adapter.getCache(e)}setCache(e,n){return e&&this._adapter.setCache(e,n)}stopPropagation(e){this._adapter.stopPropagation(e)}_isControlledComponent(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"value";const n=this.getProps();return e in n}_isInProps(e){const n=this.getProps();return e in n}init(e){}destroy(){}log(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];n0(e,...r)}_persistEvent(e){this._adapter.persistEvent(e)}}var k=gs();const w=Ze(k);function Lh(o){return Object.keys(o).reduce((e,n)=>(n.substr(0,5)==="data-"&&(e[n]=o[n]),e),{})}const{hasOwnProperty:AP}=Object.prototype;class gt extends k.Component{constructor(e){super(e),this.isControlled=n=>!!(n&&this.props&&typeof this.props=="object"&&AP.call(this.props,n)),this.setStateAsync=n=>new Promise(r=>{this.setState(n,r)}),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,n)=>this.setState(Object.assign({},e),n),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,n)=>e&&(this.cache[e]=n),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return n0(e,...r)}getDataAttr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return Lh(e)}}gt.propTypes={};gt.defaultProps={};var Sd,y1;function MP(){if(y1)return Sd;y1=1;var o=Pn(),e=function(){return o.Date.now()};return Sd=e,Sd}var wd,b1;function $P(){if(b1)return wd;b1=1;var o=/\s/;function e(n){for(var r=n.length;r--&&o.test(n.charAt(r)););return r}return wd=e,wd}var _d,S1;function FP(){if(S1)return _d;S1=1;var o=$P(),e=/^\s+/;function n(r){return r&&r.slice(0,o(r)+1).replace(e,"")}return _d=n,_d}var Cd,w1;function zP(){if(w1)return Cd;w1=1;var o=FP(),e=cn(),n=il(),r=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;function p(g){if(typeof g=="number")return g;if(n(g))return r;if(e(g)){var v=typeof g.valueOf=="function"?g.valueOf():g;g=e(v)?v+"":v}if(typeof g!="string")return g===0?g:+g;g=o(g);var y=l.test(g);return y||c.test(g)?u(g.slice(2),y?2:8):s.test(g)?r:+g}return Cd=p,Cd}var Ed,_1;function BP(){if(_1)return Ed;_1=1;var o=cn(),e=MP(),n=zP(),r="Expected a function",s=Math.max,l=Math.min;function c(u,p,g){var v,y,b,E,P,S,C=0,O=!1,x=!1,R=!0;if(typeof u!="function")throw new TypeError(r);p=n(p)||0,o(g)&&(O=!!g.leading,x="maxWait"in g,b=x?s(n(g.maxWait)||0,p):b,R="trailing"in g?!!g.trailing:R);function M(ne){var ae=v,oe=y;return v=y=void 0,C=ne,E=u.apply(oe,ae),E}function F(ne){return C=ne,P=setTimeout(z,p),O?M(ne):E}function j(ne){var ae=ne-S,oe=ne-C,ge=p-ae;return x?l(ge,b-oe):ge}function N(ne){var ae=ne-S,oe=ne-C;return S===void 0||ae>=p||ae<0||x&&oe>=b}function z(){var ne=e();if(N(ne))return U(ne);P=setTimeout(z,j(ne))}function U(ne){return P=void 0,R&&v?M(ne):(v=y=void 0,E)}function K(){P!==void 0&&clearTimeout(P),C=0,v=S=y=P=void 0}function Q(){return P===void 0?E:U(e())}function re(){var ne=e(),ae=N(ne);if(v=arguments,y=this,S=ne,ae){if(P===void 0)return F(S);if(x)return clearTimeout(P),P=setTimeout(z,p),M(S)}return P===void 0&&(P=setTimeout(z,p)),E}return re.cancel=K,re.flush=Q,re}return Ed=c,Ed}var Pd,C1;function qP(){if(C1)return Pd;C1=1;var o=BP(),e=cn(),n="Expected a function";function r(s,l,c){var u=!0,p=!0;if(typeof s!="function")throw new TypeError(n);return e(c)&&(u="leading"in c?!!c.leading:u,p="trailing"in c?!!c.trailing:p),o(s,l,{leading:u,maxWait:l,trailing:p})}return Pd=r,Pd}var GP=qP();const E1=Ze(GP);var kd={exports:{}};var P1;function UP(){return P1||(P1=1,(function(o){(function(){var e={}.hasOwnProperty;function n(){for(var l="",c=0;c<arguments.length;c++){var u=arguments[c];u&&(l=s(l,r(u)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var c="";for(var u in l)e.call(l,u)&&l[u]&&(c=s(c,u));return c}function s(l,c){return c?l?l+" "+c:l+c:l}o.exports?(n.default=n,o.exports=n):window.classNames=n})()})(kd)),kd.exports}var WP=UP();const X=Ze(WP);var Td={exports:{}},Od,k1;function HP(){if(k1)return Od;k1=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Od=o,Od}var xd,T1;function VP(){if(T1)return xd;T1=1;var o=HP();function e(){}function n(){}return n.resetWarningCache=e,xd=function(){function r(c,u,p,g,v,y){if(y!==o){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}r.isRequired=r;function s(){return r}var l={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:e};return l.PropTypes=l,l},xd}var O1;function Ah(){return O1||(O1=1,Td.exports=VP()()),Td.exports}var KP=Ah();const h=Ze(KP),Te="semi",QP=["default","error","warning","success"];var XP=Xt();const YP=Ze(XP),dl={PREFIX:`${Te}-typography`},_t={WEIGHT:["light","regular","medium","semibold","bold","default"],TYPE:["primary","secondary","danger","warning","success","tertiary","quaternary"],SIZE:["normal","small","inherit"],SPACING:["normal","extended"],HEADING:[1,2,3,4,5,6],RULE:["text","numbers","bytes-decimal","bytes-binary","percentages","exponential"],TRUNCATE:["ceil","floor","round"]};var ZP=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const JP=dl.PREFIX;let pl=class extends k.PureComponent{render(){const e=this.props,{component:n,className:r,children:s,forwardRef:l}=e,c=ZP(e,["component","className","children","forwardRef"]),u=n,p=X(JP,r);return w.createElement(u,Object.assign({className:p,ref:l},c),s)}};pl.defaultProps={component:"article",style:{},className:""};pl.propTypes={component:h.string,style:h.object,className:h.string};var ek=ol();const Kt=Ze(ek);var Id,x1;function tk(){if(x1)return Id;x1=1;function o(e){return e===null}return Id=o,Id}var nk=tk();const rk=Ze(nk);var Dd,I1;function ik(){if(I1)return Dd;I1=1;var o=Fr(),e=Xt(),n=kn(),r="[object String]";function s(l){return typeof l=="string"||!e(l)&&n(l)&&o(l)==r}return Dd=s,Dd}var ok=ik();const at=Ze(ok);var Rd,D1;function sk(){if(D1)return Rd;D1=1;var o=ll();function e(){this.__data__=new o,this.size=0}return Rd=e,Rd}var Nd,R1;function ak(){if(R1)return Nd;R1=1;function o(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}return Nd=o,Nd}var jd,N1;function lk(){if(N1)return jd;N1=1;function o(e){return this.__data__.get(e)}return jd=o,jd}var Ld,j1;function ck(){if(j1)return Ld;j1=1;function o(e){return this.__data__.has(e)}return Ld=o,Ld}var Ad,L1;function uk(){if(L1)return Ad;L1=1;var o=ll(),e=Dh(),n=Rh(),r=200;function s(l,c){var u=this.__data__;if(u instanceof o){var p=u.__data__;if(!e||p.length<r-1)return p.push([l,c]),this.size=++u.size,this;u=this.__data__=new n(p)}return u.set(l,c),this.size=u.size,this}return Ad=s,Ad}var Md,A1;function Mh(){if(A1)return Md;A1=1;var o=ll(),e=sk(),n=ak(),r=lk(),s=ck(),l=uk();function c(u){var p=this.__data__=new o(u);this.size=p.size}return c.prototype.clear=e,c.prototype.delete=n,c.prototype.get=r,c.prototype.has=s,c.prototype.set=l,Md=c,Md}var $d,M1;function r0(){if(M1)return $d;M1=1;var o=vi(),e=(function(){try{var n=o(Object,"defineProperty");return n({},"",{}),n}catch{}})();return $d=e,$d}var Fd,$1;function $h(){if($1)return Fd;$1=1;var o=r0();function e(n,r,s){r=="__proto__"&&o?o(n,r,{configurable:!0,enumerable:!0,value:s,writable:!0}):n[r]=s}return Fd=e,Fd}var zd,F1;function i0(){if(F1)return zd;F1=1;var o=$h(),e=ms();function n(r,s,l){(l!==void 0&&!e(r[s],l)||l===void 0&&!(s in r))&&o(r,s,l)}return zd=n,zd}var Bd,z1;function dk(){if(z1)return Bd;z1=1;function o(e){return function(n,r,s){for(var l=-1,c=Object(n),u=s(n),p=u.length;p--;){var g=u[e?p:++l];if(r(c[g],g,c)===!1)break}return n}}return Bd=o,Bd}var qd,B1;function o0(){if(B1)return qd;B1=1;var o=dk(),e=o();return qd=e,qd}var os={exports:{}};os.exports;var q1;function s0(){return q1||(q1=1,(function(o,e){var n=Pn(),r=e&&!e.nodeType&&e,s=r&&!0&&o&&!o.nodeType&&o,l=s&&s.exports===r,c=l?n.Buffer:void 0,u=c?c.allocUnsafe:void 0;function p(g,v){if(v)return g.slice();var y=g.length,b=u?u(y):new g.constructor(y);return g.copy(b),b}o.exports=p})(os,os.exports)),os.exports}var Gd,G1;function a0(){if(G1)return Gd;G1=1;var o=Pn(),e=o.Uint8Array;return Gd=e,Gd}var Ud,U1;function Fh(){if(U1)return Ud;U1=1;var o=a0();function e(n){var r=new n.constructor(n.byteLength);return new o(r).set(new o(n)),r}return Ud=e,Ud}var Wd,W1;function l0(){if(W1)return Wd;W1=1;var o=Fh();function e(n,r){var s=r?o(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.length)}return Wd=e,Wd}var Hd,H1;function c0(){if(H1)return Hd;H1=1;function o(e,n){var r=-1,s=e.length;for(n||(n=Array(s));++r<s;)n[r]=e[r];return n}return Hd=o,Hd}var Vd,V1;function pk(){if(V1)return Vd;V1=1;var o=cn(),e=Object.create,n=(function(){function r(){}return function(s){if(!o(s))return{};if(e)return e(s);r.prototype=s;var l=new r;return r.prototype=void 0,l}})();return Vd=n,Vd}var Kd,K1;function u0(){if(K1)return Kd;K1=1;function o(e,n){return function(r){return e(n(r))}}return Kd=o,Kd}var Qd,Q1;function zh(){if(Q1)return Qd;Q1=1;var o=u0(),e=o(Object.getPrototypeOf,Object);return Qd=e,Qd}var Xd,X1;function fl(){if(X1)return Xd;X1=1;var o=Object.prototype;function e(n){var r=n&&n.constructor,s=typeof r=="function"&&r.prototype||o;return n===s}return Xd=e,Xd}var Yd,Y1;function d0(){if(Y1)return Yd;Y1=1;var o=pk(),e=zh(),n=fl();function r(s){return typeof s.constructor=="function"&&!n(s)?o(e(s)):{}}return Yd=r,Yd}var Zd,Z1;function fk(){if(Z1)return Zd;Z1=1;var o=Fr(),e=kn(),n="[object Arguments]";function r(s){return e(s)&&o(s)==n}return Zd=r,Zd}var Jd,J1;function hl(){if(J1)return Jd;J1=1;var o=fk(),e=kn(),n=Object.prototype,r=n.hasOwnProperty,s=n.propertyIsEnumerable,l=o((function(){return arguments})())?o:function(c){return e(c)&&r.call(c,"callee")&&!s.call(c,"callee")};return Jd=l,Jd}var ep,eb;function p0(){if(eb)return ep;eb=1;var o=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=o}return ep=e,ep}var tp,tb;function Ji(){if(tb)return tp;tb=1;var o=ol(),e=p0();function n(r){return r!=null&&e(r.length)&&!o(r)}return tp=n,tp}var np,nb;function f0(){if(nb)return np;nb=1;var o=Ji(),e=kn();function n(r){return e(r)&&o(r)}return np=n,np}var ss={exports:{}},rp,rb;function hk(){if(rb)return rp;rb=1;function o(){return!1}return rp=o,rp}ss.exports;var ib;function vs(){return ib||(ib=1,(function(o,e){var n=Pn(),r=hk(),s=e&&!e.nodeType&&e,l=s&&!0&&o&&!o.nodeType&&o,c=l&&l.exports===s,u=c?n.Buffer:void 0,p=u?u.isBuffer:void 0,g=p||r;o.exports=g})(ss,ss.exports)),ss.exports}var ip,ob;function h0(){if(ob)return ip;ob=1;var o=Fr(),e=zh(),n=kn(),r="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,p=c.call(Object);function g(v){if(!n(v)||o(v)!=r)return!1;var y=e(v);if(y===null)return!0;var b=u.call(y,"constructor")&&y.constructor;return typeof b=="function"&&b instanceof b&&c.call(b)==p}return ip=g,ip}var op,sb;function gk(){if(sb)return op;sb=1;var o=Fr(),e=p0(),n=kn(),r="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",p="[object Function]",g="[object Map]",v="[object Number]",y="[object Object]",b="[object RegExp]",E="[object Set]",P="[object String]",S="[object WeakMap]",C="[object ArrayBuffer]",O="[object DataView]",x="[object Float32Array]",R="[object Float64Array]",M="[object Int8Array]",F="[object Int16Array]",j="[object Int32Array]",N="[object Uint8Array]",z="[object Uint8ClampedArray]",U="[object Uint16Array]",K="[object Uint32Array]",Q={};Q[x]=Q[R]=Q[M]=Q[F]=Q[j]=Q[N]=Q[z]=Q[U]=Q[K]=!0,Q[r]=Q[s]=Q[C]=Q[l]=Q[O]=Q[c]=Q[u]=Q[p]=Q[g]=Q[v]=Q[y]=Q[b]=Q[E]=Q[P]=Q[S]=!1;function re(ne){return n(ne)&&e(ne.length)&&!!Q[o(ne)]}return op=re,op}var sp,ab;function gl(){if(ab)return sp;ab=1;function o(e){return function(n){return e(n)}}return sp=o,sp}var as={exports:{}};as.exports;var lb;function Bh(){return lb||(lb=1,(function(o,e){var n=Jw(),r=e&&!e.nodeType&&e,s=r&&!0&&o&&!o.nodeType&&o,l=s&&s.exports===r,c=l&&n.process,u=(function(){try{var p=s&&s.require&&s.require("util").types;return p||c&&c.binding&&c.binding("util")}catch{}})();o.exports=u})(as,as.exports)),as.exports}var ap,cb;function ml(){if(cb)return ap;cb=1;var o=gk(),e=gl(),n=Bh(),r=n&&n.isTypedArray,s=r?e(r):o;return ap=s,ap}var lp,ub;function g0(){if(ub)return lp;ub=1;function o(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}return lp=o,lp}var cp,db;function qh(){if(db)return cp;db=1;var o=$h(),e=ms(),n=Object.prototype,r=n.hasOwnProperty;function s(l,c,u){var p=l[c];(!(r.call(l,c)&&e(p,u))||u===void 0&&!(c in l))&&o(l,c,u)}return cp=s,cp}var up,pb;function eo(){if(pb)return up;pb=1;var o=qh(),e=$h();function n(r,s,l,c){var u=!l;l||(l={});for(var p=-1,g=s.length;++p<g;){var v=s[p],y=c?c(l[v],r[v],v,l,r):void 0;y===void 0&&(y=r[v]),u?e(l,v,y):o(l,v,y)}return l}return up=n,up}var dp,fb;function mk(){if(fb)return dp;fb=1;function o(e,n){for(var r=-1,s=Array(e);++r<e;)s[r]=n(r);return s}return dp=o,dp}var pp,hb;function Gh(){if(hb)return pp;hb=1;var o=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(r,s){var l=typeof r;return s=s??o,!!s&&(l=="number"||l!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<s}return pp=n,pp}var fp,gb;function m0(){if(gb)return fp;gb=1;var o=mk(),e=hl(),n=Xt(),r=vs(),s=Gh(),l=ml(),c=Object.prototype,u=c.hasOwnProperty;function p(g,v){var y=n(g),b=!y&&e(g),E=!y&&!b&&r(g),P=!y&&!b&&!E&&l(g),S=y||b||E||P,C=S?o(g.length,String):[],O=C.length;for(var x in g)(v||u.call(g,x))&&!(S&&(x=="length"||E&&(x=="offset"||x=="parent")||P&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||s(x,O)))&&C.push(x);return C}return fp=p,fp}var hp,mb;function vk(){if(mb)return hp;mb=1;function o(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}return hp=o,hp}var gp,vb;function yk(){if(vb)return gp;vb=1;var o=cn(),e=fl(),n=vk(),r=Object.prototype,s=r.hasOwnProperty;function l(c){if(!o(c))return n(c);var u=e(c),p=[];for(var g in c)g=="constructor"&&(u||!s.call(c,g))||p.push(g);return p}return gp=l,gp}var mp,yb;function ys(){if(yb)return mp;yb=1;var o=m0(),e=yk(),n=Ji();function r(s){return n(s)?o(s,!0):e(s)}return mp=r,mp}var vp,bb;function bk(){if(bb)return vp;bb=1;var o=eo(),e=ys();function n(r){return o(r,e(r))}return vp=n,vp}var yp,Sb;function Sk(){if(Sb)return yp;Sb=1;var o=i0(),e=s0(),n=l0(),r=c0(),s=d0(),l=hl(),c=Xt(),u=f0(),p=vs(),g=ol(),v=cn(),y=h0(),b=ml(),E=g0(),P=bk();function S(C,O,x,R,M,F,j){var N=E(C,x),z=E(O,x),U=j.get(z);if(U){o(C,x,U);return}var K=F?F(N,z,x+"",C,O,j):void 0,Q=K===void 0;if(Q){var re=c(z),ne=!re&&p(z),ae=!re&&!ne&&b(z);K=z,re||ne||ae?c(N)?K=N:u(N)?K=r(N):ne?(Q=!1,K=e(z,!0)):ae?(Q=!1,K=n(z,!0)):K=[]:y(z)||l(z)?(K=N,l(N)?K=P(N):(!v(N)||g(N))&&(K=s(z))):Q=!1}Q&&(j.set(z,K),M(K,z,R,F,j),j.delete(z)),o(C,x,K)}return yp=S,yp}var bp,wb;function wk(){if(wb)return bp;wb=1;var o=Mh(),e=i0(),n=o0(),r=Sk(),s=cn(),l=ys(),c=g0();function u(p,g,v,y,b){p!==g&&n(g,function(E,P){if(b||(b=new o),s(E))r(p,g,P,v,u,y,b);else{var S=y?y(c(p,P),E,P+"",p,g,b):void 0;S===void 0&&(S=E),e(p,P,S)}},l)}return bp=u,bp}var Sp,_b;function Uh(){if(_b)return Sp;_b=1;function o(e){return e}return Sp=o,Sp}var wp,Cb;function _k(){if(Cb)return wp;Cb=1;function o(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}return wp=o,wp}var _p,Eb;function v0(){if(Eb)return _p;Eb=1;var o=_k(),e=Math.max;function n(r,s,l){return s=e(s===void 0?r.length-1:s,0),function(){for(var c=arguments,u=-1,p=e(c.length-s,0),g=Array(p);++u<p;)g[u]=c[s+u];u=-1;for(var v=Array(s+1);++u<s;)v[u]=c[u];return v[s]=l(g),o(r,this,v)}}return _p=n,_p}var Cp,Pb;function Ck(){if(Pb)return Cp;Pb=1;function o(e){return function(){return e}}return Cp=o,Cp}var Ep,kb;function Ek(){if(kb)return Ep;kb=1;var o=Ck(),e=r0(),n=Uh(),r=e?function(s,l){return e(s,"toString",{configurable:!0,enumerable:!1,value:o(l),writable:!0})}:n;return Ep=r,Ep}var Pp,Tb;function Pk(){if(Tb)return Pp;Tb=1;var o=800,e=16,n=Date.now;function r(s){var l=0,c=0;return function(){var u=n(),p=e-(u-c);if(c=u,p>0){if(++l>=o)return arguments[0]}else l=0;return s.apply(void 0,arguments)}}return Pp=r,Pp}var kp,Ob;function y0(){if(Ob)return kp;Ob=1;var o=Ek(),e=Pk(),n=e(o);return kp=n,kp}var Tp,xb;function b0(){if(xb)return Tp;xb=1;var o=Uh(),e=v0(),n=y0();function r(s,l){return n(e(s,l,o),s+"")}return Tp=r,Tp}var Op,Ib;function kk(){if(Ib)return Op;Ib=1;var o=ms(),e=Ji(),n=Gh(),r=cn();function s(l,c,u){if(!r(u))return!1;var p=typeof c;return(p=="number"?e(u)&&n(c,u.length):p=="string"&&c in u)?o(u[c],l):!1}return Op=s,Op}var xp,Db;function Tk(){if(Db)return xp;Db=1;var o=b0(),e=kk();function n(r){return o(function(s,l){var c=-1,u=l.length,p=u>1?l[u-1]:void 0,g=u>2?l[2]:void 0;for(p=r.length>3&&typeof p=="function"?(u--,p):void 0,g&&e(l[0],l[1],g)&&(p=u<3?void 0:p,u=1),s=Object(s);++c<u;){var v=l[c];v&&r(s,v,c,p)}return s})}return xp=n,xp}var Ip,Rb;function Ok(){if(Rb)return Ip;Rb=1;var o=wk(),e=Tk(),n=e(function(r,s,l){o(r,s,l)});return Ip=n,Ip}var xk=Ok();const Ik=Ze(xk);var Dp,Nb;function S0(){if(Nb)return Dp;Nb=1;function o(e,n){for(var r=-1,s=e==null?0:e.length;++r<s&&n(e[r],r,e)!==!1;);return e}return Dp=o,Dp}var Rp,jb;function Dk(){if(jb)return Rp;jb=1;var o=u0(),e=o(Object.keys,Object);return Rp=e,Rp}var Np,Lb;function w0(){if(Lb)return Np;Lb=1;var o=fl(),e=Dk(),n=Object.prototype,r=n.hasOwnProperty;function s(l){if(!o(l))return e(l);var c=[];for(var u in Object(l))r.call(l,u)&&u!="constructor"&&c.push(u);return c}return Np=s,Np}var jp,Ab;function vl(){if(Ab)return jp;Ab=1;var o=m0(),e=w0(),n=Ji();function r(s){return n(s)?o(s):e(s)}return jp=r,jp}var Lp,Mb;function Rk(){if(Mb)return Lp;Mb=1;var o=eo(),e=vl();function n(r,s){return r&&o(s,e(s),r)}return Lp=n,Lp}var Ap,$b;function Nk(){if($b)return Ap;$b=1;var o=eo(),e=ys();function n(r,s){return r&&o(s,e(s),r)}return Ap=n,Ap}var Mp,Fb;function jk(){if(Fb)return Mp;Fb=1;function o(e,n){for(var r=-1,s=e==null?0:e.length,l=0,c=[];++r<s;){var u=e[r];n(u,r,e)&&(c[l++]=u)}return c}return Mp=o,Mp}var $p,zb;function _0(){if(zb)return $p;zb=1;function o(){return[]}return $p=o,$p}var Fp,Bb;function Wh(){if(Bb)return Fp;Bb=1;var o=jk(),e=_0(),n=Object.prototype,r=n.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(c){return c==null?[]:(c=Object(c),o(s(c),function(u){return r.call(c,u)}))}:e;return Fp=l,Fp}var zp,qb;function Lk(){if(qb)return zp;qb=1;var o=eo(),e=Wh();function n(r,s){return o(r,e(r),s)}return zp=n,zp}var Bp,Gb;function Hh(){if(Gb)return Bp;Gb=1;function o(e,n){for(var r=-1,s=n.length,l=e.length;++r<s;)e[l+r]=n[r];return e}return Bp=o,Bp}var qp,Ub;function C0(){if(Ub)return qp;Ub=1;var o=Hh(),e=zh(),n=Wh(),r=_0(),s=Object.getOwnPropertySymbols,l=s?function(c){for(var u=[];c;)o(u,n(c)),c=e(c);return u}:r;return qp=l,qp}var Gp,Wb;function Ak(){if(Wb)return Gp;Wb=1;var o=eo(),e=C0();function n(r,s){return o(r,e(r),s)}return Gp=n,Gp}var Up,Hb;function E0(){if(Hb)return Up;Hb=1;var o=Hh(),e=Xt();function n(r,s,l){var c=s(r);return e(r)?c:o(c,l(r))}return Up=n,Up}var Wp,Vb;function P0(){if(Vb)return Wp;Vb=1;var o=E0(),e=Wh(),n=vl();function r(s){return o(s,n,e)}return Wp=r,Wp}var Hp,Kb;function k0(){if(Kb)return Hp;Kb=1;var o=E0(),e=C0(),n=ys();function r(s){return o(s,n,e)}return Hp=r,Hp}var Vp,Qb;function Mk(){if(Qb)return Vp;Qb=1;var o=vi(),e=Pn(),n=o(e,"DataView");return Vp=n,Vp}var Kp,Xb;function $k(){if(Xb)return Kp;Xb=1;var o=vi(),e=Pn(),n=o(e,"Promise");return Kp=n,Kp}var Qp,Yb;function Fk(){if(Yb)return Qp;Yb=1;var o=vi(),e=Pn(),n=o(e,"Set");return Qp=n,Qp}var Xp,Zb;function zk(){if(Zb)return Xp;Zb=1;var o=vi(),e=Pn(),n=o(e,"WeakMap");return Xp=n,Xp}var Yp,Jb;function bs(){if(Jb)return Yp;Jb=1;var o=Mk(),e=Dh(),n=$k(),r=Fk(),s=zk(),l=Fr(),c=e0(),u="[object Map]",p="[object Object]",g="[object Promise]",v="[object Set]",y="[object WeakMap]",b="[object DataView]",E=c(o),P=c(e),S=c(n),C=c(r),O=c(s),x=l;return(o&&x(new o(new ArrayBuffer(1)))!=b||e&&x(new e)!=u||n&&x(n.resolve())!=g||r&&x(new r)!=v||s&&x(new s)!=y)&&(x=function(R){var M=l(R),F=M==p?R.constructor:void 0,j=F?c(F):"";if(j)switch(j){case E:return b;case P:return u;case S:return g;case C:return v;case O:return y}return M}),Yp=x,Yp}var Zp,eS;function Bk(){if(eS)return Zp;eS=1;var o=Object.prototype,e=o.hasOwnProperty;function n(r){var s=r.length,l=new r.constructor(s);return s&&typeof r[0]=="string"&&e.call(r,"index")&&(l.index=r.index,l.input=r.input),l}return Zp=n,Zp}var Jp,tS;function qk(){if(tS)return Jp;tS=1;var o=Fh();function e(n,r){var s=r?o(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.byteLength)}return Jp=e,Jp}var ef,nS;function Gk(){if(nS)return ef;nS=1;var o=/\w*$/;function e(n){var r=new n.constructor(n.source,o.exec(n));return r.lastIndex=n.lastIndex,r}return ef=e,ef}var tf,rS;function Uk(){if(rS)return tf;rS=1;var o=Zi(),e=o?o.prototype:void 0,n=e?e.valueOf:void 0;function r(s){return n?Object(n.call(s)):{}}return tf=r,tf}var nf,iS;function Wk(){if(iS)return nf;iS=1;var o=Fh(),e=qk(),n=Gk(),r=Uk(),s=l0(),l="[object Boolean]",c="[object Date]",u="[object Map]",p="[object Number]",g="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",E="[object ArrayBuffer]",P="[object DataView]",S="[object Float32Array]",C="[object Float64Array]",O="[object Int8Array]",x="[object Int16Array]",R="[object Int32Array]",M="[object Uint8Array]",F="[object Uint8ClampedArray]",j="[object Uint16Array]",N="[object Uint32Array]";function z(U,K,Q){var re=U.constructor;switch(K){case E:return o(U);case l:case c:return new re(+U);case P:return e(U,Q);case S:case C:case O:case x:case R:case M:case F:case j:case N:return s(U,Q);case u:return new re;case p:case y:return new re(U);case g:return n(U);case v:return new re;case b:return r(U)}}return nf=z,nf}var rf,oS;function Hk(){if(oS)return rf;oS=1;var o=bs(),e=kn(),n="[object Map]";function r(s){return e(s)&&o(s)==n}return rf=r,rf}var of,sS;function Vk(){if(sS)return of;sS=1;var o=Hk(),e=gl(),n=Bh(),r=n&&n.isMap,s=r?e(r):o;return of=s,of}var sf,aS;function Kk(){if(aS)return sf;aS=1;var o=bs(),e=kn(),n="[object Set]";function r(s){return e(s)&&o(s)==n}return sf=r,sf}var af,lS;function Qk(){if(lS)return af;lS=1;var o=Kk(),e=gl(),n=Bh(),r=n&&n.isSet,s=r?e(r):o;return af=s,af}var lf,cS;function T0(){if(cS)return lf;cS=1;var o=Mh(),e=S0(),n=qh(),r=Rk(),s=Nk(),l=s0(),c=c0(),u=Lk(),p=Ak(),g=P0(),v=k0(),y=bs(),b=Bk(),E=Wk(),P=d0(),S=Xt(),C=vs(),O=Vk(),x=cn(),R=Qk(),M=vl(),F=ys(),j=1,N=2,z=4,U="[object Arguments]",K="[object Array]",Q="[object Boolean]",re="[object Date]",ne="[object Error]",ae="[object Function]",oe="[object GeneratorFunction]",ge="[object Map]",me="[object Number]",W="[object Object]",ee="[object RegExp]",D="[object Set]",H="[object String]",V="[object Symbol]",ie="[object WeakMap]",ue="[object ArrayBuffer]",_e="[object DataView]",ye="[object Float32Array]",be="[object Float64Array]",Ce="[object Int8Array]",ve="[object Int16Array]",Tt="[object Int32Array]",Ot="[object Uint8Array]",lr="[object Uint8ClampedArray]",dn="[object Uint16Array]",cr="[object Uint32Array]",De={};De[U]=De[K]=De[ue]=De[_e]=De[Q]=De[re]=De[ye]=De[be]=De[Ce]=De[ve]=De[Tt]=De[ge]=De[me]=De[W]=De[ee]=De[D]=De[H]=De[V]=De[Ot]=De[lr]=De[dn]=De[cr]=!0,De[ne]=De[ae]=De[ie]=!1;function pn(xe,xt,Fe,Me,Ke,Qe){var Be,It=xt&j,Dt=xt&N,On=xt&z;if(Fe&&(Be=Ke?Fe(xe,Me,Ke,Qe):Fe(xe)),Be!==void 0)return Be;if(!x(xe))return xe;var Rt=S(xe);if(Rt){if(Be=b(xe),!It)return c(xe,Be)}else{var et=y(xe),xn=et==ae||et==oe;if(C(xe))return l(xe,It);if(et==W||et==U||xn&&!Ke){if(Be=Dt||xn?{}:P(xe),!It)return Dt?p(xe,s(Be,xe)):u(xe,r(Be,xe))}else{if(!De[et])return Ke?xe:{};Be=E(xe,et,It)}}Qe||(Qe=new o);var en=Qe.get(xe);if(en)return en;Qe.set(xe,Be),R(xe)?xe.forEach(function(Ct){Be.add(pn(Ct,xt,Fe,Ct,xe,Qe))}):O(xe)&&xe.forEach(function(Ct,Ft){Be.set(Ft,pn(Ct,xt,Fe,Ft,xe,Qe))});var fn=On?Dt?v:g:Dt?F:M,ur=Rt?void 0:fn(xe);return e(ur||xe,function(Ct,Ft){ur&&(Ft=Ct,Ct=xe[Ft]),n(Be,Ft,pn(Ct,xt,Fe,Ft,xe,Qe))}),Be}return lf=pn,lf}var cf,uS;function Xk(){if(uS)return cf;uS=1;function o(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}return cf=o,cf}var uf,dS;function Yk(){if(dS)return uf;dS=1;function o(e,n,r){var s=-1,l=e.length;n<0&&(n=-n>l?0:l+n),r=r>l?l:r,r<0&&(r+=l),l=n>r?0:r-n>>>0,n>>>=0;for(var c=Array(l);++s<l;)c[s]=e[s+n];return c}return uf=o,uf}var df,pS;function Zk(){if(pS)return df;pS=1;var o=t0(),e=Yk();function n(r,s){return s.length<2?r:o(r,e(s,0,-1))}return df=n,df}var pf,fS;function Jk(){if(fS)return pf;fS=1;var o=ul(),e=Xk(),n=Zk(),r=jh(),s=Object.prototype,l=s.hasOwnProperty;function c(u,p){p=o(p,u);var g=-1,v=p.length;if(!v)return!0;for(var y=u==null||typeof u!="object"&&typeof u!="function";++g<v;){var b=p[g];if(typeof b=="string"){if(b==="__proto__"&&!l.call(u,"__proto__"))return!1;if(b==="constructor"&&g+1<v&&typeof p[g+1]=="string"&&p[g+1]==="prototype"){if(y&&g===0)continue;return!1}}}var E=n(u,p);return E==null||delete E[r(e(p))]}return pf=c,pf}var ff,hS;function eT(){if(hS)return ff;hS=1;var o=h0();function e(n){return o(n)?void 0:n}return ff=e,ff}var hf,gS;function tT(){if(gS)return hf;gS=1;var o=Zi(),e=hl(),n=Xt(),r=o?o.isConcatSpreadable:void 0;function s(l){return n(l)||e(l)||!!(r&&l&&l[r])}return hf=s,hf}var gf,mS;function nT(){if(mS)return gf;mS=1;var o=Hh(),e=tT();function n(r,s,l,c,u){var p=-1,g=r.length;for(l||(l=e),u||(u=[]);++p<g;){var v=r[p];s>0&&l(v)?s>1?n(v,s-1,l,c,u):o(u,v):c||(u[u.length]=v)}return u}return gf=n,gf}var mf,vS;function rT(){if(vS)return mf;vS=1;var o=nT();function e(n){var r=n==null?0:n.length;return r?o(n,1):[]}return mf=e,mf}var vf,yS;function iT(){if(yS)return vf;yS=1;var o=rT(),e=v0(),n=y0();function r(s){return n(e(s,void 0,o),s+"")}return vf=r,vf}var yf,bS;function oT(){if(bS)return yf;bS=1;var o=Nh(),e=T0(),n=Jk(),r=ul(),s=eo(),l=eT(),c=iT(),u=k0(),p=1,g=2,v=4,y=c(function(b,E){var P={};if(b==null)return P;var S=!1;E=o(E,function(O){return O=r(O,b),S||(S=O.length>1),O}),s(b,u(b),P),S&&(P=e(P,p|g|v,l));for(var C=E.length;C--;)n(P,E[C]);return P});return yf=y,yf}var sT=oT();const yi=Ze(sT);var bf,SS;function aT(){if(SS)return bf;SS=1;function o(e){return e===void 0}return bf=o,bf}var lT=aT();const ls=Ze(lT);var Sf,wS;function cT(){if(wS)return Sf;wS=1;var o="__lodash_hash_undefined__";function e(n){return this.__data__.set(n,o),this}return Sf=e,Sf}var wf,_S;function uT(){if(_S)return wf;_S=1;function o(e){return this.__data__.has(e)}return wf=o,wf}var _f,CS;function O0(){if(CS)return _f;CS=1;var o=Rh(),e=cT(),n=uT();function r(s){var l=-1,c=s==null?0:s.length;for(this.__data__=new o;++l<c;)this.add(s[l])}return r.prototype.add=r.prototype.push=e,r.prototype.has=n,_f=r,_f}var Cf,ES;function dT(){if(ES)return Cf;ES=1;function o(e,n){for(var r=-1,s=e==null?0:e.length;++r<s;)if(n(e[r],r,e))return!0;return!1}return Cf=o,Cf}var Ef,PS;function x0(){if(PS)return Ef;PS=1;function o(e,n){return e.has(n)}return Ef=o,Ef}var Pf,kS;function I0(){if(kS)return Pf;kS=1;var o=O0(),e=dT(),n=x0(),r=1,s=2;function l(c,u,p,g,v,y){var b=p&r,E=c.length,P=u.length;if(E!=P&&!(b&&P>E))return!1;var S=y.get(c),C=y.get(u);if(S&&C)return S==u&&C==c;var O=-1,x=!0,R=p&s?new o:void 0;for(y.set(c,u),y.set(u,c);++O<E;){var M=c[O],F=u[O];if(g)var j=b?g(F,M,O,u,c,y):g(M,F,O,c,u,y);if(j!==void 0){if(j)continue;x=!1;break}if(R){if(!e(u,function(N,z){if(!n(R,z)&&(M===N||v(M,N,p,g,y)))return R.push(z)})){x=!1;break}}else if(!(M===F||v(M,F,p,g,y))){x=!1;break}}return y.delete(c),y.delete(u),x}return Pf=l,Pf}var kf,TS;function pT(){if(TS)return kf;TS=1;function o(e){var n=-1,r=Array(e.size);return e.forEach(function(s,l){r[++n]=[l,s]}),r}return kf=o,kf}var Tf,OS;function fT(){if(OS)return Tf;OS=1;function o(e){var n=-1,r=Array(e.size);return e.forEach(function(s){r[++n]=s}),r}return Tf=o,Tf}var Of,xS;function hT(){if(xS)return Of;xS=1;var o=Zi(),e=a0(),n=ms(),r=I0(),s=pT(),l=fT(),c=1,u=2,p="[object Boolean]",g="[object Date]",v="[object Error]",y="[object Map]",b="[object Number]",E="[object RegExp]",P="[object Set]",S="[object String]",C="[object Symbol]",O="[object ArrayBuffer]",x="[object DataView]",R=o?o.prototype:void 0,M=R?R.valueOf:void 0;function F(j,N,z,U,K,Q,re){switch(z){case x:if(j.byteLength!=N.byteLength||j.byteOffset!=N.byteOffset)return!1;j=j.buffer,N=N.buffer;case O:return!(j.byteLength!=N.byteLength||!Q(new e(j),new e(N)));case p:case g:case b:return n(+j,+N);case v:return j.name==N.name&&j.message==N.message;case E:case S:return j==N+"";case y:var ne=s;case P:var ae=U&c;if(ne||(ne=l),j.size!=N.size&&!ae)return!1;var oe=re.get(j);if(oe)return oe==N;U|=u,re.set(j,N);var ge=r(ne(j),ne(N),U,K,Q,re);return re.delete(j),ge;case C:if(M)return M.call(j)==M.call(N)}return!1}return Of=F,Of}var xf,IS;function gT(){if(IS)return xf;IS=1;var o=P0(),e=1,n=Object.prototype,r=n.hasOwnProperty;function s(l,c,u,p,g,v){var y=u&e,b=o(l),E=b.length,P=o(c),S=P.length;if(E!=S&&!y)return!1;for(var C=E;C--;){var O=b[C];if(!(y?O in c:r.call(c,O)))return!1}var x=v.get(l),R=v.get(c);if(x&&R)return x==c&&R==l;var M=!0;v.set(l,c),v.set(c,l);for(var F=y;++C<E;){O=b[C];var j=l[O],N=c[O];if(p)var z=y?p(N,j,O,c,l,v):p(j,N,O,l,c,v);if(!(z===void 0?j===N||g(j,N,u,p,v):z)){M=!1;break}F||(F=O=="constructor")}if(M&&!F){var U=l.constructor,K=c.constructor;U!=K&&"constructor"in l&&"constructor"in c&&!(typeof U=="function"&&U instanceof U&&typeof K=="function"&&K instanceof K)&&(M=!1)}return v.delete(l),v.delete(c),M}return xf=s,xf}var If,DS;function mT(){if(DS)return If;DS=1;var o=Mh(),e=I0(),n=hT(),r=gT(),s=bs(),l=Xt(),c=vs(),u=ml(),p=1,g="[object Arguments]",v="[object Array]",y="[object Object]",b=Object.prototype,E=b.hasOwnProperty;function P(S,C,O,x,R,M){var F=l(S),j=l(C),N=F?v:s(S),z=j?v:s(C);N=N==g?y:N,z=z==g?y:z;var U=N==y,K=z==y,Q=N==z;if(Q&&c(S)){if(!c(C))return!1;F=!0,U=!1}if(Q&&!U)return M||(M=new o),F||u(S)?e(S,C,O,x,R,M):n(S,C,N,O,x,R,M);if(!(O&p)){var re=U&&E.call(S,"__wrapped__"),ne=K&&E.call(C,"__wrapped__");if(re||ne){var ae=re?S.value():S,oe=ne?C.value():C;return M||(M=new o),R(ae,oe,O,x,M)}}return Q?(M||(M=new o),r(S,C,O,x,R,M)):!1}return If=P,If}var Df,RS;function vT(){if(RS)return Df;RS=1;var o=mT(),e=kn();function n(r,s,l,c,u){return r===s?!0:r==null||s==null||!e(r)&&!e(s)?r!==r&&s!==s:o(r,s,l,c,n,u)}return Df=n,Df}var Rf,NS;function yT(){if(NS)return Rf;NS=1;var o=vT();function e(n,r){return o(n,r)}return Rf=e,Rf}var bT=yT();const Cn=Ze(bT);var Nf,jS;function ST(){if(jS)return Nf;jS=1;var o=w0(),e=bs(),n=hl(),r=Xt(),s=Ji(),l=vs(),c=fl(),u=ml(),p="[object Map]",g="[object Set]",v=Object.prototype,y=v.hasOwnProperty;function b(E){if(E==null)return!0;if(s(E)&&(r(E)||typeof E=="string"||typeof E.splice=="function"||l(E)||u(E)||n(E)))return!E.length;var P=e(E);if(P==p||P==g)return!E.size;if(c(E))return!o(E).length;for(var S in E)if(y.call(E,S))return!1;return!0}return Nf=b,Nf}var wT=ST();const Zn=Ze(wT);var jf,LS;function _T(){if(LS)return jf;LS=1;var o=o0(),e=vl();function n(r,s){return r&&o(r,s,e)}return jf=n,jf}var Lf,AS;function CT(){if(AS)return Lf;AS=1;var o=Ji();function e(n,r){return function(s,l){if(s==null)return s;if(!o(s))return n(s,l);for(var c=s.length,u=r?c:-1,p=Object(s);(r?u--:++u<c)&&l(p[u],u,p)!==!1;);return s}}return Lf=e,Lf}var Af,MS;function ET(){if(MS)return Af;MS=1;var o=_T(),e=CT(),n=e(o);return Af=n,Af}var Mf,$S;function PT(){if($S)return Mf;$S=1;var o=Uh();function e(n){return typeof n=="function"?n:o}return Mf=e,Mf}var $f,FS;function kT(){if(FS)return $f;FS=1;var o=S0(),e=ET(),n=PT(),r=Xt();function s(l,c){var u=r(l)?o:e;return u(l,n(c))}return $f=s,$f}var Ff,zS;function TT(){return zS||(zS=1,Ff=kT()),Ff}var OT=TT();const xT=Ze(OT);var yl=Zw();const Jn=Ze(yl);function rr(o,e){o&&console.warn(`Warning: ${e}`)}function bl(o){return o==null}let D0=class{constructor(){this._eventMap=new Map}on(e,n){return e&&typeof n=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(n)),this}once(e,n){var r=this;if(e&&typeof n=="function"){const s=function(){n(...arguments),r.off(e,s)};this.on(e,s)}}off(e,n){if(e)if(typeof n=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let s=-1;for(;(s=r.findIndex(l=>l===n))>-1;)r.splice(s,1)}}else bl(n)&&this._eventMap.delete(e);return this}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return this._eventMap.has(e)?([...this._eventMap.get(e)].forEach(c=>c(...r)),!0):!1}};function ui(o){try{return o instanceof HTMLElement}catch{return typeof o=="object"&&o.nodeType===1&&typeof o.style=="object"&&typeof o.ownerDocument=="object"}}function IT(o){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(const s of n)o.appendChild(s);return o}function aG(o){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(o.children&&o.children.length){const s=o.children[0];for(const l of n)o.insertBefore(l,s)}else IT(o,...n);return o}function DT(o){if(o&&typeof o=="object")return typeof o.toJSON=="function"?o.toJSON():["left","top","right","bottom","width","height"].reduce((n,r)=>(n[r]=o[r],n),{})}function Nr(o){o.stopPropagation(),o.preventDefault()}function lG(o){return o.length===1&&o.match(/\S/)}function Sl(o,e){for(let n=0;n<o.length;n++)o[n]===e?(o[n].tabIndex=0,o[n].focus()):o[n].tabIndex=-1}function cG(o){o.length>0&&Sl(o,o[0])}function uG(o){o.length>0&&Sl(o,o[o.length-1])}function dG(o,e){let n,r;o.length>0&&(e===o[0]?n=o[o.length-1]:(r=o.indexOf(e),n=o[r-1]),Sl(o,n))}function pG(o,e){let n,r;o.length>0&&(e===o[o.length-1]?n=o[0]:(r=o.indexOf(e),n=o[r+1]),Sl(o,n))}function fG(o,e,n,r){let s,l;return!o||!n||!r||r.length>1?-1:(r=r.toLowerCase(),s=o.indexOf(e)+1,s>=o.length&&(s=0),l=n.indexOf(r,s),l===-1&&(l=n.indexOf(r,0)),l>=0?l:-1)}function hG(o,e){if(!o)return null;for(;o.parentElement&&ke(o.parentElement,"attributes.role.value","")!==e;)o=o.parentElement;return o.parentElement}function gG(o,e){for(let n=0;n<o.length;n++){const r=o[n].attributes["data-popupid"];if(r&&r.value===e)return o[n]}return null}const za={TOP:/top/i,RIGHT:/right/i,BOTTOM:/bottom/i,LEFT:/left/i},Gi={left:0,top:0,height:0,width:0,scrollLeft:0,scrollTop:0};let RT=class extends kt{constructor(e){var n;super(Object.assign({},e)),n=this,this.removePortal=()=>{this._adapter.removePortal()},this.setDisplayNone=(r,s)=>{this._adapter.setDisplayNone(r,s)},this.updateStateIfCursorOnTrigger=r=>{var s,l;if(!((s=r?.matches)===null||s===void 0)&&s.call(r,":hover")){const c=this._adapter.getEventName(),u=this.getState("triggerEventSet");(l=u[c.mouseEnter])===null||l===void 0||l.call(u)}},this.onResize=()=>{this.getState("visible")&&this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{if(this._initContainerPosition(),this._adapter.getAnimatingState())return;const r=this.getProp("content"),s=this.getProp("trigger"),l=this.getProp("clickTriggerToHide"),{visible:c,displayNone:u}=this.getStates();if(u&&this.setDisplayNone(!1),!c){if(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),s==="hover"){const p=()=>{var g;const v=this._adapter.getTriggerDOM();s&&!(!((g=v?.matches)===null||g===void 0)&&g.call(v,":hover"))&&this.hide(),this._adapter.off("portalInserted",p)};this._adapter.on("portalInserted",p)}this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),s==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(s==="click"||l||s==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent()}},this.calcPosition=function(r,s,l){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(Zn(r)?n._adapter.getTriggerBounding():r)||Object.assign({},Gi),l=(Zn(l)?n._adapter.getPopupContainerRect():l)||Object.assign({},Gi),s=(Zn(s)?n._adapter.getWrapperBounding():s)||Object.assign({},Gi);let u=n.calcPosStyle({triggerRect:r,wrapperRect:s,containerRect:l}),p=n.getProp("position");if(n.getProp("autoAdjustOverflow")){const{position:g,isHeightOverFlow:v,isWidthOverFlow:y}=n.adjustPosIfNeed(p,u,r,s,l);(p!==g||v||y)&&(p=g,u=n.calcPosStyle({triggerRect:r,wrapperRect:s,containerRect:l,position:p,spacing:null,isOverFlow:[v,y]}))}return c&&n._mounted&&n._adapter.setPosition(Object.assign(Object.assign({},u),{position:p})),u},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:s,closeOnEsc:l}=this.getProps();switch(r&&r.key){case"Escape":l&&this._handleEscKeyDown(r);break;case"Tab":if(s){const c=this._adapter.getContainer(),u=this._adapter.getFocusableElements(c);u.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(u,r):this._handleContainerTabKeyDown(u,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:n,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(n),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",s=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,n);case"expand":return this._expandPos(e,s);case"reduce":return this._reducePos(e);default:return this._reversePos(e,n)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(za.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(za.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(za.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(za.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;return e.concat(n)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return n?e.replace(n,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const n=this._adapter.getEventName(),r={[n.keydown]:l=>{this._handleTriggerKeydown(l)}};let s={};switch(e){case"focus":r[n.focus]=()=>{this.delayShow()},r[n.blur]=()=>{this.delayHide()},s=r;break;case"click":r[n.click]=()=>{this.show()},s={};break;case"hover":r[n.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[n.mouseLeave]=()=>{this.delayHide()},r[n.focus]=()=>{const{disableFocusListener:l}=this.getProps();!l&&this.delayShow()},r[n.blur]=()=>{const{disableFocusListener:l}=this.getProps();!l&&this.delayHide()},s=Object.assign({},r),this.getProp("clickToHide")&&(s[n.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},s[n.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[n.contextMenu]=l=>{l.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:s}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){const n=this.getState("visible"),r=this.getState("isInsert");(n!==e||r!==e)&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,n,r,s){if(e&&n&&r!=null&&s!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(n.width/2)}px ${-s*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(n.width/2)}px) ${-s*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(n.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(n.height/2)}px)`}return`${-r*100}% ${-s*100}%`}return null}calcPosStyle(e){var n;const{spacing:r,isOverFlow:s}=e,{innerWidth:l}=window,c=(Zn(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},Gi),u=(Zn(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},Gi),p=(Zn(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},Gi),g=e.position!=null?e.position:this.getProp("position"),v=r??this.getProp("spacing"),{arrowPointAtCenter:y,showArrow:b,arrowBounding:E}=this.getProps(),P=b&&y;let S=v,C=0;if(typeof v!="number"){const ve=g.includes("top")||g.includes("bottom");S=ve?v.y:v.x,C=ve?v.x:v.y}const O=ke(E,"width",24),x=ke(E,"width",24),R=ke(E,"offsetY",0),M=6,F=6;let j,N,z=0,U=0;const K=c.left+c.width/2,Q=c.top+c.height/2,re=M+O/2,ne=F+x/2,ae=p.height-u.height,oe=p.width-u.width,ge=ae>0?ae:0,me=oe>0?oe:0,W=s&&s[0],ee=s&&s[1],D=K-u.left<u.right-K,H=Q-u.top<u.bottom-Q,V=p.width>l,ie=Math.abs(p?.width-((n=this._adapter.getContainer())===null||n===void 0?void 0:n.clientWidth))>1;switch(ie&&(S=S*p.width/this._adapter.getContainer().clientWidth),g){case"top":j=ee?D?u.left+p.width/2:u.right-p.width/2+me:K+C,N=W?u.bottom+ge:c.top-S,z=-.5,U=-1;break;case"topLeft":j=ee?V?u.left:u.right-p.width:P?K-re+C:c.left+C,N=W?u.bottom+ge:c.top-S,U=-1;break;case"topRight":j=ee?u.right+me:P?K+re+C:c.right+C,N=W?u.bottom+ge:c.top-S,U=-1,z=-1;break;case"left":j=ee?u.right+me-S+re:c.left-S,N=W?H?u.top+p.height/2:u.bottom-p.height/2+ge:Q+C,z=-1,U=-.5;break;case"leftTop":j=ee?u.right+me-S+re:c.left-S,N=W?u.top:P?Q-ne+C:c.top+C,z=-1;break;case"leftBottom":j=ee?u.right+me-S+re:c.left-S,N=W?u.bottom+ge:P?Q+ne+C:c.bottom+C,z=-1,U=-1;break;case"bottom":j=ee?D?u.left+p.width/2:u.right-p.width/2+me:K+C,N=W?u.top+ne-S:c.top+c.height+S,z=-.5;break;case"bottomLeft":j=ee?V?u.left:u.right-p.width:P?K-re+C:c.left+C,N=W?u.top+ne-S:c.top+c.height+S;break;case"bottomRight":j=ee?u.right+me:P?K+re+C:c.right+C,N=W?u.top+ne-S:c.top+c.height+S,z=-1;break;case"right":j=ee?u.left-S+re:c.right+S,N=W?H?u.top+p.height/2:u.bottom-p.height/2+ge:Q+C,U=-.5;break;case"rightTop":j=ee?u.left-S+re:c.right+S,N=W?u.top:P?Q-ne+C:c.top+C;break;case"rightBottom":j=ee?u.left-S+re:c.right+S,N=W?u.bottom+ge:P?Q+ne+C:c.bottom+C,U=-1;break;case"leftTopOver":j=c.left-S,N=c.top-S;break;case"rightTopOver":j=c.right+S,N=c.top-S,z=-1;break;case"leftBottomOver":j=c.left-S,N=c.bottom+S,U=-1;break;case"rightBottomOver":j=c.right+S,N=c.bottom+S,z=-1,U=-1;break}const ue=this.calcTransformOrigin(g,c,z,U),_e=this._adapter.containerIsBody();if(j=j-u.left,N=N-u.top,ie&&(j/=p.width/this._adapter.getContainer().clientWidth),ie&&(N/=p.height/this._adapter.getContainer().clientHeight),_e&&!this._adapter.containerIsRelativeOrAbsolute()){const ve=this._adapter.getDocumentElementBounding();j+=u.left-ve.left,N+=u.top-ve.top}j=_e?j:j+u.scrollLeft,N=_e?N:N+u.scrollTop;const ye=c.height;if(this.getProp("showArrow")&&!y&&ye<=(x/2+R)*2){const ve=ye/2-(R+x/2);(g.includes("Top")||g.includes("Bottom"))&&!g.includes("Over")&&(N=g.includes("Top")?N+ve:N-ve)}const be={left:this._roundPixel(j),top:this._roundPixel(N)};let Ce="";return z!=null&&(Ce+=`translateX(${z*100}%) `,Object.defineProperty(be,"translateX",{enumerable:!1,value:z})),U!=null&&(Ce+=`translateY(${U*100}%) `,Object.defineProperty(be,"translateY",{enumerable:!1,value:U})),ue!=null&&(be.transformOrigin=ue),Ce&&(be.transform=Ce),be}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,n,r){return e<r&&n>r}isOverFlow(e,n,r){return e<r&&n<r}isHalfOverFlow(e,n,r){return e<r||n<r}isHalfAllEnough(e,n,r){return e>=r||n>=r}getReverse(e,n,r,s){return e&&s||r}adjustPosIfNeed(e,n,r,s,l){const{innerWidth:c,innerHeight:u}=window,{margin:p}=this.getProps(),g=typeof p=="number"?p:p.marginLeft,v=typeof p=="number"?p:p.marginTop,y=typeof p=="number"?p:p.marginRight,b=typeof p=="number"?p:p.marginBottom;let E=!1,P=!1;const S=this.getProp("spacing");let C=S,O=0;if(typeof S!="number"){const x=e.includes("top")||e.includes("bottom");C=x?S.y:S.x,O=x?S.x:S.y}if(s.width>0&&s.height>0){const x=r.left,R=r.right,M=r.top,F=r.bottom,j=c-x,N=u-M,z=c-R,U=u-F,K=s.width>r.width,Q=s.height>r.height,re=M-v<s.height+C&&U-b>s.height+C,ne=x-g<s.width+C&&z-y>s.width+C,ae=U-b<s.height+C&&M-v>s.height+C,oe=z-y<s.width+C&&x-g>s.width+C;N-b<s.height+C&&F-v>s.height+C,F-v<s.height+C&&N-b>s.height+C;const ge=N<s.height+O&&F>s.height+O,me=F<s.height+O&&N>s.height+O,W=j<s.width+O&&R>s.width+O,ee=R<s.width+O&&j>s.width+O,D=N<s.height+C&&F>s.height+C,H=F<s.height+C&&N>s.height+C,V=j<s.width&&R>s.width,ie=R<s.width&&j>s.width,ue=M-l.top,_e=x-l.left,ye=ue+r.height,be=_e+r.width,Ce=l.bottom-F,ve=l.right-R,Tt=Ce+r.height,Ot=ve+r.width,lr=this.isReverse(ue-v,Ce-b,s.height+C),dn=this.isReverse(_e-g,ve-y,s.width+C),cr=this.isReverse(Ce-b,ue-v,s.height+C),De=this.isReverse(ve-y,_e-g,s.width+C);this.isReverse(Tt-b,ye-v,s.height+C),this.isReverse(ye-v,Tt-b,s.height+C);const pn=this.isReverse(Tt,ye,s.height+O),xe=this.isReverse(ye,Tt,s.height+O),xt=this.isReverse(Ot,be,s.width+O),Fe=this.isReverse(be,Ot,s.width+O),Me=r.height/2,Ke=r.width/2,Qe=this.isOverFlow(M-v,U-b,s.height+C),Be=this.isOverFlow(x-g,z-y,s.width+C),It=this.isOverFlow(F-v,N-b,s.height+C),Dt=this.isOverFlow(R-g,j-y,s.width+C),On=this.isHalfOverFlow(F-Me,N-Me,(s.height+O)/2),Rt=this.isHalfOverFlow(R-Ke,j-Ke,(s.width+O)/2),et=this.isHalfAllEnough(F-Me,N-Me,(s.height+O)/2),xn=this.isHalfAllEnough(R-Ke,j-Ke,(s.width+O)/2),en=this.isOverFlow(ue-v,Ce-b,s.height+C),fn=this.isOverFlow(_e-g,ve-y,s.width+C),ur=this.isOverFlow(ye-v,Tt-b,s.height+C),Ct=this.isOverFlow(be-g,Ot-y,s.width+C),Ft=this.isHalfOverFlow(ye-Me,Tt-Me,(s.height+O)/2),Is=this.isHalfOverFlow(be-Ke,Ot-Ke,(s.width+O)/2),dr=this.isHalfAllEnough(ye-Me,Tt-Me,(s.height+O)/2),pr=this.isHalfAllEnough(be-Ke,Ot-Ke,(s.width+O)/2),Br=this.getReverse(Qe,en,re,lr),qr=this.getReverse(Be,fn,ne,dn),Gr=this.getReverse(Qe,en,ae,cr),In=this.getReverse(Be,fn,oe,De),zt=this.getReverse(It,ur,ge,pn),Ur=this.getReverse(It,ur,me,xe),Gn=this.getReverse(Dt,Ct,W,xt),Wr=this.getReverse(Dt,Ct,ee,Fe),ao=On&&Ft,lo=Rt&&Is;switch(e){case"top":Br&&(e=this._adjustPos(e,!0)),lo&&(Gn||Wr)&&(e=this._adjustPos(e,!0,"expand",Gn?"Right":"Left"));break;case"topLeft":Br&&(e=this._adjustPos(e,!0)),Gn&&K&&(e=this._adjustPos(e)),P&&(xn||pr)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Br&&(e=this._adjustPos(e,!0)),Wr&&K&&(e=this._adjustPos(e)),P&&(xn||pr)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":qr&&(e=this._adjustPos(e)),ao&&(zt||Ur)&&(e=this._adjustPos(e,!1,"expand",zt?"Bottom":"Top"));break;case"leftTop":qr&&(e=this._adjustPos(e)),zt&&Q&&(e=this._adjustPos(e,!0)),E&&(et||dr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":qr&&(e=this._adjustPos(e)),Ur&&Q&&(e=this._adjustPos(e,!0)),E&&(et||dr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":Gr&&(e=this._adjustPos(e,!0)),lo&&(Gn||Wr)&&(e=this._adjustPos(e,!0,"expand",Gn?"Right":"Left"));break;case"bottomLeft":Gr&&(e=this._adjustPos(e,!0)),Gn&&K&&(e=this._adjustPos(e)),P&&(xn||pr)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":Gr&&(e=this._adjustPos(e,!0)),Wr&&K&&(e=this._adjustPos(e)),P&&(xn||pr)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),ao&&(zt||Ur)&&(e=this._adjustPos(e,!1,"expand",zt?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),zt&&Q&&(e=this._adjustPos(e,!0)),E&&(et||dr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),Ur&&Q&&(e=this._adjustPos(e,!0)),E&&(et||dr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":D&&(e=this._adjustPos(e,!0)),V&&(e=this._adjustPos(e));break;case"leftBottomOver":H&&(e=this._adjustPos(e,!0)),V&&(e=this._adjustPos(e));break;case"rightTopOver":D&&(e=this._adjustPos(e,!0)),ie&&(e=this._adjustPos(e));break;case"rightBottomOver":H&&(e=this._adjustPos(e,!0)),ie&&(e=this._adjustPos(e));break}this.isTB(e)&&(E=Qe&&en,e==="top"||e==="bottom"?P=Rt&&Is||R<0||z<0:P=Dt&&Ct||R<0||z<0),this.isLR(e)&&(P=Be&&fn,e==="left"||e==="right"?E=On&&Ft||M<0||N<0:E=It&&ur||M<0||N<0)}return{position:e,isHeightOverFlow:E,isWidthOverFlow:P}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.getContainerPosition()||!this._adapter.containerIsBody()||this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:n,disableArrowKeyDown:r}=this.getProps(),s=this._adapter.getContainer(),l=this._adapter.getFocusableElements(s),c=l.length;switch(e&&e.key){case"Escape":Nr(e),n&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&c&&this._handleTriggerArrowUpKeydown(l,e);break;case"ArrowDown":!r&&c&&this._handleTriggerArrowDownKeydown(l,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:n,preventScroll:r}=this.getProps();if(n&&e!=="custom"){const s=this._adapter.getTriggerNode();s&&"focus"in s&&s.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:n}=this.getProps();n!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,n){const{preventScroll:r}=this.getProps(),s=this._adapter.getActiveElement();e[e.length-1]===s&&(e[0].focus({preventScroll:r}),n.preventDefault())}_handleContainerShiftTabKeyDown(e,n){const{preventScroll:r}=this.getProps(),s=this._adapter.getActiveElement();e[0]===s&&(e[e.length-1].focus({preventScroll:r}),n.preventDefault())}_handleTriggerArrowDownKeydown(e,n){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),n.preventDefault()}_handleTriggerArrowUpKeydown(e,n){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),n.preventDefault()}};const NT={PREFIX:`${Te}-tooltip`},Vi={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},ai={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function Za(o){return`${o}-${new Date().getTime()}-${Math.random()}`}function vG(){var o,e;try{return(e=(o=crypto==null?void 0:crypto.randomUUID)===null||o===void 0?void 0:o.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,n=>(Number(n)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(n)/4).toString(16))}catch{return Za("semi")}}function ds(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:n=7}=o,r="0123456789abcdefghijklmnopqrstuvwxyz",s=r.length;let l="";for(let c=0;c<n;c++){const u=Math.floor(Math.random()*s);l+=r.charAt(u)}return e?`${e}-${l}`:l}var zf,BS;function jT(){if(BS)return zf;BS=1;var o=qh(),e=ul(),n=Gh(),r=cn(),s=jh();function l(c,u,p,g){if(!r(c))return c;u=e(u,c);for(var v=-1,y=u.length,b=y-1,E=c;E!=null&&++v<y;){var P=s(u[v]),S=p;if(P==="__proto__"||P==="constructor"||P==="prototype")return c;if(v!=b){var C=E[P];S=g?g(C,P,E):void 0,S===void 0&&(S=r(C)?C:n(u[v+1])?[]:{})}o(E,P,S),E=E[P]}return c}return zf=l,zf}var Bf,qS;function LT(){if(qS)return Bf;qS=1;var o=jT();function e(n,r,s){return n==null?n:o(n,r,s)}return Bf=e,Bf}var AT=LT();const R0=Ze(AT);var qf,GS;function MT(){if(GS)return qf;GS=1;var o=T0(),e=1,n=4;function r(s,l){return l=typeof l=="function"?l:void 0,o(s,e|n,l)}return qf=r,qf}var $T=MT();const FT=Ze($T);class zT{constructor(){this.config={}}}const Wa=new zT;var US=function(o,e,n,r){function s(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function u(v){try{g(r.next(v))}catch(y){c(y)}}function p(v){try{g(r.throw(v))}catch(y){c(y)}}function g(v){v.done?l(v.value):s(v.value).then(u,p)}g((r=r.apply(o,e||[])).next())})};function Ba(o,e){o&&typeof o.stopPropagation=="function"&&o.stopPropagation(),o.nativeEvent&&typeof o.nativeEvent.stopImmediatePropagation=="function"&&o.nativeEvent.stopImmediatePropagation()}function yG(o,e){return FT(o,n=>{if(typeof e=="function")return e(n);if(typeof n=="function"||w.isValidElement(n)||Object.prototype.toString.call(n)==="[object Error]")return n;if(Array.isArray(n)&&n.length===0){const r=Object.keys(n);if(r.length){const s=[];r.forEach(l=>{R0(s,l,n[l])});try{rr(ke(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected.
|
|
10
|
+
The maximum length of an array is 4294967295.
|
|
11
|
+
Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return s}else return}})}const BT=(o,e)=>{let{match:n,unmatch:r,callInInit:s=!0}=e;if(typeof window<"u"){let c=function(u){u.matches?n&&n(u):r&&r(u)};const l=window.matchMedia(o);return s&&c(l),Object.prototype.hasOwnProperty.call(l,"addEventListener")?(l.addEventListener("change",c),()=>l.removeEventListener("change",c)):(l.addListener(c),()=>l.removeListener(c))}return()=>{}},An=o=>w.isValidElement(o)&&ke(o.type,"elementType")==="Icon";function N0(){return document?document.activeElement:null}function j0(o){if(!ui(o))return[];const n=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(o.querySelectorAll(n))}function Vh(o,e){return US(this,void 0,void 0,function*(){if(e===0){yield o();return}else{yield new Promise(n=>{setTimeout(()=>US(this,void 0,void 0,function*(){yield Vh(o,e-1),n()}),0)});return}})}function qT(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}function sr(o){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=()=>{var r,s;return((s=(r=Wa?.config)===null||r===void 0?void 0:r.overrideDefaultProps)===null||s===void 0?void 0:s[o])||{}};return new Proxy(Object.assign({},e),{get(r,s,l){const c=n();return s in c?c[s]:Reflect.get(r,s,l)},set(r,s,l,c){return Reflect.set(r,s,l,c)},ownKeys(){const r=n();return Array.from(new Set([...Reflect.ownKeys(e),...Object.keys(r)]))},getOwnPropertyDescriptor(r,s){const l=n();return s in l?Reflect.getOwnPropertyDescriptor(l,s):Reflect.getOwnPropertyDescriptor(r,s)}})}const qn=w.createContext({}),GT=()=>document.body;class Ss extends k.PureComponent{constructor(e,n){var r;super(e),r=this,this.initContainer=function(s){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var c,u;try{let p;if(!r.el||!(!((c=r.state)===null||c===void 0)&&c.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const v=(r.props.getPopupContainer||s.getPopupContainer||GT)();return v.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,s,r.props.className),p=v,p}}catch(p){if(!l)throw p}return(u=r.state)===null||u===void 0?void 0:u.container},this.addStyle=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const l of Object.keys(s))r.el.style[l]=s[l]},this.addClass=function(s){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:c}=l;for(var u=arguments.length,p=new Array(u>2?u-2:0),g=2;g<u;g++)p[g-2]=arguments[g];const v=X(s,...p,{[`${s}-rtl`]:c==="rtl"});r.el&&(r.el.className=v)},this.state={container:this.initContainer(n,!0)}}componentDidMount(){const e=this.initContainer(this.context);e!==this.state.container&&this.setState({container:e})}componentDidUpdate(e){const{didUpdate:n}=this.props;n&&n(e)}componentWillUnmount(){const{container:e}=this.state;e&&e.removeChild(this.el)}render(){const{state:e,props:n}=this;return e.container?yl.createPortal(n.children,this.el):null}}Ss.contextType=qn;Ss.defaultProps={prefixCls:`${Te}-portal`};Ss.propTypes={children:h.node,prefixCls:h.string,getPopupContainer:h.func,className:h.string,didUpdate:h.func};var UT=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const WT=o=>{const{className:e,style:n}=o,r=UT(o,["className","style"]);return w.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:n},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),w.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))};var HT=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const VT=o=>{const{className:e,style:n}=o,r=HT(o,["className","style"]);return w.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:n},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),w.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},KT=h.shape({offsetX:h.number,offsetY:h.number,width:h.number,height:h.number});class ps extends w.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var n,r;(r=(n=this.props).onAnimationStart)===null||r===void 0||r.call(n)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var n,r;(r=(n=this.props).onAnimationEnd)===null||r===void 0||r.call(n,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,n,r,s;(n=(e=this.props).onAnimationStart)===null||n===void 0||n.call(e),this.props.motion||((s=(r=this.props).onAnimationEnd)===null||s===void 0||s.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,n,r){const s=Object.keys(this.props).filter(l=>!Cn(this.props[l],e[l]));s.includes("animationState"),(s.includes("startClassName")||s.includes("replayKey")||s.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var l,c,u,p;(c=(l=this.props).onAnimationStart)===null||c===void 0||c.call(l),this.props.motion||((p=(u=this.props).onAnimationEnd)===null||p===void 0||p.call(u,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}ps.defaultProps={motion:!0,replayKey:""};var WS=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Ha=NT.PREFIX,QT=Vi.POSITION_SET,XT=Vi.TRIGGER_SET,YT=["flex","block","table","flow-root","grid"],ZT=()=>document.body;class zn extends gt{constructor(e){super(e),this.isAnimating=!1,this.cachedLatestTransitionState="enter",this.setContainerEl=n=>this.containerEl={current:n},this.isSpecial=n=>{if(ui(n))return!!n.disabled;if(k.isValidElement(n)){if(ke(n,"props.disabled"))return Vi.STATUS_DISABLED;const s=ke(n,"props.loading"),l=!Zn(n)&&!Zn(n.type)&&(ke(n,"type.elementType")==="Button"||ke(n,"type.elementType")==="IconButton");if(s&&l)return Vi.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:n}=this.state,{showArrow:r,prefixCls:s,style:l}=this.props;let c=null;const u=X([`${s}-icon-arrow`]),p=ke(l,"backgroundColor"),g=n?.includes("left")||n?.includes("right")?w.createElement(VT,null):w.createElement(WT,null);return r&&(k.isValidElement(r)?c=r:c=w.cloneElement(g,{className:u,style:{color:p,fill:"currentColor"}})),c},this.handlePortalInnerClick=n=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&Ba(n)},this.handlePortalMouseDown=n=>{this.props.stopPropagation&&Ba(n)},this.handlePortalFocus=n=>{this.props.stopPropagation&&Ba(n)},this.handlePortalBlur=n=>{this.props.stopPropagation&&Ba(n)},this.handlePortalInnerKeyDown=n=>{this.foundation.handleContainerKeydown(n)},this.renderContentNode=n=>{const r={initialFocusRef:this.initialFocusRef};return Kt(n)?n(r):n},this.renderPortal=()=>{const{containerStyle:n={},visible:r,portalEventSet:s,placement:l,displayNone:c,transitionState:u,id:p,isPositionUpdated:g}=this.state,{prefixCls:v,content:y,showArrow:b,style:E,motion:P,role:S,zIndex:C}=this.props,O=this.renderContentNode(y),{className:x}=this.props,R=this.context.direction,M=X(x,{[`${v}-wrapper`]:!0,[`${v}-wrapper-show`]:r,[`${v}-with-arrow`]:!!b,[`${v}-rtl`]:R==="rtl"}),F=this.renderIcon(),j=yi(n,P?["transformOrigin"]:void 0),N=ke(n,"transformOrigin"),z=ke(E,"opacity",null),U=z||1,K=w.createElement(ps,{fillMode:"forwards",animationState:u,motion:P&&g,startClassName:u==="enter"?`${Ha}-animation-show`:`${Ha}-animation-hide`,onAnimationStart:()=>this.isAnimating=!0,onAnimationEnd:()=>{var Q,re;u==="leave"&&(this.didLeave(),(re=(Q=this.props).afterClose)===null||re===void 0||re.call(Q)),this.isAnimating=!1}},Q=>{let{animationStyle:re,animationClassName:ne,animationEventsNeedBind:ae}=Q;return w.createElement("div",Object.assign({className:X(M,ne),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},re),c?{display:"none"}:{}),{transformOrigin:N}),E),z?{opacity:g?U:"0"}:{})},s,ae,{role:S,"x-placement":l,id:p}),w.createElement("div",{className:`${Ha}-content`},O),F)});return w.createElement(Ss,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:C}},w.createElement("div",{tabIndex:-1,className:`${Te}-portal-inner`,style:j,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},K))},this.wrapSpan=n=>{const{wrapperClassName:r}=this.props,s=ke(n,"props.style.display"),l=ke(n,"props.block"),c=typeof n=="string",u={};return c||(u.display="inline-block"),(l||YT.includes(s))&&(u.width="100%"),w.createElement("span",{className:r,style:u},n)},this.mergeEvents=(n,r)=>{const s={};return xT(r,(l,c)=>{typeof l=="function"&&(s[c]=function(){l(...arguments),n&&typeof n[c]=="function"&&n[c](...arguments)})}),s},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new RT(this.adapter),this.eventManager=new D0,this.triggerEl=w.createRef(),this.containerEl=w.createRef(),this.initialFocusRef=w.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},getAnimatingState:()=>this.isAnimating,insertPortal:(n,r)=>{var{position:s}=r,l=WS(r,["position"]);this.cachedLatestTransitionState="enter",this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),l)},()=>{setTimeout(()=>{this.cachedLatestTransitionState==="enter"&&this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:n=>{this.setState({triggerEventSet:n})},registerPortalEvent:n=>{this.setState({portalEventSet:n})},getTriggerBounding:()=>{const n=this.adapter.getTriggerNode();return this.triggerEl.current=n,n&&n.getBoundingClientRect()},getPopupContainerRect:()=>{const n=this.getPopupContainer();let r=null;if(n&&ui(n)){const s=DT(n.getBoundingClientRect());r=Object.assign(Object.assign({},s),{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const n=this.getPopupContainer();return window.getComputedStyle(n).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const n=this.containerEl&&this.containerEl.current;return n&&n.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:n=>{var{position:r}=n,s=WS(n,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),s),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(n,r)=>{this.setState({displayNone:n},r)},updatePlacementAttr:n=>{this.setState({placement:n})},togglePortalVisible:(n,r)=>{const s={};s.transitionState=n?"enter":"leave",s.visible=n,this.cachedLatestTransitionState=s.transitionState,this.mounted&&this.setState(s,()=>{r()})},registerClickOutsideHandler:n=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let s=this.triggerEl&&this.triggerEl.current,l=this.containerEl&&this.containerEl.current;s=Jn.findDOMNode(s),l=Jn.findDOMNode(l);const c=r.target,u=r.composedPath&&r.composedPath()||[c],p=this.props.clickTriggerToHide?s&&s.contains(c)||u.includes(s):!1;(s&&!s.contains(c)&&l&&!l.contains(c)&&!(u.includes(l)||u.includes(s))||p)&&(this.props.onClickOutSide(r),n())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:n=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=E1(r=>{if(!this.mounted)return!1;n(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:n=>{this.props.onVisibleChange(n)},registerScrollHandler:n=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=E1(r=>{if(!this.mounted)return!1;const s=this.adapter.getTriggerNode();if(r.target.contains(s)){const c={x:r.target.scrollLeft,y:r.target.scrollTop};n(c)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const n=document.body.getAttribute("data-position");if(n){this.containerPosition=n;return}requestAnimationFrame(()=>{const r=this.getPopupContainer();if(r&&ui(r)){const l=window.getComputedStyle(r).getPropertyValue("position");document.body.setAttribute("data-position",l),this.containerPosition=l}})},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let n=this.triggerEl.current;return ui(this.triggerEl.current)||(n=Jn.findDOMNode(this.triggerEl.current)),n},getFocusableElements:n=>j0(n),getActiveElement:()=>N0(),setInitialFocus:()=>{const{preventScroll:n}=this.props,r=ke(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:n})},notifyEscKeydown:n=>{this.props.onEscKeyDown(n)},setId:()=>{this.setState({id:ds()})},getTriggerDOM:()=>this.triggerEl.current?Jn.findDOMNode(this.triggerEl.current):null})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||ZT,this.foundation.init(),Vh(()=>{let e=this.triggerEl.current;e&&(e instanceof HTMLElement||(e=yl.findDOMNode(e))),this.foundation.updateStateIfCursorOnTrigger(e)},1)}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,n){rr(this.props.mouseLeaveDelay<this.props.mouseEnterDelay,"[Semi Tooltip] 'mouseLeaveDelay' cannot be less than 'mouseEnterDelay', which may cause the dropdown layer to not be hidden."),e.visible!==this.props.visible&&(["hover","focus"].includes(this.props.trigger)?this.props.visible?this.foundation.delayShow():this.foundation.delayHide():this.props.visible?this.foundation.show():this.foundation.hide()),Cn(e.rePosKey,this.props.rePosKey)||this.rePosition()}render(){const{isInsert:e,triggerEventSet:n,visible:r,id:s}=this.state,{wrapWhenSpecial:l,role:c,trigger:u}=this.props;let{children:p}=this.props;const g=Object.assign({},ke(p,"props.style")),v={};if(l){const E=this.isSpecial(p);E?(g.pointerEvents="none",E===Vi.STATUS_DISABLED&&(v.cursor="not-allowed"),p=k.cloneElement(p,{style:g}),u!=="custom"&&(p=this.wrapSpan(p)),this.isWrapped=!0):k.isValidElement(p)||(p=this.wrapSpan(p),this.isWrapped=!0)}let y={};c==="dialog"?(y["aria-expanded"]=r?"true":"false",y["aria-haspopup"]="dialog",y["aria-controls"]=s):y["aria-describedby"]=s;const b=w.cloneElement(p,Object.assign(Object.assign(Object.assign(Object.assign({},y),p.props),this.mergeEvents(p.props,n)),{style:Object.assign(Object.assign({},ke(p,"props.style")),v),className:X(ke(p,"props.className")),ref:E=>{this.triggerEl.current=E;const{ref:P}=p;typeof P=="function"?P(E):P&&typeof P=="object"&&(P.current=E)},tabIndex:p.props.tabIndex||0,"data-popupid":s}));return w.createElement(w.Fragment,null,e?this.renderPortal():null,b)}}zn.contextType=qn;zn.propTypes={children:h.node,motion:h.bool,autoAdjustOverflow:h.bool,position:h.oneOf(QT),getPopupContainer:h.func,mouseEnterDelay:h.number,mouseLeaveDelay:h.number,trigger:h.oneOf(XT).isRequired,className:h.string,wrapperClassName:h.string,clickToHide:h.bool,clickTriggerToHide:h.bool,visible:h.bool,style:h.object,content:h.oneOfType([h.node,h.func]),prefixCls:h.string,onVisibleChange:h.func,onClickOutSide:h.func,spacing:h.oneOfType([h.number,h.object]),margin:h.oneOfType([h.number,h.object]),showArrow:h.oneOfType([h.bool,h.node]),zIndex:h.number,rePosKey:h.oneOfType([h.string,h.number]),arrowBounding:KT,transformFromCenter:h.bool,arrowPointAtCenter:h.bool,stopPropagation:h.bool,role:h.string,wrapWhenSpecial:h.bool,guardFocus:h.bool,returnFocusOnClose:h.bool,preventScroll:h.bool,keepDOM:h.bool};zn.__SemiComponentName__="Tooltip";zn.defaultProps=sr(zn.__SemiComponentName__,{arrowBounding:ai.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Ha,role:"tooltip",mouseEnterDelay:ai.MOUSE_ENTER_DELAY,mouseLeaveDelay:ai.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:he,onClickOutSide:he,spacing:ai.SPACING,margin:ai.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:ai.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:he,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1});var qa={exports:{}},HS;function JT(){if(HS)return qa.exports;HS=1;const o=(e,{target:n=document.body}={})=>{const r=document.createElement("textarea"),s=document.activeElement;r.value=e,r.setAttribute("readonly",""),r.style.contain="strict",r.style.position="absolute",r.style.left="-9999px",r.style.fontSize="12pt";const l=document.getSelection();let c=!1;l.rangeCount>0&&(c=l.getRangeAt(0)),n.append(r),r.select(),r.selectionStart=0,r.selectionEnd=e.length;let u=!1;try{u=document.execCommand("copy")}catch{}return r.remove(),c&&(l.removeAllRanges(),l.addRange(c)),s&&s.focus(),u};return qa.exports=o,qa.exports.default=o,qa.exports}var eO=JT();const tO=Ze(eO);function er(){}const nO=w.createContext(null);function Gf(o){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):o.defaultWidth,r=o.formats[n]||o.formats[o.defaultWidth];return r}}function Vo(o){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",s;if(r==="formatting"&&o.formattingValues){var l=o.defaultFormattingWidth||o.defaultWidth,c=n!=null&&n.width?String(n.width):l;s=o.formattingValues[c]||o.formattingValues[l]}else{var u=o.defaultWidth,p=n!=null&&n.width?String(n.width):o.defaultWidth;s=o.values[p]||o.values[u]}var g=o.argumentCallback?o.argumentCallback(e):e;return s[g]}}function Ko(o){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,s=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],l=e.match(s);if(!l)return null;var c=l[0],u=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],p=Array.isArray(u)?iO(u,function(y){return y.test(c)}):rO(u,function(y){return y.test(c)}),g;g=o.valueCallback?o.valueCallback(p):p,g=n.valueCallback?n.valueCallback(g):g;var v=e.slice(c.length);return{value:g,rest:v}}}function rO(o,e){for(var n in o)if(o.hasOwnProperty(n)&&e(o[n]))return n}function iO(o,e){for(var n=0;n<o.length;n++)if(e(o[n]))return n}function oO(o){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(o.matchPattern);if(!r)return null;var s=r[0],l=e.match(o.parsePattern);if(!l)return null;var c=o.valueCallback?o.valueCallback(l[0]):l[0];c=n.valueCallback?n.valueCallback(c):c;var u=e.slice(s.length);return{value:c,rest:u}}}function Ch(o){"@babel/helpers - typeof";return Ch=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ch(o)}function sO(o){if(o===null||o===!0||o===!1)return NaN;var e=Number(o);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Kh(o,e){if(e.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+e.length+" present")}function aO(o){Kh(1,arguments);var e=Object.prototype.toString.call(o);return o instanceof Date||Ch(o)==="object"&&e==="[object Date]"?new Date(o.getTime()):typeof o=="number"||e==="[object Number]"?new Date(o):((typeof o=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}var lO={};function cO(){return lO}function VS(o,e){var n,r,s,l,c,u,p,g;Kh(1,arguments);var v=cO(),y=sO((n=(r=(s=(l=e?.weekStartsOn)!==null&&l!==void 0?l:e==null||(c=e.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&s!==void 0?s:v.weekStartsOn)!==null&&r!==void 0?r:(p=v.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&n!==void 0?n:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var b=aO(o),E=b.getUTCDay(),P=(E<y?7:0)+E-y;return b.setUTCDate(b.getUTCDate()-P),b.setUTCHours(0,0,0,0),b}function KS(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function Eh(o,e){return Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Eh(o,e)}function uO(o,e,n){Kh(2,arguments);var r=VS(o,n),s=VS(e,n);return r.getTime()===s.getTime()}var dO={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},pO=function(e,n,r){var s,l=dO[e];return typeof l=="string"?s=l:n===1?s=l.one:s=l.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?s+"内":s+"前":s},fO={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},hO={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},gO={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},mO={date:Gf({formats:fO,defaultWidth:"full"}),time:Gf({formats:hO,defaultWidth:"full"}),dateTime:Gf({formats:gO,defaultWidth:"full"})};function QS(o,e,n){var r="eeee p";return uO(o,e,n)?r:o.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var vO={lastWeek:QS,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:QS,other:"PP p"},yO=function(e,n,r,s){var l=vO[e];return typeof l=="function"?l(n,r,s):l},bO={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},SO={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},wO={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},_O={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},CO={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},EO={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},PO=function(e,n){var r=Number(e);switch(n?.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},kO={ordinalNumber:PO,era:Vo({values:bO,defaultWidth:"wide"}),quarter:Vo({values:SO,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Vo({values:wO,defaultWidth:"wide"}),day:Vo({values:_O,defaultWidth:"wide"}),dayPeriod:Vo({values:CO,defaultWidth:"wide",formattingValues:EO,defaultFormattingWidth:"wide"})},TO=/^(第\s*)?\d+(日|时|分|秒)?/i,OO=/\d+/i,xO={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},IO={any:[/^(前)/i,/^(公元)/i]},DO={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},RO={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},NO={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},jO={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},LO={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},AO={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},MO={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},$O={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},FO={ordinalNumber:oO({matchPattern:TO,parsePattern:OO,valueCallback:function(e){return parseInt(e,10)}}),era:Ko({matchPatterns:xO,defaultMatchWidth:"wide",parsePatterns:IO,defaultParseWidth:"any"}),quarter:Ko({matchPatterns:DO,defaultMatchWidth:"wide",parsePatterns:RO,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ko({matchPatterns:NO,defaultMatchWidth:"wide",parsePatterns:jO,defaultParseWidth:"any"}),day:Ko({matchPatterns:LO,defaultMatchWidth:"wide",parsePatterns:AO,defaultParseWidth:"any"}),dayPeriod:Ko({matchPatterns:MO,defaultMatchWidth:"any",parsePatterns:$O,defaultParseWidth:"any"})},zO={code:"zh-CN",formatDistance:pO,formatLong:mO,formatRelative:yO,localize:kO,match:FO,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Ph={code:"zh-CN",currency:"CNY",dateFnsLocale:zO,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},Tabs:{more:"更多"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条",descend:"点击降序",ascend:"点击升序",cancelSort:"取消排序"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"},Chat:{deleteConfirm:"确认删除该会话吗?",clearContext:"上下文已清除",copySuccess:"复制成功",stop:"停止",copy:"复制",copied:"复制成功",dropAreaText:"将文件放到这里"},UserGuide:{skip:"跳过",next:"下一步",prev:"上一步",finish:"完成"},InputNumber:{},JsonViewer:{search:"查找",replace:"替换",replaceAll:"全部替换"},VideoPlayer:{rateChange:"切换速率至 ${rate}",qualityChange:"切换清晰度至${quality}",routeChange:"切换线路至${route}",mirror:"镜像",cancelMirror:"取消镜像",loading:"加载中...",stall:"加载失败",noResource:"暂无资源",videoError:"视频加载错误"}};class Ar extends k.Component{renderChildren(e,n){const{componentName:r}=this.props;let s=e;e?.code||(s=Ph);const l=ke(Ph,"dateFnsLocale"),c=ke(s,"dateFnsLocale",l),u=ke(s,"currency");return n(s[r],s.code,c,u)}render(){const{children:e}=this.props;return w.createElement(qn.Consumer,null,n=>{let{locale:r}=n;return w.createElement(nO.Consumer,null,s=>this.renderChildren(r||s,e))})}}Ar.propTypes={componentName:h.string.isRequired,children:h.any};Ar.defaultProps={componentName:""};const BO="semi";var qO=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const L0=w.forwardRef((o,e)=>{const{svg:n,spin:r=!1,rotate:s,style:l,className:c,prefixCls:u=BO,type:p,size:g="default"}=o,v=qO(o,["svg","spin","rotate","style","className","prefixCls","type","size"]),y=X(`${u}-icon`,{[`${u}-icon-extra-small`]:g==="extra-small",[`${u}-icon-small`]:g==="small",[`${u}-icon-default`]:g==="default",[`${u}-icon-large`]:g==="large",[`${u}-icon-extra-large`]:g==="extra-large",[`${u}-icon-spinning`]:r===!0,[`${u}-icon-${p}`]:!!p},c),b={};return Number.isSafeInteger(s)&&(b.transform=`rotate(${s}deg)`),Object.assign(b,l),w.createElement("span",Object.assign({role:"img",ref:e,"aria-label":p,className:y,style:b},v),n)});L0.elementType="Icon";const Yt=(o,e)=>{const n=w.forwardRef((r,s)=>w.createElement(L0,Object.assign({svg:w.createElement(o),type:e,ref:s},r)));return n.elementType="Icon",n};function GO(o){return k.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},o),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-9.5 5.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM12 5a1.9 1.9 0 0 0-1.89 2l.3 5.5a1.59 1.59 0 0 0 3.17 0l.3-5.5c.07-1.09-.8-2-1.88-2Z",fill:"currentColor"}))}const Qh=Yt(GO,"alert_circle");function UO(o){return k.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},o),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m10.23 2.4-8.7 16.67A2 2 0 0 0 3.3 22h17.4a2 2 0 0 0 1.77-2.93L13.77 2.4a2 2 0 0 0-3.54 0ZM13.14 14a1.15 1.15 0 0 1-2.28 0l-.58-4.03a1.73 1.73 0 1 1 3.44 0l-.58 4.03Zm.36 4.49a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor"}))}const Xh=Yt(UO,"alert_triangle");function WO(o){return k.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},o),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08 7.6a1.5 1.5 0 0 1 2.12 0l5.66 5.65 5.66-5.65a1.5 1.5 0 1 1 2.12 2.12l-6.72 6.72a1.5 1.5 0 0 1-2.12 0L4.08 9.72a1.5 1.5 0 0 1 0-2.12Z",fill:"currentColor"}))}const HO=Yt(WO,"chevron_down");function VO(o){return k.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},o),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.04-6.14a1.5 1.5 0 0 1-2.13.04l-2.87-2.78L9.26 17A1.5 1.5 0 0 1 7.1 14.9l2.78-2.87L7 9.26A1.5 1.5 0 1 1 9.1 7.1l2.87 2.78L14.74 7A1.5 1.5 0 0 1 16.9 9.1l-2.78 2.87L17 14.74c.6.58.61 1.53.04 2.12Z",fill:"currentColor"}))}const A0=Yt(VO,"clear");function KO(o){return k.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},o),k.createElement("path",{d:"M17.66 19.78a1.5 1.5 0 0 0 2.12-2.12L14.12 12l5.66-5.66a1.5 1.5 0 0 0-2.12-2.12L12 9.88 6.34 4.22a1.5 1.5 0 1 0-2.12 2.12L9.88 12l-5.66 5.66a1.5 1.5 0 0 0 2.12 2.12L12 14.12l5.66 5.66Z",fill:"currentColor"}))}const ws=Yt(KO,"close");function QO(o){return k.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},o),k.createElement("path",{d:"M7 4c0-1.1.9-2 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-1V8c0-2-1-3-3-3H7V4Z",fill:"currentColor"}),k.createElement("path",{d:"M5 7a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2H5Z",fill:"currentColor"}))}const XO=Yt(QO,"copy");function YO(o){return k.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},o),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7 3.7a1 1 0 0 0-1.4-1.4L17.3 5.26A11.59 11.59 0 0 0 12 4C5 4 1 10 1 12c0 1.18 1.38 3.73 3.94 5.64L2.3 20.3a1 1 0 1 0 1.42 1.42l18-18ZM7.84 14.77l1.46-1.47a3 3 0 0 1 4-4l1.47-1.46a5 5 0 0 0-6.93 6.93Z",fill:"currentColor"}),k.createElement("path",{d:"M12 20c-1.22 0-2.35-.18-3.38-.5l2.57-2.57a5 5 0 0 0 5.75-5.75l3.56-3.56C22.13 9.27 23 11.07 23 12c0 2-4 8-11 8Z",fill:"currentColor"}))}const ZO=Yt(YO,"eye_closed_solid");function JO(o){return k.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},o),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12s4 8 11 8 11-6 11-8-4-8-11-8Zm5 8a5 5 0 1 1-10 0 5 5 0 0 1 10 0Zm-5 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"currentColor"}))}const ex=Yt(JO,"eye_opened");function tx(o){return k.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},o),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm-.17-8.4c-.86 0-1.3-.53-1.3-1.23 0-1.05.53-1.72 1.74-2.64l.06-.05c.83-.62 1.4-1.06 1.4-1.85 0-.9-.83-1.4-1.76-1.4-.76 0-1.34.28-1.8.87-.33.34-.6.53-1.05.53C8.38 8.83 8 8.3 8 7.7c0-.6.34-1.22.88-1.68A5.15 5.15 0 0 1 12.28 5c2.71 0 4.62 1.34 4.62 3.64 0 1.68-1 2.5-2.2 3.31-.8.59-1.17.93-1.48 1.62-.33.6-.58 1.04-1.4 1.04Zm-.02 4.17c-.94 0-1.71-.6-1.71-1.54 0-.94.77-1.55 1.7-1.55.95 0 1.7.6 1.7 1.55 0 .93-.75 1.54-1.7 1.54Z",fill:"currentColor"}))}const nx=Yt(tx,"help_circle");function rx(o){return k.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},o),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm2-16a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-5 3.75c0-.41.34-.75.75-.75h2.75a1 1 0 0 1 1 1v5.5h.75a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h.75v-5h-.75a.75.75 0 0 1-.75-.75Z",fill:"currentColor"}))}const wl=Yt(rx,"info_circle");function ix(o){return k.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},o),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2a8.5 8.5 0 1 0 4.86 15.48l4.08 4.08a1.5 1.5 0 1 0 2.12-2.12l-4.08-4.08A8.5 8.5 0 0 0 10.5 2ZM5 10.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z",fill:"currentColor"}))}const ox=Yt(ix,"search");function sx(o){return k.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},o),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.35 4.27c.68.47.86 1.4.38 2.08l-10 14.5a1.5 1.5 0 0 1-2.33.17l-6.5-7a1.5 1.5 0 0 1 2.2-2.04l5.23 5.63 8.94-12.96a1.5 1.5 0 0 1 2.08-.38Z",fill:"currentColor"}))}const M0=Yt(sx,"tick");function ax(o){return k.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},o),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.88-13.18-6.2 7.6a1.5 1.5 0 0 1-2.37 0l-3.5-4a1.5 1.5 0 1 1 2.37-1.84l2.3 2.46L15.5 8a1.5 1.5 0 1 1 2.38 1.82Z",fill:"currentColor"}))}const Yh=Yt(ax,"tick_circle"),Rr={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,UP:38,DOWN:40},Zh="Enter",bG="Escape";function Jh(o){return ke(o,"key")===Zh}const Uf=dl.PREFIX;class eg extends w.PureComponent{constructor(e){super(e),this.copy=n=>{const{content:r,duration:s,onCopy:l}=this.props,c=tO(r);l&&l(n,r,c),this.setCopied(r,s)},this.setCopied=(n,r)=>{this.setState({copied:!0,item:n}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:n}=this.props;return typeof n<"u"?n:w.createElement(Ar,{componentName:"Typography"},r=>w.createElement("span",null,w.createElement(M0,null),r.copied))},this.renderCopyIcon=()=>{const{icon:n}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:l=>Jh(l)&&this.copy(l)},s=w.createElement("a",{className:`${Uf}-action-copy-icon`},w.createElement(XO,Object.assign({onClick:this.copy},r)));return w.isValidElement(n)?w.cloneElement(n,r):s},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:n,forwardRef:r,copyTip:s,render:l}=this.props,{copied:c}=this.state,u=X(n,{[`${Uf}-action-copy`]:!c,[`${Uf}-action-copied`]:c});return l?l(c,this.copy,this.props):w.createElement(Ar,{componentName:"Typography"},p=>w.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:u,ref:r},c?this.renderSuccessTip():w.createElement(zn,{content:typeof s<"u"?s:p.copy},this.renderCopyIcon())))}}eg.propTypes={content:h.string,onCopy:h.func,successTip:h.node,copyTip:h.node,duration:h.number,style:h.object,className:h.string,icon:h.node};eg.defaultProps={content:"",onCopy:er,duration:3,style:{},className:""};const $0={PREFIX:`${Te}-popover`,ARROW:`${Te}-popover-icon-arrow`},F0={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"]},gi={ARROW_BOUNDING:Object.assign(Object.assign({},ai.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var lx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const z0=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:n,arrowStyle:r,popStyle:s}=o,l=lx(o,["position","className","arrowStyle","popStyle"]),c=e.indexOf("top")===0||e.indexOf("bottom")===0,u=X(n,$0.ARROW),p=ke(r,"borderOpacity"),g=ke(r,"backgroundColor",ke(s,"backgroundColor")),v=ke(r,"borderColor",ke(s,"borderColor")),y=Object.assign(Object.assign({},l),{width:gi.ARROW_BOUNDING.width,height:gi.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:u});return c?w.createElement("svg",Object.assign({},y),w.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",style:{fill:v,opacity:p}}),w.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",style:{fill:g}})):w.createElement("svg",Object.assign({},y),w.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",style:{fill:v,opacity:p}}),w.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",style:{fill:g}}))};z0.propTypes={position:h.string,className:h.string,arrowStyle:h.object,popStyle:h.object};var cx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const ux=F0.POSITION_SET,dx=F0.TRIGGER_SET;class Bn extends w.PureComponent{constructor(e){super(e),this.focusTrigger=()=>{var n;(n=this.tooltipRef.current)===null||n===void 0||n.focusTrigger()},this.renderPopCard=n=>{let{initialFocusRef:r}=n;const{content:s,contentClassName:l,prefixCls:c}=this.props,{direction:u}=this.context,p=X(c,l,{[`${c}-rtl`]:u==="rtl"}),g=this.renderContentNode({initialFocusRef:r,content:s});return w.createElement("div",{className:p},w.createElement("div",{className:`${c}-content`},g))},this.renderContentNode=n=>{const{initialFocusRef:r,content:s}=n,l={initialFocusRef:r};return Kt(s)?s(l):s},this.tooltipRef=w.createRef()}render(){const e=this.props,{children:n,prefixCls:r,showArrow:s,arrowStyle:l={},arrowBounding:c,position:u,style:p,trigger:g}=e,v=cx(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:y}=this.props;const b={position:u,className:"",popStyle:p,arrowStyle:l},E=s?w.createElement(z0,Object.assign({},b)):!1;bl(y)&&(y=s?gi.SPACING_WITH_ARROW:gi.SPACING);const P=g==="click"||g==="custom"?"dialog":"tooltip";return w.createElement(zn,Object.assign({guardFocus:!0,ref:this.tooltipRef},v,{trigger:g,position:u,style:p,content:this.renderPopCard,prefixCls:r,spacing:y,showArrow:E,arrowBounding:c,role:P}),n)}}Bn.contextType=qn;Bn.propTypes={children:h.node,content:h.oneOfType([h.node,h.func]),visible:h.bool,autoAdjustOverflow:h.bool,motion:h.bool,position:h.oneOf(ux),margin:h.oneOfType([h.number,h.object]),mouseEnterDelay:h.number,mouseLeaveDelay:h.number,trigger:h.oneOf(dx).isRequired,contentClassName:h.oneOfType([h.string,h.array]),onVisibleChange:h.func,onClickOutSide:h.func,style:h.object,spacing:h.oneOfType([h.number,h.object]),zIndex:h.number,showArrow:h.bool,arrowStyle:h.shape({borderColor:h.string,backgroundColor:h.string,borderOpacity:h.oneOfType([h.string,h.number])}),arrowPointAtCenter:h.bool,arrowBounding:h.object,prefixCls:h.string,guardFocus:h.bool,disableArrowKeyDown:h.bool};Bn.__SemiComponentName__="Popover";Bn.defaultProps=sr(Bn.__SemiComponentName__,{arrowBounding:gi.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:gi.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:$0.PREFIX,onClickOutSide:he,onEscKeyDown:he,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0});let He;function Wf(o){if(!o)return 0;const e=o.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function px(o){return Array.prototype.slice.apply(o).map(n=>`${n}: ${o.getPropertyValue(n)};`).join("")}const fx=function(o,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0;if(n.length===0)return"";He||(He=document.createElement("div"),He.setAttribute("aria-hidden","true"),document.body.appendChild(He));const p=window.getComputedStyle(o),g=px(p),v=Wf(p.lineHeight),y=Math.round(v*(e+1)+Wf(p.paddingTop)+Wf(p.paddingBottom));He.setAttribute("style",g),He.style.position="fixed",He.style.left="0",p.getPropertyValue("width")==="auto"&&o.offsetWidth&&(He.style.width=`${o.offsetWidth}px`),He.style.height="auto",He.style.top="-999999px",He.style.zIndex="-1000",u&&(He.style.fontWeight="600"),He.style.textOverflow="clip",He.style.webkitLineClamp="none",He.innerHTML="";function b(){const R=He.scrollWidth<=He.offsetWidth,M=He.scrollHeight<y;return e===1?R&&M:M}const E=document.createElement("span"),P=document.createTextNode(n);if(E.appendChild(P),l.length>0){const R=document.createTextNode(l);E.appendChild(R)}He.appendChild(E),Object.values(yi(r,"expand")).map(R=>R&&He.appendChild(R.cloneNode(!0)));function S(){He.innerHTML="",He.appendChild(E),Object.values(r).map(R=>R&&He.appendChild(R.cloneNode(!0)))}function C(R,M){const F=R.length;return M?c==="end"?R.slice(0,M)+s:R.slice(0,M)+s+R.slice(F-M,F):s}function O(R,M){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:M.length,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const z=Math.floor((F+j)/2),U=C(M,z);if(R.textContent=U,F>=j-1&&j>0)for(let K=j;K>=F;K-=1){const Q=C(M,K);if(R.textContent=Q,b())return Q}else if(j===0)return s;return b()?O(R,M,z,j,z):O(R,M,F,z,N)}let x=n;return b()||(S(),x=O(P,n,0,c==="middle"?Math.floor(n.length/2):n.length)),He.innerHTML="",x},B0=w.createContext("normal");var Ja;(function(o){o.Width="width",o.Height="height",o.All="all"})(Ja||(Ja={}));class Ki extends gt{constructor(e){var n;super(e),n=this,this.formerPropertyValue=new Map,this.getElement=()=>{try{return yl.findDOMNode(this.childNode||this)}catch{return null}},this.handleResizeEventTriggered=r=>{var s,l,c,u;if(this.props.observerProperty===Ja.All)(l=(s=this.props).onResize)===null||l===void 0||l.call(s,r);else{const p=[];for(const g of r)this.formerPropertyValue.has(g.target)?g.contentRect[this.props.observerProperty]!==this.formerPropertyValue.get(g.target)&&(this.formerPropertyValue.set(g.target,g.contentRect[this.props.observerProperty]),p.push(g)):(this.formerPropertyValue.set(g.target,g.contentRect[this.props.observerProperty]),p.push(g));p.length>0&&((u=(c=this.props).onResize)===null||u===void 0||u.call(c,p))}},this.observeElement=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const s=n.getElement();if(n.observer||(n.observer=new ResizeObserver(n.handleResizeEventTriggered)),!(s&&s instanceof Element)){n.observer.disconnect();return}s===n.element&&!r||(n.observer.disconnect(),n.element=s,n.observer.observe(s),n.props.observeParent&&s.parentNode&&s.parentNode.ownerDocument&&s.parentNode.ownerDocument.defaultView&&s.parentNode instanceof s.parentNode.ownerDocument.defaultView.HTMLElement&&(n._parentNode=s.parentNode,n.observer.observe(n._parentNode)))},this.mergeRef=(r,s)=>{this.childNode=s,typeof r=="function"?r(s):typeof r=="object"&&r&&"current"in r&&(r.current=s)},globalThis.ResizeObserver&&(this.observer=new ResizeObserver(this.handleResizeEventTriggered))}componentDidMount(){var e;(e=this.observeElement)===null||e===void 0||e.call(this)}componentDidUpdate(e){var n;(n=this.observeElement)===null||n===void 0||n.call(this,this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}render(){const e=w.Children.only(this.props.children),{ref:n}=e;return w.cloneElement(e,{ref:r=>this.mergeRef(n,r)})}}Ki.propTypes={onResize:h.func,observeParent:h.bool,observerProperty:h.string,delayTick:h.number};Ki.defaultProps={onResize:()=>{},observeParent:!1,observerProperty:"all",delayTick:0};var Hf=function(o,e,n,r){function s(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function u(v){try{g(r.next(v))}catch(y){c(y)}}function p(v){try{g(r.throw(v))}catch(y){c(y)}}function g(v){v.done?l(v.value):s(v.value).then(u,p)}g((r=r.apply(o,e||[])).next())})},hx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const dt=dl.PREFIX,gx="...",mx=(o,e)=>{const{mark:n,code:r,underline:s,strong:l,link:c,disabled:u}=o;let p=e;const g=(v,y)=>{let b={};v&&(typeof v=="object"&&(b=Object.assign({},v)),p=w.createElement(y,b,p))};return g(n,"mark"),g(r,"code"),g(s&&!c,"u"),g(l,"strong"),g(o.delete,"del"),g(c,u?"span":"a"),p};class bi extends k.Component{constructor(e){super(e),this.observerTakingEffect=!1,this.onResize=n=>Hf(this,void 0,void 0,function*(){return this.rafId&&window.cancelAnimationFrame(this.rafId),new Promise(r=>{this.rafId=window.requestAnimationFrame(()=>Hf(this,void 0,void 0,function*(){yield this.getEllipsisState(),r()}))})}),this.canUseCSSEllipsis=()=>{const{copyable:n}=this.props,{expandable:r,expandText:s,pos:l,suffix:c}=this.getEllipsisOpt();return!r&&ls(s)&&!n&&l==="end"&&!c.length},this.shouldTruncated=n=>!n||n<1?!1:n<=1?this.compareSingleRow():this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.compareSingleRow=()=>{if(!(document&&document.createRange))return!1;const n=this.wrapperRef.current,r=n.getBoundingClientRect().width,s=Array.from(n.childNodes),l=document.createRange(),c=s.reduce((u,p)=>{var g;return l.selectNodeContents(p),u+((g=l.getBoundingClientRect().width)!==null&&g!==void 0?g:0)},0);return l.detach(),c>r},this.showTooltip=()=>{var n,r;const{isOverflowed:s,isTruncated:l,expanded:c}=this.state,{showTooltip:u,expandable:p,expandText:g}=this.getEllipsisOpt(),v=this.canUseCSSEllipsis(),y=!c&&(v?s:l),E=!p&&ls(g)&&y&&u;if(!E)return E;const P={type:"tooltip"};return typeof u=="object"?u.type&&u.type.toLowerCase()==="popover"?Ik({opts:{showArrow:!0}},u,{opts:{className:X({[`${dt}-ellipsis-popover`]:!0,[(n=u?.opts)===null||n===void 0?void 0:n.className]:!!(!((r=u?.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},P),u):P},this.onHover=()=>{if(this.canUseCSSEllipsis()){const{rows:r,suffix:s,pos:l}=this.getEllipsisOpt(),c=this.shouldTruncated(r);this.setState({isOverflowed:c,isTruncated:!1});return}},this.getEllipsisState=()=>Hf(this,void 0,void 0,function*(){const{rows:n,suffix:r,pos:s}=this.getEllipsisOpt(),{children:l,strong:c}=this.props;if(!this.wrapperRef||!this.wrapperRef.current){yield this.onResize();return}const{expanded:u}=this.state;if(this.canUseCSSEllipsis())return;if(rk(l))return new Promise(b=>{this.setState({isTruncated:!1,isOverflowed:!1},b)});if(rr("children"in this.props&&typeof l!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!n||n<0||u)return;const g={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},v=Array.isArray(l)?l.join(""):String(l),y=fx(this.wrapperRef.current,n,v,g,gx,r,s,c);return new Promise(b=>{this.setState({isOverflowed:!1,ellipsisContent:y,isTruncated:v!==y},b)})}),this.toggleOverflow=n=>{const{onExpand:r,expandable:s,collapsible:l}=this.getEllipsisOpt(),{expanded:c}=this.state;r&&r(!c,n),(s&&!c||l&&c)&&this.setState({expanded:!c})},this.getEllipsisOpt=()=>{const{ellipsis:n}=this.props;return n?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:n.expandable?this.expandStr:void 0,collapseText:n.collapsible?this.collapseStr:void 0},typeof n=="object"?n:null):{}},this.renderExpandable=()=>{const{expanded:n,isTruncated:r}=this.state;if(!r)return null;const{expandText:s,expandable:l,collapseText:c,collapsible:u}=this.getEllipsisOpt(),p=!l&&ls(s),g=!u&&ls(c);let v;return!n&&!p?v=s:n&&!g&&(v=c),!p||!g?w.createElement("a",{role:"button",tabIndex:0,className:`${dt}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":v,onClick:this.toggleOverflow,onKeyPress:y=>Jh(y)&&this.toggleOverflow(y)},v):null},this.getEllipsisStyle=()=>{const{ellipsis:n,component:r}=this.props;if(!n)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:s}=this.getEllipsisOpt(),{expanded:l}=this.state,c=!l&&this.canUseCSSEllipsis(),u=X({[`${dt}-ellipsis`]:!0,[`${dt}-ellipsis-single-line`]:s===1,[`${dt}-ellipsis-multiple-line`]:s>1,[`${dt}-ellipsis-multiple-line-text`]:s>1&&r==="span",[`${dt}-ellipsis-overflow-ellipsis`]:s===1&&c,[`${dt}-ellipsis-overflow-ellipsis-text`]:s===1&&c&&r==="span"}),p=c&&s>1?{WebkitLineClamp:s}:{};return{ellipsisCls:u,ellipsisStyle:p}},this.renderEllipsisText=n=>{const{suffix:r}=n,{children:s}=this.props,{isTruncated:l,expanded:c,ellipsisContent:u}=this.state;return c||!l?w.createElement("span",{onMouseEnter:this.onHover},s,r&&r.length?r:null):w.createElement("span",{onMouseEnter:this.onHover},u,r)},this.state={editable:!1,copied:!1,isOverflowed:!1,ellipsisContent:e.children,expanded:!1,isTruncated:!1,prevChildren:null},this.wrapperRef=w.createRef(),this.expandRef=w.createRef(),this.copyRef=w.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize().then(()=>Vh(()=>this.observerTakingEffect=!0,1))}static getDerivedStateFromProps(e,n){const{prevChildren:r}=n,s={};return s.prevChildren=e.children,e.ellipsis&&r!==e.children&&(s.isOverflowed=!1,s.ellipsisContent=e.children,s.expanded=!1,s.isTruncated=!0),s}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}renderOperations(){return w.createElement(w.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:n,children:r}=this.props;if(!n)return null;const s=(e=n?.content)!==null&&e!==void 0?e:r;let l,c=!1;Array.isArray(s)?(l="",s.forEach(p=>{typeof p=="object"&&(c=!0),l+=String(p)})):(typeof s!="object"||(c=!0),l=String(s)),rr(c,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const u=Object.assign({content:l,duration:3},typeof n=="object"?n:null);return w.createElement(eg,Object.assign({},u,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:n}=this.props,r=n==="inherit"?this.context:n;if(!e)return null;const s=r==="small"?"small":"default";return w.createElement("span",{className:`${dt}-icon`,"x-semi-prop":"icon"},An(e)?w.cloneElement(e,{size:s}):e)}renderContent(){const e=this.props,{component:n,children:r,className:s,type:l,spacing:c,disabled:u,style:p,ellipsis:g,icon:v,size:y,link:b,heading:E,weight:P}=e,S=hx(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),C=yi(S,["strong","editable","mark","copyable","underline","code","delete"]),O=y==="inherit"?this.context:y,x=this.renderIcon(),R=this.getEllipsisOpt(),{ellipsisCls:M,ellipsisStyle:F}=this.getEllipsisStyle();let j=g?this.renderEllipsisText(R):r;const N=X({[`${dt}-link-text`]:b,[`${dt}-link-underline`]:this.props.underline&&b});j=mx(this.props,w.createElement(w.Fragment,null,x,this.props.link?w.createElement("span",{className:N},j):j));const z=/^h[1-6]$/,U=at(E)&&z.test(E),K=X(s,M,{[`${dt}-${l}`]:l&&!b,[`${dt}-${O}`]:O,[`${dt}-link`]:b,[`${dt}-disabled`]:u,[`${dt}-${c}`]:c,[`${dt}-${E}`]:U,[`${dt}-${E}-weight-${P}`]:U&&P&&isNaN(Number(P))}),Q=Object.assign(Object.assign({},isNaN(Number(P))?{}:{fontWeight:P}),p);return w.createElement(pl,Object.assign({className:K,style:Object.assign(Object.assign({},Q),F),component:n,forwardRef:this.wrapperRef},C),j,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,n=this.showTooltip(),r=this.renderContent();if(n){const{type:s,opts:l,renderTooltip:c}=n;return Kt(c)?c(e,r):s.toLowerCase()==="popover"?w.createElement(Bn,Object.assign({content:e,position:"top"},l),r):w.createElement(zn,Object.assign({content:e,position:"top"},l),r)}else return r}render(){var e=this;const{size:n}=this.props,r=n==="inherit"?this.context:n,s=w.createElement(B0.Provider,{value:r},w.createElement(Ar,{componentName:"Typography"},l=>(this.expandStr=l.expand,this.collapseStr=l.collapse,this.renderTipWrapper())));return this.props.ellipsis?w.createElement(Ki,{onResize:function(){e.observerTakingEffect&&e.onResize(...arguments)},observeParent:!0,observerProperty:Ja.Width},s):s}}bi.propTypes={children:h.node,copyable:h.oneOfType([h.shape({text:h.string,onCopy:h.func,successTip:h.node,copyTip:h.node}),h.bool]),delete:h.bool,disabled:h.bool,ellipsis:h.oneOfType([h.shape({rows:h.number,expandable:h.bool,expandText:h.string,onExpand:h.func,suffix:h.string,showTooltip:h.oneOfType([h.shape({type:h.string,opts:h.object}),h.bool]),collapsible:h.bool,collapseText:h.string,pos:h.oneOf(["end","middle"])}),h.bool]),mark:h.bool,underline:h.bool,link:h.oneOfType([h.object,h.bool]),spacing:h.oneOf(_t.SPACING),strong:h.bool,size:h.oneOf(_t.SIZE),type:h.oneOf(_t.TYPE),style:h.object,className:h.string,icon:h.oneOfType([h.node,h.string]),heading:h.string,component:h.string};bi.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};bi.contextType=B0;class _l extends k.PureComponent{render(){return w.createElement(bi,Object.assign({component:"span"},this.props))}}_l.propTypes={copyable:h.oneOfType([h.object,h.bool]),delete:h.bool,disabled:h.bool,icon:h.oneOfType([h.node,h.string]),ellipsis:h.oneOfType([h.object,h.bool]),mark:h.bool,underline:h.bool,link:h.oneOfType([h.object,h.bool]),strong:h.bool,type:h.oneOf(_t.TYPE),size:h.oneOf(_t.SIZE),style:h.object,className:h.string,code:h.bool,component:h.string,weight:h.number};_l.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var vx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};let tg=class extends k.PureComponent{render(){const e=this.props,{heading:n}=e,r=vx(e,["heading"]),s=_t.HEADING.indexOf(n)!==-1?`h${n}`:"h1";return w.createElement(bi,Object.assign({component:s,heading:s},r))}};tg.propTypes={copyable:h.oneOfType([h.object,h.bool]),delete:h.bool,disabled:h.bool,ellipsis:h.oneOfType([h.object,h.bool]),mark:h.bool,link:h.oneOfType([h.object,h.bool]),underline:h.bool,strong:h.bool,type:h.oneOf(_t.TYPE),heading:h.oneOf(_t.HEADING),style:h.object,className:h.string,component:h.string,weight:h.oneOfType([h.oneOf(_t.WEIGHT),h.number])};tg.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",heading:1,style:{},className:""};const yx=dl.PREFIX;let ng=class extends k.PureComponent{render(){const{className:e}=this.props,n=X(e,`${yx}-paragraph`);return w.createElement(bi,Object.assign({component:"p"},this.props,{className:n}))}};ng.propTypes={copyable:h.oneOfType([h.object,h.bool]),delete:h.bool,disabled:h.bool,ellipsis:h.oneOfType([h.object,h.bool]),mark:h.bool,link:h.oneOfType([h.object,h.bool]),underline:h.bool,strong:h.bool,type:h.oneOf(_t.TYPE),size:h.oneOf(_t.SIZE),spacing:h.oneOf(_t.SPACING),style:h.object,className:h.string,component:h.string};ng.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",size:"normal",spacing:"normal",style:{},className:""};class bx{constructor(e,n,r,s,l){this.ruleMethods={"bytes-decimal":c=>{const u=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let p=0;for(;c>=1e3;)c/=1e3,p++;return`${this.truncatePrecision(c)} ${u[p]}`},"bytes-binary":c=>{const u=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let p=0;for(;c>=1024;)c/=1024,p++;return`${this.truncatePrecision(c)} ${u[p]}`},percentages:c=>`${this.truncatePrecision(c*100)}%`,exponential:c=>{const p=c.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(p[0]))}e${p[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof l<"u",this.content=e,this.rule=n,this.precision=r,this.truncate=s,this.parser=l}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?Vf(this.content).map(e=>Kf(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?Vf(this.content).filter(e=>Kf(e)).map(e=>this.truncatePrecision(e)).join(","):Vf(this.content).map(e=>Kf(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const n=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=n.toString().split(".");if(r.length===1)return n.toFixed(this.precision);const s=r[1].length;return s<this.precision?`${r[0]}.${r[1]}${"0".repeat(this.precision-s)}`:n.toString()}}function Vf(o){const e=/(-?[0-9]*\.?[0-9]+([eE]-?[0-9]+)?)|([^-\d\.]+)/g;return o.match(e)||[]}function Kf(o){return!(isNaN(Number(o))||o.replace(/\s+/g,"")==="")}class rg extends k.PureComponent{formatNodeDFS(e){return Array.isArray(e)||(e=[e]),e=e.map(n=>typeof n=="string"||typeof n=="number"?new bx(String(n),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof n=="function"?this.formatNodeDFS(n()):typeof n=="object"&&"children"in n.props?Object.assign(Object.assign({},n),{props:Object.assign(Object.assign({},n.props),{children:this.formatNodeDFS(n.props.children)})}):n),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),w.createElement(bi,Object.assign({component:"span"},e))}}rg.propTypes={rule:h.oneOf(_t.RULE),precision:h.number,truncate:h.oneOf(_t.TRUNCATE),parser:h.func,copyable:h.oneOfType([h.object,h.bool]),delete:h.bool,disabled:h.bool,icon:h.oneOfType([h.node,h.string]),mark:h.bool,underline:h.bool,link:h.oneOfType([h.object,h.bool]),strong:h.bool,type:h.oneOf(_t.TYPE),size:h.oneOf(_t.SIZE),style:h.object,className:h.string,code:h.bool,component:h.string};rg.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Ue=pl;Ue.Text=_l;Ue.Title=tg;Ue.Paragraph=ng;Ue.Numeral=rg;var Qf,XS;function Sx(){if(XS)return Qf;XS=1;var o=Fr(),e=kn(),n="[object Number]";function r(s){return typeof s=="number"||e(s)&&o(s)==n}return Qf=r,Qf}var wx=Sx();const Lr=Ze(wx),_x=`${Te}-spin`,Cx={PREFIX:_x},Ex={SIZE:["small","middle","large"]};class ig extends kt{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},ig.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:n}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const s=this;this._timer=setTimeout(()=>{s._adapter.setState({loading:e,delay:0})},n)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}var Px=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};let YS=-1;function q0(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:n,customIconCls:r}=o,s=Px(o,["id","className","customIconCls"]),l=ke(Wa,"config.overrideDefaultProps.Spin.indicator");if(l&&w.isValidElement(l))return w.cloneElement(l,{className:X({[r]:r,[n]:n})});let c=e;bl(c)&&(YS++,c=YS);const u=`linearGradient-${c}`;return w.createElement("svg",Object.assign({},s,{className:n,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),w.createElement("defs",null,w.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:u},w.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),w.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),w.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),w.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},w.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),w.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${u})`,strokeWidth:"4",strokeLinecap:"round"})))}var kx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const oi=Cx.PREFIX;class Mr extends gt{constructor(e){super(e),this.foundation=new ig(this.adapter),this.state={delay:e.delay,loading:!0}}static getDerivedStateFromProps(e){return e.delay?e.spinning===!1?{delay:0,loading:!1}:{delay:e.delay}:{loading:e.spinning}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setLoading:e=>{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:n}=this.props,{loading:r}=this.state;return r?w.createElement("div",{className:`${oi}-wrapper`},e?w.createElement("div",{className:`${oi}-animate`,"x-semi-prop":"indicator"},e):w.createElement(q0,null),n?w.createElement("div",{"x-semi-prop":"tip"},n):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:n,style:r,wrapperClassName:s,childStyle:l,size:c}=e,u=kx(e,["children","style","wrapperClassName","childStyle","size"]),{loading:p}=this.state,g=X(oi,s,{[`${oi}-${c}`]:c,[`${oi}-block`]:n,[`${oi}-hidden`]:!p});return w.createElement("div",Object.assign({className:g,style:r},this.getDataAttr(u)),this.renderSpin(),w.createElement("div",{className:`${oi}-children`,style:l,"x-semi-prop":"children"},n))}}Mr.propTypes={size:h.oneOf(Ex.SIZE),spinning:h.bool,children:h.node,indicator:h.node,delay:h.number,tip:h.node,wrapperClassName:h.string,childStyle:h.object,style:h.object};Mr.__SemiComponentName__="Spin";Mr.defaultProps=sr(Mr.__SemiComponentName__,{size:"middle",spinning:!0,children:null,indicator:null,delay:0});const Tx={PREFIX:`${Te}-input`},Cl={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},_G={};function Ox(o){const{value:e,maxLength:n,getValueLength:r}=o;if(Kt(r)){let s=0,l=e.length;for(;s<l;){const c=s+Math.floor((l-s)/2),u=e.slice(0,c+1);r(u)>n?l=c:s=c+1}return e.slice(0,s)}else return e.slice(0,n)}class og extends kt{static get inputDefaultAdapter(){return{notifyChange:he,setValue:he}}constructor(e){super(Object.assign(Object.assign({},og.inputDefaultAdapter),e)),this.compositionEnter=!1,this.getNextValue=n=>{const{maxLength:r,minLength:s,getValueLength:l}=this._adapter.getProps();return Kt(l)?r?this.handleVisibleMaxLength(n):(s&&this.handleVisibleMinLength(n),n):n},this.changeInput=(n,r)=>{this._isControlledComponent()?this._adapter.notifyChange(n,r):(this._adapter.setValue(n),this._adapter.notifyChange(n,r))},this.handleCompositionStart=n=>{this.compositionEnter=!0,this._adapter.notifyCompositionStart(n)},this.handleCompositionEnd=n=>{const r=n.target.value;this.compositionEnter=!1,this._adapter.notifyCompositionEnd(n);const{getValueLength:s,maxLength:l,minLength:c}=this.getProps();if(Kt(s)){if(l){const u=this.handleVisibleMaxLength(r);u!==r&&this.changeInput(u,n)}c&&this.handleVisibleMinLength(r)}},this.handleCompositionUpdate=n=>{this._adapter.notifyCompositionUpdate(n)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}setValue(e){this._adapter.setValue(e)}handleChange(e,n){let r=e;this.compositionEnter||(r=this.getNextValue(r)),this.changeInput(r,n)}handleVisibleMinLength(e){const{minLength:n,getValueLength:r}=this._adapter.getProps(),{minLength:s}=this._adapter.getStates();if(Lr(n)&&n>=0&&Kt(r)&&at(e)){const l=r(e);if(l<n){const c=e.length+(n-l);c!==s&&this._adapter.setMinLength(c)}else s!==n&&this._adapter.setMinLength(n)}}handleVisibleMaxLength(e){const{maxLength:n,getValueLength:r}=this._adapter.getProps();return Lr(n)&&n>=0&&Kt(r)&&at(e)&&r(e)>n?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,n)):e}handleTruncateValue(e,n){const{getValueLength:r}=this._adapter.getProps();return Ox({value:e,maxLength:n,getValueLength:r})}handleClear(e){let n=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!n||typeof n!="object")&&(n={}),R0(n,Cl.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,n),this._adapter.notifyClear(n),n&&this.stopPropagation(n)}handleClick(e){const{disabled:n}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();n||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const n=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!n)}handleInputType(e){const n=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return n==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:n}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(n,e)}handleFocus(e){const{value:n}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(n,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===Zh&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:n,isHovering:r}=this._adapter.getStates(),{showClear:s,disabled:l,showClearIgnoreDisabled:c}=this._adapter.getProps();return e&&s&&(!l||c)&&(n||r)}handleClickPrefixOrSuffix(e){const{disabled:n}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!n&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&Kt(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e?.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}}var xx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const je=Tx.PREFIX,Ix=Cl.SIZE,Dx=Cl.STATUS,Rx=Cl.MODE;class sg extends gt{constructor(e){super(e),this.handleClear=r=>{this.foundation.handleClear(r)},this.handleClick=r=>{this.foundation.handleClick(r)},this.handleMouseOver=r=>{this.setState({isHovering:!0})},this.handleMouseLeave=r=>{this.setState({isHovering:!1})},this.handleModeChange=r=>{this.foundation.handleModeChange(r)},this.handleClickEye=r=>{this.foundation.handleClickEye(r)},this.handleMouseDown=r=>{this.foundation.handleMouseDown(r)},this.handleMouseUp=r=>{this.foundation.handleMouseUp(r)},this.handleModeEnterPress=r=>{this.foundation.handleModeEnterPress(r)},this.handleClickPrefixOrSuffix=r=>{this.foundation.handleClickPrefixOrSuffix(r)},this.handlePreventMouseDown=r=>{this.foundation.handlePreventMouseDown(r)};const n="value"in e?e.value:e.defaultValue;this.state={value:n,cachedValue:e.value,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=w.createRef(),this.prefixRef=w.createRef(),this.suffixRef=w.createRef(),this.foundation=new og(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,n=this.inputRef&&this.inputRef.current;n&&n.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,n)=>this.props.onChange(e,n),notifyBlur:(e,n)=>this.props.onBlur(n),notifyFocus:(e,n)=>this.props.onFocus(n),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),notifyCompositionStart:e=>this.props.onCompositionStart(e),notifyCompositionEnd:e=>this.props.onCompositionEnd(e),notifyCompositionUpdate:e=>this.props.onCompositionUpdate(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,n){const r={};return e.value!==n.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:n}=this.props;e.mode!==n&&this.handleModeChange(n)}componentDidMount(){const{disabled:e,autoFocus:n,preventScroll:r}=this.props;!e&&(n||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const n=X({[`${je}-prepend`]:!0,[`${je}-prepend-text`]:e&&at(e),[`${je}-prepend-icon`]:An(e)});return w.createElement("div",{className:n,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const n=X({[`${je}-append`]:!0,[`${je}-append-text`]:e&&at(e),[`${je}-append-icon`]:An(e)});return w.createElement("div",{className:n,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=X(`${je}-clearbtn`),{clearIcon:n}=this.props;return this.foundation.isAllowClear()?w.createElement("div",{className:e,onMouseDown:this.handleClear},n||w.createElement(A0,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:n,disabled:r}=this.props,s=X(`${je}-modebtn`),l=e?w.createElement(ZO,null):w.createElement(ex,null),c=n==="password"&&!r,u=e?"Show password":"Hidden password";return c?w.createElement("div",{role:"button",tabIndex:0,"aria-label":u,className:s,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},l):null}renderPrefix(){const{prefix:e,insetLabel:n,insetLabelId:r}=this.props,s=e||n;if(!s)return null;const l=X({[`${je}-prefix`]:!0,[`${je}-inset-label`]:n,[`${je}-prefix-text`]:s&&at(s),[`${je}-prefix-icon`]:An(s)});return w.createElement("div",{className:l,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},s)}renderSuffix(e){const{suffix:n,hideSuffix:r}=this.props;if(!n)return null;const s=X({[`${je}-suffix`]:!0,[`${je}-suffix-text`]:n&&at(n),[`${je}-suffix-icon`]:An(n),[`${je}-suffix-hidden`]:e&&!!r});return w.createElement("div",{className:s,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},n)}getInputRef(){const{forwardRef:e}=this.props;if(!ls(e)){if(typeof e=="function")return n=>{e(n),this.inputRef={current:n}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:n,addonBefore:r,autoFocus:s,clearIcon:l,className:c,disabled:u,defaultValue:p,placeholder:g,prefix:v,mode:y,insetLabel:b,insetLabelId:E,validateStatus:P,type:S,readonly:C,size:O,suffix:x,style:R,showClear:M,onEnterPress:F,onClear:j,hideSuffix:N,inputStyle:z,forwardRef:U,maxLength:K,getValueLength:Q,preventScroll:re,borderless:ne,showClearIgnoreDisabled:ae,onlyBorder:oe}=e,ge=xx(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled","onlyBorder"]),{value:me,isFocus:W,minLength:ee}=this.state,D=this.foundation.isAllowClear(),H=An(x),V=this.getInputRef(),ie=`${je}-wrapper`,ue=X(ie,c,{[`${je}-wrapper__with-prefix`]:v||b,[`${je}-wrapper__with-suffix`]:x,[`${je}-wrapper__with-suffix-hidden`]:D&&!!N,[`${je}-wrapper__with-suffix-icon`]:H,[`${je}-wrapper__with-append`]:r,[`${je}-wrapper__with-prepend`]:n,[`${je}-wrapper__with-append-only`]:r&&!n,[`${je}-wrapper__with-prepend-only`]:!r&&n,[`${ie}-readonly`]:C,[`${ie}-disabled`]:u,[`${ie}-warning`]:P==="warning",[`${ie}-error`]:P==="error",[`${ie}-focus`]:W,[`${ie}-clearable`]:M,[`${ie}-modebtn`]:y==="password",[`${ie}-hidden`]:S==="hidden",[`${ie}-${O}`]:O,[`${je}-borderless`]:ne,[`${je}-only_border`]:oe!=null}),_e=X(je,{[`${je}-${O}`]:O,[`${je}-disabled`]:u,[`${je}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${je}-sibling-modebtn`]:y==="password"}),ye=me??"",be=Object.assign(Object.assign({},ge),{style:z,className:_e,disabled:u,readOnly:C,type:this.foundation.handleInputType(S),placeholder:g,onInput:ve=>this.foundation.handleInput(ve),onChange:ve=>this.foundation.handleChange(ve.target.value,ve),onFocus:ve=>this.foundation.handleFocus(ve),onBlur:ve=>this.foundation.handleBlur(ve),onKeyUp:ve=>this.foundation.handleKeyUp(ve),onKeyDown:ve=>this.foundation.handleKeyDown(ve),onKeyPress:ve=>this.foundation.handleKeyPress(ve),onCompositionStart:this.foundation.handleCompositionStart,onCompositionEnd:this.foundation.handleCompositionEnd,onCompositionUpdate:this.foundation.handleCompositionUpdate,value:ye});Kt(Q)||(be.maxLength=K),ee&&(be.minLength=ee),P==="error"&&(be["aria-invalid"]="true");let Ce=Object.assign({},R);return oe!==void 0&&(Ce=Object.assign({borderWidth:oe},R)),w.createElement("div",{className:ue,style:Ce,onMouseEnter:ve=>this.handleMouseOver(ve),onMouseLeave:ve=>this.handleMouseLeave(ve),onClick:ve=>this.handleClick(ve)},this.renderPrepend(),this.renderPrefix(),w.createElement("input",Object.assign({},be,{ref:V})),this.renderClearBtn(),this.renderSuffix(D),this.renderModeBtn(),this.renderAppend())}}sg.propTypes={"aria-label":h.string,"aria-labelledby":h.string,"aria-invalid":h.bool,"aria-errormessage":h.string,"aria-describedby":h.string,"aria-required":h.bool,addonBefore:h.node,addonAfter:h.node,clearIcon:h.node,prefix:h.node,suffix:h.node,mode:h.oneOf(Rx),value:h.any,defaultValue:h.any,disabled:h.bool,readonly:h.bool,autoFocus:h.bool,type:h.string,showClear:h.bool,hideSuffix:h.bool,placeholder:h.any,size:h.oneOf(Ix),className:h.string,style:h.object,validateStatus:h.oneOf(Dx),onClear:h.func,onChange:h.func,onBlur:h.func,onFocus:h.func,onInput:h.func,onKeyDown:h.func,onKeyUp:h.func,onKeyPress:h.func,onEnterPress:h.func,onCompositionStart:h.func,onCompositionEnd:h.func,onCompositionUpdate:h.func,insetLabel:h.node,insetLabelId:h.string,inputStyle:h.object,getValueLength:h.func,preventScroll:h.bool,borderless:h.bool};sg.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:he,onChange:he,onBlur:he,onFocus:he,onInput:he,onKeyDown:he,onKeyUp:he,onKeyPress:he,onEnterPress:he,onCompositionStart:he,onCompositionEnd:he,onCompositionUpdate:he,validateStatus:"default",borderless:!1};const cs=w.forwardRef((o,e)=>w.createElement(sg,Object.assign({},o,{forwardRef:e})));var Nx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};class G0 extends w.PureComponent{render(){const e=this.props,{triggerRender:n,componentName:r}=e,s=Nx(e,["triggerRender","componentName"]);return n(Object.assign({},s))}}G0.propTypes={triggerRender:h.func.isRequired,componentName:h.string,componentProps:h.object,value:h.any,inputValue:h.string,placeholder:h.oneOfType([h.string,h.array]),className:h.string,style:h.object};const jx={PREFIX:`${Te}-highlight`},Lx=o=>o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");class Ax extends kt{constructor(e){super(Object.assign({},e)),this.findAll=n=>{let{autoEscape:r=!0,caseSensitive:s=!1,searchWords:l,sourceString:c}=n;at(l)&&(l=[l]);const u=this.findChunks({autoEscape:r,caseSensitive:s,searchWords:l,sourceString:c}),p=this.combineChunks({chunks:u});return this.fillInChunks({chunksToHighlight:p,totalLength:c?c.length:0})},this.findChunks=n=>{let{autoEscape:r,caseSensitive:s,searchWords:l,sourceString:c}=n;return l.map(u=>typeof u=="string"?{text:u}:u).filter(u=>u.text).reduce((u,p)=>{let g=p.text;r&&(g=Lx(g));const v=new RegExp(g,s?"g":"gi");let y;for(;y=v.exec(c);){const b=y.index,E=v.lastIndex;E>b&&u.push({highlight:!0,start:b,end:E,className:p.className,style:p.style}),y.index===v.lastIndex&&v.lastIndex++}return u},[])},this.combineChunks=n=>{let{chunks:r}=n;return r.sort((s,l)=>s.start-l.start).reduce((s,l)=>{if(s.length===0)return[l];{const c=s.pop();if(l.start<=c.end){const u=Math.max(c.end,l.end);s.push({highlight:!0,start:c.start,end:u,className:c.className||l.className,style:Object.assign(Object.assign({},c.style),l.style)})}else s.push(c,l);return s}},[])},this.fillInChunks=n=>{let{chunksToHighlight:r,totalLength:s}=n;const l=[],c=(u,p,g,v,y)=>{p-u>0&&l.push({start:u,end:p,highlight:g,className:v,style:y})};if(r.length===0)c(0,s,!1);else{let u=0;r.forEach(p=>{c(u,p.start,!1),c(p.start,p.end,!0,p.className,p.style),u=p.end}),c(u,s,!1)}return l}}}const Mx=jx.PREFIX;class ag extends k.PureComponent{constructor(){super(...arguments),this.getHighLightTextHTML=e=>{let{sourceString:n="",searchWords:r=[],option:s={autoEscape:!0,caseSensitive:!1}}=e;const l=new Ax().findAll(Object.assign({sourceString:n,searchWords:r},s)),c=s.highlightTag||"mark",u=s.highlightClassName||"",p=s.highlightStyle||{};return l.map((g,v)=>{const{end:y,start:b,highlight:E,style:P,className:S}=g,C=n.substr(b,y-b);return E?w.createElement(c,{style:Object.assign(Object.assign({},p),P),className:`${u} ${S||""}`.trim(),key:C+v},C):C})}}render(){const{searchWords:e,sourceString:n,component:r,highlightClassName:s,highlightStyle:l,caseSensitive:c,autoEscape:u}=this.props,p=X({[`${Mx}-tag`]:!0},s),g={highlightTag:r,highlightClassName:p,highlightStyle:l,caseSensitive:c,autoEscape:u};return this.getHighLightTextHTML({sourceString:n,searchWords:e,option:g})}}ag.propTypes={style:h.object,className:h.string,autoEscape:h.bool,caseSensitive:h.bool,sourceString:h.string,searchWords:h.arrayOf(h.string),highlightStyle:h.object,highlightClassName:h.string,component:h.string};ag.defaultProps={component:"mark",autoEscape:!0,caseSensitive:!1,sourceString:""};const $x={PREFIX:`${Te}-avatar`},to={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"]};class Fx extends kt{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=n=>{const{target:r}=n;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{rr(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)},this.changeScale=()=>{const{gap:n}=this.getProps(),r=this._adapter.getAvatarNode(),s=r?.firstChild,[l,c]=[r?.offsetWidth||0,s?.offsetWidth||0];if(l!==0&&c!==0&&n*2<l){const u=l-n*2>c?1:(l-n*2)/c;this._adapter.setScale(u)}}}init(){const{children:e}=this.getProps();typeof e=="string"&&this.changeScale()}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}const zx=o=>{let{gradientStart:e,gradientEnd:n}=o;const r=ds();return w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"51",height:"52",viewBox:"0 0 51 52",fill:"none"},w.createElement("g",{filter:"url(#filter0_d_6_2)"},w.createElement("path",{d:"M40.4918 46.5592C44.6795 43.176 46.261 34.1333 47.5301 25.6141C49.5854 11.8168 39.6662 1 25.8097 1C11.2857 1 3 11.4279 3 25.3518C3 33.7866 6.29361 43.8947 10.4602 46.5592C12.5868 47.9192 12.5868 47.9051 25.8097 47.9192C38.3651 47.9282 38.5352 48.14 40.4918 46.5592Z",fill:`url(#${r})`})),w.createElement("defs",null,w.createElement("filter",{id:"filter0_d_6_2",x:"0.789215",y:"0.447304",width:"49.2216",height:"51.3549",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},w.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),w.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),w.createElement("feOffset",{dy:"1.65809"}),w.createElement("feGaussianBlur",{stdDeviation:"1.10539"}),w.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),w.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_6_2"}),w.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_6_2",result:"shape"})),w.createElement("linearGradient",{id:r,x1:"17.671",y1:"31.7392",x2:"17.671",y2:"47.9333",gradientUnits:"userSpaceOnUse"},w.createElement("stop",{stopColor:e}),w.createElement("stop",{offset:"1",stopColor:n}))))};var Bx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const qx=to.SIZE,Gx=to.SHAPE,Ux=to.COLOR,Le=$x.PREFIX;let Xi=class extends gt{constructor(e){super(e),this.handleFocusVisible=n=>{this.foundation.handleFocusVisible(n)},this.handleBlur=n=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:n,onClick:r,imgAttr:s,src:l,srcSet:c,alt:u}=this.props,{isImgExist:p}=this.state;let g=n;const v=r!==er,y=l&&p,b={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(y){const E=v?`clickable Avatar: ${u}`:u,P=Object.assign(Object.assign({src:l,srcSet:c,onError:this.handleError},s),{className:X({[`${Le}-no-focus-visible`]:v})}),S=v?Object.assign(Object.assign({},P),b):P;g=w.createElement("img",Object.assign({alt:E},S))}else if(typeof n=="string"){const E=u??n,S={role:"img","aria-label":v?`clickable Avatar: ${E}`:E,className:X(`${Le}-label`,{[`${Le}-no-focus-visible`]:v})},C=v?Object.assign(Object.assign({},S),b):S,O={transform:`scale(${this.state.scale})`};g=w.createElement("span",{className:`${Le}-content`,style:O},w.createElement("span",Object.assign({},C,{"x-semi-prop":"children"}),n))}return g},this.renderBottomSlot=()=>{var n,r;if(!this.props.bottomSlot)return null;if(this.props.bottomSlot.render)return this.props.bottomSlot.render();const s=(n=this.props.bottomSlot.render)!==null&&n!==void 0?n:()=>{var l;const c={};return this.props.bottomSlot.bgColor&&(c.backgroundColor=this.props.bottomSlot.bgColor),this.props.bottomSlot.textColor&&(c.color=this.props.bottomSlot.textColor),w.createElement("span",{style:c,className:X(`${Le}-bottom_slot-shape_${this.props.bottomSlot.shape}`,`${Le}-bottom_slot-shape_${this.props.bottomSlot.shape}-${this.props.size}`,(l=this.props.bottomSlot.className)!==null&&l!==void 0?l:"")},this.props.bottomSlot.text)};return w.createElement("div",{className:X([`${Le}-bottom_slot`]),style:(r=this.props.bottomSlot.style)!==null&&r!==void 0?r:{}},s())},this.renderTopSlot=()=>{var n,r,s,l;if(!this.props.topSlot)return null;if(this.props.topSlot.render)return this.props.topSlot.render();const c={};return this.props.topSlot.textColor&&(c.color=this.props.topSlot.textColor),w.createElement("div",{style:(n=this.props.topSlot.style)!==null&&n!==void 0?n:{},className:X([`${Le}-top_slot-wrapper`,(r=this.props.topSlot.className)!==null&&r!==void 0?r:"",{[`${Le}-animated`]:this.props.contentMotion}])},w.createElement("div",{className:X([`${Le}-top_slot-bg`,`${Le}-top_slot-bg-${this.props.size}`])},w.createElement("div",{className:X([`${Le}-top_slot-bg-svg`,`${Le}-top_slot-bg-svg-${this.props.size}`])},w.createElement(zx,{gradientStart:(s=this.props.topSlot.gradientStart)!==null&&s!==void 0?s:"var(--semi-color-primary)",gradientEnd:(l=this.props.topSlot.gradientEnd)!==null&&l!==void 0?l:"var(--semi-color-primary)"}))),w.createElement("div",{className:X([`${Le}-top_slot`])},w.createElement("div",{style:c,className:X([`${Le}-top_slot-content`,`${Le}-top_slot-content-${this.props.size}`])},this.props.topSlot.text)))},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1,scale:1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this),this.avatarRef=w.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:n}=this.props,r=n;this.setState({hoverContent:r},()=>{const{onMouseEnter:s}=this.props;s&&s(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:n}=this.props;n&&n(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})},setScale:e=>{this.setState({scale:e})},getAvatarNode:()=>{var e;return(e=this.avatarRef)===null||e===void 0?void 0:e.current}})}componentDidMount(){this.foundation=new Fx(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const n=new Image(0,0);n.src=this.props.src,n.onload=()=>{this.setState({isImgExist:!0})},n.onerror=()=>{this.setState({isImgExist:!1})},n.onabort=()=>{this.setState({isImgExist:!1})}}typeof this.props.children=="string"&&this.props.children!==e.children&&this.foundation.changeScale()}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:n}=this.props;switch(e.key){case"Enter":n(e),Nr(e);break;case"Escape":e.target.blur();break}}render(){var e;const n=this.props,{shape:r,children:s,size:l,color:c,className:u,hoverMask:p,onClick:g,imgAttr:v,src:y,srcSet:b,style:E,alt:P,gap:S,bottomSlot:C,topSlot:O,border:x,contentMotion:R}=n,M=Bx(n,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt","gap","bottomSlot","topSlot","border","contentMotion"]),{isImgExist:F,hoverContent:j,focusVisible:N}=this.state;let z={};to.SIZE.includes(l)||(z={width:l,height:l}),z=Object.assign(Object.assign({},z),E);const U=C||O||x,K={onClick:g,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},Q=y&&F,re=X(Le,{[`${Le}-${r}`]:r,[`${Le}-${l}`]:l,[`${Le}-${c}`]:c&&!Q,[`${Le}-img`]:Q,[`${Le}-focus`]:N,[`${Le}-animated`]:R},u),ne=j?w.createElement("div",{className:`${Le}-hover`,"x-semi-prop":"hoverContent"},j):null;let ae=w.createElement("span",Object.assign({},M,{style:U?{}:z,className:re},U?{}:K,{role:"listitem",ref:this.avatarRef}),this.getContent(),ne);if(x){const oe={};typeof x=="object"&&x?.color&&(oe.borderColor=x?.color),ae=w.createElement("div",{style:Object.assign({position:"relative"},z)},ae,w.createElement("span",{style:oe,className:X([`${Le}-additionalBorder`,`${Le}-additionalBorder-${l}`,{[`${Le}-${r}`]:r}])}),typeof this.props.border=="object"&&this.props.border.motion&&w.createElement("span",{style:oe,className:X([`${Le}-additionalBorder`,`${Le}-additionalBorder-${l}`,{[`${Le}-${r}`]:r,[`${Le}-additionalBorder-animated`]:typeof this.props.border=="object"&&((e=this.props.border)===null||e===void 0?void 0:e.motion)}])}))}return U?w.createElement("span",Object.assign({className:X([`${Le}-wrapper`]),style:z},K),ae,O&&["extra-small","small","default","medium","large","extra-large"].includes(l)&&r==="circle"&&this.renderTopSlot(),C&&["extra-small","small","default","medium","large","extra-large"].includes(l)&&this.renderBottomSlot()):ae}};Xi.__SemiComponentName__="Avatar";Xi.defaultProps=sr(Xi.__SemiComponentName__,{size:"medium",color:"grey",shape:"circle",gap:3,onClick:er,onMouseEnter:er,onMouseLeave:er});Xi.propTypes={children:h.node,color:h.oneOf(Ux),shape:h.oneOf(Gx),size:h.oneOf(qx),hoverMask:h.node,className:h.string,style:h.object,gap:h.number,imgAttr:h.object,src:h.string,srcSet:h.string,alt:h.string,onError:h.func,onClick:h.func,onMouseEnter:h.func,onMouseLeave:h.func,bottomSlot:h.shape({render:h.func,shape:h.oneOf(["circle","square"]),text:h.node,bgColor:h.string,textColor:h.string,className:h.string,style:h.object}),topSlot:h.shape({render:h.func,gradientStart:h.string,gradientEnd:h.string,text:h.node,textColor:h.string,className:h.string,style:h.object}),border:h.oneOfType([h.shape({color:h.string,motion:h.bool}),h.bool]),contentMotion:h.bool};Xi.elementType="Avatar";const lg={PREFIX:`${Te}-button`},Si={sizes:["default","small","large"],iconPositions:["left","right"],htmlTypes:["button","reset","submit"],btnTypes:["primary","secondary","tertiary","warning","danger"],themes:["solid","borderless","light","outline"],DEFAULT_ICON_POSITION:"left"},Wx={SIZE:["extra-small","small","default","large","extra-large","custom"]};var Hx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Vx=Si.sizes,{htmlTypes:Kx,btnTypes:Qx}=Si;let _s=class extends k.PureComponent{render(){const e=this.props,{children:n,block:r,htmlType:s,loading:l,circle:c,className:u,style:p,disabled:g,size:v,theme:y,type:b,prefixCls:E,iconPosition:P}=e,S=Hx(e,["children","block","htmlType","loading","circle","className","style","disabled","size","theme","type","prefixCls","iconPosition"]),C=Object.assign(Object.assign({disabled:g},yi(S,["x-semi-children-alias"])),{className:X(E,{[`${E}-${b}`]:!g&&b,[`${E}-disabled`]:g,[`${E}-size-large`]:v==="large",[`${E}-size-small`]:v==="small",[`${E}-light`]:y==="light",[`${E}-block`]:r,[`${E}-circle`]:c,[`${E}-borderless`]:y==="borderless",[`${E}-outline`]:y==="outline",[`${E}-${b}-disabled`]:g&&b},u),type:s,"aria-disabled":g}),O={};return u&&u.includes("-with-icon")||(O["x-semi-prop"]=this.props["x-semi-children-alias"]||"children"),w.createElement("button",Object.assign({},C,{onClick:this.props.onClick,onMouseDown:this.props.onMouseDown,style:p}),w.createElement("span",Object.assign({className:X(`${E}-content`,this.props.contentClassName),onClick:x=>g&&x.stopPropagation()},O),n))}};_s.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:er,onClick:er,onMouseEnter:er,onMouseLeave:er,prefixCls:lg.PREFIX};_s.propTypes={children:h.node,disabled:h.bool,prefixCls:h.string,style:h.object,size:h.oneOf(Vx),type:h.oneOf(Qx),block:h.bool,onClick:h.func,onMouseDown:h.func,circle:h.bool,loading:h.bool,htmlType:h.oneOf(Kx),theme:h.oneOf(Si.themes),className:h.string,onMouseEnter:h.func,onMouseLeave:h.func,"aria-label":h.string,contentClassName:h.string};var Xx=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Yx=Wx.SIZE;class zr extends k.PureComponent{render(){const e=this.props,{children:n,iconPosition:r,iconSize:s,iconStyle:l,style:c,icon:u,noHorizontalPadding:p,theme:g,className:v,prefixCls:y,loading:b}=e,E=Xx(e,["children","iconPosition","iconSize","iconStyle","style","icon","noHorizontalPadding","theme","className","prefixCls","loading"]),P=Object.assign({},c);Array.isArray(p)?(p.includes("left")&&(P.paddingLeft=0),p.includes("right")&&(P.paddingRight=0)):p===!0?(P.paddingLeft=0,P.paddingRight=0):typeof p=="string"&&(p==="left"&&(P.paddingLeft=0),p==="right"&&(P.paddingRight=0));let S=null,C=null;b&&!E.disabled?C=w.createElement(q0,{customIconCls:`${y}-content-loading-icon`}):w.isValidElement(u)&&(C=u);const O=X({[`${y}-content-left`]:r==="right",[`${y}-content-right`]:r==="left"}),x=this.props["x-semi-children-alias"]||"children",R=n!=null?w.createElement("span",{className:O,"x-semi-prop":x},n):null;r==="left"?S=w.createElement(w.Fragment,null,C,R):S=w.createElement(w.Fragment,null,R,C);const M=X(v,`${y}-with-icon`,{[`${y}-with-icon-only`]:R==null||R==="",[`${y}-loading`]:b});return w.createElement(_s,Object.assign({},E,{className:M,theme:g,style:P}),S)}}zr.defaultProps={iconPosition:Si.DEFAULT_ICON_POSITION,prefixCls:lg.PREFIX,loading:!1,noHorizontalPadding:!1,onMouseEnter:he,onMouseLeave:he};zr.elementType="IconButton";zr.propTypes={iconStyle:h.object,style:h.object,loading:h.bool,prefixCls:h.string,icon:h.oneOfType([h.object,h.string,h.node]),iconSize:h.oneOf(Yx),noHorizontalPadding:h.oneOfType([h.bool,h.string,h.array]),children:h.node,theme:h.string,iconPosition:h.oneOf(Si.iconPositions),className:h.string,onMouseEnter:h.func,onMouseLeave:h.func};const Zx={PREFIX:`${Te}-banner`},Jx={TYPE:["info","success","danger","warning"]};class cg extends kt{constructor(e){super(Object.assign(Object.assign({},cg.defaultAdapter),e))}removeBanner(e){this._adapter.notifyClose(e),this._adapter.setVisible()}}const Wt=Zx.PREFIX,e2=Jx.TYPE;class Cs extends gt{constructor(e){super(e),this.remove=n=>{n&&n.stopPropagation(),this.foundation.removeBanner(n)},this.state={visible:!0},rr("target"in this.props,"[Semi Banner] 'target' has been deprecated, please write JSX directly instead.")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:()=>{this.setState({visible:!1})},notifyClose:e=>{const{onClose:n}=this.props;n(e)}})}componentDidMount(){this.foundation=new cg(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}renderCloser(){const{closeIcon:e}=this.props;return e===null?e:w.createElement(zr,{className:`${Wt}-close`,onClick:this.remove,icon:e||w.createElement(ws,{"x-semi-prop":"closeIcon","aria-hidden":!0}),theme:"borderless",size:"small",type:"tertiary","aria-label":"Close"})}renderIcon(){const{type:e,icon:n}=this.props;let s={warning:w.createElement(Xh,{size:"large","aria-label":"warning"}),success:w.createElement(Yh,{size:"large","aria-label":"success"}),info:w.createElement(wl,{size:"large","aria-label":"info"}),danger:w.createElement(Qh,{size:"large","aria-label":"danger"})}[e];const l=X({[`${Wt}-icon`]:!0});return typeof n<"u"&&(s=n),s?w.createElement("div",{className:l,"x-semi-prop":"icon"},s):null}render(){const{children:e,type:n,className:r,style:s,bordered:l,title:c,description:u,fullMode:p}=this.props,{visible:g}=this.state,v=X(Wt,r,{[`${Wt}-${n}`]:n,[`${Wt}-full`]:p,[`${Wt}-in-container`]:!p,[`${Wt}-bordered`]:!p&&l});return g?w.createElement("div",Object.assign({className:v,style:s,role:"alert"},this.getDataAttr(this.props)),w.createElement("div",{className:`${Wt}-content-wrapper`},w.createElement("div",{className:`${Wt}-content`},this.renderIcon(),w.createElement("div",{className:`${Wt}-content-body`},c?w.createElement(Ue.Title,{heading:5,className:`${Wt}-title`,component:"div","x-semi-prop":"title"},c):null,u?w.createElement(Ue.Paragraph,{className:`${Wt}-description`,component:"div","x-semi-prop":"description"},u):null)),this.renderCloser()),e?w.createElement("div",{className:`${Wt}-extra`,"x-semi-prop":"children"},e):null):null}}Cs.propTypes={fullMode:h.bool,type:h.oneOf(e2),title:h.node,description:h.node,icon:h.node,closeIcon:h.node,children:h.node,style:h.object,className:h.string,onClose:h.func,bordered:h.bool};Cs.defaultProps={onClose:()=>{},type:"info",fullMode:!0};let it=class extends w.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),n=!!e.icon,r=!!e.loading,s=!!e.disabled;return n||r&&!s?w.createElement(zr,Object.assign({},e)):w.createElement(_s,Object.assign({},e))}};it.__SemiComponentName__="Button";it.propTypes=Object.assign(Object.assign({},_s.propTypes),zr.propTypes);it.defaultProps=sr(it.__SemiComponentName__);it.elementType="Button";var t2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Qo=lg.PREFIX,n2=Si.sizes;class ug extends gt{getInnerWithLine(e){const n=[];return e.length>1?(e.slice(0,-1).forEach((r,s)=>{const l=ke(r,"type.elementType")==="Button",c=ke(r,"props"),{type:u,theme:p,disabled:g}=c??{};if(l&&p!=="outline"){const v=X(`${Qo}-group-line`,`${Qo}-group-line-${p??"light"}`,`${Qo}-group-line-${u??"primary"}`,{[`${Qo}-group-line-disabled`]:g});n.push(r,w.createElement("span",{className:v,key:`line-${s}`}))}else n.push(r)}),n.push(e.slice(-1)),n):e}render(){const e=this.props,{children:n,disabled:r,size:s,type:l,className:c,style:u,"aria-label":p}=e,g=t2(e,["children","disabled","size","type","className","style","aria-label"]);let v,y=[];const b=X(`${Qo}-group`,c);return n&&(v=(Array.isArray(n)?n:[n]).map((E,P)=>{var S;return k.isValidElement(E)?k.cloneElement(E,Object.assign(Object.assign(Object.assign({disabled:r,size:s,type:l},E.props),g),{key:(S=E.key)!==null&&S!==void 0?S:P})):E}),y=this.getInnerWithLine(v)),w.createElement("div",{className:b,style:u,role:"group","aria-label":p},y)}}ug.propTypes={children:h.node,disabled:h.bool,type:h.string,size:h.oneOf(n2),theme:h.oneOf(Si.themes),"aria-label":h.string};ug.defaultProps={size:"default"};const U0={PREFIX:`${Te}-card`},r2={SHADOWS:["hover","always"]};var i2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Xo=U0.PREFIX;class W0 extends k.PureComponent{render(){const e=this.props,{avatar:n,className:r,description:s,style:l,title:c}=e,u=i2(e,["avatar","className","description","style","title"]),p=X(`${Xo}-meta`,r),g=n&&w.createElement("div",{className:`${Xo}-meta-avatar`},n),v=c&&w.createElement("div",{className:`${Xo}-meta-wrapper-title`},c),y=s&&w.createElement("div",{className:`${Xo}-meta-wrapper-description`},s),b=c||s?w.createElement("div",{className:`${Xo}-meta-wrapper`},v,y):null;return w.createElement("div",Object.assign({},u,{className:p,style:l}),g,b)}}W0.propTypes={avatar:h.node,className:h.string,description:h.node,style:h.object,title:h.node};const dg={PREFIX:`${Te}-skeleton`};var o2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const s2=to.SIZE,a2=to.SHAPE,El=o=>e=>n=>w.createElement(e,Object.assign({type:o},n));class no extends k.PureComponent{render(){const e=this.props,{prefixCls:n,className:r,type:s,size:l,shape:c}=e,u=o2(e,["prefixCls","className","type","size","shape"]),p=X(r,`${n}-${s}`,{[`${n}-${s}-${l}`]:s.toUpperCase()==="AVATAR"},{[`${n}-${s}-${c}`]:s.toUpperCase()==="AVATAR"});return w.createElement("div",Object.assign({className:p},u))}}no.propTypes={type:h.string,prefixCls:h.string,style:h.object,className:h.string,size:h.oneOf(s2),shape:h.oneOf(a2)};no.defaultProps={prefixCls:dg.PREFIX,size:"medium",shape:"circle"};const l2=El("avatar")(no),c2=El("image")(no),u2=El("title")(no),d2=El("button")(no);class pg extends k.PureComponent{render(){const{prefixCls:e,className:n,style:r,rows:s}=this.props,l=X(n,`${e}-paragraph`);return w.createElement("ul",{className:l,style:r},[...Array(s)].map((c,u)=>w.createElement("li",{key:u})))}}pg.propTypes={rows:h.number,prefixCls:h.string,style:h.object,className:h.string};pg.defaultProps={prefixCls:dg.PREFIX,rows:4};var p2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const ZS=dg.PREFIX;class Mn extends k.PureComponent{render(){const e=this.props,{placeholder:n,active:r,children:s,className:l,loading:c,style:u}=e,p=p2(e,["placeholder","active","children","className","loading","style"]),g=X(ZS,{[`${ZS}-active`]:!!r},l);let v;return c?v=w.createElement("div",Object.assign({className:g,style:u},p,{"x-semi-prop":"placeholder"}),n):v=s,v}}Mn.Avatar=l2;Mn.Title=u2;Mn.Button=d2;Mn.Paragraph=pg;Mn.Image=c2;Mn.defaultProps={loading:!0};Mn.propTypes={active:h.bool,placeholder:h.node,style:h.object,className:h.string,loading:h.bool,children:h.node};const f2={PREFIX:`${Te}-space`},li={ALIGN_SET:["start","end","center","baseline"],SPACING_LOOSE:"loose",SPACING_MEDIUM:"medium",SPACING_TIGHT:"tight"},h2="Symbol(react.fragment)",kh=o=>{let e=[];return w.Children.forEach(o,n=>{n!=null&&(Array.isArray(n)?e=e.concat(kh(n)):k.isValidElement(n)&&n.type&&n.type.toString()===h2&&n.props?e=e.concat(kh(n.props.children)):e.push(n))}),e},wn=f2.PREFIX;class Es extends k.PureComponent{render(){const{children:e=null,style:n,className:r,spacing:s,wrap:l,align:c,vertical:u}=this.props,p=l&&u?!1:l,g=Object.assign({},n);let v="",y="";at(s)?(v=s,y=s):Lr(s)?(g.rowGap=s,g.columnGap=s):YP(s)&&(at(s[0])?v=s[0]:Lr(s[0])&&(g.columnGap=`${s[0]}px`),at(s[1])?y=s[1]:Lr(s[1])&&(g.rowGap=`${s[1]}px`));const b=X(wn,r,{[`${wn}-align-${c}`]:c,[`${wn}-vertical`]:u,[`${wn}-horizontal`]:!u,[`${wn}-wrap`]:p,[`${wn}-tight-horizontal`]:v===li.SPACING_TIGHT,[`${wn}-tight-vertical`]:y===li.SPACING_TIGHT,[`${wn}-medium-horizontal`]:v===li.SPACING_MEDIUM,[`${wn}-medium-vertical`]:y===li.SPACING_MEDIUM,[`${wn}-loose-horizontal`]:v===li.SPACING_LOOSE,[`${wn}-loose-vertical`]:y===li.SPACING_LOOSE}),E=kh(e),P=Lh(this.props);return w.createElement("div",Object.assign({},P,{className:b,style:g,"x-semi-prop":"children"}),E)}}Es.propTypes={wrap:h.bool,align:h.oneOf(li.ALIGN_SET),vertical:h.bool,spacing:h.oneOfType([h.string,h.number,h.array]),children:h.node,style:h.object,className:h.string};Es.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};var g2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const St=U0.PREFIX;class Pl extends k.PureComponent{constructor(){super(...arguments),this.renderHeader=()=>{const{title:e,headerExtraContent:n,header:r,headerLine:s,headerStyle:l}=this.props,c=X(`${St}-header`,{[`${St}-header-bordered`]:!!s}),u=X(`${St}-header-wrapper`),p=X(`${St}-header-wrapper-title`,{[`${St}-header-wrapper-spacing`]:!!n});return r||n||e?w.createElement("div",{style:l,className:c},r||w.createElement("div",{className:u},n&&w.createElement("div",{className:`${St}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},n),e&&w.createElement("div",{className:p},at(e)?w.createElement(Ue.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,n=X(`${St}-cover`);return e&&w.createElement("div",{className:n,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:n,actions:r,loading:s}=this.props,l=X(`${St}-body`),c=X(`${St}-body-actions`),u=X(`${St}-body-actions-item`),p=w.createElement("div",null,w.createElement(Mn.Title,null),w.createElement("br",null),w.createElement(Mn.Paragraph,{rows:3}));return w.createElement("div",{style:e,className:l},n&&w.createElement(Mn,{placeholder:p,loading:s,active:!0},n),Array.isArray(r)&&w.createElement("div",{className:c},w.createElement(Es,{spacing:12},r.map((g,v)=>w.createElement("div",{key:v,className:u,"x-semi-prop":`actions.${v}`},g)))))},this.renderFooter=()=>{const{footer:e,footerLine:n,footerStyle:r}=this.props,s=X(`${St}-footer`,{[`${St}-footer-bordered`]:n});return e&&w.createElement("div",{style:r,className:s,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:n,shadows:r,style:s,className:l}=e,c=g2(e,["bordered","shadows","style","className"]),u=yi(c,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),p=X(St,l,{[`${St}-bordered`]:n,[`${St}-shadows`]:r,[`${St}-shadows-${r}`]:r});return w.createElement("div",Object.assign({},u,{"aria-busy":this.props.loading,className:p,style:s}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Pl.Meta=W0;Pl.propTypes={actions:h.array,bodyStyle:h.object,bordered:h.bool,children:h.node,className:h.string,cover:h.node,footer:h.node,footerLine:h.bool,footerStyle:h.object,header:h.node,headerExtraContent:h.node,headerLine:h.bool,headerStyle:h.object,loading:h.bool,shadows:h.oneOf(r2.SHADOWS),style:h.object,title:h.node,"aria-label":h.string};Pl.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};var Xf,JS;function m2(){if(JS)return Xf;JS=1;function o(e,n,r,s){for(var l=e.length,c=r+(s?1:-1);s?c--:++c<l;)if(n(e[c],c,e))return c;return-1}return Xf=o,Xf}var Yf,ew;function v2(){if(ew)return Yf;ew=1;function o(e){return e!==e}return Yf=o,Yf}var Zf,tw;function y2(){if(tw)return Zf;tw=1;function o(e,n,r){for(var s=r-1,l=e.length;++s<l;)if(e[s]===n)return s;return-1}return Zf=o,Zf}var Jf,nw;function b2(){if(nw)return Jf;nw=1;var o=m2(),e=v2(),n=y2();function r(s,l,c){return l===l?n(s,l,c):o(s,e,c)}return Jf=r,Jf}var eh,rw;function S2(){if(rw)return eh;rw=1;var o=b2();function e(n,r){var s=n==null?0:n.length;return!!s&&o(n,r,0)>-1}return eh=e,eh}var th,iw;function w2(){if(iw)return th;iw=1;function o(e,n,r){for(var s=-1,l=e==null?0:e.length;++s<l;)if(r(n,e[s]))return!0;return!1}return th=o,th}var nh,ow;function _2(){if(ow)return nh;ow=1;var o=O0(),e=S2(),n=w2(),r=Nh(),s=gl(),l=x0(),c=200;function u(p,g,v,y){var b=-1,E=e,P=!0,S=p.length,C=[],O=g.length;if(!S)return C;v&&(g=r(g,s(v))),y?(E=n,P=!1):g.length>=c&&(E=l,P=!1,g=new o(g));e:for(;++b<S;){var x=p[b],R=v==null?x:v(x);if(x=y||x!==0?x:0,P&&R===R){for(var M=O;M--;)if(g[M]===R)continue e;C.push(x)}else E(g,R,y)||C.push(x)}return C}return nh=u,nh}function Th(){return Th=Object.assign?Object.assign.bind():function(o){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(o[r]=n[r])}return o},Th.apply(null,arguments)}function C2(o,e){o.prototype=Object.create(e.prototype),o.prototype.constructor=o,Eh(o,e)}var sw=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function E2(o,e){return!!(o===e||sw(o)&&sw(e))}function P2(o,e){if(o.length!==e.length)return!1;for(var n=0;n<o.length;n++)if(!E2(o[n],e[n]))return!1;return!0}function rh(o,e){e===void 0&&(e=P2);var n,r=[],s,l=!1;function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];return l&&n===this&&e(u,r)||(s=o.apply(this,u),l=!0,n=this,r=u),s}return c}var k2=typeof performance=="object"&&typeof performance.now=="function",aw=k2?function(){return performance.now()}:function(){return Date.now()};function lw(o){cancelAnimationFrame(o.id)}function T2(o,e){var n=aw();function r(){aw()-n>=e?o.call(null):s.id=requestAnimationFrame(r)}var s={id:requestAnimationFrame(r)};return s}var ih=-1;function cw(o){if(o===void 0&&(o=!1),ih===-1||o){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),ih=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return ih}var Ui=null;function uw(o){if(o===void 0&&(o=!1),Ui===null||o){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),s=r.style;return s.width="100px",s.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Ui="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Ui="negative":Ui="positive-ascending"),document.body.removeChild(e),Ui}return Ui}var O2=150,x2=function(e,n){return e};function I2(o){var e,n=o.getItemOffset,r=o.getEstimatedTotalSize,s=o.getItemSize,l=o.getOffsetForIndexAndAlignment,c=o.getStartIndexForOffset,u=o.getStopIndexForStartIndex,p=o.initInstanceProps,g=o.shouldResetStyleCacheOnItemSizeChange,v=o.validateProps;return e=(function(y){C2(b,y);function b(P){var S;return S=y.call(this,P)||this,S._instanceProps=p(S.props,KS(S)),S._outerRef=void 0,S._resetIsScrollingTimeoutId=null,S.state={instance:KS(S),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof S.props.initialScrollOffset=="number"?S.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},S._callOnItemsRendered=void 0,S._callOnItemsRendered=rh(function(C,O,x,R){return S.props.onItemsRendered({overscanStartIndex:C,overscanStopIndex:O,visibleStartIndex:x,visibleStopIndex:R})}),S._callOnScroll=void 0,S._callOnScroll=rh(function(C,O,x){return S.props.onScroll({scrollDirection:C,scrollOffset:O,scrollUpdateWasRequested:x})}),S._getItemStyle=void 0,S._getItemStyle=function(C){var O=S.props,x=O.direction,R=O.itemSize,M=O.layout,F=S._getItemStyleCache(g&&R,g&&M,g&&x),j;if(F.hasOwnProperty(C))j=F[C];else{var N=n(S.props,C,S._instanceProps),z=s(S.props,C,S._instanceProps),U=x==="horizontal"||M==="horizontal",K=x==="rtl",Q=U?N:0;F[C]=j={position:"absolute",left:K?void 0:Q,right:K?Q:void 0,top:U?0:N,height:U?"100%":z,width:U?z:"100%"}}return j},S._getItemStyleCache=void 0,S._getItemStyleCache=rh(function(C,O,x){return{}}),S._onScrollHorizontal=function(C){var O=C.currentTarget,x=O.clientWidth,R=O.scrollLeft,M=O.scrollWidth;S.setState(function(F){if(F.scrollOffset===R)return null;var j=S.props.direction,N=R;if(j==="rtl")switch(uw()){case"negative":N=-R;break;case"positive-descending":N=M-x-R;break}return N=Math.max(0,Math.min(N,M-x)),{isScrolling:!0,scrollDirection:F.scrollOffset<N?"forward":"backward",scrollOffset:N,scrollUpdateWasRequested:!1}},S._resetIsScrollingDebounced)},S._onScrollVertical=function(C){var O=C.currentTarget,x=O.clientHeight,R=O.scrollHeight,M=O.scrollTop;S.setState(function(F){if(F.scrollOffset===M)return null;var j=Math.max(0,Math.min(M,R-x));return{isScrolling:!0,scrollDirection:F.scrollOffset<j?"forward":"backward",scrollOffset:j,scrollUpdateWasRequested:!1}},S._resetIsScrollingDebounced)},S._outerRefSetter=function(C){var O=S.props.outerRef;S._outerRef=C,typeof O=="function"?O(C):O!=null&&typeof O=="object"&&O.hasOwnProperty("current")&&(O.current=C)},S._resetIsScrollingDebounced=function(){S._resetIsScrollingTimeoutId!==null&&lw(S._resetIsScrollingTimeoutId),S._resetIsScrollingTimeoutId=T2(S._resetIsScrolling,O2)},S._resetIsScrolling=function(){S._resetIsScrollingTimeoutId=null,S.setState({isScrolling:!1},function(){S._getItemStyleCache(-1,null)})},S}b.getDerivedStateFromProps=function(S,C){return D2(S,C),v(S),null};var E=b.prototype;return E.scrollTo=function(S){S=Math.max(0,S),this.setState(function(C){return C.scrollOffset===S?null:{scrollDirection:C.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},E.scrollToItem=function(S,C){C===void 0&&(C="auto");var O=this.props,x=O.itemCount,R=O.layout,M=this.state.scrollOffset;S=Math.max(0,Math.min(S,x-1));var F=0;if(this._outerRef){var j=this._outerRef;R==="vertical"?F=j.scrollWidth>j.clientWidth?cw():0:F=j.scrollHeight>j.clientHeight?cw():0}this.scrollTo(l(this.props,S,C,M,this._instanceProps,F))},E.componentDidMount=function(){var S=this.props,C=S.direction,O=S.initialScrollOffset,x=S.layout;if(typeof O=="number"&&this._outerRef!=null){var R=this._outerRef;C==="horizontal"||x==="horizontal"?R.scrollLeft=O:R.scrollTop=O}this._callPropsCallbacks()},E.componentDidUpdate=function(){var S=this.props,C=S.direction,O=S.layout,x=this.state,R=x.scrollOffset,M=x.scrollUpdateWasRequested;if(M&&this._outerRef!=null){var F=this._outerRef;if(C==="horizontal"||O==="horizontal")if(C==="rtl")switch(uw()){case"negative":F.scrollLeft=-R;break;case"positive-ascending":F.scrollLeft=R;break;default:var j=F.clientWidth,N=F.scrollWidth;F.scrollLeft=N-j-R;break}else F.scrollLeft=R;else F.scrollTop=R}this._callPropsCallbacks()},E.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&lw(this._resetIsScrollingTimeoutId)},E.render=function(){var S=this.props,C=S.children,O=S.className,x=S.direction,R=S.height,M=S.innerRef,F=S.innerElementType,j=S.innerTagName,N=S.itemCount,z=S.itemData,U=S.itemKey,K=U===void 0?x2:U,Q=S.layout,re=S.outerElementType,ne=S.outerTagName,ae=S.style,oe=S.useIsScrolling,ge=S.width,me=this.state.isScrolling,W=x==="horizontal"||Q==="horizontal",ee=W?this._onScrollHorizontal:this._onScrollVertical,D=this._getRangeToRender(),H=D[0],V=D[1],ie=[];if(N>0)for(var ue=H;ue<=V;ue++)ie.push(k.createElement(C,{data:z,key:K(ue,z),index:ue,isScrolling:oe?me:void 0,style:this._getItemStyle(ue)}));var _e=r(this.props,this._instanceProps);return k.createElement(re||ne||"div",{className:O,onScroll:ee,ref:this._outerRefSetter,style:Th({position:"relative",height:R,width:ge,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:x},ae)},k.createElement(F||j||"div",{children:ie,ref:M,style:{height:W?"100%":_e,pointerEvents:me?"none":void 0,width:W?_e:"100%"}}))},E._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var S=this.props.itemCount;if(S>0){var C=this._getRangeToRender(),O=C[0],x=C[1],R=C[2],M=C[3];this._callOnItemsRendered(O,x,R,M)}}if(typeof this.props.onScroll=="function"){var F=this.state,j=F.scrollDirection,N=F.scrollOffset,z=F.scrollUpdateWasRequested;this._callOnScroll(j,N,z)}},E._getRangeToRender=function(){var S=this.props,C=S.itemCount,O=S.overscanCount,x=this.state,R=x.isScrolling,M=x.scrollDirection,F=x.scrollOffset;if(C===0)return[0,0,0,0];var j=c(this.props,F,this._instanceProps),N=u(this.props,j,F,this._instanceProps),z=!R||M==="backward"?Math.max(1,O):1,U=!R||M==="forward"?Math.max(1,O):1;return[Math.max(0,j-z),Math.max(0,Math.min(C-1,N+U)),j,N]},b})(k.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var D2=function(e,n){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,n.instance},R2=I2({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,s,l,c){var u=e.direction,p=e.height,g=e.itemCount,v=e.itemSize,y=e.layout,b=e.width,E=u==="horizontal"||y==="horizontal",P=E?b:p,S=Math.max(0,g*v-P),C=Math.min(S,n*v),O=Math.max(0,n*v-P+v+c);switch(r==="smart"&&(s>=O-P&&s<=C+P?r="auto":r="center"),r){case"start":return C;case"end":return O;case"center":{var x=Math.round(O+(C-O)/2);return x<Math.ceil(P/2)?0:x>S+Math.floor(P/2)?S:x}default:return s>=O&&s<=C?s:s<O?O:C}},getStartIndexForOffset:function(e,n){var r=e.itemCount,s=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/s)))},getStopIndexForStartIndex:function(e,n,r){var s=e.direction,l=e.height,c=e.itemCount,u=e.itemSize,p=e.layout,g=e.width,v=s==="horizontal"||p==="horizontal",y=n*u,b=v?g:l,E=Math.ceil((b+r-y)/u);return Math.max(0,Math.min(c-1,n+E-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const H0={PREFIX:`${Te}-tag`},ro={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var N2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const wt=H0.PREFIX,V0=ro.TAG_COLOR,K0=ro.TAG_SIZE,Q0=ro.TAG_TYPE,j2=ro.AVATAR_SHAPE;class ht extends k.Component{constructor(e){super(e),this.state={visible:!0},this.close=this.close.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}static getDerivedStateFromProps(e){return"visible"in e?{visible:e.visible}:null}setVisible(e){"visible"in this.props||this.setState({visible:e})}close(e,n,r){const{onClose:s}=this.props;e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),s&&s(n,e,r),!e.defaultPrevented&&this.setVisible(!1)}handleKeyDown(e){const{closable:n,onClick:r,onKeyDown:s}=this.props;switch(e.key){case"Backspace":case"Delete":n&&this.close(e,this.props.children,this.props.tagKey),Nr(e);break;case"Enter":r(e),Nr(e);break;case"Escape":e.target.blur();break}s&&s(e)}renderAvatar(){const{avatarShape:e,avatarSrc:n}=this.props;return w.createElement(Xi,{src:n,shape:e})}render(){const e=this.props,{tagKey:n,children:r,size:s,color:l,closable:c,visible:u,onClose:p,onClick:g,className:v,type:y,shape:b,avatarSrc:E,avatarShape:P,tabIndex:S,prefixIcon:C,suffixIcon:O}=e,x=N2(e,["tagKey","children","size","color","closable","visible","onClose","onClick","className","type","shape","avatarSrc","avatarShape","tabIndex","prefixIcon","suffixIcon"]),{visible:R}=this.state,M=g!==ht.defaultProps.onClick||c,F={role:"button",tabIndex:S||0,onKeyDown:this.handleKeyDown},j=Object.assign(Object.assign({},x),{onClick:g,tabIndex:S,className:X(wt,{[`${wt}-default`]:s==="default",[`${wt}-small`]:s==="small",[`${wt}-large`]:s==="large",[`${wt}-square`]:b==="square",[`${wt}-circle`]:b==="circle",[`${wt}-${y}`]:y,[`${wt}-${l}-${y}`]:l&&y,[`${wt}-closable`]:c,[`${wt}-invisible`]:!R,[`${wt}-avatar-${P}`]:E},v)}),N=M?Object.assign(Object.assign({},j),F):j,z=c?w.createElement("div",{className:`${wt}-close`,onClick:Q=>this.close(Q,r,n)},w.createElement(ws,{size:"small"})):null,U=at(r),K=X(`${wt}-content`,`${wt}-content-${U?"ellipsis":"center"}`);return w.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||U?`${c?"Closable ":""}Tag: ${r}`:""},N),C?w.createElement("div",{className:`${wt}-prefix-icon`},C):null,E?this.renderAvatar():null,w.createElement("div",{className:K},r),O?w.createElement("div",{className:`${wt}-suffix-icon`},O):null,z)}}ht.defaultProps={size:K0[0],color:V0[0],closable:!1,type:Q0[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ht.propTypes={children:h.node,tagKey:h.oneOfType([h.string,h.number]),size:h.oneOf(K0),color:h.oneOf(V0),type:h.oneOf(Q0),closable:h.bool,visible:h.bool,onClose:h.func,onClick:h.func,prefixIcon:h.node,suffixIcon:h.node,style:h.object,className:h.string,avatarSrc:h.string,avatarShape:h.oneOf(j2),"aria-label":h.string};var L2=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};qn.Consumer;class fg extends w.Component{constructor(e){super(e)}renderChildren(){const{direction:e,children:n}=this.props;return e==="rtl"?w.createElement("div",{className:`${Te}-rtl`},n):n}render(){const e=this.props,{children:n,direction:r}=e,s=L2(e,["children","direction"]);return w.createElement(qn.Provider,{value:Object.assign({direction:r},s)},this.renderChildren())}}fg.propTypes={locale:h.object,timeZone:h.oneOfType([h.string,h.number]),getPopupContainer:h.func,direction:h.oneOf(["ltr","rtl"])};fg.defaultProps={locale:Ph,direction:"ltr"};var A2=Function.prototype.toString,oh=Object.create,M2=Object.prototype.toString,$2=(function(){function o(){this._keys=[],this._values=[]}return o.prototype.has=function(e){return!!~this._keys.indexOf(e)},o.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},o.prototype.set=function(e,n){this._keys.push(e),this._values.push(n)},o})();function F2(){return new $2}function z2(){return new WeakMap}var B2=typeof WeakMap<"u"?z2:F2;function hg(o){if(!o)return oh(null);var e=o.constructor;if(e===Object)return o===Object.prototype?{}:oh(o);if(e&&~A2.call(e).indexOf("[native code]"))try{return new e}catch{}return oh(o)}function q2(o){var e="";return o.global&&(e+="g"),o.ignoreCase&&(e+="i"),o.multiline&&(e+="m"),o.unicode&&(e+="u"),o.sticky&&(e+="y"),e}function G2(o){return o.flags}var U2=/test/g.flags==="g"?G2:q2;function X0(o){var e=M2.call(o);return e.substring(8,e.length-1)}function W2(o){return o[Symbol.toStringTag]||X0(o)}var H2=typeof Symbol<"u"?W2:X0,V2=Object.defineProperty,K2=Object.getOwnPropertyDescriptor,Y0=Object.getOwnPropertyNames,gg=Object.getOwnPropertySymbols,Z0=Object.prototype,J0=Z0.hasOwnProperty,Q2=Z0.propertyIsEnumerable,e_=typeof gg=="function";function X2(o){return Y0(o).concat(gg(o))}var Y2=e_?X2:Y0;function kl(o,e,n){for(var r=Y2(o),s=0,l=r.length,c=void 0,u=void 0;s<l;++s)if(c=r[s],!(c==="callee"||c==="caller")){if(u=K2(o,c),!u){e[c]=n.copier(o[c],n);continue}!u.get&&!u.set&&(u.value=n.copier(u.value,n));try{V2(e,c,u)}catch{e[c]=u.value}}return e}function Z2(o,e){var n=new e.Constructor;e.cache.set(o,n);for(var r=0,s=o.length;r<s;++r)n[r]=e.copier(o[r],e);return n}function J2(o,e){var n=new e.Constructor;return e.cache.set(o,n),kl(o,n,e)}function t_(o,e){return o.slice(0)}function eI(o,e){return o.slice(0,o.size,o.type)}function tI(o,e){return new e.Constructor(t_(o.buffer))}function nI(o,e){return new e.Constructor(o.getTime())}function n_(o,e){var n=new e.Constructor;return e.cache.set(o,n),o.forEach(function(r,s){n.set(s,e.copier(r,e))}),n}function rI(o,e){return kl(o,n_(o,e),e)}function iI(o,e){var n=hg(e.prototype);e.cache.set(o,n);for(var r in o)J0.call(o,r)&&(n[r]=e.copier(o[r],e));return n}function oI(o,e){var n=hg(e.prototype);e.cache.set(o,n);for(var r in o)J0.call(o,r)&&(n[r]=e.copier(o[r],e));for(var s=gg(o),l=0,c=s.length,u=void 0;l<c;++l)u=s[l],Q2.call(o,u)&&(n[u]=e.copier(o[u],e));return n}var sI=e_?oI:iI;function aI(o,e){var n=hg(e.prototype);return e.cache.set(o,n),kl(o,n,e)}function sh(o,e){return new e.Constructor(o.valueOf())}function lI(o,e){var n=new e.Constructor(o.source,U2(o));return n.lastIndex=o.lastIndex,n}function Va(o,e){return o}function r_(o,e){var n=new e.Constructor;return e.cache.set(o,n),o.forEach(function(r){n.add(e.copier(r,e))}),n}function cI(o,e){return kl(o,r_(o,e),e)}var uI=Array.isArray,mg=Object.assign,dI=Object.getPrototypeOf||(function(o){return o.__proto__}),i_={array:Z2,arrayBuffer:t_,blob:eI,dataView:tI,date:nI,error:Va,map:n_,object:sI,regExp:lI,set:r_},pI=mg({},i_,{array:J2,map:rI,object:aI,set:cI});function fI(o){return{Arguments:o.object,Array:o.array,ArrayBuffer:o.arrayBuffer,Blob:o.blob,Boolean:sh,DataView:o.dataView,Date:o.date,Error:o.error,Float32Array:o.arrayBuffer,Float64Array:o.arrayBuffer,Int8Array:o.arrayBuffer,Int16Array:o.arrayBuffer,Int32Array:o.arrayBuffer,Map:o.map,Number:sh,Object:o.object,Promise:Va,RegExp:o.regExp,Set:o.set,String:sh,WeakMap:Va,WeakSet:Va,Uint8Array:o.arrayBuffer,Uint8ClampedArray:o.arrayBuffer,Uint16Array:o.arrayBuffer,Uint32Array:o.arrayBuffer,Uint64Array:o.arrayBuffer}}function o_(o){var e=mg({},i_,o),n=fI(e),r=n.Array,s=n.Object;function l(c,u){if(u.prototype=u.Constructor=void 0,!c||typeof c!="object")return c;if(u.cache.has(c))return u.cache.get(c);if(u.prototype=dI(c),u.Constructor=u.prototype&&u.prototype.constructor,!u.Constructor||u.Constructor===Object)return s(c,u);if(uI(c))return r(c,u);var p=n[H2(c)];return p?p(c,u):typeof c.then=="function"?c:s(c,u)}return function(u){return l(u,{Constructor:void 0,cache:B2(),copier:l,prototype:void 0})}}function hI(o){return o_(mg({},pI,o))}hI({});var el=o_({});const gI={PREFIX:`${Te}`};var mI=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const si=gI.PREFIX,vI=o=>{const{layout:e="horizontal",dashed:n,align:r="center",className:s,margin:l,style:c,children:u}=o,p=mI(o,["layout","dashed","align","className","margin","style","children"]),g=X(`${si}-divider`,s,{[`${si}-divider-horizontal`]:e==="horizontal",[`${si}-divider-vertical`]:e==="vertical",[`${si}-divider-dashed`]:!!n,[`${si}-divider-with-text`]:u&&e==="horizontal",[`${si}-divider-with-text-${r}`]:u&&e==="horizontal"});let v={};return l!==void 0&&(e==="vertical"?v={marginLeft:l,marginRight:l}:e==="horizontal"&&(v={marginTop:l,marginBottom:l})),w.createElement("div",Object.assign({},p,{className:g,style:Object.assign(Object.assign({},v),c)}),u&&e==="horizontal"?typeof u=="string"?w.createElement("span",{className:`${si}-divider_inner-text`,"x-semi-prop":"children"},u):u:null)},Ae={DIALOG:`${Te}-modal`},dw={SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function yI(o){return o!==null&&typeof o=="object"}function pw(o){return yI(o)&&typeof o.then=="function"}class bI extends kt{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(n,r)=>{this._adapter.toggleDisplayNone(n,r)}}destroy(){this.afterHide()}handleCancel(e){var n;const r=this._adapter.notifyCancel(e);pw(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(n=r?.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||n===void 0||n.catch(s=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),s}))}handleOk(e){var n;const r=this._adapter.notifyOk(e);pw(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(n=r?.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||n===void 0||n.catch(s=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),s}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}enabledBodyScroll(){this._adapter.enabledBodyScroll()}}class vg extends kt{constructor(e){super(Object.assign(Object.assign({},vg.defaultAdapter),e)),this.handleKeyDown=n=>{const{closeOnEsc:r}=this.getProps();if(r&&n.keyCode===Rr.ESC){n.stopPropagation(),this.close(n);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:n}=this.getStates();e.target===e.currentTarget&&!n&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var ah,fw;function SI(){if(fw)return ah;fw=1;var o=_2(),e=b0(),n=f0(),r=e(function(s,l){return n(s)?o(s,l):[]});return ah=r,ah}var wI=SI();const _I=Ze(wI);class jr{constructor(e,n){var r;this.addFocusRedirectListener=s=>(this.focusRedirectListenerList.push(s),()=>this.removeFocusRedirectListener(s)),this.removeFocusRedirectListener=s=>{this.focusRedirectListenerList=_I(this.focusRedirectListenerList,s)},this.destroy=()=>{var s;(s=this.container)===null||s===void 0||s.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=s=>{if(!this.enable)return!1;for(const l of this.focusRedirectListenerList)if(!l(s))return!1;return!0},this.focusElement=(s,l)=>{const{preventScroll:c}=this.options;s?.focus({preventScroll:c}),l.preventDefault()},this.onKeyPress=s=>{if(s&&s.key==="Tab"){const l=jr.getFocusableElements(this.container);l.length&&(s.shiftKey?this.handleContainerShiftTabKeyDown(l,s):this.handleContainerTabKeyDown(l,s))}},this.handleContainerTabKeyDown=(s,l)=>{const c=jr.getActiveElement(),u=s[s.length-1]===c,p=s[0];u&&this.shouldFocusRedirect(p)&&this.focusElement(p,l)},this.handleContainerShiftTabKeyDown=(s,l)=>{const c=jr.getActiveElement(),u=s[0]===c,p=s[s.length-1];u&&this.shouldFocusRedirect(p)&&this.focusElement(p,l)},Object.freeze(n),this.container=e,this.options=n,this.enable=(r=n?.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=n?.onFocusRedirectListener?Array.isArray(n.onFocusRedirectListener)?[...n.onFocusRedirectListener]:[n.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!ui(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}var lh=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};let CI=0;class Tl extends gt{constructor(e){super(e),this.onKeyDown=n=>{this.foundation.handleKeyDown(n)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=n=>{this.foundation.handleMaskClick(n)},this.close=n=>{this.foundation.close(n)},this.getMaskElement=()=>{const n=lh(this.props,[]),{mask:r,maskClassName:s}=n;if(r){const l=X(`${Ae.DIALOG}-mask`,{});return w.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:X(l,s),style:n.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:n,closeIcon:r}=this.props;let s;if(n){const l=r||w.createElement(ws,{"x-semi-prop":"closeIcon"});s=w.createElement(zr,{"aria-label":"close",className:`${Ae.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:l,theme:"borderless",size:"small"})}return s},this.renderIcon=()=>{const{icon:n}=this.props;return n?w.createElement("span",{className:`${Ae.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},n):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:n}=this.props,r=this.renderCloseBtn(),s=this.renderIcon();return n==null?null:w.createElement("div",{className:`${Ae.DIALOG}-header`},s,w.createElement(Ue.Title,{heading:5,className:`${Ae.DIALOG}-title`,id:`${Ae.DIALOG}-title`,"x-semi-prop":"title"},n),r)},this.renderBody=()=>{const{bodyStyle:n,children:r,title:s}=this.props,l=X(`${Ae.DIALOG}-body`,{[`${Ae.DIALOG}-withIcon`]:this.props.icon}),c=this.renderCloseBtn(),u=this.renderIcon();return s!=null||"header"in this.props?w.createElement("div",{className:l,id:`${Ae.DIALOG}-body`,style:n,"x-semi-prop":"children"},r):w.createElement("div",{className:`${Ae.DIALOG}-body-wrapper`},u,w.createElement("div",{className:l,style:n,"x-semi-prop":"children"},r),c)},this.getDialogElement=()=>{const n=lh(this.props,[]),r={},s=X(`${Ae.DIALOG}`,{[`${Ae.DIALOG}-centered`]:n.centered,[`${Ae.DIALOG}-${n.size}`]:n.size});n.width&&(r.width=n.width),n.height&&(r.height=n.height),n.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const l=this.renderBody(),c=this.renderHeader(),u=n.footer?w.createElement("div",{className:`${Ae.DIALOG}-footer`,"x-semi-prop":"footer"},n.footer):null,p=w.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Ae.DIALOG}-title`,"aria-describedby":`${Ae.DIALOG}-body`,onAnimationEnd:n.onAnimationEnd,className:X([`${Ae.DIALOG}-content`,n.contentClassName,{[`${Ae.DIALOG}-content-fullScreen`]:n.isFullScreen,[`${Ae.DIALOG}-content-height-set`]:n.height||ke(n.style,"height")}])},c,l,u);return w.createElement("div",{key:"dialog-element",className:s,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},n.style),r),id:this.dialogId},n?.modalRender?n?.modalRender(p):p)},this.state={dialogMouseDown:!1,prevFocusElement:jr.getActiveElement()},this.foundation=new vg(this.adapter),this.dialogId=`dialog-${CI++}`,this.modalDialogRef=w.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,n,r;const{preventScroll:s}=this.props;let l;if(this.modalDialogRef){const c=jr.getActiveElement();l=this.modalDialogRef.current.contains(c),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new jr(this.modalDialogRef.current,{preventScroll:s})}l||(r=(n=this.modalDialogRef)===null||n===void 0?void 0:n.current)===null||r===void 0||r.focus({preventScroll:s})},modalDialogBlur:()=>{var e,n;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(n=this.focusTrapHandle)===null||n===void 0||n.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:n}=this.props,r=ke(e,"focus");Kt(r)&&e.focus({preventScroll:n})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const n=jr.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=n[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){var e;const n=this.props,{maskClosable:r,className:s,getPopupContainer:l,maskFixed:c,getContainerContext:u}=n,p=lh(n,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:g}=this.context,v=X(s,{[`${Ae.DIALOG}-popup`]:l&&l()!==((e=globalThis?.document)===null||e===void 0?void 0:e.body)&&!c,[`${Ae.DIALOG}-fixed`]:c,[`${Ae.DIALOG}-rtl`]:g==="rtl"}),y=u(),b=this.getDataAttr(p),E=w.createElement("div",Object.assign({className:v},b),this.getMaskElement(),w.createElement("div",Object.assign({role:"none",className:X({[`${Ae.DIALOG}-wrap`]:!0,[`${Ae.DIALOG}-wrap-center`]:this.props.centered}),onClick:r?this.onMaskClick:null,onMouseUp:r?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return y&&y.Provider?w.createElement(y.Provider,{value:y.value},E):E}}Tl.contextType=qn;Tl.propTypes={close:h.func,getContainerContext:h.func,contentClassName:h.string,maskClassName:h.string,onAnimationEnd:h.func,preventScroll:h.bool};Tl.defaultProps={close:he,getContainerContext:he,contentClassName:"",maskClassName:""};var EI=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const s_=o=>{const[e,n]=k.useState(!0),[r,s]=k.useState(),[l,c]=k.useState(),{direction:u}=o,{title:p,content:g,icon:v,type:y,onCancel:b,onOk:E,className:P}=o,S=EI(o,["title","content","icon","type","onCancel","onOk","className"]),C=k.useCallback(z=>{const U=E&&E(z);U&&U.then?(s(!0),U.then(function(){n(!1),s(!1)},K=>{s(!1)})):n(!1)},[E]),O=k.useCallback(z=>{const U=b&&b(z);U&&U.then?(c(!0),U.then(function(){n(!1),c(!1)},K=>{c(!1)})):n(!1)},[b]),x=`${Ae.DIALOG}-confirm`,R=X(P,x,{[`${x}-rtl`]:u==="rtl"}),M=X(`${Ae.DIALOG}-${y}`),F=An(v)?w.cloneElement(v,{className:`${x}-icon ${M}-icon`,size:"extra-large"}):v,j=p==null?null:w.createElement("span",{className:`${x}-title-text`},p),N=X(`${x}-content`,{[`${x}-content-withIcon`]:o.icon});return w.createElement(Qt,Object.assign({className:R,title:j,confirmLoading:r,cancelLoading:l,onOk:C,onCancel:O,icon:F,visible:e},S),w.createElement("div",{className:N,"x-semi-prop":"content"},g))};function Ps(o){const e=document.createElement("div");document.body.appendChild(e);let n=Object.assign({},o);const r=()=>{Jn.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let p=0;p<di.length;p++)if(di[p]===l){di.splice(p,1);break}};function s(u){const{afterClose:p}=u;Jn.render(w.createElement(s_,Object.assign({},u,{afterClose:function(){p?.(...arguments),r()},motion:o.motion})),e)}function l(){n=Object.assign(Object.assign({},n),{visible:!1}),s(n)}function c(u){n=Object.assign(Object.assign({},n),u),s(n)}return s(n),di.push(l),{destroy:l,update:c}}function a_(o){return Object.assign({type:"info",icon:w.createElement(wl,null)},o)}function l_(o){return Object.assign({type:"success",icon:w.createElement(Yh,null)},o)}function c_(o){return Object.assign({type:"warning",icon:w.createElement(Xh,null)},o)}function u_(o){return Object.assign({type:"error",icon:w.createElement(Qh,null),okButtonProps:Object.assign({type:"danger"},o.okButtonProps)},yi(o,["okButtonProps"]))}function d_(o){return Object.assign({type:"confirm",icon:w.createElement(nx,null)},o)}var PI=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const kI=(o,e)=>{var{afterClose:n,config:r}=o;PI(o,["afterClose","config"]);const[s,l]=w.useState(r);w.useImperativeHandle(e,()=>({destroy:()=>{l(u=>Object.assign(Object.assign({},u),{visible:!1}))},update:u=>{l(p=>Object.assign(Object.assign({},p),u))}}));const c=()=>{var u;(u=r?.afterClose)===null||u===void 0||u.call(r),n()};return w.createElement(s_,Object.assign({},s,{afterClose:c}))},TI=w.forwardRef(kI);let hw=0;function OI(){const[o,e]=w.useState([]);function n(r){return e(s=>[...s,r]),()=>{e(s=>s.filter(l=>l!==r))}}return[o,n]}function xI(){const[o,e]=OI();function n(r){return function(l){hw+=1;const c=w.createRef();let u;const p=w.createElement(TI,{key:`semi-modal-${hw}`,config:r(l),ref:c,afterClose:()=>{u()}});return u=e(p),{destroy:()=>{c.current&&c.current.destroy()},update:g=>{c.current&&c.current.update(g)}}}}return[{info:n(a_),success:n(l_),error:n(u_),warning:n(c_),confirm:n(d_)},w.createElement(w.Fragment,null,o)]}var II=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};let di=[];class Qt extends gt{constructor(e){super(e),this.bodyOverflow=null,this.handleCancel=n=>{this.foundation.handleCancel(n)},this.handleOk=n=>{this.foundation.handleOk(n)},this.updateState=()=>{const{visible:n}=this.props;this.foundation.toggleDisplayNone(!n)},this.renderFooter=()=>{const{okText:n,okType:r,cancelText:s,confirmLoading:l,cancelLoading:c,hasCancel:u,footerFill:p}=this.props,g=v=>{var y;return u?w.createElement(it,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:c===void 0?this.state.onCancelReturnPromiseStatus==="pending":c,type:"tertiary",block:p,autoFocus:!0},this.props.cancelButtonProps,{style:Object.assign(Object.assign({},p?{marginLeft:"unset"}:{}),(y=this.props.cancelButtonProps)===null||y===void 0?void 0:y.style),"x-semi-children-alias":"cancelText"}),s||v.cancel):null};return w.createElement(Ar,{componentName:"Modal"},(v,y)=>w.createElement("div",{className:X({[`${Ae.DIALOG}-footerfill`]:p})},g(v),w.createElement(it,Object.assign({"aria-label":"confirm",type:r,theme:"solid",block:p,loading:l===void 0?this.state.onOKReturnPromiseStatus==="pending":l,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),n||v.confirm)))},this.renderDialog=()=>{var n;let r=this.props,{footer:s,className:l,motion:c,maskStyle:u,keepDOM:p,style:g,zIndex:v,getPopupContainer:y,visible:b,modalContentClass:E}=r,P=II(r,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible","modalContentClass"]),S=g;const C=u,O="footer"in this.props?s:this.renderFooter();let x={zIndex:v};y&&y()!==((n=globalThis?.document)===null||n===void 0?void 0:n.body)&&(x={zIndex:v,position:"static"});const R=X(l,{[`${Ae.DIALOG}-displayNone`]:p&&this.state.displayNone}),M=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return M&&(this._haveRendered=!0),w.createElement(ps,{motion:this.props.motion,animationState:b?"enter":"leave",startClassName:b?`${Ae.DIALOG}-content-animate-show`:`${Ae.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},F=>{let{animationClassName:j,animationEventsNeedBind:N}=F;return w.createElement(ps,{motion:this.props.motion,animationState:b?"enter":"leave",startClassName:b?`${Ae.DIALOG}-mask-animate-show`:`${Ae.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},z=>{let{animationClassName:U,animationEventsNeedBind:K}=z;return M?w.createElement(Ss,{style:x,getPopupContainer:y}," ",w.createElement(Tl,Object.assign({},P,{contentExtraProps:N,maskExtraProps:K,isFullScreen:this.state.isFullScreen,contentClassName:`${j} ${E}`,maskClassName:U,className:R,getPopupContainer:y,maskStyle:C,style:S,ref:this.modalRef,footer:O,onClose:this.handleCancel}))):w.createElement(w.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new bI(this.adapter),this.modalRef=w.createRef(),this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{var e;const{getPopupContainer:n}=this.props;this.bodyOverflow=document.body.style.overflow||"",(!n||n()===((e=globalThis?.document)===null||e===void 0?void 0:e.body))&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{var e;const{getPopupContainer:n}=this.props;(!n||n()===((e=globalThis?.document)===null||e===void 0?void 0:e.body))&&this.bodyOverflow!==null&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,n)=>{e!==this.state.displayNone&&this.setState({displayNone:e},n||he)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,n){const r={};return e.fullScreen!==n.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&n.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=qT(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,n,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!n.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible?this.foundation.destroy():this.foundation.enabledBodyScroll()}render(){const{visible:e,keepDOM:n,lazyRender:r}=this.props;return this.renderDialog()}}Qt.propTypes={mask:h.bool,closable:h.bool,centered:h.bool,visible:h.bool,width:h.oneOfType([h.string,h.number]),height:h.oneOfType([h.string,h.number]),confirmLoading:h.bool,cancelLoading:h.bool,okText:h.string,okType:h.string,cancelText:h.string,maskClosable:h.bool,onCancel:h.func,onOk:h.func,modalRender:h.func,afterClose:h.func,okButtonProps:h.object,cancelButtonProps:h.object,style:h.object,className:h.string,maskStyle:h.object,bodyStyle:h.object,zIndex:h.number,title:h.node,icon:h.node,header:h.node,footer:h.node,hasCancel:h.bool,motion:h.bool,children:h.node,getPopupContainer:h.func,getContainerContext:h.func,maskFixed:h.bool,closeIcon:h.node,closeOnEsc:h.bool,size:h.oneOf(dw.SIZE),keepDOM:h.bool,lazyRender:h.bool,direction:h.oneOf(dw.directions),fullScreen:h.bool,footerFill:h.bool};Qt.__SemiComponentName__="Modal";Qt.defaultProps=sr(Qt.__SemiComponentName__,{zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:he,onOk:he,afterClose:he,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1});Qt.useModal=xI;Qt.info=function(o){return Ps(a_(o))};Qt.success=function(o){return Ps(l_(o))};Qt.error=function(o){return Ps(u_(o))};Qt.warning=function(o){return Ps(c_(o))};Qt.confirm=function(o){return Ps(d_(o))};Qt.destroyAll=function(){for(let e=0,n=di.length;e<n;e++){const r=di[e];r&&r()}di=[]};const DI={PREFIX:`${Te}`};var RI=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const gw=["xxl","xl","lg","md","sm","xs"],NI=w.createContext(null),mw={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};class pi extends w.Component{constructor(){super(...arguments),this.state={screens:{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}},this.unRegisters=[]}componentDidMount(){this.unRegisters=Object.keys(mw).map(e=>BT(mw[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(n=>({screens:Object.assign(Object.assign({},n.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(n=>({screens:Object.assign(Object.assign({},n.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,n=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((s,l)=>{if(typeof s=="object")for(let c=0;c<gw.length;c++){const u=gw[c];if(this.state.screens[u]&&s[u]!==void 0){n[l]=s[u];break}}else n[l]=s||0}),n}render(){const e=this.props,{prefixCls:n,type:r,justify:s,align:l,className:c,style:u,children:p}=e,g=RI(e,["prefixCls","type","justify","align","className","style","children"]),v=this.getGutter(),y=`${n}-row`,b=X({[y]:r!=="flex",[`${y}-${r}`]:r,[`${y}-${r}-${s}`]:r&&s,[`${y}-${r}-${l}`]:r&&l},c),E=Object.assign(Object.assign(Object.assign({},v[0]>0?{marginLeft:v[0]/-2,marginRight:v[0]/-2}:{}),v[1]>0?{marginTop:v[1]/-2,marginBottom:v[1]/-2}:{}),u),P=Object.assign({},g);return delete P.gutter,w.createElement(NI.Provider,{value:{gutters:v}},w.createElement("div",Object.assign({},P,{className:b,style:E,"x-semi-prop":"children"}),p))}}pi.propTypes={type:h.oneOf(["flex"]),align:h.oneOf(["top","middle","bottom"]),justify:h.oneOf(["start","end","center","space-around","space-between"]),className:h.string,style:h.object,children:h.node,gutter:h.oneOfType([h.object,h.number,h.array]),prefixCls:h.string};pi.defaultProps={prefixCls:DI.PREFIX};pi.RowContext={gutters:h.any};class jI extends kt{addNotice(e){const n=this._adapter.getNotices();this._adapter.updateNotices([e,...n])}has(e){return this._adapter.getNotices().some(n=>n.id===e)}update(e,n){let r=this._adapter.getNotices();r=r.map(l=>l.id===e?Object.assign(Object.assign({},l),n):l);const s=r.filter(l=>l.id===e);this._adapter.updateNotices(r,[],s)}removeNotice(e){let n=this._adapter.getNotices();const r=[];n=n.filter(s=>s.id===e?(r.push(s),!1):!0),this._adapter.updateNotices(n,r)}destroyAll(){const e=this._adapter.getNotices();e.length>0&&this._adapter.updateNotices([],e)}}const us={WRAPPER:`${Te}-notification-wrapper`,LIST:`${Te}-notification-list`,NOTICE:`${Te}-notification-notice`},p_={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},LI={duration:3};class yg extends kt{constructor(e){super(Object.assign(Object.assign({},yg.defaultAdapter),e)),this._timer=null,this._id=null}init(){this._startCloseTimer(),this._id=this.getProp("id")}destroy(){this._clearCloseTimer()}_startCloseTimer(){const e=this.getProp("duration");e&&Lr(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}_clearCloseTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this._clearCloseTimer(),this._startCloseTimer()}}var AI=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const Ht=us.NOTICE,{duration:MI}=LI,{types:f_,themes:$I,directions:FI}=p_;class mi extends gt{get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose(),this.props.onHookClose&&this.props.onHookClose()}})}constructor(e){super(e),this.clearCloseTimer=()=>{this.foundation._clearCloseTimer()},this.startCloseTimer=()=>{this.foundation._startCloseTimer()},this.close=n=>{this.props.onCloseClick(this.props.id),this.foundation.close(n)},this.notifyClick=n=>{this.props.onClick(n)},this.state={visible:!0},this.foundation=new yg(this.adapter)}componentWillUnmount(){this.foundation.destroy()}renderTypeIcon(){const{type:e,icon:n}=this.props;let s={warning:w.createElement(Xh,{size:"large"}),success:w.createElement(Yh,{size:"large"}),info:w.createElement(wl,{size:"large"}),error:w.createElement(Qh,{size:"large"})}[e];const l=X({[`${Ht}-icon`]:!0,[`${Ht}-${e}`]:!0});return n&&(s=n),s?w.createElement("div",{className:l,"x-semi-prop":"icon"},An(s)?w.cloneElement(s,{size:s.props.size||"large"}):s):null}render(){const e=this.props.direction||this.context.direction,n=e==="rtl"?"topLeft":"topRight",r=this.props,{content:s,title:l,theme:c,position:u=n,type:p,id:g,onCloseClick:v,className:y,showClose:b,style:E}=r;AI(r,["content","title","theme","position","type","id","onCloseClick","className","showClose","style"]);const{visible:P}=this.state,S=X(Ht,y,{[`${Ht}-close`]:!P,[`${Ht}-icon-show`]:f_.includes(p),[`${Ht}-${p}`]:!0,[`${Ht}-${c}`]:c==="light",[`${Ht}-rtl`]:e==="rtl"}),C=ds({});return w.createElement("div",{className:S,style:E,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:this.notifyClick,"aria-labelledby":C,role:"alert",onAnimationEnd:this.props.onAnimationEnd,onAnimationStart:this.props.onAnimationStart},w.createElement("div",null,this.renderTypeIcon()),w.createElement("div",{className:`${Ht}-inner`},w.createElement("div",{className:`${Ht}-content-wrapper`},l?w.createElement("div",{id:C,className:`${Ht}-title`,"x-semi-prop":"title"},l):"",s?w.createElement("div",{className:`${Ht}-content`,"x-semi-prop":"content"},s):""),b&&w.createElement(zr,{className:`${Ht}-icon-close`,type:"tertiary",icon:w.createElement(ws,null),theme:"borderless",size:"small",onClick:this.close})))}}mi.contextType=qn;mi.propTypes={duration:h.number,id:h.string,title:h.node,content:h.node,type:h.oneOf(f_),theme:h.oneOf($I),icon:h.node,onClick:h.func,onClose:h.func,onCloseClick:h.func,showClose:h.bool,close:h.func,direction:h.oneOf(FI)};mi.__SemiComponentName__="Notification";mi.defaultProps=sr(mi.__SemiComponentName__,{duration:MI,id:"",close:he,onClose:he,onClick:he,onCloseClick:he,content:"",title:"",showClose:!0,theme:"normal"});var zI=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const BI=(o,e)=>{var{afterClose:n}=o,r=zI(o,["afterClose"]);const[s,l]=k.useState(!0),c=()=>{l(!1)};return w.useImperativeHandle(e,()=>({close:()=>{l(!1)}})),k.useEffect(()=>{s||n(String(r.id))},[s]),s?w.createElement(mi,Object.assign({},r,{onHookClose:c})):null},qI=w.forwardRef(BI),Yo={duration:3,position:"topRight",motion:!0,content:"",title:"",zIndex:1010};function GI(){const[o,e]=k.useState([]);function n(s,l){return e(c=>[{element:s,config:l},...c]),c=>{e(u=>u.filter(p=>{let{config:g}=p;return g.id!==c}))}}function r(){const s={top:[],topLeft:[],topRight:[],bottom:[],bottomLeft:[],bottomRight:[]};return o.forEach(l=>{let{element:c,config:u}=l;const{position:p}=u;s[p].push(c)}),Object.entries(s).map(l=>{const c=l[0],u=l[1];return Array.isArray(u)&&u.length?w.createElement("div",{key:c,className:X(us.LIST),placement:c},u):null})}return[r(),n]}function UI(){const[o,e]=GI(),n=new Map,r=l=>{const c=Za("semi_notice_"),u=Object.assign(Object.assign({},l),{id:c});let p;const g=y=>{n.set(c,y)},v=w.createElement(qI,Object.assign({key:c},u,{afterClose:y=>p(y),ref:g}));return p=e(v,Object.assign({},u)),c};return[{success:l=>r(Object.assign(Object.assign(Object.assign({},Yo),l),{type:"success"})),info:l=>r(Object.assign(Object.assign(Object.assign({},Yo),l),{type:"info"})),error:l=>r(Object.assign(Object.assign(Object.assign({},Yo),l),{type:"error"})),warning:l=>r(Object.assign(Object.assign(Object.assign({},Yo),l),{type:"warning"})),open:l=>r(Object.assign(Object.assign(Object.assign({},Yo),l),{type:"default"})),close:l=>{const c=n.get(l);c&&c.close()}},w.createElement(w.Fragment,null,o)]}let _n=null;const Wi={duration:3,position:"topRight",motion:!0,content:"",title:"",zIndex:1010};class tr extends gt{constructor(e){var n;super(e),n=this,this.add=r=>this.foundation.addNotice(r),this.has=r=>this.foundation.has(r),this.remove=r=>{this.foundation.removeNotice(String(r))},this.update=(r,s)=>this.foundation.update(r,s),this.destroyAll=()=>this.foundation.destroyAll(),this.renderNoticeInPosition=function(r,s){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const u=X(us.LIST);if(r.length){const p=n.setPosInStyle(r[0]);return w.createElement("div",{placement:s,key:s,className:u,style:p},r.map((g,v)=>{const y=l.find(b=>b.id===g.id)!==void 0;return w.createElement(ps,{key:g.id,animationState:y?"leave":"enter",startClassName:`${us.NOTICE}-animation-${y?"hide":"show"}_${s}`},b=>{let{animationClassName:E,animationEventsNeedBind:P,isAnimating:S}=b;return y&&!S?null:w.createElement(mi,Object.assign({},g,{ref:C=>{C&&c.some(O=>O.id===C.props.id)&&C.foundation.restartCloseTimer()},className:X({[g.className]:!!g.className,[E]:!0})},P,{style:Object.assign({},g.style),close:n.remove}))})}))}return null},this.state={notices:[],removedItems:[],updatedItems:[]},this.noticeStorage=[],this.removeItemStorage=[],this.foundation=new jI(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateNotices:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.noticeStorage=[...n],e.removeItemStorage=[...r],e.setState({notices:n,removedItems:r,updatedItems:s})},getNotices:()=>this.noticeStorage})}static addNotice(e){var n;e=Object.assign(Object.assign({},Wi),e);const r=(n=e.id)!==null&&n!==void 0?n:Za("notification");if(_n)_n.has(`${r}`)?_n.update(r,e):_n.add(Object.assign(Object.assign({},e),{id:r}));else{const{getPopupContainer:s}=e,l=document.createElement("div");this.wrapperId||(this.wrapperId=Za("notification-wrapper").slice(0,32)),l.className=us.WRAPPER,l.id=this.wrapperId,l.style.zIndex=String(typeof e.zIndex=="number"?e.zIndex:Wi.zIndex),s?s().appendChild(l):document.body.appendChild(l),Jn.render(w.createElement(tr,{ref:c=>_n=c}),l,()=>{_n.add(Object.assign(Object.assign({},e),{id:r}))})}return r}static removeNotice(e){return _n&&_n.remove(e),e}static info(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"info"}))}static success(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"success"}))}static error(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"error"}))}static warning(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"warning"}))}static open(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"default"}))}static close(e){return this.removeNotice(e)}static destroyAll(){if(_n){_n.destroyAll();const e=document.querySelector(`#${this.wrapperId}`);Jn.unmountComponentAtNode(e),e&&e.parentNode.removeChild(e),_n=null,this.wrapperId=null}}static config(e){["top","left","bottom","right"].map(n=>{n in e&&(Wi[n]=e[n])}),typeof e.zIndex=="number"&&(Wi.zIndex=e.zIndex),typeof e.duration=="number"&&(Wi.duration=e.duration),typeof e.position=="string"&&(Wi.position=e.position)}setPosInStyle(e){const n={};return["top","left","bottom","right"].forEach(r=>{if(r in e){const s=e[r];n[r]=typeof s=="number"?`${s}px`:s}}),n}render(){let{notices:e}=this.state;const{removedItems:n,updatedItems:r}=this.state;e=Array.from(new Set([...e,...n]));const s={top:[],topLeft:[],topRight:[],bottom:[],bottomLeft:[],bottomRight:[]};e.forEach(c=>{const p=(c.direction||this.context.direction)==="rtl"?"topLeft":"topRight",g=c.position||p;s[g].push(c)});const l=Object.entries(s).map(c=>{const u=c[0],p=c[1];return this.renderNoticeInPosition(p,u,n,r)});return w.createElement(w.Fragment,null,l)}}tr.contextType=qn;tr.propTypes={style:h.object,className:h.string,direction:h.oneOf(p_.directions)};tr.defaultProps={};tr.useNotification=UI;const WI={PREFIX:Te+"-overflow-list"},vw={COLLAPSE:"collapse",SCROLL:"scroll"},yw={START:"start",END:"end"},HI={GROW:1},fi={BOUNDARY_SET:Object.values(yw),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(vw),MODE_MAP:vw,BOUNDARY_MAP:yw,OVERFLOW_DIR:HI},bw={MINIMUM_HTML_ELEMENT_WIDTH:4};class bg extends w.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:n,threshold:r,rootMargin:s,option:l,onIntersect:c}=this.props;this.observer=new IntersectionObserver(c,Object.assign({root:n,threshold:r,rootMargin:s},l)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,n=Object.keys(e);Cn(this.cachedKeys,n)||(this.observeElement(!0),this.cachedKeys=n)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:n}=this.props;if(Zn(n)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(n).forEach(r=>{const s=n[r];s&&ui(s)&&this.observer.observe(s)})}render(){const{children:e}=this.props;return e}}bg.propTypes={onIntersect:h.func,option:h.object,root:h.any,threshold:h.number,rootMargin:h.string,items:h.object};bg.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const VI=fi.BOUNDARY_MAP;class KI extends kt{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:n}=this.getProps();return n==="scroll"},this.getReversedItems=()=>{const{items:n}=this.getProps();return el(n).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:n,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const s=e.map(p=>{let{key:g}=p;return!!n.get(g)}),l=s.indexOf(!0),c=s.lastIndexOf(!0),u=[];return u[0]=l>=0?e.slice(0,l):[],u[1]=c>=0?e.slice(c+1,e.length):e.slice(),u}handleIntersect(e){const n=el(this.getState("visibleState")),r={};e.forEach(p=>{const g=ke(p,"target.dataset.scrollkey"),v=p.isIntersecting;r[g]=p,n.set(g,v)});let s=!1;for(const p of n.values())if(p){s=!0;break}const l=s,[c]=e,u=c.boundingClientRect.y;if(!l&&this.previousY!==void 0&&u!==this.previousY){this.previousY=u;return}this.previousY=u,this._adapter.updateVisibleState(n),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:n}=this.getProps(),{overflowWidth:r,containerWidth:s,pivot:l,overflowStatus:c}=this.getStates(),{items:u,onOverflow:p}=this.getProps();let g=r,v=0,y=!1;for(const b of this._adapter.getItemSizeMap().values()){if(g+=b,g>s){y=!0;break}if(v===u.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:u.length-1,visible:u,overflow:[]});break}v++}if(y){const b=Math.max(e,v),E=n===VI.START,P=E?this.getReversedItems().slice(0,b).reverse():u.slice(0,b),S=E?this.getReversedItems().slice(b).reverse():u.slice(b);this._adapter.updateStates({overflowStatus:"overflowed",pivot:b,visible:P,overflow:S}),l!==b&&p(S);return}}}const Zo=WI.PREFIX,ch=fi.BOUNDARY_MAP,Sw=fi.OVERFLOW_DIR,Jo=fi.MODE_MAP;class fs extends gt{constructor(e){var n;super(e),n=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===Jo.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var s;const l=(s=r[0])===null||s===void 0?void 0:s.target.clientWidth;n.setState({containerWidth:l,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,s,l)=>{this.itemRefs[l]=s,typeof r=="function"?r(s):typeof r=="object"&&r&&"current"in r&&(r.current=s)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,s)=>{const{itemKey:l}=this.props;return Kt(l)?l(r):ke(r,l||"key",s)},this.renderItemList=()=>{const{className:r,wrapperClassName:s,wrapperStyle:l,style:c,visibleItemRenderer:u,renderMode:p,collapseFrom:g}=this.props,{visible:v,overflowStatus:y}=this.state;let b=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(b)&&(b=w.createElement(w.Fragment,null,b)),w.isValidElement(b))){const S=w.cloneElement(b);b=w.createElement(Ki,{onResize:C=>{let[O]=C;this.setState({overflowWidth:O.target.clientWidth,overflowStatus:"calculating"})}},w.createElement("div",{className:`${Zo}-overflow`},S))}const E=p===Jo.SCROLL?(()=>{const S=[w.createElement("div",{className:X(s,`${Zo}-scroll-wrapper`),ref:C=>{this.scroller=C},style:Object.assign({},l),key:`${Zo}-scroll-wrapper`},v.map(u).map(C=>{const{forwardRef:O,key:x}=C;return w.cloneElement(C,{ref:R=>this.mergeRef(O,R,x),"data-scrollkey":`${x}`,key:x})}))];return this.props.overflowRenderDirection==="both"?(S.unshift(b[0]),S.push(b[1])):this.props.overflowRenderDirection==="start"?(S.unshift(b[1]),S.unshift(b[0])):(S.push(b[0]),S.push(b[1])),S})():[g===ch.START?b:null,v.map((S,C)=>{const{key:O}=S,x=u(S,C),R=w.cloneElement(x);return w.createElement(Ki,{key:O??C,onResize:M=>{let[F]=M;return this.onItemResize(F,S,C)}},w.createElement("div",{key:O??C,className:`${Zo}-item`},R))}),g===ch.END?b:null];return w.createElement("div",{className:X(`${Zo}`,r),style:Object.assign(Object.assign({},c),p===Jo.COLLAPSE?{maxWidth:"100%",visibility:y==="calculating"?"hidden":"visible"}:null)},...E)},this.onItemResize=(r,s,l)=>{const c=this.getItemKey(s,l),u=this.itemSizeMap.get(c);u?u!==r.target.clientWidth&&(this.itemSizeMap.set(c,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(c,r.target.clientWidth);const{maxCount:p}=this.state;this.itemSizeMap.size===p&&this.setState({overflowStatus:"calculating"})},this.state={direction:Sw.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new KI(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,n){const{prevProps:r}=n,s={};s.prevProps=e;const l=c=>!r&&c in e||r&&!Cn(r[c],e[c]);if(l("items")||l("style")){if(s.direction=Sw.GROW,s.lastOverflowCount=0,s.maxCount=0,e.renderMode===Jo.SCROLL)s.visible=e.items,s.overflow=[];else{let c=e.items.length;Math.floor(n.containerWidth/bw.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(c=Math.min(c,Math.floor(n.containerWidth/bw.MINIMUM_HTML_ELEMENT_WIDTH)));const u=e.collapseFrom===ch.START,p=u?el(e.items).reverse().slice(0,c):e.items.slice(0,c),g=u?el(e.items).reverse().slice(c):e.items.slice(c);s.visible=p,s.overflow=g,s.maxCount=c}s.pivot=-1,s.overflowStatus="calculating"}return s}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e},()=>{var n,r;(r=(n=this.props).onVisibleStateChange)===null||r===void 0||r.call(n,e)})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,n){const r=e.items.map(g=>g.key),s=this.props.items.map(g=>g.key);Cn(r,s)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:l,containerWidth:c,visible:u,overflowStatus:p}=this.state;this.isScrollMode()||p!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:n}=this.props;return n===Jo.SCROLL?w.createElement(bg,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):w.createElement(Ki,{onResize:this.resize},e)}}fs.__SemiComponentName__="OverflowList";fs.defaultProps=sr(fs.__SemiComponentName__,{collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null,overflowRenderDirection:"both"});fs.propTypes={className:h.string,collapseFrom:h.oneOf(fi.BOUNDARY_SET),direction:h.oneOf(fi.POSITION_SET),items:h.array,minVisibleItems:h.number,onIntersect:h.func,onOverflow:h.func,overflowRenderer:h.func,renderMode:h.oneOf(fi.MODE_SET),style:h.object,threshold:h.number,visibleItemRenderer:h.func,wrapperClassName:h.string,wrapperStyle:h.object,collapseMask:h.object,overflowRenderDirection:h.string};const Sg={PREFIX:`${Te}-select`,PREFIX_OPTION:`${Te}-select-option`,PREFIX_GROUP:`${Te}-select-group`},nr={SIZE_SET:["small","large","default"],POSITION_SET:Vi.POSITION_SET,STATUS:QP,SEARCH_POSITION_TRIGGER:"trigger",SEARCH_POSITION_DROPDOWN:"dropdown"},h_={LIST_HEIGHT:270};var ww=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};class QI extends kt{constructor(e){super(Object.assign({},e)),this._keydownHandler=null}init(){this._setDropdownWidth();const e=this.getProp("defaultOpen"),n=this.getProp("open"),r=this._collectOptions();this._setDefaultSelection(r),(e||n)&&this.open(void 0,r),this.getProp("autoFocus")&&this.focus()}focus(){const e=this._isFilterable(),n=this._isMultiple();this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1),e&&n?this.focusInput():e&&!n?this.toggle2SearchInput(!0):this._focusTrigger()}_focusTrigger(){this._adapter.focusTrigger()}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:n}=this.getProps();let r;n&&(e&&Lr(e.width)||e&&at(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_collectOptions(){const e=this._adapter.getOptionsFromChildren();return this._adapter.updateOptions(e),this._adapter.rePositionDropdown(),e}_setDefaultSelection(e){let{value:n}=this.getProps();const{defaultValue:r}=this.getProps();this._isControlledComponent()||(n=r),this._update(n,e)}handleOptionListChange(){const e=this._collectOptions(),{selections:n}=this.getStates();this.updateOptionsActiveStatus(n,e);const{defaultActiveFirstOption:r}=this.getProps();r&&this._adapter.updateFocusIndex(0)}handleOptionListChangeHadDefaultValue(){const e=this.getState("selections");let n;const{onChangeWithObject:r}=this.getProps(),s=this._isMultiple();switch(!0){case(s&&!!e.size):try{n=[...e].map(c=>r?c[1]:c[1].value)}catch{n=[]}break;case(s&&!e.size):n=[];break;case(!s&&!!e.size):try{n=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!s&&!e.size):break}const l=this._adapter.getOptionsFromChildren();this._update(n,l)}handleValueChange(e){const{allowCreate:n,autoClearSearchValue:r,remote:s}=this.getProps(),{inputValue:l}=this.getStates();let c;n&&this._isControlledComponent()?(c=this.getState("options"),c.forEach(u=>u._show=!0)):c=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&l&&!s&&(c=this._filterOption(c,l)),this._update(e,c)}_update(e,n){let r;this._isMultiple()?(r=this._updateMultiple(e,n),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,n),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,n)}_updateSingle(e,n){const r=new Map,{onChangeWithObject:s}=this.getProps(),l=s&&typeof e<"u"?e.value:e,c=n.filter(p=>p.value===l),u=!c.length&&typeof l<"u"&&l!==null;if(c.length){const p=c[0],g=Object.assign({},p);r.set(g.label,g)}else if(u){let p={value:e,label:e,_notExist:!0,_scrollIndex:-1};s&&(p=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(p.label,p)}return r}_updateMultiple(e,n){const r=this.getState("selections");let s=[];const l=Array.isArray(e);this.checkMultipleProps(),r.size&&(s=[...r].map(g=>g[1]));const c=new Map;let u=e;const{onChangeWithObject:p}=this.getProps();return p&&l&&(u=e.map(g=>g.value)),l&&u.length&&u.forEach((g,v)=>{const y=n.findIndex(b=>b.value===g);if(y!==-1)c.set(n[y].label,n[y]);else{const b=s.findIndex(E=>E.value===g);if(b!==-1){const E=s[b];if(p){const P=Object.assign({},e[v]);Cn(P,E)?c.set(E.label,E):c.set(P.label,P)}else c.set(E.label,E)}else{let E={value:g,label:g,_notExist:!0};p&&(E=Object.assign(Object.assign({},e[v]),{_notExist:!0})),c.set(E.label,Object.assign(Object.assign({},E),{_scrollIndex:-1}))}}}),c}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:n}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&n?this.close({event:e}):r&&!n&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,n){const r=this._isFilterable(),s=n||this.getState("options");if(r){const c=this._filterOption(s,"").filter(u=>!u._inputCreateOnly);this._adapter.updateOptions(c),this.toggle2SearchInput(!0)}else this._adapter.updateFocusState(!0);this._adapter.openMenu(()=>{const{searchPosition:l,autoFocus:c}=this.getProps();c&&l===nr.SEARCH_POSITION_DROPDOWN&&this._adapter.focusDropdownInput()}),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(l=>{this.close({event:l}),this._notifyBlur(l),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e){const{event:n,closeCb:r,notToggleInput:s}=e||{},{isFocus:l}=this.getStates();this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),l&&this._focusTrigger(),this._adapter.unregisterClickOutsideHandler();const c=this._isFilterable();c&&!s&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{c&&this.clearInput(n),r&&r()})}onSelect(e,n,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):this._handleSingleSelect(e,r),this._adapter.updateFocusIndex(n)}_handleSingleSelect(e,n){var{value:r,label:s}=e,l=ww(e,["value","label"]);const c=new Map().set(s,Object.assign({value:r,label:s},l));this._notifySelect(r,Object.assign({value:r,label:s},l));const u=this._isFilterable();this._isControlledComponent()?this.close({event:n,notToggleInput:!0,closeCb:()=>{this._notifyChange(c),u&&this.toggle2SearchInput(!1)}}):(this._adapter.updateSelection(c),this._notifyChange(c),this.close({event:n,closeCb:()=>{this.updateOptionsActiveStatus(c)}}))}_handleMultipleSelect(e,n){var{value:r,label:s}=e,l=ww(e,["value","label"]);const c=this._adapter.getMaxLimit(),u=this._adapter.getSelections(),{autoClearSearchValue:p}=this.getProps();if(u.has(s))this._notifyDeselect(r,Object.assign({value:r,label:s},l)),u.delete(s);else if(c&&u.size===c){this._adapter.notifyMaxLimit(Object.assign({value:r,label:s},yi(l,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:s},l)),u.set(s,Object.assign({value:r,label:s},l));if(this._isControlledComponent())this._notifyChange(u),this._isFilterable()&&(p&&this.clearInput(n),this.focusInput());else{this._adapter.updateSelection(u),this.updateOverflowItemCount(u.size),this._adapter.rePositionDropdown();let{options:g}=this.getStates();this._isFilterable()&&(p&&(this.clearInput(n),g=this._filterOption(g,"")),this.focusInput()),this.updateOptionsActiveStatus(u,g),this._notifyChange(u)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:n}=this.getStates();n&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),s=n.map(l=>(e.has(l.label)?(l._selected=!0,r&&delete l._inputCreateOnly):(l._inputCreateOnly&&(l._show=!1),l._selected=!1),l));this._adapter.updateOptions(s)}removeTag(e){const n=this._adapter.getSelections();n.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(n)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(n),this.updateOverflowItemCount(n.size),this.updateOptionsActiveStatus(n),this._adapter.rePositionDropdown(),this._notifyChange(n))}clearInput(e){const{inputValue:n}=this.getStates();if(n!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:s}=this.getProps();let l=r;s||(l=this._filterOption(r,"")),this._adapter.updateOptions(l)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,n){this._adapter.updateInputValue(e);const{options:r,isOpen:s}=this.getStates(),{allowCreate:l,remote:c}=this.getProps();let u=r;c||(u=this._filterOption(r,e)),u=this._createOptionByInput(l,u,e),this._adapter.updateOptions(u),this._adapter.notifySearch(e,n),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,n){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const s=n.toLowerCase();return e.map(l=>{const c=l.label.toString().toLowerCase(),u=l._parentGroup&&l._parentGroup.label,p=c.includes(s),g=at(u)&&u.toLowerCase().includes(s);return p||g?l._show=!0:l._show=!1,l})}else if(typeof r=="function")return e.map(s=>(r(n,s)?s._show=!0:s._show=!1,s))}else return e}_createOptionByInput(e,n,r){if(e)if(r){const s={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let l=-1,c=-1;n.forEach((u,p)=>{!u._show&&!u._inputCreateOnly||(u.label===r&&(c=p),u._inputCreateOnly&&(l=p,u.value=r,u.label=r,u._show=!0))}),l===-1&&c===-1&&n.push(s),c!==-1&&(n=n.filter(u=>!u._inputCreateOnly))}else n=n.filter(s=>!s._inputCreateOnly);return n}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const n=e.keyCode,{loading:r,filter:s,multiple:l,disabled:c}=this.getProps(),{isOpen:u}=this.getStates();if(!(r||c))switch(n){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Nr(e),this._handleEnterKeyDown(e);break;case Rr.ESC:u&&this.close({event:e}),s&&!l&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const n=e.keyCode,{isOpen:r}=this.getStates();n===Rr.TAB&&r&&this._handleTabKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:n,options:r}=this.getStates(),s=r.filter(u=>u._show),l=s.length;let c=n+e;if(c<0&&(c=l-1),c>=l&&(c=0),e>0){let u=-1;for(let p=0;p<s.length&&(!s[p].disabled&&(u=p),!(u>=c));p++);c=u}else{let u=s.length;for(let p=l-1;p>=0&&(!s[p].disabled&&(u=p),!(u<=c));p--);c=u}this._adapter.updateFocusIndex(c),this._adapter.updateScrollTop(c)}_handleArrowKeyDown(e){const{isOpen:n}=this.getStates();n?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:n}=this.getStates();if(this._adapter.updateFocusState(!1),n){const r=this._adapter.getContainer(),s=this._adapter.getFocusableElements(r);s.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(s,e):this._handlePanelOpenTabKeyDown(s,e):(this.close({event:e}),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,n){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close({event:n}),Nr(n)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Nr(n))}_handlePanelOpenShiftTabKeyDown(e,n){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Nr(n)):(this.close({event:n}),this._notifyBlur(n))}_handleEnterKeyDown(e){const{isOpen:n,options:r,focusIndex:s}=this.getStates();if(!n)this.open();else if(s!==-1){const l=r.filter(u=>u._show),{length:c}=l;if(c<=s)return;if(l&&c){const u=l[s];if(u.disabled)return;this.onSelect(u,s,e)}}else this.close({event:e})}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:n}=this.getStates(),r=e.size;if(r&&!n){const s=[...e.keys()];let l=r-1,c=s[l],u=e.get(c),p=!1;if(u.disabled&&l===0)return;for(;u.disabled&&l!==0;)l=l-1,c=s[l],u=e.get(c),l==0&&u.disabled&&(p=!0);p||this.removeTag(u)}}}_notifyChange(e){const{onChangeWithObject:n}=this.getProps(),r=this.getState("selections");let s;const l=[...e.values()],c=this._isMultiple();if(this._diffSelections(e,r,c))switch(!0){case n:this._notifyChangeWithObject(e);break;case(!n&&!c):s=l.length?l[0].value:void 0,this._adapter.notifyChange(s);break;case(!n&&c):s=l.length?l.map(p=>p.value):[],this._adapter.notifyChange(s);break}}_removeInternalKey(e){let n=Object.assign({},e);return delete n._parentGroup,delete n._show,delete n._selected,delete n._scrollIndex,delete n._keyInJsx,"_keyInOptionList"in n&&(n.key=n._keyInOptionList,delete n._keyInOptionList),n}_notifySelect(e,n){const r=this._removeInternalKey(n);this._adapter.notifySelect(e,r)}_notifyDeselect(e,n){const r=this._removeInternalKey(n);this._adapter.notifyDeselect(e,r)}_diffSelections(e,n,r){let s=!0,l=!0;if(!r){const c=[...e.values()],u=[...n.values()],p=c[0]?c[0].value:c[0],g=u[0]?u[0].value:u[0];l=!Cn(p,g);const v=c[0]?c[0].label:c[0],y=u[0]?u[0].label:u[0];s=!Cn(v,y)}return l||s}_notifyChangeWithObject(e){this.getState("selections");const n=[];for(const r of e.entries()){let s=Object.assign({label:r[0]},r[1]);s=this._removeInternalKey(s),n.push(s)}this._isMultiple()?this._adapter.notifyChange(n):this._adapter.notifyChange(n[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:n,searchPosition:r}=this.getProps();n&&r===nr.SEARCH_POSITION_TRIGGER&&this.clearInput(e),this.focus(),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===Zh&&this.handleClick(e)}handleClearBtnEnterPress(e){Jh(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){const{filter:n,autoFocus:r}=this.getProps(),{isOpen:s,isFocus:l}=this.getStates();l&&!s&&(this._notifyBlur(e),this._adapter.updateFocusState(!1))}handleInputBlur(e){const{filter:n,autoFocus:r}=this.getProps(),{showInput:s,isOpen:l}=this.getStates(),c=this._isMultiple();n&&!c&&(s||r)&&!l&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:n}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select.
|
|
12
|
+
Please note that this is not a legal way to use it`);return}n?r=e:r=e.map(l=>l.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const n=e||this.getProps(),{defaultValue:r,value:s}=n,l=s||r;!bl(l)&&!Array.isArray(l)&&rr(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,n){const{maxTagCount:r,ellipsisTrigger:s}=this.getProps();s&&(n?this._adapter.updateOverflowItemCount(n):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const es=H0.PREFIX,g_=ro.TAG_SIZE,XI=ro.AVATAR_SHAPE;class tl extends k.PureComponent{renderNTag(e,n){const{size:r,showPopover:s,popoverProps:l,onPlusNMouseEnter:c}=this.props;let u=w.createElement(ht,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:c},"+",e);return s&&(u=w.createElement(Bn,Object.assign({showArrow:!0,content:n,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${es}-rest-group-popover`},l,{key:"_+n_Popover"}),u)),u}renderMergeTags(e){const{maxTagCount:n,tagList:r,restCount:s}=this.props,l=s||r.length-n;let c=e;const u=e.slice(0,n),p=e.slice(n);let g=null;return l>0&&(g=this.renderNTag(l,p),u.push(g),c=u),c}renderAllTags(){const{tagList:e,size:n,mode:r,avatarShape:s,onTagClose:l}=this.props;return e.map(u=>{if(r==="custom")return u;const p=Object.assign({},u);return p.size||(p.size=n),p.avatarShape||(p.avatarShape=s),p.tagKey||(typeof p.children=="string"||typeof p.children=="number"?p.tagKey=p.children:p.tagKey=Math.random()),w.createElement(ht,Object.assign({},p,{key:p.tagKey,onClose:(g,v,y)=>{p.onClose&&p.onClose(g,v,y),l&&l(g,v,y)}}))})}render(){const{style:e,className:n,maxTagCount:r,size:s}=this.props,l=X({[`${es}-group`]:!0,[`${es}-group-max`]:r,[`${es}-group-small`]:s==="small",[`${es}-group-large`]:s==="large"},n),c=this.renderAllTags(),u=typeof r>"u"?c:this.renderMergeTags(c);return w.createElement("div",{style:e,className:l},u)}}tl.defaultProps={style:{},className:"",size:g_[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};tl.propTypes={children:h.node,style:h.object,className:h.string,maxTagCount:h.number,restCount:h.number,tagList:h.array,size:h.oneOf(g_),mode:h.string,onTagClose:h.func,showPopover:h.bool,popoverProps:h.object,avatarShape:h.oneOf(XI)};var YI=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const _w=(o,e,n,r)=>{const s=o.props;if(!o||!s)return null;const l=Object.assign(Object.assign({value:s.value,label:s.label||s.children||s.value,_show:!0,_selected:!1,_scrollIndex:n},s),{_parentGroup:e});return l._keyInJsx=r||o.key,l},ZI=o=>{let e=[],n=[];const r={label:"",children:[],_show:!1};let s=w.Children.toArray(o);s=s.filter(u=>u&&u.props);let l="",c=-1;return s.forEach(u=>{if(u.type.isSelectOption){l="option",c++;const p=_w(u,void 0,c);r.children.push(p),n.push(p)}else if(u.type.isSelectOptionGroup){l="group";let p=u.props,{children:g}=p,v=YI(p,["children"]);v.key=u.key;let y=[];Array.isArray(g)?y=g.map(P=>P.key):y.push(g.key),g=w.Children.toArray(g);const b=g.map((P,S)=>{let C=P.key;return y[S]===null&&(C=u.key+""+P.key),c++,_w(P,v,c,C)}),E=Object.assign(Object.assign({},u.props),{children:b,key:u.key});e.push(E),n=n.concat(b)}else rr(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),l==="option"&&(e=[r]),{optionGroups:e,options:n}},JI=o=>{let{index:e,data:n,style:r}=o;const{visibleOptions:s,renderOption:l}=n,c=s[e];return l(c,e,r)};var Cw=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};class hi extends k.PureComponent{onClick(e,n){var{value:r,label:s,children:l}=e,c=Cw(e,["value","label","children"]);const{props:u}=this;u.disabled||u.onSelect(Object.assign(Object.assign({},c),{value:r,label:s||l}),n)}renderOptionContent(e){let{config:n,children:r,inputValue:s,prefixCls:l}=e;return at(r)&&s?w.createElement(ag,{searchWords:n.searchWords,sourceString:n.sourceString,highlightClassName:n.highlightClassName}):r}render(){const e=this.props,{children:n,disabled:r,value:s,selected:l,label:c,empty:u,emptyContent:p,onSelect:g,focused:v,showTick:y,className:b,style:E,onMouseEnter:P,prefixCls:S,renderOptionItem:C,inputValue:O,semiOptionId:x}=e,R=Cw(e,["children","disabled","value","selected","label","empty","emptyContent","onSelect","focused","showTick","className","style","onMouseEnter","prefixCls","renderOptionItem","inputValue","semiOptionId"]),M=X(S,{[`${S}-disabled`]:r,[`${S}-selected`]:l,[`${S}-focused`]:v,[`${S}-empty`]:u,[b]:b}),F=X([`${S}-icon`]);if(u)return p===null?null:w.createElement(Ar,{componentName:"Select"},N=>w.createElement("div",{className:M,"x-semi-prop":"emptyContent"},p||N.emptyText));if(typeof C=="function"){const N=X(b,{[`${S}-custom`]:!0,[`${S}-custom-selected`]:l});return C(Object.assign({disabled:r,focused:v,selected:l,style:E,label:c,value:s,inputValue:O,onMouseEnter:z=>P(z),onClick:z=>this.onClick(Object.assign({value:s,label:c,children:n},R),z),className:N},R))}const j={searchWords:[O],sourceString:n,highlightClassName:`${S}-keyword`};return w.createElement("div",Object.assign({className:M,onClick:N=>{this.onClick(Object.assign({value:s,label:c,children:n},R),N)},onMouseEnter:N=>P&&P(N),role:"option",id:x,"aria-selected":l?"true":"false","aria-disabled":r?"true":"false",style:E},Lh(R)),y?w.createElement("div",{className:F},w.createElement(M0,null)):null,at(n)?w.createElement("div",{className:`${S}-text`},this.renderOptionContent({children:n,config:j,inputValue:O,prefixCls:S})):n)}}hi.isSelectOption=!0;hi.propTypes={children:h.node,disabled:h.bool,value:h.oneOfType([h.string,h.number]),selected:h.bool,label:h.node,empty:h.bool,emptyContent:h.node,onSelect:h.func,focused:h.bool,showTick:h.bool,className:h.string,style:h.object,onMouseEnter:h.func,prefixCls:h.string,renderOptionItem:h.func,inputValue:h.string};hi.defaultProps={prefixCls:Sg.PREFIX_OPTION};var eD=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const tD=Sg.PREFIX_GROUP;class Ol extends gt{render(){const e=this.props,{label:n,className:r,style:s}=e,l=eD(e,["label","className","style"]),c=X(r,{[tD]:!0});return!n&&typeof n!="number"?null:w.createElement("div",Object.assign({className:c,style:s},this.getDataAttr(l)),n)}}Ol.isSelectOptionGroup=!0;Ol.propTypes={children:h.oneOfType([h.array,h.node]),label:h.node,className:h.string,style:h.object};var nD=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};const pe=Sg.PREFIX,rD=0;class $r extends gt{constructor(e){super(e),this.setOptionContainerEl=n=>this.optionContainerEl={current:n},this.handleInputChange=(n,r)=>this.foundation.handleInputChange(n,r),this.getTagItem=(n,r,s)=>{const{size:l,disabled:c}=this.props,u=n[0],{value:p}=n[1],g=n[1].disabled||c,v=(P,S)=>{S&&typeof S.preventDefault=="function"&&S.preventDefault(),this.foundation.removeTag({label:u,value:p})},{content:y,isRenderInTag:b}=s(n[1],{index:r,disabled:g,onClose:v}),E={disabled:g,closable:!g,onClose:v};return b?w.createElement(ht,Object.assign({},E,{color:"white",size:l||"large",key:p,tabIndex:-1}),y):w.createElement(k.Fragment,{key:p},y)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:rD,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=w.createRef(),this.inputRef=w.createRef(),this.dropdownInputRef=w.createRef(),this.triggerRef=w.createRef(),this.optionsRef=w.createRef(),this.optionContainerEl=w.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new D0,this.foundation=new QI(this.adapter)}get adapter(){var e=this;const n={registerKeyDown:l=>{const c={onKeyDown:l};this.setState({keyboardEventSet:c})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:l=>{this.setState({focusIndex:l})},scrollToFocusOption:()=>{}},r={updateInputValue:l=>{this.setState({inputValue:l})},toggleInputShow:(l,c)=>{this.setState({showInput:l},()=>{c()})},focusInput:()=>{const{preventScroll:l}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:l})},focusDropdownInput:()=>{const{preventScroll:l}=this.props;this.dropdownInputRef&&this.dropdownInputRef.current&&this.dropdownInputRef.current.focus({preventScroll:l})}},s={notifyMaxLimit:l=>this.props.onExceed(l),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:l=>{const c=u=>{const p=this.optionsRef&&this.optionsRef.current,g=this.triggerRef&&this.triggerRef.current,v=Jn.findDOMNode(p),y=u.target,b=u.composedPath&&u.composedPath()||[y];!(v&&v.contains(y))&&!(g&&g.contains(y))&&!(b.includes(g)||b.includes(v))&&l(u)};this.clickOutsideHandler=c,document.addEventListener("mousedown",c,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:l}=this.state;l=l+1,this.setState({optionKey:l})},notifyDeselect:(l,c)=>{delete c._parentGroup,this.props.onDeselect(l,c)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),n),r),s),{on:(l,c)=>this.eventManager.on(l,c),off:l=>this.eventManager.off(l),once:(l,c)=>this.eventManager.once(l,c),emit:l=>this.eventManager.emit(l),getOptionsFromChildren:function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,c=[],u=[];const{optionList:p}=e.props;if(p&&p.length)u=p.map((g,v)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:v},g)),c[0]={children:u,label:""};else{const g=ZI(l);c=g.optionGroups,u=g.options}return e.setState({optionGroups:c}),u},updateOptions:l=>{this.setState({options:l})},openMenu:l=>{this.setState({isOpen:!0},()=>{l?.()})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const l=this.triggerRef.current;return l&&l.getBoundingClientRect().width},setOptionWrapperWidth:l=>{this.setState({dropdownMinWidth:l})},updateSelection:l=>{this.setState({selections:l})},getSelections:()=>new Map(this.state.selections),notifyChange:l=>{this.props.onChange(l)},notifySelect:(l,c)=>{delete c._parentGroup,this.props.onSelect(l,c)},notifyDropdownVisibleChange:l=>{this.props.onDropdownVisibleChange(l)},notifySearch:(l,c)=>{this.props.onSearch(l,c)},notifyCreate:l=>{this.props.onCreate(l)},notifyMouseEnter:l=>{this.props.onMouseEnter(l)},notifyMouseLeave:l=>{this.props.onMouseLeave(l)},notifyFocus:l=>{this.props.onFocus(l)},notifyBlur:l=>{this.props.onBlur(l)},notifyClear:()=>{this.props.onClear()},notifyListScroll:l=>{this.props.onListScroll(l)},updateHovering:l=>{this.setState({isHovering:l})},updateFocusState:l=>{this.setState({isFocus:l})},updateOverflowItemCount:l=>{this.setState({overflowItemCount:l})},focusTrigger:()=>{try{const{preventScroll:l}=this.props;this.triggerRef.current.focus({preventScroll:l})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:l=>j0(l),getActiveElement:()=>N0(),setIsFocusInContainer:l=>{this.setState({isFocusInContainer:l})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:l=>{let c;"renderOptionItem"in this.props?(c=`.${pe}-option-custom-selected`,l!==void 0&&(c=`.${pe}-option-custom:nth-child(${l+1})`)):(c=`.${pe}-option-selected`,l!==void 0&&(c=`.${pe}-option:nth-child(${l+1})`));let u=document.querySelector(`#${pe}-${this.selectOptionListID} ${c}`);if(Array.isArray(u)&&(u=u[0]),u){const p=u.parentNode;p.scrollTop=u.offsetTop-p.offsetTop-p.clientHeight/2+u.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=ds(),this.selectID=this.props.id||ds()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,n){const r=w.Children.toArray(e.children).map(c=>c.key),s=w.Children.toArray(this.props.children).map(c=>c.key);let l=!1;(!Cn(r,s)||!Cn(e.optionList,this.props.optionList))&&(l=!0,this.foundation.handleOptionListChange()),(!Cn(this.props.value,e.value)||l)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderTriggerInput(){const{size:e,multiple:n,disabled:r,inputProps:s,filter:l}=this.props,c=ke(s,"className"),u=X(`${pe}-input`,{[`${pe}-input-single`]:!n,[`${pe}-input-multiple`]:n},c),{inputValue:p,focusIndex:g}=this.state,v=Object.assign({value:p,disabled:r,className:u,onChange:this.handleInputChange},s);let y={};return n&&(y={width:p?`${p.length*16}px`:"2px"},v.style=y),w.createElement(cs,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":g!==-1?`${this.selectID}-option-${g}`:"",onFocus:b=>{n&&l&&this.setState({isFocus:!0}),b.stopPropagation()},onBlur:b=>this.foundation.handleInputBlur(b)},v))}renderDropdownInput(){const{size:e,multiple:n,disabled:r,inputProps:s,filter:l,searchPosition:c,searchPlaceholder:u}=this.props,{inputValue:p,focusIndex:g}=this.state,v=X(`${pe}-dropdown-search-wrapper`,{}),y=ke(s,"className"),b=X(`${pe}-dropdown-input`,{[`${pe}-dropdown-input-single`]:!n,[`${pe}-dropdown-input-multiple`]:n},y),E=Object.assign(Object.assign({value:p,disabled:r,className:b,onChange:this.handleInputChange,placeholder:u,showClear:!0},s),{onKeyDown:P=>this.foundation._handleKeyDown(P)});return w.createElement("div",{className:v},w.createElement(cs,Object.assign({ref:this.dropdownInputRef,prefix:w.createElement(ox,null),"aria-activedescendant":g!==-1?`${this.selectID}-option-${g}`:""},E)))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,n,r){this.foundation.onSelect(e,n,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,n){this.handleInputChange(e,n)}renderEmpty(){return w.createElement(hi,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${pe}-loading-wrapper`;return w.createElement("div",{className:e},w.createElement(Mr,null))}renderOption(e,n,r){const{focusIndex:s,inputValue:l}=this.state,{renderOptionItem:c}=this.props;let u;const p=n===s;let g=r||{};return e.style&&(g=Object.assign(Object.assign({},g),e.style)),e._inputCreateOnly?u=this.renderCreateOption(e,p,n,r):("key"in e&&(e._keyInOptionList=e.key),u=w.createElement(hi,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(v,y)=>this.onSelect(v,n,y),focused:p,onMouseEnter:()=>this.onOptionHover(n),style:g,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+n,renderOptionItem:c,inputValue:l,semiOptionId:`${this.selectID}-option-${n}`}),e.label)),u}renderCreateOption(e,n,r,s){const{renderCreateItem:l}=this.props;if(typeof l>"u")return w.createElement(hi,Object.assign({key:e.key||e.label+e.value,onSelect:(p,g)=>this.onSelect(p,r,g),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:n,style:s}),w.createElement(Ar,{componentName:"Select"},p=>w.createElement(w.Fragment,null,w.createElement("span",{className:`${pe}-create-tips`},p.createText),e.value)));const c=l(e.value,n,s);return w.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:u=>this.onSelect(e,r,u),key:e.key||e.label},c)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const n=[],r=new Map;return e.forEach((s,l)=>{const c=s._parentGroup,u=this.renderOption(s,l);if(c&&!r.has(c.label)){const p=typeof c.label=="string"||typeof c.label=="number"?c.label:c.key,g=w.createElement(Ol,Object.assign({},c,{key:p}));r.set(c.label,!0),n.push(g)}n.push(u)}),n}renderVirtualizeList(e){const{virtualize:n}=this.props,{direction:r}=this.context,{height:s,width:l,itemSize:c}=n;return w.createElement(R2,{ref:this.virtualizeListRef,height:s||h_.LIST_HEIGHT,itemCount:e.length,itemSize:c,itemData:{visibleOptions:e,renderOption:this.renderOption},width:l||"100%",style:{direction:r}},JI)}renderOptions(e){const{dropdownMinWidth:n,options:r,selections:s}=this.state,{maxHeight:l,dropdownClassName:c,dropdownStyle:u,outerTopSlot:p,innerTopSlot:g,outerBottomSlot:v,innerBottomSlot:y,loading:b,virtualize:E,multiple:P,emptyContent:S,searchPosition:C,filter:O}=this.props,x=r.filter(N=>N._show);let R=this.renderWithGroup(x);E&&(R=this.renderVirtualizeList(x));const M=Object.assign({minWidth:n},u),F=X({[`${pe}-option-list`]:!0,[`${pe}-option-list-chosen`]:s.size}),j=!r.length||!r.some(N=>N._show);return w.createElement("div",{id:`${pe}-${this.selectOptionListID}`,className:X({[`${pe}-option-list-wrapper`]:!(j&&S===null)},c),style:M,ref:this.setOptionContainerEl,onKeyDown:N=>this.foundation.handleContainerKeyDown(N)},p?w.createElement("div",{className:`${pe}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},p):null,C===nr.SEARCH_POSITION_DROPDOWN&&O?this.renderDropdownInput():null,w.createElement("div",{style:{maxHeight:`${l}px`},className:F,role:"listbox","aria-multiselectable":P,onScroll:N=>this.foundation.handleListScroll(N)},g?w.createElement("div",{className:`${pe}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},g):null,b?this.renderLoading():j?this.renderEmpty():R,y?w.createElement("div",{className:`${pe}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},y):null),v?w.createElement("div",{className:`${pe}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},v):null)}renderSingleSelection(e,n){let{renderSelectedItem:r,searchPosition:s}=this.props;const{placeholder:l}=this.props,{showInput:c,inputValue:u}=this.state;let p="";const g=[...e];if(typeof r>"u"&&(r=E=>E.label),g.length){const E=g[0][1];p=r(E)}const v=s===nr.SEARCH_POSITION_TRIGGER,y=X({[`${pe}-selection-text`]:!0,[`${pe}-selection-placeholder`]:!p&&p!==0,[`${pe}-selection-text-hide`]:u&&c&&v,[`${pe}-selection-text-inactive`]:!u&&c&&v}),b=`${pe}-content-wrapper`;return w.createElement(w.Fragment,null,w.createElement("div",{className:b},w.createElement("span",{className:y,"x-semi-prop":"placeholder"},p||p===0?p:l),n&&c&&v?this.renderTriggerInput():null))}renderTag(e,n,r){const{size:s,disabled:l}=this.props;let{renderSelectedItem:c}=this.props;const u=e[0],{value:p}=e[1],g=e[1].disabled||l,v=(S,C)=>{C&&typeof C.preventDefault=="function"&&C.preventDefault(),this.foundation.removeTag({label:u,value:p})};typeof c>"u"&&(c=S=>({isRenderInTag:!0,content:S.label}));const{content:y,isRenderInTag:b}=c(e[1],{index:n,disabled:g,onClose:v}),E={disabled:g,closable:!g,onClose:v},P=r&&!Kt(this.props.renderSelectedItem)?w.createElement(_l,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},y):y;return b?w.createElement(ht,Object.assign({},E,{color:"white",size:s||"large",key:p,style:{maxWidth:"100%"}}),P):w.createElement(k.Fragment,{key:p},P)}renderNTag(e,n){const{size:r,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;let c=w.createElement(ht,{closable:!1,size:r||"large",color:"grey",className:`${pe}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return s&&(c=w.createElement(Bn,Object.assign({showArrow:!0,content:w.createElement(Es,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},n.map((u,p)=>this.renderTag(u,p))),trigger:"hover",position:"top",autoAdjustOverflow:!0},l,{key:`_+${e}_Popover`}),c)),c}renderOverflow(e,n){return e.length&&e[0]?this.renderTag(e[0],n,!0):null}handleOverflow(e){const{overflowItemCount:n,selections:r}=this.state,{maxTagCount:s}=this.props,l=r.size-s>0?r.size-s+e.length-1:e.length-1;n!==l&&this.foundation.updateOverflowItemCount(r.size,l)}renderCollapsedTags(e,n){const{overflowItemCount:r}=this.state,s=typeof n=="number"?e.slice(0,n):e;return w.createElement("div",{className:`${pe}-content-wrapper-collapse`},w.createElement(fs,{items:s,key:String(e.length),overflowRenderer:l=>this.renderOverflow(l,n-1),onOverflow:l=>this.handleOverflow(l),visibleItemRenderer:(l,c)=>this.renderTag(l,c)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,n){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:s,restTagsPopoverProps:l,maxTagCount:c}=this.props,{isFullTags:u}=this.state;let p;if(typeof r>"u"&&(r=g=>({isRenderInTag:!0,content:g.label})),s){const v=(u?e:e.slice(0,c)).map((y,b)=>this.getTagItem(y,b,r));p=w.createElement(tl,{tagList:v,maxTagCount:n,restCount:u?void 0:e.length-c,size:"large",mode:"custom",showPopover:s,popoverProps:l,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const v=e.slice(0,c).map((y,b)=>this.getTagItem(y,b,r));p=w.createElement(tl,{tagList:v,maxTagCount:n,restCount:e.length-c,size:"large",mode:"custom"})}return p}renderMultipleSelection(e,n){let{renderSelectedItem:r,searchPosition:s}=this.props;const{placeholder:l,maxTagCount:c,expandRestTagsOnClick:u,ellipsisTrigger:p}=this.props,{inputValue:g,isOpen:v}=this.state,y=[...e];typeof r>"u"&&(r=M=>({isRenderInTag:!0,content:M.label}));const b=X({[`${pe}-content-wrapper`]:!0,[`${pe}-content-wrapper-one-line`]:c&&!v,[`${pe}-content-wrapper-empty`]:!y.length}),E=X({[`${pe}-selection-text`]:!0,[`${pe}-selection-placeholder`]:!y.length,[`${pe}-selection-text-hide`]:y&&y.length}),P=l&&!g?w.createElement("span",{className:E},l):null,S=y.length>c?c:void 0,C=!c,O=p?this.renderCollapsedTags(y,S):this.renderOneLineTags(y,S),x=C||u&&v?y.map((M,F)=>this.renderTag(M,F)):O,R=n&&s===nr.SEARCH_POSITION_TRIGGER;return w.createElement(w.Fragment,null,w.createElement("div",{className:b},y&&y.length?x:P,R?this.renderTriggerInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:n}=this.props,{selections:r}=this.state;if(e)if(n){let s=-1;if(r.forEach(l=>{const c=ke(l,"_scrollIndex");Lr(c)&&c>=0&&(s=s!==-1&&s<c?s:c)}),s!==-1)try{this.virtualizeListRef.current.scrollToItem(s,"center")}catch{}}else this.foundation.updateScrollTop()}renderSuffix(){const{suffix:e}=this.props,n=X({[`${pe}-suffix`]:!0,[`${pe}-suffix-text`]:e&&at(e),[`${pe}-suffix-icon`]:An(e)});return w.createElement("div",{className:n,"x-semi-prop":"suffix"},e)}renderPrefix(){const{prefix:e,insetLabel:n,insetLabelId:r}=this.props,s=e||n,l=X({[`${pe}-prefix`]:!0,[`${pe}-inset-label`]:n,[`${pe}-prefix-text`]:s&&at(s),[`${pe}-prefix-icon`]:An(s)});return w.createElement("div",{className:l,id:r,"x-semi-prop":"prefix,insetLabel"},s)}renderSelection(){const e=this.props,{disabled:n,multiple:r,filter:s,style:l,id:c,size:u,className:p,validateStatus:g,showArrow:v,suffix:y,prefix:b,insetLabel:E,placeholder:P,triggerRender:S,arrowIcon:C,clearIcon:O,borderless:x}=e,R=nD(e,["disabled","multiple","filter","style","id","size","className","validateStatus","showArrow","suffix","prefix","insetLabel","placeholder","triggerRender","arrowIcon","clearIcon","borderless"]),{selections:M,isOpen:F,keyboardEventSet:j,inputValue:N,isHovering:z,isFocus:U,showInput:K,focusIndex:Q}=this.state,re=typeof S=="function",ne=!!s,ae=re?X(p):X(pe,p,{[`${pe}-borderless`]:x,[`${pe}-open`]:F,[`${pe}-focus`]:U,[`${pe}-disabled`]:n,[`${pe}-single`]:!r,[`${pe}-multiple`]:r,[`${pe}-filterable`]:ne,[`${pe}-small`]:u==="small",[`${pe}-large`]:u==="large",[`${pe}-error`]:g==="error",[`${pe}-warning`]:g==="warning",[`${pe}-no-arrow`]:!v,[`${pe}-with-prefix`]:b||E,[`${pe}-with-suffix`]:y}),oe=this.props.showClear&&(M.size||N)&&!n&&(z||F),ge=v?w.createElement("div",{className:`${pe}-arrow`,"x-semi-prop":"arrowIcon"},C):w.createElement("div",{className:`${pe}-arrow-empty`}),me=O||w.createElement(A0,null),W=re?w.createElement(G0,{value:Array.from(M.values()),inputValue:N,onChange:this.handleInputChange,onSearch:this.handleInputChange,onRemove:D=>this.foundation.removeTag(D),onClear:this.onClear,disabled:n,triggerRender:S,placeholder:P,componentName:"Select",componentProps:Object.assign({},this.props)}):[w.createElement(k.Fragment,{key:"prefix"},b||E?this.renderPrefix():null),w.createElement(k.Fragment,{key:"selection"},w.createElement("div",{className:X(`${pe}-selection`)},r?this.renderMultipleSelection(M,ne):this.renderSingleSelection(M,ne))),w.createElement(k.Fragment,{key:"suffix"},y?this.renderSuffix():null),w.createElement(k.Fragment,{key:"clearicon"},oe?w.createElement("div",{className:X(`${pe}-clear`),onClick:this.onClear},me):ge)],ee=n||ne&&K||ne&&r?-1:0;return w.createElement("div",Object.assign({role:"combobox","aria-disabled":n,"aria-expanded":F,"aria-controls":`${pe}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":M.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:ae,ref:D=>this.triggerRef.current=D,onClick:D=>this.foundation.handleClick(D),style:l,id:this.selectID,tabIndex:ee,"aria-activedescendant":Q!==-1?`${this.selectID}-option-${Q}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:D=>this.foundation.handleTriggerFocus(D),onBlur:D=>this.foundation.handleTriggerBlur(D),onKeyPress:this.onKeyPress},j,this.getDataAttr(R)),W)}render(){const{direction:e}=this.context,n=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:s=n,zIndex:l,getPopupContainer:c,motion:u,autoAdjustOverflow:p,mouseLeaveDelay:g,mouseEnterDelay:v,spacing:y,stopPropagation:b,dropdownMargin:E}=this.props,{isOpen:P,optionKey:S}=this.state,C=this.renderSelection();return w.createElement(Bn,{getPopupContainer:c,motion:u,margin:E,autoAdjustOverflow:p,mouseLeaveDelay:g,mouseEnterDelay:v,zIndex:l,ref:this.optionsRef,content:()=>this.renderOptions(r),visible:P,trigger:"custom",rePosKey:S,position:s,spacing:y,stopPropagation:b,disableArrowKeyDown:!0,onVisibleChange:O=>this.handlePopoverVisibleChange(O),afterClose:()=>this.foundation.handlePopoverClose()},C)}}$r.contextType=qn;$r.Option=hi;$r.OptGroup=Ol;$r.propTypes={"aria-describedby":h.string,"aria-errormessage":h.string,"aria-invalid":h.bool,"aria-labelledby":h.string,"aria-required":h.bool,autoFocus:h.bool,autoClearSearchValue:h.bool,borderless:h.bool,children:h.node,clearIcon:h.node,defaultValue:h.oneOfType([h.string,h.number,h.array,h.object]),ellipsisTrigger:h.bool,value:h.oneOfType([h.string,h.number,h.array,h.object]),placeholder:h.node,onChange:h.func,multiple:h.bool,filter:h.oneOfType([h.func,h.bool]),max:h.number,maxTagCount:h.number,maxHeight:h.oneOfType([h.string,h.number]),style:h.object,className:h.string,size:h.oneOf(nr.SIZE_SET),disabled:h.bool,emptyContent:h.node,expandRestTagsOnClick:h.bool,onDropdownVisibleChange:h.func,zIndex:h.number,position:h.oneOf(nr.POSITION_SET),onSearch:h.func,getPopupContainer:h.func,dropdownClassName:h.string,dropdownStyle:h.object,dropdownMargin:h.oneOfType([h.number,h.object]),outerTopSlot:h.node,innerTopSlot:h.node,inputProps:h.object,outerBottomSlot:h.node,innerBottomSlot:h.node,optionList:h.array,dropdownMatchSelectWidth:h.bool,loading:h.bool,defaultOpen:h.bool,validateStatus:h.oneOf(nr.STATUS),defaultActiveFirstOption:h.bool,triggerRender:h.func,stopPropagation:h.bool,searchPosition:h.string,motion:h.bool,onChangeWithObject:h.bool,suffix:h.node,prefix:h.node,insetLabel:h.node,insetLabelId:h.string,showClear:h.bool,showArrow:h.bool,renderSelectedItem:h.func,allowCreate:h.bool,renderCreateItem:h.func,onMouseEnter:h.func,onMouseLeave:h.func,clickToHide:h.bool,onExceed:h.func,onCreate:h.func,remote:h.bool,onDeselect:h.func,onSelect:h.func,autoAdjustOverflow:h.bool,mouseEnterDelay:h.number,mouseLeaveDelay:h.number,spacing:h.oneOfType([h.number,h.object]),onBlur:h.func,onFocus:h.func,onClear:h.func,virtualize:h.object,renderOptionItem:h.func,onListScroll:h.func,arrowIcon:h.node,preventScroll:h.bool};$r.__SemiComponentName__="Select";$r.defaultProps=sr($r.__SemiComponentName__,{stopPropagation:!0,motion:!0,borderless:!1,zIndex:gi.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:he,onChangeWithObject:!1,onChange:he,onSearch:he,onMouseEnter:he,onMouseLeave:he,onDeselect:he,onSelect:he,onCreate:he,onExceed:he,onFocus:he,onBlur:he,onClear:he,onListScroll:he,maxHeight:h_.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,searchPosition:nr.SEARCH_POSITION_TRIGGER,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:w.createElement(HO,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1});class iD extends kt{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=n=>{const{target:r}=n;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{rr(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,n){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,n):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,n))}destroy(){}}const ln={PREFIX:`${Te}-switch`,FOCUS:`${Te}-switch-focus`,LARGE:`${Te}-switch-large`,SMALL:`${Te}-switch-small`,CHECKED:`${Te}-switch-checked`,DISABLED:`${Te}-switch-disabled`,KNOB:`${Te}-switch-knob`,NATIVE_CONTROL:`${Te}-switch-native-control`,CHECKED_TEXT:`${Te}-switch-checked-text`,UNCHECKED_TEXT:`${Te}-switch-unchecked-text`,LOADING_SPIN:`${Te}-switch-loading-spin`,LOADING:`${Te}-switch-loading`},oD={SIZE_MAP:["default","small","large"]};var sD=function(o,e){var n={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(n[r[s]]=o[r[s]]);return n};class ci extends gt{constructor(e){super(e),this.handleFocusVisible=n=>{this.foundation.handleFocusVisible(n)},this.handleBlur=n=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=w.createRef(),this.foundation=new iD(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,n)=>{this.props.onChange(e,n)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:n,focusVisible:r}=this.state,s=this.props,{className:l,style:c,onMouseEnter:u,onMouseLeave:p,size:g,checkedText:v,uncheckedText:y,loading:b,id:E}=s,P=sD(s,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),S=X(l,{[ln.PREFIX]:!0,[ln.CHECKED]:e,[ln.DISABLED]:n,[ln.LARGE]:g==="large",[ln.SMALL]:g==="small",[ln.LOADING]:b,[ln.FOCUS]:r}),C={type:"checkbox",className:ln.NATIVE_CONTROL,disabled:n||b,checked:e||!1},O=v&&e&&g!=="small",x=y&&!e&&g!=="small";return w.createElement("div",Object.assign({className:S,style:c,onMouseEnter:u,onMouseLeave:p},this.getDataAttr(P)),b?w.createElement(Mr,{wrapperClassName:ln.LOADING_SPIN,size:g==="default"?"middle":g}):w.createElement("div",{className:ln.KNOB,"aria-hidden":!0}),O?w.createElement("div",{className:ln.CHECKED_TEXT,"x-semi-prop":"checkedText"},v):null,x?w.createElement("div",{className:ln.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},y):null,w.createElement("input",Object.assign({},C,{ref:this.switchRef,id:E,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:R=>this.foundation.handleChange(R.target.checked,R),onFocus:R=>this.handleFocusVisible(R),onBlur:R=>this.handleBlur(R)})))}}ci.propTypes={"aria-label":h.string,"aria-labelledby":h.string,"aria-invalid":h.bool,"aria-errormessage":h.string,"aria-describedby":h.string,className:h.string,checked:h.bool,checkedText:h.node,defaultChecked:h.bool,disabled:h.bool,loading:h.bool,onChange:h.func,onMouseEnter:h.func,onMouseLeave:h.func,style:h.object,size:h.oneOf(oD.SIZE_MAP),uncheckedText:h.node,id:h.string};ci.defaultProps={disabled:!1,className:"",onChange:he,loading:!1,onMouseEnter:he,onMouseLeave:he,size:"default"};const wg=k.createContext(void 0),un=()=>{const o=k.useContext(wg);if(!o)throw new Error("useAppContext must be used within ContextProvider");return o},aD="DevTool",lD="Scan to start local debugging",cD="Device connected!",uD="Debug service disconnected",dD="Not Connected",pD="Node",fD="Browser",hD="Client",gD="Connected",mD="Disconnected",vD="Failed",yD="Unknown",bD="Legend",SD="Local debug service on your machine (bridges IDE and client, forwards messages).",wD="The browser page running DevTool IDE.",_D="Debug service inside TikTok on the device (provides HTTP/WS capabilities).",CD="Dots indicate link status; ws/http are shown on opposite sides on the same edge.",ED="Network diagnostics",PD="Network connectivity diagnostics",kD="Helps diagnose QR scan stuck / connection failures / unreachable ports (browser-side checks only).",TD="No response after scanning? Click to diagnose",OD="Run all checks",xD="Manual bind client debug service",ID="When QR scan path is unavailable (proxy/firewall/multi-NIC), you can manually enter client IP and ports to connect.",DD="Manual connect",RD="Go to manual connect",ND="Computer IP",jD="WS Port",LD="HTTP Port",AD="Computer",MD="Client",$D="View troubleshooting guide",FD="Open proxy setup",zD="Environment",BD="Check results",qD="IDE ↔ Node (HTTP)",GD="IDE ↔ Node (WS)",UD="IDE ↔ Client (HTTP)",WD="IDE ↔ Client (WS)",HD="Suggestions",VD="Actions",KD="Extra info: if the connection succeeds, return to the QR debug page to continue.",QD="Open docs",XD="Client endpoint not detected",YD="Scan to connect first, or use Manual bind IP to provide client IP/ports.",ZD="Client connectivity failed (LAN / proxy / firewall)",JD="Make sure phone and computer are on the same Wi‑Fi/subnet; disable global VPN/TUN; enable Allow LAN in proxy; allow Node.js in firewall.",eR="Local debug service unavailable",tR="Make sure `ttmg dev` is running in the project root and the port is not occupied.",nR="No obvious issues detected",rR="If it still fails, share the copied environment info and screenshots for investigation.",iR="HTTP reachable but WS unreachable: check WS port correctness and whether the client debug service is listening.",oR="If WS times out: the port is likely blocked by firewall/router policy, or global VPN/TUN affects LAN traffic.",sR="Both HTTP and WS unreachable: check if phone and computer are on the same Wi‑Fi/subnet (AP isolation may exist).",aR="Disable global VPN/TUN; enable Allow LAN in proxy; check firewall rules for LAN access.",lR="Client HTTP address or port is not available",cR="Client WS address or port is not available",uR="Hint",dR="If ping works but WS fails, it's usually because the TCP port isn't listening or is blocked (ICMP differs from TCP/WS).",pR="Client disconnected. Please scan the QR code to reconnect.",fR="Node service disconnected. Please restart the debug service in the terminal.",hR="Switch debug device",gR="No device connected",mR="Please connect a device before debugging.",vR="Scan with TikTok to debug",yR="Switch scan device",bR="Initializing debug environment...",SR="Notifying client to initialize debug environment...",wR="Fetching client debug environment configuration...",_R="Failed to fetch client debug environment configuration",CR="Client debug environment configuration fetched successfully",ER="Client debug environment initialized. Waiting to upload game resources...",PR="Failed to initialize client debug environment",kR="Initializing JS runtime environment...",TR="JS runtime environment initialized successfully",OR="Re-upload code package",xR="Uploading game resources...",IR="Uploading game resources, progress:",DR="Game resources uploaded successfully. Client is loading the game...",RR="Failed to upload game resources. Please check your environment.",NR="Initializing game environment...",jR="Game resources are being compiled locally. Please wait...",LR="Compiling game resources",AR="Game resources updated. Upload again for debugging?",MR="Game resources updated successfully!",$R="Failed to initialize game environment. Please check your environment.",FR="Fetching game debug environment configuration",zR="Game environment configuration fetched successfully",BR="Failed to fetch game environment configuration",qR="Fetching game scripts",GR="Browser debug environment initialized. The game will start after resources are uploaded.",UR="Game runtime environment initialized. Preparing to upload resources to client.",WR="Uploading game package to client...",HR="Game package uploaded successfully. Client is loading the game...",VR="Failed to upload game package",KR="Re-upload mini game package",QR="Restart mini game",XR="End debugging",YR="Starting debug environment...",ZR="Failed to connect to local Node debug service",JR="Connecting to local Node debug service...",eN="Connected to local Node debug service",tN="Failed to connect to local Node debug service. Please make sure 'ttmg dev' is running in the game root directory.",nN="Node debug service disconnected. Please restart the debug service in the terminal.",rN="Client debug service connected successfully",iN="Failed to connect to client debug service. Please scan the QR code again to start the debug service.",oN="Client debug service disconnected. Please scan the QR code again to reconnect.",sN="No LAN IP available for QR scan",aN="Make sure your computer and phone are on the same Wi-Fi, and disable VPN/proxy/firewall blocking. Or use manual binding to connect the client debug service.",lN="Manual bind IP",cN="Failed to start client debug environment. Please scan the QR code again to start the debug service.",uN="Failed to load game scripts",dN="Upload to device",pN="Do not upload",fN="Upload to platform",hN="Scanning QR code...",gN="Switch device to start a new debug session by scanning",mN="Make sure your TikTok account is added as a test user for the debug app",vN="Not logged in",yN="Launch mode name",bN="Select launch package",SN="Select independent subpackage",wN="Select entry scene",_N="Custom launch parameters",CN="Example: a=1&b=2",EN="Scan QR code",PN="Search",kN="For You feed direct play",TN="For Your feed card",ON="Creator anchor",xN="Sidebar",IN="For Your feed ads",DN="Desktop Shortcut",RN="DM sharing",NN="Copy link",jN="Main package",LN="Independent subpackage",AN="Custom launch mode",MN="Are you sure you want to delete {{name}}?",$N="Save",FN="Developer options",zN="Enable domain check to ensure only requests from configured domains are allowed.",BN="Enable Ad Mock",qN="Enable Ad Mock Debug to simulate ad behavior and test scenarios.",GN="Enable IAP Mock",UN="Enable IAP Mock Debug to simulate in-app purchase behavior and test scenarios.",WN="Select launch mode",HN="Create new launch mode",VN="Select debug mode",KN="Remote debug",QN="Client preview",XN="Client debug",YN="Launch parameters must be a string",ZN="Launch parameters should not contain the question mark (?) prefix. Please only input the parameter part.",JN=`Launch parameters format error: empty key-value pair found. Please ensure each '&' symbol has a complete "key=value" structure on both sides.`,e4=`Launch parameters format error: empty key found. Please ensure each '&' symbol has a complete "key=value" structure on both sides.`,t4="Launch parameters format error: duplicate key found. Each key must be unique.",n4="Launch parameters format error: invalid key characters found. Please use only letters, numbers, underscores (_), and hyphens (-).",r4="Launch parameters format error: invalid value characters found. Please use only letters, numbers, underscores (_), and hyphens (-).",i4="Launch parameters format error: invalid URL encoding found. Please use the correct encoding format.",o4='Launch parameters format error: missing equal sign (=) or empty value. Please use "key=value" format, and ensure the value is not empty.',s4="Cannot be empty",a4="Save and apply",l4="Apply",c4="Sending local debug setting to client...",u4="Local Node debug service configuration fetched successfully",d4="Failed to fetch local debug service configuration. Please check if Node service is running.",p4="Loading debug environment dependency scripts...",f4="Dependency scripts loaded successfully",h4="Failed to load dependency scripts. Please scan the QR code again to start the debug service.",g4="Dependency scripts are empty. Please scan the QR code again to start the debug service.",m4="Dependency scripts loaded and initialized successfully",v4="Game resources compiled successfully! Scan with your device to debug.",y4="Game resources compiled successfully!",b4="Scan to debug",S4="Game config",w4="Launch mode",_4="Version upload",C4="Normal launch mode",E4="New launch mode",P4="In local debugging phase, you can quickly view the basic information of the current mini game, including: game name, icon, client key, description, total package size, main package size, independent subpackage size, trusted domains, service terms, privacy policy, etc.",k4="By checking these core information in advance, you can promptly discover potential issues and ensure that the project status meets the platform requirements before formal release, reducing risks and rework after launch.",T4="Not exceed project size {{limit}} limit",O4="Not exceed main package size {{limit}} limit",x4="Not exceed independent subpackage size {{limit}} limit",I4="Exceed project size {{limit}} limit",D4="Exceed main package size {{limit}} limit",R4="Exceed independent subpackage size {{limit}} limit",N4="By setting launch mode, you can flexibly select the launch package, entry scene, and launch parameters to meet different testing and online requirements. Please complete the relevant configuration based on actual needs to ensure that the game can start normally and enter the expected scene.",j4="3. Configuration file check",L4="Ensure that the subpackage file paths are configured correctly, and all paths can be accessed normally to avoid loading failures later.",A4="1. Package size check",M4="2. Mandatory API check",$4="Check if the game has integrated necessary API capabilities to ensure better user experience and conversion effects on TikTok.",F4="The entire game package size must be controlled within {{projectSize}}; the main package size cannot exceed {{mainPackageSize}}, and the size of each independent subpackage cannot exceed {{independentPackageSize}}.",z4="The entire game package size must be controlled within {{projectSize}}; no other additional restrictions.",B4="Configuration file check passed!",q4="Package size check passed!",G4="Package size check failed!",U4="Configuration file check failed!",W4="Performance check",H4="Performance check passed!",V4="Performance check failed!",K4="View docs",Q4="Expand check details",X4="Close check details",Y4="Game project",Z4="Main package size",J4="Independent subpackage size",ej="Trusted domains",tj="Terms & Privacy",nj="Terms & Privacy - Terms URL",rj="Terms & Privacy - Privacy URL",ij="Terms of Service URL",oj="Privacy policy URL",sj="Project Size",aj="Name",lj="Icon",cj="Client key",uj="Description",dj="Current game ClientKey {{clientKey}} cannot be enabled for debug, please check and try again.",pj="Failed to fetch game details. Please try again later.",fj="The current account is not logged in, so game details cannot be retrieved. Please run `ttmg login` in the console and log in with your developer platform account. After logging in, run the `ttmg dev` command to enable debug mode.",hj="You can log in by entering the `ttmg login` command in the console and using your developer platform account and password.",gj="Docs",mj="Quick start",vj="API Reference",yj="Error reference",bj="FAQ",Sj="Upload",wj="Cancel",_j="Add resource description",Cj="Upload success",Ej="Upload failed",Pj="After the game resource is successfully uploaded to the platform, the platform will verify the resource and deploy it. You can view the preview version of the game on the platform.",kj="View on platform",Tj="Only after logging in in the command line can the game package upload function on the debug page be used.",Oj="Upload current game to platform",xj="No trusted domains are configured on the platform yet. Only domains added to the platform allowlist can send network requests at runtime. If the game needs to access external domains, add them here as needed.",Ij="Debug environment script initialization failed, please scan the QR code again",Dj="Game resource upload failed, please scan the QR code again",Rj="The game is missing Terms & Privacy (Terms URL). The login/authorize flow depends on this field, so debugging will fail until it is configured on the platform.",Nj="The game is missing Terms & Privacy (Privacy URL). The login/authorize flow depends on this field, so debugging will fail until it is configured on the platform.",jj="The game is missing Terms & Privacy (Terms URL and Privacy URL). The login/authorize flow depends on these fields, so debugging will fail until they are configured on the platform.",Lj="Current Terms & Privacy (Terms URL) is empty. Please add this URL on the platform to ensure the game can run normally.",Aj="Current Terms & Privacy (Privacy URL) is empty. Please add this URL on the platform to ensure the game can run normally.",Mj="Current game name is empty. Please complete it before submission to avoid review rejection.",$j="Current game icon is empty. Please complete it before submission to avoid review rejection.",Fj="Current game description is empty. Please add the game description to the game description list to ensure that the game can run normally.",zj="Current account does not have permission to view game details of ID {{clientKey}}. Please apply for development permission on the developer platform and run the `ttmg dev` command to enable debug mode.",Bj="Start connecting to client WebSocket, 👉🏼👉🏼👉🏼 {{wsURL}}...",qj="Client WebSocket service connection timeout, please check if the computer and mobile phone are in the same local area network.",Gj="Current account is not logged in, so game details cannot be retrieved. Please run `ttmg login` in the console and log in with your developer platform account. After logging in, run the `ttmg dev` command to enable debug mode.",Uj="Current account login expired, please log in again.",Wj="Login",Hj="Create rewarded video ad",Vj="Add shortcut",Kj="Open profile sidebar entrance",Qj="Get shortcut mission reward",Xj="Get entrance mission reward",Yj="Integrated!",Zj="Not integrated!",Jj="Mandatory API check passed!",eL="Mandatory API check failed!",tL="Client preview loading game, please check the browser console for more details...",nL="Client preview environment initialized. Please check the browser console for more details...",rL="Start to send game meta data to client, after which the client will start to launch the game...",iL="Game meta data sent to client successfully, client will start to launch the game...",oL="1. Browser remote debugging: first initialize the remote debugging environment in the browser, and then connect the client to start debugging. This mode requires uploading the game package to the client, but the debugging process is based on the browser's capabilities for remote debugging.",sL="2. Client real preview: upload the local game code to the client, and then preview and debug on the real device. This mode directly verifies the performance and compatibility of the game on the real device.",aL="Invalid port number, please enter a valid port number",lL="If the QR code is no response, please click here to manually bind the client debug service address.",cL="Confirm",uL="Please enter the local IP address of the mobile phone",dL="Start upload",pL="Manually bind the client debug service address",fL="Go to check",hL="Check network",gL="1. Support manually connecting to the client debug service to resolve network connection issues caused by different network environments between the mobile phone and the computer.",mL="2. Only TikTok Android 42.9 and above versions are supported, and iOS does not support it for the time being.",vL="Back",yL="Start connection",bL="Check connectivity",SL="Connectivity check",wL="Client WebSocket",_L="Client HTTP",CL="OK",EL="Failed",PL="Timeout",kL="Connection failed",TL="Please fill IP and ports first",OL="Uploading the game package requires filling in the current game package description first.",xL="Disable domain check",IL="Enable vConsole log panel",DL="Enable developer info panel",RL="Enable vConsole log panel, which can view runtime logs in the browser devtools.",NL="Enable developer info panel, which can view game runtime statistics in the mobile app.",jL="‼️ Detected {{count}} issues. Each item is labeled as Blocking or Suggestion.",LL="Blocking",AL="Suggestion",ML="Basic game info is missing: {{fields}}.",$L="title (Name)",FL="icon (Icon)",zL="description (Description)",BL=", ",qL="You are not logged in with a developer account: upload is unavailable, and network requests may be blocked. For temporary local debugging, disable domain check in Developer Options.",GL="Please resolve this before submission to avoid review rejection.",UL="View details",WL="Hide details",HL="Features",VL="Optimizations",KL="Bugfixes",QL="Learn more",XL="Changelog",YL="New/Optimized Feature Target Version:",ZL="Wasm Code Split",JL="Split Prepare",eA="Collect Functions",tA="Split Code",nA="Rollback",rA="Starting split code prepare...",iA="Cancel split code prepare",oA="Background run",sA="Preparing split code, please wait...",aA="During the preparation process, please do not modify the local game package, otherwise it may cause the preparation to fail.",lA="Split code preparation successful!",cA="Split code preparation failed!",uA="Retry preparation",dA="Download prepared Wasm code",pA="Download failed",fA="Retry download",hA="Download successful",gA="After downloading the prepared Wasm code, you can split the code in the local environment for debugging.",mA="Split code description",vA="Please input split code description",yA="Start prepare",bA="Processing...",SA="Update Wasm split config",wA="Update Wasm split config successful!",_A="Update Wasm split config failed!",CA="Compress prepared Wasm code successful!",EA="Compress prepared Wasm code failed!",PA="Write compress prepared Wasm code",kA="Write compress prepared Wasm code successful!",TA="Write compress prepared Wasm code failed!",OA="Fetch download URL",xA="Fetch download URL successful!",IA="Fetch download URL failed!",DA="Download prepared Wasm code successful!",RA="Download prepared Wasm code failed!",NA="Start split",jA="Current collected function count is not enough, at least 8% of the total function count is required to start split.",LA="Current local project already supports wasm split, please use TikTok client to scan the QR code, start collecting functions, please support complete loading process, game teaching, etc. in advance.",AA="Start collect",MA="Wasm file size",$A="Collected function count",FA="Total function count",zA="Split version",BA="Split code processing, please wait...",qA="Cancel split",GA="Get split result",UA="Retry get split result",WA="Get split result failed, please retry.",HA="Split code processing successful!",VA="Download split result",KA="Download split result failed, please retry.",QA="Retry download split result",XA="Download split result successful!",YA="Local can use real device to scan debug QR code, experience split code loading process, confirm game no exception after, can upload current directory files to developer platform for testing and release.",ZA="Downloading Android main Wasm file...",JA="Download Android main Wasm file successful",eM="Compressing Android main Wasm file...",tM="Compress Android main Wasm file successful",nM="Downloading Android sub Wasm code...",rM="Download Android sub Wasm code successful",iM="Compressing Android sub Wasm code...",oM="Compress Android sub Wasm code successful",sM="Downloading iOS main Wasm file...",aM="Download iOS main Wasm file successful",lM="Compressing iOS main Wasm file...",cM="Compress iOS main Wasm file successful",uM="Downloading iOS sub Wasm code...",dM="Download iOS sub Wasm code successful",pM="Compressing iOS sub Wasm code...",fM="Compress iOS sub Wasm code successful",hM="Writing split Wasm files...",gM="Write split Wasm files successful",mM="Updating Wasm split config...",vM="Update Wasm split config successful!",yM="No Wasm code found",bM="No Wasm code found in the project. Please make sure the game has been packed with Wasm code and try again.",SM="Current project already has split Wasm code, please use TikTok client to scan the QR code, start collecting functions, please support complete loading process, game teaching, etc. in advance.",wM="Do you want to continue split Wasm code?",_M="Current project has not enabled Wasm split config",CM="Current project has not enabled Wasm split config. Please enable it in the project config and try again.",EM="Advanced guide",PM="Capability integration",kM={title:aD,scanQRcodeTitle:lD,deviceConnected:cD,serverDisconnected:uD,deviceDisconnected:dD,connectStatusNode:pD,connectStatusBrowser:fD,connectStatusClient:hD,connectStatusConnected:gD,connectStatusDisconnected:mD,connectStatusFailed:vD,connectStatusUnknown:yD,connectStatusLegendTitle:bD,connectStatusLegendNode:SD,connectStatusLegendBrowser:wD,connectStatusLegendClient:_D,connectStatusLegendProto:CD,netDiagNav:ED,netDiagTitle:PD,netDiagSubtitle:kD,netDiagEntryScanNoResponse:TD,netDiagRunAll:OD,netDiagManualBindTitle:xD,netDiagManualBindDesc:ID,netDiagManualBindEntry:DD,netDiagManualConnectGo:RD,netDiagEnvIP:ND,netDiagEnvWsPort:jD,netDiagEnvHttpPort:LD,netDiagComputerGroup:AD,netDiagClientGroup:MD,netDiagOpenTroubleshoot:$D,netDiagOpenProxy:FD,netDiagEnvTitle:zD,netDiagChecksTitle:BD,netDiagCheckNodeHttp:qD,netDiagCheckNodeWs:GD,netDiagCheckClientHttp:UD,netDiagCheckClientWs:WD,netDiagSuggestTitle:HD,netDiagActionsTitle:VD,netDiagSuccessHint:KD,netDiagOpenDoc:QD,netDiagSuggestNoClientTitle:XD,netDiagSuggestNoClientDesc:YD,netDiagSuggestLanTitle:ZD,netDiagSuggestLanDesc:JD,netDiagSuggestNodeTitle:eR,netDiagSuggestNodeDesc:tR,netDiagSuggestOkTitle:nR,netDiagSuggestOkDesc:rR,netDiagSuggestHttpOkWsFail1:iR,netDiagSuggestHttpOkWsFail2:oR,netDiagSuggestBothFail1:sR,netDiagSuggestBothFail2:aR,netDiagMissingClientHttp:lR,netDiagMissingClientWs:cR,netDiagQuickHintTitle:uR,netDiagQuickHintDesc:dR,clientDisconnected:pR,nodeDisconnected:fR,switchDevice:hR,disConnectionStatusTitle:gR,disConnectionStatusDesc:mR,scanQRCode:vR,switchScanDevice:yR,startDebug:bR,initClientEnv:SR,fetchClientDevConfig:wR,fetchClientDevConfigFailed:_R,fetchClientDevConfigSuccess:CR,initClientEnvSuccess:ER,initClientEnvFailed:PR,startInitJSDevEnv:kR,initJSDevEnvSuccess:TR,uploadBtn:OR,uploadStart:xR,uploadProcess:IR,uploadSuccess:DR,uploadError:RR,setupDevEnv:NR,gameResourceCompiling:jR,gameResourceCompilingTitle:LR,gameResourceChange:AR,gameResourceUpdated:MR,devEnvSetupError:$R,getDevEnvStart:FR,getDevEnvSuccess:zR,setDevEnvFailed:BR,getDevScriptsStart:qR,setDevScriptsSuccess:GR,devEnvSetupSuccess:UR,uploadGameStart:WR,uploadGameSuccess:HR,uploadGameFailed:VR,reUploadGame:KR,relaunchGame:QR,closeGame:XR,loading:YR,nodeServerConnectedFailed:ZR,nodeServerStartConnect:JR,nodeServerConnectedSuccess:eN,nodeServerStartError:tN,nodeServerDisconnect:nN,clientConnectedSuccess:rN,clientServerStartError:iN,clientServerDisconnected:oN,networkNoLanIPTitle:sN,networkNoLanIPDesc:aN,networkNoLanIPAction:lN,startDebugFailed:cN,getDevScriptsFailed:uN,uploadToClient:dN,notUpload:pN,uploadToPlatform:fN,"uploadGame.pageTitle":"Upload game","uploadGame.pageDesc":"Uploading is the primary task here. Precheck acts as a safety net and is only emphasized when something needs attention.","uploadGame.checkTitle":"Code precheck","uploadGame.recheck":"Re-check","uploadGame.uploadTitle":"Upload game package","uploadGame.checkWarn":"Some precheck items failed. Fix them before uploading to avoid review rejection.","uploadGame.detailTitle":"Precheck details","uploadGame.detailDesc":"Expand only when you need the full breakdown for config, API, size, or performance issues.","uploadGame.showDetails":"View precheck details","uploadGame.hideDetails":"Hide precheck details","uploadGame.loginNoticeTitle":"Complete developer login first","uploadGame.readyTitle":"Precheck passed, ready to upload","uploadGame.readyDesc":"No blocking issue is detected right now. Add a version note and submit directly to the platform.","uploadGame.issueTitle":"Precheck found issues to fix","uploadGame.issueDesc":"Start with this compact issue summary, then expand the detailed report only when needed.","uploadGame.checkFetchFailed":"Failed to fetch precheck results. Re-run the check before deciding whether to upload.","uploadGame.issueCountSuffix":" issues","uploadGame.groupPassSuffix":" checks passed","uploadGame.status.loginReady":"Developer account logged in","uploadGame.status.loginRequired":"Login required for upload","uploadGame.status.checking":"Precheck running","uploadGame.status.checkFailed":"Precheck fetch failed","uploadGame.status.hasIssues":"Precheck has issues","uploadGame.status.ready":"Precheck passed","uploadGame.group.performance":"Performance","uploadGame.group.size":"Package size","uploadGame.group.api":"API","uploadGame.group.config":"Config","uploadGame.unknownIssue":"Issue needs review","uploadGame.uploadDescHint":"Add a short note for this version so uploads are easier to distinguish on the platform.","uploadGame.progress.title":"Uploading and waiting for platform processing","uploadGame.progress.desc":"The package has been submitted. The platform is validating and deploying it now.","uploadGame.progress.assetTitle":"Checking platform asset status","uploadGame.progress.assetDesc":"Upload succeeded. Polling the platform asset status now. Current status: {{status}}","uploadGame.progress.previewTitle":"Fetching the platform preview QR code","uploadGame.progress.previewDesc":"Upload succeeded. Polling the platform for the preview QR code now.","uploadGame.progress.statusPending":"processing","uploadGame.progress.badgeUploading":"Uploading","uploadGame.progress.badgeChecking":"Validating","uploadGame.progress.badgePreview":"Preparing preview QR","uploadGame.progress.step1":"Pack and upload the code package","uploadGame.progress.step2":"Wait until the platform asset becomes ready","uploadGame.progress.step3":"Fetch the platform preview QR code","uploadGame.success.title":"Upload completed","uploadGame.success.readyTitle":"Platform preview is ready","uploadGame.success.desc":"The API returned success. Scan the QR code or open the platform page to continue reviewing this uploaded version.","uploadGame.success.pendingDesc":"Upload succeeded, but the preview QR code is not available yet. You can open the platform page first or upload again later.","uploadGame.success.qrHint":"Scan to open the platform result page","uploadGame.success.noQr":"No QR code is available yet","uploadGame.success.uploadAnother":"Upload another version","uploadGame.failure.title":"Platform preview is not ready yet","uploadGame.failure.retry":"Upload again","uploadGame.failure.missingAssetId":"The upload response did not include asset_id, so platform validation cannot continue.","uploadGame.failure.assetTimeout":"The target asset did not enter ready status within the expected time. Please check the platform later.","uploadGame.failure.assetStatus":"The target asset status is {status}. It has not entered ready yet, so no preview QR code will be shown.","uploadGame.failure.previewTimeout":"The asset became ready, but no preview QR code was returned within the expected time. Please try again later.","uploadGame.record.title":"Preview version history","uploadGame.record.desc":"Review recently uploaded preview versions here and keep scanning from the same module.","uploadGame.record.refresh":"Refresh","uploadGame.record.loading":"Loading version history...","uploadGame.record.empty":"No preview version records are available yet.","uploadGame.record.latest":"Latest upload","uploadGame.record.selectPlaceholder":"Select a version to view its details","uploadGame.record.noDesc":"No version note was provided","uploadGame.record.detailTitle":"Version {{version}}","uploadGame.record.detailDesc":"Keep the QR code and key metadata for the selected version on the right side.","uploadGame.record.previewHint":"Scan to preview this version","uploadGame.record.previewLoading":"Fetching the preview QR code for this version...","uploadGame.record.previewUnavailable":"No preview QR code is available for this version yet","uploadGame.record.pendingDesc":"This version is still being processed by the platform. Refresh the history and check again later.","uploadGame.record.failedDesc":"This version is currently in an abnormal state. Check the platform for the final result.","uploadGame.record.metaUploadedAt":"Uploaded at","uploadGame.record.metaAssetId":"Asset ID","uploadGame.record.metaSource":"Source group","uploadGame.record.metaSize":"Package size","uploadGame.record.metaUnknown":"-","uploadGame.record.loadFailed":"Failed to load version history. Please try again later.","uploadGame.record.state.ready":"Preview ready","uploadGame.record.state.pending":"Processing","uploadGame.record.state.failed":"Issue","uploadGame.record.source.preview":"Preview","uploadGame.record.source.review":"In review","uploadGame.record.source.live":"Live","uploadGame.record.source.other":"Other",scanning:hN,scanQRCodeChange:gN,scanQRCodeDesc:mN,notLogin:vN,launchModeName:yN,selectLaunchPkg:bN,selectIndependentPkg:SN,selectScene:wN,launchQueries:_N,launchQueriesDesc:CN,scene_scan_qrcode:EN,scene_search:PN,scene_fyf_promotion_direct_feed_play:kN,scene_fyf_card:TN,scene_anchor:ON,scene_center:xN,scene_ad:IN,scene_shortcut:DN,scene_sharing:RN,scene_link:NN,gameMainPackage:jN,independentPackage:LN,customizeLaunchMode:AN,deleteLaunchModeConfirm:MN,save:$N,delete:"Delete",devOptions:FN,devOptionsDomainCheckDesc:zN,debugSettingAdMock:BN,debugSettingAdMockDesc:qN,debugSettingIAPMock:GN,debugSettingIAPMockDesc:UN,selectLaunchMode:WN,createNewMode:HN,selectDebugMode:VN,browserDebugMode:KN,clientPreviewMode:QN,clientDebugMode:XN,queriesStringMustBeString:YN,queriesStringNoQuestionMark:ZN,queriesStringEmptyPair:JN,queriesStringEmptyKey:e4,queriesStringDuplicateKey:t4,queriesStringInvalidKeyChars:n4,queriesStringInvalidValueChars:r4,queriesStringInvalidEncoding:i4,queriesStringMissingEqual:o4,notEmpty:s4,saveAndUse:a4,use:l4,sendLocalDebugSetting:c4,getDevGameConfigSuccess:u4,getDevGameConfigFailed:d4,startLoadDevScripts:p4,loadDevScriptsSuccess:f4,loadDevScriptsFailed:h4,loadDevScriptsEmpty:g4,loadDevScriptsInitSuccess:m4,gameResourceCompileSuccess:v4,gameResourceCompileSuccessTitle:y4,scanQRCode2Debug:b4,projectInfo:S4,launchMode:w4,codePreCheck:_4,normalLaunchMode:C4,createdLaunchMode:E4,projectInfoDesc:P4,projectInfoDescTip:k4,"projectInfo.section.basic":"Basic info","projectInfo.section.package":"Package status","projectInfo.section.platform":"Platform setup","projectInfo.error.guideTitle":"Complete the following steps to view game config","projectInfo.error.stepTitle":"How to restore access","projectInfo.error.helpTitle":"Additional guidance","projectInfo.error.login.title":"Platform config is not available yet","projectInfo.error.login.desc":"The local project is running, but there is no valid developer session in the current debug context yet. Finish login first, then return here to view game config.","projectInfo.error.login.stepLogin":"Run `ttmg login` in the terminal and sign in with your developer platform account.","projectInfo.error.login.stepRestart":"After login succeeds, run `ttmg dev` again so the current debug session picks up the latest login state.","projectInfo.error.login.stepProxy":"If login fails in a mainland China network environment, check your proxy or network setup before retrying.","projectInfo.error.permission.title":"This account cannot access this module yet","projectInfo.error.permission.desc":"The local project is available, but the current developer account does not have development access to this game, so platform-side config cannot be loaded.","projectInfo.error.permission.stepCheckAccount":"First confirm the account used in `ttmg login` is the intended developer account for this game.","projectInfo.error.permission.stepApply":"If the account lacks access, apply for development permission for this game on the developer platform.","projectInfo.error.permission.stepRestart":"After permission is granted, run `ttmg dev` again to start a fresh debug session.","projectInfo.error.general.title":"Game config is temporarily unavailable","projectInfo.error.general.desc":"This usually means platform data is temporarily unavailable, project metadata is invalid, or the current debug context is not ready yet.","projectInfo.error.general.stepCheck":"Check whether the current Client key, logged-in account, and debug command all match the intended project.","projectInfo.error.general.stepRetry":"After correcting the issue, run `ttmg dev` again and come back to this page.","projectInfo.error.commandLogin":"Login command","projectInfo.error.commandRestart":"Restart debug command","projectInfo.error.commandProxy":"Proxy command example","projectInfo.error.commandProxyHint":"The address and port above are examples only. Replace them with the actual proxy endpoint exposed by your local proxy tool.","projectInfo.error.helpLoginDesc":"For developers in China, login failures are often caused by proxy settings, enterprise network policies, or terminal environment issues rather than the account itself. In those cases, the network and proxy troubleshooting guide is usually more effective than repeatedly retrying login.","projectInfo.error.helpPermissionDesc":"If login itself works but this page still cannot load game config, the issue is more likely to be account permission than the local project. Check account ownership and the game's authorization on the developer platform first.","projectInfo.error.helpGeneralDesc":"If the steps above all look correct and the module is still unavailable, restart local debugging from the terminal and then continue checking whether the project metadata is configured correctly.","projectInfo.error.openProxyDoc":"Open network/proxy login guide","basicDebugGuide.bannerTitle":"No developer login session is detected right now","basicDebugGuide.bannerDesc":"This does not block the most basic scan-debug flow. If CLI login is temporarily unavailable because of network issues, you can still continue local debugging, switch launch modes, and troubleshoot connectivity.","basicDebugGuide.title":"Basic scan debugging still works without login","basicDebugGuide.desc":"Treat this as a limited mode: platform-dependent capabilities are restricted, but local scan debugging, launch mode switching, and connection troubleshooting still work. Continue with core local debugging first, then restore CLI login when you need platform-side capabilities.","basicDebugGuide.actionScan":"Go to scan debugging","basicDebugGuide.actionNetwork":"Open network diagnostics","basicDebugGuide.actionProxy":"Open network/proxy login guide","basicDebugGuide.availableTitle":"Still available now","basicDebugGuide.availableDesc":"The capabilities below depend on the local debug service and schema, so they do not require a valid developer-platform login session first.","basicDebugGuide.available.scan.title":"Scan debugging","basicDebugGuide.available.scan.desc":"Keep using the current QR code on your device to verify whether the core local debug flow still works.","basicDebugGuide.available.launch.title":"Launch mode","basicDebugGuide.available.launch.desc":"You can still switch scene, launch package, and queries to simulate different entries and runtime parameters.","basicDebugGuide.available.preview.title":"Browser preview / client preview","basicDebugGuide.available.preview.desc":"Continue switching between browser and client debug modes to validate package logic and runtime behavior.","basicDebugGuide.available.network.title":"Network diagnostics","basicDebugGuide.available.network.desc":"When scan has no response, LAN access fails, or proxy environments are complex, you can still diagnose connectivity inside the project.","basicDebugGuide.available.manual.title":"Manual connection","basicDebugGuide.available.manual.desc":"If QR scan is unavailable, you can still try binding the client debug service address manually and continue debugging.","basicDebugGuide.lockedTitle":"Fully available only after login","basicDebugGuide.lockedDesc":"These capabilities actively request developer-platform resources, so they stay restricted without a CLI login session.","basicDebugGuide.locked.project.title":"Game config","basicDebugGuide.locked.project.desc":"Platform-side basic info, Terms, Privacy, and trusted domain config cannot be fetched reliably.","basicDebugGuide.locked.upload.title":"Version upload","basicDebugGuide.locked.upload.desc":"You cannot upload a new version, load preview version records, or generate platform preview QR codes.","basicDebugGuide.locked.platform.title":"Platform-dependent capability validation","basicDebugGuide.locked.platform.desc":"Capabilities such as login, authorize, payment, or direct-play preview depend on platform-side resources and will be incomplete or fail.","basicDebugGuide.stepsTitle":"Recommended flow","basicDebugGuide.stepsDesc":"If your current goal is simply to keep local scan debugging moving, follow this order first. Restore CLI login later when you need platform-side capabilities.","basicDebugGuide.step1":"Keep using scan debugging, launch mode, and client preview first so the local package flow is unblocked.","basicDebugGuide.step2":"If scan itself fails, use network diagnostics or manual connection first instead of treating every issue as a login problem.","basicDebugGuide.step3":"When platform-dependent capabilities are needed, troubleshoot network/proxy first; if necessary, configure a proxy before retrying login.","basicDebugGuide.step4":"After login succeeds, run `ttmg dev` again and return to the project to unlock game config, version upload, and platform-side capability validation.","basicDebugGuide.commandProxy":"Proxy command example","basicDebugGuide.commandProxyHint":"The address and port above are examples only. Replace them with the actual proxy endpoint exposed by your local proxy tool.","basicDebugGuide.commandLogin":"Login command","basicDebugGuide.commandDev":"Restart debug command","basicDebugGuide.entryTitle":"Basic scan debugging still works even if CLI login fails","basicDebugGuide.entryDesc":"Check what is still available and what stays restricted, then decide whether to keep debugging now or fix proxy/login first.","basicDebugGuide.entryAction":"See what you can still debug",notExceedSizeLimit:T4,notExceedMainPkgSizeLimit:O4,notExceedIndependentPkgSizeLimit:x4,exceedSizeLimit:I4,exceedMainPkgSizeLimit:D4,exceedIndependentPkgSizeLimit:R4,launchModeDesc:N4,configFileCheck:j4,gameJsonCheckDesc:L4,pkgSizeCheckDesc:A4,mandatoryApiCheck:M4,mandatoryApiCheckDesc:$4,commonPkgSizeCheckDescTip:F4,unityPkgSizeCheckDescTip:z4,checkConfigPassed:B4,checkPkgSizePassed:q4,checkPkgSizeFailed:G4,checkConfigFailed:U4,performanceCheck:W4,checkPerformancePassed:H4,checkPerformanceFailed:V4,viewDoc:K4,expandCheckDetail:Q4,closeCheckDetail:X4,gameProject:Y4,gameMainPackageSize:Z4,gameIndependentPackageSize:J4,gameTrustDomains:ej,gameTermsAndPrivacy:tj,gameServiceAgreement:nj,gamePrivacyPolicy:rj,termsLabel:ij,privacyLabel:oj,gameSize:sj,gameName:aj,gameIcon:lj,gameID:cj,gameDesc:uj,getDevGameDetailNotFound:dj,getDevGameDetailFailed:pj,getDevGameDetailNotLogin:fj,notLoginTip:hj,docs:gj,quickStart:mj,jsApiList:vj,errorReference:yj,faq:bj,upload:Sj,cancel:wj,gameAssetDescription:_j,uploadPlatformSuccess:Cj,uploadPlatformFailed:Ej,uploadPlatformDesc:Pj,viewOnPlatform:kj,loginToUpload:Tj,uploadGamePackageTip:Oj,trustDomainEmptyTip:xj,scriptsSetupFailed:Ij,resourcesSetupFailed:Dj,policyDependencyTermsRequired:Rj,policyDependencyPrivacyRequired:Nj,policyDependencyTermsPrivacyRequired:jj,termsOfServiceEmptyTip:Lj,privacyPolicyEmptyTip:Aj,gameNameEmptyTip:Mj,gameIconEmptyTip:$j,gameDescEmptyTip:Fj,gameDetailNoPermission:zj,startConnectClientWS:Bj,clientConnectTimeout:qj,gameDetailNotLogin:Gj,gameLoginExpired:Uj,login:Wj,createRewardedVideoAd:Hj,addShortcut:Vj,startEntranceMission:Kj,getShortcutMissionReward:Qj,getEntranceMissionReward:Xj,integrated:Yj,notIntegrated:Zj,checkApiSuccess:Jj,checkApiFailed:eL,debugEnvSetupSuccess:tL,clientPreviewEnvSetupSuccess:nL,startToSendMetaToClient:rL,sendMetaToClientSuccess:iL,browserRemoteDebugDesc:oL,clientRealPreviewDesc:sL,"debug.scan.tips":"Before scanning with TikTok for debugging, you can choose from the following two default launch modes:","debug.mode.browser.title":"Browser Remote Debugging Mode","debug.mode.browser.point.logic":"Game logic runs in the browser","debug.mode.browser.point.devtools":"View logs and set breakpoints in the browser devtools","debug.mode.browser.point.preview":"Preview the game visuals in sync on the client","debug.mode.client.title":"Client On-Device Preview Mode","debug.mode.client.supportVersion":"TikTok iOS >=42.7,TikTok Android >=42.5","debug.mode.client.point.logic":"Game logic runs on the client (real device)","debug.mode.client.point.vconsole":"View runtime logs via vConsole","debug.mode.client.point.preview":"Accurately reproduce and preview game effects on the real device","debug.mode.custom.tip":"For more flexible configurations, you can create a custom launch mode to meet specific debugging and preview needs.","debug.guide.header":"Debug Mode Guide","debug.guide.manualBindIP":"Manually bind the local IP address of the computer","debug.guide.manualBindIPInvalid":"Invalid IP address, please enter a valid IP address",invalidPort:aL,scanQrcodeNoResponse:lL,confirm:cL,manualBindIPPlaceholder:uL,"debug.guide.manualBindIPDesc1":"Please confirm that the mobile phone and computer are in the same local area network. If not, please connect to the same local area network first.","debug.guide.manualBindIPDesc2":"Manually enter the debugging service address and port provided by the client loading page to connect.","debug.guide.manualBindIPDesc3":"Only Android 42.9 and above versions are supported, and iOS does not support it for the time being.",startUpload:dL,manualBindClientDebugServiceTitle:pL,gotoCheck:fL,checkNetworkTitle:hL,manualBindIPInfo1:gL,manualBindIPInfo2:mL,back:vL,manualConnectStart:yL,connectivityCheck:bL,connectivityCheckTitle:SL,connectivityCheckWS:wL,connectivityCheckHTTP:_L,connectivityOK:CL,connectivityNotOK:EL,connectivityTimeout:PL,connectivityFailed:kL,connectivityMissingParams:TL,needDesc:OL,debugSettingDomainCheck:xL,debugSettingVConsole:IL,debugSettingDevInfoPanel:DL,debugSettingEnableVconsoleDesc:RL,debugSettingEnableDevInfoPanelDesc:NL,topErrorSummary:jL,topErrorTagRequired:LL,topErrorTagSuggested:AL,topBasicInfoMissing:ML,topBasicInfoNameField:$L,topBasicInfoIconField:FL,topBasicInfoDescriptionField:zL,topBasicInfoFieldJoiner:BL,topLoginStatusWarning:qL,topErrorSuggestedActionTip:GL,topErrorViewDetails:UL,topErrorHideDetails:WL,changelogFeature:HL,changelogOptimize:VL,changelogBugfix:KL,changelogLink:QL,changelog:XL,changelogTarget:YL,wasmSplit:ZL,splitPrepare:JL,splitCollect:eA,splitCode:tA,rollback:nA,startingPrepare:rA,cancelPrepare:iA,backgroundRun:oA,preparingSplit:sA,warningDuringPreparing:aA,preparingSplitSuccess:lA,preparingSplitFailed:cA,retryPrepare:uA,downloadPreparedWasmCode:dA,downloadFailed:pA,retryDownload:fA,downloadSuccess:hA,downloadPreparedWasmCodeDesc:gA,splitDesc:mA,inputSplitDesc:vA,startPrepare:yA,processing:bA,updateWasmSplitConfig:SA,updateWasmSplitConfigSuccess:wA,updateWasmSplitConfigFailed:_A,compressPreparedWasmCodeSuccess:CA,compressPreparedWasmCodeFailed:EA,writeCompressPreparedWasmCode:PA,writeCompressPreparedWasmCodeSuccess:kA,writeCompressPreparedWasmCodeFailed:TA,fetchDownloadUrl:OA,fetchDownloadUrlSuccess:xA,fetchDownloadUrlFailed:IA,downloadPreparedWasmCodeSuccess:DA,downloadPreparedWasmCodeFailed:RA,startSplit:NA,cannotSplitTip:jA,collectDesc:LA,startCollect:AA,wasmSize:MA,collectedFuncCount:$A,totalFuncCount:FA,splitVersion:zA,splittingDesc:BA,cancelSplit:qA,getSplitResult:GA,retryGetSplitResult:UA,getSplitResultFailed:WA,splitSuccess:HA,downloadSplitResult:VA,downloadSplitResultFailed:KA,retryDownloadSplitResult:QA,downloadSplitResultSuccess:XA,downloadSplitResultTip:YA,start_download_android_main_wasm:ZA,download_android_main_wasm_done:JA,start_compress_android_main_wasm:eM,compress_android_main_wasm_done:tM,start_download_android_sub_wasm_code:nM,download_android_sub_wasm_code_done:rM,start_compress_android_sub_wasm_code:iM,compress_android_sub_wasm_code_done:oM,start_download_ios_main_wasm:sM,download_ios_main_wasm_done:aM,start_compress_ios_main_wasm:lM,compress_ios_main_wasm_done:cM,start_download_ios_sub_wasm_code:uM,download_ios_sub_wasm_code_done:dM,start_compress_ios_sub_wasm_code:pM,compress_ios_sub_wasm_code_done:fM,start_write_splited_wasm_br:hM,write_splited_wasm_done:gM,start_update_wasm_split_config:mM,update_wasm_split_config_done:vM,noWasmCode:yM,noWasmCodeDesc:bM,hasSplitedTitle:SM,hasSplitedDesc:wM,noSplitConfigTitle:_M,noSplitConfigDesc:CM,advancedGuide:EM,integrationAssistant:PM,"ia.title":"Integration Assistant","ia.subtitle":"Collect key platform capabilities, prerequisites, and recommended debugging paths in one place so developers can move from reading docs to hands-on verification faster.","ia.banner.login":"Start with `ttmg login` in the terminal before debugging these capabilities. Many platform-dependent flows cannot be verified completely without a valid developer session.","ia.banner.termsPrivacy":"Configure Terms & Privacy first. Login and authorization flows depend directly on these platform settings.","ia.banner.ready":"The current baseline is ready for debugging. Read the capability guidance first, then jump to the relevant page to configure and verify it.","ia.menuTitle":"Capabilities","ia.sceneLabel":"Recommended entry scene: ","ia.section.prerequisites":"Pre-checks","ia.section.steps":"Recommended debugging path","ia.section.tips":"Development focus","ia.action.goHome":"Open Home","ia.action.goProjectDetail":"Open Project detail","ia.action.goLaunchMode":"Open Launch mode","ia.action.goPrecheck":"Open Code pre-check","ia.action.openCapabilityDoc":"Detailed guide","ia.status.ready":"Ready","ia.status.notReady":"Needs setup","ia.status.login.title":"Developer login","ia.status.login.ready":"A developer account is already loaded, so platform-dependent capability checks can continue.","ia.status.login.notReady":"No active login is detected. Upload, project detail fetches, and some platform task flows may stop here first.","ia.status.terms.title":"Terms URL","ia.status.terms.ready":"Terms URL is configured, so login / authorize checks can continue.","ia.status.terms.notReady":"Terms URL is missing. Login / authorize flows are likely to fail until it is configured.","ia.status.privacy.title":"Privacy URL","ia.status.privacy.ready":"Privacy URL is configured, so the privacy-related prerequisite is in place.","ia.status.privacy.notReady":"Privacy URL is missing. Authorization and compliance-related checks should wait until it is configured.","ia.menu.login":"Login","ia.menu.authorize":"Authorize","ia.menu.payment":"Payment","ia.menu.ad":"Ads","ia.menu.uiAdaptation":"UI adaptation","ia.menu.shareMessage":"In-app message share","ia.menu.shareStory":"Share to Story","ia.menu.subpackage":"Subpackage and preload","ia.menu.network":"Network and realtime","ia.menu.sidebarRevisit":"Sidebar revisit","ia.menu.shortcutRevisit":"Shortcut revisit","ia.menu.directPlayCard":"Direct play card","ia.login.summary":"Login is the mini game identity capability. It gets an `auth_code` on the client, then your backend exchanges that code for `open_id` / session state.","ia.login.prerequisite1":"Make sure the active `client_key` matches the terminal debug configuration and is injected correctly into the `tt.login` call path at runtime.","ia.login.prerequisite2":"Your backend should already expose the code-exchange API for `auth_code` -> `open_id` / session, with clear retry, error-code, and session-expiration handling.","ia.login.step1":"Call `tt.login` (or your business wrapper) from the business page and confirm the client can return a stable `auth_code`.","ia.login.step2":"Send the `auth_code` to your backend and verify the `open_id` / session exchange, session persistence, and downstream request propagation all work correctly.","ia.login.step3":"Cover user cancel, network failure, expired `auth_code`, and backend exchange failure branches, then confirm the UI fallback and retry strategy are usable.","ia.login.tip1":"Get the main `auth_code -> open_id / session` path stable first, then expand into profile, analytics, or other business flows that depend on login state.","ia.login.tip2":"In the current SDK, `login` defaults to `user.info.open_id`. If you need more user data or extra scopes, request them separately in `authorize`.","ia.authorize.summary":"Authorization asks users for extra scopes such as `user.info.basic` after `login` has already established base identity, then lets your backend use `access_token` to fetch profile data or complete permission checks.","ia.authorize.prerequisite1":"Fill in Terms URL and Privacy URL in Project detail first, and make sure the `login` flow can already exchange for `open_id/access_token` reliably.","ia.authorize.prerequisite2":"Define scopes from real business needs. Do not assume profile fields such as nickname or avatar come directly from the client; they should come from backend OpenAPI calls after consent.","ia.authorize.step1":"Use `tt.login` to get the one-time `auth_code`, then exchange it on your backend for `open_id` / `access_token` so the base identity state is ready.","ia.authorize.step2":"Call `tt.authorize` only in flows that truly need extra profile data or permissions, for example `scope: 'user.info.basic'`, and cover first-consent, reject, and re-entry branches.","ia.authorize.step3":"After the user agrees, let the backend call OpenAPI with `access_token`, then verify the returned scopes, profile fields, and fallback behavior all match the business path.","ia.authorize.tip1":"Do not collapse authorization into login. `login` establishes identity, while `authorize` requests extra scopes, so their failure handling should stay separate.","ia.authorize.tip2":"Do not block the default flow on non-essential permissions. If users reject consent, the base flow should still work and there should be a clear re-trigger entry.","ia.payment.summary":"IAP monetization is the full chain of backend order creation, client-side payment invocation, and backend verification / fulfillment for virtual goods or value-added services, with TikTok Beans as the only supported payment method.","ia.payment.prerequisite1":"Complete business verification and contract signing first, then enable In-App Purchases in Monetization. The payout entity should match the verified business entity.","ia.payment.prerequisite2":"Prepare product config, test accounts, and backend capabilities for order creation, persistence, and verification. For local iteration, enable IAP Mock first to cover the main branches.","ia.payment.step1":"Finish portal enablement, product setup, and payout info, then connect backend order creation, order persistence, and payment-result verification.","ia.payment.step2":"Integrate client payment invocation and callback handling, and use IAP Mock first to cover success, failure, cancel, and repeated-tap branches.","ia.payment.step3":"Then switch to real-device preview or real-device debug and verify real payment, backend verification, fulfillment / crediting, and retry handling as a complete loop.","ia.payment.tip1":"Do not treat the client success callback as the final truth. Fulfillment or crediting should rely on backend verification or the authoritative order state.","ia.payment.tip2":"Mock is useful for iteration speed, but real-device regression is still required before release, especially for weak-network, duplicate-order, cancel, and timeout cases.","ia.ad.summary":"IAA ads cover rewarded video and interstitial formats, and the core chain is enablement, ad-placement creation, ad load/show, and close / reward callback handling without damaging the core experience.","ia.ad.prerequisite1":"Complete business verification and contract signing first, then enable In-App Ads in Monetization. Unreleased apps are usually blocked from creating usable ad placements.","ia.ad.prerequisite2":"For U.S. / EU launch, start Sensitive Data, USDS / TPRM, and related compliance work early, and prepare both IAA Mock and real-device verification paths.","ia.ad.step1":"Confirm IAA is enabled and the app is already released, then go to Ad placements and create the required placement ids.","ia.ad.step2":"In business code, integrate ad instance creation, load, show, and callback handling, and separately verify rewarded-video and interstitial success, failure, and close branches.","ia.ad.step3":"Focus the final regression on reward accuracy, frequency control, and experience boundaries: rewarded video should grant rewards only after full playback, and interstitials need at least a 60-second gap between triggers.","ia.ad.tip1":"Make reward delivery idempotent so repeated callbacks, page switches, or re-entry do not cause duplicate rewards.","ia.ad.tip2":"Do not force ads into initialization, tutorial, or other high-frequency paths. If platform compliance or release gating is still blocked, fix that first.","ia.uiAdaptation.summary":"UI adaptation focuses on screen-size, capsule-button, and safe-area handling so key UI stays visible, tappable, and correctly aligned across devices.","ia.uiAdaptation.prerequisite1":"List the key pages that depend on top bars, floating actions, fixed bottom areas, or full-screen visuals instead of patching only one page.","ia.uiAdaptation.prerequisite2":"Prepare real-device or multi-size preview coverage, especially across different aspect ratios, top safe areas, and bottom gesture areas.","ia.uiAdaptation.step1":"First centralize window-size, safe-area, and capsule-button metrics into a layout baseline instead of hardcoding them separately in each page.","ia.uiAdaptation.step2":"Adapt top title areas, top-right actions, bottom fixed controls, and modal content so they do not overlap with the capsule button or system safe areas.","ia.uiAdaptation.step3":"Run real-device regression on key pages and check aspect-ratio changes, scroll containers, full-screen backgrounds, and tap targets across devices.","ia.uiAdaptation.tip1":"Do not look only at visual alignment. Tap areas, modal close affordances, and bottom reachability are part of UI adaptation too.","ia.uiAdaptation.tip2":"Do not hardcode the capsule-button position with fixed pixels; base layout on platform metrics and safe-area data.","ia.shareMessage.summary":"`shareAppMessage` is TikTok in-app message sharing. The card title, description, and cover come from the game basic info configured in the developer portal, while the business-side design focus is how `query` carries the exact in-game share scenario.","ia.shareMessage.prerequisite1":"Confirm client-version support first and probe availability with `TTMinis.game.canIUse('shareAppMessage')` instead of assuming the capability exists on every runtime.","ia.shareMessage.prerequisite2":"Make sure the game basic info is correctly configured in the developer portal first, because the in-app message card title, description, and cover are sourced from that portal config. Then focus the business logic on `query` and landing behavior.","ia.shareMessage.step1":"Integrate `TTMinis.game.shareAppMessage` in pages that fit acquisition, recall, or campaign sharing, and verify that the `query` value accurately represents the current business scenario.","ia.shareMessage.step2":"Focus on success, cancel, failure, and repeated-tap branches so the in-app message share action, callbacks, and user feedback all stay stable.","ia.shareMessage.step3":"On device, verify the message-card presentation and post-share return path so recipients land on the right page and the query-driven state is restored correctly.","ia.shareMessage.tip1":"This is better described as an in-app message card share capability, but the card title, description, and cover are not dynamically customized by business code at share time. What you really control is `query` and the landing flow.","ia.shareMessage.tip2":"If many share entries exist, centralize `query` generation and parsing. Maintain the game basic info separately in the developer portal instead of assuming share-time overrides are supported.","ia.shareStory.summary":"`shareToStory` focuses on Story sharing. The visible presentation depends more on the Story asset itself, while the business-side design focus is still the `query` value and the post-share landing flow.","ia.shareStory.prerequisite1":"Identify which campaign, gameplay, or result pages are actually suitable for Story sharing instead of forcing a Story entry into every flow.","ia.shareStory.prerequisite2":"Prepare Story-appropriate assets first, then design the `query` value and landing behavior together. Do not optimize only for visual materials while leaving the in-game return logic ambiguous.","ia.shareStory.step1":"Integrate `shareToStory` on pages that are appropriate for visual propagation and verify that both the selected asset and the `query` value represent the active business scenario correctly.","ia.shareStory.step2":"Cover trigger, cancel, failure, and multiple-asset branches so the Story-sharing presentation and user feedback both behave as expected.","ia.shareStory.step3":"On device, verify the return path after Story sharing and confirm that the target page, campaign state, and params are restored correctly.","ia.shareStory.tip1":"Story sharing should not be treated as a simple copy of message sharing. Asset expression is one part, but `query` and the post-share landing flow still need deliberate business-side design.","ia.shareStory.tip2":"If Story depends on strong visual materials, do focused real-device checks on both asset presentation and whether the `query`-driven return path restores the right page state.","ia.subpackage.summary":"Subpackage and preload focuses on first-package size, split boundaries, and resource loading timing so later content can arrive smoothly without hurting first-screen speed.","ia.subpackage.prerequisite1":"Identify what is truly required on the first screen versus what belongs to later gameplay or optional resources.","ia.subpackage.prerequisite2":"Prepare consistent loading fallback, retry, and loading-state UX instead of scattering split-package logic inside business pages.","ia.subpackage.step1":"Define split boundaries and package names first, and move non-first-screen but high-cost resources out of the main package carefully.","ia.subpackage.step2":"Use `preDownloadSubpackage` or `loadSubpackage` at the right moments and verify progress, success, and failure are all observable.","ia.subpackage.step3":"Run device and weak-network regression on first-screen enter, later jumps, and split-package failure recovery so users do not get stuck mid-load.","ia.subpackage.tip1":"Preload does not mean ready-to-use. Validate the actual business transition when the split package is truly needed.","ia.subpackage.tip2":"Do not over-split just to chase a smaller main package. Timing, fallback, and dependency correctness matter more than raw split count.","ia.network.summary":"Network and realtime covers `request`, `downloadFile`, `connectSocket`, and network-status observation, with the focus on usable weak-network, disconnect, and recovery behavior.","ia.network.prerequisite1":"Unify request, download, and realtime paths before debugging so timeout, retry, and error visibility are not implemented differently in each page.","ia.network.prerequisite2":"Prepare different fallback and user feedback for HTTP, downloads, and long connections instead of treating them as the same failure type.","ia.network.step1":"Wrap request, download, and Socket calls behind a shared layer so timeout, cancel, retry, and logs are handled consistently.","ia.network.step2":"Use `getNetworkType`, network-change listeners, and weak-network listeners to verify that pages react to network changes instead of failing silently.","ia.network.step3":"On device, focus regression on weak-network, reconnect, interrupted downloads, and Socket recovery so state restoration is actually complete.","ia.network.tip1":"Do not test only ideal network. Most real issues come from timeout, half-downloaded assets, broken connections, and repeated reconnect attempts.","ia.network.tip2":"Realtime flows should explicitly cover close, background/foreground transition, and resubscribe logic after recovery.","ia.sidebar.summary":"Sidebar revisit is a P0 retention capability where users return from the TikTok Profile sidebar and then claim a revisit reward.","ia.sidebar.prerequisite1":"Confirm the account region is within the supported rollout and check capability support with `canIUse` in business code first.","ia.sidebar.prerequisite2":"Use a dedicated sidebar-revisit scene in Launch mode instead of keeping the default QR path.","ia.sidebar.step1":"Go to Launch mode, select the `Sidebar revisit` scene, and save it as a dedicated debug mode.","ia.sidebar.step2":"For local debugging, run `ttmg dev`, switch Launch mode to `scene_center`, then scan to enter. That session is already simulating an open from the sidebar entry.","ia.sidebar.step3":"Call `getEntranceMissionReward` directly to verify `canReceiveReward` and your reward-delivery logic. Keep `startEntranceMission` for real user-flow regression instead of treating it as a required Launch mode step.","ia.sidebar.tip1":"This capability strongly depends on scene and region conditions, so do not describe or validate it only through the default QR path.","ia.sidebar.tip2":"If the task cannot continue, check scene, account region, client capability, and task state before suspecting reward logic.","ia.shortcut.summary":"Desktop Shortcut (shortcut revisit) is a P0 retention capability: users add the mini game to the home screen and later re-enter from the shortcut to claim revisit rewards.","ia.shortcut.prerequisite1":"Compatibility: probe support via `TTMinis.game.canIUse('addShortcut')`. Validate on TikTok 41.0.0+ (iOS requires 41.40+).","ia.shortcut.prerequisite2":"Reward verification: in the real user flow, `TTMinis.game.getShortcutMissionReward()` returns `canReceiveReward=true` only when the session is launched from the home-screen shortcut. Under `scene_shortcut` Launch mode, the session itself already simulates that entry.","ia.shortcut.step1":"Add a clear entry point in your UI: check `canIUse('addShortcut')`, then call `TTMinis.game.addShortcut()`, and log `errorCode/errorMsg` on failures for debugging.","ia.shortcut.step2":"For local debugging: run `ttmg dev` → in Launch mode select the `Desktop Shortcut` scene (`scene_shortcut`) → scan to enter. That session is already simulating an open from the desktop shortcut entry.","ia.shortcut.step3":"Call `TTMinis.game.getShortcutMissionReward()` directly and check `canReceiveReward`. If true, continue into your reward/claim flow. Keep `addShortcut` and the real home-screen reopen for real user-flow regression.","ia.shortcut.tip1":"Treat `canReceiveReward` as an entry-source signal: add-shortcut success does not mean the current session is eligible for claiming the revisit reward.","ia.shortcut.tip2":"Show guidance early (first screen / right after tutorial) and make the first-add value obvious. Review will focus on end-to-end flow completeness and one-time/daily reward constraints.","ia.revisit.panel.modeName":"Launch mode","ia.revisit.panel.scene":"Scene","ia.revisit.panel.launchParams":"Launch params","ia.revisit.panel.package":"Package","ia.revisit.panel.signal":"Reward check","ia.revisit.sidebar.panel.title":"Quickly create a sidebar-revisit debug mode","ia.revisit.sidebar.panel.desc":"This creates a dedicated `Sidebar revisit` launch mode for you. Once selected, scanning in already simulates a session opened from the sidebar entry, so you can directly debug `getEntranceMissionReward` and reward delivery without an extra jump step.","ia.revisit.sidebar.panel.modeValue":"Simulate launch under the sidebar-revisit scene","ia.revisit.sidebar.panel.generatedModeName":"Sidebar revisit debug mode","ia.revisit.sidebar.panel.signalValue":"`startEntranceMission` / `getEntranceMissionReward`","ia.revisit.sidebar.panel.createQr":"Create sidebar-revisit debug QR","ia.revisit.shortcut.panel.title":"Quickly create a shortcut-revisit debug mode","ia.revisit.shortcut.panel.desc":"This creates a dedicated `Desktop Shortcut` launch mode for you. Once selected, scanning in already simulates a session opened from the desktop shortcut entry, so you can directly debug `getShortcutMissionReward` / `canReceiveReward` and reward delivery without adding the shortcut first.","ia.revisit.shortcut.panel.modeValue":"Simulate launch under the desktop-shortcut scene","ia.revisit.shortcut.panel.generatedModeName":"Shortcut revisit debug mode","ia.revisit.shortcut.panel.signalValue":"`addShortcut` / `getShortcutMissionReward` / `canReceiveReward`","ia.revisit.shortcut.panel.createQr":"Create shortcut-revisit debug QR","ia.directPlay.summary":"Direct-play debugging is best split into two phases: stage 1 only verifies the mini game package itself under the direct-play scene, and stage 2 uses a preview QR code to validate the card presentation and handoff path.","ia.directPlay.prerequisite1":"Stage 1 only focuses on the mini game package runtime. TT Feed presentation, forced insertion, and the `Play now` handoff are out of scope there.","ia.directPlay.prerequisite2":"Before moving into stage 2, make sure package launch, first-screen loading, and the core in-game path are already stable under the direct-play scene.","ia.directPlay.step1":"Open Launch mode, choose the direct-play scene, and save a dedicated mode for package debugging.","ia.directPlay.step2":"Return to Home and scan to launch. Verify that the package can enter reliably and complete the basic in-game flow under that scene.","ia.directPlay.step3":"Only after the package itself is stable should you come back here and use the preview QR code to validate the direct-play card presentation and handoff.","ia.directPlay.tip1":"If stage 1 fails, debug it like a normal package/runtime issue first instead of attributing it to Feed presentation or delivery logic too early.","ia.directPlay.tip2":"When stage 2 fails, separate package runtime issues from card configuration, asset, or handoff-path issues.","ia.directPlay.stage1.title":"Stage 1: debug the game package itself","ia.directPlay.stage1.desc":"This stage only debugs the mini game package itself. TT Feed presentation, forced insertion, and the `Play now` handoff are out of scope. Use the direct-play scene to generate a launch QR code and confirm the package can start and run normally.","ia.directPlay.stage1.ready":"Direct-play scene ready","ia.directPlay.stage1.notReady":"Need to apply direct-play scene","ia.directPlay.stage1.modeName":"Launch mode","ia.directPlay.stage1.modeValue":"Simulate launch under the direct-play scene","ia.directPlay.stage1.generatedModeName":"Direct-play package debug mode","ia.directPlay.stage1.scene":"Scene","ia.directPlay.stage1.package":"Package","ia.directPlay.stage1.queries":"Queries","ia.directPlay.stage1.apply":"Apply direct-play scene","ia.directPlay.stage1.openHome":"Open Home with this mode","ia.directPlay.stage1.createQr":"Create package debug QR","ia.directPlay.stage1.appliedTitle":"Direct-play scene applied","ia.directPlay.stage1.appliedDesc":"The current launch mode now uses the direct-play scene. You can continue scanning from Home or fine-tune it in Launch mode.","ia.directPlay.stage2.title":"Stage 2: generate preview QR","ia.directPlay.stage2.desc":"After the game package itself is stable, pick a direct-play card and a preview asset, then generate a platform preview QR code to validate the card presentation and handoff path.","ia.directPlay.stage2.banner":"This stage is only for direct-play-card preview and handoff verification. If the game package itself is still unstable, go back to stage 1 first.","ia.directPlay.stage2.cardSelect":"Select direct-play card","ia.directPlay.stage2.assetSelect":"Select preview asset","ia.directPlay.stage2.selectedCard":"Selected card","ia.directPlay.stage2.selectedAsset":"Selected asset","ia.directPlay.stage2.cardName":"Card name: ","ia.directPlay.stage2.cardDesc":"Card description: ","ia.directPlay.stage2.cardScenario":"Scenario: ","ia.directPlay.stage2.cardPackage":"Launch package: ","ia.directPlay.stage2.cardQueries":"Queries: ","ia.directPlay.stage2.assetGroup":"Asset group: ","ia.directPlay.stage2.assetFile":"File: ","ia.directPlay.stage2.assetVersion":"Version: ","ia.directPlay.stage2.assetSize":"Size: ","ia.directPlay.stage2.assetUploaded":"Uploaded at: ","ia.directPlay.stage2.assetGroup.preview":"Preview asset","ia.directPlay.stage2.assetGroup.live":"Live asset","ia.directPlay.stage2.assetGroup.review":"In review asset","ia.directPlay.stage2.emptyCard":"No direct-play card is available yet.","ia.directPlay.stage2.emptyAsset":"No game asset is available yet.","ia.directPlay.stage2.generate":"Generate preview QR","ia.directPlay.stage2.refresh":"Refresh data","ia.directPlay.stage2.previewUrl":"Preview URL","ia.directPlay.stage2.copy":"Copy URL","ia.directPlay.stage2.open":"Open preview","ia.directPlay.stage2.qrDesc":"Use TikTok to scan this code inside Feed and experience the direct-play-card flow.","ia.directPlay.stage2.copyTitle":"Preview URL copied","ia.directPlay.stage2.copyDesc":"The preview URL has been copied to the clipboard.","ia.directPlay.stage2.selectRequired":"Please select both a direct-play card and a game asset first.","ia.directPlay.stage2.loadCardsFailed":"Failed to load direct-play cards.","ia.directPlay.stage2.loadAssetsFailed":"Failed to load game assets.","ia.directPlay.stage2.loadResourcesFailed":"Failed to load direct-play debugging resources.","ia.directPlay.stage2.previewFailed":"Failed to generate the direct-play preview URL.","ia.overview.eyebrow":"Capability Map","ia.overview.title":"Key capability overview","ia.overview.desc":"Start with a higher-level capability map so developers can see which modules matter, what the baseline dependencies are, and then enter each capability detail page for focused debugging.","ia.overview.baseline.title":"Baseline prerequisites","ia.overview.baseline.desc":"These states affect most capability flows, so it is worth clearing obvious blockers here before diving into a specific module.","ia.overview.stat.capabilities":"Capabilities","ia.overview.stat.groups":"Groups","ia.overview.stat.prerequisites":"Prerequisites","ia.overview.sectionLabel":"Capability group","ia.overview.section.capabilityUnit":"capabilities","ia.overview.section.identity.title":"Identity and authorization","ia.overview.section.identity.desc":"Establish the mini game identity first, then request profile or permission scopes only when needed.","ia.overview.section.monetization.title":"Monetization","ia.overview.section.monetization.desc":"Revenue mainly comes from payment and ads, and both require portal enablement, business-loop validation, and device regression.","ia.overview.section.foundation.title":"Core capabilities","ia.overview.section.foundation.desc":"This group focuses on foundational topics such as UI adaptation, network stability, resource loading, and split-package management after core business capabilities are in place.","ia.overview.section.experience.title":"Experience and adaptation","ia.overview.section.experience.desc":"This group is about cross-device consistency, especially safe areas, capsule-button layout, and the usability of key action regions.","ia.overview.section.share.title":"Sharing and growth","ia.overview.section.share.desc":"This topic stays as sharing and growth, but the guidance is split into two concrete scenarios: `shareAppMessage` and `shareToStory`.","ia.overview.section.ui.title":"UI adaptation","ia.overview.section.ui.desc":"This group focuses only on cross-device UI consistency, especially screen size, safe area, capsule-button layout, and key action visibility.","ia.overview.section.growth.title":"Growth and revisit","ia.overview.section.growth.desc":"These capabilities depend more on entry scenes and revisit paths, so scene selection and reward loops need extra attention.","ia.env.title":"Prerequisite baseline","ia.env.desc":"Surface the three easiest blockers first so the entry flow does not look ready while the actual capability path is still blocked.","ia.map.title":"Capability map","ia.map.desc":"Each card represents one integration path. Start with the overview, then enter a dedicated page for customized debugging guidance.","ia.action.openGuide":"Open integration guide","ia.detail.notFound":"The requested capability guide was not found.","ia.detail.backToMap":"Back to previous page","ia.login.highlight1":"The core output is an `auth_code`, which your backend exchanges for `open_id` / session state.","ia.login.highlight2":"`login` and `authorize` are different paths: `login` establishes identity, while `authorize` requests extra scopes.","ia.authorize.highlight1":"The key is not direct client-side profile access, but explicit extra-scope consent after `login`.","ia.authorize.highlight2":"Nickname, avatar, and other profile data should ultimately be fetched by the backend with `access_token`, not returned in one client call.","ia.payment.highlight1":"The real payment loop is order creation, payment invocation, verification, and fulfillment, not just opening the pay panel.","ia.payment.highlight2":"Use IAP Mock to iterate faster, then validate real Beans payment against backend results on device.","ia.ad.highlight1":"Enable IAA and create placements first, then debug code paths; unreleased apps often cannot even finish placement setup.","ia.ad.highlight2":"Rewarded video needs accurate post-play rewards, while interstitials need strict pacing and low disruption.","ia.uiAdaptation.highlight1":"The goal is not one-off page fixes but a shared layout baseline for safe area, capsule button, and window metrics.","ia.uiAdaptation.highlight2":"Validate on real devices with different sizes so titles, floating buttons, and bottom action areas stay unobstructed.","ia.shareMessage.highlight1":"For `shareAppMessage`, the card title, description, and cover come from the game basic info in the developer portal, not from dynamic business-side customization.","ia.shareMessage.highlight2":"What the business side really needs to design is `query`, so proactive share, mission share, and campaign sharing can land in the correct in-game scenario.","ia.shareStory.highlight1":"`shareToStory` is more visual, but what the business side still needs to design carefully is `query`, so the share can return to the right in-game scenario.","ia.shareStory.highlight2":"Do dedicated device regression for Story, checking both asset presentation quality and `query`-driven return-path stability.","ia.subpackage.highlight1":"Split-package quality depends on boundary definition, preload timing, and fallback, not on splitting as much as possible.","ia.subpackage.highlight2":"Validate both first-screen speed and later scene transitions under weak network.","ia.network.highlight1":"This topic is about weak-network and recovery behavior, not only single-request success on a good connection.","ia.network.highlight2":"Request, download, and realtime paths should each have explicit recovery rules.","ia.sidebar.highlight1":"This is a P0 retention capability, and the key is the sidebar entry, task state, and complete reward loop.","ia.sidebar.highlight2":"Platform guidance shows it helps next-day and 7-day retention, so it is worth keeping as a reusable fixed entry.","ia.shortcut.highlight1":"P0 retention: the critical path is add shortcut → re-enter from home screen → reward state becomes eligible.","ia.shortcut.highlight2":"Works especially well for UA/ad-driven games; debug scene + entry source (`canReceiveReward`) first, then validate your reward loop.","ia.directPlay.highlight1":"It reaches users in Feed with a previously played game card, and the main CTA is `Play now`.","ia.directPlay.highlight2":"It works well as a shared reproduction path for growth, delivery, and QA when recalling high-value users."},TM="DevTool",OM="扫码开始本地调试",xM="设备连接成功",IM="调试服务已断开连接",DM="未连接设备",RM="Node",NM="浏览器",jM="客户端",LM="已连接",AM="未连接",MM="连接失败",$M="未知",FM="节点说明",zM="本机启动的调试服务(负责与 IDE/客户端建立通道、转发调试消息)",BM="当前打开 DevTool IDE 的浏览器页",qM="真机上的 TikTok 客户端调试服务(提供 HTTP/WS 能力)",GM="点表示该链路的连通状态;同一条边上 ws/http 分别显示在两侧以便区分",UM="网络诊断",WM="网络连通性诊断",HM="用于定位扫码卡住、连接失败、端口不可达等网络问题(仅在本机浏览器侧做检测)",VM="扫码没响应?点击这里进行诊断处理",KM="一键检测",QM="手动绑定客户端调试服务",XM="当扫码链路不可用(代理/防火墙/多网卡)时,可通过手动填写客户端 IP 与端口进行连接。",YM="手动连接",ZM="进入手动连接",JM="电脑端 IP",e$="WS 端口",t$="HTTP 端口",n$="电脑端",r$="客户端",i$="查看排除指南",o$="打开代理配置",s$="环境概览",a$="检测结果",l$="IDE ↔ Node(HTTP)",c$="IDE ↔ Node(WS)",u$="IDE ↔ 客户端(HTTP)",d$="IDE ↔ 客户端(WS)",p$="诊断建议",f$="操作区域",h$="补充信息:如果连接成功,可返回扫码调试页面继续调试。",g$="查看文档",m$="未检测到客户端调试地址",v$="请先扫码连接,或点击“手动绑定 IP”后填入客户端的 IP/端口。",y$="客户端连通失败(多为局域网/代理/防火墙问题)",b$="请确认手机与电脑同一 Wi‑Fi/网段;关闭全局代理/关闭 TUN;代理开启 Allow LAN;检查系统防火墙是否放行 Node.js。",S$="本地调试服务不可用",w$="请确认已在项目根目录运行 `ttmg dev`,且端口未被占用。",_$="未发现明显异常",C$="若仍然连接失败,请将本页“复制环境信息”和报错截图发到群里协助排查。",E$="HTTP 可达但 WS 不可达:优先检查 WS 端口是否正确、客户端调试服务是否在监听该端口。",P$="若 WS 超时:多为端口被防火墙/路由策略拦截,或电脑开了全局代理/TUN 影响局域网。",k$="HTTP 与 WS 均不可达:优先检查手机与电脑是否同一 Wi‑Fi/网段(公司网络可能有 AP 隔离)。",T$="关闭全局 VPN/TUN,代理需开启 Allow LAN;检查防火墙是否放行局域网访问。",O$="当前未拿到客户端 HTTP 地址或端口",x$="当前未拿到客户端 WS 地址或端口",I$="提示",D$="如果电脑能 ping 通手机但 WS 连不上,通常是端口未监听或被防火墙/策略拦截(ICMP 与 TCP/WS 条件不同)。",R$="客户端连接已断开,请重新扫码连接",N$="Node 服务连接中断,请在终端重启调试服务",j$="切换调试设备",L$="无设备连接",A$="请先连接设备后再进行调试",M$="使用 TikTok 扫码调试",$$="切换扫码设备",F$="正在初始化调试环境...",z$="通知客户端初始化调试环境...",B$="获取客户端调试环境配置中...",q$="获取客户端调试环境配置失败",G$="客户端调试环境配置获取成功",U$="客户端调试环境初始化成功,等待上传游戏资源包...",W$="客户端调试环境初始化失败",H$="初始化 JS 运行时环境中...",V$="JS 运行时环境初始化成功",K$="重新上传代码包",Q$="正在上传游戏资源包...",X$="游戏资源包上传中,进度:",Y$="游戏资源包上传成功,客户端准备启动游戏...",Z$="游戏资源包上传失败,请检查环境配置",J$="正在初始化游戏环境...",e3="游戏资源正在本地编译,请稍候...",t3="游戏资源编译中",n3="游戏资源已更新,是否重新上传进行调试?",r3="游戏资源更新成功!",i3="游戏环境初始化失败,请检查当前环境",o3="正在获取游戏调试环境配置",s3="游戏环境配置获取成功",a3="游戏环境配置获取失败",l3="正在获取游戏脚本",c3="浏览器调试环境初始化成功,上传游戏资源后将自动启动游戏",u3="游戏运行环境初始化成功,准备上传资源至客户端",d3="正在上传游戏包至客户端",p3="游戏包上传成功,客户端正在加载游戏...",f3="游戏包上传失败",h3="重新上传小游戏包",g3="重新启动小游戏",m3="结束调试",v3="正在启动调试环境...",y3="本地 Node 调试服务连接失败",b3="正在连接本地 Node 调试服务...",S3="本地 Node 调试服务连接成功",w3="本地 Node 调试服务连接失败,请确认已在游戏根目录下运行 ttmg dev",_3="Node 调试服务已断开,请在终端重启调试服务",C3="客户端调试服务连接成功",E3="客户端调试服务连接失败,请重新扫码开启调试服务",P3="客户端调试服务已断开,请重新扫码连接",k3="未检测到可用于扫码的局域网 IP",T3="请确保电脑与手机连接到同一 Wi-Fi,并关闭 VPN/代理/防火墙拦截后重试;或使用手动绑定方式连接客户端调试服务。",O3="手动绑定 IP",x3="客户端调试环境启动失败,请重新扫码连接",I3="游戏脚本加载失败",D3="上传至手机",R3="暂不上传",N3="上传游戏包至平台",j3="正在扫描二维码...",L3="可切换设备扫码开启新的调试会话",A3="请确保您的 TikTok 账号已添加为调试应用的测试用户",M3="未登录",$3="启动模式名称",F3="选择启动包",z3="选择独立分包",B3="选择进入场景",q3="自定义启动参数",G3="示例:a=1&b=2",U3="扫码打开",W3="查询参数必须是字符串类型",H3="搜索",V3="推荐流直玩",K3="异形卡",Q3="达人视频",X3="复访奖励 - 侧边栏",Y3="推荐页广告",Z3="桌面快捷方式",J3="聊天分享",e5="链接访问",t5="首包",n5="查询参数不应包含问号(?)前缀,请只输入参数部分",r5=`查询参数格式错误:发现空的键值对片段。请确保每个 '&' 符号两侧都有完整的 "key=value" 结构。`,i5="独立分包",o5="自定义启动模式",s5="不能为空",a5="保存",l5="当前启动模式",c5="新建启动模式",u5="扫码使用",d5="选择调试模式",p5="远程调试",f5="真机预览",h5="真机调试",g5="应用",m5="本地 Node 调试服务配置信息获取成功",v5="获取本地调试服务配置信息失败,请检查 Node 服务是否正常启动",y5="正在加载调试环境依赖脚本资源",b5="依赖脚本资源加载成功",S5="依赖脚本资源加载失败,请重新扫码开启调试服务",w5="依赖脚本内容为空,请重新扫码开启调试服务",_5="依赖脚本资源加载并初始化成功",C5="游戏资源编译成功!请使用手机扫码调试。",E5="游戏资源编译成功!",P5="扫码调试",k5="游戏配置",T5="在本地调试阶段,您可以快速查看当前小游戏的基本信息,包括:游戏名称、图标、Client key、描述、整包大小、首包大小、独立分包大小、信任域名、服务条款、隐私政策等。",O5="通过提前检查这些核心信息,能够及时发现潜在问题,确保在正式发布前,项目状态符合平台要求,减少上线后的风险和返工。",x5="启动模式",I5="版本上传",D5="默认启动模式",R5="新建启动模式",N5="未超过项目大小 {{limit}} 限制",j5="未超过首包大小 {{limit}} 限制",L5="未超过独立分包大小 {{limit}} 限制",A5="超过项目大小 {{limit}} 限制",M5="超过首包大小 {{limit}} 限制",$5="超过独立分包大小 {{limit}} 限制",F5="通过设置启动模式,您可以灵活选择游戏的调试模式、启动包、进入场景以及启动参数,满足不同测试和上线需求。请根据实际需求完成相关配置,确保游戏能够正常启动并进入预期场景。",z5="3. 配置文件检查",B5="确保分包文件路径配置正确,所有路径都能正常访问,避免后续加载失败。",q5="1. 包体大小检查",G5="整个游戏包大小需控制在 {{projectSize}} 以内,首包大小不能超过 {{mainPackageSize}},独立分包大小不能超过 {{independentPackageSize}}。",U5="整个游戏包大小需控制在 {{projectSize}} 以内,无其他额外限制。",W5="2. 必接能力检查",H5="检查游戏是否已集成必要的 API 能力,保证小游戏在 TikTok 中有更好的用户体验和转化效果。",V5="配置文件检查通过",K5="包体大小检查通过",Q5="包体大小检查失败",X5="配置文件检查失败",Y5="性能检查",Z5="性能检查通过",J5="性能检查未通过",eF="查看文档",tF="展开",nF="收起",rF="游戏项目",iF="游戏首包",oF="开发者选项",sF="开启域名校验后,只有在平台配置的域名才会被允许请求。",aF="开启广告 Mock 调试后,在调用广告 JSAPI 时,会进入 Mock 环境,帮助您调试各种边界场景。",lF="开启支付 Mock 调试后,在调用支付 JSAPI 时,会进入 Mock 环境,帮助您调试各种边界场景。",cF="开启广告 Mock",uF="开启支付 Mock",dF="📢 发送本地调试设至客户端...",pF="确定要删除{{name}}启动模式吗?",fF="游戏名称",hF="游戏图标",gF="Client key",mF="游戏描述",vF="游戏大小",yF="首包大小",bF="独立分包大小",SF="信任域名",wF="Terms & Privacy",_F="Terms & Privacy - Terms URL",CF="Terms & Privacy - Privacy URL",EF="Terms of Service URL",PF="Privacy policy URL",kF="确保所有可能触发网络请求的域名都已添加到信任域名列表中,避免因域名未配置而导致的网络请求失败。",TF="确认 Terms & Privacy(Terms URL)已填写且有效,用户在使用游戏时需要同意相关条款。",OF="确认 Terms & Privacy(Privacy URL)已填写且有效,用户在使用游戏时需要同意相关条款。",xF="查询参数格式错误:{{pair}} 缺少等号(=)或值为空。请使用 key=value 格式,且值不能为空。",IF="查询参数格式错误:键不能为空。发现 {{pair}}",DF="查询参数中发现重复的键:{{key}}。每个键必须是唯一的。",RF="查询参数格式错误:键 {{key}} 包含无效字符。请只使用字母、数字、下划线(_)和短横线(-)。",NF="查询参数格式错误:值 {{value}} 包含无效字符。请只使用字母、数字、下划线(_)和短横线(-)。",jF="查询参数格式错误:键值对 {{pair}} 包含无效的 URL 编码字符。请使用正确的编码格式。",LF="获取游戏详情失败,请稍后重试。",AF="当前账号未登录,无法获取游戏详情。请先在控制台执行 【ttmg login】命令,使用开发者平台账号登录后,再运行 【ttmg dev】 命令以开启调试模式。",MF="你可以通过在控制台输入 `ttmg login` 命令,并使用开发者平台的账号和密码进行登录。",$F="文档",FF="快速开始",zF="API 参考",BF="错误代码参考",qF="常见问题",GF="上传",UF="取消",WF="添加资源描述",HF="上传成功",VF="上传失败",KF="成功上传游戏资源到平台,平台会对资源进行校验并部署,去平台查看上传后的预览版本。",QF="去平台查看",XF="只有在命令行完成登录后,调试页面的游戏包上传功能才可使用。请先在控制台执行 `ttmg login`,使用开发者平台账号登录后,再运行 `ttmg dev` 命令以开启调试模式。",YF="上传当前游戏包至平台",ZF="当前尚未在平台设置信任域名。只有已填写到平台列表中的域名,才允许在运行时发起网络请求;如果游戏会请求外部域名,请按需补充对应配置。",JF="调试环境脚本初始化失败,请扫码重试",e6="游戏资源上传失败,请扫码重试",t6="当前游戏未配置 Terms & Privacy(Terms URL)。login/authorize 能力依赖该配置,缺失时会导致开发调试失败,请先在平台补充该 URL。",n6="当前游戏未配置 Terms & Privacy(Privacy URL)。login/authorize 能力依赖该配置,缺失时会导致开发调试失败,请先在平台补充该 URL。",r6="当前游戏未配置 Terms & Privacy(Terms URL 和 Privacy URL)。login/authorize 能力依赖这两个配置,缺失时会导致开发调试失败,请先在平台补充对应 URL。",i6="当前尚未在平台设置 Terms & Privacy(Terms URL)。请确保在游戏上线前补充该 URL,以保护用户权益。",o6="当前尚未在平台设置 Terms & Privacy(Privacy URL)。请确保在游戏上线前补充该 URL,以保护用户权益。",s6="当前尚未在平台配置游戏名称。请在提审前完成补充,避免审核阶段被拒审。",a6="当前尚未在平台配置游戏图标。请在提审前完成补充,避免审核阶段被拒审。",l6="当前尚未在平台配置游戏描述。请确保在游戏上线前,在平台完成描述填写,以保证可以顺利发布。",c6="开始连接客户端 WebSocket 服务,👉👉👉 {{wsURL}}...",u6="客户端 WebSocket 服务连接超时,检查电脑和手机是否在同一局域网下",d6="当前账号未登录,无法获取游戏详情。请先在控制台执行 `ttmg login` 命令,使用开发者平台账号登录后,再运行 `ttmg dev` 命令以开启调试模式。",p6="当前账号登录过期,请重新登录。",f6="当前游戏 ID {{clientKey}} 不存在,无法正常开启调试,请检查修改后重试。",h6="当前账号无权限查看 ID {{clientKey}} 游戏详情,请在开发者平台申请此游戏的开发权限后,再运行 `ttmg dev` 命令以开启调试模式。",g6="获取游戏详情失败,请稍后重试。",m6="用户静默登录",v6="激励视频广告",y6="添加桌面快捷方式",b6="获取桌面快捷方式奖励",S6="跳转到个人主页侧边栏",w6="获取个人主页侧边栏奖励",_6="已集成!",C6="未集成!",E6="必接能力检查通过",P6="必接能力检查未通过",k6="调试环境已完成初始化,在浏览器控制台中查看日志进行游戏开发与调试...",T6="调试环境已初始化,通过客户端 vConsole 日志面板查看日志进行游戏开发与调试...",O6="开始向客户端发送游戏元数据,完成后客户端将开始启动游戏...",x6="向客户端发送游戏元数据成功,客户端将开始启动游戏...",I6="1. 浏览器远程调试:先在浏览器中初始化远程调试环境,客户端连接后即可开始调试。此模式下需要将代码包上传到客户端,但调试过程基于浏览器的能力进行远程调试。",D6="2. 客户端真机预览:将本地的游戏代码上传到客户端,在真实设备上进行预览与调试,直接验证真机表现与兼容性。",R6="手动绑定客户端调试服务地址",N6="无效的端口号,请输入正确的端口号",j6="若扫码长时间无响应,手动绑定客户端调试服务",L6="确认",A6="请输入手机端 IP 地址",M6="开始上传",$6="去检查",F6="检查网络",z6="1. 支持手动连接客户端调试服务,用于解决因手机与电脑处于不同网络/代理环境而导致的连接失败问题。",B6="2. 手动连接客户端调试服务仅支持 TikTok Android 42.9 及以上版本;iOS 暂不支持。",q6="返回",G6="开始连接",U6="检测连通性",W6="连通性检测结果",H6="客户端 WebSocket",V6="客户端 HTTP",K6="可用",Q6="不可用",X6="超时",Y6="连接失败",Z6="请先填写 IP 和端口",J6="上传之前先填写当前游戏包描述",e8="展示 vConsole",t8="展示开发信息面板",n8="关闭域名校验",r8="展示 vConsole,在真机预览时可以查看运行日志",i8="展示开发信息面板,在手机中可以查看游戏运行统计信息",o8="‼️ 检测到 {{count}} 条问题,每条已标注为「卡点」或「建议」。",s8="卡点",a8="建议",l8="当前游戏缺少基础信息:{{fields}}。",c8="标题(Name)",u8="图标(Icon)",d8="描述(Description)",p8="、",f8="当前未登录开发者账号:上传功能不可用,且网络请求可能被拦截。若需临时联调,请在开发者选项中关闭域名校验。",h8="请在提审之前完成问题处理,避免审核阶段被拒审。",g8="查看详情",m8="收起详情",v8="新增功能",y8="功能优化",b8="问题修复",S8="了解如何使用",w8="更新记录",_8="新增/优化功能适用 TikTok 版本",C8="Wasm 分包",E8="分包预处理",P8="收集函数",k8="代码分包",T8="回滚分包",O8="正在发起分包预处理...",x8="取消分包预处理",I8="后台运行",D8="分包预处理中,需要一些时间...",R8="期间请不要修改本地游戏包体,否则会造成分包预处理失败",N8="分包预处理成功!",j8="分包预处理失败!",L8="请点击重试",A8="下载预处理文件",M8="下载失败",$8="请点击重试",F8="下载成功",z8="下载预处理文件后,即可在本地进行代码分包。",B8="分包描述",q8="请输入分包描述",G8="开始预处理",U8="正在处理...",W8="获取下载 URL",H8="获取下载 URL 成功",V8="获取下载 URL 失败",K8="下载预处理文件成功",Q8="下载预处理文件失败",X8="更新 Wasm 分包配置",Y8="更新 Wasm 分包配置成功",Z8="更新 Wasm 分包配置失败",J8="压缩预处理文件成功",e7="压缩预处理文件失败",t7="写入压缩预处理文件",n7="写入压缩预处理文件成功",r7="写入压缩预处理文件失败",i7="开始分包",o7="当前收集函数数量不足,至少需要占所有函数数量的 8% 以上才可开始分包",s7="当前本地项目已经支持 wasm 分包,请用 TikTok 客户端扫描二维码,开始收集函数,请支持完成加载环节、游戏教学等前期内容。",a7="开始收集函数",l7="Wasm 文件大小",c7="总函数数量",u7="当前收集函数数量",d7="分包版本号",p7="分包处理中,可能需要一些时间,请在分包处理完成后点击下载分包。",f7="取消分包",h7="分包处理成功,开始获取下载结果...",g7="重试获取下载结果",m7="获取下载结果失败,请点击重试。",v7="分包处理成功!",y7="下载分包文件",b7="分包下载失败,请点击重试。",S7="重试下载分包文件",w7="分包下载成功!",_7="本地可使用真机扫描调试二维码,体验分包后的加载流程,确认游戏无异常后,可将当前目录下的文件上传至开发者平台,进行测试和发布",C7="正在下载安卓分包主文件...",E7="下载安卓分包主文件成功",P7="正在压缩安卓分包主文件...",k7="压缩安卓分包主文件成功",T7="正在下载安卓分包代码...",O7="下载安卓分包代码成功",x7="正在压缩安卓分包代码...",I7="压缩安卓分包代码成功",D7="正在下载 iOS 分包主文件...",R7="下载 iOS 分包主文件成功",N7="正在压缩 iOS 分包主文件...",j7="压缩 iOS 分包主文件成功",L7="正在下载 iOS 分包代码...",A7="下载 iOS 分包代码成功",M7="正在压缩 iOS 分包代码...",$7="压缩 iOS 分包代码成功",F7="正在写入分包文件...",z7="写入分包文件成功",B7="正在更新分包配置...",q7="更新分包配置成功",G7="未发现 Wasm 代码包",U7="未在项目中发现 wasmcode/[hash].webgl.wasm.code.unityweb.wasm.br 文件,请先通过游戏引擎打包项目后再进行 Wasm 分包操作。",W7="当前项目已完成 Wasm 分包,可直接压缩当前代码包后上传至平台",H7="想放弃本次 Wasm 分包操作吗?",V7="当前项目未开启 Wasm 分包功能",K7="当前项目未开启 Wasm 分包功能,请先在项目配置中开启后再进行操作。",Q7="深度指南",X7="能力接入",Y7={title:TM,scanQRcodeTitle:OM,deviceConnected:xM,serverDisconnected:IM,deviceDisconnected:DM,connectStatusNode:RM,connectStatusBrowser:NM,connectStatusClient:jM,connectStatusConnected:LM,connectStatusDisconnected:AM,connectStatusFailed:MM,connectStatusUnknown:$M,connectStatusLegendTitle:FM,connectStatusLegendNode:zM,connectStatusLegendBrowser:BM,connectStatusLegendClient:qM,connectStatusLegendProto:GM,netDiagNav:UM,netDiagTitle:WM,netDiagSubtitle:HM,netDiagEntryScanNoResponse:VM,netDiagRunAll:KM,netDiagManualBindTitle:QM,netDiagManualBindDesc:XM,netDiagManualBindEntry:YM,netDiagManualConnectGo:ZM,netDiagEnvIP:JM,netDiagEnvWsPort:e$,netDiagEnvHttpPort:t$,netDiagComputerGroup:n$,netDiagClientGroup:r$,netDiagOpenTroubleshoot:i$,netDiagOpenProxy:o$,netDiagEnvTitle:s$,netDiagChecksTitle:a$,netDiagCheckNodeHttp:l$,netDiagCheckNodeWs:c$,netDiagCheckClientHttp:u$,netDiagCheckClientWs:d$,netDiagSuggestTitle:p$,netDiagActionsTitle:f$,netDiagSuccessHint:h$,netDiagOpenDoc:g$,netDiagSuggestNoClientTitle:m$,netDiagSuggestNoClientDesc:v$,netDiagSuggestLanTitle:y$,netDiagSuggestLanDesc:b$,netDiagSuggestNodeTitle:S$,netDiagSuggestNodeDesc:w$,netDiagSuggestOkTitle:_$,netDiagSuggestOkDesc:C$,netDiagSuggestHttpOkWsFail1:E$,netDiagSuggestHttpOkWsFail2:P$,netDiagSuggestBothFail1:k$,netDiagSuggestBothFail2:T$,netDiagMissingClientHttp:O$,netDiagMissingClientWs:x$,netDiagQuickHintTitle:I$,netDiagQuickHintDesc:D$,clientDisconnected:R$,nodeDisconnected:N$,switchDevice:j$,disConnectionStatusTitle:L$,disConnectionStatusDesc:A$,scanQRCode:M$,switchScanDevice:$$,startDebug:F$,initClientEnv:z$,fetchClientDevConfig:B$,fetchClientDevConfigFailed:q$,fetchClientDevConfigSuccess:G$,initClientEnvSuccess:U$,initClientEnvFailed:W$,startInitJSDevEnv:H$,initJSDevEnvSuccess:V$,uploadBtn:K$,uploadStart:Q$,uploadProcess:X$,uploadSuccess:Y$,uploadError:Z$,setupDevEnv:J$,gameResourceCompiling:e3,gameResourceCompilingTitle:t3,gameResourceChange:n3,gameResourceUpdated:r3,devEnvSetupError:i3,getDevEnvStart:o3,getDevEnvSuccess:s3,setDevEnvFailed:a3,getDevScriptsStart:l3,setDevScriptsSuccess:c3,devEnvSetupSuccess:u3,uploadGameStart:d3,uploadGameSuccess:p3,uploadGameFailed:f3,reUploadGame:h3,relaunchGame:g3,closeGame:m3,loading:v3,nodeServerConnectedFailed:y3,nodeServerStartConnect:b3,nodeServerConnectedSuccess:S3,nodeServerStartError:w3,nodeServerDisconnect:_3,clientConnectedSuccess:C3,clientServerStartError:E3,clientServerDisconnected:P3,networkNoLanIPTitle:k3,networkNoLanIPDesc:T3,networkNoLanIPAction:O3,startDebugFailed:x3,getDevScriptsFailed:I3,uploadToClient:D3,notUpload:R3,uploadToPlatform:N3,"uploadGame.pageTitle":"上传游戏","uploadGame.pageDesc":"上传是主流程,预检作为提交前的风险兜底。只有存在问题时才重点提示,避免首屏被检查结果打断。","uploadGame.checkTitle":"代码预检","uploadGame.recheck":"重新检查","uploadGame.uploadTitle":"上传游戏包","uploadGame.checkWarn":"代码预检存在未通过项,建议修复后再上传,以避免审核驳回。","uploadGame.detailTitle":"预检详情","uploadGame.detailDesc":"需要定位具体配置、API、包体或性能问题时再展开查看。","uploadGame.showDetails":"查看预检详情","uploadGame.hideDetails":"收起预检详情","uploadGame.loginNoticeTitle":"先完成开发者登录","uploadGame.readyTitle":"预检已通过,可直接上传","uploadGame.readyDesc":"当前未发现阻塞性问题,建议补充版本描述后直接提交平台。","uploadGame.issueTitle":"预检发现待处理问题","uploadGame.issueDesc":"先看这里的异常摘要,必要时再展开下方详情逐项修复。","uploadGame.checkFetchFailed":"预检结果获取失败,请重新检查后再决定是否上传。","uploadGame.issueCountSuffix":" 个问题","uploadGame.groupPassSuffix":" 项检查通过","uploadGame.status.loginReady":"已登录开发者账号","uploadGame.status.loginRequired":"需先登录后上传","uploadGame.status.checking":"预检检查中","uploadGame.status.checkFailed":"预检结果获取失败","uploadGame.status.hasIssues":"预检存在问题","uploadGame.status.ready":"预检通过","uploadGame.group.performance":"性能","uploadGame.group.size":"包体","uploadGame.group.api":"API","uploadGame.group.config":"配置","uploadGame.unknownIssue":"存在待确认问题","uploadGame.uploadDescHint":"补充本次版本变更说明,方便平台侧区分不同上传记录。","uploadGame.progress.title":"正在上传并等待平台处理","uploadGame.progress.desc":"代码包已提交,平台正在进行校验和部署,请稍候。","uploadGame.progress.assetTitle":"正在校验平台资源状态","uploadGame.progress.assetDesc":"已上传成功,正在轮询平台资产状态,当前状态:{{status}}","uploadGame.progress.previewTitle":"正在获取平台预览二维码","uploadGame.progress.previewDesc":"上传已成功,正在轮询平台预览二维码,请稍候。","uploadGame.progress.statusPending":"处理中","uploadGame.progress.badgeUploading":"上传中","uploadGame.progress.badgeChecking":"校验中","uploadGame.progress.badgePreview":"生成预览码","uploadGame.progress.step1":"打包并上传代码包","uploadGame.progress.step2":"等待平台资源状态变为 ready","uploadGame.progress.step3":"获取平台预览二维码","uploadGame.success.title":"上传完成","uploadGame.success.readyTitle":"平台预览已就绪","uploadGame.success.desc":"接口已返回成功结果。你可以扫码或前往平台继续查看本次上传后的版本信息。","uploadGame.success.pendingDesc":"上传已成功,但预览二维码暂未返回。你可以先前往平台查看,或稍后重新上传触发新一轮获取。","uploadGame.success.qrHint":"扫码查看平台结果页","uploadGame.success.noQr":"当前暂无可展示的二维码","uploadGame.success.uploadAnother":"继续上传新版本","uploadGame.failure.title":"平台预览尚未就绪","uploadGame.failure.retry":"重新上传","uploadGame.failure.missingAssetId":"上传接口未返回 asset_id,无法继续校验平台状态。","uploadGame.failure.assetTimeout":"在限定时间内未等到目标 asset 进入 ready 状态,请稍后在平台查看。","uploadGame.failure.assetStatus":"目标 asset 当前状态为 {status},尚未进入 ready,暂不展示预览二维码。","uploadGame.failure.previewTimeout":"asset 已进入 ready,但在限定时间内未拿到预览二维码,请稍后重试。","uploadGame.record.title":"预览版本记录","uploadGame.record.desc":"集中查看最近上传到平台的预览版本,并在这里继续扫码验证。","uploadGame.record.refresh":"刷新记录","uploadGame.record.loading":"正在加载历史记录...","uploadGame.record.empty":"当前还没有可展示的预览版本记录。","uploadGame.record.latest":"最新上传","uploadGame.record.selectPlaceholder":"选择一个历史版本后再查看详情","uploadGame.record.noDesc":"开发者未填写版本描述","uploadGame.record.detailTitle":"版本 {{version}}","uploadGame.record.detailDesc":"右侧保留当前版本的二维码和关键信息,方便持续回看。","uploadGame.record.previewHint":"扫码预览当前版本","uploadGame.record.previewLoading":"正在获取该版本的预览二维码...","uploadGame.record.previewUnavailable":"暂未获取到该版本的预览二维码","uploadGame.record.pendingDesc":"该版本仍在平台处理中,可稍后刷新记录继续查看。","uploadGame.record.failedDesc":"该版本当前状态异常,建议前往平台确认处理结果。","uploadGame.record.metaUploadedAt":"上传时间","uploadGame.record.metaAssetId":"Asset ID","uploadGame.record.metaSource":"来源分组","uploadGame.record.metaSize":"包体大小","uploadGame.record.metaUnknown":"-","uploadGame.record.loadFailed":"历史记录加载失败,请稍后重试。","uploadGame.record.state.ready":"可预览","uploadGame.record.state.pending":"处理中","uploadGame.record.state.failed":"异常","uploadGame.record.source.preview":"预览版本","uploadGame.record.source.review":"审核中","uploadGame.record.source.live":"线上版本","uploadGame.record.source.other":"其他记录",scanning:j3,scanQRCodeChange:L3,scanQRCodeDesc:A3,notLogin:M3,launchModeName:$3,selectLaunchPkg:F3,selectIndependentPkg:z3,selectScene:B3,launchQueries:q3,launchQueriesDesc:G3,scene_scan_qrcode:U3,queriesStringMustBeString:W3,scene_search:H3,scene_fyf_promotion_direct_feed_play:V3,scene_fyf_card:K3,scene_anchor:Q3,scene_center:X3,scene_ad:Y3,scene_shortcut:Z3,scene_sharing:J3,scene_link:e5,mainPackage:t5,queriesStringNoQuestionMark:n5,queriesStringEmptyPair:r5,independentPackage:i5,customizeLaunchMode:o5,notEmpty:s5,save:a5,delete:"删除",selectLaunchMode:l5,createNewMode:c5,saveAndUse:u5,selectDebugMode:d5,browserDebugMode:p5,clientPreviewMode:f5,clientDebugMode:h5,use:g5,getDevGameConfigSuccess:m5,getDevGameConfigFailed:v5,startLoadDevScripts:y5,loadDevScriptsSuccess:b5,loadDevScriptsFailed:S5,loadDevScriptsEmpty:w5,loadDevScriptsInitSuccess:_5,gameResourceCompileSuccess:C5,gameResourceCompileSuccessTitle:E5,scanQRCode2Debug:P5,projectInfo:k5,projectInfoDesc:T5,projectInfoDescTip:O5,"projectInfo.section.basic":"基础信息","projectInfo.section.package":"包体状态","projectInfo.section.platform":"平台配置","projectInfo.error.guideTitle":"完成以下准备后,即可查看游戏配置","projectInfo.error.stepTitle":"如何恢复查看","projectInfo.error.helpTitle":"补充说明","projectInfo.error.login.title":"当前还无法拉取平台配置","projectInfo.error.login.desc":"本地项目已经启动,但还没有建立可用的开发者登录态。你先完成登录,再回到这里查看游戏配置即可。","projectInfo.error.login.stepLogin":"在命令行执行 `ttmg login`,使用开发者平台账号完成登录。","projectInfo.error.login.stepRestart":"登录成功后,重新执行 `ttmg dev`,让当前调试会话带上最新登录态。","projectInfo.error.login.stepProxy":"如果在国内网络环境下登录失败,优先检查代理或网络设置,再重试登录。","projectInfo.error.permission.title":"当前账号暂时无法查看这个模块","projectInfo.error.permission.desc":"项目本地环境已经可用,但当前开发者账号还没有这个游戏的开发权限,因此无法读取平台侧配置。","projectInfo.error.permission.stepCheckAccount":"先确认当前执行 `ttmg login` 的账号是否就是目标游戏的开发者账号。","projectInfo.error.permission.stepApply":"如果账号无权限,请先在开发者平台申请该游戏的开发权限。","projectInfo.error.permission.stepRestart":"权限开通后,重新执行 `ttmg dev` 进入新的调试会话。","projectInfo.error.general.title":"当前暂时无法展示游戏配置","projectInfo.error.general.desc":"这通常是平台数据暂时不可用、项目信息异常,或当前调试上下文尚未准备完成。","projectInfo.error.general.stepCheck":"先确认当前项目的 Client key、登录账号与调试命令是否一致。","projectInfo.error.general.stepRetry":"修正后重新执行 `ttmg dev`,再返回此页面查看。","projectInfo.error.commandLogin":"登录命令","projectInfo.error.commandRestart":"重启调试命令","projectInfo.error.commandProxy":"代理命令示例","projectInfo.error.commandProxyHint":"以上地址和端口仅为示例,请替换成你本地代理工具实际提供的代理地址。","projectInfo.error.helpLoginDesc":"国内开发者在登录阶段更常见的问题并不是账号本身,而是网络代理、办公网络策略或终端环境导致无法正常完成登录。遇到这类情况时,优先按照网络与代理排查文档处理,通常比重复尝试登录更有效。","projectInfo.error.helpPermissionDesc":"如果你已经能正常登录,但这里只是无法读取游戏配置,通常更接近权限问题,而不是本地工程问题。建议先确认账号归属和开发者平台上的项目授权关系。","projectInfo.error.helpGeneralDesc":"如果上面的步骤都确认无误,仍然无法展示模块,可以先回到命令行重新启动调试,再进一步排查项目信息是否配置正确。","projectInfo.error.openProxyDoc":"查看网络/代理登录排查","basicDebugGuide.bannerTitle":"当前未检测到开发者登录态","basicDebugGuide.bannerDesc":"这不会阻断最基础的扫码调试链路。若 CLI 因网络原因暂时无法登录,你仍可继续本地调试、切换启动模式,并排查连接问题。","basicDebugGuide.title":"未登录也可以继续基础扫码调试","basicDebugGuide.desc":"把这里理解成一个受限模式:平台态能力会受影响,但本地扫码调试、启动模式与连接诊断仍然可用。建议先继续完成基础联调,再按网络/代理指引恢复登录。","basicDebugGuide.actionScan":"前往扫码调试","basicDebugGuide.actionNetwork":"打开网络诊断","basicDebugGuide.actionProxy":"查看网络/代理登录排查","basicDebugGuide.availableTitle":"当前仍可使用","basicDebugGuide.availableDesc":"下面这些能力依赖的是本地调试服务与 schema,本身不要求你已经拿到开发者平台登录态。","basicDebugGuide.available.scan.title":"扫码调试","basicDebugGuide.available.scan.desc":"继续使用当前二维码在手机端拉起本地调试,验证基础运行链路是否正常。","basicDebugGuide.available.launch.title":"启动模式","basicDebugGuide.available.launch.desc":"仍可切换 scene、启动包与 queries,模拟不同入口与调试参数。","basicDebugGuide.available.preview.title":"浏览器预览 / 客户端预览","basicDebugGuide.available.preview.desc":"继续在浏览器或客户端之间切换基础调试模式,验证包体逻辑与页面行为。","basicDebugGuide.available.network.title":"网络诊断","basicDebugGuide.available.network.desc":"当扫码无响应、局域网不可达或代理环境复杂时,可先在项目内完成自检。","basicDebugGuide.available.manual.title":"手动连接","basicDebugGuide.available.manual.desc":"如果扫码链路不可用,仍可尝试手动绑定客户端调试服务地址继续联调。","basicDebugGuide.lockedTitle":"登录后才能完整使用","basicDebugGuide.lockedDesc":"这些能力会主动请求开发者平台或依赖平台侧资源,没有 CLI 登录态时会被限制。","basicDebugGuide.locked.project.title":"游戏配置","basicDebugGuide.locked.project.desc":"无法稳定拉取平台侧的基础信息、Terms、Privacy 与信任域名配置。","basicDebugGuide.locked.upload.title":"版本上传","basicDebugGuide.locked.upload.desc":"无法上传新版本、拉取预览版本记录,或生成平台侧预览二维码。","basicDebugGuide.locked.platform.title":"平台态能力验证","basicDebugGuide.locked.platform.desc":"例如登录、授权、支付、直玩卡等依赖平台资源的能力,联调会不完整或直接失败。","basicDebugGuide.stepsTitle":"推荐操作顺序","basicDebugGuide.stepsDesc":"如果你的目标只是继续推进基础扫码调试,建议按下面顺序操作;若需要平台态能力,再回头恢复 CLI 登录。","basicDebugGuide.step1":"先继续使用扫码调试、启动模式和客户端预览,把本地包体链路跑通。","basicDebugGuide.step2":"如果扫码本身有问题,先用网络诊断或手动连接定位,不要把所有问题都误判成登录问题。","basicDebugGuide.step3":"需要恢复平台态能力时,再优先处理网络/代理,必要时先配置代理后重试登录。","basicDebugGuide.step4":"登录成功后重新执行 `ttmg dev`,回到项目内解锁游戏配置、版本上传和平台态能力验证。","basicDebugGuide.commandProxy":"代理命令示例","basicDebugGuide.commandProxyHint":"以上地址和端口仅为示例,请替换成你本地代理工具实际提供的代理地址。","basicDebugGuide.commandLogin":"登录命令","basicDebugGuide.commandDev":"重启调试命令","basicDebugGuide.entryTitle":"CLI 登录失败时,仍可继续基础扫码调试","basicDebugGuide.entryDesc":"先看可用能力与受限边界,再决定是继续联调,还是回头处理网络/代理登录问题。","basicDebugGuide.entryAction":"查看可继续调试的能力",launchMode:x5,codePreCheck:I5,normalLaunchMode:D5,createdLaunchMode:R5,notExceedSizeLimit:N5,notExceedMainPkgSizeLimit:j5,notExceedIndependentPkgSizeLimit:L5,exceedSizeLimit:A5,exceedMainPkgSizeLimit:M5,exceedIndependentPkgSizeLimit:$5,launchModeDesc:F5,configFileCheck:z5,gameJsonCheckDesc:B5,pkgSizeCheckDesc:q5,commonPkgSizeCheckDescTip:G5,unityPkgSizeCheckDescTip:U5,mandatoryApiCheck:W5,mandatoryApiCheckDesc:H5,checkConfigPassed:V5,checkPkgSizePassed:K5,checkPkgSizeFailed:Q5,checkConfigFailed:X5,performanceCheck:Y5,checkPerformancePassed:Z5,checkPerformanceFailed:J5,viewDoc:eF,expandCheckDetail:tF,closeCheckDetail:nF,gameProject:rF,gameMainPackage:iF,devOptions:oF,devOptionsDomainCheckDesc:sF,debugSettingAdMockDesc:aF,debugSettingIAPMockDesc:lF,debugSettingAdMock:cF,debugSettingIAPMock:uF,sendLocalDebugSetting:dF,deleteLaunchModeConfirm:pF,gameName:fF,gameIcon:hF,gameID:gF,gameDesc:mF,gameSize:vF,gameMainPackageSize:yF,gameIndependentPackageSize:bF,gameTrustDomains:SF,gameTermsAndPrivacy:wF,gameServiceAgreement:_F,gamePrivacyPolicy:CF,termsLabel:EF,privacyLabel:PF,gameTrustDomainsDesc:kF,gameServiceAgreementDesc:TF,gamePrivacyPolicyDesc:OF,queriesStringMissingEqual:xF,queriesStringEmptyKey:IF,queriesStringDuplicateKey:DF,queriesStringInvalidKeyChars:RF,queriesStringInvalidValueChars:NF,queriesStringInvalidEncoding:jF,getDevGameDetailFailed:LF,getDevGameDetailNotLogin:AF,notLoginTip:MF,docs:$F,quickStart:FF,jsApiList:zF,errorReference:BF,faq:qF,upload:GF,cancel:UF,gameAssetDescription:WF,uploadPlatformSuccess:HF,uploadPlatformFailed:VF,uploadPlatformDesc:KF,viewOnPlatform:QF,loginToUpload:XF,uploadGamePackageTip:YF,trustDomainEmptyTip:ZF,scriptsSetupFailed:JF,resourcesSetupFailed:e6,policyDependencyTermsRequired:t6,policyDependencyPrivacyRequired:n6,policyDependencyTermsPrivacyRequired:r6,termsOfServiceEmptyTip:i6,privacyPolicyEmptyTip:o6,gameNameEmptyTip:s6,gameIconEmptyTip:a6,gameDescEmptyTip:l6,startConnectClientWS:c6,clientConnectTimeout:u6,gameDetailNotLogin:d6,gameLoginExpired:p6,getDevGameDetailNotFound:f6,gameDetailNoPermission:h6,gameDetailServerError:g6,login:m6,createRewardedVideoAd:v6,addShortcut:y6,getShortcutMissionReward:b6,startEntranceMission:S6,getEntranceMissionReward:w6,integrated:_6,notIntegrated:C6,checkApiSuccess:E6,checkApiFailed:P6,debugEnvSetupSuccess:k6,clientPreviewEnvSetupSuccess:T6,startToSendMetaToClient:O6,sendMetaToClientSuccess:x6,browserRemoteDebugDesc:I6,clientRealPreviewDesc:D6,"debug.scan.tips":"在用 TikTok 扫码调试前,你可以选择以下不同的调试模式:","debug.mode.browser.title":"浏览器远程调试","debug.mode.browser.point.logic":"游戏逻辑在浏览器中运行","debug.mode.browser.point.devtools":"可在浏览器环境查看日志、断点调试","debug.mode.browser.point.preview":"在客户端同步查看游戏画面效果","debug.mode.client.title":"客户端真机预览","debug.mode.client.supportVersion":"TikTok iOS >=42.7,TikTok Android >=42.5","debug.mode.client.point.logic":"游戏逻辑在客户端(真机)中运行","debug.mode.client.point.vconsole":"通过 vConsole 查看运行日志","debug.mode.client.point.preview":"在真机上真实还原并预览游戏效果","debug.mode.custom.tip":"如果需要更灵活的配置,你还可以新建自定义启动模式,以满足特定的调试与预览需求。","debug.guide.header":"调试模式简介","debug.guide.manualBindIP":"手动绑定手机端 IP 地址",manualBindClientDebugServiceTitle:R6,"debug.guide.manualBindIPInvalid":"无效的 IP 地址,请输入正确的 IP 地址",invalidPort:N6,scanQrcodeNoResponse:j6,confirm:L6,manualBindIPPlaceholder:A6,"debug.guide.manualBindIPDesc1":"1. 请确认手机与电脑在同一局域网下,若不在同一局域网下,请先连接至同一局域网;","debug.guide.manualBindIPDesc2":"2. 手动输入客户端加载页提供的调试服务地址和端口进行连接","debug.guide.manualBindIPDesc3":"3. 只支持 Android 42.9 及以上版本,iOS 暂不支持",startUpload:M6,gotoCheck:$6,checkNetworkTitle:F6,manualBindIPInfo1:z6,manualBindIPInfo2:B6,back:q6,manualConnectStart:G6,connectivityCheck:U6,connectivityCheckTitle:W6,connectivityCheckWS:H6,connectivityCheckHTTP:V6,connectivityOK:K6,connectivityNotOK:Q6,connectivityTimeout:X6,connectivityFailed:Y6,connectivityMissingParams:Z6,needDesc:J6,debugSettingVConsole:e8,debugSettingDevInfoPanel:t8,debugSettingDomainCheck:n8,debugSettingEnableVconsoleDesc:r8,debugSettingEnableDevInfoPanelDesc:i8,topErrorSummary:o8,topErrorTagRequired:s8,topErrorTagSuggested:a8,topBasicInfoMissing:l8,topBasicInfoNameField:c8,topBasicInfoIconField:u8,topBasicInfoDescriptionField:d8,topBasicInfoFieldJoiner:p8,topLoginStatusWarning:f8,topErrorSuggestedActionTip:h8,topErrorViewDetails:g8,topErrorHideDetails:m8,changelogFeature:v8,changelogOptimize:y8,changelogBugfix:b8,changelogLink:S8,changelog:w8,changelogTarget:_8,wasmSplit:C8,splitPrepare:E8,splitCollect:P8,splitCode:k8,rollback:T8,startingPrepare:O8,cancelPrepare:x8,backgroundRun:I8,preparingSplit:D8,warningDuringPreparing:R8,preparingSplitSuccess:N8,preparingSplitFailed:j8,retryPrepare:L8,downloadPreparedWasmCode:A8,downloadFailed:M8,retryDownload:$8,downloadSuccess:F8,downloadPreparedWasmCodeDesc:z8,splitDesc:B8,inputSplitDesc:q8,startPrepare:G8,processing:U8,fetchDownloadUrl:W8,fetchDownloadUrlSuccess:H8,fetchDownloadUrlFailed:V8,downloadPreparedWasmCodeSuccess:K8,downloadPreparedWasmCodeFailed:Q8,updateWasmSplitConfig:X8,updateWasmSplitConfigSuccess:Y8,updateWasmSplitConfigFailed:Z8,compressPreparedWasmCodeSuccess:J8,compressPreparedWasmCodeFailed:e7,writeCompressPreparedWasmCode:t7,writeCompressPreparedWasmCodeSuccess:n7,writeCompressPreparedWasmCodeFailed:r7,startSplit:i7,cannotSplitTip:o7,collectDesc:s7,startCollect:a7,wasmSize:l7,totalFuncCount:c7,collectedFuncCount:u7,splitVersion:d7,splittingDesc:p7,cancelSplit:f7,getSplitResult:h7,retryGetSplitResult:g7,getSplitResultFailed:m7,splitSuccess:v7,downloadSplitResult:y7,downloadSplitResultFailed:b7,retryDownloadSplitResult:S7,downloadSplitResultSuccess:w7,downloadSplitResultTip:_7,start_download_android_main_wasm:C7,download_android_main_wasm_done:E7,start_compress_android_main_wasm:P7,compress_android_main_wasm_done:k7,start_download_android_sub_wasm_code:T7,download_android_sub_wasm_code_done:O7,start_compress_android_sub_wasm_code:x7,compress_android_sub_wasm_code_done:I7,start_download_ios_main_wasm:D7,download_ios_main_wasm_done:R7,start_compress_ios_main_wasm:N7,compress_ios_main_wasm_done:j7,start_download_ios_sub_wasm_code:L7,download_ios_sub_wasm_code_done:A7,start_compress_ios_sub_wasm_code:M7,compress_ios_sub_wasm_code_done:$7,start_write_splited_wasm_br:F7,write_splited_wasm_done:z7,start_update_wasm_split_config:B7,update_wasm_split_config_done:q7,noWasmCode:G7,noWasmCodeDesc:U7,hasSplitedTitle:W7,hasSplitedDesc:H7,noSplitConfigTitle:V7,noSplitConfigDesc:K7,advancedGuide:Q7,integrationAssistant:X7,"ia.title":"接入助手","ia.subtitle":"把关键平台能力的接入前置条件、调试入口和联调顺序集中到一个页面里,减少开发者来回查文档与找入口的成本。","ia.banner.login":"建议先在命令行执行 `ttmg login`,再回到这里按能力开始联调;很多平台态能力在未登录时无法完整验证。","ia.banner.termsPrivacy":"当前建议先补齐 Terms & Privacy 配置;登录、授权等能力会直接依赖这两项平台信息。","ia.banner.ready":"当前基础状态可继续联调;建议先看能力说明,再跳转到对应页面完成配置和验证。","ia.menuTitle":"关键能力","ia.sceneLabel":"推荐入口场景:","ia.section.prerequisites":"前置检查","ia.section.steps":"建议调试路径","ia.section.tips":"开发关注点","ia.action.goHome":"打开首页","ia.action.goProjectDetail":"打开项目详情","ia.action.goLaunchMode":"打开启动模式","ia.action.goPrecheck":"打开代码预检","ia.action.openCapabilityDoc":"详细引导","ia.status.ready":"已就绪","ia.status.notReady":"需补充","ia.status.login.title":"开发者登录","ia.status.login.ready":"当前开发者账号已登录,可继续验证依赖平台态的能力。","ia.status.login.notReady":"尚未检测到登录态,上传、项目详情拉取与部分平台流程可能无法继续。","ia.status.terms.title":"Terms URL","ia.status.terms.ready":"Terms URL 已配置,可继续推进 login / authorize 相关联调。","ia.status.terms.notReady":"Terms URL 缺失,login / authorize 能力容易在联调阶段直接卡住。","ia.status.privacy.title":"Privacy URL","ia.status.privacy.ready":"Privacy URL 已配置,隐私相关前置条件基本齐备。","ia.status.privacy.notReady":"Privacy URL 缺失,授权与合规相关流程需要先补齐配置。","ia.menu.login":"登录","ia.menu.authorize":"授权","ia.menu.payment":"支付","ia.menu.ad":"广告","ia.menu.uiAdaptation":"UI 适配","ia.menu.shareMessage":"站内信分享","ia.menu.shareStory":"分享 Story","ia.menu.subpackage":"分包与预下载","ia.menu.network":"网络与实时通信","ia.menu.sidebarRevisit":"侧边栏复访问","ia.menu.shortcutRevisit":"加桌复访","ia.menu.directPlayCard":"直玩卡","ia.login.summary":"登录(`tt.login`)用于在客户端获取一次性 `auth_code`(这里透出的字段为 `code`),再由业务服务端换取 `open_id` 并建立会话态。","ia.login.prerequisite1":"先在项目详情页补齐 Terms URL 与 Privacy URL,并确认运行时注入的 `client_key` 与当前调试环境一致(`tt.login` 默认 scope 为 `user.info.open_id`)。","ia.login.prerequisite2":"业务服务端需提供 `code -> open_id` 的换取接口:使用 `auth_code` 调用 TikTok OpenAPI `https://open.tiktokapis.com/v2/oauth/token/`(`grant_type=authorization_code`),并持久化 `open_id`(及必要的令牌/过期时间)。","ia.login.step1":"在业务页调用 `tt.login()`(或业务封装),确认回调稳定返回 `code`(对应 `auth_code`);失败分支记录 `errorCode/errorMsg` 便于联调定位。","ia.login.step2":"将 `code` 立即传给服务端(短时效、一次性),服务端以 `application/x-www-form-urlencoded` 请求 `https://open.tiktokapis.com/v2/oauth/token/` 换取 `open_id`(如业务需要也会同时返回 `access_token/refresh_token`)。","ia.login.step3":"用 `open_id` 建立业务会话并落库:补齐用户取消、弱网重试、防重复消费同一 `code`、`invalid_grant/invalid_client` 等异常;如需长期调用受保护资源,按 `grant_type=refresh_token` 刷新并更新存储。","ia.login.tip1":"不要在客户端使用或下发 `client_secret`;所有 `auth_code -> token/open_id` 的交换必须在服务端完成。","ia.login.tip2":"排障优先级建议:Terms/Privacy 缺失(常见 `102102`)→ `client_key/client_secret` 不匹配(`invalid_client`)→ `auth_code` 过期或重复使用(`invalid_grant`)→ 请求头/参数格式错误(`invalid_request`)。","ia.authorize.summary":"授权能力用于在 `login` 已拿到基础身份后,显式向用户申请 `user.info.basic` 等额外 scope;授权完成后,再由服务端结合 `access_token` 拉取资料或完成权限校验。","ia.authorize.prerequisite1":"先在项目详情页补齐 Terms URL 与 Privacy URL,并确认 `login` 主链路已能稳定换取 `open_id/access_token`。","ia.authorize.prerequisite2":"按业务场景梳理所需 scope;昵称、头像等资料不应假设由客户端直接返回,而要通过授权后的服务端 OpenAPI 获取。","ia.authorize.step1":"先通过 `tt.login` 获取一次性 `auth_code`,由服务端换取 `open_id` / `access_token`,建立基础身份态。","ia.authorize.step2":"在真正需要资料或额外权限的场景调用 `tt.authorize`(如 `scope: 'user.info.basic'`),覆盖首次授权、拒绝授权和再次进入三类路径。","ia.authorize.step3":"用户同意后,由服务端携带 `access_token` 调用 OpenAPI 拉取资料并落到业务链路,确认 scope、资料字段和降级兜底一致。","ia.authorize.tip1":"不要把授权和登录混成一步:`login` 建立基础身份,`authorize` 申请额外 scope,两个失败分支都要单独处理。","ia.authorize.tip2":"非必需权限不要做成默认拦截;用户拒绝后也应能继续基础流程,并保留明确的二次触发入口。","ia.payment.summary":"IAP 支付用于售卖虚拟道具或增值服务,核心链路是“服务端创建订单 -> 客户端发起支付 -> 服务端验单/发货”,当前仅支持 TikTok Beans。","ia.payment.prerequisite1":"先完成企业认证、合同签署,并在 Monetization 中启用 In-App Purchases;收款主体需与企业认证主体一致。","ia.payment.prerequisite2":"提前准备商品配置、测试账号,以及服务端下单、订单落库和验单能力;本地联调可先打开 IAP Mock 覆盖主分支。","ia.payment.step1":"先在平台完成 IAP 开通、商品配置和收款信息填写,再在服务端打通创建订单、订单持久化和支付结果校验。","ia.payment.step2":"客户端接入支付唤起与回调处理,先用 IAP Mock 验证成功、失败、取消、重复点击等基础分支。","ia.payment.step3":"最后切到真机预览或真机调试,验证真实支付、服务端验单、发货/到账以及异常重试链路是否闭环。","ia.payment.tip1":"不要只看客户端支付成功回调;最终发货或到账应以后端验单结果或权威订单状态为准。","ia.payment.tip2":"Mock 适合提效,但提审前必须做真机回归,并覆盖弱网、重复下单、取消支付和超时回调。","ia.ad.summary":"IAA 广告能力覆盖激励视频与插屏广告,核心链路是“开通广告能力 -> 创建广告位 -> 加载/展示广告 -> 处理关闭与发奖回调”,用于变现且不打断核心体验。","ia.ad.prerequisite1":"先完成企业认证、合同签署,并在 Monetization 中启用 In-App Ads;未上线应用通常无法正常创建广告位。","ia.ad.prerequisite2":"如涉及 US / EU,上线前尽早补齐 Sensitive Data、USDS / TPRM 等合规要求,并准备好 IAA Mock / 真机联调方案。","ia.ad.step1":"先在平台确认 IAA 已开通且应用已上线,再进入 Ad placements 创建广告位并拿到对应 placement id。","ia.ad.step2":"在业务中接入广告实例创建、加载、展示和回调处理,分别验证激励视频和插屏的成功、失败、关闭分支。","ia.ad.step3":"重点回归奖励发放、频控与体验边界:激励视频完整播放后要准确发奖,插屏两次触发间隔需不少于 60 秒。","ia.ad.tip1":"广告回调和奖励发放要做幂等处理,避免重复回调、页面切换或重进场景导致重复发奖。","ia.ad.tip2":"不要在初始化、新手引导或高频操作链路强插广告;若平台侧合规或上线门槛未过,先处理这些阻塞项。","ia.uiAdaptation.summary":"UI 适配专题聚焦屏幕尺寸、胶囊按钮与安全区适配,核心目标是在不同设备上保证关键 UI 不被遮挡、裁切或错位。","ia.uiAdaptation.prerequisite1":"先梳理项目里与顶栏、浮层、固定按钮、全屏背景相关的核心页面,避免只在单一页面补样式。","ia.uiAdaptation.prerequisite2":"优先准备真机或多尺寸预览环境,特别覆盖不同长宽比、顶部安全区和底部手势区域差异。","ia.uiAdaptation.step1":"先统一读取设备窗口尺寸、安全区和胶囊按钮位置相关信息,沉淀成布局基线,而不是在页面里分散硬编码。","ia.uiAdaptation.step2":"对顶部标题区、右上角操作按钮、底部固定操作区和弹窗内容做适配,确认不会与胶囊按钮或系统安全区重叠。","ia.uiAdaptation.step3":"在多机型回归关键页面,重点检查横竖比例变化、滚动容器、全屏背景和点击热区是否仍然自然可用。","ia.uiAdaptation.tip1":"不要只看视觉对齐;按钮点击区域、弹窗可关闭区域和底部可达性同样属于 UI 适配问题。","ia.uiAdaptation.tip2":"避免把胶囊按钮位置写死成固定像素,优先基于平台返回信息和安全区做动态布局。","ia.shareMessage.summary":"`shareAppMessage` 对应 TikTok 站内信分享,其中卡片标题、描述和封面来自开发者平台的游戏基本信息,开发者真正需要设计的是 `query` 参数如何承接具体分享场景。","ia.shareMessage.prerequisite1":"先确认客户端版本和能力前置,按文档建议通过 `TTMinis.game.canIUse('shareAppMessage')` 判断是否可用,不要默认所有端上都支持。","ia.shareMessage.prerequisite2":"先在开发者平台补齐并确认游戏基本信息,因为站内信卡片展示的标题、描述和封面取自平台配置;业务侧再重点设计 `query` 参数和落地页承接规则。","ia.shareMessage.step1":"在适合拉新、召回或活动传播的页面接入 `TTMinis.game.shareAppMessage`,并重点确认不同入口下传入的 `query` 能准确表达当前业务场景。","ia.shareMessage.step2":"重点验证站内信分享的成功、取消、失败和重复点击分支,确认分享动作本身、回调和用户反馈都稳定。","ia.shareMessage.step3":"在真机检查站内信卡片的展示效果与回流路径,确认用户打开后能进入正确页面,且 query 对应的业务状态恢复正常。","ia.shareMessage.tip1":"这张卡更接近“站内信卡片分享”能力,但卡片标题、描述和封面并不是业务侧实时自定义的,真正可控的是 `query` 和分享后的承接逻辑。","ia.shareMessage.tip2":"如果分享入口很多,建议统一封装 `query` 生成和解析逻辑;平台侧游戏基本信息则应单独在开发者平台维护,不要误以为能在分享时动态覆盖。","ia.shareStory.summary":"`shareToStory` 聚焦 Story 分享,其中展示效果更依赖 Story 素材本身,而业务侧真正要设计的是 `query` 参数和分享后的回流承接逻辑。","ia.shareStory.prerequisite1":"先梳理哪些活动、玩法或结果页适合 Story 分享,避免把不适合视觉传播的场景也强行套用 Story 入口。","ia.shareStory.prerequisite2":"提前准备符合 Story 场景的素材资源,并同步设计 `query` 参数和落地页承接方案;不要只准备视觉素材而忽略回流后的游戏内逻辑。","ia.shareStory.step1":"在适合传播的页面接入 `shareToStory`,确认素材选择和传入的 `query` 都能准确表达当前业务场景。","ia.shareStory.step2":"验证 Story 分享触发、取消、失败与不同素材组合分支,确认视觉展示和交互反馈都符合预期。","ia.shareStory.step3":"结合真机检查 Story 分享后的回流路径,确认用户回到小游戏时目标页面、活动状态和参数恢复正常。","ia.shareStory.tip1":"Story 分享不是普通消息分享的简单复用,素材表达是一部分,但业务侧仍要把 `query` 和回流承接链路单独设计清楚。","ia.shareStory.tip2":"如果 Story 场景依赖强视觉素材,提审前建议同时回归素材展示效果和 `query` 对应的页面恢复是否稳定。","ia.subpackage.summary":"分包与预下载专题关注首包体积、分包边界与资源加载时机,核心目标是在不拖慢首屏的前提下,让后续内容更平滑地进入。","ia.subpackage.prerequisite1":"先梳理首屏必需资源与后续场景资源,明确哪些内容应该留在主包,哪些适合拆到分包。","ia.subpackage.prerequisite2":"为分包加载失败、弱网重试和加载中反馈准备统一兜底,避免把加载逻辑散落在业务页面里。","ia.subpackage.step1":"先确定分包边界与命名,把高频但非首屏必需的内容拆出,避免为了拆包把强依赖资源错误外置。","ia.subpackage.step2":"在合适时机使用 `preDownloadSubpackage` 或 `loadSubpackage`,验证加载进度、成功回调和失败回调都可观测。","ia.subpackage.step3":"在真机与弱网场景回归首屏进入、后续跳转和分包失败重试,确认用户不会卡死在资源加载链路里。","ia.subpackage.tip1":"预下载不等于立即可用;仍然要验证真正进入业务场景时资源是否已经准备完成。","ia.subpackage.tip2":"不要为了追求首包小而过度拆包;分包数量、加载时机和失败兜底比机械地“拆得越多越好”更重要。","ia.network.summary":"网络与实时通信专题覆盖 `request`、`downloadFile`、`connectSocket` 以及网络状态监听,重点是让弱网、断线和重连场景也保持可用。","ia.network.prerequisite1":"先统一梳理项目里的请求、下载与实时通信路径,避免每个页面各自处理 timeout、重试和错误提示。","ia.network.prerequisite2":"为 HTTP 请求、资源下载和长连接分别设计失败兜底与状态提示,不要把它们混成同一种异常处理。","ia.network.step1":"先封装统一的请求/下载/Socket 调用入口,把超时、取消、重试和日志能力收拢到一层处理。","ia.network.step2":"结合 `getNetworkType`、网络变化监听和弱网监听,验证页面能对网络波动做出合理反馈,而不是静默失败。","ia.network.step3":"在真机上重点回归弱网、断网恢复、下载中断和 Socket 重连场景,确认状态恢复与用户提示是完整的。","ia.network.tip1":"不要只测理想网络;多数线上问题都发生在请求超时、资源半下载、连接闪断和重复重连上。","ia.network.tip2":"实时通信场景要单独验证连接关闭、前后台切换和恢复后的重订阅逻辑,不要只看首次连接成功。","ia.sidebar.summary":"侧边栏复访问是从 TikTok 个人主页侧边栏再次进入小游戏并领取奖励的 P0 留存能力。","ia.sidebar.prerequisite1":"确认账号地区在能力开放范围内,并在业务代码里先做 `canIUse` 探测。","ia.sidebar.prerequisite2":"在启动模式中把进入场景切到侧边栏复访入口,避免继续沿用普通扫码场景。","ia.sidebar.step1":"先到“启动模式”选择“复访奖励 - 侧边栏” scene,并保存为独立的调试模式。","ia.sidebar.step2":"本地联调时先运行 `ttmg dev`,再把启动模式切到 `scene_center` 并扫码进入;此时已经是在模拟“从侧边栏入口打开”的会话。","ia.sidebar.step3":"直接调用 `getEntranceMissionReward` 检查 `canReceiveReward` 与业务发奖逻辑;`startEntranceMission` 留给真实用户路径回归,不是启动模式下的必做前置动作。","ia.sidebar.tip1":"这类能力强依赖入口场景与地区条件,不能只用默认扫码路径描述或验证。","ia.sidebar.tip2":"若任务无法继续,先排查 scene、账号地区、客户端能力与任务状态,而不是直接怀疑奖励逻辑。","ia.shortcut.summary":"桌面快捷方式(加桌复访)是 P0 留存能力:引导用户把小游戏添加到手机桌面,后续从桌面一键进入并可领取复访奖励。","ia.shortcut.prerequisite1":"兼容性:先用 `TTMinis.game.canIUse('addShortcut')` 做能力探测;推荐在 TikTok 41.0.0+ 版本验证(iOS 需 41.40+)。","ia.shortcut.prerequisite2":"奖励校验:真实用户链路里,`TTMinis.game.getShortcutMissionReward()` 的 `canReceiveReward` 只有在“从桌面图标进入”时才可能为 true;而在 `scene_shortcut` 启动模式里,会话本身就在模拟该入口。","ia.shortcut.step1":"在业务入口准备“添加到桌面”触发点:先判断 `canIUse('addShortcut')`,再调用 `TTMinis.game.addShortcut()`,并记录 fail 分支的 `errorCode/errorMsg`。","ia.shortcut.step2":"本地联调:运行 `ttmg dev` → 在“启动模式”选择“桌面快捷方式” scene(`scene_shortcut`)→ 扫码进入;此时已经是在模拟“从桌面入口打开”的会话。","ia.shortcut.step3":"直接调用 `TTMinis.game.getShortcutMissionReward()` 检查 `canReceiveReward`,为 true 时再走业务发奖/领券逻辑;`addShortcut` 与“回桌面再进”留给真实用户路径回归即可。","ia.shortcut.tip1":"把 `canReceiveReward` 当作“是否从桌面入口进入”的信号拆开看:加桌动作本身成功 ≠ 一定能在当前会话领取奖励。","ia.shortcut.tip2":"引导建议越早越显眼(首屏/新手引导结束后),突出“首添奖励 + 复访收益”;提审会重点关注流程闭环与奖励一次性/按日策略是否合理。","ia.revisit.panel.modeName":"启动模式","ia.revisit.panel.scene":"场景","ia.revisit.panel.launchParams":"启动参数","ia.revisit.panel.package":"启动包","ia.revisit.panel.signal":"奖励校验","ia.revisit.sidebar.panel.title":"快速创建侧边栏复访调试模式","ia.revisit.sidebar.panel.desc":"这里会直接生成一个“侧边栏复访”启动模式。选中后扫码进入,即是在模拟“已经从侧边栏入口打开”的会话,可以直接联调 `getEntranceMissionReward` 与奖励发放逻辑,不需要额外先执行跳转动作。","ia.revisit.sidebar.panel.modeValue":"模拟侧边栏复访 scene 启动","ia.revisit.sidebar.panel.generatedModeName":"侧边栏复访调试模式","ia.revisit.sidebar.panel.signalValue":"`startEntranceMission` / `getEntranceMissionReward`","ia.revisit.sidebar.panel.createQr":"创建侧边栏复访调试二维码","ia.revisit.shortcut.panel.title":"快速创建加桌复访调试模式","ia.revisit.shortcut.panel.desc":"这里会直接生成一个“桌面快捷方式”启动模式。选中后扫码进入,即是在模拟“已经从桌面入口打开”的会话,可以直接联调 `getShortcutMissionReward` / `canReceiveReward` 与奖励发放逻辑,不需要额外先做加桌再回桌面。","ia.revisit.shortcut.panel.modeValue":"模拟桌面快捷方式 scene 启动","ia.revisit.shortcut.panel.generatedModeName":"加桌复访调试模式","ia.revisit.shortcut.panel.signalValue":"`addShortcut` / `getShortcutMissionReward` / `canReceiveReward`","ia.revisit.shortcut.panel.createQr":"创建加桌复访调试二维码","ia.directPlay.summary":"直玩卡联调建议拆成两个阶段:阶段一只调试小游戏包本身,确认在推荐流直玩 scene 下能正常启动;阶段二再用预览二维码验证卡面和承接路径。","ia.directPlay.prerequisite1":"阶段一只关注小游戏包自身运行,不涉及 TT Feed 卡面、强插或 “Play now” 承接效果。","ia.directPlay.prerequisite2":"进入阶段二前,建议先把推荐流直玩 scene 下的包体启动、首屏加载和核心游戏路径跑通。","ia.directPlay.step1":"在“启动模式”里选择推荐流直玩 scene,保存一个专用启动模式用于游戏包调试。","ia.directPlay.step2":"回到首页扫码启动,确认小游戏包在该 scene 下能够稳定进入并完成基础业务流程。","ia.directPlay.step3":"只有当包体本身稳定后,再回到本页使用预览二维码验证直玩卡卡面与承接路径。","ia.directPlay.tip1":"阶段一遇到的问题优先按普通包体调试处理,不要过早归因到 Feed 卡面或投放链路。","ia.directPlay.tip2":"阶段二若出现问题,建议区分是包体运行异常,还是卡片配置、素材或承接链路异常。","ia.directPlay.stage1.title":"阶段一:调试游戏包本身","ia.directPlay.stage1.desc":"这一阶段只调试小游戏包本身,不涉及 TT Feed 卡面、强插或 Play now 承接。使用推荐流直玩 scene 创建启动二维码,确认包体能正常启动和运行。","ia.directPlay.stage1.ready":"直玩 scene 已就绪","ia.directPlay.stage1.notReady":"需要应用直玩 scene","ia.directPlay.stage1.modeName":"启动模式","ia.directPlay.stage1.modeValue":"模拟推荐流直玩 scene 启动","ia.directPlay.stage1.generatedModeName":"推荐流直玩包体调试模式","ia.directPlay.stage1.scene":"场景","ia.directPlay.stage1.package":"启动包","ia.directPlay.stage1.queries":"Queries","ia.directPlay.stage1.apply":"应用直玩 scene","ia.directPlay.stage1.openHome":"带着当前模式打开首页","ia.directPlay.stage1.createQr":"创建游戏包调试二维码","ia.directPlay.stage1.appliedTitle":"已应用直玩 scene","ia.directPlay.stage1.appliedDesc":"当前启动模式已切到推荐流直玩 scene。你可以直接回首页扫码,也可以到启动模式继续微调。","ia.directPlay.stage2.title":"阶段二:生成预览二维码","ia.directPlay.stage2.desc":"在游戏包本身稳定后,选择直玩卡内容和预览素材,生成平台预览二维码,用于验证直玩卡卡面和承接路径。","ia.directPlay.stage2.banner":"这一阶段只用于直玩卡预览与承接验证;若小游戏包本身还不稳定,请先回到阶段一处理。","ia.directPlay.stage2.cardSelect":"选择直玩卡内容","ia.directPlay.stage2.assetSelect":"选择预览素材","ia.directPlay.stage2.selectedCard":"当前选中的卡片","ia.directPlay.stage2.selectedAsset":"当前选中的素材","ia.directPlay.stage2.cardName":"卡片名称:","ia.directPlay.stage2.cardDesc":"卡片描述:","ia.directPlay.stage2.cardScenario":"场景:","ia.directPlay.stage2.cardPackage":"启动包:","ia.directPlay.stage2.cardQueries":"Queries:","ia.directPlay.stage2.assetGroup":"素材分组:","ia.directPlay.stage2.assetFile":"文件:","ia.directPlay.stage2.assetVersion":"版本:","ia.directPlay.stage2.assetSize":"大小:","ia.directPlay.stage2.assetUploaded":"上传时间:","ia.directPlay.stage2.assetGroup.preview":"预览素材","ia.directPlay.stage2.assetGroup.live":"线上素材","ia.directPlay.stage2.assetGroup.review":"审核中素材","ia.directPlay.stage2.emptyCard":"当前还没有可用的直玩卡内容。","ia.directPlay.stage2.emptyAsset":"当前还没有可用的游戏素材。","ia.directPlay.stage2.generate":"生成预览二维码","ia.directPlay.stage2.refresh":"刷新数据","ia.directPlay.stage2.previewUrl":"预览链接","ia.directPlay.stage2.copy":"复制链接","ia.directPlay.stage2.open":"打开预览","ia.directPlay.stage2.qrDesc":"使用 TikTok 在 Feed 中扫码,体验直玩卡路径。","ia.directPlay.stage2.copyTitle":"已复制预览链接","ia.directPlay.stage2.copyDesc":"预览链接已复制到剪贴板。","ia.directPlay.stage2.selectRequired":"请先选择直玩卡内容和游戏素材。","ia.directPlay.stage2.loadCardsFailed":"加载直玩卡内容失败。","ia.directPlay.stage2.loadAssetsFailed":"加载游戏素材失败。","ia.directPlay.stage2.loadResourcesFailed":"加载直玩卡联调资源失败。","ia.directPlay.stage2.previewFailed":"生成直玩卡预览链接失败。","ia.overview.eyebrow":"Capability Map","ia.overview.title":"关键能力概览","ia.overview.desc":"先从宏观能力地图看清当前小游戏要接哪些模块、各自依赖什么前置条件,再进入单个能力详情页做针对性联调。","ia.overview.baseline.title":"基础前置","ia.overview.baseline.desc":"这些基础状态会影响大部分能力链路,建议先排除明显阻塞,再进入具体模块联调。","ia.overview.stat.capabilities":"能力模块","ia.overview.stat.groups":"能力分组","ia.overview.stat.prerequisites":"基础前置","ia.overview.sectionLabel":"能力分组","ia.overview.section.capabilityUnit":"个能力","ia.overview.section.identity.title":"身份与授权","ia.overview.section.identity.desc":"先建立小游戏身份,再按需申请资料或权限 scope,这是很多用户态能力的起点。","ia.overview.section.monetization.title":"商业化变现","ia.overview.section.monetization.desc":"收入链路主要分为支付和广告,两者都需要先打通平台开通、业务闭环和真机回归。","ia.overview.section.foundation.title":"基础能力","ia.overview.section.foundation.desc":"这一组聚焦 UI 适配、网络稳定性、资源加载与分包管理等基础能力,建议在业务能力稳定后系统补齐。","ia.overview.section.experience.title":"体验与适配","ia.overview.section.experience.desc":"这部分关注跨设备体验一致性,尤其是安全区、胶囊按钮和关键操作区在不同机型上的可用性。","ia.overview.section.share.title":"分享与裂变","ia.overview.section.share.desc":"这一组保持“分享与裂变”专题视角,但接入引导拆成 `shareAppMessage` 和 `shareToStory` 两个具体场景分别梳理。","ia.overview.section.ui.title":"UI适配","ia.overview.section.ui.desc":"这一组只聚焦多机型 UI 一致性,重点看屏幕尺寸、安全区、胶囊按钮与关键操作区是否被遮挡。","ia.overview.section.growth.title":"增长与复访","ia.overview.section.growth.desc":"这部分更偏入口场景和留存回流,调试时要特别注意 scene、入口路径和奖励闭环。","ia.env.title":"前置环境","ia.env.desc":"把最容易卡住接入联调的三项基础状态收紧到这里先看,避免页面很松但流程实际走不通。","ia.map.title":"能力地图","ia.map.desc":"每张卡片对应一条能力接入路径。先看能力简介,再进入二级页面查看定制化接入引导。","ia.action.openGuide":"进入接入引导","ia.detail.notFound":"未找到对应的能力引导。","ia.detail.backToMap":"返回上一页面","ia.login.highlight1":"先把 `tt.login` 的 `auth_code -> open_id` 主链路跑通:`open_id` 是业务侧的用户主键与会话索引。","ia.login.highlight2":"默认只拿 `user.info.open_id`;如需昵称/头像等资料或额外 scope,请走 `tt.authorize` 并在服务端完成资料获取与权限校验。","ia.authorize.highlight1":"核心不是在客户端直接拿资料,而是在 `login` 之后由用户显式授权额外 scope。","ia.authorize.highlight2":"昵称、头像等资料最终由服务端携带 `access_token` 调 OpenAPI 获取,不是客户端一键返回。","ia.payment.highlight1":"支付闭环重点是“下单、拉起支付、验单、发货”,不是只把支付面板调起来。","ia.payment.highlight2":"建议先用 IAP Mock 提速,再用真机验证真实 Beans 支付与服务端结果一致性。","ia.ad.highlight1":"先开通 IAA 并创建广告位,再看代码联调;未上线应用通常连广告位都配不起来。","ia.ad.highlight2":"激励视频要保证完整播放后准确发奖,插屏要控制频率和打断感。","ia.uiAdaptation.highlight1":"重点不是单页修样式,而是把安全区、胶囊按钮和窗口尺寸沉淀成统一布局基线。","ia.uiAdaptation.highlight2":"要用真机覆盖多尺寸和异形屏,确认标题、悬浮按钮、底部操作区都不被遮挡。","ia.shareMessage.highlight1":"`shareAppMessage` 的卡片标题、描述和封面来自开发者平台的游戏基本信息,不是业务侧在分享时动态自定义。","ia.shareMessage.highlight2":"业务侧真正要设计的是 `query` 参数,让主动分享、任务分享和活动传播都能落到正确的游戏内场景。","ia.shareStory.highlight1":"`shareToStory` 更偏视觉传播,但业务侧真正需要设计的仍是 `query`,让分享后能回到正确的游戏内场景。","ia.shareStory.highlight2":"Story 分享建议单独做真机回归,同时检查素材展示效果和 `query` 驱动的回流路径是否稳定。","ia.subpackage.highlight1":"分包的核心不是拆得多,而是主包边界、预下载时机和失败兜底是否合理。","ia.subpackage.highlight2":"要同时回归首屏速度、后续场景切换和弱网下的加载体验。","ia.network.highlight1":"网络专题重点是弱网、断线与恢复,不是只看理想网络下的单次请求成功。","ia.network.highlight2":"请求、下载和实时通信应分别设计错误处理和状态恢复策略。","ia.sidebar.highlight1":"P0 留存能力,核心是侧边栏入口、任务状态和奖励领取闭环完整。","ia.sidebar.highlight2":"平台验证过对次留和 7 留有帮助,适合沉淀为固定入口模板。","ia.shortcut.highlight1":"P0 留存能力,核心是“加桌 → 从桌面二次进入 → 才能命中奖励状态”的完整链路。","ia.shortcut.highlight2":"对投放/高频游戏拉留存效果明显;联调时优先验证入口 scene 与 `canReceiveReward`,再看业务侧发奖闭环。","ia.directPlay.highlight1":"在 Feed 中通过历史玩过游戏卡片触达用户,主按钮是 “Play now”。","ia.directPlay.highlight2":"更适合高价值用户召回,可作为投放、增长和 QA 的统一复现入口。"},m_="en-US",v_="__TTMG_IDE_LANG__",nl={"en-US":kM,"zh-CN":Y7};function y_(){const o=navigator.language;return o in nl?o:o.split("-")[0]==="zh"?"zh-CN":m_}function b_(o){if(!o)return;if(o in nl)return o;const e=o.split("-")[0];if(e==="zh")return"zh-CN";if(e==="en")return"en-US"}function S_(){try{if(typeof window>"u")return;const o=window.localStorage.getItem(v_);return b_(o)}catch{return}}function Z7(o){try{if(typeof window>"u")return;window.localStorage.setItem(v_,o)}catch{}}let Oh=S_()??y_();function J7(o){Oh=b_(o)??S_()??y_(),Z7(Oh)}const L=(o,e)=>{let n=nl[Oh][o]??nl[m_][o];return e&&Object.entries(e).forEach(([r,s])=>{n=n.replace(new RegExp(`{{${r}}}`,"g"),s)}),n};function ez(o){return new URLSearchParams(window.location.search).get(o)}function tz(o){const e={};if(!o||typeof o!="string")return e;const r=(o.startsWith("?")?o.substring(1):o).split("&");for(const s of r){if(!s)continue;const l=s.indexOf("=");let c,u;l===-1?(c=decodeURIComponent(s),u=""):(c=decodeURIComponent(s.substring(0,l)),u=decodeURIComponent(s.substring(l+1))),Object.prototype.hasOwnProperty.call(e,c)?Array.isArray(e[c])?e[c].push(u):e[c]=[e[c],u]:e[c]=u}return e}function kG(o){if(!o)return{isValid:!0,message:""};if(typeof o!="string")return{isValid:!1,message:L("queriesStringMustBeString")};if(o.trim()==="")return{isValid:!0,message:""};if(o.startsWith("?"))return{isValid:!1,message:L("queriesStringNoQuestionMark")};const e=o.split("&"),n=new Set;for(const r of e){if(r.trim()==="")return{isValid:!1,message:L("queriesStringEmptyPair")};const s=r.indexOf("=");if(s===-1||s===r.length-1)return{isValid:!1,message:L("queriesStringMissingEqual",{pair:r})};let l=r.substring(0,s),c=r.substring(s+1);try{const u=decodeURIComponent(l),p=decodeURIComponent(c);if(u.trim()==="")return{isValid:!1,message:L("queriesStringEmptyKey",{pair:r})};if(n.has(u))return{isValid:!1,message:L("queriesStringDuplicateKey",{key:u})};n.add(u);const g=/^[\w\-.!~*'()]+$/,v=/[\x00-\x1F\x7F]/;if(!g.test(u)&&u.length>0){if(v.test(u))return{isValid:!1,message:L("queriesStringInvalidKeyChars",{key:u})};if(/[^a-zA-Z0-9\-.!~*'()_]/.test(u))return{isValid:!1,message:L("queriesStringInvalidKeyChars",{key:u})}}if(v.test(p))return{isValid:!1,message:L("queriesStringInvalidValueChars",{value:p})}}catch(u){return{isValid:!1,message:L("queriesStringInvalidEncoding",{pair:r,error:u.message})}}}return{isValid:!0,message:""}}function xl(o,...e){Number(ez("enableLog"))&&console[o](...e)}const $n=(...o)=>xl("log",...o);$n.info=(...o)=>xl("info",...o);$n.warn=(...o)=>xl("warn",...o);$n.error=(...o)=>xl("error",...o);const ts={isNodeWSConnected:void 0,nodeWsPort:null,isClientWSConnected:void 0,clientHost:null,clientWsPort:null,clientHttpPort:null,clientKey:"",isResourcesReady:!1,isScriptsReady:!1,packages:{},email:null,hasSetup:!1,nodeStaticBaseUrl:null};class nz{data;constructor(e){this.data={...ts,...e}}get(e){return this.data[e]}set(e,n){this.data[e]=n,this.logUpdate({[e]:n})}setMultiple(e){this.data={...this.data,...e},this.logUpdate(e)}getMultiple(e){return e.reduce((n,r)=>(n[r]=this.data[r],n),{})}getAll(){return{...this.data}}resetField(e){this.data[e]=ts[e],this.logUpdate({[e]:ts[e]})}clear(){this.data={...ts},this.logUpdate(ts,!0)}init(e){this.data=e,this.logUpdate(e,!0)}logUpdate(e,n=!1){n?$n("Store has been reset/initialized."):$n("Store updated with batch:",e)}}const Pe=new nz,w_=()=>`http://${Pe.get("clientHost")}:${Pe.get("clientHttpPort")}`,__="__TTMG_LAUNCH_MODE__",C_="__TTMG_CHANGELOG_LAST_SEEN_VERSION__",ir={browserDebug:"browserDebug",clientPreview:"clientPreview",clientDebug:"clientDebug"},Ka={name:L("normalLaunchMode"),pkgName:"__GAME__",pkgType:"main",id:"normal",scene:"scan_qrcode"};L("clientPreviewMode");const Qa={name:L("createdLaunchMode"),pkgName:"__GAME__",pkgType:"main",id:"created",scene:"scan_qrcode"},_g="game";L("browserDebugMode"),ir.browserDebug,L("clientPreviewMode"),ir.clientPreview;const E_="__TTMG_DEBUG_SETTING__";class rz{listeners=new Map;on(e,n){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(n),()=>this.off(e,n)}off(e,n){const r=this.listeners.get(e);r&&(r.delete(n),r.size===0&&this.listeners.delete(e))}emit(e,n){const r=this.listeners.get(e);r&&r.forEach(s=>{try{s(n)}catch(l){console.error(`Error in listener for event "${String(e)}":`,l)}})}removeAllListeners(e){this.listeners.delete(e)}clearAll(){this.listeners.clear()}}const Oe=new rz,iz=6e5,oz={error:{errorCode:-1,errorMsg:"Request failed"},isSuccess:!1,msg:"Request failed"},sz={error:{errorCode:-1,errorMsg:"Request timeout"},isSuccess:!1,msg:"Request timeout"};function Yi(o){const{url:e,method:n="GET",data:r=void 0,headers:s={},timeout:l=iz}=o;let c=e;const u={method:n,headers:{"Content-Type":"application/json",...s}};if(n.toUpperCase()==="GET"&&r){const v=new URLSearchParams(r).toString();c+=(c.includes("?")?"&":"?")+v}else r&&(u.body=JSON.stringify(r));const p=new AbortController,g=setTimeout(()=>p.abort(),l);return u.signal=p.signal,fetch(c,u).then(async v=>{if(!v.ok)return{error:{errorCode:-1,errorMsg:v.statusText},isSuccess:!1,msg:v.statusText};const y=v.headers.get("content-type");if(y&&y.includes("application/json"))try{const b=await v.text();return b.trim()?JSON.parse(b):{isSuccess:!0,data:{}}}catch(b){throw new Error(`Failed to parse JSON response: ${b instanceof Error?b.message:"Unknown error"}`)}else return v.text()}).catch(v=>v instanceof DOMException&&v.name==="AbortError"?sz:oz).finally(()=>{clearTimeout(g)})}const ns={allowed_domains:[],client_key_type:2,stage:2,description:"TTMG Dev Game",entity:"",icon_big_url:"",icon_url:"",minis_category:"mini_game",minis_status:1,minis_tech_type:0,minis_type:2,scopes:["user.info.open_id","user.info.basic"],tos_url:"",update_time:Date.now(),status_code:0,status_msg:"",name:"TikTok Mini Game"};async function az(o){const{scopes:e,update_time:n,display_icon_url:r,request_allowed_domains:s,name:l,terms_of_service_link:c,privacy_policy_link:u,description:p}=o||ns,g=w_(),v={...ns,tos_url:c,privacy_url:u,name:l||ns.name,icon_url:r||ns.icon_url,icon_big_url:r||ns.icon_url,client_key:Pe.get("clientKey"),minis_url:`https://minis-${Pe.get("clientKey")}-vdebug-minigame.tiktok-minis.us/`,package_config:JSON.stringify({packages:Pe.get("packages")}),allowed_domains:s||[],status_code:0,status_msg:"",update_time:n,description:p,scopes:e};console.log(`🚀 ${L("startToSendMetaToClient")}`,v);const y=await Yi({url:`${g}/game/meta`,method:"POST",data:v,headers:{"Content-Type":"application/json"}});return console.log(`✅ ${L("sendMetaToClientSuccess")}`),y}async function Ew(){const o=document.getElementById(_g);return new Promise(e=>{o.onload=()=>{o.onload=null,e(o)},o.contentWindow?.location.reload()})}const P_="debugMode";function Cg(o){return(o||"").trim().replace(/^v/i,"")}function lz(){const o=[Ka,Qa];try{const e=JSON.parse(localStorage.getItem(__)||"[]");if(e.length){const n=e.filter(r=>r.id!==Qa.id).filter(r=>r.id!==Ka.id);return[Ka,...n,Qa]}else return o}catch{return o}}function cz(o){try{localStorage.setItem(__,JSON.stringify(o))}catch(e){console.error("Failed to save launch options:",e)}}function uz(o){try{localStorage.setItem(E_,JSON.stringify(o))}catch(e){console.error("Failed to save debug setting:",e)}}function dz(){const o={enableAdMock:!1,enableIAPMock:!1,enableDomainCheck:!0,enableVConsole:!1,enableDevInfoPanel:!0},e={enableAdMock:!1,enableIAPMock:!1,enableDomainCheck:!0,enableVConsole:!0,enableDevInfoPanel:!0},r=k_()===ir.browserDebug;try{const s=localStorage.getItem(E_);if(s){const l=JSON.parse(s);return r?{...l,enableVConsole:!1}:l}}catch(s){console.error("Failed to get debug setting:",s)}return r?o:e}function k_(){try{return T_()??ir.browserDebug}catch(o){return console.error("Failed to get debug mode:",o),ir.browserDebug}}function T_(){try{const o=localStorage.getItem(P_);return o&&Object.values(ir).includes(o)?o:null}catch(o){return console.error("Failed to get stored debug mode:",o),null}}function O_(o){try{localStorage.setItem(P_,o)}catch(e){console.error("Failed to save debug mode:",e)}}function pz(){try{return Cg(localStorage.getItem(C_))}catch(o){return console.error("Failed to get changelog last seen version:",o),""}}function fz(o){const e=Cg(o);if(e)try{localStorage.setItem(C_,e)}catch(n){console.error("Failed to save changelog last seen version:",n)}}function hz(o){const e=Cg(o);if(!e)return!1;const n=pz();return n?e!==n:!0}function gz(){const o={header:"font-weight:700;font-size:16px",subtitle:"font-weight:600;font-size:12px",desc:"font-size:12px",supportVersion:"font-size:12px; background:#FFE4B5;padding:1px 6px;border-radius:3px; color:#8B4513",tagBrowser:"background:#4F8BFF;color:#fff;border-radius:3px;padding:1px 6px",tagClient:"background:#22C55E;color:#fff;border-radius:3px;padding:1px 6px",bulletKey:"font-weight:600",bulletVal:"font-size:12px",tip:"font-size:12px;font-style:italic"},e={browserRemoteDebugDesc:L("browserRemoteDebugDesc"),clientRealPreviewDesc:L("clientRealPreviewDesc"),scanTips:L("debug.scan.tips"),browser:{title:L("debug.mode.browser.title"),points:{logic:L("debug.mode.browser.point.logic"),devtools:L("debug.mode.browser.point.devtools"),preview:L("debug.mode.browser.point.preview")}},client:{title:L("debug.mode.client.title"),supportVersion:L("debug.mode.client.supportVersion"),points:{logic:L("debug.mode.client.point.logic"),vconsole:L("debug.mode.client.point.vconsole"),preview:L("debug.mode.client.point.preview")}},customTip:L("debug.mode.custom.tip")};console.log("%c%s",o.header,`📌 ${L("debug.guide.header")}`),console.log("%c%s",o.desc,e.scanTips),console.group("%c%s %cBROWSER",o.subtitle,e.browser.title,o.tagBrowser),console.log("%c• %c%s",o.bulletKey,o.bulletVal,e.browser.points.logic),console.log("%c• %c%s",o.bulletKey,o.bulletVal,e.browser.points.devtools),console.log("%c• %c%s",o.bulletKey,o.bulletVal,e.browser.points.preview),console.groupEnd(),console.group("%c%s %cDEVICE",o.subtitle,e.client.title,o.tagClient),console.log("%c%s",o.supportVersion,e.client.supportVersion),console.log("%c• %c%s",o.bulletKey,o.bulletVal,e.client.points.logic),console.log("%c• %c%s",o.bulletKey,o.bulletVal,e.client.points.vconsole),console.log("%c• %c%s",o.bulletKey,o.bulletVal,e.client.points.preview),console.groupEnd(),console.log("%c💡 %s",o.tip,e.customTip)}function uh({baseSchema:o,option:e,debugMode:n}){if(e){const{scene:r,pkgName:s,queries:l}=e;let u=`${o}&debugMode=${n}&_tiktok_minis_params=${encodeURIComponent(JSON.stringify({enter_from:r,ttmg_init_module:s}))}`;if(l){const p=tz(l);p&&Object.keys(p).forEach(g=>{u+=`&${g}=${encodeURIComponent(p[g])}`})}return u}else return o}function Eg(o){return!!(o?.user_id||o?.email)}function x_(o){const{errorCode:e,user:n}=o;return e?e===404?"notFound":e===403?"noPermission":e===401?Eg(n)?"loginExpired":"notLoggedIn":"unknown":"ok"}function mz(o){const{clientKey:e,errorMsg:n}=o,r=x_(o);return r==="notFound"?L("getDevGameDetailNotFound",{clientKey:e}):r==="noPermission"?L("gameDetailNoPermission",{clientKey:e}):r==="loginExpired"?L("gameLoginExpired",{clientKey:e}):r==="notLoggedIn"?L("gameDetailNotLogin",{clientKey:e}):n||""}const vz={devToolVersion:"",engine:"unknown",isConnected:!1,hasSetup:!1,showManualBindIP:!1,debugMode:k_(),schema:"",devSchema:"",gameDetail:null,user:null,feature:{upload:!0,loginStatus:!0,debugSetting:!0,launchMode:!0,sidebar:{enable:!0,info:!1,launch:!1,setting:!1,log:!1,code:!1}},launchOptions:lz(),selectedLaunchOption:Ka,loading:{visible:!0,text:L("loading")},error:{text:""},message:{type:"info",title:L("disConnectionStatusTitle"),desc:L("disConnectionStatusDesc")},debugSetting:dz(),packages:[]};function yz(o,e){switch(e.type){case"SHOW_LOADING":return{...o,loading:{visible:!0,text:e.payload??L("loading")}};case"HIDE_LOADING":return{...o,loading:{...o.loading,visible:!1}};case"SET_MESSAGE":return{...o,message:e.payload};case"SET_IS_CONNECTED":return{...o,isConnected:e.payload};case"SET_SCHEMA":return{...o,schema:e.payload,devSchema:uh({baseSchema:e.payload,option:o.selectedLaunchOption,debugMode:o.debugMode})};case"CLEAR_MESSAGE":return{...o,message:{type:"info",title:"",desc:""}};case"SET_USER":return{...o,user:e.payload};case"SET_LAUNCH_OPTIONS":return cz(e.payload),{...o,launchOptions:e.payload};case"SET_SELECTED_LAUNCH_OPTION":return{...o,selectedLaunchOption:e.payload,devSchema:uh({baseSchema:o.schema,option:e.payload,debugMode:o.debugMode})};case"SET_PACKAGES":return{...o,packages:e.payload};case"SET_DEBUG_SETTING":return uz(e.payload),{...o,debugSetting:e.payload};case"SET_GAME_DETAIL":return{...o,gameDetail:e.payload};case"SET_HAS_SETUP":return{...o,hasSetup:e.payload};case"SET_ERROR":return{...o,error:e.payload};case"SET_DEV_TOOL_VERSION":return{...o,devToolVersion:e.payload};case"SET_DEBUG_MODE":return{...o,debugMode:e.payload,devSchema:uh({baseSchema:o.schema,option:o.selectedLaunchOption,debugMode:e.payload})};case"SET_SHOW_MANUAL_BIND_IP":return{...o,showManualBindIP:e.payload};case"SET_ENGINE":return{...o,engine:e.payload};default:return o}}const bz=({children:o})=>{const[e,n]=k.useReducer(yz,vz),r=k.useCallback(j=>{n({type:"SET_IS_CONNECTED",payload:j})},[]),s=k.useCallback(j=>{n({type:"SHOW_LOADING",payload:j})},[]),l=k.useCallback(()=>{setTimeout(()=>{n({type:"HIDE_LOADING"})},500)},[]),c=k.useCallback(j=>{n({type:"SET_MESSAGE",payload:j})},[]),u=k.useCallback(()=>{n({type:"CLEAR_MESSAGE"})},[]),p=k.useCallback(j=>{n({type:"SET_SCHEMA",payload:j})},[]),g=k.useCallback(j=>{n({type:"SET_USER",payload:j})},[]),v=k.useCallback(j=>{n({type:"SET_LAUNCH_OPTIONS",payload:j})},[]),y=k.useCallback(j=>{n({type:"SET_SELECTED_LAUNCH_OPTION",payload:j})},[]),b=k.useCallback(j=>{n({type:"SET_DEBUG_SETTING",payload:j})},[]),E=k.useCallback(j=>{n({type:"SET_PACKAGES",payload:j})},[]),P=k.useCallback(j=>{n({type:"SET_GAME_DETAIL",payload:j})},[]),S=k.useCallback(j=>{n({type:"SET_HAS_SETUP",payload:j})},[]),C=k.useCallback(j=>{n({type:"SET_ERROR",payload:j})},[]),O=k.useCallback(j=>{n({type:"SET_DEV_TOOL_VERSION",payload:j})},[]),x=k.useCallback(j=>{n({type:"SET_DEBUG_MODE",payload:j})},[]),R=k.useCallback(j=>{n({type:"SET_SHOW_MANUAL_BIND_IP",payload:j})},[]),M=k.useCallback(j=>{n({type:"SET_ENGINE",payload:j})},[]),F=k.useMemo(()=>({state:e,showLoading:s,hideLoading:l,setIsConnected:r,setSchema:p,setMessage:c,clearMessage:u,setUser:g,setLaunchOptions:v,setSelectedLaunchOption:y,setDebugSetting:b,setPackages:E,setGameDetail:P,setHasSetup:S,setError:C,setDevToolVersion:O,setDebugMode:x,setShowManualBindIP:R,setEngine:M}),[e,s,l,r,p,c,u,g,v,y,b,E,P,S,C,O,x,R,M]);return T.jsx(wg.Provider,{value:F,children:o})};var Pw="popstate";function kw(o){return typeof o=="object"&&o!=null&&"pathname"in o&&"search"in o&&"hash"in o&&"state"in o&&"key"in o}function Sz(o={}){function e(r,s){let l=s.state?.masked,{pathname:c,search:u,hash:p}=l||r.location;return xh("",{pathname:c,search:u,hash:p},s.state&&s.state.usr||null,s.state&&s.state.key||"default",l?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,s){return typeof s=="string"?s:hs(s)}return _z(e,n,null,o)}function Ve(o,e){if(o===!1||o===null||typeof o>"u")throw new Error(e)}function En(o,e){if(!o){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function wz(){return Math.random().toString(36).substring(2,10)}function Tw(o,e){return{usr:o.state,key:o.key,idx:e,masked:o.unstable_mask?{pathname:o.pathname,search:o.search,hash:o.hash}:void 0}}function xh(o,e,n=null,r,s){return{pathname:typeof o=="string"?o:o.pathname,search:"",hash:"",...typeof e=="string"?io(e):e,state:n,key:e&&e.key||r||wz(),unstable_mask:s}}function hs({pathname:o="/",search:e="",hash:n=""}){return e&&e!=="?"&&(o+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(o+=n.charAt(0)==="#"?n:"#"+n),o}function io(o){let e={};if(o){let n=o.indexOf("#");n>=0&&(e.hash=o.substring(n),o=o.substring(0,n));let r=o.indexOf("?");r>=0&&(e.search=o.substring(r),o=o.substring(0,r)),o&&(e.pathname=o)}return e}function _z(o,e,n,r={}){let{window:s=document.defaultView,v5Compat:l=!1}=r,c=s.history,u="POP",p=null,g=v();g==null&&(g=0,c.replaceState({...c.state,idx:g},""));function v(){return(c.state||{idx:null}).idx}function y(){u="POP";let C=v(),O=C==null?null:C-g;g=C,p&&p({action:u,location:S.location,delta:O})}function b(C,O){u="PUSH";let x=kw(C)?C:xh(S.location,C,O);g=v()+1;let R=Tw(x,g),M=S.createHref(x.unstable_mask||x);try{c.pushState(R,"",M)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;s.location.assign(M)}l&&p&&p({action:u,location:S.location,delta:1})}function E(C,O){u="REPLACE";let x=kw(C)?C:xh(S.location,C,O);g=v();let R=Tw(x,g),M=S.createHref(x.unstable_mask||x);c.replaceState(R,"",M),l&&p&&p({action:u,location:S.location,delta:0})}function P(C){return Cz(C)}let S={get action(){return u},get location(){return o(s,c)},listen(C){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(Pw,y),p=C,()=>{s.removeEventListener(Pw,y),p=null}},createHref(C){return e(s,C)},createURL:P,encodeLocation(C){let O=P(C);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:b,replace:E,go(C){return c.go(C)}};return S}function Cz(o,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ve(n,"No window.location.(origin|href) available to create URL");let r=typeof o=="string"?o:hs(o);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function I_(o,e,n="/"){return Ez(o,e,n,!1)}function Ez(o,e,n,r){let s=typeof e=="string"?io(e):e,l=or(s.pathname||"/",n);if(l==null)return null;let c=D_(o);Pz(c);let u=null;for(let p=0;u==null&&p<c.length;++p){let g=Az(l);u=jz(c[p],g,r)}return u}function D_(o,e=[],n=[],r="",s=!1){let l=(c,u,p=s,g)=>{let v={relativePath:g===void 0?c.path||"":g,caseSensitive:c.caseSensitive===!0,childrenIndex:u,route:c};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&p)return;Ve(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let y=Fn([r,v.relativePath]),b=n.concat(v);c.children&&c.children.length>0&&(Ve(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),D_(c.children,e,b,y,p)),!(c.path==null&&!c.index)&&e.push({path:y,score:Rz(y,c.index),routesMeta:b})};return o.forEach((c,u)=>{if(c.path===""||!c.path?.includes("?"))l(c,u);else for(let p of R_(c.path))l(c,u,!0,p)}),e}function R_(o){let e=o.split("/");if(e.length===0)return[];let[n,...r]=e,s=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return s?[l,""]:[l];let c=R_(r.join("/")),u=[];return u.push(...c.map(p=>p===""?l:[l,p].join("/"))),s&&u.push(...c),u.map(p=>o.startsWith("/")&&p===""?"/":p)}function Pz(o){o.sort((e,n)=>e.score!==n.score?n.score-e.score:Nz(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var kz=/^:[\w-]+$/,Tz=3,Oz=2,xz=1,Iz=10,Dz=-2,Ow=o=>o==="*";function Rz(o,e){let n=o.split("/"),r=n.length;return n.some(Ow)&&(r+=Dz),e&&(r+=Oz),n.filter(s=>!Ow(s)).reduce((s,l)=>s+(kz.test(l)?Tz:l===""?xz:Iz),r)}function Nz(o,e){return o.length===e.length&&o.slice(0,-1).every((r,s)=>r===e[s])?o[o.length-1]-e[e.length-1]:0}function jz(o,e,n=!1){let{routesMeta:r}=o,s={},l="/",c=[];for(let u=0;u<r.length;++u){let p=r[u],g=u===r.length-1,v=l==="/"?e:e.slice(l.length)||"/",y=rl({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},v),b=p.route;if(!y&&g&&n&&!r[r.length-1].route.index&&(y=rl({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},v)),!y)return null;Object.assign(s,y.params),c.push({params:s,pathname:Fn([l,y.pathname]),pathnameBase:zz(Fn([l,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(l=Fn([l,y.pathnameBase]))}return c}function rl(o,e){typeof o=="string"&&(o={path:o,caseSensitive:!1,end:!0});let[n,r]=Lz(o.path,o.caseSensitive,o.end),s=e.match(n);if(!s)return null;let l=s[0],c=l.replace(/(.)\/+$/,"$1"),u=s.slice(1);return{params:r.reduce((g,{paramName:v,isOptional:y},b)=>{if(v==="*"){let P=u[b]||"";c=l.slice(0,l.length-P.length).replace(/(.)\/+$/,"$1")}const E=u[b];return y&&!E?g[v]=void 0:g[v]=(E||"").replace(/%2F/g,"/"),g},{}),pathname:l,pathnameBase:c,pattern:o}}function Lz(o,e=!1,n=!0){En(o==="*"||!o.endsWith("*")||o.endsWith("/*"),`Route path "${o}" will be treated as if it were "${o.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${o.replace(/\*$/,"/*")}".`);let r=[],s="^"+o.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,u,p,g,v)=>{if(r.push({paramName:u,isOptional:p!=null}),p){let y=v.charAt(g+c.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return o.endsWith("*")?(r.push({paramName:"*"}),s+=o==="*"||o==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":o!==""&&o!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function Az(o){try{return o.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return En(!1,`The URL path "${o}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),o}}function or(o,e){if(e==="/")return o;if(!o.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=o.charAt(n);return r&&r!=="/"?null:o.slice(n)||"/"}var Mz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function $z(o,e="/"){let{pathname:n,search:r="",hash:s=""}=typeof o=="string"?io(o):o,l;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?l=xw(n.substring(1),"/"):l=xw(n,e)):l=e,{pathname:l,search:Bz(r),hash:qz(s)}}function xw(o,e){let n=e.replace(/\/+$/,"").split("/");return o.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function dh(o,e,n,r){return`Cannot include a '${o}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Fz(o){return o.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Pg(o){let e=Fz(o);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function Il(o,e,n,r=!1){let s;typeof o=="string"?s=io(o):(s={...o},Ve(!s.pathname||!s.pathname.includes("?"),dh("?","pathname","search",s)),Ve(!s.pathname||!s.pathname.includes("#"),dh("#","pathname","hash",s)),Ve(!s.search||!s.search.includes("#"),dh("#","search","hash",s)));let l=o===""||s.pathname==="",c=l?"/":s.pathname,u;if(c==null)u=n;else{let y=e.length-1;if(!r&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),y-=1;s.pathname=b.join("/")}u=y>=0?e[y]:"/"}let p=$z(s,u),g=c&&c!=="/"&&c.endsWith("/"),v=(l||c===".")&&n.endsWith("/");return!p.pathname.endsWith("/")&&(g||v)&&(p.pathname+="/"),p}var Fn=o=>o.join("/").replace(/\/\/+/g,"/"),zz=o=>o.replace(/\/+$/,"").replace(/^\/*/,"/"),Bz=o=>!o||o==="?"?"":o.startsWith("?")?o:"?"+o,qz=o=>!o||o==="#"?"":o.startsWith("#")?o:"#"+o,Gz=class{constructor(o,e,n,r=!1){this.status=o,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Uz(o){return o!=null&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.internal=="boolean"&&"data"in o}function Wz(o){return o.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var N_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function j_(o,e){let n=o;if(typeof n!="string"||!Mz.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,s=!1;if(N_)try{let l=new URL(window.location.href),c=n.startsWith("//")?new URL(l.protocol+n):new URL(n),u=or(c.pathname,e);c.origin===l.origin&&u!=null?n=u+c.search+c.hash:s=!0}catch{En(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:s,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var L_=["POST","PUT","PATCH","DELETE"];new Set(L_);var Hz=["GET",...L_];new Set(Hz);var oo=k.createContext(null);oo.displayName="DataRouter";var Dl=k.createContext(null);Dl.displayName="DataRouterState";var Vz=k.createContext(!1),A_=k.createContext({isTransitioning:!1});A_.displayName="ViewTransition";var Kz=k.createContext(new Map);Kz.displayName="Fetchers";var Qz=k.createContext(null);Qz.displayName="Await";var Zt=k.createContext(null);Zt.displayName="Navigation";var ks=k.createContext(null);ks.displayName="Location";var Tn=k.createContext({outlet:null,matches:[],isDataRoute:!1});Tn.displayName="Route";var kg=k.createContext(null);kg.displayName="RouteError";var M_="REACT_ROUTER_ERROR",Xz="REDIRECT",Yz="ROUTE_ERROR_RESPONSE";function Zz(o){if(o.startsWith(`${M_}:${Xz}:{`))try{let e=JSON.parse(o.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function Jz(o){if(o.startsWith(`${M_}:${Yz}:{`))try{let e=JSON.parse(o.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new Gz(e.status,e.statusText,e.data)}catch{}}function eB(o,{relative:e}={}){Ve(so(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=k.useContext(Zt),{hash:s,pathname:l,search:c}=Os(o,{relative:e}),u=l;return n!=="/"&&(u=l==="/"?n:Fn([n,l])),r.createHref({pathname:u,search:c,hash:s})}function so(){return k.useContext(ks)!=null}function ar(){return Ve(so(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(ks).location}var $_="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function F_(o){k.useContext(Zt).static||k.useLayoutEffect(o)}function Ts(){let{isDataRoute:o}=k.useContext(Tn);return o?fB():tB()}function tB(){Ve(so(),"useNavigate() may be used only in the context of a <Router> component.");let o=k.useContext(oo),{basename:e,navigator:n}=k.useContext(Zt),{matches:r}=k.useContext(Tn),{pathname:s}=ar(),l=JSON.stringify(Pg(r)),c=k.useRef(!1);return F_(()=>{c.current=!0}),k.useCallback((p,g={})=>{if(En(c.current,$_),!c.current)return;if(typeof p=="number"){n.go(p);return}let v=Il(p,JSON.parse(l),s,g.relative==="path");o==null&&e!=="/"&&(v.pathname=v.pathname==="/"?e:Fn([e,v.pathname])),(g.replace?n.replace:n.push)(v,g.state,g)},[e,n,l,s,o])}k.createContext(null);function TG(){let{matches:o}=k.useContext(Tn),e=o[o.length-1];return e?e.params:{}}function Os(o,{relative:e}={}){let{matches:n}=k.useContext(Tn),{pathname:r}=ar(),s=JSON.stringify(Pg(n));return k.useMemo(()=>Il(o,JSON.parse(s),r,e==="path"),[o,s,r,e])}function nB(o,e){return z_(o,e)}function z_(o,e,n){Ve(so(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=k.useContext(Zt),{matches:s}=k.useContext(Tn),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",p=l?l.pathnameBase:"/",g=l&&l.route;{let C=g&&g.path||"";q_(u,!g||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
13
|
+
|
|
14
|
+
Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let v=ar(),y;if(e){let C=typeof e=="string"?io(e):e;Ve(p==="/"||C.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${C.pathname}" was given in the \`location\` prop.`),y=C}else y=v;let b=y.pathname||"/",E=b;if(p!=="/"){let C=p.replace(/^\//,"").split("/");E="/"+b.replace(/^\//,"").split("/").slice(C.length).join("/")}let P=I_(o,{pathname:E});En(g||P!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),En(P==null||P[P.length-1].route.element!==void 0||P[P.length-1].route.Component!==void 0||P[P.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let S=aB(P&&P.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Fn([p,r.encodeLocation?r.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?p:Fn([p,r.encodeLocation?r.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),s,n);return e&&S?k.createElement(ks.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},S):S}function rB(){let o=pB(),e=Uz(o)?`${o.status} ${o.statusText}`:o instanceof Error?o.message:JSON.stringify(o),n=o instanceof Error?o.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",o),c=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:l},"ErrorBoundary")," or"," ",k.createElement("code",{style:l},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},e),n?k.createElement("pre",{style:s},n):null,c)}var iB=k.createElement(rB,null),B_=class extends k.Component{constructor(o){super(o),this.state={location:o.location,revalidation:o.revalidation,error:o.error}}static getDerivedStateFromError(o){return{error:o}}static getDerivedStateFromProps(o,e){return e.location!==o.location||e.revalidation!=="idle"&&o.revalidation==="idle"?{error:o.error,location:o.location,revalidation:o.revalidation}:{error:o.error!==void 0?o.error:e.error,location:e.location,revalidation:o.revalidation||e.revalidation}}componentDidCatch(o,e){this.props.onError?this.props.onError(o,e):console.error("React Router caught the following error during render",o)}render(){let o=this.state.error;if(this.context&&typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){const n=Jz(o.digest);n&&(o=n)}let e=o!==void 0?k.createElement(Tn.Provider,{value:this.props.routeContext},k.createElement(kg.Provider,{value:o,children:this.props.component})):this.props.children;return this.context?k.createElement(oB,{error:o},e):e}};B_.contextType=Vz;var ph=new WeakMap;function oB({children:o,error:e}){let{basename:n}=k.useContext(Zt);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=Zz(e.digest);if(r){let s=ph.get(e);if(s)throw s;let l=j_(r.location,n);if(N_&&!ph.get(e))if(l.isExternal||r.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:r.replace}));throw ph.set(e,c),c}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return o}function sB({routeContext:o,match:e,children:n}){let r=k.useContext(oo);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),k.createElement(Tn.Provider,{value:o},n)}function aB(o,e=[],n){let r=n?.state;if(o==null){if(!r)return null;if(r.errors)o=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)o=r.matches;else return null}let s=o,l=r?.errors;if(l!=null){let v=s.findIndex(y=>y.route.id&&l?.[y.route.id]!==void 0);Ve(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,v+1))}let c=!1,u=-1;if(n&&r){c=r.renderFallback;for(let v=0;v<s.length;v++){let y=s[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(u=v),y.route.id){let{loaderData:b,errors:E}=r,P=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!E||E[y.route.id]===void 0);if(y.route.lazy||P){n.isStatic&&(c=!0),u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}}let p=n?.onError,g=r&&p?(v,y)=>{p(v,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Wz(r.matches),errorInfo:y})}:void 0;return s.reduceRight((v,y,b)=>{let E,P=!1,S=null,C=null;r&&(E=l&&y.route.id?l[y.route.id]:void 0,S=y.route.errorElement||iB,c&&(u<0&&b===0?(q_("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),P=!0,C=null):u===b&&(P=!0,C=y.route.hydrateFallbackElement||null)));let O=e.concat(s.slice(0,b+1)),x=()=>{let R;return E?R=S:P?R=C:y.route.Component?R=k.createElement(y.route.Component,null):y.route.element?R=y.route.element:R=v,k.createElement(sB,{match:y,routeContext:{outlet:v,matches:O,isDataRoute:r!=null},children:R})};return r&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?k.createElement(B_,{location:r.location,revalidation:r.revalidation,component:S,error:E,children:x(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:g}):x()},null)}function Tg(o){return`${o} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lB(o){let e=k.useContext(oo);return Ve(e,Tg(o)),e}function cB(o){let e=k.useContext(Dl);return Ve(e,Tg(o)),e}function uB(o){let e=k.useContext(Tn);return Ve(e,Tg(o)),e}function Og(o){let e=uB(o),n=e.matches[e.matches.length-1];return Ve(n.route.id,`${o} can only be used on routes that contain a unique "id"`),n.route.id}function dB(){return Og("useRouteId")}function pB(){let o=k.useContext(kg),e=cB("useRouteError"),n=Og("useRouteError");return o!==void 0?o:e.errors?.[n]}function fB(){let{router:o}=lB("useNavigate"),e=Og("useNavigate"),n=k.useRef(!1);return F_(()=>{n.current=!0}),k.useCallback(async(s,l={})=>{En(n.current,$_),n.current&&(typeof s=="number"?await o.navigate(s):await o.navigate(s,{fromRouteId:e,...l}))},[o,e])}var Iw={};function q_(o,e,n){!e&&!Iw[o]&&(Iw[o]=!0,En(!1,n))}k.memo(hB);function hB({routes:o,future:e,state:n,isStatic:r,onError:s}){return z_(o,void 0,{state:n,isStatic:r,onError:s})}function gB({to:o,replace:e,state:n,relative:r}){Ve(so(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=k.useContext(Zt);En(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=k.useContext(Tn),{pathname:c}=ar(),u=Ts(),p=Il(o,Pg(l),c,r==="path"),g=JSON.stringify(p);return k.useEffect(()=>{u(JSON.parse(g),{replace:e,state:n,relative:r})},[u,g,r,e,n]),null}function Vt(o){Ve(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function mB({basename:o="/",children:e=null,location:n,navigationType:r="POP",navigator:s,static:l=!1,unstable_useTransitions:c}){Ve(!so(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=o.replace(/^\/*/,"/"),p=k.useMemo(()=>({basename:u,navigator:s,static:l,unstable_useTransitions:c,future:{}}),[u,s,l,c]);typeof n=="string"&&(n=io(n));let{pathname:g="/",search:v="",hash:y="",state:b=null,key:E="default",unstable_mask:P}=n,S=k.useMemo(()=>{let C=or(g,u);return C==null?null:{location:{pathname:C,search:v,hash:y,state:b,key:E,unstable_mask:P},navigationType:r}},[u,g,v,y,b,E,r,P]);return En(S!=null,`<Router basename="${u}"> is not able to match the URL "${g}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:k.createElement(Zt.Provider,{value:p},k.createElement(ks.Provider,{children:e,value:S}))}function vB({children:o,location:e}){return nB(Ih(o),e)}function Ih(o,e=[]){let n=[];return k.Children.forEach(o,(r,s)=>{if(!k.isValidElement(r))return;let l=[...e,s];if(r.type===k.Fragment){n.push.apply(n,Ih(r.props.children,l));return}Ve(r.type===Vt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ve(!r.props.index||!r.props.children,"An index route cannot have child routes.");let c={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(c.children=Ih(r.props.children,l)),n.push(c)}),n}var Xa="get",Ya="application/x-www-form-urlencoded";function Rl(o){return typeof HTMLElement<"u"&&o instanceof HTMLElement}function yB(o){return Rl(o)&&o.tagName.toLowerCase()==="button"}function bB(o){return Rl(o)&&o.tagName.toLowerCase()==="form"}function SB(o){return Rl(o)&&o.tagName.toLowerCase()==="input"}function wB(o){return!!(o.metaKey||o.altKey||o.ctrlKey||o.shiftKey)}function _B(o,e){return o.button===0&&(!e||e==="_self")&&!wB(o)}var Ga=null;function CB(){if(Ga===null)try{new FormData(document.createElement("form"),0),Ga=!1}catch{Ga=!0}return Ga}var EB=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function fh(o){return o!=null&&!EB.has(o)?(En(!1,`"${o}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ya}"`),null):o}function PB(o,e){let n,r,s,l,c;if(bB(o)){let u=o.getAttribute("action");r=u?or(u,e):null,n=o.getAttribute("method")||Xa,s=fh(o.getAttribute("enctype"))||Ya,l=new FormData(o)}else if(yB(o)||SB(o)&&(o.type==="submit"||o.type==="image")){let u=o.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=o.getAttribute("formaction")||u.getAttribute("action");if(r=p?or(p,e):null,n=o.getAttribute("formmethod")||u.getAttribute("method")||Xa,s=fh(o.getAttribute("formenctype"))||fh(u.getAttribute("enctype"))||Ya,l=new FormData(u,o),!CB()){let{name:g,type:v,value:y}=o;if(v==="image"){let b=g?`${g}.`:"";l.append(`${b}x`,"0"),l.append(`${b}y`,"0")}else g&&l.append(g,y)}}else{if(Rl(o))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xa,r=null,s=Ya,c=o}return l&&s==="text/plain"&&(c=l,l=void 0),{action:r,method:n.toLowerCase(),encType:s,formData:l,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function xg(o,e){if(o===!1||o===null||typeof o>"u")throw new Error(e)}function kB(o,e,n,r){let s=typeof o=="string"?new URL(o,typeof window>"u"?"server://singlefetch/":window.location.origin):o;return n?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${r}`:s.pathname=`${s.pathname}.${r}`:s.pathname==="/"?s.pathname=`_root.${r}`:e&&or(s.pathname,e)==="/"?s.pathname=`${e.replace(/\/$/,"")}/_root.${r}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${r}`,s}async function TB(o,e){if(o.id in e)return e[o.id];try{let n=await import(o.module);return e[o.id]=n,n}catch(n){return console.error(`Error loading route module \`${o.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function OB(o){return o==null?!1:o.href==null?o.rel==="preload"&&typeof o.imageSrcSet=="string"&&typeof o.imageSizes=="string":typeof o.rel=="string"&&typeof o.href=="string"}async function xB(o,e,n){let r=await Promise.all(o.map(async s=>{let l=e.routes[s.route.id];if(l){let c=await TB(l,n);return c.links?c.links():[]}return[]}));return NB(r.flat(1).filter(OB).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Dw(o,e,n,r,s,l){let c=(p,g)=>n[g]?p.route.id!==n[g].route.id:!0,u=(p,g)=>n[g].pathname!==p.pathname||n[g].route.path?.endsWith("*")&&n[g].params["*"]!==p.params["*"];return l==="assets"?e.filter((p,g)=>c(p,g)||u(p,g)):l==="data"?e.filter((p,g)=>{let v=r.routes[p.route.id];if(!v||!v.hasLoader)return!1;if(c(p,g)||u(p,g))return!0;if(p.route.shouldRevalidate){let y=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(o,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function IB(o,e,{includeHydrateFallback:n}={}){return DB(o.map(r=>{let s=e.routes[r.route.id];if(!s)return[];let l=[s.module];return s.clientActionModule&&(l=l.concat(s.clientActionModule)),s.clientLoaderModule&&(l=l.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(l=l.concat(s.hydrateFallbackModule)),s.imports&&(l=l.concat(s.imports)),l}).flat(1))}function DB(o){return[...new Set(o)]}function RB(o){let e={},n=Object.keys(o).sort();for(let r of n)e[r]=o[r];return e}function NB(o,e){let n=new Set;return new Set(e),o.reduce((r,s)=>{let l=JSON.stringify(RB(s));return n.has(l)||(n.add(l),r.push({key:l,link:s})),r},[])}function G_(){let o=k.useContext(oo);return xg(o,"You must render this element inside a <DataRouterContext.Provider> element"),o}function jB(){let o=k.useContext(Dl);return xg(o,"You must render this element inside a <DataRouterStateContext.Provider> element"),o}var Ig=k.createContext(void 0);Ig.displayName="FrameworkContext";function U_(){let o=k.useContext(Ig);return xg(o,"You must render this element inside a <HydratedRouter> element"),o}function LB(o,e){let n=k.useContext(Ig),[r,s]=k.useState(!1),[l,c]=k.useState(!1),{onFocus:u,onBlur:p,onMouseEnter:g,onMouseLeave:v,onTouchStart:y}=e,b=k.useRef(null);k.useEffect(()=>{if(o==="render"&&c(!0),o==="viewport"){let S=O=>{O.forEach(x=>{c(x.isIntersecting)})},C=new IntersectionObserver(S,{threshold:.5});return b.current&&C.observe(b.current),()=>{C.disconnect()}}},[o]),k.useEffect(()=>{if(r){let S=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(S)}}},[r]);let E=()=>{s(!0)},P=()=>{s(!1),c(!1)};return n?o!=="intent"?[l,b,{}]:[l,b,{onFocus:rs(u,E),onBlur:rs(p,P),onMouseEnter:rs(g,E),onMouseLeave:rs(v,P),onTouchStart:rs(y,E)}]:[!1,b,{}]}function rs(o,e){return n=>{o&&o(n),n.defaultPrevented||e(n)}}function AB({page:o,...e}){let{router:n}=G_(),r=k.useMemo(()=>I_(n.routes,o,n.basename),[n.routes,o,n.basename]);return r?k.createElement($B,{page:o,matches:r,...e}):null}function MB(o){let{manifest:e,routeModules:n}=U_(),[r,s]=k.useState([]);return k.useEffect(()=>{let l=!1;return xB(o,e,n).then(c=>{l||s(c)}),()=>{l=!0}},[o,e,n]),r}function $B({page:o,matches:e,...n}){let r=ar(),{future:s,manifest:l,routeModules:c}=U_(),{basename:u}=G_(),{loaderData:p,matches:g}=jB(),v=k.useMemo(()=>Dw(o,e,g,l,r,"data"),[o,e,g,l,r]),y=k.useMemo(()=>Dw(o,e,g,l,r,"assets"),[o,e,g,l,r]),b=k.useMemo(()=>{if(o===r.pathname+r.search+r.hash)return[];let S=new Set,C=!1;if(e.forEach(x=>{let R=l.routes[x.route.id];!R||!R.hasLoader||(!v.some(M=>M.route.id===x.route.id)&&x.route.id in p&&c[x.route.id]?.shouldRevalidate||R.hasClientLoader?C=!0:S.add(x.route.id))}),S.size===0)return[];let O=kB(o,u,s.unstable_trailingSlashAwareDataRequests,"data");return C&&S.size>0&&O.searchParams.set("_routes",e.filter(x=>S.has(x.route.id)).map(x=>x.route.id).join(",")),[O.pathname+O.search]},[u,s.unstable_trailingSlashAwareDataRequests,p,r,l,v,e,o,c]),E=k.useMemo(()=>IB(y,l),[y,l]),P=MB(y);return k.createElement(k.Fragment,null,b.map(S=>k.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),E.map(S=>k.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),P.map(({key:S,link:C})=>k.createElement("link",{key:S,nonce:n.nonce,...C,crossOrigin:C.crossOrigin??n.crossOrigin})))}function FB(...o){return e=>{o.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var zB=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zB&&(window.__reactRouterVersion="7.13.1")}catch{}function BB({basename:o,children:e,unstable_useTransitions:n,window:r}){let s=k.useRef();s.current==null&&(s.current=Sz({window:r,v5Compat:!0}));let l=s.current,[c,u]=k.useState({action:l.action,location:l.location}),p=k.useCallback(g=>{n===!1?u(g):k.startTransition(()=>u(g))},[n]);return k.useLayoutEffect(()=>l.listen(p),[l,p]),k.createElement(mB,{basename:o,children:e,location:c.location,navigationType:c.action,navigator:l,unstable_useTransitions:n})}var W_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,H_=k.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:s,reloadDocument:l,replace:c,unstable_mask:u,state:p,target:g,to:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:E,...P},S){let{basename:C,navigator:O,unstable_useTransitions:x}=k.useContext(Zt),R=typeof v=="string"&&W_.test(v),M=j_(v,C);v=M.to;let F=eB(v,{relative:s}),j=ar(),N=null;if(u){let oe=Il(u,[],j.unstable_mask?j.unstable_mask.pathname:"/",!0);C!=="/"&&(oe.pathname=oe.pathname==="/"?C:Fn([C,oe.pathname])),N=O.createHref(oe)}let[z,U,K]=LB(r,P),Q=WB(v,{replace:c,unstable_mask:u,state:p,target:g,preventScrollReset:y,relative:s,viewTransition:b,unstable_defaultShouldRevalidate:E,unstable_useTransitions:x});function re(oe){e&&e(oe),oe.defaultPrevented||Q(oe)}let ne=!(M.isExternal||l),ae=k.createElement("a",{...P,...K,href:(ne?N:void 0)||M.absoluteURL||F,onClick:ne?re:e,ref:FB(S,U),target:g,"data-discover":!R&&n==="render"?"true":void 0});return z&&!R?k.createElement(k.Fragment,null,ae,k.createElement(AB,{page:F})):ae});H_.displayName="Link";var qB=k.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:s=!1,style:l,to:c,viewTransition:u,children:p,...g},v){let y=Os(c,{relative:g.relative}),b=ar(),E=k.useContext(Dl),{navigator:P,basename:S}=k.useContext(Zt),C=E!=null&&XB(y)&&u===!0,O=P.encodeLocation?P.encodeLocation(y).pathname:y.pathname,x=b.pathname,R=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;n||(x=x.toLowerCase(),R=R?R.toLowerCase():null,O=O.toLowerCase()),R&&S&&(R=or(R,S)||R);const M=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let F=x===O||!s&&x.startsWith(O)&&x.charAt(M)==="/",j=R!=null&&(R===O||!s&&R.startsWith(O)&&R.charAt(O.length)==="/"),N={isActive:F,isPending:j,isTransitioning:C},z=F?e:void 0,U;typeof r=="function"?U=r(N):U=[r,F?"active":null,j?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let K=typeof l=="function"?l(N):l;return k.createElement(H_,{...g,"aria-current":z,className:U,ref:v,style:K,to:c,viewTransition:u},typeof p=="function"?p(N):p)});qB.displayName="NavLink";var GB=k.forwardRef(({discover:o="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:s,state:l,method:c=Xa,action:u,onSubmit:p,relative:g,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b,...E},P)=>{let{unstable_useTransitions:S}=k.useContext(Zt),C=KB(),O=QB(u,{relative:g}),x=c.toLowerCase()==="get"?"get":"post",R=typeof u=="string"&&W_.test(u),M=F=>{if(p&&p(F),F.defaultPrevented)return;F.preventDefault();let j=F.nativeEvent.submitter,N=j?.getAttribute("formmethod")||c,z=()=>C(j||F.currentTarget,{fetcherKey:e,method:N,navigate:n,replace:s,state:l,relative:g,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b});S&&n!==!1?k.startTransition(()=>z()):z()};return k.createElement("form",{ref:P,method:x,action:O,onSubmit:r?p:M,...E,"data-discover":!R&&o==="render"?"true":void 0})});GB.displayName="Form";function UB(o){return`${o} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function V_(o){let e=k.useContext(oo);return Ve(e,UB(o)),e}function WB(o,{target:e,replace:n,unstable_mask:r,state:s,preventScrollReset:l,relative:c,viewTransition:u,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}={}){let v=Ts(),y=ar(),b=Os(o,{relative:c});return k.useCallback(E=>{if(_B(E,e)){E.preventDefault();let P=n!==void 0?n:hs(y)===hs(b),S=()=>v(o,{replace:P,unstable_mask:r,state:s,preventScrollReset:l,relative:c,viewTransition:u,unstable_defaultShouldRevalidate:p});g?k.startTransition(()=>S()):S()}},[y,v,b,n,r,s,e,o,l,c,u,p,g])}var HB=0,VB=()=>`__${String(++HB)}__`;function KB(){let{router:o}=V_("useSubmit"),{basename:e}=k.useContext(Zt),n=dB(),r=o.fetch,s=o.navigate;return k.useCallback(async(l,c={})=>{let{action:u,method:p,encType:g,formData:v,body:y}=PB(l,e);if(c.navigate===!1){let b=c.fetcherKey||VB();await r(b,n,c.action||u,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:v,body:y,formMethod:c.method||p,formEncType:c.encType||g,flushSync:c.flushSync})}else await s(c.action||u,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:v,body:y,formMethod:c.method||p,formEncType:c.encType||g,replace:c.replace,state:c.state,fromRouteId:n,flushSync:c.flushSync,viewTransition:c.viewTransition})},[r,s,e,n])}function QB(o,{relative:e}={}){let{basename:n}=k.useContext(Zt),r=k.useContext(Tn);Ve(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),l={...Os(o||".",{relative:e})},c=ar();if(o==null){l.search=c.search;let u=new URLSearchParams(l.search),p=u.getAll("index");if(p.some(v=>v==="")){u.delete("index"),p.filter(y=>y).forEach(y=>u.append("index",y));let v=u.toString();l.search=v?`?${v}`:""}}return(!o||o===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Fn([n,l.pathname])),hs(l)}function XB(o,{relative:e}={}){let n=k.useContext(A_);Ve(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=V_("useViewTransitionState"),s=Os(o,{relative:e});if(!n.isTransitioning)return!1;let l=or(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=or(n.nextLocation.pathname,r)||n.nextLocation.pathname;return rl(s.pathname,c)!=null||rl(s.pathname,l)!=null}var YB=Object.defineProperty,Rw=Object.getOwnPropertySymbols,ZB=Object.prototype.hasOwnProperty,JB=Object.prototype.propertyIsEnumerable,Nw=(o,e,n)=>e in o?YB(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n,eq=(o,e)=>{for(var n in e||(e={}))ZB.call(e,n)&&Nw(o,n,e[n]);if(Rw)for(var n of Rw(e))JB.call(e,n)&&Nw(o,n,e[n]);return o};function tq(o){return k.createElement("svg",eq({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},o),k.createElement("rect",{width:200,height:200,fill:"transparent"}),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.09 64.86V8.56L5.76 78.94h44.26v20.3h14.07v-20.3h8.82V64.86h-8.82Zm110.18 0V8.56L124.1 69.08c.7-3.74 1.07-7.7 1.07-11.76 0-11-2.7-21.1-7.25-28.55-4.5-7.4-11.13-12.63-19-12.63-7.88 0-14.5 5.23-19.01 12.63-4.54 7.45-7.25 17.55-7.25 28.55s2.7 21.1 7.25 28.55c4.5 7.4 11.13 12.62 19 12.62 7.88 0 14.5-5.23 19.01-12.62a44.09 44.09 0 0 0 3.4-6.93h38.86v20.3h14.08v-20.3h8.81V64.86h-8.81Zm-138.57 0L50.02 47.6v17.26H35.7Zm124.5 0h-14.32L160.2 47.6v17.26Zm-49.1-7.54c0 8.84-2.2 16.32-5.19 21.22-3.08 5.08-5.87 5.87-6.98 5.87-1.12 0-3.9-.8-7-5.87-2.98-4.9-5.19-12.38-5.19-21.22 0-8.85 2.21-16.33 5.2-21.23 3.09-5.07 5.87-5.87 6.98-5.87 1.12 0 3.9.8 7 5.87 2.98 4.9 5.19 12.38 5.19 21.23Z",fill:"var(--semi-color-primary-light-default)"}),k.createElement("path",{d:"M178.34 186.57c-1.85 2.2-6.66 1.02-8.13.24a2.46 2.46 0 0 1-.34-.22c-1.94.22-14.94-.5-15.12-.46-6.12 1.43-14.06 1.03-15.2 1-1.36-.05-4.53-1.33-5.75-5.08-1.2-3.67 0-7.12 2.16-13.37l.13-.38-1.43 2.83c-7.37 14.43-11.05 19.7-17.43 20.14-6.38.45-34.34-.09-41.09-.78-6.75-.7-9.42-1.68-9.35-2.83.05-.92 2.98-2.2 4.44-2.72-5.88-1.57-20.16-5.97-30.18-10.98-12.52-6.26-25.14-15.8-21.91-28.92 3.22-13.13 15.76-16.8 25.59-17.38 2.75-.16 5.14-.1 7.16.07 3.76.33 6.21 1.06 7.2 1.53-1.12-6.37-3.33-19.34-3.33-20.21 0-1.1-3.02-10.67-3.64-14.35-.1-.55-1.11-5.6 3.64-5.02 4.75.57 12.4 18.2 15.88 28.7a401.55 401.55 0 0 0 11.15-9.87c.84-1.02 9.36-9.75 14.87-13.84a60.09 60.09 0 0 1 33-11.76c16.29-.81 34.49 2.36 40.9 11.91 6.4 9.55 6.1 34.44 6.44 48.71.35 14.27.84 27.64 2.11 29.76 1.27 2.12 6.45 5.02 9.77 7.14 3.33 2.11 4.45 3.9 4.36 4.2-.1.3-.4.58-2.24 1.08.34.47.12 1.38-2.12 1.6-4.7.48-8.64-.74-11.54-.74Z",fill:"white"}),k.createElement("path",{d:"M192 185.71c-1.6-2.3-9.7-5.34-15.04-5.75-5.34-.41-6.45.53-7.4 1.85-1 1.37-1.05 3.72.3 4.78m22.14-.88c.34.47.12 1.38-2.12 1.6-4.7.48-8.64-.74-11.54-.74-1.85 2.2-6.66 1.02-8.13.24a2.46 2.46 0 0 1-.34-.22m22.13-.88c1.84-.5 2.15-.78 2.24-1.08.09-.3-1.03-2.09-4.36-4.2-3.32-2.12-8.5-5.02-9.77-7.14-1.27-2.12-1.76-15.49-2.1-29.76-.36-14.27-.06-39.16-6.46-48.7-6.4-9.56-24.6-12.73-40.89-11.92a60.09 60.09 0 0 0-33 11.76c-5.5 4.09-14.03 12.82-14.87 13.84-.37.46-5.43 4.9-11.15 9.87-3.49-10.5-11.13-28.13-15.88-28.7-4.75-.58-3.73 4.47-3.64 5.02.62 3.68 3.64 13.26 3.64 14.35 0 .87 2.21 13.84 3.32 20.2-.98-.46-3.43-1.2-7.19-1.52m19.34 57.21c-5.88-1.57-20.16-5.97-30.18-10.98-12.52-6.26-25.14-15.8-21.91-28.92 3.22-13.13 15.76-16.8 25.59-17.38 2.75-.16 5.14-.1 7.16.07m19.34 57.21c-1.46.52-4.39 1.8-4.44 2.72-.07 1.15 2.6 2.14 9.35 2.83 6.75.7 34.71 1.23 41.09.78 6.38-.44 10.06-5.71 17.43-20.14l1.43-2.83m-64.86 16.64c5.89-2.49 12.35-6.32 16.49-10.11 5.07-4.65 9.55-13.46 9.96-14.28l.82-1.56m43.43 4.15c-.47-3-1.21-7.33.37-14.67 1.47-6.81 6.6-15.3 6.65-11.03.05 4-6.05 17.35-12.86 30.86m0 0c-2.25 6.5-3.51 10-2.3 13.75 1.23 3.75 4.4 5.03 5.76 5.07 1.14.04 9.08.44 15.2-.99m0 0a19.5 19.5 0 0 0 3.27-1.03c6.09-2.63 10.92-8.55 13.53-24.26 2.62-15.71 1.5-42.36-10.29-50.78-11.78-8.41-21.32-6.07-34.03 5.8-5.34 4.98-11.86 14.52-17.42 23.52m44.94 46.75c.18-.04 13.19.68 15.12.46m-60.06-47.2c-.8-3.66-1.44-7.16-1.94-10.43m1.94 10.42c-1.24 2-2.43 3.98-3.55 5.87m.32-30.9c0 3.75.41 8.8 1.3 14.61m0 0c-2.32 2.46-7.78 7.15-13.67 11.55m-42.32-12.78s1.24 7.12 3.87 11.42a29.93 29.93 0 0 0 6.61 7.8m36.13 12.04c-6.87-3.1-17.87-6.8-22.51-8.27m22.51 8.27a394.7 394.7 0 0 1 7.76-13.74M76 150.72c.39-.06.78-.14 1.17-.23 3.97-.93 10.76-5.29 17.05-9.98m-18.22 10.2c-4.7.8-9.36-.34-13.62-3.76m0 0c-3.29-.85-11.28-2.39-12.86-2.41m56.75.71c-2.32-.94-9-3.55-12.05-4.74",stroke:"#515151"}),k.createElement("path",{d:"m77.74 73.31 23.73 43.2-1.7 2.5-22.73 9.55-24.58-44.48 21.9-10.77h3.38Z",fill:"#E6E8EA"}),k.createElement("path",{d:"M74.35 73.31h3.4l23.72 43.2-1.7 2.5m-25.42-45.7-21.9 10.77 24.59 44.48L99.78 119m-25.43-45.7 25.43 45.7",stroke:"#515151"}),k.createElement("path",{d:"M83.9 116.95c.96 1.97-4.91 4.57-8.32 6.18-1.33.63-2.1.98-2.7 1.2.9 3.3 1.24 8.14-4.48 9.82-5.73 1.69-15.07-1.02-18-9.6-2.95-8.6.01-19.97 9.05-27.04 5.67-4.42 15.01-5.77 19.42-4.05 2.15.82 1.38 2.71-.56 4.44a58.1 58.1 0 0 1-4.53 3.58c.4-.01.8-.02 1.23 0 4.13.06 7.26 1.11 7.42 3.14.07.94-.8 2.13-1.95 3.45-.62.71-1.28 1.34-1.95 1.88 2.8-.22 5.94 1.05 2.9 4.2-.41.43-.85.83-1.29 1.2 1.73.02 3.24.56 3.75 1.6Z",fill:"white"}),k.createElement("path",{d:"M69.73 125.1c1.65-.34 2.2-.4 3.14-.76m0 0c.6-.23 1.38-.58 2.7-1.21 3.42-1.6 9.3-4.21 8.32-6.17-.86-1.76-4.53-2.09-7.33-.97-2.84 1.13-3.58 2.24-3.46 2.56.12.31 4.75-.69 8.34-4.4 3.4-3.54-.96-4.7-3.9-4.06-2.26.5-6.4 2.06-6.16 2.85.16.5 5.33-.54 9.1-4.87 1.14-1.32 2.02-2.51 1.95-3.45-.16-2.03-3.3-3.08-7.42-3.15-8.83-.16-11.56 4.78-11.16 5.1 1.1.92 9.36-4.15 14.46-8.67 1.94-1.73 2.71-3.62.56-4.44-4.4-1.72-13.75-.37-19.42 4.05-9.04 7.07-12 18.44-9.06 27.03 2.94 8.6 12.28 11.3 18 9.61 5.73-1.68 5.4-6.53 4.48-9.81Z",stroke:"#515151"}),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M106.48 120.15c-.2 1.56-.53 3.98-1.2 6.51-.68 2.53-1.71 5.16-3.3 7.14l.2.19 5.67-4.97-1.1-8.87h-.27Zm31.09 45.32-.25-.1-11.3 21.27h11.92l-.43-.26c-3.5-2.07-4.07-5.79-3.46-9.77.52-3.4 1.9-6.95 3-9.77l.52-1.37Zm-85.81-37.9-.24.13a55.3 55.3 0 0 0 1.65 6.39l.01.04.05.03c1.63.84 4.4 1.85 7.45 2.14 3.05.3 6.39-.12 9.1-2.15l-.12-.24c-3.14 1.2-11.14 1.63-17.9-6.33Z",fill:"#515151"}),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m133.54 82.83.02-.16h-.16c-1.82.1-5.84.39-9.87.96-2.02.28-4.04.64-5.79 1.08-1.74.43-3.23.95-4.18 1.58l-.06.04v.07c-.04 1.8.13 3.69.65 5.35a7.28 7.28 0 0 0 2.8 4.05c2.81 1.86 6.69 1.62 9.98-.58 3.3-2.2 6.04-6.37 6.61-12.4Z",fill:"#515151"}),k.createElement("path",{d:"M126.66 84.73a9.79 9.79 0 0 1-9.7 9.87 9.79 9.79 0 0 1-9.7-9.87 9.79 9.79 0 0 1 9.7-9.87c5.35 0 9.7 4.41 9.7 9.87Z",fill:"white",stroke:"#515151"}),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M109.41 70.6c.66.25 1.25.47 1.9.26.52-.18.83-.7 1.18-1.3.75-1.27 1.73-2.93 5.56-2.56 3.86.38 4.6 2.17 5.1 3.43.21.5.38.9.69 1.12.48.32.84.33 1.26.35.55.02 1.2.05 2.37.75 1.41.85 2.49 5.65.23 9.93l.26.43c-.45 2.15-3.05 4.37-3.05 4.14 0-3.04 0-4.75-2.92-7.43-4.26 1.6-10.89 1.13-13.94.14-4-1.28-5.98-6.81-2.53-9 1.72-1.1 2.88-.65 3.9-.26Z",fill:"#515151"}),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M116.7 81.6a.41.41 0 1 0-.74.4c.2.39.47.74.9.95.41.2.93.25 1.58.17a.41.41 0 1 0-.1-.82c-.58.07-.9.01-1.12-.09-.2-.1-.36-.28-.53-.6Zm-6.57 4.22a1.07 1.07 0 0 0 1-1.13 1.06 1.06 0 0 0-1.1-1.02c-.59.03-1.03.54-1 1.13.02.6.52 1.05 1.1 1.02Zm6.82.73a1.07 1.07 0 0 0 1-1.13 1.06 1.06 0 0 0-1.1-1.01c-.58.02-1.03.53-1 1.12.03.6.52 1.05 1.1 1.02Z",fill:"#515151"}),k.createElement("ellipse",{cx:127.42,cy:86.0081,rx:2.47934,ry:2.47934,fill:"white",stroke:"#515151"}),k.createElement("circle",{r:4.67102,transform:"matrix(0.707106 0.707108 -0.707106 0.707108 75.0508 75.7794)",fill:"var(--semi-color-primary)",stroke:"var(--semi-color-primary)",strokeWidth:3}),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M77.9 72.97a1.1 1.1 0 0 0-1.57 0l-1.26 1.27-1.31-1.3a1.1 1.1 0 1 0-1.57 1.56l1.31 1.3-1.3 1.31a1.1 1.1 0 0 0 1.56 1.57l1.3-1.3 1.27 1.26a1.1 1.1 0 1 0 1.57-1.57l-1.26-1.26 1.26-1.27a1.1 1.1 0 0 0 0-1.57Z",fill:"white"}),k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.41 49.11a32.26 32.26 0 0 0-19-9.84 2.14 2.14 0 0 0-2.42 2.02c-.07 1.2.82 2.2 1.97 2.37a27.86 27.86 0 0 1 16.13 8.36c.83.87 2.24.99 3.17.15.88-.79.99-2.17.15-3.06Zm-35.8-8.52a32.5 32.5 0 0 0-18.74 15.73 2.14 2.14 0 0 0 1.01 2.93c1.11.52 2.4.02 2.96-1.02a28.08 28.08 0 0 1 15.96-13.4 2.28 2.28 0 0 0 1.53-2.72 2.14 2.14 0 0 0-2.72-1.52Zm27.75 15.78c-3.02-3.14-7-5.38-11.53-6.22a2.11 2.11 0 0 0-2.47 2 2.33 2.33 0 0 0 1.9 2.38c3.41.69 6.43 2.37 8.75 4.72.85.85 2.26 1 3.2.15.87-.78 1-2.15.15-3.03Zm-24.64-4.65a21.63 21.63 0 0 0-11.66 9.8 2.1 2.1 0 0 0 .99 2.94c1.12.52 2.4.01 2.98-1 2-3.45 5.17-6.11 8.91-7.5 1.1-.4 1.81-1.56 1.5-2.75a2.1 2.1 0 0 0-2.72-1.5Zm16.63 11.95a10.69 10.69 0 0 0-4-2.47c-1.35-.47-2.56.62-2.63 1.9-.07 1.14.73 2.04 1.65 2.44.56.25 1.07.56 1.52.94.89.74 2.33 1 3.32.11.82-.74 1-2.07.14-2.92Zm-14.28-.76c-1.82.83-3.39 2.16-4.5 3.83-.73 1.08-.16 2.42.9 2.92 1.14.53 2.38-.02 3.05-.88a6.35 6.35 0 0 1 1.93-1.63c.95-.52 1.68-1.63 1.37-2.83-.3-1.15-1.54-1.95-2.75-1.4Z",fill:"var(--semi-color-primary)"}))}var nq=tq;function rq(){return document.getElementById(_g)?.contentWindow}class iq{ws;connectTimeoutTimer;isTimeout=!1;init(e){this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),this.ws&&(this.ws.close(),this.ws=void 0),this.isTimeout=!1;const n=`ws://${e.clientHost}:${e.clientWsPort||e.clientHttpPort-1}`;console.info(`⌛️ ${L("startConnectClientWS",{wsURL:n})}`);const r=new WebSocket(n);this.connectTimeoutTimer=setTimeout(()=>{r.readyState!==WebSocket.OPEN&&(this.isTimeout=!0,r.close(),console.error(`${L("clientConnectTimeout")||"客户端连接超时"}`),Oe.emit("connectionChange",{node:Pe.get("isNodeWSConnected"),client:!1,from:"client",reason:"timeout"}),Ew())},5e3),r.onclose=()=>{this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),this.isTimeout||(console.error(`${L("clientServerDisconnected")}`),Oe.emit("connectionChange",{node:Pe.get("isNodeWSConnected"),client:!1,from:"client",reason:"close"}),Ew())},r.onerror=()=>{if(this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),!this.isTimeout){const s=L("clientServerStartError");Oe.emit("connectionChange",{node:Pe.get("isNodeWSConnected"),client:!1,from:"client",reason:"error"}),console.error(s)}},this.ws=r,r.onopen=()=>{this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),this.isTimeout||(console.log(`✅ ${L("clientConnectedSuccess")}`),Oe.emit("connectionChange",{node:Pe.get("isNodeWSConnected"),client:!0,from:"client",reason:"open"}),r.send(JSON.stringify({stage:"connecting",status:"success",message:"Browser connected to Client Server Successfully"})))},r.onmessage=function(s){try{const l=JSON.parse(s.data),c=rq();switch(l?.method){case"subscribeHandler":c?.__DEV__?.subscribeHandler?.(l?.payload?.event,l?.payload?.data);break;case"invokeHandler":c?.__DEV__?.invokeHandler?.(l?.payload?.callbackId,l?.payload?.data);break;default:break}}catch(l){console.error(l)}}}send(e){this.ws?.readyState===WebSocket.OPEN&&(e.from="browser",this.ws?.send(JSON.stringify(e)))}close(){this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),this.ws?.close(),this.ws=void 0}}const xs=new iq,oq={start:{msgKey:"uploadGameStart"},success:{msgKey:"uploadGameSuccess",handle:o=>{const{packages:e,clientKey:n}=o||{};Pe.setMultiple({packages:e,clientKey:n,isResourcesReady:!0}),Oe.emit("setupStatusChange",{isScriptsReady:Pe.get("isScriptsReady"),isResourcesReady:!0})}},process:{msgKey:"uploadProcess"},error:{msgKey:"uploadError",handle:o=>{const{msg:e}=o||{};Pe.set("isResourcesReady",!1),Oe.emit("setupStatusChange",{isScriptsReady:Pe.get("isScriptsReady"),isResourcesReady:!1,isResourcesFailed:!0})}},restart:{msgKey:"uploadGameRestart"}};function sq(o){const{status:e,payload:n}=o,r=oq[e];if(!r){console.warn(`Unknown upload status: ${e}`);return}const s=L(r.msgKey);Oe.emit("uploadGame",{status:e,msg:s,progress:n?.progress}),r.handle&&r.handle(n)}class aq{ws;init(){const e=Pe.get("nodeWsPort");console.info(`⌛️ ${L("nodeServerStartConnect")}`);let n=!1;return this.ws=new WebSocket(`ws://localhost:${e}`),this.ws.onclose=()=>{console.error(`❌ ${L("nodeServerDisconnect")}`),Oe.emit("connectionChange",{node:!1,client:Pe.get("isClientWSConnected"),from:"node",reason:n?"error":"close"})},this.ws.onerror=()=>{n=!0;const r=L("nodeServerStartError");console.error(r),Oe.emit("connectionChange",{node:!1,client:Pe.get("isClientWSConnected"),from:"node",reason:"error"})},this.ws.onopen=()=>{console.log(`✅ ${L("nodeServerConnectedSuccess")}`),Oe.emit("connectionChange",{node:!0,client:Pe.get("isClientWSConnected"),from:"node",reason:"open"}),this.ws?.send(JSON.stringify({event:"connected",method:"connected",from:"browser"}))},this.ws.onmessage=r=>{if(r.data){const s=JSON.parse(r.data);switch(s.method){case"uploadStatus":{sq(s);break}case"compilationStatus":{Oe.emit("compilationStatus",s.payload);break}case"unitySplitStatus":{Oe.emit("unitySplitStatus",s.payload);break}case"resourceChange":{$n.info("Node WS resourceChange",s?.payload),Oe.emit("resourceChange",{});break}case"scanQRCodeSuccess":{const{clientWsPort:c,clientHost:u,clientHttpPort:p}=s.payload;Pe.setMultiple({clientHost:u,clientWsPort:c,clientHttpPort:p}),xs.init({clientWsPort:c,clientHost:u,clientHttpPort:p}),Oe.emit("scanQRCode",{status:"success"});break}case"scanQRCodeFailed":{const{msg:c}=s.payload;Oe.emit("scanQRCode",{status:"failed",msg:c});break}}}},!0}send(e){e.from="browser",this.ws?.send(JSON.stringify(e))}close(){this.ws?.close(),this.ws=void 0}}const Qi=new aq,lq=["krypton.js","ttmg-core.js"];async function jw(o){try{const e=w_();console.log(`⌛️ ${L("startDebug")}`),console.log(`⌛️ ${L("initClientEnv")}`);const n=await Yi({url:`${e}/game/cwd`,method:"POST",data:{command:"start"}});if(console.log(`✅ ${L("initClientEnvSuccess")}`),xs.send({method:"setDebugSettings",payload:o.debugSetting}),o.debugMode==="clientPreview"||o.debugMode==="clientDebug")Pe.set("isScriptsReady",!0),Qi.send({method:"startUpload"});else{console.log(`⌛️ ${L("startInitJSDevEnv")}`);const s=document.getElementById(_g).contentWindow;s.__DEV__={isEnable:!0,server:e,nodeStaticBaseUrl:Pe.get("nodeStaticBaseUrl")},console.log(`✅ ${L("initJSDevEnvSuccess")}`);const l=await cq(s,lq,e),c=Object.values(l).some(u=>!u);Pe.set("isScriptsReady",Object.values(l).every(u=>u)),Oe.emit("setupStatusChange",{isScriptsReady:Pe.get("isScriptsReady"),isResourcesReady:Pe.get("isResourcesReady"),isScriptsFailed:c}),c||(console.log(`✅ ${L("setDevScriptsSuccess")}`),Qi.send({method:"startUpload"}))}}catch(e){console.log(`❌ ${L("setDevEnvFailed")}`,e?.message??e)}}async function cq(o,e,n){const r={};for(const s of e)try{console.log(`⏳ ${L("startLoadDevScripts")}: ${s}`);const l=await fetch(`${n}/game/scripts/${s}`);if(!l.ok){console.error(`${L("loadDevScriptsFailed")}: ${s}`),r[s]=!1;continue}const c=await l.text();if(!c){console.error(`${L("loadDevScriptsEmpty")}: ${s}`),r[s]=!1;continue}console.log(`✅ ${L("loadDevScriptsSuccess")}: ${s}`);const u=o.document.createElement("script");u.id=s,u.type="text/javascript",u.text=c,o.document.body.appendChild(u),r[s]=!0,console.log(`✅ ${L("loadDevScriptsInitSuccess")}: ${s}`)}catch(l){console.error(`${L("loadDevScriptsFailed")}: ${s}`,l),r[s]=!1}return r}function uq(){const o=()=>typeof document<"u"?document.hidden:!1,[e,n]=k.useState(o);return k.useEffect(()=>{const r=()=>{n(document.hidden),xs.send({method:"sendPageVisibility",payload:{isHidden:document.hidden}})};return document.addEventListener("visibilitychange",r),()=>{document.removeEventListener("visibilitychange",r)}},[]),e}function dq(){const[o,e]=k.useState([]),n=k.useRef([]),r=k.useRef([]),s=k.useRef([]),l=k.useRef([]),c=k.useCallback(()=>{const b=[...n.current,...r.current,...s.current,...l.current],E=new Map;b.forEach(P=>{const S=P?.text?.trim();if(!S)return;const C=E.get(S);if(!C){E.set(S,{text:S,required:P.required,detail:P.detail});return}!C.required&&P.required&&E.set(S,{text:S,required:!0,detail:C.detail??P.detail})}),e(Array.from(E.values()))},[]),u=k.useCallback(b=>{const E=[],P=!b?.terms_of_service_link?.trim(),S=!b?.privacy_policy_link?.trim();return P&&S?(E.push({text:L("policyDependencyTermsPrivacyRequired"),required:!0}),E):(P&&E.push({text:L("policyDependencyTermsRequired"),required:!0}),S&&E.push({text:L("policyDependencyPrivacyRequired"),required:!0}),E)},[]),p=k.useCallback(b=>{const E=[],P=!b?.name?.trim(),S=!b?.display_icon_url?.trim()&&!b?.icon_url?.trim(),C=!b?.description?.trim();return P&&E.push(L("topBasicInfoNameField")),S&&E.push(L("topBasicInfoIconField")),C&&E.push(L("topBasicInfoDescriptionField")),E.length===0?[]:[{text:L("topBasicInfoMissing",{fields:E.join(L("topBasicInfoFieldJoiner"))}),required:!1}]},[]),g=k.useCallback(b=>Eg(b)?[]:[{text:L("topLoginStatusWarning"),required:!1}],[]),v=k.useCallback(b=>{r.current=u(b),s.current=p(b),c()},[p,u,c]),y=k.useCallback(({currentUser:b,checkResult:E=[]})=>{l.current=g(b),n.current=E.filter(P=>P?.passed===!1).map(P=>({text:P.msg,required:P.required===!0,detail:P.detail})),c()},[g,c]);return{topErrorItems:o,updateGameDetailTopErrors:v,updateConfigTopErrors:y}}function pq({onSuccess:o}){const{state:{user:e},hideLoading:n,setError:r,setGameDetail:s}=un(),l=k.useRef(!1),c=k.useRef(!1),u=k.useCallback(p=>{if(l.current){c.current=!0;return}l.current=!0,Yi({url:"/game/detail",method:"GET"}).then(g=>{if(g.error){n();const{errorCode:v,errorMsg:y}=g.error,b=x_({errorCode:v,user:p??e}),E=mz({errorCode:v,errorMsg:y,clientKey:g.error.clientKey,user:p??e});s({client_key:g.error.clientKey,has_error:!0,error_msg:y,error_code:v}),r({text:b==="unknown"?E:""});return}r({text:""}),s(g.data),o(g.data),n()}).finally(()=>{l.current=!1,c.current&&(c.current=!1,u(p))})},[n,o,r,s,e]);return{fetchGameDetail:u}}function fq({fetchGameDetail:o,updateConfigTopErrors:e}){const{showLoading:n,hideLoading:r,setError:s,setSchema:l,setUser:c,setPackages:u,setDevToolVersion:p,setEngine:g,setDebugMode:v}=un(),[y,b]=k.useState(""),E=k.useRef(!1);return k.useEffect(()=>{E.current||(E.current=!0,n(),Yi({url:"/game/config",method:"GET"}).then(P=>{if(P.error){r(),s({visible:!0,text:L("getDevGameConfigFailed")+`: ${P.error.errorMsg}`}),b(L("getDevGameConfigFailed")),console.log(`❌ ${L("getDevGameConfigFailed")}: ${P.error.errorMsg}`);return}const{schema:S,nodeWsPort:C,user:O,packages:x,devToolVersion:R,clientKey:M,engine:F,nodeStaticBaseUrl:j,checkResult:N,lang:z}=P.data;if(J7(z),gz(),console.log(`✅ ${L("getDevGameConfigSuccess")}`),z||Yi({url:"/game/config-fillback",method:"POST",data:{lang:navigator.language}}),l(S),Pe.setMultiple({nodeWsPort:C,email:O?.email,clientKey:M,nodeStaticBaseUrl:j}),c(O),p(R),u(x),g(F),!T_()){const U=F==="unity"?ir.clientPreview:ir.browserDebug;v(U),O_(U)}o(O),e({currentUser:O,checkResult:N}),r()}))},[o,r,p,g,v,s,u,l,c,n,e]),{isServerError:!!y,serverErrorMsg:y}}function hq({onResourceChange:o}){k.useEffect(()=>{const e=()=>{o()};return Oe.on("resourceChange",e),()=>{Oe.off("resourceChange",e)}},[o])}const gq="modulepreload",mq=function(o){return"/"+o},Lw={},Jt=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){let p=function(g){return Promise.all(g.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");s=p(n.map(g=>{if(g=mq(g),g in Lw)return;Lw[g]=!0;const v=g.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${y}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":gq,v||(b.as="script"),b.crossOrigin="",b.href=g,u&&b.setAttribute("nonce",u),document.head.appendChild(b),v)return new Promise((E,P)=>{b.addEventListener("load",E),b.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${g}`)))})}))}function l(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return s.then(c=>{for(const u of c||[])u.status==="rejected"&&l(u.reason);return e().catch(l)})},K_=()=>{const{state:{loading:o}}=un();return o.visible?T.jsx("div",{className:"loading-container",children:T.jsxs("div",{className:"loading-content",children:[T.jsx(Mr,{size:"large"}),T.jsx("div",{className:"loading-text",children:o.text})]})}):null},vq=w.memo(()=>{const{setMessage:o,hideLoading:e,state:{gameDetail:n,debugSetting:r,isConnected:s,selectedLaunchOption:l,debugMode:c}}=un();uq();const[u,p]=k.useState(""),g=P=>{if(!P.client||!P.node){Pe.set("hasSetup",!1);return}if(Pe.get("hasSetup"))return;Pe.set("hasSetup",!0),(async()=>(e(),o({type:"success",desc:L("setupDevEnv")}),await jw({debugSetting:r,debugMode:c})))()},v=k.useCallback(({status:P,msg:S,progress:C})=>{switch(P){case"start":const O=`⌛️ ${L("uploadStart")}`;o({type:"info",desc:O}),console.log(O);break;case"success":o({type:"success",desc:L("uploadSuccess")}),console.log(`✅ ${L("uploadSuccess")}`);break;case"error":const x=`${L("uploadError")}: ${S}`;o({type:"danger",desc:x}),console.log(x);break;case"restart":break;case"process":const R=`${L("uploadProcess")} ${(C*100).toFixed(0)}%`;o({type:"info",desc:R});break}},[]),y=k.useCallback(({isScriptsReady:P,isResourcesReady:S,isScriptsFailed:C,isResourcesFailed:O})=>{P&&S?($n.info("scripts and resources are ready, send meta"),az(n),o({type:"success",desc:L(c==="clientPreview"?"clientPreviewEnvSetupSuccess":"debugEnvSetupSuccess")})):C?o({type:"danger",desc:L("scriptsSetupFailed")}):O&&o({type:"danger",desc:L("resourcesSetupFailed")})},[n,l,c]),b=()=>{if(!s)return;const P=tr.warning({position:"top",duration:1e4,title:L("gameResourceUpdated"),id:u,onClose:()=>{p("")},content:T.jsxs(T.Fragment,{children:[T.jsx("p",{children:L("gameResourceChange")}),T.jsxs("div",{className:"banner-footer",children:[T.jsx(it,{type:"tertiary",onClick:()=>{tr.close(P)},children:L("notUpload")}),T.jsx(it,{style:{marginLeft:12},type:"warning",onClick:()=>{$n.info("upload"),$n.info("upload iframe onload, 开始重新初始化"),jw({debugSetting:r,debugMode:c}),tr.close(P)},children:L("uploadToClient")})]})]})});p(P)},E=k.useCallback(({status:P,errorMsg:S})=>{P==="start"?(o({type:"info",title:L("gameResourceCompilingTitle"),desc:L("gameResourceCompiling")}),console.warn(`⚠️ ${L("gameResourceCompiling")}`)):P==="end"&&(S?(o({type:"danger",desc:S}),console.error(`❌ ${S}`)):(o({type:"success",title:L("gameResourceCompileSuccessTitle"),desc:L("gameResourceCompileSuccess")}),console.log(`✅ ${L("gameResourceCompileSuccess")}`)))},[]);return k.useEffect(()=>(Oe.on("connectionChange",g),Oe.on("compilationStatus",E),Oe.on("resourceChange",b),Oe.on("uploadGame",v),Oe.on("setupStatusChange",y),()=>{Oe.off("compilationStatus",E),Oe.off("resourceChange",b),Oe.off("setupStatusChange",y),Oe.off("uploadGame",v),Oe.off("connectionChange",g)}),[g,E,b,y,v]),null});var Hi={},hh,Aw;function Q_(){return Aw||(Aw=1,hh={L:1,M:0,Q:3,H:2}),hh}var gh,Mw;function X_(){return Mw||(Mw=1,gh={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),gh}var mh,$w;function yq(){if($w)return mh;$w=1;var o=X_();function e(n){this.mode=o.MODE_8BIT_BYTE,this.data=n}return e.prototype={getLength:function(n){return this.data.length},write:function(n){for(var r=0;r<this.data.length;r++)n.put(this.data.charCodeAt(r),8)}},mh=e,mh}var vh,Fw;function bq(){if(Fw)return vh;Fw=1;var o=Q_();function e(n,r){this.totalCount=n,this.dataCount=r}return e.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e.getRSBlocks=function(n,r){var s=e.getRsBlockTable(n,r);if(s==null)throw new Error("bad rs block @ typeNumber:"+n+"/errorCorrectLevel:"+r);for(var l=s.length/3,c=new Array,u=0;u<l;u++)for(var p=s[u*3+0],g=s[u*3+1],v=s[u*3+2],y=0;y<p;y++)c.push(new e(g,v));return c},e.getRsBlockTable=function(n,r){switch(r){case o.L:return e.RS_BLOCK_TABLE[(n-1)*4+0];case o.M:return e.RS_BLOCK_TABLE[(n-1)*4+1];case o.Q:return e.RS_BLOCK_TABLE[(n-1)*4+2];case o.H:return e.RS_BLOCK_TABLE[(n-1)*4+3];default:return}},vh=e,vh}var yh,zw;function Sq(){if(zw)return yh;zw=1;function o(){this.buffer=new Array,this.length=0}return o.prototype={get:function(e){var n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)==1},put:function(e,n){for(var r=0;r<n;r++)this.putBit((e>>>n-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},yh=o,yh}var bh,Bw;function Y_(){if(Bw)return bh;Bw=1;for(var o={glog:function(n){if(n<1)throw new Error("glog("+n+")");return o.LOG_TABLE[n]},gexp:function(n){for(;n<0;)n+=255;for(;n>=256;)n-=255;return o.EXP_TABLE[n]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},e=0;e<8;e++)o.EXP_TABLE[e]=1<<e;for(var e=8;e<256;e++)o.EXP_TABLE[e]=o.EXP_TABLE[e-4]^o.EXP_TABLE[e-5]^o.EXP_TABLE[e-6]^o.EXP_TABLE[e-8];for(var e=0;e<255;e++)o.LOG_TABLE[o.EXP_TABLE[e]]=e;return bh=o,bh}var Sh,qw;function Z_(){if(qw)return Sh;qw=1;var o=Y_();function e(n,r){if(n.length==null)throw new Error(n.length+"/"+r);for(var s=0;s<n.length&&n[s]==0;)s++;this.num=new Array(n.length-s+r);for(var l=0;l<n.length-s;l++)this.num[l]=n[l+s]}return e.prototype={get:function(n){return this.num[n]},getLength:function(){return this.num.length},multiply:function(n){for(var r=new Array(this.getLength()+n.getLength()-1),s=0;s<this.getLength();s++)for(var l=0;l<n.getLength();l++)r[s+l]^=o.gexp(o.glog(this.get(s))+o.glog(n.get(l)));return new e(r,0)},mod:function(n){if(this.getLength()-n.getLength()<0)return this;for(var r=o.glog(this.get(0))-o.glog(n.get(0)),s=new Array(this.getLength()),l=0;l<this.getLength();l++)s[l]=this.get(l);for(var l=0;l<n.getLength();l++)s[l]^=o.gexp(o.glog(n.get(l))+r);return new e(s,0).mod(n)}},Sh=e,Sh}var wh,Gw;function wq(){if(Gw)return wh;Gw=1;var o=X_(),e=Z_(),n=Y_(),r={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(l){for(var c=l<<10;s.getBCHDigit(c)-s.getBCHDigit(s.G15)>=0;)c^=s.G15<<s.getBCHDigit(c)-s.getBCHDigit(s.G15);return(l<<10|c)^s.G15_MASK},getBCHTypeNumber:function(l){for(var c=l<<12;s.getBCHDigit(c)-s.getBCHDigit(s.G18)>=0;)c^=s.G18<<s.getBCHDigit(c)-s.getBCHDigit(s.G18);return l<<12|c},getBCHDigit:function(l){for(var c=0;l!=0;)c++,l>>>=1;return c},getPatternPosition:function(l){return s.PATTERN_POSITION_TABLE[l-1]},getMask:function(l,c,u){switch(l){case r.PATTERN000:return(c+u)%2==0;case r.PATTERN001:return c%2==0;case r.PATTERN010:return u%3==0;case r.PATTERN011:return(c+u)%3==0;case r.PATTERN100:return(Math.floor(c/2)+Math.floor(u/3))%2==0;case r.PATTERN101:return c*u%2+c*u%3==0;case r.PATTERN110:return(c*u%2+c*u%3)%2==0;case r.PATTERN111:return(c*u%3+(c+u)%2)%2==0;default:throw new Error("bad maskPattern:"+l)}},getErrorCorrectPolynomial:function(l){for(var c=new e([1],0),u=0;u<l;u++)c=c.multiply(new e([1,n.gexp(u)],0));return c},getLengthInBits:function(l,c){if(1<=c&&c<10)switch(l){case o.MODE_NUMBER:return 10;case o.MODE_ALPHA_NUM:return 9;case o.MODE_8BIT_BYTE:return 8;case o.MODE_KANJI:return 8;default:throw new Error("mode:"+l)}else if(c<27)switch(l){case o.MODE_NUMBER:return 12;case o.MODE_ALPHA_NUM:return 11;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 10;default:throw new Error("mode:"+l)}else if(c<41)switch(l){case o.MODE_NUMBER:return 14;case o.MODE_ALPHA_NUM:return 13;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 12;default:throw new Error("mode:"+l)}else throw new Error("type:"+c)},getLostPoint:function(l){for(var c=l.getModuleCount(),u=0,p=0;p<c;p++)for(var g=0;g<c;g++){for(var v=0,y=l.isDark(p,g),b=-1;b<=1;b++)if(!(p+b<0||c<=p+b))for(var E=-1;E<=1;E++)g+E<0||c<=g+E||b==0&&E==0||y==l.isDark(p+b,g+E)&&v++;v>5&&(u+=3+v-5)}for(var p=0;p<c-1;p++)for(var g=0;g<c-1;g++){var P=0;l.isDark(p,g)&&P++,l.isDark(p+1,g)&&P++,l.isDark(p,g+1)&&P++,l.isDark(p+1,g+1)&&P++,(P==0||P==4)&&(u+=3)}for(var p=0;p<c;p++)for(var g=0;g<c-6;g++)l.isDark(p,g)&&!l.isDark(p,g+1)&&l.isDark(p,g+2)&&l.isDark(p,g+3)&&l.isDark(p,g+4)&&!l.isDark(p,g+5)&&l.isDark(p,g+6)&&(u+=40);for(var g=0;g<c;g++)for(var p=0;p<c-6;p++)l.isDark(p,g)&&!l.isDark(p+1,g)&&l.isDark(p+2,g)&&l.isDark(p+3,g)&&l.isDark(p+4,g)&&!l.isDark(p+5,g)&&l.isDark(p+6,g)&&(u+=40);for(var S=0,g=0;g<c;g++)for(var p=0;p<c;p++)l.isDark(p,g)&&S++;var C=Math.abs(100*S/c/c-50)/5;return u+=C*10,u}};return wh=s,wh}var _h,Uw;function _q(){if(Uw)return _h;Uw=1;var o=yq(),e=bq(),n=Sq(),r=wq(),s=Z_();function l(u,p){this.typeNumber=u,this.errorCorrectLevel=p,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var c=l.prototype;return c.addData=function(u){var p=new o(u);this.dataList.push(p),this.dataCache=null},c.isDark=function(u,p){if(u<0||this.moduleCount<=u||p<0||this.moduleCount<=p)throw new Error(u+","+p);return this.modules[u][p]},c.getModuleCount=function(){return this.moduleCount},c.make=function(){if(this.typeNumber<1){var u=1;for(u=1;u<40;u++){for(var p=e.getRSBlocks(u,this.errorCorrectLevel),g=new n,v=0,y=0;y<p.length;y++)v+=p[y].dataCount;for(var y=0;y<this.dataList.length;y++){var b=this.dataList[y];g.put(b.mode,4),g.put(b.getLength(),r.getLengthInBits(b.mode,u)),b.write(g)}if(g.getLengthInBits()<=v*8)break}this.typeNumber=u}this.makeImpl(!1,this.getBestMaskPattern())},c.makeImpl=function(u,p){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var g=0;g<this.moduleCount;g++){this.modules[g]=new Array(this.moduleCount);for(var v=0;v<this.moduleCount;v++)this.modules[g][v]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(u,p),this.typeNumber>=7&&this.setupTypeNumber(u),this.dataCache==null&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,p)},c.setupPositionProbePattern=function(u,p){for(var g=-1;g<=7;g++)if(!(u+g<=-1||this.moduleCount<=u+g))for(var v=-1;v<=7;v++)p+v<=-1||this.moduleCount<=p+v||(0<=g&&g<=6&&(v==0||v==6)||0<=v&&v<=6&&(g==0||g==6)||2<=g&&g<=4&&2<=v&&v<=4?this.modules[u+g][p+v]=!0:this.modules[u+g][p+v]=!1)},c.getBestMaskPattern=function(){for(var u=0,p=0,g=0;g<8;g++){this.makeImpl(!0,g);var v=r.getLostPoint(this);(g==0||u>v)&&(u=v,p=g)}return p},c.createMovieClip=function(u,p,g){var v=u.createEmptyMovieClip(p,g),y=1;this.make();for(var b=0;b<this.modules.length;b++)for(var E=b*y,P=0;P<this.modules[b].length;P++){var S=P*y,C=this.modules[b][P];C&&(v.beginFill(0,100),v.moveTo(S,E),v.lineTo(S+y,E),v.lineTo(S+y,E+y),v.lineTo(S,E+y),v.endFill())}return v},c.setupTimingPattern=function(){for(var u=8;u<this.moduleCount-8;u++)this.modules[u][6]==null&&(this.modules[u][6]=u%2==0);for(var p=8;p<this.moduleCount-8;p++)this.modules[6][p]==null&&(this.modules[6][p]=p%2==0)},c.setupPositionAdjustPattern=function(){for(var u=r.getPatternPosition(this.typeNumber),p=0;p<u.length;p++)for(var g=0;g<u.length;g++){var v=u[p],y=u[g];if(this.modules[v][y]==null)for(var b=-2;b<=2;b++)for(var E=-2;E<=2;E++)b==-2||b==2||E==-2||E==2||b==0&&E==0?this.modules[v+b][y+E]=!0:this.modules[v+b][y+E]=!1}},c.setupTypeNumber=function(u){for(var p=r.getBCHTypeNumber(this.typeNumber),g=0;g<18;g++){var v=!u&&(p>>g&1)==1;this.modules[Math.floor(g/3)][g%3+this.moduleCount-8-3]=v}for(var g=0;g<18;g++){var v=!u&&(p>>g&1)==1;this.modules[g%3+this.moduleCount-8-3][Math.floor(g/3)]=v}},c.setupTypeInfo=function(u,p){for(var g=this.errorCorrectLevel<<3|p,v=r.getBCHTypeInfo(g),y=0;y<15;y++){var b=!u&&(v>>y&1)==1;y<6?this.modules[y][8]=b:y<8?this.modules[y+1][8]=b:this.modules[this.moduleCount-15+y][8]=b}for(var y=0;y<15;y++){var b=!u&&(v>>y&1)==1;y<8?this.modules[8][this.moduleCount-y-1]=b:y<9?this.modules[8][15-y-1+1]=b:this.modules[8][15-y-1]=b}this.modules[this.moduleCount-8][8]=!u},c.mapData=function(u,p){for(var g=-1,v=this.moduleCount-1,y=7,b=0,E=this.moduleCount-1;E>0;E-=2)for(E==6&&E--;;){for(var P=0;P<2;P++)if(this.modules[v][E-P]==null){var S=!1;b<u.length&&(S=(u[b]>>>y&1)==1);var C=r.getMask(p,v,E-P);C&&(S=!S),this.modules[v][E-P]=S,y--,y==-1&&(b++,y=7)}if(v+=g,v<0||this.moduleCount<=v){v-=g,g=-g;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(u,p,g){for(var v=e.getRSBlocks(u,p),y=new n,b=0;b<g.length;b++){var E=g[b];y.put(E.mode,4),y.put(E.getLength(),r.getLengthInBits(E.mode,u)),E.write(y)}for(var P=0,b=0;b<v.length;b++)P+=v[b].dataCount;if(y.getLengthInBits()>P*8)throw new Error("code length overflow. ("+y.getLengthInBits()+">"+P*8+")");for(y.getLengthInBits()+4<=P*8&&y.put(0,4);y.getLengthInBits()%8!=0;)y.putBit(!1);for(;!(y.getLengthInBits()>=P*8||(y.put(l.PAD0,8),y.getLengthInBits()>=P*8));)y.put(l.PAD1,8);return l.createBytes(y,v)},l.createBytes=function(u,p){for(var g=0,v=0,y=0,b=new Array(p.length),E=new Array(p.length),P=0;P<p.length;P++){var S=p[P].dataCount,C=p[P].totalCount-S;v=Math.max(v,S),y=Math.max(y,C),b[P]=new Array(S);for(var O=0;O<b[P].length;O++)b[P][O]=255&u.buffer[O+g];g+=S;var x=r.getErrorCorrectPolynomial(C),R=new s(b[P],x.getLength()-1),M=R.mod(x);E[P]=new Array(x.getLength()-1);for(var O=0;O<E[P].length;O++){var F=O+M.getLength()-E[P].length;E[P][O]=F>=0?M.get(F):0}}for(var j=0,O=0;O<p.length;O++)j+=p[O].totalCount;for(var N=new Array(j),z=0,O=0;O<v;O++)for(var P=0;P<p.length;P++)O<b[P].length&&(N[z++]=b[P][O]);for(var O=0;O<y;O++)for(var P=0;P<p.length;P++)O<E[P].length&&(N[z++]=E[P][O]);return N},_h=l,_h}var Ua={},Ww;function Cq(){if(Ww)return Ua;Ww=1,Object.defineProperty(Ua,"__esModule",{value:!0});var o=Object.assign||function(g){for(var v=1;v<arguments.length;v++){var y=arguments[v];for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(g[b]=y[b])}return g},e=Ah(),n=l(e),r=gs(),s=l(r);function l(g){return g&&g.__esModule?g:{default:g}}function c(g,v){var y={};for(var b in g)v.indexOf(b)>=0||Object.prototype.hasOwnProperty.call(g,b)&&(y[b]=g[b]);return y}var u={bgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,bgD:n.default.string.isRequired,fgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,fgD:n.default.string.isRequired,size:n.default.number.isRequired,title:n.default.string,viewBoxSize:n.default.number.isRequired,xmlns:n.default.string},p=(0,r.forwardRef)(function(g,v){var y=g.bgColor,b=g.bgD,E=g.fgD,P=g.fgColor,S=g.size,C=g.title,O=g.viewBoxSize,x=g.xmlns,R=x===void 0?"http://www.w3.org/2000/svg":x,M=c(g,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return s.default.createElement("svg",o({},M,{height:S,ref:v,viewBox:"0 0 "+O+" "+O,width:S,xmlns:R}),C?s.default.createElement("title",null,C):null,s.default.createElement("path",{d:b,fill:y}),s.default.createElement("path",{d:E,fill:P}))});return p.displayName="QRCodeSvg",p.propTypes=u,Ua.default=p,Ua}var Hw;function Eq(){if(Hw)return Hi;Hw=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.QRCode=void 0;var o=Object.assign||function(S){for(var C=1;C<arguments.length;C++){var O=arguments[C];for(var x in O)Object.prototype.hasOwnProperty.call(O,x)&&(S[x]=O[x])}return S},e=Ah(),n=y(e),r=Q_(),s=y(r),l=_q(),c=y(l),u=gs(),p=y(u),g=Cq(),v=y(g);function y(S){return S&&S.__esModule?S:{default:S}}function b(S,C){var O={};for(var x in S)C.indexOf(x)>=0||Object.prototype.hasOwnProperty.call(S,x)&&(O[x]=S[x]);return O}var E={bgColor:n.default.oneOfType([n.default.object,n.default.string]),fgColor:n.default.oneOfType([n.default.object,n.default.string]),level:n.default.string,size:n.default.number,value:n.default.string.isRequired},P=(0,u.forwardRef)(function(S,C){var O=S.bgColor,x=O===void 0?"#FFFFFF":O,R=S.fgColor,M=R===void 0?"#000000":R,F=S.level,j=F===void 0?"L":F,N=S.size,z=N===void 0?256:N,U=S.value,K=b(S,["bgColor","fgColor","level","size","value"]),Q=new c.default(-1,s.default[j]);Q.addData(U),Q.make();var re=Q.modules;return p.default.createElement(v.default,o({},K,{bgColor:x,bgD:re.map(function(ne,ae){return ne.map(function(oe,ge){return oe?"":"M "+ge+" "+ae+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:M,fgD:re.map(function(ne,ae){return ne.map(function(oe,ge){return oe?"M "+ge+" "+ae+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:C,size:z,viewBoxSize:re.length}))});return Hi.QRCode=P,P.displayName="QRCode",P.propTypes=E,Hi.default=P,Hi}var Pq=Eq();const Vw=Ze(Pq);function kq(o){const{ip:e,port:n,wsPort:r}=o;Pe.setMultiple({clientHost:e,clientWsPort:r,clientHttpPort:n}),Qi.send({method:"manualConnect",payload:{clientHost:e,clientWsPort:r,clientHttpPort:n}}),xs.init({clientWsPort:r,clientHost:e,clientHttpPort:n}),localStorage.setItem("clientHost",e),localStorage.setItem("clientWsPort",r),localStorage.setItem("clientHttpPort",n)}function Kw(o){const e=String(o.ip||""),n=String(o.port||""),r=String(o.wsPort||"");Pe.setMultiple({clientHost:e,clientWsPort:r,clientHttpPort:n}),localStorage.setItem("clientHost",e),localStorage.setItem("clientWsPort",r),localStorage.setItem("clientHttpPort",n)}const J_=o=>{const{onClose:e,onSuccess:n,onValuesChange:r,onConnectResult:s,getFormApi:l,layout:c="default"}=o,[u,p]=k.useState(!1),[g,v]=k.useState({}),y=(N,z=3e3)=>new Promise(U=>{let K=!1;const Q=setTimeout(()=>{if(!K){K=!0;try{re?.close()}catch{}U({ok:!1,message:L("connectivityTimeout")})}},z);let re=null;try{re=new WebSocket(N),re.onopen=()=>{if(!K){K=!0,clearTimeout(Q);try{re?.close()}catch{}U({ok:!0,message:L("connectivityOK")})}},re.onerror=()=>{K||(K=!0,clearTimeout(Q),U({ok:!1,message:L("connectivityFailed")}))}}catch{clearTimeout(Q),U({ok:!1,message:L("connectivityFailed")})}}),b=async N=>{if(!j(N)){s?.({ok:!1,message:L("connectivityMissingParams")});return}p(!0),kq(N);const{ip:z,wsPort:U}=N,K=await y(`ws://${z}:${U}`);s?.(K),K.ok&&n?.(),p(!1)},E=k.useMemo(()=>({ip:Pe.get("clientHost")||localStorage.getItem("clientHost")||"",port:Pe.get("clientHttpPort")||localStorage.getItem("clientHttpPort")||"",wsPort:Pe.get("clientWsPort")||localStorage.getItem("clientWsPort")||""}),[]),[P,S]=k.useState(E),C=k.useRef(E),O=k.useRef(null),x=k.useRef(null),R=k.useRef(null),M=N=>{const z={...C.current,...N};C.current=z,S(z),v(U=>({...U,...N.ip!==void 0?{ip:void 0}:{},...N.port!==void 0?{port:void 0}:{},...N.wsPort!==void 0?{wsPort:void 0}:{}})),r?.(z),Kw(z)},F=()=>{const N=O.current?.querySelector("input")?.value,z=x.current?.querySelector("input")?.value,U=R.current?.querySelector("input")?.value,K={ip:String(N||""),port:String(z||""),wsPort:String(U||"")};(K.ip!==C.current.ip||K.port!==C.current.port||K.wsPort!==C.current.wsPort)&&M(K)};k.useEffect(()=>{C.current=E,S(E),r?.(E),Kw(E)},[E]),k.useEffect(()=>{const N=[0,80,300,800].map(z=>window.setTimeout(()=>F(),z));return()=>{N.forEach(z=>window.clearTimeout(z))}},[]),k.useEffect(()=>{l?.({getValues:()=>C.current,submitForm:()=>b(C.current)})},[l]);const j=N=>{const z={};return String(N.ip||"").trim()||(z.ip=L("debug.guide.manualBindIPInvalid")),String(N.port||"").trim()||(z.port=L("invalidPort")),String(N.wsPort||"").trim()||(z.wsPort=L("invalidPort")),v(z),Object.keys(z).length===0};return T.jsxs("div",{className:`manual-connection-form manual-connection-form-${c}`,children:[T.jsxs("div",{className:"manual-connection-grid",children:[T.jsxs("div",{className:"manual-connection-field",children:[T.jsxs("div",{className:"manual-connection-label",children:[T.jsx(Ue.Text,{strong:!0,children:"Client IP "}),T.jsx(Ue.Text,{type:"danger",children:"*"})]}),T.jsx("div",{ref:O,children:T.jsx(cs,{value:P.ip,onChange:N=>M({ip:String(N||"")}),onBlur:F,placeholder:"192.168.x.x"})}),g.ip?T.jsx(Ue.Text,{type:"danger",children:g.ip}):null]}),T.jsxs("div",{className:"manual-connection-field",children:[T.jsxs("div",{className:"manual-connection-label",children:[T.jsx(Ue.Text,{strong:!0,children:"Port 1(HTTP 端口) "}),T.jsx(Ue.Text,{type:"danger",children:"*"})]}),T.jsx("div",{ref:x,children:T.jsx(cs,{value:P.port,onChange:N=>M({port:String(N||"")}),onBlur:F,placeholder:"3000"})}),g.port?T.jsx(Ue.Text,{type:"danger",children:g.port}):null]}),T.jsxs("div",{className:"manual-connection-field",children:[T.jsxs("div",{className:"manual-connection-label",children:[T.jsx(Ue.Text,{strong:!0,children:"Port 2(WS 端口) "}),T.jsx(Ue.Text,{type:"danger",children:"*"})]}),T.jsx("div",{ref:R,children:T.jsx(cs,{value:P.wsPort,onChange:N=>M({wsPort:String(N||"")}),onBlur:F,placeholder:"2999"})}),g.wsPort?T.jsx(Ue.Text,{type:"danger",children:g.wsPort}):null]})]}),e?T.jsx("div",{className:"manual-connection-footer",children:T.jsx(it,{onClick:()=>e(),loading:u,children:L("cancel")})}):null]})},Tq=()=>{const{state:{showManualBindIP:o},setShowManualBindIP:e}=un();return T.jsx(Qt,{title:L("manualBindClientDebugServiceTitle"),visible:o,showCancel:!1,onCancel:()=>e(!1),showOk:!1,footer:null,children:T.jsx(J_,{onClose:()=>e(!1),onSuccess:()=>e(!1)})})},Oq="https://bytedance.larkoffice.com/wiki/WvifwWjGri7bTzkPbqKcqVi5ntc";function xq(o){try{return o?(new URL(o).searchParams.get("port")||"").trim():""}catch{return""}}function Iq(o,e){return o?o.ok?"success":o.code==="status"?"warning":"error":e?"running":"idle"}function Dq(o){return o==="success"?L("connectivityOK"):o==="warning"?"Warning":o==="error"?L("connectivityNotOK"):o==="running"?"Running":"Idle"}function Rq(o,e){return o?o.ok?"网络可达":o.msg||L("connectivityFailed"):e?"检测中...":"等待检测"}const Qw=(o,e=3e3)=>new Promise(n=>{let r=!1;const s=setTimeout(()=>{if(!r){r=!0;try{l?.close()}catch{}n({ok:!1,code:"timeout",msg:L("connectivityTimeout")})}},e);let l=null;try{l=new WebSocket(o),l.onopen=()=>{if(!r){r=!0,clearTimeout(s);try{l?.close()}catch{}n({ok:!0,code:"ok"})}},l.onerror=()=>{r||(r=!0,clearTimeout(s),n({ok:!1,code:"error",msg:L("connectivityFailed")}))}}catch{clearTimeout(s),n({ok:!1,code:"error",msg:L("connectivityFailed")})}}),Xw=async o=>{try{const e=new AbortController,n=setTimeout(()=>e.abort(),3e3),r=await fetch(o,{method:"GET",cache:"no-store",signal:e.signal});return clearTimeout(n),r.ok?{ok:!0,code:"ok"}:{ok:!1,code:"status",msg:`${r.status} ${r.statusText}`}}catch(e){return e instanceof DOMException&&e.name==="AbortError"?{ok:!1,code:"timeout",msg:L("connectivityTimeout")}:{ok:!1,code:"error",msg:L("connectivityFailed")}}},eC=({mode:o="page",onClose:e})=>{const n=Ts(),{state:{devSchema:r,schema:s}}=un(),l=o==="modal";k.useEffect(()=>{const V=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=V}},[]);const[c,u]=k.useState(!1),[p,g]=k.useState(!1),[v,y]=k.useState(null),[b,E]=k.useState(0),[P,S]=k.useState(),[C,O]=k.useState(),[x,R]=k.useState(),[M,F]=k.useState(),[j,N]=k.useState(!1),[z,U]=k.useState(null),[K,Q]=k.useState(()=>({ip:String(Pe.get("clientHost")||localStorage.getItem("clientHost")||""),port:String(Pe.get("clientHttpPort")||localStorage.getItem("clientHttpPort")||""),wsPort:String(Pe.get("clientWsPort")||localStorage.getItem("clientWsPort")||"")})),re=k.useMemo(()=>{const V=v?.getValues?.();return{ip:String(V?.ip||K.ip||""),port:String(V?.port||K.port||""),wsPort:String(V?.wsPort||K.wsPort||"")}},[v,K,b]),ne=k.useCallback(V=>{Q(V),E(ie=>ie+1)},[]),ae=k.useMemo(()=>{const{nodeWsPort:V,clientHost:ie,clientHttpPort:ue,clientWsPort:_e}=Pe.getMultiple(["nodeWsPort","clientHost","clientHttpPort","clientWsPort"]);let ye="";try{s&&(ye=(new URL(s).searchParams.get("host")||"").trim())}catch{}return{schemaHost:ye,httpPort:xq(s),nodeWsPort:V,clientHost:ie,clientHttpPort:ue,clientWsPort:_e}},[r,s]);k.useEffect(()=>{if(!v?.getValues)return;const V=v.getValues();V&&(V.ip||V.port||V.wsPort)&&Q({ip:String(V.ip||""),port:String(V.port||""),wsPort:String(V.wsPort||"")})},[v]);const oe=String(re.ip||ae.clientHost||"").trim(),ge=String(re.port||ae.clientHttpPort||"").trim(),me=String(re.wsPort||ae.clientWsPort||"").trim(),W=k.useMemo(()=>{const V=[];return!oe||!me||!ge?(V.push(L("netDiagSuggestNoClientDesc")),V):x?.ok&&M&&!M.ok?(V.push(L("netDiagSuggestHttpOkWsFail1")),V.push(L("netDiagSuggestHttpOkWsFail2")),V):x&&!x.ok&&M&&!M.ok?(V.push(L("netDiagSuggestBothFail1")),V.push(L("netDiagSuggestBothFail2")),V):P&&!P.ok?(V.push(L("netDiagSuggestNodeDesc")),V):(V.push(L("netDiagSuggestOkDesc")),V)},[x,M,P,oe,ge,me]),ee=k.useCallback(async()=>{N(!0),u(!0),S(void 0),O(void 0),R(void 0),F(void 0);const V=await Xw("/game/config");S(V);const ie=ae.nodeWsPort;O(ie?await Qw(`ws://localhost:${ie}`):{ok:!1,code:"error",msg:L("connectivityMissingParams")}),R(oe&&ge?await Xw(`http://${oe}:${ge}/game/scripts/krypton.js`):{ok:!1,code:"error",msg:L("netDiagMissingClientHttp")}),F(oe&&me?await Qw(`ws://${oe}:${me}`):{ok:!1,code:"error",msg:L("netDiagMissingClientWs")}),u(!1)},[ae.nodeWsPort,oe,ge,me]);k.useEffect(()=>{l&&ee()},[l,ee]);const D=k.useMemo(()=>[{key:"node-http",title:L("netDiagCheckNodeHttp"),target:"/game/config",item:P},{key:"node-ws",title:L("netDiagCheckNodeWs"),target:ae.nodeWsPort?`ws://localhost:${ae.nodeWsPort}`:"-",item:C},{key:"client-http",title:L("netDiagCheckClientHttp"),target:oe&&ge?`http://${oe}:${ge}/game/scripts/krypton.js`:"-",item:x},{key:"client-ws",title:L("netDiagCheckClientWs"),target:oe&&me?`ws://${oe}:${me}`:"-",item:M}],[x,M,ae.nodeWsPort,P,C,oe,ge,me]),H=T.jsxs("div",{className:"check-network-container",children:[T.jsxs("div",{className:"check-network-hero",children:[T.jsxs("div",{className:"check-network-hero-head",children:[T.jsxs("div",{className:"check-network-hero-copy",children:[T.jsx("div",{className:"check-network-hero-title",children:L("netDiagTitle")}),T.jsx("div",{className:"check-network-hero-subtitle",children:L("netDiagSubtitle")})]}),l?T.jsx(it,{className:"check-network-close-btn",theme:"borderless",icon:T.jsx(ws,{}),"aria-label":L("cancel"),onClick:e}):null]}),l?null:T.jsx("div",{className:"check-network-back",children:T.jsx(it,{theme:"borderless",onClick:()=>n("/"),children:L("back")})})]}),T.jsxs("section",{className:"check-network-section check-network-tip-card",children:[T.jsx("div",{className:"check-network-tip-title",children:L("netDiagQuickHintTitle")}),T.jsxs("div",{className:"check-network-tip-list",children:[T.jsx("div",{children:L("debug.guide.manualBindIPDesc1")}),T.jsx("div",{children:L("debug.guide.manualBindIPDesc2")}),T.jsx("div",{children:L("debug.guide.manualBindIPDesc3")}),T.jsx("div",{children:L("netDiagQuickHintDesc")})]}),T.jsx("div",{className:"check-network-tip-actions",children:T.jsx(it,{theme:"borderless",onClick:()=>window.open(Oq),children:L("netDiagOpenTroubleshoot")})})]}),T.jsxs("section",{className:"check-network-section",children:[T.jsx("div",{className:"check-network-section-title",children:L("netDiagEnvTitle")}),T.jsxs("div",{className:"check-network-summary-grid",children:[T.jsxs("div",{className:"check-network-summary-card",children:[T.jsx("div",{className:"check-network-summary-title",children:L("netDiagComputerGroup")}),T.jsxs("div",{className:"check-network-kv",children:[T.jsx("span",{children:L("netDiagEnvIP")}),T.jsx("span",{children:ae.schemaHost||"-"})]}),T.jsxs("div",{className:"check-network-kv",children:[T.jsx("span",{children:L("netDiagEnvWsPort")}),T.jsx("span",{children:ae.nodeWsPort||"-"})]}),T.jsxs("div",{className:"check-network-kv",children:[T.jsx("span",{children:L("netDiagEnvHttpPort")}),T.jsx("span",{children:ae.httpPort||"-"})]})]}),T.jsxs("div",{className:"check-network-summary-card",children:[T.jsx("div",{className:"check-network-summary-title",children:L("netDiagClientGroup")}),T.jsxs("div",{className:"check-network-kv",children:[T.jsx("span",{children:"IP"}),T.jsx("span",{children:oe||"-"})]}),T.jsxs("div",{className:"check-network-kv",children:[T.jsx("span",{children:L("netDiagEnvWsPort")}),T.jsx("span",{children:me||"-"})]}),T.jsxs("div",{className:"check-network-kv",children:[T.jsx("span",{children:L("netDiagEnvHttpPort")}),T.jsx("span",{children:ge||"-"})]})]})]})]}),T.jsxs("section",{className:"check-network-section",id:"manual-connect-section",children:[T.jsx("div",{className:"check-network-section-title",children:L("netDiagManualBindEntry")}),T.jsx(J_,{layout:"compact",onSuccess:()=>{if(l){e?.();return}n("/")},onValuesChange:ne,onConnectResult:V=>U(V),getFormApi:y}),T.jsxs("div",{className:"check-network-actions",children:[T.jsx(it,{type:"primary",loading:p,onClick:async()=>{if(v){g(!0);try{await v.submitForm()}finally{g(!1)}}},children:L("manualConnectStart")}),T.jsx(it,{type:"primary",onClick:ee,loading:c,children:L("netDiagRunAll")})]}),z?T.jsx("div",{className:`check-network-inline-result ${z.ok?"success":"error"}`,children:z.ok?L("netDiagSuccessHint"):z.message}):null]}),T.jsxs("section",{className:"check-network-section",children:[T.jsx("div",{className:"check-network-section-title",children:L("netDiagChecksTitle")}),T.jsx("div",{className:"check-network-checks",children:D.map(V=>{const ie=Iq(V.item,c&&j);return T.jsxs("div",{className:`check-network-check-card check-network-check-${ie}`,children:[T.jsxs("div",{className:"check-network-check-head",children:[T.jsx("span",{className:"check-network-check-title",children:V.title}),T.jsx("span",{className:`check-network-check-badge check-network-check-badge-${ie}`,children:Dq(ie)})]}),T.jsx("div",{className:"check-network-check-target",children:V.target}),T.jsx("div",{className:"check-network-check-detail",children:Rq(V.item,c&&j)})]},V.key)})})]}),T.jsxs("section",{className:"check-network-section",children:[T.jsx("div",{className:"check-network-section-title",children:L("netDiagSuggestTitle")}),T.jsx("ul",{className:"check-network-suggestion-list",children:W.map((V,ie)=>T.jsx("li",{children:V},`${V}_${ie}`))})]})]});return l?T.jsx("div",{className:"check-network-modal-mask",onClick:e,children:T.jsx("div",{className:"check-network-modal-panel",onClick:V=>V.stopPropagation(),children:H})}):H},Nq=o=>{const e=Ts(),{isConnected:n}=o,{state:{devSchema:r,schema:s,launchOptions:l,selectedLaunchOption:c,debugMode:u,user:p},setShowManualBindIP:g,setSelectedLaunchOption:v,setDebugMode:y}=un(),[b,E]=k.useState(!1),[P,S]=k.useState(!1),C=Eg(p),O=k.useMemo(()=>{try{if(!r)return null;const F=new URL(r),j=(F.searchParams.get("host")||"").trim(),N=F.searchParams.get("host_list")||"";let z=[];if(N)try{z=JSON.parse(decodeURIComponent(N))}catch{z=[]}const U=j==="127.0.0.1"||j==="localhost",K=Array.isArray(z)&&z.length>0;return U||!K?{host:j,hostList:z}:null}catch{return{host:"",hostList:[]}}},[r]),x=F=>{F.status==="success"&&E(!1),F.status==="failed"&&E(!1),F.status==="start"&&E(!0)},R=F=>{y(F),O_(F)};k.useEffect(()=>(Oe.on("scanQRCode",x),()=>{Oe.off("scanQRCode",x)}),[]);const M=F=>{if(F==="created")v({...Qa,name:""}),e("/launch_mode");else{const j=l.find(N=>N.id===F);j&&v(j)}};return n?T.jsx("div",{className:"qr-code-container-connected",children:T.jsxs("div",{className:"qr-code-connected-content",children:[T.jsx(Vw,{className:"qr-code-connected",size:150,value:s}),T.jsxs("div",{className:"qr-code-connected-info",children:[T.jsx("div",{className:"qr-code-connected-desc-title",children:L("scanQRCodeChange")}),T.jsx("div",{className:"qr-code-connected-desc",children:L("scanQRCodeDesc")})]})]})}):T.jsxs("div",{className:"qr-code-container-disconnected",children:[T.jsx("div",{className:"qr-code-select-container",children:T.jsx($r,{value:c?.id,onChange:M,placeholder:L("selectLaunchMode"),style:{minWidth:"140px"},optionList:l.map(F=>({label:F.name,value:F.id}))})}),T.jsxs("div",{className:"qr-code-content",children:[O?T.jsx(Cs,{style:{marginBottom:12},bordered:!1,icon:null,closeIcon:null,fullMode:!1,type:"danger",title:L("networkNoLanIPTitle"),description:T.jsxs("div",{children:[T.jsx("div",{style:{marginBottom:8},children:L("networkNoLanIPDesc")}),T.jsx(it,{size:"small",type:"primary",onClick:()=>g(!0),children:L("networkNoLanIPAction")})]})}):null,T.jsxs("div",{className:"qr-code-schema",children:[T.jsx(Vw,{value:r}),T.jsxs(ug,{style:{marginTop:"12px"},children:[T.jsx(it,{theme:u==="browserDebug"?"solid":"outline",type:"tertiary",size:"small",onClick:()=>R("browserDebug"),children:L("browserDebugMode")}),T.jsx(it,{onClick:()=>R("clientPreview"),theme:u==="clientPreview"?"solid":"outline",type:"tertiary",size:"small",children:L("clientPreviewMode")})]}),b&&T.jsxs("div",{className:"qr-code-spin",children:[T.jsx(Mr,{size:"large"}),T.jsx("div",{className:"qr-code-text",children:L("scanning")})]})]}),T.jsx("div",{className:"qr-code-title",children:L("scanQRCode")}),T.jsx("div",{className:"qr-code-desc",children:L("scanQRCodeDesc")}),T.jsx("div",{className:"qr-code-diagnostics-entry-wrap",children:T.jsx(it,{className:"qr-code-diagnostics-entry",theme:"borderless",onClick:()=>S(!0),children:L("netDiagEntryScanNoResponse")})}),C?null:T.jsxs("div",{className:"qr-code-login-guide",children:[T.jsxs("div",{className:"qr-code-login-guide-copy",children:[T.jsx(Ue.Text,{strong:!0,children:L("basicDebugGuide.entryTitle")}),T.jsx(Ue.Text,{children:L("basicDebugGuide.entryDesc")})]}),T.jsx(it,{theme:"light",onClick:()=>e("/basic_debug_guide"),children:L("basicDebugGuide.entryAction")})]})]}),P?T.jsx(eC,{mode:"modal",onClose:()=>S(!1)}):null]})},jq=()=>{const{state:{debugSetting:o,debugMode:e,isConnected:n},setDebugSetting:r}=un(),s=c=>{r(c)},l=()=>{xs.send({method:"setDebugSettings",payload:o})};return k.useEffect(()=>(Oe.on("connectionChange",l),()=>{Oe.off("connectionChange",l)}),[l]),T.jsx("div",{className:"debug-setting-card",children:T.jsxs(Pl,{style:{width:"100%"},children:[T.jsxs(pi,{style:{marginBottom:12,display:"flex",alignItems:"center"},children:[T.jsx(Ue.Text,{style:{fontWeight:"bold",fontSize:16,paddingRight:4},children:L("devOptions")}),T.jsx(zn,{content:()=>T.jsxs("div",{style:{width:"100%",fontSize:"12px"},children:["1. ",L("devOptionsDomainCheckDesc"),T.jsx("br",{}),"2. ",L("debugSettingAdMockDesc"),T.jsx("br",{}),"3. ",L("debugSettingIAPMockDesc"),T.jsx("br",{}),"4. ",L("debugSettingEnableVconsoleDesc"),T.jsx("br",{}),"5. ",L("debugSettingEnableDevInfoPanelDesc")]}),children:T.jsx(wl,{})})]}),T.jsxs(pi,{className:"debug-setting-row",children:[T.jsxs("div",{className:"debug-setting-item",children:[T.jsx(ci,{style:{marginRight:"8px"},checked:!o.enableDomainCheck,onChange:c=>{s({...o,enableDomainCheck:!c})}}),T.jsx(Ue.Text,{children:L("debugSettingDomainCheck")})]}),T.jsxs("div",{className:"debug-setting-item",children:[T.jsx(ci,{checked:o.enableAdMock,style:{marginRight:"8px"},onChange:c=>{s({...o,enableAdMock:c})}}),T.jsx(Ue.Text,{children:L("debugSettingAdMock")})]})]}),T.jsxs(pi,{className:"debug-setting-row",children:[T.jsxs("div",{className:"debug-setting-item",children:[T.jsx(ci,{checked:o.enableIAPMock,style:{marginRight:"8px"},onChange:c=>{s({...o,enableIAPMock:c})}}),T.jsx(Ue.Text,{children:L("debugSettingIAPMock")})]}),T.jsxs("div",{className:"debug-setting-item",children:[T.jsx(ci,{checked:o.enableDevInfoPanel,style:{marginRight:"8px"},onChange:c=>{s({...o,enableDevInfoPanel:c})}}),T.jsx(Ue.Text,{children:L("debugSettingDevInfoPanel")})]})]}),T.jsx(pi,{className:"debug-setting-row",children:e!==ir.browserDebug&&T.jsxs("div",{className:"debug-setting-item",children:[T.jsx(ci,{checked:o.enableVConsole,style:{marginRight:"8px"},onChange:c=>{s({...o,enableVConsole:c})}}),T.jsx(Ue.Text,{children:L("debugSettingVConsole")})]})})]})})},Lq=()=>{const{state:{isConnected:o,message:e}}=k.useContext(wg);return T.jsxs("div",{className:"home-container",children:[T.jsx(Cs,{fullMode:!1,icon:null,closeIcon:null,type:e?.type,title:e?.title,description:e?.desc}),T.jsx(Nq,{isConnected:o}),!o&&T.jsx(jq,{}),T.jsx(vq,{}),T.jsx(Tq,{})]})},Aq=k.lazy(()=>Jt(()=>import("./index-Cj-lTEG1.js"),__vite__mapDeps([0,1])).then(o=>({default:o.ProjectDetail}))),Mq=k.lazy(()=>Jt(()=>import("./index-DdH9Yin-.js"),__vite__mapDeps([2,3,4])).then(o=>({default:o.DebugSetting}))),$q=k.lazy(()=>Jt(()=>import("./index-CDrq3KnY.js"),__vite__mapDeps([5,6,7,8,3,4,9,10])).then(o=>({default:o.LaunchMode}))),Fq=k.lazy(()=>Jt(()=>import("./index-BVi9swz_.js"),__vite__mapDeps([11,6,7,8,3,4,9,12])).then(o=>({default:o.CheckCode}))),zq=k.lazy(()=>Jt(()=>import("./index-B0CT2rYr.js"),__vite__mapDeps([13,14])).then(o=>({default:o.BasicDebugGuide}))),Bq=k.lazy(()=>Jt(()=>import("./index-BlXhGm9R.js"),__vite__mapDeps([15,16])).then(o=>({default:o.ChangeLog}))),qq=k.lazy(()=>Jt(()=>import("./index-BOiN8aIS.js"),__vite__mapDeps([17,18,19])).then(o=>({default:o.IntegrationAssistant}))),Gq=k.lazy(()=>Jt(()=>import("./Detail-BInCTDTx.js"),__vite__mapDeps([20,18,19,21])).then(o=>({default:o.IntegrationAssistantDetail}))),Uq=k.lazy(()=>Jt(()=>import("./index-aD1InxYk.js"),__vite__mapDeps([22,23])).then(o=>({default:o.ManualConnect}))),Wq=()=>T.jsx("div",{className:"routes-container",children:T.jsx(k.Suspense,{fallback:T.jsx(K_,{}),children:T.jsxs(vB,{children:[T.jsx(Vt,{path:"/",element:T.jsx(Lq,{})}),T.jsx(Vt,{path:"/integration_assistant",element:T.jsx(qq,{})}),T.jsx(Vt,{path:"/integration_assistant/:capabilityKey",element:T.jsx(Gq,{})}),T.jsx(Vt,{path:"/project_detail",element:T.jsx(Aq,{})}),T.jsx(Vt,{path:"/basic_debug_guide",element:T.jsx(zq,{})}),T.jsx(Vt,{path:"/debug_setting",element:T.jsx(Mq,{})}),T.jsx(Vt,{path:"/launch_mode",element:T.jsx($q,{})}),T.jsx(Vt,{path:"/version_upload",element:T.jsx(Fq,{})}),T.jsx(Vt,{path:"/precheck_code",element:T.jsx(gB,{to:"/version_upload",replace:!0})}),T.jsx(Vt,{path:"/network_diagnostics",element:T.jsx(eC,{})}),T.jsx(Vt,{path:"/manual_connect",element:T.jsx(Uq,{})}),T.jsx(Vt,{path:"/changelog",element:T.jsx(Bq,{})})]})})}),Hq=k.lazy(()=>Jt(()=>import("./index-BswgGVlz.js"),__vite__mapDeps([24,7,8,25,26,27])).then(o=>({default:o.Sidebar}))),Vq=()=>T.jsx("div",{className:"sidebar-container",children:T.jsx(k.Suspense,{fallback:T.jsx("div",{className:"sidebar-loading-placeholder"}),children:T.jsx(Hq,{})})}),Kq=({items:o,fallbackErrorText:e})=>{const[n,r]=k.useState(!1),s=k.useMemo(()=>{const p=e?.trim();return p?[{text:p,required:!0},...o.filter(g=>g.text.trim()!==p)]:o},[e,o]);k.useEffect(()=>{r(!1)},[s]);const l=p=>T.jsxs("span",{className:"top-error-item-content",children:[T.jsx("span",{className:`top-error-item-tag ${p.required?"top-error-item-tag-required":"top-error-item-tag-suggested"}`,children:p.required?L("topErrorTagRequired"):L("topErrorTagSuggested")}),T.jsx("span",{children:p.text}),p.detail?.link?T.jsx("a",{className:"top-error-item-link",href:p.detail.link,target:"_blank",rel:"noreferrer",children:p.detail.text||L("viewDoc")}):null]}),c=p=>T.jsxs("div",{className:"top-error-single",children:[T.jsx("div",{className:"top-error-single-head",children:T.jsx("span",{className:`top-error-item-tag ${p.required?"top-error-item-tag-required":"top-error-item-tag-suggested"}`,children:p.required?L("topErrorTagRequired"):L("topErrorTagSuggested")})}),T.jsxs("div",{className:"top-error-single-body",children:[T.jsx("span",{className:"top-error-single-text",children:p.text}),p.detail?.link?T.jsx("a",{className:"top-error-item-link",href:p.detail.link,target:"_blank",rel:"noreferrer",children:p.detail.text||L("viewDoc")}):null]})]}),u=s.length<=1?s[0]?c(s[0]):"":T.jsxs("div",{className:"top-error-summary",children:[T.jsxs("div",{className:"top-error-summary-line",children:[T.jsx("span",{children:L("topErrorSummary",{count:String(s.length)})}),T.jsx("button",{type:"button",className:"top-error-summary-toggle",onClick:()=>{r(p=>!p)},children:L(n?"topErrorHideDetails":"topErrorViewDetails")})]}),n&&T.jsx("ol",{className:"top-error-summary-list",children:s.map(p=>T.jsx("li",{className:"top-error-summary-item",children:l(p)},`${p.text}-${p.required?"required":"suggested"}`))})]});return s.length>0?T.jsx(Cs,{className:"top-error-banner",description:u,icon:null,type:"warning"}):null},Qq=({size:o=24,color:e="#000",style:n,className:r})=>T.jsx("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:T.jsxs("svg",{fill:"currentColor",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",width:o,height:o,children:[T.jsx("path",{d:"M37.86 17.82c.14.24.14.67.14 1.53v9.5c0 1.14 0 1.72-.2 2.26-.16.49-.43.96-.77 1.34-.37.44-.87.73-1.86 1.3l-7.84 4.53c-.74.43-1.11.64-1.4.64a.66.66 0 0 1-.58-.34c-.14-.24-.14-.67-.14-1.53v-9.5c0-1.14 0-1.71.2-2.26.16-.48.43-.95.76-1.34.38-.44.88-.73 1.87-1.3l7.84-4.52c.74-.43 1.11-.65 1.4-.64.25 0 .45.12.58.33Z"}),T.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m27.54 1.99 7 3.93 6.89 4a7.23 7.23 0 0 1 3.59 6.2l.06 7.88-.06 7.88a7.23 7.23 0 0 1-3.6 6.2l-6.88 4-7 3.93a7.23 7.23 0 0 1-7.08 0l-7-3.93-6.9-4a7.23 7.23 0 0 1-3.58-6.2L2.9 24l.07-7.88a7.23 7.23 0 0 1 3.59-6.2l6.89-4 7-3.93a7.23 7.23 0 0 1 7.08 0Zm-2.07 3.67 6.98 3.92 6.86 3.99a3.01 3.01 0 0 1 1.5 2.58l.06 7.85-.07 7.85c0 1.06-.57 2.04-1.5 2.58l-6.85 4-6.98 3.9c-.91.52-2.03.52-2.95 0l-6.97-3.9-6.86-4a3.01 3.01 0 0 1-1.5-2.58L7.13 24l.06-7.85c.01-1.06.58-2.04 1.5-2.58l6.86-4 6.97-3.9a3.01 3.01 0 0 1 2.95 0Z"})]})}),Xq=()=>T.jsxs("div",{className:"logo-container",children:[T.jsx(Qq,{size:32}),T.jsx("div",{className:"logo-title",children:L("title")})]});function Yw(o){return L(o==="ok"?"connectStatusConnected":o==="fail"?"connectStatusFailed":"connectStatusDisconnected")}function is(o){return o==="ok"?"#22c55e":o==="fail"?"#ff4d4f":"#bfbfbf"}const Yq=()=>{const{state:{schema:o,isConnected:e},setIsConnected:n,setMessage:r}=un(),[s,l]=k.useState("off"),[c,u]=k.useState("off"),[p,g]=k.useState("off"),v={node:{bg:"rgba(59,130,246,0.10)",stroke:"#93c5fd",text:"#1d4ed8"},browser:{bg:"rgba(34,197,94,0.10)",stroke:"#86efac",text:"#15803d"},client:{bg:"rgba(168,85,247,0.10)",stroke:"#d8b4fe",text:"#7e22ce"}},y=k.useMemo(()=>{const{nodeWsPort:x,clientHost:R,clientHttpPort:M,clientWsPort:F}=Pe.getMultiple(["nodeWsPort","clientHost","clientHttpPort","clientWsPort"]);let j="",N="";try{if(o){const z=new URL(o);j=(z.searchParams.get("host")||"").trim(),N=(z.searchParams.get("port")||"").trim()}}catch{}return{nodeWsPort:x,clientHost:R,clientHttpPort:M,clientWsPort:F,schemaHost:j,schemaPort:N}},[s,c,p,o]),b=x=>{const{client:R,node:M,reason:F}=x||{};$n.info("connectionChange",R,M),Pe.get("isNodeWSConnected")===M&&(R||r({type:"danger",desc:L("clientServerStartError")})),Pe.get("isClientWSConnected")===R&&(M||r({type:"danger",desc:L("nodeServerStartError")})),Pe.get("isClientWSConnected")&&!R&&(Pe.setMultiple({isClientWSConnected:!1,isResourcesReady:!1,isScriptsReady:!1}),r({type:"danger",desc:L("clientDisconnected")})),Pe.get("isNodeWSConnected")&&!M&&(Pe.setMultiple({isNodeWSConnected:!1,isResourcesReady:!1,isScriptsReady:!1}),r({type:"danger",title:L("serverDisconnected"),desc:L("nodeDisconnected")})),!Pe.get("isClientWSConnected")&&R&&(Pe.set("isClientWSConnected",!0),r({type:"success",desc:L("clientConnectedSuccess")})),!Pe.get("isNodeWSConnected")&&M&&(Pe.set("isNodeWSConnected",!0),r({type:"success",desc:L("nodeServerConnectedSuccess")})),typeof M=="boolean"&&(l(M?"ok":F==="error"||F==="timeout"?"fail":"off"),M||g("off")),typeof R=="boolean"&&u(R?"ok":F==="error"||F==="timeout"?"fail":"off"),n(!!R&&!!M)},E=x=>{if(x?.status==="success"){g("ok");return}if(x?.status==="failed"){g("fail");return}x?.status==="start"&&g("off")};k.useEffect(()=>(Oe.on("connectionChange",b),Oe.on("scanQRCode",E),()=>{Oe.off("connectionChange",b),Oe.off("scanQRCode",E)}),[n]);const P=T.jsxs("div",{children:[T.jsxs("div",{children:[L("connectStatusNode"),": ",Yw(s)]}),T.jsxs("div",{children:["IDE: ",window.location.origin]}),y.nodeWsPort?T.jsxs("div",{children:["WS: ws://localhost:",y.nodeWsPort]}):null,T.jsxs("div",{children:["HTTP: ",window.location.origin]}),y.schemaHost&&y.schemaPort?T.jsxs("div",{children:[L("scanQRCode"),":ws://",y.schemaHost,":",y.schemaPort]}):null]}),S=T.jsx("div",{children:T.jsxs("div",{children:[L("connectStatusBrowser"),": ",L("connectStatusConnected")]})}),C=T.jsxs("div",{children:[T.jsxs("div",{children:[L("connectStatusClient"),": ",Yw(c)]}),y.clientHost?T.jsxs("div",{children:[y.clientHost,y.clientHttpPort?` http:${y.clientHttpPort}`:"",y.clientWsPort?` ws:${y.clientWsPort}`:""]}):null]}),O=T.jsxs("div",{className:"conn-graph-wrap",children:[T.jsx("div",{className:"conn-graph",children:T.jsx("svg",{className:"conn-graph-svg",width:"340",height:"220",viewBox:"0 0 360 240",children:(()=>{const x={x:180,y:44},R={x:70,y:206},M={x:290,y:206},F=14,j=26,N=4,z=5,U=8,K={x:(x.x+R.x+M.x)/3,y:(x.y+R.y+M.y)/3},Q=(W,ee)=>({x:ee.x-W.x,y:ee.y-W.y}),re=W=>Math.hypot(W.x,W.y)||1,ne=W=>{const ee=re(W);return{x:W.x/ee,y:W.y/ee}},ae=W=>({x:-W.y,y:W.x}),oe=(W,ee,D=1)=>({x:W.x+ee.x*D,y:W.y+ee.y*D}),ge=(W,ee,D)=>{const H=Q(W,ee),V=ne(H),ie=ne(ae(H)),ue=D.offset||0,_e=oe(oe(W,V,j),ie,ue),ye=oe(oe(ee,V,-j),ie,ue),be=typeof D.t=="number"?Math.min(.9,Math.max(.1,D.t)):.5,Ce={x:_e.x+(ye.x-_e.x)*be,y:_e.y+(ye.y-_e.y)*be},ve=oe(W,V,j),Tt=oe(ee,V,-j),Ot={x:ve.x+(Tt.x-ve.x)*be,y:ve.y+(Tt.y-ve.y)*be},lr=D.markMode||"byLineOffset",dn=Q(Ot,K),De=dn.x*ie.x+dn.y*ie.y>0?{x:-ie.x,y:-ie.y}:ie,pn=D.labelSide==="inner"?-1:1,xe=ue>=0?1:-1,xt=lr==="byTriangleSide"?pn:xe,Fe={w:360,h:240,pad:10};let Me=oe(Ce,De,U*xt);(Me.y>Fe.h-Fe.pad||Me.y<Fe.pad||Me.x>Fe.w-Fe.pad||Me.x<Fe.pad)&&(Me=oe(Ce,De,-U*xt));const Ke=Me.x<Fe.w-60,Qe={x:Ke?Me.x+z+N:Me.x-z-N,y:Me.y},Be=Ke?"start":"end",It=D.label.length*6+8,Dt=Be==="start"?Qe.x:Qe.x-It,On=Be==="start"?Qe.x+It:Qe.x;let Rt=Be,et=Qe.x;return Dt<Fe.pad&&On>Fe.w-Fe.pad?(Rt="start",et=Fe.pad):Dt<Fe.pad?(Rt="start",et=Me.x+z+N):On>Fe.w-Fe.pad&&(Rt="end",et=Me.x-z-N),T.jsxs("g",{children:[T.jsx("line",{x1:_e.x,y1:_e.y,x2:ye.x,y2:ye.y,stroke:"#d9d9d9",strokeWidth:"2",strokeDasharray:D.dashed?"4 3":void 0}),T.jsx("circle",{cx:Me.x,cy:Me.y,r:z,fill:D.statusColor}),T.jsx("text",{x:et,y:Qe.y,fontSize:"10",fill:"#666",dominantBaseline:"middle",textAnchor:Rt,paintOrder:"stroke",stroke:"rgba(255,255,255,0.95)",strokeWidth:"3",children:D.label})]})},me=(W,ee,D,H)=>T.jsx(zn,{content:D,children:T.jsxs("g",{className:"conn-vertex",children:[T.jsx("rect",{x:W.x-28,y:W.y-14,width:56,height:22,rx:8,fill:H.bg,stroke:H.stroke}),T.jsx("text",{x:W.x,y:W.y-1,textAnchor:"middle",dominantBaseline:"middle",fontSize:"12",fill:H.text,children:ee})]})});return T.jsxs(T.Fragment,{children:[ge(R,x,{label:"ws",statusColor:is(s),offset:-F/2,labelSide:"outer",markMode:"byLineOffset",t:.42}),ge(R,x,{label:"http",statusColor:is(s),offset:F/2,labelSide:"inner",markMode:"byLineOffset",t:.58}),ge(x,M,{label:"ws",statusColor:is(p),dashed:!0,offset:0,labelSide:"outer",markMode:"byTriangleSide",t:.55}),ge(R,M,{label:"ws",statusColor:is(c),offset:-F/2,labelSide:"outer",markMode:"byLineOffset",t:.55}),ge(R,M,{label:"http",statusColor:is(c),offset:F/2,labelSide:"inner",markMode:"byLineOffset",t:.45}),me(x,L("connectStatusNode"),P,v.node),me(R,L("connectStatusBrowser"),S,v.browser),me(M,L("connectStatusClient"),C,v.client)]})})()})}),T.jsxs("div",{className:"conn-legend",children:[T.jsx("div",{className:"conn-legend-title",children:L("connectStatusLegendTitle")}),T.jsxs("div",{className:"conn-legend-item",children:[T.jsx("div",{className:"conn-legend-name",children:T.jsx(ht,{color:"blue",type:"ghost",size:"small",style:{marginRight:6},children:L("connectStatusNode")})}),T.jsx("div",{className:"conn-legend-desc",children:L("connectStatusLegendNode")})]}),T.jsxs("div",{className:"conn-legend-item",children:[T.jsx("div",{className:"conn-legend-name",children:T.jsx(ht,{color:"green",type:"ghost",size:"small",style:{marginRight:6},children:L("connectStatusBrowser")})}),T.jsx("div",{className:"conn-legend-desc",children:L("connectStatusLegendBrowser")})]}),T.jsxs("div",{className:"conn-legend-item",children:[T.jsx("div",{className:"conn-legend-name",children:T.jsx(ht,{color:"purple",type:"ghost",size:"small",style:{marginRight:6},children:L("connectStatusClient")})}),T.jsx("div",{className:"conn-legend-desc",children:L("connectStatusLegendClient")})]}),T.jsxs("div",{className:"conn-legend-item",children:[T.jsxs("div",{className:"conn-legend-name",children:[T.jsx(ht,{color:"grey",type:"ghost",size:"small",style:{marginRight:6},children:"WS"}),T.jsx(ht,{color:"grey",type:"ghost",size:"small",children:"HTTP"})]}),T.jsx("div",{className:"conn-legend-desc",children:L("connectStatusLegendProto")})]})]})]});return T.jsx(Bn,{content:O,trigger:"hover",showArrow:!1,children:T.jsx(ht,{style:{margin:"0 4px"},color:e?"light-green":"grey",size:"large",shape:"circle",type:"ghost",children:L(e?"deviceConnected":"deviceDisconnected")})})},Zq=({version:o})=>{const e=Ts(),{state:{devToolVersion:n}}=un(),[r,s]=k.useState(!1);if(k.useEffect(()=>{s(hz(n))},[n]),!o)return null;const l=()=>{n&&(fz(n),s(!1)),e("/changelog")};return T.jsxs("span",{onClick:l,style:{display:"inline-flex",alignItems:"center",cursor:"pointer",flexShrink:0},children:[T.jsx(ht,{style:{margin:8},color:"light-blue",size:"large",shape:"circle",type:"ghost",children:o}),r&&T.jsx(ht,{color:"red",shape:"circle",size:"small",type:"solid",style:{marginLeft:-4},children:"NEW"})]})},Jq=k.lazy(()=>Jt(()=>import("./index-Sk6u8HWP.js"),__vite__mapDeps([28,25,26,29])).then(o=>({default:o.AccessDocs}))),eG=k.lazy(()=>Jt(()=>import("./index-B-rc2X1H.js"),__vite__mapDeps([30,31])).then(o=>({default:o.LoginStatus}))),tG=k.lazy(()=>Jt(()=>import("./index-DQqzytdw.js"),__vite__mapDeps([32,6,7,8,3,4,9,33])).then(o=>({default:o.WasmCodeSplit}))),nG=()=>{const{state:{devToolVersion:o,engine:e,packages:n,gameDetail:r}}=un(),s=n?.find(u=>u.name==="wasmcode"),l=s?.root,c=s?.md5;return T.jsxs("div",{className:"header-wrapper",children:[T.jsxs("div",{className:"header-content",children:[T.jsxs("div",{className:"header-content-left",children:[T.jsx(Xq,{}),T.jsx(Zq,{version:o}),T.jsx(Yq,{})]}),T.jsx("div",{className:"header-content-right",children:T.jsxs(Es,{spacing:12,children:[T.jsx(k.Suspense,{fallback:null,children:T.jsx(Jq,{})}),e==="unity"&&T.jsx(k.Suspense,{fallback:null,children:T.jsx(tG,{codePath:l,codeMd5:c,clientKey:r?.client_key})}),T.jsx(k.Suspense,{fallback:null,children:T.jsx(eG,{})})]})})]}),T.jsx(vI,{})]})},rG=({enabled:o=!0})=>(k.useEffect(()=>{if(!o){Qi.close();return}return Qi.init(),()=>{Qi.close()}},[o]),null);function iG(){const{state:{loading:o,error:e,user:n}}=un(),{topErrorItems:r,updateGameDetailTopErrors:s,updateConfigTopErrors:l}=dq(),{fetchGameDetail:c}=pq({onSuccess:s}),{isServerError:u,serverErrorMsg:p}=fq({fetchGameDetail:c,updateConfigTopErrors:l});return hq({onResourceChange:c}),k.useEffect(()=>{const g=async v=>{if(v.status!=="update_wasm_split_config_done")return;const y=await Yi({url:"/game/config",method:"GET"});y.error||l({currentUser:n,checkResult:y.data?.checkResult})};return Oe.on("unitySplitStatus",g),()=>{Oe.off("unitySplitStatus",g)}},[l,n]),u&&!o.visible?T.jsxs("div",{className:"server-error-container",children:[T.jsx(nq,{}),T.jsx("div",{className:"server-error-text",children:p})]}):T.jsxs(BB,{children:[T.jsx(Kq,{items:r,fallbackErrorText:e.text}),T.jsx(rG,{enabled:!o.visible&&!u}),T.jsxs("div",{className:"main-layout",children:[T.jsx(nG,{}),T.jsxs("div",{className:"content-wrapper",children:[T.jsx(Vq,{}),T.jsx(Wq,{})]})]}),T.jsx(K_,{})]})}nP.createRoot(document.getElementById("root")).render(T.jsx(fg,{children:T.jsx(bz,{children:T.jsx(iG,{})})}));export{L0 as $,HO as A,Cs as B,qn as C,wl as D,$r as E,fz as F,Oh as G,Pl as H,ws as I,TG as J,Yt as K,Ar as L,J_ as M,Ka as N,bl as O,Bn as P,Vw as Q,w as R,Es as S,Ue as T,Jh as U,zn as V,yG as W,An as X,ps as Y,Cn as Z,ke as _,ht as a,Uh as a$,ar as a0,Vi as a1,cG as a2,uG as a3,Nr as a4,gG as a5,fG as a6,Sl as a7,hG as a8,lG as a9,QP as aA,Lr as aB,at as aC,ls as aD,rr as aE,Rr as aF,ag as aG,gi as aH,ds as aI,G0 as aJ,cs as aK,Jn as aL,Qk as aM,Nh as aN,vl as aO,b2 as aP,Ji as aQ,ik as aR,qh as aS,eo as aT,Tk as aU,fl as aV,_2 as aW,nT as aX,b0 as aY,f0 as aZ,il as a_,pG as aa,dG as ab,M0 as ac,ai as ad,Xi as ae,Qh as af,Lh as ag,pi as ah,Oe as ai,ug as aj,Qt as ak,Ze as al,BP as am,cn as an,Kh as ao,aO as ap,sO as aq,Ch as ar,VS as as,cO as at,Gf as au,Vo as av,Ko as aw,oO as ax,Eh as ay,KS as az,it as b,hl as b$,Fk as b0,rP as b1,fT as b2,O0 as b3,S2 as b4,w2 as b5,x0 as b6,Zn as b7,rk as b8,bG as b9,m2 as bA,ET as bB,Yk as bC,kk as bD,ui as bE,aG as bF,IT as bG,E1 as bH,h0 as bI,NI as bJ,DI as bK,Tx as bL,Ox as bM,Ki as bN,Sx as bO,zP as bP,_G as bQ,RP as bR,zO as bS,FT as bT,tl as bU,JI as bV,ox as bW,vG as bX,ci as bY,jT as bZ,ul as b_,R2 as ba,YP as bb,yl as bc,ng as bd,Jk as be,c0 as bf,Xt as bg,DP as bh,jh as bi,NP as bj,R0 as bk,F0 as bl,Fr as bm,kn as bn,gl as bo,Bh as bp,hk as bq,Cl as br,el as bs,er as bt,zr as bu,Mh as bv,vT as bw,jP as bx,aP as by,t0 as bz,un as c,Gh as c0,p0 as c1,iT as c2,mk as c3,PT as c4,Yi as d,Mr as e,mz as f,x_ as g,Te as h,L as i,T as j,kt as k,pw as l,gt as m,X as n,Kt as o,yi as p,h as q,k as r,sr as s,he as t,Ts as u,Xh as v,kG as w,Yh as x,A0 as y,Eg as z};
|