@ttmg/cli 0.4.4 → 0.4.6-agent-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.
Files changed (100) hide show
  1. package/README.md +644 -2
  2. package/dist/index.js +22351 -5968
  3. package/dist/index.js.map +1 -1
  4. package/dist/package.json +38 -4
  5. package/dist/public/assets/Card-CN2lxY0Y.js +1 -0
  6. package/dist/public/assets/Detail-CELZZ-4h.js +1 -0
  7. package/dist/public/assets/Detail-CELZZ-4h.js.br +0 -0
  8. package/dist/public/assets/MonetizationMode-C7DNqium.js +1 -0
  9. package/dist/public/assets/MonetizationModeSummary-DYE7XUq1.js +1 -0
  10. package/dist/public/assets/{SectionHeader-Caf8qPRH.js → SectionHeader-BKc3BWXP.js} +1 -1
  11. package/dist/public/assets/{baseForm-DbKDw3IN.js → baseForm-I9suIiQn.js} +1 -1
  12. package/dist/public/assets/baseForm-I9suIiQn.js.br +0 -0
  13. package/dist/public/assets/{col-DlUD2IyX.js → col-w9Q-2mgM.js} +1 -1
  14. package/dist/public/assets/{compass-D8bLLLSR.js → compass-D6waJ52O.js} +1 -1
  15. package/dist/public/assets/{index-eoDMPIdb.js → index-8sDAOAcS.js} +1 -1
  16. package/dist/public/assets/index-8sDAOAcS.js.br +0 -0
  17. package/dist/public/assets/{index-DF6WNroB.js → index-B6hY5GdS.js} +1 -1
  18. package/dist/public/assets/{index-DenoanNX.js → index-BIrFkB6r.js} +1 -1
  19. package/dist/public/assets/index-BIrFkB6r.js.br +0 -0
  20. package/dist/public/assets/{index-CPfhNCcU.js → index-BLWgpW64.js} +1 -1
  21. package/dist/public/assets/{index-y9pNuDMs.js → index-BY3eQmfP.js} +1 -1
  22. package/dist/public/assets/index-BY3eQmfP.js.br +0 -0
  23. package/dist/public/assets/index-BegU9LBT.js +21 -0
  24. package/dist/public/assets/index-BegU9LBT.js.br +0 -0
  25. package/dist/public/assets/{index-Cf7bng8i.js → index-BqwflQml.js} +1 -1
  26. package/dist/public/assets/{index-BR6l0C9y.js → index-BrOFdVbv.js} +1 -1
  27. package/dist/public/assets/{index-BlupVk90.js → index-BvPolBSn.js} +1 -1
  28. package/dist/public/assets/index-BwrZjkCc.js +1 -0
  29. package/dist/public/assets/{index-BLmfGH4o.js → index-CLKKui8G.js} +1 -1
  30. package/dist/public/assets/index-Cb4Ja0tZ.js +1 -0
  31. package/dist/public/assets/{index-Ggo1rV6S.js → index-CcUgN29Y.js} +1 -1
  32. package/dist/public/assets/index-CgXOkYrX.js +1 -0
  33. package/dist/public/assets/index-CgXOkYrX.js.br +0 -0
  34. package/dist/public/assets/{index-yR_bPMcB.css → index-Ckp_mJJy.css} +1 -1
  35. package/dist/public/assets/index-Ckp_mJJy.css.br +0 -0
  36. package/dist/public/assets/{index-D0iKOimx.js → index-CsiIrLKY.js} +1 -1
  37. package/dist/public/assets/{index-BeG7a_8l.js → index-Csmg5oyu.js} +1 -1
  38. package/dist/public/assets/{index-CTkNRReQ.js → index-DDecPuod.js} +1 -1
  39. package/dist/public/assets/{index-B0fmVxbN.js → index-DDy4PkWT.js} +1 -1
  40. package/dist/public/assets/{index-BV532pMK.js → index-DEQ2hVPA.js} +1 -1
  41. package/dist/public/assets/index-DEQ2hVPA.js.br +0 -0
  42. package/dist/public/assets/{index-D9-bb2oL.js → index-DGkgqtgJ.js} +1 -1
  43. package/dist/public/assets/index-FVHabbDB.js +1 -0
  44. package/dist/public/assets/index-M8jf-YAZ.js +1 -0
  45. package/dist/public/assets/index-Q0GC8Irj.js +1 -0
  46. package/dist/public/assets/index-Q0GC8Irj.js.br +0 -0
  47. package/dist/public/assets/{index-D2zLbzBh.css → index-WyNc-BTG.css} +1 -1
  48. package/dist/public/assets/index-WyNc-BTG.css.br +0 -0
  49. package/dist/public/assets/{index-BvRI6rq9.js → index-YVB9ZW00.js} +1 -1
  50. package/dist/public/assets/index-mjEeEQcC.js +1 -0
  51. package/dist/public/assets/index-mjEeEQcC.js.br +0 -0
  52. package/dist/public/assets/{index-DXXBlk9b.js → index-rLkONFpx.js} +1 -1
  53. package/dist/public/assets/{layers-BQ_Tw855.js → layers-Dbwq9AyL.js} +1 -1
  54. package/dist/public/assets/{list-checks-9HC7bocq.js → list-checks-og1usOZf.js} +1 -1
  55. package/dist/public/assets/{sparkles-BLHMCsIj.js → sparkles-p-dZbjGb.js} +1 -1
  56. package/dist/public/assets/{triangle-alert-BprMFvuT.js → triangle-alert-BZVAEUiL.js} +1 -1
  57. package/dist/public/assets/{zap-Bj4LJ903.js → zap-BAhZUPPa.js} +1 -1
  58. package/dist/public/index.html +2 -2
  59. package/dist/scripts/acceptance-fixture.test.js +33 -0
  60. package/dist/scripts/dev-capture-smoke.js +76 -0
  61. package/dist/scripts/dev-client-preview-control-smoke.js +606 -0
  62. package/dist/scripts/dev-default-smoke.js +67 -0
  63. package/dist/scripts/dev-game-ready-smoke.js +155 -0
  64. package/dist/scripts/dev-workflow-smoke.js +260 -0
  65. package/dist/scripts/prepare-client-preview-acceptance.js +65 -0
  66. package/dist/scripts/preview-page-server-smoke.js +63 -0
  67. package/dist/scripts/run-ts-test.js +41 -0
  68. package/dist/scripts/verify-agent-contract.js +410 -0
  69. package/dist/scripts/verify-dist-version.js +41 -0
  70. package/dist/scripts/vibe-ppe-test-preload.cjs +23 -0
  71. package/dist/scripts/vibe-upload-demo.js +72 -0
  72. package/dist/scripts/vibe-upload-smoke.js +412 -0
  73. package/dist/scripts/wasm-smoke.js +53 -0
  74. package/dist/scripts/wasm-worker.js +63 -0
  75. package/dist/scripts/worker.js +28 -22
  76. package/package.json +38 -4
  77. package/dist/public/assets/Detail-CTD5OeB0.js +0 -1
  78. package/dist/public/assets/Detail-CTD5OeB0.js.br +0 -0
  79. package/dist/public/assets/MonetizationMode-DZmggvdZ.js +0 -1
  80. package/dist/public/assets/MonetizationModeSummary-7jDe4Q_6.js +0 -1
  81. package/dist/public/assets/Tag-DSB9Uput.js +0 -1
  82. package/dist/public/assets/baseForm-DbKDw3IN.js.br +0 -0
  83. package/dist/public/assets/index-B1gECabp.js +0 -1
  84. package/dist/public/assets/index-B1gECabp.js.br +0 -0
  85. package/dist/public/assets/index-B3TFdXWD.js +0 -1
  86. package/dist/public/assets/index-BV532pMK.js.br +0 -0
  87. package/dist/public/assets/index-BzbUu6Wd.js +0 -1
  88. package/dist/public/assets/index-COLHKvH0.js +0 -1
  89. package/dist/public/assets/index-D2zLbzBh.css.br +0 -0
  90. package/dist/public/assets/index-DenoanNX.js.br +0 -0
  91. package/dist/public/assets/index-DnsrxgPV.js +0 -1
  92. package/dist/public/assets/index-DnsrxgPV.js.br +0 -0
  93. package/dist/public/assets/index-Do3D3DDt.js +0 -1
  94. package/dist/public/assets/index-Do3D3DDt.js.br +0 -0
  95. package/dist/public/assets/index-DyR-YyZt.js +0 -1
  96. package/dist/public/assets/index-OPQyWrBC.js +0 -21
  97. package/dist/public/assets/index-OPQyWrBC.js.br +0 -0
  98. package/dist/public/assets/index-eoDMPIdb.js.br +0 -0
  99. package/dist/public/assets/index-y9pNuDMs.js.br +0 -0
  100. package/dist/public/assets/index-yR_bPMcB.css.br +0 -0
@@ -1,21 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BR6l0C9y.js","assets/index-Cf7bng8i.js","assets/index-BPf4cmgA.css","assets/index-4NS2mMuQ.css","assets/index-COLHKvH0.js","assets/index-C-tTmNa4.css","assets/index-D0iKOimx.js","assets/baseForm-DbKDw3IN.js","assets/col-DlUD2IyX.js","assets/col-BXewy14r.css","assets/index-BV532pMK.js","assets/index-BFPQPvSA.css","assets/baseForm-BAvk37jF.css","assets/index-D-GbEkoB.css","assets/index-BeG7a_8l.js","assets/index-Crx61Qjc.css","assets/index-DF6WNroB.js","assets/index-DKxf26_O.css","assets/index-CTkNRReQ.js","assets/compass-D8bLLLSR.js","assets/zap-Bj4LJ903.js","assets/index-BlG-Rcwd.css","assets/index-Do3D3DDt.js","assets/SectionHeader-Caf8qPRH.js","assets/Tag-DSB9Uput.js","assets/index-eoDMPIdb.js","assets/index-Ggo1rV6S.js","assets/index-ClU1uQYs.css","assets/triangle-alert-BprMFvuT.js","assets/index-HqjZ5P-l.css","assets/index-BLmfGH4o.js","assets/index-B0fmVxbN.js","assets/index-BlupVk90.js","assets/index-DXFg6tGR.css","assets/index-3FxbJxwu.css","assets/index-y9pNuDMs.js","assets/index-BdixrK5I.css","assets/index-DXXBlk9b.js","assets/index-faRHENEQ.css","assets/index-BzbUu6Wd.js","assets/sparkles-BLHMCsIj.js","assets/index-CoYWdJV1.css","assets/index-DyR-YyZt.js","assets/MonetizationModeSummary-7jDe4Q_6.js","assets/index-D9-bb2oL.js","assets/index-Czg0RYGI.css","assets/layers-BQ_Tw855.js","assets/Detail-CTD5OeB0.js","assets/index-BvRI6rq9.js","assets/index-BaQ9eM95.css","assets/list-checks-9HC7bocq.js","assets/MonetizationMode-DZmggvdZ.js","assets/index-CPfhNCcU.js","assets/index-AtMMzkp0.css","assets/index-DnsrxgPV.js","assets/index-DenoanNX.js","assets/index-CYnulX57.css","assets/index-vlN_-PRJ.css","assets/index-B3TFdXWD.js","assets/index-DfVst8q1.css","assets/index-B1gECabp.js","assets/index-D2zLbzBh.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 ja=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ye(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var fu={exports:{}},Go={},hu={exports:{}},De={};var gv;function uP(){if(gv)return De;gv=1;var i=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"),f=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function S(I){return I===null||typeof I!="object"?null:(I=v&&I[v]||I["@@iterator"],typeof I=="function"?I:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,b={};function w(I,W,se){this.props=I,this.context=W,this.refs=b,this.updater=se||P}w.prototype.isReactComponent={},w.prototype.setState=function(I,W){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,W,"setState")},w.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function D(){}D.prototype=w.prototype;function O(I,W,se){this.props=I,this.context=W,this.refs=b,this.updater=se||P}var N=O.prototype=new D;N.constructor=O,T(N,w.prototype),N.isPureReactComponent=!0;var M=Array.isArray,F=Object.prototype.hasOwnProperty,j={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function z(I,W,se){var re,oe={},_e=null,ye=null;if(W!=null)for(re in W.ref!==void 0&&(ye=W.ref),W.key!==void 0&&(_e=""+W.key),W)F.call(W,re)&&!L.hasOwnProperty(re)&&(oe[re]=W[re]);var ve=arguments.length-2;if(ve===1)oe.children=se;else if(1<ve){for(var Ce=Array(ve),be=0;be<ve;be++)Ce[be]=arguments[be+2];oe.children=Ce}if(I&&I.defaultProps)for(re in ve=I.defaultProps,ve)oe[re]===void 0&&(oe[re]=ve[re]);return{$$typeof:i,type:I,key:_e,ref:ye,props:oe,_owner:j.current}}function U(I,W){return{$$typeof:i,type:I.type,key:W,ref:I.ref,props:I.props,_owner:I._owner}}function H(I){return typeof I=="object"&&I!==null&&I.$$typeof===i}function K(I){var W={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(se){return W[se]})}var ie=/\/+/g;function ee(I,W){return typeof I=="object"&&I!==null&&I.key!=null?K(""+I.key):W.toString(36)}function ae(I,W,se,re,oe){var _e=typeof I;(_e==="undefined"||_e==="boolean")&&(I=null);var ye=!1;if(I===null)ye=!0;else switch(_e){case"string":case"number":ye=!0;break;case"object":switch(I.$$typeof){case i:case e:ye=!0}}if(ye)return ye=I,oe=oe(ye),I=re===""?"."+ee(ye,0):re,M(oe)?(se="",I!=null&&(se=I.replace(ie,"$&/")+"/"),ae(oe,W,se,"",function(be){return be})):oe!=null&&(H(oe)&&(oe=U(oe,se+(!oe.key||ye&&ye.key===oe.key?"":(""+oe.key).replace(ie,"$&/")+"/")+I)),W.push(oe)),1;if(ye=0,re=re===""?".":re+":",M(I))for(var ve=0;ve<I.length;ve++){_e=I[ve];var Ce=re+ee(_e,ve);ye+=ae(_e,W,se,Ce,oe)}else if(Ce=S(I),typeof Ce=="function")for(I=Ce.call(I),ve=0;!(_e=I.next()).done;)_e=_e.value,Ce=re+ee(_e,ve++),ye+=ae(_e,W,se,Ce,oe);else if(_e==="object")throw W=String(I),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return ye}function ne(I,W,se){if(I==null)return I;var re=[],oe=0;return ae(I,re,"","",function(_e){return W.call(se,_e,oe++)}),re}function ce(I){if(I._status===-1){var W=I._result;W=W(),W.then(function(se){(I._status===0||I._status===-1)&&(I._status=1,I._result=se)},function(se){(I._status===0||I._status===-1)&&(I._status=2,I._result=se)}),I._status===-1&&(I._status=0,I._result=W)}if(I._status===1)return I._result.default;throw I._result}var de={current:null},V={transition:null},Y={ReactCurrentDispatcher:de,ReactCurrentBatchConfig:V,ReactCurrentOwner:j};return De.Children={map:ne,forEach:function(I,W,se){ne(I,function(){W.apply(this,arguments)},se)},count:function(I){var W=0;return ne(I,function(){W++}),W},toArray:function(I){return ne(I,function(W){return W})||[]},only:function(I){if(!H(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},De.Component=w,De.Fragment=n,De.Profiler=s,De.PureComponent=O,De.StrictMode=r,De.Suspense=p,De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,De.cloneElement=function(I,W,se){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var re=T({},I.props),oe=I.key,_e=I.ref,ye=I._owner;if(W!=null){if(W.ref!==void 0&&(_e=W.ref,ye=j.current),W.key!==void 0&&(oe=""+W.key),I.type&&I.type.defaultProps)var ve=I.type.defaultProps;for(Ce in W)F.call(W,Ce)&&!L.hasOwnProperty(Ce)&&(re[Ce]=W[Ce]===void 0&&ve!==void 0?ve[Ce]:W[Ce])}var Ce=arguments.length-2;if(Ce===1)re.children=se;else if(1<Ce){ve=Array(Ce);for(var be=0;be<Ce;be++)ve[be]=arguments[be+2];re.children=ve}return{$$typeof:i,type:I.type,key:oe,ref:_e,props:re,_owner:ye}},De.createContext=function(I){return I={$$typeof:c,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:l,_context:I},I.Consumer=I},De.createElement=z,De.createFactory=function(I){var W=z.bind(null,I);return W.type=I,W},De.createRef=function(){return{current:null}},De.forwardRef=function(I){return{$$typeof:u,render:I}},De.isValidElement=H,De.lazy=function(I){return{$$typeof:y,_payload:{_status:-1,_result:I},_init:ce}},De.memo=function(I,W){return{$$typeof:f,type:I,compare:W===void 0?null:W}},De.startTransition=function(I){var W=V.transition;V.transition={};try{I()}finally{V.transition=W}},De.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},De.useCallback=function(I,W){return de.current.useCallback(I,W)},De.useContext=function(I){return de.current.useContext(I)},De.useDebugValue=function(){},De.useDeferredValue=function(I){return de.current.useDeferredValue(I)},De.useEffect=function(I,W){return de.current.useEffect(I,W)},De.useId=function(){return de.current.useId()},De.useImperativeHandle=function(I,W,se){return de.current.useImperativeHandle(I,W,se)},De.useInsertionEffect=function(I,W){return de.current.useInsertionEffect(I,W)},De.useLayoutEffect=function(I,W){return de.current.useLayoutEffect(I,W)},De.useMemo=function(I,W){return de.current.useMemo(I,W)},De.useReducer=function(I,W,se){return de.current.useReducer(I,W,se)},De.useRef=function(I){return de.current.useRef(I)},De.useState=function(I){return de.current.useState(I)},De.useSyncExternalStore=function(I,W,se){return de.current.useSyncExternalStore(I,W,se)},De.useTransition=function(){return de.current.useTransition()},De.version="18.2.0",De}var mv;function fs(){return mv||(mv=1,hu.exports=uP()),hu.exports}var yv;function dP(){if(yv)return Go;yv=1;var i=fs(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(u,p,f){var y,v={},S=null,P=null;f!==void 0&&(S=""+f),p.key!==void 0&&(S=""+p.key),p.ref!==void 0&&(P=p.ref);for(y in p)r.call(p,y)&&!l.hasOwnProperty(y)&&(v[y]=p[y]);if(u&&u.defaultProps)for(y in p=u.defaultProps,p)v[y]===void 0&&(v[y]=p[y]);return{$$typeof:e,type:u,key:S,ref:P,props:v,_owner:s.current}}return Go.Fragment=n,Go.jsx=c,Go.jsxs=c,Go}var vv;function pP(){return vv||(vv=1,fu.exports=dP()),fu.exports}var k=pP(),La={},gu={exports:{}},Mt={},mu={exports:{}},yu={};var bv;function fP(){return bv||(bv=1,(function(i){function e(V,Y){var I=V.length;V.push(Y);e:for(;0<I;){var W=I-1>>>1,se=V[W];if(0<s(se,Y))V[W]=Y,V[I]=se,I=W;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var Y=V[0],I=V.pop();if(I!==Y){V[0]=I;e:for(var W=0,se=V.length,re=se>>>1;W<re;){var oe=2*(W+1)-1,_e=V[oe],ye=oe+1,ve=V[ye];if(0>s(_e,I))ye<se&&0>s(ve,_e)?(V[W]=ve,V[ye]=I,W=ye):(V[W]=_e,V[oe]=I,W=oe);else if(ye<se&&0>s(ve,I))V[W]=ve,V[ye]=I,W=ye;else break e}}return Y}function s(V,Y){var I=V.sortIndex-Y.sortIndex;return I!==0?I:V.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;i.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();i.unstable_now=function(){return c.now()-u}}var p=[],f=[],y=1,v=null,S=3,P=!1,T=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(V){for(var Y=n(f);Y!==null;){if(Y.callback===null)r(f);else if(Y.startTime<=V)r(f),Y.sortIndex=Y.expirationTime,e(p,Y);else break;Y=n(f)}}function M(V){if(b=!1,N(V),!T)if(n(p)!==null)T=!0,ce(F);else{var Y=n(f);Y!==null&&de(M,Y.startTime-V)}}function F(V,Y){T=!1,b&&(b=!1,D(z),z=-1),P=!0;var I=S;try{for(N(Y),v=n(p);v!==null&&(!(v.expirationTime>Y)||V&&!K());){var W=v.callback;if(typeof W=="function"){v.callback=null,S=v.priorityLevel;var se=W(v.expirationTime<=Y);Y=i.unstable_now(),typeof se=="function"?v.callback=se:v===n(p)&&r(p),N(Y)}else r(p);v=n(p)}if(v!==null)var re=!0;else{var oe=n(f);oe!==null&&de(M,oe.startTime-Y),re=!1}return re}finally{v=null,S=I,P=!1}}var j=!1,L=null,z=-1,U=5,H=-1;function K(){return!(i.unstable_now()-H<U)}function ie(){if(L!==null){var V=i.unstable_now();H=V;var Y=!0;try{Y=L(!0,V)}finally{Y?ee():(j=!1,L=null)}}else j=!1}var ee;if(typeof O=="function")ee=function(){O(ie)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ne=ae.port2;ae.port1.onmessage=ie,ee=function(){ne.postMessage(null)}}else ee=function(){w(ie,0)};function ce(V){L=V,j||(j=!0,ee())}function de(V,Y){z=w(function(){V(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(V){V.callback=null},i.unstable_continueExecution=function(){T||P||(T=!0,ce(F))},i.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<V?Math.floor(1e3/V):5},i.unstable_getCurrentPriorityLevel=function(){return S},i.unstable_getFirstCallbackNode=function(){return n(p)},i.unstable_next=function(V){switch(S){case 1:case 2:case 3:var Y=3;break;default:Y=S}var I=S;S=Y;try{return V()}finally{S=I}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(V,Y){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var I=S;S=V;try{return Y()}finally{S=I}},i.unstable_scheduleCallback=function(V,Y,I){var W=i.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?W+I:W):I=W,V){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=I+se,V={id:y++,callback:Y,priorityLevel:V,startTime:I,expirationTime:se,sortIndex:-1},I>W?(V.sortIndex=I,e(f,V),n(p)===null&&V===n(f)&&(b?(D(z),z=-1):b=!0,de(M,I-W))):(V.sortIndex=se,e(p,V),T||P||(T=!0,ce(F))),V},i.unstable_shouldYield=K,i.unstable_wrapCallback=function(V){var Y=S;return function(){var I=S;S=Y;try{return V.apply(this,arguments)}finally{S=I}}}})(yu)),yu}var Sv;function hP(){return Sv||(Sv=1,mu.exports=fP()),mu.exports}var wv;function gP(){if(wv)return Mt;wv=1;var i=fs(),e=hP();function n(t){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+t,a=1;a<arguments.length;a++)o+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+t+"; visit "+o+" 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,o){c(t,o),c(t+"Capture",o)}function c(t,o){for(s[t]=o,t=0;t<o.length;t++)r.add(o[t])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,f=/^[: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]*$/,y={},v={};function S(t){return p.call(v,t)?!0:p.call(y,t)?!1:f.test(t)?v[t]=!0:(y[t]=!0,!1)}function P(t,o,a,d){if(a!==null&&a.type===0)return!1;switch(typeof o){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 T(t,o,a,d){if(o===null||typeof o>"u"||P(t,o,a,d))return!0;if(d)return!1;if(a!==null)switch(a.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function b(t,o,a,d,h,m,C){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=d,this.attributeNamespace=h,this.mustUseProperty=a,this.propertyName=t,this.type=o,this.sanitizeURL=m,this.removeEmptyString=C}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){w[t]=new b(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var o=t[0];w[o]=new b(o,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){w[t]=new b(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){w[t]=new b(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){w[t]=new b(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){w[t]=new b(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){w[t]=new b(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){w[t]=new b(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){w[t]=new b(t,5,!1,t.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function O(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 o=t.replace(D,O);w[o]=new b(o,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var o=t.replace(D,O);w[o]=new b(o,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var o=t.replace(D,O);w[o]=new b(o,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){w[t]=new b(t,1,!1,t.toLowerCase(),null,!1,!1)}),w.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){w[t]=new b(t,1,!1,t.toLowerCase(),null,!0,!0)});function N(t,o,a,d){var h=w.hasOwnProperty(o)?w[o]:null;(h!==null?h.type!==0:d||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(T(o,a,h,d)&&(a=null),d||h===null?S(o)&&(a===null?t.removeAttribute(o):t.setAttribute(o,""+a)):h.mustUseProperty?t[h.propertyName]=a===null?h.type===3?!1:"":a:(o=h.attributeName,d=h.attributeNamespace,a===null?t.removeAttribute(o):(h=h.type,a=h===3||h===4&&a===!0?"":""+a,d?t.setAttributeNS(d,o,a):t.setAttribute(o,a))))}var M=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=Symbol.for("react.element"),j=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),K=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),de=Symbol.for("react.offscreen"),V=Symbol.iterator;function Y(t){return t===null||typeof t!="object"?null:(t=V&&t[V]||t["@@iterator"],typeof t=="function"?t:null)}var I=Object.assign,W;function se(t){if(W===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);W=o&&o[1]||""}return`
3
- `+W+t}var re=!1;function oe(t,o){if(!t||re)return"";re=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(G){var d=G}Reflect.construct(t,[],o)}else{try{o.call()}catch(G){d=G}t.call(o.prototype)}else{try{throw Error()}catch(G){d=G}t()}}catch(G){if(G&&d&&typeof G.stack=="string"){for(var h=G.stack.split(`
4
- `),m=d.stack.split(`
5
- `),C=h.length-1,R=m.length-1;1<=C&&0<=R&&h[C]!==m[R];)R--;for(;1<=C&&0<=R;C--,R--)if(h[C]!==m[R]){if(C!==1||R!==1)do if(C--,R--,0>R||h[C]!==m[R]){var A=`
6
- `+h[C].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=C&&0<=R);break}}}finally{re=!1,Error.prepareStackTrace=a}return(t=t?t.displayName||t.name:"")?se(t):""}function _e(t){switch(t.tag){case 5:return se(t.type);case 16:return se("Lazy");case 13:return se("Suspense");case 19:return se("SuspenseList");case 0:case 2:case 15:return t=oe(t.type,!1),t;case 11:return t=oe(t.type.render,!1),t;case 1:return t=oe(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 L:return"Fragment";case j:return"Portal";case U:return"Profiler";case z:return"StrictMode";case ee:return"Suspense";case ae:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case K:return(t.displayName||"Context")+".Consumer";case H:return(t._context.displayName||"Context")+".Provider";case ie:var o=t.render;return t=t.displayName,t||(t=o.displayName||o.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ne:return o=t.displayName||null,o!==null?o:ye(t.type)||"Memo";case ce:o=t._payload,t=t._init;try{return ye(t(o))}catch{}}return null}function ve(t){var o=t.type;switch(t.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=o.render,t=t.displayName||t.name||"",o.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(o);case 8:return o===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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}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 be(t){var o=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function gt(t){var o=be(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,o),d=""+t[o];if(!t.hasOwnProperty(o)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var h=a.get,m=a.set;return Object.defineProperty(t,o,{configurable:!0,get:function(){return h.call(this)},set:function(C){d=""+C,m.call(this,C)}}),Object.defineProperty(t,o,{enumerable:a.enumerable}),{getValue:function(){return d},setValue:function(C){d=""+C},stopTracking:function(){t._valueTracker=null,delete t[o]}}}}function kt(t){t._valueTracker||(t._valueTracker=gt(t))}function ar(t){if(!t)return!1;var o=t._valueTracker;if(!o)return!0;var a=o.getValue(),d="";return t&&(d=be(t)?t.checked?"true":"false":t.value),t=d,t!==a?(o.setValue(t),!0):!1}function En(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 xn(t,o){var a=o.checked;return I({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??t._wrapperState.initialChecked})}function Ne(t,o){var a=o.defaultValue==null?"":o.defaultValue,d=o.checked!=null?o.checked:o.defaultChecked;a=Ce(o.value!=null?o.value:a),t._wrapperState={initialChecked:d,initialValue:a,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Jt(t,o){o=o.checked,o!=null&&N(t,"checked",o,!1)}function xe(t,o){Jt(t,o);var a=Ce(o.value),d=o.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}o.hasOwnProperty("value")?Pt(t,o.type,a):o.hasOwnProperty("defaultValue")&&Pt(t,o.type,Ce(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(t.defaultChecked=!!o.defaultChecked)}function qt(t,o,a){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var d=o.type;if(!(d!=="submit"&&d!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+t._wrapperState.initialValue,a||o===t.value||(t.value=o),t.defaultValue=o}a=t.name,a!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,a!==""&&(t.name=a)}function Pt(t,o,a){(o!=="number"||En(t.ownerDocument)!==t)&&(a==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+a&&(t.defaultValue=""+a))}var $e=Array.isArray;function Ie(t,o,a,d){if(t=t.options,o){o={};for(var h=0;h<a.length;h++)o["$"+a[h]]=!0;for(a=0;a<t.length;a++)h=o.hasOwnProperty("$"+t[a].value),t[a].selected!==h&&(t[a].selected=h),h&&d&&(t[a].defaultSelected=!0)}else{for(a=""+Ce(a),o=null,h=0;h<t.length;h++){if(t[h].value===a){t[h].selected=!0,d&&(t[h].defaultSelected=!0);return}o!==null||t[h].disabled||(o=t[h])}o!==null&&(o.selected=!0)}}function rt(t,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return I({},o,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function ze(t,o){var a=o.value;if(a==null){if(a=o.children,o=o.defaultValue,a!=null){if(o!=null)throw Error(n(92));if($e(a)){if(1<a.length)throw Error(n(93));a=a[0]}o=a}o==null&&(o=""),a=o}t._wrapperState={initialValue:Ce(a)}}function Tt(t,o){var a=Ce(o.value),d=Ce(o.defaultValue);a!=null&&(a=""+a,a!==t.value&&(t.value=a),o.defaultValue==null&&t.defaultValue!==a&&(t.defaultValue=a)),d!=null&&(t.defaultValue=""+d)}function It(t){var o=t.textContent;o===t._wrapperState.initialValue&&o!==""&&o!==null&&(t.value=o)}function Dn(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 en(t,o){return t==null||t==="http://www.w3.org/1999/xhtml"?Dn(o):t==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Ze,Et=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,a,d,h){MSApp.execUnsafeLocalFunction(function(){return t(o,a,d,h)})}:t})(function(t,o){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=o;else{for(Ze=Ze||document.createElement("div"),Ze.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Ze.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;o.firstChild;)t.appendChild(o.firstChild)}});function tn(t,o){if(o){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=o;return}}t.textContent=o}var pn={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},lr=["Webkit","ms","Moz","O"];Object.keys(pn).forEach(function(t){lr.forEach(function(o){o=o+t.charAt(0).toUpperCase()+t.substring(1),pn[o]=pn[t]})});function xt(t,o,a){return o==null||typeof o=="boolean"||o===""?"":a||typeof o!="number"||o===0||pn.hasOwnProperty(t)&&pn[t]?(""+o).trim():o+"px"}function Bt(t,o){t=t.style;for(var a in o)if(o.hasOwnProperty(a)){var d=a.indexOf("--")===0,h=xt(a,o[a],d);a==="float"&&(a="cssFloat"),d?t.setProperty(a,h):t[a]=h}}var Ts=I({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 cr(t,o){if(o){if(Ts[t]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,t));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function ur(t,o){if(t.indexOf("-")===-1)return typeof o.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 Fr=null;function zr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var qr=null,On=null,Gt=null;function Br(t){if(t=xo(t)){if(typeof qr!="function")throw Error(n(280));var o=t.stateNode;o&&(o=Qs(o),qr(t.stateNode,t.type,o))}}function Gn(t){On?Gt?Gt.push(t):Gt=[t]:On=t}function Gr(){if(On){var t=On,o=Gt;if(Gt=On=null,Br(t),o)for(t=0;t<o.length;t++)Br(o[t])}}function io(t,o){return t(o)}function oo(){}var Ol=!1;function Ag(t,o,a){if(Ol)return t(o,a);Ol=!0;try{return io(t,o,a)}finally{Ol=!1,(On!==null||Gt!==null)&&(oo(),Gr())}}function so(t,o){var a=t.stateNode;if(a===null)return null;var d=Qs(a);if(d===null)return null;a=d[o];e:switch(o){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,o,typeof a));return a}var Il=!1;if(u)try{var ao={};Object.defineProperty(ao,"passive",{get:function(){Il=!0}}),window.addEventListener("test",ao,ao),window.removeEventListener("test",ao,ao)}catch{Il=!1}function m_(t,o,a,d,h,m,C,R,A){var G=Array.prototype.slice.call(arguments,3);try{o.apply(a,G)}catch(Z){this.onError(Z)}}var lo=!1,Es=null,xs=!1,Rl=null,y_={onError:function(t){lo=!0,Es=t}};function v_(t,o,a,d,h,m,C,R,A){lo=!1,Es=null,m_.apply(y_,arguments)}function b_(t,o,a,d,h,m,C,R,A){if(v_.apply(this,arguments),lo){if(lo){var G=Es;lo=!1,Es=null}else throw Error(n(198));xs||(xs=!0,Rl=G)}}function Wr(t){var o=t,a=t;if(t.alternate)for(;o.return;)o=o.return;else{t=o;do o=t,(o.flags&4098)!==0&&(a=o.return),t=o.return;while(t)}return o.tag===3?a:null}function Mg(t){if(t.tag===13){var o=t.memoizedState;if(o===null&&(t=t.alternate,t!==null&&(o=t.memoizedState)),o!==null)return o.dehydrated}return null}function $g(t){if(Wr(t)!==t)throw Error(n(188))}function S_(t){var o=t.alternate;if(!o){if(o=Wr(t),o===null)throw Error(n(188));return o!==t?null:t}for(var a=t,d=o;;){var h=a.return;if(h===null)break;var m=h.alternate;if(m===null){if(d=h.return,d!==null){a=d;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===a)return $g(h),t;if(m===d)return $g(h),o;m=m.sibling}throw Error(n(188))}if(a.return!==d.return)a=h,d=m;else{for(var C=!1,R=h.child;R;){if(R===a){C=!0,a=h,d=m;break}if(R===d){C=!0,d=h,a=m;break}R=R.sibling}if(!C){for(R=m.child;R;){if(R===a){C=!0,a=m,d=h;break}if(R===d){C=!0,d=m,a=h;break}R=R.sibling}if(!C)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:o}function Fg(t){return t=S_(t),t!==null?zg(t):null}function zg(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var o=zg(t);if(o!==null)return o;t=t.sibling}return null}var qg=e.unstable_scheduleCallback,Bg=e.unstable_cancelCallback,w_=e.unstable_shouldYield,C_=e.unstable_requestPaint,Je=e.unstable_now,__=e.unstable_getCurrentPriorityLevel,Nl=e.unstable_ImmediatePriority,Gg=e.unstable_UserBlockingPriority,Ds=e.unstable_NormalPriority,k_=e.unstable_LowPriority,Wg=e.unstable_IdlePriority,Os=null,In=null;function P_(t){if(In&&typeof In.onCommitFiberRoot=="function")try{In.onCommitFiberRoot(Os,t,void 0,(t.current.flags&128)===128)}catch{}}var fn=Math.clz32?Math.clz32:x_,T_=Math.log,E_=Math.LN2;function x_(t){return t>>>=0,t===0?32:31-(T_(t)/E_|0)|0}var Is=64,Rs=4194304;function co(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 Ns(t,o){var a=t.pendingLanes;if(a===0)return 0;var d=0,h=t.suspendedLanes,m=t.pingedLanes,C=a&268435455;if(C!==0){var R=C&~h;R!==0?d=co(R):(m&=C,m!==0&&(d=co(m)))}else C=a&~h,C!==0?d=co(C):m!==0&&(d=co(m));if(d===0)return 0;if(o!==0&&o!==d&&(o&h)===0&&(h=d&-d,m=o&-o,h>=m||h===16&&(m&4194240)!==0))return o;if((d&4)!==0&&(d|=a&16),o=t.entangledLanes,o!==0)for(t=t.entanglements,o&=d;0<o;)a=31-fn(o),h=1<<a,d|=t[a],o&=~h;return d}function D_(t,o){switch(t){case 1:case 2:case 4:return o+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 o+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 O_(t,o){for(var a=t.suspendedLanes,d=t.pingedLanes,h=t.expirationTimes,m=t.pendingLanes;0<m;){var C=31-fn(m),R=1<<C,A=h[C];A===-1?((R&a)===0||(R&d)!==0)&&(h[C]=D_(R,o)):A<=o&&(t.expiredLanes|=R),m&=~R}}function jl(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Ug(){var t=Is;return Is<<=1,(Is&4194240)===0&&(Is=64),t}function Ll(t){for(var o=[],a=0;31>a;a++)o.push(t);return o}function uo(t,o,a){t.pendingLanes|=o,o!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,o=31-fn(o),t[o]=a}function I_(t,o){var a=t.pendingLanes&~o;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=o,t.mutableReadLanes&=o,t.entangledLanes&=o,o=t.entanglements;var d=t.eventTimes;for(t=t.expirationTimes;0<a;){var h=31-fn(a),m=1<<h;o[h]=0,d[h]=-1,t[h]=-1,a&=~m}}function Al(t,o){var a=t.entangledLanes|=o;for(t=t.entanglements;a;){var d=31-fn(a),h=1<<d;h&o|t[d]&o&&(t[d]|=o),a&=~h}}var Fe=0;function Hg(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Vg,Ml,Kg,Qg,Yg,$l=!1,js=[],dr=null,pr=null,fr=null,po=new Map,fo=new Map,hr=[],R_="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 Xg(t,o){switch(t){case"focusin":case"focusout":dr=null;break;case"dragenter":case"dragleave":pr=null;break;case"mouseover":case"mouseout":fr=null;break;case"pointerover":case"pointerout":po.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":fo.delete(o.pointerId)}}function ho(t,o,a,d,h,m){return t===null||t.nativeEvent!==m?(t={blockedOn:o,domEventName:a,eventSystemFlags:d,nativeEvent:m,targetContainers:[h]},o!==null&&(o=xo(o),o!==null&&Ml(o)),t):(t.eventSystemFlags|=d,o=t.targetContainers,h!==null&&o.indexOf(h)===-1&&o.push(h),t)}function N_(t,o,a,d,h){switch(o){case"focusin":return dr=ho(dr,t,o,a,d,h),!0;case"dragenter":return pr=ho(pr,t,o,a,d,h),!0;case"mouseover":return fr=ho(fr,t,o,a,d,h),!0;case"pointerover":var m=h.pointerId;return po.set(m,ho(po.get(m)||null,t,o,a,d,h)),!0;case"gotpointercapture":return m=h.pointerId,fo.set(m,ho(fo.get(m)||null,t,o,a,d,h)),!0}return!1}function Zg(t){var o=Ur(t.target);if(o!==null){var a=Wr(o);if(a!==null){if(o=a.tag,o===13){if(o=Mg(a),o!==null){t.blockedOn=o,Yg(t.priority,function(){Kg(a)});return}}else if(o===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ls(t){if(t.blockedOn!==null)return!1;for(var o=t.targetContainers;0<o.length;){var a=zl(t.domEventName,t.eventSystemFlags,o[0],t.nativeEvent);if(a===null){a=t.nativeEvent;var d=new a.constructor(a.type,a);Fr=d,a.target.dispatchEvent(d),Fr=null}else return o=xo(a),o!==null&&Ml(o),t.blockedOn=a,!1;o.shift()}return!0}function Jg(t,o,a){Ls(t)&&a.delete(o)}function j_(){$l=!1,dr!==null&&Ls(dr)&&(dr=null),pr!==null&&Ls(pr)&&(pr=null),fr!==null&&Ls(fr)&&(fr=null),po.forEach(Jg),fo.forEach(Jg)}function go(t,o){t.blockedOn===o&&(t.blockedOn=null,$l||($l=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,j_)))}function mo(t){function o(h){return go(h,t)}if(0<js.length){go(js[0],t);for(var a=1;a<js.length;a++){var d=js[a];d.blockedOn===t&&(d.blockedOn=null)}}for(dr!==null&&go(dr,t),pr!==null&&go(pr,t),fr!==null&&go(fr,t),po.forEach(o),fo.forEach(o),a=0;a<hr.length;a++)d=hr[a],d.blockedOn===t&&(d.blockedOn=null);for(;0<hr.length&&(a=hr[0],a.blockedOn===null);)Zg(a),a.blockedOn===null&&hr.shift()}var vi=M.ReactCurrentBatchConfig,As=!0;function L_(t,o,a,d){var h=Fe,m=vi.transition;vi.transition=null;try{Fe=1,Fl(t,o,a,d)}finally{Fe=h,vi.transition=m}}function A_(t,o,a,d){var h=Fe,m=vi.transition;vi.transition=null;try{Fe=4,Fl(t,o,a,d)}finally{Fe=h,vi.transition=m}}function Fl(t,o,a,d){if(As){var h=zl(t,o,a,d);if(h===null)rc(t,o,d,Ms,a),Xg(t,d);else if(N_(h,t,o,a,d))d.stopPropagation();else if(Xg(t,d),o&4&&-1<R_.indexOf(t)){for(;h!==null;){var m=xo(h);if(m!==null&&Vg(m),m=zl(t,o,a,d),m===null&&rc(t,o,d,Ms,a),m===h)break;h=m}h!==null&&d.stopPropagation()}else rc(t,o,d,null,a)}}var Ms=null;function zl(t,o,a,d){if(Ms=null,t=zr(d),t=Ur(t),t!==null)if(o=Wr(t),o===null)t=null;else if(a=o.tag,a===13){if(t=Mg(o),t!==null)return t;t=null}else if(a===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;t=null}else o!==t&&(t=null);return Ms=t,null}function em(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(__()){case Nl:return 1;case Gg:return 4;case Ds:case k_:return 16;case Wg:return 536870912;default:return 16}default:return 16}}var gr=null,ql=null,$s=null;function tm(){if($s)return $s;var t,o=ql,a=o.length,d,h="value"in gr?gr.value:gr.textContent,m=h.length;for(t=0;t<a&&o[t]===h[t];t++);var C=a-t;for(d=1;d<=C&&o[a-d]===h[m-d];d++);return $s=h.slice(t,1<d?1-d:void 0)}function Fs(t){var o=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&o===13&&(t=13)):t=o,t===10&&(t=13),32<=t||t===13?t:0}function zs(){return!0}function nm(){return!1}function Wt(t){function o(a,d,h,m,C){this._reactName=a,this._targetInst=h,this.type=d,this.nativeEvent=m,this.target=C,this.currentTarget=null;for(var R in t)t.hasOwnProperty(R)&&(a=t[R],this[R]=a?a(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?zs:nm,this.isPropagationStopped=nm,this}return I(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=zs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=zs)},persist:function(){},isPersistent:zs}),o}var bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bl=Wt(bi),yo=I({},bi,{view:0,detail:0}),M_=Wt(yo),Gl,Wl,vo,qs=I({},yo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hl,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!==vo&&(vo&&t.type==="mousemove"?(Gl=t.screenX-vo.screenX,Wl=t.screenY-vo.screenY):Wl=Gl=0,vo=t),Gl)},movementY:function(t){return"movementY"in t?t.movementY:Wl}}),rm=Wt(qs),$_=I({},qs,{dataTransfer:0}),F_=Wt($_),z_=I({},yo,{relatedTarget:0}),Ul=Wt(z_),q_=I({},bi,{animationName:0,elapsedTime:0,pseudoElement:0}),B_=Wt(q_),G_=I({},bi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),W_=Wt(G_),U_=I({},bi,{data:0}),im=Wt(U_),H_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V_={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"},K_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q_(t){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(t):(t=K_[t])?!!o[t]:!1}function Hl(){return Q_}var Y_=I({},yo,{key:function(t){if(t.key){var o=H_[t.key]||t.key;if(o!=="Unidentified")return o}return t.type==="keypress"?(t=Fs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?V_[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hl,charCode:function(t){return t.type==="keypress"?Fs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Fs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),X_=Wt(Y_),Z_=I({},qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),om=Wt(Z_),J_=I({},yo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hl}),ek=Wt(J_),tk=I({},bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),nk=Wt(tk),rk=I({},qs,{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}),ik=Wt(rk),ok=[9,13,27,32],Vl=u&&"CompositionEvent"in window,bo=null;u&&"documentMode"in document&&(bo=document.documentMode);var sk=u&&"TextEvent"in window&&!bo,sm=u&&(!Vl||bo&&8<bo&&11>=bo),am=" ",lm=!1;function cm(t,o){switch(t){case"keyup":return ok.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function um(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Si=!1;function ak(t,o){switch(t){case"compositionend":return um(o);case"keypress":return o.which!==32?null:(lm=!0,am);case"textInput":return t=o.data,t===am&&lm?null:t;default:return null}}function lk(t,o){if(Si)return t==="compositionend"||!Vl&&cm(t,o)?(t=tm(),$s=ql=gr=null,Si=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return sm&&o.locale!=="ko"?null:o.data;default:return null}}var ck={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 dm(t){var o=t&&t.nodeName&&t.nodeName.toLowerCase();return o==="input"?!!ck[t.type]:o==="textarea"}function pm(t,o,a,d){Gn(d),o=Hs(o,"onChange"),0<o.length&&(a=new Bl("onChange","change",null,a,d),t.push({event:a,listeners:o}))}var So=null,wo=null;function uk(t){Om(t,0)}function Bs(t){var o=Pi(t);if(ar(o))return t}function dk(t,o){if(t==="change")return o}var fm=!1;if(u){var Kl;if(u){var Ql="oninput"in document;if(!Ql){var hm=document.createElement("div");hm.setAttribute("oninput","return;"),Ql=typeof hm.oninput=="function"}Kl=Ql}else Kl=!1;fm=Kl&&(!document.documentMode||9<document.documentMode)}function gm(){So&&(So.detachEvent("onpropertychange",mm),wo=So=null)}function mm(t){if(t.propertyName==="value"&&Bs(wo)){var o=[];pm(o,wo,t,zr(t)),Ag(uk,o)}}function pk(t,o,a){t==="focusin"?(gm(),So=o,wo=a,So.attachEvent("onpropertychange",mm)):t==="focusout"&&gm()}function fk(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Bs(wo)}function hk(t,o){if(t==="click")return Bs(o)}function gk(t,o){if(t==="input"||t==="change")return Bs(o)}function mk(t,o){return t===o&&(t!==0||1/t===1/o)||t!==t&&o!==o}var hn=typeof Object.is=="function"?Object.is:mk;function Co(t,o){if(hn(t,o))return!0;if(typeof t!="object"||t===null||typeof o!="object"||o===null)return!1;var a=Object.keys(t),d=Object.keys(o);if(a.length!==d.length)return!1;for(d=0;d<a.length;d++){var h=a[d];if(!p.call(o,h)||!hn(t[h],o[h]))return!1}return!0}function ym(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function vm(t,o){var a=ym(t);t=0;for(var d;a;){if(a.nodeType===3){if(d=t+a.textContent.length,t<=o&&d>=o)return{node:a,offset:o-t};t=d}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ym(a)}}function bm(t,o){return t&&o?t===o?!0:t&&t.nodeType===3?!1:o&&o.nodeType===3?bm(t,o.parentNode):"contains"in t?t.contains(o):t.compareDocumentPosition?!!(t.compareDocumentPosition(o)&16):!1:!1}function Sm(){for(var t=window,o=En();o instanceof t.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)t=o.contentWindow;else break;o=En(t.document)}return o}function Yl(t){var o=t&&t.nodeName&&t.nodeName.toLowerCase();return o&&(o==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||o==="textarea"||t.contentEditable==="true")}function yk(t){var o=Sm(),a=t.focusedElem,d=t.selectionRange;if(o!==a&&a&&a.ownerDocument&&bm(a.ownerDocument.documentElement,a)){if(d!==null&&Yl(a)){if(o=d.start,t=d.end,t===void 0&&(t=o),"selectionStart"in a)a.selectionStart=o,a.selectionEnd=Math.min(t,a.value.length);else if(t=(o=a.ownerDocument||document)&&o.defaultView||window,t.getSelection){t=t.getSelection();var h=a.textContent.length,m=Math.min(d.start,h);d=d.end===void 0?m:Math.min(d.end,h),!t.extend&&m>d&&(h=d,d=m,m=h),h=vm(a,m);var C=vm(a,d);h&&C&&(t.rangeCount!==1||t.anchorNode!==h.node||t.anchorOffset!==h.offset||t.focusNode!==C.node||t.focusOffset!==C.offset)&&(o=o.createRange(),o.setStart(h.node,h.offset),t.removeAllRanges(),m>d?(t.addRange(o),t.extend(C.node,C.offset)):(o.setEnd(C.node,C.offset),t.addRange(o)))}}for(o=[],t=a;t=t.parentNode;)t.nodeType===1&&o.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<o.length;a++)t=o[a],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var vk=u&&"documentMode"in document&&11>=document.documentMode,wi=null,Xl=null,_o=null,Zl=!1;function wm(t,o,a){var d=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Zl||wi==null||wi!==En(d)||(d=wi,"selectionStart"in d&&Yl(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}),_o&&Co(_o,d)||(_o=d,d=Hs(Xl,"onSelect"),0<d.length&&(o=new Bl("onSelect","select",null,o,a),t.push({event:o,listeners:d}),o.target=wi)))}function Gs(t,o){var a={};return a[t.toLowerCase()]=o.toLowerCase(),a["Webkit"+t]="webkit"+o,a["Moz"+t]="moz"+o,a}var Ci={animationend:Gs("Animation","AnimationEnd"),animationiteration:Gs("Animation","AnimationIteration"),animationstart:Gs("Animation","AnimationStart"),transitionend:Gs("Transition","TransitionEnd")},Jl={},Cm={};u&&(Cm=document.createElement("div").style,"AnimationEvent"in window||(delete Ci.animationend.animation,delete Ci.animationiteration.animation,delete Ci.animationstart.animation),"TransitionEvent"in window||delete Ci.transitionend.transition);function Ws(t){if(Jl[t])return Jl[t];if(!Ci[t])return t;var o=Ci[t],a;for(a in o)if(o.hasOwnProperty(a)&&a in Cm)return Jl[t]=o[a];return t}var _m=Ws("animationend"),km=Ws("animationiteration"),Pm=Ws("animationstart"),Tm=Ws("transitionend"),Em=new Map,xm="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 mr(t,o){Em.set(t,o),l(o,[t])}for(var ec=0;ec<xm.length;ec++){var tc=xm[ec],bk=tc.toLowerCase(),Sk=tc[0].toUpperCase()+tc.slice(1);mr(bk,"on"+Sk)}mr(_m,"onAnimationEnd"),mr(km,"onAnimationIteration"),mr(Pm,"onAnimationStart"),mr("dblclick","onDoubleClick"),mr("focusin","onFocus"),mr("focusout","onBlur"),mr(Tm,"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 ko="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(" "),wk=new Set("cancel close invalid load scroll toggle".split(" ").concat(ko));function Dm(t,o,a){var d=t.type||"unknown-event";t.currentTarget=a,b_(d,o,void 0,t),t.currentTarget=null}function Om(t,o){o=(o&4)!==0;for(var a=0;a<t.length;a++){var d=t[a],h=d.event;d=d.listeners;e:{var m=void 0;if(o)for(var C=d.length-1;0<=C;C--){var R=d[C],A=R.instance,G=R.currentTarget;if(R=R.listener,A!==m&&h.isPropagationStopped())break e;Dm(h,R,G),m=A}else for(C=0;C<d.length;C++){if(R=d[C],A=R.instance,G=R.currentTarget,R=R.listener,A!==m&&h.isPropagationStopped())break e;Dm(h,R,G),m=A}}}if(xs)throw t=Rl,xs=!1,Rl=null,t}function Be(t,o){var a=o[cc];a===void 0&&(a=o[cc]=new Set);var d=t+"__bubble";a.has(d)||(Im(o,t,2,!1),a.add(d))}function nc(t,o,a){var d=0;o&&(d|=4),Im(a,t,d,o)}var Us="_reactListening"+Math.random().toString(36).slice(2);function Po(t){if(!t[Us]){t[Us]=!0,r.forEach(function(a){a!=="selectionchange"&&(wk.has(a)||nc(a,!1,t),nc(a,!0,t))});var o=t.nodeType===9?t:t.ownerDocument;o===null||o[Us]||(o[Us]=!0,nc("selectionchange",!1,o))}}function Im(t,o,a,d){switch(em(o)){case 1:var h=L_;break;case 4:h=A_;break;default:h=Fl}a=h.bind(null,o,a,t),h=void 0,!Il||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(h=!0),d?h!==void 0?t.addEventListener(o,a,{capture:!0,passive:h}):t.addEventListener(o,a,!0):h!==void 0?t.addEventListener(o,a,{passive:h}):t.addEventListener(o,a,!1)}function rc(t,o,a,d,h){var m=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var C=d.tag;if(C===3||C===4){var R=d.stateNode.containerInfo;if(R===h||R.nodeType===8&&R.parentNode===h)break;if(C===4)for(C=d.return;C!==null;){var A=C.tag;if((A===3||A===4)&&(A=C.stateNode.containerInfo,A===h||A.nodeType===8&&A.parentNode===h))return;C=C.return}for(;R!==null;){if(C=Ur(R),C===null)return;if(A=C.tag,A===5||A===6){d=m=C;continue e}R=R.parentNode}}d=d.return}Ag(function(){var G=m,Z=zr(a),J=[];e:{var X=Em.get(t);if(X!==void 0){var le=Bl,pe=t;switch(t){case"keypress":if(Fs(a)===0)break e;case"keydown":case"keyup":le=X_;break;case"focusin":pe="focus",le=Ul;break;case"focusout":pe="blur",le=Ul;break;case"beforeblur":case"afterblur":le=Ul;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":le=rm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=F_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=ek;break;case _m:case km:case Pm:le=B_;break;case Tm:le=nk;break;case"scroll":le=M_;break;case"wheel":le=ik;break;case"copy":case"cut":case"paste":le=W_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=om}var fe=(o&4)!==0,et=!fe&&t==="scroll",q=fe?X!==null?X+"Capture":null:X;fe=[];for(var $=G,B;$!==null;){B=$;var te=B.stateNode;if(B.tag===5&&te!==null&&(B=te,q!==null&&(te=so($,q),te!=null&&fe.push(To($,te,B)))),et)break;$=$.return}0<fe.length&&(X=new le(X,pe,null,a,Z),J.push({event:X,listeners:fe}))}}if((o&7)===0){e:{if(X=t==="mouseover"||t==="pointerover",le=t==="mouseout"||t==="pointerout",X&&a!==Fr&&(pe=a.relatedTarget||a.fromElement)&&(Ur(pe)||pe[Wn]))break e;if((le||X)&&(X=Z.window===Z?Z:(X=Z.ownerDocument)?X.defaultView||X.parentWindow:window,le?(pe=a.relatedTarget||a.toElement,le=G,pe=pe?Ur(pe):null,pe!==null&&(et=Wr(pe),pe!==et||pe.tag!==5&&pe.tag!==6)&&(pe=null)):(le=null,pe=G),le!==pe)){if(fe=rm,te="onMouseLeave",q="onMouseEnter",$="mouse",(t==="pointerout"||t==="pointerover")&&(fe=om,te="onPointerLeave",q="onPointerEnter",$="pointer"),et=le==null?X:Pi(le),B=pe==null?X:Pi(pe),X=new fe(te,$+"leave",le,a,Z),X.target=et,X.relatedTarget=B,te=null,Ur(Z)===G&&(fe=new fe(q,$+"enter",pe,a,Z),fe.target=B,fe.relatedTarget=et,te=fe),et=te,le&&pe)t:{for(fe=le,q=pe,$=0,B=fe;B;B=_i(B))$++;for(B=0,te=q;te;te=_i(te))B++;for(;0<$-B;)fe=_i(fe),$--;for(;0<B-$;)q=_i(q),B--;for(;$--;){if(fe===q||q!==null&&fe===q.alternate)break t;fe=_i(fe),q=_i(q)}fe=null}else fe=null;le!==null&&Rm(J,X,le,fe,!1),pe!==null&&et!==null&&Rm(J,et,pe,fe,!0)}}e:{if(X=G?Pi(G):window,le=X.nodeName&&X.nodeName.toLowerCase(),le==="select"||le==="input"&&X.type==="file")var ge=dk;else if(dm(X))if(fm)ge=gk;else{ge=fk;var Se=pk}else(le=X.nodeName)&&le.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&(ge=hk);if(ge&&(ge=ge(t,G))){pm(J,ge,a,Z);break e}Se&&Se(t,X,G),t==="focusout"&&(Se=X._wrapperState)&&Se.controlled&&X.type==="number"&&Pt(X,"number",X.value)}switch(Se=G?Pi(G):window,t){case"focusin":(dm(Se)||Se.contentEditable==="true")&&(wi=Se,Xl=G,_o=null);break;case"focusout":_o=Xl=wi=null;break;case"mousedown":Zl=!0;break;case"contextmenu":case"mouseup":case"dragend":Zl=!1,wm(J,a,Z);break;case"selectionchange":if(vk)break;case"keydown":case"keyup":wm(J,a,Z)}var we;if(Vl)e:{switch(t){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Si?cm(t,a)&&(ke="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(ke="onCompositionStart");ke&&(sm&&a.locale!=="ko"&&(Si||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Si&&(we=tm()):(gr=Z,ql="value"in gr?gr.value:gr.textContent,Si=!0)),Se=Hs(G,ke),0<Se.length&&(ke=new im(ke,t,null,a,Z),J.push({event:ke,listeners:Se}),we?ke.data=we:(we=um(a),we!==null&&(ke.data=we)))),(we=sk?ak(t,a):lk(t,a))&&(G=Hs(G,"onBeforeInput"),0<G.length&&(Z=new im("onBeforeInput","beforeinput",null,a,Z),J.push({event:Z,listeners:G}),Z.data=we))}Om(J,o)})}function To(t,o,a){return{instance:t,listener:o,currentTarget:a}}function Hs(t,o){for(var a=o+"Capture",d=[];t!==null;){var h=t,m=h.stateNode;h.tag===5&&m!==null&&(h=m,m=so(t,a),m!=null&&d.unshift(To(t,m,h)),m=so(t,o),m!=null&&d.push(To(t,m,h))),t=t.return}return d}function _i(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Rm(t,o,a,d,h){for(var m=o._reactName,C=[];a!==null&&a!==d;){var R=a,A=R.alternate,G=R.stateNode;if(A!==null&&A===d)break;R.tag===5&&G!==null&&(R=G,h?(A=so(a,m),A!=null&&C.unshift(To(a,A,R))):h||(A=so(a,m),A!=null&&C.push(To(a,A,R)))),a=a.return}C.length!==0&&t.push({event:o,listeners:C})}var Ck=/\r\n?/g,_k=/\u0000|\uFFFD/g;function Nm(t){return(typeof t=="string"?t:""+t).replace(Ck,`
7
- `).replace(_k,"")}function Vs(t,o,a){if(o=Nm(o),Nm(t)!==o&&a)throw Error(n(425))}function Ks(){}var ic=null,oc=null;function sc(t,o){return t==="textarea"||t==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var ac=typeof setTimeout=="function"?setTimeout:void 0,kk=typeof clearTimeout=="function"?clearTimeout:void 0,jm=typeof Promise=="function"?Promise:void 0,Pk=typeof queueMicrotask=="function"?queueMicrotask:typeof jm<"u"?function(t){return jm.resolve(null).then(t).catch(Tk)}:ac;function Tk(t){setTimeout(function(){throw t})}function lc(t,o){var a=o,d=0;do{var h=a.nextSibling;if(t.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"){if(d===0){t.removeChild(h),mo(o);return}d--}else a!=="$"&&a!=="$?"&&a!=="$!"||d++;a=h}while(a);mo(o)}function yr(t){for(;t!=null;t=t.nextSibling){var o=t.nodeType;if(o===1||o===3)break;if(o===8){if(o=t.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return t}function Lm(t){t=t.previousSibling;for(var o=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"){if(o===0)return t;o--}else a==="/$"&&o++}t=t.previousSibling}return null}var ki=Math.random().toString(36).slice(2),Rn="__reactFiber$"+ki,Eo="__reactProps$"+ki,Wn="__reactContainer$"+ki,cc="__reactEvents$"+ki,Ek="__reactListeners$"+ki,xk="__reactHandles$"+ki;function Ur(t){var o=t[Rn];if(o)return o;for(var a=t.parentNode;a;){if(o=a[Wn]||a[Rn]){if(a=o.alternate,o.child!==null||a!==null&&a.child!==null)for(t=Lm(t);t!==null;){if(a=t[Rn])return a;t=Lm(t)}return o}t=a,a=t.parentNode}return null}function xo(t){return t=t[Rn]||t[Wn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Pi(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(n(33))}function Qs(t){return t[Eo]||null}var uc=[],Ti=-1;function vr(t){return{current:t}}function Ge(t){0>Ti||(t.current=uc[Ti],uc[Ti]=null,Ti--)}function qe(t,o){Ti++,uc[Ti]=t.current,t.current=o}var br={},mt=vr(br),Rt=vr(!1),Hr=br;function Ei(t,o){var a=t.type.contextTypes;if(!a)return br;var d=t.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===o)return d.__reactInternalMemoizedMaskedChildContext;var h={},m;for(m in a)h[m]=o[m];return d&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=h),h}function Nt(t){return t=t.childContextTypes,t!=null}function Ys(){Ge(Rt),Ge(mt)}function Am(t,o,a){if(mt.current!==br)throw Error(n(168));qe(mt,o),qe(Rt,a)}function Mm(t,o,a){var d=t.stateNode;if(o=o.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var h in d)if(!(h in o))throw Error(n(108,ve(t)||"Unknown",h));return I({},a,d)}function Xs(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||br,Hr=mt.current,qe(mt,t),qe(Rt,Rt.current),!0}function $m(t,o,a){var d=t.stateNode;if(!d)throw Error(n(169));a?(t=Mm(t,o,Hr),d.__reactInternalMemoizedMergedChildContext=t,Ge(Rt),Ge(mt),qe(mt,t)):Ge(Rt),qe(Rt,a)}var Un=null,Zs=!1,dc=!1;function Fm(t){Un===null?Un=[t]:Un.push(t)}function Dk(t){Zs=!0,Fm(t)}function Sr(){if(!dc&&Un!==null){dc=!0;var t=0,o=Fe;try{var a=Un;for(Fe=1;t<a.length;t++){var d=a[t];do d=d(!0);while(d!==null)}Un=null,Zs=!1}catch(h){throw Un!==null&&(Un=Un.slice(t+1)),qg(Nl,Sr),h}finally{Fe=o,dc=!1}}return null}var xi=[],Di=0,Js=null,ea=0,nn=[],rn=0,Vr=null,Hn=1,Vn="";function Kr(t,o){xi[Di++]=ea,xi[Di++]=Js,Js=t,ea=o}function zm(t,o,a){nn[rn++]=Hn,nn[rn++]=Vn,nn[rn++]=Vr,Vr=t;var d=Hn;t=Vn;var h=32-fn(d)-1;d&=~(1<<h),a+=1;var m=32-fn(o)+h;if(30<m){var C=h-h%5;m=(d&(1<<C)-1).toString(32),d>>=C,h-=C,Hn=1<<32-fn(o)+h|a<<h|d,Vn=m+t}else Hn=1<<m|a<<h|d,Vn=t}function pc(t){t.return!==null&&(Kr(t,1),zm(t,1,0))}function fc(t){for(;t===Js;)Js=xi[--Di],xi[Di]=null,ea=xi[--Di],xi[Di]=null;for(;t===Vr;)Vr=nn[--rn],nn[rn]=null,Vn=nn[--rn],nn[rn]=null,Hn=nn[--rn],nn[rn]=null}var Ut=null,Ht=null,We=!1,gn=null;function qm(t,o){var a=ln(5,null,null,0);a.elementType="DELETED",a.stateNode=o,a.return=t,o=t.deletions,o===null?(t.deletions=[a],t.flags|=16):o.push(a)}function Bm(t,o){switch(t.tag){case 5:var a=t.type;return o=o.nodeType!==1||a.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(t.stateNode=o,Ut=t,Ht=yr(o.firstChild),!0):!1;case 6:return o=t.pendingProps===""||o.nodeType!==3?null:o,o!==null?(t.stateNode=o,Ut=t,Ht=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(a=Vr!==null?{id:Hn,overflow:Vn}:null,t.memoizedState={dehydrated:o,treeContext:a,retryLane:1073741824},a=ln(18,null,null,0),a.stateNode=o,a.return=t,t.child=a,Ut=t,Ht=null,!0):!1;default:return!1}}function hc(t){return(t.mode&1)!==0&&(t.flags&128)===0}function gc(t){if(We){var o=Ht;if(o){var a=o;if(!Bm(t,o)){if(hc(t))throw Error(n(418));o=yr(a.nextSibling);var d=Ut;o&&Bm(t,o)?qm(d,a):(t.flags=t.flags&-4097|2,We=!1,Ut=t)}}else{if(hc(t))throw Error(n(418));t.flags=t.flags&-4097|2,We=!1,Ut=t}}}function Gm(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ut=t}function ta(t){if(t!==Ut)return!1;if(!We)return Gm(t),We=!0,!1;var o;if((o=t.tag!==3)&&!(o=t.tag!==5)&&(o=t.type,o=o!=="head"&&o!=="body"&&!sc(t.type,t.memoizedProps)),o&&(o=Ht)){if(hc(t))throw Wm(),Error(n(418));for(;o;)qm(t,o),o=yr(o.nextSibling)}if(Gm(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(n(317));e:{for(t=t.nextSibling,o=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"){if(o===0){Ht=yr(t.nextSibling);break e}o--}else a!=="$"&&a!=="$!"&&a!=="$?"||o++}t=t.nextSibling}Ht=null}}else Ht=Ut?yr(t.stateNode.nextSibling):null;return!0}function Wm(){for(var t=Ht;t;)t=yr(t.nextSibling)}function Oi(){Ht=Ut=null,We=!1}function mc(t){gn===null?gn=[t]:gn.push(t)}var Ok=M.ReactCurrentBatchConfig;function mn(t,o){if(t&&t.defaultProps){o=I({},o),t=t.defaultProps;for(var a in t)o[a]===void 0&&(o[a]=t[a]);return o}return o}var na=vr(null),ra=null,Ii=null,yc=null;function vc(){yc=Ii=ra=null}function bc(t){var o=na.current;Ge(na),t._currentValue=o}function Sc(t,o,a){for(;t!==null;){var d=t.alternate;if((t.childLanes&o)!==o?(t.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),t===a)break;t=t.return}}function Ri(t,o){ra=t,yc=Ii=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&o)!==0&&(jt=!0),t.firstContext=null)}function on(t){var o=t._currentValue;if(yc!==t)if(t={context:t,memoizedValue:o,next:null},Ii===null){if(ra===null)throw Error(n(308));Ii=t,ra.dependencies={lanes:0,firstContext:t}}else Ii=Ii.next=t;return o}var Qr=null;function wc(t){Qr===null?Qr=[t]:Qr.push(t)}function Um(t,o,a,d){var h=o.interleaved;return h===null?(a.next=a,wc(o)):(a.next=h.next,h.next=a),o.interleaved=a,Kn(t,d)}function Kn(t,o){t.lanes|=o;var a=t.alternate;for(a!==null&&(a.lanes|=o),a=t,t=t.return;t!==null;)t.childLanes|=o,a=t.alternate,a!==null&&(a.childLanes|=o),a=t,t=t.return;return a.tag===3?a.stateNode:null}var wr=!1;function Cc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hm(t,o){t=t.updateQueue,o.updateQueue===t&&(o.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Qn(t,o){return{eventTime:t,lane:o,tag:0,payload:null,callback:null,next:null}}function Cr(t,o,a){var d=t.updateQueue;if(d===null)return null;if(d=d.shared,(Re&2)!==0){var h=d.pending;return h===null?o.next=o:(o.next=h.next,h.next=o),d.pending=o,Kn(t,a)}return h=d.interleaved,h===null?(o.next=o,wc(d)):(o.next=h.next,h.next=o),d.interleaved=o,Kn(t,a)}function ia(t,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194240)!==0)){var d=o.lanes;d&=t.pendingLanes,a|=d,o.lanes=a,Al(t,a)}}function Vm(t,o){var a=t.updateQueue,d=t.alternate;if(d!==null&&(d=d.updateQueue,a===d)){var h=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var C={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};m===null?h=m=C:m=m.next=C,a=a.next}while(a!==null);m===null?h=m=o:m=m.next=o}else h=m=o;a={baseState:d.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:d.shared,effects:d.effects},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=o:t.next=o,a.lastBaseUpdate=o}function oa(t,o,a,d){var h=t.updateQueue;wr=!1;var m=h.firstBaseUpdate,C=h.lastBaseUpdate,R=h.shared.pending;if(R!==null){h.shared.pending=null;var A=R,G=A.next;A.next=null,C===null?m=G:C.next=G,C=A;var Z=t.alternate;Z!==null&&(Z=Z.updateQueue,R=Z.lastBaseUpdate,R!==C&&(R===null?Z.firstBaseUpdate=G:R.next=G,Z.lastBaseUpdate=A))}if(m!==null){var J=h.baseState;C=0,Z=G=A=null,R=m;do{var X=R.lane,le=R.eventTime;if((d&X)===X){Z!==null&&(Z=Z.next={eventTime:le,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var pe=t,fe=R;switch(X=o,le=a,fe.tag){case 1:if(pe=fe.payload,typeof pe=="function"){J=pe.call(le,J,X);break e}J=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=fe.payload,X=typeof pe=="function"?pe.call(le,J,X):pe,X==null)break e;J=I({},J,X);break e;case 2:wr=!0}}R.callback!==null&&R.lane!==0&&(t.flags|=64,X=h.effects,X===null?h.effects=[R]:X.push(R))}else le={eventTime:le,lane:X,tag:R.tag,payload:R.payload,callback:R.callback,next:null},Z===null?(G=Z=le,A=J):Z=Z.next=le,C|=X;if(R=R.next,R===null){if(R=h.shared.pending,R===null)break;X=R,R=X.next,X.next=null,h.lastBaseUpdate=X,h.shared.pending=null}}while(!0);if(Z===null&&(A=J),h.baseState=A,h.firstBaseUpdate=G,h.lastBaseUpdate=Z,o=h.shared.interleaved,o!==null){h=o;do C|=h.lane,h=h.next;while(h!==o)}else m===null&&(h.shared.lanes=0);Zr|=C,t.lanes=C,t.memoizedState=J}}function Km(t,o,a){if(t=o.effects,o.effects=null,t!==null)for(o=0;o<t.length;o++){var d=t[o],h=d.callback;if(h!==null){if(d.callback=null,d=a,typeof h!="function")throw Error(n(191,h));h.call(d)}}}var Qm=new i.Component().refs;function _c(t,o,a,d){o=t.memoizedState,a=a(d,o),a=a==null?o:I({},o,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var sa={isMounted:function(t){return(t=t._reactInternals)?Wr(t)===t:!1},enqueueSetState:function(t,o,a){t=t._reactInternals;var d=Ot(),h=Tr(t),m=Qn(d,h);m.payload=o,a!=null&&(m.callback=a),o=Cr(t,m,h),o!==null&&(bn(o,t,h,d),ia(o,t,h))},enqueueReplaceState:function(t,o,a){t=t._reactInternals;var d=Ot(),h=Tr(t),m=Qn(d,h);m.tag=1,m.payload=o,a!=null&&(m.callback=a),o=Cr(t,m,h),o!==null&&(bn(o,t,h,d),ia(o,t,h))},enqueueForceUpdate:function(t,o){t=t._reactInternals;var a=Ot(),d=Tr(t),h=Qn(a,d);h.tag=2,o!=null&&(h.callback=o),o=Cr(t,h,d),o!==null&&(bn(o,t,d,a),ia(o,t,d))}};function Ym(t,o,a,d,h,m,C){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(d,m,C):o.prototype&&o.prototype.isPureReactComponent?!Co(a,d)||!Co(h,m):!0}function Xm(t,o,a){var d=!1,h=br,m=o.contextType;return typeof m=="object"&&m!==null?m=on(m):(h=Nt(o)?Hr:mt.current,d=o.contextTypes,m=(d=d!=null)?Ei(t,h):br),o=new o(a,m),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=sa,t.stateNode=o,o._reactInternals=t,d&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=h,t.__reactInternalMemoizedMaskedChildContext=m),o}function Zm(t,o,a,d){t=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(a,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(a,d),o.state!==t&&sa.enqueueReplaceState(o,o.state,null)}function kc(t,o,a,d){var h=t.stateNode;h.props=a,h.state=t.memoizedState,h.refs=Qm,Cc(t);var m=o.contextType;typeof m=="object"&&m!==null?h.context=on(m):(m=Nt(o)?Hr:mt.current,h.context=Ei(t,m)),h.state=t.memoizedState,m=o.getDerivedStateFromProps,typeof m=="function"&&(_c(t,o,m,a),h.state=t.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(o=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),o!==h.state&&sa.enqueueReplaceState(h,h.state,null),oa(t,a,h,d),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308)}function Do(t,o,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 h=d,m=""+t;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===m?o.ref:(o=function(C){var R=h.refs;R===Qm&&(R=h.refs={}),C===null?delete R[m]:R[m]=C},o._stringRef=m,o)}if(typeof t!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,t))}return t}function aa(t,o){throw t=Object.prototype.toString.call(o),Error(n(31,t==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":t))}function Jm(t){var o=t._init;return o(t._payload)}function ey(t){function o(q,$){if(t){var B=q.deletions;B===null?(q.deletions=[$],q.flags|=16):B.push($)}}function a(q,$){if(!t)return null;for(;$!==null;)o(q,$),$=$.sibling;return null}function d(q,$){for(q=new Map;$!==null;)$.key!==null?q.set($.key,$):q.set($.index,$),$=$.sibling;return q}function h(q,$){return q=xr(q,$),q.index=0,q.sibling=null,q}function m(q,$,B){return q.index=B,t?(B=q.alternate,B!==null?(B=B.index,B<$?(q.flags|=2,$):B):(q.flags|=2,$)):(q.flags|=1048576,$)}function C(q){return t&&q.alternate===null&&(q.flags|=2),q}function R(q,$,B,te){return $===null||$.tag!==6?($=au(B,q.mode,te),$.return=q,$):($=h($,B),$.return=q,$)}function A(q,$,B,te){var ge=B.type;return ge===L?Z(q,$,B.props.children,te,B.key):$!==null&&($.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ce&&Jm(ge)===$.type)?(te=h($,B.props),te.ref=Do(q,$,B),te.return=q,te):(te=Ta(B.type,B.key,B.props,null,q.mode,te),te.ref=Do(q,$,B),te.return=q,te)}function G(q,$,B,te){return $===null||$.tag!==4||$.stateNode.containerInfo!==B.containerInfo||$.stateNode.implementation!==B.implementation?($=lu(B,q.mode,te),$.return=q,$):($=h($,B.children||[]),$.return=q,$)}function Z(q,$,B,te,ge){return $===null||$.tag!==7?($=ni(B,q.mode,te,ge),$.return=q,$):($=h($,B),$.return=q,$)}function J(q,$,B){if(typeof $=="string"&&$!==""||typeof $=="number")return $=au(""+$,q.mode,B),$.return=q,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case F:return B=Ta($.type,$.key,$.props,null,q.mode,B),B.ref=Do(q,null,$),B.return=q,B;case j:return $=lu($,q.mode,B),$.return=q,$;case ce:var te=$._init;return J(q,te($._payload),B)}if($e($)||Y($))return $=ni($,q.mode,B,null),$.return=q,$;aa(q,$)}return null}function X(q,$,B,te){var ge=$!==null?$.key:null;if(typeof B=="string"&&B!==""||typeof B=="number")return ge!==null?null:R(q,$,""+B,te);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case F:return B.key===ge?A(q,$,B,te):null;case j:return B.key===ge?G(q,$,B,te):null;case ce:return ge=B._init,X(q,$,ge(B._payload),te)}if($e(B)||Y(B))return ge!==null?null:Z(q,$,B,te,null);aa(q,B)}return null}function le(q,$,B,te,ge){if(typeof te=="string"&&te!==""||typeof te=="number")return q=q.get(B)||null,R($,q,""+te,ge);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case F:return q=q.get(te.key===null?B:te.key)||null,A($,q,te,ge);case j:return q=q.get(te.key===null?B:te.key)||null,G($,q,te,ge);case ce:var Se=te._init;return le(q,$,B,Se(te._payload),ge)}if($e(te)||Y(te))return q=q.get(B)||null,Z($,q,te,ge,null);aa($,te)}return null}function pe(q,$,B,te){for(var ge=null,Se=null,we=$,ke=$=0,dt=null;we!==null&&ke<B.length;ke++){we.index>ke?(dt=we,we=null):dt=we.sibling;var je=X(q,we,B[ke],te);if(je===null){we===null&&(we=dt);break}t&&we&&je.alternate===null&&o(q,we),$=m(je,$,ke),Se===null?ge=je:Se.sibling=je,Se=je,we=dt}if(ke===B.length)return a(q,we),We&&Kr(q,ke),ge;if(we===null){for(;ke<B.length;ke++)we=J(q,B[ke],te),we!==null&&($=m(we,$,ke),Se===null?ge=we:Se.sibling=we,Se=we);return We&&Kr(q,ke),ge}for(we=d(q,we);ke<B.length;ke++)dt=le(we,q,ke,B[ke],te),dt!==null&&(t&&dt.alternate!==null&&we.delete(dt.key===null?ke:dt.key),$=m(dt,$,ke),Se===null?ge=dt:Se.sibling=dt,Se=dt);return t&&we.forEach(function(Dr){return o(q,Dr)}),We&&Kr(q,ke),ge}function fe(q,$,B,te){var ge=Y(B);if(typeof ge!="function")throw Error(n(150));if(B=ge.call(B),B==null)throw Error(n(151));for(var Se=ge=null,we=$,ke=$=0,dt=null,je=B.next();we!==null&&!je.done;ke++,je=B.next()){we.index>ke?(dt=we,we=null):dt=we.sibling;var Dr=X(q,we,je.value,te);if(Dr===null){we===null&&(we=dt);break}t&&we&&Dr.alternate===null&&o(q,we),$=m(Dr,$,ke),Se===null?ge=Dr:Se.sibling=Dr,Se=Dr,we=dt}if(je.done)return a(q,we),We&&Kr(q,ke),ge;if(we===null){for(;!je.done;ke++,je=B.next())je=J(q,je.value,te),je!==null&&($=m(je,$,ke),Se===null?ge=je:Se.sibling=je,Se=je);return We&&Kr(q,ke),ge}for(we=d(q,we);!je.done;ke++,je=B.next())je=le(we,q,ke,je.value,te),je!==null&&(t&&je.alternate!==null&&we.delete(je.key===null?ke:je.key),$=m(je,$,ke),Se===null?ge=je:Se.sibling=je,Se=je);return t&&we.forEach(function(cP){return o(q,cP)}),We&&Kr(q,ke),ge}function et(q,$,B,te){if(typeof B=="object"&&B!==null&&B.type===L&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case F:e:{for(var ge=B.key,Se=$;Se!==null;){if(Se.key===ge){if(ge=B.type,ge===L){if(Se.tag===7){a(q,Se.sibling),$=h(Se,B.props.children),$.return=q,q=$;break e}}else if(Se.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ce&&Jm(ge)===Se.type){a(q,Se.sibling),$=h(Se,B.props),$.ref=Do(q,Se,B),$.return=q,q=$;break e}a(q,Se);break}else o(q,Se);Se=Se.sibling}B.type===L?($=ni(B.props.children,q.mode,te,B.key),$.return=q,q=$):(te=Ta(B.type,B.key,B.props,null,q.mode,te),te.ref=Do(q,$,B),te.return=q,q=te)}return C(q);case j:e:{for(Se=B.key;$!==null;){if($.key===Se)if($.tag===4&&$.stateNode.containerInfo===B.containerInfo&&$.stateNode.implementation===B.implementation){a(q,$.sibling),$=h($,B.children||[]),$.return=q,q=$;break e}else{a(q,$);break}else o(q,$);$=$.sibling}$=lu(B,q.mode,te),$.return=q,q=$}return C(q);case ce:return Se=B._init,et(q,$,Se(B._payload),te)}if($e(B))return pe(q,$,B,te);if(Y(B))return fe(q,$,B,te);aa(q,B)}return typeof B=="string"&&B!==""||typeof B=="number"?(B=""+B,$!==null&&$.tag===6?(a(q,$.sibling),$=h($,B),$.return=q,q=$):(a(q,$),$=au(B,q.mode,te),$.return=q,q=$),C(q)):a(q,$)}return et}var Ni=ey(!0),ty=ey(!1),Oo={},Nn=vr(Oo),Io=vr(Oo),Ro=vr(Oo);function Yr(t){if(t===Oo)throw Error(n(174));return t}function Pc(t,o){switch(qe(Ro,o),qe(Io,t),qe(Nn,Oo),t=o.nodeType,t){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:en(null,"");break;default:t=t===8?o.parentNode:o,o=t.namespaceURI||null,t=t.tagName,o=en(o,t)}Ge(Nn),qe(Nn,o)}function ji(){Ge(Nn),Ge(Io),Ge(Ro)}function ny(t){Yr(Ro.current);var o=Yr(Nn.current),a=en(o,t.type);o!==a&&(qe(Io,t),qe(Nn,a))}function Tc(t){Io.current===t&&(Ge(Nn),Ge(Io))}var Ve=vr(0);function la(t){for(var o=t;o!==null;){if(o.tag===13){var a=o.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Ec=[];function xc(){for(var t=0;t<Ec.length;t++)Ec[t]._workInProgressVersionPrimary=null;Ec.length=0}var ca=M.ReactCurrentDispatcher,Dc=M.ReactCurrentBatchConfig,Xr=0,Ke=null,it=null,ct=null,ua=!1,No=!1,jo=0,Ik=0;function yt(){throw Error(n(321))}function Oc(t,o){if(o===null)return!1;for(var a=0;a<o.length&&a<t.length;a++)if(!hn(t[a],o[a]))return!1;return!0}function Ic(t,o,a,d,h,m){if(Xr=m,Ke=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,ca.current=t===null||t.memoizedState===null?Lk:Ak,t=a(d,h),No){m=0;do{if(No=!1,jo=0,25<=m)throw Error(n(301));m+=1,ct=it=null,o.updateQueue=null,ca.current=Mk,t=a(d,h)}while(No)}if(ca.current=fa,o=it!==null&&it.next!==null,Xr=0,ct=it=Ke=null,ua=!1,o)throw Error(n(300));return t}function Rc(){var t=jo!==0;return jo=0,t}function jn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?Ke.memoizedState=ct=t:ct=ct.next=t,ct}function sn(){if(it===null){var t=Ke.alternate;t=t!==null?t.memoizedState:null}else t=it.next;var o=ct===null?Ke.memoizedState:ct.next;if(o!==null)ct=o,it=t;else{if(t===null)throw Error(n(310));it=t,t={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},ct===null?Ke.memoizedState=ct=t:ct=ct.next=t}return ct}function Lo(t,o){return typeof o=="function"?o(t):o}function Nc(t){var o=sn(),a=o.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=t;var d=it,h=d.baseQueue,m=a.pending;if(m!==null){if(h!==null){var C=h.next;h.next=m.next,m.next=C}d.baseQueue=h=m,a.pending=null}if(h!==null){m=h.next,d=d.baseState;var R=C=null,A=null,G=m;do{var Z=G.lane;if((Xr&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?(R=A=J,C=d):A=A.next=J,Ke.lanes|=Z,Zr|=Z}G=G.next}while(G!==null&&G!==m);A===null?C=d:A.next=R,hn(d,o.memoizedState)||(jt=!0),o.memoizedState=d,o.baseState=C,o.baseQueue=A,a.lastRenderedState=d}if(t=a.interleaved,t!==null){h=t;do m=h.lane,Ke.lanes|=m,Zr|=m,h=h.next;while(h!==t)}else h===null&&(a.lanes=0);return[o.memoizedState,a.dispatch]}function jc(t){var o=sn(),a=o.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=t;var d=a.dispatch,h=a.pending,m=o.memoizedState;if(h!==null){a.pending=null;var C=h=h.next;do m=t(m,C.action),C=C.next;while(C!==h);hn(m,o.memoizedState)||(jt=!0),o.memoizedState=m,o.baseQueue===null&&(o.baseState=m),a.lastRenderedState=m}return[m,d]}function ry(){}function iy(t,o){var a=Ke,d=sn(),h=o(),m=!hn(d.memoizedState,h);if(m&&(d.memoizedState=h,jt=!0),d=d.queue,Lc(ay.bind(null,a,d,t),[t]),d.getSnapshot!==o||m||ct!==null&&ct.memoizedState.tag&1){if(a.flags|=2048,Ao(9,sy.bind(null,a,d,h,o),void 0,null),ut===null)throw Error(n(349));(Xr&30)!==0||oy(a,o,h)}return h}function oy(t,o,a){t.flags|=16384,t={getSnapshot:o,value:a},o=Ke.updateQueue,o===null?(o={lastEffect:null,stores:null},Ke.updateQueue=o,o.stores=[t]):(a=o.stores,a===null?o.stores=[t]:a.push(t))}function sy(t,o,a,d){o.value=a,o.getSnapshot=d,ly(o)&&cy(t)}function ay(t,o,a){return a(function(){ly(o)&&cy(t)})}function ly(t){var o=t.getSnapshot;t=t.value;try{var a=o();return!hn(t,a)}catch{return!0}}function cy(t){var o=Kn(t,1);o!==null&&bn(o,t,1,-1)}function uy(t){var o=jn();return typeof t=="function"&&(t=t()),o.memoizedState=o.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:t},o.queue=t,t=t.dispatch=jk.bind(null,Ke,t),[o.memoizedState,t]}function Ao(t,o,a,d){return t={tag:t,create:o,destroy:a,deps:d,next:null},o=Ke.updateQueue,o===null?(o={lastEffect:null,stores:null},Ke.updateQueue=o,o.lastEffect=t.next=t):(a=o.lastEffect,a===null?o.lastEffect=t.next=t:(d=a.next,a.next=t,t.next=d,o.lastEffect=t)),t}function dy(){return sn().memoizedState}function da(t,o,a,d){var h=jn();Ke.flags|=t,h.memoizedState=Ao(1|o,a,void 0,d===void 0?null:d)}function pa(t,o,a,d){var h=sn();d=d===void 0?null:d;var m=void 0;if(it!==null){var C=it.memoizedState;if(m=C.destroy,d!==null&&Oc(d,C.deps)){h.memoizedState=Ao(o,a,m,d);return}}Ke.flags|=t,h.memoizedState=Ao(1|o,a,m,d)}function py(t,o){return da(8390656,8,t,o)}function Lc(t,o){return pa(2048,8,t,o)}function fy(t,o){return pa(4,2,t,o)}function hy(t,o){return pa(4,4,t,o)}function gy(t,o){if(typeof o=="function")return t=t(),o(t),function(){o(null)};if(o!=null)return t=t(),o.current=t,function(){o.current=null}}function my(t,o,a){return a=a!=null?a.concat([t]):null,pa(4,4,gy.bind(null,o,t),a)}function Ac(){}function yy(t,o){var a=sn();o=o===void 0?null:o;var d=a.memoizedState;return d!==null&&o!==null&&Oc(o,d[1])?d[0]:(a.memoizedState=[t,o],t)}function vy(t,o){var a=sn();o=o===void 0?null:o;var d=a.memoizedState;return d!==null&&o!==null&&Oc(o,d[1])?d[0]:(t=t(),a.memoizedState=[t,o],t)}function by(t,o,a){return(Xr&21)===0?(t.baseState&&(t.baseState=!1,jt=!0),t.memoizedState=a):(hn(a,o)||(a=Ug(),Ke.lanes|=a,Zr|=a,t.baseState=!0),o)}function Rk(t,o){var a=Fe;Fe=a!==0&&4>a?a:4,t(!0);var d=Dc.transition;Dc.transition={};try{t(!1),o()}finally{Fe=a,Dc.transition=d}}function Sy(){return sn().memoizedState}function Nk(t,o,a){var d=Tr(t);if(a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},wy(t))Cy(o,a);else if(a=Um(t,o,a,d),a!==null){var h=Ot();bn(a,t,d,h),_y(a,o,d)}}function jk(t,o,a){var d=Tr(t),h={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(wy(t))Cy(o,h);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var C=o.lastRenderedState,R=m(C,a);if(h.hasEagerState=!0,h.eagerState=R,hn(R,C)){var A=o.interleaved;A===null?(h.next=h,wc(o)):(h.next=A.next,A.next=h),o.interleaved=h;return}}catch{}a=Um(t,o,h,d),a!==null&&(h=Ot(),bn(a,t,d,h),_y(a,o,d))}}function wy(t){var o=t.alternate;return t===Ke||o!==null&&o===Ke}function Cy(t,o){No=ua=!0;var a=t.pending;a===null?o.next=o:(o.next=a.next,a.next=o),t.pending=o}function _y(t,o,a){if((a&4194240)!==0){var d=o.lanes;d&=t.pendingLanes,a|=d,o.lanes=a,Al(t,a)}}var fa={readContext:on,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useInsertionEffect:yt,useLayoutEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useMutableSource:yt,useSyncExternalStore:yt,useId:yt,unstable_isNewReconciler:!1},Lk={readContext:on,useCallback:function(t,o){return jn().memoizedState=[t,o===void 0?null:o],t},useContext:on,useEffect:py,useImperativeHandle:function(t,o,a){return a=a!=null?a.concat([t]):null,da(4194308,4,gy.bind(null,o,t),a)},useLayoutEffect:function(t,o){return da(4194308,4,t,o)},useInsertionEffect:function(t,o){return da(4,2,t,o)},useMemo:function(t,o){var a=jn();return o=o===void 0?null:o,t=t(),a.memoizedState=[t,o],t},useReducer:function(t,o,a){var d=jn();return o=a!==void 0?a(o):o,d.memoizedState=d.baseState=o,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},d.queue=t,t=t.dispatch=Nk.bind(null,Ke,t),[d.memoizedState,t]},useRef:function(t){var o=jn();return t={current:t},o.memoizedState=t},useState:uy,useDebugValue:Ac,useDeferredValue:function(t){return jn().memoizedState=t},useTransition:function(){var t=uy(!1),o=t[0];return t=Rk.bind(null,t[1]),jn().memoizedState=t,[o,t]},useMutableSource:function(){},useSyncExternalStore:function(t,o,a){var d=Ke,h=jn();if(We){if(a===void 0)throw Error(n(407));a=a()}else{if(a=o(),ut===null)throw Error(n(349));(Xr&30)!==0||oy(d,o,a)}h.memoizedState=a;var m={value:a,getSnapshot:o};return h.queue=m,py(ay.bind(null,d,m,t),[t]),d.flags|=2048,Ao(9,sy.bind(null,d,m,a,o),void 0,null),a},useId:function(){var t=jn(),o=ut.identifierPrefix;if(We){var a=Vn,d=Hn;a=(d&~(1<<32-fn(d)-1)).toString(32)+a,o=":"+o+"R"+a,a=jo++,0<a&&(o+="H"+a.toString(32)),o+=":"}else a=Ik++,o=":"+o+"r"+a.toString(32)+":";return t.memoizedState=o},unstable_isNewReconciler:!1},Ak={readContext:on,useCallback:yy,useContext:on,useEffect:Lc,useImperativeHandle:my,useInsertionEffect:fy,useLayoutEffect:hy,useMemo:vy,useReducer:Nc,useRef:dy,useState:function(){return Nc(Lo)},useDebugValue:Ac,useDeferredValue:function(t){var o=sn();return by(o,it.memoizedState,t)},useTransition:function(){var t=Nc(Lo)[0],o=sn().memoizedState;return[t,o]},useMutableSource:ry,useSyncExternalStore:iy,useId:Sy,unstable_isNewReconciler:!1},Mk={readContext:on,useCallback:yy,useContext:on,useEffect:Lc,useImperativeHandle:my,useInsertionEffect:fy,useLayoutEffect:hy,useMemo:vy,useReducer:jc,useRef:dy,useState:function(){return jc(Lo)},useDebugValue:Ac,useDeferredValue:function(t){var o=sn();return it===null?o.memoizedState=t:by(o,it.memoizedState,t)},useTransition:function(){var t=jc(Lo)[0],o=sn().memoizedState;return[t,o]},useMutableSource:ry,useSyncExternalStore:iy,useId:Sy,unstable_isNewReconciler:!1};function Li(t,o){try{var a="",d=o;do a+=_e(d),d=d.return;while(d);var h=a}catch(m){h=`
8
- Error generating stack: `+m.message+`
9
- `+m.stack}return{value:t,source:o,stack:h,digest:null}}function Mc(t,o,a){return{value:t,source:null,stack:a??null,digest:o??null}}function $c(t,o){try{console.error(o.value)}catch(a){setTimeout(function(){throw a})}}var $k=typeof WeakMap=="function"?WeakMap:Map;function ky(t,o,a){a=Qn(-1,a),a.tag=3,a.payload={element:null};var d=o.value;return a.callback=function(){Sa||(Sa=!0,Jc=d),$c(t,o)},a}function Py(t,o,a){a=Qn(-1,a),a.tag=3;var d=t.type.getDerivedStateFromError;if(typeof d=="function"){var h=o.value;a.payload=function(){return d(h)},a.callback=function(){$c(t,o)}}var m=t.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(a.callback=function(){$c(t,o),typeof d!="function"&&(kr===null?kr=new Set([this]):kr.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})}),a}function Ty(t,o,a){var d=t.pingCache;if(d===null){d=t.pingCache=new $k;var h=new Set;d.set(o,h)}else h=d.get(o),h===void 0&&(h=new Set,d.set(o,h));h.has(a)||(h.add(a),t=Zk.bind(null,t,o,a),o.then(t,t))}function Ey(t){do{var o;if((o=t.tag===13)&&(o=t.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return t;t=t.return}while(t!==null);return null}function xy(t,o,a,d,h){return(t.mode&1)===0?(t===o?t.flags|=65536:(t.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(o=Qn(-1,1),o.tag=2,Cr(a,o,1))),a.lanes|=1),t):(t.flags|=65536,t.lanes=h,t)}var Fk=M.ReactCurrentOwner,jt=!1;function Dt(t,o,a,d){o.child=t===null?ty(o,null,a,d):Ni(o,t.child,a,d)}function Dy(t,o,a,d,h){a=a.render;var m=o.ref;return Ri(o,h),d=Ic(t,o,a,d,m,h),a=Rc(),t!==null&&!jt?(o.updateQueue=t.updateQueue,o.flags&=-2053,t.lanes&=~h,Yn(t,o,h)):(We&&a&&pc(o),o.flags|=1,Dt(t,o,d,h),o.child)}function Oy(t,o,a,d,h){if(t===null){var m=a.type;return typeof m=="function"&&!su(m)&&m.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(o.tag=15,o.type=m,Iy(t,o,m,d,h)):(t=Ta(a.type,null,d,o,o.mode,h),t.ref=o.ref,t.return=o,o.child=t)}if(m=t.child,(t.lanes&h)===0){var C=m.memoizedProps;if(a=a.compare,a=a!==null?a:Co,a(C,d)&&t.ref===o.ref)return Yn(t,o,h)}return o.flags|=1,t=xr(m,d),t.ref=o.ref,t.return=o,o.child=t}function Iy(t,o,a,d,h){if(t!==null){var m=t.memoizedProps;if(Co(m,d)&&t.ref===o.ref)if(jt=!1,o.pendingProps=d=m,(t.lanes&h)!==0)(t.flags&131072)!==0&&(jt=!0);else return o.lanes=t.lanes,Yn(t,o,h)}return Fc(t,o,a,d,h)}function Ry(t,o,a){var d=o.pendingProps,h=d.children,m=t!==null?t.memoizedState:null;if(d.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe(Mi,Vt),Vt|=a;else{if((a&1073741824)===0)return t=m!==null?m.baseLanes|a:a,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:t,cachePool:null,transitions:null},o.updateQueue=null,qe(Mi,Vt),Vt|=t,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=m!==null?m.baseLanes:a,qe(Mi,Vt),Vt|=d}else m!==null?(d=m.baseLanes|a,o.memoizedState=null):d=a,qe(Mi,Vt),Vt|=d;return Dt(t,o,h,a),o.child}function Ny(t,o){var a=o.ref;(t===null&&a!==null||t!==null&&t.ref!==a)&&(o.flags|=512,o.flags|=2097152)}function Fc(t,o,a,d,h){var m=Nt(a)?Hr:mt.current;return m=Ei(o,m),Ri(o,h),a=Ic(t,o,a,d,m,h),d=Rc(),t!==null&&!jt?(o.updateQueue=t.updateQueue,o.flags&=-2053,t.lanes&=~h,Yn(t,o,h)):(We&&d&&pc(o),o.flags|=1,Dt(t,o,a,h),o.child)}function jy(t,o,a,d,h){if(Nt(a)){var m=!0;Xs(o)}else m=!1;if(Ri(o,h),o.stateNode===null)ga(t,o),Xm(o,a,d),kc(o,a,d,h),d=!0;else if(t===null){var C=o.stateNode,R=o.memoizedProps;C.props=R;var A=C.context,G=a.contextType;typeof G=="object"&&G!==null?G=on(G):(G=Nt(a)?Hr:mt.current,G=Ei(o,G));var Z=a.getDerivedStateFromProps,J=typeof Z=="function"||typeof C.getSnapshotBeforeUpdate=="function";J||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(R!==d||A!==G)&&Zm(o,C,d,G),wr=!1;var X=o.memoizedState;C.state=X,oa(o,d,C,h),A=o.memoizedState,R!==d||X!==A||Rt.current||wr?(typeof Z=="function"&&(_c(o,a,Z,d),A=o.memoizedState),(R=wr||Ym(o,a,R,d,X,A,G))?(J||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(o.flags|=4194308)):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=A),C.props=d,C.state=A,C.context=G,d=R):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{C=o.stateNode,Hm(t,o),R=o.memoizedProps,G=o.type===o.elementType?R:mn(o.type,R),C.props=G,J=o.pendingProps,X=C.context,A=a.contextType,typeof A=="object"&&A!==null?A=on(A):(A=Nt(a)?Hr:mt.current,A=Ei(o,A));var le=a.getDerivedStateFromProps;(Z=typeof le=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(R!==J||X!==A)&&Zm(o,C,d,A),wr=!1,X=o.memoizedState,C.state=X,oa(o,d,C,h);var pe=o.memoizedState;R!==J||X!==pe||Rt.current||wr?(typeof le=="function"&&(_c(o,a,le,d),pe=o.memoizedState),(G=wr||Ym(o,a,G,d,X,pe,A)||!1)?(Z||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(d,pe,A),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(d,pe,A)),typeof C.componentDidUpdate=="function"&&(o.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof C.componentDidUpdate!="function"||R===t.memoizedProps&&X===t.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||R===t.memoizedProps&&X===t.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=pe),C.props=d,C.state=pe,C.context=A,d=G):(typeof C.componentDidUpdate!="function"||R===t.memoizedProps&&X===t.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||R===t.memoizedProps&&X===t.memoizedState||(o.flags|=1024),d=!1)}return zc(t,o,a,d,m,h)}function zc(t,o,a,d,h,m){Ny(t,o);var C=(o.flags&128)!==0;if(!d&&!C)return h&&$m(o,a,!1),Yn(t,o,m);d=o.stateNode,Fk.current=o;var R=C&&typeof a.getDerivedStateFromError!="function"?null:d.render();return o.flags|=1,t!==null&&C?(o.child=Ni(o,t.child,null,m),o.child=Ni(o,null,R,m)):Dt(t,o,R,m),o.memoizedState=d.state,h&&$m(o,a,!0),o.child}function Ly(t){var o=t.stateNode;o.pendingContext?Am(t,o.pendingContext,o.pendingContext!==o.context):o.context&&Am(t,o.context,!1),Pc(t,o.containerInfo)}function Ay(t,o,a,d,h){return Oi(),mc(h),o.flags|=256,Dt(t,o,a,d),o.child}var qc={dehydrated:null,treeContext:null,retryLane:0};function Bc(t){return{baseLanes:t,cachePool:null,transitions:null}}function My(t,o,a){var d=o.pendingProps,h=Ve.current,m=!1,C=(o.flags&128)!==0,R;if((R=C)||(R=t!==null&&t.memoizedState===null?!1:(h&2)!==0),R?(m=!0,o.flags&=-129):(t===null||t.memoizedState!==null)&&(h|=1),qe(Ve,h&1),t===null)return gc(o),t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((o.mode&1)===0?o.lanes=1:t.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(C=d.children,t=d.fallback,m?(d=o.mode,m=o.child,C={mode:"hidden",children:C},(d&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=C):m=Ea(C,d,0,null),t=ni(t,d,a,null),m.return=o,t.return=o,m.sibling=t,o.child=m,o.child.memoizedState=Bc(a),o.memoizedState=qc,t):Gc(o,C));if(h=t.memoizedState,h!==null&&(R=h.dehydrated,R!==null))return zk(t,o,C,d,R,h,a);if(m){m=d.fallback,C=o.mode,h=t.child,R=h.sibling;var A={mode:"hidden",children:d.children};return(C&1)===0&&o.child!==h?(d=o.child,d.childLanes=0,d.pendingProps=A,o.deletions=null):(d=xr(h,A),d.subtreeFlags=h.subtreeFlags&14680064),R!==null?m=xr(R,m):(m=ni(m,C,a,null),m.flags|=2),m.return=o,d.return=o,d.sibling=m,o.child=d,d=m,m=o.child,C=t.child.memoizedState,C=C===null?Bc(a):{baseLanes:C.baseLanes|a,cachePool:null,transitions:C.transitions},m.memoizedState=C,m.childLanes=t.childLanes&~a,o.memoizedState=qc,d}return m=t.child,t=m.sibling,d=xr(m,{mode:"visible",children:d.children}),(o.mode&1)===0&&(d.lanes=a),d.return=o,d.sibling=null,t!==null&&(a=o.deletions,a===null?(o.deletions=[t],o.flags|=16):a.push(t)),o.child=d,o.memoizedState=null,d}function Gc(t,o){return o=Ea({mode:"visible",children:o},t.mode,0,null),o.return=t,t.child=o}function ha(t,o,a,d){return d!==null&&mc(d),Ni(o,t.child,null,a),t=Gc(o,o.pendingProps.children),t.flags|=2,o.memoizedState=null,t}function zk(t,o,a,d,h,m,C){if(a)return o.flags&256?(o.flags&=-257,d=Mc(Error(n(422))),ha(t,o,C,d)):o.memoizedState!==null?(o.child=t.child,o.flags|=128,null):(m=d.fallback,h=o.mode,d=Ea({mode:"visible",children:d.children},h,0,null),m=ni(m,h,C,null),m.flags|=2,d.return=o,m.return=o,d.sibling=m,o.child=d,(o.mode&1)!==0&&Ni(o,t.child,null,C),o.child.memoizedState=Bc(C),o.memoizedState=qc,m);if((o.mode&1)===0)return ha(t,o,C,null);if(h.data==="$!"){if(d=h.nextSibling&&h.nextSibling.dataset,d)var R=d.dgst;return d=R,m=Error(n(419)),d=Mc(m,d,void 0),ha(t,o,C,d)}if(R=(C&t.childLanes)!==0,jt||R){if(d=ut,d!==null){switch(C&-C){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(d.suspendedLanes|C))!==0?0:h,h!==0&&h!==m.retryLane&&(m.retryLane=h,Kn(t,h),bn(d,t,h,-1))}return ou(),d=Mc(Error(n(421))),ha(t,o,C,d)}return h.data==="$?"?(o.flags|=128,o.child=t.child,o=Jk.bind(null,t),h._reactRetry=o,null):(t=m.treeContext,Ht=yr(h.nextSibling),Ut=o,We=!0,gn=null,t!==null&&(nn[rn++]=Hn,nn[rn++]=Vn,nn[rn++]=Vr,Hn=t.id,Vn=t.overflow,Vr=o),o=Gc(o,d.children),o.flags|=4096,o)}function $y(t,o,a){t.lanes|=o;var d=t.alternate;d!==null&&(d.lanes|=o),Sc(t.return,o,a)}function Wc(t,o,a,d,h){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:h}:(m.isBackwards=o,m.rendering=null,m.renderingStartTime=0,m.last=d,m.tail=a,m.tailMode=h)}function Fy(t,o,a){var d=o.pendingProps,h=d.revealOrder,m=d.tail;if(Dt(t,o,d.children,a),d=Ve.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=o.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&$y(t,a,o);else if(t.tag===19)$y(t,a,o);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===o)break e;for(;t.sibling===null;){if(t.return===null||t.return===o)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}d&=1}if(qe(Ve,d),(o.mode&1)===0)o.memoizedState=null;else switch(h){case"forwards":for(a=o.child,h=null;a!==null;)t=a.alternate,t!==null&&la(t)===null&&(h=a),a=a.sibling;a=h,a===null?(h=o.child,o.child=null):(h=a.sibling,a.sibling=null),Wc(o,!1,h,a,m);break;case"backwards":for(a=null,h=o.child,o.child=null;h!==null;){if(t=h.alternate,t!==null&&la(t)===null){o.child=h;break}t=h.sibling,h.sibling=a,a=h,h=t}Wc(o,!0,a,null,m);break;case"together":Wc(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function ga(t,o){(o.mode&1)===0&&t!==null&&(t.alternate=null,o.alternate=null,o.flags|=2)}function Yn(t,o,a){if(t!==null&&(o.dependencies=t.dependencies),Zr|=o.lanes,(a&o.childLanes)===0)return null;if(t!==null&&o.child!==t.child)throw Error(n(153));if(o.child!==null){for(t=o.child,a=xr(t,t.pendingProps),o.child=a,a.return=o;t.sibling!==null;)t=t.sibling,a=a.sibling=xr(t,t.pendingProps),a.return=o;a.sibling=null}return o.child}function qk(t,o,a){switch(o.tag){case 3:Ly(o),Oi();break;case 5:ny(o);break;case 1:Nt(o.type)&&Xs(o);break;case 4:Pc(o,o.stateNode.containerInfo);break;case 10:var d=o.type._context,h=o.memoizedProps.value;qe(na,d._currentValue),d._currentValue=h;break;case 13:if(d=o.memoizedState,d!==null)return d.dehydrated!==null?(qe(Ve,Ve.current&1),o.flags|=128,null):(a&o.child.childLanes)!==0?My(t,o,a):(qe(Ve,Ve.current&1),t=Yn(t,o,a),t!==null?t.sibling:null);qe(Ve,Ve.current&1);break;case 19:if(d=(a&o.childLanes)!==0,(t.flags&128)!==0){if(d)return Fy(t,o,a);o.flags|=128}if(h=o.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),qe(Ve,Ve.current),d)break;return null;case 22:case 23:return o.lanes=0,Ry(t,o,a)}return Yn(t,o,a)}var zy,Uc,qy,By;zy=function(t,o){for(var a=o.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===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Uc=function(){},qy=function(t,o,a,d){var h=t.memoizedProps;if(h!==d){t=o.stateNode,Yr(Nn.current);var m=null;switch(a){case"input":h=xn(t,h),d=xn(t,d),m=[];break;case"select":h=I({},h,{value:void 0}),d=I({},d,{value:void 0}),m=[];break;case"textarea":h=rt(t,h),d=rt(t,d),m=[];break;default:typeof h.onClick!="function"&&typeof d.onClick=="function"&&(t.onclick=Ks)}cr(a,d);var C;a=null;for(G in h)if(!d.hasOwnProperty(G)&&h.hasOwnProperty(G)&&h[G]!=null)if(G==="style"){var R=h[G];for(C in R)R.hasOwnProperty(C)&&(a||(a={}),a[C]="")}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(R=h?.[G],d.hasOwnProperty(G)&&A!==R&&(A!=null||R!=null))if(G==="style")if(R){for(C in R)!R.hasOwnProperty(C)||A&&A.hasOwnProperty(C)||(a||(a={}),a[C]="");for(C in A)A.hasOwnProperty(C)&&R[C]!==A[C]&&(a||(a={}),a[C]=A[C])}else a||(m||(m=[]),m.push(G,a)),a=A;else G==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,R=R?R.__html:void 0,A!=null&&R!==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"&&Be("scroll",t),m||R===A||(m=[])):(m=m||[]).push(G,A))}a&&(m=m||[]).push("style",a);var G=m;(o.updateQueue=G)&&(o.flags|=4)}},By=function(t,o,a,d){a!==d&&(o.flags|=4)};function Mo(t,o){if(!We)switch(t.tailMode){case"hidden":o=t.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.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?o||t.tail===null?t.tail=null:t.tail.sibling=null:d.sibling=null}}function vt(t){var o=t.alternate!==null&&t.alternate.child===t.child,a=0,d=0;if(o)for(var h=t.child;h!==null;)a|=h.lanes|h.childLanes,d|=h.subtreeFlags&14680064,d|=h.flags&14680064,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)a|=h.lanes|h.childLanes,d|=h.subtreeFlags,d|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=d,t.childLanes=a,o}function Bk(t,o,a){var d=o.pendingProps;switch(fc(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(o),null;case 1:return Nt(o.type)&&Ys(),vt(o),null;case 3:return d=o.stateNode,ji(),Ge(Rt),Ge(mt),xc(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(t===null||t.child===null)&&(ta(o)?o.flags|=4:t===null||t.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,gn!==null&&(nu(gn),gn=null))),Uc(t,o),vt(o),null;case 5:Tc(o);var h=Yr(Ro.current);if(a=o.type,t!==null&&o.stateNode!=null)qy(t,o,a,d,h),t.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!d){if(o.stateNode===null)throw Error(n(166));return vt(o),null}if(t=Yr(Nn.current),ta(o)){d=o.stateNode,a=o.type;var m=o.memoizedProps;switch(d[Rn]=o,d[Eo]=m,t=(o.mode&1)!==0,a){case"dialog":Be("cancel",d),Be("close",d);break;case"iframe":case"object":case"embed":Be("load",d);break;case"video":case"audio":for(h=0;h<ko.length;h++)Be(ko[h],d);break;case"source":Be("error",d);break;case"img":case"image":case"link":Be("error",d),Be("load",d);break;case"details":Be("toggle",d);break;case"input":Ne(d,m),Be("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!m.multiple},Be("invalid",d);break;case"textarea":ze(d,m),Be("invalid",d)}cr(a,m),h=null;for(var C in m)if(m.hasOwnProperty(C)){var R=m[C];C==="children"?typeof R=="string"?d.textContent!==R&&(m.suppressHydrationWarning!==!0&&Vs(d.textContent,R,t),h=["children",R]):typeof R=="number"&&d.textContent!==""+R&&(m.suppressHydrationWarning!==!0&&Vs(d.textContent,R,t),h=["children",""+R]):s.hasOwnProperty(C)&&R!=null&&C==="onScroll"&&Be("scroll",d)}switch(a){case"input":kt(d),qt(d,m,!0);break;case"textarea":kt(d),It(d);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(d.onclick=Ks)}d=h,o.updateQueue=d,d!==null&&(o.flags|=4)}else{C=h.nodeType===9?h:h.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Dn(a)),t==="http://www.w3.org/1999/xhtml"?a==="script"?(t=C.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof d.is=="string"?t=C.createElement(a,{is:d.is}):(t=C.createElement(a),a==="select"&&(C=t,d.multiple?C.multiple=!0:d.size&&(C.size=d.size))):t=C.createElementNS(t,a),t[Rn]=o,t[Eo]=d,zy(t,o,!1,!1),o.stateNode=t;e:{switch(C=ur(a,d),a){case"dialog":Be("cancel",t),Be("close",t),h=d;break;case"iframe":case"object":case"embed":Be("load",t),h=d;break;case"video":case"audio":for(h=0;h<ko.length;h++)Be(ko[h],t);h=d;break;case"source":Be("error",t),h=d;break;case"img":case"image":case"link":Be("error",t),Be("load",t),h=d;break;case"details":Be("toggle",t),h=d;break;case"input":Ne(t,d),h=xn(t,d),Be("invalid",t);break;case"option":h=d;break;case"select":t._wrapperState={wasMultiple:!!d.multiple},h=I({},d,{value:void 0}),Be("invalid",t);break;case"textarea":ze(t,d),h=rt(t,d),Be("invalid",t);break;default:h=d}cr(a,h),R=h;for(m in R)if(R.hasOwnProperty(m)){var A=R[m];m==="style"?Bt(t,A):m==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&Et(t,A)):m==="children"?typeof A=="string"?(a!=="textarea"||A!=="")&&tn(t,A):typeof A=="number"&&tn(t,""+A):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(s.hasOwnProperty(m)?A!=null&&m==="onScroll"&&Be("scroll",t):A!=null&&N(t,m,A,C))}switch(a){case"input":kt(t),qt(t,d,!1);break;case"textarea":kt(t),It(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?Ie(t,!!d.multiple,m,!1):d.defaultValue!=null&&Ie(t,!!d.multiple,d.defaultValue,!0);break;default:typeof h.onClick=="function"&&(t.onclick=Ks)}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&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return vt(o),null;case 6:if(t&&o.stateNode!=null)By(t,o,t.memoizedProps,d);else{if(typeof d!="string"&&o.stateNode===null)throw Error(n(166));if(a=Yr(Ro.current),Yr(Nn.current),ta(o)){if(d=o.stateNode,a=o.memoizedProps,d[Rn]=o,(m=d.nodeValue!==a)&&(t=Ut,t!==null))switch(t.tag){case 3:Vs(d.nodeValue,a,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Vs(d.nodeValue,a,(t.mode&1)!==0)}m&&(o.flags|=4)}else d=(a.nodeType===9?a:a.ownerDocument).createTextNode(d),d[Rn]=o,o.stateNode=d}return vt(o),null;case 13:if(Ge(Ve),d=o.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(We&&Ht!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Wm(),Oi(),o.flags|=98560,m=!1;else if(m=ta(o),d!==null&&d.dehydrated!==null){if(t===null){if(!m)throw Error(n(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));m[Rn]=o}else Oi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;vt(o),m=!1}else gn!==null&&(nu(gn),gn=null),m=!0;if(!m)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=a,o):(d=d!==null,d!==(t!==null&&t.memoizedState!==null)&&d&&(o.child.flags|=8192,(o.mode&1)!==0&&(t===null||(Ve.current&1)!==0?ot===0&&(ot=3):ou())),o.updateQueue!==null&&(o.flags|=4),vt(o),null);case 4:return ji(),Uc(t,o),t===null&&Po(o.stateNode.containerInfo),vt(o),null;case 10:return bc(o.type._context),vt(o),null;case 17:return Nt(o.type)&&Ys(),vt(o),null;case 19:if(Ge(Ve),m=o.memoizedState,m===null)return vt(o),null;if(d=(o.flags&128)!==0,C=m.rendering,C===null)if(d)Mo(m,!1);else{if(ot!==0||t!==null&&(t.flags&128)!==0)for(t=o.child;t!==null;){if(C=la(t),C!==null){for(o.flags|=128,Mo(m,!1),d=C.updateQueue,d!==null&&(o.updateQueue=d,o.flags|=4),o.subtreeFlags=0,d=a,a=o.child;a!==null;)m=a,t=d,m.flags&=14680066,C=m.alternate,C===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=C.childLanes,m.lanes=C.lanes,m.child=C.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=C.memoizedProps,m.memoizedState=C.memoizedState,m.updateQueue=C.updateQueue,m.type=C.type,t=C.dependencies,m.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),a=a.sibling;return qe(Ve,Ve.current&1|2),o.child}t=t.sibling}m.tail!==null&&Je()>$i&&(o.flags|=128,d=!0,Mo(m,!1),o.lanes=4194304)}else{if(!d)if(t=la(C),t!==null){if(o.flags|=128,d=!0,a=t.updateQueue,a!==null&&(o.updateQueue=a,o.flags|=4),Mo(m,!0),m.tail===null&&m.tailMode==="hidden"&&!C.alternate&&!We)return vt(o),null}else 2*Je()-m.renderingStartTime>$i&&a!==1073741824&&(o.flags|=128,d=!0,Mo(m,!1),o.lanes=4194304);m.isBackwards?(C.sibling=o.child,o.child=C):(a=m.last,a!==null?a.sibling=C:o.child=C,m.last=C)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=Je(),o.sibling=null,a=Ve.current,qe(Ve,d?a&1|2:a&1),o):(vt(o),null);case 22:case 23:return iu(),d=o.memoizedState!==null,t!==null&&t.memoizedState!==null!==d&&(o.flags|=8192),d&&(o.mode&1)!==0?(Vt&1073741824)!==0&&(vt(o),o.subtreeFlags&6&&(o.flags|=8192)):vt(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function Gk(t,o){switch(fc(o),o.tag){case 1:return Nt(o.type)&&Ys(),t=o.flags,t&65536?(o.flags=t&-65537|128,o):null;case 3:return ji(),Ge(Rt),Ge(mt),xc(),t=o.flags,(t&65536)!==0&&(t&128)===0?(o.flags=t&-65537|128,o):null;case 5:return Tc(o),null;case 13:if(Ge(Ve),t=o.memoizedState,t!==null&&t.dehydrated!==null){if(o.alternate===null)throw Error(n(340));Oi()}return t=o.flags,t&65536?(o.flags=t&-65537|128,o):null;case 19:return Ge(Ve),null;case 4:return ji(),null;case 10:return bc(o.type._context),null;case 22:case 23:return iu(),null;case 24:return null;default:return null}}var ma=!1,bt=!1,Wk=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Ai(t,o){var a=t.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){Xe(t,o,d)}else a.current=null}function Hc(t,o,a){try{a()}catch(d){Xe(t,o,d)}}var Gy=!1;function Uk(t,o){if(ic=As,t=Sm(),Yl(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 h=d.anchorOffset,m=d.focusNode;d=d.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var C=0,R=-1,A=-1,G=0,Z=0,J=t,X=null;t:for(;;){for(var le;J!==a||h!==0&&J.nodeType!==3||(R=C+h),J!==m||d!==0&&J.nodeType!==3||(A=C+d),J.nodeType===3&&(C+=J.nodeValue.length),(le=J.firstChild)!==null;)X=J,J=le;for(;;){if(J===t)break t;if(X===a&&++G===h&&(R=C),X===m&&++Z===d&&(A=C),(le=J.nextSibling)!==null)break;J=X,X=J.parentNode}J=le}a=R===-1||A===-1?null:{start:R,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(oc={focusedElem:t,selectionRange:a},As=!1,ue=o;ue!==null;)if(o=ue,t=o.child,(o.subtreeFlags&1028)!==0&&t!==null)t.return=o,ue=t;else for(;ue!==null;){o=ue;try{var pe=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(pe!==null){var fe=pe.memoizedProps,et=pe.memoizedState,q=o.stateNode,$=q.getSnapshotBeforeUpdate(o.elementType===o.type?fe:mn(o.type,fe),et);q.__reactInternalSnapshotBeforeUpdate=$}break;case 3:var B=o.stateNode.containerInfo;B.nodeType===1?B.textContent="":B.nodeType===9&&B.documentElement&&B.removeChild(B.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(te){Xe(o,o.return,te)}if(t=o.sibling,t!==null){t.return=o.return,ue=t;break}ue=o.return}return pe=Gy,Gy=!1,pe}function $o(t,o,a){var d=o.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var h=d=d.next;do{if((h.tag&t)===t){var m=h.destroy;h.destroy=void 0,m!==void 0&&Hc(o,a,m)}h=h.next}while(h!==d)}}function ya(t,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&t)===t){var d=a.create;a.destroy=d()}a=a.next}while(a!==o)}}function Vc(t){var o=t.ref;if(o!==null){var a=t.stateNode;t.tag,t=a,typeof o=="function"?o(t):o.current=t}}function Wy(t){var o=t.alternate;o!==null&&(t.alternate=null,Wy(o)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(o=t.stateNode,o!==null&&(delete o[Rn],delete o[Eo],delete o[cc],delete o[Ek],delete o[xk])),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 Uy(t){return t.tag===5||t.tag===3||t.tag===4}function Hy(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Uy(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 Kc(t,o,a){var d=t.tag;if(d===5||d===6)t=t.stateNode,o?a.nodeType===8?a.parentNode.insertBefore(t,o):a.insertBefore(t,o):(a.nodeType===8?(o=a.parentNode,o.insertBefore(t,a)):(o=a,o.appendChild(t)),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=Ks));else if(d!==4&&(t=t.child,t!==null))for(Kc(t,o,a),t=t.sibling;t!==null;)Kc(t,o,a),t=t.sibling}function Qc(t,o,a){var d=t.tag;if(d===5||d===6)t=t.stateNode,o?a.insertBefore(t,o):a.appendChild(t);else if(d!==4&&(t=t.child,t!==null))for(Qc(t,o,a),t=t.sibling;t!==null;)Qc(t,o,a),t=t.sibling}var ft=null,yn=!1;function _r(t,o,a){for(a=a.child;a!==null;)Vy(t,o,a),a=a.sibling}function Vy(t,o,a){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(Os,a)}catch{}switch(a.tag){case 5:bt||Ai(a,o);case 6:var d=ft,h=yn;ft=null,_r(t,o,a),ft=d,yn=h,ft!==null&&(yn?(t=ft,a=a.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)):ft.removeChild(a.stateNode));break;case 18:ft!==null&&(yn?(t=ft,a=a.stateNode,t.nodeType===8?lc(t.parentNode,a):t.nodeType===1&&lc(t,a),mo(t)):lc(ft,a.stateNode));break;case 4:d=ft,h=yn,ft=a.stateNode.containerInfo,yn=!0,_r(t,o,a),ft=d,yn=h;break;case 0:case 11:case 14:case 15:if(!bt&&(d=a.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){h=d=d.next;do{var m=h,C=m.destroy;m=m.tag,C!==void 0&&((m&2)!==0||(m&4)!==0)&&Hc(a,o,C),h=h.next}while(h!==d)}_r(t,o,a);break;case 1:if(!bt&&(Ai(a,o),d=a.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(R){Xe(a,o,R)}_r(t,o,a);break;case 21:_r(t,o,a);break;case 22:a.mode&1?(bt=(d=bt)||a.memoizedState!==null,_r(t,o,a),bt=d):_r(t,o,a);break;default:_r(t,o,a)}}function Ky(t){var o=t.updateQueue;if(o!==null){t.updateQueue=null;var a=t.stateNode;a===null&&(a=t.stateNode=new Wk),o.forEach(function(d){var h=eP.bind(null,t,d);a.has(d)||(a.add(d),d.then(h,h))})}}function vn(t,o){var a=o.deletions;if(a!==null)for(var d=0;d<a.length;d++){var h=a[d];try{var m=t,C=o,R=C;e:for(;R!==null;){switch(R.tag){case 5:ft=R.stateNode,yn=!1;break e;case 3:ft=R.stateNode.containerInfo,yn=!0;break e;case 4:ft=R.stateNode.containerInfo,yn=!0;break e}R=R.return}if(ft===null)throw Error(n(160));Vy(m,C,h),ft=null,yn=!1;var A=h.alternate;A!==null&&(A.return=null),h.return=null}catch(G){Xe(h,o,G)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Qy(o,t),o=o.sibling}function Qy(t,o){var a=t.alternate,d=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(vn(o,t),Ln(t),d&4){try{$o(3,t,t.return),ya(3,t)}catch(fe){Xe(t,t.return,fe)}try{$o(5,t,t.return)}catch(fe){Xe(t,t.return,fe)}}break;case 1:vn(o,t),Ln(t),d&512&&a!==null&&Ai(a,a.return);break;case 5:if(vn(o,t),Ln(t),d&512&&a!==null&&Ai(a,a.return),t.flags&32){var h=t.stateNode;try{tn(h,"")}catch(fe){Xe(t,t.return,fe)}}if(d&4&&(h=t.stateNode,h!=null)){var m=t.memoizedProps,C=a!==null?a.memoizedProps:m,R=t.type,A=t.updateQueue;if(t.updateQueue=null,A!==null)try{R==="input"&&m.type==="radio"&&m.name!=null&&Jt(h,m),ur(R,C);var G=ur(R,m);for(C=0;C<A.length;C+=2){var Z=A[C],J=A[C+1];Z==="style"?Bt(h,J):Z==="dangerouslySetInnerHTML"?Et(h,J):Z==="children"?tn(h,J):N(h,Z,J,G)}switch(R){case"input":xe(h,m);break;case"textarea":Tt(h,m);break;case"select":var X=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!m.multiple;var le=m.value;le!=null?Ie(h,!!m.multiple,le,!1):X!==!!m.multiple&&(m.defaultValue!=null?Ie(h,!!m.multiple,m.defaultValue,!0):Ie(h,!!m.multiple,m.multiple?[]:"",!1))}h[Eo]=m}catch(fe){Xe(t,t.return,fe)}}break;case 6:if(vn(o,t),Ln(t),d&4){if(t.stateNode===null)throw Error(n(162));h=t.stateNode,m=t.memoizedProps;try{h.nodeValue=m}catch(fe){Xe(t,t.return,fe)}}break;case 3:if(vn(o,t),Ln(t),d&4&&a!==null&&a.memoizedState.isDehydrated)try{mo(o.containerInfo)}catch(fe){Xe(t,t.return,fe)}break;case 4:vn(o,t),Ln(t);break;case 13:vn(o,t),Ln(t),h=t.child,h.flags&8192&&(m=h.memoizedState!==null,h.stateNode.isHidden=m,!m||h.alternate!==null&&h.alternate.memoizedState!==null||(Zc=Je())),d&4&&Ky(t);break;case 22:if(Z=a!==null&&a.memoizedState!==null,t.mode&1?(bt=(G=bt)||Z,vn(o,t),bt=G):vn(o,t),Ln(t),d&8192){if(G=t.memoizedState!==null,(t.stateNode.isHidden=G)&&!Z&&(t.mode&1)!==0)for(ue=t,Z=t.child;Z!==null;){for(J=ue=Z;ue!==null;){switch(X=ue,le=X.child,X.tag){case 0:case 11:case 14:case 15:$o(4,X,X.return);break;case 1:Ai(X,X.return);var pe=X.stateNode;if(typeof pe.componentWillUnmount=="function"){d=X,a=X.return;try{o=d,pe.props=o.memoizedProps,pe.state=o.memoizedState,pe.componentWillUnmount()}catch(fe){Xe(d,a,fe)}}break;case 5:Ai(X,X.return);break;case 22:if(X.memoizedState!==null){Zy(J);continue}}le!==null?(le.return=X,ue=le):Zy(J)}Z=Z.sibling}e:for(Z=null,J=t;;){if(J.tag===5){if(Z===null){Z=J;try{h=J.stateNode,G?(m=h.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(R=J.stateNode,A=J.memoizedProps.style,C=A!=null&&A.hasOwnProperty("display")?A.display:null,R.style.display=xt("display",C))}catch(fe){Xe(t,t.return,fe)}}}else if(J.tag===6){if(Z===null)try{J.stateNode.nodeValue=G?"":J.memoizedProps}catch(fe){Xe(t,t.return,fe)}}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:vn(o,t),Ln(t),d&4&&Ky(t);break;case 21:break;default:vn(o,t),Ln(t)}}function Ln(t){var o=t.flags;if(o&2){try{e:{for(var a=t.return;a!==null;){if(Uy(a)){var d=a;break e}a=a.return}throw Error(n(160))}switch(d.tag){case 5:var h=d.stateNode;d.flags&32&&(tn(h,""),d.flags&=-33);var m=Hy(t);Qc(t,m,h);break;case 3:case 4:var C=d.stateNode.containerInfo,R=Hy(t);Kc(t,R,C);break;default:throw Error(n(161))}}catch(A){Xe(t,t.return,A)}t.flags&=-3}o&4096&&(t.flags&=-4097)}function Hk(t,o,a){ue=t,Yy(t)}function Yy(t,o,a){for(var d=(t.mode&1)!==0;ue!==null;){var h=ue,m=h.child;if(h.tag===22&&d){var C=h.memoizedState!==null||ma;if(!C){var R=h.alternate,A=R!==null&&R.memoizedState!==null||bt;R=ma;var G=bt;if(ma=C,(bt=A)&&!G)for(ue=h;ue!==null;)C=ue,A=C.child,C.tag===22&&C.memoizedState!==null?Jy(h):A!==null?(A.return=C,ue=A):Jy(h);for(;m!==null;)ue=m,Yy(m),m=m.sibling;ue=h,ma=R,bt=G}Xy(t)}else(h.subtreeFlags&8772)!==0&&m!==null?(m.return=h,ue=m):Xy(t)}}function Xy(t){for(;ue!==null;){var o=ue;if((o.flags&8772)!==0){var a=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:bt||ya(5,o);break;case 1:var d=o.stateNode;if(o.flags&4&&!bt)if(a===null)d.componentDidMount();else{var h=o.elementType===o.type?a.memoizedProps:mn(o.type,a.memoizedProps);d.componentDidUpdate(h,a.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var m=o.updateQueue;m!==null&&Km(o,m,d);break;case 3:var C=o.updateQueue;if(C!==null){if(a=null,o.child!==null)switch(o.child.tag){case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}Km(o,C,a)}break;case 5:var R=o.stateNode;if(a===null&&o.flags&4){a=R;var A=o.memoizedProps;switch(o.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(o.memoizedState===null){var G=o.alternate;if(G!==null){var Z=G.memoizedState;if(Z!==null){var J=Z.dehydrated;J!==null&&mo(J)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}bt||o.flags&512&&Vc(o)}catch(X){Xe(o,o.return,X)}}if(o===t){ue=null;break}if(a=o.sibling,a!==null){a.return=o.return,ue=a;break}ue=o.return}}function Zy(t){for(;ue!==null;){var o=ue;if(o===t){ue=null;break}var a=o.sibling;if(a!==null){a.return=o.return,ue=a;break}ue=o.return}}function Jy(t){for(;ue!==null;){var o=ue;try{switch(o.tag){case 0:case 11:case 15:var a=o.return;try{ya(4,o)}catch(A){Xe(o,a,A)}break;case 1:var d=o.stateNode;if(typeof d.componentDidMount=="function"){var h=o.return;try{d.componentDidMount()}catch(A){Xe(o,h,A)}}var m=o.return;try{Vc(o)}catch(A){Xe(o,m,A)}break;case 5:var C=o.return;try{Vc(o)}catch(A){Xe(o,C,A)}}}catch(A){Xe(o,o.return,A)}if(o===t){ue=null;break}var R=o.sibling;if(R!==null){R.return=o.return,ue=R;break}ue=o.return}}var Vk=Math.ceil,va=M.ReactCurrentDispatcher,Yc=M.ReactCurrentOwner,an=M.ReactCurrentBatchConfig,Re=0,ut=null,nt=null,ht=0,Vt=0,Mi=vr(0),ot=0,Fo=null,Zr=0,ba=0,Xc=0,zo=null,Lt=null,Zc=0,$i=1/0,Xn=null,Sa=!1,Jc=null,kr=null,wa=!1,Pr=null,Ca=0,qo=0,eu=null,_a=-1,ka=0;function Ot(){return(Re&6)!==0?Je():_a!==-1?_a:_a=Je()}function Tr(t){return(t.mode&1)===0?1:(Re&2)!==0&&ht!==0?ht&-ht:Ok.transition!==null?(ka===0&&(ka=Ug()),ka):(t=Fe,t!==0||(t=window.event,t=t===void 0?16:em(t.type)),t)}function bn(t,o,a,d){if(50<qo)throw qo=0,eu=null,Error(n(185));uo(t,a,d),((Re&2)===0||t!==ut)&&(t===ut&&((Re&2)===0&&(ba|=a),ot===4&&Er(t,ht)),At(t,d),a===1&&Re===0&&(o.mode&1)===0&&($i=Je()+500,Zs&&Sr()))}function At(t,o){var a=t.callbackNode;O_(t,o);var d=Ns(t,t===ut?ht:0);if(d===0)a!==null&&Bg(a),t.callbackNode=null,t.callbackPriority=0;else if(o=d&-d,t.callbackPriority!==o){if(a!=null&&Bg(a),o===1)t.tag===0?Dk(tv.bind(null,t)):Fm(tv.bind(null,t)),Pk(function(){(Re&6)===0&&Sr()}),a=null;else{switch(Hg(d)){case 1:a=Nl;break;case 4:a=Gg;break;case 16:a=Ds;break;case 536870912:a=Wg;break;default:a=Ds}a=cv(a,ev.bind(null,t))}t.callbackPriority=o,t.callbackNode=a}}function ev(t,o){if(_a=-1,ka=0,(Re&6)!==0)throw Error(n(327));var a=t.callbackNode;if(Fi()&&t.callbackNode!==a)return null;var d=Ns(t,t===ut?ht:0);if(d===0)return null;if((d&30)!==0||(d&t.expiredLanes)!==0||o)o=Pa(t,d);else{o=d;var h=Re;Re|=2;var m=rv();(ut!==t||ht!==o)&&(Xn=null,$i=Je()+500,ei(t,o));do try{Yk();break}catch(R){nv(t,R)}while(!0);vc(),va.current=m,Re=h,nt!==null?o=0:(ut=null,ht=0,o=ot)}if(o!==0){if(o===2&&(h=jl(t),h!==0&&(d=h,o=tu(t,h))),o===1)throw a=Fo,ei(t,0),Er(t,d),At(t,Je()),a;if(o===6)Er(t,d);else{if(h=t.current.alternate,(d&30)===0&&!Kk(h)&&(o=Pa(t,d),o===2&&(m=jl(t),m!==0&&(d=m,o=tu(t,m))),o===1))throw a=Fo,ei(t,0),Er(t,d),At(t,Je()),a;switch(t.finishedWork=h,t.finishedLanes=d,o){case 0:case 1:throw Error(n(345));case 2:ti(t,Lt,Xn);break;case 3:if(Er(t,d),(d&130023424)===d&&(o=Zc+500-Je(),10<o)){if(Ns(t,0)!==0)break;if(h=t.suspendedLanes,(h&d)!==d){Ot(),t.pingedLanes|=t.suspendedLanes&h;break}t.timeoutHandle=ac(ti.bind(null,t,Lt,Xn),o);break}ti(t,Lt,Xn);break;case 4:if(Er(t,d),(d&4194240)===d)break;for(o=t.eventTimes,h=-1;0<d;){var C=31-fn(d);m=1<<C,C=o[C],C>h&&(h=C),d&=~m}if(d=h,d=Je()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*Vk(d/1960))-d,10<d){t.timeoutHandle=ac(ti.bind(null,t,Lt,Xn),d);break}ti(t,Lt,Xn);break;case 5:ti(t,Lt,Xn);break;default:throw Error(n(329))}}}return At(t,Je()),t.callbackNode===a?ev.bind(null,t):null}function tu(t,o){var a=zo;return t.current.memoizedState.isDehydrated&&(ei(t,o).flags|=256),t=Pa(t,o),t!==2&&(o=Lt,Lt=a,o!==null&&nu(o)),t}function nu(t){Lt===null?Lt=t:Lt.push.apply(Lt,t)}function Kk(t){for(var o=t;;){if(o.flags&16384){var a=o.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var d=0;d<a.length;d++){var h=a[d],m=h.getSnapshot;h=h.value;try{if(!hn(m(),h))return!1}catch{return!1}}}if(a=o.child,o.subtreeFlags&16384&&a!==null)a.return=o,o=a;else{if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Er(t,o){for(o&=~Xc,o&=~ba,t.suspendedLanes|=o,t.pingedLanes&=~o,t=t.expirationTimes;0<o;){var a=31-fn(o),d=1<<a;t[a]=-1,o&=~d}}function tv(t){if((Re&6)!==0)throw Error(n(327));Fi();var o=Ns(t,0);if((o&1)===0)return At(t,Je()),null;var a=Pa(t,o);if(t.tag!==0&&a===2){var d=jl(t);d!==0&&(o=d,a=tu(t,d))}if(a===1)throw a=Fo,ei(t,0),Er(t,o),At(t,Je()),a;if(a===6)throw Error(n(345));return t.finishedWork=t.current.alternate,t.finishedLanes=o,ti(t,Lt,Xn),At(t,Je()),null}function ru(t,o){var a=Re;Re|=1;try{return t(o)}finally{Re=a,Re===0&&($i=Je()+500,Zs&&Sr())}}function Jr(t){Pr!==null&&Pr.tag===0&&(Re&6)===0&&Fi();var o=Re;Re|=1;var a=an.transition,d=Fe;try{if(an.transition=null,Fe=1,t)return t()}finally{Fe=d,an.transition=a,Re=o,(Re&6)===0&&Sr()}}function iu(){Vt=Mi.current,Ge(Mi)}function ei(t,o){t.finishedWork=null,t.finishedLanes=0;var a=t.timeoutHandle;if(a!==-1&&(t.timeoutHandle=-1,kk(a)),nt!==null)for(a=nt.return;a!==null;){var d=a;switch(fc(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&Ys();break;case 3:ji(),Ge(Rt),Ge(mt),xc();break;case 5:Tc(d);break;case 4:ji();break;case 13:Ge(Ve);break;case 19:Ge(Ve);break;case 10:bc(d.type._context);break;case 22:case 23:iu()}a=a.return}if(ut=t,nt=t=xr(t.current,null),ht=Vt=o,ot=0,Fo=null,Xc=ba=Zr=0,Lt=zo=null,Qr!==null){for(o=0;o<Qr.length;o++)if(a=Qr[o],d=a.interleaved,d!==null){a.interleaved=null;var h=d.next,m=a.pending;if(m!==null){var C=m.next;m.next=h,d.next=C}a.pending=d}Qr=null}return t}function nv(t,o){do{var a=nt;try{if(vc(),ca.current=fa,ua){for(var d=Ke.memoizedState;d!==null;){var h=d.queue;h!==null&&(h.pending=null),d=d.next}ua=!1}if(Xr=0,ct=it=Ke=null,No=!1,jo=0,Yc.current=null,a===null||a.return===null){ot=1,Fo=o,nt=null;break}e:{var m=t,C=a.return,R=a,A=o;if(o=ht,R.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var G=A,Z=R,J=Z.tag;if((Z.mode&1)===0&&(J===0||J===11||J===15)){var X=Z.alternate;X?(Z.updateQueue=X.updateQueue,Z.memoizedState=X.memoizedState,Z.lanes=X.lanes):(Z.updateQueue=null,Z.memoizedState=null)}var le=Ey(C);if(le!==null){le.flags&=-257,xy(le,C,R,m,o),le.mode&1&&Ty(m,G,o),o=le,A=G;var pe=o.updateQueue;if(pe===null){var fe=new Set;fe.add(A),o.updateQueue=fe}else pe.add(A);break e}else{if((o&1)===0){Ty(m,G,o),ou();break e}A=Error(n(426))}}else if(We&&R.mode&1){var et=Ey(C);if(et!==null){(et.flags&65536)===0&&(et.flags|=256),xy(et,C,R,m,o),mc(Li(A,R));break e}}m=A=Li(A,R),ot!==4&&(ot=2),zo===null?zo=[m]:zo.push(m),m=C;do{switch(m.tag){case 3:m.flags|=65536,o&=-o,m.lanes|=o;var q=ky(m,A,o);Vm(m,q);break e;case 1:R=A;var $=m.type,B=m.stateNode;if((m.flags&128)===0&&(typeof $.getDerivedStateFromError=="function"||B!==null&&typeof B.componentDidCatch=="function"&&(kr===null||!kr.has(B)))){m.flags|=65536,o&=-o,m.lanes|=o;var te=Py(m,R,o);Vm(m,te);break e}}m=m.return}while(m!==null)}ov(a)}catch(ge){o=ge,nt===a&&a!==null&&(nt=a=a.return);continue}break}while(!0)}function rv(){var t=va.current;return va.current=fa,t===null?fa:t}function ou(){(ot===0||ot===3||ot===2)&&(ot=4),ut===null||(Zr&268435455)===0&&(ba&268435455)===0||Er(ut,ht)}function Pa(t,o){var a=Re;Re|=2;var d=rv();(ut!==t||ht!==o)&&(Xn=null,ei(t,o));do try{Qk();break}catch(h){nv(t,h)}while(!0);if(vc(),Re=a,va.current=d,nt!==null)throw Error(n(261));return ut=null,ht=0,ot}function Qk(){for(;nt!==null;)iv(nt)}function Yk(){for(;nt!==null&&!w_();)iv(nt)}function iv(t){var o=lv(t.alternate,t,Vt);t.memoizedProps=t.pendingProps,o===null?ov(t):nt=o,Yc.current=null}function ov(t){var o=t;do{var a=o.alternate;if(t=o.return,(o.flags&32768)===0){if(a=Bk(a,o,Vt),a!==null){nt=a;return}}else{if(a=Gk(a,o),a!==null){a.flags&=32767,nt=a;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{ot=6,nt=null;return}}if(o=o.sibling,o!==null){nt=o;return}nt=o=t}while(o!==null);ot===0&&(ot=5)}function ti(t,o,a){var d=Fe,h=an.transition;try{an.transition=null,Fe=1,Xk(t,o,a,d)}finally{an.transition=h,Fe=d}return null}function Xk(t,o,a,d){do Fi();while(Pr!==null);if((Re&6)!==0)throw Error(n(327));a=t.finishedWork;var h=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(I_(t,m),t===ut&&(nt=ut=null,ht=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||wa||(wa=!0,cv(Ds,function(){return Fi(),null})),m=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||m){m=an.transition,an.transition=null;var C=Fe;Fe=1;var R=Re;Re|=4,Yc.current=null,Uk(t,a),Qy(a,t),yk(oc),As=!!ic,oc=ic=null,t.current=a,Hk(a),C_(),Re=R,Fe=C,an.transition=m}else t.current=a;if(wa&&(wa=!1,Pr=t,Ca=h),m=t.pendingLanes,m===0&&(kr=null),P_(a.stateNode),At(t,Je()),o!==null)for(d=t.onRecoverableError,a=0;a<o.length;a++)h=o[a],d(h.value,{componentStack:h.stack,digest:h.digest});if(Sa)throw Sa=!1,t=Jc,Jc=null,t;return(Ca&1)!==0&&t.tag!==0&&Fi(),m=t.pendingLanes,(m&1)!==0?t===eu?qo++:(qo=0,eu=t):qo=0,Sr(),null}function Fi(){if(Pr!==null){var t=Hg(Ca),o=an.transition,a=Fe;try{if(an.transition=null,Fe=16>t?16:t,Pr===null)var d=!1;else{if(t=Pr,Pr=null,Ca=0,(Re&6)!==0)throw Error(n(331));var h=Re;for(Re|=4,ue=t.current;ue!==null;){var m=ue,C=m.child;if((ue.flags&16)!==0){var R=m.deletions;if(R!==null){for(var A=0;A<R.length;A++){var G=R[A];for(ue=G;ue!==null;){var Z=ue;switch(Z.tag){case 0:case 11:case 15:$o(8,Z,m)}var J=Z.child;if(J!==null)J.return=Z,ue=J;else for(;ue!==null;){Z=ue;var X=Z.sibling,le=Z.return;if(Wy(Z),Z===G){ue=null;break}if(X!==null){X.return=le,ue=X;break}ue=le}}}var pe=m.alternate;if(pe!==null){var fe=pe.child;if(fe!==null){pe.child=null;do{var et=fe.sibling;fe.sibling=null,fe=et}while(fe!==null)}}ue=m}}if((m.subtreeFlags&2064)!==0&&C!==null)C.return=m,ue=C;else e:for(;ue!==null;){if(m=ue,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:$o(9,m,m.return)}var q=m.sibling;if(q!==null){q.return=m.return,ue=q;break e}ue=m.return}}var $=t.current;for(ue=$;ue!==null;){C=ue;var B=C.child;if((C.subtreeFlags&2064)!==0&&B!==null)B.return=C,ue=B;else e:for(C=$;ue!==null;){if(R=ue,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:ya(9,R)}}catch(ge){Xe(R,R.return,ge)}if(R===C){ue=null;break e}var te=R.sibling;if(te!==null){te.return=R.return,ue=te;break e}ue=R.return}}if(Re=h,Sr(),In&&typeof In.onPostCommitFiberRoot=="function")try{In.onPostCommitFiberRoot(Os,t)}catch{}d=!0}return d}finally{Fe=a,an.transition=o}}return!1}function sv(t,o,a){o=Li(a,o),o=ky(t,o,1),t=Cr(t,o,1),o=Ot(),t!==null&&(uo(t,1,o),At(t,o))}function Xe(t,o,a){if(t.tag===3)sv(t,t,a);else for(;o!==null;){if(o.tag===3){sv(o,t,a);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(kr===null||!kr.has(d))){t=Li(a,t),t=Py(o,t,1),o=Cr(o,t,1),t=Ot(),o!==null&&(uo(o,1,t),At(o,t));break}}o=o.return}}function Zk(t,o,a){var d=t.pingCache;d!==null&&d.delete(o),o=Ot(),t.pingedLanes|=t.suspendedLanes&a,ut===t&&(ht&a)===a&&(ot===4||ot===3&&(ht&130023424)===ht&&500>Je()-Zc?ei(t,0):Xc|=a),At(t,o)}function av(t,o){o===0&&((t.mode&1)===0?o=1:(o=Rs,Rs<<=1,(Rs&130023424)===0&&(Rs=4194304)));var a=Ot();t=Kn(t,o),t!==null&&(uo(t,o,a),At(t,a))}function Jk(t){var o=t.memoizedState,a=0;o!==null&&(a=o.retryLane),av(t,a)}function eP(t,o){var a=0;switch(t.tag){case 13:var d=t.stateNode,h=t.memoizedState;h!==null&&(a=h.retryLane);break;case 19:d=t.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(o),av(t,a)}var lv;lv=function(t,o,a){if(t!==null)if(t.memoizedProps!==o.pendingProps||Rt.current)jt=!0;else{if((t.lanes&a)===0&&(o.flags&128)===0)return jt=!1,qk(t,o,a);jt=(t.flags&131072)!==0}else jt=!1,We&&(o.flags&1048576)!==0&&zm(o,ea,o.index);switch(o.lanes=0,o.tag){case 2:var d=o.type;ga(t,o),t=o.pendingProps;var h=Ei(o,mt.current);Ri(o,a),h=Ic(null,o,d,t,h,a);var m=Rc();return o.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Nt(d)?(m=!0,Xs(o)):m=!1,o.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,Cc(o),h.updater=sa,o.stateNode=h,h._reactInternals=o,kc(o,d,t,a),o=zc(null,o,d,!0,m,a)):(o.tag=0,We&&m&&pc(o),Dt(null,o,h,a),o=o.child),o;case 16:d=o.elementType;e:{switch(ga(t,o),t=o.pendingProps,h=d._init,d=h(d._payload),o.type=d,h=o.tag=nP(d),t=mn(d,t),h){case 0:o=Fc(null,o,d,t,a);break e;case 1:o=jy(null,o,d,t,a);break e;case 11:o=Dy(null,o,d,t,a);break e;case 14:o=Oy(null,o,d,mn(d.type,t),a);break e}throw Error(n(306,d,""))}return o;case 0:return d=o.type,h=o.pendingProps,h=o.elementType===d?h:mn(d,h),Fc(t,o,d,h,a);case 1:return d=o.type,h=o.pendingProps,h=o.elementType===d?h:mn(d,h),jy(t,o,d,h,a);case 3:e:{if(Ly(o),t===null)throw Error(n(387));d=o.pendingProps,m=o.memoizedState,h=m.element,Hm(t,o),oa(o,d,null,a);var C=o.memoizedState;if(d=C.element,m.isDehydrated)if(m={element:d,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},o.updateQueue.baseState=m,o.memoizedState=m,o.flags&256){h=Li(Error(n(423)),o),o=Ay(t,o,d,a,h);break e}else if(d!==h){h=Li(Error(n(424)),o),o=Ay(t,o,d,a,h);break e}else for(Ht=yr(o.stateNode.containerInfo.firstChild),Ut=o,We=!0,gn=null,a=ty(o,null,d,a),o.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Oi(),d===h){o=Yn(t,o,a);break e}Dt(t,o,d,a)}o=o.child}return o;case 5:return ny(o),t===null&&gc(o),d=o.type,h=o.pendingProps,m=t!==null?t.memoizedProps:null,C=h.children,sc(d,h)?C=null:m!==null&&sc(d,m)&&(o.flags|=32),Ny(t,o),Dt(t,o,C,a),o.child;case 6:return t===null&&gc(o),null;case 13:return My(t,o,a);case 4:return Pc(o,o.stateNode.containerInfo),d=o.pendingProps,t===null?o.child=Ni(o,null,d,a):Dt(t,o,d,a),o.child;case 11:return d=o.type,h=o.pendingProps,h=o.elementType===d?h:mn(d,h),Dy(t,o,d,h,a);case 7:return Dt(t,o,o.pendingProps,a),o.child;case 8:return Dt(t,o,o.pendingProps.children,a),o.child;case 12:return Dt(t,o,o.pendingProps.children,a),o.child;case 10:e:{if(d=o.type._context,h=o.pendingProps,m=o.memoizedProps,C=h.value,qe(na,d._currentValue),d._currentValue=C,m!==null)if(hn(m.value,C)){if(m.children===h.children&&!Rt.current){o=Yn(t,o,a);break e}}else for(m=o.child,m!==null&&(m.return=o);m!==null;){var R=m.dependencies;if(R!==null){C=m.child;for(var A=R.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),Sc(m.return,a,o),R.lanes|=a;break}A=A.next}}else if(m.tag===10)C=m.type===o.type?null:m.child;else if(m.tag===18){if(C=m.return,C===null)throw Error(n(341));C.lanes|=a,R=C.alternate,R!==null&&(R.lanes|=a),Sc(C,a,o),C=m.sibling}else C=m.child;if(C!==null)C.return=m;else for(C=m;C!==null;){if(C===o){C=null;break}if(m=C.sibling,m!==null){m.return=C.return,C=m;break}C=C.return}m=C}Dt(t,o,h.children,a),o=o.child}return o;case 9:return h=o.type,d=o.pendingProps.children,Ri(o,a),h=on(h),d=d(h),o.flags|=1,Dt(t,o,d,a),o.child;case 14:return d=o.type,h=mn(d,o.pendingProps),h=mn(d.type,h),Oy(t,o,d,h,a);case 15:return Iy(t,o,o.type,o.pendingProps,a);case 17:return d=o.type,h=o.pendingProps,h=o.elementType===d?h:mn(d,h),ga(t,o),o.tag=1,Nt(d)?(t=!0,Xs(o)):t=!1,Ri(o,a),Xm(o,d,h),kc(o,d,h,a),zc(null,o,d,!0,t,a);case 19:return Fy(t,o,a);case 22:return Ry(t,o,a)}throw Error(n(156,o.tag))};function cv(t,o){return qg(t,o)}function tP(t,o,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=o,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 ln(t,o,a,d){return new tP(t,o,a,d)}function su(t){return t=t.prototype,!(!t||!t.isReactComponent)}function nP(t){if(typeof t=="function")return su(t)?1:0;if(t!=null){if(t=t.$$typeof,t===ie)return 11;if(t===ne)return 14}return 2}function xr(t,o){var a=t.alternate;return a===null?(a=ln(t.tag,o,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=o,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,o=t.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a}function Ta(t,o,a,d,h,m){var C=2;if(d=t,typeof t=="function")su(t)&&(C=1);else if(typeof t=="string")C=5;else e:switch(t){case L:return ni(a.children,h,m,o);case z:C=8,h|=8;break;case U:return t=ln(12,a,o,h|2),t.elementType=U,t.lanes=m,t;case ee:return t=ln(13,a,o,h),t.elementType=ee,t.lanes=m,t;case ae:return t=ln(19,a,o,h),t.elementType=ae,t.lanes=m,t;case de:return Ea(a,h,m,o);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case H:C=10;break e;case K:C=9;break e;case ie:C=11;break e;case ne:C=14;break e;case ce:C=16,d=null;break e}throw Error(n(130,t==null?t:typeof t,""))}return o=ln(C,a,o,h),o.elementType=t,o.type=d,o.lanes=m,o}function ni(t,o,a,d){return t=ln(7,t,d,o),t.lanes=a,t}function Ea(t,o,a,d){return t=ln(22,t,d,o),t.elementType=de,t.lanes=a,t.stateNode={isHidden:!1},t}function au(t,o,a){return t=ln(6,t,null,o),t.lanes=a,t}function lu(t,o,a){return o=ln(4,t.children!==null?t.children:[],t.key,o),o.lanes=a,o.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},o}function rP(t,o,a,d,h){this.tag=o,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=Ll(0),this.expirationTimes=Ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ll(0),this.identifierPrefix=d,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function cu(t,o,a,d,h,m,C,R,A){return t=new rP(t,o,a,R,A),o===1?(o=1,m===!0&&(o|=8)):o=0,m=ln(3,null,null,o),t.current=m,m.stateNode=t,m.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cc(m),t}function iP(t,o,a){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:d==null?null:""+d,children:t,containerInfo:o,implementation:a}}function uv(t){if(!t)return br;t=t._reactInternals;e:{if(Wr(t)!==t||t.tag!==1)throw Error(n(170));var o=t;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Nt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(t.tag===1){var a=t.type;if(Nt(a))return Mm(t,a,o)}return o}function dv(t,o,a,d,h,m,C,R,A){return t=cu(a,d,!0,t,h,m,C,R,A),t.context=uv(null),a=t.current,d=Ot(),h=Tr(a),m=Qn(d,h),m.callback=o??null,Cr(a,m,h),t.current.lanes=h,uo(t,h,d),At(t,d),t}function xa(t,o,a,d){var h=o.current,m=Ot(),C=Tr(h);return a=uv(a),o.context===null?o.context=a:o.pendingContext=a,o=Qn(m,C),o.payload={element:t},d=d===void 0?null:d,d!==null&&(o.callback=d),t=Cr(h,o,C),t!==null&&(bn(t,h,C,m),ia(t,h,C)),C}function Da(t){return t=t.current,t.child?(t.child.tag===5,t.child.stateNode):null}function pv(t,o){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<o?a:o}}function uu(t,o){pv(t,o),(t=t.alternate)&&pv(t,o)}function oP(){return null}var fv=typeof reportError=="function"?reportError:function(t){console.error(t)};function du(t){this._internalRoot=t}Oa.prototype.render=du.prototype.render=function(t){var o=this._internalRoot;if(o===null)throw Error(n(409));xa(t,o,null,null)},Oa.prototype.unmount=du.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var o=t.containerInfo;Jr(function(){xa(null,t,null,null)}),o[Wn]=null}};function Oa(t){this._internalRoot=t}Oa.prototype.unstable_scheduleHydration=function(t){if(t){var o=Qg();t={blockedOn:null,target:t,priority:o};for(var a=0;a<hr.length&&o!==0&&o<hr[a].priority;a++);hr.splice(a,0,t),a===0&&Zg(t)}};function pu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ia(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function hv(){}function sP(t,o,a,d,h){if(h){if(typeof d=="function"){var m=d;d=function(){var G=Da(C);m.call(G)}}var C=dv(o,d,t,0,null,!1,!1,"",hv);return t._reactRootContainer=C,t[Wn]=C.current,Po(t.nodeType===8?t.parentNode:t),Jr(),C}for(;h=t.lastChild;)t.removeChild(h);if(typeof d=="function"){var R=d;d=function(){var G=Da(A);R.call(G)}}var A=cu(t,0,!1,null,null,!1,!1,"",hv);return t._reactRootContainer=A,t[Wn]=A.current,Po(t.nodeType===8?t.parentNode:t),Jr(function(){xa(o,A,a,d)}),A}function Ra(t,o,a,d,h){var m=a._reactRootContainer;if(m){var C=m;if(typeof h=="function"){var R=h;h=function(){var A=Da(C);R.call(A)}}xa(o,C,t,h)}else C=sP(a,o,t,h,d);return Da(C)}Vg=function(t){switch(t.tag){case 3:var o=t.stateNode;if(o.current.memoizedState.isDehydrated){var a=co(o.pendingLanes);a!==0&&(Al(o,a|1),At(o,Je()),(Re&6)===0&&($i=Je()+500,Sr()))}break;case 13:Jr(function(){var d=Kn(t,1);if(d!==null){var h=Ot();bn(d,t,1,h)}}),uu(t,1)}},Ml=function(t){if(t.tag===13){var o=Kn(t,134217728);if(o!==null){var a=Ot();bn(o,t,134217728,a)}uu(t,134217728)}},Kg=function(t){if(t.tag===13){var o=Tr(t),a=Kn(t,o);if(a!==null){var d=Ot();bn(a,t,o,d)}uu(t,o)}},Qg=function(){return Fe},Yg=function(t,o){var a=Fe;try{return Fe=t,o()}finally{Fe=a}},qr=function(t,o,a){switch(o){case"input":if(xe(t,a),o=a.name,a.type==="radio"&&o!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<a.length;o++){var d=a[o];if(d!==t&&d.form===t.form){var h=Qs(d);if(!h)throw Error(n(90));ar(d),xe(d,h)}}}break;case"textarea":Tt(t,a);break;case"select":o=a.value,o!=null&&Ie(t,!!a.multiple,o,!1)}},io=ru,oo=Jr;var aP={usingClientEntryPoint:!1,Events:[xo,Pi,Qs,Gn,Gr,ru]},Bo={findFiberByHostInstance:Ur,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},lP={bundleType:Bo.bundleType,version:Bo.version,rendererPackageName:Bo.rendererPackageName,rendererConfig:Bo.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=Fg(t),t===null?null:t.stateNode},findFiberByHostInstance:Bo.findFiberByHostInstance||oP,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 Na=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Na.isDisabled&&Na.supportsFiber)try{Os=Na.inject(lP),In=Na}catch{}}return Mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aP,Mt.createPortal=function(t,o){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!pu(o))throw Error(n(200));return iP(t,o,null,a)},Mt.createRoot=function(t,o){if(!pu(t))throw Error(n(299));var a=!1,d="",h=fv;return o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(h=o.onRecoverableError)),o=cu(t,1,!1,null,null,a,!1,d,h),t[Wn]=o.current,Po(t.nodeType===8?t.parentNode:t),new du(o)},Mt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var o=t._reactInternals;if(o===void 0)throw typeof t.render=="function"?Error(n(188)):(t=Object.keys(t).join(","),Error(n(268,t)));return t=Fg(o),t=t===null?null:t.stateNode,t},Mt.flushSync=function(t){return Jr(t)},Mt.hydrate=function(t,o,a){if(!Ia(o))throw Error(n(200));return Ra(null,t,o,!0,a)},Mt.hydrateRoot=function(t,o,a){if(!pu(t))throw Error(n(405));var d=a!=null&&a.hydratedSources||null,h=!1,m="",C=fv;if(a!=null&&(a.unstable_strictMode===!0&&(h=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onRecoverableError!==void 0&&(C=a.onRecoverableError)),o=dv(o,null,t,1,a??null,h,!1,m,C),t[Wn]=o.current,Po(t),d)for(t=0;t<d.length;t++)a=d[t],h=a._getVersion,h=h(a._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[a,h]:o.mutableSourceEagerHydrationData.push(a,h);return new Oa(o)},Mt.render=function(t,o,a){if(!Ia(o))throw Error(n(200));return Ra(null,t,o,!1,a)},Mt.unmountComponentAtNode=function(t){if(!Ia(t))throw Error(n(40));return t._reactRootContainer?(Jr(function(){Ra(null,null,t,!1,function(){t._reactRootContainer=null,t[Wn]=null})}),!0):!1},Mt.unstable_batchedUpdates=ru,Mt.unstable_renderSubtreeIntoContainer=function(t,o,a,d){if(!Ia(a))throw Error(n(200));if(t==null||t._reactInternals===void 0)throw Error(n(38));return Ra(t,o,a,!1,d)},Mt.version="18.2.0-next-9e3b772b8-20220608",Mt}var Cv;function sC(){if(Cv)return gu.exports;Cv=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(e){console.error(e)}}return i(),gu.exports=gP(),gu.exports}var _v;function mP(){if(_v)return La;_v=1;var i=sC();return La.createRoot=i.createRoot,La.hydrateRoot=i.hydrateRoot,La}var yP=mP(),vu,kv;function vP(){if(kv)return vu;kv=1;function i(){}return vu=i,vu}var bP=vP();const me=Ye(bP);var bu,Pv;function Yt(){if(Pv)return bu;Pv=1;var i=Array.isArray;return bu=i,bu}var Su,Tv;function aC(){if(Tv)return Su;Tv=1;var i=typeof ja=="object"&&ja&&ja.Object===Object&&ja;return Su=i,Su}var wu,Ev;function kn(){if(Ev)return wu;Ev=1;var i=aC(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=i||e||Function("return this")();return wu=n,wu}var Cu,xv;function Qi(){if(xv)return Cu;xv=1;var i=kn(),e=i.Symbol;return Cu=e,Cu}var _u,Dv;function SP(){if(Dv)return _u;Dv=1;var i=Qi(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,s=i?i.toStringTag:void 0;function l(c){var u=n.call(c,s),p=c[s];try{c[s]=void 0;var f=!0}catch{}var y=r.call(c);return f&&(u?c[s]=p:delete c[s]),y}return _u=l,_u}var ku,Ov;function wP(){if(Ov)return ku;Ov=1;var i=Object.prototype,e=i.toString;function n(r){return e.call(r)}return ku=n,ku}var Pu,Iv;function $r(){if(Iv)return Pu;Iv=1;var i=Qi(),e=SP(),n=wP(),r="[object Null]",s="[object Undefined]",l=i?i.toStringTag:void 0;function c(u){return u==null?u===void 0?s:r:l&&l in Object(u)?e(u):n(u)}return Pu=c,Pu}var Tu,Rv;function Pn(){if(Rv)return Tu;Rv=1;function i(e){return e!=null&&typeof e=="object"}return Tu=i,Tu}var Eu,Nv;function el(){if(Nv)return Eu;Nv=1;var i=$r(),e=Pn(),n="[object Symbol]";function r(s){return typeof s=="symbol"||e(s)&&i(s)==n}return Eu=r,Eu}var xu,jv;function CP(){if(jv)return xu;jv=1;var i=Yt(),e=el(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function s(l,c){if(i(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 xu=s,xu}var Du,Lv;function un(){if(Lv)return Du;Lv=1;function i(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return Du=i,Du}var Ou,Av;function tl(){if(Av)return Ou;Av=1;var i=$r(),e=un(),n="[object AsyncFunction]",r="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(u){if(!e(u))return!1;var p=i(u);return p==r||p==s||p==n||p==l}return Ou=c,Ou}var Iu,Mv;function _P(){if(Mv)return Iu;Mv=1;var i=kn(),e=i["__core-js_shared__"];return Iu=e,Iu}var Ru,$v;function kP(){if($v)return Ru;$v=1;var i=_P(),e=(function(){var r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!e&&e in r}return Ru=n,Ru}var Nu,Fv;function lC(){if(Fv)return Nu;Fv=1;var i=Function.prototype,e=i.toString;function n(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}return Nu=n,Nu}var ju,zv;function PP(){if(zv)return ju;zv=1;var i=tl(),e=kP(),n=un(),r=lC(),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,p=c.toString,f=u.hasOwnProperty,y=RegExp("^"+p.call(f).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v(S){if(!n(S)||e(S))return!1;var P=i(S)?y:l;return P.test(r(S))}return ju=v,ju}var Lu,qv;function TP(){if(qv)return Lu;qv=1;function i(e,n){return e?.[n]}return Lu=i,Lu}var Au,Bv;function fi(){if(Bv)return Au;Bv=1;var i=PP(),e=TP();function n(r,s){var l=e(r,s);return i(l)?l:void 0}return Au=n,Au}var Mu,Gv;function nl(){if(Gv)return Mu;Gv=1;var i=fi(),e=i(Object,"create");return Mu=e,Mu}var $u,Wv;function EP(){if(Wv)return $u;Wv=1;var i=nl();function e(){this.__data__=i?i(null):{},this.size=0}return $u=e,$u}var Fu,Uv;function xP(){if(Uv)return Fu;Uv=1;function i(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return Fu=i,Fu}var zu,Hv;function DP(){if(Hv)return zu;Hv=1;var i=nl(),e="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function s(l){var c=this.__data__;if(i){var u=c[l];return u===e?void 0:u}return r.call(c,l)?c[l]:void 0}return zu=s,zu}var qu,Vv;function OP(){if(Vv)return qu;Vv=1;var i=nl(),e=Object.prototype,n=e.hasOwnProperty;function r(s){var l=this.__data__;return i?l[s]!==void 0:n.call(l,s)}return qu=r,qu}var Bu,Kv;function IP(){if(Kv)return Bu;Kv=1;var i=nl(),e="__lodash_hash_undefined__";function n(r,s){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=i&&s===void 0?e:s,this}return Bu=n,Bu}var Gu,Qv;function RP(){if(Qv)return Gu;Qv=1;var i=EP(),e=xP(),n=DP(),r=OP(),s=IP();function l(c){var u=-1,p=c==null?0:c.length;for(this.clear();++u<p;){var f=c[u];this.set(f[0],f[1])}}return l.prototype.clear=i,l.prototype.delete=e,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,Gu=l,Gu}var Wu,Yv;function NP(){if(Yv)return Wu;Yv=1;function i(){this.__data__=[],this.size=0}return Wu=i,Wu}var Uu,Xv;function hs(){if(Xv)return Uu;Xv=1;function i(e,n){return e===n||e!==e&&n!==n}return Uu=i,Uu}var Hu,Zv;function rl(){if(Zv)return Hu;Zv=1;var i=hs();function e(n,r){for(var s=n.length;s--;)if(i(n[s][0],r))return s;return-1}return Hu=e,Hu}var Vu,Jv;function jP(){if(Jv)return Vu;Jv=1;var i=rl(),e=Array.prototype,n=e.splice;function r(s){var l=this.__data__,c=i(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 Vu=r,Vu}var Ku,eb;function LP(){if(eb)return Ku;eb=1;var i=rl();function e(n){var r=this.__data__,s=i(r,n);return s<0?void 0:r[s][1]}return Ku=e,Ku}var Qu,tb;function AP(){if(tb)return Qu;tb=1;var i=rl();function e(n){return i(this.__data__,n)>-1}return Qu=e,Qu}var Yu,nb;function MP(){if(nb)return Yu;nb=1;var i=rl();function e(n,r){var s=this.__data__,l=i(s,n);return l<0?(++this.size,s.push([n,r])):s[l][1]=r,this}return Yu=e,Yu}var Xu,rb;function il(){if(rb)return Xu;rb=1;var i=NP(),e=jP(),n=LP(),r=AP(),s=MP();function l(c){var u=-1,p=c==null?0:c.length;for(this.clear();++u<p;){var f=c[u];this.set(f[0],f[1])}}return l.prototype.clear=i,l.prototype.delete=e,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,Xu=l,Xu}var Zu,ib;function Ih(){if(ib)return Zu;ib=1;var i=fi(),e=kn(),n=i(e,"Map");return Zu=n,Zu}var Ju,ob;function $P(){if(ob)return Ju;ob=1;var i=RP(),e=il(),n=Ih();function r(){this.size=0,this.__data__={hash:new i,map:new(n||e),string:new i}}return Ju=r,Ju}var ed,sb;function FP(){if(sb)return ed;sb=1;function i(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return ed=i,ed}var td,ab;function ol(){if(ab)return td;ab=1;var i=FP();function e(n,r){var s=n.__data__;return i(r)?s[typeof r=="string"?"string":"hash"]:s.map}return td=e,td}var nd,lb;function zP(){if(lb)return nd;lb=1;var i=ol();function e(n){var r=i(this,n).delete(n);return this.size-=r?1:0,r}return nd=e,nd}var rd,cb;function qP(){if(cb)return rd;cb=1;var i=ol();function e(n){return i(this,n).get(n)}return rd=e,rd}var id,ub;function BP(){if(ub)return id;ub=1;var i=ol();function e(n){return i(this,n).has(n)}return id=e,id}var od,db;function GP(){if(db)return od;db=1;var i=ol();function e(n,r){var s=i(this,n),l=s.size;return s.set(n,r),this.size+=s.size==l?0:1,this}return od=e,od}var sd,pb;function Rh(){if(pb)return sd;pb=1;var i=$P(),e=zP(),n=qP(),r=BP(),s=GP();function l(c){var u=-1,p=c==null?0:c.length;for(this.clear();++u<p;){var f=c[u];this.set(f[0],f[1])}}return l.prototype.clear=i,l.prototype.delete=e,l.prototype.get=n,l.prototype.has=r,l.prototype.set=s,sd=l,sd}var ad,fb;function WP(){if(fb)return ad;fb=1;var i=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 f=r.apply(this,c);return l.cache=p.set(u,f)||p,f};return l.cache=new(n.Cache||i),l}return n.Cache=i,ad=n,ad}var ld,hb;function UP(){if(hb)return ld;hb=1;var i=WP(),e=500;function n(r){var s=i(r,function(c){return l.size===e&&l.clear(),c}),l=s.cache;return s}return ld=n,ld}var cd,gb;function HP(){if(gb)return cd;gb=1;var i=UP(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=i(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(e,function(c,u,p,f){l.push(p?f.replace(n,"$1"):u||c)}),l});return cd=r,cd}var ud,mb;function Nh(){if(mb)return ud;mb=1;function i(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 ud=i,ud}var dd,yb;function VP(){if(yb)return dd;yb=1;var i=Qi(),e=Nh(),n=Yt(),r=el(),s=i?i.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 dd=c,dd}var pd,vb;function KP(){if(vb)return pd;vb=1;var i=VP();function e(n){return n==null?"":i(n)}return pd=e,pd}var fd,bb;function sl(){if(bb)return fd;bb=1;var i=Yt(),e=CP(),n=HP(),r=KP();function s(l,c){return i(l)?l:e(l,c)?[l]:n(r(l))}return fd=s,fd}var hd,Sb;function jh(){if(Sb)return hd;Sb=1;var i=el();function e(n){if(typeof n=="string"||i(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return hd=e,hd}var gd,wb;function cC(){if(wb)return gd;wb=1;var i=sl(),e=jh();function n(r,s){s=i(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 gd=n,gd}var md,Cb;function QP(){if(Cb)return md;Cb=1;var i=cC();function e(n,r,s){var l=n==null?void 0:i(n,r);return l===void 0?s:l}return md=e,md}var YP=QP();const Te=Ye(YP),uC=function(i){if(Te(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(i,...n)}};class zt{static get cssClasses(){return{}}static get strings(){return{}}static get numbers(){return{}}static get defaultAdapter(){return{getProp:me,getProps:me,getState:me,getStates:me,setState:me,getContext:me,getContexts:me,getCache:me,setCache:me,getCaches:me,stopPropagation:me,persistEvent:me}}constructor(e){this._adapter=Object.assign(Object.assign({},zt.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];uC(e,...r)}_persistEvent(e){this._adapter.persistEvent(e)}}var E=fs();const _=Ye(E);function Lh(i){return Object.keys(i).reduce((e,n)=>(n.substr(0,5)==="data-"&&(e[n]=i[n]),e),{})}const{hasOwnProperty:XP}=Object.prototype;class _t extends E.Component{constructor(e){super(e),this.isControlled=n=>!!(n&&this.props&&typeof this.props=="object"&&XP.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 uC(e,...r)}getDataAttr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return Lh(e)}}_t.propTypes={};_t.defaultProps={};var yd,_b;function ZP(){if(_b)return yd;_b=1;var i=kn(),e=function(){return i.Date.now()};return yd=e,yd}var vd,kb;function JP(){if(kb)return vd;kb=1;var i=/\s/;function e(n){for(var r=n.length;r--&&i.test(n.charAt(r)););return r}return vd=e,vd}var bd,Pb;function eT(){if(Pb)return bd;Pb=1;var i=JP(),e=/^\s+/;function n(r){return r&&r.slice(0,i(r)+1).replace(e,"")}return bd=n,bd}var Sd,Tb;function tT(){if(Tb)return Sd;Tb=1;var i=eT(),e=un(),n=el(),r=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;function p(f){if(typeof f=="number")return f;if(n(f))return r;if(e(f)){var y=typeof f.valueOf=="function"?f.valueOf():f;f=e(y)?y+"":y}if(typeof f!="string")return f===0?f:+f;f=i(f);var v=l.test(f);return v||c.test(f)?u(f.slice(2),v?2:8):s.test(f)?r:+f}return Sd=p,Sd}var wd,Eb;function nT(){if(Eb)return wd;Eb=1;var i=un(),e=ZP(),n=tT(),r="Expected a function",s=Math.max,l=Math.min;function c(u,p,f){var y,v,S,P,T,b,w=0,D=!1,O=!1,N=!0;if(typeof u!="function")throw new TypeError(r);p=n(p)||0,i(f)&&(D=!!f.leading,O="maxWait"in f,S=O?s(n(f.maxWait)||0,p):S,N="trailing"in f?!!f.trailing:N);function M(ee){var ae=y,ne=v;return y=v=void 0,w=ee,P=u.apply(ne,ae),P}function F(ee){return w=ee,T=setTimeout(z,p),D?M(ee):P}function j(ee){var ae=ee-b,ne=ee-w,ce=p-ae;return O?l(ce,S-ne):ce}function L(ee){var ae=ee-b,ne=ee-w;return b===void 0||ae>=p||ae<0||O&&ne>=S}function z(){var ee=e();if(L(ee))return U(ee);T=setTimeout(z,j(ee))}function U(ee){return T=void 0,N&&y?M(ee):(y=v=void 0,P)}function H(){T!==void 0&&clearTimeout(T),w=0,y=b=v=T=void 0}function K(){return T===void 0?P:U(e())}function ie(){var ee=e(),ae=L(ee);if(y=arguments,v=this,b=ee,ae){if(T===void 0)return F(b);if(O)return clearTimeout(T),T=setTimeout(z,p),M(b)}return T===void 0&&(T=setTimeout(z,p)),P}return ie.cancel=H,ie.flush=K,ie}return wd=c,wd}var Cd,xb;function rT(){if(xb)return Cd;xb=1;var i=nT(),e=un(),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),i(s,l,{leading:u,maxWait:l,trailing:p})}return Cd=r,Cd}var iT=rT();const Db=Ye(iT);var _d={exports:{}};var Ob;function oT(){return Ob||(Ob=1,(function(i){(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}i.exports?(n.default=n,i.exports=n):window.classNames=n})()})(_d)),_d.exports}var sT=oT();const Q=Ye(sT);var kd={exports:{}},Pd,Ib;function aT(){if(Ib)return Pd;Ib=1;var i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pd=i,Pd}var Td,Rb;function lT(){if(Rb)return Td;Rb=1;var i=aT();function e(){}function n(){}return n.resetWarningCache=e,Td=function(){function r(c,u,p,f,y,v){if(v!==i){var S=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 S.name="Invariant Violation",S}}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},Td}var Nb;function Ah(){return Nb||(Nb=1,kd.exports=lT()()),kd.exports}var cT=Ah();const g=Ye(cT),Oe="semi",uT=["default","error","warning","success"];var dT=Yt();const pT=Ye(dT),al={PREFIX:`${Oe}-typography`},Ct={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 fT=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const hT=al.PREFIX;let ll=class extends E.PureComponent{render(){const e=this.props,{component:n,className:r,children:s,forwardRef:l}=e,c=fT(e,["component","className","children","forwardRef"]),u=n,p=Q(hT,r);return _.createElement(u,Object.assign({className:p,ref:l},c),s)}};ll.defaultProps={component:"article",style:{},className:""};ll.propTypes={component:g.string,style:g.object,className:g.string};var gT=tl();const Qt=Ye(gT);var Ed,jb;function mT(){if(jb)return Ed;jb=1;function i(e){return e===null}return Ed=i,Ed}var yT=mT();const vT=Ye(yT);var xd,Lb;function bT(){if(Lb)return xd;Lb=1;var i=$r(),e=Yt(),n=Pn(),r="[object String]";function s(l){return typeof l=="string"||!e(l)&&n(l)&&i(l)==r}return xd=s,xd}var ST=bT();const at=Ye(ST);var Dd,Ab;function wT(){if(Ab)return Dd;Ab=1;var i=il();function e(){this.__data__=new i,this.size=0}return Dd=e,Dd}var Od,Mb;function CT(){if(Mb)return Od;Mb=1;function i(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}return Od=i,Od}var Id,$b;function _T(){if($b)return Id;$b=1;function i(e){return this.__data__.get(e)}return Id=i,Id}var Rd,Fb;function kT(){if(Fb)return Rd;Fb=1;function i(e){return this.__data__.has(e)}return Rd=i,Rd}var Nd,zb;function PT(){if(zb)return Nd;zb=1;var i=il(),e=Ih(),n=Rh(),r=200;function s(l,c){var u=this.__data__;if(u instanceof i){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 Nd=s,Nd}var jd,qb;function Mh(){if(qb)return jd;qb=1;var i=il(),e=wT(),n=CT(),r=_T(),s=kT(),l=PT();function c(u){var p=this.__data__=new i(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,jd=c,jd}var Ld,Bb;function dC(){if(Bb)return Ld;Bb=1;var i=fi(),e=(function(){try{var n=i(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Ld=e,Ld}var Ad,Gb;function $h(){if(Gb)return Ad;Gb=1;var i=dC();function e(n,r,s){r=="__proto__"&&i?i(n,r,{configurable:!0,enumerable:!0,value:s,writable:!0}):n[r]=s}return Ad=e,Ad}var Md,Wb;function pC(){if(Wb)return Md;Wb=1;var i=$h(),e=hs();function n(r,s,l){(l!==void 0&&!e(r[s],l)||l===void 0&&!(s in r))&&i(r,s,l)}return Md=n,Md}var $d,Ub;function TT(){if(Ub)return $d;Ub=1;function i(e){return function(n,r,s){for(var l=-1,c=Object(n),u=s(n),p=u.length;p--;){var f=u[e?p:++l];if(r(c[f],f,c)===!1)break}return n}}return $d=i,$d}var Fd,Hb;function fC(){if(Hb)return Fd;Hb=1;var i=TT(),e=i();return Fd=e,Fd}var ns={exports:{}};ns.exports;var Vb;function hC(){return Vb||(Vb=1,(function(i,e){var n=kn(),r=e&&!e.nodeType&&e,s=r&&!0&&i&&!i.nodeType&&i,l=s&&s.exports===r,c=l?n.Buffer:void 0,u=c?c.allocUnsafe:void 0;function p(f,y){if(y)return f.slice();var v=f.length,S=u?u(v):new f.constructor(v);return f.copy(S),S}i.exports=p})(ns,ns.exports)),ns.exports}var zd,Kb;function gC(){if(Kb)return zd;Kb=1;var i=kn(),e=i.Uint8Array;return zd=e,zd}var qd,Qb;function Fh(){if(Qb)return qd;Qb=1;var i=gC();function e(n){var r=new n.constructor(n.byteLength);return new i(r).set(new i(n)),r}return qd=e,qd}var Bd,Yb;function mC(){if(Yb)return Bd;Yb=1;var i=Fh();function e(n,r){var s=r?i(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.length)}return Bd=e,Bd}var Gd,Xb;function yC(){if(Xb)return Gd;Xb=1;function i(e,n){var r=-1,s=e.length;for(n||(n=Array(s));++r<s;)n[r]=e[r];return n}return Gd=i,Gd}var Wd,Zb;function ET(){if(Zb)return Wd;Zb=1;var i=un(),e=Object.create,n=(function(){function r(){}return function(s){if(!i(s))return{};if(e)return e(s);r.prototype=s;var l=new r;return r.prototype=void 0,l}})();return Wd=n,Wd}var Ud,Jb;function vC(){if(Jb)return Ud;Jb=1;function i(e,n){return function(r){return e(n(r))}}return Ud=i,Ud}var Hd,e1;function zh(){if(e1)return Hd;e1=1;var i=vC(),e=i(Object.getPrototypeOf,Object);return Hd=e,Hd}var Vd,t1;function cl(){if(t1)return Vd;t1=1;var i=Object.prototype;function e(n){var r=n&&n.constructor,s=typeof r=="function"&&r.prototype||i;return n===s}return Vd=e,Vd}var Kd,n1;function bC(){if(n1)return Kd;n1=1;var i=ET(),e=zh(),n=cl();function r(s){return typeof s.constructor=="function"&&!n(s)?i(e(s)):{}}return Kd=r,Kd}var Qd,r1;function xT(){if(r1)return Qd;r1=1;var i=$r(),e=Pn(),n="[object Arguments]";function r(s){return e(s)&&i(s)==n}return Qd=r,Qd}var Yd,i1;function ul(){if(i1)return Yd;i1=1;var i=xT(),e=Pn(),n=Object.prototype,r=n.hasOwnProperty,s=n.propertyIsEnumerable,l=i((function(){return arguments})())?i:function(c){return e(c)&&r.call(c,"callee")&&!s.call(c,"callee")};return Yd=l,Yd}var Xd,o1;function SC(){if(o1)return Xd;o1=1;var i=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=i}return Xd=e,Xd}var Zd,s1;function Yi(){if(s1)return Zd;s1=1;var i=tl(),e=SC();function n(r){return r!=null&&e(r.length)&&!i(r)}return Zd=n,Zd}var Jd,a1;function wC(){if(a1)return Jd;a1=1;var i=Yi(),e=Pn();function n(r){return e(r)&&i(r)}return Jd=n,Jd}var rs={exports:{}},ep,l1;function DT(){if(l1)return ep;l1=1;function i(){return!1}return ep=i,ep}rs.exports;var c1;function gs(){return c1||(c1=1,(function(i,e){var n=kn(),r=DT(),s=e&&!e.nodeType&&e,l=s&&!0&&i&&!i.nodeType&&i,c=l&&l.exports===s,u=c?n.Buffer:void 0,p=u?u.isBuffer:void 0,f=p||r;i.exports=f})(rs,rs.exports)),rs.exports}var tp,u1;function CC(){if(u1)return tp;u1=1;var i=$r(),e=zh(),n=Pn(),r="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,p=c.call(Object);function f(y){if(!n(y)||i(y)!=r)return!1;var v=e(y);if(v===null)return!0;var S=u.call(v,"constructor")&&v.constructor;return typeof S=="function"&&S instanceof S&&c.call(S)==p}return tp=f,tp}var np,d1;function OT(){if(d1)return np;d1=1;var i=$r(),e=SC(),n=Pn(),r="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",p="[object Function]",f="[object Map]",y="[object Number]",v="[object Object]",S="[object RegExp]",P="[object Set]",T="[object String]",b="[object WeakMap]",w="[object ArrayBuffer]",D="[object DataView]",O="[object Float32Array]",N="[object Float64Array]",M="[object Int8Array]",F="[object Int16Array]",j="[object Int32Array]",L="[object Uint8Array]",z="[object Uint8ClampedArray]",U="[object Uint16Array]",H="[object Uint32Array]",K={};K[O]=K[N]=K[M]=K[F]=K[j]=K[L]=K[z]=K[U]=K[H]=!0,K[r]=K[s]=K[w]=K[l]=K[D]=K[c]=K[u]=K[p]=K[f]=K[y]=K[v]=K[S]=K[P]=K[T]=K[b]=!1;function ie(ee){return n(ee)&&e(ee.length)&&!!K[i(ee)]}return np=ie,np}var rp,p1;function dl(){if(p1)return rp;p1=1;function i(e){return function(n){return e(n)}}return rp=i,rp}var is={exports:{}};is.exports;var f1;function qh(){return f1||(f1=1,(function(i,e){var n=aC(),r=e&&!e.nodeType&&e,s=r&&!0&&i&&!i.nodeType&&i,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{}})();i.exports=u})(is,is.exports)),is.exports}var ip,h1;function pl(){if(h1)return ip;h1=1;var i=OT(),e=dl(),n=qh(),r=n&&n.isTypedArray,s=r?e(r):i;return ip=s,ip}var op,g1;function _C(){if(g1)return op;g1=1;function i(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}return op=i,op}var sp,m1;function Bh(){if(m1)return sp;m1=1;var i=$h(),e=hs(),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))&&i(l,c,u)}return sp=s,sp}var ap,y1;function Xi(){if(y1)return ap;y1=1;var i=Bh(),e=$h();function n(r,s,l,c){var u=!l;l||(l={});for(var p=-1,f=s.length;++p<f;){var y=s[p],v=c?c(l[y],r[y],y,l,r):void 0;v===void 0&&(v=r[y]),u?e(l,y,v):i(l,y,v)}return l}return ap=n,ap}var lp,v1;function IT(){if(v1)return lp;v1=1;function i(e,n){for(var r=-1,s=Array(e);++r<e;)s[r]=n(r);return s}return lp=i,lp}var cp,b1;function Gh(){if(b1)return cp;b1=1;var i=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(r,s){var l=typeof r;return s=s??i,!!s&&(l=="number"||l!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<s}return cp=n,cp}var up,S1;function kC(){if(S1)return up;S1=1;var i=IT(),e=ul(),n=Yt(),r=gs(),s=Gh(),l=pl(),c=Object.prototype,u=c.hasOwnProperty;function p(f,y){var v=n(f),S=!v&&e(f),P=!v&&!S&&r(f),T=!v&&!S&&!P&&l(f),b=v||S||P||T,w=b?i(f.length,String):[],D=w.length;for(var O in f)(y||u.call(f,O))&&!(b&&(O=="length"||P&&(O=="offset"||O=="parent")||T&&(O=="buffer"||O=="byteLength"||O=="byteOffset")||s(O,D)))&&w.push(O);return w}return up=p,up}var dp,w1;function RT(){if(w1)return dp;w1=1;function i(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}return dp=i,dp}var pp,C1;function NT(){if(C1)return pp;C1=1;var i=un(),e=cl(),n=RT(),r=Object.prototype,s=r.hasOwnProperty;function l(c){if(!i(c))return n(c);var u=e(c),p=[];for(var f in c)f=="constructor"&&(u||!s.call(c,f))||p.push(f);return p}return pp=l,pp}var fp,_1;function ms(){if(_1)return fp;_1=1;var i=kC(),e=NT(),n=Yi();function r(s){return n(s)?i(s,!0):e(s)}return fp=r,fp}var hp,k1;function jT(){if(k1)return hp;k1=1;var i=Xi(),e=ms();function n(r){return i(r,e(r))}return hp=n,hp}var gp,P1;function LT(){if(P1)return gp;P1=1;var i=pC(),e=hC(),n=mC(),r=yC(),s=bC(),l=ul(),c=Yt(),u=wC(),p=gs(),f=tl(),y=un(),v=CC(),S=pl(),P=_C(),T=jT();function b(w,D,O,N,M,F,j){var L=P(w,O),z=P(D,O),U=j.get(z);if(U){i(w,O,U);return}var H=F?F(L,z,O+"",w,D,j):void 0,K=H===void 0;if(K){var ie=c(z),ee=!ie&&p(z),ae=!ie&&!ee&&S(z);H=z,ie||ee||ae?c(L)?H=L:u(L)?H=r(L):ee?(K=!1,H=e(z,!0)):ae?(K=!1,H=n(z,!0)):H=[]:v(z)||l(z)?(H=L,l(L)?H=T(L):(!y(L)||f(L))&&(H=s(z))):K=!1}K&&(j.set(z,H),M(H,z,N,F,j),j.delete(z)),i(w,O,H)}return gp=b,gp}var mp,T1;function AT(){if(T1)return mp;T1=1;var i=Mh(),e=pC(),n=fC(),r=LT(),s=un(),l=ms(),c=_C();function u(p,f,y,v,S){p!==f&&n(f,function(P,T){if(S||(S=new i),s(P))r(p,f,T,y,u,v,S);else{var b=v?v(c(p,T),P,T+"",p,f,S):void 0;b===void 0&&(b=P),e(p,T,b)}},l)}return mp=u,mp}var yp,E1;function Wh(){if(E1)return yp;E1=1;function i(e){return e}return yp=i,yp}var vp,x1;function MT(){if(x1)return vp;x1=1;function i(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 vp=i,vp}var bp,D1;function PC(){if(D1)return bp;D1=1;var i=MT(),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),f=Array(p);++u<p;)f[u]=c[s+u];u=-1;for(var y=Array(s+1);++u<s;)y[u]=c[u];return y[s]=l(f),i(r,this,y)}}return bp=n,bp}var Sp,O1;function $T(){if(O1)return Sp;O1=1;function i(e){return function(){return e}}return Sp=i,Sp}var wp,I1;function FT(){if(I1)return wp;I1=1;var i=$T(),e=dC(),n=Wh(),r=e?function(s,l){return e(s,"toString",{configurable:!0,enumerable:!1,value:i(l),writable:!0})}:n;return wp=r,wp}var Cp,R1;function zT(){if(R1)return Cp;R1=1;var i=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>=i)return arguments[0]}else l=0;return s.apply(void 0,arguments)}}return Cp=r,Cp}var _p,N1;function TC(){if(N1)return _p;N1=1;var i=FT(),e=zT(),n=e(i);return _p=n,_p}var kp,j1;function EC(){if(j1)return kp;j1=1;var i=Wh(),e=PC(),n=TC();function r(s,l){return n(e(s,l,i),s+"")}return kp=r,kp}var Pp,L1;function qT(){if(L1)return Pp;L1=1;var i=hs(),e=Yi(),n=Gh(),r=un();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)?i(u[c],l):!1}return Pp=s,Pp}var Tp,A1;function BT(){if(A1)return Tp;A1=1;var i=EC(),e=qT();function n(r){return i(function(s,l){var c=-1,u=l.length,p=u>1?l[u-1]:void 0,f=u>2?l[2]:void 0;for(p=r.length>3&&typeof p=="function"?(u--,p):void 0,f&&e(l[0],l[1],f)&&(p=u<3?void 0:p,u=1),s=Object(s);++c<u;){var y=l[c];y&&r(s,y,c,p)}return s})}return Tp=n,Tp}var Ep,M1;function GT(){if(M1)return Ep;M1=1;var i=AT(),e=BT(),n=e(function(r,s,l){i(r,s,l)});return Ep=n,Ep}var WT=GT();const UT=Ye(WT);var xp,$1;function xC(){if($1)return xp;$1=1;function i(e,n){for(var r=-1,s=e==null?0:e.length;++r<s&&n(e[r],r,e)!==!1;);return e}return xp=i,xp}var Dp,F1;function HT(){if(F1)return Dp;F1=1;var i=vC(),e=i(Object.keys,Object);return Dp=e,Dp}var Op,z1;function DC(){if(z1)return Op;z1=1;var i=cl(),e=HT(),n=Object.prototype,r=n.hasOwnProperty;function s(l){if(!i(l))return e(l);var c=[];for(var u in Object(l))r.call(l,u)&&u!="constructor"&&c.push(u);return c}return Op=s,Op}var Ip,q1;function fl(){if(q1)return Ip;q1=1;var i=kC(),e=DC(),n=Yi();function r(s){return n(s)?i(s):e(s)}return Ip=r,Ip}var Rp,B1;function VT(){if(B1)return Rp;B1=1;var i=Xi(),e=fl();function n(r,s){return r&&i(s,e(s),r)}return Rp=n,Rp}var Np,G1;function KT(){if(G1)return Np;G1=1;var i=Xi(),e=ms();function n(r,s){return r&&i(s,e(s),r)}return Np=n,Np}var jp,W1;function QT(){if(W1)return jp;W1=1;function i(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 jp=i,jp}var Lp,U1;function OC(){if(U1)return Lp;U1=1;function i(){return[]}return Lp=i,Lp}var Ap,H1;function Uh(){if(H1)return Ap;H1=1;var i=QT(),e=OC(),n=Object.prototype,r=n.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(c){return c==null?[]:(c=Object(c),i(s(c),function(u){return r.call(c,u)}))}:e;return Ap=l,Ap}var Mp,V1;function YT(){if(V1)return Mp;V1=1;var i=Xi(),e=Uh();function n(r,s){return i(r,e(r),s)}return Mp=n,Mp}var $p,K1;function Hh(){if(K1)return $p;K1=1;function i(e,n){for(var r=-1,s=n.length,l=e.length;++r<s;)e[l+r]=n[r];return e}return $p=i,$p}var Fp,Q1;function IC(){if(Q1)return Fp;Q1=1;var i=Hh(),e=zh(),n=Uh(),r=OC(),s=Object.getOwnPropertySymbols,l=s?function(c){for(var u=[];c;)i(u,n(c)),c=e(c);return u}:r;return Fp=l,Fp}var zp,Y1;function XT(){if(Y1)return zp;Y1=1;var i=Xi(),e=IC();function n(r,s){return i(r,e(r),s)}return zp=n,zp}var qp,X1;function RC(){if(X1)return qp;X1=1;var i=Hh(),e=Yt();function n(r,s,l){var c=s(r);return e(r)?c:i(c,l(r))}return qp=n,qp}var Bp,Z1;function NC(){if(Z1)return Bp;Z1=1;var i=RC(),e=Uh(),n=fl();function r(s){return i(s,n,e)}return Bp=r,Bp}var Gp,J1;function jC(){if(J1)return Gp;J1=1;var i=RC(),e=IC(),n=ms();function r(s){return i(s,n,e)}return Gp=r,Gp}var Wp,eS;function ZT(){if(eS)return Wp;eS=1;var i=fi(),e=kn(),n=i(e,"DataView");return Wp=n,Wp}var Up,tS;function JT(){if(tS)return Up;tS=1;var i=fi(),e=kn(),n=i(e,"Promise");return Up=n,Up}var Hp,nS;function eE(){if(nS)return Hp;nS=1;var i=fi(),e=kn(),n=i(e,"Set");return Hp=n,Hp}var Vp,rS;function tE(){if(rS)return Vp;rS=1;var i=fi(),e=kn(),n=i(e,"WeakMap");return Vp=n,Vp}var Kp,iS;function ys(){if(iS)return Kp;iS=1;var i=ZT(),e=Ih(),n=JT(),r=eE(),s=tE(),l=$r(),c=lC(),u="[object Map]",p="[object Object]",f="[object Promise]",y="[object Set]",v="[object WeakMap]",S="[object DataView]",P=c(i),T=c(e),b=c(n),w=c(r),D=c(s),O=l;return(i&&O(new i(new ArrayBuffer(1)))!=S||e&&O(new e)!=u||n&&O(n.resolve())!=f||r&&O(new r)!=y||s&&O(new s)!=v)&&(O=function(N){var M=l(N),F=M==p?N.constructor:void 0,j=F?c(F):"";if(j)switch(j){case P:return S;case T:return u;case b:return f;case w:return y;case D:return v}return M}),Kp=O,Kp}var Qp,oS;function nE(){if(oS)return Qp;oS=1;var i=Object.prototype,e=i.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 Qp=n,Qp}var Yp,sS;function rE(){if(sS)return Yp;sS=1;var i=Fh();function e(n,r){var s=r?i(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.byteLength)}return Yp=e,Yp}var Xp,aS;function iE(){if(aS)return Xp;aS=1;var i=/\w*$/;function e(n){var r=new n.constructor(n.source,i.exec(n));return r.lastIndex=n.lastIndex,r}return Xp=e,Xp}var Zp,lS;function oE(){if(lS)return Zp;lS=1;var i=Qi(),e=i?i.prototype:void 0,n=e?e.valueOf:void 0;function r(s){return n?Object(n.call(s)):{}}return Zp=r,Zp}var Jp,cS;function sE(){if(cS)return Jp;cS=1;var i=Fh(),e=rE(),n=iE(),r=oE(),s=mC(),l="[object Boolean]",c="[object Date]",u="[object Map]",p="[object Number]",f="[object RegExp]",y="[object Set]",v="[object String]",S="[object Symbol]",P="[object ArrayBuffer]",T="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",D="[object Int8Array]",O="[object Int16Array]",N="[object Int32Array]",M="[object Uint8Array]",F="[object Uint8ClampedArray]",j="[object Uint16Array]",L="[object Uint32Array]";function z(U,H,K){var ie=U.constructor;switch(H){case P:return i(U);case l:case c:return new ie(+U);case T:return e(U,K);case b:case w:case D:case O:case N:case M:case F:case j:case L:return s(U,K);case u:return new ie;case p:case v:return new ie(U);case f:return n(U);case y:return new ie;case S:return r(U)}}return Jp=z,Jp}var ef,uS;function aE(){if(uS)return ef;uS=1;var i=ys(),e=Pn(),n="[object Map]";function r(s){return e(s)&&i(s)==n}return ef=r,ef}var tf,dS;function lE(){if(dS)return tf;dS=1;var i=aE(),e=dl(),n=qh(),r=n&&n.isMap,s=r?e(r):i;return tf=s,tf}var nf,pS;function cE(){if(pS)return nf;pS=1;var i=ys(),e=Pn(),n="[object Set]";function r(s){return e(s)&&i(s)==n}return nf=r,nf}var rf,fS;function uE(){if(fS)return rf;fS=1;var i=cE(),e=dl(),n=qh(),r=n&&n.isSet,s=r?e(r):i;return rf=s,rf}var of,hS;function LC(){if(hS)return of;hS=1;var i=Mh(),e=xC(),n=Bh(),r=VT(),s=KT(),l=hC(),c=yC(),u=YT(),p=XT(),f=NC(),y=jC(),v=ys(),S=nE(),P=sE(),T=bC(),b=Yt(),w=gs(),D=lE(),O=un(),N=uE(),M=fl(),F=ms(),j=1,L=2,z=4,U="[object Arguments]",H="[object Array]",K="[object Boolean]",ie="[object Date]",ee="[object Error]",ae="[object Function]",ne="[object GeneratorFunction]",ce="[object Map]",de="[object Number]",V="[object Object]",Y="[object RegExp]",I="[object Set]",W="[object String]",se="[object Symbol]",re="[object WeakMap]",oe="[object ArrayBuffer]",_e="[object DataView]",ye="[object Float32Array]",ve="[object Float64Array]",Ce="[object Int8Array]",be="[object Int16Array]",gt="[object Int32Array]",kt="[object Uint8Array]",ar="[object Uint8ClampedArray]",En="[object Uint16Array]",xn="[object Uint32Array]",Ne={};Ne[U]=Ne[H]=Ne[oe]=Ne[_e]=Ne[K]=Ne[ie]=Ne[ye]=Ne[ve]=Ne[Ce]=Ne[be]=Ne[gt]=Ne[ce]=Ne[de]=Ne[V]=Ne[Y]=Ne[I]=Ne[W]=Ne[se]=Ne[kt]=Ne[ar]=Ne[En]=Ne[xn]=!0,Ne[ee]=Ne[ae]=Ne[re]=!1;function Jt(xe,qt,Pt,$e,Ie,rt){var ze,Tt=qt&j,It=qt&L,Dn=qt&z;if(Pt&&(ze=Ie?Pt(xe,$e,Ie,rt):Pt(xe)),ze!==void 0)return ze;if(!O(xe))return xe;var en=b(xe);if(en){if(ze=S(xe),!Tt)return c(xe,ze)}else{var Ze=v(xe),Et=Ze==ae||Ze==ne;if(w(xe))return l(xe,Tt);if(Ze==V||Ze==U||Et&&!Ie){if(ze=It||Et?{}:T(xe),!Tt)return It?p(xe,s(ze,xe)):u(xe,r(ze,xe))}else{if(!Ne[Ze])return Ie?xe:{};ze=P(xe,Ze,Tt)}}rt||(rt=new i);var tn=rt.get(xe);if(tn)return tn;rt.set(xe,ze),N(xe)?xe.forEach(function(xt){ze.add(Jt(xt,qt,Pt,xt,xe,rt))}):D(xe)&&xe.forEach(function(xt,Bt){ze.set(Bt,Jt(xt,qt,Pt,Bt,xe,rt))});var pn=Dn?It?y:f:It?F:M,lr=en?void 0:pn(xe);return e(lr||xe,function(xt,Bt){lr&&(Bt=xt,xt=xe[Bt]),n(ze,Bt,Jt(xt,qt,Pt,Bt,xe,rt))}),ze}return of=Jt,of}var sf,gS;function dE(){if(gS)return sf;gS=1;function i(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}return sf=i,sf}var af,mS;function pE(){if(mS)return af;mS=1;function i(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 af=i,af}var lf,yS;function fE(){if(yS)return lf;yS=1;var i=cC(),e=pE();function n(r,s){return s.length<2?r:i(r,e(s,0,-1))}return lf=n,lf}var cf,vS;function hE(){if(vS)return cf;vS=1;var i=sl(),e=dE(),n=fE(),r=jh(),s=Object.prototype,l=s.hasOwnProperty;function c(u,p){p=i(p,u);var f=-1,y=p.length;if(!y)return!0;for(var v=u==null||typeof u!="object"&&typeof u!="function";++f<y;){var S=p[f];if(typeof S=="string"){if(S==="__proto__"&&!l.call(u,"__proto__"))return!1;if(S==="constructor"&&f+1<y&&typeof p[f+1]=="string"&&p[f+1]==="prototype"){if(v&&f===0)continue;return!1}}}var P=n(u,p);return P==null||delete P[r(e(p))]}return cf=c,cf}var uf,bS;function gE(){if(bS)return uf;bS=1;var i=CC();function e(n){return i(n)?void 0:n}return uf=e,uf}var df,SS;function mE(){if(SS)return df;SS=1;var i=Qi(),e=ul(),n=Yt(),r=i?i.isConcatSpreadable:void 0;function s(l){return n(l)||e(l)||!!(r&&l&&l[r])}return df=s,df}var pf,wS;function yE(){if(wS)return pf;wS=1;var i=Hh(),e=mE();function n(r,s,l,c,u){var p=-1,f=r.length;for(l||(l=e),u||(u=[]);++p<f;){var y=r[p];s>0&&l(y)?s>1?n(y,s-1,l,c,u):i(u,y):c||(u[u.length]=y)}return u}return pf=n,pf}var ff,CS;function vE(){if(CS)return ff;CS=1;var i=yE();function e(n){var r=n==null?0:n.length;return r?i(n,1):[]}return ff=e,ff}var hf,_S;function bE(){if(_S)return hf;_S=1;var i=vE(),e=PC(),n=TC();function r(s){return n(e(s,void 0,i),s+"")}return hf=r,hf}var gf,kS;function SE(){if(kS)return gf;kS=1;var i=Nh(),e=LC(),n=hE(),r=sl(),s=Xi(),l=gE(),c=bE(),u=jC(),p=1,f=2,y=4,v=c(function(S,P){var T={};if(S==null)return T;var b=!1;P=i(P,function(D){return D=r(D,S),b||(b=D.length>1),D}),s(S,u(S),T),b&&(T=e(T,p|f|y,l));for(var w=P.length;w--;)n(T,P[w]);return T});return gf=v,gf}var wE=SE();const hi=Ye(wE);var mf,PS;function CE(){if(PS)return mf;PS=1;function i(e){return e===void 0}return mf=i,mf}var _E=CE();const os=Ye(_E);var yf,TS;function kE(){if(TS)return yf;TS=1;var i="__lodash_hash_undefined__";function e(n){return this.__data__.set(n,i),this}return yf=e,yf}var vf,ES;function PE(){if(ES)return vf;ES=1;function i(e){return this.__data__.has(e)}return vf=i,vf}var bf,xS;function AC(){if(xS)return bf;xS=1;var i=Rh(),e=kE(),n=PE();function r(s){var l=-1,c=s==null?0:s.length;for(this.__data__=new i;++l<c;)this.add(s[l])}return r.prototype.add=r.prototype.push=e,r.prototype.has=n,bf=r,bf}var Sf,DS;function TE(){if(DS)return Sf;DS=1;function i(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 Sf=i,Sf}var wf,OS;function MC(){if(OS)return wf;OS=1;function i(e,n){return e.has(n)}return wf=i,wf}var Cf,IS;function $C(){if(IS)return Cf;IS=1;var i=AC(),e=TE(),n=MC(),r=1,s=2;function l(c,u,p,f,y,v){var S=p&r,P=c.length,T=u.length;if(P!=T&&!(S&&T>P))return!1;var b=v.get(c),w=v.get(u);if(b&&w)return b==u&&w==c;var D=-1,O=!0,N=p&s?new i:void 0;for(v.set(c,u),v.set(u,c);++D<P;){var M=c[D],F=u[D];if(f)var j=S?f(F,M,D,u,c,v):f(M,F,D,c,u,v);if(j!==void 0){if(j)continue;O=!1;break}if(N){if(!e(u,function(L,z){if(!n(N,z)&&(M===L||y(M,L,p,f,v)))return N.push(z)})){O=!1;break}}else if(!(M===F||y(M,F,p,f,v))){O=!1;break}}return v.delete(c),v.delete(u),O}return Cf=l,Cf}var _f,RS;function EE(){if(RS)return _f;RS=1;function i(e){var n=-1,r=Array(e.size);return e.forEach(function(s,l){r[++n]=[l,s]}),r}return _f=i,_f}var kf,NS;function xE(){if(NS)return kf;NS=1;function i(e){var n=-1,r=Array(e.size);return e.forEach(function(s){r[++n]=s}),r}return kf=i,kf}var Pf,jS;function DE(){if(jS)return Pf;jS=1;var i=Qi(),e=gC(),n=hs(),r=$C(),s=EE(),l=xE(),c=1,u=2,p="[object Boolean]",f="[object Date]",y="[object Error]",v="[object Map]",S="[object Number]",P="[object RegExp]",T="[object Set]",b="[object String]",w="[object Symbol]",D="[object ArrayBuffer]",O="[object DataView]",N=i?i.prototype:void 0,M=N?N.valueOf:void 0;function F(j,L,z,U,H,K,ie){switch(z){case O:if(j.byteLength!=L.byteLength||j.byteOffset!=L.byteOffset)return!1;j=j.buffer,L=L.buffer;case D:return!(j.byteLength!=L.byteLength||!K(new e(j),new e(L)));case p:case f:case S:return n(+j,+L);case y:return j.name==L.name&&j.message==L.message;case P:case b:return j==L+"";case v:var ee=s;case T:var ae=U&c;if(ee||(ee=l),j.size!=L.size&&!ae)return!1;var ne=ie.get(j);if(ne)return ne==L;U|=u,ie.set(j,L);var ce=r(ee(j),ee(L),U,H,K,ie);return ie.delete(j),ce;case w:if(M)return M.call(j)==M.call(L)}return!1}return Pf=F,Pf}var Tf,LS;function OE(){if(LS)return Tf;LS=1;var i=NC(),e=1,n=Object.prototype,r=n.hasOwnProperty;function s(l,c,u,p,f,y){var v=u&e,S=i(l),P=S.length,T=i(c),b=T.length;if(P!=b&&!v)return!1;for(var w=P;w--;){var D=S[w];if(!(v?D in c:r.call(c,D)))return!1}var O=y.get(l),N=y.get(c);if(O&&N)return O==c&&N==l;var M=!0;y.set(l,c),y.set(c,l);for(var F=v;++w<P;){D=S[w];var j=l[D],L=c[D];if(p)var z=v?p(L,j,D,c,l,y):p(j,L,D,l,c,y);if(!(z===void 0?j===L||f(j,L,u,p,y):z)){M=!1;break}F||(F=D=="constructor")}if(M&&!F){var U=l.constructor,H=c.constructor;U!=H&&"constructor"in l&&"constructor"in c&&!(typeof U=="function"&&U instanceof U&&typeof H=="function"&&H instanceof H)&&(M=!1)}return y.delete(l),y.delete(c),M}return Tf=s,Tf}var Ef,AS;function IE(){if(AS)return Ef;AS=1;var i=Mh(),e=$C(),n=DE(),r=OE(),s=ys(),l=Yt(),c=gs(),u=pl(),p=1,f="[object Arguments]",y="[object Array]",v="[object Object]",S=Object.prototype,P=S.hasOwnProperty;function T(b,w,D,O,N,M){var F=l(b),j=l(w),L=F?y:s(b),z=j?y:s(w);L=L==f?v:L,z=z==f?v:z;var U=L==v,H=z==v,K=L==z;if(K&&c(b)){if(!c(w))return!1;F=!0,U=!1}if(K&&!U)return M||(M=new i),F||u(b)?e(b,w,D,O,N,M):n(b,w,L,D,O,N,M);if(!(D&p)){var ie=U&&P.call(b,"__wrapped__"),ee=H&&P.call(w,"__wrapped__");if(ie||ee){var ae=ie?b.value():b,ne=ee?w.value():w;return M||(M=new i),N(ae,ne,D,O,M)}}return K?(M||(M=new i),r(b,w,D,O,N,M)):!1}return Ef=T,Ef}var xf,MS;function RE(){if(MS)return xf;MS=1;var i=IE(),e=Pn();function n(r,s,l,c,u){return r===s?!0:r==null||s==null||!e(r)&&!e(s)?r!==r&&s!==s:i(r,s,l,c,n,u)}return xf=n,xf}var Df,$S;function NE(){if($S)return Df;$S=1;var i=RE();function e(n,r){return i(n,r)}return Df=e,Df}var jE=NE();const Cn=Ye(jE);var Of,FS;function LE(){if(FS)return Of;FS=1;var i=DC(),e=ys(),n=ul(),r=Yt(),s=Yi(),l=gs(),c=cl(),u=pl(),p="[object Map]",f="[object Set]",y=Object.prototype,v=y.hasOwnProperty;function S(P){if(P==null)return!0;if(s(P)&&(r(P)||typeof P=="string"||typeof P.splice=="function"||l(P)||u(P)||n(P)))return!P.length;var T=e(P);if(T==p||T==f)return!P.size;if(c(P))return!i(P).length;for(var b in P)if(v.call(P,b))return!1;return!0}return Of=S,Of}var AE=LE();const Zn=Ye(AE);var If,zS;function ME(){if(zS)return If;zS=1;var i=fC(),e=fl();function n(r,s){return r&&i(r,s,e)}return If=n,If}var Rf,qS;function $E(){if(qS)return Rf;qS=1;var i=Yi();function e(n,r){return function(s,l){if(s==null)return s;if(!i(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 Rf=e,Rf}var Nf,BS;function FE(){if(BS)return Nf;BS=1;var i=ME(),e=$E(),n=e(i);return Nf=n,Nf}var jf,GS;function zE(){if(GS)return jf;GS=1;var i=Wh();function e(n){return typeof n=="function"?n:i}return jf=e,jf}var Lf,WS;function qE(){if(WS)return Lf;WS=1;var i=xC(),e=FE(),n=zE(),r=Yt();function s(l,c){var u=r(l)?i:e;return u(l,n(c))}return Lf=s,Lf}var Af,US;function BE(){return US||(US=1,Af=qE()),Af}var GE=BE();const WE=Ye(GE);var hl=sC();const Jn=Ye(hl);function jr(i,e){i&&console.warn(`Warning: ${e}`)}function gl(i){return i==null}let FC=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 gl(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 ai(i){try{return i instanceof HTMLElement}catch{return typeof i=="object"&&i.nodeType===1&&typeof i.style=="object"&&typeof i.ownerDocument=="object"}}function UE(i){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)i.appendChild(s);return i}function DH(i){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(i.children&&i.children.length){const s=i.children[0];for(const l of n)i.insertBefore(l,s)}else UE(i,...n);return i}function HE(i){if(i&&typeof i=="object")return typeof i.toJSON=="function"?i.toJSON():["left","top","right","bottom","width","height"].reduce((n,r)=>(n[r]=i[r],n),{})}function Ir(i){i.stopPropagation(),i.preventDefault()}function OH(i){return i.length===1&&i.match(/\S/)}function ml(i,e){for(let n=0;n<i.length;n++)i[n]===e?(i[n].tabIndex=0,i[n].focus()):i[n].tabIndex=-1}function IH(i){i.length>0&&ml(i,i[0])}function RH(i){i.length>0&&ml(i,i[i.length-1])}function NH(i,e){let n,r;i.length>0&&(e===i[0]?n=i[i.length-1]:(r=i.indexOf(e),n=i[r-1]),ml(i,n))}function jH(i,e){let n,r;i.length>0&&(e===i[i.length-1]?n=i[0]:(r=i.indexOf(e),n=i[r+1]),ml(i,n))}function LH(i,e,n,r){let s,l;return!i||!n||!r||r.length>1?-1:(r=r.toLowerCase(),s=i.indexOf(e)+1,s>=i.length&&(s=0),l=n.indexOf(r,s),l===-1&&(l=n.indexOf(r,0)),l>=0?l:-1)}function AH(i,e){if(!i)return null;for(;i.parentElement&&Te(i.parentElement,"attributes.role.value","")!==e;)i=i.parentElement;return i.parentElement}function MH(i,e){for(let n=0;n<i.length;n++){const r=i[n].attributes["data-popupid"];if(r&&r.value===e)return i[n]}return null}const Aa={TOP:/top/i,RIGHT:/right/i,BOTTOM:/bottom/i,LEFT:/left/i},zi={left:0,top:0,height:0,width:0,scrollLeft:0,scrollTop:0};let VE=class extends zt{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 f;const y=this._adapter.getTriggerDOM();s&&!(!((f=y?.matches)===null||f===void 0)&&f.call(y,":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({},zi),l=(Zn(l)?n._adapter.getPopupContainerRect():l)||Object.assign({},zi),s=(Zn(s)?n._adapter.getWrapperBounding():s)||Object.assign({},zi);let u=n.calcPosStyle({triggerRect:r,wrapperRect:s,containerRect:l}),p=n.getProp("position");if(n.getProp("autoAdjustOverflow")){const{position:f,isHeightOverFlow:y,isWidthOverFlow:v}=n.adjustPosIfNeed(p,u,r,s,l);(p!==f||y||v)&&(p=f,u=n.calcPosStyle({triggerRect:r,wrapperRect:s,containerRect:l,position:p,spacing:null,isOverFlow:[y,v]}))}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(Aa.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(Aa.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(Aa.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(Aa.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({},zi),u=(Zn(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},zi),p=(Zn(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},zi),f=e.position!=null?e.position:this.getProp("position"),y=r??this.getProp("spacing"),{arrowPointAtCenter:v,showArrow:S,arrowBounding:P}=this.getProps(),T=S&&v;let b=y,w=0;if(typeof y!="number"){const be=f.includes("top")||f.includes("bottom");b=be?y.y:y.x,w=be?y.x:y.y}const D=Te(P,"width",24),O=Te(P,"width",24),N=Te(P,"offsetY",0),M=6,F=6;let j,L,z=0,U=0;const H=c.left+c.width/2,K=c.top+c.height/2,ie=M+D/2,ee=F+O/2,ae=p.height-u.height,ne=p.width-u.width,ce=ae>0?ae:0,de=ne>0?ne:0,V=s&&s[0],Y=s&&s[1],I=H-u.left<u.right-H,W=K-u.top<u.bottom-K,se=p.width>l,re=Math.abs(p?.width-((n=this._adapter.getContainer())===null||n===void 0?void 0:n.clientWidth))>1;switch(re&&(b=b*p.width/this._adapter.getContainer().clientWidth),f){case"top":j=Y?I?u.left+p.width/2:u.right-p.width/2+de:H+w,L=V?u.bottom+ce:c.top-b,z=-.5,U=-1;break;case"topLeft":j=Y?se?u.left:u.right-p.width:T?H-ie+w:c.left+w,L=V?u.bottom+ce:c.top-b,U=-1;break;case"topRight":j=Y?u.right+de:T?H+ie+w:c.right+w,L=V?u.bottom+ce:c.top-b,U=-1,z=-1;break;case"left":j=Y?u.right+de-b+ie:c.left-b,L=V?W?u.top+p.height/2:u.bottom-p.height/2+ce:K+w,z=-1,U=-.5;break;case"leftTop":j=Y?u.right+de-b+ie:c.left-b,L=V?u.top:T?K-ee+w:c.top+w,z=-1;break;case"leftBottom":j=Y?u.right+de-b+ie:c.left-b,L=V?u.bottom+ce:T?K+ee+w:c.bottom+w,z=-1,U=-1;break;case"bottom":j=Y?I?u.left+p.width/2:u.right-p.width/2+de:H+w,L=V?u.top+ee-b:c.top+c.height+b,z=-.5;break;case"bottomLeft":j=Y?se?u.left:u.right-p.width:T?H-ie+w:c.left+w,L=V?u.top+ee-b:c.top+c.height+b;break;case"bottomRight":j=Y?u.right+de:T?H+ie+w:c.right+w,L=V?u.top+ee-b:c.top+c.height+b,z=-1;break;case"right":j=Y?u.left-b+ie:c.right+b,L=V?W?u.top+p.height/2:u.bottom-p.height/2+ce:K+w,U=-.5;break;case"rightTop":j=Y?u.left-b+ie:c.right+b,L=V?u.top:T?K-ee+w:c.top+w;break;case"rightBottom":j=Y?u.left-b+ie:c.right+b,L=V?u.bottom+ce:T?K+ee+w:c.bottom+w,U=-1;break;case"leftTopOver":j=c.left-b,L=c.top-b;break;case"rightTopOver":j=c.right+b,L=c.top-b,z=-1;break;case"leftBottomOver":j=c.left-b,L=c.bottom+b,U=-1;break;case"rightBottomOver":j=c.right+b,L=c.bottom+b,z=-1,U=-1;break}const oe=this.calcTransformOrigin(f,c,z,U),_e=this._adapter.containerIsBody();if(j=j-u.left,L=L-u.top,re&&(j/=p.width/this._adapter.getContainer().clientWidth),re&&(L/=p.height/this._adapter.getContainer().clientHeight),_e&&!this._adapter.containerIsRelativeOrAbsolute()){const be=this._adapter.getDocumentElementBounding();j+=u.left-be.left,L+=u.top-be.top}j=_e?j:j+u.scrollLeft,L=_e?L:L+u.scrollTop;const ye=c.height;if(this.getProp("showArrow")&&!v&&ye<=(O/2+N)*2){const be=ye/2-(N+O/2);(f.includes("Top")||f.includes("Bottom"))&&!f.includes("Over")&&(L=f.includes("Top")?L+be:L-be)}const ve={left:this._roundPixel(j),top:this._roundPixel(L)};let Ce="";return z!=null&&(Ce+=`translateX(${z*100}%) `,Object.defineProperty(ve,"translateX",{enumerable:!1,value:z})),U!=null&&(Ce+=`translateY(${U*100}%) `,Object.defineProperty(ve,"translateY",{enumerable:!1,value:U})),oe!=null&&(ve.transformOrigin=oe),Ce&&(ve.transform=Ce),ve}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(),f=typeof p=="number"?p:p.marginLeft,y=typeof p=="number"?p:p.marginTop,v=typeof p=="number"?p:p.marginRight,S=typeof p=="number"?p:p.marginBottom;let P=!1,T=!1;const b=this.getProp("spacing");let w=b,D=0;if(typeof b!="number"){const O=e.includes("top")||e.includes("bottom");w=O?b.y:b.x,D=O?b.x:b.y}if(s.width>0&&s.height>0){const O=r.left,N=r.right,M=r.top,F=r.bottom,j=c-O,L=u-M,z=c-N,U=u-F,H=s.width>r.width,K=s.height>r.height,ie=M-y<s.height+w&&U-S>s.height+w,ee=O-f<s.width+w&&z-v>s.width+w,ae=U-S<s.height+w&&M-y>s.height+w,ne=z-v<s.width+w&&O-f>s.width+w;L-S<s.height+w&&F-y>s.height+w,F-y<s.height+w&&L-S>s.height+w;const ce=L<s.height+D&&F>s.height+D,de=F<s.height+D&&L>s.height+D,V=j<s.width+D&&N>s.width+D,Y=N<s.width+D&&j>s.width+D,I=L<s.height+w&&F>s.height+w,W=F<s.height+w&&L>s.height+w,se=j<s.width&&N>s.width,re=N<s.width&&j>s.width,oe=M-l.top,_e=O-l.left,ye=oe+r.height,ve=_e+r.width,Ce=l.bottom-F,be=l.right-N,gt=Ce+r.height,kt=be+r.width,ar=this.isReverse(oe-y,Ce-S,s.height+w),En=this.isReverse(_e-f,be-v,s.width+w),xn=this.isReverse(Ce-S,oe-y,s.height+w),Ne=this.isReverse(be-v,_e-f,s.width+w);this.isReverse(gt-S,ye-y,s.height+w),this.isReverse(ye-y,gt-S,s.height+w);const Jt=this.isReverse(gt,ye,s.height+D),xe=this.isReverse(ye,gt,s.height+D),qt=this.isReverse(kt,ve,s.width+D),Pt=this.isReverse(ve,kt,s.width+D),$e=r.height/2,Ie=r.width/2,rt=this.isOverFlow(M-y,U-S,s.height+w),ze=this.isOverFlow(O-f,z-v,s.width+w),Tt=this.isOverFlow(F-y,L-S,s.height+w),It=this.isOverFlow(N-f,j-v,s.width+w),Dn=this.isHalfOverFlow(F-$e,L-$e,(s.height+D)/2),en=this.isHalfOverFlow(N-Ie,j-Ie,(s.width+D)/2),Ze=this.isHalfAllEnough(F-$e,L-$e,(s.height+D)/2),Et=this.isHalfAllEnough(N-Ie,j-Ie,(s.width+D)/2),tn=this.isOverFlow(oe-y,Ce-S,s.height+w),pn=this.isOverFlow(_e-f,be-v,s.width+w),lr=this.isOverFlow(ye-y,gt-S,s.height+w),xt=this.isOverFlow(ve-f,kt-v,s.width+w),Bt=this.isHalfOverFlow(ye-$e,gt-$e,(s.height+D)/2),Ts=this.isHalfOverFlow(ve-Ie,kt-Ie,(s.width+D)/2),cr=this.isHalfAllEnough(ye-$e,gt-$e,(s.height+D)/2),ur=this.isHalfAllEnough(ve-Ie,kt-Ie,(s.width+D)/2),Fr=this.getReverse(rt,tn,ie,ar),zr=this.getReverse(ze,pn,ee,En),qr=this.getReverse(rt,tn,ae,xn),On=this.getReverse(ze,pn,ne,Ne),Gt=this.getReverse(Tt,lr,ce,Jt),Br=this.getReverse(Tt,lr,de,xe),Gn=this.getReverse(It,xt,V,qt),Gr=this.getReverse(It,xt,Y,Pt),io=Dn&&Bt,oo=en&&Ts;switch(e){case"top":Fr&&(e=this._adjustPos(e,!0)),oo&&(Gn||Gr)&&(e=this._adjustPos(e,!0,"expand",Gn?"Right":"Left"));break;case"topLeft":Fr&&(e=this._adjustPos(e,!0)),Gn&&H&&(e=this._adjustPos(e)),T&&(Et||ur)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Fr&&(e=this._adjustPos(e,!0)),Gr&&H&&(e=this._adjustPos(e)),T&&(Et||ur)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":zr&&(e=this._adjustPos(e)),io&&(Gt||Br)&&(e=this._adjustPos(e,!1,"expand",Gt?"Bottom":"Top"));break;case"leftTop":zr&&(e=this._adjustPos(e)),Gt&&K&&(e=this._adjustPos(e,!0)),P&&(Ze||cr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":zr&&(e=this._adjustPos(e)),Br&&K&&(e=this._adjustPos(e,!0)),P&&(Ze||cr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":qr&&(e=this._adjustPos(e,!0)),oo&&(Gn||Gr)&&(e=this._adjustPos(e,!0,"expand",Gn?"Right":"Left"));break;case"bottomLeft":qr&&(e=this._adjustPos(e,!0)),Gn&&H&&(e=this._adjustPos(e)),T&&(Et||ur)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":qr&&(e=this._adjustPos(e,!0)),Gr&&H&&(e=this._adjustPos(e)),T&&(Et||ur)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":On&&(e=this._adjustPos(e)),io&&(Gt||Br)&&(e=this._adjustPos(e,!1,"expand",Gt?"Bottom":"Top"));break;case"rightTop":On&&(e=this._adjustPos(e)),Gt&&K&&(e=this._adjustPos(e,!0)),P&&(Ze||cr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":On&&(e=this._adjustPos(e)),Br&&K&&(e=this._adjustPos(e,!0)),P&&(Ze||cr)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":I&&(e=this._adjustPos(e,!0)),se&&(e=this._adjustPos(e));break;case"leftBottomOver":W&&(e=this._adjustPos(e,!0)),se&&(e=this._adjustPos(e));break;case"rightTopOver":I&&(e=this._adjustPos(e,!0)),re&&(e=this._adjustPos(e));break;case"rightBottomOver":W&&(e=this._adjustPos(e,!0)),re&&(e=this._adjustPos(e));break}this.isTB(e)&&(P=rt&&tn,e==="top"||e==="bottom"?T=en&&Ts||N<0||z<0:T=It&&xt||N<0||z<0),this.isLR(e)&&(T=ze&&pn,e==="left"||e==="right"?P=Dn&&Bt||M<0||L<0:P=Tt&&lr||M<0||L<0)}return{position:e,isHeightOverFlow:P,isWidthOverFlow:T}}_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":Ir(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 KE={PREFIX:`${Oe}-tooltip`},Wi={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"},oi={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 Ka(i){return`${i}-${new Date().getTime()}-${Math.random()}`}function FH(){var i,e;try{return(e=(i=crypto==null?void 0:crypto.randomUUID)===null||i===void 0?void 0:i.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 Ka("semi")}}function cs(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:n=7}=i,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 Mf,HS;function QE(){if(HS)return Mf;HS=1;var i=Bh(),e=sl(),n=Gh(),r=un(),s=jh();function l(c,u,p,f){if(!r(c))return c;u=e(u,c);for(var y=-1,v=u.length,S=v-1,P=c;P!=null&&++y<v;){var T=s(u[y]),b=p;if(T==="__proto__"||T==="constructor"||T==="prototype")return c;if(y!=S){var w=P[T];b=f?f(w,T,P):void 0,b===void 0&&(b=r(w)?w:n(u[y+1])?[]:{})}i(P,T,b),P=P[T]}return c}return Mf=l,Mf}var $f,VS;function YE(){if(VS)return $f;VS=1;var i=QE();function e(n,r,s){return n==null?n:i(n,r,s)}return $f=e,$f}var XE=YE();const zC=Ye(XE);var Ff,KS;function ZE(){if(KS)return Ff;KS=1;var i=LC(),e=1,n=4;function r(s,l){return l=typeof l=="function"?l:void 0,i(s,e|n,l)}return Ff=r,Ff}var JE=ZE();const ex=Ye(JE);class tx{constructor(){this.config={}}}const qa=new tx;var QS=function(i,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(y){try{f(r.next(y))}catch(v){c(v)}}function p(y){try{f(r.throw(y))}catch(v){c(v)}}function f(y){y.done?l(y.value):s(y.value).then(u,p)}f((r=r.apply(i,e||[])).next())})};function Ma(i,e){i&&typeof i.stopPropagation=="function"&&i.stopPropagation(),i.nativeEvent&&typeof i.nativeEvent.stopImmediatePropagation=="function"&&i.nativeEvent.stopImmediatePropagation()}function zH(i,e){return ex(i,n=>{if(typeof e=="function")return e(n);if(typeof n=="function"||_.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=>{zC(s,l,n[l])});try{jr(Te(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 qH=(i,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(i);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=i=>_.isValidElement(i)&&Te(i.type,"elementType")==="Icon";function qC(){return document?document.activeElement:null}function BC(i){if(!ai(i))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(i.querySelectorAll(n))}function Vh(i,e){return QS(this,void 0,void 0,function*(){if(e===0){yield i();return}else{yield new Promise(n=>{setTimeout(()=>QS(this,void 0,void 0,function*(){yield Vh(i,e-1),n()}),0)});return}})}function nx(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}function or(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=()=>{var r,s;return((s=(r=qa?.config)===null||r===void 0?void 0:r.overrideDefaultProps)===null||s===void 0?void 0:s[i])||{}};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 Bn=_.createContext({}),rx=()=>document.body;class vs extends E.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 y=(r.props.getPopupContainer||s.getPopupContainer||rx)();return y.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,s,r.props.className),p=y,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),f=2;f<u;f++)p[f-2]=arguments[f];const y=Q(s,...p,{[`${s}-rtl`]:c==="rtl"});r.el&&(r.el.className=y)},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?hl.createPortal(n.children,this.el):null}}vs.contextType=Bn;vs.defaultProps={prefixCls:`${Oe}-portal`};vs.propTypes={children:g.node,prefixCls:g.string,getPopupContainer:g.func,className:g.string,didUpdate:g.func};var ix=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const ox=i=>{const{className:e,style:n}=i,r=ix(i,["className","style"]);return _.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"}),_.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 sx=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const ax=i=>{const{className:e,style:n}=i,r=sx(i,["className","style"]);return _.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"}),_.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"}))},lx=g.shape({offsetX:g.number,offsetY:g.number,width:g.number,height:g.number});class us extends _.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})}}us.defaultProps={motion:!0,replayKey:""};var YS=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const Ba=KE.PREFIX,cx=Wi.POSITION_SET,ux=Wi.TRIGGER_SET,dx=["flex","block","table","flow-root","grid"],px=()=>document.body;class rr extends _t{constructor(e){super(e),this.isAnimating=!1,this.cachedLatestTransitionState="enter",this.setContainerEl=n=>this.containerEl={current:n},this.isSpecial=n=>{if(ai(n))return!!n.disabled;if(E.isValidElement(n)){if(Te(n,"props.disabled"))return Wi.STATUS_DISABLED;const s=Te(n,"props.loading"),l=!Zn(n)&&!Zn(n.type)&&(Te(n,"type.elementType")==="Button"||Te(n,"type.elementType")==="IconButton");if(s&&l)return Wi.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=Q([`${s}-icon-arrow`]),p=Te(l,"backgroundColor"),f=n?.includes("left")||n?.includes("right")?_.createElement(ax,null):_.createElement(ox,null);return r&&(E.isValidElement(r)?c=r:c=_.cloneElement(f,{className:u,style:{color:p,fill:"currentColor"}})),c},this.handlePortalInnerClick=n=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&Ma(n)},this.handlePortalMouseDown=n=>{this.props.stopPropagation&&Ma(n)},this.handlePortalFocus=n=>{this.props.stopPropagation&&Ma(n)},this.handlePortalBlur=n=>{this.props.stopPropagation&&Ma(n)},this.handlePortalInnerKeyDown=n=>{this.foundation.handleContainerKeydown(n)},this.renderContentNode=n=>{const r={initialFocusRef:this.initialFocusRef};return Qt(n)?n(r):n},this.renderPortal=()=>{const{containerStyle:n={},visible:r,portalEventSet:s,placement:l,displayNone:c,transitionState:u,id:p,isPositionUpdated:f}=this.state,{prefixCls:y,content:v,showArrow:S,style:P,motion:T,role:b,zIndex:w}=this.props,D=this.renderContentNode(v),{className:O}=this.props,N=this.context.direction,M=Q(O,{[`${y}-wrapper`]:!0,[`${y}-wrapper-show`]:r,[`${y}-with-arrow`]:!!S,[`${y}-rtl`]:N==="rtl"}),F=this.renderIcon(),j=hi(n,T?["transformOrigin"]:void 0),L=Te(n,"transformOrigin"),z=Te(P,"opacity",null),U=z||1,H=_.createElement(us,{fillMode:"forwards",animationState:u,motion:T&&f,startClassName:u==="enter"?`${Ba}-animation-show`:`${Ba}-animation-hide`,onAnimationStart:()=>this.isAnimating=!0,onAnimationEnd:()=>{var K,ie;u==="leave"&&(this.didLeave(),(ie=(K=this.props).afterClose)===null||ie===void 0||ie.call(K)),this.isAnimating=!1}},K=>{let{animationStyle:ie,animationClassName:ee,animationEventsNeedBind:ae}=K;return _.createElement("div",Object.assign({className:Q(M,ee),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ie),c?{display:"none"}:{}),{transformOrigin:L}),P),z?{opacity:f?U:"0"}:{})},s,ae,{role:b,"x-placement":l,id:p}),_.createElement("div",{className:`${Ba}-content`},D),F)});return _.createElement(vs,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:w}},_.createElement("div",{tabIndex:-1,className:`${Oe}-portal-inner`,style:j,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},H))},this.wrapSpan=n=>{const{wrapperClassName:r}=this.props,s=Te(n,"props.style.display"),l=Te(n,"props.block"),c=typeof n=="string",u={};return c||(u.display="inline-block"),(l||dx.includes(s))&&(u.width="100%"),_.createElement("span",{className:r,style:u},n)},this.mergeEvents=(n,r)=>{const s={};return WE(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 VE(this.adapter),this.eventManager=new FC,this.triggerEl=_.createRef(),this.containerEl=_.createRef(),this.initialFocusRef=_.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=YS(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&&ai(n)){const s=HE(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=YS(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=Db(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=Db(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&&ai(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 ai(this.triggerEl.current)||(n=Jn.findDOMNode(this.triggerEl.current)),n},getFocusableElements:n=>BC(n),getActiveElement:()=>qC(),setInitialFocus:()=>{const{preventScroll:n}=this.props,r=Te(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:n})},notifyEscKeydown:n=>{this.props.onEscKeyDown(n)},setId:()=>{this.setState({id:cs()})},getTriggerDOM:()=>this.triggerEl.current?Jn.findDOMNode(this.triggerEl.current):null})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||px,this.foundation.init(),Vh(()=>{let e=this.triggerEl.current;e&&(e instanceof HTMLElement||(e=hl.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){jr(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 f=Object.assign({},Te(p,"props.style")),y={};if(l){const P=this.isSpecial(p);P?(f.pointerEvents="none",P===Wi.STATUS_DISABLED&&(y.cursor="not-allowed"),p=E.cloneElement(p,{style:f}),u!=="custom"&&(p=this.wrapSpan(p)),this.isWrapped=!0):E.isValidElement(p)||(p=this.wrapSpan(p),this.isWrapped=!0)}let v={};c==="dialog"?(v["aria-expanded"]=r?"true":"false",v["aria-haspopup"]="dialog",v["aria-controls"]=s):v["aria-describedby"]=s;const S=_.cloneElement(p,Object.assign(Object.assign(Object.assign(Object.assign({},v),p.props),this.mergeEvents(p.props,n)),{style:Object.assign(Object.assign({},Te(p,"props.style")),y),className:Q(Te(p,"props.className")),ref:P=>{this.triggerEl.current=P;const{ref:T}=p;typeof T=="function"?T(P):T&&typeof T=="object"&&(T.current=P)},tabIndex:p.props.tabIndex||0,"data-popupid":s}));return _.createElement(_.Fragment,null,e?this.renderPortal():null,S)}}rr.contextType=Bn;rr.propTypes={children:g.node,motion:g.bool,autoAdjustOverflow:g.bool,position:g.oneOf(cx),getPopupContainer:g.func,mouseEnterDelay:g.number,mouseLeaveDelay:g.number,trigger:g.oneOf(ux).isRequired,className:g.string,wrapperClassName:g.string,clickToHide:g.bool,clickTriggerToHide:g.bool,visible:g.bool,style:g.object,content:g.oneOfType([g.node,g.func]),prefixCls:g.string,onVisibleChange:g.func,onClickOutSide:g.func,spacing:g.oneOfType([g.number,g.object]),margin:g.oneOfType([g.number,g.object]),showArrow:g.oneOfType([g.bool,g.node]),zIndex:g.number,rePosKey:g.oneOfType([g.string,g.number]),arrowBounding:lx,transformFromCenter:g.bool,arrowPointAtCenter:g.bool,stopPropagation:g.bool,role:g.string,wrapWhenSpecial:g.bool,guardFocus:g.bool,returnFocusOnClose:g.bool,preventScroll:g.bool,keepDOM:g.bool};rr.__SemiComponentName__="Tooltip";rr.defaultProps=or(rr.__SemiComponentName__,{arrowBounding:oi.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Ba,role:"tooltip",mouseEnterDelay:oi.MOUSE_ENTER_DELAY,mouseLeaveDelay:oi.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:me,onClickOutSide:me,spacing:oi.SPACING,margin:oi.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:oi.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:me,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1});var $a={exports:{}},XS;function fx(){if(XS)return $a.exports;XS=1;const i=(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 $a.exports=i,$a.exports.default=i,$a.exports}var hx=fx();const gx=Ye(hx);function er(){}const mx=_.createContext(null);function zf(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):i.defaultWidth,r=i.formats[n]||i.formats[i.defaultWidth];return r}}function Wo(i){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",s;if(r==="formatting"&&i.formattingValues){var l=i.defaultFormattingWidth||i.defaultWidth,c=n!=null&&n.width?String(n.width):l;s=i.formattingValues[c]||i.formattingValues[l]}else{var u=i.defaultWidth,p=n!=null&&n.width?String(n.width):i.defaultWidth;s=i.values[p]||i.values[u]}var f=i.argumentCallback?i.argumentCallback(e):e;return s[f]}}function Uo(i){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,s=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],l=e.match(s);if(!l)return null;var c=l[0],u=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],p=Array.isArray(u)?vx(u,function(v){return v.test(c)}):yx(u,function(v){return v.test(c)}),f;f=i.valueCallback?i.valueCallback(p):p,f=n.valueCallback?n.valueCallback(f):f;var y=e.slice(c.length);return{value:f,rest:y}}}function yx(i,e){for(var n in i)if(i.hasOwnProperty(n)&&e(i[n]))return n}function vx(i,e){for(var n=0;n<i.length;n++)if(e(i[n]))return n}function bx(i){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var s=r[0],l=e.match(i.parsePattern);if(!l)return null;var c=i.valueCallback?i.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(i){"@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(i)}function Sx(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Kh(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function wx(i){Kh(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||Ch(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="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 Cx={};function _x(){return Cx}function ZS(i,e){var n,r,s,l,c,u,p,f;Kh(1,arguments);var y=_x(),v=Sx((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:y.weekStartsOn)!==null&&r!==void 0?r:(p=y.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&n!==void 0?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=wx(i),P=S.getUTCDay(),T=(P<v?7:0)+P-v;return S.setUTCDate(S.getUTCDate()-T),S.setUTCHours(0,0,0,0),S}function JS(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function _h(i,e){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},_h(i,e)}function kx(i,e,n){Kh(2,arguments);var r=ZS(i,n),s=ZS(e,n);return r.getTime()===s.getTime()}var Px={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}} 年"}},Tx=function(e,n,r){var s,l=Px[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},Ex={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},xx={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Dx={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Ox={date:zf({formats:Ex,defaultWidth:"full"}),time:zf({formats:xx,defaultWidth:"full"}),dateTime:zf({formats:Dx,defaultWidth:"full"})};function ew(i,e,n){var r="eeee p";return kx(i,e,n)?r:i.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var Ix={lastWeek:ew,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:ew,other:"PP p"},Rx=function(e,n,r,s){var l=Ix[e];return typeof l=="function"?l(n,r,s):l},Nx={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},jx={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},Lx={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Ax={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Mx={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:"夜间"}},$x={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:"夜间"}},Fx=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()}},zx={ordinalNumber:Fx,era:Wo({values:Nx,defaultWidth:"wide"}),quarter:Wo({values:jx,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Wo({values:Lx,defaultWidth:"wide"}),day:Wo({values:Ax,defaultWidth:"wide"}),dayPeriod:Wo({values:Mx,defaultWidth:"wide",formattingValues:$x,defaultFormattingWidth:"wide"})},qx=/^(第\s*)?\d+(日|时|分|秒)?/i,Bx=/\d+/i,Gx={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Wx={any:[/^(前)/i,/^(公元)/i]},Ux={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Hx={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Vx={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Kx={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]},Qx={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Yx={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Xx={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Zx={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Jx={ordinalNumber:bx({matchPattern:qx,parsePattern:Bx,valueCallback:function(e){return parseInt(e,10)}}),era:Uo({matchPatterns:Gx,defaultMatchWidth:"wide",parsePatterns:Wx,defaultParseWidth:"any"}),quarter:Uo({matchPatterns:Ux,defaultMatchWidth:"wide",parsePatterns:Hx,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Uo({matchPatterns:Vx,defaultMatchWidth:"wide",parsePatterns:Kx,defaultParseWidth:"any"}),day:Uo({matchPatterns:Qx,defaultMatchWidth:"wide",parsePatterns:Yx,defaultParseWidth:"any"}),dayPeriod:Uo({matchPatterns:Xx,defaultMatchWidth:"any",parsePatterns:Zx,defaultParseWidth:"any"})},eD={code:"zh-CN",formatDistance:Tx,formatLong:Ox,formatRelative:Rx,localize:zx,match:Jx,options:{weekStartsOn:1,firstWeekContainsDate:4}};const kh={code:"zh-CN",currency:"CNY",dateFnsLocale:eD,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 Lr extends E.Component{renderChildren(e,n){const{componentName:r}=this.props;let s=e;e?.code||(s=kh);const l=Te(kh,"dateFnsLocale"),c=Te(s,"dateFnsLocale",l),u=Te(s,"currency");return n(s[r],s.code,c,u)}render(){const{children:e}=this.props;return _.createElement(Bn.Consumer,null,n=>{let{locale:r}=n;return _.createElement(mx.Consumer,null,s=>this.renderChildren(r||s,e))})}}Lr.propTypes={componentName:g.string.isRequired,children:g.any};Lr.defaultProps={componentName:""};const tD="semi";var nD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const GC=_.forwardRef((i,e)=>{const{svg:n,spin:r=!1,rotate:s,style:l,className:c,prefixCls:u=tD,type:p,size:f="default"}=i,y=nD(i,["svg","spin","rotate","style","className","prefixCls","type","size"]),v=Q(`${u}-icon`,{[`${u}-icon-extra-small`]:f==="extra-small",[`${u}-icon-small`]:f==="small",[`${u}-icon-default`]:f==="default",[`${u}-icon-large`]:f==="large",[`${u}-icon-extra-large`]:f==="extra-large",[`${u}-icon-spinning`]:r===!0,[`${u}-icon-${p}`]:!!p},c),S={};return Number.isSafeInteger(s)&&(S.transform=`rotate(${s}deg)`),Object.assign(S,l),_.createElement("span",Object.assign({role:"img",ref:e,"aria-label":p,className:v,style:S},y),n)});GC.elementType="Icon";const Xt=(i,e)=>{const n=_.forwardRef((r,s)=>_.createElement(GC,Object.assign({svg:_.createElement(i),type:e,ref:s},r)));return n.elementType="Icon",n};function rD(i){return E.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},i),E.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=Xt(rD,"alert_circle");function iD(i){return E.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},i),E.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 Yh=Xt(iD,"alert_triangle");function oD(i){return E.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},i),E.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 sD=Xt(oD,"chevron_down");function aD(i){return E.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},i),E.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 WC=Xt(aD,"clear");function lD(i){return E.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},i),E.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 Xh=Xt(lD,"close");function cD(i){return E.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},i),E.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"}),E.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 uD=Xt(cD,"copy");function dD(i){return E.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},i),E.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"}),E.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 pD=Xt(dD,"eye_closed_solid");function fD(i){return E.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},i),E.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 hD=Xt(fD,"eye_opened");function gD(i){return E.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},i),E.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 mD=Xt(gD,"help_circle");function yD(i){return E.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},i),E.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 Zh=Xt(yD,"info_circle");function vD(i){return E.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},i),E.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 bD=Xt(vD,"search");function SD(i){return E.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},i),E.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 UC=Xt(SD,"tick");function wD(i){return E.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},i),E.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 HC=Xt(wD,"tick_circle"),Or={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,UP:38,DOWN:40},Jh="Enter",BH="Escape";function eg(i){return Te(i,"key")===Jh}const qf=al.PREFIX;class tg extends _.PureComponent{constructor(e){super(e),this.copy=n=>{const{content:r,duration:s,onCopy:l}=this.props,c=gx(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:_.createElement(Lr,{componentName:"Typography"},r=>_.createElement("span",null,_.createElement(UC,null),r.copied))},this.renderCopyIcon=()=>{const{icon:n}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:l=>eg(l)&&this.copy(l)},s=_.createElement("a",{className:`${qf}-action-copy-icon`},_.createElement(uD,Object.assign({onClick:this.copy},r)));return _.isValidElement(n)?_.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=Q(n,{[`${qf}-action-copy`]:!c,[`${qf}-action-copied`]:c});return l?l(c,this.copy,this.props):_.createElement(Lr,{componentName:"Typography"},p=>_.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:u,ref:r},c?this.renderSuccessTip():_.createElement(rr,{content:typeof s<"u"?s:p.copy},this.renderCopyIcon())))}}tg.propTypes={content:g.string,onCopy:g.func,successTip:g.node,copyTip:g.node,duration:g.number,style:g.object,className:g.string,icon:g.node};tg.defaultProps={content:"",onCopy:er,duration:3,style:{},className:""};const VC={PREFIX:`${Oe}-popover`,ARROW:`${Oe}-popover-icon-arrow`},KC={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"]},di={ARROW_BOUNDING:Object.assign(Object.assign({},oi.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var CD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const QC=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:n,arrowStyle:r,popStyle:s}=i,l=CD(i,["position","className","arrowStyle","popStyle"]),c=e.indexOf("top")===0||e.indexOf("bottom")===0,u=Q(n,VC.ARROW),p=Te(r,"borderOpacity"),f=Te(r,"backgroundColor",Te(s,"backgroundColor")),y=Te(r,"borderColor",Te(s,"borderColor")),v=Object.assign(Object.assign({},l),{width:di.ARROW_BOUNDING.width,height:di.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:u});return c?_.createElement("svg",Object.assign({},v),_.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:y,opacity:p}}),_.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:f}})):_.createElement("svg",Object.assign({},v),_.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:y,opacity:p}}),_.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:f}}))};QC.propTypes={position:g.string,className:g.string,arrowStyle:g.object,popStyle:g.object};var _D=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const kD=KC.POSITION_SET,PD=KC.TRIGGER_SET;class zn extends _.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=Q(c,l,{[`${c}-rtl`]:u==="rtl"}),f=this.renderContentNode({initialFocusRef:r,content:s});return _.createElement("div",{className:p},_.createElement("div",{className:`${c}-content`},f))},this.renderContentNode=n=>{const{initialFocusRef:r,content:s}=n,l={initialFocusRef:r};return Qt(s)?s(l):s},this.tooltipRef=_.createRef()}render(){const e=this.props,{children:n,prefixCls:r,showArrow:s,arrowStyle:l={},arrowBounding:c,position:u,style:p,trigger:f}=e,y=_D(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:v}=this.props;const S={position:u,className:"",popStyle:p,arrowStyle:l},P=s?_.createElement(QC,Object.assign({},S)):!1;gl(v)&&(v=s?di.SPACING_WITH_ARROW:di.SPACING);const T=f==="click"||f==="custom"?"dialog":"tooltip";return _.createElement(rr,Object.assign({guardFocus:!0,ref:this.tooltipRef},y,{trigger:f,position:u,style:p,content:this.renderPopCard,prefixCls:r,spacing:v,showArrow:P,arrowBounding:c,role:T}),n)}}zn.contextType=Bn;zn.propTypes={children:g.node,content:g.oneOfType([g.node,g.func]),visible:g.bool,autoAdjustOverflow:g.bool,motion:g.bool,position:g.oneOf(kD),margin:g.oneOfType([g.number,g.object]),mouseEnterDelay:g.number,mouseLeaveDelay:g.number,trigger:g.oneOf(PD).isRequired,contentClassName:g.oneOfType([g.string,g.array]),onVisibleChange:g.func,onClickOutSide:g.func,style:g.object,spacing:g.oneOfType([g.number,g.object]),zIndex:g.number,showArrow:g.bool,arrowStyle:g.shape({borderColor:g.string,backgroundColor:g.string,borderOpacity:g.oneOfType([g.string,g.number])}),arrowPointAtCenter:g.bool,arrowBounding:g.object,prefixCls:g.string,guardFocus:g.bool,disableArrowKeyDown:g.bool};zn.__SemiComponentName__="Popover";zn.defaultProps=or(zn.__SemiComponentName__,{arrowBounding:di.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:di.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:VC.PREFIX,onClickOutSide:me,onEscKeyDown:me,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0});let Ue;function Bf(i){if(!i)return 0;const e=i.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function TD(i){return Array.prototype.slice.apply(i).map(n=>`${n}: ${i.getPropertyValue(n)};`).join("")}const ED=function(i,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"";Ue||(Ue=document.createElement("div"),Ue.setAttribute("aria-hidden","true"),document.body.appendChild(Ue));const p=window.getComputedStyle(i),f=TD(p),y=Bf(p.lineHeight),v=Math.round(y*(e+1)+Bf(p.paddingTop)+Bf(p.paddingBottom));Ue.setAttribute("style",f),Ue.style.position="fixed",Ue.style.left="0",p.getPropertyValue("width")==="auto"&&i.offsetWidth&&(Ue.style.width=`${i.offsetWidth}px`),Ue.style.height="auto",Ue.style.top="-999999px",Ue.style.zIndex="-1000",u&&(Ue.style.fontWeight="600"),Ue.style.textOverflow="clip",Ue.style.webkitLineClamp="none",Ue.innerHTML="";function S(){const N=Ue.scrollWidth<=Ue.offsetWidth,M=Ue.scrollHeight<v;return e===1?N&&M:M}const P=document.createElement("span"),T=document.createTextNode(n);if(P.appendChild(T),l.length>0){const N=document.createTextNode(l);P.appendChild(N)}Ue.appendChild(P),Object.values(hi(r,"expand")).map(N=>N&&Ue.appendChild(N.cloneNode(!0)));function b(){Ue.innerHTML="",Ue.appendChild(P),Object.values(r).map(N=>N&&Ue.appendChild(N.cloneNode(!0)))}function w(N,M){const F=N.length;return M?c==="end"?N.slice(0,M)+s:N.slice(0,M)+s+N.slice(F-M,F):s}function D(N,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,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const z=Math.floor((F+j)/2),U=w(M,z);if(N.textContent=U,F>=j-1&&j>0)for(let H=j;H>=F;H-=1){const K=w(M,H);if(N.textContent=K,S())return K}else if(j===0)return s;return S()?D(N,M,z,j,z):D(N,M,F,z,L)}let O=n;return S()||(b(),O=D(T,n,0,c==="middle"?Math.floor(n.length/2):n.length)),Ue.innerHTML="",O},YC=_.createContext("normal");var Qa;(function(i){i.Width="width",i.Height="height",i.All="all"})(Qa||(Qa={}));class Ui extends _t{constructor(e){var n;super(e),n=this,this.formerPropertyValue=new Map,this.getElement=()=>{try{return hl.findDOMNode(this.childNode||this)}catch{return null}},this.handleResizeEventTriggered=r=>{var s,l,c,u;if(this.props.observerProperty===Qa.All)(l=(s=this.props).onResize)===null||l===void 0||l.call(s,r);else{const p=[];for(const f of r)this.formerPropertyValue.has(f.target)?f.contentRect[this.props.observerProperty]!==this.formerPropertyValue.get(f.target)&&(this.formerPropertyValue.set(f.target,f.contentRect[this.props.observerProperty]),p.push(f)):(this.formerPropertyValue.set(f.target,f.contentRect[this.props.observerProperty]),p.push(f));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=_.Children.only(this.props.children),{ref:n}=e;return _.cloneElement(e,{ref:r=>this.mergeRef(n,r)})}}Ui.propTypes={onResize:g.func,observeParent:g.bool,observerProperty:g.string,delayTick:g.number};Ui.defaultProps={onResize:()=>{},observeParent:!1,observerProperty:"all",delayTick:0};var Gf=function(i,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(y){try{f(r.next(y))}catch(v){c(v)}}function p(y){try{f(r.throw(y))}catch(v){c(v)}}function f(y){y.done?l(y.value):s(y.value).then(u,p)}f((r=r.apply(i,e||[])).next())})},xD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const pt=al.PREFIX,DD="...",OD=(i,e)=>{const{mark:n,code:r,underline:s,strong:l,link:c,disabled:u}=i;let p=e;const f=(y,v)=>{let S={};y&&(typeof y=="object"&&(S=Object.assign({},y)),p=_.createElement(v,S,p))};return f(n,"mark"),f(r,"code"),f(s&&!c,"u"),f(l,"strong"),f(i.delete,"del"),f(c,u?"span":"a"),p};class gi extends E.Component{constructor(e){super(e),this.observerTakingEffect=!1,this.onResize=n=>Gf(this,void 0,void 0,function*(){return this.rafId&&window.cancelAnimationFrame(this.rafId),new Promise(r=>{this.rafId=window.requestAnimationFrame(()=>Gf(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&&os(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 f;return l.selectNodeContents(p),u+((f=l.getBoundingClientRect().width)!==null&&f!==void 0?f: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:f}=this.getEllipsisOpt(),y=this.canUseCSSEllipsis(),v=!c&&(y?s:l),P=!p&&os(f)&&v&&u;if(!P)return P;const T={type:"tooltip"};return typeof u=="object"?u.type&&u.type.toLowerCase()==="popover"?UT({opts:{showArrow:!0}},u,{opts:{className:Q({[`${pt}-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({},T),u):T},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=()=>Gf(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(vT(l))return new Promise(S=>{this.setState({isTruncated:!1,isOverflowed:!1},S)});if(jr("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 f={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},y=Array.isArray(l)?l.join(""):String(l),v=ED(this.wrapperRef.current,n,y,f,DD,r,s,c);return new Promise(S=>{this.setState({isOverflowed:!1,ellipsisContent:v,isTruncated:y!==v},S)})}),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&&os(s),f=!u&&os(c);let y;return!n&&!p?y=s:n&&!f&&(y=c),!p||!f?_.createElement("a",{role:"button",tabIndex:0,className:`${pt}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":y,onClick:this.toggleOverflow,onKeyPress:v=>eg(v)&&this.toggleOverflow(v)},y):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=Q({[`${pt}-ellipsis`]:!0,[`${pt}-ellipsis-single-line`]:s===1,[`${pt}-ellipsis-multiple-line`]:s>1,[`${pt}-ellipsis-multiple-line-text`]:s>1&&r==="span",[`${pt}-ellipsis-overflow-ellipsis`]:s===1&&c,[`${pt}-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?_.createElement("span",{onMouseEnter:this.onHover},s,r&&r.length?r:null):_.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=_.createRef(),this.expandRef=_.createRef(),this.copyRef=_.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 _.createElement(_.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)),jr(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 _.createElement(tg,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 _.createElement("span",{className:`${pt}-icon`,"x-semi-prop":"icon"},An(e)?_.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:f,icon:y,size:v,link:S,heading:P,weight:T}=e,b=xD(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),w=hi(b,["strong","editable","mark","copyable","underline","code","delete"]),D=v==="inherit"?this.context:v,O=this.renderIcon(),N=this.getEllipsisOpt(),{ellipsisCls:M,ellipsisStyle:F}=this.getEllipsisStyle();let j=f?this.renderEllipsisText(N):r;const L=Q({[`${pt}-link-text`]:S,[`${pt}-link-underline`]:this.props.underline&&S});j=OD(this.props,_.createElement(_.Fragment,null,O,this.props.link?_.createElement("span",{className:L},j):j));const z=/^h[1-6]$/,U=at(P)&&z.test(P),H=Q(s,M,{[`${pt}-${l}`]:l&&!S,[`${pt}-${D}`]:D,[`${pt}-link`]:S,[`${pt}-disabled`]:u,[`${pt}-${c}`]:c,[`${pt}-${P}`]:U,[`${pt}-${P}-weight-${T}`]:U&&T&&isNaN(Number(T))}),K=Object.assign(Object.assign({},isNaN(Number(T))?{}:{fontWeight:T}),p);return _.createElement(ll,Object.assign({className:H,style:Object.assign(Object.assign({},K),F),component:n,forwardRef:this.wrapperRef},w),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 Qt(c)?c(e,r):s.toLowerCase()==="popover"?_.createElement(zn,Object.assign({content:e,position:"top"},l),r):_.createElement(rr,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=_.createElement(YC.Provider,{value:r},_.createElement(Lr,{componentName:"Typography"},l=>(this.expandStr=l.expand,this.collapseStr=l.collapse,this.renderTipWrapper())));return this.props.ellipsis?_.createElement(Ui,{onResize:function(){e.observerTakingEffect&&e.onResize(...arguments)},observeParent:!0,observerProperty:Qa.Width},s):s}}gi.propTypes={children:g.node,copyable:g.oneOfType([g.shape({text:g.string,onCopy:g.func,successTip:g.node,copyTip:g.node}),g.bool]),delete:g.bool,disabled:g.bool,ellipsis:g.oneOfType([g.shape({rows:g.number,expandable:g.bool,expandText:g.string,onExpand:g.func,suffix:g.string,showTooltip:g.oneOfType([g.shape({type:g.string,opts:g.object}),g.bool]),collapsible:g.bool,collapseText:g.string,pos:g.oneOf(["end","middle"])}),g.bool]),mark:g.bool,underline:g.bool,link:g.oneOfType([g.object,g.bool]),spacing:g.oneOf(Ct.SPACING),strong:g.bool,size:g.oneOf(Ct.SIZE),type:g.oneOf(Ct.TYPE),style:g.object,className:g.string,icon:g.oneOfType([g.node,g.string]),heading:g.string,component:g.string};gi.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:""};gi.contextType=YC;class yl extends E.PureComponent{render(){return _.createElement(gi,Object.assign({component:"span"},this.props))}}yl.propTypes={copyable:g.oneOfType([g.object,g.bool]),delete:g.bool,disabled:g.bool,icon:g.oneOfType([g.node,g.string]),ellipsis:g.oneOfType([g.object,g.bool]),mark:g.bool,underline:g.bool,link:g.oneOfType([g.object,g.bool]),strong:g.bool,type:g.oneOf(Ct.TYPE),size:g.oneOf(Ct.SIZE),style:g.object,className:g.string,code:g.bool,component:g.string,weight:g.number};yl.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 ID=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};let ng=class extends E.PureComponent{render(){const e=this.props,{heading:n}=e,r=ID(e,["heading"]),s=Ct.HEADING.indexOf(n)!==-1?`h${n}`:"h1";return _.createElement(gi,Object.assign({component:s,heading:s},r))}};ng.propTypes={copyable:g.oneOfType([g.object,g.bool]),delete:g.bool,disabled:g.bool,ellipsis:g.oneOfType([g.object,g.bool]),mark:g.bool,link:g.oneOfType([g.object,g.bool]),underline:g.bool,strong:g.bool,type:g.oneOf(Ct.TYPE),heading:g.oneOf(Ct.HEADING),style:g.object,className:g.string,component:g.string,weight:g.oneOfType([g.oneOf(Ct.WEIGHT),g.number])};ng.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",heading:1,style:{},className:""};const RD=al.PREFIX;let rg=class extends E.PureComponent{render(){const{className:e}=this.props,n=Q(e,`${RD}-paragraph`);return _.createElement(gi,Object.assign({component:"p"},this.props,{className:n}))}};rg.propTypes={copyable:g.oneOfType([g.object,g.bool]),delete:g.bool,disabled:g.bool,ellipsis:g.oneOfType([g.object,g.bool]),mark:g.bool,link:g.oneOfType([g.object,g.bool]),underline:g.bool,strong:g.bool,type:g.oneOf(Ct.TYPE),size:g.oneOf(Ct.SIZE),spacing:g.oneOf(Ct.SPACING),style:g.object,className:g.string,component:g.string};rg.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 ND{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"?Wf(this.content).map(e=>Uf(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?Wf(this.content).filter(e=>Uf(e)).map(e=>this.truncatePrecision(e)).join(","):Wf(this.content).map(e=>Uf(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 Wf(i){const e=/(-?[0-9]*\.?[0-9]+([eE]-?[0-9]+)?)|([^-\d\.]+)/g;return i.match(e)||[]}function Uf(i){return!(isNaN(Number(i))||i.replace(/\s+/g,"")==="")}class ig extends E.PureComponent{formatNodeDFS(e){return Array.isArray(e)||(e=[e]),e=e.map(n=>typeof n=="string"||typeof n=="number"?new ND(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),_.createElement(gi,Object.assign({component:"span"},e))}}ig.propTypes={rule:g.oneOf(Ct.RULE),precision:g.number,truncate:g.oneOf(Ct.TRUNCATE),parser:g.func,copyable:g.oneOfType([g.object,g.bool]),delete:g.bool,disabled:g.bool,icon:g.oneOfType([g.node,g.string]),mark:g.bool,underline:g.bool,link:g.oneOfType([g.object,g.bool]),strong:g.bool,type:g.oneOf(Ct.TYPE),size:g.oneOf(Ct.SIZE),style:g.object,className:g.string,code:g.bool,component:g.string};ig.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 Qe=ll;Qe.Text=yl;Qe.Title=ng;Qe.Paragraph=rg;Qe.Numeral=ig;var Hf,tw;function jD(){if(tw)return Hf;tw=1;var i=$r(),e=Pn(),n="[object Number]";function r(s){return typeof s=="number"||e(s)&&i(s)==n}return Hf=r,Hf}var LD=jD();const Nr=Ye(LD),AD=`${Oe}-spin`,MD={PREFIX:AD},$D={SIZE:["small","middle","large"]};class og extends zt{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},og.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 FD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};let nw=-1;function XC(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:n,customIconCls:r}=i,s=FD(i,["id","className","customIconCls"]),l=Te(qa,"config.overrideDefaultProps.Spin.indicator");if(l&&_.isValidElement(l))return _.cloneElement(l,{className:Q({[r]:r,[n]:n})});let c=e;gl(c)&&(nw++,c=nw);const u=`linearGradient-${c}`;return _.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"}),_.createElement("defs",null,_.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:u},_.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),_.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),_.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),_.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},_.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),_.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 zD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const ri=MD.PREFIX;class Ar extends _t{constructor(e){super(e),this.foundation=new og(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?_.createElement("div",{className:`${ri}-wrapper`},e?_.createElement("div",{className:`${ri}-animate`,"x-semi-prop":"indicator"},e):_.createElement(XC,null),n?_.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=zD(e,["children","style","wrapperClassName","childStyle","size"]),{loading:p}=this.state,f=Q(ri,s,{[`${ri}-${c}`]:c,[`${ri}-block`]:n,[`${ri}-hidden`]:!p});return _.createElement("div",Object.assign({className:f,style:r},this.getDataAttr(u)),this.renderSpin(),_.createElement("div",{className:`${ri}-children`,style:l,"x-semi-prop":"children"},n))}}Ar.propTypes={size:g.oneOf($D.SIZE),spinning:g.bool,children:g.node,indicator:g.node,delay:g.number,tip:g.node,wrapperClassName:g.string,childStyle:g.object,style:g.object};Ar.__SemiComponentName__="Spin";Ar.defaultProps=or(Ar.__SemiComponentName__,{size:"middle",spinning:!0,children:null,indicator:null,delay:0});const qD={PREFIX:`${Oe}-input`},vl={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},UH={};function BD(i){const{value:e,maxLength:n,getValueLength:r}=i;if(Qt(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 sg extends zt{static get inputDefaultAdapter(){return{notifyChange:me,setValue:me}}constructor(e){super(Object.assign(Object.assign({},sg.inputDefaultAdapter),e)),this.compositionEnter=!1,this.getNextValue=n=>{const{maxLength:r,minLength:s,getValueLength:l}=this._adapter.getProps();return Qt(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(Qt(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(Nr(n)&&n>=0&&Qt(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 Nr(n)&&n>=0&&Qt(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 BD({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={}),zC(n,vl.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===Jh&&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&&Qt(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e?.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}}var GD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const Le=qD.PREFIX,WD=vl.SIZE,UD=vl.STATUS,HD=vl.MODE;class ag extends _t{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=_.createRef(),this.prefixRef=_.createRef(),this.suffixRef=_.createRef(),this.foundation=new sg(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=Q({[`${Le}-prepend`]:!0,[`${Le}-prepend-text`]:e&&at(e),[`${Le}-prepend-icon`]:An(e)});return _.createElement("div",{className:n,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const n=Q({[`${Le}-append`]:!0,[`${Le}-append-text`]:e&&at(e),[`${Le}-append-icon`]:An(e)});return _.createElement("div",{className:n,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=Q(`${Le}-clearbtn`),{clearIcon:n}=this.props;return this.foundation.isAllowClear()?_.createElement("div",{className:e,onMouseDown:this.handleClear},n||_.createElement(WC,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:n,disabled:r}=this.props,s=Q(`${Le}-modebtn`),l=e?_.createElement(pD,null):_.createElement(hD,null),c=n==="password"&&!r,u=e?"Show password":"Hidden password";return c?_.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=Q({[`${Le}-prefix`]:!0,[`${Le}-inset-label`]:n,[`${Le}-prefix-text`]:s&&at(s),[`${Le}-prefix-icon`]:An(s)});return _.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=Q({[`${Le}-suffix`]:!0,[`${Le}-suffix-text`]:n&&at(n),[`${Le}-suffix-icon`]:An(n),[`${Le}-suffix-hidden`]:e&&!!r});return _.createElement("div",{className:s,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},n)}getInputRef(){const{forwardRef:e}=this.props;if(!os(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:f,prefix:y,mode:v,insetLabel:S,insetLabelId:P,validateStatus:T,type:b,readonly:w,size:D,suffix:O,style:N,showClear:M,onEnterPress:F,onClear:j,hideSuffix:L,inputStyle:z,forwardRef:U,maxLength:H,getValueLength:K,preventScroll:ie,borderless:ee,showClearIgnoreDisabled:ae,onlyBorder:ne}=e,ce=GD(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:de,isFocus:V,minLength:Y}=this.state,I=this.foundation.isAllowClear(),W=An(O),se=this.getInputRef(),re=`${Le}-wrapper`,oe=Q(re,c,{[`${Le}-wrapper__with-prefix`]:y||S,[`${Le}-wrapper__with-suffix`]:O,[`${Le}-wrapper__with-suffix-hidden`]:I&&!!L,[`${Le}-wrapper__with-suffix-icon`]:W,[`${Le}-wrapper__with-append`]:r,[`${Le}-wrapper__with-prepend`]:n,[`${Le}-wrapper__with-append-only`]:r&&!n,[`${Le}-wrapper__with-prepend-only`]:!r&&n,[`${re}-readonly`]:w,[`${re}-disabled`]:u,[`${re}-warning`]:T==="warning",[`${re}-error`]:T==="error",[`${re}-focus`]:V,[`${re}-clearable`]:M,[`${re}-modebtn`]:v==="password",[`${re}-hidden`]:b==="hidden",[`${re}-${D}`]:D,[`${Le}-borderless`]:ee,[`${Le}-only_border`]:ne!=null}),_e=Q(Le,{[`${Le}-${D}`]:D,[`${Le}-disabled`]:u,[`${Le}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${Le}-sibling-modebtn`]:v==="password"}),ye=de??"",ve=Object.assign(Object.assign({},ce),{style:z,className:_e,disabled:u,readOnly:w,type:this.foundation.handleInputType(b),placeholder:f,onInput:be=>this.foundation.handleInput(be),onChange:be=>this.foundation.handleChange(be.target.value,be),onFocus:be=>this.foundation.handleFocus(be),onBlur:be=>this.foundation.handleBlur(be),onKeyUp:be=>this.foundation.handleKeyUp(be),onKeyDown:be=>this.foundation.handleKeyDown(be),onKeyPress:be=>this.foundation.handleKeyPress(be),onCompositionStart:this.foundation.handleCompositionStart,onCompositionEnd:this.foundation.handleCompositionEnd,onCompositionUpdate:this.foundation.handleCompositionUpdate,value:ye});Qt(K)||(ve.maxLength=H),Y&&(ve.minLength=Y),T==="error"&&(ve["aria-invalid"]="true");let Ce=Object.assign({},N);return ne!==void 0&&(Ce=Object.assign({borderWidth:ne},N)),_.createElement("div",{className:oe,style:Ce,onMouseEnter:be=>this.handleMouseOver(be),onMouseLeave:be=>this.handleMouseLeave(be),onClick:be=>this.handleClick(be)},this.renderPrepend(),this.renderPrefix(),_.createElement("input",Object.assign({},ve,{ref:se})),this.renderClearBtn(),this.renderSuffix(I),this.renderModeBtn(),this.renderAppend())}}ag.propTypes={"aria-label":g.string,"aria-labelledby":g.string,"aria-invalid":g.bool,"aria-errormessage":g.string,"aria-describedby":g.string,"aria-required":g.bool,addonBefore:g.node,addonAfter:g.node,clearIcon:g.node,prefix:g.node,suffix:g.node,mode:g.oneOf(HD),value:g.any,defaultValue:g.any,disabled:g.bool,readonly:g.bool,autoFocus:g.bool,type:g.string,showClear:g.bool,hideSuffix:g.bool,placeholder:g.any,size:g.oneOf(WD),className:g.string,style:g.object,validateStatus:g.oneOf(UD),onClear:g.func,onChange:g.func,onBlur:g.func,onFocus:g.func,onInput:g.func,onKeyDown:g.func,onKeyUp:g.func,onKeyPress:g.func,onEnterPress:g.func,onCompositionStart:g.func,onCompositionEnd:g.func,onCompositionUpdate:g.func,insetLabel:g.node,insetLabelId:g.string,inputStyle:g.object,getValueLength:g.func,preventScroll:g.bool,borderless:g.bool};ag.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:me,onChange:me,onBlur:me,onFocus:me,onInput:me,onKeyDown:me,onKeyUp:me,onKeyPress:me,onEnterPress:me,onCompositionStart:me,onCompositionEnd:me,onCompositionUpdate:me,validateStatus:"default",borderless:!1};const ss=_.forwardRef((i,e)=>_.createElement(ag,Object.assign({},i,{forwardRef:e})));var VD=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};class ZC extends _.PureComponent{render(){const e=this.props,{triggerRender:n,componentName:r}=e,s=VD(e,["triggerRender","componentName"]);return n(Object.assign({},s))}}ZC.propTypes={triggerRender:g.func.isRequired,componentName:g.string,componentProps:g.object,value:g.any,inputValue:g.string,placeholder:g.oneOfType([g.string,g.array]),className:g.string,style:g.object};const KD={PREFIX:`${Oe}-highlight`},QD=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");class YD extends zt{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 f=p.text;r&&(f=QD(f));const y=new RegExp(f,s?"g":"gi");let v;for(;v=y.exec(c);){const S=v.index,P=y.lastIndex;P>S&&u.push({highlight:!0,start:S,end:P,className:p.className,style:p.style}),v.index===y.lastIndex&&y.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,f,y,v)=>{p-u>0&&l.push({start:u,end:p,highlight:f,className:y,style:v})};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 XD=KD.PREFIX;class lg extends E.PureComponent{constructor(){super(...arguments),this.getHighLightTextHTML=e=>{let{sourceString:n="",searchWords:r=[],option:s={autoEscape:!0,caseSensitive:!1}}=e;const l=new YD().findAll(Object.assign({sourceString:n,searchWords:r},s)),c=s.highlightTag||"mark",u=s.highlightClassName||"",p=s.highlightStyle||{};return l.map((f,y)=>{const{end:v,start:S,highlight:P,style:T,className:b}=f,w=n.substr(S,v-S);return P?_.createElement(c,{style:Object.assign(Object.assign({},p),T),className:`${u} ${b||""}`.trim(),key:w+y},w):w})}}render(){const{searchWords:e,sourceString:n,component:r,highlightClassName:s,highlightStyle:l,caseSensitive:c,autoEscape:u}=this.props,p=Q({[`${XD}-tag`]:!0},s),f={highlightTag:r,highlightClassName:p,highlightStyle:l,caseSensitive:c,autoEscape:u};return this.getHighLightTextHTML({sourceString:n,searchWords:e,option:f})}}lg.propTypes={style:g.object,className:g.string,autoEscape:g.bool,caseSensitive:g.bool,sourceString:g.string,searchWords:g.arrayOf(g.string),highlightStyle:g.object,highlightClassName:g.string,component:g.string};lg.defaultProps={component:"mark",autoEscape:!0,caseSensitive:!1,sourceString:""};const ZD={PREFIX:`${Oe}-avatar`},Zi={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 JD extends zt{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=n=>{const{target:r}=n;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{jr(!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 eO=i=>{let{gradientStart:e,gradientEnd:n}=i;const r=cs();return _.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"51",height:"52",viewBox:"0 0 51 52",fill:"none"},_.createElement("g",{filter:"url(#filter0_d_6_2)"},_.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})`})),_.createElement("defs",null,_.createElement("filter",{id:"filter0_d_6_2",x:"0.789215",y:"0.447304",width:"49.2216",height:"51.3549",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},_.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),_.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"}),_.createElement("feOffset",{dy:"1.65809"}),_.createElement("feGaussianBlur",{stdDeviation:"1.10539"}),_.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"}),_.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_6_2"}),_.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_6_2",result:"shape"})),_.createElement("linearGradient",{id:r,x1:"17.671",y1:"31.7392",x2:"17.671",y2:"47.9333",gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:e}),_.createElement("stop",{offset:"1",stopColor:n}))))};var tO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const nO=Zi.SIZE,rO=Zi.SHAPE,iO=Zi.COLOR,Ae=ZD.PREFIX;let Vi=class extends _t{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 f=n;const y=r!==er,v=l&&p,S={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(v){const P=y?`clickable Avatar: ${u}`:u,T=Object.assign(Object.assign({src:l,srcSet:c,onError:this.handleError},s),{className:Q({[`${Ae}-no-focus-visible`]:y})}),b=y?Object.assign(Object.assign({},T),S):T;f=_.createElement("img",Object.assign({alt:P},b))}else if(typeof n=="string"){const P=u??n,b={role:"img","aria-label":y?`clickable Avatar: ${P}`:P,className:Q(`${Ae}-label`,{[`${Ae}-no-focus-visible`]:y})},w=y?Object.assign(Object.assign({},b),S):b,D={transform:`scale(${this.state.scale})`};f=_.createElement("span",{className:`${Ae}-content`,style:D},_.createElement("span",Object.assign({},w,{"x-semi-prop":"children"}),n))}return f},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),_.createElement("span",{style:c,className:Q(`${Ae}-bottom_slot-shape_${this.props.bottomSlot.shape}`,`${Ae}-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 _.createElement("div",{className:Q([`${Ae}-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),_.createElement("div",{style:(n=this.props.topSlot.style)!==null&&n!==void 0?n:{},className:Q([`${Ae}-top_slot-wrapper`,(r=this.props.topSlot.className)!==null&&r!==void 0?r:"",{[`${Ae}-animated`]:this.props.contentMotion}])},_.createElement("div",{className:Q([`${Ae}-top_slot-bg`,`${Ae}-top_slot-bg-${this.props.size}`])},_.createElement("div",{className:Q([`${Ae}-top_slot-bg-svg`,`${Ae}-top_slot-bg-svg-${this.props.size}`])},_.createElement(eO,{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)"}))),_.createElement("div",{className:Q([`${Ae}-top_slot`])},_.createElement("div",{style:c,className:Q([`${Ae}-top_slot-content`,`${Ae}-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=_.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 JD(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),Ir(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:f,imgAttr:y,src:v,srcSet:S,style:P,alt:T,gap:b,bottomSlot:w,topSlot:D,border:O,contentMotion:N}=n,M=tO(n,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt","gap","bottomSlot","topSlot","border","contentMotion"]),{isImgExist:F,hoverContent:j,focusVisible:L}=this.state;let z={};Zi.SIZE.includes(l)||(z={width:l,height:l}),z=Object.assign(Object.assign({},z),P);const U=w||D||O,H={onClick:f,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},K=v&&F,ie=Q(Ae,{[`${Ae}-${r}`]:r,[`${Ae}-${l}`]:l,[`${Ae}-${c}`]:c&&!K,[`${Ae}-img`]:K,[`${Ae}-focus`]:L,[`${Ae}-animated`]:N},u),ee=j?_.createElement("div",{className:`${Ae}-hover`,"x-semi-prop":"hoverContent"},j):null;let ae=_.createElement("span",Object.assign({},M,{style:U?{}:z,className:ie},U?{}:H,{role:"listitem",ref:this.avatarRef}),this.getContent(),ee);if(O){const ne={};typeof O=="object"&&O?.color&&(ne.borderColor=O?.color),ae=_.createElement("div",{style:Object.assign({position:"relative"},z)},ae,_.createElement("span",{style:ne,className:Q([`${Ae}-additionalBorder`,`${Ae}-additionalBorder-${l}`,{[`${Ae}-${r}`]:r}])}),typeof this.props.border=="object"&&this.props.border.motion&&_.createElement("span",{style:ne,className:Q([`${Ae}-additionalBorder`,`${Ae}-additionalBorder-${l}`,{[`${Ae}-${r}`]:r,[`${Ae}-additionalBorder-animated`]:typeof this.props.border=="object"&&((e=this.props.border)===null||e===void 0?void 0:e.motion)}])}))}return U?_.createElement("span",Object.assign({className:Q([`${Ae}-wrapper`]),style:z},H),ae,D&&["extra-small","small","default","medium","large","extra-large"].includes(l)&&r==="circle"&&this.renderTopSlot(),w&&["extra-small","small","default","medium","large","extra-large"].includes(l)&&this.renderBottomSlot()):ae}};Vi.__SemiComponentName__="Avatar";Vi.defaultProps=or(Vi.__SemiComponentName__,{size:"medium",color:"grey",shape:"circle",gap:3,onClick:er,onMouseEnter:er,onMouseLeave:er});Vi.propTypes={children:g.node,color:g.oneOf(iO),shape:g.oneOf(rO),size:g.oneOf(nO),hoverMask:g.node,className:g.string,style:g.object,gap:g.number,imgAttr:g.object,src:g.string,srcSet:g.string,alt:g.string,onError:g.func,onClick:g.func,onMouseEnter:g.func,onMouseLeave:g.func,bottomSlot:g.shape({render:g.func,shape:g.oneOf(["circle","square"]),text:g.node,bgColor:g.string,textColor:g.string,className:g.string,style:g.object}),topSlot:g.shape({render:g.func,gradientStart:g.string,gradientEnd:g.string,text:g.node,textColor:g.string,className:g.string,style:g.object}),border:g.oneOfType([g.shape({color:g.string,motion:g.bool}),g.bool]),contentMotion:g.bool};Vi.elementType="Avatar";const cg={PREFIX:`${Oe}-button`},mi={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"},oO={SIZE:["extra-small","small","default","large","extra-large","custom"]};var sO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const aO=mi.sizes,{htmlTypes:lO,btnTypes:cO}=mi;let bs=class extends E.PureComponent{render(){const e=this.props,{children:n,block:r,htmlType:s,loading:l,circle:c,className:u,style:p,disabled:f,size:y,theme:v,type:S,prefixCls:P,iconPosition:T}=e,b=sO(e,["children","block","htmlType","loading","circle","className","style","disabled","size","theme","type","prefixCls","iconPosition"]),w=Object.assign(Object.assign({disabled:f},hi(b,["x-semi-children-alias"])),{className:Q(P,{[`${P}-${S}`]:!f&&S,[`${P}-disabled`]:f,[`${P}-size-large`]:y==="large",[`${P}-size-small`]:y==="small",[`${P}-light`]:v==="light",[`${P}-block`]:r,[`${P}-circle`]:c,[`${P}-borderless`]:v==="borderless",[`${P}-outline`]:v==="outline",[`${P}-${S}-disabled`]:f&&S},u),type:s,"aria-disabled":f}),D={};return u&&u.includes("-with-icon")||(D["x-semi-prop"]=this.props["x-semi-children-alias"]||"children"),_.createElement("button",Object.assign({},w,{onClick:this.props.onClick,onMouseDown:this.props.onMouseDown,style:p}),_.createElement("span",Object.assign({className:Q(`${P}-content`,this.props.contentClassName),onClick:O=>f&&O.stopPropagation()},D),n))}};bs.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:er,onClick:er,onMouseEnter:er,onMouseLeave:er,prefixCls:cg.PREFIX};bs.propTypes={children:g.node,disabled:g.bool,prefixCls:g.string,style:g.object,size:g.oneOf(aO),type:g.oneOf(cO),block:g.bool,onClick:g.func,onMouseDown:g.func,circle:g.bool,loading:g.bool,htmlType:g.oneOf(lO),theme:g.oneOf(mi.themes),className:g.string,onMouseEnter:g.func,onMouseLeave:g.func,"aria-label":g.string,contentClassName:g.string};var uO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const dO=oO.SIZE;class yi extends E.PureComponent{render(){const e=this.props,{children:n,iconPosition:r,iconSize:s,iconStyle:l,style:c,icon:u,noHorizontalPadding:p,theme:f,className:y,prefixCls:v,loading:S}=e,P=uO(e,["children","iconPosition","iconSize","iconStyle","style","icon","noHorizontalPadding","theme","className","prefixCls","loading"]),T=Object.assign({},c);Array.isArray(p)?(p.includes("left")&&(T.paddingLeft=0),p.includes("right")&&(T.paddingRight=0)):p===!0?(T.paddingLeft=0,T.paddingRight=0):typeof p=="string"&&(p==="left"&&(T.paddingLeft=0),p==="right"&&(T.paddingRight=0));let b=null,w=null;S&&!P.disabled?w=_.createElement(XC,{customIconCls:`${v}-content-loading-icon`}):_.isValidElement(u)&&(w=u);const D=Q({[`${v}-content-left`]:r==="right",[`${v}-content-right`]:r==="left"}),O=this.props["x-semi-children-alias"]||"children",N=n!=null?_.createElement("span",{className:D,"x-semi-prop":O},n):null;r==="left"?b=_.createElement(_.Fragment,null,w,N):b=_.createElement(_.Fragment,null,N,w);const M=Q(y,`${v}-with-icon`,{[`${v}-with-icon-only`]:N==null||N==="",[`${v}-loading`]:S});return _.createElement(bs,Object.assign({},P,{className:M,theme:f,style:T}),b)}}yi.defaultProps={iconPosition:mi.DEFAULT_ICON_POSITION,prefixCls:cg.PREFIX,loading:!1,noHorizontalPadding:!1,onMouseEnter:me,onMouseLeave:me};yi.elementType="IconButton";yi.propTypes={iconStyle:g.object,style:g.object,loading:g.bool,prefixCls:g.string,icon:g.oneOfType([g.object,g.string,g.node]),iconSize:g.oneOf(dO),noHorizontalPadding:g.oneOfType([g.bool,g.string,g.array]),children:g.node,theme:g.string,iconPosition:g.oneOf(mi.iconPositions),className:g.string,onMouseEnter:g.func,onMouseLeave:g.func};let tt=class extends _.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?_.createElement(yi,Object.assign({},e)):_.createElement(bs,Object.assign({},e))}};tt.__SemiComponentName__="Button";tt.propTypes=Object.assign(Object.assign({},bs.propTypes),yi.propTypes);tt.defaultProps=or(tt.__SemiComponentName__);tt.elementType="Button";var pO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const Ho=cg.PREFIX,fO=mi.sizes;class ug extends _t{getInnerWithLine(e){const n=[];return e.length>1?(e.slice(0,-1).forEach((r,s)=>{const l=Te(r,"type.elementType")==="Button",c=Te(r,"props"),{type:u,theme:p,disabled:f}=c??{};if(l&&p!=="outline"){const y=Q(`${Ho}-group-line`,`${Ho}-group-line-${p??"light"}`,`${Ho}-group-line-${u??"primary"}`,{[`${Ho}-group-line-disabled`]:f});n.push(r,_.createElement("span",{className:y,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,f=pO(e,["children","disabled","size","type","className","style","aria-label"]);let y,v=[];const S=Q(`${Ho}-group`,c);return n&&(y=(Array.isArray(n)?n:[n]).map((P,T)=>{var b;return E.isValidElement(P)?E.cloneElement(P,Object.assign(Object.assign(Object.assign({disabled:r,size:s,type:l},P.props),f),{key:(b=P.key)!==null&&b!==void 0?b:T})):P}),v=this.getInnerWithLine(y)),_.createElement("div",{className:S,style:u,role:"group","aria-label":p},v)}}ug.propTypes={children:g.node,disabled:g.bool,type:g.string,size:g.oneOf(fO),theme:g.oneOf(mi.themes),"aria-label":g.string};ug.defaultProps={size:"default"};const JC={PREFIX:`${Oe}-card`},hO={SHADOWS:["hover","always"]};var gO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const Vo=JC.PREFIX;class e0 extends E.PureComponent{render(){const e=this.props,{avatar:n,className:r,description:s,style:l,title:c}=e,u=gO(e,["avatar","className","description","style","title"]),p=Q(`${Vo}-meta`,r),f=n&&_.createElement("div",{className:`${Vo}-meta-avatar`},n),y=c&&_.createElement("div",{className:`${Vo}-meta-wrapper-title`},c),v=s&&_.createElement("div",{className:`${Vo}-meta-wrapper-description`},s),S=c||s?_.createElement("div",{className:`${Vo}-meta-wrapper`},y,v):null;return _.createElement("div",Object.assign({},u,{className:p,style:l}),f,S)}}e0.propTypes={avatar:g.node,className:g.string,description:g.node,style:g.object,title:g.node};const dg={PREFIX:`${Oe}-skeleton`};var mO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const yO=Zi.SIZE,vO=Zi.SHAPE,bl=i=>e=>n=>_.createElement(e,Object.assign({type:i},n));class Ji extends E.PureComponent{render(){const e=this.props,{prefixCls:n,className:r,type:s,size:l,shape:c}=e,u=mO(e,["prefixCls","className","type","size","shape"]),p=Q(r,`${n}-${s}`,{[`${n}-${s}-${l}`]:s.toUpperCase()==="AVATAR"},{[`${n}-${s}-${c}`]:s.toUpperCase()==="AVATAR"});return _.createElement("div",Object.assign({className:p},u))}}Ji.propTypes={type:g.string,prefixCls:g.string,style:g.object,className:g.string,size:g.oneOf(yO),shape:g.oneOf(vO)};Ji.defaultProps={prefixCls:dg.PREFIX,size:"medium",shape:"circle"};const bO=bl("avatar")(Ji),SO=bl("image")(Ji),wO=bl("title")(Ji),CO=bl("button")(Ji);class pg extends E.PureComponent{render(){const{prefixCls:e,className:n,style:r,rows:s}=this.props,l=Q(n,`${e}-paragraph`);return _.createElement("ul",{className:l,style:r},[...Array(s)].map((c,u)=>_.createElement("li",{key:u})))}}pg.propTypes={rows:g.number,prefixCls:g.string,style:g.object,className:g.string};pg.defaultProps={prefixCls:dg.PREFIX,rows:4};var _O=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const rw=dg.PREFIX;class Mn extends E.PureComponent{render(){const e=this.props,{placeholder:n,active:r,children:s,className:l,loading:c,style:u}=e,p=_O(e,["placeholder","active","children","className","loading","style"]),f=Q(rw,{[`${rw}-active`]:!!r},l);let y;return c?y=_.createElement("div",Object.assign({className:f,style:u},p,{"x-semi-prop":"placeholder"}),n):y=s,y}}Mn.Avatar=bO;Mn.Title=wO;Mn.Button=CO;Mn.Paragraph=pg;Mn.Image=SO;Mn.defaultProps={loading:!0};Mn.propTypes={active:g.bool,placeholder:g.node,style:g.object,className:g.string,loading:g.bool,children:g.node};const kO={PREFIX:`${Oe}-space`},si={ALIGN_SET:["start","end","center","baseline"],SPACING_LOOSE:"loose",SPACING_MEDIUM:"medium",SPACING_TIGHT:"tight"},PO="Symbol(react.fragment)",Ph=i=>{let e=[];return _.Children.forEach(i,n=>{n!=null&&(Array.isArray(n)?e=e.concat(Ph(n)):E.isValidElement(n)&&n.type&&n.type.toString()===PO&&n.props?e=e.concat(Ph(n.props.children)):e.push(n))}),e},Sn=kO.PREFIX;class Ss extends E.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,f=Object.assign({},n);let y="",v="";at(s)?(y=s,v=s):Nr(s)?(f.rowGap=s,f.columnGap=s):pT(s)&&(at(s[0])?y=s[0]:Nr(s[0])&&(f.columnGap=`${s[0]}px`),at(s[1])?v=s[1]:Nr(s[1])&&(f.rowGap=`${s[1]}px`));const S=Q(Sn,r,{[`${Sn}-align-${c}`]:c,[`${Sn}-vertical`]:u,[`${Sn}-horizontal`]:!u,[`${Sn}-wrap`]:p,[`${Sn}-tight-horizontal`]:y===si.SPACING_TIGHT,[`${Sn}-tight-vertical`]:v===si.SPACING_TIGHT,[`${Sn}-medium-horizontal`]:y===si.SPACING_MEDIUM,[`${Sn}-medium-vertical`]:v===si.SPACING_MEDIUM,[`${Sn}-loose-horizontal`]:y===si.SPACING_LOOSE,[`${Sn}-loose-vertical`]:v===si.SPACING_LOOSE}),P=Ph(e),T=Lh(this.props);return _.createElement("div",Object.assign({},T,{className:S,style:f,"x-semi-prop":"children"}),P)}}Ss.propTypes={wrap:g.bool,align:g.oneOf(si.ALIGN_SET),vertical:g.bool,spacing:g.oneOfType([g.string,g.number,g.array]),children:g.node,style:g.object,className:g.string};Ss.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};var TO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const St=JC.PREFIX;class Sl extends E.PureComponent{constructor(){super(...arguments),this.renderHeader=()=>{const{title:e,headerExtraContent:n,header:r,headerLine:s,headerStyle:l}=this.props,c=Q(`${St}-header`,{[`${St}-header-bordered`]:!!s}),u=Q(`${St}-header-wrapper`),p=Q(`${St}-header-wrapper-title`,{[`${St}-header-wrapper-spacing`]:!!n});return r||n||e?_.createElement("div",{style:l,className:c},r||_.createElement("div",{className:u},n&&_.createElement("div",{className:`${St}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},n),e&&_.createElement("div",{className:p},at(e)?_.createElement(Qe.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,n=Q(`${St}-cover`);return e&&_.createElement("div",{className:n,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:n,actions:r,loading:s}=this.props,l=Q(`${St}-body`),c=Q(`${St}-body-actions`),u=Q(`${St}-body-actions-item`),p=_.createElement("div",null,_.createElement(Mn.Title,null),_.createElement("br",null),_.createElement(Mn.Paragraph,{rows:3}));return _.createElement("div",{style:e,className:l},n&&_.createElement(Mn,{placeholder:p,loading:s,active:!0},n),Array.isArray(r)&&_.createElement("div",{className:c},_.createElement(Ss,{spacing:12},r.map((f,y)=>_.createElement("div",{key:y,className:u,"x-semi-prop":`actions.${y}`},f)))))},this.renderFooter=()=>{const{footer:e,footerLine:n,footerStyle:r}=this.props,s=Q(`${St}-footer`,{[`${St}-footer-bordered`]:n});return e&&_.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=TO(e,["bordered","shadows","style","className"]),u=hi(c,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),p=Q(St,l,{[`${St}-bordered`]:n,[`${St}-shadows`]:r,[`${St}-shadows-${r}`]:r});return _.createElement("div",Object.assign({},u,{"aria-busy":this.props.loading,className:p,style:s}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Sl.Meta=e0;Sl.propTypes={actions:g.array,bodyStyle:g.object,bordered:g.bool,children:g.node,className:g.string,cover:g.node,footer:g.node,footerLine:g.bool,footerStyle:g.object,header:g.node,headerExtraContent:g.node,headerLine:g.bool,headerStyle:g.object,loading:g.bool,shadows:g.oneOf(hO.SHADOWS),style:g.object,title:g.node,"aria-label":g.string};Sl.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};var Vf,iw;function EO(){if(iw)return Vf;iw=1;function i(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 Vf=i,Vf}var Kf,ow;function xO(){if(ow)return Kf;ow=1;function i(e){return e!==e}return Kf=i,Kf}var Qf,sw;function DO(){if(sw)return Qf;sw=1;function i(e,n,r){for(var s=r-1,l=e.length;++s<l;)if(e[s]===n)return s;return-1}return Qf=i,Qf}var Yf,aw;function OO(){if(aw)return Yf;aw=1;var i=EO(),e=xO(),n=DO();function r(s,l,c){return l===l?n(s,l,c):i(s,e,c)}return Yf=r,Yf}var Xf,lw;function IO(){if(lw)return Xf;lw=1;var i=OO();function e(n,r){var s=n==null?0:n.length;return!!s&&i(n,r,0)>-1}return Xf=e,Xf}var Zf,cw;function RO(){if(cw)return Zf;cw=1;function i(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 Zf=i,Zf}var Jf,uw;function NO(){if(uw)return Jf;uw=1;var i=AC(),e=IO(),n=RO(),r=Nh(),s=dl(),l=MC(),c=200;function u(p,f,y,v){var S=-1,P=e,T=!0,b=p.length,w=[],D=f.length;if(!b)return w;y&&(f=r(f,s(y))),v?(P=n,T=!1):f.length>=c&&(P=l,T=!1,f=new i(f));e:for(;++S<b;){var O=p[S],N=y==null?O:y(O);if(O=v||O!==0?O:0,T&&N===N){for(var M=D;M--;)if(f[M]===N)continue e;w.push(O)}else P(f,N,v)||w.push(O)}return w}return Jf=u,Jf}function Th(){return Th=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(i[r]=n[r])}return i},Th.apply(null,arguments)}function jO(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,_h(i,e)}var dw=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function LO(i,e){return!!(i===e||dw(i)&&dw(e))}function AO(i,e){if(i.length!==e.length)return!1;for(var n=0;n<i.length;n++)if(!LO(i[n],e[n]))return!1;return!0}function eh(i,e){e===void 0&&(e=AO);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=i.apply(this,u),l=!0,n=this,r=u),s}return c}var MO=typeof performance=="object"&&typeof performance.now=="function",pw=MO?function(){return performance.now()}:function(){return Date.now()};function fw(i){cancelAnimationFrame(i.id)}function $O(i,e){var n=pw();function r(){pw()-n>=e?i.call(null):s.id=requestAnimationFrame(r)}var s={id:requestAnimationFrame(r)};return s}var th=-1;function hw(i){if(i===void 0&&(i=!1),th===-1||i){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),th=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return th}var qi=null;function gw(i){if(i===void 0&&(i=!1),qi===null||i){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?qi="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?qi="negative":qi="positive-ascending"),document.body.removeChild(e),qi}return qi}var FO=150,zO=function(e,n){return e};function qO(i){var e,n=i.getItemOffset,r=i.getEstimatedTotalSize,s=i.getItemSize,l=i.getOffsetForIndexAndAlignment,c=i.getStartIndexForOffset,u=i.getStopIndexForStartIndex,p=i.initInstanceProps,f=i.shouldResetStyleCacheOnItemSizeChange,y=i.validateProps;return e=(function(v){jO(S,v);function S(T){var b;return b=v.call(this,T)||this,b._instanceProps=p(b.props,JS(b)),b._outerRef=void 0,b._resetIsScrollingTimeoutId=null,b.state={instance:JS(b),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof b.props.initialScrollOffset=="number"?b.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},b._callOnItemsRendered=void 0,b._callOnItemsRendered=eh(function(w,D,O,N){return b.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:D,visibleStartIndex:O,visibleStopIndex:N})}),b._callOnScroll=void 0,b._callOnScroll=eh(function(w,D,O){return b.props.onScroll({scrollDirection:w,scrollOffset:D,scrollUpdateWasRequested:O})}),b._getItemStyle=void 0,b._getItemStyle=function(w){var D=b.props,O=D.direction,N=D.itemSize,M=D.layout,F=b._getItemStyleCache(f&&N,f&&M,f&&O),j;if(F.hasOwnProperty(w))j=F[w];else{var L=n(b.props,w,b._instanceProps),z=s(b.props,w,b._instanceProps),U=O==="horizontal"||M==="horizontal",H=O==="rtl",K=U?L:0;F[w]=j={position:"absolute",left:H?void 0:K,right:H?K:void 0,top:U?0:L,height:U?"100%":z,width:U?z:"100%"}}return j},b._getItemStyleCache=void 0,b._getItemStyleCache=eh(function(w,D,O){return{}}),b._onScrollHorizontal=function(w){var D=w.currentTarget,O=D.clientWidth,N=D.scrollLeft,M=D.scrollWidth;b.setState(function(F){if(F.scrollOffset===N)return null;var j=b.props.direction,L=N;if(j==="rtl")switch(gw()){case"negative":L=-N;break;case"positive-descending":L=M-O-N;break}return L=Math.max(0,Math.min(L,M-O)),{isScrolling:!0,scrollDirection:F.scrollOffset<L?"forward":"backward",scrollOffset:L,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._onScrollVertical=function(w){var D=w.currentTarget,O=D.clientHeight,N=D.scrollHeight,M=D.scrollTop;b.setState(function(F){if(F.scrollOffset===M)return null;var j=Math.max(0,Math.min(M,N-O));return{isScrolling:!0,scrollDirection:F.scrollOffset<j?"forward":"backward",scrollOffset:j,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._outerRefSetter=function(w){var D=b.props.outerRef;b._outerRef=w,typeof D=="function"?D(w):D!=null&&typeof D=="object"&&D.hasOwnProperty("current")&&(D.current=w)},b._resetIsScrollingDebounced=function(){b._resetIsScrollingTimeoutId!==null&&fw(b._resetIsScrollingTimeoutId),b._resetIsScrollingTimeoutId=$O(b._resetIsScrolling,FO)},b._resetIsScrolling=function(){b._resetIsScrollingTimeoutId=null,b.setState({isScrolling:!1},function(){b._getItemStyleCache(-1,null)})},b}S.getDerivedStateFromProps=function(b,w){return BO(b,w),y(b),null};var P=S.prototype;return P.scrollTo=function(b){b=Math.max(0,b),this.setState(function(w){return w.scrollOffset===b?null:{scrollDirection:w.scrollOffset<b?"forward":"backward",scrollOffset:b,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},P.scrollToItem=function(b,w){w===void 0&&(w="auto");var D=this.props,O=D.itemCount,N=D.layout,M=this.state.scrollOffset;b=Math.max(0,Math.min(b,O-1));var F=0;if(this._outerRef){var j=this._outerRef;N==="vertical"?F=j.scrollWidth>j.clientWidth?hw():0:F=j.scrollHeight>j.clientHeight?hw():0}this.scrollTo(l(this.props,b,w,M,this._instanceProps,F))},P.componentDidMount=function(){var b=this.props,w=b.direction,D=b.initialScrollOffset,O=b.layout;if(typeof D=="number"&&this._outerRef!=null){var N=this._outerRef;w==="horizontal"||O==="horizontal"?N.scrollLeft=D:N.scrollTop=D}this._callPropsCallbacks()},P.componentDidUpdate=function(){var b=this.props,w=b.direction,D=b.layout,O=this.state,N=O.scrollOffset,M=O.scrollUpdateWasRequested;if(M&&this._outerRef!=null){var F=this._outerRef;if(w==="horizontal"||D==="horizontal")if(w==="rtl")switch(gw()){case"negative":F.scrollLeft=-N;break;case"positive-ascending":F.scrollLeft=N;break;default:var j=F.clientWidth,L=F.scrollWidth;F.scrollLeft=L-j-N;break}else F.scrollLeft=N;else F.scrollTop=N}this._callPropsCallbacks()},P.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&fw(this._resetIsScrollingTimeoutId)},P.render=function(){var b=this.props,w=b.children,D=b.className,O=b.direction,N=b.height,M=b.innerRef,F=b.innerElementType,j=b.innerTagName,L=b.itemCount,z=b.itemData,U=b.itemKey,H=U===void 0?zO:U,K=b.layout,ie=b.outerElementType,ee=b.outerTagName,ae=b.style,ne=b.useIsScrolling,ce=b.width,de=this.state.isScrolling,V=O==="horizontal"||K==="horizontal",Y=V?this._onScrollHorizontal:this._onScrollVertical,I=this._getRangeToRender(),W=I[0],se=I[1],re=[];if(L>0)for(var oe=W;oe<=se;oe++)re.push(E.createElement(w,{data:z,key:H(oe,z),index:oe,isScrolling:ne?de:void 0,style:this._getItemStyle(oe)}));var _e=r(this.props,this._instanceProps);return E.createElement(ie||ee||"div",{className:D,onScroll:Y,ref:this._outerRefSetter,style:Th({position:"relative",height:N,width:ce,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:O},ae)},E.createElement(F||j||"div",{children:re,ref:M,style:{height:V?"100%":_e,pointerEvents:de?"none":void 0,width:V?_e:"100%"}}))},P._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var b=this.props.itemCount;if(b>0){var w=this._getRangeToRender(),D=w[0],O=w[1],N=w[2],M=w[3];this._callOnItemsRendered(D,O,N,M)}}if(typeof this.props.onScroll=="function"){var F=this.state,j=F.scrollDirection,L=F.scrollOffset,z=F.scrollUpdateWasRequested;this._callOnScroll(j,L,z)}},P._getRangeToRender=function(){var b=this.props,w=b.itemCount,D=b.overscanCount,O=this.state,N=O.isScrolling,M=O.scrollDirection,F=O.scrollOffset;if(w===0)return[0,0,0,0];var j=c(this.props,F,this._instanceProps),L=u(this.props,j,F,this._instanceProps),z=!N||M==="backward"?Math.max(1,D):1,U=!N||M==="forward"?Math.max(1,D):1;return[Math.max(0,j-z),Math.max(0,Math.min(w-1,L+U)),j,L]},S})(E.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var BO=function(e,n){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,n.instance},GO=qO({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,f=e.itemCount,y=e.itemSize,v=e.layout,S=e.width,P=u==="horizontal"||v==="horizontal",T=P?S:p,b=Math.max(0,f*y-T),w=Math.min(b,n*y),D=Math.max(0,n*y-T+y+c);switch(r==="smart"&&(s>=D-T&&s<=w+T?r="auto":r="center"),r){case"start":return w;case"end":return D;case"center":{var O=Math.round(D+(w-D)/2);return O<Math.ceil(T/2)?0:O>b+Math.floor(T/2)?b:O}default:return s>=D&&s<=w?s:s<D?D:w}},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,f=e.width,y=s==="horizontal"||p==="horizontal",v=n*u,S=y?f:l,P=Math.ceil((S+r-v)/u);return Math.max(0,Math.min(c-1,n+P-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const t0={PREFIX:`${Oe}-tag`},eo={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 WO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const wt=t0.PREFIX,n0=eo.TAG_COLOR,r0=eo.TAG_SIZE,i0=eo.TAG_TYPE,UO=eo.AVATAR_SHAPE;class $t extends E.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),Ir(e);break;case"Enter":r(e),Ir(e);break;case"Escape":e.target.blur();break}s&&s(e)}renderAvatar(){const{avatarShape:e,avatarSrc:n}=this.props;return _.createElement(Vi,{src:n,shape:e})}render(){const e=this.props,{tagKey:n,children:r,size:s,color:l,closable:c,visible:u,onClose:p,onClick:f,className:y,type:v,shape:S,avatarSrc:P,avatarShape:T,tabIndex:b,prefixIcon:w,suffixIcon:D}=e,O=WO(e,["tagKey","children","size","color","closable","visible","onClose","onClick","className","type","shape","avatarSrc","avatarShape","tabIndex","prefixIcon","suffixIcon"]),{visible:N}=this.state,M=f!==$t.defaultProps.onClick||c,F={role:"button",tabIndex:b||0,onKeyDown:this.handleKeyDown},j=Object.assign(Object.assign({},O),{onClick:f,tabIndex:b,className:Q(wt,{[`${wt}-default`]:s==="default",[`${wt}-small`]:s==="small",[`${wt}-large`]:s==="large",[`${wt}-square`]:S==="square",[`${wt}-circle`]:S==="circle",[`${wt}-${v}`]:v,[`${wt}-${l}-${v}`]:l&&v,[`${wt}-closable`]:c,[`${wt}-invisible`]:!N,[`${wt}-avatar-${T}`]:P},y)}),L=M?Object.assign(Object.assign({},j),F):j,z=c?_.createElement("div",{className:`${wt}-close`,onClick:K=>this.close(K,r,n)},_.createElement(Xh,{size:"small"})):null,U=at(r),H=Q(`${wt}-content`,`${wt}-content-${U?"ellipsis":"center"}`);return _.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||U?`${c?"Closable ":""}Tag: ${r}`:""},L),w?_.createElement("div",{className:`${wt}-prefix-icon`},w):null,P?this.renderAvatar():null,_.createElement("div",{className:H},r),D?_.createElement("div",{className:`${wt}-suffix-icon`},D):null,z)}}$t.defaultProps={size:r0[0],color:n0[0],closable:!1,type:i0[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};$t.propTypes={children:g.node,tagKey:g.oneOfType([g.string,g.number]),size:g.oneOf(r0),color:g.oneOf(n0),type:g.oneOf(i0),closable:g.bool,visible:g.bool,onClose:g.func,onClick:g.func,prefixIcon:g.node,suffixIcon:g.node,style:g.object,className:g.string,avatarSrc:g.string,avatarShape:g.oneOf(UO),"aria-label":g.string};var HO=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};Bn.Consumer;class fg extends _.Component{constructor(e){super(e)}renderChildren(){const{direction:e,children:n}=this.props;return e==="rtl"?_.createElement("div",{className:`${Oe}-rtl`},n):n}render(){const e=this.props,{children:n,direction:r}=e,s=HO(e,["children","direction"]);return _.createElement(Bn.Provider,{value:Object.assign({direction:r},s)},this.renderChildren())}}fg.propTypes={locale:g.object,timeZone:g.oneOfType([g.string,g.number]),getPopupContainer:g.func,direction:g.oneOf(["ltr","rtl"])};fg.defaultProps={locale:kh,direction:"ltr"};var VO=Function.prototype.toString,nh=Object.create,KO=Object.prototype.toString,QO=(function(){function i(){this._keys=[],this._values=[]}return i.prototype.has=function(e){return!!~this._keys.indexOf(e)},i.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},i.prototype.set=function(e,n){this._keys.push(e),this._values.push(n)},i})();function YO(){return new QO}function XO(){return new WeakMap}var ZO=typeof WeakMap<"u"?XO:YO;function hg(i){if(!i)return nh(null);var e=i.constructor;if(e===Object)return i===Object.prototype?{}:nh(i);if(e&&~VO.call(e).indexOf("[native code]"))try{return new e}catch{}return nh(i)}function JO(i){var e="";return i.global&&(e+="g"),i.ignoreCase&&(e+="i"),i.multiline&&(e+="m"),i.unicode&&(e+="u"),i.sticky&&(e+="y"),e}function e2(i){return i.flags}var t2=/test/g.flags==="g"?e2:JO;function o0(i){var e=KO.call(i);return e.substring(8,e.length-1)}function n2(i){return i[Symbol.toStringTag]||o0(i)}var r2=typeof Symbol<"u"?n2:o0,i2=Object.defineProperty,o2=Object.getOwnPropertyDescriptor,s0=Object.getOwnPropertyNames,gg=Object.getOwnPropertySymbols,a0=Object.prototype,l0=a0.hasOwnProperty,s2=a0.propertyIsEnumerable,c0=typeof gg=="function";function a2(i){return s0(i).concat(gg(i))}var l2=c0?a2:s0;function wl(i,e,n){for(var r=l2(i),s=0,l=r.length,c=void 0,u=void 0;s<l;++s)if(c=r[s],!(c==="callee"||c==="caller")){if(u=o2(i,c),!u){e[c]=n.copier(i[c],n);continue}!u.get&&!u.set&&(u.value=n.copier(u.value,n));try{i2(e,c,u)}catch{e[c]=u.value}}return e}function c2(i,e){var n=new e.Constructor;e.cache.set(i,n);for(var r=0,s=i.length;r<s;++r)n[r]=e.copier(i[r],e);return n}function u2(i,e){var n=new e.Constructor;return e.cache.set(i,n),wl(i,n,e)}function u0(i,e){return i.slice(0)}function d2(i,e){return i.slice(0,i.size,i.type)}function p2(i,e){return new e.Constructor(u0(i.buffer))}function f2(i,e){return new e.Constructor(i.getTime())}function d0(i,e){var n=new e.Constructor;return e.cache.set(i,n),i.forEach(function(r,s){n.set(s,e.copier(r,e))}),n}function h2(i,e){return wl(i,d0(i,e),e)}function g2(i,e){var n=hg(e.prototype);e.cache.set(i,n);for(var r in i)l0.call(i,r)&&(n[r]=e.copier(i[r],e));return n}function m2(i,e){var n=hg(e.prototype);e.cache.set(i,n);for(var r in i)l0.call(i,r)&&(n[r]=e.copier(i[r],e));for(var s=gg(i),l=0,c=s.length,u=void 0;l<c;++l)u=s[l],s2.call(i,u)&&(n[u]=e.copier(i[u],e));return n}var y2=c0?m2:g2;function v2(i,e){var n=hg(e.prototype);return e.cache.set(i,n),wl(i,n,e)}function rh(i,e){return new e.Constructor(i.valueOf())}function b2(i,e){var n=new e.Constructor(i.source,t2(i));return n.lastIndex=i.lastIndex,n}function Ga(i,e){return i}function p0(i,e){var n=new e.Constructor;return e.cache.set(i,n),i.forEach(function(r){n.add(e.copier(r,e))}),n}function S2(i,e){return wl(i,p0(i,e),e)}var w2=Array.isArray,mg=Object.assign,C2=Object.getPrototypeOf||(function(i){return i.__proto__}),f0={array:c2,arrayBuffer:u0,blob:d2,dataView:p2,date:f2,error:Ga,map:d0,object:y2,regExp:b2,set:p0},_2=mg({},f0,{array:u2,map:h2,object:v2,set:S2});function k2(i){return{Arguments:i.object,Array:i.array,ArrayBuffer:i.arrayBuffer,Blob:i.blob,Boolean:rh,DataView:i.dataView,Date:i.date,Error:i.error,Float32Array:i.arrayBuffer,Float64Array:i.arrayBuffer,Int8Array:i.arrayBuffer,Int16Array:i.arrayBuffer,Int32Array:i.arrayBuffer,Map:i.map,Number:rh,Object:i.object,Promise:Ga,RegExp:i.regExp,Set:i.set,String:rh,WeakMap:Ga,WeakSet:Ga,Uint8Array:i.arrayBuffer,Uint8ClampedArray:i.arrayBuffer,Uint16Array:i.arrayBuffer,Uint32Array:i.arrayBuffer,Uint64Array:i.arrayBuffer}}function h0(i){var e=mg({},f0,i),n=k2(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=C2(c),u.Constructor=u.prototype&&u.prototype.constructor,!u.Constructor||u.Constructor===Object)return s(c,u);if(w2(c))return r(c,u);var p=n[r2(c)];return p?p(c,u):typeof c.then=="function"?c:s(c,u)}return function(u){return l(u,{Constructor:void 0,cache:ZO(),copier:l,prototype:void 0})}}function P2(i){return h0(mg({},_2,i))}P2({});var Ya=h0({});const T2={PREFIX:`${Oe}`};var E2=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const ii=T2.PREFIX,x2=i=>{const{layout:e="horizontal",dashed:n,align:r="center",className:s,margin:l,style:c,children:u}=i,p=E2(i,["layout","dashed","align","className","margin","style","children"]),f=Q(`${ii}-divider`,s,{[`${ii}-divider-horizontal`]:e==="horizontal",[`${ii}-divider-vertical`]:e==="vertical",[`${ii}-divider-dashed`]:!!n,[`${ii}-divider-with-text`]:u&&e==="horizontal",[`${ii}-divider-with-text-${r}`]:u&&e==="horizontal"});let y={};return l!==void 0&&(e==="vertical"?y={marginLeft:l,marginRight:l}:e==="horizontal"&&(y={marginTop:l,marginBottom:l})),_.createElement("div",Object.assign({},p,{className:f,style:Object.assign(Object.assign({},y),c)}),u&&e==="horizontal"?typeof u=="string"?_.createElement("span",{className:`${ii}-divider_inner-text`,"x-semi-prop":"children"},u):u:null)},Me={DIALOG:`${Oe}-modal`},mw={SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function D2(i){return i!==null&&typeof i=="object"}function yw(i){return D2(i)&&typeof i.then=="function"}class O2 extends zt{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);yw(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);yw(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 yg extends zt{constructor(e){super(Object.assign(Object.assign({},yg.defaultAdapter),e)),this.handleKeyDown=n=>{const{closeOnEsc:r}=this.getProps();if(r&&n.keyCode===Or.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 ih,vw;function I2(){if(vw)return ih;vw=1;var i=NO(),e=EC(),n=wC(),r=e(function(s,l){return n(s)?i(s,l):[]});return ih=r,ih}var R2=I2();const N2=Ye(R2);class Rr{constructor(e,n){var r;this.addFocusRedirectListener=s=>(this.focusRedirectListenerList.push(s),()=>this.removeFocusRedirectListener(s)),this.removeFocusRedirectListener=s=>{this.focusRedirectListenerList=N2(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=Rr.getFocusableElements(this.container);l.length&&(s.shiftKey?this.handleContainerShiftTabKeyDown(l,s):this.handleContainerTabKeyDown(l,s))}},this.handleContainerTabKeyDown=(s,l)=>{const c=Rr.getActiveElement(),u=s[s.length-1]===c,p=s[0];u&&this.shouldFocusRedirect(p)&&this.focusElement(p,l)},this.handleContainerShiftTabKeyDown=(s,l)=>{const c=Rr.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(!ai(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 oh=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};let j2=0;class Cl extends _t{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=oh(this.props,[]),{mask:r,maskClassName:s}=n;if(r){const l=Q(`${Me.DIALOG}-mask`,{});return _.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:Q(l,s),style:n.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:n,closeIcon:r}=this.props;let s;if(n){const l=r||_.createElement(Xh,{"x-semi-prop":"closeIcon"});s=_.createElement(yi,{"aria-label":"close",className:`${Me.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?_.createElement("span",{className:`${Me.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:_.createElement("div",{className:`${Me.DIALOG}-header`},s,_.createElement(Qe.Title,{heading:5,className:`${Me.DIALOG}-title`,id:`${Me.DIALOG}-title`,"x-semi-prop":"title"},n),r)},this.renderBody=()=>{const{bodyStyle:n,children:r,title:s}=this.props,l=Q(`${Me.DIALOG}-body`,{[`${Me.DIALOG}-withIcon`]:this.props.icon}),c=this.renderCloseBtn(),u=this.renderIcon();return s!=null||"header"in this.props?_.createElement("div",{className:l,id:`${Me.DIALOG}-body`,style:n,"x-semi-prop":"children"},r):_.createElement("div",{className:`${Me.DIALOG}-body-wrapper`},u,_.createElement("div",{className:l,style:n,"x-semi-prop":"children"},r),c)},this.getDialogElement=()=>{const n=oh(this.props,[]),r={},s=Q(`${Me.DIALOG}`,{[`${Me.DIALOG}-centered`]:n.centered,[`${Me.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?_.createElement("div",{className:`${Me.DIALOG}-footer`,"x-semi-prop":"footer"},n.footer):null,p=_.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Me.DIALOG}-title`,"aria-describedby":`${Me.DIALOG}-body`,onAnimationEnd:n.onAnimationEnd,className:Q([`${Me.DIALOG}-content`,n.contentClassName,{[`${Me.DIALOG}-content-fullScreen`]:n.isFullScreen,[`${Me.DIALOG}-content-height-set`]:n.height||Te(n.style,"height")}])},c,l,u);return _.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:Rr.getActiveElement()},this.foundation=new yg(this.adapter),this.dialogId=`dialog-${j2++}`,this.modalDialogRef=_.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=Rr.getActiveElement();l=this.modalDialogRef.current.contains(c),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Rr(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=Te(e,"focus");Qt(r)&&e.focus({preventScroll:n})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const n=Rr.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=oh(n,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:f}=this.context,y=Q(s,{[`${Me.DIALOG}-popup`]:l&&l()!==((e=globalThis?.document)===null||e===void 0?void 0:e.body)&&!c,[`${Me.DIALOG}-fixed`]:c,[`${Me.DIALOG}-rtl`]:f==="rtl"}),v=u(),S=this.getDataAttr(p),P=_.createElement("div",Object.assign({className:y},S),this.getMaskElement(),_.createElement("div",Object.assign({role:"none",className:Q({[`${Me.DIALOG}-wrap`]:!0,[`${Me.DIALOG}-wrap-center`]:this.props.centered}),onClick:r?this.onMaskClick:null,onMouseUp:r?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return v&&v.Provider?_.createElement(v.Provider,{value:v.value},P):P}}Cl.contextType=Bn;Cl.propTypes={close:g.func,getContainerContext:g.func,contentClassName:g.string,maskClassName:g.string,onAnimationEnd:g.func,preventScroll:g.bool};Cl.defaultProps={close:me,getContainerContext:me,contentClassName:"",maskClassName:""};var L2=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const g0=i=>{const[e,n]=E.useState(!0),[r,s]=E.useState(),[l,c]=E.useState(),{direction:u}=i,{title:p,content:f,icon:y,type:v,onCancel:S,onOk:P,className:T}=i,b=L2(i,["title","content","icon","type","onCancel","onOk","className"]),w=E.useCallback(z=>{const U=P&&P(z);U&&U.then?(s(!0),U.then(function(){n(!1),s(!1)},H=>{s(!1)})):n(!1)},[P]),D=E.useCallback(z=>{const U=S&&S(z);U&&U.then?(c(!0),U.then(function(){n(!1),c(!1)},H=>{c(!1)})):n(!1)},[S]),O=`${Me.DIALOG}-confirm`,N=Q(T,O,{[`${O}-rtl`]:u==="rtl"}),M=Q(`${Me.DIALOG}-${v}`),F=An(y)?_.cloneElement(y,{className:`${O}-icon ${M}-icon`,size:"extra-large"}):y,j=p==null?null:_.createElement("span",{className:`${O}-title-text`},p),L=Q(`${O}-content`,{[`${O}-content-withIcon`]:i.icon});return _.createElement(Ft,Object.assign({className:N,title:j,confirmLoading:r,cancelLoading:l,onOk:w,onCancel:D,icon:F,visible:e},b),_.createElement("div",{className:L,"x-semi-prop":"content"},f))};function ws(i){const e=document.createElement("div");document.body.appendChild(e);let n=Object.assign({},i);const r=()=>{Jn.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let p=0;p<li.length;p++)if(li[p]===l){li.splice(p,1);break}};function s(u){const{afterClose:p}=u;Jn.render(_.createElement(g0,Object.assign({},u,{afterClose:function(){p?.(...arguments),r()},motion:i.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),li.push(l),{destroy:l,update:c}}function m0(i){return Object.assign({type:"info",icon:_.createElement(Zh,null)},i)}function y0(i){return Object.assign({type:"success",icon:_.createElement(HC,null)},i)}function v0(i){return Object.assign({type:"warning",icon:_.createElement(Yh,null)},i)}function b0(i){return Object.assign({type:"error",icon:_.createElement(Qh,null),okButtonProps:Object.assign({type:"danger"},i.okButtonProps)},hi(i,["okButtonProps"]))}function S0(i){return Object.assign({type:"confirm",icon:_.createElement(mD,null)},i)}var A2=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const M2=(i,e)=>{var{afterClose:n,config:r}=i;A2(i,["afterClose","config"]);const[s,l]=_.useState(r);_.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 _.createElement(g0,Object.assign({},s,{afterClose:c}))},$2=_.forwardRef(M2);let bw=0;function F2(){const[i,e]=_.useState([]);function n(r){return e(s=>[...s,r]),()=>{e(s=>s.filter(l=>l!==r))}}return[i,n]}function z2(){const[i,e]=F2();function n(r){return function(l){bw+=1;const c=_.createRef();let u;const p=_.createElement($2,{key:`semi-modal-${bw}`,config:r(l),ref:c,afterClose:()=>{u()}});return u=e(p),{destroy:()=>{c.current&&c.current.destroy()},update:f=>{c.current&&c.current.update(f)}}}}return[{info:n(m0),success:n(y0),error:n(b0),warning:n(v0),confirm:n(S0)},_.createElement(_.Fragment,null,i)]}var q2=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};let li=[];class Ft extends _t{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,f=y=>{var v;return u?_.createElement(tt,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"}:{}),(v=this.props.cancelButtonProps)===null||v===void 0?void 0:v.style),"x-semi-children-alias":"cancelText"}),s||y.cancel):null};return _.createElement(Lr,{componentName:"Modal"},(y,v)=>_.createElement("div",{className:Q({[`${Me.DIALOG}-footerfill`]:p})},f(y),_.createElement(tt,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||y.confirm)))},this.renderDialog=()=>{var n;let r=this.props,{footer:s,className:l,motion:c,maskStyle:u,keepDOM:p,style:f,zIndex:y,getPopupContainer:v,visible:S,modalContentClass:P}=r,T=q2(r,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible","modalContentClass"]),b=f;const w=u,D="footer"in this.props?s:this.renderFooter();let O={zIndex:y};v&&v()!==((n=globalThis?.document)===null||n===void 0?void 0:n.body)&&(O={zIndex:y,position:"static"});const N=Q(l,{[`${Me.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),_.createElement(us,{motion:this.props.motion,animationState:S?"enter":"leave",startClassName:S?`${Me.DIALOG}-content-animate-show`:`${Me.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},F=>{let{animationClassName:j,animationEventsNeedBind:L}=F;return _.createElement(us,{motion:this.props.motion,animationState:S?"enter":"leave",startClassName:S?`${Me.DIALOG}-mask-animate-show`:`${Me.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},z=>{let{animationClassName:U,animationEventsNeedBind:H}=z;return M?_.createElement(vs,{style:O,getPopupContainer:v}," ",_.createElement(Cl,Object.assign({},T,{contentExtraProps:L,maskExtraProps:H,isFullScreen:this.state.isFullScreen,contentClassName:`${j} ${P}`,maskClassName:U,className:N,getPopupContainer:v,maskStyle:w,style:b,ref:this.modalRef,footer:D,onClose:this.handleCancel}))):_.createElement(_.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new O2(this.adapter),this.modalRef=_.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||me)},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=nx(),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()}}Ft.propTypes={mask:g.bool,closable:g.bool,centered:g.bool,visible:g.bool,width:g.oneOfType([g.string,g.number]),height:g.oneOfType([g.string,g.number]),confirmLoading:g.bool,cancelLoading:g.bool,okText:g.string,okType:g.string,cancelText:g.string,maskClosable:g.bool,onCancel:g.func,onOk:g.func,modalRender:g.func,afterClose:g.func,okButtonProps:g.object,cancelButtonProps:g.object,style:g.object,className:g.string,maskStyle:g.object,bodyStyle:g.object,zIndex:g.number,title:g.node,icon:g.node,header:g.node,footer:g.node,hasCancel:g.bool,motion:g.bool,children:g.node,getPopupContainer:g.func,getContainerContext:g.func,maskFixed:g.bool,closeIcon:g.node,closeOnEsc:g.bool,size:g.oneOf(mw.SIZE),keepDOM:g.bool,lazyRender:g.bool,direction:g.oneOf(mw.directions),fullScreen:g.bool,footerFill:g.bool};Ft.__SemiComponentName__="Modal";Ft.defaultProps=or(Ft.__SemiComponentName__,{zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:me,onOk:me,afterClose:me,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1});Ft.useModal=z2;Ft.info=function(i){return ws(m0(i))};Ft.success=function(i){return ws(y0(i))};Ft.error=function(i){return ws(b0(i))};Ft.warning=function(i){return ws(v0(i))};Ft.confirm=function(i){return ws(S0(i))};Ft.destroyAll=function(){for(let e=0,n=li.length;e<n;e++){const r=li[e];r&&r()}li=[]};class B2 extends zt{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 as={WRAPPER:`${Oe}-notification-wrapper`,LIST:`${Oe}-notification-list`,NOTICE:`${Oe}-notification-notice`},w0={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},G2={duration:3};class vg extends zt{constructor(e){super(Object.assign(Object.assign({},vg.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&&Nr(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 W2=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const Kt=as.NOTICE,{duration:U2}=G2,{types:C0,themes:H2,directions:V2}=w0;class pi extends _t{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 vg(this.adapter)}componentWillUnmount(){this.foundation.destroy()}renderTypeIcon(){const{type:e,icon:n}=this.props;let s={warning:_.createElement(Yh,{size:"large"}),success:_.createElement(HC,{size:"large"}),info:_.createElement(Zh,{size:"large"}),error:_.createElement(Qh,{size:"large"})}[e];const l=Q({[`${Kt}-icon`]:!0,[`${Kt}-${e}`]:!0});return n&&(s=n),s?_.createElement("div",{className:l,"x-semi-prop":"icon"},An(s)?_.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:f,onCloseClick:y,className:v,showClose:S,style:P}=r;W2(r,["content","title","theme","position","type","id","onCloseClick","className","showClose","style"]);const{visible:T}=this.state,b=Q(Kt,v,{[`${Kt}-close`]:!T,[`${Kt}-icon-show`]:C0.includes(p),[`${Kt}-${p}`]:!0,[`${Kt}-${c}`]:c==="light",[`${Kt}-rtl`]:e==="rtl"}),w=cs({});return _.createElement("div",{className:b,style:P,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:this.notifyClick,"aria-labelledby":w,role:"alert",onAnimationEnd:this.props.onAnimationEnd,onAnimationStart:this.props.onAnimationStart},_.createElement("div",null,this.renderTypeIcon()),_.createElement("div",{className:`${Kt}-inner`},_.createElement("div",{className:`${Kt}-content-wrapper`},l?_.createElement("div",{id:w,className:`${Kt}-title`,"x-semi-prop":"title"},l):"",s?_.createElement("div",{className:`${Kt}-content`,"x-semi-prop":"content"},s):""),S&&_.createElement(yi,{className:`${Kt}-icon-close`,type:"tertiary",icon:_.createElement(Xh,null),theme:"borderless",size:"small",onClick:this.close})))}}pi.contextType=Bn;pi.propTypes={duration:g.number,id:g.string,title:g.node,content:g.node,type:g.oneOf(C0),theme:g.oneOf(H2),icon:g.node,onClick:g.func,onClose:g.func,onCloseClick:g.func,showClose:g.bool,close:g.func,direction:g.oneOf(V2)};pi.__SemiComponentName__="Notification";pi.defaultProps=or(pi.__SemiComponentName__,{duration:U2,id:"",close:me,onClose:me,onClick:me,onCloseClick:me,content:"",title:"",showClose:!0,theme:"normal"});var K2=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const Q2=(i,e)=>{var{afterClose:n}=i,r=K2(i,["afterClose"]);const[s,l]=E.useState(!0),c=()=>{l(!1)};return _.useImperativeHandle(e,()=>({close:()=>{l(!1)}})),E.useEffect(()=>{s||n(String(r.id))},[s]),s?_.createElement(pi,Object.assign({},r,{onHookClose:c})):null},Y2=_.forwardRef(Q2),Ko={duration:3,position:"topRight",motion:!0,content:"",title:"",zIndex:1010};function X2(){const[i,e]=E.useState([]);function n(s,l){return e(c=>[{element:s,config:l},...c]),c=>{e(u=>u.filter(p=>{let{config:f}=p;return f.id!==c}))}}function r(){const s={top:[],topLeft:[],topRight:[],bottom:[],bottomLeft:[],bottomRight:[]};return i.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?_.createElement("div",{key:c,className:Q(as.LIST),placement:c},u):null})}return[r(),n]}function Z2(){const[i,e]=X2(),n=new Map,r=l=>{const c=Ka("semi_notice_"),u=Object.assign(Object.assign({},l),{id:c});let p;const f=v=>{n.set(c,v)},y=_.createElement(Y2,Object.assign({key:c},u,{afterClose:v=>p(v),ref:f}));return p=e(y,Object.assign({},u)),c};return[{success:l=>r(Object.assign(Object.assign(Object.assign({},Ko),l),{type:"success"})),info:l=>r(Object.assign(Object.assign(Object.assign({},Ko),l),{type:"info"})),error:l=>r(Object.assign(Object.assign(Object.assign({},Ko),l),{type:"error"})),warning:l=>r(Object.assign(Object.assign(Object.assign({},Ko),l),{type:"warning"})),open:l=>r(Object.assign(Object.assign(Object.assign({},Ko),l),{type:"default"})),close:l=>{const c=n.get(l);c&&c.close()}},_.createElement(_.Fragment,null,i)]}let wn=null;const Bi={duration:3,position:"topRight",motion:!0,content:"",title:"",zIndex:1010};class tr extends _t{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=Q(as.LIST);if(r.length){const p=n.setPosInStyle(r[0]);return _.createElement("div",{placement:s,key:s,className:u,style:p},r.map((f,y)=>{const v=l.find(S=>S.id===f.id)!==void 0;return _.createElement(us,{key:f.id,animationState:v?"leave":"enter",startClassName:`${as.NOTICE}-animation-${v?"hide":"show"}_${s}`},S=>{let{animationClassName:P,animationEventsNeedBind:T,isAnimating:b}=S;return v&&!b?null:_.createElement(pi,Object.assign({},f,{ref:w=>{w&&c.some(D=>D.id===w.props.id)&&w.foundation.restartCloseTimer()},className:Q({[f.className]:!!f.className,[P]:!0})},T,{style:Object.assign({},f.style),close:n.remove}))})}))}return null},this.state={notices:[],removedItems:[],updatedItems:[]},this.noticeStorage=[],this.removeItemStorage=[],this.foundation=new B2(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({},Bi),e);const r=(n=e.id)!==null&&n!==void 0?n:Ka("notification");if(wn)wn.has(`${r}`)?wn.update(r,e):wn.add(Object.assign(Object.assign({},e),{id:r}));else{const{getPopupContainer:s}=e,l=document.createElement("div");this.wrapperId||(this.wrapperId=Ka("notification-wrapper").slice(0,32)),l.className=as.WRAPPER,l.id=this.wrapperId,l.style.zIndex=String(typeof e.zIndex=="number"?e.zIndex:Bi.zIndex),s?s().appendChild(l):document.body.appendChild(l),Jn.render(_.createElement(tr,{ref:c=>wn=c}),l,()=>{wn.add(Object.assign(Object.assign({},e),{id:r}))})}return r}static removeNotice(e){return wn&&wn.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(wn){wn.destroyAll();const e=document.querySelector(`#${this.wrapperId}`);Jn.unmountComponentAtNode(e),e&&e.parentNode.removeChild(e),wn=null,this.wrapperId=null}}static config(e){["top","left","bottom","right"].map(n=>{n in e&&(Bi[n]=e[n])}),typeof e.zIndex=="number"&&(Bi.zIndex=e.zIndex),typeof e.duration=="number"&&(Bi.duration=e.duration),typeof e.position=="string"&&(Bi.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",f=c.position||p;s[f].push(c)});const l=Object.entries(s).map(c=>{const u=c[0],p=c[1];return this.renderNoticeInPosition(p,u,n,r)});return _.createElement(_.Fragment,null,l)}}tr.contextType=Bn;tr.propTypes={style:g.object,className:g.string,direction:g.oneOf(w0.directions)};tr.defaultProps={};tr.useNotification=Z2;const J2={PREFIX:Oe+"-overflow-list"},Sw={COLLAPSE:"collapse",SCROLL:"scroll"},ww={START:"start",END:"end"},eI={GROW:1},ci={BOUNDARY_SET:Object.values(ww),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(Sw),MODE_MAP:Sw,BOUNDARY_MAP:ww,OVERFLOW_DIR:eI},Cw={MINIMUM_HTML_ELEMENT_WIDTH:4};class bg extends _.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&&ai(s)&&this.observer.observe(s)})}render(){const{children:e}=this.props;return e}}bg.propTypes={onIntersect:g.func,option:g.object,root:g.any,threshold:g.number,rootMargin:g.string,items:g.object};bg.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const tI=ci.BOUNDARY_MAP;class nI extends zt{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 Ya(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:f}=p;return!!n.get(f)}),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=Ya(this.getState("visibleState")),r={};e.forEach(p=>{const f=Te(p,"target.dataset.scrollkey"),y=p.isIntersecting;r[f]=p,n.set(f,y)});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 f=r,y=0,v=!1;for(const S of this._adapter.getItemSizeMap().values()){if(f+=S,f>s){v=!0;break}if(y===u.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:u.length-1,visible:u,overflow:[]});break}y++}if(v){const S=Math.max(e,y),P=n===tI.START,T=P?this.getReversedItems().slice(0,S).reverse():u.slice(0,S),b=P?this.getReversedItems().slice(S).reverse():u.slice(S);this._adapter.updateStates({overflowStatus:"overflowed",pivot:S,visible:T,overflow:b}),l!==S&&p(b);return}}}const Qo=J2.PREFIX,sh=ci.BOUNDARY_MAP,_w=ci.OVERFLOW_DIR,Yo=ci.MODE_MAP;class ds extends _t{constructor(e){var n;super(e),n=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===Yo.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 Qt(l)?l(r):Te(r,l||"key",s)},this.renderItemList=()=>{const{className:r,wrapperClassName:s,wrapperStyle:l,style:c,visibleItemRenderer:u,renderMode:p,collapseFrom:f}=this.props,{visible:y,overflowStatus:v}=this.state;let S=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(S)&&(S=_.createElement(_.Fragment,null,S)),_.isValidElement(S))){const b=_.cloneElement(S);S=_.createElement(Ui,{onResize:w=>{let[D]=w;this.setState({overflowWidth:D.target.clientWidth,overflowStatus:"calculating"})}},_.createElement("div",{className:`${Qo}-overflow`},b))}const P=p===Yo.SCROLL?(()=>{const b=[_.createElement("div",{className:Q(s,`${Qo}-scroll-wrapper`),ref:w=>{this.scroller=w},style:Object.assign({},l),key:`${Qo}-scroll-wrapper`},y.map(u).map(w=>{const{forwardRef:D,key:O}=w;return _.cloneElement(w,{ref:N=>this.mergeRef(D,N,O),"data-scrollkey":`${O}`,key:O})}))];return this.props.overflowRenderDirection==="both"?(b.unshift(S[0]),b.push(S[1])):this.props.overflowRenderDirection==="start"?(b.unshift(S[1]),b.unshift(S[0])):(b.push(S[0]),b.push(S[1])),b})():[f===sh.START?S:null,y.map((b,w)=>{const{key:D}=b,O=u(b,w),N=_.cloneElement(O);return _.createElement(Ui,{key:D??w,onResize:M=>{let[F]=M;return this.onItemResize(F,b,w)}},_.createElement("div",{key:D??w,className:`${Qo}-item`},N))}),f===sh.END?S:null];return _.createElement("div",{className:Q(`${Qo}`,r),style:Object.assign(Object.assign({},c),p===Yo.COLLAPSE?{maxWidth:"100%",visibility:v==="calculating"?"hidden":"visible"}:null)},...P)},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:_w.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new nI(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=_w.GROW,s.lastOverflowCount=0,s.maxCount=0,e.renderMode===Yo.SCROLL)s.visible=e.items,s.overflow=[];else{let c=e.items.length;Math.floor(n.containerWidth/Cw.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(c=Math.min(c,Math.floor(n.containerWidth/Cw.MINIMUM_HTML_ELEMENT_WIDTH)));const u=e.collapseFrom===sh.START,p=u?Ya(e.items).reverse().slice(0,c):e.items.slice(0,c),f=u?Ya(e.items).reverse().slice(c):e.items.slice(c);s.visible=p,s.overflow=f,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(f=>f.key),s=this.props.items.map(f=>f.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===Yo.SCROLL?_.createElement(bg,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):_.createElement(Ui,{onResize:this.resize},e)}}ds.__SemiComponentName__="OverflowList";ds.defaultProps=or(ds.__SemiComponentName__,{collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null,overflowRenderDirection:"both"});ds.propTypes={className:g.string,collapseFrom:g.oneOf(ci.BOUNDARY_SET),direction:g.oneOf(ci.POSITION_SET),items:g.array,minVisibleItems:g.number,onIntersect:g.func,onOverflow:g.func,overflowRenderer:g.func,renderMode:g.oneOf(ci.MODE_SET),style:g.object,threshold:g.number,visibleItemRenderer:g.func,wrapperClassName:g.string,wrapperStyle:g.object,collapseMask:g.object,overflowRenderDirection:g.string};const Sg={PREFIX:`${Oe}-select`,PREFIX_OPTION:`${Oe}-select-option`,PREFIX_GROUP:`${Oe}-select-group`},nr={SIZE_SET:["small","large","default"],POSITION_SET:Wi.POSITION_SET,STATUS:uT,SEARCH_POSITION_TRIGGER:"trigger",SEARCH_POSITION_DROPDOWN:"dropdown"},_0={LIST_HEIGHT:270};var kw=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};class rI extends zt{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&&Nr(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],f=Object.assign({},p);r.set(f.label,f)}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(f=>f[1]));const c=new Map;let u=e;const{onChangeWithObject:p}=this.getProps();return p&&l&&(u=e.map(f=>f.value)),l&&u.length&&u.forEach((f,y)=>{const v=n.findIndex(S=>S.value===f);if(v!==-1)c.set(n[v].label,n[v]);else{const S=s.findIndex(P=>P.value===f);if(S!==-1){const P=s[S];if(p){const T=Object.assign({},e[y]);Cn(T,P)?c.set(P.label,P):c.set(T.label,T)}else c.set(P.label,P)}else{let P={value:f,label:f,_notExist:!0};p&&(P=Object.assign(Object.assign({},e[y]),{_notExist:!0})),c.set(P.label,Object.assign(Object.assign({},P),{_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=kw(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=kw(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},hi(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:f}=this.getStates();this._isFilterable()&&(p&&(this.clearInput(n),f=this._filterOption(f,"")),this.focusInput()),this.updateOptionsActiveStatus(u,f),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),f=at(u)&&u.toLowerCase().includes(s);return p||f?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 Or.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Or.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Or.BACKSPACE:this._handleBackspaceKeyDown();break;case Or.ENTER:Ir(e),this._handleEnterKeyDown(e);break;case Or.ESC:u&&this.close({event:e}),s&&!l&&this._focusTrigger();break;case Or.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const n=e.keyCode,{isOpen:r}=this.getStates();n===Or.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}),Ir(n)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ir(n))}_handlePanelOpenShiftTabKeyDown(e,n){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ir(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],f=u[0]?u[0].value:u[0];l=!Cn(p,f);const y=c[0]?c[0].label:c[0],v=u[0]?u[0].label:u[0];s=!Cn(y,v)}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===Jh&&this.handleClick(e)}handleClearBtnEnterPress(e){eg(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;!gl(l)&&!Array.isArray(l)&&jr(!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 Xo=t0.PREFIX,k0=eo.TAG_SIZE,iI=eo.AVATAR_SHAPE;class Xa extends E.PureComponent{renderNTag(e,n){const{size:r,showPopover:s,popoverProps:l,onPlusNMouseEnter:c}=this.props;let u=_.createElement($t,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:c},"+",e);return s&&(u=_.createElement(zn,Object.assign({showArrow:!0,content:n,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Xo}-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 f=null;return l>0&&(f=this.renderNTag(l,p),u.push(f),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()),_.createElement($t,Object.assign({},p,{key:p.tagKey,onClose:(f,y,v)=>{p.onClose&&p.onClose(f,y,v),l&&l(f,y,v)}}))})}render(){const{style:e,className:n,maxTagCount:r,size:s}=this.props,l=Q({[`${Xo}-group`]:!0,[`${Xo}-group-max`]:r,[`${Xo}-group-small`]:s==="small",[`${Xo}-group-large`]:s==="large"},n),c=this.renderAllTags(),u=typeof r>"u"?c:this.renderMergeTags(c);return _.createElement("div",{style:e,className:l},u)}}Xa.defaultProps={style:{},className:"",size:k0[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};Xa.propTypes={children:g.node,style:g.object,className:g.string,maxTagCount:g.number,restCount:g.number,tagList:g.array,size:g.oneOf(k0),mode:g.string,onTagClose:g.func,showPopover:g.bool,popoverProps:g.object,avatarShape:g.oneOf(iI)};var oI=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const Pw=(i,e,n,r)=>{const s=i.props;if(!i||!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||i.key,l},sI=i=>{let e=[],n=[];const r={label:"",children:[],_show:!1};let s=_.Children.toArray(i);s=s.filter(u=>u&&u.props);let l="",c=-1;return s.forEach(u=>{if(u.type.isSelectOption){l="option",c++;const p=Pw(u,void 0,c);r.children.push(p),n.push(p)}else if(u.type.isSelectOptionGroup){l="group";let p=u.props,{children:f}=p,y=oI(p,["children"]);y.key=u.key;let v=[];Array.isArray(f)?v=f.map(T=>T.key):v.push(f.key),f=_.Children.toArray(f);const S=f.map((T,b)=>{let w=T.key;return v[b]===null&&(w=u.key+""+T.key),c++,Pw(T,y,c,w)}),P=Object.assign(Object.assign({},u.props),{children:S,key:u.key});e.push(P),n=n.concat(S)}else jr(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),l==="option"&&(e=[r]),{optionGroups:e,options:n}},aI=i=>{let{index:e,data:n,style:r}=i;const{visibleOptions:s,renderOption:l}=n,c=s[e];return l(c,e,r)};var Tw=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};class ui extends E.PureComponent{onClick(e,n){var{value:r,label:s,children:l}=e,c=Tw(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?_.createElement(lg,{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:f,focused:y,showTick:v,className:S,style:P,onMouseEnter:T,prefixCls:b,renderOptionItem:w,inputValue:D,semiOptionId:O}=e,N=Tw(e,["children","disabled","value","selected","label","empty","emptyContent","onSelect","focused","showTick","className","style","onMouseEnter","prefixCls","renderOptionItem","inputValue","semiOptionId"]),M=Q(b,{[`${b}-disabled`]:r,[`${b}-selected`]:l,[`${b}-focused`]:y,[`${b}-empty`]:u,[S]:S}),F=Q([`${b}-icon`]);if(u)return p===null?null:_.createElement(Lr,{componentName:"Select"},L=>_.createElement("div",{className:M,"x-semi-prop":"emptyContent"},p||L.emptyText));if(typeof w=="function"){const L=Q(S,{[`${b}-custom`]:!0,[`${b}-custom-selected`]:l});return w(Object.assign({disabled:r,focused:y,selected:l,style:P,label:c,value:s,inputValue:D,onMouseEnter:z=>T(z),onClick:z=>this.onClick(Object.assign({value:s,label:c,children:n},N),z),className:L},N))}const j={searchWords:[D],sourceString:n,highlightClassName:`${b}-keyword`};return _.createElement("div",Object.assign({className:M,onClick:L=>{this.onClick(Object.assign({value:s,label:c,children:n},N),L)},onMouseEnter:L=>T&&T(L),role:"option",id:O,"aria-selected":l?"true":"false","aria-disabled":r?"true":"false",style:P},Lh(N)),v?_.createElement("div",{className:F},_.createElement(UC,null)):null,at(n)?_.createElement("div",{className:`${b}-text`},this.renderOptionContent({children:n,config:j,inputValue:D,prefixCls:b})):n)}}ui.isSelectOption=!0;ui.propTypes={children:g.node,disabled:g.bool,value:g.oneOfType([g.string,g.number]),selected:g.bool,label:g.node,empty:g.bool,emptyContent:g.node,onSelect:g.func,focused:g.bool,showTick:g.bool,className:g.string,style:g.object,onMouseEnter:g.func,prefixCls:g.string,renderOptionItem:g.func,inputValue:g.string};ui.defaultProps={prefixCls:Sg.PREFIX_OPTION};var lI=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const cI=Sg.PREFIX_GROUP;class _l extends _t{render(){const e=this.props,{label:n,className:r,style:s}=e,l=lI(e,["label","className","style"]),c=Q(r,{[cI]:!0});return!n&&typeof n!="number"?null:_.createElement("div",Object.assign({className:c,style:s},this.getDataAttr(l)),n)}}_l.isSelectOptionGroup=!0;_l.propTypes={children:g.oneOfType([g.array,g.node]),label:g.node,className:g.string,style:g.object};var uI=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};const he=Sg.PREFIX,dI=0;class Mr extends _t{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],f=n[1].disabled||c,y=(T,b)=>{b&&typeof b.preventDefault=="function"&&b.preventDefault(),this.foundation.removeTag({label:u,value:p})},{content:v,isRenderInTag:S}=s(n[1],{index:r,disabled:f,onClose:y}),P={disabled:f,closable:!f,onClose:y};return S?_.createElement($t,Object.assign({},P,{color:"white",size:l||"large",key:p,tabIndex:-1}),v):_.createElement(E.Fragment,{key:p},v)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:dI,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=_.createRef(),this.inputRef=_.createRef(),this.dropdownInputRef=_.createRef(),this.triggerRef=_.createRef(),this.optionsRef=_.createRef(),this.optionContainerEl=_.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 FC,this.foundation=new rI(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,f=this.triggerRef&&this.triggerRef.current,y=Jn.findDOMNode(p),v=u.target,S=u.composedPath&&u.composedPath()||[v];!(y&&y.contains(v))&&!(f&&f.contains(v))&&!(S.includes(f)||S.includes(y))&&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((f,y)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:y},f)),c[0]={children:u,label:""};else{const f=sI(l);c=f.optionGroups,u=f.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=>BC(l),getActiveElement:()=>qC(),setIsFocusInContainer:l=>{this.setState({isFocusInContainer:l})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:l=>{let c;"renderOptionItem"in this.props?(c=`.${he}-option-custom-selected`,l!==void 0&&(c=`.${he}-option-custom:nth-child(${l+1})`)):(c=`.${he}-option-selected`,l!==void 0&&(c=`.${he}-option:nth-child(${l+1})`));let u=document.querySelector(`#${he}-${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=cs(),this.selectID=this.props.id||cs()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,n){const r=_.Children.toArray(e.children).map(c=>c.key),s=_.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=Te(s,"className"),u=Q(`${he}-input`,{[`${he}-input-single`]:!n,[`${he}-input-multiple`]:n},c),{inputValue:p,focusIndex:f}=this.state,y=Object.assign({value:p,disabled:r,className:u,onChange:this.handleInputChange},s);let v={};return n&&(v={width:p?`${p.length*16}px`:"2px"},y.style=v),_.createElement(ss,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":f!==-1?`${this.selectID}-option-${f}`:"",onFocus:S=>{n&&l&&this.setState({isFocus:!0}),S.stopPropagation()},onBlur:S=>this.foundation.handleInputBlur(S)},y))}renderDropdownInput(){const{size:e,multiple:n,disabled:r,inputProps:s,filter:l,searchPosition:c,searchPlaceholder:u}=this.props,{inputValue:p,focusIndex:f}=this.state,y=Q(`${he}-dropdown-search-wrapper`,{}),v=Te(s,"className"),S=Q(`${he}-dropdown-input`,{[`${he}-dropdown-input-single`]:!n,[`${he}-dropdown-input-multiple`]:n},v),P=Object.assign(Object.assign({value:p,disabled:r,className:S,onChange:this.handleInputChange,placeholder:u,showClear:!0},s),{onKeyDown:T=>this.foundation._handleKeyDown(T)});return _.createElement("div",{className:y},_.createElement(ss,Object.assign({ref:this.dropdownInputRef,prefix:_.createElement(bD,null),"aria-activedescendant":f!==-1?`${this.selectID}-option-${f}`:""},P)))}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 _.createElement(ui,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${he}-loading-wrapper`;return _.createElement("div",{className:e},_.createElement(Ar,null))}renderOption(e,n,r){const{focusIndex:s,inputValue:l}=this.state,{renderOptionItem:c}=this.props;let u;const p=n===s;let f=r||{};return e.style&&(f=Object.assign(Object.assign({},f),e.style)),e._inputCreateOnly?u=this.renderCreateOption(e,p,n,r):("key"in e&&(e._keyInOptionList=e.key),u=_.createElement(ui,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(y,v)=>this.onSelect(y,n,v),focused:p,onMouseEnter:()=>this.onOptionHover(n),style:f,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 _.createElement(ui,Object.assign({key:e.key||e.label+e.value,onSelect:(p,f)=>this.onSelect(p,r,f),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:n,style:s}),_.createElement(Lr,{componentName:"Select"},p=>_.createElement(_.Fragment,null,_.createElement("span",{className:`${he}-create-tips`},p.createText),e.value)));const c=l(e.value,n,s);return _.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,f=_.createElement(_l,Object.assign({},c,{key:p}));r.set(c.label,!0),n.push(f)}n.push(u)}),n}renderVirtualizeList(e){const{virtualize:n}=this.props,{direction:r}=this.context,{height:s,width:l,itemSize:c}=n;return _.createElement(GO,{ref:this.virtualizeListRef,height:s||_0.LIST_HEIGHT,itemCount:e.length,itemSize:c,itemData:{visibleOptions:e,renderOption:this.renderOption},width:l||"100%",style:{direction:r}},aI)}renderOptions(e){const{dropdownMinWidth:n,options:r,selections:s}=this.state,{maxHeight:l,dropdownClassName:c,dropdownStyle:u,outerTopSlot:p,innerTopSlot:f,outerBottomSlot:y,innerBottomSlot:v,loading:S,virtualize:P,multiple:T,emptyContent:b,searchPosition:w,filter:D}=this.props,O=r.filter(L=>L._show);let N=this.renderWithGroup(O);P&&(N=this.renderVirtualizeList(O));const M=Object.assign({minWidth:n},u),F=Q({[`${he}-option-list`]:!0,[`${he}-option-list-chosen`]:s.size}),j=!r.length||!r.some(L=>L._show);return _.createElement("div",{id:`${he}-${this.selectOptionListID}`,className:Q({[`${he}-option-list-wrapper`]:!(j&&b===null)},c),style:M,ref:this.setOptionContainerEl,onKeyDown:L=>this.foundation.handleContainerKeyDown(L)},p?_.createElement("div",{className:`${he}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},p):null,w===nr.SEARCH_POSITION_DROPDOWN&&D?this.renderDropdownInput():null,_.createElement("div",{style:{maxHeight:`${l}px`},className:F,role:"listbox","aria-multiselectable":T,onScroll:L=>this.foundation.handleListScroll(L)},f?_.createElement("div",{className:`${he}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},f):null,S?this.renderLoading():j?this.renderEmpty():N,v?_.createElement("div",{className:`${he}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},v):null),y?_.createElement("div",{className:`${he}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},y):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 f=[...e];if(typeof r>"u"&&(r=P=>P.label),f.length){const P=f[0][1];p=r(P)}const y=s===nr.SEARCH_POSITION_TRIGGER,v=Q({[`${he}-selection-text`]:!0,[`${he}-selection-placeholder`]:!p&&p!==0,[`${he}-selection-text-hide`]:u&&c&&y,[`${he}-selection-text-inactive`]:!u&&c&&y}),S=`${he}-content-wrapper`;return _.createElement(_.Fragment,null,_.createElement("div",{className:S},_.createElement("span",{className:v,"x-semi-prop":"placeholder"},p||p===0?p:l),n&&c&&y?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],f=e[1].disabled||l,y=(b,w)=>{w&&typeof w.preventDefault=="function"&&w.preventDefault(),this.foundation.removeTag({label:u,value:p})};typeof c>"u"&&(c=b=>({isRenderInTag:!0,content:b.label}));const{content:v,isRenderInTag:S}=c(e[1],{index:n,disabled:f,onClose:y}),P={disabled:f,closable:!f,onClose:y},T=r&&!Qt(this.props.renderSelectedItem)?_.createElement(yl,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},v):v;return S?_.createElement($t,Object.assign({},P,{color:"white",size:s||"large",key:p,style:{maxWidth:"100%"}}),T):_.createElement(E.Fragment,{key:p},T)}renderNTag(e,n){const{size:r,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;let c=_.createElement($t,{closable:!1,size:r||"large",color:"grey",className:`${he}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return s&&(c=_.createElement(zn,Object.assign({showArrow:!0,content:_.createElement(Ss,{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 _.createElement("div",{className:`${he}-content-wrapper-collapse`},_.createElement(ds,{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=f=>({isRenderInTag:!0,content:f.label})),s){const y=(u?e:e.slice(0,c)).map((v,S)=>this.getTagItem(v,S,r));p=_.createElement(Xa,{tagList:y,maxTagCount:n,restCount:u?void 0:e.length-c,size:"large",mode:"custom",showPopover:s,popoverProps:l,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const y=e.slice(0,c).map((v,S)=>this.getTagItem(v,S,r));p=_.createElement(Xa,{tagList:y,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:f,isOpen:y}=this.state,v=[...e];typeof r>"u"&&(r=M=>({isRenderInTag:!0,content:M.label}));const S=Q({[`${he}-content-wrapper`]:!0,[`${he}-content-wrapper-one-line`]:c&&!y,[`${he}-content-wrapper-empty`]:!v.length}),P=Q({[`${he}-selection-text`]:!0,[`${he}-selection-placeholder`]:!v.length,[`${he}-selection-text-hide`]:v&&v.length}),T=l&&!f?_.createElement("span",{className:P},l):null,b=v.length>c?c:void 0,w=!c,D=p?this.renderCollapsedTags(v,b):this.renderOneLineTags(v,b),O=w||u&&y?v.map((M,F)=>this.renderTag(M,F)):D,N=n&&s===nr.SEARCH_POSITION_TRIGGER;return _.createElement(_.Fragment,null,_.createElement("div",{className:S},v&&v.length?O:T,N?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=Te(l,"_scrollIndex");Nr(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=Q({[`${he}-suffix`]:!0,[`${he}-suffix-text`]:e&&at(e),[`${he}-suffix-icon`]:An(e)});return _.createElement("div",{className:n,"x-semi-prop":"suffix"},e)}renderPrefix(){const{prefix:e,insetLabel:n,insetLabelId:r}=this.props,s=e||n,l=Q({[`${he}-prefix`]:!0,[`${he}-inset-label`]:n,[`${he}-prefix-text`]:s&&at(s),[`${he}-prefix-icon`]:An(s)});return _.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:f,showArrow:y,suffix:v,prefix:S,insetLabel:P,placeholder:T,triggerRender:b,arrowIcon:w,clearIcon:D,borderless:O}=e,N=uI(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:L,isHovering:z,isFocus:U,showInput:H,focusIndex:K}=this.state,ie=typeof b=="function",ee=!!s,ae=ie?Q(p):Q(he,p,{[`${he}-borderless`]:O,[`${he}-open`]:F,[`${he}-focus`]:U,[`${he}-disabled`]:n,[`${he}-single`]:!r,[`${he}-multiple`]:r,[`${he}-filterable`]:ee,[`${he}-small`]:u==="small",[`${he}-large`]:u==="large",[`${he}-error`]:f==="error",[`${he}-warning`]:f==="warning",[`${he}-no-arrow`]:!y,[`${he}-with-prefix`]:S||P,[`${he}-with-suffix`]:v}),ne=this.props.showClear&&(M.size||L)&&!n&&(z||F),ce=y?_.createElement("div",{className:`${he}-arrow`,"x-semi-prop":"arrowIcon"},w):_.createElement("div",{className:`${he}-arrow-empty`}),de=D||_.createElement(WC,null),V=ie?_.createElement(ZC,{value:Array.from(M.values()),inputValue:L,onChange:this.handleInputChange,onSearch:this.handleInputChange,onRemove:I=>this.foundation.removeTag(I),onClear:this.onClear,disabled:n,triggerRender:b,placeholder:T,componentName:"Select",componentProps:Object.assign({},this.props)}):[_.createElement(E.Fragment,{key:"prefix"},S||P?this.renderPrefix():null),_.createElement(E.Fragment,{key:"selection"},_.createElement("div",{className:Q(`${he}-selection`)},r?this.renderMultipleSelection(M,ee):this.renderSingleSelection(M,ee))),_.createElement(E.Fragment,{key:"suffix"},v?this.renderSuffix():null),_.createElement(E.Fragment,{key:"clearicon"},ne?_.createElement("div",{className:Q(`${he}-clear`),onClick:this.onClear},de):ce)],Y=n||ee&&H||ee&&r?-1:0;return _.createElement("div",Object.assign({role:"combobox","aria-disabled":n,"aria-expanded":F,"aria-controls":`${he}-${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:I=>this.triggerRef.current=I,onClick:I=>this.foundation.handleClick(I),style:l,id:this.selectID,tabIndex:Y,"aria-activedescendant":K!==-1?`${this.selectID}-option-${K}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:I=>this.foundation.handleTriggerFocus(I),onBlur:I=>this.foundation.handleTriggerBlur(I),onKeyPress:this.onKeyPress},j,this.getDataAttr(N)),V)}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:f,mouseEnterDelay:y,spacing:v,stopPropagation:S,dropdownMargin:P}=this.props,{isOpen:T,optionKey:b}=this.state,w=this.renderSelection();return _.createElement(zn,{getPopupContainer:c,motion:u,margin:P,autoAdjustOverflow:p,mouseLeaveDelay:f,mouseEnterDelay:y,zIndex:l,ref:this.optionsRef,content:()=>this.renderOptions(r),visible:T,trigger:"custom",rePosKey:b,position:s,spacing:v,stopPropagation:S,disableArrowKeyDown:!0,onVisibleChange:D=>this.handlePopoverVisibleChange(D),afterClose:()=>this.foundation.handlePopoverClose()},w)}}Mr.contextType=Bn;Mr.Option=ui;Mr.OptGroup=_l;Mr.propTypes={"aria-describedby":g.string,"aria-errormessage":g.string,"aria-invalid":g.bool,"aria-labelledby":g.string,"aria-required":g.bool,autoFocus:g.bool,autoClearSearchValue:g.bool,borderless:g.bool,children:g.node,clearIcon:g.node,defaultValue:g.oneOfType([g.string,g.number,g.array,g.object]),ellipsisTrigger:g.bool,value:g.oneOfType([g.string,g.number,g.array,g.object]),placeholder:g.node,onChange:g.func,multiple:g.bool,filter:g.oneOfType([g.func,g.bool]),max:g.number,maxTagCount:g.number,maxHeight:g.oneOfType([g.string,g.number]),style:g.object,className:g.string,size:g.oneOf(nr.SIZE_SET),disabled:g.bool,emptyContent:g.node,expandRestTagsOnClick:g.bool,onDropdownVisibleChange:g.func,zIndex:g.number,position:g.oneOf(nr.POSITION_SET),onSearch:g.func,getPopupContainer:g.func,dropdownClassName:g.string,dropdownStyle:g.object,dropdownMargin:g.oneOfType([g.number,g.object]),outerTopSlot:g.node,innerTopSlot:g.node,inputProps:g.object,outerBottomSlot:g.node,innerBottomSlot:g.node,optionList:g.array,dropdownMatchSelectWidth:g.bool,loading:g.bool,defaultOpen:g.bool,validateStatus:g.oneOf(nr.STATUS),defaultActiveFirstOption:g.bool,triggerRender:g.func,stopPropagation:g.bool,searchPosition:g.string,motion:g.bool,onChangeWithObject:g.bool,suffix:g.node,prefix:g.node,insetLabel:g.node,insetLabelId:g.string,showClear:g.bool,showArrow:g.bool,renderSelectedItem:g.func,allowCreate:g.bool,renderCreateItem:g.func,onMouseEnter:g.func,onMouseLeave:g.func,clickToHide:g.bool,onExceed:g.func,onCreate:g.func,remote:g.bool,onDeselect:g.func,onSelect:g.func,autoAdjustOverflow:g.bool,mouseEnterDelay:g.number,mouseLeaveDelay:g.number,spacing:g.oneOfType([g.number,g.object]),onBlur:g.func,onFocus:g.func,onClear:g.func,virtualize:g.object,renderOptionItem:g.func,onListScroll:g.func,arrowIcon:g.node,preventScroll:g.bool};Mr.__SemiComponentName__="Select";Mr.defaultProps=or(Mr.__SemiComponentName__,{stopPropagation:!0,motion:!0,borderless:!1,zIndex:di.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:me,onChangeWithObject:!1,onChange:me,onSearch:me,onMouseEnter:me,onMouseLeave:me,onDeselect:me,onSelect:me,onCreate:me,onExceed:me,onFocus:me,onBlur:me,onClear:me,onListScroll:me,maxHeight:_0.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,searchPosition:nr.SEARCH_POSITION_TRIGGER,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:_.createElement(sD,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1});class pI extends zt{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=n=>{const{target:r}=n;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{jr(!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 cn={PREFIX:`${Oe}-switch`,FOCUS:`${Oe}-switch-focus`,LARGE:`${Oe}-switch-large`,SMALL:`${Oe}-switch-small`,CHECKED:`${Oe}-switch-checked`,DISABLED:`${Oe}-switch-disabled`,KNOB:`${Oe}-switch-knob`,NATIVE_CONTROL:`${Oe}-switch-native-control`,CHECKED_TEXT:`${Oe}-switch-checked-text`,UNCHECKED_TEXT:`${Oe}-switch-unchecked-text`,LOADING_SPIN:`${Oe}-switch-loading-spin`,LOADING:`${Oe}-switch-loading`},fI={SIZE_MAP:["default","small","large"]};var hI=function(i,e){var n={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(n[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(i);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(i,r[s])&&(n[r[s]]=i[r[s]]);return n};class wg extends _t{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=_.createRef(),this.foundation=new pI(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:f,checkedText:y,uncheckedText:v,loading:S,id:P}=s,T=hI(s,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),b=Q(l,{[cn.PREFIX]:!0,[cn.CHECKED]:e,[cn.DISABLED]:n,[cn.LARGE]:f==="large",[cn.SMALL]:f==="small",[cn.LOADING]:S,[cn.FOCUS]:r}),w={type:"checkbox",className:cn.NATIVE_CONTROL,disabled:n||S,checked:e||!1},D=y&&e&&f!=="small",O=v&&!e&&f!=="small";return _.createElement("div",Object.assign({className:b,style:c,onMouseEnter:u,onMouseLeave:p},this.getDataAttr(T)),S?_.createElement(Ar,{wrapperClassName:cn.LOADING_SPIN,size:f==="default"?"middle":f}):_.createElement("div",{className:cn.KNOB,"aria-hidden":!0}),D?_.createElement("div",{className:cn.CHECKED_TEXT,"x-semi-prop":"checkedText"},y):null,O?_.createElement("div",{className:cn.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},v):null,_.createElement("input",Object.assign({},w,{ref:this.switchRef,id:P,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:N=>this.foundation.handleChange(N.target.checked,N),onFocus:N=>this.handleFocusVisible(N),onBlur:N=>this.handleBlur(N)})))}}wg.propTypes={"aria-label":g.string,"aria-labelledby":g.string,"aria-invalid":g.bool,"aria-errormessage":g.string,"aria-describedby":g.string,className:g.string,checked:g.bool,checkedText:g.node,defaultChecked:g.bool,disabled:g.bool,loading:g.bool,onChange:g.func,onMouseEnter:g.func,onMouseLeave:g.func,style:g.object,size:g.oneOf(fI.SIZE_MAP),uncheckedText:g.node,id:g.string};wg.defaultProps={disabled:!1,className:"",onChange:me,loading:!1,onMouseEnter:me,onMouseLeave:me,size:"default"};const Cg=E.createContext(void 0),dn=()=>{const i=E.useContext(Cg);if(!i)throw new Error("useAppContext must be used within ContextProvider");return i},gI="DevTool",mI="Scan to start local debugging",yI="Device connected!",vI="Debug service disconnected",bI="Not Connected",SI="Node",wI="Browser",CI="Debug page",_I="Client",kI="Connected",PI="Disconnected",TI="Failed",EI="Unknown",xI="Legend",DI="Local debug service on your machine (connects the debug page and client, and forwards debug messages).",OI="The DevTool debug page open in your browser.",II="Debug service inside TikTok on the device (provides HTTP/WS capabilities).",RI="Dots indicate link status; ws/http are shown on opposite sides on the same edge.",NI="Network diagnostics",jI="Network diagnostics",LI="Diagnose QR scan stalls, connection failures, and unreachable ports.",AI="No response after scanning? Click to diagnose",MI="Network diagnostics",$I="Use this when TikTok scan gets no response, LAN access fails, or proxy setup gets in the way.",FI="Open",zI="Run all checks",qI="Manual connect",BI="Manual bind client debug service",GI="When QR scan path is unavailable (proxy/firewall/multi-NIC), you can manually enter client IP and ports to connect.",WI="Specify client endpoint",UI="Go to manual connect",HI="Current result",VI="Not checked yet",KI="Check local service, client HTTP, and client WS to locate the failing segment.",QI="Run all checks, or fill the client endpoint first.",YI="Checking links",XI="Checking local service, client HTTP, and client WS.",ZI="Review check results below after it finishes.",JI="Client endpoint is missing",eR="Client IP / HTTP / WS ports are missing, so the phone-side link cannot be judged yet.",tR="Local debug service is unavailable",nR="The debug page cannot access local Node. Confirm `ttmg dev` is running first.",rR="The debug page cannot connect to local Node WebSocket. Confirm the local debug service has fully started.",iR="Client link is unreachable",oR="Local service is healthy, but debug-page access to phone-side HTTP and WS times out. The issue is on the phone-side path or client debug service.",sR="Client WS is unreachable",aR="Client HTTP is reachable, but WS times out. Check the WS port and client listener first.",lR="Network links are healthy",cR="Local service and client HTTP / WS are reachable. Return to scan debugging to continue upper-layer checks.",uR="Check result is incomplete",dR="This does not match a common failure pattern. Verify client endpoint values and run checks again.",pR="Confirm client IP, HTTP port, and WS port match the loading page.",fR="Computer IP",hR="WS Port",gR="HTTP Port",mR="Computer",yR="Client",vR="View troubleshooting guide",bR="Open proxy setup",SR="Environment details",wR="Expand to view computer and client endpoint values.",CR="Check results",_R="Keeps link-level evidence for locating the failing segment.",kR="Debug page ↔ Node (HTTP)",PR="Debug page ↔ Node (WS)",TR="Debug page ↔ Client (HTTP)",ER="Debug page ↔ Client (WS)",xR="Suggestions",DR="Try the actions below first, then run the checks again to see whether the problem is narrowing down.",OR="Actions",IR="Extra info: if the connection succeeds, return to the QR debug page to continue.",RR="Manual connection info has been saved and a full diagnosis was triggered automatically.",NR="Manual connection was submitted, but the quick connectivity check still failed:",jR="When scan misses the endpoint or ports mismatch, fill client IP / HTTP / WS and re-check.",LR="Next step",AR="Result",MR="Recommended fix",$R="Fill endpoint",FR="Provide the client IP, HTTP port, and WS port first, then save and diagnose whether the current path is reachable.",zR="Return to scan debugging",qR="The core network path is reachable. Return to the home page to scan again or continue the current debug flow.",BR="Re-check after restart",GR="Make sure `ttmg dev` is running. Restart the local debug service if needed, then run the checks again.",WR="Run the checks again to confirm whether the issue has narrowed down.",UR="Expand",HR="Collapse",VR="Open docs",KR="Client endpoint not detected",QR="Scan to connect, or fill client IP / HTTP / WS ports.",YR="Client connectivity failed (LAN / proxy / firewall)",XR="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.",ZR="Local debug service unavailable",JR="Make sure `ttmg dev` is running in the project root and the port is not occupied.",eN="If you just changed network or proxy settings, go back to the project root and run `ttmg dev` again.",tN="Keep the phone on the debug loading page, enable client debug service, and match the displayed ports.",nN="Keep phone and computer on the same Wi-Fi/subnet; if using a proxy, enable Allow LAN and check VPN/TUN/firewall.",rN="Confirm the WS port is correct and listening; if it still times out, check firewall, router policy, or VPN/TUN.",iN="No obvious issues detected",oN="If it still fails, share the copied environment info and screenshots for investigation.",sN="HTTP reachable but WS unreachable: check WS port correctness and whether the client debug service is listening.",aN="If WS times out: the port is likely blocked by firewall/router policy, or global VPN/TUN affects LAN traffic.",lN="Both HTTP and WS unreachable: check if phone and computer are on the same Wi‑Fi/subnet (AP isolation may exist).",cN="Disable global VPN/TUN; enable Allow LAN in proxy; check firewall rules for LAN access.",uN="If it still fails, route the phone network through the computer network and scan again.",dN="Client HTTP address or port is not available",pN="Client WS address or port is not available",fN="Idle",hN="Running",gN="Check",mN="Waiting for check",yN="Checking...",vN="Network reachable",bN="Hint",SN="If ping works but WS fails, it's usually because the TCP port isn't listening or is blocked (ICMP differs from TCP/WS).",wN="Client disconnected. Please scan the QR code to reconnect.",CN="Node service disconnected. Please restart the debug service in the terminal.",_N="Switch debug device",kN="No device connected",PN="Please connect a device before debugging.",TN="Scan with TikTok to debug",EN="Switch scan device",xN="Initializing debug environment...",DN="Notifying client to initialize debug environment...",ON="Fetching client debug environment configuration...",IN="Failed to fetch client debug environment configuration",RN="Client debug environment configuration fetched successfully",NN="Client debug environment initialized. Waiting to upload game resources...",jN="Failed to initialize client debug environment",LN="Initializing JS runtime environment...",AN="JS runtime environment initialized successfully",MN="Re-upload code package",$N="Uploading game resources...",FN="Uploading game resources",zN="Sending the package to the client. The game will start automatically when it finishes.",qN="Game resources uploaded successfully. Client is loading the game...",BN="Failed to upload game resources. Please check your environment.",GN="Initializing game environment...",WN="Game resources are being compiled locally. Please wait...",UN="Compiling game resources",HN="Game resources updated. Upload again for debugging?",VN="Game resources updated successfully!",KN="Failed to initialize game environment. Please check your environment.",QN="Fetching game debug environment configuration",YN="Game environment configuration fetched successfully",XN="Failed to fetch game environment configuration",ZN="Fetching game scripts",JN="Browser debug environment initialized. The game will start after resources are uploaded.",ej="Game runtime environment initialized. Preparing to upload resources to client.",tj="Uploading game package to client...",nj="Game package uploaded successfully. Client is loading the game...",rj="Failed to upload game package",ij="Re-upload mini game package",oj="Restart mini game",sj="End debugging",aj="Starting debug environment...",lj="Failed to connect to local Node debug service",cj="Connecting to local Node debug service...",uj="Connected to local Node debug service",dj="Failed to connect to local Node debug service. Please make sure 'ttmg dev' is running in the game root directory.",pj="Node debug service disconnected. Please restart the debug service in the terminal.",fj="Client debug service connected successfully",hj="Failed to connect to client debug service. Please scan the QR code again to start the debug service.",gj="Client debug service disconnected. Please scan the QR code again to reconnect.",mj="Mobile QR scanning is unavailable on this network",yj="The local debug service is running, but the computer has no LAN address reachable from the phone. Make sure both devices are on the same network; if you use a VPN or proxy, enable LAN access.",vj="Set connection address",bj="Failed to start client debug environment. Please scan the QR code again to start the debug service.",Sj="Failed to load game scripts",wj="Upload to device",Cj="Do not upload",_j="Upload to platform",kj="Scanning QR code...",Pj="Switch device to start a new debug session by scanning",Tj="Make sure your TikTok account is added as a test user for the debug app",Ej="Not logged in",xj="Launch mode name",Dj="Select launch package",Oj="Select independent subpackage",Ij="Select entry scene",Rj="Custom launch parameters",Nj="Example: a=1&b=2",jj="Scan QR code",Lj="Search",Aj="For You feed direct play",Mj="For Your feed card",$j="Creator anchor",Fj="Sidebar",zj="For Your feed ads",qj="Desktop Shortcut",Bj="DM sharing",Gj="Copy link",Wj="Inbox",Uj="Main package",Hj="Independent subpackage",Vj="Custom launch mode",Kj="Are you sure you want to delete {{name}}?",Qj="Save",Yj="Developer options",Xj="Allow requests to domains not configured on the platform during debugging.",Zj="Enable Ad Mock",Jj="Use mock ad results to debug ad scenarios.",eL="Enable IAP Mock",tL="Route payment results through the sandbox to debug result-related scenarios.",nL="Select launch mode",rL="Create new launch mode",iL="Select debug mode",oL="Remote debug",sL="Client preview",aL="Client debug",lL="Launch parameters must be a string",cL="Launch parameters should not contain the question mark (?) prefix. Please only input the parameter part.",uL=`Launch parameters format error: empty key-value pair found. Please ensure each '&' symbol has a complete "key=value" structure on both sides.`,dL=`Launch parameters format error: empty key found. Please ensure each '&' symbol has a complete "key=value" structure on both sides.`,pL="Launch parameters format error: duplicate key found. Each key must be unique.",fL="Launch parameters format error: invalid key characters found. Please use only letters, numbers, underscores (_), and hyphens (-).",hL="Launch parameters format error: invalid value characters found. Please use only letters, numbers, underscores (_), and hyphens (-).",gL="Launch parameters format error: invalid URL encoding found. Please use the correct encoding format.",mL='Launch parameters format error: missing equal sign (=) or empty value. Please use "key=value" format, and ensure the value is not empty.',yL="Cannot be empty",vL="Save and apply",bL="Apply",SL="Sending local debug setting to client...",wL="Local Node debug service configuration fetched successfully",CL="Failed to fetch local debug service configuration. Please check if Node service is running.",_L="Loading debug environment dependency scripts...",kL="Dependency scripts loaded successfully",PL="Failed to load dependency scripts. Please scan the QR code again to start the debug service.",TL="Dependency scripts are empty. Please scan the QR code again to start the debug service.",EL="Dependency scripts loaded and initialized successfully",xL="Game resources compiled successfully! Scan with your device to debug.",DL="Game resources compiled successfully!",OL="Start debugging",IL="Start debugging",RL="Scan to connect, start debugging",NL="Pick a launch mode, then scan with the TikTok client to preview your mini game on a real device or in the browser.",jL="Device connected, debugging in progress",LL="Connected to the TikTok client — preview your mini game on a real device or in the browser. To switch devices, scan again to start a new debugging session.",AL="Project overview",ML="Launch mode",$L="Upload & publish",FL="Normal launch mode",zL="New launch mode",qL="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.",BL="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.",GL="Not exceed project size {{limit}} limit",WL="Not exceed main package size {{limit}} limit",UL="Not exceed independent subpackage size {{limit}} limit",HL="Exceed project size {{limit}} limit",VL="Exceed main package size {{limit}} limit",KL="Exceed independent subpackage size {{limit}} limit",QL="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.",YL="3. Configuration file check",XL="Ensure that the subpackage file paths are configured correctly, and all paths can be accessed normally to avoid loading failures later.",ZL="1. Package size check",JL="2. Mandatory API check",e4="Check if the game has integrated necessary API capabilities to ensure better user experience and conversion effects on TikTok.",t4="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}}.",n4="The entire game package size must be controlled within {{projectSize}}; no other additional restrictions.",r4="Configuration file check passed!",i4="Package size check passed!",o4="Package size check failed!",s4="Configuration file check failed!",a4="Performance check",l4="Performance check passed!",c4="Performance check failed!",u4="View docs",d4="Expand check details",p4="Close check details",f4="Game project",h4="Main package size",g4="Independent subpackage size",m4="Trusted domains",y4="Terms & Privacy",v4="Terms & Privacy - Terms URL",b4="Terms & Privacy - Privacy URL",S4="Terms of Service URL",w4="Privacy policy URL",C4="Project Size",_4="Name",k4="Icon",P4="Client key",T4="Description",E4="Current game ClientKey {{clientKey}} cannot be enabled for debug, please check and try again.",x4="Failed to fetch game details. Please try again later.",D4="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.",O4="You can log in by entering the `ttmg login` command in the console and using your developer platform account and password.",I4="Docs",R4="Quick start",N4="API Reference",j4="Error reference",L4="FAQ",A4="Upload",M4="Cancel",$4="Version note",F4="Upload success",z4="Upload failed",q4="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.",B4="View on platform",G4="Only after logging in in the command line can the game package upload function on the debug page be used.",W4="Upload current game to platform",U4="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.",H4="Debug environment script initialization failed, please scan the QR code again",V4="Game resource upload failed, please scan the QR code again",K4="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.",Q4="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.",Y4="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.",X4="Current Terms & Privacy (Terms URL) is empty. Please add this URL on the platform to ensure the game can run normally.",Z4="Current Terms & Privacy (Privacy URL) is empty. Please add this URL on the platform to ensure the game can run normally.",J4="Current game name is empty. Please complete it before submission to avoid review rejection.",eA="Current game icon is empty. Please complete it before submission to avoid review rejection.",tA="Current game description is empty. Please add the game description to the game description list to ensure that the game can run normally.",nA="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.",rA="The terminal cannot reach the TikTok developer platform, so Trust Domains, Terms, Privacy, and other platform config cannot be fetched. Make sure VPN/proxy applies to the terminal, or configure `ttmg config set proxy ...` and restart debugging.",iA="Start connecting to client WebSocket, 👉🏼👉🏼👉🏼 {{wsURL}}...",oA="Client WebSocket service connection timeout, please check if the computer and mobile phone are in the same local area network.",sA="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.",aA="Current account login expired, please log in again.",lA="Login",cA="Create rewarded video ad",uA="Add shortcut",dA="Open profile sidebar entrance",pA="Get shortcut mission reward",fA="Get entrance mission reward",hA="Integrated!",gA="Not integrated!",mA="Mandatory API check passed!",yA="Mandatory API check failed!",vA="Client preview loading game, please check the browser console for more details...",bA="Client preview environment initialized. Please check the browser console for more details...",SA="Start to send game meta data to client, after which the client will start to launch the game...",wA="Game meta data sent to client successfully, client will start to launch the game...",CA="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.",_A="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.",kA="Invalid port number, please enter a valid port number",PA="If the QR code is no response, please click here to manually bind the client debug service address.",TA="Confirm",EA="Please enter the local IP address of the mobile phone",xA="Start upload",DA="Manually bind the client debug service address",OA="Go to check",IA="Check network",RA="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.",NA="2. Only TikTok Android 42.9 and above versions are supported, and iOS does not support it for the time being.",jA="Back",LA="Start connection",AA="Connect",MA="Enter the IP, HTTP port, and WS port shown on the client loading page. After confirmation, the debug page saves them and tries to connect to the client debug service.",$A="Check connectivity",FA="Connectivity check",zA="Client WebSocket",qA="Client HTTP",BA="OK",GA="Failed",WA="Timeout",UA="Connection failed",HA="Please fill IP and ports first",VA="Uploading the game package requires filling in the current game package description first.",KA="Disable domain check",QA="Enable vConsole log panel",YA="Enable developer info panel",XA="View vConsole runtime logs on the client.",ZA="View developer info and runtime stats on the client.",JA="‼️ Detected {{count}} issues. Each item is labeled as Blocking or Suggestion.",eM="Blocking",tM="Suggestion",nM="Basic game info is missing: {{fields}}.",rM="title (Name)",iM="icon (Icon)",oM="description (Description)",sM=", ",aM="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.",lM="Please resolve this before submission to avoid review rejection.",cM="View details",uM="Hide details",dM="Needs your attention",pM="Recommended",fM="Terminal proxy is not applied",hM="Account lacks development access",gM="Developer login is unavailable",mM="Client Key cannot be recognized",yM="Apply for permission",vM="Open developer portal",bM="{{count}} more issue(s)",SM="Switch to dark theme",wM="Switch to light theme",CM="Features",_M="Optimizations",kM="Bugfixes",PM="Learn more",TM="Changelog",EM="NEW",xM="Review what each DevTool release adds, improves, and fixes.",DM="New/Optimized Feature Target Version:",OM="Wasm Code Split",IM="Split Prepare",RM="Collect Functions",NM="Split Code",jM="Rollback",LM="Split failed",AM="Writing split artifacts...",MM="Retry",$M="Starting split code prepare...",FM="Cancel split code prepare",zM="Background run",qM="Preparing split code, please wait...",BM="During the preparation process, please do not modify the local game package, otherwise it may cause the preparation to fail.",GM="Split code preparation successful!",WM="Split code preparation failed!",UM="Retry preparation",HM="Download prepared Wasm code",VM="Download failed",KM="Retry download",QM="Download successful",YM="After downloading the prepared Wasm code, you can split the code in the local environment for debugging.",XM="Split code description",ZM="Please input split code description",JM="Start prepare",e$="Processing...",t$="Update Wasm split config",n$="Update Wasm split config successful!",r$="Update Wasm split config failed!",i$="Compress prepared Wasm code successful!",o$="Compress prepared Wasm code failed!",s$="Write compress prepared Wasm code",a$="Write compress prepared Wasm code successful!",l$="Write compress prepared Wasm code failed!",c$="Fetch download URL",u$="Fetch download URL successful!",d$="Fetch download URL failed!",p$="Download prepared Wasm code successful!",f$="Download prepared Wasm code failed!",h$="Start split",g$="Collected functions must reach at least 8% of the total before splitting. Keep playing to cover first-screen and core gameplay paths.",m$="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.",y$="Device connected · collecting functions",v$="Walk through loading, tutorial and core gameplay on the connected device. DevTool keeps recording the functions being called. Once first-screen and core paths are covered you can start the split.",b$="Start collect",S$="Opening collect session...",w$="Resumed previous collect session — your existing progress was preserved.",C$="Wasm file size",_$="Collected function count",k$="Total function count",P$="Split version",T$="Split code processing, please wait...",E$="Cancel split",x$="Get split result",D$="Retry get split result",O$="Get split result failed, please retry.",I$="Split code processing successful!",R$="Download split result",N$="Download split result failed, please retry.",j$="Retry download split result",L$="Download split result successful!",A$="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.",M$="Downloading Android main Wasm file...",$$="Download Android main Wasm file successful",F$="Compressing Android main Wasm file...",z$="Compress Android main Wasm file successful",q$="Downloading Android sub Wasm code...",B$="Download Android sub Wasm code successful",G$="Compressing Android sub Wasm code...",W$="Compress Android sub Wasm code successful",U$="Downloading iOS main Wasm file...",H$="Download iOS main Wasm file successful",V$="Compressing iOS main Wasm file...",K$="Compress iOS main Wasm file successful",Q$="Downloading iOS sub Wasm code...",Y$="Download iOS sub Wasm code successful",X$="Compressing iOS sub Wasm code...",Z$="Compress iOS sub Wasm code successful",J$="Writing split Wasm files...",e3="Write split Wasm files successful",t3="Updating Wasm split config...",n3="Update Wasm split config successful!",r3="No Wasm code found",i3="No Wasm code found in the project. Please make sure the game has been packed with Wasm code and try again.",o3="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.",s3='You can compress and upload the current result as-is; to start over, hit "Discard split" below.',a3="Discard split",l3="Current project has not enabled Wasm split config",c3="Current project has not enabled Wasm split config. Please enable it in the project config and try again.",u3="Advanced guide",d3="Capability access",p3="Subpackage Collection",f3="Language",h3="简体中文",g3="English",m3={title:gI,scanQRcodeTitle:mI,deviceConnected:yI,serverDisconnected:vI,deviceDisconnected:bI,connectStatusNode:SI,connectStatusBrowser:wI,connectStatusDebugPage:CI,connectStatusClient:_I,connectStatusConnected:kI,connectStatusDisconnected:PI,connectStatusFailed:TI,connectStatusUnknown:EI,connectStatusLegendTitle:xI,connectStatusLegendNode:DI,connectStatusLegendBrowser:OI,connectStatusLegendClient:II,connectStatusLegendProto:RI,netDiagNav:NI,netDiagTitle:jI,netDiagSubtitle:LI,netDiagEntryScanNoResponse:AI,netDiagEntryTitle:MI,netDiagEntryDesc:$I,netDiagEntryAction:FI,netDiagRunAll:zI,netDiagManualConnectAndCheck:qI,netDiagManualBindTitle:BI,netDiagManualBindDesc:GI,netDiagManualBindEntry:WI,netDiagManualConnectGo:UI,netDiagSummaryTitle:HI,netDiagSummaryIdleTitle:VI,netDiagSummaryIdleDesc:KI,netDiagSummaryIdleHint:QI,netDiagSummaryRunningTitle:YI,netDiagSummaryRunningDesc:XI,netDiagSummaryRunningHint:ZI,netDiagSummaryMissingClientTitle:JI,netDiagSummaryMissingClientDesc:eR,netDiagSummaryNodeTitle:tR,netDiagSummaryNodeDesc:nR,netDiagSummaryNodeWsDesc:rR,netDiagSummaryClientBothTitle:iR,netDiagSummaryClientBothDesc:oR,netDiagSummaryClientWsTitle:sR,netDiagSummaryClientWsDesc:aR,netDiagSummaryHealthyTitle:lR,netDiagSummaryHealthyDesc:cR,netDiagSummaryPartialTitle:uR,netDiagSummaryPartialDesc:dR,netDiagSummaryPartialHint:pR,netDiagEnvIP:fR,netDiagEnvWsPort:hR,netDiagEnvHttpPort:gR,netDiagComputerGroup:mR,netDiagClientGroup:yR,netDiagOpenTroubleshoot:vR,netDiagOpenProxy:bR,netDiagEnvTitle:SR,netDiagEnvSectionDesc:wR,netDiagChecksTitle:CR,netDiagCheckSectionDesc:_R,netDiagCheckNodeHttp:kR,netDiagCheckNodeWs:PR,netDiagCheckClientHttp:TR,netDiagCheckClientWs:ER,netDiagSuggestTitle:xR,netDiagSuggestSectionDesc:DR,netDiagActionsTitle:OR,netDiagSuccessHint:IR,netDiagManualConnectResultSuccess:RR,netDiagManualConnectResultError:NR,netDiagManualSectionDesc:jR,netDiagNextStepTitle:LR,netDiagGuideEyebrow:AR,netDiagGuideStepsTitle:MR,netDiagActionManualConnect:$R,netDiagActionManualConnectDesc:FR,netDiagActionBackToScan:zR,netDiagActionBackToScanDesc:qR,netDiagActionRerunAfterRestart:BR,netDiagActionRerunAfterRestartDesc:GR,netDiagActionRunAllDesc:WR,netDiagExpand:UR,netDiagCollapse:HR,netDiagOpenDoc:VR,netDiagSuggestNoClientTitle:KR,netDiagSuggestNoClientDesc:QR,netDiagSuggestLanTitle:YR,netDiagSuggestLanDesc:XR,netDiagSuggestNodeTitle:ZR,netDiagSuggestNodeDesc:JR,netDiagSuggestNodeRestart:eN,netDiagSuggestClientDebugService:tN,netDiagSuggestLanAndProxy:nN,netDiagSuggestWsBlocked:rN,netDiagSuggestOkTitle:iN,netDiagSuggestOkDesc:oN,netDiagSuggestHttpOkWsFail1:sN,netDiagSuggestHttpOkWsFail2:aN,netDiagSuggestBothFail1:lN,netDiagSuggestBothFail2:cN,netDiagSuggestPhoneProxyFallback:uN,netDiagMissingClientHttp:dN,netDiagMissingClientWs:pN,netDiagStatusIdle:fN,netDiagStatusRunning:hN,netDiagStatusWarning:gN,netDiagCheckIdleDetail:mN,netDiagCheckRunningDetail:yN,netDiagCheckReachableDetail:vN,netDiagQuickHintTitle:bN,netDiagQuickHintDesc:SN,clientDisconnected:wN,nodeDisconnected:CN,switchDevice:_N,disConnectionStatusTitle:kN,disConnectionStatusDesc:PN,scanQRCode:TN,switchScanDevice:EN,startDebug:xN,initClientEnv:DN,fetchClientDevConfig:ON,fetchClientDevConfigFailed:IN,fetchClientDevConfigSuccess:RN,initClientEnvSuccess:NN,initClientEnvFailed:jN,startInitJSDevEnv:LN,initJSDevEnvSuccess:AN,uploadBtn:MN,uploadStart:$N,uploadProcess:FN,uploadProcessDesc:zN,uploadSuccess:qN,uploadError:BN,setupDevEnv:GN,gameResourceCompiling:WN,gameResourceCompilingTitle:UN,gameResourceChange:HN,gameResourceUpdated:VN,devEnvSetupError:KN,getDevEnvStart:QN,getDevEnvSuccess:YN,setDevEnvFailed:XN,getDevScriptsStart:ZN,setDevScriptsSuccess:JN,devEnvSetupSuccess:ej,uploadGameStart:tj,uploadGameSuccess:nj,uploadGameFailed:rj,reUploadGame:ij,relaunchGame:oj,closeGame:sj,loading:aj,nodeServerConnectedFailed:lj,nodeServerStartConnect:cj,nodeServerConnectedSuccess:uj,nodeServerStartError:dj,nodeServerDisconnect:pj,clientConnectedSuccess:fj,clientServerStartError:hj,clientServerDisconnected:gj,networkNoLanIPTitle:mj,networkNoLanIPDesc:yj,networkNoLanIPAction:vj,startDebugFailed:bj,getDevScriptsFailed:Sj,uploadToClient:wj,notUpload:Cj,uploadToPlatform:_j,"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.guide.title":"Upload & publish","uploadGame.guide.desc":"Review precheck risks, add a short version note, then upload to the platform. Scan the generated preview build to verify it.","uploadGame.guide.precheck.title":"Code precheck","uploadGame.guide.precheck.desc":"Catch package size, API, config, and performance risks early","uploadGame.guide.version.title":"Version note","uploadGame.guide.version.desc":"Describe this change so upload records are easier to identify","uploadGame.guide.preview.title":"Platform preview","uploadGame.guide.preview.desc":"Scan after upload to verify the platform-generated build","uploadGame.packageSizeDoc":"View package size limits","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 note","uploadGame.issueDesc":"Only the key summary is shown here. Expand the full result 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":"Briefly describe this change for later lookup.","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":"Platform is processing your package","uploadGame.progress.assetDesc":"Your package was uploaded. The platform is processing it now, please wait…","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 for the platform to finish processing","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 did not return a valid version reference, so platform validation cannot continue. Please upload again.","uploadGame.failure.assetTimeout":"The platform timed out while processing your package. Please check the result on the platform later.","uploadGame.failure.assetStatus":"The platform has not finished processing your package yet, so the preview QR code is not available. Please try again later.","uploadGame.failure.previewTimeout":"The platform finished processing, but no preview QR code was returned in 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:kj,scanQRCodeChange:Pj,scanQRCodeDesc:Tj,"homeSession.title":"Current debug session","homeSession.modeLabel":"Debug mode","homeSession.entryLabel":"Launch entry","homeSession.domainLabel":"Domain policy","homeSession.mode.clientPreviewDesc":"Client runtime; check vConsole, device capabilities, and real device network.","homeSession.mode.remoteDebugDesc":"Browser runtime; good for JS logic and console checks, not all device capabilities.","homeSession.domainCheck.disabled":"Domain check disabled","homeSession.domainCheck.disabledDesc":"More flexible for temporary debugging. Complete platform config before release.","homeSession.domainCheck.enabledWithDomains":"{{count}} Trust Domains","homeSession.domainCheck.enabledWithDomainsDesc":"Network requests are checked against platform config.","homeSession.domainCheck.enabledNoDomains":"No Trust Domain","homeSession.domainCheck.enabledNoDomainsDesc":"External network requests may be blocked at runtime.","homeSession.chip.domainCheckOn":"Domain check on","homeSession.chip.domainCheckOff":"Domain check off","homeSession.chip.vConsoleOn":"vConsole on","homeSession.chip.vConsoleOff":"vConsole off","homeSession.chip.devPanelOn":"Dev info panel on","homeSession.chip.devPanelOff":"Dev info panel off","homeSession.diff.clientPreviewTitle":"Client preview","homeSession.diff.clientPreviewDesc":"Closer to the client runtime. For API, payment, ad, or domain issues, check phone vConsole and the developer info panel first.","homeSession.diff.remoteDebugTitle":"Remote debug","homeSession.diff.remoteDebugDesc":"Better for quick JS logic checks. Device capabilities, network policy, and client panels still need client preview verification.","homeSession.risk.domainTitle":"Domain risk","homeSession.risk.domainDesc":"Domain check is on but no Trust Domain is configured. External requests may fail at runtime.",notLogin:Ej,launchModeName:xj,selectLaunchPkg:Dj,selectIndependentPkg:Oj,selectScene:Ij,launchQueries:Rj,launchQueriesDesc:Nj,scene_scan_qrcode:jj,scene_search:Lj,scene_fyf_promotion_direct_feed_play:Aj,scene_fyf_card:Mj,scene_anchor:$j,scene_center:Fj,scene_ad:zj,scene_shortcut:qj,scene_sharing:Bj,scene_link:Gj,scene_inbox:Wj,gameMainPackage:Uj,independentPackage:Hj,customizeLaunchMode:Vj,deleteLaunchModeConfirm:Kj,save:Qj,delete:"Delete",devOptions:Yj,devOptionsDomainCheckDesc:Xj,debugSettingAdMock:Zj,debugSettingAdMockDesc:Jj,debugSettingIAPMock:eL,debugSettingIAPMockDesc:tL,selectLaunchMode:nL,createNewMode:rL,selectDebugMode:iL,browserDebugMode:oL,clientPreviewMode:sL,clientDebugMode:aL,queriesStringMustBeString:lL,queriesStringNoQuestionMark:cL,queriesStringEmptyPair:uL,queriesStringEmptyKey:dL,queriesStringDuplicateKey:pL,queriesStringInvalidKeyChars:fL,queriesStringInvalidValueChars:hL,queriesStringInvalidEncoding:gL,queriesStringMissingEqual:mL,notEmpty:yL,saveAndUse:vL,use:bL,sendLocalDebugSetting:SL,getDevGameConfigSuccess:wL,getDevGameConfigFailed:CL,startLoadDevScripts:_L,loadDevScriptsSuccess:kL,loadDevScriptsFailed:PL,loadDevScriptsEmpty:TL,loadDevScriptsInitSuccess:EL,gameResourceCompileSuccess:xL,gameResourceCompileSuccessTitle:DL,scanQRCode2Debug:OL,homeHeroEyebrow:IL,homeHeroTitle:RL,homeHeroSubtitle:NL,homeHeroTitleConnected:jL,homeHeroSubtitleConnected:LL,projectInfo:AL,launchMode:ML,codePreCheck:$L,normalLaunchMode:FL,createdLaunchMode:zL,projectInfoDesc:qL,"projectInfo.summary":"Review the active mini game's basics, package status, and platform configuration.",projectInfoDescTip:BL,"projectInfo.section.basic":"Basic info","projectInfo.section.package":"Package status","projectInfo.section.platform":"Platform setup","projectInfo.error.guideTitle":"Complete the following steps to continue using this module","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 the current debug session does not have a valid developer login yet. Finish login first, then return here to continue using this module.","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 does not have development access to this game","projectInfo.error.permission.desc":"The local project is available, but this account does not have development access to this game. Platform config and permission-dependent actions such as upload and publish are unavailable.","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.network.title":"Terminal proxy is not applied; platform API request failed","projectInfo.error.network.desc":"The local debug service is running, but the CLI cannot reach the TikTok developer platform. Trust Domains, Terms, Privacy, and other platform config may not be fetched. This often happens when VPN/proxy only applies to the browser, while terminal requests do not go through the proxy.","projectInfo.error.network.stepCheck":"If the developer platform opens in the browser but `ttmg dev` cannot fetch project overview, Trust Domains, or Terms & Privacy, treat it as a terminal-proxy issue first.","projectInfo.error.network.stepProxy":"Run `ttmg config set proxy http://127.0.0.1:7890`, replacing the port with the HTTP port exposed by your local proxy tool.","projectInfo.error.network.stepRestart":"Run `ttmg dev` again, then return here to continue.","projectInfo.error.general.title":"This module 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 return here to continue.","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":"This is usually not a local project issue. Confirm the account used by `ttmg login` belongs to the target game, then grant this game's development access on the developer platform.","projectInfo.error.helpNetworkDesc":"This usually does not mean Trust Domains are truly missing, and it is not necessarily a permission issue. The CLI process is not reaching the platform through a proxy. Turning on a VPN client is often not enough; write the proxy endpoint into the ttmg config.","projectInfo.error.helpGeneralDesc":"If the steps above all look correct and this 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":"Project overview","basicDebugGuide.locked.project.desc":"Platform-side basic info, Terms, Privacy, and trusted domain config cannot be fetched reliably.","basicDebugGuide.locked.upload.title":"Upload & publish","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 project overview, upload & publish, 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":"Open basic debug guide",notExceedSizeLimit:GL,notExceedMainPkgSizeLimit:WL,notExceedIndependentPkgSizeLimit:UL,exceedSizeLimit:HL,exceedMainPkgSizeLimit:VL,exceedIndependentPkgSizeLimit:KL,launchModeDesc:QL,"launchMode.currentDesc":"Choose an existing configuration, or switch to new mode and configure it again.","launchMode.configDesc":"Set the launch package, entry scene, and launch parameters, then save it and scan from Home.",configFileCheck:YL,gameJsonCheckDesc:XL,pkgSizeCheckDesc:ZL,mandatoryApiCheck:JL,mandatoryApiCheckDesc:e4,commonPkgSizeCheckDescTip:t4,unityPkgSizeCheckDescTip:n4,checkConfigPassed:r4,checkPkgSizePassed:i4,checkPkgSizeFailed:o4,checkConfigFailed:s4,performanceCheck:a4,checkPerformancePassed:l4,checkPerformanceFailed:c4,viewDoc:u4,expandCheckDetail:d4,closeCheckDetail:p4,gameProject:f4,gameMainPackageSize:h4,gameIndependentPackageSize:g4,gameTrustDomains:m4,gameTermsAndPrivacy:y4,gameServiceAgreement:v4,gamePrivacyPolicy:b4,termsLabel:S4,privacyLabel:w4,"projectInfo.configSummary.title":"Platform setup needs attention","projectInfo.configSummary.desc":"These settings come from the developer platform. You can keep debugging now, but complete them before submission or platform capability testing.","projectInfo.configSummary.count":"{{count}} pending","projectInfo.configSummary.reviewGroup":"Submission basics","projectInfo.configSummary.runtimeGroup":"Runtime setup","projectInfo.configSummary.item.icon":"Game icon","projectInfo.configSummary.item.name":"Game name","projectInfo.configSummary.item.description":"Game description","projectInfo.configSummary.item.domain":"Trusted domains","projectInfo.configSummary.item.terms":"Terms URL","projectInfo.configSummary.item.privacy":"Privacy URL","projectInfo.configSummary.reviewHint":"Complete before submission","projectInfo.configSummary.domainHint":"Required before external requests","projectInfo.configSummary.termsHint":"Required before login/authorize","projectInfo.configSummary.privacyHint":"Required for authorization and compliance","projectInfo.status.missing":"Missing","projectInfo.status.reviewBeforeSubmit":"Complete before submission","projectInfo.status.beforeRelease":"Complete before release","projectInfo.status.domainRequired":"Add before external requests","projectInfo.status.authRequired":"Add before login/authorize","projectInfo.logoMissingShort":"Icon missing",gameSize:C4,gameName:_4,gameIcon:k4,gameID:P4,gameDesc:T4,getDevGameDetailNotFound:E4,getDevGameDetailFailed:x4,getDevGameDetailNotLogin:D4,notLoginTip:O4,docs:I4,quickStart:R4,jsApiList:N4,errorReference:j4,faq:L4,upload:A4,cancel:M4,gameAssetDescription:$4,uploadPlatformSuccess:F4,uploadPlatformFailed:z4,uploadPlatformDesc:q4,viewOnPlatform:B4,loginToUpload:G4,uploadGamePackageTip:W4,trustDomainEmptyTip:U4,scriptsSetupFailed:H4,resourcesSetupFailed:V4,policyDependencyTermsRequired:K4,policyDependencyPrivacyRequired:Q4,policyDependencyTermsPrivacyRequired:Y4,termsOfServiceEmptyTip:X4,privacyPolicyEmptyTip:Z4,gameNameEmptyTip:J4,gameIconEmptyTip:eA,gameDescEmptyTip:tA,gameDetailNoPermission:nA,gameDetailNetworkProxyBlocked:rA,startConnectClientWS:iA,clientConnectTimeout:oA,gameDetailNotLogin:sA,gameLoginExpired:aA,login:lA,createRewardedVideoAd:cA,addShortcut:uA,startEntranceMission:dA,getShortcutMissionReward:pA,getEntranceMissionReward:fA,integrated:hA,notIntegrated:gA,checkApiSuccess:mA,checkApiFailed:yA,debugEnvSetupSuccess:vA,clientPreviewEnvSetupSuccess:bA,startToSendMetaToClient:SA,sendMetaToClientSuccess:wA,browserRemoteDebugDesc:CA,clientRealPreviewDesc:_A,"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:kA,scanQrcodeNoResponse:PA,confirm:TA,manualBindIPPlaceholder:EA,"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:xA,manualBindClientDebugServiceTitle:DA,gotoCheck:OA,checkNetworkTitle:IA,manualBindIPInfo1:RA,manualBindIPInfo2:NA,back:jA,manualConnectStart:LA,manualConnectConfirm:AA,manualConnectDialogDesc:MA,connectivityCheck:$A,connectivityCheckTitle:FA,connectivityCheckWS:zA,connectivityCheckHTTP:qA,connectivityOK:BA,connectivityNotOK:GA,connectivityTimeout:WA,connectivityFailed:UA,connectivityMissingParams:HA,needDesc:VA,debugSettingDomainCheck:KA,debugSettingVConsole:QA,debugSettingDevInfoPanel:YA,debugSettingEnableVconsoleDesc:XA,debugSettingEnableDevInfoPanelDesc:ZA,topErrorSummary:JA,topErrorTagRequired:eM,topErrorTagSuggested:tM,topBasicInfoMissing:nM,topBasicInfoNameField:rM,topBasicInfoIconField:iM,topBasicInfoDescriptionField:oM,topBasicInfoFieldJoiner:sM,topLoginStatusWarning:aM,topErrorSuggestedActionTip:lM,topErrorViewDetails:cM,topErrorHideDetails:uM,topErrorTitleRequired:dM,topErrorTitleSuggested:pM,topErrorTitleNetworkProxy:fM,topErrorTitlePermission:hM,topErrorTitleLogin:gM,topErrorTitleProjectNotFound:mM,topErrorCtaApplyPermission:yM,topErrorCtaOpenPortal:vM,topErrorMoreItems:bM,themeToggleToDark:SM,themeToggleToLight:wM,changelogFeature:CM,changelogOptimize:_M,changelogBugfix:kM,changelogLink:PM,changelog:TM,changelogNewTag:EM,changelogTip:xM,changelogTarget:DM,wasmSplit:OM,"wasmSplit.disabled.notLoggedIn":"Run `ttmg login` in the terminal and sign in with your developer-platform account before using Wasm Code Split.","wasmSplit.disabled.networkProxy":"The terminal cannot reach the TikTok developer platform. Configure the terminal proxy, rerun `ttmg dev`, then use Wasm Code Split.","wasmSplit.disabled.noPermission":"The current account does not have development permission for this game. Please apply for development permission on the developer platform before using Wasm Code Split.",splitPrepare:IM,splitCollect:RM,splitCode:NM,"splitPrepare.desc":"Submit a description and kick off the build task","splitCollect.desc":"Scan the QR code and play through the main flow","splitCode.desc":"Server generates the main bundle and sub-bundles",rollback:jM,"wasmSplit.subtitle":"Split Unity Wasm code into on-demand sub-bundles to shrink the first-screen size and improve cold-start performance.","wasmSplit.recommended":"Recommended","wasmSplit.strategy.title":"Choose split strategy","wasmSplit.strategy.subtitle":"Decide where the Wasm split runs next; you can reselect before each prepare.","wasmSplit.mode.local.title":"Local split","wasmSplit.mode.local.desc":"Split inside your local project without relying on a remote service — ideal for intranet development.","wasmSplit.mode.remote.title":"Remote split","wasmSplit.mode.remote.desc":"Use the Portal remote split service for a lighter local footprint and more stable artifacts — recommended for release builds.","wasmSplit.stage.loading":"Initializing","wasmSplit.stage.prepare":"Preparing","wasmSplit.stage.collect":"Collecting","wasmSplit.stage.split":"Splitting","wasmSplit.stage.splitted":"Already split","wasmSplit.stage.rollback":"Rolling back","wasmSplit.stage.error":"Error","wasmSplit.requirements.title":"Split requirements","wasmSplit.requirements.account":"The phone's TikTok app must use a non-US user account; US accounts cannot collect functions.","wasmSplit.requirements.unityPlugin":"Update the project to the latest Unity plugin before splitting.","wasmSplit.requirements.unityPluginLink":"View guide","wasmSplit.help.loading.title":"Initializing","wasmSplit.help.loading.line1":"Reading the current game's split configuration, please wait.","wasmSplit.help.prepare.title":"Prepare · what happens next","wasmSplit.help.prepare.line1":"After you submit, a build task starts to get the Unity Wasm ready for splitting.","wasmSplit.help.prepare.line2":"It usually takes 3–5 minutes; you can switch to other pages and the task keeps running in the background.","wasmSplit.help.collect.title":"Collect functions · record on a real device","wasmSplit.help.collect.line1":"Scan with your phone to enter the game and play through the main flow; the debug page records the called functions automatically.","wasmSplit.help.collect.line2":"The more complete the collection, the more accurate the final split.","wasmSplit.help.collect.line3":"Before scanning, confirm the phone's TikTok app uses a non-US user account and the project has the latest Unity plugin. US accounts cannot collect functions.","wasmSplit.help.split.title":"Split code · generating","wasmSplit.help.split.line1":"The backend generates the main bundle and sub-bundles from the collected function set.","wasmSplit.help.split.line2":"Once done, you can test the split version directly from “Start debugging”.","wasmSplit.help.rollback.title":"Roll back to the previous version","wasmSplit.help.rollback.line1":"This split will be undone and the project restored to its un-split state.","wasmSplit.help.splitted.title":"Already split","wasmSplit.help.splitted.line1":'This project already has a finished Wasm split — you can compress and upload as-is, or hit "Discard split" to start over.',"wasmSplit.help.error.title":"Something went wrong","wasmSplit.help.error.line1":"Follow the prompts to retry, or go back home to check the current game's status.","wasmSplit.meta.stage":"Current stage","wasmSplit.meta.mode":"Split mode","wasmSplit.meta.engine":"Engine","wasmSplit.meta.game":"Game","wasmSplit.meta.wasmSize":"WASM size","wasmSplit.meta.wasmMd5":"WASM MD5","wasmSplit.currentMode":"Current split mode","wasmSplit.initializingEnv":"Initializing split environment","wasmSplit.empty.unityOnly.title":"Available for Unity only","wasmSplit.empty.unityOnly.desc":"This project is not a Unity project. Wasm split is only available for Unity games. Switch to a Unity project and revisit this page.","wasmSplit.empty.backHome":"Back to home","wasmSplit.empty.needDevice.title":"Connect a device and select a game first","wasmSplit.empty.needDevice.desc":"Wasm split depends on the current mini game's Wasm package and login state. Scan to connect the client and select a game under “Start debugging”, then come back here to begin.","wasmSplit.empty.connectDevice":"Connect a device","wasmSplit.splitDoneToast":"Split complete — collected {{count}} functions this time.","rollback.rollbacking":"Rolling back...","rollback.backgroundRun":"Run in background","rollback.success":"Rollback succeeded","rollback.close":"Close","rollback.failed":"Rollback failed","rollback.retry":"Retry","collect.sessionClosed":"The collection session was closed (it may have timed out or been taken over by another client). Click “Start split” again to resume collecting.","collect.startFailed":"Failed to start collecting, please try again","collect.requirements.title":"Before scanning","collect.requirements.desc":"Use a non-US TikTok account and update to the latest Unity plugin before scanning; US accounts cannot collect functions.","collect.requirements.link":"View guide",splitFailed:LM,writingSplitResult:AM,retry:MM,startingPrepare:$M,cancelPrepare:FM,backgroundRun:zM,preparingSplit:qM,warningDuringPreparing:BM,"remotePreparing.title":"Remote build task in progress, please wait...","remotePreparing.eta":"Submitted to Portal cloud build — usually 3 - 5 minutes, can run in background; do not modify the local game package meanwhile.",preparingSplitSuccess:GM,preparingSplitFailed:WM,retryPrepare:UM,downloadPreparedWasmCode:HM,downloadFailed:VM,retryDownload:KM,downloadSuccess:QM,downloadPreparedWasmCodeDesc:YM,splitDesc:XM,inputSplitDesc:ZM,startPrepare:JM,processing:e$,updateWasmSplitConfig:t$,updateWasmSplitConfigSuccess:n$,updateWasmSplitConfigFailed:r$,compressPreparedWasmCodeSuccess:i$,compressPreparedWasmCodeFailed:o$,writeCompressPreparedWasmCode:s$,writeCompressPreparedWasmCodeSuccess:a$,writeCompressPreparedWasmCodeFailed:l$,fetchDownloadUrl:c$,fetchDownloadUrlSuccess:u$,fetchDownloadUrlFailed:d$,downloadPreparedWasmCodeSuccess:p$,downloadPreparedWasmCodeFailed:f$,startSplit:h$,cannotSplitTip:g$,collectDesc:m$,collectConnectedTitle:y$,collectConnectedDesc:v$,startCollect:b$,startingCollect:S$,resumedCollectSession:w$,wasmSize:C$,collectedFuncCount:_$,totalFuncCount:k$,splitVersion:P$,splittingDesc:T$,cancelSplit:E$,getSplitResult:x$,retryGetSplitResult:D$,getSplitResultFailed:O$,splitSuccess:I$,downloadSplitResult:R$,downloadSplitResultFailed:N$,retryDownloadSplitResult:j$,downloadSplitResultSuccess:L$,downloadSplitResultTip:A$,start_download_android_main_wasm:M$,download_android_main_wasm_done:$$,start_compress_android_main_wasm:F$,compress_android_main_wasm_done:z$,start_download_android_sub_wasm_code:q$,download_android_sub_wasm_code_done:B$,start_compress_android_sub_wasm_code:G$,compress_android_sub_wasm_code_done:W$,start_download_ios_main_wasm:U$,download_ios_main_wasm_done:H$,start_compress_ios_main_wasm:V$,compress_ios_main_wasm_done:K$,start_download_ios_sub_wasm_code:Q$,download_ios_sub_wasm_code_done:Y$,start_compress_ios_sub_wasm_code:X$,compress_ios_sub_wasm_code_done:Z$,start_write_splited_wasm_br:J$,write_splited_wasm_done:e3,start_update_wasm_split_config:t3,update_wasm_split_config_done:n3,noWasmCode:r3,noWasmCodeDesc:i3,hasSplitedTitle:o3,hasSplitedDesc:s3,hasSplitedDiscard:a3,noSplitConfigTitle:l3,noSplitConfigDesc:c3,advancedGuide:u3,integrationAssistant:d3,"ia.title":"Capability Access","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.menu.wasmSplit":"Wasm Code Split","ia.wasmSplit.summary":"Split the Unity Wasm bundle into on-demand chunks to shrink the initial payload and improve cold start. Unity engines only.","performance.menu.title":"Performance","performance.overview.title":"Performance","performance.overview.desc":"Choose by project type: Unity projects use Wasm Code Split; non-Unity projects can preview Subpackage Collection.","performance.section.title":"Optimization tools","performance.section.desc":"Each tool is a standalone capability. Click a card to enter its workflow.","performance.card.wasmSplit.title":"Wasm Code Split","performance.card.wasmSplit.desc":"Split the Unity Wasm bundle into on-demand chunks to shrink the initial payload and improve cold start. Unity engines only.","performance.card.subpackageCollect.title":"Subpackage Collection","performance.card.subpackageCollect.desc":"Record the subpackages predownloaded during startup on a real device, split by FP / TTI phase, and turn them into preload config in game.json.","performance.card.subpackageCollect.status":"New","performance.empty.comingSoon":"More performance tooling is on the way.",subpackageCollect:p3,"subpackageCollect.subtitle":"Preview the startup flow on a real device, collect the subpackages predownloaded during startup, and write them into the preload config.","subpackageCollect.phase.fp":"FP","subpackageCollect.phase.tti":"TTI","subpackageCollect.stage.entry":"Pick entry","subpackageCollect.stage.empty":"No subpackages","subpackageCollect.stage.notStarted":"Not started","subpackageCollect.stage.collecting":"Collecting","subpackageCollect.stage.processing":"Processing","subpackageCollect.stage.success":"Done","subpackageCollect.stage.failed":"Failed","subpackageCollect.stage.unsupported":"Unsupported","subpackageCollect.entry.title":"Pick a startup entry","subpackageCollect.entry.subtitle":"Collect per startup root. The main package is the default; independent subpackages are listed when present.","subpackageCollect.entry.game":"Main package","subpackageCollect.entry.gameTag":"Default","subpackageCollect.entry.independentTag":"Independent","subpackageCollect.empty.title":"This game has no subpackages","subpackageCollect.empty.desc":"game.json defines no subpackages. Startup preload collection only applies to games with subpackages, so there is nothing to do here.","subpackageCollect.empty.back":"Back to Performance","subpackageCollect.unsupported.unity.title":"Unity mini games do not support subpackage collection","subpackageCollect.unsupported.unity.desc":"Subpackage collection only supports non-Unity mini games. This project is a Unity mini game, so entry selection, scanning, and collection controls are hidden.","subpackageCollect.unsupported.unity.action":"Go to Wasm Split","subpackageCollect.devGuide.link":"Subpackage Collection Guide","subpackageCollect.devGuide.clientVersion":"Supported client versions","subpackageCollect.devGuide.android":"Android 45.9+","subpackageCollect.devGuide.ios":"iOS 46.0+","subpackageCollect.devGuide.stepsTitle":"Main collection steps","subpackageCollect.devGuide.required.badge":"Required in code","subpackageCollect.devGuide.required.title":"Before collection, integrate this call in the game code:","subpackageCollect.devGuide.required.code":"reportScene({ sceneId: 9999 })","subpackageCollect.devGuide.required.desc":"Call it when the game becomes interactive. The debug page ends the run and shows Finish collection only after receiving this report.","subpackageCollect.devGuide.step1.title":"Confirm the account region","subpackageCollect.devGuide.step1.desc":"Function collection is unavailable with a US-region account. Switch to a non-US account and scan again.","subpackageCollect.devGuide.step2.title":"Confirm subpackage config","subpackageCollect.devGuide.step2.desc":"game.json must define subpackages, and the run should target either the main package entry or an independent subpackage entry.","subpackageCollect.devGuide.step3.title":"Follow the real startup path","subpackageCollect.devGuide.step3.desc":"After scanning, do not stop at the first screen. Continue until the game is interactive so the client records the actually predownloaded subpackages.","subpackageCollect.scan.title":"Scan and run","subpackageCollect.scan.subtitle":"Keep DevTool open and preview once through the real startup path.","subpackageCollect.guide.step2":"After scanning, play through the game's real startup logic; as it runs, the client reports the subpackages it actually loads and they get collected.","subpackageCollect.guide.step3":"When the game becomes interactive, it must call reportScene({sceneId:9999}). The debug page ends the run and shows Finish collection only after receiving the report.","subpackageCollect.preview.noSchema":"No preview schema yet. Connect a device from Debug first, then come back.","subpackageCollect.preview.currentEntry":"Current entry","subpackageCollect.preview.collectedTitle":"Collected subpackages","subpackageCollect.preview.collectedDesc":"Live capture of this run, deduped by name (first report wins), split into FP / TTI.","subpackageCollect.preview.existingDesc":"Existing config for this entry. It is shown for reference only and is not merged into a new run.","subpackageCollect.preview.empty":"No subpackages captured yet.","subpackageCollect.reportScene.toastTitle":"reportScene({sceneId:9999}) received","subpackageCollect.reportScene.toastDesc":"The game reached the interactive state. Finish collection is now unlocked.","subpackageCollect.reportScene.readyTitle":"reportScene received — collection can finish","subpackageCollect.reportScene.readyDesc":"The current list will be used for this run. Review the subpackages, then select Finish collection to write the configuration.","subpackageCollect.wait.runningTitle":"Waiting for reportScene","subpackageCollect.wait.running":"The device is connected and subpackages are being recorded. Follow the real startup path; when the game becomes interactive, it must call reportScene({sceneId:9999}). Finish collection appears only after the debug page receives it.","subpackageCollect.wait.timeoutTitle":"reportScene not received — collection cannot finish","subpackageCollect.wait.timeout":"Confirm that reportScene({sceneId:9999}) is integrated in the game code, then follow the real startup path until the game becomes interactive.","subpackageCollect.wait.docLink":"View integration guide","subpackageCollect.manualConnect.title":"Not connected after scanning?","subpackageCollect.manualConnect.desc":"This is common with VPN, proxy, or multi-NIC setups. Retry the previous record or enter the client IP and ports manually.","subpackageCollect.manualConnect.action":"Manual connect","subpackageCollect.manualConnect.retry":"Retry last connection","subpackageCollect.manualConnect.noRecordTitle":"No manual connection record","subpackageCollect.manualConnect.noRecordDesc":"Fill in the client IP, HTTP port, and WS port first. After saving, this page can retry it directly.","subpackageCollect.manualConnect.retryTitle":"Retrying previous connection","subpackageCollect.manualConnect.retryDesc":"Reconnecting to the client debug service with {{ip}}:{{port}}.","subpackageCollect.mock.title":"Mock reporting (debug only)","subpackageCollect.mock.subtitle":"Real-device reporting is pending. Simulate predownload / reportScene here to validate the UI and CLI write path.","subpackageCollect.mock.placeholder":"Select an available subpackage","subpackageCollect.mock.noCandidates":"No predownloadable subpackage under this entry (requires a subpackages entry in game.json with an existing root directory). You can still trigger reportScene to finish collection.","subpackageCollect.mock.reportFp":"Report FP","subpackageCollect.mock.reportTti":"Report TTI","subpackageCollect.mock.reportScene":"reportScene(9999)","subpackageCollect.finish.overwriteNote":"Finishing overwrites this entry's existing {{existing}} item(s) with the {{current}} item(s) from this run (full overwrite per entry, not incremental merge).","subpackageCollect.finish.clearNote":"No subpackages captured this run; finishing clears this entry's existing {{existing}} item(s).","subpackageCollect.finish.clearTitle":"Clear existing config?","subpackageCollect.finish.clearConfirm":"No subpackages were captured this run. Finishing will clear this entry's existing {{existing}} item(s) and cannot be undone. To keep the existing config, choose Exit collection or run another capture.","subpackageCollect.finish.okClear":"Clear and finish","subpackageCollect.finish.cancel":"Cancel","subpackageCollect.action.finish":"Finish collection","subpackageCollect.action.cancel":"Cancel collection","subpackageCollect.action.exit":"Exit collection","subpackageCollect.action.exitRun":"Exit collection","subpackageCollect.action.recollect":"Collect again","subpackageCollect.action.switch":"Switch entry","subpackageCollect.loading":"Loading project config…","subpackageCollect.processing":"Processing…","subpackageCollect.processing.write":"Writing config to game.json…","subpackageCollect.processing.clear":"Clearing old config before collecting again…","subpackageCollect.processing.cancel":"Canceling collection and clearing config…","subpackageCollect.success.title":"Config written","subpackageCollect.success.empty":"No subpackages were written for this entry.","subpackageCollect.failed.title":"Collection failed","subpackageCollect.error.generic":"Failed to write config. Please retry.","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 three stages: first verify the mini game package itself, then use a preview QR code to validate the card presentation and handoff path, and finally manage the verified card's live status.","ia.directPlay.versionNotice":"Direct-play stage 2 debugging requires client version 45.4.0 or later. Confirm the client version first before using preview-QR-related capabilities.","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 to validate the direct-play card presentation and handoff with a preview QR code, then manage the same card's live status.","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; stage 3 only manages the live status of the card already verified in stage 2.","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 code version, 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 code version","ia.directPlay.stage2.selectedCard":"Selected card","ia.directPlay.stage2.selectedAsset":"Selected preview code version","ia.directPlay.stage2.cardName":"Card name: ","ia.directPlay.stage2.cardContentId":"Content ID: ","ia.directPlay.stage2.cardDesc":"Card description: ","ia.directPlay.stage2.cardScenario":"Scenario: ","ia.directPlay.stage2.cardStatus":"Review status: ","ia.directPlay.stage2.cardStatus.approved":"Approved","ia.directPlay.stage2.cardStatus.pending":"Available after backend review","ia.directPlay.stage2.cardPackage":"Launch package: ","ia.directPlay.stage2.cardQueries":"Queries: ","ia.directPlay.stage2.assetGroup":"Code version 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 code version","ia.directPlay.stage2.assetGroup.live":"Live code version","ia.directPlay.stage2.assetGroup.review":"In-review code version","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.directPlay.stage2.modeSelect":"Use existing card","ia.directPlay.stage2.modeCreate":"Create card","ia.directPlay.stage2.create.title":"Create direct-play card","ia.directPlay.stage2.create.desc":"Create a new direct-play card directly in the debug tool. After it succeeds, the list will refresh and the new card will be selected automatically.","ia.directPlay.stage2.create.option":"+ Create direct-play card","ia.directPlay.stage2.create.cardName":"Card name","ia.directPlay.stage2.create.cardNamePlaceholder":"Example: Send reward card for xx game","ia.directPlay.stage2.create.cardDesc":"Card description","ia.directPlay.stage2.create.cardDescPlaceholder":"Example: Send 1000 coins to recall players","ia.directPlay.stage2.create.cardType":"Card type","ia.directPlay.stage2.create.cardType.fixed":"Fixed card","ia.directPlay.stage2.create.cardType.dynamic":"Dynamic card","ia.directPlay.stage2.create.cardType.dynamicDesc":"Dynamic card: the platform provides a server API so developers can push in-game events and campaign reminders dynamically, such as stamina recovery or event start reminders.","ia.directPlay.stage2.create.cardType.fixedDesc":"Fixed card: integrated with fixed client-side logic, such as recalling users with a gift pack by the same rule each time.","ia.directPlay.stage2.create.scenario":"Scenario","ia.directPlay.stage2.create.scenarioPlaceholder":"Example: recover_stamina","ia.directPlay.stage2.create.scenario.rewardIssue":"Reward issue reward_issue","ia.directPlay.stage2.create.scenario.recoverStamina":"Stamina recovery recover_stamina","ia.directPlay.stage2.create.scenario.unlockLevel":"Unlock level unlock_level","ia.directPlay.stage2.create.subPkg":"Launch package","ia.directPlay.stage2.create.params":"Queries","ia.directPlay.stage2.create.paramsPlaceholder":"Example: a=1&b=constant","ia.directPlay.stage2.create.submit":"Create and select card","ia.directPlay.stage2.create.success":"The direct-play card was created and selected automatically.","ia.directPlay.stage2.create.failed":"Failed to create the direct-play card.","ia.directPlay.stage3.title":"Stage 3: manage direct-play card status","ia.directPlay.stage3.desc":"After the stage 2 preview is verified, publish or unpublish the currently selected direct-play card to control whether the live direct-play Feed path uses it.","ia.directPlay.stage3.banner":"Publishing or unpublishing changes the live status of the currently selected direct-play card. Confirm the stage 2 preview QR code before publishing.","ia.directPlay.stage3.selectedCard":"Current card publish status","ia.directPlay.stage3.emptyCard":"Select a direct-play card in stage 2 first.","ia.directPlay.stage3.publishStatus":"Publish status: ","ia.directPlay.stage3.cardStatus.online":"Published","ia.directPlay.stage3.cardStatus.notOnline":"Not published","ia.directPlay.stage3.publish":"Publish direct-play card","ia.directPlay.stage3.published":"Published","ia.directPlay.stage3.offline":"Unpublish direct-play card","ia.directPlay.stage3.confirmTitle":"Publish direct-play card {{name}} ({{contentId}})?","ia.directPlay.stage3.offlineConfirmTitle":"Unpublish direct-play card {{name}} ({{contentId}})?","ia.directPlay.stage3.selectRequired":"Select a direct-play card in stage 2 first.","ia.directPlay.stage3.publishSuccess":"The direct-play card has been published and the latest status was refreshed.","ia.directPlay.stage3.publishFailed":"Failed to publish the direct-play card.","ia.directPlay.stage3.offlineSuccess":"The direct-play card has been unpublished and the latest status was refreshed.","ia.directPlay.stage3.offlineFailed":"Failed to unpublish the direct-play card.","ia.overview.eyebrow":"Capability Map","ia.overview.title":"Capability Access","ia.overview.desc":"Start by confirming the monetization model, then review the recommended capability combination. Revisit, sharing, and foundational capabilities stay available below.","ia.overview.groups.title":"Capability overview","ia.overview.groups.desc":"The sections below stay grouped by business goal into growth and revisit, sharing and growth, and core capabilities for follow-up integration.","ia.overview.keyCapabilities.title":"Key capabilities","ia.overview.keyCapabilities.desc":"These capabilities do not change with monetization mode, so expand them only when needed.","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":"Login 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.monetization.title":"Choose monetization model","ia.monetization.desc":"Review the corresponding capability combination and debugging focus based on the current monetization model of the mini game.","ia.monetization.meta.required":"Required","ia.monetization.meta.optional":"Optional","ia.monetization.meta.support":"Supporting","ia.monetization.meta.experimental":"Experimental","ia.monetization.core.title":"Core capabilities","ia.monetization.mode.iaa.title":"IAA","ia.monetization.mode.iaa.summary":"Ad monetization comes first, so stabilize identity, ad requests, and callback handling early.","ia.monetization.mode.iaa.desc":"For ads-first games, start with `login` to establish user identity, then validate placement setup, ad request flow, and callback handling. Add `authorize` only when you need extra profile fields such as nickname or avatar, prioritize network stability early so ad loading and callbacks do not get blocked, and use revisit capabilities to verify retention and return paths for ad users.","ia.monetization.mode.iap.title":"IAP","ia.monetization.mode.iap.summary":"The payment loop comes first, with order creation, payment, verification, and fulfillment kept consistent end to end.","ia.monetization.mode.iap.desc":"For purchase-driven games, start with `login`, order creation, payment invocation, backend verification, and fulfillment as one closed loop. Add `authorize` only when extra profile data or additional scopes are required, pay special attention to weak-network, payment-cancel, and duplicate-order cases, and use revisit capabilities to validate the return path for paying users.","ia.monetization.mode.iaap.title":"IAAP","ia.monetization.mode.iaap.summary":"Ads and payments run together, so validate overall stability on top of the shared user system.","ia.monetization.mode.iaap.desc":"For hybrid monetization, use `login` to establish the shared user system first, then validate both the ad flow and the payment loop separately. Add `authorize` only when extra user profile data is required, make sure both monetization paths remain stable under the same account and gameplay session, and use revisit capabilities to verify ongoing return traffic for mixed-monetization users.","ia.monetization.recommended.title":"Recommended capability combination","ia.requirement.required":"Required","ia.requirement.optional":"Optional","ia.requirement.recommended":"Recommended","ia.requirement.basic":"Core","ia.requirement.experimental":"Experimental","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.overview.section.performance.title":"Performance","ia.overview.section.performance.desc":"Tools that shrink bundle size, speed up startup, and improve runtime performance. Opt in per capability; more optimizations will land here in upcoming releases.","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.",languageSwitcherLabel:f3,langChinese:h3,langEnglish:g3},y3="DevTool",v3="扫码开始本地调试",b3="设备连接成功",S3="调试服务已断开连接",w3="未连接设备",C3="Node",_3="浏览器",k3="调试页面",P3="客户端",T3="已连接",E3="未连接",x3="连接失败",D3="未知",O3="节点说明",I3="本机启动的调试服务(负责与调试页面、客户端建立通道并转发调试消息)",R3="当前打开 DevTool 的调试页面",N3="真机上的 TikTok 客户端调试服务(提供 HTTP/WS 能力)",j3="点表示该链路的连通状态;同一条边上 ws/http 分别显示在两侧以便区分",L3="网络诊断",A3="网络连接诊断",M3="定位扫码卡住、连接失败和端口不可达。",$3="扫码没响应?点击这里进行诊断处理",F3="网络诊断",z3="TikTok 扫码无响应、局域网不通或代理复杂时,可先在这里快速定位问题。",q3="打开诊断",B3="一键检测",G3="手动连接",W3="手动绑定客户端调试服务",U3="当扫码链路不可用(代理/防火墙/多网卡)时,可通过手动填写客户端 IP 与端口进行连接。",H3="手动指定客户端地址",V3="进入手动连接",K3="当前结论",Q3="尚未开始检测",Y3="先检测本地服务、客户端 HTTP 和客户端 WS,确定卡点在哪一段。",X3="点击一键检测,或先填写客户端地址后再检测。",Z3="正在检测链路",J3="正在检查本地服务、客户端 HTTP 和客户端 WS。",e5="完成后查看下方检测结果。",t5="缺少客户端地址",n5="当前没有客户端 IP / HTTP / WS 端口,无法判断手机侧链路。",r5="本地调试服务不可用",i5="调试页面无法访问本地 Node 服务,请先确认 `ttmg dev` 正在运行。",o5="调试页面无法连接本地 Node WebSocket,请确认本地调试服务已启动完成。",s5="客户端链路不可达",a5="本地服务正常,但调试页面访问手机端 HTTP 和 WS 都超时,卡点在手机侧链路或客户端调试服务。",l5="客户端 WS 不可达",c5="客户端 HTTP 可访问,但 WS 超时,优先检查 WS 端口和客户端监听状态。",u5="网络链路正常",d5="本地服务和客户端 HTTP / WS 均可达,可返回扫码调试继续排查上层逻辑。",p5="检测结果不完整",f5="当前结果未命中典型故障,请核对客户端地址和端口后重新检测。",h5="确认客户端 IP、HTTP 端口、WS 端口与加载页一致。",g5="电脑端 IP",m5="WS 端口",y5="HTTP 端口",v5="电脑端",b5="客户端",S5="查看排错指南",w5="打开代理配置",C5="环境信息",_5="展开查看本机和客户端地址。",k5="检测结果",P5="保留链路证据,便于确认问题发生在哪一段。",T5="调试页面 ↔ Node(HTTP)",E5="调试页面 ↔ Node(WS)",x5="调试页面 ↔ 客户端(HTTP)",D5="调试页面 ↔ 客户端(WS)",O5="诊断建议",I5="先按下面的建议处理,再回到上方重新检测,确认问题是否已经收敛。",R5="操作区域",N5="补充信息:如果连接成功,可返回扫码调试页面继续调试。",j5="手动连接已写入当前环境,并已自动触发完整检测。",L5="手动连接已提交,但快速连通性检查失败:",A5="扫码未带回地址或端口不一致时,填写客户端 IP / HTTP / WS 后重新检测。",M5="下一步",$5="诊断结果",F5="建议处理",z5="填写地址",q5="先补齐客户端 IP、HTTP 端口和 WS 端口,再保存并检测当前链路是否可达。",B5="返回扫码调试",G5="当前核心网络链路可达,可以回到首页重新扫码或继续当前调试流程。",W5="重启后重新检测",U5="请先确认 `ttmg dev` 正在运行,必要时重启本地调试服务,然后重新检测。",H5="重新检测当前环境,确认问题是否已经收敛。",V5="展开",K5="收起",Q5="查看文档",Y5="未检测到客户端调试地址",X5="扫码连接,或填写客户端 IP / HTTP / WS 端口。",Z5="客户端连通失败(多为局域网/代理/防火墙问题)",J5="请确认手机与电脑同一 Wi‑Fi/网段;关闭全局代理/关闭 TUN;代理开启 Allow LAN;检查系统防火墙是否放行 Node.js。",eF="本地调试服务不可用",tF="请确认已在项目根目录运行 `ttmg dev`,且端口未被占用。",nF="如刚改过网络或代理配置,建议回到项目根目录重新执行 `ttmg dev`。",rF="确认手机停留在调试加载页,客户端调试服务已开启,端口与加载页一致。",iF="确认手机和电脑在同一 Wi-Fi / 网段;如使用代理,开启 Allow LAN,并检查 VPN/TUN 与防火墙。",oF="确认 WS 端口正确且正在监听;若仍超时,检查防火墙、路由策略或 VPN/TUN。",sF="未发现明显异常",aF="若仍然连接失败,请将本页“复制环境信息”和报错截图发到群里协助排查。",lF="HTTP 可达但 WS 不可达:优先检查 WS 端口是否正确、客户端调试服务是否在监听该端口。",cF="若 WS 超时:多为端口被防火墙/路由策略拦截,或电脑开了全局代理/TUN 影响局域网。",uF="HTTP 与 WS 均不可达:优先检查手机与电脑是否同一 Wi‑Fi/网段(公司网络可能有 AP 隔离)。",dF="关闭全局 VPN/TUN,代理需开启 Allow LAN;检查防火墙是否放行局域网访问。",pF="仍失败时,将手机网络代理到电脑网络后重新扫码。",fF="当前未拿到客户端 HTTP 地址或端口",hF="当前未拿到客户端 WS 地址或端口",gF="待检测",mF="检测中",yF="需确认",vF="等待检测",bF="检测中...",SF="网络可达",wF="提示",CF="如果电脑能 ping 通手机但 WS 连不上,通常是端口未监听或被防火墙/策略拦截(ICMP 与 TCP/WS 条件不同)。",_F="客户端连接已断开,请重新扫码连接",kF="Node 服务连接中断,请在终端重启调试服务",PF="切换调试设备",TF="无设备连接",EF="请先连接设备后再进行调试",xF="使用 TikTok 扫码调试",DF="切换扫码设备",OF="正在初始化调试环境...",IF="通知客户端初始化调试环境...",RF="获取客户端调试环境配置中...",NF="获取客户端调试环境配置失败",jF="客户端调试环境配置获取成功",LF="客户端调试环境初始化成功,等待上传游戏资源包...",AF="客户端调试环境初始化失败",MF="初始化 JS 运行时环境中...",$F="JS 运行时环境初始化成功",FF="重新上传代码包",zF="正在上传游戏资源包...",qF="游戏资源包上传中",BF="正在传输到客户端,完成后会自动启动游戏。",GF="游戏资源包上传成功,客户端准备启动游戏...",WF="游戏资源包上传失败,请检查环境配置",UF="正在初始化游戏环境...",HF="游戏资源正在本地编译,请稍候...",VF="游戏资源编译中",KF="游戏资源已更新,是否重新上传进行调试?",QF="游戏资源更新成功!",YF="游戏环境初始化失败,请检查当前环境",XF="正在获取游戏调试环境配置",ZF="游戏环境配置获取成功",JF="游戏环境配置获取失败",e6="正在获取游戏脚本",t6="浏览器调试环境初始化成功,上传游戏资源后将自动启动游戏",n6="游戏运行环境初始化成功,准备上传资源至客户端",r6="正在上传游戏包至客户端",i6="游戏包上传成功,客户端正在加载游戏...",o6="游戏包上传失败",s6="重新上传小游戏包",a6="重新启动小游戏",l6="结束调试",c6="正在启动调试环境...",u6="本地 Node 调试服务连接失败",d6="正在连接本地 Node 调试服务...",p6="本地 Node 调试服务连接成功",f6="本地 Node 调试服务连接失败,请确认已在游戏根目录下运行 ttmg dev",h6="Node 调试服务已断开,请在终端重启调试服务",g6="客户端调试服务连接成功",m6="客户端调试服务连接失败,请重新扫码开启调试服务",y6="客户端调试服务已断开,请重新扫码连接",v6="当前网络无法用于手机扫码",b6="本地调试服务已启动,但电脑没有可供手机访问的局域网地址。请确认手机与电脑连接同一网络;使用 VPN 或代理时,请开启局域网访问。",S6="设置连接地址",w6="客户端调试环境启动失败,请重新扫码连接",C6="游戏脚本加载失败",_6="上传至手机",k6="暂不上传",P6="上传至平台",T6="正在扫描二维码...",E6="可切换设备扫码开启新的调试会话",x6="请确保您的 TikTok 账号已添加为调试应用的测试用户",D6="未登录",O6="启动模式名称",I6="选择启动包",R6="选择独立分包",N6="选择进入场景",j6="自定义启动参数",L6="示例:a=1&b=2",A6="扫码打开",M6="查询参数必须是字符串类型",$6="搜索",F6="推荐流直玩",z6="异形卡",q6="达人视频",B6="复访奖励 - 侧边栏",G6="推荐页广告",W6="桌面快捷方式",U6="聊天分享",H6="链接访问",V6="消息通知",K6="首包",Q6="查询参数不应包含问号(?)前缀,请只输入参数部分",Y6=`查询参数格式错误:发现空的键值对片段。请确保每个 '&' 符号两侧都有完整的 "key=value" 结构。`,X6="独立分包",Z6="自定义启动模式",J6="不能为空",e8="保存",t8="当前启动模式",n8="新建启动模式",r8="扫码使用",i8="选择调试模式",o8="远程调试",s8="真机预览",a8="真机调试",l8="应用",c8="本地 Node 调试服务配置信息获取成功",u8="获取本地调试服务配置信息失败,请检查 Node 服务是否正常启动",d8="正在加载调试环境依赖脚本资源",p8="依赖脚本资源加载成功",f8="依赖脚本资源加载失败,请重新扫码开启调试服务",h8="依赖脚本内容为空,请重新扫码开启调试服务",g8="依赖脚本资源加载并初始化成功",m8="游戏资源编译成功!请使用手机扫码调试。",y8="游戏资源编译成功!",v8="开始调试",b8="开始调试",S8="扫码连接,开始调试",w8="选择启动模式,使用 TikTok 客户端扫码即可在真机或浏览器中预览小游戏。",C8="设备已连接,调试进行中",_8="已与 TikTok 客户端建立连接,可在真机或浏览器中预览小游戏;如需切换设备,重新扫码即可开启新的调试会话。",k8="项目概览",P8="在本地调试阶段,您可以快速查看当前小游戏的基本信息,包括:游戏名称、图标、Client key、描述、整包大小、首包大小、独立分包大小、信任域名、服务条款、隐私政策等。",T8="通过提前检查这些核心信息,能够及时发现潜在问题,确保在正式发布前,项目状态符合平台要求,减少上线后的风险和返工。",E8="启动模式",x8="上传发布",D8="默认启动模式",O8="新建启动模式",I8="未超过项目大小 {{limit}} 限制",R8="未超过首包大小 {{limit}} 限制",N8="未超过独立分包大小 {{limit}} 限制",j8="超过项目大小 {{limit}} 限制",L8="超过首包大小 {{limit}} 限制",A8="超过独立分包大小 {{limit}} 限制",M8="通过设置启动模式,您可以灵活选择游戏的调试模式、启动包、进入场景以及启动参数,满足不同测试和上线需求。请根据实际需求完成相关配置,确保游戏能够正常启动并进入预期场景。",$8="3. 配置文件检查",F8="确保分包文件路径配置正确,所有路径都能正常访问,避免后续加载失败。",z8="1. 包体大小检查",q8="整个游戏包大小需控制在 {{projectSize}} 以内,首包大小不能超过 {{mainPackageSize}},独立分包大小不能超过 {{independentPackageSize}}。",B8="整个游戏包大小需控制在 {{projectSize}} 以内,无其他额外限制。",G8="2. 必接能力检查",W8="检查游戏是否已集成必要的 API 能力,保证小游戏在 TikTok 中有更好的用户体验和转化效果。",U8="配置文件检查通过",H8="包体大小检查通过",V8="包体大小检查失败",K8="配置文件检查失败",Q8="性能检查",Y8="性能检查通过",X8="性能检查未通过",Z8="查看文档",J8="展开",e7="收起",t7="游戏项目",n7="游戏首包",r7="开发者选项",i7="调试时允许请求未在平台配置的域名。",o7="使用模拟广告结果调试广告场景。",s7="支付结果走沙盒环境,便于调试支付结果相关场景。",a7="开启广告 Mock",l7="开启支付 Mock",c7="📢 发送本地调试设至客户端...",u7="确定要删除{{name}}启动模式吗?",d7="游戏名称",p7="游戏图标",f7="Client key",h7="游戏描述",g7="游戏大小",m7="首包大小",y7="独立分包大小",v7="信任域名",b7="Terms & Privacy",S7="Terms & Privacy - Terms URL",w7="Terms & Privacy - Privacy URL",C7="Terms of Service URL",_7="Privacy policy URL",k7="确保所有可能触发网络请求的域名都已添加到信任域名列表中,避免因域名未配置而导致的网络请求失败。",P7="确认 Terms & Privacy(Terms URL)已填写且有效,用户在使用游戏时需要同意相关条款。",T7="确认 Terms & Privacy(Privacy URL)已填写且有效,用户在使用游戏时需要同意相关条款。",E7="查询参数格式错误:{{pair}} 缺少等号(=)或值为空。请使用 key=value 格式,且值不能为空。",x7="查询参数格式错误:键不能为空。发现 {{pair}}",D7="查询参数中发现重复的键:{{key}}。每个键必须是唯一的。",O7="查询参数格式错误:键 {{key}} 包含无效字符。请只使用字母、数字、下划线(_)和短横线(-)。",I7="查询参数格式错误:值 {{value}} 包含无效字符。请只使用字母、数字、下划线(_)和短横线(-)。",R7="查询参数格式错误:键值对 {{pair}} 包含无效的 URL 编码字符。请使用正确的编码格式。",N7="获取游戏详情失败,请稍后重试。",j7="当前账号未登录,无法获取游戏详情。请先在控制台执行 【ttmg login】命令,使用开发者平台账号登录后,再运行 【ttmg dev】 命令以开启调试模式。",L7="你可以通过在控制台输入 `ttmg login` 命令,并使用开发者平台的账号和密码进行登录。",A7="文档",M7="快速开始",$7="API 参考",F7="错误代码参考",z7="常见问题",q7="上传",B7="取消",G7="版本说明",W7="上传成功",U7="上传失败",H7="成功上传游戏资源到平台,平台会对资源进行校验并部署,去平台查看上传后的预览版本。",V7="去平台查看",K7="只有在命令行完成登录后,调试页面的游戏包上传功能才可使用。请先在控制台执行 `ttmg login`,使用开发者平台账号登录后,再运行 `ttmg dev` 命令以开启调试模式。",Q7="上传当前游戏包至平台",Y7="当前尚未在平台设置信任域名。只有已填写到平台列表中的域名,才允许在运行时发起网络请求;如果游戏会请求外部域名,请按需补充对应配置。",X7="调试环境脚本初始化失败,请扫码重试",Z7="游戏资源上传失败,请扫码重试",J7="当前游戏未配置 Terms & Privacy(Terms URL)。login/authorize 能力依赖该配置,缺失时会导致开发调试失败,请先在平台补充该 URL。",ez="当前游戏未配置 Terms & Privacy(Privacy URL)。login/authorize 能力依赖该配置,缺失时会导致开发调试失败,请先在平台补充该 URL。",tz="当前游戏未配置 Terms & Privacy(Terms URL 和 Privacy URL)。login/authorize 能力依赖这两个配置,缺失时会导致开发调试失败,请先在平台补充对应 URL。",nz="当前尚未在平台设置 Terms & Privacy(Terms URL)。请确保在游戏上线前补充该 URL,以保护用户权益。",rz="当前尚未在平台设置 Terms & Privacy(Privacy URL)。请确保在游戏上线前补充该 URL,以保护用户权益。",iz="当前尚未在平台配置游戏名称。请在提审前完成补充,避免审核阶段被拒审。",oz="当前尚未在平台配置游戏图标。请在提审前完成补充,避免审核阶段被拒审。",sz="当前尚未在平台配置游戏描述。请确保在游戏上线前,在平台完成描述填写,以保证可以顺利发布。",az="开始连接客户端 WebSocket 服务,👉👉👉 {{wsURL}}...",lz="客户端 WebSocket 服务连接超时,检查电脑和手机是否在同一局域网下",cz="当前账号未登录,无法获取游戏详情。请先在控制台执行 `ttmg login` 命令,使用开发者平台账号登录后,再运行 `ttmg dev` 命令以开启调试模式。",uz="当前账号登录过期,请重新登录。",dz="当前游戏 ID {{clientKey}} 不存在,无法正常开启调试,请检查修改后重试。",pz="当前账号无权限查看 ID {{clientKey}} 游戏详情,请在开发者平台申请此游戏的开发权限后,再运行 `ttmg dev` 命令以开启调试模式。",fz="终端没有连到 TikTok 开发者平台,Trust Domain、Terms、Privacy 等平台配置无法拉取。请确认 VPN/代理已对终端生效,或配置 `ttmg config set proxy ...` 后重新启动调试。",hz="获取游戏详情失败,请稍后重试。",gz="用户静默登录",mz="激励视频广告",yz="添加桌面快捷方式",vz="获取桌面快捷方式奖励",bz="跳转到个人主页侧边栏",Sz="获取个人主页侧边栏奖励",wz="已集成!",Cz="未集成!",_z="必接能力检查通过",kz="必接能力检查未通过",Pz="调试环境已完成初始化,在浏览器控制台中查看日志进行游戏开发与调试...",Tz="调试环境已初始化,通过客户端 vConsole 日志面板查看日志进行游戏开发与调试...",Ez="开始向客户端发送游戏元数据,完成后客户端将开始启动游戏...",xz="向客户端发送游戏元数据成功,客户端将开始启动游戏...",Dz="1. 浏览器远程调试:先在浏览器中初始化远程调试环境,客户端连接后即可开始调试。此模式下需要将代码包上传到客户端,但调试过程基于浏览器的能力进行远程调试。",Oz="2. 客户端真机预览:将本地的游戏代码上传到客户端,在真实设备上进行预览与调试,直接验证真机表现与兼容性。",Iz="手动绑定客户端调试服务地址",Rz="无效的端口号,请输入正确的端口号",Nz="若扫码长时间无响应,手动绑定客户端调试服务",jz="确认",Lz="请输入手机端 IP 地址",Az="开始上传",Mz="去检查",$z="检查网络",Fz="1. 支持手动连接客户端调试服务,用于解决因手机与电脑处于不同网络/代理环境而导致的连接失败问题。",zz="2. 手动连接客户端调试服务仅支持 TikTok Android 42.9 及以上版本;iOS 暂不支持。",qz="返回",Bz="开始连接",Gz="确认连接",Wz="请填写客户端加载页展示的 IP、HTTP 端口和 WS 端口。确认后调试页面会立即保存并尝试连接客户端调试服务。",Uz="检测连通性",Hz="连通性检测结果",Vz="客户端 WebSocket",Kz="客户端 HTTP",Qz="可用",Yz="不可用",Xz="超时",Zz="连接失败",Jz="请先填写 IP 和端口",eq="上传之前先填写当前游戏包描述",tq="展示 vConsole",nq="展示开发信息面板",rq="关闭域名校验",iq="在客户端查看 vConsole 运行日志。",oq="在客户端查看开发信息与运行统计。",sq="‼️ 检测到 {{count}} 条问题,每条已标注为「卡点」或「建议」。",aq="卡点",lq="建议",cq="当前游戏缺少基础信息:{{fields}}。",uq="标题(Name)",dq="图标(Icon)",pq="描述(Description)",fq="、",hq="当前未登录开发者账号:上传功能不可用,且网络请求可能被拦截。若需临时联调,请在开发者选项中关闭域名校验。",gq="请在提审之前完成问题处理,避免审核阶段被拒审。",mq="查看详情",yq="收起详情",vq="需要立即处理",bq="建议处理",Sq="终端代理未生效",wq="账号缺少开发权限",Cq="开发者登录态不可用",_q="Client Key 无法识别",kq="去申请开发权限",Pq="前往开发者平台",Tq="查看其他 {{count}} 条问题",Eq="切换为深色主题",xq="切换为浅色主题",Dq="新增功能",Oq="功能优化",Iq="问题修复",Rq="了解如何使用",Nq="更新记录",jq="有更新",Lq="查看 DevTool 每个版本带来的新功能、优化与修复",Aq="新增/优化功能适用 TikTok 版本",Mq="Wasm 分包",$q="分包预处理",Fq="收集函数",zq="代码分包",qq="回滚分包",Bq="分包失败",Gq="正在写入分包产物...",Wq="重试",Uq="正在发起分包预处理...",Hq="取消分包预处理",Vq="后台运行",Kq="分包预处理中,需要一些时间...",Qq="期间请不要修改本地游戏包体,否则会造成分包预处理失败",Yq="分包预处理成功!",Xq="分包预处理失败!",Zq="请点击重试",Jq="下载预处理文件",eB="下载失败",tB="请点击重试",nB="下载成功",rB="下载预处理文件后,即可在本地进行代码分包。",iB="分包描述",oB="请输入分包描述",sB="开始预处理",aB="正在处理...",lB="获取下载 URL",cB="获取下载 URL 成功",uB="获取下载 URL 失败",dB="下载预处理文件成功",pB="下载预处理文件失败",fB="更新 Wasm 分包配置",hB="更新 Wasm 分包配置成功",gB="更新 Wasm 分包配置失败",mB="压缩预处理文件成功",yB="压缩预处理文件失败",vB="写入压缩预处理文件",bB="写入压缩预处理文件成功",SB="写入压缩预处理文件失败",wB="开始分包",CB="已收集函数数需达到总函数数的 8% 以上才能分包,请继续游玩直至覆盖首屏与核心流程",_B="当前本地项目已经支持 wasm 分包,请用 TikTok 客户端扫描二维码,开始收集函数,请支持完成加载环节、游戏教学等前期内容。",kB="设备已连接 · 正在收集函数",PB="请在已连接的设备上完成加载、游戏教学等前期流程,DevTool 会持续记录被调用的函数。覆盖首屏与核心流程后即可开始分包。",TB="开始收集函数",EB="正在开启收集会话...",xB="已恢复上次的收集进度,已收集的函数不会丢失。",DB="Wasm 文件大小",OB="总函数数量",IB="当前收集函数数量",RB="分包版本号",NB="分包处理中,可能需要一些时间,请在分包处理完成后点击下载分包。",jB="取消分包",LB="分包处理成功,开始获取下载结果...",AB="重试获取下载结果",MB="获取下载结果失败,请点击重试。",$B="分包处理成功!",FB="下载分包文件",zB="分包下载失败,请点击重试。",qB="重试下载分包文件",BB="分包下载成功!",GB="本地可使用真机扫描调试二维码,体验分包后的加载流程,确认游戏无异常后,可将当前目录下的文件上传至开发者平台,进行测试和发布",WB="正在下载安卓分包主文件...",UB="下载安卓分包主文件成功",HB="正在压缩安卓分包主文件...",VB="压缩安卓分包主文件成功",KB="正在下载安卓分包代码...",QB="下载安卓分包代码成功",YB="正在压缩安卓分包代码...",XB="压缩安卓分包代码成功",ZB="正在下载 iOS 分包主文件...",JB="下载 iOS 分包主文件成功",eG="正在压缩 iOS 分包主文件...",tG="压缩 iOS 分包主文件成功",nG="正在下载 iOS 分包代码...",rG="下载 iOS 分包代码成功",iG="正在压缩 iOS 分包代码...",oG="压缩 iOS 分包代码成功",sG="正在写入分包文件...",aG="写入分包文件成功",lG="正在更新分包配置...",cG="更新分包配置成功",uG="未发现 Wasm 代码包",dG="未在项目中发现 wasmcode/[hash].webgl.wasm.code.unityweb.wasm.br 文件,请先通过游戏引擎打包项目后再进行 Wasm 分包操作。",pG="当前项目已完成 Wasm 分包,可直接压缩当前代码包后上传至平台",fG="可基于当前结果直接压缩上传;如需放弃本次分包重新开始,点下方「放弃分包」。",hG="放弃分包",gG="当前项目未开启 Wasm 分包功能",mG="当前项目未开启 Wasm 分包功能,请先在项目配置中开启后再进行操作。",yG="深度指南",vG="能力接入",bG="收集子包",SG="语言",wG="简体中文",CG="English",_G={title:y3,scanQRcodeTitle:v3,deviceConnected:b3,serverDisconnected:S3,deviceDisconnected:w3,connectStatusNode:C3,connectStatusBrowser:_3,connectStatusDebugPage:k3,connectStatusClient:P3,connectStatusConnected:T3,connectStatusDisconnected:E3,connectStatusFailed:x3,connectStatusUnknown:D3,connectStatusLegendTitle:O3,connectStatusLegendNode:I3,connectStatusLegendBrowser:R3,connectStatusLegendClient:N3,connectStatusLegendProto:j3,netDiagNav:L3,netDiagTitle:A3,netDiagSubtitle:M3,netDiagEntryScanNoResponse:$3,netDiagEntryTitle:F3,netDiagEntryDesc:z3,netDiagEntryAction:q3,netDiagRunAll:B3,netDiagManualConnectAndCheck:G3,netDiagManualBindTitle:W3,netDiagManualBindDesc:U3,netDiagManualBindEntry:H3,netDiagManualConnectGo:V3,netDiagSummaryTitle:K3,netDiagSummaryIdleTitle:Q3,netDiagSummaryIdleDesc:Y3,netDiagSummaryIdleHint:X3,netDiagSummaryRunningTitle:Z3,netDiagSummaryRunningDesc:J3,netDiagSummaryRunningHint:e5,netDiagSummaryMissingClientTitle:t5,netDiagSummaryMissingClientDesc:n5,netDiagSummaryNodeTitle:r5,netDiagSummaryNodeDesc:i5,netDiagSummaryNodeWsDesc:o5,netDiagSummaryClientBothTitle:s5,netDiagSummaryClientBothDesc:a5,netDiagSummaryClientWsTitle:l5,netDiagSummaryClientWsDesc:c5,netDiagSummaryHealthyTitle:u5,netDiagSummaryHealthyDesc:d5,netDiagSummaryPartialTitle:p5,netDiagSummaryPartialDesc:f5,netDiagSummaryPartialHint:h5,netDiagEnvIP:g5,netDiagEnvWsPort:m5,netDiagEnvHttpPort:y5,netDiagComputerGroup:v5,netDiagClientGroup:b5,netDiagOpenTroubleshoot:S5,netDiagOpenProxy:w5,netDiagEnvTitle:C5,netDiagEnvSectionDesc:_5,netDiagChecksTitle:k5,netDiagCheckSectionDesc:P5,netDiagCheckNodeHttp:T5,netDiagCheckNodeWs:E5,netDiagCheckClientHttp:x5,netDiagCheckClientWs:D5,netDiagSuggestTitle:O5,netDiagSuggestSectionDesc:I5,netDiagActionsTitle:R5,netDiagSuccessHint:N5,netDiagManualConnectResultSuccess:j5,netDiagManualConnectResultError:L5,netDiagManualSectionDesc:A5,netDiagNextStepTitle:M5,netDiagGuideEyebrow:$5,netDiagGuideStepsTitle:F5,netDiagActionManualConnect:z5,netDiagActionManualConnectDesc:q5,netDiagActionBackToScan:B5,netDiagActionBackToScanDesc:G5,netDiagActionRerunAfterRestart:W5,netDiagActionRerunAfterRestartDesc:U5,netDiagActionRunAllDesc:H5,netDiagExpand:V5,netDiagCollapse:K5,netDiagOpenDoc:Q5,netDiagSuggestNoClientTitle:Y5,netDiagSuggestNoClientDesc:X5,netDiagSuggestLanTitle:Z5,netDiagSuggestLanDesc:J5,netDiagSuggestNodeTitle:eF,netDiagSuggestNodeDesc:tF,netDiagSuggestNodeRestart:nF,netDiagSuggestClientDebugService:rF,netDiagSuggestLanAndProxy:iF,netDiagSuggestWsBlocked:oF,netDiagSuggestOkTitle:sF,netDiagSuggestOkDesc:aF,netDiagSuggestHttpOkWsFail1:lF,netDiagSuggestHttpOkWsFail2:cF,netDiagSuggestBothFail1:uF,netDiagSuggestBothFail2:dF,netDiagSuggestPhoneProxyFallback:pF,netDiagMissingClientHttp:fF,netDiagMissingClientWs:hF,netDiagStatusIdle:gF,netDiagStatusRunning:mF,netDiagStatusWarning:yF,netDiagCheckIdleDetail:vF,netDiagCheckRunningDetail:bF,netDiagCheckReachableDetail:SF,netDiagQuickHintTitle:wF,netDiagQuickHintDesc:CF,clientDisconnected:_F,nodeDisconnected:kF,switchDevice:PF,disConnectionStatusTitle:TF,disConnectionStatusDesc:EF,scanQRCode:xF,switchScanDevice:DF,startDebug:OF,initClientEnv:IF,fetchClientDevConfig:RF,fetchClientDevConfigFailed:NF,fetchClientDevConfigSuccess:jF,initClientEnvSuccess:LF,initClientEnvFailed:AF,startInitJSDevEnv:MF,initJSDevEnvSuccess:$F,uploadBtn:FF,uploadStart:zF,uploadProcess:qF,uploadProcessDesc:BF,uploadSuccess:GF,uploadError:WF,setupDevEnv:UF,gameResourceCompiling:HF,gameResourceCompilingTitle:VF,gameResourceChange:KF,gameResourceUpdated:QF,devEnvSetupError:YF,getDevEnvStart:XF,getDevEnvSuccess:ZF,setDevEnvFailed:JF,getDevScriptsStart:e6,setDevScriptsSuccess:t6,devEnvSetupSuccess:n6,uploadGameStart:r6,uploadGameSuccess:i6,uploadGameFailed:o6,reUploadGame:s6,relaunchGame:a6,closeGame:l6,loading:c6,nodeServerConnectedFailed:u6,nodeServerStartConnect:d6,nodeServerConnectedSuccess:p6,nodeServerStartError:f6,nodeServerDisconnect:h6,clientConnectedSuccess:g6,clientServerStartError:m6,clientServerDisconnected:y6,networkNoLanIPTitle:v6,networkNoLanIPDesc:b6,networkNoLanIPAction:S6,startDebugFailed:w6,getDevScriptsFailed:C6,uploadToClient:_6,notUpload:k6,uploadToPlatform:P6,"uploadGame.pageTitle":"上传游戏","uploadGame.pageDesc":"上传是主流程,预检作为提交前的风险兜底。只有存在问题时才重点提示,避免首屏被检查结果打断。","uploadGame.guide.title":"上传发布","uploadGame.guide.desc":"确认预检风险,补充版本说明后上传至平台。平台生成预览版本后,可继续扫码验证构建结果。","uploadGame.guide.precheck.title":"代码预检","uploadGame.guide.precheck.desc":"提前发现包体、API、配置和性能风险","uploadGame.guide.version.title":"版本说明","uploadGame.guide.version.desc":"补充本次变更,方便区分上传记录","uploadGame.guide.preview.title":"平台预览","uploadGame.guide.preview.desc":"上传后扫码验证平台侧生成结果","uploadGame.packageSizeDoc":"查看包体限制说明","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":"代码包已上传成功,平台正在处理中,请稍候…","uploadGame.progress.previewTitle":"正在获取平台预览二维码","uploadGame.progress.previewDesc":"上传已成功,正在轮询平台预览二维码,请稍候。","uploadGame.progress.statusPending":"处理中","uploadGame.progress.badgeUploading":"上传中","uploadGame.progress.badgeChecking":"校验中","uploadGame.progress.badgePreview":"生成预览码","uploadGame.progress.step1":"打包并上传代码包","uploadGame.progress.step2":"等待平台处理完成","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":"上传未返回有效的版本标识,无法继续校验平台处理结果,请重新上传。","uploadGame.failure.assetTimeout":"平台处理代码包超时,请稍后在平台查看处理结果。","uploadGame.failure.assetStatus":"平台尚未完成代码包处理,暂时无法生成预览二维码,请稍后重试。","uploadGame.failure.previewTimeout":"平台已处理完成,但暂未拿到预览二维码,请稍后重试。","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:T6,scanQRCodeChange:E6,scanQRCodeDesc:x6,"homeSession.title":"当前调试会话","homeSession.modeLabel":"调试模式","homeSession.entryLabel":"启动入口","homeSession.domainLabel":"域名策略","homeSession.mode.clientPreviewDesc":"真机运行时,重点看 vConsole、端侧能力和真机网络。","homeSession.mode.remoteDebugDesc":"浏览器运行时,适合看 JS 逻辑和控制台,不覆盖全部端侧能力。","homeSession.domainCheck.disabled":"域名校验已关闭","homeSession.domainCheck.disabledDesc":"临时联调更宽松,上线前仍需补齐平台配置。","homeSession.domainCheck.enabledWithDomains":"{{count}} 个 Trust Domain","homeSession.domainCheck.enabledWithDomainsDesc":"网络请求会按平台配置校验。","homeSession.domainCheck.enabledNoDomains":"未配置 Trust Domain","homeSession.domainCheck.enabledNoDomainsDesc":"若游戏请求外部域名,运行时可能被拦截。","homeSession.chip.domainCheckOn":"域名校验开启","homeSession.chip.domainCheckOff":"域名校验关闭","homeSession.chip.vConsoleOn":"vConsole 开启","homeSession.chip.vConsoleOff":"vConsole 关闭","homeSession.chip.devPanelOn":"开发信息面板开启","homeSession.chip.devPanelOff":"开发信息面板关闭","homeSession.diff.clientPreviewTitle":"真机预览","homeSession.diff.clientPreviewDesc":"更接近客户端运行时;接口、支付、广告或域名异常时,优先看手机 vConsole 和开发信息面板。","homeSession.diff.remoteDebugTitle":"远程调试","homeSession.diff.remoteDebugDesc":"更适合快速看 JS 逻辑;真机能力、网络策略和端侧面板仍需切到真机预览验证。","homeSession.risk.domainTitle":"域名风险","homeSession.risk.domainDesc":"当前开启域名校验但没有 Trust Domain;如果游戏请求外部域名,可能出现网络请求失败。",notLogin:D6,launchModeName:O6,selectLaunchPkg:I6,selectIndependentPkg:R6,selectScene:N6,launchQueries:j6,launchQueriesDesc:L6,scene_scan_qrcode:A6,queriesStringMustBeString:M6,scene_search:$6,scene_fyf_promotion_direct_feed_play:F6,scene_fyf_card:z6,scene_anchor:q6,scene_center:B6,scene_ad:G6,scene_shortcut:W6,scene_sharing:U6,scene_link:H6,scene_inbox:V6,mainPackage:K6,queriesStringNoQuestionMark:Q6,queriesStringEmptyPair:Y6,independentPackage:X6,customizeLaunchMode:Z6,notEmpty:J6,save:e8,delete:"删除",selectLaunchMode:t8,createNewMode:n8,saveAndUse:r8,selectDebugMode:i8,browserDebugMode:o8,clientPreviewMode:s8,clientDebugMode:a8,use:l8,getDevGameConfigSuccess:c8,getDevGameConfigFailed:u8,startLoadDevScripts:d8,loadDevScriptsSuccess:p8,loadDevScriptsFailed:f8,loadDevScriptsEmpty:h8,loadDevScriptsInitSuccess:g8,gameResourceCompileSuccess:m8,gameResourceCompileSuccessTitle:y8,scanQRCode2Debug:v8,homeHeroEyebrow:b8,homeHeroTitle:S8,homeHeroSubtitle:w8,homeHeroTitleConnected:C8,homeHeroSubtitleConnected:_8,projectInfo:k8,projectInfoDesc:P8,"projectInfo.summary":"查看当前小游戏的基础信息、包体状态和平台配置。",projectInfoDescTip:T8,"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.network.title":"终端代理未生效,平台接口请求失败","projectInfo.error.network.desc":"本地调试服务已启动,但 CLI 没有连到 TikTok 开发者平台。此时 Trust Domain、Terms、Privacy 等平台配置都可能拉不到;常见原因是 VPN/代理只对浏览器生效,终端请求没有走代理。","projectInfo.error.network.stepCheck":"如果浏览器能打开开发者平台,但 `ttmg dev` 无法拉取项目概览、信任域名或 Terms & Privacy,优先按终端代理处理。","projectInfo.error.network.stepProxy":"执行 `ttmg config set proxy http://127.0.0.1:7890`,把端口替换为本机代理工具提供的 HTTP 端口。","projectInfo.error.network.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":"这通常不是本地工程问题。请先确认 `ttmg login` 使用的账号是否属于目标游戏,并在开发者平台补齐该游戏的开发权限。","projectInfo.error.helpNetworkDesc":"这类问题不是 Trust Domain 真的没配,也不一定是开发权限问题,而是 CLI 进程出网没有走代理。只打开 VPN 客户端通常不够,需要把代理地址写进 ttmg 配置。","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:E8,codePreCheck:x8,normalLaunchMode:D8,createdLaunchMode:O8,notExceedSizeLimit:I8,notExceedMainPkgSizeLimit:R8,notExceedIndependentPkgSizeLimit:N8,exceedSizeLimit:j8,exceedMainPkgSizeLimit:L8,exceedIndependentPkgSizeLimit:A8,launchModeDesc:M8,"launchMode.currentDesc":"选择已有配置,或切换到新建模式后重新配置。","launchMode.configDesc":"设置启动包、入口场景和启动参数,保存后回到首页扫码使用。",configFileCheck:$8,gameJsonCheckDesc:F8,pkgSizeCheckDesc:z8,commonPkgSizeCheckDescTip:q8,unityPkgSizeCheckDescTip:B8,mandatoryApiCheck:G8,mandatoryApiCheckDesc:W8,checkConfigPassed:U8,checkPkgSizePassed:H8,checkPkgSizeFailed:V8,checkConfigFailed:K8,performanceCheck:Q8,checkPerformancePassed:Y8,checkPerformanceFailed:X8,viewDoc:Z8,expandCheckDetail:J8,closeCheckDetail:e7,gameProject:t7,gameMainPackage:n7,devOptions:r7,devOptionsDomainCheckDesc:i7,debugSettingAdMockDesc:o7,debugSettingIAPMockDesc:s7,debugSettingAdMock:a7,debugSettingIAPMock:l7,sendLocalDebugSetting:c7,deleteLaunchModeConfirm:u7,gameName:d7,gameIcon:p7,gameID:f7,gameDesc:h7,gameSize:g7,gameMainPackageSize:m7,gameIndependentPackageSize:y7,gameTrustDomains:v7,gameTermsAndPrivacy:b7,gameServiceAgreement:S7,gamePrivacyPolicy:w7,termsLabel:C7,privacyLabel:_7,gameTrustDomainsDesc:k7,gameServiceAgreementDesc:P7,gamePrivacyPolicyDesc:T7,"projectInfo.configSummary.title":"平台配置待补齐","projectInfo.configSummary.desc":"以下配置来自开发者平台。调试阶段可以继续查看,提审或验证平台能力前请先补齐。","projectInfo.configSummary.count":"{{count}} 项待补","projectInfo.configSummary.reviewGroup":"提审基础信息","projectInfo.configSummary.runtimeGroup":"运行配置","projectInfo.configSummary.item.icon":"游戏图标","projectInfo.configSummary.item.name":"游戏名称","projectInfo.configSummary.item.description":"游戏描述","projectInfo.configSummary.item.domain":"信任域名","projectInfo.configSummary.item.terms":"Terms URL","projectInfo.configSummary.item.privacy":"Privacy URL","projectInfo.configSummary.reviewHint":"提审前补齐","projectInfo.configSummary.domainHint":"请求外部域名前补齐","projectInfo.configSummary.termsHint":"登录/授权前补齐","projectInfo.configSummary.privacyHint":"授权和合规流程依赖","projectInfo.status.missing":"未配置","projectInfo.status.reviewBeforeSubmit":"提审前补齐","projectInfo.status.beforeRelease":"上线前补齐","projectInfo.status.domainRequired":"外部请求前补齐","projectInfo.status.authRequired":"登录/授权前补齐","projectInfo.logoMissingShort":"图标未配置",queriesStringMissingEqual:E7,queriesStringEmptyKey:x7,queriesStringDuplicateKey:D7,queriesStringInvalidKeyChars:O7,queriesStringInvalidValueChars:I7,queriesStringInvalidEncoding:R7,getDevGameDetailFailed:N7,getDevGameDetailNotLogin:j7,notLoginTip:L7,docs:A7,quickStart:M7,jsApiList:$7,errorReference:F7,faq:z7,upload:q7,cancel:B7,gameAssetDescription:G7,uploadPlatformSuccess:W7,uploadPlatformFailed:U7,uploadPlatformDesc:H7,viewOnPlatform:V7,loginToUpload:K7,uploadGamePackageTip:Q7,trustDomainEmptyTip:Y7,scriptsSetupFailed:X7,resourcesSetupFailed:Z7,policyDependencyTermsRequired:J7,policyDependencyPrivacyRequired:ez,policyDependencyTermsPrivacyRequired:tz,termsOfServiceEmptyTip:nz,privacyPolicyEmptyTip:rz,gameNameEmptyTip:iz,gameIconEmptyTip:oz,gameDescEmptyTip:sz,startConnectClientWS:az,clientConnectTimeout:lz,gameDetailNotLogin:cz,gameLoginExpired:uz,getDevGameDetailNotFound:dz,gameDetailNoPermission:pz,gameDetailNetworkProxyBlocked:fz,gameDetailServerError:hz,login:gz,createRewardedVideoAd:mz,addShortcut:yz,getShortcutMissionReward:vz,startEntranceMission:bz,getEntranceMissionReward:Sz,integrated:wz,notIntegrated:Cz,checkApiSuccess:_z,checkApiFailed:kz,debugEnvSetupSuccess:Pz,clientPreviewEnvSetupSuccess:Tz,startToSendMetaToClient:Ez,sendMetaToClientSuccess:xz,browserRemoteDebugDesc:Dz,clientRealPreviewDesc:Oz,"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:Iz,"debug.guide.manualBindIPInvalid":"无效的 IP 地址,请输入正确的 IP 地址",invalidPort:Rz,scanQrcodeNoResponse:Nz,confirm:jz,manualBindIPPlaceholder:Lz,"debug.guide.manualBindIPDesc1":"1. 请确认手机与电脑在同一局域网下,若不在同一局域网下,请先连接至同一局域网;","debug.guide.manualBindIPDesc2":"2. 手动输入客户端加载页提供的调试服务地址和端口进行连接","debug.guide.manualBindIPDesc3":"3. 只支持 Android 42.9 及以上版本,iOS 暂不支持",startUpload:Az,gotoCheck:Mz,checkNetworkTitle:$z,manualBindIPInfo1:Fz,manualBindIPInfo2:zz,back:qz,manualConnectStart:Bz,manualConnectConfirm:Gz,manualConnectDialogDesc:Wz,connectivityCheck:Uz,connectivityCheckTitle:Hz,connectivityCheckWS:Vz,connectivityCheckHTTP:Kz,connectivityOK:Qz,connectivityNotOK:Yz,connectivityTimeout:Xz,connectivityFailed:Zz,connectivityMissingParams:Jz,needDesc:eq,debugSettingVConsole:tq,debugSettingDevInfoPanel:nq,debugSettingDomainCheck:rq,debugSettingEnableVconsoleDesc:iq,debugSettingEnableDevInfoPanelDesc:oq,topErrorSummary:sq,topErrorTagRequired:aq,topErrorTagSuggested:lq,topBasicInfoMissing:cq,topBasicInfoNameField:uq,topBasicInfoIconField:dq,topBasicInfoDescriptionField:pq,topBasicInfoFieldJoiner:fq,topLoginStatusWarning:hq,topErrorSuggestedActionTip:gq,topErrorViewDetails:mq,topErrorHideDetails:yq,topErrorTitleRequired:vq,topErrorTitleSuggested:bq,topErrorTitleNetworkProxy:Sq,topErrorTitlePermission:wq,topErrorTitleLogin:Cq,topErrorTitleProjectNotFound:_q,topErrorCtaApplyPermission:kq,topErrorCtaOpenPortal:Pq,topErrorMoreItems:Tq,themeToggleToDark:Eq,themeToggleToLight:xq,changelogFeature:Dq,changelogOptimize:Oq,changelogBugfix:Iq,changelogLink:Rq,changelog:Nq,changelogNewTag:jq,changelogTip:Lq,changelogTarget:Aq,wasmSplit:Mq,"wasmSplit.disabled.notLoggedIn":"请先在终端执行 `ttmg login` 完成开发者账号登录,再使用 Wasm 分包功能。","wasmSplit.disabled.networkProxy":"当前终端无法连到 TikTok 开发者平台。请先配置终端代理并重新执行 `ttmg dev`,再使用 Wasm 分包功能。","wasmSplit.disabled.noPermission":"当前账号没有该游戏的开发权限,请到开发者平台申请此游戏的开发权限后,再使用 Wasm 分包功能。",splitPrepare:$q,splitCollect:Fq,splitCode:zq,"splitPrepare.desc":"提交分包描述,启动构建任务","splitCollect.desc":"扫码进入游戏,录制函数调用","splitCode.desc":"服务端生成主包与子包产物",rollback:qq,"wasmSplit.subtitle":"将 Unity Wasm 代码拆分为按需加载的子包,缩小首屏体积,提升冷启表现。","wasmSplit.recommended":"推荐","wasmSplit.strategy.title":"选择分包策略","wasmSplit.strategy.subtitle":"决定接下来在哪里执行 Wasm 拆分;可在每次预处理前重新选择。","wasmSplit.mode.local.title":"本地分包","wasmSplit.mode.local.desc":"在本机工程里完成拆分,不依赖远端服务,适合内网开发。","wasmSplit.mode.remote.title":"远程分包","wasmSplit.mode.remote.desc":"使用 Portal 远端拆分服务,本机更轻、产物更稳,推荐线上版本使用。","wasmSplit.stage.loading":"初始化","wasmSplit.stage.prepare":"准备中","wasmSplit.stage.collect":"收集中","wasmSplit.stage.split":"分包中","wasmSplit.stage.splitted":"已分包","wasmSplit.stage.rollback":"回滚","wasmSplit.stage.error":"异常","wasmSplit.requirements.title":"分包要求","wasmSplit.requirements.account":"手机 TikTok 当前需登录非 US 地区用户账号;US 账号无法收集函数。","wasmSplit.requirements.unityPlugin":"开始分包前,请更新 Unity 最新插件。","wasmSplit.requirements.unityPluginLink":"查看文档","wasmSplit.help.loading.title":"正在初始化","wasmSplit.help.loading.line1":"读取当前游戏的分包配置,请稍候。","wasmSplit.help.prepare.title":"预处理 · 接下来会发生什么","wasmSplit.help.prepare.line1":"提交后将启动一次构建任务,把 Unity Wasm 拆分准备好。","wasmSplit.help.prepare.line2":"通常耗时 3 - 5 分钟,可在阶段中切换到其他页面,任务会在后台继续。","wasmSplit.help.collect.title":"收集函数 · 用真机录制","wasmSplit.help.collect.line1":"用手机扫码进入游戏,玩一遍主流程,调试页面会自动记录被调用的函数。","wasmSplit.help.collect.line2":"收集越完整,最终分包的精度越高。","wasmSplit.help.collect.line3":"扫码前请确认手机 TikTok 使用非 US 地区用户账号,并已更新 Unity 最新插件;US 账号无法收集函数。","wasmSplit.help.split.title":"代码分包 · 正在生成","wasmSplit.help.split.line1":"后端根据收集到的函数集合生成主包与子包。","wasmSplit.help.split.line2":"完成后可在「开始调试」中直接试跑分包后的版本。","wasmSplit.help.rollback.title":"回滚到上一个版本","wasmSplit.help.rollback.line1":"本次分包将被撤销,工程恢复为未拆分的状态。","wasmSplit.help.splitted.title":"已完成分包","wasmSplit.help.splitted.line1":"当前工程已经做过一次 Wasm 分包,可直接压缩上传;如需重做,点「放弃分包」后重新开始。","wasmSplit.help.error.title":"出现异常","wasmSplit.help.error.line1":"请按提示重试,或返回首页确认当前游戏的状态。","wasmSplit.meta.stage":"当前阶段","wasmSplit.meta.mode":"分包模式","wasmSplit.meta.engine":"引擎","wasmSplit.meta.game":"游戏","wasmSplit.meta.wasmSize":"WASM 大小","wasmSplit.meta.wasmMd5":"WASM MD5","wasmSplit.currentMode":"当前分包模式","wasmSplit.initializingEnv":"正在初始化分包环境","wasmSplit.empty.unityOnly.title":"仅对 Unity 引擎可用","wasmSplit.empty.unityOnly.desc":"当前项目不是 Unity 引擎,Wasm 分包仅对 Unity 游戏开放。请切换到 Unity 项目后再访问本页面。","wasmSplit.empty.backHome":"回到首页","wasmSplit.empty.needDevice.title":"需要先连接设备并选择游戏","wasmSplit.empty.needDevice.desc":"Wasm 分包依赖当前小游戏的 Wasm 包体与登录态。先在「开始调试」扫码连接客户端、选定游戏后,再回到这里开始分包流程。","wasmSplit.empty.connectDevice":"去连接设备","wasmSplit.splitDoneToast":"分包完成,本次共收集 {{count}} 个函数","rollback.rollbacking":"回滚中...","rollback.backgroundRun":"后台进行","rollback.success":"回滚成功","rollback.close":"关闭","rollback.failed":"回滚失败","rollback.retry":"重试","collect.sessionClosed":"收集会话已关闭(可能是超时或被其他端占用)。请重新点击「开始分包」以恢复收集。","collect.startFailed":"开始收集失败,请重试","collect.requirements.title":"扫码前确认","collect.requirements.desc":"手机 TikTok 需登录非 US 地区用户账号,并已更新 Unity 最新插件;US 账号无法收集函数。","collect.requirements.link":"查看文档",splitFailed:Bq,writingSplitResult:Gq,retry:Wq,startingPrepare:Uq,cancelPrepare:Hq,backgroundRun:Vq,preparingSplit:Kq,warningDuringPreparing:Qq,"remotePreparing.title":"远程构建任务进行中,需要一些时间...","remotePreparing.eta":"已提交 Portal 云端构建,通常耗时 3 - 5 分钟,可后台运行;期间请勿修改本地游戏包体。",preparingSplitSuccess:Yq,preparingSplitFailed:Xq,retryPrepare:Zq,downloadPreparedWasmCode:Jq,downloadFailed:eB,retryDownload:tB,downloadSuccess:nB,downloadPreparedWasmCodeDesc:rB,splitDesc:iB,inputSplitDesc:oB,startPrepare:sB,processing:aB,fetchDownloadUrl:lB,fetchDownloadUrlSuccess:cB,fetchDownloadUrlFailed:uB,downloadPreparedWasmCodeSuccess:dB,downloadPreparedWasmCodeFailed:pB,updateWasmSplitConfig:fB,updateWasmSplitConfigSuccess:hB,updateWasmSplitConfigFailed:gB,compressPreparedWasmCodeSuccess:mB,compressPreparedWasmCodeFailed:yB,writeCompressPreparedWasmCode:vB,writeCompressPreparedWasmCodeSuccess:bB,writeCompressPreparedWasmCodeFailed:SB,startSplit:wB,cannotSplitTip:CB,collectDesc:_B,collectConnectedTitle:kB,collectConnectedDesc:PB,startCollect:TB,startingCollect:EB,resumedCollectSession:xB,wasmSize:DB,totalFuncCount:OB,collectedFuncCount:IB,splitVersion:RB,splittingDesc:NB,cancelSplit:jB,getSplitResult:LB,retryGetSplitResult:AB,getSplitResultFailed:MB,splitSuccess:$B,downloadSplitResult:FB,downloadSplitResultFailed:zB,retryDownloadSplitResult:qB,downloadSplitResultSuccess:BB,downloadSplitResultTip:GB,start_download_android_main_wasm:WB,download_android_main_wasm_done:UB,start_compress_android_main_wasm:HB,compress_android_main_wasm_done:VB,start_download_android_sub_wasm_code:KB,download_android_sub_wasm_code_done:QB,start_compress_android_sub_wasm_code:YB,compress_android_sub_wasm_code_done:XB,start_download_ios_main_wasm:ZB,download_ios_main_wasm_done:JB,start_compress_ios_main_wasm:eG,compress_ios_main_wasm_done:tG,start_download_ios_sub_wasm_code:nG,download_ios_sub_wasm_code_done:rG,start_compress_ios_sub_wasm_code:iG,compress_ios_sub_wasm_code_done:oG,start_write_splited_wasm_br:sG,write_splited_wasm_done:aG,start_update_wasm_split_config:lG,update_wasm_split_config_done:cG,noWasmCode:uG,noWasmCodeDesc:dG,hasSplitedTitle:pG,hasSplitedDesc:fG,hasSplitedDiscard:hG,noSplitConfigTitle:gG,noSplitConfigDesc:mG,advancedGuide:yG,integrationAssistant:vG,"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.menu.wasmSplit":"Wasm 分包","ia.wasmSplit.summary":"把 Unity Wasm 拆分为按需加载的子包,缩小首包体积、提升冷启表现;仅对 Unity 引擎可用。","performance.menu.title":"性能优化","performance.overview.title":"性能优化","performance.overview.desc":"按项目类型选择对应工具:Unity 项目使用 Wasm 分包;非 Unity 项目可预览子包收集能力。","performance.section.title":"优化工具","performance.section.desc":"每个工具对应一条独立能力,点开卡片进入接入流程。","performance.card.wasmSplit.title":"Wasm 分包","performance.card.wasmSplit.desc":"把 Unity Wasm 拆分为按需加载的子包,缩小首包体积、提升冷启表现;仅对 Unity 引擎可用。","performance.card.subpackageCollect.title":"收集子包","performance.card.subpackageCollect.desc":"在真机启动链路中记录被预下载的子包,按 FP / TTI 两段区分,并写入 game.json 供预加载策略消费。","performance.card.subpackageCollect.status":"新增","performance.empty.comingSoon":"更多性能优化能力陆续接入中。",subpackageCollect:bG,"subpackageCollect.subtitle":"真机预览启动链路,采集启动阶段被预下载的子包,并转成预加载配置。","subpackageCollect.phase.fp":"FP","subpackageCollect.phase.tti":"TTI","subpackageCollect.stage.entry":"选择入口","subpackageCollect.stage.empty":"无子包","subpackageCollect.stage.notStarted":"未开始","subpackageCollect.stage.collecting":"收集中","subpackageCollect.stage.processing":"处理中","subpackageCollect.stage.success":"已完成","subpackageCollect.stage.failed":"失败","subpackageCollect.stage.unsupported":"不支持","subpackageCollect.entry.title":"选择启动入口","subpackageCollect.entry.subtitle":"按启动 root 分桶采集。主包为默认入口;存在独立分包时一并列出。","subpackageCollect.entry.game":"主包","subpackageCollect.entry.gameTag":"默认","subpackageCollect.entry.independentTag":"独立分包","subpackageCollect.empty.title":"当前游戏未配置子包","subpackageCollect.empty.desc":"game.json 中没有任何 subpackages,启动预加载收集仅对含子包的游戏有意义,无需在此操作。","subpackageCollect.empty.back":"返回性能优化","subpackageCollect.unsupported.unity.title":"Unity 小游戏不支持子包收集","subpackageCollect.unsupported.unity.desc":"子包收集仅支持非 Unity 小游戏。当前项目是 Unity 小游戏,因此不会展示入口选择、扫码和收集操作区。","subpackageCollect.unsupported.unity.action":"前往 Wasm 分包","subpackageCollect.devGuide.link":"子包收集使用指南","subpackageCollect.devGuide.clientVersion":"客户端支持版本","subpackageCollect.devGuide.android":"Android 45.9+","subpackageCollect.devGuide.ios":"iOS 46.0+","subpackageCollect.devGuide.stepsTitle":"收集主要步骤","subpackageCollect.devGuide.required.badge":"代码必接","subpackageCollect.devGuide.required.title":"开始收集前,请先在游戏代码中接入","subpackageCollect.devGuide.required.code":"reportScene({ sceneId: 9999 })","subpackageCollect.devGuide.required.desc":"游戏进入可交互状态时必须调用。调试页面收到该上报后,才会结束本轮收集并显示「完成收集」。","subpackageCollect.devGuide.step1.title":"确认账号地区","subpackageCollect.devGuide.step1.desc":"US 地区账号无法完成函数收集。请切换为非 US 地区账号后重新扫码。","subpackageCollect.devGuide.step2.title":"确认子包配置","subpackageCollect.devGuide.step2.desc":"game.json 需配置 subpackages,并确认本次采集的是主包入口还是独立分包入口。","subpackageCollect.devGuide.step3.title":"按真实启动路径操作","subpackageCollect.devGuide.step3.desc":"扫码后不要只停在首屏,按真实路径操作到游戏可交互,客户端会记录实际预下载的子包。","subpackageCollect.scan.title":"扫码操作","subpackageCollect.scan.subtitle":"保持 DevTool 打开,按真实启动路径完成一次预览。","subpackageCollect.guide.step2":"扫码后按真实启动路径操作游戏,跑通原本的启动逻辑;过程中客户端会把实际加载到的子包信息上报、被采集下来。","subpackageCollect.guide.step3":"游戏到达可交互状态后,必须执行 reportScene({sceneId:9999})。调试页面收到上报后才会结束本轮收集并显示「完成收集」。","subpackageCollect.preview.noSchema":"暂无预览 schema。请先在「开始调试」连接设备后再回到此页。","subpackageCollect.preview.currentEntry":"当前入口","subpackageCollect.preview.collectedTitle":"已采集子包","subpackageCollect.preview.collectedDesc":"本轮实时采集,按子包名去重(保留第一次上报),分 FP / TTI 两段。","subpackageCollect.preview.existingDesc":"该入口已有配置,仅作参考展示,不会并入本轮写入。","subpackageCollect.preview.empty":"尚未采集到子包。","subpackageCollect.reportScene.toastTitle":"已收到 reportScene({sceneId:9999})","subpackageCollect.reportScene.toastDesc":"已确认游戏进入可交互状态,完成收集已解锁。","subpackageCollect.reportScene.readyTitle":"已收到 reportScene,可完成收集","subpackageCollect.reportScene.readyDesc":"当前列表将作为本轮收集结果。请确认子包记录无误,再点击「完成收集」写入配置。","subpackageCollect.wait.runningTitle":"等待 reportScene 上报","subpackageCollect.wait.running":"设备已连接并开始记录子包。请按真实启动路径操作;游戏进入可交互状态时必须执行 reportScene({sceneId:9999}),调试页面收到后才会显示「完成收集」。","subpackageCollect.wait.timeoutTitle":"未收到 reportScene,无法完成收集","subpackageCollect.wait.timeout":"请先确认游戏代码已接入 reportScene({sceneId:9999}),再按真实启动路径操作到可交互状态。","subpackageCollect.wait.docLink":"查看接入说明","subpackageCollect.manualConnect.title":"扫码后未自动连接?","subpackageCollect.manualConnect.desc":"常见于 VPN / 代理 / 多网卡环境,可重试上次记录或填写客户端 IP 与端口手动连接。","subpackageCollect.manualConnect.action":"手动连接","subpackageCollect.manualConnect.retry":"重试上次连接","subpackageCollect.manualConnect.noRecordTitle":"暂无手动连接记录","subpackageCollect.manualConnect.noRecordDesc":"请先填写客户端 IP、HTTP 端口和 WS 端口,保存后即可在此页一键重试。","subpackageCollect.manualConnect.retryTitle":"正在重试上次连接","subpackageCollect.manualConnect.retryDesc":"已使用 {{ip}}:{{port}} 重新连接客户端调试服务。","subpackageCollect.mock.title":"模拟上报(仅联调)","subpackageCollect.mock.subtitle":"客户端真机上报待联调,先在此模拟 predownload / reportScene,验证 UI 收集与 CLI 写入链路。","subpackageCollect.mock.placeholder":"选择可用子包","subpackageCollect.mock.noCandidates":"当前入口下没有可预下载的子包(需 game.json 配置 subpackages 且 root 目录真实存在),可直接触发 reportScene 完成采集。","subpackageCollect.mock.reportFp":"上报 FP","subpackageCollect.mock.reportTti":"上报 TTI","subpackageCollect.mock.reportScene":"reportScene(9999)","subpackageCollect.finish.overwriteNote":"完成后将用本轮采集的 {{current}} 条覆盖该入口原有 {{existing}} 条配置(按入口整体覆盖,非增量合并)。","subpackageCollect.finish.clearNote":"本轮未采集到子包,完成将清空该入口原有 {{existing}} 条配置。","subpackageCollect.finish.clearTitle":"确认清空原有配置?","subpackageCollect.finish.clearConfirm":"本轮未采集到任何子包,完成收集会清空该入口原有 {{existing}} 条配置且不可恢复。如需保留原配置,请改为「退出收集」或重新跑一轮采集。","subpackageCollect.finish.okClear":"清空并完成","subpackageCollect.finish.cancel":"取消","subpackageCollect.action.finish":"完成收集","subpackageCollect.action.cancel":"取消收集","subpackageCollect.action.exit":"退出收集","subpackageCollect.action.exitRun":"退出收集","subpackageCollect.action.recollect":"重新收集","subpackageCollect.action.switch":"切换入口","subpackageCollect.loading":"正在读取项目配置…","subpackageCollect.processing":"正在处理…","subpackageCollect.processing.write":"正在写入 game.json 配置…","subpackageCollect.processing.clear":"正在清理旧配置,准备重新收集…","subpackageCollect.processing.cancel":"正在取消收集并清空配置…","subpackageCollect.success.title":"配置已写入","subpackageCollect.success.empty":"本入口未写入任何子包。","subpackageCollect.failed.title":"收集失败","subpackageCollect.error.generic":"写入配置失败,请重试。","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":"直玩卡联调建议拆成三个阶段:先调试小游戏包本身,再用预览二维码验证卡面和承接路径,最后管理已验证直玩卡的上线状态。","ia.directPlay.versionNotice":"直玩阶段二调试能力依赖客户端 45.4.0 及以上版本,请先确认客户端版本满足要求后再使用预览二维码相关能力。","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.cardContentId":"Content ID:","ia.directPlay.stage2.cardDesc":"卡片描述:","ia.directPlay.stage2.cardScenario":"场景:","ia.directPlay.stage2.cardStatus":"审核状态:","ia.directPlay.stage2.cardStatus.approved":"已过审","ia.directPlay.stage2.cardStatus.pending":"待后台审核后可用","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.directPlay.stage2.modeSelect":"选择已有卡片","ia.directPlay.stage2.modeCreate":"新建直玩卡","ia.directPlay.stage2.create.title":"新建直玩卡","ia.directPlay.stage2.create.desc":"直接在调试工具里创建一张新的直玩卡,创建成功后会自动刷新列表并选中这张卡。","ia.directPlay.stage2.create.option":"+ 新建直玩卡","ia.directPlay.stage2.create.cardName":"卡片名称","ia.directPlay.stage2.create.cardNamePlaceholder":"例如:xx游戏发送福利卡片","ia.directPlay.stage2.create.cardDesc":"卡片描述","ia.directPlay.stage2.create.cardDescPlaceholder":"例如:向玩家发送 1000 金币作为召回手段","ia.directPlay.stage2.create.cardType":"卡片类型","ia.directPlay.stage2.create.cardType.fixed":"固定卡","ia.directPlay.stage2.create.cardType.dynamic":"动态卡","ia.directPlay.stage2.create.cardType.dynamicDesc":"动态卡:平台提供 server 接口,支持开发者动态推送游戏内事件、活动提醒,平台收到后将向用户推送,如体力恢复、活动开始提醒。","ia.directPlay.stage2.create.cardType.fixedDesc":"固定卡:以客户端固定逻辑接入,如每次以固定规则的礼包召回用户。","ia.directPlay.stage2.create.scenario":"场景","ia.directPlay.stage2.create.scenarioPlaceholder":"例如:recover_stamina","ia.directPlay.stage2.create.scenario.rewardIssue":"发放福利 reward_issue","ia.directPlay.stage2.create.scenario.recoverStamina":"体力恢复 recover_stamina","ia.directPlay.stage2.create.scenario.unlockLevel":"解锁关卡 unlock_level","ia.directPlay.stage2.create.subPkg":"启动包","ia.directPlay.stage2.create.params":"Queries","ia.directPlay.stage2.create.paramsPlaceholder":"例如:a=1&b=constant","ia.directPlay.stage2.create.submit":"创建并选中卡片","ia.directPlay.stage2.create.success":"直玩卡已创建,并已自动选中。","ia.directPlay.stage2.create.failed":"创建直玩卡失败。","ia.directPlay.stage3.title":"阶段三:管理直玩卡上线状态","ia.directPlay.stage3.desc":"阶段二预览验证通过后,可将当前选中的直玩卡上线或下线,控制线上推荐流直玩链路是否使用。","ia.directPlay.stage3.banner":"上线或下线会修改当前选中直玩卡的线上状态。上线前请先确认阶段二预览二维码已经验证通过。","ia.directPlay.stage3.selectedCard":"当前卡片上线状态","ia.directPlay.stage3.emptyCard":"请先在阶段二选择一张直玩卡内容。","ia.directPlay.stage3.publishStatus":"上线状态:","ia.directPlay.stage3.cardStatus.online":"已上线","ia.directPlay.stage3.cardStatus.notOnline":"未上线","ia.directPlay.stage3.publish":"上线直玩卡","ia.directPlay.stage3.published":"已上线","ia.directPlay.stage3.offline":"下线直玩卡","ia.directPlay.stage3.confirmTitle":"确认上线直玩卡 {{name}}({{contentId}})?","ia.directPlay.stage3.offlineConfirmTitle":"确认下线直玩卡 {{name}}({{contentId}})?","ia.directPlay.stage3.selectRequired":"请先在阶段二选择一张直玩卡内容。","ia.directPlay.stage3.publishSuccess":"直玩卡已上线,已刷新最新状态。","ia.directPlay.stage3.publishFailed":"上线直玩卡失败。","ia.directPlay.stage3.offlineSuccess":"直玩卡已下线,已刷新最新状态。","ia.directPlay.stage3.offlineFailed":"下线直玩卡失败。","ia.overview.eyebrow":"Capability Map","ia.overview.title":"能力接入","ia.overview.desc":"先确认当前小游戏的变现模式,再查看对应的推荐能力组合;复访、裂变与基础能力可在下方继续补齐。","ia.overview.groups.title":"能力接入概览","ia.overview.groups.desc":"下方按业务目标划分为增长与复访、分享与裂变、基础能力三组,便于按专题继续补齐。","ia.overview.keyCapabilities.title":"关键能力","ia.overview.keyCapabilities.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.monetization.title":"选择变现模式","ia.monetization.desc":"按小游戏当前的商业化模式查看对应能力组合与联调重点。","ia.monetization.meta.required":"必接能力","ia.monetization.meta.optional":"可选能力","ia.monetization.meta.support":"配套能力","ia.monetization.meta.experimental":"实验能力","ia.monetization.core.title":"核心能力","ia.monetization.mode.iaa.title":"IAA","ia.monetization.mode.iaa.summary":"广告变现主链路优先,先确保用户身份、广告请求与回调链路稳定。","ia.monetization.mode.iaa.desc":"以广告变现为主,建议先打通 `login` 建立用户身份,再验证广告位配置、广告请求与回调链路;`authorize` 仅在需要昵称、头像等额外用户信息时再接入,同时建议尽早补齐网络稳定性能力,并结合复访能力验证广告用户的留存与回流链路。","ia.monetization.mode.iap.title":"IAP","ia.monetization.mode.iap.summary":"支付闭环优先,重点验证下单、支付、验单与发货链路的一致性。","ia.monetization.mode.iap.desc":"以内购变现为主,建议先打通 `login`、下单、支付拉起、服务端验单与发货闭环;`authorize` 仅在需要额外用户资料或扩展 scope 时再接入,同时要重点关注弱网、取消支付、重复下单等订单校验场景,并结合复访能力验证付费用户的回流承接。","ia.monetization.mode.iaap.title":"IAAP","ia.monetization.mode.iaap.summary":"广告与支付双链路并行,优先验证共用用户体系下的整体联调稳定性。","ia.monetization.mode.iaap.desc":"广告与支付并行,建议先用 `login` 打通共用用户体系,再分别验证广告链路与支付闭环;`authorize` 仅在需要额外用户资料时补充接入,同时要关注两条变现链路在同一账号与同一局内场景下的联调稳定性,并结合复访能力验证混合变现用户的持续回流效果。","ia.monetization.recommended.title":"推荐能力组合","ia.requirement.required":"必接","ia.requirement.optional":"可选","ia.requirement.recommended":"推荐","ia.requirement.basic":"基础","ia.requirement.experimental":"实验","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.overview.section.performance.title":"性能优化","ia.overview.section.performance.desc":"围绕首包体积、启动速度与运行时表现的优化工具集合;按需启用对应能力,后续将持续扩展更多优化项。","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 的统一复现入口。",languageSwitcherLabel:SG,langChinese:wG,langEnglish:CG},P0="en-US",T0="__TTMG_IDE_LANG__",Za={"en-US":m3,"zh-CN":_G};function E0(){const i=navigator.language;return i in Za?i:i.split("-")[0]==="zh"?"zh-CN":P0}function x0(i){if(!i)return;if(i in Za)return i;const e=i.split("-")[0];if(e==="zh")return"zh-CN";if(e==="en")return"en-US"}function D0(){try{if(typeof window>"u")return;const i=window.localStorage.getItem(T0);return x0(i)}catch{return}}function kG(i){try{if(typeof window>"u")return;window.localStorage.setItem(T0,i)}catch{}}let Eh=D0()??E0();function PG(i){Eh=x0(i)??D0()??E0(),kG(Eh)}const x=(i,e)=>{let n=Za[Eh][i]??Za[P0][i];return e&&Object.entries(e).forEach(([r,s])=>{n=n.replace(new RegExp(`{{${r}}}`,"g"),s)}),n};function TG(i){return new URLSearchParams(window.location.search).get(i)}function EG(i){const e={};if(!i||typeof i!="string")return e;const r=(i.startsWith("?")?i.substring(1):i).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 QH(i){if(!i)return{isValid:!0,message:""};if(typeof i!="string")return{isValid:!1,message:x("queriesStringMustBeString")};if(i.trim()==="")return{isValid:!0,message:""};if(i.startsWith("?"))return{isValid:!1,message:x("queriesStringNoQuestionMark")};const e=i.split("&"),n=new Set;for(const r of e){if(r.trim()==="")return{isValid:!1,message:x("queriesStringEmptyPair")};const s=r.indexOf("=");if(s===-1||s===r.length-1)return{isValid:!1,message:x("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:x("queriesStringEmptyKey",{pair:r})};if(n.has(u))return{isValid:!1,message:x("queriesStringDuplicateKey",{key:u})};n.add(u);const f=/^[\w\-.!~*'()]+$/,y=/[\x00-\x1F\x7F]/;if(!f.test(u)&&u.length>0){if(y.test(u))return{isValid:!1,message:x("queriesStringInvalidKeyChars",{key:u})};if(/[^a-zA-Z0-9\-.!~*'()_]/.test(u))return{isValid:!1,message:x("queriesStringInvalidKeyChars",{key:u})}}if(y.test(p))return{isValid:!1,message:x("queriesStringInvalidValueChars",{value:p})}}catch(u){return{isValid:!1,message:x("queriesStringInvalidEncoding",{pair:r,error:u.message})}}}return{isValid:!0,message:""}}function kl(i,...e){Number(TG("enableLog"))&&console[i](...e)}const $n=(...i)=>kl("log",...i);$n.info=(...i)=>kl("info",...i);$n.warn=(...i)=>kl("warn",...i);$n.error=(...i)=>kl("error",...i);const Zo={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 xG{data;constructor(e){this.data={...Zo,...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]=Zo[e],this.logUpdate({[e]:Zo[e]})}clear(){this.data={...Zo},this.logUpdate(Zo,!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 xG,O0=()=>`http://${Pe.get("clientHost")}:${Pe.get("clientHttpPort")}`,I0="__TTMG_LAUNCH_MODE__",R0="__TTMG_CHANGELOG_LAST_SEEN_VERSION__",qn={browserDebug:"browserDebug",clientPreview:"clientPreview",clientDebug:"clientDebug"},Wa={name:x("normalLaunchMode"),pkgName:"__GAME__",pkgType:"main",id:"normal",scene:"scan_qrcode"};x("clientPreviewMode");const Ua={name:x("createdLaunchMode"),pkgName:"__GAME__",pkgType:"main",id:"created",scene:"scan_qrcode"},_g="game";x("browserDebugMode"),qn.browserDebug,x("clientPreviewMode"),qn.clientPreview;const N0="__TTMG_DEBUG_SETTING__";class DG{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 Ee=new DG,OG="docMode",IG="TTMG_DOCS_CAPTURE",RG="docScenario",NG="docLang",xh="mgebtz3do4nz2vpc",Ew="docs.example.com",ls=1024*1024,j0=[{name:"main",size:2.76*ls,type:"main"},{name:"wasmcode",size:3.42*ls,type:"independent"},{name:"configBundle",size:1.28*ls,type:"independent"}],L0=[{name:"main",size:2.76*ls,type:"main"},{name:"wasmcode",size:5.42*ls,type:"independent",root:"wasmcode/",md5:"docs-wasmcode-md5"}],xw=encodeURIComponent(`
13
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
14
- <rect width="128" height="128" rx="24" fill="#eef6ff"/>
15
- <path d="M64 22l36 20v44l-36 20-36-20V42l36-20z" fill="#7ab7f5"/>
16
- <path d="M64 38l20 11v30L64 90 44 79V49l20-11z" fill="#1f8fff"/>
17
- <circle cx="64" cy="64" r="10" fill="#ffffff"/>
18
- </svg>
19
- `);function kg(){return typeof window>"u"?new URLSearchParams:new URLSearchParams(window.location.search)}function Pl(){if(typeof window>"u")return!1;if(kg().get(OG)==="1")return!0;try{return window.localStorage.getItem(IG)==="1"}catch{return!1}}function Pg(){return kg().get(RG)||"default"}function jG(i){const e=kg().get(NG);if(e==="en-US"||e==="zh-CN")return e;const n=i?.["X-TTMG-Docs-Lang"]||i?.["x-ttmg-docs-lang"];return n==="en-US"||n==="zh-CN"?n:"zh-CN"}function Tg(){return Pg()==="wasm.prepare"}function LG(){return Pg()==="upload.permission-restricted"}function AG(i){try{return new URL(i,typeof window>"u"?"http://localhost":window.location.origin).pathname}catch{return i.split("?")[0]}}function MG(i){const e=jG(i),n=Tg(),r=n?L0:j0;return{data:{schema:`snssdk1233://microapp?app_id=ttmg-doc-fixture&launch_from=devtool_docs&host=${Ew}&host_list=${encodeURIComponent(JSON.stringify([Ew]))}&port=3000&ws_port=2999`,nodeWsPort:4e3,nodeServerPort:3e3,nodeStaticBaseUrl:"http://127.0.0.1:3000",user:{user_id:"doc-user",email:"devtool-doc@example.com"},devToolVersion:"0.4.3",packages:r,engine:n?"unity":"cocos",clientKey:xh,checkResult:[],lang:e}}}function $G(){const i=Tg(),e=i?L0:j0,n={data:{name:i?"Unity Wasm Sample":"Coins Sort 20",client_key:xh,size:e.reduce((r,s)=>r+s.size,0),description:"A sample mini game used for DevTool documentation screenshots.",icon_url:`data:image/svg+xml;charset=utf-8,${xw}`,display_icon_url:`data:image/svg+xml;charset=utf-8,${xw}`,created_at:1728e6,privacy_policy_link:"https://example.com/privacy",terms_of_service_link:"https://example.com/terms",request_allowed_domains:["https://api.example.com","https://assets.example.com"],sandbox_info:{sandbox_id:"doc-sandbox"},app_id:"ttmg-doc-fixture",packages:e,update_time:1728e6,scopes:["user.info.basic","im.share"]}};return LG()&&(n.error={errorCode:403,errorMsg:"The current account does not have permission for this game.",clientKey:xh}),n}function FG({url:i,method:e,headers:n}){if(!Pl())return null;const r=AG(i),s=e.toUpperCase();return s==="GET"&&r==="/game/config"?MG(n):s==="GET"&&r==="/game/detail"?$G():s==="GET"&&r==="/game/wasm-split-config"&&Tg()?{code:0,data:{enableWasmCollect:!1,enableWasmSplit:!1}}:r==="/game/config-fillback"?{isSuccess:!0,data:{}}:null}const zG=6e5,qG={error:{errorCode:-1,errorMsg:"Request failed"},isSuccess:!1,msg:"Request failed"},BG={error:{errorCode:-1,errorMsg:"Request timeout"},isSuccess:!1,msg:"Request timeout"};function Ki(i){const{url:e,method:n="GET",data:r=void 0,headers:s={},timeout:l=zG}=i;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=FG({url:c,method:n,headers:s});if(p)return Promise.resolve(p);const f=new AbortController,y=setTimeout(()=>f.abort(),l);return u.signal=f.signal,fetch(c,u).then(async v=>{if(!v.ok)return{error:{errorCode:-1,errorMsg:v.statusText},isSuccess:!1,msg:v.statusText};const S=v.headers.get("content-type");if(S&&S.includes("application/json"))try{const P=await v.text();return P.trim()?JSON.parse(P):{isSuccess:!0,data:{}}}catch(P){throw new Error(`Failed to parse JSON response: ${P instanceof Error?P.message:"Unknown error"}`)}else return v.text()}).catch(v=>v instanceof DOMException&&v.name==="AbortError"?BG:qG).finally(()=>{clearTimeout(y)})}const Jo={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 GG(i){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}=i||Jo,f=O0(),y={...Jo,tos_url:c,privacy_url:u,name:l||Jo.name,icon_url:r||Jo.icon_url,icon_big_url:r||Jo.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(`🚀 ${x("startToSendMetaToClient")}`,y);const v=await Ki({url:`${f}/game/meta`,method:"POST",data:y,headers:{"Content-Type":"application/json"}});return console.log(`✅ ${x("sendMetaToClientSuccess")}`),v}async function Dw(){const i=document.getElementById(_g);return new Promise(e=>{i.onload=()=>{i.onload=null,e(i)},i.contentWindow?.location.reload()})}const A0="debugMode";function Eg(i){return(i||"").trim().replace(/^v/i,"")}function WG(){const i=[Wa,Ua];try{const e=JSON.parse(localStorage.getItem(I0)||"[]");if(e.length){const n=e.filter(r=>r.id!==Ua.id).filter(r=>r.id!==Wa.id);return[Wa,...n,Ua]}else return i}catch{return i}}function UG(i){try{localStorage.setItem(I0,JSON.stringify(i))}catch(e){console.error("Failed to save launch options:",e)}}function HG(i){try{localStorage.setItem(N0,JSON.stringify(i))}catch(e){console.error("Failed to save debug setting:",e)}}function VG(){const i={enableAdMock:!1,enableIAPMock:!1,enableDomainCheck:!0,enableVConsole:!1,enableDevInfoPanel:!0},e={enableAdMock:!1,enableIAPMock:!1,enableDomainCheck:!0,enableVConsole:!0,enableDevInfoPanel:!0},r=M0()===qn.browserDebug;try{const s=localStorage.getItem(N0);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?i:e}function M0(){try{return $0()??qn.browserDebug}catch(i){return console.error("Failed to get debug mode:",i),qn.browserDebug}}function $0(){try{const i=localStorage.getItem(A0);return i&&Object.values(qn).includes(i)?i:null}catch(i){return console.error("Failed to get stored debug mode:",i),null}}function F0(i){try{localStorage.setItem(A0,i)}catch(e){console.error("Failed to save debug mode:",e)}}function KG(){try{return Eg(localStorage.getItem(R0))}catch(i){return console.error("Failed to get changelog last seen version:",i),""}}function QG(i){const e=Eg(i);if(e)try{localStorage.setItem(R0,e)}catch(n){console.error("Failed to save changelog last seen version:",n)}}function YG(i){const e=Eg(i);if(!e)return!1;const n=KG();return n?e!==n:!0}function XG(){const i={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:x("browserRemoteDebugDesc"),clientRealPreviewDesc:x("clientRealPreviewDesc"),scanTips:x("debug.scan.tips"),browser:{title:x("debug.mode.browser.title"),points:{logic:x("debug.mode.browser.point.logic"),devtools:x("debug.mode.browser.point.devtools"),preview:x("debug.mode.browser.point.preview")}},client:{title:x("debug.mode.client.title"),supportVersion:x("debug.mode.client.supportVersion"),points:{logic:x("debug.mode.client.point.logic"),vconsole:x("debug.mode.client.point.vconsole"),preview:x("debug.mode.client.point.preview")}},customTip:x("debug.mode.custom.tip")};console.log("%c%s",i.header,`📌 ${x("debug.guide.header")}`),console.log("%c%s",i.desc,e.scanTips),console.group("%c%s %cBROWSER",i.subtitle,e.browser.title,i.tagBrowser),console.log("%c• %c%s",i.bulletKey,i.bulletVal,e.browser.points.logic),console.log("%c• %c%s",i.bulletKey,i.bulletVal,e.browser.points.devtools),console.log("%c• %c%s",i.bulletKey,i.bulletVal,e.browser.points.preview),console.groupEnd(),console.group("%c%s %cDEVICE",i.subtitle,e.client.title,i.tagClient),console.log("%c%s",i.supportVersion,e.client.supportVersion),console.log("%c• %c%s",i.bulletKey,i.bulletVal,e.client.points.logic),console.log("%c• %c%s",i.bulletKey,i.bulletVal,e.client.points.vconsole),console.log("%c• %c%s",i.bulletKey,i.bulletVal,e.client.points.preview),console.groupEnd(),console.log("%c💡 %s",i.tip,e.customTip)}const ZG="ttmg.";function JG(i){return i===""||i==="1"||i==="true"}function z0(i){const e=ZG+i;try{const n=new URLSearchParams(window.location.search);if(n.has(i)){const r=JG(n.get(i));try{r?sessionStorage.setItem(e,"1"):sessionStorage.removeItem(e)}catch{}return r}}catch{}try{return sessionStorage.getItem(e)==="1"}catch{return!1}}const eW=z0("enableExperiment"),tW=z0("enableLocalDev");function YH(){return eW}function XH(){return tW}function ah({baseSchema:i,option:e,debugMode:n}){if(e){const{scene:r,pkgName:s,queries:l}=e;let u=`${i}&debugMode=${n}&_tiktok_minis_params=${encodeURIComponent(JSON.stringify({enter_from:r,ttmg_init_module:s}))}`;if(l){const p=EG(l);p&&Object.keys(p).forEach(f=>{u+=`&${f}=${encodeURIComponent(p[f])}`})}return u}else return i}const nW=-1001;function xg(i){return!!(i?.user_id||i?.email)}function Dg(i){const{errorCode:e,user:n}=i;return e===nW||e===0?"networkProxy":e?e===404?"notFound":e===403?"noPermission":e===401?xg(n)?"loginExpired":"notLoggedIn":"unknown":"ok"}function rW(i){const{clientKey:e,errorMsg:n}=i,r=Dg(i);return r==="notFound"?x("getDevGameDetailNotFound",{clientKey:e}):r==="noPermission"?x("gameDetailNoPermission",{clientKey:e}):r==="loginExpired"?x("gameLoginExpired",{clientKey:e}):r==="networkProxy"?x("gameDetailNetworkProxyBlocked",{clientKey:e}):r==="notLoggedIn"?x("gameDetailNotLogin",{clientKey:e}):n||""}const q0="tt-theme";function iW(){try{const i=window.localStorage.getItem(q0);if(i==="light"||i==="dark")return i}catch{}return null}function oW(i){try{window.localStorage.setItem(q0,i)}catch{}}function sW(){const i=iW();return i||"light"}function B0(i){if(typeof document>"u")return;const e=document.documentElement,n=document.body;e.setAttribute("data-theme",i),n&&(n.setAttribute("data-theme",i),n.setAttribute("theme-mode",i))}function Ow(i){B0(i),oW(i)}function aW(){return typeof document>"u"?"light":document.documentElement.getAttribute("data-theme")||"light"}function lW(){const i=sW();return B0(i),i}const cW={devToolVersion:"",engine:"unknown",isConnected:!1,hasSetup:!1,showManualBindIP:!1,debugMode:M0(),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:WG(),selectedLaunchOption:Wa,loading:{visible:!0,text:x("loading")},error:{text:""},message:{type:"info",title:x("disConnectionStatusTitle"),desc:x("disConnectionStatusDesc")},debugSetting:VG(),packages:[]};function uW(i,e){switch(e.type){case"SHOW_LOADING":return{...i,loading:{visible:!0,text:e.payload??x("loading")}};case"HIDE_LOADING":return{...i,loading:{...i.loading,visible:!1}};case"SET_MESSAGE":return{...i,message:e.payload};case"SET_IS_CONNECTED":return{...i,isConnected:e.payload};case"SET_SCHEMA":return{...i,schema:e.payload,devSchema:ah({baseSchema:e.payload,option:i.selectedLaunchOption,debugMode:i.debugMode})};case"CLEAR_MESSAGE":return{...i,message:{type:"info",title:"",desc:""}};case"SET_USER":return{...i,user:e.payload};case"SET_LAUNCH_OPTIONS":return UG(e.payload),{...i,launchOptions:e.payload};case"SET_SELECTED_LAUNCH_OPTION":return{...i,selectedLaunchOption:e.payload,devSchema:ah({baseSchema:i.schema,option:e.payload,debugMode:i.debugMode})};case"SET_PACKAGES":return{...i,packages:e.payload};case"SET_DEBUG_SETTING":return HG(e.payload),{...i,debugSetting:e.payload};case"SET_GAME_DETAIL":return{...i,gameDetail:e.payload};case"SET_HAS_SETUP":return{...i,hasSetup:e.payload};case"SET_ERROR":return{...i,error:e.payload};case"SET_DEV_TOOL_VERSION":return{...i,devToolVersion:e.payload};case"SET_DEBUG_MODE":return{...i,debugMode:e.payload,devSchema:ah({baseSchema:i.schema,option:i.selectedLaunchOption,debugMode:e.payload})};case"SET_SHOW_MANUAL_BIND_IP":return{...i,showManualBindIP:e.payload};case"SET_ENGINE":return{...i,engine:e.payload};default:return i}}const dW=({children:i})=>{const[e,n]=E.useReducer(uW,cW),r=E.useCallback(j=>{n({type:"SET_IS_CONNECTED",payload:j})},[]),s=E.useCallback(j=>{n({type:"SHOW_LOADING",payload:j})},[]),l=E.useCallback(()=>{setTimeout(()=>{n({type:"HIDE_LOADING"})},500)},[]),c=E.useCallback(j=>{n({type:"SET_MESSAGE",payload:j})},[]),u=E.useCallback(()=>{n({type:"CLEAR_MESSAGE"})},[]),p=E.useCallback(j=>{n({type:"SET_SCHEMA",payload:j})},[]),f=E.useCallback(j=>{n({type:"SET_USER",payload:j})},[]),y=E.useCallback(j=>{n({type:"SET_LAUNCH_OPTIONS",payload:j})},[]),v=E.useCallback(j=>{n({type:"SET_SELECTED_LAUNCH_OPTION",payload:j})},[]),S=E.useCallback(j=>{n({type:"SET_DEBUG_SETTING",payload:j})},[]),P=E.useCallback(j=>{n({type:"SET_PACKAGES",payload:j})},[]),T=E.useCallback(j=>{n({type:"SET_GAME_DETAIL",payload:j})},[]),b=E.useCallback(j=>{n({type:"SET_HAS_SETUP",payload:j})},[]),w=E.useCallback(j=>{n({type:"SET_ERROR",payload:j})},[]),D=E.useCallback(j=>{n({type:"SET_DEV_TOOL_VERSION",payload:j})},[]),O=E.useCallback(j=>{n({type:"SET_DEBUG_MODE",payload:j})},[]),N=E.useCallback(j=>{n({type:"SET_SHOW_MANUAL_BIND_IP",payload:j})},[]),M=E.useCallback(j=>{n({type:"SET_ENGINE",payload:j})},[]),F=E.useMemo(()=>({state:e,showLoading:s,hideLoading:l,setIsConnected:r,setSchema:p,setMessage:c,clearMessage:u,setUser:f,setLaunchOptions:y,setSelectedLaunchOption:v,setDebugSetting:S,setPackages:P,setGameDetail:T,setHasSetup:b,setError:w,setDevToolVersion:D,setDebugMode:O,setShowManualBindIP:N,setEngine:M}),[e,s,l,r,p,c,u,f,y,v,S,P,T,b,w,D,O,N,M]);return k.jsx(Cg.Provider,{value:F,children:i})};var Iw="popstate";function Rw(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function pW(i={}){function e(r,s){let l=s.state?.masked,{pathname:c,search:u,hash:p}=l||r.location;return Dh("",{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:ps(s)}return hW(e,n,null,i)}function He(i,e){if(i===!1||i===null||typeof i>"u")throw new Error(e)}function _n(i,e){if(!i){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function fW(){return Math.random().toString(36).substring(2,10)}function Nw(i,e){return{usr:i.state,key:i.key,idx:e,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Dh(i,e,n=null,r,s){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof e=="string"?to(e):e,state:n,key:e&&e.key||r||fW(),unstable_mask:s}}function ps({pathname:i="/",search:e="",hash:n=""}){return e&&e!=="?"&&(i+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(i+=n.charAt(0)==="#"?n:"#"+n),i}function to(i){let e={};if(i){let n=i.indexOf("#");n>=0&&(e.hash=i.substring(n),i=i.substring(0,n));let r=i.indexOf("?");r>=0&&(e.search=i.substring(r),i=i.substring(0,r)),i&&(e.pathname=i)}return e}function hW(i,e,n,r={}){let{window:s=document.defaultView,v5Compat:l=!1}=r,c=s.history,u="POP",p=null,f=y();f==null&&(f=0,c.replaceState({...c.state,idx:f},""));function y(){return(c.state||{idx:null}).idx}function v(){u="POP";let w=y(),D=w==null?null:w-f;f=w,p&&p({action:u,location:b.location,delta:D})}function S(w,D){u="PUSH";let O=Rw(w)?w:Dh(b.location,w,D);f=y()+1;let N=Nw(O,f),M=b.createHref(O.unstable_mask||O);try{c.pushState(N,"",M)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;s.location.assign(M)}l&&p&&p({action:u,location:b.location,delta:1})}function P(w,D){u="REPLACE";let O=Rw(w)?w:Dh(b.location,w,D);f=y();let N=Nw(O,f),M=b.createHref(O.unstable_mask||O);c.replaceState(N,"",M),l&&p&&p({action:u,location:b.location,delta:0})}function T(w){return gW(w)}let b={get action(){return u},get location(){return i(s,c)},listen(w){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(Iw,v),p=w,()=>{s.removeEventListener(Iw,v),p=null}},createHref(w){return e(s,w)},createURL:T,encodeLocation(w){let D=T(w);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:S,replace:P,go(w){return c.go(w)}};return b}function gW(i,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),He(n,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:ps(i);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function G0(i,e,n="/"){return mW(i,e,n,!1)}function mW(i,e,n,r){let s=typeof e=="string"?to(e):e,l=ir(s.pathname||"/",n);if(l==null)return null;let c=W0(i);yW(c);let u=null;for(let p=0;u==null&&p<c.length;++p){let f=xW(l);u=TW(c[p],f,r)}return u}function W0(i,e=[],n=[],r="",s=!1){let l=(c,u,p=s,f)=>{let y={relativePath:f===void 0?c.path||"":f,caseSensitive:c.caseSensitive===!0,childrenIndex:u,route:c};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(r)&&p)return;He(y.relativePath.startsWith(r),`Absolute route path "${y.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(r.length)}let v=Fn([r,y.relativePath]),S=n.concat(y);c.children&&c.children.length>0&&(He(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),W0(c.children,e,S,v,p)),!(c.path==null&&!c.index)&&e.push({path:v,score:kW(v,c.index),routesMeta:S})};return i.forEach((c,u)=>{if(c.path===""||!c.path?.includes("?"))l(c,u);else for(let p of U0(c.path))l(c,u,!0,p)}),e}function U0(i){let e=i.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=U0(r.join("/")),u=[];return u.push(...c.map(p=>p===""?l:[l,p].join("/"))),s&&u.push(...c),u.map(p=>i.startsWith("/")&&p===""?"/":p)}function yW(i){i.sort((e,n)=>e.score!==n.score?n.score-e.score:PW(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var vW=/^:[\w-]+$/,bW=3,SW=2,wW=1,CW=10,_W=-2,jw=i=>i==="*";function kW(i,e){let n=i.split("/"),r=n.length;return n.some(jw)&&(r+=_W),e&&(r+=SW),n.filter(s=>!jw(s)).reduce((s,l)=>s+(vW.test(l)?bW:l===""?wW:CW),r)}function PW(i,e){return i.length===e.length&&i.slice(0,-1).every((r,s)=>r===e[s])?i[i.length-1]-e[e.length-1]:0}function TW(i,e,n=!1){let{routesMeta:r}=i,s={},l="/",c=[];for(let u=0;u<r.length;++u){let p=r[u],f=u===r.length-1,y=l==="/"?e:e.slice(l.length)||"/",v=Ja({path:p.relativePath,caseSensitive:p.caseSensitive,end:f},y),S=p.route;if(!v&&f&&n&&!r[r.length-1].route.index&&(v=Ja({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!v)return null;Object.assign(s,v.params),c.push({params:s,pathname:Fn([l,v.pathname]),pathnameBase:RW(Fn([l,v.pathnameBase])),route:S}),v.pathnameBase!=="/"&&(l=Fn([l,v.pathnameBase]))}return c}function Ja(i,e){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[n,r]=EW(i.path,i.caseSensitive,i.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((f,{paramName:y,isOptional:v},S)=>{if(y==="*"){let T=u[S]||"";c=l.slice(0,l.length-T.length).replace(/(.)\/+$/,"$1")}const P=u[S];return v&&!P?f[y]=void 0:f[y]=(P||"").replace(/%2F/g,"/"),f},{}),pathname:l,pathnameBase:c,pattern:i}}function EW(i,e=!1,n=!0){_n(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],s="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,u,p,f,y)=>{if(r.push({paramName:u,isOptional:p!=null}),p){let v=y.charAt(f+c.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),s+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":i!==""&&i!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function xW(i){try{return i.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return _n(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),i}}function ir(i,e){if(e==="/")return i;if(!i.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=i.charAt(n);return r&&r!=="/"?null:i.slice(n)||"/"}var DW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function OW(i,e="/"){let{pathname:n,search:r="",hash:s=""}=typeof i=="string"?to(i):i,l;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?l=Lw(n.substring(1),"/"):l=Lw(n,e)):l=e,{pathname:l,search:NW(r),hash:jW(s)}}function Lw(i,e){let n=e.replace(/\/+$/,"").split("/");return i.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function lh(i,e,n,r){return`Cannot include a '${i}' 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 IW(i){return i.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Og(i){let e=IW(i);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function Tl(i,e,n,r=!1){let s;typeof i=="string"?s=to(i):(s={...i},He(!s.pathname||!s.pathname.includes("?"),lh("?","pathname","search",s)),He(!s.pathname||!s.pathname.includes("#"),lh("#","pathname","hash",s)),He(!s.search||!s.search.includes("#"),lh("#","search","hash",s)));let l=i===""||s.pathname==="",c=l?"/":s.pathname,u;if(c==null)u=n;else{let v=e.length-1;if(!r&&c.startsWith("..")){let S=c.split("/");for(;S[0]==="..";)S.shift(),v-=1;s.pathname=S.join("/")}u=v>=0?e[v]:"/"}let p=OW(s,u),f=c&&c!=="/"&&c.endsWith("/"),y=(l||c===".")&&n.endsWith("/");return!p.pathname.endsWith("/")&&(f||y)&&(p.pathname+="/"),p}var Fn=i=>i.join("/").replace(/\/\/+/g,"/"),RW=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),NW=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,jW=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,LW=class{constructor(i,e,n,r=!1){this.status=i,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function AW(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function MW(i){return i.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var H0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function V0(i,e){let n=i;if(typeof n!="string"||!DW.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,s=!1;if(H0)try{let l=new URL(window.location.href),c=n.startsWith("//")?new URL(l.protocol+n):new URL(n),u=ir(c.pathname,e);c.origin===l.origin&&u!=null?n=u+c.search+c.hash:s=!0}catch{_n(!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 K0=["POST","PUT","PATCH","DELETE"];new Set(K0);var $W=["GET",...K0];new Set($W);var no=E.createContext(null);no.displayName="DataRouter";var El=E.createContext(null);El.displayName="DataRouterState";var FW=E.createContext(!1),Q0=E.createContext({isTransitioning:!1});Q0.displayName="ViewTransition";var zW=E.createContext(new Map);zW.displayName="Fetchers";var qW=E.createContext(null);qW.displayName="Await";var Zt=E.createContext(null);Zt.displayName="Navigation";var Cs=E.createContext(null);Cs.displayName="Location";var Tn=E.createContext({outlet:null,matches:[],isDataRoute:!1});Tn.displayName="Route";var Ig=E.createContext(null);Ig.displayName="RouteError";var Y0="REACT_ROUTER_ERROR",BW="REDIRECT",GW="ROUTE_ERROR_RESPONSE";function WW(i){if(i.startsWith(`${Y0}:${BW}:{`))try{let e=JSON.parse(i.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 UW(i){if(i.startsWith(`${Y0}:${GW}:{`))try{let e=JSON.parse(i.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new LW(e.status,e.statusText,e.data)}catch{}}function HW(i,{relative:e}={}){He(ro(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(Zt),{hash:s,pathname:l,search:c}=ks(i,{relative:e}),u=l;return n!=="/"&&(u=l==="/"?n:Fn([n,l])),r.createHref({pathname:u,search:c,hash:s})}function ro(){return E.useContext(Cs)!=null}function sr(){return He(ro(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Cs).location}var X0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Z0(i){E.useContext(Zt).static||E.useLayoutEffect(i)}function _s(){let{isDataRoute:i}=E.useContext(Tn);return i?oU():VW()}function VW(){He(ro(),"useNavigate() may be used only in the context of a <Router> component.");let i=E.useContext(no),{basename:e,navigator:n}=E.useContext(Zt),{matches:r}=E.useContext(Tn),{pathname:s}=sr(),l=JSON.stringify(Og(r)),c=E.useRef(!1);return Z0(()=>{c.current=!0}),E.useCallback((p,f={})=>{if(_n(c.current,X0),!c.current)return;if(typeof p=="number"){n.go(p);return}let y=Tl(p,JSON.parse(l),s,f.relative==="path");i==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:Fn([e,y.pathname])),(f.replace?n.replace:n.push)(y,f.state,f)},[e,n,l,s,i])}E.createContext(null);function ZH(){let{matches:i}=E.useContext(Tn),e=i[i.length-1];return e?e.params:{}}function ks(i,{relative:e}={}){let{matches:n}=E.useContext(Tn),{pathname:r}=sr(),s=JSON.stringify(Og(n));return E.useMemo(()=>Tl(i,JSON.parse(s),r,e==="path"),[i,s,r,e])}function KW(i,e){return J0(i,e)}function J0(i,e,n){He(ro(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=E.useContext(Zt),{matches:s}=E.useContext(Tn),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",p=l?l.pathnameBase:"/",f=l&&l.route;{let w=f&&f.path||"";t_(u,!f||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) 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.
20
-
21
- Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let y=sr(),v;if(e){let w=typeof e=="string"?to(e):e;He(p==="/"||w.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 "${w.pathname}" was given in the \`location\` prop.`),v=w}else v=y;let S=v.pathname||"/",P=S;if(p!=="/"){let w=p.replace(/^\//,"").split("/");P="/"+S.replace(/^\//,"").split("/").slice(w.length).join("/")}let T=G0(i,{pathname:P});_n(f||T!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),_n(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 b=JW(T&&T.map(w=>Object.assign({},w,{params:Object.assign({},c,w.params),pathname:Fn([p,r.encodeLocation?r.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?p:Fn([p,r.encodeLocation?r.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),s,n);return e&&b?E.createElement(Cs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},b):b}function QW(){let i=iU(),e=AW(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),n=i instanceof Error?i.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:",i),c=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:l},"ErrorBoundary")," or"," ",E.createElement("code",{style:l},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},e),n?E.createElement("pre",{style:s},n):null,c)}var YW=E.createElement(QW,null),e_=class extends E.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,e){return e.location!==i.location||e.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:e.error,location:e.location,revalidation:i.revalidation||e.revalidation}}componentDidCatch(i,e){this.props.onError?this.props.onError(i,e):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const n=UW(i.digest);n&&(i=n)}let e=i!==void 0?E.createElement(Tn.Provider,{value:this.props.routeContext},E.createElement(Ig.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?E.createElement(XW,{error:i},e):e}};e_.contextType=FW;var ch=new WeakMap;function XW({children:i,error:e}){let{basename:n}=E.useContext(Zt);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=WW(e.digest);if(r){let s=ch.get(e);if(s)throw s;let l=V0(r.location,n);if(H0&&!ch.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 ch.set(e,c),c}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return i}function ZW({routeContext:i,match:e,children:n}){let r=E.useContext(no);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),E.createElement(Tn.Provider,{value:i},n)}function JW(i,e=[],n){let r=n?.state;if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let s=i,l=r?.errors;if(l!=null){let y=s.findIndex(v=>v.route.id&&l?.[v.route.id]!==void 0);He(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,y+1))}let c=!1,u=-1;if(n&&r){c=r.renderFallback;for(let y=0;y<s.length;y++){let v=s[y];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(u=y),v.route.id){let{loaderData:S,errors:P}=r,T=v.route.loader&&!S.hasOwnProperty(v.route.id)&&(!P||P[v.route.id]===void 0);if(v.route.lazy||T){n.isStatic&&(c=!0),u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}}let p=n?.onError,f=r&&p?(y,v)=>{p(y,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:MW(r.matches),errorInfo:v})}:void 0;return s.reduceRight((y,v,S)=>{let P,T=!1,b=null,w=null;r&&(P=l&&v.route.id?l[v.route.id]:void 0,b=v.route.errorElement||YW,c&&(u<0&&S===0?(t_("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,w=null):u===S&&(T=!0,w=v.route.hydrateFallbackElement||null)));let D=e.concat(s.slice(0,S+1)),O=()=>{let N;return P?N=b:T?N=w:v.route.Component?N=E.createElement(v.route.Component,null):v.route.element?N=v.route.element:N=y,E.createElement(ZW,{match:v,routeContext:{outlet:y,matches:D,isDataRoute:r!=null},children:N})};return r&&(v.route.ErrorBoundary||v.route.errorElement||S===0)?E.createElement(e_,{location:r.location,revalidation:r.revalidation,component:b,error:P,children:O(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:f}):O()},null)}function Rg(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function eU(i){let e=E.useContext(no);return He(e,Rg(i)),e}function tU(i){let e=E.useContext(El);return He(e,Rg(i)),e}function nU(i){let e=E.useContext(Tn);return He(e,Rg(i)),e}function Ng(i){let e=nU(i),n=e.matches[e.matches.length-1];return He(n.route.id,`${i} can only be used on routes that contain a unique "id"`),n.route.id}function rU(){return Ng("useRouteId")}function iU(){let i=E.useContext(Ig),e=tU("useRouteError"),n=Ng("useRouteError");return i!==void 0?i:e.errors?.[n]}function oU(){let{router:i}=eU("useNavigate"),e=Ng("useNavigate"),n=E.useRef(!1);return Z0(()=>{n.current=!0}),E.useCallback(async(s,l={})=>{_n(n.current,X0),n.current&&(typeof s=="number"?await i.navigate(s):await i.navigate(s,{fromRouteId:e,...l}))},[i,e])}var Aw={};function t_(i,e,n){!e&&!Aw[i]&&(Aw[i]=!0,_n(!1,n))}E.memo(sU);function sU({routes:i,future:e,state:n,isStatic:r,onError:s}){return J0(i,void 0,{state:n,isStatic:r,onError:s})}function uh({to:i,replace:e,state:n,relative:r}){He(ro(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=E.useContext(Zt);_n(!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}=E.useContext(Tn),{pathname:c}=sr(),u=_s(),p=Tl(i,Og(l),c,r==="path"),f=JSON.stringify(p);return E.useEffect(()=>{u(JSON.parse(f),{replace:e,state:n,relative:r})},[u,f,r,e,n]),null}function st(i){He(!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 aU({basename:i="/",children:e=null,location:n,navigationType:r="POP",navigator:s,static:l=!1,unstable_useTransitions:c}){He(!ro(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=i.replace(/^\/*/,"/"),p=E.useMemo(()=>({basename:u,navigator:s,static:l,unstable_useTransitions:c,future:{}}),[u,s,l,c]);typeof n=="string"&&(n=to(n));let{pathname:f="/",search:y="",hash:v="",state:S=null,key:P="default",unstable_mask:T}=n,b=E.useMemo(()=>{let w=ir(f,u);return w==null?null:{location:{pathname:w,search:y,hash:v,state:S,key:P,unstable_mask:T},navigationType:r}},[u,f,y,v,S,P,r,T]);return _n(b!=null,`<Router basename="${u}"> is not able to match the URL "${f}${y}${v}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:E.createElement(Zt.Provider,{value:p},E.createElement(Cs.Provider,{children:e,value:b}))}function lU({children:i,location:e}){return KW(Oh(i),e)}function Oh(i,e=[]){let n=[];return E.Children.forEach(i,(r,s)=>{if(!E.isValidElement(r))return;let l=[...e,s];if(r.type===E.Fragment){n.push.apply(n,Oh(r.props.children,l));return}He(r.type===st,`[${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>`),He(!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=Oh(r.props.children,l)),n.push(c)}),n}var Ha="get",Va="application/x-www-form-urlencoded";function xl(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function cU(i){return xl(i)&&i.tagName.toLowerCase()==="button"}function uU(i){return xl(i)&&i.tagName.toLowerCase()==="form"}function dU(i){return xl(i)&&i.tagName.toLowerCase()==="input"}function pU(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function fU(i,e){return i.button===0&&(!e||e==="_self")&&!pU(i)}var Fa=null;function hU(){if(Fa===null)try{new FormData(document.createElement("form"),0),Fa=!1}catch{Fa=!0}return Fa}var gU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function dh(i){return i!=null&&!gU.has(i)?(_n(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Va}"`),null):i}function mU(i,e){let n,r,s,l,c;if(uU(i)){let u=i.getAttribute("action");r=u?ir(u,e):null,n=i.getAttribute("method")||Ha,s=dh(i.getAttribute("enctype"))||Va,l=new FormData(i)}else if(cU(i)||dU(i)&&(i.type==="submit"||i.type==="image")){let u=i.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=i.getAttribute("formaction")||u.getAttribute("action");if(r=p?ir(p,e):null,n=i.getAttribute("formmethod")||u.getAttribute("method")||Ha,s=dh(i.getAttribute("formenctype"))||dh(u.getAttribute("enctype"))||Va,l=new FormData(u,i),!hU()){let{name:f,type:y,value:v}=i;if(y==="image"){let S=f?`${f}.`:"";l.append(`${S}x`,"0"),l.append(`${S}y`,"0")}else f&&l.append(f,v)}}else{if(xl(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ha,r=null,s=Va,c=i}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 jg(i,e){if(i===!1||i===null||typeof i>"u")throw new Error(e)}function yU(i,e,n,r){let s=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return n?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${r}`:s.pathname=`${s.pathname}.${r}`:s.pathname==="/"?s.pathname=`_root.${r}`:e&&ir(s.pathname,e)==="/"?s.pathname=`${e.replace(/\/$/,"")}/_root.${r}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${r}`,s}async function vU(i,e){if(i.id in e)return e[i.id];try{let n=await import(i.module);return e[i.id]=n,n}catch(n){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bU(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function SU(i,e,n){let r=await Promise.all(i.map(async s=>{let l=e.routes[s.route.id];if(l){let c=await vU(l,n);return c.links?c.links():[]}return[]}));return kU(r.flat(1).filter(bU).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Mw(i,e,n,r,s,l){let c=(p,f)=>n[f]?p.route.id!==n[f].route.id:!0,u=(p,f)=>n[f].pathname!==p.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==p.params["*"];return l==="assets"?e.filter((p,f)=>c(p,f)||u(p,f)):l==="data"?e.filter((p,f)=>{let y=r.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(c(p,f)||u(p,f))return!0;if(p.route.shouldRevalidate){let v=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function wU(i,e,{includeHydrateFallback:n}={}){return CU(i.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 CU(i){return[...new Set(i)]}function _U(i){let e={},n=Object.keys(i).sort();for(let r of n)e[r]=i[r];return e}function kU(i,e){let n=new Set;return new Set(e),i.reduce((r,s)=>{let l=JSON.stringify(_U(s));return n.has(l)||(n.add(l),r.push({key:l,link:s})),r},[])}function n_(){let i=E.useContext(no);return jg(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function PU(){let i=E.useContext(El);return jg(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Lg=E.createContext(void 0);Lg.displayName="FrameworkContext";function r_(){let i=E.useContext(Lg);return jg(i,"You must render this element inside a <HydratedRouter> element"),i}function TU(i,e){let n=E.useContext(Lg),[r,s]=E.useState(!1),[l,c]=E.useState(!1),{onFocus:u,onBlur:p,onMouseEnter:f,onMouseLeave:y,onTouchStart:v}=e,S=E.useRef(null);E.useEffect(()=>{if(i==="render"&&c(!0),i==="viewport"){let b=D=>{D.forEach(O=>{c(O.isIntersecting)})},w=new IntersectionObserver(b,{threshold:.5});return S.current&&w.observe(S.current),()=>{w.disconnect()}}},[i]),E.useEffect(()=>{if(r){let b=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(b)}}},[r]);let P=()=>{s(!0)},T=()=>{s(!1),c(!1)};return n?i!=="intent"?[l,S,{}]:[l,S,{onFocus:es(u,P),onBlur:es(p,T),onMouseEnter:es(f,P),onMouseLeave:es(y,T),onTouchStart:es(v,P)}]:[!1,S,{}]}function es(i,e){return n=>{i&&i(n),n.defaultPrevented||e(n)}}function EU({page:i,...e}){let{router:n}=n_(),r=E.useMemo(()=>G0(n.routes,i,n.basename),[n.routes,i,n.basename]);return r?E.createElement(DU,{page:i,matches:r,...e}):null}function xU(i){let{manifest:e,routeModules:n}=r_(),[r,s]=E.useState([]);return E.useEffect(()=>{let l=!1;return SU(i,e,n).then(c=>{l||s(c)}),()=>{l=!0}},[i,e,n]),r}function DU({page:i,matches:e,...n}){let r=sr(),{future:s,manifest:l,routeModules:c}=r_(),{basename:u}=n_(),{loaderData:p,matches:f}=PU(),y=E.useMemo(()=>Mw(i,e,f,l,r,"data"),[i,e,f,l,r]),v=E.useMemo(()=>Mw(i,e,f,l,r,"assets"),[i,e,f,l,r]),S=E.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let b=new Set,w=!1;if(e.forEach(O=>{let N=l.routes[O.route.id];!N||!N.hasLoader||(!y.some(M=>M.route.id===O.route.id)&&O.route.id in p&&c[O.route.id]?.shouldRevalidate||N.hasClientLoader?w=!0:b.add(O.route.id))}),b.size===0)return[];let D=yU(i,u,s.unstable_trailingSlashAwareDataRequests,"data");return w&&b.size>0&&D.searchParams.set("_routes",e.filter(O=>b.has(O.route.id)).map(O=>O.route.id).join(",")),[D.pathname+D.search]},[u,s.unstable_trailingSlashAwareDataRequests,p,r,l,y,e,i,c]),P=E.useMemo(()=>wU(v,l),[v,l]),T=xU(v);return E.createElement(E.Fragment,null,S.map(b=>E.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),P.map(b=>E.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),T.map(({key:b,link:w})=>E.createElement("link",{key:b,nonce:n.nonce,...w,crossOrigin:w.crossOrigin??n.crossOrigin})))}function OU(...i){return e=>{i.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var IU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{IU&&(window.__reactRouterVersion="7.13.1")}catch{}function RU({basename:i,children:e,unstable_useTransitions:n,window:r}){let s=E.useRef();s.current==null&&(s.current=pW({window:r,v5Compat:!0}));let l=s.current,[c,u]=E.useState({action:l.action,location:l.location}),p=E.useCallback(f=>{n===!1?u(f):E.startTransition(()=>u(f))},[n]);return E.useLayoutEffect(()=>l.listen(p),[l,p]),E.createElement(aU,{basename:i,children:e,location:c.location,navigationType:c.action,navigator:l,unstable_useTransitions:n})}var i_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,o_=E.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:s,reloadDocument:l,replace:c,unstable_mask:u,state:p,target:f,to:y,preventScrollReset:v,viewTransition:S,unstable_defaultShouldRevalidate:P,...T},b){let{basename:w,navigator:D,unstable_useTransitions:O}=E.useContext(Zt),N=typeof y=="string"&&i_.test(y),M=V0(y,w);y=M.to;let F=HW(y,{relative:s}),j=sr(),L=null;if(u){let ne=Tl(u,[],j.unstable_mask?j.unstable_mask.pathname:"/",!0);w!=="/"&&(ne.pathname=ne.pathname==="/"?w:Fn([w,ne.pathname])),L=D.createHref(ne)}let[z,U,H]=TU(r,T),K=AU(y,{replace:c,unstable_mask:u,state:p,target:f,preventScrollReset:v,relative:s,viewTransition:S,unstable_defaultShouldRevalidate:P,unstable_useTransitions:O});function ie(ne){e&&e(ne),ne.defaultPrevented||K(ne)}let ee=!(M.isExternal||l),ae=E.createElement("a",{...T,...H,href:(ee?L:void 0)||M.absoluteURL||F,onClick:ee?ie:e,ref:OU(b,U),target:f,"data-discover":!N&&n==="render"?"true":void 0});return z&&!N?E.createElement(E.Fragment,null,ae,E.createElement(EU,{page:F})):ae});o_.displayName="Link";var NU=E.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:s=!1,style:l,to:c,viewTransition:u,children:p,...f},y){let v=ks(c,{relative:f.relative}),S=sr(),P=E.useContext(El),{navigator:T,basename:b}=E.useContext(Zt),w=P!=null&&qU(v)&&u===!0,D=T.encodeLocation?T.encodeLocation(v).pathname:v.pathname,O=S.pathname,N=P&&P.navigation&&P.navigation.location?P.navigation.location.pathname:null;n||(O=O.toLowerCase(),N=N?N.toLowerCase():null,D=D.toLowerCase()),N&&b&&(N=ir(N,b)||N);const M=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let F=O===D||!s&&O.startsWith(D)&&O.charAt(M)==="/",j=N!=null&&(N===D||!s&&N.startsWith(D)&&N.charAt(D.length)==="/"),L={isActive:F,isPending:j,isTransitioning:w},z=F?e:void 0,U;typeof r=="function"?U=r(L):U=[r,F?"active":null,j?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(L):l;return E.createElement(o_,{...f,"aria-current":z,className:U,ref:y,style:H,to:c,viewTransition:u},typeof p=="function"?p(L):p)});NU.displayName="NavLink";var jU=E.forwardRef(({discover:i="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:s,state:l,method:c=Ha,action:u,onSubmit:p,relative:f,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:S,...P},T)=>{let{unstable_useTransitions:b}=E.useContext(Zt),w=FU(),D=zU(u,{relative:f}),O=c.toLowerCase()==="get"?"get":"post",N=typeof u=="string"&&i_.test(u),M=F=>{if(p&&p(F),F.defaultPrevented)return;F.preventDefault();let j=F.nativeEvent.submitter,L=j?.getAttribute("formmethod")||c,z=()=>w(j||F.currentTarget,{fetcherKey:e,method:L,navigate:n,replace:s,state:l,relative:f,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:S});b&&n!==!1?E.startTransition(()=>z()):z()};return E.createElement("form",{ref:T,method:O,action:D,onSubmit:r?p:M,...P,"data-discover":!N&&i==="render"?"true":void 0})});jU.displayName="Form";function LU(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function s_(i){let e=E.useContext(no);return He(e,LU(i)),e}function AU(i,{target:e,replace:n,unstable_mask:r,state:s,preventScrollReset:l,relative:c,viewTransition:u,unstable_defaultShouldRevalidate:p,unstable_useTransitions:f}={}){let y=_s(),v=sr(),S=ks(i,{relative:c});return E.useCallback(P=>{if(fU(P,e)){P.preventDefault();let T=n!==void 0?n:ps(v)===ps(S),b=()=>y(i,{replace:T,unstable_mask:r,state:s,preventScrollReset:l,relative:c,viewTransition:u,unstable_defaultShouldRevalidate:p});f?E.startTransition(()=>b()):b()}},[v,y,S,n,r,s,e,i,l,c,u,p,f])}var MU=0,$U=()=>`__${String(++MU)}__`;function FU(){let{router:i}=s_("useSubmit"),{basename:e}=E.useContext(Zt),n=rU(),r=i.fetch,s=i.navigate;return E.useCallback(async(l,c={})=>{let{action:u,method:p,encType:f,formData:y,body:v}=mU(l,e);if(c.navigate===!1){let S=c.fetcherKey||$U();await r(S,n,c.action||u,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:v,formMethod:c.method||p,formEncType:c.encType||f,flushSync:c.flushSync})}else await s(c.action||u,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:v,formMethod:c.method||p,formEncType:c.encType||f,replace:c.replace,state:c.state,fromRouteId:n,flushSync:c.flushSync,viewTransition:c.viewTransition})},[r,s,e,n])}function zU(i,{relative:e}={}){let{basename:n}=E.useContext(Zt),r=E.useContext(Tn);He(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),l={...ks(i||".",{relative:e})},c=sr();if(i==null){l.search=c.search;let u=new URLSearchParams(l.search),p=u.getAll("index");if(p.some(y=>y==="")){u.delete("index"),p.filter(v=>v).forEach(v=>u.append("index",v));let y=u.toString();l.search=y?`?${y}`:""}}return(!i||i===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Fn([n,l.pathname])),ps(l)}function qU(i,{relative:e}={}){let n=E.useContext(Q0);He(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=s_("useViewTransitionState"),s=ks(i,{relative:e});if(!n.isTransitioning)return!1;let l=ir(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=ir(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ja(s.pathname,c)!=null||Ja(s.pathname,l)!=null}var BU=Object.defineProperty,$w=Object.getOwnPropertySymbols,GU=Object.prototype.hasOwnProperty,WU=Object.prototype.propertyIsEnumerable,Fw=(i,e,n)=>e in i?BU(i,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[e]=n,UU=(i,e)=>{for(var n in e||(e={}))GU.call(e,n)&&Fw(i,n,e[n]);if($w)for(var n of $w(e))WU.call(e,n)&&Fw(i,n,e[n]);return i};function HU(i){return E.createElement("svg",UU({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},i),E.createElement("rect",{width:200,height:200,fill:"transparent"}),E.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)"}),E.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"}),E.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"}),E.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"}),E.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"}),E.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"}),E.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"}),E.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"}),E.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"}),E.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"}),E.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"}),E.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"}),E.createElement("ellipse",{cx:127.42,cy:86.0081,rx:2.47934,ry:2.47934,fill:"white",stroke:"#515151"}),E.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}),E.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"}),E.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 VU=HU;function KU(){return document.getElementById(_g)?.contentWindow}class QU{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(`⌛️ ${x("startConnectClientWS",{wsURL:n})}`);const r=new WebSocket(n);this.connectTimeoutTimer=setTimeout(()=>{r.readyState!==WebSocket.OPEN&&(this.isTimeout=!0,r.close(),console.error(`${x("clientConnectTimeout")||"客户端连接超时"}`),Ee.emit("connectionChange",{node:Pe.get("isNodeWSConnected"),client:!1,from:"client",reason:"timeout"}),Dw())},5e3),r.onclose=()=>{this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),this.isTimeout||(console.error(`${x("clientServerDisconnected")}`),Ee.emit("connectionChange",{node:Pe.get("isNodeWSConnected"),client:!1,from:"client",reason:"close"}),Dw())},r.onerror=()=>{if(this.connectTimeoutTimer&&(clearTimeout(this.connectTimeoutTimer),this.connectTimeoutTimer=void 0),!this.isTimeout){const s=x("clientServerStartError");Ee.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(`✅ ${x("clientConnectedSuccess")}`),Ee.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=KU();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;case"predownloadSubpackage":case"reportScene":l?.payload&&typeof l.payload=="object"&&Ee.emit(l.method,l.payload);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 Ps=new QU,YU={start:{msgKey:"uploadGameStart"},success:{msgKey:"uploadGameSuccess",handle:i=>{const{packages:e,clientKey:n}=i||{};Pe.setMultiple({packages:e,clientKey:n,isResourcesReady:!0}),Ee.emit("setupStatusChange",{isScriptsReady:Pe.get("isScriptsReady"),isResourcesReady:!0})}},process:{msgKey:"uploadProcess"},error:{msgKey:"uploadError",handle:i=>{const{msg:e}=i||{};Pe.set("isResourcesReady",!1),Ee.emit("setupStatusChange",{isScriptsReady:Pe.get("isScriptsReady"),isResourcesReady:!1,isResourcesFailed:!0})}},restart:{msgKey:"uploadGameRestart"}};function XU(i){const{status:e,payload:n}=i,r=YU[e];if(!r){console.warn(`Unknown upload status: ${e}`);return}const s=x(r.msgKey);Ee.emit("uploadGame",{status:e,msg:s,progress:n?.progress}),r.handle&&r.handle(n)}class ZU{ws;init(){const e=Pe.get("nodeWsPort");console.info(`⌛️ ${x("nodeServerStartConnect")}`);let n=!1;return this.ws=new WebSocket(`ws://localhost:${e}`),this.ws.onclose=()=>{console.error(`❌ ${x("nodeServerDisconnect")}`),Ee.emit("connectionChange",{node:!1,client:Pe.get("isClientWSConnected"),from:"node",reason:n?"error":"close"})},this.ws.onerror=()=>{n=!0;const r=x("nodeServerStartError");console.error(r),Ee.emit("connectionChange",{node:!1,client:Pe.get("isClientWSConnected"),from:"node",reason:"error"})},this.ws.onopen=()=>{console.log(`✅ ${x("nodeServerConnectedSuccess")}`),Ee.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":{XU(s);break}case"compilationStatus":{Ee.emit("compilationStatus",s.payload);break}case"unitySplitStatus":{Ee.emit("unitySplitStatus",s.payload);break}case"resourceChange":{$n.info("Node WS resourceChange",s?.payload),Ee.emit("resourceChange",{});break}case"scanQRCodeSuccess":{const{clientWsPort:c,clientHost:u,clientHttpPort:p}=s.payload;Pe.setMultiple({clientHost:u,clientWsPort:c,clientHttpPort:p}),Ps.init({clientWsPort:c,clientHost:u,clientHttpPort:p}),Ee.emit("scanQRCode",{status:"success"});break}case"scanQRCodeFailed":{const{msg:c}=s.payload;Ee.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 Hi=new ZU,JU=["krypton.js","ttmg-core.js"];async function zw(i){try{const e=O0();console.log(`⌛️ ${x("startDebug")}`),console.log(`⌛️ ${x("initClientEnv")}`);const n=await Ki({url:`${e}/game/cwd`,method:"POST",data:{command:"start"}});if(console.log(`✅ ${x("initClientEnvSuccess")}`),Ps.send({method:"setDebugSettings",payload:i.debugSetting}),i.debugMode==="clientPreview"||i.debugMode==="clientDebug")Pe.set("isScriptsReady",!0),Hi.send({method:"startUpload"});else{console.log(`⌛️ ${x("startInitJSDevEnv")}`);const s=document.getElementById(_g).contentWindow;s.__DEV__={isEnable:!0,server:e,nodeStaticBaseUrl:Pe.get("nodeStaticBaseUrl")},console.log(`✅ ${x("initJSDevEnvSuccess")}`);const l=await e9(s,JU,e),c=Object.values(l).some(u=>!u);Pe.set("isScriptsReady",Object.values(l).every(u=>u)),Ee.emit("setupStatusChange",{isScriptsReady:Pe.get("isScriptsReady"),isResourcesReady:Pe.get("isResourcesReady"),isScriptsFailed:c}),c||(console.log(`✅ ${x("setDevScriptsSuccess")}`),Hi.send({method:"startUpload"}))}}catch(e){console.log(`❌ ${x("setDevEnvFailed")}`,e?.message??e)}}async function e9(i,e,n){const r={};for(const s of e)try{console.log(`⏳ ${x("startLoadDevScripts")}: ${s}`);const l=await fetch(`${n}/game/scripts/${s}`);if(!l.ok){console.error(`${x("loadDevScriptsFailed")}: ${s}`),r[s]=!1;continue}const c=await l.text();if(!c){console.error(`${x("loadDevScriptsEmpty")}: ${s}`),r[s]=!1;continue}console.log(`✅ ${x("loadDevScriptsSuccess")}: ${s}`);const u=i.document.createElement("script");u.id=s,u.type="text/javascript",u.text=c,i.document.body.appendChild(u),r[s]=!0,console.log(`✅ ${x("loadDevScriptsInitSuccess")}: ${s}`)}catch(l){console.error(`${x("loadDevScriptsFailed")}: ${s}`,l),r[s]=!1}return r}function t9(){const i=()=>typeof document<"u"?document.hidden:!1,[e,n]=E.useState(i);return E.useEffect(()=>{const r=()=>{n(document.hidden),Ps.send({method:"sendPageVisibility",payload:{isHidden:document.hidden}})};return document.addEventListener("visibilitychange",r),()=>{document.removeEventListener("visibilitychange",r)}},[]),e}function n9(){const[i,e]=E.useState([]),n=E.useRef([]),r=E.useRef([]),s=E.useRef([]),l=E.useRef([]),c=E.useRef([]),u=E.useCallback(()=>{const T=[...c.current,...n.current,...r.current,...s.current,...l.current],b=new Map;T.forEach(w=>{const D=w?.text?.trim();if(!D)return;const O=b.get(D);if(!O){b.set(D,{title:w.title,text:D,required:w.required,detail:w.detail});return}!O.required&&w.required&&b.set(D,{title:O.title??w.title,text:D,required:!0,detail:O.detail??w.detail})}),e(Array.from(b.values()))},[]),p=E.useCallback(T=>{const b=[],w=!T?.terms_of_service_link?.trim(),D=!T?.privacy_policy_link?.trim();return w&&D?(b.push({text:x("policyDependencyTermsPrivacyRequired"),required:!0}),b):(w&&b.push({text:x("policyDependencyTermsRequired"),required:!0}),D&&b.push({text:x("policyDependencyPrivacyRequired"),required:!0}),b)},[]),f=E.useCallback(T=>{const b=[],w=!T?.name?.trim(),D=!T?.display_icon_url?.trim()&&!T?.icon_url?.trim(),O=!T?.description?.trim();return w&&b.push(x("topBasicInfoNameField")),D&&b.push(x("topBasicInfoIconField")),O&&b.push(x("topBasicInfoDescriptionField")),b.length===0?[]:[{text:x("topBasicInfoMissing",{fields:b.join(x("topBasicInfoFieldJoiner"))}),required:!1}]},[]),y=E.useCallback(T=>xg(T)?[]:[{text:x("topLoginStatusWarning"),required:!1}],[]),v=E.useCallback(T=>{r.current=p(T),s.current=f(T),u()},[f,p,u]),S=E.useCallback(({currentUser:T,checkResult:b=[]})=>{l.current=y(T),n.current=b.filter(w=>w?.passed===!1).map(w=>({text:w.msg,required:w.required===!0,detail:w.detail})),u()},[y,u]),P=E.useCallback(T=>{c.current=T,u()},[u]);return{topErrorItems:i,updateGameDetailTopErrors:v,updateConfigTopErrors:S,updateGameDetailAccessErrors:P}}const qw="https://developers.tiktok.com/",r9="https://bytedance.larkoffice.com/wiki/PeIawT4M4ia9R8kYyLMcjwHknOg";function i9(i){const e=Dg({errorCode:i.errorCode,user:i.user});if(e==="noPermission")return{link:qw,text:x("topErrorCtaApplyPermission")};if(e==="networkProxy")return{link:r9,text:x("projectInfo.error.openProxyDoc")};if(e==="notFound"||e==="unknown")return{link:qw,text:x("topErrorCtaOpenPortal")}}function o9(i){const e=Dg({errorCode:i.errorCode,user:i.user});if(e==="networkProxy")return x("topErrorTitleNetworkProxy");if(e==="noPermission")return x("topErrorTitlePermission");if(e==="notLoggedIn"||e==="loginExpired")return x("topErrorTitleLogin");if(e==="notFound")return x("topErrorTitleProjectNotFound")}function s9({onSuccess:i,updateGameDetailAccessErrors:e}){const{state:{user:n},hideLoading:r,setError:s,setGameDetail:l}=dn(),c=E.useRef(!1),u=E.useRef(!1),p=E.useCallback(f=>{if(c.current){u.current=!0;return}c.current=!0,Ki({url:"/game/detail",method:"GET"}).then(y=>{if(y.error){r();const{errorCode:v,errorMsg:S}=y.error,P=rW({errorCode:v,errorMsg:S,clientKey:y.error.clientKey,user:f??n});l({client_key:y.error.clientKey,has_error:!0,error_msg:S,error_code:v}),s({text:""}),e(P?[{title:o9({errorCode:v,user:f??n}),text:P,required:!0,detail:i9({errorCode:v,user:f??n})}]:[]);return}s({text:""}),e([]),l(y.data),i(y.data),r()}).finally(()=>{c.current=!1,u.current&&(u.current=!1,p(f))})},[r,i,s,l,e,n]);return{fetchGameDetail:p}}function a9({fetchGameDetail:i,updateConfigTopErrors:e}){const{showLoading:n,hideLoading:r,setError:s,setSchema:l,setUser:c,setPackages:u,setDevToolVersion:p,setEngine:f,setDebugMode:y,setMessage:v}=dn(),[S,P]=E.useState(""),T=E.useRef(!1);return E.useEffect(()=>{T.current||(T.current=!0,n(),Ki({url:"/game/config",method:"GET"}).then(b=>{if(b.error){r(),s({visible:!0,text:x("getDevGameConfigFailed")+`: ${b.error.errorMsg}`}),P(x("getDevGameConfigFailed")),console.log(`❌ ${x("getDevGameConfigFailed")}: ${b.error.errorMsg}`);return}const{schema:w,nodeWsPort:D,user:O,packages:N,devToolVersion:M,clientKey:F,engine:j,nodeStaticBaseUrl:L,checkResult:z,lang:U}=b.data;if(PG(U),XG(),console.log(`✅ ${x("getDevGameConfigSuccess")}`),U||Ki({url:"/game/config-fillback",method:"POST",data:{lang:navigator.language}}),l(w),Pe.setMultiple({nodeWsPort:D,email:O?.email,clientKey:F,nodeStaticBaseUrl:L}),c(O),p(M),u(N),f(j),Pl()&&v({type:"success",desc:x("nodeServerConnectedSuccess")}),!$0()){const H=j==="unity"?qn.clientPreview:qn.browserDebug;y(H),F0(H)}i(O),e({currentUser:O,checkResult:z}),r()}))},[i,r,p,f,y,s,u,l,c,v,n,e]),{isServerError:!!S,serverErrorMsg:S}}function l9({onResourceChange:i}){E.useEffect(()=>{const e=()=>{i()};return Ee.on("resourceChange",e),()=>{Ee.off("resourceChange",e)}},[i])}function c9(){const[i,e]=E.useState(()=>aW());E.useEffect(()=>{const s=l=>{if(l.key!=="tt-theme")return;const c=l.newValue;(c==="light"||c==="dark")&&(Ow(c),e(c))};return window.addEventListener("storage",s),()=>window.removeEventListener("storage",s)},[]);const n=E.useCallback(s=>{Ow(s),e(s)},[]),r=E.useCallback(()=>{n(i==="dark"?"light":"dark")},[i,n]);return{theme:i,setTheme:n,toggle:r}}const u9="modulepreload",d9=function(i){return"/"+i},Bw={},lt=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){let p=function(f){return Promise.all(f.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");s=p(n.map(f=>{if(f=d9(f),f in Bw)return;Bw[f]=!0;const y=f.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${v}`))return;const S=document.createElement("link");if(S.rel=y?"stylesheet":u9,y||(S.as="script"),S.crossOrigin="",S.href=f,u&&S.setAttribute("nonce",u),document.head.appendChild(S),y)return new Promise((P,T)=>{S.addEventListener("load",P),S.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${f}`)))})}))}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)})},a_=()=>{const{state:{loading:i}}=dn();return i.visible?k.jsx("div",{className:"loading-container",children:k.jsxs("div",{className:"loading-content",children:[k.jsx(Ar,{size:"large"}),k.jsx("div",{className:"loading-text",children:i.text})]})}):null},p9=({size:i=24,color:e="#000",style:n,className:r})=>k.jsx("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:k.jsxs("svg",{fill:"currentColor",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",width:i,height:i,children:[k.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"}),k.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"})]})}),f9=()=>k.jsxs("div",{className:"logo-container",children:[k.jsx(p9,{size:24}),k.jsx("div",{className:"logo-title",children:x("title")})]});function Gw(i){return x(i==="ok"?"connectStatusConnected":i==="fail"?"connectStatusFailed":"connectStatusDisconnected")}function ts(i){return i==="ok"?"var(--tt-success-text)":i==="fail"?"var(--tt-error-text)":"var(--tt-text-faint)"}function h9(){return Pl()?["subpackage.collecting","subpackage.ready","subpackage.success"].includes(Pg()):!1}const g9=()=>{const{state:{schema:i,isConnected:e},setIsConnected:n,setMessage:r}=dn(),s=e||h9(),[l,c]=E.useState("off"),[u,p]=E.useState("off"),[f,y]=E.useState("off"),v={node:{bg:"var(--tt-info-bg)",stroke:"var(--tt-info-border)",text:"var(--tt-info-text)"},browser:{bg:"var(--tt-success-bg)",stroke:"var(--tt-success-border)",text:"var(--tt-success-text)"},client:{bg:"var(--tt-accent-soft)",stroke:"var(--tt-accent-strong)",text:"var(--tt-accent-text)"}},S=E.useMemo(()=>{const{nodeWsPort:N,clientHost:M,clientHttpPort:F,clientWsPort:j}=Pe.getMultiple(["nodeWsPort","clientHost","clientHttpPort","clientWsPort"]);let L="",z="";try{if(i){const U=new URL(i);L=(U.searchParams.get("host")||"").trim(),z=(U.searchParams.get("port")||"").trim()}}catch{}return{nodeWsPort:N,clientHost:M,clientHttpPort:F,clientWsPort:j,schemaHost:L,schemaPort:z}},[l,u,f,i]),P=N=>{const{client:M,node:F,reason:j}=N||{};$n.info("connectionChange",M,F),Pe.get("isNodeWSConnected")===F&&(M||r({type:"danger",desc:x("clientServerStartError")})),Pe.get("isClientWSConnected")===M&&(F||r({type:"danger",desc:x("nodeServerStartError")})),Pe.get("isClientWSConnected")&&!M&&(Pe.setMultiple({isClientWSConnected:!1,isResourcesReady:!1,isScriptsReady:!1}),r({type:"danger",desc:x("clientDisconnected")})),Pe.get("isNodeWSConnected")&&!F&&(Pe.setMultiple({isNodeWSConnected:!1,isResourcesReady:!1,isScriptsReady:!1}),r({type:"danger",title:x("serverDisconnected"),desc:x("nodeDisconnected")})),!Pe.get("isClientWSConnected")&&M&&(Pe.set("isClientWSConnected",!0),r({type:"success",desc:x("clientConnectedSuccess")})),!Pe.get("isNodeWSConnected")&&F&&(Pe.set("isNodeWSConnected",!0),r({type:"success",desc:x("nodeServerConnectedSuccess")})),typeof F=="boolean"&&(c(F?"ok":j==="error"||j==="timeout"?"fail":"off"),F||y("off")),typeof M=="boolean"&&p(M?"ok":j==="error"||j==="timeout"?"fail":"off"),n(!!M&&!!F)},T=N=>{if(N?.status==="success"){y("ok");return}if(N?.status==="failed"){y("fail");return}N?.status==="start"&&y("off")};E.useEffect(()=>(Ee.on("connectionChange",P),Ee.on("scanQRCode",T),()=>{Ee.off("connectionChange",P),Ee.off("scanQRCode",T)}),[n]);const b=k.jsxs("div",{children:[k.jsxs("div",{children:[x("connectStatusNode"),": ",Gw(l)]}),k.jsxs("div",{children:[x("connectStatusDebugPage"),": ",window.location.origin]}),S.nodeWsPort?k.jsxs("div",{children:["WS: ws://localhost:",S.nodeWsPort]}):null,k.jsxs("div",{children:["HTTP: ",window.location.origin]}),S.schemaHost&&S.schemaPort?k.jsxs("div",{children:[x("scanQRCode"),":ws://",S.schemaHost,":",S.schemaPort]}):null]}),w=k.jsx("div",{children:k.jsxs("div",{children:[x("connectStatusBrowser"),": ",x("connectStatusConnected")]})}),D=k.jsxs("div",{children:[k.jsxs("div",{children:[x("connectStatusClient"),": ",Gw(u)]}),S.clientHost?k.jsxs("div",{children:[S.clientHost,S.clientHttpPort?` http:${S.clientHttpPort}`:"",S.clientWsPort?` ws:${S.clientWsPort}`:""]}):null]}),O=k.jsxs("div",{className:"conn-graph-wrap",children:[k.jsx("div",{className:"conn-graph",children:k.jsx("svg",{className:"conn-graph-svg",width:"340",height:"220",viewBox:"0 0 360 240",children:(()=>{const N={x:180,y:44},M={x:70,y:206},F={x:290,y:206},j=14,L=26,z=4,U=5,H=8,K={x:(N.x+M.x+F.x)/3,y:(N.y+M.y+F.y)/3},ie=(Y,I)=>({x:I.x-Y.x,y:I.y-Y.y}),ee=Y=>Math.hypot(Y.x,Y.y)||1,ae=Y=>{const I=ee(Y);return{x:Y.x/I,y:Y.y/I}},ne=Y=>({x:-Y.y,y:Y.x}),ce=(Y,I,W=1)=>({x:Y.x+I.x*W,y:Y.y+I.y*W}),de=(Y,I,W)=>{const se=ie(Y,I),re=ae(se),oe=ae(ne(se)),_e=W.offset||0,ye=ce(ce(Y,re,L),oe,_e),ve=ce(ce(I,re,-L),oe,_e),Ce=typeof W.t=="number"?Math.min(.9,Math.max(.1,W.t)):.5,be={x:ye.x+(ve.x-ye.x)*Ce,y:ye.y+(ve.y-ye.y)*Ce},gt=ce(Y,re,L),kt=ce(I,re,-L),ar={x:gt.x+(kt.x-gt.x)*Ce,y:gt.y+(kt.y-gt.y)*Ce},En=W.markMode||"byLineOffset",xn=ie(ar,K),Jt=xn.x*oe.x+xn.y*oe.y>0?{x:-oe.x,y:-oe.y}:oe,xe=W.labelSide==="inner"?-1:1,qt=_e>=0?1:-1,Pt=En==="byTriangleSide"?xe:qt,$e={w:360,h:240,pad:10};let Ie=ce(be,Jt,H*Pt);(Ie.y>$e.h-$e.pad||Ie.y<$e.pad||Ie.x>$e.w-$e.pad||Ie.x<$e.pad)&&(Ie=ce(be,Jt,-H*Pt));const rt=Ie.x<$e.w-60,ze={x:rt?Ie.x+U+z:Ie.x-U-z,y:Ie.y},Tt=rt?"start":"end",It=W.label.length*6+8,Dn=Tt==="start"?ze.x:ze.x-It,en=Tt==="start"?ze.x+It:ze.x;let Ze=Tt,Et=ze.x;return Dn<$e.pad&&en>$e.w-$e.pad?(Ze="start",Et=$e.pad):Dn<$e.pad?(Ze="start",Et=Ie.x+U+z):en>$e.w-$e.pad&&(Ze="end",Et=Ie.x-U-z),k.jsxs("g",{children:[k.jsx("line",{x1:ye.x,y1:ye.y,x2:ve.x,y2:ve.y,stroke:"var(--tt-border-strong)",strokeWidth:"2",strokeDasharray:W.dashed?"4 3":void 0}),k.jsx("circle",{cx:Ie.x,cy:Ie.y,r:U,fill:W.statusColor}),k.jsx("text",{x:Et,y:ze.y,fontSize:"10",fill:"var(--tt-text-dim)",dominantBaseline:"middle",textAnchor:Ze,paintOrder:"stroke",stroke:"var(--tt-bg-panel)",strokeWidth:"3",children:W.label})]})},V=(Y,I,W,se)=>k.jsx(rr,{content:W,children:k.jsxs("g",{className:"conn-vertex",children:[k.jsx("rect",{x:Y.x-28,y:Y.y-14,width:56,height:22,rx:8,fill:se.bg,stroke:se.stroke}),k.jsx("text",{x:Y.x,y:Y.y-1,textAnchor:"middle",dominantBaseline:"middle",fontSize:"12",fill:se.text,children:I})]})});return k.jsxs(k.Fragment,{children:[de(M,N,{label:"ws",statusColor:ts(l),offset:-j/2,labelSide:"outer",markMode:"byLineOffset",t:.42}),de(M,N,{label:"http",statusColor:ts(l),offset:j/2,labelSide:"inner",markMode:"byLineOffset",t:.58}),de(N,F,{label:"ws",statusColor:ts(f),dashed:!0,offset:0,labelSide:"outer",markMode:"byTriangleSide",t:.55}),de(M,F,{label:"ws",statusColor:ts(u),offset:-j/2,labelSide:"outer",markMode:"byLineOffset",t:.55}),de(M,F,{label:"http",statusColor:ts(u),offset:j/2,labelSide:"inner",markMode:"byLineOffset",t:.45}),V(N,x("connectStatusNode"),b,v.node),V(M,x("connectStatusBrowser"),w,v.browser),V(F,x("connectStatusClient"),D,v.client)]})})()})}),k.jsxs("div",{className:"conn-legend",children:[k.jsx("div",{className:"conn-legend-title",children:x("connectStatusLegendTitle")}),k.jsxs("div",{className:"conn-legend-item",children:[k.jsx("div",{className:"conn-legend-name",children:k.jsx($t,{className:"conn-legend-tag-node",type:"ghost",size:"small",style:{marginRight:6},children:x("connectStatusNode")})}),k.jsx("div",{className:"conn-legend-desc",children:x("connectStatusLegendNode")})]}),k.jsxs("div",{className:"conn-legend-item",children:[k.jsx("div",{className:"conn-legend-name",children:k.jsx($t,{color:"green",type:"ghost",size:"small",style:{marginRight:6},children:x("connectStatusBrowser")})}),k.jsx("div",{className:"conn-legend-desc",children:x("connectStatusLegendBrowser")})]}),k.jsxs("div",{className:"conn-legend-item",children:[k.jsx("div",{className:"conn-legend-name",children:k.jsx($t,{className:"conn-legend-tag-client",type:"ghost",size:"small",style:{marginRight:6},children:x("connectStatusClient")})}),k.jsx("div",{className:"conn-legend-desc",children:x("connectStatusLegendClient")})]}),k.jsxs("div",{className:"conn-legend-item",children:[k.jsxs("div",{className:"conn-legend-name",children:[k.jsx($t,{color:"grey",type:"ghost",size:"small",style:{marginRight:6},children:"WS"}),k.jsx($t,{color:"grey",type:"ghost",size:"small",children:"HTTP"})]}),k.jsx("div",{className:"conn-legend-desc",children:x("connectStatusLegendProto")})]})]})]});return k.jsx(zn,{content:O,trigger:"hover",showArrow:!1,children:k.jsxs("div",{className:"connect-status tt-header-chip"+(s?" connect-status-on":" connect-status-off"),role:"status","aria-label":x(s?"deviceConnected":"deviceDisconnected"),children:[k.jsx("span",{className:"connect-status-dot","aria-hidden":"true"}),k.jsx("span",{className:"connect-status-text",children:x(s?"deviceConnected":"deviceDisconnected")})]})})},m9=({version:i})=>{const e=_s(),{state:{devToolVersion:n}}=dn(),[r,s]=E.useState(!1);if(E.useEffect(()=>{s(YG(n))},[n]),!i)return null;const l=()=>{n&&(QG(n),s(!1)),e("/changelog")};return k.jsxs("button",{type:"button",onClick:l,className:"version-tag tt-header-chip"+(r?" version-tag-has-new":""),"aria-label":r?`${x("changelog")||"Changelog"} · ${x("changelogNewTag")||"NEW"}`:x("changelog")||"Changelog",title:r?x("changelogNewTag")||"NEW":void 0,children:[k.jsx("span",{className:"version-tag-text",children:i}),r&&k.jsx("span",{className:"version-tag-new",children:x("changelogNewTag")||"NEW"})]})};const l_=(...i)=>i.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();const y9=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const v9=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase());const Ww=i=>{const e=v9(i);return e.charAt(0).toUpperCase()+e.slice(1)};var ph={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const b9=i=>{for(const e in i)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1},S9=E.createContext({}),w9=()=>E.useContext(S9),C9=E.forwardRef(({color:i,size:e,strokeWidth:n,absoluteStrokeWidth:r,className:s="",children:l,iconNode:c,...u},p)=>{const{size:f=24,strokeWidth:y=2,absoluteStrokeWidth:v=!1,color:S="currentColor",className:P=""}=w9()??{},T=r??v?Number(n??y)*24/Number(e??f):n??y;return E.createElement("svg",{ref:p,...ph,width:e??f??ph.width,height:e??f??ph.height,stroke:i??S,strokeWidth:T,className:l_("lucide",P,s),...!l&&!b9(u)&&{"aria-hidden":"true"},...u},[...c.map(([b,w])=>E.createElement(b,w)),...Array.isArray(l)?l:[l]])});const Dl=(i,e)=>{const n=E.forwardRef(({className:r,...s},l)=>E.createElement(C9,{ref:l,iconNode:e,className:l_(`lucide-${y9(Ww(i))}`,`lucide-${i}`,r),...s}));return n.displayName=Ww(i),n};const _9=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],k9=Dl("arrow-left",_9);const P9=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],T9=Dl("external-link",P9);const E9=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],x9=Dl("moon",E9);const D9=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],O9=Dl("sun",D9),I9=()=>{const{theme:i,toggle:e}=c9(),n=i==="dark",r=n?O9:x9,s=x(n?"themeToggleToLight":"themeToggleToDark");return k.jsx("button",{type:"button",onClick:e,className:"theme-toggle tt-header-chip","aria-label":s,title:s,children:k.jsx(r,{className:"theme-toggle-icon",size:14,strokeWidth:2})})},R9=E.lazy(()=>lt(()=>import("./index-BR6l0C9y.js"),__vite__mapDeps([0,1,2,3])).then(i=>({default:i.AccessDocs}))),N9=E.lazy(()=>lt(()=>import("./index-COLHKvH0.js"),__vite__mapDeps([4,1,2,5])).then(i=>({default:i.LangSwitcher})));E.lazy(()=>lt(()=>import("./index-D0iKOimx.js"),__vite__mapDeps([6,7,8,9,10,11,12,13])).then(i=>({default:i.GameUploader})));const j9=E.lazy(()=>lt(()=>import("./index-BeG7a_8l.js"),__vite__mapDeps([14,15])).then(i=>({default:i.LoginStatus}))),L9=E.lazy(()=>lt(()=>import("./index-DF6WNroB.js"),__vite__mapDeps([16,17])).then(i=>({default:i.WasmCodeSplit}))),A9=()=>{const{state:{devToolVersion:i,engine:e}}=dn();return k.jsxs("div",{className:"header-wrapper",children:[k.jsxs("div",{className:"header-content",children:[k.jsxs("div",{className:"header-content-left",children:[k.jsx(f9,{}),k.jsx(m9,{version:i}),k.jsx(g9,{})]}),k.jsx("div",{className:"header-content-right",children:k.jsxs(Ss,{spacing:12,children:[k.jsx(E.Suspense,{fallback:null,children:k.jsx(R9,{})}),e==="unity"&&k.jsx(E.Suspense,{fallback:null,children:k.jsx(L9,{})}),k.jsx(E.Suspense,{fallback:null,children:k.jsx(N9,{})}),k.jsx(I9,{}),k.jsx(E.Suspense,{fallback:null,children:k.jsx(j9,{})})]})})]}),k.jsx(x2,{})]})},M9=({enabled:i=!0})=>(E.useEffect(()=>{if(!i){Hi.close();return}return Hi.init(),()=>{Hi.close()}},[i]),null),$9=E.lazy(()=>lt(()=>import("./index-CTkNRReQ.js"),__vite__mapDeps([18,19,20,21])).then(i=>({default:i.Sidebar}))),F9=()=>k.jsx("div",{className:"sidebar-container",children:k.jsx(E.Suspense,{fallback:k.jsx("div",{className:"sidebar-loading-placeholder"}),children:k.jsx($9,{})})}),z9=({title:i,subtitle:e,action:n,decoration:r=!0,className:s})=>k.jsxs("header",{className:Q("tt-page-hero",r&&"tt-page-hero-decorated",s),children:[k.jsxs("div",{className:"tt-page-hero-text",children:[k.jsx("h1",{className:"tt-page-hero-title",children:i}),e&&k.jsx("p",{className:"tt-page-hero-subtitle",children:e})]}),n&&k.jsx("div",{className:"tt-page-hero-action",children:n})]}),c_=({href:i,iconSize:e=13,className:n="",children:r,target:s="_blank",rel:l="noopener noreferrer",...c})=>k.jsxs("a",{...c,className:`tt-document-link ${n}`.trim(),href:i,target:s,rel:l,children:[k.jsx("span",{className:"tt-document-link-label",children:r}),k.jsx(T9,{className:"tt-document-link-icon",size:e,strokeWidth:2,"aria-hidden":"true"})]}),q9=({items:i,fallbackErrorText:e})=>{const[n,r]=E.useState(!1),s=E.useMemo(()=>{const f=e?.trim();return f?[{text:f,required:!0},...i.filter(y=>y.text.trim()!==f)]:i},[e,i]);if(E.useEffect(()=>{r(!1)},[s]),s.length===0)return null;const l=f=>f.detail?.link?k.jsx(c_,{className:"app-error-cta",href:f.detail.link,children:f.detail.text||x("viewDoc")}):null,c=(f,y)=>{const v=f.required?Qh:Yh,S=f.required?"required":"suggested",P=f.title||(f.required?x("topErrorTitleRequired"):x("topErrorTitleSuggested"));return k.jsxs("div",{className:`app-error-row app-error-row-${S}`,role:f.required?"alert":"status",children:[k.jsx("span",{className:"app-error-row-accent","aria-hidden":"true"}),k.jsx("span",{className:"app-error-row-icon",children:k.jsx(v,{})}),k.jsxs("div",{className:"app-error-row-body",children:[k.jsx("div",{className:"app-error-row-title",children:P}),k.jsx("div",{className:"app-error-row-text",children:f.text})]}),l(f)]},`${f.text}-${S}-${y}`)};if(s.length===1)return k.jsx("div",{className:"app-error-banner",children:c(s[0],0)});const u=s.find(f=>f.required)??s[0],p=s.filter(f=>f!==u);return k.jsxs("div",{className:"app-error-banner app-error-banner-multi",children:[k.jsxs("div",{className:"app-error-multi-head",children:[c(u,0),k.jsx("button",{type:"button",className:"app-error-multi-toggle",onClick:()=>r(f=>!f),children:n?x("topErrorHideDetails"):x("topErrorMoreItems",{count:String(p.length)})})]}),n&&k.jsx("div",{className:"app-error-multi-body",children:p.map((f,y)=>c(f,y+1))})]})},B9=i=>Number.isFinite(i)?Math.max(0,Math.min(1,i??0)):0,G9=_.memo(()=>{const{setMessage:i,hideLoading:e,state:{gameDetail:n,debugSetting:r,isConnected:s,selectedLaunchOption:l,debugMode:c}}=dn();t9();const[u,p]=E.useState(""),f=T=>{if(!T.client||!T.node){Pe.set("hasSetup",!1);return}if(Pe.get("hasSetup"))return;Pe.set("hasSetup",!0),(async()=>(e(),i({type:"success",desc:x("setupDevEnv")}),await zw({debugSetting:r,debugMode:c})))()},y=E.useCallback(({status:T,msg:b,progress:w})=>{switch(T){case"start":const D=x("uploadProcess");i({type:"info",title:D,desc:x("uploadProcessDesc"),progress:0,intent:"uploading"}),console.log(D);break;case"success":i({type:"success",desc:x("uploadSuccess")}),console.log(`✅ ${x("uploadSuccess")}`);break;case"error":const O=`${x("uploadError")}: ${b}`;i({type:"danger",desc:O}),console.log(O);break;case"restart":break;case"process":const N=B9(w);`${x("uploadProcess")}${(N*100).toFixed(0)}`,i({type:"info",title:x("uploadProcess"),desc:x("uploadProcessDesc"),progress:N,intent:"uploading"});break}},[]),v=E.useCallback(({isScriptsReady:T,isResourcesReady:b,isScriptsFailed:w,isResourcesFailed:D})=>{T&&b?($n.info("scripts and resources are ready, send meta"),GG(n),i({type:"success",desc:x(c==="clientPreview"?"clientPreviewEnvSetupSuccess":"debugEnvSetupSuccess")})):w?i({type:"danger",desc:x("scriptsSetupFailed")}):D&&i({type:"danger",desc:x("resourcesSetupFailed")})},[n,l,c]),S=()=>{if(!s)return;const T=tr.warning({position:"top",duration:1e4,title:x("gameResourceUpdated"),id:u,onClose:()=>{p("")},content:k.jsxs(k.Fragment,{children:[k.jsx("p",{children:x("gameResourceChange")}),k.jsxs("div",{className:"banner-footer",children:[k.jsx(tt,{type:"tertiary",onClick:()=>{tr.close(T)},children:x("notUpload")}),k.jsx(tt,{style:{marginLeft:12},type:"warning",onClick:()=>{$n.info("upload"),$n.info("upload iframe onload, 开始重新初始化"),zw({debugSetting:r,debugMode:c}),tr.close(T)},children:x("uploadToClient")})]})]})});p(T)},P=E.useCallback(({status:T,errorMsg:b})=>{T==="start"?(i({type:"info",title:x("gameResourceCompilingTitle"),desc:x("gameResourceCompiling")}),console.warn(`⚠️ ${x("gameResourceCompiling")}`)):T==="end"&&(b?(i({type:"danger",desc:b}),console.error(`❌ ${b}`)):(i({type:"success",title:x("gameResourceCompileSuccessTitle"),desc:x("gameResourceCompileSuccess")}),console.log(`✅ ${x("gameResourceCompileSuccess")}`)))},[]);return E.useEffect(()=>(Ee.on("connectionChange",f),Ee.on("compilationStatus",P),Ee.on("resourceChange",S),Ee.on("uploadGame",y),Ee.on("setupStatusChange",v),()=>{Ee.off("compilationStatus",P),Ee.off("resourceChange",S),Ee.off("setupStatusChange",v),Ee.off("uploadGame",y),Ee.off("connectionChange",f)}),[f,P,S,v,y]),null});var Gi={},fh,Uw;function u_(){return Uw||(Uw=1,fh={L:1,M:0,Q:3,H:2}),fh}var hh,Hw;function d_(){return Hw||(Hw=1,hh={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),hh}var gh,Vw;function W9(){if(Vw)return gh;Vw=1;var i=d_();function e(n){this.mode=i.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)}},gh=e,gh}var mh,Kw;function U9(){if(Kw)return mh;Kw=1;var i=u_();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],f=s[u*3+1],y=s[u*3+2],v=0;v<p;v++)c.push(new e(f,y));return c},e.getRsBlockTable=function(n,r){switch(r){case i.L:return e.RS_BLOCK_TABLE[(n-1)*4+0];case i.M:return e.RS_BLOCK_TABLE[(n-1)*4+1];case i.Q:return e.RS_BLOCK_TABLE[(n-1)*4+2];case i.H:return e.RS_BLOCK_TABLE[(n-1)*4+3];default:return}},mh=e,mh}var yh,Qw;function H9(){if(Qw)return yh;Qw=1;function i(){this.buffer=new Array,this.length=0}return i.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=i,yh}var vh,Yw;function p_(){if(Yw)return vh;Yw=1;for(var i={glog:function(n){if(n<1)throw new Error("glog("+n+")");return i.LOG_TABLE[n]},gexp:function(n){for(;n<0;)n+=255;for(;n>=256;)n-=255;return i.EXP_TABLE[n]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},e=0;e<8;e++)i.EXP_TABLE[e]=1<<e;for(var e=8;e<256;e++)i.EXP_TABLE[e]=i.EXP_TABLE[e-4]^i.EXP_TABLE[e-5]^i.EXP_TABLE[e-6]^i.EXP_TABLE[e-8];for(var e=0;e<255;e++)i.LOG_TABLE[i.EXP_TABLE[e]]=e;return vh=i,vh}var bh,Xw;function f_(){if(Xw)return bh;Xw=1;var i=p_();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]^=i.gexp(i.glog(this.get(s))+i.glog(n.get(l)));return new e(r,0)},mod:function(n){if(this.getLength()-n.getLength()<0)return this;for(var r=i.glog(this.get(0))-i.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]^=i.gexp(i.glog(n.get(l))+r);return new e(s,0).mod(n)}},bh=e,bh}var Sh,Zw;function V9(){if(Zw)return Sh;Zw=1;var i=d_(),e=f_(),n=p_(),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 i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:return 8;case i.MODE_KANJI:return 8;default:throw new Error("mode:"+l)}else if(c<27)switch(l){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw new Error("mode:"+l)}else if(c<41)switch(l){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.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 f=0;f<c;f++){for(var y=0,v=l.isDark(p,f),S=-1;S<=1;S++)if(!(p+S<0||c<=p+S))for(var P=-1;P<=1;P++)f+P<0||c<=f+P||S==0&&P==0||v==l.isDark(p+S,f+P)&&y++;y>5&&(u+=3+y-5)}for(var p=0;p<c-1;p++)for(var f=0;f<c-1;f++){var T=0;l.isDark(p,f)&&T++,l.isDark(p+1,f)&&T++,l.isDark(p,f+1)&&T++,l.isDark(p+1,f+1)&&T++,(T==0||T==4)&&(u+=3)}for(var p=0;p<c;p++)for(var f=0;f<c-6;f++)l.isDark(p,f)&&!l.isDark(p,f+1)&&l.isDark(p,f+2)&&l.isDark(p,f+3)&&l.isDark(p,f+4)&&!l.isDark(p,f+5)&&l.isDark(p,f+6)&&(u+=40);for(var f=0;f<c;f++)for(var p=0;p<c-6;p++)l.isDark(p,f)&&!l.isDark(p+1,f)&&l.isDark(p+2,f)&&l.isDark(p+3,f)&&l.isDark(p+4,f)&&!l.isDark(p+5,f)&&l.isDark(p+6,f)&&(u+=40);for(var b=0,f=0;f<c;f++)for(var p=0;p<c;p++)l.isDark(p,f)&&b++;var w=Math.abs(100*b/c/c-50)/5;return u+=w*10,u}};return Sh=s,Sh}var wh,Jw;function K9(){if(Jw)return wh;Jw=1;var i=W9(),e=U9(),n=H9(),r=V9(),s=f_();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 i(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),f=new n,y=0,v=0;v<p.length;v++)y+=p[v].dataCount;for(var v=0;v<this.dataList.length;v++){var S=this.dataList[v];f.put(S.mode,4),f.put(S.getLength(),r.getLengthInBits(S.mode,u)),S.write(f)}if(f.getLengthInBits()<=y*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 f=0;f<this.moduleCount;f++){this.modules[f]=new Array(this.moduleCount);for(var y=0;y<this.moduleCount;y++)this.modules[f][y]=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 f=-1;f<=7;f++)if(!(u+f<=-1||this.moduleCount<=u+f))for(var y=-1;y<=7;y++)p+y<=-1||this.moduleCount<=p+y||(0<=f&&f<=6&&(y==0||y==6)||0<=y&&y<=6&&(f==0||f==6)||2<=f&&f<=4&&2<=y&&y<=4?this.modules[u+f][p+y]=!0:this.modules[u+f][p+y]=!1)},c.getBestMaskPattern=function(){for(var u=0,p=0,f=0;f<8;f++){this.makeImpl(!0,f);var y=r.getLostPoint(this);(f==0||u>y)&&(u=y,p=f)}return p},c.createMovieClip=function(u,p,f){var y=u.createEmptyMovieClip(p,f),v=1;this.make();for(var S=0;S<this.modules.length;S++)for(var P=S*v,T=0;T<this.modules[S].length;T++){var b=T*v,w=this.modules[S][T];w&&(y.beginFill(0,100),y.moveTo(b,P),y.lineTo(b+v,P),y.lineTo(b+v,P+v),y.lineTo(b,P+v),y.endFill())}return y},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 f=0;f<u.length;f++){var y=u[p],v=u[f];if(this.modules[y][v]==null)for(var S=-2;S<=2;S++)for(var P=-2;P<=2;P++)S==-2||S==2||P==-2||P==2||S==0&&P==0?this.modules[y+S][v+P]=!0:this.modules[y+S][v+P]=!1}},c.setupTypeNumber=function(u){for(var p=r.getBCHTypeNumber(this.typeNumber),f=0;f<18;f++){var y=!u&&(p>>f&1)==1;this.modules[Math.floor(f/3)][f%3+this.moduleCount-8-3]=y}for(var f=0;f<18;f++){var y=!u&&(p>>f&1)==1;this.modules[f%3+this.moduleCount-8-3][Math.floor(f/3)]=y}},c.setupTypeInfo=function(u,p){for(var f=this.errorCorrectLevel<<3|p,y=r.getBCHTypeInfo(f),v=0;v<15;v++){var S=!u&&(y>>v&1)==1;v<6?this.modules[v][8]=S:v<8?this.modules[v+1][8]=S:this.modules[this.moduleCount-15+v][8]=S}for(var v=0;v<15;v++){var S=!u&&(y>>v&1)==1;v<8?this.modules[8][this.moduleCount-v-1]=S:v<9?this.modules[8][15-v-1+1]=S:this.modules[8][15-v-1]=S}this.modules[this.moduleCount-8][8]=!u},c.mapData=function(u,p){for(var f=-1,y=this.moduleCount-1,v=7,S=0,P=this.moduleCount-1;P>0;P-=2)for(P==6&&P--;;){for(var T=0;T<2;T++)if(this.modules[y][P-T]==null){var b=!1;S<u.length&&(b=(u[S]>>>v&1)==1);var w=r.getMask(p,y,P-T);w&&(b=!b),this.modules[y][P-T]=b,v--,v==-1&&(S++,v=7)}if(y+=f,y<0||this.moduleCount<=y){y-=f,f=-f;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(u,p,f){for(var y=e.getRSBlocks(u,p),v=new n,S=0;S<f.length;S++){var P=f[S];v.put(P.mode,4),v.put(P.getLength(),r.getLengthInBits(P.mode,u)),P.write(v)}for(var T=0,S=0;S<y.length;S++)T+=y[S].dataCount;if(v.getLengthInBits()>T*8)throw new Error("code length overflow. ("+v.getLengthInBits()+">"+T*8+")");for(v.getLengthInBits()+4<=T*8&&v.put(0,4);v.getLengthInBits()%8!=0;)v.putBit(!1);for(;!(v.getLengthInBits()>=T*8||(v.put(l.PAD0,8),v.getLengthInBits()>=T*8));)v.put(l.PAD1,8);return l.createBytes(v,y)},l.createBytes=function(u,p){for(var f=0,y=0,v=0,S=new Array(p.length),P=new Array(p.length),T=0;T<p.length;T++){var b=p[T].dataCount,w=p[T].totalCount-b;y=Math.max(y,b),v=Math.max(v,w),S[T]=new Array(b);for(var D=0;D<S[T].length;D++)S[T][D]=255&u.buffer[D+f];f+=b;var O=r.getErrorCorrectPolynomial(w),N=new s(S[T],O.getLength()-1),M=N.mod(O);P[T]=new Array(O.getLength()-1);for(var D=0;D<P[T].length;D++){var F=D+M.getLength()-P[T].length;P[T][D]=F>=0?M.get(F):0}}for(var j=0,D=0;D<p.length;D++)j+=p[D].totalCount;for(var L=new Array(j),z=0,D=0;D<y;D++)for(var T=0;T<p.length;T++)D<S[T].length&&(L[z++]=S[T][D]);for(var D=0;D<v;D++)for(var T=0;T<p.length;T++)D<P[T].length&&(L[z++]=P[T][D]);return L},wh=l,wh}var za={},eC;function Q9(){if(eC)return za;eC=1,Object.defineProperty(za,"__esModule",{value:!0});var i=Object.assign||function(f){for(var y=1;y<arguments.length;y++){var v=arguments[y];for(var S in v)Object.prototype.hasOwnProperty.call(v,S)&&(f[S]=v[S])}return f},e=Ah(),n=l(e),r=fs(),s=l(r);function l(f){return f&&f.__esModule?f:{default:f}}function c(f,y){var v={};for(var S in f)y.indexOf(S)>=0||Object.prototype.hasOwnProperty.call(f,S)&&(v[S]=f[S]);return v}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(f,y){var v=f.bgColor,S=f.bgD,P=f.fgD,T=f.fgColor,b=f.size,w=f.title,D=f.viewBoxSize,O=f.xmlns,N=O===void 0?"http://www.w3.org/2000/svg":O,M=c(f,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return s.default.createElement("svg",i({},M,{height:b,ref:y,viewBox:"0 0 "+D+" "+D,width:b,xmlns:N}),w?s.default.createElement("title",null,w):null,s.default.createElement("path",{d:S,fill:v}),s.default.createElement("path",{d:P,fill:T}))});return p.displayName="QRCodeSvg",p.propTypes=u,za.default=p,za}var tC;function Y9(){if(tC)return Gi;tC=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.QRCode=void 0;var i=Object.assign||function(b){for(var w=1;w<arguments.length;w++){var D=arguments[w];for(var O in D)Object.prototype.hasOwnProperty.call(D,O)&&(b[O]=D[O])}return b},e=Ah(),n=v(e),r=u_(),s=v(r),l=K9(),c=v(l),u=fs(),p=v(u),f=Q9(),y=v(f);function v(b){return b&&b.__esModule?b:{default:b}}function S(b,w){var D={};for(var O in b)w.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(b,O)&&(D[O]=b[O]);return D}var P={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},T=(0,u.forwardRef)(function(b,w){var D=b.bgColor,O=D===void 0?"#FFFFFF":D,N=b.fgColor,M=N===void 0?"#000000":N,F=b.level,j=F===void 0?"L":F,L=b.size,z=L===void 0?256:L,U=b.value,H=S(b,["bgColor","fgColor","level","size","value"]),K=new c.default(-1,s.default[j]);K.addData(U),K.make();var ie=K.modules;return p.default.createElement(y.default,i({},H,{bgColor:O,bgD:ie.map(function(ee,ae){return ee.map(function(ne,ce){return ne?"":"M "+ce+" "+ae+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:M,fgD:ie.map(function(ee,ae){return ee.map(function(ne,ce){return ne?"M "+ce+" "+ae+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:w,size:z,viewBoxSize:ie.length}))});return Gi.QRCode=T,T.displayName="QRCode",T.propTypes=P,Gi.default=T,Gi}var X9=Y9();const nC=Ye(X9),Z9=i=>{const e=_s(),{isConnected:n}=i,{state:{devSchema:r,schema:s,launchOptions:l,selectedLaunchOption:c,debugMode:u,debugSetting:p,gameDetail:f,user:y},setShowManualBindIP:v,setSelectedLaunchOption:S,setDebugMode:P}=dn(),[T,b]=E.useState(!1),w=xg(y),D=f?.request_allowed_domains?.length??0,O=!p.enableDomainCheck,N=!O&&D===0,M=u===qn.clientPreview,F=c?.pkgType==="independent"?x("independentPackage"):x("mainPackage"),j=c?.id==="normal"?x("normalLaunchMode"):c?.name||x("normalLaunchMode"),L=x(M?"clientPreviewMode":"browserDebugMode"),z=x(M?"homeSession.mode.clientPreviewDesc":"homeSession.mode.remoteDebugDesc"),U=O?x("homeSession.domainCheck.disabled"):D>0?x("homeSession.domainCheck.enabledWithDomains",{count:String(D)}):x("homeSession.domainCheck.enabledNoDomains"),H=O?x("homeSession.domainCheck.disabledDesc"):D>0?x("homeSession.domainCheck.enabledWithDomainsDesc"):x("homeSession.domainCheck.enabledNoDomainsDesc"),K=E.useMemo(()=>{try{if(!r)return null;const ne=new URL(r),ce=(ne.searchParams.get("host")||"").trim(),de=ne.searchParams.get("host_list")||"";let V=[];if(de)try{V=JSON.parse(decodeURIComponent(de))}catch{V=[]}const Y=W=>!!W&&W!=="127.0.0.1"&&W!=="localhost";return Y(ce)||Array.isArray(V)&&V.some(Y)?null:{host:ce,hostList:V}}catch{return{host:"",hostList:[]}}},[r]),ie=ne=>{ne.status==="success"&&b(!1),ne.status==="failed"&&b(!1),ne.status==="start"&&b(!0)},ee=ne=>{P(ne),F0(ne)};E.useEffect(()=>(Ee.on("scanQRCode",ie),()=>{Ee.off("scanQRCode",ie)}),[]);const ae=ne=>{if(ne==="created")S({...Ua,name:""}),e("/launch_mode");else{const ce=l.find(de=>de.id===ne);ce&&S(ce)}};return n?k.jsx("div",{className:"qr-code-container-connected",children:k.jsxs("div",{className:"qr-code-connected-content",children:[k.jsx("div",{className:"qr-code-tile qr-code-tile-connected",children:k.jsx(nC,{className:"qr-code-connected",size:150,value:s,bgColor:"transparent",fgColor:"#0e0f13"})}),k.jsxs("div",{className:"qr-code-connected-info",children:[k.jsx("div",{className:"qr-code-connected-desc-title",children:x("scanQRCodeChange")}),k.jsx("div",{className:"qr-code-connected-desc",children:x("scanQRCodeDesc")})]}),k.jsxs("div",{className:"qr-code-session-panel",children:[k.jsxs("div",{className:"qr-code-session-header",children:[k.jsx("span",{children:x("homeSession.title")}),k.jsx("span",{className:"qr-code-session-mode-tag",children:L})]}),k.jsxs("div",{className:"qr-code-session-grid",children:[k.jsxs("div",{className:"qr-code-session-item",children:[k.jsx("span",{children:x("homeSession.modeLabel")}),k.jsx("strong",{children:L}),k.jsx("p",{children:z})]}),k.jsxs("div",{className:"qr-code-session-item",children:[k.jsx("span",{children:x("homeSession.entryLabel")}),k.jsx("strong",{children:j}),k.jsx("p",{children:`${F}${c?.scene?` · ${c.scene}`:""}`})]}),k.jsxs("div",{className:"qr-code-session-item",children:[k.jsx("span",{children:x("homeSession.domainLabel")}),k.jsx("strong",{children:U}),k.jsx("p",{children:H})]})]}),k.jsxs("div",{className:"qr-code-session-checks",children:[k.jsx("span",{className:`qr-code-session-check ${O?"is-muted":""}`,children:x(O?"homeSession.chip.domainCheckOff":"homeSession.chip.domainCheckOn")}),k.jsx("span",{className:`qr-code-session-check ${p.enableVConsole?"":"is-muted"}`,children:p.enableVConsole?x("homeSession.chip.vConsoleOn"):x("homeSession.chip.vConsoleOff")}),k.jsx("span",{className:`qr-code-session-check ${p.enableDevInfoPanel?"":"is-muted"}`,children:p.enableDevInfoPanel?x("homeSession.chip.devPanelOn"):x("homeSession.chip.devPanelOff")})]}),k.jsxs("div",{className:`qr-code-session-hint ${N?"is-warning":""}`,children:[k.jsx("strong",{children:x(N?"homeSession.risk.domainTitle":M?"homeSession.diff.clientPreviewTitle":"homeSession.diff.remoteDebugTitle")}),k.jsx("span",{children:x(N?"homeSession.risk.domainDesc":M?"homeSession.diff.clientPreviewDesc":"homeSession.diff.remoteDebugDesc")})]})]})]})}):k.jsxs("div",{className:"qr-code-container-disconnected",children:[k.jsx("div",{className:"qr-code-select-container",children:k.jsx(Mr,{className:"qr-code-launch-select",value:c?.id,onChange:ae,placeholder:x("selectLaunchMode"),style:{width:"216px"},optionList:l.map(ne=>({label:ne.id==="normal"?x("normalLaunchMode"):ne.id==="created"?x("createdLaunchMode"):ne.name,value:ne.id}))})}),k.jsxs("div",{className:"qr-code-content",children:[K?k.jsxs("div",{className:"qr-code-network-hint",role:"status",children:[k.jsxs("div",{className:"qr-code-network-hint-main",children:[k.jsx("span",{className:"qr-code-network-hint-icon","aria-hidden":"true",children:k.jsx(Zh,{})}),k.jsxs("div",{className:"qr-code-network-hint-copy",children:[k.jsx(Qe.Text,{strong:!0,children:x("networkNoLanIPTitle")}),k.jsx(Qe.Text,{type:"tertiary",children:x("networkNoLanIPDesc")})]})]}),k.jsx(tt,{className:"qr-code-network-hint-action",size:"small",theme:"light",type:"tertiary",onClick:()=>v(!0),children:x("networkNoLanIPAction")})]}):null,k.jsxs("div",{className:"qr-code-schema",children:[k.jsx("div",{className:"qr-code-tile",children:k.jsx(nC,{size:256,value:r,bgColor:"transparent",fgColor:"#0e0f13"})}),k.jsxs(ug,{className:"qr-code-mode-switches",children:[k.jsx(tt,{className:`qr-code-mode-button ${u==="browserDebug"?"is-active":""}`,theme:"borderless",type:"tertiary",size:"small",onClick:()=>ee("browserDebug"),children:x("browserDebugMode")}),k.jsx(tt,{className:`qr-code-mode-button ${u==="clientPreview"?"is-active":""}`,onClick:()=>ee("clientPreview"),theme:"borderless",type:"tertiary",size:"small",children:x("clientPreviewMode")})]}),T&&k.jsxs("div",{className:"qr-code-spin",children:[k.jsx(Ar,{size:"large"}),k.jsx("div",{className:"qr-code-text",children:x("scanning")})]})]}),k.jsxs("div",{className:"qr-code-side-panel",children:[k.jsxs("div",{className:"qr-code-diagnostics-card",children:[k.jsx("div",{className:"qr-code-diagnostics-card-copy",children:k.jsx(Qe.Text,{children:x("netDiagEntryDesc")})}),k.jsx(tt,{className:"qr-code-diagnostics-entry",theme:"light",size:"small",onClick:()=>e("/network_diagnostics"),children:x("netDiagEntryAction")})]}),w?null:k.jsxs("div",{className:"qr-code-login-guide",children:[k.jsxs("div",{className:"qr-code-login-guide-copy",children:[k.jsx(Qe.Text,{strong:!0,children:x("basicDebugGuide.entryTitle")}),k.jsx(Qe.Text,{children:x("basicDebugGuide.entryDesc")})]}),k.jsx(tt,{theme:"light",onClick:()=>e("/basic_debug_guide"),children:x("basicDebugGuide.entryAction")})]})]})]})]})},J9=[{key:"domain-check",labelKey:"debugSettingDomainCheck",descriptionKey:"devOptionsDomainCheckDesc",getChecked:i=>!i.enableDomainCheck,getNextSetting:(i,e)=>({...i,enableDomainCheck:!e})},{key:"ad-mock",labelKey:"debugSettingAdMock",descriptionKey:"debugSettingAdMockDesc",getChecked:i=>i.enableAdMock,getNextSetting:(i,e)=>({...i,enableAdMock:e})},{key:"iap-mock",labelKey:"debugSettingIAPMock",descriptionKey:"debugSettingIAPMockDesc",getChecked:i=>i.enableIAPMock,getNextSetting:(i,e)=>({...i,enableIAPMock:e})},{key:"dev-info-panel",labelKey:"debugSettingDevInfoPanel",descriptionKey:"debugSettingEnableDevInfoPanelDesc",getChecked:i=>i.enableDevInfoPanel,getNextSetting:(i,e)=>({...i,enableDevInfoPanel:e})},{key:"vconsole",labelKey:"debugSettingVConsole",descriptionKey:"debugSettingEnableVconsoleDesc",isAvailable:i=>i!==qn.browserDebug,getChecked:i=>i.enableVConsole,getNextSetting:(i,e)=>({...i,enableVConsole:e})}];function eH({debugMode:i,debugSetting:e,onChange:n}){return J9.filter(r=>!r.isAvailable||r.isAvailable(i)).map(r=>({key:r.key,checked:r.getChecked(e),label:x(r.labelKey),description:x(r.descriptionKey),onChange:s=>n(r.getNextSetting(e,s))}))}const tH=()=>{const{state:{debugSetting:i,debugMode:e},setDebugSetting:n}=dn(),r=c=>{n(c)},s=()=>{Ps.send({method:"setDebugSettings",payload:i})};E.useEffect(()=>(Ee.on("connectionChange",s),()=>{Ee.off("connectionChange",s)}),[s]);const l=eH({debugMode:e,debugSetting:i,onChange:r});return k.jsx("div",{className:"debug-setting-card",children:k.jsxs(Sl,{style:{width:"100%"},children:[k.jsx("div",{className:"debug-setting-head",children:k.jsx(Qe.Text,{style:{fontWeight:"bold",fontSize:16},children:x("devOptions")})}),k.jsx("div",{className:"debug-setting-row",children:l.map(c=>k.jsxs("div",{className:"debug-setting-item",children:[k.jsxs("div",{className:"debug-setting-item-head",children:[k.jsx(wg,{className:"debug-setting-switch",checked:c.checked,onChange:c.onChange}),k.jsx(Qe.Text,{className:"debug-setting-item-title",children:c.label})]}),k.jsx(Qe.Text,{className:"debug-setting-item-desc",type:"tertiary",children:c.description})]},c.key))})]})})};function h_(){return{ip:Pe.get("clientHost")||localStorage.getItem("clientHost")||"",port:Pe.get("clientHttpPort")||localStorage.getItem("clientHttpPort")||"",wsPort:Pe.get("clientWsPort")||localStorage.getItem("clientWsPort")||""}}function JH(i=h_()){return!!(String(i.ip||"").trim()&&String(i.port||"").trim()&&String(i.wsPort||"").trim())}function nH(i){const{ip:e,port:n,wsPort:r}=i;Pe.setMultiple({clientHost:e,clientWsPort:r,clientHttpPort:n}),Hi.send({method:"manualConnect",payload:{clientHost:e,clientWsPort:r,clientHttpPort:n}}),Ps.init({clientWsPort:r,clientHost:e,clientHttpPort:n}),localStorage.setItem("clientHost",e),localStorage.setItem("clientWsPort",r),localStorage.setItem("clientHttpPort",n)}function rC(i){const e=String(i.ip||""),n=String(i.port||""),r=String(i.wsPort||"");Pe.setMultiple({clientHost:e,clientWsPort:r,clientHttpPort:n}),localStorage.setItem("clientHost",e),localStorage.setItem("clientWsPort",r),localStorage.setItem("clientHttpPort",n)}const g_=i=>{const{onClose:e,onSuccess:n,onValuesChange:r,onConnectResult:s,getFormApi:l,layout:c="default"}=i,[u,p]=E.useState(!1),[f,y]=E.useState({}),v=(L,z=3e3)=>new Promise(U=>{let H=!1;const K=setTimeout(()=>{if(!H){H=!0;try{ie?.close()}catch{}U({ok:!1,message:x("connectivityTimeout")})}},z);let ie=null;try{ie=new WebSocket(L),ie.onopen=()=>{if(!H){H=!0,clearTimeout(K);try{ie?.close()}catch{}U({ok:!0,message:x("connectivityOK")})}},ie.onerror=()=>{H||(H=!0,clearTimeout(K),U({ok:!1,message:x("connectivityFailed")}))}}catch{clearTimeout(K),U({ok:!1,message:x("connectivityFailed")})}}),S=async L=>{if(!j(L)){s?.({ok:!1,message:x("connectivityMissingParams")});return}p(!0),nH(L);const{ip:z,wsPort:U}=L,H=await v(`ws://${z}:${U}`);s?.(H),H.ok&&n?.(),p(!1)},P=E.useMemo(()=>h_(),[]),[T,b]=E.useState(P),w=E.useRef(P),D=E.useRef(null),O=E.useRef(null),N=E.useRef(null),M=L=>{const z={...w.current,...L};w.current=z,b(z),y(U=>({...U,...L.ip!==void 0?{ip:void 0}:{},...L.port!==void 0?{port:void 0}:{},...L.wsPort!==void 0?{wsPort:void 0}:{}})),r?.(z),rC(z)},F=()=>{const L=D.current?.querySelector("input")?.value,z=O.current?.querySelector("input")?.value,U=N.current?.querySelector("input")?.value,H={ip:String(L||""),port:String(z||""),wsPort:String(U||"")};(H.ip!==w.current.ip||H.port!==w.current.port||H.wsPort!==w.current.wsPort)&&M(H)};E.useEffect(()=>{w.current=P,b(P),r?.(P),rC(P)},[P]),E.useEffect(()=>{const L=[0,80,300,800].map(z=>window.setTimeout(()=>F(),z));return()=>{L.forEach(z=>window.clearTimeout(z))}},[]),E.useEffect(()=>{l?.({getValues:()=>w.current,submitForm:()=>S(w.current)})},[l]);const j=L=>{const z={};return String(L.ip||"").trim()||(z.ip=x("debug.guide.manualBindIPInvalid")),String(L.port||"").trim()||(z.port=x("invalidPort")),String(L.wsPort||"").trim()||(z.wsPort=x("invalidPort")),y(z),Object.keys(z).length===0};return k.jsxs("div",{className:`manual-connection-form manual-connection-form-${c}`,children:[c==="default"?k.jsx("div",{className:"manual-connection-tip",children:x("manualConnectDialogDesc")}):null,k.jsxs("div",{className:"manual-connection-grid",children:[k.jsxs("div",{className:"manual-connection-field",children:[k.jsxs("div",{className:"manual-connection-label",children:[k.jsx(Qe.Text,{strong:!0,children:"Client IP "}),k.jsx(Qe.Text,{type:"danger",children:"*"})]}),k.jsx("div",{ref:D,children:k.jsx(ss,{value:T.ip,onChange:L=>M({ip:String(L||"")}),onBlur:F,placeholder:"192.168.x.x"})}),f.ip?k.jsx(Qe.Text,{type:"danger",children:f.ip}):null]}),k.jsxs("div",{className:"manual-connection-field",children:[k.jsxs("div",{className:"manual-connection-label",children:[k.jsx(Qe.Text,{strong:!0,children:"Port 1(HTTP 端口) "}),k.jsx(Qe.Text,{type:"danger",children:"*"})]}),k.jsx("div",{ref:O,children:k.jsx(ss,{value:T.port,onChange:L=>M({port:String(L||"")}),onBlur:F,placeholder:"3000"})}),f.port?k.jsx(Qe.Text,{type:"danger",children:f.port}):null]}),k.jsxs("div",{className:"manual-connection-field",children:[k.jsxs("div",{className:"manual-connection-label",children:[k.jsx(Qe.Text,{strong:!0,children:"Port 2(WS 端口) "}),k.jsx(Qe.Text,{type:"danger",children:"*"})]}),k.jsx("div",{ref:N,children:k.jsx(ss,{value:T.wsPort,onChange:L=>M({wsPort:String(L||"")}),onBlur:F,placeholder:"2999"})}),f.wsPort?k.jsx(Qe.Text,{type:"danger",children:f.wsPort}):null]})]}),e?k.jsxs("div",{className:"manual-connection-footer",children:[k.jsx(tt,{type:"tertiary",onClick:()=>e(),disabled:u,children:x("cancel")}),k.jsx(tt,{type:"primary",theme:"solid",onClick:()=>S(w.current),loading:u,children:x("manualConnectConfirm")})]}):null]})},rH=()=>{const{state:{showManualBindIP:i},setShowManualBindIP:e}=dn();return k.jsx(Ft,{className:"manual-connection-modal",width:520,title:x("manualBindClientDebugServiceTitle"),visible:i,showCancel:!1,onCancel:()=>e(!1),showOk:!1,footer:null,children:k.jsx(g_,{onClose:()=>e(!1),onSuccess:()=>e(!1)})})},iH=()=>{const{state:{isConnected:i,message:e}}=E.useContext(Cg),n=e?.intent==="uploading",r=Math.max(0,Math.min(100,Math.round((e?.progress??0)*100))),s=!!e?.title;return k.jsxs("div",{"data-doc-shot":"start-debug-qr-idle",className:`home-container ${i?"home-container-connected":""}`,children:[k.jsx(z9,{title:x(i?"homeHeroTitleConnected":"homeHeroTitle"),subtitle:x(i?"homeHeroSubtitleConnected":"homeHeroSubtitle")}),k.jsxs("div",{className:Q("home-status-banner",`home-status-banner-${e?.type??"info"}`,{"home-status-banner-uploading":n}),"aria-live":"polite",children:[k.jsx("span",{className:"home-status-dot"}),k.jsxs("div",{className:"home-status-copy",children:[e?.title?k.jsx("div",{className:"home-status-title",children:e.title}):null,e?.desc?k.jsx("div",{className:Q("home-status-desc",{"home-status-desc-standalone":!s}),children:e.desc}):null]}),n?k.jsxs("div",{className:"home-status-progress-value",children:[r,"%"]}):null,n?k.jsx("div",{className:"home-status-progress-track",children:k.jsx("span",{className:"home-status-progress-fill",style:{width:`${r}%`}})}):null]}),k.jsx(Z9,{isConnected:i}),!i&&k.jsx(tH,{})]})},oH="https://bytedance.larkoffice.com/wiki/WvifwWjGri7bTzkPbqKcqVi5ntc";function sH(i){try{return i?(new URL(i).searchParams.get("port")||"").trim():""}catch{return""}}function aH(i,e){return i?i.ok?"success":i.code==="status"?"warning":"error":e?"running":"idle"}function lH(i){return x(i==="success"?"connectivityOK":i==="warning"?"netDiagStatusWarning":i==="error"?"connectivityNotOK":i==="running"?"netDiagStatusRunning":"netDiagStatusIdle")}function cH(i,e){return i?i.ok?x("netDiagCheckReachableDetail"):i.msg||x("connectivityFailed"):x(e?"netDiagCheckRunningDetail":"netDiagCheckIdleDetail")}function uH({hasChecked:i,running:e,nodeHttp:n,nodeWs:r,clientHttp:s,clientWs:l,hasClientEndpoint:c}){return e?{kind:"running",title:x("netDiagSummaryRunningTitle"),desc:x("netDiagSummaryRunningDesc"),suggestions:[x("netDiagSummaryRunningHint")]}:i?c?n&&!n.ok?{kind:"node-service",title:x("netDiagSummaryNodeTitle"),desc:x("netDiagSummaryNodeDesc"),suggestions:[x("netDiagSuggestNodeDesc"),x("netDiagSuggestNodeRestart")]}:r&&!r.ok?{kind:"node-service",title:x("netDiagSummaryNodeTitle"),desc:x("netDiagSummaryNodeWsDesc"),suggestions:[x("netDiagSuggestNodeDesc")]}:s?.ok&&l&&!l.ok?{kind:"client-ws-failed",title:x("netDiagSummaryClientWsTitle"),desc:x("netDiagSummaryClientWsDesc"),suggestions:[x("netDiagSuggestClientDebugService"),x("netDiagSuggestWsBlocked"),x("netDiagSuggestPhoneProxyFallback")]}:s&&!s.ok&&l&&!l.ok?{kind:"client-both-failed",title:x("netDiagSummaryClientBothTitle"),desc:x("netDiagSummaryClientBothDesc"),suggestions:[x("netDiagSuggestClientDebugService"),x("netDiagSuggestLanAndProxy"),x("netDiagSuggestPhoneProxyFallback")]}:n?.ok&&r?.ok&&s?.ok&&l?.ok?{kind:"healthy",title:x("netDiagSummaryHealthyTitle"),desc:x("netDiagSummaryHealthyDesc"),suggestions:[x("netDiagSuggestOkDesc")]}:{kind:"partial",title:x("netDiagSummaryPartialTitle"),desc:x("netDiagSummaryPartialDesc"),suggestions:[x("netDiagSummaryPartialHint")]}:{kind:"missing-client",title:x("netDiagSummaryMissingClientTitle"),desc:x("netDiagSummaryMissingClientDesc"),suggestions:[x("netDiagSuggestNoClientDesc")]}:c?{kind:"idle",title:x("netDiagSummaryIdleTitle"),desc:x("netDiagSummaryIdleDesc"),suggestions:[x("netDiagSummaryIdleHint")]}:{kind:"missing-client",title:x("netDiagSummaryMissingClientTitle"),desc:x("netDiagSummaryMissingClientDesc"),suggestions:[x("netDiagSuggestNoClientDesc")]}}const iC=(i,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:x("connectivityTimeout")})}},e);let l=null;try{l=new WebSocket(i),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:x("connectivityFailed")}))}}catch{clearTimeout(s),n({ok:!1,code:"error",msg:x("connectivityFailed")})}}),oC=async i=>{try{const e=new AbortController,n=setTimeout(()=>e.abort(),3e3),r=await fetch(i,{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:x("connectivityTimeout")}:{ok:!1,code:"error",msg:x("connectivityFailed")}}},dH=()=>{const i=_s(),{state:{devSchema:e,schema:n}}=dn(),r=E.useRef(0),[s,l]=E.useState(!1),[c,u]=E.useState(!1),[p,f]=E.useState(!0),[y,v]=E.useState(!1),[S,P]=E.useState(!1),[T,b]=E.useState(),[w,D]=E.useState(),[O,N]=E.useState(),[M,F]=E.useState(),[j,L]=E.useState(!1),[z,U]=E.useState(null),[H,K]=E.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")||"")})),ie=E.useMemo(()=>({ip:String(H.ip||""),port:String(H.port||""),wsPort:String(H.wsPort||"")}),[H]),ee=E.useCallback(re=>{K(re)},[]),ae=E.useMemo(()=>{const{nodeWsPort:re,clientHost:oe,clientHttpPort:_e,clientWsPort:ye}=Pe.getMultiple(["nodeWsPort","clientHost","clientHttpPort","clientWsPort"]);let ve="";try{n&&(ve=(new URL(n).searchParams.get("host")||"").trim())}catch{}return{schemaHost:ve,httpPort:sH(n),nodeWsPort:re,clientHost:oe,clientHttpPort:_e,clientWsPort:ye}},[e,n]),ne=String(ie.ip||ae.clientHost||"").trim(),ce=String(ie.port||ae.clientHttpPort||"").trim(),de=String(ie.wsPort||ae.clientWsPort||"").trim(),V=E.useCallback(async()=>{L(!0),l(!0),b(void 0),D(void 0),N(void 0),F(void 0);const re=await oC("/game/config");b(re);const oe=ae.nodeWsPort;D(oe?await iC(`ws://localhost:${oe}`):{ok:!1,code:"error",msg:x("connectivityMissingParams")}),N(ne&&ce?await oC(`http://${ne}:${ce}/game/scripts/krypton.js`):{ok:!1,code:"error",msg:x("netDiagMissingClientHttp")}),F(ne&&de?await iC(`ws://${ne}:${de}`):{ok:!1,code:"error",msg:x("netDiagMissingClientWs")}),P(!0),l(!1)},[ae.nodeWsPort,ne,ce,de]);E.useEffect(()=>{V()},[V]);const Y=E.useMemo(()=>[{key:"node-http",title:x("netDiagCheckNodeHttp"),target:"/game/config",item:T},{key:"node-ws",title:x("netDiagCheckNodeWs"),target:ae.nodeWsPort?`ws://localhost:${ae.nodeWsPort}`:"-",item:w},{key:"client-http",title:x("netDiagCheckClientHttp"),target:ne&&ce?`http://${ne}:${ce}`:"-",item:O},{key:"client-ws",title:x("netDiagCheckClientWs"),target:ne&&de?`ws://${ne}:${de}`:"-",item:M}],[O,M,ae.nodeWsPort,T,w,ne,ce,de]),I=E.useMemo(()=>uH({hasChecked:j,running:s,nodeHttp:T,nodeWs:w,clientHttp:O,clientWs:M,hasClientEndpoint:!!(ne&&ce&&de)}),[O,M,j,T,w,ne,ce,de,s]),W=I.suggestions,se=E.useCallback(()=>{r.current=window.scrollY,U(null),v(!0)},[]);return E.useEffect(()=>{if(!y)return;const re=()=>{window.scrollTo({top:r.current,left:0})},oe=window.requestAnimationFrame(re),_e=window.setTimeout(re,80);return()=>{window.cancelAnimationFrame(oe),window.clearTimeout(_e)}},[y]),k.jsxs("div",{className:"check-network-container",children:[k.jsxs("div",{className:"check-network-hero",children:[k.jsx("div",{className:"check-network-back",children:k.jsxs("button",{type:"button",className:"check-network-back-link",onClick:()=>i("/"),children:[k.jsx(k9,{size:14,strokeWidth:2}),k.jsx("span",{children:x("back")})]})}),k.jsx("div",{className:"check-network-hero-head",children:k.jsxs("div",{className:"check-network-hero-copy",children:[k.jsx("div",{className:"check-network-hero-title",children:x("netDiagTitle")}),k.jsx("div",{className:"check-network-hero-subtitle",children:x("netDiagSubtitle")})]})})]}),k.jsxs("section",{className:`check-network-section check-network-summary-result check-network-summary-result-${I.kind}`,children:[k.jsxs("div",{className:"check-network-section-headline",children:[k.jsx("div",{children:k.jsxs("div",{className:"check-network-title-row",children:[k.jsx("div",{className:"check-network-section-title",children:x("netDiagSummaryTitle")}),k.jsx(c_,{className:"check-network-title-link",href:oH,children:x("netDiagOpenTroubleshoot")})]})}),k.jsx(tt,{className:"check-network-section-toggle",theme:"borderless",onClick:()=>f(re=>!re),children:x(p?"netDiagCollapse":"netDiagExpand")})]}),p?k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"check-network-summary-main",children:[k.jsx("div",{className:"check-network-summary-eyebrow",children:x("netDiagGuideEyebrow")}),k.jsx("div",{className:"check-network-summary-result-title",children:I.title}),k.jsx("div",{className:"check-network-summary-result-desc",children:I.desc})]}),k.jsxs("div",{className:"check-network-guide-panel",children:[k.jsx("div",{className:"check-network-guide-label",children:x("netDiagGuideStepsTitle")}),k.jsx("div",{className:"check-network-suggestion-list",children:W.map((re,oe)=>k.jsxs("div",{className:"check-network-suggestion-item",children:[k.jsx("span",{className:"check-network-suggestion-index",children:oe+1}),k.jsx("span",{className:"check-network-suggestion-text",children:re})]},`${re}_${oe}`))})]})]}):null]}),k.jsxs("section",{className:"check-network-section check-network-manual-entry",children:[k.jsxs("div",{className:"check-network-section-headline",children:[k.jsxs("div",{children:[k.jsx("div",{className:"check-network-section-title",children:x("netDiagManualBindEntry")}),k.jsx("div",{className:"check-network-suggest-desc",children:x("netDiagManualSectionDesc")})]}),k.jsxs("div",{className:"check-network-manual-entry-actions",children:[k.jsx(tt,{className:"check-network-recheck-action",theme:"borderless",loading:s,onClick:()=>{V()},children:x("netDiagRunAll")}),k.jsx(tt,{className:"check-network-next-step-action",theme:"solid",type:"primary",onClick:se,children:x("netDiagActionManualConnect")})]})]}),z?k.jsx("div",{className:`check-network-inline-result ${z.ok?"success":"error"}`,children:z.ok?x("netDiagManualConnectResultSuccess"):`${x("netDiagManualConnectResultError")} ${z.message}`}):null]}),k.jsxs("section",{className:"check-network-section check-network-env-section",children:[k.jsxs("div",{className:"check-network-section-headline",children:[k.jsxs("div",{children:[k.jsx("div",{className:"check-network-section-title",children:x("netDiagEnvTitle")}),k.jsx("div",{className:"check-network-suggest-desc",children:x("netDiagEnvSectionDesc")})]}),k.jsx(tt,{className:"check-network-section-toggle",theme:"borderless",onClick:()=>u(re=>!re),children:x(c?"netDiagCollapse":"netDiagExpand")})]}),c?k.jsxs("div",{className:"check-network-summary-grid",children:[k.jsxs("div",{className:"check-network-summary-card",children:[k.jsx("div",{className:"check-network-summary-title",children:x("netDiagComputerGroup")}),k.jsxs("div",{className:"check-network-kv",children:[k.jsx("span",{children:x("netDiagEnvIP")}),k.jsx("span",{children:ae.schemaHost||"-"})]}),k.jsxs("div",{className:"check-network-kv",children:[k.jsx("span",{children:x("netDiagEnvWsPort")}),k.jsx("span",{children:ae.nodeWsPort||"-"})]}),k.jsxs("div",{className:"check-network-kv",children:[k.jsx("span",{children:x("netDiagEnvHttpPort")}),k.jsx("span",{children:ae.httpPort||"-"})]})]}),k.jsxs("div",{className:"check-network-summary-card",children:[k.jsx("div",{className:"check-network-summary-title",children:x("netDiagClientGroup")}),k.jsxs("div",{className:"check-network-kv",children:[k.jsx("span",{children:"IP"}),k.jsx("span",{children:ne||"-"})]}),k.jsxs("div",{className:"check-network-kv",children:[k.jsx("span",{children:x("netDiagEnvWsPort")}),k.jsx("span",{children:de||"-"})]}),k.jsxs("div",{className:"check-network-kv",children:[k.jsx("span",{children:x("netDiagEnvHttpPort")}),k.jsx("span",{children:ce||"-"})]})]})]}):null]}),k.jsxs("section",{className:"check-network-section check-network-check-section",children:[k.jsxs("div",{className:"check-network-section-headline",children:[k.jsxs("div",{children:[k.jsx("div",{className:"check-network-section-title",children:x("netDiagChecksTitle")}),k.jsx("div",{className:"check-network-suggest-desc",children:x("netDiagCheckSectionDesc")})]}),k.jsx(tt,{className:"check-network-section-toggle",theme:"borderless",onClick:()=>P(re=>!re),children:x(S?"netDiagCollapse":"netDiagExpand")})]}),S?k.jsx("div",{className:"check-network-checks",children:Y.map(re=>{const oe=aH(re.item,s&&j);return k.jsxs("div",{className:`check-network-check-card check-network-check-${oe}`,children:[k.jsxs("div",{className:"check-network-check-main",children:[k.jsxs("div",{className:"check-network-check-title-row",children:[k.jsx("span",{className:"check-network-check-dot"}),k.jsx("span",{className:"check-network-check-title",children:re.title})]}),k.jsxs("div",{className:"check-network-check-meta",children:[k.jsx("span",{className:"check-network-check-target",children:re.target}),k.jsx("span",{className:"check-network-check-detail",children:cH(re.item,s&&j)})]})]}),k.jsx("span",{className:`check-network-check-badge check-network-check-badge-${oe}`,children:lH(oe)})]},re.key)})}):null]}),k.jsxs(Ft,{className:"manual-connection-modal check-network-manual-modal",width:560,title:x("manualBindClientDebugServiceTitle"),visible:y,showCancel:!1,showOk:!1,footer:null,onCancel:()=>v(!1),children:[k.jsx(g_,{onClose:()=>v(!1),onSuccess:()=>v(!1),onValuesChange:ee,onConnectResult:re=>{U(re),V()}}),z&&!z.ok?k.jsx("div",{className:"check-network-inline-result error",children:`${x("netDiagManualConnectResultError")} ${z.message}`}):null]})]})},pH=E.lazy(()=>lt(()=>import("./index-Do3D3DDt.js"),__vite__mapDeps([22,23,24,25,26,27,28,29])).then(i=>({default:i.ProjectDetail}))),fH=E.lazy(()=>lt(()=>import("./index-BLmfGH4o.js"),__vite__mapDeps([30,10,11])).then(i=>({default:i.DebugSetting}))),hH=E.lazy(()=>lt(()=>import("./index-B0fmVxbN.js"),__vite__mapDeps([31,32,33,7,8,9,10,11,12,34])).then(i=>({default:i.LaunchMode}))),gH=E.lazy(()=>lt(()=>import("./index-y9pNuDMs.js"),__vite__mapDeps([35,26,27,7,8,9,10,11,12,25,36])).then(i=>({default:i.CheckCode}))),mH=E.lazy(()=>lt(()=>import("./index-DXXBlk9b.js"),__vite__mapDeps([37,26,27,38])).then(i=>({default:i.BasicDebugGuide}))),yH=E.lazy(()=>lt(()=>import("./index-BzbUu6Wd.js"),__vite__mapDeps([39,26,27,23,24,40,41])).then(i=>({default:i.ChangeLog}))),vH=E.lazy(()=>lt(()=>import("./index-DyR-YyZt.js"),__vite__mapDeps([42,23,43,24,44,45,46,19])).then(i=>({default:i.IntegrationAssistant}))),bH=E.lazy(()=>lt(()=>import("./Detail-CTD5OeB0.js"),__vite__mapDeps([47,48,49,23,24,26,27,32,33,7,8,9,10,11,12,44,45,50,40])).then(i=>({default:i.IntegrationAssistantDetail}))),SH=E.lazy(()=>lt(()=>import("./MonetizationMode-DZmggvdZ.js"),__vite__mapDeps([51,48,49,23,24,43,44,45,46,19])).then(i=>({default:i.IntegrationAssistantMonetizationMode}))),wH=E.lazy(()=>lt(()=>import("./index-CPfhNCcU.js"),__vite__mapDeps([52,53])).then(i=>({default:i.ManualConnect}))),CH=E.lazy(()=>lt(()=>import("./index-DnsrxgPV.js"),__vite__mapDeps([54,23,24,55,8,9,56,7,10,11,12,50,40,57,17])).then(i=>({default:i.WasmCodeSplit}))),_H=E.lazy(()=>lt(()=>import("./index-B3TFdXWD.js"),__vite__mapDeps([58,24,20,46,59])).then(i=>({default:i.Performance}))),kH=E.lazy(()=>lt(()=>import("./index-B1gECabp.js"),__vite__mapDeps([60,23,24,55,8,9,56,28,61])).then(i=>({default:i.SubpackageCollect}))),PH=()=>k.jsx("div",{className:"routes-container",children:k.jsx(E.Suspense,{fallback:k.jsx(a_,{}),children:k.jsxs(lU,{children:[k.jsx(st,{path:"/",element:k.jsx(iH,{})}),k.jsx(st,{path:"/integration_assistant",element:k.jsx(vH,{})}),k.jsx(st,{path:"/integration_assistant/mode/:modeKey",element:k.jsx(SH,{})}),k.jsx(st,{path:"/integration_assistant/:capabilityKey",element:k.jsx(bH,{})}),k.jsx(st,{path:"/project_overview",element:k.jsx(pH,{})}),k.jsx(st,{path:"/project_detail",element:k.jsx(uh,{to:"/project_overview",replace:!0})}),k.jsx(st,{path:"/basic_debug_guide",element:k.jsx(mH,{})}),k.jsx(st,{path:"/debug_setting",element:k.jsx(fH,{})}),k.jsx(st,{path:"/launch_mode",element:k.jsx(hH,{})}),k.jsx(st,{path:"/upload_publish",element:k.jsx(gH,{})}),k.jsx(st,{path:"/version_upload",element:k.jsx(uh,{to:"/upload_publish",replace:!0})}),k.jsx(st,{path:"/precheck_code",element:k.jsx(uh,{to:"/upload_publish",replace:!0})}),k.jsx(st,{path:"/network_diagnostics",element:k.jsx(dH,{})}),k.jsx(st,{path:"/manual_connect",element:k.jsx(wH,{})}),k.jsx(st,{path:"/changelog",element:k.jsx(yH,{})}),k.jsx(st,{path:"/wasm_split",element:k.jsx(CH,{})}),k.jsx(st,{path:"/performance",element:k.jsx(_H,{})}),k.jsx(st,{path:"/subpackage_collect",element:k.jsx(kH,{})})]})})});function TH(){const{state:{loading:i,error:e,user:n}}=dn(),{topErrorItems:r,updateGameDetailTopErrors:s,updateConfigTopErrors:l,updateGameDetailAccessErrors:c}=n9(),{fetchGameDetail:u}=s9({onSuccess:s,updateGameDetailAccessErrors:c}),{isServerError:p,serverErrorMsg:f}=a9({fetchGameDetail:u,updateConfigTopErrors:l}),y=Pl();return l9({onResourceChange:u}),E.useEffect(()=>{const v=async S=>{if(S.status!=="update_wasm_split_config_done")return;const P=await Ki({url:"/game/config",method:"GET"});P.error||l({currentUser:n,checkResult:P.data?.checkResult})};return Ee.on("unitySplitStatus",v),()=>{Ee.off("unitySplitStatus",v)}},[l,n]),p&&!i.visible?k.jsxs("div",{className:"server-error-container",children:[k.jsx(VU,{}),k.jsx("div",{className:"server-error-text",children:f})]}):k.jsxs(RU,{children:[k.jsx(q9,{items:r,fallbackErrorText:e.text}),k.jsx(M9,{enabled:!y&&!i.visible&&!p}),k.jsx(G9,{}),k.jsx(rH,{}),k.jsxs("div",{className:"main-layout",children:[k.jsx(A9,{}),k.jsxs("div",{className:"content-wrapper",children:[k.jsx(F9,{}),k.jsx(PH,{})]})]}),k.jsx(a_,{})]})}lW();yP.createRoot(document.getElementById("root")).render(k.jsx(fg,{children:k.jsx(dW,{children:k.jsx(TH,{})})}));export{An as $,k9 as A,tt as B,Sl as C,c_ as D,Qt as E,hi as F,Bn as G,g as H,sD as I,or as J,me as K,Lr as L,Yh as M,Wa as N,jr as O,z9 as P,nC as Q,_ as R,Ss as S,Qe as T,yi as U,Qh as V,YH as W,XH as X,g_ as Y,Nr as Z,Te as _,$t as a,Bh as a$,Ka as a0,Jn as a1,us as a2,ah as a3,rr as a4,Ee as a5,ug as a6,Pl as a7,Pg as a8,h_ as a9,Sx as aA,Ch as aB,ZS as aC,_x as aD,zf as aE,Wo as aF,Uo as aG,bx as aH,_h as aI,JS as aJ,uT as aK,at as aL,os as aM,Or as aN,lg as aO,di as aP,cs as aQ,Cn as aR,ZC as aS,ss as aT,uE as aU,tT as aV,Nh as aW,fl as aX,OO as aY,Yi as aZ,bT as a_,JH as aa,nH as ab,Ft as ac,Lh as ad,sr as ae,Xt as af,PG as ag,Wi as ah,IH as ai,RH as aj,Ir as ak,MH as al,LH as am,ml as an,AH as ao,OH as ap,jH as aq,NH as ar,UC as as,oi as at,tr as au,Ye as av,nT as aw,un as ax,Kh as ay,wx as az,Ki as b,CC as b$,Xi as b0,BT as b1,cl as b2,NO as b3,yE as b4,EC as b5,wC as b6,cC as b7,QE as b8,sl as b9,KP as bA,yC as bB,zC as bC,KC as bD,$r as bE,Pn as bF,dl as bG,qh as bH,DT as bI,gl as bJ,vl as bK,Ya as bL,er as bM,IT as bN,zE as bO,Mh as bP,RE as bQ,QP as bR,CP as bS,EO as bT,FE as bU,pE as bV,qT as bW,ai as bX,DH as bY,UE as bZ,Db as b_,ul as ba,Yt as bb,Gh as bc,SC as bd,jh as be,bE as bf,el as bg,Wh as bh,eE as bi,vP as bj,xE as bk,AC as bl,IO as bm,RO as bn,MC as bo,Zn as bp,vT as bq,BH as br,eg as bs,GO as bt,pT as bu,hl as bv,rg as bw,WC as bx,hE as by,HP as bz,Dl as c,qD as c0,BD as c1,Ui as c2,jD as c3,UH as c4,VP as c5,eD as c6,ex as c7,Xa as c8,aI as c9,bD as ca,FH as cb,wg as cc,zH as cd,qH as ce,Vi as cf,Ar as d,rW as e,_s as f,Dg as g,xg as h,x as i,k as j,Zh as k,HC as l,Mr as m,Eh as n,zn as o,ZH as p,Oe as q,E as r,QG as s,zt as t,dn as u,QH as v,yw as w,_t as x,Q as y,Xh as z};