@visactor/react-vtable 1.7.0-alpha.7 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/containers/withContainer.js +1 -2
- package/cjs/context/table.js +2 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/table-components/custom/reconciler.js +1 -1
- package/cjs/table-components/custom/reconciler.js.map +1 -1
- package/cjs/tables/base-table.d.ts +1 -1
- package/cjs/tables/base-table.js.map +1 -1
- package/cjs/tables/index.d.ts +1 -0
- package/cjs/tables/index.js +10 -1
- package/cjs/tables/index.js.map +1 -1
- package/dist/react-vtable.js +25912 -0
- package/dist/react-vtable.min.js +46 -0
- package/es/containers/withContainer.js +1 -2
- package/es/context/table.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/table-components/custom/reconciler.js +1 -1
- package/es/table-components/custom/reconciler.js.map +1 -1
- package/es/tables/base-table.d.ts +1 -1
- package/es/tables/base-table.js.map +1 -1
- package/es/tables/index.d.ts +1 -0
- package/es/tables/index.js +2 -0
- package/es/tables/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@visactor/vtable")):"function"==typeof define&&define.amd?define(["exports","@visactor/vtable"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactVTable={},e.VTable)}(this,(function(e,t){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,i={exports:{}},a={};var o,s={exports:{}};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.development.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/"production"===production?i.exports=function(){if(r)return a;r=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var x=b.prototype=new v;x.constructor=b,g(x,y.prototype),x.isPureReactComponent=!0;var S=Array.isArray,w=Object.prototype.hasOwnProperty,_={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function A(t,n,r){var i,a={},o=null,s=null;if(null!=n)for(i in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(o=""+n.key),n)w.call(n,i)&&!T.hasOwnProperty(i)&&(a[i]=n[i]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===a[i]&&(a[i]=l[i]);return{$$typeof:e,type:t,key:o,ref:s,props:a,_owner:_.current}}function k(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var C=/\/+/g;function E(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(n,r,i,a,o){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return o=o(l=n),n=""===a?"."+E(l,0):a,S(o)?(i="",null!=n&&(i=n.replace(C,"$&/")+"/"),P(o,r,i,"",(function(e){return e}))):null!=o&&(k(o)&&(o=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(o,i+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(C,"$&/")+"/")+n)),r.push(o)),1;if(l=0,a=""===a?".":a+":",S(n))for(var u=0;u<n.length;u++){var c=a+E(s=n[u],u);l+=P(s,r,i,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=P(s=s.value,r,i,c=a+E(s,u++),o);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function B(e,t,n){if(null==e)return e;var r=[],i=0;return P(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},L={transition:null},O={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:L,ReactCurrentOwner:_};function I(){throw Error("act(...) is not supported in production builds of React.")}return a.Children={map:B,forEach:function(e,t,n){B(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return B(e,(function(){t++})),t},toArray:function(e){return B(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},a.Component=y,a.Fragment=n,a.Profiler=o,a.PureComponent=b,a.StrictMode=i,a.Suspense=c,a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,a.act=I,a.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=g({},t.props),a=t.key,o=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(o=n.ref,s=_.current),void 0!==n.key&&(a=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)w.call(n,u)&&!T.hasOwnProperty(u)&&(i[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:e,type:t.type,key:a,ref:o,props:i,_owner:s}},a.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},a.createElement=A,a.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},a.createRef=function(){return{current:null}},a.forwardRef=function(e){return{$$typeof:u,render:e}},a.isValidElement=k,a.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:R}},a.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},a.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},a.unstable_act=I,a.useCallback=function(e,t){return M.current.useCallback(e,t)},a.useContext=function(e){return M.current.useContext(e)},a.useDebugValue=function(){},a.useDeferredValue=function(e){return M.current.useDeferredValue(e)},a.useEffect=function(e,t){return M.current.useEffect(e,t)},a.useId=function(){return M.current.useId()},a.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},a.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},a.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},a.useMemo=function(e,t){return M.current.useMemo(e,t)},a.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},a.useRef=function(e){return M.current.useRef(e)},a.useState=function(e){return M.current.useState(e)},a.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},a.useTransition=function(){return M.current.useTransition()},a.version="18.3.1",a}():i.exports=(o||(o=1,function(e,t){"production"!==production&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function y(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[m];return"function"==typeof t?t:null}var v={current:null},b={transition:null},x={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},S={current:null},w={},_=null;function T(e){_=e}w.setExtraStackFrame=function(e){_=e},w.getCurrentStack=null,w.getStackAddendum=function(){var e="";_&&(e+=_);var t=w.getCurrentStack;return t&&(e+=t()||""),e};var A=!1,k=!1,C=!1,E=!1,P=!1,B={ReactCurrentDispatcher:v,ReactCurrentBatchConfig:b,ReactCurrentOwner:S};function R(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];L("warn",e,n)}function M(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];L("error",e,n)}function L(e,t,n){var r=B.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}B.ReactDebugCurrentFrame=w,B.ReactCurrentActQueue=x;var O={};function I(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",i=r+"."+t;O[i]||(M("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),O[i]=!0)}var N={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){I(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){I(e,"replaceState")},enqueueSetState:function(e,t,n,r){I(e,"setState")}},D=Object.assign,U={};function z(e,t,n){this.props=e,this.context=t,this.refs=U,this.updater=n||N}Object.freeze(U),z.prototype.isReactComponent={},z.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},z.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var F={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},j=function(e,t){Object.defineProperty(z.prototype,e,{get:function(){R("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var W in F)F.hasOwnProperty(W)&&j(W,F[W]);function H(){}function $(e,t,n){this.props=e,this.context=t,this.refs=U,this.updater=n||N}H.prototype=z.prototype;var V=$.prototype=new H;V.constructor=$,D(V,z.prototype),V.isPureReactComponent=!0;var G=Array.isArray;function Y(e){return G(e)}function q(e){return""+e}function Q(e){if(function(e){try{return q(e),!1}catch(e){return!0}}(e))return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),q(e)}function X(e){return e.displayName||"Context"}function K(e){if(null==e)return null;if("number"==typeof e.tag&&M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case i:return"Fragment";case r:return"Portal";case o:return"Profiler";case a:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return X(e)+".Consumer";case s:return X(e._context)+".Provider";case u:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");case h:var t=e.displayName||null;return null!==t?t:K(e.type)||"Memo";case f:var n=e,p=n._payload,g=n._init;try{return K(g(p))}catch(e){return null}}return null}var Z,J,ee,te=Object.prototype.hasOwnProperty,ne={key:!0,ref:!0,__self:!0,__source:!0};function re(e){if(te.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function ie(e){if(te.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}ee={};var ae=function(e,t,r,i,a,o,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:o,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function oe(e,t,n){var r,i={},a=null,o=null,s=null,l=null;if(null!=t)for(r in re(t)&&(o=t.ref,function(e){if("string"==typeof e.ref&&S.current&&e.__self&&S.current.stateNode!==e.__self){var t=K(S.current.type);ee[t]||(M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),ee[t]=!0)}}(t)),ie(t)&&(Q(t.key),a=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)te.call(t,r)&&!ne.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(u>1){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),i.children=c}if(e&&e.defaultProps){var h=e.defaultProps;for(r in h)void 0===i[r]&&(i[r]=h[r])}if(a||o){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&function(e,t){var n=function(){Z||(Z=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(i,f),o&&function(e,t){var n=function(){J||(J=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(i,f)}return ae(e,a,o,s,l,S.current,i)}function se(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,i,a=D({},e.props),o=e.key,s=e.ref,l=e._self,u=e._source,c=e._owner;if(null!=t)for(r in re(t)&&(s=t.ref,c=S.current),ie(t)&&(Q(t.key),o=""+t.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)te.call(t,r)&&!ne.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==i?a[r]=i[r]:a[r]=t[r]);var d=arguments.length-2;if(1===d)a.children=n;else if(d>1){for(var h=Array(d),f=0;f<d;f++)h[f]=arguments[f+2];a.children=h}return ae(e.type,o,s,l,u,c,a)}function le(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var ue=".",ce=":",de=!1,he=/\/+/g;function fe(e){return e.replace(he,"$&/")}function pe(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(Q(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function ge(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c,d=!1;if(null===e)d=!0;else switch(s){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d){var h=e,f=o(h),p=""===a?ue+pe(h,0):a;if(Y(f)){var g="";null!=p&&(g=fe(p)+"/"),ge(f,t,g,"",(function(e){return e}))}else null!=f&&(le(f)&&(!f.key||h&&h.key===f.key||Q(f.key),l=f,u=i+(!f.key||h&&h.key===f.key?"":fe(""+f.key)+"/")+p,f=ae(l.type,u,l.ref,l._self,l._source,l._owner,l.props)),t.push(f));return 1}var m=0,v=""===a?ue:a+ce;if(Y(e))for(var b=0;b<e.length;b++)m+=ge(c=e[b],t,i,v+pe(c,b),o);else{var x=y(e);if("function"==typeof x){var S=e;x===S.entries&&(de||R("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),de=!0);for(var w,_=x.call(S),T=0;!(w=_.next()).done;)m+=ge(c=w.value,t,i,v+pe(c,T++),o)}else if("object"===s){var A=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===A?"object with keys {"+Object.keys(e).join(", ")+"}":A)+"). If you meant to render a collection of children, use an array instead.")}}return m}function me(e,t,n){if(null==e)return e;var r=[],i=0;return ge(e,r,"","",(function(e){return t.call(n,e,i++)})),r}var ye,ve=-1,be=0,xe=1,Se=2;function we(e){if(e._status===ve){var t=(0,e._result)();if(t.then((function(t){if(e._status===be||e._status===ve){var n=e;n._status=xe,n._result=t}}),(function(t){if(e._status===be||e._status===ve){var n=e;n._status=Se,n._result=t}})),e._status===ve){var n=e;n._status=be,n._result=t}}if(e._status===xe){var r=e._result;return void 0===r&&M("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||M("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function _e(e){return"string"==typeof e||"function"==typeof e||!!(e===i||e===o||P||e===a||e===c||e===d||E||e===p||A||k||C)||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===u||e.$$typeof===ye||void 0!==e.getModuleId)}function Te(){var e=v.current;return null===e&&M("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ye=Symbol.for("react.module.reference");var Ae,ke,Ce,Ee,Pe,Be,Re,Me=0;function Le(){}Le.__reactDisabledLog=!0;var Oe,Ie=B.ReactCurrentDispatcher;function Ne(e,t,n){if(void 0===Oe)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Oe=r&&r[1]||""}return"\n"+Oe+e}var De,Ue=!1,ze="function"==typeof WeakMap?WeakMap:Map;function Fe(e,t){if(!e||Ue)return"";var n,r=De.get(e);if(void 0!==r)return r;Ue=!0;var i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=Ie.current,Ie.current=null,function(){if(0===Me){Ae=console.log,ke=console.info,Ce=console.warn,Ee=console.error,Pe=console.group,Be=console.groupCollapsed,Re=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Me++}();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(o,[])}catch(e){n=e}Reflect.construct(e,[],o)}else{try{o.call()}catch(e){n=e}e.call(o.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&De.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{Ue=!1,Ie.current=i,function(){if(0==--Me){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:Ae}),info:D({},e,{value:ke}),warn:D({},e,{value:Ce}),error:D({},e,{value:Ee}),group:D({},e,{value:Pe}),groupCollapsed:D({},e,{value:Be}),groupEnd:D({},e,{value:Re})})}Me<0&&M("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var h=e?e.displayName||e.name:"",f=h?Ne(h):"";return"function"==typeof e&&De.set(e,f),f}function je(e,t,n){if(null==e)return"";if("function"==typeof e)return Fe(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Ne(e);switch(e){case c:return Ne("Suspense");case d:return Ne("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return Fe(e.render,!1);case h:return je(e.type,t,n);case f:var r=e,i=r._payload,a=r._init;try{return je(a(i),t,n)}catch(e){}}return""}De=new ze;var We,He={},$e=B.ReactDebugCurrentFrame;function Ve(e){if(e){var t=e._owner,n=je(e.type,e._source,t?t.type:null);$e.setExtraStackFrame(n)}else $e.setExtraStackFrame(null)}function Ge(e){if(e){var t=e._owner;T(je(e.type,e._source,t?t.type:null))}else T(null)}function Ye(){if(S.current){var e=K(S.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}We=!1;var qe={};function Qe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Ye();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!qe[n]){qe[n]=!0;var r="";e&&e._owner&&e._owner!==S.current&&(r=" It was passed a child from "+K(e._owner.type)+"."),Ge(e),M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Ge(null)}}}function Xe(e,t){if("object"==typeof e)if(Y(e))for(var n=0;n<e.length;n++){var r=e[n];le(r)&&Qe(r,t)}else if(le(e))e._store&&(e._store.validated=!0);else if(e){var i=y(e);if("function"==typeof i&&i!==e.entries)for(var a,o=i.call(e);!(a=o.next()).done;)le(a.value)&&Qe(a.value,t)}}function Ke(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==h)return;t=n.propTypes}if(t){var r=K(n);!function(e,t,n,r,i){var a=Function.call.bind(te);for(var o in e)if(a(e,o)){var s=void 0;try{if("function"!=typeof e[o]){var l=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[o](t,o,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(Ve(i),M("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,o,typeof s),Ve(null)),s instanceof Error&&!(s.message in He)&&(He[s.message]=!0,Ve(i),M("Failed %s type: %s",n,s.message),Ve(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||We||(We=!0,M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",K(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ze(e,t,r){var a,o,s=_e(e);if(!s){var l,u="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),u+=(null!=(a=t)&&void 0!==(o=a.__source)?"\n\nCheck your code at "+o.fileName.replace(/^.*[\\\/]/,"")+":"+o.lineNumber+".":"")||Ye(),null===e?l="null":Y(e)?l="array":void 0!==e&&e.$$typeof===n?(l="<"+(K(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,M("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,u)}var c=oe.apply(this,arguments);if(null==c)return c;if(s)for(var d=2;d<arguments.length;d++)Xe(arguments[d],e);return e===i?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Ge(e),M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Ge(null);break}}null!==e.ref&&(Ge(e),M("Invalid attribute `ref` supplied to `React.Fragment`."),Ge(null))}(c):Ke(c),c}var Je=!1,et=!1,tt=null,nt=0,rt=!1;function it(e){var t=nt;nt++,null===x.current&&(x.current=[]);var n,r=x.isBatchingLegacy;try{if(x.isBatchingLegacy=!0,n=e(),!r&&x.didScheduleLegacyUpdate){var i=x.current;null!==i&&(x.didScheduleLegacyUpdate=!1,lt(i))}}catch(e){throw at(t),e}finally{x.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var a=n,o=!1,s={then:function(e,n){o=!0,a.then((function(r){at(t),0===nt?ot(r,e,n):e(r)}),(function(e){at(t),n(e)}))}};return rt||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){o||(rt=!0,M("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),s}var l=n;if(at(t),0===nt){var u=x.current;return null!==u&&(lt(u),x.current=null),{then:function(e,t){null===x.current?(x.current=[],ot(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}}function at(e){e!==nt-1&&M("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),nt=e}function ot(t,n,r){var i=x.current;if(null!==i)try{lt(i),function(t){if(null===tt)try{var n=("require"+Math.random()).slice(0,7);tt=(e&&e[n]).call(e,"timers").setImmediate}catch(e){tt=function(e){!1===et&&(et=!0,"undefined"==typeof MessageChannel&&M("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}tt(t)}((function(){0===i.length?(x.current=null,n(t)):ot(t,n,r)}))}catch(e){r(e)}else n(t)}var st=!1;function lt(e){if(!st){st=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{st=!1}}}var ut=Ze,ct=function(e,t,n){for(var r=se.apply(this,arguments),i=2;i<arguments.length;i++)Xe(arguments[i],r.type);return Ke(r),r},dt=function(e){var t=Ze.bind(null,e);return t.type=e,Je||(Je=!0,R("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return R("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},ht={map:me,forEach:function(e,t,n){me(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return me(e,(function(){t++})),t},toArray:function(e){return me(e,(function(e){return e}))||[]},only:function(e){if(!le(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=ht,t.Component=z,t.Fragment=i,t.Profiler=o,t.PureComponent=$,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.act=it,t.cloneElement=ct,t.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,i=!1,a={$$typeof:l,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,M("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,M("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){i||(R("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),i=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=ut,t.createFactory=dt,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===h?M("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?M("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&M("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||M("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:u,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=le,t.lazy=function(e){var t,n,r={$$typeof:f,_payload:{_status:ve,_result:e},_init:we};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){M("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){M("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){_e(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:h,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=b.transition;b.transition={};var r=b.transition;b.transition._updatedFibers=new Set;try{e()}finally{b.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&R("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},t.unstable_act=it,t.useCallback=function(e,t){return Te().useCallback(e,t)},t.useContext=function(e){var t=Te();if(void 0!==e._context){var n=e._context;n.Consumer===e?M("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&M("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return Te().useDebugValue(e,t)},t.useDeferredValue=function(e){return Te().useDeferredValue(e)},t.useEffect=function(e,t){return Te().useEffect(e,t)},t.useId=function(){return Te().useId()},t.useImperativeHandle=function(e,t,n){return Te().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return Te().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return Te().useLayoutEffect(e,t)},t.useMemo=function(e,t){return Te().useMemo(e,t)},t.useReducer=function(e,t,n){return Te().useReducer(e,t,n)},t.useRef=function(e){return Te().useRef(e)},t.useState=function(e){return Te().useState(e)},t.useSyncExternalStore=function(e,t,n){return Te().useSyncExternalStore(e,t,n)},t.useTransition=function(){return Te().useTransition()},t.version="18.3.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(s,s.exports)),s.exports);var l=i.exports,u=n(l);const c=u.createContext(null);c.displayName="TableContext";var d={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,a||e,o),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=new Array(a);i<a;i++)o[i]=r[i].fn;return o},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,a,o){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,a),!0;case 6:return c.fn.call(c.context,t,r,i,a,o),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,i);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||o(this,a);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:o(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(d);var h=n(d.exports);var f=(e,t)=>Object.prototype.toString.call(e)===`[object ${t}]`;var p=function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"boolean"==typeof e:!0===e||!1===e||f(e,"Boolean")};var g=e=>"function"==typeof e;var m=e=>null==e;var y=e=>null!=e;var v=e=>{const t=typeof e;return null!==e&&"object"===t||"function"===t};var b=e=>"object"==typeof e&&null!==e;var x=function(e){if(!b(e)||!f(e,"Object"))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t};var S=function(e){const t=typeof e;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"string"===t:"string"===t||f(e,"String")};var w=e=>Array.isArray?Array.isArray(e):f(e,"Array");var _=function(e){return null!==e&&"function"!=typeof e&&Number.isFinite(e.length)};var T=function(e){const t=typeof e;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"number"===t:"number"===t||f(e,"Number")};var A=e=>T(e)&&Number.isFinite(e);var k=e=>new RegExp(/^(http(s)?:\/\/)\w+[^\s]+(\.[^\s]+){1,}$/).test(e);var C=e=>new RegExp(/^data:image\/(?:gif|png|jpeg|bmp|webp|svg\+xml)(?:;charset=utf-8)?;base64,(?:[A-Za-z0-9]|[+/])+={0,2}/g).test(e);var E=e=>({}.toString.call(e).replace(/^\[object /,"").replace(/]$/,""));const P=Object.prototype;var B=function(e){const t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||P)};const R=Object.prototype.hasOwnProperty;function M(e){if(m(e))return!0;if(_(e))return!e.length;const t=E(e);if("Map"===t||"Set"===t)return!e.size;if(B(e))return!Object.keys(e).length;for(const t in e)if(R.call(e,t))return!1;return!0}const L=Object.prototype.hasOwnProperty;var O=(e,t)=>null!=e&&L.call(e,t);function I(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t){if(e===t)return;if(y(t)&&"object"==typeof t){const i=Object(t),a=[];for(const e in i)a.push(e);let{length:o}=a,s=-1;for(;o--;){const o=a[++s];!y(i[o])||"object"!=typeof i[o]||r&&w(e[o])?D(e,o,i[o]):N(e,t,o,n,r)}}}}function N(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const a=e[n],o=t[n];let s=t[n],l=!0;if(w(o)){if(r)s=[];else if(w(a))s=a;else if(_(a)){s=new Array(a.length);let e=-1;const t=a.length;for(;++e<t;)s[e]=a[e]}}else x(o)?(s=null!=a?a:{},"function"!=typeof a&&"object"==typeof a||(s={})):l=!1;l&&I(s,o,r,i),D(e,n,s)}function D(e,t,n){(void 0!==n&&!function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}(e[t],n)||void 0===n&&!(t in e))&&(e[t]=n)}function U(e){let t=-1;const n=arguments.length<=1?0:arguments.length-1;for(;++t<n;)I(e,t+1<1||arguments.length<=t+1?void 0:arguments[t+1],!0);return e}function z(e,t){if(!e||!x(e))return e;const n={};return Object.keys(e).forEach((r=>{const i=e[r];let a=!1;t.forEach((e=>{(S(e)&&e===r||e instanceof RegExp&&r.match(e))&&(a=!0)})),a||(n[r]=i)})),n}function F(e){return Object.prototype.toString.call(e)}function j(e){return Object.keys(e)}function W(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(null==e||null==t)return!1;if(Number.isNaN(e)&&Number.isNaN(t))return!0;if(F(e)!==F(t))return!1;if(g(e))return!!(null==n?void 0:n.skipFunction);if("object"!=typeof e)return!1;if(w(e)){if(e.length!==t.length)return!1;for(let r=e.length-1;r>=0;r--)if(!W(e[r],t[r],n))return!1;return!0}if(!x(e))return!1;const r=j(e),i=j(t);if(r.length!==i.length)return!1;r.sort(),i.sort();for(let e=r.length-1;e>=0;e--)if(r[e]!=i[e])return!1;for(let i=r.length-1;i>=0;i--){const a=r[i];if(!W(e[a],t[a],n))return!1}return!0}function H(e,t){if(!w(e)||!w(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const $="undefined"!=typeof console;function V(e,t,n){const r=[t].concat([].slice.call(n));$&&console[e].apply(console,r)}var G;!function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Info=3]="Info",e[e.Debug=4]="Debug"}(G||(G={}));class Y{static getInstance(e,t){return Y._instance&&T(e)?Y._instance.level(e):Y._instance||(Y._instance=new Y(e,t)),Y._instance}static setInstance(e){return Y._instance=e}static setInstanceLevel(e){Y._instance?Y._instance.level(e):Y._instance=new Y(e)}static clearInstance(){Y._instance=null}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G.None,t=arguments.length>1?arguments[1]:void 0;this._onErrorHandler=[],this._level=e,this._method=t}addErrorHandler(e){this._onErrorHandler.find((t=>t===e))||this._onErrorHandler.push(e)}removeErrorHandler(e){const t=this._onErrorHandler.findIndex((t=>t===e));t<0||this._onErrorHandler.splice(t,1)}callErrorHandler(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._onErrorHandler.forEach((e=>e(...t)))}canLogInfo(){return this._level>=G.Info}canLogDebug(){return this._level>=G.Debug}canLogError(){return this._level>=G.Error}canLogWarn(){return this._level>=G.Warn}level(e){return arguments.length?(this._level=+e,this):this._level}error(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._level>=G.Error&&(this._onErrorHandler.length?this.callErrorHandler(...n):V(null!==(e=this._method)&&void 0!==e?e:"error","ERROR",n)),this}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._level>=G.Warn&&V(this._method||"warn","WARN",t),this}info(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._level>=G.Info&&V(this._method||"log","INFO",t),this}debug(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._level>=G.Debug&&V(this._method||"log","DEBUG",t),this}}Y._instance=null;var q=function(e,t,n){return e<t?t:e>n?n:e};const Q=1e-12,X=Math.PI,K=X/2,Z=2*X,J=2*Math.PI,ee=Math.abs,te=Math.atan2,ne=Math.cos,re=Math.max,ie=Math.min,ae=Math.sin,oe=Math.sqrt,se=Math.pow;function le(e){return e>=1?K:e<=-1?-K:Math.asin(e)}class ue{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;this.x=0,this.y=0,this.x=e,this.y=t,this.x1=n,this.y1=r}clone(){return new ue(this.x,this.y)}copyFrom(e){return this.x=e.x,this.y=e.y,this.x1=e.x1,this.y1=e.y1,this.defined=e.defined,this.context=e.context,this}set(e,t){return this.x=e,this.y=t,this}add(e){return T(e)?(this.x+=e,void(this.y+=e)):(this.x+=e.x,this.y+=e.y,this)}sub(e){return T(e)?(this.x-=e,void(this.y-=e)):(this.x-=e.x,this.y-=e.y,this)}multi(e){throw new Error("暂不支持")}div(e){throw new Error("暂不支持")}}class ce{static distancePP(e,t){return oe(se(e.x-t.x,2)+se(e.y-t.y,2))}static distanceNN(e,t,n,r){return oe(se(e-n,2)+se(t-r,2))}static distancePN(e,t,n){return oe(se(t-e.x,2)+se(n-e.y,2))}static pointAtPP(e,t,n){return new ue((t.x-e.x)*n+e.x,(t.y-e.y)*n+e.y)}}function de(e,t,n){const{x1:r,y1:i,x2:a,y2:o}=t;return n.onlyTranslate()?(e!==t&&e.setValue(t.x1,t.y1,t.x2,t.y2),e.translate(n.e,n.f),t):(e.clear(),e.add(n.a*r+n.c*i+n.e,n.b*r+n.d*i+n.f),e.add(n.a*a+n.c*i+n.e,n.b*a+n.d*i+n.f),e.add(n.a*a+n.c*o+n.e,n.b*a+n.d*o+n.f),e.add(n.a*r+n.c*o+n.e,n.b*r+n.d*o+n.f),t)}class he{constructor(e){e?this.setValue(e.x1,e.y1,e.x2,e.y2):this.clear()}clone(){return new he(this)}clear(){return this.x1=+Number.MAX_VALUE,this.y1=+Number.MAX_VALUE,this.x2=-Number.MAX_VALUE,this.y2=-Number.MAX_VALUE,this}empty(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE}equals(e){return this.x1===e.x1&&this.y1===e.y1&&this.x2===e.x2&&this.y2===e.y2}setValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.x1=e,this.y1=t,this.x2=n,this.y2=r,this}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return n<e?(this.x2=e,this.x1=n):(this.x1=e,this.x2=n),r<t?(this.y2=t,this.y1=r):(this.y1=t,this.y2=r),this}add(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e<this.x1&&(this.x1=e),t<this.y1&&(this.y1=t),e>this.x2&&(this.x2=e),t>this.y2&&(this.y2=t),this}expand(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return w(e)?(this.y1-=e[0],this.x2+=e[1],this.y2+=e[2],this.x1-=e[3]):(this.x1-=e,this.y1-=e,this.x2+=e,this.y2+=e),this}round(){return this.x1=Math.floor(this.x1),this.y1=Math.floor(this.y1),this.x2=Math.ceil(this.x2),this.y2=Math.ceil(this.y2),this}translate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x1+=e,this.x2+=e,this.y1+=t,this.y2+=t,this}rotate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=this.rotatedPoints(e,t,n);return this.clear().add(r[0],r[1]).add(r[2],r[3]).add(r[4],r[5]).add(r[6],r[7])}scale(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const i=this.scalePoints(e,t,n,r);return this.clear().add(i[0],i[1]).add(i[2],i[3])}union(e){return e.x1<this.x1&&(this.x1=e.x1),e.y1<this.y1&&(this.y1=e.y1),e.x2>this.x2&&(this.x2=e.x2),e.y2>this.y2&&(this.y2=e.y2),this}intersect(e){return e.x1>this.x1&&(this.x1=e.x1),e.y1>this.y1&&(this.y1=e.y1),e.x2<this.x2&&(this.x2=e.x2),e.y2<this.y2&&(this.y2=e.y2),this}encloses(e){return e&&this.x1<=e.x1&&this.x2>=e.x2&&this.y1<=e.y1&&this.y2>=e.y2}alignsWith(e){return e&&(this.x1===e.x1||this.x2===e.x2||this.y1===e.y1||this.y2===e.y2)}intersects(e){return e&&!(this.x2<e.x1||this.x1>e.x2||this.y2<e.y1||this.y1>e.y2)}contains(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!(e<this.x1||e>this.x2||t<this.y1||t>this.y2)}containsPoint(e){return!(e.x<this.x1||e.x>this.x2||e.y<this.y1||e.y>this.y2)}width(){return this.empty()?0:this.x2-this.x1}height(){return this.empty()?0:this.y2-this.y1}scaleX(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.x1*=e,this.x2*=e,this}scaleY(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.y1*=e,this.y2*=e,this}transformWithMatrix(e){return de(this,this,e),this}copy(e){return this.x1=e.x1,this.y1=e.y1,this.x2=e.x2,this.y2=e.y2,this}rotatedPoints(e,t,n){const{x1:r,y1:i,x2:a,y2:o}=this,s=Math.cos(e),l=Math.sin(e),u=t-t*s+n*l,c=n-t*l-n*s;return[s*r-l*i+u,l*r+s*i+c,s*r-l*o+u,l*r+s*o+c,s*a-l*i+u,l*a+s*i+c,s*a-l*o+u,l*a+s*o+c]}scalePoints(e,t,n,r){const{x1:i,y1:a,x2:o,y2:s}=this;return[e*i+(1-e)*n,t*a+(1-t)*r,e*o+(1-e)*n,t*s+(1-t)*r]}}class fe extends he{}const pe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e<0)for(;e<-Z;)e+=Z;else if(e>0)for(;e>Z;)e-=Z;return e};class ge{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;this.a=e,this.b=t,this.c=n,this.d=r,this.e=i,this.f=a}equalToMatrix(e){return!(this.e!==e.e||this.f!==e.f||this.a!==e.a||this.d!==e.d||this.b!==e.b||this.c!==e.c)}equalTo(e,t,n,r,i,a){return!(this.e!==i||this.f!==a||this.a!==e||this.d!==r||this.b!==t||this.c!==n)}setValue(e,t,n,r,i,a){return this.a=e,this.b=t,this.c=n,this.d=r,this.e=i,this.f=a,this}reset(){return this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0,this}getInverse(){const e=this.a,t=this.b,n=this.c,r=this.d,i=this.e,a=this.f,o=new ge,s=e*r-t*n;return o.a=r/s,o.b=-t/s,o.c=-n/s,o.d=e/s,o.e=(n*a-r*i)/s,o.f=-(e*a-t*i)/s,o}rotate(e){const t=Math.cos(e),n=Math.sin(e),r=this.a*t+this.c*n,i=this.b*t+this.d*n,a=this.a*-n+this.c*t,o=this.b*-n+this.d*t;return this.a=r,this.b=i,this.c=a,this.d=o,this}rotateByCenter(e,t,n){const r=Math.cos(e),i=Math.sin(e),a=(1-r)*t+i*n,o=(1-r)*n-i*t,s=r*this.a-i*this.b,l=i*this.a+r*this.b,u=r*this.c-i*this.d,c=i*this.c+r*this.d,d=r*this.e-i*this.f+a,h=i*this.e+r*this.f+o;return this.a=s,this.b=l,this.c=u,this.d=c,this.e=d,this.f=h,this}scale(e,t){return this.a*=e,this.b*=e,this.c*=t,this.d*=t,this}setScale(e,t){return this.b=this.b/this.a*e,this.c=this.c/this.d*t,this.a=e,this.d=t,this}transform(e,t,n,r,i,a){return this.multiply(e,t,n,r,i,a),this}translate(e,t){return this.e+=this.a*e+this.c*t,this.f+=this.b*e+this.d*t,this}transpose(){const{a:e,b:t,c:n,d:r,e:i,f:a}=this;return this.a=t,this.b=e,this.c=r,this.d=n,this.e=a,this.f=i,this}multiply(e,t,n,r,i,a){const o=this.a,s=this.b,l=this.c,u=this.d,c=o*e+l*t,d=s*e+u*t,h=o*n+l*r,f=s*n+u*r,p=o*i+l*a+this.e,g=s*i+u*a+this.f;return this.a=c,this.b=d,this.c=h,this.d=f,this.e=p,this.f=g,this}interpolate(e,t){const n=new ge;return n.a=this.a+(e.a-this.a)*t,n.b=this.b+(e.b-this.b)*t,n.c=this.c+(e.c-this.c)*t,n.d=this.d+(e.d-this.d)*t,n.e=this.e+(e.e-this.e)*t,n.f=this.f+(e.f-this.f)*t,n}transformPoint(e,t){const{a:n,b:r,c:i,d:a,e:o,f:s}=this,l=n*a-r*i,u=a/l,c=-r/l,d=-i/l,h=n/l,f=(i*s-a*o)/l,p=-(n*s-r*o)/l,{x:g,y:m}=e;t.x=g*u+m*d+f,t.y=g*c+m*h+p}onlyTranslate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.a===e&&0===this.b&&0===this.c&&this.d===e}clone(){return new ge(this.a,this.b,this.c,this.d,this.e,this.f)}toTransformAttrs(){const e=this.a,t=this.b,n=this.c,r=this.d,i=e*r-t*n,a={x:this.e,y:this.f,rotateDeg:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!==e||0!==t){const o=Math.sqrt(e*e+t*t);a.rotateDeg=t>0?Math.acos(e/o):-Math.acos(e/o),a.scaleX=o,a.scaleY=i/o,a.skewX=(e*n+t*r)/i,a.skewY=0}else if(0!==n||0!==r){const o=Math.sqrt(n*n+r*r);a.rotateDeg=Math.PI/2-(r>0?Math.acos(-n/o):-Math.acos(n/o)),a.scaleX=i/o,a.scaleY=o,a.skewX=0,a.skewY=(e*n+t*r)/i}return a.rotateDeg=180*a.rotateDeg/Math.PI,a}}function me(e,t,n){t/=100,n/=100;const r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e/60%2-1)),a=n-r/2;let o=0,s=0,l=0;return 0<=e&&e<60?(o=r,s=i,l=0):60<=e&&e<120?(o=i,s=r,l=0):120<=e&&e<180?(o=0,s=r,l=i):180<=e&&e<240?(o=0,s=i,l=r):240<=e&&e<300?(o=i,s=0,l=r):300<=e&&e<360&&(o=r,s=0,l=i),o=Math.round(255*(o+a)),s=Math.round(255*(s+a)),l=Math.round(255*(l+a)),{r:o,g:s,b:l}}function ye(e,t,n){e/=255,t/=255,n/=255;const r=Math.min(e,t,n),i=Math.max(e,t,n),a=i-r;let o=0,s=0,l=0;return o=0===a?0:i===e?(t-n)/a%6:i===t?(n-e)/a+2:(e-t)/a+4,o=Math.round(60*o),o<0&&(o+=360),l=(i+r)/2,s=0===a?0:a/(1-Math.abs(2*l-1)),s=+(100*s).toFixed(1),l=+(100*l).toFixed(1),{h:o,s:s,l:l}}const ve=/^#([0-9a-f]{3,8})$/,be={transparent:4294967040},xe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Se(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function we(e){return T(e)?new Ce(e>>16,e>>8&255,255&e,1):w(e)?new Ce(e[0],e[1],e[2]):new Ce(255,255,255)}function _e(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function Te(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}const Ae=(e,t)=>{const n=ve.exec(e);if(t||n){const e=parseInt(n[1],16),t=n[1].length;return 3===t?new Ce((e>>8&15)+((e>>8&15)<<4),(e>>4&15)+((e>>4&15)<<4),(15&e)+((15&e)<<4),1):6===t?we(e):8===t?new Ce(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):null}};class ke{static Brighter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return 1===t?e:new ke(e).brighter(t).toRGBA()}static SetOpacity(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return 1===t?e:new ke(e).setOpacity(t).toRGBA()}static getColorBrightness(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hsl";const n=e instanceof ke?e:new ke(e);switch(t){case"hsv":default:return n.getHSVBrightness();case"hsl":return n.getHSLBrightness();case"lum":return n.getLuminance();case"lum2":return n.getLuminance2();case"lum3":return n.getLuminance3()}}static parseColorString(e){if(y(be[e]))return function(e){return T(e)?new Ce(e>>>24,e>>>16&255,e>>>8&255,255&e):w(e)?new Ce(e[0],e[1],e[2],e[3]):new Ce(255,255,255,1)}(be[e]);if(y(xe[e]))return we(xe[e]);const t=`${e}`.trim().toLowerCase(),n=Ae(t);if(void 0!==n)return n;if(/^(rgb|RGB|rgba|RGBA)/.test(t)){const e=t.replace(/(?:\(|\)|rgba|RGBA|rgb|RGB)*/g,"").split(",");return new Ce(parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10),parseFloat(e[3]))}if(/^(hsl|HSL|hsla|HSLA)/.test(t)){const e=t.replace(/(?:\(|\)|hsla|HSLA|hsl|HSL)*/g,"").split(","),n=me(parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10));return new Ce(n.r,n.g,n.b,parseFloat(e[3]))}}constructor(e){const t=ke.parseColorString(e);this.color=t||new Ce(255,255,255)}toRGBA(){return this.color.formatRgb()}toString(){return this.color.formatRgb()}toHex(){return this.color.formatHex()}toHsl(){return this.color.formatHsl()}brighter(e){const{r:t,g:n,b:r}=this.color;return this.color.r=Math.max(0,Math.min(255,Math.floor(t*e))),this.color.g=Math.max(0,Math.min(255,Math.floor(n*e))),this.color.b=Math.max(0,Math.min(255,Math.floor(r*e))),this}add(e){const{r:t,g:n,b:r}=this.color;return this.color.r+=Math.min(255,t+e.color.r),this.color.g+=Math.min(255,n+e.color.g),this.color.b+=Math.min(255,r+e.color.b),this}sub(e){return this.color.r=Math.max(0,this.color.r-e.color.r),this.color.g=Math.max(0,this.color.g-e.color.g),this.color.b=Math.max(0,this.color.b-e.color.b),this}multiply(e){const{r:t,g:n,b:r}=this.color;return this.color.r=Math.max(0,Math.min(255,Math.floor(t*e.color.r))),this.color.g=Math.max(0,Math.min(255,Math.floor(n*e.color.g))),this.color.b=Math.max(0,Math.min(255,Math.floor(r*e.color.b))),this}getHSVBrightness(){return Math.max(this.color.r,this.color.g,this.color.b)/255}getHSLBrightness(){return.5*(Math.max(this.color.r,this.color.g,this.color.b)/255+Math.min(this.color.r,this.color.g,this.color.b)/255)}setHsl(e,t,n){const r=this.color.opacity,i=ye(this.color.r,this.color.g,this.color.b),a=me(m(e)?i.h:q(e,0,360),m(t)?i.s:t>=0&&t<=1?100*t:t,m(n)?i.l:n<=1&&n>=0?100*n:n);return this.color=new Ce(a.r,a.g,a.b,r),this}setRGB(e,t,n){return!m(e)&&(this.color.r=e),!m(t)&&(this.color.g=t),!m(n)&&(this.color.b=n),this}setHex(e){const t=`${e}`.trim().toLowerCase(),n=Ae(t,!0);return null!=n?n:this}setColorName(e){const t=xe[e.toLowerCase()];return void 0!==t&&this.setHex(t),this}setScalar(e){return this.color.r=e,this.color.g=e,this.color.b=e,this}setOpacity(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.color.opacity=e,this}getLuminance(){return(.2126*this.color.r+.7152*this.color.g+.0722*this.color.b)/255}getLuminance2(){return(.2627*this.color.r+.678*this.color.g+.0593*this.color.b)/255}getLuminance3(){return(.299*this.color.r+.587*this.color.g+.114*this.color.b)/255}clone(){return new ke(this.color.toString())}copyGammaToLinear(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return this.color.r=Math.pow(e.color.r,t),this.color.g=Math.pow(e.color.g,t),this.color.b=Math.pow(e.color.b,t),this}copyLinearToGamma(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=t>0?1/t:1;return this.color.r=Math.pow(e.color.r,n),this.color.g=Math.pow(e.color.g,n),this.color.b=Math.pow(e.color.b,n),this}convertGammaToLinear(e){return this.copyGammaToLinear(this,e),this}convertLinearToGamma(e){return this.copyLinearToGamma(this,e),this}copySRGBToLinear(e){return this.color.r=_e(e.color.r),this.color.g=_e(e.color.g),this.color.b=_e(e.color.b),this}copyLinearToSRGB(e){return this.color.r=Te(e.color.r),this.color.g=Te(e.color.g),this.color.b=Te(e.color.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}}class Ce{constructor(e,t,n,r){this.r=isNaN(+e)?255:Math.max(0,Math.min(255,+e)),this.g=isNaN(+t)?255:Math.max(0,Math.min(255,+t)),this.b=isNaN(+n)?255:Math.max(0,Math.min(255,+n)),y(r)?this.opacity=isNaN(+r)?1:Math.max(0,Math.min(1,+r)):this.opacity=1}formatHex(){return`#${Se(this.r)+Se(this.g)+Se(this.b)+(1===this.opacity?"":Se(255*this.opacity))}`}formatRgb(){const e=this.opacity;return`${1===e?"rgb(":"rgba("}${this.r},${this.g},${this.b}${1===e?")":`,${e})`}`}formatHsl(){const e=this.opacity,{h:t,s:n,l:r}=ye(this.r,this.g,this.b);return`${1===e?"hsl(":"hsla("}${t},${n}%,${r}%${1===e?")":`,${e})`}`}toString(){return this.formatHex()}}const Ee=(e,t)=>{const{x1:n,x2:r,y1:i,y2:a}=e,o=Math.abs(r-n),s=Math.abs(a-i);let l=(n+r)/2,u=(i+a)/2,c=0,d=0;switch(t){case"top":case"inside-top":d=-.5;break;case"bottom":case"inside-bottom":d=.5;break;case"left":case"inside-left":c=-.5;break;case"right":case"inside-right":c=.5;break;case"top-right":c=.5,d=-.5;break;case"top-left":c=-.5,d=-.5;break;case"bottom-right":c=.5,d=.5;break;case"bottom-left":c=-.5,d=.5}return l+=c*o,u+=d*s,{x:l,y:u}};const Pe=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(";").forEach((t=>{if(t){const n=t.split(":");if(2===n.length){const t=n[0].trim(),r=n[1].trim();t&&r&&(e[t]=r)}}})),e},Be=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase();var Re,Me={exports:{}},Le={};var Oe,Ie={};
|
|
11
|
+
/**
|
|
12
|
+
* @license React
|
|
13
|
+
* react-is.development.js
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/"production"===production?Me.exports=function(){if(Re)return Le;Re=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case r:case a:case i:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case u:case f:case h:case o:return e;default:return p}}case n:return p}}}return e=Symbol.for("react.module.reference"),Le.ContextConsumer=s,Le.ContextProvider=o,Le.Element=t,Le.ForwardRef=u,Le.Fragment=r,Le.Lazy=f,Le.Memo=h,Le.Portal=n,Le.Profiler=a,Le.StrictMode=i,Le.Suspense=c,Le.SuspenseList=d,Le.isAsyncMode=function(){return!1},Le.isConcurrentMode=function(){return!1},Le.isContextConsumer=function(e){return g(e)===s},Le.isContextProvider=function(e){return g(e)===o},Le.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Le.isForwardRef=function(e){return g(e)===u},Le.isFragment=function(e){return g(e)===r},Le.isLazy=function(e){return g(e)===f},Le.isMemo=function(e){return g(e)===h},Le.isPortal=function(e){return g(e)===n},Le.isProfiler=function(e){return g(e)===a},Le.isStrictMode=function(e){return g(e)===i},Le.isSuspense=function(e){return g(e)===c},Le.isSuspenseList=function(e){return g(e)===d},Le.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===i||t===c||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===h||t.$$typeof===o||t.$$typeof===s||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},Le.typeOf=g,Le}():Me.exports=(Oe||(Oe=1,"production"!==production&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case r:case a:case i:case c:case d:return g;default:var m=g&&g.$$typeof;switch(m){case l:case s:case u:case f:case h:case o:return m;default:return p}}case n:return p}}}e=Symbol.for("react.module.reference");var m=s,y=o,v=t,b=u,x=r,S=f,w=h,_=n,T=a,A=i,k=c,C=d,E=!1,P=!1;Ie.ContextConsumer=m,Ie.ContextProvider=y,Ie.Element=v,Ie.ForwardRef=b,Ie.Fragment=x,Ie.Lazy=S,Ie.Memo=w,Ie.Portal=_,Ie.Profiler=T,Ie.StrictMode=A,Ie.Suspense=k,Ie.SuspenseList=C,Ie.isAsyncMode=function(e){return E||(E=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Ie.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Ie.isContextConsumer=function(e){return g(e)===s},Ie.isContextProvider=function(e){return g(e)===o},Ie.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ie.isForwardRef=function(e){return g(e)===u},Ie.isFragment=function(e){return g(e)===r},Ie.isLazy=function(e){return g(e)===f},Ie.isMemo=function(e){return g(e)===h},Ie.isPortal=function(e){return g(e)===n},Ie.isProfiler=function(e){return g(e)===a},Ie.isStrictMode=function(e){return g(e)===i},Ie.isSuspense=function(e){return g(e)===c},Ie.isSuspenseList=function(e){return g(e)===d},Ie.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===i||t===c||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===h||t.$$typeof===o||t.$$typeof===s||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},Ie.typeOf=g}()),Ie);var Ne=Me.exports;const De=e=>{let t=[];return u.Children.forEach(e,(e=>{m(e)||(Ne.isFragment(e)?t=t.concat(De(e.props.children)):t.push(e))})),t},Ue={...t.TABLE_EVENT_TYPE,...t.PIVOT_TABLE_EVENT_TYPE,...t.PIVOT_CHART_EVENT_TYPE},ze={onClickCell:Ue.CLICK_CELL,onDblClickCell:Ue.DBLCLICK_CELL,onMouseDownCell:Ue.MOUSEDOWN_CELL,onMouseUpCell:Ue.MOUSEUP_CELL,onSelectedCell:Ue.SELECTED_CELL,onSelectedClear:Ue.SELECTED_CLEAR,onKeyDown:Ue.KEYDOWN,onMouseEnterTable:Ue.MOUSEENTER_TABLE,onMouseLeaveTable:Ue.MOUSELEAVE_TABLE,onMouseDownTable:Ue.MOUSEDOWN_TABLE,onMouseMoveCell:Ue.MOUSEMOVE_CELL,onMouseEnterCell:Ue.MOUSEENTER_CELL,onMouseLeaveCell:Ue.MOUSELEAVE_CELL,onContextMenuCell:Ue.CONTEXTMENU_CELL,onResizeColumn:Ue.RESIZE_COLUMN,onResizeColumnEnd:Ue.RESIZE_COLUMN_END,onChangeHeaderPosition:Ue.CHANGE_HEADER_POSITION,onSortClick:Ue.SORT_CLICK,onFreezeClick:Ue.FREEZE_CLICK,onScroll:Ue.SCROLL,onDropdownMenuClick:Ue.DROPDOWN_MENU_CLICK,onMouseOverChartSymbol:Ue.MOUSEOVER_CHART_SYMBOL,onDragSelectEnd:Ue.DRAG_SELECT_END,onDropdownIconClick:Ue.DROPDOWN_ICON_CLICK,onDropdownMenuClear:Ue.DROPDOWN_MENU_CLEAR,onTreeHierarchyStateChange:Ue.TREE_HIERARCHY_STATE_CHANGE,onShowMenu:Ue.SHOW_MENU,onHideMenu:Ue.HIDE_MENU,onIconClick:Ue.ICON_CLICK,onLegendItemClick:Ue.LEGEND_ITEM_CLICK,onLegendItemHover:Ue.LEGEND_ITEM_HOVER,onLegendItemUnHover:Ue.LEGEND_ITEM_UNHOVER,onLegendChange:Ue.LEGEND_CHANGE,onMouseEnterAxis:Ue.MOUSEENTER_AXIS,onMouseLeaveAxis:Ue.MOUSELEAVE_AXIS,onCheckboxStateChange:Ue.CHECKBOX_STATE_CHANGE,onRadioStateChange:Ue.RADIO_STATE_CHANGE,onAfterRender:Ue.AFTER_RENDER,onInitialized:Ue.INITIALIZED,onPivotSortClick:Ue.PIVOT_SORT_CLICK,onDrillMenuClick:Ue.DRILLMENU_CLICK,onVChartEventType:Ue.VCHART_EVENT_TYPE,onChangCellValue:Ue.CHANGE_CELL_VALUE,onMousedownFillHandle:Ue.MOUSEDOWN_FILL_HANDLE,onDragFillHandleEnd:Ue.DRAG_FILL_HANDLE_END,onDblclickFillHandle:Ue.DBLCLICK_FILL_HANDLE,onScrollVerticalEnd:Ue.SCROLL_VERTICAL_END,onScrollHorizontalEnd:Ue.SCROLL_HORIZONTAL_END},Fe=Object.keys(ze),je=(e,t=ze)=>{const n={};return Object.keys(e).forEach((r=>{t[r]&&e[r]&&(n[r]=e[r])})),n},We=(e,t,n,r=ze)=>{if(!t&&!n||!e)return!1;const i=n?je(n,r):null,a=t?je(t,r):null;return i&&Object.keys(i).forEach((t=>{a&&a[t]&&a[t]===i[t]||e.off(r[t],n[t])})),a&&Object.keys(a).forEach((t=>{i&&i[t]&&i[t]===a[t]||e.on(r[t],a[t])})),!0};class He{static GenAutoIncrementId(){return He.auto_increment_id++}}He.auto_increment_id=0;class $e{constructor(e){this.id=He.GenAutoIncrementId(),this.registry=e}}const Ve="named",Ge="inject",Ye="inversify:tagged",qe="inversify:paramtypes";class Qe{constructor(e,t){this.key=e,this.value=t}toString(){return this.key===Ve?`named: ${String(this.value).toString()} `:`tagged: { key:${this.key.toString()}, value: ${String(this.value)} }`}}var Xe=function(e){var t;return function(e){const t="function"==typeof Symbol&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",n=Object.getPrototypeOf(Function),r=("object"==typeof process&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL,Map),i=new WeakMap;function a(e,t,n){let a=i.get(e);if(u(a)){if(!n)return;a=new r,i.set(e,a)}let o=a.get(t);if(u(o)){if(!n)return;o=new r,a.set(t,o)}return o}function o(e,t,n){if(s(e,t,n))return!0;const r=g(t);return!c(r)&&o(e,r,n)}function s(e,t,n){const r=a(t,n,!1);return!u(r)&&!!r.has(e)}function l(e,t,n){if(s(e,t,n))return function(e,t,n){const r=a(t,n,!1);if(!u(r))return r.get(e)}(e,t,n);const r=g(t);return c(r)?void 0:l(e,r,n)}function u(e){return void 0===e}function c(e){return null===e}function d(e){return"object"==typeof e?null!==e:"function"==typeof e}function h(e,n){switch(function(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}const r=3===n?"string":5===n?"number":"default",i=function(e,t){const n=e[t];if(null!=n){if(!p(n))throw new TypeError;return n}}(e,t);if(void 0!==i){const t=i.call(e,r);if(d(t))throw new TypeError;return t}return function(e,t){if("string"===t){const t=e.toString;if(p(t)){const n=t.call(e);if(!d(n))return n}const n=e.valueOf;if(p(n)){const t=n.call(e);if(!d(t))return t}}else{const t=e.valueOf;if(p(t)){const n=t.call(e);if(!d(n))return n}const n=e.toString;if(p(n)){const t=n.call(e);if(!d(t))return t}}throw new TypeError}(e,"default"===r?"number":r)}function f(e){const t=h(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function p(e){return"function"==typeof e}function g(e){const t=Object.getPrototypeOf(e);if("function"!=typeof e||e===n)return t;if(t!==n)return t;const r=e.prototype,i=r&&Object.getPrototypeOf(r);if(null==i||i===Object.prototype)return t;const a=i.constructor;return"function"!=typeof a||a===e?t:a}e("defineMetadata",(function(e,t,n,r){if(!d(n))throw new TypeError;return i=e,o=t,void a(n,r,!0).set(i,o);var i,o})),e("hasMetadata",(function(e,t,n){if(!d(t))throw new TypeError;return u(n)||(n=f(n)),o(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!d(t))throw new TypeError;return u(n)||(n=f(n)),s(e,t,n)})),e("getMetadata",(function(e,t,n){if(!d(t))throw new TypeError;return u(n)||(n=f(n)),l(e,t,n)}))}((t=e,function(e,n){"function"!=typeof t[e]&&Object.defineProperty(t,e,{configurable:!0,writable:!0,value:n})})),e}({});function Ke(e,t,n,r){!function(e,t,n,r){const i=[r];let a={};Xe.hasOwnMetadata(e,t)&&(a=Xe.getMetadata(e,t));let o=a[n];void 0===o&&(o=[]),o.push(...i),a[n]=o,Xe.defineMetadata(e,a,t)}(Ye,e,n.toString(),r)}function Ze(e){return(t,n,r)=>{Ke(t,0,r,e)}}const Je=(et=Ge,e=>(t,n,r)=>Ze(new Qe(et,e))(t,n,r));var et;function tt(){return function(e){return Xe.defineMetadata(qe,null,e),e}}function nt(e){return Ze(new Qe(Ve,e))}const rt="Singleton",it="Transient",at="ConstantValue",ot="DynamicValue",st="Factory",lt="Function",ut="Instance",ct="Invalid";class dt{constructor(e,t){this.id=He.GenAutoIncrementId(),this.activated=!1,this.serviceIdentifier=e,this.scope=t,this.type=ct,this.constraint=e=>!0,this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.dynamicValue=null}clone(){const e=new dt(this.serviceIdentifier,this.scope);return e.activated=e.scope===rt&&this.activated,e.implementationType=this.implementationType,e.dynamicValue=this.dynamicValue,e.scope=this.scope,e.type=this.type,e.provider=this.provider,e.constraint=this.constraint,e.cache=this.cache,e}}class ht{getConstructorMetadata(e){return{compilerGeneratedMetadata:Xe.getMetadata(qe,e),userGeneratedMetadata:Xe.getMetadata(Ye,e)||{}}}getPropertiesMetadata(e){throw new Error("暂未实现")}}const ft=(pt=Ve,e=>{const t=t=>{if(null==t)return!1;if(t.key===pt&&t.value===e)return!0;if(null==t.constructorArgsMetadata)return!1;const n=t.constructorArgsMetadata;for(let t=0;t<n.length;t++)if(n[t].key===pt&&n[t].value===e)return!0;return!1};return t.metaData=new Qe(pt,e),t});var pt;class gt{constructor(e){this._binding=e}inRequestScope(){throw new Error("暂未实现")}inSingletonScope(){return this._binding.scope=rt,this}inTransientScope(){return this._binding.scope=it,this}whenTargetNamed(e){return this._binding.constraint=ft(e),this}}class mt{constructor(e){this._binding=e}to(e){return this._binding.type=ut,this._binding.implementationType=e,new gt(this._binding)}toSelf(){const e=this._binding.serviceIdentifier;return this.to(e)}toDynamicValue(e){return this._binding.type=ot,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new gt(this._binding)}toConstantValue(e){return this._binding.type=at,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=rt,new gt(this._binding)}toFactory(e){return this._binding.type=st,this._binding.factory=e,this._binding.scope=rt,new gt(this._binding)}toService(e){this.toDynamicValue((t=>t.container.get(e)))}}const yt=Symbol("ContributionProvider");class vt{constructor(e,t){this.serviceIdentifier=e,this.container=t}getContributions(){return this.caches||(this.caches=[],this.container&&this.container.isBound(this.serviceIdentifier)&&this.caches.push(...this.container.getAll(this.serviceIdentifier))),this.caches}}function bt(e,t){e(yt).toDynamicValue((e=>{let{container:n}=e;return new vt(t,n)})).inSingletonScope().whenTargetNamed(t)}class xt{constructor(e,t){this._args=e,this.name=t,this.taps=[]}tap(e,t){this._tap("sync",e,t)}unTap(e,t){const n="string"==typeof e?e.trim():e.name;n&&(this.taps=this.taps.filter((e=>!(e.name===n&&(!t||e.fn===t)))))}_parseOptions(e,t,n){let r;if("string"==typeof t)r={name:t.trim()};else if("object"!=typeof t||null===t)throw new Error("Invalid tap options");if("string"!=typeof r.name||""===r.name)throw new Error("Missing name for tap");return r=Object.assign({type:e,fn:n},r),r}_tap(e,t,n){this._insert(this._parseOptions(e,t,n))}_insert(e){let t;"string"==typeof e.before?t=new Set([e.before]):Array.isArray(e.before)&&(t=new Set(e.before));let n=0;"number"==typeof e.stage&&(n=e.stage);let r=this.taps.length;for(;r>0;){r--;const e=this.taps[r];this.taps[r+1]=e;const i=e.stage||0;if(t){if(t.has(e.name)){t.delete(e.name);continue}if(t.size>0)continue}if(!(i>n)){r++;break}}this.taps[r]=e}}class St extends xt{call(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.taps.map((e=>e.fn)).forEach((e=>e(...t)))}}const wt=Symbol.for("EnvContribution"),_t=Z-1e-8;class Tt{constructor(e){this.init(e)}init(e){this.bounds=e}arc(e,t,n,r,i,a){if(Math.abs(i-r)>_t)return this.bounds.add(e-n,t-n),void this.bounds.add(e+n,t+n);let o,s,l,u,c=1/0,d=-1/0,h=1/0,f=-1/0;function p(e){l=n*Math.cos(e),u=n*Math.sin(e),l<c&&(c=l),l>d&&(d=l),u<h&&(h=u),u>f&&(f=u)}if(p(r),p(i),i!==r)if((r%=Z)<0&&(r+=Z),(i%=Z)<0&&(i+=Z),i<r&&(a=!a,o=r,r=i,i=o),a)for(i-=Z,o=r-r%K,s=0;s<4&&o>i;++s,o-=K)p(o);else for(o=r-r%K+K,s=0;s<4&&o<i;++s,o+=K)p(o);this.bounds.add(e+c,t+h),this.bounds.add(e+d,t+f)}arcTo(e,t,n,r,i){throw new Error("不支持arcTo")}bezierCurveTo(e,t,n,r,i,a){this.bounds.add(e,t),this.bounds.add(n,r),this.bounds.add(i,a)}closePath(){}ellipse(){throw new Error("不支持ellipse")}lineTo(e,t){this.bounds.add(e,t)}moveTo(e,t){this.bounds.add(e,t)}quadraticCurveTo(e,t,n,r){this.bounds.add(e,t),this.bounds.add(n,r)}rect(e,t,n,r){this.bounds.add(e,t),this.bounds.add(e+n,t+r)}clear(){this.bounds.clear()}release(){}}class At{constructor(){this.curves=[],this.bounds=new fe}getCurveLengths(){return this.curves.map((e=>e.getLength()))}getPointAt(e){return{x:0,y:0}}getLength(){return 0}getBounds(){return this.bounds}}const kt=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,Ct={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7,M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7},Et=0,Pt=1,Bt=2,Rt=3,Mt=4,Lt=5,Ot=6,It=7,Nt=8;let Dt,Ut,zt,Ft,jt,Wt;var Ht,$t,Vt,Gt,Yt,qt,Qt,Xt,Kt;function Zt(e,t,n,r,i,a,o,s,l){const u=o*(Math.PI/180),c=Math.sin(u),d=Math.cos(u),h=d*(s-e)*.5+c*(l-t)*.5,f=d*(l-t)*.5-c*(s-e)*.5;let p=h*h/((n=Math.abs(n))*n)+f*f/((r=Math.abs(r))*r);p>1&&(p=Math.sqrt(p),n*=p,r*=p);const g=d/n,m=c/n,y=-c/r,v=d/r,b=g*s+m*l,x=y*s+v*l,S=g*e+m*t,w=y*e+v*t;let _=1/((S-b)*(S-b)+(w-x)*(w-x))-.25;_<0&&(_=0);let T=Math.sqrt(_);a===i&&(T=-T);const A=.5*(b+S)-T*(w-x),k=.5*(x+w)+T*(S-b),C=Math.atan2(x-k,b-A);let E=Math.atan2(w-k,S-A)-C;E<0&&1===a?E+=Z:E>0&&0===a&&(E-=Z);const P=Math.ceil(Math.abs(E/(K+.001))),B=[];for(let e=0;e<P;++e){const t=C+e*E/P,i=C+(e+1)*E/P;B[e]=[A,k,t,i,n,r,c,d]}return B}function Jt(e){const t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=l*a,c=-s*o,d=s*a,h=l*o,f=Math.cos(r),p=Math.sin(r),g=Math.cos(i),m=Math.sin(i),y=.5*(i-r),v=Math.sin(.5*y),b=8/3*v*v/Math.sin(y),x=t+f-b*p,S=n+p+b*f,w=t+g,_=n+m,T=w+b*m,A=_-b*g;return[u*x+c*S,d*x+h*S,u*T+c*A,d*T+h*A,u*w+c*_,d*w+h*_]}function en(e,t,n,r){const i=Zt(r[5],r[6],r[0],r[1],r[3],r[4],r[2],t,n);for(let t=0;t<i.length;++t){const n=Jt(i[t]);e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}}!function(e){e[e.NONE=0]="NONE",e[e.UPDATE_BOUNDS=1]="UPDATE_BOUNDS",e[e.UPDATE_SHAPE=2]="UPDATE_SHAPE",e[e.CLEAR_SHAPE=253]="CLEAR_SHAPE",e[e.UPDATE_SHAPE_AND_BOUNDS=3]="UPDATE_SHAPE_AND_BOUNDS",e[e.INIT=179]="INIT",e[e.CLEAR_BOUNDS=254]="CLEAR_BOUNDS",e[e.UPDATE_GLOBAL_MATRIX=32]="UPDATE_GLOBAL_MATRIX",e[e.CLEAR_GLOBAL_MATRIX=223]="CLEAR_GLOBAL_MATRIX",e[e.UPDATE_LOCAL_MATRIX=16]="UPDATE_LOCAL_MATRIX",e[e.CLEAR_LOCAL_MATRIX=239]="CLEAR_LOCAL_MATRIX",e[e.UPDATE_GLOBAL_LOCAL_MATRIX=48]="UPDATE_GLOBAL_LOCAL_MATRIX",e[e.UPDATE_LAYOUT=128]="UPDATE_LAYOUT",e[e.CLEAR_LAYOUT=127]="CLEAR_LAYOUT"}(Ht||(Ht={})),function(e){e[e.GLOBAL=1]="GLOBAL",e[e.LOCAL=16]="LOCAL",e[e.GLOBAL_ACCURATE=3]="GLOBAL_ACCURATE",e[e.LOCAL_ACCURATE=48]="LOCAL_ACCURATE"}($t||($t={})),function(e){e[e.INIT=0]="INIT",e[e.DEFAULT=1]="DEFAULT",e[e.STATE=2]="STATE",e[e.ANIMATE_BIND=10]="ANIMATE_BIND",e[e.ANIMATE_PLAY=11]="ANIMATE_PLAY",e[e.ANIMATE_START=12]="ANIMATE_START",e[e.ANIMATE_UPDATE=13]="ANIMATE_UPDATE",e[e.ANIMATE_END=14]="ANIMATE_END",e[e.TRANSLATE=20]="TRANSLATE",e[e.TRANSLATE_TO=21]="TRANSLATE_TO",e[e.SCALE=22]="SCALE",e[e.SCALE_TO=23]="SCALE_TO",e[e.ROTATE=24]="ROTATE",e[e.ROTATE_TO=25]="ROTATE_TO"}(Vt||(Vt={})),function(e){e[e.INITIAL=0]="INITIAL",e[e.RUNNING=1]="RUNNING",e[e.PAUSED=2]="PAUSED",e[e.END=3]="END"}(Gt||(Gt={})),function(e){e[e.NORMAL=0]="NORMAL",e[e.SET_ATTR_IMMEDIATELY=1]="SET_ATTR_IMMEDIATELY"}(Yt||(Yt={})),function(e){e.wait="wait",e.from="from",e.to="to",e.customAnimate="customAnimate"}(qt||(qt={})),function(e){e[e.ROW=1]="ROW",e[e.COLUMN=2]="COLUMN"}(Qt||(Qt={})),function(e){e[e.CubicBezierCurve=0]="CubicBezierCurve",e[e.QuadraticBezierCurve=1]="QuadraticBezierCurve",e[e.ArcCurve=2]="ArcCurve",e[e.LineCurve=3]="LineCurve",e[e.EllipseCurve=4]="EllipseCurve",e[e.MoveCurve=5]="MoveCurve"}(Xt||(Xt={})),function(e){e[e.beforeFillStroke=0]="beforeFillStroke",e[e.afterFillStroke=1]="afterFillStroke"}(Kt||(Kt={}));const tn=[(e,t,n,r,i,a,o)=>t.arc(e[1]*i+n,e[2]*a+r,e[3]*(i+a)/2,e[4],e[5],e[6],o),(e,t,n,r,i,a,o)=>t.arcTo(e[1]*i+n,e[2]*a+r,e[3]*i+n,e[4]*a+r,e[5]*(i+a)/2,o),(e,t,n,r,i,a,o)=>t.bezierCurveTo(e[1]*i+n,e[2]*a+r,e[3]*i+n,e[4]*a+r,e[5]*i+n,e[6]*a+r,o),(e,t,n,r)=>t.closePath(),(e,t,n,r,i,a)=>t.ellipse(e[1]*i+n,e[2]*a+r,e[3]*i,e[4]*a,e[5],e[6],e[7],e[8]),(e,t,n,r,i,a,o)=>t.lineTo(e[1]*i+n,e[2]*a+r,o),(e,t,n,r,i,a,o)=>t.moveTo(e[1]*i+n,e[2]*a+r,o),(e,t,n,r,i,a,o)=>t.quadraticCurveTo(e[1]*i+n,e[2]*a+r,e[3]*i+n,e[4]*a+r,o),(e,t,n,r,i,a,o)=>t.rect(e[1]*i+n,e[2]*a+r,e[3]*i,e[4]*a,o)];function nn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=arguments.length>6?arguments[6]:void 0;for(let s=0;s<e.length;s++){const l=e[s];tn[l[0]](l,t,n,r,i,a,o)}}class rn{getLength(e){return null!=e?this.calcProjLength(e):(Number.isFinite(this.length)||(this.length=this.calcLength()),this.length)}}function an(e,t,n,r,i){return function(e,t){let n=0;const r=e.length;for(let i=0;i<r;i++){const a=e[i],o=t[i],s=e[(i+1)%r],l=t[(i+1)%r];n+=ce.distanceNN(a,o,s,l)}return n/2}([e.x,t.x,n.x,r.x],[e.y,t.y,n.y,r.y])}function on(e,t,n,r,i){const a=1-i;return a*a*a*e+3*t*i*a*a+3*n*i*i*a+r*i*i*i}class sn extends rn{constructor(e,t,n,r){super(),this.type=Xt.CubicBezierCurve,this.p0=e,this.p1=t,this.p2=n,this.p3=r}_validPoint(){return Number.isFinite(this.p0.x+this.p0.y+this.p1.x+this.p1.y+this.p2.x+this.p2.y+this.p3.x+this.p3.y)}getPointAt(e){if(!1!==this.defined)return function(e,t,n,r,i){const a=on(e.x,t.x,n.x,r.x,i),o=on(e.y,t.y,n.y,r.y,i);return new ue(a,o)}(this.p0,this.p1,this.p2,this.p3,e);throw new Error("defined为false的点不能getPointAt")}calcLength(){return this._validPoint()?an(this.p0,this.p1,this.p2,this.p3):60}calcProjLength(e){return e===Qt.ROW?ee(this.p0.x-this.p3.x):e===Qt.COLUMN?ee(this.p0.y-this.p3.y):0}getAngleAt(e){const t=re(e-.01,0),n=ie(e+.01,1),r=this.getPointAt(t),i=this.getPointAt(n);return te(i.y-r.y,i.x-r.x)}}class ln extends rn{constructor(e,t){super(),this.type=Xt.LineCurve,this.p0=e,this.p1=t}getPointAt(e){if(!1!==this.defined)return ce.pointAtPP(this.p0,this.p1,e);throw new Error("defined为false的点不能getPointAt")}getAngleAt(e){return null==this.angle&&(this.angle=te(this.p1.y-this.p0.y,this.p1.x-this.p0.x)),this.angle}_validPoint(){return Number.isFinite(this.p0.x+this.p0.y+this.p1.x+this.p1.y)}calcLength(){return this._validPoint()?ce.distancePP(this.p0,this.p1):60}calcProjLength(e){return e===Qt.ROW?ee(this.p0.x-this.p1.x):e===Qt.COLUMN?ee(this.p0.y-this.p1.y):0}}class un{get endX(){return this._lastX}get endY(){return this._lastY}constructor(e,t){this.init(e,t)}init(e,t){this._lastX=this._lastY=this._startX=this._startY=0,this.curveType=e,this.direction=t,this.curves=[]}bezierCurveTo(e,t,n,r,i,a,o,s){const l=new sn(new ue(this._lastX,this._lastY),new ue(e,t),new ue(n,r),new ue(i,a));l.originP1=this._lastOriginP,l.originP2=s,l.defined=o,this.curves.push(l),this._lastX=i,this._lastY=a,this._lastOriginP=s}closePath(){if(this.curves.length<2)return;const e=this.curves[this.curves.length-1];this.lineTo(this._startX,this._startY,e.defined,this._startOriginP)}ellipse(){throw new Error("SegContext不支持调用ellipse")}lineTo(e,t,n,r){const i=this.addLinearCurve(e,t,n,this._lastOriginP,r);this.curves.push(i),this._lastX=e,this._lastY=t,this._lastOriginP=r}moveTo(e,t,n){return this._lastX=this._startX=e,this._lastY=this._startY=t,this._lastOriginP=n,this._startOriginP=n,this}quadraticCurveTo(e,t,n,r){throw new Error("SegContext不支持调用quadraticCurveTo")}clear(){this.curves=[],this.length=NaN}tryUpdateLength(e){return this.getLength(e)}addLinearCurve(e,t,n,r,i){const a=new ln(new ue(this._lastX,this._lastY),new ue(e,t));return a.originP1=r,a.originP2=i,a.defined=n,a}getPointAt(e){throw new Error("暂未实现")}getCurveLengths(){return[]}getLength(e){var t,n;if(e===Qt.COLUMN){if(!this.curves.length)return 0;const e=this.curves[0],n=this.curves[this.curves.length-1],r=null!==(t=n.p3)&&void 0!==t?t:n.p1;return ee(e.p0.y-r.y)}if(e===Qt.ROW){if(!this.curves.length)return 0;const e=this.curves[0],t=this.curves[this.curves.length-1],r=null!==(n=t.p3)&&void 0!==n?n:t.p1;return ee(e.p0.x-r.x)}return Number.isFinite(this.length)||(this.length=this.curves.reduce(((e,t)=>e+t.getLength()),0)),this.length}}class cn extends un{bezierCurveTo(e,t,n,r,i,a,o,s){return super.bezierCurveTo(t,e,r,n,a,i,o,s)}lineTo(e,t,n,r){return super.lineTo(t,e,n,r)}moveTo(e,t,n){return super.moveTo(t,e,n)}clear(){return super.clear()}}function dn(e,t){let n=!1;for(let r=0,i=t.length;r<=i;r++)r>=i===n&&((n=!n)?e.lineStart():e.lineEnd()),n&&e.point(t[r])}function hn(e,t,n){const r=null!=t?t:ee(n[n.length-1].x-n[0].x)>ee(n[n.length-1].y-n[0].y)?Qt.ROW:Qt.COLUMN;return"monotoneY"===e?new cn(e,r):new un(e,r)}class fn{constructor(e,t){this.context=e,t&&(this.startPoint=t)}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0,this.startPoint&&this.point(this.startPoint)}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this.context.closePath(),this._line=1-this._line}point(e){const t=e.x,n=e.y;switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(t,n,!1!==this._lastDefined&&!1!==e.defined,e):this.context.moveTo(t,n,e);break;case 1:this._point=2;default:this.context.lineTo(t,n,!1!==this._lastDefined&&!1!==e.defined,e)}this._lastDefined=e.defined}tryUpdateLength(){return this.context.tryUpdateLength()}}function pn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{direction:n,startPoint:r}=t;if(e.length<2-Number(!!r))return null;const i=hn("linear",n,e);return function(e,t){dn(e,t)}(new fn(i,r),e),i}function gn(e,t,n,r,i){e.context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6,r,e.lastPoint1)}class mn{constructor(e,t){this.context=e,this.startPoint=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0,this.startPoint&&this.point(this.startPoint)}lineEnd(){2===this._point&&gn(this,6*this._x1-(this._x0+4*this._x1),6*this._y1-(this._y0+4*this._y1),!1!==this._lastDefined1&&!1!==this._lastDefined2,this.lastPoint1),(this._line||0!==this._line&&1===this._point)&&this.context.closePath(),this._line=1-this._line}point(e){const t=e.x,n=e.y;switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(t,n,!1!==this._lastDefined1&&!1!==this._lastDefined2,e):this.context.moveTo(t,n,e);break;case 1:this._point=2;break;default:gn(this,t,n,!1!==this._lastDefined1&&!1!==this._lastDefined2)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._lastDefined1=this._lastDefined2,this._lastDefined2=e.defined,this.lastPoint0=this.lastPoint1,this.lastPoint1=e}tryUpdateLength(){return this.context.tryUpdateLength()}}function yn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{direction:n,startPoint:r}=t;if(e.length<2-Number(!!r))return null;if(e.length<3-Number(!!r))return pn(e,t);const i=hn("basis",n,e);return function(e,t){dn(e,t)}(new mn(i,r),e),i}function vn(e){return e<0?-1:1}function bn(e,t,n){const r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||Number(i<0&&-0)),o=(n-e._y1)/(i||Number(r<0&&-0)),s=(a*i+o*r)/(r+i);return(vn(a)+vn(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function xn(e,t){const n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Sn(e,t,n,r,i){const a=e._x0,o=e._y0,s=e._x1,l=e._y1,u=(s-a)/3;e.context.bezierCurveTo(a+u,o+u*t,s-u,l-u*n,s,l,r,e.lastPoint1)}class wn{constructor(e,t){this.context=e,this.startPoint=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0,this.startPoint&&this.point(this.startPoint)}lineEnd(){switch(this._point){case 2:this.context.lineTo(this._x1,this._y1,!1!==this._lastDefined1&&!1!==this._lastDefined2,this.lastPoint1);break;case 3:Sn(this,this._t0,xn(this,this._t0),!1!==this._lastDefined1&&!1!==this._lastDefined2,this.lastPoint1)}(this._line||0!==this._line&&1===this._point)&&this.context.closePath(),this._line=1-this._line}point(e){let t=NaN;const n=e.x,r=e.y;switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(n,r,!1!==this._lastDefined1&&!1!==this._lastDefined2,e):this.context.moveTo(n,r,e);break;case 1:this._point=2;break;case 2:this._point=3,Sn(this,xn(this,t=bn(this,n,r)),t,!1!==this._lastDefined1&&!1!==this._lastDefined2);break;default:Sn(this,this._t0,t=bn(this,n,r),!1!==this._lastDefined1&&!1!==this._lastDefined2)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=r,this._t0=t,this._lastDefined1=this._lastDefined2,this._lastDefined2=!1!==e.defined,this.lastPoint0=this.lastPoint1,this.lastPoint1=e}tryUpdateLength(){return this.context.tryUpdateLength()}}class _n extends wn{constructor(e,t){super(e,t)}point(e){return super.point({y:e.x,x:e.y,defined:e.defined})}}function Tn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{direction:n,startPoint:r}=t;if(e.length<2-Number(!!r))return null;if(e.length<3-Number(!!r))return pn(e,t);const i=hn("monotoneX",n,e);return function(e,t){dn(e,t)}(new wn(i,r),e),i}function An(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{direction:n,startPoint:r}=t;if(e.length<2-Number(!!r))return null;if(e.length<3-Number(!!r))return pn(e,t);const i=hn("monotoneY",n,e);return function(e,t){dn(e,t)}(new _n(i,r),e),i}let kn=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2?arguments[2]:void 0;this.context=e,this._t=t,this.startPoint=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x=this._y=NaN,this._point=0,this.startPoint&&this.point(this.startPoint)}lineEnd(){0<this._t&&this._t<1&&2===this._point&&this.context.lineTo(this._x,this._y,!1!==this._lastDefined,this.lastPoint),(this._line||0!==this._line&&1===this._point)&&this.context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)}point(e){const t=e.x,n=e.y;switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(t,n,!1!==this._lastDefined&&!1!==e.defined,e):this.context.moveTo(t,n,e);break;case 1:this._point=2;default:if(this._t<=0)this.context.lineTo(this._x,n,!1!==this._lastDefined&&!1!==e.defined,this.lastPoint),this.context.lineTo(t,n,!1!==this._lastDefined&&!1!==e.defined,e);else{const r=this._x*(1-this._t)+t*this._t;this.context.lineTo(r,this._y,!1!==this._lastDefined&&!1!==e.defined,this.lastPoint),this.context.lineTo(r,n,!1!==this._lastDefined&&!1!==e.defined,e)}}this._lastDefined=e.defined,this._x=t,this._y=n,this.lastPoint=e}tryUpdateLength(){return this.context.tryUpdateLength()}};function Cn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{direction:r,startPoint:i}=n;if(e.length<2-Number(!!i))return null;const a=new un("step",null!=r?r:ee(e[e.length-1].x-e[0].x)>ee(e[e.length-1].y-e[0].y)?Qt.ROW:Qt.COLUMN);return function(e,t){dn(e,t)}(new kn(a,t,i),e),a}class En extends fn{lineEnd(){this.context.closePath()}}function Pn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{direction:n,startPoint:r}=t;if(e.length<2-Number(!!r))return null;const i=hn("linear",n,e);return function(e,t){dn(e,t)}(new En(i,r),e),i}function Bn(e,t,n,r,i){let a=e._x1,o=e._y1,s=e._x2,l=e._y2;if(e._l01_a>Q){const t=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,n=3*e._l01_a*(e._l01_a+e._l12_a);a=(a*t-e._x0*e._l12_2a+e._x2*e._l01_2a)/n,o=(o*t-e._y0*e._l12_2a+e._y2*e._l01_2a)/n}if(e._l23_a>Q){const r=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,i=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*r+e._x1*e._l23_2a-t*e._l12_2a)/i,l=(l*r+e._y1*e._l23_2a-n*e._l12_2a)/i}e.context.bezierCurveTo(a,o,s,l,e._x2,e._y2,r,e.lastPoint1)}function Rn(e,t){return function(n,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{direction:a,startPoint:o}=i;if(n.length<2-Number(!!o))return null;if(n.length<3-Number(!!o))return pn(n,i);const s=hn(e,a,n);return dn(new t(s,r,o),n),s}}const Mn=Rn("catmullRom",class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2?arguments[2]:void 0;this.context=e,this.startPoint=n,this._alpha=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0}lineEnd(){switch(this._point){case 2:this.context.lineTo(this._x2,this._y2,!1!==this._lastDefined1&&!1!==this._lastDefined2,this.lastPoint1);break;case 3:this.point({x:this._x2,y:this._y2})}(this._line||0!==this._line&&1===this._point)&&this.context.closePath(),this._line=1-this._line}point(e){const{x:t,y:n}=e;if(this._point){const e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(t,n,!1!==this._lastDefined1&&!1!==this._lastDefined2):this.context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Bn(this,t,n,!1!==this._lastDefined1&&!1!==this._lastDefined2)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n,this._lastDefined1=this._lastDefined2,this._lastDefined2=e.defined,this.lastPoint0=this.lastPoint1,this.lastPoint1=e}tryUpdateLength(){return this.context.tryUpdateLength()}});const Ln=Rn("catmullRomClosed",class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2?arguments[2]:void 0;this.context=e,this.startPoint=n,this._alpha=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0}lineEnd(){switch(this._point){case 1:this.context.moveTo(this._x3,this._y3,this.lastPoint1),this.context.closePath();break;case 2:this.context.lineTo(this._x3,this._y3,!1!==this._lastDefined1&&!1!==this._lastDefined2,this.lastPoint1),this.context.closePath();break;case 3:this.point({x:this._x3,y:this._y3}),this.point({x:this._x4,y:this._y4}),this.point({x:this._x5,y:this._y5})}}point(e){const{x:t,y:n}=e;if(this._point){const e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this.context.moveTo(this._x4=t,this._y4=n,e);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Bn(this,t,n,!1!==this._lastDefined1&&!1!==this._lastDefined2)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n,this._lastDefined1=this._lastDefined2,this._lastDefined2=e.defined,this.lastPoint0=this.lastPoint1,this.lastPoint1=e}tryUpdateLength(){return this.context.tryUpdateLength()}});class On extends At{constructor(e){super(),this.commandList=[],e&&(this._ctx=e),this._boundsContext=new Tt(this.bounds)}setCtx(e){this._ctx=e}moveTo(e,t){return this.commandList.push([Ot,e,t]),this._ctx&&this._ctx.moveTo(e,t),this}lineTo(e,t){return this.commandList.push([Lt,e,t]),this._ctx&&this._ctx.lineTo(e,t),this}quadraticCurveTo(e,t,n,r){return this.commandList.push([It,e,t,n,r]),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this}bezierCurveTo(e,t,n,r,i,a){return this.commandList.push([Bt,e,t,n,r,i,a]),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this}arcTo(e,t,n,r,i){return this.commandList.push([Pt,e,t,n,r,i]),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this}ellipse(e,t,n,r,i,a,o,s){return this.commandList.push([Mt,e,t,n,r,i,a,o,s]),this._ctx&&this._ctx.ellipse(e,t,n,r,i,a,o,s),this}rect(e,t,n,r){return this.commandList.push([Nt,e,t,n,r]),this._ctx&&this._ctx.rect(e,t,n,r),this}arc(e,t,n,r,i,a){return this.commandList.push([Et,e,t,n,r,i,a]),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this}closePath(){return this.commandList.push([Rt]),this._ctx&&this._ctx.closePath(),this}addCurve(e){this.curves.push(e)}clear(){this.transformCbList=null,this.commandList.length=0,this.curves.length=0}beginPath(){this.clear()}toString(){if(!this.toStringCbList){const e=[];e[Ot]=e=>`M${e[1]} ${e[2]}`,e[Lt]=e=>`L${e[1]} ${e[2]}`,e[It]=e=>`Q${e[1]} ${e[2]} ${e[3]} ${e[4]}`,e[Bt]=e=>`C${e[1]} ${e[2]} ${e[3]} ${e[4]} ${e[5]} ${e[6]}`,e[Et]=e=>{const t=[];((e,t,n,r,i,a,o)=>{const s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),d=Math.sin(t),h=Math.cos(n),f=Math.sin(n),p=c*a+r,g=d*o+i,m=h*a+r,y=f*o+i,v=a*l*u,b=o*l*u;e.push(p-v*d,g+b*c,m+v*f,y-b*h,m,y)})(t,e[4],e[5],e[1],e[2],e[3],e[3]);let n="";for(let e=0;e<t.length;e+=6)n+=`C${t[e]} ${t[e+1]} ${t[e+2]} ${t[e+3]} ${t[e+4]} ${t[e+5]}`;return n},e[Nt]=e=>`M${e[1]} ${e[2]} h${e[3]} v${e[4]} H${e[1]}Z`,e[Rt]=e=>"Z",this.toStringCbList=e}const e=this.toStringCbList;let t="";return this.commandList.forEach((n=>{t+=e[n[0]](n)})),t}fromString(e,t,n,r,i){this.clear();const a=function(e){if(!e)return[];const t=e.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);if(null===t)return[];let n,r;const i=[];for(let e=0,a=t.length;e<a;e++)if(Dt=t[e],Ut=Dt.slice(1),zt=Dt[0],n=[zt],r=Ut.match(kt),null!==r){for(let e=0,t=r.length;e<t;e++)Ft=r[e],jt=parseFloat(Ft),Number.isNaN(jt)||n.push(jt);if(Wt=Ct[zt],n.length-1>Wt){let e;for(let t=1,r=n.length;t<r;t+=Wt){e=[zt];for(let r=t,i=t+Wt;r<i;r++)e.push(n[r]);i.push(e)}}else i.push(n)}else i.push(n);return i}(e);return this._runCommandStrList(a,t,n,r,i),this._updateBounds(),this}fromLine(e){const{points:t,curveType:n,clipRangeByDimension:r}=e.attribute;if(!t)return;const i=function(e,t,n){var r,i;switch(t){case"linear":default:return pn(e,n);case"basis":return yn(e,n);case"monotoneX":return Tn(e,n);case"monotoneY":return An(e,n);case"step":return Cn(e,.5,n);case"stepBefore":return Cn(e,0,n);case"stepAfter":return Cn(e,1,n);case"catmullRom":return Mn(e,null!==(r=null==n?void 0:n.curveTension)&&void 0!==r?r:.5,n);case"catmullRomClosed":return Ln(e,null!==(i=null==n?void 0:n.curveTension)&&void 0!==i?i:.5,n);case"linearClosed":return Pn(e,n)}}(t,n);"x"===r?this.direction=Qt.ROW:"y"===r?this.direction=Qt.COLUMN:"auto"===r&&(this.direction=i.direction),this.curves=i.curves}fromCustomPath2D(e,t,n,r,i){return this.clear(),this._runCommandList(e.commandList,t,n,r,i),this._updateBounds(),this}transform(e,t,n,r){const i=this.commandList;if(!this.transformCbList){const e=[];e[Ot]=this.moveToTransform,e[Lt]=this.lineToTransform,e[It]=this.quadraticCurveToTransform,e[Bt]=this.bezierCurveToTransform,e[Pt]=this.arcToTransform,e[Mt]=this.ellipseTransform,e[Nt]=this.rectTransform,e[Et]=this.arcTransform,e[Rt]=this.closePathTransform,this.transformCbList=e}i.forEach((i=>{this.transformCbList[i[0]](i,e,t,n,r)})),this._updateBounds()}moveToTransform(e,t,n,r,i){e[1]=e[1]*r+t,e[2]=e[2]*i+n}lineToTransform(e,t,n,r,i){e[1]=e[1]*r+t,e[2]=e[2]*i+n}quadraticCurveToTransform(e,t,n,r,i){e[1]=e[1]*r+t,e[2]=e[2]*i+n,e[3]=e[3]*r+t,e[4]=e[4]*i+n}bezierCurveToTransform(e,t,n,r,i){e[1]=e[1]*r+t,e[2]=e[2]*i+n,e[3]=e[3]*r+t,e[4]=e[4]*i+n,e[5]=e[5]*r+t,e[6]=e[6]*i+n}arcToTransform(e,t,n,r,i){e[1]=e[1]*r+t,e[2]=e[2]*i+n,e[3]=e[3]*r+t,e[4]=e[4]*i+n,e[5]=e[5]*(r+i)/2}ellipseTransform(e,t,n,r,i){e[1]=e[1]*r+t,e[2]=e[2]*i+n,e[3]=e[3]*r,e[4]=e[4]*i}rectTransform(e,t,n,r,i){e[1]=e[1]*r+t,e[2]=e[2]*i+n,e[3]=e[3]*r,e[4]=e[4]*i}arcTransform(e,t,n,r,i){e[1]=e[1]*r+t,e[2]=e[2]*i+n,e[3]=e[3]*(r+i)/2}closePathTransform(){}_runCommandStrList(e){let t,n,r,i,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,c=null,d=0,h=0,f=0,p=0;for(let g=0,m=e.length;g<m;++g){switch(t=e[g],1===l&&1===u||(t=Nn(t,l,u)),t[0]){case"l":d+=t[1],h+=t[2],this.lineTo(d+o,h+s);break;case"L":d=t[1],h=t[2],this.lineTo(d+o,h+s);break;case"h":d+=t[1],this.lineTo(d+o,h+s);break;case"H":d=t[1],this.lineTo(d+o,h+s);break;case"v":h+=t[1],this.lineTo(d+o,h+s);break;case"V":h=t[1],this.lineTo(d+o,h+s);break;case"m":d+=t[1],h+=t[2],this.moveTo(d+o,h+s);break;case"M":d=t[1],h=t[2],this.moveTo(d+o,h+s);break;case"c":n=d+t[5],r=h+t[6],f=d+t[3],p=h+t[4],this.bezierCurveTo(d+t[1]+o,h+t[2]+s,f+o,p+s,n+o,r+s),d=n,h=r;break;case"C":d=t[5],h=t[6],f=t[3],p=t[4],this.bezierCurveTo(t[1]+o,t[2]+s,f+o,p+s,d+o,h+s);break;case"s":n=d+t[3],r=h+t[4],f=2*d-f,p=2*h-p,this.bezierCurveTo(f+o,p+s,d+t[1]+o,h+t[2]+s,n+o,r+s),f=d+t[1],p=h+t[2],d=n,h=r;break;case"S":n=t[3],r=t[4],f=2*d-f,p=2*h-p,this.bezierCurveTo(f+o,p+s,t[1]+o,t[2]+s,n+o,r+s),d=n,h=r,f=t[1],p=t[2];break;case"q":n=d+t[3],r=h+t[4],f=d+t[1],p=h+t[2],this.quadraticCurveTo(f+o,p+s,n+o,r+s),d=n,h=r;break;case"Q":n=t[3],r=t[4],this.quadraticCurveTo(t[1]+o,t[2]+s,n+o,r+s),d=n,h=r,f=t[1],p=t[2];break;case"t":n=d+t[1],r=h+t[2],null===c[0].match(/[QqTt]/)?(f=d,p=h):"t"===c[0]?(f=2*d-i,p=2*h-a):"q"===c[0]&&(f=2*d-f,p=2*h-p),i=f,a=p,this.quadraticCurveTo(f+o,p+s,n+o,r+s),d=n,h=r,f=d+t[1],p=h+t[2];break;case"T":n=t[1],r=t[2],f=2*d-f,p=2*h-p,this.quadraticCurveTo(f+o,p+s,n+o,r+s),d=n,h=r;break;case"a":en(this,d+o,h+s,[t[1],t[2],t[3],t[4],t[5],t[6]+d+o,t[7]+h+s]),d+=t[6],h+=t[7];break;case"A":en(this,d+o,h+s,[t[1],t[2],t[3],t[4],t[5],t[6]+o,t[7]+s]),d=t[6],h=t[7];break;case"z":case"Z":this.closePath()}c=t}}_runCommandList(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(0!==t||0!==n||1!==r||1!==i)for(let a=0,o=e.length;a<o;++a){const o=e[a].slice();switch(o[0]){case Lt:this.lineToTransform(o,t,n,r,i);break;case Ot:this.moveToTransform(o,t,n,r,i);break;case Bt:this.bezierCurveToTransform(o,t,n,r,i);break;case It:this.quadraticCurveToTransform(o,t,n,r,i);break;case Et:this.arcToTransform(o,t,n,r,i);break;case Mt:this.ellipseTransform(o,t,n,r,i);break;case Nt:this.rectTransform(o,t,n,r,i);break;case Pt:this.arcToTransform(o,t,n,r,i);break;case Rt:this.closePath()}}else this.commandList=e.map((e=>e.slice()))}_updateBounds(){this.bounds.clear(),nn(this.commandList,this._boundsContext)}release(){this.commandList=[],this._boundsContext=null,this._ctx=null}getLength(){if(this.direction===Qt.COLUMN){if(!this.curves.length)return 0;const e=this.curves[0],t=this.curves[this.curves.length-1];return ee(e.p0.y-t.p1.y)}if(this.direction===Qt.ROW){if(!this.curves.length)return 0;const e=this.curves[0],t=this.curves[this.curves.length-1];return ee(e.p0.x-t.p1.x)}return this.curves.reduce(((e,t)=>e+t.getLength()),0)}getAttrAt(e){if(!this.curves)return{pos:{x:0,y:0},angle:0};let t,n=0;for(let r=0;r<this.curves.length;r++){t=this.curves[r];const i=t.getLength(this.direction);if(n+i>=e)break;n+=i}const r=(e-n)/t.getLength(this.direction);return{pos:t.getPointAt(r),angle:t.getAngleAt(r)}}}const In=["l",0,0,0,0,0,0,0];function Nn(e,t,n){const r=In[0]=e[0];if("a"===r||"A"===r)In[1]=t*e[1],In[2]=n*e[2],In[3]=e[3],In[4]=e[4],In[5]=e[5],In[6]=t*e[6],In[7]=n*e[7];else if("h"===r||"H"===r)In[1]=t*e[1];else if("v"===r||"V"===r)In[1]=n*e[1];else for(let r=1,i=e.length;r<i;++r)In[r]=(r%2==1?t:n)*e[r];return In}const Dn={x:0,y:0,z:0,dx:0,dy:0,dz:0,scrollX:0,scrollY:0,scaleX:1,scaleY:1,scaleZ:1,angle:0,alpha:0,beta:0,scaleCenter:[0,0],anchor:[0,0],anchor3d:[0,0],postMatrix:new ge},Un={strokeOpacity:1,lineDash:[],lineDashOffset:0,lineWidth:1,lineCap:"butt",lineJoin:"miter",miterLimit:10,strokeBoundsBuffer:2,stroke:!1},zn=Object.assign({outerBorder:Object.assign(Object.assign({},Un),{distance:0}),innerBorder:Object.assign(Object.assign({},Un),{distance:0})},Un),Fn={text:"",maxLineWidth:1/0,textAlign:"left",textBaseline:"alphabetic",fontSize:16,fontFamily:"PingFang SC,Microsoft Yahei,system-ui,-apple-system,segoe ui,\n Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol",fontWeight:"",ellipsis:"…",fontVariant:"",fontStyle:"",lineHeight:void 0,underline:0,lineThrough:0,scaleIn3d:!1,direction:"horizontal",wordBreak:"break-all",ignoreBuf:!1,verticalMode:0,wrap:!1,whiteSpace:"no-wrap",heightLimit:1/0,lineClamp:1/0,suffixPosition:"end",underlineDash:[],underlineOffset:0,disableAutoClipedPoptip:void 0},jn=Object.assign(Object.assign(Object.assign(Object.assign({forceBoundsWidth:void 0,forceBoundsHeight:void 0,opacity:1,background:null,backgroundOpacity:1,backgroundCornerRadius:0,texture:null,textureColor:"black",textureSize:10,texturePadding:2,backgroundMode:"no-repeat",backgroundFit:!0,blur:0,cursor:null,html:null,react:null},{fillOpacity:1,fill:!1,shadowBlur:0,shadowColor:"black",shadowOffsetX:0,shadowOffsetY:0}),zn),{alignSelf:"auto"}),{pickStrokeBuffer:0}),Wn={connectedType:"none",connectedStyle:{},connectedX:NaN,connectedY:NaN},Hn=Object.assign(Object.assign(Object.assign({strokeSeg:null,renderable:!0,pickable:!0,shadowGraphic:void 0,childrenPickable:!0,fillPickable:!0,strokePickable:!0,visible:!0,zIndex:0,layout:null,boundsPadding:0,renderStyle:"default",pickMode:"accurate",customPickShape:null,boundsMode:"accurate",keepDirIn3d:!0,shadowRootIdx:1,globalZIndex:1,globalCompositeOperation:"",overflow:"hidden",shadowPickMode:"graphic"},{_debug_bounds:!1}),jn),Dn),$n=Object.assign(Object.assign({},Hn),{startAngle:0,endAngle:J,innerRadius:0,outerRadius:1,innerPadding:0,outerPadding:0,cornerRadius:0,padRadius:0,padAngle:0,cap:!1,forceShowCap:!1}),Vn=Object.assign(Object.assign(Object.assign({},Hn),Wn),{points:[],segments:[],curveType:"linear",clipRange:1,closePath:!1,curveTension:1}),Gn=Object.assign(Object.assign({},Hn),{radius:1,startAngle:0,endAngle:J}),Yn=Object.assign(Object.assign({},Hn),{width:0,height:0,cornerRadius:0,path:[],clip:!1,visibleAll:!0,display:"relative",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"flex-start",alignContent:"flex-start",baseOpacity:1}),qn=Object.assign(Object.assign({},Hn),{path:"",width:0,height:0,cornerRadius:0,clip:!1}),Qn=Object.assign(Object.assign(Object.assign({},Hn),Wn),{points:[],segments:[],curveType:"linear",clipRange:1,clipRangeByDimension:"default",closePath:!1,curveTension:1}),Xn=Object.assign(Object.assign({},Hn),{path:new On,customPath:()=>{Y.getInstance().warn("空函数")}}),Kn=Object.assign(Object.assign({},Hn),{points:[],cornerRadius:0,closePath:!0}),Zn=Object.assign(Object.assign({},Hn),{width:0,height:0,x1:0,y1:0,strokeBoundsBuffer:0,cornerRadius:0});Object.assign(Object.assign({},Hn),{width:0,height:0,x1:0,y1:0,cornerRadius:0,length:0});const Jn=Object.assign(Object.assign({},Hn),{symbolType:"circle",size:10,keepDirIn3d:!0}),er=Object.assign(Object.assign(Object.assign({},Hn),Fn),{strokeBoundsBuffer:0,keepDirIn3d:!0}),tr=Object.assign(Object.assign(Object.assign({},Hn),Fn),{editable:!1,width:300,height:300,ellipsis:!0,wordBreak:"break-word",verticalDirection:"top",textAlign:"left",textBaseline:"top",layoutDirection:"horizontal",textConfig:[],disableAutoWrapLine:!1,maxHeight:void 0,maxWidth:void 0,singleLine:!1}),nr=Object.assign(Object.assign({repeatX:"no-repeat",repeatY:"no-repeat",image:"",width:0,height:0},Hn),{fill:!0,cornerRadius:0}),rr=Object.assign(Object.assign({},nr),{backgroundShowMode:"never",backgroundWidth:0,backgroundHeight:0,textAlign:"left",textBaseline:"middle",direction:"horizontal",margin:0,id:"",width:20,height:20,backgroundFill:"rgba(101, 117, 168, 0.1)",backgroundFillOpacity:1,backgroundStroke:!1,backgroundStrokeOpacity:1,backgroundRadius:4,opacity:1});const ir=new class{},ar={horizontal:{width:"width",height:"height",left:"left",top:"top",x:"x",y:"y",bottom:"bottom"},vertical:{width:"height",height:"width",left:"top",top:"left",x:"y",y:"x",bottom:"right"}},or=!0,sr=!1,lr=/\w|\(|\)|-/,ur=/[.?!,;:/,。?!、;:]/,cr=/\S/,dr=(e,t)=>{let n=t.fontSize||16;switch(t.script){case"super":case"sub":n*=.8}e.setTextStyle({textAlign:"left",textBaseline:t.textBaseline||"alphabetic",fontStyle:t.fontStyle||"",fontWeight:t.fontWeight||"",fontSize:n,fontFamily:t.fontFamily||"sans-serif"})};function hr(e,t,n,r,i){if(!t||t<=0)return 0;const a=ir.graphicUtil.textMeasure;let o=r,s=e.slice(0,o),l=Math.floor(a.measureText(s,n).width),u=e.slice(0,o+1),c=Math.floor(a.measureText(u,n).width);for(;l>t||c<=t;){if(l>t?o--:o++,o>e.length){o=e.length;break}if(o<0){o=0;break}s=e.slice(0,o),l=Math.floor(a.measureText(s,n).width),u=e.slice(0,o+1),c=Math.floor(a.measureText(u,n).width)}return i&&(o=function(e,t){let n=t;for(;lr.test(e[n-1])&&lr.test(e[n])||ur.test(e[n]);)if(n--,n<=0)return t;return n}(e,o)),o}function fr(e,t){const n=ir.graphicUtil.textMeasure.measureText(e,t),r={ascent:0,height:0,descent:0,width:0};return"number"!=typeof n.actualBoundingBoxAscent||"number"!=typeof n.actualBoundingBoxDescent?(r.width=Math.floor(n.width),r.height=t.fontSize||0,r.ascent=r.height,r.descent=0):(r.width=Math.floor(n.width),r.height=Math.floor(n.actualBoundingBoxAscent+n.actualBoundingBoxDescent),r.ascent=Math.floor(n.actualBoundingBoxAscent),r.descent=r.height-r.ascent),r}const pr=new class{constructor(e){const t=e||{};t.defaultScope=t.defaultScope||it,this.options=t,this.id=He.GenAutoIncrementId(),this._bindingDictionary=new Map,this._metadataReader=new ht}load(e){const t=this._getContainerModuleHelpersFactory()(e.id);e.registry(t.bindFunction,t.unbindFunction,t.isboundFunction,t.rebindFunction)}get(e){const t=this._getNotAllArgs(e,!1);return this._get(t)}getAll(e){const t=this._getAllArgs(e);return this._get(t)}getTagged(e,t,n){const r=this._getNotAllArgs(e,!1,t,n);return this._get(r)}getNamed(e,t){return this.getTagged(e,Ve,t)}isBound(e){return this._bindingDictionary.has(e)}bind(e){const t=this.options.defaultScope,n=new dt(e,t),r=this._bindingDictionary.get(e)||[];return r.push(n),this._bindingDictionary.set(e,r),new mt(n)}unbind(e){this._bindingDictionary.delete(e)}rebind(e){return this.unbind(e),this.bind(e)}_getContainerModuleHelpersFactory(){const e=(e,t)=>{e._binding.moduleId=t},t=t=>n=>{const r=this.bind(n);return e(r,t),r},n=()=>e=>this.unbind(e),r=()=>e=>this.isBound(e),i=t=>n=>{const r=this.rebind(n);return e(r,t),r};return e=>({bindFunction:t(e),isboundFunction:r(),rebindFunction:i(e),unbindFunction:n(),unbindAsyncFunction:e=>null})}_getNotAllArgs(e,t,n,r){return{avoidConstraints:!1,isMultiInject:t,serviceIdentifier:e,key:n,value:r}}_getAllArgs(e){return{avoidConstraints:!0,isMultiInject:!0,serviceIdentifier:e}}_get(e){const t=[];return this._bindingDictionary.get(e.serviceIdentifier).filter((t=>t.constraint(e))).forEach((e=>{t.push(this._resolveFromBinding(e))})),e.isMultiInject||1!==t.length?t:t[0]}_getChildRequest(e){const t=e.implementationType,{userGeneratedMetadata:n}=this._metadataReader.getConstructorMetadata(t),r=Object.keys(n),i=[];for(let e=0;e<r.length;e++){const t=n[e],r={};t.forEach((e=>{r[e.key]=e.value}));const a={inject:r[Ge],multiInject:r.multi_inject},o=a.inject||a.multiInject,s={serviceIdentifier:o,constructorArgsMetadata:t},l={injectIdentifier:o,metadata:t,bindings:this._bindingDictionary.get(o).filter((e=>e.constraint(s)))};i.push(l)}return i}_resolveFromBinding(e){const t=this._getResolvedFromBinding(e);return this._saveToScope(e,t),t}_getResolvedFromBinding(e){let t;switch(e.type){case at:case lt:t=e.cache;break;case ut:t=this._resolveInstance(e,e.implementationType);break;default:t=e.dynamicValue({container:this})}return t}_resolveInstance(e,t){if(e.activated)return e.cache;const n=this._getChildRequest(e);return this._createInstance(t,n)}_createInstance(e,t){return t.length?new e(...this._resolveRequests(t)):new e}_resolveRequests(e){return e.map((e=>e.bindings.length>1?e.bindings.map((e=>this._resolveFromBinding(e))):this._resolveFromBinding(e.bindings[0])))}_saveToScope(e,t){e.scope===rt&&(e.cache=t,e.activated=!0)}},gr=Symbol.for("CanvasFactory");function mr(e){return pr.getNamed(gr,ir.global.env)(e)}const yr=new class{constructor(){this.pools=[],this.allocatedCanvas=[]}shareCanvas(){return this.allocatedCanvas.length?this.allocatedCanvas[0]:this.getCommonCanvas()}getCommonCanvas(){return this._commonCanvas||(this._commonCanvas=this.allocate({width:100,height:100,dpr:2})),this._commonCanvas}allocate(e){if(!this.pools.length){const t=mr(Object.assign({nativeCanvas:ir.global.createCanvas(e)},e));return this.allocatedCanvas.push(t),t}const t=this.pools.pop();return t.resize(e.width,e.height),t.dpr=e.dpr,t}allocateByObj(e){if(!this.pools.length){const t={width:e.width/e.dpr,height:e.height/e.dpr,dpr:e.dpr},n=mr(Object.assign({nativeCanvas:ir.global.createCanvas(t)},t));return this.allocatedCanvas.push(n),n}const t=this.pools.pop();return t.width=e.width,t.height=e.height,t}free(e){this.pools.push(e)}get length(){return this.pools.length}release(){this.pools=[]}},vr={arc:$n,area:Vn,circle:Gn,line:Qn,path:Xn,symbol:Jn,text:er,rect:Zn,polygon:Kn,richtext:tr,richtextIcon:rr,image:nr,group:Yn,glyph:qn},br=Object.keys(vr);function xr(e,t){Object.keys(t).forEach((n=>{e[n]=t[n]}))}const Sr={arc:Object.assign({},vr.arc),area:Object.assign({},vr.area),circle:Object.assign({},vr.circle),line:Object.assign({},vr.line),path:Object.assign({},vr.path),symbol:Object.assign({},vr.symbol),text:Object.assign({},vr.text),rect:Object.assign({},vr.rect),polygon:Object.assign({},vr.polygon),richtext:Object.assign({},vr.richtext),richtextIcon:Object.assign({},vr.richtextIcon),image:Object.assign({},vr.image),group:Object.assign({},vr.group),glyph:Object.assign({},vr.glyph)};class wr{constructor(){this.initTheme(),this.dirty=!1}initTheme(){this._defaultTheme={},br.forEach((e=>{this._defaultTheme[e]=Object.create(Sr[e])})),this.combinedTheme=this._defaultTheme}getTheme(e){if(!e)return this.combinedTheme;if(!this.dirty)return this.combinedTheme;let t={};const n=this.getParentWithTheme(e);return n&&(t=n.theme),this.applyTheme(e,t),this.combinedTheme}getParentWithTheme(e){for(;e.parent;)if((e=e.parent).theme)return e;return null}applyTheme(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.dirty){const r=this.getParentWithTheme(e);if(r){const e=r.theme;(e.dirty||n)&&e.applyTheme(r,t,!0)}this.userTheme?this.doCombine(r&&r.theme.combinedTheme):(r?this.combinedTheme=r.theme.combinedTheme:(this.combinedTheme=this._defaultTheme,Y.getInstance().warn("未知错误,走到不应该走的区域里")),this.dirty=!1)}return this.combinedTheme}doCombine(e){const t=this.userTheme,n=this.combinedTheme;br.forEach((r=>{const i=Object.create(Sr[r]);e&&e[r]&&xr(i,e[r]),n[r]&&xr(i,n[r]),t[r]&&xr(i,t[r]),this.combinedTheme[r]=i})),t.common&&br.forEach((e=>{xr(this.combinedTheme[e],t.common)})),this.dirty=!1}setTheme(e,t){let n=this.userTheme;n?Object.keys(e).forEach((t=>{n[t]?Object.assign(n[t],e[t]):n[t]=Object.assign({},e[t])})):n=e,this.userTheme=n,this.dirty=!0,this.dirtyChildren(t)}resetTheme(e,t){this.userTheme=e,this.dirty=!0,this.dirtyChildren(t)}dirtyChildren(e){e.forEachChildren((e=>{e.isContainer&&(e.theme&&(e.theme.dirty=!0),this.dirtyChildren(e))}))}}const _r=new wr;function Tr(e,t){return e.glyphHost?Tr(e.glyphHost):t?(e.isContainer,t):function(e){let t;if(t=e.isContainer?e:e.parent,t){for(;t&&!t.theme;)t=t.parent;return t?(t.theme||t.createTheme(),t.theme.getTheme(t)):_r.getTheme()}return null}(e)||e.attachedThemeGraphic&&Tr(e.attachedThemeGraphic)||_r.getTheme()}var Ar=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))};class kr extends h{get previousSibling(){return this._prev}get nextSibling(){return this._next}get children(){return this.getChildren()}get firstChild(){return this._firstChild}get lastChild(){return this._lastChild}get count(){return this._count}get childrenCount(){return this._idMap?this._idMap.size:0}constructor(){super(),this._uid=He.GenAutoIncrementId(),this._firstChild=null,this._lastChild=null,this.parent=null,this._count=1}forEachChildren(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){let t=this._lastChild,n=0;for(;t;){if(e(t,n++))return;t=t._prev}}else{let t=this._firstChild,n=0;for(;t;){if(e(t,n++))return;t=t._next}}}forEachChildrenAsync(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Ar(this,void 0,void 0,(function*(){if(t){let t=this._lastChild,n=0;for(;t;){let r=e(t,n++);if(r.then&&(r=yield r),r)return;t=t._prev}}else{let t=this._firstChild,n=0;for(;t;){let r=e(t,n++);if(r.then&&(r=yield r),r)return;t=t._next}}}))}forEach(e){return this.forEachChildren(e)}appendChild(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._uid===e._uid)return null;if(!t&&e.isAncestorsOf(this))throw new Error("【Node::appendChild】不能将父辈元素append为子元素");return e.parent&&e.parent.removeChild(e),e.parent=this,this._lastChild?(this._lastChild._next=e,e._prev=this._lastChild,this._lastChild=e):(this._firstChild=this._lastChild=e,e._prev=e._next=null),this._idMap||(this._idMap=new Map),this._idMap.set(e._uid,e),this.setCount(e.count),this._structEdit=!0,e}appendChildArrHighPerformance(e){return e}insertBefore(e,t){if(!t)return this.appendChild(e);if(this._uid===e._uid)return null;if(e.isAncestorsOf(this))throw new Error("【Node::insertBefore】不能将父辈元素insert为子元素");return t.parent!==this?null:(e.parent&&e.parent.removeChild(e),e.parent=this,e._prev=t._prev,t._prev?t._prev._next=e:this._firstChild=e,t._prev=e,e._next=t,this._idMap||(this._idMap=new Map),this._idMap.set(e._uid,e),this._structEdit=!0,this.setCount(e.count),e)}insertAfter(e,t){if(!t)return this.appendChild(e);if(this._uid===e._uid)return null;if(e.isAncestorsOf(this))throw new Error("【Node::insertAfter】不能将父辈元素insert为子元素");return t.parent!==this?null:(e.parent&&e.parent.removeChild(e),e.parent=this,t._next?(t._next._prev=e,e._next=t._next):this._lastChild=e,t._next=e,e._prev=t,this._idMap||(this._idMap=new Map),this._idMap.set(e._uid,e),this._structEdit=!0,this.setCount(e.count),e)}insertInto(e,t){if(!this._ignoreWarn&&this._nodeList&&Y.getInstance().warn("insertIntoKeepIdx和insertInto混用可能会存在错误"),t>=this.childrenCount)return this.appendChild(e);if(this._uid===e._uid)return null;if(e.isAncestorsOf(this))throw new Error("【Node::insertBefore】不能将父辈元素insert为子元素");if(e.parent&&e.parent.removeChild(e),e.parent=this,0===t)e._next=this._firstChild,this._firstChild&&(this._firstChild._prev=e),e._prev=null,this._firstChild=e;else{let n=this._firstChild;for(let e=0;e<t;e++){if(!n)return null;e>0&&(n=n._next)}if(!n)return null;e._next=n._next,e._prev=n,n._next=e,e._next&&(e._next._prev=e)}return this._idMap||(this._idMap=new Map),this._idMap.set(e._uid,e),this._structEdit=!0,this.setCount(e.count),e}insertIntoKeepIdx(e,t){if(this._nodeList||(this._nodeList=this.children),this._nodeList[t]){const n=this._nodeList[t];return this._nodeList.splice(t,0,e),this.insertBefore(e,n)}let n;this._nodeList[t]=e;for(let e=t-1;e>=0&&(n=this._nodeList[e],!n);e--);if(n)return n._next?this.insertBefore(e,n._next):this.appendChild(e);this._ignoreWarn=!0;const r=this.insertInto(e,0);return this._ignoreWarn=!1,r}removeChild(e){if(!this._idMap)return null;if(!this._idMap.has(e._uid))return null;if(this._idMap.delete(e._uid),this._nodeList){const t=this._nodeList.findIndex((t=>t===e));t>=0&&this._nodeList.splice(t,1)}return e._prev?e._prev._next=e._next:this._firstChild=e._next,e._next?e._next._prev=e._prev:this._lastChild=e._prev,e.parent=null,e._prev=null,e._next=null,this._structEdit=!0,this.setCount(-e.count),e}delete(){this.parent&&this.parent.removeChild(this)}removeAllChild(e){if(!this._idMap)return;this._nodeList&&(this._nodeList.length=0);let t=this._firstChild;for(;t;){const e=t._next;t.parent=null,t._prev=null,t._next=null,t=t._next,t=e}this._firstChild=null,this._lastChild=null,this._idMap.clear(),this._structEdit=!0,this.setCount(1-this._count)}replaceChild(e,t){throw new Error("暂不支持")}find(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null;return this.forEachChildren(((t,r)=>!(t===this||!e(t,r)||(n=t,0)))),t&&this.forEachChildren((t=>{if(t.isContainer){const r=t.find(e,!0);if(r)return n=r,!0}return!1})),n}findAll(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return this.forEachChildren(((t,r)=>{t!==this&&e(t,r)&&n.push(t)})),t&&this.forEachChildren((t=>{if(t.isContainer){const r=t.findAll(e,!0);r.length&&(n=n.concat(r))}})),n}getElementById(e){return this.find((t=>t.id===e),!0)}findChildById(e){return this.getElementById(e)}findChildByUid(e){return this._idMap&&this._idMap.get(e)||null}getElementsByName(e){return this.findAll((t=>t.name===e),!0)}findChildrenByName(e){return this.getElementsByName(e)}getElementsByType(e){return this.findAll((t=>t.type===e),!0)}getChildByName(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.find((t=>t.name===e),t)}getChildAt(e){let t=this._firstChild;if(!t)return null;for(let n=0;n<e;n++){if(!t._next)return null;t=t._next}return t}at(e){return this.getChildAt(e)}containNode(e){if(!this._idMap)return!1;if(this._idMap.has(e._uid))return!0;let t=this._firstChild;for(;t;){if(t.containNode(e))return!0;t=t._next}return!1}getRootNode(){let e=this.parent;for(;null==e?void 0:e.parent;)e=e.parent;return e||this}hasChildNodes(){return null!==this._firstChild}addChild(e){return this.appendChild(e)}add(e){return this.appendChild(e)}getChildren(){const e=[];let t=this._firstChild;for(;t;)e.push(t),t=t._next;return e}isChildOf(e){return!!this.parent&&this.parent._uid===e._uid}isParentOf(e){return e.isChildOf(this)}isDescendantsOf(e){let t=this.parent;if(!t)return!1;do{if(t._uid===e._uid)return!0;t=t.parent}while(null!==t);return!1}isAncestorsOf(e){return e.isDescendantsOf(this)}getAncestor(e){throw new Error("暂不支持")}setAllDescendantsProps(e,t){let n=this._firstChild;for(;n;)n[e]=t,n.setAllDescendantsProps(e,t),n=n._next}setCount(e){this._count+=e;let t=this.parent;if(t)do{t._count+=e,t=t.parent}while(null!==t)}clone(){throw new Error("暂不支持")}cloneTo(e){throw new Error("暂不支持")}getParent(){return this.parent}del(e){return this.removeChild(e)}addEventListener(e,t,n){const r=p(n,!0)&&n||v(n)&&n.capture,i=v(n)&&n.once,a=g(t)?void 0:t;return e=r?`${e}capture`:e,t=g(t)?t:t.handleEvent,i?super.once(e,t,a):super.on(e,t,a),this}on(e,t,n){return this.addEventListener(e,t,n)}removeEventListener(e,t,n){const r=p(n,!0)&&n||v(n)&&n.capture,i=g(t)?void 0:t;e=r?`${e}capture`:e,t=g(t)?t:t.handleEvent;const a=v(n)&&n.once;return super.off(e,t,i,a),this}off(e,t,n){return this.removeEventListener(e,t,n)}once(e,t,n){return v(n)?(n.once=!0,this.addEventListener(e,t,n)):this.addEventListener(e,t,{once:!0})}removeAllEventListeners(){return super.removeAllListeners(),this}removeAllListeners(){return this.removeAllEventListeners()}dispatchEvent(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return super.emit(e.type,e,...n),!e.defaultPrevented}emit(e,t){return this.dispatchEvent(e,t)}release(){this.removeAllListeners()}}class Cr{get layerX(){return this.layer.x}get layerY(){return this.layer.y}get pageX(){return this.page.x}get pageY(){return this.page.y}get x(){return this.canvas.x}get y(){return this.canvas.y}get canvasX(){return this.canvas.x}get canvasY(){return this.canvas.y}get viewX(){return this.viewport.x}get viewY(){return this.viewport.y}constructor(e){this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.composed=!1,this.defaultPrevented=!1,this.eventPhase=Cr.prototype.NONE,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer={x:0,y:0},this.page={x:0,y:0},this.canvas={x:0,y:0},this.viewport={x:0,y:0},this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}composedPath(){return!this.manager||this.path&&this.path[this.path.length-1]===this.target||(this.path=this.target?this.manager.propagationPath(this.target):[]),this.composedDetailPath(),this.path}composedDetailPath(){return this.pickParams&&this.pickParams.graphic?(this.detailPath=this.path.slice(),this._composedDetailPath(this.pickParams)):this.detailPath=this.path.slice(),this.detailPath}_composedDetailPath(e){if(e&&e.graphic){const t=this.pickParams.graphic;if(t.stage){const n=t.stage.eventSystem.manager.propagationPath(t);this.detailPath.push(n),this._composedDetailPath(e.params)}}}preventDefault(){try{this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault()}catch(e){this.nativeEvent.preventDefault&&g(this.nativeEvent.preventDefault)&&this.nativeEvent.preventDefault()}this.defaultPrevented=!0}stopImmediatePropagation(){this.propagationImmediatelyStopped=!0}stopPropagation(){try{this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.stopPropagation()}catch(e){this.nativeEvent.stopPropagation&&g(this.nativeEvent.stopPropagation)&&this.nativeEvent.stopPropagation()}this.propagationStopped=!0}initEvent(){}initUIEvent(){}clone(){throw new Error("Method not implemented.")}}class Er extends Cr{constructor(e,t){super(),this.type=e,this.detail=t}}const Pr={dispatchEvent(e){var t;if(!(e instanceof Cr))throw new Error("DisplayObject cannot propagate events outside of the Federated Events API");return e.defaultPrevented=!1,e.path=[],e.detailPath&&(e.detailPath=[]),e.target=this,null===(t=null==e?void 0:e.manager)||void 0===t||t.dispatchEvent(e),!e.defaultPrevented},emit(e,t){return this.dispatchEvent(new Er(e,t))}};class Br{constructor(){}static linear(e){return e}static none(){return this.linear}static get(e){return e<-1?e=-1:e>1&&(e=1),function(t){return 0===e?t:e<0?t*(t*-e+1+e):t*((2-t)*e+(1-e))}}static getPowIn(e){return function(t){return Math.pow(t,e)}}static getPowOut(e){return function(t){return 1-Math.pow(1-t,e)}}static getPowInOut(e){return function(t){return(t*=2)<1?.5*Math.pow(t,e):1-.5*Math.abs(Math.pow(2-t,e))}}static getBackIn(e){return function(t){return t*t*((e+1)*t-e)}}static getBackOut(e){return function(t){return--t*t*((e+1)*t+e)+1}}static getBackInOut(e){return e*=1.525,function(t){return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)}}static sineIn(e){return 1-Math.cos(e*Math.PI/2)}static sineOut(e){return Math.sin(e*Math.PI/2)}static sineInOut(e){return-(Math.cos(Math.PI*e)-1)/2}static expoIn(e){return 0===e?0:Math.pow(2,10*e-10)}static expoOut(e){return 1===e?1:1-Math.pow(2,-10*e)}static expoInOut(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2}static circIn(e){return-(Math.sqrt(1-e*e)-1)}static circOut(e){return Math.sqrt(1- --e*e)}static circInOut(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}static bounceOut(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}static bounceIn(e){return 1-Br.bounceOut(1-e)}static bounceInOut(e){return e<.5?.5*Br.bounceIn(2*e):.5*Br.bounceOut(2*e-1)+.5}static getElasticIn(e,t){return function(n){if(0===n||1===n)return n;const r=t/J*Math.asin(1/e);return-e*Math.pow(2,10*(n-=1))*Math.sin((n-r)*J/t)}}static getElasticOut(e,t){return function(n){if(0===n||1===n)return n;const r=t/J*Math.asin(1/e);return e*Math.pow(2,-10*n)*Math.sin((n-r)*J/t)+1}}static getElasticInOut(e,t){return function(n){const r=t/J*Math.asin(1/e);return(n*=2)<1?e*Math.pow(2,10*(n-=1))*Math.sin((n-r)*J/t)*-.5:e*Math.pow(2,-10*(n-=1))*Math.sin((n-r)*J/t)*.5+1}}}Br.quadIn=Br.getPowIn(2),Br.quadOut=Br.getPowOut(2),Br.quadInOut=Br.getPowInOut(2),Br.cubicIn=Br.getPowIn(3),Br.cubicOut=Br.getPowOut(3),Br.cubicInOut=Br.getPowInOut(3),Br.quartIn=Br.getPowIn(4),Br.quartOut=Br.getPowOut(4),Br.quartInOut=Br.getPowInOut(4),Br.quintIn=Br.getPowIn(5),Br.quintOut=Br.getPowOut(5),Br.quintInOut=Br.getPowInOut(5),Br.backIn=Br.getBackIn(1.7),Br.backOut=Br.getBackOut(1.7),Br.backInOut=Br.getBackInOut(1.7),Br.elasticIn=Br.getElasticIn(1,.3),Br.elasticOut=Br.getElasticOut(1,.3),Br.elasticInOut=Br.getElasticInOut(1,.3*1.5);const Rr=new class{constructor(){this.id=He.GenAutoIncrementId(),this.animateHead=null,this.animateTail=null,this.animateCount=0,this.paused=!1}addAnimate(e){this.animateTail?(this.animateTail.nextAnimate=e,e.prevAnimate=this.animateTail,this.animateTail=e,e.nextAnimate=null):(this.animateHead=e,this.animateTail=e),this.animateCount++}pause(){this.paused=!0}resume(){this.paused=!1}tick(e){if(this.paused)return;let t=this.animateHead;for(this.animateCount=0;t;)t.status===Gt.END?this.removeAnimate(t):t.status===Gt.RUNNING||t.status===Gt.INITIAL?(this.animateCount++,t.advance(e)):t.status===Gt.PAUSED&&this.animateCount++,t=t.nextAnimate}clear(){let e=this.animateHead;for(;e;)e.release(),e=e.nextAnimate;this.animateHead=null,this.animateTail=null,this.animateCount=0}removeAnimate(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e._onRemove&&e._onRemove.forEach((e=>e())),e===this.animateHead?(this.animateHead=e.nextAnimate,e===this.animateTail?this.animateTail=null:this.animateHead.prevAnimate=null):e===this.animateTail?(this.animateTail=e.prevAnimate,this.animateTail.nextAnimate=null):(e.prevAnimate.nextAnimate=e.nextAnimate,e.nextAnimate.prevAnimate=e.prevAnimate),t&&e.release()}};class Mr{constructor(e,t,n,r,i){this.from=e,this.to=t,this.duration=n,this.easing=r,this.params=i,this.updateCount=0}bind(e,t){this.target=e,this.subAnimate=t,this.onBind()}onBind(){}onFirstRun(){}onStart(){}onEnd(){}getEndProps(){return this.to}getFromProps(){return this.from}getMergedEndProps(){var e;const t=this.getEndProps();return t?this._endProps===t?this._mergedEndProps:(this._endProps=t,void(this._mergedEndProps=Object.assign({},null!==(e=this.step.prev.getLastProps())&&void 0!==e?e:{},t))):this.step.prev?this.step.prev.getLastProps():t}update(e,t,n){if(0===this.updateCount){this.onFirstRun();const e=this.step.getLastProps();Object.keys(e).forEach((t=>{this.subAnimate.animate.validAttr(t)&&(n[t]=e[t])}))}this.updateCount+=1,this.onUpdate(e,t,n),e&&this.onEnd()}}class Lr extends Mr{constructor(e){super(null,null,0,"linear"),this.cb=e}onUpdate(e,t,n){}onStart(){this.cb()}}class Or{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:He.GenAutoIncrementId(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rr;this.id=e,this.timeline=t,this.status=Gt.INITIAL,this.tailAnimate=new Ir(this),this.subAnimates=[this.tailAnimate],this.timeScale=1,this.rawPosition=-1,this._startTime=0,this._duringTime=0,this.timeline.addAnimate(this)}setTimeline(e){e!==this.timeline&&(this.timeline.removeAnimate(this,!1),e.addAnimate(this))}getStartTime(){return this._startTime}getDuration(){return this.subAnimates.reduce(((e,t)=>e+t.totalDuration),0)}after(e){const t=e.getDuration();return this._startTime=t,this}afterAll(e){let t=-1/0;return e.forEach((e=>{t=re(e.getDuration(),t)})),this._startTime=t,this}parallel(e){return this._startTime=e.getStartTime(),this}static AddInterpolate(e,t){Or.interpolateMap.set(e,t)}play(e){if(this.tailAnimate.play(e),this.target){const e=this.target.stage;e&&e.renderNextFrame()}return 1===this.subAnimates.length&&this.tailAnimate.totalDuration===e.duration&&this.trySetAttribute(e.getFromProps(),e.mode),this}trySetAttribute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Or.mode;e&&t&Yt.SET_ATTR_IMMEDIATELY&&this.target.setAttributes&&this.target.setAttributes(e,!1,{type:Vt.ANIMATE_PLAY})}runCb(e){const t=new Lr((()=>{e(this,t.step.prev)}));return this.tailAnimate.play(t),this}customInterpolate(e,t,n,r,i,a){const o=Or.interpolateMap.get(e)||Or.interpolateMap.get("");return!!o&&o(e,t,n,r,i,a)}pause(){this.status===Gt.RUNNING&&(this.status=Gt.PAUSED)}resume(){this.status===Gt.PAUSED&&(this.status=Gt.RUNNING)}to(e,t,n,r){if(this.tailAnimate.to(e,t,n,r),this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}from(e,t,n,r){if(this.tailAnimate.from(e,t,n,r),this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}wait(e){if(this.tailAnimate.wait(e),this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}startAt(e){if(this.tailAnimate.startAt(e),this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}loop(e){if(this.tailAnimate.loop=e,this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}reversed(e){if(this.tailAnimate.reversed=e,this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}bounce(e){if(this.tailAnimate.bounce=e,this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}subAnimate(){const e=new Ir(this,this.tailAnimate);return this.tailAnimate=e,this.subAnimates.push(e),e.bind(this.target),this}getStartProps(){return this.subAnimates[0].getStartProps()}getEndProps(){return this.tailAnimate.getEndProps()}depreventAttr(e){this._preventAttrs&&this._preventAttrs.delete(e)}preventAttr(e){this._preventAttrs||(this._preventAttrs=new Set),this._preventAttrs.add(e)}preventAttrs(e){e.forEach((e=>this.preventAttr(e)))}validAttr(e){return!this._preventAttrs||!this._preventAttrs.has(e)}bind(e){return this.target=e,this.target.onAnimateBind&&this.target.onAnimateBind(this),this.subAnimates.forEach((t=>{t.bind(e)})),this}advance(e){if(this._duringTime<this._startTime){if(this._duringTime+e*this.timeScale<this._startTime)return void(this._duringTime+=e*this.timeScale);e=this._duringTime+e*this.timeScale-this._startTime,this._duringTime=this._startTime}this.status===Gt.INITIAL&&(this.status=Gt.RUNNING,this._onStart&&this._onStart.forEach((e=>e()))),this.setPosition(Math.max(this.rawPosition,0)+e*this.timeScale)&&this.status===Gt.RUNNING&&(this.status=Gt.END,this._onEnd&&this._onEnd.forEach((e=>e())))}setPosition(e){let t,n=0;const r=this.rawPosition,i=this.subAnimates.reduce(((e,t)=>e+t.totalDuration),0);e<0&&(e=0);const a=e>=i;if(a&&(e=i),e===r)return a;for(let r=0;r<this.subAnimates.length&&(t=this.subAnimates[r],!(n+t.totalDuration>=e));r++)n+=t.totalDuration,t=void 0;return this.rawPosition=e,t.setPosition(e-n),a}onStart(e){this._onStart||(this._onStart=[]),this._onStart.push(e)}onEnd(e){this._onEnd||(this._onEnd=[]),this._onEnd.push(e)}onRemove(e){this._onRemove||(this._onRemove=[]),this._onRemove.push(e)}onFrame(e){this._onFrame||(this._onFrame=[]),this._onFrame.push(e)}release(){this.status=Gt.END}stop(e){e||this.target.onStop(),"start"===e?this.target.onStop(this.getStartProps()):"end"===e?this.target.onStop(this.getEndProps()):this.target.onStop(e),this.release()}}Or.mode=Yt.NORMAL,Or.interpolateMap=new Map;class Ir{get totalDuration(){return this.calcAttr(),this._totalDuration+this._startAt}constructor(e,t){this.rawPosition=-1,this.position=0,this.loop=0,this.duration=0,this.animate=e,this.stepHead=new Nr(0,0,t?Object.assign({},t.stepTail.props):{}),this.stepTail=this.stepHead,this.dirty=!0,this._startAt=0}calcAttr(){this.dirty&&(this._totalDuration=this.duration*(this.loop+1))}bind(e){return this.target=e,this}play(e){let t=e.duration;(null==t||t<0)&&(t=0);const n=e.easing,r="string"==typeof n?Br[n]:n,i=this._addStep(t,null,r);return i.type=qt.customAnimate,this._appendProps(e.getEndProps(),i,!1),this._appendCustomAnimate(e,i),this}to(e,t,n,r){(null==t||t<0)&&(t=0);const i="string"==typeof n?Br[n]:n,a=this._addStep(t,null,i);return a.type=qt.to,this._appendProps(e,a,!!r&&r.tempProps),a.propKeys||(a.propKeys=Object.keys(a.props)),r&&r.noPreventAttrs||this.target.animates.forEach((e=>{e.id!==this.animate.id&&e.preventAttrs(a.propKeys)})),this}from(e,t,n,r){this.to(e,0,n,r);const i={};this.stepTail.propKeys||(this.stepTail.propKeys=Object.keys(this.stepTail.props)),this.stepTail.propKeys.forEach((e=>{i[e]=this.getLastPropByName(e,this.stepTail)})),this.to(i,t,n,r),this.stepTail.type=qt.from}startAt(e){return e<0&&(e=0),this._startAt=e,this}getStartProps(){var e;return null===(e=this.stepHead)||void 0===e?void 0:e.props}getEndProps(){return this.stepTail.props}getLastStep(){return this._lastStep}wait(e){if(e>0){const t=this._addStep(+e,null);t.type=qt.wait,t.prev.customAnimate?t.props=t.prev.customAnimate.getEndProps():t.props=t.prev.props,this.target.onAddStep&&this.target.onAddStep(t)}return this}_addStep(e,t,n){const r=new Nr(this.duration,e,t,n);return this.duration+=e,this.stepTail.append(r),this.stepTail=r,r}_appendProps(e,t,n){t.props=n?e:Object.assign({},e);let r=t.prev;const i=t.props;for(t.propKeys||(t.propKeys=Object.keys(t.props)),t.propKeys.forEach((e=>{void 0===t.props[e]&&(t.props[e]=this.target.getDefaultAttribute(e))}));r.prev;)r.props&&(r.propKeys||(r.propKeys=Object.keys(r.props)),r.propKeys.forEach((e=>{void 0===i[e]&&(i[e]=r.props[e])}))),t.propKeys=Object.keys(t.props),r=r.prev;const a=this.stepHead.props;t.propKeys||(t.propKeys=Object.keys(i)),t.propKeys.forEach((e=>{if(void 0===a[e]){const t=this.animate.getStartProps();a[e]=t[e]=this.target.getComputedAttribute(e)}})),this.target.onAddStep&&this.target.onAddStep(t)}_appendCustomAnimate(e,t){t.customAnimate=e,e.step=t,e.bind(this.target,this)}setPosition(e){var t;const n=this.duration,r=this.loop,i=this.rawPosition;let a,o,s=!1;const l=null!==(t=this._startAt)&&void 0!==t?t:0;if(e<0&&(e=0),e<l)return this.rawPosition=e,!1;if(e-=l,n<=0&&(s=!0,n<0))return s;if(a=Math.floor(e/n),o=e-a*n,s=e>=r*n+n,s&&(o=n,a=r,e=o*a+n),e===i)return s;const u=!this.reversed!=!(this.bounce&&a%2);return u&&(o=n-o),this._deltaPosition=o-this.position,this.position=o,this.rawPosition=e+l,this.updatePosition(s,u),s}updatePosition(e,t){if(!this.stepHead)return;let n=this.stepHead.next;const r=this.position,i=this.duration;if(this.target&&n){let a=n.next;for(;a&&a.position<=r;)n=a,a=n.next;let o=e?0===i?1:r/i:(r-n.position)/n.duration;n.easing&&(o=n.easing(o)),this.tryCallCustomAnimateLifeCycle(n,this._lastStep||(t?this.stepTail:this.stepHead),t),this.updateTarget(n,o,e),this._lastStep=n,this.animate._onFrame&&this.animate._onFrame.forEach((e=>e(n,o)))}}tryCallCustomAnimateLifeCycle(e,t,n){if(e!==t)if(n){let n=t.prev;for(;n&&n!==e;)n.customAnimate&&(n.customAnimate.onStart&&n.customAnimate.onStart(),n.customAnimate.onEnd&&n.customAnimate.onEnd()),n=e.prev;t&&t.customAnimate&&t.customAnimate.onEnd&&t.customAnimate.onEnd(),e&&e.customAnimate&&e.customAnimate.onStart&&e.customAnimate.onStart()}else{let n=t.next;for(;n&&n!==e;)n.customAnimate&&(n.customAnimate.onStart&&n.customAnimate.onStart(),n.customAnimate.onEnd&&n.customAnimate.onEnd()),n=n.next;t&&t.customAnimate&&t.customAnimate.onEnd&&t.customAnimate.onEnd(),e&&e.customAnimate&&e.customAnimate.onStart&&e.customAnimate.onStart()}}getLastPropByName(e,t){let n=t.prev;for(;n;){if(n.props&&void 0!==n.props[e])return n.props[e];if(n.customAnimate){const t=n.customAnimate.getEndProps()[e];if(void 0!==t)return t}n=n.prev}return Y.getInstance().warn("未知错误,step中找不到属性"),t.props[e]}updateTarget(e,t,n){null==e.props&&null==e.customAnimate||this.target.onStep(this,this.animate,e,t,n)}}class Nr{constructor(e,t,n,r){this.duration=t,this.position=e,this.props=n,this.easing=r}append(e){e.prev=this,e.next=this.next,this.next=e}getLastProps(){let e=this.prev;for(;e;){if(e.props)return e.props;if(e.customAnimate)return e.customAnimate.getMergedEndProps();e=e.prev}return null}}const Dr=200,Ur="cubicOut";var zr;!function(e){e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Bottom=4]="Bottom",e[e.Left=8]="Left",e[e.ALL=15]="ALL"}(zr||(zr={}));const Fr=[0,0,0,0],jr=e=>e?w(e)?0===e.length?0:1===e.length?e[0]:2===e.length?(Fr[0]=e[0],Fr[2]=e[0],Fr[1]=e[1],Fr[3]=e[1],Fr):e:e:0,Wr=[{x:0,y:0},{x:0,y:0},{x:0,y:0},{x:0,y:0}],Hr=[1,2,3,0,1,2,3,0];function $r(e,t,n,r){for(;e>=J;)e-=J;for(;e<0;)e+=J;for(;e>t;)t+=J;Wr[0].x=n,Wr[1].y=n,Wr[2].x=-n,Wr[3].y=-n;const i=Math.ceil(e/K)%4,a=Math.ceil(t/K)%4;if(r.add(ne(e)*n,ae(e)*n),r.add(ne(t)*n,ae(t)*n),i!==a||t-e>X){let e=!1;for(let t=0;t<Hr.length;t++)if(e||i!==Hr[t]){if(e&&a===Hr[t])break;if(e){const e=Wr[Hr[t]];r.add(e.x,e.y)}}else{e=!0;const t=Wr[i];r.add(t.x,t.y)}}}const Vr=(e,t)=>S(e)&&"%"===e[e.length-1]?t*(Number.parseFloat(e.substring(0,e.length-1))/100):e;var Gr;!function(e){e[e.Color255=0]="Color255",e[e.Color1=1]="Color1"}(Gr||(Gr={}));class Yr{static Get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gr.Color1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0,0,1];if(t===Gr.Color1){const t=Yr.store1[e];if(t)return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n;const r=ke.parseColorString(e);if(r){const t=[r.r/255,r.g/255,r.b/255,r.opacity];Yr.store1[e]=t,Yr.store255[e]=[r.r,r.g,r.b,r.opacity],n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3]}return n}const r=Yr.store255[e];if(r)return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n;const i=ke.parseColorString(e);return i&&(Yr.store1[e]=[i.r/255,i.g/255,i.b/255,i.opacity],Yr.store255[e]=[i.r,i.g,i.b,i.opacity],n[0]=i.r,n[1]=i.g,n[2]=i.b,n[3]=i.opacity),n}static Set(e,t,n){if(t===Gr.Color1){if(Yr.store1[e])return;Yr.store1[e]=n,Yr.store255[e]=[Math.floor(255*n[0]),Math.floor(255*n[1]),Math.floor(255*n[2]),Math.floor(255*n[3])]}else{if(Yr.store255[e])return;Yr.store255[e]=n,Yr.store1[e]=[n[0]/255,n[1]/255,n[2]/255,n[3]]}}}function qr(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Array.isArray(e)&&T(e[0])?t?`rgb(${Math.round(e[0])},${Math.round(e[1])},${Math.round(e[2])},${e[3].toFixed(2)})`:`rgb(${Math.round(e[0])},${Math.round(e[1])},${Math.round(e[2])})`:e}function Qr(e,t,n,r,i){return Array.isArray(e)&&!T(e[0])||Array.isArray(t)&&!T(t[0])?new Array(4).fill(0).map(((i,a)=>Xr(w(e)?e[a]:e,w(t)?t[a]:t,n,r))):Xr(e,t,n,r,i)}function Xr(e,t,n,r,i){if(!e||!t)return e&&qr(e)||t&&qr(t)||!1;let a,o,s=!1,l=!1;if(Array.isArray(e)?a=e:"string"==typeof e?a=Yr.Get(e,Gr.Color255):s=!0,Array.isArray(t)?o=t:"string"==typeof t?o=Yr.Get(t,Gr.Color255):l=!0,s!==l){const a=s?e:t,o=s?t:e,l=Object.assign(Object.assign({},a),{stops:a.stops.map((e=>Object.assign(Object.assign({},e),{color:qr(o)})))});return s?Qr(a,l,n,r,i):Qr(l,a,n,r,i)}if(s){if(e.gradient===t.gradient){const r=e,i=t,a=r.stops,o=i.stops;if(a.length!==o.length)return!1;if("linear"===r.gradient)return function(e,t,n){const r=e.stops,i=t.stops;return{gradient:"linear",x0:e.x0+(t.x0-e.x0)*n,x1:e.x1+(t.x1-e.x1)*n,y0:e.y0+(t.y0-e.y0)*n,y1:e.y1+(t.y1-e.y1)*n,stops:new Array(r.length).fill(0).map(((e,t)=>({color:Jr(r[t].color,i[t].color,n),offset:r[t].offset+(i[t].offset-r[t].offset)*n})))}}(r,i,n);if("radial"===r.gradient)return function(e,t,n){const r=e.stops,i=t.stops;return{gradient:"radial",x0:e.x0+(t.x0-e.x0)*n,x1:e.x1+(t.x1-e.x1)*n,y0:e.y0+(t.y0-e.y0)*n,y1:e.y1+(t.y1-e.y1)*n,r0:e.r0+(t.r0-e.r0)*n,r1:e.r1+(t.r1-e.r1)*n,stops:new Array(r.length).fill(0).map(((e,t)=>({color:Jr(r[t].color,i[t].color,n),offset:r[t].offset+(i[t].offset-r[t].offset)*n})))}}(r,i,n);if("conical"===r.gradient)return function(e,t,n){const r=e.stops,i=t.stops;return{gradient:"conical",startAngle:e.startAngle+(t.startAngle-e.startAngle)*n,endAngle:e.endAngle+(t.endAngle-e.endAngle)*n,x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n,stops:new Array(r.length).fill(0).map(((e,t)=>({color:Jr(r[t].color,i[t].color,n),offset:r[t].offset+(i[t].offset-r[t].offset)*n})))}}(r,i,n)}return!1}return i&&i(a,o),qr(function(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n,e[2]+(t[2]-e[2])*n,e[3]+(t[3]-e[3])*n]}(a,o,n),r)}Yr.store255={},Yr.store1={};const Kr=[0,0,0,0],Zr=[0,0,0,0];function Jr(e,t,n){return Yr.Get(e,Gr.Color255,Kr),Yr.Get(t,Gr.Color255,Zr),`rgba(${Math.round(Kr[0]+(Zr[0]-Kr[0])*n)},${Math.round(Kr[1]+(Zr[1]-Kr[1])*n)},${Math.round(Kr[2]+(Zr[2]-Kr[2])*n)},${Kr[3]+(Zr[3]-Kr[3])*n})`}class ei{static GetImage(e,t){var n;const r=ei.cache.get(e);r?"fail"===r.loadState?ir.global.getRequestAnimationFrame()((()=>{t.imageLoadFail(e)})):"init"===r.loadState||"loading"===r.loadState?null===(n=r.waitingMark)||void 0===n||n.push(t):t&&t.imageLoadSuccess(e,r.data):ei.loadImage(e,t)}static GetSvg(e,t){var n;let r=ei.cache.get(e);r?"fail"===r.loadState?ir.global.getRequestAnimationFrame()((()=>{t.imageLoadFail(e)})):"init"===r.loadState||"loading"===r.loadState?null===(n=r.waitingMark)||void 0===n||n.push(t):t&&t.imageLoadSuccess(e,r.data):(r={type:"image",loadState:"init"},ei.cache.set(e,r),r.dataPromise=ir.global.loadSvg(e),r.dataPromise?(r.waitingMark=[t],r.dataPromise.then((t=>{var n;r.loadState=(null==t?void 0:t.data)?"success":"fail",r.data=null==t?void 0:t.data,null===(n=r.waitingMark)||void 0===n||n.map(((n,i)=>{(null==t?void 0:t.data)?(r.loadState="success",r.data=t.data,n.imageLoadSuccess(e,t.data)):(r.loadState="fail",n.imageLoadFail(e))})),r.waitingMark&&(r.waitingMark=[])}))):(r.loadState="fail",t.imageLoadFail(e)))}static GetFile(e,t){let n=ei.cache.get(e);return n?"init"===n.loadState||"fail"===n.loadState?Promise.reject():"loading"===n.loadState?n.dataPromise.then((e=>e.data)):Promise.resolve(n.data):(n={type:t,loadState:"init"},ei.cache.set(e,n),"arrayBuffer"===t?n.dataPromise=ir.global.loadArrayBuffer(e):"blob"===t?n.dataPromise=ir.global.loadBlob(e):"json"===t&&(n.dataPromise=ir.global.loadJson(e)),n.dataPromise.then((e=>e.data)))}static loading(){setTimeout((()=>{if(!ei.isLoading&&ei.toLoadAueue.length){ei.isLoading=!0;const e=ei.toLoadAueue.splice(0,10),t=[];e.forEach((e=>{const{url:n,marks:r}=e,i={type:"image",loadState:"init"};if(ei.cache.set(n,i),i.dataPromise=ir.global.loadImage(n),i.dataPromise){i.waitingMark=r;const e=i.dataPromise.then((e=>{var t;i.loadState=(null==e?void 0:e.data)?"success":"fail",i.data=null==e?void 0:e.data,null===(t=i.waitingMark)||void 0===t||t.map(((t,r)=>{(null==e?void 0:e.data)?(i.loadState="success",i.data=e.data,t.imageLoadSuccess(n,e.data)):(i.loadState="fail",t.imageLoadFail(n))})),i.waitingMark&&(i.waitingMark=[])}));t.push(e)}else i.loadState="fail",r.forEach((e=>e.imageLoadFail(n)))})),Promise.all(t).then((()=>{ei.isLoading=!1,this.onLoadSuccessCb.forEach((e=>e())),ei.loading()})).catch((e=>{ei.isLoading=!1,this.onLoadSuccessCb.forEach((e=>e())),ei.loading()}))}}),0)}static loadImage(e,t){const n=ti(e,ei.toLoadAueue);if(-1!==n)return ei.toLoadAueue[n].marks.push(t),void ei.loading();ei.toLoadAueue.push({url:e,marks:[t]}),ei.loading()}static improveImageLoading(e){const t=ti(e,ei.toLoadAueue);if(-1!==t){const e=ei.toLoadAueue.splice(t,1);ei.toLoadAueue.unshift(e[0])}}static onLoadSuccess(e){this.onLoadSuccessCb.push(e)}}function ti(e,t){for(let n=0;n<t.length;n++)if(t[n].url===e)return n;return-1}ei.cache=new Map,ei.isLoading=!1,ei.toLoadAueue=[],ei.onLoadSuccessCb=[];const ni=new ge,ri=new fe,ii=["lineWidth","scaleX","scaleY","angle","anchor","visible"],ai=["x","y"],oi=["scaleX","scaleY"],si=["angle"],li=new ue,ui={strokeSeg:1,boundsPadding:2,pickMode:1,boundsMode:1,customPickShape:1,pickable:1,childrenPickable:1,visible:1,zIndex:1,layout:1,keepDirIn3d:1,globalZIndex:1,outerBorder:1,innerBorder:1,lineDash:1,lineCap:1,lineJoin:1,miterLimit:2,strokeBoundsBuffer:2,scaleCenter:1,anchor:1,anchor3d:1,postMatrix:1,backgroundMode:2,background:1,texture:1,cursor:1,html:1};class ci extends kr{static mixin(e){const t=Object.keys(e);for(let n=0;n<t.length;++n){const r=t[n];Object.defineProperty(ci.prototype,r,Object.getOwnPropertyDescriptor(e,r))}}get AABBBounds(){return this.tryUpdateAABBBounds("imprecise"===this.attribute.boundsMode)}get globalAABBBounds(){return this.tryUpdateGlobalAABBBounds()}get transMatrix(){return this.tryUpdateLocalTransMatrix(!0)}get globalTransMatrix(){return this.tryUpdateGlobalTransMatrix(!0)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;super(),this._AABBBounds=new fe,this._updateTag=Ht.INIT,this.attribute=e,this.valid=this.isValid(),e.background?this.loadImage(null!==(t=e.background.background)&&void 0!==t?t:e.background,!0):e.shadowGraphic&&this.setShadowGraphic(e.shadowGraphic)}setMode(e){"3d"===e?this.set3dMode():this.set2dMode()}set3dMode(){this.in3dMode=!0}set2dMode(){this.in3dMode=!1}getOffsetXY(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n,r;const{dx:i=e.dx,dy:a=e.dy}=this.attribute;if(t&&this.parent){const e=this.parent.attribute;li.x=i+(null!==(n=e.scrollX)&&void 0!==n?n:0),li.y=a+(null!==(r=e.scrollY)&&void 0!==r?r:0)}else li.x=i,li.y=a;return li}onAnimateBind(e){this._emitCustomEvent("animate-bind",e)}tryUpdateAABBBounds(e){if(!this.shouldUpdateAABBBounds())return this._AABBBounds;if(!this.valid)return this._AABBBounds.clear(),this._AABBBounds;ir.graphicService.beforeUpdateAABBBounds(this,this.stage,!0,this._AABBBounds);const t=this.doUpdateAABBBounds(e);return ir.graphicService.afterUpdateAABBBounds(this,this.stage,this._AABBBounds,this,!0),t}combindShadowAABBBounds(e){if(this.shadowRoot){const t=this.shadowRoot.AABBBounds.clone();e.union(t)}}doUpdateAABBBounds(e){const t=this.getGraphicTheme();this._AABBBounds.clear();const n=this.attribute,r=this.updateAABBBounds(n,t,this._AABBBounds,e),{boundsPadding:i=t.boundsPadding}=n,a=jr(i);return a&&r.expand(a),this.clearUpdateBoundTag(),r}updatePathProxyAABBBounds(e){const t="function"==typeof this.pathProxy?this.pathProxy(this.attribute):this.pathProxy;if(!t)return!1;const n=new Tt(e);return nn(t.commandList,n,0,0),!0}tryUpdateGlobalAABBBounds(){const e=this.AABBBounds;return this._globalAABBBounds?this._globalAABBBounds.setValue(e.x1,e.y1,e.x2,e.y2):this._globalAABBBounds=e.clone(),this._globalAABBBounds.empty()||this.parent&&this._globalAABBBounds.transformWithMatrix(this.parent.globalTransMatrix),this._globalAABBBounds}tryUpdateGlobalTransMatrix(){if(this._globalTransMatrix){if(this.parent){const e=this.parent.globalTransMatrix;this._globalTransMatrix.setValue(e.a,e.b,e.c,e.d,e.e,e.f)}}else this._globalTransMatrix=this.parent?this.parent.globalTransMatrix.clone():this.transMatrix.clone();return this.shouldUpdateGlobalMatrix()&&this.doUpdateGlobalMatrix(),this._globalTransMatrix}shouldUpdateGlobalMatrix(){return!0}tryUpdateLocalTransMatrix(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._transMatrix||(this._transMatrix=new ge),this.shouldUpdateLocalMatrix()&&(this.doUpdateLocalMatrix(),e&&this.clearUpdateLocalPositionTag()),this._transMatrix}shouldUpdateAABBBounds(){return this.shadowRoot?!!(this._updateTag&Ht.UPDATE_BOUNDS)||this.shadowRoot.shouldUpdateAABBBounds():!!(this._updateTag&Ht.UPDATE_BOUNDS)}shouldSelfChangeUpdateAABBBounds(){return this.shadowRoot?!!(this._updateTag&Ht.UPDATE_BOUNDS)||this.shadowRoot.shouldUpdateAABBBounds():!!(this._updateTag&Ht.UPDATE_BOUNDS)}shouldUpdateLocalMatrix(){return!!(this._updateTag&Ht.UPDATE_LOCAL_MATRIX)}isValid(){var e,t;const n=this.attribute;return Number.isFinite((null!==(e=n.x)&&void 0!==e?e:0)+(null!==(t=n.y)&&void 0!==t?t:0))}_validNumber(e){return null==e||Number.isFinite(e)}shouldUpdateShape(){return!!(this._updateTag&Ht.UPDATE_SHAPE)}clearUpdateShapeTag(){this._updateTag&=Ht.CLEAR_SHAPE}containsPoint(e,t,n,r){if(!r)return!1;if(n===$t.GLOBAL){const n=new ue(e,t);this.parent&&this.parent.globalTransMatrix.transformPoint(n,n),e=n.x,t=n.y}return r.containsPoint(this,{x:e,y:t})}setAttributes(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;(e=this.onBeforeAttributeUpdate&&this.onBeforeAttributeUpdate(e,this.attribute,null,n)||e).background?this.loadImage(e.background,!0):e.shadowGraphic&&this.setShadowGraphic(e.shadowGraphic),this._setAttributes(e,t,n)}_setAttributes(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;const r=Object.keys(e);for(let t=0;t<r.length;t++){const n=r[t];this.attribute[n]=e[n]}this.valid=this.isValid(),this.updateShapeAndBoundsTagSetted()||!t&&!this.needUpdateTags(r)?this.addUpdateBoundTag():this.addUpdateShapeAndBoundsTag(),this.addUpdatePositionTag(),this.addUpdateLayoutTag(),this.onAttributeUpdate(n)}setAttribute(e,t,n,r){var i;const a=this.onBeforeAttributeUpdate&&this.onBeforeAttributeUpdate({[e]:t},this.attribute,e,r);a?this._setAttributes(a,n,r):m(null===(i=this.normalAttrs)||void 0===i?void 0:i[e])?(this.attribute[e]=t,this.valid=this.isValid(),this.updateShapeAndBoundsTagSetted()||!n&&!this.needUpdateTag(e)?this.addUpdateBoundTag():this.addUpdateShapeAndBoundsTag(),this.addUpdatePositionTag(),this.addUpdateLayoutTag(),this.onAttributeUpdate(r)):this.normalAttrs[e]=t,"background"===e?this.loadImage(t,!0):"shadowGraphic"===e&&this.setShadowGraphic(t)}needUpdateTags(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ii;for(let n=0;n<t.length;n++){const r=t[n];if(-1!==e.indexOf(r))return!0}return!1}needUpdateTag(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ii;for(let n=0;n<t.length;n++)if(e===t[n])return!0;return!1}initAttributes(e){const t={type:Vt.INIT};e=this.onBeforeAttributeUpdate&&this.onBeforeAttributeUpdate(e,this.attribute,null,t)||e,this.attribute=e,e.background?this.loadImage(e.background,!0):e.shadowGraphic&&this.setShadowGraphic(e.shadowGraphic),this._updateTag=Ht.INIT,this.valid=this.isValid(),this.onAttributeUpdate(t)}translate(e,t){var n,r;if(0===e&&0===t)return this;const i={type:Vt.TRANSLATE},a=this.onBeforeAttributeUpdate&&this.onBeforeAttributeUpdate({x:e,y:t},this.attribute,ai,i);a&&(e=a.x,t=a.y,delete a.x,delete a.y,this._setAttributes(a));const o=this.attribute,s=o.postMatrix;return s?ir.transformUtil.fromMatrix(s,s).translate(e,t):(o.x=(null!==(n=o.x)&&void 0!==n?n:Dn.x)+e,o.y=(null!==(r=o.y)&&void 0!==r?r:Dn.y)+t),this.addUpdatePositionTag(),this.addUpdateBoundTag(),this.addUpdateLayoutTag(),this.onAttributeUpdate(i),this}translateTo(e,t){const n=this.attribute;if(n.x===e&&n.y===t)return this;const r={type:Vt.TRANSLATE_TO},i=this.onBeforeAttributeUpdate&&this.onBeforeAttributeUpdate({x:e,y:t},this.attribute,ai,r);return i?(this._setAttributes(i,!1,r),this):(n.x=e,n.y=t,this.addUpdatePositionTag(),this.addUpdateBoundTag(),this.addUpdateLayoutTag(),this.onAttributeUpdate(r),this)}scale(e,t,n){var r,i;if(1===e&&1===t)return this;const a={type:Vt.SCALE},o=this.onBeforeAttributeUpdate&&this.onBeforeAttributeUpdate({scaleX:e,scaleY:t,scaleCenter:n},this.attribute,oi,a);o&&(e=o.scaleX,t=o.scaleY,delete o.scaleX,delete o.scaleY,this._setAttributes(o));const s=this.attribute;if(n){let{postMatrix:r}=this.attribute;r||(r=new ge,s.postMatrix=r),ir.transformUtil.fromMatrix(r,r).scale(e,t,n)}else s.scaleX=(null!==(r=s.scaleX)&&void 0!==r?r:Dn.scaleX)*e,s.scaleY=(null!==(i=s.scaleY)&&void 0!==i?i:Dn.scaleY)*t;return this.addUpdatePositionTag(),this.addUpdateBoundTag(),this.addUpdateLayoutTag(),this.onAttributeUpdate(a),this}scaleTo(e,t){const n=this.attribute;if(n.scaleX===e&&n.scaleY===t)return this;const r={type:Vt.SCALE_TO},i=this.onBeforeAttributeUpdate&&this.onBeforeAttributeUpdate({scaleX:e,scaleY:t},this.attribute,oi,r);return i?(this._setAttributes(i,!1,r),this):(n.scaleX=e,n.scaleY=t,this.addUpdatePositionTag(),this.addUpdateBoundTag(),this.addUpdateLayoutTag(),this.onAttributeUpdate(r),this)}rotate(e,t){var n;if(0===e)return this;const r={type:Vt.ROTATE},i=this.onBeforeAttributeUpdate&&this.onBeforeAttributeUpdate({angle:e,rotateCenter:t},this.attribute,si,r);i&&(delete i.angle,this._setAttributes(i,!1,r));const a=this.attribute;if(t){let{postMatrix:n}=this.attribute;n||(n=new ge,a.postMatrix=n),ir.transformUtil.fromMatrix(n,n).rotate(e,t)}else a.angle=(null!==(n=a.angle)&&void 0!==n?n:Dn.angle)+e;return this.addUpdatePositionTag(),this.addUpdateBoundTag(),this.addUpdateLayoutTag(),this.onAttributeUpdate(r),this}rotateTo(e){const t=this.attribute;if(t.angle===e)return this;const n={type:Vt.ROTATE_TO},r=this.onBeforeAttributeUpdate&&this.onBeforeAttributeUpdate(e,this.attribute,si,n);return r?(this._setAttributes(r,!1,n),this):(t.angle=e,this.addUpdatePositionTag(),this.addUpdateBoundTag(),this.addUpdateLayoutTag(),this.onAttributeUpdate(n),this)}skewTo(e,t){return this}animate(e){this.animates||(this.animates=new Map);const t=new Or(null==e?void 0:e.id,this.stage&&this.stage.getTimeline()).bind(this);if(e){const{onStart:n,onFrame:r,onEnd:i,onRemove:a}=e;null!=n&&t.onStart(n),null!=r&&t.onFrame(r),null!=i&&t.onEnd(i),null!=a&&t.onRemove(a),t.interpolateFunc=e.interpolate}return this.animates.set(t.id,t),t.onRemove((()=>{this.animates.delete(t.id)})),t}onAttributeUpdate(e){e&&e.skipUpdateCallback||(ir.graphicService.onAttributeUpdate(this),this._emitCustomEvent("afterAttributeUpdate",e))}update(e){e?(e.bounds&&this.tryUpdateAABBBounds("imprecise"===this.attribute.boundsMode),e.trans&&this.tryUpdateLocalTransMatrix()):(this.tryUpdateAABBBounds("imprecise"===this.attribute.boundsMode),this.tryUpdateLocalTransMatrix())}hasState(e){return!(!this.currentStates||!this.currentStates.length)&&(!!m(e)||this.currentStates.includes(e))}getState(e){var t;return null===(t=this.states)||void 0===t?void 0:t[e]}applyStateAttrs(e,t,n,r){var i,a,o,s;if(n){const n=Object.keys(e),l=this.getNoWorkAnimateAttr(),u={};let c;n.forEach((t=>{l[t]?(c||(c={}),c[t]=e[t]):u[t]=r&&void 0===e[t]?this.getDefaultAttribute(t):e[t]}));const d=this.animate();d.stateNames=t,d.to(u,null!==(a=null===(i=this.stateAnimateConfig)||void 0===i?void 0:i.duration)&&void 0!==a?a:Dr,null!==(s=null===(o=this.stateAnimateConfig)||void 0===o?void 0:o.easing)&&void 0!==s?s:Ur),c&&this.setAttributes(c,!1,{type:Vt.STATE})}else this.stopStateAnimates(),this.setAttributes(e,!1,{type:Vt.STATE})}updateNormalAttrs(e){const t={};this.normalAttrs?(Object.keys(e).forEach((e=>{e in this.normalAttrs?(t[e]=this.normalAttrs[e],delete this.normalAttrs[e]):t[e]=this.getNormalAttribute(e)})),Object.keys(this.normalAttrs).forEach((t=>{e[t]=this.normalAttrs[t]}))):Object.keys(e).forEach((e=>{t[e]=this.getNormalAttribute(e)})),this.normalAttrs=t}stopStateAnimates(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"end";this.animates&&this.animates.forEach((t=>{t.stateNames&&(t.stop(e),this.animates.delete(t.id))}))}getNormalAttribute(e){let t=this.attribute[e];return this.animates&&this.animates.forEach((n=>{if(n.stateNames){const r=n.getEndProps();O(r,e)&&(t=r[e])}})),t}clearStates(e){this.hasState()&&this.normalAttrs?(this.currentStates=[],this.applyStateAttrs(this.normalAttrs,this.currentStates,e,!0)):this.currentStates=[],this.normalAttrs=null}removeState(e,t){if((this.currentStates?this.currentStates.indexOf(e):-1)>=0){const n=this.currentStates.filter((t=>t!==e));this.useStates(n,t)}}toggleState(e,t){if(this.hasState(e))this.removeState(e,t);else if((this.currentStates?this.currentStates.indexOf(e):-1)<0){const n=this.currentStates?this.currentStates.slice():[];n.push(e),this.useStates(n,t)}}addState(e,t,n){var r;if(this.currentStates&&this.currentStates.includes(e)&&(t||1===this.currentStates.length))return;const i=t&&(null===(r=this.currentStates)||void 0===r?void 0:r.length)?this.currentStates.concat([e]):[e];this.useStates(i,n)}useStates(e,t){var n;if(!e.length)return void this.clearStates(t);if((null===(n=this.currentStates)||void 0===n?void 0:n.length)===e.length&&!e.some(((e,t)=>this.currentStates[t]!==e)))return;const r={};e.forEach((t=>{var n;const i=this.stateProxy?this.stateProxy(t,e):null===(n=this.states)||void 0===n?void 0:n[t];i&&Object.assign(r,i)})),this.updateNormalAttrs(r),this.currentStates=e,this.applyStateAttrs(r,e,t)}addUpdateBoundTag(){this._updateTag|=Ht.UPDATE_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag(),this.glyphHost&&this.glyphHost.addUpdateBoundTag()}addUpdateShapeTag(){this._updateTag|=Ht.UPDATE_SHAPE}addUpdateShapeAndBoundsTag(){this._updateTag|=Ht.UPDATE_SHAPE_AND_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag(),this.glyphHost&&this.glyphHost.addUpdateBoundTag()}updateShapeAndBoundsTagSetted(){return(this._updateTag&Ht.UPDATE_SHAPE_AND_BOUNDS)===Ht.UPDATE_SHAPE_AND_BOUNDS}clearUpdateBoundTag(){this._updateTag&=Ht.CLEAR_BOUNDS}addUpdatePositionTag(){this.shadowRoot&&this.shadowRoot.addUpdateGlobalPositionTag(),this._updateTag|=Ht.UPDATE_GLOBAL_LOCAL_MATRIX}addUpdateGlobalPositionTag(){this.shadowRoot&&this.shadowRoot.addUpdateGlobalPositionTag(),this._updateTag|=Ht.UPDATE_GLOBAL_MATRIX}clearUpdateLocalPositionTag(){this._updateTag&=Ht.CLEAR_LOCAL_MATRIX}clearUpdateGlobalPositionTag(){this._updateTag&=Ht.CLEAR_GLOBAL_MATRIX}addUpdateLayoutTag(){this._updateTag|=Ht.UPDATE_LAYOUT}clearUpdateLayoutTag(){this._updateTag&=Ht.CLEAR_LAYOUT}needUpdateLayout(){return!!(this._updateTag&Ht.UPDATE_LAYOUT)}getAnchor(e,t){const n=[0,0],r=()=>{if(t.b)return t.b;const{scaleX:e,scaleY:n,angle:r}=this.attribute;return ri.copy(this._AABBBounds),this.setAttributes({scaleX:1,scaleY:1,angle:0}),t.b=this.AABBBounds.clone(),this._AABBBounds.copy(ri),this.setAttributes({scaleX:e,scaleY:n,angle:r}),t.b};if("string"==typeof e[0]){const t=parseFloat(e[0])/100,i=r();n[0]=i.x1+(i.x2-i.x1)*t}else n[0]=e[0];if("string"==typeof e[1]){const t=parseFloat(e[1])/100,i=r();n[1]=i.y1+(i.y2-i.y1)*t}else n[1]=e[1];return n}doUpdateLocalMatrix(){const{x:e=Dn.x,y:t=Dn.y,scaleX:n=Dn.scaleX,scaleY:r=Dn.scaleY,angle:i=Dn.angle,scaleCenter:a,anchor:o,postMatrix:s}=this.attribute;let l=[0,0];const u={};if(o&&(l=this.getAnchor(o,u)),!a||1===n&&1===r)!function(e,t,n,r,i,a,o,s){const l=t.a,u=t.b,c=t.c,d=t.d,h=t.e,f=t.f,p=ne(o),g=ae(o);let m,y;s?(m=s[0],y=s[1]):(m=n,y=r);const v=m-n,b=y-r,x=l*p+c*g,S=u*p+d*g,w=c*p-l*g,_=d*p-u*g;e.a=i*x,e.b=i*S,e.c=a*w,e.d=a*_,e.e=h+l*m+c*y-x*v-w*b,e.f=f+u*m+d*y-S*v-_*b}(this._transMatrix,this._transMatrix.reset(),e,t,n,r,i,o&&l);else{const o=this._transMatrix;o.reset(),o.translate(l[0],l[1]),o.rotate(i),o.translate(-l[0],-l[1]),o.translate(e,t),l=this.getAnchor(a,u),ir.transformUtil.fromMatrix(o,o).scale(n,r,{x:l[0],y:l[1]})}const c=this.getOffsetXY(Dn);if(this._transMatrix.e+=c.x,this._transMatrix.f+=c.y,s){const e=ni.setValue(s.a,s.b,s.c,s.d,s.e,s.f),t=this._transMatrix;e.multiply(t.a,t.b,t.c,t.d,t.e,t.f),t.setValue(e.a,e.b,e.c,e.d,e.e,e.f)}}doUpdateGlobalMatrix(){if(this.parent){this._globalTransMatrix.multiply(this.transMatrix.a,this.transMatrix.b,this.transMatrix.c,this.transMatrix.d,this.transMatrix.e,this.transMatrix.f);const{scrollX:e=0,scrollY:t=0}=this.parent.attribute;this._globalTransMatrix.translate(e,t)}}setStage(e,t){if(this.stage!==e){if(this.stage=e,this.layer=t,this.setStageToShadowRoot(e,t),this.animates&&this.animates.size){const t=e.getTimeline();this.animates.forEach((e=>{e.setTimeline(t)}))}this._onSetStage&&this._onSetStage(this,e,t),ir.graphicService.onSetStage(this,e)}}setStageToShadowRoot(e,t){this.shadowRoot&&this.shadowRoot.setStage(e,t)}onAddStep(e){}onStop(e){e&&this.setAttributes(e,!1,{type:Vt.ANIMATE_END})}onStep(e,t,n,r,i){const a={};if(n.customAnimate)n.customAnimate.update(i,r,a);else{const o=n.props,s=n.parsedProps,l=n.propKeys;this.stepInterpolate(e,t,a,n,r,i,o,void 0,s,l)}this.setAttributes(a,!1,{type:Vt.ANIMATE_UPDATE,animationState:{ratio:r,end:i,step:n,isFirstFrameOfStep:e.getLastStep()!==n}}),this.stage&&this.stage.renderNextFrame()}stepInterpolate(e,t,n,r,i,a,o,s,l,u){u||(u=Object.keys(o),r.propKeys=u),a?r.propKeys.forEach((e=>{t.validAttr(e)&&(n[e]=o[e])})):u.forEach((a=>{var u;if(!t.validAttr(a))return;const c=o[a],d=null!==(u=s&&s[a])&&void 0!==u?u:e.getLastPropByName(a,r);if(null==c||null==d)return void(n[a]=c);let h;h=t.interpolateFunc&&t.interpolateFunc(a,i,d,c,n),h||(h=t.customInterpolate(a,i,d,c,this,n),h||this.defaultInterpolate(c,d,a,n,l,i)||this._interpolate(a,i,d,c,n))})),r.parsedProps=l}defaultInterpolate(e,t,n,r,i,a){if(Number.isFinite(e))return r[n]=t+(e-t)*a,!0;if("fill"===n){i||(i={});const o=i.fillColorArray,s=Qr(t,null!=o?o:e,a,!1,((e,t)=>{i.fillColorArray=t}));return s&&(r[n]=s),!0}if("stroke"===n){i||(i={});const o=i.strokeColorArray,s=Qr(t,null!=o?o:e,a,!1,((e,t)=>{i.strokeColorArray=t}));return s&&(r[n]=s),!0}if("shadowColor"===n){i||(i={});const o=i.shadowColorArray,s=Qr(t,null!=o?o:e,a,!0,((e,t)=>{i.shadowColorArray=t}));return s&&(r[n]=s),!0}return!1}_interpolate(e,t,n,r,i){}getDefaultAttribute(e){return this.getGraphicTheme()[e]}getComputedAttribute(e){var t;return null!==(t=this.attribute[e])&&void 0!==t?t:this.getDefaultAttribute(e)}onSetStage(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._onSetStage=e,t&&this.stage&&e(this,this.stage)}attachShadow(e){return e&&(e.shadowHost=this),this.shadowRoot=null!=e?e:ir.graphicService.creator.shadowRoot(this),this.addUpdateBoundTag(),this.shadowRoot.setStage(this.stage,this.layer),this.shadowRoot}detachShadow(){this.shadowRoot&&(this.addUpdateBoundTag(),this.shadowRoot=null)}toJson(){return{attribute:this.attribute,_uid:this._uid,type:this.type,name:this.name,children:this.children.map((e=>e.toJson()))}}createPathProxy(e){return S(e,!0)?this.pathProxy=(new On).fromString(e):this.pathProxy=new On,this.pathProxy}loadImage(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e||t&&function(e){return!(!e.fill&&!e.stroke)}(e))return;const n=e;this.resources||(this.resources=new Map);const r={data:"init",state:null};this.resources.set(n,r),"string"==typeof e?(r.state="loading",e.startsWith("<svg")?(ei.GetSvg(e,this),this.backgroundImg=this.backgroundImg||t):(k(e)||e.includes("/")||C(e))&&(ei.GetImage(e,this),this.backgroundImg=this.backgroundImg||t)):v(e)?(r.state="success",r.data=e,this.backgroundImg=this.backgroundImg||t):r.state="fail"}setShadowGraphic(e){e?this.attachShadow().add(e):this.detachShadow()}imageLoadSuccess(e,t,n){if(!this.resources)return;const r=this.resources.get(e);r&&(r.state="success",r.data=t,n&&n(),this.addUpdateBoundTag(),this.stage&&this.stage.renderNextFrame())}imageLoadFail(e,t){if(!this.resources)return;const n=this.resources.get(e);n&&(n.state="fail",t&&t())}_stopAnimates(e){e&&e.forEach((e=>{e.stop()}))}stopAnimates(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._stopAnimates(this.animates),this.shadowRoot&&this.shadowRoot.stopAnimates(!0),this.isContainer&&e&&this.forEachChildren((t=>{t.stopAnimates(e)}))}release(){this.releaseStatus="released",ir.graphicService.onRelease(this)}_emitCustomEvent(e,t){var n,r;if(this._events&&e in this._events){const i=new Er(e,t);i.bubbles=!1,i.manager=null===(r=null===(n=this.stage)||void 0===n?void 0:n.eventSystem)||void 0===r?void 0:r.manager,this.dispatchEvent(i)}}}ci.mixin(Pr);class di{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}function hi(e,t,n,r){const i=e.indexOf(t,n);if(-1===i)throw new Error(r);return i+t.length-1}function fi(e,t,n){const r=function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:">",i="";for(let a=t;a<e.length;a++){let t=e[a];if(n)t===n&&(n="");else if('"'===t||"'"===t)n=t;else if(t===r[0]){if(!r[1])return{data:i,index:a};if(e[a+1]===r[1])return{data:i,index:a}}else"\t"===t&&(t=" ");i+=t}}(e,t+1,arguments.length>3&&void 0!==arguments[3]?arguments[3]:">");if(!r)return;let i=r.data;const a=r.index,o=i.search(/\s/);let s=i,l=!0;-1!==o&&(s=i.substr(0,o).replace(/\s\s*$/,""),i=i.substr(o+1));const u=s;if(n){const e=s.indexOf(":");-1!==e&&(s=s.substr(e+1),l=s!==r.data.substr(e+1))}return{tagName:s,tagExp:i,closeIndex:a,attrExpPresent:l,rawTagName:u}}const pi=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");class gi{constructor(e){this.currentNode=null,this.options=e,this.tagsNodeStack=[],this.docTypeEntities={}}addChild(e,t,n){const r=t.tagname;"string"==typeof r?(t.tagname=r,e.addChild(t)):e.addChild(t)}buildAttributesMap(e,t,n){const r={};if(!e)return;const i=function(e,t){const n=[];let r=t.exec(e);for(;r;){const i=[];i.startIndex=t.lastIndex-r[0].length;const a=r.length;for(let e=0;e<a;e++)i.push(r[e]);n.push(i),r=t.exec(e)}return n}(e,pi),a=i.length;for(let e=0;e<a;e++){const t=i[e][1],n=i[e][4];t&&(r[t]=void 0===n||(isNaN(n)?n:Number(n)))}return r}parseXml(e){e=e.replace(/\r\n?/g,"\n");const t=new di("!xml");let n=t,r="",i="";for(let a=0;a<e.length;a++)if("<"===e[a])if("/"===e[a+1]){const t=hi(e,">",a,"Closing Tag is not closed."),o=i.lastIndexOf(".");i=i.substring(0,o),n=this.tagsNodeStack.pop(),n&&n.child&&r&&n.child[n.child.length-1][":@"]&&(n.child[n.child.length-1][":@"].text=r),r="",a=t}else if("?"===e[a+1])a=fi(e,a,!1,"?>").closeIndex+1;else if("!--"===e.substr(a+1,3))a=hi(e,"--\x3e",a+4,"Comment is not closed.");else{const o=fi(e,a,!1);let s=o.tagName,l=o.tagExp;const u=o.attrExpPresent,c=o.closeIndex;if(s!==t.tagname&&(i+=i?"."+s:s),l.length>0&&l.lastIndexOf("/")===l.length-1){"/"===s[s.length-1]?(s=s.substr(0,s.length-1),i=i.substr(0,i.length-1),l=s):l=l.substr(0,l.length-1);const e=new di(s);s!==l&&u&&(e[":@"]=this.buildAttributesMap(l,i,s)),this.addChild(n,e,i),i=i.substr(0,i.lastIndexOf("."))}else{const e=new di(s);this.tagsNodeStack.push(n),s!==l&&u&&(e[":@"]=this.buildAttributesMap(l,i,s)),this.addChild(n,e,i),n=e}r="",a=c}else r+=e[a];return t.child}}function mi(e,t){return yi(e)}function yi(e,t){const n={};for(let t=0;t<e.length;t++){const i=e[t],a=vi(i);if(void 0!==a&&i[a]){const e=yi(i[a]);r=e,Object.keys(r).length,i[":@"]&&bi(e,i[":@"]),void 0!==n[a]&&n.hasOwnProperty(a)?(Array.isArray(n[a])||(n[a]=[n[a]]),n[a].push(e)):n[a]=e}}var r;return n}function vi(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function bi(e,t,n){if(t){const n=Object.keys(t),r=n.length;for(let i=0;i<r;i++){const r=n[i];e[r]=t[r]}}}class xi{constructor(e){this.options=Object.assign({},xi.defaultOptions,e)}valid(e){return e.startsWith("<")}parse(e){if(!this.valid)return!1;return mi(new gi(this.options).parseXml(e),this.options)}}function Si(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e.expand(t+(r/2+(n?function(e,t){return e?t:0}(n,t):0))),e}xi.defaultOptions={};let wi=0;function _i(){return wi++}var Ti;function Ai(e){const t=[];let n=0,r="";for(let i=0;i<e.length;i++)Ei(e[i])?n?r+=e[i]:(n=1,r=e[i]):(n&&(t.push({text:r,direction:Ti.VERTICAL}),r="",n=0),t.push({text:e[i],direction:Ti.HORIZONTAL}));return r&&t.push({text:r,direction:Ti.VERTICAL}),t}!function(e){e[e.HORIZONTAL=0]="HORIZONTAL",e[e.VERTICAL=1]="VERTICAL"}(Ti||(Ti={}));const ki=new Map;["…","(",")","—","【","】","「","」","《","》"].forEach((e=>ki.set(e,!0)));const Ci=new Map;function Ei(e){if(ki.has(e))return!0;if(Ci.has(e))return!1;let t=!1;return e.codePointAt(0)<256&&(t=!0),t}[""].forEach((e=>Ci.set(e,!0)));const Pi=_i();_i(),_i(),_i(),_i();const Bi=_i(),Ri=_i();_i(),_i(),_i(),_i();const Mi=_i();_i();const Li=_i(),Oi=_i(),Ii=_i(),Ni=Symbol.for("GraphicCreator"),Di={"stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-width":"lineWidth","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity",stroke:"stroke",fill:"fill"},Ui=Object.keys(Di);var zi;!function(e){e[e.LESS_GROUP=0]="LESS_GROUP",e[e.MORE_GROUP=1]="MORE_GROUP"}(zi||(zi={}));let Fi=class e extends ci{constructor(e){super(e),this.type="group",this.parent=null,this.isContainer=!0,this.numberType=Bi,this._childUpdateTag=Ht.UPDATE_BOUNDS}setMode(e){"3d"===e?this.set3dMode():this.set2dMode()}set3dMode(){this.in3dMode=!0}set2dMode(){this.in3dMode=!1}setTheme(e){return this.theme||(this.theme=new wr),this.theme.setTheme(e,this)}createTheme(){this.theme||(this.theme=new wr)}visibleAll(e){this.setAttribute("visible",e),this.forEachChildren((t=>{t.isContainer&&t.visibleAll?t.visibleAll(e):t.setAttribute("visible",e)}))}hideAll(){this.visibleAll(!1)}showAll(){this.visibleAll(!0)}containsPoint(e,t,n){if(n===$t.GLOBAL){const n=new ue(e,t);return this.parent&&this.parent.globalTransMatrix.transformPoint(n,n),this.AABBBounds.contains(n.x,n.y)}return this.AABBBounds.contains(e,t)}shouldUpdateAABBBounds(){return!!super.shouldUpdateAABBBounds()||!!(this._childUpdateTag&Ht.UPDATE_BOUNDS)}tryUpdateAABBBounds(){if(!this.shouldUpdateAABBBounds())return this._AABBBounds;ir.graphicService.beforeUpdateAABBBounds(this,this.stage,!0,this._AABBBounds);const e=this.shouldSelfChangeUpdateAABBBounds(),t=this.doUpdateAABBBounds();return this.addUpdateLayoutTag(),ir.graphicService.afterUpdateAABBBounds(this,this.stage,this._AABBBounds,this,e),t}doUpdateLocalMatrix(){const{x:e=Dn.x,y:t=Dn.y,dx:n=Dn.dx,dy:r=Dn.dy,scaleX:i=Dn.scaleX,scaleY:a=Dn.scaleY,angle:o=Dn.angle,postMatrix:s}=this.attribute;if(0!==e||0!==t||0!==n||0!==r||1!==i||1!==a||0!==o||s)return super.doUpdateLocalMatrix();this._transMatrix.reset()}getGraphicTheme(){return Tr(this).group}updateAABBBounds(e,t,n){const r=n;n=n.clone();const{width:i,height:a,path:o,clip:s=t.clip,display:l}=e;return o&&o.length?o.forEach((e=>{n.union(e.AABBBounds)})):null!=i&&null!=a&&n.set(0,0,Math.max(0,i),Math.max(0,a)),s||this.forEachChildren((e=>{n.union(e.AABBBounds)})),ir.graphicService.updateTempAABBBounds(n),ir.graphicService.transformAABBBounds(e,n,t,!1,this),r.copy(n),r}doUpdateAABBBounds(){const e=super.doUpdateAABBBounds();return this.parent&&this.parent.addChildUpdateBoundTag(),this._emitCustomEvent("AAABBBoundsChange"),e}clearUpdateBoundTag(){this._updateTag&=Ht.CLEAR_BOUNDS,this._childUpdateTag&=Ht.CLEAR_BOUNDS}addUpdateBoundTag(){this._updateTag|=Ht.UPDATE_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag()}addChildUpdateBoundTag(){this._childUpdateTag&Ht.UPDATE_BOUNDS||(this._childUpdateTag|=Ht.UPDATE_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag())}getTheme(){return this.theme.getTheme(this)}incrementalAppendChild(e){const t=super.appendChild(e);return this.stage&&t&&(t.stage=this.stage,t.layer=this.layer),this.addUpdateBoundTag(),ir.graphicService.onAddIncremental(e,this,this.stage),t}incrementalClearChild(){super.removeAllChild(),this.addUpdateBoundTag(),ir.graphicService.onClearIncremental(this,this.stage)}_updateChildToStage(e){return this.stage&&e&&e.setStage(this.stage,this.layer),this.addUpdateBoundTag(),e}appendChild(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=super.appendChild(e);return t&&this.stage&&n&&n.setStage(this.stage,this.layer),this.addUpdateBoundTag(),n}insertBefore(e,t){return this._updateChildToStage(super.insertBefore(e,t))}insertAfter(e,t){return this._updateChildToStage(super.insertAfter(e,t))}insertInto(e,t){return this._updateChildToStage(super.insertInto(e,t))}removeChild(e){const t=super.removeChild(e);return e.stage=null,ir.graphicService.onRemove(e),this.addUpdateBoundTag(),t}removeAllChild(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.forEachChildren((t=>{ir.graphicService.onRemove(t),e&&t.isContainer&&t.removeAllChild(e)})),super.removeAllChild(),this.addUpdateBoundTag()}setStage(e,t){this.stage!==e&&(this.stage=e,this.layer=t,this.setStageToShadowRoot(e,t),this._onSetStage&&this._onSetStage(this,e,t),ir.graphicService.onSetStage(this,e),this.forEachChildren((t=>{t.setStage(e,this.layer)})))}addUpdatePositionTag(){super.addUpdatePositionTag(),this.forEachChildren((e=>{e.isContainer&&e.addUpdateGlobalPositionTag()}))}addUpdateGlobalPositionTag(){super.addUpdateGlobalPositionTag(),this.forEachChildren((e=>{e.isContainer&&e.addUpdateGlobalPositionTag()}))}tryUpdateGlobalTransMatrix(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.shouldUpdateGlobalMatrix()){if(this._globalTransMatrix){if(this.parent){const e=this.parent.globalTransMatrix;this._globalTransMatrix.setValue(e.a,e.b,e.c,e.d,e.e,e.f)}}else this._globalTransMatrix=this.parent?this.parent.globalTransMatrix.clone():this.transMatrix.clone();this.doUpdateGlobalMatrix(),e&&this.clearUpdateGlobalPositionTag()}return this._globalTransMatrix}shouldUpdateGlobalMatrix(){return!!(this._updateTag&Ht.UPDATE_GLOBAL_MATRIX)}_getChildByName(e,t){return this.find((t=>t.name===e),t)}createOrUpdateChild(e,t,n){let r=this._getChildByName(e);return r?r.setAttributes(t):(r=ir.graphicService.creator[n](t),r.name=e,this.add(r)),r}clone(){return new e(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return e.NOWORK_ANIMATE_ATTR}};function ji(e){return new Fi(e)}function Wi(e,t){return!(!e&&!t)}function Hi(e,t){let n;return n=w(e)?e.some((e=>e||void 0===e)):!!e,n&&t>0}function $i(e,t,n){return n&&e*t>0}function Vi(e,t){return e*t>0}Fi.NOWORK_ANIMATE_ATTR=ui;const Gi=Symbol.for("ImageRenderContribution"),Yi=Symbol.for("RectRenderContribution"),qi=Symbol.for("SymbolRenderContribution"),Qi=Symbol.for("TextRenderContribution"),Xi=Symbol.for("InteractiveSubRenderContribution");function Ki(e,t){return"end"===e||"right"===e?-t:"center"===e?-t/2:0}function Zi(e,t,n){return"middle"===e?-t/2:"top"===e?0:"bottom"===e?(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)-t:e&&"alphabetic"!==e?0:(n||(n=t),-(t-n)/2-.79*n)}function Ji(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function ea(e,t,n){const r=n[0],i=n[1],a=n[2];let o,s,l,u,c,d,h,f,p,g,m,y;return t===e?(e[12]=t[0]*r+t[4]*i+t[8]*a+t[12],e[13]=t[1]*r+t[5]*i+t[9]*a+t[13],e[14]=t[2]*r+t[6]*i+t[10]*a+t[14],e[15]=t[3]*r+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],d=t[5],h=t[6],f=t[7],p=t[8],g=t[9],m=t[10],y=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=d,e[6]=h,e[7]=f,e[8]=p,e[9]=g,e[10]=m,e[11]=y,e[12]=o*r+c*i+p*a+t[12],e[13]=s*r+d*i+g*a+t[13],e[14]=l*r+h*i+m*a+t[14],e[15]=u*r+f*i+y*a+t[15]),e}function ta(e,t,n){const r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],d=t[8],h=t[9],f=t[10],p=t[11],g=t[12],m=t[13],y=t[14],v=t[15];let b=n[0],x=n[1],S=n[2],w=n[3];return e[0]=b*r+x*s+S*d+w*g,e[1]=b*i+x*l+S*h+w*m,e[2]=b*a+x*u+S*f+w*y,e[3]=b*o+x*c+S*p+w*v,b=n[4],x=n[5],S=n[6],w=n[7],e[4]=b*r+x*s+S*d+w*g,e[5]=b*i+x*l+S*h+w*m,e[6]=b*a+x*u+S*f+w*y,e[7]=b*o+x*c+S*p+w*v,b=n[8],x=n[9],S=n[10],w=n[11],e[8]=b*r+x*s+S*d+w*g,e[9]=b*i+x*l+S*h+w*m,e[10]=b*a+x*u+S*f+w*y,e[11]=b*o+x*c+S*p+w*v,b=n[12],x=n[13],S=n[14],w=n[15],e[12]=b*r+x*s+S*d+w*g,e[13]=b*i+x*l+S*h+w*m,e[14]=b*a+x*u+S*f+w*y,e[15]=b*o+x*c+S*p+w*v,e}class na{constructor(){this.pools=[]}static identity(e){return Ji(e)}allocate(){if(!this.pools.length)return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];const e=this.pools.pop();return na.identity(e),e}allocateByObj(e){let t;t=this.pools.length?this.pools.pop():[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];for(let n=0;n<t.length;n++)t[n]=e[n];return t}free(e){e&&this.pools.push(e)}get length(){return this.pools.length}release(){this.pools=[]}}const ra=new class{constructor(){this.pools=[]}allocate(e,t,n,r,i,a){if(!this.pools.length)return new ge(e,t,n,r,i,a);const o=this.pools.pop();return o.a=e,o.b=t,o.c=n,o.d=r,o.e=i,o.f=a,o}allocateByObj(e){if(!this.pools.length)return new ge(e.a,e.b,e.c,e.d,e.e,e.f);const t=this.pools.pop();return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t.e=e.e,t.f=e.f,t}free(e){this.pools.push(e)}get length(){return this.pools.length}release(){this.pools=[]}},ia=new na;var aa=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},oa=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},sa=function(e,t){return function(n,r){t(n,r,e)}};function la(e,t,n){var r;const{x:i=n.x,y:a=n.y,z:o=n.z,dx:s=n.dx,dy:l=n.dy,dz:u=n.dz,scaleX:c=n.scaleX,scaleY:d=n.scaleY,scaleZ:h=n.scaleZ,alpha:f=n.alpha,beta:p=n.beta,angle:g=n.angle,anchor3d:m=t.attribute.anchor,anchor:y}=t.attribute,v=[0,0,0];if(m){if("string"==typeof m[0]){const e=parseFloat(m[0])/100,n=t.AABBBounds;v[0]=n.x1+(n.x2-n.x1)*e}else v[0]=m[0];if("string"==typeof m[1]){const e=parseFloat(m[1])/100,n=t.AABBBounds;v[1]=n.x1+(n.x2-n.x1)*e}else v[1]=m[1];v[2]=null!==(r=m[2])&&void 0!==r?r:0}if(Ji(e),ea(e,e,[i+s,a+l,o+u]),ea(e,e,[v[0],v[1],v[2]]),function(e,t,n){const r=Math.sin(n),i=Math.cos(n),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],d=t[10],h=t[11];t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*r,e[5]=o*i+c*r,e[6]=s*i+d*r,e[7]=l*i+h*r,e[8]=u*i-a*r,e[9]=c*i-o*r,e[10]=d*i-s*r,e[11]=h*i-l*r}(e,e,p),function(e,t,n){const r=Math.sin(n),i=Math.cos(n),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],d=t[10],h=t[11];t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*r,e[1]=o*i-c*r,e[2]=s*i-d*r,e[3]=l*i-h*r,e[8]=a*r+u*i,e[9]=o*r+c*i,e[10]=s*r+d*i,e[11]=l*r+h*i}(e,e,f),ea(e,e,[-v[0],-v[1],v[2]]),function(e,t,n){const r=n[0],i=n[1],a=n[2];e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]}(e,e,[c,d,h]),g){const n=ia.allocate(),r=[0,0];if(y){if("string"==typeof m[0]){const e=parseFloat(m[0])/100,n=t.AABBBounds;r[0]=n.x1+(n.x2-n.x1)*e}else r[0]=m[0];if("string"==typeof m[1]){const e=parseFloat(m[1])/100,n=t.AABBBounds;r[1]=n.x1+(n.x2-n.x1)*e}else r[1]=m[1]}ea(n,n,[r[0],r[1],0]),function(e,t,n){const r=Math.sin(n),i=Math.cos(n),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],d=t[6],h=t[7];t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*r,e[1]=o*i+c*r,e[2]=s*i+d*r,e[3]=l*i+h*r,e[4]=u*i-a*r,e[5]=c*i-o*r,e[6]=d*i-s*r,e[7]=h*i-l*r}(n,n,g),ea(n,n,[-r[0],-r[1],0]),ta(e,e,n)}}let ua=class{constructor(e){this.creator=e,this.hooks={onAttributeUpdate:new St(["graphic"]),onSetStage:new St(["graphic","stage"]),onRemove:new St(["graphic"]),onRelease:new St(["graphic"]),onAddIncremental:new St(["graphic","group","stage"]),onClearIncremental:new St(["graphic","group","stage"]),beforeUpdateAABBBounds:new St(["graphic","stage","willUpdate","aabbBounds"]),afterUpdateAABBBounds:new St(["graphic","stage","aabbBounds","globalAABBBounds","selfChange"])},this.tempAABBBounds1=new fe,this.tempAABBBounds2=new fe}onAttributeUpdate(e){this.hooks.onAttributeUpdate.taps.length&&this.hooks.onAttributeUpdate.call(e)}onSetStage(e,t){this.hooks.onSetStage.taps.length&&this.hooks.onSetStage.call(e,t)}onRemove(e){this.hooks.onRemove.taps.length&&this.hooks.onRemove.call(e)}onRelease(e){this.hooks.onRelease.taps.length&&this.hooks.onRelease.call(e)}onAddIncremental(e,t,n){this.hooks.onAddIncremental.taps.length&&this.hooks.onAddIncremental.call(e,t,n)}onClearIncremental(e,t){this.hooks.onClearIncremental.taps.length&&this.hooks.onClearIncremental.call(e,t)}beforeUpdateAABBBounds(e,t,n,r){this.hooks.beforeUpdateAABBBounds.taps.length&&this.hooks.beforeUpdateAABBBounds.call(e,t,n,r)}afterUpdateAABBBounds(e,t,n,r,i){this.hooks.afterUpdateAABBBounds.taps.length&&this.hooks.afterUpdateAABBBounds.call(e,t,n,r,i)}updatePathProxyAABBBounds(e,t){const n="function"==typeof t.pathProxy?t.pathProxy(t.attribute):t.pathProxy;if(!n)return!1;const r=new Tt(e);return nn(n.commandList,r,0,0),!0}updateHTMLTextAABBBounds(e,t,n,r){const{textAlign:i,textBaseline:a}=e;if(null!=e.forceBoundsHeight){const t=T(e.forceBoundsHeight)?e.forceBoundsHeight:e.forceBoundsHeight(),r=Zi(a,t,t);n.set(n.x1,r,n.x2,r+t)}if(null!=e.forceBoundsWidth){const t=T(e.forceBoundsWidth)?e.forceBoundsWidth:e.forceBoundsWidth(),r=Ki(i,t);n.set(r,n.y1,r+t,n.y2)}}combindShadowAABBBounds(e,t){if(t&&t.shadowRoot){const n=t.shadowRoot.AABBBounds;e.union(n)}}transformAABBBounds(e,t,n,r,i){if(!t.empty()){const{scaleX:i=n.scaleX,scaleY:a=n.scaleY,stroke:o=n.stroke,shadowBlur:s=n.shadowBlur,lineWidth:l=n.lineWidth,pickStrokeBuffer:u=n.pickStrokeBuffer,strokeBoundsBuffer:c=n.strokeBoundsBuffer}=e,d=this.tempAABBBounds1,h=this.tempAABBBounds2;if(o&&l){Si(d,(l+u)/Math.abs(i+a),r,c),t.union(d),d.setValue(h.x1,h.y1,h.x2,h.y2)}if(s){const{shadowOffsetX:r=n.shadowOffsetX,shadowOffsetY:o=n.shadowOffsetY}=e;Si(d,s/Math.abs(i+a)*2,!1,c+1),d.translate(r,o),t.union(d)}}if(this.combindShadowAABBBounds(t,i),t.empty())return;let a=!0;const o=i.transMatrix;i&&i.isContainer&&(a=!(1===o.a&&0===o.b&&0===o.c&&1===o.d&&0===o.e&&0===o.f)),a&&de(t,t,o)}validCheck(e,t,n,r){if(!r)return!0;if(null!=e.forceBoundsHeight||null!=e.forceBoundsWidth)return!0;if(!r.valid)return n.clear(),!1;const{visible:i=t.visible}=e;return!!i||(n.clear(),!1)}updateTempAABBBounds(e){const t=this.tempAABBBounds1,n=this.tempAABBBounds2;return t.setValue(e.x1,e.y1,e.x2,e.y2),n.setValue(e.x1,e.y1,e.x2,e.y2),{tb1:t,tb2:n}}};ua=aa([tt(),sa(0,Je(Ni)),oa("design:paramtypes",[Object])],ua);const ca={x:0,y:0,z:0,lastModelMatrix:null};class da{init(e){e&&(this._renderContribitions=e.getContributions()),this._renderContribitions||(this._renderContribitions=[]),this.builtinContributions&&this.builtinContributions.forEach((e=>this._renderContribitions.push(e))),this._renderContribitions.length&&(this._renderContribitions.sort(((e,t)=>t.order-e.order)),this._beforeRenderContribitions=this._renderContribitions.filter((e=>e.time===Kt.beforeFillStroke)),this._afterRenderContribitions=this._renderContribitions.filter((e=>e.time===Kt.afterFillStroke)))}beforeRenderStep(e,t,n,r,i,a,o,s,l,u,c,d,h){this._beforeRenderContribitions&&this._beforeRenderContribitions.forEach((f=>{f.supportedAppName&&e.stage&&e.stage.params&&e.stage.params.context&&e.stage.params.context.appName&&!(Array.isArray(f.supportedAppName)?f.supportedAppName:[f.supportedAppName]).includes(e.stage.params.context.appName)||f.drawShape(e,t,n,r,i,a,o,s,l,u,c,d,h)}))}afterRenderStep(e,t,n,r,i,a,o,s,l,u,c,d,h){this._afterRenderContribitions&&this._afterRenderContribitions.forEach((f=>{f.supportedAppName&&e.stage&&e.stage.params&&e.stage.params.context&&e.stage.params.context.appName&&!(Array.isArray(f.supportedAppName)?f.supportedAppName:[f.supportedAppName]).includes(e.stage.params.context.appName)||f.drawShape(e,t,n,r,i,a,o,s,l,u,c,d,h)}))}valid(e,t,n,r){const{fill:i=t.fill,background:a,stroke:o=t.stroke,opacity:s=t.opacity,fillOpacity:l=t.fillOpacity,lineWidth:u=t.lineWidth,strokeOpacity:c=t.strokeOpacity,visible:d=t.visible}=e.attribute,h=$i(s,l,i),f=Vi(s,c),p=Wi(i,a),g=Hi(o,u);return!(!e.valid||!d)&&!(!p&&!g)&&!!(h||f||n||r||a)&&{fVisible:h,sVisible:f,doFill:p,doStroke:g}}transform(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const{x:i=t.x,y:a=t.y,z:o=t.z,scaleX:s=t.scaleX,scaleY:l=t.scaleY,angle:u=t.angle,postMatrix:c}=e.attribute,d=n.modelMatrix,h=n.camera;ca.x=i,ca.y=a,ca.z=o,ca.lastModelMatrix=d;const f=h&&(r||function(e){const{alpha:t,beta:n}=e.attribute;return t||n}(e)),p=f?e.transMatrix.onlyTranslate()&&!c:1===s&&1===l&&0===u&&!c;if(f){const r=ia.allocate(),i=ia.allocate();la(i,e,t),ta(r,d||r,i),ca.x=0,ca.y=0,ca.z=0,n.modelMatrix=r,n.setTransform(1,0,0,1,0,0,!0),ia.free(i)}if(p&&!d){const r=e.getOffsetXY(t);ca.x+=r.x,ca.y+=r.y,ca.z=o,n.setTransformForCurrent()}else if(f)ca.x=0,ca.y=0,ca.z=0,n.setTransform(1,0,0,1,0,0,!0);else if(h&&n.project){const r=e.getOffsetXY(t);ca.x+=r.x,ca.y+=r.y,this.transformWithoutTranslate(n,ca.x,ca.y,ca.z,s,l,u)}else n.transformFromMatrix(e.transMatrix,!0),ca.x=0,ca.y=0,ca.z=0;return ca}transformUseContext2d(e,t,n,r){const i=r.camera;if(this.camera=i,i){const t=e.AABBBounds,i=t.x2-t.x1,a=t.y2-t.y1,o=r.project(0,0,n),s=r.project(i,0,n),l=r.project(i,a,n),u={x:0,y:0},c={x:i,y:0},d={x:i,y:a};r.camera=null;const h=1/(u.x*(d.y-c.y)-c.x*d.y+d.x*c.y+(c.x-d.x)*u.y),f=-(u.y*(l.x-s.x)-c.y*l.x+d.y*s.x+(c.y-d.y)*o.x)*h,p=(c.y*l.y+u.y*(s.y-l.y)-d.y*s.y+(d.y-c.y)*o.y)*h,g=(u.x*(l.x-s.x)-c.x*l.x+d.x*s.x+(c.x-d.x)*o.x)*h,m=-(c.x*l.y+u.x*(s.y-l.y)-d.x*s.y+(d.x-c.x)*o.y)*h,y=(u.x*(d.y*s.x-c.y*l.x)+u.y*(c.x*l.x-d.x*s.x)+(d.x*c.y-c.x*d.y)*o.x)*h,v=(u.x*(d.y*s.y-c.y*l.y)+u.y*(c.x*l.y-d.x*s.y)+(d.x*c.y-c.x*d.y)*o.y)*h;r.setTransform(f,p,g,m,y,v,!0)}}restoreTransformUseContext2d(e,t,n,r){this.camera&&(r.camera=this.camera)}transformWithoutTranslate(e,t,n,r,i,a,o){const s=e.project(t,n,r);e.translate(s.x,s.y,!1),e.scale(i,a,!1),e.rotate(o,!1),e.translate(-s.x,-s.y,!1),e.setTransformForCurrent()}_draw(e,t,n,r,i){const{context:a}=r;if(!a)return;const{renderable:o}=e.attribute;if(!1===o)return;a.highPerformanceSave();const s=this.transform(e,t,a,n),{x:l,y:u,z:c,lastModelMatrix:d}=s;this.z=c,function(e,t,n,r,i,a,o,s){if(!e.pathProxy)return!1;const l=Tr(e,null==a?void 0:a.theme)[e.type.replace("3d","")],{fill:u=l.fill,stroke:c=l.stroke,opacity:d=l.opacity,fillOpacity:h=l.fillOpacity,lineWidth:f=l.lineWidth,strokeOpacity:p=l.strokeOpacity,visible:g=l.visible,x:m=l.x,y:y=l.y}=e.attribute,v=$i(d,h,u),b=Vi(d,p),x=Wi(u),S=Hi(c,f);return!g||(!x&&!S||(!(v||b||o||s)||(t.beginPath(),nn(("function"==typeof e.pathProxy?e.pathProxy(e.attribute):e.pathProxy).commandList,t,n,r),t.setShadowBlendStyle&&t.setShadowBlendStyle(e,e.attribute,l),S&&(s?s(t,e.attribute,l):b&&(t.setStrokeStyle(e,e.attribute,n-m,r-y,l),t.stroke())),x&&(o?o(t,e.attribute,l):v&&(t.setCommonStyle(e,e.attribute,n-m,r-y,l),t.fill())),!0)))}(e,a,l,u,0,i)||(this.drawShape(e,a,l,u,r,i),this.z=0,a.modelMatrix!==d&&ia.free(a.modelMatrix),a.modelMatrix=d),a.highPerformanceRestore()}}function ha(e,t,n){let r=t;const{a:i,b:a,c:o,d:s}=e.currentMatrix,l=Math.sign(i)*Math.sqrt(i*i+a*a),u=Math.sign(s)*Math.sqrt(o*o+s*s);return l+u===0?0:(r=r/Math.abs(l+u)*2*n,r)}var fa=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},pa=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ga=function(e,t){return function(n,r){t(n,r,e)}};class ma{constructor(){this.time=Kt.beforeFillStroke,this.useStyle=!0,this.order=0}drawShape(e,t,n,r,i,a,o,s,l,u,c,d,h){var f;const{background:p,backgroundOpacity:g=(null!==(f=e.attribute.fillOpacity)&&void 0!==f?f:l.backgroundOpacity),opacity:m=l.opacity,backgroundMode:y=l.backgroundMode,backgroundFit:v=l.backgroundFit}=e.attribute;if(p)if(e.backgroundImg&&e.resources){const i=e.resources.get(p);if("success"!==i.state||!i.data)return;if(t.save(),e.parent&&!e.transMatrix.onlyTranslate()){const n=Tr(e.parent).group,{scrollX:r=n.scrollX,scrollY:i=n.scrollY}=e.parent.attribute;t.setTransformFromMatrix(e.parent.globalTransMatrix,!0),t.translate(r,i)}t.clip();const a=e.AABBBounds;t.setCommonStyle(e,e.attribute,n,r,l),t.globalAlpha=g*m,this.doDrawImage(t,i.data,a,y,v),t.restore(),e.transMatrix.onlyTranslate()||t.setTransformForCurrent()}else t.highPerformanceSave(),t.setCommonStyle(e,e.attribute,n,r,l),t.globalAlpha=g*m,t.fillStyle=p,t.fill(),t.highPerformanceRestore()}doDrawImage(e,t,n,r,i){if("no-repeat"===r)e.drawImage(t,n.x1,n.y1,n.width(),n.height());else{const a=n.width(),o=n.height();let s=a,l=o;if(i&&"repeat"!==r&&(t.width||t.height)){const n=t.width,i=t.height;"repeat-x"===r?(s=n*(o/i),l=o):"repeat-y"===r&&(l=i*(a/n),s=a);const u=e.dpr,c=yr.allocate({width:s,height:l,dpr:u}),d=c.getContext("2d");d&&(d.inuse=!0,d.clearMatrix(),d.setTransformForCurrent(!0),d.clearRect(0,0,s,l),d.drawImage(t,0,0,s,l),t=c.nativeCanvas),yr.free(c)}const u=e.dpr,c=e.createPattern(t,r);c.setTransform&&c.setTransform(new DOMMatrix([1/u,0,0,1/u,0,0])),e.fillStyle=c,e.translate(n.x1,n.y1),e.fillRect(0,0,a,o),e.translate(-n.x1,-n.y1)}}}const ya=new ma;let va=class{constructor(e){this.subRenderContribitions=e,this.time=Kt.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(e,t,n,r,i,a,o,s,l,u,c,d,h){this._subRenderContribitions||(this._subRenderContribitions=this.subRenderContribitions.getContributions()),this._subRenderContribitions.forEach((f=>{f.render(e,t,n,r,i,a,o,s,l,u,c,d,h)}))}};va=fa([tt(),ga(0,Je(yt)),ga(0,nt(Xi)),pa("design:paramtypes",[Object])],va);const ba=new class{constructor(){this.time=Kt.afterFillStroke,this.useStyle=!0,this.order=10}createCommonPattern(e,t,n,r,i){const a=(e-2*t)/2,o=r.dpr,s=yr.allocate({width:e,height:e,dpr:o}),l=s.getContext("2d");if(!l)return null;l.inuse=!0,l.clearMatrix(),l.setTransformForCurrent(!0),l.clearRect(0,0,e,e),i(a,l);const u=r.createPattern(s.nativeCanvas,"repeat");return u.setTransform&&u.setTransform(new DOMMatrix([1/o,0,0,1/o,0,0])),yr.free(s),u}createCirclePattern(e,t,n,r){return this.createCommonPattern(e,t,n,r,((e,t)=>{t.fillStyle=n,t.arc(e,e,e,0,J),t.fill()}))}createDiamondPattern(e,t,n,r){return this.createCommonPattern(e,t,n,r,((t,r)=>{const i=e/2,a=i;r.fillStyle=n,r.moveTo(i,a-t),r.lineTo(t+i,a),r.lineTo(i,a+t),r.lineTo(i-t,a),r.closePath(),r.fill()}))}createRectPattern(e,t,n,r){return this.createCommonPattern(e,t,n,r,((e,r)=>{const i=t,a=i;r.fillStyle=n,r.fillRect(i,a,2*e,2*e)}))}createVerticalLinePattern(e,t,n,r){return this.createCommonPattern(e,t,n,r,((r,i)=>{const a=t;i.fillStyle=n,i.fillRect(a,0,2*r,e)}))}createHorizontalLinePattern(e,t,n,r){return this.createCommonPattern(e,t,n,r,((r,i)=>{const a=t;i.fillStyle=n,i.fillRect(0,a,e,2*r)}))}createBiasLRLinePattern(e,t,n,r){return this.createCommonPattern(e,t,n,r,((t,r)=>{r.strokeStyle=n,r.lineWidth=t,r.moveTo(0,0),r.lineTo(e,e);const i=e/2,a=-i;r.moveTo(i,a),r.lineTo(i+e,a+e),r.moveTo(-i,-a),r.lineTo(-i+e,-a+e),r.stroke()}))}createBiasRLLinePattern(e,t,n,r){return this.createCommonPattern(e,t,n,r,((t,r)=>{r.strokeStyle=n,r.lineWidth=t,r.moveTo(e,0),r.lineTo(0,e);const i=e/2,a=i;r.moveTo(e+i,a),r.lineTo(i,a+e),r.moveTo(e-i,-a),r.lineTo(-i,-a+e),r.stroke()}))}createGridPattern(e,t,n,r){return this.createCommonPattern(e,t,n,r,((e,r)=>{const i=t,a=i;r.fillStyle=n,r.fillRect(i,a,e,e),r.fillRect(i+e,a+e,e,e)}))}initTextureMap(e,t){this.textureMap=new Map}drawShape(e,t,n,r,i,a,o,s,l,u,c,d,h){this.textureMap||this.initTextureMap(t,e.stage);const{texture:f=l.texture,textureColor:p=l.textureColor,textureSize:g=l.textureSize,texturePadding:m=l.texturePadding}=e.attribute;f&&this.drawTexture(f,e,t,n,r,l,p,g,m)}drawTexture(e,t,n,r,i,a,o,s,l){let u=this.textureMap.get(e);if(!u)switch(e){case"circle":u=this.createCirclePattern(s,l,o,n);break;case"diamond":u=this.createDiamondPattern(s,l,o,n);break;case"rect":u=this.createRectPattern(s,l,o,n);break;case"vertical-line":u=this.createVerticalLinePattern(s,l,o,n);break;case"horizontal-line":u=this.createHorizontalLinePattern(s,l,o,n);break;case"bias-lr":u=this.createBiasLRLinePattern(s,l,o,n);break;case"bias-rl":u=this.createBiasRLLinePattern(s,l,o,n);break;case"grid":u=this.createGridPattern(s,l,o,n)}u&&(n.highPerformanceSave(),n.setCommonStyle(t,t.attribute,r,i,a),n.fillStyle=u,n.fill(),n.highPerformanceRestore())}},xa=X/2;function Sa(e,t,n,r,i,a,o){let s;if(r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),T(a,!0))s=[a=ee(a),a,a,a];else if(Array.isArray(a)){const e=a;let t,n;switch(e.length){case 0:s=[0,0,0,0];break;case 1:t=ee(e[0]),s=[t,t,t,t];break;case 2:case 3:t=ee(e[0]),n=ee(e[1]),s=[t,n,t,n];break;default:s=e,s[0]=ee(s[0]),s[1]=ee(s[1]),s[2]=ee(s[2]),s[3]=ee(s[3])}}else s=[0,0,0,0];if(r<0||s[0]+s[1]+s[2]+s[3]<1e-12)return e.rect(t,n,r,i);const[l,u,c,d]=[[t,n],[t+r,n],[t+r,n+i],[t,n+i]],h=Math.min(r/2,i/2),f=[Math.min(h,s[0]),Math.min(h,s[1]),Math.min(h,s[2]),Math.min(h,s[3])],p=[l[0]+f[0],l[1]],g=[l[0],l[1]+f[0]],m=[u[0]-f[1],u[1]],y=[u[0],u[1]+f[1]],v=[c[0]-f[2],c[1]],b=[c[0],c[1]-f[2]],x=[d[0]+f[3],d[1]],S=[d[0],d[1]-f[3]];if(e.moveTo(p[0],p[1]),o&&o[0]?o[0](p[0],p[1],m[0],m[1]):e.lineTo(m[0],m[1]),!H(m,y)){o&&o[0]&&e.moveTo(m[0],m[1]);const t=m[0],n=m[1]+f[1];e.arc(t,n,f[1],-xa,0,!1)}if(o&&o[1]?o[1](y[0],y[1],b[0],b[1]):e.lineTo(b[0],b[1]),!H(v,b)){const t=b[0]-f[2],n=b[1];o&&o[1]&&e.moveTo(b[0],b[1]),e.arc(t,n,f[2],0,xa,!1)}if(o&&o[2]?o[2](v[0],v[1],x[0],x[1]):e.lineTo(x[0],x[1]),!H(x,S)){const t=x[0],n=x[1]-f[3];o&&o[2]&&e.moveTo(x[0],x[1]),e.arc(t,n,f[3],xa,X,!1)}if(o&&o[3]?o[3](S[0],S[1],g[0],g[1]):e.lineTo(g[0],g[1]),!H(p,g)){const t=p[0],n=p[1]+f[0];o&&o[3]&&e.moveTo(g[0],g[1]),e.arc(t,n,f[0],X,X+xa,!1)}return!o&&e.closePath(),e}var wa=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o};class _a{constructor(){this.time=Kt.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(e,t,n,r,i,a,o,s,l,u,c,d){const{outerBorder:h,innerBorder:f}=e.attribute,p=h&&!1!==h.visible,g=f&&!1!==f.visible;if(!p&&!g)return;const{cornerRadius:m=l.cornerRadius,opacity:y=l.opacity,x:v=l.x,y:b=l.y,scaleX:x=l.scaleX,scaleY:S=l.scaleY,x1:_,y1:T}=e.attribute;let{width:A,height:k}=e.attribute;A=(null!=A?A:_-n)||0,k=(null!=k?k:T-r)||0;const C=(i,a)=>{const o=!(!i||!i.stroke),s="outerBorder"===a?-1:1,{distance:u=l[a].distance}=i,c=ha(t,u,t.dpr),h=n+s*c,f=r+s*c,p=2*c;if(0===m||w(m)&&m.every((e=>0===e))?(t.beginPath(),t.rect(h,f,A-s*p,k-s*p)):(t.beginPath(),Sa(t,h,f,A-s*p,k-s*p,m)),t.setShadowBlendStyle&&t.setShadowBlendStyle(e,e.attribute,l),d)d(t,i,l[a]);else if(o){const o=l[a].opacity;l[a].opacity=y,t.setStrokeStyle(e,i,(v-n)/x,(b-r)/S,l[a]),l[a].opacity=o,t.stroke()}};p&&C(h,"outerBorder"),g&&C(f,"innerBorder")}}let Ta=class{constructor(){this.time=Kt.beforeFillStroke,this.useStyle=!0,this.order=0}drawShape(e,t,n,r,i,a,o,s,l,u,c,d,h){const{stroke:f=l.stroke}=e.attribute;Array.isArray(f)&&f.some((e=>!1===e))&&(h.doStroke=!1)}};Ta=wa([tt()],Ta);let Aa=class{constructor(){this.time=Kt.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(e,t,n,r,i,a,o,s,l,u,c,d){const{x1:h,y1:f,x:p=l.x,y:g=l.y,stroke:m=l.stroke,cornerRadius:y=l.cornerRadius}=e.attribute;let{width:v,height:b}=e.attribute;if(v=(null!=v?v:h-p)||0,b=(null!=b?b:f-g)||0,Array.isArray(m)&&m.some((e=>!1===e))){if(t.setStrokeStyle(e,e.attribute,n,r,l),!(0===y||w(y)&&y.every((e=>0===e)))){let i,a=0;return Sa(t,n,r,v,b,y,new Array(4).fill(0).map(((o,s)=>(o,u,c,d)=>{m[s]&&(a===s-1&&m[s]===i||(t.setStrokeStyle(e,Object.assign(Object.assign({},e.attribute),{stroke:m[s]}),n,r,l),t.beginPath(),t.moveTo(o,u),i=m[s]),a=s,t.lineTo(c,d),t.stroke(),3===s&&t.beginPath())}))),void t.stroke()}if(t.beginPath(),t.moveTo(n,r),m[0]?t.lineTo(n+v,r):t.moveTo(n+v,r),m[1]?t.lineTo(n+v,r+b):t.moveTo(n+v,r+b),m[2]?t.lineTo(n,r+b):t.moveTo(n,r+b),m[3]){const e=m[0]?r-t.lineWidth/2:r;t.lineTo(n,e)}else t.moveTo(n,r);t.stroke()}}};Aa=wa([tt()],Aa);const ka=new _a,Ca=ba,Ea=ya;const Pa=new class extends _a{constructor(){super(...arguments),this.time=Kt.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(e,t,n,r,i,a,o,s,l,u,c,d){return super.drawShape(e,t,n,r,i,a,o,s,l,u,c,d)}},Ba=new class extends ma{constructor(){super(...arguments),this.time=Kt.beforeFillStroke}drawShape(e,t,n,r,i,a,o,s,l,u,c,d){const{background:h,backgroundMode:f=l.backgroundMode,backgroundFit:p=l.backgroundFit}=e.attribute;if(h)if(e.backgroundImg){const n=e.resources.get(h);if("success"!==n.state||!n.data)return;if(t.save(),e.parent&&!e.transMatrix.onlyTranslate()){const n=Tr(e.parent).group,{scrollX:r=n.scrollX,scrollY:i=n.scrollY}=e.parent.attribute;t.setTransformFromMatrix(e.parent.globalTransMatrix,!0),t.translate(r,i)}const r=e.AABBBounds;this.doDrawImage(t,n.data,r,f,p),t.restore(),e.transMatrix.onlyTranslate()||t.setTransformForCurrent()}else if(v(h)){const{stroke:n,fill:r,lineWidth:i=1,cornerRadius:a=0,expandX:o=0,expandY:s=0}=h;if(!n&&!r)return;t.beginPath();const{x:l,y:u,width:c,height:d}=function(e){const t=jr(e.attribute.boundsPadding),n=e.AABBBounds;let r=n.x1,i=n.y1,a=n.width(),o=n.height();return T(t)?(r+=t,i+=t,a-=2*t,o-=2*t):(r+=t[3],i+=t[0],a-=t[1]+t[3],o-=t[0]+t[2]),{x:r,y:i,width:a,height:o}}(e);a?Sa(t,l-o,u-s,c+2*o,d+2*s,a):t.rect(l-o,u-s,c+2*o,d+2*s),t.globalAlpha=1,r&&(t.fillStyle=r,t.fill()),n&&i>0&&(t.lineWidth=i,t.strokeStyle=n,t.stroke())}else{t.beginPath();const i=e.AABBBounds;t.rect(n,r,i.width(),i.height()),t.fillStyle=h,t.globalAlpha=1,t.fill()}}};const Ra=new class{constructor(){this.time=Kt.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(e,t,n,r,i,a,o,s,l,u,c,d){const h=e.getParsedPath();if(!h)return;const{outerBorder:f,innerBorder:p}=e.attribute,g=f&&!1!==f.visible,m=p&&!1!==p.visible;if(!g&&!m)return;const{size:y=l.size,opacity:v=l.opacity,x:b=l.x,y:x=l.y,scaleX:S=l.scaleX,scaleY:w=l.scaleY}=e.attribute,_=(i,a)=>{const o=!(!i||!i.stroke),{distance:s=l[a].distance}=i,u=ha(t,s,t.dpr),c="outerBorder"===a?1:-1;if(t.beginPath(),!1===h.drawOffset(t,y,n,r,c*u)&&t.closePath(),t.setShadowBlendStyle&&t.setShadowBlendStyle(e,e.attribute,l),d)d(t,i,l[a]);else if(o){const o=l[a].opacity;l[a].opacity=v,t.setStrokeStyle(e,i,(b-n)/S,(x-r)/w,l[a]),l[a].opacity=o,t.stroke()}};g&&_(f,"outerBorder"),m&&_(p,"innerBorder")}},Ma=ba,La=ya;var Oa=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},Ia=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Na=function(e,t){return function(n,r){t(n,r,e)}};let Da=class extends da{constructor(e){super(),this.rectRenderContribitions=e,this.type="rect",this.numberType=Mi,this.builtinContributions=[ka,Ea,Ca],this.init(e)}drawShape(e,t,n,r,i,a,o,s){var l;const u=null!==(l=this.tempTheme)&&void 0!==l?l:Tr(e,null==a?void 0:a.theme).rect,{fill:c=u.fill,background:d,stroke:h=u.stroke,cornerRadius:f=u.cornerRadius,opacity:p=u.opacity,fillOpacity:g=u.fillOpacity,lineWidth:m=u.lineWidth,strokeOpacity:y=u.strokeOpacity,visible:v=u.visible,x1:b,y1:x,x:S=u.x,y:_=u.y}=e.attribute;let{width:T,height:A}=e.attribute;T=(null!=T?T:b-S)||0,A=(null!=A?A:x-_)||0;const k=function(e,t,n,r,i){return i&&e*t>0&&0!==n&&0!==r}(p,g,T,A,c),C=function(e,t,n,r){return e*t>0&&0!==n&&0!==r}(p,y,T,A),E=Wi(c,d),P=Hi(h,m);if(!e.valid||!v)return;if(!E&&!P)return;if(!(k||C||o||s||d))return;0===f||w(f)&&f.every((e=>0===e))?(t.beginPath(),t.rect(n,r,T,A)):(t.beginPath(),Sa(t,n,r,T,A,f));const B={doFill:E,doStroke:P};t.setShadowBlendStyle&&t.setShadowBlendStyle(e,e.attribute,u),this.beforeRenderStep(e,t,n,r,E,P,k,C,u,i,o,s,B),B.doFill&&(o?o(t,e.attribute,u):k&&(t.setCommonStyle(e,e.attribute,S-n,_-r,u),t.fill())),B.doStroke&&(s?s(t,e.attribute,u):C&&(t.setStrokeStyle(e,e.attribute,S-n,_-r,u),t.stroke())),this.afterRenderStep(e,t,n,r,E,P,k,C,u,i,o,s)}draw(e,t,n,r){const i=Tr(e,null==r?void 0:r.theme).rect;this.tempTheme=i,this._draw(e,i,!1,n,r),this.tempTheme=null}};Da=Oa([tt(),Na(0,Je(yt)),Na(0,nt(Yi)),Ia("design:paramtypes",[Object])],Da);var Ua=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},za=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Fa=function(e,t){return function(n,r){t(n,r,e)}};let ja=class extends da{constructor(e){super(),this.symbolRenderContribitions=e,this.numberType=Oi,this.builtinContributions=[Ra,La,Ma],this.init(e)}drawShape(e,t,n,r,i,a,o,s){var l;const u=Tr(e,null==a?void 0:a.theme).symbol,{size:c=u.size,x:d=u.x,y:h=u.y,scaleX:f=u.scaleX,scaleY:p=u.scaleY}=e.attribute,g=this.valid(e,u,o,s);if(!g)return;const{fVisible:m,sVisible:y,doFill:v,doStroke:b}=g,x=e.getParsedPath();if(!x)return;const{keepDirIn3d:S=u.keepDirIn3d}=e.attribute,_=null!==(l=this.z)&&void 0!==l?l:0;t.beginPath();const T=(i,a)=>{var l,c,g;if(e._parsedPath.svgCache){const t=Object.assign({},a);t.fill=null!==(l=a.fill)&&void 0!==l?l:e.attribute.fill,t.opacity=null!==(c=a.opacity)&&void 0!==c?c:e.attribute.opacity,t.fillOpacity=e.attribute.fillOpacity,t.stroke=null!==(g=a.stroke)&&void 0!==g?g:e.attribute.stroke,a=t}a.fill&&(o?o(t,e.attribute,u):(t.setCommonStyle(e,a,d-n,h-r,u),t.fill())),a.stroke&&(s?s(t,e.attribute,u):(t.setStrokeStyle(e,a,(d-n)/f,(h-r)/p,u),t.stroke()))};if(S&&t.camera&&t.project){const e=t.project(n,r,_),i=t.camera;t.camera=null,!1===x.draw(t,w(c)?[c[0]*f,c[1]*p]:c*f,e.x,e.y,void 0,T)&&t.closePath(),t.camera=i}else!1===x.draw(t,c,n,r,_,T)&&t.closePath();t.setShadowBlendStyle&&t.setShadowBlendStyle(e,e.attribute,u),this.beforeRenderStep(e,t,n,r,v,b,m,y,u,i,o,s),v&&!x.isSvg&&(o?o(t,e.attribute,u):m&&(t.setCommonStyle(e,e.attribute,d-n,h-r,u),t.fill())),b&&!x.isSvg&&(s?s(t,e.attribute,u):y&&(t.setStrokeStyle(e,e.attribute,(d-n)/f,(h-r)/p,u),t.stroke())),this.afterRenderStep(e,t,n,r,v,b,m,y,u,i,o,s)}draw(e,t,n,r){const i=Tr(e,null==r?void 0:r.theme).symbol;this._draw(e,i,!1,n,r)}};ja=Ua([tt(),Fa(0,Je(yt)),Fa(0,nt(qi)),za("design:paramtypes",[Object])],ja);const Wa=new class{constructor(){this.pools=[];for(let e=0;e<10;e++)this.pools.push(new fe)}allocate(e,t,n,r){if(!this.pools.length)return(new fe).setValue(e,t,n,r);const i=this.pools.pop();return i.x1=e,i.y1=t,i.x2=n,i.y2=r,i}allocateByObj(e){if(!this.pools.length)return new fe(e);const t=this.pools.pop();return t.x1=e.x1,t.y1=e.y1,t.x2=e.x2,t.y2=e.y2,t}free(e){this.pools.push(e)}get length(){return this.pools.length}release(){this.pools=[]}};const Ha=new class{constructor(){this.store=new Map}RegisterGraphicCreator(e,t){this.store.set(e,t),this[e]=t}CreateGraphic(e,t){const n=this.store.get(e);return n?n(t):null}};let $a;function Va(e){return $a||($a=Ha.CreateGraphic("text",{})),$a.initAttributes(e),$a.AABBBounds}const Ga=new class extends ma{constructor(){super(...arguments),this.time=Kt.beforeFillStroke}drawShape(e,t,n,r,i,a,o,s,l,u,c,d){var h,f,p,g,m,y,b,x,S,w;const{backgroundMode:_=l.backgroundMode,backgroundFit:T=l.backgroundFit}=e.attribute;let A,{background:k}=e.attribute;if(!k)return;const C=()=>{"richtext"===e.type&&(t.restore(),t.save(),A&&t.setTransformFromMatrix(A,!0,1))};let E;"richtext"===e.type&&(A=t.currentMatrix.clone(),t.restore(),t.save(),t.setTransformForCurrent());const P=v(k)&&k.background,B=e.transMatrix.onlyTranslate();if(P){const t=e.AABBBounds,n=(null!==(h=k.x)&&void 0!==h?h:t.x1)+(null!==(f=k.dx)&&void 0!==f?f:0),r=(null!==(p=k.y)&&void 0!==p?p:t.y1)+(null!==(g=k.dy)&&void 0!==g?g:0),i=null!==(m=k.width)&&void 0!==m?m:t.width(),a=null!==(y=k.height)&&void 0!==y?y:t.height();if(E=Wa.allocate(n,r,n+i,r+a),k=k.background,!B){const e=E.width(),t=E.height();E.set((null!==(b=k.x)&&void 0!==b?b:0)+(null!==(x=k.dx)&&void 0!==x?x:0),(null!==(S=k.y)&&void 0!==S?S:0)+(null!==(w=k.dy)&&void 0!==w?w:0),e,t)}}else E=e.AABBBounds,B||(E=Va(Object.assign(Object.assign({},e.attribute),{angle:0,scaleX:1,scaleY:1,x:0,y:0,dx:0,dy:0})).clone());if(e.backgroundImg&&e.resources){const i=e.resources.get(k);if("success"!==i.state||!i.data)return void C();t.highPerformanceSave(),B&&t.setTransformFromMatrix(e.parent.globalTransMatrix,!0),t.setCommonStyle(e,e.attribute,n,r,l),this.doDrawImage(t,i.data,E,_,T),t.highPerformanceRestore(),t.setTransformForCurrent()}else{const{backgroundCornerRadius:i}=e.attribute;t.highPerformanceSave(),t.setCommonStyle(e,e.attribute,n,r,l),t.fillStyle=k,i?(Sa(t,E.x1,E.y1,E.width(),E.height(),i),t.fill()):t.fillRect(E.x1,E.y1,E.width(),E.height()),t.highPerformanceRestore()}P&&Wa.free(E),C()}};var Ya=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},qa=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Qa=function(e,t){return function(n,r){t(n,r,e)}};let Xa=class extends da{constructor(e){super(),this.textRenderContribitions=e,this.numberType=Ii,this.builtinContributions=[Ga],this.init(e)}drawShape(e,t,n,r,i,a,o,s){var l,u,c;const d=Tr(e,null==a?void 0:a.theme).text,{text:h,underline:f=d.underline,lineThrough:p=d.lineThrough,keepDirIn3d:g=d.keepDirIn3d,direction:m=d.direction,fontSize:y=d.fontSize,verticalMode:v=d.verticalMode,x:b=d.x,y:x=d.y}=e.attribute;let{textAlign:S=d.textAlign,textBaseline:w=d.textBaseline}=e.attribute;if(!v&&"vertical"===m){const t=S;S=null!==(l=e.getBaselineMapAlign()[w])&&void 0!==l?l:"left",w=null!==(u=e.getAlignMapBaseline()[t])&&void 0!==u?u:"top"}const _=null!==(c=Vr(e.attribute.lineHeight,y))&&void 0!==c?c:y,T=this.valid(e,d,o,s);if(!T)return;const{fVisible:A,sVisible:k,doFill:C,doStroke:E}=T,P=!g,B=this.z||0;t.beginPath(),t.setShadowBlendStyle&&t.setShadowBlendStyle(e,e.attribute,d),this.beforeRenderStep(e,t,n,r,C,E,A,k,d,i,o,s),P&&this.transformUseContext2d(e,d,B,t);const R=(i,a,l,u)=>{let c=n+a;const h=r+l;if(u){t.highPerformanceSave(),c+=y;const e=ra.allocate(1,0,0,1,0,0);e.rotateByCenter(Math.PI/2,c,h),t.transformFromMatrix(e,!0),ra.free(e)}E&&(s?s(t,e.attribute,d):k&&(t.setStrokeStyle(e,e.attribute,b-n,x-r,d),t.strokeText(i,c,h,B))),C&&(o?o(t,e.attribute,d):A&&(t.setCommonStyle(e,e.attribute,b-n,x-r,d),t.fillText(i,c,h,B),this.drawUnderLine(f,p,e,c,h,B,d,t))),u&&(t.highPerformanceRestore(),t.setTransformForCurrent())};if(e.isMultiLine)if(t.setTextStyleWithoutAlignBaseline(e.attribute,d,B),"horizontal"===m){const{multilineLayout:i}=e;if(!i)return void t.highPerformanceRestore();const{xOffset:a,yOffset:l}=i.bbox;E&&(s?s(t,e.attribute,d):k&&(t.setStrokeStyle(e,e.attribute,b-n,x-r,d),i.lines.forEach((e=>{t.strokeText(e.str,(e.leftOffset||0)+a+n,(e.topOffset||0)+l+r,B)})))),C&&(o?o(t,e.attribute,d):A&&(t.setCommonStyle(e,e.attribute,b-n,x-r,d),i.lines.forEach((i=>{var o,s;t.fillText(i.str,(i.leftOffset||0)+a+n,(i.topOffset||0)+l+r,B),this.drawUnderLine(f,p,e,(i.leftOffset||0)+a+n,(i.topOffset||0)+l+r-(s=y,"top"===(o="bottom")?Math.ceil(.79*s):"middle"===o?Math.round(.3*s):"bottom"===o?Math.round(-.21*s):0)-.05*y,B,d,t,{width:i.width})}))))}else{e.tryUpdateAABBBounds();const n=e.cache,{verticalList:r}=n;t.textAlign="left",t.textBaseline="top";const i=_*r.length;let a=0;r.forEach((e=>{const t=e.reduce(((e,t)=>e+(t.width||0)),0);a=re(t,a)}));let o=0,s=0;"bottom"===w?s=-i:"middle"===w&&(s=-i/2),"center"===S?o-=a/2:"right"===S&&(o-=a),r.forEach(((e,t)=>{const n=e.reduce(((e,t)=>e+(t.width||0)),0),r=a-n;let l=o;"center"===S?l+=r/2:"right"===S&&(l+=r),e.forEach((e=>{const{text:n,width:r,direction:a}=e;R(n,i-(t+1)*_+s,l,a),l+=r}))}))}else if("horizontal"===m){t.setTextStyle(e.attribute,d,B);const n=e.clipedText;let r=0;_!==y&&("top"===w?r=(_-y)/2:"middle"===w||"bottom"===w&&(r=-(_-y)/2)),R(n,0,r,0)}else{e.tryUpdateAABBBounds();const n=e.cache;if(n){t.setTextStyleWithoutAlignBaseline(e.attribute,d,B);const{verticalList:r}=n;let i=0;const a=r[0].reduce(((e,t)=>e+(t.width||0)),0);let o=0;"bottom"===w?o=-_:"middle"===w&&(o=-_/2),"center"===S?i-=a/2:"right"===S&&(i-=a),t.textAlign="left",t.textBaseline="top",r[0].forEach((e=>{const{text:t,width:n,direction:r}=e;R(t,o,i,r),i+=n}))}}P&&this.restoreTransformUseContext2d(e,d,B,t),this.afterRenderStep(e,t,n,r,C,E,A,k,d,i,o,s)}draw(e,t,n,r){const i=Tr(e,null==r?void 0:r.theme).text,{keepDirIn3d:a=i.keepDirIn3d}=e.attribute,o=!a;this._draw(e,i,o,n,r)}drawUnderLine(e,t,n,r,i,a,o,s,l){if(t+e<=0)return;const{textAlign:u=o.textAlign,textBaseline:c=o.textBaseline,fontSize:d=o.fontSize,fill:h=o.fill,opacity:f=o.opacity,underlineOffset:p=o.underlineOffset,underlineDash:g=o.underlineDash,fillOpacity:y=o.fillOpacity}=n.attribute,v=!m(l),b=v?l.width:n.clipedWidth,x=v?0:Ki(u,b),S=Zi(v?"alphabetic":c,d,d),w={lineWidth:0,stroke:h,opacity:f,strokeOpacity:y};let _=v?-3:0;if(e){w.lineWidth=e,s.setStrokeStyle(n,w,r,i,o),g&&s.setLineDash(g),s.beginPath();const t=i+S+d+p+_;s.moveTo(r+x,t,a),s.lineTo(r+x+b,t,a),s.stroke()}if(v&&(_=-1),t){w.lineWidth=t,s.setStrokeStyle(n,w,r,i,o),s.beginPath();const e=i+S+d/2+_;s.moveTo(r+x,e,a),s.lineTo(r+x+b,e,a),s.stroke()}}};Xa=Ya([tt(),Qa(0,Je(yt)),Qa(0,nt(Qi)),qa("design:paramtypes",[Object])],Xa);var Ka=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},Za=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ja=function(e,t){return function(n,r){t(n,r,e)}};const eo=["","repeat-x","repeat-y","repeat"];let to=class extends da{constructor(e){super(),this.imageRenderContribitions=e,this.numberType=Ri,this.builtinContributions=[Pa,Ba],this.init(e)}drawShape(e,t,n,r,i,a,o,s){const l=Tr(e).image,{width:u=l.width,height:c=l.height,repeatX:d=l.repeatX,repeatY:h=l.repeatY,x:f=l.x,y:p=l.y,cornerRadius:g=l.cornerRadius,image:m}=e.attribute,y=this.valid(e,l,o);if(!y)return;const{fVisible:v,sVisible:b,doFill:x,doStroke:S}=y;if(t.setShadowBlendStyle&&t.setShadowBlendStyle(e,l),this.beforeRenderStep(e,t,n,r,x,!1,v,!1,l,i,o),x)if(o)o(t,e.attribute,l);else if(v){if(!m||!e.resources)return;const i=e.resources.get(m);if("success"!==i.state)return;let a=!1;0===g||w(g)&&g.every((e=>0===e))||(t.beginPath(),Sa(t,n,r,u,c,g),t.save(),t.clip(),a=!0),t.setCommonStyle(e,e.attribute,n,r,l);let o=0;if("repeat"===d&&(o|=1),"repeat"===h&&(o|=2),o){const e=t.createPattern(i.data,eo[o]);t.fillStyle=e,t.translate(n,r,!0),t.fillRect(0,0,u,c),t.translate(-n,-r,!0)}else t.drawImage(i.data,n,r,u,c);a&&t.restore()}S&&(s?s(t,e.attribute,l):b&&(t.setStrokeStyle(e,e.attribute,f-n,p-r,l),t.stroke())),this.afterRenderStep(e,t,n,r,x,!1,v,!1,l,i,o)}draw(e,t,n){const{image:r}=e.attribute;if(!r||!e.resources)return;const i=e.resources.get(r);if("loading"===i.state&&S(r))return void ei.improveImageLoading(r);if("success"!==i.state)return;const{context:a}=t.drawParams;if(!a)return;const o=Tr(e).image;this._draw(e,o,!1,n)}};to=Ka([tt(),Ja(0,Je(yt)),Ja(0,nt(Gi)),Za("design:paramtypes",[Object])],to);const no=Symbol.for("GraphicRender"),ro=Symbol.for("RectRender"),io=Symbol.for("SymbolRender"),ao=Symbol.for("TextRender"),oo=Symbol.for("RichTextRender"),so=Symbol.for("ImageRender"),lo=(e,t,n)=>{const{outerBorder:r,shadowBlur:i=t.shadowBlur}=e;if(r){const e=t.outerBorder,{distance:a=e.distance,lineWidth:o=e.lineWidth}=r;n.expand(a+(i+o)/2)}return n};class uo{constructor(e,t,n){this.fontFamily=e,this.textOptions=t,this.textMeasure=n}LayoutBBox(e,t,n){if("left"===t||"start"===t)e.xOffset=0;else if("center"===t)e.xOffset=e.width/-2;else{if("right"!==t&&"end"!==t)throw new Error("非法的textAlign");e.xOffset=-e.width}return e.yOffset="top"===n?0:"middle"===n?e.height/-2:"alphabetic"===n?-.79*e.height:-e.height,e}GetLayout(e,t,n,r,i,a,o,s,l){const u=[],c=[t,n],d=[0,0];for(;e.length>0;){const{str:n}=this.textMeasure.clipTextWithSuffix(e,this.textOptions,t,o,s,l);u.push({str:n,width:this.textMeasure.measureTextWidth(n,this.textOptions)}),e=e.substring(n.length)}"left"===r||"start"===r||("center"===r?d[0]=c[0]/-2:"right"!==r&&"end"!==r||(d[0]=-c[0])),"top"===i||("middle"===i?d[1]=c[1]/-2:"bottom"===i&&(d[1]=-c[1]));const h={xOffset:d[0],yOffset:d[1],width:c[0],height:c[1]};return this.layoutWithBBox(h,u,r,i,a)}GetLayoutByLines(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"end";e=e.map((e=>e.toString()));const l=[],u=[0,0];if("number"==typeof o&&o!==1/0){let t;for(let n=0,r=e.length;n<r;n++)t=Math.min(this.textMeasure.measureTextWidth(e[n],this.textOptions),o),l.push({str:this.textMeasure.clipTextWithSuffix(e[n],this.textOptions,t,i,a,s).str,width:t});u[0]=o}else{let t,n;o=0;for(let r=0,i=e.length;r<i;r++)n=e[r],t=this.textMeasure.measureTextWidth(n,this.textOptions),o=Math.max(o,t),l.push({str:n,width:t});u[0]=o}u[1]=l.length*r,u[0]=l.reduce(((e,t)=>Math.max(e,t.width)),0);const c={xOffset:0,yOffset:0,width:u[0],height:u[1]};return this.LayoutBBox(c,t,n),this.layoutWithBBox(c,l,t,n,r)}layoutWithBBox(e,t,n,r,i){const a=[0,0],o=t.length*i;"top"===r||("middle"===r?a[1]=(e.height-o)/2:"bottom"===r&&(a[1]=e.height-o));for(let o=0;o<t.length;o++)this.lineOffset(e,t[o],n,r,i,a);return{bbox:e,lines:t,fontFamily:this.fontFamily,fontSize:this.textOptions.fontSize,fontWeight:this.textOptions.fontWeight,lineHeight:i,textAlign:n,textBaseline:r}}lineOffset(e,t,n,r,i,a){return"left"===n||"start"===n?t.leftOffset=0:"center"===n?t.leftOffset=(e.width-t.width)/2:"right"!==n&&"end"!==n||(t.leftOffset=e.width-t.width),t.topOffset=(i-this.textOptions.fontSize)/2+.79*this.textOptions.fontSize+a[1],a[1]+=i,t}}const co=["text","maxLineWidth","textAlign","textBaseline","heightLimit","lineClamp","fontSize","fontFamily","fontWeight","ellipsis","lineHeight","direction","wordBreak","heightLimit","lineClamp",...ii];let ho=class e extends ci{get font(){const e=this.getGraphicTheme();return this._font||(this._font=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=1);const{fontStyle:r=t.fontStyle,fontVariant:i=t.fontVariant,fontWeight:a=t.fontWeight,fontSize:o=t.fontSize,fontFamily:s=t.fontFamily}=e;return(r?r+" ":"")+(i?i+" ":"")+(a?a+" ":"")+o*n+"px "+(s||"sans-serif")}(this.attribute,e)),this._font}get clipedText(){var e;const t=this.attribute,n=this.getGraphicTheme();if(!this.isSimplify())return;const{maxLineWidth:r=n.maxLineWidth}=t;return Number.isFinite(r)?(this.tryUpdateAABBBounds(),this.cache.clipedText):(null!==(e=t.text)&&void 0!==e?e:n.text).toString()}get clipedWidth(){if(this.isSimplify())return this.tryUpdateAABBBounds(),this.cache.clipedWidth}get cliped(){const e=this.getGraphicTheme(),t=this.attribute;if(this.isMultiLine)return;const{maxLineWidth:n=e.maxLineWidth}=t;return!!Number.isFinite(n)&&(this.tryUpdateAABBBounds(),"vertical"===t.direction&&this.cache.verticalList&&this.cache.verticalList[0]?this.cache.verticalList[0].map((e=>e.text)).join("")!==t.text.toString():null!=this.clipedText&&this.clipedText!==t.text.toString())}get multilineLayout(){if(this.isMultiLine)return this.tryUpdateAABBBounds(),this.cache.layoutData}isSimplify(){return!this.isMultiLine&&"vertical"!==this.attribute.direction}get isMultiLine(){return Array.isArray(this.attribute.text)||"normal"===this.attribute.whiteSpace}constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{text:"",fontSize:16}),this.type="text",this.numberType=Ii,this.cache={}}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{text:e}=this.attribute;return w(e)?!e.every((e=>null==e||""===e)):null!=e&&""!==e}getGraphicTheme(){return Tr(this).text}updateAABBBounds(e,t,n){if(!ir.graphicService.validCheck(e,t,n,this))return n;const{text:r=t.text}=this.attribute;Array.isArray(r)?this.updateMultilineAABBBounds(r):this.updateSingallineAABBBounds(r);const{tb1:i}=ir.graphicService.updateTempAABBBounds(n),{scaleX:a=t.scaleX,scaleY:o=t.scaleY,shadowBlur:s=t.shadowBlur,strokeBoundsBuffer:l=t.strokeBoundsBuffer}=e;if(s){Si(i,s/Math.abs(a+o),!0,l),n.union(i)}return ir.graphicService.combindShadowAABBBounds(n,this),null==e.forceBoundsHeight&&null==e.forceBoundsWidth||ir.graphicService.updateHTMLTextAABBBounds(e,t,n),de(n,n,this.transMatrix),n}updateWrapAABBBounds(e){var t,n,r,i;const a=this.getGraphicTheme(),{fontFamily:o=a.fontFamily,textAlign:s=a.textAlign,textBaseline:l=a.textBaseline,fontSize:u=a.fontSize,ellipsis:c=a.ellipsis,maxLineWidth:d,stroke:h=a.stroke,lineWidth:f=a.lineWidth,wordBreak:p=a.wordBreak,fontWeight:g=a.fontWeight,ignoreBuf:m=a.ignoreBuf,suffixPosition:y=a.suffixPosition,heightLimit:v=0,lineClamp:b}=this.attribute,x=null!==(t=Vr(this.attribute.lineHeight,this.attribute.fontSize||a.fontSize))&&void 0!==t?t:this.attribute.fontSize||a.fontSize,S=m?0:2;if(!this.shouldUpdateShape()&&(null===(n=this.cache)||void 0===n?void 0:n.layoutData)){const e=this.cache.layoutData.bbox;return this._AABBBounds.set(e.xOffset,e.yOffset,e.xOffset+e.width,e.yOffset+e.height),h&&this._AABBBounds.expand(f/2),this._AABBBounds}const _=ir.graphicUtil.textMeasure,T=new uo(o,{fontSize:u,fontWeight:g,fontFamily:o},_),A=w(e)?e.map((e=>e.toString())):[e.toString()],k=[],C=[0,0];let E=1/0;if(v>0&&(E=Math.max(Math.floor(v/x),1)),b&&(E=Math.min(E,b)),"number"==typeof d&&d!==1/0){if(d>0)for(let e=0;e<A.length;e++){const t=A[e];let n=!0;if(e===E-1){const n=T.textMeasure.clipTextWithSuffix(t,T.textOptions,d,c,!1,y,e!==A.length-1);k.push({str:n.str,width:n.width});break}const a=T.textMeasure.clipText(t,T.textOptions,d,"break-word"===p);if(""!==t&&""===a.str){if(c){const e=T.textMeasure.clipTextWithSuffix(t,T.textOptions,d,c,!1,y);a.str=null!==(r=e.str)&&void 0!==r?r:"",a.width=null!==(i=e.width)&&void 0!==i?i:0}else a.str="",a.width=0;n=!1}if(k.push({str:a.str,width:a.width}),a.str.length===t.length);else if(n){const n=t.substring(a.str.length);A.splice(e+1,0,n)}}let e=0;k.forEach((t=>{e=Math.max(e,t.width)})),C[0]=e}else{let e,t,n=0;for(let r=0,i=A.length;r<i;r++){if(r===E-1){const e=T.textMeasure.clipTextWithSuffix(A[r],T.textOptions,d,c,!1,y);k.push({str:e.str,width:e.width}),n=Math.max(n,e.width);break}t=A[r],e=T.textMeasure.measureTextWidth(t,T.textOptions,"break-word"===p),n=Math.max(n,e),k.push({str:t,width:e})}C[0]=n}C[1]=k.length*(x+S);const P={xOffset:0,yOffset:0,width:C[0],height:C[1]};T.LayoutBBox(P,s,l);const B=T.layoutWithBBox(P,k,s,l,x);return this.cache.layoutData=B,this.clearUpdateShapeTag(),this._AABBBounds.set(P.xOffset,P.yOffset,P.xOffset+P.width,P.yOffset+P.height),h&&this._AABBBounds.expand(f/2),this._AABBBounds}updateSingallineAABBBounds(e){const t=this.getGraphicTheme(),{direction:n=t.direction,underlineOffset:r=t.underlineOffset}=this.attribute,i="horizontal"===n?this.updateHorizontalSinglelineAABBBounds(e):this.updateVerticalSinglelineAABBBounds(e);return"horizontal"===n&&r&&this._AABBBounds.add(this._AABBBounds.x1,this._AABBBounds.y2+r),i}updateMultilineAABBBounds(e){const t=this.getGraphicTheme(),{direction:n=t.direction,underlineOffset:r=t.underlineOffset}=this.attribute,i="horizontal"===n?this.updateHorizontalMultilineAABBBounds(e):this.updateVerticalMultilineAABBBounds(e);return"horizontal"===n&&r&&this._AABBBounds.add(this._AABBBounds.x1,this._AABBBounds.y2+r),i}updateHorizontalSinglelineAABBBounds(e){var t,n;const r=this.getGraphicTheme(),{wrap:i=r.wrap}=this.attribute;if(i)return this.updateWrapAABBBounds([e]);const a=ir.graphicUtil.textMeasure;let o,s;const l=this.attribute,{maxLineWidth:u=r.maxLineWidth,ellipsis:c=r.ellipsis,textAlign:d=r.textAlign,textBaseline:h=r.textBaseline,fontFamily:f=r.fontFamily,fontSize:p=r.fontSize,fontWeight:g=r.fontWeight,stroke:m=r.stroke,lineWidth:y=r.lineWidth,ignoreBuf:v=r.ignoreBuf,whiteSpace:b=r.whiteSpace,suffixPosition:x=r.suffixPosition}=l;if("normal"===b)return this.updateWrapAABBBounds(e);const S=v?0:Math.max(2,.075*p),w=l.fontSize||r.fontSize,_=null!==(t=Vr(l.lineHeight,w))&&void 0!==t?t:w+S;if(!this.shouldUpdateShape()&&this.cache){o=null!==(n=this.cache.clipedWidth)&&void 0!==n?n:0;const e=Ki(d,o),t=Zi(h,_,p);return this._AABBBounds.set(e,t,e+o,t+_),m&&this._AABBBounds.expand(y/2),this._AABBBounds}if(Number.isFinite(u)){if(c){const t=!0===c?r.ellipsis:c,n=a.clipTextWithSuffix(e.toString(),{fontSize:p,fontWeight:g,fontFamily:f},u,t,!1,x);s=n.str,o=n.width}else{const t=a.clipText(e.toString(),{fontSize:p,fontWeight:g,fontFamily:f},u,!1);s=t.str,o=t.width}this.cache.clipedText=s,this.cache.clipedWidth=o}else o=a.measureTextWidth(e.toString(),{fontSize:p,fontWeight:g,fontFamily:f}),this.cache.clipedText=e.toString(),this.cache.clipedWidth=o;this.clearUpdateShapeTag();const T=Ki(d,o);let A=_;ir.global&&ir.global.isSafari()&&(A+=.2*p);const k=Zi(h,A,p,S);return this._AABBBounds.set(T,k,T+o,k+A),m&&this._AABBBounds.expand(y/2),this._AABBBounds}getBaselineMapAlign(){return e.baselineMapAlign}getAlignMapBaseline(){return e.alignMapBaseline}updateVerticalSinglelineAABBBounds(t){var n,r,i;const a=this.getGraphicTheme(),o=ir.graphicUtil.textMeasure;let s;const l=this.attribute,{ignoreBuf:u=a.ignoreBuf}=l,c=u?0:2,{maxLineWidth:d=a.maxLineWidth,ellipsis:h=a.ellipsis,fontSize:f=a.fontSize,fontWeight:p=a.fontWeight,fontFamily:g=a.fontFamily,stroke:m=a.stroke,lineWidth:y=a.lineWidth,verticalMode:v=a.verticalMode,suffixPosition:b=a.suffixPosition}=l,x=null!==(n=Vr(l.lineHeight,l.fontSize||a.fontSize))&&void 0!==n?n:(l.fontSize||a.fontSize)+c;let{textAlign:S=a.textAlign,textBaseline:w=a.textBaseline}=l;if(!v){const t=S;S=null!==(r=e.baselineMapAlign[w])&&void 0!==r?r:"left",w=null!==(i=e.alignMapBaseline[t])&&void 0!==i?i:"top"}if(!this.shouldUpdateShape()&&this.cache){s=this.cache.clipedWidth;const e=Ki(S,s),t=Zi(w,x,f);return this._AABBBounds.set(t,e,t+x,e+s),m&&this._AABBBounds.expand(y/2),this._AABBBounds}let _=[Ai(t.toString())];if(Number.isFinite(d)){if(h){const e=!0===h?a.ellipsis:h,t=o.clipTextWithSuffixVertical(_[0],{fontSize:f,fontWeight:p,fontFamily:g},d,e,!1,b);_=[t.verticalList],s=t.width}else{const e=o.clipTextVertical(_[0],{fontSize:f,fontWeight:p,fontFamily:g},d,!1);_=[e.verticalList],s=e.width}this.cache.verticalList=_,this.cache.clipedWidth=s}else s=0,_[0].forEach((e=>{const t=e.direction===Ti.HORIZONTAL?f:o.measureTextWidth(e.text,{fontSize:f,fontWeight:p,fontFamily:g});s+=t,e.width=t})),this.cache.verticalList=_,this.cache.clipedWidth=s;this.clearUpdateShapeTag();const T=Ki(S,s),A=Zi(w,x,f);return this._AABBBounds.set(A,T,A+x,T+s),m&&this._AABBBounds.expand(y/2),this._AABBBounds}updateHorizontalMultilineAABBBounds(e){var t,n;const r=this.getGraphicTheme(),{wrap:i=r.wrap}=this.attribute;if(i)return this.updateWrapAABBBounds(e);const a=this.attribute,{fontFamily:o=r.fontFamily,textAlign:s=r.textAlign,textBaseline:l=r.textBaseline,fontSize:u=r.fontSize,fontWeight:c=r.fontWeight,ellipsis:d=r.ellipsis,maxLineWidth:h,stroke:f=r.stroke,lineWidth:p=r.lineWidth,whiteSpace:g=r.whiteSpace,suffixPosition:m=r.suffixPosition}=a,y=null!==(t=Vr(a.lineHeight,a.fontSize||r.fontSize))&&void 0!==t?t:a.fontSize||r.fontSize;if("normal"===g)return this.updateWrapAABBBounds(e);if(!this.shouldUpdateShape()&&(null===(n=this.cache)||void 0===n?void 0:n.layoutData)){const e=this.cache.layoutData.bbox;return this._AABBBounds.set(e.xOffset,e.yOffset,e.xOffset+e.width,e.yOffset+e.height),f&&this._AABBBounds.expand(p/2),this._AABBBounds}const v=ir.graphicUtil.textMeasure,b=new uo(o,{fontSize:u,fontWeight:c,fontFamily:o},v).GetLayoutByLines(e,s,l,y,!0===d?r.ellipsis:d||void 0,!1,h,m),{bbox:x}=b;return this.cache.layoutData=b,this.clearUpdateShapeTag(),this._AABBBounds.set(x.xOffset,x.yOffset,x.xOffset+x.width,x.yOffset+x.height),f&&this._AABBBounds.expand(p/2),this._AABBBounds}updateVerticalMultilineAABBBounds(t){var n,r,i;const a=this.getGraphicTheme(),o=ir.graphicUtil.textMeasure;let s;const l=this.attribute,{ignoreBuf:u=a.ignoreBuf}=l,c=u?0:2,{maxLineWidth:d=a.maxLineWidth,ellipsis:h=a.ellipsis,fontFamily:f=a.fontFamily,fontSize:p=a.fontSize,fontWeight:g=a.fontWeight,stroke:m=a.stroke,lineWidth:y=a.lineWidth,verticalMode:v=a.verticalMode,suffixPosition:b=a.suffixPosition}=l,x=null!==(n=Vr(l.lineHeight,l.fontSize||a.fontSize))&&void 0!==n?n:(l.fontSize||a.fontSize)+c;let{textAlign:S=a.textAlign,textBaseline:w=a.textBaseline}=l;if(!v){const t=S;S=null!==(r=e.baselineMapAlign[w])&&void 0!==r?r:"left",w=null!==(i=e.alignMapBaseline[t])&&void 0!==i?i:"top"}if(s=0,!this.shouldUpdateShape()&&this.cache){this.cache.verticalList.forEach((e=>{const t=e.reduce(((e,t)=>e+t.width),0);s=re(t,s)}));const e=Ki(S,s),t=this.cache.verticalList.length*x,n=Zi(w,t,p);return this._AABBBounds.set(n,e,n+t,e+s),m&&this._AABBBounds.expand(y/2),this._AABBBounds}const _=t.map((e=>Ai(e.toString())));_.forEach(((e,t)=>{if(Number.isFinite(d))if(h){const n=!0===h?a.ellipsis:h,r=o.clipTextWithSuffixVertical(e,{fontSize:p,fontWeight:g,fontFamily:f},d,n,!1,b);_[t]=r.verticalList,s=r.width}else{const n=o.clipTextVertical(e,{fontSize:p,fontWeight:g,fontFamily:f},d,!1);_[t]=n.verticalList,s=n.width}else s=0,e.forEach((e=>{const t=e.direction===Ti.HORIZONTAL?p:o.measureTextWidth(e.text,{fontSize:p,fontWeight:g,fontFamily:f});s+=t,e.width=t}))})),this.cache.verticalList=_,this.clearUpdateShapeTag(),this.cache.verticalList.forEach((e=>{const t=e.reduce(((e,t)=>e+t.width),0);s=re(t,s)}));const T=Ki(S,s),A=this.cache.verticalList.length*x,k=Zi(w,A,p);return this._AABBBounds.set(k,T,k+A,T+s),m&&this._AABBBounds.expand(y/2),this._AABBBounds}needUpdateTags(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:co;return super.needUpdateTags(e,t)}needUpdateTag(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:co;return super.needUpdateTag(e,t)}clone(){return new e(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return e.NOWORK_ANIMATE_ATTR}};function fo(e){return new ho(e)}ho.NOWORK_ANIMATE_ATTR=Object.assign({ellipsis:1,wordBreak:1,direction:1,textAlign:1,textBaseline:1,fontFamily:1,fontWeight:1},ui),ho.baselineMapAlign={top:"left",bottom:"right",middle:"center"},ho.alignMapBaseline={left:"top",right:"bottom",center:"middle"};const po=["heightLimit","lineClamp"];class go extends ho{constructor(e){super(Object.assign(Object.assign({},e),{wrap:!0}))}_isValid(){const{text:e}=this.attribute;return w(e)?!e.every((e=>null==e||""===e)):null!=e&&""!==e}updateMultilineAABBBounds(e){var t,n,r,i;const a=this.getGraphicTheme(),{fontFamily:o=a.fontFamily,textAlign:s=a.textAlign,textBaseline:l=a.textBaseline,fontSize:u=a.fontSize,ellipsis:c=a.ellipsis,maxLineWidth:d,stroke:h=a.stroke,lineWidth:f=a.lineWidth,wordBreak:p=a.wordBreak,fontWeight:g=a.fontWeight,ignoreBuf:m=a.ignoreBuf,heightLimit:y=0,suffixPosition:v=a.suffixPosition,lineClamp:b}=this.attribute,x=null!==(t=Vr(this.attribute.lineHeight,this.attribute.fontSize||a.fontSize))&&void 0!==t?t:this.attribute.fontSize||a.fontSize,S=m?0:2;if(!this.shouldUpdateShape()&&(null===(n=this.cache)||void 0===n?void 0:n.layoutData)){const e=this.cache.layoutData.bbox;return this._AABBBounds.set(e.xOffset,e.yOffset,e.xOffset+e.width,e.yOffset+e.height),h&&this._AABBBounds.expand(f/2),this._AABBBounds}const w=ir.graphicUtil.textMeasure,_=new uo(o,{fontSize:u,fontWeight:g,fontFamily:o},w),T=e.map((e=>e.toString())),A=[],k=[0,0];let C=1/0;if(y>0&&(C=Math.max(Math.floor(y/x),1)),b&&(C=Math.min(C,b)),"number"==typeof d&&d!==1/0){if(d>0)for(let e=0;e<T.length;e++){const t=T[e];let n=!0;if(e===C-1){const e=_.textMeasure.clipTextWithSuffix(t,_.textOptions,d,c,!1,v);A.push({str:e.str,width:e.width});break}const a=_.textMeasure.clipText(t,_.textOptions,d,"break-word"===p);if(""!==t&&""===a.str){if(c){const e=_.textMeasure.clipTextWithSuffix(t,_.textOptions,d,c,!1,v);a.str=null!==(r=e.str)&&void 0!==r?r:"",a.width=null!==(i=e.width)&&void 0!==i?i:0}else a.str="",a.width=0;n=!1}if(A.push({str:a.str,width:a.width}),a.str.length===t.length);else if(n){const n=t.substring(a.str.length);T.splice(e+1,0,n)}}let e=0;A.forEach((t=>{e=Math.max(e,t.width)})),k[0]=e}else{let e,t,n=0;for(let r=0,i=T.length;r<i;r++){if(r===C-1){const e=_.textMeasure.clipTextWithSuffix(T[r],_.textOptions,d,c,!1,v);A.push({str:e.str,width:e.width}),n=Math.max(n,e.width);break}t=T[r],e=_.textMeasure.measureTextWidth(t,_.textOptions,"break-word"===p),n=Math.max(n,e),A.push({str:t,width:e})}k[0]=n}k[1]=A.length*(x+S);const E={xOffset:0,yOffset:0,width:k[0],height:k[1]};_.LayoutBBox(E,s,l);const P=_.layoutWithBBox(E,A,s,l,x);return this.cache.layoutData=P,this.clearUpdateShapeTag(),this._AABBBounds.set(E.xOffset,E.yOffset,E.xOffset+E.width,E.yOffset+E.height),h&&this._AABBBounds.expand(f/2),this._AABBBounds}needUpdateTags(e){for(let t=0;t<po.length;t++){const n=po[t];if(-1!==e.indexOf(n))return!0}return super.needUpdateTags(e)}needUpdateTag(e){for(let t=0;t<po.length;t++)if(e===po[t])return!0;return super.needUpdateTag(e)}getNoWorkAnimateAttr(){return go.NOWORK_ANIMATE_ATTR}}function mo(e){return new go(e)}class yo{bounds(e,t){if(T(e)){const n=e/2;t.x1=-n,t.x2=n,t.y1=-n,t.y2=n}else t.x1=-e[0]/2,t.x2=e[0]/2,t.y1=-e[1]/2,t.y2=e[1]/2}}function vo(e,t,n,r,i){return i?e.arc(n,r,t,0,Z,!1,i):e.arc(n,r,t,0,Z),!1}var bo=new class extends yo{constructor(){super(...arguments),this.type="circle",this.pathStr="M0.5,0A0.5,0.5,0,1,1,-0.5,0A0.5,0.5,0,1,1,0.5,0"}draw(e,t,n,r,i){return vo(e,t/2,n,r,i)}drawOffset(e,t,n,r,i,a){return vo(e,t/2+i,n,r,a)}drawToSvgPath(e,t,n,r){const i=e/2;return`M ${t-i}, ${n} a ${i},${i} 0 1,0 ${2*i},0 a ${i},${i} 0 1,0 -${2*i},0`}};var xo=new class extends yo{constructor(){super(...arguments),this.type="cross",this.pathStr="M-0.5,-0.2L-0.5,0.2L-0.2,0.2L-0.2,0.5L0.2,0.5L0.2,0.2L0.5,0.2L0.5,-0.2L0.2,-0.2L0.2,-0.5L-0.2,-0.5L-0.2,-0.2Z"}draw(e,t,n,r,i){return function(e,t,n,r,i){return e.moveTo(-3*t+n,-t+r,i),e.lineTo(-t+n,-t+r,i),e.lineTo(-t+n,-3*t+r,i),e.lineTo(t+n,-3*t+r,i),e.lineTo(t+n,-t+r,i),e.lineTo(3*t+n,-t+r,i),e.lineTo(3*t+n,t+r,i),e.lineTo(t+n,t+r,i),e.lineTo(t+n,3*t+r,i),e.lineTo(-t+n,3*t+r,i),e.lineTo(-t+n,t+r,i),e.lineTo(-3*t+n,t+r,i),e.closePath(),!0}(e,t/6,n,r,i)}drawOffset(e,t,n,r,i,a){return function(e,t,n,r,i,a){return e.moveTo(-3*t+n-i,-t+r-i,a),e.lineTo(-t+n-i,-t+r-i,a),e.lineTo(-t+n-i,-3*t+r-i,a),e.lineTo(t+n+i,-3*t+r-i,a),e.lineTo(t+n+i,-t+r-i,a),e.lineTo(3*t+n+i,-t+r-i,a),e.lineTo(3*t+n+i,t+r+i,a),e.lineTo(t+n+i,t+r+i,a),e.lineTo(t+n+i,3*t+r+i,a),e.lineTo(-t+n-i,3*t+r+i,a),e.lineTo(-t+n-i,t+r+i,a),e.lineTo(-3*t+n-i,t+r+i,a),e.closePath(),!0}(e,t/6,n,r,i,a)}};function So(e,t,n,r,i){return e.moveTo(n,r-t,i),e.lineTo(t+n,r,i),e.lineTo(n,r+t,i),e.lineTo(n-t,r,i),e.closePath(),!0}var wo=new class extends yo{constructor(){super(...arguments),this.type="diamond",this.pathStr="M-0.5,0L0,-0.5L0.5,0L0,0.5Z"}draw(e,t,n,r,i){return So(e,t/2,n,r,i)}drawFitDir(e,t,n,r,i){return So(e,t/2,n,r,i)}drawOffset(e,t,n,r,i,a){return So(e,t/2+i,n,r,a)}};function _o(e,t,n,r){const i=2*t;return e.rect(n-t,r-t,i,i),!1}var To=new class extends yo{constructor(){super(...arguments),this.type="square",this.pathStr="M-0.5,-0.5h1v1h-1Z"}draw(e,t,n,r){return _o(e,t/2,n,r)}drawOffset(e,t,n,r,i){return _o(e,t/2+i,n,r)}};function Ao(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return e.moveTo(n+t+2*i,t+r+i),e.lineTo(n-t-2*i,t+r+i),e.lineTo(n,r-t-2*i),e.closePath(),!0}class ko extends yo{constructor(){super(...arguments),this.type="triangleUp",this.pathStr="M0.5,0.5 L-0.5,0.5 L0,-0.5 Z"}draw(e,t,n,r){return Ao(e,t/2,n,r)}drawOffset(e,t,n,r,i){return Ao(e,t/2,n,r,i)}}var Co=new ko;var Eo=new class extends ko{constructor(){super(...arguments),this.type="triangle"}};const Po=Math.sin(Math.PI/10)/Math.sin(7*Math.PI/10),Bo=Math.sin(Z/10)*Po,Ro=-Math.cos(Z/10)*Po;function Mo(e,t,n,r){const i=Bo*t,a=Ro*t;e.moveTo(n,-t+r),e.lineTo(i+n,a+r);for(let o=1;o<5;++o){const s=Z*o/5,l=Math.cos(s),u=Math.sin(s);e.lineTo(u*t+n,-l*t+r),e.lineTo(l*i-u*a+n,u*i+l*a+r)}return e.closePath(),!0}var Lo=new class extends yo{constructor(){super(...arguments),this.type="star",this.pathStr="M0 -1L0.22451398828979266 -0.3090169943749474L0.9510565162951535 -0.30901699437494745L0.3632712640026804 0.1180339887498948L0.5877852522924732 0.8090169943749473L8.326672684688674e-17 0.3819660112501051L-0.587785252292473 0.8090169943749476L-0.3632712640026804 0.11803398874989487L-0.9510565162951536 -0.30901699437494723L-0.22451398828979274 -0.30901699437494734Z"}draw(e,t,n,r){return Mo(e,t/2,n,r)}drawOffset(e,t,n,r,i){return Mo(e,t/2+i,n,r)}};const Oo=oe(3);function Io(e,t,n,r){const i=t,a=i/Oo,o=a/5,s=t;return e.moveTo(0+n,-i+r),e.lineTo(a/2+n,r),e.lineTo(o/2+n,r),e.lineTo(o/2+n,s+r),e.lineTo(-o/2+n,s+r),e.lineTo(-o/2+n,r),e.lineTo(-a/2+n,r),e.closePath(),!0}var No=new class extends yo{constructor(){super(...arguments),this.type="arrow",this.pathStr="M-0.07142857142857142,0.5L0.07142857142857142,0.5L0.07142857142857142,-0.0625L0.2,-0.0625L0,-0.5L-0.2,-0.0625L-0.07142857142857142,-0.0625Z"}draw(e,t,n,r){return Io(e,t/2,n,r)}drawOffset(e,t,n,r,i){return Io(e,t/2+i,n,r)}};function Do(e,t,n,r){const i=2*t;return e.moveTo(n,-t+r),e.lineTo(i/3/2+n,t+r),e.lineTo(-i/3/2+n,t+r),e.closePath(),!0}var Uo=new class extends yo{constructor(){super(...arguments),this.type="wedge",this.pathStr="M0,-0.5773502691896257L-0.125,0.28867513459481287L0.125,0.28867513459481287Z"}draw(e,t,n,r){return Do(e,t/2,n,r)}drawOffset(e,t,n,r,i){return Do(e,t/2+i,n,r)}};function zo(e,t,n,r){return e.moveTo(-t+n,r),e.lineTo(n,t+r),!1}var Fo=new class extends yo{constructor(){super(...arguments),this.type="stroke",this.pathStr=""}draw(e,t,n,r){return zo(e,t/2,n,r)}drawOffset(e,t,n,r,i){return zo(e,t/2+i,n,r)}};const jo=-.5,Wo=oe(3)/2,Ho=1/oe(12);function $o(e,t,n,r){const i=t/2,a=t*Ho,o=i,s=t*Ho+t,l=-o,u=s;return e.moveTo(i+n,a+r),e.lineTo(o+n,s+r),e.lineTo(l+n,u+r),e.lineTo(jo*i-Wo*a+n,Wo*i+jo*a+r),e.lineTo(jo*o-Wo*s+n,Wo*o+jo*s+r),e.lineTo(jo*l-Wo*u+n,Wo*l+jo*u+r),e.lineTo(jo*i+Wo*a+n,jo*a-Wo*i+r),e.lineTo(jo*o+Wo*s+n,jo*s-Wo*o+r),e.lineTo(jo*l+Wo*u+n,jo*u-Wo*l+r),e.closePath(),!1}var Vo=new class extends yo{constructor(){super(...arguments),this.type="wye",this.pathStr="M0.25 0.14433756729740646L0.25 0.6443375672974064L-0.25 0.6443375672974064L-0.25 0.14433756729740643L-0.6830127018922193 -0.10566243270259357L-0.4330127018922193 -0.5386751345948129L0 -0.28867513459481287L0.4330127018922193 -0.5386751345948129L0.6830127018922193 -0.10566243270259357Z"}draw(e,t,n,r){return $o(e,t/2,n,r)}drawOffset(e,t,n,r,i){return $o(e,t/2+i,n,r)}};function Go(e,t,n,r,i){return e.moveTo(-t+n-2*i,r),e.lineTo(t+n+i,t+r+2*i),e.lineTo(t+n+i,r-t-2*i),e.closePath(),!0}var Yo=new class extends yo{constructor(){super(...arguments),this.type="triangleLeft",this.pathStr="M-0.5,0 L0.5,0.5 L0.5,-0.5 Z"}draw(e,t,n,r){return Go(e,t/2,n,r,0)}drawOffset(e,t,n,r,i){return Go(e,t/2,n,r,i)}};function qo(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return e.moveTo(n-t-i,t+r+2*i),e.lineTo(t+n+2*i,r),e.lineTo(n-t-i,r-t-2*i),e.closePath(),!0}var Qo=new class extends yo{constructor(){super(...arguments),this.type="triangleRight",this.pathStr="M-0.5,0.5 L0.5,0 L-0.5,-0.5 Z"}draw(e,t,n,r){return qo(e,t/2,n,r)}drawOffset(e,t,n,r,i){return qo(e,t/2,n,r,i)}};function Xo(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return e.moveTo(n-t-2*i,r-t-i),e.lineTo(n+t+2*i,r-t-i),e.lineTo(n,r+t+2*i),e.closePath(),!0}var Ko=new class extends yo{constructor(){super(...arguments),this.type="triangleDown",this.pathStr="M-0.5,-0.5 L0.5,-0.5 L0,0.5 Z"}draw(e,t,n,r){return Xo(e,t/2,n,r)}drawOffset(e,t,n,r,i){return Xo(e,t/2,n,r,i)}};const Zo=oe(3);function Jo(e,t,n,r){const i=t*Zo;return e.moveTo(n,r+-i/3*2),e.lineTo(t+n,r+i),e.lineTo(n-t,r+i),e.closePath(),!0}var es=new class extends yo{constructor(){super(...arguments),this.type="thinTriangle",this.pathStr="M0,-0.5773502691896257L-0.5,0.28867513459481287L0.5,0.28867513459481287Z"}draw(e,t,n,r){return Jo(e,t/2/Zo,n,r)}drawOffset(e,t,n,r,i){return Jo(e,t/2/Zo+i,n,r)}};function ts(e,t,n,r){const i=2*t;return e.moveTo(t+n,r-i),e.lineTo(n-t,r),e.lineTo(t+n,i+r),!0}var ns=new class extends yo{constructor(){super(...arguments),this.type="arrow2Left",this.pathStr="M 0.25 -0.5 L -0.25 0 l 0.25 0.5"}draw(e,t,n,r){return ts(e,t/4,n,r)}drawOffset(e,t,n,r,i){return ts(e,t/4+i,n,r)}};function rs(e,t,n,r){const i=2*t;return e.moveTo(n-t,r-i),e.lineTo(n+t,r),e.lineTo(n-t,i+r),!0}var is=new class extends yo{constructor(){super(...arguments),this.type="arrow2Right",this.pathStr="M -0.25 -0.5 l 0.25 0 l -0.25 0.5"}draw(e,t,n,r){return rs(e,t/4,n,r)}drawOffset(e,t,n,r,i){return rs(e,t/4+i,n,r)}};function as(e,t,n,r){const i=2*t;return e.moveTo(n-i,r+t),e.lineTo(n,r-t),e.lineTo(n+i,r+t),!0}var os=new class extends yo{constructor(){super(...arguments),this.type="arrow2Up",this.pathStr="M -0.5 0.25 L 0 -0.25 l 0.5 0.25"}draw(e,t,n,r){return as(e,t/4,n,r)}drawOffset(e,t,n,r,i){return as(e,t/4+i,n,r)}};function ss(e,t,n,r){const i=2*t;return e.moveTo(n-i,r-t),e.lineTo(n,r+t),e.lineTo(n+i,r-t),!0}var ls=new class extends yo{constructor(){super(...arguments),this.type="arrow2Down",this.pathStr="M -0.5 -0.25 L 0 0.25 l 0.5 -0.25"}draw(e,t,n,r){return ss(e,t/4,n,r)}drawOffset(e,t,n,r,i){return ss(e,t/4+i,n,r)}};function us(e,t,n,r,i){return e.moveTo(n,r-t),e.lineTo(n,r+t),!0}var cs=new class extends yo{constructor(){super(...arguments),this.type="lineV",this.pathStr="M0,-0.5L0,0.5"}draw(e,t,n,r,i){return us(e,t/2,n,r)}drawOffset(e,t,n,r,i,a){return us(e,t/2+i,n,r)}drawToSvgPath(e,t,n,r){const i=e/2;return`M ${t}, ${n-i} L ${t},${n+i}`}};function ds(e,t,n,r,i){return e.moveTo(n-t,r),e.lineTo(n+t,r),!0}var hs=new class extends yo{constructor(){super(...arguments),this.type="lineH",this.pathStr="M-0.5,0L0.5,0"}draw(e,t,n,r,i){return ds(e,t/2,n,r)}drawOffset(e,t,n,r,i,a){return ds(e,t/2+i,n,r)}drawToSvgPath(e,t,n,r){const i=e/2;return`M ${t-i}, ${n} L ${t+i},${n}`}};function fs(e,t,n,r,i){return e.moveTo(n-t,r-t),e.lineTo(n+t,r+t),e.moveTo(n+t,r-t),e.lineTo(n-t,r+t),!0}var ps=new class extends yo{constructor(){super(...arguments),this.type="close",this.pathStr="M-0.5,-0.5L0.5,0.5,M0.5,-0.5L-0.5,0.5"}draw(e,t,n,r,i){return fs(e,t/2,n,r)}drawOffset(e,t,n,r,i,a){return fs(e,t/2+i,n,r)}drawToSvgPath(e,t,n,r){const i=e/2;return`M ${t-i}, ${n-i} L ${t+i},${n+i} M ${t+i}, ${n-i} L ${t-i},${n+i}`}};function gs(e,t,n,r){return e.rect(n-t[0]/2,r-t[1]/2,t[0],t[1]),!1}function ms(e,t,n,r){const i=t,a=t/2;return e.rect(n-i/2,r-a/2,i,a),!1}var ys=new class extends yo{constructor(){super(...arguments),this.type="rect",this.pathStr="M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z"}draw(e,t,n,r){return T(t)?ms(e,t,n,r):gs(e,t,n,r)}drawOffset(e,t,n,r,i){return T(t)?ms(e,t+2*i,n,r):gs(e,[t[0]+2*i,t[1]+2*i],n,r)}};const vs=new fe;class bs{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.pathStr="",this.type=e,w(t)?this.svgCache=t:this.path=t,this.isSvg=n}drawOffset(e,t,n,r,i,a,o){return this.isSvg?!!this.svgCache&&(this.svgCache.forEach((i=>{e.beginPath(),nn(i.path.commandList,e,n,r,t,t),o&&o(i.path,i.attribute)})),!1):(nn(this.path.commandList,e,n,r,t+i,t+i),!1)}draw(e,t,n,r,i,a){return this.drawOffset(e,t,n,r,0,i,a)}bounds(e,t){if(this.isSvg){if(!this.svgCache)return;return t.clear(),void this.svgCache.forEach((n=>{let{path:r}=n;vs.x1=r.bounds.x1*e,vs.y1=r.bounds.y1*e,vs.x2=r.bounds.x2*e,vs.y2=r.bounds.y2*e,t.union(vs)}))}this.path.bounds&&(t.x1=this.path.bounds.x1*e,t.y1=this.path.bounds.y1*e,t.x2=this.path.bounds.x2*e,t.y2=this.path.bounds.y2*e)}}const xs={};[bo,xo,wo,To,es,Eo,Lo,No,Uo,Fo,Vo,Yo,Qo,Co,Ko,ns,is,os,ls,ys,cs,hs,ps].forEach((e=>{xs[e.type]=e}));const Ss={arrowLeft:"M 0.25 -0.5 L -0.25 0 l 0.5 0.5",arrowRight:"M -0.25 -0.5 l 0.5 0.5 l -0.5 0.5",rectRound:"M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z",roundLine:"M 1.2392 -0.258 L -1.3432 -0.258 C -1.4784 -0.258 -1.588 -0.1436 -1.588 -0.002 c 0 0.1416 0.1096 0.256 0.2448 0.256 l 2.5824 0 c 0.1352 0 0.2448 -0.1144 0.2448 -0.256 C 1.484 -0.1436 1.3744 -0.258 1.2392 -0.258 z"},ws=new fe,_s=["symbolType","size",...ii];let Ts=class e extends ci{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{symbolType:"circle"}),this.type="symbol",this.numberType=Oi}getParsedPath(){return this.shouldUpdateShape()&&(this.doUpdateParsedPath(),this.clearUpdateShapeTag()),this._parsedPath}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{size:e}=this.attribute;return w(e)?2===e.length&&e.every(this._validNumber):this._validNumber(e)}doUpdateParsedPath(){const t=this.getGraphicTheme();let{symbolType:n=t.symbolType}=this.attribute,r=xs[n];if(r)return this._parsedPath=r,r;if(r=e.userSymbolMap[n],r)return this._parsedPath=r,r;if(n=Ss[n]||n,!0===((i=n).startsWith("<svg")||i.startsWith("<?xml"))){const t=new xi,{svg:r}=t.parse(n);if(!r)return null;const i=w(r.path)?r.path:[r.path];ws.clear();const a=[];i.forEach((e=>{const t=(new On).fromString(e.d),n={};Ui.forEach((t=>{e[t]&&(n[Di[t]]=e[t])})),a.push({path:t,attribute:n}),ws.union(t.bounds)}));const o=ws.width(),s=ws.height(),l=1/re(o,s);return a.forEach((e=>e.path.transform(0,0,l,l))),this._parsedPath=new bs(n,a,!0),e.userSymbolMap[n]=this._parsedPath,this._parsedPath}var i;const a=(new On).fromString(n),o=a.bounds.width(),s=a.bounds.height(),l=1/re(o,s);return a.transform(0,0,l,l),this._parsedPath=new bs(n,a),e.userSymbolMap[n]=this._parsedPath,this._parsedPath}getGraphicTheme(){return Tr(this).symbol}updateAABBBounds(e,t,n,r){if(!ir.graphicService.validCheck(e,t,n,this))return n;this.updatePathProxyAABBBounds(n)||(r?this.updateSymbolAABBBoundsImprecise(e,t,n):this.updateSymbolAABBBoundsAccurate(e,t,n));const{tb1:i,tb2:a}=ir.graphicService.updateTempAABBBounds(n);((e,t,n)=>{const{outerBorder:r,shadowBlur:i=t.shadowBlur,strokeBoundsBuffer:a=t.strokeBoundsBuffer}=e;if(r){const e=t.outerBorder,{distance:o=e.distance,lineWidth:s=e.lineWidth}=r;Si(n,o+(i+s)/2,!0,a)}})(e,t,i),n.union(i),i.setValue(a.x1,a.y1,a.x2,a.y2);const{lineJoin:o=t.lineJoin}=e;return ir.graphicService.transformAABBBounds(e,n,t,"miter"===o,this),n}updateSymbolAABBBoundsImprecise(e,t,n){const{size:r=t.size}=e;if(w(r))n.set(-r[0]/2,-r[1]/2,r[0]/2,r[1]/2);else{const e=r/2;n.set(-e,-e,e,e)}return n}updateSymbolAABBBoundsAccurate(e,t,n){const{size:r=t.size}=e;return this.getParsedPath().bounds(r,n),n}needUpdateTags(e){return super.needUpdateTags(e,_s)}needUpdateTag(e){return super.needUpdateTag(e,_s)}toCustomPath(){const e=this.getParsedPath(),t=this.attribute.size,n=w(t)?t:[t,t];return e.path?(new On).fromCustomPath2D(e.path,0,0,n[0],n[1]):(new On).fromString(e.pathStr,0,0,n[0],n[1])}clone(){return new e(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return e.NOWORK_ANIMATE_ATTR}};function As(e){return new Ts(e)}Ts.userSymbolMap={},Ts.NOWORK_ANIMATE_ATTR=Object.assign({symbolType:1},ui);const ks=["width","x1","y1","height","cornerRadius",...ii];let Cs=class e extends ci{constructor(e){super(e),this.type="rect",this.numberType=Mi}isValid(){return super.isValid()&&this._isValid()}_isValid(){return!0}getGraphicTheme(){return Tr(this).rect}updateAABBBounds(e,t,n){if(!ir.graphicService.validCheck(e,t,n,this))return n;if(!this.updatePathProxyAABBBounds(n)){let{width:t,height:r}=e;const{x1:i,y1:a,x:o,y:s}=e;t=null!=t?t:i-o,r=null!=r?r:a-s,(isFinite(t)||isFinite(r)||isFinite(o)||isFinite(s))&&n.set(0,0,t||0,r||0)}const{tb1:r,tb2:i}=ir.graphicService.updateTempAABBBounds(n);return lo(e,t,r),n.union(r),r.setValue(i.x1,i.y1,i.x2,i.y2),ir.graphicService.transformAABBBounds(e,n,t,!1,this),n}needUpdateTags(e){return super.needUpdateTags(e,ks)}needUpdateTag(e){return super.needUpdateTag(e,ks)}toCustomPath(){const e=this.attribute,{x:t,y:n,width:r,height:i}=(e=>{if(!e)return{x:0,y:0,width:0,height:0};let t=m(e.width)?e.x1-e.x:e.width,n=m(e.height)?e.y1-e.y:e.height,r=0,i=0;return t<0?(r=t,t=-t):Number.isNaN(t)&&(t=0),n<0?(i=n,n=-n):Number.isNaN(n)&&(n=0),{x:r,y:i,width:t,height:n}})(e),a=new On;return a.moveTo(t,n),a.rect(t,n,r,i),a}clone(){return new e(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return e.NOWORK_ANIMATE_ATTR}};function Es(e){return new Cs(e)}Cs.NOWORK_ANIMATE_ATTR=ui;class Ps{constructor(e,t,n,r,i,a,o,s,l,u,c,d,h,f){this.left=e,this.top=t,this.width=n,this.height=r,this.actualHeight=0,this.bottom=t+r,this.right=e+n,this.ellipsis=i,this.wordBreak=a,this.verticalDirection=o,this.lines=[],this.globalAlign=s,this.globalBaseline=l,this.layoutDirection=u,this.directionKey=ar[this.layoutDirection],this.isWidthMax=c,this.isHeightMax=d,this.singleLine=h,f?(f.clear(),this.icons=f):this.icons=new Map}draw(e,t){const{width:n,height:r}=this.getActualSize(),i=this.isWidthMax?Math.min(this.width,n):this.width||n||0;let a=this.isHeightMax?Math.min(this.height,r):this.height||r||0;a=Math.min(a,r);let o=0;switch(this.globalBaseline){case"top":o=0;break;case"middle":o=-a/2;break;case"bottom":o=-a}let s=0;"right"===this.globalAlign||"end"===this.globalAlign?s=-i:"center"===this.globalAlign&&(s=-i/2);let l=this[this.directionKey.height];this.singleLine&&(l=this.lines[0].height+1);let u=!1;if("middle"===this.verticalDirection)if(this.actualHeight>=l&&0!==l)for(let n=0;n<this.lines.length;n++){const{top:r,height:i}=this.lines[n];if(r+i<this[this.directionKey.top]||r+i>this[this.directionKey.top]+l)return u;let a=!1;this.ellipsis&&this.lines[n+1]&&this.lines[n+1].top+this.lines[n+1].height>this[this.directionKey.top]+l&&(a=!0,u=!0),this.lines[n].draw(e,a,this.lines[n][this.directionKey.left]+s,this.lines[n][this.directionKey.top]+o,this.ellipsis,t)}else{const n=Math.floor((l-this.actualHeight)/2);"vertical"===this.layoutDirection?s+=n:o+=n;for(let n=0;n<this.lines.length;n++)this.lines[n].draw(e,!1,this.lines[n][this.directionKey.left]+s,this.lines[n][this.directionKey.top]+o,this.ellipsis,t)}else if("bottom"===this.verticalDirection&&"vertical"!==this.layoutDirection)for(let n=0;n<this.lines.length;n++){const{top:r,height:i}=this.lines[n],a=l-this.lines[n].top-this.lines[n].height;if(0===l)this.lines[n].draw(e,!1,s,a+o,this.ellipsis,t);else{if(a+i>this[this.directionKey.top]+l||a<this[this.directionKey.top])return u;{let r=!1;this.ellipsis&&this.lines[n+1]&&a-this.lines[n+1].height<this[this.directionKey.top]&&(r=!0,u=!0),this.lines[n].draw(e,r,s,a+o,this.ellipsis,t)}}}else{"bottom"===this.verticalDirection&&"vertical"===this.layoutDirection&&this.singleLine&&this.isWidthMax&&(s+=this.lines[0].height+1);for(let n=0;n<this.lines.length;n++){"bottom"===this.verticalDirection&&"vertical"===this.layoutDirection&&(s-=this.lines[n].height+this.lines[n].top);const{top:r,height:i}=this.lines[n];if(0===l)this.lines[n].draw(e,!1,this.lines[n][this.directionKey.left]+s,this.lines[n][this.directionKey.top]+o,this.ellipsis,t);else{if(r+i<this[this.directionKey.top]||r+i>this[this.directionKey.top]+l)return u;{let r=!1;this.ellipsis&&this.lines[n+1]&&this.lines[n+1].top+this.lines[n+1].height>this[this.directionKey.top]+l&&(r=!0,u=!0),this.lines[n].draw(e,r,this.lines[n][this.directionKey.left]+s,this.lines[n][this.directionKey.top]+o,this.ellipsis,t)}}}}return u}getActualSize(){return this.ellipsis?this.getActualSizeWidthEllipsis():this.getRawActualSize()}getRawActualSize(){let e=0,t=0;for(let n=0;n<this.lines.length;n++){const r=this.lines[n];r.actualWidth>e&&(e=r.actualWidth),t+=r.height}return{width:"vertical"===this.layoutDirection?t:e,height:"vertical"===this.layoutDirection?e:t}}getActualSizeWidthEllipsis(){let e=0,t=0;const{width:n,height:r}=this.getRawActualSize();this.width,this.height;let i=this[this.directionKey.height];if(this.singleLine&&(i=this.lines[0].height+1),"middle"===this.verticalDirection)if(this.actualHeight>=i&&0!==i)for(let n=0;n<this.lines.length;n++){const{top:r,height:a}=this.lines[n];if(r+a<this[this.directionKey.top]||r+a>this[this.directionKey.top]+i);else if(this.ellipsis&&this.lines[n+1]&&this.lines[n+1].top+this.lines[n+1].height>this[this.directionKey.top]+i){const r=!0===this.ellipsis?"...":this.ellipsis||"",i=this.lines[n].getWidthWithEllips(r);i>e&&(e=i),t+=this.lines[n].height}else this.lines[n].actualWidth>e&&(e=this.lines[n].actualWidth),t+=this.lines[n].height}else{Math.floor((i-this.actualHeight)/2);for(let n=0;n<this.lines.length;n++)this.lines[n].actualWidth>e&&(e=this.lines[n].actualWidth),t+=this.lines[n].height}else if("bottom"===this.verticalDirection)for(let n=0;n<this.lines.length;n++){const{top:r,height:a}=this.lines[n],o=i-this.lines[n].top-this.lines[n].height;if(0===i)this.lines[n].actualWidth>e&&(e=this.lines[n].actualWidth),t+=this.lines[n].height;else if(o+a>this[this.directionKey.top]+i||o<this[this.directionKey.top]);else if(this.ellipsis&&this.lines[n+1]&&o-this.lines[n+1].height<this[this.directionKey.top]){const r=!0===this.ellipsis?"...":this.ellipsis||"",i=this.lines[n].getWidthWithEllips(r);i>e&&(e=i),t+=this.lines[n].height}else this.lines[n].actualWidth>e&&(e=this.lines[n].actualWidth),t+=this.lines[n].height}else for(let n=0;n<this.lines.length;n++){const{top:r,height:a}=this.lines[n];if(0===i)this.lines[n].actualWidth>e&&(e=this.lines[n].actualWidth),t+=this.lines[n].height;else if(r+a<this[this.directionKey.top]||r+a>this[this.directionKey.top]+i);else if(this.ellipsis&&this.lines[n+1]&&this.lines[n+1].top+this.lines[n+1].height>this[this.directionKey.top]+i){const r=!0===this.ellipsis?"...":this.ellipsis||"",i=this.lines[n].getWidthWithEllips(r);i>e&&(e=i),t+=this.lines[n].height}else this.lines[n].actualWidth>e&&(e=this.lines[n].actualWidth),t+=this.lines[n].height}return{width:"vertical"===this.layoutDirection?t:e,height:"vertical"===this.layoutDirection?e:t}}}class Bs{constructor(e,t,n){this.fontSize=n.fontSize||16,this.textBaseline=n.textBaseline||"alphabetic";const r=Vr(n.lineHeight,this.fontSize);this.lineHeight="number"==typeof r?r>this.fontSize?r:this.fontSize:Math.floor(1.2*this.fontSize),this.height=this.lineHeight;const{ascent:i,height:a,descent:o,width:s}=fr(e,n);let l=0,u=0,c=0;this.height>a&&(l=(this.height-a)/2,u=Math.ceil(l),c=Math.floor(l)),"top"===this.textBaseline?(this.ascent=l,this.descent=a-l):"bottom"===this.textBaseline?(this.ascent=a-l,this.descent=l):"middle"===this.textBaseline?(this.ascent=this.height/2,this.descent=this.height/2):(this.ascent=i+u,this.descent=o+c),this.length=e.length,this.width=s||0,this.text=e||"",this.newLine=t||!1,this.character=n,this.left=0,this.top=0,this.ellipsis="normal",this.ellipsisWidth=0,this.ellipsisOtherParagraphWidth=0,"vertical"===n.direction&&(this.direction=n.direction,this.widthOrigin=this.width,this.heightOrigin=this.height,this.width=this.heightOrigin,this.height=this.widthOrigin,this.lineHeight=this.height),this.ellipsisStr="..."}updateWidth(){const{width:e}=fr(this.text,this.character);this.width=e,"vertical"===this.direction&&(this.widthOrigin=this.width,this.width=this.heightOrigin,this.height=this.widthOrigin)}draw(e,t,n,r,i){let a=this.text,o=this.left+n;t+=this.top;let s=this.direction;if(this.verticalEllipsis)a=this.ellipsisStr,s="vertical",t-=this.ellipsisWidth/2;else{if("hide"===this.ellipsis)return;if("add"===this.ellipsis)a+=this.ellipsisStr,"right"!==i&&"end"!==i||(o-=this.ellipsisWidth);else if("replace"===this.ellipsis){const e=hr(a,("vertical"===s?this.height:this.width)-this.ellipsisWidth+this.ellipsisOtherParagraphWidth,this.character,a.length-1);if(a=a.slice(0,e),a+=this.ellipsisStr,"right"===i||"end"===i){const{width:t}=fr(this.text.slice(e),this.character);"vertical"===s||(o-=this.ellipsisWidth-t)}}}switch(this.character.script){case"super":t-=this.ascent*(1/3);break;case"sub":t+=this.descent/2}"vertical"===s&&(e.save(),e.rotateAbout(Math.PI/2,o,t),e.translate(-this.heightOrigin||-this.lineHeight/2,-this.descent/2),e.translate(o,t),o=0,t=0),this.character.stroke&&(function(e,t){const n=t&&t.stroke||sr;if(!n)return void(e.globalAlpha=0);const{strokeOpacity:r=1,opacity:i=1}=t;e.globalAlpha=r*i,e.lineWidth=t&&"number"==typeof t.lineWidth?t.lineWidth:1,e.strokeStyle=n,dr(e,t)}(e,this.character),e.strokeText(a,o,t)),function(e,t){const n=t&&t.fill||or;if(!n)return void(e.globalAlpha=0);const{fillOpacity:r=1,opacity:i=1}=t;e.globalAlpha=r*i,e.fillStyle=n,dr(e,t)}(e,this.character),this.character.fill&&e.fillText(a,o,t),this.character.fill&&("boolean"==typeof this.character.lineThrough||"boolean"==typeof this.character.underline?(this.character.underline&&e.fillRect(o,1+t,this.widthOrigin||this.width,this.character.fontSize?Math.max(1,Math.floor(this.character.fontSize/10)):1),this.character.lineThrough&&e.fillRect(o,1+t-this.ascent/2,this.widthOrigin||this.width,this.character.fontSize?Math.max(1,Math.floor(this.character.fontSize/10)):1)):"underline"===this.character.textDecoration?e.fillRect(o,1+t,this.widthOrigin||this.width,this.character.fontSize?Math.max(1,Math.floor(this.character.fontSize/10)):1):"line-through"===this.character.textDecoration&&e.fillRect(o,1+t-this.ascent/2,this.widthOrigin||this.width,this.character.fontSize?Math.max(1,Math.floor(this.character.fontSize/10)):1)),"vertical"===s&&e.restore()}getWidthWithEllips(e){let t=this.text;const n="vertical"===e?this.height:this.width;if("hide"===this.ellipsis)return n;if("add"===this.ellipsis)return n+this.ellipsisWidth;if("replace"===this.ellipsis){const e=hr(t,n-this.ellipsisWidth+this.ellipsisOtherParagraphWidth,this.character,t.length-1);t=t.slice(0,e),t+=this.ellipsisStr;const{width:r}=fr(this.text.slice(e),this.character);return n+this.ellipsisWidth-r}return n}}const Rs=["width","height","image",...ii];let Ms=class e extends ci{constructor(e){super(e),this.type="image",this.numberType=Ri,this.loadImage(this.attribute.image)}get width(){var e;return null!==(e=this.attribute.width)&&void 0!==e?e:0}set width(e){this.attribute.width===e&&(this.attribute.width=e,this.addUpdateShapeAndBoundsTag())}get height(){var e;return null!==(e=this.attribute.height)&&void 0!==e?e:0}set height(e){this.attribute.height===e&&(this.attribute.height=e,this.addUpdateShapeAndBoundsTag())}get repeatX(){var e;return null!==(e=this.attribute.repeatX)&&void 0!==e?e:"no-repeat"}set repeatX(e){this.attribute.repeatX===e&&(this.attribute.repeatX=e)}get repeatY(){var e;return null!==(e=this.attribute.repeatY)&&void 0!==e?e:"no-repeat"}set repeatY(e){this.attribute.repeatY===e&&(this.attribute.repeatY=e)}get image(){return this.attribute.image}set image(e){e!==this.attribute.image&&(this.attribute.image=e,this.loadImage(this.attribute.image))}imageLoadSuccess(e,t,n){super.imageLoadSuccess(e,t,(()=>{this.successCallback&&this.successCallback()}))}imageLoadFail(e,t){super.imageLoadFail(e,(()=>{this.failCallback&&this.failCallback()}))}setAttributes(e,t,n){return e.image&&this.loadImage(e.image),super.setAttributes(e,t,n)}setAttribute(e,t,n,r){return"image"===e&&this.loadImage(t),super.setAttribute(e,t,n,r)}getGraphicTheme(){return Tr(this).image}updateAABBBounds(e,t,n){if(!ir.graphicService.validCheck(e,t,n,this))return n;if(!this.updatePathProxyAABBBounds(n)){const{width:r=t.width,height:i=t.height}=e;n.set(0,0,r,i)}const{tb1:r,tb2:i}=ir.graphicService.updateTempAABBBounds(n);return lo(e,t,r),n.union(r),r.setValue(i.x1,i.y1,i.x2,i.y2),ir.graphicService.transformAABBBounds(e,n,t,!1,this),n}getDefaultAttribute(e){return nr[e]}needUpdateTags(e){return super.needUpdateTags(e,Rs)}needUpdateTag(e){return super.needUpdateTag(e,Rs)}clone(){return new e(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return e.NOWORK_ANIMATE_ATTR}};function Ls(e){return new Ms(e)}Ms.NOWORK_ANIMATE_ATTR=Object.assign({image:1,repeatX:1,repeatY:1},ui);class Os extends Ms{constructor(e){if(super(e),this._x=0,this._y=0,this._hovered=!1,this._marginArray=[0,0,0,0],"always"===e.backgroundShowMode&&(this._hovered=!0),e.margin){const t=jr(e.margin);this._marginArray="number"==typeof t?[t,t,t,t]:t}this.onBeforeAttributeUpdate=(e,t,n)=>{if(w(n)&&-1!==n.indexOf("margin")||"margin"===n)if(t.margin){const e=jr(t.margin);this._marginArray="number"==typeof e?[e,e,e,e]:e}else this._marginArray=[0,0,0,0]}}get width(){var e;return(null!==(e=this.attribute.width)&&void 0!==e?e:0)+this._marginArray[1]+this._marginArray[3]}get height(){var e;return(null!==(e=this.attribute.height)&&void 0!==e?e:0)+this._marginArray[0]+this._marginArray[2]}tryUpdateAABBBounds(){if(!this.shouldUpdateAABBBounds())return this._AABBBounds;this.doUpdateAABBBounds();const{width:e=nr.width,height:t=nr.height}=this.attribute,{backgroundWidth:n=e,backgroundHeight:r=t}=this.attribute,i=(n-e)/2,a=(r-t)/2;return this._AABBBounds.expand([0,2*i,2*a,0]),this._AABBBounds}setHoverState(e){"hover"===this.attribute.backgroundShowMode&&this._hovered!==e&&(this._hovered=e)}}class Is{constructor(e){this.frame=e,this.width=this.frame.width,this.height=this.frame.height,this.lineWidth=0,this.y=this.frame.top,this.maxAscent=0,this.maxDescent=0,this.maxAscentForBlank=0,this.maxDescentForBlank=0,this.lineBuffer=[],this.direction=e.layoutDirection,this.directionKey=ar[this.direction]}store(e){if(e instanceof Os){this.frame.icons.set(e.richtextId,e),this.lineBuffer.push(e),this.lineWidth+=e[this.directionKey.width];let t=0,n=0;"top"===e.attribute.textBaseline?(t=0,n=e.height):"bottom"===e.attribute.textBaseline?(t=e.height,n=0):(t=e.height/2,n=e.height/2),this.maxAscent=Math.max(this.maxAscent,t),this.maxDescent=Math.max(this.maxDescent,n)}else this.lineBuffer.push(e),0!==e.text.length?(this.lineWidth+=e[this.directionKey.width],this.maxAscent=Math.max(this.maxAscent,e.ascent),this.maxDescent=Math.max(this.maxDescent,e.descent)):(this.maxAscentForBlank=Math.max(this.maxAscentForBlank,e.ascent),this.maxDescentForBlank=Math.max(this.maxDescentForBlank,e.descent))}send(){if(0===this.lineBuffer.length)return;const e=0===this.maxAscent?this.maxAscentForBlank:this.maxAscent,t=0===this.maxDescent?this.maxDescentForBlank:this.maxDescent,n=new class{constructor(e,t,n,r,i,a,o,s){this.left=e,this.width=t,this.baseline=n,this.ascent=r,this.descent=i,this.top=n-r,this.paragraphs=a.map((e=>e)),this.textAlign=(this.paragraphs[0]instanceof Os?this.paragraphs[0].attribute.textAlign:this.paragraphs[0].character.textAlign)||"left",this.direction=o,this.directionKey=ar[this.direction],this.actualWidth=0;let l=0;this.paragraphs.forEach(((e,t)=>{if(0===t&&e instanceof Bs){const t=cr.exec(e.text);0!==(null==t?void 0:t.index)&&(e.text=e.text.slice(null==t?void 0:t.index),e.updateWidth())}this.actualWidth+=e[this.directionKey.width],l=Math.max(e[this.directionKey.height],l)})),this.height=l,this.blankWidth=s?0:this.width-this.actualWidth,this.calcOffset(t,s)}calcOffset(e,t){const n=this.directionKey,r=this.height;let i=this.left,a=0;this.actualWidth<e&&!t&&("right"===this.textAlign||"end"===this.textAlign?i=e-this.actualWidth:"center"===this.textAlign?i=(e-this.actualWidth)/2:"justify"===this.textAlign&&(this.paragraphs.length<2?i=(e-this.actualWidth)/2:a=(e-this.actualWidth)/(this.paragraphs.length-1))),this.paragraphs.map((function(e){e instanceof Os?(e["_"+n.x]=i,i+=e[n.width]+a,e["_"+n.y]="top"===e.attribute.textBaseline?0:"bottom"===e.attribute.textBaseline?r-e.height:(r-e.height)/2):(e[n.left]=i,i+=e[n.width]+a)}))}draw(e,t,n,r,i,a){if(i&&(t||this.paragraphs.some((e=>e.overflow)))){let e=0;for(let n=this.paragraphs.length-1;n>=0;n--){const r=this.paragraphs[n];if(r.overflow)continue;if(r instanceof Os)break;if("vertical"===this.direction&&"vertical"!==r.direction){r.verticalEllipsis=!0;break}const a=!0===i?"...":i||"";r.ellipsisStr=a;const{width:o}=fr(a,r.character),s=o||0;if(s<=this.blankWidth+e){t&&(r.ellipsis="add");break}if(s<=this.blankWidth+e+r.width){r.ellipsis="replace",r.ellipsisWidth=s,r.ellipsisOtherParagraphWidth=this.blankWidth+e;break}r.ellipsis="hide",e+=r.width}}this.paragraphs.map(((t,i)=>{if(t instanceof Os)return t.setAttributes({x:n+t._x,y:r+t._y}),void a(t,e,n+t._x,r+t._y,this.ascent);t.draw(e,r+this.ascent,n,0===i,this.textAlign)}))}getWidthWithEllips(e){let t=0;for(let n=this.paragraphs.length-1;n>=0;n--){const r=this.paragraphs[n];if(r instanceof Os)break;const{width:i}=fr(e,r.character),a=i||0;if(a<=this.blankWidth+t){r.ellipsis="add",r.ellipsisWidth=a;break}if(a<=this.blankWidth+t+r.width){r.ellipsis="replace",r.ellipsisWidth=a,r.ellipsisOtherParagraphWidth=this.blankWidth+t;break}r.ellipsis="hide",t+=r.width}let n=0;return this.paragraphs.map(((e,t)=>{n+=e instanceof Os?e.width:e.getWidthWithEllips(this.direction)})),n}}(this.frame.left,this[this.directionKey.width],this.y+e,e,t,this.lineBuffer,this.direction,"horizontal"===this.direction?this.frame.isWidthMax:this.frame.isHeightMax);this.frame.lines.push(n),this.frame.actualHeight+=n.height,this.y+=n.height,this.lineBuffer.length=0,this.lineWidth=this.maxAscent=this.maxDescent=this.maxAscentForBlank=this.maxDescentForBlank=0}deal(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e instanceof Os?"horizontal"===this.direction&&0===this.width||"vertical"===this.direction&&0===this.height||this.lineWidth+e[this.directionKey.width]<=this[this.directionKey.width]?this.store(e):0===this.lineBuffer.length?(this.store(e),this.send()):(this.send(),this.deal(e)):"number"!=typeof this.width||this.width<0||(e.newLine&&this.send(),0!==e.text.length&&("horizontal"===this.direction&&0===this.width||"vertical"===this.direction&&0===this.height||this.lineWidth+e[this.directionKey.width]<=this[this.directionKey.width]?this.store(e):this.lineWidth===this[this.directionKey.width]?(this.send(),this.deal(e)):this.cut(e,t)))}cut(e,t){const n=this[this.directionKey.width]-this.lineWidth||0,r=Math.ceil(n/e[this.directionKey.width]*e.length)||0,i=hr(e.text,n,e.character,r,"break-word"===this.frame.wordBreak);if(0!==i){const[n,r]=function(e,t){const n=e.text.slice(0,t),r=e.text.slice(t);return[new Bs(n,e.newLine,e.character),new Bs(r,!0,e.character)]}(e,i);this.store(n),t?this.send():this.deal(r)}else 0!==this.lineBuffer.length&&(this.send(),this.deal(e))}}const Ns=["width","height","ellipsis","wordBreak","verticalDirection","maxHeight","maxWidth","textAlign","textBaseline","textConfig","layoutDirection","fill","stroke","fontSize",...ii];let Ds=class e extends ci{constructor(e){super(e),this.type="richtext",this._currentHoverIcon=null,this.numberType=Li}get width(){var e;return null!==(e=this.attribute.width)&&void 0!==e?e:tr.width}set width(e){this.attribute.width!==e&&(this.attribute.width=e,this.addUpdateShapeAndBoundsTag())}get height(){var e;return null!==(e=this.attribute.height)&&void 0!==e?e:tr.height}set height(e){this.attribute.height!==e&&(this.attribute.height=e,this.addUpdateShapeAndBoundsTag())}get maxWidth(){return this.attribute.maxWidth}set maxWidth(e){this.attribute.maxWidth!==e&&(this.attribute.maxWidth=e,this.addUpdateShapeAndBoundsTag())}get maxHeight(){return this.attribute.maxHeight}set maxHeight(e){this.attribute.maxHeight!==e&&(this.attribute.maxHeight=e,this.addUpdateShapeAndBoundsTag())}get ellipsis(){var e;return null!==(e=this.attribute.ellipsis)&&void 0!==e?e:tr.ellipsis}set ellipsis(e){this.attribute.ellipsis!==e&&(this.attribute.ellipsis=e,this.addUpdateShapeAndBoundsTag())}get wordBreak(){var e;return null!==(e=this.attribute.wordBreak)&&void 0!==e?e:tr.wordBreak}set wordBreak(e){this.attribute.wordBreak!==e&&(this.attribute.wordBreak=e,this.addUpdateShapeAndBoundsTag())}get verticalDirection(){var e;return null!==(e=this.attribute.verticalDirection)&&void 0!==e?e:tr.verticalDirection}set verticalDirection(e){this.attribute.verticalDirection!==e&&(this.attribute.verticalDirection=e,this.addUpdateShapeAndBoundsTag())}get textAlign(){var e;return null!==(e=this.attribute.textAlign)&&void 0!==e?e:tr.textAlign}set textAlign(e){this.attribute.textAlign!==e&&(this.attribute.textAlign=e,this.addUpdateShapeAndBoundsTag())}get textBaseline(){var e;return null!==(e=this.attribute.textBaseline)&&void 0!==e?e:tr.textBaseline}set textBaseline(e){this.attribute.textBaseline!==e&&(this.attribute.textBaseline=e,this.addUpdateShapeAndBoundsTag())}get textConfig(){var e;return null!==(e=this.attribute.textConfig)&&void 0!==e?e:tr.textConfig}set textConfig(e){this.attribute.textConfig=e,this.addUpdateShapeAndBoundsTag()}getGraphicTheme(){return Tr(this).richtext}updateAABBBounds(e,t,n){if(!ir.graphicService.validCheck(e,t,n,this))return n;const{width:r=t.width,height:i=t.height,maxWidth:a=t.maxWidth,maxHeight:o=t.maxHeight,textAlign:s=t.textAlign,textBaseline:l=t.textBaseline}=e;if(r>0&&i>0)n.set(0,0,r,i);else{const e=this.getFrameCache(),{width:t,height:s}=e.getActualSize();let l=r||t||0,u=i||s||0;u="number"==typeof o&&u>o?o:u||0,l="number"==typeof a&&l>a?a:l||0,n.set(0,0,l,u)}let u=0;switch(l){case"top":u=0;break;case"middle":u=-n.height()/2;break;case"bottom":u=-n.height()}let c=0;switch(s){case"left":c=0;break;case"center":c=-n.width()/2;break;case"right":c=-n.width()}return n.translate(c,u),ir.graphicService.updateTempAABBBounds(n),null==e.forceBoundsHeight&&null==e.forceBoundsWidth||ir.graphicService.updateHTMLTextAABBBounds(e,t,n),ir.graphicService.transformAABBBounds(e,n,t,!1,this),n}needUpdateTags(e){return super.needUpdateTags(e,Ns)}needUpdateTag(e){return super.needUpdateTag(e,Ns)}getFrameCache(){return this.shouldUpdateShape()&&(this.doUpdateFrameCache(),this.clearUpdateShapeTag()),this._frameCache}combinedStyleToCharacter(e){const{fill:t,stroke:n,fontSize:r,fontFamily:i,fontStyle:a,fontWeight:o,lineWidth:s,opacity:l,fillOpacity:u,strokeOpacity:c}=this.attribute;return Object.assign({fill:t,stroke:n,fontSize:r,fontFamily:i,fontStyle:a,fontWeight:o,lineWidth:s,opacity:l,fillOpacity:u,strokeOpacity:c},e)}doUpdateFrameCache(e){var t;const{textConfig:n=[],maxWidth:r,maxHeight:i,width:a,height:o,ellipsis:s,wordBreak:l,verticalDirection:u,textAlign:c,textBaseline:d,layoutDirection:h,singleLine:f,disableAutoWrapLine:p}=this.attribute,g=[],m=null!=e?e:n;for(let e=0;e<m.length;e++)if("image"in m[e]){const t=this.combinedStyleToCharacter(m[e]),n=t.id&&this._frameCache&&this._frameCache.icons&&this._frameCache.icons.get(t.id);if(n)g.push(n);else{const e=new Os(t);e.successCallback=()=>{var e;this.addUpdateBoundTag(),null===(e=this.stage)||void 0===e||e.renderNextFrame()},e.richtextId=t.id,g.push(e)}}else{const t=this.combinedStyleToCharacter(m[e]);if(T(t.text)&&(t.text=`${t.text}`),t.text&&t.text.includes("\n")){const e=t.text.split("\n");for(let n=0;n<e.length;n++)g.push(new Bs(e[n],0!==n,t))}else t.text&&g.push(new Bs(t.text,!1,t))}const y="number"==typeof r&&Number.isFinite(r)&&r>0,v="number"==typeof i&&Number.isFinite(i)&&i>0,b="number"==typeof a&&Number.isFinite(a)&&a>0&&(!y||a<=r),x="number"==typeof o&&Number.isFinite(o)&&o>0&&(!v||o<=i),S=new Ps(0,0,(b?a:y?r:0)||0,(x?o:v?i:0)||0,s,l,u,c,d,h||"horizontal",!b&&y,!x&&v,f||!1,null===(t=this._frameCache)||void 0===t?void 0:t.icons),w=new Is(S);if(p){let e=0,t=!1;for(let n=0;n<g.length;n++){const r=g[n];t?(r.overflow=!0,r.left=1/0,r.top=1/0,!r.newLine&&S.lines[S.lines.length-1].paragraphs.push(r)):w.deal(r,!0),S.lines.length!==e&&(e=S.lines.length,w.lineBuffer.length=0,r.overflow=!0,r.left=1e3,r.top=1e3,S.lines[S.lines.length-1].paragraphs.push(r),t=!0),r.newLine&&(t=!1,w.lineWidth=0),w.send()}}else for(let e=0;e<g.length;e++)w.deal(g[e]);if(w.send(),!("horizontal"===S.layoutDirection?b:x)){const e=S.getActualSizeWidthEllipsis();let t="horizontal"===S.layoutDirection?e.width:e.height;("horizontal"===S.layoutDirection?y:v)&&(t=Math.min(t,"horizontal"===S.layoutDirection?r:i)),S.lines.forEach((function(e){e.calcOffset(t,!1)}))}this._frameCache=S}clone(){return new e(Object.assign({},this.attribute))}setStage(e,t){super.setStage(e,t),this.getFrameCache().icons.forEach((n=>{n.setStage(e,t)}))}bindIconEvent(){this.addEventListener("pointermove",(e=>{var t,n,r,i,a;const o=this.pickIcon(e.global);o&&o===this._currentHoverIcon||(o?(null===(t=this._currentHoverIcon)||void 0===t||t.setHoverState(!1),this._currentHoverIcon=o,this._currentHoverIcon.setHoverState(!0),null===(n=this.stage)||void 0===n||n.setCursor(o.attribute.cursor),null===(r=this.stage)||void 0===r||r.renderNextFrame()):!o&&this._currentHoverIcon&&(this._currentHoverIcon.setHoverState(!1),this._currentHoverIcon=null,null===(i=this.stage)||void 0===i||i.setCursor(),null===(a=this.stage)||void 0===a||a.renderNextFrame()))})),this.addEventListener("pointerleave",(e=>{var t,n;this._currentHoverIcon&&(this._currentHoverIcon.setHoverState(!1),this._currentHoverIcon=null,null===(t=this.stage)||void 0===t||t.setCursor(),null===(n=this.stage)||void 0===n||n.renderNextFrame())}))}pickIcon(e){const t=this.getFrameCache(),{e:n,f:r}=this.globalTransMatrix;let i;return t.icons.forEach((t=>{var a,o;const s=t.AABBBounds.clone();s.translate(t._marginArray[3],t._marginArray[0]),s.containsPoint({x:e.x-n,y:e.y-r})&&(i=t,i.globalX=(null!==(a=i.attribute.x)&&void 0!==a?a:0)+n+t._marginArray[3],i.globalY=(null!==(o=i.attribute.y)&&void 0!==o?o:0)+r+t._marginArray[0])})),i}getNoWorkAnimateAttr(){return e.NOWORK_ANIMATE_ATTR}};function Us(e){return new Ds(e)}Ds.NOWORK_ANIMATE_ATTR=Object.assign({ellipsis:1,wordBreak:1,verticalDirection:1,textAlign:1,textBaseline:1,textConfig:1,layoutDirection:1},ui);const zs=["innerRadius","outerRadius","startAngle","endAngle","cornerRadius","padAngle","padRadius","cap",...ii];let Fs,js=class e extends ci{constructor(e){super(e),this.type="arc",this.numberType=Pi}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{startAngle:e,endAngle:t,outerRadius:n,innerRadius:r}=this.attribute;return this._validNumber(e)&&this._validNumber(t)&&this._validNumber(n)&&this._validNumber(r)}getParsedCornerRadius(){const e=this.getGraphicTheme(),{cornerRadius:t=e.cornerRadius,innerPadding:n=e.innerPadding,outerPadding:r=e.outerPadding}=this.attribute;let{outerRadius:i=e.outerRadius,innerRadius:a=e.innerRadius}=this.attribute;if(i+=r,a-=n,0===t||"0%"===t)return 0;const o=Math.abs(i-a),s=e=>Math.min(T(e,!0)?e:o*parseFloat(e)/100,o/2);if(w(t)){const e=t.map((e=>s(e)||0));return 0===e.length?[e[0],e[0],e[0],e[0]]:2===e.length?[e[0],e[1],e[0],e[1]]:(3===e.length&&e.push(0),e)}return s(t)}getParsedAngle(){const e=this.getGraphicTheme();let{startAngle:t=e.startAngle,endAngle:n=e.endAngle}=this.attribute;const{cap:r=e.cap}=this.attribute,i=n-t>=0?1:-1,a=n-t;if(t=pe(t),n=t+a,r&&ee(a)<J-Q){let a=1,o=1;r.length&&(a=Number(r[0]),o=Number(r[1]));let{outerRadius:s=e.outerRadius,innerRadius:l=e.innerRadius}=this.attribute;const{outerPadding:u=e.outerPadding,innerPadding:c=e.innerPadding}=this.attribute;s+=u,l-=c;const d=Math.abs(s-l)/2,h=d/s;if(d>Q&&s>Q)return{startAngle:t-i*h*a,endAngle:n+i*h*o,sc:i*h*a,ec:i*h*o}}return{startAngle:t,endAngle:n}}getParsePadAngle(e,t){const n=this.getGraphicTheme(),{innerPadding:r=n.innerPadding,outerPadding:i=n.outerPadding,padAngle:a=n.padAngle}=this.attribute;let{outerRadius:o=n.outerRadius,innerRadius:s=n.innerRadius}=this.attribute;o+=i,s-=r;const{padRadius:l=oe(o*o+s*s)}=this.attribute,u=ee(t-e);let c=e,d=t,h=e,f=t;const p=a/2;let g=u,m=u;if(p>Q&&l>Q){const n=t>e?1:-1;let r=le(Number(l)/s*ae(p)),i=le(Number(l)/o*ae(p));return(g-=2*r)>Q?(r*=n,h+=r,f-=r):(g=0,h=f=(e+t)/2),(m-=2*i)>Q?(i*=n,c+=i,d-=i):(m=0,c=d=(e+t)/2),{outerStartAngle:c,outerEndAngle:d,innerStartAngle:h,innerEndAngle:f,innerDeltaAngle:g,outerDeltaAngle:m}}return{outerStartAngle:c,outerEndAngle:d,innerStartAngle:h,innerEndAngle:f,innerDeltaAngle:g,outerDeltaAngle:m}}getGraphicTheme(){return Tr(this).arc}updateAABBBounds(e,t,n,r){if(!ir.graphicService.validCheck(e,t,n,this))return n;this.updatePathProxyAABBBounds(n)||(r?this.updateArcAABBBoundsImprecise(e,t,n):this.updateArcAABBBoundsAccurate(e,t,n));const{tb1:i,tb2:a}=ir.graphicService.updateTempAABBBounds(n);lo(e,t,i),n.union(i),i.setValue(a.x1,a.y1,a.x2,a.y2);const{lineJoin:o=t.lineJoin}=e;return ir.graphicService.transformAABBBounds(e,n,t,"miter"===o,this),n}updateArcAABBBoundsImprecise(e,t,n){let{outerRadius:r=t.outerRadius,innerRadius:i=t.innerRadius}=e;const{outerPadding:a=t.outerPadding,innerPadding:o=t.innerPadding}=e;return r+=a,i-=o,r<i&&(r=i),n.set(-r,-r,r,r),n}updateArcAABBBoundsAccurate(e,t,n){let{outerRadius:r=t.outerRadius,innerRadius:i=t.innerRadius}=e;const{outerPadding:a=t.outerPadding,innerPadding:o=t.innerPadding}=e;if(r+=a,i-=o,r<i){const e=r;r=i,i=e}let{endAngle:s=t.endAngle,startAngle:l=t.startAngle}=e;if(l>s){const e=l;l=s,s=e}return r<=Q?n.set(0,0,0,0):Math.abs(s-l)>J-Q?n.set(-r,-r,r,r):($r(l,s,r,n),$r(l,s,i,n)),n}needUpdateTags(e){return super.needUpdateTags(e,zs)}needUpdateTag(e){return super.needUpdateTag(e,zs)}toCustomPath(){const e=this.attribute,{startAngle:t,endAngle:n}=this.getParsedAngle();let r=e.innerRadius-(e.innerPadding||0),i=e.outerRadius-(e.outerPadding||0);const a=ee(n-t),o=n>t;if(i<r){const e=i;i=r,r=e}const s=new On;if(i<=Q)s.moveTo(0,0);else if(a>=J-Q)s.moveTo(0+i*ne(t),0+i*ae(t)),s.arc(0,0,i,t,n,!o),r>Q&&(s.moveTo(0+r*ne(n),0+r*ae(n)),s.arc(0,0,r,n,t,o));else{const e=i*ne(t),a=i*ae(t),l=r*ne(n),u=r*ae(n);s.moveTo(0+e,0+a),s.arc(0,0,i,t,n,!o),s.lineTo(0+l,0+u),s.arc(0,0,r,n,t,o),s.closePath()}return s}clone(){return new e(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return e.NOWORK_ANIMATE_ATTR}};function Ws(){!function(){if(null==Fs)try{const e=document.createElement("canvas"),t=e.getContext("2d");Fs=!!(window&&e.getBoundingClientRect&&requestAnimationFrame&&window.devicePixelRatio&&t&&t.isPointInPath&&t.isPointInStroke),Fs&&(Fs=!!document.createElement)}catch(e){Fs=!1}}();const e=ir.global&&ir.global.env;return e?"browser"===e:Fs}js.NOWORK_ANIMATE_ATTR=Object.assign({cap:1},ui);var Hs=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o};let $s=class{configure(e){e.env===this.type&&e.setActiveEnvContribution(this)}getNativeAABBBounds(e){return new fe}removeDom(e){return!1}createDom(e){return null}updateDom(e,t){return!1}getDynamicCanvasCount(){return 999}getStaticCanvasCount(){return 999}getElementById(e){return document.getElementById(e)}getRootElement(){return document.body}loadJson(e){const t=fetch(e).then((e=>e.json()));return t.then((e=>({data:e,state:"success"}))).catch((()=>({data:null,state:"fail"}))),t}loadArrayBuffer(e){return fetch(e).then((e=>e.arrayBuffer())).then((e=>({data:e,loadState:"success"}))).catch((()=>({data:null,loadState:"fail"})))}loadBlob(e){return fetch(e).then((e=>e.blob())).then((e=>({data:e,loadState:"success"}))).catch((()=>({data:null,loadState:"fail"})))}getElementTop(e,t){return 0}getElementLeft(e,t){return 0}getElementTopLeft(e,t){return{top:0,left:0}}};$s=Hs([tt()],$s);let Vs=!1;const Gs=new $e((e=>{Vs||(Vs=!0,e(Da).toSelf().inSingletonScope(),e(ro).to(Da).inSingletonScope(),e(no).toService(ro),e(Aa).toSelf(),e(Ta).toSelf(),e(Yi).toService(Aa),e(Yi).toService(Ta),e(Yi).toService(va),bt(e,Yi))}));let Ys=!1;const qs=new $e((e=>{Ys||(Ys=!0,e(ja).toSelf().inSingletonScope(),e(io).to(ja).inSingletonScope(),e(no).toService(io),e(qi).toService(va),bt(e,qi))}));let Qs=!1;const Xs=new $e((e=>{Qs||(Qs=!0,e(ao).to(Xa).inSingletonScope(),e(no).toService(ao),e(Qi).toService(va),bt(e,Qi))}));var Ks=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},Zs=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Js=class extends da{constructor(){super(),this.numberType=Li,this.builtinContributions=[Ga],this.init()}drawShape(e,t,n,r,i){const a=Tr(e).richtext,{strokeOpacity:o=a.strokeOpacity,opacity:s=a.opacity,fillOpacity:l=a.fillOpacity,visible:u=a.visible}=e.attribute;if(!e.valid||!u)return;const c=$i(s,l,!0),d=$i(s,o,!0);c&&(t.translate(n,r),this.beforeRenderStep(e,t,n,r,c,d,c,d,a,i),e.getFrameCache().draw(t,this.drawIcon),this.afterRenderStep(e,t,n,r,c,d,c,d,a,i))}drawIcon(e,t,n,r,i){var a;const o=Tr(e).richtextIcon,{width:s=o.width,height:l=o.height,opacity:u=o.opacity,image:c,backgroundFill:d=o.backgroundFill,backgroundFillOpacity:h=o.backgroundFillOpacity,backgroundStroke:f=o.backgroundStroke,backgroundStrokeOpacity:p=o.backgroundStrokeOpacity,backgroundRadius:g=o.backgroundRadius,margin:m}=e.attribute,{backgroundWidth:y=s,backgroundHeight:v=l}=e.attribute;if(m&&(n+=e._marginArray[3],r+=e._marginArray[0]),e._hovered){const e=(y-s)/2,i=(v-l)/2;0===g?(t.beginPath(),t.rect(n-e,r-i,y,v)):(t.beginPath(),Sa(t,n-e,r-i,y,v,g)),d&&(t.globalAlpha=h,t.fillStyle=d,t.fill()),f&&(t.globalAlpha=p,t.strokeStyle=f,t.stroke())}const b=c&&(null===(a=null==e?void 0:e.resources)||void 0===a?void 0:a.get(c));b&&"success"===b.state&&(t.globalAlpha=u,t.drawImage(b.data,n,r,s,l))}draw(e,t,n){const r=Tr(e).richtext;this._draw(e,r,!1,n)}};Js=Ks([tt(),Zs("design:paramtypes",[])],Js);let el=!1;const tl=new $e((e=>{el||(el=!0,e(oo).to(Js).inSingletonScope(),e(no).toService(oo))}));let nl=!1;const rl=new $e((e=>{nl||(nl=!0,e(so).to(to).inSingletonScope(),e(no).toService(so),e(Gi).toService(va),bt(e,Gi))}));class il{constructor(){this.name="HtmlAttributePlugin",this.activeEvent="onRegister",this._uid=He.GenAutoIncrementId(),this.key=this.name+this._uid,this.htmlMap={},this.renderId=0}activate(e){this.pluginService=e,e.stage.hooks.afterRender.tap(this.key,(t=>{t&&t===this.pluginService.stage&&this.drawHTML(e.stage.renderService)}))}deactivate(e){e.stage.hooks.afterRender.taps=e.stage.hooks.afterRender.taps.filter((e=>e.name!==this.key)),ir.graphicService.hooks.onRemove.unTap(this.key),ir.graphicService.hooks.onRelease.unTap(this.key),this.release()}getWrapContainer(e,t,n){let r;return r=t?"string"==typeof t?ir.global.getElementById(t):t:e.window.getContainer(),{wrapContainer:ir.global.createDom(Object.assign({tagName:"div",parent:r},n)),nativeContainer:r}}parseDefaultStyleFromGraphic(e){return function(e){const t={},n=e=>/^\d+(\.\d+)?$/.test(`${e}`)?`${e}px`:`${e}`;return["textAlign","fontFamily","fontVariant","fontStyle","fontWeight"].forEach((n=>{e[n]&&(t[Be(n)]=e[n])})),["fontSize","lineHeight"].forEach((r=>{const i=Be(r);m(e[r])||(t[i]=n(e[r]))})),y(e.maxLineWidth)&&(t["max-width"]=n(e.maxLineWidth)),e.underline?t["text-decoration"]="underline":e.lineThrough&&(t["text-decoration"]="line-through"),e.fill&&S(e.fill)&&(t.color=e.fill),t}("text"===e.type&&e.attribute?e.attribute:Tr(e).text)}getTransformOfText(e){const t=Tr(e).text,{textAlign:n=t.textAlign,textBaseline:r=t.textBaseline}=e.attribute,i=e.globalTransMatrix.toTransformAttrs(),{rotateDeg:a,scaleX:o,scaleY:s}=i,l={left:"0",start:"0",end:"-100%",center:"-50%",right:"-100%",top:"0",middle:"-50%",bottom:"-100%",alphabetic:"-79%"},u={left:"0",start:"0",end:"100%",center:"50%",right:"100%",top:"0",middle:"50%",bottom:"100%",alphabetic:"79%"};return{textAlign:n,transform:`translate(${l[n]},${l[r]}) rotate(${a}deg) scaleX(${o}) scaleY(${s})`,transformOrigin:`${u[n]} ${u[r]}`}}updateStyleOfWrapContainer(e,t,n,r,i){const{pointerEvents:a}=i;let o=this.parseDefaultStyleFromGraphic(e);o.display=!1!==e.attribute.visible?"block":"none",o.pointerEvents=!0===a?"all":a||"none",n.style.position||(n.style.position="absolute",r.style.position="relative");let s=0,l=0;const u=e.globalAABBBounds;let c=i.anchorType;if(m(c)&&(c="text"===e.type?"position":"boundsLeftTop"),"boundsLeftTop"===c&&(c="top-left"),"position"===c||u.empty()){const t=e.globalTransMatrix;s=t.e,l=t.f}else{const e=Ee(u,c);s=e.x,l=e.y}const d=ir.global.getElementTopLeft(r,!1),h=t.window.getTopLeft(!1),f=t.viewBox,p=s+h.left-d.left+f.x1,y=l+h.top-d.top+f.y1;if(o.left=`${p}px`,o.top=`${y}px`,"text"===e.type&&"position"===c&&(o=Object.assign(Object.assign({},o),this.getTransformOfText(e))),g(i.style)){const t=i.style({top:y,left:p,width:u.width(),height:u.height()},e,n);t&&(o=Object.assign(Object.assign({},o),t))}else v(i.style)?o=Object.assign(Object.assign({},o),i.style):S(i.style)&&i.style&&(o=Object.assign(Object.assign({},o),Pe(i.style)));ir.global.updateDom(n,{width:i.width,height:i.width,style:o})}clearCacheContainer(){this.htmlMap&&Object.keys(this.htmlMap).forEach((e=>{this.htmlMap[e]&&this.htmlMap[e].renderId!==this.renderId&&this.removeElement(e)})),this.renderId+=1}drawHTML(e){"browser"===ir.global.env&&(e.renderTreeRoots.sort(((e,t)=>{var n,r;return(null!==(n=e.attribute.zIndex)&&void 0!==n?n:Hn.zIndex)-(null!==(r=t.attribute.zIndex)&&void 0!==r?r:Hn.zIndex)})).forEach((e=>{this.renderGroupHTML(e)})),this.clearCacheContainer())}renderGroupHTML(e){this.renderGraphicHTML(e),e.forEachChildren((e=>{e.isContainer?this.renderGroupHTML(e):this.renderGraphicHTML(e)}))}removeElement(e){if(!this.htmlMap||!this.htmlMap[e])return;const{wrapContainer:t}=this.htmlMap[e];t&&ir.global.removeDom(t),this.htmlMap[e]=null}renderGraphicHTML(e){var t;const{html:n}=e.attribute;if(!n)return;const r=e.stage;if(!r)return;const{dom:i,container:a}=n;if(!i)return;const o=m(n.id)?`${null!==(t=e.id)&&void 0!==t?t:e._uid}_react`:n.id;if(this.htmlMap&&this.htmlMap[o]&&a&&a!==this.htmlMap[o].container&&this.removeElement(o),this.htmlMap&&this.htmlMap[o])"string"==typeof i?this.htmlMap[o].wrapContainer.innerHTML=i:i!==this.htmlMap[o].wrapContainer.firstChild&&(this.htmlMap[o].wrapContainer.removeChild(this.htmlMap[o].wrapContainer.firstChild),this.htmlMap[o].wrapContainer.appendChild(i));else{const{wrapContainer:e,nativeContainer:t}=this.getWrapContainer(r,a);e&&("string"==typeof i?e.innerHTML=i:e.appendChild(i),this.htmlMap||(this.htmlMap={}),this.htmlMap[o]={wrapContainer:e,nativeContainer:t,container:a,renderId:this.renderId})}if(!this.htmlMap||!this.htmlMap[o])return;const{wrapContainer:s,nativeContainer:l}=this.htmlMap[o];this.updateStyleOfWrapContainer(e,r,s,l,n),this.htmlMap[o].renderId=this.renderId}release(){"browser"===ir.global.env&&this.removeAllDom(this.pluginService.stage.defaultLayer)}removeAllDom(e){this.htmlMap&&(Object.keys(this.htmlMap).forEach((e=>{this.removeElement(e)})),this.htmlMap=null)}}class al extends il{constructor(){super(...arguments),this.name="ReactAttributePlugin",this.activeEvent="onRegister",this._uid=He.GenAutoIncrementId(),this.key=this.name+this._uid,this.htmlMap={}}removeElement(e){if(!this.htmlMap||!this.htmlMap[e])return;const{root:t,wrapContainer:n,unmount:r}=this.htmlMap[e];t?ir.global.getRequestAnimationFrame()((()=>{t.unmount()})):r&&r(),n&&ir.global.removeDom(n),this.htmlMap[e]=null}renderGraphicHTML(e){var t;const{react:n}=e.attribute;if(!n)return;const r=e.stage;if(!r)return;const i=r.params.ReactDOM,{element:a,container:o}=n;if(!a||!i||!i.createRoot&&!i.render)return;const s=m(n.id)?`${null!==(t=e.id)&&void 0!==t?t:e._uid}_react`:n.id;if(this.htmlMap&&this.htmlMap[s]&&o&&o!==this.htmlMap[s].container&&this.removeElement(s),this.htmlMap&&this.htmlMap[s])i.createRoot?this.htmlMap[s].root.render(a):i.render(a,this.htmlMap[s].wrapContainer);else{const{wrapContainer:e,nativeContainer:t}=this.getWrapContainer(r,o);if(e)if(this.htmlMap||(this.htmlMap={}),i.createRoot){const n=i.createRoot(e);n.render(a),this.htmlMap[s]={root:n,wrapContainer:e,nativeContainer:t,container:o,renderId:this.renderId}}else i.render(a,e),this.htmlMap[s]={wrapContainer:e,nativeContainer:t,container:o,renderId:this.renderId,unmount:()=>{i.unmountComponentAtNode(e)}}}if(!this.htmlMap||!this.htmlMap[s])return;const{wrapContainer:l,nativeContainer:u}=this.htmlMap[s];this.updateStyleOfWrapContainer(e,r,l,u,n),this.htmlMap[s].renderId=this.renderId}}const ol=["x","y","dx","dy","scaleX","scaleY","angle","anchor","postMatrix","visible","clip","pickable","childrenPickable","zIndex","cursor"];class sl extends Fi{constructor(e,t){super(e),(null==t?void 0:t.mode)&&(this.mode=t.mode,this.setMode(t.mode)),(null==t?void 0:t.skipDefault)&&(this.skipDefault=!0),this.setTheme({common:{strokeBoundsBuffer:0}}),this.attribute=e,this.onSetStage((()=>{this.render(),this.bindEvents()}))}setAttribute(e,t,n){x(this.attribute[e])&&x(t)&&!g(this.attribute[e])&&!g(t)?U(this.attribute[e],t):this.attribute[e]=t,ol.includes(e)||this.render(),this.valid=this.isValid(),this.updateShapeAndBoundsTagSetted()||!n&&!this.needUpdateTag(e)?this.addUpdateBoundTag():this.addUpdateShapeAndBoundsTag(),this.addUpdatePositionTag(),this.onAttributeUpdate()}setAttributes(e,t){const n=Object.keys(e);this._mergeAttributes(e,n),n.every((e=>ol.includes(e)))||this.render(),this.valid=this.isValid(),this.updateShapeAndBoundsTagSetted()||!t&&!this.needUpdateTags(n)?this.addUpdateBoundTag():this.addUpdateShapeAndBoundsTag(),this.addUpdatePositionTag(),this.onAttributeUpdate()}_mergeAttributes(e,t){m(t)&&(t=Object.keys(e));for(let n=0;n<t.length;n++){const r=t[n];!x(this.attribute[r])||g(this.attribute[r])||g(e[r])?this.attribute[r]=e[r]:U(this.attribute[r],e[r])}}bindEvents(){}_getNodeId(e){var t;return`${null!==(t=this.id)&&void 0!==t?t:this._uid}-${this.name}-${e}`}_dispatchEvent(e,t){var n;const r=new Er(e,t);r.manager=null===(n=this.stage)||void 0===n?void 0:n.eventSystem.manager,this.dispatchEvent(r)}}const ll=Symbol.for("MathPickerContribution"),ul=Symbol.for("MathImagePicker"),cl=Symbol.for("MathRectPicker"),dl=Symbol.for("MathSymbolPicker"),hl=Symbol.for("MathTextPicker"),fl=Symbol.for("CanvasImagePicker"),pl=Symbol.for("CanvasRectPicker"),gl=Symbol.for("CanvasSymbolPicker"),ml=Symbol.for("CanvasTextPicker"),yl=Symbol.for("CanvasRichTextPicker"),vl=Symbol.for("CanvasPickerContribution"),bl={onPointerDown:"pointerdown",onPointerUp:"pointerup",onPointerUpOutside:"pointerupoutside",onPointerTap:"pointertap",onPointerOver:"pointerover",onPointerMove:"pointermove",onPointerEnter:"pointerenter",onPointerLeave:"pointerleave",onPointerOut:"pointerout",onMouseDown:"mousedown",onMouseUp:"mouseup",onMouseUpOutside:"mouseupoutside",onMouseMove:"mousemove",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseEnter:"mouseenter",onMouseLeave:"mouseleave",onPinch:"pinch",onPinchStart:"pinchstart",onPinchEnd:"pinchend",onPan:"pan",onPanStart:"panstart",onPanEnd:"panend",onDrag:"drag",onDragStart:"dragstart",onDragEnter:"dragenter",onDragLeave:"dragleave",onDragOver:"dragover",onDragEnd:"dragend",onRightDown:"rightdown",onRightUp:"rightup",onRightUpOutside:"rightupoutside",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchEndOutside:"touchendoutside",onTouchMove:"touchmove",onTouchCancel:"touchcancel",onPress:"press",onPressUp:"pressup",onPressEnd:"pressend",onSwipe:"swipe",onDrop:"drop",onWeel:"wheel",onClick:"click",onDblClick:"dblclick"};var xl=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},Sl=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class wl{get x1(){return this.dom.getBoundingClientRect().left}get x2(){return this.dom.getBoundingClientRect().right}get y1(){return this.dom.getBoundingClientRect().top}get y2(){return this.dom.getBoundingClientRect().bottom}get width(){return this.dom.getBoundingClientRect().width}get height(){return this.dom.getBoundingClientRect().height}constructor(e){this.dom=e}}function _l(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=document.createElement("img");if(n.crossOrigin="anonymous",t){const t=new Blob([e],{type:"image/svg+xml"});e=window.URL.createObjectURL(t)}return n.src=e,n.complete?Promise.resolve(n):new Promise(((e,t)=>{n.onload=()=>{e(n)},n.onerror=()=>{t(new Error("加载失败"))}}))}let Tl=class extends $s{constructor(){super(),this.type="browser",this.supportEvent=!0;try{this.supportsTouchEvents="ontouchstart"in globalThis,this.supportsPointerEvents=!!globalThis.PointerEvent,this.supportsMouseEvents=!!globalThis.MouseEvent}catch(e){this.supportsTouchEvents=!1,this.supportsPointerEvents=!1,this.supportsPointerEvents=!1}this.applyStyles=!0}mapToCanvasPoint(e,t){var n,r;let i=0,a=0,o=0,s=0;if(e.changedTouches){const t=null!==(n=e.changedTouches[0])&&void 0!==n?n:{};i=t.clientX||0,a=t.clientY||0,o=i,s=a}else i=e.clientX||0,a=e.clientY||0,o=e.offsetX||0,s=e.offsetY||0;if(t){const e=i,n=a,o=t.getBoundingClientRect(),s=null===(r=t.getNativeHandler)||void 0===r?void 0:r.call(t).nativeCanvas;let l,u;return s&&(l=o.width/s.offsetWidth,u=o.height/s.offsetHeight),{x:(e-o.left)/(A(l)?l:1),y:(n-o.top)/(A(u)?u:1)}}return{x:o,y:s}}getNativeAABBBounds(e){let t=e;if("string"==typeof e&&(t=(new DOMParser).parseFromString(e,"text/html").firstChild,t.lastChild&&(t=t.lastChild.firstChild)),t.getBoundingClientRect){const e=t.getBoundingClientRect();return new wl(e)}return new fe}removeDom(e){return e.parentElement.removeChild(e),!0}updateDom(e,t){const{width:n,height:r,style:i}=t;return i&&(S(i)?e.setAttribute("style",i):Object.keys(i).forEach((t=>{e.style[t]=i[t]}))),null!=n&&(e.style.width=`${n}px`),null!=r&&(e.style.height=`${r}px`),!0}createDom(e){const{tagName:t="div",parent:n}=e,r=document.createElement(t);if(this.updateDom(r,e),n){const e=S(n)?this.getElementById(n):n;e&&e.appendChild&&e.appendChild(r)}return r}loadImage(e){return _l(e,!1).then((e=>({data:e,loadState:"success"}))).catch((()=>({data:null,loadState:"fail"})))}loadSvg(e){return _l(e,!0).then((e=>({data:e,loadState:"success"}))).catch((()=>({data:null,loadState:"fail"})))}createCanvas(e){var t,n;const r=document.createElement("canvas");e.id&&(r.id=null!==(t=e.id)&&void 0!==t?t:He.GenAutoIncrementId().toString());const i=null!==(n=e.dpr)&&void 0!==n?n:window.devicePixelRatio;return e.width&&e.height&&(r.style.width=`${e.width}px`,r.style.height=`${e.height}px`,r.width=e.width*i,r.height=e.height*i),r}createOffscreenCanvas(e){var t;const n=null!==(t=e.dpr)&&void 0!==t?t:window.devicePixelRatio;return new OffscreenCanvas(e.width*n,e.height*n)}releaseCanvas(e){let t;t="string"==typeof e?document.getElementById(e):e,t&&t.parentElement&&t.parentElement.removeChild(t)}getDevicePixelRatio(){return window.devicePixelRatio}getRequestAnimationFrame(){return window.requestAnimationFrame}getCancelAnimationFrame(){return window.cancelAnimationFrame}addEventListener(e,t,n){return document.addEventListener(e,t,n)}removeEventListener(e,t,n){return document.removeEventListener(e,t,n)}dispatchEvent(e){return document.dispatchEvent(e)}getElementById(e){return document.getElementById(e)}getRootElement(){return document.body}getDocument(){return document}release(){}getElementTop(e,t){let n=e.offsetTop,r=e.offsetParent;for(;null!==r;)n+=r.offsetTop,r=r.offsetParent;return n}getElementLeft(e,t){let n=e.offsetLeft,r=e.offsetParent;for(;null!==r;)n+=r.offsetLeft,r=r.offsetParent;return n}getElementTopLeft(e,t){let n=e.offsetTop,r=e.offsetLeft,i=e.offsetParent;for(;null!==i;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;return{top:n,left:r}}};Tl=xl([tt(),Sl("design:paramtypes",[])],Tl);class Al{contains(e,t,n){if(!e.AABBBounds.containsPoint(t))return!1;if("imprecise"===e.attribute.pickMode)return!0;const{pickContext:r}=null!=n?n:{};if(!r)return!1;const i=e.getGraphicTheme();r.highPerformanceSave();let{x:a=i.x,y:o=i.y}=e.attribute;if(e.transMatrix.onlyTranslate()){const t=e.getOffsetXY(i);a+=t.x,o+=t.y,r.setTransformForCurrent()}else a=0,o=0,r.transformFromMatrix(e.transMatrix,!0);let s=!1;return this.canvasRenderer.drawShape(e,r,a,o,{},null,((e,n,r)=>!!s||(s=e.isPointInPath(t.x,t.y),s)),((e,n,i)=>{if(s)return!0;const a=n.lineWidth||i.lineWidth,o=n.pickStrokeBuffer||i.pickStrokeBuffer;return r.lineWidth=ha(r,a+o,r.dpr),s=e.isPointInStroke(t.x,t.y),s})),r.highPerformanceRestore(),s}}var kl=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o};let Cl=class{constructor(){this.type="image",this.numberType=Ri}contains(e,t,n){const{pickContext:r}=null!=n?n:{};return!!r&&!!e.AABBBounds.containsPoint(t)}};Cl=kl([tt()],Cl);let El=!1;const Pl=new $e(((e,t,n,r)=>{El||(El=!0,e(ul).to(Cl).inSingletonScope(),e(Cl).toService(ul))})),Bl=new fe;class Rl{constructor(){this.type="rect",this.numberType=Mi}contains(e,t,n){if(!e.AABBBounds.containsPoint(t))return!1;if("imprecise"===e.attribute.pickMode)return!0;const{pickContext:r}=null!=n?n:{};if(!r)return!1;const i=e.getGraphicTheme(),{cornerRadius:a=i.cornerRadius}=e.attribute;let{x:o=i.x,y:s=i.y}=e.attribute;r.highPerformanceSave();let l=!0;if(e.transMatrix.onlyTranslate()){const t=e.getOffsetXY(i);o+=t.x,s+=t.y,r.setTransformForCurrent()}else o=0,s=0,l=!1,r.transformFromMatrix(e.transMatrix,!0);let u=!0;if(!l||e.shadowRoot||T(a,!0)&&0!==a||w(a)&&a.some((e=>0!==e)))u=!1,this.canvasRenderer.drawShape(e,r,o,s,{},null,((e,n,r)=>!!u||(u=e.isPointInPath(t.x,t.y),u)),((e,n,i)=>{if(u)return!0;const a=n.lineWidth||i.lineWidth,o=n.pickStrokeBuffer||i.pickStrokeBuffer;return r.lineWidth=ha(r,a+o,r.dpr),u=e.isPointInStroke(t.x,t.y),u}));else{const{fill:n=i.fill,stroke:r=i.stroke,lineWidth:a=i.lineWidth}=e.attribute;if(n)u=!0;else if(r){const n=e.AABBBounds;Bl.setValue(n.x1,n.y1,n.x2,n.y2),Bl.expand(-a/2),u=!Bl.containsPoint(t)}}return r.highPerformanceRestore(),u}}var Ml=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},Ll=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ol=function(e,t){return function(n,r){t(n,r,e)}};let Il=class extends Rl{constructor(e){super(),this.canvasRenderer=e}};Il=Ml([tt(),Ol(0,Je(ro)),Ll("design:paramtypes",[Object])],Il);let Nl=!1;const Dl=new $e(((e,t,n,r)=>{Nl||(Nl=!0,e(cl).to(Il).inSingletonScope(),e(ll).toService(cl))}));let Ul=!1;const zl=new $e(((e,t,n,r)=>{Ul||(Ul=!0,e(ul).to(Cl).inSingletonScope(),e(Cl).toService(ul))}));var Fl=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},jl=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Wl=function(e,t){return function(n,r){t(n,r,e)}};let Hl=class extends Al{constructor(e){super(),this.canvasRenderer=e,this.type="symbol",this.numberType=Oi}};Hl=Fl([tt(),Wl(0,Je(io)),jl("design:paramtypes",[Object])],Hl);let $l=!1;const Vl=new $e(((e,t,n,r)=>{$l||($l=!0,e(dl).to(Hl).inSingletonScope(),e(ll).toService(dl))}));var Gl=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o};let Yl=class{constructor(){this.type="text",this.numberType=Ii}contains(e,t,n){return!!e.AABBBounds.containsPoint(t)}};Yl=Gl([tt()],Yl);let ql=!1;const Ql=new $e(((e,t,n,r)=>{ql||(ql=!0,e(hl).to(Yl).inSingletonScope(),e(ll).toService(hl))}));var Xl=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},Kl=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Zl=function(e,t){return function(n,r){t(n,r,e)}};let Jl=class extends Rl{constructor(e){super(),this.canvasRenderer=e}};Jl=Xl([tt(),Zl(0,Je(ro)),Kl("design:paramtypes",[Object])],Jl);let eu=!1;const tu=new $e(((e,t,n,r)=>{eu||(eu=!0,e(pl).to(Jl).inSingletonScope(),e(vl).toService(pl))}));class nu extends da{contains(e,t,n){const{pickContext:r}=null!=n?n:{};if(!r)return!1;const i=e.getGraphicTheme();r.highPerformanceSave();const a=this.transform(e,i,r),{x:o,y:s,z:l,lastModelMatrix:u}=a;let c=t;if(r.camera){c=t.clone();const n=e.parent.globalTransMatrix;c.x=n.a*t.x+n.c*t.y+n.e,c.y=n.b*t.x+n.d*t.y+n.f}this.canvasRenderer.z=l;let d=!1;return this.canvasRenderer.drawShape(e,r,o,s,n,null,((e,t,n)=>!!d||(d=e.isPointInPath(c.x,c.y),d))),this.canvasRenderer.z=0,r.modelMatrix!==u&&ia.free(r.modelMatrix),r.modelMatrix=u,r.highPerformanceRestore(),d}}var ru=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},iu=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},au=function(e,t){return function(n,r){t(n,r,e)}};let ou=class extends nu{constructor(e){super(),this.canvasRenderer=e,this.type="symbol",this.numberType=Oi}contains(e,t,n){const{pickContext:r}=null!=n?n:{};if(!r)return!1;const i=e.getParsedPath();if(!r.camera){if(!e.AABBBounds.containsPoint(t))return!1;if(i.isSvg||"imprecise"===e.attribute.pickMode)return!0}r.highPerformanceSave();const a=e.getGraphicTheme(),o=this.transform(e,a,r),{x:s,y:l,z:u,lastModelMatrix:c}=o;let d=t;if(r.camera){d=t.clone();const n=e.parent.globalTransMatrix;d.x=n.a*t.x+n.c*t.y+n.e,d.y=n.b*t.x+n.d*t.y+n.f}this.canvasRenderer.z=u;let h=!1;return this.canvasRenderer.drawShape(e,r,s,l,{},null,((e,t,n)=>!!h||(h=e.isPointInPath(d.x,d.y),h)),((e,t,n)=>{if(h)return!0;const i=t.lineWidth||n.lineWidth,a=t.pickStrokeBuffer||n.pickStrokeBuffer;return r.lineWidth=ha(r,i+a,r.dpr),h=e.isPointInStroke(d.x,d.y),h})),this.canvasRenderer.z=0,r.modelMatrix!==c&&ia.free(r.modelMatrix),r.modelMatrix=c,r.highPerformanceRestore(),h}};ou=ru([tt(),au(0,Je(io)),iu("design:paramtypes",[Object])],ou);let su=!1;const lu=new $e(((e,t,n,r)=>{su||(su=!0,e(gl).to(ou).inSingletonScope(),e(vl).toService(gl))}));var uu=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},cu=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},du=function(e,t){return function(n,r){t(n,r,e)}};let hu=class extends nu{constructor(e){super(),this.canvasRenderer=e,this.type="text",this.numberType=Ii}contains(e,t,n){const{pickContext:r}=null!=n?n:{};if(!r)return!1;const i=e.AABBBounds;if(!r.camera)return!!i.containsPoint(t);r.highPerformanceSave();const a=e.getGraphicTheme(),{keepDirIn3d:o=a.keepDirIn3d}=e.attribute,s=!o,l=this.transform(e,a,r,s),{x:u,y:c,z:d,lastModelMatrix:h}=l;this.canvasRenderer.z=d;let f=t;if(r.camera){f=t.clone();const n=e.parent.globalTransMatrix;f.x=n.a*t.x+n.c*t.y+n.e,f.y=n.b*t.x+n.d*t.y+n.f}let p=!1;return this.canvasRenderer.drawShape(e,r,u,c,{},null,((t,n,r)=>{if(p)return!0;const{fontSize:i=a.fontSize,textBaseline:o=a.textBaseline,textAlign:s=a.textAlign}=e.attribute,l=e.AABBBounds,h=l.height(),g=l.width(),m=Zi(o,h,i),y=Ki(s,g);return t.rect(y+u,m+c,g,h,d),p=t.isPointInPath(f.x,f.y),p}),((e,t,n)=>p)),this.canvasRenderer.z=0,r.modelMatrix!==h&&ia.free(r.modelMatrix),r.modelMatrix=h,r.highPerformanceRestore(),p}};hu=uu([tt(),du(0,Je(ao)),cu("design:paramtypes",[Object])],hu);let fu=!1;const pu=new $e(((e,t,n,r)=>{fu||(fu=!0,e(ml).to(hu).inSingletonScope(),e(vl).toService(ml))}));var gu=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},mu=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},yu=function(e,t){return function(n,r){t(n,r,e)}};let vu=class{constructor(e){this.canvasRenderer=e,this.type="richtext",this.numberType=Li}contains(e,t,n){return!!e.AABBBounds.containsPoint(t)}};vu=gu([tt(),yu(0,Je(oo)),mu("design:paramtypes",[Object])],vu);let bu=!1;const xu=new $e(((e,t,n,r)=>{bu||(bu=!0,e(yl).to(vu).inSingletonScope(),e(vl).toService(yl))}));var Su=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o};let wu=class{constructor(){this.type="image",this.numberType=Ri}contains(e,t,n){const{pickContext:r}=null!=n?n:{};return!!r&&!!e.AABBBounds.containsPoint(t)}};wu=Su([tt()],wu);let _u=!1;const Tu=new $e(((e,t,n,r)=>{_u||(_u=!0,e(fl).to(wu).inSingletonScope(),e(vl).toService(fl))})),Au=Ws();function ku(){ku.__loaded||(ku.__loaded=!0,Ha.RegisterGraphicCreator("group",ji))}ku.__loaded=!1;const Cu=ku;function Eu(){Eu.__loaded||(Eu.__loaded=!0,Ha.RegisterGraphicCreator("image",Ls),pr.load(rl),pr.load(Au?Tu:Pl))}Eu.__loaded=!1;const Pu=Eu;function Bu(){Bu.__loaded||(Bu.__loaded=!0,Ha.RegisterGraphicCreator("rect",Es),pr.load(Gs),pr.load(Au?tu:Dl))}Bu.__loaded=!1;const Ru=Bu;function Mu(){Mu.__loaded||(Mu.__loaded=!0,Ha.RegisterGraphicCreator("richtext",Us),pr.load(tl),pr.load(Au?xu:zl))}Mu.__loaded=!1;const Lu=Mu;function Ou(){Ou.__loaded||(Ou.__loaded=!0,Ha.RegisterGraphicCreator("symbol",As),pr.load(qs),pr.load(Au?lu:Vl))}Ou.__loaded=!1;const Iu=Ou;function Nu(){Nu.__loaded||(Nu.__loaded=!0,Ha.RegisterGraphicCreator("text",fo),pr.load(Xs),pr.load(Au?pu:Ql))}Nu.__loaded=!1;const Du=Nu;function Uu(){Uu.__loaded||(Uu.__loaded=!0,Ha.RegisterGraphicCreator("wrapText",mo))}Uu.__loaded=!1;const zu=Uu,Fu="PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";var ju;function Wu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return{width:0,height:0};const r=Va({text:e,fontFamily:t.fontFamily||n.fontFamily||Fu,fontSize:t.fontSize||n.fontSize||12,fontWeight:t.fontWeight||n.fontWeight,textAlign:t.textAlign||"center",textBaseline:t.textBaseline,ellipsis:!!t.ellipsis,maxLineWidth:t.maxLineWidth||1/0,lineHeight:t.fontSize||n.fontSize||12});return{width:r.width(),height:r.height()}}function Hu(e){return"rich"===function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"type";var n,r;return v(e.text)&&"type"in e.text?null!==(n=e.text.type)&&void 0!==n?n:"text":t in e&&null!==(r=e[t])&&void 0!==r?r:"text"}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"type")}!function(e){e.selected="selected",e.selectedReverse="selected_reverse",e.hover="hover",e.hoverReverse="hover_reverse"}(ju||(ju={})),ju.selectedReverse,ju.selected,ju.hover,ju.hoverReverse;var $u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Cu(),Ru(),Iu(),Lu(),Du();let Vu=class e extends sl{getBgRect(){return this._bgRect}getTextShape(){return this._textShape}constructor(t,n){super((null==n?void 0:n.skipDefault)?t:U({},e.defaultAttributes,t)),this.name="tag",this._tagStates=[],this._rectStates=[],this._symbolStates=[],this._textStates=[]}render(){var e,t,n;this.cacheStates();const{text:r="",textStyle:i={},shape:a={},panel:o={},space:s=4,minWidth:l,maxWidth:u,padding:c=4,visible:d,state:h,type:f,textAlwaysCenter:g,containerTextAlign:b}=this.attribute,x=function(e){if(A(e))return[e,e,e,e];if(w(e)){const t=e.length;if(1===t){const t=e[0];return[t,t,t,t]}if(2===t){const[t,n]=e;return[t,n,t,n]}if(3===t){const[t,n,r]=e;return[t,n,r,n]}if(4===t)return e}if(v(e)){const{top:t=0,right:n=0,bottom:r=0,left:i=0}=e;return[t,n,r,i]}return[0,0,0,0]}(c),S=this.createOrUpdateChild("tag-content",{x:0,y:0,zIndex:1},"group");let _,k=x[1]+x[3],C=x[0]+x[2],E=0,P=0;const{visible:B}=a,R=$u(a,["visible"]);if(p(B)){const e=(null==R?void 0:R.size)||10,t=T(e)?e:Math.max(e[0],e[1]);_=S.createOrUpdateChild("tag-shape",Object.assign(Object.assign({symbolType:"circle",size:e,strokeBoundsBuffer:0},R),{visible:B,x:t/2,y:t/2}),"symbol"),M(null==h?void 0:h.shape)||(_.states=h.shape),B&&(P=t+s)}let L;if(k+=P,E+=P,Hu({text:r})||"rich"===f){const e=Object.assign(Object.assign(Object.assign({},function(e){var t,n;return e.width=null!==(t=e.width)&&void 0!==t?t:0,e.height=null!==(n=e.height)&&void 0!==n?n:0,e.maxWidth=e.maxLineWidth,e.textConfig=e.text.text||e.text,e}(Object.assign({type:f,text:r},i))),i),{visible:y(r)&&!1!==d,x:E,y:0});L=S.createOrUpdateChild("tag-text",e,"richtext");const{visible:t}=o,n=$u(o,["visible"]);if(d&&p(t)){const e=this.createOrUpdateChild("tag-panel",Object.assign(Object.assign({},n),{visible:t&&!!r,x:L.AABBBounds.x1,y:L.AABBBounds.y1,width:L.AABBBounds.width(),height:L.AABBBounds.height()}),"rect");if(M(null==h?void 0:h.panel)||(e.states=h.panel),n.customShape){const t=n.customShape;e.pathProxy=e=>t(L.attribute,e,new On)}this._bgRect=e}}else{const s=Object.assign(Object.assign({text:v(r)&&"type"in r&&"text"===r.type?r.text:r,visible:y(r)&&!1!==d,lineHeight:null==i?void 0:i.fontSize},i),{x:E,y:0});m(s.lineHeight)&&(s.lineHeight=i.fontSize),L=S.createOrUpdateChild("tag-text",s,"text"),M(null==h?void 0:h.text)||(L.states=h.text);const c=Wu(s.text,i,null===(t=null===(e=this.stage)||void 0===e?void 0:e.getTheme())||void 0===t?void 0:t.text),f=c.width,w=c.height;k+=f;const A=null!==(n=a.size)&&void 0!==n?n:10,B=T(A)?A:Math.max(A[0],A[1]);C+=Math.max(w,a.visible?B:0);const{textAlign:R,textBaseline:O}=i;(y(l)||y(u))&&(y(l)&&k<l&&(k=l),y(u)&&k>u&&(k=u,L.setAttribute("maxLineWidth",u-x[1]-x[2])));let I=0,N=0,D=0;"left"===R||"start"===R?D=1:"right"===R||"end"===R?D=-1:"center"===R&&(D=0),D?D<0?(I-=k,_&&_.setAttribute("x",(_.attribute.x||0)-f),S.setAttribute("x",-x[1]-P)):D>0&&S.setAttribute("x",x[3]):(I-=k/2,_&&_.setAttribute("x",(_.attribute.x||0)-f/2),S.setAttribute("x",-P/2));const U="right"===b||"end"===b,z="left"===b||"start"===b;if((b?"center"===b:g)&&D){const e=k-x[1]-x[3],t=f+P,n=1===D?(e-t)/2+P+f/2:x[0]+P-(k/2+t/2-P)+f/2;if(L.setAttributes({x:n,textAlign:"center"}),_){const e=n-f/2-P+B/2;_.setAttributes({x:e})}}if(z&&1!==D){const e=k-x[1]-x[3],t=0===D?-e/2+P/2:-k+x[3]+x[1]+P,n=t+P;if(L.setAttributes({x:n,textAlign:"left"}),_){const e=t+B/2;_.setAttributes({x:e})}}if(U&&-1!==D){const e=k-x[1]-x[3],t=0===D?e/2+P/2:e;if(L.setAttributes({x:t,textAlign:"right"}),_){const e=t-f-P+B/2;_.setAttributes({x:e})}}"middle"===O?(N-=C/2,_&&_.setAttribute("y",0)):"bottom"===O?(N-=C,_&&_.setAttribute("y",-w/2),S.setAttribute("y",-x[2])):"top"===O&&(S.setAttribute("y",x[0]),_&&_.setAttribute("y",w/2));const{visible:F}=o,j=$u(o,["visible"]);if(d&&p(F)){const e=this.createOrUpdateChild("tag-panel",Object.assign(Object.assign({},j),{visible:F&&!!r,x:I,y:N,width:k,height:C}),"rect");if(M(null==h?void 0:h.panel)||(e.states=h.panel),j.customShape){const t=j.customShape;e.pathProxy=e=>t(L.attribute,e,new On)}this._bgRect=e}}this._textShape=L,this._symbol=_,this.resetStates()}initAttributes(t,n){t=(null==n?void 0:n.skipDefault)?t:U({},e.defaultAttributes,t),super.initAttributes(t),this.render()}addState(e,t,n){super.addState(e,t,n),this._textShape&&this._textShape.addState(e,t,n),this._bgRect&&this._bgRect.addState(e,t,n),this._symbol&&this._symbol.addState(e,t,n)}removeState(e,t){super.removeState(e,t),this._textShape&&this._textShape.removeState(e,t),this._bgRect&&this._bgRect.removeState(e,t),this._symbol&&this._symbol.removeState(e,t)}cacheStates(){var e,t,n,r,i,a,o,s,l,u,c,d,h,f;this._tagStates=null!==(t=null===(e=this.currentStates)||void 0===e?void 0:e.slice())&&void 0!==t?t:[],this._rectStates=null!==(i=null===(r=null===(n=this._bgRect)||void 0===n?void 0:n.currentStates)||void 0===r?void 0:r.slice())&&void 0!==i?i:[],this._symbolStates=null!==(s=null===(o=null===(a=this._symbol)||void 0===a?void 0:a.currentStates)||void 0===o?void 0:o.slice())&&void 0!==s?s:[],this._textStates=null!==(c=null===(u=null===(l=this._textShape)||void 0===l?void 0:l.currentStates)||void 0===u?void 0:u.slice())&&void 0!==c?c:[],this.clearStates(),null===(d=this._bgRect)||void 0===d||d.clearStates(),null===(h=this._symbol)||void 0===h||h.clearStates(),null===(f=this._textShape)||void 0===f||f.clearStates()}resetStates(){var e,t,n;this._tagStates.length&&this.useStates(this._tagStates),this._rectStates.length&&(null===(e=this._bgRect)||void 0===e||e.useStates(this._rectStates)),this._symbolStates.length&&(null===(t=this._symbol)||void 0===t||t.useStates(this._symbolStates)),this._textStates.length&&(null===(n=this._textShape)||void 0===n||n.useStates(this._textStates))}};Vu.defaultAttributes={visible:!0,textStyle:{fontSize:12,fill:"#000",textAlign:"left",textBaseline:"top"},space:4,padding:4,shape:{fill:"#000"}};Cu(),Ru(),Du(),Pu();class Gu extends sl{constructor(e,t){super((null==t?void 0:t.skipDefault)?e:U({},Gu.defaultAttributes,e)),this._handlePointerUp=()=>{this.attribute.disabled||(this.attribute.checked?(this.setAttribute("checked",!1),this.setAttribute("indeterminate",!1)):(this.setAttribute("checked",!0),this.setAttribute("indeterminate",!1)),this._dispatchEvent("checkbox_state_change",{eventType:"checkbox_state_change",checked:this.attribute.checked}),this.stage.renderNextFrame())},this.renderGroup(),this.onBeforeAttributeUpdate=(e,t,n)=>{"interactive"in e&&this.setAttribute("pickable",e.interactive),"disabled"in e&&this.setAttribute("cursor",e.disable?this.attribute.disableCursor:this.attribute.cursor)},this.addEventListener("pointerup",this._handlePointerUp)}render(){this.removeAllChild(!0),this.renderBox(),this.renderIcon(),this.renderText(),this.layout()}renderBox(){this._box=new Cs(U({},this.attribute.box));const e=this.attribute.checked||this.attribute.indeterminate;e&&this.attribute.disabled?this._box.setAttributes({fill:this.attribute.box.disableCheckedFill,stroke:this.attribute.box.disableCheckedStroke}):e&&this._box.setAttributes({fill:this.attribute.box.checkedFill,stroke:this.attribute.box.checkedStroke}),this.appendChild(this._box)}renderIcon(){this._checkIcon=new Ms(U({image:this.attribute.icon.checkIconImage},this.attribute.icon)),this.appendChild(this._checkIcon),this._indeterminateIcon=new Ms(U({image:this.attribute.icon.indeterminateIconImage},this.attribute.icon)),this.appendChild(this._indeterminateIcon),this.attribute.checked?(this._checkIcon.setAttribute("visible",!0),this._indeterminateIcon.setAttribute("visible",!1)):this.attribute.indeterminate?(this._checkIcon.setAttribute("visible",!1),this._indeterminateIcon.setAttribute("visible",!0)):(this._checkIcon.setAttribute("visible",!1),this._indeterminateIcon.setAttribute("visible",!1))}renderText(){this._text=new ho(U({wrap:!0},this.attribute.text)),this.attribute.disabled&&this._text.setAttribute("fill",this.attribute.text.disableFill),this.appendChild(this._text)}renderGroup(){this.attribute.interactive||this.setAttribute("pickable",!1),this.attribute.disabled&&this.setAttribute("cursor",this.attribute.disableCursor)}layout(){const e=this.attribute.box.height,t=this.attribute.icon.height,n=this._text.AABBBounds.height(),r=Math.max(e,t,n),i=r/2-e/2,a=r/2-t/2,o=r/2-n/2,s=this.attribute.box.width,l=this.attribute.icon.width,u=Math.max(s,l),c=u/2-s/2,d=u/2-l/2,h=u+this.attribute.spaceBetweenTextAndIcon;this._box.setAttributes({x:c,y:i}),this._checkIcon.setAttributes({x:d,y:a}),this._indeterminateIcon.setAttributes({x:d,y:a}),this._text.setAttributes({x:h,y:o})}initAttributes(e,t){e=(null==t?void 0:t.skipDefault)?e:U({},Gu.defaultAttributes,e),super.initAttributes(e),this.renderGroup(),this.render()}}Gu.defaultAttributes={interactive:!0,disabled:!1,checked:!1,indeterminate:!1,cursor:"pointer",disableCursor:"not-allowed",spaceBetweenTextAndIcon:8,text:{text:"text",fontSize:14,fill:"#000",disableFill:"rgb(201,205,212)",textBaseline:"top",pickable:!1},icon:{checkIconImage:'<svg width="200" height="200" viewBox="0 0 1024 1024" fill="#fff" xmlns="http://www.w3.org/2000/svg"><path d="M877.44815445 206.10060629a64.72691371 64.72691371 0 0 0-95.14856334 4.01306852L380.73381888 685.46812814 235.22771741 533.48933518a64.72691371 64.72691371 0 0 0-92.43003222-1.03563036l-45.82665557 45.82665443a64.72691371 64.72691371 0 0 0-0.90617629 90.61767965l239.61903446 250.10479331a64.72691371 64.72691371 0 0 0 71.19960405 15.14609778 64.33855261 64.33855261 0 0 0 35.08198741-21.23042702l36.24707186-42.71976334 40.5190474-40.77795556-3.36579926-3.49525333 411.40426297-486.74638962a64.72691371 64.72691371 0 0 0-3.88361443-87.64024149l-45.3088404-45.43829334z"></path></svg>',indeterminateIconImage:'<svg width="200" height="200" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none"><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="5" d="M5 12h14"/></svg>',width:10,height:10,pickable:!1},box:{width:14,height:14,cornerRadius:2,fill:"#fff",stroke:"rgb(229,230,235)",disableFill:"rgb(242,243,245)",checkedFill:"rgb(22, 93, 255)",checkedStroke:"rgb(22, 93, 255)",disableCheckedFill:"rgb(148, 191, 255)",disableCheckedStroke:"rgb(148, 191, 255)",pickable:!1}},Cu(),Ru(),zu(),Pu();let Yu=class e extends sl{constructor(t,n){super((null==n?void 0:n.skipDefault)?t:U({},e.defaultAttributes,t)),this._handlePointerUp=()=>{this.attribute.disabled||this.attribute.checked||(this.setAttribute("checked",!0),this._dispatchEvent("radio_checked",{eventType:"radio_checked",target:this}),this.stage.renderNextFrame())},this.renderGroup(),this.onBeforeAttributeUpdate=(e,t,n)=>{"interactive"in e&&this.setAttribute("pickable",e.interactive),"disabled"in e&&this.setAttribute("cursor",e.disable?this.attribute.disableCursor:this.attribute.cursor)},this.addEventListener("pointerup",this._handlePointerUp)}render(){this.removeAllChild(!0),this.renderCircle(),this.renderText(),this.layout()}renderCircle(){this._circle=new js(U({},this.attribute.circle));const e=this.attribute.checked;e&&this.attribute.disabled?this._circle.setAttributes({fill:this.attribute.circle.disableCheckedFill,stroke:this.attribute.circle.disableCheckedStroke}):e&&this._circle.setAttributes({fill:this.attribute.circle.checkedFill,stroke:this.attribute.circle.checkedStroke}),this.appendChild(this._circle)}renderText(){this._text=new go(U({},this.attribute.text)),this.attribute.disabled&&this._text.setAttribute("fill",this.attribute.text.disableFill),this.appendChild(this._text)}renderGroup(){this.attribute.interactive||this.setAttribute("pickable",!1),this.attribute.disabled&&this.setAttribute("cursor",this.attribute.disableCursor)}layout(){const e=2*(this.attribute.circle.outerRadius+this.attribute.circle.lineWidth),t=this._text.AABBBounds.height(),n=Math.max(e,t),r=n/2-e/2+this.attribute.circle.outerRadius+this.attribute.circle.lineWidth,i=n/2-t/2,a=2*(this.attribute.circle.outerRadius+this.attribute.circle.lineWidth),o=this.attribute.circle.outerRadius+this.attribute.circle.lineWidth,s=a+this.attribute.spaceBetweenTextAndIcon;this._circle.setAttributes({x:o,y:r}),this._text.setAttributes({x:s,y:i})}initAttributes(t,n){t=(null==n?void 0:n.skipDefault)?t:U({},e.defaultAttributes,t),super.initAttributes(t),this.renderGroup(),this.render()}};Yu.defaultAttributes={interactive:!0,disabled:!1,checked:!1,cursor:"pointer",disableCursor:"not-allowed",spaceBetweenTextAndIcon:8,text:{text:"text",fontSize:14,fill:"#000",disableFill:"rgb(201,205,212)",textBaseline:"top",pickable:!1},circle:{outerRadius:7,innerRadius:3,startAngle:0,endAngle:2*Math.PI,lineWidth:1,fill:"#fff",stroke:"rgb(229,230,235)",disableFill:"rgb(242,243,245)",checkedFill:"rgb(22, 93, 255)",checkedStroke:"rgb(22, 93, 255)",disableCheckedFill:"rgb(148, 191, 255)",disableCheckedStroke:"rgb(148, 191, 255)",pickable:!1}};class qu extends al{removeElement(e){super.removeElement(e),delete this.htmlMap[e]}renderGraphicHTML(e){const{react:t}=e.attribute;if(!t)return;const n=e.stage;if(!n)return;const r=n.params.ReactDOM,{element:i,container:a}=t;if(!(i&&r&&r.createRoot))return;const o=m(t.id)?`${e.id??e._uid}_react`:t.id;if(this.htmlMap&&this.htmlMap[o]&&a&&a!==this.htmlMap[o].container&&this.removeElement(o),this.htmlMap&&this.htmlMap[o])this.htmlMap[o].root.render(i);else{const{wrapContainer:e,nativeContainer:t}=this.getWrapContainer(n,a);if(e){const n=r.createRoot(e);n.render(i),this.htmlMap||(this.htmlMap={}),this.htmlMap[o]={root:n,wrapContainer:e,nativeContainer:t,container:a,renderId:this.renderId}}}if(!this.htmlMap||!this.htmlMap[o])return;const{wrapContainer:s,nativeContainer:l}=this.htmlMap[o];this.updateStyleOfWrapContainer(e,n,s,l,t),this.htmlMap[o].renderId=this.renderId}getWrapContainer(e,t,n){let r;return r=t?"string"==typeof t?ir.global.getElementById(t):t:e.window.getContainer(),{wrapContainer:ir.global.createDom({tagName:"div",parent:r,...n}),nativeContainer:r}}updateStyleOfWrapContainer(e,t,n,r,i){const{pointerEvents:a}=i;let o=this.parseDefaultStyleFromGraphic(e);o.display=!1!==e.attribute.visible?"block":"none",o.pointerEvents=!0===a?"all":a||"none",n.style.position||(n.style.position="absolute",r.style.position="relative");let s=0,l=0;const u=e.globalAABBBounds;let c=i.anchorType;if(m(c)&&(c="text"===e.type?"position":"boundsLeftTop"),"boundsLeftTop"===c&&(c="top-left"),"position"===c||u.empty()){const t=e.globalTransMatrix;s=t.e,l=t.f}else{const e=Ee(u,c);s=e.x,l=e.y}const d=ir.global.getElementTopLeft(r,!1),h=t.window.getTopLeft(!1),f=s+h.left-d.left,p=l+h.top-d.top;if(o.left=`${f}px`,o.top=`${p}px`,"text"===e.type&&"position"===c&&(o={...o,...this.getTransformOfText(e)}),g(i.style)){const t=i.style({top:p,left:f,width:u.width(),height:u.height()},e,n);t&&(o={...o,...t})}else v(i.style)?o={...o,...i.style}:S(i.style)&&i.style&&(o={...o,...Pe(i.style)});ir.global.updateDom(n,{width:i.width,height:i.width,style:o,graphic:e})}}const Qu=new $e(((e,t,n,r)=>{e(Xu).toSelf().inSingletonScope(),n(wt)?r(wt).toService(Xu):e(wt).toService(Xu)}));class Xu extends Tl{updateDom(e,n){const r=e.parentElement;if(r){const i=parseInt(n.style.top,10),a=parseInt(n.style.left,10);let o,s;if(e.style.display="none"){const e=t.getTargetCell(n.graphic);o=e.attribute.width??1,s=e.attribute.height??1}else o=e.offsetWidth,s=e.offsetHeight;if(i+s<0||a+o<0||i>r.offsetHeight||a>r.offsetWidth)return e.style.display="none",!1}const{width:i,height:a,style:o}=n;return o&&(S(o)?e.setAttribute("style",o):Object.keys(o).forEach((t=>{e.style[t]=o[t]}))),null!=i&&(e.style.width=`${i}px`),null!=a&&(e.style.height=`${a}px`),!0}}Ws()&&pr.load(Qu);const Ku=["children","hooks","ref",...Fe,"skipFunctionDiff","onError","onReady","option","records","container","vtableConstrouctor"],Zu=(e,t)=>`${e&&e.type&&(e.type.displayName||e.type.name)}-${t}`,Ju=u.forwardRef(((e,t)=>{const[n,r]=l.useState(0),i=l.useRef({});l.useImperativeHandle(t,(()=>i.current?.table));const a=!!e.option,o=!!e.records,s=l.useRef(!1),d=l.useRef(z(e,Ku)),h=l.useRef(null),f=l.useRef(e.records),p=u.useRef(null),g=!!e.skipFunctionDiff,y=l.useCallback((e=>a&&e.option?o&&e.records?{...e.option,clearDOM:!1,records:e.records}:{...e.option,clearDOM:!1}:{records:e.records,...d.current,...h.current,clearDOM:!1,customConfig:{createReactContainer:!0}}),[a,o]),v=l.useCallback((e=>{const t=new e.vtableConstrouctor(e.container,y(e));t.scenegraph.stage.reactAttribute=e.ReactDOM,t.scenegraph.stage.pluginService.register(new qu),t.scenegraph.stage.params.ReactDOM=e.ReactDOM,i.current={...i.current,table:t},s.current=!1}),[y]),b=l.useCallback((()=>{if(!s.current){if(!i.current||!i.current.table)return;We(i.current.table,e,p.current,ze),r(n+1),e.onReady&&e.onReady(i.current.table,0===n)}}),[n,r,e]),x=l.useCallback((()=>{i.current.table&&(i.current.table.render(),b())}),[b]);return l.useEffect((()=>{const t=a?null:(e=>{const t={};return De(e.children).map(((e,n)=>{const r=e&&e.type&&e.type.parseOption;if(r&&e.props){const i=r(m(e.props.componentId)?{...e.props,componentId:Zu(e,n)}:e.props);i.isSingle?t[i.optionName]=i.option:(t[i.optionName]||(t[i.optionName]=[]),t[i.optionName].push(i.option))}})),t})(e);if(!i.current?.table)return a||(h.current=t),v(e),x(),void(p.current=e);if(a)return void(W(p.current.option,e.option,{skipFunction:g})?o&&!W(p.current.records,e.records,{skipFunction:g})&&(i.current.table.setRecords(e.records),b(),p.current=e):(i.current.table.updateOption(y(e)),b(),p.current=e));const n=z(e,Ku);W(n,d.current,{skipFunction:g})&&W(t,h.current,{skipFunction:g})?o&&!W(e.records,f.current,{skipFunction:g})&&(f.current=e.records,i.current.table.setRecords(e.records),b(),p.current=e):(d.current=n,h.current=t,i.current.table.updateOption(y(e)),b(),p.current=e)}),[v,a,o,y,b,x,g,e]),l.useEffect((()=>()=>{i&&i.current&&i.current.table&&(i.current.table.release(),i.current=null),p.current=null,s.current=!0}),[]),u.createElement(c.Provider,{value:i.current},De(e.children).map(((e,t)=>{if("string"==typeof e)return;const r=Zu(e,t);return u.createElement(u.Fragment,{key:r},u.cloneElement(e,{updateId:n,componentId:r,componentIndex:t}))})))})),ec=(e,t,n)=>{const r=function(e,t="TableContainer",n){const r=u.forwardRef(((t,r)=>{const i=l.useRef(),[a,o]=l.useState(!1),{className:s,style:c,width:d,...h}=t;return l.useLayoutEffect((()=>{o(!0)}),[]),u.createElement("div",{ref:i,className:s,style:{position:"relative",height:t.height||"100%",width:t.width||"100%",...c}},a?u.createElement(e,{ref:r,container:i.current,...n?n(h):h}):u.createElement(u.Fragment,null))}));return r.displayName=t||e.name,r}(Ju,e,(e=>t?Object.assign(e,t):e));return r.displayName=e,r},tc=ec("ListTable",{type:"list-table",vtableConstrouctor:t.ListTable}),nc=ec("PivotTable",{type:"pivot-table",vtableConstrouctor:t.PivotTable}),rc=ec("PivotChart",{type:"pivot-chart",vtableConstrouctor:t.PivotChart});const ic=ec("ListTable",{type:"list-table",vtableConstrouctor:t.ListTableSimple}),ac=ec("PivotTable",{type:"pivot-table",vtableConstrouctor:t.PivotTableSimple});var oc,sc={exports:{}},lc={exports:{}},uc={};var cc,dc,hc,fc,pc={};
|
|
20
|
+
/**
|
|
21
|
+
* @license React
|
|
22
|
+
* scheduler.development.js
|
|
23
|
+
*
|
|
24
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
25
|
+
*
|
|
26
|
+
* This source code is licensed under the MIT license found in the
|
|
27
|
+
* LICENSE file in the root directory of this source tree.
|
|
28
|
+
*/function gc(){return cc||(cc=1,function(e){"production"!==production&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,n=!1;function r(e,t){var n=e.length;e.push(t),function(e,t,n){var r=n;for(;r>0;){var i=r-1>>>1,a=e[i];if(!(o(a,t)>0))return;e[i]=t,e[r]=a,r=i}}(e,t,n)}function i(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();return n!==t&&(e[0]=n,function(e,t,n){var r=n,i=e.length,a=i>>>1;for(;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(o(l,t)<0)u<i&&o(c,l)<0?(e[r]=c,e[u]=t,r=u):(e[r]=l,e[s]=t,r=s);else{if(!(u<i&&o(c,t)<0))return;e[r]=c,e[u]=t,r=u}}}(e,n,0)),t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var c=[],d=[],h=1,f=null,p=3,g=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function S(e){for(var t=i(d);null!==t;){if(null===t.callback)a(d);else{if(!(t.startTime<=e))return;a(d),t.sortIndex=t.expirationTime,r(c,t)}t=i(d)}}function w(e){if(y=!1,S(e),!m)if(null!==i(c))m=!0,O(_);else{var t=i(d);null!==t&&I(w,t.startTime-e)}}function _(r,o){m=!1,y&&(y=!1,N()),g=!0;var s=p;try{if(!n)return function(n,r){var o=r;S(o),f=i(c);for(;null!==f&&!t&&(!(f.expirationTime>o)||n&&!P());){var s=f.callback;if("function"==typeof s){f.callback=null,p=f.priorityLevel;var l=s(f.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?f.callback=l:f===i(c)&&a(c),S(o)}else a(c);f=i(c)}if(null!==f)return!0;var u=i(d);return null!==u&&I(w,u.startTime-o),!1}(r,o)}finally{f=null,p=s,g=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var T=!1,A=null,k=-1,C=5,E=-1;function P(){return!(e.unstable_now()-E<C)}var B,R=function(){if(null!==A){var t=e.unstable_now();E=t;var n=!0;try{n=A(!0,t)}finally{n?B():(T=!1,A=null)}}else T=!1};if("function"==typeof x)B=function(){x(R)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,L=M.port2;M.port1.onmessage=R,B=function(){L.postMessage(null)}}else B=function(){v(R,0)};function O(e){A=e,T||(T=!0,B())}function I(t,n){k=v((function(){t(e.unstable_now())}),n)}function N(){b(k),k=-1}var D=function(){};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||g||(m=!0,O(_))},e.unstable_forceFrameRate=function(e){e<0||e>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=e>0?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return i(c)},e.unstable_next=function(e){var t;switch(p){case 1:case 2:case 3:t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=D,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(t,n,a){var o,s,l=e.unstable_now();if("object"==typeof a&&null!==a){var u=a.delay;o="number"==typeof u&&u>0?l+u:l}else o=l;switch(t){case 1:s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}var f=o+s,p={id:h++,callback:n,priorityLevel:t,startTime:o,expirationTime:f,sortIndex:-1};return o>l?(p.sortIndex=o,r(d,p),null===i(c)&&p===i(d)&&(y?N():y=!0,I(w,o-l))):(p.sortIndex=f,r(c,p),m||g||(m=!0,O(_))),p},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(pc)),pc}function mc(){return dc||(dc=1,"production"===production?lc.exports=(oc||(oc=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<i(a,t)))break e;e[r]=t,e[n]=a,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<a&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<a&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,h=3,f=!1,p=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(l,i)}i=n(u)}}function x(e){if(g=!1,b(e),!p)if(null!==n(l))p=!0,M(S);else{var t=n(u);null!==t&&L(x,t.startTime-e)}}function S(t,i){p=!1,g&&(g=!1,y(A),A=-1),f=!0;var a=h;try{for(b(i),d=n(l);null!==d&&(!(d.expirationTime>i)||t&&!E());){var o=d.callback;if("function"==typeof o){d.callback=null,h=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(i)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var m=n(u);null!==m&&L(x,m.startTime-i),c=!1}return c}finally{d=null,h=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,_=!1,T=null,A=-1,k=5,C=-1;function E(){return!(e.unstable_now()-C<k)}function P(){if(null!==T){var t=e.unstable_now();C=t;var n=!0;try{n=T(!0,t)}finally{n?w():(_=!1,T=null)}}else _=!1}if("function"==typeof v)w=function(){v(P)};else if("undefined"!=typeof MessageChannel){var B=new MessageChannel,R=B.port2;B.port1.onmessage=P,w=function(){R.postMessage(null)}}else w=function(){m(P,0)};function M(e){T=e,_||(_=!0,w())}function L(t,n){A=m((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){p||f||(p=!0,M(S))},e.unstable_forceFrameRate=function(e){0>e||125<e||(k=0<e?Math.floor(1e3/e):5)},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?o+a:o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:i,priorityLevel:r,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(r.sortIndex=a,t(u,r),null===n(l)&&r===n(u)&&(g?(y(A),A=-1):g=!0,L(x,a-o))):(r.sortIndex=s,t(l,r),p||f||(p=!0,M(S))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}}(uc)),uc):lc.exports=gc()),lc.exports}
|
|
29
|
+
/**
|
|
30
|
+
* @license React
|
|
31
|
+
* react-reconciler.production.min.js
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the MIT license found in the
|
|
36
|
+
* LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/var yc,vc={exports:{}};"production"===production?sc.exports=(fc||(fc=1,hc=function(e){var t={},n=l,r=mc(),i=Object.assign;function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,s=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),S=Symbol.iterator;function w(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=S&&e[S]||e["@@iterator"])?e:null}function _(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case c:return"Fragment";case u:return"Portal";case h:return"Profiler";case d:return"StrictMode";case m:return"Suspense";case y:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case p:return(e.displayName||"Context")+".Consumer";case f:return(e._context.displayName||"Context")+".Provider";case g:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case v:return null!==(t=e.displayName||null)?t:_(e.type)||"Memo";case b:t=e._payload,e=e._init;try{return _(e(t))}catch(e){}}return null}function T(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _(t);case 8:return t===d?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function A(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function k(e){if(A(e)!==e)throw Error(a(188))}function C(e){var t=e.alternate;if(!t){if(null===(t=A(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return k(i),e;if(o===r)return k(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}function E(e){return null!==(e=C(e))?P(e):null}function P(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=P(e);if(null!==t)return t;e=e.sibling}return null}function B(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){if(4!==e.tag){var t=B(e);if(null!==t)return t}e=e.sibling}return null}var R,M=Array.isArray,L=e.getPublicInstance,O=e.getRootHostContext,I=e.getChildHostContext,N=e.prepareForCommit,D=e.resetAfterCommit,U=e.createInstance,z=e.appendInitialChild,F=e.finalizeInitialChildren,j=e.prepareUpdate,W=e.shouldSetTextContent,H=e.createTextInstance,$=e.scheduleTimeout,V=e.cancelTimeout,G=e.noTimeout,Y=e.isPrimaryRenderer,q=e.supportsMutation,Q=e.supportsPersistence,X=e.supportsHydration,K=e.getInstanceFromNode,Z=e.preparePortalMount,J=e.getCurrentEventPriority,ee=e.detachDeletedInstance,te=e.supportsMicrotasks,ne=e.scheduleMicrotask,re=e.supportsTestSelectors,ie=e.findFiberRoot,ae=e.getBoundingRect,oe=e.getTextContent,se=e.isHiddenSubtree,le=e.matchAccessibilityRole,ue=e.setFocusIfFocusable,ce=e.setupIntersectionObserver,de=e.appendChild,he=e.appendChildToContainer,fe=e.commitTextUpdate,pe=e.commitMount,ge=e.commitUpdate,me=e.insertBefore,ye=e.insertInContainerBefore,ve=e.removeChild,be=e.removeChildFromContainer,xe=e.resetTextContent,Se=e.hideInstance,we=e.hideTextInstance,_e=e.unhideInstance,Te=e.unhideTextInstance,Ae=e.clearContainer,ke=e.cloneInstance,Ce=e.createContainerChildSet,Ee=e.appendChildToContainerChildSet,Pe=e.finalizeContainerChildren,Be=e.replaceContainerChildren,Re=e.cloneHiddenInstance,Me=e.cloneHiddenTextInstance,Le=e.canHydrateInstance,Oe=e.canHydrateTextInstance,Ie=e.canHydrateSuspenseInstance,Ne=e.isSuspenseInstancePending,De=e.isSuspenseInstanceFallback,Ue=e.getSuspenseInstanceFallbackErrorDetails,ze=e.registerSuspenseInstanceRetry,Fe=e.getNextHydratableSibling,je=e.getFirstHydratableChild,We=e.getFirstHydratableChildWithinContainer,He=e.getFirstHydratableChildWithinSuspenseInstance,$e=e.hydrateInstance,Ve=e.hydrateTextInstance,Ge=e.hydrateSuspenseInstance,Ye=e.getNextHydratableInstanceAfterSuspenseInstance,qe=e.commitHydratedContainer,Qe=e.commitHydratedSuspenseInstance,Xe=e.clearSuspenseBoundary,Ke=e.clearSuspenseBoundaryFromContainer,Ze=e.shouldDeleteUnhydratedTailInstances,Je=e.didNotMatchHydratedContainerTextInstance,et=e.didNotMatchHydratedTextInstance;function tt(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var nt=!1;function rt(e,t){if(!e||nt)return"";nt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s]){var l="\n"+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{nt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tt(e):""}var it=Object.prototype.hasOwnProperty,at=[],ot=-1;function st(e){return{current:e}}function lt(e){0>ot||(e.current=at[ot],at[ot]=null,ot--)}function ut(e,t){ot++,at[ot]=e.current,e.current=t}var ct={},dt=st(ct),ht=st(!1),ft=ct;function pt(e,t){var n=e.type.contextTypes;if(!n)return ct;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function gt(e){return null!=e.childContextTypes}function mt(){lt(ht),lt(dt)}function yt(e,t,n){if(dt.current!==ct)throw Error(a(168));ut(dt,t),ut(ht,n)}function vt(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,T(e)||"Unknown",o));return i({},n,r)}function bt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ct,ft=dt.current,ut(dt,e),ut(ht,ht.current),!0}function xt(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=vt(e,t,ft),r.__reactInternalMemoizedMergedChildContext=e,lt(ht),lt(dt),ut(dt,e)):lt(ht),ut(ht,n)}var St=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(wt(e)/_t|0)|0},wt=Math.log,_t=Math.LN2,Tt=64,At=4194304;function kt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ct(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~i;0!==s?r=kt(s):0!=(a&=o)&&(r=kt(a))}else 0!=(o=n&~i)?r=kt(o):0!==a&&(r=kt(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-St(t)),r|=e[n],t&=~i;return r}function Et(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bt(){var e=Tt;return 0==(4194240&(Tt<<=1))&&(Tt=64),e}function Rt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-St(t)]=n}function Lt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-St(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ot=0;function It(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Nt=r.unstable_scheduleCallback,Dt=r.unstable_cancelCallback,Ut=r.unstable_shouldYield,zt=r.unstable_requestPaint,Ft=r.unstable_now,jt=r.unstable_ImmediatePriority,Wt=r.unstable_UserBlockingPriority,Ht=r.unstable_NormalPriority,$t=r.unstable_IdlePriority,Vt=null,Gt=null,Yt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},qt=null,Qt=!1,Xt=!1;function Kt(e){null===qt?qt=[e]:qt.push(e)}function Zt(){if(!Xt&&null!==qt){Xt=!0;var e=0,t=Ot;try{var n=qt;for(Ot=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}qt=null,Qt=!1}catch(t){throw null!==qt&&(qt=qt.slice(e+1)),Nt(jt,Zt),t}finally{Ot=t,Xt=!1}}return null}var Jt=[],en=0,tn=null,nn=0,rn=[],an=0,on=null,sn=1,ln="";function un(e,t){Jt[en++]=nn,Jt[en++]=tn,tn=e,nn=t}function cn(e,t,n){rn[an++]=sn,rn[an++]=ln,rn[an++]=on,on=e;var r=sn;e=ln;var i=32-St(r)-1;r&=~(1<<i),n+=1;var a=32-St(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,sn=1<<32-St(t)+i|n<<i|r,ln=a+e}else sn=1<<a|n<<i|r,ln=e}function dn(e){null!==e.return&&(un(e,1),cn(e,1,0))}function hn(e){for(;e===tn;)tn=Jt[--en],Jt[en]=null,nn=Jt[--en],Jt[en]=null;for(;e===on;)on=rn[--an],rn[an]=null,ln=rn[--an],rn[an]=null,sn=rn[--an],rn[an]=null}var fn=null,pn=null,gn=!1,mn=!1,yn=null;function vn(e,t){var n=as(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function bn(e,t){switch(e.tag){case 5:return null!==(t=Le(t,e.type,e.pendingProps))&&(e.stateNode=t,fn=e,pn=je(t),!0);case 6:return null!==(t=Oe(t,e.pendingProps))&&(e.stateNode=t,fn=e,pn=null,!0);case 13:if(null!==(t=Ie(t))){var n=null!==on?{id:sn,overflow:ln}:null;return e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=as(18,null,null,0)).stateNode=t,n.return=e,e.child=n,fn=e,pn=null,!0}return!1;default:return!1}}function xn(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Sn(e){if(gn){var t=pn;if(t){var n=t;if(!bn(e,t)){if(xn(e))throw Error(a(418));t=Fe(n);var r=fn;t&&bn(e,t)?vn(r,n):(e.flags=-4097&e.flags|2,gn=!1,fn=e)}}else{if(xn(e))throw Error(a(418));e.flags=-4097&e.flags|2,gn=!1,fn=e}}}function wn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;fn=e}function _n(e){if(!X||e!==fn)return!1;if(!gn)return wn(e),gn=!0,!1;if(3!==e.tag&&(5!==e.tag||Ze(e.type)&&!W(e.type,e.memoizedProps))){var t=pn;if(t){if(xn(e))throw Tn(),Error(a(418));for(;t;)vn(e,t),t=Fe(t)}}if(wn(e),13===e.tag){if(!X)throw Error(a(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));pn=Ye(e)}else pn=fn?Fe(e.stateNode):null;return!0}function Tn(){for(var e=pn;e;)e=Fe(e)}function An(){X&&(pn=fn=null,mn=gn=!1)}function kn(e){null===yn?yn=[e]:yn.push(e)}var Cn=o.ReactCurrentBatchConfig;function En(e,t){if(Yt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!it.call(t,i)||!Yt(e[i],t[i]))return!1}return!0}function Pn(e){switch(e.tag){case 5:return tt(e.type);case 16:return tt("Lazy");case 13:return tt("Suspense");case 19:return tt("SuspenseList");case 0:case 2:case 15:return rt(e.type,!1);case 11:return rt(e.type.render,!1);case 1:return rt(e.type,!0);default:return""}}function Bn(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Rn(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mn(e){return(0,e._init)(e._payload)}function Ln(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=ss(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function d(e,t,n,r){return null===t||6!==t.tag?((t=ds(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n,r){var a=n.type;return a===c?p(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===b&&Mn(a)===t.type)?((r=i(t,n.props)).ref=Bn(e,t,n),r.return=e,r):((r=ls(n.type,n.key,n.props,null,e.mode,r)).ref=Bn(e,t,n),r.return=e,r)}function f(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=hs(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function p(e,t,n,r,a){return null===t||7!==t.tag?((t=us(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function g(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ds(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case s:return(n=ls(t.type,t.key,t.props,null,e.mode,n)).ref=Bn(e,null,t),n.return=e,n;case u:return(t=hs(t,e.mode,n)).return=e,t;case b:return g(e,(0,t._init)(t._payload),n)}if(M(t)||w(t))return(t=us(t,e.mode,n,null)).return=e,t;Rn(e,t)}return null}function m(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:d(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case s:return n.key===i?h(e,t,n,r):null;case u:return n.key===i?f(e,t,n,r):null;case b:return m(e,t,(i=n._init)(n._payload),r)}if(M(n)||w(n))return null!==i?null:p(e,t,n,r,null);Rn(e,n)}return null}function y(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return d(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case s:return h(t,e=e.get(null===r.key?n:r.key)||null,r,i);case u:return f(t,e=e.get(null===r.key?n:r.key)||null,r,i);case b:return y(e,t,n,(0,r._init)(r._payload),i)}if(M(r)||w(r))return p(t,e=e.get(n)||null,r,i,null);Rn(t,r)}return null}function v(i,a,s,l){for(var u=null,c=null,d=a,h=a=0,f=null;null!==d&&h<s.length;h++){d.index>h?(f=d,d=null):f=d.sibling;var p=m(i,d,s[h],l);if(null===p){null===d&&(d=f);break}e&&d&&null===p.alternate&&t(i,d),a=o(p,a,h),null===c?u=p:c.sibling=p,c=p,d=f}if(h===s.length)return n(i,d),gn&&un(i,h),u;if(null===d){for(;h<s.length;h++)null!==(d=g(i,s[h],l))&&(a=o(d,a,h),null===c?u=d:c.sibling=d,c=d);return gn&&un(i,h),u}for(d=r(i,d);h<s.length;h++)null!==(f=y(d,i,h,s[h],l))&&(e&&null!==f.alternate&&d.delete(null===f.key?h:f.key),a=o(f,a,h),null===c?u=f:c.sibling=f,c=f);return e&&d.forEach((function(e){return t(i,e)})),gn&&un(i,h),u}function x(i,s,l,u){var c=w(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,h=s,f=s=0,p=null,v=l.next();null!==h&&!v.done;f++,v=l.next()){h.index>f?(p=h,h=null):p=h.sibling;var b=m(i,h,v.value,u);if(null===b){null===h&&(h=p);break}e&&h&&null===b.alternate&&t(i,h),s=o(b,s,f),null===d?c=b:d.sibling=b,d=b,h=p}if(v.done)return n(i,h),gn&&un(i,f),c;if(null===h){for(;!v.done;f++,v=l.next())null!==(v=g(i,v.value,u))&&(s=o(v,s,f),null===d?c=v:d.sibling=v,d=v);return gn&&un(i,f),c}for(h=r(i,h);!v.done;f++,v=l.next())null!==(v=y(h,i,f,v.value,u))&&(e&&null!==v.alternate&&h.delete(null===v.key?f:v.key),s=o(v,s,f),null===d?c=v:d.sibling=v,d=v);return e&&h.forEach((function(e){return t(i,e)})),gn&&un(i,f),c}return function e(r,a,o,d){if("object"==typeof o&&null!==o&&o.type===c&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case s:e:{for(var h=o.key,f=a;null!==f;){if(f.key===h){if((h=o.type)===c){if(7===f.tag){n(r,f.sibling),(a=i(f,o.props.children)).return=r,r=a;break e}}else if(f.elementType===h||"object"==typeof h&&null!==h&&h.$$typeof===b&&Mn(h)===f.type){n(r,f.sibling),(a=i(f,o.props)).ref=Bn(r,f,o),a.return=r,r=a;break e}n(r,f);break}t(r,f),f=f.sibling}o.type===c?((a=us(o.props.children,r.mode,d,o.key)).return=r,r=a):((d=ls(o.type,o.key,o.props,null,r.mode,d)).ref=Bn(r,a,o),d.return=r,r=d)}return l(r);case u:e:{for(f=o.key;null!==a;){if(a.key===f){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(r,a.sibling),(a=i(a,o.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=hs(o,r.mode,d)).return=r,r=a}return l(r);case b:return e(r,a,(f=o._init)(o._payload),d)}if(M(o))return v(r,a,o,d);if(w(o))return x(r,a,o,d);Rn(r,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,o)).return=r,r=a):(n(r,a),(a=ds(o,r.mode,d)).return=r,r=a),l(r)):n(r,a)}}var On=Ln(!0),In=Ln(!1),Nn=st(null),Dn=null,Un=null,zn=null;function Fn(){zn=Un=Dn=null}function jn(e,t,n){Y?(ut(Nn,t._currentValue),t._currentValue=n):(ut(Nn,t._currentValue2),t._currentValue2=n)}function Wn(e){var t=Nn.current;lt(Nn),Y?e._currentValue=t:e._currentValue2=t}function Hn(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function $n(e,t){Dn=e,zn=Un=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Mi=!0),e.firstContext=null)}function Vn(e){var t=Y?e._currentValue:e._currentValue2;if(zn!==e)if(e={context:e,memoizedValue:t,next:null},null===Un){if(null===Dn)throw Error(a(308));Un=e,Dn.dependencies={lanes:0,firstContext:e}}else Un=Un.next=e;return t}var Gn=null;function Yn(e){null===Gn?Gn=[e]:Gn.push(e)}function qn(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Yn(t)):(n.next=i.next,i.next=n),t.interleaved=n,Qn(e,r)}function Qn(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Xn=!1;function Kn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zn(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function er(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&eo)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Qn(e,n)}return null===(i=r.interleaved)?(t.next=t,Yn(r)):(t.next=i.next,i.next=t),r.interleaved=t,Qn(e,n)}function tr(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Lt(e,n)}}function nr(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function rr(e,t,n,r){var a=e.updateQueue;Xn=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?o=c:s.next=c,s=u;var d=e.alternate;null!==d&&(l=(d=d.updateQueue).lastBaseUpdate)!==s&&(null===l?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u)}if(null!==o){var h=a.baseState;for(s=0,d=c=u=null,l=o;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==d&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(g=m.payload)){h=g.call(p,h,f);break e}h=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(f="function"==typeof(g=m.payload)?g.call(p,h,f):g))break e;h=i({},h,f);break e;case 2:Xn=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=a.effects)?a.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===d?(c=d=p,u=h):d=d.next=p,s|=f;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(f=l).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}if(null===d&&(u=h),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=d,null!==(t=a.shared.interleaved)){a=t;do{s|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);lo|=s,e.lanes=s,e.memoizedState=h}}function ir(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var ar={},or=st(ar),sr=st(ar),lr=st(ar);function ur(e){if(e===ar)throw Error(a(174));return e}function cr(e,t){ut(lr,t),ut(sr,e),ut(or,ar),e=O(t),lt(or),ut(or,e)}function dr(){lt(or),lt(sr),lt(lr)}function hr(e){var t=ur(lr.current),n=ur(or.current);n!==(t=I(n,e.type,t))&&(ut(sr,e),ut(or,t))}function fr(e){sr.current===e&&(lt(or),lt(sr))}var pr=st(0);function gr(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ne(n)||De(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mr=[];function yr(){for(var e=0;e<mr.length;e++){var t=mr[e];Y?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}mr.length=0}var vr=o.ReactCurrentDispatcher,br=o.ReactCurrentBatchConfig,xr=0,Sr=null,wr=null,_r=null,Tr=!1,Ar=!1,kr=0,Cr=0;function Er(){throw Error(a(321))}function Pr(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Yt(e[n],t[n]))return!1;return!0}function Br(e,t,n,r,i,o){if(xr=o,Sr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,vr.current=null===e||null===e.memoizedState?fi:pi,e=n(r,i),Ar){o=0;do{if(Ar=!1,kr=0,25<=o)throw Error(a(301));o+=1,_r=wr=null,t.updateQueue=null,vr.current=gi,e=n(r,i)}while(Ar)}if(vr.current=hi,t=null!==wr&&null!==wr.next,xr=0,_r=wr=Sr=null,Tr=!1,t)throw Error(a(300));return e}function Rr(){var e=0!==kr;return kr=0,e}function Mr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===_r?Sr.memoizedState=_r=e:_r=_r.next=e,_r}function Lr(){if(null===wr){var e=Sr.alternate;e=null!==e?e.memoizedState:null}else e=wr.next;var t=null===_r?Sr.memoizedState:_r.next;if(null!==t)_r=t,wr=e;else{if(null===e)throw Error(a(310));e={memoizedState:(wr=e).memoizedState,baseState:wr.baseState,baseQueue:wr.baseQueue,queue:wr.queue,next:null},null===_r?Sr.memoizedState=_r=e:_r=_r.next=e}return _r}function Or(e,t){return"function"==typeof t?t(e):t}function Ir(e){var t=Lr(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=wr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var l=s=null,u=null,c=o;do{var d=c.lane;if((xr&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,s=r):u=u.next=h,Sr.lanes|=d,lo|=d}c=c.next}while(null!==c&&c!==o);null===u?s=r:u.next=l,Yt(r,t.memoizedState)||(Mi=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,Sr.lanes|=o,lo|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Nr(e){var t=Lr(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Yt(o,t.memoizedState)||(Mi=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Dr(){}function Ur(e,t){var n=Sr,r=Lr(),i=t(),o=!Yt(r.memoizedState,i);if(o&&(r.memoizedState=i,Mi=!0),r=r.queue,Xr(jr.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==_r&&1&_r.memoizedState.tag){if(n.flags|=2048,Vr(9,Fr.bind(null,n,r,i,t),void 0,null),null===to)throw Error(a(349));0!=(30&xr)||zr(n,t,i)}return i}function zr(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Sr.updateQueue)?(t={lastEffect:null,stores:null},Sr.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Fr(e,t,n,r){t.value=n,t.getSnapshot=r,Wr(t)&&Hr(e)}function jr(e,t,n){return n((function(){Wr(t)&&Hr(e)}))}function Wr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yt(e,n)}catch(e){return!0}}function Hr(e){var t=Qn(e,1);null!==t&&Ro(t,e,1,-1)}function $r(e){var t=Mr();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Or,lastRenderedState:e},t.queue=e,e=e.dispatch=li.bind(null,Sr,e),[t.memoizedState,e]}function Vr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Sr.updateQueue)?(t={lastEffect:null,stores:null},Sr.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Gr(){return Lr().memoizedState}function Yr(e,t,n,r){var i=Mr();Sr.flags|=e,i.memoizedState=Vr(1|t,n,void 0,void 0===r?null:r)}function qr(e,t,n,r){var i=Lr();r=void 0===r?null:r;var a=void 0;if(null!==wr){var o=wr.memoizedState;if(a=o.destroy,null!==r&&Pr(r,o.deps))return void(i.memoizedState=Vr(t,n,a,r))}Sr.flags|=e,i.memoizedState=Vr(1|t,n,a,r)}function Qr(e,t){return Yr(8390656,8,e,t)}function Xr(e,t){return qr(2048,8,e,t)}function Kr(e,t){return qr(4,2,e,t)}function Zr(e,t){return qr(4,4,e,t)}function Jr(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ei(e,t,n){return n=null!=n?n.concat([e]):null,qr(4,4,Jr.bind(null,t,e),n)}function ti(){}function ni(e,t){var n=Lr();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Pr(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ri(e,t){var n=Lr();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Pr(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ii(e,t,n){return 0==(21&xr)?(e.baseState&&(e.baseState=!1,Mi=!0),e.memoizedState=n):(Yt(n,t)||(n=Bt(),Sr.lanes|=n,lo|=n,e.baseState=!0),t)}function ai(e,t){var n=Ot;Ot=0!==n&&4>n?n:4,e(!0);var r=br.transition;br.transition={};try{e(!1),t()}finally{Ot=n,br.transition=r}}function oi(){return Lr().memoizedState}function si(e,t,n){var r=Bo(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ui(e)?ci(t,n):null!==(n=qn(e,t,n,r))&&(Ro(n,e,r,Po()),di(n,t,r))}function li(e,t,n){var r=Bo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ui(e))ci(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Yt(s,o)){var l=t.interleaved;return null===l?(i.next=i,Yn(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=qn(e,t,i,r))&&(Ro(n,e,r,i=Po()),di(n,t,r))}}function ui(e){var t=e.alternate;return e===Sr||null!==t&&t===Sr}function ci(e,t){Ar=Tr=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function di(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Lt(e,n)}}var hi={readContext:Vn,useCallback:Er,useContext:Er,useEffect:Er,useImperativeHandle:Er,useInsertionEffect:Er,useLayoutEffect:Er,useMemo:Er,useReducer:Er,useRef:Er,useState:Er,useDebugValue:Er,useDeferredValue:Er,useTransition:Er,useMutableSource:Er,useSyncExternalStore:Er,useId:Er,unstable_isNewReconciler:!1},fi={readContext:Vn,useCallback:function(e,t){return Mr().memoizedState=[e,void 0===t?null:t],e},useContext:Vn,useEffect:Qr,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Yr(4194308,4,Jr.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yr(4,2,e,t)},useMemo:function(e,t){var n=Mr();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mr();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=si.bind(null,Sr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Mr().memoizedState=e},useState:$r,useDebugValue:ti,useDeferredValue:function(e){return Mr().memoizedState=e},useTransition:function(){var e=$r(!1),t=e[0];return e=ai.bind(null,e[1]),Mr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Sr,i=Mr();if(gn){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===to)throw Error(a(349));0!=(30&xr)||zr(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Qr(jr.bind(null,r,o,e),[e]),r.flags|=2048,Vr(9,Fr.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Mr(),t=to.identifierPrefix;if(gn){var n=ln;t=":"+t+"R"+(n=(sn&~(1<<32-St(sn)-1)).toString(32)+n),0<(n=kr++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Cr++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},pi={readContext:Vn,useCallback:ni,useContext:Vn,useEffect:Xr,useImperativeHandle:ei,useInsertionEffect:Kr,useLayoutEffect:Zr,useMemo:ri,useReducer:Ir,useRef:Gr,useState:function(){return Ir(Or)},useDebugValue:ti,useDeferredValue:function(e){return ii(Lr(),wr.memoizedState,e)},useTransition:function(){return[Ir(Or)[0],Lr().memoizedState]},useMutableSource:Dr,useSyncExternalStore:Ur,useId:oi,unstable_isNewReconciler:!1},gi={readContext:Vn,useCallback:ni,useContext:Vn,useEffect:Xr,useImperativeHandle:ei,useInsertionEffect:Kr,useLayoutEffect:Zr,useMemo:ri,useReducer:Nr,useRef:Gr,useState:function(){return Nr(Or)},useDebugValue:ti,useDeferredValue:function(e){var t=Lr();return null===wr?t.memoizedState=e:ii(t,wr.memoizedState,e)},useTransition:function(){return[Nr(Or)[0],Lr().memoizedState]},useMutableSource:Dr,useSyncExternalStore:Ur,useId:oi,unstable_isNewReconciler:!1};function mi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function yi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var vi={isMounted:function(e){return!!(e=e._reactInternals)&&A(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Po(),i=Bo(e),a=Jn(r,i);a.payload=t,null!=n&&(a.callback=n),null!==(t=er(e,a,i))&&(Ro(t,e,i,r),tr(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Po(),i=Bo(e),a=Jn(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=er(e,a,i))&&(Ro(t,e,i,r),tr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Po(),r=Bo(e),i=Jn(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=er(e,i,r))&&(Ro(t,e,r,n),tr(t,e,r))}};function bi(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&En(n,r)&&En(i,a))}function xi(e,t,n){var r=!1,i=ct,a=t.contextType;return"object"==typeof a&&null!==a?a=Vn(a):(i=gt(t)?ft:dt.current,a=(r=null!=(r=t.contextTypes))?pt(e,i):ct),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Si(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vi.enqueueReplaceState(t,t.state,null)}function wi(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Kn(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=Vn(a):(a=gt(t)?ft:dt.current,i.context=pt(e,a)),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(yi(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&vi.enqueueReplaceState(i,i.state,null),rr(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function _i(e,t){try{var n="",r=t;do{n+=Pn(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function Ti(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}var Ai="function"==typeof WeakMap?WeakMap:Map;function ki(e,t,n){(n=Jn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bo||(bo=!0,xo=r)},n}function Ci(e,t,n){(n=Jn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===So?So=new Set([this]):So.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Ei(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Ai;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Jo.bind(null,e,t,n),t.then(e,e))}function Pi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Bi(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Jn(-1,1)).tag=2,er(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var Ri=o.ReactCurrentOwner,Mi=!1;function Li(e,t,n,r){t.child=null===e?In(t,null,n,r):On(t,e.child,n,r)}function Oi(e,t,n,r,i){n=n.render;var a=t.ref;return $n(t,i),r=Br(e,t,n,r,a,i),n=Rr(),null===e||Mi?(gn&&n&&dn(t),t.flags|=1,Li(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ra(e,t,i))}function Ii(e,t,n,r,i){if(null===e){var a=n.type;return"function"!=typeof a||os(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ls(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ni(e,t,a,r,i))}if(a=e.child,0==(e.lanes&i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:En)(o,r)&&e.ref===t.ref)return ra(e,t,i)}return t.flags|=1,(e=ss(a,r)).ref=t.ref,e.return=t,t.child=e}function Ni(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(En(a,r)&&e.ref===t.ref){if(Mi=!1,t.pendingProps=r=a,0==(e.lanes&i))return t.lanes=e.lanes,ra(e,t,i);0!=(131072&e.flags)&&(Mi=!0)}}return zi(e,t,n,r,i)}function Di(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut(ao,io),io|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ut(ao,io),io|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,ut(ao,io),io|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,ut(ao,io),io|=r;return Li(e,t,i,n),t.child}function Ui(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zi(e,t,n,r,i){var a=gt(n)?ft:dt.current;return a=pt(t,a),$n(t,i),n=Br(e,t,n,r,a,i),r=Rr(),null===e||Mi?(gn&&r&&dn(t),t.flags|=1,Li(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ra(e,t,i))}function Fi(e,t,n,r,i){if(gt(n)){var a=!0;bt(t)}else a=!1;if($n(t,i),null===t.stateNode)na(e,t),xi(t,n,r),wi(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;u="object"==typeof u&&null!==u?Vn(u):pt(t,u=gt(n)?ft:dt.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==u)&&Si(t,o,r,u),Xn=!1;var h=t.memoizedState;o.state=h,rr(t,r,o,i),l=t.memoizedState,s!==r||h!==l||ht.current||Xn?("function"==typeof c&&(yi(t,n,c,r),l=t.memoizedState),(s=Xn||bi(t,n,s,r,h,l,u))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Zn(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:mi(t.type,s),o.props=u,d=t.pendingProps,h=o.context,l="object"==typeof(l=n.contextType)&&null!==l?Vn(l):pt(t,l=gt(n)?ft:dt.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==d||h!==l)&&Si(t,o,r,l),Xn=!1,h=t.memoizedState,o.state=h,rr(t,r,o,i);var p=t.memoizedState;s!==d||h!==p||ht.current||Xn?("function"==typeof f&&(yi(t,n,f,r),p=t.memoizedState),(u=Xn||bi(t,n,u,r,h,p,l)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return ji(e,t,n,r,a,i)}function ji(e,t,n,r,i,a){Ui(e,t);var o=0!=(128&t.flags);if(!r&&!o)return i&&xt(t,n,!1),ra(e,t,a);r=t.stateNode,Ri.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=On(t,e.child,null,a),t.child=On(t,null,s,a)):Li(e,t,s,a),t.memoizedState=r.state,i&&xt(t,n,!0),t.child}function Wi(e){var t=e.stateNode;t.pendingContext?yt(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yt(0,t.context,!1),cr(e,t.containerInfo)}function Hi(e,t,n,r,i){return An(),kn(i),t.flags|=256,Li(e,t,n,r),t.child}var $i,Vi,Gi,Yi,qi={dehydrated:null,treeContext:null,retryLane:0};function Qi(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xi(e,t,n){var r,i=t.pendingProps,o=pr.current,s=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),ut(pr,1&o),null===e)return Sn(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:De(e)?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=cs(l,i,0,null),e=us(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Qi(n),t.memoizedState=qi,e):Ki(t,l));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,s){if(n)return 256&t.flags?(t.flags&=-257,Zi(e,t,s,r=Ti(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=cs({mode:"visible",children:r.children},i,0,null),(o=us(o,i,s,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!=(1&t.mode)&&On(t,e.child,null,s),t.child.memoizedState=Qi(s),t.memoizedState=qi,o);if(0==(1&t.mode))return Zi(e,t,s,null);if(De(i))return r=Ue(i).digest,Zi(e,t,s,r=Ti(o=Error(a(419)),r,void 0));if(n=0!=(s&e.childLanes),Mi||n){if(null!==(r=to)){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|s))?0:i)&&i!==o.retryLane&&(o.retryLane=i,Qn(e,i),Ro(r,e,i,-1))}return Ho(),Zi(e,t,s,r=Ti(Error(a(421))))}return Ne(i)?(t.flags|=128,t.child=e.child,t=ts.bind(null,e),ze(i,t),null):(e=o.treeContext,X&&(pn=He(i),fn=t,gn=!0,yn=null,mn=!1,null!==e&&(rn[an++]=sn,rn[an++]=ln,rn[an++]=on,sn=e.id,ln=e.overflow,on=t)),(t=Ki(t,r.children)).flags|=4096,t)}(e,t,l,i,r,o,n);if(s){s=i.fallback,l=t.mode,r=(o=e.child).sibling;var u={mode:"hidden",children:i.children};return 0==(1&l)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=ss(o,u)).subtreeFlags=14680064&o.subtreeFlags,null!==r?s=ss(r,s):(s=us(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Qi(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=qi,i}return e=(s=e.child).sibling,i=ss(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Ki(e,t){return(t=cs({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Zi(e,t,n,r){return null!==r&&kn(r),On(t,e.child,null,n),(e=Ki(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ji(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Hn(e.return,t,n)}function ea(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function ta(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Li(e,t,r.children,n),0!=(2&(r=pr.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ji(e,n,t);else if(19===e.tag)Ji(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ut(pr,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===gr(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ea(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===gr(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ea(t,!0,n,null,a);break;case"together":ea(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function na(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ra(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),lo|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=ss(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ss(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ia(e){e.flags|=4}function aa(e,t){if(null!==e&&e.child===t.child)return!0;if(0!=(16&t.flags))return!1;for(e=t.child;null!==e;){if(0!=(12854&e.flags)||0!=(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}if(q)$i=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)z(e,n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Vi=function(){},Gi=function(e,t,n,r,i){if((e=e.memoizedProps)!==r){var a=t.stateNode,o=ur(or.current);n=j(a,n,e,r,i,o),(t.updateQueue=n)&&ia(t)}},Yi=function(e,t,n,r){n!==r&&ia(t)};else if(Q){$i=function(e,t,n,r){for(var i=t.child;null!==i;){if(5===i.tag){var a=i.stateNode;n&&r&&(a=Re(a,i.type,i.memoizedProps,i)),z(e,a)}else if(6===i.tag)a=i.stateNode,n&&r&&(a=Me(a,i.memoizedProps,i)),z(e,a);else if(4!==i.tag)if(22===i.tag&&null!==i.memoizedState)null!==(a=i.child)&&(a.return=i),$i(e,i,!0,!0);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};var oa=function(e,t,n,r){for(var i=t.child;null!==i;){if(5===i.tag){var a=i.stateNode;n&&r&&(a=Re(a,i.type,i.memoizedProps,i)),Ee(e,a)}else if(6===i.tag)a=i.stateNode,n&&r&&(a=Me(a,i.memoizedProps,i)),Ee(e,a);else if(4!==i.tag)if(22===i.tag&&null!==i.memoizedState)null!==(a=i.child)&&(a.return=i),oa(e,i,!0,!0);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};Vi=function(e,t){var n=t.stateNode;if(!aa(e,t)){e=n.containerInfo;var r=Ce(e);oa(r,t,!1,!1),n.pendingChildren=r,ia(t),Pe(e,r)}},Gi=function(e,t,n,r,i){var a=e.stateNode,o=e.memoizedProps;if((e=aa(e,t))&&o===r)t.stateNode=a;else{var s=t.stateNode,l=ur(or.current),u=null;o!==r&&(u=j(s,n,o,r,i,l)),e&&null===u?t.stateNode=a:(a=ke(a,u,n,o,r,t,e,s),F(a,n,r,i,l)&&ia(t),t.stateNode=a,e?ia(t):$i(a,t,!1,!1))}},Yi=function(e,t,n,r){n!==r?(e=ur(lr.current),n=ur(or.current),t.stateNode=H(r,e,n,t),ia(t)):t.stateNode=e.stateNode}}else Vi=function(){},Gi=function(){},Yi=function(){};function sa(e,t){if(!gn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function la(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ua(e,t,n){var r=t.pendingProps;switch(hn(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return la(t),null;case 1:case 17:return gt(t.type)&&mt(),la(t),null;case 3:return n=t.stateNode,dr(),lt(ht),lt(dt),yr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(_n(t)?ia(t):null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==yn&&(Io(yn),yn=null))),Vi(e,t),la(t),null;case 5:fr(t),n=ur(lr.current);var i=t.type;if(null!==e&&null!=t.stateNode)Gi(e,t,i,r,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return la(t),null}if(e=ur(or.current),_n(t)){if(!X)throw Error(a(175));e=$e(t.stateNode,t.type,t.memoizedProps,n,e,t,!mn),t.updateQueue=e,null!==e&&ia(t)}else{var o=U(i,r,n,e,t);$i(o,t,!1,!1),t.stateNode=o,F(o,i,r,n,e)&&ia(t)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return la(t),null;case 6:if(e&&null!=t.stateNode)Yi(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(e=ur(lr.current),n=ur(or.current),_n(t)){if(!X)throw Error(a(176));if(e=t.stateNode,n=t.memoizedProps,(r=Ve(e,n,t,!mn))&&null!==(i=fn))switch(i.tag){case 3:Je(i.stateNode.containerInfo,e,n,0!=(1&i.mode));break;case 5:et(i.type,i.memoizedProps,i.stateNode,e,n,0!=(1&i.mode))}r&&ia(t)}else t.stateNode=H(r,e,n,t)}return la(t),null;case 13:if(lt(pr),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(gn&&null!==pn&&0!=(1&t.mode)&&0==(128&t.flags))Tn(),An(),t.flags|=98560,i=!1;else if(i=_n(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!X)throw Error(a(344));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));Ge(i,t)}else An(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;la(t),i=!1}else null!==yn&&(Io(yn),yn=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((n=null!==r)!=(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&pr.current)?0===oo&&(oo=3):Ho())),null!==t.updateQueue&&(t.flags|=4),la(t),null);case 4:return dr(),Vi(e,t),null===e&&Z(t.stateNode.containerInfo),la(t),null;case 10:return Wn(t.type._context),la(t),null;case 19:if(lt(pr),null===(i=t.memoizedState))return la(t),null;if(r=0!=(128&t.flags),null===(o=i.rendering))if(r)sa(i,!1);else{if(0!==oo||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(o=gr(e))){for(t.flags|=128,sa(i,!1),null!==(e=o.updateQueue)&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=n,n=t.child;null!==n;)i=e,(r=n).flags&=14680066,null===(o=r.alternate)?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,i=o.dependencies,r.dependencies=null===i?null:{lanes:i.lanes,firstContext:i.firstContext}),n=n.sibling;return ut(pr,1&pr.current|2),t.child}e=e.sibling}null!==i.tail&&Ft()>go&&(t.flags|=128,r=!0,sa(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=gr(o))){if(t.flags|=128,r=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),sa(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!gn)return la(t),null}else 2*Ft()-i.renderingStartTime>go&&1073741824!==n&&(t.flags|=128,r=!0,sa(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=i.last)?e.sibling=o:t.child=o,i.last=o)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ft(),t.sibling=null,e=pr.current,ut(pr,r?1&e|2:1&e),t):(la(t),null);case 22:case 23:return zo(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&io)&&(la(t),q&&6&t.subtreeFlags&&(t.flags|=8192)):la(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function ca(e,t){switch(hn(t),t.tag){case 1:return gt(t.type)&&mt(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return dr(),lt(ht),lt(dt),yr(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return fr(t),null;case 13:if(lt(pr),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));An()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return lt(pr),null;case 4:return dr(),null;case 10:return Wn(t.type._context),null;case 22:case 23:return zo(),null;default:return null}}var da=!1,ha=!1,fa="function"==typeof WeakSet?WeakSet:Set,pa=null;function ga(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Zo(e,t,n)}else n.current=null}function ma(e,t,n){try{n()}catch(n){Zo(e,t,n)}}var ya=!1;function va(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&ma(t,n,a)}i=i.next}while(i!==r)}}function ba(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function xa(e){var t=e.ref;if(null!==t){var n=e.stateNode;e=5===e.tag?L(n):n,"function"==typeof t?t(e):t.current=e}}function Sa(e){var t=e.alternate;null!==t&&(e.alternate=null,Sa(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&ee(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wa(e){return 5===e.tag||3===e.tag||4===e.tag}function _a(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||wa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ta(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?ye(n,e,t):he(n,e);else if(4!==r&&null!==(e=e.child))for(Ta(e,t,n),e=e.sibling;null!==e;)Ta(e,t,n),e=e.sibling}function Aa(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?me(n,e,t):de(n,e);else if(4!==r&&null!==(e=e.child))for(Aa(e,t,n),e=e.sibling;null!==e;)Aa(e,t,n),e=e.sibling}var ka=null,Ca=!1;function Ea(e,t,n){for(n=n.child;null!==n;)Pa(e,t,n),n=n.sibling}function Pa(e,t,n){if(Gt&&"function"==typeof Gt.onCommitFiberUnmount)try{Gt.onCommitFiberUnmount(Vt,n)}catch(e){}switch(n.tag){case 5:ha||ga(n,t);case 6:if(q){var r=ka,i=Ca;ka=null,Ea(e,t,n),Ca=i,null!==(ka=r)&&(Ca?be(ka,n.stateNode):ve(ka,n.stateNode))}else Ea(e,t,n);break;case 18:q&&null!==ka&&(Ca?Ke(ka,n.stateNode):Xe(ka,n.stateNode));break;case 4:q?(r=ka,i=Ca,ka=n.stateNode.containerInfo,Ca=!0,Ea(e,t,n),ka=r,Ca=i):(Q&&(r=n.stateNode.containerInfo,i=Ce(r),Be(r,i)),Ea(e,t,n));break;case 0:case 11:case 14:case 15:if(!ha&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(0!=(2&a)||0!=(4&a))&&ma(n,t,o),i=i.next}while(i!==r)}Ea(e,t,n);break;case 1:if(!ha&&(ga(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Zo(n,t,e)}Ea(e,t,n);break;case 21:Ea(e,t,n);break;case 22:1&n.mode?(ha=(r=ha)||null!==n.memoizedState,Ea(e,t,n),ha=r):Ea(e,t,n);break;default:Ea(e,t,n)}}function Ba(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fa),t.forEach((function(t){var r=ns.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ra(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t;if(q){var l=s;e:for(;null!==l;){switch(l.tag){case 5:ka=l.stateNode,Ca=!1;break e;case 3:case 4:ka=l.stateNode.containerInfo,Ca=!0;break e}l=l.return}if(null===ka)throw Error(a(160));Pa(o,s,i),ka=null,Ca=!1}else Pa(o,s,i);var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Zo(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Ma(t,e),t=t.sibling}function Ma(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ra(t,e),La(e),4&r){try{va(3,e,e.return),ba(3,e)}catch(t){Zo(e,e.return,t)}try{va(5,e,e.return)}catch(t){Zo(e,e.return,t)}}break;case 1:Ra(t,e),La(e),512&r&&null!==n&&ga(n,n.return);break;case 5:if(Ra(t,e),La(e),512&r&&null!==n&&ga(n,n.return),q){if(32&e.flags){var i=e.stateNode;try{xe(i)}catch(t){Zo(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps;if(n=null!==n?n.memoizedProps:o,r=e.type,t=e.updateQueue,e.updateQueue=null,null!==t)try{ge(i,t,r,n,o,e)}catch(t){Zo(e,e.return,t)}}}break;case 6:if(Ra(t,e),La(e),4&r&&q){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,o=e.memoizedProps,n=null!==n?n.memoizedProps:o;try{fe(i,n,o)}catch(t){Zo(e,e.return,t)}}break;case 3:if(Ra(t,e),La(e),4&r){if(q&&X&&null!==n&&n.memoizedState.isDehydrated)try{qe(t.containerInfo)}catch(t){Zo(e,e.return,t)}if(Q){i=t.containerInfo,o=t.pendingChildren;try{Be(i,o)}catch(t){Zo(e,e.return,t)}}}break;case 4:if(Ra(t,e),La(e),4&r&&Q){i=(o=e.stateNode).containerInfo,o=o.pendingChildren;try{Be(i,o)}catch(t){Zo(e,e.return,t)}}break;case 13:Ra(t,e),La(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(po=Ft())),4&r&&Ba(e);break;case 22:var s=null!==n&&null!==n.memoizedState;if(1&e.mode?(ha=(n=ha)||s,Ra(t,e),ha=n):Ra(t,e),La(e),8192&r){if(n=null!==e.memoizedState,(e.stateNode.isHidden=n)&&!s&&0!=(1&e.mode))for(pa=e,r=e.child;null!==r;){for(t=pa=r;null!==pa;){var l=(s=pa).child;switch(s.tag){case 0:case 11:case 14:case 15:va(4,s,s.return);break;case 1:ga(s,s.return);var u=s.stateNode;if("function"==typeof u.componentWillUnmount){var c=s,d=s.return;try{var h=c;u.props=h.memoizedProps,u.state=h.memoizedState,u.componentWillUnmount()}catch(e){Zo(c,d,e)}}break;case 5:ga(s,s.return);break;case 22:if(null!==s.memoizedState){Da(t);continue}}null!==l?(l.return=s,pa=l):Da(t)}r=r.sibling}if(q)e:if(r=null,q)for(t=e;;){if(5===t.tag){if(null===r){r=t;try{i=t.stateNode,n?Se(i):_e(t.stateNode,t.memoizedProps)}catch(t){Zo(e,e.return,t)}}}else if(6===t.tag){if(null===r)try{o=t.stateNode,n?we(o):Te(o,t.memoizedProps)}catch(t){Zo(e,e.return,t)}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}}break;case 19:Ra(t,e),La(e),4&r&&Ba(e);break;case 21:break;default:Ra(t,e),La(e)}}function La(e){var t=e.flags;if(2&t){try{if(q){e:{for(var n=e.return;null!==n;){if(wa(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(xe(i),r.flags&=-33),Aa(e,_a(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;Ta(e,_a(e),o);break;default:throw Error(a(161))}}}catch(t){Zo(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Oa(e,t,n){pa=e,Ia(e)}function Ia(e,t,n){for(var r=0!=(1&e.mode);null!==pa;){var i=pa,a=i.child;if(22===i.tag&&r){var o=null!==i.memoizedState||da;if(!o){var s=i.alternate,l=null!==s&&null!==s.memoizedState||ha;s=da;var u=ha;if(da=o,(ha=l)&&!u)for(pa=i;null!==pa;)l=(o=pa).child,22===o.tag&&null!==o.memoizedState?Ua(i):null!==l?(l.return=o,pa=l):Ua(i);for(;null!==a;)pa=a,Ia(a),a=a.sibling;pa=i,da=s,ha=u}Na(e)}else 0!=(8772&i.subtreeFlags)&&null!==a?(a.return=i,pa=a):Na(e)}}function Na(e){for(;null!==pa;){var t=pa;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:ha||ba(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!ha)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&ir(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:n=L(t.child.stateNode);break;case 1:n=t.child.stateNode}ir(t,s,n)}break;case 5:var l=t.stateNode;null===n&&4&t.flags&&pe(l,t.type,t.memoizedProps,t);break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(X&&null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Qe(d)}}}break;default:throw Error(a(163))}ha||512&t.flags&&xa(t)}catch(e){Zo(t,t.return,e)}}if(t===e){pa=null;break}if(null!==(n=t.sibling)){n.return=t.return,pa=n;break}pa=t.return}}function Da(e){for(;null!==pa;){var t=pa;if(t===e){pa=null;break}var n=t.sibling;if(null!==n){n.return=t.return,pa=n;break}pa=t.return}}function Ua(e){for(;null!==pa;){var t=pa;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ba(4,t)}catch(e){Zo(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Zo(t,i,e)}}var a=t.return;try{xa(t)}catch(e){Zo(t,a,e)}break;case 5:var o=t.return;try{xa(t)}catch(e){Zo(t,o,e)}}}catch(e){Zo(t,t.return,e)}if(t===e){pa=null;break}var s=t.sibling;if(null!==s){s.return=t.return,pa=s;break}pa=t.return}}var za=0,Fa=1,ja=2,Wa=3,Ha=4;if("function"==typeof Symbol&&Symbol.for){var $a=Symbol.for;za=$a("selector.component"),Fa=$a("selector.has_pseudo_class"),ja=$a("selector.role"),Wa=$a("selector.test_id"),Ha=$a("selector.text")}function Va(e){var t=K(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(a(364));return t}if(null===(e=ie(e)))throw Error(a(362));return e.stateNode.current}function Ga(e,t){switch(t.$$typeof){case za:if(e.type===t.value)return!0;break;case Fa:e:{t=t.value,e=[e,0];for(var n=0;n<e.length;){var r=e[n++],i=e[n++],o=t[i];if(5!==r.tag||!se(r)){for(;null!=o&&Ga(r,o);)o=t[++i];if(i===t.length){t=!0;break e}for(r=r.child;null!==r;)e.push(r,i),r=r.sibling}}t=!1}return t;case ja:if(5===e.tag&&le(e.stateNode,t.value))return!0;break;case Ha:if((5===e.tag||6===e.tag)&&null!==(e=oe(e))&&0<=e.indexOf(t.value))return!0;break;case Wa:if(5===e.tag&&"string"==typeof(e=e.memoizedProps["data-testname"])&&e.toLowerCase()===t.value.toLowerCase())return!0;break;default:throw Error(a(365))}return!1}function Ya(e){switch(e.$$typeof){case za:return"<"+(_(e.value)||"Unknown")+">";case Fa:return":has("+(Ya(e)||"")+")";case ja:return'[role="'+e.value+'"]';case Ha:return'"'+e.value+'"';case Wa:return'[data-testname="'+e.value+'"]';default:throw Error(a(365))}}function qa(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var i=e[r++],a=e[r++],o=t[a];if(5!==i.tag||!se(i)){for(;null!=o&&Ga(i,o);)o=t[++a];if(a===t.length)n.push(i);else for(i=i.child;null!==i;)e.push(i,a),i=i.sibling}}return n}function Qa(e,t){if(!re)throw Error(a(363));e=qa(e=Va(e),t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var r=e[n++];if(5===r.tag)se(r)||t.push(r.stateNode);else for(r=r.child;null!==r;)e.push(r),r=r.sibling}return t}var Xa=Math.ceil,Ka=o.ReactCurrentDispatcher,Za=o.ReactCurrentOwner,Ja=o.ReactCurrentBatchConfig,eo=0,to=null,no=null,ro=0,io=0,ao=st(0),oo=0,so=null,lo=0,uo=0,co=0,ho=null,fo=null,po=0,go=1/0,mo=null;function yo(){go=Ft()+500}var vo,bo=!1,xo=null,So=null,wo=!1,_o=null,To=0,Ao=0,ko=null,Co=-1,Eo=0;function Po(){return 0!=(6&eo)?Ft():-1!==Co?Co:Co=Ft()}function Bo(e){return 0==(1&e.mode)?1:0!=(2&eo)&&0!==ro?ro&-ro:null!==Cn.transition?(0===Eo&&(Eo=Bt()),Eo):0!==(e=Ot)?e:J()}function Ro(e,t,n,r){if(50<Ao)throw Ao=0,ko=null,Error(a(185));Mt(e,n,r),0!=(2&eo)&&e===to||(e===to&&(0==(2&eo)&&(uo|=n),4===oo&&No(e,ro)),Mo(e,r),1===n&&0===eo&&0==(1&t.mode)&&(yo(),Qt&&Zt()))}function Mo(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-St(a),s=1<<o,l=i[o];-1===l?0!=(s&n)&&0==(s&r)||(i[o]=Et(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=Ct(e,e===to?ro:0);if(0===r)null!==n&&Dt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Dt(n),1===t)0===e.tag?function(e){Qt=!0,Kt(e)}(Do.bind(null,e)):Kt(Do.bind(null,e)),te?ne((function(){0==(6&eo)&&Zt()})):Nt(jt,Zt),n=null;else{switch(It(r)){case 1:n=jt;break;case 4:n=Wt;break;case 16:default:n=Ht;break;case 536870912:n=$t}n=rs(n,Lo.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Lo(e,t){if(Co=-1,Eo=0,0!=(6&eo))throw Error(a(327));var n=e.callbackNode;if(Xo()&&e.callbackNode!==n)return null;var r=Ct(e,e===to?ro:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=$o(e,r);else{t=r;var i=eo;eo|=2;var o=Wo();for(to===e&&ro===t||(mo=null,yo(),Fo(e,t));;)try{Go();break}catch(t){jo(e,t)}Fn(),Ka.current=o,eo=i,null!==no?t=0:(to=null,ro=0,t=oo)}if(0!==t){if(2===t&&0!==(i=Pt(e))&&(r=i,t=Oo(e,i)),1===t)throw n=so,Fo(e,0),No(e,r),Mo(e,Ft()),n;if(6===t)No(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Yt(a(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=$o(e,r))&&0!==(o=Pt(e))&&(r=o,t=Oo(e,o)),1===t))throw n=so,Fo(e,0),No(e,r),Mo(e,Ft()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Qo(e,fo,mo);break;case 3:if(No(e,r),(130023424&r)===r&&10<(t=po+500-Ft())){if(0!==Ct(e,0))break;if(((i=e.suspendedLanes)&r)!==r){Po(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=$(Qo.bind(null,e,fo,mo),t);break}Qo(e,fo,mo);break;case 4:if(No(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-St(r);o=1<<s,(s=t[s])>i&&(i=s),r&=~o}if(r=i,10<(r=(120>(r=Ft()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xa(r/1960))-r)){e.timeoutHandle=$(Qo.bind(null,e,fo,mo),r);break}Qo(e,fo,mo);break;default:throw Error(a(329))}}}return Mo(e,Ft()),e.callbackNode===n?Lo.bind(null,e):null}function Oo(e,t){var n=ho;return e.current.memoizedState.isDehydrated&&(Fo(e,t).flags|=256),2!==(e=$o(e,t))&&(t=fo,fo=n,null!==t&&Io(t)),e}function Io(e){null===fo?fo=e:fo.push.apply(fo,e)}function No(e,t){for(t&=~co,t&=~uo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-St(t),r=1<<n;e[n]=-1,t&=~r}}function Do(e){if(0!=(6&eo))throw Error(a(327));Xo();var t=Ct(e,0);if(0==(1&t))return Mo(e,Ft()),null;var n=$o(e,t);if(0!==e.tag&&2===n){var r=Pt(e);0!==r&&(t=r,n=Oo(e,r))}if(1===n)throw n=so,Fo(e,0),No(e,t),Mo(e,Ft()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qo(e,fo,mo),Mo(e,Ft()),null}function Uo(e){null!==_o&&0===_o.tag&&0==(6&eo)&&Xo();var t=eo;eo|=1;var n=Ja.transition,r=Ot;try{if(Ja.transition=null,Ot=1,e)return e()}finally{Ot=r,Ja.transition=n,0==(6&(eo=t))&&Zt()}}function zo(){io=ao.current,lt(ao)}function Fo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==G&&(e.timeoutHandle=G,V(n)),null!==no)for(n=no.return;null!==n;){var r=n;switch(hn(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&mt();break;case 3:dr(),lt(ht),lt(dt),yr();break;case 5:fr(r);break;case 4:dr();break;case 13:case 19:lt(pr);break;case 10:Wn(r.type._context);break;case 22:case 23:zo()}n=n.return}if(to=e,no=e=ss(e.current,null),ro=io=t,oo=0,so=null,co=uo=lo=0,fo=ho=null,null!==Gn){for(t=0;t<Gn.length;t++)if(null!==(r=(n=Gn[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=i,r.next=o}n.pending=r}Gn=null}return e}function jo(e,t){for(;;){var n=no;try{if(Fn(),vr.current=hi,Tr){for(var r=Sr.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Tr=!1}if(xr=0,_r=wr=Sr=null,Ar=!1,kr=0,Za.current=null,null===n||null===n.return){oo=1,so=t,no=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=ro,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,h=d.tag;if(0==(1&d.mode)&&(0===h||11===h||15===h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=Pi(s);if(null!==p){p.flags&=-257,Bi(p,s,l,0,t),1&p.mode&&Ei(o,c,t),u=c;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(0==(1&t)){Ei(o,c,t),Ho();break e}u=Error(a(426))}else if(gn&&1&l.mode){var y=Pi(s);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),Bi(y,s,l,0,t),kn(_i(u,l));break e}}o=u=_i(u,l),4!==oo&&(oo=2),null===ho?ho=[o]:ho.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,nr(o,ki(0,u,t));break e;case 1:l=u;var v=o.type,b=o.stateNode;if(0==(128&o.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===So||!So.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,nr(o,Ci(o,l,t));break e}}o=o.return}while(null!==o)}qo(n)}catch(e){t=e,no===n&&null!==n&&(no=n=n.return);continue}break}}function Wo(){var e=Ka.current;return Ka.current=hi,null===e?hi:e}function Ho(){0!==oo&&3!==oo&&2!==oo||(oo=4),null===to||0==(268435455&lo)&&0==(268435455&uo)||No(to,ro)}function $o(e,t){var n=eo;eo|=2;var r=Wo();for(to===e&&ro===t||(mo=null,Fo(e,t));;)try{Vo();break}catch(t){jo(e,t)}if(Fn(),eo=n,Ka.current=r,null!==no)throw Error(a(261));return to=null,ro=0,oo}function Vo(){for(;null!==no;)Yo(no)}function Go(){for(;null!==no&&!Ut();)Yo(no)}function Yo(e){var t=vo(e.alternate,e,io);e.memoizedProps=e.pendingProps,null===t?qo(e):no=t,Za.current=null}function qo(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=ua(n,t,io)))return void(no=n)}else{if(null!==(n=ca(n,t)))return n.flags&=32767,void(no=n);if(null===e)return oo=6,void(no=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(no=t);no=t=e}while(null!==t);0===oo&&(oo=5)}function Qo(e,t,n){var r=Ot,i=Ja.transition;try{Ja.transition=null,Ot=1,function(e,t,n,r){do{Xo()}while(null!==_o);if(0!=(6&eo))throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-St(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}(e,o),e===to&&(no=to=null,ro=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||wo||(wo=!0,rs(Ht,(function(){return Xo(),null}))),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=Ja.transition,Ja.transition=null;var s=Ot;Ot=1;var l=eo;eo|=4,Za.current=null,function(e,t){for(N(e.containerInfo),pa=t;null!==pa;)if(t=(e=pa).child,0!=(1028&e.subtreeFlags)&&null!==t)t.return=e,pa=t;else for(;null!==pa;){e=pa;try{var n=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==n){var r=n.memoizedProps,i=n.memoizedState,o=e.stateNode,s=o.getSnapshotBeforeUpdate(e.elementType===e.type?r:mi(e.type,r),i);o.__reactInternalSnapshotBeforeUpdate=s}break;case 3:q&&Ae(e.stateNode.containerInfo);break;default:throw Error(a(163))}}catch(t){Zo(e,e.return,t)}if(null!==(t=e.sibling)){t.return=e.return,pa=t;break}pa=e.return}n=ya,ya=!1}(e,n),Ma(n,e),D(e.containerInfo),e.current=n,Oa(n),zt(),eo=l,Ot=s,Ja.transition=o}else e.current=n;if(wo&&(wo=!1,_o=e,To=i),0===(o=e.pendingLanes)&&(So=null),function(e){if(Gt&&"function"==typeof Gt.onCommitFiberRoot)try{Gt.onCommitFiberRoot(Vt,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),Mo(e,Ft()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(bo)throw bo=!1,e=xo,xo=null,e;0!=(1&To)&&0!==e.tag&&Xo(),0!=(1&(o=e.pendingLanes))?e===ko?Ao++:(Ao=0,ko=e):Ao=0,Zt()}(e,t,n,r)}finally{Ja.transition=i,Ot=r}return null}function Xo(){if(null!==_o){var e=It(To),t=Ja.transition,n=Ot;try{if(Ja.transition=null,Ot=16>e?16:e,null===_o)var r=!1;else{if(e=_o,_o=null,To=0,0!=(6&eo))throw Error(a(331));var i=eo;for(eo|=4,pa=e.current;null!==pa;){var o=pa,s=o.child;if(0!=(16&pa.flags)){var l=o.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(pa=c;null!==pa;){var d=pa;switch(d.tag){case 0:case 11:case 15:va(8,d,o)}var h=d.child;if(null!==h)h.return=d,pa=h;else for(;null!==pa;){var f=(d=pa).sibling,p=d.return;if(Sa(d),d===c){pa=null;break}if(null!==f){f.return=p,pa=f;break}pa=p}}}var g=o.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}pa=o}}if(0!=(2064&o.subtreeFlags)&&null!==s)s.return=o,pa=s;else e:for(;null!==pa;){if(0!=(2048&(o=pa).flags))switch(o.tag){case 0:case 11:case 15:va(9,o,o.return)}var v=o.sibling;if(null!==v){v.return=o.return,pa=v;break e}pa=o.return}}var b=e.current;for(pa=b;null!==pa;){var x=(s=pa).child;if(0!=(2064&s.subtreeFlags)&&null!==x)x.return=s,pa=x;else e:for(s=b;null!==pa;){if(0!=(2048&(l=pa).flags))try{switch(l.tag){case 0:case 11:case 15:ba(9,l)}}catch(e){Zo(l,l.return,e)}if(l===s){pa=null;break e}var S=l.sibling;if(null!==S){S.return=l.return,pa=S;break e}pa=l.return}}if(eo=i,Zt(),Gt&&"function"==typeof Gt.onPostCommitFiberRoot)try{Gt.onPostCommitFiberRoot(Vt,e)}catch(e){}r=!0}return r}finally{Ot=n,Ja.transition=t}}return!1}function Ko(e,t,n){e=er(e,t=ki(0,t=_i(n,t),1),1),t=Po(),null!==e&&(Mt(e,1,t),Mo(e,t))}function Zo(e,t,n){if(3===e.tag)Ko(e,e,n);else for(;null!==t;){if(3===t.tag){Ko(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===So||!So.has(r))){t=er(t,e=Ci(t,e=_i(n,e),1),1),e=Po(),null!==t&&(Mt(t,1,e),Mo(t,e));break}}t=t.return}}function Jo(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Po(),e.pingedLanes|=e.suspendedLanes&n,to===e&&(ro&n)===n&&(4===oo||3===oo&&(130023424&ro)===ro&&500>Ft()-po?Fo(e,0):co|=n),Mo(e,t)}function es(e,t){0===t&&(0==(1&e.mode)?t=1:(t=At,0==(130023424&(At<<=1))&&(At=4194304)));var n=Po();null!==(e=Qn(e,t))&&(Mt(e,t,n),Mo(e,n))}function ts(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),es(e,n)}function ns(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),es(e,n)}function rs(e,t){return Nt(e,t)}function is(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function as(e,t,n,r){return new is(e,t,n,r)}function os(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ss(e,t){var n=e.alternate;return null===n?((n=as(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ls(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)os(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case c:return us(n.children,i,o,t);case d:s=8,i|=8;break;case h:return(e=as(12,n,t,2|i)).elementType=h,e.lanes=o,e;case m:return(e=as(13,n,t,i)).elementType=m,e.lanes=o,e;case y:return(e=as(19,n,t,i)).elementType=y,e.lanes=o,e;case x:return cs(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case f:s=10;break e;case p:s=9;break e;case g:s=11;break e;case v:s=14;break e;case b:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=as(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function us(e,t,n,r){return(e=as(7,e,r,t)).lanes=n,e}function cs(e,t,n,r){return(e=as(22,e,r,t)).elementType=x,e.lanes=n,e.stateNode={isHidden:!1},e}function ds(e,t,n){return(e=as(6,e,null,t)).lanes=n,e}function hs(e,t,n){return(t=as(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fs(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=G,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Rt(0),this.expirationTimes=Rt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rt(0),this.identifierPrefix=r,this.onRecoverableError=i,X&&(this.mutableSourceEagerHydrationData=null)}function ps(e,t,n,r,i,a,o,s,l){return e=new fs(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=as(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kn(a),e}function gs(e){if(!e)return ct;e:{if(A(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(gt(n))return vt(e,n,t)}return t}function ms(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=E(t))?null:e.stateNode}function ys(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function vs(e,t){ys(e,t),(e=e.alternate)&&ys(e,t)}function bs(e){return null===(e=E(e))?null:e.stateNode}function xs(){return null}return vo=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||ht.current)Mi=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Mi=!1,function(e,t,n){switch(t.tag){case 3:Wi(t),An();break;case 5:hr(t);break;case 1:gt(t.type)&&bt(t);break;case 4:cr(t,t.stateNode.containerInfo);break;case 10:jn(0,t.type._context,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(ut(pr,1&pr.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Xi(e,t,n):(ut(pr,1&pr.current),null!==(e=ra(e,t,n))?e.sibling:null);ut(pr,1&pr.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return ta(e,t,n);t.flags|=128}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),ut(pr,pr.current),r)break;return null;case 22:case 23:return t.lanes=0,Di(e,t,n)}return ra(e,t,n)}(e,t,n);Mi=0!=(131072&e.flags)}else Mi=!1,gn&&0!=(1048576&t.flags)&&cn(t,nn,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;na(e,t),e=t.pendingProps;var i=pt(t,dt.current);$n(t,n),i=Br(null,t,r,e,i,n);var o=Rr();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(o=!0,bt(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Kn(t),i.updater=vi,t.stateNode=i,i._reactInternals=t,wi(t,r,e,n),t=ji(null,t,r,!0,o,n)):(t.tag=0,gn&&o&&dn(t),Li(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(na(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return os(e)?1:0;if(null!=e){if((e=e.$$typeof)===g)return 11;if(e===v)return 14}return 2}(r),e=mi(r,e),i){case 0:t=zi(null,t,r,e,n);break e;case 1:t=Fi(null,t,r,e,n);break e;case 11:t=Oi(null,t,r,e,n);break e;case 14:t=Ii(null,t,r,mi(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,zi(e,t,r,i=t.elementType===r?i:mi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Fi(e,t,r,i=t.elementType===r?i:mi(r,i),n);case 3:e:{if(Wi(t),null===e)throw Error(a(387));r=t.pendingProps,i=(o=t.memoizedState).element,Zn(e,t),rr(t,r,null,n);var s=t.memoizedState;if(r=s.element,X&&o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Hi(e,t,r,n,i=_i(Error(a(423)),t));break e}if(r!==i){t=Hi(e,t,r,n,i=_i(Error(a(424)),t));break e}for(X&&(pn=We(t.stateNode.containerInfo),fn=t,gn=!0,yn=null,mn=!1),n=In(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(An(),r===i){t=ra(e,t,n);break e}Li(e,t,r,n)}t=t.child}return t;case 5:return hr(t),null===e&&Sn(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,W(r,i)?s=null:null!==o&&W(r,o)&&(t.flags|=32),Ui(e,t),Li(e,t,s,n),t.child;case 6:return null===e&&Sn(t),null;case 13:return Xi(e,t,n);case 4:return cr(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=On(t,null,r,n):Li(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Oi(e,t,r,i=t.elementType===r?i:mi(r,i),n);case 7:return Li(e,t,t.pendingProps,n),t.child;case 8:case 12:return Li(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,jn(0,r,s=i.value),null!==o)if(Yt(o.value,s)){if(o.children===i.children&&!ht.current){t=ra(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===o.tag){(u=Jn(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}o.lanes|=n,null!==(u=o.alternate)&&(u.lanes|=n),Hn(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Hn(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}Li(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,$n(t,n),r=r(i=Vn(i)),t.flags|=1,Li(e,t,r,n),t.child;case 14:return i=mi(r=t.type,t.pendingProps),Ii(e,t,r,i=mi(r.type,i),n);case 15:return Ni(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mi(r,i),na(e,t),t.tag=1,gt(r)?(e=!0,bt(t)):e=!1,$n(t,n),xi(t,r,i),wi(t,r,i,n),ji(null,t,r,!0,e,n);case 19:return ta(e,t,n);case 22:return Di(e,t,n)}throw Error(a(156,t.tag))},t.attemptContinuousHydration=function(e){if(13===e.tag){var t=Qn(e,134217728);null!==t&&Ro(t,e,134217728,Po()),vs(e,134217728)}},t.attemptDiscreteHydration=function(e){if(13===e.tag){var t=Qn(e,1);null!==t&&Ro(t,e,1,Po()),vs(e,1)}},t.attemptHydrationAtCurrentPriority=function(e){if(13===e.tag){var t=Bo(e),n=Qn(e,t);null!==n&&Ro(n,e,t,Po()),vs(e,t)}},t.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=kt(t.pendingLanes);0!==n&&(Lt(t,1|n),Mo(t,Ft()),0==(6&eo)&&(yo(),Zt()))}break;case 13:Uo((function(){var t=Qn(e,1);if(null!==t){var n=Po();Ro(t,e,1,n)}})),vs(e,1)}},t.batchedUpdates=function(e,t){var n=eo;eo|=1;try{return e(t)}finally{0===(eo=n)&&(yo(),Qt&&Zt())}},t.createComponentSelector=function(e){return{$$typeof:za,value:e}},t.createContainer=function(e,t,n,r,i,a,o){return ps(e,t,!1,null,0,r,0,a,o)},t.createHasPseudoClassSelector=function(e){return{$$typeof:Fa,value:e}},t.createHydrationContainer=function(e,t,n,r,i,a,o,s,l){return(e=ps(n,r,!0,e,0,a,0,s,l)).context=gs(null),n=e.current,(a=Jn(r=Po(),i=Bo(n))).callback=null!=t?t:null,er(n,a,i),e.current.lanes=i,Mt(e,i,r),Mo(e,r),e},t.createPortal=function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:u,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}},t.createRoleSelector=function(e){return{$$typeof:ja,value:e}},t.createTestNameSelector=function(e){return{$$typeof:Wa,value:e}},t.createTextSelector=function(e){return{$$typeof:Ha,value:e}},t.deferredUpdates=function(e){var t=Ot,n=Ja.transition;try{return Ja.transition=null,Ot=16,e()}finally{Ot=t,Ja.transition=n}},t.discreteUpdates=function(e,t,n,r,i){var a=Ot,o=Ja.transition;try{return Ja.transition=null,Ot=1,e(t,n,r,i)}finally{Ot=a,Ja.transition=o,0===eo&&yo()}},t.findAllNodes=Qa,t.findBoundingRects=function(e,t){if(!re)throw Error(a(363));t=Qa(e,t),e=[];for(var n=0;n<t.length;n++)e.push(ae(t[n]));for(t=e.length-1;0<t;t--)for(var r=(n=e[t]).x,i=r+n.width,o=n.y,s=o+n.height,l=t-1;0<=l;l--)if(t!==l){var u=e[l],c=u.x,d=c+u.width,h=u.y,f=h+u.height;if(r>=c&&o>=h&&i<=d&&s<=f){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||f<o||h>s)){h>o&&(u.height+=h-o,u.y=o),f<s&&(u.height=s-h),e.splice(t,1);break}if(!(o!==h||n.height!==u.height||d<r||c>i)){c>r&&(u.width+=c-r,u.x=r),d<i&&(u.width=i-c),e.splice(t,1);break}}return e},t.findHostInstance=ms,t.findHostInstanceWithNoPortals=function(e){return null===(e=null!==(e=C(e))?B(e):null)?null:e.stateNode},t.findHostInstanceWithWarning=function(e){return ms(e)},t.flushControlled=function(e){var t=eo;eo|=1;var n=Ja.transition,r=Ot;try{Ja.transition=null,Ot=1,e()}finally{Ot=r,Ja.transition=n,0===(eo=t)&&(yo(),Zt())}},t.flushPassiveEffects=Xo,t.flushSync=Uo,t.focusWithin=function(e,t){if(!re)throw Error(a(363));for(t=qa(e=Va(e),t),t=Array.from(t),e=0;e<t.length;){var n=t[e++];if(!se(n)){if(5===n.tag&&ue(n.stateNode))return!0;for(n=n.child;null!==n;)t.push(n),n=n.sibling}}return!1},t.getCurrentUpdatePriority=function(){return Ot},t.getFindAllNodesFailureDescription=function(e,t){if(!re)throw Error(a(363));var n=0,r=[];e=[Va(e),0];for(var i=0;i<e.length;){var o=e[i++],s=e[i++],l=t[s];if((5!==o.tag||!se(o))&&(Ga(o,l)&&(r.push(Ya(l)),++s>n&&(n=s)),s<t.length))for(o=o.child;null!==o;)e.push(o,s),o=o.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(Ya(t[n]));return"findAllNodes was able to match part of the selector:\n "+r.join(" > ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},t.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?L(e.child.stateNode):e.child.stateNode:null},t.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:o.ReactCurrentDispatcher,findHostInstanceByFiber:bs,findFiberByHostInstance:e.findFiberByHostInstance||xs,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{Vt=t.inject(e),Gt=t}catch(e){}e=!!t.checkDCE}}return e},t.isAlreadyRendering=function(){return!1},t.observeVisibleRects=function(e,t,n,r){if(!re)throw Error(a(363));e=Qa(e,t);var i=ce(e,n,r).disconnect;return{disconnect:function(){i()}}},t.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},t.runWithPriority=function(e,t){var n=Ot;try{return Ot=e,t()}finally{Ot=n}},t.shouldError=function(){return null},t.shouldSuspend=function(){return!1},t.updateContainer=function(e,t,n,r){var i=t.current,a=Po(),o=Bo(i);return n=gs(n),null===t.context?t.context=n:t.pendingContext=n,(t=Jn(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=er(i,t,o))&&(Ro(e,i,o,a),tr(e,i,o)),o},t}),hc):sc.exports=(yc||(yc=1,"production"!==production&&(vc.exports=function(e){var t={},n=l,r=mc(),i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,a=!1;function o(e){if(!a){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u("warn",e,n)}}function s(e){if(!a){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u("error",e,n)}}function u(e,t,n){var r=i.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var a=n.map((function(e){return String(e)}));a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}var c=Object.assign;function d(e){return e._reactInternals}var h=!1,f=!1,p=!1,g=!1,m=!0,y=!0,v=!0,b=!0,x=0,S=1,w=2,_=3,T=4,A=5,k=6,C=7,E=8,P=9,B=10,R=11,M=12,L=13,O=14,I=15,N=16,D=17,U=18,z=19,F=21,j=22,W=23,H=24,$=25,V=Symbol.for("react.element"),G=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),K=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),re=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen")),ie=(Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker"),Symbol.iterator),ae="@@iterator";function oe(e){if(null===e||"object"!=typeof e)return null;var t=ie&&e[ie]||e[ae];return"function"==typeof t?t:null}function se(e){return e.displayName||"Context"}function le(e){if(null==e)return null;if("number"==typeof e.tag&&s("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Y:return"Fragment";case G:return"Portal";case Q:return"Profiler";case q:return"StrictMode";case J:return"Suspense";case ee:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case K:return se(e)+".Consumer";case X:return se(e._context)+".Provider";case Z:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");case te:var t=e.displayName||null;return null!==t?t:le(e.type)||"Memo";case ne:var n=e,r=n._payload,i=n._init;try{return le(i(r))}catch(e){return null}}return null}function ue(e){return e.displayName||"Context"}function ce(e){var t,n,r,i,a=e.tag,o=e.type;switch(a){case H:return"Cache";case P:return ue(o)+".Consumer";case B:return ue(o._context)+".Provider";case U:return"DehydratedFragment";case R:return t=o,r="ForwardRef",i=(n=o.render).displayName||n.name||"",t.displayName||(""!==i?r+"("+i+")":r);case C:return"Fragment";case A:return o;case T:return"Portal";case _:return"Root";case k:return"Text";case N:return le(o);case E:return o===q?"StrictMode":"Mode";case j:return"Offscreen";case M:return"Profiler";case F:return"Scope";case L:return"Suspense";case z:return"SuspenseList";case $:return"TracingMarker";case S:case x:case D:case w:case O:case I:if("function"==typeof o)return o.displayName||o.name||null;if("string"==typeof o)return o}return null}var de=0,he=1,fe=2,pe=4,ge=16,me=32,ye=64,ve=128,be=256,xe=512,Se=1024,we=2048,_e=4096,Te=8192,Ae=16384,ke=we|pe|ye|xe|Se|Ae,Ce=32767,Ee=32768,Pe=65536,Be=131072,Re=1048576,Me=2097152,Le=4194304,Oe=8388608,Ie=16777216,Ne=33554432,De=pe|Se|0,Ue=fe|pe|ge|me|xe|_e|Te,ze=pe|ye|xe|Te,Fe=we|ge,je=Le|Oe|Me,We=i.ReactCurrentOwner;function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var r=t;do{((t=r).flags&(fe|_e))!==de&&(n=t.return),r=t.return}while(r)}return t.tag===_?n:null}function $e(e){if(He(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function Ve(e){var t=e.alternate;if(!t){var n=He(e);if(null===n)throw new Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var r=e,i=t;;){var a=r.return;if(null===a)break;var o=a.alternate;if(null===o){var s=a.return;if(null!==s){r=i=s;continue}break}if(a.child===o.child){for(var l=a.child;l;){if(l===r)return $e(a),e;if(l===i)return $e(a),t;l=l.sibling}throw new Error("Unable to find node on an unmounted component.")}if(r.return!==i.return)r=a,i=o;else{for(var u=!1,c=a.child;c;){if(c===r){u=!0,r=a,i=o;break}if(c===i){u=!0,i=a,r=o;break}c=c.sibling}if(!u){for(c=o.child;c;){if(c===r){u=!0,r=o,i=a;break}if(c===i){u=!0,i=o,r=a;break}c=c.sibling}if(!u)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==i)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(r.tag!==_)throw new Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function Ge(e){var t=Ve(e);return null!==t?Ye(t):null}function Ye(e){if(e.tag===A||e.tag===k)return e;for(var t=e.child;null!==t;){var n=Ye(t);if(null!==n)return n;t=t.sibling}return null}function qe(e){var t=Ve(e);return null!==t?Qe(t):null}function Qe(e){if(e.tag===A||e.tag===k)return e;for(var t=e.child;null!==t;){if(t.tag!==T){var n=Qe(t);if(null!==n)return n}t=t.sibling}return null}var Xe=Array.isArray;function Ke(e){return Xe(e)}var Ze=e.getPublicInstance,Je=e.getRootHostContext,et=e.getChildHostContext,tt=e.prepareForCommit,nt=e.resetAfterCommit,rt=e.createInstance,it=e.appendInitialChild,at=e.finalizeInitialChildren,ot=e.prepareUpdate,st=e.shouldSetTextContent,lt=e.createTextInstance,ut=e.scheduleTimeout,ct=e.cancelTimeout,dt=e.noTimeout,ht=e.isPrimaryRenderer,ft=e.warnsIfNotActing,pt=e.supportsMutation,gt=e.supportsPersistence,mt=e.supportsHydration,yt=e.getInstanceFromNode;e.beforeActiveInstanceBlur,e.afterActiveInstanceBlur;var vt=e.preparePortalMount;e.prepareScopeUpdate,e.getInstanceFromScope;var bt,xt,St,wt,_t,Tt,At,kt=e.getCurrentEventPriority,Ct=e.detachDeletedInstance,Et=e.supportsMicrotasks,Pt=e.scheduleMicrotask,Bt=e.supportsTestSelectors,Rt=e.findFiberRoot,Mt=e.getBoundingRect,Lt=e.getTextContent,Ot=e.isHiddenSubtree,It=e.matchAccessibilityRole,Nt=e.setFocusIfFocusable,Dt=e.setupIntersectionObserver,Ut=e.appendChild,zt=e.appendChildToContainer,Ft=e.commitTextUpdate,jt=e.commitMount,Wt=e.commitUpdate,Ht=e.insertBefore,$t=e.insertInContainerBefore,Vt=e.removeChild,Gt=e.removeChildFromContainer,Yt=e.resetTextContent,qt=e.hideInstance,Qt=e.hideTextInstance,Xt=e.unhideInstance,Kt=e.unhideTextInstance,Zt=e.clearContainer,Jt=e.cloneInstance,en=e.createContainerChildSet,tn=e.appendChildToContainerChildSet,nn=e.finalizeContainerChildren,rn=e.replaceContainerChildren,an=e.cloneHiddenInstance,on=e.cloneHiddenTextInstance,sn=e.canHydrateInstance,ln=e.canHydrateTextInstance,un=e.canHydrateSuspenseInstance,cn=e.isSuspenseInstancePending,dn=e.isSuspenseInstanceFallback,hn=e.getSuspenseInstanceFallbackErrorDetails,fn=e.registerSuspenseInstanceRetry,pn=e.getNextHydratableSibling,gn=e.getFirstHydratableChild,mn=e.getFirstHydratableChildWithinContainer,yn=e.getFirstHydratableChildWithinSuspenseInstance,vn=e.hydrateInstance,bn=e.hydrateTextInstance,xn=e.hydrateSuspenseInstance,Sn=e.getNextHydratableInstanceAfterSuspenseInstance,wn=e.commitHydratedContainer,_n=e.commitHydratedSuspenseInstance,Tn=e.clearSuspenseBoundary,An=e.clearSuspenseBoundaryFromContainer,kn=e.shouldDeleteUnhydratedTailInstances,Cn=e.didNotMatchHydratedContainerTextInstance,En=e.didNotMatchHydratedTextInstance,Pn=e.didNotHydrateInstanceWithinContainer,Bn=e.didNotHydrateInstanceWithinSuspenseInstance,Rn=e.didNotHydrateInstance,Mn=e.didNotFindHydratableInstanceWithinContainer,Ln=e.didNotFindHydratableTextInstanceWithinContainer,On=e.didNotFindHydratableSuspenseInstanceWithinContainer,In=e.didNotFindHydratableInstanceWithinSuspenseInstance,Nn=e.didNotFindHydratableTextInstanceWithinSuspenseInstance,Dn=e.didNotFindHydratableSuspenseInstanceWithinSuspenseInstance,Un=e.didNotFindHydratableInstance,zn=e.didNotFindHydratableTextInstance,Fn=e.didNotFindHydratableSuspenseInstance,jn=e.errorHydratingContainer,Wn=0;function Hn(){}Hn.__reactDisabledLog=!0;var $n,Vn=i.ReactCurrentDispatcher;function Gn(e,t,n){if(void 0===$n)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);$n=r&&r[1]||""}return"\n"+$n+e}var Yn,qn=!1,Qn="function"==typeof WeakMap?WeakMap:Map;function Xn(e,t){if(!e||qn)return"";var n,r=Yn.get(e);if(void 0!==r)return r;qn=!0;var i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=Vn.current,Vn.current=null,function(){if(0===Wn){bt=console.log,xt=console.info,St=console.warn,wt=console.error,_t=console.group,Tt=console.groupCollapsed,At=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Hn,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Wn++}();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(o,[])}catch(e){n=e}Reflect.construct(e,[],o)}else{try{o.call()}catch(e){n=e}e.call(o.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),u=n.stack.split("\n"),d=l.length-1,h=u.length-1;d>=1&&h>=0&&l[d]!==u[h];)h--;for(;d>=1&&h>=0;d--,h--)if(l[d]!==u[h]){if(1!==d||1!==h)do{if(d--,--h<0||l[d]!==u[h]){var f="\n"+l[d].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&Yn.set(e,f),f}}while(d>=1&&h>=0);break}}}finally{qn=!1,Vn.current=i,function(){if(0==--Wn){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:c({},e,{value:bt}),info:c({},e,{value:xt}),warn:c({},e,{value:St}),error:c({},e,{value:wt}),group:c({},e,{value:_t}),groupCollapsed:c({},e,{value:Tt}),groupEnd:c({},e,{value:At})})}Wn<0&&s("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var p=e?e.displayName||e.name:"",g=p?Gn(p):"";return"function"==typeof e&&Yn.set(e,g),g}function Kn(e,t,n){return Xn(e,!1)}function Zn(e,t,n){if(null==e)return"";if("function"==typeof e)return Xn(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return Gn(e);switch(e){case J:return Gn("Suspense");case ee:return Gn("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case Z:return Kn(e.render);case te:return Zn(e.type,t,n);case ne:var i=e,a=i._payload,o=i._init;try{return Zn(o(a),t,n)}catch(e){}}return""}Yn=new Qn;var Jn=Object.prototype.hasOwnProperty,er={},tr=i.ReactDebugCurrentFrame;function nr(e){if(e){var t=e._owner,n=Zn(e.type,e._source,t?t.type:null);tr.setExtraStackFrame(n)}else tr.setExtraStackFrame(null)}function rr(e,t,n,r,i){var a=Function.call.bind(Jn);for(var o in e)if(a(e,o)){var l=void 0;try{if("function"!=typeof e[o]){var u=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[o](t,o,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(nr(i),s("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,o,typeof l),nr(null)),l instanceof Error&&!(l.message in er)&&(er[l.message]=!0,nr(i),s("Failed %s type: %s",n,l.message),nr(null))}}var ir,ar=[];ir=[];var or,sr=-1;function lr(e){return{current:e}}function ur(e,t){sr<0?s("Unexpected pop."):(t!==ir[sr]&&s("Unexpected Fiber popped."),e.current=ar[sr],ar[sr]=null,ir[sr]=null,sr--)}function cr(e,t,n){sr++,ar[sr]=e.current,ir[sr]=n,e.current=t}or={};var dr={};Object.freeze(dr);var hr=lr(dr),fr=lr(!1),pr=dr;function gr(e,t,n){return n&&br(t)?pr:hr.current}function mr(e,t,n){var r=e.stateNode;r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=n}function yr(e,t){var n=e.type.contextTypes;if(!n)return dr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={};for(var a in n)i[a]=t[a];return rr(n,i,"context",ce(e)||"Unknown"),r&&mr(e,t,i),i}function vr(){return fr.current}function br(e){return null!=e.childContextTypes}function xr(e){ur(fr,e),ur(hr,e)}function Sr(e){ur(fr,e),ur(hr,e)}function wr(e,t,n){if(hr.current!==dr)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");cr(hr,t,e),cr(fr,n,e)}function _r(e,t,n){var r=e.stateNode,i=t.childContextTypes;if("function"!=typeof r.getChildContext){var a=ce(e)||"Unknown";return or[a]||(or[a]=!0,s("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",a,a)),n}var o=r.getChildContext();for(var l in o)if(!(l in i))throw new Error((ce(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return rr(i,o,"child context",ce(e)||"Unknown"),c({},n,o)}function Tr(e){var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||dr;return pr=hr.current,cr(hr,n,e),cr(fr,fr.current,e),!0}function Ar(e,t,n){var r=e.stateNode;if(!r)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var i=_r(e,t,pr);r.__reactInternalMemoizedMergedChildContext=i,ur(fr,e),ur(hr,e),cr(hr,i,e),cr(fr,n,e)}else ur(fr,e),cr(fr,n,e)}function kr(e){if(!function(e){return He(e)===e}(e)||e.tag!==S)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case _:return t.stateNode.context;case S:if(br(t.type))return t.stateNode.__reactInternalMemoizedMergedChildContext}t=t.return}while(null!==t);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}var Cr=0,Er=1,Pr=0,Br=1,Rr=2,Mr=8,Lr=16,Or=Math.clz32?Math.clz32:function(e){var t=e>>>0;return 0===t?32:31-(Ir(t)/Nr|0)|0},Ir=Math.log,Nr=Math.LN2,Dr=31,Ur=0,zr=0,Fr=1,jr=2,Wr=4,Hr=8,$r=16,Vr=32,Gr=4194240,Yr=64,qr=128,Qr=256,Xr=512,Kr=1024,Zr=2048,Jr=4096,ei=8192,ti=16384,ni=32768,ri=65536,ii=131072,ai=262144,oi=524288,si=1048576,li=2097152,ui=130023424,ci=4194304,di=8388608,hi=16777216,fi=33554432,pi=67108864,gi=ci,mi=134217728,yi=268435455,vi=268435456,bi=536870912,xi=1073741824;function Si(e){return e&Fr?"Sync":e&jr?"InputContinuousHydration":e&Wr?"InputContinuous":e&Hr?"DefaultHydration":e&$r?"Default":e&Vr?"TransitionHydration":e&Gr?"Transition":e&ui?"Retry":e&mi?"SelectiveHydration":e&vi?"IdleHydration":e&bi?"Idle":e&xi?"Offscreen":void 0}var wi=-1,_i=Yr,Ti=ci;function Ai(e){switch(Oi(e)){case Fr:return Fr;case jr:return jr;case Wr:return Wr;case Hr:return Hr;case $r:return $r;case Vr:return Vr;case Yr:case qr:case Qr:case Xr:case Kr:case Zr:case Jr:case ei:case ti:case ni:case ri:case ii:case ai:case oi:case si:case li:return e&Gr;case ci:case di:case hi:case fi:case pi:return e&ui;case mi:return mi;case vi:return vi;case bi:return bi;case xi:return xi;default:return s("Should have found matching lanes. This is a bug in React."),e}}function ki(e,t){var n=e.pendingLanes;if(n===Ur)return Ur;var r=Ur,i=e.suspendedLanes,a=e.pingedLanes,o=n&yi;if(o!==Ur){var s=o&~i;if(s!==Ur)r=Ai(s);else{var l=o&a;l!==Ur&&(r=Ai(l))}}else{var u=n&~i;u!==Ur?r=Ai(u):a!==Ur&&(r=Ai(a))}if(r===Ur)return Ur;if(t!==Ur&&t!==r&&(t&i)===Ur){var c=Oi(r),d=Oi(t);if(c>=d||c===$r&&(d&Gr)!==Ur)return t}(r&Wr)!==Ur&&(r|=n&$r);var h=e.entangledLanes;if(h!==Ur)for(var f=e.entanglements,p=r&h;p>0;){var g=Ni(p),m=1<<g;r|=f[g],p&=~m}return r}function Ci(e,t){switch(e){case Fr:case jr:case Wr:return t+250;case Hr:case $r:case Vr:case Yr:case qr:case Qr:case Xr:case Kr:case Zr:case Jr:case ei:case ti:case ni:case ri:case ii:case ai:case oi:case si:case li:return t+5e3;case ci:case di:case hi:case fi:case pi:case mi:case vi:case bi:case xi:return wi;default:return s("Should have found matching lanes. This is a bug in React."),wi}}function Ei(e){var t=e.pendingLanes&~xi;return t!==Ur?t:t&xi?xi:Ur}function Pi(e){return(e&yi)!==Ur}function Bi(e){return(e&ui)===e}function Ri(e,t){return(t&(jr|Wr|Hr|$r))!==Ur}function Mi(e){return(e&Gr)!==Ur}function Li(){var e=_i;return((_i<<=1)&Gr)===Ur&&(_i=Yr),e}function Oi(e){return e&-e}function Ii(e){return Oi(e)}function Ni(e){return 31-Or(e)}function Di(e){return Ni(e)}function Ui(e,t){return(e&t)!==Ur}function zi(e,t){return(e&t)===t}function Fi(e,t){return e|t}function ji(e,t){return e&~t}function Wi(e,t){return e&t}function Hi(e){for(var t=[],n=0;n<Dr;n++)t.push(e);return t}function $i(e,t,n){e.pendingLanes|=t,t!==bi&&(e.suspendedLanes=Ur,e.pingedLanes=Ur),e.eventTimes[Di(t)]=n}function Vi(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function Gi(e,t){for(var n=e.entangledLanes|=t,r=e.entanglements,i=n;i;){var a=Ni(i),o=1<<a;o&t|r[a]&t&&(r[a]|=t),i&=~o}}function Yi(e,t,n){if(ba)for(var r=e.pendingUpdatersLaneMap;n>0;){var i=Di(n),a=1<<i;r[i].add(t),n&=~a}}function qi(e,t){if(ba)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;t>0;){var i=Di(t),a=1<<i,o=n[i];o.size>0&&(o.forEach((function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)})),o.clear()),t&=~a}}var Qi=Fr,Xi=Wr,Ki=$r,Zi=bi,Ji=zr;function ea(){return Ji}function ta(e){Ji=e}function na(e,t){return 0!==e&&e<t}function ra(e){var t=Oi(e);return na(Qi,t)?na(Xi,t)?Pi(t)?Ki:Zi:Xi:Qi}var ia=r.unstable_scheduleCallback,aa=r.unstable_cancelCallback,oa=r.unstable_shouldYield,sa=r.unstable_requestPaint,la=r.unstable_now,ua=r.unstable_ImmediatePriority,ca=r.unstable_UserBlockingPriority,da=r.unstable_NormalPriority,ha=r.unstable_IdlePriority,fa=r.unstable_yieldValue,pa=r.unstable_setDisableYieldValue,ga=null,ma=null,ya=null,va=!1,ba="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;function xa(e){if("function"==typeof fa&&(pa(e),a=e),ma&&"function"==typeof ma.setStrictMode)try{ma.setStrictMode(ga,e)}catch(e){va||(va=!0,s("React instrumentation encountered an error: %s",e))}}function Sa(e){ya=e}function wa(){for(var e=new Map,t=1,n=0;n<Dr;n++){var r=Si(t);e.set(t,r),t*=2}return e}function _a(){null!==ya&&"function"==typeof ya.markCommitStopped&&ya.markCommitStopped()}function Ta(e){null!==ya&&"function"==typeof ya.markComponentRenderStarted&&ya.markComponentRenderStarted(e)}function Aa(){null!==ya&&"function"==typeof ya.markComponentRenderStopped&&ya.markComponentRenderStopped()}function ka(e){null!==ya&&"function"==typeof ya.markComponentLayoutEffectMountStarted&&ya.markComponentLayoutEffectMountStarted(e)}function Ca(e){null!==ya&&"function"==typeof ya.markComponentLayoutEffectUnmountStarted&&ya.markComponentLayoutEffectUnmountStarted(e)}function Ea(){null!==ya&&"function"==typeof ya.markComponentLayoutEffectUnmountStopped&&ya.markComponentLayoutEffectUnmountStopped()}function Pa(e,t,n){null!==ya&&"function"==typeof ya.markComponentErrored&&ya.markComponentErrored(e,t,n)}function Ba(e,t,n){null!==ya&&"function"==typeof ya.markComponentSuspended&&ya.markComponentSuspended(e,t,n)}function Ra(e){null!==ya&&"function"==typeof ya.markRenderStarted&&ya.markRenderStarted(e)}function Ma(){null!==ya&&"function"==typeof ya.markRenderStopped&&ya.markRenderStopped()}function La(e,t){null!==ya&&"function"==typeof ya.markStateUpdateScheduled&&ya.markStateUpdateScheduled(e,t)}var Oa="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ia=null,Na=!1,Da=!1;function Ua(e){null===Ia?Ia=[e]:Ia.push(e)}function za(){Na&&Fa()}function Fa(){if(!Da&&null!==Ia){Da=!0;var e=0,t=ea();try{var n=Ia;for(ta(Qi);e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ia=null,Na=!1}catch(t){throw null!==Ia&&(Ia=Ia.slice(e+1)),ia(ua,Fa),t}finally{ta(t),Da=!1}}return null}function ja(e){return e.current.memoizedState.isDehydrated}var Wa=[],Ha=0,$a=null,Va=0,Ga=[],Ya=0,qa=null,Qa=1,Xa="";function Ka(){var e,t=Xa;return(Qa&(e=Qa,~(1<<to(e)-1))).toString(32)+t}function Za(e,t){ro(),Wa[Ha++]=Va,Wa[Ha++]=$a,$a=e,Va=t}function Ja(e,t,n){ro(),Ga[Ya++]=Qa,Ga[Ya++]=Xa,Ga[Ya++]=qa,qa=e;var r=Qa,i=Xa,a=to(r)-1,o=r&~(1<<a),s=n+1,l=to(t)+a;if(l>30){var u=a-a%5,c=(o&(1<<u)-1).toString(32),d=o>>u,h=a-u,f=to(t)+h;Qa=1<<f|s<<h|d,Xa=c+i}else Qa=1<<l|s<<a|o,Xa=i}function eo(e){ro(),null!==e.return&&(Za(e,1),Ja(e,1,0))}function to(e){return 32-Or(e)}function no(e){for(;e===$a;)$a=Wa[--Ha],Wa[Ha]=null,Va=Wa[--Ha],Wa[Ha]=null;for(;e===qa;)qa=Ga[--Ya],Ga[Ya]=null,Xa=Ga[--Ya],Ga[Ya]=null,Qa=Ga[--Ya],Ga[Ya]=null}function ro(){ko()||s("Expected to be hydrating. This is a bug in React. Please file an issue.")}var io=null,ao=null,oo=!1,so=!1,lo=null;function uo(){oo&&s("We should not be hydrating here. This is a bug in React. Please file a bug.")}function co(){so=!0}function ho(e,t,n){return!!mt&&(ao=yn(t),io=e,oo=!0,lo=null,so=!1,null!==n&&function(e,t){ro(),Ga[Ya++]=Qa,Ga[Ya++]=Xa,Ga[Ya++]=qa,Qa=t.id,Xa=t.overflow,qa=e}(e,n),!0)}function fo(e,t){switch(e.tag){case _:Pn(e.stateNode.containerInfo,t);break;case A:var n=(e.mode&Br)!==Pr;Rn(e.type,e.memoizedProps,e.stateNode,t,n);break;case L:var r=e.memoizedState;null!==r.dehydrated&&Bn(r.dehydrated,t)}}function po(e,t){fo(e,t);var n,r=((n=Xg(A,null,null,Pr)).elementType="DELETED",n);r.stateNode=t,r.return=e;var i=e.deletions;null===i?(e.deletions=[r],e.flags|=ge):i.push(r)}function go(e,t){if(!so)switch(e.tag){case _:var n=e.stateNode.containerInfo;switch(t.tag){case A:var r=t.type,i=t.pendingProps;Mn(n,r,i);break;case k:var a=t.pendingProps;Ln(n,a);break;case L:On(n)}break;case A:var o=e.type,s=e.memoizedProps,l=e.stateNode;switch(t.tag){case A:var u=t.type,c=t.pendingProps,d=(e.mode&Br)!==Pr;Un(o,s,l,u,c,d);break;case k:var h=t.pendingProps,f=(e.mode&Br)!==Pr;zn(o,s,l,h,f);break;case L:Fn(o,s,l)}break;case L:var p=e.memoizedState.dehydrated;if(null!==p)switch(t.tag){case A:var g=t.type,m=t.pendingProps;In(p,g,m);break;case k:var y=t.pendingProps;Nn(p,y);break;case L:Dn(p)}break;default:return}}function mo(e,t){t.flags=t.flags&~_e|fe,go(e,t)}function yo(e,t){switch(e.tag){case A:var n=e.type,r=e.pendingProps,i=sn(t,n,r);return null!==i&&(e.stateNode=i,io=e,ao=gn(i),!0);case k:var a=e.pendingProps,o=ln(t,a);return null!==o&&(e.stateNode=o,io=e,ao=null,!0);case L:var s=un(t);if(null!==s){var l={dehydrated:s,treeContext:(ro(),null!==qa?{id:Qa,overflow:Xa}:null),retryLane:xi};e.memoizedState=l;var u=function(e){var t=Xg(U,null,null,Pr);return t.stateNode=e,t}(s);return u.return=e,e.child=u,io=e,ao=null,!0}return!1;default:return!1}}function vo(e){return(e.mode&Br)!==Pr&&(e.flags&ve)===de}function bo(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function xo(e){if(oo){var t=ao;if(!t)return vo(e)&&(go(io,e),bo()),mo(io,e),oo=!1,void(io=e);var n=t;if(!yo(e,t)){vo(e)&&(go(io,e),bo()),t=pn(n);var r=io;if(!t||!yo(e,t))return mo(io,e),oo=!1,void(io=e);po(r,n)}}}function So(e){for(var t=e.return;null!==t&&t.tag!==A&&t.tag!==_&&t.tag!==L;)t=t.return;io=t}function wo(e){if(!mt)return!1;if(e!==io)return!1;if(!oo)return So(e),oo=!0,!1;if(e.tag!==_&&(e.tag!==A||kn(e.type)&&!st(e.type,e.memoizedProps))){var t=ao;if(t)if(vo(e))_o(e),bo();else for(;t;)po(e,t),t=pn(t)}return So(e),ao=e.tag===L?function(e){if(!mt)throw new Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return Sn(n)}(e):io?pn(e.stateNode):null,!0}function _o(e){for(var t=ao;t;)fo(e,t),t=pn(t)}function To(){mt&&(io=null,ao=null,oo=!1,so=!1)}function Ao(){null!==lo&&(Gp(lo),lo=null)}function ko(){return oo}function Co(e){null===lo?lo=[e]:lo.push(e)}var Eo=i.ReactCurrentBatchConfig,Po=null;function Bo(e,t){if(Oa(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var a=n[i];if(!Jn.call(t,a)||!Oa(e[a],t[a]))return!1}return!0}function Ro(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case A:return Gn(e.type);case N:return Gn("Lazy");case L:return Gn("Suspense");case z:return Gn("SuspenseList");case x:case w:case I:return Kn(e.type);case R:return Kn(e.type.render);case S:return Xn(e.type,!0);default:return""}}function Mo(e){try{var t="",n=e;do{t+=Ro(n),n=n.return}while(n);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var Lo=i.ReactDebugCurrentFrame,Oo=null,Io=!1;function No(){return null===Oo?"":Mo(Oo)}function Do(){Lo.getCurrentStack=null,Oo=null,Io=!1}function Uo(e){Lo.getCurrentStack=null===e?null:No,Oo=e,Io=!1}function zo(e){Io=e}var Fo={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},jo=function(e){var t=[];return e.forEach((function(e){t.push(e)})),t.sort().join(", ")},Wo=[],Ho=[],$o=[],Vo=[],Go=[],Yo=[],qo=new Set;Fo.recordUnsafeLifecycleWarnings=function(e,t){qo.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&Wo.push(e),e.mode&Mr&&"function"==typeof t.UNSAFE_componentWillMount&&Ho.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&$o.push(e),e.mode&Mr&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&Vo.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&Go.push(e),e.mode&Mr&&"function"==typeof t.UNSAFE_componentWillUpdate&&Yo.push(e))},Fo.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Wo.length>0&&(Wo.forEach((function(t){e.add(ce(t)||"Component"),qo.add(t.type)})),Wo=[]);var t=new Set;Ho.length>0&&(Ho.forEach((function(e){t.add(ce(e)||"Component"),qo.add(e.type)})),Ho=[]);var n=new Set;$o.length>0&&($o.forEach((function(e){n.add(ce(e)||"Component"),qo.add(e.type)})),$o=[]);var r=new Set;Vo.length>0&&(Vo.forEach((function(e){r.add(ce(e)||"Component"),qo.add(e.type)})),Vo=[]);var i=new Set;Go.length>0&&(Go.forEach((function(e){i.add(ce(e)||"Component"),qo.add(e.type)})),Go=[]);var a=new Set;Yo.length>0&&(Yo.forEach((function(e){a.add(ce(e)||"Component"),qo.add(e.type)})),Yo=[]),t.size>0&&s("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",jo(t)),r.size>0&&s("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s",jo(r)),a.size>0&&s("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",jo(a)),e.size>0&&o("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",jo(e)),n.size>0&&o("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",jo(n)),i.size>0&&o("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",jo(i))};var Qo,Xo,Ko,Zo,Jo,es,ts=new Map,ns=new Set;function rs(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function is(e){try{return as(e),!1}catch(e){return!0}}function as(e){return""+e}function os(e,t,n){var r,i=n.ref;if(null!==i&&"function"!=typeof i&&"object"!=typeof i){if((e.mode&Mr||m)&&(!n._owner||!n._self||n._owner.stateNode===n._self)&&(!n._owner||n._owner.tag===S)&&("function"!=typeof n.type||(r=n.type).prototype&&r.prototype.isReactComponent)&&n._owner){var a=ce(e)||"Component";Ko[a]||(s('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',a,i),Ko[a]=!0)}if(n._owner){var o,l=n._owner;if(l){var u=l;if(u.tag!==S)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");o=u.stateNode}if(!o)throw new Error("Missing owner for string ref "+i+". This error is likely caused by a bug in React. Please file an issue.");var c=o;!function(e,t){is(e)&&(s("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,rs(e)),as(e))}(i,"ref");var d=""+i;if(null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===d)return t.ref;var h=function(e){var t=c.refs;null===e?delete t[d]:t[d]=e};return h._stringRef=d,h}if("string"!=typeof i)throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+i+") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information.")}return i}function ss(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function ls(e){var t=ce(e)||"Component";Jo[t]||(Jo[t]=!0,s("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."))}function us(e){var t=e._payload;return(0,e._init)(t)}function cs(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=ge):r.push(n)}}function n(n,r){if(!e)return null;for(var i=r;null!==i;)t(n,i),i=i.sibling;return null}function r(e,t){for(var n=new Map,r=t;null!==r;)null!==r.key?n.set(r.key,r):n.set(r.index,r),r=r.sibling;return n}function i(e,t){var n=Zg(e,t);return n.index=0,n.sibling=null,n}function a(t,n,r){if(t.index=r,!e)return t.flags|=Re,n;var i=t.alternate;if(null!==i){var a=i.index;return a<n?(t.flags|=fe,n):a}return t.flags|=fe,n}function o(t){return e&&null===t.alternate&&(t.flags|=fe),t}function l(e,t,n,r){if(null===t||t.tag!==k){var a=im(n,e.mode,r);return a.return=e,a}var o=i(t,n);return o.return=e,o}function u(e,t,n,r){var a=n.type;if(a===Y)return d(e,t,n.props.children,r,n.key);if(null!==t&&(t.elementType===a||Ug(t,n)||"object"==typeof a&&null!==a&&a.$$typeof===ne&&us(a)===t.type)){var o=i(t,n.props);return o.ref=os(e,t,n),o.return=e,o._debugSource=n._source,o._debugOwner=n._owner,o}var s=tm(n,e.mode,r);return s.ref=os(e,t,n),s.return=e,s}function c(e,t,n,r){if(null===t||t.tag!==T||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var a=am(n,e.mode,r);return a.return=e,a}var o=i(t,n.children||[]);return o.return=e,o}function d(e,t,n,r,a){if(null===t||t.tag!==C){var o=nm(n,e.mode,r,a);return o.return=e,o}var s=i(t,n);return s.return=e,s}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t){var r=im(""+t,e.mode,n);return r.return=e,r}if("object"==typeof t&&null!==t){switch(t.$$typeof){case V:var i=tm(t,e.mode,n);return i.ref=os(e,null,t),i.return=e,i;case G:var a=am(t,e.mode,n);return a.return=e,a;case ne:var o=t._payload;return h(e,(0,t._init)(o),n)}if(Ke(t)||oe(t)){var s=nm(t,e.mode,n,null);return s.return=e,s}ss(0,t)}return"function"==typeof t&&ls(e),null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case V:return n.key===i?u(e,t,n,r):null;case G:return n.key===i?c(e,t,n,r):null;case ne:var a=n._payload;return f(e,t,(0,n._init)(a),r)}if(Ke(n)||oe(n))return null!==i?null:d(e,t,n,r,null);ss(0,n)}return"function"==typeof n&&ls(e),null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case V:return u(t,e.get(null===r.key?n:r.key)||null,r,i);case G:return c(t,e.get(null===r.key?n:r.key)||null,r,i);case ne:var a=r._payload;return p(e,t,n,(0,r._init)(a),i)}if(Ke(r)||oe(r))return d(t,e.get(n)||null,r,i,null);ss(0,r)}return"function"==typeof r&&ls(t),null}function g(e,t,n){if("object"!=typeof e||null===e)return t;switch(e.$$typeof){case V:case G:es(e,n);var r=e.key;if("string"!=typeof r)break;if(null===t){(t=new Set).add(r);break}if(!t.has(r)){t.add(r);break}s("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",r);break;case ne:var i=e._payload;g((0,e._init)(i),t,n)}return t}return function l(u,c,d,m){if("object"==typeof d&&null!==d&&d.type===Y&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case V:return o(function(e,r,a,o){for(var s=a.key,l=r;null!==l;){if(l.key===s){var u=a.type;if(u===Y){if(l.tag===C){n(e,l.sibling);var c=i(l,a.props.children);return c.return=e,c._debugSource=a._source,c._debugOwner=a._owner,c}}else if(l.elementType===u||Ug(l,a)||"object"==typeof u&&null!==u&&u.$$typeof===ne&&us(u)===l.type){n(e,l.sibling);var d=i(l,a.props);return d.ref=os(e,l,a),d.return=e,d._debugSource=a._source,d._debugOwner=a._owner,d}n(e,l);break}t(e,l),l=l.sibling}if(a.type===Y){var h=nm(a.props.children,e.mode,o,a.key);return h.return=e,h}var f=tm(a,e.mode,o);return f.ref=os(e,r,a),f.return=e,f}(u,c,d,m));case G:return o(function(e,r,a,o){for(var s=a.key,l=r;null!==l;){if(l.key===s){if(l.tag===T&&l.stateNode.containerInfo===a.containerInfo&&l.stateNode.implementation===a.implementation){n(e,l.sibling);var u=i(l,a.children||[]);return u.return=e,u}n(e,l);break}t(e,l),l=l.sibling}var c=am(a,e.mode,o);return c.return=e,c}(u,c,d,m));case ne:var y=d._payload;return l(u,c,(0,d._init)(y),m)}if(Ke(d))return function(i,o,s,l){for(var u=null,c=0;c<s.length;c++)u=g(s[c],u,i);for(var d=null,m=null,y=o,v=0,b=0,x=null;null!==y&&b<s.length;b++){y.index>b?(x=y,y=null):x=y.sibling;var S=f(i,y,s[b],l);if(null===S){null===y&&(y=x);break}e&&y&&null===S.alternate&&t(i,y),v=a(S,v,b),null===m?d=S:m.sibling=S,m=S,y=x}if(b===s.length)return n(i,y),ko()&&Za(i,b),d;if(null===y){for(;b<s.length;b++){var w=h(i,s[b],l);null!==w&&(v=a(w,v,b),null===m?d=w:m.sibling=w,m=w)}return ko()&&Za(i,b),d}for(var _=r(0,y);b<s.length;b++){var T=p(_,i,b,s[b],l);null!==T&&(e&&null!==T.alternate&&_.delete(null===T.key?b:T.key),v=a(T,v,b),null===m?d=T:m.sibling=T,m=T)}return e&&_.forEach((function(e){return t(i,e)})),ko()&&Za(i,b),d}(u,c,d,m);if(oe(d))return function(i,o,l,u){var c=oe(l);if("function"!=typeof c)throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");"function"==typeof Symbol&&"Generator"===l[Symbol.toStringTag]&&(Xo||s("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Xo=!0),l.entries===c&&(Qo||s("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Qo=!0);var d=c.call(l);if(d)for(var m=null,y=d.next();!y.done;y=d.next())m=g(y.value,m,i);var v=c.call(l);if(null==v)throw new Error("An iterable object provided no iterator.");for(var b=null,x=null,S=o,w=0,_=0,T=null,A=v.next();null!==S&&!A.done;_++,A=v.next()){S.index>_?(T=S,S=null):T=S.sibling;var k=f(i,S,A.value,u);if(null===k){null===S&&(S=T);break}e&&S&&null===k.alternate&&t(i,S),w=a(k,w,_),null===x?b=k:x.sibling=k,x=k,S=T}if(A.done)return n(i,S),ko()&&Za(i,_),b;if(null===S){for(;!A.done;_++,A=v.next()){var C=h(i,A.value,u);null!==C&&(w=a(C,w,_),null===x?b=C:x.sibling=C,x=C)}return ko()&&Za(i,_),b}for(var E=r(0,S);!A.done;_++,A=v.next()){var P=p(E,i,_,A.value,u);null!==P&&(e&&null!==P.alternate&&E.delete(null===P.key?_:P.key),w=a(P,w,_),null===x?b=P:x.sibling=P,x=P)}return e&&E.forEach((function(e){return t(i,e)})),ko()&&Za(i,_),b}(u,c,d,m);ss(0,d)}return"string"==typeof d&&""!==d||"number"==typeof d?o(function(e,t,r,a){if(null!==t&&t.tag===k){n(e,t.sibling);var o=i(t,r);return o.return=e,o}n(e,t);var s=im(r,e.mode,a);return s.return=e,s}(u,c,""+d,m)):("function"==typeof d&&ls(u),n(u,c))}}Fo.recordLegacyContextWarning=function(e,t){var n=function(e){for(var t=null,n=e;null!==n;)n.mode&Mr&&(t=n),n=n.return;return t}(e);if(null!==n){if(!ns.has(e.type)){var r=ts.get(n);(null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],ts.set(n,r)),r.push(e))}}else s("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.")},Fo.flushLegacyContextWarning=function(){ts.forEach((function(e,t){if(0!==e.length){var n=e[0],r=new Set;e.forEach((function(e){r.add(ce(e)||"Component"),ns.add(e.type)}));var i=jo(r);try{Uo(n),s("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",i)}finally{Do()}}}))},Fo.discardPendingWarnings=function(){Wo=[],Ho=[],$o=[],Vo=[],Go=[],Yo=[],ts=new Map},Qo=!1,Xo=!1,Ko={},Zo={},Jo={},es=function(e,t){if(null!==e&&"object"==typeof e&&e._store&&!e._store.validated&&null==e.key){if("object"!=typeof e._store)throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=ce(t)||"Component";Zo[n]||(Zo[n]=!0,s('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var ds=cs(!0),hs=cs(!1);function fs(e,t){for(var n=e.child;null!==n;)Jg(n,t),n=n.sibling}var ps,gs=lr(null);ps={};var ms=null,ys=null,vs=null,bs=!1;function xs(){ms=null,ys=null,vs=null,bs=!1}function Ss(){bs=!0}function ws(){bs=!1}function _s(e,t,n){ht?(cr(gs,t._currentValue,e),t._currentValue=n,void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==ps&&s("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=ps):(cr(gs,t._currentValue2,e),t._currentValue2=n,void 0!==t._currentRenderer2&&null!==t._currentRenderer2&&t._currentRenderer2!==ps&&s("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer2=ps)}function Ts(e,t){var n=gs.current;ur(gs,t),ht?e._currentValue=n:e._currentValue2=n}function As(e,t,n){for(var r=e;null!==r;){var i=r.alternate;if(zi(r.childLanes,t)?null===i||zi(i.childLanes,t)||(i.childLanes=Fi(i.childLanes,t)):(r.childLanes=Fi(r.childLanes,t),null!==i&&(i.childLanes=Fi(i.childLanes,t))),r===n)break;r=r.return}r!==n&&s("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function ks(e,t,n){!function(e,t,n){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var i=void 0,a=r.dependencies;if(null!==a){i=r.child;for(var o=a.firstContext;null!==o;){if(o.context===t){if(r.tag===S){var s=Ii(n),l=$s(wi,s);l.tag=zs;var u=r.updateQueue;if(null===u);else{var c=u.shared,d=c.pending;null===d?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}r.lanes=Fi(r.lanes,n);var h=r.alternate;null!==h&&(h.lanes=Fi(h.lanes,n)),As(r.return,n,e),a.lanes=Fi(a.lanes,n);break}o=o.next}}else if(r.tag===B)i=r.type===e.type?null:r.child;else if(r.tag===U){var f=r.return;if(null===f)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");f.lanes=Fi(f.lanes,n);var p=f.alternate;null!==p&&(p.lanes=Fi(p.lanes,n)),As(f,n,e),i=r.sibling}else i=r.child;if(null!==i)i.return=r;else for(i=r;null!==i;){if(i===e){i=null;break}var g=i.sibling;if(null!==g){g.return=i.return,i=g;break}i=i.return}r=i}}(e,t,n)}function Cs(e,t){ms=e,ys=null,vs=null;var n=e.dependencies;null!==n&&null!==n.firstContext&&(Ui(n.lanes,t)&&qd(),n.firstContext=null)}function Es(e){bs&&s("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=ht?e._currentValue:e._currentValue2;if(vs===e);else{var n={context:e,memoizedValue:t,next:null};if(null===ys){if(null===ms)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");ys=n,ms.dependencies={lanes:Ur,firstContext:n}}else ys=ys.next=n}return t}var Ps=null;function Bs(e){null===Ps?Ps=[e]:Ps.push(e)}function Rs(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Bs(t)):(n.next=i.next,i.next=n),t.interleaved=n,Os(e,r)}function Ms(e,t){return Os(e,t)}var Ls=Os;function Os(e,t){e.lanes=Fi(e.lanes,t);var n=e.alternate;null!==n&&(n.lanes=Fi(n.lanes,t)),null===n&&(e.flags&(fe|_e))!==de&&_g(e);for(var r=e,i=e.return;null!==i;)i.childLanes=Fi(i.childLanes,t),null!==(n=i.alternate)?n.childLanes=Fi(n.childLanes,t):(i.flags&(fe|_e))!==de&&_g(e),r=i,i=i.return;return r.tag===_?r.stateNode:null}var Is,Ns,Ds=0,Us=1,zs=2,Fs=3,js=!1;function Ws(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Ur},effects:null};e.updateQueue=t}function Hs(e,t){var n=t.updateQueue,r=e.updateQueue;if(n===r){var i={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects};t.updateQueue=i}}function $s(e,t){return{eventTime:e,lane:t,tag:Ds,payload:null,callback:null,next:null}}function Vs(e,t,n){var r=e.updateQueue;if(null===r)return null;var i=r.shared;if(Ns!==i||Is||(s("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Is=!0),(Jf&$f)!==Wf){var a=i.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),i.pending=t,Ls(e,n)}return function(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Bs(t)):(n.next=i.next,i.next=n),t.interleaved=n,Os(e,r)}(e,i,t,n)}function Gs(e,t,n){var r=t.updateQueue;if(null!==r){var i=r.shared;if(Mi(n)){var a=i.lanes,o=Fi(a=Wi(a,e.pendingLanes),n);i.lanes=o,Gi(e,o)}}}function Ys(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r){var i=r.updateQueue;if(n===i){var a=null,o=null,s=n.firstBaseUpdate;if(null!==s){var l=s;do{var u={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};null===o?a=o=u:(o.next=u,o=u),l=l.next}while(null!==l);null===o?a=o=t:(o.next=t,o=t)}else a=o=t;return n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}}var c=n.lastBaseUpdate;null===c?n.firstBaseUpdate=t:c.next=t,n.lastBaseUpdate=t}function qs(e,t,n,r,i,a){switch(n.tag){case Us:var o=n.payload;if("function"==typeof o){Ss();var s=o.call(a,r,i);if(e.mode&Mr){xa(!0);try{o.call(a,r,i)}finally{xa(!1)}}return ws(),s}return o;case Fs:e.flags=e.flags&~Pe|ve;case Ds:var l,u=n.payload;if("function"==typeof u){if(Ss(),l=u.call(a,r,i),e.mode&Mr){xa(!0);try{u.call(a,r,i)}finally{xa(!1)}}ws()}else l=u;return null==l?r:c({},r,l);case zs:return js=!0,r}return r}function Qs(e,t,n,r){var i=e.updateQueue;js=!1,Ns=i.shared;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?a=u:o.next=u,o=l;var c=e.alternate;if(null!==c){var d=c.updateQueue,h=d.lastBaseUpdate;h!==o&&(null===h?d.firstBaseUpdate=u:h.next=u,d.lastBaseUpdate=l)}}if(null!==a){for(var f=i.baseState,p=Ur,g=null,m=null,y=null,v=a;;){var b=v.lane,x=v.eventTime;if(zi(r,b)){if(null!==y){var S={eventTime:x,lane:zr,tag:v.tag,payload:v.payload,callback:v.callback,next:null};y=y.next=S}if(f=qs(e,0,v,f,t,n),null!==v.callback&&v.lane!==zr){e.flags|=ye;var w=i.effects;null===w?i.effects=[v]:w.push(v)}}else{var _={eventTime:x,lane:b,tag:v.tag,payload:v.payload,callback:v.callback,next:null};null===y?(m=y=_,g=f):y=y.next=_,p=Fi(p,b)}if(null===(v=v.next)){if(null===(s=i.shared.pending))break;var T=s,A=T.next;T.next=null,v=A,i.lastBaseUpdate=T,i.shared.pending=null}}null===y&&(g=f),i.baseState=g,i.firstBaseUpdate=m,i.lastBaseUpdate=y;var k=i.shared.interleaved;if(null!==k){var C=k;do{p=Fi(p,C.lane),C=C.next}while(C!==k)}else null===a&&(i.shared.lanes=Ur);ng(p),e.lanes=p,e.memoizedState=f}Ns=null}function Xs(e,t){if("function"!=typeof e)throw new Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Ks(){js=!1}function Zs(){return js}function Js(e,t,n){var r=t.effects;if(t.effects=null,null!==r)for(var i=0;i<r.length;i++){var a=r[i],o=a.callback;null!==o&&(a.callback=null,Xs(o,n))}}Is=!1,Ns=null;var el={},tl=lr(el),nl=lr(el),rl=lr(el);function il(e){if(e===el)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function al(){return il(rl.current)}function ol(e,t){cr(rl,t,e),cr(nl,e,e),cr(tl,el,e);var n=Je(t);ur(tl,e),cr(tl,n,e)}function sl(e){ur(tl,e),ur(nl,e),ur(rl,e)}function ll(){return il(tl.current)}function ul(e){var t=il(rl.current),n=il(tl.current),r=et(n,e.type,t);n!==r&&(cr(nl,e,e),cr(tl,r,e))}function cl(e){nl.current===e&&(ur(tl,e),ur(nl,e))}var dl=1,hl=1,fl=2,pl=lr(0);function gl(e,t){return 0!=(e&t)}function ml(e){return e&dl}function yl(e,t){return e&dl|t}function vl(e,t){cr(pl,t,e)}function bl(e){ur(pl,e)}function xl(e,t){var n=e.memoizedState;return null!==n?null!==n.dehydrated:(e.memoizedProps,!0)}function Sl(e){for(var t=e;null!==t;){if(t.tag===L){var n=t.memoizedState;if(null!==n){var r=n.dehydrated;if(null===r||cn(r)||dn(r))return t}}else if(t.tag===z&&void 0!==t.memoizedProps.revealOrder){if((t.flags&ve)!==de)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wl=0,_l=1,Tl=2,Al=4,kl=8,Cl=[];function El(){for(var e=0;e<Cl.length;e++){var t=Cl[e];ht?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}Cl.length=0}var Pl,Bl,Rl=i.ReactCurrentDispatcher,Ml=i.ReactCurrentBatchConfig;Pl=new Set;var Ll=Ur,Ol=null,Il=null,Nl=null,Dl=!1,Ul=!1,zl=0,Fl=0,jl=25,Wl=null,Hl=null,$l=-1,Vl=!1;function Gl(){var e=Wl;null===Hl?Hl=[e]:Hl.push(e)}function Yl(){var e=Wl;null!==Hl&&($l++,Hl[$l]!==e&&function(e){var t=ce(Ol);if(!Pl.has(t)&&(Pl.add(t),null!==Hl)){for(var n="",r=30,i=0;i<=$l;i++){for(var a=Hl[i],o=i===$l?e:a,l=i+1+". "+a;l.length<r;)l+=" ";n+=l+=o+"\n"}s("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}(e))}function ql(e){null==e||Ke(e)||s("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Wl,typeof e)}function Ql(){throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.")}function Xl(e,t){if(Vl)return!1;if(null===t)return s("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Wl),!1;e.length!==t.length&&s("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",Wl,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Oa(e[n],t[n]))return!1;return!0}function Kl(e,t,n,r,i,a){Ll=a,Ol=t,Hl=null!==e?e._debugHookTypes:null,$l=-1,Vl=null!==e&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=Ur,null!==e&&null!==e.memoizedState?Rl.current=rc:Rl.current=null!==Hl?nc:tc;var o=n(r,i);if(Ul){var l=0;do{if(Ul=!1,zl=0,l>=jl)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,Vl=!1,Il=null,Nl=null,t.updateQueue=null,$l=-1,Rl.current=ic,o=n(r,i)}while(Ul)}Rl.current=ec,t._debugHookTypes=Hl;var u=null!==Il&&null!==Il.next;if(Ll=Ur,Ol=null,Il=null,Nl=null,Wl=null,Hl=null,$l=-1,null!==e&&(e.flags&je)!=(t.flags&je)&&(e.mode&Br)!==Pr&&s("Internal React error: Expected static flag was missing. Please notify the React team."),Dl=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function Zl(){var e=0!==zl;return zl=0,e}function Jl(e,t,n){t.updateQueue=e.updateQueue,(t.mode&Lr)!==Pr?t.flags&=~(Ne|Ie|we|pe):t.flags&=~(we|pe),e.lanes=ji(e.lanes,n)}function eu(){if(Rl.current=ec,Dl){for(var e=Ol.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Dl=!1}Ll=Ur,Ol=null,Il=null,Nl=null,Hl=null,$l=-1,Wl=null,Vu=!1,Ul=!1,zl=0}function tu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Nl?Ol.memoizedState=Nl=e:Nl=Nl.next=e,Nl}function nu(){var e,t;if(null===Il){var n=Ol.alternate;e=null!==n?n.memoizedState:null}else e=Il.next;if(null!==(t=null===Nl?Ol.memoizedState:Nl.next))t=(Nl=t).next,Il=e;else{if(null===e)throw new Error("Rendered more hooks than during the previous render.");var r={memoizedState:(Il=e).memoizedState,baseState:Il.baseState,baseQueue:Il.baseQueue,queue:Il.queue,next:null};null===Nl?Ol.memoizedState=Nl=r:Nl=Nl.next=r}return Nl}function ru(e,t){return"function"==typeof t?t(e):t}function iu(e,t,n){var r,i=tu();r=void 0!==n?n(t):t,i.memoizedState=i.baseState=r;var a={pending:null,interleaved:null,lanes:Ur,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};i.queue=a;var o=a.dispatch=qu.bind(null,Ol,a);return[i.memoizedState,o]}function au(e,t,n){var r=nu(),i=r.queue;if(null===i)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");i.lastRenderedReducer=e;var a=Il,o=a.baseQueue,l=i.pending;if(null!==l){if(null!==o){var u=o.next,c=l.next;o.next=c,l.next=u}a.baseQueue!==o&&s("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),a.baseQueue=o=l,i.pending=null}if(null!==o){var d=o.next,h=a.baseState,f=null,p=null,g=null,m=d;do{var y=m.lane;if(zi(Ll,y)){if(null!==g){var v={lane:zr,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null};g=g.next=v}h=m.hasEagerState?m.eagerState:e(h,m.action)}else{var b={lane:y,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null};null===g?(p=g=b,f=h):g=g.next=b,Ol.lanes=Fi(Ol.lanes,y),ng(y)}m=m.next}while(null!==m&&m!==d);null===g?f=h:g.next=p,Oa(h,r.memoizedState)||qd(),r.memoizedState=h,r.baseState=f,r.baseQueue=g,i.lastRenderedState=h}var x=i.interleaved;if(null!==x){var S=x;do{var w=S.lane;Ol.lanes=Fi(Ol.lanes,w),ng(w),S=S.next}while(S!==x)}else null===o&&(i.lanes=Ur);var _=i.dispatch;return[r.memoizedState,_]}function ou(e,t,n){var r=nu(),i=r.queue;if(null===i)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");i.lastRenderedReducer=e;var a=i.dispatch,o=i.pending,s=r.memoizedState;if(null!==o){i.pending=null;var l=o.next,u=l;do{s=e(s,u.action),u=u.next}while(u!==l);Oa(s,r.memoizedState)||qd(),r.memoizedState=s,null===r.baseQueue&&(r.baseState=s),i.lastRenderedState=s}return[s,a]}function su(e,t,n){var r,i=Ol,a=tu();if(ko()){if(void 0===n)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=n(),Bl||r!==n()&&(s("The result of getServerSnapshot should be cached to avoid an infinite loop"),Bl=!0)}else{if(r=t(),!Bl){var o=t();Oa(r,o)||(s("The result of getSnapshot should be cached to avoid an infinite loop"),Bl=!0)}if(null===Up())throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Ri(0,Ll)||uu(i,t,r)}a.memoizedState=r;var l={value:r,getSnapshot:t};return a.queue=l,wu(du.bind(null,i,l,e),[e]),i.flags|=we,yu(_l|kl,cu.bind(null,i,l,r,t),void 0,null),r}function lu(e,t,n){var r=Ol,i=nu(),a=t();if(!Bl){var o=t();Oa(a,o)||(s("The result of getSnapshot should be cached to avoid an infinite loop"),Bl=!0)}var l=i.memoizedState,u=!Oa(l,a);u&&(i.memoizedState=a,qd());var c=i.queue;if(_u(du.bind(null,r,c,e),[e]),c.getSnapshot!==t||u||null!==Nl&&Nl.memoizedState.tag&_l){if(r.flags|=we,yu(_l|kl,cu.bind(null,r,c,a,t),void 0,null),null===Up())throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Ri(0,Ll)||uu(r,t,a)}return a}function uu(e,t,n){e.flags|=Ae;var r={getSnapshot:t,value:n},i=Ol.updateQueue;if(null===i)i={lastEffect:null,stores:null},Ol.updateQueue=i,i.stores=[r];else{var a=i.stores;null===a?i.stores=[r]:a.push(r)}}function cu(e,t,n,r){t.value=n,t.getSnapshot=r,hu(t)&&fu(e)}function du(e,t,n){return n((function(){hu(t)&&fu(e)}))}function hu(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!Oa(n,r)}catch(e){return!0}}function fu(e){var t=Ms(e,Fr);null!==t&&Wp(t,e,Fr,wi)}function pu(e){var t=tu();"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:Ur,dispatch:null,lastRenderedReducer:ru,lastRenderedState:e};t.queue=n;var r=n.dispatch=Qu.bind(null,Ol,n);return[t.memoizedState,r]}function gu(e){return au(ru)}function mu(e){return ou(ru)}function yu(e,t,n,r){var i={tag:e,create:t,destroy:n,deps:r,next:null},a=Ol.updateQueue;if(null===a)a={lastEffect:null,stores:null},Ol.updateQueue=a,a.lastEffect=i.next=i;else{var o=a.lastEffect;if(null===o)a.lastEffect=i.next=i;else{var s=o.next;o.next=i,i.next=s,a.lastEffect=i}}return i}function vu(e){var t={current:e};return tu().memoizedState=t,t}function bu(e){return nu().memoizedState}function xu(e,t,n,r){var i=tu(),a=void 0===r?null:r;Ol.flags|=e,i.memoizedState=yu(_l|t,n,void 0,a)}function Su(e,t,n,r){var i=nu(),a=void 0===r?null:r,o=void 0;if(null!==Il){var s=Il.memoizedState;if(o=s.destroy,null!==a&&Xl(a,s.deps))return void(i.memoizedState=yu(t,n,o,a))}Ol.flags|=e,i.memoizedState=yu(_l|t,n,o,a)}function wu(e,t){return(Ol.mode&Lr)!==Pr?xu(Ne|we|Oe,kl,e,t):xu(we|Oe,kl,e,t)}function _u(e,t){return Su(we,kl,e,t)}function Tu(e,t){return xu(pe,Tl,e,t)}function Au(e,t){return Su(pe,Tl,e,t)}function ku(e,t){var n=pe;return n|=Le,(Ol.mode&Lr)!==Pr&&(n|=Ie),xu(n,Al,e,t)}function Cu(e,t){return Su(pe,Al,e,t)}function Eu(e,t){if("function"==typeof t){var n=t,r=e();return n(r),function(){n(null)}}if(null!=t){var i=t;i.hasOwnProperty("current")||s("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(i).join(", ")+"}");var a=e();return i.current=a,function(){i.current=null}}}function Pu(e,t,n){"function"!=typeof t&&s("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null,i=pe;return i|=Le,(Ol.mode&Lr)!==Pr&&(i|=Ie),xu(i,Al,Eu.bind(null,t,e),r)}function Bu(e,t,n){"function"!=typeof t&&s("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null;return Su(pe,Al,Eu.bind(null,t,e),r)}function Ru(e,t){}var Mu=Ru;function Lu(e,t){var n=void 0===t?null:t;return tu().memoizedState=[e,n],e}function Ou(e,t){var n=nu(),r=void 0===t?null:t,i=n.memoizedState;return null!==i&&null!==r&&Xl(r,i[1])?i[0]:(n.memoizedState=[e,r],e)}function Iu(e,t){var n=tu(),r=void 0===t?null:t,i=e();return n.memoizedState=[i,r],i}function Nu(e,t){var n=nu(),r=void 0===t?null:t,i=n.memoizedState;if(null!==i&&null!==r&&Xl(r,i[1]))return i[0];var a=e();return n.memoizedState=[a,r],a}function Du(e){return tu().memoizedState=e,e}function Uu(e){return Fu(nu(),Il.memoizedState,e)}function zu(e){var t=nu();return null===Il?(t.memoizedState=e,e):Fu(t,Il.memoizedState,e)}function Fu(e,t,n){if((Ll&(Fr|Wr|$r))!==Ur){if(!Oa(n,t)){var r=Li();Ol.lanes=Fi(Ol.lanes,r),ng(r),e.baseState=!0}return t}return e.baseState&&(e.baseState=!1,qd()),e.memoizedState=n,n}function ju(e,t,n){var r,i,a=ea();ta((i=Xi,0!==(r=a)&&r<i?r:i)),e(!0);var s=Ml.transition;Ml.transition={};var l=Ml.transition;Ml.transition._updatedFibers=new Set;try{e(!1),t()}finally{ta(a),Ml.transition=s,null===s&&l._updatedFibers&&(l._updatedFibers.size>10&&o("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),l._updatedFibers.clear())}}function Wu(){var e=pu(!1),t=e[0],n=e[1],r=ju.bind(null,n);return tu().memoizedState=r,[t,r]}function Hu(){return[gu()[0],nu().memoizedState]}function $u(){return[mu()[0],nu().memoizedState]}var Vu=!1;function Gu(){var e,t=tu(),n=Up().identifierPrefix;if(ko()){e=":"+n+"R"+Ka();var r=zl++;r>0&&(e+="H"+r.toString(32)),e+=":"}else e=":"+n+"r"+(Fl++).toString(32)+":";return t.memoizedState=e,e}function Yu(){return nu().memoizedState}function qu(e,t,n){"function"==typeof arguments[3]&&s("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=Fp(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xu(e))Ku(t,i);else{var a=Rs(e,t,i,r);null!==a&&(Wp(a,e,r,zp()),Zu(a,t,r))}Ju(e,r)}function Qu(e,t,n){"function"==typeof arguments[3]&&s("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=Fp(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xu(e))Ku(t,i);else{var a=e.alternate;if(e.lanes===Ur&&(null===a||a.lanes===Ur)){var o=t.lastRenderedReducer;if(null!==o){var l;l=Rl.current,Rl.current=oc;try{var u=t.lastRenderedState,c=o(u,n);if(i.hasEagerState=!0,i.eagerState=c,Oa(c,u))return void function(e,t,n,r){var i=t.interleaved;null===i?(n.next=n,Bs(t)):(n.next=i.next,i.next=n),t.interleaved=n}(0,t,i)}catch(e){}finally{Rl.current=l}}}var d=Rs(e,t,i,r);null!==d&&(Wp(d,e,r,zp()),Zu(d,t,r))}Ju(e,r)}function Xu(e){var t=e.alternate;return e===Ol||null!==t&&t===Ol}function Ku(e,t){Ul=Dl=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zu(e,t,n){if(Mi(n)){var r=t.lanes,i=Fi(r=Wi(r,e.pendingLanes),n);t.lanes=i,Gi(e,i)}}function Ju(e,t,n){La(e,t)}var ec={readContext:Es,useCallback:Ql,useContext:Ql,useEffect:Ql,useImperativeHandle:Ql,useInsertionEffect:Ql,useLayoutEffect:Ql,useMemo:Ql,useReducer:Ql,useRef:Ql,useState:Ql,useDebugValue:Ql,useDeferredValue:Ql,useTransition:Ql,useMutableSource:Ql,useSyncExternalStore:Ql,useId:Ql,unstable_isNewReconciler:h},tc=null,nc=null,rc=null,ic=null,ac=null,oc=null,sc=null,lc=function(){s("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},uc=function(){s("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};tc={readContext:function(e){return Es(e)},useCallback:function(e,t){return Wl="useCallback",Gl(),ql(t),Lu(e,t)},useContext:function(e){return Wl="useContext",Gl(),Es(e)},useEffect:function(e,t){return Wl="useEffect",Gl(),ql(t),wu(e,t)},useImperativeHandle:function(e,t,n){return Wl="useImperativeHandle",Gl(),ql(n),Pu(e,t,n)},useInsertionEffect:function(e,t){return Wl="useInsertionEffect",Gl(),ql(t),Tu(e,t)},useLayoutEffect:function(e,t){return Wl="useLayoutEffect",Gl(),ql(t),ku(e,t)},useMemo:function(e,t){Wl="useMemo",Gl(),ql(t);var n=Rl.current;Rl.current=ac;try{return Iu(e,t)}finally{Rl.current=n}},useReducer:function(e,t,n){Wl="useReducer",Gl();var r=Rl.current;Rl.current=ac;try{return iu(e,t,n)}finally{Rl.current=r}},useRef:function(e){return Wl="useRef",Gl(),vu(e)},useState:function(e){Wl="useState",Gl();var t=Rl.current;Rl.current=ac;try{return pu(e)}finally{Rl.current=t}},useDebugValue:function(e,t){Wl="useDebugValue",Gl()},useDeferredValue:function(e){return Wl="useDeferredValue",Gl(),Du(e)},useTransition:function(){return Wl="useTransition",Gl(),Wu()},useMutableSource:function(e,t,n){Wl="useMutableSource",Gl()},useSyncExternalStore:function(e,t,n){return Wl="useSyncExternalStore",Gl(),su(e,t,n)},useId:function(){return Wl="useId",Gl(),Gu()},unstable_isNewReconciler:h},nc={readContext:function(e){return Es(e)},useCallback:function(e,t){return Wl="useCallback",Yl(),Lu(e,t)},useContext:function(e){return Wl="useContext",Yl(),Es(e)},useEffect:function(e,t){return Wl="useEffect",Yl(),wu(e,t)},useImperativeHandle:function(e,t,n){return Wl="useImperativeHandle",Yl(),Pu(e,t,n)},useInsertionEffect:function(e,t){return Wl="useInsertionEffect",Yl(),Tu(e,t)},useLayoutEffect:function(e,t){return Wl="useLayoutEffect",Yl(),ku(e,t)},useMemo:function(e,t){Wl="useMemo",Yl();var n=Rl.current;Rl.current=ac;try{return Iu(e,t)}finally{Rl.current=n}},useReducer:function(e,t,n){Wl="useReducer",Yl();var r=Rl.current;Rl.current=ac;try{return iu(e,t,n)}finally{Rl.current=r}},useRef:function(e){return Wl="useRef",Yl(),vu(e)},useState:function(e){Wl="useState",Yl();var t=Rl.current;Rl.current=ac;try{return pu(e)}finally{Rl.current=t}},useDebugValue:function(e,t){Wl="useDebugValue",Yl()},useDeferredValue:function(e){return Wl="useDeferredValue",Yl(),Du(e)},useTransition:function(){return Wl="useTransition",Yl(),Wu()},useMutableSource:function(e,t,n){Wl="useMutableSource",Yl()},useSyncExternalStore:function(e,t,n){return Wl="useSyncExternalStore",Yl(),su(e,t,n)},useId:function(){return Wl="useId",Yl(),Gu()},unstable_isNewReconciler:h},rc={readContext:function(e){return Es(e)},useCallback:function(e,t){return Wl="useCallback",Yl(),Ou(e,t)},useContext:function(e){return Wl="useContext",Yl(),Es(e)},useEffect:function(e,t){return Wl="useEffect",Yl(),_u(e,t)},useImperativeHandle:function(e,t,n){return Wl="useImperativeHandle",Yl(),Bu(e,t,n)},useInsertionEffect:function(e,t){return Wl="useInsertionEffect",Yl(),Au(e,t)},useLayoutEffect:function(e,t){return Wl="useLayoutEffect",Yl(),Cu(e,t)},useMemo:function(e,t){Wl="useMemo",Yl();var n=Rl.current;Rl.current=oc;try{return Nu(e,t)}finally{Rl.current=n}},useReducer:function(e,t,n){Wl="useReducer",Yl();var r=Rl.current;Rl.current=oc;try{return au(e)}finally{Rl.current=r}},useRef:function(e){return Wl="useRef",Yl(),bu()},useState:function(e){Wl="useState",Yl();var t=Rl.current;Rl.current=oc;try{return gu()}finally{Rl.current=t}},useDebugValue:function(e,t){return Wl="useDebugValue",Yl(),Mu()},useDeferredValue:function(e){return Wl="useDeferredValue",Yl(),Uu(e)},useTransition:function(){return Wl="useTransition",Yl(),Hu()},useMutableSource:function(e,t,n){Wl="useMutableSource",Yl()},useSyncExternalStore:function(e,t,n){return Wl="useSyncExternalStore",Yl(),lu(e,t)},useId:function(){return Wl="useId",Yl(),Yu()},unstable_isNewReconciler:h},ic={readContext:function(e){return Es(e)},useCallback:function(e,t){return Wl="useCallback",Yl(),Ou(e,t)},useContext:function(e){return Wl="useContext",Yl(),Es(e)},useEffect:function(e,t){return Wl="useEffect",Yl(),_u(e,t)},useImperativeHandle:function(e,t,n){return Wl="useImperativeHandle",Yl(),Bu(e,t,n)},useInsertionEffect:function(e,t){return Wl="useInsertionEffect",Yl(),Au(e,t)},useLayoutEffect:function(e,t){return Wl="useLayoutEffect",Yl(),Cu(e,t)},useMemo:function(e,t){Wl="useMemo",Yl();var n=Rl.current;Rl.current=sc;try{return Nu(e,t)}finally{Rl.current=n}},useReducer:function(e,t,n){Wl="useReducer",Yl();var r=Rl.current;Rl.current=sc;try{return ou(e)}finally{Rl.current=r}},useRef:function(e){return Wl="useRef",Yl(),bu()},useState:function(e){Wl="useState",Yl();var t=Rl.current;Rl.current=sc;try{return mu()}finally{Rl.current=t}},useDebugValue:function(e,t){return Wl="useDebugValue",Yl(),Mu()},useDeferredValue:function(e){return Wl="useDeferredValue",Yl(),zu(e)},useTransition:function(){return Wl="useTransition",Yl(),$u()},useMutableSource:function(e,t,n){Wl="useMutableSource",Yl()},useSyncExternalStore:function(e,t,n){return Wl="useSyncExternalStore",Yl(),lu(e,t)},useId:function(){return Wl="useId",Yl(),Yu()},unstable_isNewReconciler:h},ac={readContext:function(e){return lc(),Es(e)},useCallback:function(e,t){return Wl="useCallback",uc(),Gl(),Lu(e,t)},useContext:function(e){return Wl="useContext",uc(),Gl(),Es(e)},useEffect:function(e,t){return Wl="useEffect",uc(),Gl(),wu(e,t)},useImperativeHandle:function(e,t,n){return Wl="useImperativeHandle",uc(),Gl(),Pu(e,t,n)},useInsertionEffect:function(e,t){return Wl="useInsertionEffect",uc(),Gl(),Tu(e,t)},useLayoutEffect:function(e,t){return Wl="useLayoutEffect",uc(),Gl(),ku(e,t)},useMemo:function(e,t){Wl="useMemo",uc(),Gl();var n=Rl.current;Rl.current=ac;try{return Iu(e,t)}finally{Rl.current=n}},useReducer:function(e,t,n){Wl="useReducer",uc(),Gl();var r=Rl.current;Rl.current=ac;try{return iu(e,t,n)}finally{Rl.current=r}},useRef:function(e){return Wl="useRef",uc(),Gl(),vu(e)},useState:function(e){Wl="useState",uc(),Gl();var t=Rl.current;Rl.current=ac;try{return pu(e)}finally{Rl.current=t}},useDebugValue:function(e,t){Wl="useDebugValue",uc(),Gl()},useDeferredValue:function(e){return Wl="useDeferredValue",uc(),Gl(),Du(e)},useTransition:function(){return Wl="useTransition",uc(),Gl(),Wu()},useMutableSource:function(e,t,n){Wl="useMutableSource",uc(),Gl()},useSyncExternalStore:function(e,t,n){return Wl="useSyncExternalStore",uc(),Gl(),su(e,t,n)},useId:function(){return Wl="useId",uc(),Gl(),Gu()},unstable_isNewReconciler:h},oc={readContext:function(e){return lc(),Es(e)},useCallback:function(e,t){return Wl="useCallback",uc(),Yl(),Ou(e,t)},useContext:function(e){return Wl="useContext",uc(),Yl(),Es(e)},useEffect:function(e,t){return Wl="useEffect",uc(),Yl(),_u(e,t)},useImperativeHandle:function(e,t,n){return Wl="useImperativeHandle",uc(),Yl(),Bu(e,t,n)},useInsertionEffect:function(e,t){return Wl="useInsertionEffect",uc(),Yl(),Au(e,t)},useLayoutEffect:function(e,t){return Wl="useLayoutEffect",uc(),Yl(),Cu(e,t)},useMemo:function(e,t){Wl="useMemo",uc(),Yl();var n=Rl.current;Rl.current=oc;try{return Nu(e,t)}finally{Rl.current=n}},useReducer:function(e,t,n){Wl="useReducer",uc(),Yl();var r=Rl.current;Rl.current=oc;try{return au(e)}finally{Rl.current=r}},useRef:function(e){return Wl="useRef",uc(),Yl(),bu()},useState:function(e){Wl="useState",uc(),Yl();var t=Rl.current;Rl.current=oc;try{return gu()}finally{Rl.current=t}},useDebugValue:function(e,t){return Wl="useDebugValue",uc(),Yl(),Mu()},useDeferredValue:function(e){return Wl="useDeferredValue",uc(),Yl(),Uu(e)},useTransition:function(){return Wl="useTransition",uc(),Yl(),Hu()},useMutableSource:function(e,t,n){Wl="useMutableSource",uc(),Yl()},useSyncExternalStore:function(e,t,n){return Wl="useSyncExternalStore",uc(),Yl(),lu(e,t)},useId:function(){return Wl="useId",uc(),Yl(),Yu()},unstable_isNewReconciler:h},sc={readContext:function(e){return lc(),Es(e)},useCallback:function(e,t){return Wl="useCallback",uc(),Yl(),Ou(e,t)},useContext:function(e){return Wl="useContext",uc(),Yl(),Es(e)},useEffect:function(e,t){return Wl="useEffect",uc(),Yl(),_u(e,t)},useImperativeHandle:function(e,t,n){return Wl="useImperativeHandle",uc(),Yl(),Bu(e,t,n)},useInsertionEffect:function(e,t){return Wl="useInsertionEffect",uc(),Yl(),Au(e,t)},useLayoutEffect:function(e,t){return Wl="useLayoutEffect",uc(),Yl(),Cu(e,t)},useMemo:function(e,t){Wl="useMemo",uc(),Yl();var n=Rl.current;Rl.current=oc;try{return Nu(e,t)}finally{Rl.current=n}},useReducer:function(e,t,n){Wl="useReducer",uc(),Yl();var r=Rl.current;Rl.current=oc;try{return ou(e)}finally{Rl.current=r}},useRef:function(e){return Wl="useRef",uc(),Yl(),bu()},useState:function(e){Wl="useState",uc(),Yl();var t=Rl.current;Rl.current=oc;try{return mu()}finally{Rl.current=t}},useDebugValue:function(e,t){return Wl="useDebugValue",uc(),Yl(),Mu()},useDeferredValue:function(e){return Wl="useDeferredValue",uc(),Yl(),zu(e)},useTransition:function(){return Wl="useTransition",uc(),Yl(),$u()},useMutableSource:function(e,t,n){Wl="useMutableSource",uc(),Yl()},useSyncExternalStore:function(e,t,n){return Wl="useSyncExternalStore",uc(),Yl(),lu(e,t)},useId:function(){return Wl="useId",uc(),Yl(),Yu()},unstable_isNewReconciler:h};var cc=r.unstable_now,dc=0,hc=-1,fc=-1,pc=-1,gc=!1,yc=!1;function vc(){return gc}function bc(){return dc}function xc(){dc=cc()}function Sc(e){fc=cc(),e.actualStartTime<0&&(e.actualStartTime=cc())}function wc(e){fc=-1}function _c(e,t){if(fc>=0){var n=cc()-fc;e.actualDuration+=n,t&&(e.selfBaseDuration=n),fc=-1}}function Tc(e){if(hc>=0){var t=cc()-hc;hc=-1;for(var n=e.return;null!==n;){switch(n.tag){case _:case M:return void(n.stateNode.effectDuration+=t)}n=n.return}}}function Ac(e){if(pc>=0){var t=cc()-pc;pc=-1;for(var n=e.return;null!==n;){switch(n.tag){case _:var r=n.stateNode;return void(null!==r&&(r.passiveEffectDuration+=t));case M:var i=n.stateNode;return void(null!==i&&(i.passiveEffectDuration+=t))}n=n.return}}}function kc(){hc=cc()}function Cc(){pc=cc()}function Ec(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Pc(e,t){if(e&&e.defaultProps){var n=c({},t),r=e.defaultProps;for(var i in r)void 0===n[i]&&(n[i]=r[i]);return n}return t}var Bc,Rc,Mc,Lc,Oc,Ic,Nc,Dc,Uc,zc,Fc,jc={};Bc=new Set,Rc=new Set,Mc=new Set,Lc=new Set,Dc=new Set,Oc=new Set,Uc=new Set,zc=new Set,Fc=new Set;var Wc=new Set;function Hc(e,t,n,r){var i=e.memoizedState,a=n(r,i);if(e.mode&Mr){xa(!0);try{a=n(r,i)}finally{xa(!1)}}Ic(t,a);var o=null==a?i:c({},i,a);e.memoizedState=o,e.lanes===Ur&&(e.updateQueue.baseState=o)}Nc=function(e,t){if(null!==e&&"function"!=typeof e){var n=t+"_"+e;Wc.has(n)||(Wc.add(n),s("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Ic=function(e,t){if(void 0===t){var n=le(e)||"Component";Oc.has(n)||(Oc.add(n),s("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(jc,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(jc);var $c={isMounted:function(e){var t=We.current;if(null!==t&&t.tag===S){var n=t,r=n.stateNode;r._warnedAboutRefsInRender||s("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",ce(n)||"A component"),r._warnedAboutRefsInRender=!0}var i=d(e);return!!i&&He(i)===i},enqueueSetState:function(e,t,n){var r=d(e),i=zp(),a=Fp(r),o=$s(i,a);o.payload=t,null!=n&&(Nc(n,"setState"),o.callback=n);var s=Vs(r,o,a);null!==s&&(Wp(s,r,a,i),Gs(s,r,a)),La(r,a)},enqueueReplaceState:function(e,t,n){var r=d(e),i=zp(),a=Fp(r),o=$s(i,a);o.tag=Us,o.payload=t,null!=n&&(Nc(n,"replaceState"),o.callback=n);var s=Vs(r,o,a);null!==s&&(Wp(s,r,a,i),Gs(s,r,a)),La(r,a)},enqueueForceUpdate:function(e,t){var n=d(e),r=zp(),i=Fp(n),a=$s(r,i);a.tag=zs,null!=t&&(Nc(t,"forceUpdate"),a.callback=t);var o=Vs(n,a,i);null!==o&&(Wp(o,n,i,r),Gs(o,n,i)),function(e,t){null!==ya&&"function"==typeof ya.markForceUpdateScheduled&&ya.markForceUpdateScheduled(e,t)}(n,i)}};function Vc(e,t,n,r,i,a,o){var l=e.stateNode;if("function"==typeof l.shouldComponentUpdate){var u=l.shouldComponentUpdate(r,a,o);if(e.mode&Mr){xa(!0);try{u=l.shouldComponentUpdate(r,a,o)}finally{xa(!1)}}return void 0===u&&s("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",le(t)||"Component"),u}return!(t.prototype&&t.prototype.isPureReactComponent&&Bo(n,r)&&Bo(i,a))}function Gc(e,t){t.updater=$c,e.stateNode=t,function(e,t){e._reactInternals=t}(t,e),t._reactInternalInstance=jc}function Yc(e,t,n){var r=!1,i=dr,a=dr,o=t.contextType;if("contextType"in t&&null!==o&&(void 0===o||o.$$typeof!==K||void 0!==o._context)&&!zc.has(t)){zc.add(t);var l="";l=void 0===o?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof o?" However, it is set to a "+typeof o+".":o.$$typeof===X?" Did you accidentally pass the Context.Provider instead?":void 0!==o._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",s("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",le(t)||"Component",l)}"object"==typeof o&&null!==o?a=Es(o):(i=gr(0,t,!0),a=(r=null!=t.contextTypes)?yr(e,i):dr);var u=new t(n,a);if(e.mode&Mr){xa(!0);try{u=new t(n,a)}finally{xa(!1)}}var c=e.memoizedState=null!==u.state&&void 0!==u.state?u.state:null;if(Gc(e,u),"function"==typeof t.getDerivedStateFromProps&&null===c){var d=le(t)||"Component";Rc.has(d)||(Rc.add(d),s("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",d,null===u.state?"null":"undefined",d))}if("function"==typeof t.getDerivedStateFromProps||"function"==typeof u.getSnapshotBeforeUpdate){var h=null,f=null,p=null;if("function"==typeof u.componentWillMount&&!0!==u.componentWillMount.__suppressDeprecationWarning?h="componentWillMount":"function"==typeof u.UNSAFE_componentWillMount&&(h="UNSAFE_componentWillMount"),"function"==typeof u.componentWillReceiveProps&&!0!==u.componentWillReceiveProps.__suppressDeprecationWarning?f="componentWillReceiveProps":"function"==typeof u.UNSAFE_componentWillReceiveProps&&(f="UNSAFE_componentWillReceiveProps"),"function"==typeof u.componentWillUpdate&&!0!==u.componentWillUpdate.__suppressDeprecationWarning?p="componentWillUpdate":"function"==typeof u.UNSAFE_componentWillUpdate&&(p="UNSAFE_componentWillUpdate"),null!==h||null!==f||null!==p){var g=le(t)||"Component",m="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Lc.has(g)||(Lc.add(g),s("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles",g,m,null!==h?"\n "+h:"",null!==f?"\n "+f:"",null!==p?"\n "+p:""))}}return r&&mr(e,i,a),u}function qc(e,t,n,r){var i=t.state;if("function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i){var a=ce(e)||"Component";Bc.has(a)||(Bc.add(a),s("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),$c.enqueueReplaceState(t,t.state,null)}}function Qc(e,t,n,r){!function(e,t,n){var r=e.stateNode,i=le(t)||"Component";r.render||(t.prototype&&"function"==typeof t.prototype.render?s("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",i):s("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",i)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||s("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",i),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&s("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",i),r.propTypes&&s("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",i),r.contextType&&s("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",i),t.childContextTypes&&!Fc.has(t)&&(e.mode&Mr)===Pr&&(Fc.add(t),s("%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead\n\n.Learn more about this warning here: https://reactjs.org/link/legacy-context",i)),t.contextTypes&&!Fc.has(t)&&(e.mode&Mr)===Pr&&(Fc.add(t),s("%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",i)),r.contextTypes&&s("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",i),t.contextType&&t.contextTypes&&!Uc.has(t)&&(Uc.add(t),s("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",i)),"function"==typeof r.componentShouldUpdate&&s("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",i),t.prototype&&t.prototype.isPureReactComponent&&void 0!==r.shouldComponentUpdate&&s("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",le(t)||"A pure component"),"function"==typeof r.componentDidUnmount&&s("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",i),"function"==typeof r.componentDidReceiveProps&&s("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",i),"function"==typeof r.componentWillRecieveProps&&s("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",i),"function"==typeof r.UNSAFE_componentWillRecieveProps&&s("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",i);var a=r.props!==n;void 0!==r.props&&a&&s("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",i,i),r.defaultProps&&s("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",i,i),"function"!=typeof r.getSnapshotBeforeUpdate||"function"==typeof r.componentDidUpdate||Mc.has(t)||(Mc.add(t),s("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",le(t))),"function"==typeof r.getDerivedStateFromProps&&s("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",i),"function"==typeof r.getDerivedStateFromError&&s("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",i),"function"==typeof t.getSnapshotBeforeUpdate&&s("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",i);var o=r.state;o&&("object"!=typeof o||Ke(o))&&s("%s.state: must be set to an object or null",i),"function"==typeof r.getChildContext&&"object"!=typeof t.childContextTypes&&s("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",i)}(e,t,n);var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ws(e);var a=t.contextType;if("object"==typeof a&&null!==a)i.context=Es(a);else{var o=gr(0,t,!0);i.context=yr(e,o)}if(i.state===n){var l=le(t)||"Component";Dc.has(l)||(Dc.add(l),s("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",l))}e.mode&Mr&&Fo.recordLegacyContextWarning(e,i),Fo.recordUnsafeLifecycleWarnings(e,i),i.state=e.memoizedState;var u=t.getDerivedStateFromProps;if("function"==typeof u&&(Hc(e,t,u,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(function(e,t){var n=t.state;"function"==typeof t.componentWillMount&&t.componentWillMount(),"function"==typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),n!==t.state&&(s("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ce(e)||"Component"),$c.enqueueReplaceState(t,t.state,null))}(e,i),Qs(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount){var c=pe;c|=Le,(e.mode&Lr)!==Pr&&(c|=Ie),e.flags|=c}}function Xc(e,t){return{value:e,source:t,stack:Mo(t),digest:null}}function Kc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Zc(e,t){try{var n=t.value,r=t.source,i=t.stack,a=null!==i?i:"";if(null!=n&&n._suppressLogging){if(e.tag===S)return;console.error(n)}var o=r?ce(r):null,s=(o?"The above error occurred in the <"+o+"> component:":"The above error occurred in one of your React components:")+"\n"+a+"\n\n"+(e.tag===_?"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries.":"React will try to recreate this component tree from scratch using the error boundary you provided, "+(ce(e)||"Anonymous")+".");console.error(s)}catch(e){setTimeout((function(){throw e}))}}var Jc="function"==typeof WeakMap?WeakMap:Map;function ed(e,t,n){var r=$s(wi,n);r.tag=Fs,r.payload={element:null};var i=t.value;return r.callback=function(){hg(i),Zc(e,t)},r}function td(e,t,n){var r=$s(wi,n);r.tag=Fs;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var a=t.value;r.payload=function(){return i(a)},r.callback=function(){zg(e),Zc(e,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){var n;zg(e),Zc(e,t),"function"!=typeof i&&(n=this,null===Sp?Sp=new Set([n]):Sp.add(n));var r=t.value,a=t.stack;this.componentDidCatch(r,{componentStack:null!==a?a:""}),"function"!=typeof i&&(Ui(e.lanes,Fr)||s("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ce(e)||"Unknown"))}),r}function nd(e,t,n){var r,i=e.pingCache;if(null===i?(i=e.pingCache=new Jc,r=new Set,i.set(t,r)):void 0===(r=i.get(t))&&(r=new Set,i.set(t,r)),!r.has(n)){r.add(n);var a=gg.bind(null,e,t,n);ba&&kg(e,n),t.then(a,a)}}function rd(e){var t=e;do{if(t.tag===L&&xl(t))return t;t=t.return}while(null!==t);return null}function id(e,t,n,r,i){if((e.mode&Br)===Pr){if(e===t)e.flags|=Pe;else{if(e.flags|=ve,n.flags|=Be,n.flags&=~(ke|Ee),n.tag===S)if(null===n.alternate)n.tag=D;else{var a=$s(wi,Fr);a.tag=zs,Vs(n,a,Fr)}n.lanes=Fi(n.lanes,Fr)}return e}return e.flags|=Pe,e.lanes=i,e}function ad(e,t,n,r,i){if(n.flags|=Ee,ba&&kg(e,i),null!==r&&"object"==typeof r&&"function"==typeof r.then){var a=r;!function(e,t){var n=e.tag;if((e.mode&Br)===Pr&&(n===x||n===R||n===I)){var r=e.alternate;r?(e.updateQueue=r.updateQueue,e.memoizedState=r.memoizedState,e.lanes=r.lanes):(e.updateQueue=null,e.memoizedState=null)}}(n),ko()&&n.mode&Br&&co();var o=rd(t);if(null!==o)return o.flags&=~be,id(o,t,n,0,i),o.mode&Br&&nd(e,a,i),void function(e,t,n,r){var i=e.updateQueue;if(null===i){var a=new Set;a.add(n),e.updateQueue=a}else i.add(n)}(o,0,a);if((i&Fr)===Ur)return nd(e,a,i),void rg();r=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.")}else if(ko()&&n.mode&Br){co();var s=rd(t);if(null!==s)return(s.flags&Pe)===de&&(s.flags|=be),id(s,t,n,0,i),void Co(Xc(r,n))}!function(e){ap!==Xf&&(ap=qf),null===cp?cp=[e]:cp.push(e)}(r=Xc(r,n));var l=t;do{switch(l.tag){case _:var u=r;l.flags|=Pe;var c=Ii(i);return l.lanes=Fi(l.lanes,c),void Ys(l,ed(l,u,c));case S:var d=r,h=l.type,f=l.stateNode;if((l.flags&ve)===de&&("function"==typeof h.getDerivedStateFromError||null!==f&&"function"==typeof f.componentDidCatch&&!dg(f))){l.flags|=Pe;var p=Ii(i);return l.lanes=Fi(l.lanes,p),void Ys(l,td(l,d,p))}}l=l.return}while(null!==l)}var od,sd,ld,ud,cd,dd,hd,fd,pd,gd=i.ReactCurrentOwner,md=!1;function yd(e,t,n,r){t.child=null===e?hs(t,null,n,r):ds(t,e.child,n,r)}function vd(e,t,n,r,i){if(t.type!==t.elementType){var a=n.propTypes;a&&rr(a,r,"prop",le(n))}var o,s,l=n.render,u=t.ref;if(Cs(t,i),Ta(t),gd.current=t,zo(!0),o=Kl(e,t,l,r,u,i),s=Zl(),t.mode&Mr){xa(!0);try{o=Kl(e,t,l,r,u,i),s=Zl()}finally{xa(!1)}}return zo(!1),Aa(),null===e||md?(ko()&&s&&eo(t),t.flags|=he,yd(e,t,o,i),t.child):(Jl(e,t,i),Xd(e,t,i))}function bd(e,t,n,r,i){if(null===e){var a,o=n.type;if(function(e){return"function"==typeof e&&!Kg(e)&&void 0===e.defaultProps}(o)&&null===n.compare&&void 0===n.defaultProps)return a=Ig(o),t.tag=I,t.type=a,Bd(t,o),xd(e,t,a,r,i);var l=o.propTypes;if(l&&rr(l,r,"prop",le(o)),void 0!==n.defaultProps){var u=le(o)||"Unknown";pd[u]||(s("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),pd[u]=!0)}var c=em(n.type,null,r,t,t.mode,i);return c.ref=t.ref,c.return=t,t.child=c,c}var d=n.type,h=d.propTypes;h&&rr(h,r,"prop",le(d));var f=e.child;if(!Kd(e,i)){var p=f.memoizedProps,g=n.compare;if((g=null!==g?g:Bo)(p,r)&&e.ref===t.ref)return Xd(e,t,i)}t.flags|=he;var m=Zg(f,r);return m.ref=t.ref,m.return=t,t.child=m,m}function xd(e,t,n,r,i){if(t.type!==t.elementType){var a=t.elementType;if(a.$$typeof===ne){var o=a,s=o._payload,l=o._init;try{a=l(s)}catch(e){a=null}var u=a&&a.propTypes;u&&rr(u,r,"prop",le(a))}}if(null!==e){var c=e.memoizedProps;if(Bo(c,r)&&e.ref===t.ref&&t.type===e.type){if(md=!1,t.pendingProps=r=c,!Kd(e,i))return t.lanes=e.lanes,Xd(e,t,i);(e.flags&Be)!==de&&(md=!0)}}return _d(e,t,n,r,i)}function Sd(e,t,n){var r,i=t.pendingProps,a=i.children,o=null!==e?e.memoizedState:null;if("hidden"===i.mode||p)if((t.mode&Br)===Pr){var s={baseLanes:Ur,cachePool:null,transitions:null};t.memoizedState=s,Xp(t,n)}else{if(!Ui(n,xi)){var l;l=null!==o?Fi(o.baseLanes,n):n,t.lanes=t.childLanes=xi;var u={baseLanes:l,cachePool:null,transitions:null};return t.memoizedState=u,t.updateQueue=null,Xp(t,l),null}var c={baseLanes:Ur,cachePool:null,transitions:null};t.memoizedState=c,Xp(t,null!==o?o.baseLanes:n)}else null!==o?(r=Fi(o.baseLanes,n),t.memoizedState=null):r=n,Xp(t,r);return yd(e,t,a,n),t.child}function wd(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=xe,t.flags|=Me)}function _d(e,t,n,r,i){if(t.type!==t.elementType){var a=n.propTypes;a&&rr(a,r,"prop",le(n))}var o,s,l;if(o=yr(t,gr(0,n,!0)),Cs(t,i),Ta(t),gd.current=t,zo(!0),s=Kl(e,t,n,r,o,i),l=Zl(),t.mode&Mr){xa(!0);try{s=Kl(e,t,n,r,o,i),l=Zl()}finally{xa(!1)}}return zo(!1),Aa(),null===e||md?(ko()&&l&&eo(t),t.flags|=he,yd(e,t,s,i),t.child):(Jl(e,t,i),Xd(e,t,i))}function Td(e,t,n,r,i){switch(pm(t)){case!1:var a=t.stateNode,o=new(0,t.type)(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,o,null);break;case!0:t.flags|=ve,t.flags|=Pe;var l=new Error("Simulated error coming from DevTools"),u=Ii(i);t.lanes=Fi(t.lanes,u),Ys(t,td(t,Xc(l,t),u))}if(t.type!==t.elementType){var c=n.propTypes;c&&rr(c,r,"prop",le(n))}var d,h;br(n)?(d=!0,Tr(t)):d=!1,Cs(t,i),null===t.stateNode?(Qd(e,t),Yc(t,n,r),Qc(t,n,r,i),h=!0):h=null===e?function(e,t,n,r){var i=e.stateNode,a=e.memoizedProps;i.props=a;var o=i.context,s=t.contextType,l=dr;l="object"==typeof s&&null!==s?Es(s):yr(e,gr(0,t,!0));var u=t.getDerivedStateFromProps,c="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;c||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||a===n&&o===l||qc(e,i,n,l),Ks();var d=e.memoizedState,h=i.state=d;if(Qs(e,n,i,r),h=e.memoizedState,a===n&&d===h&&!vr()&&!Zs()){if("function"==typeof i.componentDidMount){var f=pe;f|=Le,(e.mode&Lr)!==Pr&&(f|=Ie),e.flags|=f}return!1}"function"==typeof u&&(Hc(e,t,u,n),h=e.memoizedState);var p=Zs()||Vc(e,t,a,n,d,h,l);if(p){if(c||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount){var g=pe;g|=Le,(e.mode&Lr)!==Pr&&(g|=Ie),e.flags|=g}}else{if("function"==typeof i.componentDidMount){var m=pe;m|=Le,(e.mode&Lr)!==Pr&&(m|=Ie),e.flags|=m}e.memoizedProps=n,e.memoizedState=h}return i.props=n,i.state=h,i.context=l,p}(t,n,r,i):function(e,t,n,r,i){var a=t.stateNode;Hs(e,t);var o=t.memoizedProps,s=t.type===t.elementType?o:Pc(t.type,o);a.props=s;var l=t.pendingProps,u=a.context,c=n.contextType,d=dr;d="object"==typeof c&&null!==c?Es(c):yr(t,gr(0,n,!0));var h=n.getDerivedStateFromProps,p="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||o===l&&u===d||qc(t,a,r,d),Ks();var g=t.memoizedState,m=a.state=g;if(Qs(t,r,a,i),m=t.memoizedState,o===l&&g===m&&!vr()&&!Zs()&&!f)return"function"==typeof a.componentDidUpdate&&(o===e.memoizedProps&&g===e.memoizedState||(t.flags|=pe)),"function"==typeof a.getSnapshotBeforeUpdate&&(o===e.memoizedProps&&g===e.memoizedState||(t.flags|=Se)),!1;"function"==typeof h&&(Hc(t,n,h,r),m=t.memoizedState);var y=Zs()||Vc(t,n,s,r,g,m,d)||f;return y?(p||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,d),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,d)),"function"==typeof a.componentDidUpdate&&(t.flags|=pe),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=Se)):("function"==typeof a.componentDidUpdate&&(o===e.memoizedProps&&g===e.memoizedState||(t.flags|=pe)),"function"==typeof a.getSnapshotBeforeUpdate&&(o===e.memoizedProps&&g===e.memoizedState||(t.flags|=Se)),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=d,y}(e,t,n,r,i);var p=Ad(e,t,n,h,d,i),g=t.stateNode;return h&&g.props!==r&&(dd||s("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ce(t)||"a component"),dd=!0),p}function Ad(e,t,n,r,i,a){wd(e,t);var o=(t.flags&ve)!==de;if(!r&&!o)return i&&Ar(t,n,!1),Xd(e,t,a);var s,l=t.stateNode;if(gd.current=t,o&&"function"!=typeof n.getDerivedStateFromError)s=null,wc();else{if(Ta(t),zo(!0),s=l.render(),t.mode&Mr){xa(!0);try{l.render()}finally{xa(!1)}}zo(!1),Aa()}return t.flags|=he,null!==e&&o?function(e,t,n,r){t.child=ds(t,e.child,null,r),t.child=ds(t,null,n,r)}(e,t,s,a):yd(e,t,s,a),t.memoizedState=l.state,i&&Ar(t,n,!0),t.child}function kd(e){var t=e.stateNode;t.pendingContext?wr(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wr(e,t.context,!1),ol(e,t.containerInfo)}function Cd(e,t,n){if(kd(t),null===e)throw new Error("Should have a current fiber. This is a bug in React.");var r=t.pendingProps,i=t.memoizedState,a=i.element;Hs(e,t),Qs(t,r,null,n);var o=t.memoizedState;t.stateNode;var s=o.element;if(mt&&i.isDehydrated){var l={element:s,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions};if(t.updateQueue.baseState=l,t.memoizedState=l,t.flags&be)return Ed(e,t,s,n,Xc(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t));if(s!==a)return Ed(e,t,s,n,Xc(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t));!function(e){if(!mt)return!1;var t=e.stateNode.containerInfo;ao=mn(t),io=e,oo=!0,lo=null,so=!1}(t);var u=hs(t,null,s,n);t.child=u;for(var c=u;c;)c.flags=c.flags&~fe|_e,c=c.sibling}else{if(To(),s===a)return Xd(e,t,n);yd(e,t,s,n)}return t.child}function Ed(e,t,n,r,i){return To(),Co(i),t.flags|=be,yd(e,t,n,r),t.child}function Pd(e,t,n,r){Qd(e,t);var i=t.pendingProps,a=n,o=a._payload,s=(0,a._init)(o);t.type=s;var l=t.tag=function(e){if("function"==typeof e)return Kg(e)?S:x;if(null!=e){var t=e.$$typeof;if(t===Z)return R;if(t===te)return O}return w}(s),u=Pc(s,i);switch(l){case x:return Bd(t,s),t.type=s=Ig(s),_d(null,t,s,u,r);case S:return t.type=s=Ng(s),Td(null,t,s,u,r);case R:return t.type=s=Dg(s),vd(null,t,s,u,r);case O:if(t.type!==t.elementType){var c=s.propTypes;c&&rr(c,u,"prop",le(s))}return bd(null,t,s,Pc(s.type,u),r)}var d="";throw null!==s&&"object"==typeof s&&s.$$typeof===ne&&(d=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+s+". Lazy element type must resolve to a class or function."+d)}function Bd(e,t){if(t&&t.childContextTypes&&s("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),null!==e.ref){var n="",r=function(){if(null===Oo)return null;var e=Oo._debugOwner;return null!=e?ce(e):null}();r&&(n+="\n\nCheck the render method of `"+r+"`.");var i=r||"",a=e._debugSource;a&&(i=a.fileName+":"+a.lineNumber),cd[i]||(cd[i]=!0,s("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(void 0!==t.defaultProps){var o=le(t)||"Unknown";pd[o]||(s("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),pd[o]=!0)}if("function"==typeof t.getDerivedStateFromProps){var l=le(t)||"Unknown";ud[l]||(s("%s: Function components do not support getDerivedStateFromProps.",l),ud[l]=!0)}if("object"==typeof t.contextType&&null!==t.contextType){var u=le(t)||"Unknown";ld[u]||(s("%s: Function components do not support contextType.",u),ld[u]=!0)}}od={},sd={},ld={},ud={},cd={},dd=!1,hd={},fd={},pd={};var Rd={dehydrated:null,treeContext:null,retryLane:zr};function Md(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ld(e,t,n){var r=t.pendingProps;mm(t)&&(t.flags|=ve);var i=pl.current,a=!1,o=(t.flags&ve)!==de;if(o||function(e,t,n,r){return(null===t||null!==t.memoizedState)&&gl(e,fl)}(i,e)?(a=!0,t.flags&=~ve):null!==e&&null===e.memoizedState||(i|=hl),vl(t,i=ml(i)),null===e){xo(t);var l=t.memoizedState;if(null!==l){var u=l.dehydrated;if(null!==u)return function(e,t,n){return(e.mode&Br)===Pr?(s("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Fr):dn(t)?e.lanes=Hr:e.lanes=xi,null}(t,u)}var c=r.children,d=r.fallback;if(a){var h=function(e,t,n,r){var i,a,o=e.mode,s=e.child,l={mode:"hidden",children:t};return(o&Br)===Pr&&null!==s?((i=s).childLanes=Ur,i.pendingProps=l,e.mode&Rr&&(i.actualDuration=0,i.actualStartTime=-1,i.selfBaseDuration=0,i.treeBaseDuration=0),a=nm(n,o,r,null)):(i=Id(l,o),a=nm(n,o,r,null)),i.return=e,a.return=e,i.sibling=a,e.child=i,a}(t,c,d,n);return t.child.memoizedState=Md(n),t.memoizedState=Rd,h}return Od(t,c)}var f=e.memoizedState;if(null!==f){var p=f.dehydrated;if(null!==p)return function(e,t,n,r,i,a,o){if(n){if(t.flags&be)return t.flags&=~be,Dd(e,t,o,Kc(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")));if(null!==t.memoizedState)return t.child=e.child,t.flags|=ve,null;var s=function(e,t,n,r,i){var a=t.mode,o=Id({mode:"visible",children:n},a),s=nm(r,a,i,null);return s.flags|=fe,o.return=t,s.return=t,o.sibling=s,t.child=o,(t.mode&Br)!==Pr&&ds(t,e.child,null,i),s}(e,t,r.children,r.fallback,o);return t.child.memoizedState=Md(o),t.memoizedState=Rd,s}if(uo(),(t.mode&Br)===Pr)return Dd(e,t,o,null);if(dn(i)){var l,u,c,d=hn(i);return l=d.digest,u=d.message,c=d.stack,Dd(e,t,o,Kc(u?new Error(u):new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),l,c))}var h=Ui(o,e.childLanes);if(md||h){var f=Up();if(null!==f){var p=function(e,t){var n;switch(Oi(t)){case Wr:n=jr;break;case $r:n=Hr;break;case Yr:case qr:case Qr:case Xr:case Kr:case Zr:case Jr:case ei:case ti:case ni:case ri:case ii:case ai:case oi:case si:case li:case ci:case di:case hi:case fi:case pi:n=Vr;break;case bi:n=vi;break;default:n=zr}return(n&(e.suspendedLanes|t))!==zr?zr:n}(f,o);if(p!==zr&&p!==a.retryLane){a.retryLane=p;var g=wi;Ms(e,p),Wp(f,e,p,g)}}return rg(),Dd(e,t,o,Kc(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}if(cn(i)){t.flags|=ve,t.child=e.child;var m=yg.bind(null,e);return fn(i,m),null}ho(t,i,a.treeContext);var y=Od(t,r.children);return y.flags|=_e,y}(e,t,o,r,p,f,n)}if(a){var g=r.fallback,m=function(e,t,n,r,i){var a,o,s=t.mode,l=e.child,u=l.sibling,c={mode:"hidden",children:n};return(s&Br)===Pr&&t.child!==l?((a=t.child).childLanes=Ur,a.pendingProps=c,t.mode&Rr&&(a.actualDuration=0,a.actualStartTime=-1,a.selfBaseDuration=l.selfBaseDuration,a.treeBaseDuration=l.treeBaseDuration),t.deletions=null):(a=Nd(l,c)).subtreeFlags=l.subtreeFlags&je,null!==u?o=Zg(u,r):(o=nm(r,s,i,null)).flags|=fe,o.return=t,a.return=t,a.sibling=o,t.child=a,o}(e,t,r.children,g,n),y=t.child,v=e.child.memoizedState;return y.memoizedState=null===v?Md(n):function(e,t){return{baseLanes:Fi(e.baseLanes,t),cachePool:null,transitions:e.transitions}}(v,n),y.childLanes=function(e,t){return ji(e.childLanes,t)}(e,n),t.memoizedState=Rd,m}var b=function(e,t,n,r){var i=e.child,a=i.sibling,o=Nd(i,{mode:"visible",children:n});if((t.mode&Br)===Pr&&(o.lanes=r),o.return=t,o.sibling=null,null!==a){var s=t.deletions;null===s?(t.deletions=[a],t.flags|=ge):s.push(a)}return t.child=o,o}(e,t,r.children,n);return t.memoizedState=null,b}function Od(e,t,n){var r=Id({mode:"visible",children:t},e.mode);return r.return=e,e.child=r,r}function Id(e,t,n){return rm(e,t,Ur,null)}function Nd(e,t){return Zg(e,t)}function Dd(e,t,n,r){null!==r&&Co(r),ds(t,e.child,null,n);var i=Od(t,t.pendingProps.children);return i.flags|=fe,t.memoizedState=null,i}function Ud(e,t,n){e.lanes=Fi(e.lanes,t);var r=e.alternate;null!==r&&(r.lanes=Fi(r.lanes,t)),As(e.return,t,n)}function zd(e,t){var n=Ke(e),r=!n&&"function"==typeof oe(e);if(n||r){var i=n?"array":"iterable";return s("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",i,t,i),!1}return!0}function Fd(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function jd(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children;!function(e){if(void 0!==e&&"forwards"!==e&&"backwards"!==e&&"together"!==e&&!hd[e])if(hd[e]=!0,"string"==typeof e)switch(e.toLowerCase()){case"together":case"forwards":case"backwards":s('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break;case"forward":case"backward":s('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break;default:s('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}else s('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}(i),function(e,t){void 0===e||fd[e]||("collapsed"!==e&&"hidden"!==e?(fd[e]=!0,s('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):"forwards"!==t&&"backwards"!==t&&(fd[e]=!0,s('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}(a,i),function(e,t){if(("forwards"===t||"backwards"===t)&&null!=e&&!1!==e)if(Ke(e)){for(var n=0;n<e.length;n++)if(!zd(e[n],n))return}else{var r=oe(e);if("function"==typeof r){var i=r.call(e);if(i)for(var a=i.next(),o=0;!a.done;a=i.next()){if(!zd(a.value,o))return;o++}}else s('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}(o,i),yd(e,t,o,n);var l=pl.current;if(gl(l,fl)?(l=yl(l,fl),t.flags|=ve):(null!==e&&(e.flags&ve)!==de&&function(e,t,n){for(var r=t;null!==r;){if(r.tag===L)null!==r.memoizedState&&Ud(r,n,e);else if(r.tag===z)Ud(r,n,e);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}(t,t.child,n),l=ml(l)),vl(t,l),(t.mode&Br)===Pr)t.memoizedState=null;else switch(i){case"forwards":var u,c=function(e){for(var t=e,n=null;null!==t;){var r=t.alternate;null!==r&&null===Sl(r)&&(n=t),t=t.sibling}return n}(t.child);null===c?(u=t.child,t.child=null):(u=c.sibling,c.sibling=null),Fd(t,!1,u,c,a);break;case"backwards":var d=null,h=t.child;for(t.child=null;null!==h;){var f=h.alternate;if(null!==f&&null===Sl(f)){t.child=h;break}var p=h.sibling;h.sibling=d,d=h,h=p}Fd(t,!0,d,null,a);break;case"together":Fd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}var Wd,Hd,$d,Vd,Gd=!1,Yd=!1;function qd(){md=!0}function Qd(e,t){(t.mode&Br)===Pr&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=fe)}function Xd(e,t,n){return null!==e&&(t.dependencies=e.dependencies),wc(),ng(t.lanes),Ui(n,t.childLanes)?(function(e,t){if(null!==e&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(null!==t.child){var n=t.child,r=Zg(n,n.pendingProps);for(t.child=r,r.return=t;null!==n.sibling;)n=n.sibling,(r=r.sibling=Zg(n,n.pendingProps)).return=t;r.sibling=null}}(e,t),t.child):null}function Kd(e,t){return!!Ui(e.lanes,t)}function Zd(e,t,n){if(t._debugNeedsRemount&&null!==e)return function(e,t,n){var r=t.return;if(null===r)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===r.child)r.child=n;else{var i=r.child;if(null===i)throw new Error("Expected parent to have a child.");for(;i.sibling!==t;)if(null===(i=i.sibling))throw new Error("Expected to find the previous sibling.");i.sibling=n}var a=r.deletions;return null===a?(r.deletions=[e],r.flags|=ge):a.push(e),n.flags|=fe,n}(e,t,em(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(null!==e)if(e.memoizedProps!==t.pendingProps||vr()||t.type!==e.type)md=!0;else{if(!Kd(e,n)&&(t.flags&ve)===de)return md=!1,function(e,t,n){switch(t.tag){case _:kd(t),t.stateNode,To();break;case A:ul(t);break;case S:br(t.type)&&Tr(t);break;case T:ol(t,t.stateNode.containerInfo);break;case B:var r=t.memoizedProps.value;_s(t,t.type._context,r);break;case M:Ui(n,t.childLanes)&&(t.flags|=pe);var i=t.stateNode;i.effectDuration=0,i.passiveEffectDuration=0;break;case L:var a=t.memoizedState;if(null!==a){if(null!==a.dehydrated)return vl(t,ml(pl.current)),t.flags|=ve,null;if(Ui(n,t.child.childLanes))return Ld(e,t,n);vl(t,ml(pl.current));var o=Xd(e,t,n);return null!==o?o.sibling:null}vl(t,ml(pl.current));break;case z:var s=(e.flags&ve)!==de,l=Ui(n,t.childLanes);if(s){if(l)return jd(e,t,n);t.flags|=ve}var u=t.memoizedState;if(null!==u&&(u.rendering=null,u.tail=null,u.lastEffect=null),vl(t,pl.current),l)break;return null;case j:case W:return t.lanes=Ur,Sd(e,t,n)}return Xd(e,t,n)}(e,t,n);md=(e.flags&Be)!==de}else if(md=!1,ko()&&function(e){return ro(),(e.flags&Re)!==de}(t)){var r=t.index;Ja(t,(ro(),Va),r)}switch(t.lanes=Ur,t.tag){case w:return function(e,t,n,r){Qd(e,t);var i,a,o,l=t.pendingProps;if(i=yr(t,gr(0,n,!1)),Cs(t,r),Ta(t),n.prototype&&"function"==typeof n.prototype.render){var u=le(n)||"Unknown";od[u]||(s("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",u,u),od[u]=!0)}if(t.mode&Mr&&Fo.recordLegacyContextWarning(t,null),zo(!0),gd.current=t,a=Kl(null,t,n,l,i,r),o=Zl(),zo(!1),Aa(),t.flags|=he,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){var c=le(n)||"Unknown";sd[c]||(s("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",c,c,c),sd[c]=!0)}if("object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){var d=le(n)||"Unknown";sd[d]||(s("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",d,d,d),sd[d]=!0),t.tag=S,t.memoizedState=null,t.updateQueue=null;var h=!1;return br(n)?(h=!0,Tr(t)):h=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Ws(t),Gc(t,a),Qc(t,n,l,r),Ad(null,t,n,!0,h,r)}if(t.tag=x,t.mode&Mr){xa(!0);try{a=Kl(null,t,n,l,i,r),o=Zl()}finally{xa(!1)}}return ko()&&o&&eo(t),yd(null,t,a,r),Bd(t,n),t.child}(e,t,t.type,n);case N:return Pd(e,t,t.elementType,n);case x:var i=t.type,a=t.pendingProps;return _d(e,t,i,t.elementType===i?a:Pc(i,a),n);case S:var o=t.type,l=t.pendingProps;return Td(e,t,o,t.elementType===o?l:Pc(o,l),n);case _:return Cd(e,t,n);case A:return function(e,t,n){ul(t),null===e&&xo(t);var r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children;return st(r,i)?o=null:null!==a&&st(r,a)&&(t.flags|=me),wd(e,t),yd(e,t,o,n),t.child}(e,t,n);case k:return function(e,t){return null===e&&xo(t),null}(e,t);case L:return Ld(e,t,n);case T:return function(e,t,n){ol(t,t.stateNode.containerInfo);var r=t.pendingProps;return null===e?t.child=ds(t,null,r,n):yd(e,t,r,n),t.child}(e,t,n);case R:var u=t.type,c=t.pendingProps;return vd(e,t,u,t.elementType===u?c:Pc(u,c),n);case C:return function(e,t,n){return yd(e,t,t.pendingProps,n),t.child}(e,t,n);case E:return function(e,t,n){return yd(e,t,t.pendingProps.children,n),t.child}(e,t,n);case M:return function(e,t,n){t.flags|=pe;var r=t.stateNode;return r.effectDuration=0,r.passiveEffectDuration=0,yd(e,t,t.pendingProps.children,n),t.child}(e,t,n);case B:return function(e,t,n){var r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;"value"in i||Gd||(Gd=!0,s("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var l=t.type.propTypes;if(l&&rr(l,i,"prop","Context.Provider"),_s(t,r,o),null!==a){var u=a.value;if(Oa(u,o)){if(a.children===i.children&&!vr())return Xd(e,t,n)}else ks(t,r,n)}return yd(e,t,i.children,n),t.child}(e,t,n);case P:return function(e,t,n){var r=t.type;void 0===r._context?r!==r.Consumer&&(Yd||(Yd=!0,s("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var i=t.pendingProps.children;"function"!=typeof i&&s("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Cs(t,n);var a,o=Es(r);return Ta(t),gd.current=t,zo(!0),a=i(o),zo(!1),Aa(),t.flags|=he,yd(e,t,a,n),t.child}(e,t,n);case O:var d=t.type,h=Pc(d,t.pendingProps);if(t.type!==t.elementType){var f=d.propTypes;f&&rr(f,h,"prop",le(d))}return bd(e,t,d,h=Pc(d.type,h),n);case I:return xd(e,t,t.type,t.pendingProps,n);case D:var p=t.type,g=t.pendingProps;return function(e,t,n,r,i){var a;return Qd(e,t),t.tag=S,br(n)?(a=!0,Tr(t)):a=!1,Cs(t,i),Yc(t,n,r),Qc(t,n,r,i),Ad(null,t,n,!0,a,i)}(e,t,p,t.elementType===p?g:Pc(p,g),n);case z:return jd(e,t,n);case F:break;case j:return Sd(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Jd(e){e.flags|=pe}function eh(e){e.flags|=xe,e.flags|=Me}function th(e,t){if(null!==e&&e.child===t.child)return!0;if((t.flags&ge)!==de)return!1;for(var n=t.child;null!==n;){if((n.flags&Ue)!==de||(n.subtreeFlags&Ue)!==de)return!1;n=n.sibling}return!0}if(pt)Wd=function(e,t,n,r){for(var i=t.child;null!==i;){if(i.tag===A||i.tag===k)it(e,i.stateNode);else if(i.tag===T);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)return;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},Hd=function(e,t){},$d=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var o=t.stateNode,s=ll(),l=ot(o,n,a,r,i,s);t.updateQueue=l,l&&Jd(t)}},Vd=function(e,t,n,r){n!==r&&Jd(t)};else if(gt){Wd=function(e,t,n,r){for(var i=t.child;null!==i;){if(i.tag===A){var a=i.stateNode;if(n&&r){var o=i.memoizedProps,s=i.type;a=an(a,s,o,i)}it(e,a)}else if(i.tag===k){var l=i.stateNode;if(n&&r){var u=i.memoizedProps;l=on(l,u,i)}it(e,l)}else if(i.tag===T);else if(i.tag===j&&null!==i.memoizedState){var c=i.child;null!==c&&(c.return=i),Wd(e,i,!0,!0)}else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)return;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};var nh=function(e,t,n,r){for(var i=t.child;null!==i;){if(i.tag===A){var a=i.stateNode;if(n&&r){var o=i.memoizedProps,s=i.type;a=an(a,s,o,i)}tn(e,a)}else if(i.tag===k){var l=i.stateNode;if(n&&r){var u=i.memoizedProps;l=on(l,u,i)}tn(e,l)}else if(i.tag===T);else if(i.tag===j&&null!==i.memoizedState){var c=i.child;null!==c&&(c.return=i),nh(e,i,!0,!0)}else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)return;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};Hd=function(e,t){var n=t.stateNode;if(th(e,t));else{var r=n.containerInfo,i=en(r);nh(i,t,!1,!1),n.pendingChildren=i,Jd(t),nn(r,i)}},$d=function(e,t,n,r,i){var a=e.stateNode,o=e.memoizedProps,s=th(e,t);if(s&&o===r)t.stateNode=a;else{var l=t.stateNode,u=ll(),c=null;if(o!==r&&(c=ot(l,n,o,r,i,u)),s&&null===c)t.stateNode=a;else{var d=Jt(a,c,n,o,r,t,s,l);at(d,n,r,i,u)&&Jd(t),t.stateNode=d,s?Jd(t):Wd(d,t,!1,!1)}}},Vd=function(e,t,n,r){if(n!==r){var i=al(),a=ll();t.stateNode=lt(r,i,a,t),Jd(t)}else t.stateNode=e.stateNode}}else Hd=function(e,t){},$d=function(e,t,n,r,i){},Vd=function(e,t,n,r){};function rh(e,t){if(!ko())switch(e.tailMode){case"hidden":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":for(var i=e.tail,a=null;null!==i;)null!==i.alternate&&(a=i),i=i.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ih(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=Ur,r=de;if(t){if((e.mode&Rr)!==Pr){for(var i=e.selfBaseDuration,a=e.child;null!==a;)n=Fi(n,Fi(a.lanes,a.childLanes)),r|=a.subtreeFlags&je,r|=a.flags&je,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(var o=e.child;null!==o;)n=Fi(n,Fi(o.lanes,o.childLanes)),r|=o.subtreeFlags&je,r|=o.flags&je,o.return=e,o=o.sibling;e.subtreeFlags|=r}else{if((e.mode&Rr)!==Pr){for(var s=e.actualDuration,l=e.selfBaseDuration,u=e.child;null!==u;)n=Fi(n,Fi(u.lanes,u.childLanes)),r|=u.subtreeFlags,r|=u.flags,s+=u.actualDuration,l+=u.treeBaseDuration,u=u.sibling;e.actualDuration=s,e.treeBaseDuration=l}else for(var c=e.child;null!==c;)n=Fi(n,Fi(c.lanes,c.childLanes)),r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;e.subtreeFlags|=r}return e.childLanes=n,t}function ah(e,t,n){if(oo&&null!==ao&&(t.mode&Br)!==Pr&&(t.flags&ve)===de)return _o(t),To(),t.flags|=be|Ee|Pe,!1;var r=wo(t);if(null!==n&&null!==n.dehydrated){if(null===e){if(!r)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(function(e){if(!mt)throw new Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");xn(n,e)}(t),ih(t),(t.mode&Rr)!==Pr&&null!==n){var i=t.child;null!==i&&(t.treeBaseDuration-=i.treeBaseDuration)}return!1}if(To(),(t.flags&ve)===de&&(t.memoizedState=null),t.flags|=pe,ih(t),(t.mode&Rr)!==Pr&&null!==n){var a=t.child;null!==a&&(t.treeBaseDuration-=a.treeBaseDuration)}return!1}return Ao(),!0}function oh(e,t,n){var r=t.pendingProps;switch(no(t),t.tag){case w:case N:case I:case x:case R:case C:case E:case M:case P:case O:return ih(t),null;case S:return br(t.type)&&xr(t),ih(t),null;case _:var i=t.stateNode;return sl(t),Sr(t),El(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===e||null===e.child)&&(wo(t)?Jd(t):null!==e&&(e.memoizedState.isDehydrated&&(t.flags&be)===de||(t.flags|=Se,Ao()))),Hd(e,t),ih(t),null;case A:cl(t);var a=al(),o=t.type;if(null!==e&&null!=t.stateNode)$d(e,t,o,r,a),e.ref!==t.ref&&eh(t);else{if(!r){if(null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ih(t),null}var s=ll();if(wo(t))(function(e,t,n){if(!mt)throw new Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var r=e.stateNode,i=!so,a=vn(r,e.type,e.memoizedProps,t,n,e,i);return e.updateQueue=a,null!==a})(t,a,s)&&Jd(t);else{var l=rt(o,r,a,s,t);Wd(l,t,!1,!1),t.stateNode=l,at(l,o,r,a,s)&&Jd(t)}null!==t.ref&&eh(t)}return ih(t),null;case k:var u=r;if(e&&null!=t.stateNode){var c=e.memoizedProps;Vd(e,t,c,u)}else{if("string"!=typeof u&&null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var d=al(),h=ll();wo(t)?function(e){if(!mt)throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var t=e.stateNode,n=e.memoizedProps,r=bn(t,n,e,!so);if(r){var i=io;if(null!==i)switch(i.tag){case _:var a=i.stateNode.containerInfo,o=(i.mode&Br)!==Pr;Cn(a,t,n,o);break;case A:var s=i.type,l=i.memoizedProps,u=i.stateNode,c=(i.mode&Br)!==Pr;En(s,l,u,t,n,c)}}return r}(t)&&Jd(t):t.stateNode=lt(u,d,h,t)}return ih(t),null;case L:bl(t);var f=t.memoizedState;if((null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated)&&!ah(e,t,f))return t.flags&Pe?t:null;if((t.flags&ve)!==de)return t.lanes=n,(t.mode&Rr)!==Pr&&Ec(t),t;var m=null!==f;if(m!==(null!==e&&null!==e.memoizedState)&&m&&(t.child.flags|=Te,(t.mode&Br)!==Pr&&(null===e&&(!0!==t.memoizedProps.unstable_avoidThisFallback||!g)||gl(pl.current,hl)?ap===Gf&&(ap=Qf):rg())),null!==t.updateQueue&&(t.flags|=pe),ih(t),(t.mode&Rr)!==Pr&&m){var y=t.child;null!==y&&(t.treeBaseDuration-=y.treeBaseDuration)}return null;case T:return sl(t),Hd(e,t),null===e&&vt(t.stateNode.containerInfo),ih(t),null;case B:return Ts(t.type._context,t),ih(t),null;case D:return br(t.type)&&xr(t),ih(t),null;case z:bl(t);var v=t.memoizedState;if(null===v)return ih(t),null;var b=(t.flags&ve)!==de,U=v.rendering;if(null===U)if(b)rh(v,!1);else{if(ap!==Gf||null!==e&&(e.flags&ve)!==de)for(var V=t.child;null!==V;){var G=Sl(V);if(null!==G){b=!0,t.flags|=ve,rh(v,!1);var Y=G.updateQueue;return null!==Y&&(t.updateQueue=Y,t.flags|=pe),t.subtreeFlags=de,fs(t,n),vl(t,yl(pl.current,fl)),t.child}V=V.sibling}null!==v.tail&&la()>vp()&&(t.flags|=ve,b=!0,rh(v,!1),t.lanes=gi)}else{if(!b){var q=Sl(U);if(null!==q){t.flags|=ve,b=!0;var Q=q.updateQueue;if(null!==Q&&(t.updateQueue=Q,t.flags|=pe),rh(v,!0),null===v.tail&&"hidden"===v.tailMode&&!U.alternate&&!ko())return ih(t),null}else 2*la()-v.renderingStartTime>vp()&&n!==xi&&(t.flags|=ve,b=!0,rh(v,!1),t.lanes=gi)}if(v.isBackwards)U.sibling=t.child,t.child=U;else{var X=v.last;null!==X?X.sibling=U:t.child=U,v.last=U}}if(null!==v.tail){var K=v.tail;v.rendering=K,v.tail=K.sibling,v.renderingStartTime=la(),K.sibling=null;var Z=pl.current;return vl(t,Z=b?yl(Z,fl):ml(Z)),K}return ih(t),null;case F:break;case j:case W:Kp(t);var J=null!==t.memoizedState;return null!==e&&(null!==e.memoizedState===J||p||(t.flags|=Te)),J&&(t.mode&Br)!==Pr?Ui(rp,xi)&&(ih(t),pt&&t.subtreeFlags&(fe|pe)&&(t.flags|=Te)):ih(t),null;case H:case $:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function sh(e,t,n){switch(no(t),t.tag){case S:br(t.type)&&xr(t);var r=t.flags;return r&Pe?(t.flags=r&~Pe|ve,(t.mode&Rr)!==Pr&&Ec(t),t):null;case _:t.stateNode,sl(t),Sr(t),El();var i=t.flags;return(i&Pe)!==de&&(i&ve)===de?(t.flags=i&~Pe|ve,t):null;case A:return cl(t),null;case L:bl(t);var a=t.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===t.alternate)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");To()}var o=t.flags;return o&Pe?(t.flags=o&~Pe|ve,(t.mode&Rr)!==Pr&&Ec(t),t):null;case z:return bl(t),null;case T:return sl(t),null;case B:return Ts(t.type._context,t),null;case j:case W:return Kp(t),null;default:return null}}function lh(e,t,n){switch(no(t),t.tag){case S:null!=t.type.childContextTypes&&xr(t);break;case _:t.stateNode,sl(t),Sr(t),El();break;case A:cl(t);break;case T:sl(t);break;case L:case z:bl(t);break;case B:Ts(t.type._context,t);break;case j:case W:Kp(t)}}function uh(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var ch=uh;if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var dh=document.createElement("react");ch=function(e,t,n,r,i,a,o,s,l){if("undefined"==typeof document||null===document)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var u=document.createEvent("Event"),c=!1,d=!0,h=window.event,f=Object.getOwnPropertyDescriptor(window,"event");function p(){dh.removeEventListener(S,y,!1),void 0!==window.event&&window.hasOwnProperty("event")&&(window.event=h)}var g,m=Array.prototype.slice.call(arguments,3);function y(){c=!0,p(),t.apply(n,m),d=!1}var v=!1,b=!1;function x(e){if(g=e.error,v=!0,null===g&&0===e.colno&&0===e.lineno&&(b=!0),e.defaultPrevented&&null!=g&&"object"==typeof g)try{g._suppressLogging=!0}catch(e){}}var S="react-"+(e||"invokeguardedcallback");if(window.addEventListener("error",x),dh.addEventListener(S,y,!1),u.initEvent(S,!1,!1),dh.dispatchEvent(u),f&&Object.defineProperty(window,"event",f),c&&d&&(v?b&&(g=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):g=new Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."),this.onError(g)),window.removeEventListener("error",x),!c)return p(),uh.apply(this,arguments)}}var hh=ch,fh=!1,ph=null,gh={onError:function(e){fh=!0,ph=e}};function mh(e,t,n,r,i,a,o,s,l){fh=!1,ph=null,hh.apply(gh,arguments)}function yh(){if(fh){var e=ph;return fh=!1,ph=null,e}throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}var vh=null;vh=new Set;var bh=!1,xh=!1,Sh="function"==typeof WeakSet?WeakSet:Set,wh=null,_h=null,Th=null,Ah=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Rr)try{kc(),t.componentWillUnmount()}finally{Tc(e)}else t.componentWillUnmount()};function kh(e,t){try{Nh(Al,e)}catch(n){pg(e,t,n)}}function Ch(e,t,n){try{Ah(e,n)}catch(n){pg(e,t,n)}}function Eh(e,t){try{Fh(e)}catch(n){pg(e,t,n)}}function Ph(e,t){var n=e.ref;if(null!==n)if("function"==typeof n){var r;try{if(v&&b&&e.mode&Rr)try{kc(),r=n(null)}finally{Tc(e)}else r=n(null)}catch(n){pg(e,t,n)}"function"==typeof r&&s("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ce(e))}else n.current=null}function Bh(e,t,n){try{n()}catch(n){pg(e,t,n)}}var Rh=!1;function Mh(e,t){tt(e.containerInfo),wh=t,function(){for(;null!==wh;){var e=wh,t=e.child;(e.subtreeFlags&De)!==de&&null!==t?(t.return=e,wh=t):Lh()}}();var n=Rh;return Rh=!1,n}function Lh(){for(;null!==wh;){var e=wh;Uo(e);try{Oh(e)}catch(t){pg(e,e.return,t)}Do();var t=e.sibling;if(null!==t)return t.return=e.return,void(wh=t);wh=e.return}}function Oh(e){var t=e.alternate;if((e.flags&Se)!==de){switch(Uo(e),e.tag){case x:case R:case I:break;case S:if(null!==t){var n=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type!==e.elementType||dd||(i.props!==e.memoizedProps&&s("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ce(e)||"instance"),i.state!==e.memoizedState&&s("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ce(e)||"instance"));var a=i.getSnapshotBeforeUpdate(e.elementType===e.type?n:Pc(e.type,n),r),o=vh;void 0!==a||o.has(e.type)||(o.add(e.type),s("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ce(e))),i.__reactInternalSnapshotBeforeUpdate=a}break;case _:if(pt){var l=e.stateNode;Zt(l.containerInfo)}break;case A:case k:case T:case D:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Do()}}function Ih(e,t,n){var r,i=t.updateQueue,a=null!==i?i.lastEffect:null;if(null!==a){var o=a.next,s=o;do{if((s.tag&e)===e){var l=s.destroy;s.destroy=void 0,void 0!==l&&((e&kl)!==wl?(r=t,null!==ya&&"function"==typeof ya.markComponentPassiveEffectUnmountStarted&&ya.markComponentPassiveEffectUnmountStarted(r)):(e&Al)!==wl&&Ca(t),(e&Tl)!==wl&&Rg(!0),Bh(t,n,l),(e&Tl)!==wl&&Rg(!1),(e&kl)!==wl?null!==ya&&"function"==typeof ya.markComponentPassiveEffectUnmountStopped&&ya.markComponentPassiveEffectUnmountStopped():(e&Al)!==wl&&Ea())}s=s.next}while(s!==o)}}function Nh(e,t){var n,r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var a=i.next,o=a;do{if((o.tag&e)===e){(e&kl)!==wl?(n=t,null!==ya&&"function"==typeof ya.markComponentPassiveEffectMountStarted&&ya.markComponentPassiveEffectMountStarted(n)):(e&Al)!==wl&&ka(t);var l=o.create;(e&Tl)!==wl&&Rg(!0),o.destroy=l(),(e&Tl)!==wl&&Rg(!1),(e&kl)!==wl?null!==ya&&"function"==typeof ya.markComponentPassiveEffectMountStopped&&ya.markComponentPassiveEffectMountStopped():(e&Al)!==wl&&null!==ya&&"function"==typeof ya.markComponentLayoutEffectMountStopped&&ya.markComponentLayoutEffectMountStopped();var u=o.destroy;if(void 0!==u&&"function"!=typeof u){var c=void 0;s("%s must not return anything besides a function, which is used for clean-up.%s",c=(o.tag&Al)!==de?"useLayoutEffect":(o.tag&Tl)!==de?"useInsertionEffect":"useEffect",null===u?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof u.then?"\n\nIt looks like you wrote "+c+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+c+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching":" You returned: "+u)}}o=o.next}while(o!==a)}}function Dh(e,t){if((t.flags&pe)!==de&&t.tag===M){var n=t.stateNode.passiveEffectDuration,r=t.memoizedProps,i=r.id,a=r.onPostCommit,o=bc(),s=null===t.alternate?"mount":"update";vc()&&(s="nested-update"),"function"==typeof a&&a(i,s,n,o);var l=t.return;e:for(;null!==l;){switch(l.tag){case _:case M:l.stateNode.passiveEffectDuration+=n;break e}l=l.return}}}function Uh(e,t,n,r){if((n.flags&ze)!==de)switch(n.tag){case x:case R:case I:if(!xh)if(n.mode&Rr)try{kc(),Nh(Al|_l,n)}finally{Tc(n)}else Nh(Al|_l,n);break;case S:var i=n.stateNode;if(n.flags&pe&&!xh)if(null===t)if(n.type!==n.elementType||dd||(i.props!==n.memoizedProps&&s("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ce(n)||"instance"),i.state!==n.memoizedState&&s("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ce(n)||"instance")),n.mode&Rr)try{kc(),i.componentDidMount()}finally{Tc(n)}else i.componentDidMount();else{var a=n.elementType===n.type?t.memoizedProps:Pc(n.type,t.memoizedProps),o=t.memoizedState;if(n.type!==n.elementType||dd||(i.props!==n.memoizedProps&&s("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ce(n)||"instance"),i.state!==n.memoizedState&&s("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ce(n)||"instance")),n.mode&Rr)try{kc(),i.componentDidUpdate(a,o,i.__reactInternalSnapshotBeforeUpdate)}finally{Tc(n)}else i.componentDidUpdate(a,o,i.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;null!==l&&(n.type!==n.elementType||dd||(i.props!==n.memoizedProps&&s("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ce(n)||"instance"),i.state!==n.memoizedState&&s("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ce(n)||"instance")),Js(0,l,i));break;case _:var u=n.updateQueue;if(null!==u){var c=null;if(null!==n.child)switch(n.child.tag){case A:c=Ze(n.child.stateNode);break;case S:c=n.child.stateNode}Js(0,u,c)}break;case A:var d=n.stateNode;if(null===t&&n.flags&pe){var h=n.type,f=n.memoizedProps;jt(d,h,f,n)}break;case k:case T:break;case M:var p=n.memoizedProps,g=p.onCommit,m=p.onRender,y=n.stateNode.effectDuration,v=bc(),b=null===t?"mount":"update";vc()&&(b="nested-update"),"function"==typeof m&&m(n.memoizedProps.id,b,n.actualDuration,n.treeBaseDuration,n.actualStartTime,v),"function"==typeof g&&g(n.memoizedProps.id,b,y,v),C=n,Ap.push(C),wp||(wp=!0,Eg(da,(function(){return cg(),null})));var w=n.return;e:for(;null!==w;){switch(w.tag){case _:case M:w.stateNode.effectDuration+=y;break e}w=w.return}break;case L:!function(e,t){if(mt&&null===t.memoizedState){var n=t.alternate;if(null!==n){var r=n.memoizedState;if(null!==r){var i=r.dehydrated;null!==i&&_n(i)}}}}(0,n);break;case z:case D:case F:case j:case W:case $:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}var C;xh||n.flags&xe&&Fh(n)}function zh(e){switch(e.tag){case x:case R:case I:if(e.mode&Rr)try{kc(),kh(e,e.return)}finally{Tc(e)}else kh(e,e.return);break;case S:var t=e.stateNode;"function"==typeof t.componentDidMount&&function(e,t,n){try{n.componentDidMount()}catch(n){pg(e,t,n)}}(e,e.return,t),Eh(e,e.return);break;case A:Eh(e,e.return)}}function Fh(e){var t=e.ref;if(null!==t){var n,r=e.stateNode;if(n=e.tag===A?Ze(r):r,"function"==typeof t){var i;if(e.mode&Rr)try{kc(),i=t(n)}finally{Tc(e)}else i=t(n);"function"==typeof i&&s("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ce(e))}else t.hasOwnProperty("current")||s("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ce(e)),t.current=n}}function jh(e){var t=e.alternate;if(null!==t&&(e.alternate=null,jh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===A){var n=e.stateNode;null!==n&&Ct(n)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Wh(e){return e.tag===A||e.tag===_||e.tag===T}function Hh(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||Wh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==A&&t.tag!==k&&t.tag!==U;){if(t.flags&fe)continue e;if(null===t.child||t.tag===T)continue e;t.child.return=t,t=t.child}if(!(t.flags&fe))return t.stateNode}}function $h(e){if(pt){var t=function(e){for(var t=e.return;null!==t;){if(Wh(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}(e);switch(t.tag){case A:var n=t.stateNode;t.flags&me&&(Yt(n),t.flags&=~me),Gh(e,Hh(e),n);break;case _:case T:var r=t.stateNode.containerInfo;Vh(e,Hh(e),r);break;default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}}function Vh(e,t,n){var r=e.tag;if(r===A||r===k){var i=e.stateNode;t?$t(n,i,t):zt(n,i)}else if(r===T);else{var a=e.child;if(null!==a){Vh(a,t,n);for(var o=a.sibling;null!==o;)Vh(o,t,n),o=o.sibling}}}function Gh(e,t,n){var r=e.tag;if(r===A||r===k){var i=e.stateNode;t?Ht(n,i,t):Ut(n,i)}else if(r===T);else{var a=e.child;if(null!==a){Gh(a,t,n);for(var o=a.sibling;null!==o;)Gh(o,t,n),o=o.sibling}}}var Yh=null,qh=!1;function Qh(e,t,n){if(pt){var r=t;e:for(;null!==r;){switch(r.tag){case A:Yh=r.stateNode,qh=!1;break e;case _:case T:Yh=r.stateNode.containerInfo,qh=!0;break e}r=r.return}if(null===Yh)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Kh(e,t,n),Yh=null,qh=!1}else Kh(e,t,n);var i,a;null!==(a=(i=n).alternate)&&(a.return=null),i.return=null}function Xh(e,t,n){for(var r=n.child;null!==r;)Kh(e,t,r),r=r.sibling}function Kh(e,t,n){switch(function(e){if(ma&&"function"==typeof ma.onCommitFiberUnmount)try{ma.onCommitFiberUnmount(ga,e)}catch(e){va||(va=!0,s("React instrumentation encountered an error: %s",e))}}(n),n.tag){case A:xh||Ph(n,t);case k:if(pt){var r=Yh,i=qh;Yh=null,Xh(e,t,n),qh=i,null!==(Yh=r)&&(qh?Gt(Yh,n.stateNode):Vt(Yh,n.stateNode))}else Xh(e,t,n);return;case U:return void(pt&&null!==Yh&&(qh?An(Yh,n.stateNode):Tn(Yh,n.stateNode)));case T:if(pt){var a=Yh,o=qh;Yh=n.stateNode.containerInfo,qh=!0,Xh(e,t,n),Yh=a,qh=o}else!function(e){if(gt){var t=e.stateNode.containerInfo,n=en(t);rn(t,n)}}(n),Xh(e,t,n);return;case x:case R:case O:case I:if(!xh){var l=n.updateQueue;if(null!==l){var u=l.lastEffect;if(null!==u){var c=u.next,d=c;do{var h=d,f=h.destroy,p=h.tag;void 0!==f&&((p&Tl)!==wl?Bh(n,t,f):(p&Al)!==wl&&(Ca(n),n.mode&Rr?(kc(),Bh(n,t,f),Tc(n)):Bh(n,t,f),Ea())),d=d.next}while(d!==c)}}}return void Xh(e,t,n);case S:if(!xh){Ph(n,t);var g=n.stateNode;"function"==typeof g.componentWillUnmount&&Ch(n,t,g)}return void Xh(e,t,n);case F:return void Xh(e,t,n);case j:if(n.mode&Br){var m=xh;xh=m||null!==n.memoizedState,Xh(e,t,n),xh=m}else Xh(e,t,n);break;default:return void Xh(e,t,n)}}function Zh(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Sh),t.forEach((function(t){var r=vg.bind(null,e,t);if(!n.has(t)){if(n.add(t),ba){if(null===_h||null===Th)throw Error("Expected finished root and lanes to be set. This is a bug in React.");kg(Th,_h)}t.then(r,r)}}))}}function Jh(e,t,n){var r=t.deletions;if(null!==r)for(var i=0;i<r.length;i++){var a=r[i];try{Qh(e,t,a)}catch(e){pg(a,t,e)}}var o=Oo;if(t.subtreeFlags&Ue)for(var s=t.child;null!==s;)Uo(s),ef(s,e),s=s.sibling;Uo(o)}function ef(e,t,n){var r=e.alternate,i=e.flags;switch(e.tag){case x:case R:case O:case I:if(Jh(t,e),tf(e),i&pe){try{Ih(Tl|_l,e,e.return),Nh(Tl|_l,e)}catch(t){pg(e,e.return,t)}if(e.mode&Rr){try{kc(),Ih(Al|_l,e,e.return)}catch(t){pg(e,e.return,t)}Tc(e)}else try{Ih(Al|_l,e,e.return)}catch(t){pg(e,e.return,t)}}return;case S:return Jh(t,e),tf(e),void(i&xe&&null!==r&&Ph(r,r.return));case A:if(Jh(t,e),tf(e),i&xe&&null!==r&&Ph(r,r.return),pt){if(e.flags&me){var a=e.stateNode;try{Yt(a)}catch(t){pg(e,e.return,t)}}if(i&pe){var o=e.stateNode;if(null!=o){var s=e.memoizedProps,l=null!==r?r.memoizedProps:s,u=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{Wt(o,c,u,l,s,e)}catch(t){pg(e,e.return,t)}}}}return;case k:if(Jh(t,e),tf(e),i&pe&&pt){if(null===e.stateNode)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var d=e.stateNode,h=e.memoizedProps,f=null!==r?r.memoizedProps:h;try{Ft(d,f,h)}catch(t){pg(e,e.return,t)}}return;case _:if(Jh(t,e),tf(e),i&pe){if(pt&&mt&&null!==r&&r.memoizedState.isDehydrated)try{wn(t.containerInfo)}catch(t){pg(e,e.return,t)}if(gt){var p=t.containerInfo,g=t.pendingChildren;try{rn(p,g)}catch(t){pg(e,e.return,t)}}}return;case T:if(Jh(t,e),tf(e),i&pe&>){var m=e.stateNode,y=m.containerInfo,v=m.pendingChildren;try{rn(y,v)}catch(t){pg(e,e.return,t)}}return;case L:Jh(t,e),tf(e);var b=e.child;if(b.flags&Te){var w=b.stateNode,C=null!==b.memoizedState;w.isHidden=C,C&&(null!==b.alternate&&null!==b.alternate.memoizedState||(hp=la()))}if(i&pe){try{!function(e){e.memoizedState}(e)}catch(t){pg(e,e.return,t)}Zh(e)}return;case j:var E=null!==r&&null!==r.memoizedState;if(e.mode&Br){var P=xh;xh=P||E,Jh(t,e),xh=P}else Jh(t,e);if(tf(e),i&Te){var B=e.stateNode,M=null!==e.memoizedState,N=e;if(B.isHidden=M,M&&!E&&(N.mode&Br)!==Pr){wh=N;for(var D=N.child;null!==D;)wh=D,of(D),D=D.sibling}pt&&function(e,t){var n=null;if(pt)for(var r=e;;){if(r.tag===A){if(null===n){n=r;try{var i=r.stateNode;t?qt(i):Xt(r.stateNode,r.memoizedProps)}catch(t){pg(e,e.return,t)}}}else if(r.tag===k){if(null===n)try{var a=r.stateNode;t?Qt(a):Kt(a,r.memoizedProps)}catch(t){pg(e,e.return,t)}}else if((r.tag!==j&&r.tag!==W||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;n===r&&(n=null),r=r.return}n===r&&(n=null),r.sibling.return=r.return,r=r.sibling}}(N,M)}return;case z:return Jh(t,e),tf(e),void(i&pe&&Zh(e));case F:return;default:return Jh(t,e),void tf(e)}}function tf(e){var t=e.flags;if(t&fe){try{$h(e)}catch(t){pg(e,e.return,t)}e.flags&=~fe}t&_e&&(e.flags&=~_e)}function nf(e,t,n){_h=n,Th=t,wh=e,rf(e,t,n),_h=null,Th=null}function rf(e,t,n){for(var r=(e.mode&Br)!==Pr;null!==wh;){var i=wh,a=i.child;if(i.tag===j&&r){var o=null!==i.memoizedState||bh;if(o){af(e,t,n);continue}var s=i.alternate,l=null!==s&&null!==s.memoizedState,u=bh,c=xh;bh=o,(xh=l||xh)&&!c&&(wh=i,lf(i));for(var d=a;null!==d;)wh=d,rf(d,t,n),d=d.sibling;wh=i,bh=u,xh=c,af(e,t,n)}else(i.subtreeFlags&ze)!==de&&null!==a?(a.return=i,wh=a):af(e,t,n)}}function af(e,t,n){for(;null!==wh;){var r=wh;if((r.flags&ze)!==de){var i=r.alternate;Uo(r);try{Uh(0,i,r)}catch(e){pg(r,r.return,e)}Do()}if(r===e)return void(wh=null);var a=r.sibling;if(null!==a)return a.return=r.return,void(wh=a);wh=r.return}}function of(e){for(;null!==wh;){var t=wh,n=t.child;switch(t.tag){case x:case R:case O:case I:if(t.mode&Rr)try{kc(),Ih(Al,t,t.return)}finally{Tc(t)}else Ih(Al,t,t.return);break;case S:Ph(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&Ch(t,t.return,r);break;case A:Ph(t,t.return);break;case j:if(null!==t.memoizedState){sf(e);continue}}null!==n?(n.return=t,wh=n):sf(e)}}function sf(e){for(;null!==wh;){var t=wh;if(t===e)return void(wh=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(wh=n);wh=t.return}}function lf(e){for(;null!==wh;){var t=wh,n=t.child;(t.tag!==j||null===t.memoizedState)&&null!==n?(n.return=t,wh=n):uf(e)}}function uf(e){for(;null!==wh;){var t=wh;Uo(t);try{zh(t)}catch(e){pg(t,t.return,e)}if(Do(),t===e)return void(wh=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(wh=n);wh=t.return}}function cf(e,t,n,r){wh=t,function(e,t,n,r){for(;null!==wh;){var i=wh,a=i.child;(i.subtreeFlags&Fe)!==de&&null!==a?(a.return=i,wh=a):df(e,t,n,r)}}(t,e,n,r)}function df(e,t,n,r){for(;null!==wh;){var i=wh;if((i.flags&we)!==de){Uo(i);try{hf(t,i,n,r)}catch(e){pg(i,i.return,e)}Do()}if(i===e)return void(wh=null);var a=i.sibling;if(null!==a)return a.return=i.return,void(wh=a);wh=i.return}}function hf(e,t,n,r){switch(t.tag){case x:case R:case I:if(t.mode&Rr){Cc();try{Nh(kl|_l,t)}finally{Ac(t)}}else Nh(kl|_l,t)}}function ff(e){wh=e,function(){for(;null!==wh;){var e=wh,t=e.child;if((wh.flags&ge)!==de){var n=e.deletions;if(null!==n){for(var r=0;r<n.length;r++){var i=n[r];wh=i,mf(i,e)}var a=e.alternate;if(null!==a){var o=a.child;if(null!==o){a.child=null;do{var s=o.sibling;o.sibling=null,o=s}while(null!==o)}}wh=e}}(e.subtreeFlags&Fe)!==de&&null!==t?(t.return=e,wh=t):pf()}}()}function pf(){for(;null!==wh;){var e=wh;(e.flags&we)!==de&&(Uo(e),gf(e),Do());var t=e.sibling;if(null!==t)return t.return=e.return,void(wh=t);wh=e.return}}function gf(e){switch(e.tag){case x:case R:case I:e.mode&Rr?(Cc(),Ih(kl|_l,e,e.return),Ac(e)):Ih(kl|_l,e,e.return)}}function mf(e,t){for(;null!==wh;){var n=wh;Uo(n),vf(n,t),Do();var r=n.child;null!==r?(r.return=n,wh=r):yf(e)}}function yf(e){for(;null!==wh;){var t=wh,n=t.sibling,r=t.return;if(jh(t),t===e)return void(wh=null);if(null!==n)return n.return=r,void(wh=n);wh=r}}function vf(e,t){switch(e.tag){case x:case R:case I:e.mode&Rr?(Cc(),Ih(kl,e,t),Ac(e)):Ih(kl,e,t)}}function bf(e){switch(e.tag){case x:case R:case I:try{Nh(Al|_l,e)}catch(t){pg(e,e.return,t)}break;case S:var t=e.stateNode;try{t.componentDidMount()}catch(t){pg(e,e.return,t)}}}function xf(e){switch(e.tag){case x:case R:case I:try{Nh(kl|_l,e)}catch(t){pg(e,e.return,t)}}}function Sf(e){switch(e.tag){case x:case R:case I:try{Ih(Al|_l,e,e.return)}catch(t){pg(e,e.return,t)}break;case S:var t=e.stateNode;"function"==typeof t.componentWillUnmount&&Ch(e,e.return,t)}}function wf(e){switch(e.tag){case x:case R:case I:try{Ih(kl|_l,e,e.return)}catch(t){pg(e,e.return,t)}}}var _f=0,Tf=1,Af=2,kf=3,Cf=4;if("function"==typeof Symbol&&Symbol.for){var Ef=Symbol.for;_f=Ef("selector.component"),Tf=Ef("selector.has_pseudo_class"),Af=Ef("selector.role"),kf=Ef("selector.test_id"),Cf=Ef("selector.text")}function Pf(e){var t=yt(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw new Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");return t}var n=Rt(e);if(null===n)throw new Error("Could not find React container within specified host subtree.");return n.stateNode.current}function Bf(e,t){switch(t.$$typeof){case _f:if(e.type===t.value)return!0;break;case Tf:return function(e,t){for(var n=[e,0],r=0;r<n.length;){var i=n[r++],a=n[r++],o=t[a];if(i.tag!==A||!Ot(i)){for(;null!=o&&Bf(i,o);)o=t[++a];if(a===t.length)return!0;for(var s=i.child;null!==s;)n.push(s,a),s=s.sibling}}return!1}(e,t.value);case Af:if(e.tag===A){var n=e.stateNode;if(It(n,t.value))return!0}break;case Cf:if(e.tag===A||e.tag===k){var r=Lt(e);if(null!==r&&r.indexOf(t.value)>=0)return!0}break;case kf:if(e.tag===A){var i=e.memoizedProps["data-testname"];if("string"==typeof i&&i.toLowerCase()===t.value.toLowerCase())return!0}break;default:throw new Error("Invalid selector type specified.")}return!1}function Rf(e){switch(e.$$typeof){case _f:return"<"+(le(e.value)||"Unknown")+">";case Tf:return":has("+(Rf(e)||"")+")";case Af:return'[role="'+e.value+'"]';case Cf:return'"'+e.value+'"';case kf:return'[data-testname="'+e.value+'"]';default:throw new Error("Invalid selector type specified.")}}function Mf(e,t){for(var n=[],r=[e,0],i=0;i<r.length;){var a=r[i++],o=r[i++],s=t[o];if(a.tag!==A||!Ot(a)){for(;null!=s&&Bf(a,s);)s=t[++o];if(o===t.length)n.push(a);else for(var l=a.child;null!==l;)r.push(l,o),l=l.sibling}}return n}function Lf(e,t){if(!Bt)throw new Error("Test selector API is not supported by this renderer.");for(var n=Mf(Pf(e),t),r=[],i=Array.from(n),a=0;a<i.length;){var o=i[a++];if(o.tag===A){if(Ot(o))continue;r.push(o.stateNode)}else for(var s=o.child;null!==s;)i.push(s),s=s.sibling}return r}var Of=[],If=i.ReactCurrentActQueue;function Nf(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===If.current||s("The current testing environment is not configured to support act(...)"),e}var Df=Math.ceil,Uf=i.ReactCurrentDispatcher,zf=i.ReactCurrentOwner,Ff=i.ReactCurrentBatchConfig,jf=i.ReactCurrentActQueue,Wf=0,Hf=1,$f=2,Vf=4,Gf=0,Yf=1,qf=2,Qf=3,Xf=4,Kf=5,Zf=6,Jf=Wf,ep=null,tp=null,np=Ur,rp=Ur,ip=lr(Ur),ap=Gf,op=null,sp=Ur,lp=Ur,up=Ur,cp=null,dp=null,hp=0,fp=500,pp=1/0,gp=500,mp=null;function yp(){pp=la()+gp}function vp(){return pp}var bp=!1,xp=null,Sp=null,wp=!1,_p=null,Tp=Ur,Ap=[],kp=null,Cp=50,Ep=0,Pp=null,Bp=!1,Rp=!1,Mp=50,Lp=0,Op=null,Ip=wi,Np=Ur,Dp=!1;function Up(){return ep}function zp(){return(Jf&($f|Vf))!==Wf?la():Ip!==wi?Ip:Ip=la()}function Fp(e){if((e.mode&Br)===Pr)return Fr;if((Jf&$f)!==Wf&&np!==Ur)return Ii(np);if(Eo.transition!==Po){if(null!==Ff.transition){var t=Ff.transition;t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e)}return Np===zr&&(Np=Li()),Np}var n=ea();return n!==zr?n:kt()}function jp(e){var t;return(e.mode&Br)===Pr?Fr:(t=Ti,((Ti<<=1)&ui)===Ur&&(Ti=ci),t)}function Wp(e,t,n,r){!function(){if(Ep>Cp)throw Ep=0,Pp=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Lp>Mp&&(Lp=0,Op=null,s("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}(),Dp&&s("useInsertionEffect must not schedule updates."),Bp&&(Rp=!0),$i(e,n,r),(Jf&$f)!==Ur&&e===ep?function(e){if(Io&&!Vu)switch(e.tag){case x:case R:case I:var t=tp&&ce(tp)||"Unknown",n=t;Tg.has(n)||(Tg.add(n),s("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",ce(e)||"Unknown",t,t));break;case S:Ag||(s("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Ag=!0)}}(t):(ba&&Yi(e,t,n),function(e){if(e.mode&Br){if(!Nf())return}else{if(t="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0,n="undefined"!=typeof jest,!ft||!n||!1===t)return;if(Jf!==Wf)return;if(e.tag!==x&&e.tag!==R&&e.tag!==I)return}var t,n;if(null===jf.current){var r=Oo;try{Uo(e),s("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act",ce(e))}finally{r?Uo(e):Do()}}}(t),e===ep&&((Jf&$f)===Wf&&(lp=Fi(lp,n)),ap===Xf&&Yp(e,np)),Hp(e,r),n!==Fr||Jf!==Wf||(t.mode&Br)!==Pr||jf.isBatchingLegacy||(yp(),za()))}function Hp(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.pendingLanes,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=n;o>0;){var s=Ni(o),l=1<<s,u=a[s];u===wi?(l&r)!==Ur&&(l&i)===Ur||(a[s]=Ci(l,t)):u<=t&&(e.expiredLanes|=l),o&=~l}}(e,t);var r=ki(e,e===ep?np:Ur);if(r===Ur)return null!==n&&Pg(n),e.callbackNode=null,void(e.callbackPriority=zr);var i=Oi(r),a=e.callbackPriority;if(a!==i||null!==jf.current&&n!==Cg){var o,l;if(null!=n&&Pg(n),i===Fr)e.tag===Cr?(null!==jf.isBatchingLegacy&&(jf.didScheduleLegacyUpdate=!0),l=qp.bind(null,e),Na=!0,Ua(l)):Ua(qp.bind(null,e)),Et?null!==jf.current?jf.current.push(Fa):Pt((function(){(Jf&($f|Vf))===Wf&&Fa()})):Eg(ua,Fa),o=null;else{var u;switch(ra(r)){case Qi:u=ua;break;case Xi:u=ca;break;case Ki:u=da;break;case Zi:u=ha;break;default:u=da}o=Eg(u,$p.bind(null,e))}e.callbackPriority=i,e.callbackNode=o}else null==n&&a!==Fr&&s("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.")}function $p(e,t){if(gc=!1,yc=!1,Ip=wi,Np=Ur,(Jf&($f|Vf))!==Wf)throw new Error("Should not already be working.");var n=e.callbackNode;if(cg()&&e.callbackNode!==n)return null;var r=ki(e,e===ep?np:Ur);if(r===Ur)return null;var i=!Ri(0,r)&&!function(e,t){return(t&e.expiredLanes)!==Ur}(e,r)&&!t,a=i?function(e,t){var n=Jf;Jf|=$f;var r=eg();if(ep!==e||np!==t){if(ba){var i=e.memoizedUpdaters;i.size>0&&(kg(e,np),i.clear()),qi(e,t)}mp=null,yp(),Zp(e,t)}for(Ra(t);;)try{og();break}catch(t){Jp(e,t)}return xs(),tg(r),Jf=n,null!==tp?(null!==ya&&"function"==typeof ya.markRenderYielded&&ya.markRenderYielded(),Gf):(Ma(),ep=null,np=Ur,ap)}(e,r):ig(e,r);if(a!==Gf){if(a===qf){var o=Ei(e);o!==Ur&&(r=o,a=Vp(e,o))}if(a===Yf){var s=op;throw Zp(e,Ur),Yp(e,r),Hp(e,la()),s}if(a===Zf)Yp(e,r);else{var l=!Ri(0,r),u=e.current.alternate;if(l&&!function(e){for(var t=e;;){if(t.flags&Ae){var n=t.updateQueue;if(null!==n){var r=n.stores;if(null!==r)for(var i=0;i<r.length;i++){var a=r[i],o=a.getSnapshot,s=a.value;try{if(!Oa(o(),s))return!1}catch(e){return!1}}}}var l=t.child;if(t.subtreeFlags&Ae&&null!==l)l.return=t,t=l;else{if(t===e)return!0;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(u)){if((a=ig(e,r))===qf){var c=Ei(e);c!==Ur&&(r=c,a=Vp(e,c))}if(a===Yf){var d=op;throw Zp(e,Ur),Yp(e,r),Hp(e,la()),d}}e.finishedWork=u,e.finishedLanes=r,function(e,t,n){switch(t){case Gf:case Yf:throw new Error("Root did not complete. This is a bug in React.");case qf:ug(e,dp,mp);break;case Qf:if(Yp(e,n),Bi(n)&&!Bg()){var r=hp+fp-la();if(r>10){if(ki(e,Ur)!==Ur)break;var i=e.suspendedLanes;if(!zi(i,n)){zp(),Vi(e,i);break}e.timeoutHandle=ut(ug.bind(null,e,dp,mp),r);break}}ug(e,dp,mp);break;case Xf:if(Yp(e,n),function(e){return(e&Gr)===e}(n))break;if(!Bg()){var a=function(e,t){for(var n=e.eventTimes,r=wi;t>0;){var i=Ni(t),a=1<<i,o=n[i];o>r&&(r=o),t&=~a}return r}(e,n),o=a,s=la()-o,l=((u=s)<120?120:u<480?480:u<1080?1080:u<1920?1920:u<3e3?3e3:u<4320?4320:1960*Df(u/1960))-s;if(l>10){e.timeoutHandle=ut(ug.bind(null,e,dp,mp),l);break}}ug(e,dp,mp);break;case Kf:ug(e,dp,mp);break;default:throw new Error("Unknown root exit status.")}var u}(e,a,r)}}return Hp(e,la()),e.callbackNode===n?$p.bind(null,e):null}function Vp(e,t){var n=cp;ja(e)&&(Zp(e,t).flags|=be,jn(e.containerInfo));var r=ig(e,t);if(r!==qf){var i=dp;dp=n,null!==i&&Gp(i)}return r}function Gp(e){null===dp?dp=e:dp.push.apply(dp,e)}function Yp(e,t){t=ji(t,up),function(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var i=Ni(r),a=1<<i;n[i]=wi,r&=~a}}(e,t=ji(t,lp))}function qp(e){if(gc=yc,yc=!1,(Jf&($f|Vf))!==Wf)throw new Error("Should not already be working.");cg();var t=ki(e,Ur);if(!Ui(t,Fr))return Hp(e,la()),null;var n=ig(e,t);if(e.tag!==Cr&&n===qf){var r=Ei(e);r!==Ur&&(t=r,n=Vp(e,r))}if(n===Yf){var i=op;throw Zp(e,Ur),Yp(e,t),Hp(e,la()),i}if(n===Zf)throw new Error("Root did not complete. This is a bug in React.");var a=e.current.alternate;return e.finishedWork=a,e.finishedLanes=t,ug(e,dp,mp),Hp(e,la()),null}function Qp(e){null!==_p&&_p.tag===Cr&&(Jf&($f|Vf))===Wf&&cg();var t=Jf;Jf|=Hf;var n=Ff.transition,r=ea();try{return Ff.transition=null,ta(Qi),e?e():void 0}finally{ta(r),Ff.transition=n,((Jf=t)&($f|Vf))===Wf&&Fa()}}function Xp(e,t){cr(ip,rp,e),rp=Fi(rp,t)}function Kp(e){rp=ip.current,ur(ip,e)}function Zp(e,t){e.finishedWork=null,e.finishedLanes=Ur;var n=e.timeoutHandle;if(n!==dt&&(e.timeoutHandle=dt,ct(n)),null!==tp)for(var r=tp.return;null!==r;)r.alternate,lh(0,r),r=r.return;ep=e;var i=Zg(e.current,null);return tp=i,np=rp=t,ap=Gf,op=null,sp=Ur,lp=Ur,up=Ur,cp=null,dp=null,function(){if(null!==Ps){for(var e=0;e<Ps.length;e++){var t=Ps[e],n=t.interleaved;if(null!==n){t.interleaved=null;var r=n.next,i=t.pending;if(null!==i){var a=i.next;i.next=r,n.next=a}t.pending=n}}Ps=null}}(),Fo.discardPendingWarnings(),i}function Jp(e,t){for(;;){var n=tp;try{if(xs(),eu(),Do(),zf.current=null,null===n||null===n.return)return ap=Yf,op=t,void(tp=null);v&&n.mode&Rr&&_c(n,!0),y&&(Aa(),null!==t&&"object"==typeof t&&"function"==typeof t.then?Ba(n,t,np):Pa(n,t,np)),ad(e,n.return,n,t,np),lg(n)}catch(e){t=e,tp===n&&null!==n?(n=n.return,tp=n):n=tp;continue}return}}function eg(){var e=Uf.current;return Uf.current=ec,null===e?ec:e}function tg(e){Uf.current=e}function ng(e){sp=Fi(e,sp)}function rg(){ap!==Gf&&ap!==Qf&&ap!==qf||(ap=Xf),null!==ep&&(Pi(sp)||Pi(lp))&&Yp(ep,np)}function ig(e,t){var n=Jf;Jf|=$f;var r=eg();if(ep!==e||np!==t){if(ba){var i=e.memoizedUpdaters;i.size>0&&(kg(e,np),i.clear()),qi(e,t)}mp=null,Zp(e,t)}for(Ra(t);;)try{ag();break}catch(t){Jp(e,t)}if(xs(),Jf=n,tg(r),null!==tp)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Ma(),ep=null,np=Ur,ap}function ag(){for(;null!==tp;)sg(tp)}function og(){for(;null!==tp&&!oa();)sg(tp)}function sg(e){var t,n=e.alternate;Uo(e),(e.mode&Rr)!==Pr?(Sc(e),t=Sg(n,e,rp),_c(e,!0)):t=Sg(n,e,rp),Do(),e.memoizedProps=e.pendingProps,null===t?lg(e):tp=t,zf.current=null}function lg(e){var t=e;do{var n=t.alternate,r=t.return;if((t.flags&Ee)===de){Uo(t);var i=void 0;if((t.mode&Rr)===Pr?i=oh(n,t,rp):(Sc(t),i=oh(n,t,rp),_c(t,!1)),Do(),null!==i)return void(tp=i)}else{var a=sh(0,t);if(null!==a)return a.flags&=Ce,void(tp=a);if((t.mode&Rr)!==Pr){_c(t,!1);for(var o=t.actualDuration,s=t.child;null!==s;)o+=s.actualDuration,s=s.sibling;t.actualDuration=o}if(null===r)return ap=Zf,void(tp=null);r.flags|=Ee,r.subtreeFlags=de,r.deletions=null}var l=t.sibling;if(null!==l)return void(tp=l);tp=t=r}while(null!==t);ap===Gf&&(ap=Kf)}function ug(e,t,n){var r=ea(),i=Ff.transition;try{Ff.transition=null,ta(Qi),function(e,t,n,r){do{cg()}while(null!==_p);if(Fo.flushLegacyContextWarning(),Fo.flushPendingUnsafeLifecycleWarnings(),(Jf&($f|Vf))!==Wf)throw new Error("Should not already be working.");var i=e.finishedWork,a=e.finishedLanes;if(function(e){null!==ya&&"function"==typeof ya.markCommitStarted&&ya.markCommitStarted(e)}(a),null===i)return _a(),null;if(a===Ur&&s("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=Ur,i===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=zr;var o=Fi(i.lanes,i.childLanes);(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=Ur,e.pingedLanes=Ur,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var r=e.entanglements,i=e.eventTimes,a=e.expirationTimes,o=n;o>0;){var s=Ni(o),l=1<<s;r[s]=Ur,i[s]=wi,a[s]=wi,o&=~l}})(e,o),e===ep&&(ep=null,tp=null,np=Ur),(i.subtreeFlags&Fe)===de&&(i.flags&Fe)===de||wp||(wp=!0,kp=n,Eg(da,(function(){return cg(),null})));var l=(i.subtreeFlags&(De|Ue|ze|Fe))!==de,u=(i.flags&(De|Ue|ze|Fe))!==de;if(l||u){var c=Ff.transition;Ff.transition=null;var d=ea();ta(Qi);var h=Jf;Jf|=Vf,zf.current=null,Mh(e,i),xc(),function(e,t,n){_h=n,Th=e,Uo(t),ef(t,e),Uo(t),_h=null,Th=null}(e,i,a),nt(e.containerInfo),e.current=i,function(e){null!==ya&&"function"==typeof ya.markLayoutEffectsStarted&&ya.markLayoutEffectsStarted(e)}(a),nf(i,e,a),null!==ya&&"function"==typeof ya.markLayoutEffectsStopped&&ya.markLayoutEffectsStopped(),sa(),Jf=h,ta(d),Ff.transition=c}else e.current=i,xc();var f=wp;if(wp?(wp=!1,_p=e,Tp=a):(Lp=0,Op=null),(o=e.pendingLanes)===Ur&&(Sp=null),f||bg(e.current,!1),function(e,t){if(ma&&"function"==typeof ma.onCommitFiberRoot)try{var n=(e.current.flags&ve)===ve;if(v){var r;switch(t){case Qi:r=ua;break;case Xi:r=ca;break;case Ki:r=da;break;case Zi:r=ha;break;default:r=da}ma.onCommitFiberRoot(ga,e,r,n)}}catch(e){va||(va=!0,s("React instrumentation encountered an error: %s",e))}}(i.stateNode,r),ba&&e.memoizedUpdaters.clear(),Bt&&Of.forEach((function(e){return e()})),Hp(e,la()),null!==t)for(var p=e.onRecoverableError,g=0;g<t.length;g++){var m=t[g],y=m.stack,b=m.digest;p(m.value,{componentStack:y,digest:b})}if(bp){bp=!1;var x=xp;throw xp=null,x}Ui(Tp,Fr)&&e.tag!==Cr&&cg(),Ui(o=e.pendingLanes,Fr)?(yc=!0,e===Pp?Ep++:(Ep=0,Pp=e)):Ep=0,Fa(),_a()}(e,t,n,r)}finally{Ff.transition=i,ta(r)}return null}function cg(){if(null!==_p){var e=(i=ra(Tp),0===(r=Ki)||r>i?r:i),t=Ff.transition,n=ea();try{return Ff.transition=null,ta(e),function(){if(null===_p)return!1;var e=kp;kp=null;var t=_p,n=Tp;if(_p=null,Tp=Ur,(Jf&($f|Vf))!==Wf)throw new Error("Cannot flush passive effects while already rendering.");Bp=!0,Rp=!1,function(e){null!==ya&&"function"==typeof ya.markPassiveEffectsStarted&&ya.markPassiveEffectsStarted(e)}(n);var r=Jf;Jf|=Vf,ff(t.current),cf(t,t.current,n,e);var i=Ap;Ap=[];for(var a=0;a<i.length;a++)Dh(0,i[a]);null!==ya&&"function"==typeof ya.markPassiveEffectsStopped&&ya.markPassiveEffectsStopped(),bg(t.current,!0),Jf=r,Fa(),Rp?t===Op?Lp++:(Lp=0,Op=t):Lp=0,Bp=!1,Rp=!1,function(e){if(ma&&"function"==typeof ma.onPostCommitFiberRoot)try{ma.onPostCommitFiberRoot(ga,e)}catch(e){va||(va=!0,s("React instrumentation encountered an error: %s",e))}}(t);var o=t.current.stateNode;return o.effectDuration=0,o.passiveEffectDuration=0,!0}()}finally{ta(n),Ff.transition=t}}var r,i;return!1}function dg(e){return null!==Sp&&Sp.has(e)}var hg=function(e){bp||(bp=!0,xp=e)};function fg(e,t,n){var r=Vs(e,ed(e,Xc(n,t),Fr),Fr),i=zp();null!==r&&($i(r,Fr,i),Hp(r,i))}function pg(e,t,n){if(function(e){mh(null,(function(){throw e})),yh()}(n),Rg(!1),e.tag!==_){var r=null;for(r=t;null!==r;){if(r.tag===_)return void fg(r,e,n);if(r.tag===S){var i=r.type,a=r.stateNode;if("function"==typeof i.getDerivedStateFromError||"function"==typeof a.componentDidCatch&&!dg(a)){var o=Vs(r,td(r,Xc(n,e),Fr),Fr),l=zp();return void(null!==o&&($i(o,Fr,l),Hp(o,l)))}}r=r.return}s("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}else fg(e,e,n)}function gg(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);var i=zp();Vi(e,n),function(e){e.tag!==Cr&&Nf()&&null===jf.current&&s("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act")}(e),ep===e&&zi(np,n)&&(ap===Xf||ap===Qf&&Bi(np)&&la()-hp<fp?Zp(e,Ur):up=Fi(up,n)),Hp(e,i)}function mg(e,t){t===zr&&(t=jp(e));var n=zp(),r=Ms(e,t);null!==r&&($i(r,t,n),Hp(r,n))}function yg(e){var t=e.memoizedState,n=zr;null!==t&&(n=t.retryLane),mg(e,n)}function vg(e,t){var n,r=zr;switch(e.tag){case L:n=e.stateNode;var i=e.memoizedState;null!==i&&(r=i.retryLane);break;case z:n=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==n&&n.delete(t),mg(e,r)}function bg(e,t){Uo(e),xg(e,Ie,Sf),t&&xg(e,Ne,wf),xg(e,Ie,bf),t&&xg(e,Ne,xf),Do()}function xg(e,t,n){for(var r=e,i=null;null!==r;){var a=r.subtreeFlags&t;r!==i&&null!==r.child&&a!==de?r=r.child:((r.flags&t)!==de&&n(r),r=null!==r.sibling?r.sibling:i=r.return)}}var Sg,wg=null;function _g(e){if((Jf&$f)===Wf&&e.mode&Br){var t=e.tag;if(t===w||t===_||t===S||t===x||t===R||t===O||t===I){var n=ce(e)||"ReactComponent";if(null!==wg){if(wg.has(n))return;wg.add(n)}else wg=new Set([n]);var r=Oo;try{Uo(e),s("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{r?Uo(e):Do()}}}}Sg=function(e,t,n){var r=om(null,t);try{return Zd(e,t,n)}catch(a){if(so||null!==a&&"object"==typeof a&&"function"==typeof a.then)throw a;if(xs(),eu(),lh(0,t),om(t,r),t.mode&Rr&&Sc(t),mh(null,Zd,null,e,t,n),fh){var i=yh();"object"==typeof i&&null!==i&&i._suppressLogging&&"object"==typeof a&&null!==a&&!a._suppressLogging&&(a._suppressLogging=!0)}throw a}};var Tg,Ag=!1;function kg(e,t){ba&&e.memoizedUpdaters.forEach((function(n){Yi(e,n,t)}))}Tg=new Set;var Cg={};function Eg(e,t){var n=jf.current;return null!==n?(n.push(t),Cg):ia(e,t)}function Pg(e){if(e!==Cg)return aa(e)}function Bg(){return null!==jf.current}function Rg(e){Dp=e}var Mg=null,Lg=null,Og=function(e){Mg=e};function Ig(e){if(null===Mg)return e;var t=Mg(e);return void 0===t?e:t.current}function Ng(e){return Ig(e)}function Dg(e){if(null===Mg)return e;var t=Mg(e);if(void 0===t){if(null!=e&&"function"==typeof e.render){var n=Ig(e.render);if(e.render!==n){var r={$$typeof:Z,render:n};return void 0!==e.displayName&&(r.displayName=e.displayName),r}}return e}return t.current}function Ug(e,t){if(null===Mg)return!1;var n=e.elementType,r=t.type,i=!1,a="object"==typeof r&&null!==r?r.$$typeof:null;switch(e.tag){case S:"function"==typeof r&&(i=!0);break;case x:("function"==typeof r||a===ne)&&(i=!0);break;case R:(a===Z||a===ne)&&(i=!0);break;case O:case I:(a===te||a===ne)&&(i=!0);break;default:return!1}if(i){var o=Mg(n);if(void 0!==o&&o===Mg(r))return!0}return!1}function zg(e){null!==Mg&&"function"==typeof WeakSet&&(null===Lg&&(Lg=new WeakSet),Lg.add(e))}var Fg=function(e,t){if(null!==Mg){var n=t.staleFamilies,r=t.updatedFamilies;cg(),Qp((function(){Wg(e.current,r,n)}))}},jg=function(e,t){e.context===dr&&(cg(),Qp((function(){cm(t,e,null,null)})))};function Wg(e,t,n){var r=e.alternate,i=e.child,a=e.sibling,o=e.tag,s=e.type,l=null;switch(o){case x:case I:case S:l=s;break;case R:l=s.render}if(null===Mg)throw new Error("Expected resolveFamily to be set during hot reload.");var u=!1,c=!1;if(null!==l){var d=Mg(l);void 0!==d&&(n.has(d)?c=!0:t.has(d)&&(o===S?c=!0:u=!0))}if(null!==Lg&&(Lg.has(e)||null!==r&&Lg.has(r))&&(c=!0),c&&(e._debugNeedsRemount=!0),c||u){var h=Ms(e,Fr);null!==h&&Wp(h,e,Fr,wi)}null===i||c||Wg(i,t,n),null!==a&&Wg(a,t,n)}var Hg,$g=function(e,t){var n=new Set,r=new Set(t.map((function(e){return e.current})));return Vg(e.current,r,n),n};function Vg(e,t,n){var r=e.child,i=e.sibling,a=e.tag,o=e.type,s=null;switch(a){case x:case I:case S:s=o;break;case R:s=o.render}var l=!1;null!==s&&t.has(s)&&(l=!0),l?function(e,t){var n=function(e,t){for(var n=e,r=!1;;){if(n.tag===A)r=!0,t.add(n.stateNode);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)return r;for(;null===n.sibling;){if(null===n.return||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}(e,t);if(!n)for(var r=e;;){switch(r.tag){case A:return void t.add(r.stateNode);case T:case _:return void t.add(r.stateNode.containerInfo)}if(null===r.return)throw new Error("Expected to reach root first.");r=r.return}}(e,n):null!==r&&Vg(r,t,n),null!==i&&Vg(i,t,n)}Hg=!1;try{var Gg=Object.preventExtensions({});new Map([[Gg,null]]),new Set([Gg])}catch(e){Hg=!0}function Yg(e,t,n,r){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=r,this.flags=de,this.subtreeFlags=de,this.deletions=null,this.lanes=Ur,this.childLanes=Ur,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Hg||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}var qg,Qg,Xg=function(e,t,n,r){return new Yg(e,t,n,r)};function Kg(e){var t=e.prototype;return!(!t||!t.isReactComponent)}function Zg(e,t){var n=e.alternate;null===n?((n=Xg(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=de,n.subtreeFlags=de,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&je,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var r=e.dependencies;switch(n.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case w:case x:case I:n.type=Ig(e.type);break;case S:n.type=Ng(e.type);break;case R:n.type=Dg(e.type)}return n}function Jg(e,t){e.flags&=je|fe;var n=e.alternate;if(null===n)e.childLanes=Ur,e.lanes=t,e.child=null,e.subtreeFlags=de,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=de,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var r=n.dependencies;e.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function em(e,t,n,r,i,a){var o=w,l=e;if("function"==typeof e)Kg(e)?(o=S,l=Ng(l)):l=Ig(l);else if("string"==typeof e)o=A;else e:switch(e){case Y:return nm(n.children,i,a,t);case q:o=E,((i|=Mr)&Br)!==Pr&&(i|=Lr);break;case Q:return function(e,t,n,r){"string"!=typeof e.id&&s('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var i=Xg(M,e,r,t|Rr);return i.elementType=Q,i.lanes=n,i.stateNode={effectDuration:0,passiveEffectDuration:0},i}(n,i,a,t);case J:return function(e,t,n,r){var i=Xg(L,e,r,t);return i.elementType=J,i.lanes=n,i}(n,i,a,t);case ee:return function(e,t,n,r){var i=Xg(z,e,r,t);return i.elementType=ee,i.lanes=n,i}(n,i,a,t);case re:return rm(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case X:o=B;break e;case K:o=P;break e;case Z:o=R,l=Dg(l);break e;case te:o=O;break e;case ne:o=N,l=null;break e}var u="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var c=r?ce(r):null;throw c&&(u+="\n\nCheck the render method of `"+c+"`."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+"."+u)}var d=Xg(o,n,t,i);return d.elementType=e,d.type=l,d.lanes=a,d._debugOwner=r,d}function tm(e,t,n){var r;r=e._owner;var i=em(e.type,e.key,e.props,r,t,n);return i._debugSource=e._source,i._debugOwner=e._owner,i}function nm(e,t,n,r){var i=Xg(C,e,r,t);return i.lanes=n,i}function rm(e,t,n,r){var i=Xg(j,e,r,t);return i.elementType=re,i.lanes=n,i.stateNode={isHidden:!1},i}function im(e,t,n){var r=Xg(k,e,null,t);return r.lanes=n,r}function am(e,t,n){var r=null!==e.children?e.children:[],i=Xg(T,r,e.key,t);return i.lanes=n,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}function om(e,t){return null===e&&(e=Xg(w,null,null,Pr)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function sm(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=dt,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=zr,this.eventTimes=Hi(Ur),this.expirationTimes=Hi(wi),this.pendingLanes=Ur,this.suspendedLanes=Ur,this.pingedLanes=Ur,this.expiredLanes=Ur,this.mutableReadLanes=Ur,this.finishedLanes=Ur,this.entangledLanes=Ur,this.entanglements=Hi(Ur),this.identifierPrefix=r,this.onRecoverableError=i,mt&&(this.mutableSourceEagerHydrationData=null),this.effectDuration=0,this.passiveEffectDuration=0,this.memoizedUpdaters=new Set;for(var a=this.pendingUpdatersLaneMap=[],o=0;o<Dr;o++)a.push(new Set);switch(t){case Er:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case Cr:this._debugRootType=n?"hydrate()":"render()"}}function lm(e,t,n,r,i,a,o,s,l,u){var c=new sm(e,t,n,s,l),d=function(e,t,n){var r;return e===Er?(r=Br,!0===t&&(r|=Mr,r|=Lr)):r=Pr,ba&&(r|=Rr),Xg(_,null,null,r)}(t,a);c.current=d,d.stateNode=c;var h={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};return d.memoizedState=h,Ws(d),c}function um(e){if(!e)return dr;var t=d(e),n=kr(t);if(t.tag===S){var r=t.type;if(br(r))return _r(t,r,n)}return n}function cm(e,t,n,r){!function(e,t){if(ma&&"function"==typeof ma.onScheduleFiberRoot)try{ma.onScheduleFiberRoot(ga,e,t)}catch(e){va||(va=!0,s("React instrumentation encountered an error: %s",e))}}(t,e);var i=t.current,a=zp(),o=Fp(i);!function(e){null!==ya&&"function"==typeof ya.markRenderScheduled&&ya.markRenderScheduled(e)}(o);var l=um(n);null===t.context?t.context=l:t.pendingContext=l,Io&&null!==Oo&&!qg&&(qg=!0,s("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",ce(Oo)||"Unknown"));var u=$s(a,o);u.payload={element:e},null!==(r=void 0===r?null:r)&&("function"!=typeof r&&s("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r),u.callback=r);var c=Vs(i,u,o);return null!==c&&(Wp(c,i,o,a),Gs(c,i,o)),o}function dm(e,t){var n,r,i=e.memoizedState;null!==i&&null!==i.dehydrated&&(i.retryLane=(r=t,(n=i.retryLane)!==zr&&n<r?n:r))}function hm(e,t){dm(e,t);var n=e.alternate;n&&dm(n,t)}qg=!1,Qg={};var fm=function(e){return null};function pm(e){return fm(e)}var gm=function(e){return!1};function mm(e){return gm(e)}var ym,vm,bm,xm,Sm,wm,_m,Tm,Am,km=function(e,t,n){var r=t[n],i=Ke(e)?e.slice():c({},e);return n+1===t.length?(Ke(i)?i.splice(r,1):delete i[r],i):(i[r]=km(e[r],t,n+1),i)},Cm=function(e,t){return km(e,t,0)},Em=function(e,t,n,r){var i=t[r],a=Ke(e)?e.slice():c({},e);return r+1===t.length?(a[n[r]]=a[i],Ke(a)?a.splice(i,1):delete a[i]):a[i]=Em(e[i],t,n,r+1),a},Pm=function(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void o("copyWithRename() expects paths to be the same except for the deepest key");return Em(e,t,n,0)}o("copyWithRename() expects paths of the same length")},Bm=function(e,t,n,r){if(n>=t.length)return r;var i=t[n],a=Ke(e)?e.slice():c({},e);return a[i]=Bm(e[i],t,n+1,r),a},Rm=function(e,t,n){return Bm(e,t,0,n)},Mm=function(e,t){for(var n=e.memoizedState;null!==n&&t>0;)n=n.next,t--;return n};function Lm(e){var t=Ge(e);return null===t?null:t.stateNode}function Om(e){return null}function Im(){return Oo}return ym=function(e,t,n,r){var i=Mm(e,t);if(null!==i){var a=Rm(i.memoizedState,n,r);i.memoizedState=a,i.baseState=a,e.memoizedProps=c({},e.memoizedProps);var o=Ms(e,Fr);null!==o&&Wp(o,e,Fr,wi)}},vm=function(e,t,n){var r=Mm(e,t);if(null!==r){var i=Cm(r.memoizedState,n);r.memoizedState=i,r.baseState=i,e.memoizedProps=c({},e.memoizedProps);var a=Ms(e,Fr);null!==a&&Wp(a,e,Fr,wi)}},bm=function(e,t,n,r){var i=Mm(e,t);if(null!==i){var a=Pm(i.memoizedState,n,r);i.memoizedState=a,i.baseState=a,e.memoizedProps=c({},e.memoizedProps);var o=Ms(e,Fr);null!==o&&Wp(o,e,Fr,wi)}},xm=function(e,t,n){e.pendingProps=Rm(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Ms(e,Fr);null!==r&&Wp(r,e,Fr,wi)},Sm=function(e,t){e.pendingProps=Cm(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=Ms(e,Fr);null!==n&&Wp(n,e,Fr,wi)},wm=function(e,t,n){e.pendingProps=Pm(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Ms(e,Fr);null!==r&&Wp(r,e,Fr,wi)},_m=function(e){var t=Ms(e,Fr);null!==t&&Wp(t,e,Fr,wi)},Tm=function(e){fm=e},Am=function(e){gm=e},t.attemptContinuousHydration=function(e){if(e.tag===L){var t=mi,n=Ms(e,t);null!==n&&Wp(n,e,t,zp()),hm(e,t)}},t.attemptDiscreteHydration=function(e){if(e.tag===L){var t=Fr,n=Ms(e,t);null!==n&&Wp(n,e,t,zp()),hm(e,t)}},t.attemptHydrationAtCurrentPriority=function(e){if(e.tag===L){var t=Fp(e),n=Ms(e,t);null!==n&&Wp(n,e,t,zp()),hm(e,t)}},t.attemptSynchronousHydration=function(e){switch(e.tag){case _:var t=e.stateNode;if(ja(t)){var n=function(e){return Ai(e.pendingLanes)}(t);!function(e,t){t!==Ur&&(Gi(e,Fi(t,Fr)),Hp(e,la()),(Jf&($f|Vf))===Wf&&(yp(),Fa()))}(t,n)}break;case L:Qp((function(){var t=Ms(e,Fr);if(null!==t){var n=zp();Wp(t,e,Fr,n)}})),hm(e,Fr)}},t.batchedUpdates=function(e,t){var n=Jf;Jf|=Hf;try{return e(t)}finally{(Jf=n)!==Wf||jf.isBatchingLegacy||(yp(),za())}},t.createComponentSelector=function(e){return{$$typeof:_f,value:e}},t.createContainer=function(e,t,n,r,i,a,o,s){return lm(e,t,!1,null,0,r,0,a,o)},t.createHasPseudoClassSelector=function(e){return{$$typeof:Tf,value:e}},t.createHydrationContainer=function(e,t,n,r,i,a,o,s,l,u){var c=lm(n,r,!0,e,0,a,0,s,l);c.context=um(null);var d=c.current,h=zp(),f=Fp(d),p=$s(h,f);return p.callback=null!=t?t:null,Vs(d,p,f),function(e,t,n){e.current.lanes=t,$i(e,t,n),Hp(e,n)}(c,f,h),c},t.createPortal=function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return is(r=i)&&(s("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rs(r)),as(r)),{$$typeof:G,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}},t.createRoleSelector=function(e){return{$$typeof:Af,value:e}},t.createTestNameSelector=function(e){return{$$typeof:kf,value:e}},t.createTextSelector=function(e){return{$$typeof:Cf,value:e}},t.deferredUpdates=function(e){var t=ea(),n=Ff.transition;try{return Ff.transition=null,ta(Ki),e()}finally{ta(t),Ff.transition=n}},t.discreteUpdates=function(e,t,n,r,i){var a=ea(),o=Ff.transition;try{return Ff.transition=null,ta(Qi),e(t,n,r,i)}finally{ta(a),Ff.transition=o,Jf===Wf&&yp()}},t.findAllNodes=Lf,t.findBoundingRects=function(e,t){if(!Bt)throw new Error("Test selector API is not supported by this renderer.");for(var n=Lf(e,t),r=[],i=0;i<n.length;i++)r.push(Mt(n[i]));for(var a=r.length-1;a>0;a--)for(var o=r[a],s=o.x,l=s+o.width,u=o.y,c=u+o.height,d=a-1;d>=0;d--)if(a!==d){var h=r[d],f=h.x,p=f+h.width,g=h.y,m=g+h.height;if(s>=f&&u>=g&&l<=p&&c<=m){r.splice(a,1);break}if(!(s!==f||o.width!==h.width||m<u||g>c)){g>u&&(h.height+=g-u,h.y=u),m<c&&(h.height=c-g),r.splice(a,1);break}if(!(u!==g||o.height!==h.height||p<s||f>l)){f>s&&(h.width+=f-s,h.x=s),p<l&&(h.width=l-f),r.splice(a,1);break}}return r},t.findHostInstance=function(e){var t=d(e);if(void 0===t){if("function"==typeof e.render)throw new Error("Unable to find node on an unmounted component.");var n=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+n)}var r=Ge(t);return null===r?null:r.stateNode},t.findHostInstanceWithNoPortals=function(e){var t=qe(e);return null===t?null:t.stateNode},t.findHostInstanceWithWarning=function(e,t){var n=d(e);if(void 0===n){if("function"==typeof e.render)throw new Error("Unable to find node on an unmounted component.");var r=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+r)}var i=Ge(n);if(null===i)return null;if(i.mode&Mr){var a=ce(n)||"Component";if(!Qg[a]){Qg[a]=!0;var o=Oo;try{Uo(i),n.mode&Mr?s("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,a):s("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,a)}finally{o?Uo(o):Do()}}}return i.stateNode},t.flushControlled=function(e){var t=Jf;Jf|=Hf;var n=Ff.transition,r=ea();try{Ff.transition=null,ta(Qi),e()}finally{ta(r),Ff.transition=n,(Jf=t)===Wf&&(yp(),Fa())}},t.flushPassiveEffects=cg,t.flushSync=Qp,t.focusWithin=function(e,t){if(!Bt)throw new Error("Test selector API is not supported by this renderer.");for(var n=Mf(Pf(e),t),r=Array.from(n),i=0;i<r.length;){var a=r[i++];if(!Ot(a)){if(a.tag===A){var o=a.stateNode;if(Nt(o))return!0}for(var s=a.child;null!==s;)r.push(s),s=s.sibling}}return!1},t.getCurrentUpdatePriority=ea,t.getFindAllNodesFailureDescription=function(e,t){if(!Bt)throw new Error("Test selector API is not supported by this renderer.");for(var n=0,r=[],i=[Pf(e),0],a=0;a<i.length;){var o=i[a++],s=i[a++],l=t[s];if((o.tag!==A||!Ot(o))&&(Bf(o,l)&&(r.push(Rf(l)),++s>n&&(n=s)),s<t.length))for(var u=o.child;null!==u;)i.push(u,s),u=u.sibling}if(n<t.length){for(var c=[],d=n;d<t.length;d++)c.push(Rf(t[d]));return"findAllNodes was able to match part of the selector:\n "+r.join(" > ")+"\n\nNo matching component was found for:\n "+c.join(" > ")}return null},t.getPublicRootInstance=function(e){var t=e.current;return t.child?t.child.tag===A?Ze(t.child.stateNode):t.child.stateNode:null},t.injectIntoDevTools=function(e){var t=e.findFiberByHostInstance,n=i.ReactCurrentDispatcher;return function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return s("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{y&&(e=c({},e,{getLaneLabelMap:wa,injectProfilingHooks:Sa})),ga=t.inject(e),ma=t}catch(e){s("React instrumentation encountered an error: %s.",e)}return!!t.checkDCE}({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:ym,overrideHookStateDeletePath:vm,overrideHookStateRenamePath:bm,overrideProps:xm,overridePropsDeletePath:Sm,overridePropsRenamePath:wm,setErrorHandler:Tm,setSuspenseHandler:Am,scheduleUpdate:_m,currentDispatcherRef:n,findHostInstanceByFiber:Lm,findFiberByHostInstance:t||Om,findHostInstancesForRefresh:$g,scheduleRefresh:Fg,scheduleRoot:jg,setRefreshHandler:Og,getCurrentFiber:Im,reconcilerVersion:"18.3.1"})},t.isAlreadyRendering=function(){return(Jf&($f|Vf))!==Wf},t.observeVisibleRects=function(e,t,n,r){if(!Bt)throw new Error("Test selector API is not supported by this renderer.");var i=Lf(e,t),a=Dt(i,n,r),o=a.disconnect,s=a.observe,l=a.unobserve,u=function(){var n=Lf(e,t);i.forEach((function(e){n.indexOf(e)<0&&l(e)})),n.forEach((function(e){i.indexOf(e)<0&&s(e)}))};return Of.push(u),{disconnect:function(){var e=Of.indexOf(u);e>=0&&Of.splice(e,1),o()}}},t.registerMutableSourceForHydration=function(e,t){var n=(0,t._getVersion)(t._source);null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},t.runWithPriority=function(e,t){var n=Ji;try{return Ji=e,t()}finally{Ji=n}},t.shouldError=pm,t.shouldSuspend=mm,t.updateContainer=cm,t})),vc.exports);var bc,xc=n(sc.exports),Sc={exports:{}},wc={};var _c,Tc={};
|
|
38
|
+
/**
|
|
39
|
+
* @license React
|
|
40
|
+
* react-reconciler-constants.development.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/"production"===production?Sc.exports=(bc||(bc=1,wc.ConcurrentRoot=1,wc.ContinuousEventPriority=4,wc.DefaultEventPriority=16,wc.DiscreteEventPriority=1,wc.IdleEventPriority=536870912,wc.LegacyRoot=0),wc):Sc.exports=(_c||(_c=1,"production"!==production&&(Tc.ConcurrentRoot=1,Tc.ContinuousEventPriority=4,Tc.DefaultEventPriority=16,Tc.DiscreteEventPriority=1,Tc.IdleEventPriority=536870912,Tc.LegacyRoot=0)),Tc);var Ac=Sc.exports;const kc=xc({supportsMutation:!0,supportsPersistence:!1,createInstance:(e,t,n)=>{const r=function(e,t){const n=function(e,t){if("tag"===e)return new Vu(t.attribute?t.attribute:t);if("radio"===e)return new Yu(t.attribute?t.attribute:t);if("checkbox"===e)return new Gu(t.attribute?t.attribute:t)}(e,t);if(n)return n;if(!ir.graphicService.creator[e])return;const r=ir.graphicService.creator[e](t.attribute);return r}(e,t);if(r)return function(e,t){for(const n in t)Cc(n,t)&&bl[n]&&e.addEventListener(bl[n],t[n])}(r,t),r},createTextInstance:(e,t)=>{},appendInitialChild:(e,t)=>{e.add(t)},finalizeInitialChildren:()=>!1,prepareUpdate:()=>!0,shouldSetTextContent:()=>!1,getRootHostContext:()=>null,getChildHostContext:()=>null,getPublicInstance:e=>e,prepareForCommit:()=>null,resetAfterCommit:()=>{},preparePortalMount:()=>null,scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,isPrimaryRenderer:!1,getCurrentEventPriority:()=>Ac.DefaultEventPriority,getInstanceFromNode:e=>null,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},prepareScopeUpdate:()=>{},getInstanceFromScope:()=>{},detachDeletedInstance:()=>{},supportsHydration:!1,appendChild:(e,t)=>{e.add(t)},appendChildToContainer:(e,t)=>{e.add(t)},insertBefore:(e,t,n)=>{e.insertBefore(t,n)},insertInContainerBefore:(e,t,n)=>{e.insertBefore(t,n)},removeChild:(e,t)=>{t.delete()},removeChildFromContainer:(e,t)=>{t.delete()},commitUpdate:(e,t,n,r,i)=>{!function(e,t,n){for(const r in n)Cc(r,n)&&n[r]!==t[r]&&e.removeEventListener(bl[r],n[r]);for(const r in t)Cc(r,t)&&n[r]!==t[r]&&e.addEventListener(bl[r],t[r]);const r=t.attribute??U({},t);e.initAttributes(r),"image"===e.type&&e.loadImage(r.image)}(e,i,r)},hideInstance:e=>{e.setAttribute("visible",!1)},unhideInstance:(e,t)=>{e.setAttribute("visible",!0)},clearContainer:e=>{e.removeAllChild()},commitTextUpdate:(e,t,n)=>{}});function Cc(e,t){return e.startsWith("on")&&g(t[e])}kc.injectIntoDevTools({bundleType:"production"!==production?1:0,version:u.version,rendererPackageName:"react-vtable"});const Ec=(e,t)=>{const{componentId:n,children:r}=e;if(!l.isValidElement(r))return null;const i=l.useContext(c),{table:a}=i,o="header-custom-layout"===r.props.role,s=l.useRef(new Map),u=l.useCallback((e=>{const t=`${e.col}-${e.row}`;let n;if(s.current.has(t)){const i=s.current.get(t);Pc(r,i,e),n=i.containerInfo}else{n=new Fi({});const i=kc.createContainer(n,Ac.LegacyRoot,null,null,null,"custom",null,null);s.current.set(t,i),Pc(r,i,e)}return{rootContainer:n,renderDefault:!!r.props.renderDefault}}),[r]),d=l.useCallback(((e,t)=>{const n=`${e}-${t}`;if(s.current.has(n)){const e=s.current.get(n);kc.updateContainer(null,e,null),s.current.delete(n)}}),[]),h=l.useCallback((()=>{s.current.forEach(((e,t)=>{const n=e;kc.updateContainer(null,n,null)})),s.current.clear()}),[]);return l.useLayoutEffect((()=>(console.log("init",e,a),()=>{console.log("release",e,a)})),[]),l.useLayoutEffect((()=>{console.log("update props",e,a),a?.checkReactCustomLayout(h),a&&!a.reactCustomLayout?.hasReactCreateGraphic(n,o)?(a.reactCustomLayout?.setReactCreateGraphic(n,u,o),a.reactCustomLayout?.setReactRemoveGraphic(n,d,o),a.reactCustomLayout?.updateCustomCell(n,o)):a&&s.current.forEach(((e,t)=>{const[n,i]=t.split("-").map(Number),{width:o,height:s}=function(e,t,n){const r=n.getCellRange(e,t),i=n.getCellsRect(r.start.col,r.start.row,r.end.col,r.end.row);return i}(n,i,a),l=e,u={col:n,row:i,dataValue:a.getCellOriginValue(n,i),value:a.getCellValue(n,i)||"",rect:{left:0,top:0,right:o,bottom:s,width:o,height:s},table:a};l.containerInfo,Pc(r,l,u),a.scenegraph.updateNextFrame()}))})),null};function Pc(e,t,n){kc.updateContainer(u.cloneElement(e,{...n}),t,null)}const Bc=(e,t,n,r)=>{const i=["id","updateId","componentIndex","children"],a=n?Object.keys(n).concat(i):i,o=e=>{const t=l.useContext(c),r=u.useRef(null),i=u.useRef(e.updateId);if(e.updateId!==i.current){i.current=e.updateId;!!n&&We(t.table,e,r.current,n)&&(r.current=e)}return l.useEffect((()=>()=>{n&&We(t.table,null,r.current,n)}),[]),Mc(e.children,e.componentId)};return o.displayName=e,o.parseOption=e=>{const n=z(e,a);if(e.children){const{children:t}=e;u.Children.map(t,((t,r)=>{Rc(t,e,n,a,e.componentId+"-"+r)}))}return{option:n,optionName:t,isSingle:r}},o};function Rc(e,t,n,r,i){if("custom-layout"===e.props.role&&(n.customLayout="react-custom-layout",n.customLayoutComponentId=i),"header-custom-layout"===e.props.role&&(n.headerCustomLayout="react-custom-layout",n.headerCustomLayoutComponentId=i),"ListColumn"===e.type.displayName){n.columns||(n.columns=[]);const a=z(e.props,r);n.columns.push(a),a.componentId=i,e.props.children&&u.Children.map(e.props.children,((e,n)=>{Rc(e,t,a,r,i+"-"+n)}))}}function Mc(e,t){return(n=e)&&n.$$typeof===Symbol.for("react.element")||Array.isArray(e)?u.Children.map(e,((e,n)=>e.props.children?Mc(e.props.children,t+"-"+n):"custom-layout"===e.props.role||"header-custom-layout"===e.props.role?u.createElement(Ec,{componentId:t},e):null)):null;var n}const Lc=Bc("ListColumn","columns"),Oc=Bc("PivotColumnDimension","columns"),Ic=Bc("PivotRowDimension","rows"),Nc=Bc("PivotIndicator","indicators"),Dc=Bc("PivotColumnHeaderTitle","columnHeaderTitle",void 0,!0),Uc=Bc("PivotRowHeaderTitle","rowHeaderTitle",void 0,!0),zc=Bc("PivotCorner","corner",void 0,!0),Fc=Bc("Menu","menu",void 0,!0),jc=Bc("Tooltip","tooltip",void 0,!0),Wc=Bc("EmptyTip","emptyTip",void 0,!0),Hc=Bc("Title","title",void 0,!0);function $c(e,t){return T(e)?e:"string"==typeof e&&e.endsWith("%")?Number(e.slice(0,-1))/100*t:0}const Vc="group",Gc="text",Yc="tag",qc={textStyle:{fontSize:14,fontFamily:"sans-serif",fill:"#FFF"},panelStyle:{visible:!0,fill:"rgb(22, 93, 255)",lineWidth:1,cornerRadius:2},padding:10,state:{panelStyle:{hover:{fill:"rgb(64, 128, 255)"},disabled:{fill:"rgb(148, 191, 255)"}}}};const Qc=u.forwardRef((function(e,t){const n=U({},qc,e),{disabled:r,onClick:i}=n;let a=u.useRef(null);a=t||a;const o=u.useCallback((e=>{r?"function"==typeof e?.preventDefault&&e.preventDefault():i&&i(e)}),[r,i]),s=function(e){const{textStyle:t,padding:n,panelStyle:r,minWidth:i,maxWidth:a,visible:o,cursor:s,disabled:l,state:u,children:c}=e,d={text:c,textStyle:t,padding:n,panel:r,minWidth:i,maxWidth:a,visible:o,cursor:s??l?"not-allowed":"pointer",childrenPickable:!1,state:{text:{hover:u?.textStyle?.hover,disabled:u?.textStyle?.disabled},panel:{hover:u?.panelStyle?.hover,disabled:u?.panelStyle?.disabled}}};return d}(n);return l.useEffect((()=>{a.current.addEventListener("mouseenter",(()=>{r||(a.current.addState("hover",!0,!1),a.current.stage.renderNextFrame())})),a.current.addEventListener("mouseleave",(()=>{r||(a.current.removeState("hover",!1),a.current.stage.renderNextFrame())}))})),l.useEffect((()=>{r?(a.current.removeState("disabled",!1),a.current.addState("disabled",!0,!1)):a.current.removeState("disabled",!1),a.current.stage.renderNextFrame()})),u.createElement(Yc,{ref:a,attribute:s,onClick:o})}));Qc.displayName="Button";const Xc={textStyle:{fontSize:14,fontFamily:"sans-serif",fill:"rgb(64, 128, 255)"},panelStyle:{visible:!0,opacity:0,fill:"rgba(242, 243, 245, 0.5)",lineWidth:1,cornerRadius:2},padding:4,space:6,state:{textStyle:{disabled:{fill:"rgb(148, 191, 255)"}},panelStyle:{hover:{opacity:1}}}};const Kc=u.forwardRef((function(e,t){const n=U({},Xc,e),{disabled:r,href:i,onClick:a}=n;let o=u.useRef(null);o=t||o;const s=u.useCallback((e=>{r?"function"==typeof e?.preventDefault&&e.preventDefault():(a&&a(e),i&&window.open(i))}),[r,i,a]),c=function(e){const{textStyle:t,padding:n,space:r,panelStyle:i,minWidth:a,maxWidth:o,visible:s,cursor:l,disabled:u,icon:c,state:d,children:h}=e,f={text:h,textStyle:t,padding:n,panel:i,minWidth:a,maxWidth:o,visible:s,cursor:l??u?"not-allowed":"pointer",childrenPickable:!1,state:{text:{hover:d?.textStyle?.hover,disabled:d?.textStyle?.disabled},panel:{hover:d?.panelStyle?.hover,disabled:d?.panelStyle?.disabled}},space:r,shape:{visible:!!c,fill:!1,stroke:t.fill,symbolType:"M -0.2927 -15.4348 L -15.142 -0.5855 C -18.6567 2.9292 -18.6567 8.6277 -15.142 12.1424 V 12.1424 C -11.6273 15.6571 -5.9288 15.6571 -2.4141 12.1424 L 15.2636 -5.5353 C 17.6067 -7.8784 17.6067 -11.6774 15.2636 -14.0206 V -14.0206 C 12.9205 -16.3637 9.1215 -16.3637 6.7783 -14.0206 L -10.8993 3.6571 C -12.0709 4.8287 -12.0709 6.7282 -10.8993 7.8997 V 7.8997 C -9.7278 9.0713 -7.8283 9.0713 -6.6567 7.8997 L 8.1925 -6.9495"}};return f}(n);return l.useEffect((()=>{o.current.addEventListener("mouseenter",(()=>{r||(o.current.addState("hover",!0,!1),o.current.stage.renderNextFrame())})),o.current.addEventListener("mouseleave",(()=>{r||(o.current.removeState("hover",!1),o.current.stage.renderNextFrame())}))}),[]),l.useEffect((()=>{r?(o.current.removeState("disabled",!1),o.current.addState("disabled",!0,!1)):o.current.removeState("disabled",!1),o.current.stage.renderNextFrame()})),u.createElement(Yc,{ref:o,attribute:c,onClick:s})}));Kc.displayName="Link";const Zc={textStyle:{fontSize:14,fontFamily:"sans-serif",fill:"#FFF"},panelStyle:{visible:!0,fill:"rgb(201, 205, 212)",lineWidth:1,cornerRadius:2},size:40,shape:"circle",autoFixFontSize:!0};const Jc=u.forwardRef((function(e,t){const n=U({},Zc,e),{size:r,children:i,onClick:a}=n;let o=u.useRef(null);o=t||o;const s=u.useCallback((e=>{a&&a(e)}),[a]),l=function(e){const{panelStyle:t,size:n,shape:r}=e,i={...t,width:n,height:n,clip:!0,cornerRadius:"circle"===r?n/2:t.cornerRadius??2,display:"flex",alignItems:"center",justifyContent:"center",visibleAll:!0,path:void 0};return i}(n);if(S(i)){const e=function(e){const{textStyle:t,size:n,children:r,autoFixFontSize:i}=e,a={text:r,...t};i&&function(e,t){const n=Wu(t.text,t).width,r=e/(n+8),i=Math.max(Math.floor(t.fontSize*r),6);t.fontSize=i}(n,a);return a}(n);return u.createElement(Vc,{ref:o,attribute:l,onClick:s},u.createElement(Gc,{attribute:e}))}return"image"===i.type&&(i.props.attribute.width=r,i.props.attribute.height=r),u.createElement(Vc,{ref:o,attribute:l,onClick:s},i)}));Jc.displayName="Avatar";const ed={defaultPopupVisible:!1,position:"top"},td={backgroundColor:"rgb(255, 255, 255)",boxShadow:"0 4px 10px rgba(0, 0, 0, .1)",fontSize:"14px",borderRadius:"4px",lineHeight:"1.5715",boxSizing:"border-box",color:"rgb(78, 89, 105)",border:"1px solid rgb(229, 230, 235)",padding:"12px 16px"},nd=e=>{const t={content:"",height:"8px",width:"8px",position:"absolute",display:"block",boxSizing:"border-box",transform:"rotate(45deg)",transformOrigin:"50% 50% 0",backgroundColor:"rgb(255, 255, 255)",border:"1px solid rgb(229, 230, 235)",...rd(e.position)};return e.visible?u.createElement(u.Fragment,null,u.createElement("div",{style:td},e.content),u.createElement("div",{style:t})):u.createElement(u.Fragment,null)};function rd(e){switch(e){case"top":return{top:"calc(100% - 5px)",left:"calc(50% - 5px)",borderTop:"none",borderLeft:"none"};case"tl":return{top:"calc(100% - 4px)",left:"14px",borderTop:"none",borderLeft:"none"};case"tr":return{top:"calc(100% - 4px)",left:"calc(100% - 24px)",borderTop:"none",borderLeft:"none"};case"bottom":return{top:"-4px",left:"calc(50% - 4px)",borderRight:"none",borderBottom:"none"};case"bl":return{top:"-4px",left:"14px",borderRight:"none",borderBottom:"none"};case"br":return{top:"-4px",left:"calc(100% - 24px)",borderRight:"none",borderBottom:"none"};case"left":return{top:"calc(50% - 4px)",left:"calc(100% - 5px)",borderLeft:"none",borderBottom:"none"};case"lt":return{top:"14px",left:"calc(100% - 5px)",borderLeft:"none",borderBottom:"none"};case"lb":return{top:"calc(100% - 24px)",left:"calc(100% - 5px)",borderLeft:"none",borderBottom:"none"};case"right":return{top:"calc(50% - 4px)",left:"-4px",borderRight:"none",borderTop:"none"};case"rt":return{top:"14px",left:"-4px",borderRight:"none",borderTop:"none"};case"rb":return{top:"calc(100% - 24px)",left:"-4px",borderRight:"none",borderTop:"none"}}}const id=u.forwardRef((function(e,t){const n=U({},ed,e),{content:r,position:i,popupVisible:a,defaultPopupVisible:o,children:s}=n;let c=u.useRef(null);c=t||c;const[d,h]=l.useState(!1);l.useEffect((()=>{h(!!a),c.current.stage.renderNextFrame()}),[a]),l.useEffect((()=>{h(a??o??!1)}),[]);const{transform:f,anchorType:p}=function(e){switch(e){case"top":return{anchorType:"top",transform:"translate(-50%, calc(-100% - 10px))"};case"tl":return{anchorType:"top-left",transform:"translate(0, calc(-100% - 10px))"};case"tr":return{anchorType:"top-right",transform:"translate(-100%, calc(-100% - 10px))"};case"bottom":return{anchorType:"bottom",transform:"translate(-50%, 10px)"};case"bl":return{anchorType:"bottom-left",transform:"translate(0, 10px)"};case"br":return{anchorType:"bottom-right",transform:"translate(-100%, 10px)"};case"left":return{anchorType:"left",transform:"translate(calc(-100% - 10px), -50%)"};case"lt":return{anchorType:"top-left",transform:"translate(calc(-100% - 10px), 0)"};case"lb":return{anchorType:"bottom-left",transform:"translate(calc(-100% - 10px), -100%)"};case"right":return{anchorType:"right",transform:"translate(10px, -50%)"};case"rt":return{anchorType:"top-right",transform:"translate(10px, 0)"};case"rb":return{anchorType:"bottom-right",transform:"translate(10px, -100%)"}}}(i),g={react:{style:{transform:f},element:u.createElement(nd,{visible:d,content:r,position:i}),container:null,visible:!0,pointerEvents:!1,anchorType:p}},m=l.useCallback((e=>{y(a)||(h(!0),e.currentTarget.stage.renderNextFrame())}),[]),v=l.useCallback((e=>{y(a)||(h(!1),e.currentTarget.stage.renderNextFrame())}),[]);return u.createElement(Vc,{ref:c,attribute:g,onMouseEnter:m,onMouseLeave:v},s)}));id.displayName="Popover";const ad={textStyle:{fontSize:14,fontFamily:"sans-serif",fill:"rgb(51, 101, 238)"},panelStyle:{visible:!0,fill:"#e6fffb",lineWidth:1,cornerRadius:4}};const od=u.forwardRef((function(e,t){const n=U({},ad,e),{attribute:r,panelStyle:i,children:a,...o}=n;let s=u.useRef(null);return s=t||s,u.createElement(Yc,{ref:s,attribute:r??{text:a,panel:i,...o}})}));od.displayName="Tag";const sd={};const ld=u.forwardRef((function(e,t){const n=U({},sd,e),{textStyle:r,circleStyle:i,children:a,...o}=n;let s=u.useRef(null);s=t||s;const c=l.useCallback((e=>{n.onChange&&n.onChange(e.target.attribute.checked)}),[]);return l.useEffect((()=>(s.current.addEventListener("radio_checked",c),()=>{s.current.removeEventListener("radio_checked",c)})),[]),u.createElement("radio",{ref:s,attribute:{text:{...r,text:a},circle:i,...o}})}));ld.displayName="Radio";const ud={};const cd=u.forwardRef((function(e,t){const n=U({},ud,e),{textStyle:r,boxStyle:i,iconStyle:a,children:o,...s}=n;let c=u.useRef(null);c=t||c;const d=l.useCallback((e=>{n.onChange&&n.onChange(e.target.attribute.checked)}),[]);return l.useEffect((()=>(c.current?.addEventListener("checkbox_state_change",d),()=>{c.current?.removeEventListener("checkbox_state_change",d)})),[]),u.createElement("checkbox",{ref:c,attribute:{text:{...r,text:o},box:i,icon:a,...s}})}));cd.displayName="Checkbox";Object.defineProperty(e,"register",{enumerable:!0,get:function(){return t.register}}),e.Arc="arc",e.Avatar=Jc,e.Button=Qc,e.Checkbox=cd,e.Circle="circle",e.CustomComponent=e=>{const t=l.useContext(c),{table:n}=t,r=function(e,t){const n=l.useMemo((()=>({...t})),[t]),r=l.useMemo((()=>{const t=U({},e);for(const e in n)void 0===t[e]&&(t[e]=n[e]);return t}),[e,n]);return r}(e,{style:{left:0,top:0},className:"vtable-custom-component",displayMode:"position",x:0,y:0,width:0,height:0,row:0,col:0,anchor:"top-left",dx:0,dy:0}),{displayMode:i,x:a,y:o,width:s,height:d,row:h,col:f,anchor:p,dx:g,dy:m,className:y,children:v,style:b}=r;let x,S,w,_;if("position"===i)x=a+g+"px",S=o+m+"px",w=s+"px",_=d+"px";else if("cell"===i){const e=n&&f>=0&&h>=0?n?.getCellRelativeRect(f,h):{width:0,height:0,left:-9999,top:-9999};w=$c(s,e.width)+"px",_=$c(d,e.height)+"px","top-left"===p?(x=e.left+$c(g,e.width)+"px",S=e.top+$c(m,e.height)+"px"):"top-right"===p?(x=e.left+$c(g,e.width)+e.width+"px",S=e.top+$c(m,e.height)+"px"):"bottom-left"===p?(x=e.left+$c(g,e.width)+"px",S=e.top+$c(m,e.height)+e.height+"px"):"bottom-right"===p&&(x=e.left+$c(g,e.width)+e.width+"px",S=e.top+$c(m,e.height)+e.height+"px")}const T=U({},b,{position:"absolute",zIndex:1e3,width:w,height:_,left:x,top:S});return u.createElement("div",{className:y,style:T},u.Children.map(v,(e=>e?u.cloneElement(e,{}):e)))},e.CustomLayout=Ec,e.EmptyTip=Wc,e.Group=Vc,e.Image="image",e.Line="line",e.Link=Kc,e.ListColumn=Lc,e.ListTable=tc,e.ListTableSimple=ic,e.Menu=Fc,e.Path="path",e.PivotChart=rc,e.PivotColumnDimension=Oc,e.PivotColumnHeaderTitle=Dc,e.PivotCorner=zc,e.PivotIndicator=Nc,e.PivotRowDimension=Ic,e.PivotRowHeaderTitle=Uc,e.PivotTable=nc,e.PivotTableSimple=ac,e.Polygon="polygon",e.Popover=id,e.Radio=ld,e.Rect="rect",e.RichText="richtext",e.Symbol="symbol",e.Tag=od,e.Text=Gc,e.Title=Hc,e.Tooltip=jc,e.registerChartModule=function(e,n){t.register.chartModule(e,n)},e.version="1.7.0"}));
|